Contract
0xAD496b433D6A8CB25C47EabB4604E1dFf409622F
1
Contract Overview
Balance:
0 Ether
More Info
My Name Tag:
Not Available
Txn Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x3e47bb562836893c8b019dfcb5aa4424791421914beeef296620b0a0ad03b89c | 0x60806040 | 6229574 | 780 days 15 hrs ago | 0x4011d09a86d0aca8377a4a8bad691f1aceecd672 | IN | Create: PublicLock | 0 Ether | 0.035296191 |
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
PublicLock
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-03-31 */ /** *Submitted for verification at Etherscan.io on 2020-03-30 */ // File: contracts\interfaces\IPublicLock.sol pragma solidity 0.5.17; /** * @title The PublicLock Interface * @author Nick Furfaro (unlock-protocol.com) */ contract IPublicLock { // See indentationissue description here: // https://github.com/duaraghav8/Ethlint/issues/268 // solium-disable indentation /// Functions function initialize( address _lockCreator, uint _expirationDuration, address _tokenAddress, uint _keyPrice, uint _maxNumberOfKeys, string calldata _lockName ) external; /** * @notice Allow the contract to accept tips in ETH sent directly to the contract. * @dev This is okay to use even if the lock is priced in ERC-20 tokens */ function() external payable; /** * @dev Never used directly */ function initialize() external; /** * @notice The version number of the current implementation on this network. * @return The current version number. */ function publicLockVersion() public pure returns (uint); /** * @notice Gets the current balance of the account provided. * @param _tokenAddress The token type to retrieve the balance of. * @param _account The account to get the balance of. * @return The number of tokens of the given type for the given address, possibly 0. */ function getBalance( address _tokenAddress, address _account ) external view returns (uint); /** * @notice Used to disable lock before migrating keys and/or destroying contract. * @dev Throws if called by other than a lock manager. * @dev Throws if lock contract has already been disabled. */ function disableLock() external; /** * @dev Called by a lock manager or beneficiary to withdraw all funds from the lock and send them to the `beneficiary`. * @dev Throws if called by other than a lock manager or beneficiary * @param _tokenAddress specifies the token address to withdraw or 0 for ETH. This is usually * the same as `tokenAddress` in MixinFunds. * @param _amount specifies the max amount to withdraw, which may be reduced when * considering the available balance. Set to 0 or MAX_UINT to withdraw everything. * -- however be wary of draining funds as it breaks the `cancelAndRefund` and `expireAndRefundFor` * use cases. */ function withdraw( address _tokenAddress, uint _amount ) external; /** * A function which lets a Lock manager of the lock to change the price for future purchases. * @dev Throws if called by other than a Lock manager * @dev Throws if lock has been disabled * @dev Throws if _tokenAddress is not a valid token * @param _keyPrice The new price to set for keys * @param _tokenAddress The address of the erc20 token to use for pricing the keys, * or 0 to use ETH */ function updateKeyPricing( uint _keyPrice, address _tokenAddress ) external; /** * A function which lets a Lock manager update the beneficiary account, * which receives funds on withdrawal. * @dev Throws if called by other than a Lock manager or beneficiary * @dev Throws if _beneficiary is address(0) * @param _beneficiary The new address to set as the beneficiary */ function updateBeneficiary( address _beneficiary ) external; /** * Checks if the user has a non-expired key. * @param _user The address of the key owner */ function getHasValidKey( address _user ) external view returns (bool); /** * @notice Find the tokenId for a given user * @return The tokenId of the NFT, else returns 0 * @param _account The address of the key owner */ function getTokenIdFor( address _account ) external view returns (uint); /** * A function which returns a subset of the keys for this Lock as an array * @param _page the page of key owners requested when faceted by page size * @param _pageSize the number of Key Owners requested per page * @dev Throws if there are no key owners yet */ function getOwnersByPage( uint _page, uint _pageSize ) external view returns (address[] memory); /** * Checks if the given address owns the given tokenId. * @param _tokenId The tokenId of the key to check * @param _keyOwner The potential key owners address */ function isKeyOwner( uint _tokenId, address _keyOwner ) external view returns (bool); /** * @dev Returns the key's ExpirationTimestamp field for a given owner. * @param _keyOwner address of the user for whom we search the key * @dev Returns 0 if the owner has never owned a key for this lock */ function keyExpirationTimestampFor( address _keyOwner ) external view returns (uint timestamp); /** * Public function which returns the total number of unique owners (both expired * and valid). This may be larger than totalSupply. */ function numberOfOwners() external view returns (uint); /** * Allows a Lock manager to assign a descriptive name for this Lock. * @param _lockName The new name for the lock * @dev Throws if called by other than a Lock manager */ function updateLockName( string calldata _lockName ) external; /** * Allows a Lock manager to assign a Symbol for this Lock. * @param _lockSymbol The new Symbol for the lock * @dev Throws if called by other than a Lock manager */ function updateLockSymbol( string calldata _lockSymbol ) external; /** * @dev Gets the token symbol * @return string representing the token symbol */ function symbol() external view returns(string memory); /** * Allows a Lock manager to update the baseTokenURI for this Lock. * @dev Throws if called by other than a Lock manager * @param _baseTokenURI String representing the base of the URI for this lock. */ function setBaseTokenURI( string calldata _baseTokenURI ) external; /** @notice A distinct Uniform Resource Identifier (URI) for a given asset. * @dev Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC * 3986. The URI may point to a JSON file that conforms to the "ERC721 * Metadata JSON Schema". * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md * @param _tokenId The tokenID we're inquiring about * @return String representing the URI for the requested token */ function tokenURI( uint256 _tokenId ) external view returns(string memory); /** * @notice Allows a Lock manager to add or remove an event hook */ function setEventHooks( address _onKeyPurchaseHook, address _onKeyCancelHook ) external; /** * Allows a Lock manager to give a collection of users a key with no charge. * Each key may be assigned a different expiration date. * @dev Throws if called by other than a Lock manager * @param _recipients An array of receiving addresses * @param _expirationTimestamps An array of expiration Timestamps for the keys being granted */ function grantKeys( address[] calldata _recipients, uint[] calldata _expirationTimestamps, address[] calldata _keyManagers ) external; /** * @dev Purchase function * @param _value the number of tokens to pay for this purchase >= the current keyPrice - any applicable discount * (_value is ignored when using ETH) * @param _recipient address of the recipient of the purchased key * @param _referrer address of the user making the referral * @param _data arbitrary data populated by the front-end which initiated the sale * @dev Throws if lock is disabled. Throws if lock is sold-out. Throws if _recipient == address(0). * @dev Setting _value to keyPrice exactly doubles as a security feature. That way if a Lock manager increases the * price while my transaction is pending I can't be charged more than I expected (only applicable to ERC-20 when more * than keyPrice is approved for spending). */ function purchase( uint256 _value, address _recipient, address _referrer, bytes calldata _data ) external payable; /** * @notice returns the minimum price paid for a purchase with these params. * @dev this considers any discount from Unlock or the OnKeyPurchase hook. */ function purchasePriceFor( address _recipient, address _referrer, bytes calldata _data ) external view returns (uint); /** * Allow a Lock manager to change the transfer fee. * @dev Throws if called by other than a Lock manager * @param _transferFeeBasisPoints The new transfer fee in basis-points(bps). * Ex: 200 bps = 2% */ function updateTransferFee( uint _transferFeeBasisPoints ) external; /** * Determines how much of a fee a key owner would need to pay in order to * transfer the key to another account. This is pro-rated so the fee goes down * overtime. * @dev Throws if _keyOwner does not have a valid key * @param _keyOwner The owner of the key check the transfer fee for. * @param _time The amount of time to calculate the fee for. * @return The transfer fee in seconds. */ function getTransferFee( address _keyOwner, uint _time ) external view returns (uint); /** * @dev Invoked by a Lock manager to expire the user's key and perform a refund and cancellation of the key * @param _keyOwner The key owner to whom we wish to send a refund to * @param amount The amount to refund the key-owner * @dev Throws if called by other than a Lock manager * @dev Throws if _keyOwner does not have a valid key */ function expireAndRefundFor( address _keyOwner, uint amount ) external; /** * @dev allows the key manager to expire a given tokenId * and send a refund to the keyOwner based on the amount of time remaining. * @param _tokenId The id of the key to cancel. */ function cancelAndRefund(uint _tokenId) external; /** * @dev Cancels a key managed by a different user and sends the funds to the keyOwner. * @param _keyManager the key managed by this user will be canceled * @param _v _r _s getCancelAndRefundApprovalHash signed by the _keyManager * @param _tokenId The key to cancel */ function cancelAndRefundFor( address _keyManager, uint8 _v, bytes32 _r, bytes32 _s, uint _tokenId ) external; /** * @notice Sets the minimum nonce for a valid off-chain approval message from the * senders account. * @dev This can be used to invalidate a previously signed message. */ function invalidateOffchainApproval( uint _nextAvailableNonce ) external; /** * Allow a Lock manager to change the refund penalty. * @dev Throws if called by other than a Lock manager * @param _freeTrialLength The new duration of free trials for this lock * @param _refundPenaltyBasisPoints The new refund penaly in basis-points(bps) */ function updateRefundPenalty( uint _freeTrialLength, uint _refundPenaltyBasisPoints ) external; /** * @dev Determines how much of a refund a key owner would receive if they issued * @param _keyOwner The key owner to get the refund value for. * a cancelAndRefund block.timestamp. * Note that due to the time required to mine a tx, the actual refund amount will be lower * than what the user reads from this call. */ function getCancelAndRefundValueFor( address _keyOwner ) external view returns (uint refund); function keyManagerToNonce(address ) external view returns (uint256 ); /** * @notice returns the hash to sign in order to allow another user to cancel on your behalf. * @dev this can be computed in JS instead of read from the contract. * @param _keyManager The key manager's address (also the message signer) * @param _txSender The address cancelling cancel on behalf of the keyOwner * @return approvalHash The hash to sign */ function getCancelAndRefundApprovalHash( address _keyManager, address _txSender ) external view returns (bytes32 approvalHash); function addKeyGranter(address account) external; function addLockManager(address account) external; function isKeyGranter(address account) external view returns (bool); function isLockManager(address account) external view returns (bool); function onKeyPurchaseHook() external view returns(address); function onKeyCancelHook() external view returns(address); function revokeKeyGranter(address _granter) external; function renounceLockManager() external; ///=================================================================== /// Auto-generated getter functions from public state variables function beneficiary() external view returns (address ); function expirationDuration() external view returns (uint256 ); function freeTrialLength() external view returns (uint256 ); function isAlive() external view returns (bool ); function keyPrice() external view returns (uint256 ); function maxNumberOfKeys() external view returns (uint256 ); function owners(uint256 ) external view returns (address ); function refundPenaltyBasisPoints() external view returns (uint256 ); function tokenAddress() external view returns (address ); function transferFeeBasisPoints() external view returns (uint256 ); function unlockProtocol() external view returns (address ); function keyManagerOf(uint) external view returns (address ); ///=================================================================== /** * @notice Allows the key owner to safely share their key (parent key) by * transferring a portion of the remaining time to a new key (child key). * @dev Throws if key is not valid. * @dev Throws if `_to` is the zero address * @param _to The recipient of the shared key * @param _tokenId the key to share * @param _timeShared The amount of time shared * checks if `_to` is a smart contract (code size > 0). If so, it calls * `onERC721Received` on `_to` and throws if the return value is not * `bytes4(keccak256('onERC721Received(address,address,uint,bytes)'))`. * @dev Emit Transfer event */ function shareKey( address _to, uint _tokenId, uint _timeShared ) external; /** * @notice Update transfer and cancel rights for a given key * @param _tokenId The id of the key to assign rights for * @param _keyManager The address to assign the rights to for the given key */ function setKeyManagerOf( uint _tokenId, address _keyManager ) external; /// @notice A descriptive name for a collection of NFTs in this contract function name() external view returns (string memory _name); ///=================================================================== /// From ERC165.sol function supportsInterface(bytes4 interfaceId) external view returns (bool ); ///=================================================================== /// From ERC-721 /** * @dev Returns the number of NFTs in `owner`'s account. */ function balanceOf(address _owner) public view returns (uint256 balance); /** * @dev Returns the owner of the NFT specified by `tokenId`. */ function ownerOf(uint256 tokenId) public view returns (address _owner); /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * * * Requirements: * - `from`, `to` cannot be zero. * - `tokenId` must be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this * NFT by either {approve} or {setApprovalForAll}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public; /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * Requirements: * - If the caller is not `from`, it must be approved to move this NFT by * either {approve} or {setApprovalForAll}. */ function transferFrom(address from, address to, uint256 tokenId) public; function approve(address to, uint256 tokenId) public; /** * @notice Get the approved address for a single NFT * @dev Throws if `_tokenId` is not a valid NFT. * @param _tokenId The NFT to find the approved address for * @return The approved address for this NFT, or the zero address if there is none */ function getApproved(uint256 _tokenId) public view returns (address operator); function setApprovalForAll(address operator, bool _approved) public; function isApprovedForAll(address _owner, address operator) public view returns (bool); function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public; function totalSupply() public view returns (uint256); function tokenOfOwnerByIndex(address _owner, uint256 index) public view returns (uint256 tokenId); function tokenByIndex(uint256 index) public view returns (uint256); } // File: @openzeppelin\upgrades\contracts\Initializable.sol pragma solidity >=0.4.24 <0.7.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to deploying an Initializable contract, as well * as extending an Initializable contract via inheritance. * WARNING: When used with inheritance, manual care must be taken to not invoke * a parent initializer twice, or ensure that all initializers are idempotent, * because this is not dealt with automatically as with constructors. */ contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private initializing; /** * @dev Modifier to use in the initializer function of a contract. */ modifier initializer() { require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized"); bool isTopLevelCall = !initializing; if (isTopLevelCall) { initializing = true; initialized = true; } _; if (isTopLevelCall) { initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; assembly { cs := extcodesize(self) } return cs == 0; } // Reserved storage space to allow for layout changes in the future. uint256[50] private ______gap; } // File: node_modules\@openzeppelin\contracts-ethereum-package\contracts\introspection\IERC165.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin\contracts-ethereum-package\contracts\introspection\ERC165.sol pragma solidity ^0.5.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ contract ERC165 is Initializable, IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; function initialize() public initializer { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) public view returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } uint256[50] private ______gap; } // File: @openzeppelin\contracts-ethereum-package\contracts\token\ERC20\IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin\contracts-ethereum-package\contracts\utils\Address.sol pragma solidity ^0.5.5; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its address will be reported as * not containing 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. */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != 0x0 && codehash != accountHash); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @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]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // File: node_modules\@openzeppelin\contracts-ethereum-package\contracts\math\SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin\contracts-ethereum-package\contracts\token\ERC20\SafeERC20.sol pragma solidity ^0.5.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts\mixins\MixinFunds.sol pragma solidity 0.5.17; /** * @title An implementation of the money related functions. * @author HardlyDifficult (unlock-protocol.com) */ contract MixinFunds { using Address for address payable; using SafeERC20 for IERC20; /** * The token-type that this Lock is priced in. If 0, then use ETH, else this is * a ERC20 token address. */ address public tokenAddress; function _initializeMixinFunds( address _tokenAddress ) internal { tokenAddress = _tokenAddress; require( _tokenAddress == address(0) || IERC20(_tokenAddress).totalSupply() > 0, 'INVALID_TOKEN' ); } /** * Gets the current balance of the account provided. */ function getBalance( address _tokenAddress, address _account ) public view returns (uint) { if(_tokenAddress == address(0)) { return _account.balance; } else { return IERC20(_tokenAddress).balanceOf(_account); } } /** * Transfers funds from the contract to the account provided. * * Security: be wary of re-entrancy when calling this function. */ function _transfer( address _tokenAddress, address _to, uint _amount ) internal { if(_amount > 0) { if(_tokenAddress == address(0)) { // https://diligence.consensys.net/blog/2019/09/stop-using-soliditys-transfer-now/ address(uint160(_to)).sendValue(_amount); } else { IERC20 token = IERC20(_tokenAddress); token.safeTransfer(_to, _amount); } } } } // File: @openzeppelin\contracts-ethereum-package\contracts\access\Roles.sol pragma solidity ^0.5.0; /** * @title Roles * @dev Library for managing addresses assigned to a Role. */ library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev Give an account access to this role. */ function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[account] = true; } /** * @dev Remove an account's access to this role. */ function remove(Role storage role, address account) internal { require(has(role, account), "Roles: account does not have role"); role.bearer[account] = false; } /** * @dev Check if an account has this role. * @return bool */ function has(Role storage role, address account) internal view returns (bool) { require(account != address(0), "Roles: account is the zero address"); return role.bearer[account]; } } // File: contracts\mixins\MixinLockManagerRole.sol pragma solidity 0.5.17; // This contract mostly follows the pattern established by openzeppelin in // openzeppelin/contracts-ethereum-package/contracts/access/roles contract MixinLockManagerRole { using Roles for Roles.Role; event LockManagerAdded(address indexed account); event LockManagerRemoved(address indexed account); Roles.Role private lockManagers; function _initializeMixinLockManagerRole(address sender) internal { if (!isLockManager(sender)) { lockManagers.add(sender); } } modifier onlyLockManager() { require(isLockManager(msg.sender), 'MixinLockManager: caller does not have the LockManager role'); _; } function isLockManager(address account) public view returns (bool) { return lockManagers.has(account); } function addLockManager(address account) public onlyLockManager { lockManagers.add(account); emit LockManagerAdded(account); } function renounceLockManager() public { lockManagers.remove(msg.sender); emit LockManagerRemoved(msg.sender); } } // File: contracts\mixins\MixinDisable.sol pragma solidity 0.5.17; /** * @title Mixin allowing the Lock owner to disable a Lock (preventing new purchases) * and then destroy it. * @author HardlyDifficult * @dev `Mixins` are a design pattern seen in the 0x contracts. It simply * separates logically groupings of code to ease readability. */ contract MixinDisable is MixinLockManagerRole, MixinFunds { // Used to disable payable functions when deprecating an old lock bool public isAlive; event Disable(); function _initializeMixinDisable( ) internal { isAlive = true; } // Only allow usage when contract is Alive modifier onlyIfAlive() { require(isAlive, 'LOCK_DEPRECATED'); _; } /** * @dev Used to disable lock before migrating keys and/or destroying contract */ function disableLock() external onlyLockManager onlyIfAlive { emit Disable(); isAlive = false; } } // File: node_modules\@openzeppelin\contracts-ethereum-package\contracts\token\ERC721\IERC721.sol pragma solidity ^0.5.0; /** * @dev Required interface of an ERC721 compliant contract. */ contract IERC721 is Initializable, IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of NFTs in `owner`'s account. */ function balanceOf(address owner) public view returns (uint256 balance); /** * @dev Returns the owner of the NFT specified by `tokenId`. */ function ownerOf(uint256 tokenId) public view returns (address owner); /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * * * Requirements: * - `from`, `to` cannot be zero. * - `tokenId` must be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this * NFT by either {approve} or {setApprovalForAll}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public; /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * Requirements: * - If the caller is not `from`, it must be approved to move this NFT by * either {approve} or {setApprovalForAll}. */ function transferFrom(address from, address to, uint256 tokenId) public; function approve(address to, uint256 tokenId) public; function getApproved(uint256 tokenId) public view returns (address operator); function setApprovalForAll(address operator, bool _approved) public; function isApprovedForAll(address owner, address operator) public view returns (bool); function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public; } // File: @openzeppelin\contracts-ethereum-package\contracts\token\ERC721\IERC721Enumerable.sol pragma solidity ^0.5.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ contract IERC721Enumerable is Initializable, IERC721 { function totalSupply() public view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId); function tokenByIndex(uint256 index) public view returns (uint256); } // File: contracts\interfaces\IUnlock.sol pragma solidity 0.5.17; /** * @title The Unlock Interface * @author Nick Furfaro (unlock-protocol.com) **/ interface IUnlock { // Use initialize instead of a constructor to support proxies(for upgradeability via zos). function initialize(address _unlockOwner) external; /** * @dev Create lock * This deploys a lock for a creator. It also keeps track of the deployed lock. * @param _tokenAddress set to the ERC20 token address, or 0 for ETH. * @param _salt an identifier for the Lock, which is unique for the user. * This may be implemented as a sequence ID or with RNG. It's used with `create2` * to know the lock's address before the transaction is mined. */ function createLock( uint _expirationDuration, address _tokenAddress, uint _keyPrice, uint _maxNumberOfKeys, string calldata _lockName, bytes12 _salt ) external; /** * This function keeps track of the added GDP, as well as grants of discount tokens * to the referrer, if applicable. * The number of discount tokens granted is based on the value of the referal, * the current growth rate and the lock's discount token distribution rate * This function is invoked by a previously deployed lock only. */ function recordKeyPurchase( uint _value, address _referrer // solhint-disable-line no-unused-vars ) external; /** * This function will keep track of consumed discounts by a given user. * It will also grant discount tokens to the creator who is granting the discount based on the * amount of discount and compensation rate. * This function is invoked by a previously deployed lock only. */ function recordConsumedDiscount( uint _discount, uint _tokens // solhint-disable-line no-unused-vars ) external; /** * This function returns the discount available for a user, when purchasing a * a key from a lock. * This does not modify the state. It returns both the discount and the number of tokens * consumed to grant that discount. */ function computeAvailableDiscountFor( address _purchaser, // solhint-disable-line no-unused-vars uint _keyPrice // solhint-disable-line no-unused-vars ) external view returns(uint discount, uint tokens); // Function to read the globalTokenURI field. function globalBaseTokenURI() external view returns(string memory); /** * @dev Redundant with globalBaseTokenURI() for backwards compatibility with v3 & v4 locks. */ function getGlobalBaseTokenURI() external view returns (string memory); // Function to read the globalTokenSymbol field. function globalTokenSymbol() external view returns(string memory); /** * @dev Redundant with globalTokenSymbol() for backwards compatibility with v3 & v4 locks. */ function getGlobalTokenSymbol() external view returns (string memory); /** Function for the owner to update configuration variables. * Should throw if called by other than owner. */ function configUnlock( string calldata _symbol, string calldata _URI ) external; /** * @notice Upgrade the PublicLock template used for future calls to `createLock`. * @dev This will initialize the template and revokeOwnership. */ function setLockTemplate( address payable _publicLockAddress ) external; // Allows the owner to change the value tracking variables as needed. function resetTrackedValue( uint _grossNetworkProduct, uint _totalDiscountGranted ) external; function grossNetworkProduct() external view returns(uint); function totalDiscountGranted() external view returns(uint); function locks(address) external view returns(bool deployed, uint totalSales, uint yieldedDiscountTokens); // The address of the public lock template, used when `createLock` is called function publicLockAddress() external view returns(address); // Map token address to exchange contract address if the token is supported // Used for GDP calculations function uniswapExchanges(address) external view returns(address); // The version number of the current Unlock implementation on this network function unlockVersion() external pure returns(uint16); // allows the owner to set the exchange address to use for value conversions // setting the _exchangeAddress to address(0) removes support for the token function setExchange( address _tokenAddress, address _exchangeAddress ) external; /** * @dev Returns true if the caller is the current owner. */ function isOwner() external view returns(bool); /** * @dev Returns the address of the current owner. */ function owner() external view returns(address); /** * @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() external; /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) external; } // File: contracts\interfaces\hooks\ILockKeyCancelHook.sol pragma solidity 0.5.17; /** * @notice Functions to be implemented by a keyCancelHook. * @dev Lock hooks are configured by calling `setEventHooks` on the lock. */ interface ILockKeyCancelHook { /** * @notice If the lock owner has registered an implementer * then this hook is called with every key cancel. * @param operator the msg.sender issuing the cancel * @param to the account which had the key canceled * @param refund the amount sent to the `to` account (ETH or a ERC-20 token) */ function onKeyCancel( address operator, address to, uint256 refund ) external; } // File: contracts\interfaces\hooks\ILockKeyPurchaseHook.sol pragma solidity 0.5.17; /** * @notice Functions to be implemented by a keyPurchaseHook. * @dev Lock hooks are configured by calling `setEventHooks` on the lock. */ interface ILockKeyPurchaseHook { /** * @notice Used to determine the purchase price before issueing a transaction. * This allows the hook to offer a discount on purchases. * This may revert to prevent a purchase. * @param from the msg.sender making the purchase * @param recipient the account which will be granted a key * @param referrer the account which referred this key sale * @param data arbitrary data populated by the front-end which initiated the sale * @return the minimum value/price required to purchase a key with these settings * @dev the lock's address is the `msg.sender` when this function is called via * the lock's `purchasePriceFor` function */ function keyPurchasePrice( address from, address recipient, address referrer, bytes calldata data ) external view returns (uint minKeyPrice); /** * @notice If the lock owner has registered an implementer then this hook * is called with every key sold. * @param from the msg.sender making the purchase * @param recipient the account which will be granted a key * @param referrer the account which referred this key sale * @param data arbitrary data populated by the front-end which initiated the sale * @param minKeyPrice the price including any discount granted from calling this * hook's `keyPurchasePrice` function * @param pricePaid the value/pricePaid included with the purchase transaction * @dev the lock's address is the `msg.sender` when this function is called */ function onKeyPurchase( address from, address recipient, address referrer, bytes calldata data, uint minKeyPrice, uint pricePaid ) external; } // File: contracts\mixins\MixinLockCore.sol pragma solidity 0.5.17; /** * @title Mixin for core lock data and functions. * @author HardlyDifficult * @dev `Mixins` are a design pattern seen in the 0x contracts. It simply * separates logically groupings of code to ease readability. */ contract MixinLockCore is IERC721Enumerable, MixinLockManagerRole, MixinFunds, MixinDisable { using Address for address; event Withdrawal( address indexed sender, address indexed tokenAddress, address indexed beneficiary, uint amount ); event PricingChanged( uint oldKeyPrice, uint keyPrice, address oldTokenAddress, address tokenAddress ); // Unlock Protocol address // TODO: should we make that private/internal? IUnlock public unlockProtocol; // Duration in seconds for which the keys are valid, after creation // should we take a smaller type use less gas? // TODO: add support for a timestamp instead of duration uint public expirationDuration; // price in wei of the next key // TODO: allow support for a keyPriceCalculator which could set prices dynamically uint public keyPrice; // Max number of keys sold if the keyReleaseMechanism is public uint public maxNumberOfKeys; // A count of how many new key purchases there have been uint internal _totalSupply; // The account which will receive funds on withdrawal address public beneficiary; // The denominator component for values specified in basis points. uint internal constant BASIS_POINTS_DEN = 10000; ILockKeyPurchaseHook public onKeyPurchaseHook; ILockKeyCancelHook public onKeyCancelHook; // Ensure that the Lock has not sold all of its keys. modifier notSoldOut() { require(maxNumberOfKeys > _totalSupply, 'LOCK_SOLD_OUT'); _; } modifier onlyLockManagerOrBeneficiary() { require( isLockManager(msg.sender) || msg.sender == beneficiary, 'ONLY_LOCK_MANAGER_OR_BENEFICIARY' ); _; } function _initializeMixinLockCore( address _beneficiary, uint _expirationDuration, uint _keyPrice, uint _maxNumberOfKeys ) internal { require(_expirationDuration <= 100 * 365 * 24 * 60 * 60, 'MAX_EXPIRATION_100_YEARS'); unlockProtocol = IUnlock(msg.sender); // Make sure we link back to Unlock's smart contract. beneficiary = _beneficiary; expirationDuration = _expirationDuration; keyPrice = _keyPrice; maxNumberOfKeys = _maxNumberOfKeys; } // The version number of the current implementation on this network function publicLockVersion( ) public pure returns (uint) { return 7; } /** * @dev Called by owner to withdraw all funds from the lock and send them to the `beneficiary`. * @param _tokenAddress specifies the token address to withdraw or 0 for ETH. This is usually * the same as `tokenAddress` in MixinFunds. * @param _amount specifies the max amount to withdraw, which may be reduced when * considering the available balance. Set to 0 or MAX_UINT to withdraw everything. * * TODO: consider allowing anybody to trigger this as long as it goes to owner anyway? * -- however be wary of draining funds as it breaks the `cancelAndRefund` and `expireAndRefundFor` * use cases. */ function withdraw( address _tokenAddress, uint _amount ) external onlyLockManagerOrBeneficiary { uint balance = getBalance(_tokenAddress, address(this)); uint amount; if(_amount == 0 || _amount > balance) { require(balance > 0, 'NOT_ENOUGH_FUNDS'); amount = balance; } else { amount = _amount; } emit Withdrawal(msg.sender, _tokenAddress, beneficiary, amount); // Security: re-entrancy not a risk as this is the last line of an external function _transfer(_tokenAddress, beneficiary, amount); } /** * A function which lets the owner of the lock change the pricing for future purchases. * This consists of 2 parts: The token address and the price in the given token. * In order to set the token to ETH, use 0 for the token Address. */ function updateKeyPricing( uint _keyPrice, address _tokenAddress ) external onlyLockManager onlyIfAlive { uint oldKeyPrice = keyPrice; address oldTokenAddress = tokenAddress; require( _tokenAddress == address(0) || IERC20(_tokenAddress).totalSupply() > 0, 'INVALID_TOKEN' ); keyPrice = _keyPrice; tokenAddress = _tokenAddress; emit PricingChanged(oldKeyPrice, keyPrice, oldTokenAddress, tokenAddress); } /** * A function which lets the owner of the lock update the beneficiary account, * which receives funds on withdrawal. */ function updateBeneficiary( address _beneficiary ) external { require(msg.sender == beneficiary || isLockManager(msg.sender), 'ONLY_BENEFICIARY_OR_LOCKMANAGER'); require(_beneficiary != address(0), 'INVALID_ADDRESS'); beneficiary = _beneficiary; } /** * @notice Allows a lock manager to add or remove an event hook */ function setEventHooks( address _onKeyPurchaseHook, address _onKeyCancelHook ) external onlyLockManager() { require(_onKeyPurchaseHook == address(0) || _onKeyPurchaseHook.isContract(), 'INVALID_ON_KEY_SOLD_HOOK'); require(_onKeyCancelHook == address(0) || _onKeyCancelHook.isContract(), 'INVALID_ON_KEY_CANCEL_HOOK'); onKeyPurchaseHook = ILockKeyPurchaseHook(_onKeyPurchaseHook); onKeyCancelHook = ILockKeyCancelHook(_onKeyCancelHook); } function totalSupply() public view returns(uint256) { return _totalSupply; } } // File: contracts\mixins\MixinKeys.sol pragma solidity 0.5.17; /** * @title Mixin for managing `Key` data, as well as the * Approval related functions needed to meet the ERC721 * standard. * @author HardlyDifficult * @dev `Mixins` are a design pattern seen in the 0x contracts. It simply * separates logically groupings of code to ease readability. */ contract MixinKeys is MixinLockCore { using SafeMath for uint; // The struct for a key struct Key { uint tokenId; uint expirationTimestamp; } // Emitted when the Lock owner expires a user's Key event ExpireKey(uint indexed tokenId); // Emitted when the expiration of a key is modified event ExpirationChanged( uint indexed _tokenId, uint _amount, bool _timeAdded ); event KeyManagerChanged(uint indexed _tokenId, address indexed _newManager); // Keys // Each owner can have at most exactly one key // TODO: could we use public here? (this could be confusing though because it getter will // return 0 values when missing a key) mapping (address => Key) internal keyByOwner; // Each tokenId can have at most exactly one owner at a time. // Returns 0 if the token does not exist // TODO: once we decouple tokenId from owner address (incl in js), then we can consider // merging this with totalSupply into an array instead. mapping (uint => address) internal _ownerOf; // Addresses of owners are also stored in an array. // Addresses are never removed by design to avoid abuses around referals address[] public owners; // A given key has both an owner and a manager. // If keyManager == address(0) then the key owner is also the manager // Each key can have at most 1 keyManager. mapping (uint => address) public keyManagerOf; // Keeping track of approved transfers // This is a mapping of addresses which have approved // the transfer of a key to another address where their key can be transferred // Note: the approver may actually NOT have a key... and there can only // be a single approved address mapping (uint => address) private approved; // Keeping track of approved operators for a given Key manager. // This approves a given operator for all keys managed by the calling "keyManager" // The caller may not currently be the keyManager for ANY keys. // These approvals are never reset/revoked automatically, unlike "approved", // which is reset on transfer. mapping (address => mapping (address => bool)) private managerToOperatorApproved; // Ensure that the caller is the keyManager of the key // or that the caller has been approved // for ownership of that key modifier onlyKeyManagerOrApproved( uint _tokenId ) { require( _isKeyManager(_tokenId, msg.sender) || _isApproved(_tokenId, msg.sender) || isApprovedForAll(_ownerOf[_tokenId], msg.sender), 'ONLY_KEY_MANAGER_OR_APPROVED' ); _; } // Ensures that an owner owns or has owned a key in the past modifier ownsOrHasOwnedKey( address _keyOwner ) { require( keyByOwner[_keyOwner].expirationTimestamp > 0, 'HAS_NEVER_OWNED_KEY' ); _; } // Ensures that an owner has a valid key modifier hasValidKey( address _user ) { require( getHasValidKey(_user), 'KEY_NOT_VALID' ); _; } // Ensures that a key has an owner modifier isKey( uint _tokenId ) { require( _ownerOf[_tokenId] != address(0), 'NO_SUCH_KEY' ); _; } // Ensure that the caller owns the key modifier onlyKeyOwner( uint _tokenId ) { require( isKeyOwner(_tokenId, msg.sender), 'ONLY_KEY_OWNER' ); _; } /** * In the specific case of a Lock, each owner can own only at most 1 key. * @return The number of NFTs owned by `_keyOwner`, either 0 or 1. */ function balanceOf( address _keyOwner ) public view returns (uint) { require(_keyOwner != address(0), 'INVALID_ADDRESS'); return getHasValidKey(_keyOwner) ? 1 : 0; } /** * Checks if the user has a non-expired key. */ function getHasValidKey( address _keyOwner ) public view returns (bool) { return keyByOwner[_keyOwner].expirationTimestamp > block.timestamp; } /** * @notice Find the tokenId for a given user * @return The tokenId of the NFT, else returns 0 */ function getTokenIdFor( address _account ) public view returns (uint) { return keyByOwner[_account].tokenId; } /** * A function which returns a subset of the keys for this Lock as an array * @param _page the page of key owners requested when faceted by page size * @param _pageSize the number of Key Owners requested per page */ function getOwnersByPage(uint _page, uint _pageSize) public view returns (address[] memory) { require(owners.length > 0, 'NO_OUTSTANDING_KEYS'); uint pageSize = _pageSize; uint _startIndex = _page * pageSize; uint endOfPageIndex; if (_startIndex + pageSize > owners.length) { endOfPageIndex = owners.length; pageSize = owners.length - _startIndex; } else { endOfPageIndex = (_startIndex + pageSize); } // new temp in-memory array to hold pageSize number of requested owners: address[] memory ownersByPage = new address[](pageSize); uint pageIndex = 0; // Build the requested set of owners into a new temporary array: for (uint i = _startIndex; i < endOfPageIndex; i++) { ownersByPage[pageIndex] = owners[i]; pageIndex++; } return ownersByPage; } /** * Checks if the given address owns the given tokenId. */ function isKeyOwner( uint _tokenId, address _keyOwner ) public view returns (bool) { return _ownerOf[_tokenId] == _keyOwner; } /** * @dev Returns the key's ExpirationTimestamp field for a given owner. * @param _keyOwner address of the user for whom we search the key * @dev Returns 0 if the owner has never owned a key for this lock */ function keyExpirationTimestampFor( address _keyOwner ) public view returns (uint) { return keyByOwner[_keyOwner].expirationTimestamp; } /** * Public function which returns the total number of unique owners (both expired * and valid). This may be larger than totalSupply. */ function numberOfOwners() public view returns (uint) { return owners.length; } // Returns the owner of a given tokenId function ownerOf( uint _tokenId ) public view isKey(_tokenId) returns(address) { return _ownerOf[_tokenId]; } /** * @notice Public function for updating transfer and cancel rights for a given key * @param _tokenId The id of the key to assign rights for * @param _keyManager The address with the manager's rights for the given key. * Setting _keyManager to address(0) means the keyOwner is also the keyManager */ function setKeyManagerOf( uint _tokenId, address _keyManager ) public isKey(_tokenId) { require( _isKeyManager(_tokenId, msg.sender) || isLockManager(msg.sender), 'UNAUTHORIZED_KEY_MANAGER_UPDATE' ); _setKeyManagerOf(_tokenId, _keyManager); } function _setKeyManagerOf( uint _tokenId, address _keyManager ) internal { if(keyManagerOf[_tokenId] != _keyManager) { keyManagerOf[_tokenId] = _keyManager; _clearApproval(_tokenId); emit KeyManagerChanged(_tokenId, address(0)); } } /** * This approves _approved to get ownership of _tokenId. * Note: that since this is used for both purchase and transfer approvals * the approved token may not exist. */ function approve( address _approved, uint _tokenId ) public onlyIfAlive onlyKeyManagerOrApproved(_tokenId) { require(msg.sender != _approved, 'APPROVE_SELF'); approved[_tokenId] = _approved; emit Approval(_ownerOf[_tokenId], _approved, _tokenId); } /** * @notice Get the approved address for a single NFT * @dev Throws if `_tokenId` is not a valid NFT. * @param _tokenId The NFT to find the approved address for * @return The approved address for this NFT, or the zero address if there is none */ function getApproved( uint _tokenId ) public view isKey(_tokenId) returns (address) { address approvedRecipient = approved[_tokenId]; return approvedRecipient; } /** * @dev Tells whether an operator is approved by a given keyManager * @param _owner owner address which you want to query the approval of * @param _operator operator address which you want to query the approval of * @return bool whether the given operator is approved by the given owner */ function isApprovedForAll( address _owner, address _operator ) public view returns (bool) { uint tokenId = keyByOwner[_owner].tokenId; address keyManager = keyManagerOf[tokenId]; if(keyManager == address(0)) { return managerToOperatorApproved[_owner][_operator]; } else { return managerToOperatorApproved[keyManager][_operator]; } } /** * Returns true if _keyManager is the manager of the key * identified by _tokenId */ function _isKeyManager( uint _tokenId, address _keyManager ) internal view returns (bool) { if(keyManagerOf[_tokenId] == _keyManager || (keyManagerOf[_tokenId] == address(0) && isKeyOwner(_tokenId, _keyManager))) { return true; } else { return false; } } /** * Assigns the key a new tokenId (from totalSupply) if it does not already have * one assigned. */ function _assignNewTokenId( Key storage _key ) internal { if (_key.tokenId == 0) { // This is a brand new owner // We increment the tokenId counter _totalSupply++; // we assign the incremented `_totalSupply` as the tokenId for the new key _key.tokenId = _totalSupply; } } /** * Records the owner of a given tokenId */ function _recordOwner( address _keyOwner, uint _tokenId ) internal { if (_ownerOf[_tokenId] != _keyOwner) { // TODO: this may include duplicate entries owners.push(_keyOwner); // We register the owner of the tokenID _ownerOf[_tokenId] = _keyOwner; } } /** * @notice Modify the expirationTimestamp of a key * by a given amount. * @param _tokenId The ID of the key to modify. * @param _deltaT The amount of time in seconds by which * to modify the keys expirationTimestamp * @param _addTime Choose whether to increase or decrease * expirationTimestamp (false == decrease, true == increase) * @dev Throws if owner does not have a valid key. */ function _timeMachine( uint _tokenId, uint256 _deltaT, bool _addTime ) internal { address tokenOwner = _ownerOf[_tokenId]; require(tokenOwner != address(0), 'NON_EXISTENT_KEY'); Key storage key = keyByOwner[tokenOwner]; uint formerTimestamp = key.expirationTimestamp; bool validKey = getHasValidKey(tokenOwner); if(_addTime) { if(validKey) { key.expirationTimestamp = formerTimestamp.add(_deltaT); } else { key.expirationTimestamp = block.timestamp.add(_deltaT); } } else { key.expirationTimestamp = formerTimestamp.sub(_deltaT); } emit ExpirationChanged(_tokenId, _deltaT, _addTime); } /** * @dev Sets or unsets the approval of a given operator * An operator is allowed to transfer all tokens of the sender on their behalf * @param _to operator address to set the approval * @param _approved representing the status of the approval to be set */ function setApprovalForAll( address _to, bool _approved ) public onlyIfAlive { require(_to != msg.sender, 'APPROVE_SELF'); managerToOperatorApproved[msg.sender][_to] = _approved; emit ApprovalForAll(msg.sender, _to, _approved); } /** * @dev Checks if the given user is approved to transfer the tokenId. */ function _isApproved( uint _tokenId, address _user ) internal view returns (bool) { return approved[_tokenId] == _user; } /** * @dev Function to clear current approval of a given token ID * @param _tokenId uint256 ID of the token to be transferred */ function _clearApproval( uint256 _tokenId ) internal { if (approved[_tokenId] != address(0)) { approved[_tokenId] = address(0); } } } // File: contracts\mixins\MixinERC721Enumerable.sol pragma solidity 0.5.17; /** * @title Implements the ERC-721 Enumerable extension. */ contract MixinERC721Enumerable is IERC721Enumerable, ERC165, MixinLockCore, // Implements totalSupply MixinKeys { function _initializeMixinERC721Enumerable() internal { /** * register the supported interface to conform to ERC721Enumerable via ERC165 * 0x780e9d63 === * bytes4(keccak256('totalSupply()')) ^ * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^ * bytes4(keccak256('tokenByIndex(uint256)')) */ _registerInterface(0x780e9d63); } /// @notice Enumerate valid NFTs /// @dev Throws if `_index` >= `totalSupply()`. /// @param _index A counter less than `totalSupply()` /// @return The token identifier for the `_index`th NFT, /// (sort order not specified) function tokenByIndex( uint256 _index ) public view returns (uint256) { require(_index < _totalSupply, 'OUT_OF_RANGE'); return _index; } /// @notice Enumerate NFTs assigned to an owner /// @dev Throws if `_index` >= `balanceOf(_keyOwner)` or if /// `_keyOwner` is the zero address, representing invalid NFTs. /// @param _keyOwner An address where we are interested in NFTs owned by them /// @param _index A counter less than `balanceOf(_keyOwner)` /// @return The token identifier for the `_index`th NFT assigned to `_keyOwner`, /// (sort order not specified) function tokenOfOwnerByIndex( address _keyOwner, uint256 _index ) public view returns (uint256) { require(_index == 0, 'ONLY_ONE_KEY_PER_OWNER'); return getTokenIdFor(_keyOwner); } } // File: contracts\mixins\MixinKeyGranterRole.sol pragma solidity 0.5.17; // This contract mostly follows the pattern established by openzeppelin in // openzeppelin/contracts-ethereum-package/contracts/access/roles contract MixinKeyGranterRole is MixinLockManagerRole { using Roles for Roles.Role; event KeyGranterAdded(address indexed account); event KeyGranterRemoved(address indexed account); Roles.Role private keyGranters; function _initializeMixinKeyGranterRole(address sender) internal { if (!isKeyGranter(sender)) { keyGranters.add(sender); } } modifier onlyKeyGranterOrManager() { require(isKeyGranter(msg.sender) || isLockManager(msg.sender), 'MixinKeyGranter: caller does not have the KeyGranter or LockManager role'); _; } function isKeyGranter(address account) public view returns (bool) { return keyGranters.has(account); } function addKeyGranter(address account) public onlyLockManager { keyGranters.add(account); emit KeyGranterAdded(account); } function revokeKeyGranter(address _granter) public onlyLockManager { keyGranters.remove(_granter); emit KeyGranterRemoved(_granter); } } // File: contracts\mixins\MixinGrantKeys.sol pragma solidity 0.5.17; /** * @title Mixin allowing the Lock owner to grant / gift keys to users. * @author HardlyDifficult * @dev `Mixins` are a design pattern seen in the 0x contracts. It simply * separates logically groupings of code to ease readability. */ contract MixinGrantKeys is MixinKeyGranterRole, MixinKeys { /** * Allows the Lock owner to give a collection of users a key with no charge. * Each key may be assigned a different expiration date. */ function grantKeys( address[] calldata _recipients, uint[] calldata _expirationTimestamps, address[] calldata _keyManagers ) external onlyKeyGranterOrManager { for(uint i = 0; i < _recipients.length; i++) { address recipient = _recipients[i]; uint expirationTimestamp = _expirationTimestamps[i]; address keyManager = _keyManagers[i]; require(recipient != address(0), 'INVALID_ADDRESS'); Key storage toKey = keyByOwner[recipient]; require(expirationTimestamp > toKey.expirationTimestamp, 'ALREADY_OWNS_KEY'); uint idTo = toKey.tokenId; if(idTo == 0) { _assignNewTokenId(toKey); idTo = toKey.tokenId; _recordOwner(recipient, idTo); } // Set the key Manager _setKeyManagerOf(idTo, keyManager); emit KeyManagerChanged(idTo, keyManager); toKey.expirationTimestamp = expirationTimestamp; // trigger event emit Transfer( address(0), // This is a creation. recipient, idTo ); } } } // File: contracts\UnlockUtils.sol pragma solidity 0.5.17; // This contract provides some utility methods for use with the unlock protocol smart contracts. // Borrowed from: // https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol#L943 library UnlockUtils { function strConcat( string memory _a, string memory _b, string memory _c, string memory _d ) internal pure returns (string memory _concatenatedString) { return string(abi.encodePacked(_a, _b, _c, _d)); } function uint2Str( uint _i ) internal pure returns (string memory _uintAsString) { // make a copy of the param to avoid security/no-assign-params error uint c = _i; if (_i == 0) { return '0'; } uint j = _i; uint len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint k = len - 1; while (c != 0) { bstr[k--] = byte(uint8(48 + c % 10)); c /= 10; } return string(bstr); } function address2Str( address _addr ) internal pure returns(string memory) { bytes32 value = bytes32(uint256(_addr)); bytes memory alphabet = '0123456789abcdef'; bytes memory str = new bytes(42); str[0] = '0'; str[1] = 'x'; for (uint i = 0; i < 20; i++) { str[2+i*2] = alphabet[uint8(value[i + 12] >> 4)]; str[3+i*2] = alphabet[uint8(value[i + 12] & 0x0f)]; } return string(str); } } // File: contracts\mixins\MixinLockMetadata.sol pragma solidity 0.5.17; /** * @title Mixin for metadata about the Lock. * @author HardlyDifficult * @dev `Mixins` are a design pattern seen in the 0x contracts. It simply * separates logically groupings of code to ease readability. */ contract MixinLockMetadata is IERC721Enumerable, ERC165, MixinLockManagerRole, MixinLockCore, MixinKeys { using UnlockUtils for uint; using UnlockUtils for address; using UnlockUtils for string; /// A descriptive name for a collection of NFTs in this contract.Defaults to "Unlock-Protocol" but is settable by lock owner string public name; /// An abbreviated name for NFTs in this contract. Defaults to "KEY" but is settable by lock owner string private lockSymbol; // the base Token URI for this Lock. If not set by lock owner, the global URI stored in Unlock is used. string private baseTokenURI; event NewLockSymbol( string symbol ); function _initializeMixinLockMetadata( string memory _lockName ) internal { ERC165.initialize(); name = _lockName; // registering the optional erc721 metadata interface with ERC165.sol using // the ID specified in the standard: https://eips.ethereum.org/EIPS/eip-721 _registerInterface(0x5b5e139f); } /** * Allows the Lock owner to assign a descriptive name for this Lock. */ function updateLockName( string calldata _lockName ) external onlyLockManager { name = _lockName; } /** * Allows the Lock owner to assign a Symbol for this Lock. */ function updateLockSymbol( string calldata _lockSymbol ) external onlyLockManager { lockSymbol = _lockSymbol; emit NewLockSymbol(_lockSymbol); } /** * @dev Gets the token symbol * @return string representing the token name */ function symbol() external view returns(string memory) { if(bytes(lockSymbol).length == 0) { return unlockProtocol.globalTokenSymbol(); } else { return lockSymbol; } } /** * Allows the Lock owner to update the baseTokenURI for this Lock. */ function setBaseTokenURI( string calldata _baseTokenURI ) external onlyLockManager { baseTokenURI = _baseTokenURI; } /** @notice A distinct Uniform Resource Identifier (URI) for a given asset. * @dev Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC * 3986. The URI may point to a JSON file that conforms to the "ERC721 * Metadata JSON Schema". * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md */ function tokenURI( uint256 _tokenId ) external view isKey(_tokenId) returns(string memory) { string memory URI; if(bytes(baseTokenURI).length == 0) { URI = unlockProtocol.globalBaseTokenURI(); } else { URI = baseTokenURI; } return URI.strConcat( address(this).address2Str(), '/', _tokenId.uint2Str() ); } } // File: contracts\mixins\MixinPurchase.sol pragma solidity 0.5.17; /** * @title Mixin for the purchase-related functions. * @author HardlyDifficult * @dev `Mixins` are a design pattern seen in the 0x contracts. It simply * separates logically groupings of code to ease readability. */ contract MixinPurchase is MixinFunds, MixinDisable, MixinLockCore, MixinKeys { using SafeMath for uint; event RenewKeyPurchase(address indexed owner, uint newExpiration); /** * @dev Purchase function * @param _value the number of tokens to pay for this purchase >= the current keyPrice - any applicable discount * (_value is ignored when using ETH) * @param _recipient address of the recipient of the purchased key * @param _referrer address of the user making the referral * @param _data arbitrary data populated by the front-end which initiated the sale * @dev Setting _value to keyPrice exactly doubles as a security feature. That way if the lock owner increases the * price while my transaction is pending I can't be charged more than I expected (only applicable to ERC-20 when more * than keyPrice is approved for spending). */ function purchase( uint256 _value, address _recipient, address _referrer, bytes calldata _data ) external payable onlyIfAlive notSoldOut { require(_recipient != address(0), 'INVALID_ADDRESS'); // Assign the key Key storage toKey = keyByOwner[_recipient]; uint idTo = toKey.tokenId; uint newTimeStamp; if (idTo == 0) { // Assign a new tokenId (if a new owner or previously transferred) _assignNewTokenId(toKey); // refresh the cached value idTo = toKey.tokenId; _recordOwner(_recipient, idTo); newTimeStamp = block.timestamp + expirationDuration; toKey.expirationTimestamp = newTimeStamp; // trigger event emit Transfer( address(0), // This is a creation. _recipient, idTo ); } else if (toKey.expirationTimestamp > block.timestamp) { // This is an existing owner trying to extend their key newTimeStamp = toKey.expirationTimestamp.add(expirationDuration); toKey.expirationTimestamp = newTimeStamp; emit RenewKeyPurchase(_recipient, newTimeStamp); } else { // This is an existing owner trying to renew their expired key // SafeAdd is not required here since expirationDuration is capped to a tiny value // (relative to the size of a uint) newTimeStamp = block.timestamp + expirationDuration; toKey.expirationTimestamp = newTimeStamp; // reset the key Manager to 0x00 _setKeyManagerOf(idTo, address(0)); emit RenewKeyPurchase(_recipient, newTimeStamp); } (uint inMemoryKeyPrice, uint discount, uint tokens) = _purchasePriceFor(_recipient, _referrer, _data); if (discount > 0) { unlockProtocol.recordConsumedDiscount(discount, tokens); } // Record price without any tips unlockProtocol.recordKeyPurchase(inMemoryKeyPrice, getHasValidKey(_referrer) ? _referrer : address(0)); // We explicitly allow for greater amounts of ETH or tokens to allow 'donations' uint pricePaid; if(tokenAddress != address(0)) { pricePaid = _value; IERC20 token = IERC20(tokenAddress); token.safeTransferFrom(msg.sender, address(this), _value); } else { pricePaid = msg.value; } require(pricePaid >= inMemoryKeyPrice, 'INSUFFICIENT_VALUE'); if(address(onKeyPurchaseHook) != address(0)) { onKeyPurchaseHook.onKeyPurchase(msg.sender, _recipient, _referrer, _data, inMemoryKeyPrice, pricePaid); } } /** * @notice returns the minimum price paid for a purchase with these params. * @dev minKeyPrice considers any discount from Unlock or the OnKeyPurchase hook */ function purchasePriceFor( address _recipient, address _referrer, bytes calldata _data ) external view returns (uint minKeyPrice) { (minKeyPrice, , ) = _purchasePriceFor(_recipient, _referrer, _data); } /** * @notice returns the minimum price paid for a purchase with these params. * @dev minKeyPrice considers any discount from Unlock or the OnKeyPurchase hook * unlockDiscount and unlockTokens are the values returned from `computeAvailableDiscountFor` */ function _purchasePriceFor( address _recipient, address _referrer, bytes memory _data ) internal view returns (uint minKeyPrice, uint unlockDiscount, uint unlockTokens) { if(address(onKeyPurchaseHook) != address(0)) { minKeyPrice = onKeyPurchaseHook.keyPurchasePrice(msg.sender, _recipient, _referrer, _data); } else { minKeyPrice = keyPrice; } if(minKeyPrice > 0) { (unlockDiscount, unlockTokens) = unlockProtocol.computeAvailableDiscountFor(_recipient, minKeyPrice); require(unlockDiscount <= minKeyPrice, 'INVALID_DISCOUNT_FROM_UNLOCK'); minKeyPrice -= unlockDiscount; } } } // File: @openzeppelin\contracts-ethereum-package\contracts\cryptography\ECDSA.sol pragma solidity ^0.5.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * NOTE: This call _does not revert_ if the signature is invalid, or * if the signer is otherwise unable to be retrieved. In those scenarios, * the zero address is returned. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length if (signature.length != 65) { return (address(0)); } // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return address(0); } if (v != 27 && v != 28) { return address(0); } // If the signature is valid (and not malleable), return the signer address return ecrecover(hash, v, r, s); } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * replicates the behavior of the * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`] * JSON-RPC method. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } } // File: contracts\mixins\MixinSignatures.sol pragma solidity 0.5.17; contract MixinSignatures { /// @notice emits anytime the nonce used for off-chain approvals changes. event NonceChanged( address indexed keyManager, uint nextAvailableNonce ); // Stores a nonce per user to use for signed messages mapping(address => uint) public keyManagerToNonce; /// @notice Validates an off-chain approval signature. /// @dev If valid the nonce is consumed, else revert. modifier consumeOffchainApproval( bytes32 _hash, address _keyManager, uint8 _v, bytes32 _r, bytes32 _s ) { require( ecrecover( ECDSA.toEthSignedMessageHash(_hash), _v, _r, _s ) == _keyManager, 'INVALID_SIGNATURE' ); keyManagerToNonce[_keyManager]++; emit NonceChanged(_keyManager, keyManagerToNonce[_keyManager]); _; } /** * @notice Sets the minimum nonce for a valid off-chain approval message from the * senders account. * @dev This can be used to invalidate a previously signed message. */ function invalidateOffchainApproval( uint _nextAvailableNonce ) external { require(_nextAvailableNonce > keyManagerToNonce[msg.sender], 'NONCE_ALREADY_USED'); keyManagerToNonce[msg.sender] = _nextAvailableNonce; emit NonceChanged(msg.sender, _nextAvailableNonce); } } // File: contracts\mixins\MixinRefunds.sol pragma solidity 0.5.17; contract MixinRefunds is MixinLockManagerRole, MixinSignatures, MixinFunds, MixinLockCore, MixinKeys { using SafeMath for uint; // CancelAndRefund will return funds based on time remaining minus this penalty. // This is calculated as `proRatedRefund * refundPenaltyBasisPoints / BASIS_POINTS_DEN`. uint public refundPenaltyBasisPoints; uint public freeTrialLength; /// @notice The typehash per the EIP-712 standard /// @dev This can be computed in JS instead of read from the contract bytes32 private constant CANCEL_TYPEHASH = keccak256('cancelAndRefundFor(address _keyOwner)'); event CancelKey( uint indexed tokenId, address indexed owner, address indexed sendTo, uint refund ); event RefundPenaltyChanged( uint freeTrialLength, uint refundPenaltyBasisPoints ); function _initializeMixinRefunds() internal { // default to 10% refundPenaltyBasisPoints = 1000; } /** * @dev Invoked by the lock owner to destroy the user's ket and perform a refund and cancellation * of the key */ function expireAndRefundFor( address _keyOwner, uint amount ) external onlyLockManager hasValidKey(_keyOwner) { _cancelAndRefund(_keyOwner, amount); } /** * @dev Destroys the key and sends a refund based on the amount of time remaining. * @param _tokenId The id of the key to cancel. */ function cancelAndRefund(uint _tokenId) external onlyKeyManagerOrApproved(_tokenId) { address keyOwner = ownerOf(_tokenId); uint refund = _getCancelAndRefundValue(keyOwner); _cancelAndRefund(keyOwner, refund); } /** * @dev Cancels a key managed by a different user and sends the funds to the msg.sender. * @param _keyManager the key managed by this user will be canceled * @param _v _r _s getCancelAndRefundApprovalHash signed by the _keyOwner * @param _tokenId The key to cancel */ function cancelAndRefundFor( address _keyManager, uint8 _v, bytes32 _r, bytes32 _s, uint _tokenId ) external consumeOffchainApproval( getCancelAndRefundApprovalHash(_keyManager, msg.sender), _keyManager, _v, _r, _s ) { address keyOwner = ownerOf(_tokenId); uint refund = _getCancelAndRefundValue(keyOwner); _cancelAndRefund(keyOwner, refund); } /** * Allow the owner to change the refund penalty. */ function updateRefundPenalty( uint _freeTrialLength, uint _refundPenaltyBasisPoints ) external onlyLockManager { emit RefundPenaltyChanged( _freeTrialLength, _refundPenaltyBasisPoints ); freeTrialLength = _freeTrialLength; refundPenaltyBasisPoints = _refundPenaltyBasisPoints; } /** * @dev Determines how much of a refund a key owner would receive if they issued * a cancelAndRefund block.timestamp. * Note that due to the time required to mine a tx, the actual refund amount will be lower * than what the user reads from this call. */ function getCancelAndRefundValueFor( address _keyOwner ) external view returns (uint refund) { return _getCancelAndRefundValue(_keyOwner); } /** * @notice returns the hash to sign in order to allow another user to cancel on your behalf. * @dev this can be computed in JS instead of read from the contract. * @param _keyManager The key manager's address (also the message signer) * @param _txSender The address cancelling cancel on behalf of the keyOwner * @return approvalHash The hash to sign */ function getCancelAndRefundApprovalHash( address _keyManager, address _txSender ) public view returns (bytes32 approvalHash) { return keccak256( abi.encodePacked( // Approval is specific to this Lock address(this), // The specific function the signer is approving CANCEL_TYPEHASH, // Approval enables only one cancel call keyManagerToNonce[_keyManager], // Approval allows only one account to broadcast the tx _txSender ) ); } /** * @dev cancels the key for the given keyOwner and sends the refund to the msg.sender. */ function _cancelAndRefund( address _keyOwner, uint refund ) internal { Key storage key = keyByOwner[_keyOwner]; emit CancelKey(key.tokenId, _keyOwner, msg.sender, refund); // expirationTimestamp is a proxy for hasKey, setting this to `block.timestamp` instead // of 0 so that we can still differentiate hasKey from hasValidKey. key.expirationTimestamp = block.timestamp; if (refund > 0) { // Security: doing this last to avoid re-entrancy concerns _transfer(tokenAddress, _keyOwner, refund); } // inform the hook if there is one registered if(address(onKeyCancelHook) != address(0)) { onKeyCancelHook.onKeyCancel(msg.sender, _keyOwner, refund); } } /** * @dev Determines how much of a refund a key owner would receive if they issued * a cancelAndRefund now. * @param _keyOwner The owner of the key check the refund value for. */ function _getCancelAndRefundValue( address _keyOwner ) private view hasValidKey(_keyOwner) returns (uint refund) { Key storage key = keyByOwner[_keyOwner]; // Math: safeSub is not required since `hasValidKey` confirms timeRemaining is positive uint timeRemaining = key.expirationTimestamp - block.timestamp; if(timeRemaining + freeTrialLength >= expirationDuration) { refund = keyPrice; } else { // Math: using safeMul in case keyPrice or timeRemaining is very large refund = keyPrice.mul(timeRemaining) / expirationDuration; } // Apply the penalty if this is not a free trial if(freeTrialLength == 0 || timeRemaining + freeTrialLength < expirationDuration) { uint penalty = keyPrice.mul(refundPenaltyBasisPoints) / BASIS_POINTS_DEN; if (refund > penalty) { // Math: safeSub is not required since the if confirms this won't underflow refund -= penalty; } else { refund = 0; } } } } // File: @openzeppelin\contracts-ethereum-package\contracts\token\ERC721\IERC721Receiver.sol pragma solidity ^0.5.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ contract IERC721Receiver { /** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient * after a {IERC721-safeTransferFrom}. This function MUST return the function selector, * otherwise the caller will revert the transaction. The selector to be * returned can be obtained as `this.onERC721Received.selector`. This * function MAY throw to revert and reject the transfer. * Note: the ERC721 contract address is always the message sender. * @param operator The address which called `safeTransferFrom` function * @param from The address which previously owned the token * @param tokenId The NFT identifier which is being transferred * @param data Additional data with no specified format * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` */ function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data) public returns (bytes4); } // File: contracts\mixins\MixinTransfer.sol pragma solidity 0.5.17; /** * @title Mixin for the transfer-related functions needed to meet the ERC721 * standard. * @author Nick Furfaro * @dev `Mixins` are a design pattern seen in the 0x contracts. It simply * separates logically groupings of code to ease readability. */ contract MixinTransfer is MixinLockManagerRole, MixinFunds, MixinLockCore, MixinKeys { using SafeMath for uint; using Address for address; event TransferFeeChanged( uint transferFeeBasisPoints ); // 0x150b7a02 == bytes4(keccak256('onERC721Received(address,address,uint256,bytes)')) bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // The fee relative to keyPrice to charge when transfering a Key to another account // (potentially on a 0x marketplace). // This is calculated as `keyPrice * transferFeeBasisPoints / BASIS_POINTS_DEN`. uint public transferFeeBasisPoints; /** * @notice Allows the key owner to safely share their key (parent key) by * transferring a portion of the remaining time to a new key (child key). * @param _to The recipient of the shared key * @param _tokenId the key to share * @param _timeShared The amount of time shared */ function shareKey( address _to, uint _tokenId, uint _timeShared ) public onlyIfAlive onlyKeyManagerOrApproved(_tokenId) { require(transferFeeBasisPoints < BASIS_POINTS_DEN, 'KEY_TRANSFERS_DISABLED'); require(_to != address(0), 'INVALID_ADDRESS'); address keyOwner = _ownerOf[_tokenId]; require(getHasValidKey(keyOwner), 'KEY_NOT_VALID'); Key storage fromKey = keyByOwner[keyOwner]; Key storage toKey = keyByOwner[_to]; uint idTo = toKey.tokenId; uint time; // get the remaining time for the origin key uint timeRemaining = fromKey.expirationTimestamp - block.timestamp; // get the transfer fee based on amount of time wanted share uint fee = getTransferFee(keyOwner, _timeShared); uint timePlusFee = _timeShared.add(fee); // ensure that we don't try to share too much if(timePlusFee < timeRemaining) { // now we can safely set the time time = _timeShared; // deduct time from parent key, including transfer fee _timeMachine(_tokenId, timePlusFee, false); } else { // we have to recalculate the fee here fee = getTransferFee(keyOwner, timeRemaining); time = timeRemaining - fee; fromKey.expirationTimestamp = block.timestamp; // Effectively expiring the key emit ExpireKey(_tokenId); } if (idTo == 0) { _assignNewTokenId(toKey); idTo = toKey.tokenId; _recordOwner(_to, idTo); emit Transfer( address(0), // This is a creation or time-sharing _to, idTo ); } else if (toKey.expirationTimestamp <= block.timestamp) { // reset the key Manager for expired keys _setKeyManagerOf(idTo, address(0)); } // add time to new key _timeMachine(idTo, time, true); // trigger event emit Transfer( keyOwner, _to, idTo ); require(_checkOnERC721Received(keyOwner, _to, _tokenId, ''), 'NON_COMPLIANT_ERC721_RECEIVER'); } function transferFrom( address _from, address _recipient, uint _tokenId ) public onlyIfAlive hasValidKey(_from) onlyKeyManagerOrApproved(_tokenId) { require(isKeyOwner(_tokenId, _from), 'TRANSFER_FROM: NOT_KEY_OWNER'); require(transferFeeBasisPoints < BASIS_POINTS_DEN, 'KEY_TRANSFERS_DISABLED'); require(_recipient != address(0), 'INVALID_ADDRESS'); uint fee = getTransferFee(_from, 0); Key storage fromKey = keyByOwner[_from]; Key storage toKey = keyByOwner[_recipient]; uint previousExpiration = toKey.expirationTimestamp; // subtract the fee from the senders key before the transfer _timeMachine(_tokenId, fee, false); if (toKey.tokenId == 0) { toKey.tokenId = _tokenId; _recordOwner(_recipient, _tokenId); // Clear any previous approvals _clearApproval(_tokenId); } if (previousExpiration <= block.timestamp) { // The recipient did not have a key, or had a key but it expired. The new expiration is the sender's key expiration // An expired key is no longer a valid key, so the new tokenID is the sender's tokenID toKey.expirationTimestamp = fromKey.expirationTimestamp; toKey.tokenId = _tokenId; // Reset the key Manager to the key owner _setKeyManagerOf(_tokenId, address(0)); _recordOwner(_recipient, _tokenId); } else { // The recipient has a non expired key. We just add them the corresponding remaining time // SafeSub is not required since the if confirms `previousExpiration - block.timestamp` cannot underflow toKey.expirationTimestamp = fromKey .expirationTimestamp.add(previousExpiration - block.timestamp); } // Effectively expiring the key for the previous owner fromKey.expirationTimestamp = block.timestamp; // Set the tokenID to 0 for the previous owner to avoid duplicates fromKey.tokenId = 0; // trigger event emit Transfer( _from, _recipient, _tokenId ); } /** * @notice Transfers the ownership of an NFT from one address to another address * @dev This works identically to the other function with an extra data parameter, * except this function just sets data to '' * @param _from The current owner of the NFT * @param _to The new owner * @param _tokenId The NFT to transfer */ function safeTransferFrom( address _from, address _to, uint _tokenId ) public { safeTransferFrom(_from, _to, _tokenId, ''); } /** * @notice Transfers the ownership of an NFT from one address to another address. * When transfer is complete, this functions * checks if `_to` is a smart contract (code size > 0). If so, it calls * `onERC721Received` on `_to` and throws if the return value is not * `bytes4(keccak256('onERC721Received(address,address,uint,bytes)'))`. * @param _from The current owner of the NFT * @param _to The new owner * @param _tokenId The NFT to transfer * @param _data Additional data with no specified format, sent in call to `_to` */ function safeTransferFrom( address _from, address _to, uint _tokenId, bytes memory _data ) public { transferFrom(_from, _to, _tokenId); require(_checkOnERC721Received(_from, _to, _tokenId, _data), 'NON_COMPLIANT_ERC721_RECEIVER'); } /** * Allow the Lock owner to change the transfer fee. */ function updateTransferFee( uint _transferFeeBasisPoints ) external onlyLockManager { emit TransferFeeChanged( _transferFeeBasisPoints ); transferFeeBasisPoints = _transferFeeBasisPoints; } /** * Determines how much of a fee a key owner would need to pay in order to * transfer the key to another account. This is pro-rated so the fee goes down * overtime. * @param _keyOwner The owner of the key check the transfer fee for. */ function getTransferFee( address _keyOwner, uint _time ) public view hasValidKey(_keyOwner) returns (uint) { Key storage key = keyByOwner[_keyOwner]; uint timeToTransfer; uint fee; // Math: safeSub is not required since `hasValidKey` confirms timeToTransfer is positive // this is for standard key transfers if(_time == 0) { timeToTransfer = key.expirationTimestamp - block.timestamp; } else { timeToTransfer = _time; } fee = timeToTransfer.mul(transferFeeBasisPoints) / BASIS_POINTS_DEN; return fee; } /** * @dev Internal function to invoke `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 whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) internal returns (bool) { if (!to.isContract()) { return true; } bytes4 retval = IERC721Receiver(to).onERC721Received( msg.sender, from, tokenId, _data); return (retval == _ERC721_RECEIVED); } } // File: contracts\PublicLock.sol pragma solidity 0.5.17; /** * @title The Lock contract * @author Julien Genestoux (unlock-protocol.com) * @dev ERC165 allows our contract to be queried to determine whether it implements a given interface. * Every ERC-721 compliant contract must implement the ERC165 interface. * https://eips.ethereum.org/EIPS/eip-721 */ contract PublicLock is IPublicLock, Initializable, ERC165, MixinLockManagerRole, MixinKeyGranterRole, MixinSignatures, MixinFunds, MixinDisable, MixinLockCore, MixinKeys, MixinLockMetadata, MixinERC721Enumerable, MixinGrantKeys, MixinPurchase, MixinTransfer, MixinRefunds { function initialize( address _lockCreator, uint _expirationDuration, address _tokenAddress, uint _keyPrice, uint _maxNumberOfKeys, string memory _lockName ) public initializer() { MixinFunds._initializeMixinFunds(_tokenAddress); MixinDisable._initializeMixinDisable(); MixinLockCore._initializeMixinLockCore(_lockCreator, _expirationDuration, _keyPrice, _maxNumberOfKeys); MixinLockMetadata._initializeMixinLockMetadata(_lockName); MixinERC721Enumerable._initializeMixinERC721Enumerable(); MixinRefunds._initializeMixinRefunds(); MixinLockManagerRole._initializeMixinLockManagerRole(_lockCreator); MixinKeyGranterRole._initializeMixinKeyGranterRole(_lockCreator); // registering the interface for erc721 with ERC165.sol using // the ID specified in the standard: https://eips.ethereum.org/EIPS/eip-721 _registerInterface(0x80ac58cd); } /** * @notice Allow the contract to accept tips in ETH sent directly to the contract. * @dev This is okay to use even if the lock is priced in ERC-20 tokens */ function() external payable {} }
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"sendTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"refund","type":"uint256"}],"name":"CancelKey","type":"event"},{"anonymous":false,"inputs":[],"name":"Disable","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"_timeAdded","type":"bool"}],"name":"ExpirationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ExpireKey","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"KeyGranterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"KeyGranterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_newManager","type":"address"}],"name":"KeyManagerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"LockManagerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"LockManagerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"symbol","type":"string"}],"name":"NewLockSymbol","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"keyManager","type":"address"},{"indexed":false,"internalType":"uint256","name":"nextAvailableNonce","type":"uint256"}],"name":"NonceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldKeyPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"keyPrice","type":"uint256"},{"indexed":false,"internalType":"address","name":"oldTokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"PricingChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"freeTrialLength","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"refundPenaltyBasisPoints","type":"uint256"}],"name":"RefundPenaltyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"newExpiration","type":"uint256"}],"name":"RenewKeyPurchase","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":"uint256","name":"transferFeeBasisPoints","type":"uint256"}],"name":"TransferFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addKeyGranter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addLockManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_approved","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"cancelAndRefund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_keyManager","type":"address"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"cancelAndRefundFor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"disableLock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"expirationDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"expireAndRefundFor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"freeTrialLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"address","name":"_account","type":"address"}],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyManager","type":"address"},{"internalType":"address","name":"_txSender","type":"address"}],"name":"getCancelAndRefundApprovalHash","outputs":[{"internalType":"bytes32","name":"approvalHash","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"}],"name":"getCancelAndRefundValueFor","outputs":[{"internalType":"uint256","name":"refund","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"}],"name":"getHasValidKey","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_page","type":"uint256"},{"internalType":"uint256","name":"_pageSize","type":"uint256"}],"name":"getOwnersByPage","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getTokenIdFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"},{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"getTransferFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_expirationTimestamps","type":"uint256[]"},{"internalType":"address[]","name":"_keyManagers","type":"address[]"}],"name":"grantKeys","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_lockCreator","type":"address"},{"internalType":"uint256","name":"_expirationDuration","type":"uint256"},{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_keyPrice","type":"uint256"},{"internalType":"uint256","name":"_maxNumberOfKeys","type":"uint256"},{"internalType":"string","name":"_lockName","type":"string"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_nextAvailableNonce","type":"uint256"}],"name":"invalidateOffchainApproval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isAlive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isKeyGranter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_keyOwner","type":"address"}],"name":"isKeyOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isLockManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"}],"name":"keyExpirationTimestampFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"keyManagerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"keyManagerToNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"keyPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxNumberOfKeys","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"numberOfOwners","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"onKeyCancelHook","outputs":[{"internalType":"contract ILockKeyCancelHook","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"onKeyPurchaseHook","outputs":[{"internalType":"contract ILockKeyPurchaseHook","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"owners","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"publicLockVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_referrer","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"purchase","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_referrer","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"purchasePriceFor","outputs":[{"internalType":"uint256","name":"minKeyPrice","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"refundPenaltyBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceLockManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_granter","type":"address"}],"name":"revokeKeyGranter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"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":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_onKeyPurchaseHook","type":"address"},{"internalType":"address","name":"_onKeyCancelHook","type":"address"}],"name":"setEventHooks","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_keyManager","type":"address"}],"name":"setKeyManagerOf","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_timeShared","type":"uint256"}],"name":"shareKey","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"transferFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"unlockProtocol","outputs":[{"internalType":"contract IUnlock","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"updateBeneficiary","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_keyPrice","type":"uint256"},{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"updateKeyPricing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_lockName","type":"string"}],"name":"updateLockName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_lockSymbol","type":"string"}],"name":"updateLockSymbol","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_freeTrialLength","type":"uint256"},{"internalType":"uint256","name":"_refundPenaltyBasisPoints","type":"uint256"}],"name":"updateRefundPenalty","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_transferFeeBasisPoints","type":"uint256"}],"name":"updateTransferFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50615a3c80620000216000396000f3fe6080604052600436106103fa5760003560e01c80636eadde4311610213578063aae4b8f711610123578063d2503485116100ab578063f0ba60401161007a578063f0ba60401461137d578063f12c6b6e14611392578063f3fef3a3146113d1578063fc42b58f1461140a578063fe72e4c114611443576103fa565b8063d2503485146112aa578063d32bfb6c146112dd578063d4fac45d14611307578063e985e9c514611342576103fa565b8063b2e0f6e7116100f2578063b2e0f6e714611137578063b88d4fde14611185578063c1c98d0314611256578063c87b56dd1461126b578063d1bbd49c14611295576103fa565b8063aae4b8f71461105d578063abdf82ce14611090578063ad0e0a4d146110c3578063b11d7ec1146110fe576103fa565b806393fd1844116101a6578063994a8a7111610175578063994a8a7114610f865780639d76ea5814610fbf578063a22cb46514610fd4578063a2e4cd2e1461100f578063a375cb0514611048576103fa565b806393fd184414610ef057806395d89b4114610f05578063970aaeb714610f1a57806397aa390a14610f4d576103fa565b80638129fc1c116101e25780638129fc1c14610d5b57806381a3c94314610d705780638577a6d514610e8b5780638d0361fc14610eb5576103fa565b80636eadde4314610bbc57806370a0823114610c9857806374b6c10614610ccb578063782a4ade14610ce0576103fa565b80632f745c591161030e5780634d025fed116102a1578063550ef3a811610270578063550ef3a814610a9c578063564aa99d14610b1757806356e0d51f14610b4a5780636352211e14610b5f5780636d8ea5b414610b89576103fa565b80634d025fed146109e25780634f6ccce714610a0c57806352b0f63814610a3657806352d6a8e414610a69576103fa565b806339f46986116102dd57806339f46986146108cc5780633f33133a146108fc5780634136aa351461098a57806342842e0e1461099f576103fa565b80632f745c59146107d957806330176e131461081257806335576ad01461088d57806338af3eed146108b7576103fa565b806310803b7211610391578063183767da11610360578063183767da14610724578063217751bc1461073957806323b872dd1461074e5780632af9162a146107915780632d33dd5b146107c4576103fa565b806310803b721461066557806310e56973146106e557806311a4c03a146106fa57806318160ddd1461070f576103fa565b8063095ea7b3116103cd578063095ea7b31461053e578063097ba333146105775780630aaffd2a1461061d5780630f15023b14610650576103fa565b806301ffc9a7146103fc578063025e7c271461044457806306fdde031461048a578063081812fc14610514575b005b34801561040857600080fd5b506104306004803603602081101561041f57600080fd5b50356001600160e01b031916611476565b604080519115158252519081900360200190f35b34801561045057600080fd5b5061046e6004803603602081101561046757600080fd5b5035611499565b604080516001600160a01b039092168252519081900360200190f35b34801561049657600080fd5b5061049f6114c0565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104d95781810151838201526020016104c1565b50505050905090810190601f1680156105065780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561052057600080fd5b5061046e6004803603602081101561053757600080fd5b503561154e565b34801561054a57600080fd5b506103fa6004803603604081101561056157600080fd5b506001600160a01b0381351690602001356115c4565b34801561058357600080fd5b5061060b6004803603606081101561059a57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156105cd57600080fd5b8201836020820111156105df57600080fd5b803590602001918460018302840111600160201b8311171561060057600080fd5b50909250905061174b565b60408051918252519081900360200190f35b34801561062957600080fd5b506103fa6004803603602081101561064057600080fd5b50356001600160a01b031661179a565b34801561065c57600080fd5b5061046e611877565b34801561067157600080fd5b506106956004803603604081101561068857600080fd5b5080359060200135611886565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156106d15781810151838201526020016106b9565b505050509050019250505060405180910390f35b3480156106f157600080fd5b5061060b6119a0565b34801561070657600080fd5b5061060b6119a6565b34801561071b57600080fd5b5061060b6119ac565b34801561073057600080fd5b5061060b6119b3565b34801561074557600080fd5b5061046e6119b9565b34801561075a57600080fd5b506103fa6004803603606081101561077157600080fd5b506001600160a01b038135811691602081013590911690604001356119c8565b34801561079d57600080fd5b506103fa600480360360208110156107b457600080fd5b50356001600160a01b0316611cc7565b3480156107d057600080fd5b5061046e611d53565b3480156107e557600080fd5b5061060b600480360360408110156107fc57600080fd5b506001600160a01b038135169060200135611d62565b34801561081e57600080fd5b506103fa6004803603602081101561083557600080fd5b810190602081018135600160201b81111561084f57600080fd5b82018360208201111561086157600080fd5b803590602001918460018302840111600160201b8311171561088257600080fd5b509092509050611dc0565b34801561089957600080fd5b506103fa600480360360208110156108b057600080fd5b5035611e15565b3480156108c357600080fd5b5061046e611eb7565b3480156108d857600080fd5b506103fa600480360360408110156108ef57600080fd5b5080359060200135611ec6565b6103fa6004803603608081101561091257600080fd5b8135916001600160a01b03602082013581169260408301359091169190810190608081016060820135600160201b81111561094c57600080fd5b82018360208201111561095e57600080fd5b803590602001918460018302840111600160201b8311171561097f57600080fd5b509092509050611f50565b34801561099657600080fd5b50610430612462565b3480156109ab57600080fd5b506103fa600480360360608110156109c257600080fd5b506001600160a01b03813581169160208101359091169060400135612472565b3480156109ee57600080fd5b5061046e60048036036020811015610a0557600080fd5b503561248d565b348015610a1857600080fd5b5061060b60048036036020811015610a2f57600080fd5b50356124a8565b348015610a4257600080fd5b5061043060048036036020811015610a5957600080fd5b50356001600160a01b03166124f3565b348015610a7557600080fd5b5061060b60048036036020811015610a8c57600080fd5b50356001600160a01b0316612506565b348015610aa857600080fd5b506103fa60048036036020811015610abf57600080fd5b810190602081018135600160201b811115610ad957600080fd5b820183602082011115610aeb57600080fd5b803590602001918460018302840111600160201b83111715610b0c57600080fd5b509092509050612511565b348015610b2357600080fd5b506103fa60048036036020811015610b3a57600080fd5b50356001600160a01b0316612561565b348015610b5657600080fd5b5061060b6125ed565b348015610b6b57600080fd5b5061046e60048036036020811015610b8257600080fd5b50356125f3565b348015610b9557600080fd5b5061043060048036036020811015610bac57600080fd5b50356001600160a01b0316612669565b348015610bc857600080fd5b506103fa600480360360c0811015610bdf57600080fd5b6001600160a01b03823581169260208101359260408201359092169160608201359160808101359181019060c0810160a0820135600160201b811115610c2457600080fd5b820183602082011115610c3657600080fd5b803590602001918460018302840111600160201b83111715610c5757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612689945050505050565b348015610ca457600080fd5b5061060b60048036036020811015610cbb57600080fd5b50356001600160a01b0316612789565b348015610cd757600080fd5b5061060b6127f8565b348015610cec57600080fd5b506103fa60048036036020811015610d0357600080fd5b810190602081018135600160201b811115610d1d57600080fd5b820183602082011115610d2f57600080fd5b803590602001918460018302840111600160201b83111715610d5057600080fd5b5090925090506127fe565b348015610d6757600080fd5b506103fa6128b3565b348015610d7c57600080fd5b506103fa60048036036060811015610d9357600080fd5b810190602081018135600160201b811115610dad57600080fd5b820183602082011115610dbf57600080fd5b803590602001918460208302840111600160201b83111715610de057600080fd5b919390929091602081019035600160201b811115610dfd57600080fd5b820183602082011115610e0f57600080fd5b803590602001918460208302840111600160201b83111715610e3057600080fd5b919390929091602081019035600160201b811115610e4d57600080fd5b820183602082011115610e5f57600080fd5b803590602001918460208302840111600160201b83111715610e8057600080fd5b509092509050612965565b348015610e9757600080fd5b506103fa60048036036020811015610eae57600080fd5b5035612b72565b348015610ec157600080fd5b5061060b60048036036040811015610ed857600080fd5b506001600160a01b0381358116916020013516612bee565b348015610efc57600080fd5b5061060b612c79565b348015610f1157600080fd5b5061049f612c7f565b348015610f2657600080fd5b5061060b60048036036020811015610f3d57600080fd5b50356001600160a01b0316612e6e565b348015610f5957600080fd5b506103fa60048036036040811015610f7057600080fd5b506001600160a01b038135169060200135612e89565b348015610f9257600080fd5b5061043060048036036040811015610fa957600080fd5b50803590602001356001600160a01b0316612f22565b348015610fcb57600080fd5b5061046e612f43565b348015610fe057600080fd5b506103fa60048036036040811015610ff757600080fd5b506001600160a01b0381351690602001351515612f52565b34801561101b57600080fd5b506103fa6004803603604081101561103257600080fd5b50803590602001356001600160a01b031661305d565b34801561105457600080fd5b5061060b61322c565b34801561106957600080fd5b506104306004803603602081101561108057600080fd5b50356001600160a01b0316613232565b34801561109c57600080fd5b5061060b600480360360208110156110b357600080fd5b50356001600160a01b0316613245565b3480156110cf57600080fd5b506103fa600480360360408110156110e657600080fd5b506001600160a01b0381358116916020013516613263565b34801561110a57600080fd5b506103fa6004803603604081101561112157600080fd5b50803590602001356001600160a01b03166133bd565b34801561114357600080fd5b506103fa600480360360a081101561115a57600080fd5b506001600160a01b038135169060ff602082013516906040810135906060810135906080013561348a565b34801561119157600080fd5b506103fa600480360360808110156111a857600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156111e257600080fd5b8201836020820111156111f457600080fd5b803590602001918460018302840111600160201b8311171561121557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506135da945050505050565b34801561126257600080fd5b506103fa613648565b34801561127757600080fd5b5061049f6004803603602081101561128e57600080fd5b5035613714565b3480156112a157600080fd5b5061060b6139a1565b3480156112b657600080fd5b506103fa600480360360208110156112cd57600080fd5b50356001600160a01b03166139a6565b3480156112e957600080fd5b506103fa6004803603602081101561130057600080fd5b5035613a32565b34801561131357600080fd5b5061060b6004803603604081101561132a57600080fd5b506001600160a01b0381358116916020013516613ad8565b34801561134e57600080fd5b506104306004803603604081101561136557600080fd5b506001600160a01b0381358116916020013516613b82565b34801561138957600080fd5b506103fa613c17565b34801561139e57600080fd5b506103fa600480360360608110156113b557600080fd5b506001600160a01b038135169060208101359060400135613c55565b3480156113dd57600080fd5b506103fa600480360360408110156113f457600080fd5b506001600160a01b038135169060200135613fdb565b34801561141657600080fd5b5061060b6004803603604081101561142d57600080fd5b506001600160a01b03813516906020013561411c565b34801561144f57600080fd5b5061060b6004803603602081101561146657600080fd5b50356001600160a01b03166141c5565b6001600160e01b0319811660009081526033602052604090205460ff165b919050565b607481815481106114a657fe5b6000918252602090912001546001600160a01b0316905081565b6078805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156115465780601f1061151b57610100808354040283529160200191611546565b820191906000526020600020905b81548152906001019060200180831161152957829003601f168201915b505050505081565b60008181526073602052604081205482906001600160a01b03166115a7576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b50506000908152607660205260409020546001600160a01b031690565b606954600160a01b900460ff16611614576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b8061161f81336141d7565b8061162f575061162f8133614239565b806116575750600081815260736020526040902054611657906001600160a01b031633613b82565b611696576040805162461bcd60e51b815260206004820152601c60248201526000805160206158c4833981519152604482015290519081900360640190fd5b336001600160a01b03841614156116e3576040805162461bcd60e51b815260206004820152600c60248201526b20a8282927ab22afa9a2a62360a11b604482015290519081900360640190fd5b600082815260766020908152604080832080546001600160a01b0319166001600160a01b038881169182179092556073909352818420549151869492909116917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061178e858585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061425a92505050565b50909695505050505050565b606f546001600160a01b03163314806117b757506117b733613232565b611808576040805162461bcd60e51b815260206004820152601f60248201527f4f4e4c595f42454e45464943494152595f4f525f4c4f434b4d414e4147455200604482015290519081900360640190fd5b6001600160a01b038116611855576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b606f80546001600160a01b0319166001600160a01b0392909216919091179055565b606a546001600160a01b031681565b6074546060906118d3576040805162461bcd60e51b81526020600482015260136024820152724e4f5f4f55545354414e44494e475f4b45595360681b604482015290519081900360640190fd5b60745482908482029060009082840111156118f6575060745481810392506118fb565b508082015b606083604051908082528060200260200182016040528015611927578160200160208202803883390190505b5090506000835b83811015611991576074818154811061194357fe5b9060005260206000200160009054906101000a90046001600160a01b031683838151811061196d57fe5b6001600160a01b03909216602092830291909101909101526001918201910161192e565b50909450505050505b92915050565b606c5481565b606b5481565b606e545b90565b607b5481565b6071546001600160a01b031681565b606954600160a01b900460ff16611a18576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b82611a2281612669565b611a63576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b81611a6e81336141d7565b80611a7e5750611a7e8133614239565b80611aa65750600081815260736020526040902054611aa6906001600160a01b031633613b82565b611ae5576040805162461bcd60e51b815260206004820152601c60248201526000805160206158c4833981519152604482015290519081900360640190fd5b611aef8386612f22565b611b40576040805162461bcd60e51b815260206004820152601c60248201527f5452414e534645525f46524f4d3a204e4f545f4b45595f4f574e455200000000604482015290519081900360640190fd5b612710607b5410611b91576040805162461bcd60e51b815260206004820152601660248201527512d15657d514905394d1915494d7d11254d05093115160521b604482015290519081900360640190fd5b6001600160a01b038416611bde576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6000611beb86600061411c565b6001600160a01b03808816600090815260726020526040808220928916825281206001810154939450919290611c249088908690614466565b8154611c4057868255611c378888614588565b611c4087614610565b428111611c6e5760018084015490830155868255611c5f87600061464b565b611c698888614588565b611c8b565b6001830154611c859042830363ffffffff6146cd16565b60018301555b426001840155600080845560405188916001600160a01b03808c1692908d16916000805160206159be83398151915291a4505050505050505050565b611cd033613232565b611d0b5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b611d1c60678263ffffffff61472716565b6040516001600160a01b038216907f766f6199fea59554b9ff688e413302b9200f85d74811c053c12d945ac6d8dd7a90600090a250565b6070546001600160a01b031681565b60008115611db0576040805162461bcd60e51b815260206004820152601660248201527527a7262cafa7a722afa5a2acafa822a92fa7aba722a960511b604482015290519081900360640190fd5b611db983612e6e565b9392505050565b611dc933613232565b611e045760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b611e10607a8383615727565b505050565b336000908152606860205260409020548111611e6d576040805162461bcd60e51b81526020600482015260126024820152711393d390d157d053149150511657d554d15160721b604482015290519081900360640190fd5b33600081815260686020908152604091829020849055815184815291517ff5d035b703f1ad8d403dd02e821d04257acafc5f6c5d70a3907bd8abf33a2e0f9281900390910190a250565b606f546001600160a01b031681565b611ecf33613232565b611f0a5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b604080518381526020810183905281517fd6867bc538320e67d7bdc35860c27c08486eb490b4fd9b820fff18fb28381d3c929181900390910190a1607d91909155607c55565b606954600160a01b900460ff16611fa0576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b606e54606d5411611fe8576040805162461bcd60e51b815260206004820152600d60248201526c1313d0d2d7d4d3d31117d3d555609a1b604482015290519081900360640190fd5b6001600160a01b038416612035576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6001600160a01b038416600090815260726020526040812080549091816120a55761205f8361478e565b8254915061206d8783614588565b50606b5442016001830181905560405182906001600160a01b038916906000906000805160206159be833981519152908290a461216d565b428360010154111561211557606b5460018401546120c89163ffffffff6146cd16565b600184018190556040805182815290519192506001600160a01b038916917f872bd7c99ad5e7b6ed7f0a890f348839cb8e225c9deaa3909afedae54c93d17d9181900360200190a261216d565b50606b5442016001830181905561212d82600061464b565b6040805182815290516001600160a01b038916917f872bd7c99ad5e7b6ed7f0a890f348839cb8e225c9deaa3909afedae54c93d17d919081900360200190a25b60008060006121b38a8a8a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061425a92505050565b91945092509050811561222d57606a5460408051633652466360e01b8152600481018590526024810184905290516001600160a01b039092169163365246639160448082019260009290919082900301818387803b15801561221457600080fd5b505af1158015612228573d6000803e3d6000fd5b505050505b606a546001600160a01b031663939d9f1f846122488c612669565b612253576000612255565b8b5b6040518363ffffffff1660e01b815260040180838152602001826001600160a01b03166001600160a01b0316815260200192505050600060405180830381600087803b1580156122a457600080fd5b505af11580156122b8573d6000803e3d6000fd5b5050606954600092506001600160a01b03161590506122f857506069548b906001600160a01b03166122f28133308563ffffffff6147a316565b506122fb565b50345b83811015612345576040805162461bcd60e51b8152602060048201526012602482015271494e53554646494349454e545f56414c554560701b604482015290519081900360640190fd5b6070546001600160a01b03161561245457607060009054906101000a90046001600160a01b03166001600160a01b03166398499657338d8d8d8d8a886040518863ffffffff1660e01b815260040180886001600160a01b03166001600160a01b03168152602001876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b03168152602001806020018481526020018381526020018281038252868682818152602001925080828437600081840152601f19601f82011690508083019250505098505050505050505050600060405180830381600087803b15801561243b57600080fd5b505af115801561244f573d6000803e3d6000fd5b505050505b505050505050505050505050565b606954600160a01b900460ff1681565b611e10838383604051806020016040528060008152506135da565b6075602052600090815260409020546001600160a01b031681565b6000606e5482106124ef576040805162461bcd60e51b815260206004820152600c60248201526b4f55545f4f465f52414e474560a01b604482015290519081900360640190fd5b5090565b600061199a60678363ffffffff6147fd16565b600061199a82614864565b61251a33613232565b6125555760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b611e1060788383615727565b61256a33613232565b6125a55760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b6125b660678263ffffffff61496b16565b6040516001600160a01b038216907f684f8a71407db0c334454ebe9c9b288549317893a20b10dc779ec5c118dcd12190600090a250565b607c5481565b60008181526073602052604081205482906001600160a01b031661264c576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b50506000908152607360205260409020546001600160a01b031690565b6001600160a01b0316600090815260726020526040902060010154421090565b600054610100900460ff16806126a257506126a26149ec565b806126b0575060005460ff16155b6126eb5760405162461bcd60e51b815260040180806020018281038252602e815260200180615990602e913960400191505060405180910390fd5b600054610100900460ff16158015612716576000805460ff1961ff0019909116610100171660011790555b61271f856149f2565b612727614ac1565b61273387878686614ad6565b61273c82614b6c565b612744614b98565b61274c614baa565b61275587614bb2565b61275e87614bd0565b61276e6380ac58cd60e01b614bee565b8015612780576000805461ff00191690555b50505050505050565b60006001600160a01b0382166127d8576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6127e182612669565b6127ec5760006127ef565b60015b60ff1692915050565b606d5481565b61280733613232565b6128425760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b61284e60798383615727565b507f8868e22e84ebf32da89b2ebcb0ac642816304ea3863b257f240df9098719cb97828260405180806020018281038252848482818152602001925080828437600083820152604051601f909101601f19169092018290039550909350505050a15050565b600054610100900460ff16806128cc57506128cc6149ec565b806128da575060005460ff16155b6129155760405162461bcd60e51b815260040180806020018281038252602e815260200180615990602e913960400191505060405180910390fd5b600054610100900460ff16158015612940576000805460ff1961ff0019909116610100171660011790555b6129506301ffc9a760e01b614bee565b8015612962576000805461ff00191690555b50565b61296e336124f3565b8061297d575061297d33613232565b6129b85760405162461bcd60e51b81526004018080602001828103825260488152602001806158e46048913960600191505060405180910390fd5b60005b858110156127805760008787838181106129d157fe5b905060200201356001600160a01b0316905060008686848181106129f157fe5b9050602002013590506000858585818110612a0857fe5b905060200201356001600160a01b0316905060006001600160a01b0316836001600160a01b03161415612a74576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6001600160a01b038316600090815260726020526040902060018101548311612ad7576040805162461bcd60e51b815260206004820152601060248201526f414c52454144595f4f574e535f4b455960801b604482015290519081900360640190fd5b805480612af457612ae78261478e565b508054612af48582614588565b612afe818461464b565b6040516001600160a01b0384169082907f9d2895c45a420624de863a2f437b022d879f457bf7a829044055a10c5a6fd5e390600090a36001820184905560405181906001600160a01b038716906000906000805160206159be833981519152908290a45050600190930192506129bb915050565b612b7b33613232565b612bb65760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b6040805182815290517f0496ed1e61eb69727f9659a8e859288db4758ffb1f744d1c1424634f90a257f49181900360200190a1607b55565b600030604051808061582a60259139604080519182900360250182206001600160a01b03881660009081526068602081815291849020546bffffffffffffffffffffffff19606098891b811684880152603487019490945260548601529588901b90911660748401528151808403909501855260889092019052825192019190912091505092915050565b60745490565b60795460609060026000196101006001841615020190911604612ddc57606a60009054906101000a90046001600160a01b03166001600160a01b031663cec410526040518163ffffffff1660e01b815260040160006040518083038186803b158015612cea57600080fd5b505afa158015612cfe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612d2757600080fd5b8101908080516040519392919084600160201b821115612d4657600080fd5b908301906020820185811115612d5b57600080fd5b8251600160201b811182820188101715612d7457600080fd5b82525081516020918201929091019080838360005b83811015612da1578181015183820152602001612d89565b50505050905090810190601f168015612dce5780820380516001836020036101000a031916815260200191505b5060405250505090506119b0565b6079805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015612e625780601f10612e3757610100808354040283529160200191612e62565b820191906000526020600020905b815481529060010190602001808311612e4557829003601f168201915b505050505090506119b0565b6001600160a01b031660009081526072602052604090205490565b612e9233613232565b612ecd5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b81612ed781612669565b612f18576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b611e108383614c72565b600091825260736020526040909120546001600160a01b0391821691161490565b6069546001600160a01b031681565b606954600160a01b900460ff16612fa2576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b6001600160a01b038216331415612fef576040805162461bcd60e51b815260206004820152600c60248201526b20a8282927ab22afa9a2a62360a11b604482015290519081900360640190fd5b3360008181526077602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b61306633613232565b6130a15760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b606954600160a01b900460ff166130f1576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b606c546069546001600160a01b03908116908316158061317557506000836001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561314757600080fd5b505afa15801561315b573d6000803e3d6000fd5b505050506040513d602081101561317157600080fd5b5051115b6131b6576040805162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22faa27a5a2a760991b604482015290519081900360640190fd5b606c849055606980546001600160a01b0319166001600160a01b038581169190911791829055604080518581526020810188905284831681830152929091166060830152517f3615065ccf48367ac483ac86701248e2e5ff55bdd9be845007d34a3b68d719d4916080908290030190a150505050565b607d5481565b600061199a60668363ffffffff6147fd16565b6001600160a01b031660009081526072602052604090206001015490565b61326c33613232565b6132a75760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b6001600160a01b03821615806132ca57506132ca826001600160a01b0316614d6d565b61331b576040805162461bcd60e51b815260206004820152601860248201527f494e56414c49445f4f4e5f4b45595f534f4c445f484f4f4b0000000000000000604482015290519081900360640190fd5b6001600160a01b038116158061333e575061333e816001600160a01b0316614d6d565b61338f576040805162461bcd60e51b815260206004820152601a60248201527f494e56414c49445f4f4e5f4b45595f43414e43454c5f484f4f4b000000000000604482015290519081900360640190fd5b607080546001600160a01b039384166001600160a01b03199182161790915560718054929093169116179055565b60008281526073602052604090205482906001600160a01b0316613416576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b61342083336141d7565b8061342f575061342f33613232565b613480576040805162461bcd60e51b815260206004820152601f60248201527f554e415554484f52495a45445f4b45595f4d414e414745525f55504441544500604482015290519081900360640190fd5b611e10838361464b565b6134948533612bee565b85858585836001600160a01b031660016134ad87614da4565b85858560405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015613507573d6000803e3d6000fd5b505050602060405103516001600160a01b031614613560576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b6001600160a01b038416600081815260686020908152604091829020805460010190819055825190815291517ff5d035b703f1ad8d403dd02e821d04257acafc5f6c5d70a3907bd8abf33a2e0f9281900390910190a260006135c1876125f3565b905060006135ce82614864565b90506124548282614c72565b6135e58484846119c8565b6135f184848484614df5565b613642576040805162461bcd60e51b815260206004820152601d60248201527f4e4f4e5f434f4d504c49414e545f4552433732315f5245434549564552000000604482015290519081900360640190fd5b50505050565b61365133613232565b61368c5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b606954600160a01b900460ff166136dc576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b6040517f25a311358326fb18c62efc24bc28d3126acee8d2a67fd8b2145b757dc8bd1bc190600090a16069805460ff60a01b19169055565b60008181526073602052604090205460609082906001600160a01b0316613770576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b607a54606090600260001961010060018416150201909116046138cd57606a60009054906101000a90046001600160a01b03166001600160a01b031663a998e9fb6040518163ffffffff1660e01b815260040160006040518083038186803b1580156137db57600080fd5b505afa1580156137ef573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561381857600080fd5b8101908080516040519392919084600160201b82111561383757600080fd5b90830190602082018581111561384c57600080fd5b8251600160201b81118282018810171561386557600080fd5b82525081516020918201929091019080838360005b8381101561389257818101518382015260200161387a565b50505050905090810190601f1680156138bf5780820380516001836020036101000a031916815260200191505b50604052505050905061395b565b607a805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156139535780601f1061392857610100808354040283529160200191613953565b820191906000526020600020905b81548152906001019060200180831161393657829003601f168201915b505050505090505b61399961396730614f28565b604051806040016040528060018152602001602f60f81b81525061398a876150a4565b8492919063ffffffff61516816565b949350505050565b600790565b6139af33613232565b6139ea5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b6139fb60668263ffffffff61496b16565b6040516001600160a01b038216907f91d5c045d5bd98bf59a379b259ebca05b93bf79af1845fdf87e3172385d4c7f790600090a250565b80613a3d81336141d7565b80613a4d5750613a4d8133614239565b80613a755750600081815260736020526040902054613a75906001600160a01b031633613b82565b613ab4576040805162461bcd60e51b815260206004820152601c60248201526000805160206158c4833981519152604482015290519081900360640190fd5b6000613abf836125f3565b90506000613acc82614864565b90506136428282614c72565b60006001600160a01b038316613af957506001600160a01b0381163161199a565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015613b4f57600080fd5b505afa158015613b63573d6000803e3d6000fd5b505050506040513d6020811015613b7957600080fd5b5051905061199a565b6001600160a01b038083166000908152607260209081526040808320548084526075909252822054919290911680613be5575050506001600160a01b0380831660009081526077602090815260408083209385168352929052205460ff1661199a565b6001600160a01b0390811660009081526077602090815260408083209387168352929052205460ff16915061199a9050565b613c2860663363ffffffff61472716565b60405133907f42885193b8178d25fca25a38e6fcc93918501e91be06d85e0c8afb3bad95238090600090a2565b606954600160a01b900460ff16613ca5576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b81613cb081336141d7565b80613cc05750613cc08133614239565b80613ce85750600081815260736020526040902054613ce8906001600160a01b031633613b82565b613d27576040805162461bcd60e51b815260206004820152601c60248201526000805160206158c4833981519152604482015290519081900360640190fd5b612710607b5410613d78576040805162461bcd60e51b815260206004820152601660248201527512d15657d514905394d1915494d7d11254d05093115160521b604482015290519081900360640190fd5b6001600160a01b038416613dc5576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6000838152607360205260409020546001600160a01b0316613de681612669565b613e27576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b0380821660009081526072602052604080822092881682528120805460018401549192909142900381613e61878a61411c565b90506000613e758a8363ffffffff6146cd16565b905082811015613e9357899350613e8e8b826000614466565b613ed7565b613e9d888461411c565b42600189015560405181850395509092508b907f59f2fe866dd27a1c2d34115520888c3150365cbc931aab97fa88c4b9ab40b79590600090a25b84613f1e57613ee58661478e565b85549450613ef38c86614588565b60405185906001600160a01b038e16906000906000805160206159be833981519152908290a4613f34565b42866001015411613f3457613f3485600061464b565b613f4085856001614466565b848c6001600160a01b0316896001600160a01b03166000805160206159be83398151915260405160405180910390a4613f8a888d8d60405180602001604052806000815250614df5565b612454576040805162461bcd60e51b815260206004820152601d60248201527f4e4f4e5f434f4d504c49414e545f4552433732315f5245434549564552000000604482015290519081900360640190fd5b613fe433613232565b80613ff95750606f546001600160a01b031633145b61404a576040805162461bcd60e51b815260206004820181905260248201527f4f4e4c595f4c4f434b5f4d414e414745525f4f525f42454e4546494349415259604482015290519081900360640190fd5b60006140568330613ad8565b9050600082158061406657508183115b156140ba57600082116140b3576040805162461bcd60e51b815260206004820152601060248201526f4e4f545f454e4f5547485f46554e445360801b604482015290519081900360640190fd5b50806140bd565b50815b606f546040805183815290516001600160a01b039283169287169133917f342e7ff505a8a0364cd0dc2ff195c315e43bce86b204846ecd36913e117b109e9181900360200190a4606f546136429085906001600160a01b0316836152b9565b60008261412881612669565b614169576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b03841660009081526072602052604081209080856141965742836001015403915061419a565b8591505b6127106141b2607b548461530690919063ffffffff16565b816141b957fe5b04979650505050505050565b60686020526000908152604090205481565b6000828152607560205260408120546001600160a01b038381169116148061422457506000838152607560205260409020546001600160a01b031615801561422457506142248383612f22565b156142315750600161199a565b50600061199a565b600091825260766020526040909120546001600160a01b0391821691161490565b607054600090819081906001600160a01b03161561436e5760705460405163221c1fd160e01b815233600482018181526001600160a01b038a811660248501528981166044850152608060648501908152895160848601528951919095169463221c1fd1948c938c938c93919260a40190602085019080838360005b838110156142ee5781810151838201526020016142d6565b50505050905090810190601f16801561431b5780820380516001836020036101000a031916815260200191505b509550505050505060206040518083038186803b15801561433b57600080fd5b505afa15801561434f573d6000803e3d6000fd5b505050506040513d602081101561436557600080fd5b50519250614374565b606c5492505b821561445d57606a5460408051630cb175e360e01b81526001600160a01b038981166004830152602482018790528251931692630cb175e392604480840193919291829003018186803b1580156143ca57600080fd5b505afa1580156143de573d6000803e3d6000fd5b505050506040513d60408110156143f457600080fd5b508051602090910151909250905082821115614457576040805162461bcd60e51b815260206004820152601c60248201527f494e56414c49445f444953434f554e545f46524f4d5f554e4c4f434b00000000604482015290519081900360640190fd5b81830392505b93509350939050565b6000838152607360205260409020546001600160a01b0316806144c3576040805162461bcd60e51b815260206004820152601060248201526f4e4f4e5f4558495354454e545f4b455960801b604482015290519081900360640190fd5b6001600160a01b0381166000908152607260205260408120600181015490916144eb84612669565b9050841561452e57801561451357614509828763ffffffff6146cd16565b6001840155614529565b614523428763ffffffff6146cd16565b60018401555b614544565b61453e828763ffffffff61535f16565b60018401555b604080518781528615156020820152815189927fe9408df99703ae33a9d01185bcad328ea8683fb1f920da9c30959c192f21b5b3928290030190a250505050505050565b6000818152607360205260409020546001600160a01b0383811691161461460c5760748054600181019091557f19a0b39aa25ac793b5f6e9a0534364cc0b3fd1ea9b651e79c7f50a59d48ef8130180546001600160a01b0384166001600160a01b031991821681179092556000838152607360205260409020805490911690911790555b5050565b6000818152607660205260409020546001600160a01b03161561296257600090815260766020526040902080546001600160a01b0319169055565b6000828152607560205260409020546001600160a01b0382811691161461460c57600082815260756020526040902080546001600160a01b0319166001600160a01b03831617905561469c82614610565b60405160009083907f9d2895c45a420624de863a2f437b022d879f457bf7a829044055a10c5a6fd5e3908390a35050565b600082820183811015611db9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b61473182826147fd565b61476c5760405162461bcd60e51b815260040180806020018281038252602181526020018061592c6021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b805461296257606e8054600101908190559055565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526136429085906153a1565b60006001600160a01b0382166148445760405162461bcd60e51b815260040180806020018281038252602281526020018061596e6022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b60008161487081612669565b6148b1576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b03831660009081526072602052604090206001810154606b54607d5442909203918201106148ea57606c54935061490b565b606b54606c54614900908363ffffffff61530616565b8161490757fe5b0493505b607d54158061491f5750606b54607d548201105b15614963576000612710614940607c54606c5461530690919063ffffffff16565b8161494757fe5b0490508085111561495c578085039450614961565b600094505b505b505050919050565b61497582826147fd565b156149c7576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b303b1590565b606980546001600160a01b0319166001600160a01b0383169081179091551580614a8057506000816001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015614a5257600080fd5b505afa158015614a66573d6000803e3d6000fd5b505050506040513d6020811015614a7c57600080fd5b5051115b612962576040805162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22faa27a5a2a760991b604482015290519081900360640190fd5b6069805460ff60a01b1916600160a01b179055565b63bbf81e00831115614b2f576040805162461bcd60e51b815260206004820152601860248201527f4d41585f45585049524154494f4e5f3130305f59454152530000000000000000604482015290519081900360640190fd5b606a8054336001600160a01b031991821617909155606f80549091166001600160a01b039590951694909417909355606b91909155606c55606d55565b614b746128b3565b8051614b879060789060208401906157a1565b50612962635b5e139f60e01b614bee565b614ba863780e9d6360e01b614bee565b565b6103e8607c55565b614bbb81613232565b6129625761296260668263ffffffff61496b16565b614bd9816124f3565b6129625761296260678263ffffffff61496b16565b6001600160e01b03198082161415614c4d576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152603360205260409020805460ff19166001179055565b6001600160a01b03821660008181526072602090815260409182902080548351868152935191943394909391927f0a7068a9989857441c039a14a42b67ed71dd1fcfe5a9b17cc87b252e47bce528929181900390910190a44260018201558115614ced57606954614ced906001600160a01b031684846152b9565b6071546001600160a01b031615611e10576071546040805163b499b6c560e01b81523360048201526001600160a01b038681166024830152604482018690529151919092169163b499b6c591606480830192600092919082900301818387803b158015614d5957600080fd5b505af1158015612780573d6000803e3d6000fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906139995750141592915050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000614e09846001600160a01b0316614d6d565b614e1557506001613999565b604051630a85bd0160e11b815233600482018181526001600160a01b03888116602485015260448401879052608060648501908152865160848601528651600095928a169463150b7a029490938c938b938b939260a4019060208501908083838e5b83811015614e8f578181015183820152602001614e77565b50505050905090810190601f168015614ebc5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015614ede57600080fd5b505af1158015614ef2573d6000803e3d6000fd5b505050506040513d6020811015614f0857600080fd5b50516001600160e01b031916630a85bd0160e11b14915050949350505050565b604080518082018252601081526f181899199a1a9b1b9c1cb0b131b232b360811b60208201528151602a80825260608281019094526001600160a01b03851692918491602082018180388339019050509050600360fc1b81600081518110614f8c57fe5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110614fb557fe5b60200101906001600160f81b031916908160001a90535060005b601481101561509b578260048583600c0160208110614fea57fe5b1a60f81b6001600160f81b031916901c60f81c60ff168151811061500a57fe5b602001015160f81c60f81b82826002026002018151811061502757fe5b60200101906001600160f81b031916908160001a905350828482600c016020811061504e57fe5b825191901a600f1690811061505f57fe5b602001015160f81c60f81b82826002026003018151811061507c57fe5b60200101906001600160f81b031916908160001a905350600101614fcf565b50949350505050565b606081806150cb5750506040805180820190915260018152600360fc1b6020820152611494565b8260005b81156150e357600101600a820491506150cf565b6060816040519080825280601f01601f191660200182016040528015615110576020820181803883390190505b50905060001982015b841561515e57600a850660300160f81b8282806001900393508151811061513c57fe5b60200101906001600160f81b031916908160001a905350600a85049450615119565b5095945050505050565b6060848484846040516020018085805190602001908083835b602083106151a05780518252601f199092019160209182019101615181565b51815160209384036101000a600019018019909216911617905287519190930192870191508083835b602083106151e85780518252601f1990920191602091820191016151c9565b51815160209384036101000a600019018019909216911617905286519190930192860191508083835b602083106152305780518252601f199092019160209182019101615211565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b602083106152785780518252601f199092019160209182019101615259565b6001836020036101000a0380198251168184511680821785525050505050509050019450505050506040516020818303038152906040529050949350505050565b8015611e10576001600160a01b0383166152eb576152e66001600160a01b0383168263ffffffff61555916565b611e10565b826136426001600160a01b038216848463ffffffff61563e16565b6000826153155750600061199a565b8282028284828161532257fe5b0414611db95760405162461bcd60e51b815260040180806020018281038252602181526020018061594d6021913960400191505060405180910390fd5b6000611db983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250615690565b6153b3826001600160a01b0316614d6d565b615404576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106154425780518252601f199092019160209182019101615423565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146154a4576040519150601f19603f3d011682016040523d82523d6000602084013e6154a9565b606091505b509150915081615500576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156136425780806020019051602081101561551c57600080fd5b50516136425760405162461bcd60e51b815260040180806020018281038252602a8152602001806159de602a913960400191505060405180910390fd5b804710156155ae576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d80600081146155f9576040519150601f19603f3d011682016040523d82523d6000602084013e6155fe565b606091505b5050905080611e105760405162461bcd60e51b815260040180806020018281038252603a81526020018061588a603a913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611e109084906153a1565b6000818484111561571f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156156e45781810151838201526020016156cc565b50505050905090810190601f1680156157115780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106157685782800160ff19823516178555615795565b82800160010185558215615795579182015b8281111561579557823582559160200191906001019061577a565b506124ef92915061580f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106157e257805160ff1916838001178555615795565b82800160010185558215615795579182015b828111156157955782518255916020019190600101906157f4565b6119b091905b808211156124ef576000815560010161581556fe63616e63656c416e64526566756e64466f722861646472657373205f6b65794f776e6572294d6978696e4c6f636b4d616e616765723a2063616c6c657220646f6573206e6f74206861766520746865204c6f636b4d616e6167657220726f6c65416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d617920686176652072657665727465644f4e4c595f4b45595f4d414e414745525f4f525f415050524f564544000000004d6978696e4b65794772616e7465723a2063616c6c657220646f6573206e6f74206861766520746865204b65794772616e746572206f72204c6f636b4d616e6167657220726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582022f0e9d10d0f846972d523457d15ee83683eaa4cbd936b23db3130a10e076e9c64736f6c63430005110032
Deployed ByteCode Sourcemap
108937:1474:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21439:133;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21439:133:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21439:133:0;-1:-1:-1;;;;;;21439:133:0;;:::i;:::-;;;;;;;;;;;;;;;;;;60841:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60841:23:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60841:23:0;;:::i;:::-;;;;-1:-1:-1;;;;;60841:23:0;;;;;;;;;;;;;;79049:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79049:18:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;79049:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67808:195;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67808:195:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;67808:195:0;;:::i;67230:299::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67230:299:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;67230:299:0;;;;;;;;:::i;85477:236::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;85477:236:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;85477:236:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;85477:236:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;85477:236:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;85477:236:0;;-1:-1:-1;85477:236:0;-1:-1:-1;85477:236:0;:::i;:::-;;;;;;;;;;;;;;;;58304:276;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58304:276:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;58304:276:0;-1:-1:-1;;;;;58304:276:0;;:::i;54236:29::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54236:29:0;;;:::i;64163:879::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;64163:879:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;64163:879:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;64163:879:0;;;;;;;;;;;;;;;;;54611:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54611:20:0;;;:::i;54453:30::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54453:30:0;;;:::i;59154:97::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59154:97:0;;;:::i;100650:34::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;100650:34:0;;;:::i;55096:41::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55096:41:0;;;:::i;103028:2075::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;103028:2075:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;103028:2075:0;;;;;;;;;;;;;;;;;:::i;75061:147::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;75061:147:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75061:147:0;-1:-1:-1;;;;;75061:147:0;;:::i;55046:45::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55046:45:0;;;:::i;73767:214::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73767:214:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;73767:214:0;;;;;;;;:::i;80616:140::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80616:140:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;80616:140:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;80616:140:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;80616:140:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;80616:140:0;;-1:-1:-1;80616:140:0;-1:-1:-1;80616:140:0;:::i;91640:294::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;91640:294:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;91640:294:0;;:::i;54889:26::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54889:26:0;;;:::i;94536:338::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;94536:338:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;94536:338:0;;;;;;;:::i;82712:2582::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;82712:2582:0;;;-1:-1:-1;;;;;82712:2582:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;82712:2582:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;82712:2582:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;82712:2582:0;;-1:-1:-1;82712:2582:0;-1:-1:-1;82712:2582:0;:::i;42066:19::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42066:19:0;;;:::i;105456:159::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105456:159:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;105456:159:0;;;;;;;;;;;;;;;;;:::i;61041:45::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;61041:45:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61041:45:0;;:::i;73149:165::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73149:165:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;73149:165:0;;:::i;74803:110::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74803:110:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74803:110:0;-1:-1:-1;;;;;74803:110:0;;:::i;95160:169::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;95160:169:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;95160:169:0;-1:-1:-1;;;;;95160:169:0;;:::i;79831:123::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79831:123:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;79831:123:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;79831:123:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;79831:123:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;79831:123:0;;-1:-1:-1;79831:123:0;-1:-1:-1;79831:123:0;:::i;74919:136::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74919:136:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74919:136:0;-1:-1:-1;;;;;74919:136:0;;:::i;92356:36::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92356:36:0;;;:::i;65976:138::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65976:138:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65976:138:0;;:::i;63494:177::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;63494:177:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63494:177:0;-1:-1:-1;;;;;63494:177:0;;:::i;109263:934::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;109263:934:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;109263:934:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;109263:934:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;109263:934:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;109263:934:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;109263:934:0;;-1:-1:-1;109263:934:0;;-1:-1:-1;;;;;109263:934:0:i;63222:204::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;63222:204:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63222:204:0;-1:-1:-1;;;;;63222:204:0;;:::i;54705:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54705:27:0;;;:::i;80036:173::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80036:173:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;80036:173:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;80036:173:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;80036:173:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;80036:173:0;;-1:-1:-1;80036:173:0;-1:-1:-1;80036:173:0;:::i;21044:238::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21044:238:0;;;:::i;75769:1086::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;75769:1086:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;75769:1086:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;75769:1086:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;75769:1086:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;75769:1086:0;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;75769:1086:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;75769:1086:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;75769:1086:0;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;75769:1086:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;75769:1086:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;75769:1086:0;;-1:-1:-1;75769:1086:0;-1:-1:-1;75769:1086:0;:::i;106540:235::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;106540:235:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;106540:235:0;;:::i;95718:546::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;95718:546:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;95718:546:0;;;;;;;;;;:::i;65825:104::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65825:104:0;;;:::i;80314:212::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80314:212:0;;;:::i;63791:134::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;63791:134:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63791:134:0;-1:-1:-1;;;;;63791:134:0;;:::i;93141:184::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93141:184:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;93141:184:0;;;;;;;;:::i;65120:155::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65120:155:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65120:155:0;;;;;;-1:-1:-1;;;;;65120:155:0;;:::i;38102:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38102:27:0;;;:::i;71383:268::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71383:268:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;71383:268:0;;;;;;;;;;:::i;57674:486::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57674:486:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57674:486:0;;;;;;-1:-1:-1;;;;;57674:486:0;;:::i;92399:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92399:27:0;;;:::i;41168:112::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41168:112:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41168:112:0;-1:-1:-1;;;;;41168:112:0;;:::i;65505:160::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65505:160:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65505:160:0;-1:-1:-1;;;;;65505:160:0;;:::i;58667:481::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58667:481:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;58667:481:0;;;;;;;;;;:::i;66441:302::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;66441:302:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;66441:302:0;;;;;;-1:-1:-1;;;;;66441:302:0;;:::i;94026:438::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;94026:438:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;94026:438:0;;;;;;;;;;;;;;;;;;;;;;;;;:::i;106187:278::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;106187:278:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;106187:278:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;106187:278:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;106187:278:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;106187:278:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;106187:278:0;;-1:-1:-1;106187:278:0;;-1:-1:-1;;;;;106187:278:0:i;42423:127::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42423:127:0;;;:::i;81097:400::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;81097:400:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;81097:400:0;;:::i;56073:89::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56073:89:0;;;:::i;41286:139::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41286:139:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41286:139:0;-1:-1:-1;;;;;41286:139:0;;:::i;93482:244::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93482:244:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;93482:244:0;;:::i;38453:266::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38453:266:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;38453:266:0;;;;;;;;;;:::i;68327:395::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68327:395:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;68327:395:0;;;;;;;;;;:::i;41431:124::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41431:124:0;;;:::i;100992:2030::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;100992:2030:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;100992:2030:0;;;;;;;;;;;;;:::i;56814:596::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56814:596:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;56814:596:0;;;;;;;;:::i;107043:600::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;107043:600:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;107043:600:0;;;;;;;;:::i;90843:49::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90843:49:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;90843:49:0;-1:-1:-1;;;;;90843:49:0;;:::i;21439:133::-;-1:-1:-1;;;;;;21531:33:0;;21507:4;21531:33;;;:20;:33;;;;;;;;21439:133;;;;:::o;60841:23::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;60841:23:0;;-1:-1:-1;60841:23:0;:::o;79049:18::-;;;;;;;;;;;;;;;-1:-1:-1;;79049:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;67808:195::-;67901:7;62799:18;;;:8;:18;;;;;;67877:8;;-1:-1:-1;;;;;62799:18:0;62783:70;;;;;-1:-1:-1;;;62783:70:0;;;;;;;;;;;;-1:-1:-1;;;62783:70:0;;;;;;;;;;;;;;;-1:-1:-1;;67920:25:0;67948:18;;;:8;:18;;;;;;-1:-1:-1;;;;;67948:18:0;;67808:195::o;67230:299::-;42282:7;;-1:-1:-1;;;42282:7:0;;;;42274:35;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;;;;67355:8;62078:35;62092:8;62102:10;62078:13;:35::i;:::-;:79;;;;62124:33;62136:8;62146:10;62124:11;:33::i;:::-;62078:138;;;-1:-1:-1;62185:18:0;;;;:8;:18;;;;;;62168:48;;-1:-1:-1;;;;;62185:18:0;62205:10;62168:16;:48::i;:::-;62062:200;;;;;-1:-1:-1;;;62062:200:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;62062:200:0;;;;;;;;;;;;;;;67383:10;-1:-1:-1;;;;;67383:23:0;;;;67375:48;;;;;-1:-1:-1;;;67375:48:0;;;;;;;;;;;;-1:-1:-1;;;67375:48:0;;;;;;;;;;;;;;;67432:18;;;;:8;:18;;;;;;;;:30;;-1:-1:-1;;;;;;67432:30:0;-1:-1:-1;;;;;67432:30:0;;;;;;;;;67483:8;:18;;;;;;;67474:49;;67432:18;;67483;;;;;67474:49;;;42316:1;67230:299;;:::o;85477:236::-;85612:16;85660:47;85678:10;85690:9;85701:5;;85660:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;85660:17:0;;-1:-1:-1;;;85660:47:0:i;:::-;-1:-1:-1;85640:67:0;;85477:236;-1:-1:-1;;;;;;85477:236:0:o;58304:276::-;58404:11;;-1:-1:-1;;;;;58404:11:0;58390:10;:25;;:54;;;58419:25;58433:10;58419:13;:25::i;:::-;58382:98;;;;;-1:-1:-1;;;58382:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58495:26:0;;58487:54;;;;;-1:-1:-1;;;58487:54:0;;;;;;;;;;;;-1:-1:-1;;;58487:54:0;;;;;;;;;;;;;;;58548:11;:26;;-1:-1:-1;;;;;;58548:26:0;-1:-1:-1;;;;;58548:26:0;;;;;;;;;;58304:276::o;54236:29::-;;;-1:-1:-1;;;;;54236:29:0;;:::o;64163:879::-;64288:6;:13;64252:16;;64280:49;;;;;-1:-1:-1;;;64280:49:0;;;;;;;;;;;;-1:-1:-1;;;64280:49:0;;;;;;;;;;;;;;;64467:6;:13;64352:9;;64387:16;;;;64336:13;;64442:22;;;:38;64438:202;;;-1:-1:-1;64508:6:0;:13;64541:27;;;;-1:-1:-1;64438:202:0;;;-1:-1:-1;64609:22:0;;;64438:202;64726:29;64772:8;64758:23;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;64758:23:0;-1:-1:-1;64726:55:0;-1:-1:-1;64788:14:0;64899:11;64885:124;64916:14;64912:1;:18;64885:124;;;64972:6;64979:1;64972:9;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;64972:9:0;64946:12;64959:9;64946:23;;;;;;;;-1:-1:-1;;;;;64946:35:0;;;:23;;;;;;;;;;;:35;64990:11;;;;;64932:3;64885:124;;;-1:-1:-1;65024:12:0;;-1:-1:-1;;;;;64163:879:0;;;;;:::o;54611:20::-;;;;:::o;54453:30::-;;;;:::o;59154:97::-;59233:12;;59154:97;;:::o;100650:34::-;;;;:::o;55096:41::-;;;-1:-1:-1;;;;;55096:41:0;;:::o;103028:2075::-;42282:7;;-1:-1:-1;;;42282:7:0;;;;42274:35;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;;;;103166:5;62633:21;62648:5;62633:14;:21::i;:::-;62617:61;;;;;-1:-1:-1;;;62617:61:0;;;;;;;;;;;;-1:-1:-1;;;62617:61:0;;;;;;;;;;;;;;;103203:8;62078:35;62092:8;62102:10;62078:13;:35::i;:::-;:79;;;;62124:33;62136:8;62146:10;62124:11;:33::i;:::-;62078:138;;;-1:-1:-1;62185:18:0;;;;:8;:18;;;;;;62168:48;;-1:-1:-1;;;;;62185:18:0;62205:10;62168:16;:48::i;:::-;62062:200;;;;;-1:-1:-1;;;62062:200:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;62062:200:0;;;;;;;;;;;;;;;103231:27;103242:8;103252:5;103231:10;:27::i;:::-;103223:68;;;;;-1:-1:-1;;;103223:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;55034:5;103306:22;;:41;103298:76;;;;;-1:-1:-1;;;103298:76:0;;;;;;;;;;;;-1:-1:-1;;;103298:76:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;103389:24:0;;103381:52;;;;;-1:-1:-1;;;103381:52:0;;;;;;;;;;;;-1:-1:-1;;;103381:52:0;;;;;;;;;;;;;;;103440:8;103451:24;103466:5;103473:1;103451:14;:24::i;:::-;-1:-1:-1;;;;;103506:17:0;;;103484:19;103506:17;;;:10;:17;;;;;;103550:22;;;;;;;103607:25;;;;103440:35;;-1:-1:-1;103506:17:0;;103607:25;103705:34;;103718:8;;103440:35;;103705:12;:34::i;:::-;103752:13;;103748:180;;103781:24;;;103814:34;103827:10;103797:8;103814:12;:34::i;:::-;103896:24;103911:8;103896:14;:24::i;:::-;103962:15;103940:18;:37;103936:847;;104233:27;;;;;104205:25;;;:55;104269:24;;;104353:38;104285:8;-1:-1:-1;104353:16:0;:38::i;:::-;104402:34;104415:10;104427:8;104402:12;:34::i;:::-;103936:847;;;104696:37;;;;:79;;104759:15;104738:36;;104696:79;:41;:79;:::i;:::-;104668:25;;;:107;103936:847;104881:15;104851:27;;;:45;104995:1;104977:19;;;105032:65;;105082:8;;-1:-1:-1;;;;;105032:65:0;;;;;;;;-1:-1:-1;;;;;;;;;;;105032:65:0;;62269:1;;;;62685;42316;103028:2075;;;:::o;75061:147::-;41059:25;41073:10;41059:13;:25::i;:::-;41051:97;;;;-1:-1:-1;;;41051:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75135:28;:11;75154:8;75135:28;:18;:28;:::i;:::-;75175:27;;-1:-1:-1;;;;;75175:27:0;;;;;;;;75061:147;:::o;55046:45::-;;;-1:-1:-1;;;;;55046:45:0;;:::o;73767:214::-;73872:7;73899:11;;73891:46;;;;;-1:-1:-1;;;73891:46:0;;;;;;;;;;;;-1:-1:-1;;;73891:46:0;;;;;;;;;;;;;;;73951:24;73965:9;73951:13;:24::i;:::-;73944:31;73767:214;-1:-1:-1;;;73767:214:0:o;80616:140::-;41059:25;41073:10;41059:13;:25::i;:::-;41051:97;;;;-1:-1:-1;;;41051:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80722:28;:12;80737:13;;80722:28;:::i;:::-;;80616:140;;:::o;91640:294::-;91779:10;91761:29;;;;:17;:29;;;;;;91739:51;;91731:82;;;;;-1:-1:-1;;;91731:82:0;;;;;;;;;;;;-1:-1:-1;;;91731:82:0;;;;;;;;;;;;;;;91838:10;91820:29;;;;:17;:29;;;;;;;;;:51;;;91883:45;;;;;;;;;;;;;;;;;91640:294;:::o;54889:26::-;;;-1:-1:-1;;;;;54889:26:0;;:::o;94536:338::-;41059:25;41073:10;41059:13;:25::i;:::-;41051:97;;;;-1:-1:-1;;;41051:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94680:86;;;;;;;;;;;;;;;;;;;;;;;;;94775:15;:34;;;;94816:24;:52;94536:338::o;82712:2582::-;42282:7;;-1:-1:-1;;;42282:7:0;;;;42274:35;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;;;;55256:12;;55238:15;;:30;55230:56;;;;;-1:-1:-1;;;55230:56:0;;;;;;;;;;;;-1:-1:-1;;;55230:56:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;82900:24:0;;82892:52;;;;;-1:-1:-1;;;82892:52:0;;;;;;;;;;;;-1:-1:-1;;;82892:52:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;82996:22:0;;82976:17;82996:22;;;:10;:22;;;;;83037:13;;82996:22;;83087:9;83083:1252;;83181:24;83199:5;83181:17;:24::i;:::-;83256:13;;;-1:-1:-1;83278:30:0;83291:10;83256:13;83278:12;:30::i;:::-;-1:-1:-1;83350:18:0;;83332:15;:36;83377:25;;;:40;;;83457:97;;83541:4;;-1:-1:-1;;;;;83457:97:0;;;83484:1;;-1:-1:-1;;;;;;;;;;;83457:97:0;83484:1;;83457:97;83083:1252;;;83600:15;83572:5;:25;;;:43;83568:767;;;83734:18;;83704:25;;;;:49;;;:29;:49;:::i;:::-;83762:25;;;:40;;;83816:42;;;;;;;;83689:64;;-1:-1:-1;;;;;;83816:42:0;;;;;;;;;;;;83568:767;;;-1:-1:-1;84117:18:0;;84099:15;:36;84144:25;;;:40;;;84235:34;84252:4;84266:1;84235:16;:34::i;:::-;84285:42;;;;;;;;-1:-1:-1;;;;;84285:42:0;;;;;;;;;;;;;83568:767;84344:21;84367:13;84382:11;84397:47;84415:10;84427:9;84438:5;;84397:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;84397:17:0;;-1:-1:-1;;;84397:47:0:i;:::-;84343:101;;-1:-1:-1;84343:101:0;-1:-1:-1;84343:101:0;-1:-1:-1;84455:12:0;;84451:95;;84483:14;;:55;;;-1:-1:-1;;;84483:55:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;84483:14:0;;;;:37;;:55;;;;;:14;;:55;;;;;;;;:14;;:55;;;5:2:-1;;;;30:1;27;20:12;5:2;84483:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;84483:55:0;;;;84451:95;84592:14;;-1:-1:-1;;;;;84592:14:0;:32;84625:16;84643:25;84658:9;84643:14;:25::i;:::-;:50;;84691:1;84643:50;;;84671:9;84643:50;84592:102;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;84592:102:0;-1:-1:-1;;;;;84592:102:0;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;84592:102:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;84813:12:0;;84789:14;;-1:-1:-1;;;;;;84813:12:0;:26;;-1:-1:-1;84810:235:0;;-1:-1:-1;84904:12:0;;84867:6;;-1:-1:-1;;;;;84904:12:0;84926:57;84904:12;84949:10;84969:4;84867:6;84926:57;:22;:57;:::i;:::-;84810:235;;;;-1:-1:-1;85028:9:0;84810:235;85072:16;85059:9;:29;;85051:60;;;;;-1:-1:-1;;;85051:60:0;;;;;;;;;;;;-1:-1:-1;;;85051:60:0;;;;;;;;;;;;;;;85131:17;;-1:-1:-1;;;;;85131:17:0;85123:40;85120:169;;85179:17;;;;;;;;;-1:-1:-1;;;;;85179:17:0;-1:-1:-1;;;;;85179:31:0;;85211:10;85223;85235:9;85246:5;;85253:16;85271:9;85179:102;;;;;;;;;;;;;-1:-1:-1;;;;;85179:102:0;-1:-1:-1;;;;;85179:102:0;;;;;;-1:-1:-1;;;;;85179:102:0;-1:-1:-1;;;;;85179:102:0;;;;;;-1:-1:-1;;;;;85179:102:0;-1:-1:-1;;;;;85179:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;85179:102:0;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;85179:102:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85179:102:0;;;;85120:169;55293:1;;;;;;;82712:2582;;;;;:::o;42066:19::-;;;-1:-1:-1;;;42066:19:0;;;;;:::o;105456:159::-;105567:42;105584:5;105591:3;105596:8;105567:42;;;;;;;;;;;;:16;:42::i;61041:45::-;;;;;;;;;;;;-1:-1:-1;;;;;61041:45:0;;:::o;73149:165::-;73223:7;73259:12;;73250:6;:21;73242:46;;;;;-1:-1:-1;;;73242:46:0;;;;;;;;;;;;-1:-1:-1;;;73242:46:0;;;;;;;;;;;;;;;-1:-1:-1;73302:6:0;73149:165::o;74803:110::-;74863:4;74883:24;:11;74899:7;74883:24;:15;:24;:::i;95160:169::-;95258:11;95288:35;95313:9;95288:24;:35::i;79831:123::-;41059:25;41073:10;41059:13;:25::i;:::-;41051:97;;;;-1:-1:-1;;;41051:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79932:16;:4;79939:9;;79932:16;:::i;74919:136::-;41059:25;41073:10;41059:13;:25::i;:::-;41051:97;;;;-1:-1:-1;;;41051:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74989:24;:11;75005:7;74989:24;:15;:24;:::i;:::-;75025;;-1:-1:-1;;;;;75025:24:0;;;;;;;;74919:136;:::o;92356:36::-;;;;:::o;65976:138::-;66064:7;62799:18;;;:8;:18;;;;;;66041:8;;-1:-1:-1;;;;;62799:18:0;62783:70;;;;;-1:-1:-1;;;62783:70:0;;;;;;;;;;;;-1:-1:-1;;;62783:70:0;;;;;;;;;;;;;;;-1:-1:-1;;66090:18:0;;;;:8;:18;;;;;;-1:-1:-1;;;;;66090:18:0;;65976:138::o;63494:177::-;-1:-1:-1;;;;;63606:21:0;63583:4;63606:21;;;:10;:21;;;;;:41;;;63650:15;-1:-1:-1;;63494:177:0:o;109263:934::-;18492:12;;;;;;;;:31;;;18508:15;:13;:15::i;:::-;18492:47;;;-1:-1:-1;18528:11:0;;;;18527:12;18492:47;18484:106;;;;-1:-1:-1;;;18484:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18599:19;18622:12;;;;;;18621:13;18641:83;;;;18670:12;:19;;-1:-1:-1;;;;18670:19:0;;;;;18698:18;18685:4;18698:18;;;18641:83;109489:47;109522:13;109489:32;:47::i;:::-;109543:38;:36;:38::i;:::-;109588:102;109627:12;109641:19;109662:9;109673:16;109588:38;:102::i;:::-;109697:57;109744:9;109697:46;:57::i;:::-;109761:56;:54;:56::i;:::-;109824:38;:36;:38::i;:::-;109869:66;109922:12;109869:52;:66::i;:::-;109942:64;109993:12;109942:50;:64::i;:::-;110161:30;-1:-1:-1;;;110161:18:0;:30::i;:::-;18746:14;18742:57;;;18786:5;18771:20;;-1:-1:-1;;18771:20:0;;;18742:57;109263:934;;;;;;;:::o;63222:204::-;63306:4;-1:-1:-1;;;;;63330:23:0;;63322:51;;;;;-1:-1:-1;;;63322:51:0;;;;;;;;;;;;-1:-1:-1;;;63322:51:0;;;;;;;;;;;;;;;63387:25;63402:9;63387:14;:25::i;:::-;:33;;63419:1;63387:33;;;63415:1;63387:33;63380:40;;;63222:204;-1:-1:-1;;63222:204:0:o;54705:27::-;;;;:::o;80036:173::-;41059:25;41073:10;41059:13;:25::i;:::-;41051:97;;;;-1:-1:-1;;;41051:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80141:24;:10;80154:11;;80141:24;:::i;:::-;;80177:26;80191:11;;80177:26;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;;74:27;80177:26:0;;137:4:-1;117:14;;;-1:-1;;113:30;157:16;;;80177:26:0;;;;-1:-1:-1;80177:26:0;;-1:-1:-1;;;;80177:26:0;80036:173;;:::o;21044:238::-;18492:12;;;;;;;;:31;;;18508:15;:13;:15::i;:::-;18492:47;;;-1:-1:-1;18528:11:0;;;;18527:12;18492:47;18484:106;;;;-1:-1:-1;;;18484:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18599:19;18622:12;;;;;;18621:13;18641:83;;;;18670:12;:19;;-1:-1:-1;;;;18670:19:0;;;;;18698:18;18685:4;18698:18;;;18641:83;21234:40;-1:-1:-1;;;21234:18:0;:40::i;:::-;18746:14;18742:57;;;18786:5;18771:20;;-1:-1:-1;;18771:20:0;;;18742:57;21044:238;:::o;75769:1086::-;74653:24;74666:10;74653:12;:24::i;:::-;:53;;;;74681:25;74695:10;74681:13;:25::i;:::-;74645:138;;;;-1:-1:-1;;;74645:138:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75964:6;75960:890;75976:22;;;75960:890;;;76014:17;76034:11;;76046:1;76034:14;;;;;;;;;;;;;-1:-1:-1;;;;;76034:14:0;76014:34;;76057:24;76084:21;;76106:1;76084:24;;;;;;;;;;;;;76057:51;;76117:18;76138:12;;76151:1;76138:15;;;;;;;;;;;;;-1:-1:-1;;;;;76138:15:0;76117:36;;76193:1;-1:-1:-1;;;;;76172:23:0;:9;-1:-1:-1;;;;;76172:23:0;;;76164:51;;;;;-1:-1:-1;;;76164:51:0;;;;;;;;;;;;-1:-1:-1;;;76164:51:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;76246:21:0;;76226:17;76246:21;;;:10;:21;;;;;76306:25;;;;76284:47;;76276:76;;;;;-1:-1:-1;;;76276:76:0;;;;;;;;;;;;-1:-1:-1;;;76276:76:0;;;;;;;;;;;;;;;76375:13;;76402:9;76399:130;;76424:24;76442:5;76424:17;:24::i;:::-;-1:-1:-1;76466:13:0;;76490:29;76503:9;76466:13;76490:12;:29::i;:::-;76567:34;76584:4;76590:10;76567:16;:34::i;:::-;76615:35;;-1:-1:-1;;;;;76615:35:0;;;76633:4;;76615:35;;;;;76661:25;;;:47;;;76746:96;;76829:4;;-1:-1:-1;;;;;76746:96:0;;;76773:1;;-1:-1:-1;;;;;;;;;;;76746:96:0;76773:1;;76746:96;-1:-1:-1;;76000:3:0;;;;;-1:-1:-1;75960:890:0;;-1:-1:-1;;75960:890:0;106540:235;41059:25;41073:10;41059:13;:25::i;:::-;41051:97;;;;-1:-1:-1;;;41051:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106657:57;;;;;;;;;;;;;;;;;106721:22;:48;106540:235::o;95718:546::-;95839:20;95977:4;92602:50;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;96127:30:0;;;;;;:17;:30;;;;;;;;;-1:-1:-1;;95896:355:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;95896:355:0;;;;;;95878:380;;;;;;;;;-1:-1:-1;;95718:546:0;;;;:::o;65825:104::-;65910:6;:13;65825:104;:::o;80314:212::-;80398:10;80392:24;80364:13;;80392:24;-1:-1:-1;;80392:24:0;;;;;;;;;;;80389:132;;80439:14;;;;;;;;;-1:-1:-1;;;;;80439:14:0;-1:-1:-1;;;;;80439:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80439:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80439:34:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;80439:34:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;80439:34:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;-1:-1;;;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;80439:34:0;;420:4:-1;411:14;;;;80439:34:0;;;;;411:14:-1;80439:34:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;80439:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80432:41;;;;80389:132;80503:10;80496:17;;;;;;;;;;;;;-1:-1:-1;;80496:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;80503:10;80496:17;;80503:10;80496:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63791:134;-1:-1:-1;;;;;63891:20:0;63868:4;63891:20;;;:10;:20;;;;;:28;;63791:134::o;93141:184::-;41059:25;41073:10;41059:13;:25::i;:::-;41051:97;;;;-1:-1:-1;;;41051:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93263:9;62633:21;62648:5;62633:14;:21::i;:::-;62617:61;;;;;-1:-1:-1;;;62617:61:0;;;;;;;;;;;;-1:-1:-1;;;62617:61:0;;;;;;;;;;;;;;;93284:35;93301:9;93312:6;93284:16;:35::i;65120:155::-;65215:4;65238:18;;;:8;:18;;;;;;;-1:-1:-1;;;;;65238:31:0;;;:18;;:31;;65120:155::o;38102:27::-;;;-1:-1:-1;;;;;38102:27:0;;:::o;71383:268::-;42282:7;;-1:-1:-1;;;42282:7:0;;;;42274:35;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;71496:17:0;;71503:10;71496:17;;71488:42;;;;;-1:-1:-1;;;71488:42:0;;;;;;;;;;;;-1:-1:-1;;;71488:42:0;;;;;;;;;;;;;;;71563:10;71537:37;;;;:25;:37;;;;;;;;-1:-1:-1;;;;;71537:42:0;;;;;;;;;;;;:54;;-1:-1:-1;;71537:54:0;;;;;;;;;;71603:42;;;;;;;71537;;71563:10;71603:42;;;;;;;;;;;71383:268;;:::o;57674:486::-;41059:25;41073:10;41059:13;:25::i;:::-;41051:97;;;;-1:-1:-1;;;41051:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42282:7;;-1:-1:-1;;;42282:7:0;;;;42274:35;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;;;;57835:8;;57876:12;;-1:-1:-1;;;;;57876:12:0;;;;57911:27;;;;:70;;;57980:1;57949:13;-1:-1:-1;;;;;57942:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57942:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57942:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57942:35:0;:39;57911:70;57895:117;;;;;-1:-1:-1;;;57895:117:0;;;;;;;;;;;;-1:-1:-1;;;57895:117:0;;;;;;;;;;;;;;;58019:8;:20;;;58046:12;:28;;-1:-1:-1;;;;;;58046:28:0;-1:-1:-1;;;;;58046:28:0;;;;;;;;;;;58086:68;;;;;;;;;;;;;;;;;;;58141:12;;;;58086:68;;;;;;;;;;;;;;;42316:1;;57674:486;;:::o;92399:27::-;;;;:::o;41168:112::-;41229:4;41249:25;:12;41266:7;41249:25;:16;:25;:::i;65505:160::-;-1:-1:-1;;;;;65618:21:0;65595:4;65618:21;;;:10;:21;;;;;:41;;;;65505:160::o;58667:481::-;41059:25;41073:10;41059:13;:25::i;:::-;41051:97;;;;-1:-1:-1;;;41051:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58809:32:0;;;;:67;;;58845:31;:18;-1:-1:-1;;;;;58845:29:0;;:31::i;:::-;58801:104;;;;;-1:-1:-1;;;58801:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58920:30:0;;;;:63;;;58954:29;:16;-1:-1:-1;;;;;58954:27:0;;:29::i;:::-;58912:102;;;;;-1:-1:-1;;;58912:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;59021:17;:60;;-1:-1:-1;;;;;59021:60:0;;;-1:-1:-1;;;;;;59021:60:0;;;;;;;59088:15;:54;;;;;;;;;;;58667:481::o;66441:302::-;62829:1;62799:18;;;:8;:18;;;;;;66535:8;;-1:-1:-1;;;;;62799:18:0;62783:70;;;;;-1:-1:-1;;;62783:70:0;;;;;;;;;;;;-1:-1:-1;;;62783:70:0;;;;;;;;;;;;;;;66571:35;66585:8;66595:10;66571:13;:35::i;:::-;:71;;;;66617:25;66631:10;66617:13;:25::i;:::-;66555:136;;;;;-1:-1:-1;;;66555:136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;66698:39;66715:8;66725:11;66698:16;:39::i;94026:438::-;94200:55;94231:11;94244:10;94200:30;:55::i;:::-;94264:11;94284:2;94295;94306;91280:11;-1:-1:-1;;;;;91173:118:0;:103;91193:35;91222:5;91193:28;:35::i;:::-;91239:2;91252;91265;91173:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;91173:103:0;;;;;;;;-1:-1:-1;;;;;91173:118:0;;91157:162;;;;;-1:-1:-1;;;91157:162:0;;;;;;;;;;;;-1:-1:-1;;;91157:162:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;91326:30:0;;;;;;:17;:30;;;;;;;;;:32;;;;;;;;91370:57;;;;;;;;;;;;;;;;;94326:16;94345:17;94353:8;94345:7;:17::i;:::-;94326:36;;94369:11;94383:34;94408:8;94383:24;:34::i;:::-;94369:48;;94424:34;94441:8;94451:6;94424:16;:34::i;106187:278::-;106323:34;106336:5;106343:3;106348:8;106323:12;:34::i;:::-;106372:51;106395:5;106402:3;106407:8;106417:5;106372:22;:51::i;:::-;106364:93;;;;;-1:-1:-1;;;106364:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;106187:278;;;;:::o;42423:127::-;41059:25;41073:10;41059:13;:25::i;:::-;41051:97;;;;-1:-1:-1;;;41051:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42282:7;;-1:-1:-1;;;42282:7:0;;;;42274:35;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;;;;42513:9;;;;;;;42529:7;:15;;-1:-1:-1;;;;42529:15:0;;;42423:127::o;81097:400::-;62829:1;62799:18;;;:8;:18;;;;;;81196:13;;81173:8;;-1:-1:-1;;;;;62799:18:0;62783:70;;;;;-1:-1:-1;;;62783:70:0;;;;;;;;;;;;-1:-1:-1;;;62783:70:0;;;;;;;;;;;;;;;81254:12;81248:26;81221:17;;81248:26;-1:-1:-1;;81248:26:0;;;;;;;;;;;81245:135;;81296:14;;;;;;;;;-1:-1:-1;;;;;81296:14:0;-1:-1:-1;;;;;81296:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;81296:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;81296:35:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;81296:35:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;81296:35:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;-1:-1;;;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;81296:35:0;;420:4:-1;411:14;;;;81296:35:0;;;;;411:14:-1;81296:35:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;81296:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81290:41;;81245:135;;;81360:12;81354:18;;;;;;;;;;;;;-1:-1:-1;;81354:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;81360:12;81354:18;;81360:12;81354:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81245:135;81395:96;81417:27;81425:4;81417:25;:27::i;:::-;81395:96;;;;;;;;;;;;;-1:-1:-1;;;81395:96:0;;;81465:19;:8;:17;:19::i;:::-;81395:3;;:96;;;:13;:96;:::i;:::-;81388:103;81097:400;-1:-1:-1;;;;81097:400:0:o;56073:89::-;56155:1;56073:89;:::o;41286:139::-;41059:25;41073:10;41059:13;:25::i;:::-;41051:97;;;;-1:-1:-1;;;41051:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41357:25;:12;41374:7;41357:25;:16;:25;:::i;:::-;41394;;-1:-1:-1;;;;;41394:25:0;;;;;;;;41286:139;:::o;93482:244::-;93566:8;62078:35;62092:8;62102:10;62078:13;:35::i;:::-;:79;;;;62124:33;62136:8;62146:10;62124:11;:33::i;:::-;62078:138;;;-1:-1:-1;62185:18:0;;;;:8;:18;;;;;;62168:48;;-1:-1:-1;;;;;62185:18:0;62205:10;62168:16;:48::i;:::-;62062:200;;;;;-1:-1:-1;;;62062:200:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;62062:200:0;;;;;;;;;;;;;;;93586:16;93605:17;93613:8;93605:7;:17::i;:::-;93586:36;;93629:11;93643:34;93668:8;93643:24;:34::i;:::-;93629:48;;93686:34;93703:8;93713:6;93686:16;:34::i;38453:266::-;38555:4;-1:-1:-1;;;;;38574:27:0;;38571:143;;-1:-1:-1;;;;;;38619:16:0;;;38612:23;;38571:143;38672:13;-1:-1:-1;;;;;38665:31:0;;38697:8;38665:41;;;;;;;;;;;;;-1:-1:-1;;;;;38665:41:0;-1:-1:-1;;;;;38665:41:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38665:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38665:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38665:41:0;;-1:-1:-1;38658:48:0;;68327:395;-1:-1:-1;;;;;68460:18:0;;;68429:4;68460:18;;;:10;:18;;;;;;;;:26;68514:21;;;:12;:21;;;;;;68429:4;;68460:26;;68514:21;68545:24;68542:175;;-1:-1:-1;;;;;;;;68587:33:0;;;;;;;:25;:33;;;;;;;;:44;;;;;;;;;;;;68580:51;;68542:175;-1:-1:-1;;;;;68661:37:0;;;;;;;:25;:37;;;;;;;;:48;;;;;;;;;;;;;-1:-1:-1;68654:55:0;;-1:-1:-1;68654:55:0;41431:124;41476:31;:12;41496:10;41476:31;:19;:31;:::i;:::-;41519:30;;41538:10;;41519:30;;;;;41431:124::o;100992:2030::-;42282:7;;-1:-1:-1;;;42282:7:0;;;;42274:35;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;-1:-1:-1;;;42274:35:0;;;;;;;;;;;;;;;101130:8;62078:35;62092:8;62102:10;62078:13;:35::i;:::-;:79;;;;62124:33;62136:8;62146:10;62124:11;:33::i;:::-;62078:138;;;-1:-1:-1;62185:18:0;;;;:8;:18;;;;;;62168:48;;-1:-1:-1;;;;;62185:18:0;62205:10;62168:16;:48::i;:::-;62062:200;;;;;-1:-1:-1;;;62062:200:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;62062:200:0;;;;;;;;;;;;;;;55034:5;101158:22;;:41;101150:76;;;;;-1:-1:-1;;;101150:76:0;;;;;;;;;;;;-1:-1:-1;;;101150:76:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;101241:17:0;;101233:45;;;;;-1:-1:-1;;;101233:45:0;;;;;;;;;;;;-1:-1:-1;;;101233:45:0;;;;;;;;;;;;;;;101285:16;101304:18;;;:8;:18;;;;;;-1:-1:-1;;;;;101304:18:0;101337:24;101304:18;101337:14;:24::i;:::-;101329:50;;;;;-1:-1:-1;;;101329:50:0;;;;;;;;;;;;-1:-1:-1;;;101329:50:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;101408:20:0;;;101386:19;101408:20;;;:10;:20;;;;;;101455:15;;;;;;;101489:13;;101596:27;;;;101455:15;;101489:13;;101626:15;101596:45;;101386:19;101725:37;101419:8;101750:11;101725:14;:37::i;:::-;101714:48;-1:-1:-1;101769:16:0;101788:20;:11;101714:48;101788:20;:15;:20;:::i;:::-;101769:39;;101885:13;101871:11;:27;101868:489;;;101957:11;101950:18;;102039:42;102052:8;102062:11;102075:5;102039:12;:42::i;:::-;101868:489;;;102156:39;102171:8;102181:13;102156:14;:39::i;:::-;102269:15;102239:27;;;:45;102330:19;;102211;;;;-1:-1:-1;102150:45:0;;-1:-1:-1;102340:8:0;;102330:19;;;;;101868:489;102369:9;102365:392;;102389:24;102407:5;102389:17;:24::i;:::-;102429:13;;;-1:-1:-1;102451:23:0;102464:3;102429:13;102451:12;:23::i;:::-;102488:105;;102580:4;;-1:-1:-1;;;;;102488:105:0;;;102515:1;;-1:-1:-1;;;;;;;;;;;102488:105:0;102515:1;;102488:105;102365:392;;;102640:15;102611:5;:25;;;:44;102607:150;;102715:34;102732:4;102746:1;102715:16;:34::i;:::-;102793:30;102806:4;102812;102818;102793:12;:30::i;:::-;102903:4;102891:3;-1:-1:-1;;;;;102857:57:0;102874:8;-1:-1:-1;;;;;102857:57:0;-1:-1:-1;;;;;;;;;;;102857:57:0;;;;;;;;;102931:51;102954:8;102964:3;102969:8;102931:51;;;;;;;;;;;;:22;:51::i;:::-;102923:93;;;;;-1:-1:-1;;;102923:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;56814:596;55372:25;55386:10;55372:13;:25::i;:::-;:54;;;-1:-1:-1;55415:11:0;;-1:-1:-1;;;;;55415:11:0;55401:10;:25;55372:54;55356:120;;;;;-1:-1:-1;;;55356:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56937:12;56952:40;56963:13;56986:4;56952:10;:40::i;:::-;56937:55;-1:-1:-1;56999:11:0;57020:12;;;:33;;;57046:7;57036;:17;57020:33;57017:174;;;57087:1;57077:7;:11;57069:40;;;;;-1:-1:-1;;;57069:40:0;;;;;;;;;;;;-1:-1:-1;;;57069:40:0;;;;;;;;;;;;;;;-1:-1:-1;57127:7:0;57017:174;;;-1:-1:-1;57176:7:0;57017:174;57242:11;;57204:58;;;;;;;;-1:-1:-1;;;;;57242:11:0;;;;57204:58;;;57215:10;;57204:58;;;;;;;;;57384:11;;57359:45;;57369:13;;-1:-1:-1;;;;;57384:11:0;57397:6;57359:9;:45::i;107043:600::-;107172:4;107147:9;62633:21;62648:5;62633:14;:21::i;:::-;62617:61;;;;;-1:-1:-1;;;62617:61:0;;;;;;;;;;;;-1:-1:-1;;;62617:61:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;107206:21:0;;107188:15;107206:21;;;:10;:21;;;;;;107188:15;107415:10;107412:135;;107479:15;107453:3;:23;;;:41;107436:58;;107412:135;;;107534:5;107517:22;;107412:135;55034:5;107559:42;107578:22;;107559:14;:18;;:42;;;;:::i;:::-;:61;;;;;;;107043:600;-1:-1:-1;;;;;;;107043:600:0:o;90843:49::-;;;;;;;;;;;;;:::o;68829:314::-;68931:4;68950:22;;;:12;:22;;;;;;-1:-1:-1;;;;;68950:37:0;;;:22;;:37;;:123;;-1:-1:-1;69033:1:0;68999:22;;;:12;:22;;;;;;-1:-1:-1;;;;;68999:22:0;:36;:73;;;;;69039:33;69050:8;69060:11;69039:10;:33::i;:::-;68947:191;;;-1:-1:-1;69091:4:0;69084:11;;68947:191;-1:-1:-1;69125:5:0;69118:12;;71746:150;71840:4;71863:18;;;:8;:18;;;;;;;-1:-1:-1;;;;;71863:27:0;;;:18;;:27;;71746:150::o;85993:686::-;86206:17;;86127:16;;;;;;-1:-1:-1;;;;;86206:17:0;86198:40;86195:212;;86268:17;;:76;;-1:-1:-1;;;86268:76:0;;86303:10;86268:76;;;;;;-1:-1:-1;;;;;86268:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:17;;;;;:34;;86315:10;;86327:9;;86338:5;;86268:76;;;;;;;;;;;;:17;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;86268:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;86268:76:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;86268:76:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;86268:76:0;;-1:-1:-1;86195:212:0;;;86391:8;;86377:22;;86195:212;86418:15;;86415:259;;86482:14;;:67;;;-1:-1:-1;;;86482:67:0;;-1:-1:-1;;;;;86482:67:0;;;;;;;;;;;;;;;:14;;;:42;;:67;;;;;;;;;;;;;:14;:67;;;5:2:-1;;;;30:1;27;20:12;5:2;86482:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;86482:67:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;86482:67:0;;;;;;;;;-1:-1:-1;86482:67:0;-1:-1:-1;86566:29:0;;;;86558:70;;;;;-1:-1:-1;;;86558:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;86652:14;86637:29;;;;86415:259;85993:686;;;;;;;:::o;70392:701::-;70500:18;70521;;;:8;:18;;;;;;-1:-1:-1;;;;;70521:18:0;70554:24;70546:53;;;;;-1:-1:-1;;;70546:53:0;;;;;;;;;;;;-1:-1:-1;;;70546:53:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;70624:22:0;;70606:15;70624:22;;;:10;:22;;;;;70676:23;;;;70624:22;;70722:26;70635:10;70722:14;:26::i;:::-;70706:42;;70758:8;70755:275;;;70780:8;70777:169;;;70827:28;:15;70847:7;70827:28;:19;:28;:::i;:::-;70801:23;;;:54;70777:169;;;70908:28;:15;70928:7;70908:28;:19;:28;:::i;:::-;70882:23;;;:54;70777:169;70755:275;;;70994:28;:15;71014:7;70994:28;:19;:28;:::i;:::-;70968:23;;;:54;70755:275;71041:46;;;;;;;;;;;;;;;71059:8;;71041:46;;;;;;;;70392:701;;;;;;;:::o;69659:308::-;69753:18;;;;:8;:18;;;;;;-1:-1:-1;;;;;69753:31:0;;;:18;;:31;69749:213;;69846:6;27:10:-1;;39:1;23:18;;45:23;;;69846:22:0;;;;-1:-1:-1;;;;;69846:22:0;;-1:-1:-1;;;;;;69846:22:0;;;;;;;;-1:-1:-1;69924:18:0;;;:8;69846:22;69924:18;;;;:30;;;;;;;;;;69749:213;69659:308;;:::o;72048:162::-;72153:1;72123:18;;;:8;:18;;;;;;-1:-1:-1;;;;;72123:18:0;:32;72119:86;;72195:1;72166:18;;;:8;:18;;;;;:31;;-1:-1:-1;;;;;;72166:31:0;;;72048:162::o;66749:282::-;66848:22;;;;:12;:22;;;;;;-1:-1:-1;;;;;66848:37:0;;;:22;;:37;66845:181;;66896:22;;;;:12;:22;;;;;:36;;-1:-1:-1;;;;;;66896:36:0;-1:-1:-1;;;;;66896:36:0;;;;;66941:24;66896:22;66941:14;:24::i;:::-;66979:39;;67015:1;;66997:8;;66979:39;;67015:1;;66979:39;66749:282;;:::o;29241:181::-;29299:7;29331:5;;;29355:6;;;;29347:46;;;;;-1:-1:-1;;;29347:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;39932:183;40012:18;40016:4;40022:7;40012:3;:18::i;:::-;40004:64;;;;-1:-1:-1;;;40004:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40079:20:0;40102:5;40079:20;;;;;;;;;;;:28;;-1:-1:-1;;40079:28:0;;;39932:183::o;69266:330::-;69344:12;;69340:251;;69451:12;:14;;;;;;;;69556:27;;69266:330::o;34702:204::-;34829:68;;;-1:-1:-1;;;;;34829:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;34829:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;34803:95:0;;34822:5;;34803:18;:95::i;40210:203::-;40282:4;-1:-1:-1;;;;;40307:21:0;;40299:68;;;;-1:-1:-1;;;40299:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;40385:20:0;:11;:20;;;;;;;;;;;;;;;40210:203::o;97328:1036::-;97451:11;97426:9;62633:21;62648:5;62633:14;:21::i;:::-;62617:61;;;;;-1:-1:-1;;;62617:61:0;;;;;;;;;;;;-1:-1:-1;;;62617:61:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;97492:21:0;;97474:15;97492:21;;;:10;:21;;;;;97634:23;;;;97720:18;;97701:15;;97660;97634:41;;;;97685:31;;:53;97682:250;;97758:8;;97749:17;;97682:250;;;97906:18;;97876:8;;:27;;97889:13;97876:27;:12;:27;:::i;:::-;:48;;;;;;97867:57;;97682:250;97997:15;;:20;;:76;;;98055:18;;98037:15;;98021:13;:31;:52;97997:76;97994:365;;;98089:12;55034:5;98104:38;98117:24;;98104:8;;:12;;:38;;;;:::i;:::-;:57;;;;;;98089:72;;98183:7;98174:6;:16;98170:182;;;98298:7;98288:17;;;;98170:182;;;98341:1;98332:10;;98170:182;97994:365;;62685:1;;97328:1036;;;;:::o;39674:178::-;39752:18;39756:4;39762:7;39752:3;:18::i;:::-;39751:19;39743:63;;;;;-1:-1:-1;;;39743:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39817:20:0;:11;:20;;;;;;;;;;;:27;;-1:-1:-1;;39817:27:0;39840:4;39817:27;;;39674:178::o;18893:508::-;19310:4;19356:17;19388:7;18893:508;:::o;38136:241::-;38219:12;:28;;-1:-1:-1;;;;;;38219:28:0;-1:-1:-1;;;;;38219:28:0;;;;;;;;38270:27;;:70;;;38339:1;38308:13;-1:-1:-1;;;;;38301:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38301:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38301:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38301:35:0;:39;38270:70;38254:117;;;;;-1:-1:-1;;;38254:117:0;;;;;;;;;;;;-1:-1:-1;;;38254:117:0;;;;;;;;;;;;;;42114:78;42172:7;:14;;-1:-1:-1;;;;42172:14:0;-1:-1:-1;;;42172:14:0;;;42114:78::o;55496:500::-;55692:24;55669:19;:47;;55661:84;;;;;-1:-1:-1;;;55661:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;55752:14;:36;;55777:10;-1:-1:-1;;;;;;55752:36:0;;;;;;;55849:11;:26;;;;;-1:-1:-1;;;;;55849:26:0;;;;;;;;;;;55882:18;:40;;;;55929:8;:20;55956:15;:34;55496:500::o;79400:339::-;79492:19;:17;:19::i;:::-;79518:16;;;;:4;;:16;;;;;:::i;:::-;-1:-1:-1;79703:30:0;-1:-1:-1;;;79703:18:0;:30::i;72505:399::-;72868:30;-1:-1:-1;;;72868:18:0;:30::i;:::-;72505:399::o;92889:114::-;92993:4;92966:24;:31;92889:114::o;40864:147::-;40942:21;40956:6;40942:13;:21::i;:::-;40937:69;;40974:24;:12;40991:6;40974:24;:16;:24;:::i;74453:144::-;74530:20;74543:6;74530:12;:20::i;:::-;74525:67;;74561:23;:11;74577:6;74561:23;:15;:23;:::i;21979:193::-;-1:-1:-1;;;;;;22055:25:0;;;;;22047:66;;;;;-1:-1:-1;;;22047:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22124:33:0;;;;;:20;:33;;;;;:40;;-1:-1:-1;;22124:40:0;22160:4;22124:40;;;21979:193::o;96374:749::-;-1:-1:-1;;;;;96484:21:0;;96466:15;96484:21;;;:10;:21;;;;;;;;;96529:11;;96519:53;;;;;;;96484:21;;96553:10;;96484:21;;96529:11;;96519:53;;;;;;;;;;;96771:15;96745:23;;;:41;96799:10;;96795:141;;96896:12;;96886:42;;-1:-1:-1;;;;;96896:12:0;96910:9;96921:6;96886:9;:42::i;:::-;97006:15;;-1:-1:-1;;;;;97006:15:0;96998:38;96995:123;;97052:15;;:58;;;-1:-1:-1;;;97052:58:0;;97080:10;97052:58;;;;-1:-1:-1;;;;;97052:58:0;;;;;;;;;;;;;;;:15;;;;;:27;;:58;;;;;:15;;:58;;;;;;;:15;;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;97052:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;25779:810:0;25839:4;26498:20;;26341:66;26538:15;;;;;:42;;-1:-1:-1;26557:23:0;;;25779:810;-1:-1:-1;;25779:810:0:o;90229:269::-;90431:58;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;90431:58:0;;;;;;;90421:69;;;;;;90229:269::o;108157:362::-;108305:4;108326:15;:2;-1:-1:-1;;;;;108326:13:0;;:15::i;:::-;108321:50;;-1:-1:-1;108359:4:0;108352:11;;108321:50;108393:78;;-1:-1:-1;;;108393:78:0;;108438:10;108393:78;;;;;;-1:-1:-1;;;;;108393:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;108377:13;;108393:36;;;;;;108438:10;;108450:4;;108456:7;;108465:5;;108393:78;;;;;;;;;;;108377:13;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;108393:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;108393:78:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;108393:78:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;108393:78:0;-1:-1:-1;;;;;;108486:26:0;-1:-1:-1;;;108486:26:0;;-1:-1:-1;;108157:362:0;;;;;;:::o;77922:454::-;78066:42;;;;;;;;;;;-1:-1:-1;;;78066:42:0;;;;78134:13;;78144:2;78134:13;;;77995;78134;;;;;;-1:-1:-1;;;;;78044:14:0;;;78066:42;77995:13;;78134;;;21:6:-1;;104:10;78134:13:0;87:34:-1;135:17;;-1:-1;78134:13:0;78115:32;;-1:-1:-1;;;78154:3:0;78158:1;78154:6;;;;;;;;;;;:12;-1:-1:-1;;;;;78154:12:0;;;;;;;;;-1:-1:-1;;;78173:3:0;78177:1;78173:6;;;;;;;;;;;:12;-1:-1:-1;;;;;78173:12:0;;;;;;;;-1:-1:-1;78197:6:0;78192:154;78213:2;78209:1;:6;78192:154;;;78244:8;78276:1;78259:5;78265:1;78269:2;78265:6;78259:13;;;;;;;;;;-1:-1:-1;;;;;78259:18:0;;;;78253:25;;78244:35;;;;;;;;;;;;;;;;;;78231:3;78237:1;78239;78237:3;78235:1;:5;78231:10;;;;;;;;;;;:48;-1:-1:-1;;;;;78231:48:0;;;;;;;;;78301:8;78316:5;78322:1;78326:2;78322:6;78316:13;;;;;;;78301:37;;78316:13;;;78332:4;78310:27;;78301:37;;;;;;;;;;;;;;78288:3;78294:1;78296;78294:3;78292:1;:5;78288:10;;;;;;;;;;;:50;-1:-1:-1;;;;;78288:50:0;;;;;;;;-1:-1:-1;78217:3:0;;78192:154;;;-1:-1:-1;78366:3:0;77922:454;-1:-1:-1;;;;77922:454:0:o;77403:513::-;77468:27;77590:2;77603:7;77599:40;;-1:-1:-1;;77621:10:0;;;;;;;;;;;;-1:-1:-1;;;77621:10:0;;;;;;77599:40;77654:2;77645:6;77678:53;77685:6;;77678:53;;77702:5;;77721:2;77716:7;;;;77678:53;;;77737:17;77767:3;77757:14;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;77757:14:0;87:34:-1;135:17;;-1:-1;77757:14:0;-1:-1:-1;77737:34:0;-1:-1:-1;;;77787:7:0;;77801:84;77808:6;;77801:84;;77857:2;77853:1;:6;77848:2;:11;77837:24;;77825:4;77830:3;;;;;;;77825:9;;;;;;;;;;;:36;-1:-1:-1;;;;;77825:36:0;;;;;;;;-1:-1:-1;77875:2:0;77870:7;;;;77801:84;;;-1:-1:-1;77905:4:0;77403:513;-1:-1:-1;;;;;77403:513:0:o;77155:242::-;77299:33;77375:2;77379;77383;77387;77358:32;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;77358:32:0;;;;;;;;;;-1:-1:-1;77358:32:0;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;77358:32:0;;;;;;;;;;-1:-1:-1;77358:32:0;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;77358:32:0;;;;;;;;;;-1:-1:-1;77358:32:0;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;77358:32:0;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;77358:32:0;;;77344:47;;77155:242;;;;;;:::o;38877:436::-;38988:11;;38985:323;;-1:-1:-1;;;;;39013:27:0;;39010:291;;39145:40;-1:-1:-1;;;;;39145:31:0;;39177:7;39145:40;:31;:40;:::i;:::-;39010:291;;;39234:13;39259:32;-1:-1:-1;;;;;39259:18:0;;39278:3;39283:7;39259:32;:18;:32;:::i;30613:471::-;30671:7;30916:6;30912:47;;-1:-1:-1;30946:1:0;30939:8;;30912:47;30983:5;;;30987:1;30983;:5;:1;31007:5;;;;;:10;30999:56;;;;-1:-1:-1;;;30999:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29697:136;29755:7;29782:43;29786:1;29789;29782:43;;;;;;;;;;;;;;;;;:3;:43::i;36557:1114::-;37161:27;37169:5;-1:-1:-1;;;;;37161:25:0;;:27::i;:::-;37153:71;;;;;-1:-1:-1;;;37153:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;37298:12;37312:23;37347:5;-1:-1:-1;;;;;37339:19:0;37359:4;37339:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;37339:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;37297:67:0;;;;37383:7;37375:52;;;;;-1:-1:-1;;;37375:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37444:17;;:21;37440:224;;37586:10;37575:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37575:30:0;37567:85;;;;-1:-1:-1;;;37567:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27910:371;28025:6;28000:21;:31;;27992:73;;;;;-1:-1:-1;;;27992:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;28152:32;;28134:12;;-1:-1:-1;;;;;28152:14:0;;;28173:6;;28134:12;28152:32;28134:12;28152:32;28173:6;28152:14;:32;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;28133:51:0;;;28203:7;28195:78;;;;-1:-1:-1;;;28195:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34518:176;34627:58;;;-1:-1:-1;;;;;34627:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;34627:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;34601:85:0;;34620:5;;34601:18;:85::i;30170:192::-;30256:7;30292:12;30284:6;;;;30276:29;;;;-1:-1:-1;;;30276:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;30276:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30328:5:0;;;30170:192::o;108937:1474::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;108937:1474:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;108937:1474:0;;;-1:-1:-1;108937:1474:0;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
bzzr://22f0e9d10d0f846972d523457d15ee83683eaa4cbd936b23db3130a10e076e9c
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.