ERC-721
NFT
Overview
Max Total Supply
1,003 KOHI
Holders
507
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 KOHILoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Kohi
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; import "IRenderer.sol"; import "IAttributes.sol"; import "RandomV1.sol"; import "ERC721.sol"; import "ERC721Enumerable.sol"; import "ERC721Pausable.sol"; import "ERC721Burnable.sol"; import "IERC721Metadata.sol"; import "AccessControlEnumerable.sol"; contract Kohi is Context, AccessControlEnumerable, ERC721, ERC721Enumerable, ERC721Pausable, ERC721Burnable { using Address for address; struct Collection { string name; string baseTokenUri; string description; string license; uint priceInWei; int32 seed; uint minted; uint mintedMax; uint mintedMaxPerOwner; uint pauseAt; bool paused; bool active; string[] creatorNames; address payable[] creatorAddresses; uint8[] creatorSplits; bool useAllowList; address[] allowList; address _renderer; } mapping(bytes32 => Collection) internal collections; event CollectionMinted ( bytes32 indexed collectionId, uint256 indexed tokenId, address indexed recipient, uint256 mintId, uint256 priceInWei, int32 seed ); event CollectionAdded ( bytes32 indexed collectionId ); uint private lastTokenId; mapping(bytes32 => uint[]) private collectionTokens; mapping(bytes32 => int32[]) private collectionSeeds; mapping(bytes32 => mapping(address => uint)) private ownerMints; mapping(uint => bytes32) internal tokenCollection; mapping(uint => int32) internal tokenSeed; uint8 private ownerRoyalty; address payable[] private ownerAddresses; uint8[] private ownerSplits; address[] private bloomList; mapping(address => bool) private inBloomList; address internal _admin; constructor() ERC721("Kohi", "KOHI") { lastTokenId = 0; _admin = _msgSender(); _contractUri = "https://kohi.art/metadata"; _pause(); } string private _contractUri; /* * @dev See: https://docs.opensea.io/docs/contract-level-metadata */ function contractURI() public view returns (string memory) { return _contractUri; } function updateContractUri(string memory contractUri) public { require(_msgSender() == _admin, "admin only"); _contractUri = contractUri; } function updateAdmin(address newAdmin) public { require(_msgSender() == _admin, "admin only"); require(newAdmin != address(0x0), "address must be set"); _admin = newAdmin; } function updateOwnerData(uint8 royalty, address payable[] memory addresses, uint8[] memory splits) public { require(_msgSender() == _admin, "admin only"); require(royalty > 0 && royalty <= 100, "invalid owner royalty"); require(splits.length == addresses.length, "invalid owner splits"); ownerRoyalty = royalty; ownerAddresses = addresses; ownerSplits = splits; } function togglePaused() public { require(_msgSender() == _admin, "admin only"); if(paused()) { _unpause(); } else { _pause(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override (ERC721, ERC721Enumerable, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); require(inBloomList[_msgSender()] || !collections[tokenCollection[tokenId]].paused, "collection paused"); } function isInBloomList(address _address) external view returns (bool) { require(_msgSender() == _admin, "admin only"); return inBloomList[_address]; } function getBloomList() external view returns (address[] memory) { require(_msgSender() == _admin, "admin only"); return bloomList; } function addToBloomList(address _address) external { require(_msgSender() == _admin, "admin only"); require(_address != address(0x0) && !_address.isContract(), "invalid address"); bloomList.push(_address); inBloomList[_address] = true; } function setBloomList(address[] memory _addresses) external { require(_msgSender() == _admin, "admin only"); require(bloomList.length == 0, "bloom list exists"); bloomList = _addresses; for(uint i = 0; i < bloomList.length; i++) { inBloomList[bloomList[i]] = true; } } function removeFromBloomList(address _address) external { require(_msgSender() == _admin, "admin only"); int index = getBloomAddressIndex(_address); require(index > -1, "address not found"); if (uint(index) >= bloomList.length) return; for (uint i = uint(index); i < bloomList.length - 1; i++) { bloomList[i] = bloomList[i + 1]; } bloomList.pop(); inBloomList[_address] = false; } function getBloomAddressIndex(address _address) private view returns(int) { for(int i = 0; i < int(bloomList.length); i++) { if(bloomList[uint(i)] == _address) return i; } return -1; } function getCollection(bytes32 collectionId) public view returns (Collection memory collection) { require(collectionId.length > 0, "ID must be set"); collection = collections[collectionId]; require(bytes(collections[collectionId].name).length > 0, "collection not found"); } function addCollection(Collection memory collection) external { require(_msgSender() == _admin, "admin only"); require(bytes(collection.name).length > 0, "name must be set"); bytes32 id = keccak256(abi.encodePacked(collection.name)); require(bytes(collections[id].name).length == 0, "collection already added"); require(collection._renderer != address(0x0) && collection._renderer.isContract(), "invalid renderer"); collections[id] = collection; emit CollectionAdded(id); } function updateCollection(bytes32 collectionId, Collection memory collection) public { require(_msgSender() == _admin, "admin only"); require(bytes(collection.name).length > 0, "name must be set"); collectionId = keccak256(abi.encodePacked(collection.name)); require(bytes(collections[collectionId].name).length > 0, "collection not found"); require(collection._renderer != address(0x0) && collection._renderer.isContract(), "invalid renderer"); collections[collectionId] = collection; } /** * @notice Sets the collection's unique seed. It cannot be modified once set. * @dev This is a source of external entropy, by the contract owner, to avoid determinism on PRNG that could exploit the mint's parameters. */ function setSeed(bytes32 collectionId, int32 seed) external { require(_msgSender() == _admin, "admin only"); require(seed != 0, "invalid seed"); require(collections[collectionId].seed == 0, "seed already set"); collections[collectionId].seed = seed; } function getSeed(bytes32 collectionId) external view returns (int32) { require(_msgSender() == _admin, "admin only"); require(collections[collectionId].seed != 0, "seed not set"); return collections[collectionId].seed; } function purchase(bytes32 collectionId) external payable { purchaseFor(collectionId, _msgSender()); } function purchaseFor(bytes32 collectionId, address recipient) public payable { require(!_msgSender().isContract(), "cannot purchase from contract"); require(msg.value >= collections[collectionId].priceInWei, "insufficient funds sent to purchase"); Collection memory collection = getCollection(collectionId); bool allowedToMint = false; if(collection.useAllowList && collection.allowList.length > 0) { for(uint i = 0; i < collection.allowList.length; i++) { if(_msgSender() == collection.allowList[i]) { allowedToMint = true; break; } } } else { allowedToMint = true; } require(allowedToMint, "mint not approved"); mint(collectionId, _msgSender(), recipient); require(ownerAddresses.length > 0, "no owner addresses"); require(ownerSplits.length == ownerAddresses.length, "invalid owner splits"); require(collection.creatorAddresses.length > 0, "no creator addresses"); require(collection.creatorSplits.length == collection.creatorAddresses.length, "invalid creator splits"); distributeFunds(collection); } function mint(bytes32 collectionId, address minter, address recipient) internal { Collection memory collection = getCollection(collectionId); require(collections[collectionId].seed != 0, "seed not set"); require(collection.active, "collection inactive"); require(collection.minted + 1 <= collection.mintedMax, "minted max tokens"); require(collection.mintedMaxPerOwner == 0 || ownerMints[collectionId][minter] < collection.mintedMaxPerOwner, "minter exceeds max mints"); uint256 nextTokenId = lastTokenId + 1; int32 seed = int32(int(uint(keccak256(abi.encodePacked(collection.seed, block.number, _msgSender(), recipient, nextTokenId))))); lastTokenId = nextTokenId; collectionTokens[collectionId].push(lastTokenId); tokenCollection[lastTokenId] = collectionId; collectionSeeds[collectionId].push(seed); tokenSeed[lastTokenId] = seed; collections[collectionId].minted = collection.minted + 1; ownerMints[collectionId][recipient] = ownerMints[collectionId][recipient] + 1; _safeMint(recipient, nextTokenId); emit CollectionMinted(collectionId, nextTokenId, recipient, collection.minted, collection.priceInWei, seed); if(collection.pauseAt > 0) { if(lastTokenId >= collection.pauseAt) _pause(); } } function distributeFunds(Collection memory collection) private { if (msg.value > 0) { uint priceInWei = collection.priceInWei; uint overpaid = msg.value - priceInWei; if (overpaid > 0) { payable(_msgSender()).transfer(overpaid); } uint dueToOwners = ownerRoyalty * collection.priceInWei / 100; uint paidToOwners = distributeSplits(dueToOwners, ownerAddresses, ownerSplits); uint dueToCreators = priceInWei - paidToOwners; uint paidToCreators = distributeSplits(dueToCreators, collection.creatorAddresses, collection.creatorSplits); require(priceInWei - paidToOwners - paidToCreators == 0, "funds had remainder"); } } function distributeSplits(uint fundsToDistribute, address payable[] memory addresses, uint8[] memory splits) private returns(uint paidToAddresses) { paidToAddresses = 0; if (fundsToDistribute > 0) { uint8 sum = 0; for(uint8 i = 0; i < splits.length; i++) { sum += splits[i]; } require(sum == 100, "splits must sum to 100%"); for(uint8 i = 0; i < addresses.length; i++) { uint dueToAddress = splits[i] * fundsToDistribute / 100; addresses[i].transfer(dueToAddress); paidToAddresses += dueToAddress; } } require(fundsToDistribute - paidToAddresses == 0, "incorrect distribution of funds"); } function ownsToken(address owner, uint tokenId) public view returns (bool) { for(uint i = 0; i < balanceOf(owner); i++) { if(tokenId == tokenOfOwnerByIndex(owner, i)) { return true; } } return false; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); Collection memory collection = collections[tokenCollection[tokenId]]; string memory baseURI = collection.baseTokenUri; return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, Strings.toString(tokenId))) : ""; } /** * @notice Retrieve's an artwork's attributes, given a token ID. */ function getAttributes(uint tokenId) external view returns (string memory attributes) { require(_msgSender() == _admin || ownsToken(_msgSender(), tokenId), "unowned token"); return IAttributes(collections[tokenCollection[tokenId]]._renderer).getAttributes(tokenSeed[tokenId]); } /** * @notice Begins rendering an artwork given a token ID, and continuation arguments, which must be owned by the caller. */ function _render(uint tokenId, IRenderer.RenderArgs memory args) private view returns (IRenderer.RenderArgs memory results) { require(_msgSender() == _admin || ownsToken(_msgSender(), tokenId), "unowned token"); require(args.seed == tokenSeed[tokenId], "invalid seed"); return IRenderer(collections[tokenCollection[tokenId]]._renderer).render(args); } /** * @notice Continues rendering an artwork given a token ID and previous arguments. Token must be owned by the caller. */ function render(uint tokenId, IRenderer.RenderArgs memory args) external view returns (IRenderer.RenderArgs memory results) { return _render(tokenId, args); } /** * @notice Begins rendering an artwork given a token ID. Token must be owned by the caller. */ function beginRender(uint tokenId) external view returns (IRenderer.RenderArgs memory results) { uint32[16384] memory buffer; RandomV1.PRNG memory prng; return _render(tokenId, IRenderer.RenderArgs(0, 0, tokenSeed[tokenId], buffer, prng)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IAccessControl.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IAccessControlEnumerable.sol"; import "AccessControl.sol"; import "EnumerableSet.sol"; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {grantRole} to track enumerable memberships */ function grantRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {revokeRole} to track enumerable memberships */ function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {renounceRole} to track enumerable memberships */ function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.renounceRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {_setupRole} to track enumerable memberships */ function _setupRole(bytes32 role, address account) internal virtual override { super._setupRole(role, account); _roleMembers[role].add(account); } }
// SPDX-License-Identifier: MIT pragma solidity ^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; 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"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "Math.sol"; /** * @dev Collection of functions related to array types. */ library Arrays { /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in ascending order, and to contain no * repeated elements. */ function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { if (array.length == 0) { return 0; } uint256 low = 0; uint256 high = array.length; while (low < high) { uint256 mid = Math.average(low, high); // Note that mid will always be strictly less than high (i.e. it will be a valid array index) // because Math.average rounds down (it does integer division with truncation). if (array[mid] > element) { high = mid; } else { low = mid + 1; } } // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound. if (low > 0 && array[low - 1] == element) { return low - 1; } else { return low; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer. * `CREATE2` can be used to compute in advance the address where a smart * contract will be deployed, which allows for interesting new mechanisms known * as 'counterfactual interactions'. * * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more * information. */ library Create2 { /** * @dev Deploys a contract using `CREATE2`. The address where the contract * will be deployed can be known in advance via {computeAddress}. * * The bytecode for a contract can be obtained from Solidity with * `type(contractName).creationCode`. * * Requirements: * * - `bytecode` must not be empty. * - `salt` must have not been used for `bytecode` already. * - the factory must have a balance of at least `amount`. * - if `amount` is non-zero, `bytecode` must have a `payable` constructor. */ function deploy( uint256 amount, bytes32 salt, bytes memory bytecode ) internal returns (address) { address addr; require(address(this).balance >= amount, "Create2: insufficient balance"); require(bytecode.length != 0, "Create2: bytecode length is zero"); assembly { addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt) } require(addr != address(0), "Create2: Failed on deploy"); return addr; } /** * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the * `bytecodeHash` or `salt` will result in a new destination address. */ function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) { return computeAddress(salt, bytecodeHash, address(this)); } /** * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}. */ function computeAddress( bytes32 salt, bytes32 bytecodeHash, address deployer ) internal pure returns (address) { bytes32 _data = keccak256(abi.encodePacked(bytes1(0xff), deployer, salt, bytecodeHash)); return address(uint160(uint256(_data))); } }
// SPDX-License-Identifier: MIT pragma solidity ^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; if (lastIndex != toDeleteIndex) { 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] = valueIndex; // Replace lastvalue's index to valueIndex } // 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) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // 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); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // 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)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Library used to query support of an interface declared via {IERC165}. * * Note that these functions return the actual result of the query: they do not * `revert` if an interface is not supported. It is up to the caller to decide * what to do in these cases. */ library ERC165Checker { // As per the EIP-165 spec, no interface should ever match 0xffffffff bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; /** * @dev Returns true if `account` supports the {IERC165} interface, */ function supportsERC165(address account) internal view returns (bool) { // Any contract that implements ERC165 must explicitly indicate support of // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid return _supportsERC165Interface(account, type(IERC165).interfaceId) && !_supportsERC165Interface(account, _INTERFACE_ID_INVALID); } /** * @dev Returns true if `account` supports the interface defined by * `interfaceId`. Support for {IERC165} itself is queried automatically. * * See {IERC165-supportsInterface}. */ function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { // query support of both ERC165 as per the spec and support of _interfaceId return supportsERC165(account) && _supportsERC165Interface(account, interfaceId); } /** * @dev Returns a boolean array where each value corresponds to the * interfaces passed in and whether they're supported or not. This allows * you to batch check interfaces for a contract where your expectation * is that some interfaces may not be supported. * * See {IERC165-supportsInterface}. * * _Available since v3.4._ */ function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) { // an array of booleans corresponding to interfaceIds and whether they're supported or not bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); // query support of ERC165 itself if (supportsERC165(account)) { // query support of each interface in interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]); } } return interfaceIdsSupported; } /** * @dev Returns true if `account` supports all the interfaces defined in * `interfaceIds`. Support for {IERC165} itself is queried automatically. * * Batch-querying can lead to gas savings by skipping repeated checks for * {IERC165} support. * * See {IERC165-supportsInterface}. */ function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { // query support of ERC165 itself if (!supportsERC165(account)) { return false; } // query support of each interface in _interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { if (!_supportsERC165Interface(account, interfaceIds[i])) { return false; } } // all interfaces supported return true; } /** * @notice Query if a contract implements an interface, does not check ERC165 support * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return true if the contract at account indicates support of the interface with * identifier interfaceId, false otherwise * @dev Assumes that account contains a contract that supports ERC165, otherwise * the behavior of this method is undefined. This precondition can be checked * with {supportsERC165}. * Interface identification is specified in ERC-165. */ function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) { bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId); (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams); if (result.length < 32) return false; return success && abi.decode(result, (bool)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "ERC165.sol"; /** * @dev Storage based implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165Storage is ERC165 { /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return super.supportsInterface(interfaceId) || _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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC1820Implementer.sol"; /** * @dev Implementation of the {IERC1820Implementer} interface. * * Contracts may inherit from this and call {_registerInterfaceForAddress} to * declare their willingness to be implementers. * {IERC1820Registry-setInterfaceImplementer} should then be called for the * registration to be complete. */ contract ERC1820Implementer is IERC1820Implementer { bytes32 private constant _ERC1820_ACCEPT_MAGIC = keccak256("ERC1820_ACCEPT_MAGIC"); mapping(bytes32 => mapping(address => bool)) private _supportedInterfaces; /** * @dev See {IERC1820Implementer-canImplementInterfaceForAddress}. */ function canImplementInterfaceForAddress(bytes32 interfaceHash, address account) public view virtual override returns (bytes32) { return _supportedInterfaces[interfaceHash][account] ? _ERC1820_ACCEPT_MAGIC : bytes32(0x00); } /** * @dev Declares the contract as willing to be an implementer of * `interfaceHash` for `account`. * * See {IERC1820Registry-setInterfaceImplementer} and * {IERC1820Registry-interfaceHash}. */ function _registerInterfaceForAddress(bytes32 interfaceHash, address account) internal virtual { _supportedInterfaces[interfaceHash][account] = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC721.sol"; import "IERC721Receiver.sol"; import "IERC721Metadata.sol"; import "Address.sol"; import "Context.sol"; import "Strings.sol"; import "ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "ERC721.sol"; import "Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "ERC721.sol"; import "IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "ERC721.sol"; import "Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: 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)); } return super.tokenURI(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), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; import "MathV1.sol"; /* Provides mathematical operations and representation in Q31.Q32 format. exp: Adapted from Petteri Aimonen's libfixmath See: https://github.com/PetteriAimonen/libfixmath https://github.com/PetteriAimonen/libfixmath/blob/master/LICENSE other functions: Adapted from André Slupik's FixedMath.NET https://github.com/asik/FixedMath.Net/blob/master/LICENSE.txt THIRD PARTY NOTICES: ==================== libfixmath is Copyright (c) 2011-2021 Flatmush <[email protected]>, Petteri Aimonen <[email protected]>, & libfixmath AUTHORS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Copyright 2012 André Slupik Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. This project uses code from the log2fix library, which is under the following license: The MIT License (MIT) Copyright (c) 2015 Dan Moulding Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ library Fix64V1 { int64 public constant FRACTIONAL_PLACES = 32; int64 public constant ONE = 4294967296; // 1 << FRACTIONAL_PLACES int64 public constant TWO = ONE * 2; int64 public constant PI = 0x3243F6A88; int64 public constant TWO_PI = 0x6487ED511; int64 public constant MAX_VALUE = type(int64).max; int64 public constant MIN_VALUE = type(int64).min; int64 public constant PI_OVER_2 = 0x1921FB544; function countLeadingZeros(uint64 x) internal pure returns (int64) { int64 result = 0; while ((x & 0xF000000000000000) == 0) { result += 4; x <<= 4; } while ((x & 0x8000000000000000) == 0) { result += 1; x <<= 1; } return result; } function div(int64 x, int64 y) internal pure returns (int64) { if (y == 0) { revert("attempted to divide by zero"); } int64 xl = x; int64 yl = y; uint64 remainder = uint64(xl >= 0 ? xl : -xl); uint64 divider = uint64((yl >= 0 ? yl : -yl)); uint64 quotient = 0; int64 bitPos = 64 / 2 + 1; while ((divider & 0xF) == 0 && bitPos >= 4) { divider >>= 4; bitPos -= 4; } while (remainder != 0 && bitPos >= 0) { int64 shift = countLeadingZeros(remainder); if (shift > bitPos) { shift = bitPos; } remainder <<= uint64(shift); bitPos -= shift; uint64 d = remainder / divider; remainder = remainder % divider; quotient += d << uint64(bitPos); if ((d & ~(uint64(0xFFFFFFFFFFFFFFFF) >> uint64(bitPos)) != 0)) { return ((xl ^ yl) & MIN_VALUE) == 0 ? MAX_VALUE : MIN_VALUE; } remainder <<= 1; --bitPos; } ++quotient; int64 result = int64(quotient >> 1); if (((xl ^ yl) & MIN_VALUE) != 0) { result = -result; } return int64(result); } function mul(int64 x, int64 y) internal pure returns (int64) { int64 xl = x; int64 yl = y; uint64 xlo = (uint64)((xl & (int64)(0x00000000FFFFFFFF))); int64 xhi = xl >> 32; // FRACTIONAL_PLACES uint64 ylo = (uint64)(yl & (int64)(0x00000000FFFFFFFF)); int64 yhi = yl >> 32; // FRACTIONAL_PLACES uint64 lolo = xlo * ylo; int64 lohi = int64(xlo) * yhi; int64 hilo = xhi * int64(ylo); int64 hihi = xhi * yhi; uint64 loResult = lolo >> 32; // FRACTIONAL_PLACES int64 midResult1 = lohi; int64 midResult2 = hilo; int64 hiResult = hihi << 32; // FRACTIONAL_PLACES int64 sum = int64(loResult) + midResult1 + midResult2 + hiResult; return int64(sum); } function mul_256(int x, int y) internal pure returns (int) { int xl = x; int yl = y; uint xlo = uint((xl & int(0x00000000FFFFFFFF))); int xhi = xl >> 32; // FRACTIONAL_PLACES uint ylo = uint(yl & int(0x00000000FFFFFFFF)); int yhi = yl >> 32; // FRACTIONAL_PLACES uint lolo = xlo * ylo; int lohi = int(xlo) * yhi; int hilo = xhi * int(ylo); int hihi = xhi * yhi; uint loResult = lolo >> 32; // FRACTIONAL_PLACES int midResult1 = lohi; int midResult2 = hilo; int hiResult = hihi << 32; // FRACTIONAL_PLACES int sum = int(loResult) + midResult1 + midResult2 + hiResult; return sum; } function floor(int x) internal pure returns (int64) { return int64(x & 0xFFFFFFFF00000000); } function round(int x) internal pure returns (int) { int fractionalPart = x & 0x00000000FFFFFFFF; int integralPart = floor(x); if (fractionalPart < 0x80000000) return integralPart; if (fractionalPart > 0x80000000) return integralPart + ONE; if ((integralPart & ONE) == 0) return integralPart; return integralPart + ONE; } function sub(int64 x, int64 y) internal pure returns (int64) { int64 xl = x; int64 yl = y; int64 diff = xl - yl; if (((xl ^ yl) & (xl ^ diff) & MIN_VALUE) != 0) diff = xl < 0 ? MIN_VALUE : MAX_VALUE; return diff; } function add(int64 x, int64 y) internal pure returns (int64) { int64 xl = x; int64 yl = y; int64 sum = xl + yl; if ((~(xl ^ yl) & (xl ^ sum) & MIN_VALUE) != 0) sum = xl > 0 ? MAX_VALUE : MIN_VALUE; return sum; } function sign(int64 x) internal pure returns (int8) { return x == int8(0) ? int8(0) : x > int8(0) ? int8(1) : int8(-1); } function abs(int64 x) internal pure returns (int64) { int64 mask = x >> 63; return (x + mask) ^ mask; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IAccessControl.sol"; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); }
// SPDX-License-Identifier: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; interface IAttributes { function getAttributes(int32 seed) external view returns (string memory attributes); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface for an ERC1820 implementer, as defined in the * https://eips.ethereum.org/EIPS/eip-1820#interface-implementation-erc1820implementerinterface[EIP]. * Used by contracts that will be registered as implementers in the * {IERC1820Registry}. */ interface IERC1820Implementer { /** * @dev Returns a special value (`ERC1820_ACCEPT_MAGIC`) if this contract * implements `interfaceHash` for `account`. * * See {IERC1820Registry-setInterfaceImplementer}. */ function canImplementInterfaceForAddress(bytes32 interfaceHash, address account) external view returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the global ERC1820 Registry, as defined in the * https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register * implementers for interfaces in this registry, as well as query support. * * Implementers may be shared by multiple accounts, and can also implement more * than a single interface for each account. Contracts can implement interfaces * for themselves, but externally-owned accounts (EOA) must delegate this to a * contract. * * {IERC165} interfaces can also be queried via the registry. * * For an in-depth explanation and source code analysis, see the EIP text. */ interface IERC1820Registry { /** * @dev Sets `newManager` as the manager for `account`. A manager of an * account is able to set interface implementers for it. * * By default, each account is its own manager. Passing a value of `0x0` in * `newManager` will reset the manager to this initial state. * * Emits a {ManagerChanged} event. * * Requirements: * * - the caller must be the current manager for `account`. */ function setManager(address account, address newManager) external; /** * @dev Returns the manager for `account`. * * See {setManager}. */ function getManager(address account) external view returns (address); /** * @dev Sets the `implementer` contract as ``account``'s implementer for * `interfaceHash`. * * `account` being the zero address is an alias for the caller's address. * The zero address can also be used in `implementer` to remove an old one. * * See {interfaceHash} to learn how these are created. * * Emits an {InterfaceImplementerSet} event. * * Requirements: * * - the caller must be the current manager for `account`. * - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not * end in 28 zeroes). * - `implementer` must implement {IERC1820Implementer} and return true when * queried for support, unless `implementer` is the caller. See * {IERC1820Implementer-canImplementInterfaceForAddress}. */ function setInterfaceImplementer( address account, bytes32 _interfaceHash, address implementer ) external; /** * @dev Returns the implementer of `interfaceHash` for `account`. If no such * implementer is registered, returns the zero address. * * If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28 * zeroes), `account` will be queried for support of it. * * `account` being the zero address is an alias for the caller's address. */ function getInterfaceImplementer(address account, bytes32 _interfaceHash) external view returns (address); /** * @dev Returns the interface hash for an `interfaceName`, as defined in the * corresponding * https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP]. */ function interfaceHash(string calldata interfaceName) external pure returns (bytes32); /** * @notice Updates the cache with whether the contract implements an ERC165 interface or not. * @param account Address of the contract for which to update the cache. * @param interfaceId ERC165 interface for which to update the cache. */ function updateERC165Cache(address account, bytes4 interfaceId) external; /** * @notice Checks whether a contract implements an ERC165 interface or not. * If the result is not cached a direct lookup on the contract address is performed. * If the result is not cached or the cached value is out-of-date, the cache MUST be updated manually by calling * {updateERC165Cache} with the contract address. * @param account Address of the contract to check. * @param interfaceId ERC165 interface to check. * @return True if `account` implements `interfaceId`, false otherwise. */ function implementsERC165Interface(address account, bytes4 interfaceId) external view returns (bool); /** * @notice Checks whether a contract implements an ERC165 interface or not without using nor updating the cache. * @param account Address of the contract to check. * @param interfaceId ERC165 interface to check. * @return True if `account` implements `interfaceId`, false otherwise. */ function implementsERC165InterfaceNoCache(address account, bytes4 interfaceId) external view returns (bool); event InterfaceImplementerSet(address indexed account, bytes32 indexed interfaceHash, address indexed implementer); event ManagerChanged(address indexed account, address indexed newManager); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; import "RandomV1.sol"; interface IRenderer { struct RenderArgs { int16 index; uint8 stage; int32 seed; uint32[16384] buffer; RandomV1.PRNG prng; } /** * @notice Renders a chunk of the artwork, given an index. * @dev The output is an array of packed uint32s, in ARGB format. */ function render(RenderArgs memory args) external view returns (RenderArgs memory results); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; library MathV1 { function max(int256 a, int256 b) internal pure returns (int256) { return a >= b ? a : b; } function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } function max3( int256 a, int256 b, int256 c ) internal pure returns (int256) { int256 d = b >= c ? b : c; return a >= d ? a : d; } function min3( int256 a, int256 b, int256 c ) internal pure returns (int256) { int256 d = b < c ? b : c; return a < d ? a : d; } function abs(int256 x) internal pure returns (int256) { return x >= 0 ? x : -x; } function sign(int256 x) internal pure returns (int8) { return x == 0 ? int8(0) : x > 0 ? int8(1) : int8(-1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "Address.sol"; /** * @dev Provides a function to batch together multiple calls in a single external call. * * _Available since v4.1._ */ abstract contract Multicall { /** * @dev Receives and executes a batch of function calls on this contract. */ function multicall(bytes[] calldata data) external returns (bytes[] memory results) { results = new bytes[](data.length); for (uint256 i = 0; i < data.length; i++) { results[i] = Address.functionDelegateCall(address(this), data[i]); } return results; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; import "Fix64V1.sol"; import "Trig256.sol"; import "MathV1.sol"; /* A pseudo-random number generator, adapted from and matching the algorithm for .NET maximum compatibility Random implementation. See: https://github.com/dotnet/runtime/blob/f7633f498a8be34bee739b240a0aa9ae6a660cd9/src/libraries/System.Private.CoreLib/src/System/Random.Net5CompatImpl.cs#L192 https://github.com/dotnet/runtime/blob/main/LICENSE.TXT THIRD PARTY NOTICES: ==================== The MIT License (MIT) Copyright (c) .NET Foundation and Contributors All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ library RandomV1 { int32 private constant MBIG = 0x7fffffff; int32 private constant MSEED = 161803398; struct PRNG { int32[56] _seedArray; int32 _inext; int32 _inextp; } function buildSeedTable(int32 seed) internal pure returns(PRNG memory prng) { uint8 ii = 0; int32 mj; int32 mk; int32 subtraction = (seed == type(int32).min) ? type(int32).max : int32(MathV1.abs(seed)); mj = MSEED - subtraction; prng._seedArray[55] = mj; mk = 1; for (uint8 i = 1; i < 55; i++) { if ((ii += 21) >= 55) { ii -= 55; } prng._seedArray[uint64(ii)] = mk; mk = mj - mk; if (mk < 0) mk += MBIG; mj = prng._seedArray[uint8(ii)]; } for (uint8 k = 1; k < 5; k++) { for (uint8 i = 1; i < 56; i++) { uint8 n = i + 30; if (n >= 55) { n -= 55; } int64 an = prng._seedArray[1 + n]; int64 ai = prng._seedArray[i]; prng._seedArray[i] = int32(ai - an); if (prng._seedArray[i] < 0) { int64 x = prng._seedArray[i]; x += MBIG; prng._seedArray[i] = int32(x); } } } prng._inextp = 21; } function next(PRNG memory prng, int32 maxValue) internal pure returns (int32) { require(maxValue >= 0, "maxValue < 0"); int32 retval = next(prng); int64 fretval = retval * Fix64V1.ONE; int64 sample = Fix64V1.mul(fretval, Fix64V1.div(Fix64V1.ONE, MBIG * Fix64V1.ONE)); int64 sr = Fix64V1.mul(sample, maxValue * Fix64V1.ONE); int32 r = int32(sr >> 32 /* FRACTIONAL_PLACES */); return r; } function next(PRNG memory prng, int32 minValue, int32 maxValue) internal pure returns(int32) { require(maxValue > minValue, "maxValue <= minValue"); int64 range = maxValue - minValue; if (range <= type(int32).max) { int32 retval = next(prng); int64 fretval = retval * Fix64V1.ONE; int64 sample = Fix64V1.mul(fretval, Fix64V1.div(Fix64V1.ONE, MBIG * Fix64V1.ONE)); int64 sr = Fix64V1.mul(sample, range * Fix64V1.ONE); int32 r = int32(sr >> 32 /* FRACTIONAL_PLACES */) + minValue; return r; } else { int64 fretval = nextForLargeRange(prng); int64 sr = Fix64V1.mul(fretval, range * Fix64V1.ONE); int32 r = int32(sr >> 32 /* FRACTIONAL_PLACES */) + minValue; return r; } } function next(PRNG memory prng) internal pure returns(int32) { int64 retVal; int32 locINext = prng._inext; int32 locINextp = prng._inextp; if (++locINext >= 56) locINext = 1; if (++locINextp >= 56) locINextp = 1; int64 a = int64(prng._seedArray[uint32(locINext)]); int64 b = int64(prng._seedArray[uint32(locINextp)]); retVal = a - b; if (retVal == MBIG) { retVal--; } if (retVal < 0) { retVal += MBIG; } prng._seedArray[uint32(locINext)] = int32(retVal); prng._inext = locINext; prng._inextp = locINextp; int32 r = int32(retVal); return r; } function nextForLargeRange(PRNG memory prng) private pure returns(int64) { int sample1 = next(prng); int sample2 = next(prng); bool negative = sample2 % 2 == 0; if (negative) { sample1 = -sample1; } int64 d = int64(sample1) * Fix64V1.ONE; d = Fix64V1.add(int64(d), (type(int32).max - 1)); d = Fix64V1.div(int64(d), int64(2) * (type(int32).max - 1)); return d; } function nextGaussian(PRNG memory prng) internal pure returns (int64 randNormal) { int64 u1 = Fix64V1.sub(Fix64V1.ONE, Fix64V1.mul(next(prng) * Fix64V1.ONE, Fix64V1.div(Fix64V1.ONE, Fix64V1.MAX_VALUE))); int64 u2 = Fix64V1.sub(Fix64V1.ONE, Fix64V1.mul(next(prng) * Fix64V1.ONE, Fix64V1.div(Fix64V1.ONE, Fix64V1.MAX_VALUE))); int64 sqrt = Trig256.sqrt(Fix64V1.mul(-2 * Fix64V1.ONE, Trig256.log(u1))); int64 randStdNormal = Fix64V1.mul(sqrt, Trig256.sin(Fix64V1.mul(Fix64V1.TWO, Fix64V1.mul(Fix64V1.PI, u2)))); randNormal = Fix64V1.add(0, Fix64V1.mul(Fix64V1.ONE, randStdNormal)); return randNormal; } }
// SPDX-License-Identifier: UNLICENSED /* Copyright (c) 2021 Kohi Art Community Inc. All rights reserved. */ pragma solidity ^0.8.0; library SinLut256 { /** * @notice Lookup tables for computing the sine value for a given angle. * @param i The clamped and rounded angle integral to index into the table. * @return The sine value in fixed-point (Q31.32) space. */ function sinlut(int256 i) external pure returns (int64) { if (i <= 127) { if (i <= 63) { if (i <= 31) { if (i <= 15) { if (i <= 7) { if (i <= 3) { if (i <= 1) { if (i == 0) { return 0; } else { return 26456769; } } else { if (i == 2) { return 52912534; } else { return 79366292; } } } else { if (i <= 5) { if (i == 4) { return 105817038; } else { return 132263769; } } else { if (i == 6) { return 158705481; } else { return 185141171; } } } } else { if (i <= 11) { if (i <= 9) { if (i == 8) { return 211569835; } else { return 237990472; } } else { if (i == 10) { return 264402078; } else { return 290803651; } } } else { if (i <= 13) { if (i == 12) { return 317194190; } else { return 343572692; } } else { if (i == 14) { return 369938158; } else { return 396289586; } } } } } else { if (i <= 23) { if (i <= 19) { if (i <= 17) { if (i == 16) { return 422625977; } else { return 448946331; } } else { if (i == 18) { return 475249649; } else { return 501534935; } } } else { if (i <= 21) { if (i == 20) { return 527801189; } else { return 554047416; } } else { if (i == 22) { return 580272619; } else { return 606475804; } } } } else { if (i <= 27) { if (i <= 25) { if (i == 24) { return 632655975; } else { return 658812141; } } else { if (i == 26) { return 684943307; } else { return 711048483; } } } else { if (i <= 29) { if (i == 28) { return 737126679; } else { return 763176903; } } else { if (i == 30) { return 789198169; } else { return 815189489; } } } } } } else { if (i <= 47) { if (i <= 39) { if (i <= 35) { if (i <= 33) { if (i == 32) { return 841149875; } else { return 867078344; } } else { if (i == 34) { return 892973912; } else { return 918835595; } } } else { if (i <= 37) { if (i == 36) { return 944662413; } else { return 970453386; } } else { if (i == 38) { return 996207534; } else { return 1021923881; } } } } else { if (i <= 43) { if (i <= 41) { if (i == 40) { return 1047601450; } else { return 1073239268; } } else { if (i == 42) { return 1098836362; } else { return 1124391760; } } } else { if (i <= 45) { if (i == 44) { return 1149904493; } else { return 1175373592; } } else { if (i == 46) { return 1200798091; } else { return 1226177026; } } } } } else { if (i <= 55) { if (i <= 51) { if (i <= 49) { if (i == 48) { return 1251509433; } else { return 1276794351; } } else { if (i == 50) { return 1302030821; } else { return 1327217884; } } } else { if (i <= 53) { if (i == 52) { return 1352354586; } else { return 1377439973; } } else { if (i == 54) { return 1402473092; } else { return 1427452994; } } } } else { if (i <= 59) { if (i <= 57) { if (i == 56) { return 1452378731; } else { return 1477249357; } } else { if (i == 58) { return 1502063928; } else { return 1526821503; } } } else { if (i <= 61) { if (i == 60) { return 1551521142; } else { return 1576161908; } } else { if (i == 62) { return 1600742866; } else { return 1625263084; } } } } } } } else { if (i <= 95) { if (i <= 79) { if (i <= 71) { if (i <= 67) { if (i <= 65) { if (i == 64) { return 1649721630; } else { return 1674117578; } } else { if (i == 66) { return 1698450000; } else { return 1722717974; } } } else { if (i <= 69) { if (i == 68) { return 1746920580; } else { return 1771056897; } } else { if (i == 70) { return 1795126012; } else { return 1819127010; } } } } else { if (i <= 75) { if (i <= 73) { if (i == 72) { return 1843058980; } else { return 1866921015; } } else { if (i == 74) { return 1890712210; } else { return 1914431660; } } } else { if (i <= 77) { if (i == 76) { return 1938078467; } else { return 1961651733; } } else { if (i == 78) { return 1985150563; } else { return 2008574067; } } } } } else { if (i <= 87) { if (i <= 83) { if (i <= 81) { if (i == 80) { return 2031921354; } else { return 2055191540; } } else { if (i == 82) { return 2078383740; } else { return 2101497076; } } } else { if (i <= 85) { if (i == 84) { return 2124530670; } else { return 2147483647; } } else { if (i == 86) { return 2170355138; } else { return 2193144275; } } } } else { if (i <= 91) { if (i <= 89) { if (i == 88) { return 2215850191; } else { return 2238472027; } } else { if (i == 90) { return 2261008923; } else { return 2283460024; } } } else { if (i <= 93) { if (i == 92) { return 2305824479; } else { return 2328101438; } } else { if (i == 94) { return 2350290057; } else { return 2372389494; } } } } } } else { if (i <= 111) { if (i <= 103) { if (i <= 99) { if (i <= 97) { if (i == 96) { return 2394398909; } else { return 2416317469; } } else { if (i == 98) { return 2438144340; } else { return 2459878695; } } } else { if (i <= 101) { if (i == 100) { return 2481519710; } else { return 2503066562; } } else { if (i == 102) { return 2524518435; } else { return 2545874514; } } } } else { if (i <= 107) { if (i <= 105) { if (i == 104) { return 2567133990; } else { return 2588296054; } } else { if (i == 106) { return 2609359905; } else { return 2630324743; } } } else { if (i <= 109) { if (i == 108) { return 2651189772; } else { return 2671954202; } } else { if (i == 110) { return 2692617243; } else { return 2713178112; } } } } } else { if (i <= 119) { if (i <= 115) { if (i <= 113) { if (i == 112) { return 2733636028; } else { return 2753990216; } } else { if (i == 114) { return 2774239903; } else { return 2794384321; } } } else { if (i <= 117) { if (i == 116) { return 2814422705; } else { return 2834354295; } } else { if (i == 118) { return 2854178334; } else { return 2873894071; } } } } else { if (i <= 123) { if (i <= 121) { if (i == 120) { return 2893500756; } else { return 2912997648; } } else { if (i == 122) { return 2932384004; } else { return 2951659090; } } } else { if (i <= 125) { if (i == 124) { return 2970822175; } else { return 2989872531; } } else { if (i == 126) { return 3008809435; } else { return 3027632170; } } } } } } } } else { if (i <= 191) { if (i <= 159) { if (i <= 143) { if (i <= 135) { if (i <= 131) { if (i <= 129) { if (i == 128) { return 3046340019; } else { return 3064932275; } } else { if (i == 130) { return 3083408230; } else { return 3101767185; } } } else { if (i <= 133) { if (i == 132) { return 3120008443; } else { return 3138131310; } } else { if (i == 134) { return 3156135101; } else { return 3174019130; } } } } else { if (i <= 139) { if (i <= 137) { if (i == 136) { return 3191782721; } else { return 3209425199; } } else { if (i == 138) { return 3226945894; } else { return 3244344141; } } } else { if (i <= 141) { if (i == 140) { return 3261619281; } else { return 3278770658; } } else { if (i == 142) { return 3295797620; } else { return 3312699523; } } } } } else { if (i <= 151) { if (i <= 147) { if (i <= 145) { if (i == 144) { return 3329475725; } else { return 3346125588; } } else { if (i == 146) { return 3362648482; } else { return 3379043779; } } } else { if (i <= 149) { if (i == 148) { return 3395310857; } else { return 3411449099; } } else { if (i == 150) { return 3427457892; } else { return 3443336630; } } } } else { if (i <= 155) { if (i <= 153) { if (i == 152) { return 3459084709; } else { return 3474701532; } } else { if (i == 154) { return 3490186507; } else { return 3505539045; } } } else { if (i <= 157) { if (i == 156) { return 3520758565; } else { return 3535844488; } } else { if (i == 158) { return 3550796243; } else { return 3565613262; } } } } } } else { if (i <= 175) { if (i <= 167) { if (i <= 163) { if (i <= 161) { if (i == 160) { return 3580294982; } else { return 3594840847; } } else { if (i == 162) { return 3609250305; } else { return 3623522808; } } } else { if (i <= 165) { if (i == 164) { return 3637657816; } else { return 3651654792; } } else { if (i == 166) { return 3665513205; } else { return 3679232528; } } } } else { if (i <= 171) { if (i <= 169) { if (i == 168) { return 3692812243; } else { return 3706251832; } } else { if (i == 170) { return 3719550786; } else { return 3732708601; } } } else { if (i <= 173) { if (i == 172) { return 3745724777; } else { return 3758598821; } } else { if (i == 174) { return 3771330243; } else { return 3783918561; } } } } } else { if (i <= 183) { if (i <= 179) { if (i <= 177) { if (i == 176) { return 3796363297; } else { return 3808663979; } } else { if (i == 178) { return 3820820141; } else { return 3832831319; } } } else { if (i <= 181) { if (i == 180) { return 3844697060; } else { return 3856416913; } } else { if (i == 182) { return 3867990433; } else { return 3879417181; } } } } else { if (i <= 187) { if (i <= 185) { if (i == 184) { return 3890696723; } else { return 3901828632; } } else { if (i == 186) { return 3912812484; } else { return 3923647863; } } } else { if (i <= 189) { if (i == 188) { return 3934334359; } else { return 3944871565; } } else { if (i == 190) { return 3955259082; } else { return 3965496515; } } } } } } } else { if (i <= 223) { if (i <= 207) { if (i <= 199) { if (i <= 195) { if (i <= 193) { if (i == 192) { return 3975583476; } else { return 3985519583; } } else { if (i == 194) { return 3995304457; } else { return 4004937729; } } } else { if (i <= 197) { if (i == 196) { return 4014419032; } else { return 4023748007; } } else { if (i == 198) { return 4032924300; } else { return 4041947562; } } } } else { if (i <= 203) { if (i <= 201) { if (i == 200) { return 4050817451; } else { return 4059533630; } } else { if (i == 202) { return 4068095769; } else { return 4076503544; } } } else { if (i <= 205) { if (i == 204) { return 4084756634; } else { return 4092854726; } } else { if (i == 206) { return 4100797514; } else { return 4108584696; } } } } } else { if (i <= 215) { if (i <= 211) { if (i <= 209) { if (i == 208) { return 4116215977; } else { return 4123691067; } } else { if (i == 210) { return 4131009681; } else { return 4138171544; } } } else { if (i <= 213) { if (i == 212) { return 4145176382; } else { return 4152023930; } } else { if (i == 214) { return 4158713929; } else { return 4165246124; } } } } else { if (i <= 219) { if (i <= 217) { if (i == 216) { return 4171620267; } else { return 4177836117; } } else { if (i == 218) { return 4183893437; } else { return 4189791999; } } } else { if (i <= 221) { if (i == 220) { return 4195531577; } else { return 4201111955; } } else { if (i == 222) { return 4206532921; } else { return 4211794268; } } } } } } else { if (i <= 239) { if (i <= 231) { if (i <= 227) { if (i <= 225) { if (i == 224) { return 4216895797; } else { return 4221837315; } } else { if (i == 226) { return 4226618635; } else { return 4231239573; } } } else { if (i <= 229) { if (i == 228) { return 4235699957; } else { return 4239999615; } } else { if (i == 230) { return 4244138385; } else { return 4248116110; } } } } else { if (i <= 235) { if (i <= 233) { if (i == 232) { return 4251932639; } else { return 4255587827; } } else { if (i == 234) { return 4259081536; } else { return 4262413632; } } } else { if (i <= 237) { if (i == 236) { return 4265583990; } else { return 4268592489; } } else { if (i == 238) { return 4271439015; } else { return 4274123460; } } } } } else { if (i <= 247) { if (i <= 243) { if (i <= 241) { if (i == 240) { return 4276645722; } else { return 4279005706; } } else { if (i == 242) { return 4281203321; } else { return 4283238485; } } } else { if (i <= 245) { if (i == 244) { return 4285111119; } else { return 4286821154; } } else { if (i == 246) { return 4288368525; } else { return 4289753172; } } } } else { if (i <= 251) { if (i <= 249) { if (i == 248) { return 4290975043; } else { return 4292034091; } } else { if (i == 250) { return 4292930277; } else { return 4293663567; } } } else { if (i <= 253) { if (i == 252) { return 4294233932; } else { return 4294641351; } } else { if (i == 254) { return 4294885809; } else { return 4294967296; } } } } } } } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { assembly { r.slot := slot } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Tooling for timepoints, timers and delays */ library Timers { struct Timestamp { uint64 _deadline; } function getDeadline(Timestamp memory timer) internal pure returns (uint64) { return timer._deadline; } function setDeadline(Timestamp storage timer, uint64 timestamp) internal { timer._deadline = timestamp; } function reset(Timestamp storage timer) internal { timer._deadline = 0; } function isUnset(Timestamp memory timer) internal pure returns (bool) { return timer._deadline == 0; } function isStarted(Timestamp memory timer) internal pure returns (bool) { return timer._deadline > 0; } function isPending(Timestamp memory timer) internal view returns (bool) { return timer._deadline > block.timestamp; } function isExpired(Timestamp memory timer) internal view returns (bool) { return isStarted(timer) && timer._deadline <= block.timestamp; } struct BlockNumber { uint64 _deadline; } function getDeadline(BlockNumber memory timer) internal pure returns (uint64) { return timer._deadline; } function setDeadline(BlockNumber storage timer, uint64 timestamp) internal { timer._deadline = timestamp; } function reset(BlockNumber storage timer) internal { timer._deadline = 0; } function isUnset(BlockNumber memory timer) internal pure returns (bool) { return timer._deadline == 0; } function isStarted(BlockNumber memory timer) internal pure returns (bool) { return timer._deadline > 0; } function isPending(BlockNumber memory timer) internal view returns (bool) { return timer._deadline > block.number; } function isExpired(BlockNumber memory timer) internal view returns (bool) { return isStarted(timer) && timer._deadline <= block.number; } }
// SPDX-License-Identifier: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; import "Fix64V1.sol"; import "SinLut256.sol"; /* Provides trigonometric functions in Q31.Q32 format. exp: Adapted from Petteri Aimonen's libfixmath See: https://github.com/PetteriAimonen/libfixmath https://github.com/PetteriAimonen/libfixmath/blob/master/LICENSE other functions: Adapted from André Slupik's FixedMath.NET https://github.com/asik/FixedMath.Net/blob/master/LICENSE.txt THIRD PARTY NOTICES: ==================== libfixmath is Copyright (c) 2011-2021 Flatmush <[email protected]>, Petteri Aimonen <[email protected]>, & libfixmath AUTHORS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Copyright 2012 André Slupik Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. This project uses code from the log2fix library, which is under the following license: The MIT License (MIT) Copyright (c) 2015 Dan Moulding Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ library Trig256 { int64 private constant LARGE_PI = 7244019458077122842; int64 private constant LN2 = 0xB17217F7; int64 private constant LN_MAX = 0x157CD0E702; int64 private constant LN_MIN = -0x162E42FEFA; int64 private constant E = -0x2B7E15162; function sin(int64 x) internal pure returns (int64) { ( int64 clamped, bool flipHorizontal, bool flipVertical ) = clamp(x); int64 lutInterval = Fix64V1.div(((256 - 1) * Fix64V1.ONE), Fix64V1.PI_OVER_2); int rawIndex = Fix64V1.mul_256(clamped, lutInterval); int64 roundedIndex = int64(Fix64V1.round(rawIndex)); int64 indexError = Fix64V1.sub(int64(rawIndex), roundedIndex); roundedIndex = roundedIndex >> 32; /* FRACTIONAL_PLACES */ int64 nearestValueIndex = flipHorizontal ? (256 - 1) - roundedIndex : roundedIndex; int64 nearestValue = SinLut256.sinlut(nearestValueIndex); int64 secondNearestValue = SinLut256.sinlut( flipHorizontal ? (256 - 1) - roundedIndex - Fix64V1.sign(indexError) : roundedIndex + Fix64V1.sign(indexError) ); int64 delta = Fix64V1.mul(indexError, Fix64V1.abs(Fix64V1.sub(nearestValue, secondNearestValue))); int64 interpolatedValue = nearestValue + (flipHorizontal ? -delta : delta); int64 finalValue = flipVertical ? -interpolatedValue: interpolatedValue; return finalValue; } function cos(int64 x) internal pure returns (int64) { int64 xl = x; int64 angle; if(xl > 0) { angle = Fix64V1.add(xl, Fix64V1.sub(0 - Fix64V1.PI, Fix64V1.PI_OVER_2)); } else { angle = Fix64V1.add(xl, Fix64V1.PI_OVER_2); } return sin(angle); } function sqrt(int64 x) internal pure returns (int64) { int64 xl = x; if (xl < 0) revert("negative value passed to sqrt"); uint64 num = uint64(xl); uint64 result = uint64(0); uint64 bit = uint64(1) << (64 - 2); while (bit > num) bit >>= 2; for (uint8 i = 0; i < 2; ++i) { while (bit != 0) { if (num >= result + bit) { num -= result + bit; result = (result >> 1) + bit; } else { result = result >> 1; } bit >>= 2; } if (i == 0) { if (num > (uint64(1) << (64 / 2)) - 1) { num -= result; num = (num << (64 / 2)) - uint64(0x80000000); result = (result << (64 / 2)) + uint64(0x80000000); } else { num <<= 64 / 2; result <<= 64 / 2; } bit = uint64(1) << (64 / 2 - 2); } } if (num > result) ++result; return int64(result); } function log2_256(int x) internal pure returns (int) { if (x <= 0) { revert("negative value passed to log2_256"); } // This implementation is based on Clay. S. Turner's fast binary logarithm // algorithm (C. S. Turner, "A Fast Binary Logarithm Algorithm", IEEE Signal // Processing Mag., pp. 124,140, Sep. 2010.) int b = 1 << 31; // FRACTIONAL_PLACES - 1 int y = 0; int rawX = x; while (rawX < Fix64V1.ONE) { rawX <<= 1; y -= Fix64V1.ONE; } while (rawX >= Fix64V1.ONE << 1) { rawX >>= 1; y += Fix64V1.ONE; } int z = rawX; for (uint8 i = 0; i < 32 /* FRACTIONAL_PLACES */; i++) { z = Fix64V1.mul_256(z, z); if (z >= Fix64V1.ONE << 1) { z = z >> 1; y += b; } b >>= 1; } return y; } function log_256(int x) internal pure returns (int) { return Fix64V1.mul_256(log2_256(x), LN2); } function log2(int64 x) internal pure returns (int64) { if (x <= 0) revert("non-positive value passed to log2"); // This implementation is based on Clay. S. Turner's fast binary logarithm // algorithm (C. S. Turner, "A Fast Binary Logarithm Algorithm", IEEE Signal // Processing Mag., pp. 124,140, Sep. 2010.) int64 b = 1 << 31; // FRACTIONAL_PLACES - 1 int64 y = 0; int64 rawX = x; while (rawX < Fix64V1.ONE) { rawX <<= 1; y -= Fix64V1.ONE; } while (rawX >= Fix64V1.ONE << 1) { rawX >>= 1; y += Fix64V1.ONE; } int64 z = rawX; for (int32 i = 0; i < Fix64V1.FRACTIONAL_PLACES; i++) { z = Fix64V1.mul(z, z); if (z >= Fix64V1.ONE << 1) { z = z >> 1; y += b; } b >>= 1; } return y; } function log(int64 x) internal pure returns (int64) { return Fix64V1.mul(log2(x), LN2); } function exp(int64 x) internal pure returns (int64) { if (x == 0) return Fix64V1.ONE; if (x == Fix64V1.ONE) return E; if (x >= LN_MAX) return Fix64V1.MAX_VALUE; if (x <= LN_MIN) return 0; /* The algorithm is based on the power series for exp(x): * http://en.wikipedia.org/wiki/Exponential_function#Formal_definition * * From term n, we get term n+1 by multiplying with x/n. * When the sum term drops to zero, we can stop summing. */ // The power-series converges much faster on positive values // and exp(-x) = 1/exp(x). bool neg = (x < 0); if (neg) x = -x; int64 result = Fix64V1.add( int64(x), Fix64V1.ONE ); int64 term = x; for (uint32 i = 2; i < 40; i++) { term = Fix64V1.mul( x, Fix64V1.div(term, int32(i) * Fix64V1.ONE) ); result = Fix64V1.add(result, int64(term)); if (term == 0) break; } if (neg) { result = Fix64V1.div(Fix64V1.ONE, result); } return result; } function clamp(int64 x) internal pure returns ( int64, bool, bool ) { int64 clamped2Pi = x; for (uint8 i = 0; i < 29; ++i) { clamped2Pi %= LARGE_PI >> i; } if (x < 0) { clamped2Pi += Fix64V1.TWO_PI; } bool flipVertical = clamped2Pi >= Fix64V1.PI; int64 clampedPi = clamped2Pi; while (clampedPi >= Fix64V1.PI) { clampedPi -= Fix64V1.PI; } bool flipHorizontal = clampedPi >= Fix64V1.PI_OVER_2; int64 clampedPiOver2 = clampedPi; if (clampedPiOver2 >= Fix64V1.PI_OVER_2) clampedPiOver2 -= Fix64V1.PI_OVER_2; return (clampedPiOver2, flipHorizontal, flipVertical); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"collectionId","type":"bytes32"}],"name":"CollectionAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"collectionId","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"priceInWei","type":"uint256"},{"indexed":false,"internalType":"int32","name":"seed","type":"int32"}],"name":"CollectionMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"baseTokenUri","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"license","type":"string"},{"internalType":"uint256","name":"priceInWei","type":"uint256"},{"internalType":"int32","name":"seed","type":"int32"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"mintedMax","type":"uint256"},{"internalType":"uint256","name":"mintedMaxPerOwner","type":"uint256"},{"internalType":"uint256","name":"pauseAt","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"string[]","name":"creatorNames","type":"string[]"},{"internalType":"address payable[]","name":"creatorAddresses","type":"address[]"},{"internalType":"uint8[]","name":"creatorSplits","type":"uint8[]"},{"internalType":"bool","name":"useAllowList","type":"bool"},{"internalType":"address[]","name":"allowList","type":"address[]"},{"internalType":"address","name":"_renderer","type":"address"}],"internalType":"struct Kohi.Collection","name":"collection","type":"tuple"}],"name":"addCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addToBloomList","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"beginRender","outputs":[{"components":[{"internalType":"int16","name":"index","type":"int16"},{"internalType":"uint8","name":"stage","type":"uint8"},{"internalType":"int32","name":"seed","type":"int32"},{"internalType":"uint32[16384]","name":"buffer","type":"uint32[16384]"},{"components":[{"internalType":"int32[56]","name":"_seedArray","type":"int32[56]"},{"internalType":"int32","name":"_inext","type":"int32"},{"internalType":"int32","name":"_inextp","type":"int32"}],"internalType":"struct RandomV1.PRNG","name":"prng","type":"tuple"}],"internalType":"struct IRenderer.RenderArgs","name":"results","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAttributes","outputs":[{"internalType":"string","name":"attributes","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBloomList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"collectionId","type":"bytes32"}],"name":"getCollection","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"baseTokenUri","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"license","type":"string"},{"internalType":"uint256","name":"priceInWei","type":"uint256"},{"internalType":"int32","name":"seed","type":"int32"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"mintedMax","type":"uint256"},{"internalType":"uint256","name":"mintedMaxPerOwner","type":"uint256"},{"internalType":"uint256","name":"pauseAt","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"string[]","name":"creatorNames","type":"string[]"},{"internalType":"address payable[]","name":"creatorAddresses","type":"address[]"},{"internalType":"uint8[]","name":"creatorSplits","type":"uint8[]"},{"internalType":"bool","name":"useAllowList","type":"bool"},{"internalType":"address[]","name":"allowList","type":"address[]"},{"internalType":"address","name":"_renderer","type":"address"}],"internalType":"struct Kohi.Collection","name":"collection","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"collectionId","type":"bytes32"}],"name":"getSeed","outputs":[{"internalType":"int32","name":"","type":"int32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isInBloomList","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":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownsToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"collectionId","type":"bytes32"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"collectionId","type":"bytes32"},{"internalType":"address","name":"recipient","type":"address"}],"name":"purchaseFor","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeFromBloomList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"int16","name":"index","type":"int16"},{"internalType":"uint8","name":"stage","type":"uint8"},{"internalType":"int32","name":"seed","type":"int32"},{"internalType":"uint32[16384]","name":"buffer","type":"uint32[16384]"},{"components":[{"internalType":"int32[56]","name":"_seedArray","type":"int32[56]"},{"internalType":"int32","name":"_inext","type":"int32"},{"internalType":"int32","name":"_inextp","type":"int32"}],"internalType":"struct RandomV1.PRNG","name":"prng","type":"tuple"}],"internalType":"struct IRenderer.RenderArgs","name":"args","type":"tuple"}],"name":"render","outputs":[{"components":[{"internalType":"int16","name":"index","type":"int16"},{"internalType":"uint8","name":"stage","type":"uint8"},{"internalType":"int32","name":"seed","type":"int32"},{"internalType":"uint32[16384]","name":"buffer","type":"uint32[16384]"},{"components":[{"internalType":"int32[56]","name":"_seedArray","type":"int32[56]"},{"internalType":"int32","name":"_inext","type":"int32"},{"internalType":"int32","name":"_inextp","type":"int32"}],"internalType":"struct RandomV1.PRNG","name":"prng","type":"tuple"}],"internalType":"struct IRenderer.RenderArgs","name":"results","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"setBloomList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"collectionId","type":"bytes32"},{"internalType":"int32","name":"seed","type":"int32"}],"name":"setSeed","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":[],"name":"togglePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"updateAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"collectionId","type":"bytes32"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"baseTokenUri","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"license","type":"string"},{"internalType":"uint256","name":"priceInWei","type":"uint256"},{"internalType":"int32","name":"seed","type":"int32"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"mintedMax","type":"uint256"},{"internalType":"uint256","name":"mintedMaxPerOwner","type":"uint256"},{"internalType":"uint256","name":"pauseAt","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"string[]","name":"creatorNames","type":"string[]"},{"internalType":"address payable[]","name":"creatorAddresses","type":"address[]"},{"internalType":"uint8[]","name":"creatorSplits","type":"uint8[]"},{"internalType":"bool","name":"useAllowList","type":"bool"},{"internalType":"address[]","name":"allowList","type":"address[]"},{"internalType":"address","name":"_renderer","type":"address"}],"internalType":"struct Kohi.Collection","name":"collection","type":"tuple"}],"name":"updateCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractUri","type":"string"}],"name":"updateContractUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"royalty","type":"uint8"},{"internalType":"address payable[]","name":"addresses","type":"address[]"},{"internalType":"uint8[]","name":"splits","type":"uint8[]"}],"name":"updateOwnerData","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051806040016040528060048152602001634b6f686960e01b815250604051806040016040528060048152602001634b4f484960e01b81525081600290805190602001906200006492919062000192565b5080516200007a90600390602084019062000192565b5050600c805460ff19169055506000600e55601980546001600160a01b03191633178155604080518082019091528181527f68747470733a2f2f6b6f68692e6172742f6d65746164617461000000000000006020909101908152620000e391601a919062000192565b50620000ee620000f4565b62000275565b600c5460ff16156200013f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001753390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620001a09062000238565b90600052602060002090601f016020900481019282620001c457600085556200020f565b82601f10620001df57805160ff19168380011785556200020f565b828001600101855582156200020f579182015b828111156200020f578251825591602001919060010190620001f2565b506200021d92915062000221565b5090565b5b808211156200021d576000815560010162000222565b600181811c908216806200024d57607f821691505b602082108114156200026f57634e487b7160e01b600052602260045260246000fd5b50919050565b615fa080620002856000396000f3fe6080604052600436106102185760003560e01c806301ffc9a71461021d57806306fdde0314610252578063081812fc14610274578063095ea7b3146102a157806318160ddd146102c35780631a857f9e146102e257806323b872dd14610302578063248a9ca3146103225780632be50e4f146103425780632c94f037146103625780632f2ff15d146103825780632f745c59146103a257806336566f06146103c257806336568abe146103d757806337bc04c0146103f757806339b10a951461041757806342842e0e1461044457806342966c68146104645780634378a6e31461048457806347c8ff5e146104a45780634d60c620146104c45780634f6ccce7146104e65780635c975abb146105065780636352211e1461051e57806370a082311461053e578063841b4bda1461055e57806389d59ae41461057e5780639010d07c1461059e57806391d14854146105be57806395d89b41146105de5780639ab0cd88146105f3578063a217fddf14610613578063a22cb46514610628578063b0b3f14714610648578063b88d4fde1461067b578063c87b56dd1461069b578063ca15c873146106bb578063cc445611146106db578063d547741f146106ee578063e2f273bd1461070e578063e8a3d4851461072e578063e985e9c514610743578063ecb4cfb114610763578063ecc7add714610776578063f0bed7df14610796578063f450e90f146107c3578063f697240e146107e3575b600080fd5b34801561022957600080fd5b5061023d610238366004615211565b610803565b60405190151581526020015b60405180910390f35b34801561025e57600080fd5b50610267610814565b60405161024991906157b7565b34801561028057600080fd5b5061029461028f366004615146565b6108a6565b6040516102499190615753565b3480156102ad57600080fd5b506102c16102bc3660046150e6565b610933565b005b3480156102cf57600080fd5b50600a545b604051908152602001610249565b3480156102ee57600080fd5b506102c16102fd3660046152f5565b610a44565b34801561030e57600080fd5b506102c161031d366004614ff1565b610d55565b34801561032e57600080fd5b506102d461033d366004615146565b610d87565b34801561034e57600080fd5b506102c161035d366004614f9b565b610d9c565b34801561036e57600080fd5b506102c161037d366004615112565b610e94565b34801561038e57600080fd5b506102c161039d36600461515f565b610f8f565b3480156103ae57600080fd5b506102d46103bd3660046150e6565b610fb1565b3480156103ce57600080fd5b506102c1611047565b3480156103e357600080fd5b506102c16103f236600461515f565b611097565b34801561040357600080fd5b5061023d610412366004614f9b565b6110b9565b34801561042357600080fd5b50610437610432366004615146565b61110e565b60405161024991906159b4565b34801561045057600080fd5b506102c161045f366004614ff1565b6116f2565b34801561047057600080fd5b506102c161047f366004615146565b61170d565b34801561049057600080fd5b5061026761049f366004615146565b611787565b3480156104b057600080fd5b506102c16104bf36600461524b565b61187c565b3480156104d057600080fd5b506104d96118c2565b60405161024991906157a4565b3480156104f257600080fd5b506102d4610501366004615146565b611957565b34801561051257600080fd5b50600c5460ff1661023d565b34801561052a57600080fd5b50610294610539366004615146565b6119ea565b34801561054a57600080fd5b506102d4610559366004614f9b565b611a61565b34801561056a57600080fd5b506102c16105793660046151a9565b611ae8565b34801561058a57600080fd5b506102c1610599366004615184565b611da2565b3480156105aa57600080fd5b506102946105b93660046151ef565b611e83565b3480156105ca57600080fd5b5061023d6105d936600461515f565b611ea2565b3480156105ea57600080fd5b50610267611ecb565b3480156105ff57600080fd5b5061023d61060e3660046150e6565b611eda565b34801561061f57600080fd5b506102d4600081565b34801561063457600080fd5b506102c16106433660046150b1565b611f25565b34801561065457600080fd5b50610668610663366004615146565b611fe6565b60405160039190910b8152602001610249565b34801561068757600080fd5b506102c1610696366004615032565b61206a565b3480156106a757600080fd5b506102676106b6366004615146565b6120a2565b3480156106c757600080fd5b506102d46106d6366004615146565b612674565b6102c16106e9366004615146565b61268b565b3480156106fa57600080fd5b506102c161070936600461515f565b612695565b34801561071a57600080fd5b506102c1610729366004614f9b565b61269f565b34801561073a57600080fd5b50610267612740565b34801561074f57600080fd5b5061023d61075e366004614fb8565b61274f565b6102c161077136600461515f565b61277d565b34801561078257600080fd5b506102c1610791366004614f9b565b612a36565b3480156107a257600080fd5b506107b66107b1366004615146565b612bbe565b6040516102499190615b65565b3480156107cf57600080fd5b506107b66107de3660046153f4565b612c1f565b3480156107ef57600080fd5b506102c16107fe3660046154e1565b612c31565b600061080e82612d16565b92915050565b60606002805461082390615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461084f90615dcf565b801561089c5780601f106108715761010080835404028352916020019161089c565b820191906000526020600020905b81548152906001019060200180831161087f57829003601f168201915b5050505050905090565b60006108b182612d3b565b6109175760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061093e826119ea565b9050806001600160a01b0316836001600160a01b031614156109ac5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161090e565b336001600160a01b03821614806109c857506109c8813361274f565b610a355760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606482015260840161090e565b610a3f8383612d58565b505050565b6019546001600160a01b0316336001600160a01b031614610a775760405162461bcd60e51b815260040161090e90615871565b805151610a965760405162461bcd60e51b815260040161090e9061598a565b8051604051600091610aaa91602001615699565b60408051601f1981840301815291815281516020928301206000818152600d9093529120805491925090610add90615dcf565b159050610b275760405162461bcd60e51b815260206004820152601860248201527718dbdb1b1958dd1a5bdb88185b1c9958591e48185919195960421b604482015260640161090e565b6102208201516001600160a01b031615801590610b5257506102208201516001600160a01b03163b15155b610b6e5760405162461bcd60e51b815260040161090e90615895565b6000818152600d60209081526040909120835180518593610b93928492910190614731565b506020828101518051610bac9260018501920190614731565b5060408201518051610bc8916002840191602090910190614731565b5060608201518051610be4916003840191602090910190614731565b506080820151600482015560a082015160058201805463ffffffff191663ffffffff60039390930b9290921691909117905560c0820151600682015560e082015160078201556101008083015160088301556101208301516009830155610140830151600a8301805461016086015161ffff1990911692151561ff001916929092179115159092021790556101808201518051610c8b91600b8401916020909101906147b5565b506101a08201518051610ca891600c84019160209091019061480e565b506101c08201518051610cc591600d840191602090910190614863565b506101e0820151600e8201805460ff19169115159190911790556102008201518051610cfb91600f84019160209091019061480e565b506102209190910151601090910180546001600160a01b0319166001600160a01b0390921691909117905560405181907f91d11dbb3f16d7c25dce82ff9badd2b6f68a7a2e80fbab66c53bdab5a56aaa0f90600090a25050565b610d60335b82612dc6565b610d7c5760405162461bcd60e51b815260040161090e90615939565b610a3f838383612e88565b60009081526020819052604090206001015490565b6019546001600160a01b0316336001600160a01b031614610dcf5760405162461bcd60e51b815260040161090e90615871565b6001600160a01b03811615801590610def57506001600160a01b0381163b155b610e2d5760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b604482015260640161090e565b6017805460018181019092557fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c150180546001600160a01b039093166001600160a01b031990931683179055600091825260186020526040909120805460ff19169091179055565b6019546001600160a01b0316336001600160a01b031614610ec75760405162461bcd60e51b815260040161090e90615871565b60175415610f0b5760405162461bcd60e51b8152602060048201526011602482015270626c6f6f6d206c6973742065786973747360781b604482015260640161090e565b8051610f1e90601790602084019061480e565b5060005b601754811015610f8b5760016018600060178481548110610f4557610f45615eb4565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905580610f8381615e2a565b915050610f22565b5050565b610f998282613021565b6000828152600160205260409020610a3f908261303e565b6000610fbc83611a61565b821061101e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161090e565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6019546001600160a01b0316336001600160a01b03161461107a5760405162461bcd60e51b815260040161090e90615871565b600c5460ff161561108f5761108d613053565b565b61108d6130e0565b6110a1828261315b565b6000828152600160205260409020610a3f90826131d5565b6019546000906001600160a01b0316336001600160a01b0316146110ef5760405162461bcd60e51b815260040161090e90615871565b506001600160a01b031660009081526018602052604090205460ff1690565b6111ae6040518061024001604052806060815260200160608152602001606081526020016060815260200160008152602001600060030b8152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016060815260200160608152602001606081526020016000151581526020016060815260200160006001600160a01b031681525090565b6000828152600d602052604090819020815161024081019092528054829082906111d790615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461120390615dcf565b80156112505780601f1061122557610100808354040283529160200191611250565b820191906000526020600020905b81548152906001019060200180831161123357829003601f168201915b5050505050815260200160018201805461126990615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461129590615dcf565b80156112e25780601f106112b7576101008083540402835291602001916112e2565b820191906000526020600020905b8154815290600101906020018083116112c557829003601f168201915b505050505081526020016002820180546112fb90615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461132790615dcf565b80156113745780601f1061134957610100808354040283529160200191611374565b820191906000526020600020905b81548152906001019060200180831161135757829003601f168201915b5050505050815260200160038201805461138d90615dcf565b80601f01602080910402602001604051908101604052809291908181526020018280546113b990615dcf565b80156114065780601f106113db57610100808354040283529160200191611406565b820191906000526020600020905b8154815290600101906020018083116113e957829003601f168201915b505050918352505060048201546020808301919091526005830154600390810b810b900b6040808401919091526006840154606084015260078401546080840152600884015460a0840152600984015460c0840152600a84015460ff808216151560e08601526101009182900416151590840152600b8401805482518185028101850190935280835261012090940193919290919060009084015b8282101561154d5783829060005260206000200180546114c090615dcf565b80601f01602080910402602001604051908101604052809291908181526020018280546114ec90615dcf565b80156115395780601f1061150e57610100808354040283529160200191611539565b820191906000526020600020905b81548152906001019060200180831161151c57829003601f168201915b5050505050815260200190600101906114a1565b505050508152602001600c82018054806020026020016040519081016040528092919081815260200182805480156115ae57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611590575b50505050508152602001600d820180548060200260200160405190810160405280929190818152602001828054801561162457602002820191906000526020600020906000905b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116115f55790505b5050509183525050600e82015460ff161515602080830191909152600f83018054604080518285028101850182528281529401939283018282801561169257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611674575b5050509183525050601091909101546001600160a01b03166020918201526000848152600d90915260408120805492935090916116ce90615dcf565b9050116116ed5760405162461bcd60e51b815260040161090e906158bf565b919050565b610a3f8383836040518060200160405280600081525061206a565b61171633610d5a565b61177b5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840161090e565b611784816131ea565b50565b6019546060906001600160a01b0316336001600160a01b031614806117b157506117b13383611eda565b6117cd5760405162461bcd60e51b815260040161090e906157ca565b6000828152601260209081526040808320548352600d82528083206010015485845260139092529182902054915160016223c18d60e21b03198152600392830b90920b60048301526001600160a01b03169063ff70f9cc9060240160006040518083038186803b15801561184057600080fd5b505afa158015611854573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261080e919081019061527f565b6019546001600160a01b0316336001600160a01b0316146118af5760405162461bcd60e51b815260040161090e90615871565b8051610f8b90601a906020840190614731565b6019546060906001600160a01b0316336001600160a01b0316146118f85760405162461bcd60e51b815260040161090e90615871565b601780548060200260200160405190810160405280929190818152602001828054801561089c57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611930575050505050905090565b6000611962600a5490565b82106119c55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161090e565b600a82815481106119d8576119d8615eb4565b90600052602060002001549050919050565b6000818152600460205260408120546001600160a01b03168061080e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161090e565b60006001600160a01b038216611acc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161090e565b506001600160a01b031660009081526005602052604090205490565b6019546001600160a01b0316336001600160a01b031614611b1b5760405162461bcd60e51b815260040161090e90615871565b805151611b3a5760405162461bcd60e51b815260040161090e9061598a565b8051604051611b4c9190602001615699565b60408051601f1981840301815291815281516020928301206000818152600d909352908220805491945090611b8090615dcf565b905011611b9f5760405162461bcd60e51b815260040161090e906158bf565b6102208101516001600160a01b031615801590611bca57506102208101516001600160a01b03163b15155b611be65760405162461bcd60e51b815260040161090e90615895565b6000828152600d60209081526040909120825180518493611c0b928492910190614731565b506020828101518051611c249260018501920190614731565b5060408201518051611c40916002840191602090910190614731565b5060608201518051611c5c916003840191602090910190614731565b506080820151600482015560a082015160058201805463ffffffff191663ffffffff60039390930b9290921691909117905560c0820151600682015560e082015160078201556101008083015160088301556101208301516009830155610140830151600a8301805461016086015161ffff1990911692151561ff001916929092179115159092021790556101808201518051611d0391600b8401916020909101906147b5565b506101a08201518051611d2091600c84019160209091019061480e565b506101c08201518051611d3d91600d840191602090910190614863565b506101e0820151600e8201805460ff19169115159190911790556102008201518051611d7391600f84019160209091019061480e565b506102209190910151601090910180546001600160a01b0319166001600160a01b039092169190911790555050565b6019546001600160a01b0316336001600160a01b031614611dd55760405162461bcd60e51b815260040161090e90615871565b8060030b60001415611df95760405162461bcd60e51b815260040161090e906158ed565b6000828152600d6020526040902060050154600390810b900b15611e525760405162461bcd60e51b815260206004820152601060248201526f1cd9595908185b1c9958591e481cd95d60821b604482015260640161090e565b6000918252600d6020526040909120600501805460039290920b63ffffffff1663ffffffff19909216919091179055565b6000828152600160205260408120611e9b908361327f565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606003805461082390615dcf565b6000805b611ee784611a61565b811015611f1b57611ef88482610fb1565b831415611f0957600191505061080e565b80611f1381615e2a565b915050611ede565b5060009392505050565b6001600160a01b038216331415611f7a5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161090e565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6019546000906001600160a01b0316336001600160a01b03161461201c5760405162461bcd60e51b815260040161090e90615871565b6000828152600d6020526040902060050154600390810b900b6120515760405162461bcd60e51b815260040161090e90615913565b506000908152600d602052604090206005015460030b90565b6120743383612dc6565b6120905760405162461bcd60e51b815260040161090e90615939565b61209c8484848461328b565b50505050565b60606120ad82612d3b565b6121115760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161090e565b6000828152601260209081526040808320548352600d9091528082208151610240810190925280548290829061214690615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461217290615dcf565b80156121bf5780601f10612194576101008083540402835291602001916121bf565b820191906000526020600020905b8154815290600101906020018083116121a257829003601f168201915b505050505081526020016001820180546121d890615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461220490615dcf565b80156122515780601f1061222657610100808354040283529160200191612251565b820191906000526020600020905b81548152906001019060200180831161223457829003601f168201915b5050505050815260200160028201805461226a90615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461229690615dcf565b80156122e35780601f106122b8576101008083540402835291602001916122e3565b820191906000526020600020905b8154815290600101906020018083116122c657829003601f168201915b505050505081526020016003820180546122fc90615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461232890615dcf565b80156123755780601f1061234a57610100808354040283529160200191612375565b820191906000526020600020905b81548152906001019060200180831161235857829003601f168201915b505050918352505060048201546020808301919091526005830154600390810b810b900b6040808401919091526006840154606084015260078401546080840152600884015460a0840152600984015460c0840152600a84015460ff808216151560e08601526101009182900416151590840152600b8401805482518185028101850190935280835261012090940193919290919060009084015b828210156124bc57838290600052602060002001805461242f90615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461245b90615dcf565b80156124a85780601f1061247d576101008083540402835291602001916124a8565b820191906000526020600020905b81548152906001019060200180831161248b57829003601f168201915b505050505081526020019060010190612410565b505050508152602001600c820180548060200260200160405190810160405280929190818152602001828054801561251d57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116124ff575b50505050508152602001600d820180548060200260200160405190810160405280929190818152602001828054801561259357602002820191906000526020600020906000905b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116125645790505b5050509183525050600e82015460ff161515602080830191909152600f83018054604080518285028101850182528281529401939283018282801561260157602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116125e3575b5050509183525050601091909101546001600160a01b0316602091820152810151805191925090612641576040518060200160405280600081525061266c565b8061264b856132be565b60405160200161265c9291906156b5565b6040516020818303038152906040525b949350505050565b600081815260016020526040812061080e906133bb565b611784813361277d565b6110a182826133c5565b6019546001600160a01b0316336001600160a01b0316146126d25760405162461bcd60e51b815260040161090e90615871565b6001600160a01b03811661271e5760405162461bcd60e51b81526020600482015260136024820152721859191c995cdcc81b5d5cdd081899481cd95d606a1b604482015260640161090e565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b6060601a805461082390615dcf565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b333b156127cc5760405162461bcd60e51b815260206004820152601d60248201527f63616e6e6f742070757263686173652066726f6d20636f6e7472616374000000604482015260640161090e565b6000828152600d60205260409020600401543410156128395760405162461bcd60e51b815260206004820152602360248201527f696e73756666696369656e742066756e64732073656e7420746f20707572636860448201526261736560e81b606482015260840161090e565b60006128448361110e565b90506000816101e0015180156128605750600082610200015151115b156128d55760005b826102000151518110156128cf57826102000151818151811061288d5761288d615eb4565b60200260200101516001600160a01b03166128a53390565b6001600160a01b031614156128bd57600191506128cf565b806128c781615e2a565b915050612868565b506128d9565b5060015b8061291a5760405162461bcd60e51b81526020600482015260116024820152701b5a5b9d081b9bdd08185c1c1c9bdd9959607a1b604482015260640161090e565b6129258433856133e2565b6015546129695760405162461bcd60e51b81526020600482015260126024820152716e6f206f776e65722061646472657373657360701b604482015260640161090e565b6015546016541461298c5760405162461bcd60e51b815260040161090e906157f1565b6000826101a0015151116129d95760405162461bcd60e51b81526020600482015260146024820152736e6f2063726561746f722061646472657373657360601b604482015260640161090e565b816101a0015151826101c001515114612a2d5760405162461bcd60e51b8152602060048201526016602482015275696e76616c69642063726561746f722073706c69747360501b604482015260640161090e565b61209c82613757565b6019546001600160a01b0316336001600160a01b031614612a695760405162461bcd60e51b815260040161090e90615871565b6000612a748261392b565b90506000198113612abb5760405162461bcd60e51b81526020600482015260116024820152701859191c995cdcc81b9bdd08199bdd5b99607a1b604482015260640161090e565b6017548110612ac8575050565b805b601754612ad990600190615d75565b811015612b64576017612aed826001615d05565b81548110612afd57612afd615eb4565b600091825260209091200154601780546001600160a01b039092169183908110612b2957612b29615eb4565b600091825260209091200180546001600160a01b0319166001600160a01b039290921691909117905580612b5c81615e2a565b915050612aca565b506017805480612b7657612b76615e9e565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b0393909316815260189092525060409020805460ff19169055565b612bc6614904565b612bce61493f565b612bd6614960565b6040805160a081018252600080825260208083018290528782526013905282902054600390810b900b91810191909152606081018390526080810182905261266c908590613993565b612c27614904565b611e9b8383613993565b6019546001600160a01b0316336001600160a01b031614612c645760405162461bcd60e51b815260040161090e90615871565b60008360ff16118015612c7b575060648360ff1611155b612cbf5760405162461bcd60e51b8152602060048201526015602482015274696e76616c6964206f776e657220726f79616c747960581b604482015260640161090e565b8151815114612ce05760405162461bcd60e51b815260040161090e906157f1565b6014805460ff191660ff85161790558151612d0290601590602085019061480e565b50805161209c906016906020840190614863565b60006001600160e01b0319821663780e9d6360e01b148061080e575061080e82613ab8565b6000908152600460205260409020546001600160a01b0316151590565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612d8d826119ea565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612dd182612d3b565b612e325760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161090e565b6000612e3d836119ea565b9050806001600160a01b0316846001600160a01b03161480612e785750836001600160a01b0316612e6d846108a6565b6001600160a01b0316145b8061266c575061266c818561274f565b826001600160a01b0316612e9b826119ea565b6001600160a01b031614612f035760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161090e565b6001600160a01b038216612f655760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161090e565b612f70838383613af8565b612f7b600082612d58565b6001600160a01b0383166000908152600560205260408120805460019290612fa4908490615d75565b90915550506001600160a01b0382166000908152600560205260408120805460019290612fd2908490615d05565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020615f4b83398151915291a4505050565b61302a82610d87565b6130348133613b80565b610a3f8383613be4565b6000611e9b836001600160a01b038416613c68565b600c5460ff1661309c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161090e565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516130d69190615753565b60405180910390a1565b600c5460ff16156131265760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161090e565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130c93390565b6001600160a01b03811633146131cb5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161090e565b610f8b8282613cb7565b6000611e9b836001600160a01b038416613d1c565b60006131f5826119ea565b905061320381600084613af8565b61320e600083612d58565b6001600160a01b0381166000908152600560205260408120805460019290613237908490615d75565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b03841690600080516020615f4b833981519152908390a45050565b6000611e9b8383613e16565b613296848484612e88565b6132a284848484613e40565b61209c5760405162461bcd60e51b815260040161090e9061581f565b6060816132e25750506040805180820190915260018152600360fc1b602082015290565b8160005b811561330c57806132f681615e2a565b91506133059050600a83615d42565b91506132e6565b6000816001600160401b0381111561332657613326615eca565b6040519080825280601f01601f191660200182016040528015613350576020820181803683370190505b5090505b841561266c57613365600183615d75565b9150613372600a86615e5e565b61337d906030615d05565b60f81b81838151811061339257613392615eb4565b60200101906001600160f81b031916908160001a9053506133b4600a86615d42565b9450613354565b600061080e825490565b6133ce82610d87565b6133d88133613b80565b610a3f8383613cb7565b60006133ed8461110e565b6000858152600d6020526040902060050154909150600390810b900b6134255760405162461bcd60e51b815260040161090e90615913565b80610160015161346d5760405162461bcd60e51b8152602060048201526013602482015272636f6c6c656374696f6e20696e61637469766560681b604482015260640161090e565b60e081015160c0820151613482906001615d05565b11156134c45760405162461bcd60e51b81526020600482015260116024820152706d696e746564206d617820746f6b656e7360781b604482015260640161090e565b61010081015115806134fc575061010081015160008581526011602090815260408083206001600160a01b0388168452909152902054105b6135435760405162461bcd60e51b81526020600482015260186024820152776d696e7465722065786365656473206d6178206d696e747360401b604482015260640161090e565b6000600e5460016135549190615d05565b905060008260a00151436135653390565b60405160039390930b60e01b602084015260248301919091526001600160601b0319606091821b811660448401529086901b166058820152606c8101839052608c0160408051601f198184030181529181528151602092830120600e85815560008a8152600f85528381208054600181810183559183528683200188905582548252601286528482208c90558b8252601086528482208054808301825590835286832060088204018054600387900b63ffffffff90811660046007909516949094026101000a84810291021990911617905592548252601390955292909220805463ffffffff191690921790915560c085015190925061366491615d05565b6000878152600d6020908152604080832060060193909355601181528282206001600160a01b03881683529052205461369e906001615d05565b60008781526011602090815260408083206001600160a01b03891684529091529020556136cb8483613f4d565b836001600160a01b031682877fe6698c22a5e31b25e9ee174c216775f9fed0cd4bcb85f2dd8f598579893abf3e8660c0015187608001518660405161372693929190928352602083019190915260030b604082015260600190565b60405180910390a46101208301511561374f57826101200151600e541061374f5761374f6130e0565b505050505050565b3415611784576080810151600061376e8234615d75565b905080156137a557604051339082156108fc029083906000818181858888f193505050501580156137a3573d6000803e3d6000fd5b505b60808301516014546000916064916137c0919060ff16615d56565b6137ca9190615d42565b905060006138a182601580548060200260200160405190810160405280929190818152602001828054801561382857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161380a575b5050505050601680548060200260200160405190810160405280929190818152602001828054801561389757602002820191906000526020600020906000905b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116138685790505b5050505050613f67565b905060006138af8286615d75565b905060006138c882886101a00151896101c00151613f67565b9050806138d58488615d75565b6138df9190615d75565b156139225760405162461bcd60e51b8152602060048201526013602482015272333ab73239903430b2103932b6b0b4b73232b960691b604482015260640161090e565b50505050505050565b6000805b60175481121561398957826001600160a01b03166017828154811061395657613956615eb4565b6000918252602090912001546001600160a01b031614156139775792915050565b8061398181615e0a565b91505061392f565b5060001992915050565b61399b614904565b6019546001600160a01b0316336001600160a01b031614806139c257506139c23384611eda565b6139de5760405162461bcd60e51b815260040161090e906157ca565b600083815260136020526040908190205490830151600391820b820b910b14613a195760405162461bcd60e51b815260040161090e906158ed565b6000838152601260209081526040808320548352600d90915290819020601001549051639e680b2760e01b81526001600160a01b0390911690639e680b2790613a66908590600401615b65565b620807a06040518083038186803b158015613a8057600080fd5b505afa158015613a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e9b9190615329565b60006001600160e01b031982166380ac58cd60e01b1480613ae957506001600160e01b03198216635b5e139f60e01b145b8061080e575061080e82614123565b613b03838383614148565b3360009081526018602052604090205460ff1680613b4057506000818152601260209081526040808320548352600d9091529020600a015460ff16155b610a3f5760405162461bcd60e51b815260206004820152601160248201527018dbdb1b1958dd1a5bdb881c185d5cd959607a1b604482015260640161090e565b613b8a8282611ea2565b610f8b57613ba2816001600160a01b031660146141ba565b613bad8360206141ba565b604051602001613bbe9291906156e4565b60408051601f198184030181529082905262461bcd60e51b825261090e916004016157b7565b613bee8282611ea2565b610f8b576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055613c243390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054613caf5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561080e565b50600061080e565b613cc18282611ea2565b15610f8b576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015613e05576000613d40600183615d75565b8554909150600090613d5490600190615d75565b9050818114613db9576000866000018281548110613d7457613d74615eb4565b9060005260206000200154905080876000018481548110613d9757613d97615eb4565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613dca57613dca615e9e565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061080e565b600091505061080e565b5092915050565b6000826000018281548110613e2d57613e2d615eb4565b9060005260206000200154905092915050565b60006001600160a01b0384163b15613f4257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613e84903390899088908890600401615767565b602060405180830381600087803b158015613e9e57600080fd5b505af1925050508015613ece575060408051601f3d908101601f19168201909252613ecb9181019061522e565b60015b613f28573d808015613efc576040519150601f19603f3d011682016040523d82523d6000602084013e613f01565b606091505b508051613f205760405162461bcd60e51b815260040161090e9061581f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061266c565b506001949350505050565b610f8b828260405180602001604052806000815250614355565b600083156140cc576000805b83518160ff161015613fbb57838160ff1681518110613f9457613f94615eb4565b602002602001015182613fa79190615d1d565b915080613fb381615e3e565b915050613f73565b508060ff166064146140095760405162461bcd60e51b815260206004820152601760248201527673706c697473206d7573742073756d20746f203130302560481b604482015260640161090e565b60005b84518160ff1610156140c9576000606487868460ff168151811061403257614032615eb4565b602002602001015160ff166140479190615d56565b6140519190615d42565b9050858260ff168151811061406857614068615eb4565b60200260200101516001600160a01b03166108fc829081150290604051600060405180830381858888f193505050501580156140a8573d6000803e3d6000fd5b506140b38185615d05565b93505080806140c190615e3e565b91505061400c565b50505b6140d68185615d75565b15611e9b5760405162461bcd60e51b815260206004820152601f60248201527f696e636f727265637420646973747269627574696f6e206f662066756e647300604482015260640161090e565b60006001600160e01b03198216635a05180f60e01b148061080e575061080e82614388565b6141538383836143bd565b600c5460ff1615610a3f5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b606482015260840161090e565b606060006141c9836002615d56565b6141d4906002615d05565b6001600160401b038111156141eb576141eb615eca565b6040519080825280601f01601f191660200182016040528015614215576020820181803683370190505b509050600360fc1b8160008151811061423057614230615eb4565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061425f5761425f615eb4565b60200101906001600160f81b031916908160001a9053506000614283846002615d56565b61428e906001615d05565b90505b6001811115614306576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106142c2576142c2615eb4565b1a60f81b8282815181106142d8576142d8615eb4565b60200101906001600160f81b031916908160001a90535060049490941c936142ff81615db8565b9050614291565b508315611e9b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161090e565b61435f8383614475565b61436c6000848484613e40565b610a3f5760405162461bcd60e51b815260040161090e9061581f565b60006001600160e01b03198216637965db0b60e01b148061080e57506301ffc9a760e01b6001600160e01b031983161461080e565b6001600160a01b0383166144185761441381600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b61443b565b816001600160a01b0316836001600160a01b03161461443b5761443b83826145a1565b6001600160a01b03821661445257610a3f8161463e565b826001600160a01b0316826001600160a01b031614610a3f57610a3f82826146ed565b6001600160a01b0382166144cb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161090e565b6144d481612d3b565b156145205760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604482015260640161090e565b61452c60008383613af8565b6001600160a01b0382166000908152600560205260408120805460019290614555908490615d05565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020615f4b833981519152908290a45050565b600060016145ae84611a61565b6145b89190615d75565b60008381526009602052604090205490915080821461460b576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a5460009061465090600190615d75565b6000838152600b6020526040812054600a805493945090928490811061467857614678615eb4565b9060005260206000200154905080600a838154811061469957614699615eb4565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a8054806146d1576146d1615e9e565b6001900381819060005260206000200160009055905550505050565b60006146f883611a61565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b82805461473d90615dcf565b90600052602060002090601f01602090048101928261475f57600085556147a5565b82601f1061477857805160ff19168380011785556147a5565b828001600101855582156147a5579182015b828111156147a557825182559160200191906001019061478a565b506147b1929150614987565b5090565b828054828255906000526020600020908101928215614802579160200282015b8281111561480257825180516147f2918491602090910190614731565b50916020019190600101906147d5565b506147b192915061499c565b8280548282559060005260206000209081019282156147a5579160200282015b828111156147a557825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061482e565b82805482825590600052602060002090601f016020900481019282156147a55791602002820160005b838211156148ca57835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030261488c565b80156148f75782816101000a81549060ff02191690556001016020816000010492830192600103026148ca565b50506147b1929150614987565b6040805160a081018252600080825260208201819052918101919091526060810161492d61493f565b815260200161493a614960565b905290565b60405180620800000160405280614000906020820280368337509192915050565b60405180606001604052806149736149b9565b815260006020820181905260409091015290565b5b808211156147b15760008155600101614988565b808211156147b15760006149b082826149d8565b5060010161499c565b6040518061070001604052806038906020820280368337509192915050565b5080546149e490615dcf565b6000825580601f106149f4575050565b601f0160209004906000526020600020908101906117849190614987565b6000614a25614a2084615cde565b615c8b565b9050828152838383011115614a3957600080fd5b828260208301376000602084830101529392505050565b80356116ed81615ee0565b600082601f830112614a6c57600080fd5b81356020614a7c614a2083615cbb565b80838252828201915082860187848660051b8901011115614a9c57600080fd5b60005b85811015614ac4578135614ab281615ee0565b84529284019290840190600101614a9f565b5090979650505050505050565b600082601f830112614ae257600080fd5b81356020614af2614a2083615cbb565b80838252828201915082860187848660051b8901011115614b1257600080fd5b60005b85811015614ac4578135614b2881615ee0565b84529284019290840190600101614b15565b600082601f830112614b4b57600080fd5b81356020614b5b614a2083615cbb565b80838252828201915082860187848660051b8901011115614b7b57600080fd5b6000805b86811015614bbd5782356001600160401b03811115614b9c578283fd5b614baa8b88838d0101614c5a565b8652509385019391850191600101614b7f565b509198975050505050505050565b600082601f830112614bdc57600080fd5b81356020614bec614a2083615cbb565b80838252828201915082860187848660051b8901011115614c0c57600080fd5b60005b85811015614ac4578135614c2281615f3b565b84529284019290840190600101614c0f565b803580151581146116ed57600080fd5b80356116ed81615f1a565b80516116ed81615f1a565b600082601f830112614c6b57600080fd5b611e9b83833560208501614a12565b60006102408284031215614c8d57600080fd5b614c95615bd7565b905081356001600160401b0380821115614cae57600080fd5b614cba85838601614c5a565b83526020840135915080821115614cd057600080fd5b614cdc85838601614c5a565b60208401526040840135915080821115614cf557600080fd5b614d0185838601614c5a565b60408401526060840135915080821115614d1a57600080fd5b614d2685838601614c5a565b606084015260808401356080840152614d4160a08501614c44565b60a084015260c0848101359084015260e08085013590840152610100808501359084015261012080850135908401526101409150614d80828501614c34565b828401526101609150614d94828501614c34565b8284015261018091508184013581811115614dae57600080fd5b614dba86828701614b3a565b83850152506101a091508184013581811115614dd557600080fd5b614de186828701614ad1565b83850152506101c091508184013581811115614dfc57600080fd5b614e0886828701614bcb565b83850152506101e09150614e1d828501614c34565b8284015261020091508184013581811115614e3757600080fd5b614e4386828701614a5b565b83850152505050610220614e58818401614a50565b9082015292915050565b60006107408284031215614e7557600080fd5b614e7d615c00565b905082601f830112614e8e57600080fd5b614e96615c44565b8083610700850186811115614eaa57600080fd5b60005b6038811015614ed6578235614ec181615f1a565b85526020948501949290920191600101614ead565b50828552614ee381614c44565b602086015250505050614ef96107208301614c44565b604082015292915050565b60006107408284031215614f1757600080fd5b614f1f615c00565b905082601f830112614f3057600080fd5b614f38615c44565b8083610700850186811115614f4c57600080fd5b60005b6038811015614f78578251614f6381615f1a565b85526020948501949290920191600101614f4f565b50828552614f8581614c4f565b602086015250505050614ef96107208301614c4f565b600060208284031215614fad57600080fd5b8135611e9b81615ee0565b60008060408385031215614fcb57600080fd5b8235614fd681615ee0565b91506020830135614fe681615ee0565b809150509250929050565b60008060006060848603121561500657600080fd5b833561501181615ee0565b9250602084013561502181615ee0565b929592945050506040919091013590565b6000806000806080858703121561504857600080fd5b843561505381615ee0565b9350602085013561506381615ee0565b92506040850135915060608501356001600160401b0381111561508557600080fd5b8501601f8101871361509657600080fd5b6150a587823560208401614a12565b91505092959194509250565b600080604083850312156150c457600080fd5b82356150cf81615ee0565b91506150dd60208401614c34565b90509250929050565b600080604083850312156150f957600080fd5b823561510481615ee0565b946020939093013593505050565b60006020828403121561512457600080fd5b81356001600160401b0381111561513a57600080fd5b61266c84828501614a5b565b60006020828403121561515857600080fd5b5035919050565b6000806040838503121561517257600080fd5b823591506020830135614fe681615ee0565b6000806040838503121561519757600080fd5b823591506020830135614fe681615f1a565b600080604083850312156151bc57600080fd5b8235915060208301356001600160401b038111156151d957600080fd5b6151e585828601614c7a565b9150509250929050565b6000806040838503121561520257600080fd5b50508035926020909101359150565b60006020828403121561522357600080fd5b8135611e9b81615ef5565b60006020828403121561524057600080fd5b8151611e9b81615ef5565b60006020828403121561525d57600080fd5b81356001600160401b0381111561527357600080fd5b61266c84828501614c5a565b60006020828403121561529157600080fd5b81516001600160401b038111156152a757600080fd5b8201601f810184136152b857600080fd5b80516152c6614a2082615cde565b8181528560208385010111156152db57600080fd5b6152ec826020830160208601615d8c565b95945050505050565b60006020828403121561530757600080fd5b81356001600160401b0381111561531d57600080fd5b61266c84828501614c7a565b6000620807a0828403121561533d57600080fd5b615345615c22565b825161535081615f0b565b815260208381015161536181615f3b565b82820152604084015161537381615f1a565b6040830152607f8401851361538757600080fd5b61538f615c67565b8060608601620800608701888111156153a757600080fd5b60005b6140008110156153d15782516153bf81615f29565b855293850193918501916001016153aa565b508260608701526153e28982614f04565b60808701525093979650505050505050565b600080828403620807c081121561540a57600080fd5b833592506020620807a0601f198301121561542457600080fd5b61542c615c22565b91508085013561543b81615f0b565b8252604085013561544b81615f3b565b82820152606085013561545d81615f1a565b6040830152609f8501861361547157600080fd5b615479615c67565b80608087016208008088018981111561549157600080fd5b60005b6140008110156154bb5782356154a981615f29565b85529385019391850191600101615494565b508260608701526154cc8a82614e62565b60808701525050505050809150509250929050565b6000806000606084860312156154f657600080fd5b833561550181615f3b565b925060208401356001600160401b038082111561551d57600080fd5b61552987838801614ad1565b9350604086013591508082111561553f57600080fd5b5061554c86828701614bcb565b9150509250925092565b600081518084526020808501945080840160005b8381101561558f5781516001600160a01b03168752958201959082019060010161556a565b509495945050505050565b600081518084526020808501808196508360051b8101915082860160005b858110156155e25782840389526155d0848351615622565b988501989350908401906001016155b8565b5091979650505050505050565b600081518084526020808501945080840160005b8381101561558f57815160ff1687529582019590820190600101615603565b6000815180845261563a816020860160208601615d8c565b601f01601f19169290920160200192915050565b80518260005b603881101561567657825160030b825260209283019290910190600101615654565b505050602081015160030b610700830152604081015160030b6107208301525050565b600082516156ab818460208701615d8c565b9190910192915050565b600083516156c7818460208801615d8c565b8351908301906156db818360208801615d8c565b01949350505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351615716816017850160208801615d8c565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615747816028840160208801615d8c565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061579a90830184615622565b9695505050505050565b602081526000611e9b6020830184615556565b602081526000611e9b6020830184615622565b6020808252600d908201526c3ab737bbb732b2103a37b5b2b760991b604082015260600190565b602080825260149082015273696e76616c6964206f776e65722073706c69747360601b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600a908201526961646d696e206f6e6c7960b01b604082015260600190565b60208082526010908201526f34b73b30b634b2103932b73232b932b960811b604082015260600190565b60208082526014908201527318dbdb1b1958dd1a5bdb881b9bdd08199bdd5b9960621b604082015260600190565b6020808252600c908201526b1a5b9d985b1a59081cd9595960a21b604082015260600190565b6020808252600c908201526b1cd95959081b9bdd081cd95d60a21b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526010908201526f1b985b59481b5d5cdd081899481cd95d60821b604082015260600190565b60208152600082516102408060208501526159d3610260850183615622565b91506020850151601f19808685030160408701526159f18483615622565b93506040870151915080868503016060870152615a0e8483615622565b93506060870151915080868503016080870152615a2b8483615622565b9350608087015160a087015260a08701519150615a4d60c087018360030b9052565b60c087015160e0878101919091528701516101008088019190915287015161012080880191909152870151610140808801919091528701519150610160615a978188018415159052565b8701519150610180615aac8782018415159052565b808801519250506101a0818786030181880152615ac9858461559a565b9450808801519250506101c0818786030181880152615ae88584615556565b9450808801519250506101e0818786030181880152615b0785846155ef565b945080880151925050610200615b208188018415159052565b80880151925050610220818786030181880152615b3d8584615556565b94508088015192505050615b5b828601826001600160a01b03169052565b5090949350505050565b8151600190810b825260208084015160ff168184015260408085015160030b90840152606080850151620807a085019391850160005b614000811015615bbe57825163ffffffff16825291840191908401908301615b9b565b50505050506080830151613e0f6208006084018261564e565b60405161024081016001600160401b0381118282101715615bfa57615bfa615eca565b60405290565b604051606081016001600160401b0381118282101715615bfa57615bfa615eca565b60405160a081016001600160401b0381118282101715615bfa57615bfa615eca565b60405161070081016001600160401b0381118282101715615bfa57615bfa615eca565b6040516208000081016001600160401b0381118282101715615bfa57615bfa615eca565b604051601f8201601f191681016001600160401b0381118282101715615cb357615cb3615eca565b604052919050565b60006001600160401b03821115615cd457615cd4615eca565b5060051b60200190565b60006001600160401b03821115615cf757615cf7615eca565b50601f01601f191660200190565b60008219821115615d1857615d18615e72565b500190565b600060ff821660ff84168060ff03821115615d3a57615d3a615e72565b019392505050565b600082615d5157615d51615e88565b500490565b6000816000190483118215151615615d7057615d70615e72565b500290565b600082821015615d8757615d87615e72565b500390565b60005b83811015615da7578181015183820152602001615d8f565b8381111561209c5750506000910152565b600081615dc757615dc7615e72565b506000190190565b600181811c90821680615de357607f821691505b60208210811415615e0457634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160ff1b03821415615e2357615e23615e72565b5060010190565b6000600019821415615e2357615e23615e72565b600060ff821660ff811415615e5557615e55615e72565b60010192915050565b600082615e6d57615e6d615e88565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461178457600080fd5b6001600160e01b03198116811461178457600080fd5b8060010b811461178457600080fd5b8060030b811461178457600080fd5b63ffffffff8116811461178457600080fd5b60ff8116811461178457600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212208f6121eec03d09f4b861afeb380adcc933ef1ebcf9be7761bfdb74d99f133fd864736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102185760003560e01c806301ffc9a71461021d57806306fdde0314610252578063081812fc14610274578063095ea7b3146102a157806318160ddd146102c35780631a857f9e146102e257806323b872dd14610302578063248a9ca3146103225780632be50e4f146103425780632c94f037146103625780632f2ff15d146103825780632f745c59146103a257806336566f06146103c257806336568abe146103d757806337bc04c0146103f757806339b10a951461041757806342842e0e1461044457806342966c68146104645780634378a6e31461048457806347c8ff5e146104a45780634d60c620146104c45780634f6ccce7146104e65780635c975abb146105065780636352211e1461051e57806370a082311461053e578063841b4bda1461055e57806389d59ae41461057e5780639010d07c1461059e57806391d14854146105be57806395d89b41146105de5780639ab0cd88146105f3578063a217fddf14610613578063a22cb46514610628578063b0b3f14714610648578063b88d4fde1461067b578063c87b56dd1461069b578063ca15c873146106bb578063cc445611146106db578063d547741f146106ee578063e2f273bd1461070e578063e8a3d4851461072e578063e985e9c514610743578063ecb4cfb114610763578063ecc7add714610776578063f0bed7df14610796578063f450e90f146107c3578063f697240e146107e3575b600080fd5b34801561022957600080fd5b5061023d610238366004615211565b610803565b60405190151581526020015b60405180910390f35b34801561025e57600080fd5b50610267610814565b60405161024991906157b7565b34801561028057600080fd5b5061029461028f366004615146565b6108a6565b6040516102499190615753565b3480156102ad57600080fd5b506102c16102bc3660046150e6565b610933565b005b3480156102cf57600080fd5b50600a545b604051908152602001610249565b3480156102ee57600080fd5b506102c16102fd3660046152f5565b610a44565b34801561030e57600080fd5b506102c161031d366004614ff1565b610d55565b34801561032e57600080fd5b506102d461033d366004615146565b610d87565b34801561034e57600080fd5b506102c161035d366004614f9b565b610d9c565b34801561036e57600080fd5b506102c161037d366004615112565b610e94565b34801561038e57600080fd5b506102c161039d36600461515f565b610f8f565b3480156103ae57600080fd5b506102d46103bd3660046150e6565b610fb1565b3480156103ce57600080fd5b506102c1611047565b3480156103e357600080fd5b506102c16103f236600461515f565b611097565b34801561040357600080fd5b5061023d610412366004614f9b565b6110b9565b34801561042357600080fd5b50610437610432366004615146565b61110e565b60405161024991906159b4565b34801561045057600080fd5b506102c161045f366004614ff1565b6116f2565b34801561047057600080fd5b506102c161047f366004615146565b61170d565b34801561049057600080fd5b5061026761049f366004615146565b611787565b3480156104b057600080fd5b506102c16104bf36600461524b565b61187c565b3480156104d057600080fd5b506104d96118c2565b60405161024991906157a4565b3480156104f257600080fd5b506102d4610501366004615146565b611957565b34801561051257600080fd5b50600c5460ff1661023d565b34801561052a57600080fd5b50610294610539366004615146565b6119ea565b34801561054a57600080fd5b506102d4610559366004614f9b565b611a61565b34801561056a57600080fd5b506102c16105793660046151a9565b611ae8565b34801561058a57600080fd5b506102c1610599366004615184565b611da2565b3480156105aa57600080fd5b506102946105b93660046151ef565b611e83565b3480156105ca57600080fd5b5061023d6105d936600461515f565b611ea2565b3480156105ea57600080fd5b50610267611ecb565b3480156105ff57600080fd5b5061023d61060e3660046150e6565b611eda565b34801561061f57600080fd5b506102d4600081565b34801561063457600080fd5b506102c16106433660046150b1565b611f25565b34801561065457600080fd5b50610668610663366004615146565b611fe6565b60405160039190910b8152602001610249565b34801561068757600080fd5b506102c1610696366004615032565b61206a565b3480156106a757600080fd5b506102676106b6366004615146565b6120a2565b3480156106c757600080fd5b506102d46106d6366004615146565b612674565b6102c16106e9366004615146565b61268b565b3480156106fa57600080fd5b506102c161070936600461515f565b612695565b34801561071a57600080fd5b506102c1610729366004614f9b565b61269f565b34801561073a57600080fd5b50610267612740565b34801561074f57600080fd5b5061023d61075e366004614fb8565b61274f565b6102c161077136600461515f565b61277d565b34801561078257600080fd5b506102c1610791366004614f9b565b612a36565b3480156107a257600080fd5b506107b66107b1366004615146565b612bbe565b6040516102499190615b65565b3480156107cf57600080fd5b506107b66107de3660046153f4565b612c1f565b3480156107ef57600080fd5b506102c16107fe3660046154e1565b612c31565b600061080e82612d16565b92915050565b60606002805461082390615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461084f90615dcf565b801561089c5780601f106108715761010080835404028352916020019161089c565b820191906000526020600020905b81548152906001019060200180831161087f57829003601f168201915b5050505050905090565b60006108b182612d3b565b6109175760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061093e826119ea565b9050806001600160a01b0316836001600160a01b031614156109ac5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161090e565b336001600160a01b03821614806109c857506109c8813361274f565b610a355760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606482015260840161090e565b610a3f8383612d58565b505050565b6019546001600160a01b0316336001600160a01b031614610a775760405162461bcd60e51b815260040161090e90615871565b805151610a965760405162461bcd60e51b815260040161090e9061598a565b8051604051600091610aaa91602001615699565b60408051601f1981840301815291815281516020928301206000818152600d9093529120805491925090610add90615dcf565b159050610b275760405162461bcd60e51b815260206004820152601860248201527718dbdb1b1958dd1a5bdb88185b1c9958591e48185919195960421b604482015260640161090e565b6102208201516001600160a01b031615801590610b5257506102208201516001600160a01b03163b15155b610b6e5760405162461bcd60e51b815260040161090e90615895565b6000818152600d60209081526040909120835180518593610b93928492910190614731565b506020828101518051610bac9260018501920190614731565b5060408201518051610bc8916002840191602090910190614731565b5060608201518051610be4916003840191602090910190614731565b506080820151600482015560a082015160058201805463ffffffff191663ffffffff60039390930b9290921691909117905560c0820151600682015560e082015160078201556101008083015160088301556101208301516009830155610140830151600a8301805461016086015161ffff1990911692151561ff001916929092179115159092021790556101808201518051610c8b91600b8401916020909101906147b5565b506101a08201518051610ca891600c84019160209091019061480e565b506101c08201518051610cc591600d840191602090910190614863565b506101e0820151600e8201805460ff19169115159190911790556102008201518051610cfb91600f84019160209091019061480e565b506102209190910151601090910180546001600160a01b0319166001600160a01b0390921691909117905560405181907f91d11dbb3f16d7c25dce82ff9badd2b6f68a7a2e80fbab66c53bdab5a56aaa0f90600090a25050565b610d60335b82612dc6565b610d7c5760405162461bcd60e51b815260040161090e90615939565b610a3f838383612e88565b60009081526020819052604090206001015490565b6019546001600160a01b0316336001600160a01b031614610dcf5760405162461bcd60e51b815260040161090e90615871565b6001600160a01b03811615801590610def57506001600160a01b0381163b155b610e2d5760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b604482015260640161090e565b6017805460018181019092557fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c150180546001600160a01b039093166001600160a01b031990931683179055600091825260186020526040909120805460ff19169091179055565b6019546001600160a01b0316336001600160a01b031614610ec75760405162461bcd60e51b815260040161090e90615871565b60175415610f0b5760405162461bcd60e51b8152602060048201526011602482015270626c6f6f6d206c6973742065786973747360781b604482015260640161090e565b8051610f1e90601790602084019061480e565b5060005b601754811015610f8b5760016018600060178481548110610f4557610f45615eb4565b6000918252602080832091909101546001600160a01b031683528201929092526040019020805460ff191691151591909117905580610f8381615e2a565b915050610f22565b5050565b610f998282613021565b6000828152600160205260409020610a3f908261303e565b6000610fbc83611a61565b821061101e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161090e565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6019546001600160a01b0316336001600160a01b03161461107a5760405162461bcd60e51b815260040161090e90615871565b600c5460ff161561108f5761108d613053565b565b61108d6130e0565b6110a1828261315b565b6000828152600160205260409020610a3f90826131d5565b6019546000906001600160a01b0316336001600160a01b0316146110ef5760405162461bcd60e51b815260040161090e90615871565b506001600160a01b031660009081526018602052604090205460ff1690565b6111ae6040518061024001604052806060815260200160608152602001606081526020016060815260200160008152602001600060030b8152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016060815260200160608152602001606081526020016000151581526020016060815260200160006001600160a01b031681525090565b6000828152600d602052604090819020815161024081019092528054829082906111d790615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461120390615dcf565b80156112505780601f1061122557610100808354040283529160200191611250565b820191906000526020600020905b81548152906001019060200180831161123357829003601f168201915b5050505050815260200160018201805461126990615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461129590615dcf565b80156112e25780601f106112b7576101008083540402835291602001916112e2565b820191906000526020600020905b8154815290600101906020018083116112c557829003601f168201915b505050505081526020016002820180546112fb90615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461132790615dcf565b80156113745780601f1061134957610100808354040283529160200191611374565b820191906000526020600020905b81548152906001019060200180831161135757829003601f168201915b5050505050815260200160038201805461138d90615dcf565b80601f01602080910402602001604051908101604052809291908181526020018280546113b990615dcf565b80156114065780601f106113db57610100808354040283529160200191611406565b820191906000526020600020905b8154815290600101906020018083116113e957829003601f168201915b505050918352505060048201546020808301919091526005830154600390810b810b900b6040808401919091526006840154606084015260078401546080840152600884015460a0840152600984015460c0840152600a84015460ff808216151560e08601526101009182900416151590840152600b8401805482518185028101850190935280835261012090940193919290919060009084015b8282101561154d5783829060005260206000200180546114c090615dcf565b80601f01602080910402602001604051908101604052809291908181526020018280546114ec90615dcf565b80156115395780601f1061150e57610100808354040283529160200191611539565b820191906000526020600020905b81548152906001019060200180831161151c57829003601f168201915b5050505050815260200190600101906114a1565b505050508152602001600c82018054806020026020016040519081016040528092919081815260200182805480156115ae57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611590575b50505050508152602001600d820180548060200260200160405190810160405280929190818152602001828054801561162457602002820191906000526020600020906000905b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116115f55790505b5050509183525050600e82015460ff161515602080830191909152600f83018054604080518285028101850182528281529401939283018282801561169257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611674575b5050509183525050601091909101546001600160a01b03166020918201526000848152600d90915260408120805492935090916116ce90615dcf565b9050116116ed5760405162461bcd60e51b815260040161090e906158bf565b919050565b610a3f8383836040518060200160405280600081525061206a565b61171633610d5a565b61177b5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b606482015260840161090e565b611784816131ea565b50565b6019546060906001600160a01b0316336001600160a01b031614806117b157506117b13383611eda565b6117cd5760405162461bcd60e51b815260040161090e906157ca565b6000828152601260209081526040808320548352600d82528083206010015485845260139092529182902054915160016223c18d60e21b03198152600392830b90920b60048301526001600160a01b03169063ff70f9cc9060240160006040518083038186803b15801561184057600080fd5b505afa158015611854573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261080e919081019061527f565b6019546001600160a01b0316336001600160a01b0316146118af5760405162461bcd60e51b815260040161090e90615871565b8051610f8b90601a906020840190614731565b6019546060906001600160a01b0316336001600160a01b0316146118f85760405162461bcd60e51b815260040161090e90615871565b601780548060200260200160405190810160405280929190818152602001828054801561089c57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611930575050505050905090565b6000611962600a5490565b82106119c55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161090e565b600a82815481106119d8576119d8615eb4565b90600052602060002001549050919050565b6000818152600460205260408120546001600160a01b03168061080e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161090e565b60006001600160a01b038216611acc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161090e565b506001600160a01b031660009081526005602052604090205490565b6019546001600160a01b0316336001600160a01b031614611b1b5760405162461bcd60e51b815260040161090e90615871565b805151611b3a5760405162461bcd60e51b815260040161090e9061598a565b8051604051611b4c9190602001615699565b60408051601f1981840301815291815281516020928301206000818152600d909352908220805491945090611b8090615dcf565b905011611b9f5760405162461bcd60e51b815260040161090e906158bf565b6102208101516001600160a01b031615801590611bca57506102208101516001600160a01b03163b15155b611be65760405162461bcd60e51b815260040161090e90615895565b6000828152600d60209081526040909120825180518493611c0b928492910190614731565b506020828101518051611c249260018501920190614731565b5060408201518051611c40916002840191602090910190614731565b5060608201518051611c5c916003840191602090910190614731565b506080820151600482015560a082015160058201805463ffffffff191663ffffffff60039390930b9290921691909117905560c0820151600682015560e082015160078201556101008083015160088301556101208301516009830155610140830151600a8301805461016086015161ffff1990911692151561ff001916929092179115159092021790556101808201518051611d0391600b8401916020909101906147b5565b506101a08201518051611d2091600c84019160209091019061480e565b506101c08201518051611d3d91600d840191602090910190614863565b506101e0820151600e8201805460ff19169115159190911790556102008201518051611d7391600f84019160209091019061480e565b506102209190910151601090910180546001600160a01b0319166001600160a01b039092169190911790555050565b6019546001600160a01b0316336001600160a01b031614611dd55760405162461bcd60e51b815260040161090e90615871565b8060030b60001415611df95760405162461bcd60e51b815260040161090e906158ed565b6000828152600d6020526040902060050154600390810b900b15611e525760405162461bcd60e51b815260206004820152601060248201526f1cd9595908185b1c9958591e481cd95d60821b604482015260640161090e565b6000918252600d6020526040909120600501805460039290920b63ffffffff1663ffffffff19909216919091179055565b6000828152600160205260408120611e9b908361327f565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606003805461082390615dcf565b6000805b611ee784611a61565b811015611f1b57611ef88482610fb1565b831415611f0957600191505061080e565b80611f1381615e2a565b915050611ede565b5060009392505050565b6001600160a01b038216331415611f7a5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161090e565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6019546000906001600160a01b0316336001600160a01b03161461201c5760405162461bcd60e51b815260040161090e90615871565b6000828152600d6020526040902060050154600390810b900b6120515760405162461bcd60e51b815260040161090e90615913565b506000908152600d602052604090206005015460030b90565b6120743383612dc6565b6120905760405162461bcd60e51b815260040161090e90615939565b61209c8484848461328b565b50505050565b60606120ad82612d3b565b6121115760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161090e565b6000828152601260209081526040808320548352600d9091528082208151610240810190925280548290829061214690615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461217290615dcf565b80156121bf5780601f10612194576101008083540402835291602001916121bf565b820191906000526020600020905b8154815290600101906020018083116121a257829003601f168201915b505050505081526020016001820180546121d890615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461220490615dcf565b80156122515780601f1061222657610100808354040283529160200191612251565b820191906000526020600020905b81548152906001019060200180831161223457829003601f168201915b5050505050815260200160028201805461226a90615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461229690615dcf565b80156122e35780601f106122b8576101008083540402835291602001916122e3565b820191906000526020600020905b8154815290600101906020018083116122c657829003601f168201915b505050505081526020016003820180546122fc90615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461232890615dcf565b80156123755780601f1061234a57610100808354040283529160200191612375565b820191906000526020600020905b81548152906001019060200180831161235857829003601f168201915b505050918352505060048201546020808301919091526005830154600390810b810b900b6040808401919091526006840154606084015260078401546080840152600884015460a0840152600984015460c0840152600a84015460ff808216151560e08601526101009182900416151590840152600b8401805482518185028101850190935280835261012090940193919290919060009084015b828210156124bc57838290600052602060002001805461242f90615dcf565b80601f016020809104026020016040519081016040528092919081815260200182805461245b90615dcf565b80156124a85780601f1061247d576101008083540402835291602001916124a8565b820191906000526020600020905b81548152906001019060200180831161248b57829003601f168201915b505050505081526020019060010190612410565b505050508152602001600c820180548060200260200160405190810160405280929190818152602001828054801561251d57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116124ff575b50505050508152602001600d820180548060200260200160405190810160405280929190818152602001828054801561259357602002820191906000526020600020906000905b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116125645790505b5050509183525050600e82015460ff161515602080830191909152600f83018054604080518285028101850182528281529401939283018282801561260157602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116125e3575b5050509183525050601091909101546001600160a01b0316602091820152810151805191925090612641576040518060200160405280600081525061266c565b8061264b856132be565b60405160200161265c9291906156b5565b6040516020818303038152906040525b949350505050565b600081815260016020526040812061080e906133bb565b611784813361277d565b6110a182826133c5565b6019546001600160a01b0316336001600160a01b0316146126d25760405162461bcd60e51b815260040161090e90615871565b6001600160a01b03811661271e5760405162461bcd60e51b81526020600482015260136024820152721859191c995cdcc81b5d5cdd081899481cd95d606a1b604482015260640161090e565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b6060601a805461082390615dcf565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b333b156127cc5760405162461bcd60e51b815260206004820152601d60248201527f63616e6e6f742070757263686173652066726f6d20636f6e7472616374000000604482015260640161090e565b6000828152600d60205260409020600401543410156128395760405162461bcd60e51b815260206004820152602360248201527f696e73756666696369656e742066756e64732073656e7420746f20707572636860448201526261736560e81b606482015260840161090e565b60006128448361110e565b90506000816101e0015180156128605750600082610200015151115b156128d55760005b826102000151518110156128cf57826102000151818151811061288d5761288d615eb4565b60200260200101516001600160a01b03166128a53390565b6001600160a01b031614156128bd57600191506128cf565b806128c781615e2a565b915050612868565b506128d9565b5060015b8061291a5760405162461bcd60e51b81526020600482015260116024820152701b5a5b9d081b9bdd08185c1c1c9bdd9959607a1b604482015260640161090e565b6129258433856133e2565b6015546129695760405162461bcd60e51b81526020600482015260126024820152716e6f206f776e65722061646472657373657360701b604482015260640161090e565b6015546016541461298c5760405162461bcd60e51b815260040161090e906157f1565b6000826101a0015151116129d95760405162461bcd60e51b81526020600482015260146024820152736e6f2063726561746f722061646472657373657360601b604482015260640161090e565b816101a0015151826101c001515114612a2d5760405162461bcd60e51b8152602060048201526016602482015275696e76616c69642063726561746f722073706c69747360501b604482015260640161090e565b61209c82613757565b6019546001600160a01b0316336001600160a01b031614612a695760405162461bcd60e51b815260040161090e90615871565b6000612a748261392b565b90506000198113612abb5760405162461bcd60e51b81526020600482015260116024820152701859191c995cdcc81b9bdd08199bdd5b99607a1b604482015260640161090e565b6017548110612ac8575050565b805b601754612ad990600190615d75565b811015612b64576017612aed826001615d05565b81548110612afd57612afd615eb4565b600091825260209091200154601780546001600160a01b039092169183908110612b2957612b29615eb4565b600091825260209091200180546001600160a01b0319166001600160a01b039290921691909117905580612b5c81615e2a565b915050612aca565b506017805480612b7657612b76615e9e565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b0393909316815260189092525060409020805460ff19169055565b612bc6614904565b612bce61493f565b612bd6614960565b6040805160a081018252600080825260208083018290528782526013905282902054600390810b900b91810191909152606081018390526080810182905261266c908590613993565b612c27614904565b611e9b8383613993565b6019546001600160a01b0316336001600160a01b031614612c645760405162461bcd60e51b815260040161090e90615871565b60008360ff16118015612c7b575060648360ff1611155b612cbf5760405162461bcd60e51b8152602060048201526015602482015274696e76616c6964206f776e657220726f79616c747960581b604482015260640161090e565b8151815114612ce05760405162461bcd60e51b815260040161090e906157f1565b6014805460ff191660ff85161790558151612d0290601590602085019061480e565b50805161209c906016906020840190614863565b60006001600160e01b0319821663780e9d6360e01b148061080e575061080e82613ab8565b6000908152600460205260409020546001600160a01b0316151590565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612d8d826119ea565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612dd182612d3b565b612e325760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161090e565b6000612e3d836119ea565b9050806001600160a01b0316846001600160a01b03161480612e785750836001600160a01b0316612e6d846108a6565b6001600160a01b0316145b8061266c575061266c818561274f565b826001600160a01b0316612e9b826119ea565b6001600160a01b031614612f035760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161090e565b6001600160a01b038216612f655760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161090e565b612f70838383613af8565b612f7b600082612d58565b6001600160a01b0383166000908152600560205260408120805460019290612fa4908490615d75565b90915550506001600160a01b0382166000908152600560205260408120805460019290612fd2908490615d05565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b038681169182179092559151849391871691600080516020615f4b83398151915291a4505050565b61302a82610d87565b6130348133613b80565b610a3f8383613be4565b6000611e9b836001600160a01b038416613c68565b600c5460ff1661309c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161090e565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516130d69190615753565b60405180910390a1565b600c5460ff16156131265760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161090e565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586130c93390565b6001600160a01b03811633146131cb5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161090e565b610f8b8282613cb7565b6000611e9b836001600160a01b038416613d1c565b60006131f5826119ea565b905061320381600084613af8565b61320e600083612d58565b6001600160a01b0381166000908152600560205260408120805460019290613237908490615d75565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b03841690600080516020615f4b833981519152908390a45050565b6000611e9b8383613e16565b613296848484612e88565b6132a284848484613e40565b61209c5760405162461bcd60e51b815260040161090e9061581f565b6060816132e25750506040805180820190915260018152600360fc1b602082015290565b8160005b811561330c57806132f681615e2a565b91506133059050600a83615d42565b91506132e6565b6000816001600160401b0381111561332657613326615eca565b6040519080825280601f01601f191660200182016040528015613350576020820181803683370190505b5090505b841561266c57613365600183615d75565b9150613372600a86615e5e565b61337d906030615d05565b60f81b81838151811061339257613392615eb4565b60200101906001600160f81b031916908160001a9053506133b4600a86615d42565b9450613354565b600061080e825490565b6133ce82610d87565b6133d88133613b80565b610a3f8383613cb7565b60006133ed8461110e565b6000858152600d6020526040902060050154909150600390810b900b6134255760405162461bcd60e51b815260040161090e90615913565b80610160015161346d5760405162461bcd60e51b8152602060048201526013602482015272636f6c6c656374696f6e20696e61637469766560681b604482015260640161090e565b60e081015160c0820151613482906001615d05565b11156134c45760405162461bcd60e51b81526020600482015260116024820152706d696e746564206d617820746f6b656e7360781b604482015260640161090e565b61010081015115806134fc575061010081015160008581526011602090815260408083206001600160a01b0388168452909152902054105b6135435760405162461bcd60e51b81526020600482015260186024820152776d696e7465722065786365656473206d6178206d696e747360401b604482015260640161090e565b6000600e5460016135549190615d05565b905060008260a00151436135653390565b60405160039390930b60e01b602084015260248301919091526001600160601b0319606091821b811660448401529086901b166058820152606c8101839052608c0160408051601f198184030181529181528151602092830120600e85815560008a8152600f85528381208054600181810183559183528683200188905582548252601286528482208c90558b8252601086528482208054808301825590835286832060088204018054600387900b63ffffffff90811660046007909516949094026101000a84810291021990911617905592548252601390955292909220805463ffffffff191690921790915560c085015190925061366491615d05565b6000878152600d6020908152604080832060060193909355601181528282206001600160a01b03881683529052205461369e906001615d05565b60008781526011602090815260408083206001600160a01b03891684529091529020556136cb8483613f4d565b836001600160a01b031682877fe6698c22a5e31b25e9ee174c216775f9fed0cd4bcb85f2dd8f598579893abf3e8660c0015187608001518660405161372693929190928352602083019190915260030b604082015260600190565b60405180910390a46101208301511561374f57826101200151600e541061374f5761374f6130e0565b505050505050565b3415611784576080810151600061376e8234615d75565b905080156137a557604051339082156108fc029083906000818181858888f193505050501580156137a3573d6000803e3d6000fd5b505b60808301516014546000916064916137c0919060ff16615d56565b6137ca9190615d42565b905060006138a182601580548060200260200160405190810160405280929190818152602001828054801561382857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161380a575b5050505050601680548060200260200160405190810160405280929190818152602001828054801561389757602002820191906000526020600020906000905b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116138685790505b5050505050613f67565b905060006138af8286615d75565b905060006138c882886101a00151896101c00151613f67565b9050806138d58488615d75565b6138df9190615d75565b156139225760405162461bcd60e51b8152602060048201526013602482015272333ab73239903430b2103932b6b0b4b73232b960691b604482015260640161090e565b50505050505050565b6000805b60175481121561398957826001600160a01b03166017828154811061395657613956615eb4565b6000918252602090912001546001600160a01b031614156139775792915050565b8061398181615e0a565b91505061392f565b5060001992915050565b61399b614904565b6019546001600160a01b0316336001600160a01b031614806139c257506139c23384611eda565b6139de5760405162461bcd60e51b815260040161090e906157ca565b600083815260136020526040908190205490830151600391820b820b910b14613a195760405162461bcd60e51b815260040161090e906158ed565b6000838152601260209081526040808320548352600d90915290819020601001549051639e680b2760e01b81526001600160a01b0390911690639e680b2790613a66908590600401615b65565b620807a06040518083038186803b158015613a8057600080fd5b505afa158015613a94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e9b9190615329565b60006001600160e01b031982166380ac58cd60e01b1480613ae957506001600160e01b03198216635b5e139f60e01b145b8061080e575061080e82614123565b613b03838383614148565b3360009081526018602052604090205460ff1680613b4057506000818152601260209081526040808320548352600d9091529020600a015460ff16155b610a3f5760405162461bcd60e51b815260206004820152601160248201527018dbdb1b1958dd1a5bdb881c185d5cd959607a1b604482015260640161090e565b613b8a8282611ea2565b610f8b57613ba2816001600160a01b031660146141ba565b613bad8360206141ba565b604051602001613bbe9291906156e4565b60408051601f198184030181529082905262461bcd60e51b825261090e916004016157b7565b613bee8282611ea2565b610f8b576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055613c243390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000818152600183016020526040812054613caf5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561080e565b50600061080e565b613cc18282611ea2565b15610f8b576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008181526001830160205260408120548015613e05576000613d40600183615d75565b8554909150600090613d5490600190615d75565b9050818114613db9576000866000018281548110613d7457613d74615eb4565b9060005260206000200154905080876000018481548110613d9757613d97615eb4565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613dca57613dca615e9e565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061080e565b600091505061080e565b5092915050565b6000826000018281548110613e2d57613e2d615eb4565b9060005260206000200154905092915050565b60006001600160a01b0384163b15613f4257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613e84903390899088908890600401615767565b602060405180830381600087803b158015613e9e57600080fd5b505af1925050508015613ece575060408051601f3d908101601f19168201909252613ecb9181019061522e565b60015b613f28573d808015613efc576040519150601f19603f3d011682016040523d82523d6000602084013e613f01565b606091505b508051613f205760405162461bcd60e51b815260040161090e9061581f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061266c565b506001949350505050565b610f8b828260405180602001604052806000815250614355565b600083156140cc576000805b83518160ff161015613fbb57838160ff1681518110613f9457613f94615eb4565b602002602001015182613fa79190615d1d565b915080613fb381615e3e565b915050613f73565b508060ff166064146140095760405162461bcd60e51b815260206004820152601760248201527673706c697473206d7573742073756d20746f203130302560481b604482015260640161090e565b60005b84518160ff1610156140c9576000606487868460ff168151811061403257614032615eb4565b602002602001015160ff166140479190615d56565b6140519190615d42565b9050858260ff168151811061406857614068615eb4565b60200260200101516001600160a01b03166108fc829081150290604051600060405180830381858888f193505050501580156140a8573d6000803e3d6000fd5b506140b38185615d05565b93505080806140c190615e3e565b91505061400c565b50505b6140d68185615d75565b15611e9b5760405162461bcd60e51b815260206004820152601f60248201527f696e636f727265637420646973747269627574696f6e206f662066756e647300604482015260640161090e565b60006001600160e01b03198216635a05180f60e01b148061080e575061080e82614388565b6141538383836143bd565b600c5460ff1615610a3f5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b606482015260840161090e565b606060006141c9836002615d56565b6141d4906002615d05565b6001600160401b038111156141eb576141eb615eca565b6040519080825280601f01601f191660200182016040528015614215576020820181803683370190505b509050600360fc1b8160008151811061423057614230615eb4565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061425f5761425f615eb4565b60200101906001600160f81b031916908160001a9053506000614283846002615d56565b61428e906001615d05565b90505b6001811115614306576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106142c2576142c2615eb4565b1a60f81b8282815181106142d8576142d8615eb4565b60200101906001600160f81b031916908160001a90535060049490941c936142ff81615db8565b9050614291565b508315611e9b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161090e565b61435f8383614475565b61436c6000848484613e40565b610a3f5760405162461bcd60e51b815260040161090e9061581f565b60006001600160e01b03198216637965db0b60e01b148061080e57506301ffc9a760e01b6001600160e01b031983161461080e565b6001600160a01b0383166144185761441381600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b61443b565b816001600160a01b0316836001600160a01b03161461443b5761443b83826145a1565b6001600160a01b03821661445257610a3f8161463e565b826001600160a01b0316826001600160a01b031614610a3f57610a3f82826146ed565b6001600160a01b0382166144cb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161090e565b6144d481612d3b565b156145205760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b604482015260640161090e565b61452c60008383613af8565b6001600160a01b0382166000908152600560205260408120805460019290614555908490615d05565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020615f4b833981519152908290a45050565b600060016145ae84611a61565b6145b89190615d75565b60008381526009602052604090205490915080821461460b576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a5460009061465090600190615d75565b6000838152600b6020526040812054600a805493945090928490811061467857614678615eb4565b9060005260206000200154905080600a838154811061469957614699615eb4565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a8054806146d1576146d1615e9e565b6001900381819060005260206000200160009055905550505050565b60006146f883611a61565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b82805461473d90615dcf565b90600052602060002090601f01602090048101928261475f57600085556147a5565b82601f1061477857805160ff19168380011785556147a5565b828001600101855582156147a5579182015b828111156147a557825182559160200191906001019061478a565b506147b1929150614987565b5090565b828054828255906000526020600020908101928215614802579160200282015b8281111561480257825180516147f2918491602090910190614731565b50916020019190600101906147d5565b506147b192915061499c565b8280548282559060005260206000209081019282156147a5579160200282015b828111156147a557825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061482e565b82805482825590600052602060002090601f016020900481019282156147a55791602002820160005b838211156148ca57835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030261488c565b80156148f75782816101000a81549060ff02191690556001016020816000010492830192600103026148ca565b50506147b1929150614987565b6040805160a081018252600080825260208201819052918101919091526060810161492d61493f565b815260200161493a614960565b905290565b60405180620800000160405280614000906020820280368337509192915050565b60405180606001604052806149736149b9565b815260006020820181905260409091015290565b5b808211156147b15760008155600101614988565b808211156147b15760006149b082826149d8565b5060010161499c565b6040518061070001604052806038906020820280368337509192915050565b5080546149e490615dcf565b6000825580601f106149f4575050565b601f0160209004906000526020600020908101906117849190614987565b6000614a25614a2084615cde565b615c8b565b9050828152838383011115614a3957600080fd5b828260208301376000602084830101529392505050565b80356116ed81615ee0565b600082601f830112614a6c57600080fd5b81356020614a7c614a2083615cbb565b80838252828201915082860187848660051b8901011115614a9c57600080fd5b60005b85811015614ac4578135614ab281615ee0565b84529284019290840190600101614a9f565b5090979650505050505050565b600082601f830112614ae257600080fd5b81356020614af2614a2083615cbb565b80838252828201915082860187848660051b8901011115614b1257600080fd5b60005b85811015614ac4578135614b2881615ee0565b84529284019290840190600101614b15565b600082601f830112614b4b57600080fd5b81356020614b5b614a2083615cbb565b80838252828201915082860187848660051b8901011115614b7b57600080fd5b6000805b86811015614bbd5782356001600160401b03811115614b9c578283fd5b614baa8b88838d0101614c5a565b8652509385019391850191600101614b7f565b509198975050505050505050565b600082601f830112614bdc57600080fd5b81356020614bec614a2083615cbb565b80838252828201915082860187848660051b8901011115614c0c57600080fd5b60005b85811015614ac4578135614c2281615f3b565b84529284019290840190600101614c0f565b803580151581146116ed57600080fd5b80356116ed81615f1a565b80516116ed81615f1a565b600082601f830112614c6b57600080fd5b611e9b83833560208501614a12565b60006102408284031215614c8d57600080fd5b614c95615bd7565b905081356001600160401b0380821115614cae57600080fd5b614cba85838601614c5a565b83526020840135915080821115614cd057600080fd5b614cdc85838601614c5a565b60208401526040840135915080821115614cf557600080fd5b614d0185838601614c5a565b60408401526060840135915080821115614d1a57600080fd5b614d2685838601614c5a565b606084015260808401356080840152614d4160a08501614c44565b60a084015260c0848101359084015260e08085013590840152610100808501359084015261012080850135908401526101409150614d80828501614c34565b828401526101609150614d94828501614c34565b8284015261018091508184013581811115614dae57600080fd5b614dba86828701614b3a565b83850152506101a091508184013581811115614dd557600080fd5b614de186828701614ad1565b83850152506101c091508184013581811115614dfc57600080fd5b614e0886828701614bcb565b83850152506101e09150614e1d828501614c34565b8284015261020091508184013581811115614e3757600080fd5b614e4386828701614a5b565b83850152505050610220614e58818401614a50565b9082015292915050565b60006107408284031215614e7557600080fd5b614e7d615c00565b905082601f830112614e8e57600080fd5b614e96615c44565b8083610700850186811115614eaa57600080fd5b60005b6038811015614ed6578235614ec181615f1a565b85526020948501949290920191600101614ead565b50828552614ee381614c44565b602086015250505050614ef96107208301614c44565b604082015292915050565b60006107408284031215614f1757600080fd5b614f1f615c00565b905082601f830112614f3057600080fd5b614f38615c44565b8083610700850186811115614f4c57600080fd5b60005b6038811015614f78578251614f6381615f1a565b85526020948501949290920191600101614f4f565b50828552614f8581614c4f565b602086015250505050614ef96107208301614c4f565b600060208284031215614fad57600080fd5b8135611e9b81615ee0565b60008060408385031215614fcb57600080fd5b8235614fd681615ee0565b91506020830135614fe681615ee0565b809150509250929050565b60008060006060848603121561500657600080fd5b833561501181615ee0565b9250602084013561502181615ee0565b929592945050506040919091013590565b6000806000806080858703121561504857600080fd5b843561505381615ee0565b9350602085013561506381615ee0565b92506040850135915060608501356001600160401b0381111561508557600080fd5b8501601f8101871361509657600080fd5b6150a587823560208401614a12565b91505092959194509250565b600080604083850312156150c457600080fd5b82356150cf81615ee0565b91506150dd60208401614c34565b90509250929050565b600080604083850312156150f957600080fd5b823561510481615ee0565b946020939093013593505050565b60006020828403121561512457600080fd5b81356001600160401b0381111561513a57600080fd5b61266c84828501614a5b565b60006020828403121561515857600080fd5b5035919050565b6000806040838503121561517257600080fd5b823591506020830135614fe681615ee0565b6000806040838503121561519757600080fd5b823591506020830135614fe681615f1a565b600080604083850312156151bc57600080fd5b8235915060208301356001600160401b038111156151d957600080fd5b6151e585828601614c7a565b9150509250929050565b6000806040838503121561520257600080fd5b50508035926020909101359150565b60006020828403121561522357600080fd5b8135611e9b81615ef5565b60006020828403121561524057600080fd5b8151611e9b81615ef5565b60006020828403121561525d57600080fd5b81356001600160401b0381111561527357600080fd5b61266c84828501614c5a565b60006020828403121561529157600080fd5b81516001600160401b038111156152a757600080fd5b8201601f810184136152b857600080fd5b80516152c6614a2082615cde565b8181528560208385010111156152db57600080fd5b6152ec826020830160208601615d8c565b95945050505050565b60006020828403121561530757600080fd5b81356001600160401b0381111561531d57600080fd5b61266c84828501614c7a565b6000620807a0828403121561533d57600080fd5b615345615c22565b825161535081615f0b565b815260208381015161536181615f3b565b82820152604084015161537381615f1a565b6040830152607f8401851361538757600080fd5b61538f615c67565b8060608601620800608701888111156153a757600080fd5b60005b6140008110156153d15782516153bf81615f29565b855293850193918501916001016153aa565b508260608701526153e28982614f04565b60808701525093979650505050505050565b600080828403620807c081121561540a57600080fd5b833592506020620807a0601f198301121561542457600080fd5b61542c615c22565b91508085013561543b81615f0b565b8252604085013561544b81615f3b565b82820152606085013561545d81615f1a565b6040830152609f8501861361547157600080fd5b615479615c67565b80608087016208008088018981111561549157600080fd5b60005b6140008110156154bb5782356154a981615f29565b85529385019391850191600101615494565b508260608701526154cc8a82614e62565b60808701525050505050809150509250929050565b6000806000606084860312156154f657600080fd5b833561550181615f3b565b925060208401356001600160401b038082111561551d57600080fd5b61552987838801614ad1565b9350604086013591508082111561553f57600080fd5b5061554c86828701614bcb565b9150509250925092565b600081518084526020808501945080840160005b8381101561558f5781516001600160a01b03168752958201959082019060010161556a565b509495945050505050565b600081518084526020808501808196508360051b8101915082860160005b858110156155e25782840389526155d0848351615622565b988501989350908401906001016155b8565b5091979650505050505050565b600081518084526020808501945080840160005b8381101561558f57815160ff1687529582019590820190600101615603565b6000815180845261563a816020860160208601615d8c565b601f01601f19169290920160200192915050565b80518260005b603881101561567657825160030b825260209283019290910190600101615654565b505050602081015160030b610700830152604081015160030b6107208301525050565b600082516156ab818460208701615d8c565b9190910192915050565b600083516156c7818460208801615d8c565b8351908301906156db818360208801615d8c565b01949350505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351615716816017850160208801615d8c565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615747816028840160208801615d8c565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061579a90830184615622565b9695505050505050565b602081526000611e9b6020830184615556565b602081526000611e9b6020830184615622565b6020808252600d908201526c3ab737bbb732b2103a37b5b2b760991b604082015260600190565b602080825260149082015273696e76616c6964206f776e65722073706c69747360601b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600a908201526961646d696e206f6e6c7960b01b604082015260600190565b60208082526010908201526f34b73b30b634b2103932b73232b932b960811b604082015260600190565b60208082526014908201527318dbdb1b1958dd1a5bdb881b9bdd08199bdd5b9960621b604082015260600190565b6020808252600c908201526b1a5b9d985b1a59081cd9595960a21b604082015260600190565b6020808252600c908201526b1cd95959081b9bdd081cd95d60a21b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526010908201526f1b985b59481b5d5cdd081899481cd95d60821b604082015260600190565b60208152600082516102408060208501526159d3610260850183615622565b91506020850151601f19808685030160408701526159f18483615622565b93506040870151915080868503016060870152615a0e8483615622565b93506060870151915080868503016080870152615a2b8483615622565b9350608087015160a087015260a08701519150615a4d60c087018360030b9052565b60c087015160e0878101919091528701516101008088019190915287015161012080880191909152870151610140808801919091528701519150610160615a978188018415159052565b8701519150610180615aac8782018415159052565b808801519250506101a0818786030181880152615ac9858461559a565b9450808801519250506101c0818786030181880152615ae88584615556565b9450808801519250506101e0818786030181880152615b0785846155ef565b945080880151925050610200615b208188018415159052565b80880151925050610220818786030181880152615b3d8584615556565b94508088015192505050615b5b828601826001600160a01b03169052565b5090949350505050565b8151600190810b825260208084015160ff168184015260408085015160030b90840152606080850151620807a085019391850160005b614000811015615bbe57825163ffffffff16825291840191908401908301615b9b565b50505050506080830151613e0f6208006084018261564e565b60405161024081016001600160401b0381118282101715615bfa57615bfa615eca565b60405290565b604051606081016001600160401b0381118282101715615bfa57615bfa615eca565b60405160a081016001600160401b0381118282101715615bfa57615bfa615eca565b60405161070081016001600160401b0381118282101715615bfa57615bfa615eca565b6040516208000081016001600160401b0381118282101715615bfa57615bfa615eca565b604051601f8201601f191681016001600160401b0381118282101715615cb357615cb3615eca565b604052919050565b60006001600160401b03821115615cd457615cd4615eca565b5060051b60200190565b60006001600160401b03821115615cf757615cf7615eca565b50601f01601f191660200190565b60008219821115615d1857615d18615e72565b500190565b600060ff821660ff84168060ff03821115615d3a57615d3a615e72565b019392505050565b600082615d5157615d51615e88565b500490565b6000816000190483118215151615615d7057615d70615e72565b500290565b600082821015615d8757615d87615e72565b500390565b60005b83811015615da7578181015183820152602001615d8f565b8381111561209c5750506000910152565b600081615dc757615dc7615e72565b506000190190565b600181811c90821680615de357607f821691505b60208210811415615e0457634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160ff1b03821415615e2357615e23615e72565b5060010190565b6000600019821415615e2357615e23615e72565b600060ff821660ff811415615e5557615e55615e72565b60010192915050565b600082615e6d57615e6d615e88565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461178457600080fd5b6001600160e01b03198116811461178457600080fd5b8060010b811461178457600080fd5b8060030b811461178457600080fd5b63ffffffff8116811461178457600080fd5b60ff8116811461178457600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212208f6121eec03d09f4b861afeb380adcc933ef1ebcf9be7761bfdb74d99f133fd864736f6c63430008070033
Deployed Bytecode Sourcemap
405:15341:29:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3593:254;;;;;;;;;;-1:-1:-1;3593:254:29;;;;;:::i;:::-;;:::i;:::-;;;24436:14:41;;24429:22;24411:41;;24399:2;24384:18;3593:254:29;;;;;;;;2412:100:11;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;3971:221::-;;;;;;;;;;-1:-1:-1;3971:221:11;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3494:411::-;;;;;;;;;;-1:-1:-1;3494:411:11;;;;;:::i;:::-;;:::i;:::-;;1573:113:13;;;;;;;;;;-1:-1:-1;1661:10:13;:17;1573:113;;;24609:25:41;;;24597:2;24582:18;1573:113:13;24463:177:41;6848:553:29;;;;;;;;;;-1:-1:-1;6848:553:29;;;;;:::i;:::-;;:::i;4861:339:11:-;;;;;;;;;;-1:-1:-1;4861:339:11;;;;;:::i;:::-;;:::i;3988:123:0:-;;;;;;;;;;-1:-1:-1;3988:123:0;;;;;:::i;:::-;;:::i;5159:278:29:-;;;;;;;;;;-1:-1:-1;5159:278:29;;;;;:::i;:::-;;:::i;5445:331::-;;;;;;;;;;-1:-1:-1;5445:331:29;;;;;:::i;:::-;;:::i;1905:196:1:-;;;;;;;;;;-1:-1:-1;1905:196:1;;;;;:::i;:::-;;:::i;1241:256:13:-;;;;;;;;;;-1:-1:-1;1241:256:13;;;;;:::i;:::-;;:::i;3314:205:29:-;;;;;;;;;;;;;:::i;2490::1:-;;;;;;;;;;-1:-1:-1;2490:205:1;;;;;:::i;:::-;;:::i;4806:181:29:-;;;;;;;;;;-1:-1:-1;4806:181:29;;;;;:::i;:::-;;:::i;6526:314::-;;;;;;;;;;-1:-1:-1;6526:314:29;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;5271:185:11:-;;;;;;;;;;-1:-1:-1;5271:185:11;;;;;:::i;:::-;;:::i;452:245:12:-;;;;;;;;;;-1:-1:-1;452:245:12;;;;;:::i;:::-;;:::i;14175:301:29:-;;;;;;;;;;-1:-1:-1;14175:301:29;;;;;:::i;:::-;;:::i;2494:162::-;;;;;;;;;;-1:-1:-1;2494:162:29;;;;;:::i;:::-;;:::i;4995:156::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;1763:233:13:-;;;;;;;;;;-1:-1:-1;1763:233:13;;;;;:::i;:::-;;:::i;1070:86:34:-;;;;;;;;;;-1:-1:-1;1141:7:34;;;;1070:86;;2106:239:11;;;;;;;;;;-1:-1:-1;2106:239:11;;;;;:::i;:::-;;:::i;1836:208::-;;;;;;;;;;-1:-1:-1;1836:208:11;;;;;:::i;:::-;;:::i;7409:558:29:-;;;;;;;;;;-1:-1:-1;7409:558:29;;;;;:::i;:::-;;:::i;8229:294::-;;;;;;;;;;-1:-1:-1;8229:294:29;;;;;:::i;:::-;;:::i;1360:145:1:-;;;;;;;;;;-1:-1:-1;1360:145:1;;;;;:::i;:::-;;:::i;2873:139:0:-;;;;;;;;;;-1:-1:-1;2873:139:0;;;;;:::i;:::-;;:::i;2581:104:11:-;;;;;;;;;;;;;:::i;13295:288:29:-;;;;;;;;;;-1:-1:-1;13295:288:29;;;;;:::i;:::-;;:::i;1964:49:0:-;;;;;;;;;;-1:-1:-1;1964:49:0;2009:4;1964:49;;4264:295:11;;;;;;;;;;-1:-1:-1;4264:295:11;;;;;:::i;:::-;;:::i;8531:254:29:-;;;;;;;;;;-1:-1:-1;8531:254:29;;;;;:::i;:::-;;:::i;:::-;;;24816:1:41;24805:21;;;;24787:40;;24775:2;24760:18;8531:254:29;24645:188:41;5527:328:11;;;;;;;;;;-1:-1:-1;5527:328:11;;;;;:::i;:::-;;:::i;13654:423:29:-;;;;;;;;;;-1:-1:-1;13654:423:29;;;;;:::i;:::-;;:::i;1679:134:1:-;;;;;;;;;;-1:-1:-1;1679:134:1;;;;;:::i;:::-;;:::i;8793:115:29:-;;;;;;:::i;:::-;;:::i;2194:201:1:-;;;;;;;;;;-1:-1:-1;2194:201:1;;;;;:::i;:::-;;:::i;2664:212:29:-;;;;;;;;;;-1:-1:-1;2664:212:29;;;;;:::i;:::-;;:::i;2389:97::-;;;;;;;;;;;;;:::i;4630:164:11:-;;;;;;;;;;-1:-1:-1;4630:164:11;;;;;:::i;:::-;;:::i;8916:1284:29:-;;;;;;:::i;:::-;;:::i;5784:480::-;;;;;;;;;;-1:-1:-1;5784:480:29;;;;;:::i;:::-;;:::i;15462:281::-;;;;;;;;;;-1:-1:-1;15462:281:29;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;15159:180::-;;;;;;;;;;-1:-1:-1;15159:180:29;;;;;:::i;:::-;;:::i;2884:422::-;;;;;;;;;;-1:-1:-1;2884:422:29;;;;;:::i;:::-;;:::i;3593:254::-;3774:4;3803:36;3827:11;3803:23;:36::i;:::-;3796:43;3593:254;-1:-1:-1;;3593:254:29:o;2412:100:11:-;2466:13;2499:5;2492:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2412:100;:::o;3971:221::-;4047:7;4075:16;4083:7;4075;:16::i;:::-;4067:73;;;;-1:-1:-1;;;4067:73:11;;36661:2:41;4067:73:11;;;36643:21:41;36700:2;36680:18;;;36673:30;36739:34;36719:18;;;36712:62;-1:-1:-1;;;36790:18:41;;;36783:42;36842:19;;4067:73:11;;;;;;;;;-1:-1:-1;4160:24:11;;;;:15;:24;;;;;;-1:-1:-1;;;;;4160:24:11;;3971:221::o;3494:411::-;3575:13;3591:23;3606:7;3591:14;:23::i;:::-;3575:39;;3639:5;-1:-1:-1;;;;;3633:11:11;:2;-1:-1:-1;;;;;3633:11:11;;;3625:57;;;;-1:-1:-1;;;3625:57:11;;39279:2:41;3625:57:11;;;39261:21:41;39318:2;39298:18;;;39291:30;39357:34;39337:18;;;39330:62;-1:-1:-1;;;39408:18:41;;;39401:31;39449:19;;3625:57:11;39077:397:41;3625:57:11;682:10:4;-1:-1:-1;;;;;3717:21:11;;;;:62;;-1:-1:-1;3742:37:11;3759:5;682:10:4;4630:164:11;:::i;3742:37::-;3695:168;;;;-1:-1:-1;;;3695:168:11;;32579:2:41;3695:168:11;;;32561:21:41;32618:2;32598:18;;;32591:30;32657:34;32637:18;;;32630:62;-1:-1:-1;;;32708:18:41;;;32701:54;32772:19;;3695:168:11;32377:420:41;3695:168:11;3876:21;3885:2;3889:7;3876:8;:21::i;:::-;3564:341;3494:411;;:::o;6848:553:29:-;6945:6;;-1:-1:-1;;;;;6945:6:29;682:10:4;-1:-1:-1;;;;;6929:22:29;;6921:45;;;;-1:-1:-1;;;6921:45:29;;;;;;;:::i;:::-;6991:15;;6985:29;6977:62;;;;-1:-1:-1;;;6977:62:29;;;;;;;:::i;:::-;7100:15;;7083:33;;7060:10;;7083:33;;;;;:::i;:::-;;;;-1:-1:-1;;7083:33:29;;;;;;;;;7073:44;;7083:33;7073:44;;;;7142:15;;;;:11;:15;;;;;7136:34;;7073:44;;-1:-1:-1;7142:15:29;7136:34;;;:::i;:::-;:39;;-1:-1:-1;7128:76:29;;;;-1:-1:-1;;;7128:76:29;;25264:2:41;7128:76:29;;;25246:21:41;25303:2;25283:18;;;25276:30;-1:-1:-1;;;25322:18:41;;;25315:54;25386:18;;7128:76:29;25062:348:41;7128:76:29;7223:20;;;;-1:-1:-1;;;;;7223:36:29;;;;;:73;;-1:-1:-1;7263:20:29;;;;-1:-1:-1;;;;;7263:31:29;1066:20:2;1114:8;;7263:33:29;7215:102;;;;-1:-1:-1;;;7215:102:29;;;;;;;:::i;:::-;7330:15;;;;:11;:15;;;;;;;;:28;;;;7348:10;;7330:28;;:15;;:28;;;;:::i;:::-;-1:-1:-1;7330:28:29;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7330:28:29;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7330:28:29;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7330:28:29;;;;;;;;;;;;;;;;;-1:-1:-1;;7330:28:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;7330:28:29;;;;;;-1:-1:-1;;7330:28:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7330:28:29;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7330:28:29;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7330:28:29;;;;;;;;;-1:-1:-1;;7330:28:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7330:28:29;;;;;;;;;;;;-1:-1:-1;;;;;;7330:28:29;-1:-1:-1;;;;;7330:28:29;;;;;;;;;7374:19;;7390:2;;7374:19;;-1:-1:-1;;7374:19:29;6910:491;6848:553;:::o;4861:339:11:-;5056:41;682:10:4;5075:12:11;5089:7;5056:18;:41::i;:::-;5048:103;;;;-1:-1:-1;;;5048:103:11;;;;;;;:::i;:::-;5164:28;5174:4;5180:2;5184:7;5164:9;:28::i;3988:123:0:-;4054:7;4081:12;;;;;;;;;;:22;;;;3988:123::o;5159:278:29:-;5245:6;;-1:-1:-1;;;;;5245:6:29;682:10:4;-1:-1:-1;;;;;5229:22:29;;5221:45;;;;-1:-1:-1;;;5221:45:29;;;;;;;:::i;:::-;-1:-1:-1;;;;;5285:24:29;;;;;;:50;;-1:-1:-1;;;;;;5314:19:29;;1066:20:2;1114:8;5285:50:29;5277:78;;;;-1:-1:-1;;;5277:78:29;;33825:2:41;5277:78:29;;;33807:21:41;33864:2;33844:18;;;33837:30;-1:-1:-1;;;33883:18:41;;;33876:45;33938:18;;5277:78:29;33623:339:41;5277:78:29;5366:9;:24;;;;;;;;;;;;;-1:-1:-1;;;;;5366:24:29;;;-1:-1:-1;;;;;;5366:24:29;;;;;;;-1:-1:-1;5401:21:29;;;:11;5366:24;5401:21;;;;;:28;;-1:-1:-1;;5401:28:29;;;;;;5159:278::o;5445:331::-;5540:6;;-1:-1:-1;;;;;5540:6:29;682:10:4;-1:-1:-1;;;;;5524:22:29;;5516:45;;;;-1:-1:-1;;;5516:45:29;;;;;;;:::i;:::-;5580:9;:16;:21;5572:51;;;;-1:-1:-1;;;5572:51:29;;39681:2:41;5572:51:29;;;39663:21:41;39720:2;39700:18;;;39693:30;-1:-1:-1;;;39739:18:41;;;39732:47;39796:18;;5572:51:29;39479:341:41;5572:51:29;5634:22;;;;:9;;:22;;;;;:::i;:::-;;5671:6;5667:102;5687:9;:16;5683:20;;5667:102;;;5753:4;5725:11;:25;5737:9;5747:1;5737:12;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;5737:12:29;5725:25;;;;;;;;;;;;:32;;-1:-1:-1;;5725:32:29;;;;;;;;;;5705:3;;;;:::i;:::-;;;;5667:102;;;;5445:331;:::o;1905:196:1:-;2021:30;2037:4;2043:7;2021:15;:30::i;:::-;2062:18;;;;:12;:18;;;;;:31;;2085:7;2062:22;:31::i;1241:256:13:-;1338:7;1374:23;1391:5;1374:16;:23::i;:::-;1366:5;:31;1358:87;;;;-1:-1:-1;;;1358:87:13;;28148:2:41;1358:87:13;;;28130:21:41;28187:2;28167:18;;;28160:30;28226:34;28206:18;;;28199:62;-1:-1:-1;;;28277:18:41;;;28270:41;28328:19;;1358:87:13;27946:407:41;1358:87:13;-1:-1:-1;;;;;;1463:19:13;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;1241:256::o;3314:205:29:-;3380:6;;-1:-1:-1;;;;;3380:6:29;682:10:4;-1:-1:-1;;;;;3364:22:29;;3356:45;;;;-1:-1:-1;;;3356:45:29;;;;;;;:::i;:::-;1141:7:34;;;;3412:100:29;;;3440:10;:8;:10::i;:::-;3314:205::o;3412:100::-;3492:8;:6;:8::i;2490:205:1:-;2609:33;2628:4;2634:7;2609:18;:33::i;:::-;2653:18;;;;:12;:18;;;;;:34;;2679:7;2653:25;:34::i;4806:181:29:-;4911:6;;4870:4;;-1:-1:-1;;;;;4911:6:29;682:10:4;-1:-1:-1;;;;;4895:22:29;;4887:45;;;;-1:-1:-1;;;4887:45:29;;;;;;;:::i;:::-;-1:-1:-1;;;;;;4950:21:29;;;;;:11;:21;;;;;;;;;4806:181::o;6526:314::-;6592:28;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6592:28:29;6707:25;;;;:11;:25;;;;;;;6694:38;;;;;;;;;;;;6707:25;;6694:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;6694:38:29;;;-1:-1:-1;;6694:38:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6694:38:29;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6694:38:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;6694:38:29;;;-1:-1:-1;;6694:38:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6694:38:29;;;;;;;;;;;;;;;;-1:-1:-1;;;6694:38:29;;;-1:-1:-1;;6694:38:29;;;;;;-1:-1:-1;;;;;6694:38:29;;;;;;;6757:25;;;:11;:25;;;;;;6751:44;;6694:38;;-1:-1:-1;6694:38:29;;6751:44;;;:::i;:::-;;;:48;6743:81;;;;-1:-1:-1;;;6743:81:29;;;;;;;:::i;:::-;6526:314;;;:::o;5271:185:11:-;5409:39;5426:4;5432:2;5436:7;5409:39;;;;;;;;;;;;:16;:39::i;452:245:12:-;570:41;682:10:4;589:12:12;602:98:4;570:41:12;562:102;;;;-1:-1:-1;;;562:102:12;;41902:2:41;562:102:12;;;41884:21:41;41941:2;41921:18;;;41914:30;41980:34;41960:18;;;41953:62;-1:-1:-1;;;42031:18:41;;;42024:46;42087:19;;562:102:12;41700:412:41;562:102:12;675:14;681:7;675:5;:14::i;:::-;452:245;:::o;14175:301:29:-;14296:6;;14235:24;;-1:-1:-1;;;;;14296:6:29;682:10:4;-1:-1:-1;;;;;14280:22:29;;:58;;;-1:-1:-1;14306:32:29;682:10:4;14330:7:29;14306:9;:32::i;:::-;14272:84;;;;-1:-1:-1;;;14272:84:29;;;;;;;:::i;:::-;14386:37;14398:24;;;:15;:24;;;;;;;;;14386:37;;:11;:37;;;;;:47;;;14449:18;;;:9;:18;;;;;;;;14374:94;;-1:-1:-1;;;;;;14374:94:29;;14449:18;;;;24805:21:41;;;14374:94:29;;;24787:40:41;-1:-1:-1;;;;;14386:47:29;;14374:74;;24760:18:41;;14374:94:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14374:94:29;;;;;;;;;;;;:::i;2494:162::-;2590:6;;-1:-1:-1;;;;;2590:6:29;682:10:4;-1:-1:-1;;;;;2574:22:29;;2566:45;;;;-1:-1:-1;;;2566:45:29;;;;;;;:::i;:::-;2622:26;;;;:12;;:26;;;;;:::i;4995:156::-;5095:6;;5042:16;;-1:-1:-1;;;;;5095:6:29;682:10:4;-1:-1:-1;;;;;5079:22:29;;5071:45;;;;-1:-1:-1;;;5071:45:29;;;;;;;:::i;:::-;5134:9;5127:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5127:16:29;;;;;;;;;;;;;;;;;;;;;;4995:156;:::o;1763:233:13:-;1838:7;1874:30;1661:10;:17;;1573:113;1874:30;1866:5;:38;1858:95;;;;-1:-1:-1;;;1858:95:13;;40445:2:41;1858:95:13;;;40427:21:41;40484:2;40464:18;;;40457:30;40523:34;40503:18;;;40496:62;-1:-1:-1;;;40574:18:41;;;40567:42;40626:19;;1858:95:13;40243:408:41;1858:95:13;1971:10;1982:5;1971:17;;;;;;;;:::i;:::-;;;;;;;;;1964:24;;1763:233;;;:::o;2106:239:11:-;2178:7;2214:16;;;:7;:16;;;;;;-1:-1:-1;;;;;2214:16:11;2249:19;2241:73;;;;-1:-1:-1;;;2241:73:11;;33415:2:41;2241:73:11;;;33397:21:41;33454:2;33434:18;;;33427:30;33493:34;33473:18;;;33466:62;-1:-1:-1;;;33544:18:41;;;33537:39;33593:19;;2241:73:11;33213:405:41;1836:208:11;1908:7;-1:-1:-1;;;;;1936:19:11;;1928:74;;;;-1:-1:-1;;;1928:74:11;;33004:2:41;1928:74:11;;;32986:21:41;33043:2;33023:18;;;33016:30;33082:34;33062:18;;;33055:62;-1:-1:-1;;;33133:18:41;;;33126:40;33183:19;;1928:74:11;32802:406:41;1928:74:11;-1:-1:-1;;;;;;2020:16:11;;;;;:9;:16;;;;;;;1836:208::o;7409:558:29:-;7529:6;;-1:-1:-1;;;;;7529:6:29;682:10:4;-1:-1:-1;;;;;7513:22:29;;7505:45;;;;-1:-1:-1;;;7505:45:29;;;;;;;:::i;:::-;7575:15;;7569:29;7561:62;;;;-1:-1:-1;;;7561:62:29;;;;;;;:::i;:::-;7686:15;;7669:33;;;;7686:15;7669:33;;;:::i;:::-;;;;-1:-1:-1;;7669:33:29;;;;;;;;;7659:44;;7669:33;7659:44;;;;7769:1;7728:25;;;:11;:25;;;;;;7722:44;;7659;;-1:-1:-1;7728:25:29;7722:44;;;:::i;:::-;;;:48;7714:81;;;;-1:-1:-1;;;7714:81:29;;;;;;;:::i;:::-;7814:20;;;;-1:-1:-1;;;;;7814:36:29;;;;;:73;;-1:-1:-1;7854:20:29;;;;-1:-1:-1;;;;;7854:31:29;1066:20:2;1114:8;;7854:33:29;7806:102;;;;-1:-1:-1;;;7806:102:29;;;;;;;:::i;:::-;7921:25;;;;:11;:25;;;;;;;;:38;;;;7949:10;;7921:38;;:25;;:38;;;;:::i;:::-;-1:-1:-1;7921:38:29;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7921:38:29;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7921:38:29;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7921:38:29;;;;;;;;;;;;;;;;;-1:-1:-1;;7921:38:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;7921:38:29;;;;;;-1:-1:-1;;7921:38:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7921:38:29;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7921:38:29;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7921:38:29;;;;;;;;;-1:-1:-1;;7921:38:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;7921:38:29;;;;;;;;;;;;-1:-1:-1;;;;;;7921:38:29;-1:-1:-1;;;;;7921:38:29;;;;;;;;;-1:-1:-1;;7409:558:29:o;8229:294::-;8326:6;;-1:-1:-1;;;;;8326:6:29;682:10:4;-1:-1:-1;;;;;8310:22:29;;8302:45;;;;-1:-1:-1;;;8302:45:29;;;;;;;:::i;:::-;8366:4;:9;;8374:1;8366:9;;8358:34;;;;-1:-1:-1;;;8358:34:29;;;;;;;:::i;:::-;8411:25;;;;:11;:25;;;;;:30;;;;;;;:35;;;8403:64;;;;-1:-1:-1;;;8403:64:29;;35261:2:41;8403:64:29;;;35243:21:41;35300:2;35280:18;;;35273:30;-1:-1:-1;;;35319:18:41;;;35312:46;35375:18;;8403:64:29;35059:340:41;8403:64:29;8478:25;;;;:11;:25;;;;;;:30;;:37;;;;;;;;;-1:-1:-1;;8478:37:29;;;;;;;;;8229:294::o;1360:145:1:-;1442:7;1469:18;;;:12;:18;;;;;:28;;1491:5;1469:21;:28::i;:::-;1462:35;1360:145;-1:-1:-1;;;1360:145:1:o;2873:139:0:-;2951:4;2975:12;;;;;;;;;;;-1:-1:-1;;;;;2975:29:0;;;;;;;;;;;;;;;2873:139::o;2581:104:11:-;2637:13;2670:7;2663:14;;;;;:::i;13295:288:29:-;13364:4;;13381:172;13401:16;13411:5;13401:9;:16::i;:::-;13397:1;:20;13381:172;;;13453:29;13473:5;13480:1;13453:19;:29::i;:::-;13442:7;:40;13439:91;;;13510:4;13503:11;;;;;13439:91;13419:3;;;;:::i;:::-;;;;13381:172;;;-1:-1:-1;13570:5:29;;13295:288;-1:-1:-1;;;13295:288:29:o;4264:295:11:-;-1:-1:-1;;;;;4367:24:11;;682:10:4;4367:24:11;;4359:62;;;;-1:-1:-1;;;4359:62:11;;30426:2:41;4359:62:11;;;30408:21:41;30465:2;30445:18;;;30438:30;-1:-1:-1;;;30484:18:41;;;30477:55;30549:18;;4359:62:11;30224:349:41;4359:62:11;682:10:4;4434:32:11;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;4434:42:11;;;;;;;;;;;;:53;;-1:-1:-1;;4434:53:11;;;;;;;;;;4503:48;;24411:41:41;;;4434:42:11;;682:10:4;4503:48:11;;24384:18:41;4503:48:11;;;;;;;4264:295;;:::o;8531:254:29:-;8637:6;;8593:5;;-1:-1:-1;;;;;8637:6:29;682:10:4;-1:-1:-1;;;;;8621:22:29;;8613:45;;;;-1:-1:-1;;;8613:45:29;;;;;;;:::i;:::-;8677:25;;;;:11;:25;;;;;:30;;;;;;;:35;;8669:60;;;;-1:-1:-1;;;8669:60:29;;;;;;;:::i;:::-;-1:-1:-1;8747:25:29;;;;:11;:25;;;;;:30;;;;;;8531:254::o;5527:328:11:-;5702:41;682:10:4;5735:7:11;5702:18;:41::i;:::-;5694:103;;;;-1:-1:-1;;;5694:103:11;;;;;;;:::i;:::-;5808:39;5822:4;5828:2;5832:7;5841:5;5808:13;:39::i;:::-;5527:328;;;;:::o;13654:423:29:-;13719:13;13753:16;13761:7;13753;:16::i;:::-;13745:76;;;;-1:-1:-1;;;13745:76:29;;37833:2:41;13745:76:29;;;37815:21:41;37872:2;37852:18;;;37845:30;37911:34;37891:18;;;37884:62;-1:-1:-1;;;37962:18:41;;;37955:45;38017:19;;13745:76:29;37631:411:41;13745:76:29;13832:28;13875:24;;;:15;:24;;;;;;;;;13863:37;;:11;:37;;;;;;13832:68;;;;;;;;;;;;13863:37;;13832:68;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;13832:68:29;;;-1:-1:-1;;13832:68:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13832:68:29;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;13832:68:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;13832:68:29;;;-1:-1:-1;;13832:68:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;13832:68:29;;;;;;;;;;;;;;;;-1:-1:-1;;;13832:68:29;;;-1:-1:-1;;13832:68:29;;;;;;-1:-1:-1;;;;;13832:68:29;;;;;;13935:23;;;13976:21;;13832:68;;-1:-1:-1;13935:23:29;13976:93;;;;;;;;;;;;;;;;;14028:7;14037:25;14054:7;14037:16;:25::i;:::-;14011:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;13976:93;13969:100;13654:423;-1:-1:-1;;;;13654:423:29:o;1679:134:1:-;1751:7;1778:18;;;:12;:18;;;;;:27;;:25;:27::i;8793:115:29:-;8861:39;8873:12;682:10:4;8916:1284:29;:::i;2194:201:1:-;2311:31;2328:4;2334:7;2311:16;:31::i;2664:212:29:-;2745:6;;-1:-1:-1;;;;;2745:6:29;682:10:4;-1:-1:-1;;;;;2729:22:29;;2721:45;;;;-1:-1:-1;;;2721:45:29;;;;;;;:::i;:::-;-1:-1:-1;;;;;2785:24:29;;2777:56;;;;-1:-1:-1;;;2777:56:29;;30780:2:41;2777:56:29;;;30762:21:41;30819:2;30799:18;;;30792:30;-1:-1:-1;;;30838:18:41;;;30831:49;30897:18;;2777:56:29;30578:343:41;2777:56:29;2844:6;:17;;-1:-1:-1;;;;;;2844:17:29;-1:-1:-1;;;;;2844:17:29;;;;;;;;;;2664:212::o;2389:97::-;2433:13;2466:12;2459:19;;;;;:::i;4630:164:11:-;-1:-1:-1;;;;;4751:25:11;;;4727:4;4751:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;4630:164::o;8916:1284:29:-;682:10:4;1066:20:2;1114:8;9004:68:29;;;;-1:-1:-1;;;9004:68:29;;25617:2:41;9004:68:29;;;25599:21:41;25656:2;25636:18;;;25629:30;25695:31;25675:18;;;25668:59;25744:18;;9004:68:29;25415:353:41;9004:68:29;9120:25;;;;:11;:25;;;;;:36;;;9107:9;:49;;9099:97;;;;-1:-1:-1;;;9099:97:29;;34857:2:41;9099:97:29;;;34839:21:41;34896:2;34876:18;;;34869:30;34935:34;34915:18;;;34908:62;-1:-1:-1;;;34986:18:41;;;34979:33;35029:19;;9099:97:29;34655:399:41;9099:97:29;9217:28;9248:27;9262:12;9248:13;:27::i;:::-;9217:58;;9288:18;9328:10;:23;;;:58;;;;;9385:1;9355:10;:20;;;:27;:31;9328:58;9325:365;;;9407:6;9403:223;9423:10;:20;;;:27;9419:1;:31;9403:223;;;9495:10;:20;;;9516:1;9495:23;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;9479:39:29;:12;682:10:4;;602:98;9479:12:29;-1:-1:-1;;;;;9479:39:29;;9476:135;;;9559:4;9543:20;;9586:5;;9476:135;9452:3;;;;:::i;:::-;;;;9403:223;;;;9325:365;;;-1:-1:-1;9674:4:29;9325:365;9708:13;9700:43;;;;-1:-1:-1;;;9700:43:29;;41203:2:41;9700:43:29;;;41185:21:41;41242:2;41222:18;;;41215:30;-1:-1:-1;;;41261:18:41;;;41254:47;41318:18;;9700:43:29;41001:341:41;9700:43:29;9756;9761:12;682:10:4;9789:9:29;9756:4;:43::i;:::-;9820:14;:21;9812:56;;;;-1:-1:-1;;;9812:56:29;;31887:2:41;9812:56:29;;;31869:21:41;31926:2;31906:18;;;31899:30;-1:-1:-1;;;31945:18:41;;;31938:48;32003:18;;9812:56:29;31685:342:41;9812:56:29;9909:14;:21;9887:11;:18;:43;9879:76;;;;-1:-1:-1;;;9879:76:29;;;;;;;:::i;:::-;10011:1;9974:10;:27;;;:34;:38;9966:71;;;;-1:-1:-1;;;9966:71:29;;43436:2:41;9966:71:29;;;43418:21:41;43475:2;43455:18;;;43448:30;-1:-1:-1;;;43494:18:41;;;43487:50;43554:18;;9966:71:29;43234:344:41;9966:71:29;10091:10;:27;;;:34;10056:10;:24;;;:31;:69;10048:104;;;;-1:-1:-1;;;10048:104:29;;42669:2:41;10048:104:29;;;42651:21:41;42708:2;42688:18;;;42681:30;-1:-1:-1;;;42727:18:41;;;42720:52;42789:18;;10048:104:29;42467:346:41;10048:104:29;10165:27;10181:10;10165:15;:27::i;5784:480::-;5875:6;;-1:-1:-1;;;;;5875:6:29;682:10:4;-1:-1:-1;;;;;5859:22:29;;5851:45;;;;-1:-1:-1;;;5851:45:29;;;;;;;:::i;:::-;5907:9;5919:30;5940:8;5919:20;:30::i;:::-;5907:42;;-1:-1:-1;;5968:5:29;:10;5960:40;;;;-1:-1:-1;;;5960:40:29;;31541:2:41;5960:40:29;;;31523:21:41;31580:2;31560:18;;;31553:30;-1:-1:-1;;;31599:18:41;;;31592:47;31656:18;;5960:40:29;31339:341:41;5960:40:29;6038:9;:16;6023:31;;6019:44;;6056:7;5784:480;:::o;6019:44::-;6092:5;6073:116;6104:9;:16;:20;;6123:1;;6104:20;:::i;:::-;6100:1;:24;6073:116;;;6161:9;6171:5;:1;6175;6171:5;:::i;:::-;6161:16;;;;;;;;:::i;:::-;;;;;;;;;;;6146:9;:12;;-1:-1:-1;;;;;6161:16:29;;;;6156:1;;6146:12;;;;;;:::i;:::-;;;;;;;;;;:31;;-1:-1:-1;;;;;;6146:31:29;-1:-1:-1;;;;;6146:31:29;;;;;;;;;;6126:3;;;;:::i;:::-;;;;6073:116;;;;6199:9;:15;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;6199:15:29;;;;;-1:-1:-1;;;;;;6199:15:29;;;;;;;;;-1:-1:-1;;;;;6227:21:29;;;;;;:11;:21;;;-1:-1:-1;6227:21:29;;;:29;;-1:-1:-1;;6227:29:29;;;5784:480::o;15462:281::-;15520:35;;:::i;:::-;15576:27;;:::i;:::-;15614:25;;:::i;:::-;15674:60;;;;;;;;-1:-1:-1;15674:60:29;;;;;;;;;;15701:18;;;:9;:18;;;;;;;;;;15674:60;;;;;;;;;;;;;;;;;;;;;15657:78;;15665:7;;15657;:78::i;15159:180::-;15246:35;;:::i;:::-;15309:22;15317:7;15326:4;15309:7;:22::i;2884:422::-;3025:6;;-1:-1:-1;;;;;3025:6:29;682:10:4;-1:-1:-1;;;;;3009:22:29;;3001:45;;;;-1:-1:-1;;;3001:45:29;;;;;;;:::i;:::-;3075:1;3065:7;:11;;;:29;;;;;3091:3;3080:7;:14;;;;3065:29;3057:63;;;;-1:-1:-1;;;3057:63:29;;42319:2:41;3057:63:29;;;42301:21:41;42358:2;42338:18;;;42331:30;-1:-1:-1;;;42377:18:41;;;42370:51;42438:18;;3057:63:29;42117:345:41;3057:63:29;3156:9;:16;3139:6;:13;:33;3131:66;;;;-1:-1:-1;;;3131:66:29;;;;;;;:::i;:::-;3208:12;:22;;-1:-1:-1;;3208:22:29;;;;;;;3241:26;;;;:14;;:26;;;;;:::i;:::-;-1:-1:-1;3278:20:29;;;;:11;;:20;;;;;:::i;933:224:13:-;1035:4;-1:-1:-1;;;;;;1059:50:13;;-1:-1:-1;;;1059:50:13;;:90;;;1113:36;1137:11;1113:23;:36::i;7365:127:11:-;7430:4;7454:16;;;:7;:16;;;;;;-1:-1:-1;;;;;7454:16:11;:30;;;7365:127::o;11347:174::-;11422:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;11422:29:11;-1:-1:-1;;;;;11422:29:11;;;;;;;;:24;;11476:23;11422:24;11476:14;:23::i;:::-;-1:-1:-1;;;;;11467:46:11;;;;;;;;;;;11347:174;;:::o;7659:348::-;7752:4;7777:16;7785:7;7777;:16::i;:::-;7769:73;;;;-1:-1:-1;;;7769:73:11;;31128:2:41;7769:73:11;;;31110:21:41;31167:2;31147:18;;;31140:30;31206:34;31186:18;;;31179:62;-1:-1:-1;;;31257:18:41;;;31250:42;31309:19;;7769:73:11;30926:408:41;7769:73:11;7853:13;7869:23;7884:7;7869:14;:23::i;:::-;7853:39;;7922:5;-1:-1:-1;;;;;7911:16:11;:7;-1:-1:-1;;;;;7911:16:11;;:51;;;;7955:7;-1:-1:-1;;;;;7931:31:11;:20;7943:7;7931:11;:20::i;:::-;-1:-1:-1;;;;;7931:31:11;;7911:51;:87;;;;7966:32;7983:5;7990:7;7966:16;:32::i;10651:578::-;10810:4;-1:-1:-1;;;;;10783:31:11;:23;10798:7;10783:14;:23::i;:::-;-1:-1:-1;;;;;10783:31:11;;10775:85;;;;-1:-1:-1;;;10775:85:11;;37423:2:41;10775:85:11;;;37405:21:41;37462:2;37442:18;;;37435:30;37501:34;37481:18;;;37474:62;-1:-1:-1;;;37552:18:41;;;37545:39;37601:19;;10775:85:11;37221:405:41;10775:85:11;-1:-1:-1;;;;;10879:16:11;;10871:65;;;;-1:-1:-1;;;10871:65:11;;30021:2:41;10871:65:11;;;30003:21:41;30060:2;30040:18;;;30033:30;30099:34;30079:18;;;30072:62;-1:-1:-1;;;30150:18:41;;;30143:34;30194:19;;10871:65:11;29819:400:41;10871:65:11;10949:39;10970:4;10976:2;10980:7;10949:20;:39::i;:::-;11053:29;11070:1;11074:7;11053:8;:29::i;:::-;-1:-1:-1;;;;;11095:15:11;;;;;;:9;:15;;;;;:20;;11114:1;;11095:15;:20;;11114:1;;11095:20;:::i;:::-;;;;-1:-1:-1;;;;;;;11126:13:11;;;;;;:9;:13;;;;;:18;;11143:1;;11126:13;:18;;11143:1;;11126:18;:::i;:::-;;;;-1:-1:-1;;11155:16:11;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;11155:21:11;-1:-1:-1;;;;;11155:21:11;;;;;;;;;11194:27;;11155:16;;11194:27;;;;-1:-1:-1;;;;;;;;;;;11194:27:11;;10651:578;;;:::o;4373:147:0:-;4456:18;4469:4;4456:12;:18::i;:::-;2455:30;2466:4;682:10:4;2455::0;:30::i;:::-;4487:25:::1;4498:4;4504:7;4487:10;:25::i;7767:152:16:-:0;7837:4;7861:50;7866:3;-1:-1:-1;;;;;7886:23:16;;7861:4;:50::i;2129:120:34:-;1141:7;;;;1665:41;;;;-1:-1:-1;;;1665:41:34;;26748:2:41;1665:41:34;;;26730:21:41;26787:2;26767:18;;;26760:30;-1:-1:-1;;;26806:18:41;;;26799:50;26866:18;;1665:41:34;26546:344:41;1665:41:34;2188:7:::1;:15:::0;;-1:-1:-1;;2188:15:34::1;::::0;;2219:22:::1;682:10:4::0;2228:12:34::1;2219:22;;;;;;:::i;:::-;;;;;;;;2129:120::o:0;1870:118::-;1141:7;;;;1395:9;1387:38;;;;-1:-1:-1;;;1387:38:34;;32234:2:41;1387:38:34;;;32216:21:41;32273:2;32253:18;;;32246:30;-1:-1:-1;;;32292:18:41;;;32285:46;32348:18;;1387:38:34;32032:340:41;1387:38:34;1930:7:::1;:14:::0;;-1:-1:-1;;1930:14:34::1;1940:4;1930:14;::::0;;1960:20:::1;1967:12;682:10:4::0;;602:98;5421:218:0;-1:-1:-1;;;;;5517:23:0;;682:10:4;5517:23:0;5509:83;;;;-1:-1:-1;;;5509:83:0;;43020:2:41;5509:83:0;;;43002:21:41;43059:2;43039:18;;;43032:30;43098:34;43078:18;;;43071:62;-1:-1:-1;;;43149:18:41;;;43142:45;43204:19;;5509:83:0;42818:411:41;5509:83:0;5605:26;5617:4;5623:7;5605:11;:26::i;8095:158:16:-;8168:4;8192:53;8200:3;-1:-1:-1;;;;;8220:23:16;;8192:7;:53::i;9954:360:11:-;10014:13;10030:23;10045:7;10030:14;:23::i;:::-;10014:39;;10066:48;10087:5;10102:1;10106:7;10066:20;:48::i;:::-;10155:29;10172:1;10176:7;10155:8;:29::i;:::-;-1:-1:-1;;;;;10197:16:11;;;;;;:9;:16;;;;;:21;;10217:1;;10197:16;:21;;10217:1;;10197:21;:::i;:::-;;;;-1:-1:-1;;10236:16:11;;;;:7;:16;;;;;;10229:23;;-1:-1:-1;;;;;;10229:23:11;;;10270:36;10244:7;;10236:16;-1:-1:-1;;;;;10270:36:11;;;-1:-1:-1;;;;;;;;;;;10270:36:11;10236:16;;10270:36;10003:311;9954:360;:::o;9063:158:16:-;9137:7;9188:22;9192:3;9204:5;9188:3;:22::i;6737:315:11:-;6894:28;6904:4;6910:2;6914:7;6894:9;:28::i;:::-;6941:48;6964:4;6970:2;6974:7;6983:5;6941:22;:48::i;:::-;6933:111;;;;-1:-1:-1;;;6933:111:11;;;;;;;:::i;288:723:38:-;344:13;565:10;561:53;;-1:-1:-1;;592:10:38;;;;;;;;;;;;-1:-1:-1;;;592:10:38;;;;;288:723::o;561:53::-;639:5;624:12;680:78;687:9;;680:78;;713:8;;;;:::i;:::-;;-1:-1:-1;736:10:38;;-1:-1:-1;744:2:38;736:10;;:::i;:::-;;;680:78;;;768:19;800:6;-1:-1:-1;;;;;790:17:38;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;790:17:38;;768:39;;818:154;825:10;;818:154;;852:11;862:1;852:11;;:::i;:::-;;-1:-1:-1;921:10:38;929:2;921:5;:10;:::i;:::-;908:24;;:2;:24;:::i;:::-;895:39;;878:6;885;878:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;878:56:38;;;;;;;;-1:-1:-1;949:11:38;958:2;949:11;;:::i;:::-;;;818:154;;8592:117:16;8655:7;8682:19;8690:3;4076:18;;3993:109;4765:149:0;4849:18;4862:4;4849:12;:18::i;:::-;2455:30;2466:4;682:10:4;2455::0;:30::i;:::-;4880:26:::1;4892:4;4898:7;4880:11;:26::i;10208:1436:29:-:0;10301:28;10332:27;10346:12;10332:13;:27::i;:::-;10378:25;;;;:11;:25;;;;;:30;;;10301:58;;-1:-1:-1;10378:30:29;;;;:35;;10370:60;;;;-1:-1:-1;;;10370:60:29;;;;;;;:::i;:::-;10449:10;:17;;;10441:49;;;;-1:-1:-1;;;10441:49:29;;38249:2:41;10441:49:29;;;38231:21:41;38288:2;38268:18;;;38261:30;-1:-1:-1;;;38307:18:41;;;38300:49;38366:18;;10441:49:29;38047:343:41;10441:49:29;10542:20;;;;10517:17;;;;:21;;10537:1;10517:21;:::i;:::-;:45;;10509:75;;;;-1:-1:-1;;;10509:75:29;;29336:2:41;10509:75:29;;;29318:21:41;29375:2;29355:18;;;29348:30;-1:-1:-1;;;29394:18:41;;;29387:47;29451:18;;10509:75:29;29134:341:41;10509:75:29;10603:28;;;;:33;;:100;;-1:-1:-1;10675:28:29;;;;10640:24;;;;:10;:24;;;;;;;;-1:-1:-1;;;;;10640:32:29;;;;;;;;;;:63;10603:100;10595:137;;;;-1:-1:-1;;;10595:137:29;;41549:2:41;10595:137:29;;;41531:21:41;41588:2;41568:18;;;41561:30;-1:-1:-1;;;41607:18:41;;;41600:54;41671:18;;10595:137:29;41347:348:41;10595:137:29;10753:19;10775:11;;10789:1;10775:15;;;;:::i;:::-;10753:37;;10801:10;10856;:15;;;10873:12;10887;682:10:4;;602:98;10887:12:29;10839:85;;21480:1:41;21469:21;;;;21464:3;21460:31;10839:85:29;;;21448:44:41;21508:11;;;21501:27;;;;-1:-1:-1;;;;;;21559:2:41;21604:15;;;21600:24;;21586:12;;;21579:46;21659:15;;;;21655:24;21641:12;;;21634:46;21696:12;;;21689:28;;;21733:13;;10839:85:29;;;-1:-1:-1;;10839:85:29;;;;;;;;;10829:96;;10839:85;10829:96;;;;10949:11;:25;;;10824:102;10985:30;;;:16;:30;;;;;:48;;;;;;;;;;;;;;;;;;11060:11;;11044:28;;:15;:28;;;;;:43;;;11100:29;;;:15;:29;;;;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11161:11;;11151:22;;:9;:22;;;;;;;:29;;-1:-1:-1;;11151:29:29;;;;;;;11234:17;;;;10829:96;;-1:-1:-1;11234:21:29;;;:::i;:::-;11199:25;;;;:11;:25;;;;;;;;:32;;:56;;;;11304:10;:24;;;;;-1:-1:-1;;;;;11304:35:29;;;;;;;;:39;;11342:1;11304:39;:::i;:::-;11266:24;;;;:10;:24;;;;;;;;-1:-1:-1;;;;;11266:35:29;;;;;;;;;:77;11356:33;11291:9;11377:11;11356:9;:33::i;:::-;11449:9;-1:-1:-1;;;;;11405:102:29;11436:11;11422:12;11405:102;11460:10;:17;;;11479:10;:21;;;11502:4;11405:102;;;;;;;48230:25:41;;;48286:2;48271:18;;48264:34;;;;48345:1;48334:21;48329:2;48314:18;;48307:49;48218:2;48203:18;;48032:330;11405:102:29;;;;;;;;11523:18;;;;:22;11520:117;;11580:10;:18;;;11565:11;;:33;11562:63;;11617:8;:6;:8::i;:::-;10288:1356;;;10208:1436;;;:::o;11652:811::-;11730:9;:13;11726:730;;11780:21;;;;11762:15;11832:22;11780:21;11832:9;:22;:::i;:::-;11816:38;-1:-1:-1;11873:12:29;;11869:93;;11906:40;;682:10:4;;11906:40:29;;;;;11937:8;;11906:40;;;;11937:8;682:10:4;11906:40:29;;;;;;;;;;;;;;;;;;;;;11869:93;12012:21;;;;11997:12;;11978:16;;12036:3;;11997:36;;12012:21;11997:12;;:36;:::i;:::-;:42;;;;:::i;:::-;11978:61;;12062:17;12082:58;12099:11;12112:14;12082:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12082:58:29;;;;;;;;;;;;;;;;;;;;;12128:11;12082:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:16;:58::i;:::-;12062:78;-1:-1:-1;12167:18:29;12188:25;12062:78;12188:10;:25;:::i;:::-;12167:46;;12228:19;12250:86;12267:13;12282:10;:27;;;12311:10;:24;;;12250:16;:86::i;:::-;12228:108;-1:-1:-1;12228:108:29;12361:25;12374:12;12361:10;:25;:::i;:::-;:42;;;;:::i;:::-;:47;12353:79;;;;-1:-1:-1;;;12353:79:29;;36313:2:41;12353:79:29;;;36295:21:41;36352:2;36332:18;;;36325:30;-1:-1:-1;;;36371:18:41;;;36364:49;36430:18;;12353:79:29;36111:343:41;12353:79:29;11745:711;;;;;;11652:811;:::o;6272:246::-;6341:3;;6357:134;6380:9;:16;6372:25;;6357:134;;;6444:8;-1:-1:-1;;;;;6422:30:29;:9;6437:1;6422:18;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;6422:18:29;:30;6419:60;;;6478:1;6272:246;-1:-1:-1;;6272:246:29:o;6419:60::-;6399:3;;;;:::i;:::-;;;;6357:134;;;-1:-1:-1;;;6508:2:29;6272:246;-1:-1:-1;;6272:246:29:o;14627:383::-;14714:35;;:::i;:::-;14786:6;;-1:-1:-1;;;;;14786:6:29;682:10:4;-1:-1:-1;;;;;14770:22:29;;:58;;;-1:-1:-1;14796:32:29;682:10:4;14820:7:29;14796:9;:32::i;:::-;14762:84;;;;-1:-1:-1;;;14762:84:29;;;;;;;:::i;:::-;14878:18;;;;:9;:18;;;;;;;;14865:9;;;;14878:18;;;;14865:31;;;;;14857:56;;;;-1:-1:-1;;;14857:56:29;;;;;;;:::i;:::-;14941:37;14953:24;;;:15;:24;;;;;;;;;14941:37;;:11;:37;;;;;;;:47;;;14931:71;;-1:-1:-1;;;14931:71:29;;-1:-1:-1;;;;;14941:47:29;;;;14931:65;;:71;;14997:4;;14931:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;1467:305:11:-;1569:4;-1:-1:-1;;;;;;1606:40:11;;-1:-1:-1;;;1606:40:11;;:105;;-1:-1:-1;;;;;;;1663:48:11;;-1:-1:-1;;;1663:48:11;1606:105;:158;;;;1728:36;1752:11;1728:23;:36::i;4419:379:29:-;4606:45;4633:4;4639:2;4643:7;4606:26;:45::i;:::-;682:10:4;4674:25:29;;;;:11;:25;;;;;;;;;:74;;-1:-1:-1;4704:37:29;4716:24;;;:15;:24;;;;;;;;;4704:37;;:11;:37;;;;;:44;;;;;4703:45;4674:74;4666:104;;;;-1:-1:-1;;;4666:104:29;;35967:2:41;4666:104:29;;;35949:21:41;36006:2;35986:18;;;35979:30;-1:-1:-1;;;36025:18:41;;;36018:47;36082:18;;4666:104:29;35765:341:41;3302:497:0;3383:22;3391:4;3397:7;3383;:22::i;:::-;3378:414;;3571:41;3599:7;-1:-1:-1;;;;;3571:41:0;3609:2;3571:19;:41::i;:::-;3685:38;3713:4;3720:2;3685:19;:38::i;:::-;3476:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;3476:270:0;;;;;;;;;;-1:-1:-1;;;3422:358:0;;;;;;;:::i;6725:229::-;6800:22;6808:4;6814:7;6800;:22::i;:::-;6795:152;;6839:6;:12;;;;;;;;;;;-1:-1:-1;;;;;6839:29:0;;;;;;;;;:36;;-1:-1:-1;;6839:36:0;6871:4;6839:36;;;6922:12;682:10:4;;602:98;6922:12:0;-1:-1:-1;;;;;6895:40:0;6913:7;-1:-1:-1;;;;;6895:40:0;6907:4;6895:40;;;;;;;;;;6725:229;;:::o;1682:414:16:-;1745:4;3875:19;;;:12;;;:19;;;;;;1762:327;;-1:-1:-1;1805:23:16;;;;;;;;:11;:23;;;;;;;;;;;;;1988:18;;1966:19;;;:12;;;:19;;;;;;:40;;;;2021:11;;1762:327;-1:-1:-1;2072:5:16;2065:12;;6962:230:0;7037:22;7045:4;7051:7;7037;:22::i;:::-;7033:152;;;7108:5;7076:12;;;;;;;;;;;-1:-1:-1;;;;;7076:29:0;;;;;;;;;;:37;;-1:-1:-1;;7076:37:0;;;7133:40;682:10:4;;7076:12:0;;7133:40;;7108:5;7133:40;6962:230;;:::o;2272:1420:16:-;2338:4;2477:19;;;:12;;;:19;;;;;;2513:15;;2509:1176;;2888:21;2912:14;2925:1;2912:10;:14;:::i;:::-;2961:18;;2888:38;;-1:-1:-1;2941:17:16;;2961:22;;2982:1;;2961:22;:::i;:::-;2941:42;;3017:13;3004:9;:26;3000:405;;3051:17;3071:3;:11;;3083:9;3071:22;;;;;;;;:::i;:::-;;;;;;;;;3051:42;;3225:9;3196:3;:11;;3208:13;3196:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;3310:23;;;:12;;;:23;;;;;:36;;;3000:405;3486:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3581:3;:12;;:19;3594:5;3581:19;;;;;;;;;;;3574:26;;;3624:4;3617:11;;;;;;;2509:1176;3668:5;3661:12;;;;;2509:1176;2344:1348;2272:1420;;;;:::o;4456:120::-;4523:7;4550:3;:11;;4562:5;4550:18;;;;;;;;:::i;:::-;;;;;;;;;4543:25;;4456:120;;;;:::o;12086:799:11:-;12241:4;-1:-1:-1;;;;;12262:13:11;;1066:20:2;1114:8;12258:620:11;;12298:72;;-1:-1:-1;;;12298:72:11;;-1:-1:-1;;;;;12298:36:11;;;;;:72;;682:10:4;;12349:4:11;;12355:7;;12364:5;;12298:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12298:72:11;;;;;;;;-1:-1:-1;;12298:72:11;;;;;;;;;;;;:::i;:::-;;;12294:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12540:13:11;;12536:272;;12583:60;;-1:-1:-1;;;12583:60:11;;;;;;;:::i;12536:272::-;12758:6;12752:13;12743:6;12739:2;12735:15;12728:38;12294:529;-1:-1:-1;;;;;;12421:51:11;-1:-1:-1;;;12421:51:11;;-1:-1:-1;12414:58:11;;12258:620;-1:-1:-1;12862:4:11;12086:799;;;;;;:::o;8349:110::-;8425:26;8435:2;8439:7;8425:26;;;;;;;;;;;;:9;:26::i;12471:809:29:-;12606:20;12678:21;;12674:504;;12732:9;12764:7;12760:92;12781:6;:13;12777:1;:17;;;12760:92;;;12827:6;12834:1;12827:9;;;;;;;;;;:::i;:::-;;;;;;;12820:16;;;;;:::i;:::-;;-1:-1:-1;12796:3:29;;;;:::i;:::-;;;;12760:92;;;;12874:3;:10;;12881:3;12874:10;12866:46;;;;-1:-1:-1;;;12866:46:29;;43785:2:41;12866:46:29;;;43767:21:41;43824:2;43804:18;;;43797:30;-1:-1:-1;;;43843:18:41;;;43836:53;43906:18;;12866:46:29;43583:347:41;12866:46:29;12933:7;12929:238;12950:9;:16;12946:1;:20;;;12929:238;;;12992:17;13044:3;13024:17;13012:6;13019:1;13012:9;;;;;;;;;;:::i;:::-;;;;;;;:29;;;;;;:::i;:::-;:35;;;;:::i;:::-;12992:55;;13066:9;13076:1;13066:12;;;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;13066:21:29;:35;13088:12;13066:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13120:31:29;13139:12;13120:31;;:::i;:::-;;;12973:194;12968:3;;;;;:::i;:::-;;;;12929:238;;;;12701:477;12674:504;13196:35;13216:15;13196:17;:35;:::i;:::-;:40;13188:84;;;;-1:-1:-1;;;13188:84:29;;27788:2:41;13188:84:29;;;27770:21:41;27827:2;27807:18;;;27800:30;27866:33;27846:18;;;27839:61;27917:18;;13188:84:29;27586:355:41;547:214:1;632:4;-1:-1:-1;;;;;;656:57:1;;-1:-1:-1;;;656:57:1;;:97;;;717:36;741:11;717:23;:36::i;595:275:14:-;739:45;766:4;772:2;776:7;739:26;:45::i;:::-;1141:7:34;;;;805:9:14;797:65;;;;-1:-1:-1;;;797:65:14;;26336:2:41;797:65:14;;;26318:21:41;26375:2;26355:18;;;26348:30;26414:34;26394:18;;;26387:62;-1:-1:-1;;;26465:18:41;;;26458:41;26516:19;;797:65:14;26134:407:41;1589:451:38;1664:13;1690:19;1722:10;1726:6;1722:1;:10;:::i;:::-;:14;;1735:1;1722:14;:::i;:::-;-1:-1:-1;;;;;1712:25:38;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1712:25:38;;1690:47;;-1:-1:-1;;;1748:6:38;1755:1;1748:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1748:15:38;;;;;;;;;-1:-1:-1;;;1774:6:38;1781:1;1774:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1774:15:38;;;;;;;;-1:-1:-1;1805:9:38;1817:10;1821:6;1817:1;:10;:::i;:::-;:14;;1830:1;1817:14;:::i;:::-;1805:26;;1800:135;1837:1;1833;:5;1800:135;;;-1:-1:-1;;;1885:5:38;1893:3;1885:11;1872:25;;;;;;;:::i;:::-;;;;1860:6;1867:1;1860:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;1860:37:38;;;;;;;;-1:-1:-1;1922:1:38;1912:11;;;;;1840:3;;;:::i;:::-;;;1800:135;;;-1:-1:-1;1953:10:38;;1945:55;;;;-1:-1:-1;;;1945:55:38;;25975:2:41;1945:55:38;;;25957:21:41;;;25994:18;;;25987:30;26053:34;26033:18;;;26026:62;26105:18;;1945:55:38;25773:356:41;8686:321:11;8816:18;8822:2;8826:7;8816:5;:18::i;:::-;8867:54;8898:1;8902:2;8906:7;8915:5;8867:22;:54::i;:::-;8845:154;;;;-1:-1:-1;;;8845:154:11;;;;;;;:::i;2577:204:0:-;2662:4;-1:-1:-1;;;;;;2686:47:0;;-1:-1:-1;;;2686:47:0;;:87;;-1:-1:-1;;;;;;;;;;894:40:7;;;2737:36:0;785:157:7;2609:589:13;-1:-1:-1;;;;;2815:18:13;;2811:187;;2850:40;2882:7;4025:10;:17;;3998:24;;;;:15;:24;;;;;:44;;;4053:24;;;;;;;;;;;;3921:164;2850:40;2811:187;;;2920:2;-1:-1:-1;;;;;2912:10:13;:4;-1:-1:-1;;;;;2912:10:13;;2908:90;;2939:47;2972:4;2978:7;2939:32;:47::i;:::-;-1:-1:-1;;;;;3012:16:13;;3008:183;;3045:45;3082:7;3045:36;:45::i;3008:183::-;3118:4;-1:-1:-1;;;;;3112:10:13;:2;-1:-1:-1;;;;;3112:10:13;;3108:83;;3139:40;3167:2;3171:7;3139:27;:40::i;9343:382:11:-;-1:-1:-1;;;;;9423:16:11;;9415:61;;;;-1:-1:-1;;;9415:61:11;;35606:2:41;9415:61:11;;;35588:21:41;;;35625:18;;;35618:30;35684:34;35664:18;;;35657:62;35736:18;;9415:61:11;35404:356:41;9415:61:11;9496:16;9504:7;9496;:16::i;:::-;9495:17;9487:58;;;;-1:-1:-1;;;9487:58:11;;28979:2:41;9487:58:11;;;28961:21:41;29018:2;28998:18;;;28991:30;-1:-1:-1;;;29037:18:41;;;29030:58;29105:18;;9487:58:11;28777:352:41;9487:58:11;9558:45;9587:1;9591:2;9595:7;9558:20;:45::i;:::-;-1:-1:-1;;;;;9616:13:11;;;;;;:9;:13;;;;;:18;;9633:1;;9616:13;:18;;9633:1;;9616:18;:::i;:::-;;;;-1:-1:-1;;9645:16:11;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;9645:21:11;-1:-1:-1;;;;;9645:21:11;;;;;;;;9684:33;;9645:16;;;-1:-1:-1;;;;;;;;;;;9684:33:11;9645:16;;9684:33;9343:382;;:::o;4712:988:13:-;4978:22;5028:1;5003:22;5020:4;5003:16;:22::i;:::-;:26;;;;:::i;:::-;5040:18;5061:26;;;:17;:26;;;;;;4978:51;;-1:-1:-1;5194:28:13;;;5190:328;;-1:-1:-1;;;;;5261:18:13;;5239:19;5261:18;;;:12;:18;;;;;;;;:34;;;;;;;;;5312:30;;;;;;:44;;;5429:30;;:17;:30;;;;;:43;;;5190:328;-1:-1:-1;5614:26:13;;;;:17;:26;;;;;;;;5607:33;;;-1:-1:-1;;;;;5658:18:13;;;;;:12;:18;;;;;:34;;;;;;;5651:41;4712:988::o;5995:1079::-;6273:10;:17;6248:22;;6273:21;;6293:1;;6273:21;:::i;:::-;6305:18;6326:24;;;:15;:24;;;;;;6699:10;:26;;6248:46;;-1:-1:-1;6326:24:13;;6248:46;;6699:26;;;;;;:::i;:::-;;;;;;;;;6677:48;;6763:11;6738:10;6749;6738:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;6843:28;;;:15;:28;;;;;;;:41;;;7015:24;;;;;7008:31;7050:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;6066:1008;;;5995:1079;:::o;3499:221::-;3584:14;3601:20;3618:2;3601:16;:20::i;:::-;-1:-1:-1;;;;;3632:16:13;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;3677:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;3499:221:13:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::i;14:336:41:-;78:5;107:52;123:35;151:6;123:35;:::i;:::-;107:52;:::i;:::-;98:61;;182:6;175:5;168:21;222:3;213:6;208:3;204:16;201:25;198:45;;;239:1;236;229:12;198:45;288:6;283:3;276:4;269:5;265:16;252:43;342:1;335:4;326:6;319:5;315:18;311:29;304:40;14:336;;;;;:::o;355:134::-;423:20;;452:31;423:20;452:31;:::i;494:748::-;548:5;601:3;594:4;586:6;582:17;578:27;568:55;;619:1;616;609:12;568:55;655:6;642:20;681:4;705:60;721:43;761:2;721:43;:::i;705:60::-;787:3;811:2;806:3;799:15;839:2;834:3;830:12;823:19;;874:2;866:6;862:15;926:3;921:2;915;912:1;908:10;900:6;896:23;892:32;889:41;886:61;;;943:1;940;933:12;886:61;965:1;975:238;989:2;986:1;983:9;975:238;;;1060:3;1047:17;1077:31;1102:5;1077:31;:::i;:::-;1121:18;;1159:12;;;;1191;;;;1007:1;1000:9;975:238;;;-1:-1:-1;1231:5:41;;494:748;-1:-1:-1;;;;;;;494:748:41:o;1247:756::-;1309:5;1362:3;1355:4;1347:6;1343:17;1339:27;1329:55;;1380:1;1377;1370:12;1329:55;1416:6;1403:20;1442:4;1466:60;1482:43;1522:2;1482:43;:::i;1466:60::-;1548:3;1572:2;1567:3;1560:15;1600:2;1595:3;1591:12;1584:19;;1635:2;1627:6;1623:15;1687:3;1682:2;1676;1673:1;1669:10;1661:6;1657:23;1653:32;1650:41;1647:61;;;1704:1;1701;1694:12;1647:61;1726:1;1736:238;1750:2;1747:1;1744:9;1736:238;;;1821:3;1808:17;1838:31;1863:5;1838:31;:::i;:::-;1882:18;;1920:12;;;;1952;;;;1768:1;1761:9;1736:238;;2008:856;2061:5;2114:3;2107:4;2099:6;2095:17;2091:27;2081:55;;2132:1;2129;2122:12;2081:55;2168:6;2155:20;2194:4;2218:60;2234:43;2274:2;2234:43;:::i;2218:60::-;2300:3;2324:2;2319:3;2312:15;2352:2;2347:3;2343:12;2336:19;;2387:2;2379:6;2375:15;2439:3;2434:2;2428;2425:1;2421:10;2413:6;2409:23;2405:32;2402:41;2399:61;;;2456:1;2453;2446:12;2399:61;2478:1;2499;2509:326;2525:2;2520:3;2517:11;2509:326;;;2593:17;;-1:-1:-1;;;;;2626:35:41;;2623:55;;;2674:1;2671;2664:12;2623:55;2703:57;2756:3;2751:2;2737:11;2729:6;2725:24;2721:33;2703:57;:::i;:::-;2691:70;;-1:-1:-1;2781:12:41;;;;2813;;;;2547:1;2538:11;2509:326;;;-1:-1:-1;2853:5:41;;2008:856;-1:-1:-1;;;;;;;;2008:856:41:o;2869:744::-;2921:5;2974:3;2967:4;2959:6;2955:17;2951:27;2941:55;;2992:1;2989;2982:12;2941:55;3028:6;3015:20;3054:4;3078:60;3094:43;3134:2;3094:43;:::i;3078:60::-;3160:3;3184:2;3179:3;3172:15;3212:2;3207:3;3203:12;3196:19;;3247:2;3239:6;3235:15;3299:3;3294:2;3288;3285:1;3281:10;3273:6;3269:23;3265:32;3262:41;3259:61;;;3316:1;3313;3306:12;3259:61;3338:1;3348:236;3362:2;3359:1;3356:9;3348:236;;;3433:3;3420:17;3450:29;3473:5;3450:29;:::i;:::-;3492:18;;3530:12;;;;3562;;;;3380:1;3373:9;3348:236;;3618:160;3683:20;;3739:13;;3732:21;3722:32;;3712:60;;3768:1;3765;3758:12;3783:130;3849:20;;3878:29;3849:20;3878:29;:::i;3918:134::-;3995:13;;4017:29;3995:13;4017:29;:::i;4057:221::-;4100:5;4153:3;4146:4;4138:6;4134:17;4130:27;4120:55;;4171:1;4168;4161:12;4120:55;4193:79;4268:3;4259:6;4246:20;4239:4;4231:6;4227:17;4193:79;:::i;4283:2604::-;4340:5;4388:6;4376:9;4371:3;4367:19;4363:32;4360:52;;;4408:1;4405;4398:12;4360:52;4430:22;;:::i;:::-;4421:31;-1:-1:-1;4475:23:41;;-1:-1:-1;;;;;4547:14:41;;;4544:34;;;4574:1;4571;4564:12;4544:34;4601:46;4643:3;4634:6;4623:9;4619:22;4601:46;:::i;:::-;4594:5;4587:61;4701:2;4690:9;4686:18;4673:32;4657:48;;4730:2;4720:8;4717:16;4714:36;;;4746:1;4743;4736:12;4714:36;4782:48;4826:3;4815:8;4804:9;4800:24;4782:48;:::i;:::-;4777:2;4770:5;4766:14;4759:72;4884:2;4873:9;4869:18;4856:32;4840:48;;4913:2;4903:8;4900:16;4897:36;;;4929:1;4926;4919:12;4897:36;4965:48;5009:3;4998:8;4987:9;4983:24;4965:48;:::i;:::-;4960:2;4953:5;4949:14;4942:72;5067:2;5056:9;5052:18;5039:32;5023:48;;5096:2;5086:8;5083:16;5080:36;;;5112:1;5109;5102:12;5080:36;5148:48;5192:3;5181:8;5170:9;5166:24;5148:48;:::i;:::-;5143:2;5136:5;5132:14;5125:72;5258:3;5247:9;5243:19;5230:33;5224:3;5217:5;5213:15;5206:58;5297:37;5329:3;5318:9;5314:19;5297:37;:::i;:::-;5291:3;5280:15;;5273:62;5396:3;5381:19;;;5368:33;5351:15;;;5344:58;5463:3;5448:19;;;5435:33;5418:15;;;5411:58;5488:3;5536:18;;;5523:32;5507:14;;;5500:56;5575:3;5623:18;;;5610:32;5594:14;;;5587:56;5662:3;;-1:-1:-1;5697:35:41;5713:18;;;5697:35;:::i;:::-;5692:2;5685:5;5681:14;5674:59;5752:3;5742:13;;5787:35;5818:2;5807:9;5803:18;5787:35;:::i;:::-;5782:2;5775:5;5771:14;5764:59;5842:3;5832:13;;5898:2;5887:9;5883:18;5870:32;5927:2;5917:8;5914:16;5911:36;;;5943:1;5940;5933:12;5911:36;5979:58;6033:3;6022:8;6011:9;6007:24;5979:58;:::i;:::-;5974:2;5967:5;5963:14;5956:82;;6057:3;6047:13;;6113:2;6102:9;6098:18;6085:32;6142:2;6132:8;6129:16;6126:36;;;6158:1;6155;6148:12;6126:36;6194:67;6257:3;6246:8;6235:9;6231:24;6194:67;:::i;:::-;6189:2;6182:5;6178:14;6171:91;;6281:3;6271:13;;6337:2;6326:9;6322:18;6309:32;6366:2;6356:8;6353:16;6350:36;;;6382:1;6379;6372:12;6350:36;6418:57;6471:3;6460:8;6449:9;6445:24;6418:57;:::i;:::-;6413:2;6406:5;6402:14;6395:81;;6495:3;6485:13;;6530:35;6561:2;6550:9;6546:18;6530:35;:::i;:::-;6525:2;6518:5;6514:14;6507:59;6586:3;6575:14;;6642:3;6631:9;6627:19;6614:33;6672:2;6662:8;6659:16;6656:36;;;6688:1;6685;6678:12;6656:36;6725:59;6780:3;6769:8;6758:9;6754:24;6725:59;:::i;:::-;6719:3;6712:5;6708:15;6701:84;;;;6805:3;6841:39;6875:3;6864:9;6860:19;6841:39;:::i;:::-;6824:15;;;6817:64;6828:5;4283:2604;-1:-1:-1;;4283:2604:41:o;6892:868::-;6943:5;6991:6;6979:9;6974:3;6970:19;6966:32;6963:52;;;7011:1;7008;7001:12;6963:52;7033:22;;:::i;:::-;7024:31;;7100:3;7093:4;7082:9;7078:20;7074:30;7064:58;;7118:1;7115;7108:12;7064:58;7142:23;;:::i;:::-;7187:3;7210:9;7253:4;7242:9;7238:20;7277:3;7273:2;7270:11;7267:31;;;7294:1;7291;7284:12;7267:31;7316:1;7326:271;7340:4;7337:1;7334:11;7326:271;;;7415:3;7402:17;7432:31;7455:7;7432:31;:::i;:::-;7476:20;;7519:4;7543:12;;;;7575;;;;;7360:1;7353:9;7326:271;;;7330:3;7620:5;7613;7606:20;7660;7677:2;7660:20;:::i;:::-;7653:4;7646:5;7642:16;7635:46;;;;;7715:38;7747:4;7736:9;7732:20;7715:38;:::i;:::-;7708:4;7701:5;7697:16;7690:64;6892:868;;;;:::o;7765:894::-;7827:5;7875:6;7863:9;7858:3;7854:19;7850:32;7847:52;;;7895:1;7892;7885:12;7847:52;7917:22;;:::i;:::-;7908:31;;7984:3;7977:4;7966:9;7962:20;7958:30;7948:58;;8002:1;7999;7992:12;7948:58;8026:23;;:::i;:::-;8071:3;8094:9;8137:4;8126:9;8122:20;8161:3;8157:2;8154:11;8151:31;;;8178:1;8175;8168:12;8151:31;8200:1;8210:264;8224:4;8221:1;8218:11;8210:264;;;8292:3;8286:10;8309:31;8332:7;8309:31;:::i;:::-;8353:20;;8396:4;8420:12;;;;8452;;;;;8244:1;8237:9;8210:264;;;8214:3;8497:5;8490;8483:20;8537:31;8565:2;8537:31;:::i;:::-;8530:4;8523:5;8519:16;8512:57;;;;;8603:49;8646:4;8635:9;8631:20;8603:49;:::i;8664:247::-;8723:6;8776:2;8764:9;8755:7;8751:23;8747:32;8744:52;;;8792:1;8789;8782:12;8744:52;8831:9;8818:23;8850:31;8875:5;8850:31;:::i;8916:388::-;8984:6;8992;9045:2;9033:9;9024:7;9020:23;9016:32;9013:52;;;9061:1;9058;9051:12;9013:52;9100:9;9087:23;9119:31;9144:5;9119:31;:::i;:::-;9169:5;-1:-1:-1;9226:2:41;9211:18;;9198:32;9239:33;9198:32;9239:33;:::i;:::-;9291:7;9281:17;;;8916:388;;;;;:::o;9309:456::-;9386:6;9394;9402;9455:2;9443:9;9434:7;9430:23;9426:32;9423:52;;;9471:1;9468;9461:12;9423:52;9510:9;9497:23;9529:31;9554:5;9529:31;:::i;:::-;9579:5;-1:-1:-1;9636:2:41;9621:18;;9608:32;9649:33;9608:32;9649:33;:::i;:::-;9309:456;;9701:7;;-1:-1:-1;;;9755:2:41;9740:18;;;;9727:32;;9309:456::o;9770:794::-;9865:6;9873;9881;9889;9942:3;9930:9;9921:7;9917:23;9913:33;9910:53;;;9959:1;9956;9949:12;9910:53;9998:9;9985:23;10017:31;10042:5;10017:31;:::i;:::-;10067:5;-1:-1:-1;10124:2:41;10109:18;;10096:32;10137:33;10096:32;10137:33;:::i;:::-;10189:7;-1:-1:-1;10243:2:41;10228:18;;10215:32;;-1:-1:-1;10298:2:41;10283:18;;10270:32;-1:-1:-1;;;;;10314:30:41;;10311:50;;;10357:1;10354;10347:12;10311:50;10380:22;;10433:4;10425:13;;10421:27;-1:-1:-1;10411:55:41;;10462:1;10459;10452:12;10411:55;10485:73;10550:7;10545:2;10532:16;10527:2;10523;10519:11;10485:73;:::i;:::-;10475:83;;;9770:794;;;;;;;:::o;10569:315::-;10634:6;10642;10695:2;10683:9;10674:7;10670:23;10666:32;10663:52;;;10711:1;10708;10701:12;10663:52;10750:9;10737:23;10769:31;10794:5;10769:31;:::i;:::-;10819:5;-1:-1:-1;10843:35:41;10874:2;10859:18;;10843:35;:::i;:::-;10833:45;;10569:315;;;;;:::o;10889:::-;10957:6;10965;11018:2;11006:9;10997:7;10993:23;10989:32;10986:52;;;11034:1;11031;11024:12;10986:52;11073:9;11060:23;11092:31;11117:5;11092:31;:::i;:::-;11142:5;11194:2;11179:18;;;;11166:32;;-1:-1:-1;;;10889:315:41:o;11209:348::-;11293:6;11346:2;11334:9;11325:7;11321:23;11317:32;11314:52;;;11362:1;11359;11352:12;11314:52;11389:23;;-1:-1:-1;;;;;11424:30:41;;11421:50;;;11467:1;11464;11457:12;11421:50;11490:61;11543:7;11534:6;11523:9;11519:22;11490:61;:::i;11562:180::-;11621:6;11674:2;11662:9;11653:7;11649:23;11645:32;11642:52;;;11690:1;11687;11680:12;11642:52;-1:-1:-1;11713:23:41;;11562:180;-1:-1:-1;11562:180:41:o;11747:315::-;11815:6;11823;11876:2;11864:9;11855:7;11851:23;11847:32;11844:52;;;11892:1;11889;11882:12;11844:52;11928:9;11915:23;11905:33;;11988:2;11977:9;11973:18;11960:32;12001:31;12026:5;12001:31;:::i;12067:311::-;12133:6;12141;12194:2;12182:9;12173:7;12169:23;12165:32;12162:52;;;12210:1;12207;12200:12;12162:52;12246:9;12233:23;12223:33;;12306:2;12295:9;12291:18;12278:32;12319:29;12342:5;12319:29;:::i;12383:419::-;12479:6;12487;12540:2;12528:9;12519:7;12515:23;12511:32;12508:52;;;12556:1;12553;12546:12;12508:52;12579:23;;;-1:-1:-1;12653:2:41;12638:18;;12625:32;-1:-1:-1;;;;;12669:30:41;;12666:50;;;12712:1;12709;12702:12;12666:50;12735:61;12788:7;12779:6;12768:9;12764:22;12735:61;:::i;:::-;12725:71;;;12383:419;;;;;:::o;12807:248::-;12875:6;12883;12936:2;12924:9;12915:7;12911:23;12907:32;12904:52;;;12952:1;12949;12942:12;12904:52;-1:-1:-1;;12975:23:41;;;13045:2;13030:18;;;13017:32;;-1:-1:-1;12807:248:41:o;13060:245::-;13118:6;13171:2;13159:9;13150:7;13146:23;13142:32;13139:52;;;13187:1;13184;13177:12;13139:52;13226:9;13213:23;13245:30;13269:5;13245:30;:::i;13310:249::-;13379:6;13432:2;13420:9;13411:7;13407:23;13403:32;13400:52;;;13448:1;13445;13438:12;13400:52;13480:9;13474:16;13499:30;13523:5;13499:30;:::i;13564:322::-;13633:6;13686:2;13674:9;13665:7;13661:23;13657:32;13654:52;;;13702:1;13699;13692:12;13654:52;13729:23;;-1:-1:-1;;;;;13764:30:41;;13761:50;;;13807:1;13804;13797:12;13761:50;13830;13872:7;13863:6;13852:9;13848:22;13830:50;:::i;13891:635::-;13971:6;14024:2;14012:9;14003:7;13999:23;13995:32;13992:52;;;14040:1;14037;14030:12;13992:52;14067:16;;-1:-1:-1;;;;;14095:30:41;;14092:50;;;14138:1;14135;14128:12;14092:50;14161:22;;14214:4;14206:13;;14202:27;-1:-1:-1;14192:55:41;;14243:1;14240;14233:12;14192:55;14272:2;14266:9;14297:48;14313:31;14341:2;14313:31;:::i;14297:48::-;14368:2;14361:5;14354:17;14408:7;14403:2;14398;14394;14390:11;14386:20;14383:33;14380:53;;;14429:1;14426;14419:12;14380:53;14442:54;14493:2;14488;14481:5;14477:14;14472:2;14468;14464:11;14442:54;:::i;:::-;14515:5;13891:635;-1:-1:-1;;;;;13891:635:41:o;14531:351::-;14618:6;14671:2;14659:9;14650:7;14646:23;14642:32;14639:52;;;14687:1;14684;14677:12;14639:52;14714:23;;-1:-1:-1;;;;;14749:30:41;;14746:50;;;14792:1;14789;14782:12;14746:50;14815:61;14868:7;14859:6;14848:9;14844:22;14815:61;:::i;14887:1287::-;14985:6;15038;15026:9;15017:7;15013:23;15009:36;15006:56;;;15058:1;15055;15048:12;15006:56;15084:22;;:::i;:::-;15136:9;15130:16;15155:31;15178:7;15155:31;:::i;:::-;15195:22;;15236:2;15268:18;;;15262:25;15296:31;15262:25;15296:31;:::i;:::-;15343:14;;;15336:31;15412:2;15397:18;;15391:25;15425:31;15391:25;15425:31;:::i;:::-;15483:2;15472:14;;15465:31;15534:3;15519:19;;15515:33;-1:-1:-1;15505:61:41;;15562:1;15559;15552:12;15505:61;15586:23;;:::i;:::-;15631:3;15669:2;15658:9;15654:18;15706:6;15695:9;15691:22;15732:7;15728:2;15725:15;15722:35;;;15753:1;15750;15743:12;15722:35;15775:1;15785:240;15799:6;15796:1;15793:13;15785:240;;;15869:3;15863:10;15886:32;15910:7;15886:32;:::i;:::-;15931:20;;15971:12;;;;16003;;;;15821:1;15814:9;15785:240;;;15789:3;16057:5;16052:2;16045:5;16041:14;16034:29;16097:46;16135:7;16131:2;16097:46;:::i;:::-;16090:4;16079:16;;16072:72;-1:-1:-1;16083:5:41;;14887:1287;-1:-1:-1;;;;;;;14887:1287:41:o;16364:1442::-;16460:6;16468;16512:9;16503:7;16499:23;16542:6;16538:2;16534:15;16531:35;;;16562:1;16559;16552:12;16531:35;16585:23;;;-1:-1:-1;16627:2:41;16663:8;-1:-1:-1;;16645:16:41;;16641:31;16638:51;;;16685:1;16682;16675:12;16638:51;16711:22;;:::i;:::-;16698:35;;16785:2;16774:9;16770:18;16757:32;16798:31;16821:7;16798:31;:::i;:::-;16838:22;;16912:2;16897:18;;16884:32;16925:31;16884:32;16925:31;:::i;:::-;16972:14;;;16965:31;17048:2;17033:18;;17020:32;17061:31;17020:32;17061:31;:::i;:::-;17119:2;17108:14;;17101:31;17170:3;17155:19;;17151:33;-1:-1:-1;17141:61:41;;17198:1;17195;17188:12;17141:61;17222:23;;:::i;:::-;17267:3;17305;17294:9;17290:19;17343:6;17332:9;17328:22;17369:7;17365:2;17362:15;17359:35;;;17390:1;17387;17380:12;17359:35;17412:1;17422:247;17436:6;17433:1;17430:13;17422:247;;;17513:3;17500:17;17530:32;17554:7;17530:32;:::i;:::-;17575:20;;17615:12;;;;17647;;;;17458:1;17451:9;17422:247;;;17426:3;17701:5;17696:2;17689:5;17685:14;17678:29;17740:35;17767:7;17763:2;17740:35;:::i;:::-;17734:3;17727:5;17723:15;17716:60;;;;;;17795:5;17785:15;;;16364:1442;;;;;:::o;17811:738::-;17942:6;17950;17958;18011:2;17999:9;17990:7;17986:23;17982:32;17979:52;;;18027:1;18024;18017:12;17979:52;18066:9;18053:23;18085:29;18108:5;18085:29;:::i;:::-;18133:5;-1:-1:-1;18189:2:41;18174:18;;18161:32;-1:-1:-1;;;;;18242:14:41;;;18239:34;;;18269:1;18266;18259:12;18239:34;18292:69;18353:7;18344:6;18333:9;18329:22;18292:69;:::i;:::-;18282:79;;18414:2;18403:9;18399:18;18386:32;18370:48;;18443:2;18433:8;18430:16;18427:36;;;18459:1;18456;18449:12;18427:36;;18482:61;18535:7;18524:8;18513:9;18509:24;18482:61;:::i;:::-;18472:71;;;17811:738;;;;;:::o;18671:461::-;18724:3;18762:5;18756:12;18789:6;18784:3;18777:19;18815:4;18844:2;18839:3;18835:12;18828:19;;18881:2;18874:5;18870:14;18902:1;18912:195;18926:6;18923:1;18920:13;18912:195;;;18991:13;;-1:-1:-1;;;;;18987:39:41;18975:52;;19047:12;;;;19082:15;;;;19023:1;18941:9;18912:195;;;-1:-1:-1;19123:3:41;;18671:461;-1:-1:-1;;;;;18671:461:41:o;19137:615::-;19189:3;19227:5;19221:12;19254:6;19249:3;19242:19;19280:4;19321:2;19316:3;19312:12;19346:11;19373;19366:18;;19423:6;19420:1;19416:14;19409:5;19405:26;19393:38;;19465:2;19458:5;19454:14;19486:1;19496:230;19510:6;19507:1;19504:13;19496:230;;;19581:5;19575:4;19571:16;19566:3;19559:29;19609:37;19641:4;19632:6;19626:13;19609:37;:::i;:::-;19704:12;;;;19601:45;-1:-1:-1;19669:15:41;;;;19532:1;19525:9;19496:230;;;-1:-1:-1;19742:4:41;;19137:615;-1:-1:-1;;;;;;;19137:615:41:o;19757:444::-;19808:3;19846:5;19840:12;19873:6;19868:3;19861:19;19899:4;19928:2;19923:3;19919:12;19912:19;;19965:2;19958:5;19954:14;19986:1;19996:180;20010:6;20007:1;20004:13;19996:180;;;20075:13;;20090:4;20071:24;20059:37;;20116:12;;;;20151:15;;;;20032:1;20025:9;19996:180;;20302:257;20343:3;20381:5;20375:12;20408:6;20403:3;20396:19;20424:63;20480:6;20473:4;20468:3;20464:14;20457:4;20450:5;20446:16;20424:63;:::i;:::-;20541:2;20520:15;-1:-1:-1;;20516:29:41;20507:39;;;;20548:4;20503:50;;20302:257;-1:-1:-1;;20302:257:41:o;20660:546::-;20728:12;;20762:3;20829:1;20839:215;20853:4;20850:1;20847:11;20839:215;;;20928:13;;20925:1;20914:28;20900:43;;20966:4;21029:15;;;;20992:14;;;;20873:1;20866:9;20839:215;;;20843:3;;;21119:4;21112:5;21108:16;21102:23;21099:1;21088:38;21079:6;21074:3;21070:16;21063:64;21192:4;21185:5;21181:16;21175:23;21172:1;21161:38;21152:6;21147:3;21143:16;21136:64;20660:546;;:::o;21757:276::-;21888:3;21926:6;21920:13;21942:53;21988:6;21983:3;21976:4;21968:6;21964:17;21942:53;:::i;:::-;22011:16;;;;;21757:276;-1:-1:-1;;21757:276:41:o;22038:470::-;22217:3;22255:6;22249:13;22271:53;22317:6;22312:3;22305:4;22297:6;22293:17;22271:53;:::i;:::-;22387:13;;22346:16;;;;22409:57;22387:13;22346:16;22443:4;22431:17;;22409:57;:::i;:::-;22482:20;;22038:470;-1:-1:-1;;;;22038:470:41:o;22513:786::-;-1:-1:-1;;;22919:3:41;22912:38;22894:3;22979:6;22973:13;22995:62;23050:6;23045:2;23040:3;23036:12;23029:4;23021:6;23017:17;22995:62;:::i;:::-;-1:-1:-1;;;23116:2:41;23076:16;;;23108:11;;;23101:40;23166:13;;23188:63;23166:13;23237:2;23229:11;;23222:4;23210:17;;23188:63;:::i;:::-;23271:17;23290:2;23267:26;;22513:786;-1:-1:-1;;;;22513:786:41:o;23304:203::-;-1:-1:-1;;;;;23468:32:41;;;;23450:51;;23438:2;23423:18;;23304:203::o;23512:488::-;-1:-1:-1;;;;;23781:15:41;;;23763:34;;23833:15;;23828:2;23813:18;;23806:43;23880:2;23865:18;;23858:34;;;23928:3;23923:2;23908:18;;23901:31;;;23706:4;;23949:45;;23974:19;;23966:6;23949:45;:::i;:::-;23941:53;23512:488;-1:-1:-1;;;;;;23512:488:41:o;24005:261::-;24184:2;24173:9;24166:21;24147:4;24204:56;24256:2;24245:9;24241:18;24233:6;24204:56;:::i;24838:219::-;24987:2;24976:9;24969:21;24950:4;25007:44;25047:2;25036:9;25032:18;25024:6;25007:44;:::i;26895:337::-;27097:2;27079:21;;;27136:2;27116:18;;;27109:30;-1:-1:-1;;;27170:2:41;27155:18;;27148:43;27223:2;27208:18;;26895:337::o;27237:344::-;27439:2;27421:21;;;27478:2;27458:18;;;27451:30;-1:-1:-1;;;27512:2:41;27497:18;;27490:50;27572:2;27557:18;;27237:344::o;28358:414::-;28560:2;28542:21;;;28599:2;28579:18;;;28572:30;28638:34;28633:2;28618:18;;28611:62;-1:-1:-1;;;28704:2:41;28689:18;;28682:48;28762:3;28747:19;;28358:414::o;29480:334::-;29682:2;29664:21;;;29721:2;29701:18;;;29694:30;-1:-1:-1;;;29755:2:41;29740:18;;29733:40;29805:2;29790:18;;29480:334::o;34310:340::-;34512:2;34494:21;;;34551:2;34531:18;;;34524:30;-1:-1:-1;;;34585:2:41;34570:18;;34563:46;34641:2;34626:18;;34310:340::o;36872:344::-;37074:2;37056:21;;;37113:2;37093:18;;;37086:30;-1:-1:-1;;;37147:2:41;37132:18;;37125:50;37207:2;37192:18;;36872:344::o;38395:336::-;38597:2;38579:21;;;38636:2;38616:18;;;38609:30;-1:-1:-1;;;38670:2:41;38655:18;;38648:42;38722:2;38707:18;;38395:336::o;38736:::-;38938:2;38920:21;;;38977:2;38957:18;;;38950:30;-1:-1:-1;;;39011:2:41;38996:18;;38989:42;39063:2;39048:18;;38736:336::o;39825:413::-;40027:2;40009:21;;;40066:2;40046:18;;;40039:30;40105:34;40100:2;40085:18;;40078:62;-1:-1:-1;;;40171:2:41;40156:18;;40149:47;40228:3;40213:19;;39825:413::o;40656:340::-;40858:2;40840:21;;;40897:2;40877:18;;;40870:30;-1:-1:-1;;;40931:2:41;40916:18;;40909:46;40987:2;40972:18;;40656:340::o;43935:2943::-;44120:2;44109:9;44102:21;44083:4;44158:6;44152:13;44184:6;44226:2;44221;44210:9;44206:18;44199:30;44252:51;44298:3;44287:9;44283:19;44269:12;44252:51;:::i;:::-;44238:65;;44352:2;44344:6;44340:15;44334:22;44379:2;44375:7;44446:2;44434:9;44426:6;44422:22;44418:31;44413:2;44402:9;44398:18;44391:59;44473:40;44506:6;44490:14;44473:40;:::i;:::-;44459:54;;44562:2;44554:6;44550:15;44544:22;44522:44;;44630:2;44618:9;44610:6;44606:22;44602:31;44597:2;44586:9;44582:18;44575:59;44657:40;44690:6;44674:14;44657:40;:::i;:::-;44643:54;;44746:2;44738:6;44734:15;44728:22;44706:44;;44815:2;44803:9;44795:6;44791:22;44787:31;44781:3;44770:9;44766:19;44759:60;44842:40;44875:6;44859:14;44842:40;:::i;:::-;44828:54;;44937:3;44929:6;44925:16;44919:23;44913:3;44902:9;44898:19;44891:52;44992:3;44984:6;44980:16;44974:23;44952:45;;45006:53;45054:3;45043:9;45039:19;45023:14;20639:1;20628:20;20616:33;;20564:91;45006:53;45114:3;45102:16;;45096:23;45090:3;45075:19;;;45068:52;;;;45145:16;;45139:23;45181:3;45200:18;;;45193:30;;;;45248:15;;45242:22;45283:3;45302:18;;;45295:30;;;;45350:15;;45344:22;45385:3;45404:18;;;45397:30;;;;45464:15;;45458:22;;-1:-1:-1;45499:3:41;45511:51;45543:18;;;45458:22;20276:13;20269:21;20257:34;;20206:91;45511:51;45599:15;;45593:22;;-1:-1:-1;45635:3:41;45647:52;45679:19;;;45593:22;20276:13;20269:21;20257:34;;20206:91;45647:52;45748:3;45740:6;45736:16;45730:23;45708:45;;;45773:3;45841:2;45829:9;45821:6;45817:22;45813:31;45807:3;45796:9;45792:19;45785:60;45868:51;45912:6;45896:14;45868:51;:::i;:::-;45854:65;;45968:3;45960:6;45956:16;45950:23;45928:45;;;45993:3;46061:2;46049:9;46041:6;46037:22;46033:31;46027:3;46016:9;46012:19;46005:60;46088:52;46133:6;46117:14;46088:52;:::i;:::-;46074:66;;46189:3;46181:6;46177:16;46171:23;46149:45;;;46214:3;46282:2;46270:9;46262:6;46258:22;46254:31;46248:3;46237:9;46233:19;46226:60;46309:50;46352:6;46336:14;46309:50;:::i;:::-;46295:64;;46409:3;46401:6;46397:16;46391:23;46368:46;;;46434:3;46446:53;46494:3;46483:9;46479:19;46462:15;20276:13;20269:21;20257:34;;20206:91;46446:53;46549:3;46541:6;46537:16;46531:23;46508:46;;;46574:3;46642:2;46630:9;46622:6;46618:22;46614:31;46608:3;46597:9;46593:19;46586:60;46669:53;46715:6;46698:15;46669:53;:::i;:::-;46655:67;;46772:3;46764:6;46760:16;46754:23;46731:46;;;;46786:63;46845:2;46834:9;46830:18;46813:15;-1:-1:-1;;;;;18628:31:41;18616:44;;18554:112;46786:63;-1:-1:-1;46866:6:41;;43935:2943;-1:-1:-1;;;;43935:2943:41:o;46883:962::-;47099:13;;47131:1;47159:18;;;47141:37;;47197:4;47247:15;;;47241:22;47265:4;47237:33;47217:18;;;47210:61;47341:4;47329:17;;;47323:24;47320:1;47309:39;47287:20;;;47280:69;47396:4;47384:17;;;47378:24;47073:6;47058:22;;;47131:1;47422:20;;47031:4;47524:187;47538:6;47535:1;47532:13;47524:187;;;47604:13;;47619:10;47600:30;47588:43;;47686:15;;;;47651:12;;;;47553:10;;47524:187;;;47528:3;;;;;47760:4;47752:6;47748:17;47742:24;47775:64;47829:8;47818:9;47814:24;47798:14;47775:64;:::i;48367:255::-;48439:2;48433:9;48481:6;48469:19;;-1:-1:-1;;;;;48503:34:41;;48539:22;;;48500:62;48497:88;;;48565:18;;:::i;:::-;48601:2;48594:22;48367:255;:::o;48627:253::-;48699:2;48693:9;48741:4;48729:17;;-1:-1:-1;;;;;48761:34:41;;48797:22;;;48758:62;48755:88;;;48823:18;;:::i;48885:253::-;48957:2;48951:9;48999:4;48987:17;;-1:-1:-1;;;;;49019:34:41;;49055:22;;;49016:62;49013:88;;;49081:18;;:::i;49143:254::-;49216:2;49210:9;49258:4;49246:17;;-1:-1:-1;;;;;49278:34:41;;49314:22;;;49275:62;49272:88;;;49340:18;;:::i;49402:256::-;49475:2;49469:9;49517:6;49505:19;;-1:-1:-1;;;;;49539:34:41;;49575:22;;;49536:62;49533:88;;;49601:18;;:::i;49663:275::-;49734:2;49728:9;49799:2;49780:13;;-1:-1:-1;;49776:27:41;49764:40;;-1:-1:-1;;;;;49819:34:41;;49855:22;;;49816:62;49813:88;;;49881:18;;:::i;:::-;49917:2;49910:22;49663:275;;-1:-1:-1;49663:275:41:o;49943:183::-;50003:4;-1:-1:-1;;;;;50025:30:41;;50022:56;;;50058:18;;:::i;:::-;-1:-1:-1;50103:1:41;50099:14;50115:4;50095:25;;49943:183::o;50131:186::-;50179:4;-1:-1:-1;;;;;50201:30:41;;50198:56;;;50234:18;;:::i;:::-;-1:-1:-1;50300:2:41;50279:15;-1:-1:-1;;50275:29:41;50306:4;50271:40;;50131:186::o;50322:128::-;50362:3;50393:1;50389:6;50386:1;50383:13;50380:39;;;50399:18;;:::i;:::-;-1:-1:-1;50435:9:41;;50322:128::o;50455:204::-;50493:3;50529:4;50526:1;50522:12;50561:4;50558:1;50554:12;50596:3;50590:4;50586:14;50581:3;50578:23;50575:49;;;50604:18;;:::i;:::-;50640:13;;50455:204;-1:-1:-1;;;50455:204:41:o;50664:120::-;50704:1;50730;50720:35;;50735:18;;:::i;:::-;-1:-1:-1;50769:9:41;;50664:120::o;50789:168::-;50829:7;50895:1;50891;50887:6;50883:14;50880:1;50877:21;50872:1;50865:9;50858:17;50854:45;50851:71;;;50902:18;;:::i;:::-;-1:-1:-1;50942:9:41;;50789:168::o;50962:125::-;51002:4;51030:1;51027;51024:8;51021:34;;;51035:18;;:::i;:::-;-1:-1:-1;51072:9:41;;50962:125::o;51092:258::-;51164:1;51174:113;51188:6;51185:1;51182:13;51174:113;;;51264:11;;;51258:18;51245:11;;;51238:39;51210:2;51203:10;51174:113;;;51305:6;51302:1;51299:13;51296:48;;;-1:-1:-1;;51340:1:41;51322:16;;51315:27;51092:258::o;51355:136::-;51394:3;51422:5;51412:39;;51431:18;;:::i;:::-;-1:-1:-1;;;51467:18:41;;51355:136::o;51496:380::-;51575:1;51571:12;;;;51618;;;51639:61;;51693:4;51685:6;51681:17;51671:27;;51639:61;51746:2;51738:6;51735:14;51715:18;51712:38;51709:161;;;51792:10;51787:3;51783:20;51780:1;51773:31;51827:4;51824:1;51817:15;51855:4;51852:1;51845:15;51709:161;;51496:380;;;:::o;51881:147::-;51919:3;-1:-1:-1;;;;;51940:30:41;;51937:56;;;51973:18;;:::i;:::-;-1:-1:-1;52020:1:41;52009:13;;51881:147::o;52033:135::-;52072:3;-1:-1:-1;;52093:17:41;;52090:43;;;52113:18;;:::i;52173:175::-;52210:3;52254:4;52247:5;52243:16;52283:4;52274:7;52271:17;52268:43;;;52291:18;;:::i;:::-;52340:1;52327:15;;52173:175;-1:-1:-1;;52173:175:41:o;52353:112::-;52385:1;52411;52401:35;;52416:18;;:::i;:::-;-1:-1:-1;52450:9:41;;52353:112::o;52470:127::-;52531:10;52526:3;52522:20;52519:1;52512:31;52562:4;52559:1;52552:15;52586:4;52583:1;52576:15;52602:127;52663:10;52658:3;52654:20;52651:1;52644:31;52694:4;52691:1;52684:15;52718:4;52715:1;52708:15;52734:127;52795:10;52790:3;52786:20;52783:1;52776:31;52826:4;52823:1;52816:15;52850:4;52847:1;52840:15;52866:127;52927:10;52922:3;52918:20;52915:1;52908:31;52958:4;52955:1;52948:15;52982:4;52979:1;52972:15;52998:127;53059:10;53054:3;53050:20;53047:1;53040:31;53090:4;53087:1;53080:15;53114:4;53111:1;53104:15;53130:131;-1:-1:-1;;;;;53205:31:41;;53195:42;;53185:70;;53251:1;53248;53241:12;53266:131;-1:-1:-1;;;;;;53340:32:41;;53330:43;;53320:71;;53387:1;53384;53377:12;53402:118;53489:5;53486:1;53475:20;53468:5;53465:31;53455:59;;53510:1;53507;53500:12;53525:118;53612:5;53609:1;53598:20;53591:5;53588:31;53578:59;;53633:1;53630;53623:12;53648:121;53733:10;53726:5;53722:22;53715:5;53712:33;53702:61;;53759:1;53756;53749:12;53774:114;53858:4;53851:5;53847:16;53840:5;53837:27;53827:55;;53878:1;53875;53868:12
Swarm Source
ipfs://8f6121eec03d09f4b861afeb380adcc933ef1ebcf9be7761bfdb74d99f133fd8
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.