ETH Price: $3,299.86 (-0.51%)

Token

RELICS (RELICS)
 

Overview

Max Total Supply

1,119 RELICS

Holders

476

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
abana.eth
Balance
1 RELICS
0x7F6417eCc59685F4363DD7662D0cB26F2E5e5E5c
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
Packs

Compiler Version
v0.7.3+commit.9bfce1f6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : Packs.sol
// SPDX-License-Identifier: MIT
// Written by Tim Kang <> illestrater
// Thought innovation by Monstercat
// Product by universe.xyz

pragma solidity >=0.6.0 <0.8.0;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./IPacks.sol";
import "./LibPackStorage.sol";

contract Packs is IPacks, ERC721, ReentrancyGuard {
  using SafeMath for uint256;

  constructor(
    string memory name,
    string memory symbol,
    string memory _baseURI,
    bool _editioned,
    uint256[] memory _initParams,
    string[] memory _metadataKeys,
    string memory _licenseURI,
    address _mintPass,
    uint256 _mintPassDuration,
    bool[] memory _mintPassParams
  ) ERC721(name, symbol) {
    LibPackStorage.Storage storage ds = LibPackStorage.packStorage();

    ds.relicsAddress = address(this);
    ds.daoAddress = msg.sender;
    ds.daoInitialized = true;
    ds.collectionCount = 0;

    createNewCollection(_baseURI, _editioned, _initParams, _metadataKeys, _licenseURI, _mintPass, _mintPassDuration, _mintPassParams);

    _setBaseURI(_baseURI);
  }

  bytes4 private constant _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584;
  bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x2a55205a;

  function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
    return interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 || super.supportsInterface(interfaceId);
  }

  modifier onlyDAO() {
    LibPackStorage.Storage storage ds = LibPackStorage.packStorage();
    require(msg.sender == ds.daoAddress, "Wrong address");
    _;
  }

  function transferDAOownership(address payable _daoAddress) public override onlyDAO {
    LibPackStorage.Storage storage ds = LibPackStorage.packStorage();
    ds.daoAddress = _daoAddress;
    ds.daoInitialized = true;
  }

  function createNewCollection(string memory _baseURI, bool _editioned, uint256[] memory _initParams, string[] memory _metadataKeys, string memory _licenseURI, address _mintPass, uint256 _mintPassDuration, bool[] memory _mintPassParams) public override onlyDAO {
    LibPackStorage.createNewCollection(_baseURI, _editioned, _initParams, _metadataKeys, _licenseURI, _mintPass, _mintPassDuration, _mintPassParams);
  }

  function bulkAddCollectible(uint256 cID, string[][] memory _coreData, uint16[] memory _editions, string[][] memory _assets, LibPackStorage.MetadataStore[][] memory _metadataValues, LibPackStorage.Fee[][] memory _fees) public override onlyDAO {
    for (uint256 i = 0; i < _coreData.length; i++) {
      LibPackStorage.addCollectible(cID, _coreData[i], _editions[i], _assets[i], _metadataValues[i], _fees[i]);
    }
  }

  function randomTokenID(uint256 cID) private returns (uint256) {
    LibPackStorage.Storage storage ds = LibPackStorage.packStorage();

    (uint256 randomID, uint256 tokenID) = LibPackStorage.randomTokenID(address(this), cID);

    ds.collection[cID].shuffleIDs[randomID] = ds.collection[cID].shuffleIDs[ds.collection[cID].shuffleIDs.length - 1];
    ds.collection[cID].shuffleIDs.pop();

    return tokenID;
  }

  function mintPack(uint256 cID, uint256 mintPassTokenId) public override payable nonReentrant {
    LibPackStorage.Storage storage ds = LibPackStorage.packStorage();
    bool canMintPass = LibPackStorage.checkMintPass(address(this), cID, mintPassTokenId, msg.sender);
 
    uint256 excessAmount;
    if (canMintPass && ds.collection[cID].mintPassFree) excessAmount = msg.value.sub(0);
    else excessAmount = msg.value.sub(ds.collection[cID].tokenPrice);

    if (excessAmount > 0) {
      (bool returnExcessStatus, ) = _msgSender().call{value: excessAmount}("");
      require(returnExcessStatus, "Failed to return excess.");
    }

    uint256 tokenID = randomTokenID(cID);
    _mint(_msgSender(), tokenID);
  }

  function bulkMintPack(uint256 cID, uint256 amount) public override payable nonReentrant {
    LibPackStorage.Storage storage ds = LibPackStorage.packStorage();
    LibPackStorage.bulkMintChecks(cID, amount);

    uint256 excessAmount = msg.value.sub(ds.collection[cID].tokenPrice.mul(amount));
    if (excessAmount > 0) {
      (bool returnExcessStatus, ) = _msgSender().call{value: excessAmount}("");
      require(returnExcessStatus, "Failed to return excess.");
    }

    for (uint256 i = 0; i < amount; i++) {
      uint256 tokenID = randomTokenID(cID);
      _mint(_msgSender(), tokenID);
    }
  }

  function mintPassClaimed(uint256 cID, uint256 tokenId) public override view returns (bool) {
    return LibPackStorage.mintPassClaimed(cID, tokenId);
  }

  function remainingTokens(uint256 cID) public override view returns (uint256) {
    return LibPackStorage.remainingTokens(cID);
  }

  function updateMetadata(uint256 cID, uint256 collectibleId, uint256 propertyIndex, string memory value) public override onlyDAO {
    LibPackStorage.updateMetadata(cID, collectibleId, propertyIndex, value);
  }

  function addVersion(uint256 cID, uint256 collectibleId, string memory asset) public override onlyDAO {
    LibPackStorage.addVersion(cID, collectibleId, asset);
  }

  function addNewLicense(uint256 cID, string memory _license) public override onlyDAO {
    LibPackStorage.addNewLicense(cID, _license);
  }

  function getLicense(uint256 cID, uint256 versionNumber) public override view returns (string memory) {
    return LibPackStorage.getLicense(cID, versionNumber);
  }

  function getCollectionCount() public override view returns (uint256) {
    return LibPackStorage.packStorage().collectionCount;
  }

  function getCollectionInfo(uint256 cID) public override view returns (string memory) {
    return LibPackStorage.getCollectionInfo(cID);
  }

  function tokenURI(uint256 tokenId) public view virtual override(ERC721, IPacks) returns (string memory) {
    return LibPackStorage.tokenURI(tokenId);
  }

  function getFeeRecipients(uint256 tokenId) public override view returns (address payable[] memory) {
    require(_exists(tokenId), "Nonexistent token");
    return LibPackStorage.getFeeRecipients(tokenId);
  }

  function getFeeBps(uint256 tokenId) public override view returns (uint256[] memory) {
    require(_exists(tokenId), "Nonexistent token");
    return LibPackStorage.getFeeBps(tokenId);
  }

  function royaltyInfo(uint256 tokenId, uint256 value) public override view returns (address recipient, uint256 amount){
    require(_exists(tokenId), "Nonexistent token");
    return LibPackStorage.royaltyInfo(tokenId, value);
  }

  function withdraw(address _to, uint amount) public onlyDAO {
    payable(_to).call{value:amount, gas:200000}("");
  }
}

File 2 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

File 3 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 4 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../utils/Context.sol";
import "./IERC721.sol";
import "./IERC721Metadata.sol";
import "./IERC721Enumerable.sol";
import "./IERC721Receiver.sol";
import "../../introspection/ERC165.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";
import "../../utils/EnumerableSet.sol";
import "../../utils/EnumerableMap.sol";
import "../../utils/Strings.sol";

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Base URI
    string private _baseURI;

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

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

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

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

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

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

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

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

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

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = baseURI();

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

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

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

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

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

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

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

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

File 5 of 19 : IPacks.sol
// SPDX-License-Identifier: MIT
// Written by Tim Kang <> illestrater
// Thought innovation by Monstercat
// Product by universe.xyz

pragma solidity >=0.6.0 <0.8.0;
pragma experimental ABIEncoderV2;

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

/// @title Creators can release NFTs with multiple collectibles, across multiple collections/drops, and buyers will receive a random tokenID
/// @notice This interface should be implemented by the Packs contract
/// @dev This interface should be implemented by the Packs contract
interface IPacks is IERC721Enumerable {

  /* 
   * cID refers to collection ID
   * Should not have more than 1000 editions of the same collectible (gas limit recommended, technically can support ~4000 editions)
  */

  /// @notice Transfers contract ownership to DAO / different address
  /// @param _daoAddress The new address
  function transferDAOownership(address payable _daoAddress) external;

  /// @notice Creates a new collection / drop (first collection is created via constructor)
  /// @param _baseURI Base URI (e.g. https://arweave.net/)
  /// @param _editioned Toggle to show edition # in returned metadata
  /// @param _initParams Initialization parameters in array [token price, bulk buy max quantity, start time of sale]
  /// @param _licenseURI Global license URI of collection / drop
  /// @param _mintPass ERC721 contract address to allow 1 free mint prior to sale start time
  /// @param _mintPassDuration Duration before sale start time allowing free mints
  /// @param _mintPassParams Array of params for mintPass [One Per Wallet, Mint Pass ONLY, Mint Pass Free Mint, Mint Pass Burn]
  function createNewCollection(string memory _baseURI, bool _editioned, uint256[] memory _initParams, string[] memory _metadataKeys, string memory _licenseURI, address _mintPass, uint256 _mintPassDuration, bool[] memory _mintPassParams) external;
  
  /// @notice Add multiple collectibles in one function call, same parameters as addCollectible but in array
  /// @param cID Collection ID
  /// @param _coreData Array of parameters [title, description, # of NFTs, current artwork version index starting 1]
  /// @param _editions Number of NFTs per asset
  /// @param _assets Array of artwork assets, starting index 0 indicative of version 1
  /// @param _metadataValues Array of key value pairs for property name and value
  /// @param _fees Array of different percentage payout splits on secondary sales
  function bulkAddCollectible(uint256 cID, string[][] memory _coreData, uint16[] memory _editions, string[][] memory _assets, LibPackStorage.MetadataStore[][] memory _metadataValues, LibPackStorage.Fee[][] memory _fees) external;
  
  /// @notice Mints an NFT with random token ID
  /// @param cID Collection ID
  /// @param mintPassTokenId Provide token ID to use as mint pass if appicable
  function mintPack(uint256 cID, uint256 mintPassTokenId) external payable;

  /// @notice Mints multiple NFTs with random token IDs
  /// @param cID Collection ID
  /// @param amount # of NFTs to mint
  function bulkMintPack(uint256 cID, uint256 amount) external payable;

  /// @notice Returns if an NFT was used as mint pass claim
  /// @param cID Collection ID
  /// @param tokenId NFT tokenID
  function mintPassClaimed(uint256 cID, uint256 tokenId) external view returns (bool);

  /// @notice Returns remaining NFTs available to purchase
  /// @param cID Collection ID
  function remainingTokens(uint256 cID) external view returns (uint256);

  /// @notice Updates metadata value given property is editable
  /// @param cID Collection ID
  /// @param collectibleId Collectible index (value 1 is index 0)
  /// @param propertyIndex Index of property to update (value 0 is index 0)
  /// @param value Value of property to update
  function updateMetadata(uint256 cID, uint256 collectibleId, uint256 propertyIndex, string memory value) external;

  /// @notice Adds new URI version with provided asset
  /// @param cID Collection ID
  /// @param collectibleId Collectible index (value 1 is index 0)
  /// @param asset Asset hash without baseURI included
  function addVersion(uint256 cID, uint256 collectibleId, string memory asset) external;

  /// @notice Adds new license URL for collection, auto increments license version number
  /// @param cID Collection ID
  /// @param _license Full URL of license
  function addNewLicense(uint256 cID, string memory _license) external;

  /// @notice Gets license given a license version
  /// @param cID Collection ID
  /// @param versionNumber Version number of license
  function getLicense(uint256 cID, uint256 versionNumber) external view returns (string memory);

  /// @notice Returns number of collections
  function getCollectionCount() external view returns (uint256);

    /// @notice Returns collection configured settings
  function getCollectionInfo(uint256 cID) external view returns (string memory);

  /// @notice Dynamically generates tokenURI as base64 encoded JSON of on-chain metadata
  /// @param tokenId NFT/Token ID number
  function tokenURI(uint256 tokenId) external view returns (string memory);

  /// @notice Returns addresses of secondary sale fees (Rarible Royalties Standard)
  /// @param tokenId NFT/Token ID number
  function getFeeRecipients(uint256 tokenId) external view returns (address payable[] memory);

  /// @notice Returns basis point values of secondary sale fees (Rarible Royalties Standard)
  /// @param tokenId NFT/Token ID number
  function getFeeBps(uint256 tokenId) external view returns (uint256[] memory);

  /// @notice Returns address and value of secondary sale fee (EIP-2981 royalties standard)
  /// @param tokenId NFT/Token ID number
  /// @param value ETH/ERC20 value to calculate from
  function royaltyInfo(uint256 tokenId, uint256 value) external view returns (address recipient, uint256 amount);
}

File 6 of 19 : LibPackStorage.sol
// SPDX-License-Identifier: MIT
// Written by Tim Kang <> illestrater
// Thought innovation by Monstercat
// Product by universe.xyz

pragma solidity >=0.6.0 <0.8.0;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import 'base64-sol/base64.sol';
import './HelperFunctions.sol';

