Contract 0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a7 2

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x4eda2dd70f41f4e786d7178f518f131a64e4da8a7b8a21d9a06c43d9b301b40dSet Approval For...300732772022-06-27 21:29:125 hrs 17 mins ago0xfc0ac081405ad9b335d6a2d5a0812a4959ad4372 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.001480706936 30.069999929
0xdbe98ab0702fa54582ecaf40f93d7c9855f4d24c9c28f4e9917cf2470d84d43bSet Approval For...300716622022-06-27 20:27:186 hrs 19 mins ago0xd920b68db744cbdf5bc8f63b6b2bd560292aab5d IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.00147726 30.000000015
0x0ef2d20d2e8e9487339a0181b2623f0f80f8f5f213e793bf15fb6c2c1fbc9785Set Approval For...300715742022-06-27 20:24:186 hrs 22 mins ago0xd920b68db744cbdf5bc8f63b6b2bd560292aab5d IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.00147726 30.000000015
0x67170a4d06afcb660096e2100e27e1c0a610c0bb0c2a1fadef550ca105799ee4Set Approval For...300714712022-06-27 20:20:446 hrs 26 mins ago0xdf336779c1dab543d654e908321fd8542c0c4597 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.001477260001 30.000000022
0x61bfdbc7109c0516dcb640a735b00f4a7c534f059caec4361666d91aa31abca3Set Approval For...299696442022-06-25 4:47:342 days 21 hrs ago0x2883518cc54932f5728475412a6749d67d7ca22e IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.000898384575 30.61770076
0x1b71c086b7ef501a3bab469873a701489f55e86ca5435e60377e179f402f5e68Set Approval For...299373262022-06-24 7:58:553 days 18 hrs ago0x473668e5f99e0e0bfa66c2c979e9cd26761f2f62 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.001477260156 30.000003174
0xeb01fad0af3639d46b13159b24079dc36846364b3d49037d28e9c3618e06436aSet Approval For...299373012022-06-24 7:58:053 days 18 hrs ago0x473668e5f99e0e0bfa66c2c979e9cd26761f2f62 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.001477260388 30.000007892
0x4b9cf455c308bdbeafc997d41505aa4340dde91e5dd27865a69e01f6ea8d26d7Mint296226192022-06-16 3:17:4911 days 23 hrs ago0xaa3e5ee4fdc831e5274fe7836c95d670dc2502e6 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.009512319957 31.999999858
0xb9e89f7b68e9fa189e44cea87dfda72b94431511f782b197316077e399d6fd9dMint296225982022-06-16 3:17:0711 days 23 hrs ago0xaa3e5ee4fdc831e5274fe7836c95d670dc2502e6 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.009512703979 31.999999932
0xa8abf9371bed5d43cdfaa0510728a79044496d3ac48d1c6b16e964d0e7c6f7faSet Approval For...295532762022-06-14 10:13:0013 days 16 hrs ago0xb0ccb7c222f6f3188463359ded8fc3cb9133cbd9 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.011261706114 228.701232988
0x7fd9d2aabeec130e0f9021eb3095e78ec31075e26430993de44a5c2090a8541fSet Approval For...294998202022-06-13 2:19:1915 days 27 mins ago0xf6b34d4e79a33a7bf8326c4c57748ddee905380c IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.007808499624 158.573973945
0x176221422528a96de4a7491bf5c1899a120c816c7c77f61974c2692612897b4fSet Approval For...293512582022-06-09 9:51:4618 days 16 hrs ago0x81f45f896d8854007fd6e7c892a894804f8ad3cb IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.001477260001 30.000000027
0x124ea523321534d21bd0adc70be0c3d3221fc62807945f36592164e6ca8f03b3Safe Transfer Fr...293484352022-06-09 8:08:1818 days 18 hrs ago0x1ac1ca3665b5cd5fdd8bc76f924b76c2a2889d39 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.00574250
0x4c8579e0d85c7cd3a6607bbdd2ad1b88ae69613f556a6cc7122cdbd687e7c4d1Set Approval For...293071262022-06-08 7:29:4319 days 19 hrs ago0x45e72d13cc7ad91e79f46541ed6e90ae2260722c IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.00147726 30.000000014
0x7a72223a385bab71f2680762bc1cb84548f7a5226fa2a796c2860e26f9d65818Set Approval For...291190302022-06-03 15:05:2724 days 11 hrs ago0x544b4979263846cbc2bebf0b99d3812536964da5 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.00260363409 52.874255517
0x910715e4585471241c7e3efac955a563d69454a911f6451d3714c59bb240ef47Set Approval For...289662432022-05-30 20:57:3728 days 5 hrs ago0xcff37ab5796b6dd8ec44aa54a5d0512d22fce4c3 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.00147726 30.000000014
0xba1274db92fd80d9faaeee8f5b7f9bb6331c671f1dcc72427816faf49bf7a935Set Approval For...287010712022-05-24 6:24:3034 days 20 hrs ago0x3da7a9e0492e90aa926d8645d5dadfeb59cc28ea IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.001480706931 30.069999825
0x34a19132f85ecabfc9ae5dc977b817bedb3e6507eb3104453b926a3a670c69afMint284159002022-05-17 4:36:2141 days 22 hrs ago0xaa3e5ee4fdc831e5274fe7836c95d670dc2502e6 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.008938969023 30.069999943
0x4b5def09bed6f6ba618cc0baf52bdb5eb3da4baf9c3f6485feed0b04c022865bMint284158902022-05-17 4:36:0141 days 22 hrs ago0xaa3e5ee4fdc831e5274fe7836c95d670dc2502e6 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.008424050345 30.069999947
0xe26debbc5d685f9dc8af487d9e156bec5dd5af2aaad7e8c344a1b4741797d553Mint284158772022-05-17 4:35:3541 days 22 hrs ago0xaa3e5ee4fdc831e5274fe7836c95d670dc2502e6 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.008938969023 30.069999943
0x9ef7529a1e8e0e2e2a7a226165f035b98c8116ac651d0908831e4c69669697f2Set Approval For...278444382022-05-02 18:27:0856 days 8 hrs ago0xe92b6334d7a4d69078f4900202b91b694d25aa83 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.001663649673 33.785176748
0x9f948aeacc4ce7203b03a2b14860252c19030689f1e12a906e60bc96b5bbbbc7Set Approval For...278242862022-05-02 5:54:5656 days 20 hrs ago0xf6b34d4e79a33a7bf8326c4c57748ddee905380c IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.0024621 50
0x520b4f5c0dba188b259c72decc2e415a4c81e57a53258dac4f570c83b19291a5Set Token URI277585412022-04-30 14:28:2258 days 12 hrs ago0xaa3e5ee4fdc831e5274fe7836c95d670dc2502e6 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.001420648115 30.996184307
0xc8d84fd671c036fd2dfb70931db9ca3a83b65633c907963c49e4d774fe182108Set Approval For...276198432022-04-27 2:14:4162 days 32 mins ago0xc2fa020ccbed2aa1375c7c13297257a95b14b896 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.000123105006 2.500000142
0xedfb3e4ee1cc990ba41ec1c324cb9fa8aa86168ce1d8845512d2c933a430dcb0Set Approval For...275292582022-04-24 18:47:0864 days 7 hrs ago0xcaf43b095c2ad696f1a460edc6b63ccba213b890 IN  0x7b2a989c4d1ad1b79a84ce2eb79da5d8d9c2b7a70 MATIC0.001480701919 30.069898051
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DigitalaxGarmentNFTv2

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-06-13
*/

pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

// INCLUDED IS THE SOURCE CODE FOR THE DIGITALAX GARMENT NFT V2 ON THE MATIC NETWORK
// SPDX-License-Identifier: MIT
/**
 * @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 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 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 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 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);
    }
}


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


// This file taken from solc 6 version of Open Zeppelin - modified to allow for custom tokenUri to be preset by admins
/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract DigitalaxERC721 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) _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) _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 = DigitalaxERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(_msgSender() == owner || DigitalaxERC721.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 = DigitalaxERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || DigitalaxERC721.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 = DigitalaxERC721.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(DigitalaxERC721.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);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(DigitalaxERC721.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 { }
}


/**
 * _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {

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

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


/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    constructor() internal {
        _registerInterface(
            ERC1155Receiver(address(0)).onERC1155Received.selector ^
            ERC1155Receiver(address(0)).onERC1155BatchReceived.selector
        );
    }
}


// solhint-disable-next-line compiler-version
/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !Address.isContract(address(this));
    }
}


// Based on: https://github.com/rocksideio/ERC998-ERC1155-TopDown/blob/695963195606304374015c49d166ab2fbeb42ea9/contracts/IERC998ERC1155TopDown.sol
interface IERC998ERC1155TopDown is IERC1155Receiver {

    event ReceivedChild(address indexed from, uint256 indexed toTokenId, address indexed childContract, uint256 childTokenId, uint256 amount);
    event TransferBatchChild(uint256 indexed fromTokenId, address indexed to, address indexed childContract, uint256[] childTokenIds, uint256[] amounts);

    function childContractsFor(uint256 tokenId) external view returns (address[] memory childContracts);
    function childIdsForOn(uint256 tokenId, address childContract) external view returns (uint256[] memory childIds);
    function childBalance(uint256 tokenId, address childContract, uint256 childTokenId) external view returns (uint256);
}

/**
* @notice Mock child tunnel contract to receive and send message from L2
*/
abstract contract BaseChildTunnel {

    modifier onlyStateSyncer() {
        require(
            msg.sender == 0x0000000000000000000000000000000000001001,
            "Child tunnel: caller is not the state syncer"
        );
        _;
    }

    // MessageTunnel on L1 will get data from this event
    event MessageSent(bytes message);

    /**
     * @notice Receive state sync from matic contracts
     * @dev This method will be called by Matic chain internally.
     * This is executed without transaction using a system call.
     */
    function onStateReceive(uint256, bytes memory message) public onlyStateSyncer{
        _processMessageFromRoot(message);
    }

    /**
     * @notice Emit message that can be received on Root Tunnel
     * @dev Call the internal function when need to emit message
     * @param message bytes message that will be sent to Root Tunnel
     * some message examples -
     *   abi.encode(tokenId);
     *   abi.encode(tokenId, tokenMetadata);
     *   abi.encode(messageType, messageData);
     */
    function _sendMessageToRoot(bytes memory message) internal {
        emit MessageSent(message);
    }

    /**
     * @notice Process message received from Root Tunnel
     * @dev function needs to be implemented to handle message as per requirement
     * This is called by onStateReceive function.
     * Since it is called via a system call, any event will not be emitted during its execution.
     * @param message bytes message that was sent from Root Tunnel
     */
    function _processMessageFromRoot(bytes memory message) virtual internal;
}


/**
 * a contract must implement this interface in order to support relayed transaction.
 * It is better to inherit the BaseRelayRecipient as its implementation.
 */
abstract contract IRelayRecipient {

    /**
     * return if the forwarder is trusted to forward relayed transactions to us.
     * the forwarder is required to verify the sender's signature, and verify
     * the call is not a replay.
     */
    function isTrustedForwarder(address forwarder) public virtual view returns(bool);

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, then the real sender is appended as the last 20 bytes
     * of the msg.data.
     * otherwise, return `msg.sender`
     * should be used in the contract anywhere instead of msg.sender
     */
    function msgSender() internal virtual view returns (address payable);

    function versionRecipient() external virtual view returns (string memory);
}


/**
 * A base contract to be inherited by any contract that want to receive relayed transactions
 * A subclass must use "_msgSender()" instead of "msg.sender"
 */
abstract contract BaseRelayRecipient is IRelayRecipient {

    /*
     * Forwarder singleton we accept calls from
     */
    address public trustedForwarder;

    /*
     * require a function to be called through GSN only
     */
    modifier trustedForwarderOnly() {
        require(msg.sender == address(trustedForwarder), "Function can only be called through the trusted Forwarder");
        _;
    }

    function isTrustedForwarder(address forwarder) public override view returns(bool) {
        return forwarder == trustedForwarder;
    }

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, return the original sender.
     * otherwise, return `msg.sender`.
     * should be used in the contract anywhere instead of msg.sender
     */
    function msgSender() internal override view returns (address payable ret) {
        if (msg.data.length >= 24 && isTrustedForwarder(msg.sender)) {
            // At this point we know that the sender is a trusted forwarder,
            // so we trust that the last bytes of msg.data are the verified sender address.
            // extract sender address from the end of msg.data
            assembly {
                ret := shr(96,calldataload(sub(calldatasize(),20)))
            }
        } else {
            return msg.sender;
        }
    }
}


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


/**
 * @notice Access Controls contract for the Digitalax Platform
 * @author BlockRocket.tech
 */
contract DigitalaxAccessControls is AccessControl {
    /// @notice Role definitions
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant SMART_CONTRACT_ROLE = keccak256("SMART_CONTRACT_ROLE");
    bytes32 public constant VERIFIED_MINTER_ROLE = keccak256("VERIFIED_MINTER_ROLE");

    /// @notice Events for adding and removing various roles
    event AdminRoleGranted(
        address indexed beneficiary,
        address indexed caller
    );

    event AdminRoleRemoved(
        address indexed beneficiary,
        address indexed caller
    );

    event MinterRoleGranted(
        address indexed beneficiary,
        address indexed caller
    );

    event MinterRoleRemoved(
        address indexed beneficiary,
        address indexed caller
    );

    event SmartContractRoleGranted(
        address indexed beneficiary,
        address indexed caller
    );

    event SmartContractRoleRemoved(
        address indexed beneficiary,
        address indexed caller
    );

    event VerifiedMinterRoleGranted(
        address indexed beneficiary,
        address indexed caller
    );

    event VerifiedMinterRoleRemoved(
        address indexed beneficiary,
        address indexed caller
    );

    /**
     * @notice The deployer is automatically given the admin role which will allow them to then grant roles to other addresses
     */
    constructor() public {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
    }

    /////////////
    // Lookups //
    /////////////

    /**
     * @notice Used to check whether an address has the admin role
     * @param _address EOA or contract being checked
     * @return bool True if the account has the role or false if it does not
     */
    function hasAdminRole(address _address) external view returns (bool) {
        return hasRole(DEFAULT_ADMIN_ROLE, _address);
    }

    /**
     * @notice Used to check whether an address has the minter role
     * @param _address EOA or contract being checked
     * @return bool True if the account has the role or false if it does not
     */
    function hasMinterRole(address _address) external view returns (bool) {
        return hasRole(MINTER_ROLE, _address);
    }

    /**
     * @notice Used to check whether an address has the verified minter role
     * @param _address EOA or contract being checked
     * @return bool True if the account has the role or false if it does not
     */
    function hasVerifiedMinterRole(address _address)
        external
        view
        returns (bool)
    {
        return hasRole(VERIFIED_MINTER_ROLE, _address);
    }

    /**
     * @notice Used to check whether an address has the smart contract role
     * @param _address EOA or contract being checked
     * @return bool True if the account has the role or false if it does not
     */
    function hasSmartContractRole(address _address) external view returns (bool) {
        return hasRole(SMART_CONTRACT_ROLE, _address);
    }

    ///////////////
    // Modifiers //
    ///////////////

    /**
     * @notice Grants the admin role to an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract receiving the new role
     */
    function addAdminRole(address _address) external {
        grantRole(DEFAULT_ADMIN_ROLE, _address);
        emit AdminRoleGranted(_address, _msgSender());
    }

    /**
     * @notice Removes the admin role from an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract affected
     */
    function removeAdminRole(address _address) external {
        revokeRole(DEFAULT_ADMIN_ROLE, _address);
        emit AdminRoleRemoved(_address, _msgSender());
    }

    /**
     * @notice Grants the minter role to an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract receiving the new role
     */
    function addMinterRole(address _address) external {
        grantRole(MINTER_ROLE, _address);
        emit MinterRoleGranted(_address, _msgSender());
    }

    /**
     * @notice Removes the minter role from an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract affected
     */
    function removeMinterRole(address _address) external {
        revokeRole(MINTER_ROLE, _address);
        emit MinterRoleRemoved(_address, _msgSender());
    }

    /**
     * @notice Grants the verified minter role to an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract receiving the new role
     */
    function addVerifiedMinterRole(address _address) external {
        grantRole(VERIFIED_MINTER_ROLE, _address);
        emit VerifiedMinterRoleGranted(_address, _msgSender());
    }

    /**
     * @notice Removes the verified minter role from an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract affected
     */
    function removeVerifiedMinterRole(address _address) external {
        revokeRole(VERIFIED_MINTER_ROLE, _address);
        emit VerifiedMinterRoleRemoved(_address, _msgSender());
    }

    /**
     * @notice Grants the smart contract role to an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract receiving the new role
     */
    function addSmartContractRole(address _address) external {
        grantRole(SMART_CONTRACT_ROLE, _address);
        emit SmartContractRoleGranted(_address, _msgSender());
    }

    /**
     * @notice Removes the smart contract role from an address
     * @dev The sender must have the admin role
     * @param _address EOA or contract affected
     */
    function removeSmartContractRole(address _address) external {
        revokeRole(SMART_CONTRACT_ROLE, _address);
        emit SmartContractRoleRemoved(_address, _msgSender());
    }
}


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

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

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

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

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

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

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

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

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

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


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



// Contract based from the following:
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/aaa5ef81cf75454d1c337dc3de03d12480849ad1/contracts/token/ERC1155/ERC1155.sol

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

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

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

    // Token ID to its URI
    mapping (uint256 => string) internal tokenUris;

    // Token ID to its total supply
    mapping(uint256 => uint256) public tokenTotalSupply;

    /*
     *     bytes4(keccak256('balanceOf(address,uint256)')) == 0x00fdd58e
     *     bytes4(keccak256('balanceOfBatch(address[],uint256[])')) == 0x4e1273f4
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,uint256,bytes)')) == 0xf242432a
     *     bytes4(keccak256('safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)')) == 0x2eb2c2d6
     *
     *     => 0x00fdd58e ^ 0x4e1273f4 ^ 0xa22cb465 ^
     *        0xe985e9c5 ^ 0xf242432a ^ 0x2eb2c2d6 == 0xd9b67a26
     */
    bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26;

    /*
     *     bytes4(keccak256('uri(uint256)')) == 0x0e89341c
     */
    bytes4 private constant _INTERFACE_ID_ERC1155_METADATA_URI = 0x0e89341c;

    constructor () public {
        // register the supported interfaces to conform to ERC1155 via ERC165
        _registerInterface(_INTERFACE_ID_ERC1155);

        // register the supported interfaces to conform to ERC1155MetadataURI via ERC165
        _registerInterface(_INTERFACE_ID_ERC1155_METADATA_URI);
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     */
    function uri(uint256 tokenId) external view override returns (string memory) {
        return tokenUris[tokenId];
    }

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

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

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

        for (uint256 i = 0; i < accounts.length; ++i) {
            require(accounts[i] != address(0), "ERC1155: batch balance query for the zero address");
            batchBalances[i] = _balances[ids[i]][accounts[i]];
        }

        return batchBalances;
    }

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

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

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

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

        address operator = _msgSender();

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

        _balances[id][from] = _balances[id][from].sub(amount, "ERC1155: insufficient balance for transfer");
        _balances[id][to] = _balances[id][to].add(amount);

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

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

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

        address operator = _msgSender();

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

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

            _balances[id][from] = _balances[id][from].sub(
                amount,
                "ERC1155: insufficient balance for transfer"
            );
            _balances[id][to] = _balances[id][to].add(amount);
        }

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

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

    /**
     * @dev Sets a new URI for a given token ID
     */
    function _setURI(uint256 tokenId, string memory newuri) internal virtual {
        tokenUris[tokenId] = newuri;
        emit URI(newuri, tokenId);
    }

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

        _balances[id][account] = _balances[id][account].sub(
            amount,
            "ERC1155: burn amount exceeds balance"
        );

        tokenTotalSupply[id] = tokenTotalSupply[id].sub(amount);

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

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

        address operator = _msgSender();

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

        for (uint i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];
            _balances[id][account] = _balances[id][account].sub(
                amount,
                "ERC1155: burn amount exceeds balance"
            );

            tokenTotalSupply[id] = tokenTotalSupply[id].sub(amount);
        }

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

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

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

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

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

        return array;
    }
}

//imported from: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/aaa5ef81cf75454d1c337dc3de03d12480849ad1/contracts/token/ERC1155/ERC1155Burnable.sol

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(address account, uint256 id, uint256 amount) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, amount);
    }

    function burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, amounts);
    }
}


/**
 * @title Digitalax Materials NFT a.k.a. child NFTs
 * @dev Issues ERC-1155 tokens which can be held by the parent ERC-721 contract
 */
