Address Details
contract
token

0xbE2E36A243dC4ae347598497c900da5Aeb52C8bC

Token
SolarPunk (spunk)
Creator
0x8b2f36–66963a at 0x8e9d5d–8ddb5f
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
1 Transactions
Transfers
0 Transfers
Gas Used
189,192
Last Balance Update
16194523
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
NounsToken




Optimization enabled
false
Compiler version
v0.8.7+commit.e28d00a7




EVM Version
london




Verified at
2022-11-16T23:16:44.730648Z

contracts/NounsToken.sol

// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.6;

import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol';
import { ERC721Checkpointable } from './base/ERC721Checkpointable.sol';
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import { INounsToken } from './interfaces/INounsToken.sol';
import { ERC721 } from './base/ERC721.sol';
import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol';

contract NounsToken is INounsToken, Ownable, ERC721Checkpointable {

    using Strings for uint256;

    address public noundersDAO;
    address public minter;
    bool public isMinterLocked;
    uint256 private _currentNounId;

    // IPFS content hash of contract-level metadata
    string private _contractURIHash = 'QmRsbpn1wAmdr5VB6vWUMGSUVzjTSr46UDetVjPrx15D8u';
    string public baseURI = "https://cybertime.mypinata.cloud/ipfs/QmRsbpn1wAmdr5VB6vWUMGSUVzjTSr46UDetVjPrx15D8u";
    string public baseExtension=".json";

    /**
     * @notice Require that the minter has not been locked.
     */
    modifier whenMinterNotLocked() {
        require(!isMinterLocked, 'Minter is locked');
        _;
    }

    /**
     * @notice Require that the sender is the nounders DAO.
     */
    modifier onlyNoundersDAO() {
        require(msg.sender == noundersDAO, 'Sender is not the nounders DAO');
        _;
    }

    /**
     * @notice Require that the sender is the minter.
     */
    modifier onlyMinter() {
        require(msg.sender == minter, 'Sender is not the minter');
        _;
    }

    constructor(
        address _noundersDAO
    ) ERC721('SolarPunk', 'spunk') {
        _currentNounId = 1;
        noundersDAO = _noundersDAO;
        minter = noundersDAO;
    }

    /**
     * @notice The IPFS URI of contract-level metadata.
     */
    function contractURI() public view returns (string memory) {
        return string(abi.encodePacked('ipfs://', _contractURIHash));
    }

    /**
     * @notice Set the _contractURIHash.
     * @dev Only callable by the owner.
     */
    function setContractURIHash(string memory newContractURIHash) external onlyOwner {
        _contractURIHash = newContractURIHash;
    }

    /**
     * @notice Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator) public view override(IERC721, ERC721) returns (bool) {
        // Whitelist OpenSea proxy contract for easy trading.
        // if (proxyRegistry.proxies(owner) == operator) {
        //     return true;
        // }
        return super.isApprovedForAll(owner, operator);
    }

    /**
     * @notice Mint a Noun to the minter, along with a possible nounders reward
     * Noun. Nounders reward Nouns are minted every 10 Nouns, starting at 0,
     * until 183 nounder Nouns have been minted (5 years w/ 24 hour auctions).
     * @dev Call _mintTo with the to address(es).
     */
    function mint() public override onlyMinter returns (uint256) {
        // if (_currentNounId <= 1820 && _currentNounId % 10 == 0) {
        //     _mintTo(noundersDAO, _currentNounId++);
        // }
        return _mintTo(minter, _currentNounId++);
    }

    /**
     * @notice Burn a noun.
     */
    function burn(uint256 nounId) public override onlyMinter {
        _burn(nounId);
        emit NounBurned(nounId);
    }

    //internal
    function _baseURI() internal view virtual override returns (string memory){
        return baseURI;
    }

    function setBaseURI(string memory _newBaseURI) public onlyMinter{
        baseURI=_newBaseURI;
    }

    /**
     * @notice A distinct Uniform Resource Identifier (URI) for a given asset.
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), 'NounsToken: URI query for nonexistent token');
        string memory curretBaseURI=_baseURI();
            return bytes(curretBaseURI).length>0
            ? string(abi.encodePacked(curretBaseURI, tokenId.toString(), baseExtension))
            : "";
    }

    /**
     * @notice Similar to `tokenURI`, but always serves a base64 encoded data URI
     * with the JSON contents directly inlined.
     */
    function dataURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), 'NounsToken: URI query for nonexistent token');
        return tokenURI(tokenId);
    }

    /**
     * @notice Set the nounders DAO.
     * @dev Only callable by the nounders DAO when not locked.
     */
    function setNoundersDAO(address _noundersDAO) external override onlyNoundersDAO {
        noundersDAO = _noundersDAO;

        emit NoundersDAOUpdated(_noundersDAO);
    }

    /**
     * @notice Set the token minter.
     * @dev Only callable by the owner when not locked.
     */
    function setMinter(address _minter) external override onlyOwner whenMinterNotLocked {
        minter = _minter;

        emit MinterUpdated(_minter);
    }

    /**
     * @notice Lock the minter.
     * @dev This cannot be reversed and is only callable by the owner when not locked.
     */
    function lockMinter() external override onlyOwner whenMinterNotLocked {
        isMinterLocked = true;

        emit MinterLocked();
    }

    /**
     * @notice Mint a Noun with `nounId` to the provided `to` address.
     */
    function _mintTo(address to, uint256 nounId) internal returns (uint256) {
        // INounsSeeder.Seed memory seed = seeds[nounId] = seeder.generateSeed(nounId, descriptor);

        _mint(owner(), to, nounId);
        emit NounCreated(nounId);

        return nounId;
    }
}
        

/_openzeppelin/contracts/access/Ownable.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}
          

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

/_openzeppelin/contracts/utils/Address.sol

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}
          

/_openzeppelin/contracts/utils/Context.sol

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

pragma solidity ^0.8.0;

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

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

/_openzeppelin/contracts/utils/Strings.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

/_openzeppelin/contracts/utils/introspection/ERC165.sol

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

/_openzeppelin/contracts/utils/introspection/IERC165.sol

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

pragma solidity ^0.8.0;

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

/_openzeppelin/contracts/utils/math/Math.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/contracts/base/ERC721.sol

// SPDX-License-Identifier: MIT

/// @title ERC721 Token Implementation

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

// LICENSE
// ERC721.sol modifies OpenZeppelin's ERC721.sol:
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/ERC721.sol
//
// ERC721.sol source code copyright OpenZeppelin licensed under the MIT License.
// With modifications by Nounders DAO.
//
//
// MODIFICATIONS:
// `_safeMint` and `_mint` contain an additional `creator` argument and
// emit two `Transfer` logs, rather than one. The first log displays the
// transfer (mint) from `address(0)` to the `creator`. The second displays the
// transfer from the `creator` to the `to` address. This enables correct
// attribution on various NFT marketplaces.

