- Contract name:
- PKPPermissions
- Optimization enabled
- false
- Compiler version
- v0.8.17+commit.8df45f5f
- Verified at
- 2023-03-31T20:23:39.347566Z
Constructor Arguments
0000000000000000000000008eb912250b1ec585cfe28a9aa662c985f3451041
Arg [0] (address) : 0x8eb912250b1ec585cfe28a9aa662c985f3451041
contracts/PKPPermissions.sol
//SPDX-License-Identifier: GPL-3.0-or-laterpragma solidity ^0.8.17;import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";import { BitMaps } from "@openzeppelin/contracts/utils/structs/BitMaps.sol";import { EnumerableSet } from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";import { PKPNFT } from "./PKPNFT.sol";import "solidity-bytes-utils/contracts/BytesLib.sol";import "hardhat/console.sol";contract PKPPermissions is Ownable {using EnumerableSet for EnumerableSet.AddressSet;using EnumerableSet for EnumerableSet.Bytes32Set;using EnumerableSet for EnumerableSet.UintSet;using BytesLib for bytes;using BitMaps for BitMaps.BitMap;/* ========== STATE VARIABLES ========== */PKPNFT public pkpNFT;enum AuthMethodType {NULLMETHOD, // 0ADDRESS, // 1ACTION, // 2WEBAUTHN, // 3DISCORD, // 4GOOGLE, // 5GOOGLE_JWT // 6}struct AuthMethod {uint256 authMethodType; // 1 = address, 2 = action, 3 = WebAuthn, 4 = Discord, 5 = Google, 6 = Google JWT. Not doing this in an enum so that we can add more auth methods in the future without redeploying.bytes id; // the id of the auth method. For address, this is an eth address. For action, this is an IPFS CID. For WebAuthn, this is the credentialId. For Discord, this is the user's Discord ID. For Google, this is the user's Google ID.bytes userPubkey; // the user's pubkey. This is used for WebAuthn.}// map the keccack256(uncompressed pubkey) -> set of auth methods
@openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)pragma solidity ^0.8.0;import "../utils/Context.sol";/*** @dev Contract module which provides a basic access control mechanism, where* there is an account (an owner) that can be granted exclusive access to* specific functions.** By default, the owner account will be the one that deploys the contract. This* can later be changed with {transferOwnership}.** This module is used through inheritance. It will make available the modifier* `onlyOwner`, which can be applied to your functions to restrict their use to* the owner.*/abstract contract Ownable is Context {address private _owner;event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);/*** @dev Initializes the contract setting the deployer as the initial owner.*/constructor() {_transferOwnership(_msgSender());}/*** @dev Throws if called by any account other than the owner.*/modifier onlyOwner() {_checkOwner();_;}/*** @dev Returns the address of the current owner.
@openzeppelin/contracts/security/Pausable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)pragma solidity ^0.8.0;import "../utils/Context.sol";/*** @dev Contract module which allows children to implement an emergency stop* mechanism that can be triggered by an authorized account.** This module is used through inheritance. It will make available the* modifiers `whenNotPaused` and `whenPaused`, which can be applied to* the functions of your contract. Note that they will not be pausable by* simply including this module, only once the modifiers are put in place.*/abstract contract Pausable is Context {/*** @dev Emitted when the pause is triggered by `account`.*/event Paused(address account);/*** @dev Emitted when the pause is lifted by `account`.*/event Unpaused(address account);bool private _paused;/*** @dev Initializes the contract in unpaused state.*/constructor() {_paused = false;}/*** @dev Modifier to make a function callable only when the contract is not paused.** Requirements:*
@openzeppelin/contracts/security/ReentrancyGuard.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)pragma solidity ^0.8.0;/*** @dev Contract module that helps prevent reentrant calls to a function.** Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier* available, which can be applied to functions to make sure there are no nested* (reentrant) calls to them.** Note that because there is a single `nonReentrant` guard, functions marked as* `nonReentrant` may not call one another. This can be worked around by making* those functions `private`, and then adding `external` `nonReentrant` entry* points to them.** TIP: If you would like to learn more about reentrancy and alternative ways* to protect against it, check out our blog post* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].*/abstract contract ReentrancyGuard {// Booleans are more expensive than uint256 or any type that takes up a full// word because each write operation emits an extra SLOAD to first read the// slot's contents, replace the bits taken up by the boolean, and then write// back. This is the compiler's defense against contract upgrades and// pointer aliasing, and it cannot be disabled.// The values being non-zero value makes deployment a bit more expensive,// but in exchange the refund on every call to nonReentrant will be lower in// amount. Since refunds are capped to a percentage of the total// transaction's gas, it is best to keep them low in cases like this one, to// increase the likelihood of the full refund coming into effect.uint256 private constant _NOT_ENTERED = 1;uint256 private constant _ENTERED = 2;uint256 private _status;constructor() {_status = _NOT_ENTERED;}
@openzeppelin/contracts/token/ERC20/ERC20.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)pragma solidity ^0.8.0;import "./IERC20.sol";import "./extensions/IERC20Metadata.sol";import "../../utils/Context.sol";/*** @dev Implementation of the {IERC20} interface.** This implementation is agnostic to the way tokens are created. This means* that a supply mechanism has to be added in a derived contract using {_mint}.* For a generic mechanism see {ERC20PresetMinterPauser}.** TIP: For a detailed writeup see our guide* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How* to implement supply mechanisms].** We have followed general OpenZeppelin Contracts guidelines: functions revert* instead returning `false` on failure. This behavior is nonetheless* conventional and does not conflict with the expectations of ERC20* applications.** Additionally, an {Approval} event is emitted on calls to {transferFrom}.* This allows applications to reconstruct the allowance for all accounts just* by listening to said events. Other implementations of the EIP may not emit* these events, as it isn't required by the specification.** Finally, the non-standard {decreaseAllowance} and {increaseAllowance}* functions have been added to mitigate the well-known issues around setting* allowances. See {IERC20-approve}.*/contract ERC20 is Context, IERC20, IERC20Metadata {mapping(address => uint256) private _balances;mapping(address => mapping(address => uint256)) private _allowances;uint256 private _totalSupply;
@openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)pragma solidity ^0.8.0;/*** @dev Interface of the ERC20 standard as defined in the EIP.*/interface IERC20 {/*** @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);/*** @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 `to`.** Returns a boolean value indicating whether the operation succeeded.** Emits a {Transfer} event.*/function transfer(address to, uint256 amount) external returns (bool);
@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)pragma solidity ^0.8.0;import "../ERC20.sol";import "../../../utils/Context.sol";/*** @dev Extension of {ERC20} that allows token holders to destroy both their own* tokens and those that they have an allowance for, in a way that can be* recognized off-chain (via event analysis).*/abstract contract ERC20Burnable is Context, ERC20 {/*** @dev Destroys `amount` tokens from the caller.** See {ERC20-_burn}.*/function burn(uint256 amount) public virtual {_burn(_msgSender(), amount);}/*** @dev Destroys `amount` tokens from `account`, deducting from the caller's* allowance.** See {ERC20-_burn} and {ERC20-allowance}.** Requirements:** - the caller must have allowance for ``accounts``'s tokens of at least* `amount`.*/function burnFrom(address account, uint256 amount) public virtual {_spendAllowance(account, _msgSender(), amount);_burn(account, amount);}}
@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)pragma solidity ^0.8.0;import "../IERC20.sol";/*** @dev Interface for the optional metadata functions from the ERC20 standard.** _Available since v4.1._*/interface IERC20Metadata is IERC20 {/*** @dev Returns the name of the token.*/function name() external view returns (string memory);/*** @dev Returns the symbol of the token.*/function symbol() external view returns (string memory);/*** @dev Returns the decimals places of the token.*/function decimals() external view returns (uint8);}
@openzeppelin/contracts/token/ERC721/ERC721.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)pragma solidity ^0.8.0;import "./IERC721.sol";import "./IERC721Receiver.sol";import "./extensions/IERC721Metadata.sol";import "../../utils/Address.sol";import "../../utils/Context.sol";import "../../utils/Strings.sol";import "../../utils/introspection/ERC165.sol";/*** @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including* the Metadata extension, but not including the Enumerable extension, which is available separately as* {ERC721Enumerable}.*/contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {using Address for address;using Strings for uint256;// Token namestring private _name;// Token symbolstring private _symbol;// Mapping from token ID to owner addressmapping(uint256 => address) private _owners;// Mapping owner address to token countmapping(address => uint256) private _balances;// Mapping from token ID to approved addressmapping(uint256 => address) private _tokenApprovals;// Mapping from owner to operator approvalsmapping(address => mapping(address => bool)) private _operatorApprovals;/**
@openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)pragma solidity ^0.8.0;/*** @dev Provides information about the current execution context, including the* sender of the transaction and its data. While these are generally available* via msg.sender and msg.data, they should not be accessed in such a direct* manner, since when dealing with meta-transactions the account sending and* paying for execution may not be the actual sender (as far as an application* is concerned).** This contract is only required for intermediate, library-like contracts.*/abstract contract Context {function _msgSender() internal view virtual returns (address) {return msg.sender;}function _msgData() internal view virtual returns (bytes calldata) {return msg.data;}}
@openzeppelin/contracts/token/ERC721/IERC721.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)pragma solidity ^0.8.0;import "../../utils/introspection/IERC165.sol";/*** @dev Required interface of an ERC721 compliant contract.*/interface IERC721 is IERC165 {/*** @dev Emitted when `tokenId` token is transferred from `from` to `to`.*/event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);/*** @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.*/event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);/*** @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.*/event ApprovalForAll(address indexed owner, address indexed operator, bool approved);/*** @dev Returns the number of tokens in ``owner``'s account.*/function balanceOf(address owner) external view returns (uint256 balance);/*** @dev Returns the owner of the `tokenId` token.** Requirements:** - `tokenId` must exist.*/function ownerOf(uint256 tokenId) external view returns (address owner);/**
@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)pragma solidity ^0.8.0;/*** @title ERC721 token receiver interface* @dev Interface for any contract that wants to support safeTransfers* from ERC721 asset contracts.*/interface IERC721Receiver {/*** @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}* by `operator` from `from`, this function is called.** It must return its Solidity selector to confirm the token transfer.* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.** The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.*/function onERC721Received(address operator,address from,uint256 tokenId,bytes calldata data) external returns (bytes4);}
@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol)pragma solidity ^0.8.0;import "../ERC721.sol";import "../../../utils/Context.sol";/*** @title ERC721 Burnable Token* @dev ERC721 Token that can be burned (destroyed).*/abstract contract ERC721Burnable is Context, ERC721 {/*** @dev Burns `tokenId`. See {ERC721-_burn}.** Requirements:** - The caller must own `tokenId` or be an approved operator.*/function burn(uint256 tokenId) public virtual {//solhint-disable-next-line max-line-lengthrequire(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");_burn(tokenId);}}
@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)pragma solidity ^0.8.0;import "../ERC721.sol";import "./IERC721Enumerable.sol";/*** @dev This implements an optional extension of {ERC721} defined in the EIP that adds* enumerability of all the token ids in the contract as well as all token ids owned by each* account.*/abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {// Mapping from owner to list of owned token IDsmapping(address => mapping(uint256 => uint256)) private _ownedTokens;// Mapping from token ID to index of the owner tokens listmapping(uint256 => uint256) private _ownedTokensIndex;// Array with all token ids, used for enumerationuint256[] private _allTokens;// Mapping from token id to position in the allTokens arraymapping(uint256 => uint256) private _allTokensIndex;/*** @dev See {IERC165-supportsInterface}.*/function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);}/*** @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.*/function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");return _ownedTokens[owner][index];}
@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)pragma solidity ^0.8.0;import "../IERC721.sol";/*** @title ERC-721 Non-Fungible Token Standard, optional enumeration extension* @dev See https://eips.ethereum.org/EIPS/eip-721*/interface IERC721Enumerable is IERC721 {/*** @dev Returns the total amount of tokens stored by the contract.*/function totalSupply() external view returns (uint256);/*** @dev Returns a token ID owned by `owner` at a given `index` of its token list.* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.*/function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);/*** @dev Returns a token ID at a given `index` of all the tokens stored by the contract.* Use along with {totalSupply} to enumerate all tokens.*/function tokenByIndex(uint256 index) external view returns (uint256);}
@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)pragma solidity ^0.8.0;import "../IERC721.sol";/*** @title ERC-721 Non-Fungible Token Standard, optional metadata extension* @dev See https://eips.ethereum.org/EIPS/eip-721*/interface IERC721Metadata is IERC721 {/*** @dev Returns the token collection name.*/function name() external view returns (string memory);/*** @dev Returns the token collection symbol.*/function symbol() external view returns (string memory);/*** @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.*/function tokenURI(uint256 tokenId) external view returns (string memory);}
@openzeppelin/contracts/utils/Address.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)pragma solidity ^0.8.1;/*** @dev Collection of functions related to the address type*/library Address {/*** @dev Returns true if `account` is a contract.** [IMPORTANT]* ====* It is unsafe to assume that an address for which this function returns* false is an externally-owned account (EOA) and not a contract.** Among others, `isContract` will return false for the following* types of addresses:** - an externally-owned account* - a contract in construction* - an address where a contract will be created* - an address where a contract lived, but was destroyed* ====** [IMPORTANT]* ====* You shouldn't rely on `isContract` to protect against flash loan attacks!** Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract* constructor.* ====*/function isContract(address account) internal view returns (bool) {// This method relies on extcodesize/address.code.length, which returns 0// for contracts in construction, since the code is only stored at the end// of the constructor execution.return account.code.length > 0;
@openzeppelin/contracts/utils/Base64.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)pragma solidity ^0.8.0;/*** @dev Provides a set of functions to operate with Base64 strings.** _Available since v4.5._*/library Base64 {/*** @dev Base64 Encoding/Decoding Table*/string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";/*** @dev Converts a `bytes` to its Bytes64 `string` representation.*/function encode(bytes memory data) internal pure returns (string memory) {/*** Inspired by Brecht Devos (Brechtpd) implementation - MIT licence* https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol*/if (data.length == 0) return "";// Loads the table into memorystring memory table = _TABLE;// Encoding takes 3 bytes chunks of binary data from `bytes` data parameter// and split into 4 numbers of 6 bits.// The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up// - `data.length + 2` -> Round up// - `/ 3` -> Number of 3-bytes chunks// - `4 *` -> 4 characters for each chunkstring memory result = new string(4 * ((data.length + 2) / 3));/// @solidity memory-safe-assemblyassembly {// Prepare the lookup table (skip the first "length" byte)let tablePtr := add(table, 1)
@openzeppelin/contracts/utils/Strings.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)pragma solidity ^0.8.0;/*** @dev String operations.*/library Strings {bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";uint8 private constant _ADDRESS_LENGTH = 20;/*** @dev Converts a `uint256` to its ASCII `string` decimal representation.*/function toString(uint256 value) internal pure returns (string memory) {// Inspired by OraclizeAPI's implementation - MIT licence// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.solif (value == 0) {return "0";}uint256 temp = value;uint256 digits;while (temp != 0) {digits++;temp /= 10;}bytes memory buffer = new bytes(digits);while (value != 0) {digits -= 1;buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));value /= 10;}return string(buffer);}/*** @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.*/function toHexString(uint256 value) internal pure returns (string memory) {
@openzeppelin/contracts/utils/cryptography/ECDSA.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)pragma solidity ^0.8.0;import "../Strings.sol";/*** @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 {enum RecoverError {NoError,InvalidSignature,InvalidSignatureLength,InvalidSignatureS,InvalidSignatureV}function _throwError(RecoverError error) private pure {if (error == RecoverError.NoError) {return; // no error: do nothing} else if (error == RecoverError.InvalidSignature) {revert("ECDSA: invalid signature");} else if (error == RecoverError.InvalidSignatureLength) {revert("ECDSA: invalid signature length");} else if (error == RecoverError.InvalidSignatureS) {revert("ECDSA: invalid signature 's' value");} else if (error == RecoverError.InvalidSignatureV) {revert("ECDSA: invalid signature 'v' value");}}/*** @dev Returns the address that signed a hashed message (`hash`) with* `signature` or error string. This address can then be used for verification purposes.** The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
@openzeppelin/contracts/utils/cryptography/MerkleProof.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)pragma solidity ^0.8.0;/*** @dev These functions deal with verification of Merkle Tree proofs.** The proofs can be generated using the JavaScript library* https://github.com/miguelmota/merkletreejs[merkletreejs].* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.** See `test/utils/cryptography/MerkleProof.test.js` for some examples.** WARNING: You should avoid using leaf values that are 64 bytes long prior to* hashing, or use a hash function other than keccak256 for hashing leaves.* This is because the concatenation of a sorted pair of internal nodes in* the merkle tree could be reinterpreted as a leaf value.*/library MerkleProof {/*** @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree* defined by `root`. For this, a `proof` must be provided, containing* sibling hashes on the branch from the leaf to the root of the tree. Each* pair of leaves and each pair of pre-images are assumed to be sorted.*/function verify(bytes32[] memory proof,bytes32 root,bytes32 leaf) internal pure returns (bool) {return processProof(proof, leaf) == root;}/*** @dev Calldata version of {verify}** _Available since v4.7._*/function verifyCalldata(bytes32[] calldata proof,
@openzeppelin/contracts/utils/introspection/ERC165.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)pragma solidity ^0.8.0;import "./IERC165.sol";/*** @dev Implementation of the {IERC165} interface.** Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check* for the additional interface id that will be supported. For example:** ```solidity* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);* }* ```** Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.*/abstract contract ERC165 is IERC165 {/*** @dev See {IERC165-supportsInterface}.*/function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {return interfaceId == type(IERC165).interfaceId;}}
@openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)pragma solidity ^0.8.0;/*** @dev Interface of the ERC165 standard, as defined in the* https://eips.ethereum.org/EIPS/eip-165[EIP].** Implementers can declare support of contract interfaces, which can then be* queried by others ({ERC165Checker}).** For an implementation, see {ERC165}.*/interface IERC165 {/*** @dev Returns true if this contract implements the interface defined by* `interfaceId`. See the corresponding* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]* to learn more about how these ids are created.** This function call must use less than 30 000 gas.*/function supportsInterface(bytes4 interfaceId) external view returns (bool);}
@openzeppelin/contracts/utils/structs/BitMaps.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/structs/BitMaps.sol)pragma solidity ^0.8.0;/*** @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.* Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].*/library BitMaps {struct BitMap {mapping(uint256 => uint256) _data;}/*** @dev Returns whether the bit at `index` is set.*/function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {uint256 bucket = index >> 8;uint256 mask = 1 << (index & 0xff);return bitmap._data[bucket] & mask != 0;}/*** @dev Sets the bit at `index` to the boolean `value`.*/function setTo(BitMap storage bitmap,uint256 index,bool value) internal {if (value) {set(bitmap, index);} else {unset(bitmap, index);}}/*** @dev Sets the bit at `index`.*/function set(BitMap storage bitmap, uint256 index) internal {
@openzeppelin/contracts/utils/structs/EnumerableSet.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)pragma solidity ^0.8.0;/*** @dev Library for managing* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive* types.** Sets have the following properties:** - Elements are added, removed, and checked for existence in constant time* (O(1)).* - Elements are enumerated in O(n). No guarantees are made on the ordering.** ```* contract Example {* // Add the library methods* using EnumerableSet for EnumerableSet.AddressSet;** // Declare a set state variable* EnumerableSet.AddressSet private mySet;* }* ```** As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)* and `uint256` (`UintSet`) are supported.** [WARNING]* ====* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.** In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.* ====*/library EnumerableSet {// To implement this library for multiple types with as little code// repetition as possible, we write it in terms of a generic Set type with// bytes32 values.
contracts/PKPNFT.sol
//SPDX-License-Identifier: GPL-3.0-or-laterpragma solidity ^0.8.17;import { ERC721 } from "@openzeppelin/contracts/token/ERC721/ERC721.sol";import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol";import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";import { PubkeyRouter } from "./PubkeyRouter.sol";import { PKPPermissions } from "./PKPPermissions.sol";import { PKPNFTMetadata } from "./PKPNFTMetadata.sol";import { ERC721Burnable } from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";import { ERC721Enumerable } from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";import { IERC721Enumerable } from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";import { IERC721Metadata } from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";import "hardhat/console.sol";// TODO: tests for the mintGrantAndBurn function, withdraw function, some of the setters, transfer function, freeMint and freeMintGrantAndBurn/// @title Programmable Keypair NFT////// @dev This is the contract for the PKP NFTs////// Simply put, whomever owns a PKP NFT can ask that PKP to sign a message./// The owner can also grant signing permissions to other eth addresses/// or lit actionscontract PKPNFT isERC721("Programmable Keypair", "PKP"),Ownable,ERC721Burnable,ERC721Enumerable,ReentrancyGuard{/* ========== STATE VARIABLES ========== */PubkeyRouter public router;PKPPermissions public pkpPermissions;PKPNFTMetadata public pkpNftMetadata;uint256 public mintCost;address public freeMintSigner;
contracts/PKPNFTMetadata.sol
//SPDX-License-Identifier: GPL-3.0-or-laterpragma solidity ^0.8.17;import { Base64 } from "@openzeppelin/contracts/utils/Base64.sol";import { Strings } from "@openzeppelin/contracts/utils/Strings.sol";import "hardhat/console.sol";/// @title Programmable Keypair NFT Metadata////// @dev This is the contract for the PKP NFTs////// Simply put, whomever owns a PKP NFT can ask that PKP to sign a message./// The owner can also grant signing permissions to other eth addresses/// or lit actionscontract PKPNFTMetadata {using Strings for uint256;/* ========== STATE VARIABLES ========== *//* ========== CONSTRUCTOR ========== */constructor() {}/* ========== VIEWS ========== */function bytesToHex(bytes memory buffer)publicpurereturns (string memory){// Fixed buffer size for hexadecimal convertionbytes memory converted = new bytes(buffer.length * 2);bytes memory _base = "0123456789abcdef";for (uint256 i = 0; i < buffer.length; i++) {converted[i * 2] = _base[uint8(buffer[i]) / _base.length];converted[i * 2 + 1] = _base[uint8(buffer[i]) % _base.length];}return string(abi.encodePacked("0x", converted));
contracts/PubkeyRouter.sol
//SPDX-License-Identifier: GPL-3.0-or-laterpragma solidity ^0.8.17;import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";import { EnumerableSet } from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";import { PKPNFT } from "./PKPNFT.sol";import { Staking } from "./Staking.sol";import "solidity-bytes-utils/contracts/BytesLib.sol";import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";import "hardhat/console.sol";// TODO: make the tests send PKPNFT into the constructor// TODO: test interaction between PKPNFT and this contract, like mint a keypair and see if you can access it// TODO: setRoutingData() for a batch of keyscontract PubkeyRouter is Ownable {using EnumerableSet for EnumerableSet.AddressSet;using EnumerableSet for EnumerableSet.Bytes32Set;using EnumerableSet for EnumerableSet.UintSet;using BytesLib for bytes;/* ========== STATE VARIABLES ========== */PKPNFT public pkpNFT;struct PubkeyRoutingData {bytes pubkey;address stakingContract;uint256 keyType; // 1 = BLS, 2 = ECDSA. Not doing this in an enum so we can add more keytypes in the future without redeploying.}struct Signature {bytes32 r;bytes32 s;uint8 v;}// map the keccack256(uncompressed pubkey) -> PubkeyRoutingDatamapping(uint256 => PubkeyRoutingData) public pubkeys;
contracts/Staking.sol
//SPDX-License-Identifier: GPL-3.0-or-laterpragma solidity ^0.8.17;import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";import { ERC20Burnable } from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";import { Pausable } from "@openzeppelin/contracts/security/Pausable.sol";import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";import { EnumerableSet } from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";import "hardhat/console.sol";contract Staking is ReentrancyGuard, Pausable, Ownable {using EnumerableSet for EnumerableSet.AddressSet;/* ========== STATE VARIABLES ========== */enum States {Active,NextValidatorSetLocked,ReadyForNextEpoch,Unlocked,Paused}// this enum is not used, and instead we use an integer so that// we can add more reasons after the contract is deployed.// This enum is kept in the comments here for reference.// enum KickReason {// NULLREASON, // 0// UNRESPONSIVE, // 1// BAD_ATTESTATION // 2// }States public state = States.Active;ERC20Burnable public stakingToken;struct Epoch {uint256 epochLength;uint256 number;uint256 endBlock; //
hardhat/console.sol
// SPDX-License-Identifier: MITpragma solidity >= 0.4.22 <0.9.0;library console {address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);function _sendLogPayload(bytes memory payload) private view {uint256 payloadLength = payload.length;address consoleAddress = CONSOLE_ADDRESS;assembly {let payloadStart := add(payload, 32)let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)}}function log() internal view {_sendLogPayload(abi.encodeWithSignature("log()"));}function logInt(int256 p0) internal view {_sendLogPayload(abi.encodeWithSignature("log(int256)", p0));}function logUint(uint256 p0) internal view {_sendLogPayload(abi.encodeWithSignature("log(uint256)", p0));}function logString(string memory p0) internal view {_sendLogPayload(abi.encodeWithSignature("log(string)", p0));}function logBool(bool p0) internal view {_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));}function logAddress(address p0) internal view {_sendLogPayload(abi.encodeWithSignature("log(address)", p0));}function logBytes(bytes memory p0) internal view {_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
solidity-bytes-utils/contracts/BytesLib.sol
// SPDX-License-Identifier: Unlicense/** @title Solidity Bytes Arrays Utils* @author Gonçalo Sá <goncalo.sa@consensys.net>** @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.* The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.*/pragma solidity >=0.8.0 <0.9.0;library BytesLib {function concat(bytes memory _preBytes,bytes memory _postBytes)internalpurereturns (bytes memory){bytes memory tempBytes;assembly {// Get a location of some free memory and store it in tempBytes as// Solidity does for memory variables.tempBytes := mload(0x40)// Store the length of the first bytes array at the beginning of// the memory for tempBytes.let length := mload(_preBytes)mstore(tempBytes, length)// Maintain a memory counter for the current write location in the// temp bytes array by adding the 32 bytes for the array length to// the starting location.let mc := add(tempBytes, 0x20)// Stop copying when the memory counter reaches the length of the// first bytes array.let end := add(mc, length)for {
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_pkpNft","internalType":"address"}]},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"PermittedAuthMethodAdded","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"authMethodType","internalType":"uint256","indexed":false},{"type":"bytes","name":"id","internalType":"bytes","indexed":false},{"type":"bytes","name":"userPubkey","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"event","name":"PermittedAuthMethodRemoved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"authMethodType","internalType":"uint256","indexed":false},{"type":"bytes","name":"id","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"event","name":"PermittedAuthMethodScopeAdded","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"authMethodType","internalType":"uint256","indexed":false},{"type":"bytes","name":"id","internalType":"bytes","indexed":false},{"type":"uint256","name":"scopeId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"PermittedAuthMethodScopeRemoved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"authMethodType","internalType":"uint256","indexed":false},{"type":"bytes","name":"id","internalType":"bytes","indexed":false},{"type":"uint256","name":"scopeId","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RootHashUpdated","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true},{"type":"uint256","name":"group","internalType":"uint256","indexed":true},{"type":"bytes32","name":"root","internalType":"bytes32","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addPermittedAction","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"ipfsCID","internalType":"bytes"},{"type":"uint256[]","name":"scopes","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addPermittedAddress","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"user","internalType":"address"},{"type":"uint256[]","name":"scopes","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addPermittedAuthMethod","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"tuple","name":"authMethod","internalType":"struct PKPPermissions.AuthMethod","components":[{"type":"uint256","name":"authMethodType","internalType":"uint256"},{"type":"bytes","name":"id","internalType":"bytes"},{"type":"bytes","name":"userPubkey","internalType":"bytes"}]},{"type":"uint256[]","name":"scopes","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addPermittedAuthMethodScope","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"authMethodType","internalType":"uint256"},{"type":"bytes","name":"id","internalType":"bytes"},{"type":"uint256","name":"scopeId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"authMethodType","internalType":"uint256"},{"type":"bytes","name":"id","internalType":"bytes"},{"type":"bytes","name":"userPubkey","internalType":"bytes"}],"name":"authMethods","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getAuthMethodId","inputs":[{"type":"uint256","name":"authMethodType","internalType":"uint256"},{"type":"bytes","name":"id","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getEthAddress","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes[]","name":"","internalType":"bytes[]"}],"name":"getPermittedActions","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address[]","name":"","internalType":"address[]"}],"name":"getPermittedAddresses","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool[]","name":"","internalType":"bool[]"}],"name":"getPermittedAuthMethodScopes","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"authMethodType","internalType":"uint256"},{"type":"bytes","name":"id","internalType":"bytes"},{"type":"uint256","name":"maxScopeId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct PKPPermissions.AuthMethod[]","components":[{"type":"uint256","name":"authMethodType","internalType":"uint256"},{"type":"bytes","name":"id","internalType":"bytes"},{"type":"bytes","name":"userPubkey","internalType":"bytes"}]}],"name":"getPermittedAuthMethods","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes","name":"","internalType":"bytes"}],"name":"getPubkey","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"getTokenIdsForAuthMethod","inputs":[{"type":"uint256","name":"authMethodType","internalType":"uint256"},{"type":"bytes","name":"id","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes","name":"","internalType":"bytes"}],"name":"getUserPubkeyForAuthMethod","inputs":[{"type":"uint256","name":"authMethodType","internalType":"uint256"},{"type":"bytes","name":"id","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isPermittedAction","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"ipfsCID","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isPermittedAddress","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isPermittedAuthMethod","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"authMethodType","internalType":"uint256"},{"type":"bytes","name":"id","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isPermittedAuthMethodScopePresent","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"authMethodType","internalType":"uint256"},{"type":"bytes","name":"id","internalType":"bytes"},{"type":"uint256","name":"scopeId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract PKPNFT"}],"name":"pkpNFT","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removePermittedAction","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"ipfsCID","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removePermittedAddress","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"user","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removePermittedAuthMethod","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"authMethodType","internalType":"uint256"},{"type":"bytes","name":"id","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removePermittedAuthMethodScope","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"authMethodType","internalType":"uint256"},{"type":"bytes","name":"id","internalType":"bytes"},{"type":"uint256","name":"scopeId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPkpNftAddress","inputs":[{"type":"address","name":"newPkpNftAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRootHash","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"group","internalType":"uint256"},{"type":"bytes32","name":"root","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"verifyState","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"group","internalType":"uint256"},{"type":"bytes32[]","name":"proof","internalType":"bytes32[]"},{"type":"bytes32","name":"leaf","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"verifyStates","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"group","internalType":"uint256"},{"type":"bytes32[]","name":"proof","internalType":"bytes32[]"},{"type":"bool[]","name":"proofFlags","internalType":"bool[]"},{"type":"bytes32[]","name":"leaves","internalType":"bytes32[]"}]}]
Contract Creation Code
0x60806040523480156200001157600080fd5b5060405162005087380380620050878339818101604052810190620000379190620001d5565b620000576200004b6200009f60201b60201c565b620000a760201b60201c565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000207565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200019d8262000170565b9050919050565b620001af8162000190565b8114620001bb57600080fd5b50565b600081519050620001cf81620001a4565b92915050565b600060208284031215620001ee57620001ed6200016b565b5b6000620001fe84828501620001be565b91505092915050565b614e7080620002176000396000f3fe608060405234801561001057600080fd5b50600436106101d75760003560e01c80638a43157811610104578063bb7a1070116100a2578063f2fde38b11610071578063f2fde38b146105be578063f34f21ba146105da578063fceb39831461060a578063ffa2e9531461063a576101d7565b8063bb7a107014610512578063bd4986a014610542578063d41a327214610572578063ef6fd8781461058e576101d7565b8063a1afdc6f116100de578063a1afdc6f14610466578063a1c805fa14610496578063abc541ae146104c6578063b997606f146104f6576101d7565b80638a431578146104105780638da5cb5b1461042c5780639dd4349b1461044a576101d7565b80635521c4521161017c5780636821c8e21161014b5780636821c8e21461039e578063715018a6146103ba57806378c49efa146103c457806382559561146103f4576101d7565b80635521c45214610306578063557b5eba1461033657806366fc6541146103665780636705c6f214610382576101d7565b80631663c121116101b85780631663c1211461026c578063176354fd146102885780632657768b146102a457806345b72bde146102d6576101d7565b80618b4f146101dc578062221c081461020c5780630a60950d1461023c575b600080fd5b6101f660048036038101906101f19190613309565b610658565b6040516102039190613364565b60405180910390f35b610226600480360381019061022191906133e4565b610770565b604051610233919061352a565b60405180910390f35b6102566004803603810190610251919061368d565b61089f565b60405161026391906136f8565b60405180910390f35b61028660048036038101906102819190613769565b6108d5565b005b6102a2600480360381019061029d91906137dd565b610942565b005b6102be60048036038101906102b9919061380a565b61098e565b6040516102cd939291906138b6565b60405180910390f35b6102f060048036038101906102eb91906139f4565b610ac8565b6040516102fd9190613364565b60405180910390f35b610320600480360381019061031b9190613a77565b610b1d565b60405161032d9190613b95565b60405180910390f35b610350600480360381019061034b9190613bb7565b610c4d565b60405161035d9190613364565b60405180910390f35b610380600480360381019061037b9190613bb7565b610ca3565b005b61039c60048036038101906103979190613c26565b610e5a565b005b6103b860048036038101906103b391906133e4565b610fd2565b005b6103c26111b1565b005b6103de60048036038101906103d99190613d68565b6111c5565b6040516103eb9190613364565b60405180910390f35b61040e600480360381019061040991906133e4565b61121c565b005b61042a60048036038101906104259190613e37565b6113fb565b005b61043461148e565b6040516104419190613edb565b60405180910390f35b610464600480360381019061045f9190613f9c565b6114b7565b005b610480600480360381019061047b9190613a77565b61182d565b60405161048d919061402c565b60405180910390f35b6104b060048036038101906104ab91906133e4565b6119e1565b6040516104bd9190613364565b60405180910390f35b6104e060048036038101906104db919061380a565b611a7c565b6040516104ed919061410c565b60405180910390f35b610510600480360381019061050b9190613309565b6120f9565b005b61052c6004803603810190610527919061380a565b61213a565b604051610539919061423a565b60405180910390f35b61055c6004803603810190610557919061380a565b61256c565b6040516105699190613edb565b60405180910390f35b61058c60048036038101906105879190613a77565b612611565b005b6105a860048036038101906105a3919061380a565b612678565b6040516105b5919061402c565b60405180910390f35b6105d860048036038101906105d391906137dd565b612722565b005b6105f460048036038101906105ef919061380a565b6127a5565b6040516106019190614375565b60405180910390f35b610624600480360381019061061f9190613a77565b6129db565b6040516106319190613364565b60405180910390f35b610642612a48565b60405161064f91906143f6565b60405180910390f35b6000610697836001600681111561067257610671614411565b5b846040516020016106839190614488565b604051602081830303815290604052610c4d565b8061076857508173ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b815260040161070f91906136f8565b602060405180830381865afa15801561072c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075091906144b8565b73ffffffffffffffffffffffffffffffffffffffff16145b905092915050565b606060006107c28686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061089f565b90506000600360008981526020019081526020016000206000838152602001908152602001600020905060008467ffffffffffffffff81111561080857610807613562565b5b6040519080825280602002602001820160405280156108365781602001602082028036833780820191505090505b50905060005b8581101561088f576108578184612a6e90919063ffffffff16565b82828151811061086a576108696144e5565b5b602002602001019015159081151581525050808061088790614543565b91505061083c565b5080935050505095945050505050565b600082826040516020016108b492919061458b565b6040516020818303038152906040528051906020012060001c905092915050565b61093c846040518060600160405280600160068111156108f8576108f7614411565b5b81526020018660405160200161090e9190614488565b60405160208183030381529060405281526020016040518060200160405280600081525081525084846114b7565b50505050565b61094a612aaa565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60046020528060005260406000206000915090508060000154908060010180546109b7906145ea565b80601f01602080910402602001604051908101604052809291908181526020018280546109e3906145ea565b8015610a305780601f10610a0557610100808354040283529160200191610a30565b820191906000526020600020905b815481529060010190602001808311610a1357829003601f168201915b505050505090806002018054610a45906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054610a71906145ea565b8015610abe5780601f10610a9357610100808354040283529160200191610abe565b820191906000526020600020905b815481529060010190602001808311610aa157829003601f168201915b5050505050905083565b6000806006600087815260200190815260200160002060008681526020019081526020016000205490506000801b8103610b06576000915050610b15565b610b11848285612b28565b9150505b949350505050565b60606000610b6f8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061089f565b90506000610b8e60056000848152602001908152602001600020612b3f565b905060008167ffffffffffffffff811115610bac57610bab613562565b5b604051908082528060200260200182016040528015610bda5781602001602082028036833780820191505090505b50905060005b82811015610c3f57610c0d8160056000878152602001908152602001600020612b5490919063ffffffff16565b828281518110610c2057610c1f6144e5565b5b6020026020010181815250508080610c3790614543565b915050610be0565b508093505050509392505050565b600080610c5a848461089f565b90506000610c838260026000898152602001908152602001600020612b6e90919063ffffffff16565b905080610c9557600092505050610c9c565b6001925050505b9392505050565b826000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610d0191906136f8565b602060405180830381865afa158015610d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4291906144b8565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610db2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da990614678565b60405180910390fd5b6000610dbe858561089f565b90506000600260008881526020019081526020016000209050610dea8282612b8890919063ffffffff16565b506000600560008481526020019081526020016000209050610e158882612b8890919063ffffffff16565b50877f9830658acd6a41f1cb12b425ed83cb2b8ccbfa753337cd13be80be51fc3f33738488604051610e4892919061458b565b60405180910390a25050505050505050565b826000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610eb891906136f8565b602060405180830381865afa158015610ed5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef991906144b8565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6090614678565b60405180910390fd5b826006600087815260200190815260200160002060008681526020019081526020016000208190555083857fd4beb656267200ccd79d73dbdfbad162c213e10ebad16508f22cb4df8d3259ad85604051610fc391906146a7565b60405180910390a35050505050565b846000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161103091906136f8565b602060405180830381865afa15801561104d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107191906144b8565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d890614678565b60405180910390fd5b60006111318787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061089f565b905061116984600360008b81526020019081526020016000206000848152602001908152602001600020612ba290919063ffffffff16565b877f29eb060f266aff306ec81b612728a417406dd6298f8f7576a37b4e6830dcc60e8288888860405161119f94939291906146ef565b60405180910390a25050505050505050565b6111b9612aaa565b6111c36000612be0565b565b6000806006600088815260200190815260200160002060008781526020019081526020016000205490506000801b8103611203576000915050611213565b61120f85858386612ca4565b9150505b95945050505050565b846000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161127a91906136f8565b602060405180830381865afa158015611297573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112bb91906144b8565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461132b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132290614678565b60405180910390fd5b600061137b8787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061089f565b90506113b384600360008b81526020019081526020016000206000848152602001908152602001600020612cbd90919063ffffffff16565b877f49bb3a0761ed218e1db1e9c41096ed35188868994cc37a32e1f25855745b424e888888886040516113e994939291906146ef565b60405180910390a25050505050505050565b6114878560405180606001604052806002600681111561141e5761141d614411565b5b815260200187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020016040518060200160405280600081525081525084846114b7565b5050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b836000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161151591906136f8565b602060405180830381865afa158015611532573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155691906144b8565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bd90614678565b60405180910390fd5b60006115da8660000151876020015161089f565b905060006004600083815260200190815260200160002060020180546115ff906145ea565b9050148061164157508560400151805190602001206004600083815260200190815260200160002060020160405161163791906147d2565b6040518091039020145b611680576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167790614881565b60405180910390fd5b85600460008381526020019081526020016000206000820151816000015560208201518160010190816116b39190614a2e565b5060408201518160020190816116c99190614a2e565b5090505060006002600089815260200190815260200160002090506116f78282612cfc90919063ffffffff16565b5060006005600084815260200190815260200160002090506117228982612cfc90919063ffffffff16565b5060005b878790508110156117d9576000888883818110611746576117456144e5565b5b90506020020135905061178581600360008e81526020019081526020016000206000888152602001908152602001600020612ba290919063ffffffff16565b8a7f29eb060f266aff306ec81b612728a417406dd6298f8f7576a37b4e6830dcc60e868c60200151846040516117bd93929190614b00565b60405180910390a25080806117d190614543565b915050611726565b50887fd7db314a62650aaa1b15d4bb5c95c558a03cde3ee7f36e144b73126a3a8e839a89600001518a602001518b6040015160405161181a939291906138b6565b60405180910390a2505050505050505050565b6060600061187f8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061089f565b9050600060046000838152602001908152602001600020604051806060016040529081600082015481526020016001820180546118bb906145ea565b80601f01602080910402602001604051908101604052809291908181526020018280546118e7906145ea565b80156119345780601f1061190957610100808354040283529160200191611934565b820191906000526020600020905b81548152906001019060200180831161191757829003601f168201915b5050505050815260200160028201805461194d906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054611979906145ea565b80156119c65780601f1061199b576101008083540402835291602001916119c6565b820191906000526020600020905b8154815290600101906020018083116119a957829003601f168201915b50505050508152505090508060400151925050509392505050565b600080611a328686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061089f565b90506000611a6c84600360008b81526020019081526020016000206000858152602001908152602001600020612a6e90919063ffffffff16565b9050809250505095945050505050565b60606000611a9b60026000858152602001908152602001600020612b3f565b90506000805b82811015611c64576000611ad08260026000898152602001908152602001600020612b5490919063ffffffff16565b905060006004600083815260200190815260200160002060405180606001604052908160008201548152602001600182018054611b0c906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054611b38906145ea565b8015611b855780601f10611b5a57610100808354040283529160200191611b85565b820191906000526020600020905b815481529060010190602001808311611b6857829003601f168201915b50505050508152602001600282018054611b9e906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054611bca906145ea565b8015611c175780601f10611bec57610100808354040283529160200191611c17565b820191906000526020600020905b815481529060010190602001808311611bfa57829003601f168201915b505050505081525050905060016006811115611c3657611c35614411565b5b816000015103611c4f578380611c4b90614543565b9450505b50508080611c5c90614543565b915050611aa1565b506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634f558e79866040518263ffffffff1660e01b8152600401611cc291906136f8565b602060405180830381865afa158015611cdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d039190614b53565b9050606060008215611e6957600184611d1c9190614b80565b67ffffffffffffffff811115611d3557611d34613562565b5b604051908082528060200260200182016040528015611d635781602001602082028036833780820191505090505b5091506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e896040518263ffffffff1660e01b8152600401611dc391906136f8565b602060405180830381865afa158015611de0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0491906144b8565b90508083600081518110611e1b57611e1a6144e5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508180611e6090614543565b92505050611eb5565b8367ffffffffffffffff811115611e8357611e82613562565b5b604051908082528060200260200182016040528015611eb15781602001602082028036833780820191505090505b5091505b60005b858110156120eb576000611ee782600260008c8152602001908152602001600020612b5490919063ffffffff16565b905060006004600083815260200190815260200160002060405180606001604052908160008201548152602001600182018054611f23906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4f906145ea565b8015611f9c5780601f10611f7157610100808354040283529160200191611f9c565b820191906000526020600020905b815481529060010190602001808311611f7f57829003601f168201915b50505050508152602001600282018054611fb5906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054611fe1906145ea565b801561202e5780601f106120035761010080835404028352916020019161202e565b820191906000526020600020905b81548152906001019060200180831161201157829003601f168201915b50505050508152505090506001600681111561204d5761204c614411565b5b8160000151036120d657600080826020015190506c0100000000000000000000000060208201510491508187878151811061208b5761208a6144e5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505085806120d090614543565b96505050505b505080806120e390614543565b915050611eb8565b508195505050505050919050565b612136826001600681111561211157612110614411565b5b836040516020016121229190614488565b604051602081830303815290604052610ca3565b5050565b6060600061215960026000858152602001908152602001600020612b3f565b90506000805b8281101561232257600061218e8260026000898152602001908152602001600020612b5490919063ffffffff16565b9050600060046000838152602001908152602001600020604051806060016040529081600082015481526020016001820180546121ca906145ea565b80601f01602080910402602001604051908101604052809291908181526020018280546121f6906145ea565b80156122435780601f1061221857610100808354040283529160200191612243565b820191906000526020600020905b81548152906001019060200180831161222657829003601f168201915b5050505050815260200160028201805461225c906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054612288906145ea565b80156122d55780601f106122aa576101008083540402835291602001916122d5565b820191906000526020600020905b8154815290600101906020018083116122b857829003601f168201915b5050505050815250509050600260068111156122f4576122f3614411565b5b81600001510361230d57838061230990614543565b9450505b5050808061231a90614543565b91505061215f565b5060008167ffffffffffffffff81111561233f5761233e613562565b5b60405190808252806020026020018201604052801561237257816020015b606081526020019060019003908161235d5790505b5090506000805b8481101561255f5760006123a882600260008b8152602001908152602001600020612b5490919063ffffffff16565b9050600060046000838152602001908152602001600020604051806060016040529081600082015481526020016001820180546123e4906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054612410906145ea565b801561245d5780601f106124325761010080835404028352916020019161245d565b820191906000526020600020905b81548152906001019060200180831161244057829003601f168201915b50505050508152602001600282018054612476906145ea565b80601f01602080910402602001604051908101604052809291908181526020018280546124a2906145ea565b80156124ef5780601f106124c4576101008083540402835291602001916124ef565b820191906000526020600020905b8154815290600101906020018083116124d257829003601f168201915b50505050508152505090506002600681111561250e5761250d614411565b5b81600001510361254a5780602001518585815181106125305761252f6144e5565b5b6020026020010181905250838061254690614543565b9450505b5050808061255790614543565b915050612379565b5081945050505050919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd4986a0836040518263ffffffff1660e01b81526004016125c991906136f8565b602060405180830381865afa1580156125e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061260a91906144b8565b9050919050565b612673836002600681111561262957612628614411565b5b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610ca3565b505050565b6060600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ef6fd878836040518263ffffffff1660e01b81526004016126d591906136f8565b600060405180830381865afa1580156126f2573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061271b9190614c24565b9050919050565b61272a612aaa565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612799576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279090614cdf565b60405180910390fd5b6127a281612be0565b50565b606060006127c460026000858152602001908152602001600020612b3f565b905060008167ffffffffffffffff8111156127e2576127e1613562565b5b60405190808252806020026020018201604052801561281b57816020015b612808613240565b8152602001906001900390816128005790505b50905060005b828110156129d05760006128508260026000898152602001908152602001600020612b5490919063ffffffff16565b9050600460008281526020019081526020016000206040518060600160405290816000820154815260200160018201805461288a906145ea565b80601f01602080910402602001604051908101604052809291908181526020018280546128b6906145ea565b80156129035780601f106128d857610100808354040283529160200191612903565b820191906000526020600020905b8154815290600101906020018083116128e657829003601f168201915b5050505050815260200160028201805461291c906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054612948906145ea565b80156129955780601f1061296a57610100808354040283529160200191612995565b820191906000526020600020905b81548152906001019060200180831161297857829003601f168201915b5050505050815250508383815181106129b1576129b06144e5565b5b60200260200101819052505080806129c890614543565b915050612821565b508092505050919050565b6000612a3f84600260068111156129f5576129f4614411565b5b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610c4d565b90509392505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600883901c9050600060ff84166001901b9050600081866000016000858152602001908152602001600020541614159250505092915050565b612ab2612d16565b73ffffffffffffffffffffffffffffffffffffffff16612ad061148e565b73ffffffffffffffffffffffffffffffffffffffff1614612b26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1d90614d4b565b60405180910390fd5b565b600082612b358584612d1e565b1490509392505050565b6000612b4d82600001612d74565b9050919050565b6000612b638360000183612d85565b60001c905092915050565b6000612b80836000018360001b612db0565b905092915050565b6000612b9a836000018360001b612dd3565b905092915050565b6000600882901c9050600060ff83166001901b9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082612cb2868685612ee7565b149050949350505050565b6000600882901c9050600060ff83166001901b905080198460000160008481526020019081526020016000206000828254169250508190555050505050565b6000612d0e836000018360001b61318e565b905092915050565b600033905090565b60008082905060005b8451811015612d6957612d5482868381518110612d4757612d466144e5565b5b60200260200101516131fe565b91508080612d6190614543565b915050612d27565b508091505092915050565b600081600001805490509050919050565b6000826000018281548110612d9d57612d9c6144e5565b5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b60008083600101600084815260200190815260200160002054905060008114612edb576000600182612e059190614d6b565b9050600060018660000180549050612e1d9190614d6b565b9050818114612e8c576000866000018281548110612e3e57612e3d6144e5565b5b9060005260206000200154905080876000018481548110612e6257612e616144e5565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612ea057612e9f614d9f565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612ee1565b60009150505b92915050565b60008082519050600084519050806001875184612f049190614b80565b612f0e9190614d6b565b14612f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4590614e1a565b60405180910390fd5b60008167ffffffffffffffff811115612f6a57612f69613562565b5b604051908082528060200260200182016040528015612f985781602001602082028036833780820191505090505b5090506000806000805b858110156130f2576000878510612fdf57858480612fbf90614543565b955081518110612fd257612fd16144e5565b5b6020026020010151613007565b898580612feb90614543565b965081518110612ffe57612ffd6144e5565b5b60200260200101515b905060008b838151811061301e5761301d6144e5565b5b6020026020010151613056578c848061303690614543565b955081518110613049576130486144e5565b5b60200260200101516130b2565b8886106130895786858061306990614543565b96508151811061307c5761307b6144e5565b5b60200260200101516130b1565b8a868061309590614543565b9750815181106130a8576130a76144e5565b5b60200260200101515b5b90506130be82826131fe565b8784815181106130d1576130d06144e5565b5b602002602001018181525050505080806130ea90614543565b915050612fa2565b506000851115613130578360018661310a9190614d6b565b8151811061311b5761311a6144e5565b5b60200260200101519650505050505050613187565b6000861115613162578760008151811061314d5761314c6144e5565b5b60200260200101519650505050505050613187565b89600081518110613176576131756144e5565b5b602002602001015196505050505050505b9392505050565b600061319a8383612db0565b6131f35782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506131f8565b600090505b92915050565b6000818310613216576132118284613229565b613221565b6132208383613229565b5b905092915050565b600082600052816020526040600020905092915050565b60405180606001604052806000815260200160608152602001606081525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61328881613275565b811461329357600080fd5b50565b6000813590506132a58161327f565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006132d6826132ab565b9050919050565b6132e6816132cb565b81146132f157600080fd5b50565b600081359050613303816132dd565b92915050565b600080604083850312156133205761331f61326b565b5b600061332e85828601613296565b925050602061333f858286016132f4565b9150509250929050565b60008115159050919050565b61335e81613349565b82525050565b60006020820190506133796000830184613355565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126133a4576133a361337f565b5b8235905067ffffffffffffffff8111156133c1576133c0613384565b5b6020830191508360018202830111156133dd576133dc613389565b5b9250929050565b600080600080600060808688031215613400576133ff61326b565b5b600061340e88828901613296565b955050602061341f88828901613296565b945050604086013567ffffffffffffffff8111156134405761343f613270565b5b61344c8882890161338e565b9350935050606061345f88828901613296565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6134a181613349565b82525050565b60006134b38383613498565b60208301905092915050565b6000602082019050919050565b60006134d78261346c565b6134e18185613477565b93506134ec83613488565b8060005b8381101561351d57815161350488826134a7565b975061350f836134bf565b9250506001810190506134f0565b5085935050505092915050565b6000602082019050818103600083015261354481846134cc565b905092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61359a82613551565b810181811067ffffffffffffffff821117156135b9576135b8613562565b5b80604052505050565b60006135cc613261565b90506135d88282613591565b919050565b600067ffffffffffffffff8211156135f8576135f7613562565b5b61360182613551565b9050602081019050919050565b82818337600083830152505050565b600061363061362b846135dd565b6135c2565b90508281526020810184848401111561364c5761364b61354c565b5b61365784828561360e565b509392505050565b600082601f8301126136745761367361337f565b5b813561368484826020860161361d565b91505092915050565b600080604083850312156136a4576136a361326b565b5b60006136b285828601613296565b925050602083013567ffffffffffffffff8111156136d3576136d2613270565b5b6136df8582860161365f565b9150509250929050565b6136f281613275565b82525050565b600060208201905061370d60008301846136e9565b92915050565b60008083601f8401126137295761372861337f565b5b8235905067ffffffffffffffff81111561374657613745613384565b5b60208301915083602082028301111561376257613761613389565b5b9250929050565b600080600080606085870312156137835761378261326b565b5b600061379187828801613296565b94505060206137a2878288016132f4565b935050604085013567ffffffffffffffff8111156137c3576137c2613270565b5b6137cf87828801613713565b925092505092959194509250565b6000602082840312156137f3576137f261326b565b5b6000613801848285016132f4565b91505092915050565b6000602082840312156138205761381f61326b565b5b600061382e84828501613296565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613871578082015181840152602081019050613856565b60008484015250505050565b600061388882613837565b6138928185613842565b93506138a2818560208601613853565b6138ab81613551565b840191505092915050565b60006060820190506138cb60008301866136e9565b81810360208301526138dd818561387d565b905081810360408301526138f1818461387d565b9050949350505050565b600067ffffffffffffffff82111561391657613915613562565b5b602082029050602081019050919050565b6000819050919050565b61393a81613927565b811461394557600080fd5b50565b60008135905061395781613931565b92915050565b600061397061396b846138fb565b6135c2565b9050808382526020820190506020840283018581111561399357613992613389565b5b835b818110156139bc57806139a88882613948565b845260208401935050602081019050613995565b5050509392505050565b600082601f8301126139db576139da61337f565b5b81356139eb84826020860161395d565b91505092915050565b60008060008060808587031215613a0e57613a0d61326b565b5b6000613a1c87828801613296565b9450506020613a2d87828801613296565b935050604085013567ffffffffffffffff811115613a4e57613a4d613270565b5b613a5a878288016139c6565b9250506060613a6b87828801613948565b91505092959194509250565b600080600060408486031215613a9057613a8f61326b565b5b6000613a9e86828701613296565b935050602084013567ffffffffffffffff811115613abf57613abe613270565b5b613acb8682870161338e565b92509250509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613b0c81613275565b82525050565b6000613b1e8383613b03565b60208301905092915050565b6000602082019050919050565b6000613b4282613ad7565b613b4c8185613ae2565b9350613b5783613af3565b8060005b83811015613b88578151613b6f8882613b12565b9750613b7a83613b2a565b925050600181019050613b5b565b5085935050505092915050565b60006020820190508181036000830152613baf8184613b37565b905092915050565b600080600060608486031215613bd057613bcf61326b565b5b6000613bde86828701613296565b9350506020613bef86828701613296565b925050604084013567ffffffffffffffff811115613c1057613c0f613270565b5b613c1c8682870161365f565b9150509250925092565b600080600060608486031215613c3f57613c3e61326b565b5b6000613c4d86828701613296565b9350506020613c5e86828701613296565b9250506040613c6f86828701613948565b9150509250925092565b600067ffffffffffffffff821115613c9457613c93613562565b5b602082029050602081019050919050565b613cae81613349565b8114613cb957600080fd5b50565b600081359050613ccb81613ca5565b92915050565b6000613ce4613cdf84613c79565b6135c2565b90508083825260208201905060208402830185811115613d0757613d06613389565b5b835b81811015613d305780613d1c8882613cbc565b845260208401935050602081019050613d09565b5050509392505050565b600082601f830112613d4f57613d4e61337f565b5b8135613d5f848260208601613cd1565b91505092915050565b600080600080600060a08688031215613d8457613d8361326b565b5b6000613d9288828901613296565b9550506020613da388828901613296565b945050604086013567ffffffffffffffff811115613dc457613dc3613270565b5b613dd0888289016139c6565b935050606086013567ffffffffffffffff811115613df157613df0613270565b5b613dfd88828901613d3a565b925050608086013567ffffffffffffffff811115613e1e57613e1d613270565b5b613e2a888289016139c6565b9150509295509295909350565b600080600080600060608688031215613e5357613e5261326b565b5b6000613e6188828901613296565b955050602086013567ffffffffffffffff811115613e8257613e81613270565b5b613e8e8882890161338e565b9450945050604086013567ffffffffffffffff811115613eb157613eb0613270565b5b613ebd88828901613713565b92509250509295509295909350565b613ed5816132cb565b82525050565b6000602082019050613ef06000830184613ecc565b92915050565b600080fd5b600080fd5b600060608284031215613f1657613f15613ef6565b5b613f2060606135c2565b90506000613f3084828501613296565b600083015250602082013567ffffffffffffffff811115613f5457613f53613efb565b5b613f608482850161365f565b602083015250604082013567ffffffffffffffff811115613f8457613f83613efb565b5b613f908482850161365f565b60408301525092915050565b60008060008060608587031215613fb657613fb561326b565b5b6000613fc487828801613296565b945050602085013567ffffffffffffffff811115613fe557613fe4613270565b5b613ff187828801613f00565b935050604085013567ffffffffffffffff81111561401257614011613270565b5b61401e87828801613713565b925092505092959194509250565b60006020820190508181036000830152614046818461387d565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614083816132cb565b82525050565b6000614095838361407a565b60208301905092915050565b6000602082019050919050565b60006140b98261404e565b6140c38185614059565b93506140ce8361406a565b8060005b838110156140ff5781516140e68882614089565b97506140f1836140a1565b9250506001810190506140d2565b5085935050505092915050565b6000602082019050818103600083015261412681846140ae565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b600061417682613837565b614180818561415a565b9350614190818560208601613853565b61419981613551565b840191505092915050565b60006141b0838361416b565b905092915050565b6000602082019050919050565b60006141d08261412e565b6141da8185614139565b9350836020820285016141ec8561414a565b8060005b85811015614228578484038952815161420985826141a4565b9450614214836141b8565b925060208a019950506001810190506141f0565b50829750879550505050505092915050565b6000602082019050818103600083015261425481846141c5565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006060830160008301516142a06000860182613b03565b50602083015184820360208601526142b8828261416b565b915050604083015184820360408601526142d2828261416b565b9150508091505092915050565b60006142eb8383614288565b905092915050565b6000602082019050919050565b600061430b8261425c565b6143158185614267565b93508360208202850161432785614278565b8060005b85811015614363578484038952815161434485826142df565b945061434f836142f3565b925060208a0199505060018101905061432b565b50829750879550505050505092915050565b6000602082019050818103600083015261438f8184614300565b905092915050565b6000819050919050565b60006143bc6143b76143b2846132ab565b614397565b6132ab565b9050919050565b60006143ce826143a1565b9050919050565b60006143e0826143c3565b9050919050565b6143f0816143d5565b82525050565b600060208201905061440b60008301846143e7565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60008160601b9050919050565b600061445882614440565b9050919050565b600061446a8261444d565b9050919050565b61448261447d826132cb565b61445f565b82525050565b60006144948284614471565b60148201915081905092915050565b6000815190506144b2816132dd565b92915050565b6000602082840312156144ce576144cd61326b565b5b60006144dc848285016144a3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061454e82613275565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036145805761457f614514565b5b600182019050919050565b60006040820190506145a060008301856136e9565b81810360208301526145b2818461387d565b90509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061460257607f821691505b602082108103614615576146146145bb565b5b50919050565b600082825260208201905092915050565b7f4e6f7420504b50204e4654206f776e6572000000000000000000000000000000600082015250565b600061466260118361461b565b915061466d8261462c565b602082019050919050565b6000602082019050818103600083015261469181614655565b9050919050565b6146a181613927565b82525050565b60006020820190506146bc6000830184614698565b92915050565b60006146ce8385613842565b93506146db83858461360e565b6146e483613551565b840190509392505050565b600060608201905061470460008301876136e9565b81810360208301526147178185876146c2565b905061472660408301846136e9565b95945050505050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461475c816145ea565b614766818661472f565b945060018216600081146147815760018114614796576147c9565b60ff19831686528115158202860193506147c9565b61479f8561473a565b60005b838110156147c1578154818901526001820191506020810190506147a2565b838801955050505b50505092915050565b60006147de828461474f565b915081905092915050565b7f43616e6e6f7420616464206120646966666572656e74207075626b657920666f60008201527f72207468652073616d652061757468206d6574686f64207479706520616e642060208201527f6964000000000000000000000000000000000000000000000000000000000000604082015250565b600061486b60428361461b565b9150614876826147e9565b606082019050919050565b6000602082019050818103600083015261489a8161485e565b9050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026148ee7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826148b1565b6148f886836148b1565b95508019841693508086168417925050509392505050565b600061492b61492661492184613275565b614397565b613275565b9050919050565b6000819050919050565b61494583614910565b61495961495182614932565b8484546148be565b825550505050565b600090565b61496e614961565b61497981848461493c565b505050565b5b8181101561499d57614992600082614966565b60018101905061497f565b5050565b601f8211156149e2576149b38161473a565b6149bc846148a1565b810160208510156149cb578190505b6149df6149d7856148a1565b83018261497e565b50505b505050565b600082821c905092915050565b6000614a05600019846008026149e7565b1980831691505092915050565b6000614a1e83836149f4565b9150826002028217905092915050565b614a3782613837565b67ffffffffffffffff811115614a5057614a4f613562565b5b614a5a82546145ea565b614a658282856149a1565b600060209050601f831160018114614a985760008415614a86578287015190505b614a908582614a12565b865550614af8565b601f198416614aa68661473a565b60005b82811015614ace57848901518255600182019150602085019450602081019050614aa9565b86831015614aeb5784890151614ae7601f8916826149f4565b8355505b6001600288020188555050505b505050505050565b6000606082019050614b1560008301866136e9565b8181036020830152614b27818561387d565b9050614b3660408301846136e9565b949350505050565b600081519050614b4d81613ca5565b92915050565b600060208284031215614b6957614b6861326b565b5b6000614b7784828501614b3e565b91505092915050565b6000614b8b82613275565b9150614b9683613275565b9250828201905080821115614bae57614bad614514565b5b92915050565b6000614bc7614bc2846135dd565b6135c2565b905082815260208101848484011115614be357614be261354c565b5b614bee848285613853565b509392505050565b600082601f830112614c0b57614c0a61337f565b5b8151614c1b848260208601614bb4565b91505092915050565b600060208284031215614c3a57614c3961326b565b5b600082015167ffffffffffffffff811115614c5857614c57613270565b5b614c6484828501614bf6565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614cc960268361461b565b9150614cd482614c6d565b604082019050919050565b60006020820190508181036000830152614cf881614cbc565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d3560208361461b565b9150614d4082614cff565b602082019050919050565b60006020820190508181036000830152614d6481614d28565b9050919050565b6000614d7682613275565b9150614d8183613275565b9250828203905081811115614d9957614d98614514565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4d65726b6c6550726f6f663a20696e76616c6964206d756c746970726f6f6600600082015250565b6000614e04601f8361461b565b9150614e0f82614dce565b602082019050919050565b60006020820190508181036000830152614e3381614df7565b905091905056fea2646970667358221220418da1a45bf00c1f39e2cd8fa98e6c916770fc41d654586711f5e96d179a108f64736f6c634300081100330000000000000000000000008eb912250b1ec585cfe28a9aa662c985f3451041
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101d75760003560e01c80638a43157811610104578063bb7a1070116100a2578063f2fde38b11610071578063f2fde38b146105be578063f34f21ba146105da578063fceb39831461060a578063ffa2e9531461063a576101d7565b8063bb7a107014610512578063bd4986a014610542578063d41a327214610572578063ef6fd8781461058e576101d7565b8063a1afdc6f116100de578063a1afdc6f14610466578063a1c805fa14610496578063abc541ae146104c6578063b997606f146104f6576101d7565b80638a431578146104105780638da5cb5b1461042c5780639dd4349b1461044a576101d7565b80635521c4521161017c5780636821c8e21161014b5780636821c8e21461039e578063715018a6146103ba57806378c49efa146103c457806382559561146103f4576101d7565b80635521c45214610306578063557b5eba1461033657806366fc6541146103665780636705c6f214610382576101d7565b80631663c121116101b85780631663c1211461026c578063176354fd146102885780632657768b146102a457806345b72bde146102d6576101d7565b80618b4f146101dc578062221c081461020c5780630a60950d1461023c575b600080fd5b6101f660048036038101906101f19190613309565b610658565b6040516102039190613364565b60405180910390f35b610226600480360381019061022191906133e4565b610770565b604051610233919061352a565b60405180910390f35b6102566004803603810190610251919061368d565b61089f565b60405161026391906136f8565b60405180910390f35b61028660048036038101906102819190613769565b6108d5565b005b6102a2600480360381019061029d91906137dd565b610942565b005b6102be60048036038101906102b9919061380a565b61098e565b6040516102cd939291906138b6565b60405180910390f35b6102f060048036038101906102eb91906139f4565b610ac8565b6040516102fd9190613364565b60405180910390f35b610320600480360381019061031b9190613a77565b610b1d565b60405161032d9190613b95565b60405180910390f35b610350600480360381019061034b9190613bb7565b610c4d565b60405161035d9190613364565b60405180910390f35b610380600480360381019061037b9190613bb7565b610ca3565b005b61039c60048036038101906103979190613c26565b610e5a565b005b6103b860048036038101906103b391906133e4565b610fd2565b005b6103c26111b1565b005b6103de60048036038101906103d99190613d68565b6111c5565b6040516103eb9190613364565b60405180910390f35b61040e600480360381019061040991906133e4565b61121c565b005b61042a60048036038101906104259190613e37565b6113fb565b005b61043461148e565b6040516104419190613edb565b60405180910390f35b610464600480360381019061045f9190613f9c565b6114b7565b005b610480600480360381019061047b9190613a77565b61182d565b60405161048d919061402c565b60405180910390f35b6104b060048036038101906104ab91906133e4565b6119e1565b6040516104bd9190613364565b60405180910390f35b6104e060048036038101906104db919061380a565b611a7c565b6040516104ed919061410c565b60405180910390f35b610510600480360381019061050b9190613309565b6120f9565b005b61052c6004803603810190610527919061380a565b61213a565b604051610539919061423a565b60405180910390f35b61055c6004803603810190610557919061380a565b61256c565b6040516105699190613edb565b60405180910390f35b61058c60048036038101906105879190613a77565b612611565b005b6105a860048036038101906105a3919061380a565b612678565b6040516105b5919061402c565b60405180910390f35b6105d860048036038101906105d391906137dd565b612722565b005b6105f460048036038101906105ef919061380a565b6127a5565b6040516106019190614375565b60405180910390f35b610624600480360381019061061f9190613a77565b6129db565b6040516106319190613364565b60405180910390f35b610642612a48565b60405161064f91906143f6565b60405180910390f35b6000610697836001600681111561067257610671614411565b5b846040516020016106839190614488565b604051602081830303815290604052610c4d565b8061076857508173ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b815260040161070f91906136f8565b602060405180830381865afa15801561072c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075091906144b8565b73ffffffffffffffffffffffffffffffffffffffff16145b905092915050565b606060006107c28686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061089f565b90506000600360008981526020019081526020016000206000838152602001908152602001600020905060008467ffffffffffffffff81111561080857610807613562565b5b6040519080825280602002602001820160405280156108365781602001602082028036833780820191505090505b50905060005b8581101561088f576108578184612a6e90919063ffffffff16565b82828151811061086a576108696144e5565b5b602002602001019015159081151581525050808061088790614543565b91505061083c565b5080935050505095945050505050565b600082826040516020016108b492919061458b565b6040516020818303038152906040528051906020012060001c905092915050565b61093c846040518060600160405280600160068111156108f8576108f7614411565b5b81526020018660405160200161090e9190614488565b60405160208183030381529060405281526020016040518060200160405280600081525081525084846114b7565b50505050565b61094a612aaa565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60046020528060005260406000206000915090508060000154908060010180546109b7906145ea565b80601f01602080910402602001604051908101604052809291908181526020018280546109e3906145ea565b8015610a305780601f10610a0557610100808354040283529160200191610a30565b820191906000526020600020905b815481529060010190602001808311610a1357829003601f168201915b505050505090806002018054610a45906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054610a71906145ea565b8015610abe5780601f10610a9357610100808354040283529160200191610abe565b820191906000526020600020905b815481529060010190602001808311610aa157829003601f168201915b5050505050905083565b6000806006600087815260200190815260200160002060008681526020019081526020016000205490506000801b8103610b06576000915050610b15565b610b11848285612b28565b9150505b949350505050565b60606000610b6f8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061089f565b90506000610b8e60056000848152602001908152602001600020612b3f565b905060008167ffffffffffffffff811115610bac57610bab613562565b5b604051908082528060200260200182016040528015610bda5781602001602082028036833780820191505090505b50905060005b82811015610c3f57610c0d8160056000878152602001908152602001600020612b5490919063ffffffff16565b828281518110610c2057610c1f6144e5565b5b6020026020010181815250508080610c3790614543565b915050610be0565b508093505050509392505050565b600080610c5a848461089f565b90506000610c838260026000898152602001908152602001600020612b6e90919063ffffffff16565b905080610c9557600092505050610c9c565b6001925050505b9392505050565b826000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610d0191906136f8565b602060405180830381865afa158015610d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4291906144b8565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610db2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da990614678565b60405180910390fd5b6000610dbe858561089f565b90506000600260008881526020019081526020016000209050610dea8282612b8890919063ffffffff16565b506000600560008481526020019081526020016000209050610e158882612b8890919063ffffffff16565b50877f9830658acd6a41f1cb12b425ed83cb2b8ccbfa753337cd13be80be51fc3f33738488604051610e4892919061458b565b60405180910390a25050505050505050565b826000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610eb891906136f8565b602060405180830381865afa158015610ed5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef991906144b8565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6090614678565b60405180910390fd5b826006600087815260200190815260200160002060008681526020019081526020016000208190555083857fd4beb656267200ccd79d73dbdfbad162c213e10ebad16508f22cb4df8d3259ad85604051610fc391906146a7565b60405180910390a35050505050565b846000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161103091906136f8565b602060405180830381865afa15801561104d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107191906144b8565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d890614678565b60405180910390fd5b60006111318787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061089f565b905061116984600360008b81526020019081526020016000206000848152602001908152602001600020612ba290919063ffffffff16565b877f29eb060f266aff306ec81b612728a417406dd6298f8f7576a37b4e6830dcc60e8288888860405161119f94939291906146ef565b60405180910390a25050505050505050565b6111b9612aaa565b6111c36000612be0565b565b6000806006600088815260200190815260200160002060008781526020019081526020016000205490506000801b8103611203576000915050611213565b61120f85858386612ca4565b9150505b95945050505050565b846000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161127a91906136f8565b602060405180830381865afa158015611297573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112bb91906144b8565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461132b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132290614678565b60405180910390fd5b600061137b8787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061089f565b90506113b384600360008b81526020019081526020016000206000848152602001908152602001600020612cbd90919063ffffffff16565b877f49bb3a0761ed218e1db1e9c41096ed35188868994cc37a32e1f25855745b424e888888886040516113e994939291906146ef565b60405180910390a25050505050505050565b6114878560405180606001604052806002600681111561141e5761141d614411565b5b815260200187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020016040518060200160405280600081525081525084846114b7565b5050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b836000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161151591906136f8565b602060405180830381865afa158015611532573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155691906144b8565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146115c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bd90614678565b60405180910390fd5b60006115da8660000151876020015161089f565b905060006004600083815260200190815260200160002060020180546115ff906145ea565b9050148061164157508560400151805190602001206004600083815260200190815260200160002060020160405161163791906147d2565b6040518091039020145b611680576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167790614881565b60405180910390fd5b85600460008381526020019081526020016000206000820151816000015560208201518160010190816116b39190614a2e565b5060408201518160020190816116c99190614a2e565b5090505060006002600089815260200190815260200160002090506116f78282612cfc90919063ffffffff16565b5060006005600084815260200190815260200160002090506117228982612cfc90919063ffffffff16565b5060005b878790508110156117d9576000888883818110611746576117456144e5565b5b90506020020135905061178581600360008e81526020019081526020016000206000888152602001908152602001600020612ba290919063ffffffff16565b8a7f29eb060f266aff306ec81b612728a417406dd6298f8f7576a37b4e6830dcc60e868c60200151846040516117bd93929190614b00565b60405180910390a25080806117d190614543565b915050611726565b50887fd7db314a62650aaa1b15d4bb5c95c558a03cde3ee7f36e144b73126a3a8e839a89600001518a602001518b6040015160405161181a939291906138b6565b60405180910390a2505050505050505050565b6060600061187f8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061089f565b9050600060046000838152602001908152602001600020604051806060016040529081600082015481526020016001820180546118bb906145ea565b80601f01602080910402602001604051908101604052809291908181526020018280546118e7906145ea565b80156119345780601f1061190957610100808354040283529160200191611934565b820191906000526020600020905b81548152906001019060200180831161191757829003601f168201915b5050505050815260200160028201805461194d906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054611979906145ea565b80156119c65780601f1061199b576101008083540402835291602001916119c6565b820191906000526020600020905b8154815290600101906020018083116119a957829003601f168201915b50505050508152505090508060400151925050509392505050565b600080611a328686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061089f565b90506000611a6c84600360008b81526020019081526020016000206000858152602001908152602001600020612a6e90919063ffffffff16565b9050809250505095945050505050565b60606000611a9b60026000858152602001908152602001600020612b3f565b90506000805b82811015611c64576000611ad08260026000898152602001908152602001600020612b5490919063ffffffff16565b905060006004600083815260200190815260200160002060405180606001604052908160008201548152602001600182018054611b0c906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054611b38906145ea565b8015611b855780601f10611b5a57610100808354040283529160200191611b85565b820191906000526020600020905b815481529060010190602001808311611b6857829003601f168201915b50505050508152602001600282018054611b9e906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054611bca906145ea565b8015611c175780601f10611bec57610100808354040283529160200191611c17565b820191906000526020600020905b815481529060010190602001808311611bfa57829003601f168201915b505050505081525050905060016006811115611c3657611c35614411565b5b816000015103611c4f578380611c4b90614543565b9450505b50508080611c5c90614543565b915050611aa1565b506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634f558e79866040518263ffffffff1660e01b8152600401611cc291906136f8565b602060405180830381865afa158015611cdf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d039190614b53565b9050606060008215611e6957600184611d1c9190614b80565b67ffffffffffffffff811115611d3557611d34613562565b5b604051908082528060200260200182016040528015611d635781602001602082028036833780820191505090505b5091506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e896040518263ffffffff1660e01b8152600401611dc391906136f8565b602060405180830381865afa158015611de0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0491906144b8565b90508083600081518110611e1b57611e1a6144e5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508180611e6090614543565b92505050611eb5565b8367ffffffffffffffff811115611e8357611e82613562565b5b604051908082528060200260200182016040528015611eb15781602001602082028036833780820191505090505b5091505b60005b858110156120eb576000611ee782600260008c8152602001908152602001600020612b5490919063ffffffff16565b905060006004600083815260200190815260200160002060405180606001604052908160008201548152602001600182018054611f23906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4f906145ea565b8015611f9c5780601f10611f7157610100808354040283529160200191611f9c565b820191906000526020600020905b815481529060010190602001808311611f7f57829003601f168201915b50505050508152602001600282018054611fb5906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054611fe1906145ea565b801561202e5780601f106120035761010080835404028352916020019161202e565b820191906000526020600020905b81548152906001019060200180831161201157829003601f168201915b50505050508152505090506001600681111561204d5761204c614411565b5b8160000151036120d657600080826020015190506c0100000000000000000000000060208201510491508187878151811061208b5761208a6144e5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505085806120d090614543565b96505050505b505080806120e390614543565b915050611eb8565b508195505050505050919050565b612136826001600681111561211157612110614411565b5b836040516020016121229190614488565b604051602081830303815290604052610ca3565b5050565b6060600061215960026000858152602001908152602001600020612b3f565b90506000805b8281101561232257600061218e8260026000898152602001908152602001600020612b5490919063ffffffff16565b9050600060046000838152602001908152602001600020604051806060016040529081600082015481526020016001820180546121ca906145ea565b80601f01602080910402602001604051908101604052809291908181526020018280546121f6906145ea565b80156122435780601f1061221857610100808354040283529160200191612243565b820191906000526020600020905b81548152906001019060200180831161222657829003601f168201915b5050505050815260200160028201805461225c906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054612288906145ea565b80156122d55780601f106122aa576101008083540402835291602001916122d5565b820191906000526020600020905b8154815290600101906020018083116122b857829003601f168201915b5050505050815250509050600260068111156122f4576122f3614411565b5b81600001510361230d57838061230990614543565b9450505b5050808061231a90614543565b91505061215f565b5060008167ffffffffffffffff81111561233f5761233e613562565b5b60405190808252806020026020018201604052801561237257816020015b606081526020019060019003908161235d5790505b5090506000805b8481101561255f5760006123a882600260008b8152602001908152602001600020612b5490919063ffffffff16565b9050600060046000838152602001908152602001600020604051806060016040529081600082015481526020016001820180546123e4906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054612410906145ea565b801561245d5780601f106124325761010080835404028352916020019161245d565b820191906000526020600020905b81548152906001019060200180831161244057829003601f168201915b50505050508152602001600282018054612476906145ea565b80601f01602080910402602001604051908101604052809291908181526020018280546124a2906145ea565b80156124ef5780601f106124c4576101008083540402835291602001916124ef565b820191906000526020600020905b8154815290600101906020018083116124d257829003601f168201915b50505050508152505090506002600681111561250e5761250d614411565b5b81600001510361254a5780602001518585815181106125305761252f6144e5565b5b6020026020010181905250838061254690614543565b9450505b5050808061255790614543565b915050612379565b5081945050505050919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bd4986a0836040518263ffffffff1660e01b81526004016125c991906136f8565b602060405180830381865afa1580156125e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061260a91906144b8565b9050919050565b612673836002600681111561262957612628614411565b5b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610ca3565b505050565b6060600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ef6fd878836040518263ffffffff1660e01b81526004016126d591906136f8565b600060405180830381865afa1580156126f2573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061271b9190614c24565b9050919050565b61272a612aaa565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612799576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279090614cdf565b60405180910390fd5b6127a281612be0565b50565b606060006127c460026000858152602001908152602001600020612b3f565b905060008167ffffffffffffffff8111156127e2576127e1613562565b5b60405190808252806020026020018201604052801561281b57816020015b612808613240565b8152602001906001900390816128005790505b50905060005b828110156129d05760006128508260026000898152602001908152602001600020612b5490919063ffffffff16565b9050600460008281526020019081526020016000206040518060600160405290816000820154815260200160018201805461288a906145ea565b80601f01602080910402602001604051908101604052809291908181526020018280546128b6906145ea565b80156129035780601f106128d857610100808354040283529160200191612903565b820191906000526020600020905b8154815290600101906020018083116128e657829003601f168201915b5050505050815260200160028201805461291c906145ea565b80601f0160208091040260200160405190810160405280929190818152602001828054612948906145ea565b80156129955780601f1061296a57610100808354040283529160200191612995565b820191906000526020600020905b81548152906001019060200180831161297857829003601f168201915b5050505050815250508383815181106129b1576129b06144e5565b5b60200260200101819052505080806129c890614543565b915050612821565b508092505050919050565b6000612a3f84600260068111156129f5576129f4614411565b5b85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610c4d565b90509392505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600883901c9050600060ff84166001901b9050600081866000016000858152602001908152602001600020541614159250505092915050565b612ab2612d16565b73ffffffffffffffffffffffffffffffffffffffff16612ad061148e565b73ffffffffffffffffffffffffffffffffffffffff1614612b26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1d90614d4b565b60405180910390fd5b565b600082612b358584612d1e565b1490509392505050565b6000612b4d82600001612d74565b9050919050565b6000612b638360000183612d85565b60001c905092915050565b6000612b80836000018360001b612db0565b905092915050565b6000612b9a836000018360001b612dd3565b905092915050565b6000600882901c9050600060ff83166001901b9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082612cb2868685612ee7565b149050949350505050565b6000600882901c9050600060ff83166001901b905080198460000160008481526020019081526020016000206000828254169250508190555050505050565b6000612d0e836000018360001b61318e565b905092915050565b600033905090565b60008082905060005b8451811015612d6957612d5482868381518110612d4757612d466144e5565b5b60200260200101516131fe565b91508080612d6190614543565b915050612d27565b508091505092915050565b600081600001805490509050919050565b6000826000018281548110612d9d57612d9c6144e5565b5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b60008083600101600084815260200190815260200160002054905060008114612edb576000600182612e059190614d6b565b9050600060018660000180549050612e1d9190614d6b565b9050818114612e8c576000866000018281548110612e3e57612e3d6144e5565b5b9060005260206000200154905080876000018481548110612e6257612e616144e5565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612ea057612e9f614d9f565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612ee1565b60009150505b92915050565b60008082519050600084519050806001875184612f049190614b80565b612f0e9190614d6b565b14612f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f4590614e1a565b60405180910390fd5b60008167ffffffffffffffff811115612f6a57612f69613562565b5b604051908082528060200260200182016040528015612f985781602001602082028036833780820191505090505b5090506000806000805b858110156130f2576000878510612fdf57858480612fbf90614543565b955081518110612fd257612fd16144e5565b5b6020026020010151613007565b898580612feb90614543565b965081518110612ffe57612ffd6144e5565b5b60200260200101515b905060008b838151811061301e5761301d6144e5565b5b6020026020010151613056578c848061303690614543565b955081518110613049576130486144e5565b5b60200260200101516130b2565b8886106130895786858061306990614543565b96508151811061307c5761307b6144e5565b5b60200260200101516130b1565b8a868061309590614543565b9750815181106130a8576130a76144e5565b5b60200260200101515b5b90506130be82826131fe565b8784815181106130d1576130d06144e5565b5b602002602001018181525050505080806130ea90614543565b915050612fa2565b506000851115613130578360018661310a9190614d6b565b8151811061311b5761311a6144e5565b5b60200260200101519650505050505050613187565b6000861115613162578760008151811061314d5761314c6144e5565b5b60200260200101519650505050505050613187565b89600081518110613176576131756144e5565b5b602002602001015196505050505050505b9392505050565b600061319a8383612db0565b6131f35782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506131f8565b600090505b92915050565b6000818310613216576132118284613229565b613221565b6132208383613229565b5b905092915050565b600082600052816020526040600020905092915050565b60405180606001604052806000815260200160608152602001606081525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61328881613275565b811461329357600080fd5b50565b6000813590506132a58161327f565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006132d6826132ab565b9050919050565b6132e6816132cb565b81146132f157600080fd5b50565b600081359050613303816132dd565b92915050565b600080604083850312156133205761331f61326b565b5b600061332e85828601613296565b925050602061333f858286016132f4565b9150509250929050565b60008115159050919050565b61335e81613349565b82525050565b60006020820190506133796000830184613355565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126133a4576133a361337f565b5b8235905067ffffffffffffffff8111156133c1576133c0613384565b5b6020830191508360018202830111156133dd576133dc613389565b5b9250929050565b600080600080600060808688031215613400576133ff61326b565b5b600061340e88828901613296565b955050602061341f88828901613296565b945050604086013567ffffffffffffffff8111156134405761343f613270565b5b61344c8882890161338e565b9350935050606061345f88828901613296565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6134a181613349565b82525050565b60006134b38383613498565b60208301905092915050565b6000602082019050919050565b60006134d78261346c565b6134e18185613477565b93506134ec83613488565b8060005b8381101561351d57815161350488826134a7565b975061350f836134bf565b9250506001810190506134f0565b5085935050505092915050565b6000602082019050818103600083015261354481846134cc565b905092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61359a82613551565b810181811067ffffffffffffffff821117156135b9576135b8613562565b5b80604052505050565b60006135cc613261565b90506135d88282613591565b919050565b600067ffffffffffffffff8211156135f8576135f7613562565b5b61360182613551565b9050602081019050919050565b82818337600083830152505050565b600061363061362b846135dd565b6135c2565b90508281526020810184848401111561364c5761364b61354c565b5b61365784828561360e565b509392505050565b600082601f8301126136745761367361337f565b5b813561368484826020860161361d565b91505092915050565b600080604083850312156136a4576136a361326b565b5b60006136b285828601613296565b925050602083013567ffffffffffffffff8111156136d3576136d2613270565b5b6136df8582860161365f565b9150509250929050565b6136f281613275565b82525050565b600060208201905061370d60008301846136e9565b92915050565b60008083601f8401126137295761372861337f565b5b8235905067ffffffffffffffff81111561374657613745613384565b5b60208301915083602082028301111561376257613761613389565b5b9250929050565b600080600080606085870312156137835761378261326b565b5b600061379187828801613296565b94505060206137a2878288016132f4565b935050604085013567ffffffffffffffff8111156137c3576137c2613270565b5b6137cf87828801613713565b925092505092959194509250565b6000602082840312156137f3576137f261326b565b5b6000613801848285016132f4565b91505092915050565b6000602082840312156138205761381f61326b565b5b600061382e84828501613296565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613871578082015181840152602081019050613856565b60008484015250505050565b600061388882613837565b6138928185613842565b93506138a2818560208601613853565b6138ab81613551565b840191505092915050565b60006060820190506138cb60008301866136e9565b81810360208301526138dd818561387d565b905081810360408301526138f1818461387d565b9050949350505050565b600067ffffffffffffffff82111561391657613915613562565b5b602082029050602081019050919050565b6000819050919050565b61393a81613927565b811461394557600080fd5b50565b60008135905061395781613931565b92915050565b600061397061396b846138fb565b6135c2565b9050808382526020820190506020840283018581111561399357613992613389565b5b835b818110156139bc57806139a88882613948565b845260208401935050602081019050613995565b5050509392505050565b600082601f8301126139db576139da61337f565b5b81356139eb84826020860161395d565b91505092915050565b60008060008060808587031215613a0e57613a0d61326b565b5b6000613a1c87828801613296565b9450506020613a2d87828801613296565b935050604085013567ffffffffffffffff811115613a4e57613a4d613270565b5b613a5a878288016139c6565b9250506060613a6b87828801613948565b91505092959194509250565b600080600060408486031215613a9057613a8f61326b565b5b6000613a9e86828701613296565b935050602084013567ffffffffffffffff811115613abf57613abe613270565b5b613acb8682870161338e565b92509250509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613b0c81613275565b82525050565b6000613b1e8383613b03565b60208301905092915050565b6000602082019050919050565b6000613b4282613ad7565b613b4c8185613ae2565b9350613b5783613af3565b8060005b83811015613b88578151613b6f8882613b12565b9750613b7a83613b2a565b925050600181019050613b5b565b5085935050505092915050565b60006020820190508181036000830152613baf8184613b37565b905092915050565b600080600060608486031215613bd057613bcf61326b565b5b6000613bde86828701613296565b9350506020613bef86828701613296565b925050604084013567ffffffffffffffff811115613c1057613c0f613270565b5b613c1c8682870161365f565b9150509250925092565b600080600060608486031215613c3f57613c3e61326b565b5b6000613c4d86828701613296565b9350506020613c5e86828701613296565b9250506040613c6f86828701613948565b9150509250925092565b600067ffffffffffffffff821115613c9457613c93613562565b5b602082029050602081019050919050565b613cae81613349565b8114613cb957600080fd5b50565b600081359050613ccb81613ca5565b92915050565b6000613ce4613cdf84613c79565b6135c2565b90508083825260208201905060208402830185811115613d0757613d06613389565b5b835b81811015613d305780613d1c8882613cbc565b845260208401935050602081019050613d09565b5050509392505050565b600082601f830112613d4f57613d4e61337f565b5b8135613d5f848260208601613cd1565b91505092915050565b600080600080600060a08688031215613d8457613d8361326b565b5b6000613d9288828901613296565b9550506020613da388828901613296565b945050604086013567ffffffffffffffff811115613dc457613dc3613270565b5b613dd0888289016139c6565b935050606086013567ffffffffffffffff811115613df157613df0613270565b5b613dfd88828901613d3a565b925050608086013567ffffffffffffffff811115613e1e57613e1d613270565b5b613e2a888289016139c6565b9150509295509295909350565b600080600080600060608688031215613e5357613e5261326b565b5b6000613e6188828901613296565b955050602086013567ffffffffffffffff811115613e8257613e81613270565b5b613e8e8882890161338e565b9450945050604086013567ffffffffffffffff811115613eb157613eb0613270565b5b613ebd88828901613713565b92509250509295509295909350565b613ed5816132cb565b82525050565b6000602082019050613ef06000830184613ecc565b92915050565b600080fd5b600080fd5b600060608284031215613f1657613f15613ef6565b5b613f2060606135c2565b90506000613f3084828501613296565b600083015250602082013567ffffffffffffffff811115613f5457613f53613efb565b5b613f608482850161365f565b602083015250604082013567ffffffffffffffff811115613f8457613f83613efb565b5b613f908482850161365f565b60408301525092915050565b60008060008060608587031215613fb657613fb561326b565b5b6000613fc487828801613296565b945050602085013567ffffffffffffffff811115613fe557613fe4613270565b5b613ff187828801613f00565b935050604085013567ffffffffffffffff81111561401257614011613270565b5b61401e87828801613713565b925092505092959194509250565b60006020820190508181036000830152614046818461387d565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614083816132cb565b82525050565b6000614095838361407a565b60208301905092915050565b6000602082019050919050565b60006140b98261404e565b6140c38185614059565b93506140ce8361406a565b8060005b838110156140ff5781516140e68882614089565b97506140f1836140a1565b9250506001810190506140d2565b5085935050505092915050565b6000602082019050818103600083015261412681846140ae565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b600061417682613837565b614180818561415a565b9350614190818560208601613853565b61419981613551565b840191505092915050565b60006141b0838361416b565b905092915050565b6000602082019050919050565b60006141d08261412e565b6141da8185614139565b9350836020820285016141ec8561414a565b8060005b85811015614228578484038952815161420985826141a4565b9450614214836141b8565b925060208a019950506001810190506141f0565b50829750879550505050505092915050565b6000602082019050818103600083015261425481846141c5565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006060830160008301516142a06000860182613b03565b50602083015184820360208601526142b8828261416b565b915050604083015184820360408601526142d2828261416b565b9150508091505092915050565b60006142eb8383614288565b905092915050565b6000602082019050919050565b600061430b8261425c565b6143158185614267565b93508360208202850161432785614278565b8060005b85811015614363578484038952815161434485826142df565b945061434f836142f3565b925060208a0199505060018101905061432b565b50829750879550505050505092915050565b6000602082019050818103600083015261438f8184614300565b905092915050565b6000819050919050565b60006143bc6143b76143b2846132ab565b614397565b6132ab565b9050919050565b60006143ce826143a1565b9050919050565b60006143e0826143c3565b9050919050565b6143f0816143d5565b82525050565b600060208201905061440b60008301846143e7565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60008160601b9050919050565b600061445882614440565b9050919050565b600061446a8261444d565b9050919050565b61448261447d826132cb565b61445f565b82525050565b60006144948284614471565b60148201915081905092915050565b6000815190506144b2816132dd565b92915050565b6000602082840312156144ce576144cd61326b565b5b60006144dc848285016144a3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061454e82613275565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036145805761457f614514565b5b600182019050919050565b60006040820190506145a060008301856136e9565b81810360208301526145b2818461387d565b90509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061460257607f821691505b602082108103614615576146146145bb565b5b50919050565b600082825260208201905092915050565b7f4e6f7420504b50204e4654206f776e6572000000000000000000000000000000600082015250565b600061466260118361461b565b915061466d8261462c565b602082019050919050565b6000602082019050818103600083015261469181614655565b9050919050565b6146a181613927565b82525050565b60006020820190506146bc6000830184614698565b92915050565b60006146ce8385613842565b93506146db83858461360e565b6146e483613551565b840190509392505050565b600060608201905061470460008301876136e9565b81810360208301526147178185876146c2565b905061472660408301846136e9565b95945050505050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461475c816145ea565b614766818661472f565b945060018216600081146147815760018114614796576147c9565b60ff19831686528115158202860193506147c9565b61479f8561473a565b60005b838110156147c1578154818901526001820191506020810190506147a2565b838801955050505b50505092915050565b60006147de828461474f565b915081905092915050565b7f43616e6e6f7420616464206120646966666572656e74207075626b657920666f60008201527f72207468652073616d652061757468206d6574686f64207479706520616e642060208201527f6964000000000000000000000000000000000000000000000000000000000000604082015250565b600061486b60428361461b565b9150614876826147e9565b606082019050919050565b6000602082019050818103600083015261489a8161485e565b9050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026148ee7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826148b1565b6148f886836148b1565b95508019841693508086168417925050509392505050565b600061492b61492661492184613275565b614397565b613275565b9050919050565b6000819050919050565b61494583614910565b61495961495182614932565b8484546148be565b825550505050565b600090565b61496e614961565b61497981848461493c565b505050565b5b8181101561499d57614992600082614966565b60018101905061497f565b5050565b601f8211156149e2576149b38161473a565b6149bc846148a1565b810160208510156149cb578190505b6149df6149d7856148a1565b83018261497e565b50505b505050565b600082821c905092915050565b6000614a05600019846008026149e7565b1980831691505092915050565b6000614a1e83836149f4565b9150826002028217905092915050565b614a3782613837565b67ffffffffffffffff811115614a5057614a4f613562565b5b614a5a82546145ea565b614a658282856149a1565b600060209050601f831160018114614a985760008415614a86578287015190505b614a908582614a12565b865550614af8565b601f198416614aa68661473a565b60005b82811015614ace57848901518255600182019150602085019450602081019050614aa9565b86831015614aeb5784890151614ae7601f8916826149f4565b8355505b6001600288020188555050505b505050505050565b6000606082019050614b1560008301866136e9565b8181036020830152614b27818561387d565b9050614b3660408301846136e9565b949350505050565b600081519050614b4d81613ca5565b92915050565b600060208284031215614b6957614b6861326b565b5b6000614b7784828501614b3e565b91505092915050565b6000614b8b82613275565b9150614b9683613275565b9250828201905080821115614bae57614bad614514565b5b92915050565b6000614bc7614bc2846135dd565b6135c2565b905082815260208101848484011115614be357614be261354c565b5b614bee848285613853565b509392505050565b600082601f830112614c0b57614c0a61337f565b5b8151614c1b848260208601614bb4565b91505092915050565b600060208284031215614c3a57614c3961326b565b5b600082015167ffffffffffffffff811115614c5857614c57613270565b5b614c6484828501614bf6565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614cc960268361461b565b9150614cd482614c6d565b604082019050919050565b60006020820190508181036000830152614cf881614cbc565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614d3560208361461b565b9150614d4082614cff565b602082019050919050565b60006020820190508181036000830152614d6481614d28565b9050919050565b6000614d7682613275565b9150614d8183613275565b9250828203905081811115614d9957614d98614514565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4d65726b6c6550726f6f663a20696e76616c6964206d756c746970726f6f6600600082015250565b6000614e04601f8361461b565b9150614e0f82614dce565b602082019050919050565b60006020820190508181036000830152614e3381614df7565b905091905056fea2646970667358221220418da1a45bf00c1f39e2cd8fa98e6c916770fc41d654586711f5e96d179a108f64736f6c63430008110033