contract DigitalaxMaterials is ERC1155Burnable, BaseRelayRecipient {

    // @notice event emitted on contract creation
    event DigitalaxMaterialsDeployed();

    // @notice a single child has been created
    event ChildCreated(
        uint256 indexed childId
    );

    // @notice a batch of children have been created
    event ChildrenCreated(
        uint256[] childIds
    );

    string public name;
    string public symbol;

    // @notice current token ID pointer
    uint256 public tokenIdPointer;

    // @notice enforcing access controls
    DigitalaxAccessControls public accessControls;

    address public childChain;

    modifier onlyChildChain() {
        require(
            _msgSender() == childChain,
            "Child token: caller is not the child chain contract"
        );
        _;
    }

    constructor(
        string memory _name,
        string memory _symbol,
        DigitalaxAccessControls _accessControls,
        address _childChain,
        address _trustedForwarder
    ) public {
        name = _name;
        symbol = _symbol;
        accessControls = _accessControls;
        trustedForwarder = _trustedForwarder;
        childChain = _childChain;
        emit DigitalaxMaterialsDeployed();
    }

    /**
     * Override this function.
     * This version is to keep track of BaseRelayRecipient you are using
     * in your contract.
     */
    function versionRecipient() external view override returns (string memory) {
        return "1";
    }

    function setTrustedForwarder(address _trustedForwarder) external  {
        require(
            accessControls.hasAdminRole(_msgSender()),
            "DigitalaxMaterials.setTrustedForwarder: Sender must be admin"
        );
        trustedForwarder = _trustedForwarder;
    }

    // This is to support Native meta transactions
    // never use msg.sender directly, use _msgSender() instead
    function _msgSender()
    internal
    override
    view
    returns (address payable sender)
    {
        return BaseRelayRecipient.msgSender();
    }

    ///////////////////////////
    // Creating new children //
    ///////////////////////////

    /**
     @notice Creates a single child ERC1155 token
     @dev Only callable with smart contact role
     @return id the generated child Token ID
     */
    function createChild(string calldata _uri) external returns (uint256 id) {
        require(
            accessControls.hasSmartContractRole(_msgSender()),
            "DigitalaxMaterials.createChild: Sender must be smart contract"
        );

        require(bytes(_uri).length > 0, "DigitalaxMaterials.createChild: URI is a blank string");

        tokenIdPointer = tokenIdPointer.add(1);

        id = tokenIdPointer;
        _setURI(id, _uri);

        emit ChildCreated(id);
    }

    /**
     @notice Creates a batch of child ERC1155 tokens
     @dev Only callable with smart contact role
     @return tokenIds the generated child Token IDs
     */
    function batchCreateChildren(string[] calldata _uris) external returns (uint256[] memory tokenIds) {
        require(
            accessControls.hasSmartContractRole(_msgSender()),
            "DigitalaxMaterials.batchCreateChildren: Sender must be smart contract"
        );

        require(_uris.length > 0, "DigitalaxMaterials.batchCreateChildren: No data supplied in array");

        uint256 urisLength = _uris.length;
        tokenIds = new uint256[](urisLength);
        for (uint256 i = 0; i < urisLength; i++) {
            string memory uri = _uris[i];
            require(bytes(uri).length > 0, "DigitalaxMaterials.batchCreateChildren: URI is a blank string");
            tokenIdPointer = tokenIdPointer.add(1);

            _setURI(tokenIdPointer, uri);
            tokenIds[i] = tokenIdPointer;
        }

        // Batched event for GAS savings
        emit ChildrenCreated(tokenIds);
    }

    //////////////////////////////////
    // Minting of existing children //
    //////////////////////////////////

    /**
      @notice Mints a single child ERC1155 tokens, increasing its supply by the _amount specified. msg.data along with the
      parent contract as the recipient can be used to map the created children to a given parent token
      @dev Only callable with smart contact role
     */
    function mintChild(uint256 _childTokenId, uint256 _amount, address _beneficiary, bytes calldata _data) external {
        require(
            accessControls.hasSmartContractRole(_msgSender()),
            "DigitalaxMaterials.mintChild: Sender must be smart contract"
        );

        require(bytes(tokenUris[_childTokenId]).length > 0, "DigitalaxMaterials.mintChild: Strand does not exist");
        require(_amount > 0, "DigitalaxMaterials.mintChild: No amount specified");

        _mint(_beneficiary, _childTokenId, _amount, _data);
    }

    /**
      @notice Mints a batch of child ERC1155 tokens, increasing its supply by the _amounts specified. msg.data along with the
      parent contract as the recipient can be used to map the created children to a given parent token
      @dev Only callable with smart contact role
     */
    function batchMintChildren(
        uint256[] calldata _childTokenIds,
        uint256[] calldata _amounts,
        address _beneficiary,
        bytes calldata _data
    ) external {
        require(
            accessControls.hasSmartContractRole(_msgSender()),
            "DigitalaxMaterials.batchMintChildren: Sender must be smart contract"
        );

        require(_childTokenIds.length == _amounts.length, "DigitalaxMaterials.batchMintChildren: Array lengths are invalid");
        require(_childTokenIds.length > 0, "DigitalaxMaterials.batchMintChildren: No data supplied in arrays");

        // Check the strands exist and no zero amounts
        for (uint256 i = 0; i < _childTokenIds.length; i++) {
            uint256 strandId = _childTokenIds[i];
            require(bytes(tokenUris[strandId]).length > 0, "DigitalaxMaterials.batchMintChildren: Strand does not exist");

            uint256 amount = _amounts[i];
            require(amount > 0, "DigitalaxMaterials.batchMintChildren: Invalid amount");
        }

        _mintBatch(_beneficiary, _childTokenIds, _amounts, _data);
    }

    function updateAccessControls(DigitalaxAccessControls _accessControls) external {
        require(
            accessControls.hasAdminRole(_msgSender()),
            "DigitalaxMaterials.updateAccessControls: Sender must be admin"
        );

        require(
            address(_accessControls) != address(0),
            "DigitalaxMaterials.updateAccessControls: New access controls cannot be ZERO address"
        );

        accessControls = _accessControls;
    }

    /**
    * @notice called when tokens are deposited on root chain
    * @dev Should be callable only by ChildChainManager
    * Should handle deposit by minting the required tokens for user
    * Make sure minting is done only by this function
    * @param user user address for whom deposit is being done
    * @param depositData abi encoded ids array and amounts array
    */
    function deposit(address user, bytes calldata depositData)
    external
    onlyChildChain
    {
        (
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
        ) = abi.decode(depositData, (uint256[], uint256[], bytes));
        require(user != address(0x0), "DigitalaxMaterials: INVALID_DEPOSIT_USER");
        _mintBatch(user, ids, amounts, data);
    }

    /**
     * @notice called when user wants to withdraw single token back to root chain
     * @dev Should burn user's tokens. This transaction will be verified when exiting on root chain
     * @param id id to withdraw
     * @param amount amount to withdraw
     */
    function withdrawSingle(uint256 id, uint256 amount) external {
        _burn(_msgSender(), id, amount);
    }

    /**
     * @notice called when user wants to batch withdraw tokens back to root chain
     * @dev Should burn user's tokens. This transaction will be verified when exiting on root chain
     * @param ids ids to withdraw
     * @param amounts amounts to withdraw
     */
    function withdrawBatch(uint256[] calldata ids, uint256[] calldata amounts)
    external
    {
        _burnBatch(_msgSender(), ids, amounts);
    }
}


/**
 * @title Digitalax Garment NFT a.k.a. parent NFTs
 * @dev Issues ERC-721 tokens as well as being able to hold child 1155 tokens
 */
contract DigitalaxGarmentNFTv2 is DigitalaxERC721("DigitalaxNFT", "DTX"), ERC1155Receiver, IERC998ERC1155TopDown, BaseChildTunnel, BaseRelayRecipient, Initializable {

    struct ChildNftInventory {
        uint256[] garmentTokenIds;
        uint256[] garmentAmounts;
    }

    // @notice event emitted upon construction of this contract, used to bootstrap external indexers
    event DigitalaxGarmentNFTContractDeployed();

    // @notice event emitted when token URI is updated
    event DigitalaxGarmentTokenUriUpdate(
        uint256 indexed _tokenId,
        string _tokenUri
    );
    // @notice event emitted when designer is updated
    event DigitalaxGarmentDesignerUpdate(
        uint256 indexed _tokenId,
        address _designer
    );

    // @notice event emitted when a tokens primary sale occurs
    event TokenPrimarySalePriceSet(
        uint256 indexed _tokenId,
        uint256 _salePrice
    );

    event WithdrawnBatch(
        address indexed user,
        uint256[] tokenIds
    );

    /// @dev Child ERC1155 contract address
    DigitalaxMaterials public childContract;

    /// @dev current max tokenId
    uint256 public tokenIdPointer;

    /// @dev TokenID -> Designer address
    mapping(uint256 => address) public garmentDesigners;

    /// @dev TokenID -> Primary Ether Sale Price in Wei
    mapping(uint256 => uint256) public primarySalePrice;

    /// @dev ERC721 Token ID -> ERC1155 ID -> Balance
    mapping(uint256 => mapping(uint256 => uint256)) private balances;

    /// @dev ERC1155 ID -> ERC721 Token IDs that have a balance
    mapping(uint256 => EnumerableSet.UintSet) private childToParentMapping;

    /// @dev ERC721 Token ID -> ERC1155 child IDs owned by the token ID
    mapping(uint256 => EnumerableSet.UintSet) private parentToChildMapping;

    /// @dev max children NFTs a single 721 can hold
    uint256 public maxChildrenPerToken;

    /// @dev limit batching of tokens due to gas limit restrictions
    uint256 public BATCH_LIMIT;

    mapping (uint256 => bool) public withdrawnTokens;

    address public childChain;

    /// Required to govern who can call certain functions
    DigitalaxAccessControls public accessControls;

    modifier onlyChildChain() {
        require(
            _msgSender() == childChain,
            "Child token: caller is not the child chain contract"
        );
        _;
    }

    /**
     @param _accessControls Address of the Digitalax access control contract
     @param _childContract ERC1155 the Digitalax child NFT contract
     0xb5505a6d998549090530911180f38aC5130101c6
     */
    function initialize(DigitalaxAccessControls _accessControls, DigitalaxMaterials _childContract, address _childChain, address _trustedForwarder) public initializer {
        accessControls = _accessControls;
        childContract = _childContract;
        childChain = _childChain;
        trustedForwarder = _trustedForwarder;
        tokenIdPointer = 100000;
        maxChildrenPerToken = 10;
        BATCH_LIMIT = 20;
        emit DigitalaxGarmentNFTContractDeployed();
    }

    /**
     * Override this function.
     * This version is to keep track of BaseRelayRecipient you are using
     * in your contract.
     */
    function versionRecipient() external view override returns (string memory) {
        return "1";
    }

    function setTrustedForwarder(address _trustedForwarder) external  {
        require(
            accessControls.hasAdminRole(_msgSender()),
            "DigitalaxGarmentNFT.setTrustedForwarder: Sender must be admin"
        );
        trustedForwarder = _trustedForwarder;
    }

    // This is to support Native meta transactions
    // never use msg.sender directly, use _msgSender() instead
    function _msgSender()
    internal
    override
    view
    returns (address payable sender)
    {
        return BaseRelayRecipient.msgSender();
    }

    /**
     @notice Mints a DigitalaxGarmentNFT AND when minting to a contract checks if the beneficiary is a 721 compatible
     @dev Only senders with either the minter or smart contract role can invoke this method
     @param _beneficiary Recipient of the NFT
     @param _tokenUri URI for the token being minted
     @param _designer Garment designer - will be required for issuing royalties from secondary sales
     @return uint256 The token ID of the token that was minted
     */
    function mint(address _beneficiary, string calldata _tokenUri, address _designer) external returns (uint256) {
        require(
            accessControls.hasSmartContractRole(_msgSender()) || accessControls.hasMinterRole(_msgSender()),
            "DigitalaxGarmentNFT.mint: Sender must have the minter or contract role"
        );

        // Valid args
        _assertMintingParamsValid(_tokenUri, _designer);

        tokenIdPointer = tokenIdPointer.add(1);
        uint256 tokenId = tokenIdPointer;

        // MATIC guard, to catch tokens minted on chain
        require(!withdrawnTokens[tokenId], "ChildMintableERC721: TOKEN_EXISTS_ON_ROOT_CHAIN");

        // Mint token and set token URI
        _safeMint(_beneficiary, tokenId);
        _tokenURIs[tokenId] = _tokenUri;

        // Associate garment designer
        garmentDesigners[tokenId] = _designer;

        return tokenId;
    }

    /**
     @notice Burns a DigitalaxGarmentNFT, releasing any composed 1155 tokens held by the token itself
     @dev Only the owner or an approved sender can call this method
     @param _tokenId the token ID to burn
     */
    function burn(uint256 _tokenId) public {
        address operator = _msgSender();
        require(
            ownerOf(_tokenId) == operator || isApproved(_tokenId, operator),
            "DigitalaxGarmentNFT.burn: Only garment owner or approved"
        );

        // If there are any children tokens then send them as part of the burn
        if (parentToChildMapping[_tokenId].length() > 0) {
            // Transfer children to the burner
            _extractAndTransferChildrenFromParent(_tokenId, _msgSender());
        }

        // Destroy token mappings
        _burn(_tokenId);

        // Clean up designer mapping
        delete garmentDesigners[_tokenId];
        delete primarySalePrice[_tokenId];
    }

    /**
     @notice Single ERC1155 receiver callback hook, used to enforce children token binding to a given parent token
     */
    function onERC1155Received(address _operator, address _from, uint256 _id, uint256 _amount, bytes memory _data)
    virtual
    external
    override
    returns (bytes4) {
        require(_data.length == 32, "ERC998: data must contain the unique uint256 tokenId to transfer the child token to");

        uint256 _receiverTokenId = _extractIncomingTokenId();
        _validateReceiverParams(_receiverTokenId, _operator, _from);

        _receiveChild(_receiverTokenId, _msgSender(), _id, _amount);

        emit ReceivedChild(_from, _receiverTokenId, _msgSender(), _id, _amount);

        // Check total tokens do not exceed maximum
        require(
            parentToChildMapping[_receiverTokenId].length() <= maxChildrenPerToken,
            "Cannot exceed max child token allocation"
        );

        return this.onERC1155Received.selector;
    }

    /**
     @notice Batch ERC1155 receiver callback hook, used to enforce child token bindings to a given parent token ID
     */
    function onERC1155BatchReceived(address _operator, address _from, uint256[] memory _ids, uint256[] memory _values, bytes memory _data)
    virtual
    external
    override
    returns (bytes4) {
        require(_data.length == 32, "ERC998: data must contain the unique uint256 tokenId to transfer the child token to");

        uint256 _receiverTokenId = _extractIncomingTokenId();
        _validateReceiverParams(_receiverTokenId, _operator, _from);

        // Note: be mindful of GAS limits
        for (uint256 i = 0; i < _ids.length; i++) {
            _receiveChild(_receiverTokenId, _msgSender(), _ids[i], _values[i]);
            emit ReceivedChild(_from, _receiverTokenId, _msgSender(), _ids[i], _values[i]);
        }

        // Check total tokens do not exceed maximum
        require(
            parentToChildMapping[_receiverTokenId].length() <= maxChildrenPerToken,
            "Cannot exceed max child token allocation"
        );

        return this.onERC1155BatchReceived.selector;
    }

    function _extractIncomingTokenId() internal pure returns (uint256) {
        // Extract out the embedded token ID from the sender
        uint256 _receiverTokenId;
        uint256 _index = msg.data.length - 32;
        assembly {_receiverTokenId := calldataload(_index)}
        return _receiverTokenId;
    }

    function _validateReceiverParams(uint256 _receiverTokenId, address _operator, address _from) internal view {
        require(_exists(_receiverTokenId), "Token does not exist");

        // We only accept children from the Digitalax child contract
        require(_msgSender() == address(childContract), "Invalid child token contract");

        // check the sender is the owner of the token or its just been birthed to this token
        if (_from != address(0)) {
            require(
                ownerOf(_receiverTokenId) == _from,
                "Cannot add children to tokens you dont own"
            );

            // Check the operator is also the owner, preventing an approved address adding tokens on the holders behalf
            require(_operator == _from, "Operator is not owner");
        }
    }

    //////////
    // Admin /
    //////////

    /**
     @notice Updates the token URI of a given token
     @dev Only admin or smart contract
     @param _tokenId The ID of the token being updated
     @param _tokenUri The new URI
     */
    function setTokenURI(uint256 _tokenId, string calldata _tokenUri) external {
        require(
            accessControls.hasSmartContractRole(_msgSender()) || accessControls.hasAdminRole(_msgSender()),
            "DigitalaxGarmentNFT.setTokenURI: Sender must be an authorised contract or admin"
        );
        _tokenURIs[_tokenId] = _tokenUri;
        emit DigitalaxGarmentTokenUriUpdate(_tokenId, _tokenUri);
    }

    /**
     @notice Updates the token URI of a given token
     @dev Only admin or smart contract
     @param _tokenIds The ID of the tokens being updated
     @param _tokenUris The new URIs
     */
    function batchSetTokenURI(uint256[] memory _tokenIds, string[] calldata _tokenUris) external {
        require(
            _tokenIds.length == _tokenUris.length,
            "DigitalaxGarmentNFT.batchSetTokenURI: Must have equal length arrays"
        );
        for( uint256 i; i< _tokenIds.length; i++){
            require(
                accessControls.hasSmartContractRole(_msgSender()) || accessControls.hasAdminRole(_msgSender()),
                "DigitalaxGarmentNFT.batchSetTokenURI: Sender must be an authorised contract or admin"
            );
            _tokenURIs[_tokenIds[i]] = _tokenUris[i];
            emit DigitalaxGarmentTokenUriUpdate(_tokenIds[i], _tokenUris[i]);
        }
    }

    /**
     @notice Updates the token URI of a given token
     @dev Only admin or smart contract
     @param _tokenIds The ID of the token being updated
     @param _designers The new URI
     */
    function batchSetGarmentDesigner(uint256[] memory _tokenIds, address[] calldata _designers) external {
        require(
            _tokenIds.length == _designers.length,
            "DigitalaxGarmentNFT.batchSetGarmentDesigner: Must have equal length arrays"
        );
        for( uint256 i; i< _tokenIds.length; i++){
            require(
                accessControls.hasSmartContractRole(_msgSender()) || accessControls.hasAdminRole(_msgSender()),
                "DigitalaxGarmentNFT.batchSetGarmentDesigner: Sender must be an authorised contract or admin"
            );
            garmentDesigners[_tokenIds[i]] = _designers[i];
            emit DigitalaxGarmentDesignerUpdate(_tokenIds[i], _designers[i]);
        }
    }

    /**
     @notice Records the Ether price that a given token was sold for (in WEI)
     @dev Only admin or a smart contract can call this method
     @param _tokenIds The ID of the token being updated
     @param _salePrices The primary Ether sale price in WEI
     */
    function batchSetPrimarySalePrice(uint256[] memory _tokenIds, uint256[] memory _salePrices) external {
        require(
            _tokenIds.length == _salePrices.length,
            "DigitalaxGarmentNFT.batchSetPrimarySalePrice: Must have equal length arrays"
        );
        for( uint256 i; i< _tokenIds.length; i++){
            _setPrimarySalePrice(_tokenIds[i], _salePrices[i]);
        }
    }

    /**
     @notice Records the Ether price that a given token was sold for (in WEI)
     @dev Only admin or a smart contract can call this method
     @param _tokenId The ID of the token being updated
     @param _salePrice The primary Ether sale price in WEI
     */
    function setPrimarySalePrice(uint256 _tokenId, uint256 _salePrice) external {
        _setPrimarySalePrice(_tokenId, _salePrice);
    }

    /**
     @notice Records the Ether price that a given token was sold for (in WEI)
     @dev Only admin or a smart contract can call this method
     @param _tokenId The ID of the token being updated
     @param _salePrice The primary Ether sale price in WEI
     */
    function _setPrimarySalePrice(uint256 _tokenId, uint256 _salePrice) internal {
        require(
            accessControls.hasSmartContractRole(_msgSender()) || accessControls.hasAdminRole(_msgSender()),
            "DigitalaxGarmentNFT.setPrimarySalePrice: Sender must be an authorised contract or admin"
        );
        // require(_exists(_tokenId), "DigitalaxGarmentNFT.setPrimarySalePrice: Token does not exist"); // Dont need to exist on matic
        require(_salePrice > 0, "DigitalaxGarmentNFT.setPrimarySalePrice: Invalid sale price");

        // Only set it once
        if (primarySalePrice[_tokenId] == 0) {
            primarySalePrice[_tokenId] = _salePrice;
            emit TokenPrimarySalePriceSet(_tokenId, _salePrice);
        }
    }

    /**
     @notice Method for updating the access controls contract used by the NFT
     @dev Only admin
     @param _accessControls Address of the new access controls contract
     */
    function updateAccessControls(DigitalaxAccessControls _accessControls) external {
        require(accessControls.hasAdminRole(_msgSender()), "DigitalaxGarmentNFT.updateAccessControls: Sender must be admin");
        accessControls = _accessControls;
    }

    /**
     @notice Method for updating max children a token can hold
     @dev Only admin
     @param _maxChildrenPerToken uint256 the max children a token can hold
     */
    function updateMaxChildrenPerToken(uint256 _maxChildrenPerToken) external {
        require(accessControls.hasAdminRole(_msgSender()), "DigitalaxGarmentNFT.updateMaxChildrenPerToken: Sender must be admin");
        maxChildrenPerToken = _maxChildrenPerToken;
    }

    /////////////////
    // View Methods /
    /////////////////

    /**
     @notice View method for checking whether a token has been minted
     @param _tokenId ID of the token being checked
     */
    function exists(uint256 _tokenId) external view returns (bool) {
        return _exists(_tokenId);
    }

    /**
     @dev Get the child token balances held by the contract, assumes caller knows the correct child contract
     */
    function childBalance(uint256 _tokenId, address _childContract, uint256 _childTokenId)
    public
    view
    override
    returns (uint256) {
        return _childContract == address(childContract) ? balances[_tokenId][_childTokenId] : 0;
    }

    /**
     @dev Get list of supported child contracts, always a list of 0 or 1 in our case
     */
    function childContractsFor(uint256 _tokenId) override external view returns (address[] memory) {
        if (!_exists(_tokenId)) {
            return new address[](0);
        }

        address[] memory childContracts = new address[](1);
        childContracts[0] = address(childContract);
        return childContracts;
    }

    /**
     @dev Gets mapped IDs for child tokens
     */
    function childIdsForOn(uint256 _tokenId, address _childContract) override public view returns (uint256[] memory) {
        if (!_exists(_tokenId) || _childContract != address(childContract)) {
            return new uint256[](0);
        }

        uint256[] memory childTokenIds = new uint256[](parentToChildMapping[_tokenId].length());

        for (uint256 i = 0; i < parentToChildMapping[_tokenId].length(); i++) {
            childTokenIds[i] = parentToChildMapping[_tokenId].at(i);
        }

        return childTokenIds;
    }

    /**
     @dev Gets mapped URIs for child tokens
     */
    function childURIsForOn(uint256 _tokenId, address _childContract) public view returns (string[] memory) {
        if (!_exists(_tokenId) || _childContract != address(childContract)) {
            return new string[](0);
        }
        uint256 mappingLength = parentToChildMapping[_tokenId].length();
        string[] memory childTokenURIs = new string[](mappingLength);

        for (uint256 i = 0; i < mappingLength; i++) {
            childTokenURIs[i] = childContract.uri(parentToChildMapping[_tokenId].at(i));
        }

        return childTokenURIs;
    }

    /**
     @dev Get total number of children mapped to the token
     */
    function totalChildrenMapped(uint256 _tokenId) external view returns (uint256) {
        return parentToChildMapping[_tokenId].length();
    }

    /**
     * @dev checks the given token ID is approved either for all or the single token ID
     */
    function isApproved(uint256 _tokenId, address _operator) public view returns (bool) {
        return isApprovedForAll(ownerOf(_tokenId), _operator) || getApproved(_tokenId) == _operator;
    }

    /////////////////////////
    // Internal and Private /
    /////////////////////////

    function _extractAndTransferChildrenFromParent(uint256 _fromTokenId, address _to) internal {
        uint256[] memory _childTokenIds = childIdsForOn(_fromTokenId, address(childContract));
        uint256[] memory _amounts = new uint256[](_childTokenIds.length);

        for (uint256 i = 0; i < _childTokenIds.length; ++i) {
            uint256 _childTokenId = _childTokenIds[i];
            uint256 amount = childBalance(_fromTokenId, address(childContract), _childTokenId);

            _amounts[i] = amount;

            _removeChild(_fromTokenId, address(childContract), _childTokenId, amount);
        }

        childContract.safeBatchTransferFrom(address(this), _to, _childTokenIds, _amounts, abi.encodePacked(""));

        emit TransferBatchChild(_fromTokenId, _to, address(childContract), _childTokenIds, _amounts);
    }

    function _receiveChild(uint256 _tokenId, address, uint256 _childTokenId, uint256 _amount) private {
        if (balances[_tokenId][_childTokenId] == 0) {
           parentToChildMapping[_tokenId].add(_childTokenId);
        }
        balances[_tokenId][_childTokenId] = balances[_tokenId][_childTokenId].add(_amount);
    }

    function _removeChild(uint256 _tokenId, address, uint256 _childTokenId, uint256 _amount) private {
        require(_amount != 0 || balances[_tokenId][_childTokenId] >= _amount, "ERC998: insufficient child balance for transfer");
        balances[_tokenId][_childTokenId] = balances[_tokenId][_childTokenId].sub(_amount);
        if (balances[_tokenId][_childTokenId] == 0) {
            childToParentMapping[_childTokenId].remove(_tokenId);
            parentToChildMapping[_tokenId].remove(_childTokenId);
        }
    }

    /**
     @notice Checks that the URI is not empty and the designer is a real address
     @param _tokenUri URI supplied on minting
     @param _designer Address supplied on minting
     */
    function _assertMintingParamsValid(string calldata _tokenUri, address _designer) pure internal {
        require(bytes(_tokenUri).length > 0, "DigitalaxGarmentNFT._assertMintingParamsValid: Token URI is empty");
        require(_designer != address(0), "DigitalaxGarmentNFT._assertMintingParamsValid: Designer is zero address");
    }


    /**
     * @notice called when token is deposited on root chain
     * @dev Should be callable only by ChildChainManager
     * Should handle deposit by minting the required tokenId for user
     * Make sure minting is done only by this function
     * @param user user address for whom deposit is being done
     * @param depositData abi encoded tokenId
     */
    function deposit(address user, bytes calldata depositData)
    external
    onlyChildChain
    {
        // deposit single
        if (depositData.length == 32) {
            uint256 tokenId = abi.decode(depositData, (uint256));
            withdrawnTokens[tokenId] = false;
            _safeMint(user, tokenId);

            // deposit batch
        } else {
            uint256[] memory tokenIds = abi.decode(depositData, (uint256[]));
            uint256 length = tokenIds.length;
            for (uint256 i; i < length; i++) {

                withdrawnTokens[tokenIds[i]] = false;
                _safeMint(user, tokenIds[i]);
            }
        }
    }

    /**
     * @notice called when user wants to withdraw token back to root chain
     * @dev Should burn user's token. This transaction will be verified when exiting on root chain
     * @param tokenId tokenId to withdraw
     */
    function withdraw(uint256 tokenId) external {
        burn(tokenId);
        withdrawnTokens[tokenId] = true;
    }

    /**
     * @notice called when user wants to withdraw multiple tokens back to root chain
     * @dev Should burn user's tokens. This transaction will be verified when exiting on root chain
     * @param tokenIds tokenId list to withdraw
     */
    function withdrawBatch(uint256[] calldata tokenIds) external {
        uint256 length = tokenIds.length;
        require(length <= BATCH_LIMIT, "ChildERC721: EXCEEDS_BATCH_LIMIT");
        for (uint256 i; i < length; i++) {
            uint256 tokenId = tokenIds[i];
            burn(tokenId);
            withdrawnTokens[tokenIds[i]] = true;
        }
        emit WithdrawnBatch(_msgSender(), tokenIds);
    }

    function _processMessageFromRoot(bytes memory message) internal override {
        uint256[] memory _tokenIds;
        uint256[] memory _primarySalePrices;
        address[] memory _garmentDesigners;
        string[] memory _tokenUris;

        (_tokenIds, _primarySalePrices, _garmentDesigners, _tokenUris) = abi.decode(message, (uint256[], uint256[], address[], string[]));

        for( uint256 i; i< _tokenIds.length; i++){
            primarySalePrice[_tokenIds[i]] = _primarySalePrices[i];
            garmentDesigners[_tokenIds[i]] = _garmentDesigners[i];
            _tokenURIs[_tokenIds[i]] = _tokenUris[i];
        }
    }

    // Send the nft to root - if it does not exist then we can handle it on that side
    // Make this a batch
    uint256[][] childNftIdArray;
    string[][] childNftURIArray;
    uint256[][] childNftBalanceArray;

    function sendNFTsToRoot(uint256[] memory _tokenIds) external {
        uint256 length = _tokenIds.length;

        address[] memory _owners = new address[](length);
        uint256[] memory _salePrices = new uint256[](length);
        address[] memory _designers = new address[](length);
        string[] memory _tokenUris = new string[](length);

        for( uint256 i; i< length; i++){
            _owners[i] = ownerOf(_tokenIds[i]);
            require(_owners[i] == _msgSender(), "DigitalaxGarmentNFTv2.sendNFTsToRootNFTs: can only be sent by the same user");
            _salePrices[i] = primarySalePrice[_tokenIds[i]];
            _designers[i] = garmentDesigners[_tokenIds[i]];
            _tokenUris[i] = tokenURI(_tokenIds[i]);

            childNftIdArray.push(childIdsForOn(_tokenIds[i], address(childContract)));
            childNftURIArray.push(childURIsForOn(_tokenIds[i], address(childContract)));
            uint256 len = childNftIdArray[i].length;
            uint256[] memory garmentAmounts = new uint256[](len);
            for( uint256 j; j< len; j++){
                garmentAmounts[j] = childBalance(_tokenIds[i], address(childContract), childNftIdArray[i][j]);
            }
            childNftBalanceArray.push(garmentAmounts);
            // Same as withdraw
            burn(_tokenIds[i]);
            withdrawnTokens[_tokenIds[i]] = true;

            childContract.burnBatch(_msgSender(), childNftIdArray[i], childNftBalanceArray[i]);
        }

        _sendMessageToRoot(abi.encode(_tokenIds, _owners, _salePrices, _designers, _tokenUris, childNftIdArray, childNftURIArray, childNftBalanceArray));
    }

    // Batch transfer
    /**
     * @dev See {IERC721-transferFrom} for batch
     */
    function batchTransferFrom(address _from, address _to, uint256[] memory _tokenIds) public {
        for( uint256 i; i< _tokenIds.length; i++){
            //solhint-disable-next-line max-line-length
            require(_isApprovedOrOwner(_msgSender(), _tokenIds[i]), "ERC721: transfer caller is not owner nor approved");
            _transfer(_from, _to, _tokenIds[i]);
        }
    }
    
    function batchTokensOfOwner(address owner) external view returns (uint256[] memory) {
        uint256 length = balanceOf(owner);
        uint256[] memory _tokenIds = new uint256[](length);

        for( uint256 i; i< length; i++){
            _tokenIds[i] = tokenOfOwnerByIndex(owner, i);
        }
        return _tokenIds;
    }

    function batchTokenURI(uint256[] memory tokenIds) external view returns (string[] memory) {
        uint256 length = tokenIds.length;

        string[] memory _tokenUris = new string[](length);
        for( uint256 i; i< length; i++){
            _tokenUris[i] = _tokenURIs[tokenIds[i]];
        }
        return _tokenUris;
    }

    function batchPrimarySalePrice(uint256[] memory tokenIds) external view returns (uint256[] memory) {
        uint256 length = tokenIds.length;

        uint256[] memory _primarySalePrices = new uint256[](length);
        for( uint256 i; i< length; i++){
            _primarySalePrices[i] = primarySalePrice[tokenIds[i]];
        }
        return _primarySalePrices;
    }
}