library LibPackStorage {
  using SafeMath for uint256;

  bytes32 constant STORAGE_POSITION = keccak256("com.universe.packs.storage");

  struct Fee {
    address payable recipient;
    uint256 value;
  }

  struct SingleCollectible {
    uint16 count; // Amount of editions per collectible
    uint16 totalVersionCount; // Total number of existing states
    uint16 currentVersion; // Current existing state
    string title; // Collectible name
    string description; // Collectible description
    string[] assets; // Each asset in array is a version
  }

  struct Metadata {
    uint8[] name; // Trait or attribute property field name
    string[] value; // Trait or attribute property value
    bool[] modifiable; // Can owner modify the value of field
    uint16 propertyCount; // Tracker of total attributes
  }

  struct MetadataStore {
    uint8 propertyKey;
    string value;
    bool modifiable;
  }

  struct Collection {
    uint16 collectibleCount; // Total unique assets count
    uint16 bulkBuyLimit;
    uint16 licenseVersion; // Tracker of latest license
    uint256 totalTokenCount; // Total NFT count to be minted
    uint256 tokenPrice;
    uint256 saleStartTime;

    string baseURI; // Token ID base URL

    bool initialized;
    bool editioned; // Display edition # in token name
    bool mintPass;
    bool mintPassOnly;
    bool mintPassFree;
    bool mintPassBurn;
    uint256 mintPassDuration;

    address mintPassAddress;
    ERC721 mintPassContract;
    uint32[] shuffleIDs;

    uint16 metadataKeysLength;

    mapping (uint256 => SingleCollectible) collectibles; // Unique assets
    mapping (uint256 => string) metadataKeys;
    mapping (uint256 => Metadata) metadata; // Trait & property attributes, indexes should be coupled with 'collectibles'
    mapping (uint256 => Fee[]) secondaryFees;
    mapping (uint256 => string) licenseURI; // URL to external license or file
    mapping (uint256 => bool) mintPassClaims;
  }

  struct Storage {
    address relicsAddress;
    address payable daoAddress;
    bool daoInitialized;

    uint256 collectionCount;

    mapping (uint256 => Collection) collection;
  }

  function packStorage() internal pure returns (Storage storage ds) {
    bytes32 position = STORAGE_POSITION;
    assembly {
      ds.slot := position
    }
  }

  event LogMintPack(
    address minter,
    uint256 tokenID
  );

  event LogCreateNewCollection(
    uint256 index
  );

  event LogAddCollectible(
    uint256 cID,
    string title
  );

  event LogUpdateMetadata(
    uint256 cID,
    uint256 collectibleId,
    uint256 propertyIndex,
    string value
  );

  event LogAddVersion(
    uint256 cID,
    uint256 collectibleId,
    string asset
  );

  event LogUpdateVersion(
    uint256 cID,
    uint256 collectibleId,
    uint256 versionNumber
  );

  event LogAddNewLicense(
    uint256 cID,
    string license
  );

  function random(uint256 cID) internal view returns (uint) {
    return uint(keccak256(abi.encodePacked(block.difficulty, block.timestamp, packStorage().collection[cID].totalTokenCount)));
  }

  function randomTokenID(address relics, uint256 cID) external relicSafety(relics) returns (uint256, uint256) {
    Storage storage ds = packStorage();

    uint256 randomID = random(cID) % ds.collection[cID].shuffleIDs.length;
    uint256 tokenID = ds.collection[cID].shuffleIDs[randomID];

    emit LogMintPack(msg.sender, tokenID);

    return (randomID, tokenID);
  }

  modifier onlyDAO() {
    require(msg.sender == packStorage().daoAddress, "Wrong address");
    _;
  }

  modifier relicSafety(address relics) {
    Storage storage ds = packStorage();
    require(relics == ds.relicsAddress);
    _;
  }

  /**
   * Map token order w/ URI upon mints
   * Sample token ID (edition #77) with collection of 12 different assets: 1200077
   */
  function createTokenIDs(uint256 cID, uint256 collectibleCount, uint16 editions) private {
    Storage storage ds = packStorage();

    for (uint16 i = 0; i < editions; i++) {
      uint32 tokenID = uint32((cID + 1) * 100000000) + uint32((collectibleCount + 1) * 100000) + uint32(i + 1);
      ds.collection[cID].shuffleIDs.push(tokenID);
    }
  }

  function createNewCollection(
    string memory _baseURI,
    bool _editioned,
    uint256[] memory _initParams,
    string[] memory _metadataKeys,
    string memory _licenseURI,
    address _mintPass,
    uint256 _mintPassDuration,
    bool[] memory _mintPassParams
  ) external onlyDAO {
    require(_initParams[1] <= 50, "Limit of 50");
    Storage storage ds = packStorage();

    ds.collection[ds.collectionCount].baseURI = _baseURI;
    ds.collection[ds.collectionCount].editioned = _editioned;
    ds.collection[ds.collectionCount].tokenPrice = _initParams[0];
    ds.collection[ds.collectionCount].bulkBuyLimit = uint16(_initParams[1]);
    ds.collection[ds.collectionCount].saleStartTime = _initParams[2];
    ds.collection[ds.collectionCount].licenseURI[0] = _licenseURI;
    ds.collection[ds.collectionCount].licenseVersion = 1;

    if (_mintPass != address(0)) {
      ds.collection[ds.collectionCount].mintPass = true;
      ds.collection[ds.collectionCount].mintPassAddress = _mintPass;
      ds.collection[ds.collectionCount].mintPassContract = ERC721(_mintPass);
      ds.collection[ds.collectionCount].mintPassDuration = _mintPassDuration;
      ds.collection[ds.collectionCount].mintPassOnly = _mintPassParams[0];
      ds.collection[ds.collectionCount].mintPassFree = _mintPassParams[1];
      ds.collection[ds.collectionCount].mintPassBurn = _mintPassParams[2];
    } else {
      ds.collection[ds.collectionCount].mintPass = false;
      ds.collection[ds.collectionCount].mintPassDuration = 0;
      ds.collection[ds.collectionCount].mintPassOnly = false;
      ds.collection[ds.collectionCount].mintPassFree = false;
      ds.collection[ds.collectionCount].mintPassBurn = false;
    }

    for (uint8 i; i < _metadataKeys.length; i++) {
      ds.collection[ds.collectionCount].metadataKeys[i] = _metadataKeys[i];
    }

    ds.collection[ds.collectionCount].metadataKeysLength = uint16(_metadataKeys.length);

    ds.collectionCount++;

    emit LogCreateNewCollection(ds.collectionCount);
  }

  // Add single collectible asset with main info and metadata properties
  function addCollectible(uint256 cID, string[] memory _coreData, uint16 _editions, string[] memory _assets, MetadataStore[] memory _metadataValues, Fee[] memory _fees) external onlyDAO {
    Storage storage ds = packStorage();

    Collection storage collection = ds.collection[cID];
    uint256 collectibleCount = collection.collectibleCount;

    uint256 sum = 0;
    for (uint256 i = 0; i < _fees.length; i++) {
      require(_fees[i].recipient != address(0x0), "No recipient");
      require(_fees[i].value != 0, "Fee negative");
      collection.secondaryFees[collectibleCount].push(Fee({
        recipient: _fees[i].recipient,
        value: _fees[i].value
      }));
      sum = sum.add(_fees[i].value);
    }

    require(sum < 10000, "Fee GT 100%");
    require(_editions > 0, "GT 0");

    collection.collectibles[collectibleCount] = SingleCollectible({
      title: _coreData[0],
      description: _coreData[1],
      count: _editions,
      currentVersion: uint16(_assets.length),
      assets: _assets,
      totalVersionCount: uint16(_assets.length)
    });

    uint8[] memory propertyNames = new uint8[](_metadataValues.length);
    string[] memory propertyValues = new string[](_metadataValues.length);
    bool[] memory modifiables = new bool[](_metadataValues.length);
    for (uint256 i = 0; i < _metadataValues.length; i++) {
      propertyNames[i] = _metadataValues[i].propertyKey;
      propertyValues[i] = _metadataValues[i].value;
      modifiables[i] = _metadataValues[i].modifiable; // 1 is modifiable, 0 is permanent
    }

    collection.metadata[collectibleCount] = Metadata({
      name: propertyNames,
      value: propertyValues,
      modifiable: modifiables,
      propertyCount: uint16(_metadataValues.length)
    });

    uint16 editions = _editions;
    createTokenIDs(cID, collectibleCount, editions);

    collection.collectibleCount++;
    collection.totalTokenCount = collection.totalTokenCount.add(editions);

    emit LogAddCollectible(cID, _coreData[0]);
  }

  function checkTokensForMintPass(uint256 cID, uint256 mintPassTokenId, address minter) private returns (bool) {
    Storage storage ds = packStorage();
    if (ds.collection[cID].mintPassContract.ownerOf(mintPassTokenId) == minter &&
        ds.collection[cID].mintPassClaims[mintPassTokenId] != true) {
      ds.collection[cID].mintPassClaims[mintPassTokenId] = true;
      if (ds.collection[cID].mintPassBurn) ds.collection[cID].mintPassContract.safeTransferFrom(msg.sender, address(0xdEaD), mintPassTokenId);
      return true;
    } else return false;
  }

  function checkMintPass(address relics, uint256 cID, uint256 mintPassTokenId, address users) external relicSafety(relics) returns (bool) {
    Storage storage ds = packStorage();

    bool canMintPass = false;
    if (ds.collection[cID].mintPass && checkTokensForMintPass(cID, mintPassTokenId, users)) canMintPass = true;

    if (ds.collection[cID].mintPassOnly) {
      require(canMintPass, "Mint pass only");
      require(block.timestamp > ds.collection[cID].saleStartTime - ds.collection[cID].mintPassDuration, "ERR: Sale start");
    } else {
      if (canMintPass) require (block.timestamp > (ds.collection[cID].saleStartTime - ds.collection[cID].mintPassDuration), "ERR: Sale start");
      else require(block.timestamp > ds.collection[cID].saleStartTime, "ERR: Sale start");
    }

    return canMintPass;
  }

  function bulkMintChecks(uint256 cID, uint256 amount) external {
    Storage storage ds = packStorage();

    require(amount > 0, 'Missing amount');
    require(!ds.collection[cID].mintPassOnly, 'Mint pass only');
    require(amount <= ds.collection[cID].bulkBuyLimit, "Over limit");
    require(amount <= ds.collection[cID].shuffleIDs.length, "Total supply reached");
    require((block.timestamp > ds.collection[cID].saleStartTime), "ERR: Sale start");
  }

  function mintPassClaimed(uint256 cID, uint256 tokenId) public view returns (bool) {
    Storage storage ds = packStorage();
    return (ds.collection[cID].mintPassClaims[tokenId] == true);
  }

  function remainingTokens(uint256 cID) public view returns (uint256) {
    Storage storage ds = packStorage();
    return ds.collection[cID].shuffleIDs.length;
  }

  // Modify property field only if marked as updateable
  function updateMetadata(uint256 cID, uint256 collectibleId, uint256 propertyIndex, string memory value) external onlyDAO {
    Storage storage ds = packStorage();
    require(ds.collection[cID].metadata[collectibleId - 1].modifiable[propertyIndex], 'Uneditable');
    ds.collection[cID].metadata[collectibleId - 1].value[propertyIndex] = value;
    emit LogUpdateMetadata(cID, collectibleId, propertyIndex, value);
  }

  // Add new asset, does not automatically increase current version
  function addVersion(uint256 cID, uint256 collectibleId, string memory asset) public onlyDAO {
    Storage storage ds = packStorage();
    ds.collection[cID].collectibles[collectibleId - 1].assets[ds.collection[cID].collectibles[collectibleId - 1].totalVersionCount - 1] = asset;
    ds.collection[cID].collectibles[collectibleId - 1].totalVersionCount++;
    emit LogAddVersion(cID, collectibleId, asset);
  }

  // Adds new license and updates version to latest
  function addNewLicense(uint256 cID, string memory _license) public onlyDAO {
    Storage storage ds = packStorage();
    require(cID < ds.collectionCount, 'ID DNE');
    ds.collection[cID].licenseURI[ds.collection[cID].licenseVersion] = _license;
    ds.collection[cID].licenseVersion++;
    emit LogAddNewLicense(cID, _license);
  }

  function getLicense(uint256 cID, uint256 versionNumber) public view returns (string memory) {
    Storage storage ds = packStorage();
    return ds.collection[cID].licenseURI[versionNumber - 1];
  }

  function getCurrentLicense(uint256 cID) public view returns (string memory) {
    Storage storage ds = packStorage();
    return ds.collection[cID].licenseURI[ds.collection[cID].licenseVersion - 1];
  }

  function getCollectionInfo(uint256 cID) public view returns (string memory) {
    Storage storage ds = packStorage();
    
    string memory encodedMetadata = '';
    for (uint i = 0; i < ds.collection[cID].metadataKeysLength; i++) {
      encodedMetadata = string(abi.encodePacked(
        encodedMetadata,
        '{"index":"',
        HelperFunctions.toString(i),
        '", "name":"',
        ds.collection[cID].metadataKeys[i],
        '"}',
        i == ds.collection[cID].metadataKeysLength - 1 ? '' : ',')
      );
    }

    return string(
      abi.encodePacked(
        '{"weiPrice": "',
        HelperFunctions.toString(ds.collection[cID].tokenPrice),
        '", "saleStart": "',
        HelperFunctions.toString(ds.collection[cID].saleStartTime),
        '", "mintPass": "',
        ds.collection[cID].mintPass ? 'true' : 'false',
        '", "passAddress": "',
        HelperFunctions.addressToString(ds.collection[cID].mintPassAddress),
        '", "passDuration": "',
        HelperFunctions.toString(ds.collection[cID].mintPassDuration),
        '", "passOnly": "',
        ds.collection[cID].mintPassOnly ? 'true' : 'false',
        '", "passBurn": "',
        ds.collection[cID].mintPassBurn ? 'true' : 'false',
        '", "metadata": [',
          encodedMetadata,
        '] }'
      )
    );
  }

  // Dynamic base64 encoded metadata generation using on-chain metadata and edition numbers
  function tokenURI(uint256 tokenId) public view returns (string memory) {
    Storage storage ds = packStorage();

    uint256 edition = HelperFunctions.safeParseInt(HelperFunctions.substring(HelperFunctions.toString(tokenId), bytes(HelperFunctions.toString(tokenId)).length - 5, bytes(HelperFunctions.toString(tokenId)).length)) - 1;
    uint256 collectibleId = HelperFunctions.safeParseInt(HelperFunctions.substring(HelperFunctions.toString(tokenId), bytes(HelperFunctions.toString(tokenId)).length - 8, bytes(HelperFunctions.toString(tokenId)).length - 5)) - 1;
    uint256 cID = ((tokenId - ((collectibleId + 1) * 100000)) - (edition + 1)) / 100000000 - 1;
    string memory encodedMetadata = '';

    Collection storage collection = ds.collection[cID];

    for (uint i = 0; i < collection.metadata[collectibleId].propertyCount; i++) {
      encodedMetadata = string(abi.encodePacked(
        encodedMetadata,
        '{"trait_type":"',
        collection.metadataKeys[collection.metadata[collectibleId].name[i]],
        '", "value":"',
        collection.metadata[collectibleId].value[i],
        '", "permanent":"',
        collection.metadata[collectibleId].modifiable[i] ? 'false' : 'true',
        '"}',
        i == collection.metadata[collectibleId].propertyCount - 1 ? '' : ',')
      );
    }

    SingleCollectible storage collectible = collection.collectibles[collectibleId];
    uint256 asset = collectible.currentVersion - 1;
    string memory encoded = string(
        abi.encodePacked(
          'data:application/json;base64,',
          Base64.encode(
            bytes(
              abi.encodePacked(
                '{"name":"',
                collectible.title,
                collection.editioned ? ' #' : '',
                collection.editioned ? HelperFunctions.toString(edition + 1) : '',
                '", "description":"',
                collectible.description,
                '", "image": "',
                collection.baseURI,
                collectible.assets[asset],
                '", "license": "',
                getCurrentLicense(cID),
                '", "attributes": [',
                encodedMetadata,
                '] }'
              )
            )
          )
        )
      );

    return encoded;
  }

  // Secondary sale fees apply to each individual collectible ID (will apply to a range of tokenIDs);
  function getFeeRecipients(uint256 tokenId) public view returns (address payable[] memory) {
    Storage storage ds = packStorage();

    uint256 edition = HelperFunctions.safeParseInt(HelperFunctions.substring(HelperFunctions.toString(tokenId), bytes(HelperFunctions.toString(tokenId)).length - 5, bytes(HelperFunctions.toString(tokenId)).length)) - 1;
    uint256 collectibleId = HelperFunctions.safeParseInt(HelperFunctions.substring(HelperFunctions.toString(tokenId), bytes(HelperFunctions.toString(tokenId)).length - 8, bytes(HelperFunctions.toString(tokenId)).length - 5)) - 1;
    uint256 cID = ((tokenId - ((collectibleId + 1) * 100000)) - (edition + 1)) / 100000000 - 1;
    Fee[] memory _fees = ds.collection[cID].secondaryFees[collectibleId];
    address payable[] memory result = new address payable[](_fees.length);
    for (uint i = 0; i < _fees.length; i++) {
      result[i] = _fees[i].recipient;
    }
    return result;
  }

  function getFeeBps(uint256 tokenId) public view returns (uint[] memory) {
    Storage storage ds = packStorage();

    uint256 edition = HelperFunctions.safeParseInt(HelperFunctions.substring(HelperFunctions.toString(tokenId), bytes(HelperFunctions.toString(tokenId)).length - 5, bytes(HelperFunctions.toString(tokenId)).length)) - 1;
    uint256 collectibleId = HelperFunctions.safeParseInt(HelperFunctions.substring(HelperFunctions.toString(tokenId), bytes(HelperFunctions.toString(tokenId)).length - 8, bytes(HelperFunctions.toString(tokenId)).length - 5)) - 1;
    uint256 cID = ((tokenId - ((collectibleId + 1) * 100000)) - (edition + 1)) / 100000000 - 1;
    Fee[] memory _fees = ds.collection[cID].secondaryFees[collectibleId];
    uint[] memory result = new uint[](_fees.length);
    for (uint i = 0; i < _fees.length; i++) {
      result[i] = _fees[i].value;
    }

    return result;
  }

  function royaltyInfo(uint256 tokenId, uint256 value) public view returns (address recipient, uint256 amount){
    address payable[] memory rec = getFeeRecipients(tokenId);
    require(rec.length <= 1, "More than 1 royalty recipient");

    if (rec.length == 0) return (address(this), 0);
    return (rec[0], getFeeBps(tokenId)[0] * value / 10000);
  }
}

