Contract 0x73844670847ec624393a7a01a86fd381241c5d48

 

Contract Overview

Balance:
160 MATIC

MATIC Value:
$124.45 (@ $0.78/MATIC)

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x224ab36991b65e4c2618bce045695b23c0c0130c77ad7a2853a99d21a495f315Set Approval For...231175022021-12-29 21:24:17277 days 16 hrs ago0xed1e413ecf85eb0f866e435adc15fe34ec7ba58d IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0013865130
0x8b8a4cea9f138a5d8d5402b027ece29a495f9e0c880ab0bf3369ae5d743812e3Set Approval For...206763052021-10-27 18:27:31340 days 19 hrs ago0x60baad9a95237615cd839da702c1a1c3e8eb0206 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0013865130
0x115349697fbde27e5e63a023baa0633674b853e63e9062dea5597091deaf9e28Set Approval For...206300162021-10-26 11:35:03342 days 2 hrs ago0x653d244ae9e07a40449653f02334419df07dee76 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0027730260
0x7f71a3e900b861b4a1efc83c990425533bb27a2a08cbc45ae1da7a08bcb6ebebSet Approval For...194009502021-09-22 23:25:59375 days 14 hrs ago0xa1806edc14cb8ff1c8a388fc6d5ec607eefe327f IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0000462171.000000001
0xba4d9ac6a9210d4122df0b28dafc357e25a4b130a956ecb869da567378a80d59Set Approval For...191692002021-09-16 11:12:47382 days 2 hrs ago0x2b1e58e6145a54da17b7ba434cd17ccc8eb6c198 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0007302967527.75
0x249b81c73ba9dc50fe6b7819facf765ceb0313036e37aa3ba0646cc35369d2a0Set Approval For...191692002021-09-16 11:12:47382 days 2 hrs ago0x2b1e58e6145a54da17b7ba434cd17ccc8eb6c198 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0002631710.000000001
0x7b1b1b5f028f6598bb5ead3f274259e0af84886bda97c4d5d4aff20b6a679895Set Approval For...191692002021-09-16 11:12:47382 days 2 hrs ago0x2b1e58e6145a54da17b7ba434cd17ccc8eb6c198 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.00089697287519.407855896
0x76aeac94477ae5995b64578e72defc01e2cb86833f244ff8e6a6ce16bb94501eCreate Monster191354522021-09-15 12:37:40383 days 1 hr ago0xed1e413ecf85eb0f866e435adc15fe34ec7ba58d IN  0x73844670847ec624393a7a01a86fd381241c5d4880 MATIC0.000514046722.42
0x704e2cd81cd9658a6f58e2e41880623b5b5a960ddc81ba884e517c0e76599b85Set Approval For...189100972021-09-09 6:56:54389 days 6 hrs ago0xaa29f503cde18ab560c32708195c8ec43f26748b IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0000462170041.0000001
0x87a5233caca12ccdce421925dc2d7a74f7fbc7ffecd184c1bc0674d3da4e5500Set Approval For...187323762021-09-04 8:44:51394 days 5 hrs ago0x66940f6a7b11877be15e3153d046a8d6fe80724a IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0000462171
0x91a9d03ebd5f246eca5a8b07098953a9d8773c0a9fce03eb1048210345b5df86Set Approval For...187071062021-09-03 16:17:19394 days 21 hrs ago0x2c32db62c8227a5f733a99ae817778781a766357 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.00089477834
0x8e07320b8174c56096ae42c3d7a466b2a485495dd6e04fb276d6e30002f92fb2Set Approval For...187071062021-09-03 16:17:19394 days 21 hrs ago0x2c32db62c8227a5f733a99ae817778781a766357 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.00092341565919.979999999
0x1d04931ff3e97db8ae5f1b733b8734ed2a99a8658997f54c97d7d74d9b555449Create Monster187058062021-09-03 15:21:54394 days 22 hrs ago0x2c32db62c8227a5f733a99ae817778781a766357 IN  0x73844670847ec624393a7a01a86fd381241c5d4880 MATIC0.0002124161
0xb7d3ed8dd649fb204c05fa4ec649d3b402f4b4537d4719bf60f0bb1b41504194Set Approval For...183237432021-08-23 23:41:49405 days 14 hrs ago0x5a4ddb0856fee6b33f11cc264f369e77b0f0339c IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.00005546041.2
0x6c282ef59162b7956e97273f7229eccc14bce77778f0a228f50f30ea9ca23ed5Withdraw183213752021-08-23 22:20:25405 days 15 hrs ago0x65538c85265fe7071a2016f738a9d1031d768688 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0000609462
0xe5bc42b145a3bddd1ccb7820a915981e12d1da1713c300e73f83a4415e45650eCreate Monster182725302021-08-22 14:58:57406 days 22 hrs ago0x30b89247594d5beb157a1f6aa32145e45880b25b IN  0x73844670847ec624393a7a01a86fd381241c5d4880 MATIC0.00558365957228.587824716
0xf7acb398dd923fdb534872d2899a8128df731c80989be52493161f5ad98f4625Create Monster182723472021-08-22 14:52:39406 days 22 hrs ago0x30b89247594d5beb157a1f6aa32145e45880b25b IN  0x73844670847ec624393a7a01a86fd381241c5d4880 MATIC0.0021241610
0x8c130287c33b1e4b7081e5bc6be8f1353c66d98bb591f4b517ccc474e7d4aaa7Set Approval For...182290282021-08-21 10:38:43408 days 3 hrs ago0xfa8e996fb22759ae5769af69a0e85208d215e330 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.000047141341.02
0x8a7fab656145c6c11d0ce45c14d8dd5511217c39f4d23bbb039c7c18a89e3670Set Approval For...181076302021-08-18 4:36:55411 days 9 hrs ago0x7c44eef01a58ffc91f344e20583fe647533fbe04 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0002310855
0x86381b40bbeabb5a553b94b850f46a2025a869d3bc4ccd116188e9e17a3ec4c0Set Approval For...180417132021-08-16 10:24:25413 days 3 hrs ago0x0dd189d8a05d4c7308aa5e08dba80ed57b9a5fbd IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.000046679171.01
0xa11f35339de98d903adba143cf51e5eb6898aec69e49dfedf9bbaa6699f50490Set Approval For...180189292021-08-15 19:32:14413 days 18 hrs ago0x48bb273a73240aeddb70814577246d379bf45faa IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0000569439651.232100002
0x0b4e9c4b7a191eb896fbb4b82fde49e9aecb95d59d73906231eb6be43a005fd8Safe Transfer Fr...179940422021-08-15 1:57:03414 days 11 hrs ago0x1e40aa2e88cae41df8dbe6f3f807aa967eace237 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0163638200
0x0572fed3d12e64cd13ca46b1fd072cab9b78487853707a23f23a74ba97f212e4Set Approval For...179110912021-08-12 18:04:49416 days 19 hrs ago0x5378e749d3c7f7507bb6cd40d4b4a4e806e5af35 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.0000518138781.1211
0xb8b6fc61fefa137c4568d9b238fbeb0a920be89b456da9e82e6829295f8882e2Transfer From179068232021-08-12 15:17:03416 days 22 hrs ago0x865edacfa47d71f66d10405e4084d234520a26b2 IN  0x73844670847ec624393a7a01a86fd381241c5d480 MATIC0.000079802121.01
0xe3609eb426fdf0c282dae8cb8a5140da8004c023ba31ce9c84a06b724ada03b4Create Monster178892132021-08-12 3:37:43417 days 10 hrs ago0x59dacc590bd0899f17bd8f243817a8d6292b874a IN  0x73844670847ec624393a7a01a86fd381241c5d4880 MATIC0.000214540161.01
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x6c282ef59162b7956e97273f7229eccc14bce77778f0a228f50f30ea9ca23ed5183213752021-08-23 22:20:25405 days 15 hrs ago 0x73844670847ec624393a7a01a86fd381241c5d480x65538c85265fe7071a2016f738a9d1031d76868812,320 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MonsterNFT

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-07-31
*/