Contract Security Audit

Contract ABI

[{"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":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"_designer","type":"address"}],"name":"DigitalaxGarmentDesignerUpdate","type":"event"},{"anonymous":false,"inputs":[],"name":"DigitalaxGarmentNFTContractDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"_tokenUri","type":"string"}],"name":"DigitalaxGarmentTokenUriUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"message","type":"bytes"}],"name":"MessageSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"childContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"childTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReceivedChild","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"TokenPrimarySalePriceSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"address","name":"childContract","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"childTokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"TransferBatchChild","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"WithdrawnBatch","type":"event"},{"inputs":[],"name":"BATCH_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accessControls","outputs":[{"internalType":"contract DigitalaxAccessControls","name":"","type":"address"}],"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":"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":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchPrimarySalePrice","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"address[]","name":"_designers","type":"address[]"}],"name":"batchSetGarmentDesigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_salePrices","type":"uint256[]"}],"name":"batchSetPrimarySalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"_tokenUris","type":"string[]"}],"name":"batchSetTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchTokenURI","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"batchTokensOfOwner","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":"_tokenIds","type":"uint256[]"}],"name":"batchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_childContract","type":"address"},{"internalType":"uint256","name":"_childTokenId","type":"uint256"}],"name":"childBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"childChain","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"childContract","outputs":[{"internalType":"contract DigitalaxMaterials","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"childContractsFor","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_childContract","type":"address"}],"name":"childIdsForOn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_childContract","type":"address"}],"name":"childURIsForOn","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes","name":"depositData","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"garmentDesigners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract DigitalaxAccessControls","name":"_accessControls","type":"address"},{"internalType":"contract DigitalaxMaterials","name":"_childContract","type":"address"},{"internalType":"address","name":"_childChain","type":"address"},{"internalType":"address","name":"_trustedForwarder","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxChildrenPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"string","name":"_tokenUri","type":"string"},{"internalType":"address","name":"_designer","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"message","type":"bytes"}],"name":"onStateReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"primarySalePrice","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":"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":"_tokenIds","type":"uint256[]"}],"name":"sendNFTsToRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"setPrimarySalePrice","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":"address","name":"_trustedForwarder","type":"address"}],"name":"setTrustedForwarder","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":[],"name":"tokenIdPointer","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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"totalChildrenMapped","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trustedForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract DigitalaxAccessControls","name":"_accessControls","type":"address"}],"name":"updateAccessControls","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxChildrenPerToken","type":"uint256"}],"name":"updateMaxChildrenPerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"versionRecipient","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdrawBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawnTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604080518082018252600c81526b111a59da5d185b185e13919560a21b60208083019190915282518084019093526003835262088a8b60eb1b9083015290620000626301ffc9a760e01b620000df565b8151620000779060069060208501906200013a565b5080516200008d9060079060208401906200013a565b50620000a06380ac58cd60e01b620000df565b620000b2635b5e139f60e01b620000df565b620000c463780e9d6360e01b620000df565b50620000d99050630271189760e51b620000df565b6200020d565b6001600160e01b03198082161415620001155760405162461bcd60e51b81526004016200010c90620001d6565b60405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200017d57805160ff1916838001178555620001ad565b82800160010185558215620001ad579182015b82811115620001ad57825182559160200191906001019062000190565b50620001bb929150620001bf565b5090565b5b80821115620001bb5760008155600101620001c0565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b615f4c806200021d6000396000f3fe608060405234801561001057600080fd5b506004361061038e5760003560e01c80636706467b116101de578063b88d4fde1161010f578063e3845cf4116100ad578063f3993d111161007c578063f3993d1114610784578063f524971414610797578063f8c8765e146107aa578063fa8509c8146107bd5761038e565b8063e3845cf414610743578063e626223a14610756578063e985e9c51461075e578063f23a6e61146107715761038e565b8063c9f2e86a116100e9578063c9f2e86a146106f7578063cd0269451461070a578063cf2c52cb1461071d578063da742228146107305761038e565b8063b88d4fde146106b1578063bc197c81146106c4578063c87b56dd146106e45761038e565b806389e7e2f21161017c57806395d89b411161015657806395d89b41146106705780639920fae3146106785780639c8d41561461068b578063a22cb4651461069e5761038e565b806389e7e2f21461063557806391c978d6146106555780639559c0bd146106685761038e565b80636ef3da94116101b85780636ef3da94146105ff57806370a0823114610612578063748365ef146106255780637da0a8771461062d5761038e565b80636706467b146105d15780636c0360eb146105e45780636d94f13a146105ec5761038e565b806337e2dc0b116102c3578063486ff0cd11610261578063572b6c0511610230578063572b6c05146105855780635bef13071461059857806360d4d23a146105ab5780636352211e146105be5761038e565b8063486ff0cd146105445780634f558e791461054c5780634f6ccce71461055f57806356c31637146105725761038e565b806342842e0e1161029d57806342842e0e1461050357806342966c681461051657806342fc47fb14610529578063434cf090146105315761038e565b806337e2dc0b146104d5578063398c00de146104e85780633b3a1a7a146104fb5761038e565b80631aa462f7116103305780632676608c1161030a5780632676608c1461047c57806326c53bea1461049c5780632e1a7d4d146104af5780632f745c59146104c25761038e565b80631aa462f71461044157806320adfad11461046157806323b872dd146104695761038e565b8063081812fc1161036c578063081812fc146103e4578063095ea7b314610404578063162094c41461041957806318160ddd1461042c5761038e565b806301ffc9a71461039357806306fdde03146103bc57806307a974fc146103d1575b600080fd5b6103a66103a13660046147b6565b6107d0565b6040516103b39190614e37565b60405180910390f35b6103c46107f3565b6040516103b39190614e57565b6103a66103df366004614870565b61088a565b6103f76103f2366004614870565b61089f565b6040516103b39190614bbc565b61041761041236600461454e565b6108eb565b005b61041761042736600461490c565b610983565b610434610b08565b6040516103b39190615d87565b61045461044f366004614888565b610b19565b6040516103b39190614cb4565b610434610cb0565b61041761047736600461435b565b610cb6565b61048f61048a366004614888565b610cee565b6040516103b39190614d01565b6104176104aa3660046148d2565b610dea565b6104176104bd366004614870565b610e18565b6104346104d036600461454e565b610e3c565b6104176104e33660046145b8565b610e65565b6104176104f6366004614642565b61140f565b610434611474565b61041761051136600461435b565b61147a565b610417610524366004614870565b611495565b6103f761154b565b61048f61053f3660046145b8565b61155a565b6103c46115f4565b6103a661055a366004614870565b61160f565b61043461056d366004614870565b61161a565b6103a6610580366004614888565b611628565b6103a66105933660046141ff565b611666565b61048f6105a63660046141ff565b61167a565b6104346105b93660046148ac565b611702565b6103f76105cc366004614870565b611744565b6104176105df3660046145ea565b61176c565b6103c461198d565b6104546105fa3660046145b8565b6119ee565b61041761060d3660046141ff565b611b2a565b6104346106203660046141ff565b611bed565b6103f7611c36565b6103f7611c45565b610648610643366004614870565b611c54565b6040516103b39190614ca1565b610417610663366004614870565b611cd3565b610434611d79565b6103c4611d7f565b61041761068636600461493c565b611de0565b610417610699366004614579565b611dea565b6104176106ac36600461446a565b611ebf565b6104176106bf36600461439b565b611f8d565b6106d76106d23660046142b2565b611fc6565b6040516103b39190614e42565b6103c46106f2366004614870565b612114565b610434610705366004614870565b612236565b610434610718366004614870565b612248565b61041761072b366004614497565b61225f565b61041761073e3660046141ff565b61235a565b6103f7610751366004614870565b61241d565b6103f7612438565b6103a661076c36600461421b565b612447565b6106d761077f366004614404565b612475565b610417610792366004614253565b612562565b6104176107a53660046145ea565b6125d4565b6104176107b83660046147ee565b61280a565b6104346107cb3660046144e9565b61292a565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561087f5780601f106108545761010080835404028352916020019161087f565b820191906000526020600020905b81548152906001019060200180831161086257829003601f168201915b505050505090505b90565b60146020526000908152604090205460ff1681565b60006108aa82612afb565b6108cf5760405162461bcd60e51b81526004016108c6906156d4565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108f682611744565b9050806001600160a01b0316836001600160a01b0316141561092a5760405162461bcd60e51b81526004016108c69061595e565b806001600160a01b031661093c612b08565b6001600160a01b0316148061095857506109588161076c612b08565b6109745760405162461bcd60e51b81526004016108c690615568565b61097e8383612b12565b505050565b6016546001600160a01b031663113b0ab261099c612b08565b6040518263ffffffff1660e01b81526004016109b89190614bbc565b60206040518083038186803b1580156109d057600080fd5b505afa1580156109e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a08919061479a565b80610a9357506016546001600160a01b031663c395fcb3610a27612b08565b6040518263ffffffff1660e01b8152600401610a439190614bbc565b60206040518083038186803b158015610a5b57600080fd5b505afa158015610a6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a93919061479a565b610aaf5760405162461bcd60e51b81526004016108c690615720565b6000838152600860205260409020610ac8908383613dc4565b50827fa4df0960b5858898d86c7940315bc2191a4f8b07071854ab761425f2e35d94428383604051610afb929190614e6a565b60405180910390a2505050565b6000610b146002612b80565b905090565b6060610b2483612afb565b1580610b3e5750600b546001600160a01b03838116911614155b15610b76576040805160008082526020820190925290610b6e565b6060815260200190600190039081610b595790505b509050610caa565b6000838152601160205260408120610b8d90612b80565b90506060816001600160401b0381118015610ba757600080fd5b50604051908082528060200260200182016040528015610bdb57816020015b6060815260200190600190039081610bc65790505b50905060005b82811015610ca557600b5460008781526011602052604090206001600160a01b0390911690630e89341c90610c169084612b8b565b6040518263ffffffff1660e01b8152600401610c329190615d87565b60006040518083038186803b158015610c4a57600080fd5b505afa158015610c5e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c86919081019061483e565b828281518110610c9257fe5b6020908102919091010152600101610be1565b509150505b92915050565b60125481565b610cc7610cc1612b08565b82612b97565b610ce35760405162461bcd60e51b81526004016108c690615b58565b61097e838383612c14565b6060610cf983612afb565b1580610d135750600b546001600160a01b03838116911614155b15610d2e576040805160008082526020820190925290610b6e565b6000838152601160205260409020606090610d4890612b80565b6001600160401b0381118015610d5d57600080fd5b50604051908082528060200260200182016040528015610d87578160200160208202803683370190505b50905060005b6000858152601160205260409020610da490612b80565b811015610de2576000858152601160205260409020610dc39082612b8b565b828281518110610dcf57fe5b6020908102919091010152600101610d8d565b509392505050565b6110013314610e0b5760405162461bcd60e51b81526004016108c6906158b5565b610e1481612d22565b5050565b610e2181611495565b6000908152601460205260409020805460ff19166001179055565b6001600160a01b0382166000908152600160205260408120610e5e9083612b8b565b9392505050565b80516060816001600160401b0381118015610e7f57600080fd5b50604051908082528060200260200182016040528015610ea9578160200160208202803683370190505b5090506060826001600160401b0381118015610ec457600080fd5b50604051908082528060200260200182016040528015610eee578160200160208202803683370190505b5090506060836001600160401b0381118015610f0957600080fd5b50604051908082528060200260200182016040528015610f33578160200160208202803683370190505b5090506060846001600160401b0381118015610f4e57600080fd5b50604051908082528060200260200182016040528015610f8257816020015b6060815260200190600190039081610f6d5790505b50905060005b858110156113cd57610fac878281518110610f9f57fe5b6020026020010151611744565b858281518110610fb857fe5b60200260200101906001600160a01b031690816001600160a01b031681525050610fe0612b08565b6001600160a01b0316858281518110610ff557fe5b60200260200101516001600160a01b0316146110235760405162461bcd60e51b81526004016108c690614fbb565b600e600088838151811061103357fe5b602002602001015181526020019081526020016000205484828151811061105657fe5b602002602001018181525050600d600088838151811061107257fe5b6020026020010151815260200190815260200160002060009054906101000a90046001600160a01b03168382815181106110a857fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506110e48782815181106110d757fe5b6020026020010151612114565b8282815181106110f057fe5b6020026020010181905250601761112888838151811061110c57fe5b6020908102919091010151600b546001600160a01b0316610cee565b81546001810183556000928352602092839020825161114d9491909201920190613e42565b50601861117b88838151811061115f57fe5b6020908102919091010151600b546001600160a01b0316610b19565b8154600181018355600092835260209283902082516111a09491909201920190613e7d565b506000601782815481106111b057fe5b60009182526020909120015490506060816001600160401b03811180156111d657600080fd5b50604051908082528060200260200182016040528015611200578160200160208202803683370190505b50905060005b8281101561128c5761126d8a858151811061121d57fe5b6020026020010151600b60009054906101000a90046001600160a01b03166017878154811061124857fe5b90600052602060002001848154811061125d57fe5b9060005260206000200154611702565b82828151811061127957fe5b6020908102919091010152600101611206565b506019805460018101825560009190915281516112d0917f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c969501906020840190613e42565b506112ed8984815181106112e057fe5b6020026020010151611495565b6001601460008b86815181106112ff57fe5b6020908102919091018101518252810191909152604001600020805460ff1916911515919091179055600b546001600160a01b0316636b20c454611341612b08565b6017868154811061134e57fe5b906000526020600020016019878154811061136557fe5b906000526020600020016040518463ffffffff1660e01b815260040161138d93929190614c0d565b600060405180830381600087803b1580156113a757600080fd5b505af11580156113bb573d6000803e3d6000fd5b505060019094019350610f8892505050565b5061140786858585856017601860196040516020016113f3989796959493929190614d14565b604051602081830303815290604052612e44565b505050505050565b80518251146114305760405162461bcd60e51b81526004016108c690615c33565b60005b825181101561097e5761146c83828151811061144b57fe5b602002602001015183838151811061145f57fe5b6020026020010151612e7e565b600101611433565b600c5481565b61097e83838360405180602001604052806000815250611f8d565b600061149f612b08565b9050806001600160a01b03166114b483611744565b6001600160a01b031614806114ce57506114ce8282611628565b6114ea5760405162461bcd60e51b81526004016108c690615901565b600082815260116020526040812061150190612b80565b11156115185761151882611513612b08565b61302c565b611521826131f4565b506000908152600d6020908152604080832080546001600160a01b0319169055600e909152812055565b6015546001600160a01b031681565b805160609081816001600160401b038111801561157657600080fd5b506040519080825280602002602001820160405280156115a0578160200160208202803683370190505b50905060005b82811015610de257600e60008683815181106115be57fe5b60200260200101518152602001908152602001600020548282815181106115e157fe5b60209081029190910101526001016115a6565b6040805180820190915260018152603160f81b602082015290565b6000610caa82612afb565b600080610de26002846132c1565b600061163c61163684611744565b83612447565b80610e5e5750816001600160a01b03166116558461089f565b6001600160a01b0316149392505050565b600a546001600160a01b0390811691161490565b6060600061168783611bed565b90506060816001600160401b03811180156116a157600080fd5b506040519080825280602002602001820160405280156116cb578160200160208202803683370190505b50905060005b82811015610de2576116e38582610e3c565b8282815181106116ef57fe5b60209081029190910101526001016116d1565b600b546000906001600160a01b0384811691161461172157600061173c565b6000848152600f602090815260408083208584529091529020545b949350505050565b6000610caa82604051806060016040528060298152602001615eee60299139600291906132df565b8251811461178c5760405162461bcd60e51b81526004016108c69061502c565b60005b8351811015611987576016546001600160a01b031663113b0ab26117b1612b08565b6040518263ffffffff1660e01b81526004016117cd9190614bbc565b60206040518083038186803b1580156117e557600080fd5b505afa1580156117f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181d919061479a565b806118a857506016546001600160a01b031663c395fcb361183c612b08565b6040518263ffffffff1660e01b81526004016118589190614bbc565b60206040518083038186803b15801561187057600080fd5b505afa158015611884573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a8919061479a565b6118c45760405162461bcd60e51b81526004016108c69061583b565b8282828181106118d057fe5b90506020028101906118e29190615d9e565b600860008785815181106118f257fe5b602002602001015181526020019081526020016000209190611915929190613dc4565b5083818151811061192257fe5b60200260200101517fa4df0960b5858898d86c7940315bc2191a4f8b07071854ab761425f2e35d944284848481811061195757fe5b90506020028101906119699190615d9e565b604051611977929190614e6a565b60405180910390a260010161178f565b50505050565b60098054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561087f5780601f106108545761010080835404028352916020019161087f565b805160609081816001600160401b0381118015611a0a57600080fd5b50604051908082528060200260200182016040528015611a3e57816020015b6060815260200190600190039081611a295790505b50905060005b82811015610de25760086000868381518110611a5c57fe5b602002602001015181526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611b065780601f10611adb57610100808354040283529160200191611b06565b820191906000526020600020905b815481529060010190602001808311611ae957829003601f168201915b5050505050828281518110611b1757fe5b6020908102919091010152600101611a44565b6016546001600160a01b031663c395fcb3611b43612b08565b6040518263ffffffff1660e01b8152600401611b5f9190614bbc565b60206040518083038186803b158015611b7757600080fd5b505afa158015611b8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611baf919061479a565b611bcb5760405162461bcd60e51b81526004016108c69061599f565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b038216611c155760405162461bcd60e51b81526004016108c6906155c5565b6001600160a01b0382166000908152600160205260409020610caa90612b80565b6016546001600160a01b031681565b600a546001600160a01b031681565b6060611c5f82612afb565b611c7857506040805160008152602081019091526107ee565b604080516001808252818301909252606091602080830190803683375050600b5482519293506001600160a01b031691839150600090611cb457fe5b6001600160a01b03909216602092830291909101909101529050919050565b6016546001600160a01b031663c395fcb3611cec612b08565b6040518263ffffffff1660e01b8152600401611d089190614bbc565b60206040518083038186803b158015611d2057600080fd5b505afa158015611d34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d58919061479a565b611d745760405162461bcd60e51b81526004016108c690615208565b601255565b60135481565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561087f5780601f106108545761010080835404028352916020019161087f565b610e148282612e7e565b6013548190811115611e0e5760405162461bcd60e51b81526004016108c690615a46565b60005b81811015611e7c576000848483818110611e2757fe5b905060200201359050611e3981611495565b600160146000878786818110611e4b57fe5b60209081029290920135835250810191909152604001600020805460ff191691151591909117905550600101611e11565b50611e85612b08565b6001600160a01b03167ff871896b17e9cb7a64941c62c188a4f5c621b86800e3d15452ece01ce56073df8484604051610afb929190614cc7565b611ec7612b08565b6001600160a01b0316826001600160a01b03161415611ef85760405162461bcd60e51b81526004016108c69061543a565b8060056000611f05612b08565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611f49612b08565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f819190614e37565b60405180910390a35050565b611f9e611f98612b08565b83612b97565b611fba5760405162461bcd60e51b81526004016108c690615b58565b611987848484846132ec565b60008151602014611fe95760405162461bcd60e51b81526004016108c690615346565b6000611ff361331f565b9050612000818888613328565b60005b85518110156120c85761204582612018612b08565b88848151811061202457fe5b602002602001015188858151811061203857fe5b6020026020010151613400565b61204d612b08565b6001600160a01b031682886001600160a01b03167fa18753b0660a8be2cdae03468c860b47c2926433ab16917f323544652803032d89858151811061208e57fe5b60200260200101518986815181106120a257fe5b60200260200101516040516120b8929190615d90565b60405180910390a4600101612003565b5060125460008281526011602052604090206120e390612b80565b11156121015760405162461bcd60e51b81526004016108c690615d3f565b5063bc197c8160e01b9695505050505050565b6000818152600860209081526040918290208054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815260609384939192918301828280156121ac5780601f10612181576101008083540402835291602001916121ac565b820191906000526020600020905b81548152906001019060200180831161218f57829003601f168201915b5050505050905060606121bd61198d565b90508051600014156121d1575090506107ee565b8151156122035780826040516020016121eb929190614b8d565b604051602081830303815290604052925050506107ee565b8061220d8561347c565b60405160200161221e929190614b8d565b60405160208183030381529060405292505050919050565b600e6020526000908152604090205481565b6000818152601160205260408120610caa90612b80565b6015546001600160a01b0316612273612b08565b6001600160a01b0316146122995760405162461bcd60e51b81526004016108c690615ba9565b60208114156122d85760006122b082840184614870565b6000818152601460205260409020805460ff1916905590506122d28482613556565b5061097e565b60606122e6828401846145b8565b805190915060005b818110156114075760006014600085848151811061230857fe5b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055506123528684838151811061234557fe5b6020026020010151613556565b6001016122ee565b6016546001600160a01b031663c395fcb3612373612b08565b6040518263ffffffff1660e01b815260040161238f9190614bbc565b60206040518083038186803b1580156123a757600080fd5b505afa1580156123bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123df919061479a565b6123fb5760405162461bcd60e51b81526004016108c690614f5e565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600d602052600090815260409020546001600160a01b031681565b600b546001600160a01b031681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600081516020146124985760405162461bcd60e51b81526004016108c690615346565b60006124a261331f565b90506124af818888613328565b6124c2816124bb612b08565b8787613400565b6124ca612b08565b6001600160a01b031681876001600160a01b03167fa18753b0660a8be2cdae03468c860b47c2926433ab16917f323544652803032d888860405161250f929190615d90565b60405180910390a4601254600082815260116020526040902061253190612b80565b111561254f5760405162461bcd60e51b81526004016108c690615d3f565b5063f23a6e6160e01b9695505050505050565b60005b815181101561198757612592612579612b08565b83838151811061258557fe5b6020026020010151612b97565b6125ae5760405162461bcd60e51b81526004016108c690615b58565b6125cc84848484815181106125bf57fe5b6020026020010151612c14565b600101612565565b825181146125f45760405162461bcd60e51b81526004016108c690615a7b565b60005b8351811015611987576016546001600160a01b031663113b0ab2612619612b08565b6040518263ffffffff1660e01b81526004016126359190614bbc565b60206040518083038186803b15801561264d57600080fd5b505afa158015612661573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612685919061479a565b8061271057506016546001600160a01b031663c395fcb36126a4612b08565b6040518263ffffffff1660e01b81526004016126c09190614bbc565b60206040518083038186803b1580156126d857600080fd5b505afa1580156126ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612710919061479a565b61272c5760405162461bcd60e51b81526004016108c690614e99565b82828281811061273857fe5b905060200201602081019061274d91906141ff565b600d600086848151811061275d57fe5b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508381815181106127a357fe5b60200260200101517ffd9d16310cb8cfe0062b3d32203e385573407ec25e51362e6a70b517f98c37338484848181106127d857fe5b90506020020160208101906127ed91906141ff565b6040516127fa9190614bbc565b60405180910390a26001016125f7565b600a54600160a81b900460ff16806128255750612825613570565b8061283a5750600a54600160a01b900460ff16155b6128565760405162461bcd60e51b81526004016108c69061560f565b600a54600160a81b900460ff1615801561288d57600a805460ff60a01b1960ff60a81b19909116600160a81b1716600160a01b1790555b601680546001600160a01b038088166001600160a01b031992831617909255600b805487841690831617905560158054868416908316179055600a805492851692909116919091178155620186a0600c5560125560146013556040517fb2e858926558f32572ed6d1dd0614a2617251a5ebe86a92e4ebf98d3cee9822a90600090a1801561292357600a805460ff60a81b191690555b5050505050565b6016546000906001600160a01b031663113b0ab2612946612b08565b6040518263ffffffff1660e01b81526004016129629190614bbc565b60206040518083038186803b15801561297a57600080fd5b505afa15801561298e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129b2919061479a565b80612a3d57506016546001600160a01b031663099db0176129d1612b08565b6040518263ffffffff1660e01b81526004016129ed9190614bbc565b60206040518083038186803b158015612a0557600080fd5b505afa158015612a19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a3d919061479a565b612a595760405162461bcd60e51b81526004016108c690615ca4565b612a64848484613581565b600c54612a729060016135c4565b600c81905560008181526014602052604090205460ff1615612aa65760405162461bcd60e51b81526004016108c6906150e7565b612ab08682613556565b6000818152600860205260409020612ac9908686613dc4565b506000818152600d6020526040902080546001600160a01b0319166001600160a01b0385161790559050949350505050565b6000610caa6002836135e9565b6000610b146135f5565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b4782611744565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610caa82613627565b6000610e5e838361362b565b6000612ba282612afb565b612bbe5760405162461bcd60e51b81526004016108c69061551c565b6000612bc983611744565b9050806001600160a01b0316846001600160a01b03161480612c045750836001600160a01b0316612bf98461089f565b6001600160a01b0316145b8061173c575061173c8185612447565b826001600160a01b0316612c2782611744565b6001600160a01b031614612c4d5760405162461bcd60e51b81526004016108c690615795565b6001600160a01b038216612c735760405162461bcd60e51b81526004016108c6906153f6565b612c7e83838361097e565b612c89600082612b12565b6001600160a01b0383166000908152600160205260409020612cab9082613670565b506001600160a01b0382166000908152600160205260409020612cce908261367c565b50612cdb60028284613688565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60608060608084806020019051810190612d3c91906146a2565b9296509094509250905060005b845181101561140757838181518110612d5e57fe5b6020026020010151600e6000878481518110612d7657fe5b6020026020010151815260200190815260200160002081905550828181518110612d9c57fe5b6020026020010151600d6000878481518110612db457fe5b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550818181518110612dfa57fe5b602002602001015160086000878481518110612e1257fe5b602002602001015181526020019081526020016000209080519060200190612e3b929190613ed6565b50600101612d49565b7f8c5261668696ce22758910d05bab8f186d6eb247ceac2af2e82c7dc17669b03681604051612e739190614e57565b60405180910390a150565b6016546001600160a01b031663113b0ab2612e97612b08565b6040518263ffffffff1660e01b8152600401612eb39190614bbc565b60206040518083038186803b158015612ecb57600080fd5b505afa158015612edf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f03919061479a565b80612f8e57506016546001600160a01b031663c395fcb3612f22612b08565b6040518263ffffffff1660e01b8152600401612f3e9190614bbc565b60206040518083038186803b158015612f5657600080fd5b505afa158015612f6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f8e919061479a565b612faa5760405162461bcd60e51b81526004016108c690615185565b60008111612fca5760405162461bcd60e51b81526004016108c6906157de565b6000828152600e6020526040902054610e14576000828152600e6020526040908190208290555182907f11bca5f024ebf5e6af6f261fba2b68f29967d11017cd0a17767db1e07419692a90613020908490615d87565b60405180910390a25050565b600b546060906130469084906001600160a01b0316610cee565b9050606081516001600160401b038111801561306157600080fd5b5060405190808252806020026020018201604052801561308b578160200160208202803683370190505b50905060005b82518110156131115760008382815181106130a857fe5b6020026020010151905060006130d487600b60009054906101000a90046001600160a01b031684611702565b9050808484815181106130e357fe5b6020908102919091010152600b546131079088906001600160a01b0316848461369e565b5050600101613091565b50600b546040516001600160a01b0390911690632eb2c2d690309086908690869061313e90602001610887565b6040516020818303038152906040526040518663ffffffff1660e01b815260040161316d959493929190614c43565b600060405180830381600087803b15801561318757600080fd5b505af115801561319b573d6000803e3d6000fd5b5050600b546040516001600160a01b039182169350908616915086907f5572be9c1bc39e4e277a34f64ccd0e84456dac3f33b0b1c458c12c402c6326a9906131e69087908790614e09565b60405180910390a450505050565b60006131ff82611744565b905061320d8160008461097e565b613218600083612b12565b600082815260086020526040902054600260001961010060018416150201909116041561325657600082815260086020526040812061325691613f43565b6001600160a01b03811660009081526001602052604090206132789083613670565b50613284600283613756565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008080806132d08686613762565b909450925050505b9250929050565b600061173c8484846137be565b6132f7848484612c14565b6133038484848461381d565b6119875760405162461bcd60e51b81526004016108c690615095565b601f1936013590565b61333183612afb565b61334d5760405162461bcd60e51b81526004016108c6906154a8565b600b546001600160a01b0316613361612b08565b6001600160a01b0316146133875760405162461bcd60e51b81526004016108c6906153bf565b6001600160a01b0381161561097e57806001600160a01b03166133a984611744565b6001600160a01b0316146133cf5760405162461bcd60e51b81526004016108c6906159fc565b806001600160a01b0316826001600160a01b03161461097e5760405162461bcd60e51b81526004016108c690615d10565b6000848152600f60209081526040808320858452909152902054613438576000848152601160205260409020613436908361367c565b505b6000848152600f6020908152604080832085845290915290205461345c90826135c4565b6000948552600f6020908152604080872094875293905291909320555050565b6060816134a157506040805180820190915260018152600360fc1b60208201526107ee565b8160005b81156134b957600101600a820491506134a5565b6060816001600160401b03811180156134d157600080fd5b506040519080825280601f01601f1916602001820160405280156134fc576020820181803683370190505b50859350905060001982015b831561354d57600a840660300160f81b8282806001900393508151811061352b57fe5b60200101906001600160f81b031916908160001a905350600a84049350613508565b50949350505050565b610e148282604051806020016040528060008152506138fc565b600061357b3061392f565b15905090565b8161359e5760405162461bcd60e51b81526004016108c6906152df565b6001600160a01b03811661097e5760405162461bcd60e51b81526004016108c690615aeb565b600082820183811015610e5e5760405162461bcd60e51b81526004016108c6906152a8565b6000610e5e8383613935565b60006018361080159061360c575061360c33611666565b15613620575060131936013560601c610887565b5033610887565b5490565b8154600090821061364e5760405162461bcd60e51b81526004016108c690614f1c565b82600001828154811061365d57fe5b9060005260206000200154905092915050565b6000610e5e838361394d565b6000610e5e8383613a1a565b600061173c84846001600160a01b038516613a64565b801515806136c557506000848152600f602090815260408083208584529091529020548111155b6136e15760405162461bcd60e51b81526004016108c690615136565b6000848152600f602090815260408083208584529091529020546137059082613afb565b6000858152600f60209081526040808320868452909152902081905561198757600082815260106020526040902061373d9085613670565b5060008481526011602052604090206129239083613670565b6000610e5e8383613b23565b8154600090819083106137875760405162461bcd60e51b81526004016108c69061565d565b600084600001848154811061379857fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816137ee5760405162461bcd60e51b81526004016108c69190614e57565b5084600001600182038154811061380157fe5b9060005260206000209060020201600101549150509392505050565b6000613831846001600160a01b031661392f565b61383d5750600161173c565b60606138c5630a85bd0160e11b613852612b08565b8887876040516024016138689493929190614bd0565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001615ebc603291396001600160a01b0388169190613bf7565b90506000818060200190518101906138dd91906147d2565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b6139068383613c06565b613913600084848461381d565b61097e5760405162461bcd60e51b81526004016108c690615095565b3b151590565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015613a09578354600019808301919081019060009087908390811061398057fe5b906000526020600020015490508087600001848154811061399d57fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806139cd57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610caa565b6000915050610caa565b5092915050565b6000613a268383613935565b613a5c57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610caa565b506000610caa565b600082815260018401602052604081205480613ac9575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055610e5e565b82856000016001830381548110613adc57fe5b9060005260206000209060020201600101819055506000915050610e5e565b600082821115613b1d5760405162461bcd60e51b81526004016108c690615471565b50900390565b60008181526001830160205260408120548015613a095783546000198083019190810190600090879083908110613b5657fe5b9060005260206000209060020201905080876000018481548110613b7657fe5b600091825260208083208454600290930201918255600193840154918401919091558354825289830190526040902090840190558654879080613bb557fe5b6000828152602080822060026000199094019384020182815560019081018390559290935588815289820190925260408220919091559450610caa9350505050565b606061173c8484600085613cca565b6001600160a01b038216613c2c5760405162461bcd60e51b81526004016108c69061569f565b613c3581612afb565b15613c525760405162461bcd60e51b81526004016108c690615271565b613c5e6000838361097e565b6001600160a01b0382166000908152600160205260409020613c80908261367c565b50613c8d60028284613688565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606082471015613cec5760405162461bcd60e51b81526004016108c6906154d6565b613cf58561392f565b613d115760405162461bcd60e51b81526004016108c690615bfc565b60006060866001600160a01b03168587604051613d2e9190614b71565b60006040518083038185875af1925050503d8060008114613d6b576040519150601f19603f3d011682016040523d82523d6000602084013e613d70565b606091505b5091509150613d80828286613d8b565b979650505050505050565b60608315613d9a575081610e5e565b825115613daa5782518084602001fd5b8160405162461bcd60e51b81526004016108c69190614e57565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613e055782800160ff19823516178555613e32565b82800160010185558215613e32579182015b82811115613e32578235825591602001919060010190613e17565b50613e3e929150613f8a565b5090565b828054828255906000526020600020908101928215613e32579160200282015b82811115613e32578251825591602001919060010190613e62565b828054828255906000526020600020908101928215613eca579160200282015b82811115613eca5782518051613eba918491602090910190613ed6565b5091602001919060010190613e9d565b50613e3e929150613f9f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613f1757805160ff1916838001178555613e32565b82800160010185558215613e325791820182811115613e32578251825591602001919060010190613e62565b50805460018160011615610100020316600290046000825580601f10613f695750613f87565b601f016020900490600052602060002090810190613f879190613f8a565b50565b5b80821115613e3e5760008155600101613f8b565b80821115613e3e576000613fb38282613f43565b50600101613f9f565b8051610caa81615e82565b60008083601f840112613fd8578182fd5b5081356001600160401b03811115613fee578182fd5b60208301915083602080830285010111156132d857600080fd5b600082601f830112614018578081fd5b815161402b61402682615e08565b615de2565b818152915060208083019084810160005b8481101561406557614053888484518a01016141b9565b8452928201929082019060010161403c565b505050505092915050565b600082601f830112614080578081fd5b813561408e61402682615e08565b8181529150602080830190848101818402860182018710156140af57600080fd5b60005b84811015614065578135845292820192908201906001016140b2565b600082601f8301126140de578081fd5b81516140ec61402682615e08565b81815291506020808301908481018184028601820187101561410d57600080fd5b60005b8481101561406557815184529282019290820190600101614110565b60008083601f84011261413d578182fd5b5081356001600160401b03811115614153578182fd5b6020830191508360208285010111156132d857600080fd5b600082601f83011261417b578081fd5b813561418961402682615e27565b91508082528360208285010111156141a057600080fd5b8060208401602084013760009082016020015292915050565b600082601f8301126141c9578081fd5b81516141d761402682615e27565b91508082528360208285010111156141ee57600080fd5b613a13816020840160208601615e56565b600060208284031215614210578081fd5b8135610e5e81615e82565b6000806040838503121561422d578081fd5b823561423881615e82565b9150602083013561424881615e82565b809150509250929050565b600080600060608486031215614267578081fd5b833561427281615e82565b9250602084013561428281615e82565b915060408401356001600160401b0381111561429c578182fd5b6142a886828701614070565b9150509250925092565b600080600080600060a086880312156142c9578283fd5b85356142d481615e82565b945060208601356142e481615e82565b935060408601356001600160401b03808211156142ff578485fd5b61430b89838a01614070565b94506060880135915080821115614320578283fd5b61432c89838a01614070565b93506080880135915080821115614341578283fd5b5061434e8882890161416b565b9150509295509295909350565b60008060006060848603121561436f578081fd5b833561437a81615e82565b9250602084013561438a81615e82565b929592945050506040919091013590565b600080600080608085870312156143b0578182fd5b84356143bb81615e82565b935060208501356143cb81615e82565b92506040850135915060608501356001600160401b038111156143ec578182fd5b6143f88782880161416b565b91505092959194509250565b600080600080600060a0868803121561441b578283fd5b853561442681615e82565b9450602086013561443681615e82565b9350604086013592506060860135915060808601356001600160401b0381111561445e578182fd5b61434e8882890161416b565b6000806040838503121561447c578182fd5b823561448781615e82565b9150602083013561424881615e97565b6000806000604084860312156144ab578081fd5b83356144b681615e82565b925060208401356001600160401b038111156144d0578182fd5b6144dc8682870161412c565b9497909650939450505050565b600080600080606085870312156144fe578182fd5b843561450981615e82565b935060208501356001600160401b03811115614523578283fd5b61452f8782880161412c565b909450925050604085013561454381615e82565b939692955090935050565b60008060408385031215614560578182fd5b823561456b81615e82565b946020939093013593505050565b6000806020838503121561458b578182fd5b82356001600160401b038111156145a0578283fd5b6145ac85828601613fc7565b90969095509350505050565b6000602082840312156145c9578081fd5b81356001600160401b038111156145de578182fd5b61173c84828501614070565b6000806000604084860312156145fe578081fd5b83356001600160401b0380821115614614578283fd5b61462087838801614070565b94506020860135915080821115614635578283fd5b506144dc86828701613fc7565b60008060408385031215614654578182fd5b82356001600160401b038082111561466a578384fd5b61467686838701614070565b9350602085013591508082111561468b578283fd5b5061469885828601614070565b9150509250929050565b600080600080608085870312156146b7578182fd5b84516001600160401b03808211156146cd578384fd5b6146d9888389016140ce565b95506020915081870151818111156146ef578485fd5b6146fb89828a016140ce565b95505060408701518181111561470f578485fd5b8701601f8101891361471f578485fd5b805161472d61402682615e08565b81815284810190838601868402850187018d1015614749578889fd5b8894505b838510156147735761475f8d82613fbc565b83526001949094019391860191860161474d565b5060608b015190975094505050508082111561478d578283fd5b506143f887828801614008565b6000602082840312156147ab578081fd5b8151610e5e81615e97565b6000602082840312156147c7578081fd5b8135610e5e81615ea5565b6000602082840312156147e3578081fd5b8151610e5e81615ea5565b60008060008060808587031215614803578182fd5b843561480e81615e82565b9350602085013561481e81615e82565b9250604085013561482e81615e82565b9150606085013561454381615e82565b60006020828403121561484f578081fd5b81516001600160401b03811115614864578182fd5b61173c848285016141b9565b600060208284031215614881578081fd5b5035919050565b6000806040838503121561489a578182fd5b82359150602083013561424881615e82565b6000806000606084860312156148c0578081fd5b83359250602084013561438a81615e82565b600080604083850312156148e4578182fd5b8235915060208301356001600160401b03811115614900578182fd5b6146988582860161416b565b600080600060408486031215614920578081fd5b8335925060208401356001600160401b038111156144d0578182fd5b6000806040838503121561494e578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156149955781516001600160a01b031687529582019590820190600101614970565b509495945050505050565b6000815480845260208085019450848183028601858552828520855b858110156149e55783830389526149d38383614b13565b988501989250600191820191016149bc565b5090979650505050505050565b6000815180845260208085019450848183028601828601855b858110156149e5578383038952614a23838351614b45565b98850198925090840190600101614a0b565b6000815480845260208085019450848183028601858552828520855b858110156149e5578383038952868254600180821660008114614a7b5760018114614a9857614ace565b60028304607f16875260ff19831689880152604087019350614ace565b60028304808852614aa887615e4a565b8c5b82811015614ac55781548a82018d0152908401908b01614aaa565b89018b01955050505b509a87019a919450509190910190600101614a51565b6000815180845260208085019450808401835b8381101561499557815187529582019590820190600101614af7565b6000815480845260208085019450838352808320835b8381101561499557815487529582019560019182019101614b29565b60008151808452614b5d816020860160208601615e56565b601f01601f19169290920160200192915050565b60008251614b83818460208701615e56565b9190910192915050565b60008351614b9f818460208801615e56565b835190830190614bb3818360208801615e56565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614c0390830184614b45565b9695505050505050565b6001600160a01b0384168152606060208201819052600090614c3190830185614b13565b8281036040840152614c038185614b13565b6001600160a01b0386811682528516602082015260a060408201819052600090614c6f90830186614ae4565b8281036060840152614c818186614ae4565b90508281036080840152614c958185614b45565b98975050505050505050565b600060208252610e5e602083018461495d565b600060208252610e5e60208301846149f2565b6020808252810182905260006001600160fb1b03831115614ce6578081fd5b60208302808560408501379190910160400190815292915050565b600060208252610e5e6020830184614ae4565b6000610100808352614d288184018c614ae4565b9050602083820381850152614d3d828c61495d565b91508382036040850152614d51828b614ae4565b91508382036060850152614d65828a61495d565b91508382036080850152614d7982896149f2565b915083820360a0850152614d8d82886149a0565b915083820360c0850152818654614da48185615d87565b91508193508281028201614db789615e4a565b865b83811015614de2578683038552614dd08383614a35565b94860194925060019182019101614db9565b505086810360e0880152614df681896149a0565b9f9e505050505050505050505050505050565b600060408252614e1c6040830185614ae4565b8281036020840152614e2e8185614ae4565b95945050505050565b901515815260200190565b6001600160e01b031991909116815260200190565b600060208252610e5e6020830184614b45565b60006020825282602083015282846040840137818301604090810191909152601f909201601f19160101919050565b6020808252605b908201527f4469676974616c61784761726d656e744e46542e62617463685365744761726d60408201527f656e7444657369676e65723a2053656e646572206d75737420626520616e206160608201527f7574686f726973656420636f6e7472616374206f722061646d696e0000000000608082015260a00190565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252603d908201527f4469676974616c61784761726d656e744e46542e73657454727573746564466f60408201527f727761726465723a2053656e646572206d7573742062652061646d696e000000606082015260800190565b6020808252604b908201527f4469676974616c61784761726d656e744e465476322e73656e644e465473546f60408201527f526f6f744e4654733a2063616e206f6e6c792062652073656e7420627920746860608201526a329039b0b6b2903ab9b2b960a91b608082015260a00190565b60208082526043908201527f4469676974616c61784761726d656e744e46542e6261746368536574546f6b6560408201527f6e5552493a204d757374206861766520657175616c206c656e6774682061727260608201526261797360e81b608082015260a00190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602f908201527f4368696c644d696e7461626c654552433732313a20544f4b454e5f455849535460408201526e29afa7a72fa927a7aa2fa1a420a4a760891b606082015260800190565b6020808252602f908201527f4552433939383a20696e73756666696369656e74206368696c642062616c616e60408201526e31b2903337b9103a3930b739b332b960891b606082015260800190565b60208082526057908201527f4469676974616c61784761726d656e744e46542e7365745072696d617279536160408201527f6c6550726963653a2053656e646572206d75737420626520616e20617574686f60608201527f726973656420636f6e7472616374206f722061646d696e000000000000000000608082015260a00190565b60208082526043908201527f4469676974616c61784761726d656e744e46542e7570646174654d617843686960408201527f6c6472656e506572546f6b656e3a2053656e646572206d75737420626520616460608201526236b4b760e91b608082015260a00190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526041908201527f4469676974616c61784761726d656e744e46542e5f6173736572744d696e746960408201527f6e67506172616d7356616c69643a20546f6b656e2055524920697320656d70746060820152607960f81b608082015260a00190565b60208082526053908201527f4552433939383a2064617461206d75737420636f6e7461696e2074686520756e60408201527f697175652075696e7432353620746f6b656e496420746f207472616e7366657260608201527220746865206368696c6420746f6b656e20746f60681b608082015260a00190565b6020808252601c908201527f496e76616c6964206368696c6420746f6b656e20636f6e747261637400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b602080825260149082015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252604f908201527f4469676974616c61784761726d656e744e46542e736574546f6b656e5552493a60408201527f2053656e646572206d75737420626520616e20617574686f726973656420636f60608201526e373a3930b1ba1037b91030b236b4b760891b608082015260a00190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252603b908201527f4469676974616c61784761726d656e744e46542e7365745072696d617279536160408201527f6c6550726963653a20496e76616c69642073616c652070726963650000000000606082015260800190565b60208082526054908201527f4469676974616c61784761726d656e744e46542e6261746368536574546f6b6560408201527f6e5552493a2053656e646572206d75737420626520616e20617574686f72697360608201527332b21031b7b73a3930b1ba1037b91030b236b4b760611b608082015260a00190565b6020808252602c908201527f4368696c642074756e6e656c3a2063616c6c6572206973206e6f74207468652060408201526b39ba30ba329039bcb731b2b960a11b606082015260800190565b60208082526038908201527f4469676974616c61784761726d656e744e46542e6275726e3a204f6e6c79206760408201527f61726d656e74206f776e6572206f7220617070726f7665640000000000000000606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252603e908201527f4469676974616c61784761726d656e744e46542e75706461746541636365737360408201527f436f6e74726f6c733a2053656e646572206d7573742062652061646d696e0000606082015260800190565b6020808252602a908201527f43616e6e6f7420616464206368696c6472656e20746f20746f6b656e7320796f6040820152693a903237b73a1037bbb760b11b606082015260800190565b6020808252818101527f4368696c644552433732313a20455843454544535f42415443485f4c494d4954604082015260600190565b6020808252604a908201527f4469676974616c61784761726d656e744e46542e62617463685365744761726d60408201527f656e7444657369676e65723a204d757374206861766520657175616c206c656e6060820152696774682061727261797360b01b608082015260a00190565b60208082526047908201527f4469676974616c61784761726d656e744e46542e5f6173736572744d696e746960408201527f6e67506172616d7356616c69643a2044657369676e6572206973207a65726f206060820152666164647265737360c81b608082015260a00190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526033908201527f4368696c6420746f6b656e3a2063616c6c6572206973206e6f742074686520636040820152721a1a5b190818da185a5b8818dbdb9d1c9858dd606a1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252604b908201527f4469676974616c61784761726d656e744e46542e62617463685365745072696d60408201527f61727953616c6550726963653a204d757374206861766520657175616c206c6560608201526a6e6774682061727261797360a81b608082015260a00190565b60208082526046908201527f4469676974616c61784761726d656e744e46542e6d696e743a2053656e64657260408201527f206d757374206861766520746865206d696e746572206f7220636f6e747261636060820152657420726f6c6560d01b608082015260a00190565b60208082526015908201527427b832b930ba37b91034b9903737ba1037bbb732b960591b604082015260600190565b60208082526028908201527f43616e6e6f7420657863656564206d6178206368696c6420746f6b656e20616c6040820152673637b1b0ba34b7b760c11b606082015260800190565b90815260200190565b918252602082015260400190565b6000808335601e19843603018112615db4578283fd5b8301803591506001600160401b03821115615dcd578283fd5b6020019150368190038213156132d857600080fd5b6040518181016001600160401b0381118282101715615e0057600080fd5b604052919050565b60006001600160401b03821115615e1d578081fd5b5060209081020190565b60006001600160401b03821115615e3c578081fd5b50601f01601f191660200190565b60009081526020902090565b60005b83811015615e71578181015183820152602001615e59565b838111156119875750506000910152565b6001600160a01b0381168114613f8757600080fd5b8015158114613f8757600080fd5b6001600160e01b031981168114613f8757600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea26469706673582212201e25d516154aa84f5297029f0f178662972723149c16e1ae63d1539b16a2faa764736f6c634300060c0033