File 7 of 19 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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;
    }
}

File 8 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

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

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

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

File 10 of 19 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

File 11 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

File 12 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC165.sol";

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

File 13 of 19 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // 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);
            }
        }
    }
}

File 14 of 19 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

File 15 of 19 : EnumerableMap.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

File 16 of 19 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

File 17 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

File 18 of 19 : base64.sol
// SPDX-License-Identifier: MIT

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides a function for encoding some bytes in base64
library Base64 {
    string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';
        
        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)
            
            // prepare the lookup table
            let tablePtr := add(table, 1)
            
            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))
            
            // result ptr, jump over length
            let resultPtr := add(result, 32)
            
            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
               dataPtr := add(dataPtr, 3)
               
               // read 3 bytes
               let input := mload(dataPtr)
               
               // write 4 characters
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F)))))
               resultPtr := add(resultPtr, 1)
               mstore(resultPtr, shl(248, mload(add(tablePtr, and(        input,  0x3F)))))
               resultPtr := add(resultPtr, 1)
            }
            
            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }
        
        return result;
    }
}

File 19 of 19 : HelperFunctions.sol
// SPDX-License-Identifier: MIT
// Written by Tim Kang <> illestrater
// Thought innovation by Monstercat
// Product by universe.xyz

pragma solidity >=0.6.0 <0.8.0;
pragma experimental ABIEncoderV2;

