ETH Price: $2,921.29 (+4.56%)
 

Overview

Max Total Supply

12 W5

Holders

6

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
bearsbehindbars.eth
Balance
2 W5
0x872740c60333a2a54989eeb4637ed2fba781288b
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
W3ak5auc3

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : WeakSauce.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "https://github.com/MadBase/bridge/blob/main/src/CryptoLibrary.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";


contract W3ak5auc3 is ERC721Enumerable {
    bytes32 public groupsRoot = 0x4f4c9f876ca94e21ca2ed12e40563e47097be4cc3ee36632513475a662f5f604;
    using Strings for uint256;
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;
    string private magicMsg = "Love Always, Cr0wn";
    bytes32 public magicSalt;
    uint256 public maxSupply = 3000;
    uint256 public maxPerAddress = 2;
    uint256 public mintPrice = 1;
    bool public soulved;
    constructor() ERC721("W3ak5auc3", "W5") {
    }
    function mint() public payable {
        require(!soulved, "Puzzle already soulved");
        require(msg.value >= mintPrice && msg.value % mintPrice == 0, "Invalid value sent");
        uint256 _amount = msg.value / mintPrice;
        require(balanceOf(msg.sender) + _amount <= maxPerAddress, "You only need 2");
        require(
            (totalSupply() + _amount) <= maxSupply,
            "Mint would exceed total supply"
        );
        for (uint256 i = 0; i < _amount; i++) {
            _tokenIds.increment();
            uint256 newNftTokenId = _tokenIds.current();
            _mint(msg.sender, newNftTokenId);
        }
    }
    function soulve(bytes32[] memory _proof, uint256[2] memory _sig, uint256[4] memory _pubK) public {
        require(isValidPubK(_proof, _pubK), "Not a valid public key");
        require(verify(_sig, _pubK), "Invalid signature");
        (bool sent, ) = payable(msg.sender).call{value: address(this).balance}("");
        require(sent, "Withdraw failed");
    }
    function isValidPubK(bytes32[] memory _proof, uint256[4] memory _pubK) public view returns(bool) {
        bytes32 leaf = keccak256(abi.encodePacked(_pubK));
        bytes32 hleaf = keccak256(abi.encodePacked(leaf));
        return MerkleProof.verify(_proof, groupsRoot, hleaf);
    }
    function verify(
        uint256[2] memory _sig,
        uint256[4] memory _pubK
    ) public view returns (bool) {
        bytes memory _msg = getHolderMsg();
        bytes memory _nMsg = abi.encodePacked(
            _pubK[0],
            _pubK[1],
            _pubK[2],
            _pubK[3],
            _msg
        );
        return CryptoLibrary.Verify(_nMsg, _sig, _pubK);
    }
    function getHolderMsg() public view returns (bytes memory) {
        bytes32 nMsg;
        for (uint8 i = 0; i < 2; i++) {
            uint256 id = tokenOfOwnerByIndex(msg.sender, i);
            bytes memory raw = abi.encodePacked(id);
            nMsg = nMsg ^ keccak256(abi.encodePacked(raw, magicMsg));
        }
        return abi.encodePacked(nMsg);
    }
    function getTokenPk(uint256 _tokenId, bytes32 _magicSalt) public pure returns(bytes32) {
        return keccak256(abi.encodePacked(((_tokenId % 66) + 1), _magicSalt));
    }
    function fundPuzzle() public payable returns (string memory) {
        return magicMsg;
    }
    function tokenURI(uint256 _tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(_tokenId), "Token does not exist");
        return
            string(
                abi.encodePacked(
                    'data:application/json;utf8,{"name":"',
                    _tokenId.toString(),
                    '","image_data":"',
                    'ipfs://QmTFStUXxYYbVeJXKNudrdvvmzBzk1qXHt61stKzeLKgJW',
                    '"}'
                )
            );
    }
}

File 2 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 5 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 16 : CryptoLibrary.sol
// SPDX-License-Identifier: MIT-open-group
pragma solidity >=0.5.15;