Deployed ByteCode Sourcemap

115121:26974:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8770:150;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;50500:100;;;:::i;:::-;;;;;;;:::i;117178:48::-;;;;;;:::i;:::-;;:::i;53306:221::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;52818:422::-;;;;;;:::i;:::-;;:::i;:::-;;125126:427;;;;;;:::i;:::-;;:::i;52296:211::-;;;:::i;:::-;;;;;;;:::i;132376:576::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;117031:34::-;;;:::i;54196:305::-;;;;;;:::i;:::-;;:::i;131759:546::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;69753:128::-;;;;;;:::i;:::-;;:::i;137168:118::-;;;;;;:::i;:::-;;:::i;52058:162::-;;;;;;:::i;:::-;;:::i;138851:1668::-;;;;;;:::i;:::-;;:::i;127729:411::-;;;;;;:::i;:::-;;:::i;116296:29::-;;;:::i;54572:151::-;;;;;;:::i;:::-;;:::i;120776:737::-;;;;;;:::i;:::-;;:::i;117235:25::-;;;:::i;141713:379::-;;;;;;:::i;:::-;;:::i;118432:104::-;;;:::i;130748:106::-;;;;;;:::i;:::-;;:::i;52584:172::-;;;;;;:::i;:::-;;:::i;133297:194::-;;;;;;:::i;:::-;;:::i;72402:137::-;;;;;;:::i;:::-;;:::i;141021:338::-;;;;;;:::i;:::-;;:::i;130990:252::-;;;;;;:::i;:::-;;:::i;50256:177::-;;;;;;:::i;:::-;;:::i;125767:718::-;;;;;;:::i;:::-;;:::i;51877:97::-;;;:::i;141367:338::-;;;;;;:::i;:::-;;:::i;129815:258::-;;;;;;:::i;:::-;;:::i;49973:221::-;;;;;;:::i;:::-;;:::i;117328:45::-;;;:::i;72108:31::-;;;:::i;131354:335::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;130261:267::-;;;;;;:::i;:::-;;:::i;117143:26::-;;;:::i;50669:104::-;;;:::i;128424:137::-;;;;;;:::i;:::-;;:::i;137548:420::-;;;;;;:::i;:::-;;:::i;53599:295::-;;;;;;:::i;:::-;;:::i;54794:285::-;;;;;;:::i;:::-;;:::i;122672:1031::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;50844:794::-;;;;;;:::i;:::-;;:::i;116493:51::-;;;;;;:::i;:::-;;:::i;133038:144::-;;;;;;:::i;:::-;;:::i;136242:681::-;;;;;;:::i;:::-;;:::i;118544:284::-;;;;;;:::i;:::-;;:::i;116376:51::-;;;;;;:::i;:::-;;:::i;116214:39::-;;;:::i;53965:164::-;;;;;;:::i;:::-;;:::i;121655:875::-;;;;;;:::i;:::-;;:::i;140618:391::-;;;;;;:::i;:::-;;:::i;126697:746::-;;;;;;:::i;:::-;;:::i;117788:486::-;;;;;;:::i;:::-;;:::i;119616:919::-;;;;;;:::i;:::-;;:::i;8770:150::-;-1:-1:-1;;;;;;8879:33:0;;8855:4;8879:33;;;;;;;;;;;;;8770:150;;;;:::o;50500:100::-;50587:5;50580:12;;;;;;;;-1:-1:-1;;50580:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50554:13;;50580:12;;50587:5;;50580:12;;50587:5;50580:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50500:100;;:::o;117178:48::-;;;;;;;;;;;;;;;:::o;53306:221::-;53382:7;53410:16;53418:7;53410;:16::i;:::-;53402:73;;;;-1:-1:-1;;;53402:73:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;53495:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;53495:24:0;;53306:221::o;52818:422::-;52899:13;52915:32;52939:7;52915:23;:32::i;:::-;52899:48;;52972:5;-1:-1:-1;;;;;52966:11:0;:2;-1:-1:-1;;;;;52966:11:0;;;52958:57;;;;-1:-1:-1;;;52958:57:0;;;;;;;:::i;:::-;53052:5;-1:-1:-1;;;;;53036:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;53036:21:0;;:78;;;;53061:53;53094:5;53101:12;:10;:12::i;53061:53::-;53028:170;;;;-1:-1:-1;;;53028:170:0;;;;;;;:::i;:::-;53211:21;53220:2;53224:7;53211:8;:21::i;:::-;52818:422;;;:::o;125126:427::-;125234:14;;-1:-1:-1;;;;;125234:14:0;:35;125270:12;:10;:12::i;:::-;125234:49;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:94;;;-1:-1:-1;125287:14:0;;-1:-1:-1;;;;;125287:14:0;:27;125315:12;:10;:12::i;:::-;125287:41;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;125212:223;;;;-1:-1:-1;;;125212:223:0;;;;;;;:::i;:::-;125446:20;;;;:10;:20;;;;;:32;;125469:9;;125446:32;:::i;:::-;;125525:8;125494:51;125535:9;;125494:51;;;;;;;:::i;:::-;;;;;;;;125126:427;;;:::o;52296:211::-;52357:7;52478:21;:12;:19;:21::i;:::-;52471:28;;52296:211;:::o;132376:576::-;132463:15;132496:17;132504:8;132496:7;:17::i;:::-;132495:18;:62;;;-1:-1:-1;132543:13:0;;-1:-1:-1;;;;;132517:40:0;;;132543:13;;132517:40;;132495:62;132491:117;;;132581:15;;;132594:1;132581:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;132574:22;;;;132491:117;132618:21;132642:30;;;:20;:30;;;;;:39;;:37;:39::i;:::-;132618:63;;132692:30;132738:13;-1:-1:-1;;;;;132725:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;132692:60;;132770:9;132765:146;132789:13;132785:1;:17;132765:146;;;132844:13;;;132862:30;;;:20;:30;;;;;-1:-1:-1;;;;;132844:13:0;;;;:17;;132862:36;;132896:1;132862:33;:36::i;:::-;132844:55;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;132844:55:0;;;;;;;;;;;;:::i;:::-;132824:14;132839:1;132824:17;;;;;;;;;;;;;;;;;:75;132804:3;;132765:146;;;-1:-1:-1;132930:14:0;-1:-1:-1;;132376:576:0;;;;;:::o;117031:34::-;;;;:::o;54196:305::-;54357:41;54376:12;:10;:12::i;:::-;54390:7;54357:18;:41::i;:::-;54349:103;;;;-1:-1:-1;;;54349:103:0;;;;;;;:::i;:::-;54465:28;54475:4;54481:2;54485:7;54465:9;:28::i;131759:546::-;131854:16;131888:17;131896:8;131888:7;:17::i;:::-;131887:18;:62;;;-1:-1:-1;131935:13:0;;-1:-1:-1;;;;;131909:40:0;;;131935:13;;131909:40;;131887:62;131883:118;;;131973:16;;;131987:1;131973:16;;;;;;;;;;;;131883:118;132060:30;;;;:20;:30;;;;;132013;;132060:39;;:37;:39::i;:::-;-1:-1:-1;;;;;132046:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;132046:54:0;;132013:87;;132118:9;132113:152;132137:30;;;;:20;:30;;;;;:39;;:37;:39::i;:::-;132133:1;:43;132113:152;;;132217:30;;;;:20;:30;;;;;:36;;132251:1;132217:33;:36::i;:::-;132198:13;132212:1;132198:16;;;;;;;;;;;;;;;;;:55;132178:3;;132113:152;;;-1:-1:-1;132284:13:0;131759:546;-1:-1:-1;;;131759:546:0:o;69753:128::-;69305:42;69291:10;:56;69269:150;;;;-1:-1:-1;;;69269:150:0;;;;;;;:::i;:::-;69841:32:::1;69865:7;69841:23;:32::i;:::-;69753:128:::0;;:::o;137168:118::-;137223:13;137228:7;137223:4;:13::i;:::-;137247:24;;;;:15;:24;;;;;:31;;-1:-1:-1;;137247:31:0;137274:4;137247:31;;;137168:118::o;52058:162::-;-1:-1:-1;;;;;52182:20:0;;52155:7;52182:20;;;:13;:20;;;;;:30;;52206:5;52182:23;:30::i;:::-;52175:37;52058:162;-1:-1:-1;;;52058:162:0:o;138851:1668::-;138940:16;;138969:24;138940:16;-1:-1:-1;;;;;138996:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;138996:21:0;;138969:48;;139028:28;139073:6;-1:-1:-1;;;;;139059:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;139059:21:0;;139028:52;;139091:27;139135:6;-1:-1:-1;;;;;139121:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;139121:21:0;;139091:51;;139153:26;139195:6;-1:-1:-1;;;;;139182:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;139153:49;;139220:9;139215:1140;139234:6;139231:1;:9;139215:1140;;;139274:21;139282:9;139292:1;139282:12;;;;;;;;;;;;;;139274:7;:21::i;:::-;139261:7;139269:1;139261:10;;;;;;;;;;;;;:34;-1:-1:-1;;;;;139261:34:0;;;-1:-1:-1;;;;;139261:34:0;;;;;139332:12;:10;:12::i;:::-;-1:-1:-1;;;;;139318:26:0;:7;139326:1;139318:10;;;;;;;;;;;;;;-1:-1:-1;;;;;139318:26:0;;139310:114;;;;-1:-1:-1;;;139310:114:0;;;;;;;:::i;:::-;139456:16;:30;139473:9;139483:1;139473:12;;;;;;;;;;;;;;139456:30;;;;;;;;;;;;139439:11;139451:1;139439:14;;;;;;;;;;;;;:47;;;;;139517:16;:30;139534:9;139544:1;139534:12;;;;;;;;;;;;;;139517:30;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139517:30:0;139501:10;139512:1;139501:13;;;;;;;;;;;;;:46;-1:-1:-1;;;;;139501:46:0;;;-1:-1:-1;;;;;139501:46:0;;;;;139578:22;139587:9;139597:1;139587:12;;;;;;;;;;;;;;139578:8;:22::i;:::-;139562:10;139573:1;139562:13;;;;;;;;;;;;;:38;;;;139617:15;139638:51;139652:9;139662:1;139652:12;;;;;;;;;;;;;;;;;;139674:13;;-1:-1:-1;;;;;139674:13:0;139638;:51::i;:::-;139617:73;;;;;;;-1:-1:-1;139617:73:0;;;;;;;;;;;;;;;;;;;;:::i;:::-;;139705:16;139727:52;139742:9;139752:1;139742:12;;;;;;;;;;;;;;;;;;139764:13;;-1:-1:-1;;;;;139764:13:0;139727:14;:52::i;:::-;139705:75;;;;;;;-1:-1:-1;139705:75:0;;;;;;;;;;;;;;;;;;;;:::i;:::-;;139795:11;139809:15;139825:1;139809:18;;;;;;;;;;;;;;;;;:25;;-1:-1:-1;139849:31:0;139809:25;-1:-1:-1;;;;;139883:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;139883:18:0;;139849:52;;139921:9;139916:156;139935:3;139932:1;:6;139916:156;;;139983:73;139996:9;140006:1;139996:12;;;;;;;;;;;;;;140018:13;;;;;;;;;-1:-1:-1;;;;;140018:13:0;140034:15;140050:1;140034:18;;;;;;;;;;;;;;;140053:1;140034:21;;;;;;;;;;;;;;;;139983:12;:73::i;:::-;139963:14;139978:1;139963:17;;;;;;;;;;;;;;;;;:93;139940:3;;139916:156;;;-1:-1:-1;140086:20:0;:41;;;;;;;-1:-1:-1;140086:41:0;;;;;;;;;;;;;;;;:::i;:::-;;140175:18;140180:9;140190:1;140180:12;;;;;;;;;;;;;;140175:4;:18::i;:::-;140240:4;140208:15;:29;140224:9;140234:1;140224:12;;;;;;;;;;;;;;;;;;;140208:29;;;;;;;;;;-1:-1:-1;140208:29:0;:36;;-1:-1:-1;;140208:36:0;;;;;;;;;;140261:13;;-1:-1:-1;;;;;140261:13:0;:23;140285:12;:10;:12::i;:::-;140299:15;140315:1;140299:18;;;;;;;;;;;;;;;140319:20;140340:1;140319:23;;;;;;;;;;;;;;;140261:82;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;139242:3:0;;;;;-1:-1:-1;139215:1140:0;;-1:-1:-1;;;139215:1140:0;;;140367:144;140397:9;140408:7;140417:11;140430:10;140442;140454:15;140471:16;140489:20;140386:124;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;140367:18;:144::i;:::-;138851:1668;;;;;;:::o;127729:411::-;127883:11;:18;127863:9;:16;:38;127841:163;;;;-1:-1:-1;;;127841:163:0;;;;;;;:::i;:::-;128020:9;128015:118;128034:9;:16;128031:1;:19;128015:118;;;128071:50;128092:9;128102:1;128092:12;;;;;;;;;;;;;;128106:11;128118:1;128106:14;;;;;;;;;;;;;;128071:20;:50::i;:::-;128052:3;;128015:118;;116296:29;;;;:::o;54572:151::-;54676:39;54693:4;54699:2;54703:7;54676:39;;;;;;;;;;;;:16;:39::i;120776:737::-;120826:16;120845:12;:10;:12::i;:::-;120826:31;;120911:8;-1:-1:-1;;;;;120890:29:0;:17;120898:8;120890:7;:17::i;:::-;-1:-1:-1;;;;;120890:29:0;;:63;;;;120923:30;120934:8;120944;120923:10;:30::i;:::-;120868:169;;;;-1:-1:-1;;;120868:169:0;;;;;;;:::i;:::-;121176:1;121134:30;;;:20;:30;;;;;:39;;:37;:39::i;:::-;:43;121130:185;;;121242:61;121280:8;121290:12;:10;:12::i;:::-;121242:37;:61::i;:::-;121362:15;121368:8;121362:5;:15::i;:::-;-1:-1:-1;121435:26:0;;;;:16;:26;;;;;;;;121428:33;;-1:-1:-1;;;;;;121428:33:0;;;121479:16;:26;;;;;121472:33;120776:737::o;117235:25::-;;;-1:-1:-1;;;;;117235:25:0;;:::o;141713:379::-;141840:15;;141794:16;;;141840:15;-1:-1:-1;;;;;141906:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;141906:21:0;;141868:59;;141943:9;141938:111;141957:6;141954:1;:9;141938:111;;;142008:16;:29;142025:8;142034:1;142025:11;;;;;;;;;;;;;;142008:29;;;;;;;;;;;;141984:18;142003:1;141984:21;;;;;;;;;;;;;;;;;:53;141965:3;;141938:111;;118432:104;118518:10;;;;;;;;;;;;-1:-1:-1;;;118518:10:0;;;;118432:104;:::o;130748:106::-;130805:4;130829:17;130837:8;130829:7;:17::i;52584:172::-;52659:7;;52701:22;:12;52717:5;52701:15;:22::i;133297:194::-;133375:4;133399:46;133416:17;133424:8;133416:7;:17::i;:::-;133435:9;133399:16;:46::i;:::-;:84;;;;133474:9;-1:-1:-1;;;;;133449:34:0;:21;133461:8;133449:11;:21::i;:::-;-1:-1:-1;;;;;133449:34:0;;;133297:194;-1:-1:-1;;;133297:194:0:o;72402:137::-;72515:16;;-1:-1:-1;;;;;72515:16:0;;;72502:29;;;;72402:137::o;141021:338::-;141087:16;141116:14;141133:16;141143:5;141133:9;:16::i;:::-;141116:33;;141160:26;141203:6;-1:-1:-1;;;;;141189:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;141189:21:0;;141160:50;;141228:9;141223:102;141242:6;141239:1;:9;141223:102;;;141284:29;141304:5;141311:1;141284:19;:29::i;:::-;141269:9;141279:1;141269:12;;;;;;;;;;;;;;;;;:44;141250:3;;141223:102;;130990:252;131180:13;;131127:7;;-1:-1:-1;;;;;131154:40:0;;;131180:13;;131154:40;:80;;131233:1;131154:80;;;131197:18;;;;:8;:18;;;;;;;;:33;;;;;;;;;131154:80;131147:87;130990:252;-1:-1:-1;;;;130990:252:0:o;50256:177::-;50328:7;50355:70;50372:7;50355:70;;;;;;;;;;;;;;;;;:12;;:70;:16;:70::i;125767:718::-;125893:16;;:37;;125871:154;;;;-1:-1:-1;;;125871:154:0;;;;;;;:::i;:::-;126041:9;126036:442;126055:9;:16;126052:1;:19;126036:442;;;126118:14;;-1:-1:-1;;;;;126118:14:0;:35;126154:12;:10;:12::i;:::-;126118:49;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:94;;;-1:-1:-1;126171:14:0;;-1:-1:-1;;;;;126171:14:0;:27;126199:12;:10;:12::i;:::-;126171:41;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;126092:240;;;;-1:-1:-1;;;126092:240:0;;;;;;;:::i;:::-;126374:10;;126385:1;126374:13;;;;;;;;;;;;;;;;;;:::i;:::-;126347:10;:24;126358:9;126368:1;126358:12;;;;;;;;;;;;;;126347:24;;;;;;;;;;;:40;;;;;;;:::i;:::-;;126438:9;126448:1;126438:12;;;;;;;;;;;;;;126407:59;126452:10;;126463:1;126452:13;;;;;;;;;;;;;;;;;;:::i;:::-;126407:59;;;;;;;:::i;:::-;;;;;;;;126073:3;;126036:442;;;;125767:718;;;:::o;51877:97::-;51958:8;51951:15;;;;;;;;-1:-1:-1;;51951:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51925:13;;51951:15;;51958:8;;51951:15;;51958:8;51951:15;;;;;;;;;;;;;;;;;;;;;;;;141367:338;141485:15;;141440;;;141485;-1:-1:-1;;;;;141542:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141513:49;;141578:9;141573:97;141592:6;141589:1;:9;141573:97;;;141635:10;:23;141646:8;141655:1;141646:11;;;;;;;;;;;;;;141635:23;;;;;;;;;;;141619:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:10;141630:1;141619:13;;;;;;;;;;;;;;;;;:39;141600:3;;141573:97;;129815:258;129914:14;;-1:-1:-1;;;;;129914:14:0;:27;129942:12;:10;:12::i;:::-;129914:41;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;129906:116;;;;-1:-1:-1;;;129906:116:0;;;;;;;:::i;:::-;130033:14;:32;;-1:-1:-1;;;;;;130033:32:0;-1:-1:-1;;;;;130033:32:0;;;;;;;;;;129815:258::o;49973:221::-;50045:7;-1:-1:-1;;;;;50073:19:0;;50065:74;;;;-1:-1:-1;;;50065:74:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;50157:20:0;;;;;;:13;:20;;;;;:29;;:27;:29::i;117328:45::-;;;-1:-1:-1;;;;;117328:45:0;;:::o;72108:31::-;;;-1:-1:-1;;;;;72108:31:0;;:::o;131354:335::-;131431:16;131465:17;131473:8;131465:7;:17::i;:::-;131460:74;;-1:-1:-1;131506:16:0;;;131520:1;131506:16;;;;;;;;131499:23;;131460:74;131580:16;;;131594:1;131580:16;;;;;;;;;131546:31;;131580:16;;;;;;;;;-1:-1:-1;;131635:13:0;;131607:17;;;;-1:-1:-1;;;;;;131635:13:0;;131607:17;;-1:-1:-1;131635:13:0;;131607:17;;;;-1:-1:-1;;;;;131607:42:0;;;:17;;;;;;;;;;;:42;131667:14;-1:-1:-1;131354:335:0;;;:::o;130261:267::-;130354:14;;-1:-1:-1;;;;;130354:14:0;:27;130382:12;:10;:12::i;:::-;130354:41;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;130346:121;;;;-1:-1:-1;;;130346:121:0;;;;;;;:::i;:::-;130478:19;:42;130261:267::o;117143:26::-;;;;:::o;50669:104::-;50758:7;50751:14;;;;;;;;-1:-1:-1;;50751:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50725:13;;50751:14;;50758:7;;50751:14;;50758:7;50751:14;;;;;;;;;;;;;;;;;;;;;;;;128424:137;128511:42;128532:8;128542:10;128511:20;:42::i;137548:420::-;137681:11;;137637:8;;137671:21;;;137663:66;;;;-1:-1:-1;;;137663:66:0;;;;;;;:::i;:::-;137745:9;137740:167;137760:6;137756:1;:10;137740:167;;;137788:15;137806:8;;137815:1;137806:11;;;;;;;;;;;;;137788:29;;137832:13;137837:7;137832:4;:13::i;:::-;137891:4;137860:15;:28;137876:8;;137885:1;137876:11;;;;;;;;;;;;;;;;137860:28;;-1:-1:-1;137860:28:0;;;;;;;;-1:-1:-1;137860:28:0;:35;;-1:-1:-1;;137860:35:0;;;;;;;;;;-1:-1:-1;;137768:3:0;137740:167;;;;137937:12;:10;:12::i;:::-;-1:-1:-1;;;;;137922:38:0;;137951:8;;137922:38;;;;;;;:::i;53599:295::-;53714:12;:10;:12::i;:::-;-1:-1:-1;;;;;53702:24:0;:8;-1:-1:-1;;;;;53702:24:0;;;53694:62;;;;-1:-1:-1;;;53694:62:0;;;;;;;:::i;:::-;53814:8;53769:18;:32;53788:12;:10;:12::i;:::-;-1:-1:-1;;;;;53769:32:0;;;;;;;;;;;;;;;;;-1:-1:-1;53769:32:0;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;53769:53:0;;;;;;;;;;;53853:12;:10;:12::i;:::-;-1:-1:-1;;;;;53838:48:0;;53877:8;53838:48;;;;;;:::i;:::-;;;;;;;;53599:295;;:::o;54794:285::-;54926:41;54945:12;:10;:12::i;:::-;54959:7;54926:18;:41::i;:::-;54918:103;;;;-1:-1:-1;;;54918:103:0;;;;;;;:::i;:::-;55032:39;55046:4;55052:2;55056:7;55065:5;55032:13;:39::i;122672:1031::-;122862:6;122889:5;:12;122905:2;122889:18;122881:114;;;;-1:-1:-1;;;122881:114:0;;;;;;;:::i;:::-;123008:24;123035:25;:23;:25::i;:::-;123008:52;;123071:59;123095:16;123113:9;123124:5;123071:23;:59::i;:::-;123191:9;123186:228;123210:4;:11;123206:1;:15;123186:228;;;123243:66;123257:16;123275:12;:10;:12::i;:::-;123289:4;123294:1;123289:7;;;;;;;;;;;;;;123298;123306:1;123298:10;;;;;;;;;;;;;;123243:13;:66::i;:::-;123368:12;:10;:12::i;:::-;-1:-1:-1;;;;;123329:73:0;123350:16;123343:5;-1:-1:-1;;;;;123329:73:0;;123382:4;123387:1;123382:7;;;;;;;;;;;;;;123391;123399:1;123391:10;;;;;;;;;;;;;;123329:73;;;;;;;:::i;:::-;;;;;;;;123223:3;;123186:228;;;-1:-1:-1;123552:19:0;;123501:38;;;;:20;:38;;;;;:47;;:45;:47::i;:::-;:70;;123479:160;;;;-1:-1:-1;;;123479:160:0;;;;;;;:::i;:::-;-1:-1:-1;;;;123659:36:0;122672:1031;-1:-1:-1;;;;;;122672:1031:0:o;50844:794::-;51060:19;;;;:10;:19;;;;;;;;;51034:45;;;;;;;;;;;-1:-1:-1;;51034:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;50917:13;;;;51034:45;;51060:19;51034:45;;51060:19;51034:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51090:18;51111:9;:7;:9::i;:::-;51090:30;;51202:4;51196:18;51218:1;51196:23;51192:72;;;-1:-1:-1;51243:9:0;-1:-1:-1;51236:16:0;;51192:72;51368:23;;:27;51364:108;;51443:4;51449:9;51426:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;51412:48;;;;;;51364:108;51604:4;51610:18;:7;:16;:18::i;:::-;51587:42;;;;;;;;;:::i;:::-;;;;;;;;;;;;;51573:57;;;;50844:794;;;:::o;116493:51::-;;;;;;;;;;;;;:::o;133038:144::-;133108:7;133135:30;;;:20;:30;;;;;:39;;:37;:39::i;136242:681::-;117457:10;;-1:-1:-1;;;;;117457:10:0;117441:12;:10;:12::i;:::-;-1:-1:-1;;;;;117441:26:0;;117419:127;;;;-1:-1:-1;;;117419:127:0;;;;;;;:::i;:::-;136404:2:::1;136382:24:::0;::::1;136378:538;;;136423:15;136441:34;::::0;;::::1;136452:11:::0;136441:34:::1;:::i;:::-;136517:5;136490:24:::0;;;:15:::1;:24;::::0;;;;:32;;-1:-1:-1;;136490:32:0::1;::::0;;136423:52;-1:-1:-1;136537:24:0::1;136547:4:::0;136423:52;136537:9:::1;:24::i;:::-;136378:538;;;;136626:25;136654:36;::::0;;::::1;136665:11:::0;136654:36:::1;:::i;:::-;136722:15:::0;;136626:64;;-1:-1:-1;136705:14:0::1;136752:153;136772:6;136768:1;:10;136752:153;;;136837:5;136806:15;:28;136822:8;136831:1;136822:11;;;;;;;;;;;;;;136806:28;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;136861:28;136871:4;136877:8;136886:1;136877:11;;;;;;;;;;;;;;136861:9;:28::i;:::-;136780:3;;136752:153;;118544:284:::0;118643:14;;-1:-1:-1;;;;;118643:14:0;:27;118671:12;:10;:12::i;:::-;118643:41;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;118621:152;;;;-1:-1:-1;;;118621:152:0;;;;;;;:::i;:::-;118784:16;:36;;-1:-1:-1;;;;;;118784:36:0;-1:-1:-1;;;;;118784:36:0;;;;;;;;;;118544:284::o;116376:51::-;;;;;;;;;;;;-1:-1:-1;;;;;116376:51:0;;:::o;116214:39::-;;;-1:-1:-1;;;;;116214:39:0;;:::o;53965:164::-;-1:-1:-1;;;;;54086:25:0;;;54062:4;54086:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;53965:164::o;121655:875::-;121821:6;121848:5;:12;121864:2;121848:18;121840:114;;;;-1:-1:-1;;;121840:114:0;;;;;;;:::i;:::-;121967:24;121994:25;:23;:25::i;:::-;121967:52;;122030:59;122054:16;122072:9;122083:5;122030:23;:59::i;:::-;122102;122116:16;122134:12;:10;:12::i;:::-;122148:3;122153:7;122102:13;:59::i;:::-;122218:12;:10;:12::i;:::-;-1:-1:-1;;;;;122179:66:0;122200:16;122193:5;-1:-1:-1;;;;;122179:66:0;;122232:3;122237:7;122179:66;;;;;;;:::i;:::-;;;;;;;;122384:19;;122333:38;;;;:20;:38;;;;;:47;;:45;:47::i;:::-;:70;;122311:160;;;;-1:-1:-1;;;122311:160:0;;;;;;;:::i;:::-;-1:-1:-1;;;;122491:31:0;121655:875;-1:-1:-1;;;;;;121655:875:0:o;140618:391::-;140724:9;140719:283;140738:9;:16;140735:1;:19;140719:283;;;140840:46;140859:12;:10;:12::i;:::-;140873:9;140883:1;140873:12;;;;;;;;;;;;;;140840:18;:46::i;:::-;140832:108;;;;-1:-1:-1;;;140832:108:0;;;;;;;:::i;:::-;140955:35;140965:5;140972:3;140977:9;140987:1;140977:12;;;;;;;;;;;;;;140955:9;:35::i;:::-;140756:3;;140719:283;;126697:746;126831:16;;:37;;126809:161;;;;-1:-1:-1;;;126809:161:0;;;;;;;:::i;:::-;126986:9;126981:455;127000:9;:16;126997:1;:19;126981:455;;;127063:14;;-1:-1:-1;;;;;127063:14:0;:35;127099:12;:10;:12::i;:::-;127063:49;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:94;;;-1:-1:-1;127116:14:0;;-1:-1:-1;;;;;127116:14:0;:27;127144:12;:10;:12::i;:::-;127116:41;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;127037:247;;;;-1:-1:-1;;;127037:247:0;;;;;;;:::i;:::-;127332:10;;127343:1;127332:13;;;;;;;;;;;;;;;;;;;;:::i;:::-;127299:16;:30;127316:9;127326:1;127316:12;;;;;;;;;;;;;;127299:30;;;;;;;;;;;;:46;;;;;-1:-1:-1;;;;;127299:46:0;;;;;-1:-1:-1;;;;;127299:46:0;;;;;;127396:9;127406:1;127396:12;;;;;;;;;;;;;;127365:59;127410:10;;127421:1;127410:13;;;;;;;;;;;;;;;;;;;;:::i;:::-;127365:59;;;;;;:::i;:::-;;;;;;;;127018:3;;126981:455;;117788:486;67667:13;;-1:-1:-1;;;67667:13:0;;;;;:33;;;67684:16;:14;:16::i;:::-;67667:50;;;-1:-1:-1;67705:12:0;;-1:-1:-1;;;67705:12:0;;;;67704:13;67667:50;67659:109;;;;-1:-1:-1;;;67659:109:0;;;;;;;:::i;:::-;67804:13;;-1:-1:-1;;;67804:13:0;;;;67803:14;67828:101;;;;67863:13;:20;;-1:-1:-1;;;;;;;;67863:20:0;;;-1:-1:-1;;;67863:20:0;67898:19;-1:-1:-1;;;67898:19:0;;;67828:101;117962:14:::1;:32:::0;;-1:-1:-1;;;;;117962:32:0;;::::1;-1:-1:-1::0;;;;;;117962:32:0;;::::1;;::::0;;;118005:13:::1;:30:::0;;;;::::1;::::0;;::::1;;::::0;;118046:10:::1;:24:::0;;;;::::1;::::0;;::::1;;::::0;;118081:16:::1;:36:::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;118145:6:::1;-1:-1:-1::0;118128:23:0;118162:19:::1;:24:::0;118211:2:::1;118197:11;:16:::0;118229:37:::1;::::0;::::1;::::0;117962:14:::1;::::0;118229:37:::1;67959:14:::0;67955:68;;;67990:13;:21;;-1:-1:-1;;;;67990:21:0;;;67955:68;117788:486;;;;;:::o;119616:919::-;119758:14;;119716:7;;-1:-1:-1;;;;;119758:14:0;:35;119794:12;:10;:12::i;:::-;119758:49;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:95;;;-1:-1:-1;119811:14:0;;-1:-1:-1;;;;;119811:14:0;:28;119840:12;:10;:12::i;:::-;119811:42;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;119736:215;;;;-1:-1:-1;;;119736:215:0;;;;;;;:::i;:::-;119987:47;120013:9;;120024;119987:25;:47::i;:::-;120064:14;;:21;;120083:1;120064:18;:21::i;:::-;120047:14;:38;;;120096:15;120207:24;;;:15;:24;;;;;;;;120206:25;120198:85;;;;-1:-1:-1;;;120198:85:0;;;;;;;:::i;:::-;120337:32;120347:12;120361:7;120337:9;:32::i;:::-;120380:19;;;;:10;:19;;;;;:31;;120402:9;;120380:31;:::i;:::-;-1:-1:-1;120463:25:0;;;;:16;:25;;;;;:37;;-1:-1:-1;;;;;;120463:37:0;-1:-1:-1;;;;;120463:37:0;;;;;:25;-1:-1:-1;119616:919:0;;;;;;:::o;56546:127::-;56611:4;56635:30;:12;56657:7;56635:21;:30::i;118952:159::-;119026:22;119073:30;:28;:30::i;62620:201::-;62695:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;62695:29:0;-1:-1:-1;;;;;62695:29:0;;;;;;;;:24;;62749:32;62695:24;62749:23;:32::i;:::-;-1:-1:-1;;;;;62740:55:0;;;;;;;;;;;62620:201;;:::o;35963:123::-;36032:7;36059:19;36067:3;36059:7;:19::i;27851:137::-;27922:7;27957:22;27961:3;27973:5;27957:3;:22::i;56840:373::-;56933:4;56958:16;56966:7;56958;:16::i;:::-;56950:73;;;;-1:-1:-1;;;56950:73:0;;;;;;;:::i;:::-;57034:13;57050:32;57074:7;57050:23;:32::i;:::-;57034:48;;57112:5;-1:-1:-1;;;;;57101:16:0;:7;-1:-1:-1;;;;;57101:16:0;;:51;;;;57145:7;-1:-1:-1;;;;;57121:31:0;:20;57133:7;57121:11;:20::i;:::-;-1:-1:-1;;;;;57121:31:0;;57101:51;:103;;;;57156:48;57189:5;57196:7;57156:32;:48::i;60003:608::-;60137:4;-1:-1:-1;;;;;60101:40:0;:32;60125:7;60101:23;:32::i;:::-;-1:-1:-1;;;;;60101:40:0;;60093:94;;;;-1:-1:-1;;;60093:94:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;60224:16:0;;60216:65;;;;-1:-1:-1;;;60216:65:0;;;;;;;:::i;:::-;60294:39;60315:4;60321:2;60325:7;60294:20;:39::i;:::-;60398:29;60415:1;60419:7;60398:8;:29::i;:::-;-1:-1:-1;;;;;60440:19:0;;;;;;:13;:19;;;;;:35;;60467:7;60440:26;:35::i;:::-;-1:-1:-1;;;;;;60486:17:0;;;;;;:13;:17;;;;;:30;;60508:7;60486:21;:30::i;:::-;-1:-1:-1;60529:29:0;:12;60546:7;60555:2;60529:16;:29::i;:::-;;60595:7;60591:2;-1:-1:-1;;;;;60576:27:0;60585:4;-1:-1:-1;;;;;60576:27:0;;;;;;;;;;;60003:608;;;:::o;137976:645::-;138060:26;138097:35;138143:34;138188:26;138303:7;138292:64;;;;;;;;;;;;:::i;:::-;138227:129;;-1:-1:-1;138227:129:0;;-1:-1:-1;138227:129:0;-1:-1:-1;138227:129:0;-1:-1:-1;138374:9:0;138369:245;138388:9;:16;138385:1;:19;138369:245;;;138458:18;138477:1;138458:21;;;;;;;;;;;;;;138425:16;:30;138442:9;138452:1;138442:12;;;;;;;;;;;;;;138425:30;;;;;;;;;;;:54;;;;138527:17;138545:1;138527:20;;;;;;;;;;;;;;138494:16;:30;138511:9;138521:1;138511:12;;;;;;;;;;;;;;138494:30;;;;;;;;;;;;:53;;;;;-1:-1:-1;;;;;138494:53:0;;;;;-1:-1:-1;;;;;138494:53:0;;;;;;138589:10;138600:1;138589:13;;;;;;;;;;;;;;138562:10;:24;138573:9;138583:1;138573:12;;;;;;;;;;;;;;138562:24;;;;;;;;;;;:40;;;;;;;;;;;;:::i;:::-;-1:-1:-1;138406:3:0;;138369:245;;70265:103;70340:20;70352:7;70340:20;;;;;;:::i;:::-;;;;;;;;70265:103;:::o;128845:770::-;128955:14;;-1:-1:-1;;;;;128955:14:0;:35;128991:12;:10;:12::i;:::-;128955:49;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:94;;;-1:-1:-1;129008:14:0;;-1:-1:-1;;;;;129008:14:0;:27;129036:12;:10;:12::i;:::-;129008:41;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;128933:231;;;;-1:-1:-1;;;128933:231:0;;;;;;;:::i;:::-;129332:1;129319:10;:14;129311:86;;;;-1:-1:-1;;;129311:86:0;;;;;;;:::i;:::-;129443:26;;;;:16;:26;;;;;;129439:169;;129491:26;;;;:16;:26;;;;;;;:39;;;129550:46;129508:8;;129550:46;;;;129520:10;;129550:46;:::i;:::-;;;;;;;;128845:770;;:::o;133594:847::-;133766:13;;133696:31;;133730:51;;133744:12;;-1:-1:-1;;;;;133766:13:0;133730;:51::i;:::-;133696:85;;133792:25;133834:14;:21;-1:-1:-1;;;;;133820:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;133820:36:0;;133792:64;;133874:9;133869:344;133893:14;:21;133889:1;:25;133869:344;;;133936:21;133960:14;133975:1;133960:17;;;;;;;;;;;;;;133936:41;;133992:14;134009:65;134022:12;134044:13;;;;;;;;;-1:-1:-1;;;;;134044:13:0;134060;134009:12;:65::i;:::-;133992:82;;134105:6;134091:8;134100:1;134091:11;;;;;;;;;;;;;;;;;:20;134163:13;;134128:73;;134141:12;;-1:-1:-1;;;;;134163:13:0;134179;134194:6;134128:12;:73::i;:::-;-1:-1:-1;;133916:3:0;;133869:344;;;-1:-1:-1;134225:13:0;;134307:20;;-1:-1:-1;;;;;134225:13:0;;;;:35;;134269:4;;134276:3;;134281:14;;134297:8;;134307:20;;;;;:::i;:::-;;;;;;;;;;;;;134225:103;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;134392:13:0;;134346:87;;-1:-1:-1;;;;;134392:13:0;;;;-1:-1:-1;134346:87:0;;;;-1:-1:-1;134365:12:0;;134346:87;;;;134408:14;;134424:8;;134346:87;:::i;:::-;;;;;;;;133594:847;;;;:::o;59112:554::-;59172:13;59188:32;59212:7;59188:23;:32::i;:::-;59172:48;;59251;59272:5;59287:1;59291:7;59251:20;:48::i;:::-;59340:29;59357:1;59361:7;59340:8;:29::i;:::-;59428:19;;;;:10;:19;;;;;59422:33;;-1:-1:-1;;59422:33:0;;;;;;;;;;;:38;59418:97;;59484:19;;;;:10;:19;;;;;59477:26;;;:::i;:::-;-1:-1:-1;;;;;59527:20:0;;;;;;:13;:20;;;;;:36;;59555:7;59527:27;:36::i;:::-;-1:-1:-1;59576:28:0;:12;59596:7;59576:19;:28::i;:::-;-1:-1:-1;59622:36:0;;59650:7;;59646:1;;-1:-1:-1;;;;;59622:36:0;;;;;59646:1;;59622:36;59112:554;;:::o;36425:236::-;36505:7;;;;36565:22;36569:3;36581:5;36565:3;:22::i;:::-;36534:53;;-1:-1:-1;36534:53:0;-1:-1:-1;;;36425:236:0;;;;;;:::o;37711:213::-;37818:7;37869:44;37874:3;37894;37900:12;37869:4;:44::i;55961:272::-;56075:28;56085:4;56091:2;56095:7;56075:9;:28::i;:::-;56122:48;56145:4;56151:2;56155:7;56164:5;56122:22;:48::i;:::-;56114:111;;;;-1:-1:-1;;;56114:111:0;;;;;;;:::i;123711:315::-;-1:-1:-1;;123903:8:0;:20;123964;123711:315;:::o;124034:832::-;124160:25;124168:16;124160:7;:25::i;:::-;124152:58;;;;-1:-1:-1;;;124152:58:0;;;;;;;:::i;:::-;124325:13;;-1:-1:-1;;;;;124325:13:0;124301:12;:10;:12::i;:::-;-1:-1:-1;;;;;124301:38:0;;124293:79;;;;-1:-1:-1;;;124293:79:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;124483:19:0;;;124479:380;;124574:5;-1:-1:-1;;;;;124545:34:0;:25;124553:16;124545:7;:25::i;:::-;-1:-1:-1;;;;;124545:34:0;;124519:138;;;;-1:-1:-1;;;124519:138:0;;;;;;;:::i;:::-;124816:5;-1:-1:-1;;;;;124803:18:0;:9;-1:-1:-1;;;;;124803:18:0;;124795:52;;;;-1:-1:-1;;;124795:52:0;;;;;;;:::i;134449:328::-;134562:18;;;;:8;:18;;;;;;;;:33;;;;;;;;;134558:119;;134616:30;;;;:20;:30;;;;;:49;;134651:13;134616:34;:49::i;:::-;;134558:119;134723:18;;;;:8;:18;;;;;;;;:33;;;;;;;;;:46;;134761:7;134723:37;:46::i;:::-;134687:18;;;;:8;:18;;;;;;;;:33;;;;;;;;;;:82;-1:-1:-1;;134449:328:0:o;38084:746::-;38140:13;38361:10;38357:53;;-1:-1:-1;38388:10:0;;;;;;;;;;;;-1:-1:-1;;;38388:10:0;;;;;;38357:53;38435:5;38420:12;38476:78;38483:9;;38476:78;;38509:8;;38540:2;38532:10;;;;38476:78;;;38564:19;38596:6;-1:-1:-1;;;;;38586:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38586:17:0;-1:-1:-1;38658:5:0;;-1:-1:-1;38564:39:0;-1:-1:-1;;;38630:10:0;;38674:117;38681:9;;38674:117;;38750:2;38743:4;:9;38738:2;:14;38725:29;;38707:6;38714:7;;;;;;;38707:15;;;;;;;;;;;:47;-1:-1:-1;;;;;38707:47:0;;;;;;;;-1:-1:-1;38777:2:0;38769:10;;;;38674:117;;;-1:-1:-1;38815:6:0;38084:746;-1:-1:-1;;;;38084:746:0:o;57556:110::-;57632:26;57642:2;57646:7;57632:26;;;;;;;;;;;;:9;:26::i;68123:114::-;68171:4;68196:33;68223:4;68196:18;:33::i;:::-;68195:34;68188:41;;68123:114;:::o;135520:337::-;135634:27;135626:105;;;;-1:-1:-1;;;135626:105:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;135750:23:0;;135742:107;;;;-1:-1:-1;;;135742:107:0;;;;;;;:::i;41543:179::-;41601:7;41633:5;;;41657:6;;;;41649:46;;;;-1:-1:-1;;;41649:46:0;;;;;;;:::i;35724:151::-;35808:4;35832:35;35842:3;35862;35832:9;:35::i;72799:558::-;72852:19;72907:2;72888:8;:21;;;;:55;;;72913:30;72932:10;72913:18;:30::i;:::-;72884:466;;;-1:-1:-1;;;73254:14:0;73250:22;73237:36;73234:2;73230:44;73204:85;;;-1:-1:-1;73328:10:0;73321:17;;32542:110;32625:19;;32542:110::o;22889:204::-;22984:18;;22956:7;;22984:26;-1:-1:-1;22976:73:0;;;;-1:-1:-1;;;22976:73:0;;;;;;;:::i;:::-;23067:3;:11;;23079:5;23067:18;;;;;;;;;;;;;;;;23060:25;;22889:204;;;;:::o;26938:137::-;27008:4;27032:35;27040:3;27060:5;27032:7;:35::i;26631:131::-;26698:4;26722:32;26727:3;26747:5;26722:4;:32::i;35147:185::-;35236:4;35260:64;35265:3;35285;-1:-1:-1;;;;;35299:23:0;;35260:4;:64::i;134785:529::-;134901:12;;;;:60;;-1:-1:-1;134917:18:0;;;;:8;:18;;;;;;;;:33;;;;;;;;;:44;-1:-1:-1;134917:44:0;134901:60;134893:120;;;;-1:-1:-1;;;134893:120:0;;;;;;;:::i;:::-;135060:18;;;;:8;:18;;;;;;;;:33;;;;;;;;;:46;;135098:7;135060:37;:46::i;:::-;135024:18;;;;:8;:18;;;;;;;;:33;;;;;;;;:82;;;135117:190;;135176:35;;;;:20;:35;;;;;:52;;135219:8;135176:42;:52::i;:::-;-1:-1:-1;135243:30:0;;;;:20;:30;;;;;:52;;135281:13;135243:37;:52::i;35498:142::-;35575:4;35599:33;35607:3;35627;35599:7;:33::i;33007:279::-;33111:19;;33074:7;;;;33111:27;-1:-1:-1;33103:74:0;;;;-1:-1:-1;;;33103:74:0;;;;;;;:::i;:::-;33190:22;33215:3;:12;;33228:5;33215:19;;;;;;;;;;;;;;;;;;33190:44;;33253:5;:10;;;33265:5;:12;;;33245:33;;;;;33007:279;;;;;:::o;34504:319::-;34598:7;34637:17;;;:12;;;:17;;;;;;34688:12;34673:13;34665:36;;;;-1:-1:-1;;;34665:36:0;;;;;;;;:::i;:::-;;34755:3;:12;;34779:1;34768:8;:12;34755:26;;;;;;;;;;;;;;;;;;:33;;;34748:40;;;34504:319;;;;;:::o;61877:624::-;61994:4;62021:15;:2;-1:-1:-1;;;;;62021:13:0;;:15::i;:::-;62016:60;;-1:-1:-1;62060:4:0;62053:11;;62016:60;62086:23;62112:276;-1:-1:-1;;;62233:12:0;:10;:12::i;:::-;62264:4;62287:7;62313:5;62128:205;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;62128:205:0;;;;;;;-1:-1:-1;;;;;62128:205:0;;;;;;;;;;;62112:276;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;62112:15:0;;;:276;:15;:276::i;:::-;62086:302;;62399:13;62426:10;62415:32;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;62466:26:0;-1:-1:-1;;;62466:26:0;;-1:-1:-1;;;61877:624:0;;;;;;:::o;57893:250::-;57989:18;57995:2;57999:7;57989:5;:18::i;:::-;58026:54;58057:1;58061:2;58065:7;58074:5;58026:22;:54::i;:::-;58018:117;;;;-1:-1:-1;;;58018:117:0;;;;;;;:::i;11117:422::-;11484:20;11523:8;;;11117:422::o;32322:125::-;32393:4;32417:17;;;:12;;;;;:17;;;;;;:22;;;32322:125::o;20591:1544::-;20657:4;20796:19;;;:12;;;:19;;;;;;20832:15;;20828:1300;;21267:18;;-1:-1:-1;;21218:14:0;;;;21267:22;;;;21194:21;;21267:3;;:22;;21554;;;;;;;;;;;;;;21534:42;;21700:9;21671:3;:11;;21683:13;21671:26;;;;;;;;;;;;;;;;;;;:38;;;;21777:23;;;21819:1;21777:12;;;:23;;;;;;21803:17;;;21777:43;;21929:17;;21777:3;;21929:17;;;;;;;;;;;;;;;;;;;;;;22024:3;:12;;:19;22037:5;22024:19;;;;;;;;;;;22017:26;;;22067:4;22060:11;;;;;;;;20828:1300;22111:5;22104:12;;;;;20828:1300;20591:1544;;;;;:::o;20001:414::-;20064:4;20086:21;20096:3;20101:5;20086:9;:21::i;:::-;20081:327;;-1:-1:-1;20124:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;20307:18;;20285:19;;;:12;;;:19;;;;;;:40;;;;20340:11;;20081:327;-1:-1:-1;20391:5:0;20384:12;;29822:692;29898:4;30033:17;;;:12;;;:17;;;;;;30067:13;30063:444;;-1:-1:-1;;30152:38:0;;;;;;;;;;;;;;;;;;30134:57;;;;;;;;:12;:57;;;;;;;;;;;;;;;;;;;;;;;;30349:19;;30329:17;;;:12;;;:17;;;;;;;:39;30383:11;;30063:444;30463:5;30427:3;:12;;30451:1;30440:8;:12;30427:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;30490:5;30483:12;;;;;42005:158;42063:7;42096:1;42091;:6;;42083:49;;;;-1:-1:-1;;;42083:49:0;;;;;;;:::i;:::-;-1:-1:-1;42150:5:0;;;42005:158::o;30689:1549::-;30753:4;30888:17;;;:12;;;:17;;;;;;30922:13;;30918:1313;;31354:19;;-1:-1:-1;;31307:12:0;;;;31354:23;;;;31283:21;;31354:3;;:23;;31651;;;;;;;;;;;;;;;;31622:52;;31799:9;31769:3;:12;;31782:13;31769:27;;;;;;;;;;;;;;;;:39;;:27;;;;;:39;;;;;;;;;;;;;;;31889:14;;31876:28;;:12;;;:28;;;;;31907:17;;;31876:48;;32033:18;;31876:3;;32033:18;;;;;;;;;;;;;;-1:-1:-1;;32033:18:0;;;;;;;;;;;;;;;;;;;;;32129:17;;;:12;;;:17;;;;;;32122:24;;;;32033:18;-1:-1:-1;32163:11:0;;-1:-1:-1;;;;32163:11:0;14035:195;14138:12;14170:52;14192:6;14200:4;14206:1;14209:12;14170:21;:52::i;58479:404::-;-1:-1:-1;;;;;58559:16:0;;58551:61;;;;-1:-1:-1;;;58551:61:0;;;;;;;:::i;:::-;58632:16;58640:7;58632;:16::i;:::-;58631:17;58623:58;;;;-1:-1:-1;;;58623:58:0;;;;;;;:::i;:::-;58694:45;58723:1;58727:2;58731:7;58694:20;:45::i;:::-;-1:-1:-1;;;;;58752:17:0;;;;;;:13;:17;;;;;:30;;58774:7;58752:21;:30::i;:::-;-1:-1:-1;58795:29:0;:12;58812:7;58821:2;58795:16;:29::i;:::-;-1:-1:-1;58842:33:0;;58867:7;;-1:-1:-1;;;;;58842:33:0;;;58859:1;;58842:33;;58859:1;;58842:33;58479:404;;:::o;15087:530::-;15214:12;15272:5;15247:21;:30;;15239:81;;;;-1:-1:-1;;;15239:81:0;;;;;;;:::i;:::-;15339:18;15350:6;15339:10;:18::i;:::-;15331:60;;;;-1:-1:-1;;;15331:60:0;;;;;;;:::i;:::-;15465:12;15479:23;15506:6;-1:-1:-1;;;;;15506:11:0;15526:5;15534:4;15506:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15464:75;;;;15557:52;15575:7;15584:10;15596:12;15557:17;:52::i;:::-;15550:59;15087:530;-1:-1:-1;;;;;;;15087:530:0:o;17627:742::-;17742:12;17771:7;17767:595;;;-1:-1:-1;17802:10:0;17795:17;;17767:595;17916:17;;:21;17912:439;;18179:10;18173:17;18240:15;18227:10;18223:2;18219:19;18212:44;18127:148;18322:12;18315:20;;-1:-1:-1;;;18315:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;142:134;220:13;;238:33;220:13;238:33;:::i;301:352::-;;;431:3;424:4;416:6;412:17;408:27;398:2;;-1:-1;;439:12;398:2;-1:-1;469:20;;-1:-1;;;;;498:30;;495:2;;;-1:-1;;531:12;495:2;575:4;567:6;563:17;551:29;;626:3;575:4;;610:6;606:17;567:6;592:32;;589:41;586:2;;;643:1;;633:12;1815:716;;1953:3;1946:4;1938:6;1934:17;1930:27;1920:2;;-1:-1;;1961:12;1920:2;2001:6;1995:13;2023:90;2038:74;2105:6;2038:74;:::i;:::-;2023:90;:::i;:::-;2141:21;;;2014:99;-1:-1;2185:4;2198:14;;;;2173:17;;;2293:1;2278:247;2303:6;2300:1;2297:13;2278:247;;;2403:58;2457:3;2185:4;2379:3;2373:10;2177:6;2361:23;;2403:58;:::i;:::-;2391:71;;2476:14;;;;2504;;;;2325:1;2318:9;2278:247;;;2282:14;;;;;1913:618;;;;:::o;2935:707::-;;3052:3;3045:4;3037:6;3033:17;3029:27;3019:2;;-1:-1;;3060:12;3019:2;3107:6;3094:20;3129:80;3144:64;3201:6;3144:64;:::i;3129:80::-;3237:21;;;3120:89;-1:-1;3281:4;3294:14;;;;3269:17;;;3383;;;3374:27;;;;3371:36;-1:-1;3368:2;;;3420:1;;3410:12;3368:2;3445:1;3430:206;3455:6;3452:1;3449:13;3430:206;;;7017:20;;3523:50;;3587:14;;;;3615;;;;3477:1;3470:9;3430:206;;3668:722;;3796:3;3789:4;3781:6;3777:17;3773:27;3763:2;;-1:-1;;3804:12;3763:2;3844:6;3838:13;3866:80;3881:64;3938:6;3881:64;:::i;3866:80::-;3974:21;;;3857:89;-1:-1;4018:4;4031:14;;;;4006:17;;;4120;;;4111:27;;;;4108:36;-1:-1;4105:2;;;4157:1;;4147:12;4105:2;4182:1;4167:217;4192:6;4189:1;4186:13;4167:217;;;7165:13;;4260:61;;4335:14;;;;4363;;;;4214:1;4207:9;4167:217;;4952:336;;;5066:3;5059:4;5051:6;5047:17;5043:27;5033:2;;-1:-1;;5074:12;5033:2;-1:-1;5104:20;;-1:-1;;;;;5133:30;;5130:2;;;-1:-1;;5166:12;5130:2;5210:4;5202:6;5198:17;5186:29;;5261:3;5210:4;5241:17;5202:6;5227:32;;5224:41;5221:2;;;5278:1;;5268:12;5297:440;;5398:3;5391:4;5383:6;5379:17;5375:27;5365:2;;-1:-1;;5406:12;5365:2;5453:6;5440:20;5475:64;5490:48;5531:6;5490:48;:::i;5475:64::-;5466:73;;5559:6;5552:5;5545:21;5663:3;5595:4;5654:6;5587;5645:16;;5642:25;5639:2;;;5680:1;;5670:12;5639:2;95101:6;5595:4;5587:6;5583:17;5595:4;5621:5;5617:16;95078:30;95157:1;95139:16;;;5595:4;95139:16;95132:27;5621:5;5358:379;-1:-1;;5358:379::o;6498:444::-;;6611:3;6604:4;6596:6;6592:17;6588:27;6578:2;;-1:-1;;6619:12;6578:2;6659:6;6653:13;6681:65;6696:49;6738:6;6696:49;:::i;6681:65::-;6672:74;;6766:6;6759:5;6752:21;6870:3;6802:4;6861:6;6794;6852:16;;6849:25;6846:2;;;6887:1;;6877:12;6846:2;6897:39;6929:6;6802:4;6828:5;6824:16;6802:4;6794:6;6790:17;6897:39;:::i;7228:241::-;;7332:2;7320:9;7311:7;7307:23;7303:32;7300:2;;;-1:-1;;7338:12;7300:2;85:6;72:20;97:33;124:5;97:33;:::i;7476:366::-;;;7597:2;7585:9;7576:7;7572:23;7568:32;7565:2;;;-1:-1;;7603:12;7565:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;7655:63;-1:-1;7755:2;7794:22;;72:20;97:33;72:20;97:33;:::i;:::-;7763:63;;;;7559:283;;;;;:::o;7849:627::-;;;;8012:2;8000:9;7991:7;7987:23;7983:32;7980:2;;;-1:-1;;8018:12;7980:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;8070:63;-1:-1;8170:2;8209:22;;72:20;97:33;72:20;97:33;:::i;:::-;8178:63;-1:-1;8306:2;8291:18;;8278:32;-1:-1;;;;;8319:30;;8316:2;;;-1:-1;;8352:12;8316:2;8382:78;8452:7;8443:6;8432:9;8428:22;8382:78;:::i;:::-;8372:88;;;7974:502;;;;;:::o;8483:1119::-;;;;;;8714:3;8702:9;8693:7;8689:23;8685:33;8682:2;;;-1:-1;;8721:12;8682:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;8773:63;-1:-1;8873:2;8912:22;;72:20;97:33;72:20;97:33;:::i;:::-;8881:63;-1:-1;9009:2;8994:18;;8981:32;-1:-1;;;;;9022:30;;;9019:2;;;-1:-1;;9055:12;9019:2;9085:78;9155:7;9146:6;9135:9;9131:22;9085:78;:::i;:::-;9075:88;;9228:2;9217:9;9213:18;9200:32;9186:46;;9033:18;9244:6;9241:30;9238:2;;;-1:-1;;9274:12;9238:2;9304:78;9374:7;9365:6;9354:9;9350:22;9304:78;:::i;:::-;9294:88;;9447:3;9436:9;9432:19;9419:33;9405:47;;9033:18;9464:6;9461:30;9458:2;;;-1:-1;;9494:12;9458:2;;9524:62;9578:7;9569:6;9558:9;9554:22;9524:62;:::i;:::-;9514:72;;;8676:926;;;;;;;;:::o;9609:491::-;;;;9747:2;9735:9;9726:7;9722:23;9718:32;9715:2;;;-1:-1;;9753:12;9715:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;9805:63;-1:-1;9905:2;9944:22;;72:20;97:33;72:20;97:33;:::i;:::-;9709:391;;9913:63;;-1:-1;;;10013:2;10052:22;;;;7017:20;;9709:391::o;10107:721::-;;;;;10271:3;10259:9;10250:7;10246:23;10242:33;10239:2;;;-1:-1;;10278:12;10239:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;10330:63;-1:-1;10430:2;10469:22;;72:20;97:33;72:20;97:33;:::i;:::-;10438:63;-1:-1;10538:2;10577:22;;7017:20;;-1:-1;10674:2;10659:18;;10646:32;-1:-1;;;;;10687:30;;10684:2;;;-1:-1;;10720:12;10684:2;10750:62;10804:7;10795:6;10784:9;10780:22;10750:62;:::i;:::-;10740:72;;;10233:595;;;;;;;:::o;10835:847::-;;;;;;11016:3;11004:9;10995:7;10991:23;10987:33;10984:2;;;-1:-1;;11023:12;10984:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;11075:63;-1:-1;11175:2;11214:22;;72:20;97:33;72:20;97:33;:::i;:::-;11183:63;-1:-1;11283:2;11322:22;;7017:20;;-1:-1;11391:2;11430:22;;7017:20;;-1:-1;11527:3;11512:19;;11499:33;-1:-1;;;;;11541:30;;11538:2;;;-1:-1;;11574:12;11538:2;11604:62;11658:7;11649:6;11638:9;11634:22;11604:62;:::i;11689:360::-;;;11807:2;11795:9;11786:7;11782:23;11778:32;11775:2;;;-1:-1;;11813:12;11775:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;11865:63;-1:-1;11965:2;12001:22;;4462:20;4487:30;4462:20;4487:30;:::i;12056:490::-;;;;12196:2;12184:9;12175:7;12171:23;12167:32;12164:2;;;-1:-1;;12202:12;12164:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;12254:63;-1:-1;12382:2;12367:18;;12354:32;-1:-1;;;;;12395:30;;12392:2;;;-1:-1;;12428:12;12392:2;12466:64;12522:7;12513:6;12502:9;12498:22;12466:64;:::i;:::-;12158:388;;12448:82;;-1:-1;12448:82;;-1:-1;;;;12158:388::o;12553:617::-;;;;;12711:2;12699:9;12690:7;12686:23;12682:32;12679:2;;;-1:-1;;12717:12;12679:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;12769:63;-1:-1;12897:2;12882:18;;12869:32;-1:-1;;;;;12910:30;;12907:2;;;-1:-1;;12943:12;12907:2;12981:65;13038:7;13029:6;13018:9;13014:22;12981:65;:::i;:::-;12963:83;;-1:-1;12963:83;-1:-1;;13083:2;13122:22;;72:20;97:33;72:20;97:33;:::i;:::-;12673:497;;;;-1:-1;12673:497;;-1:-1;;12673:497::o;13177:366::-;;;13298:2;13286:9;13277:7;13273:23;13269:32;13266:2;;;-1:-1;;13304:12;13266:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;13356:63;13456:2;13495:22;;;;7017:20;;-1:-1;;;13260:283::o;13550:397::-;;;13689:2;13677:9;13668:7;13664:23;13660:32;13657:2;;;-1:-1;;13695:12;13657:2;13753:17;13740:31;-1:-1;;;;;13783:6;13780:30;13777:2;;;-1:-1;;13813:12;13777:2;13851:80;13923:7;13914:6;13903:9;13899:22;13851:80;:::i;:::-;13833:98;;;;-1:-1;13651:296;-1:-1;;;;13651:296::o;13954:377::-;;14083:2;14071:9;14062:7;14058:23;14054:32;14051:2;;;-1:-1;;14089:12;14051:2;14147:17;14134:31;-1:-1;;;;;14177:6;14174:30;14171:2;;;-1:-1;;14207:12;14171:2;14237:78;14307:7;14298:6;14287:9;14283:22;14237:78;:::i;14338:658::-;;;;14519:2;14507:9;14498:7;14494:23;14490:32;14487:2;;;-1:-1;;14525:12;14487:2;14583:17;14570:31;-1:-1;;;;;14621:18;14613:6;14610:30;14607:2;;;-1:-1;;14643:12;14607:2;14673:78;14743:7;14734:6;14723:9;14719:22;14673:78;:::i;:::-;14663:88;;14816:2;14805:9;14801:18;14788:32;14774:46;;14621:18;14832:6;14829:30;14826:2;;;-1:-1;;14862:12;14826:2;;14900:80;14972:7;14963:6;14952:9;14948:22;14900:80;:::i;15692:638::-;;;15863:2;15851:9;15842:7;15838:23;15834:32;15831:2;;;-1:-1;;15869:12;15831:2;15927:17;15914:31;-1:-1;;;;;15965:18;15957:6;15954:30;15951:2;;;-1:-1;;15987:12;15951:2;16017:78;16087:7;16078:6;16067:9;16063:22;16017:78;:::i;:::-;16007:88;;16160:2;16149:9;16145:18;16132:32;16118:46;;15965:18;16176:6;16173:30;16170:2;;;-1:-1;;16206:12;16170:2;;16236:78;16306:7;16297:6;16286:9;16282:22;16236:78;:::i;:::-;16226:88;;;15825:505;;;;;:::o;16337:1208::-;;;;;16613:3;16601:9;16592:7;16588:23;16584:33;16581:2;;;-1:-1;;16620:12;16581:2;16671:17;16665:24;-1:-1;;;;;16709:18;16701:6;16698:30;16695:2;;;-1:-1;;16731:12;16695:2;16761:89;16842:7;16833:6;16822:9;16818:22;16761:89;:::i;:::-;16751:99;;16908:2;;;;16897:9;16893:18;16887:25;16709:18;16924:6;16921:30;16918:2;;;-1:-1;;16954:12;16918:2;16984:89;17065:7;17056:6;17045:9;17041:22;16984:89;:::i;:::-;16974:99;;;17131:2;17120:9;17116:18;17110:25;16709:18;17147:6;17144:30;17141:2;;;-1:-1;;17177:12;17141:2;17264:22;;800:4;788:17;;784:27;-1:-1;774:2;;-1:-1;;815:12;774:2;855:6;849:13;877:80;892:64;949:6;892:64;:::i;877:80::-;985:21;;;1042:14;;;;1017:17;;;1131;;;1122:27;;;;1119:36;-1:-1;1116:2;;;-1:-1;;1158:12;1116:2;-1:-1;1184:10;;1178:217;1203:6;1200:1;1197:13;1178:217;;;1283:48;1327:3;1315:10;1283:48;:::i;:::-;1271:61;;1225:1;1218:9;;;;;1346:14;;;;1374;;1178:217;;;-1:-1;17354:2;17339:18;;17333:25;17197:99;;-1:-1;17333:25;-1:-1;;;;17367:30;;;17364:2;;;-1:-1;;17400:12;17364:2;;17430:99;17521:7;17512:6;17501:9;17497:22;17430:99;:::i;17552:257::-;;17664:2;17652:9;17643:7;17639:23;17635:32;17632:2;;;-1:-1;;17670:12;17632:2;4610:6;4604:13;4622:30;4646:5;4622:30;:::i;17816:239::-;;17919:2;17907:9;17898:7;17894:23;17890:32;17887:2;;;-1:-1;;17925:12;17887:2;4743:6;4730:20;4755:32;4781:5;4755:32;:::i;18062:261::-;;18176:2;18164:9;18155:7;18151:23;18147:32;18144:2;;;-1:-1;;18182:12;18144:2;4882:6;4876:13;4894:32;4920:5;4894:32;:::i;18642:735::-;;;;;18856:3;18844:9;18835:7;18831:23;18827:33;18824:2;;;-1:-1;;18863:12;18824:2;5857:6;5844:20;5869:65;5928:5;5869:65;:::i;:::-;18915:95;-1:-1;19047:2;19113:22;;6040:20;6065:60;6040:20;6065:60;:::i;:::-;19055:90;-1:-1;19182:2;19221:22;;72:20;97:33;72:20;97:33;:::i;:::-;19190:63;-1:-1;19290:2;19329:22;;72:20;97:33;72:20;97:33;:::i;19384:362::-;;19509:2;19497:9;19488:7;19484:23;19480:32;19477:2;;;-1:-1;;19515:12;19477:2;19566:17;19560:24;-1:-1;;;;;19596:6;19593:30;19590:2;;;-1:-1;;19626:12;19590:2;19656:74;19722:7;19713:6;19702:9;19698:22;19656:74;:::i;19753:241::-;;19857:2;19845:9;19836:7;19832:23;19828:32;19825:2;;;-1:-1;;19863:12;19825:2;-1:-1;7017:20;;19819:175;-1:-1;19819:175::o;20001:366::-;;;20122:2;20110:9;20101:7;20097:23;20093:32;20090:2;;;-1:-1;;20128:12;20090:2;7030:6;7017:20;20180:63;;20280:2;20323:9;20319:22;72:20;97:33;124:5;97:33;:::i;20374:491::-;;;;20512:2;20500:9;20491:7;20487:23;20483:32;20480:2;;;-1:-1;;20518:12;20480:2;7030:6;7017:20;20570:63;;20670:2;20713:9;20709:22;72:20;97:33;124:5;97:33;:::i;20872:470::-;;;21002:2;20990:9;20981:7;20977:23;20973:32;20970:2;;;-1:-1;;21008:12;20970:2;7030:6;7017:20;21060:63;;21188:2;21177:9;21173:18;21160:32;-1:-1;;;;;21204:6;21201:30;21198:2;;;-1:-1;;21234:12;21198:2;21264:62;21318:7;21309:6;21298:9;21294:22;21264:62;:::i;21349:492::-;;;;21490:2;21478:9;21469:7;21465:23;21461:32;21458:2;;;-1:-1;;21496:12;21458:2;7030:6;7017:20;21548:63;;21676:2;21665:9;21661:18;21648:32;-1:-1;;;;;21692:6;21689:30;21686:2;;;-1:-1;;21722:12;21848:366;;;21969:2;21957:9;21948:7;21944:23;21940:32;21937:2;;;-1:-1;;21975:12;21937:2;-1:-1;;7017:20;;;22127:2;22166:22;;;7017:20;;-1:-1;21931:283::o;24083:690::-;;24276:5;88688:12;90926:6;90921:3;90914:19;90963:4;;90958:3;90954:14;24288:93;;90963:4;24452:5;87273:14;-1:-1;24491:260;24516:6;24513:1;24510:13;24491:260;;;24577:13;;-1:-1;;;;;93832:54;23765:45;;22375:14;;;;90023;;;;509:18;24531:9;24491:260;;;-1:-1;24757:10;;24207:566;-1:-1;;;;;24207:566::o;25936:1014::-;;26192:5;88864:12;90926:6;90921:3;90914:19;90963:4;;90958:3;90954:14;26204:118;;;90963:4;26379:6;26375:17;26370:3;26366:27;87465:3;-1:-1;87455:14;90963:4;-1:-1;87484:18;-1:-1;26522:389;26547:6;26544:1;26541:13;26522:389;;;26609:9;26603:4;26599:20;26594:3;26587:33;22842:93;26775:4;26760:13;22842:93;:::i;:::-;26890:14;;;;26661:119;-1:-1;26569:1;90164:14;;;;26562:9;26522:389;;;-1:-1;26934:10;;26104:846;-1:-1;;;;;;;26104:846::o;26987:928::-;;27210:5;88688:12;90926:6;90921:3;90914:19;90963:4;;90958:3;90954:14;27222:103;;;90963:4;27382:6;27378:17;27373:3;27369:27;90963:4;27477:5;87273:14;-1:-1;27516:360;27541:6;27538:1;27535:13;27516:360;;;27603:9;27597:4;27593:20;27588:3;27581:33;23071:66;23133:3;27648:6;27642:13;23071:66;:::i;:::-;27855:14;;;;27662:92;-1:-1;90023:14;;;;27563:1;27556:9;27516:360;;27952:874;;28153:5;88864:12;90926:6;90921:3;90914:19;90963:4;;90958:3;90954:14;28165:93;;;90963:4;28315:6;28311:17;28306:3;28302:27;87465:3;-1:-1;87455:14;90963:4;-1:-1;87484:18;-1:-1;28443:344;28468:6;28465:1;28462:13;28443:344;;;28530:9;28524:4;28520:20;28515:3;28508:33;-1:-1;34392:5;34386:12;28490:1;;34415:9;34411:17;34439:1;34434:238;;;;34683:1;34678:392;;;;34404:666;;34434:238;34508:1;34493:17;;34512:4;34489:28;90914:19;;-1:-1;;34611:25;;90954:14;;;34599:38;34651:14;;;;-1:-1;34434:238;;34678:392;34747:1;34736:9;34732:17;90926:6;90921:3;90914:19;34846:38;34878:5;34846:38;:::i;:::-;-1:-1;34908:130;34922:6;34919:1;34916:13;34908:130;;;34981:14;;34968:11;;;;;34961:35;35015:15;;;;34937:12;;34908:130;;;35052:11;;;;;-1:-1;;;34404:666;-1:-1;28766:14;;;;28582:89;;-1:-1;;90164:14;;;;;28490:1;28483:9;28443:344;;29371:690;;29564:5;88688:12;90926:6;90921:3;90914:19;90963:4;;90958:3;90954:14;29576:93;;90963:4;29740:5;87273:14;-1:-1;29779:260;29804:6;29801:1;29798:13;29779:260;;;29865:13;;53795:37;;23501:14;;;;90023;;;;29826:1;29819:9;29779:260;;30100:689;;30277:5;88864:12;90926:6;90921:3;90914:19;90963:4;;90958:3;90954:14;30289:83;;87465:3;-1:-1;87455:14;90963:4;-1:-1;87484:18;-1:-1;30479:288;30504:6;30501:1;30498:13;30479:288;;;95739:11;;53795:37;;23501:14;;;;30526:1;90164:14;;;;30519:9;30479:288;;31773:343;;31915:5;88688:12;90926:6;90921:3;90914:19;32008:52;32053:6;90963:4;90958:3;90954:14;90963:4;32034:5;32030:16;32008:52;:::i;:::-;95847:7;95831:14;-1:-1;;95827:28;32072:39;;;;90963:4;32072:39;;31863:253;-1:-1;;31863:253::o;53964:271::-;;32283:5;88688:12;32394:52;32439:6;32434:3;32427:4;32420:5;32416:16;32394:52;:::i;:::-;32458:16;;;;;54098:137;-1:-1;;54098:137::o;54242:436::-;;32283:5;88688:12;32394:52;32439:6;32434:3;32427:4;32420:5;32416:16;32394:52;:::i;:::-;88688:12;;32458:16;;;;32394:52;88688:12;32458:16;32427:4;32416:16;;32394:52;:::i;:::-;32458:16;;54426:252;-1:-1;;;;54426:252::o;55073:222::-;-1:-1;;;;;93832:54;;;;23765:45;;55200:2;55185:18;;55171:124::o;55547:672::-;-1:-1;;;;;93832:54;;;23765:45;;93832:54;;55973:2;55958:18;;23765:45;56056:2;56041:18;;53795:37;;;55792:3;56093:2;56078:18;;56071:48;;;55547:672;;56133:76;;55777:19;;56195:6;56133:76;:::i;:::-;56125:84;55763:456;-1:-1;;;;;;55763:456::o;56226:744::-;-1:-1;;;;;93832:54;;23608:58;;56511:2;56637;56622:18;;56615:48;;;56226:744;;56677:105;;56496:18;;56768:6;56677:105;:::i;:::-;56830:9;56824:4;56820:20;56815:2;56804:9;56800:18;56793:48;56855:105;56955:4;56946:6;56855:105;:::i;56977:1048::-;-1:-1;;;;;93832:54;;;23765:45;;93832:54;;57499:2;57484:18;;23765:45;93843:42;57536:2;57521:18;;57514:48;;;56977:1048;;57576:108;;57319:19;;57670:6;57576:108;:::i;:::-;57732:9;57726:4;57722:20;57717:2;57706:9;57702:18;57695:48;57757:108;57860:4;57851:6;57757:108;:::i;:::-;57749:116;;57914:9;57908:4;57904:20;57898:3;57887:9;57883:19;57876:49;57939:76;58010:4;58001:6;57939:76;:::i;:::-;57931:84;57305:720;-1:-1;;;;;;;;57305:720::o;58032:370::-;;58209:2;58230:17;58223:47;58284:108;58209:2;58198:9;58194:18;58378:6;58284:108;:::i;58409:410::-;;58606:2;58627:17;58620:47;58681:128;58606:2;58595:9;58591:18;58795:6;58681:128;:::i;58826:390::-;59013:2;59027:47;;;58998:18;;90914:19;;;58826:390;-1:-1;;;;;29113:78;;29110:2;;;-1:-1;;29194:12;29110:2;59013;29229:6;29225:17;95101:6;95096:3;90954:14;59002:9;90954:14;95078:30;95139:16;;;;90954:14;95139:16;95132:27;;;95139:16;58984:232;-1:-1;;58984:232::o;59223:370::-;;59400:2;59421:17;59414:47;59475:108;59400:2;59389:9;59385:18;59569:6;59475:108;:::i;59600:2526::-;;60492:3;;60514:17;60507:47;60568:108;60492:3;60481:9;60477:19;60662:6;60568:108;:::i;:::-;60560:116;;60709:2;60724:9;60718:4;60714:20;60709:2;60698:9;60694:18;60687:48;60749:108;60852:4;60843:6;60749:108;:::i;:::-;60741:116;;60905:9;60899:4;60895:20;60890:2;60879:9;60875:18;60868:48;60930:108;61033:4;61024:6;60930:108;:::i;:::-;60922:116;;61086:9;61080:4;61076:20;61071:2;61060:9;61056:18;61049:48;61111:108;61214:4;61205:6;61111:108;:::i;:::-;61103:116;;61268:9;61262:4;61258:20;61252:3;61241:9;61237:19;61230:49;61293:128;61416:4;61407:6;61293:128;:::i;:::-;61285:136;;61470:9;61464:4;61460:20;61454:3;61443:9;61439:19;61432:49;61495:152;61642:4;61633:6;61495:152;:::i;:::-;61487:160;;61696:9;61690:4;61686:20;61680:3;61669:9;61665:19;61658:49;61721:169;25094:5;88864:12;25113:121;25227:6;25222:3;25113:121;:::i;:::-;25106:128;;;;;60709:2;25291:6;25287:17;25282:3;25278:27;25326:82;25402:5;25326:82;:::i;:::-;-1:-1;25441:413;25466:6;25463:1;25460:13;25441:413;;;25528:9;25522:4;25518:20;25513:3;25506:33;22569:110;25711:4;25696:13;22569:110;:::i;:::-;25833:14;;;;25580:136;-1:-1;25488:1;90164:14;;;;25481:9;25441:413;;;25445:14;;61939:9;61933:4;61929:20;61923:3;61912:9;61908:19;61901:49;61964:152;62111:4;62102:6;61964:152;:::i;:::-;61956:160;60463:1663;-1:-1;;;;;;;;;;;;;;;60463:1663::o;62133:629::-;;62388:2;62409:17;62402:47;62463:108;62388:2;62377:9;62373:18;62557:6;62463:108;:::i;:::-;62619:9;62613:4;62609:20;62604:2;62593:9;62589:18;62582:48;62644:108;62747:4;62738:6;62644:108;:::i;:::-;62636:116;62359:403;-1:-1;;;;;62359:403::o;62769:210::-;93338:13;;93331:21;31610:34;;62890:2;62875:18;;62861:118::o;62986:218::-;-1:-1;;;;;;93425:78;;;;31725:36;;63111:2;63096:18;;63082:122::o;63211:306::-;;63356:2;63377:17;63370:47;63431:76;63356:2;63345:9;63341:18;63493:6;63431:76;:::i;64100:330::-;;64257:2;64278:17;64271:47;90926:6;64257:2;64246:9;64242:18;90914:19;95101:6;95096:3;90954:14;64246:9;90954:14;95078:30;95139:16;;;90954:14;95139:16;;;95132:27;;;;95847:7;95831:14;;;-1:-1;;95827:28;33150:39;;;64228:202;-1:-1;64228:202::o;64754:416::-;64954:2;64968:47;;;35309:2;64939:18;;;90914:19;35345:34;90954:14;;;35325:55;35414:34;35400:12;;;35393:56;35483:29;35469:12;;;35462:51;35532:12;;;64925:245::o;65177:416::-;65377:2;65391:47;;;35783:2;65362:18;;;90914:19;35819:34;90954:14;;;35799:55;-1:-1;;;35874:12;;;35867:26;35912:12;;;65348:245::o;65600:416::-;65800:2;65814:47;;;36163:2;65785:18;;;90914:19;36199:34;90954:14;;;36179:55;36268:31;36254:12;;;36247:53;36319:12;;;65771:245::o;66023:416::-;66223:2;66237:47;;;36570:2;66208:18;;;90914:19;36606:34;90954:14;;;36586:55;36675:34;36661:12;;;36654:56;-1:-1;;;36730:12;;;36723:35;36777:12;;;66194:245::o;66446:416::-;66646:2;66660:47;;;37028:2;66631:18;;;90914:19;37064:34;90954:14;;;37044:55;37133:34;37119:12;;;37112:56;-1:-1;;;37188:12;;;37181:27;37227:12;;;66617:245::o;66869:416::-;67069:2;67083:47;;;37478:2;67054:18;;;90914:19;37514:34;90954:14;;;37494:55;-1:-1;;;37569:12;;;37562:42;37623:12;;;67040:245::o;67292:416::-;67492:2;67506:47;;;37874:2;67477:18;;;90914:19;37910:34;90954:14;;;37890:55;-1:-1;;;37965:12;;;37958:39;38016:12;;;67463:245::o;67715:416::-;67915:2;67929:47;;;38267:2;67900:18;;;90914:19;38303:34;90954:14;;;38283:55;-1:-1;;;38358:12;;;38351:39;38409:12;;;67886:245::o;68138:416::-;68338:2;68352:47;;;38660:2;68323:18;;;90914:19;38696:34;90954:14;;;38676:55;38765:34;38751:12;;;38744:56;38834:25;38820:12;;;38813:47;38879:12;;;68309:245::o;68561:416::-;68761:2;68775:47;;;39130:2;68746:18;;;90914:19;39166:34;90954:14;;;39146:55;39235:34;39221:12;;;39214:56;-1:-1;;;39290:12;;;39283:27;39329:12;;;68732:245::o;68984:416::-;69184:2;69198:47;;;39580:2;69169:18;;;90914:19;39616:30;90954:14;;;39596:51;39666:12;;;69155:245::o;69407:416::-;69607:2;69621:47;;;39917:2;69592:18;;;90914:19;39953:29;90954:14;;;39933:50;40002:12;;;69578:245::o;69830:416::-;70030:2;70044:47;;;40253:2;70015:18;;;90914:19;40289:34;90954:14;;;40269:55;40358:34;40344:12;;;40337:56;-1:-1;;;40413:12;;;40406:25;40450:12;;;70001:245::o;70253:416::-;70453:2;70467:47;;;40701:2;70438:18;;;90914:19;40737:34;90954:14;;;40717:55;40806:34;40792:12;;;40785:56;-1:-1;;;40861:12;;;40854:43;40916:12;;;70424:245::o;70676:416::-;70876:2;70890:47;;;41167:2;70861:18;;;90914:19;41203:30;90954:14;;;41183:51;41253:12;;;70847:245::o;71099:416::-;71299:2;71313:47;;;41504:2;71284:18;;;90914:19;41540:34;90954:14;;;41520:55;-1:-1;;;41595:12;;;41588:28;41635:12;;;71270:245::o;71522:416::-;71722:2;71736:47;;;41886:2;71707:18;;;90914:19;41922:27;90954:14;;;41902:48;41969:12;;;71693:245::o;71945:416::-;72145:2;72159:47;;;42220:2;72130:18;;;90914:19;42256:32;90954:14;;;42236:53;42308:12;;;72116:245::o;72368:416::-;72568:2;72582:47;;;42559:2;72553:18;;;90914:19;-1:-1;;;90954:14;;;42575:43;42637:12;;;72539:245::o;72791:416::-;72991:2;73005:47;;;42888:2;72976:18;;;90914:19;42924:34;90954:14;;;42904:55;-1:-1;;;42979:12;;;42972:30;43021:12;;;72962:245::o;73214:416::-;73414:2;73428:47;;;43272:2;73399:18;;;90914:19;43308:34;90954:14;;;43288:55;-1:-1;;;43363:12;;;43356:36;43411:12;;;73385:245::o;73637:416::-;73837:2;73851:47;;;43662:2;73822:18;;;90914:19;43698:34;90954:14;;;43678:55;43767:26;43753:12;;;43746:48;43813:12;;;73808:245::o;74060:416::-;74260:2;74274:47;;;44064:2;74245:18;;;90914:19;44100:34;90954:14;;;44080:55;-1:-1;;;44155:12;;;44148:34;44201:12;;;74231:245::o;74483:416::-;74683:2;74697:47;;;44452:2;74668:18;;;90914:19;44488:34;90954:14;;;44468:55;-1:-1;;;44543:12;;;44536:38;44593:12;;;74654:245::o;74906:416::-;75106:2;75120:47;;;44844:2;75091:18;;;90914:19;44880:34;90954:14;;;44860:55;-1:-1;;;44935:12;;;44928:26;44973:12;;;75077:245::o;75329:416::-;75529:2;75543:47;;;75514:18;;;90914:19;45260:34;90954:14;;;45240:55;45314:12;;;75500:245::o;75752:416::-;75952:2;75966:47;;;45565:2;75937:18;;;90914:19;45601:34;90954:14;;;45581:55;-1:-1;;;45656:12;;;45649:36;45704:12;;;75923:245::o;76175:416::-;76375:2;76389:47;;;45955:2;76360:18;;;90914:19;45991:34;90954:14;;;45971:55;46060:34;46046:12;;;46039:56;-1:-1;;;46115:12;;;46108:39;46166:12;;;76346:245::o;76598:416::-;76798:2;76812:47;;;46417:2;76783:18;;;90914:19;46453:34;90954:14;;;46433:55;-1:-1;;;46508:12;;;46501:33;46553:12;;;76769:245::o;77021:416::-;77221:2;77235:47;;;46804:2;77206:18;;;90914:19;46840:34;90954:14;;;46820:55;46909:29;46895:12;;;46888:51;46958:12;;;77192:245::o;77444:416::-;77644:2;77658:47;;;47209:2;77629:18;;;90914:19;47245:34;90954:14;;;47225:55;47314:34;47300:12;;;47293:56;-1:-1;;;47369:12;;;47362:44;47425:12;;;77615:245::o;77867:416::-;78067:2;78081:47;;;47676:2;78052:18;;;90914:19;47712:34;90954:14;;;47692:55;-1:-1;;;47767:12;;;47760:36;47815:12;;;78038:245::o;78290:416::-;78490:2;78504:47;;;48066:2;78475:18;;;90914:19;48102:34;90954:14;;;48082:55;48171:26;48157:12;;;48150:48;48217:12;;;78461:245::o;78713:416::-;78913:2;78927:47;;;48468:2;78898:18;;;90914:19;48504:34;90954:14;;;48484:55;-1:-1;;;48559:12;;;48552:25;48596:12;;;78884:245::o;79136:416::-;79336:2;79350:47;;;48847:2;79321:18;;;90914:19;48883:34;90954:14;;;48863:55;48952:32;48938:12;;;48931:54;49004:12;;;79307:245::o;79559:416::-;79759:2;79773:47;;;49255:2;79744:18;;;90914:19;49291:34;90954:14;;;49271:55;-1:-1;;;49346:12;;;49339:34;49392:12;;;79730:245::o;79982:416::-;80182:2;80196:47;;;80167:18;;;90914:19;49679:34;90954:14;;;49659:55;49733:12;;;80153:245::o;80405:416::-;80605:2;80619:47;;;49984:2;80590:18;;;90914:19;50020:34;90954:14;;;50000:55;50089:34;50075:12;;;50068:56;-1:-1;;;50144:12;;;50137:34;50190:12;;;80576:245::o;80828:416::-;81028:2;81042:47;;;50748:2;81013:18;;;90914:19;50784:34;90954:14;;;50764:55;50853:34;50839:12;;;50832:56;-1:-1;;;50908:12;;;50901:31;50951:12;;;80999:245::o;81251:416::-;81451:2;81465:47;;;51202:2;81436:18;;;90914:19;51238:34;90954:14;;;51218:55;-1:-1;;;51293:12;;;51286:41;51346:12;;;81422:245::o;81674:416::-;81874:2;81888:47;;;51597:2;81859:18;;;90914:19;51633:34;90954:14;;;51613:55;-1:-1;;;51688:12;;;51681:43;51743:12;;;81845:245::o;82097:416::-;82297:2;82311:47;;;51994:2;82282:18;;;90914:19;52030:31;90954:14;;;52010:52;52081:12;;;82268:245::o;82520:416::-;82720:2;82734:47;;;52332:2;82705:18;;;90914:19;52368:34;90954:14;;;52348:55;52437:34;52423:12;;;52416:56;-1:-1;;;52492:12;;;52485:35;52539:12;;;82691:245::o;82943:416::-;83143:2;83157:47;;;52790:2;83128:18;;;90914:19;52826:34;90954:14;;;52806:55;52895:34;52881:12;;;52874:56;-1:-1;;;52950:12;;;52943:30;52992:12;;;83114:245::o;83366:416::-;83566:2;83580:47;;;53243:2;83551:18;;;90914:19;-1:-1;;;90954:14;;;53259:44;53322:12;;;83537:245::o;83789:416::-;83989:2;84003:47;;;53573:2;83974:18;;;90914:19;53609:34;90954:14;;;53589:55;-1:-1;;;53664:12;;;53657:32;53708:12;;;83960:245::o;84212:222::-;53795:37;;;84339:2;84324:18;;84310:124::o;84441:333::-;53795:37;;;84760:2;84745:18;;53795:37;84596:2;84581:18;;84567:207::o;84781:507::-;;;84917:11;84904:25;84968:48;;84992:8;84976:14;84972:29;84968:48;84948:18;84944:73;84934:2;;-1:-1;;85021:12;84934:2;85048:33;;85102:18;;;-1:-1;;;;;;85129:30;;85126:2;;;-1:-1;;85162:12;85126:2;85007:4;85190:13;;-1:-1;84976:14;85222:38;;;85212:49;;85209:2;;;85274:1;;85264:12;85295:256;85357:2;85351:9;85383:17;;;-1:-1;;;;;85443:34;;85479:22;;;85440:62;85437:2;;;85515:1;;85505:12;85437:2;85357;85524:22;85335:216;;-1:-1;85335:216::o;85558:304::-;;-1:-1;;;;;85709:6;85706:30;85703:2;;;-1:-1;;85739:12;85703:2;-1:-1;85784:4;85772:17;;;85837:15;;85640:222::o;86501:321::-;;-1:-1;;;;;86636:6;86633:30;86630:2;;;-1:-1;;86666:12;86630:2;-1:-1;95847:7;86720:17;-1:-1;;86716:33;86807:4;86797:15;;86567:255::o;87316:202::-;;87455:14;;;87497:4;87484:18;;;87414:104::o;95174:268::-;95239:1;95246:101;95260:6;95257:1;95254:13;95246:101;;;95327:11;;;95321:18;95308:11;;;95301:39;95282:2;95275:10;95246:101;;;95362:6;95359:1;95356:13;95353:2;;;-1:-1;;95239:1;95409:16;;95402:27;95223:219::o;95978:117::-;-1:-1;;;;;93832:54;;96037:35;;96027:2;;96086:1;;96076:12;96102:111;96183:5;93338:13;93331:21;96161:5;96158:32;96148:2;;96204:1;;96194:12;96220:115;-1:-1;;;;;;93425:78;;96278:34;;96268:2;;96326:1;;96316:12

Swarm Source

ipfs://1e25d516154aa84f5297029f0f178662972723149c16e1ae63d1539b16a2faa7
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.