library HelperFunctions {
    function toString(uint256 value) internal pure returns (string memory) {
    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);
  }

  function safeParseInt(string memory _a) internal pure returns (uint _parsedInt) {
    return safeParseInt(_a, 0);
  }

  function safeParseInt(string memory _a, uint _b) internal pure returns (uint _parsedInt) {
    bytes memory bresult = bytes(_a);
    uint mint = 0;
    bool decimals = false;
    for (uint i = 0; i < bresult.length; i++) {
      if ((uint(uint8(bresult[i])) >= 48) && (uint(uint8(bresult[i])) <= 57)) {
        if (decimals) {
            if (_b == 0) break;
            else _b--;
        }
        mint *= 10;
        mint += uint(uint8(bresult[i])) - 48;
      } else if (uint(uint8(bresult[i])) == 46) {
        require(!decimals, 'ERR: More than one decimal');
        decimals = true;
      } else {
        revert("ERR: Non-numeral character");
      }
    }
    if (_b > 0) {
      mint *= 10 ** _b;
    }
    return mint;
  }

  function substring(string memory str, uint startIndex, uint endIndex) internal pure returns (string memory) {
    bytes memory strBytes = bytes(str);
    bytes memory result = new bytes(endIndex-startIndex);
    for(uint i = startIndex; i < endIndex; i++) {
        result[i-startIndex] = strBytes[i];
    }
    return string(result);
  }

  function addressToString(address _address) internal pure returns(string memory) {
    bytes32 _bytes = bytes32(uint256(_address));
    bytes memory HEX = "0123456789abcdef";
    bytes memory _string = new bytes(42);
    _string[0] = '0';
    _string[1] = 'x';
    for(uint i = 0; i < 20; i++) {
        _string[2+i*2] = HEX[uint8(_bytes[i + 12] >> 4)];
        _string[3+i*2] = HEX[uint8(_bytes[i + 12] & 0x0f)];
    }
    return string(_string);
  }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {
    "contracts/LibPackStorage.sol": {
      "LibPackStorage": "0x3e0a32e80e4dbf13c74feb384cce4fbe01d90784"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"bool","name":"_editioned","type":"bool"},{"internalType":"uint256[]","name":"_initParams","type":"uint256[]"},{"internalType":"string[]","name":"_metadataKeys","type":"string[]"},{"internalType":"string","name":"_licenseURI","type":"string"},{"internalType":"address","name":"_mintPass","type":"address"},{"internalType":"uint256","name":"_mintPassDuration","type":"uint256"},{"internalType":"bool[]","name":"_mintPassParams","type":"bool[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"cID","type":"uint256"},{"internalType":"string","name":"_license","type":"string"}],"name":"addNewLicense","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cID","type":"uint256"},{"internalType":"uint256","name":"collectibleId","type":"uint256"},{"internalType":"string","name":"asset","type":"string"}],"name":"addVersion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"cID","type":"uint256"},{"internalType":"string[][]","name":"_coreData","type":"string[][]"},{"internalType":"uint16[]","name":"_editions","type":"uint16[]"},{"internalType":"string[][]","name":"_assets","type":"string[][]"},{"components":[{"internalType":"uint8","name":"propertyKey","type":"uint8"},{"internalType":"string","name":"value","type":"string"},{"internalType":"bool","name":"modifiable","type":"bool"}],"internalType":"struct LibPackStorage.MetadataStore[][]","name":"_metadataValues","type":"tuple[][]"},{"components":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct LibPackStorage.Fee[][]","name":"_fees","type":"tuple[][]"}],"name":"bulkAddCollectible","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bulkMintPack","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"bool","name":"_editioned","type":"bool"},{"internalType":"uint256[]","name":"_initParams","type":"uint256[]"},{"internalType":"string[]","name":"_metadataKeys","type":"string[]"},{"internalType":"string","name":"_licenseURI","type":"string"},{"internalType":"address","name":"_mintPass","type":"address"},{"internalType":"uint256","name":"_mintPassDuration","type":"uint256"},{"internalType":"bool[]","name":"_mintPassParams","type":"bool[]"}],"name":"createNewCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCollectionCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"cID","type":"uint256"}],"name":"getCollectionInfo","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"cID","type":"uint256"},{"internalType":"uint256","name":"versionNumber","type":"uint256"}],"name":"getLicense","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"cID","type":"uint256"},{"internalType":"uint256","name":"mintPassTokenId","type":"uint256"}],"name":"mintPack","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cID","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintPassClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"cID","type":"uint256"}],"name":"remainingTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_daoAddress","type":"address"}],"name":"transferDAOownership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cID","type":"uint256"},{"internalType":"uint256","name":"collectibleId","type":"uint256"},{"internalType":"uint256","name":"propertyIndex","type":"uint256"},{"internalType":"string","name":"value","type":"string"}],"name":"updateMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162006d8738038062006d87833981810160405281019062000037919062000706565b8989620000516301ffc9a760e01b620001d560201b60201c565b81600690805190602001906200006992919062000428565b5080600790805190602001906200008292919062000428565b506200009b6380ac58cd60e01b620001d560201b60201c565b620000b3635b5e139f60e01b620001d560201b60201c565b620000cb63780e9d6360e01b620001d560201b60201c565b50506001600a819055506000620000ec620002ad60201b620023271760201c565b9050308160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550338160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018160010160146101000a81548160ff02191690831515021790555060008160020181905550620001b38989898989898989620002da60201b60201c565b620001c4896200040c60201b60201c565b505050505050505050505062000f52565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141562000241576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002389062000c72565b60405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000807f8ae35b0282f76a84f1af63b27d5d1e20fc710ae70d8a101653e7c1b36c5fe8b590508091505090565b6000620002f1620002ad60201b620023271760201c565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161462000388576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200037f9062000c50565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d9078463b7f430f58a8a8a8a8a8a8a8a6040518963ffffffff1660e01b8152600401620003cf98979695949392919062000b9f565b60006040518083038186803b158015620003e857600080fd5b505af4158015620003fd573d6000803e3d6000fd5b50505050505050505050505050565b80600990805190602001906200042492919062000428565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200046b57805160ff19168380011785556200049c565b828001600101855582156200049c579182015b828111156200049b5782518255916020019190600101906200047e565b5b509050620004ab9190620004af565b5090565b5b80821115620004ca576000816000905550600101620004b0565b5090565b600081519050620004df8162000f04565b92915050565b600082601f830112620004f757600080fd5b81516200050e620005088262000cc8565b62000c94565b915081818352602084019350602081019050838560208402820111156200053457600080fd5b60005b838110156200056857816200054d88826200067c565b84526020840193506020830192505060018101905062000537565b5050505092915050565b600082601f8301126200058457600080fd5b81516200059b620005958262000cf7565b62000c94565b9150818183526020840193506020810190508360005b83811015620005e55781518601620005ca888262000693565b845260208401935060208301925050600181019050620005b1565b5050505092915050565b600082601f8301126200060157600080fd5b815162000618620006128262000d26565b62000c94565b915081818352602084019350602081019050838560208402820111156200063e57600080fd5b60005b83811015620006725781620006578882620006ef565b84526020840193506020830192505060018101905062000641565b5050505092915050565b6000815190506200068d8162000f1e565b92915050565b600082601f830112620006a557600080fd5b8151620006bc620006b68262000d55565b62000c94565b91508082526020830160208301858383011115620006d957600080fd5b620006e683828462000ebb565b50505092915050565b600081519050620007008162000f38565b92915050565b6000806000806000806000806000806101408b8d0312156200072757600080fd5b60008b015167ffffffffffffffff8111156200074257600080fd5b620007508d828e0162000693565b9a505060208b015167ffffffffffffffff8111156200076e57600080fd5b6200077c8d828e0162000693565b99505060408b015167ffffffffffffffff8111156200079a57600080fd5b620007a88d828e0162000693565b9850506060620007bb8d828e016200067c565b97505060808b015167ffffffffffffffff811115620007d957600080fd5b620007e78d828e01620005ef565b96505060a08b015167ffffffffffffffff8111156200080557600080fd5b620008138d828e0162000572565b95505060c08b015167ffffffffffffffff8111156200083157600080fd5b6200083f8d828e0162000693565b94505060e0620008528d828e01620004ce565b935050610100620008668d828e01620006ef565b9250506101208b015167ffffffffffffffff8111156200088557600080fd5b620008938d828e01620004e5565b9150509295989b9194979a5092959850565b6000620008b3838362000a66565b60208301905092915050565b6000620008cd838362000ab8565b905092915050565b6000620008e3838362000b8e565b60208301905092915050565b620008fa8162000e71565b82525050565b60006200090d8262000db8565b62000919818562000e0b565b9350620009268362000d88565b8060005b838110156200095d578151620009418882620008a5565b97506200094e8362000de4565b9250506001810190506200092a565b5085935050505092915050565b6000620009778262000dc3565b62000983818562000e1c565b935083602082028501620009978562000d98565b8060005b85811015620009d95784840389528151620009b78582620008bf565b9450620009c48362000df1565b925060208a019950506001810190506200099b565b50829750879550505050505092915050565b6000620009f88262000dce565b62000a04818562000e2d565b935062000a118362000da8565b8060005b8381101562000a4857815162000a2c8882620008d5565b975062000a398362000dfe565b92505060018101905062000a15565b5085935050505092915050565b62000a608162000e85565b82525050565b62000a718162000e85565b82525050565b600062000a848262000dd9565b62000a90818562000e4f565b935062000aa281856020860162000ebb565b62000aad8162000ef3565b840191505092915050565b600062000ac58262000dd9565b62000ad1818562000e60565b935062000ae381856020860162000ebb565b62000aee8162000ef3565b840191505092915050565b600062000b08600d8362000e3e565b91507f57726f6e672061646472657373000000000000000000000000000000000000006000830152602082019050919050565b600062000b4a601c8362000e3e565b91507f4552433136353a20696e76616c696420696e74657266616365206964000000006000830152602082019050919050565b62000b888162000eb1565b82525050565b62000b998162000eb1565b82525050565b600061010082019050818103600083015262000bbc818b62000a77565b905062000bcd602083018a62000a55565b818103604083015262000be18189620009eb565b9050818103606083015262000bf781886200096a565b9050818103608083015262000c0d818762000a77565b905062000c1e60a0830186620008ef565b62000c2d60c083018562000b7d565b81810360e083015262000c41818462000900565b90509998505050505050505050565b6000602082019050818103600083015262000c6b8162000af9565b9050919050565b6000602082019050818103600083015262000c8d8162000b3b565b9050919050565b6000604051905081810181811067ffffffffffffffff8211171562000cbe5762000cbd62000ef1565b5b8060405250919050565b600067ffffffffffffffff82111562000ce65762000ce562000ef1565b5b602082029050602081019050919050565b600067ffffffffffffffff82111562000d155762000d1462000ef1565b5b602082029050602081019050919050565b600067ffffffffffffffff82111562000d445762000d4362000ef1565b5b602082029050602081019050919050565b600067ffffffffffffffff82111562000d735762000d7262000ef1565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600062000e7e8262000e91565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000edb57808201518184015260208101905062000ebe565b8381111562000eeb576000848401525b50505050565bfe5b6000601f19601f8301169050919050565b62000f0f8162000e71565b811462000f1b57600080fd5b50565b62000f298162000e85565b811462000f3557600080fd5b50565b62000f438162000eb1565b811462000f4f57600080fd5b50565b615e258062000f626000396000f3fe6080604052600436106101f95760003560e01c80636352211e1161010d578063b7f430f5116100a0578063d4e4d3dd1161006f578063d4e4d3dd14610784578063e167a383146107c1578063e985e9c5146107ea578063f2b5cdde14610827578063f3fef3a314610864576101f9565b8063b7f430f5146106b8578063b88d4fde146106e1578063b9c4d9fb1461070a578063c87b56dd14610747576101f9565b80637101b304116100dc5780637101b304146105fe57806395d89b41146106275780639826227f14610652578063a22cb4651461068f576101f9565b80636352211e1461053d57806364b8c4a71461057a5780636c0360eb1461059657806370a08231146105c1576101f9565b80631c10106f11610190578063380fb0cb1161015f578063380fb0cb14610469578063397e3f371461049257806342842e0e146104ae5780634f6ccce7146104d75780635795415914610514576101f9565b80631c10106f1461039a57806323b872dd146103c55780632a55205a146103ee5780632f745c591461042c576101f9565b80630ebd4c7f116101cc5780630ebd4c7f146102cc57806315182df514610309578063171ee95a1461033257806318160ddd1461036f576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190613ef5565b61088d565b604051610232919061527e565b60405180910390f35b34801561024757600080fd5b5061025061093d565b60405161025d9190615299565b60405180910390f35b34801561027257600080fd5b5061028d600480360381019061028891906140b2565b6109df565b60405161029a919061513c565b60405180910390f35b3480156102af57600080fd5b506102ca60048036038101906102c59190613dd2565b610a64565b005b3480156102d857600080fd5b506102f360048036038101906102ee91906140b2565b610b7c565b604051610300919061525c565b60405180910390f35b34801561031557600080fd5b50610330600480360381019061032b9190614104565b610c59565b005b34801561033e57600080fd5b50610359600480360381019061035491906140b2565b610dea565b6040516103669190615637565b60405180910390f35b34801561037b57600080fd5b50610384610e7a565b6040516103919190615637565b60405180910390f35b3480156103a657600080fd5b506103af610e8b565b6040516103bc9190615637565b60405180910390f35b3480156103d157600080fd5b506103ec60048036038101906103e79190613ccc565b610e9e565b005b3480156103fa57600080fd5b5061041560048036038101906104109190614259565b610efe565b6040516104239291906151cc565b60405180910390f35b34801561043857600080fd5b50610453600480360381019061044e9190613dd2565b610fdc565b6040516104609190615637565b60405180910390f35b34801561047557600080fd5b50610490600480360381019061048b9190613c67565b611037565b005b6104ac60048036038101906104a79190614259565b611146565b005b3480156104ba57600080fd5b506104d560048036038101906104d09190613ccc565b61134e565b005b3480156104e357600080fd5b506104fe60048036038101906104f991906140b2565b61136e565b60405161050b9190615637565b60405180910390f35b34801561052057600080fd5b5061053b600480360381019061053691906142d1565b611391565b005b34801561054957600080fd5b50610564600480360381019061055f91906140b2565b6114a0565b604051610571919061513c565b60405180910390f35b610594600480360381019061058f9190614259565b6114d7565b005b3480156105a257600080fd5b506105ab61172d565b6040516105b89190615299565b60405180910390f35b3480156105cd57600080fd5b506105e860048036038101906105e39190613c3e565b6117cf565b6040516105f59190615637565b60405180910390f35b34801561060a57600080fd5b5061062560048036038101906106209190614338565b61188e565b005b34801561063357600080fd5b5061063c6119a0565b6040516106499190615299565b60405180910390f35b34801561065e57600080fd5b5061067960048036038101906106749190614259565b611a42565b604051610686919061527e565b60405180910390f35b34801561069b57600080fd5b506106b660048036038101906106b19190613d96565b611ad5565b005b3480156106c457600080fd5b506106df60048036038101906106da9190613f88565b611c56565b005b3480156106ed57600080fd5b5061070860048036038101906107039190613d1b565b611d74565b005b34801561071657600080fd5b50610731600480360381019061072c91906140b2565b611dd6565b60405161073e919061523a565b60405180910390f35b34801561075357600080fd5b5061076e600480360381019061076991906140b2565b611eb3565b60405161077b9190615299565b60405180910390f35b34801561079057600080fd5b506107ab60048036038101906107a691906140b2565b611f48565b6040516107b89190615299565b60405180910390f35b3480156107cd57600080fd5b506107e860048036038101906107e39190614205565b611fdd565b005b3480156107f657600080fd5b50610811600480360381019061080c9190613c90565b6120e9565b60405161081e919061527e565b60405180910390f35b34801561083357600080fd5b5061084e60048036038101906108499190614259565b61217d565b60405161085b9190615299565b60405180910390f35b34801561087057600080fd5b5061088b60048036038101906108869190613dd2565b612215565b005b600063b779958460e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109265750632a55205a60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610936575061093582612354565b5b9050919050565b606060068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109d55780601f106109aa576101008083540402835291602001916109d5565b820191906000526020600020905b8154815290600101906020018083116109b857829003601f168201915b5050505050905090565b60006109ea826123bb565b610a29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a209061555c565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a6f826114a0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ae0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad79061559c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610aff6123d8565b73ffffffffffffffffffffffffffffffffffffffff161480610b2e5750610b2d81610b286123d8565b6120e9565b5b610b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b649061549c565b60405180910390fd5b610b7783836123e0565b505050565b6060610b87826123bb565b610bc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbd906154bc565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d90784630ebd4c7f836040518263ffffffff1660e01b8152600401610bfd919061561c565b60006040518083038186803b158015610c1557600080fd5b505af4158015610c29573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610c529190613e8b565b9050919050565b6000610c63612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee9061535c565b60405180910390fd5b60005b8651811015610de057733e0a32e80e4dbf13c74feb384cce4fbe01d90784638de0994b89898481518110610d2a57fe5b6020026020010151898581518110610d3e57fe5b6020026020010151898681518110610d5257fe5b6020026020010151898781518110610d6657fe5b6020026020010151898881518110610d7a57fe5b60200260200101516040518763ffffffff1660e01b8152600401610da396959493929190615652565b60006040518083038186803b158015610dbb57600080fd5b505af4158015610dcf573d6000803e3d6000fd5b505050508080600101915050610cfa565b5050505050505050565b6000733e0a32e80e4dbf13c74feb384cce4fbe01d9078463171ee95a836040518263ffffffff1660e01b8152600401610e23919061561c565b60206040518083038186803b158015610e3b57600080fd5b505af4158015610e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7391906140db565b9050919050565b6000610e866002612499565b905090565b6000610e95612327565b60020154905090565b610eaf610ea96123d8565b826124ae565b610eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee5906155bc565b60405180910390fd5b610ef983838361258c565b505050565b600080610f0a846123bb565b610f49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f40906154bc565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d90784632a55205a85856040518363ffffffff1660e01b8152600401610f829291906156ff565b604080518083038186803b158015610f9957600080fd5b505af4158015610fad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd19190613e0e565b915091509250929050565b600061102f82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206127a390919063ffffffff16565b905092915050565b6000611041612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cc9061535c565b60405180910390fd5b60006110df612327565b9050828160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018160010160146101000a81548160ff021916908315150217905550505050565b6002600a54141561118c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611183906155fc565b60405180910390fd5b6002600a81905550600061119e612327565b9050733e0a32e80e4dbf13c74feb384cce4fbe01d9078463db2a307584846040518363ffffffff1660e01b81526004016111d99291906156ff565b60006040518083038186803b1580156111f157600080fd5b505af4158015611205573d6000803e3d6000fd5b50505050600061124861123984846003016000888152602001908152602001600020600201546127bd90919063ffffffff16565b3461282d90919063ffffffff16565b9050600081111561130857600061125d6123d8565b73ffffffffffffffffffffffffffffffffffffffff168260405161128090615127565b60006040518083038185875af1925050503d80600081146112bd576040519150601f19603f3d011682016040523d82523d6000602084013e6112c2565b606091505b5050905080611306576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fd9061539c565b60405180910390fd5b505b60005b8381101561133f57600061131e8661287d565b905061133161132b6123d8565b82612a32565b50808060010191505061130b565b5050506001600a819055505050565b61136983838360405180602001604052806000815250611d74565b505050565b600080611385836002612bc090919063ffffffff16565b50905080915050919050565b600061139b612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461142f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114269061535c565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d9078463579541598585856040518463ffffffff1660e01b815260040161146a93929190615728565b60006040518083038186803b15801561148257600080fd5b505af4158015611496573d6000803e3d6000fd5b5050505050505050565b60006114d082604051806060016040528060298152602001615dc7602991396002612bec9092919063ffffffff16565b9050919050565b6002600a54141561151d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611514906155fc565b60405180910390fd5b6002600a81905550600061152f612327565b90506000733e0a32e80e4dbf13c74feb384cce4fbe01d907846352d29bec308686336040518563ffffffff1660e01b815260040161157094939291906151f5565b60206040518083038186803b15801561158857600080fd5b505af415801561159c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c09190613ecc565b905060008180156115f3575082600301600086815260200190815260200160002060050160049054906101000a900460ff165b156116135761160c60003461282d90919063ffffffff16565b9050611641565b61163e836003016000878152602001908152602001600020600201543461282d90919063ffffffff16565b90505b60008111156116ff5760006116546123d8565b73ffffffffffffffffffffffffffffffffffffffff168260405161167790615127565b60006040518083038185875af1925050503d80600081146116b4576040519150601f19603f3d011682016040523d82523d6000602084013e6116b9565b606091505b50509050806116fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f49061539c565b60405180910390fd5b505b600061170a8661287d565b905061171d6117176123d8565b82612a32565b505050506001600a819055505050565b606060098054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117c55780601f1061179a576101008083540402835291602001916117c5565b820191906000526020600020905b8154815290600101906020018083116117a857829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611840576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611837906154dc565b60405180910390fd5b611887600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612c0b565b9050919050565b6000611898612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461192c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119239061535c565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d90784637101b304868686866040518563ffffffff1660e01b81526004016119699493929190615766565b60006040518083038186803b15801561198157600080fd5b505af4158015611995573d6000803e3d6000fd5b505050505050505050565b606060078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611a385780601f10611a0d57610100808354040283529160200191611a38565b820191906000526020600020905b815481529060010190602001808311611a1b57829003601f168201915b5050505050905090565b6000733e0a32e80e4dbf13c74feb384cce4fbe01d90784639826227f84846040518363ffffffff1660e01b8152600401611a7d9291906156ff565b60206040518083038186803b158015611a9557600080fd5b505af4158015611aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611acd9190613ecc565b905092915050565b611add6123d8565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b429061541c565b60405180910390fd5b8060056000611b586123d8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c056123d8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c4a919061527e565b60405180910390a35050565b6000611c60612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611cf4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ceb9061535c565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d9078463b7f430f58a8a8a8a8a8a8a8a6040518963ffffffff1660e01b8152600401611d399897969594939291906152bb565b60006040518083038186803b158015611d5157600080fd5b505af4158015611d65573d6000803e3d6000fd5b50505050505050505050505050565b611d85611d7f6123d8565b836124ae565b611dc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbb906155bc565b60405180910390fd5b611dd084848484612c20565b50505050565b6060611de1826123bb565b611e20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e17906154bc565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d9078463b9c4d9fb836040518263ffffffff1660e01b8152600401611e57919061561c565b60006040518083038186803b158015611e6f57600080fd5b505af4158015611e83573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611eac9190613e4a565b9050919050565b6060733e0a32e80e4dbf13c74feb384cce4fbe01d9078463c87b56dd836040518263ffffffff1660e01b8152600401611eec919061561c565b60006040518083038186803b158015611f0457600080fd5b505af4158015611f18573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611f419190613f47565b9050919050565b6060733e0a32e80e4dbf13c74feb384cce4fbe01d9078463d4e4d3dd836040518263ffffffff1660e01b8152600401611f81919061561c565b60006040518083038186803b158015611f9957600080fd5b505af4158015611fad573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611fd69190613f47565b9050919050565b6000611fe7612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461207b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120729061535c565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d9078463e167a38384846040518363ffffffff1660e01b81526004016120b49291906156cf565b60006040518083038186803b1580156120cc57600080fd5b505af41580156120e0573d6000803e3d6000fd5b50505050505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060733e0a32e80e4dbf13c74feb384cce4fbe01d9078463f2b5cdde84846040518363ffffffff1660e01b81526004016121b89291906156ff565b60006040518083038186803b1580156121d057600080fd5b505af41580156121e4573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061220d9190613f47565b905092915050565b600061221f612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146122b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122aa9061535c565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168262030d40906040516122dc90615127565b600060405180830381858888f193505050503d806000811461231a576040519150601f19603f3d011682016040523d82523d6000602084013e61231f565b606091505b505050505050565b6000807f8ae35b0282f76a84f1af63b27d5d1e20fc710ae70d8a101653e7c1b36c5fe8b590508091505090565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b60006123d1826002612c7c90919063ffffffff16565b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612453836114a0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006124a782600001612c96565b9050919050565b60006124b9826123bb565b6124f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ef9061547c565b60405180910390fd5b6000612503836114a0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061257257508373ffffffffffffffffffffffffffffffffffffffff1661255a846109df565b73ffffffffffffffffffffffffffffffffffffffff16145b80612583575061258281856120e9565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166125ac826114a0565b73ffffffffffffffffffffffffffffffffffffffff1614612602576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f99061557c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612672576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612669906153fc565b60405180910390fd5b61267d838383612ca7565b6126886000826123e0565b6126d981600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612cac90919063ffffffff16565b5061272b81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612cc690919063ffffffff16565b5061274281836002612ce09092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006127b28360000183612d15565b60001c905092915050565b6000808314156127d05760009050612827565b60008284029050828482816127e157fe5b0414612822576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128199061553c565b60405180910390fd5b809150505b92915050565b600082821115612872576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128699061543c565b60405180910390fd5b818303905092915050565b600080612888612327565b9050600080733e0a32e80e4dbf13c74feb384cce4fbe01d9078463c4b49a3b30876040518363ffffffff1660e01b81526004016128c69291906151a3565b604080518083038186803b1580156128dd57600080fd5b505af41580156128f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129159190614295565b91509150826003016000868152602001908152602001600020600901600184600301600088815260200190815260200160002060090180549050038154811061295a57fe5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff1683600301600087815260200190815260200160002060090183815481106129a357fe5b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055508260030160008681526020019081526020016000206009018054806129f757fe5b60019003818190600052602060002090600891828204019190066004026101000a81549063ffffffff02191690559055809350505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612aa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a999061551c565b60405180910390fd5b612aab816123bb565b15612aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ae2906153dc565b60405180910390fd5b612af760008383612ca7565b612b4881600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612cc690919063ffffffff16565b50612b5f81836002612ce09092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080600080612bd38660000186612d82565b915091508160001c8160001c9350935050509250929050565b6000612bff846000018460001b84612e05565b60001c90509392505050565b6000612c1982600001612e96565b9050919050565b612c2b84848461258c565b612c3784848484612ea7565b612c76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6d906153bc565b60405180910390fd5b50505050565b6000612c8e836000018360001b61300b565b905092915050565b600081600001805490509050919050565b505050565b6000612cbe836000018360001b61302e565b905092915050565b6000612cd8836000018360001b613116565b905092915050565b6000612d0c846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b613186565b90509392505050565b600081836000018054905011612d60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d579061537c565b60405180910390fd5b826000018281548110612d6f57fe5b9060005260206000200154905092915050565b60008082846000018054905011612dce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dc5906154fc565b60405180910390fd5b6000846000018481548110612ddf57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008084600101600085815260200190815260200160002054905060008114158390612e67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5e9190615299565b60405180910390fd5b50846000016001820381548110612e7a57fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b6000612ec88473ffffffffffffffffffffffffffffffffffffffff16613262565b612ed55760019050613003565b6060612f9c63150b7a0260e01b612eea6123d8565b888787604051602401612f009493929190615157565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001615d95603291398773ffffffffffffffffffffffffffffffffffffffff166132759092919063ffffffff16565b9050600081806020019051810190612fb49190613f1e565b905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b600080836001016000848152602001908152602001600020541415905092915050565b6000808360010160008481526020019081526020016000205490506000811461310a576000600182039050600060018660000180549050039050600086600001828154811061307957fe5b906000526020600020015490508087600001848154811061309657fe5b90600052602060002001819055506001830187600101600083815260200190815260200160002081905550866000018054806130ce57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050613110565b60009150505b92915050565b6000613122838361328d565b61317b578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613180565b600090505b92915050565b600080846001016000858152602001908152602001600020549050600081141561322d5784600001604051806040016040528086815260200185815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000155602082015181600101555050846000018054905085600101600086815260200190815260200160002081905550600191505061325b565b8285600001600183038154811061324057fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600080823b905060008111915050919050565b606061328484846000856132b0565b90509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b6060824710156132f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132ec9061545c565b60405180910390fd5b6132fe85613262565b61333d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613334906155dc565b60405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516133679190615110565b60006040518083038185875af1925050503d80600081146133a4576040519150601f19603f3d011682016040523d82523d6000602084013e6133a9565b606091505b50915091506133b98282866133c5565b92505050949350505050565b606083156133d557829050613425565b6000835111156133e85782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341c9190615299565b60405180910390fd5b9392505050565b60008135905061343b81615cf3565b92915050565b60008151905061345081615cf3565b92915050565b60008135905061346581615d0a565b92915050565b60008151905061347a81615d0a565b92915050565b600082601f83011261349157600080fd5b81516134a461349f826157e3565b6157b2565b915081818352602084019350602081019050838560208402820111156134c957600080fd5b60005b838110156134f957816134df888261346b565b8452602084019350602083019250506001810190506134cc565b5050505092915050565b600082601f83011261351457600080fd5b81356135276135228261580f565b6157b2565b9150818183526020840193506020810190508360005b8381101561356d578135860161355388826136e2565b84526020840193506020830192505060018101905061353d565b5050505092915050565b600082601f83011261358857600080fd5b813561359b6135968261583b565b6157b2565b9150818183526020840193506020810190508360005b838110156135e157813586016135c78882613756565b8452602084019350602083019250506001810190506135b1565b5050505092915050565b600082601f8301126135fc57600080fd5b813561360f61360a82615867565b6157b2565b9150818183526020840193506020810190508360005b83811015613655578135860161363b88826137d9565b845260208401935060208301925050600181019050613625565b5050505092915050565b600082601f83011261367057600080fd5b813561368361367e82615893565b6157b2565b915081818352602084019350602081019050838560208402820111156136a857600080fd5b60005b838110156136d857816136be88826139d6565b8452602084019350602083019250506001810190506136ab565b5050505092915050565b600082601f8301126136f357600080fd5b8135613706613701826158bf565b6157b2565b9150818183526020840193506020810190508360005b8381101561374c57813586016137328882613a7e565b84526020840193506020830192505060018101905061371c565b5050505092915050565b600082601f83011261376757600080fd5b813561377a613775826158eb565b6157b2565b9150818183526020840193506020810190508385604084028201111561379f57600080fd5b60005b838110156137cf57816137b58882613b26565b8452602084019350604083019250506001810190506137a2565b5050505092915050565b600082601f8301126137ea57600080fd5b81356137fd6137f882615917565b6157b2565b9150818183526020840193506020810190508360005b8381101561384357813586016138298882613b72565b845260208401935060208301925050600181019050613813565b5050505092915050565b600082601f83011261385e57600080fd5b813561387161386c82615943565b6157b2565b9150818183526020840193506020810190508385602084028201111561389657600080fd5b60005b838110156138c657816138ac8882613bea565b845260208401935060208301925050600181019050613899565b5050505092915050565b600082601f8301126138e157600080fd5b81356138f46138ef8261596f565b6157b2565b9150818183526020840193506020810190508385602084028201111561391957600080fd5b60005b83811015613949578161392f8882613bff565b84526020840193506020830192505060018101905061391c565b5050505092915050565b600082601f83011261396457600080fd5b81516139776139728261596f565b6157b2565b9150818183526020840193506020810190508385602084028201111561399c57600080fd5b60005b838110156139cc57816139b28882613c14565b84526020840193506020830192505060018101905061399f565b5050505092915050565b6000813590506139e581615d21565b92915050565b6000815190506139fa81615d21565b92915050565b600081359050613a0f81615d38565b92915050565b600081519050613a2481615d38565b92915050565b600082601f830112613a3b57600080fd5b8135613a4e613a498261599b565b6157b2565b91508082526020830160208301858383011115613a6a57600080fd5b613a75838284615c9e565b50505092915050565b600082601f830112613a8f57600080fd5b8135613aa2613a9d826159cb565b6157b2565b91508082526020830160208301858383011115613abe57600080fd5b613ac9838284615c9e565b50505092915050565b600082601f830112613ae357600080fd5b8151613af6613af1826159cb565b6157b2565b91508082526020830160208301858383011115613b1257600080fd5b613b1d838284615cad565b50505092915050565b600060408284031215613b3857600080fd5b613b4260406157b2565b90506000613b5284828501613456565b6000830152506020613b6684828501613bff565b60208301525092915050565b600060608284031215613b8457600080fd5b613b8e60606157b2565b90506000613b9e84828501613c29565b600083015250602082013567ffffffffffffffff811115613bbe57600080fd5b613bca84828501613a7e565b6020830152506040613bde848285016139d6565b60408301525092915050565b600081359050613bf981615d4f565b92915050565b600081359050613c0e81615d66565b92915050565b600081519050613c2381615d66565b92915050565b600081359050613c3881615d7d565b92915050565b600060208284031215613c5057600080fd5b6000613c5e8482850161342c565b91505092915050565b600060208284031215613c7957600080fd5b6000613c8784828501613456565b91505092915050565b60008060408385031215613ca357600080fd5b6000613cb18582860161342c565b9250506020613cc28582860161342c565b9150509250929050565b600080600060608486031215613ce157600080fd5b6000613cef8682870161342c565b9350506020613d008682870161342c565b9250506040613d1186828701613bff565b9150509250925092565b60008060008060808587031215613d3157600080fd5b6000613d3f8782880161342c565b9450506020613d508782880161342c565b9350506040613d6187828801613bff565b925050606085013567ffffffffffffffff811115613d7e57600080fd5b613d8a87828801613a2a565b91505092959194509250565b60008060408385031215613da957600080fd5b6000613db78582860161342c565b9250506020613dc8858286016139d6565b9150509250929050565b60008060408385031215613de557600080fd5b6000613df38582860161342c565b9250506020613e0485828601613bff565b9150509250929050565b60008060408385031215613e2157600080fd5b6000613e2f85828601613441565b9250506020613e4085828601613c14565b9150509250929050565b600060208284031215613e5c57600080fd5b600082015167ffffffffffffffff811115613e7657600080fd5b613e8284828501613480565b91505092915050565b600060208284031215613e9d57600080fd5b600082015167ffffffffffffffff811115613eb757600080fd5b613ec384828501613953565b91505092915050565b600060208284031215613ede57600080fd5b6000613eec848285016139eb565b91505092915050565b600060208284031215613f0757600080fd5b6000613f1584828501613a00565b91505092915050565b600060208284031215613f3057600080fd5b6000613f3e84828501613a15565b91505092915050565b600060208284031215613f5957600080fd5b600082015167ffffffffffffffff811115613f7357600080fd5b613f7f84828501613ad2565b91505092915050565b600080600080600080600080610100898b031215613fa557600080fd5b600089013567ffffffffffffffff811115613fbf57600080fd5b613fcb8b828c01613a7e565b9850506020613fdc8b828c016139d6565b975050604089013567ffffffffffffffff811115613ff957600080fd5b6140058b828c016138d0565b965050606089013567ffffffffffffffff81111561402257600080fd5b61402e8b828c016136e2565b955050608089013567ffffffffffffffff81111561404b57600080fd5b6140578b828c01613a7e565b94505060a06140688b828c0161342c565b93505060c06140798b828c01613bff565b92505060e089013567ffffffffffffffff81111561409657600080fd5b6140a28b828c0161365f565b9150509295985092959890939650565b6000602082840312156140c457600080fd5b60006140d284828501613bff565b91505092915050565b6000602082840312156140ed57600080fd5b60006140fb84828501613c14565b91505092915050565b60008060008060008060c0878903121561411d57600080fd5b600061412b89828a01613bff565b965050602087013567ffffffffffffffff81111561414857600080fd5b61415489828a01613503565b955050604087013567ffffffffffffffff81111561417157600080fd5b61417d89828a0161384d565b945050606087013567ffffffffffffffff81111561419a57600080fd5b6141a689828a01613503565b935050608087013567ffffffffffffffff8111156141c357600080fd5b6141cf89828a016135eb565b92505060a087013567ffffffffffffffff8111156141ec57600080fd5b6141f889828a01613577565b9150509295509295509295565b6000806040838503121561421857600080fd5b600061422685828601613bff565b925050602083013567ffffffffffffffff81111561424357600080fd5b61424f85828601613a7e565b9150509250929050565b6000806040838503121561426c57600080fd5b600061427a85828601613bff565b925050602061428b85828601613bff565b9150509250929050565b600080604083850312156142a857600080fd5b60006142b685828601613c14565b92505060206142c785828601613c14565b9150509250929050565b6000806000606084860312156142e657600080fd5b60006142f486828701613bff565b935050602061430586828701613bff565b925050604084013567ffffffffffffffff81111561432257600080fd5b61432e86828701613a7e565b9150509250925092565b6000806000806080858703121561434e57600080fd5b600061435c87828801613bff565b945050602061436d87828801613bff565b935050604061437e87828801613bff565b925050606085013567ffffffffffffffff81111561439b57600080fd5b6143a787828801613a7e565b91505092959194509250565b60006143bf8383614462565b60208301905092915050565b60006143d7838361478b565b60208301905092915050565b60006143ef8383614876565b905092915050565b60006144038383615037565b60408301905092915050565b600061441b8383615066565b905092915050565b600061442f83836150c5565b60208301905092915050565b600061444783836150f2565b60208301905092915050565b61445c81615c68565b82525050565b61446b81615bd9565b82525050565b61447a81615bd9565b82525050565b61448981615bd9565b82525050565b61449881615bc7565b82525050565b6144a781615bc7565b82525050565b60006144b882615a5b565b6144c28185615b01565b93506144cd836159fb565b8060005b838110156144fe5781516144e588826143b3565b97506144f083615ab3565b9250506001810190506144d1565b5085935050505092915050565b600061451682615a66565b6145208185615b12565b935061452b83615a0b565b8060005b8381101561455c57815161454388826143cb565b975061454e83615ac0565b92505060018101905061452f565b5085935050505092915050565b600061457482615a71565b61457e8185615b23565b93508360208202850161459085615a1b565b8060005b858110156145cc57848403895281516145ad85826143e3565b94506145b883615acd565b925060208a01995050600181019050614594565b50829750879550505050505092915050565b60006145e982615a7c565b6145f38185615b34565b93506145fe83615a2b565b8060005b8381101561462f57815161461688826143f7565b975061462183615ada565b925050600181019050614602565b5085935050505092915050565b600061464782615a87565b6146518185615b45565b93508360208202850161466385615a3b565b8060005b8581101561469f5784840389528151614680858261440f565b945061468b83615ae7565b925060208a01995050600181019050614667565b50829750879550505050505092915050565b60006146bc82615a92565b6146c68185615b56565b93506146d183615a4b565b8060005b838110156147025781516146e98882614423565b97506146f483615af4565b9250506001810190506146d5565b5085935050505092915050565b600061471a82615a92565b6147248185615b67565b935061472f83615a4b565b8060005b83811015614760578151614747888261443b565b975061475283615af4565b925050600181019050614733565b5085935050505092915050565b61477681615beb565b82525050565b61478581615beb565b82525050565b61479481615beb565b82525050565b60006147a582615a9d565b6147af8185615b78565b93506147bf818560208601615cad565b6147c881615ce2565b840191505092915050565b60006147de82615a9d565b6147e88185615b89565b93506147f8818560208601615cad565b80840191505092915050565b600061480f82615aa8565b6148198185615b94565b9350614829818560208601615cad565b61483281615ce2565b840191505092915050565b600061484882615aa8565b6148528185615ba5565b9350614862818560208601615cad565b61486b81615ce2565b840191505092915050565b600061488182615aa8565b61488b8185615bb6565b935061489b818560208601615cad565b6148a481615ce2565b840191505092915050565b60006148bc600d83615b94565b91507f57726f6e672061646472657373000000000000000000000000000000000000006000830152602082019050919050565b60006148fc602283615b94565b91507f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614962601883615b94565b91507f4661696c656420746f2072657475726e206578636573732e00000000000000006000830152602082019050919050565b60006149a2603283615b94565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000614a08601c83615b94565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614a48602483615b94565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614aae601983615b94565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614aee601e83615b94565b91507f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006000830152602082019050919050565b6000614b2e602683615b94565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b94602c83615b94565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614bfa603883615b94565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614c60601183615b94565b91507f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006000830152602082019050919050565b6000614ca0602a83615b94565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d06602283615b94565b91507f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d6c602083615b94565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614dac602183615b94565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e12602c83615b94565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614e78602983615b94565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ede602183615b94565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614f44600083615b89565b9150600082019050919050565b6000614f5e603183615b94565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614fc4601d83615b94565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b6000615004601f83615b94565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b60408201600082015161504d6000850182614480565b50602082015161506060208501826150f2565b50505050565b600060608301600083015161507e6000860182615101565b50602083015184820360208601526150968282614876565b91505060408301516150ab604086018261478b565b508091505092915050565b6150bf81615c23565b82525050565b6150ce81615c51565b82525050565b6150dd81615c51565b82525050565b6150ec81615c51565b82525050565b6150fb81615c51565b82525050565b61510a81615c5b565b82525050565b600061511c82846147d3565b915081905092915050565b600061513282614f37565b9150819050919050565b6000602082019050615151600083018461448f565b92915050565b600060808201905061516c6000830187614471565b615179602083018661448f565b61518660408301856150d4565b8181036060830152615198818461479a565b905095945050505050565b60006040820190506151b8600083018561449e565b6151c560208301846150e3565b9392505050565b60006040820190506151e1600083018561448f565b6151ee60208301846150d4565b9392505050565b600060808201905061520a600083018761449e565b61521760208301866150e3565b61522460408301856150e3565b6152316060830184614453565b95945050505050565b6000602082019050818103600083015261525481846144ad565b905092915050565b6000602082019050818103600083015261527681846146b1565b905092915050565b6000602082019050615293600083018461476d565b92915050565b600060208201905081810360008301526152b38184614804565b905092915050565b60006101008201905081810360008301526152d6818b61483d565b90506152e5602083018a61477c565b81810360408301526152f7818961470f565b9050818103606083015261530b8188614569565b9050818103608083015261531f818761483d565b905061532e60a083018661449e565b61533b60c08301856150e3565b81810360e083015261534d818461450b565b90509998505050505050505050565b60006020820190508181036000830152615375816148af565b9050919050565b60006020820190508181036000830152615395816148ef565b9050919050565b600060208201905081810360008301526153b581614955565b9050919050565b600060208201905081810360008301526153d581614995565b9050919050565b600060208201905081810360008301526153f5816149fb565b9050919050565b6000602082019050818103600083015261541581614a3b565b9050919050565b6000602082019050818103600083015261543581614aa1565b9050919050565b6000602082019050818103600083015261545581614ae1565b9050919050565b6000602082019050818103600083015261547581614b21565b9050919050565b6000602082019050818103600083015261549581614b87565b9050919050565b600060208201905081810360008301526154b581614bed565b9050919050565b600060208201905081810360008301526154d581614c53565b9050919050565b600060208201905081810360008301526154f581614c93565b9050919050565b6000602082019050818103600083015261551581614cf9565b9050919050565b6000602082019050818103600083015261553581614d5f565b9050919050565b6000602082019050818103600083015261555581614d9f565b9050919050565b6000602082019050818103600083015261557581614e05565b9050919050565b6000602082019050818103600083015261559581614e6b565b9050919050565b600060208201905081810360008301526155b581614ed1565b9050919050565b600060208201905081810360008301526155d581614f51565b9050919050565b600060208201905081810360008301526155f581614fb7565b9050919050565b6000602082019050818103600083015261561581614ff7565b9050919050565b600060208201905061563160008301846150e3565b92915050565b600060208201905061564c60008301846150d4565b92915050565b600060c08201905061566760008301896150e3565b81810360208301526156798188614569565b905061568860408301876150b6565b818103606083015261569a8186614569565b905081810360808301526156ae818561463c565b905081810360a08301526156c281846145de565b9050979650505050505050565b60006040820190506156e460008301856150e3565b81810360208301526156f6818461483d565b90509392505050565b600060408201905061571460008301856150e3565b61572160208301846150e3565b9392505050565b600060608201905061573d60008301866150e3565b61574a60208301856150e3565b818103604083015261575c818461483d565b9050949350505050565b600060808201905061577b60008301876150e3565b61578860208301866150e3565b61579560408301856150e3565b81810360608301526157a7818461483d565b905095945050505050565b6000604051905081810181811067ffffffffffffffff821117156157d9576157d8615ce0565b5b8060405250919050565b600067ffffffffffffffff8211156157fe576157fd615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561582a57615829615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561585657615855615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561588257615881615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156158ae576158ad615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156158da576158d9615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561590657615905615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561593257615931615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561595e5761595d615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561598a57615989615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156159b6576159b5615ce0565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156159e6576159e5615ce0565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000615bd282615c31565b9050919050565b6000615be482615c31565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000615c7382615c7a565b9050919050565b6000615c8582615c8c565b9050919050565b6000615c9782615c31565b9050919050565b82818337600083830152505050565b60005b83811015615ccb578082015181840152602081019050615cb0565b83811115615cda576000848401525b50505050565bfe5b6000601f19601f8301169050919050565b615cfc81615bc7565b8114615d0757600080fd5b50565b615d1381615bd9565b8114615d1e57600080fd5b50565b615d2a81615beb565b8114615d3557600080fd5b50565b615d4181615bf7565b8114615d4c57600080fd5b50565b615d5881615c23565b8114615d6357600080fd5b50565b615d6f81615c51565b8114615d7a57600080fd5b50565b615d8681615c5b565b8114615d9157600080fd5b5056fe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220a09527ca092df4984cc7be4f31cae3ba927a1dee34cad75aca584df31c978ae564736f6c634300070300330000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000007e0000000000000000000000000cebcf9c6fe1366ed0d79eec6e2e44824a4c408ad00000000000000000000000000000000000000000000000000000000000002580000000000000000000000000000000000000000000000000000000000000840000000000000000000000000000000000000000000000000000000000000000652454c4943530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000652454c4943530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001468747470733a2f2f617277656176652e6e65742f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000065dd08370000000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000006206f880000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000038000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000440000000000000000000000000000000000000000000000000000000000000048000000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000006526172697479000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084d7573696369616e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000844657369676e6572000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342504d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034b65790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000547656e7265000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000756657273696f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054c6162656c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054272616e640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006536561736f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004495352430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084475726174696f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005417564696f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000653747265616d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f68747470733a2f2f617277656176652e6e65742f736432574833743154534730446f6c58446775654e64717374564669724431487a7a667644713133697938000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