pragma solidity ^0.8.6;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
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`, transfers it to `to`, and emits two log events -
     * 1. Credits the `minter` with the mint.
     * 2. Shows transfer from the `minter` 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 creator,
        address to,
        uint256 tokenId
    ) internal virtual {
        _safeMint(creator, 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 creator,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(creator, to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            'ERC721: transfer to non ERC721Receiver implementer'
        );
    }

    /**
     * @dev Mints `tokenId`, transfers it to `to`, and emits two log events -
     * 1. Credits the `creator` with the mint.
     * 2. Shows transfer from the `creator` 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 creator,
        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), creator, tokenId);
        emit Transfer(creator, 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 {}
}
          

/contracts/base/ERC721Checkpointable.sol

// SPDX-License-Identifier: BSD-3-Clause

/// @title Vote checkpointing for an ERC-721 token

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

// LICENSE
// ERC721Checkpointable.sol uses and modifies part of Compound Lab's Comp.sol:
// https://github.com/compound-finance/compound-protocol/blob/ae4388e780a8d596d97619d9704a931a2752c2bc/contracts/Governance/Comp.sol
//
// Comp.sol source code Copyright 2020 Compound Labs, Inc. licensed under the BSD-3-Clause license.
// With modifications by Nounders DAO.
//
// Additional conditions of BSD-3-Clause can be found here: https://opensource.org/licenses/BSD-3-Clause
//
// MODIFICATIONS
// Checkpointing logic from Comp.sol has been used with the following modifications:
// - `delegates` is renamed to `_delegates` and is set to private
// - `delegates` is a public function that uses the `_delegates` mapping look-up, but unlike
//   Comp.sol, returns the delegator's own address if there is no delegate.
//   This avoids the delegator needing to "delegate to self" with an additional transaction
// - `_transferTokens()` is renamed `_beforeTokenTransfer()` and adapted to hook into OpenZeppelin's ERC721 hooks.

pragma solidity ^0.8.6;

import './ERC721Enumerable.sol';

abstract contract ERC721Checkpointable is ERC721Enumerable {
    /// @notice Defines decimals as per ERC-20 convention to make integrations with 3rd party governance platforms easier
    uint8 public constant decimals = 0;

    /// @notice A record of each accounts delegate
    mapping(address => address) private _delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint96 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping(address => mapping(uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping(address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH =
        keccak256('EIP712Domain(string name,uint256 chainId,address verifyingContract)');

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH =
        keccak256('Delegation(address delegatee,uint256 nonce,uint256 expiry)');

    /// @notice A record of states for signing / validating signatures
    mapping(address => uint256) public nonces;

    /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);

    /**
     * @notice The votes a delegator can delegate, which is the current balance of the delegator.
     * @dev Used when calling `_delegate()`
     */
    function votesToDelegate(address delegator) public view returns (uint96) {
        return safe96(balanceOf(delegator), 'ERC721Checkpointable::votesToDelegate: amount exceeds 96 bits');
    }

    /**
     * @notice Overrides the standard `Comp.sol` delegates mapping to return
     * the delegator's own address if they haven't delegated.
     * This avoids having to delegate to oneself.
     */
    function delegates(address delegator) public view returns (address) {
        address current = _delegates[delegator];
        return current == address(0) ? delegator : current;
    }

    /**
     * @notice Adapted from `_transferTokens()` in `Comp.sol` to update delegate votes.
     * @dev hooks into OpenZeppelin's `ERC721._transfer`
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override {
        super._beforeTokenTransfer(from, to, tokenId);

        /// @notice Differs from `_transferTokens()` to use `delegates` override method to simulate auto-delegation
        _moveDelegates(delegates(from), delegates(to), 1);
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegatee The address to delegate votes to
     */
    function delegate(address delegatee) public {
        if (delegatee == address(0)) delegatee = msg.sender;
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public {
        bytes32 domainSeparator = keccak256(
            abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this))
        );
        bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));
        bytes32 digest = keccak256(abi.encodePacked('\x19\x01', domainSeparator, structHash));
        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), 'ERC721Checkpointable::delegateBySig: invalid signature');
        require(nonce == nonces[signatory]++, 'ERC721Checkpointable::delegateBySig: invalid nonce');
        require(block.timestamp <= expiry, 'ERC721Checkpointable::delegateBySig: signature expired');
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account) external view returns (uint96) {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint256 blockNumber) public view returns (uint96) {
        require(blockNumber < block.number, 'ERC721Checkpointable::getPriorVotes: not yet determined');

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee) internal {
        /// @notice differs from `_delegate()` in `Comp.sol` to use `delegates` override method to simulate auto-delegation
        address currentDelegate = delegates(delegator);

        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        uint96 amount = votesToDelegate(delegator);

        _moveDelegates(currentDelegate, delegatee, amount);
    }

    function _moveDelegates(
        address srcRep,
        address dstRep,
        uint96 amount
    ) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint96 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint96 srcRepNew = sub96(srcRepOld, amount, 'ERC721Checkpointable::_moveDelegates: amount underflows');
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint96 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint96 dstRepNew = add96(dstRepOld, amount, 'ERC721Checkpointable::_moveDelegates: amount overflows');
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(
        address delegatee,
        uint32 nCheckpoints,
        uint96 oldVotes,
        uint96 newVotes
    ) internal {
        uint32 blockNumber = safe32(
            block.number,
            'ERC721Checkpointable::_writeCheckpoint: block number exceeds 32 bits'
        );

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint256 n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function safe96(uint256 n, string memory errorMessage) internal pure returns (uint96) {
        require(n < 2**96, errorMessage);
        return uint96(n);
    }

    function add96(
        uint96 a,
        uint96 b,
        string memory errorMessage
    ) internal pure returns (uint96) {
        uint96 c = a + b;
        require(c >= a, errorMessage);
        return c;
    }

    function sub96(
        uint96 a,
        uint96 b,
        string memory errorMessage
    ) internal pure returns (uint96) {
        require(b <= a, errorMessage);
        return a - b;
    }

    function getChainId() internal view returns (uint256) {
        uint256 chainId;
        assembly {
            chainId := chainid()
        }
        return chainId;
    }
}
          

/contracts/base/ERC721Enumerable.sol

// SPDX-License-Identifier: MIT

/// @title ERC721 Enumerable Extension

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

// LICENSE
// ERC721.sol modifies OpenZeppelin's ERC721Enumerable.sol:
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/extensions/ERC721Enumerable.sol
//
// ERC721Enumerable.sol source code copyright OpenZeppelin licensed under the MIT License.
// With modifications by Nounders DAO.
//
// MODIFICATIONS:
// Consumes modified `ERC721` contract. See notes in `ERC721.sol`.

pragma solidity ^0.8.0;

import './ERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';

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

/contracts/interfaces/INounsToken.sol

// SPDX-License-Identifier: GPL-3.0

/// @title Interface for NounsToken

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

pragma solidity ^0.8.6;

import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol';
// import { INounsDescriptorMinimal } from './INounsDescriptorMinimal.sol';
// import { INounsSeeder } from './INounsSeeder.sol';

interface INounsToken is IERC721 {
    event NounCreated(uint256 indexed tokenId);

    event NounBurned(uint256 indexed tokenId);

    event NoundersDAOUpdated(address noundersDAO);

    event MinterUpdated(address minter);

    event MinterLocked();

    // event DescriptorUpdated(INounsDescriptorMinimal descriptor);

    event DescriptorLocked();

    // event SeederUpdated(INounsSeeder seeder);

    event SeederLocked();

    function mint() external returns (uint256);

    function burn(uint256 tokenId) external;

    function dataURI(uint256 tokenId) external returns (string memory);

    function setNoundersDAO(address noundersDAO) external;

    function setMinter(address minter) external;

    function lockMinter() external;

    // function setDescriptor(INounsDescriptorMinimal descriptor) external;

    // function lockDescriptor() external;

    // function setSeeder(INounsSeeder seeder) external;

    // function lockSeeder() external;
}
          

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_noundersDAO","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"DelegateChanged","inputs":[{"type":"address","name":"delegator","internalType":"address","indexed":true},{"type":"address","name":"fromDelegate","internalType":"address","indexed":true},{"type":"address","name":"toDelegate","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"DelegateVotesChanged","inputs":[{"type":"address","name":"delegate","internalType":"address","indexed":true},{"type":"uint256","name":"previousBalance","internalType":"uint256","indexed":false},{"type":"uint256","name":"newBalance","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DescriptorLocked","inputs":[],"anonymous":false},{"type":"event","name":"MinterLocked","inputs":[],"anonymous":false},{"type":"event","name":"MinterUpdated","inputs":[{"type":"address","name":"minter","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"NounBurned","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"NounCreated","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"NoundersDAOUpdated","inputs":[{"type":"address","name":"noundersDAO","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SeederLocked","inputs":[],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DELEGATION_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"baseExtension","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"baseURI","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"nounId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"fromBlock","internalType":"uint32"},{"type":"uint96","name":"votes","internalType":"uint96"}],"name":"checkpoints","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint32","name":"","internalType":"uint32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"contractURI","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"dataURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"delegate","inputs":[{"type":"address","name":"delegatee","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"delegateBySig","inputs":[{"type":"address","name":"delegatee","internalType":"address"},{"type":"uint256","name":"nonce","internalType":"uint256"},{"type":"uint256","name":"expiry","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"delegates","inputs":[{"type":"address","name":"delegator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"getCurrentVotes","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"getPriorVotes","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"blockNumber","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isMinterLocked","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"lockMinter","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mint","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"minter","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"noundersDAO","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint32","name":"","internalType":"uint32"}],"name":"numCheckpoints","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBaseURI","inputs":[{"type":"string","name":"_newBaseURI","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setContractURIHash","inputs":[{"type":"string","name":"newContractURIHash","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMinter","inputs":[{"type":"address","name":"_minter","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNoundersDAO","inputs":[{"type":"address","name":"_noundersDAO","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenByIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenOfOwnerByIndex","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"votesToDelegate","inputs":[{"type":"address","name":"delegator","internalType":"address"}]}]
              

Contract Creation Code

0x60806040526040518060600160405280602e815260200162006480602e9139601290805190602001906200003592919062000328565b506040518060800160405280605481526020016200642c60549139601390805190602001906200006792919062000328565b506040518060400160405280600581526020017f2e6a736f6e00000000000000000000000000000000000000000000000000000081525060149080519060200190620000b592919062000328565b50348015620000c357600080fd5b50604051620064ae380380620064ae8339818101604052810190620000e99190620003ef565b6040518060400160405280600981526020017f536f6c617250756e6b00000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f7370756e6b00000000000000000000000000000000000000000000000000000081525062000175620001696200025c60201b60201c565b6200026460201b60201c565b81600190805190602001906200018d92919062000328565b508060029080519060200190620001a692919062000328565b505050600160118190555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050620004d9565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620003369062000455565b90600052602060002090601f0160209004810192826200035a5760008555620003a6565b82601f106200037557805160ff1916838001178555620003a6565b82800160010185558215620003a6579182015b82811115620003a557825182559160200191906001019062000388565b5b509050620003b59190620003b9565b5090565b5b80821115620003d4576000816000905550600101620003ba565b5090565b600081519050620003e981620004bf565b92915050565b600060208284031215620004085762000407620004ba565b5b60006200041884828501620003d8565b91505092915050565b60006200042e8262000435565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200046e57607f821691505b602082108114156200048557620004846200048b565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b620004ca8162000421565b8114620004d657600080fd5b50565b615f4380620004e96000396000f3fe608060405234801561001057600080fd5b506004361061027f5760003560e01c80636c0360eb1161015c578063b88d4fde116100ce578063e8a3d48511610087578063e8a3d485146107c2578063e9580e91146107e0578063e985e9c514610810578063f1127ed814610840578063f2fde38b14610871578063fca3b5aa1461088d5761027f565b8063b88d4fde14610702578063baedc1c41461071e578063c3cda5201461073a578063c668286214610756578063c87b56dd14610774578063e7a324dc146107a45761027f565b8063782d6fe111610120578063782d6fe11461061a5780637ecebe001461064a5780638da5cb5b1461067a57806395d89b4114610698578063a22cb465146106b6578063b4b5ea57146106d25761027f565b80636c0360eb146105885780636fcfff45146105a657806370a08231146105d6578063715018a61461060657806376daebe1146106105761027f565b80632f745c59116101f557806355f804b3116101b957806355f804b3146104a2578063587cde1e146104be5780635ac1e3bb146104ee5780635c19a95c1461051e5780636352211e1461053a578063655932a41461056a5761027f565b80632f745c59146103ec578063313ce5671461041c57806342842e0e1461043a57806342966c68146104565780634f6ccce7146104725761027f565b8063095ea7b311610247578063095ea7b31461033c5780631249c58b1461035857806318160ddd146103765780631e688e101461039457806320606b70146103b257806323b872dd146103d05761027f565b806301ffc9a714610284578063058df0ab146102b457806306fdde03146102d057806307546172146102ee578063081812fc1461030c575b600080fd5b61029e600480360381019061029991906144dd565b6108a9565b6040516102ab9190614c00565b60405180910390f35b6102ce60048036038101906102c9919061424d565b610923565b005b6102d8610a2e565b6040516102e59190614d05565b60405180910390f35b6102f6610ac0565b6040516103039190614b99565b60405180910390f35b61032660048036038101906103219190614580565b610ae6565b6040516103339190614b99565b60405180910390f35b610356600480360381019061035191906143d0565b610b6b565b005b610360610c83565b60405161036d9190615047565b60405180910390f35b61037e610d5c565b60405161038b9190615047565b60405180910390f35b61039c610d69565b6040516103a99190614c00565b60405180910390f35b6103ba610d7c565b6040516103c79190614c1b565b60405180910390f35b6103ea60048036038101906103e591906142ba565b610da0565b005b610406600480360381019061040191906143d0565b610e00565b6040516104139190615047565b60405180910390f35b610424610ea5565b60405161043191906150a6565b60405180910390f35b610454600480360381019061044f91906142ba565b610eaa565b005b610470600480360381019061046b9190614580565b610eca565b005b61048c60048036038101906104879190614580565b610f93565b6040516104999190615047565b60405180910390f35b6104bc60048036038101906104b79190614537565b611004565b005b6104d860048036038101906104d3919061424d565b6110ae565b6040516104e59190614b99565b60405180910390f35b61050860048036038101906105039190614580565b611157565b6040516105159190614d05565b60405180910390f35b6105386004803603810190610533919061424d565b6111b1565b005b610554600480360381019061054f9190614580565b6111f7565b6040516105619190614b99565b60405180910390f35b6105726112a9565b60405161057f9190614b99565b60405180910390f35b6105906112cf565b60405161059d9190614d05565b60405180910390f35b6105c060048036038101906105bb919061424d565b61135d565b6040516105cd9190615062565b60405180910390f35b6105f060048036038101906105eb919061424d565b611380565b6040516105fd9190615047565b60405180910390f35b61060e611438565b005b61061861144c565b005b610634600480360381019061062f91906143d0565b6114ed565b60405161064191906150c1565b60405180910390f35b610664600480360381019061065f919061424d565b611928565b6040516106719190615047565b60405180910390f35b610682611940565b60405161068f9190614b99565b60405180910390f35b6106a0611969565b6040516106ad9190614d05565b60405180910390f35b6106d060048036038101906106cb9190614390565b6119fb565b005b6106ec60048036038101906106e7919061424d565b611b7c565b6040516106f991906150c1565b60405180910390f35b61071c6004803603810190610717919061430d565b611c73565b005b61073860048036038101906107339190614537565b611cd5565b005b610754600480360381019061074f9190614410565b611cf7565b005b61075e611f8c565b60405161076b9190614d05565b60405180910390f35b61078e60048036038101906107899190614580565b61201a565b60405161079b9190614d05565b60405180910390f35b6107ac6120c4565b6040516107b99190614c1b565b60405180910390f35b6107ca6120e8565b6040516107d79190614d05565b60405180910390f35b6107fa60048036038101906107f5919061424d565b612110565b60405161080791906150c1565b60405180910390f35b61082a6004803603810190610825919061427a565b612143565b6040516108379190614c00565b60405180910390f35b61085a6004803603810190610855919061449d565b612157565b60405161086892919061507d565b60405180910390f35b61088b6004803603810190610886919061424d565b6121b0565b005b6108a760048036038101906108a2919061424d565b612234565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061091c575061091b82612307565b5b9050919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146109b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109aa90614fc7565b60405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3a0b923617f180781f3530e464cb4a8b9393e69f47607e4eb28d61cd87ce968c81604051610a239190614b99565b60405180910390a150565b606060018054610a3d9061548a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a699061548a565b8015610ab65780601f10610a8b57610100808354040283529160200191610ab6565b820191906000526020600020905b815481529060010190602001808311610a9957829003601f168201915b5050505050905090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610af1826123e9565b610b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2790614f47565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b76826111f7565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bde90614fa7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c06612455565b73ffffffffffffffffffffffffffffffffffffffff161480610c355750610c3481610c2f612455565b612143565b5b610c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6b90614ea7565b60405180910390fd5b610c7e838361245d565b505050565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0c90614da7565b60405180910390fd5b610d57601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660116000815480929190610d4e906154ed565b91905055612516565b905090565b6000600980549050905090565b601060149054906101000a900460ff1681565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b610db1610dab612455565b82612560565b610df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de790614fe7565b60405180910390fd5b610dfb83838361263e565b505050565b6000610e0b83611380565b8210610e4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4390614d47565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600081565b610ec583838360405180602001604052806000815250611c73565b505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5190614da7565b60405180910390fd5b610f638161289a565b807f806be94a2ac8b92d74e99aa8add5a8e54528a01ec914a9e00d201a6480ed986360405160405180910390a250565b6000610f9d610d5c565b8210610fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd590615027565b60405180910390fd5b60098281548110610ff257610ff16155fc565b5b90600052602060002001549050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611094576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108b90614da7565b60405180910390fd5b80601390805190602001906110aa929190614022565b5050565b600080600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461114d578061114f565b825b915050919050565b6060611162826123e9565b6111a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119890614f07565b60405180910390fd5b6111aa8261201a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111ea573390505b6111f433826129ab565b50565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129790614ee7565b60405180910390fd5b80915050919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601380546112dc9061548a565b80601f01602080910402602001604051908101604052809291908181526020018280546113089061548a565b80156113555780601f1061132a57610100808354040283529160200191611355565b820191906000526020600020905b81548152906001019060200180831161133857829003601f168201915b505050505081565b600d6020528060005260406000206000915054906101000a900463ffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e890614ec7565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611440612ac5565b61144a6000612b43565b565b611454612ac5565b601060149054906101000a900460ff16156114a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149b90614e87565b60405180910390fd5b6001601060146101000a81548160ff0219169083151502179055507f192417b3f16b1ce69e0c59b0376549666650245ffc05e4b2569089dda8589b6660405160405180910390a1565b6000438210611531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152890615007565b60405180910390fd5b6000600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff16905060008163ffffffff16141561159e576000915050611922565b82600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006001846115ed919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff1663ffffffff16116116b257600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600183611674919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff16915050611922565b82600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008063ffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff1663ffffffff161115611733576000915050611922565b600080600183611743919061531b565b90505b8163ffffffff168163ffffffff1611156118a45760006002838361176a919061531b565b61177491906152b6565b8261177f919061531b565b90506000600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008363ffffffff1663ffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff1681525050905086816000015163ffffffff16141561187357806020015195505050505050611922565b86816000015163ffffffff16101561188d5781935061189d565b60018261189a919061531b565b92505b5050611746565b600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008363ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff1693505050505b92915050565b600e6020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546119789061548a565b80601f01602080910402602001604051908101604052809291908181526020018280546119a49061548a565b80156119f15780601f106119c6576101008083540402835291602001916119f1565b820191906000526020600020905b8154815290600101906020018083116119d457829003601f168201915b5050505050905090565b611a03612455565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6890614e27565b60405180910390fd5b8060066000611a7e612455565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b2b612455565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b709190614c00565b60405180910390a35050565b600080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff16905060008163ffffffff1611611be6576000611c6b565b600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600183611c34919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff165b915050919050565b611c84611c7e612455565b83612560565b611cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cba90614fe7565b60405180910390fd5b611ccf84848484612c07565b50505050565b611cdd612ac5565b8060129080519060200190611cf3929190614022565b5050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611d22610a2e565b80519060200120611d31612c63565b30604051602001611d459493929190614c7b565b60405160208183030381529060405280519060200120905060007fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf888888604051602001611d969493929190614c36565b60405160208183030381529060405280519060200120905060008282604051602001611dc3929190614b40565b604051602081830303815290604052805190602001209050600060018288888860405160008152602001604052604051611e009493929190614cc0565b6020604051602081039080840390855afa158015611e22573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9590614e47565b60405180910390fd5b600e60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611eee906154ed565b919050558914611f33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2a90614de7565b60405180910390fd5b87421115611f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6d90614d27565b60405180910390fd5b611f80818b6129ab565b50505050505050505050565b60148054611f999061548a565b80601f0160208091040260200160405190810160405280929190818152602001828054611fc59061548a565b80156120125780601f10611fe757610100808354040283529160200191612012565b820191906000526020600020905b815481529060010190602001808311611ff557829003601f168201915b505050505081565b6060612025826123e9565b612064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205b90614f07565b60405180910390fd5b600061206e612c70565b9050600081511161208e57604051806020016040528060008152506120bc565b8061209884612d02565b60146040516020016120ac93929190614b0f565b6040516020818303038152906040525b915050919050565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b606060126040516020016120fc9190614b77565b604051602081830303815290604052905090565b600061213c61211e83611380565b6040518060600160405280603d8152602001615e9a603d9139612dda565b9050919050565b600061214f8383612e38565b905092915050565b600c602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900463ffffffff16908060000160049054906101000a90046bffffffffffffffffffffffff16905082565b6121b8612ac5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221f90614d87565b60405180910390fd5b61223181612b43565b50565b61223c612ac5565b601060149054906101000a900460ff161561228c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228390614e87565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fad0f299ec81a386c98df0ac27dae11dd020ed1b56963c53a7292e7a3a314539a816040516122fc9190614b99565b60405180910390a150565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123d257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806123e257506123e182612ecc565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166124d0836111f7565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061252a612523611940565b8484612f36565b817f500276f57d63380e3c42ff9520054fa8200e8665da928e4553c8fa67d159087960405160405180910390a281905092915050565b600061256b826123e9565b6125aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a190614e67565b60405180910390fd5b60006125b5836111f7565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061262457508373ffffffffffffffffffffffffffffffffffffffff1661260c84610ae6565b73ffffffffffffffffffffffffffffffffffffffff16145b8061263557506126348185612143565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661265e826111f7565b73ffffffffffffffffffffffffffffffffffffffff16146126b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ab90614f87565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271b90614e07565b60405180910390fd5b61272f838383613160565b61273a60008261245d565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461278a91906152e7565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127e191906151e4565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006128a5826111f7565b90506128b381600084613160565b6128be60008361245d565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461290e91906152e7565b925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60006129b6836110ae565b905081600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f60405160405180910390a46000612ab284612110565b9050612abf82848361318c565b50505050565b612acd612455565b73ffffffffffffffffffffffffffffffffffffffff16612aeb611940565b73ffffffffffffffffffffffffffffffffffffffff1614612b41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3890614f67565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612c1284848461263e565b612c1e84848484613499565b612c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5490614d67565b60405180910390fd5b50505050565b6000804690508091505090565b606060138054612c7f9061548a565b80601f0160208091040260200160405190810160405280929190818152602001828054612cab9061548a565b8015612cf85780601f10612ccd57610100808354040283529160200191612cf8565b820191906000526020600020905b815481529060010190602001808311612cdb57829003601f168201915b5050505050905090565b606060006001612d1184613630565b01905060008167ffffffffffffffff811115612d3057612d2f61562b565b5b6040519080825280601f01601f191660200182016040528015612d625781602001600182028036833780820191505090505b509050600082602001820190505b600115612dcf578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612db957612db861556f565b5b0494506000851415612dca57612dcf565b612d70565b819350505050919050565b60006c0100000000000000000000000083108290612e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e259190614d05565b60405180910390fd5b5082905092915050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612fa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f9d90614f27565b60405180910390fd5b612faf816123e9565b15612fef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fe690614dc7565b60405180910390fd5b612ffb60008383613160565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461304b91906151e4565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61316b838383613783565b613187613177846110ae565b613180846110ae565b600161318c565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156131d657506000816bffffffffffffffffffffffff16115b1561349457600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613337576000600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1690506000808263ffffffff16116132795760006132fe565b600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006001846132c7919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff165b905060006133258285604051806060016040528060378152602001615ed760379139613897565b905061333386848484613911565b5050505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613493576000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1690506000808263ffffffff16116133d557600061345a565b600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600184613423919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff165b905060006134818285604051806060016040528060368152602001615e2060369139613c1f565b905061348f85848484613911565b5050505b5b505050565b60006134ba8473ffffffffffffffffffffffffffffffffffffffff16613c9e565b15613623578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134e3612455565b8786866040518563ffffffff1660e01b81526004016135059493929190614bb4565b602060405180830381600087803b15801561351f57600080fd5b505af192505050801561355057506040513d601f19601f8201168201806040525081019061354d919061450a565b60015b6135d3573d8060008114613580576040519150601f19603f3d011682016040523d82523d6000602084013e613585565b606091505b506000815114156135cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135c290614d67565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613628565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061368e577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816136845761368361556f565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106136cb576d04ee2d6d415b85acef810000000083816136c1576136c061556f565b5b0492506020810190505b662386f26fc1000083106136fa57662386f26fc1000083816136f0576136ef61556f565b5b0492506010810190505b6305f5e1008310613723576305f5e10083816137195761371861556f565b5b0492506008810190505b612710831061374857612710838161373e5761373d61556f565b5b0492506004810190505b6064831061376b57606483816137615761376061556f565b5b0492506002810190505b600a831061377a576001810190505b80915050919050565b61378e838383613cc1565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156137d1576137cc81613cc6565b613810565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461380f5761380e8382613d0f565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156138535761384e81613e7c565b613892565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613891576138908282613f4d565b5b5b505050565b6000836bffffffffffffffffffffffff16836bffffffffffffffffffffffff16111582906138fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138f29190614d05565b60405180910390fd5b508284613908919061534f565b90509392505050565b600061393543604051806080016040528060448152602001615e5660449139613fcc565b905060008463ffffffff161180156139d357508063ffffffff16600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060018761399d919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff1663ffffffff16145b15613a775781600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600187613a27919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160046101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550613bc8565b60405180604001604052808263ffffffff168152602001836bffffffffffffffffffffffff16815250600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008663ffffffff1663ffffffff16815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050600184613b6a919061523a565b600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548163ffffffff021916908363ffffffff1602179055505b8473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248484604051613c109291906150dc565b60405180910390a25050505050565b6000808385613c2e9190615274565b9050846bffffffffffffffffffffffff16816bffffffffffffffffffffffff1610158390613c92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c899190614d05565b60405180910390fd5b50809150509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613d1c84611380565b613d2691906152e7565b9050600060086000848152602001908152602001600020549050818114613e0b576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600980549050613e9091906152e7565b90506000600a6000848152602001908152602001600020549050600060098381548110613ec057613ebf6155fc565b5b906000526020600020015490508060098381548110613ee257613ee16155fc565b5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613f3157613f306155cd565b5b6001900381819060005260206000200160009055905550505050565b6000613f5883611380565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b600064010000000083108290614018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161400f9190614d05565b60405180910390fd5b5082905092915050565b82805461402e9061548a565b90600052602060002090601f0160209004810192826140505760008555614097565b82601f1061406957805160ff1916838001178555614097565b82800160010185558215614097579182015b8281111561409657825182559160200191906001019061407b565b5b5090506140a491906140a8565b5090565b5b808211156140c15760008160009055506001016140a9565b5090565b60006140d86140d38461512a565b615105565b9050828152602081018484840111156140f4576140f361565f565b5b6140ff848285615448565b509392505050565b600061411a6141158461515b565b615105565b9050828152602081018484840111156141365761413561565f565b5b614141848285615448565b509392505050565b60008135905061415881615d7e565b92915050565b60008135905061416d81615d95565b92915050565b60008135905061418281615dac565b92915050565b60008135905061419781615dc3565b92915050565b6000815190506141ac81615dc3565b92915050565b600082601f8301126141c7576141c661565a565b5b81356141d78482602086016140c5565b91505092915050565b600082601f8301126141f5576141f461565a565b5b8135614205848260208601614107565b91505092915050565b60008135905061421d81615dda565b92915050565b60008135905061423281615df1565b92915050565b60008135905061424781615e08565b92915050565b60006020828403121561426357614262615669565b5b600061427184828501614149565b91505092915050565b6000806040838503121561429157614290615669565b5b600061429f85828601614149565b92505060206142b085828601614149565b9150509250929050565b6000806000606084860312156142d3576142d2615669565b5b60006142e186828701614149565b93505060206142f286828701614149565b92505060406143038682870161420e565b9150509250925092565b6000806000806080858703121561432757614326615669565b5b600061433587828801614149565b945050602061434687828801614149565b93505060406143578782880161420e565b925050606085013567ffffffffffffffff81111561437857614377615664565b5b614384878288016141b2565b91505092959194509250565b600080604083850312156143a7576143a6615669565b5b60006143b585828601614149565b92505060206143c68582860161415e565b9150509250929050565b600080604083850312156143e7576143e6615669565b5b60006143f585828601614149565b92505060206144068582860161420e565b9150509250929050565b60008060008060008060c0878903121561442d5761442c615669565b5b600061443b89828a01614149565b965050602061444c89828a0161420e565b955050604061445d89828a0161420e565b945050606061446e89828a01614238565b935050608061447f89828a01614173565b92505060a061449089828a01614173565b9150509295509295509295565b600080604083850312156144b4576144b3615669565b5b60006144c285828601614149565b92505060206144d385828601614223565b9150509250929050565b6000602082840312156144f3576144f2615669565b5b600061450184828501614188565b91505092915050565b6000602082840312156145205761451f615669565b5b600061452e8482850161419d565b91505092915050565b60006020828403121561454d5761454c615669565b5b600082013567ffffffffffffffff81111561456b5761456a615664565b5b614577848285016141e0565b91505092915050565b60006020828403121561459657614595615669565b5b60006145a48482850161420e565b91505092915050565b6145b681615383565b82525050565b6145c581615395565b82525050565b6145d4816153a1565b82525050565b6145eb6145e6826153a1565b615536565b82525050565b60006145fc826151a1565b61460681856151b7565b9350614616818560208601615457565b61461f8161566e565b840191505092915050565b6000614635826151ac565b61463f81856151c8565b935061464f818560208601615457565b6146588161566e565b840191505092915050565b600061466e826151ac565b61467881856151d9565b9350614688818560208601615457565b80840191505092915050565b600081546146a18161548a565b6146ab81866151d9565b945060018216600081146146c657600181146146d75761470a565b60ff1983168652818601935061470a565b6146e08561518c565b60005b83811015614702578154818901526001820191506020810190506146e3565b838801955050505b50505092915050565b60006147206036836151c8565b915061472b8261567f565b604082019050919050565b6000614743602b836151c8565b915061474e826156ce565b604082019050919050565b60006147666032836151c8565b91506147718261571d565b604082019050919050565b60006147896026836151c8565b91506147948261576c565b604082019050919050565b60006147ac6018836151c8565b91506147b7826157bb565b602082019050919050565b60006147cf601c836151c8565b91506147da826157e4565b602082019050919050565b60006147f26002836151d9565b91506147fd8261580d565b600282019050919050565b60006148156032836151c8565b915061482082615836565b604082019050919050565b60006148386024836151c8565b915061484382615885565b604082019050919050565b600061485b6019836151c8565b9150614866826158d4565b602082019050919050565b600061487e6036836151c8565b9150614889826158fd565b604082019050919050565b60006148a1602c836151c8565b91506148ac8261594c565b604082019050919050565b60006148c46007836151d9565b91506148cf8261599b565b600782019050919050565b60006148e76010836151c8565b91506148f2826159c4565b602082019050919050565b600061490a6038836151c8565b9150614915826159ed565b604082019050919050565b600061492d602a836151c8565b915061493882615a3c565b604082019050919050565b60006149506029836151c8565b915061495b82615a8b565b604082019050919050565b6000614973602b836151c8565b915061497e82615ada565b604082019050919050565b60006149966020836151c8565b91506149a182615b29565b602082019050919050565b60006149b9602c836151c8565b91506149c482615b52565b604082019050919050565b60006149dc6020836151c8565b91506149e782615ba1565b602082019050919050565b60006149ff6029836151c8565b9150614a0a82615bca565b604082019050919050565b6000614a226021836151c8565b9150614a2d82615c19565b604082019050919050565b6000614a45601e836151c8565b9150614a5082615c68565b602082019050919050565b6000614a686031836151c8565b9150614a7382615c91565b604082019050919050565b6000614a8b6037836151c8565b9150614a9682615ce0565b604082019050919050565b6000614aae602c836151c8565b9150614ab982615d2f565b604082019050919050565b614acd816153f7565b82525050565b614adc81615401565b82525050565b614aeb81615411565b82525050565b614afa81615436565b82525050565b614b098161541e565b82525050565b6000614b1b8286614663565b9150614b278285614663565b9150614b338284614694565b9150819050949350505050565b6000614b4b826147e5565b9150614b5782856145da565b602082019150614b6782846145da565b6020820191508190509392505050565b6000614b82826148b7565b9150614b8e8284614694565b915081905092915050565b6000602082019050614bae60008301846145ad565b92915050565b6000608082019050614bc960008301876145ad565b614bd660208301866145ad565b614be36040830185614ac4565b8181036060830152614bf581846145f1565b905095945050505050565b6000602082019050614c1560008301846145bc565b92915050565b6000602082019050614c3060008301846145cb565b92915050565b6000608082019050614c4b60008301876145cb565b614c5860208301866145ad565b614c656040830185614ac4565b614c726060830184614ac4565b95945050505050565b6000608082019050614c9060008301876145cb565b614c9d60208301866145cb565b614caa6040830185614ac4565b614cb760608301846145ad565b95945050505050565b6000608082019050614cd560008301876145cb565b614ce26020830186614ae2565b614cef60408301856145cb565b614cfc60608301846145cb565b95945050505050565b60006020820190508181036000830152614d1f818461462a565b905092915050565b60006020820190508181036000830152614d4081614713565b9050919050565b60006020820190508181036000830152614d6081614736565b9050919050565b60006020820190508181036000830152614d8081614759565b9050919050565b60006020820190508181036000830152614da08161477c565b9050919050565b60006020820190508181036000830152614dc08161479f565b9050919050565b60006020820190508181036000830152614de0816147c2565b9050919050565b60006020820190508181036000830152614e0081614808565b9050919050565b60006020820190508181036000830152614e208161482b565b9050919050565b60006020820190508181036000830152614e408161484e565b9050919050565b60006020820190508181036000830152614e6081614871565b9050919050565b60006020820190508181036000830152614e8081614894565b9050919050565b60006020820190508181036000830152614ea0816148da565b9050919050565b60006020820190508181036000830152614ec0816148fd565b9050919050565b60006020820190508181036000830152614ee081614920565b9050919050565b60006020820190508181036000830152614f0081614943565b9050919050565b60006020820190508181036000830152614f2081614966565b9050919050565b60006020820190508181036000830152614f4081614989565b9050919050565b60006020820190508181036000830152614f60816149ac565b9050919050565b60006020820190508181036000830152614f80816149cf565b9050919050565b60006020820190508181036000830152614fa0816149f2565b9050919050565b60006020820190508181036000830152614fc081614a15565b9050919050565b60006020820190508181036000830152614fe081614a38565b9050919050565b6000602082019050818103600083015261500081614a5b565b9050919050565b6000602082019050818103600083015261502081614a7e565b9050919050565b6000602082019050818103600083015261504081614aa1565b9050919050565b600060208201905061505c6000830184614ac4565b92915050565b60006020820190506150776000830184614ad3565b92915050565b60006040820190506150926000830185614ad3565b61509f6020830184614b00565b9392505050565b60006020820190506150bb6000830184614ae2565b92915050565b60006020820190506150d66000830184614b00565b92915050565b60006040820190506150f16000830185614af1565b6150fe6020830184614af1565b9392505050565b600061510f615120565b905061511b82826154bc565b919050565b6000604051905090565b600067ffffffffffffffff8211156151455761514461562b565b5b61514e8261566e565b9050602081019050919050565b600067ffffffffffffffff8211156151765761517561562b565b5b61517f8261566e565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006151ef826153f7565b91506151fa836153f7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561522f5761522e615540565b5b828201905092915050565b600061524582615401565b915061525083615401565b92508263ffffffff0382111561526957615268615540565b5b828201905092915050565b600061527f8261541e565b915061528a8361541e565b9250826bffffffffffffffffffffffff038211156152ab576152aa615540565b5b828201905092915050565b60006152c182615401565b91506152cc83615401565b9250826152dc576152db61556f565b5b828204905092915050565b60006152f2826153f7565b91506152fd836153f7565b9250828210156153105761530f615540565b5b828203905092915050565b600061532682615401565b915061533183615401565b92508282101561534457615343615540565b5b828203905092915050565b600061535a8261541e565b91506153658361541e565b92508282101561537857615377615540565b5b828203905092915050565b600061538e826153d7565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b60006154418261541e565b9050919050565b82818337600083830152505050565b60005b8381101561547557808201518184015260208101905061545a565b83811115615484576000848401525b50505050565b600060028204905060018216806154a257607f821691505b602082108114156154b6576154b561559e565b5b50919050565b6154c58261566e565b810181811067ffffffffffffffff821117156154e4576154e361562b565b5b80604052505050565b60006154f8826153f7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561552b5761552a615540565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960008201527f5369673a207369676e6174757265206578706972656400000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f53656e646572206973206e6f7420746865206d696e7465720000000000000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960008201527f5369673a20696e76616c6964206e6f6e63650000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960008201527f5369673a20696e76616c6964207369676e617475726500000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f697066733a2f2f00000000000000000000000000000000000000000000000000600082015250565b7f4d696e746572206973206c6f636b656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960008201527f7374656e7420746f6b656e000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f53656e646572206973206e6f7420746865206e6f756e646572732044414f0000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231436865636b706f696e7461626c653a3a6765745072696f72566f60008201527f7465733a206e6f74207965742064657465726d696e6564000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b615d8781615383565b8114615d9257600080fd5b50565b615d9e81615395565b8114615da957600080fd5b50565b615db5816153a1565b8114615dc057600080fd5b50565b615dcc816153ab565b8114615dd757600080fd5b50565b615de3816153f7565b8114615dee57600080fd5b50565b615dfa81615401565b8114615e0557600080fd5b50565b615e1181615411565b8114615e1c57600080fd5b5056fe455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e74206f766572666c6f7773455243373231436865636b706f696e7461626c653a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473455243373231436865636b706f696e7461626c653a3a766f746573546f44656c65676174653a20616d6f756e7420657863656564732039362062697473455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e7420756e646572666c6f7773a26469706673582212207a52de1f677b709628b8ec569761e299ba963dc05f964bcc179a2142fcf3269464736f6c6343000807003368747470733a2f2f637962657274696d652e6d7970696e6174612e636c6f75642f697066732f516d527362706e3177416d6472355642367657554d475355567a6a545372343655446574566a5072783135443875516d527362706e3177416d6472355642367657554d475355567a6a545372343655446574566a50727831354438750000000000000000000000008b2f369379c6ccfec432e34d435712616666963a

Deployed ByteCode

0x608060405234801561001057600080fd5b506004361061027f5760003560e01c80636c0360eb1161015c578063b88d4fde116100ce578063e8a3d48511610087578063e8a3d485146107c2578063e9580e91146107e0578063e985e9c514610810578063f1127ed814610840578063f2fde38b14610871578063fca3b5aa1461088d5761027f565b8063b88d4fde14610702578063baedc1c41461071e578063c3cda5201461073a578063c668286214610756578063c87b56dd14610774578063e7a324dc146107a45761027f565b8063782d6fe111610120578063782d6fe11461061a5780637ecebe001461064a5780638da5cb5b1461067a57806395d89b4114610698578063a22cb465146106b6578063b4b5ea57146106d25761027f565b80636c0360eb146105885780636fcfff45146105a657806370a08231146105d6578063715018a61461060657806376daebe1146106105761027f565b80632f745c59116101f557806355f804b3116101b957806355f804b3146104a2578063587cde1e146104be5780635ac1e3bb146104ee5780635c19a95c1461051e5780636352211e1461053a578063655932a41461056a5761027f565b80632f745c59146103ec578063313ce5671461041c57806342842e0e1461043a57806342966c68146104565780634f6ccce7146104725761027f565b8063095ea7b311610247578063095ea7b31461033c5780631249c58b1461035857806318160ddd146103765780631e688e101461039457806320606b70146103b257806323b872dd146103d05761027f565b806301ffc9a714610284578063058df0ab146102b457806306fdde03146102d057806307546172146102ee578063081812fc1461030c575b600080fd5b61029e600480360381019061029991906144dd565b6108a9565b6040516102ab9190614c00565b60405180910390f35b6102ce60048036038101906102c9919061424d565b610923565b005b6102d8610a2e565b6040516102e59190614d05565b60405180910390f35b6102f6610ac0565b6040516103039190614b99565b60405180910390f35b61032660048036038101906103219190614580565b610ae6565b6040516103339190614b99565b60405180910390f35b610356600480360381019061035191906143d0565b610b6b565b005b610360610c83565b60405161036d9190615047565b60405180910390f35b61037e610d5c565b60405161038b9190615047565b60405180910390f35b61039c610d69565b6040516103a99190614c00565b60405180910390f35b6103ba610d7c565b6040516103c79190614c1b565b60405180910390f35b6103ea60048036038101906103e591906142ba565b610da0565b005b610406600480360381019061040191906143d0565b610e00565b6040516104139190615047565b60405180910390f35b610424610ea5565b60405161043191906150a6565b60405180910390f35b610454600480360381019061044f91906142ba565b610eaa565b005b610470600480360381019061046b9190614580565b610eca565b005b61048c60048036038101906104879190614580565b610f93565b6040516104999190615047565b60405180910390f35b6104bc60048036038101906104b79190614537565b611004565b005b6104d860048036038101906104d3919061424d565b6110ae565b6040516104e59190614b99565b60405180910390f35b61050860048036038101906105039190614580565b611157565b6040516105159190614d05565b60405180910390f35b6105386004803603810190610533919061424d565b6111b1565b005b610554600480360381019061054f9190614580565b6111f7565b6040516105619190614b99565b60405180910390f35b6105726112a9565b60405161057f9190614b99565b60405180910390f35b6105906112cf565b60405161059d9190614d05565b60405180910390f35b6105c060048036038101906105bb919061424d565b61135d565b6040516105cd9190615062565b60405180910390f35b6105f060048036038101906105eb919061424d565b611380565b6040516105fd9190615047565b60405180910390f35b61060e611438565b005b61061861144c565b005b610634600480360381019061062f91906143d0565b6114ed565b60405161064191906150c1565b60405180910390f35b610664600480360381019061065f919061424d565b611928565b6040516106719190615047565b60405180910390f35b610682611940565b60405161068f9190614b99565b60405180910390f35b6106a0611969565b6040516106ad9190614d05565b60405180910390f35b6106d060048036038101906106cb9190614390565b6119fb565b005b6106ec60048036038101906106e7919061424d565b611b7c565b6040516106f991906150c1565b60405180910390f35b61071c6004803603810190610717919061430d565b611c73565b005b61073860048036038101906107339190614537565b611cd5565b005b610754600480360381019061074f9190614410565b611cf7565b005b61075e611f8c565b60405161076b9190614d05565b60405180910390f35b61078e60048036038101906107899190614580565b61201a565b60405161079b9190614d05565b60405180910390f35b6107ac6120c4565b6040516107b99190614c1b565b60405180910390f35b6107ca6120e8565b6040516107d79190614d05565b60405180910390f35b6107fa60048036038101906107f5919061424d565b612110565b60405161080791906150c1565b60405180910390f35b61082a6004803603810190610825919061427a565b612143565b6040516108379190614c00565b60405180910390f35b61085a6004803603810190610855919061449d565b612157565b60405161086892919061507d565b60405180910390f35b61088b6004803603810190610886919061424d565b6121b0565b005b6108a760048036038101906108a2919061424d565b612234565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061091c575061091b82612307565b5b9050919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146109b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109aa90614fc7565b60405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3a0b923617f180781f3530e464cb4a8b9393e69f47607e4eb28d61cd87ce968c81604051610a239190614b99565b60405180910390a150565b606060018054610a3d9061548a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a699061548a565b8015610ab65780601f10610a8b57610100808354040283529160200191610ab6565b820191906000526020600020905b815481529060010190602001808311610a9957829003601f168201915b5050505050905090565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610af1826123e9565b610b30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2790614f47565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b76826111f7565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bde90614fa7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c06612455565b73ffffffffffffffffffffffffffffffffffffffff161480610c355750610c3481610c2f612455565b612143565b5b610c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6b90614ea7565b60405180910390fd5b610c7e838361245d565b505050565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0c90614da7565b60405180910390fd5b610d57601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660116000815480929190610d4e906154ed565b91905055612516565b905090565b6000600980549050905090565b601060149054906101000a900460ff1681565b7f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b610db1610dab612455565b82612560565b610df0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de790614fe7565b60405180910390fd5b610dfb83838361263e565b505050565b6000610e0b83611380565b8210610e4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4390614d47565b60405180910390fd5b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600081565b610ec583838360405180602001604052806000815250611c73565b505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5190614da7565b60405180910390fd5b610f638161289a565b807f806be94a2ac8b92d74e99aa8add5a8e54528a01ec914a9e00d201a6480ed986360405160405180910390a250565b6000610f9d610d5c565b8210610fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd590615027565b60405180910390fd5b60098281548110610ff257610ff16155fc565b5b90600052602060002001549050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611094576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108b90614da7565b60405180910390fd5b80601390805190602001906110aa929190614022565b5050565b600080600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461114d578061114f565b825b915050919050565b6060611162826123e9565b6111a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119890614f07565b60405180910390fd5b6111aa8261201a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111ea573390505b6111f433826129ab565b50565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129790614ee7565b60405180910390fd5b80915050919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601380546112dc9061548a565b80601f01602080910402602001604051908101604052809291908181526020018280546113089061548a565b80156113555780601f1061132a57610100808354040283529160200191611355565b820191906000526020600020905b81548152906001019060200180831161133857829003601f168201915b505050505081565b600d6020528060005260406000206000915054906101000a900463ffffffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e890614ec7565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611440612ac5565b61144a6000612b43565b565b611454612ac5565b601060149054906101000a900460ff16156114a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149b90614e87565b60405180910390fd5b6001601060146101000a81548160ff0219169083151502179055507f192417b3f16b1ce69e0c59b0376549666650245ffc05e4b2569089dda8589b6660405160405180910390a1565b6000438210611531576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152890615007565b60405180910390fd5b6000600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff16905060008163ffffffff16141561159e576000915050611922565b82600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006001846115ed919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff1663ffffffff16116116b257600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600183611674919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff16915050611922565b82600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008063ffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff1663ffffffff161115611733576000915050611922565b600080600183611743919061531b565b90505b8163ffffffff168163ffffffff1611156118a45760006002838361176a919061531b565b61177491906152b6565b8261177f919061531b565b90506000600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008363ffffffff1663ffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016000820160049054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff1681525050905086816000015163ffffffff16141561187357806020015195505050505050611922565b86816000015163ffffffff16101561188d5781935061189d565b60018261189a919061531b565b92505b5050611746565b600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008363ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff1693505050505b92915050565b600e6020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546119789061548a565b80601f01602080910402602001604051908101604052809291908181526020018280546119a49061548a565b80156119f15780601f106119c6576101008083540402835291602001916119f1565b820191906000526020600020905b8154815290600101906020018083116119d457829003601f168201915b5050505050905090565b611a03612455565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6890614e27565b60405180910390fd5b8060066000611a7e612455565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b2b612455565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b709190614c00565b60405180910390a35050565b600080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff16905060008163ffffffff1611611be6576000611c6b565b600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600183611c34919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff165b915050919050565b611c84611c7e612455565b83612560565b611cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cba90614fe7565b60405180910390fd5b611ccf84848484612c07565b50505050565b611cdd612ac5565b8060129080519060200190611cf3929190614022565b5050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866611d22610a2e565b80519060200120611d31612c63565b30604051602001611d459493929190614c7b565b60405160208183030381529060405280519060200120905060007fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf888888604051602001611d969493929190614c36565b60405160208183030381529060405280519060200120905060008282604051602001611dc3929190614b40565b604051602081830303815290604052805190602001209050600060018288888860405160008152602001604052604051611e009493929190614cc0565b6020604051602081039080840390855afa158015611e22573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9590614e47565b60405180910390fd5b600e60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611eee906154ed565b919050558914611f33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2a90614de7565b60405180910390fd5b87421115611f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6d90614d27565b60405180910390fd5b611f80818b6129ab565b50505050505050505050565b60148054611f999061548a565b80601f0160208091040260200160405190810160405280929190818152602001828054611fc59061548a565b80156120125780601f10611fe757610100808354040283529160200191612012565b820191906000526020600020905b815481529060010190602001808311611ff557829003601f168201915b505050505081565b6060612025826123e9565b612064576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205b90614f07565b60405180910390fd5b600061206e612c70565b9050600081511161208e57604051806020016040528060008152506120bc565b8061209884612d02565b60146040516020016120ac93929190614b0f565b6040516020818303038152906040525b915050919050565b7fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b606060126040516020016120fc9190614b77565b604051602081830303815290604052905090565b600061213c61211e83611380565b6040518060600160405280603d8152602001615e9a603d9139612dda565b9050919050565b600061214f8383612e38565b905092915050565b600c602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900463ffffffff16908060000160049054906101000a90046bffffffffffffffffffffffff16905082565b6121b8612ac5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221f90614d87565b60405180910390fd5b61223181612b43565b50565b61223c612ac5565b601060149054906101000a900460ff161561228c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228390614e87565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fad0f299ec81a386c98df0ac27dae11dd020ed1b56963c53a7292e7a3a314539a816040516122fc9190614b99565b60405180910390a150565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123d257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806123e257506123e182612ecc565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166124d0836111f7565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061252a612523611940565b8484612f36565b817f500276f57d63380e3c42ff9520054fa8200e8665da928e4553c8fa67d159087960405160405180910390a281905092915050565b600061256b826123e9565b6125aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a190614e67565b60405180910390fd5b60006125b5836111f7565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061262457508373ffffffffffffffffffffffffffffffffffffffff1661260c84610ae6565b73ffffffffffffffffffffffffffffffffffffffff16145b8061263557506126348185612143565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661265e826111f7565b73ffffffffffffffffffffffffffffffffffffffff16146126b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ab90614f87565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271b90614e07565b60405180910390fd5b61272f838383613160565b61273a60008261245d565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461278a91906152e7565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127e191906151e4565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006128a5826111f7565b90506128b381600084613160565b6128be60008361245d565b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461290e91906152e7565b925050819055506003600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60006129b6836110ae565b905081600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f60405160405180910390a46000612ab284612110565b9050612abf82848361318c565b50505050565b612acd612455565b73ffffffffffffffffffffffffffffffffffffffff16612aeb611940565b73ffffffffffffffffffffffffffffffffffffffff1614612b41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3890614f67565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612c1284848461263e565b612c1e84848484613499565b612c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5490614d67565b60405180910390fd5b50505050565b6000804690508091505090565b606060138054612c7f9061548a565b80601f0160208091040260200160405190810160405280929190818152602001828054612cab9061548a565b8015612cf85780601f10612ccd57610100808354040283529160200191612cf8565b820191906000526020600020905b815481529060010190602001808311612cdb57829003601f168201915b5050505050905090565b606060006001612d1184613630565b01905060008167ffffffffffffffff811115612d3057612d2f61562b565b5b6040519080825280601f01601f191660200182016040528015612d625781602001600182028036833780820191505090505b509050600082602001820190505b600115612dcf578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612db957612db861556f565b5b0494506000851415612dca57612dcf565b612d70565b819350505050919050565b60006c0100000000000000000000000083108290612e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e259190614d05565b60405180910390fd5b5082905092915050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612fa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f9d90614f27565b60405180910390fd5b612faf816123e9565b15612fef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fe690614dc7565b60405180910390fd5b612ffb60008383613160565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461304b91906151e4565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b61316b838383613783565b613187613177846110ae565b613180846110ae565b600161318c565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156131d657506000816bffffffffffffffffffffffff16115b1561349457600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613337576000600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1690506000808263ffffffff16116132795760006132fe565b600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006001846132c7919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff165b905060006133258285604051806060016040528060378152602001615ed760379139613897565b905061333386848484613911565b5050505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613493576000600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900463ffffffff1690506000808263ffffffff16116133d557600061345a565b600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600184613423919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160049054906101000a90046bffffffffffffffffffffffff165b905060006134818285604051806060016040528060368152602001615e2060369139613c1f565b905061348f85848484613911565b5050505b5b505050565b60006134ba8473ffffffffffffffffffffffffffffffffffffffff16613c9e565b15613623578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134e3612455565b8786866040518563ffffffff1660e01b81526004016135059493929190614bb4565b602060405180830381600087803b15801561351f57600080fd5b505af192505050801561355057506040513d601f19601f8201168201806040525081019061354d919061450a565b60015b6135d3573d8060008114613580576040519150601f19603f3d011682016040523d82523d6000602084013e613585565b606091505b506000815114156135cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135c290614d67565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613628565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061368e577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816136845761368361556f565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106136cb576d04ee2d6d415b85acef810000000083816136c1576136c061556f565b5b0492506020810190505b662386f26fc1000083106136fa57662386f26fc1000083816136f0576136ef61556f565b5b0492506010810190505b6305f5e1008310613723576305f5e10083816137195761371861556f565b5b0492506008810190505b612710831061374857612710838161373e5761373d61556f565b5b0492506004810190505b6064831061376b57606483816137615761376061556f565b5b0492506002810190505b600a831061377a576001810190505b80915050919050565b61378e838383613cc1565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156137d1576137cc81613cc6565b613810565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461380f5761380e8382613d0f565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156138535761384e81613e7c565b613892565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613891576138908282613f4d565b5b5b505050565b6000836bffffffffffffffffffffffff16836bffffffffffffffffffffffff16111582906138fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138f29190614d05565b60405180910390fd5b508284613908919061534f565b90509392505050565b600061393543604051806080016040528060448152602001615e5660449139613fcc565b905060008463ffffffff161180156139d357508063ffffffff16600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600060018761399d919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160009054906101000a900463ffffffff1663ffffffff16145b15613a775781600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600187613a27919061531b565b63ffffffff1663ffffffff16815260200190815260200160002060000160046101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550613bc8565b60405180604001604052808263ffffffff168152602001836bffffffffffffffffffffffff16815250600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008663ffffffff1663ffffffff16815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050600184613b6a919061523a565b600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548163ffffffff021916908363ffffffff1602179055505b8473ffffffffffffffffffffffffffffffffffffffff167fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a7248484604051613c109291906150dc565b60405180910390a25050505050565b6000808385613c2e9190615274565b9050846bffffffffffffffffffffffff16816bffffffffffffffffffffffff1610158390613c92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c899190614d05565b60405180910390fd5b50809150509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b600980549050600a600083815260200190815260200160002081905550600981908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613d1c84611380565b613d2691906152e7565b9050600060086000848152602001908152602001600020549050818114613e0b576000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816008600083815260200190815260200160002081905550505b6008600084815260200190815260200160002060009055600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600980549050613e9091906152e7565b90506000600a6000848152602001908152602001600020549050600060098381548110613ec057613ebf6155fc565b5b906000526020600020015490508060098381548110613ee257613ee16155fc565b5b906000526020600020018190555081600a600083815260200190815260200160002081905550600a6000858152602001908152602001600020600090556009805480613f3157613f306155cd565b5b6001900381819060005260206000200160009055905550505050565b6000613f5883611380565b905081600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806008600084815260200190815260200160002081905550505050565b600064010000000083108290614018576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161400f9190614d05565b60405180910390fd5b5082905092915050565b82805461402e9061548a565b90600052602060002090601f0160209004810192826140505760008555614097565b82601f1061406957805160ff1916838001178555614097565b82800160010185558215614097579182015b8281111561409657825182559160200191906001019061407b565b5b5090506140a491906140a8565b5090565b5b808211156140c15760008160009055506001016140a9565b5090565b60006140d86140d38461512a565b615105565b9050828152602081018484840111156140f4576140f361565f565b5b6140ff848285615448565b509392505050565b600061411a6141158461515b565b615105565b9050828152602081018484840111156141365761413561565f565b5b614141848285615448565b509392505050565b60008135905061415881615d7e565b92915050565b60008135905061416d81615d95565b92915050565b60008135905061418281615dac565b92915050565b60008135905061419781615dc3565b92915050565b6000815190506141ac81615dc3565b92915050565b600082601f8301126141c7576141c661565a565b5b81356141d78482602086016140c5565b91505092915050565b600082601f8301126141f5576141f461565a565b5b8135614205848260208601614107565b91505092915050565b60008135905061421d81615dda565b92915050565b60008135905061423281615df1565b92915050565b60008135905061424781615e08565b92915050565b60006020828403121561426357614262615669565b5b600061427184828501614149565b91505092915050565b6000806040838503121561429157614290615669565b5b600061429f85828601614149565b92505060206142b085828601614149565b9150509250929050565b6000806000606084860312156142d3576142d2615669565b5b60006142e186828701614149565b93505060206142f286828701614149565b92505060406143038682870161420e565b9150509250925092565b6000806000806080858703121561432757614326615669565b5b600061433587828801614149565b945050602061434687828801614149565b93505060406143578782880161420e565b925050606085013567ffffffffffffffff81111561437857614377615664565b5b614384878288016141b2565b91505092959194509250565b600080604083850312156143a7576143a6615669565b5b60006143b585828601614149565b92505060206143c68582860161415e565b9150509250929050565b600080604083850312156143e7576143e6615669565b5b60006143f585828601614149565b92505060206144068582860161420e565b9150509250929050565b60008060008060008060c0878903121561442d5761442c615669565b5b600061443b89828a01614149565b965050602061444c89828a0161420e565b955050604061445d89828a0161420e565b945050606061446e89828a01614238565b935050608061447f89828a01614173565b92505060a061449089828a01614173565b9150509295509295509295565b600080604083850312156144b4576144b3615669565b5b60006144c285828601614149565b92505060206144d385828601614223565b9150509250929050565b6000602082840312156144f3576144f2615669565b5b600061450184828501614188565b91505092915050565b6000602082840312156145205761451f615669565b5b600061452e8482850161419d565b91505092915050565b60006020828403121561454d5761454c615669565b5b600082013567ffffffffffffffff81111561456b5761456a615664565b5b614577848285016141e0565b91505092915050565b60006020828403121561459657614595615669565b5b60006145a48482850161420e565b91505092915050565b6145b681615383565b82525050565b6145c581615395565b82525050565b6145d4816153a1565b82525050565b6145eb6145e6826153a1565b615536565b82525050565b60006145fc826151a1565b61460681856151b7565b9350614616818560208601615457565b61461f8161566e565b840191505092915050565b6000614635826151ac565b61463f81856151c8565b935061464f818560208601615457565b6146588161566e565b840191505092915050565b600061466e826151ac565b61467881856151d9565b9350614688818560208601615457565b80840191505092915050565b600081546146a18161548a565b6146ab81866151d9565b945060018216600081146146c657600181146146d75761470a565b60ff1983168652818601935061470a565b6146e08561518c565b60005b83811015614702578154818901526001820191506020810190506146e3565b838801955050505b50505092915050565b60006147206036836151c8565b915061472b8261567f565b604082019050919050565b6000614743602b836151c8565b915061474e826156ce565b604082019050919050565b60006147666032836151c8565b91506147718261571d565b604082019050919050565b60006147896026836151c8565b91506147948261576c565b604082019050919050565b60006147ac6018836151c8565b91506147b7826157bb565b602082019050919050565b60006147cf601c836151c8565b91506147da826157e4565b602082019050919050565b60006147f26002836151d9565b91506147fd8261580d565b600282019050919050565b60006148156032836151c8565b915061482082615836565b604082019050919050565b60006148386024836151c8565b915061484382615885565b604082019050919050565b600061485b6019836151c8565b9150614866826158d4565b602082019050919050565b600061487e6036836151c8565b9150614889826158fd565b604082019050919050565b60006148a1602c836151c8565b91506148ac8261594c565b604082019050919050565b60006148c46007836151d9565b91506148cf8261599b565b600782019050919050565b60006148e76010836151c8565b91506148f2826159c4565b602082019050919050565b600061490a6038836151c8565b9150614915826159ed565b604082019050919050565b600061492d602a836151c8565b915061493882615a3c565b604082019050919050565b60006149506029836151c8565b915061495b82615a8b565b604082019050919050565b6000614973602b836151c8565b915061497e82615ada565b604082019050919050565b60006149966020836151c8565b91506149a182615b29565b602082019050919050565b60006149b9602c836151c8565b91506149c482615b52565b604082019050919050565b60006149dc6020836151c8565b91506149e782615ba1565b602082019050919050565b60006149ff6029836151c8565b9150614a0a82615bca565b604082019050919050565b6000614a226021836151c8565b9150614a2d82615c19565b604082019050919050565b6000614a45601e836151c8565b9150614a5082615c68565b602082019050919050565b6000614a686031836151c8565b9150614a7382615c91565b604082019050919050565b6000614a8b6037836151c8565b9150614a9682615ce0565b604082019050919050565b6000614aae602c836151c8565b9150614ab982615d2f565b604082019050919050565b614acd816153f7565b82525050565b614adc81615401565b82525050565b614aeb81615411565b82525050565b614afa81615436565b82525050565b614b098161541e565b82525050565b6000614b1b8286614663565b9150614b278285614663565b9150614b338284614694565b9150819050949350505050565b6000614b4b826147e5565b9150614b5782856145da565b602082019150614b6782846145da565b6020820191508190509392505050565b6000614b82826148b7565b9150614b8e8284614694565b915081905092915050565b6000602082019050614bae60008301846145ad565b92915050565b6000608082019050614bc960008301876145ad565b614bd660208301866145ad565b614be36040830185614ac4565b8181036060830152614bf581846145f1565b905095945050505050565b6000602082019050614c1560008301846145bc565b92915050565b6000602082019050614c3060008301846145cb565b92915050565b6000608082019050614c4b60008301876145cb565b614c5860208301866145ad565b614c656040830185614ac4565b614c726060830184614ac4565b95945050505050565b6000608082019050614c9060008301876145cb565b614c9d60208301866145cb565b614caa6040830185614ac4565b614cb760608301846145ad565b95945050505050565b6000608082019050614cd560008301876145cb565b614ce26020830186614ae2565b614cef60408301856145cb565b614cfc60608301846145cb565b95945050505050565b60006020820190508181036000830152614d1f818461462a565b905092915050565b60006020820190508181036000830152614d4081614713565b9050919050565b60006020820190508181036000830152614d6081614736565b9050919050565b60006020820190508181036000830152614d8081614759565b9050919050565b60006020820190508181036000830152614da08161477c565b9050919050565b60006020820190508181036000830152614dc08161479f565b9050919050565b60006020820190508181036000830152614de0816147c2565b9050919050565b60006020820190508181036000830152614e0081614808565b9050919050565b60006020820190508181036000830152614e208161482b565b9050919050565b60006020820190508181036000830152614e408161484e565b9050919050565b60006020820190508181036000830152614e6081614871565b9050919050565b60006020820190508181036000830152614e8081614894565b9050919050565b60006020820190508181036000830152614ea0816148da565b9050919050565b60006020820190508181036000830152614ec0816148fd565b9050919050565b60006020820190508181036000830152614ee081614920565b9050919050565b60006020820190508181036000830152614f0081614943565b9050919050565b60006020820190508181036000830152614f2081614966565b9050919050565b60006020820190508181036000830152614f4081614989565b9050919050565b60006020820190508181036000830152614f60816149ac565b9050919050565b60006020820190508181036000830152614f80816149cf565b9050919050565b60006020820190508181036000830152614fa0816149f2565b9050919050565b60006020820190508181036000830152614fc081614a15565b9050919050565b60006020820190508181036000830152614fe081614a38565b9050919050565b6000602082019050818103600083015261500081614a5b565b9050919050565b6000602082019050818103600083015261502081614a7e565b9050919050565b6000602082019050818103600083015261504081614aa1565b9050919050565b600060208201905061505c6000830184614ac4565b92915050565b60006020820190506150776000830184614ad3565b92915050565b60006040820190506150926000830185614ad3565b61509f6020830184614b00565b9392505050565b60006020820190506150bb6000830184614ae2565b92915050565b60006020820190506150d66000830184614b00565b92915050565b60006040820190506150f16000830185614af1565b6150fe6020830184614af1565b9392505050565b600061510f615120565b905061511b82826154bc565b919050565b6000604051905090565b600067ffffffffffffffff8211156151455761514461562b565b5b61514e8261566e565b9050602081019050919050565b600067ffffffffffffffff8211156151765761517561562b565b5b61517f8261566e565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006151ef826153f7565b91506151fa836153f7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561522f5761522e615540565b5b828201905092915050565b600061524582615401565b915061525083615401565b92508263ffffffff0382111561526957615268615540565b5b828201905092915050565b600061527f8261541e565b915061528a8361541e565b9250826bffffffffffffffffffffffff038211156152ab576152aa615540565b5b828201905092915050565b60006152c182615401565b91506152cc83615401565b9250826152dc576152db61556f565b5b828204905092915050565b60006152f2826153f7565b91506152fd836153f7565b9250828210156153105761530f615540565b5b828203905092915050565b600061532682615401565b915061533183615401565b92508282101561534457615343615540565b5b828203905092915050565b600061535a8261541e565b91506153658361541e565b92508282101561537857615377615540565b5b828203905092915050565b600061538e826153d7565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b60006bffffffffffffffffffffffff82169050919050565b60006154418261541e565b9050919050565b82818337600083830152505050565b60005b8381101561547557808201518184015260208101905061545a565b83811115615484576000848401525b50505050565b600060028204905060018216806154a257607f821691505b602082108114156154b6576154b561559e565b5b50919050565b6154c58261566e565b810181811067ffffffffffffffff821117156154e4576154e361562b565b5b80604052505050565b60006154f8826153f7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561552b5761552a615540565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960008201527f5369673a207369676e6174757265206578706972656400000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f53656e646572206973206e6f7420746865206d696e7465720000000000000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960008201527f5369673a20696e76616c6964206e6f6e63650000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f455243373231436865636b706f696e7461626c653a3a64656c6567617465427960008201527f5369673a20696e76616c6964207369676e617475726500000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f697066733a2f2f00000000000000000000000000000000000000000000000000600082015250565b7f4d696e746572206973206c6f636b656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4e6f756e73546f6b656e3a2055524920717565727920666f72206e6f6e65786960008201527f7374656e7420746f6b656e000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f53656e646572206973206e6f7420746865206e6f756e646572732044414f0000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231436865636b706f696e7461626c653a3a6765745072696f72566f60008201527f7465733a206e6f74207965742064657465726d696e6564000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b615d8781615383565b8114615d9257600080fd5b50565b615d9e81615395565b8114615da957600080fd5b50565b615db5816153a1565b8114615dc057600080fd5b50565b615dcc816153ab565b8114615dd757600080fd5b50565b615de3816153f7565b8114615dee57600080fd5b50565b615dfa81615401565b8114615e0557600080fd5b50565b615e1181615411565b8114615e1c57600080fd5b5056fe455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e74206f766572666c6f7773455243373231436865636b706f696e7461626c653a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473455243373231436865636b706f696e7461626c653a3a766f746573546f44656c65676174653a20616d6f756e7420657863656564732039362062697473455243373231436865636b706f696e7461626c653a3a5f6d6f766544656c6567617465733a20616d6f756e7420756e646572666c6f7773a26469706673582212207a52de1f677b709628b8ec569761e299ba963dc05f964bcc179a2142fcf3269464736f6c63430008070033