pragma solidity 0.6.12;
// SPDX-License-Identifier: MIT
/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value)
        private
        view
        returns (bool)
    {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index)
        private
        view
        returns (bytes32)
    {
        require(
            set._values.length > index,
            "EnumerableSet: index out of bounds"
        );
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value)
        internal
        returns (bool)
    {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value)
        internal
        returns (bool)
    {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index)
        internal
        view
        returns (bytes32)
    {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index)
        internal
        view
        returns (address)
    {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value)
        internal
        returns (bool)
    {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index)
        internal
        view
        returns (uint256)
    {
        return uint256(_at(set._inner, index));
    }
}

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/*
 * @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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(
        bytes32 indexed role,
        bytes32 indexed previousAdminRole,
        bytes32 indexed newAdminRole
    );

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(
        bytes32 indexed role,
        address indexed account,
        address indexed sender
    );

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(
        bytes32 indexed role,
        address indexed account,
        address indexed sender
    );

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index)
        public
        view
        returns (address)
    {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(
            hasRole(_roles[role].adminRole, _msgSender()),
            "AccessControl: sender must be an admin to grant"
        );

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(
            hasRole(_roles[role].adminRole, _msgSender()),
            "AccessControl: sender must be an admin to revoke"
        );

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(
            account == _msgSender(),
            "AccessControl: can only renounce roles for self"
        );

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

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

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

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

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

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

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

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor() internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;
        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(
        Map storage map,
        bytes32 key,
        bytes32 value
    ) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) {
            // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({_key: key, _value: value}));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) {
            // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key)
        private
        view
        returns (bool)
    {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

    /**
     * @dev Returns the key-value pair stored at position `index` in the map. O(1).
     *
     * Note that there are no guarantees on the ordering of entries inside the
     * array, and it may change when more entries are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Map storage map, uint256 index)
        private
        view
        returns (bytes32, bytes32)
    {
        require(
            map._entries.length > index,
            "EnumerableMap: index out of bounds"
        );

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     */
    function _tryGet(Map storage map, bytes32 key)
        private
        view
        returns (bool, bytes32)
    {
        uint256 keyIndex = map._indexes[key];
        if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key)
        return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {_tryGet}.
     */
    function _get(
        Map storage map,
        bytes32 key,
        string memory errorMessage
    ) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(
        UintToAddressMap storage map,
        uint256 key,
        address value
    ) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key)
        internal
        returns (bool)
    {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key)
        internal
        view
        returns (bool)
    {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map)
        internal
        view
        returns (uint256)
    {
        return _length(map._inner);
    }

    /**
     * @dev Returns the element stored at position `index` in the set. O(1).
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintToAddressMap storage map, uint256 index)
        internal
        view
        returns (uint256, address)
    {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint160(uint256(value))));
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     *
     * _Available since v3.4._
     */
    function tryGet(UintToAddressMap storage map, uint256 key)
        internal
        view
        returns (bool, address)
    {
        (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
        return (success, address(uint160(uint256(value))));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key)
        internal
        view
        returns (address)
    {
        return address(uint160(uint256(_get(map._inner, bytes32(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        UintToAddressMap storage map,
        uint256 key,
        string memory errorMessage
    ) internal view returns (address) {
        return
            address(
                uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))
            );
    }
}

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` 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);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = bytes1(uint8(48 + (temp % 10)));
            temp /= 10;
        }
        return string(buffer);
    }
}

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is
    Context,
    ERC165,
    IERC721,
    IERC721Metadata,
    IERC721Enumerable
{
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping(address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

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

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @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 _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        return
            _tokenOwners.get(
                tokenId,
                "ERC721: owner query for nonexistent token"
            );
    }

    /**
     * @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 _tokenURI = _tokenURIs[tokenId];
        string memory base = baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(base, tokenId.toString()));
    }

    /**
     * @dev Returns the base URI set via {_setBaseURI}. This will be
     * automatically added as a prefix in {tokenURI} to each token's URI, or
     * to the token ID if no specific URI is set for that token ID.
     */
    function baseURI() public view virtual returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        virtual
        override
        returns (uint256)
    {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index)
        public
        view
        virtual
        override
        returns (uint256)
    {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @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 ||
                ERC721.isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @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 ||
            ERC721.isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     d*
     * - `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);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

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

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

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

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

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(
            ERC721.ownerOf(tokenId) == from,
            "ERC721: transfer of token that is not own"
        ); // internal 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);

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI)
        internal
        virtual
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI set of nonexistent token"
        );
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    /**
     * @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()) {
            return true;
        }
        bytes memory returndata = to.functionCall(
            abi.encodeWithSelector(
                IERC721Receiver(to).onERC721Received.selector,
                _msgSender(),
                from,
                tokenId,
                _data
            ),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

    function _approve(address to, uint256 tokenId) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner
    }

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

contract MonsterNFT is ERC721, AccessControl, Ownable {
    bytes32 public constant UPDATE_TOKEN_URI_ROLE =
        keccak256("UPDATE_TOKEN_URI_ROLE");

    using SafeMath for uint256;
    using Strings for string;

    uint256 public maxSupply;
    uint256 public monsterNftPrice;

    mapping(uint256 => uint256) public _seeds;
    mapping(uint256 => bool) private _createdMonster;

    constructor(
        uint256 _monsterNftPrice,
        uint256 _maxSupply,
        string memory _baseURI
    ) public ERC721("Monster Cards GEN1", "MCG1") {
        _setupRole(UPDATE_TOKEN_URI_ROLE, _msgSender());
        _setBaseURI(_baseURI);
        monsterNftPrice = _monsterNftPrice;
        maxSupply = _maxSupply;
    }

    function createMonster() public payable {
        require(
            msg.value == monsterNftPrice,
            "createMonster: insufficient Matic"
        );
        create();
    }

    function createMonsters(uint256 _howMany) public payable {
        require(
            monsterNftPrice.mul(_howMany) == msg.value,
            "createMonsters: insufficient Matic"
        );
        for (uint256 i = 0; i < _howMany; i++) {
            create();
        }
    }

    function uri(uint256 tokenId) external view returns (string memory) {
        return string(abi.encodePacked(tokenURI(tokenId), ".json"));
    }

    function seed(uint256 id) public view virtual returns (uint256) {
        return _seeds[id];
    }

    function exists(uint256 id) external view virtual returns (bool) {
        return _createdMonster[id];
    }

    function setMonsterNftPrice(uint256 _monsterNftPrice) external onlyOwner {
        monsterNftPrice = _monsterNftPrice;
    }

    function setBaseURI(string memory baseURI) public {
        require(
            hasRole(UPDATE_TOKEN_URI_ROLE, _msgSender()),
            "setBaseURI: must have update token uri role"
        );
        _setBaseURI(baseURI);
    }

    function setTokenURI(uint256 _tokenId, string memory _tokenURI) public {
        require(
            hasRole(UPDATE_TOKEN_URI_ROLE, _msgSender()),
            "setTokenURI: must have update token uri role"
        );
        _setTokenURI(_tokenId, _tokenURI);
    }

    function approveBulk(address to, uint256[] memory tokenIds) public {
        for (uint256 i = 0; i < tokenIds.length; ++i) {
            approve(to, tokenIds[i]);
        }
    }

    function getApprovedBulk(uint256[] memory tokenIds)
        public
        view
        returns (address[] memory)
    {
        address[] memory tokenApprovals = new address[](tokenIds.length);
        for (uint256 i = 0; i < tokenIds.length; ++i) {
            tokenApprovals[i] = getApproved(tokenIds[i]);
        }
        return tokenApprovals;
    }

    function create() private {
        require(totalSupply() <= maxSupply, "create: sold out");
        for (uint256 i = 0; i < 9999; i++) {
            (uint256 randID, uint256 seedId) = random(
                1,
                maxSupply,
                uint256(uint160(address(msg.sender))) + i
            );
            if (!_createdMonster[randID]) {
                _createdMonster[randID] = true;
                _seeds[randID] = seedId;
                _mint(msg.sender, randID);
                return;
            }
        }
        revert("create: collision id error");
    }

    function random(
        uint256 from,
        uint256 to,
        uint256 salty
    ) private view returns (uint256 randId, uint256 seedId) {
        seedId = uint256(
            keccak256(
                abi.encodePacked(
                    block.timestamp +
                        block.difficulty +
                        ((
                            uint256(keccak256(abi.encodePacked(block.coinbase)))
                        ) / (block.timestamp)) +
                        block.gaslimit +
                        ((uint256(keccak256(abi.encodePacked(msg.sender)))) /
                            (block.timestamp)) +
                        block.number +
                        salty
                )
            )
        );
        randId = seedId.mod(to - from) + from;
    }

    /// @notice withdraw the earnings to pay for the artists, devs and marketings stuff
    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_monsterNftPrice","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPDATE_TOKEN_URI_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_seeds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"approveBulk","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"createMonster","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_howMany","type":"uint256"}],"name":"createMonsters","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"getApprovedBulk","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"monsterNftPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"seed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_monsterNftPrice","type":"uint256"}],"name":"setMonsterNftPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200361538038062003615833981810160405260608110156200003757600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200006357600080fd5b9083019060208201858111156200007957600080fd5b82516401000000008111828201881017156200009457600080fd5b82525081516020918201929091019080838360005b83811015620000c3578181015183820152602001620000a9565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b506040818101815260128252714d6f6e737465722043617264732047454e3160701b602080840191909152815180830190925260048252634d43473160e01b9082015290935091506200014d90506301ffc9a760e01b6200025c565b8151620001629060069060208501906200040c565b508051620001789060079060208401906200040c565b506200018b6380ac58cd60e01b6200025c565b6200019d635b5e139f60e01b6200025c565b620001af63780e9d6360e01b6200025c565b5060009050620001be620002e1565b600b80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620002417fcf1e7e3bee0e3167872271ce5d51dcec9a6ad0ff65a358daa0e5988775cca4e96200023b620002e1565b620002e5565b6200024c81620002f5565b50600d91909155600c55620004a8565b6001600160e01b03198082161415620002bc576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b3390565b620002f182826200030a565b5050565b8051620002f19060099060208401906200040c565b6000828152600a602090815260409091206200033191839062001cba62000385821b17901c565b15620002f15762000341620002e1565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006200039c836001600160a01b038416620003a5565b90505b92915050565b6000620003b38383620003f4565b620003eb575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200039f565b5060006200039f565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200044f57805160ff19168380011785556200047f565b828001600101855582156200047f579182015b828111156200047f57825182559160200191906001019062000462565b506200048d92915062000491565b5090565b5b808211156200048d576000815560010162000492565b61315d80620004b86000396000f3fe60806040526004361061025c5760003560e01c80636352211e1161014457806395d89b41116100b6578063ca15c8731161007a578063ca15c87314610bf6578063d547741f14610c20578063d5abeb0114610c59578063dfa7773314610c6e578063e985e9c514610c98578063f2fde38b14610cd35761025c565b806395d89b4114610a96578063a217fddf14610aab578063a22cb46514610ac0578063b88d4fde14610afb578063c87b56dd14610bcc5761025c565b80637e622c56116101085780637e622c56146109d15780638da5cb5b146109e65780639010d07c146109fb57806391d1485414610a2b578063943dd89014610a645780639556483714610a6c5761025c565b80636352211e1461084c5780636c0360eb1461087657806370a082311461088b578063715018a6146108be578063724e68ed146108d35761025c565b8063248a9ca3116101dd5780634264eab9116101a15780634264eab9146106d257806342842e0e146106ef57806344c28e50146107325780634f558e79146107475780634f6ccce71461077157806355f804b31461079b5761025c565b8063248a9ca3146105e85780632f2ff15d146106125780632f745c591461064b57806336568abe146106845780633ccfd60b146106bd5761025c565b8063095ea7b311610224578063095ea7b3146104755780630e89341c146104ae578063162094c4146104d857806318160ddd1461059057806323b872dd146105a55761025c565b806301ffc9a7146102615780630260a4ea146102a9578063035f0c871461036957806306fdde03146103a5578063081812fc1461042f575b600080fd5b34801561026d57600080fd5b506102956004803603602081101561028457600080fd5b50356001600160e01b031916610d06565b604080519115158252519081900360200190f35b3480156102b557600080fd5b50610367600480360360408110156102cc57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156102f657600080fd5b82018360208201111561030857600080fd5b803590602001918460208302840111600160201b8311171561032957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610d29945050505050565b005b34801561037557600080fd5b506103936004803603602081101561038c57600080fd5b5035610d5f565b60408051918252519081900360200190f35b3480156103b157600080fd5b506103ba610d71565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103f45781810151838201526020016103dc565b50505050905090810190601f1680156104215780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561043b57600080fd5b506104596004803603602081101561045257600080fd5b5035610e07565b604080516001600160a01b039092168252519081900360200190f35b34801561048157600080fd5b506103676004803603604081101561049857600080fd5b506001600160a01b038135169060200135610e69565b3480156104ba57600080fd5b506103ba600480360360208110156104d157600080fd5b5035610f3f565b3480156104e457600080fd5b50610367600480360360408110156104fb57600080fd5b81359190810190604081016020820135600160201b81111561051c57600080fd5b82018360208201111561052e57600080fd5b803590602001918460018302840111600160201b8311171561054f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610fc5945050505050565b34801561059c57600080fd5b5061039361103f565b3480156105b157600080fd5b50610367600480360360608110156105c857600080fd5b506001600160a01b03813581169160208101359091169060400135611050565b3480156105f457600080fd5b506103936004803603602081101561060b57600080fd5b50356110a7565b34801561061e57600080fd5b506103676004803603604081101561063557600080fd5b50803590602001356001600160a01b03166110bc565b34801561065757600080fd5b506103936004803603604081101561066e57600080fd5b506001600160a01b03813516906020013561111f565b34801561069057600080fd5b50610367600480360360408110156106a757600080fd5b50803590602001356001600160a01b031661114a565b3480156106c957600080fd5b506103676111ab565b610367600480360360208110156106e857600080fd5b503561123c565b3480156106fb57600080fd5b506103676004803603606081101561071257600080fd5b506001600160a01b038135811691602081013590911690604001356112a2565b34801561073e57600080fd5b506103936112bd565b34801561075357600080fd5b506102956004803603602081101561076a57600080fd5b50356112c3565b34801561077d57600080fd5b506103936004803603602081101561079457600080fd5b50356112d8565b3480156107a757600080fd5b50610367600480360360208110156107be57600080fd5b810190602081018135600160201b8111156107d857600080fd5b8201836020820111156107ea57600080fd5b803590602001918460018302840111600160201b8311171561080b57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506112ee945050505050565b34801561085857600080fd5b506104596004803603602081101561086f57600080fd5b5035611361565b34801561088257600080fd5b506103ba611389565b34801561089757600080fd5b50610393600480360360208110156108ae57600080fd5b50356001600160a01b03166113ea565b3480156108ca57600080fd5b50610367611452565b3480156108df57600080fd5b50610981600480360360208110156108f657600080fd5b810190602081018135600160201b81111561091057600080fd5b82018360208201111561092257600080fd5b803590602001918460208302840111600160201b8311171561094357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506114fe945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156109bd5781810151838201526020016109a5565b505050509050019250505060405180910390f35b3480156109dd57600080fd5b506103936115a1565b3480156109f257600080fd5b506104596115c5565b348015610a0757600080fd5b5061045960048036036040811015610a1e57600080fd5b50803590602001356115d4565b348015610a3757600080fd5b5061029560048036036040811015610a4e57600080fd5b50803590602001356001600160a01b03166115ec565b610367611604565b348015610a7857600080fd5b5061039360048036036020811015610a8f57600080fd5b503561164e565b348015610aa257600080fd5b506103ba611660565b348015610ab757600080fd5b506103936116c1565b348015610acc57600080fd5b5061036760048036036040811015610ae357600080fd5b506001600160a01b03813516906020013515156116c6565b348015610b0757600080fd5b5061036760048036036080811015610b1e57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b811115610b5857600080fd5b820183602082011115610b6a57600080fd5b803590602001918460018302840111600160201b83111715610b8b57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506117cb945050505050565b348015610bd857600080fd5b506103ba60048036036020811015610bef57600080fd5b5035611829565b348015610c0257600080fd5b5061039360048036036020811015610c1957600080fd5b5035611aac565b348015610c2c57600080fd5b5061036760048036036040811015610c4357600080fd5b50803590602001356001600160a01b0316611ac3565b348015610c6557600080fd5b50610393611b1c565b348015610c7a57600080fd5b5061036760048036036020811015610c9157600080fd5b5035611b22565b348015610ca457600080fd5b5061029560048036036040811015610cbb57600080fd5b506001600160a01b0381358116916020013516611b89565b348015610cdf57600080fd5b5061036760048036036020811015610cf657600080fd5b50356001600160a01b0316611bb7565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60005b8151811015610d5a57610d5283838381518110610d4557fe5b6020026020010151610e69565b600101610d2c565b505050565b600e6020526000908152604090205481565b60068054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610dfd5780601f10610dd257610100808354040283529160200191610dfd565b820191906000526020600020905b815481529060010190602001808311610de057829003601f168201915b5050505050905090565b6000610e1282611ccf565b610e4d5760405162461bcd60e51b815260040180806020018281038252602c815260200180612f89602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610e7482611361565b9050806001600160a01b0316836001600160a01b03161415610ec75760405162461bcd60e51b81526004018080602001828103825260218152602001806130596021913960400191505060405180910390fd5b806001600160a01b0316610ed9611cdc565b6001600160a01b03161480610efa5750610efa81610ef5611cdc565b611b89565b610f355760405162461bcd60e51b8152600401808060200182810382526038815260200180612ebb6038913960400191505060405180910390fd5b610d5a8383611ce0565b6060610f4a82611829565b6040516020018082805190602001908083835b60208310610f7c5780518252601f199092019160209182019101610f5d565b5181516020939093036101000a600019018019909116921691909117905264173539b7b760d91b92019182525060408051808303601a1901815260059092019052949350505050565b610ff67fcf1e7e3bee0e3167872271ce5d51dcec9a6ad0ff65a358daa0e5988775cca4e9610ff1611cdc565b6115ec565b6110315760405162461bcd60e51b815260040180806020018281038252602c81526020018061307a602c913960400191505060405180910390fd5b61103b8282611d4e565b5050565b600061104b6002611db1565b905090565b61106161105b611cdc565b82611dbc565b61109c5760405162461bcd60e51b81526004018080602001828103825260318152602001806130a66031913960400191505060405180910390fd5b610d5a838383611e60565b6000908152600a602052604090206002015490565b6000828152600a60205260409020600201546110da90610ff1611cdc565b6111155760405162461bcd60e51b815260040180806020018281038252602f815260200180612d68602f913960400191505060405180910390fd5b61103b8282611fac565b6001600160a01b03821660009081526001602052604081206111419083612015565b90505b92915050565b611152611cdc565b6001600160a01b0316816001600160a01b0316146111a15760405162461bcd60e51b815260040180806020018281038252602f8152602001806130f9602f913960400191505060405180910390fd5b61103b8282612021565b6111b3611cdc565b6001600160a01b03166111c46115c5565b6001600160a01b03161461120d576040805162461bcd60e51b81526020600482018190526024820152600080516020612fe1833981519152604482015290519081900360640190fd5b6040514790339082156108fc029083906000818181858888f1935050505015801561103b573d6000803e3d6000fd5b600d54349061124b908361208a565b146112875760405162461bcd60e51b81526004018080602001828103825260228152602001806130d76022913960400191505060405180910390fd5b60005b8181101561103b5761129a6120e3565b60010161128a565b610d5a838383604051806020016040528060008152506117cb565b600d5481565b6000908152600f602052604090205460ff1690565b6000806112e6600284612208565b509392505050565b61131a7fcf1e7e3bee0e3167872271ce5d51dcec9a6ad0ff65a358daa0e5988775cca4e9610ff1611cdc565b6113555760405162461bcd60e51b815260040180806020018281038252602b815260200180612d97602b913960400191505060405180910390fd5b61135e81612224565b50565b600061114482604051806060016040528060298152602001612f1d6029913960029190612237565b60098054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610dfd5780601f10610dd257610100808354040283529160200191610dfd565b60006001600160a01b0382166114315760405162461bcd60e51b815260040180806020018281038252602a815260200180612ef3602a913960400191505060405180910390fd5b6001600160a01b038216600090815260016020526040902061114490611db1565b61145a611cdc565b6001600160a01b031661146b6115c5565b6001600160a01b0316146114b4576040805162461bcd60e51b81526020600482018190526024820152600080516020612fe1833981519152604482015290519081900360640190fd5b600b546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600b80546001600160a01b0319169055565b606080825167ffffffffffffffff8111801561151957600080fd5b50604051908082528060200260200182016040528015611543578160200160208202803683370190505b50905060005b835181101561159a5761156e84828151811061156157fe5b6020026020010151610e07565b82828151811061157a57fe5b6001600160a01b0390921660209283029190910190910152600101611549565b5092915050565b7fcf1e7e3bee0e3167872271ce5d51dcec9a6ad0ff65a358daa0e5988775cca4e981565b600b546001600160a01b031690565b6000828152600a602052604081206111419083612015565b6000828152600a60205260408120611141908361224e565b600d5434146116445760405162461bcd60e51b8152600401808060200182810382526021815260200180612e9a6021913960400191505060405180910390fd5b61164c6120e3565b565b6000908152600e602052604090205490565b60078054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610dfd5780601f10610dd257610100808354040283529160200191610dfd565b600081565b6116ce611cdc565b6001600160a01b0316826001600160a01b03161415611734576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060056000611741611cdc565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611785611cdc565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6117dc6117d6611cdc565b83611dbc565b6118175760405162461bcd60e51b81526004018080602001828103825260318152602001806130a66031913960400191505060405180910390fd5b61182384848484612263565b50505050565b606061183482611ccf565b61186f5760405162461bcd60e51b815260040180806020018281038252602f81526020018061302a602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156119045780601f106118d957610100808354040283529160200191611904565b820191906000526020600020905b8154815290600101906020018083116118e757829003601f168201915b505050505090506060611915611389565b905080516000141561192957509050610d24565b8151156119ea5780826040516020018083805190602001908083835b602083106119645780518252601f199092019160209182019101611945565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b602083106119ac5780518252601f19909201916020918201910161198d565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050610d24565b806119f4856122b5565b6040516020018083805190602001908083835b60208310611a265780518252601f199092019160209182019101611a07565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611a6e5780518252601f199092019160209182019101611a4f565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050919050565b6000818152600a6020526040812061114490611db1565b6000828152600a6020526040902060020154611ae190610ff1611cdc565b6111a15760405162461bcd60e51b8152600401808060200182810382526030815260200180612e6a6030913960400191505060405180910390fd5b600c5481565b611b2a611cdc565b6001600160a01b0316611b3b6115c5565b6001600160a01b031614611b84576040805162461bcd60e51b81526020600482018190526024820152600080516020612fe1833981519152604482015290519081900360640190fd5b600d55565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611bbf611cdc565b6001600160a01b0316611bd06115c5565b6001600160a01b031614611c19576040805162461bcd60e51b81526020600482018190526024820152600080516020612fe1833981519152604482015290519081900360640190fd5b6001600160a01b038116611c5e5760405162461bcd60e51b8152600401808060200182810382526026815260200180612df46026913960400191505060405180910390fd5b600b546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000611141836001600160a01b038416612390565b60006111446002836123da565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611d1582611361565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611d5782611ccf565b611d925760405162461bcd60e51b815260040180806020018281038252602c815260200180612fb5602c913960400191505060405180910390fd5b60008281526008602090815260409091208251610d5a92840190612cb2565b6000611144826123e6565b6000611dc782611ccf565b611e025760405162461bcd60e51b815260040180806020018281038252602c815260200180612e3e602c913960400191505060405180910390fd5b6000611e0d83611361565b9050806001600160a01b0316846001600160a01b03161480611e485750836001600160a01b0316611e3d84610e07565b6001600160a01b0316145b80611e585750611e588185611b89565b949350505050565b826001600160a01b0316611e7382611361565b6001600160a01b031614611eb85760405162461bcd60e51b81526004018080602001828103825260298152602001806130016029913960400191505060405180910390fd5b6001600160a01b038216611efd5760405162461bcd60e51b8152600401808060200182810382526024815260200180612e1a6024913960400191505060405180910390fd5b611f08838383610d5a565b611f13600082611ce0565b6001600160a01b0383166000908152600160205260409020611f3590826123ea565b506001600160a01b0382166000908152600160205260409020611f5890826123f6565b50611f6560028284612402565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000828152600a60205260409020611fc49082611cba565b1561103b57611fd1611cdc565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006111418383612418565b6000828152600a60205260409020612039908261247c565b1561103b57612046611cdc565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60008261209957506000611144565b828202828482816120a657fe5b04146111415760405162461bcd60e51b8152600401808060200182810382526021815260200180612f686021913960400191505060405180910390fd5b600c546120ee61103f565b1115612134576040805162461bcd60e51b815260206004820152601060248201526f18dc99585d194e881cdbdb19081bdd5d60821b604482015290519081900360640190fd5b60005b61270f8110156121ba5760008061215d6001600c5485336001600160a01b031601612491565b6000828152600f6020526040902054919350915060ff166121b0576000828152600f60209081526040808320805460ff19166001179055600e90915290208190556121a83383612569565b50505061164c565b5050600101612137565b506040805162461bcd60e51b815260206004820152601a60248201527f6372656174653a20636f6c6c6973696f6e206964206572726f72000000000000604482015290519081900360640190fd5b60008080806122178686612697565b9097909650945050505050565b805161103b906009906020840190612cb2565b6000612244848484612712565b90505b9392505050565b6000611141836001600160a01b0384166127dc565b61226e848484611e60565b61227a848484846127f4565b6118235760405162461bcd60e51b8152600401808060200182810382526032815260200180612dc26032913960400191505060405180910390fd5b6060816122da57506040805180820190915260018152600360fc1b6020820152610d24565b8160005b81156122f257600101600a820491506122de565b60608167ffffffffffffffff8111801561230b57600080fd5b506040519080825280601f01601f191660200182016040528015612336576020820181803683370190505b50859350905060001982015b831561238757600a840660300160f81b8282806001900393508151811061236557fe5b60200101906001600160f81b031916908160001a905350600a84049350612342565b50949350505050565b600061239c83836127dc565b6123d257508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611144565b506000611144565b600061114183836127dc565b5490565b6000611141838361295c565b60006111418383612390565b600061224484846001600160a01b038516612a22565b8154600090821061245a5760405162461bcd60e51b8152600401808060200182810382526022815260200180612d466022913960400191505060405180910390fd5b82600001828154811061246957fe5b9060005260206000200154905092915050565b6000611141836001600160a01b03841661295c565b6000808243423360405160200180826001600160a01b031660601b81526014019150506040516020818303038152906040528051906020012060001c816124d457fe5b0445424160405160200180826001600160a01b031660601b81526014019150506040516020818303038152906040528051906020012060001c8161251457fe5b044442010101010101604051602001808281526020019150506040516020818303038152906040528051906020012060001c90508461255e86860383612ab990919063ffffffff16565b019150935093915050565b6001600160a01b0382166125c4576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b6125cd81611ccf565b1561261f576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b61262b60008383610d5a565b6001600160a01b038216600090815260016020526040902061264d90826123f6565b5061265a60028284612402565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8154600090819083106126db5760405162461bcd60e51b8152600401808060200182810382526022815260200180612f466022913960400191505060405180910390fd5b60008460000184815481106126ec57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816127ad5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561277257818101518382015260200161275a565b50505050905090810190601f16801561279f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106127c057fe5b9060005260206000209060020201600101549150509392505050565b60009081526001919091016020526040902054151590565b6000612808846001600160a01b0316612b20565b61281457506001611e58565b6060612922630a85bd0160e11b612829611cdc565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612890578181015183820152602001612878565b50505050905090810190601f1680156128bd5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001612dc2603291396001600160a01b0388169190612b26565b9050600081806020019051602081101561293b57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60008181526001830160205260408120548015612a18578354600019808301919081019060009087908390811061298f57fe5b90600052602060002001549050808760000184815481106129ac57fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806129dc57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611144565b6000915050611144565b600082815260018401602052604081205480612a87575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055612247565b82856000016001830381548110612a9a57fe5b9060005260206000209060020201600101819055506000915050612247565b6000808211612b0f576040805162461bcd60e51b815260206004820152601860248201527f536166654d6174683a206d6f64756c6f206279207a65726f0000000000000000604482015290519081900360640190fd5b818381612b1857fe5b069392505050565b3b151590565b6060612244848460008585612b3a85612b20565b612b8b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612bca5780518252601f199092019160209182019101612bab565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612c2c576040519150601f19603f3d011682016040523d82523d6000602084013e612c31565b606091505b5091509150612c41828286612c4c565b979650505050505050565b60608315612c5b575081612247565b825115612c6b5782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561277257818101518382015260200161275a565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612cf357805160ff1916838001178555612d20565b82800160010185558215612d20579182015b82811115612d20578251825591602001919060010190612d05565b50612d2c929150612d30565b5090565b5b80821115612d2c5760008155600101612d3156fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74736574426173655552493a206d75737420686176652075706461746520746f6b656e2075726920726f6c654552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b656372656174654d6f6e737465723a20696e73756666696369656e74204d617469634552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e6572736574546f6b656e5552493a206d75737420686176652075706461746520746f6b656e2075726920726f6c654552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665646372656174654d6f6e73746572733a20696e73756666696369656e74204d61746963416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122028c3b2aca3ae4f3caea17de6792b47a7893f7c1cfdbd064fe8ac5a68864cebe364736f6c634300060c0033000000000000000000000000000000000000000000000004563918244f40000000000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f706d6f6e73746572732e6865726f6b756170702e636f6d2f6170692f67656e312f746f6b656e2f0000000000000000000000000000000000

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

000000000000000000000000000000000000000000000004563918244f40000000000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002f68747470733a2f2f706d6f6e73746572732e6865726f6b756170702e636f6d2f6170692f67656e312f746f6b656e2f0000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _monsterNftPrice (uint256): 80000000000000000000
Arg [1] : _maxSupply (uint256): 1000
Arg [2] : _baseURI (string): https://pmonsters.herokuapp.com/api/gen1/token/

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000004563918244f400000
Arg [1] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 000000000000000000000000000000000000000000000000000000000000002f
Arg [4] : 68747470733a2f2f706d6f6e73746572732e6865726f6b756170702e636f6d2f
Arg [5] : 6170692f67656e312f746f6b656e2f0000000000000000000000000000000000


Deployed ByteCode Sourcemap

76679:4513:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36263:200;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36263:200:0;-1:-1:-1;;;;;;36263:200:0;;:::i;:::-;;;;;;;;;;;;;;;;;;78955:182;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;78955:182:0;;;;;;;;;;;;;;;-1:-1:-1;;;78955:182:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;78955:182:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;78955:182:0;;-1:-1:-1;78955:182:0;;-1:-1:-1;;;;;78955:182:0:i;:::-;;76976:41;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;76976:41:0;;:::i;:::-;;;;;;;;;;;;;;;;60482:100;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63490:308;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63490:308:0;;:::i;:::-;;;;-1:-1:-1;;;;;63490:308:0;;;;;;;;;;;;;;62989:435;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;62989:435:0;;;;;;;;:::i;77916:146::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77916:146:0;;:::i;78675:272::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;78675:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;78675:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;78675:272:0;;-1:-1:-1;78675:272:0;;-1:-1:-1;;;;;78675:272:0:i;62417:211::-;;;;;;;;;;;;;:::i;64549:376::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;64549:376:0;;;;;;;;;;;;;;;;;:::i;24030:114::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24030:114:0;;:::i;24406:264::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24406:264:0;;;;;;-1:-1:-1;;;;;24406:264:0;;:::i;62129:212::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;62129:212:0;;;;;;;;:::i;25689:246::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25689:246:0;;;;;;-1:-1:-1;;;;;25689:246:0;;:::i;81044:145::-;;;;;;;;;;;;;:::i;77622:286::-;;;;;;;;;;;;;;;;-1:-1:-1;77622:286:0;;:::i;64996:185::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;64996:185:0;;;;;;;;;;;;;;;;;:::i;76937:30::-;;;;;;;;;;;;;:::i;78178:110::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;78178:110:0;;:::i;62705:222::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;62705:222:0;;:::i;78430:237::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;78430:237:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;78430:237:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;78430:237:0;;-1:-1:-1;78430:237:0;;-1:-1:-1;;;;;78430:237:0:i;60126:289::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60126:289:0;;:::i;61948:97::-;;;;;;;;;;;;;:::i;59756:308::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59756:308:0;-1:-1:-1;;;;;59756:308:0;;:::i;76088:148::-;;;;;;;;;;;;;:::i;79145:365::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;79145:365:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;79145:365:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79145:365:0;;-1:-1:-1;79145:365:0;;-1:-1:-1;;;;;79145:365:0:i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76740:91;;;;;;;;;;;;;:::i;75437:87::-;;;;;;;;;;;;;:::i;23671:170::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23671:170:0;;;;;;;:::i;22632:139::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22632:139:0;;;;;;-1:-1:-1;;;;;22632:139:0;;:::i;77425:189::-;;;:::i;78070:100::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;78070:100:0;;:::i;60651:104::-;;;;;;;;;;;;;:::i;21275:49::-;;;;;;;;;;;;;:::i;63870:327::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;63870:327:0;;;;;;;;;;:::i;65252:365::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;65252:365:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;65252:365:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;65252:365:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;65252:365:0;;-1:-1:-1;65252:365:0;;-1:-1:-1;;;;;65252:365:0:i;60826:879::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60826:879:0;;:::i;22945:127::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22945:127:0;;:::i;24915:267::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24915:267:0;;;;;;-1:-1:-1;;;;;24915:267:0;;:::i;76906:24::-;;;;;;;;;;;;;:::i;78296:126::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;78296:126:0;;:::i;64268:214::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;64268:214:0;;;;;;;;;;:::i;76391:281::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;76391:281:0;-1:-1:-1;;;;;76391:281:0;;:::i;36263:200::-;-1:-1:-1;;;;;;36422:33:0;;36393:4;36422:33;;;;;;;;;;;;;36263:200;;;;:::o;78955:182::-;79038:9;79033:97;79057:8;:15;79053:1;:19;79033:97;;;79094:24;79102:2;79106:8;79115:1;79106:11;;;;;;;;;;;;;;79094:7;:24::i;:::-;79074:3;;79033:97;;;;78955:182;;:::o;76976:41::-;;;;;;;;;;;;;:::o;60482:100::-;60569:5;60562:12;;;;;;;;-1:-1:-1;;60562:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60536:13;;60562:12;;60569:5;;60562:12;;60569:5;60562:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60482:100;:::o;63490:308::-;63611:7;63658:16;63666:7;63658;:16::i;:::-;63636:110;;;;-1:-1:-1;;;63636:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63766:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;63766:24:0;;63490:308::o;62989:435::-;63070:13;63086:23;63101:7;63086:14;:23::i;:::-;63070:39;;63134:5;-1:-1:-1;;;;;63128:11:0;:2;-1:-1:-1;;;;;63128:11:0;;;63120:57;;;;-1:-1:-1;;;63120:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63228:5;-1:-1:-1;;;;;63212:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;63212:21:0;;:86;;;;63254:44;63278:5;63285:12;:10;:12::i;:::-;63254:23;:44::i;:::-;63190:192;;;;-1:-1:-1;;;63190:192:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63395:21;63404:2;63408:7;63395:8;:21::i;77916:146::-;77969:13;78026:17;78035:7;78026:8;:17::i;:::-;78009:44;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;78009:44:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;78009:44:0;;;;;;;;;;;;;;-1:-1:-1;;;78009:44:0;;;;;-1:-1:-1;78009:44:0;;;;;;-1:-1:-1;;78009:44:0;;;;;;;;;;;-1:-1:-1;;;;77916:146:0:o;78675:272::-;78779:44;76797:34;78810:12;:10;:12::i;:::-;78779:7;:44::i;:::-;78757:138;;;;-1:-1:-1;;;78757:138:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78906:33;78919:8;78929:9;78906:12;:33::i;:::-;78675:272;;:::o;62417:211::-;62478:7;62599:21;:12;:19;:21::i;:::-;62592:28;;62417:211;:::o;64549:376::-;64758:41;64777:12;:10;:12::i;:::-;64791:7;64758:18;:41::i;:::-;64736:140;;;;-1:-1:-1;;;64736:140:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64889:28;64899:4;64905:2;64909:7;64889:9;:28::i;24030:114::-;24087:7;24114:12;;;:6;:12;;;;;:22;;;;24030:114::o;24406:264::-;24512:12;;;;:6;:12;;;;;:22;;;24504:45;;24536:12;:10;:12::i;24504:45::-;24482:142;;;;-1:-1:-1;;;24482:142:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24637:25;24648:4;24654:7;24637:10;:25::i;62129:212::-;-1:-1:-1;;;;;62303:20:0;;62271:7;62303:20;;;:13;:20;;;;;:30;;62327:5;62303:23;:30::i;:::-;62296:37;;62129:212;;;;;:::o;25689:246::-;25801:12;:10;:12::i;:::-;-1:-1:-1;;;;;25790:23:0;:7;-1:-1:-1;;;;;25790:23:0;;25768:120;;;;-1:-1:-1;;;25768:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25901:26;25913:4;25919:7;25901:11;:26::i;81044:145::-;75668:12;:10;:12::i;:::-;-1:-1:-1;;;;;75657:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;75657:23:0;;75649:68;;;;;-1:-1:-1;;;75649:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;75649:68:0;;;;;;;;;;;;;;;81144:37:::1;::::0;81112:21:::1;::::0;81152:10:::1;::::0;81144:37;::::1;;;::::0;81112:21;;81094:15:::1;81144:37:::0;81094:15;81144:37;81112:21;81152:10;81144:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;77622:286:::0;77712:15;;77745:9;;77712:29;;77732:8;77712:19;:29::i;:::-;:42;77690:126;;;;-1:-1:-1;;;77690:126:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77832:9;77827:74;77851:8;77847:1;:12;77827:74;;;77881:8;:6;:8::i;:::-;77861:3;;77827:74;;64996:185;65134:39;65151:4;65157:2;65161:7;65134:39;;;;;;;;;;;;:16;:39::i;76937:30::-;;;;:::o;78178:110::-;78237:4;78261:19;;;:15;:19;;;;;;;;;78178:110::o;62705:222::-;62825:7;;62872:22;:12;62888:5;62872:15;:22::i;:::-;-1:-1:-1;62850:44:0;62705:222;-1:-1:-1;;;62705:222:0:o;78430:237::-;78513:44;76797:34;78544:12;:10;:12::i;78513:44::-;78491:137;;;;-1:-1:-1;;;78491:137:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78639:20;78651:7;78639:11;:20::i;:::-;78430:237;:::o;60126:289::-;60243:7;60288:119;60323:7;60288:119;;;;;;;;;;;;;;;;;:12;;:119;:16;:119::i;61948:97::-;62029:8;62022:15;;;;;;;;-1:-1:-1;;62022:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61996:13;;62022:15;;62029:8;;62022:15;;62029:8;62022:15;;;;;;;;;;;;;;;;;;;;;;;;59756:308;59873:7;-1:-1:-1;;;;;59920:19:0;;59898:111;;;;-1:-1:-1;;;59898:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;60027:20:0;;;;;;:13;:20;;;;;:29;;:27;:29::i;76088:148::-;75668:12;:10;:12::i;:::-;-1:-1:-1;;;;;75657:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;75657:23:0;;75649:68;;;;;-1:-1:-1;;;75649:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;75649:68:0;;;;;;;;;;;;;;;76179:6:::1;::::0;76158:40:::1;::::0;76195:1:::1;::::0;-1:-1:-1;;;;;76179:6:0::1;::::0;76158:40:::1;::::0;76195:1;;76158:40:::1;76209:6;:19:::0;;-1:-1:-1;;;;;;76209:19:0::1;::::0;;76088:148::o;79145:365::-;79245:16;79279:31;79327:8;:15;79313:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79313:30:0;;79279:64;;79359:9;79354:117;79378:8;:15;79374:1;:19;79354:117;;;79435:24;79447:8;79456:1;79447:11;;;;;;;;;;;;;;79435;:24::i;:::-;79415:14;79430:1;79415:17;;;;;;;;-1:-1:-1;;;;;79415:44:0;;;:17;;;;;;;;;;;:44;79395:3;;79354:117;;;-1:-1:-1;79488:14:0;79145:365;-1:-1:-1;;79145:365:0:o;76740:91::-;76797:34;76740:91;:::o;75437:87::-;75510:6;;-1:-1:-1;;;;;75510:6:0;75437:87;:::o;23671:170::-;23771:7;23803:12;;;:6;:12;;;;;:30;;23827:5;23803:23;:30::i;22632:139::-;22701:4;22725:12;;;:6;:12;;;;;:38;;22755:7;22725:29;:38::i;77425:189::-;77511:15;;77498:9;:28;77476:111;;;;-1:-1:-1;;;77476:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77598:8;:6;:8::i;:::-;77425:189::o;78070:100::-;78125:7;78152:10;;;:6;:10;;;;;;;78070:100::o;60651:104::-;60740:7;60733:14;;;;;;;;-1:-1:-1;;60733:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60707:13;;60733:14;;60740:7;;60733:14;;60740:7;60733:14;;;;;;;;;;;;;;;;;;;;;;;;21275:49;21320:4;21275:49;:::o;63870:327::-;64017:12;:10;:12::i;:::-;-1:-1:-1;;;;;64005:24:0;:8;-1:-1:-1;;;;;64005:24:0;;;63997:62;;;;;-1:-1:-1;;;63997:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;64117:8;64072:18;:32;64091:12;:10;:12::i;:::-;-1:-1:-1;;;;;64072:32:0;;;;;;;;;;;;;;;;;-1:-1:-1;64072:32:0;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;64072:53:0;;;;;;;;;;;64156:12;:10;:12::i;:::-;-1:-1:-1;;;;;64141:48:0;;64180:8;64141:48;;;;;;;;;;;;;;;;;;;;63870:327;;:::o;65252:365::-;65441:41;65460:12;:10;:12::i;:::-;65474:7;65441:18;:41::i;:::-;65419:140;;;;-1:-1:-1;;;65419:140:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65570:39;65584:4;65590:2;65594:7;65603:5;65570:13;:39::i;:::-;65252:365;;;;:::o;60826:879::-;60944:13;60997:16;61005:7;60997;:16::i;:::-;60975:113;;;;-1:-1:-1;;;60975:113:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61127:19;;;;:10;:19;;;;;;;;;61101:45;;;;;;-1:-1:-1;;61101:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;:45;;;61127:19;61101:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61157:18;61178:9;:7;:9::i;:::-;61157:30;;61269:4;61263:18;61285:1;61263:23;61259:72;;;-1:-1:-1;61310:9:0;-1:-1:-1;61303:16:0;;61259:72;61435:23;;:27;61431:108;;61510:4;61516:9;61493:33;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;61493:33:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;61493:33:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61493:33:0;;;;;;;;;;;;;-1:-1:-1;;61493:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61479:48;;;;;;61431:108;61671:4;61677:18;:7;:16;:18::i;:::-;61654:42;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;61654:42:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;61654:42:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61654:42:0;;;;;;;;;;;;;-1:-1:-1;;61654:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61640:57;;;;60826:879;;;:::o;22945:127::-;23008:7;23035:12;;;:6;:12;;;;;:29;;:27;:29::i;24915:267::-;25022:12;;;;:6;:12;;;;;:22;;;25014:45;;25046:12;:10;:12::i;25014:45::-;24992:143;;;;-1:-1:-1;;;24992:143:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76906:24;;;;:::o;78296:126::-;75668:12;:10;:12::i;:::-;-1:-1:-1;;;;;75657:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;75657:23:0;;75649:68;;;;;-1:-1:-1;;;75649:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;75649:68:0;;;;;;;;;;;;;;;78380:15:::1;:34:::0;78296:126::o;64268:214::-;-1:-1:-1;;;;;64439:25:0;;;64410:4;64439:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;64268:214::o;76391:281::-;75668:12;:10;:12::i;:::-;-1:-1:-1;;;;;75657:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;75657:23:0;;75649:68;;;;;-1:-1:-1;;;75649:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;75649:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;76494:22:0;::::1;76472:110;;;;-1:-1:-1::0;;;76472:110:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76619:6;::::0;76598:38:::1;::::0;-1:-1:-1;;;;;76598:38:0;;::::1;::::0;76619:6:::1;::::0;76598:38:::1;::::0;76619:6:::1;::::0;76598:38:::1;76647:6;:17:::0;;-1:-1:-1;;;;;;76647:17:0::1;-1:-1:-1::0;;;;;76647:17:0;;;::::1;::::0;;;::::1;::::0;;76391:281::o;6858:175::-;6946:4;6975:50;6980:3;-1:-1:-1;;;;;7000:23:0;;6975:4;:50::i;67164:127::-;67229:4;67253:30;:12;67275:7;67253:21;:30::i;19315:106::-;19403:10;19315:106;:::o;73467:183::-;73533:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;73533:29:0;-1:-1:-1;;;;;73533:29:0;;;;;;;;:24;;73587:23;73533:24;73587:14;:23::i;:::-;-1:-1:-1;;;;;73578:46:0;;;;;;;;;;;73467:183;;:::o;71595:275::-;71732:16;71740:7;71732;:16::i;:::-;71710:110;;;;-1:-1:-1;;;71710:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71831:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;52998:155::-;53094:7;53126:19;53134:3;53126:7;:19::i;67458:459::-;67587:4;67631:16;67639:7;67631;:16::i;:::-;67609:110;;;;-1:-1:-1;;;67609:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67730:13;67746:23;67761:7;67746:14;:23::i;:::-;67730:39;;67799:5;-1:-1:-1;;;;;67788:16:0;:7;-1:-1:-1;;;;;67788:16:0;;:64;;;;67845:7;-1:-1:-1;;;;;67821:31:0;:20;67833:7;67821:11;:20::i;:::-;-1:-1:-1;;;;;67821:31:0;;67788:64;:120;;;;67869:39;67893:5;67900:7;67869:23;:39::i;:::-;67780:129;67458:459;-1:-1:-1;;;;67458:459:0:o;70769:670::-;70942:4;-1:-1:-1;;;;;70915:31:0;:23;70930:7;70915:14;:23::i;:::-;-1:-1:-1;;;;;70915:31:0;;70893:122;;;;-1:-1:-1;;;70893:122:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;71052:16:0;;71044:65;;;;-1:-1:-1;;;71044:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71122:39;71143:4;71149:2;71153:7;71122:20;:39::i;:::-;71226:29;71243:1;71247:7;71226:8;:29::i;:::-;-1:-1:-1;;;;;71268:19:0;;;;;;:13;:19;;;;;:35;;71295:7;71268:26;:35::i;:::-;-1:-1:-1;;;;;;71314:17:0;;;;;;:13;:17;;;;;:30;;71336:7;71314:21;:30::i;:::-;-1:-1:-1;71357:29:0;:12;71374:7;71383:2;71357:16;:29::i;:::-;;71423:7;71419:2;-1:-1:-1;;;;;71404:27:0;71413:4;-1:-1:-1;;;;;71404:27:0;;;;;;;;;;;70769:670;;;:::o;26969:188::-;27043:12;;;;:6;:12;;;;;:33;;27068:7;27043:24;:33::i;:::-;27039:111;;;27125:12;:10;:12::i;:::-;-1:-1:-1;;;;;27098:40:0;27116:7;-1:-1:-1;;;;;27098:40:0;27110:4;27098:40;;;;;;;;;;26969:188;;:::o;9955:169::-;10053:7;10093:22;10097:3;10109:5;10093:3;:22::i;27165:192::-;27240:12;;;;:6;:12;;;;;:36;;27268:7;27240:27;:36::i;:::-;27236:114;;;27325:12;:10;:12::i;:::-;-1:-1:-1;;;;;27298:40:0;27316:7;-1:-1:-1;;;;;27298:40:0;27310:4;27298:40;;;;;;;;;;27165:192;;:::o;40821:220::-;40879:7;40903:6;40899:20;;-1:-1:-1;40918:1:0;40911:8;;40899:20;40942:5;;;40946:1;40942;:5;:1;40966:5;;;;;:10;40958:56;;;;-1:-1:-1;;;40958:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79518:603;79580:9;;79563:13;:11;:13::i;:::-;:26;;79555:55;;;;;-1:-1:-1;;;79555:55:0;;;;;;;;;;;;-1:-1:-1;;;79555:55:0;;;;;;;;;;;;;;;79626:9;79621:446;79645:4;79641:1;:8;79621:446;;;79672:14;79688;79706:129;79731:1;79751:9;;79819:1;79803:10;-1:-1:-1;;;;;79779:37:0;:41;79706:6;:129::i;:::-;79855:23;;;;:15;:23;;;;;;79671:164;;-1:-1:-1;79671:164:0;-1:-1:-1;79855:23:0;;79850:206;;79899:23;;;;:15;:23;;;;;;;;:30;;-1:-1:-1;;79899:30:0;79925:4;79899:30;;;79948:6;:14;;;;;:23;;;79990:25;79996:10;79915:6;79990:5;:25::i;:::-;80034:7;;;;;79850:206;-1:-1:-1;;79651:3:0;;79621:446;;;-1:-1:-1;80077:36:0;;;-1:-1:-1;;;80077:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;53501:268;53608:7;;;;53673:22;53677:3;53689:5;53673:3;:22::i;:::-;53642:53;;;;-1:-1:-1;53501:268:0;-1:-1:-1;;;;;53501:268:0:o;72100:100::-;72173:19;;;;:8;;:19;;;;;:::i;54883:292::-;55024:7;55106:44;55111:3;55131;55137:12;55106:4;:44::i;:::-;55098:53;-1:-1:-1;54883:292:0;;;;;;:::o;7476:199::-;7583:4;7612:55;7622:3;-1:-1:-1;;;;;7642:23:0;;7612:9;:55::i;66499:352::-;66656:28;66666:4;66672:2;66676:7;66656:9;:28::i;:::-;66717:48;66740:4;66746:2;66750:7;66759:5;66717:22;:48::i;:::-;66695:148;;;;-1:-1:-1;;;66695:148:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55333:748;55389:13;55610:10;55606:53;;-1:-1:-1;55637:10:0;;;;;;;;;;;;-1:-1:-1;;;55637:10:0;;;;;;55606:53;55684:5;55669:12;55725:78;55732:9;;55725:78;;55758:8;;55789:2;55781:10;;;;55725:78;;;55813:19;55845:6;55835:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55835:17:0;-1:-1:-1;55907:5:0;;-1:-1:-1;55813:39:0;-1:-1:-1;;;55879:10:0;;55923:119;55930:9;;55923:119;;56000:2;55993:4;:9;55987:2;:16;55974:31;;55956:6;55963:7;;;;;;;55956:15;;;;;;;;;;;:49;-1:-1:-1;;;;;55956:49:0;;;;;;;;-1:-1:-1;56028:2:0;56020:10;;;;55923:119;;;-1:-1:-1;56066:6:0;55333:748;-1:-1:-1;;;;55333:748:0:o;1678:414::-;1741:4;1763:21;1773:3;1778:5;1763:9;:21::i;:::-;1758:327;;-1:-1:-1;1801:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;1984:18;;1962:19;;;:12;;;:19;;;;;;:40;;;;2017:11;;1758:327;-1:-1:-1;2068:5:0;2061:12;;52727:183;52838:4;52867:35;52877:3;52897;52867:9;:35::i;49343:110::-;49426:19;;49343:110::o;8977:160::-;9065:4;9094:35;9102:3;9122:5;9094:7;:35::i;8670:131::-;8737:4;8761:32;8766:3;8786:5;8761:4;:32::i;52093:219::-;52216:4;52240:64;52245:3;52265;-1:-1:-1;;;;;52279:23:0;;52240:4;:64::i;4621:273::-;4762:18;;4715:7;;4762:26;-1:-1:-1;4740:110:0;;;;-1:-1:-1;;;4740:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4868:3;:11;;4880:5;4868:18;;;;;;;;;;;;;;;;4861:25;;4621:273;;;;:::o;7209:181::-;7300:4;7329:53;7337:3;-1:-1:-1;;;;;7357:23:0;;7329:7;:53::i;80129:818::-;80242:14;80258;80841:5;80801:12;80756:15;80709:10;80692:28;;;;;;-1:-1:-1;;;;;80692:28:0;;;;;;;;;;;;;;;;;;;;;;80682:39;;;;;;80674:48;;80673:99;;;;;;80630:14;80585:15;80537:14;80520:32;;;;;;-1:-1:-1;;;;;80520:32:0;;;;;;;;;;;;;;;;;;;;;;80510:43;;;;;;80502:52;;80471:130;;;;;;80426:16;80383:15;:59;:219;:261;:390;:430;:463;80344:521;;;;;;;;;;;;;;;;;;;;;;;;;80316:564;;;;;;80294:597;;80285:606;;80935:4;80911:21;80927:4;80922:2;:9;80911:6;:10;;:21;;;;:::i;:::-;:28;80902:37;;80129:818;;;;;;:::o;69254:404::-;-1:-1:-1;;;;;69334:16:0;;69326:61;;;;;-1:-1:-1;;;69326:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69407:16;69415:7;69407;:16::i;:::-;69406:17;69398:58;;;;;-1:-1:-1;;;69398:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;69469:45;69498:1;69502:2;69506:7;69469:20;:45::i;:::-;-1:-1:-1;;;;;69527:17:0;;;;;;:13;:17;;;;;:30;;69549:7;69527:21;:30::i;:::-;-1:-1:-1;69570:29:0;:12;69587:7;69596:2;69570:16;:29::i;:::-;-1:-1:-1;69617:33:0;;69642:7;;-1:-1:-1;;;;;69617:33:0;;;69634:1;;69617:33;;69634:1;;69617:33;69254:404;;:::o;49818:348::-;49968:19;;49912:7;;;;49968:27;-1:-1:-1;49946:111:0;;;;-1:-1:-1;;;49946:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50070:22;50095:3;:12;;50108:5;50095:19;;;;;;;;;;;;;;;;;;50070:44;;50133:5;:10;;;50145:5;:12;;;50125:33;;;;;49818:348;;;;;:::o;51416:353::-;51544:7;51583:17;;;:12;;;:17;;;;;;51634:12;51619:13;51611:36;;;;-1:-1:-1;;;51611:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51701:3;:12;;51725:1;51714:8;:12;51701:26;;;;;;;;;;;;;;;;;;:33;;;51694:40;;;51416:353;;;;;:::o;3911:161::-;4011:4;4040:19;;;:12;;;;;:19;;;;;;:24;;;3911:161::o;72765:694::-;72920:4;72942:15;:2;-1:-1:-1;;;;;72942:13:0;;:15::i;:::-;72937:60;;-1:-1:-1;72981:4:0;72974:11;;72937:60;73007:23;73033:313;-1:-1:-1;;;73168:12:0;:10;:12::i;:::-;73199:4;73222:7;73248:5;73063:205;;;;;;-1:-1:-1;;;;;73063:205:0;;;;;;-1:-1:-1;;;;;73063:205:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;73063:205:0;;;;;;;-1:-1:-1;;;;;73063:205:0;;;;;;;;;;;73033:313;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;73033:15:0;;;:313;:15;:313::i;:::-;73007:339;;73357:13;73384:10;73373:32;;;;;;;;;;;;;;;-1:-1:-1;73373:32:0;-1:-1:-1;;;;;;73424:26:0;-1:-1:-1;;;73424:26:0;;-1:-1:-1;;;72765:694:0;;;;;;:::o;2268:1557::-;2334:4;2473:19;;;:12;;;:19;;;;;;2509:15;;2505:1313;;2957:18;;-1:-1:-1;;2908:14:0;;;;2957:22;;;;2884:21;;2957:3;;:22;;3244;;;;;;;;;;;;;;3224:42;;3390:9;3361:3;:11;;3373:13;3361:26;;;;;;;;;;;;;;;;;;;:38;;;;3467:23;;;3509:1;3467:12;;;:23;;;;;;3493:17;;;3467:43;;3619:17;;3467:3;;3619:17;;;;;;;;;;;;;;;;;;;;;;3714:3;:12;;:19;3727:5;3714:19;;;;;;;;;;;3707:26;;;3757:4;3750:11;;;;;;;;2505:1313;3801:5;3794:12;;;;;46533:737;46643:4;46778:17;;;:12;;;:17;;;;;;46812:13;46808:455;;-1:-1:-1;;46910:36:0;;;;;;;;;;;;;;;;;;46892:55;;;;;;;;:12;:55;;;;;;;;;;;;;;;;;;;;;;;;47105:19;;47085:17;;;:12;;;:17;;;;;;;:39;47139:11;;46808:455;47219:5;47183:3;:12;;47207:1;47196:8;:12;47183:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;47246:5;47239:12;;;;;42139:151;42197:7;42229:1;42225;:5;42217:42;;;;;-1:-1:-1;;;42217:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;42281:1;42277;:5;;;;;;;42139:151;-1:-1:-1;;;42139:151:0:o;10812:444::-;11192:20;11240:8;;;10812:444::o;13849:229::-;13986:12;14018:52;14040:6;14048:4;14054:1;14057:12;13986;15397:18;15408:6;15397:10;:18::i;:::-;15389:60;;;;;-1:-1:-1;;;15389:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15523:12;15537:23;15564:6;-1:-1:-1;;;;;15564:11:0;15583:5;15604:4;15564:55;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15564:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15522:97;;;;15637:52;15655:7;15664:10;15676:12;15637:17;:52::i;:::-;15630:59;15065:632;-1:-1:-1;;;;;;;15065:632:0:o;17988:777::-;18138:12;18167:7;18163:595;;;-1:-1:-1;18198:10:0;18191:17;;18163:595;18312:17;;:21;18308:439;;18575:10;18569:17;18636:15;18623:10;18619:2;18615:19;18608:44;18523:148;18711:20;;-1:-1:-1;;;18711:20:0;;;;;;;;;;;;;;;;;18718:12;;18711:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;

Swarm Source

ipfs://28c3b2aca3ae4f3caea17de6792b47a7893f7c1cfdbd064fe8ac5a68864cebe3
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.