Deployed Bytecode

0x6080604052600436106101f95760003560e01c80636352211e1161010d578063b7f430f5116100a0578063d4e4d3dd1161006f578063d4e4d3dd14610784578063e167a383146107c1578063e985e9c5146107ea578063f2b5cdde14610827578063f3fef3a314610864576101f9565b8063b7f430f5146106b8578063b88d4fde146106e1578063b9c4d9fb1461070a578063c87b56dd14610747576101f9565b80637101b304116100dc5780637101b304146105fe57806395d89b41146106275780639826227f14610652578063a22cb4651461068f576101f9565b80636352211e1461053d57806364b8c4a71461057a5780636c0360eb1461059657806370a08231146105c1576101f9565b80631c10106f11610190578063380fb0cb1161015f578063380fb0cb14610469578063397e3f371461049257806342842e0e146104ae5780634f6ccce7146104d75780635795415914610514576101f9565b80631c10106f1461039a57806323b872dd146103c55780632a55205a146103ee5780632f745c591461042c576101f9565b80630ebd4c7f116101cc5780630ebd4c7f146102cc57806315182df514610309578063171ee95a1461033257806318160ddd1461036f576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190613ef5565b61088d565b604051610232919061527e565b60405180910390f35b34801561024757600080fd5b5061025061093d565b60405161025d9190615299565b60405180910390f35b34801561027257600080fd5b5061028d600480360381019061028891906140b2565b6109df565b60405161029a919061513c565b60405180910390f35b3480156102af57600080fd5b506102ca60048036038101906102c59190613dd2565b610a64565b005b3480156102d857600080fd5b506102f360048036038101906102ee91906140b2565b610b7c565b604051610300919061525c565b60405180910390f35b34801561031557600080fd5b50610330600480360381019061032b9190614104565b610c59565b005b34801561033e57600080fd5b50610359600480360381019061035491906140b2565b610dea565b6040516103669190615637565b60405180910390f35b34801561037b57600080fd5b50610384610e7a565b6040516103919190615637565b60405180910390f35b3480156103a657600080fd5b506103af610e8b565b6040516103bc9190615637565b60405180910390f35b3480156103d157600080fd5b506103ec60048036038101906103e79190613ccc565b610e9e565b005b3480156103fa57600080fd5b5061041560048036038101906104109190614259565b610efe565b6040516104239291906151cc565b60405180910390f35b34801561043857600080fd5b50610453600480360381019061044e9190613dd2565b610fdc565b6040516104609190615637565b60405180910390f35b34801561047557600080fd5b50610490600480360381019061048b9190613c67565b611037565b005b6104ac60048036038101906104a79190614259565b611146565b005b3480156104ba57600080fd5b506104d560048036038101906104d09190613ccc565b61134e565b005b3480156104e357600080fd5b506104fe60048036038101906104f991906140b2565b61136e565b60405161050b9190615637565b60405180910390f35b34801561052057600080fd5b5061053b600480360381019061053691906142d1565b611391565b005b34801561054957600080fd5b50610564600480360381019061055f91906140b2565b6114a0565b604051610571919061513c565b60405180910390f35b610594600480360381019061058f9190614259565b6114d7565b005b3480156105a257600080fd5b506105ab61172d565b6040516105b89190615299565b60405180910390f35b3480156105cd57600080fd5b506105e860048036038101906105e39190613c3e565b6117cf565b6040516105f59190615637565b60405180910390f35b34801561060a57600080fd5b5061062560048036038101906106209190614338565b61188e565b005b34801561063357600080fd5b5061063c6119a0565b6040516106499190615299565b60405180910390f35b34801561065e57600080fd5b5061067960048036038101906106749190614259565b611a42565b604051610686919061527e565b60405180910390f35b34801561069b57600080fd5b506106b660048036038101906106b19190613d96565b611ad5565b005b3480156106c457600080fd5b506106df60048036038101906106da9190613f88565b611c56565b005b3480156106ed57600080fd5b5061070860048036038101906107039190613d1b565b611d74565b005b34801561071657600080fd5b50610731600480360381019061072c91906140b2565b611dd6565b60405161073e919061523a565b60405180910390f35b34801561075357600080fd5b5061076e600480360381019061076991906140b2565b611eb3565b60405161077b9190615299565b60405180910390f35b34801561079057600080fd5b506107ab60048036038101906107a691906140b2565b611f48565b6040516107b89190615299565b60405180910390f35b3480156107cd57600080fd5b506107e860048036038101906107e39190614205565b611fdd565b005b3480156107f657600080fd5b50610811600480360381019061080c9190613c90565b6120e9565b60405161081e919061527e565b60405180910390f35b34801561083357600080fd5b5061084e60048036038101906108499190614259565b61217d565b60405161085b9190615299565b60405180910390f35b34801561087057600080fd5b5061088b60048036038101906108869190613dd2565b612215565b005b600063b779958460e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109265750632a55205a60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610936575061093582612354565b5b9050919050565b606060068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109d55780601f106109aa576101008083540402835291602001916109d5565b820191906000526020600020905b8154815290600101906020018083116109b857829003601f168201915b5050505050905090565b60006109ea826123bb565b610a29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a209061555c565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a6f826114a0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ae0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad79061559c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610aff6123d8565b73ffffffffffffffffffffffffffffffffffffffff161480610b2e5750610b2d81610b286123d8565b6120e9565b5b610b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b649061549c565b60405180910390fd5b610b7783836123e0565b505050565b6060610b87826123bb565b610bc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbd906154bc565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d90784630ebd4c7f836040518263ffffffff1660e01b8152600401610bfd919061561c565b60006040518083038186803b158015610c1557600080fd5b505af4158015610c29573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610c529190613e8b565b9050919050565b6000610c63612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee9061535c565b60405180910390fd5b60005b8651811015610de057733e0a32e80e4dbf13c74feb384cce4fbe01d90784638de0994b89898481518110610d2a57fe5b6020026020010151898581518110610d3e57fe5b6020026020010151898681518110610d5257fe5b6020026020010151898781518110610d6657fe5b6020026020010151898881518110610d7a57fe5b60200260200101516040518763ffffffff1660e01b8152600401610da396959493929190615652565b60006040518083038186803b158015610dbb57600080fd5b505af4158015610dcf573d6000803e3d6000fd5b505050508080600101915050610cfa565b5050505050505050565b6000733e0a32e80e4dbf13c74feb384cce4fbe01d9078463171ee95a836040518263ffffffff1660e01b8152600401610e23919061561c565b60206040518083038186803b158015610e3b57600080fd5b505af4158015610e4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7391906140db565b9050919050565b6000610e866002612499565b905090565b6000610e95612327565b60020154905090565b610eaf610ea96123d8565b826124ae565b610eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee5906155bc565b60405180910390fd5b610ef983838361258c565b505050565b600080610f0a846123bb565b610f49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f40906154bc565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d90784632a55205a85856040518363ffffffff1660e01b8152600401610f829291906156ff565b604080518083038186803b158015610f9957600080fd5b505af4158015610fad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fd19190613e0e565b915091509250929050565b600061102f82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206127a390919063ffffffff16565b905092915050565b6000611041612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cc9061535c565b60405180910390fd5b60006110df612327565b9050828160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060018160010160146101000a81548160ff021916908315150217905550505050565b6002600a54141561118c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611183906155fc565b60405180910390fd5b6002600a81905550600061119e612327565b9050733e0a32e80e4dbf13c74feb384cce4fbe01d9078463db2a307584846040518363ffffffff1660e01b81526004016111d99291906156ff565b60006040518083038186803b1580156111f157600080fd5b505af4158015611205573d6000803e3d6000fd5b50505050600061124861123984846003016000888152602001908152602001600020600201546127bd90919063ffffffff16565b3461282d90919063ffffffff16565b9050600081111561130857600061125d6123d8565b73ffffffffffffffffffffffffffffffffffffffff168260405161128090615127565b60006040518083038185875af1925050503d80600081146112bd576040519150601f19603f3d011682016040523d82523d6000602084013e6112c2565b606091505b5050905080611306576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fd9061539c565b60405180910390fd5b505b60005b8381101561133f57600061131e8661287d565b905061133161132b6123d8565b82612a32565b50808060010191505061130b565b5050506001600a819055505050565b61136983838360405180602001604052806000815250611d74565b505050565b600080611385836002612bc090919063ffffffff16565b50905080915050919050565b600061139b612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461142f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114269061535c565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d9078463579541598585856040518463ffffffff1660e01b815260040161146a93929190615728565b60006040518083038186803b15801561148257600080fd5b505af4158015611496573d6000803e3d6000fd5b5050505050505050565b60006114d082604051806060016040528060298152602001615dc7602991396002612bec9092919063ffffffff16565b9050919050565b6002600a54141561151d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611514906155fc565b60405180910390fd5b6002600a81905550600061152f612327565b90506000733e0a32e80e4dbf13c74feb384cce4fbe01d907846352d29bec308686336040518563ffffffff1660e01b815260040161157094939291906151f5565b60206040518083038186803b15801561158857600080fd5b505af415801561159c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c09190613ecc565b905060008180156115f3575082600301600086815260200190815260200160002060050160049054906101000a900460ff165b156116135761160c60003461282d90919063ffffffff16565b9050611641565b61163e836003016000878152602001908152602001600020600201543461282d90919063ffffffff16565b90505b60008111156116ff5760006116546123d8565b73ffffffffffffffffffffffffffffffffffffffff168260405161167790615127565b60006040518083038185875af1925050503d80600081146116b4576040519150601f19603f3d011682016040523d82523d6000602084013e6116b9565b606091505b50509050806116fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f49061539c565b60405180910390fd5b505b600061170a8661287d565b905061171d6117176123d8565b82612a32565b505050506001600a819055505050565b606060098054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117c55780601f1061179a576101008083540402835291602001916117c5565b820191906000526020600020905b8154815290600101906020018083116117a857829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611840576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611837906154dc565b60405180910390fd5b611887600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612c0b565b9050919050565b6000611898612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461192c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119239061535c565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d90784637101b304868686866040518563ffffffff1660e01b81526004016119699493929190615766565b60006040518083038186803b15801561198157600080fd5b505af4158015611995573d6000803e3d6000fd5b505050505050505050565b606060078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611a385780601f10611a0d57610100808354040283529160200191611a38565b820191906000526020600020905b815481529060010190602001808311611a1b57829003601f168201915b5050505050905090565b6000733e0a32e80e4dbf13c74feb384cce4fbe01d90784639826227f84846040518363ffffffff1660e01b8152600401611a7d9291906156ff565b60206040518083038186803b158015611a9557600080fd5b505af4158015611aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611acd9190613ecc565b905092915050565b611add6123d8565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b429061541c565b60405180910390fd5b8060056000611b586123d8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611c056123d8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c4a919061527e565b60405180910390a35050565b6000611c60612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611cf4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ceb9061535c565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d9078463b7f430f58a8a8a8a8a8a8a8a6040518963ffffffff1660e01b8152600401611d399897969594939291906152bb565b60006040518083038186803b158015611d5157600080fd5b505af4158015611d65573d6000803e3d6000fd5b50505050505050505050505050565b611d85611d7f6123d8565b836124ae565b611dc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbb906155bc565b60405180910390fd5b611dd084848484612c20565b50505050565b6060611de1826123bb565b611e20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e17906154bc565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d9078463b9c4d9fb836040518263ffffffff1660e01b8152600401611e57919061561c565b60006040518083038186803b158015611e6f57600080fd5b505af4158015611e83573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611eac9190613e4a565b9050919050565b6060733e0a32e80e4dbf13c74feb384cce4fbe01d9078463c87b56dd836040518263ffffffff1660e01b8152600401611eec919061561c565b60006040518083038186803b158015611f0457600080fd5b505af4158015611f18573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611f419190613f47565b9050919050565b6060733e0a32e80e4dbf13c74feb384cce4fbe01d9078463d4e4d3dd836040518263ffffffff1660e01b8152600401611f81919061561c565b60006040518083038186803b158015611f9957600080fd5b505af4158015611fad573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611fd69190613f47565b9050919050565b6000611fe7612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461207b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120729061535c565b60405180910390fd5b733e0a32e80e4dbf13c74feb384cce4fbe01d9078463e167a38384846040518363ffffffff1660e01b81526004016120b49291906156cf565b60006040518083038186803b1580156120cc57600080fd5b505af41580156120e0573d6000803e3d6000fd5b50505050505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6060733e0a32e80e4dbf13c74feb384cce4fbe01d9078463f2b5cdde84846040518363ffffffff1660e01b81526004016121b89291906156ff565b60006040518083038186803b1580156121d057600080fd5b505af41580156121e4573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061220d9190613f47565b905092915050565b600061221f612327565b90508060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146122b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122aa9061535c565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168262030d40906040516122dc90615127565b600060405180830381858888f193505050503d806000811461231a576040519150601f19603f3d011682016040523d82523d6000602084013e61231f565b606091505b505050505050565b6000807f8ae35b0282f76a84f1af63b27d5d1e20fc710ae70d8a101653e7c1b36c5fe8b590508091505090565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b60006123d1826002612c7c90919063ffffffff16565b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612453836114a0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006124a782600001612c96565b9050919050565b60006124b9826123bb565b6124f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ef9061547c565b60405180910390fd5b6000612503836114a0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061257257508373ffffffffffffffffffffffffffffffffffffffff1661255a846109df565b73ffffffffffffffffffffffffffffffffffffffff16145b80612583575061258281856120e9565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166125ac826114a0565b73ffffffffffffffffffffffffffffffffffffffff1614612602576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f99061557c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612672576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612669906153fc565b60405180910390fd5b61267d838383612ca7565b6126886000826123e0565b6126d981600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612cac90919063ffffffff16565b5061272b81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612cc690919063ffffffff16565b5061274281836002612ce09092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006127b28360000183612d15565b60001c905092915050565b6000808314156127d05760009050612827565b60008284029050828482816127e157fe5b0414612822576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128199061553c565b60405180910390fd5b809150505b92915050565b600082821115612872576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128699061543c565b60405180910390fd5b818303905092915050565b600080612888612327565b9050600080733e0a32e80e4dbf13c74feb384cce4fbe01d9078463c4b49a3b30876040518363ffffffff1660e01b81526004016128c69291906151a3565b604080518083038186803b1580156128dd57600080fd5b505af41580156128f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129159190614295565b91509150826003016000868152602001908152602001600020600901600184600301600088815260200190815260200160002060090180549050038154811061295a57fe5b90600052602060002090600891828204019190066004029054906101000a900463ffffffff1683600301600087815260200190815260200160002060090183815481106129a357fe5b90600052602060002090600891828204019190066004026101000a81548163ffffffff021916908363ffffffff1602179055508260030160008681526020019081526020016000206009018054806129f757fe5b60019003818190600052602060002090600891828204019190066004026101000a81549063ffffffff02191690559055809350505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612aa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a999061551c565b60405180910390fd5b612aab816123bb565b15612aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ae2906153dc565b60405180910390fd5b612af760008383612ca7565b612b4881600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612cc690919063ffffffff16565b50612b5f81836002612ce09092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080600080612bd38660000186612d82565b915091508160001c8160001c9350935050509250929050565b6000612bff846000018460001b84612e05565b60001c90509392505050565b6000612c1982600001612e96565b9050919050565b612c2b84848461258c565b612c3784848484612ea7565b612c76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6d906153bc565b60405180910390fd5b50505050565b6000612c8e836000018360001b61300b565b905092915050565b600081600001805490509050919050565b505050565b6000612cbe836000018360001b61302e565b905092915050565b6000612cd8836000018360001b613116565b905092915050565b6000612d0c846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b613186565b90509392505050565b600081836000018054905011612d60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d579061537c565b60405180910390fd5b826000018281548110612d6f57fe5b9060005260206000200154905092915050565b60008082846000018054905011612dce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dc5906154fc565b60405180910390fd5b6000846000018481548110612ddf57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008084600101600085815260200190815260200160002054905060008114158390612e67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5e9190615299565b60405180910390fd5b50846000016001820381548110612e7a57fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b6000612ec88473ffffffffffffffffffffffffffffffffffffffff16613262565b612ed55760019050613003565b6060612f9c63150b7a0260e01b612eea6123d8565b888787604051602401612f009493929190615157565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001615d95603291398773ffffffffffffffffffffffffffffffffffffffff166132759092919063ffffffff16565b9050600081806020019051810190612fb49190613f1e565b905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b600080836001016000848152602001908152602001600020541415905092915050565b6000808360010160008481526020019081526020016000205490506000811461310a576000600182039050600060018660000180549050039050600086600001828154811061307957fe5b906000526020600020015490508087600001848154811061309657fe5b90600052602060002001819055506001830187600101600083815260200190815260200160002081905550866000018054806130ce57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050613110565b60009150505b92915050565b6000613122838361328d565b61317b578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613180565b600090505b92915050565b600080846001016000858152602001908152602001600020549050600081141561322d5784600001604051806040016040528086815260200185815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000155602082015181600101555050846000018054905085600101600086815260200190815260200160002081905550600191505061325b565b8285600001600183038154811061324057fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600080823b905060008111915050919050565b606061328484846000856132b0565b90509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b6060824710156132f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132ec9061545c565b60405180910390fd5b6132fe85613262565b61333d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613334906155dc565b60405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516133679190615110565b60006040518083038185875af1925050503d80600081146133a4576040519150601f19603f3d011682016040523d82523d6000602084013e6133a9565b606091505b50915091506133b98282866133c5565b92505050949350505050565b606083156133d557829050613425565b6000835111156133e85782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341c9190615299565b60405180910390fd5b9392505050565b60008135905061343b81615cf3565b92915050565b60008151905061345081615cf3565b92915050565b60008135905061346581615d0a565b92915050565b60008151905061347a81615d0a565b92915050565b600082601f83011261349157600080fd5b81516134a461349f826157e3565b6157b2565b915081818352602084019350602081019050838560208402820111156134c957600080fd5b60005b838110156134f957816134df888261346b565b8452602084019350602083019250506001810190506134cc565b5050505092915050565b600082601f83011261351457600080fd5b81356135276135228261580f565b6157b2565b9150818183526020840193506020810190508360005b8381101561356d578135860161355388826136e2565b84526020840193506020830192505060018101905061353d565b5050505092915050565b600082601f83011261358857600080fd5b813561359b6135968261583b565b6157b2565b9150818183526020840193506020810190508360005b838110156135e157813586016135c78882613756565b8452602084019350602083019250506001810190506135b1565b5050505092915050565b600082601f8301126135fc57600080fd5b813561360f61360a82615867565b6157b2565b9150818183526020840193506020810190508360005b83811015613655578135860161363b88826137d9565b845260208401935060208301925050600181019050613625565b5050505092915050565b600082601f83011261367057600080fd5b813561368361367e82615893565b6157b2565b915081818352602084019350602081019050838560208402820111156136a857600080fd5b60005b838110156136d857816136be88826139d6565b8452602084019350602083019250506001810190506136ab565b5050505092915050565b600082601f8301126136f357600080fd5b8135613706613701826158bf565b6157b2565b9150818183526020840193506020810190508360005b8381101561374c57813586016137328882613a7e565b84526020840193506020830192505060018101905061371c565b5050505092915050565b600082601f83011261376757600080fd5b813561377a613775826158eb565b6157b2565b9150818183526020840193506020810190508385604084028201111561379f57600080fd5b60005b838110156137cf57816137b58882613b26565b8452602084019350604083019250506001810190506137a2565b5050505092915050565b600082601f8301126137ea57600080fd5b81356137fd6137f882615917565b6157b2565b9150818183526020840193506020810190508360005b8381101561384357813586016138298882613b72565b845260208401935060208301925050600181019050613813565b5050505092915050565b600082601f83011261385e57600080fd5b813561387161386c82615943565b6157b2565b9150818183526020840193506020810190508385602084028201111561389657600080fd5b60005b838110156138c657816138ac8882613bea565b845260208401935060208301925050600181019050613899565b5050505092915050565b600082601f8301126138e157600080fd5b81356138f46138ef8261596f565b6157b2565b9150818183526020840193506020810190508385602084028201111561391957600080fd5b60005b83811015613949578161392f8882613bff565b84526020840193506020830192505060018101905061391c565b5050505092915050565b600082601f83011261396457600080fd5b81516139776139728261596f565b6157b2565b9150818183526020840193506020810190508385602084028201111561399c57600080fd5b60005b838110156139cc57816139b28882613c14565b84526020840193506020830192505060018101905061399f565b5050505092915050565b6000813590506139e581615d21565b92915050565b6000815190506139fa81615d21565b92915050565b600081359050613a0f81615d38565b92915050565b600081519050613a2481615d38565b92915050565b600082601f830112613a3b57600080fd5b8135613a4e613a498261599b565b6157b2565b91508082526020830160208301858383011115613a6a57600080fd5b613a75838284615c9e565b50505092915050565b600082601f830112613a8f57600080fd5b8135613aa2613a9d826159cb565b6157b2565b91508082526020830160208301858383011115613abe57600080fd5b613ac9838284615c9e565b50505092915050565b600082601f830112613ae357600080fd5b8151613af6613af1826159cb565b6157b2565b91508082526020830160208301858383011115613b1257600080fd5b613b1d838284615cad565b50505092915050565b600060408284031215613b3857600080fd5b613b4260406157b2565b90506000613b5284828501613456565b6000830152506020613b6684828501613bff565b60208301525092915050565b600060608284031215613b8457600080fd5b613b8e60606157b2565b90506000613b9e84828501613c29565b600083015250602082013567ffffffffffffffff811115613bbe57600080fd5b613bca84828501613a7e565b6020830152506040613bde848285016139d6565b60408301525092915050565b600081359050613bf981615d4f565b92915050565b600081359050613c0e81615d66565b92915050565b600081519050613c2381615d66565b92915050565b600081359050613c3881615d7d565b92915050565b600060208284031215613c5057600080fd5b6000613c5e8482850161342c565b91505092915050565b600060208284031215613c7957600080fd5b6000613c8784828501613456565b91505092915050565b60008060408385031215613ca357600080fd5b6000613cb18582860161342c565b9250506020613cc28582860161342c565b9150509250929050565b600080600060608486031215613ce157600080fd5b6000613cef8682870161342c565b9350506020613d008682870161342c565b9250506040613d1186828701613bff565b9150509250925092565b60008060008060808587031215613d3157600080fd5b6000613d3f8782880161342c565b9450506020613d508782880161342c565b9350506040613d6187828801613bff565b925050606085013567ffffffffffffffff811115613d7e57600080fd5b613d8a87828801613a2a565b91505092959194509250565b60008060408385031215613da957600080fd5b6000613db78582860161342c565b9250506020613dc8858286016139d6565b9150509250929050565b60008060408385031215613de557600080fd5b6000613df38582860161342c565b9250506020613e0485828601613bff565b9150509250929050565b60008060408385031215613e2157600080fd5b6000613e2f85828601613441565b9250506020613e4085828601613c14565b9150509250929050565b600060208284031215613e5c57600080fd5b600082015167ffffffffffffffff811115613e7657600080fd5b613e8284828501613480565b91505092915050565b600060208284031215613e9d57600080fd5b600082015167ffffffffffffffff811115613eb757600080fd5b613ec384828501613953565b91505092915050565b600060208284031215613ede57600080fd5b6000613eec848285016139eb565b91505092915050565b600060208284031215613f0757600080fd5b6000613f1584828501613a00565b91505092915050565b600060208284031215613f3057600080fd5b6000613f3e84828501613a15565b91505092915050565b600060208284031215613f5957600080fd5b600082015167ffffffffffffffff811115613f7357600080fd5b613f7f84828501613ad2565b91505092915050565b600080600080600080600080610100898b031215613fa557600080fd5b600089013567ffffffffffffffff811115613fbf57600080fd5b613fcb8b828c01613a7e565b9850506020613fdc8b828c016139d6565b975050604089013567ffffffffffffffff811115613ff957600080fd5b6140058b828c016138d0565b965050606089013567ffffffffffffffff81111561402257600080fd5b61402e8b828c016136e2565b955050608089013567ffffffffffffffff81111561404b57600080fd5b6140578b828c01613a7e565b94505060a06140688b828c0161342c565b93505060c06140798b828c01613bff565b92505060e089013567ffffffffffffffff81111561409657600080fd5b6140a28b828c0161365f565b9150509295985092959890939650565b6000602082840312156140c457600080fd5b60006140d284828501613bff565b91505092915050565b6000602082840312156140ed57600080fd5b60006140fb84828501613c14565b91505092915050565b60008060008060008060c0878903121561411d57600080fd5b600061412b89828a01613bff565b965050602087013567ffffffffffffffff81111561414857600080fd5b61415489828a01613503565b955050604087013567ffffffffffffffff81111561417157600080fd5b61417d89828a0161384d565b945050606087013567ffffffffffffffff81111561419a57600080fd5b6141a689828a01613503565b935050608087013567ffffffffffffffff8111156141c357600080fd5b6141cf89828a016135eb565b92505060a087013567ffffffffffffffff8111156141ec57600080fd5b6141f889828a01613577565b9150509295509295509295565b6000806040838503121561421857600080fd5b600061422685828601613bff565b925050602083013567ffffffffffffffff81111561424357600080fd5b61424f85828601613a7e565b9150509250929050565b6000806040838503121561426c57600080fd5b600061427a85828601613bff565b925050602061428b85828601613bff565b9150509250929050565b600080604083850312156142a857600080fd5b60006142b685828601613c14565b92505060206142c785828601613c14565b9150509250929050565b6000806000606084860312156142e657600080fd5b60006142f486828701613bff565b935050602061430586828701613bff565b925050604084013567ffffffffffffffff81111561432257600080fd5b61432e86828701613a7e565b9150509250925092565b6000806000806080858703121561434e57600080fd5b600061435c87828801613bff565b945050602061436d87828801613bff565b935050604061437e87828801613bff565b925050606085013567ffffffffffffffff81111561439b57600080fd5b6143a787828801613a7e565b91505092959194509250565b60006143bf8383614462565b60208301905092915050565b60006143d7838361478b565b60208301905092915050565b60006143ef8383614876565b905092915050565b60006144038383615037565b60408301905092915050565b600061441b8383615066565b905092915050565b600061442f83836150c5565b60208301905092915050565b600061444783836150f2565b60208301905092915050565b61445c81615c68565b82525050565b61446b81615bd9565b82525050565b61447a81615bd9565b82525050565b61448981615bd9565b82525050565b61449881615bc7565b82525050565b6144a781615bc7565b82525050565b60006144b882615a5b565b6144c28185615b01565b93506144cd836159fb565b8060005b838110156144fe5781516144e588826143b3565b97506144f083615ab3565b9250506001810190506144d1565b5085935050505092915050565b600061451682615a66565b6145208185615b12565b935061452b83615a0b565b8060005b8381101561455c57815161454388826143cb565b975061454e83615ac0565b92505060018101905061452f565b5085935050505092915050565b600061457482615a71565b61457e8185615b23565b93508360208202850161459085615a1b565b8060005b858110156145cc57848403895281516145ad85826143e3565b94506145b883615acd565b925060208a01995050600181019050614594565b50829750879550505050505092915050565b60006145e982615a7c565b6145f38185615b34565b93506145fe83615a2b565b8060005b8381101561462f57815161461688826143f7565b975061462183615ada565b925050600181019050614602565b5085935050505092915050565b600061464782615a87565b6146518185615b45565b93508360208202850161466385615a3b565b8060005b8581101561469f5784840389528151614680858261440f565b945061468b83615ae7565b925060208a01995050600181019050614667565b50829750879550505050505092915050565b60006146bc82615a92565b6146c68185615b56565b93506146d183615a4b565b8060005b838110156147025781516146e98882614423565b97506146f483615af4565b9250506001810190506146d5565b5085935050505092915050565b600061471a82615a92565b6147248185615b67565b935061472f83615a4b565b8060005b83811015614760578151614747888261443b565b975061475283615af4565b925050600181019050614733565b5085935050505092915050565b61477681615beb565b82525050565b61478581615beb565b82525050565b61479481615beb565b82525050565b60006147a582615a9d565b6147af8185615b78565b93506147bf818560208601615cad565b6147c881615ce2565b840191505092915050565b60006147de82615a9d565b6147e88185615b89565b93506147f8818560208601615cad565b80840191505092915050565b600061480f82615aa8565b6148198185615b94565b9350614829818560208601615cad565b61483281615ce2565b840191505092915050565b600061484882615aa8565b6148528185615ba5565b9350614862818560208601615cad565b61486b81615ce2565b840191505092915050565b600061488182615aa8565b61488b8185615bb6565b935061489b818560208601615cad565b6148a481615ce2565b840191505092915050565b60006148bc600d83615b94565b91507f57726f6e672061646472657373000000000000000000000000000000000000006000830152602082019050919050565b60006148fc602283615b94565b91507f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614962601883615b94565b91507f4661696c656420746f2072657475726e206578636573732e00000000000000006000830152602082019050919050565b60006149a2603283615b94565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000614a08601c83615b94565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614a48602483615b94565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614aae601983615b94565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614aee601e83615b94565b91507f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006000830152602082019050919050565b6000614b2e602683615b94565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b94602c83615b94565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614bfa603883615b94565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614c60601183615b94565b91507f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006000830152602082019050919050565b6000614ca0602a83615b94565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d06602283615b94565b91507f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d6c602083615b94565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614dac602183615b94565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e12602c83615b94565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614e78602983615b94565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ede602183615b94565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614f44600083615b89565b9150600082019050919050565b6000614f5e603183615b94565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614fc4601d83615b94565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b6000615004601f83615b94565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b60408201600082015161504d6000850182614480565b50602082015161506060208501826150f2565b50505050565b600060608301600083015161507e6000860182615101565b50602083015184820360208601526150968282614876565b91505060408301516150ab604086018261478b565b508091505092915050565b6150bf81615c23565b82525050565b6150ce81615c51565b82525050565b6150dd81615c51565b82525050565b6150ec81615c51565b82525050565b6150fb81615c51565b82525050565b61510a81615c5b565b82525050565b600061511c82846147d3565b915081905092915050565b600061513282614f37565b9150819050919050565b6000602082019050615151600083018461448f565b92915050565b600060808201905061516c6000830187614471565b615179602083018661448f565b61518660408301856150d4565b8181036060830152615198818461479a565b905095945050505050565b60006040820190506151b8600083018561449e565b6151c560208301846150e3565b9392505050565b60006040820190506151e1600083018561448f565b6151ee60208301846150d4565b9392505050565b600060808201905061520a600083018761449e565b61521760208301866150e3565b61522460408301856150e3565b6152316060830184614453565b95945050505050565b6000602082019050818103600083015261525481846144ad565b905092915050565b6000602082019050818103600083015261527681846146b1565b905092915050565b6000602082019050615293600083018461476d565b92915050565b600060208201905081810360008301526152b38184614804565b905092915050565b60006101008201905081810360008301526152d6818b61483d565b90506152e5602083018a61477c565b81810360408301526152f7818961470f565b9050818103606083015261530b8188614569565b9050818103608083015261531f818761483d565b905061532e60a083018661449e565b61533b60c08301856150e3565b81810360e083015261534d818461450b565b90509998505050505050505050565b60006020820190508181036000830152615375816148af565b9050919050565b60006020820190508181036000830152615395816148ef565b9050919050565b600060208201905081810360008301526153b581614955565b9050919050565b600060208201905081810360008301526153d581614995565b9050919050565b600060208201905081810360008301526153f5816149fb565b9050919050565b6000602082019050818103600083015261541581614a3b565b9050919050565b6000602082019050818103600083015261543581614aa1565b9050919050565b6000602082019050818103600083015261545581614ae1565b9050919050565b6000602082019050818103600083015261547581614b21565b9050919050565b6000602082019050818103600083015261549581614b87565b9050919050565b600060208201905081810360008301526154b581614bed565b9050919050565b600060208201905081810360008301526154d581614c53565b9050919050565b600060208201905081810360008301526154f581614c93565b9050919050565b6000602082019050818103600083015261551581614cf9565b9050919050565b6000602082019050818103600083015261553581614d5f565b9050919050565b6000602082019050818103600083015261555581614d9f565b9050919050565b6000602082019050818103600083015261557581614e05565b9050919050565b6000602082019050818103600083015261559581614e6b565b9050919050565b600060208201905081810360008301526155b581614ed1565b9050919050565b600060208201905081810360008301526155d581614f51565b9050919050565b600060208201905081810360008301526155f581614fb7565b9050919050565b6000602082019050818103600083015261561581614ff7565b9050919050565b600060208201905061563160008301846150e3565b92915050565b600060208201905061564c60008301846150d4565b92915050565b600060c08201905061566760008301896150e3565b81810360208301526156798188614569565b905061568860408301876150b6565b818103606083015261569a8186614569565b905081810360808301526156ae818561463c565b905081810360a08301526156c281846145de565b9050979650505050505050565b60006040820190506156e460008301856150e3565b81810360208301526156f6818461483d565b90509392505050565b600060408201905061571460008301856150e3565b61572160208301846150e3565b9392505050565b600060608201905061573d60008301866150e3565b61574a60208301856150e3565b818103604083015261575c818461483d565b9050949350505050565b600060808201905061577b60008301876150e3565b61578860208301866150e3565b61579560408301856150e3565b81810360608301526157a7818461483d565b905095945050505050565b6000604051905081810181811067ffffffffffffffff821117156157d9576157d8615ce0565b5b8060405250919050565b600067ffffffffffffffff8211156157fe576157fd615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561582a57615829615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561585657615855615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561588257615881615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156158ae576158ad615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156158da576158d9615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561590657615905615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561593257615931615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561595e5761595d615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561598a57615989615ce0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156159b6576159b5615ce0565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156159e6576159e5615ce0565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000615bd282615c31565b9050919050565b6000615be482615c31565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000615c7382615c7a565b9050919050565b6000615c8582615c8c565b9050919050565b6000615c9782615c31565b9050919050565b82818337600083830152505050565b60005b83811015615ccb578082015181840152602081019050615cb0565b83811115615cda576000848401525b50505050565bfe5b6000601f19601f8301169050919050565b615cfc81615bc7565b8114615d0757600080fd5b50565b615d1381615bd9565b8114615d1e57600080fd5b50565b615d2a81615beb565b8114615d3557600080fd5b50565b615d4181615bf7565b8114615d4c57600080fd5b50565b615d5881615c23565b8114615d6357600080fd5b50565b615d6f81615c51565b8114615d7a57600080fd5b50565b615d8681615c5b565b8114615d9157600080fd5b5056fe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220a09527ca092df4984cc7be4f31cae3ba927a1dee34cad75aca584df31c978ae564736f6c63430007030033

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