/*
    Author: Philipp Schindler
    Source code and documentation available on Github: https://github.com/PhilippSchindler/ethdkg

    Copyright 2019 Philipp Schindler

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

// TODO: we may want to check some of the functions to ensure that they are valid.
//       some of them may not be if there are attempts they are called with
//       invalid points.
library CryptoLibrary {

    ////////////////////////////////////////////////////////////////////////////////////////////////
    //// CRYPTOGRAPHIC CONSTANTS

    ////////
    //// These constants are updated to reflect our version, not theirs.
    ////////

    // GROUP_ORDER is the are the number of group elements in the groups G1, G2, and GT.
    uint256 constant GROUP_ORDER   = 21888242871839275222246405745257275088548364400416034343698204186575808495617;
    // FIELD_MODULUS is the prime number over which the elliptic curves are based.
    uint256 constant FIELD_MODULUS = 21888242871839275222246405745257275088696311157297823662689037894645226208583;
    // curveB is the constant of the elliptic curve for G1:
    //
    //      y^2 == x^3 + curveB,
    //
    // with curveB == 3.
    uint256 constant curveB        = 3;

    // G1 == (G1x, G1y) is the standard generator for group G1.
    // uint256 constant G1x  = 1;
    // uint256 constant G1y  = 2;
    // H1 == (H1X, H1Y) = HashToG1([]byte("MadHive Rocks!") from golang code;
    // this is another generator for G1 and dlog_G1(H1) is unknown,
    // which is necessary for security.
    //
    // In the future, the specific value of H1 could be changed every time
    // there is a change in validator set. For right now, though, this will
    // be a fixed constant.
    uint256 constant H1x  =  2788159449993757418373833378244720686978228247930022635519861138679785693683;
    uint256 constant H1y  = 12344898367754966892037554998108864957174899548424978619954608743682688483244;

    // H2 == ([H2xi, H2x], [H2yi, H2y]) is the *negation* of the
    // standard generator of group G2.
    // The standard generator comes from the Ethereum bn256 Go code.
    // The negated form is required because bn128_pairing check in Solidty requires this.
    //
    // In particular, to check
    //
    //      sig = H(msg)^privK
    //
    // is a valid signature for
    //
    //      pubK = H2Gen^privK,
    //
    // we need
    //
    //      e(sig, H2Gen) == e(H(msg), pubK).
    //
    // This is equivalent to
    //
    //      e(sig, H2) * e(H(msg), pubK) == 1.
    uint256 constant H2xi = 11559732032986387107991004021392285783925812861821192530917403151452391805634;
    uint256 constant H2x  = 10857046999023057135944570762232829481370756359578518086990519993285655852781;
    uint256 constant H2yi = 17805874995975841540914202342111839520379459829704422454583296818431106115052;
    uint256 constant H2y  = 13392588948715843804641432497768002650278120570034223513918757245338268106653;

    uint256 constant G1x  = 1;
    uint256 constant G1y  = 2;

    // two256modP == 2^256 mod FIELD_MODULUS;
    // this is used in hashToBase to obtain a more uniform hash value.
    uint256 constant two256modP = 6350874878119819312338956282401532409788428879151445726012394534686998597021;

    // pMinus1 == -1 mod FIELD_MODULUS;
    // this is used in sign0 and all ``negative'' values have this sign value.
    uint256 constant pMinus1 = 21888242871839275222246405745257275088696311157297823662689037894645226208582;

    // pMinus2 == FIELD_MODULUS - 2;
    // this is the exponent used in finite field inversion.
    uint256 constant pMinus2 = 21888242871839275222246405745257275088696311157297823662689037894645226208581;

    // pMinus1Over2 == (FIELD_MODULUS - 1) / 2;
    // this is the exponent used in computing the Legendre symbol and is
    // also used in sign0 as the cutoff point between ``positive'' and
    // ``negative'' numbers.
    uint256 constant pMinus1Over2 = 10944121435919637611123202872628637544348155578648911831344518947322613104291;

    // pPlus1Over4 == (FIELD_MODULUS + 1) / 4;
    // this is the exponent used in computing finite field square roots.
    uint256 constant pPlus1Over4 = 5472060717959818805561601436314318772174077789324455915672259473661306552146;

    // baseToG1 constants
    //
    // These are precomputed constants which are independent of t.
    // All of these constants are computed modulo FIELD_MODULUS.
    //
    // (-1 + sqrt(-3))/2
    uint256 constant hashConst1 =                    2203960485148121921418603742825762020974279258880205651966;
    // sqrt(-3)
    uint256 constant hashConst2 =                    4407920970296243842837207485651524041948558517760411303933;
    // 1/3
    uint256 constant hashConst3 = 14592161914559516814830937163504850059130874104865215775126025263096817472389;
    // 1 + curveB (curveB == 3)
    uint256 constant hashConst4 =                                                                             4;

    ////////////////////////////////////////////////////////////////////////////////////////////////
    //// HELPER FUNCTIONS

    function dleq_verify(
        uint256[2] memory x1, uint256[2] memory y1,
        uint256[2] memory x2, uint256[2] memory y2,
        uint256[2] memory proof
    )
    internal view returns (bool proof_is_valid)
    {
        uint256[2] memory tmp1;
        uint256[2] memory tmp2;

        tmp1 = bn128_multiply([x1[0], x1[1], proof[1]]);
        tmp2 = bn128_multiply([y1[0], y1[1], proof[0]]);
        uint256[2] memory t1prime = bn128_add([tmp1[0], tmp1[1], tmp2[0], tmp2[1]]);

        tmp1 = bn128_multiply([x2[0], x2[1], proof[1]]);
        tmp2 = bn128_multiply([y2[0], y2[1], proof[0]]);
        uint256[2] memory t2prime = bn128_add([tmp1[0], tmp1[1], tmp2[0], tmp2[1]]);

        uint256 challenge = uint256(keccak256(abi.encodePacked(x1, y1, x2, y2, t1prime, t2prime)));
        proof_is_valid = challenge == proof[0];
    }

    // TODO: identity (0, 0) should be considered a valid point
    function bn128_is_on_curve(uint256[2] memory point)
    internal pure returns(bool)
    {
        // check if the provided point is on the bn128 curve (y**2 = x**3 + 3)
        return
            mulmod(point[1], point[1], FIELD_MODULUS) ==
            addmod(
                mulmod(
                    point[0],
                    mulmod(point[0], point[0], FIELD_MODULUS),
                    FIELD_MODULUS
                ),
                3,
                FIELD_MODULUS
            );
    }

    function bn128_add(uint256[4] memory input)
    internal view returns (uint256[2] memory result) {
        // computes P + Q
        // input: 4 values of 256 bit each
        //  *) x-coordinate of point P
        //  *) y-coordinate of point P
        //  *) x-coordinate of point Q
        //  *) y-coordinate of point Q

        bool success;
        assembly { // solium-disable-line
            // 0x06     id of precompiled bn256Add contract
            // 0        number of ether to transfer
            // 128      size of call parameters, i.e. 128 bytes total
            // 64       size of call return value, i.e. 64 bytes / 512 bit for a BN256 curve point
            success := staticcall(not(0), 0x06, input, 128, result, 64)
        }
        require(success, "elliptic curve addition failed");
    }

    function bn128_multiply(uint256[3] memory input)
    internal view returns (uint256[2] memory result) {
        // computes P*x
        // input: 3 values of 256 bit each
        //  *) x-coordinate of point P
        //  *) y-coordinate of point P
        //  *) scalar x

        bool success;
        assembly { // solium-disable-line
            // 0x07     id of precompiled bn256ScalarMul contract
            // 0        number of ether to transfer
            // 96       size of call parameters, i.e. 96 bytes total (256 bit for x, 256 bit for y, 256 bit for scalar)
            // 64       size of call return value, i.e. 64 bytes / 512 bit for a BN256 curve point
            success := staticcall(not(0), 0x07, input, 96, result, 64)
        }
        require(success, "elliptic curve multiplication failed");
    }

    function bn128_check_pairing(uint256[12] memory input)
    internal view returns (bool) {
        uint256[1] memory result;
        bool success;
        assembly { // solium-disable-line
            // 0x08     id of precompiled bn256Pairing contract     (checking the elliptic curve pairings)
            // 0        number of ether to transfer
            // 384       size of call parameters, i.e. 12*256 bits == 384 bytes
            // 32        size of result (one 32 byte boolean!)
            success := staticcall(not(0), 0x08, input, 384, result, 32)
        }
        require(success, "elliptic curve pairing failed");
        return result[0] == 1;
    }

    //// Begin new helper functions added
    // expmod perform modular exponentiation with all variables uint256;
    // this is used in legendre, sqrt, and invert.
    //
    // Copied from
    //      https://medium.com/@rbkhmrcr/precompiles-solidity-e5d29bd428c4
    // and slightly modified
    function expmod(uint256 base, uint256 e, uint256 m)
    internal view returns (uint256 result) {
        bool success;
        assembly { // solium-disable-line
            // define pointer
            let p := mload(0x40)
            // store data assembly-favouring ways
            mstore(p, 0x20)             // Length of Base
            mstore(add(p, 0x20), 0x20)  // Length of Exponent
            mstore(add(p, 0x40), 0x20)  // Length of Modulus
            mstore(add(p, 0x60), base)  // Base
            mstore(add(p, 0x80), e)     // Exponent
            mstore(add(p, 0xa0), m)     // Modulus
            // 0x05           id of precompiled modular exponentiation contract
            // 0xc0 == 192    size of call parameters
            // 0x20 ==  32    size of result
            success := staticcall(gas(), 0x05, p, 0xc0, p, 0x20)
            // data
            result := mload(p)
        }
        require(success, "modular exponentiation falied");
    }

    // Sign takes byte slice message and private key privK.
    // It then calls HashToG1 with message as input and performs scalar
    // multiplication to produce the resulting signature.
    function Sign(bytes memory message, uint256 privK)
    internal view returns (uint256[2] memory sig) {
        uint256[2] memory hashPoint;
        hashPoint = HashToG1(message);
        sig = bn128_multiply([hashPoint[0], hashPoint[1], privK]);
    }

    // Verify takes byte slice message, signature sig (element of G1),
    // public key pubK (element of G2), and checks that sig is a valid
    // signature for pubK for message. Also look at the definition of H2.
    function Verify(bytes memory message, uint256[2] memory sig, uint256[4] memory pubK)
    internal view returns (bool v) {
        uint256[2] memory hashPoint;
        hashPoint = HashToG1(message);
        v = bn128_check_pairing([
                sig[0], sig[1],
                H2xi, H2x, H2yi, H2y,
                hashPoint[0], hashPoint[1],
                pubK[0], pubK[1], pubK[2], pubK[3]
            ]);
    }

    // HashToG1 takes byte slice message and outputs an element of G1.
    // This function is based on the Fouque and Tibouchi 2012 paper
    // ``Indifferentiable Hashing to Barreto--Naehrig Curves''.
    // There are a couple improvements included from Wahby and Boneh's 2019 paper
    // ``Fast and simple constant-time hashing to the BLS12-381 elliptic curve''.
    //
    // There are two parts: hashToBase and baseToG1.
    //
    // hashToBase takes a byte slice (with additional bytes for domain
    // separation) and returns uint256 t with 0 <= t < FIELD_MODULUS; thus,
    // it is a valid element of F_p, the base field of the elliptic curve.
    // This is the ``hash'' portion of the hash function. The two byte
    // values are used for domain separation in order to obtain independent
    // hash functions.
    //
    // baseToG1 is a deterministic function which takes t in F_p and returns
    // a valid element of the elliptic curve.
    //
    // By combining hashToBase and baseToG1, we get a HashToG1. Now, we
    // perform this operation twice because without it, we would not have
    // a valid hash function. The reason is that baseToG1 only maps to
    // approximately 9/16ths of the points in the elliptic curve.
    // By doing this twice (with independent hash functions) and adding the
    // resulting points, we have an actual hash function to G1.
    // For more information relating to the hash-to-curve theory,
    // see the FT 2012 paper.
    function HashToG1(bytes memory message)
    internal view returns (uint256[2] memory h) {
        uint256 t0 = hashToBase(message, 0x00, 0x01);
        uint256 t1 = hashToBase(message, 0x02, 0x03);

        uint256[2] memory h0 = baseToG1(t0);
        uint256[2] memory h1 = baseToG1(t1);

        // Each BaseToG1 call involves a check that we have a valid curve point.
        // Here, we check that we have a valid curve point after the addition.
        // Again, this is to ensure that even if something strange happens, we
        // will not return an invalid curvepoint.
        h = bn128_add([h0[0], h0[1], h1[0], h1[1]]);
        require(
            bn128_is_on_curve(h),
            "Invalid hash point: not on elliptic curve"
        );
        require(
            safeSigningPoint(h),
            "Dangerous hash point: not safe for signing"
            );
    }

    // hashToBase takes in a byte slice message and bytes c0 and c1 for
    // domain separation. The idea is that we treat keccak256 as a random
    // oracle which outputs uint256. The problem is that we want to hash modulo
    // FIELD_MODULUS (p, a prime number). Just using uint256 mod p will lead
    // to bias in the distribution. In particular, there is bias towards the
    // lower 5% of the numbers in [0, FIELD_MODULUS). The 1-norm error between
    // s0 mod p and a uniform distribution is ~ 1/4. By itself, this 1-norm
    // error is not too enlightening, but continue reading, as we will compare
    // it with another distribution that has much smaller 1-norm error.
    //
    // To obtain a better distribution with less bias, we take 2 uint256 hash
    // outputs (using c0 and c1 for domain separation so the hashes are
    // independent) and ``combine them'' to form a ``uint512''. Of course,
    // this is not possible in practice, so we view the combined output as
    //
    //      x == s0*2^256 + s1.
    //
    // This implies that x (combined from s0 and s1 in this way) is a
    // 512-bit uint. If s0 and s1 are uniformly distributed modulo 2^256,
    // then x is uniformly distributed modulo 2^512. We now want to reduce
    // this modulo FIELD_MODULUS (p). This is done as follows:
    //
    //      x mod p == [(s0 mod p)*(2^256 mod p)] + s1 mod p.
    //
    // This allows us easily compute the result without needing to implement
    // higher precision. The 1-norm error between x mod p and a uniform
    // distribution is ~1e-77. This is a *signficant* improvement from s0 mod p.
    // For all practical purposes, there is no difference from a
    // uniform distribution.
    function hashToBase(bytes memory message, bytes1 c0, bytes1 c1)
    internal pure returns (uint256 t) {
        uint256 s0 = uint256(keccak256(abi.encodePacked(c0, message)));
        uint256 s1 = uint256(keccak256(abi.encodePacked(c1, message)));
        t = addmod(mulmod(s0, two256modP, FIELD_MODULUS), s1, FIELD_MODULUS);
    }

    // baseToG1 is a deterministic map from the base field F_p to the elliptic
    // curve. All values in [0, FIELD_MODULUS) are valid including 0, so we
    // do not need to worry about any exceptions.
    //
    // We remember our elliptic curve has the form
    //
    //      y^2 == x^3 + b
    //          == g(x)
    //
    // The main idea is that given t, we can produce x values x1, x2, and x3
    // such that
    //
    //      g(x1)*g(x2)*g(x3) == s^2.
    //
    // The above equation along with quadratic residues means that
    // when s != 0, at least one of g(x1), g(x2), or g(x3) is a square,
    // which implies that x1, x2, or x3 is a valid x-coordinate to a point
    // on the elliptic curve. For uniqueness, we choose the smallest coordinate.
    // In our construction, the above s value will always be nonzero, so we will
    // always have a solution. This means that baseToG1 is a deterministic
    // map from the base field to the elliptic curve.
    function baseToG1(uint256 t)
    internal view returns (uint256[2] memory h) {
        // ap1 and ap2 are temporary variables, originally named to represent
        // alpha part 1 and alpha part 2. Now they are somewhat general purpose
        // variables due to using too many variables on stack.
        uint256 ap1;
        uint256 ap2;

        // One of the main constants variables to form x1, x2, and x3
        // is alpha, which has the following definition:
        //
        //      alpha == (ap1*ap2)^(-1)
        //            == [t^2*(t^2 + h4)]^(-1)
        //
        //      ap1 == t^2
        //      ap2 == t^2 + h4
        //      h4  == hashConst4
        //
        // Defining alpha helps decrease the calls to expmod,
        // which is the most expensive operation we do.
        uint256 alpha;
        ap1 = mulmod(t, t, FIELD_MODULUS);
        ap2 = addmod(ap1, hashConst4, FIELD_MODULUS);
        alpha = mulmod(ap1, ap2, FIELD_MODULUS);
        alpha = invert(alpha);

        // Another important constant which is used when computing x3 is tmp,
        // which has the following definition:
        //
        //      tmp == (t^2 + h4)^3
        //          == ap2^3
        //
        //      h4  == hashConst4
        //
        // This is cheap to compute because ap2 has not changed
        uint256 tmp;
        tmp = mulmod(ap2, ap2, FIELD_MODULUS);
        tmp = mulmod(tmp, ap2, FIELD_MODULUS);

        // When computing x1, we need to compute t^4. ap1 will be the
        // temporary variable which stores this value now:
        //
        // Previous definition:
        //      ap1 == t^2
        //
        // Current definition:
        //      ap1 == t^4
        ap1 = mulmod(ap1, ap1, FIELD_MODULUS);

        // One of the potential x-coordinates of our elliptic curve point:
        //
        //      x1 == h1 - h2*t^4*alpha
        //         == h1 - h2*ap1*alpha
        //
        //      ap1 == t^4 (note previous assignment)
        //      h1  == hashConst1
        //      h2  == hashConst2
        //
        // When t == 0, x1 is a valid x-coordinate of a point on the elliptic
        // curve, so we need no exceptions; this is different than the original
        // Fouque and Tibouchi 2012 paper. This comes from the fact that
        // 0^(-1) == 0 mod p, as we use expmod for inversion.
        uint256 x1;
        x1 = mulmod(hashConst2, ap1, FIELD_MODULUS);
        x1 = mulmod(x1, alpha, FIELD_MODULUS);
        x1 = neg(x1);
        x1 = addmod(x1, hashConst1, FIELD_MODULUS);

        // One of the potential x-coordinates of our elliptic curve point:
        //
        //      x2 == -1 - x1
        uint256 x2;
        x2 = addmod(x1, 1, FIELD_MODULUS);
        x2 = neg(x2);

        // One of the potential x-coordinates of our elliptic curve point:
        //
        //      x3 == 1 - h3*tmp*alpha
        //
        //      h3 == hashConst3
        uint256 x3;
        x3 = mulmod(hashConst3, tmp, FIELD_MODULUS);
        x3 = mulmod(x3, alpha, FIELD_MODULUS);
        x3 = neg(x3);
        x3 = addmod(x3, 1, FIELD_MODULUS);

        // We now focus on determing residue1; if residue1 == 1,
        // then x1 is a valid x-coordinate for a point on E(F_p).
        //
        // When computing residues, the original FT 2012 paper suggests
        // blinding for security. We do not use that suggestion here
        // because of the possibility of a random integer being returned
        // which is 0, which would completely destroy the output.
        // Additionally, computing random numbers on Ethereum is difficult.
        uint256 y;
        y = mulmod(x1, x1, FIELD_MODULUS);
        y = mulmod(y, x1, FIELD_MODULUS);
        y = addmod(y, curveB, FIELD_MODULUS);
        int256 residue1 = legendre(y);

        // We now focus on determing residue2; if residue2 == 1,
        // then x2 is a valid x-coordinate for a point on E(F_p).
        y = mulmod(x2, x2, FIELD_MODULUS);
        y = mulmod(y, x2, FIELD_MODULUS);
        y = addmod(y, curveB, FIELD_MODULUS);
        int256 residue2 = legendre(y);

        // i is the index which gives us the correct x value (x1, x2, or x3)
        int256 i = (residue1-1)*(residue2-3)/4 + 1;

        // This is the simplest way to determine which x value is correct
        // but is not secure. If possible, we should improve this.
        uint256 x;
        if (i == 1) {
            x = x1;
        }
        else if (i == 2) {
            x = x2;
        }
        else {
            x = x3;
        }

        // Now that we know x, we compute y
        y = mulmod(x, x, FIELD_MODULUS);
        y = mulmod(y, x, FIELD_MODULUS);
        y = addmod(y, curveB, FIELD_MODULUS);
        y = sqrt(y);

        // We now determine the sign of y based on t; this is a change from
        // the original FT 2012 paper and uses the suggestion from WB 2019.
        //
        // This is done to save computation, as using sign0 reduces the
        // number of calls to expmod from 5 to 4; currently, we call expmod
        // for inversion (alpha), two legendre calls (for residue1 and
        // residue2), and one sqrt call.
        // This change nullifies the proof in FT 2012 that we have a valid
        // hash function. Whether the proof could be slightly modified to
        // compensate for this change is possible but not currently known.
        //
        // (CHG: At the least, I am not sure that the proof holds, nor am I
        // able to see how the proof could potentially be fixed in order
        // for the hash function to be admissible.)
        //
        // If this is included as a precompile, it may be worth it to ignore
        // the cost savings in order to ensure uniformity of the hash function.
        // Also, we would need to change legendre so that legendre(0) == 1,
        // or else things would fail when t == 0. We could also have a separate
        // function for the sign determiniation.
        uint256 ySign;
        ySign = sign0(t);
        y = mulmod(y, ySign, FIELD_MODULUS);

        // Before returning the value, we check to make sure we have a valid
        // curve point. This ensures we will always have a valid point.
        // From Fouque-Tibouchi 2012, the only way to get an invalid point is
        // when t == 0, but we have already taken care of that to ensure that
        // when t == 0, we still return a valid curve point.
        require(
            bn128_is_on_curve([x,y]),
            "Invalid point: not on elliptic curve"
        );

        h[0] = x;
        h[1] = y;
    }

    // invert computes the multiplicative inverse of t modulo FIELD_MODULUS.
    // When t == 0, s == 0.
    function invert(uint256 t)
    internal view returns (uint256 s) {
        s = expmod(t, pMinus2, FIELD_MODULUS);
    }

    // sqrt computes the multiplicative square root of t modulo FIELD_MODULUS.
    // sqrt does not check that a square root is possible; see legendre.
    function sqrt(uint256 t)
    internal view returns (uint256 s) {
        s = expmod(t, pPlus1Over4, FIELD_MODULUS);
    }

    // legendre computes the legendre symbol of t with respect to FIELD_MODULUS.
    // That is, legendre(t) == 1 when a square root of t exists modulo
    // FIELD_MODULUS, legendre(t) == -1 when a square root of t does not exist
    // modulo FIELD_MODULUS, and legendre(t) == 0 when t == 0 mod FIELD_MODULUS.
    function legendre(uint256 t)
    internal view returns (int256 chi) {
        uint256 s = expmod(t, pMinus1Over2, FIELD_MODULUS);
        if (s != 0) {
            chi = 2*int256(s&1)-1;
        }
        else {
            chi = 0;
        }
    }

    // neg computes the additive inverse (the negative) modulo FIELD_MODULUS.
    function neg(uint256 t)
    internal pure returns (uint256 s) {
        if (t == 0) {
            s = 0;
        }
        else {
            s = FIELD_MODULUS - t;
        }
    }

    // sign0 computes the sign of a finite field element.
    // sign0 is used instead of legendre in baseToG1 from the suggestion
    // of WB 2019.
    function sign0(uint256 t)
    internal pure returns (uint256 s) {
        s = 1;
        if (t > pMinus1Over2) {
            s = pMinus1;
        }
    }

    // safeSigningPoint ensures that the HashToG1 point we are returning
    // is safe to sign; in particular, it is not Infinity (the group identity
    // element) or the standard curve generator (curveGen) or its negation.
    //
    // TODO: may want to confirm point is valid first as well as reducing mod field prime
    function safeSigningPoint(uint256[2] memory input)
    internal pure returns (bool) {
        if (input[0] == 0 || input[0] == 1) {
            return false;
        }
        else {
            return true;
        }
    }

    // AggregateSignatures takes takes the signature array sigs, index array
    // indices, and threshold to compute the thresholded group signature.
    // After ensuring some basic requirements are met, it calls
    // LagrangeInterpolationG1 to perform this interpolation.
    //
    // To trade computation (and expensive gas costs) for space, we choose
    // to require that the multiplicative inverses modulo GROUP_ORDER be
    // entered for this function call in invArray. This allows the expensive
    // portion of gas cost to grow linearly in the size of the group rather
    // than quadratically. Additional improvements made be included
    // in the future.
    //
    // One advantage to how this function is designed is that we do not need
    // to know the number of participants, as we only require inverses which
    // will be required as deteremined by indices.
    function AggregateSignatures(uint256[2][] memory sigs, uint256[] memory indices, uint256 threshold, uint256[] memory invArray)
    internal view returns (uint256[2] memory) {
        require(
            sigs.length == indices.length,
            "Mismatch between length of signatures and index array"
        );
        require(
            sigs.length > threshold,
            "Failed to meet required number of signatures for threshold"
        );
        uint256 maxIndex = computeArrayMax(indices);
        require(
            checkInverses(invArray, maxIndex),
            "invArray does not include correct inverses"
        );
        uint256[2] memory grpsig;
        grpsig = LagrangeInterpolationG1(sigs, indices, threshold, invArray);
        return grpsig;
    }

    // computeArrayMax computes the maximum uin256 element of uint256Array
    function computeArrayMax(uint256[] memory uint256Array)
    internal pure returns (uint256) {
        uint256 curVal;
        uint256 maxVal = uint256Array[0];
        for (uint256 i = 1; i < uint256Array.length; i++) {
            curVal = uint256Array[i];
            if (curVal > maxVal) {
                maxVal = curVal;
            }
        }
        return maxVal;
    }

        // checkIndices determines whether or not each of these arrays contain
    // unique indices. There is no reason any index should appear twice.
    // All indices should be in {1, 2, ..., n} and this function ensures this.
    // n is the total number of participants; that is, n == addresses.length.
    function checkIndices(uint256[] memory honestIndices, uint256[] memory dishonestIndices, uint256 n)
    internal pure returns (bool validIndices) {
        validIndices = true;
        uint256 k;
        uint256 f;
        uint256 cur_idx;

        assert(n > 0);
        assert(n < 256);

        // Make sure each honestIndices list is unique
        for (k = 0; k < honestIndices.length; k++) {
            cur_idx = honestIndices[k];
            // All indices must be between 1 and n
            if ((cur_idx == 0) || (cur_idx > n)) {
                validIndices = false;
                break;
            }
            // Only check for equality with previous indices
            if ((f & (1<<cur_idx)) == 0) {
                f |= 1<<cur_idx;
            } else {
                // We have seen this index before; invalid index sets
                validIndices = false;
                break;
            }
        }
        if (!validIndices) {
            return validIndices;
        }

        // Make sure each dishonestIndices list is unique and does not match
        // any from honestIndices.
        for (k = 0; k < dishonestIndices.length; k++) {
            cur_idx = dishonestIndices[k];
            // All indices must be between 1 and n
            if ((cur_idx == 0) || (cur_idx > n)) {
                validIndices = false;
                break;
            }
            // Only check for equality with previous indices
            if ((f & (1<<cur_idx)) == 0) {
                f |= 1<<cur_idx;
            } else {
                // We have seen this index before; invalid index sets
                validIndices = false;
                break;
            }
        }
        return validIndices;
    }

    // checkInverses takes maxIndex as the maximum element of indices
    // (used in AggregateSignatures) and checks that all of the necessary
    // multiplicative inverses in invArray are correct and present.
    function checkInverses(uint256[] memory invArray, uint256 maxIndex)
    internal pure returns (bool) {
        uint256 k;
        uint256 kInv;
        uint256 res;
        bool validInverses = true;
        require(
            (maxIndex-1) <= invArray.length,
            "checkInverses: insufficient inverses for group signature calculation"
        );
        for (k = 1; k < maxIndex; k++) {
            kInv = invArray[k-1];
            res = mulmod(k, kInv, GROUP_ORDER);
            if (res != 1) {
                validInverses = false;
                break;
            }
        }
        return validInverses;
    }

    // LagrangeInterpolationG1 efficiently computes Lagrange interpolation
    // of pointsG1 using indices as the point location in the finite field.
    // This is an efficient method of Lagrange interpolation as we assume
    // finite field inverses are in invArray.
    function LagrangeInterpolationG1(uint256[2][] memory pointsG1, uint256[] memory indices, uint256 threshold, uint256[] memory invArray)
    internal view returns (uint256[2] memory) {
        require(
            pointsG1.length == indices.length,
            "Mismatch between pointsG1 and indices arrays"
        );
        uint256[2] memory val;
        val[0] = 0;
        val[1] = 0;
        uint256 i;
        uint256 ell;
        uint256 idxJ;
        uint256 idxK;
        uint256 Rj;
        uint256 RjPartial;
        uint256[2] memory partialVal;
        for (i = 0; i < indices.length; i++) {
            idxJ = indices[i];
            if (i > threshold) {
                break;
            }
            Rj = 1;
            for (ell = 0; ell < indices.length; ell++) {
                idxK = indices[ell];
                if (ell > threshold) {
                    break;
                }
                if (idxK == idxJ) {
                    continue;
                }
                RjPartial = liRjPartialConst(idxK, idxJ, invArray);
                Rj = mulmod(Rj, RjPartial, GROUP_ORDER);
            }
            partialVal = pointsG1[i];
            partialVal = bn128_multiply([partialVal[0], partialVal[1], Rj]);
            val = bn128_add([val[0], val[1], partialVal[0], partialVal[1]]);
        }
        return val;
    }

    // liRjPartialConst computes the partial constants of Rj in Lagrange
    // interpolation based on the the multiplicative inverses in invArray.
    function liRjPartialConst(uint256 k, uint256 j, uint256[] memory invArray)
    internal pure returns (uint256) {
        require(
            k != j,
            "Must have k != j when computing Rj partial constants"
        );
        uint256 tmp1 = k;
        uint256 tmp2;
        if (k > j) {
            tmp2 = k - j;
        }
        else {
            tmp1 = mulmod(tmp1, GROUP_ORDER-1, GROUP_ORDER);
            tmp2 = j - k;
        }
        tmp2 = invArray[tmp2-1];
        tmp2 = mulmod(tmp1, tmp2, GROUP_ORDER);
        return tmp2;
    }

}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

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

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = 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);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 10 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

File 13 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundPuzzle","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getHolderMsg","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes32","name":"_magicSalt","type":"bytes32"}],"name":"getTokenPk","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"groupsRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256[4]","name":"_pubK","type":"uint256[4]"}],"name":"isValidPubK","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"magicSalt","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256[2]","name":"_sig","type":"uint256[2]"},{"internalType":"uint256[4]","name":"_pubK","type":"uint256[4]"}],"name":"soulve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"soulved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[2]","name":"_sig","type":"uint256[2]"},{"internalType":"uint256[4]","name":"_pubK","type":"uint256[4]"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040527f4f4c9f876ca94e21ca2ed12e40563e47097be4cc3ee36632513475a662f5f60460001b600a556040518060400160405280601281526020017f4c6f766520416c776179732c20437230776e0000000000000000000000000000815250600c9080519060200190620000789291906200013d565b50610bb8600e556002600f5560016010553480156200009657600080fd5b506040518060400160405280600981526020017f5733616b356175633300000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f573500000000000000000000000000000000000000000000000000000000000081525081600090805190602001906200011b9291906200013d565b508060019080519060200190620001349291906200013d565b50505062000252565b8280546200014b906200021c565b90600052602060002090601f0160209004810192826200016f5760008555620001bb565b82601f106200018a57805160ff1916838001178555620001bb565b82800160010185558215620001bb579182015b82811115620001ba5782518255916020019190600101906200019d565b5b509050620001ca9190620001ce565b5090565b5b80821115620001e9576000816000905550600101620001cf565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200023557607f821691505b602082108114156200024c576200024b620001ed565b5b50919050565b6159cd80620002626000396000f3fe6080604052600436106101c25760003560e01c8063639814e0116100f757806399554f9111610095578063b88d4fde11610064578063b88d4fde14610664578063c87b56dd1461068d578063d5abeb01146106ca578063e985e9c5146106f5576101c2565b806399554f9114610596578063a22cb465146105d3578063b3563a64146105fc578063b862ef8414610639576101c2565b80636e83877f116100d15780636e83877f146104d857806370a082311461050357806381be01881461054057806395d89b411461056b576101c2565b8063639814e0146104575780636553b1ca146104825780636817c76c146104ad576101c2565b80632f745c591161016457806353b0342b1161013e57806353b0342b1461039657806357f63024146103b457806359f7b456146103f15780636352211e1461041a576101c2565b80632f745c59146102f357806342842e0e146103305780634f6ccce714610359576101c2565b8063095ea7b3116101a0578063095ea7b31461026c5780631249c58b1461029557806318160ddd1461029f57806323b872dd146102ca576101c2565b806301ffc9a7146101c757806306fdde0314610204578063081812fc1461022f575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e99190613650565b610732565b6040516101fb9190613698565b60405180910390f35b34801561021057600080fd5b506102196107ac565b604051610226919061374c565b60405180910390f35b34801561023b57600080fd5b50610256600480360381019061025191906137a4565b61083e565b6040516102639190613812565b60405180910390f35b34801561027857600080fd5b50610293600480360381019061028e9190613859565b6108c3565b005b61029d6109db565b005b3480156102ab57600080fd5b506102b4610b8f565b6040516102c191906138a8565b60405180910390f35b3480156102d657600080fd5b506102f160048036038101906102ec91906138c3565b610b9c565b005b3480156102ff57600080fd5b5061031a60048036038101906103159190613859565b610bfc565b60405161032791906138a8565b60405180910390f35b34801561033c57600080fd5b50610357600480360381019061035291906138c3565b610ca1565b005b34801561036557600080fd5b50610380600480360381019061037b91906137a4565b610cc1565b60405161038d91906138a8565b60405180910390f35b61039e610d32565b6040516103ab919061374c565b60405180910390f35b3480156103c057600080fd5b506103db60048036038101906103d6919061394c565b610dc4565b6040516103e8919061399b565b60405180910390f35b3480156103fd57600080fd5b5061041860048036038101906104139190613c60565b610e0f565b005b34801561042657600080fd5b50610441600480360381019061043c91906137a4565b610f53565b60405161044e9190613812565b60405180910390f35b34801561046357600080fd5b5061046c611005565b60405161047991906138a8565b60405180910390f35b34801561048e57600080fd5b5061049761100b565b6040516104a49190613698565b60405180910390f35b3480156104b957600080fd5b506104c261101e565b6040516104cf91906138a8565b60405180910390f35b3480156104e457600080fd5b506104ed611024565b6040516104fa919061399b565b60405180910390f35b34801561050f57600080fd5b5061052a60048036038101906105259190613ccf565b61102a565b60405161053791906138a8565b60405180910390f35b34801561054c57600080fd5b506105556110e2565b604051610562919061399b565b60405180910390f35b34801561057757600080fd5b506105806110e8565b60405161058d919061374c565b60405180910390f35b3480156105a257600080fd5b506105bd60048036038101906105b89190613cfc565b61117a565b6040516105ca9190613698565b60405180910390f35b3480156105df57600080fd5b506105fa60048036038101906105f59190613d84565b6111e8565b005b34801561060857600080fd5b50610623600480360381019061061e9190613dc4565b6111fe565b6040516106309190613698565b60405180910390f35b34801561064557600080fd5b5061064e6112ac565b60405161065b9190613e59565b60405180910390f35b34801561067057600080fd5b5061068b60048036038101906106869190613f30565b611361565b005b34801561069957600080fd5b506106b460048036038101906106af91906137a4565b6113c3565b6040516106c1919061374c565b60405180910390f35b3480156106d657600080fd5b506106df61143c565b6040516106ec91906138a8565b60405180910390f35b34801561070157600080fd5b5061071c60048036038101906107179190613fb3565b611442565b6040516107299190613698565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107a557506107a4826114d6565b5b9050919050565b6060600080546107bb90614022565b80601f01602080910402602001604051908101604052809291908181526020018280546107e790614022565b80156108345780601f1061080957610100808354040283529160200191610834565b820191906000526020600020905b81548152906001019060200180831161081757829003601f168201915b5050505050905090565b6000610849826115b8565b610888576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087f906140c6565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108ce82610f53565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561093f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093690614158565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661095e611624565b73ffffffffffffffffffffffffffffffffffffffff16148061098d575061098c81610987611624565b611442565b5b6109cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c3906141ea565b60405180910390fd5b6109d6838361162c565b505050565b601160009054906101000a900460ff1615610a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2290614256565b60405180910390fd5b6010543410158015610a4a5750600060105434610a4891906142a5565b145b610a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8090614322565b60405180910390fd5b600060105434610a999190614371565b9050600f5481610aa83361102a565b610ab291906143a2565b1115610af3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aea90614444565b60405180910390fd5b600e5481610aff610b8f565b610b0991906143a2565b1115610b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b41906144b0565b60405180910390fd5b60005b81811015610b8b57610b5f600b6116e5565b6000610b6b600b6116fb565b9050610b773382611709565b508080610b83906144d0565b915050610b4d565b5050565b6000600880549050905090565b610bad610ba7611624565b826118e3565b610bec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be39061458b565b60405180910390fd5b610bf78383836119c1565b505050565b6000610c078361102a565b8210610c48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3f9061461d565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610cbc83838360405180602001604052806000815250611361565b505050565b6000610ccb610b8f565b8210610d0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d03906146af565b60405180910390fd5b60088281548110610d2057610d1f6146cf565b5b90600052602060002001549050919050565b6060600c8054610d4190614022565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6d90614022565b8015610dba5780601f10610d8f57610100808354040283529160200191610dba565b820191906000526020600020905b815481529060010190602001808311610d9d57829003601f168201915b5050505050905090565b60006001604284610dd591906142a5565b610ddf91906143a2565b82604051602001610df1929190614740565b60405160208183030381529060405280519060200120905092915050565b610e19838261117a565b610e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4f906147b8565b60405180910390fd5b610e6282826111fe565b610ea1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9890614824565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610ec790614875565b60006040518083038185875af1925050503d8060008114610f04576040519150601f19603f3d011682016040523d82523d6000602084013e610f09565b606091505b5050905080610f4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f44906148d6565b60405180910390fd5b50505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ffc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff390614968565b60405180910390fd5b80915050919050565b600f5481565b601160009054906101000a900460ff1681565b60105481565b600d5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561109b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611092906149fa565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600a5481565b6060600180546110f790614022565b80601f016020809104026020016040519081016040528092919081815260200182805461112390614022565b80156111705780601f1061114557610100808354040283529160200191611170565b820191906000526020600020905b81548152906001019060200180831161115357829003601f168201915b5050505050905090565b6000808260405160200161118e9190614ac5565b6040516020818303038152906040528051906020012090506000816040516020016111b99190614ae0565b6040516020818303038152906040528051906020012090506111de85600a5483611c28565b9250505092915050565b6111fa6111f3611624565b8383611c3f565b5050565b6000806112096112ac565b9050600083600060048110611221576112206146cf565b5b60200201518460016004811061123a576112396146cf565b5b602002015185600260048110611253576112526146cf565b5b60200201518660036004811061126c5761126b6146cf565b5b602002015185604051602001611286959493929190614b2c565b60405160208183030381529060405290506112a2818686611dac565b9250505092915050565b6060600080600090505b60028160ff16101561133a5760006112d1338360ff16610bfc565b90506000816040516020016112e69190614b87565b604051602081830303815290604052905080600c60405160200161130b929190614c41565b60405160208183030381529060405280519060200120841893505050808061133290614c72565b9150506112b6565b508060405160200161134c9190614ae0565b60405160208183030381529060405291505090565b61137261136c611624565b836118e3565b6113b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a89061458b565b60405180910390fd5b6113bd84848484611f65565b50505050565b60606113ce826115b8565b61140d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140490614ce8565b60405180910390fd5b61141682611fc1565b6040516020016114269190614eb5565b6040516020818303038152906040529050919050565b600e5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806115a157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806115b157506115b082612122565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661169f83610f53565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611779576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177090614f44565b60405180910390fd5b611782816115b8565b156117c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b990614fb0565b60405180910390fd5b6117ce6000838361218c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461181e91906143a2565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46118df600083836122a0565b5050565b60006118ee826115b8565b61192d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192490615042565b60405180910390fd5b600061193883610f53565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806119a757508373ffffffffffffffffffffffffffffffffffffffff1661198f8461083e565b73ffffffffffffffffffffffffffffffffffffffff16145b806119b857506119b78185611442565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166119e182610f53565b73ffffffffffffffffffffffffffffffffffffffff1614611a37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2e906150d4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611aa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9e90615166565b60405180910390fd5b611ab283838361218c565b611abd60008261162c565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b0d9190615186565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b6491906143a2565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611c238383836122a0565b505050565b600082611c3585846122a5565b1490509392505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611cae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca590615206565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d9f9190613698565b60405180910390a3505050565b6000611db66135a0565b611dbf8561231a565b9050611f5b60405180610180016040528086600060028110611de457611de36146cf565b5b6020020151815260200186600160028110611e0257611e016146cf565b5b602002015181526020017f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c281526020017f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed81526020017f275dc4a288d1afb3cbb1ac09187524c7db36395df7be3b99e673b13a075a65ec81526020017f1d9befcd05a5323e6da4d435f3b617cdb3af83285c2df711ef39c01571827f9d815260200183600060028110611eb857611eb76146cf565b5b6020020151815260200183600160028110611ed657611ed56146cf565b5b6020020151815260200185600060048110611ef457611ef36146cf565b5b6020020151815260200185600160048110611f1257611f116146cf565b5b6020020151815260200185600260048110611f3057611f2f6146cf565b5b6020020151815260200185600360048110611f4e57611f4d6146cf565b5b602002015181525061248e565b9150509392505050565b611f708484846119c1565b611f7c8484848461250e565b611fbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb290615298565b60405180910390fd5b50505050565b60606000821415612009576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061211d565b600082905060005b6000821461203b578080612024906144d0565b915050600a826120349190614371565b9150612011565b60008167ffffffffffffffff811115612057576120566139bb565b5b6040519080825280601f01601f1916602001820160405280156120895781602001600182028036833780820191505090505b5090505b60008514612116576001826120a29190615186565b9150600a856120b191906142a5565b60306120bd91906143a2565b60f81b8183815181106120d3576120d26146cf565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561210f9190614371565b945061208d565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612197838383612696565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121da576121d58161269b565b612219565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146122185761221783826126e4565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561225c5761225781612851565b61229b565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461229a576122998282612922565b5b5b505050565b505050565b60008082905060005b845181101561230f5760008582815181106122cc576122cb6146cf565b5b602002602001015190508083116122ee576122e783826129a1565b92506122fb565b6122f881846129a1565b92505b508080612307906144d0565b9150506122ae565b508091505092915050565b6123226135a0565b600061233783600060f81b600160f81b6129b8565b9050600061234e84600260f81b600360f81b6129b8565b9050600061235b83612aa7565b9050600061236883612aa7565b90506123f360405180608001604052808460006002811061238c5761238b6146cf565b5b60200201518152602001846001600281106123aa576123a96146cf565b5b60200201518152602001836000600281106123c8576123c76146cf565b5b60200201518152602001836001600281106123e6576123e56146cf565b5b6020020151815250613131565b94506123fe8561318f565b61243d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124349061532a565b60405180910390fd5b612446856132d8565b612485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247c906153bc565b60405180910390fd5b50505050919050565b60006124986135c2565b6000602082610180866008600019fa9050806124e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e090615428565b60405180910390fd5b6001826000600181106124ff576124fe6146cf565b5b60200201511492505050919050565b600061252f8473ffffffffffffffffffffffffffffffffffffffff16613330565b15612689578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612558611624565b8786866040518563ffffffff1660e01b815260040161257a9493929190615448565b6020604051808303816000875af19250505080156125b657506040513d601f19601f820116820180604052508101906125b391906154a9565b60015b612639573d80600081146125e6576040519150601f19603f3d011682016040523d82523d6000602084013e6125eb565b606091505b50600081511415612631576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262890615298565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061268e565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016126f18461102a565b6126fb9190615186565b90506000600760008481526020019081526020016000205490508181146127e0576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506128659190615186565b9050600060096000848152602001908152602001600020549050600060088381548110612895576128946146cf565b5b9060005260206000200154905080600883815481106128b7576128b66146cf565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612906576129056154d6565b5b6001900381819060005260206000200160009055905550505050565b600061292d8361102a565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600082600052816020526040600020905092915050565b60008083856040516020016129ce929190615552565b6040516020818303038152906040528051906020012060001c9050600083866040516020016129fe929190615552565b6040516020818303038152906040528051906020012060001c90507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612a4857612a47614276565b5b817f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612a7857612a77614276565b5b7f0e0a77c19a07df2f666ea36f7879462c0a78eb28f5c70b3dd35d438dc58f0d9d850908925050509392505050565b612aaf6135a0565b60008060007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612ae357612ae2614276565b5b85860992507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612b1757612b16614276565b5b6004840891507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612b4c57612b4b614276565b5b8284099050612b5a81613353565b905060007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612b8d57612b8c614276565b5b83840990507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612bc157612bc0614276565b5b83820990507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612bf557612bf4614276565b5b848509935060007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612c2b57612c2a614276565b5b8577b3c4d79d41a91759a9e4c7e359b6b89eaec68e62effffffd0990507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612c7757612c76614276565b5b8382099050612c85816133a7565b90507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612cb657612cb5614276565b5b7759e26bcea0d48bacd4f263f1acdb5c4f5763473177fffffe8208905060007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612d0457612d03614276565b5b600183089050612d13816133a7565b905060007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612d4657612d45614276565b5b847f2042def740cbc01bd03583cf0100e593ba56470b9af68708d2c05d64905353850990507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612d9a57612d99614276565b5b8582099050612da8816133a7565b90507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612dd957612dd8614276565b5b60018208905060007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612e1057612e0f614276565b5b84850990507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612e4457612e43614276565b5b84820990507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612e7857612e77614276565b5b6003820890506000612e89826133ee565b90507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612eba57612eb9614276565b5b84850991507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612eee57612eed614276565b5b84830991507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612f2257612f21614276565b5b6003830891506000612f33836133ee565b9050600060016004600384612f489190615584565b600186612f559190615584565b612f5f9190615618565b612f69919061572f565b612f739190615799565b905060006001821415612f8857879050612f9e565b6002821415612f9957869050612f9d565b8590505b5b7f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612fcd57612fcc614276565b5b81820994507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd478061300157613000614276565b5b81860994507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd478061303557613034614276565b5b60038608945061304485613473565b945060006130518f6134c7565b90507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd478061308257613081614276565b5b81870995506130a460405180604001604052808481526020018881525061318f565b6130e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130da9061589f565b60405180910390fd5b818e6000600281106130f8576130f76146cf565b5b602002018181525050858e600160028110613116576131156146cf565b5b60200201818152505050505050505050505050505050919050565b6131396135a0565b60006040826080856006600019fa905080613189576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131809061590b565b60405180910390fd5b50919050565b60007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47806131c0576131bf614276565b5b60037f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47806131f1576131f0614276565b5b7f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47806132205761321f614276565b5b85600060028110613234576132336146cf565b5b60200201518660006002811061324d5761324c6146cf565b5b60200201510985600060028110613267576132666146cf565b5b602002015109087f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd478061329d5761329c614276565b5b836001600281106132b1576132b06146cf565b5b6020020151846001600281106132ca576132c96146cf565b5b602002015109149050919050565b600080826000600281106132ef576132ee6146cf565b5b602002015114806133185750600182600060028110613311576133106146cf565b5b6020020151145b15613326576000905061332b565b600190505b919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006133a0827f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd457f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4761351e565b9050919050565b6000808214156133ba57600090506133e9565b817f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd476133e69190615186565b90505b919050565b60008061343c837f183227397098d014dc2822db40c0ac2ecbc0b548b438e5469e10460b6c3e7ea37f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4761351e565b90506000811461346857600180821660026134579190615618565b6134619190615584565b915061346d565b600091505b50919050565b60006134c0827f0c19139cb84c680a6e14116da060561765e05aa45a1c72a34f082305b61f3f527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4761351e565b9050919050565b6000600190507f183227397098d014dc2822db40c0ac2ecbc0b548b438e5469e10460b6c3e7ea3821115613519577f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4690505b919050565b60008060405160208152602080820152602060408201528560608201528460808201528360a082015260208160c08360055afa9150805192505080613598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161358f90615977565b60405180910390fd5b509392505050565b6040518060400160405280600290602082028036833780820191505090505090565b6040518060200160405280600190602082028036833780820191505090505090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61362d816135f8565b811461363857600080fd5b50565b60008135905061364a81613624565b92915050565b600060208284031215613666576136656135ee565b5b60006136748482850161363b565b91505092915050565b60008115159050919050565b6136928161367d565b82525050565b60006020820190506136ad6000830184613689565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156136ed5780820151818401526020810190506136d2565b838111156136fc576000848401525b50505050565b6000601f19601f8301169050919050565b600061371e826136b3565b61372881856136be565b93506137388185602086016136cf565b61374181613702565b840191505092915050565b600060208201905081810360008301526137668184613713565b905092915050565b6000819050919050565b6137818161376e565b811461378c57600080fd5b50565b60008135905061379e81613778565b92915050565b6000602082840312156137ba576137b96135ee565b5b60006137c88482850161378f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006137fc826137d1565b9050919050565b61380c816137f1565b82525050565b60006020820190506138276000830184613803565b92915050565b613836816137f1565b811461384157600080fd5b50565b6000813590506138538161382d565b92915050565b600080604083850312156138705761386f6135ee565b5b600061387e85828601613844565b925050602061388f8582860161378f565b9150509250929050565b6138a28161376e565b82525050565b60006020820190506138bd6000830184613899565b92915050565b6000806000606084860312156138dc576138db6135ee565b5b60006138ea86828701613844565b93505060206138fb86828701613844565b925050604061390c8682870161378f565b9150509250925092565b6000819050919050565b61392981613916565b811461393457600080fd5b50565b60008135905061394681613920565b92915050565b60008060408385031215613963576139626135ee565b5b60006139718582860161378f565b925050602061398285828601613937565b9150509250929050565b61399581613916565b82525050565b60006020820190506139b0600083018461398c565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6139f382613702565b810181811067ffffffffffffffff82111715613a1257613a116139bb565b5b80604052505050565b6000613a256135e4565b9050613a3182826139ea565b919050565b600067ffffffffffffffff821115613a5157613a506139bb565b5b602082029050602081019050919050565b600080fd5b6000613a7a613a7584613a36565b613a1b565b90508083825260208201905060208402830185811115613a9d57613a9c613a62565b5b835b81811015613ac65780613ab28882613937565b845260208401935050602081019050613a9f565b5050509392505050565b600082601f830112613ae557613ae46139b6565b5b8135613af5848260208601613a67565b91505092915050565b600067ffffffffffffffff821115613b1957613b186139bb565b5b602082029050919050565b6000613b37613b3284613afe565b613a1b565b90508060208402830185811115613b5157613b50613a62565b5b835b81811015613b7a5780613b66888261378f565b845260208401935050602081019050613b53565b5050509392505050565b600082601f830112613b9957613b986139b6565b5b6002613ba6848285613b24565b91505092915050565b600067ffffffffffffffff821115613bca57613bc96139bb565b5b602082029050919050565b6000613be8613be384613baf565b613a1b565b90508060208402830185811115613c0257613c01613a62565b5b835b81811015613c2b5780613c17888261378f565b845260208401935050602081019050613c04565b5050509392505050565b600082601f830112613c4a57613c496139b6565b5b6004613c57848285613bd5565b91505092915050565b600080600060e08486031215613c7957613c786135ee565b5b600084013567ffffffffffffffff811115613c9757613c966135f3565b5b613ca386828701613ad0565b9350506020613cb486828701613b84565b9250506060613cc586828701613c35565b9150509250925092565b600060208284031215613ce557613ce46135ee565b5b6000613cf384828501613844565b91505092915050565b60008060a08385031215613d1357613d126135ee565b5b600083013567ffffffffffffffff811115613d3157613d306135f3565b5b613d3d85828601613ad0565b9250506020613d4e85828601613c35565b9150509250929050565b613d618161367d565b8114613d6c57600080fd5b50565b600081359050613d7e81613d58565b92915050565b60008060408385031215613d9b57613d9a6135ee565b5b6000613da985828601613844565b9250506020613dba85828601613d6f565b9150509250929050565b60008060c08385031215613ddb57613dda6135ee565b5b6000613de985828601613b84565b9250506040613dfa85828601613c35565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000613e2b82613e04565b613e358185613e0f565b9350613e458185602086016136cf565b613e4e81613702565b840191505092915050565b60006020820190508181036000830152613e738184613e20565b905092915050565b600080fd5b600067ffffffffffffffff821115613e9b57613e9a6139bb565b5b613ea482613702565b9050602081019050919050565b82818337600083830152505050565b6000613ed3613ece84613e80565b613a1b565b905082815260208101848484011115613eef57613eee613e7b565b5b613efa848285613eb1565b509392505050565b600082601f830112613f1757613f166139b6565b5b8135613f27848260208601613ec0565b91505092915050565b60008060008060808587031215613f4a57613f496135ee565b5b6000613f5887828801613844565b9450506020613f6987828801613844565b9350506040613f7a8782880161378f565b925050606085013567ffffffffffffffff811115613f9b57613f9a6135f3565b5b613fa787828801613f02565b91505092959194509250565b60008060408385031215613fca57613fc96135ee565b5b6000613fd885828601613844565b9250506020613fe985828601613844565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061403a57607f821691505b6020821081141561404e5761404d613ff3565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006140b0602c836136be565b91506140bb82614054565b604082019050919050565b600060208201905081810360008301526140df816140a3565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006141426021836136be565b915061414d826140e6565b604082019050919050565b6000602082019050818103600083015261417181614135565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006141d46038836136be565b91506141df82614178565b604082019050919050565b60006020820190508181036000830152614203816141c7565b9050919050565b7f50757a7a6c6520616c726561647920736f756c76656400000000000000000000600082015250565b60006142406016836136be565b915061424b8261420a565b602082019050919050565b6000602082019050818103600083015261426f81614233565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006142b08261376e565b91506142bb8361376e565b9250826142cb576142ca614276565b5b828206905092915050565b7f496e76616c69642076616c75652073656e740000000000000000000000000000600082015250565b600061430c6012836136be565b9150614317826142d6565b602082019050919050565b6000602082019050818103600083015261433b816142ff565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061437c8261376e565b91506143878361376e565b92508261439757614396614276565b5b828204905092915050565b60006143ad8261376e565b91506143b88361376e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143ed576143ec614342565b5b828201905092915050565b7f596f75206f6e6c79206e65656420320000000000000000000000000000000000600082015250565b600061442e600f836136be565b9150614439826143f8565b602082019050919050565b6000602082019050818103600083015261445d81614421565b9050919050565b7f4d696e7420776f756c642065786365656420746f74616c20737570706c790000600082015250565b600061449a601e836136be565b91506144a582614464565b602082019050919050565b600060208201905081810360008301526144c98161448d565b9050919050565b60006144db8261376e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561450e5761450d614342565b5b600182019050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006145756031836136be565b915061458082614519565b604082019050919050565b600060208201905081810360008301526145a481614568565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614607602b836136be565b9150614612826145ab565b604082019050919050565b60006020820190508181036000830152614636816145fa565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614699602c836136be565b91506146a48261463d565b604082019050919050565b600060208201905081810360008301526146c88161468c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b6147196147148261376e565b6146fe565b82525050565b6000819050919050565b61473a61473582613916565b61471f565b82525050565b600061474c8285614708565b60208201915061475c8284614729565b6020820191508190509392505050565b7f4e6f7420612076616c6964207075626c6963206b657900000000000000000000600082015250565b60006147a26016836136be565b91506147ad8261476c565b602082019050919050565b600060208201905081810360008301526147d181614795565b9050919050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b600061480e6011836136be565b9150614819826147d8565b602082019050919050565b6000602082019050818103600083015261483d81614801565b9050919050565b600081905092915050565b50565b600061485f600083614844565b915061486a8261484f565b600082019050919050565b600061488082614852565b9150819050919050565b7f5769746864726177206661696c65640000000000000000000000000000000000600082015250565b60006148c0600f836136be565b91506148cb8261488a565b602082019050919050565b600060208201905081810360008301526148ef816148b3565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006149526029836136be565b915061495d826148f6565b604082019050919050565b6000602082019050818103600083015261498181614945565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006149e4602a836136be565b91506149ef82614988565b604082019050919050565b60006020820190508181036000830152614a13816149d7565b9050919050565b600060049050919050565b600081905092915050565b6000819050919050565b614a438161376e565b82525050565b6000614a558383614a3a565b60208301905092915050565b6000602082019050919050565b614a7781614a1a565b614a818184614a25565b9250614a8c82614a30565b8060005b83811015614abd578151614aa48782614a49565b9650614aaf83614a61565b925050600181019050614a90565b505050505050565b6000614ad18284614a6e565b60808201915081905092915050565b6000614aec8284614729565b60208201915081905092915050565b6000614b0682613e04565b614b108185614844565b9350614b208185602086016136cf565b80840191505092915050565b6000614b388288614708565b602082019150614b488287614708565b602082019150614b588286614708565b602082019150614b688285614708565b602082019150614b788284614afb565b91508190509695505050505050565b6000614b938284614708565b60208201915081905092915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614bcf81614022565b614bd98186614ba2565b94506001821660008114614bf45760018114614c0557614c38565b60ff19831686528186019350614c38565b614c0e85614bad565b60005b83811015614c3057815481890152600182019150602081019050614c11565b838801955050505b50505092915050565b6000614c4d8285614afb565b9150614c598284614bc2565b91508190509392505050565b600060ff82169050919050565b6000614c7d82614c65565b915060ff821415614c9157614c90614342565b5b600182019050919050565b7f546f6b656e20646f6573206e6f74206578697374000000000000000000000000600082015250565b6000614cd26014836136be565b9150614cdd82614c9c565b602082019050919050565b60006020820190508181036000830152614d0181614cc5565b9050919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d60008201527f65223a2200000000000000000000000000000000000000000000000000000000602082015250565b6000614d64602483614ba2565b9150614d6f82614d08565b602482019050919050565b6000614d85826136b3565b614d8f8185614ba2565b9350614d9f8185602086016136cf565b80840191505092915050565b7f222c22696d6167655f64617461223a2200000000000000000000000000000000600082015250565b6000614de1601083614ba2565b9150614dec82614dab565b601082019050919050565b7f697066733a2f2f516d5446537455587859596256654a584b4e7564726476766d60008201527f7a427a6b3171584874363173744b7a654c4b674a570000000000000000000000602082015250565b6000614e53603583614ba2565b9150614e5e82614df7565b603582019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000614e9f600283614ba2565b9150614eaa82614e69565b600282019050919050565b6000614ec082614d57565b9150614ecc8284614d7a565b9150614ed782614dd4565b9150614ee282614e46565b9150614eed82614e92565b915081905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614f2e6020836136be565b9150614f3982614ef8565b602082019050919050565b60006020820190508181036000830152614f5d81614f21565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614f9a601c836136be565b9150614fa582614f64565b602082019050919050565b60006020820190508181036000830152614fc981614f8d565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061502c602c836136be565b915061503782614fd0565b604082019050919050565b6000602082019050818103600083015261505b8161501f565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006150be6025836136be565b91506150c982615062565b604082019050919050565b600060208201905081810360008301526150ed816150b1565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006151506024836136be565b915061515b826150f4565b604082019050919050565b6000602082019050818103600083015261517f81615143565b9050919050565b60006151918261376e565b915061519c8361376e565b9250828210156151af576151ae614342565b5b828203905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006151f06019836136be565b91506151fb826151ba565b602082019050919050565b6000602082019050818103600083015261521f816151e3565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006152826032836136be565b915061528d82615226565b604082019050919050565b600060208201905081810360008301526152b181615275565b9050919050565b7f496e76616c6964206861736820706f696e743a206e6f74206f6e20656c6c697060008201527f7469632063757276650000000000000000000000000000000000000000000000602082015250565b60006153146029836136be565b915061531f826152b8565b604082019050919050565b6000602082019050818103600083015261534381615307565b9050919050565b7f44616e6765726f7573206861736820706f696e743a206e6f742073616665206660008201527f6f72207369676e696e6700000000000000000000000000000000000000000000602082015250565b60006153a6602a836136be565b91506153b18261534a565b604082019050919050565b600060208201905081810360008301526153d581615399565b9050919050565b7f656c6c69707469632063757276652070616972696e67206661696c6564000000600082015250565b6000615412601d836136be565b915061541d826153dc565b602082019050919050565b6000602082019050818103600083015261544181615405565b9050919050565b600060808201905061545d6000830187613803565b61546a6020830186613803565b6154776040830185613899565b81810360608301526154898184613e20565b905095945050505050565b6000815190506154a381613624565b92915050565b6000602082840312156154bf576154be6135ee565b5b60006154cd84828501615494565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b61554c61554782615505565b615531565b82525050565b600061555e828561553b565b60018201915061556e8284614afb565b91508190509392505050565b6000819050919050565b600061558f8261557a565b915061559a8361557a565b9250827f8000000000000000000000000000000000000000000000000000000000000000018212600084121516156155d5576155d4614342565b5b827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01821360008412161561560d5761560c614342565b5b828203905092915050565b60006156238261557a565b915061562e8361557a565b9250827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211600084136000841316161561566d5761566c614342565b5b817f800000000000000000000000000000000000000000000000000000000000000005831260008412600084131616156156aa576156a9614342565b5b827f800000000000000000000000000000000000000000000000000000000000000005821260008413600084121616156156e7576156e6614342565b5b827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff058212600084126000841216161561572457615723614342565b5b828202905092915050565b600061573a8261557a565b91506157458361557a565b92508261575557615754614276565b5b600160000383147f80000000000000000000000000000000000000000000000000000000000000008314161561578e5761578d614342565b5b828205905092915050565b60006157a48261557a565b91506157af8361557a565b9250817f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038313600083121516156157ea576157e9614342565b5b817f800000000000000000000000000000000000000000000000000000000000000003831260008312161561582257615821614342565b5b828201905092915050565b7f496e76616c696420706f696e743a206e6f74206f6e20656c6c6970746963206360008201527f7572766500000000000000000000000000000000000000000000000000000000602082015250565b60006158896024836136be565b91506158948261582d565b604082019050919050565b600060208201905081810360008301526158b88161587c565b9050919050565b7f656c6c6970746963206375727665206164646974696f6e206661696c65640000600082015250565b60006158f5601e836136be565b9150615900826158bf565b602082019050919050565b60006020820190508181036000830152615924816158e8565b9050919050565b7f6d6f64756c6172206578706f6e656e74696174696f6e2066616c696564000000600082015250565b6000615961601d836136be565b915061596c8261592b565b602082019050919050565b6000602082019050818103600083015261599081615954565b905091905056fea2646970667358221220b5aa68ee7eb457d586b7241eecf3925f793115b3cc661356c8f861bf5bb65a0564736f6c634300080b0033

Deployed Bytecode

0x6080604052600436106101c25760003560e01c8063639814e0116100f757806399554f9111610095578063b88d4fde11610064578063b88d4fde14610664578063c87b56dd1461068d578063d5abeb01146106ca578063e985e9c5146106f5576101c2565b806399554f9114610596578063a22cb465146105d3578063b3563a64146105fc578063b862ef8414610639576101c2565b80636e83877f116100d15780636e83877f146104d857806370a082311461050357806381be01881461054057806395d89b411461056b576101c2565b8063639814e0146104575780636553b1ca146104825780636817c76c146104ad576101c2565b80632f745c591161016457806353b0342b1161013e57806353b0342b1461039657806357f63024146103b457806359f7b456146103f15780636352211e1461041a576101c2565b80632f745c59146102f357806342842e0e146103305780634f6ccce714610359576101c2565b8063095ea7b3116101a0578063095ea7b31461026c5780631249c58b1461029557806318160ddd1461029f57806323b872dd146102ca576101c2565b806301ffc9a7146101c757806306fdde0314610204578063081812fc1461022f575b600080fd5b3480156101d357600080fd5b506101ee60048036038101906101e99190613650565b610732565b6040516101fb9190613698565b60405180910390f35b34801561021057600080fd5b506102196107ac565b604051610226919061374c565b60405180910390f35b34801561023b57600080fd5b50610256600480360381019061025191906137a4565b61083e565b6040516102639190613812565b60405180910390f35b34801561027857600080fd5b50610293600480360381019061028e9190613859565b6108c3565b005b61029d6109db565b005b3480156102ab57600080fd5b506102b4610b8f565b6040516102c191906138a8565b60405180910390f35b3480156102d657600080fd5b506102f160048036038101906102ec91906138c3565b610b9c565b005b3480156102ff57600080fd5b5061031a60048036038101906103159190613859565b610bfc565b60405161032791906138a8565b60405180910390f35b34801561033c57600080fd5b50610357600480360381019061035291906138c3565b610ca1565b005b34801561036557600080fd5b50610380600480360381019061037b91906137a4565b610cc1565b60405161038d91906138a8565b60405180910390f35b61039e610d32565b6040516103ab919061374c565b60405180910390f35b3480156103c057600080fd5b506103db60048036038101906103d6919061394c565b610dc4565b6040516103e8919061399b565b60405180910390f35b3480156103fd57600080fd5b5061041860048036038101906104139190613c60565b610e0f565b005b34801561042657600080fd5b50610441600480360381019061043c91906137a4565b610f53565b60405161044e9190613812565b60405180910390f35b34801561046357600080fd5b5061046c611005565b60405161047991906138a8565b60405180910390f35b34801561048e57600080fd5b5061049761100b565b6040516104a49190613698565b60405180910390f35b3480156104b957600080fd5b506104c261101e565b6040516104cf91906138a8565b60405180910390f35b3480156104e457600080fd5b506104ed611024565b6040516104fa919061399b565b60405180910390f35b34801561050f57600080fd5b5061052a60048036038101906105259190613ccf565b61102a565b60405161053791906138a8565b60405180910390f35b34801561054c57600080fd5b506105556110e2565b604051610562919061399b565b60405180910390f35b34801561057757600080fd5b506105806110e8565b60405161058d919061374c565b60405180910390f35b3480156105a257600080fd5b506105bd60048036038101906105b89190613cfc565b61117a565b6040516105ca9190613698565b60405180910390f35b3480156105df57600080fd5b506105fa60048036038101906105f59190613d84565b6111e8565b005b34801561060857600080fd5b50610623600480360381019061061e9190613dc4565b6111fe565b6040516106309190613698565b60405180910390f35b34801561064557600080fd5b5061064e6112ac565b60405161065b9190613e59565b60405180910390f35b34801561067057600080fd5b5061068b60048036038101906106869190613f30565b611361565b005b34801561069957600080fd5b506106b460048036038101906106af91906137a4565b6113c3565b6040516106c1919061374c565b60405180910390f35b3480156106d657600080fd5b506106df61143c565b6040516106ec91906138a8565b60405180910390f35b34801561070157600080fd5b5061071c60048036038101906107179190613fb3565b611442565b6040516107299190613698565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107a557506107a4826114d6565b5b9050919050565b6060600080546107bb90614022565b80601f01602080910402602001604051908101604052809291908181526020018280546107e790614022565b80156108345780601f1061080957610100808354040283529160200191610834565b820191906000526020600020905b81548152906001019060200180831161081757829003601f168201915b5050505050905090565b6000610849826115b8565b610888576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087f906140c6565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108ce82610f53565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561093f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093690614158565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661095e611624565b73ffffffffffffffffffffffffffffffffffffffff16148061098d575061098c81610987611624565b611442565b5b6109cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c3906141ea565b60405180910390fd5b6109d6838361162c565b505050565b601160009054906101000a900460ff1615610a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2290614256565b60405180910390fd5b6010543410158015610a4a5750600060105434610a4891906142a5565b145b610a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8090614322565b60405180910390fd5b600060105434610a999190614371565b9050600f5481610aa83361102a565b610ab291906143a2565b1115610af3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aea90614444565b60405180910390fd5b600e5481610aff610b8f565b610b0991906143a2565b1115610b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b41906144b0565b60405180910390fd5b60005b81811015610b8b57610b5f600b6116e5565b6000610b6b600b6116fb565b9050610b773382611709565b508080610b83906144d0565b915050610b4d565b5050565b6000600880549050905090565b610bad610ba7611624565b826118e3565b610bec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be39061458b565b60405180910390fd5b610bf78383836119c1565b505050565b6000610c078361102a565b8210610c48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3f9061461d565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610cbc83838360405180602001604052806000815250611361565b505050565b6000610ccb610b8f565b8210610d0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d03906146af565b60405180910390fd5b60088281548110610d2057610d1f6146cf565b5b90600052602060002001549050919050565b6060600c8054610d4190614022565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6d90614022565b8015610dba5780601f10610d8f57610100808354040283529160200191610dba565b820191906000526020600020905b815481529060010190602001808311610d9d57829003601f168201915b5050505050905090565b60006001604284610dd591906142a5565b610ddf91906143a2565b82604051602001610df1929190614740565b60405160208183030381529060405280519060200120905092915050565b610e19838261117a565b610e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4f906147b8565b60405180910390fd5b610e6282826111fe565b610ea1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9890614824565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610ec790614875565b60006040518083038185875af1925050503d8060008114610f04576040519150601f19603f3d011682016040523d82523d6000602084013e610f09565b606091505b5050905080610f4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f44906148d6565b60405180910390fd5b50505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ffc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff390614968565b60405180910390fd5b80915050919050565b600f5481565b601160009054906101000a900460ff1681565b60105481565b600d5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561109b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611092906149fa565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600a5481565b6060600180546110f790614022565b80601f016020809104026020016040519081016040528092919081815260200182805461112390614022565b80156111705780601f1061114557610100808354040283529160200191611170565b820191906000526020600020905b81548152906001019060200180831161115357829003601f168201915b5050505050905090565b6000808260405160200161118e9190614ac5565b6040516020818303038152906040528051906020012090506000816040516020016111b99190614ae0565b6040516020818303038152906040528051906020012090506111de85600a5483611c28565b9250505092915050565b6111fa6111f3611624565b8383611c3f565b5050565b6000806112096112ac565b9050600083600060048110611221576112206146cf565b5b60200201518460016004811061123a576112396146cf565b5b602002015185600260048110611253576112526146cf565b5b60200201518660036004811061126c5761126b6146cf565b5b602002015185604051602001611286959493929190614b2c565b60405160208183030381529060405290506112a2818686611dac565b9250505092915050565b6060600080600090505b60028160ff16101561133a5760006112d1338360ff16610bfc565b90506000816040516020016112e69190614b87565b604051602081830303815290604052905080600c60405160200161130b929190614c41565b60405160208183030381529060405280519060200120841893505050808061133290614c72565b9150506112b6565b508060405160200161134c9190614ae0565b60405160208183030381529060405291505090565b61137261136c611624565b836118e3565b6113b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a89061458b565b60405180910390fd5b6113bd84848484611f65565b50505050565b60606113ce826115b8565b61140d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140490614ce8565b60405180910390fd5b61141682611fc1565b6040516020016114269190614eb5565b6040516020818303038152906040529050919050565b600e5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806115a157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806115b157506115b082612122565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661169f83610f53565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001816000016000828254019250508190555050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611779576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177090614f44565b60405180910390fd5b611782816115b8565b156117c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b990614fb0565b60405180910390fd5b6117ce6000838361218c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461181e91906143a2565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46118df600083836122a0565b5050565b60006118ee826115b8565b61192d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192490615042565b60405180910390fd5b600061193883610f53565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806119a757508373ffffffffffffffffffffffffffffffffffffffff1661198f8461083e565b73ffffffffffffffffffffffffffffffffffffffff16145b806119b857506119b78185611442565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166119e182610f53565b73ffffffffffffffffffffffffffffffffffffffff1614611a37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2e906150d4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611aa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9e90615166565b60405180910390fd5b611ab283838361218c565b611abd60008261162c565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b0d9190615186565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b6491906143a2565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611c238383836122a0565b505050565b600082611c3585846122a5565b1490509392505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611cae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca590615206565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d9f9190613698565b60405180910390a3505050565b6000611db66135a0565b611dbf8561231a565b9050611f5b60405180610180016040528086600060028110611de457611de36146cf565b5b6020020151815260200186600160028110611e0257611e016146cf565b5b602002015181526020017f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c281526020017f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed81526020017f275dc4a288d1afb3cbb1ac09187524c7db36395df7be3b99e673b13a075a65ec81526020017f1d9befcd05a5323e6da4d435f3b617cdb3af83285c2df711ef39c01571827f9d815260200183600060028110611eb857611eb76146cf565b5b6020020151815260200183600160028110611ed657611ed56146cf565b5b6020020151815260200185600060048110611ef457611ef36146cf565b5b6020020151815260200185600160048110611f1257611f116146cf565b5b6020020151815260200185600260048110611f3057611f2f6146cf565b5b6020020151815260200185600360048110611f4e57611f4d6146cf565b5b602002015181525061248e565b9150509392505050565b611f708484846119c1565b611f7c8484848461250e565b611fbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb290615298565b60405180910390fd5b50505050565b60606000821415612009576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061211d565b600082905060005b6000821461203b578080612024906144d0565b915050600a826120349190614371565b9150612011565b60008167ffffffffffffffff811115612057576120566139bb565b5b6040519080825280601f01601f1916602001820160405280156120895781602001600182028036833780820191505090505b5090505b60008514612116576001826120a29190615186565b9150600a856120b191906142a5565b60306120bd91906143a2565b60f81b8183815181106120d3576120d26146cf565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561210f9190614371565b945061208d565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612197838383612696565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121da576121d58161269b565b612219565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146122185761221783826126e4565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561225c5761225781612851565b61229b565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461229a576122998282612922565b5b5b505050565b505050565b60008082905060005b845181101561230f5760008582815181106122cc576122cb6146cf565b5b602002602001015190508083116122ee576122e783826129a1565b92506122fb565b6122f881846129a1565b92505b508080612307906144d0565b9150506122ae565b508091505092915050565b6123226135a0565b600061233783600060f81b600160f81b6129b8565b9050600061234e84600260f81b600360f81b6129b8565b9050600061235b83612aa7565b9050600061236883612aa7565b90506123f360405180608001604052808460006002811061238c5761238b6146cf565b5b60200201518152602001846001600281106123aa576123a96146cf565b5b60200201518152602001836000600281106123c8576123c76146cf565b5b60200201518152602001836001600281106123e6576123e56146cf565b5b6020020151815250613131565b94506123fe8561318f565b61243d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124349061532a565b60405180910390fd5b612446856132d8565b612485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247c906153bc565b60405180910390fd5b50505050919050565b60006124986135c2565b6000602082610180866008600019fa9050806124e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e090615428565b60405180910390fd5b6001826000600181106124ff576124fe6146cf565b5b60200201511492505050919050565b600061252f8473ffffffffffffffffffffffffffffffffffffffff16613330565b15612689578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612558611624565b8786866040518563ffffffff1660e01b815260040161257a9493929190615448565b6020604051808303816000875af19250505080156125b657506040513d601f19601f820116820180604052508101906125b391906154a9565b60015b612639573d80600081146125e6576040519150601f19603f3d011682016040523d82523d6000602084013e6125eb565b606091505b50600081511415612631576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262890615298565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061268e565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016126f18461102a565b6126fb9190615186565b90506000600760008481526020019081526020016000205490508181146127e0576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506128659190615186565b9050600060096000848152602001908152602001600020549050600060088381548110612895576128946146cf565b5b9060005260206000200154905080600883815481106128b7576128b66146cf565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612906576129056154d6565b5b6001900381819060005260206000200160009055905550505050565b600061292d8361102a565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600082600052816020526040600020905092915050565b60008083856040516020016129ce929190615552565b6040516020818303038152906040528051906020012060001c9050600083866040516020016129fe929190615552565b6040516020818303038152906040528051906020012060001c90507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612a4857612a47614276565b5b817f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612a7857612a77614276565b5b7f0e0a77c19a07df2f666ea36f7879462c0a78eb28f5c70b3dd35d438dc58f0d9d850908925050509392505050565b612aaf6135a0565b60008060007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612ae357612ae2614276565b5b85860992507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612b1757612b16614276565b5b6004840891507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612b4c57612b4b614276565b5b8284099050612b5a81613353565b905060007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612b8d57612b8c614276565b5b83840990507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612bc157612bc0614276565b5b83820990507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612bf557612bf4614276565b5b848509935060007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612c2b57612c2a614276565b5b8577b3c4d79d41a91759a9e4c7e359b6b89eaec68e62effffffd0990507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612c7757612c76614276565b5b8382099050612c85816133a7565b90507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612cb657612cb5614276565b5b7759e26bcea0d48bacd4f263f1acdb5c4f5763473177fffffe8208905060007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612d0457612d03614276565b5b600183089050612d13816133a7565b905060007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612d4657612d45614276565b5b847f2042def740cbc01bd03583cf0100e593ba56470b9af68708d2c05d64905353850990507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612d9a57612d99614276565b5b8582099050612da8816133a7565b90507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612dd957612dd8614276565b5b60018208905060007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612e1057612e0f614276565b5b84850990507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612e4457612e43614276565b5b84820990507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612e7857612e77614276565b5b6003820890506000612e89826133ee565b90507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612eba57612eb9614276565b5b84850991507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612eee57612eed614276565b5b84830991507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612f2257612f21614276565b5b6003830891506000612f33836133ee565b9050600060016004600384612f489190615584565b600186612f559190615584565b612f5f9190615618565b612f69919061572f565b612f739190615799565b905060006001821415612f8857879050612f9e565b6002821415612f9957869050612f9d565b8590505b5b7f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4780612fcd57612fcc614276565b5b81820994507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd478061300157613000614276565b5b81860994507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd478061303557613034614276565b5b60038608945061304485613473565b945060006130518f6134c7565b90507f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd478061308257613081614276565b5b81870995506130a460405180604001604052808481526020018881525061318f565b6130e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130da9061589f565b60405180910390fd5b818e6000600281106130f8576130f76146cf565b5b602002018181525050858e600160028110613116576131156146cf565b5b60200201818152505050505050505050505050505050919050565b6131396135a0565b60006040826080856006600019fa905080613189576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131809061590b565b60405180910390fd5b50919050565b60007f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47806131c0576131bf614276565b5b60037f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47806131f1576131f0614276565b5b7f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47806132205761321f614276565b5b85600060028110613234576132336146cf565b5b60200201518660006002811061324d5761324c6146cf565b5b60200201510985600060028110613267576132666146cf565b5b602002015109087f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd478061329d5761329c614276565b5b836001600281106132b1576132b06146cf565b5b6020020151846001600281106132ca576132c96146cf565b5b602002015109149050919050565b600080826000600281106132ef576132ee6146cf565b5b602002015114806133185750600182600060028110613311576133106146cf565b5b6020020151145b15613326576000905061332b565b600190505b919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60006133a0827f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd457f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4761351e565b9050919050565b6000808214156133ba57600090506133e9565b817f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd476133e69190615186565b90505b919050565b60008061343c837f183227397098d014dc2822db40c0ac2ecbc0b548b438e5469e10460b6c3e7ea37f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4761351e565b90506000811461346857600180821660026134579190615618565b6134619190615584565b915061346d565b600091505b50919050565b60006134c0827f0c19139cb84c680a6e14116da060561765e05aa45a1c72a34f082305b61f3f527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4761351e565b9050919050565b6000600190507f183227397098d014dc2822db40c0ac2ecbc0b548b438e5469e10460b6c3e7ea3821115613519577f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4690505b919050565b60008060405160208152602080820152602060408201528560608201528460808201528360a082015260208160c08360055afa9150805192505080613598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161358f90615977565b60405180910390fd5b509392505050565b6040518060400160405280600290602082028036833780820191505090505090565b6040518060200160405280600190602082028036833780820191505090505090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61362d816135f8565b811461363857600080fd5b50565b60008135905061364a81613624565b92915050565b600060208284031215613666576136656135ee565b5b60006136748482850161363b565b91505092915050565b60008115159050919050565b6136928161367d565b82525050565b60006020820190506136ad6000830184613689565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156136ed5780820151818401526020810190506136d2565b838111156136fc576000848401525b50505050565b6000601f19601f8301169050919050565b600061371e826136b3565b61372881856136be565b93506137388185602086016136cf565b61374181613702565b840191505092915050565b600060208201905081810360008301526137668184613713565b905092915050565b6000819050919050565b6137818161376e565b811461378c57600080fd5b50565b60008135905061379e81613778565b92915050565b6000602082840312156137ba576137b96135ee565b5b60006137c88482850161378f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006137fc826137d1565b9050919050565b61380c816137f1565b82525050565b60006020820190506138276000830184613803565b92915050565b613836816137f1565b811461384157600080fd5b50565b6000813590506138538161382d565b92915050565b600080604083850312156138705761386f6135ee565b5b600061387e85828601613844565b925050602061388f8582860161378f565b9150509250929050565b6138a28161376e565b82525050565b60006020820190506138bd6000830184613899565b92915050565b6000806000606084860312156138dc576138db6135ee565b5b60006138ea86828701613844565b93505060206138fb86828701613844565b925050604061390c8682870161378f565b9150509250925092565b6000819050919050565b61392981613916565b811461393457600080fd5b50565b60008135905061394681613920565b92915050565b60008060408385031215613963576139626135ee565b5b60006139718582860161378f565b925050602061398285828601613937565b9150509250929050565b61399581613916565b82525050565b60006020820190506139b0600083018461398c565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6139f382613702565b810181811067ffffffffffffffff82111715613a1257613a116139bb565b5b80604052505050565b6000613a256135e4565b9050613a3182826139ea565b919050565b600067ffffffffffffffff821115613a5157613a506139bb565b5b602082029050602081019050919050565b600080fd5b6000613a7a613a7584613a36565b613a1b565b90508083825260208201905060208402830185811115613a9d57613a9c613a62565b5b835b81811015613ac65780613ab28882613937565b845260208401935050602081019050613a9f565b5050509392505050565b600082601f830112613ae557613ae46139b6565b5b8135613af5848260208601613a67565b91505092915050565b600067ffffffffffffffff821115613b1957613b186139bb565b5b602082029050919050565b6000613b37613b3284613afe565b613a1b565b90508060208402830185811115613b5157613b50613a62565b5b835b81811015613b7a5780613b66888261378f565b845260208401935050602081019050613b53565b5050509392505050565b600082601f830112613b9957613b986139b6565b5b6002613ba6848285613b24565b91505092915050565b600067ffffffffffffffff821115613bca57613bc96139bb565b5b602082029050919050565b6000613be8613be384613baf565b613a1b565b90508060208402830185811115613c0257613c01613a62565b5b835b81811015613c2b5780613c17888261378f565b845260208401935050602081019050613c04565b5050509392505050565b600082601f830112613c4a57613c496139b6565b5b6004613c57848285613bd5565b91505092915050565b600080600060e08486031215613c7957613c786135ee565b5b600084013567ffffffffffffffff811115613c9757613c966135f3565b5b613ca386828701613ad0565b9350506020613cb486828701613b84565b9250506060613cc586828701613c35565b9150509250925092565b600060208284031215613ce557613ce46135ee565b5b6000613cf384828501613844565b91505092915050565b60008060a08385031215613d1357613d126135ee565b5b600083013567ffffffffffffffff811115613d3157613d306135f3565b5b613d3d85828601613ad0565b9250506020613d4e85828601613c35565b9150509250929050565b613d618161367d565b8114613d6c57600080fd5b50565b600081359050613d7e81613d58565b92915050565b60008060408385031215613d9b57613d9a6135ee565b5b6000613da985828601613844565b9250506020613dba85828601613d6f565b9150509250929050565b60008060c08385031215613ddb57613dda6135ee565b5b6000613de985828601613b84565b9250506040613dfa85828601613c35565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000613e2b82613e04565b613e358185613e0f565b9350613e458185602086016136cf565b613e4e81613702565b840191505092915050565b60006020820190508181036000830152613e738184613e20565b905092915050565b600080fd5b600067ffffffffffffffff821115613e9b57613e9a6139bb565b5b613ea482613702565b9050602081019050919050565b82818337600083830152505050565b6000613ed3613ece84613e80565b613a1b565b905082815260208101848484011115613eef57613eee613e7b565b5b613efa848285613eb1565b509392505050565b600082601f830112613f1757613f166139b6565b5b8135613f27848260208601613ec0565b91505092915050565b60008060008060808587031215613f4a57613f496135ee565b5b6000613f5887828801613844565b9450506020613f6987828801613844565b9350506040613f7a8782880161378f565b925050606085013567ffffffffffffffff811115613f9b57613f9a6135f3565b5b613fa787828801613f02565b91505092959194509250565b60008060408385031215613fca57613fc96135ee565b5b6000613fd885828601613844565b9250506020613fe985828601613844565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061403a57607f821691505b6020821081141561404e5761404d613ff3565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006140b0602c836136be565b91506140bb82614054565b604082019050919050565b600060208201905081810360008301526140df816140a3565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006141426021836136be565b915061414d826140e6565b604082019050919050565b6000602082019050818103600083015261417181614135565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006141d46038836136be565b91506141df82614178565b604082019050919050565b60006020820190508181036000830152614203816141c7565b9050919050565b7f50757a7a6c6520616c726561647920736f756c76656400000000000000000000600082015250565b60006142406016836136be565b915061424b8261420a565b602082019050919050565b6000602082019050818103600083015261426f81614233565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006142b08261376e565b91506142bb8361376e565b9250826142cb576142ca614276565b5b828206905092915050565b7f496e76616c69642076616c75652073656e740000000000000000000000000000600082015250565b600061430c6012836136be565b9150614317826142d6565b602082019050919050565b6000602082019050818103600083015261433b816142ff565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061437c8261376e565b91506143878361376e565b92508261439757614396614276565b5b828204905092915050565b60006143ad8261376e565b91506143b88361376e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143ed576143ec614342565b5b828201905092915050565b7f596f75206f6e6c79206e65656420320000000000000000000000000000000000600082015250565b600061442e600f836136be565b9150614439826143f8565b602082019050919050565b6000602082019050818103600083015261445d81614421565b9050919050565b7f4d696e7420776f756c642065786365656420746f74616c20737570706c790000600082015250565b600061449a601e836136be565b91506144a582614464565b602082019050919050565b600060208201905081810360008301526144c98161448d565b9050919050565b60006144db8261376e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561450e5761450d614342565b5b600182019050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006145756031836136be565b915061458082614519565b604082019050919050565b600060208201905081810360008301526145a481614568565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614607602b836136be565b9150614612826145ab565b604082019050919050565b60006020820190508181036000830152614636816145fa565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614699602c836136be565b91506146a48261463d565b604082019050919050565b600060208201905081810360008301526146c88161468c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b6147196147148261376e565b6146fe565b82525050565b6000819050919050565b61473a61473582613916565b61471f565b82525050565b600061474c8285614708565b60208201915061475c8284614729565b6020820191508190509392505050565b7f4e6f7420612076616c6964207075626c6963206b657900000000000000000000600082015250565b60006147a26016836136be565b91506147ad8261476c565b602082019050919050565b600060208201905081810360008301526147d181614795565b9050919050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b600061480e6011836136be565b9150614819826147d8565b602082019050919050565b6000602082019050818103600083015261483d81614801565b9050919050565b600081905092915050565b50565b600061485f600083614844565b915061486a8261484f565b600082019050919050565b600061488082614852565b9150819050919050565b7f5769746864726177206661696c65640000000000000000000000000000000000600082015250565b60006148c0600f836136be565b91506148cb8261488a565b602082019050919050565b600060208201905081810360008301526148ef816148b3565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006149526029836136be565b915061495d826148f6565b604082019050919050565b6000602082019050818103600083015261498181614945565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006149e4602a836136be565b91506149ef82614988565b604082019050919050565b60006020820190508181036000830152614a13816149d7565b9050919050565b600060049050919050565b600081905092915050565b6000819050919050565b614a438161376e565b82525050565b6000614a558383614a3a565b60208301905092915050565b6000602082019050919050565b614a7781614a1a565b614a818184614a25565b9250614a8c82614a30565b8060005b83811015614abd578151614aa48782614a49565b9650614aaf83614a61565b925050600181019050614a90565b505050505050565b6000614ad18284614a6e565b60808201915081905092915050565b6000614aec8284614729565b60208201915081905092915050565b6000614b0682613e04565b614b108185614844565b9350614b208185602086016136cf565b80840191505092915050565b6000614b388288614708565b602082019150614b488287614708565b602082019150614b588286614708565b602082019150614b688285614708565b602082019150614b788284614afb565b91508190509695505050505050565b6000614b938284614708565b60208201915081905092915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614bcf81614022565b614bd98186614ba2565b94506001821660008114614bf45760018114614c0557614c38565b60ff19831686528186019350614c38565b614c0e85614bad565b60005b83811015614c3057815481890152600182019150602081019050614c11565b838801955050505b50505092915050565b6000614c4d8285614afb565b9150614c598284614bc2565b91508190509392505050565b600060ff82169050919050565b6000614c7d82614c65565b915060ff821415614c9157614c90614342565b5b600182019050919050565b7f546f6b656e20646f6573206e6f74206578697374000000000000000000000000600082015250565b6000614cd26014836136be565b9150614cdd82614c9c565b602082019050919050565b60006020820190508181036000830152614d0181614cc5565b9050919050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b226e616d60008201527f65223a2200000000000000000000000000000000000000000000000000000000602082015250565b6000614d64602483614ba2565b9150614d6f82614d08565b602482019050919050565b6000614d85826136b3565b614d8f8185614ba2565b9350614d9f8185602086016136cf565b80840191505092915050565b7f222c22696d6167655f64617461223a2200000000000000000000000000000000600082015250565b6000614de1601083614ba2565b9150614dec82614dab565b601082019050919050565b7f697066733a2f2f516d5446537455587859596256654a584b4e7564726476766d60008201527f7a427a6b3171584874363173744b7a654c4b674a570000000000000000000000602082015250565b6000614e53603583614ba2565b9150614e5e82614df7565b603582019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000614e9f600283614ba2565b9150614eaa82614e69565b600282019050919050565b6000614ec082614d57565b9150614ecc8284614d7a565b9150614ed782614dd4565b9150614ee282614e46565b9150614eed82614e92565b915081905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614f2e6020836136be565b9150614f3982614ef8565b602082019050919050565b60006020820190508181036000830152614f5d81614f21565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614f9a601c836136be565b9150614fa582614f64565b602082019050919050565b60006020820190508181036000830152614fc981614f8d565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061502c602c836136be565b915061503782614fd0565b604082019050919050565b6000602082019050818103600083015261505b8161501f565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006150be6025836136be565b91506150c982615062565b604082019050919050565b600060208201905081810360008301526150ed816150b1565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006151506024836136be565b915061515b826150f4565b604082019050919050565b6000602082019050818103600083015261517f81615143565b9050919050565b60006151918261376e565b915061519c8361376e565b9250828210156151af576151ae614342565b5b828203905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006151f06019836136be565b91506151fb826151ba565b602082019050919050565b6000602082019050818103600083015261521f816151e3565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006152826032836136be565b915061528d82615226565b604082019050919050565b600060208201905081810360008301526152b181615275565b9050919050565b7f496e76616c6964206861736820706f696e743a206e6f74206f6e20656c6c697060008201527f7469632063757276650000000000000000000000000000000000000000000000602082015250565b60006153146029836136be565b915061531f826152b8565b604082019050919050565b6000602082019050818103600083015261534381615307565b9050919050565b7f44616e6765726f7573206861736820706f696e743a206e6f742073616665206660008201527f6f72207369676e696e6700000000000000000000000000000000000000000000602082015250565b60006153a6602a836136be565b91506153b18261534a565b604082019050919050565b600060208201905081810360008301526153d581615399565b9050919050565b7f656c6c69707469632063757276652070616972696e67206661696c6564000000600082015250565b6000615412601d836136be565b915061541d826153dc565b602082019050919050565b6000602082019050818103600083015261544181615405565b9050919050565b600060808201905061545d6000830187613803565b61546a6020830186613803565b6154776040830185613899565b81810360608301526154898184613e20565b905095945050505050565b6000815190506154a381613624565b92915050565b6000602082840312156154bf576154be6135ee565b5b60006154cd84828501615494565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b61554c61554782615505565b615531565b82525050565b600061555e828561553b565b60018201915061556e8284614afb565b91508190509392505050565b6000819050919050565b600061558f8261557a565b915061559a8361557a565b9250827f8000000000000000000000000000000000000000000000000000000000000000018212600084121516156155d5576155d4614342565b5b827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01821360008412161561560d5761560c614342565b5b828203905092915050565b60006156238261557a565b915061562e8361557a565b9250827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211600084136000841316161561566d5761566c614342565b5b817f800000000000000000000000000000000000000000000000000000000000000005831260008412600084131616156156aa576156a9614342565b5b827f800000000000000000000000000000000000000000000000000000000000000005821260008413600084121616156156e7576156e6614342565b5b827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff058212600084126000841216161561572457615723614342565b5b828202905092915050565b600061573a8261557a565b91506157458361557a565b92508261575557615754614276565b5b600160000383147f80000000000000000000000000000000000000000000000000000000000000008314161561578e5761578d614342565b5b828205905092915050565b60006157a48261557a565b91506157af8361557a565b9250817f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038313600083121516156157ea576157e9614342565b5b817f800000000000000000000000000000000000000000000000000000000000000003831260008312161561582257615821614342565b5b828201905092915050565b7f496e76616c696420706f696e743a206e6f74206f6e20656c6c6970746963206360008201527f7572766500000000000000000000000000000000000000000000000000000000602082015250565b60006158896024836136be565b91506158948261582d565b604082019050919050565b600060208201905081810360008301526158b88161587c565b9050919050565b7f656c6c6970746963206375727665206164646974696f6e206661696c65640000600082015250565b60006158f5601e836136be565b9150615900826158bf565b602082019050919050565b60006020820190508181036000830152615924816158e8565b9050919050565b7f6d6f64756c6172206578706f6e656e74696174696f6e2066616c696564000000600082015250565b6000615961601d836136be565b915061596c8261592b565b602082019050919050565b6000602082019050818103600083015261599081615954565b905091905056fea2646970667358221220b5aa68ee7eb457d586b7241eecf3925f793115b3cc661356c8f861bf5bb65a0564736f6c634300080b0033

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

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