0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000007e0000000000000000000000000cebcf9c6fe1366ed0d79eec6e2e44824a4c408ad00000000000000000000000000000000000000000000000000000000000002580000000000000000000000000000000000000000000000000000000000000840000000000000000000000000000000000000000000000000000000000000000652454c4943530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000652454c4943530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001468747470733a2f2f617277656176652e6e65742f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000065dd08370000000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000006206f880000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000038000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000440000000000000000000000000000000000000000000000000000000000000048000000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000006526172697479000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084d7573696369616e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000844657369676e6572000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342504d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034b65790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000547656e7265000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000756657273696f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054c6162656c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054272616e640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006536561736f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004495352430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084475726174696f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005417564696f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000653747265616d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f68747470733a2f2f617277656176652e6e65742f736432574833743154534730446f6c58446775654e64717374564669724431487a7a667644713133697938000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : name (string): RELICS
Arg [1] : symbol (string): RELICS
Arg [2] : _baseURI (string): https://arweave.net/
Arg [3] : _editioned (bool): True
Arg [4] : _initParams (uint256[]): 7000000000000,50,1644624000
Arg [5] : _metadataKeys (string[]): Rarity,Musician,Designer,BPM,Key,Genre,Version,Label,Brand,Season,ISRC,Duration,Audio,Stream
Arg [6] : _licenseURI (string): https://arweave.net/sd2WH3t1TSG0DolXDgueNdqstVFirD1HzzfvDq13iy8
Arg [7] : _mintPass (address): 0xCEBCf9C6fE1366eD0d79eEC6e2E44824a4C408ad
Arg [8] : _mintPassDuration (uint256): 600
Arg [9] : _mintPassParams (bool[]): True,True,True

-----Encoded View---------------
70 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [6] : 00000000000000000000000000000000000000000000000000000000000007e0
Arg [7] : 000000000000000000000000cebcf9c6fe1366ed0d79eec6e2e44824a4c408ad
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000840
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [11] : 52454c4943530000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [13] : 52454c4943530000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [15] : 68747470733a2f2f617277656176652e6e65742f000000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [17] : 0000000000000000000000000000000000000000000000000000065dd0837000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [19] : 000000000000000000000000000000000000000000000000000000006206f880
Arg [20] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [21] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [25] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000300
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000340
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000380
Arg [29] : 00000000000000000000000000000000000000000000000000000000000003c0
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000400
Arg [31] : 0000000000000000000000000000000000000000000000000000000000000440
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000480
Arg [33] : 00000000000000000000000000000000000000000000000000000000000004c0
Arg [34] : 0000000000000000000000000000000000000000000000000000000000000500
Arg [35] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [36] : 5261726974790000000000000000000000000000000000000000000000000000
Arg [37] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [38] : 4d7573696369616e000000000000000000000000000000000000000000000000
Arg [39] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [40] : 44657369676e6572000000000000000000000000000000000000000000000000
Arg [41] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [42] : 42504d0000000000000000000000000000000000000000000000000000000000
Arg [43] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [44] : 4b65790000000000000000000000000000000000000000000000000000000000
Arg [45] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [46] : 47656e7265000000000000000000000000000000000000000000000000000000
Arg [47] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [48] : 56657273696f6e00000000000000000000000000000000000000000000000000
Arg [49] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [50] : 4c6162656c000000000000000000000000000000000000000000000000000000
Arg [51] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [52] : 4272616e64000000000000000000000000000000000000000000000000000000
Arg [53] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [54] : 536561736f6e0000000000000000000000000000000000000000000000000000
Arg [55] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [56] : 4953524300000000000000000000000000000000000000000000000000000000
Arg [57] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [58] : 4475726174696f6e000000000000000000000000000000000000000000000000
Arg [59] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [60] : 417564696f000000000000000000000000000000000000000000000000000000
Arg [61] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [62] : 53747265616d0000000000000000000000000000000000000000000000000000
Arg [63] : 000000000000000000000000000000000000000000000000000000000000003f
Arg [64] : 68747470733a2f2f617277656176652e6e65742f736432574833743154534730
Arg [65] : 446f6c58446775654e64717374564669724431487a7a66764471313369793800
Arg [66] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [67] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [68] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [69] : 0000000000000000000000000000000000000000000000000000000000000001


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

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