ETH Price: $3,052.34 (-1.65%)

Token

Icosa (ICSA)
 

Overview

Max Total Supply

54,957,771.570259551 ICSA

Holders

7,203

Market

Price

$0.08 @ 0.000027 ETH (-15.34%)

Onchain Market Cap

$4,558,362.45

Circulating Supply Market Cap

$0.00

Other Info

Token Contract (WITH 9 Decimals)

Balance
0.338532362 ICSA

Value
$0.03 ( ~9.82853638411051E-06 Eth) [0.0000%]
0x8ba8bd8bb0659ddfa453a94f9fcd9a11d0f76d7b
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
1
Phux
0X2B591E99AFE9F32EAA6214F7B7629768C40EEB39-0XFC4913214444AF5C715CC9F7B52655E788A569ED$0.0831
0.0000270 Eth
$20,327.00
1,005,911.519 0X2B591E99AFE9F32EAA6214F7B7629768C40EEB39
0.0045%
2
PulseX V2
0X2B591E99AFE9F32EAA6214F7B7629768C40EEB39-0XFC4913214444AF5C715CC9F7B52655E788A569ED$0.0821
0.0000267 Eth
$20,130.00
992,042.858 0X2B591E99AFE9F32EAA6214F7B7629768C40EEB39
0.0044%
3
PulseX
0XFC4913214444AF5C715CC9F7B52655E788A569ED-0XA1077A294DDE1B09BB078844DF40758A5D0F9A27$0.0822
0.0000267 Eth
$18,971.24
225,128.158 0XFC4913214444AF5C715CC9F7B52655E788A569ED
0.0010%
4
PulseX
0XFC4913214444AF5C715CC9F7B52655E788A569ED-0X2B591E99AFE9F32EAA6214F7B7629768C40EEB39$0.0825
0.0000268 Eth
$2,103.30
25,507.136 0XFC4913214444AF5C715CC9F7B52655E788A569ED
0.0001%
5
PulseX V2
0XFC4913214444AF5C715CC9F7B52655E788A569ED-0XA1077A294DDE1B09BB078844DF40758A5D0F9A27$0.0829
0.0000269 Eth
$1,982.58
23,593.855 0XFC4913214444AF5C715CC9F7B52655E788A569ED
0.0001%
6
PulseX V2
0X600136DA8CC6D1EA07449514604DC4AB7098DB82-0XFC4913214444AF5C715CC9F7B52655E788A569ED$0.0825
0.0000268 Eth
$995.54
1,070.849 0X600136DA8CC6D1EA07449514604DC4AB7098DB82
0.0000%
7
PulseX V2
0XD6C31BA0754C4383A41C0E9DF042C62B5E918F6D-0XFC4913214444AF5C715CC9F7B52655E788A569ED$0.0829
0.0000269 Eth
$390.17
22,581,280,553.709 0XD6C31BA0754C4383A41C0E9DF042C62B5E918F6D
99.9898%
8
9mm V3
0XFC4913214444AF5C715CC9F7B52655E788A569ED-0XA1077A294DDE1B09BB078844DF40758A5D0F9A27$0.0833
0.0000271 Eth
$172.67
2,008.013 0XFC4913214444AF5C715CC9F7B52655E788A569ED
0.0000%
9
9mm V3
0XFC4913214444AF5C715CC9F7B52655E788A569ED-0X2B591E99AFE9F32EAA6214F7B7629768C40EEB39$0.1021
0.0000320 Eth
$161.60
1,822.370 0XFC4913214444AF5C715CC9F7B52655E788A569ED
0.0000%
10
Phux
0X2B591E99AFE9F32EAA6214F7B7629768C40EEB39-0XFC4913214444AF5C715CC9F7B52655E788A569ED$0.0802
0.0000261 Eth
$158.54
8,119.015 0X2B591E99AFE9F32EAA6214F7B7629768C40EEB39
0.0000%
11
Phux
0X2B591E99AFE9F32EAA6214F7B7629768C40EEB39-0XFC4913214444AF5C715CC9F7B52655E788A569ED$0.0805
0.0000261 Eth
$150.90
7,723.079 0X2B591E99AFE9F32EAA6214F7B7629768C40EEB39
0.0000%

Contract Source Code Verified (Exact Match)

Contract Name:
Icosa

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-08-15
*/

// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.15;

/* Icosa is a collection of Ethereum / PulseChain smart contracts that  *
 * build upon the Hedron smart contract to provide additional functionality */

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

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

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

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

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

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

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

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

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

        _;

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

/// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values
interface IUniswapV3PoolImmutables {
    /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
    /// @return The contract address
    function factory() external view returns (address);

    /// @notice The first of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token0() external view returns (address);

    /// @notice The second of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token1() external view returns (address);

    /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6
    /// @return The fee
    function fee() external view returns (uint24);

    /// @notice The pool tick spacing
    /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive
    /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...
    /// This value is an int24 to avoid casting even though it is always positive.
    /// @return The tick spacing
    function tickSpacing() external view returns (int24);

    /// @notice The maximum amount of position liquidity that can use any tick in the range
    /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and
    /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool
    /// @return The max amount of liquidity per tick
    function maxLiquidityPerTick() external view returns (uint128);
}

/// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction
interface IUniswapV3PoolState {
    /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
    /// when accessed externally.
    /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
    /// tick The current tick of the pool, i.e. according to the last tick transition that was run.
    /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick
    /// boundary.
    /// observationIndex The index of the last oracle observation that was written,
    /// observationCardinality The current maximum number of observations stored in the pool,
    /// observationCardinalityNext The next maximum number of observations, to be updated when the observation.
    /// feeProtocol The protocol fee for both tokens of the pool.
    /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0
    /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee.
    /// unlocked Whether the pool is currently locked to reentrancy
    function slot0()
        external
        view
        returns (
            uint160 sqrtPriceX96,
            int24 tick,
            uint16 observationIndex,
            uint16 observationCardinality,
            uint16 observationCardinalityNext,
            uint8 feeProtocol,
            bool unlocked
        );

    /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool
    /// @dev This value can overflow the uint256
    function feeGrowthGlobal0X128() external view returns (uint256);

    /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool
    /// @dev This value can overflow the uint256
    function feeGrowthGlobal1X128() external view returns (uint256);

    /// @notice The amounts of token0 and token1 that are owed to the protocol
    /// @dev Protocol fees will never exceed uint128 max in either token
    function protocolFees() external view returns (uint128 token0, uint128 token1);

    /// @notice The currently in range liquidity available to the pool
    /// @dev This value has no relationship to the total liquidity across all ticks
    function liquidity() external view returns (uint128);

    /// @notice Look up information about a specific tick in the pool
    /// @param tick The tick to look up
    /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or
    /// tick upper,
    /// liquidityNet how much liquidity changes when the pool price crosses the tick,
    /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0,
    /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1,
    /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick
    /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick,
    /// secondsOutside the seconds spent on the other side of the tick from the current tick,
    /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false.
    /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0.
    /// In addition, these values are only relative and must be used only in comparison to previous snapshots for
    /// a specific position.
    function ticks(int24 tick)
        external
        view
        returns (
            uint128 liquidityGross,
            int128 liquidityNet,
            uint256 feeGrowthOutside0X128,
            uint256 feeGrowthOutside1X128,
            int56 tickCumulativeOutside,
            uint160 secondsPerLiquidityOutsideX128,
            uint32 secondsOutside,
            bool initialized
        );

    /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information
    function tickBitmap(int16 wordPosition) external view returns (uint256);

    /// @notice Returns the information about a position by the position's key
    /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper
    /// @return _liquidity The amount of liquidity in the position,
    /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke,
    /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke,
    /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke,
    /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke
    function positions(bytes32 key)
        external
        view
        returns (
            uint128 _liquidity,
            uint256 feeGrowthInside0LastX128,
            uint256 feeGrowthInside1LastX128,
            uint128 tokensOwed0,
            uint128 tokensOwed1
        );

    /// @notice Returns data about a specific observation index
    /// @param index The element of the observations array to fetch
    /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time
    /// ago, rather than at a specific index in the array.
    /// @return blockTimestamp The timestamp of the observation,
    /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp,
    /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp,
    /// Returns initialized whether the observation has been initialized and the values are safe to use
    function observations(uint256 index)
        external
        view
        returns (
            uint32 blockTimestamp,
            int56 tickCumulative,
            uint160 secondsPerLiquidityCumulativeX128,
            bool initialized
        );
}

/// @title Pool state that is not stored
/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the
/// blockchain. The functions here may have variable gas costs.
interface IUniswapV3PoolDerivedState {
    /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp
    /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing
    /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,
    /// you must call it with secondsAgos = [3600, 0].
    /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in
    /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.
    /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned
    /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp
    /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block
    /// timestamp
    function observe(uint32[] calldata secondsAgos)
        external
        view
        returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);

    /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range
    /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.
    /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first
    /// snapshot is taken and the second snapshot is taken.
    /// @param tickLower The lower tick of the range
    /// @param tickUpper The upper tick of the range
    /// @return tickCumulativeInside The snapshot of the tick accumulator for the range
    /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range
    /// @return secondsInside The snapshot of seconds per liquidity for the range
    function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)
        external
        view
        returns (
            int56 tickCumulativeInside,
            uint160 secondsPerLiquidityInsideX128,
            uint32 secondsInside
        );
}

/// @title Permissionless pool actions
/// @notice Contains pool methods that can be called by anyone
interface IUniswapV3PoolActions {
    /// @notice Sets the initial price for the pool
    /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value
    /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96
    function initialize(uint160 sqrtPriceX96) external;

    /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position
    /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback
    /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends
    /// on tickLower, tickUpper, the amount of liquidity, and the current price.
    /// @param recipient The address for which the liquidity will be created
    /// @param tickLower The lower tick of the position in which to add liquidity
    /// @param tickUpper The upper tick of the position in which to add liquidity
    /// @param amount The amount of liquidity to mint
    /// @param data Any data that should be passed through to the callback
    /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback
    /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback
    function mint(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount,
        bytes calldata data
    ) external returns (uint256 amount0, uint256 amount1);

    /// @notice Collects tokens owed to a position
    /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.
    /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or
    /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the
    /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.
    /// @param recipient The address which should receive the fees collected
    /// @param tickLower The lower tick of the position for which to collect fees
    /// @param tickUpper The upper tick of the position for which to collect fees
    /// @param amount0Requested How much token0 should be withdrawn from the fees owed
    /// @param amount1Requested How much token1 should be withdrawn from the fees owed
    /// @return amount0 The amount of fees collected in token0
    /// @return amount1 The amount of fees collected in token1
    function collect(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);

    /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position
    /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0
    /// @dev Fees must be collected separately via a call to #collect
    /// @param tickLower The lower tick of the position for which to burn liquidity
    /// @param tickUpper The upper tick of the position for which to burn liquidity
    /// @param amount How much liquidity to burn
    /// @return amount0 The amount of token0 sent to the recipient
    /// @return amount1 The amount of token1 sent to the recipient
    function burn(
        int24 tickLower,
        int24 tickUpper,
        uint128 amount
    ) external returns (uint256 amount0, uint256 amount1);

    /// @notice Swap token0 for token1, or token1 for token0
    /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback
    /// @param recipient The address to receive the output of the swap
    /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0
    /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
    /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this
    /// value after the swap. If one for zero, the price cannot be greater than this value after the swap
    /// @param data Any data to be passed through to the callback
    /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive
    /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive
    function swap(
        address recipient,
        bool zeroForOne,
        int256 amountSpecified,
        uint160 sqrtPriceLimitX96,
        bytes calldata data
    ) external returns (int256 amount0, int256 amount1);

    /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback
    /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback
    /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling
    /// with 0 amount{0,1} and sending the donation amount(s) from the callback
    /// @param recipient The address which will receive the token0 and token1 amounts
    /// @param amount0 The amount of token0 to send
    /// @param amount1 The amount of token1 to send
    /// @param data Any data to be passed through to the callback
    function flash(
        address recipient,
        uint256 amount0,
        uint256 amount1,
        bytes calldata data
    ) external;

    /// @notice Increase the maximum number of price and liquidity observations that this pool will store
    /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to
    /// the input observationCardinalityNext.
    /// @param observationCardinalityNext The desired minimum number of observations for the pool to store
    function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external;
}

/// @title Permissioned pool actions
/// @notice Contains pool methods that may only be called by the factory owner
interface IUniswapV3PoolOwnerActions {
    /// @notice Set the denominator of the protocol's % share of the fees
    /// @param feeProtocol0 new protocol fee for token0 of the pool
    /// @param feeProtocol1 new protocol fee for token1 of the pool
    function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;

    /// @notice Collect the protocol fee accrued to the pool
    /// @param recipient The address to which collected protocol fees should be sent
    /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1
    /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0
    /// @return amount0 The protocol fee collected in token0
    /// @return amount1 The protocol fee collected in token1
    function collectProtocol(
        address recipient,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);
}

/// @title Events emitted by a pool
/// @notice Contains all events emitted by the pool
interface IUniswapV3PoolEvents {
    /// @notice Emitted exactly once by a pool when #initialize is first called on the pool
    /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize
    /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96
    /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool
    event Initialize(uint160 sqrtPriceX96, int24 tick);

    /// @notice Emitted when liquidity is minted for a given position
    /// @param sender The address that minted the liquidity
    /// @param owner The owner of the position and recipient of any minted liquidity
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount The amount of liquidity minted to the position range
    /// @param amount0 How much token0 was required for the minted liquidity
    /// @param amount1 How much token1 was required for the minted liquidity
    event Mint(
        address sender,
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    /// @notice Emitted when fees are collected by the owner of a position
    /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees
    /// @param owner The owner of the position for which fees are collected
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount0 The amount of token0 fees collected
    /// @param amount1 The amount of token1 fees collected
    event Collect(
        address indexed owner,
        address recipient,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount0,
        uint128 amount1
    );

    /// @notice Emitted when a position's liquidity is removed
    /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect
    /// @param owner The owner of the position for which liquidity is removed
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount The amount of liquidity to remove
    /// @param amount0 The amount of token0 withdrawn
    /// @param amount1 The amount of token1 withdrawn
    event Burn(
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    /// @notice Emitted by the pool for any swaps between token0 and token1
    /// @param sender The address that initiated the swap call, and that received the callback
    /// @param recipient The address that received the output of the swap
    /// @param amount0 The delta of the token0 balance of the pool
    /// @param amount1 The delta of the token1 balance of the pool
    /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96
    /// @param liquidity The liquidity of the pool after the swap
    /// @param tick The log base 1.0001 of price of the pool after the swap
    event Swap(
        address indexed sender,
        address indexed recipient,
        int256 amount0,
        int256 amount1,
        uint160 sqrtPriceX96,
        uint128 liquidity,
        int24 tick
    );

    /// @notice Emitted by the pool for any flashes of token0/token1
    /// @param sender The address that initiated the swap call, and that received the callback
    /// @param recipient The address that received the tokens from flash
    /// @param amount0 The amount of token0 that was flashed
    /// @param amount1 The amount of token1 that was flashed
    /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee
    /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee
    event Flash(
        address indexed sender,
        address indexed recipient,
        uint256 amount0,
        uint256 amount1,
        uint256 paid0,
        uint256 paid1
    );

    /// @notice Emitted by the pool for increases to the number of observations that can be stored
    /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index
    /// just before a mint/swap/burn.
    /// @param observationCardinalityNextOld The previous value of the next observation cardinality
    /// @param observationCardinalityNextNew The updated value of the next observation cardinality
    event IncreaseObservationCardinalityNext(
        uint16 observationCardinalityNextOld,
        uint16 observationCardinalityNextNew
    );

    /// @notice Emitted when the protocol fee is changed by the pool
    /// @param feeProtocol0Old The previous value of the token0 protocol fee
    /// @param feeProtocol1Old The previous value of the token1 protocol fee
    /// @param feeProtocol0New The updated value of the token0 protocol fee
    /// @param feeProtocol1New The updated value of the token1 protocol fee
    event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New);

    /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner
    /// @param sender The address that collects the protocol fees
    /// @param recipient The address that receives the collected protocol fees
    /// @param amount0 The amount of token0 protocol fees that is withdrawn
    /// @param amount0 The amount of token1 protocol fees that is withdrawn
    event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1);
}

/// @title The interface for a Uniswap V3 Pool
/// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform
/// to the ERC20 specification
/// @dev The pool interface is broken up into many smaller pieces
interface IUniswapV3Pool is
    IUniswapV3PoolImmutables,
    IUniswapV3PoolState,
    IUniswapV3PoolDerivedState,
    IUniswapV3PoolActions,
    IUniswapV3PoolOwnerActions,
    IUniswapV3PoolEvents
{

}

/// @title FixedPoint96
/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)
/// @dev Used in SqrtPriceMath.sol
library FixedPoint96 {
    uint8 internal constant RESOLUTION = 96;
    uint256 internal constant Q96 = 0x1000000000000000000000000;
}

interface IHEX {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Claim(
        uint256 data0,
        uint256 data1,
        bytes20 indexed btcAddr,
        address indexed claimToAddr,
        address indexed referrerAddr
    );
    event ClaimAssist(
        uint256 data0,
        uint256 data1,
        uint256 data2,
        address indexed senderAddr
    );
    event DailyDataUpdate(uint256 data0, address indexed updaterAddr);
    event ShareRateChange(uint256 data0, uint40 indexed stakeId);
    event StakeEnd(
        uint256 data0,
        uint256 data1,
        address indexed stakerAddr,
        uint40 indexed stakeId
    );
    event StakeGoodAccounting(
        uint256 data0,
        uint256 data1,
        address indexed stakerAddr,
        uint40 indexed stakeId,
        address indexed senderAddr
    );
    event StakeStart(
        uint256 data0,
        address indexed stakerAddr,
        uint40 indexed stakeId
    );
    event Transfer(address indexed from, address indexed to, uint256 value);
    event XfLobbyEnter(
        uint256 data0,
        address indexed memberAddr,
        uint256 indexed entryId,
        address indexed referrerAddr
    );
    event XfLobbyExit(
        uint256 data0,
        address indexed memberAddr,
        uint256 indexed entryId,
        address indexed referrerAddr
    );

    fallback() external payable;

    function allocatedSupply() external view returns (uint256);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function balanceOf(address account) external view returns (uint256);

    function btcAddressClaim(
        uint256 rawSatoshis,
        bytes32[] memory proof,
        address claimToAddr,
        bytes32 pubKeyX,
        bytes32 pubKeyY,
        uint8 claimFlags,
        uint8 v,
        bytes32 r,
        bytes32 s,
        uint256 autoStakeDays,
        address referrerAddr
    ) external returns (uint256);

    function btcAddressClaims(bytes20) external view returns (bool);

    function btcAddressIsClaimable(
        bytes20 btcAddr,
        uint256 rawSatoshis,
        bytes32[] memory proof
    ) external view returns (bool);

    function btcAddressIsValid(
        bytes20 btcAddr,
        uint256 rawSatoshis,
        bytes32[] memory proof
    ) external pure returns (bool);

    function claimMessageMatchesSignature(
        address claimToAddr,
        bytes32 claimParamHash,
        bytes32 pubKeyX,
        bytes32 pubKeyY,
        uint8 claimFlags,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external pure returns (bool);

    function currentDay() external view returns (uint256);

    function dailyData(uint256)
        external
        view
        returns (
            uint72 dayPayoutTotal,
            uint72 dayStakeSharesTotal,
            uint56 dayUnclaimedSatoshisTotal
        );

    function dailyDataRange(uint256 beginDay, uint256 endDay)
        external
        view
        returns (uint256[] memory list);

    function dailyDataUpdate(uint256 beforeDay) external;

    function decimals() external view returns (uint8);

    function decreaseAllowance(address spender, uint256 subtractedValue)
        external
        returns (bool);

    function globalInfo() external view returns (uint256[13] memory);

    function globals()
        external
        view
        returns (
            uint72 lockedHeartsTotal,
            uint72 nextStakeSharesTotal,
            uint40 shareRate,
            uint72 stakePenaltyTotal,
            uint16 dailyDataCount,
            uint72 stakeSharesTotal,
            uint40 latestStakeId,
            uint128 claimStats
        );

    function increaseAllowance(address spender, uint256 addedValue)
        external
        returns (bool);

    function merkleProofIsValid(bytes32 merkleLeaf, bytes32[] memory proof)
        external
        pure
        returns (bool);

    function name() external view returns (string memory);

    function pubKeyToBtcAddress(
        bytes32 pubKeyX,
        bytes32 pubKeyY,
        uint8 claimFlags
    ) external pure returns (bytes20);

    function pubKeyToEthAddress(bytes32 pubKeyX, bytes32 pubKeyY)
        external
        pure
        returns (address);

    function stakeCount(address stakerAddr) external view returns (uint256);

    function stakeEnd(uint256 stakeIndex, uint40 stakeIdParam) external;

    function stakeGoodAccounting(
        address stakerAddr,
        uint256 stakeIndex,
        uint40 stakeIdParam
    ) external;

    function stakeLists(address, uint256)
        external
        view
        returns (
            uint40 stakeId,
            uint72 stakedHearts,
            uint72 stakeShares,
            uint16 lockedDay,
            uint16 stakedDays,
            uint16 unlockedDay,
            bool isAutoStake
        );

    function stakeStart(uint256 newStakedHearts, uint256 newStakedDays)
        external;

    function symbol() external view returns (string memory);

    function totalSupply() external view returns (uint256);

    function transfer(address recipient, uint256 amount)
        external
        returns (bool);

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    function xfLobby(uint256) external view returns (uint256);

    function xfLobbyEnter(address referrerAddr) external payable;

    function xfLobbyEntry(address memberAddr, uint256 entryId)
        external
        view
        returns (uint256 rawAmount, address referrerAddr);

    function xfLobbyExit(uint256 enterDay, uint256 count) external;

    function xfLobbyFlush() external;

    function xfLobbyMembers(uint256, address)
        external
        view
        returns (uint40 headIndex, uint40 tailIndex);

    function xfLobbyPendingDays(address memberAddr)
        external
        view
        returns (uint256[2] memory words);

    function xfLobbyRange(uint256 beginDay, uint256 endDay)
        external
        view
        returns (uint256[] memory list);
}

struct HEXGlobals {
    uint72 lockedHeartsTotal;
    uint72 nextStakeSharesTotal;
    uint40 shareRate;
    uint72 stakePenaltyTotal;
    uint16 dailyDataCount;
    uint72 stakeSharesTotal;
    uint40 latestStakeId;
    uint128 claimStats;
}

struct HEXStake {
    uint40 stakeId;
    uint72 stakedHearts;
    uint72 stakeShares;
    uint16 lockedDay;
    uint16 stakedDays;
    uint16 unlockedDay;
    bool   isAutoStake;
}

struct HEXStakeMinimal {
    uint40 stakeId;
    uint72 stakeShares;
    uint16 lockedDay;
    uint16 stakedDays;
}

struct HDRNDailyData {
    uint72 dayMintedTotal;
    uint72 dayLoanedTotal;
    uint72 dayBurntTotal;
    uint32 dayInterestRate;
    uint8  dayMintMultiplier;
}

struct HDRNShareCache {
    HEXStakeMinimal _stake;
    uint256         _mintedDays;
    uint256         _launchBonus;
    uint256         _loanStart;
    uint256         _loanedDays;
    uint256         _interestRate;
    uint256         _paymentsMade;
    bool            _isLoaned;
}

struct StakeStore {
    uint64  stakeStart;
    uint64  capitalAdded;
    uint120 stakePoints;
    bool    isActive;
    uint80  payoutPreCapitalAddIcsa;
    uint80  payoutPreCapitalAddHdrn;
    uint80  stakeAmount;
    uint16  minStakeLength;
}

struct StakeCache {
    uint256 _stakeStart;
    uint256 _capitalAdded;
    uint256 _stakePoints;
    bool    _isActive;
    uint256 _payoutPreCapitalAddIcsa;
    uint256 _payoutPreCapitalAddHdrn;
    uint256 _stakeAmount;
    uint256 _minStakeLength;
}

interface IHedron {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Claim(uint256 data, address indexed claimant, uint40 indexed stakeId);
    event LoanEnd(
        uint256 data,
        address indexed borrower,
        uint40 indexed stakeId
    );
    event LoanLiquidateBid(
        uint256 data,
        address indexed bidder,
        uint40 indexed stakeId,
        uint40 indexed liquidationId
    );
    event LoanLiquidateExit(
        uint256 data,
        address indexed liquidator,
        uint40 indexed stakeId,
        uint40 indexed liquidationId
    );
    event LoanLiquidateStart(
        uint256 data,
        address indexed borrower,
        uint40 indexed stakeId,
        uint40 indexed liquidationId
    );
    event LoanPayment(
        uint256 data,
        address indexed borrower,
        uint40 indexed stakeId
    );
    event LoanStart(
        uint256 data,
        address indexed borrower,
        uint40 indexed stakeId
    );
    event Mint(uint256 data, address indexed minter, uint40 indexed stakeId);
    event Transfer(address indexed from, address indexed to, uint256 value);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function balanceOf(address account) external view returns (uint256);

    function calcLoanPayment(
        address borrower,
        uint256 hsiIndex,
        address hsiAddress
    ) external view returns (uint256, uint256);

    function calcLoanPayoff(
        address borrower,
        uint256 hsiIndex,
        address hsiAddress
    ) external view returns (uint256, uint256);

    function claimInstanced(
        uint256 hsiIndex,
        address hsiAddress,
        address hsiStarterAddress
    ) external;

    function claimNative(uint256 stakeIndex, uint40 stakeId)
        external
        returns (uint256);

    function currentDay() external view returns (uint256);

    function dailyDataList(uint256)
        external
        view
        returns (
            uint72 dayMintedTotal,
            uint72 dayLoanedTotal,
            uint72 dayBurntTotal,
            uint32 dayInterestRate,
            uint8 dayMintMultiplier
        );

    function decimals() external view returns (uint8);

    function decreaseAllowance(address spender, uint256 subtractedValue)
        external
        returns (bool);

    function hsim() external view returns (address);

    function increaseAllowance(address spender, uint256 addedValue)
        external
        returns (bool);

    function liquidationList(uint256)
        external
        view
        returns (
            uint256 liquidationStart,
            address hsiAddress,
            uint96 bidAmount,
            address liquidator,
            uint88 endOffset,
            bool isActive
        );

    function loanInstanced(uint256 hsiIndex, address hsiAddress)
        external
        returns (uint256);

    function loanLiquidate(
        address owner,
        uint256 hsiIndex,
        address hsiAddress
    ) external returns (uint256);

    function loanLiquidateBid(uint256 liquidationId, uint256 liquidationBid)
        external
        returns (uint256);

    function loanLiquidateExit(uint256 hsiIndex, uint256 liquidationId)
        external
        returns (address);

    function loanPayment(uint256 hsiIndex, address hsiAddress)
        external
        returns (uint256);

    function loanPayoff(uint256 hsiIndex, address hsiAddress)
        external
        returns (uint256);

    function loanedSupply() external view returns (uint256);

    function mintInstanced(uint256 hsiIndex, address hsiAddress)
        external
        returns (uint256);

    function mintNative(uint256 stakeIndex, uint40 stakeId)
        external
        returns (uint256);

    function name() external view returns (string memory);

    function proofOfBenevolence(uint256 amount) external;

    function shareList(uint256)
        external
        view
        returns (
            HEXStakeMinimal memory stake,
            uint16 mintedDays,
            uint8 launchBonus,
            uint16 loanStart,
            uint16 loanedDays,
            uint32 interestRate,
            uint8 paymentsMade,
            bool isLoaned
        );

    function symbol() external view returns (string memory);

    function totalSupply() external view returns (uint256);

    function transfer(address recipient, uint256 amount)
        external
        returns (bool);

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);
}

interface IHEXStakeInstance {
    function create(uint256 stakeLength) external;

    function destroy() external;

    function goodAccounting() external;

    function initialize(address hexAddress) external;

    function share()
        external
        view
        returns (
            HEXStakeMinimal memory stake,
            uint16 mintedDays,
            uint8 launchBonus,
            uint16 loanStart,
            uint16 loanedDays,
            uint32 interestRate,
            uint8 paymentsMade,
            bool isLoaned
        );

    function stakeDataFetch() external view returns (HEXStake memory);

    function update(HDRNShareCache memory _share) external;
}

library LibPart {
    bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)");

    struct Part {
        address payable account;
        uint96 value;
    }

    function hash(Part memory part) internal pure returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, part.account, part.value));
    }
}

abstract contract AbstractRoyalties {
    mapping (uint256 => LibPart.Part[]) internal royalties;

    function _saveRoyalties(uint256 id, LibPart.Part[] memory _royalties) internal {
        uint256 totalValue;
        for (uint i = 0; i < _royalties.length; i++) {
            require(_royalties[i].account != address(0x0), "Recipient should be present");
            require(_royalties[i].value != 0, "Royalty value should be positive");
            totalValue += _royalties[i].value;
            royalties[id].push(_royalties[i]);
        }
        require(totalValue < 10000, "Royalty total value should be < 10000");
        _onRoyaltiesSet(id, _royalties);
    }

    function _updateAccount(uint256 _id, address _from, address _to) internal {
        uint length = royalties[_id].length;
        for(uint i = 0; i < length; i++) {
            if (royalties[_id][i].account == _from) {
                royalties[_id][i].account = payable(address(uint160(_to)));
            }
        }
    }

    function _onRoyaltiesSet(uint256 id, LibPart.Part[] memory _royalties) virtual internal;
}

interface RoyaltiesV2 {
    event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);

    function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory);
}

contract RoyaltiesV2Impl is AbstractRoyalties, RoyaltiesV2 {

    function getRaribleV2Royalties(uint256 id) override external view returns (LibPart.Part[] memory) {
        return royalties[id];
    }

    function _onRoyaltiesSet(uint256 id, LibPart.Part[] memory _royalties) override internal {
        emit RoyaltiesSet(id, _royalties);
    }
}

interface IHEXStakeInstanceManager {
    event Approval(
        address indexed owner,
        address indexed approved,
        uint256 indexed tokenId
    );
    event ApprovalForAll(
        address indexed owner,
        address indexed operator,
        bool approved
    );
    event HSIDetokenize(
        uint256 timestamp,
        uint256 indexed hsiTokenId,
        address indexed hsiAddress,
        address indexed staker
    );
    event HSIEnd(
        uint256 timestamp,
        address indexed hsiAddress,
        address indexed staker
    );
    event HSIStart(
        uint256 timestamp,
        address indexed hsiAddress,
        address indexed staker
    );
    event HSITokenize(
        uint256 timestamp,
        uint256 indexed hsiTokenId,
        address indexed hsiAddress,
        address indexed staker
    );
    event HSITransfer(
        uint256 timestamp,
        address indexed hsiAddress,
        address indexed oldStaker,
        address indexed newStaker
    );
    event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);
    event Transfer(
        address indexed from,
        address indexed to,
        uint256 indexed tokenId
    );

    function approve(address to, uint256 tokenId) external;

    function balanceOf(address owner) external view returns (uint256);

    function getApproved(uint256 tokenId) external view returns (address);

    function getRaribleV2Royalties(uint256 id)
        external
        view
        returns (LibPart.Part[] memory);

    function hexStakeDetokenize(uint256 tokenId) external returns (address);

    function hexStakeEnd(uint256 hsiIndex, address hsiAddress)
        external
        returns (uint256);

    function hexStakeStart(uint256 amount, uint256 length)
        external
        returns (address);

    function hexStakeTokenize(uint256 hsiIndex, address hsiAddress)
        external
        returns (uint256);

    function hsiCount(address user) external view returns (uint256);

    function hsiLists(address, uint256) external view returns (address);

    function hsiToken(uint256) external view returns (address);

    function hsiTransfer(
        address currentHolder,
        uint256 hsiIndex,
        address hsiAddress,
        address newHolder
    ) external;

    function hsiUpdate(
        address holder,
        uint256 hsiIndex,
        address hsiAddress,
        HDRNShareCache memory share
    ) external;

    function isApprovedForAll(address owner, address operator)
        external
        view
        returns (bool);

    function name() external view returns (string memory);

    function owner() external pure returns (address);

    function ownerOf(uint256 tokenId) external view returns (address);

    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) external;

    function setApprovalForAll(address operator, bool approved) external;

    function stakeCount(address user) external view returns (uint256);

    function stakeLists(address user, uint256 hsiIndex)
        external
        view
        returns (HEXStake memory);

    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    function symbol() external view returns (string memory);

    function tokenByIndex(uint256 index) external view returns (uint256);

    function tokenOfOwnerByIndex(address owner, uint256 index)
        external
        view
        returns (uint256);

    function tokenURI(uint256 tokenId) external view returns (string memory);

    function totalSupply() external view returns (uint256);

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @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.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

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

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

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

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

library LibRoyaltiesV2 {
    /*
     * bytes4(keccak256('getRaribleV2Royalties(uint256)')) == 0xcad96cca
     */
    bytes4 constant _INTERFACE_ID_ROYALTIES = 0xcad96cca;
}

contract WeAreAllTheSA is ERC721, ERC721Enumerable, RoyaltiesV2Impl {

    using Counters for Counters.Counter;

    address private constant _hdrnFlowAddress = address(0xF447BE386164dADfB5d1e7622613f289F17024D8);
    bytes4  private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
    uint96  private constant _waatsaRoyaltyBasis = 369; // Rarible V2 royalty basis
    string  private constant _hostname = "https://api.icosa.pro/";
    string  private constant _endpoint = "/waatsa/";

    Counters.Counter private _tokenIds;
    address          private _creator;

    constructor() ERC721("We Are All the SA", "WAATSA")
    {
        /* _creator is not an admin key. It is set at contsruction to be a link
           to the parent contract. In this case Hedron */
        _creator = msg.sender;
    }

    function _baseURI(
    )
        internal
        view
        virtual
        override
        returns (string memory)
    {
        string memory chainid = Strings.toString(block.chainid);
        return string(abi.encodePacked(_hostname, chainid, _endpoint));
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    )
        internal
        override(ERC721, ERC721Enumerable) 
    {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    // Internal NFT Marketplace Glue

    /** @dev Sets the Rarible V2 royalties on a specific token
     *  @param tokenId Unique ID of the HSI NFT token.
     */
    function _setRoyalties(
        uint256 tokenId
    )
        internal
    {
        LibPart.Part[] memory _royalties = new LibPart.Part[](1);
        _royalties[0].value = _waatsaRoyaltyBasis;
        _royalties[0].account = payable(_hdrnFlowAddress);
        _saveRoyalties(tokenId, _royalties);
    }

    function mintStakeNft (address staker)
        external
        returns (uint256)
    {
        require(msg.sender == _creator,
            "WAATSA: NOT ICSA");

        _tokenIds.increment();
        uint256 newTokenId = _tokenIds.current();

        _setRoyalties(newTokenId);

        _mint(staker, newTokenId);
        return newTokenId;
    }

    function burnStakeNft (uint256 tokenId)
        external
    {
        require(msg.sender == _creator,
            "WAATSA: NOT ICSA");

        _burn(tokenId);
    }

    // External NFT Marketplace Glue

    /**
     * @dev Implements ERC2981 royalty functionality. We just read the royalty data from
     *      the Rarible V2 implementation. 
     * @param tokenId Unique ID of the HSI NFT token.
     * @param salePrice Price the HSI NFT token was sold for.
     * @return receiver address to send the royalties to as well as the royalty amount.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    )
        external
        view
        returns (address receiver, uint256 royaltyAmount)
    {
        LibPart.Part[] memory _royalties = royalties[tokenId];
        
        if (_royalties.length > 0) {
            return (_royalties[0].account, (salePrice * _royalties[0].value) / 10000);
        }

        return (address(0), 0);
    }

    /**
     * @dev returns _hdrnFlowAddress, needed for some NFT marketplaces. This is not
     *       an admin key.
     * @return _hdrnFlowAddress
     */
    function owner(
    )
        external
        pure
        returns (address) 
    {
        return _hdrnFlowAddress;
    }

    /**
     * @dev Adds Rarible V2 and ERC2981 interface support.
     * @param interfaceId Unique contract interface identifier.
     * @return True if the interface is supported, false if not.
     */
    function supportsInterface(
        bytes4 interfaceId
    )
        public
        view
        virtual
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        if (interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) {
            return true;
        }

        if (interfaceId == _INTERFACE_ID_ERC2981) {
            return true;
        }

        return super.supportsInterface(interfaceId);
    }

}

/// @title Math library for computing sqrt prices from ticks and vice versa
/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports
/// prices between 2**-128 and 2**128
library TickMath {
    /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128
    int24 internal constant MIN_TICK = -887272;
    /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128
    int24 internal constant MAX_TICK = -MIN_TICK;

    /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)
    uint160 internal constant MIN_SQRT_RATIO = 4295128739;
    /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)
    uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;

    /// @notice Calculates sqrt(1.0001^tick) * 2^96
    /// @dev Throws if |tick| > max tick
    /// @param tick The input tick for the above formula
    /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)
    /// at the given tick
    function getSqrtRatioAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) {
        uint256 absTick = tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick));
        require(absTick <= uint256(int256(MAX_TICK)), 'T');

        uint256 ratio = absTick & 0x1 != 0 ? 0xfffcb933bd6fad37aa2d162d1a594001 : 0x100000000000000000000000000000000;
        if (absTick & 0x2 != 0) ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128;
        if (absTick & 0x4 != 0) ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;
        if (absTick & 0x8 != 0) ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;
        if (absTick & 0x10 != 0) ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128;
        if (absTick & 0x20 != 0) ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128;
        if (absTick & 0x40 != 0) ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128;
        if (absTick & 0x80 != 0) ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;
        if (absTick & 0x100 != 0) ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;
        if (absTick & 0x200 != 0) ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128;
        if (absTick & 0x400 != 0) ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;
        if (absTick & 0x800 != 0) ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;
        if (absTick & 0x1000 != 0) ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;
        if (absTick & 0x2000 != 0) ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;
        if (absTick & 0x4000 != 0) ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;
        if (absTick & 0x8000 != 0) ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128;
        if (absTick & 0x10000 != 0) ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;
        if (absTick & 0x20000 != 0) ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128;
        if (absTick & 0x40000 != 0) ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128;
        if (absTick & 0x80000 != 0) ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128;

        if (tick > 0) ratio = type(uint256).max / ratio;

        // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.
        // we then downcast because we know the result always fits within 160 bits due to our tick input constraint
        // we round up in the division so getTickAtSqrtRatio of the output price is always consistent
        sqrtPriceX96 = uint160((ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1));
    }

    /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio
    /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may
    /// ever return.
    /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96
    /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio
    function getTickAtSqrtRatio(uint160 sqrtPriceX96) internal pure returns (int24 tick) {
        // second inequality must be < because the price can never reach the price at the max tick
        require(sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO, 'R');
        uint256 ratio = uint256(sqrtPriceX96) << 32;

        uint256 r = ratio;
        uint256 msb = 0;

        assembly {
            let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(5, gt(r, 0xFFFFFFFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(4, gt(r, 0xFFFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(3, gt(r, 0xFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(2, gt(r, 0xF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(1, gt(r, 0x3))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := gt(r, 0x1)
            msb := or(msb, f)
        }

        if (msb >= 128) r = ratio >> (msb - 127);
        else r = ratio << (127 - msb);

        int256 log_2 = (int256(msb) - 128) << 64;

        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(63, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(62, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(61, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(60, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(59, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(58, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(57, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(56, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(55, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(54, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(53, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(52, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(51, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(50, f))
        }

        int256 log_sqrt10001 = log_2 * 255738958999603826347141; // 128.128 number

        int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128);
        int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128);

        tick = tickLow == tickHi ? tickLow : getSqrtRatioAtTick(tickHi) <= sqrtPriceX96 ? tickHi : tickLow;
    }
}

/// @title Contains 512-bit math functions
/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision
/// @dev Handles "phantom overflow" i.e., allows multiplication and division where an intermediate value overflows 256 bits
library FullMath {
    /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
    /// @param a The multiplicand
    /// @param b The multiplier
    /// @param denominator The divisor
    /// @return result The 256-bit result
    /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv
    function mulDiv(
        uint256 a,
        uint256 b,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
        // 512-bit multiply [prod1 prod0] = a * b
        // Compute the product mod 2**256 and mod 2**256 - 1
        // then use the Chinese Remainder Theorem to reconstruct
        // the 512 bit result. The result is stored in two 256
        // variables such that product = prod1 * 2**256 + prod0
        uint256 prod0; // Least significant 256 bits of the product
        uint256 prod1; // Most significant 256 bits of the product
        assembly {
            let mm := mulmod(a, b, not(0))
            prod0 := mul(a, b)
            prod1 := sub(sub(mm, prod0), lt(mm, prod0))
        }

        // Handle non-overflow cases, 256 by 256 division
        if (prod1 == 0) {
            require(denominator > 0);
            assembly {
                result := div(prod0, denominator)
            }
            return result;
        }

        // Make sure the result is less than 2**256.
        // Also prevents denominator == 0
        require(denominator > prod1);

        ///////////////////////////////////////////////
        // 512 by 256 division.
        ///////////////////////////////////////////////

        // Make division exact by subtracting the remainder from [prod1 prod0]
        // Compute remainder using mulmod
        uint256 remainder;
        assembly {
            remainder := mulmod(a, b, denominator)
        }
        // Subtract 256 bit number from 512 bit number
        assembly {
            prod1 := sub(prod1, gt(remainder, prod0))
            prod0 := sub(prod0, remainder)
        }

        // Factor powers of two out of denominator
        // Compute largest power of two divisor of denominator.
        // Always >= 1.
        uint256 twos = uint256(-int256(denominator)) & denominator;
        // Divide denominator by power of two
        assembly {
            denominator := div(denominator, twos)
        }

        // Divide [prod1 prod0] by the factors of two
        assembly {
            prod0 := div(prod0, twos)
        }
        // Shift in bits from prod1 into prod0. For this we need
        // to flip `twos` such that it is 2**256 / twos.
        // If twos is zero, then it becomes one
        assembly {
            twos := add(div(sub(0, twos), twos), 1)
        }
        prod0 |= prod1 * twos;

        // Invert denominator mod 2**256
        // Now that denominator is an odd number, it has an inverse
        // modulo 2**256 such that denominator * inv = 1 mod 2**256.
        // Compute the inverse by starting with a seed that is correct
        // correct for four bits. That is, denominator * inv = 1 mod 2**4
        uint256 inv = (3 * denominator) ^ 2;
        // Now use Newton-Raphson iteration to improve the precision.
        // Thanks to Hensel's lifting lemma, this also works in modular
        // arithmetic, doubling the correct bits in each step.
        inv *= 2 - denominator * inv; // inverse mod 2**8
        inv *= 2 - denominator * inv; // inverse mod 2**16
        inv *= 2 - denominator * inv; // inverse mod 2**32
        inv *= 2 - denominator * inv; // inverse mod 2**64
        inv *= 2 - denominator * inv; // inverse mod 2**128
        inv *= 2 - denominator * inv; // inverse mod 2**256

        // Because the division is now exact we can divide by multiplying
        // with the modular inverse of denominator. This will give us the
        // correct result modulo 2**256. Since the precoditions guarantee
        // that the outcome is less than 2**256, this is the final result.
        // We don't need to compute the high bits of the result and prod1
        // is no longer required.
        result = prod0 * inv;
        return result;
        }
    }

    /// @notice Calculates ceil(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
    /// @param a The multiplicand
    /// @param b The multiplier
    /// @param denominator The divisor
    /// @return result The 256-bit result
    function mulDivRoundingUp(
        uint256 a,
        uint256 b,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
        result = mulDiv(a, b, denominator);
        if (mulmod(a, b, denominator) > 0) {
            require(result < type(uint256).max);
            result++;
        }
        }
    }
}

contract Icosa is ERC20, ReentrancyGuard {

    IHEX    private _hx;
    IHedron private _hdrn;
    IHEXStakeInstanceManager private _hsim;

    // tunables
    uint8   private constant _stakeTypeHDRN         = 0;
    uint8   private constant _stakeTypeICSA         = 1;
    uint8   private constant _stakeTypeNFT          = 2;
    uint256 private constant _decimalResolution     = 1e18;
    uint16  private constant _icsaIntitialSeedDays  = 360;
    uint16  private constant _minStakeLengthDefault = 30;
    uint16  private constant _minStakeLengthSquid   = 90;
    uint16  private constant _minStakeLengthDolphin = 180;
    uint16  private constant _minStakeLengthShark   = 270;
    uint16  private constant _minStakeLengthWhale   = 360;
    uint8   private constant _stakeBonusDefault     = 0;
    uint8   private constant _stakeBonusSquid       = 5;
    uint8   private constant _stakeBonusDolphin     = 10;
    uint8   private constant _stakeBonusShark       = 15;
    uint8   private constant _stakeBonusWhale       = 20;
    uint8   private constant _twapInterval          = 15;
    uint8   private constant _waatsaEventLength     = 14;

    // address constants
    address         private constant _wethAddress     = address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    address         private constant _usdcAddress     = address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
    address         private constant _hexAddress      = address(0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39);
    address         private constant _hdrnAddress     = address(0x3819f64f282bf135d62168C1e513280dAF905e06);
    address         private constant _maxiAddress     = address(0x0d86EB9f43C57f6FF3BC9E23D8F9d82503f0e84b);
    address payable private constant _hdrnFlowAddress = payable(address(0xF447BE386164dADfB5d1e7622613f289F17024D8));

    // We Are All the SA
    WeAreAllTheSA               private _waatsa;
    mapping(address => address) private _uniswapPools;
    address                     public  waatsa;

    // informational
    uint256 public launchDay;
    uint256 public currentDay;

    // seed liquidity spread out over multiple days
    mapping(uint256 => uint256) public hdrnSeedLiquidity;
    mapping(uint256 => uint256) public icsaSeedLiquidity;

    // HDRN Staking
    mapping(uint256 => uint256)    public hdrnPoolPoints;
    mapping(uint256 => uint256)    public hdrnPoolPayout;
    mapping(address => StakeStore) public hdrnStakes;
    uint256                        public hdrnPoolPointsRemoved;
    uint256                        public hdrnPoolIcsaCollected;
    
    // ICSA Staking
    mapping(uint256 => uint256)    public icsaPoolPoints;
    mapping(uint256 => uint256)    public icsaPoolPayoutIcsa;
    mapping(uint256 => uint256)    public icsaPoolPayoutHdrn;
    mapping(address => StakeStore) public icsaStakes;
    uint256                        public icsaPoolPointsRemoved;
    uint256                        public icsaPoolIcsaCollected;
    uint256                        public icsaPoolHdrnCollected;
    uint256                        public icsaStakedSupply;
    
    // NFT Staking
    mapping(uint256 => uint256)    public nftPoolPoints;
    mapping(uint256 => uint256)    public nftPoolPayout;
    mapping(uint256 => StakeStore) public nftStakes;
    uint256                        public nftPoolPointsRemoved;
    uint256                        public nftPoolIcsaCollected;

    constructor()
        ERC20("Icosa", "ICSA")
    {
        _hx   = IHEX(payable(_hexAddress));
        _hdrn = IHedron(_hdrnAddress);
        _hsim = IHEXStakeInstanceManager(_hdrn.hsim());

        // get total amount of burnt HDRN
        launchDay = currentDay = _hdrn.currentDay();
        uint256 hdrnBurntTotal;
        for (uint256 i = 0; i <= currentDay; i++) {
            HDRNDailyData memory hdrn = _hdrnDailyDataLoad(i);
            hdrnBurntTotal += hdrn.dayBurntTotal;
        }

        // calculate and seed intitial ICSA liquidity
        HEXGlobals memory hx = _hexGlobalsLoad();
        uint256 icsaInitialSeedTotal = hdrnBurntTotal / hx.shareRate;
        uint256 seedEnd = currentDay + _icsaIntitialSeedDays + 1;
        for (uint256 i = currentDay + 1; i < seedEnd; i++) {
            icsaSeedLiquidity[i] = icsaInitialSeedTotal / _icsaIntitialSeedDays;
        }

        // set up proof of benevolence
        _hdrn.approve(_hdrnAddress, type(uint256).max);

        // initialize We Are All the SA
        waatsa = address(new WeAreAllTheSA());
        _waatsa = WeAreAllTheSA(waatsa);

        // fill uniswap mappings
        _uniswapPools[_wethAddress] = address(0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640); // WETH/USDC V3 0.05%
        _uniswapPools[_hexAddress]  = address(0x69D91B94f0AaF8e8A2586909fA77A5c2c89818d5); // HEX/USDC  V3 0.3%
        _uniswapPools[_hdrnAddress] = address(0xE859041c9C6D70177f83DE991B9d757E13CEA26E); // HDRN/USDC V3 1.0%
        _uniswapPools[_maxiAddress] = address(0xF5595d56ccB6Cb87a463C558cAD04f49Faa61149); // MAXI/USDC V3 1.0%
    }

    function decimals()
        public
        view
        virtual
        override
        returns (uint8) 
    {
        return 9;
    }

     event HSIBuyBack(
        uint256         price,
        address indexed seller,
        uint40  indexed stakeId
    );

    event HDRNStakeStart(
        uint256         data,
        address indexed staker
    );

    event HDRNStakeAddCapital(
        uint256         data,
        address indexed staker
    );

    event HDRNStakeEnd(
        uint256         data,
        address indexed staker
    );

    event HDRNStakingStats (
        uint256         data,
        uint256         payout,
        uint256 indexed stakeDay
    );

    event ICSAStakeStart(
        uint256         data,
        address indexed staker
    );

    event ICSAStakeAddCapital(
        uint256         data,
        address indexed staker
    );

    event ICSAStakeEnd(
        uint256         data0,
        uint256         data1,
        address indexed staker
    );

    event ICSAStakingStats (
        uint256         data,
        uint256         payoutIcsa,
        uint256         payoutHdrn,
        uint256 indexed stakeDay
    );

    event NFTStakeStart(
        uint256         data,
        address indexed staker,
        uint96  indexed nftId,
        address indexed tokenAddress
    );

    event NFTStakeEnd(
        uint256         data,
        address indexed staker,
        uint96  indexed nftId
    );

    event NFTStakingStats (
        uint256         data,
        uint256         payout,
        uint256 indexed stakeDay
    );

    /**
     * @dev Loads HEX global values from the HEX contract into a "Globals" object.
     * @return "HEXGlobals" object containing the global values returned by the HEX contract.
     */
    function _hexGlobalsLoad()
        internal
        view
        returns (HEXGlobals memory)
    {
        uint72  lockedHeartsTotal;
        uint72  nextStakeSharesTotal;
        uint40  shareRate;
        uint72  stakePenaltyTotal;
        uint16  dailyDataCount;
        uint72  stakeSharesTotal;
        uint40  latestStakeId;
        uint128 claimStats;

        (lockedHeartsTotal,
         nextStakeSharesTotal,
         shareRate,
         stakePenaltyTotal,
         dailyDataCount,
         stakeSharesTotal,
         latestStakeId,
         claimStats) = _hx.globals();

        return HEXGlobals(
            lockedHeartsTotal,
            nextStakeSharesTotal,
            shareRate,
            stakePenaltyTotal,
            dailyDataCount,
            stakeSharesTotal,
            latestStakeId,
            claimStats
        );
    }

    /**
     * @dev Loads Hedron daily values from the Hedron contract into a "HDRNDailyData" object.
     * @param hdrnDay The Hedron day to retrieve daily data for.
     * @return "HDRNDailyData" object containing the daily values returned by the Hedron contract.
     */
    function _hdrnDailyDataLoad(uint256 hdrnDay)
        internal
        view
        returns (HDRNDailyData memory)
    {
        uint72 dayMintedTotal;
        uint72 dayLoanedTotal;
        uint72 dayBurntTotal;
        uint32 dayInterestRate;
        uint8  dayMintMultiplier;

        (dayMintedTotal,
         dayLoanedTotal,
         dayBurntTotal,
         dayInterestRate,
         dayMintMultiplier
         ) = _hdrn.dailyDataList(hdrnDay);

        return HDRNDailyData(
            dayMintedTotal,
            dayLoanedTotal,
            dayBurntTotal,
            dayInterestRate,
            dayMintMultiplier
        );
    }

    /**
     * @dev Loads share data from a HEX stake instance (HSI) into a "HDRNShareCache" object.
     * @param hsi The HSI to load share data from.
     * @return "HDRNShareCache" object containing the share data of the HSI.
     */
    function _hsiLoad(
        IHEXStakeInstance hsi
    ) 
        internal
        view
        returns (HDRNShareCache memory)
    {
        HEXStakeMinimal memory stake;

        uint16 mintedDays;
        uint8  launchBonus;
        uint16 loanStart;
        uint16 loanedDays;
        uint32 interestRate;
        uint8  paymentsMade;
        bool   isLoaned;

        (stake,
         mintedDays,
         launchBonus,
         loanStart,
         loanedDays,
         interestRate,
         paymentsMade,
         isLoaned) = hsi.share();

        return HDRNShareCache(
            stake,
            mintedDays,
            launchBonus,
            loanStart,
            loanedDays,
            interestRate,
            paymentsMade,
            isLoaned
        );
    }

    /**
     * @dev Calculates the minimum stake length (in days) based on staker class.
     * @param stakerClass Number representing a stakes percentage of total supply
     * @return Calculated minimum stake length (in days).
     */
    function _calcMinStakeLength(
        uint256 stakerClass
    )
        internal
        pure
        returns (uint256)
    {
        uint256 minStakeLength = _minStakeLengthDefault;

        if (stakerClass >= (_decimalResolution / 100)) {
            minStakeLength = _minStakeLengthWhale;
        } else if (stakerClass >= (_decimalResolution / 1000)) {
            minStakeLength = _minStakeLengthShark;
        } else if (stakerClass >= (_decimalResolution / 10000)) {
            minStakeLength = _minStakeLengthDolphin;
        } else if (stakerClass >= (_decimalResolution / 100000)) {
            minStakeLength = _minStakeLengthSquid;
        }

        return minStakeLength;
    }

    /**
     * @dev Calculates the end stake bonus based on staker class (in days) and base payout.
     * @param stakerClass Number representing a stakes percentage of total supply
     * @param payout Base payout of the stake.
     * @return Amount of bonus tokens
     */
    function _calcStakeBonus(
        uint256 stakerClass,
        uint256 payout
    )
        internal
        pure
        returns (uint256)
    {
        uint256 bonus = payout;

        if (stakerClass >= (_decimalResolution / 100)) {
            bonus = (payout * (_stakeBonusWhale + _decimalResolution)) / _decimalResolution;
        } else if (stakerClass >= (_decimalResolution / 1000)) {
            bonus = (payout * (_stakeBonusShark + _decimalResolution)) / _decimalResolution;
        } else if (stakerClass >= (_decimalResolution / 10000)) {
            bonus = (payout * (_stakeBonusDolphin + _decimalResolution)) / _decimalResolution;
        } else if (stakerClass >= (_decimalResolution / 100000)) {
            bonus = (payout * (_stakeBonusSquid + _decimalResolution)) / _decimalResolution;
        }

        return (bonus - payout);
    }

    /**
     * @dev Calculates the end stake penalty based on time served.
     * @param minStakeDays Minimum stake length of the stake.
     * @param servedDays Number of days actually served.
     * @param amount Amount of tokens to caculate the penalty against.
     * @return The penalized payout and the penalty as separate values.
     */
    function _calcStakePenalty (
        uint256 minStakeDays,
        uint256 servedDays,
        uint256 amount
    )
        internal
        pure
        returns (uint256, uint256)
    {
        uint256 payout;
        uint256 penalty;

        if (servedDays > 0) {
            uint256 servedPercentage = (minStakeDays * _decimalResolution) / servedDays;
            payout = (amount * _decimalResolution) / servedPercentage;
            penalty = (amount - payout);
        }
        else {
            payout = 0;
            penalty = amount;
        }

        return (payout, penalty); 
    }

    /**
     * @dev Adds a new stake to the stake mappings.
     * @param stakeType Type of stake to add.
     * @param stakePoints Amount of points the stake has been allocated.
     * @param stakeAmount Amount of tokens staked.
     * @param tokenId Token ID of the stake NFT (WAATSA only).
     * @param staker Address of the staker (HDRN / ICSA stakes only).
     * @param minStakeLength Minimum length the stake must serve without penalties.
     */
    function _stakeAdd(
        uint8   stakeType,
        uint256 stakePoints,
        uint256 stakeAmount,
        uint256 tokenId,
        address staker,
        uint256 minStakeLength
    )
        internal
    {
        if (stakeType == _stakeTypeHDRN) {
            hdrnStakes[staker] =
                StakeStore(
                    uint64(currentDay),
                    uint64(currentDay),
                    uint120(stakePoints),
                    true,
                    uint80(0),
                    uint80(0),
                    uint80(stakeAmount),
                    uint16(minStakeLength)
                );
        } else if (stakeType == _stakeTypeICSA) {
            icsaStakes[staker] =
                StakeStore(
                    uint64(currentDay),
                    uint64(currentDay),
                    uint120(stakePoints),
                    true,
                    uint80(0),
                    uint80(0),
                    uint80(stakeAmount),
                    uint16(minStakeLength)
                );
        } else if (stakeType == _stakeTypeNFT) {
            nftStakes[tokenId] =
                StakeStore(
                    uint64(currentDay),
                    uint64(currentDay),
                    uint120(stakePoints),
                    true,
                    uint80(0),
                    uint80(0),
                    uint80(stakeAmount),
                    uint16(minStakeLength)
                );
        } else {
            revert();
        }
    }

    /**
     * @dev Loads values from a "StakeStore" object into a "StakeCache" object.
     * @param stakeStore "StakeStore" object to be loaded.
     * @param stake "StakeCache" object to be populated with storage data.
     */
    function _stakeLoad(
        StakeStore storage stakeStore,
        StakeCache memory  stake
    )
        internal
        view
    {
        stake._stakeStart              = stakeStore.stakeStart;
        stake._capitalAdded            = stakeStore.capitalAdded;
        stake._stakePoints             = stakeStore.stakePoints;
        stake._isActive                = stakeStore.isActive;
        stake._payoutPreCapitalAddIcsa = stakeStore.payoutPreCapitalAddIcsa;
        stake._payoutPreCapitalAddHdrn = stakeStore.payoutPreCapitalAddHdrn;
        stake._stakeAmount             = stakeStore.stakeAmount;
        stake._minStakeLength          = stakeStore.minStakeLength;
    }

    /**
     * @dev Updates a "StakeStore" object with values stored in a "StakeCache" object.
     * @param stakeStore "StakeStore" object to be updated.
     * @param stake "StakeCache" object with updated values.
     */
    function _stakeUpdate(
        StakeStore storage stakeStore,
        StakeCache memory  stake
    )
        internal
    {
        stakeStore.stakeStart              = uint64 (stake._stakeStart);
        stakeStore.capitalAdded            = uint64 (stake._capitalAdded);
        stakeStore.stakePoints             = uint120(stake._stakePoints);
        stakeStore.isActive                = stake._isActive;
        stakeStore.payoutPreCapitalAddIcsa = uint80 (stake._payoutPreCapitalAddIcsa);
        stakeStore.payoutPreCapitalAddHdrn = uint80 (stake._payoutPreCapitalAddHdrn);
        stakeStore.stakeAmount             = uint80 (stake._stakeAmount);
        stakeStore.minStakeLength          = uint16 (stake._minStakeLength);
    }

    /**
     * @dev Updates all stake values which must wait for the follwing day to be
     *      properly accounted for. Primarily keeps track of payout per point
     *      and stake points per day.
     */
    function _stakeDailyUpdate ()
        internal
    {
        // Most of the magic happens in this function
        
        uint256 hdrnDay = _hdrn.currentDay();

        if (currentDay < hdrnDay) {
            uint256 daysPast = hdrnDay - currentDay;
            
            for (uint256 i = 0; i < daysPast; i++) {
                HEXGlobals    memory hx   = _hexGlobalsLoad();
                HDRNDailyData memory hdrn = _hdrnDailyDataLoad(currentDay);

                uint256 newPoolPoints;

                // HDRN Staking
                uint256 newHdrnPoolPayout;
                newPoolPoints = (hdrnPoolPoints[currentDay + 1] + hdrnPoolPoints[currentDay]) - hdrnPoolPointsRemoved;

                // if there are stakes in the pool, else carry the previous day forward.
                if (newPoolPoints > 0) {
                    // calculate next day's payout per point
                    newHdrnPoolPayout = ((hdrn.dayBurntTotal * _decimalResolution) / hx.shareRate) + (hdrnPoolIcsaCollected * _decimalResolution) + (icsaSeedLiquidity[currentDay + 1] * _decimalResolution);
                    newHdrnPoolPayout /= newPoolPoints;
                    newHdrnPoolPayout += hdrnPoolPayout[currentDay];

                    // drain the collection
                    hdrnPoolIcsaCollected = 0;
                } else {
                    newHdrnPoolPayout = hdrnPoolPayout[currentDay];
                    
                    // carry the would be payout forward until there are stakes in the pool
                    hdrnPoolIcsaCollected += (hdrn.dayBurntTotal / hx.shareRate) + icsaSeedLiquidity[currentDay + 1];
                }

                hdrnPoolPayout[currentDay + 1] = newHdrnPoolPayout;
                hdrnPoolPoints[currentDay + 1] = newPoolPoints;

                emit HDRNStakingStats (
                    uint256(uint48 (block.timestamp))
                        |  (uint256(uint104(newPoolPoints)) << 48)
                        |  (uint256(uint104(hdrnPoolPointsRemoved)) << 152),
                    newHdrnPoolPayout,
                    currentDay + 1
                );

                hdrnPoolPointsRemoved = 0;

                // ICSA Staking
                uint256 newIcsaPoolPayoutIcsa;
                uint256 newIcsaPoolPayoutHdrn;
                newPoolPoints = (icsaPoolPoints[currentDay + 1] + icsaPoolPoints[currentDay]) - icsaPoolPointsRemoved;

                // if there are stakes in the pool, else carry the previous day forward.
                if (newPoolPoints > 0) {
                    // calculate next day's ICSA payout per point
                    newIcsaPoolPayoutIcsa = ((hdrn.dayBurntTotal * _decimalResolution) / hx.shareRate) + (icsaPoolIcsaCollected * _decimalResolution) + (icsaSeedLiquidity[currentDay + 1] * _decimalResolution);
                    newIcsaPoolPayoutIcsa /= newPoolPoints;
                    newIcsaPoolPayoutIcsa += icsaPoolPayoutIcsa[currentDay];

                    // calculate next day's HDRN payout per point
                    newIcsaPoolPayoutHdrn = (icsaPoolHdrnCollected * _decimalResolution) + (hdrnSeedLiquidity[currentDay + 1] * _decimalResolution);
                    newIcsaPoolPayoutHdrn /= newPoolPoints;
                    newIcsaPoolPayoutHdrn += icsaPoolPayoutHdrn[currentDay];
                    // drain the collections
                    icsaPoolIcsaCollected = 0;
                    icsaPoolHdrnCollected = 0;
                } else {
                    newIcsaPoolPayoutIcsa = icsaPoolPayoutIcsa[currentDay];
                    newIcsaPoolPayoutHdrn = icsaPoolPayoutHdrn[currentDay];

                    // carry the would be payout forward until there are stakes in the pool
                    icsaPoolIcsaCollected += (hdrn.dayBurntTotal / hx.shareRate) + icsaSeedLiquidity[currentDay + 1];
                    icsaPoolHdrnCollected += hdrnSeedLiquidity[currentDay + 1];
                }

                icsaPoolPayoutIcsa[currentDay + 1] = newIcsaPoolPayoutIcsa;
                icsaPoolPayoutHdrn[currentDay + 1] = newIcsaPoolPayoutHdrn;
                icsaPoolPoints[currentDay + 1] = newPoolPoints;

                emit ICSAStakingStats (
                    uint256(uint48 (block.timestamp))
                        |  (uint256(uint104(newPoolPoints)) << 48)
                        |  (uint256(uint104(icsaPoolPointsRemoved)) << 152),
                    newIcsaPoolPayoutIcsa,
                    newIcsaPoolPayoutHdrn,
                    currentDay + 1
                );

                icsaPoolPointsRemoved = 0;

                // NFT Staking
                uint256 newNftPoolPayout;
                newPoolPoints = (nftPoolPoints[currentDay + 1] + nftPoolPoints[currentDay]) - nftPoolPointsRemoved;

                // if there are stakes in the pool, else carry the previous day forward.
                if (newPoolPoints > 0) {
                    // calculate next day's payout per point
                    newNftPoolPayout = ((hdrn.dayBurntTotal * _decimalResolution) / hx.shareRate) + (nftPoolIcsaCollected * _decimalResolution) + (icsaSeedLiquidity[currentDay + 1] * _decimalResolution);
                    newNftPoolPayout /= newPoolPoints;
                    newNftPoolPayout += nftPoolPayout[currentDay];

                    // drain the collection
                    nftPoolIcsaCollected = 0;
                } else {
                    newNftPoolPayout = nftPoolPayout[currentDay];

                    // carry the would be payout forward until there are stakes in the pool
                    nftPoolIcsaCollected += (hdrn.dayBurntTotal / hx.shareRate) + icsaSeedLiquidity[currentDay + 1];
                }
                
                nftPoolPayout[currentDay + 1] = newNftPoolPayout;
                nftPoolPoints[currentDay + 1] = newPoolPoints;

                emit NFTStakingStats (
                    uint256(uint48 (block.timestamp))
                        |  (uint256(uint104(newPoolPoints)) << 48)
                        |  (uint256(uint104(nftPoolPointsRemoved)) << 152),
                    newNftPoolPayout,
                    currentDay + 1
                );

                nftPoolPointsRemoved = 0;

                // all math is done, advance to the next day
                currentDay++;
            }
        }
    }

    /**
     * @dev Fetches time weighted price square root (scaled 2 ** 96) from a uniswap v3 pool. 
     * @param uniswapV3Pool Address of the uniswap v3 pool.
     * @return Time weighted square root token price (scaled 2 ** 96).
     */
    function getSqrtTwapX96(
        address uniswapV3Pool
    )
        internal
        view 
        returns (uint160)
    {
        uint32[] memory secondsAgos = new uint32[](2);
        secondsAgos[0] = _twapInterval;
        secondsAgos[1] = 0;

        (int56[] memory tickCumulatives, ) = IUniswapV3Pool(uniswapV3Pool).observe(secondsAgos);

        uint160 sqrtPriceX96 = TickMath.getSqrtRatioAtTick(
            int24((tickCumulatives[1] - tickCumulatives[0]) / int8(_twapInterval))
        );

        return sqrtPriceX96;
    }

    /**
     * @dev Converts a uniswap v3 square root price into a token price (scaled 2 ** 96).
     * @param sqrtPriceX96 Square root uniswap pool price (scaled 2 ** 96).
     * @return Token price (scaled 2 ** 96).
     */
    function getPriceX96FromSqrtPriceX96(
        uint160 sqrtPriceX96
    )
        internal 
        pure
        returns(uint256)
    {
        return FullMath.mulDiv(sqrtPriceX96, sqrtPriceX96, FixedPoint96.Q96);
    }

    // External Functions

    // HSI Buy-Back

    /**
     * @dev Sells an HSI NFT token to the Icosa contract.
     * @param tokenId Token ID of the HSI NFT.
     * @return Amount of ICSA paid to the seller.
     */
    function hexStakeSell (
        uint256 tokenId
    )
        external
        nonReentrant
        returns (uint256)
    {
        _stakeDailyUpdate();

        require(_hsim.ownerOf(tokenId) == msg.sender,
            "ICSA: NOT OWNER");

        // load HSI stake data and HEX share rate
        HDRNShareCache memory share  = _hsiLoad(IHEXStakeInstance(_hsim.hsiToken(tokenId)));
        HEXGlobals memory hexGlobals = _hexGlobalsLoad();

        // mint ICSA to the caller
        uint256 borrowableHdrn = share._stake.stakeShares * (share._stake.stakedDays - share._mintedDays);
        uint256 payout         = borrowableHdrn / (hexGlobals.shareRate / 10);
        
        require(payout > 0,
            "ICSA: LOW VALUE");

        uint256 qcBonus;
        uint256 hlBonus = ((payout * (1000 + share._launchBonus)) / 1000) - payout;

        if (share._stake.stakedDays == 5555) {
            qcBonus = ((payout * 110) / 100) - payout;
        }

        nftPoolIcsaCollected += qcBonus + hlBonus;

        _mint(msg.sender, (payout + qcBonus + hlBonus));

        // transfer and detokenize the HSI
        _hsim.transferFrom(msg.sender, address(this), tokenId);
        address hsiAddress = _hsim.hexStakeDetokenize(tokenId);
        uint256 hsiCount   = _hsim.hsiCount(address(this));

        // borrow HDRN against the HSI
        icsaPoolHdrnCollected += _hdrn.loanInstanced(hsiCount - 1, hsiAddress);

        emit HSIBuyBack(payout, msg.sender, share._stake.stakeId);

        return (payout + qcBonus + hlBonus);
    }

    // HDRN Staking

    /**
     * @dev Starts a HDRN stake.
     * @param amount Amount of HDRN to stake.
     * @return Number of stake points allocated to the stake.
     */
    function hdrnStakeStart (
        uint256 amount
    )
        external
        nonReentrant
        returns (uint256)
    {
        _stakeDailyUpdate();

        // load stake into memory
        StakeCache memory stake;
        _stakeLoad(hdrnStakes[msg.sender], stake);

        require(stake._isActive == false,
            "ICSA: STAKE EXISTS");

        require(_hdrn.balanceOf(msg.sender) >= amount,
            "ICSA: LOW BALANCE");

        // get the HEX share rate and calculate stake points
        HEXGlobals memory hexGlobals = _hexGlobalsLoad();
        uint256 stakePoints = amount / hexGlobals.shareRate;

        uint256 stakerClass = (amount * _decimalResolution) / _hdrn.totalSupply();
        
        require(stakePoints > 0,
            "ICSA: TOO SMALL");

        uint256 minStakeLength = _calcMinStakeLength(stakerClass);

        // add stake entry
        _stakeAdd (
            _stakeTypeHDRN,
            stakePoints,
            amount,
            0,
            msg.sender,
            minStakeLength
        );

        // add stake to the pool (following day)
        hdrnPoolPoints[currentDay + 1] += stakePoints;

        // transfer HDRN to the contract and return stake points
        _hdrn.transferFrom(msg.sender, address(this), amount);

        emit HDRNStakeStart(
            uint256(uint40 (block.timestamp))
                |  (uint256(uint120(stakePoints))    << 40)
                |  (uint256(uint80 (amount))         << 160)
                |  (uint256(uint16 (minStakeLength)) << 240),
            msg.sender
        );

        return stakePoints;
    }

    /**
     * @dev Adds more HDRN to an existing stake.
     * @param amount Amount of HDRN to add to the stake.
     * @return Number of stake points allocated to the stake.
     */
    function hdrnStakeAddCapital (
        uint256 amount
    )
        external
        nonReentrant
        returns (uint256)
    {
        _stakeDailyUpdate();

        // load stake into memory
        StakeCache memory stake;
        _stakeLoad(hdrnStakes[msg.sender], stake);

        require(stake._isActive == true,
            "ICSA: NO STAKE");

        require(_hdrn.balanceOf(msg.sender) >= amount,
            "ICSA: LOW BALANCE");

        // get the HEX share rate and calculate additional stake points
        HEXGlobals memory hexGlobals = _hexGlobalsLoad();
        uint256 stakePoints = amount / hexGlobals.shareRate;

        uint256 stakerClass = ((stake._stakeAmount + amount) * _decimalResolution) / _hdrn.totalSupply();

        require(stakePoints > 0,
            "ICSA: TOO SMALL");

        // lock in payout from previous stake points
        uint256 payoutPerPoint = hdrnPoolPayout[currentDay] - hdrnPoolPayout[stake._capitalAdded];
        uint256 payout = (stake._stakePoints * payoutPerPoint) / _decimalResolution;

        uint256 minStakeLength = _calcMinStakeLength(stakerClass);

        // update stake entry
        stake._capitalAdded             = currentDay;
        stake._stakePoints             += stakePoints;
        stake._payoutPreCapitalAddIcsa += payout;
        stake._stakeAmount             += amount;
        stake._minStakeLength           = minStakeLength;
        _stakeUpdate(hdrnStakes[msg.sender], stake);

        // add additional points to the pool (following day)
        hdrnPoolPoints[currentDay + 1] += stakePoints;

        // transfer HDRN to the contract and return stake points
        _hdrn.transferFrom(msg.sender, address(this), amount);

        emit HDRNStakeAddCapital(
            uint256(uint40 (block.timestamp))
                |  (uint256(uint120(stakePoints))    << 40)
                |  (uint256(uint80 (amount))         << 160)
                |  (uint256(uint16 (minStakeLength)) << 240),
            msg.sender
        );

        return stake._stakePoints;
    }

    /**
     * @dev Ends a HDRN stake.
     * @return ICSA yield, HDRN principal penalty, ICSA yield penalty.
     */
    function hdrnStakeEnd () 
        external
        nonReentrant
        returns (uint256, uint256, uint256)
    {
        _stakeDailyUpdate();

        // load stake into memory
        StakeCache memory stake;
        _stakeLoad(hdrnStakes[msg.sender], stake);

        require(stake._isActive == true,
            "ICSA: NO STAKE");

        // ended pending stake, just reverse it.
        if (stake._stakeStart == currentDay) {
            // return staked principal
            _hdrn.transfer(msg.sender, stake._stakeAmount);

            // remove points from the pool
            hdrnPoolPointsRemoved += stake._stakePoints;

            // update stake entry
            stake._stakeStart              = 0;
            stake._capitalAdded            = 0;
            stake._stakePoints             = 0;
            stake._isActive                = false;
            stake._payoutPreCapitalAddIcsa = 0;
            stake._stakeAmount             = 0;
            stake._minStakeLength          = 0;
            _stakeUpdate(hdrnStakes[msg.sender], stake);

            emit HDRNStakeEnd(
            uint256(uint40 (block.timestamp))
                |  (uint256(uint72(0)) << 40)
                |  (uint256(uint72(0)) << 112)
                |  (uint256(uint72(0)) << 184),
            msg.sender
            );

            return (0,0,0);
        }

        // calculate payout per point
        uint256 payoutPerPoint = hdrnPoolPayout[currentDay] - hdrnPoolPayout[stake._capitalAdded];

        uint256 payout;
        uint256 bonus;
        uint256 payoutPenalty;
        uint256 principal;
        uint256 principalPenalty;

        if ((stake._capitalAdded + stake._minStakeLength) > currentDay) {
            uint256 servedDays = currentDay - stake._capitalAdded;
            
            payout = stake._payoutPreCapitalAddIcsa + ((stake._stakePoints * payoutPerPoint) / _decimalResolution);
            (payout, payoutPenalty) = _calcStakePenalty(stake._minStakeLength, servedDays, payout);

            // distribute ICSA penalties
            hdrnPoolIcsaCollected += payoutPenalty / 3;
            icsaPoolIcsaCollected += payoutPenalty / 3;
            nftPoolIcsaCollected  += payoutPenalty / 3;

            principal = stake._stakeAmount;
            (principal, principalPenalty) = _calcStakePenalty(stake._minStakeLength, servedDays, principal);

            // distribute HDRN penalties
            _hdrn.proofOfBenevolence(principalPenalty / 2);
            icsaPoolHdrnCollected += principalPenalty / 2;
        } else {
            uint256 stakerClass = (stake._stakeAmount * _decimalResolution) / _hdrn.totalSupply();

            payout = stake._payoutPreCapitalAddIcsa + ((stake._stakePoints * payoutPerPoint) / _decimalResolution);
            bonus  = _calcStakeBonus(stakerClass, payout);
            principal = stake._stakeAmount;
        }

        // remove points from the pool
        hdrnPoolPointsRemoved += stake._stakePoints;

        // update stake entry
        stake._stakeStart              = 0;
        stake._capitalAdded            = 0;
        stake._stakePoints             = 0;
        stake._isActive                = false;
        stake._payoutPreCapitalAddIcsa = 0;
        stake._stakeAmount             = 0;
        stake._minStakeLength          = 0;
        _stakeUpdate(hdrnStakes[msg.sender], stake);

        nftPoolIcsaCollected += bonus;

        // mint ICSA and return payout
        if (payout > 0) { _mint(msg.sender, (payout + bonus)); }

        // return staked principal
        if (principal > 0) { _hdrn.transfer(msg.sender, principal); }

        emit HDRNStakeEnd(
            uint256(uint40 (block.timestamp))
                |  (uint256(uint72(payout + bonus))   << 40)
                |  (uint256(uint72(principalPenalty)) << 112)
                |  (uint256(uint72(payoutPenalty))    << 184),
            msg.sender
        );

        return ((payout + bonus), principalPenalty, payoutPenalty);
    }

    // ICSA Staking

    /**
     * @dev Starts an ICSA stake.
     * @param amount Amount of ICSA to stake.
     * @return Number of stake points allocated to the stake.
     */
    function icsaStakeStart (
        uint256 amount
    )
        external
        nonReentrant
        returns (uint256)
    {
        _stakeDailyUpdate();

        // load stake into memory
        StakeCache memory stake;
        _stakeLoad(icsaStakes[msg.sender], stake);

        require(stake._isActive == false,
            "ICSA: STAKE EXISTS");

        require(balanceOf(msg.sender) >= amount,
            "ICSA: LOW BALANCE");

        // get the HEX share rate and calculate stake points
        HEXGlobals memory hexGlobals = _hexGlobalsLoad();
        uint256 stakePoints = amount / hexGlobals.shareRate;

        uint256 stakerClass = (amount * _decimalResolution) / totalSupply();
        
        require(stakePoints > 0,
            "ICSA: TOO SMALL");

        uint256 minStakeLength = _calcMinStakeLength(stakerClass);

        // add stake entry
        _stakeAdd (
            _stakeTypeICSA,
            stakePoints,
            amount,
            0,
            msg.sender,
            minStakeLength
        );

        // add stake to the pool (following day)
        icsaPoolPoints[currentDay + 1] += stakePoints;

        // increase staked supply metric
        icsaStakedSupply += amount;

        // temporarily burn stakers ICSA
        _burn(msg.sender, amount);

        emit ICSAStakeStart(
            uint256(uint40 (block.timestamp))
                |  (uint256(uint120(stakePoints))    << 40)
                |  (uint256(uint80 (amount))         << 160)
                |  (uint256(uint16 (minStakeLength)) << 240),
            msg.sender
        );

        return stakePoints;
    }

    /**
     * @dev Adds more ICSA to an existing stake.
     * @param amount Amount of ICSA to add to the stake.
     * @return Number of stake points allocated to the stake.
     */
    function icsaStakeAddCapital (
        uint256 amount
    )
        external
        nonReentrant
        returns (uint256)
    {
        _stakeDailyUpdate();

        // load stake into memory
        StakeCache memory stake;
        _stakeLoad(icsaStakes[msg.sender], stake);

        require(stake._isActive == true,
            "ICSA: NO STAKE");

        require(balanceOf(msg.sender) >= amount,
            "ICSA: LOW BALANCE");

        // get the HEX share rate and calculate additional stake points
        HEXGlobals memory hexGlobals = _hexGlobalsLoad();
        uint256 stakePoints = amount / hexGlobals.shareRate;

        uint256 stakerClass = ((stake._stakeAmount + amount) * _decimalResolution) / totalSupply();

        require(stakePoints > 0,
            "ICSA: TOO SMALL");

        // lock in payout from previous stake points
        uint256 payoutPerPointIcsa = icsaPoolPayoutIcsa[currentDay] - icsaPoolPayoutIcsa[stake._capitalAdded];
        uint256 payoutIcsa = (stake._stakePoints * payoutPerPointIcsa) / _decimalResolution;

        uint256 payoutPerPointHdrn = icsaPoolPayoutHdrn[currentDay] - icsaPoolPayoutHdrn[stake._capitalAdded];
        uint256 payoutHdrn = (stake._stakePoints * payoutPerPointHdrn) / _decimalResolution;

        uint256 minStakeLength = _calcMinStakeLength(stakerClass);

        // update stake entry
        stake._capitalAdded             = currentDay;
        stake._stakePoints             += stakePoints;
        stake._payoutPreCapitalAddIcsa += payoutIcsa;
        stake._payoutPreCapitalAddHdrn += payoutHdrn;
        stake._stakeAmount             += amount;
        stake._minStakeLength           = minStakeLength;
        _stakeUpdate(icsaStakes[msg.sender], stake);

        // add additional points to the pool (following day)
        icsaPoolPoints[currentDay + 1] += stakePoints;

        // increase staked supply metric
        icsaStakedSupply += amount;

        // temporarily burn stakers ICSA
        _burn(msg.sender, amount);

        emit ICSAStakeAddCapital(
            uint256(uint40 (block.timestamp))
                |  (uint256(uint120(stakePoints))    << 40)
                |  (uint256(uint80 (amount))         << 160)
                |  (uint256(uint16 (minStakeLength)) << 240),
            msg.sender
        );

        return stake._stakePoints;
    }

    /**
     * @dev Ends an ICSA stake.
     * @return ICSA yield, HDRN yield, ICSA principal penalty, HDRN yield penalty, ICSA yield penalty.
     */
    function icsaStakeEnd () 
        external
        nonReentrant
        returns (uint256, uint256, uint256, uint256, uint256)
    {
        _stakeDailyUpdate();

        // load stake into memory
        StakeCache memory stake;
        _stakeLoad(icsaStakes[msg.sender], stake);

        require(stake._isActive == true,
            "ICSA: NO STAKE");

        // ended pending stake, just reverse it.
        if (stake._stakeStart == currentDay) {
            // return staked principal
            _mint(msg.sender, stake._stakeAmount);
            
            // remove points from the pool
            icsaPoolPointsRemoved += stake._stakePoints;

            // decrease staked supply metric
            icsaStakedSupply -= stake._stakeAmount;

            // update stake entry
            stake._stakeStart              = 0;
            stake._capitalAdded            = 0;
            stake._stakePoints             = 0;
            stake._isActive                = false;
            stake._payoutPreCapitalAddIcsa = 0;
            stake._payoutPreCapitalAddHdrn = 0;
            stake._stakeAmount             = 0;
            stake._minStakeLength          = 0;
            _stakeUpdate(icsaStakes[msg.sender], stake);

            emit ICSAStakeEnd(
            uint256(uint40 (block.timestamp))
                |  (uint256(uint72(0)) << 40)
                |  (uint256(uint72(0)) << 112)
                |  (uint256(uint72(0)) << 184),
            uint256(uint128(0))
                |  (uint256(uint128(0)) << 128),
            msg.sender
            );

            return (0,0,0,0,0);
        }

        // calculate payout per point
        uint256 payoutPerPointIcsa = icsaPoolPayoutIcsa[currentDay] - icsaPoolPayoutIcsa[stake._capitalAdded];
        uint256 payoutPerPointHdrn = icsaPoolPayoutHdrn[currentDay] - icsaPoolPayoutHdrn[stake._capitalAdded];

        uint256 payoutIcsa;
        uint256 bonusIcsa;
        uint256 payoutHdrn;
        uint256 payoutPenaltyIcsa;
        uint256 payoutPenaltyHdrn;
        uint256 principal;
        uint256 principalPenalty;

        if ((stake._capitalAdded + stake._minStakeLength) > currentDay) {
            uint256 servedDays = currentDay - stake._capitalAdded;
            
            payoutIcsa = stake._payoutPreCapitalAddIcsa + ((stake._stakePoints * payoutPerPointIcsa) / _decimalResolution);
            (payoutIcsa, payoutPenaltyIcsa) = _calcStakePenalty(stake._minStakeLength, servedDays, payoutIcsa);

            payoutHdrn = stake._payoutPreCapitalAddHdrn + ((stake._stakePoints * payoutPerPointHdrn) / _decimalResolution);
            (payoutHdrn, payoutPenaltyHdrn) = _calcStakePenalty(stake._minStakeLength, servedDays, payoutHdrn);

            principal = stake._stakeAmount;
            (principal, principalPenalty) = _calcStakePenalty(stake._minStakeLength, servedDays, principal);

            // distribute ICSA penalties
            hdrnPoolIcsaCollected += (payoutPenaltyIcsa + principalPenalty) / 3;
            icsaPoolIcsaCollected += (payoutPenaltyIcsa + principalPenalty) / 3;
            nftPoolIcsaCollected  += (payoutPenaltyIcsa + principalPenalty) / 3;

            // distribute HDRN penalties
            _hdrn.proofOfBenevolence(payoutPenaltyHdrn / 2);
            icsaPoolHdrnCollected += payoutPenaltyHdrn / 2;
        } else {
            uint256 stakerClass = (stake._stakeAmount * _decimalResolution) / totalSupply();

            payoutIcsa = stake._payoutPreCapitalAddIcsa + ((stake._stakePoints * payoutPerPointIcsa) / _decimalResolution);
            payoutHdrn = stake._payoutPreCapitalAddHdrn + ((stake._stakePoints * payoutPerPointHdrn) / _decimalResolution);
            bonusIcsa = _calcStakeBonus(stakerClass, payoutIcsa);
            principal = stake._stakeAmount;
        }

        // remove points from the pool
        icsaPoolPointsRemoved += stake._stakePoints;

        // decrease staked supply metric
        icsaStakedSupply -= stake._stakeAmount;

        // update stake entry
        stake._stakeStart              = 0;
        stake._capitalAdded            = 0;
        stake._stakePoints             = 0;
        stake._isActive                = false;
        stake._payoutPreCapitalAddIcsa = 0;
        stake._payoutPreCapitalAddHdrn = 0;
        stake._stakeAmount             = 0;
        stake._minStakeLength          = 0;
        _stakeUpdate(icsaStakes[msg.sender], stake);

        nftPoolIcsaCollected += bonusIcsa;

        // mint ICSA
        if (payoutIcsa + principal > 0) { _mint(msg.sender, (payoutIcsa + principal + bonusIcsa)); }

        // transfer HDRN
        if (payoutHdrn > 0) { _hdrn.transfer(msg.sender, payoutHdrn); }

        emit ICSAStakeEnd(
            uint256(uint40 (block.timestamp))
                |  (uint256(uint72(payoutIcsa + bonusIcsa))       << 40)
                |  (uint256(uint72(payoutHdrn))       << 112)
                |  (uint256(uint72(principalPenalty)) << 184),
            uint256(uint128(payoutPenaltyIcsa))
                |  (uint256(uint128(payoutPenaltyHdrn)) << 128),
            msg.sender
        );

        return ((payoutIcsa + bonusIcsa), payoutHdrn, principalPenalty, payoutPenaltyIcsa, payoutPenaltyHdrn);
    }

    // NFT Staking

    /**
     * @dev Starts an NFT stake.
     * @param amount Amount of tokens to buy the NFT with.
     * @param tokenAddress Address of the token contract.
     * @return Number of stake points allocated to the stake.
     */
    function nftStakeStart (
        uint256 amount,
        address tokenAddress
    )
        external
        payable
        nonReentrant
        returns (uint256)
    {
        _stakeDailyUpdate();

        require(currentDay < (launchDay + _waatsaEventLength),
            "ICSA: TOO LATE");

        // Fallback in case PulseChain launches mid-WAATSA
        require(block.chainid == 1,
            "ICSA: BAD CHAIN");

        uint256 tokenPrice;
        uint256 stakePoints;

        IERC20 token = IERC20(tokenAddress);

        // ETH handler
        if (tokenAddress == address(0)) {

            // amount does not match sent eth, nuke transaction.
            if (amount != msg.value) {
                revert();
            }

            // weth pools are backwards for some reason.
            tokenPrice = getPriceX96FromSqrtPriceX96(getSqrtTwapX96(_uniswapPools[_wethAddress]));
            stakePoints = (amount * (2**96)) / tokenPrice;
            
            _hdrnFlowAddress.transfer(amount);
        }

        // ERC20 handler
        else {
            address uniswapPool = _uniswapPools[tokenAddress];

            // invalid token, nuke the transaction.
            if (tokenAddress != _usdcAddress && uniswapPool == address(0)) {
                revert();
            }

            if (tokenAddress != _usdcAddress) {
                // weth pools are backwards for some reason.
                if (tokenAddress == _wethAddress) {
                    tokenPrice = getPriceX96FromSqrtPriceX96(getSqrtTwapX96(uniswapPool));
                    stakePoints = (amount * (2**96)) / tokenPrice;
                }

                else {
                    tokenPrice = getPriceX96FromSqrtPriceX96(getSqrtTwapX96(uniswapPool));
                    stakePoints = (amount * tokenPrice) / (2 ** 96);
                }
            }

            else {
                stakePoints = amount;
            }

            token.transferFrom(msg.sender, _hdrnFlowAddress, amount);
        }

        require(stakePoints > 0,
            "ICSA: TOO SMALL");

        uint256 nftId = _waatsa.mintStakeNft(msg.sender);

        // add stake entry
        _stakeAdd (
            _stakeTypeNFT,
            stakePoints,
            0,
            nftId,
            address(0),
            0
        );

        // add stake to the pool (following day)
        nftPoolPoints[currentDay + 1] += stakePoints;

        emit NFTStakeStart(
            uint256(uint40 (block.timestamp))
                |  (uint256(uint216(stakePoints)) << 40),
            msg.sender,
            uint96(nftId),
            tokenAddress
        );

        return stakePoints;
    }

    /**
     * @dev Ends an NFT stake.
     * @param nftId Token id of the staking NFT.
     * @return ICSA yield.
     */
    function nftStakeEnd (
        uint256 nftId
    ) 
        external
        nonReentrant
        returns (uint256)
    {
        _stakeDailyUpdate();

        require(_waatsa.ownerOf(nftId) == msg.sender,
            "ICSA: NOT OWNER");
        
        // load stake into memory
        StakeCache memory stake;
        _stakeLoad(nftStakes[nftId], stake);

        require(stake._isActive == true,
            "ICSA: NO STAKE");

        uint256 payoutPerPoint = nftPoolPayout[currentDay] - nftPoolPayout[stake._capitalAdded];
        uint256 payout = (stake._stakePoints * payoutPerPoint) / _decimalResolution;

        // remove points from the pool
        nftPoolPointsRemoved += stake._stakePoints;

        // update stake entry
        stake._stakeStart              = 0;
        stake._capitalAdded            = 0;
        stake._stakePoints             = 0;
        stake._isActive                = false;
        stake._payoutPreCapitalAddIcsa = 0;
        stake._payoutPreCapitalAddHdrn = 0;
        stake._stakeAmount             = 0;
        stake._minStakeLength          = 0;
        _stakeUpdate(nftStakes[nftId], stake);

        // mint ICSA
        if (payout > 0 ) { _mint(msg.sender, payout); }
        _waatsa.burnStakeNft(nftId);

        emit NFTStakeEnd(
            uint256(uint40 (block.timestamp))
                |  (uint256(uint216(payout)) << 40),
            msg.sender,
            uint96(nftId)
        );

        return payout;
    }

    function injectSeedLiquidity (
        uint256 amount,
        uint256 seedDays
    ) 
        external
        nonReentrant
    {
        require(_hdrn.balanceOf(msg.sender) >= amount,
            "ICSA: LOW BALANCE");

        require(seedDays >= 1,
            "ICSA: LOW SEED");

        // calculate and seed ICSA liquidity
        HEXGlobals memory hx = _hexGlobalsLoad();
        uint256 icsaSeedTotal = amount / hx.shareRate;
        uint256 seedEnd = currentDay + seedDays + 1;

        for (uint256 i = currentDay + 1; i < seedEnd; i++) {
            icsaSeedLiquidity[i] += icsaSeedTotal / seedDays;
            hdrnSeedLiquidity[i] += amount / seedDays;
        }

        _hdrn.transferFrom(msg.sender, address(this), amount);
    }

    // Overrides

    /* In short, _stakeDailyUpdate needs to be called in all possible cases.
       This is to ensure the gas limit is never exceeded. By overriding these
       functions we ensure it is always called given any contract interraction. */
    
    function approve(
        address spender,
        uint256 amount
    ) 
        public
        virtual
        override
        returns (bool) 
    {
        _stakeDailyUpdate();
        return super.approve(spender, amount);
    }

    function transfer(
        address to,
        uint256 amount
    )
        public
        virtual
        override
        returns (bool)
    {
        _stakeDailyUpdate();
        return super.transfer(to, amount);
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    )
        public
        virtual
        override
        returns (bool)
    {
        _stakeDailyUpdate();
        return super.transferFrom(from, to, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"data","type":"uint256"},{"indexed":true,"internalType":"address","name":"staker","type":"address"}],"name":"HDRNStakeAddCapital","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"data","type":"uint256"},{"indexed":true,"internalType":"address","name":"staker","type":"address"}],"name":"HDRNStakeEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"data","type":"uint256"},{"indexed":true,"internalType":"address","name":"staker","type":"address"}],"name":"HDRNStakeStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"data","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"payout","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"stakeDay","type":"uint256"}],"name":"HDRNStakingStats","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"uint40","name":"stakeId","type":"uint40"}],"name":"HSIBuyBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"data","type":"uint256"},{"indexed":true,"internalType":"address","name":"staker","type":"address"}],"name":"ICSAStakeAddCapital","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"data0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"data1","type":"uint256"},{"indexed":true,"internalType":"address","name":"staker","type":"address"}],"name":"ICSAStakeEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"data","type":"uint256"},{"indexed":true,"internalType":"address","name":"staker","type":"address"}],"name":"ICSAStakeStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"data","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"payoutIcsa","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"payoutHdrn","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"stakeDay","type":"uint256"}],"name":"ICSAStakingStats","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"data","type":"uint256"},{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"uint96","name":"nftId","type":"uint96"}],"name":"NFTStakeEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"data","type":"uint256"},{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"uint96","name":"nftId","type":"uint96"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"NFTStakeStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"data","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"payout","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"stakeDay","type":"uint256"}],"name":"NFTStakingStats","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hdrnPoolIcsaCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"hdrnPoolPayout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"hdrnPoolPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hdrnPoolPointsRemoved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"hdrnSeedLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"hdrnStakeAddCapital","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hdrnStakeEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"hdrnStakeStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hdrnStakes","outputs":[{"internalType":"uint64","name":"stakeStart","type":"uint64"},{"internalType":"uint64","name":"capitalAdded","type":"uint64"},{"internalType":"uint120","name":"stakePoints","type":"uint120"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint80","name":"payoutPreCapitalAddIcsa","type":"uint80"},{"internalType":"uint80","name":"payoutPreCapitalAddHdrn","type":"uint80"},{"internalType":"uint80","name":"stakeAmount","type":"uint80"},{"internalType":"uint16","name":"minStakeLength","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"hexStakeSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"icsaPoolHdrnCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"icsaPoolIcsaCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"icsaPoolPayoutHdrn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"icsaPoolPayoutIcsa","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"icsaPoolPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"icsaPoolPointsRemoved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"icsaSeedLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"icsaStakeAddCapital","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"icsaStakeEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"icsaStakeStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"icsaStakedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"icsaStakes","outputs":[{"internalType":"uint64","name":"stakeStart","type":"uint64"},{"internalType":"uint64","name":"capitalAdded","type":"uint64"},{"internalType":"uint120","name":"stakePoints","type":"uint120"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint80","name":"payoutPreCapitalAddIcsa","type":"uint80"},{"internalType":"uint80","name":"payoutPreCapitalAddHdrn","type":"uint80"},{"internalType":"uint80","name":"stakeAmount","type":"uint80"},{"internalType":"uint16","name":"minStakeLength","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"seedDays","type":"uint256"}],"name":"injectSeedLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"launchDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPoolIcsaCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftPoolPayout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftPoolPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPoolPointsRemoved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nftId","type":"uint256"}],"name":"nftStakeEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"nftStakeStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nftStakes","outputs":[{"internalType":"uint64","name":"stakeStart","type":"uint64"},{"internalType":"uint64","name":"capitalAdded","type":"uint64"},{"internalType":"uint120","name":"stakePoints","type":"uint120"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"uint80","name":"payoutPreCapitalAddIcsa","type":"uint80"},{"internalType":"uint80","name":"payoutPreCapitalAddHdrn","type":"uint80"},{"internalType":"uint80","name":"stakeAmount","type":"uint80"},{"internalType":"uint16","name":"minStakeLength","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"waatsa","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040518060400160405280600581526020016449636f736160d81b815250604051806040016040528060048152602001634943534160e01b81525081600390816200005e91906200077b565b5060046200006d82826200077b565b505060016005555060068054732b591e99afe9f32eaa6214f7b7629768c40eeb396001600160a01b03199182161790915560078054733819f64f282bf135d62168c1e513280daf905e06921682179055604080516308aed79560e21b815290516322bb5e54916004808201926020929091908290030181865afa158015620000f9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200011f919062000847565b600880546001600160a01b0319166001600160a01b0392831617905560075460408051635c9302c960e01b815290519190921691635c9302c99160048083019260209291908290030181865afa1580156200017e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a4919062000879565b600d819055600c556000805b600d548111620001fd576000620001c782620004a5565b905080604001516001600160481b031683620001e49190620008a9565b9250508080620001f490620008c4565b915050620001b0565b5060006200020a62000593565b90506000816040015164ffffffffff1683620002279190620008e0565b9050600061016861ffff16600d54620002419190620008a9565b6200024e906001620008a9565b90506000600d546001620002639190620008a9565b90505b81811015620002a1576200027d61016884620008e0565b6000828152600f6020526040902055806200029881620008c4565b91505062000266565b5060075460405163095ea7b360e01b8152733819f64f282bf135d62168c1e513280daf905e06600482015260001960248201526001600160a01b039091169063095ea7b3906044016020604051808303816000875af115801562000309573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200032f919062000903565b506040516200033e90620006c8565b604051809103906000f0801580156200035b573d6000803e3d6000fd5b50600b80546001600160a01b03929092166001600160a01b031992831681179091556009805483169091179055600a6020527fd0bcf4df132c65dad73803c5e5e1c826f151a3342680034a8a4c8e5f8eb0c13c805482167388e6a0c2ddd26feeb64f039a2c41296fcb3f56401790557f1a192d851c7246a2e854d468b8fce1300360caaf9ef532bdd4a938b6e60ce505805482167369d91b94f0aaf8e8a2586909fa77a5c2c89818d51790557f49c0337e37bf3ff90f8f2224b7098d956517436a79e0bbdd4d1f8933bff305f88054821673e859041c9c6d70177f83de991b9d757e13cea26e179055730d86eb9f43c57f6ff3bc9e23d8f9d82503f0e84b6000527fb00adceb29fce4deb043f73faf0123befa9f1b4da7916a31392ed21ec1373d40805490911673f5595d56ccb6cb87a463c558cad04f49faa611491790555062000a9e92505050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600754604051630c28945b60e31b81526004810184905260009182918291829182916001600160a01b031690636144a2d89060240160a060405180830381865afa15801562000523573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000549919062000944565b6040805160a0810182526001600160481b0396871681529486166020860152929094169183019190915263ffffffff16606082015260ff9091166080820152979650505050505050565b6040805161010081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810191909152600080600080600080600080600660009054906101000a90046001600160a01b03166001600160a01b031663c31245256040518163ffffffff1660e01b815260040161010060405180830381865afa15801562000635573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200065b9190620009de565b60408051610100810182526001600160481b03998a168152978916602089015264ffffffffff96871690880152938716606087015261ffff90921660808601529490941660a0840152921660c08201526001600160801b0390911660e08201529998505050505050505050565b61217d8062006a2683390190565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200070157607f821691505b6020821081036200072257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200077657600081815260208120601f850160051c81016020861015620007515750805b601f850160051c820191505b8181101562000772578281556001016200075d565b5050505b505050565b81516001600160401b03811115620007975762000797620006d6565b620007af81620007a88454620006ec565b8462000728565b602080601f831160018114620007e75760008415620007ce5750858301515b600019600386901b1c1916600185901b17855562000772565b600085815260208120601f198616915b828110156200081857888601518255948401946001909101908401620007f7565b5085821015620008375787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200085a57600080fd5b81516001600160a01b03811681146200087257600080fd5b9392505050565b6000602082840312156200088c57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115620008bf57620008bf62000893565b500190565b600060018201620008d957620008d962000893565b5060010190565b600082620008fe57634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156200091657600080fd5b815180151581146200087257600080fd5b80516001600160481b03811681146200093f57600080fd5b919050565b600080600080600060a086880312156200095d57600080fd5b620009688662000927565b9450620009786020870162000927565b9350620009886040870162000927565b9250606086015163ffffffff81168114620009a257600080fd5b608087015190925060ff81168114620009ba57600080fd5b809150509295509295909350565b805164ffffffffff811681146200093f57600080fd5b600080600080600080600080610100898b031215620009fc57600080fd5b62000a078962000927565b975062000a1760208a0162000927565b965062000a2760408a01620009c8565b955062000a3760608a0162000927565b9450608089015161ffff8116811462000a4f57600080fd5b935062000a5f60a08a0162000927565b925062000a6f60c08a01620009c8565b60e08a01519092506001600160801b038116811462000a8d57600080fd5b809150509295985092959890939650565b615f788062000aae6000396000f3fe6080604052600436106102675760003560e01c80637449f460116101445780639db820e8116100b6578063c1c9cabb1161007a578063c1c9cabb14610958578063d32aa2301461096e578063d52f66c614610981578063dd62ed3e146109ae578063e5a8a178146109ce578063eec0e91c146109e457600080fd5b80639db820e814610851578063a24daf6314610871578063a457c2d714610887578063a9059cbb146108a7578063bcead218146108c757600080fd5b80638a06a50c116101085780638a06a50c1461076f5780638dcedf7e1461078f578063900d58de146107bc578063919febd9146107f957806392db43831461082657806395d89b411461083c57600080fd5b80637449f460146106445780637cd87c68146106715780637d49a60d146106915780637f9e3f70146106b157806386a99e4a146106de57600080fd5b806337030bc0116101dd578063575a3ca6116101a1578063575a3ca61461055d5780635c9302c9146105735780635dbc0d28146105895780635ded9640146105b65780637088b292146105ee57806370a082311461060e57600080fd5b806337030bc0146103f8578063395093511461040e578063489a347f1461042e57806349189b8614610525578063506a37f11461053b57600080fd5b80631f4980051161022f5780631f4980051461033357806323b872dd146103635780632e3f581114610383578063313ce56714610399578063315e3c90146103b557806331da8822146103cb57600080fd5b8063056576a81461026c5780630585423d1461029f57806306fdde03146102cc578063095ea7b3146102ee57806318160ddd1461031e575b600080fd5b34801561027857600080fd5b5061028c6102873660046155f3565b610a11565b6040519081526020015b60405180910390f35b3480156102ab57600080fd5b5061028c6102ba3660046155f3565b60106020526000908152604090205481565b3480156102d857600080fd5b506102e1610d66565b604051610296919061560c565b3480156102fa57600080fd5b5061030e610309366004615676565b610df8565b6040519015158152602001610296565b34801561032a57600080fd5b5060025461028c565b34801561033f57600080fd5b50610348610e13565b60408051938452602084019290925290820152606001610296565b34801561036f57600080fd5b5061030e61037e3660046156a2565b61140f565b34801561038f57600080fd5b5061028c60195481565b3480156103a557600080fd5b5060405160098152602001610296565b3480156103c157600080fd5b5061028c601a5481565b3480156103d757600080fd5b5061028c6103e63660046155f3565b60156020526000908152604090205481565b34801561040457600080fd5b5061028c600c5481565b34801561041a57600080fd5b5061030e610429366004615676565b61142c565b34801561043a57600080fd5b506104bf6104493660046156e3565b601260205260009081526040902080546001909101546001600160401b0380831692600160401b810490911691600160801b82046001600160781b031691600160f81b900460ff16906001600160501b0380821691600160501b8104821691600160a01b82041690600160f01b900461ffff1688565b604080516001600160401b03998a1681529890971660208901526001600160781b039095169587019590955291151560608601526001600160501b03908116608086015290811660a085015290911660c083015261ffff1660e082015261010001610296565b34801561053157600080fd5b5061028c601c5481565b34801561054757600080fd5b5061055b610556366004615700565b611458565b005b34801561056957600080fd5b5061028c60215481565b34801561057f57600080fd5b5061028c600d5481565b34801561059557600080fd5b5061028c6105a43660046155f3565b60176020526000908152604090205481565b3480156105c257600080fd5b50600b546105d6906001600160a01b031681565b6040516001600160a01b039091168152602001610296565b3480156105fa57600080fd5b5061028c6106093660046155f3565b61169e565b34801561061a57600080fd5b5061028c6106293660046156e3565b6001600160a01b031660009081526020819052604090205490565b34801561065057600080fd5b5061028c61065f3660046155f3565b600e6020526000908152604090205481565b34801561067d57600080fd5b5061028c61068c3660046155f3565b611a90565b34801561069d57600080fd5b5061028c6106ac3660046155f3565b611d4a565b3480156106bd57600080fd5b5061028c6106cc3660046155f3565b60116020526000908152604090205481565b3480156106ea57600080fd5b506104bf6106f93660046156e3565b601860205260009081526040902080546001909101546001600160401b0380831692600160401b810490911691600160801b82046001600160781b031691600160f81b900460ff16906001600160501b0380821691600160501b8104821691600160a01b82041690600160f01b900461ffff1688565b34801561077b57600080fd5b5061028c61078a3660046155f3565b61208d565b34801561079b57600080fd5b5061028c6107aa3660046155f3565b60166020526000908152604090205481565b3480156107c857600080fd5b506107d16125a0565b604080519586526020860194909452928401919091526060830152608082015260a001610296565b34801561080557600080fd5b5061028c6108143660046155f3565b601d6020526000908152604090205481565b34801561083257600080fd5b5061028c60205481565b34801561084857600080fd5b506102e1612c24565b34801561085d57600080fd5b5061028c61086c3660046155f3565b612c33565b34801561087d57600080fd5b5061028c60145481565b34801561089357600080fd5b5061030e6108a2366004615676565b612e4f565b3480156108b357600080fd5b5061030e6108c2366004615676565b612ed5565b3480156108d357600080fd5b506104bf6108e23660046155f3565b601f60205260009081526040902080546001909101546001600160401b0380831692600160401b810490911691600160801b82046001600160781b031691600160f81b900460ff16906001600160501b0380821691600160501b8104821691600160a01b82041690600160f01b900461ffff1688565b34801561096457600080fd5b5061028c601b5481565b61028c61097c366004615722565b612ee9565b34801561098d57600080fd5b5061028c61099c3660046155f3565b600f6020526000908152604090205481565b3480156109ba57600080fd5b5061028c6109c9366004615752565b613349565b3480156109da57600080fd5b5061028c60135481565b3480156109f057600080fd5b5061028c6109ff3660046155f3565b601e6020526000908152604090205481565b6000600260055403610a3e5760405162461bcd60e51b8152600401610a3590615780565b60405180910390fd5b6002600555610a4b613374565b610a536155ac565b336000908152601260205260409020610a6c9082613c7e565b606081015115610ab35760405162461bcd60e51b8152602060048201526012602482015271494353413a205354414b452045584953545360701b6044820152606401610a35565b6007546040516370a0823160e01b815233600482015284916001600160a01b0316906370a0823190602401602060405180830381865afa158015610afb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1f91906157b7565b1015610b3d5760405162461bcd60e51b8152600401610a35906157d0565b6000610b47613d04565b90506000816040015164ffffffffff1685610b629190615827565b90506000600760009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdd91906157b7565b610bef670de0b6b3a76400008861583b565b610bf99190615827565b905060008211610c1b5760405162461bcd60e51b8152600401610a359061585a565b6000610c2682613e36565b9050610c386000848960003386613ec6565b8260106000600d546001610c4c9190615883565b81526020019081526020016000206000828254610c699190615883565b90915550506007546040516323b872dd60e01b81526001600160a01b03909116906323b872dd90610ca290339030908c9060040161589b565b6020604051808303816000875af1158015610cc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce591906158d4565b5060405164ffffffffff4216600160281b600160a01b03602886901b1617600160a01b600160f01b0360a08a901b16176001600160f01b031960f084901b1617815233907fe788b3001ad37e70b4a10fb943ba800586546dabb1a708bfdc6e157dd85e14e0906020015b60405180910390a250506001600555949350505050565b606060038054610d75906158ef565b80601f0160208091040260200160405190810160405280929190818152602001828054610da1906158ef565b8015610dee5780601f10610dc357610100808354040283529160200191610dee565b820191906000526020600020905b815481529060010190602001808311610dd157829003601f168201915b5050505050905090565b6000610e02613374565b610e0c83836144c9565b9392505050565b6000806000600260055403610e3a5760405162461bcd60e51b8152600401610a3590615780565b6002600555610e47613374565b610e4f6155ac565b336000908152601260205260409020610e689082613c7e565b60608101511515600114610e8e5760405162461bcd60e51b8152600401610a3590615929565b600d54815103610fc15760075460c082015160405163a9059cbb60e01b815233600482015260248101919091526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1391906158d4565b50806040015160136000828254610f2a9190615883565b9091555050600080825260208083018290526040808401839052606084018390526080840183905260c0840183905260e0840183905233835260129091529020610f7490826144d7565b6040514264ffffffffff16815233907f691ec36fa17780b806f2a7b7c8311573d30645afa8fc2927fbf8af71df17577e9060200160405180910390a2600080600093509350935050611403565b60208082015160009081526011909152604080822054600d54835290822054610fea9190615951565b90506000806000806000600d548760e00151886020015161100b9190615883565b11156111875760008760200151600d546110259190615951565b9050670de0b6b3a7640000878960400151611040919061583b565b61104a9190615827565b88608001516110599190615883565b955061106a8860e0015182886145c7565b909650935061107a600385615827565b6014600082825461108b9190615883565b9091555061109c9050600385615827565b601a60008282546110ad9190615883565b909155506110be9050600385615827565b602160008282546110cf9190615883565b925050819055508760c0015192506110ec8860e0015182856145c7565b60075491945092506001600160a01b031663d240a93a61110d600285615827565b6040518263ffffffff1660e01b815260040161112b91815260200190565b600060405180830381600087803b15801561114557600080fd5b505af1158015611159573d6000803e3d6000fd5b5050505060028261116a9190615827565b601b600082825461117b9190615883565b90915550611262915050565b600754604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa1580156111d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f591906157b7565b670de0b6b3a76400008960c0015161120d919061583b565b6112179190615827565b9050670de0b6b3a7640000878960400151611232919061583b565b61123c9190615827565b886080015161124b9190615883565b95506112578187614637565b94508760c001519250505b8660400151601360008282546112789190615883565b9091555050600080885260208089018290526040808a0183905260608a0183905260808a0183905260c08a0183905260e08a01839052338352601290915290206112c290886144d7565b83602160008282546112d49190615883565b909155505084156112f2576112f2336112ed8688615883565b61472e565b811561136f5760075460405163a9059cbb60e01b8152336004820152602481018490526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015611349573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136d91906158d4565b505b337f691ec36fa17780b806f2a7b7c8311573d30645afa8fc2927fbf8af71df17577e6001600160b81b031960b886901b1668ffffffffffffffffff60701b607085901b1660286113bf898b615883565b6001600160481b0316901b4264ffffffffff161717176040516113e491815260200190565b60405180910390a26113f68486615883565b9950975090955050505050505b60016005559192909190565b6000611419613374565b611424848484614825565b949350505050565b60003361144e81858561143f8383613349565b6114499190615883565b61483e565b5060019392505050565b60026005540361147a5760405162461bcd60e51b8152600401610a3590615780565b60026005556007546040516370a0823160e01b815233600482015283916001600160a01b0316906370a0823190602401602060405180830381865afa1580156114c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114eb91906157b7565b10156115095760405162461bcd60e51b8152600401610a35906157d0565b600181101561154b5760405162461bcd60e51b815260206004820152600e60248201526d1250d4d04e881313d5c814d1515160921b6044820152606401610a35565b6000611555613d04565b90506000816040015164ffffffffff16846115709190615827565b9050600083600d546115829190615883565b61158d906001615883565b90506000600d5460016115a09190615883565b90505b81811015611619576115b58584615827565b6000828152600f6020526040812080549091906115d3908490615883565b909155506115e390508587615827565b6000828152600e602052604081208054909190611601908490615883565b9091555081905061161181615968565b9150506115a3565b506007546040516323b872dd60e01b81526001600160a01b03909116906323b872dd9061164e90339030908a9060040161589b565b6020604051808303816000875af115801561166d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169191906158d4565b5050600160055550505050565b60006002600554036116c25760405162461bcd60e51b8152600401610a3590615780565b60026005556116cf613374565b6116d76155ac565b3360009081526012602052604090206116f09082613c7e565b606081015115156001146117165760405162461bcd60e51b8152600401610a3590615929565b6007546040516370a0823160e01b815233600482015284916001600160a01b0316906370a0823190602401602060405180830381865afa15801561175e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178291906157b7565b10156117a05760405162461bcd60e51b8152600401610a35906157d0565b60006117aa613d04565b90506000816040015164ffffffffff16856117c59190615827565b90506000600760009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561181c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184091906157b7565b670de0b6b3a7640000878660c001516118599190615883565b611863919061583b565b61186d9190615827565b90506000821161188f5760405162461bcd60e51b8152600401610a359061585a565b60208085015160009081526011909152604080822054600d548352908220546118b89190615951565b90506000670de0b6b3a76400008287604001516118d5919061583b565b6118df9190615827565b905060006118ec84613e36565b600d546020890152604088018051919250869161190a908390615883565b905250608087018051839190611921908390615883565b90525060c0870180518a9190611938908390615883565b90525060e0870181905233600090815260126020526040902061195b90886144d7565b8460106000600d54600161196f9190615883565b8152602001908152602001600020600082825461198c9190615883565b90915550506007546040516323b872dd60e01b81526001600160a01b03909116906323b872dd906119c590339030908e9060040161589b565b6020604051808303816000875af11580156119e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0891906158d4565b5060405164ffffffffff4216600160281b600160a01b03602888901b1617600160a01b600160f01b0360a08c901b16176001600160f01b031960f084901b1617815233907f521348e3eb7a7581b15bc45eb12d596f2d6b1afecbbcd5456297a9af36569b099060200160405180910390a2505050604090930151600160055595945050505050565b6000600260055403611ab45760405162461bcd60e51b8152600401610a3590615780565b6002600555611ac1613374565b6009546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e90602401602060405180830381865afa158015611b0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b2e9190615981565b6001600160a01b031614611b765760405162461bcd60e51b815260206004820152600f60248201526e24a1a9a09d102727aa1027aba722a960891b6044820152606401610a35565b611b7e6155ac565b6000838152601f60205260409020611b969082613c7e565b60608101511515600114611bbc5760405162461bcd60e51b8152600401610a3590615929565b6020808201516000908152601e909152604080822054600d54835290822054611be59190615951565b90506000670de0b6b3a7640000828460400151611c02919061583b565b611c0c9190615827565b9050826040015160206000828254611c249190615883565b9091555050600080845260208085018290526040808601839052606086018390526080860183905260a0860183905260c0860183905260e08601839052878352601f9091529020611c7590846144d7565b8015611c8557611c85338261472e565b60095460405163536e3b6960e01b8152600481018790526001600160a01b039091169063536e3b6990602401600060405180830381600087803b158015611ccb57600080fd5b505af1158015611cdf573d6000803e3d6000fd5b505060405164ffffffffff421664ffffffffff19602886901b161781526bffffffffffffffffffffffff881692503391507fb7f0616ddeb345010290b104677427d25d0689b85ffe1be21abf86913be9efa89060200160405180910390a36001600555949350505050565b6000600260055403611d6e5760405162461bcd60e51b8152600401610a3590615780565b6002600555611d7b613374565b611d836155ac565b336000908152601860205260409020611d9c9082613c7e565b60608101511515600114611dc25760405162461bcd60e51b8152600401610a3590615929565b33600090815260208190526040902054831115611df15760405162461bcd60e51b8152600401610a35906157d0565b6000611dfb613d04565b90506000816040015164ffffffffff1685611e169190615827565b90506000611e2360025490565b670de0b6b3a7640000878660c00151611e3c9190615883565b611e46919061583b565b611e509190615827565b905060008211611e725760405162461bcd60e51b8152600401610a359061585a565b60208085015160009081526016909152604080822054600d54835290822054611e9b9190615951565b90506000670de0b6b3a7640000828760400151611eb8919061583b565b611ec29190615827565b60208088015160009081526017909152604080822054600d548352908220549293509091611ef09190615951565b90506000670de0b6b3a7640000828960400151611f0d919061583b565b611f179190615827565b90506000611f2486613e36565b600d5460208b015260408a0180519192508891611f42908390615883565b905250608089018051859190611f59908390615883565b90525060a089018051839190611f70908390615883565b90525060c0890180518c9190611f87908390615883565b90525060e08901819052336000908152601860205260409020611faa908a6144d7565b8660156000600d546001611fbe9190615883565b81526020019081526020016000206000828254611fdb9190615883565b925050819055508a601c6000828254611ff49190615883565b909155506120049050338c614962565b60405164ffffffffff4216600160281b600160a01b0360288a901b1617600160a01b600160f01b0360a08e901b16176001600160f01b031960f084901b1617815233907f0854f798f9f9df58c78bece0e97434349916af9a8737bc9b915500934bf8637b9060200160405180910390a25050506040909501516001600555979650505050505050565b60006002600554036120b15760405162461bcd60e51b8152600401610a3590615780565b60026005556120be613374565b6008546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e90602401602060405180830381865afa158015612107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212b9190615981565b6001600160a01b0316146121735760405162461bcd60e51b815260206004820152600f60248201526e24a1a9a09d102727aa1027aba722a960891b6044820152606401610a35565b6008546040516304c8b84160e21b8152600481018490526000916121ec916001600160a01b0390911690631322e10490602401602060405180830381865afa1580156121c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e79190615981565b614ac3565b905060006121f8613d04565b90506000826020015183600001516060015161ffff166122189190615951565b83516020015161223191906001600160481b031661583b565b90506000600a8360400151612246919061599e565b6122579064ffffffffff1683615827565b90506000811161229b5760405162461bcd60e51b815260206004820152600f60248201526e494353413a204c4f572056414c554560881b6044820152606401610a35565b600080826103e887604001516103e86122b49190615883565b6122be908661583b565b6122c89190615827565b6122d29190615951565b86516060015190915061ffff166115b30361230c578260646122f582606e61583b565b6122ff9190615827565b6123099190615951565b91505b6123168183615883565b602160008282546123279190615883565b909155506123469050338261233c8587615883565b6112ed9190615883565b6008546040516323b872dd60e01b81526001600160a01b03909116906323b872dd9061237a90339030908d9060040161589b565b600060405180830381600087803b15801561239457600080fd5b505af11580156123a8573d6000803e3d6000fd5b50506008546040516362d02f9960e11b8152600481018c9052600093506001600160a01b03909116915063c5a05f32906024016020604051808303816000875af11580156123fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241e9190615981565b60085460405163b947e62960e01b81523060048201529192506000916001600160a01b039091169063b947e62990602401602060405180830381865afa15801561246c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061249091906157b7565b6007549091506001600160a01b0316632f52ca366124af600184615951565b6040516001600160e01b031960e084901b16815260048101919091526001600160a01b03851660248201526044016020604051808303816000875af11580156124fc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252091906157b7565b601b60008282546125319190615883565b909155505087515160405186815264ffffffffff9091169033907ff38c7e8f612bd11578c66e2677f9b54409206a11d6bc88cb4ef861d3181c85389060200160405180910390a3826125838587615883565b61258d9190615883565b60016005559a9950505050505050505050565b60008060008060006002600554036125ca5760405162461bcd60e51b8152600401610a3590615780565b60026005556125d7613374565b6125df6155ac565b3360009081526018602052604090206125f89082613c7e565b6060810151151560011461261e5760405162461bcd60e51b8152600401610a3590615929565b600d5481510361271357612636338260c0015161472e565b80604001516019600082825461264c9190615883565b909155505060c0810151601c8054600090612668908490615951565b9091555050600080825260208083018290526040808401839052606084018390526080840183905260a0840183905260c0840183905260e08401839052338352601890915290206126b990826144d7565b604080514264ffffffffff1681526000602082015233917f44c0595037945d4099be07a040af8225c659f4a81d57377ea76e0b6143f07615910160405180910390a260008060008060009550955095509550955050612c15565b60208082015160009081526016909152604080822054600d5483529082205461273c9190615951565b60208084015160009081526017909152604080822054600d54835290822054929350909161276a9190615951565b90506000806000806000806000600d548a60e001518b6020015161278e9190615883565b11156129745760008a60200151600d546127a89190615951565b9050670de0b6b3a76400008a8c604001516127c3919061583b565b6127cd9190615827565b8b608001516127dc9190615883565b97506127ed8b60e00151828a6145c7565b60408d01519199509550670de0b6b3a76400009061280c908b9061583b565b6128169190615827565b8b60a001516128259190615883565b95506128368b60e0015182886145c7565b60c08d015160e08e015192985090955093506128539082856145c7565b909350915060036128648387615883565b61286e9190615827565b6014600082825461287f9190615883565b90915550600390506128918387615883565b61289b9190615827565b601a60008282546128ac9190615883565b90915550600390506128be8387615883565b6128c89190615827565b602160008282546128d99190615883565b90915550506007546001600160a01b031663d240a93a6128fa600287615827565b6040518263ffffffff1660e01b815260040161291891815260200190565b600060405180830381600087803b15801561293257600080fd5b505af1158015612946573d6000803e3d6000fd5b505050506002846129579190615827565b601b60008282546129689190615883565b90915550612a20915050565b600061297f60025490565b670de0b6b3a76400008c60c00151612997919061583b565b6129a19190615827565b9050670de0b6b3a76400008a8c604001516129bc919061583b565b6129c69190615827565b8b608001516129d59190615883565b9750670de0b6b3a7640000898c604001516129f0919061583b565b6129fa9190615827565b8b60a00151612a099190615883565b9550612a158189614637565b96508a60c001519250505b896040015160196000828254612a369190615883565b909155505060c08a0151601c8054600090612a52908490615951565b90915550506000808b526020808c018290526040808d0183905260608d0183905260808d0183905260a08d0183905260c08d0183905260e08d0183905233835260189091529020612aa3908b6144d7565b8560216000828254612ab59190615883565b9091555060009050612ac78389615883565b1115612adc57612adc338761233c858b615883565b8415612b595760075460405163a9059cbb60e01b8152336004820152602481018790526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015612b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b5791906158d4565b505b337f44c0595037945d4099be07a040af8225c659f4a81d57377ea76e0b6143f076156001600160b81b031960b884901b1668ffffffffffffffffff60701b607089901b166028612ba98b8d615883565b6001600160481b0316901b4264ffffffffff161717176080866001600160801b0316901b876001600160801b031617604051612bef929190918252602082015260400190565b60405180910390a2612c018688615883565b9e50939c50929a5090985096505050505050505b60016005819055509091929394565b606060048054610d75906158ef565b6000600260055403612c575760405162461bcd60e51b8152600401610a3590615780565b6002600555612c64613374565b612c6c6155ac565b336000908152601860205260409020612c859082613c7e565b606081015115612ccc5760405162461bcd60e51b8152602060048201526012602482015271494353413a205354414b452045584953545360701b6044820152606401610a35565b33600090815260208190526040902054831115612cfb5760405162461bcd60e51b8152600401610a35906157d0565b6000612d05613d04565b90506000816040015164ffffffffff1685612d209190615827565b90506000612d2d60025490565b612d3f670de0b6b3a76400008861583b565b612d499190615827565b905060008211612d6b5760405162461bcd60e51b8152600401610a359061585a565b6000612d7682613e36565b9050612d886001848960003386613ec6565b8260156000600d546001612d9c9190615883565b81526020019081526020016000206000828254612db99190615883565b9250508190555086601c6000828254612dd29190615883565b90915550612de290503388614962565b60405164ffffffffff4216600160281b600160a01b03602886901b1617600160a01b600160f01b0360a08a901b16176001600160f01b031960f084901b1617815233907fef17058620372de420cb487f9cd2d4fde6511e5f6096d9ddf8f0834bd302804990602001610d4f565b60003381612e5d8286613349565b905083811015612ebd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a35565b612eca828686840361483e565b506001949350505050565b6000612edf613374565b610e0c8383614c1c565b6000600260055403612f0d5760405162461bcd60e51b8152600401610a3590615780565b6002600555612f1a613374565b600c54612f2990600e90615883565b600d5410612f6a5760405162461bcd60e51b815260206004820152600e60248201526d494353413a20544f4f204c41544560901b6044820152606401610a35565b46600114612fac5760405162461bcd60e51b815260206004820152600f60248201526e24a1a9a09d102120a21021a420a4a760891b6044820152606401610a35565b600080836001600160a01b03811661308957348614612fca57600080fd5b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2600052600a6020527fd0bcf4df132c65dad73803c5e5e1c826f151a3342680034a8a4c8e5f8eb0c13c546130249061301f906001600160a01b0316614c2a565b614d84565b92508261303587600160601b61583b565b61303f9190615827565b60405190925073f447be386164dadfb5d1e7622613f289f17024d89087156108fc029088906000818181858888f19350505050158015613083573d6000803e3d6000fd5b506131fd565b6001600160a01b038086166000818152600a60205260409020549091169073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48148015906130d157506001600160a01b038116155b156130db57600080fd5b6001600160a01b03861673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb481461316f5773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc1196001600160a01b038716016131525761313061301f82614c2a565b93508361314188600160601b61583b565b61314b9190615827565b9250613173565b61315e61301f82614c2a565b9350600160601b613141858961583b565b8692505b6040516323b872dd60e01b81526001600160a01b038316906323b872dd906131b790339073f447be386164dadfb5d1e7622613f289f17024d8908c9060040161589b565b6020604051808303816000875af11580156131d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131fa91906158d4565b50505b6000821161321d5760405162461bcd60e51b8152600401610a359061585a565b6009546040516366adc13760e01b81523360048201526000916001600160a01b0316906366adc137906024016020604051808303816000875af1158015613268573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061328c91906157b7565b905061329f600284600084600080613ec6565b82601d6000600d5460016132b39190615883565b815260200190815260200160002060008282546132d09190615883565b909155505060405164ffffffffff421664ffffffffff19602886901b161781526001600160a01b038716906bffffffffffffffffffffffff83169033907f818ab9605c396693e5f640cd603e9dd39debc6c90dd214a41bc1c683c71521bf9060200160405180910390a450506001600555949350505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60075460408051635c9302c960e01b815290516000926001600160a01b031691635c9302c99160048083019260209291908290030181865afa1580156133be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133e291906157b7565b905080600d541015613c7b576000600d54826133fe9190615951565b905060005b81811015613c78576000613415613d04565b90506000613424600d54614d9e565b905060008060135460106000600d5481526020019081526020016000205460106000600d5460016134559190615883565b81526020019081526020016000205461346e9190615883565b6134789190615951565b9150811561354d57670de0b6b3a7640000600f6000600d54600161349c9190615883565b8152602001908152602001600020546134b5919061583b565b670de0b6b3a76400006014546134cb919061583b565b856040015164ffffffffff16670de0b6b3a764000086604001516001600160481b03166134f8919061583b565b6135029190615827565b61350c9190615883565b6135169190615883565b90506135228282615827565b600d546000908152601160205260409020549091506135419082615883565b600060145590506135c4565b50600d5460008181526011602052604081205491600f9190613570906001615883565b815260200190815260200160002054846040015164ffffffffff16846040015161359a91906159c2565b6001600160481b03166135ad9190615883565b601460008282546135be9190615883565b90915550505b8060116000600d5460016135d89190615883565b8152602001908152602001600020819055508160106000600d5460016135fe9190615883565b8152602081019190915260400160002055600d5461361d906001615883565b7f877ae8179b54bd750e71120a4bdf606a021b47d9e3877dbce1a45aa47f83544760986013546001600160681b0316901b6030856001600160681b0316901b4265ffffffffffff1617178360405161367f929190918252602082015260400190565b60405180910390a260006013819055601954600d5480835260156020819052604084205484939290919084906136b6906001615883565b8152602001908152602001600020546136cf9190615883565b6136d99190615951565b9350831561383557670de0b6b3a7640000600f6000600d5460016136fd9190615883565b815260200190815260200160002054613716919061583b565b670de0b6b3a7640000601a5461372c919061583b565b876040015164ffffffffff16670de0b6b3a764000088604001516001600160481b0316613759919061583b565b6137639190615827565b61376d9190615883565b6137779190615883565b91506137838483615827565b600d546000908152601660205260409020549092506137a29083615883565b9150670de0b6b3a7640000600e6000600d5460016137c09190615883565b8152602001908152602001600020546137d9919061583b565b670de0b6b3a7640000601b546137ef919061583b565b6137f99190615883565b90506138058482615827565b600d546000908152601760205260409020549091506138249082615883565b6000601a819055601b5590506138f3565b5050600d54600081815260166020908152604080832054601790925282205490929091600f91613866906001615883565b815260200190815260200160002054866040015164ffffffffff16866040015161389091906159c2565b6001600160481b03166138a39190615883565b601a60008282546138b49190615883565b9091555050600d54600e906000906138cd906001615883565b815260200190815260200160002054601b60008282546138ed9190615883565b90915550505b8160166000600d5460016139079190615883565b8152602001908152602001600020819055508060176000600d54600161392d9190615883565b8152602001908152602001600020819055508360156000600d5460016139539190615883565b8152602081019190915260400160002055600d54613972906001615883565b7f2293c18662e2dd67e3a27c045f8d72254b7ffd71ec7cef7b8ac0dd4064d7f48460986019546001600160681b0316901b6030876001600160681b0316901b4265ffffffffffff16171784846040516139de939291909283526020830191909152604082015260600190565b60405180910390a26000601981905560208054600d54808452601d9283905260408420549192908490613a12906001615883565b815260200190815260200160002054613a2b9190615883565b613a359190615951565b94508415613b0a57670de0b6b3a7640000600f6000600d546001613a599190615883565b815260200190815260200160002054613a72919061583b565b670de0b6b3a7640000602154613a88919061583b565b886040015164ffffffffff16670de0b6b3a764000089604001516001600160481b0316613ab5919061583b565b613abf9190615827565b613ac99190615883565b613ad39190615883565b9050613adf8582615827565b600d546000908152601e6020526040902054909150613afe9082615883565b60006021559050613b81565b50600d546000818152601e602052604081205491600f9190613b2d906001615883565b815260200190815260200160002054876040015164ffffffffff168760400151613b5791906159c2565b6001600160481b0316613b6a9190615883565b60216000828254613b7b9190615883565b90915550505b80601e6000600d546001613b959190615883565b81526020019081526020016000208190555084601d6000600d546001613bbb9190615883565b8152602081019190915260400160002055600d54613bda906001615883565b7fc9ad92dd5085bdc5c481f558e473cd6f74135d5b8d4e72f2729edc931e588ccd60986020546001600160681b0316901b6030886001600160681b0316901b4265ffffffffffff16171783604051613c3c929190918252602082015260400190565b60405180910390a260006020819055600d805491613c5983615968565b9190505550505050505050508080613c7090615968565b915050613403565b50505b50565b81546001600160401b038082168352600160401b8204166020830152600160801b81046001600160781b03166040830152600160f81b900460ff16151560608201526001909101546001600160501b038082166080840152600160501b8204811660a0840152600160a01b82041660c0830152600160f01b900461ffff1660e090910152565b6040805161010081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810191909152600080600080600080600080600660009054906101000a90046001600160a01b03166001600160a01b031663c31245256040518163ffffffff1660e01b815260040161010060405180830381865afa158015613da5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dc99190615a1a565b60408051610100810182526001600160481b03998a168152978916602089015264ffffffffff96871690880152938716606087015261ffff90921660808601529490941660a0840152921660c08201526001600160801b0390911660e08201529998505050505050505050565b6000601e613e4d6064670de0b6b3a7640000615827565b8310613e5c5750610168613ec0565b613e706103e8670de0b6b3a7640000615827565b8310613e7f575061010e613ec0565b613e93612710670de0b6b3a7640000615827565b8310613ea1575060b4613ec0565b613eb6620186a0670de0b6b3a7640000615827565b8310613ec05750605a5b92915050565b60ff86166140c957604051806101000160405280600d546001600160401b03168152602001600d546001600160401b03168152602001866001600160781b0316815260200160011515815260200160006001600160501b0316815260200160006001600160501b03168152602001856001600160501b031681526020018261ffff1681525060126000846001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a8154816001600160401b0302191690836001600160401b0316021790555060208201518160000160086101000a8154816001600160401b0302191690836001600160401b0316021790555060408201518160000160106101000a8154816001600160781b0302191690836001600160781b03160217905550606082015181600001601f6101000a81548160ff02191690831515021790555060808201518160010160006101000a8154816001600160501b0302191690836001600160501b0316021790555060a082015181600101600a6101000a8154816001600160501b0302191690836001600160501b0316021790555060c08201518160010160146101000a8154816001600160501b0302191690836001600160501b0316021790555060e082015181600101601e6101000a81548161ffff021916908361ffff1602179055509050506144c1565b60001960ff8716016142d057604051806101000160405280600d546001600160401b03168152602001600d546001600160401b03168152602001866001600160781b0316815260200160011515815260200160006001600160501b0316815260200160006001600160501b03168152602001856001600160501b031681526020018261ffff1681525060186000846001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a8154816001600160401b0302191690836001600160401b0316021790555060208201518160000160086101000a8154816001600160401b0302191690836001600160401b0316021790555060408201518160000160106101000a8154816001600160781b0302191690836001600160781b03160217905550606082015181600001601f6101000a81548160ff02191690831515021790555060808201518160010160006101000a8154816001600160501b0302191690836001600160501b0316021790555060a082015181600101600a6101000a8154816001600160501b0302191690836001600160501b0316021790555060c08201518160010160146101000a8154816001600160501b0302191690836001600160501b0316021790555060e082015181600101601e6101000a81548161ffff021916908361ffff1602179055509050506144c1565b60011960ff87160161026757604051806101000160405280600d546001600160401b03168152602001600d546001600160401b03168152602001866001600160781b0316815260200160011515815260200160006001600160501b0316815260200160006001600160501b03168152602001856001600160501b031681526020018261ffff16815250601f600085815260200190815260200160002060008201518160000160006101000a8154816001600160401b0302191690836001600160401b0316021790555060208201518160000160086101000a8154816001600160401b0302191690836001600160401b0316021790555060408201518160000160106101000a8154816001600160781b0302191690836001600160781b03160217905550606082015181600001601f6101000a81548160ff02191690831515021790555060808201518160010160006101000a8154816001600160501b0302191690836001600160501b0316021790555060a082015181600101600a6101000a8154816001600160501b0302191690836001600160501b0316021790555060c08201518160010160146101000a8154816001600160501b0302191690836001600160501b0316021790555060e082015181600101601e6101000a81548161ffff021916908361ffff1602179055509050505b505050505050565b60003361144e81858561483e565b805182546020830151604084015160608501511515600160f81b026001600160f81b036001600160781b03909216600160801b02919091166001600160801b036001600160401b03938416600160401b026fffffffffffffffffffffffffffffffff19909516939095169290921792909217929092169190911717825560808101516001909201805460a083015160c084015160e09094015161ffff16600160f01b026001600160f01b036001600160501b03958616600160a01b02166001600160a01b03928616600160501b026001600160a01b03199094169590961694909417919091171692909217179055565b60008080808515614624576000866145e7670de0b6b3a76400008a61583b565b6145f19190615827565b905080614606670de0b6b3a76400008861583b565b6146109190615827565b925061461c8387615951565b91505061462b565b5060009050835b90969095509350505050565b60008161464d6064670de0b6b3a7640000615827565b841061468257670de0b6b3a7640000614667816014615883565b614671908561583b565b61467b9190615827565b9050614724565b6146966103e8670de0b6b3a7640000615827565b84106146b057670de0b6b3a764000061466781600f615883565b6146c4612710670de0b6b3a7640000615827565b84106146de57670de0b6b3a764000061466781600a615883565b6146f3620186a0670de0b6b3a7640000615827565b841061472457670de0b6b3a764000061470d816005615883565b614717908561583b565b6147219190615827565b90505b6114248382615951565b6001600160a01b0382166147845760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a35565b61479060008383613c78565b80600260008282546147a29190615883565b90915550506001600160a01b038216600090815260208190526040812080548392906147cf908490615883565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361482160008383613c78565b5050565b600033614833858285614e89565b612eca858585614f03565b6001600160a01b0383166148a05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a35565b6001600160a01b0382166149015760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a35565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166149c25760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a35565b6149ce82600083613c78565b6001600160a01b03821660009081526020819052604090205481811015614a425760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a35565b6001600160a01b0383166000908152602081905260408120838303905560028054849290614a71908490615951565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3613c7883600084613c78565b614b306040805161018081019091526000610100820181815261012083018290526101408301829052610160830191909152819081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b6040805160808101825260008082526020820181905291810182905260608101919091526000806000806000806000896001600160a01b031663a8d5fd656040518163ffffffff1660e01b815260040161016060405180830381865afa158015614b9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614bc29190615b54565b604080516101008101825298895261ffff97881660208a015260ff96871690890152938616606088015294909116608086015263ffffffff1660a0850152911660c0830152151560e08201529a9950505050505050505050565b60003361144e818585614f03565b60408051600280825260608201835260009283929190602083019080368337019050509050600f60ff1681600081518110614c6757614c67615c3b565b602002602001019063ffffffff16908163ffffffff1681525050600081600181518110614c9657614c96615c3b565b63ffffffff9092166020928302919091019091015260405163883bdbfd60e01b81526000906001600160a01b0385169063883bdbfd90614cda908590600401615c51565b600060405180830381865afa158015614cf7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052614d1f9190810190615d32565b5090506000614d7b600f60000b83600081518110614d3f57614d3f615c3b565b602002602001015184600181518110614d5a57614d5a615c3b565b6020026020010151614d6c9190615dfd565b614d769190615e4d565b6150e2565b95945050505050565b6000613ec06001600160a01b03831680600160601b6154fa565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600754604051630c28945b60e31b81526004810184905260009182918291829182916001600160a01b031690636144a2d89060240160a060405180830381865afa158015614e1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614e3f9190615e8b565b6040805160a0810182526001600160481b0396871681529486166020860152929094169183019190915263ffffffff16606082015260ff9091166080820152979650505050505050565b6000614e958484613349565b90506000198114614efd5781811015614ef05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a35565b614efd848484840361483e565b50505050565b6001600160a01b038316614f675760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a35565b6001600160a01b038216614fc95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a35565b614fd4838383613c78565b6001600160a01b0383166000908152602081905260409020548181101561504c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a35565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290615083908490615883565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516150cf91815260200190565b60405180910390a3614efd848484613c78565b60008060008360020b126150f9578260020b615106565b8260020b61510690615ef0565b9050615115620d89e719615f0c565b60020b81111561514b5760405162461bcd60e51b81526020600482015260016024820152601560fa1b6044820152606401610a35565b60008160011660000361516257600160801b615174565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff16905060028216156151b35760806151ae826ffff97272373d413259a46990580e213a61583b565b901c90505b60048216156151dd5760806151d8826ffff2e50f5f656932ef12357cf3c7fdcc61583b565b901c90505b6008821615615207576080615202826fffe5caca7e10e4e61c3624eaa0941cd061583b565b901c90505b601082161561523157608061522c826fffcb9843d60f6159c9db58835c92664461583b565b901c90505b602082161561525b576080615256826fff973b41fa98c081472e6896dfb254c061583b565b901c90505b6040821615615285576080615280826fff2ea16466c96a3843ec78b326b5286161583b565b901c90505b60808216156152af5760806152aa826ffe5dee046a99a2a811c461f1969c305361583b565b901c90505b6101008216156152da5760806152d5826ffcbe86c7900a88aedcffc83b479aa3a461583b565b901c90505b610200821615615305576080615300826ff987a7253ac413176f2b074cf7815e5461583b565b901c90505b61040082161561533057608061532b826ff3392b0822b70005940c7a398e4b70f361583b565b901c90505b61080082161561535b576080615356826fe7159475a2c29b7443b29c7fa6e889d961583b565b901c90505b611000821615615386576080615381826fd097f3bdfd2022b8845ad8f792aa582561583b565b901c90505b6120008216156153b15760806153ac826fa9f746462d870fdf8a65dc1f90e061e561583b565b901c90505b6140008216156153dc5760806153d7826f70d869a156d2a1b890bb3df62baf32f761583b565b901c90505b618000821615615407576080615402826f31be135f97d08fd981231505542fcfa661583b565b901c90505b6201000082161561543357608061542e826f09aa508b5b7a84e1c677de54f3e99bc961583b565b901c90505b6202000082161561545e576080615459826e5d6af8dedb81196699c329225ee60461583b565b901c90505b62040000821615615488576080615483826d2216e584f5fa1ea926041bedfe9861583b565b901c90505b620800008216156154b05760806154ab826b048a170391f7dc42444e8fa261583b565b901c90505b60008460020b13156154cb576154c881600019615827565b90505b6154da64010000000082615f2e565b156154e65760016154e9565b60005b6114249060ff16602083901c615883565b6000808060001985870985870292508281108382030391505080600003615533576000841161552857600080fd5b508290049050610e0c565b80841161553f57600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b604051806101000160405280600081526020016000815260200160008152602001600015158152602001600081526020016000815260200160008152602001600081525090565b60006020828403121561560557600080fd5b5035919050565b600060208083528351808285015260005b818110156156395785810183015185820160400152820161561d565b8181111561564b576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b0381168114613c7b57600080fd5b6000806040838503121561568957600080fd5b823561569481615661565b946020939093013593505050565b6000806000606084860312156156b757600080fd5b83356156c281615661565b925060208401356156d281615661565b929592945050506040919091013590565b6000602082840312156156f557600080fd5b8135610e0c81615661565b6000806040838503121561571357600080fd5b50508035926020909101359150565b6000806040838503121561573557600080fd5b82359150602083013561574781615661565b809150509250929050565b6000806040838503121561576557600080fd5b823561577081615661565b9150602083013561574781615661565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000602082840312156157c957600080fd5b5051919050565b602080825260119082015270494353413a204c4f572042414c414e434560781b604082015260600190565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082615836576158366157fb565b500490565b600081600019048311821515161561585557615855615811565b500290565b6020808252600f908201526e1250d4d04e881513d3c814d3505313608a1b604082015260600190565b6000821982111561589657615896615811565b500190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b805180151581146158cf57600080fd5b919050565b6000602082840312156158e657600080fd5b610e0c826158bf565b600181811c9082168061590357607f821691505b60208210810361592357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600e908201526d494353413a204e4f205354414b4560901b604082015260600190565b60008282101561596357615963615811565b500390565b60006001820161597a5761597a615811565b5060010190565b60006020828403121561599357600080fd5b8151610e0c81615661565b600064ffffffffff808416806159b6576159b66157fb565b92169190910492915050565b60006001600160481b03808416806159b6576159b66157fb565b80516001600160481b03811681146158cf57600080fd5b805164ffffffffff811681146158cf57600080fd5b805161ffff811681146158cf57600080fd5b600080600080600080600080610100898b031215615a3757600080fd5b615a40896159dc565b9750615a4e60208a016159dc565b9650615a5c60408a016159f3565b9550615a6a60608a016159dc565b9450615a7860808a01615a08565b9350615a8660a08a016159dc565b9250615a9460c08a016159f3565b915060e08901516001600160801b0381168114615ab057600080fd5b809150509295985092959890939650565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b0381118282101715615af957615af9615ac1565b60405290565b604051601f8201601f191681016001600160401b0381118282101715615b2757615b27615ac1565b604052919050565b805160ff811681146158cf57600080fd5b805163ffffffff811681146158cf57600080fd5b600080600080600080600080888a03610160811215615b7257600080fd5b6080811215615b8057600080fd5b50615b89615ad7565b615b928a6159f3565b8152615ba060208b016159dc565b6020820152615bb160408b01615a08565b6040820152615bc260608b01615a08565b60608201529750615bd560808a01615a08565b9650615be360a08a01615b2f565b9550615bf160c08a01615a08565b9450615bff60e08a01615a08565b9350615c0e6101008a01615b40565b9250615c1d6101208a01615b2f565b9150615c2c6101408a016158bf565b90509295985092959890939650565b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b81811015615c8f57835163ffffffff1683529284019291840191600101615c6d565b50909695505050505050565b60006001600160401b03821115615cb457615cb4615ac1565b5060051b60200190565b600082601f830112615ccf57600080fd5b81516020615ce4615cdf83615c9b565b615aff565b82815260059290921b84018101918181019086841115615d0357600080fd5b8286015b84811015615d27578051615d1a81615661565b8352918301918301615d07565b509695505050505050565b60008060408385031215615d4557600080fd5b82516001600160401b0380821115615d5c57600080fd5b818501915085601f830112615d7057600080fd5b81516020615d80615cdf83615c9b565b82815260059290921b84018101918181019089841115615d9f57600080fd5b948201945b83861015615dcd5785518060060b8114615dbe5760008081fd5b82529482019490820190615da4565b91880151919650909350505080821115615de657600080fd5b50615df385828601615cbe565b9150509250929050565b60008160060b8360060b6000811281667fffffffffffff1901831281151615615e2857615e28615811565b81667fffffffffffff018313811615615e4357615e43615811565b5090039392505050565b60008160060b8360060b80615e6457615e646157fb565b667fffffffffffff19821460001982141615615e8257615e82615811565b90059392505050565b600080600080600060a08688031215615ea357600080fd5b615eac866159dc565b9450615eba602087016159dc565b9350615ec8604087016159dc565b9250615ed660608701615b40565b9150615ee460808701615b2f565b90509295509295909350565b6000600160ff1b8201615f0557615f05615811565b5060000390565b60008160020b627fffff198103615f2557615f25615811565b60000392915050565b600082615f3d57615f3d6157fb565b50069056fea2646970667358221220771a7db1885490d9697e1433c114b1222b41518751d407e9a84567b36c06247b64736f6c634300080f003360806040523480156200001157600080fd5b506040518060400160405280601181526020017057652041726520416c6c2074686520534160781b8152506040518060400160405280600681526020016557414154534160d01b81525081600090816200006c91906200013b565b5060016200007b82826200013b565b5050600c80546001600160a01b031916331790555062000207565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620000c157607f821691505b602082108103620000e257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200013657600081815260208120601f850160051c81016020861015620001115750805b601f850160051c820191505b8181101562000132578281556001016200011d565b5050505b505050565b81516001600160401b0381111562000157576200015762000096565b6200016f81620001688454620000ac565b84620000e8565b602080601f831160018114620001a757600084156200018e5750858301515b600019600386901b1c1916600185901b17855562000132565b600085815260208120601f198616915b82811015620001d857888601518255948401946001909101908401620001b7565b5085821015620001f75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611f6680620002176000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063536e3b69116100b857806395d89b411161007c57806395d89b41146102af578063a22cb465146102b7578063b88d4fde146102ca578063c87b56dd146102dd578063cad96cca146102f0578063e985e9c51461031057600080fd5b8063536e3b69146102495780636352211e1461025c57806366adc1371461026f57806370a08231146102825780638da5cb5b1461029557600080fd5b806323b872dd116100ff57806323b872dd146101cb5780632a55205a146101de5780632f745c591461021057806342842e0e146102235780634f6ccce71461023657600080fd5b806301ffc9a71461013c57806306fdde0314610164578063081812fc14610179578063095ea7b3146101a457806318160ddd146101b9575b600080fd5b61014f61014a36600461195e565b61034c565b60405190151581526020015b60405180910390f35b61016c61039d565b60405161015b91906119d3565b61018c6101873660046119e6565b61042f565b6040516001600160a01b03909116815260200161015b565b6101b76101b2366004611a1b565b610456565b005b6008545b60405190815260200161015b565b6101b76101d9366004611a45565b610570565b6101f16101ec366004611a81565b6105a1565b604080516001600160a01b03909316835260208301919091520161015b565b6101bd61021e366004611a1b565b6106a7565b6101b7610231366004611a45565b61073d565b6101bd6102443660046119e6565b610758565b6101b76102573660046119e6565b6107eb565b61018c61026a3660046119e6565b610844565b6101bd61027d366004611aa3565b6108a4565b6101bd610290366004611aa3565b610922565b73f447be386164dadfb5d1e7622613f289f17024d861018c565b61016c6109a8565b6101b76102c5366004611abe565b6109b7565b6101b76102d8366004611b10565b6109c6565b61016c6102eb3660046119e6565b6109fe565b6103036102fe3660046119e6565b610a65565b60405161015b9190611c44565b61014f61031e366004611c57565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000631a93499b60e11b6001600160e01b031983160161036e57506001919050565b636ad56fd360e11b6001600160e01b031983160161038e57506001919050565b61039782610af4565b92915050565b6060600080546103ac90611c8a565b80601f01602080910402602001604051908101604052809291908181526020018280546103d890611c8a565b80156104255780601f106103fa57610100808354040283529160200191610425565b820191906000526020600020905b81548152906001019060200180831161040857829003601f168201915b5050505050905090565b600061043a82610b19565b506000908152600460205260409020546001600160a01b031690565b600061046182610844565b9050806001600160a01b0316836001600160a01b0316036104d35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806104ef57506104ef813361031e565b6105615760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016104ca565b61056b8383610b78565b505050565b61057a3382610be6565b6105965760405162461bcd60e51b81526004016104ca90611cc4565b61056b838383610c65565b6000828152600a60209081526040808320805482518185028101850190935280835284938493929190849084015b8282101561061e57600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b0316818301528252600190920191016105cf565b505050509050600081511115610697578060008151811061064157610641611d12565b6020026020010151600001516127108260008151811061066357610663611d12565b6020026020010151602001516001600160601b0316866106839190611d3e565b61068d9190611d73565b92509250506106a0565b60008092509250505b9250929050565b60006106b283610922565b82106107145760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016104ca565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61056b838383604051806020016040528060008152506109c6565b600061076360085490565b82106107c65760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016104ca565b600882815481106107d9576107d9611d12565b90600052602060002001549050919050565b600c546001600160a01b031633146108385760405162461bcd60e51b815260206004820152601060248201526f5741415453413a204e4f54204943534160801b60448201526064016104ca565b61084181610e0c565b50565b6000818152600260205260408120546001600160a01b0316806103975760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104ca565b600c546000906001600160a01b031633146108f45760405162461bcd60e51b815260206004820152601060248201526f5741415453413a204e4f54204943534160801b60448201526064016104ca565b610902600b80546001019055565b600061090d600b5490565b905061091881610eb3565b6103978382610f77565b60006001600160a01b03821661098c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016104ca565b506001600160a01b031660009081526003602052604090205490565b6060600180546103ac90611c8a565b6109c23383836110c5565b5050565b6109d03383610be6565b6109ec5760405162461bcd60e51b81526004016104ca90611cc4565b6109f884848484611193565b50505050565b6060610a0982610b19565b6000610a136111c6565b90506000815111610a335760405180602001604052806000815250610a5e565b80610a3d8461124d565b604051602001610a4e929190611d87565b6040516020818303038152906040525b9392505050565b6060600a6000838152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015610ae957600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101610a9a565b505050509050919050565b60006001600160e01b0319821663780e9d6360e01b148061039757506103978261134e565b6000818152600260205260409020546001600160a01b03166108415760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016104ca565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610bad82610844565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610bf283610844565b9050806001600160a01b0316846001600160a01b03161480610c3957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610c5d5750836001600160a01b0316610c528461042f565b6001600160a01b0316145b949350505050565b826001600160a01b0316610c7882610844565b6001600160a01b031614610cdc5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016104ca565b6001600160a01b038216610d3e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016104ca565b610d4983838361139e565b610d54600082610b78565b6001600160a01b0383166000908152600360205260408120805460019290610d7d908490611db6565b90915550506001600160a01b0382166000908152600360205260408120805460019290610dab908490611dcd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000610e1782610844565b9050610e258160008461139e565b610e30600083610b78565b6001600160a01b0381166000908152600360205260408120805460019290610e59908490611db6565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081610eca57905050905061017181600081518110610f0957610f09611d12565b6020026020010151602001906001600160601b031690816001600160601b03168152505073f447be386164dadfb5d1e7622613f289f17024d881600081518110610f5557610f55611d12565b60209081029190910101516001600160a01b0390911690526109c282826113a9565b6001600160a01b038216610fcd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016104ca565b6000818152600260205260409020546001600160a01b0316156110325760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016104ca565b61103e6000838361139e565b6001600160a01b0382166000908152600360205260408120805460019290611067908490611dcd565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b0316036111265760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104ca565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61119e848484610c65565b6111aa848484846115c2565b6109f85760405162461bcd60e51b81526004016104ca90611de5565b606060006111d34661124d565b90506040518060400160405280601681526020017568747470733a2f2f6170692e69636f73612e70726f2f60501b81525081604051806040016040528060088152602001672f7761617473612f60c01b81525060405160200161123893929190611e37565b60405160208183030381529060405291505090565b6060816000036112745750506040805180820190915260018152600360fc1b602082015290565b8160005b811561129e578061128881611e7a565b91506112979050600a83611d73565b9150611278565b60008167ffffffffffffffff8111156112b9576112b9611afa565b6040519080825280601f01601f1916602001820160405280156112e3576020820181803683370190505b5090505b8415610c5d576112f8600183611db6565b9150611305600a86611e93565b611310906030611dcd565b60f81b81838151811061132557611325611d12565b60200101906001600160f81b031916908160001a905350611347600a86611d73565b94506112e7565b60006001600160e01b031982166380ac58cd60e01b148061137f57506001600160e01b03198216635b5e139f60e01b145b8061039757506301ffc9a760e01b6001600160e01b0319831614610397565b61056b8383836116c3565b6000805b82518110156115585760006001600160a01b03168382815181106113d3576113d3611d12565b6020026020010151600001516001600160a01b0316036114355760405162461bcd60e51b815260206004820152601b60248201527f526563697069656e742073686f756c642062652070726573656e74000000000060448201526064016104ca565b82818151811061144757611447611d12565b6020026020010151602001516001600160601b03166000036114ab5760405162461bcd60e51b815260206004820181905260248201527f526f79616c74792076616c75652073686f756c6420626520706f73697469766560448201526064016104ca565b8281815181106114bd576114bd611d12565b6020026020010151602001516001600160601b0316826114dd9190611dcd565b9150600a600085815260200190815260200160002083828151811061150457611504611d12565b6020908102919091018101518254600181018455600093845292829020815191909201516001600160601b0316600160a01b026001600160a01b03909116179101558061155081611e7a565b9150506113ad565b5061271081106115b85760405162461bcd60e51b815260206004820152602560248201527f526f79616c747920746f74616c2076616c75652073686f756c64206265203c20604482015264031303030360dc1b60648201526084016104ca565b61056b838361177b565b60006001600160a01b0384163b156116b857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611606903390899088908890600401611ea7565b6020604051808303816000875af1925050508015611641575060408051601f3d908101601f1916820190925261163e91810190611ee4565b60015b61169e573d80801561166f576040519150601f19603f3d011682016040523d82523d6000602084013e611674565b606091505b5080516000036116965760405162461bcd60e51b81526004016104ca90611de5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610c5d565b506001949350505050565b6001600160a01b03831661171e5761171981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611741565b816001600160a01b0316836001600160a01b0316146117415761174183826117b8565b6001600160a01b0382166117585761056b81611855565b826001600160a01b0316826001600160a01b03161461056b5761056b8282611904565b7f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df82826040516117ac929190611f01565b60405180910390a15050565b600060016117c584610922565b6117cf9190611db6565b600083815260076020526040902054909150808214611822576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061186790600190611db6565b6000838152600960205260408120546008805493945090928490811061188f5761188f611d12565b9060005260206000200154905080600883815481106118b0576118b0611d12565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806118e8576118e8611f1a565b6001900381819060005260206000200160009055905550505050565b600061190f83610922565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160e01b03198116811461084157600080fd5b60006020828403121561197057600080fd5b8135610a5e81611948565b60005b8381101561199657818101518382015260200161197e565b838111156109f85750506000910152565b600081518084526119bf81602086016020860161197b565b601f01601f19169290920160200192915050565b602081526000610a5e60208301846119a7565b6000602082840312156119f857600080fd5b5035919050565b80356001600160a01b0381168114611a1657600080fd5b919050565b60008060408385031215611a2e57600080fd5b611a37836119ff565b946020939093013593505050565b600080600060608486031215611a5a57600080fd5b611a63846119ff565b9250611a71602085016119ff565b9150604084013590509250925092565b60008060408385031215611a9457600080fd5b50508035926020909101359150565b600060208284031215611ab557600080fd5b610a5e826119ff565b60008060408385031215611ad157600080fd5b611ada836119ff565b915060208301358015158114611aef57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611b2657600080fd5b611b2f856119ff565b9350611b3d602086016119ff565b925060408501359150606085013567ffffffffffffffff80821115611b6157600080fd5b818701915087601f830112611b7557600080fd5b813581811115611b8757611b87611afa565b604051601f8201601f19908116603f01168101908382118183101715611baf57611baf611afa565b816040528281528a6020848701011115611bc857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600081518084526020808501945080840160005b83811015611c3957815180516001600160a01b031688528301516001600160601b03168388015260409096019590820190600101611c00565b509495945050505050565b602081526000610a5e6020830184611bec565b60008060408385031215611c6a57600080fd5b611c73836119ff565b9150611c81602084016119ff565b90509250929050565b600181811c90821680611c9e57607f821691505b602082108103611cbe57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611d5857611d58611d28565b500290565b634e487b7160e01b600052601260045260246000fd5b600082611d8257611d82611d5d565b500490565b60008351611d9981846020880161197b565b835190830190611dad81836020880161197b565b01949350505050565b600082821015611dc857611dc8611d28565b500390565b60008219821115611de057611de0611d28565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008451611e4981846020890161197b565b845190830190611e5d81836020890161197b565b8451910190611e7081836020880161197b565b0195945050505050565b600060018201611e8c57611e8c611d28565b5060010190565b600082611ea257611ea2611d5d565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611eda908301846119a7565b9695505050505050565b600060208284031215611ef657600080fd5b8151610a5e81611948565b828152604060208201526000610c5d6040830184611bec565b634e487b7160e01b600052603160045260246000fdfea26469706673582212206fae9180e5bc3b2fe969c2964f1e17e80de1e312a7226fdda5ba630a8a9e27fc64736f6c634300080f0033

Deployed Bytecode

0x6080604052600436106102675760003560e01c80637449f460116101445780639db820e8116100b6578063c1c9cabb1161007a578063c1c9cabb14610958578063d32aa2301461096e578063d52f66c614610981578063dd62ed3e146109ae578063e5a8a178146109ce578063eec0e91c146109e457600080fd5b80639db820e814610851578063a24daf6314610871578063a457c2d714610887578063a9059cbb146108a7578063bcead218146108c757600080fd5b80638a06a50c116101085780638a06a50c1461076f5780638dcedf7e1461078f578063900d58de146107bc578063919febd9146107f957806392db43831461082657806395d89b411461083c57600080fd5b80637449f460146106445780637cd87c68146106715780637d49a60d146106915780637f9e3f70146106b157806386a99e4a146106de57600080fd5b806337030bc0116101dd578063575a3ca6116101a1578063575a3ca61461055d5780635c9302c9146105735780635dbc0d28146105895780635ded9640146105b65780637088b292146105ee57806370a082311461060e57600080fd5b806337030bc0146103f8578063395093511461040e578063489a347f1461042e57806349189b8614610525578063506a37f11461053b57600080fd5b80631f4980051161022f5780631f4980051461033357806323b872dd146103635780632e3f581114610383578063313ce56714610399578063315e3c90146103b557806331da8822146103cb57600080fd5b8063056576a81461026c5780630585423d1461029f57806306fdde03146102cc578063095ea7b3146102ee57806318160ddd1461031e575b600080fd5b34801561027857600080fd5b5061028c6102873660046155f3565b610a11565b6040519081526020015b60405180910390f35b3480156102ab57600080fd5b5061028c6102ba3660046155f3565b60106020526000908152604090205481565b3480156102d857600080fd5b506102e1610d66565b604051610296919061560c565b3480156102fa57600080fd5b5061030e610309366004615676565b610df8565b6040519015158152602001610296565b34801561032a57600080fd5b5060025461028c565b34801561033f57600080fd5b50610348610e13565b60408051938452602084019290925290820152606001610296565b34801561036f57600080fd5b5061030e61037e3660046156a2565b61140f565b34801561038f57600080fd5b5061028c60195481565b3480156103a557600080fd5b5060405160098152602001610296565b3480156103c157600080fd5b5061028c601a5481565b3480156103d757600080fd5b5061028c6103e63660046155f3565b60156020526000908152604090205481565b34801561040457600080fd5b5061028c600c5481565b34801561041a57600080fd5b5061030e610429366004615676565b61142c565b34801561043a57600080fd5b506104bf6104493660046156e3565b601260205260009081526040902080546001909101546001600160401b0380831692600160401b810490911691600160801b82046001600160781b031691600160f81b900460ff16906001600160501b0380821691600160501b8104821691600160a01b82041690600160f01b900461ffff1688565b604080516001600160401b03998a1681529890971660208901526001600160781b039095169587019590955291151560608601526001600160501b03908116608086015290811660a085015290911660c083015261ffff1660e082015261010001610296565b34801561053157600080fd5b5061028c601c5481565b34801561054757600080fd5b5061055b610556366004615700565b611458565b005b34801561056957600080fd5b5061028c60215481565b34801561057f57600080fd5b5061028c600d5481565b34801561059557600080fd5b5061028c6105a43660046155f3565b60176020526000908152604090205481565b3480156105c257600080fd5b50600b546105d6906001600160a01b031681565b6040516001600160a01b039091168152602001610296565b3480156105fa57600080fd5b5061028c6106093660046155f3565b61169e565b34801561061a57600080fd5b5061028c6106293660046156e3565b6001600160a01b031660009081526020819052604090205490565b34801561065057600080fd5b5061028c61065f3660046155f3565b600e6020526000908152604090205481565b34801561067d57600080fd5b5061028c61068c3660046155f3565b611a90565b34801561069d57600080fd5b5061028c6106ac3660046155f3565b611d4a565b3480156106bd57600080fd5b5061028c6106cc3660046155f3565b60116020526000908152604090205481565b3480156106ea57600080fd5b506104bf6106f93660046156e3565b601860205260009081526040902080546001909101546001600160401b0380831692600160401b810490911691600160801b82046001600160781b031691600160f81b900460ff16906001600160501b0380821691600160501b8104821691600160a01b82041690600160f01b900461ffff1688565b34801561077b57600080fd5b5061028c61078a3660046155f3565b61208d565b34801561079b57600080fd5b5061028c6107aa3660046155f3565b60166020526000908152604090205481565b3480156107c857600080fd5b506107d16125a0565b604080519586526020860194909452928401919091526060830152608082015260a001610296565b34801561080557600080fd5b5061028c6108143660046155f3565b601d6020526000908152604090205481565b34801561083257600080fd5b5061028c60205481565b34801561084857600080fd5b506102e1612c24565b34801561085d57600080fd5b5061028c61086c3660046155f3565b612c33565b34801561087d57600080fd5b5061028c60145481565b34801561089357600080fd5b5061030e6108a2366004615676565b612e4f565b3480156108b357600080fd5b5061030e6108c2366004615676565b612ed5565b3480156108d357600080fd5b506104bf6108e23660046155f3565b601f60205260009081526040902080546001909101546001600160401b0380831692600160401b810490911691600160801b82046001600160781b031691600160f81b900460ff16906001600160501b0380821691600160501b8104821691600160a01b82041690600160f01b900461ffff1688565b34801561096457600080fd5b5061028c601b5481565b61028c61097c366004615722565b612ee9565b34801561098d57600080fd5b5061028c61099c3660046155f3565b600f6020526000908152604090205481565b3480156109ba57600080fd5b5061028c6109c9366004615752565b613349565b3480156109da57600080fd5b5061028c60135481565b3480156109f057600080fd5b5061028c6109ff3660046155f3565b601e6020526000908152604090205481565b6000600260055403610a3e5760405162461bcd60e51b8152600401610a3590615780565b60405180910390fd5b6002600555610a4b613374565b610a536155ac565b336000908152601260205260409020610a6c9082613c7e565b606081015115610ab35760405162461bcd60e51b8152602060048201526012602482015271494353413a205354414b452045584953545360701b6044820152606401610a35565b6007546040516370a0823160e01b815233600482015284916001600160a01b0316906370a0823190602401602060405180830381865afa158015610afb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1f91906157b7565b1015610b3d5760405162461bcd60e51b8152600401610a35906157d0565b6000610b47613d04565b90506000816040015164ffffffffff1685610b629190615827565b90506000600760009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bdd91906157b7565b610bef670de0b6b3a76400008861583b565b610bf99190615827565b905060008211610c1b5760405162461bcd60e51b8152600401610a359061585a565b6000610c2682613e36565b9050610c386000848960003386613ec6565b8260106000600d546001610c4c9190615883565b81526020019081526020016000206000828254610c699190615883565b90915550506007546040516323b872dd60e01b81526001600160a01b03909116906323b872dd90610ca290339030908c9060040161589b565b6020604051808303816000875af1158015610cc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce591906158d4565b5060405164ffffffffff4216600160281b600160a01b03602886901b1617600160a01b600160f01b0360a08a901b16176001600160f01b031960f084901b1617815233907fe788b3001ad37e70b4a10fb943ba800586546dabb1a708bfdc6e157dd85e14e0906020015b60405180910390a250506001600555949350505050565b606060038054610d75906158ef565b80601f0160208091040260200160405190810160405280929190818152602001828054610da1906158ef565b8015610dee5780601f10610dc357610100808354040283529160200191610dee565b820191906000526020600020905b815481529060010190602001808311610dd157829003601f168201915b5050505050905090565b6000610e02613374565b610e0c83836144c9565b9392505050565b6000806000600260055403610e3a5760405162461bcd60e51b8152600401610a3590615780565b6002600555610e47613374565b610e4f6155ac565b336000908152601260205260409020610e689082613c7e565b60608101511515600114610e8e5760405162461bcd60e51b8152600401610a3590615929565b600d54815103610fc15760075460c082015160405163a9059cbb60e01b815233600482015260248101919091526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610eef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1391906158d4565b50806040015160136000828254610f2a9190615883565b9091555050600080825260208083018290526040808401839052606084018390526080840183905260c0840183905260e0840183905233835260129091529020610f7490826144d7565b6040514264ffffffffff16815233907f691ec36fa17780b806f2a7b7c8311573d30645afa8fc2927fbf8af71df17577e9060200160405180910390a2600080600093509350935050611403565b60208082015160009081526011909152604080822054600d54835290822054610fea9190615951565b90506000806000806000600d548760e00151886020015161100b9190615883565b11156111875760008760200151600d546110259190615951565b9050670de0b6b3a7640000878960400151611040919061583b565b61104a9190615827565b88608001516110599190615883565b955061106a8860e0015182886145c7565b909650935061107a600385615827565b6014600082825461108b9190615883565b9091555061109c9050600385615827565b601a60008282546110ad9190615883565b909155506110be9050600385615827565b602160008282546110cf9190615883565b925050819055508760c0015192506110ec8860e0015182856145c7565b60075491945092506001600160a01b031663d240a93a61110d600285615827565b6040518263ffffffff1660e01b815260040161112b91815260200190565b600060405180830381600087803b15801561114557600080fd5b505af1158015611159573d6000803e3d6000fd5b5050505060028261116a9190615827565b601b600082825461117b9190615883565b90915550611262915050565b600754604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa1580156111d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f591906157b7565b670de0b6b3a76400008960c0015161120d919061583b565b6112179190615827565b9050670de0b6b3a7640000878960400151611232919061583b565b61123c9190615827565b886080015161124b9190615883565b95506112578187614637565b94508760c001519250505b8660400151601360008282546112789190615883565b9091555050600080885260208089018290526040808a0183905260608a0183905260808a0183905260c08a0183905260e08a01839052338352601290915290206112c290886144d7565b83602160008282546112d49190615883565b909155505084156112f2576112f2336112ed8688615883565b61472e565b811561136f5760075460405163a9059cbb60e01b8152336004820152602481018490526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015611349573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136d91906158d4565b505b337f691ec36fa17780b806f2a7b7c8311573d30645afa8fc2927fbf8af71df17577e6001600160b81b031960b886901b1668ffffffffffffffffff60701b607085901b1660286113bf898b615883565b6001600160481b0316901b4264ffffffffff161717176040516113e491815260200190565b60405180910390a26113f68486615883565b9950975090955050505050505b60016005559192909190565b6000611419613374565b611424848484614825565b949350505050565b60003361144e81858561143f8383613349565b6114499190615883565b61483e565b5060019392505050565b60026005540361147a5760405162461bcd60e51b8152600401610a3590615780565b60026005556007546040516370a0823160e01b815233600482015283916001600160a01b0316906370a0823190602401602060405180830381865afa1580156114c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114eb91906157b7565b10156115095760405162461bcd60e51b8152600401610a35906157d0565b600181101561154b5760405162461bcd60e51b815260206004820152600e60248201526d1250d4d04e881313d5c814d1515160921b6044820152606401610a35565b6000611555613d04565b90506000816040015164ffffffffff16846115709190615827565b9050600083600d546115829190615883565b61158d906001615883565b90506000600d5460016115a09190615883565b90505b81811015611619576115b58584615827565b6000828152600f6020526040812080549091906115d3908490615883565b909155506115e390508587615827565b6000828152600e602052604081208054909190611601908490615883565b9091555081905061161181615968565b9150506115a3565b506007546040516323b872dd60e01b81526001600160a01b03909116906323b872dd9061164e90339030908a9060040161589b565b6020604051808303816000875af115801561166d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169191906158d4565b5050600160055550505050565b60006002600554036116c25760405162461bcd60e51b8152600401610a3590615780565b60026005556116cf613374565b6116d76155ac565b3360009081526012602052604090206116f09082613c7e565b606081015115156001146117165760405162461bcd60e51b8152600401610a3590615929565b6007546040516370a0823160e01b815233600482015284916001600160a01b0316906370a0823190602401602060405180830381865afa15801561175e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178291906157b7565b10156117a05760405162461bcd60e51b8152600401610a35906157d0565b60006117aa613d04565b90506000816040015164ffffffffff16856117c59190615827565b90506000600760009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561181c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184091906157b7565b670de0b6b3a7640000878660c001516118599190615883565b611863919061583b565b61186d9190615827565b90506000821161188f5760405162461bcd60e51b8152600401610a359061585a565b60208085015160009081526011909152604080822054600d548352908220546118b89190615951565b90506000670de0b6b3a76400008287604001516118d5919061583b565b6118df9190615827565b905060006118ec84613e36565b600d546020890152604088018051919250869161190a908390615883565b905250608087018051839190611921908390615883565b90525060c0870180518a9190611938908390615883565b90525060e0870181905233600090815260126020526040902061195b90886144d7565b8460106000600d54600161196f9190615883565b8152602001908152602001600020600082825461198c9190615883565b90915550506007546040516323b872dd60e01b81526001600160a01b03909116906323b872dd906119c590339030908e9060040161589b565b6020604051808303816000875af11580156119e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0891906158d4565b5060405164ffffffffff4216600160281b600160a01b03602888901b1617600160a01b600160f01b0360a08c901b16176001600160f01b031960f084901b1617815233907f521348e3eb7a7581b15bc45eb12d596f2d6b1afecbbcd5456297a9af36569b099060200160405180910390a2505050604090930151600160055595945050505050565b6000600260055403611ab45760405162461bcd60e51b8152600401610a3590615780565b6002600555611ac1613374565b6009546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e90602401602060405180830381865afa158015611b0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b2e9190615981565b6001600160a01b031614611b765760405162461bcd60e51b815260206004820152600f60248201526e24a1a9a09d102727aa1027aba722a960891b6044820152606401610a35565b611b7e6155ac565b6000838152601f60205260409020611b969082613c7e565b60608101511515600114611bbc5760405162461bcd60e51b8152600401610a3590615929565b6020808201516000908152601e909152604080822054600d54835290822054611be59190615951565b90506000670de0b6b3a7640000828460400151611c02919061583b565b611c0c9190615827565b9050826040015160206000828254611c249190615883565b9091555050600080845260208085018290526040808601839052606086018390526080860183905260a0860183905260c0860183905260e08601839052878352601f9091529020611c7590846144d7565b8015611c8557611c85338261472e565b60095460405163536e3b6960e01b8152600481018790526001600160a01b039091169063536e3b6990602401600060405180830381600087803b158015611ccb57600080fd5b505af1158015611cdf573d6000803e3d6000fd5b505060405164ffffffffff421664ffffffffff19602886901b161781526bffffffffffffffffffffffff881692503391507fb7f0616ddeb345010290b104677427d25d0689b85ffe1be21abf86913be9efa89060200160405180910390a36001600555949350505050565b6000600260055403611d6e5760405162461bcd60e51b8152600401610a3590615780565b6002600555611d7b613374565b611d836155ac565b336000908152601860205260409020611d9c9082613c7e565b60608101511515600114611dc25760405162461bcd60e51b8152600401610a3590615929565b33600090815260208190526040902054831115611df15760405162461bcd60e51b8152600401610a35906157d0565b6000611dfb613d04565b90506000816040015164ffffffffff1685611e169190615827565b90506000611e2360025490565b670de0b6b3a7640000878660c00151611e3c9190615883565b611e46919061583b565b611e509190615827565b905060008211611e725760405162461bcd60e51b8152600401610a359061585a565b60208085015160009081526016909152604080822054600d54835290822054611e9b9190615951565b90506000670de0b6b3a7640000828760400151611eb8919061583b565b611ec29190615827565b60208088015160009081526017909152604080822054600d548352908220549293509091611ef09190615951565b90506000670de0b6b3a7640000828960400151611f0d919061583b565b611f179190615827565b90506000611f2486613e36565b600d5460208b015260408a0180519192508891611f42908390615883565b905250608089018051859190611f59908390615883565b90525060a089018051839190611f70908390615883565b90525060c0890180518c9190611f87908390615883565b90525060e08901819052336000908152601860205260409020611faa908a6144d7565b8660156000600d546001611fbe9190615883565b81526020019081526020016000206000828254611fdb9190615883565b925050819055508a601c6000828254611ff49190615883565b909155506120049050338c614962565b60405164ffffffffff4216600160281b600160a01b0360288a901b1617600160a01b600160f01b0360a08e901b16176001600160f01b031960f084901b1617815233907f0854f798f9f9df58c78bece0e97434349916af9a8737bc9b915500934bf8637b9060200160405180910390a25050506040909501516001600555979650505050505050565b60006002600554036120b15760405162461bcd60e51b8152600401610a3590615780565b60026005556120be613374565b6008546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e90602401602060405180830381865afa158015612107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212b9190615981565b6001600160a01b0316146121735760405162461bcd60e51b815260206004820152600f60248201526e24a1a9a09d102727aa1027aba722a960891b6044820152606401610a35565b6008546040516304c8b84160e21b8152600481018490526000916121ec916001600160a01b0390911690631322e10490602401602060405180830381865afa1580156121c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e79190615981565b614ac3565b905060006121f8613d04565b90506000826020015183600001516060015161ffff166122189190615951565b83516020015161223191906001600160481b031661583b565b90506000600a8360400151612246919061599e565b6122579064ffffffffff1683615827565b90506000811161229b5760405162461bcd60e51b815260206004820152600f60248201526e494353413a204c4f572056414c554560881b6044820152606401610a35565b600080826103e887604001516103e86122b49190615883565b6122be908661583b565b6122c89190615827565b6122d29190615951565b86516060015190915061ffff166115b30361230c578260646122f582606e61583b565b6122ff9190615827565b6123099190615951565b91505b6123168183615883565b602160008282546123279190615883565b909155506123469050338261233c8587615883565b6112ed9190615883565b6008546040516323b872dd60e01b81526001600160a01b03909116906323b872dd9061237a90339030908d9060040161589b565b600060405180830381600087803b15801561239457600080fd5b505af11580156123a8573d6000803e3d6000fd5b50506008546040516362d02f9960e11b8152600481018c9052600093506001600160a01b03909116915063c5a05f32906024016020604051808303816000875af11580156123fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241e9190615981565b60085460405163b947e62960e01b81523060048201529192506000916001600160a01b039091169063b947e62990602401602060405180830381865afa15801561246c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061249091906157b7565b6007549091506001600160a01b0316632f52ca366124af600184615951565b6040516001600160e01b031960e084901b16815260048101919091526001600160a01b03851660248201526044016020604051808303816000875af11580156124fc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061252091906157b7565b601b60008282546125319190615883565b909155505087515160405186815264ffffffffff9091169033907ff38c7e8f612bd11578c66e2677f9b54409206a11d6bc88cb4ef861d3181c85389060200160405180910390a3826125838587615883565b61258d9190615883565b60016005559a9950505050505050505050565b60008060008060006002600554036125ca5760405162461bcd60e51b8152600401610a3590615780565b60026005556125d7613374565b6125df6155ac565b3360009081526018602052604090206125f89082613c7e565b6060810151151560011461261e5760405162461bcd60e51b8152600401610a3590615929565b600d5481510361271357612636338260c0015161472e565b80604001516019600082825461264c9190615883565b909155505060c0810151601c8054600090612668908490615951565b9091555050600080825260208083018290526040808401839052606084018390526080840183905260a0840183905260c0840183905260e08401839052338352601890915290206126b990826144d7565b604080514264ffffffffff1681526000602082015233917f44c0595037945d4099be07a040af8225c659f4a81d57377ea76e0b6143f07615910160405180910390a260008060008060009550955095509550955050612c15565b60208082015160009081526016909152604080822054600d5483529082205461273c9190615951565b60208084015160009081526017909152604080822054600d54835290822054929350909161276a9190615951565b90506000806000806000806000600d548a60e001518b6020015161278e9190615883565b11156129745760008a60200151600d546127a89190615951565b9050670de0b6b3a76400008a8c604001516127c3919061583b565b6127cd9190615827565b8b608001516127dc9190615883565b97506127ed8b60e00151828a6145c7565b60408d01519199509550670de0b6b3a76400009061280c908b9061583b565b6128169190615827565b8b60a001516128259190615883565b95506128368b60e0015182886145c7565b60c08d015160e08e015192985090955093506128539082856145c7565b909350915060036128648387615883565b61286e9190615827565b6014600082825461287f9190615883565b90915550600390506128918387615883565b61289b9190615827565b601a60008282546128ac9190615883565b90915550600390506128be8387615883565b6128c89190615827565b602160008282546128d99190615883565b90915550506007546001600160a01b031663d240a93a6128fa600287615827565b6040518263ffffffff1660e01b815260040161291891815260200190565b600060405180830381600087803b15801561293257600080fd5b505af1158015612946573d6000803e3d6000fd5b505050506002846129579190615827565b601b60008282546129689190615883565b90915550612a20915050565b600061297f60025490565b670de0b6b3a76400008c60c00151612997919061583b565b6129a19190615827565b9050670de0b6b3a76400008a8c604001516129bc919061583b565b6129c69190615827565b8b608001516129d59190615883565b9750670de0b6b3a7640000898c604001516129f0919061583b565b6129fa9190615827565b8b60a00151612a099190615883565b9550612a158189614637565b96508a60c001519250505b896040015160196000828254612a369190615883565b909155505060c08a0151601c8054600090612a52908490615951565b90915550506000808b526020808c018290526040808d0183905260608d0183905260808d0183905260a08d0183905260c08d0183905260e08d0183905233835260189091529020612aa3908b6144d7565b8560216000828254612ab59190615883565b9091555060009050612ac78389615883565b1115612adc57612adc338761233c858b615883565b8415612b595760075460405163a9059cbb60e01b8152336004820152602481018790526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015612b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b5791906158d4565b505b337f44c0595037945d4099be07a040af8225c659f4a81d57377ea76e0b6143f076156001600160b81b031960b884901b1668ffffffffffffffffff60701b607089901b166028612ba98b8d615883565b6001600160481b0316901b4264ffffffffff161717176080866001600160801b0316901b876001600160801b031617604051612bef929190918252602082015260400190565b60405180910390a2612c018688615883565b9e50939c50929a5090985096505050505050505b60016005819055509091929394565b606060048054610d75906158ef565b6000600260055403612c575760405162461bcd60e51b8152600401610a3590615780565b6002600555612c64613374565b612c6c6155ac565b336000908152601860205260409020612c859082613c7e565b606081015115612ccc5760405162461bcd60e51b8152602060048201526012602482015271494353413a205354414b452045584953545360701b6044820152606401610a35565b33600090815260208190526040902054831115612cfb5760405162461bcd60e51b8152600401610a35906157d0565b6000612d05613d04565b90506000816040015164ffffffffff1685612d209190615827565b90506000612d2d60025490565b612d3f670de0b6b3a76400008861583b565b612d499190615827565b905060008211612d6b5760405162461bcd60e51b8152600401610a359061585a565b6000612d7682613e36565b9050612d886001848960003386613ec6565b8260156000600d546001612d9c9190615883565b81526020019081526020016000206000828254612db99190615883565b9250508190555086601c6000828254612dd29190615883565b90915550612de290503388614962565b60405164ffffffffff4216600160281b600160a01b03602886901b1617600160a01b600160f01b0360a08a901b16176001600160f01b031960f084901b1617815233907fef17058620372de420cb487f9cd2d4fde6511e5f6096d9ddf8f0834bd302804990602001610d4f565b60003381612e5d8286613349565b905083811015612ebd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a35565b612eca828686840361483e565b506001949350505050565b6000612edf613374565b610e0c8383614c1c565b6000600260055403612f0d5760405162461bcd60e51b8152600401610a3590615780565b6002600555612f1a613374565b600c54612f2990600e90615883565b600d5410612f6a5760405162461bcd60e51b815260206004820152600e60248201526d494353413a20544f4f204c41544560901b6044820152606401610a35565b46600114612fac5760405162461bcd60e51b815260206004820152600f60248201526e24a1a9a09d102120a21021a420a4a760891b6044820152606401610a35565b600080836001600160a01b03811661308957348614612fca57600080fd5b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2600052600a6020527fd0bcf4df132c65dad73803c5e5e1c826f151a3342680034a8a4c8e5f8eb0c13c546130249061301f906001600160a01b0316614c2a565b614d84565b92508261303587600160601b61583b565b61303f9190615827565b60405190925073f447be386164dadfb5d1e7622613f289f17024d89087156108fc029088906000818181858888f19350505050158015613083573d6000803e3d6000fd5b506131fd565b6001600160a01b038086166000818152600a60205260409020549091169073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48148015906130d157506001600160a01b038116155b156130db57600080fd5b6001600160a01b03861673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb481461316f5773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc1196001600160a01b038716016131525761313061301f82614c2a565b93508361314188600160601b61583b565b61314b9190615827565b9250613173565b61315e61301f82614c2a565b9350600160601b613141858961583b565b8692505b6040516323b872dd60e01b81526001600160a01b038316906323b872dd906131b790339073f447be386164dadfb5d1e7622613f289f17024d8908c9060040161589b565b6020604051808303816000875af11580156131d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131fa91906158d4565b50505b6000821161321d5760405162461bcd60e51b8152600401610a359061585a565b6009546040516366adc13760e01b81523360048201526000916001600160a01b0316906366adc137906024016020604051808303816000875af1158015613268573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061328c91906157b7565b905061329f600284600084600080613ec6565b82601d6000600d5460016132b39190615883565b815260200190815260200160002060008282546132d09190615883565b909155505060405164ffffffffff421664ffffffffff19602886901b161781526001600160a01b038716906bffffffffffffffffffffffff83169033907f818ab9605c396693e5f640cd603e9dd39debc6c90dd214a41bc1c683c71521bf9060200160405180910390a450506001600555949350505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60075460408051635c9302c960e01b815290516000926001600160a01b031691635c9302c99160048083019260209291908290030181865afa1580156133be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133e291906157b7565b905080600d541015613c7b576000600d54826133fe9190615951565b905060005b81811015613c78576000613415613d04565b90506000613424600d54614d9e565b905060008060135460106000600d5481526020019081526020016000205460106000600d5460016134559190615883565b81526020019081526020016000205461346e9190615883565b6134789190615951565b9150811561354d57670de0b6b3a7640000600f6000600d54600161349c9190615883565b8152602001908152602001600020546134b5919061583b565b670de0b6b3a76400006014546134cb919061583b565b856040015164ffffffffff16670de0b6b3a764000086604001516001600160481b03166134f8919061583b565b6135029190615827565b61350c9190615883565b6135169190615883565b90506135228282615827565b600d546000908152601160205260409020549091506135419082615883565b600060145590506135c4565b50600d5460008181526011602052604081205491600f9190613570906001615883565b815260200190815260200160002054846040015164ffffffffff16846040015161359a91906159c2565b6001600160481b03166135ad9190615883565b601460008282546135be9190615883565b90915550505b8060116000600d5460016135d89190615883565b8152602001908152602001600020819055508160106000600d5460016135fe9190615883565b8152602081019190915260400160002055600d5461361d906001615883565b7f877ae8179b54bd750e71120a4bdf606a021b47d9e3877dbce1a45aa47f83544760986013546001600160681b0316901b6030856001600160681b0316901b4265ffffffffffff1617178360405161367f929190918252602082015260400190565b60405180910390a260006013819055601954600d5480835260156020819052604084205484939290919084906136b6906001615883565b8152602001908152602001600020546136cf9190615883565b6136d99190615951565b9350831561383557670de0b6b3a7640000600f6000600d5460016136fd9190615883565b815260200190815260200160002054613716919061583b565b670de0b6b3a7640000601a5461372c919061583b565b876040015164ffffffffff16670de0b6b3a764000088604001516001600160481b0316613759919061583b565b6137639190615827565b61376d9190615883565b6137779190615883565b91506137838483615827565b600d546000908152601660205260409020549092506137a29083615883565b9150670de0b6b3a7640000600e6000600d5460016137c09190615883565b8152602001908152602001600020546137d9919061583b565b670de0b6b3a7640000601b546137ef919061583b565b6137f99190615883565b90506138058482615827565b600d546000908152601760205260409020549091506138249082615883565b6000601a819055601b5590506138f3565b5050600d54600081815260166020908152604080832054601790925282205490929091600f91613866906001615883565b815260200190815260200160002054866040015164ffffffffff16866040015161389091906159c2565b6001600160481b03166138a39190615883565b601a60008282546138b49190615883565b9091555050600d54600e906000906138cd906001615883565b815260200190815260200160002054601b60008282546138ed9190615883565b90915550505b8160166000600d5460016139079190615883565b8152602001908152602001600020819055508060176000600d54600161392d9190615883565b8152602001908152602001600020819055508360156000600d5460016139539190615883565b8152602081019190915260400160002055600d54613972906001615883565b7f2293c18662e2dd67e3a27c045f8d72254b7ffd71ec7cef7b8ac0dd4064d7f48460986019546001600160681b0316901b6030876001600160681b0316901b4265ffffffffffff16171784846040516139de939291909283526020830191909152604082015260600190565b60405180910390a26000601981905560208054600d54808452601d9283905260408420549192908490613a12906001615883565b815260200190815260200160002054613a2b9190615883565b613a359190615951565b94508415613b0a57670de0b6b3a7640000600f6000600d546001613a599190615883565b815260200190815260200160002054613a72919061583b565b670de0b6b3a7640000602154613a88919061583b565b886040015164ffffffffff16670de0b6b3a764000089604001516001600160481b0316613ab5919061583b565b613abf9190615827565b613ac99190615883565b613ad39190615883565b9050613adf8582615827565b600d546000908152601e6020526040902054909150613afe9082615883565b60006021559050613b81565b50600d546000818152601e602052604081205491600f9190613b2d906001615883565b815260200190815260200160002054876040015164ffffffffff168760400151613b5791906159c2565b6001600160481b0316613b6a9190615883565b60216000828254613b7b9190615883565b90915550505b80601e6000600d546001613b959190615883565b81526020019081526020016000208190555084601d6000600d546001613bbb9190615883565b8152602081019190915260400160002055600d54613bda906001615883565b7fc9ad92dd5085bdc5c481f558e473cd6f74135d5b8d4e72f2729edc931e588ccd60986020546001600160681b0316901b6030886001600160681b0316901b4265ffffffffffff16171783604051613c3c929190918252602082015260400190565b60405180910390a260006020819055600d805491613c5983615968565b9190505550505050505050508080613c7090615968565b915050613403565b50505b50565b81546001600160401b038082168352600160401b8204166020830152600160801b81046001600160781b03166040830152600160f81b900460ff16151560608201526001909101546001600160501b038082166080840152600160501b8204811660a0840152600160a01b82041660c0830152600160f01b900461ffff1660e090910152565b6040805161010081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810191909152600080600080600080600080600660009054906101000a90046001600160a01b03166001600160a01b031663c31245256040518163ffffffff1660e01b815260040161010060405180830381865afa158015613da5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dc99190615a1a565b60408051610100810182526001600160481b03998a168152978916602089015264ffffffffff96871690880152938716606087015261ffff90921660808601529490941660a0840152921660c08201526001600160801b0390911660e08201529998505050505050505050565b6000601e613e4d6064670de0b6b3a7640000615827565b8310613e5c5750610168613ec0565b613e706103e8670de0b6b3a7640000615827565b8310613e7f575061010e613ec0565b613e93612710670de0b6b3a7640000615827565b8310613ea1575060b4613ec0565b613eb6620186a0670de0b6b3a7640000615827565b8310613ec05750605a5b92915050565b60ff86166140c957604051806101000160405280600d546001600160401b03168152602001600d546001600160401b03168152602001866001600160781b0316815260200160011515815260200160006001600160501b0316815260200160006001600160501b03168152602001856001600160501b031681526020018261ffff1681525060126000846001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a8154816001600160401b0302191690836001600160401b0316021790555060208201518160000160086101000a8154816001600160401b0302191690836001600160401b0316021790555060408201518160000160106101000a8154816001600160781b0302191690836001600160781b03160217905550606082015181600001601f6101000a81548160ff02191690831515021790555060808201518160010160006101000a8154816001600160501b0302191690836001600160501b0316021790555060a082015181600101600a6101000a8154816001600160501b0302191690836001600160501b0316021790555060c08201518160010160146101000a8154816001600160501b0302191690836001600160501b0316021790555060e082015181600101601e6101000a81548161ffff021916908361ffff1602179055509050506144c1565b60001960ff8716016142d057604051806101000160405280600d546001600160401b03168152602001600d546001600160401b03168152602001866001600160781b0316815260200160011515815260200160006001600160501b0316815260200160006001600160501b03168152602001856001600160501b031681526020018261ffff1681525060186000846001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a8154816001600160401b0302191690836001600160401b0316021790555060208201518160000160086101000a8154816001600160401b0302191690836001600160401b0316021790555060408201518160000160106101000a8154816001600160781b0302191690836001600160781b03160217905550606082015181600001601f6101000a81548160ff02191690831515021790555060808201518160010160006101000a8154816001600160501b0302191690836001600160501b0316021790555060a082015181600101600a6101000a8154816001600160501b0302191690836001600160501b0316021790555060c08201518160010160146101000a8154816001600160501b0302191690836001600160501b0316021790555060e082015181600101601e6101000a81548161ffff021916908361ffff1602179055509050506144c1565b60011960ff87160161026757604051806101000160405280600d546001600160401b03168152602001600d546001600160401b03168152602001866001600160781b0316815260200160011515815260200160006001600160501b0316815260200160006001600160501b03168152602001856001600160501b031681526020018261ffff16815250601f600085815260200190815260200160002060008201518160000160006101000a8154816001600160401b0302191690836001600160401b0316021790555060208201518160000160086101000a8154816001600160401b0302191690836001600160401b0316021790555060408201518160000160106101000a8154816001600160781b0302191690836001600160781b03160217905550606082015181600001601f6101000a81548160ff02191690831515021790555060808201518160010160006101000a8154816001600160501b0302191690836001600160501b0316021790555060a082015181600101600a6101000a8154816001600160501b0302191690836001600160501b0316021790555060c08201518160010160146101000a8154816001600160501b0302191690836001600160501b0316021790555060e082015181600101601e6101000a81548161ffff021916908361ffff1602179055509050505b505050505050565b60003361144e81858561483e565b805182546020830151604084015160608501511515600160f81b026001600160f81b036001600160781b03909216600160801b02919091166001600160801b036001600160401b03938416600160401b026fffffffffffffffffffffffffffffffff19909516939095169290921792909217929092169190911717825560808101516001909201805460a083015160c084015160e09094015161ffff16600160f01b026001600160f01b036001600160501b03958616600160a01b02166001600160a01b03928616600160501b026001600160a01b03199094169590961694909417919091171692909217179055565b60008080808515614624576000866145e7670de0b6b3a76400008a61583b565b6145f19190615827565b905080614606670de0b6b3a76400008861583b565b6146109190615827565b925061461c8387615951565b91505061462b565b5060009050835b90969095509350505050565b60008161464d6064670de0b6b3a7640000615827565b841061468257670de0b6b3a7640000614667816014615883565b614671908561583b565b61467b9190615827565b9050614724565b6146966103e8670de0b6b3a7640000615827565b84106146b057670de0b6b3a764000061466781600f615883565b6146c4612710670de0b6b3a7640000615827565b84106146de57670de0b6b3a764000061466781600a615883565b6146f3620186a0670de0b6b3a7640000615827565b841061472457670de0b6b3a764000061470d816005615883565b614717908561583b565b6147219190615827565b90505b6114248382615951565b6001600160a01b0382166147845760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a35565b61479060008383613c78565b80600260008282546147a29190615883565b90915550506001600160a01b038216600090815260208190526040812080548392906147cf908490615883565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a361482160008383613c78565b5050565b600033614833858285614e89565b612eca858585614f03565b6001600160a01b0383166148a05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a35565b6001600160a01b0382166149015760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a35565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166149c25760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a35565b6149ce82600083613c78565b6001600160a01b03821660009081526020819052604090205481811015614a425760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a35565b6001600160a01b0383166000908152602081905260408120838303905560028054849290614a71908490615951565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3613c7883600084613c78565b614b306040805161018081019091526000610100820181815261012083018290526101408301829052610160830191909152819081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b6040805160808101825260008082526020820181905291810182905260608101919091526000806000806000806000896001600160a01b031663a8d5fd656040518163ffffffff1660e01b815260040161016060405180830381865afa158015614b9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614bc29190615b54565b604080516101008101825298895261ffff97881660208a015260ff96871690890152938616606088015294909116608086015263ffffffff1660a0850152911660c0830152151560e08201529a9950505050505050505050565b60003361144e818585614f03565b60408051600280825260608201835260009283929190602083019080368337019050509050600f60ff1681600081518110614c6757614c67615c3b565b602002602001019063ffffffff16908163ffffffff1681525050600081600181518110614c9657614c96615c3b565b63ffffffff9092166020928302919091019091015260405163883bdbfd60e01b81526000906001600160a01b0385169063883bdbfd90614cda908590600401615c51565b600060405180830381865afa158015614cf7573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052614d1f9190810190615d32565b5090506000614d7b600f60000b83600081518110614d3f57614d3f615c3b565b602002602001015184600181518110614d5a57614d5a615c3b565b6020026020010151614d6c9190615dfd565b614d769190615e4d565b6150e2565b95945050505050565b6000613ec06001600160a01b03831680600160601b6154fa565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600754604051630c28945b60e31b81526004810184905260009182918291829182916001600160a01b031690636144a2d89060240160a060405180830381865afa158015614e1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614e3f9190615e8b565b6040805160a0810182526001600160481b0396871681529486166020860152929094169183019190915263ffffffff16606082015260ff9091166080820152979650505050505050565b6000614e958484613349565b90506000198114614efd5781811015614ef05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a35565b614efd848484840361483e565b50505050565b6001600160a01b038316614f675760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a35565b6001600160a01b038216614fc95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a35565b614fd4838383613c78565b6001600160a01b0383166000908152602081905260409020548181101561504c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a35565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290615083908490615883565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516150cf91815260200190565b60405180910390a3614efd848484613c78565b60008060008360020b126150f9578260020b615106565b8260020b61510690615ef0565b9050615115620d89e719615f0c565b60020b81111561514b5760405162461bcd60e51b81526020600482015260016024820152601560fa1b6044820152606401610a35565b60008160011660000361516257600160801b615174565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff16905060028216156151b35760806151ae826ffff97272373d413259a46990580e213a61583b565b901c90505b60048216156151dd5760806151d8826ffff2e50f5f656932ef12357cf3c7fdcc61583b565b901c90505b6008821615615207576080615202826fffe5caca7e10e4e61c3624eaa0941cd061583b565b901c90505b601082161561523157608061522c826fffcb9843d60f6159c9db58835c92664461583b565b901c90505b602082161561525b576080615256826fff973b41fa98c081472e6896dfb254c061583b565b901c90505b6040821615615285576080615280826fff2ea16466c96a3843ec78b326b5286161583b565b901c90505b60808216156152af5760806152aa826ffe5dee046a99a2a811c461f1969c305361583b565b901c90505b6101008216156152da5760806152d5826ffcbe86c7900a88aedcffc83b479aa3a461583b565b901c90505b610200821615615305576080615300826ff987a7253ac413176f2b074cf7815e5461583b565b901c90505b61040082161561533057608061532b826ff3392b0822b70005940c7a398e4b70f361583b565b901c90505b61080082161561535b576080615356826fe7159475a2c29b7443b29c7fa6e889d961583b565b901c90505b611000821615615386576080615381826fd097f3bdfd2022b8845ad8f792aa582561583b565b901c90505b6120008216156153b15760806153ac826fa9f746462d870fdf8a65dc1f90e061e561583b565b901c90505b6140008216156153dc5760806153d7826f70d869a156d2a1b890bb3df62baf32f761583b565b901c90505b618000821615615407576080615402826f31be135f97d08fd981231505542fcfa661583b565b901c90505b6201000082161561543357608061542e826f09aa508b5b7a84e1c677de54f3e99bc961583b565b901c90505b6202000082161561545e576080615459826e5d6af8dedb81196699c329225ee60461583b565b901c90505b62040000821615615488576080615483826d2216e584f5fa1ea926041bedfe9861583b565b901c90505b620800008216156154b05760806154ab826b048a170391f7dc42444e8fa261583b565b901c90505b60008460020b13156154cb576154c881600019615827565b90505b6154da64010000000082615f2e565b156154e65760016154e9565b60005b6114249060ff16602083901c615883565b6000808060001985870985870292508281108382030391505080600003615533576000841161552857600080fd5b508290049050610e0c565b80841161553f57600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b604051806101000160405280600081526020016000815260200160008152602001600015158152602001600081526020016000815260200160008152602001600081525090565b60006020828403121561560557600080fd5b5035919050565b600060208083528351808285015260005b818110156156395785810183015185820160400152820161561d565b8181111561564b576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b0381168114613c7b57600080fd5b6000806040838503121561568957600080fd5b823561569481615661565b946020939093013593505050565b6000806000606084860312156156b757600080fd5b83356156c281615661565b925060208401356156d281615661565b929592945050506040919091013590565b6000602082840312156156f557600080fd5b8135610e0c81615661565b6000806040838503121561571357600080fd5b50508035926020909101359150565b6000806040838503121561573557600080fd5b82359150602083013561574781615661565b809150509250929050565b6000806040838503121561576557600080fd5b823561577081615661565b9150602083013561574781615661565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000602082840312156157c957600080fd5b5051919050565b602080825260119082015270494353413a204c4f572042414c414e434560781b604082015260600190565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082615836576158366157fb565b500490565b600081600019048311821515161561585557615855615811565b500290565b6020808252600f908201526e1250d4d04e881513d3c814d3505313608a1b604082015260600190565b6000821982111561589657615896615811565b500190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b805180151581146158cf57600080fd5b919050565b6000602082840312156158e657600080fd5b610e0c826158bf565b600181811c9082168061590357607f821691505b60208210810361592357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600e908201526d494353413a204e4f205354414b4560901b604082015260600190565b60008282101561596357615963615811565b500390565b60006001820161597a5761597a615811565b5060010190565b60006020828403121561599357600080fd5b8151610e0c81615661565b600064ffffffffff808416806159b6576159b66157fb565b92169190910492915050565b60006001600160481b03808416806159b6576159b66157fb565b80516001600160481b03811681146158cf57600080fd5b805164ffffffffff811681146158cf57600080fd5b805161ffff811681146158cf57600080fd5b600080600080600080600080610100898b031215615a3757600080fd5b615a40896159dc565b9750615a4e60208a016159dc565b9650615a5c60408a016159f3565b9550615a6a60608a016159dc565b9450615a7860808a01615a08565b9350615a8660a08a016159dc565b9250615a9460c08a016159f3565b915060e08901516001600160801b0381168114615ab057600080fd5b809150509295985092959890939650565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b0381118282101715615af957615af9615ac1565b60405290565b604051601f8201601f191681016001600160401b0381118282101715615b2757615b27615ac1565b604052919050565b805160ff811681146158cf57600080fd5b805163ffffffff811681146158cf57600080fd5b600080600080600080600080888a03610160811215615b7257600080fd5b6080811215615b8057600080fd5b50615b89615ad7565b615b928a6159f3565b8152615ba060208b016159dc565b6020820152615bb160408b01615a08565b6040820152615bc260608b01615a08565b60608201529750615bd560808a01615a08565b9650615be360a08a01615b2f565b9550615bf160c08a01615a08565b9450615bff60e08a01615a08565b9350615c0e6101008a01615b40565b9250615c1d6101208a01615b2f565b9150615c2c6101408a016158bf565b90509295985092959890939650565b634e487b7160e01b600052603260045260246000fd5b6020808252825182820181905260009190848201906040850190845b81811015615c8f57835163ffffffff1683529284019291840191600101615c6d565b50909695505050505050565b60006001600160401b03821115615cb457615cb4615ac1565b5060051b60200190565b600082601f830112615ccf57600080fd5b81516020615ce4615cdf83615c9b565b615aff565b82815260059290921b84018101918181019086841115615d0357600080fd5b8286015b84811015615d27578051615d1a81615661565b8352918301918301615d07565b509695505050505050565b60008060408385031215615d4557600080fd5b82516001600160401b0380821115615d5c57600080fd5b818501915085601f830112615d7057600080fd5b81516020615d80615cdf83615c9b565b82815260059290921b84018101918181019089841115615d9f57600080fd5b948201945b83861015615dcd5785518060060b8114615dbe5760008081fd5b82529482019490820190615da4565b91880151919650909350505080821115615de657600080fd5b50615df385828601615cbe565b9150509250929050565b60008160060b8360060b6000811281667fffffffffffff1901831281151615615e2857615e28615811565b81667fffffffffffff018313811615615e4357615e43615811565b5090039392505050565b60008160060b8360060b80615e6457615e646157fb565b667fffffffffffff19821460001982141615615e8257615e82615811565b90059392505050565b600080600080600060a08688031215615ea357600080fd5b615eac866159dc565b9450615eba602087016159dc565b9350615ec8604087016159dc565b9250615ed660608701615b40565b9150615ee460808701615b2f565b90509295509295909350565b6000600160ff1b8201615f0557615f05615811565b5060000390565b60008160020b627fffff198103615f2557615f25615811565b60000392915050565b600082615f3d57615f3d6157fb565b50069056fea2646970667358221220771a7db1885490d9697e1433c114b1222b41518751d407e9a84567b36c06247b64736f6c634300080f0033

Deployed Bytecode Sourcemap

125279:51639:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;152239:1662;;;;;;;;;;-1:-1:-1;152239:1662:0;;;;;:::i;:::-;;:::i;:::-;;;345:25:1;;;333:2;318:18;152239:1662:0;;;;;;;;127614:52;;;;;;;;;;-1:-1:-1;127614:52:0;;;;;:::i;:::-;;;;;;;;;;;;;;6219:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;176153:243::-;;;;;;;;;;-1:-1:-1;176153:243:0;;;;;:::i;:::-;;:::i;:::-;;;1604:14:1;;1597:22;1579:41;;1567:2;1552:18;176153:243:0;1439:187:1;7339:108:0;;;;;;;;;;-1:-1:-1;7427:12:0;;7339:108;;156333:4095;;;;;;;;;;;;;:::i;:::-;;;;1833:25:1;;;1889:2;1874:18;;1867:34;;;;1917:18;;;1910:34;1821:2;1806:18;156333:4095:0;1631:319:1;176645:270:0;;;;;;;;;;-1:-1:-1;176645:270:0;;;;;:::i;:::-;;:::i;128186:59::-;;;;;;;;;;;;;;;;130415:143;;;;;;;;;;-1:-1:-1;130415:143:0;;130549:1;2558:36:1;;2546:2;2531:18;130415:143:0;2416:184:1;128252:59:0;;;;;;;;;;;;;;;;127946:52;;;;;;;;;;-1:-1:-1;127946:52:0;;;;;:::i;:::-;;;;;;;;;;;;;;127355:24;;;;;;;;;;;;;;;;10055:238;;;;;;;;;;-1:-1:-1;10055:238:0;;;;;:::i;:::-;;:::i;127732:48::-;;;;;;;;;;-1:-1:-1;127732:48:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;127732:48:0;;;;-1:-1:-1;;;127732:48:0;;;;;;-1:-1:-1;;;127732:48:0;;-1:-1:-1;;;;;127732:48:0;;-1:-1:-1;;;127732:48:0;;;;;-1:-1:-1;;;;;127732:48:0;;;;-1:-1:-1;;;127732:48:0;;;;;-1:-1:-1;;;127732:48:0;;;;-1:-1:-1;;;127732:48:0;;;;;;;;;;-1:-1:-1;;;;;3237:15:1;;;3219:34;;3289:15;;;;3284:2;3269:18;;3262:43;-1:-1:-1;;;;;3341:45:1;;;3321:18;;;3314:73;;;;3430:14;;3423:22;3418:2;3403:18;;3396:50;-1:-1:-1;;;;;3524:15:1;;;3518:3;3503:19;;3496:44;3577:15;;;3571:3;3556:19;;3549:44;3630:15;;;3624:3;3609:19;;3602:44;3695:6;3683:19;3677:3;3662:19;;3655:48;3169:3;3154:19;127732:48:0;2857:852:1;128384:54:0;;;;;;;;;;;;;;;;175109:769;;;;;;;;;;-1:-1:-1;175109:769:0;;;;;:::i;:::-;;:::i;:::-;;128706:58;;;;;;;;;;;;;;;;127386:25;;;;;;;;;;;;;;;;128068:56;;;;;;;;;;-1:-1:-1;128068:56:0;;;;;:::i;:::-;;;;;;;;;;;;;;127282:42;;;;;;;;;;-1:-1:-1;127282:42:0;;;;-1:-1:-1;;;;;127282:42:0;;;;;;-1:-1:-1;;;;;4131:32:1;;;4113:51;;4101:2;4086:18;127282:42:0;3967:203:1;154098:2105:0;;;;;;;;;;-1:-1:-1;154098:2105:0;;;;;:::i;:::-;;:::i;7510:127::-;;;;;;;;;;-1:-1:-1;7510:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;7611:18:0;7584:7;7611:18;;;;;;;;;;;;7510:127;127473:52;;;;;;;;;;-1:-1:-1;127473:52:0;;;;;:::i;:::-;;;;;;;;;;;;;;173581:1520;;;;;;;;;;-1:-1:-1;173581:1520:0;;;;;:::i;:::-;;:::i;162498:2409::-;;;;;;;;;;-1:-1:-1;162498:2409:0;;;;;:::i;:::-;;:::i;127673:52::-;;;;;;;;;;-1:-1:-1;127673:52:0;;;;;:::i;:::-;;;;;;;;;;;;;;128131:48;;;;;;;;;;-1:-1:-1;128131:48:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;128131:48:0;;;;-1:-1:-1;;;128131:48:0;;;;;;-1:-1:-1;;;128131:48:0;;-1:-1:-1;;;;;128131:48:0;;-1:-1:-1;;;128131:48:0;;;;;-1:-1:-1;;;;;128131:48:0;;;;-1:-1:-1;;;128131:48:0;;;;;-1:-1:-1;;;128131:48:0;;;;-1:-1:-1;;;128131:48:0;;;;;;150464:1582;;;;;;;;;;-1:-1:-1;150464:1582:0;;;;;:::i;:::-;;:::i;128005:56::-;;;;;;;;;;-1:-1:-1;128005:56:0;;;;;:::i;:::-;;;;;;;;;;;;;;165070:5347;;;;;;;;;;;;;:::i;:::-;;;;4434:25:1;;;4490:2;4475:18;;4468:34;;;;4518:18;;;4511:34;;;;4576:2;4561:18;;4554:34;4619:3;4604:19;;4597:35;4421:3;4406:19;165070:5347:0;4175:463:1;128471:51:0;;;;;;;;;;-1:-1:-1;128471:51:0;;;;;:::i;:::-;;;;;;;;;;;;;;128641:58;;;;;;;;;;;;;;;;6438:104;;;;;;;;;;;;;:::i;160622:1679::-;;;;;;;;;;-1:-1:-1;160622:1679:0;;;;;:::i;:::-;;:::i;127853:59::-;;;;;;;;;;;;;;;;10796:436;;;;;;;;;;-1:-1:-1;10796:436:0;;;;;:::i;:::-;;:::i;176404:233::-;;;;;;;;;;-1:-1:-1;176404:233:0;;;;;:::i;:::-;;:::i;128587:47::-;;;;;;;;;;-1:-1:-1;128587:47:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;128587:47:0;;;;-1:-1:-1;;;128587:47:0;;;;;;-1:-1:-1;;;128587:47:0;;-1:-1:-1;;;;;128587:47:0;;-1:-1:-1;;;128587:47:0;;;;;-1:-1:-1;;;;;128587:47:0;;;;-1:-1:-1;;;128587:47:0;;;;;-1:-1:-1;;;128587:47:0;;;;-1:-1:-1;;;128587:47:0;;;;;;128318:59;;;;;;;;;;;;;;;;170681:2764;;;;;;:::i;:::-;;:::i;127532:52::-;;;;;;;;;;-1:-1:-1;127532:52:0;;;;;:::i;:::-;;;;;;;;;;;;;;8099:151;;;;;;;;;;-1:-1:-1;8099:151:0;;;;;:::i;:::-;;:::i;127787:59::-;;;;;;;;;;;;;;;;128529:51;;;;;;;;;;-1:-1:-1;128529:51:0;;;;;:::i;:::-;;;;;;;;;;;;;;152239:1662;152354:7;18656:1;19254:7;;:19;19246:63;;;;-1:-1:-1;;;19246:63:0;;;;;;;:::i;:::-;;;;;;;;;18656:1;19387:7;:18;152379:19:::1;:17;:19::i;:::-;152446:23;;:::i;:::-;152502:10;152491:22;::::0;;;:10:::1;:22;::::0;;;;152480:41:::1;::::0;152515:5;152480:10:::1;:41::i;:::-;152542:15;::::0;::::1;::::0;:24:::1;152534:68;;;::::0;-1:-1:-1;;;152534:68:0;;5918:2:1;152534:68:0::1;::::0;::::1;5900:21:1::0;5957:2;5937:18;;;5930:30;-1:-1:-1;;;5976:18:1;;;5969:48;6034:18;;152534:68:0::1;5716:342:1::0;152534:68:0::1;152623:5;::::0;:27:::1;::::0;-1:-1:-1;;;152623:27:0;;152639:10:::1;152623:27;::::0;::::1;4113:51:1::0;152654:6:0;;-1:-1:-1;;;;;152623:5:0::1;::::0;:15:::1;::::0;4086:18:1;;152623:27:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:37;;152615:80;;;;-1:-1:-1::0;;;152615:80:0::1;;;;;;;:::i;:::-;152770:28;152801:17;:15;:17::i;:::-;152770:48;;152829:19;152860:10;:20;;;152851:29;;:6;:29;;;;:::i;:::-;152829:51;;152893:19;152947:5;;;;;;;;;-1:-1:-1::0;;;;;152947:5:0::1;-1:-1:-1::0;;;;;152947:17:0::1;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;152916:27;125671:4;152916:6:::0;:27:::1;:::i;:::-;152915:51;;;;:::i;:::-;152893:73;;153009:1;152995:11;:15;152987:56;;;;-1:-1:-1::0;;;152987:56:0::1;;;;;;;:::i;:::-;153056:22;153081:32;153101:11;153081:19;:32::i;:::-;153056:57;;153154:167;125497:1;153208:11;153234:6;153255:1;153271:10;153296:14;153154:9;:167::i;:::-;153418:11;153384:14;:30;153399:10;;153412:1;153399:14;;;;:::i;:::-;153384:30;;;;;;;;;;;;:45;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;153508:5:0::1;::::0;:53:::1;::::0;-1:-1:-1;;;153508:53:0;;-1:-1:-1;;;;;153508:5:0;;::::1;::::0;:18:::1;::::0;:53:::1;::::0;153527:10:::1;::::0;153547:4:::1;::::0;153554:6;;153508:53:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;153579:283:0::1;::::0;153608:33:::1;153624:15;153608:33;-1:-1:-1::0;;;;;;;153699:2:0::1;153663:38:::0;;;;153608:94:::1;-1:-1:-1::0;;;;;;;153760:3:0::1;153724:39:::0;;;;153608:156:::1;-1:-1:-1::0;;;;;;153822:3:0::1;153786:39:::0;;;;153608:218:::1;345:25:1::0;;153841:10:0::1;::::0;153579:283:::1;::::0;333:2:1;318:18;153579:283:0::1;;;;;;;;-1:-1:-1::0;;18612:1:0;19566:7;:22;153882:11;152239:1662;-1:-1:-1;;;;152239:1662:0:o;6219:100::-;6273:13;6306:5;6299:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6219:100;:::o;176153:243::-;176298:4;176321:19;:17;:19::i;:::-;176358:30;176372:7;176381:6;176358:13;:30::i;:::-;176351:37;176153:243;-1:-1:-1;;;176153:243:0:o;156333:4095::-;156417:7;156426;156435;18656:1;19254:7;;:19;19246:63;;;;-1:-1:-1;;;19246:63:0;;;;;;;:::i;:::-;18656:1;19387:7;:18;156460:19:::1;:17;:19::i;:::-;156527:23;;:::i;:::-;156583:10;156572:22;::::0;;;:10:::1;:22;::::0;;;;156561:41:::1;::::0;156596:5;156561:10:::1;:41::i;:::-;156623:15;::::0;::::1;::::0;:23:::1;;156642:4;156623:23;156615:63;;;;-1:-1:-1::0;;;156615:63:0::1;;;;;;;:::i;:::-;156766:10;::::0;156745:17;;:31;156741:992:::1;;156833:5;::::0;156860:18:::1;::::0;::::1;::::0;156833:46:::1;::::0;-1:-1:-1;;;156833:46:0;;156848:10:::1;156833:46;::::0;::::1;9295:51:1::0;9362:18;;;9355:34;;;;-1:-1:-1;;;;;156833:5:0;;::::1;::::0;:14:::1;::::0;9268:18:1;;156833:46:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;156965:5;:18;;;156940:21;;:43;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;157068:1:0::1;157035:34:::0;;;157084:19:::1;::::0;;::::1;:34:::0;;;157133:18:::1;::::0;;::::1;:34:::0;;;157182:15:::1;::::0;::::1;:38:::0;;;157235:30:::1;::::0;::::1;:34:::0;;;157284:18:::1;::::0;::::1;:34:::0;;;157333:21:::1;::::0;::::1;:34:::0;;;157406:10:::1;157395:22:::0;;:10:::1;:22:::0;;;;;157382:43:::1;::::0;157035:5;157382:12:::1;:43::i;:::-;157447:243;::::0;157490:15:::1;157474:33;;345:25:1::0;;157665:10:0::1;::::0;157447:243:::1;::::0;333:2:1;318:18;157447:243:0::1;;;;;;;157715:1;157717::::0;157719::::1;157707:14;;;;;;;;;156741:992;157853:19;::::0;;::::1;::::0;157784:22:::1;157838:35:::0;;;:14:::1;:35:::0;;;;;;;;157824:10:::1;::::0;157809:26;;;;;;:64:::1;::::0;157838:35;157809:64:::1;:::i;:::-;157784:89;;157886:14;157911:13:::0;157935:21:::1;157967:17:::0;157995:24:::1;158084:10;;158059:5;:21;;;158037:5;:19;;;:43;;;;:::i;:::-;158036:58;158032:1255;;;158111:18;158145:5;:19;;;158132:10;;:32;;;;:::i;:::-;158111:53;;125671:4;158258:14;158237:5;:18;;;:35;;;;:::i;:::-;158236:58;;;;:::i;:::-;158202:5;:30;;;:93;;;;:::i;:::-;158193:102;;158336:60;158354:5;:21;;;158377:10;158389:6;158336:17;:60::i;:::-;158310:86:::0;;-1:-1:-1;158310:86:0;-1:-1:-1;158480:17:0::1;158496:1;158310:86:::0;158480:17:::1;:::i;:::-;158455:21;;:42;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;158537:17:0::1;::::0;-1:-1:-1;158553:1:0::1;158537:13:::0;:17:::1;:::i;:::-;158512:21;;:42;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;158594:17:0::1;::::0;-1:-1:-1;158610:1:0::1;158594:13:::0;:17:::1;:::i;:::-;158569:20;;:42;;;;;;;:::i;:::-;;;;;;;;158640:5;:18;;;158628:30;;158705:63;158723:5;:21;;;158746:10;158758:9;158705:17;:63::i;:::-;158827:5;::::0;158673:95;;-1:-1:-1;158673:95:0;-1:-1:-1;;;;;;158827:5:0::1;:24;158852:20;158871:1;158673:95:::0;158852:20:::1;:::i;:::-;158827:46;;;;;;;;;;;;;345:25:1::0;;333:2;318:18;;199:177;158827:46:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;158932:1;158913:16;:20;;;;:::i;:::-;158888:21;;:45;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;158032:1255:0::1;::::0;-1:-1:-1;;158032:1255:0::1;;159032:5;::::0;:19:::1;::::0;;-1:-1:-1;;;159032:19:0;;;;158966::::1;::::0;-1:-1:-1;;;;;159032:5:0::1;::::0;:17:::1;::::0;:19:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;:5;:19:::1;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;125671:4;158989:5;:18;;;:39;;;;:::i;:::-;158988:63;;;;:::i;:::-;158966:85;;125671:4;159133:14;159112:5;:18;;;:35;;;;:::i;:::-;159111:58;;;;:::i;:::-;159077:5;:30;;;:93;;;;:::i;:::-;159068:102;;159194:36;159210:11;159223:6;159194:15;:36::i;:::-;159185:45;;159257:5;:18;;;159245:30;;158951:336;158032:1255;159364:5;:18;;;159339:21;;:43;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;159459:1:0::1;159426:34:::0;;;159471:19:::1;::::0;;::::1;:34:::0;;;159516:18:::1;::::0;;::::1;:34:::0;;;159561:15:::1;::::0;::::1;:38:::0;;;159610:30:::1;::::0;::::1;:34:::0;;;159655:18:::1;::::0;::::1;:34:::0;;;159700:21:::1;::::0;::::1;:34:::0;;;159769:10:::1;159758:22:::0;;:10:::1;:22:::0;;;;;159745:43:::1;::::0;159426:5;159745:12:::1;:43::i;:::-;159825:5;159801:20;;:29;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;159887:10:0;;159883:56:::1;;159901:35;159907:10;159920:14;159929:5:::0;159920:6;:14:::1;:::i;:::-;159901:5;:35::i;:::-;159991:13:::0;;159987:61:::1;;160008:5;::::0;:37:::1;::::0;-1:-1:-1;;;160008:37:0;;160023:10:::1;160008:37;::::0;::::1;9295:51:1::0;9362:18;;;9355:34;;;-1:-1:-1;;;;;160008:5:0;;::::1;::::0;:14:::1;::::0;9268:18:1;;160008:37:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;159987:61;160328:10;160065:284;-1:-1:-1::0;;;;;;160309:3:0::1;160272:40:::0;;;;-1:-1:-1;;;160246:3:0::1;160209:40:::0;;;;160184:2:::1;160162:14;160171:5:::0;160162:6;:14:::1;:::i;:::-;-1:-1:-1::0;;;;;160147:31:0::1;:39;;160108:15;160092:33;;:95;:158;:221;160065:284;;;;345:25:1::0;;333:2;318:18;;199:177;160065:284:0::1;;;;;;;;160371:14;160380:5:::0;160371:6;:14:::1;:::i;:::-;160362:58:::0;-1:-1:-1;160388:16:0;-1:-1:-1;160406:13:0;;-1:-1:-1;;;;;;19418:1:0::1;18612::::0;19566:7;:22;156333:4095;;;;;:::o;176645:270::-;176812:4;176834:19;:17;:19::i;:::-;176871:36;176890:4;176896:2;176900:6;176871:18;:36::i;:::-;176864:43;176645:270;-1:-1:-1;;;;176645:270:0:o;10055:238::-;10143:4;4107:10;10199:64;4107:10;10215:7;10252:10;10224:25;4107:10;10215:7;10224:9;:25::i;:::-;:38;;;;:::i;:::-;10199:8;:64::i;:::-;-1:-1:-1;10281:4:0;;10055:238;-1:-1:-1;;;10055:238:0:o;175109:769::-;18656:1;19254:7;;:19;19246:63;;;;-1:-1:-1;;;19246:63:0;;;;;;;:::i;:::-;18656:1;19387:7;:18;175263:5:::1;::::0;:27:::1;::::0;-1:-1:-1;;;175263:27:0;;175279:10:::1;175263:27;::::0;::::1;4113:51:1::0;175294:6:0;;-1:-1:-1;;;;;175263:5:0::1;::::0;:15:::1;::::0;4086:18:1;;175263:27:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:37;;175255:80;;;;-1:-1:-1::0;;;175255:80:0::1;;;;;;;:::i;:::-;175368:1;175356:8;:13;;175348:53;;;::::0;-1:-1:-1;;;175348:53:0;;9732:2:1;175348:53:0::1;::::0;::::1;9714:21:1::0;9771:2;9751:18;;;9744:30;-1:-1:-1;;;9790:18:1;;;9783:44;9844:18;;175348:53:0::1;9530:338:1::0;175348:53:0::1;175460:20;175483:17;:15;:17::i;:::-;175460:40;;175511:21;175544:2;:12;;;175535:21;;:6;:21;;;;:::i;:::-;175511:45;;175567:15;175598:8;175585:10;;:21;;;;:::i;:::-;:25;::::0;175609:1:::1;175585:25;:::i;:::-;175567:43;;175628:9;175640:10;;175653:1;175640:14;;;;:::i;:::-;175628:26;;175623:182;175660:7;175656:1;:11;175623:182;;;175713:24;175729:8:::0;175713:13;:24:::1;:::i;:::-;175689:20;::::0;;;:17:::1;:20;::::0;;;;:48;;:20;;;:48:::1;::::0;;;::::1;:::i;:::-;::::0;;;-1:-1:-1;175776:17:0::1;::::0;-1:-1:-1;175785:8:0;175776:6;:17:::1;:::i;:::-;175752:20;::::0;;;:17:::1;:20;::::0;;;;:41;;:20;;;:41:::1;::::0;;;::::1;:::i;:::-;::::0;;;-1:-1:-1;175669:3:0;;-1:-1:-1;175669:3:0::1;::::0;::::1;:::i;:::-;;;;175623:182;;;-1:-1:-1::0;175817:5:0::1;::::0;:53:::1;::::0;-1:-1:-1;;;175817:53:0;;-1:-1:-1;;;;;175817:5:0;;::::1;::::0;:18:::1;::::0;:53:::1;::::0;175836:10:::1;::::0;175856:4:::1;::::0;175863:6;;175817:53:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;18612:1:0;19566:7;:22;-1:-1:-1;;;;175109:769:0:o;154098:2105::-;154218:7;18656:1;19254:7;;:19;19246:63;;;;-1:-1:-1;;;19246:63:0;;;;;;;:::i;:::-;18656:1;19387:7;:18;154243:19:::1;:17;:19::i;:::-;154310:23;;:::i;:::-;154366:10;154355:22;::::0;;;:10:::1;:22;::::0;;;;154344:41:::1;::::0;154379:5;154344:10:::1;:41::i;:::-;154406:15;::::0;::::1;::::0;:23:::1;;154425:4;154406:23;154398:63;;;;-1:-1:-1::0;;;154398:63:0::1;;;;;;;:::i;:::-;154482:5;::::0;:27:::1;::::0;-1:-1:-1;;;154482:27:0;;154498:10:::1;154482:27;::::0;::::1;4113:51:1::0;154513:6:0;;-1:-1:-1;;;;;154482:5:0::1;::::0;:15:::1;::::0;4086:18:1;;154482:27:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:37;;154474:80;;;;-1:-1:-1::0;;;154474:80:0::1;;;;;;;:::i;:::-;154640:28;154671:17;:15;:17::i;:::-;154640:48;;154699:19;154730:10;:20;;;154721:29;;:6;:29;;;;:::i;:::-;154699:51;;154763:19;154840:5;;;;;;;;;-1:-1:-1::0;;;;;154840:5:0::1;-1:-1:-1::0;;;;;154840:17:0::1;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;125671:4;154808:6;154787:5;:18;;;:27;;;;:::i;:::-;154786:50;;;;:::i;:::-;154785:74;;;;:::i;:::-;154763:96;;154894:1;154880:11;:15;154872:56;;;;-1:-1:-1::0;;;154872:56:0::1;;;;;;;:::i;:::-;155064:19;::::0;;::::1;::::0;154995:22:::1;155049:35:::0;;;:14:::1;:35:::0;;;;;;;;155035:10:::1;::::0;155020:26;;;;;;:64:::1;::::0;155049:35;155020:64:::1;:::i;:::-;154995:89;;155095:14;125671:4;155134:14;155113:5;:18;;;:35;;;;:::i;:::-;155112:58;;;;:::i;:::-;155095:75;;155183:22;155208:32;155228:11;155208:19;:32::i;:::-;155318:10;::::0;155284:19:::1;::::0;::::1;:44:::0;155339:18:::1;::::0;::::1;:45:::0;;155183:57;;-1:-1:-1;155373:11:0;;155339:45:::1;::::0;155373:11;;155339:45:::1;:::i;:::-;::::0;;-1:-1:-1;155395:30:0::1;::::0;::::1;:40:::0;;155429:6;;155395:30;:40:::1;::::0;155429:6;;155395:40:::1;:::i;:::-;::::0;;-1:-1:-1;155446:18:0::1;::::0;::::1;:40:::0;;155480:6;;155446:18;:40:::1;::::0;155480:6;;155446:40:::1;:::i;:::-;::::0;;-1:-1:-1;155497:21:0::1;::::0;::::1;:48:::0;;;155580:10:::1;155569:22;::::0;;;:10:::1;:22;::::0;;;;155556:43:::1;::::0;155497:5;155556:12:::1;:43::i;:::-;155708:11;155674:14;:30;155689:10;;155702:1;155689:14;;;;:::i;:::-;155674:30;;;;;;;;;;;;:45;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;155798:5:0::1;::::0;:53:::1;::::0;-1:-1:-1;;;155798:53:0;;-1:-1:-1;;;;;155798:5:0;;::::1;::::0;:18:::1;::::0;:53:::1;::::0;155817:10:::1;::::0;155837:4:::1;::::0;155844:6;;155798:53:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;155869:288:0::1;::::0;155903:33:::1;155919:15;155903:33;-1:-1:-1::0;;;;;;;155994:2:0::1;155958:38:::0;;;;155903:94:::1;-1:-1:-1::0;;;;;;;156055:3:0::1;156019:39:::0;;;;155903:156:::1;-1:-1:-1::0;;;;;;156117:3:0::1;156081:39:::0;;;;155903:218:::1;345:25:1::0;;156136:10:0::1;::::0;155869:288:::1;::::0;333:2:1;318:18;155869:288:0::1;;;;;;;-1:-1:-1::0;;;156177:18:0::1;::::0;;::::1;::::0;18612:1;19566:7;:22;156177:18;154098:2105;-1:-1:-1;;;;;154098:2105:0:o;173581:1520::-;173693:7;18656:1;19254:7;;:19;19246:63;;;;-1:-1:-1;;;19246:63:0;;;;;;;:::i;:::-;18656:1;19387:7;:18;173718:19:::1;:17;:19::i;:::-;173758:7;::::0;:22:::1;::::0;-1:-1:-1;;;173758:22:0;;::::1;::::0;::::1;345:25:1::0;;;173784:10:0::1;::::0;-1:-1:-1;;;;;173758:7:0::1;::::0;:15:::1;::::0;318:18:1;;173758:22:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;173758:36:0::1;;173750:77;;;::::0;-1:-1:-1;;;173750:77:0;;10471:2:1;173750:77:0::1;::::0;::::1;10453:21:1::0;10510:2;10490:18;;;10483:30;-1:-1:-1;;;10529:18:1;;;10522:45;10584:18;;173750:77:0::1;10269:339:1::0;173750:77:0::1;173883:23;;:::i;:::-;173928:16;::::0;;;:9:::1;:16;::::0;;;;173917:35:::1;::::0;173946:5;173917:10:::1;:35::i;:::-;173973:15;::::0;::::1;::::0;:23:::1;;173992:4;173973:23;173965:63;;;;-1:-1:-1::0;;;173965:63:0::1;;;;;;;:::i;:::-;174108:19;::::0;;::::1;::::0;174041:22:::1;174094:34:::0;;;:13:::1;:34:::0;;;;;;;;174080:10:::1;::::0;174066:25;;;;;;:62:::1;::::0;174094:34;174066:62:::1;:::i;:::-;174041:87;;174139:14;125671:4;174178:14;174157:5;:18;;;:35;;;;:::i;:::-;174156:58;;;;:::i;:::-;174139:75;;174291:5;:18;;;174267:20;;:42;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;174386:1:0::1;174353:34:::0;;;174398:19:::1;::::0;;::::1;:34:::0;;;174443:18:::1;::::0;;::::1;:34:::0;;;174488:15:::1;::::0;::::1;:38:::0;;;174537:30:::1;::::0;::::1;:34:::0;;;174582:30:::1;::::0;::::1;:34:::0;;;174627:18:::1;::::0;::::1;:34:::0;;;174672:21:::1;::::0;::::1;:34:::0;;;174730:16;;;:9:::1;:16:::0;;;;;174717:37:::1;::::0;174353:5;174717:12:::1;:37::i;:::-;174793:10:::0;;174789:47:::1;;174808:25;174814:10;174826:6;174808:5;:25::i;:::-;174846:7;::::0;:27:::1;::::0;-1:-1:-1;;;174846:27:0;;::::1;::::0;::::1;345:25:1::0;;;-1:-1:-1;;;;;174846:7:0;;::::1;::::0;:20:::1;::::0;318:18:1;;174846:27:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;174891:176:0::1;::::0;174917:33:::1;174933:15;174917:33;-1:-1:-1::0;;175000:2:0::1;174972:30:::0;;;;174917:86:::1;345:25:1::0;;174891:176:0::1;::::0;::::1;::::0;-1:-1:-1;175018:10:0::1;::::0;-1:-1:-1;174891:176:0::1;::::0;333:2:1;318:18;174891:176:0::1;;;;;;;18612:1:::0;19566:7;:22;175087:6;173581:1520;-1:-1:-1;;;;173581:1520:0:o;162498:2409::-;162618:7;18656:1;19254:7;;:19;19246:63;;;;-1:-1:-1;;;19246:63:0;;;;;;;:::i;:::-;18656:1;19387:7;:18;162643:19:::1;:17;:19::i;:::-;162710:23;;:::i;:::-;162766:10;162755:22;::::0;;;:10:::1;:22;::::0;;;;162744:41:::1;::::0;162779:5;162744:10:::1;:41::i;:::-;162806:15;::::0;::::1;::::0;:23:::1;;162825:4;162806:23;162798:63;;;;-1:-1:-1::0;;;162798:63:0::1;;;;;;;:::i;:::-;162892:10;7584:7:::0;7611:18;;;;;;;;;;;162907:6;-1:-1:-1;162882:31:0::1;162874:74;;;;-1:-1:-1::0;;;162874:74:0::1;;;;;;;:::i;:::-;163034:28;163065:17;:15;:17::i;:::-;163034:48;;163093:19;163124:10;:20;;;163115:29;;:6;:29;;;;:::i;:::-;163093:51;;163157:19;163234:13;7427:12:::0;;;7339:108;163234:13:::1;125671:4;163202:6;163181:5;:18;;;:27;;;;:::i;:::-;163180:50;;;;:::i;:::-;163179:68;;;;:::i;:::-;163157:90;;163282:1;163268:11;:15;163260:56;;;;-1:-1:-1::0;;;163260:56:0::1;;;;;;;:::i;:::-;163464:19;::::0;;::::1;::::0;163383:26:::1;163445:39:::0;;;:18:::1;:39:::0;;;;;;;;163431:10:::1;::::0;163412:30;;;;;;:72:::1;::::0;163445:39;163412:72:::1;:::i;:::-;163383:101;;163495:18;125671:4;163538:18;163517:5;:18;;;:39;;;;:::i;:::-;163516:62;;;;:::i;:::-;163672:19;::::0;;::::1;::::0;163591:26:::1;163653:39:::0;;;:18:::1;:39:::0;;;;;;;;163639:10:::1;::::0;163620:30;;;;;;163495:83;;-1:-1:-1;163591:26:0;;163620:72:::1;::::0;163653:39;163620:72:::1;:::i;:::-;163591:101;;163703:18;125671:4;163746:18;163725:5;:18;;;:39;;;;:::i;:::-;163724:62;;;;:::i;:::-;163703:83;;163799:22;163824:32;163844:11;163824:19;:32::i;:::-;163934:10;::::0;163900:19:::1;::::0;::::1;:44:::0;163955:18:::1;::::0;::::1;:45:::0;;163799:57;;-1:-1:-1;163989:11:0;;163955:45:::1;::::0;163989:11;;163955:45:::1;:::i;:::-;::::0;;-1:-1:-1;164011:30:0::1;::::0;::::1;:44:::0;;164045:10;;164011:30;:44:::1;::::0;164045:10;;164011:44:::1;:::i;:::-;::::0;;-1:-1:-1;164066:30:0::1;::::0;::::1;:44:::0;;164100:10;;164066:30;:44:::1;::::0;164100:10;;164066:44:::1;:::i;:::-;::::0;;-1:-1:-1;164121:18:0::1;::::0;::::1;:40:::0;;164155:6;;164121:18;:40:::1;::::0;164155:6;;164121:40:::1;:::i;:::-;::::0;;-1:-1:-1;164172:21:0::1;::::0;::::1;:48:::0;;;164255:10:::1;164244:22;::::0;;;:10:::1;:22;::::0;;;;164231:43:::1;::::0;164172:5;164231:12:::1;:43::i;:::-;164383:11;164349:14;:30;164364:10;;164377:1;164364:14;;;;:::i;:::-;164349:30;;;;;;;;;;;;:45;;;;;;;:::i;:::-;;;;;;;;164469:6;164449:16;;:26;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;164530:25:0::1;::::0;-1:-1:-1;164536:10:0::1;164548:6:::0;164530:5:::1;:25::i;:::-;164573:288;::::0;164607:33:::1;164623:15;164607:33;-1:-1:-1::0;;;;;;;164698:2:0::1;164662:38:::0;;;;164607:94:::1;-1:-1:-1::0;;;;;;;164759:3:0::1;164723:39:::0;;;;164607:156:::1;-1:-1:-1::0;;;;;;164821:3:0::1;164785:39:::0;;;;164607:218:::1;345:25:1::0;;164840:10:0::1;::::0;164573:288:::1;::::0;333:2:1;318:18;164573:288:0::1;;;;;;;-1:-1:-1::0;;;164881:18:0::1;::::0;;::::1;::::0;18612:1;19566:7;:22;164881:18;162498:2409;-1:-1:-1;;;;;;;162498:2409:0:o;150464:1582::-;150578:7;18656:1;19254:7;;:19;19246:63;;;;-1:-1:-1;;;19246:63:0;;;;;;;:::i;:::-;18656:1;19387:7;:18;150603:19:::1;:17;:19::i;:::-;150643:5;::::0;:22:::1;::::0;-1:-1:-1;;;150643:22:0;;::::1;::::0;::::1;345:25:1::0;;;150669:10:0::1;::::0;-1:-1:-1;;;;;150643:5:0::1;::::0;:13:::1;::::0;318:18:1;;150643:22:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;150643:36:0::1;;150635:77;;;::::0;-1:-1:-1;;;150635:77:0;;10471:2:1;150635:77:0::1;::::0;::::1;10453:21:1::0;10510:2;10490:18;;;10483:30;-1:-1:-1;;;10529:18:1;;;10522:45;10584:18;;150635:77:0::1;10269:339:1::0;150635:77:0::1;150834:5;::::0;:23:::1;::::0;-1:-1:-1;;;150834:23:0;;::::1;::::0;::::1;345:25:1::0;;;150776:27:0::1;::::0;150807:52:::1;::::0;-1:-1:-1;;;;;150834:5:0;;::::1;::::0;:14:::1;::::0;318:18:1;;150834:23:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;150807:8;:52::i;:::-;150776:83;;150870:28;150901:17;:15;:17::i;:::-;150870:48;;150967:22;151046:5;:17;;;151020:5;:12;;;:23;;;:43;;;;;;:::i;:::-;150992:12:::0;;:24:::1;;::::0;:72:::1;::::0;;-1:-1:-1;;;;;150992:72:0::1;;:::i;:::-;150967:97;;151075:14;151141:2;151118:10;:20;;;:25;;;;:::i;:::-;151100:44;::::0;::::1;;:14:::0;:44:::1;:::i;:::-;151075:69;;151182:1;151173:6;:10;151165:51;;;::::0;-1:-1:-1;;;151165:51:0;;11013:2:1;151165:51:0::1;::::0;::::1;10995:21:1::0;11052:2;11032:18;;;11025:30;-1:-1:-1;;;11071:18:1;;;11064:45;11126:18;;151165:51:0::1;10811:339:1::0;151165:51:0::1;151229:15;151255::::0;151323:6:::1;151315:4;151292:5;:18;;;151285:4;:25;;;;:::i;:::-;151275:36;::::0;:6;:36:::1;:::i;:::-;151274:45;;;;:::i;:::-;151273:56;;;;:::i;:::-;151346:12:::0;;:23:::1;;::::0;151255:74;;-1:-1:-1;151346:31:0::1;;151373:4;151346:31:::0;151342:105:::1;;151429:6:::0;151422:3:::1;151406:12;151429:6:::0;151415:3:::1;151406:12;:::i;:::-;151405:20;;;;:::i;:::-;151404:31;;;;:::i;:::-;151394:41;;151342:105;151483:17;151493:7:::0;151483;:17:::1;:::i;:::-;151459:20;;:41;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;151513:47:0::1;::::0;-1:-1:-1;151519:10:0::1;151551:7:::0;151532:16:::1;151541:7:::0;151532:6;:16:::1;:::i;:::-;:26;;;;:::i;151513:47::-;151617:5;::::0;:54:::1;::::0;-1:-1:-1;;;151617:54:0;;-1:-1:-1;;;;;151617:5:0;;::::1;::::0;:18:::1;::::0;:54:::1;::::0;151636:10:::1;::::0;151656:4:::1;::::0;151663:7;;151617:54:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;151703:5:0::1;::::0;:33:::1;::::0;-1:-1:-1;;;151703:33:0;;::::1;::::0;::::1;345:25:1::0;;;151682:18:0::1;::::0;-1:-1:-1;;;;;;151703:5:0;;::::1;::::0;-1:-1:-1;151703:24:0::1;::::0;318:18:1;;151703:33:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;151768:5;::::0;:29:::1;::::0;-1:-1:-1;;;151768:29:0;;151791:4:::1;151768:29;::::0;::::1;4113:51:1::0;151682:54:0;;-1:-1:-1;151747:16:0::1;::::0;-1:-1:-1;;;;;151768:5:0;;::::1;::::0;:14:::1;::::0;4086:18:1;;151768:29:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;151875:5;::::0;151747:50;;-1:-1:-1;;;;;;151875:5:0::1;:19;151895:12;151875:5:::0;151747:50;151895:12:::1;:::i;:::-;151875:45;::::0;-1:-1:-1;;;;;;151875:45:0::1;::::0;;;;;;::::1;::::0;::::1;11329:25:1::0;;;;-1:-1:-1;;;;;11390:32:1;;11370:18;;;11363:60;11302:18;;151875:45:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;151850:21;;:70;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;151969:12:0;;:20;151938:52:::1;::::0;345:25:1;;;151938:52:0::1;::::0;;::::1;::::0;151957:10:::1;::::0;151938:52:::1;::::0;333:2:1;318:18;151938:52:0::1;;;;;;;152030:7:::0;152011:16:::1;152020:7:::0;152011:6;:16:::1;:::i;:::-;:26;;;;:::i;:::-;18612:1:::0;19566:7;:22;152003:35;150464:1582;-1:-1:-1;;;;;;;;;;150464:1582:0:o;165070:5347::-;165154:7;165163;165172;165181;165190;18656:1;19254:7;;:19;19246:63;;;;-1:-1:-1;;;19246:63:0;;;;;;;:::i;:::-;18656:1;19387:7;:18;165215:19:::1;:17;:19::i;:::-;165282:23;;:::i;:::-;165338:10;165327:22;::::0;;;:10:::1;:22;::::0;;;;165316:41:::1;::::0;165351:5;165316:10:::1;:41::i;:::-;165378:15;::::0;::::1;::::0;:23:::1;;165397:4;165378:23;165370:63;;;;-1:-1:-1::0;;;165370:63:0::1;;;;;;;:::i;:::-;165521:10;::::0;165500:17;;:31;165496:1232:::1;;165588:37;165594:10;165606:5;:18;;;165588:5;:37::i;:::-;165723:5;:18;;;165698:21;;:43;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;165824:18:0::1;::::0;::::1;::::0;165804:16:::1;:38:::0;;:16:::1;::::0;:38:::1;::::0;165824:18;;165804:38:::1;:::i;:::-;::::0;;;-1:-1:-1;;165927:1:0::1;165894:34:::0;;;165943:19:::1;::::0;;::::1;:34:::0;;;165992:18:::1;::::0;;::::1;:34:::0;;;166041:15:::1;::::0;::::1;:38:::0;;;166094:30:::1;::::0;::::1;:34:::0;;;166143:30:::1;::::0;::::1;:34:::0;;;166192:18:::1;::::0;::::1;:34:::0;;;166241:21:::1;::::0;::::1;:34:::0;;;166314:10:::1;166303:22:::0;;:10:::1;:22:::0;;;;;166290:43:::1;::::0;165894:5;166290:12:::1;:43::i;:::-;166355:326;::::0;;166398:15:::1;166382:33;;11608:25:1::0;;166547:1:0::1;11664:2:1::0;11649:18;;11642:34;166656:10:0::1;::::0;166355:326:::1;::::0;11581:18:1;166355:326:0::1;;;;;;;166706:1;166708::::0;166710::::1;166712::::0;166714::::1;166698:18;;;;;;;;;;;;;165496:1232;166860:19;::::0;;::::1;::::0;166779:26:::1;166841:39:::0;;;:18:::1;:39:::0;;;;;;;;166827:10:::1;::::0;166808:30;;;;;;:72:::1;::::0;166841:39;166808:72:::1;:::i;:::-;166972:19;::::0;;::::1;::::0;166891:26:::1;166953:39:::0;;;:18:::1;:39:::0;;;;;;;;166939:10:::1;::::0;166920:30;;;;;;166779:101;;-1:-1:-1;166891:26:0;;166920:72:::1;::::0;166953:39;166920:72:::1;:::i;:::-;166891:101;;167005:18;167034:17:::0;167062:18:::1;167091:25:::0;167127::::1;167163:17:::0;167191:24:::1;167280:10;;167255:5;:21;;;167233:5;:19;;;:43;;;;:::i;:::-;167232:58;167228:1726;;;167307:18;167341:5;:19;;;167328:10;;:32;;;;:::i;:::-;167307:53;;125671:4;167458:18;167437:5;:18;;;:39;;;;:::i;:::-;167436:62;;;;:::i;:::-;167402:5;:30;;;:97;;;;:::i;:::-;167389:110;;167548:64;167566:5;:21;;;167589:10;167601;167548:17;:64::i;:::-;167677:18;::::0;::::1;::::0;167514:98;;-1:-1:-1;167514:98:0;-1:-1:-1;125671:4:0::1;::::0;167677:39:::1;::::0;167698:18;;167677:39:::1;:::i;:::-;167676:62;;;;:::i;:::-;167642:5;:30;;;:97;;;;:::i;:::-;167629:110;;167788:64;167806:5;:21;;;167829:10;167841;167788:17;:64::i;:::-;167881:18;::::0;::::1;::::0;167964:21:::1;::::0;::::1;::::0;167754:98;;-1:-1:-1;167754:98:0;;-1:-1:-1;167881:18:0;-1:-1:-1;167946:63:0::1;::::0;167987:10;167881:18;167946:17:::1;:63::i;:::-;167914:95:::0;;-1:-1:-1;167914:95:0;-1:-1:-1;168134:1:0::1;168094:36;167914:95:::0;168094:17;:36:::1;:::i;:::-;168093:42;;;;:::i;:::-;168068:21;;:67;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;168216:1:0::1;::::0;-1:-1:-1;168176:36:0::1;168196:16:::0;168176:17;:36:::1;:::i;:::-;168175:42;;;;:::i;:::-;168150:21;;:67;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;168298:1:0::1;::::0;-1:-1:-1;168258:36:0::1;168278:16:::0;168258:17;:36:::1;:::i;:::-;168257:42;;;;:::i;:::-;168232:20;;:67;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;168358:5:0::1;::::0;-1:-1:-1;;;;;168358:5:0::1;:24;168383:21;168403:1;168383:17:::0;:21:::1;:::i;:::-;168358:47;;;;;;;;;;;;;345:25:1::0;;333:2;318:18;;199:177;168358:47:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;168465:1;168445:17;:21;;;;:::i;:::-;168420;;:46;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;167228:1726:0::1;::::0;-1:-1:-1;;167228:1726:0::1;;168499:19;168565:13;7427:12:::0;;;7339:108;168565:13:::1;125671:4;168522:5;:18;;;:39;;;;:::i;:::-;168521:57;;;;:::i;:::-;168499:79;;125671:4;168664:18;168643:5;:18;;;:39;;;;:::i;:::-;168642:62;;;;:::i;:::-;168608:5;:30;;;:97;;;;:::i;:::-;168595:110;;125671:4;168789:18;168768:5;:18;;;:39;;;;:::i;:::-;168767:62;;;;:::i;:::-;168733:5;:30;;;:97;;;;:::i;:::-;168720:110;;168857:40;168873:11;168886:10;168857:15;:40::i;:::-;168845:52;;168924:5;:18;;;168912:30;;168484:470;167228:1726;169031:5;:18;;;169006:21;;:43;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;169124:18:0::1;::::0;::::1;::::0;169104:16:::1;:38:::0;;:16:::1;::::0;:38:::1;::::0;169124:18;;169104:38:::1;:::i;:::-;::::0;;;-1:-1:-1;;169219:1:0::1;169186:34:::0;;;169231:19:::1;::::0;;::::1;:34:::0;;;169276:18:::1;::::0;;::::1;:34:::0;;;169321:15:::1;::::0;::::1;:38:::0;;;169370:30:::1;::::0;::::1;:34:::0;;;169415:30:::1;::::0;::::1;:34:::0;;;169460:18:::1;::::0;::::1;:34:::0;;;169505:21:::1;::::0;::::1;:34:::0;;;169574:10:::1;169563:22:::0;;:10:::1;:22:::0;;;;;169550:43:::1;::::0;169186:5;169550:12:::1;:43::i;:::-;169630:9;169606:20;;:33;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;169703:1:0::1;::::0;-1:-1:-1;169678:22:0::1;169691:9:::0;169678:10;:22:::1;:::i;:::-;:26;169674:92;;;169708:55;169714:10;169752:9:::0;169727:22:::1;169740:9:::0;169727:10;:22:::1;:::i;169708:55::-;169808:14:::0;;169804:63:::1;;169826:5;::::0;:38:::1;::::0;-1:-1:-1;;;169826:38:0;;169841:10:::1;169826:38;::::0;::::1;9295:51:1::0;9362:18;;;9355:34;;;-1:-1:-1;;;;;169826:5:0;;::::1;::::0;:14:::1;::::0;9268:18:1;;169826:38:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;169804:63;170274:10;169884:411;-1:-1:-1::0;;;;;;170140:3:0::1;170103:40:::0;;;;-1:-1:-1;;;170077:3:0::1;170040:40:::0;;;;170015:2:::1;169981:22;169994:9:::0;169981:10;:22:::1;:::i;:::-;-1:-1:-1::0;;;;;169966:39:0::1;:51;;169927:15;169911:33;;:107;:170;:233;170255:3;170232:17;-1:-1:-1::0;;;;;170216:35:0::1;:42;;170175:17;-1:-1:-1::0;;;;;170159:35:0::1;:100;169884:411;;;;;;11608:25:1::0;;;11664:2;11649:18;;11642:34;11596:2;11581:18;;11434:248;169884:411:0::1;;;;;;;;170317:22;170330:9:::0;170317:10;:22:::1;:::i;:::-;170308:101:::0;-1:-1:-1;170342:10:0;;-1:-1:-1;170354:16:0;;-1:-1:-1;170372:17:0;;-1:-1:-1;170391:17:0;-1:-1:-1;;;;;;;19418:1:0::1;18612::::0;19566:7;:22;;;;165070:5347;;;;;:::o;6438:104::-;6494:13;6527:7;6520:14;;;;;:::i;160622:1679::-;160737:7;18656:1;19254:7;;:19;19246:63;;;;-1:-1:-1;;;19246:63:0;;;;;;;:::i;:::-;18656:1;19387:7;:18;160762:19:::1;:17;:19::i;:::-;160829:23;;:::i;:::-;160885:10;160874:22;::::0;;;:10:::1;:22;::::0;;;;160863:41:::1;::::0;160898:5;160863:10:::1;:41::i;:::-;160925:15;::::0;::::1;::::0;:24:::1;160917:68;;;::::0;-1:-1:-1;;;160917:68:0;;5918:2:1;160917:68:0::1;::::0;::::1;5900:21:1::0;5957:2;5937:18;;;5930:30;-1:-1:-1;;;5976:18:1;;;5969:48;6034:18;;160917:68:0::1;5716:342:1::0;160917:68:0::1;161016:10;7584:7:::0;7611:18;;;;;;;;;;;161031:6;-1:-1:-1;161006:31:0::1;160998:74;;;;-1:-1:-1::0;;;160998:74:0::1;;;;;;;:::i;:::-;161147:28;161178:17;:15;:17::i;:::-;161147:48;;161206:19;161237:10;:20;;;161228:29;;:6;:29;;;;:::i;:::-;161206:51;;161270:19;161324:13;7427:12:::0;;;7339:108;161324:13:::1;161293:27;125671:4;161293:6:::0;:27:::1;:::i;:::-;161292:45;;;;:::i;:::-;161270:67;;161380:1;161366:11;:15;161358:56;;;;-1:-1:-1::0;;;161358:56:0::1;;;;;;;:::i;:::-;161427:22;161452:32;161472:11;161452:19;:32::i;:::-;161427:57;;161525:167;125555:1;161579:11;161605:6;161626:1;161642:10;161667:14;161525:9;:167::i;:::-;161789:11;161755:14;:30;161770:10;;161783:1;161770:14;;;;:::i;:::-;161755:30;;;;;;;;;;;;:45;;;;;;;:::i;:::-;;;;;;;;161875:6;161855:16;;:26;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;161936:25:0::1;::::0;-1:-1:-1;161942:10:0::1;161954:6:::0;161936:5:::1;:25::i;:::-;161979:283;::::0;162008:33:::1;162024:15;162008:33;-1:-1:-1::0;;;;;;;162099:2:0::1;162063:38:::0;;;;162008:94:::1;-1:-1:-1::0;;;;;;;162160:3:0::1;162124:39:::0;;;;162008:156:::1;-1:-1:-1::0;;;;;;162222:3:0::1;162186:39:::0;;;;162008:218:::1;345:25:1::0;;162241:10:0::1;::::0;161979:283:::1;::::0;333:2:1;318:18;161979:283:0::1;199:177:1::0;10796:436:0;10889:4;4107:10;10889:4;10972:25;4107:10;10989:7;10972:9;:25::i;:::-;10945:52;;11036:15;11016:16;:35;;11008:85;;;;-1:-1:-1;;;11008:85:0;;11889:2:1;11008:85:0;;;11871:21:1;11928:2;11908:18;;;11901:30;11967:34;11947:18;;;11940:62;-1:-1:-1;;;12018:18:1;;;12011:35;12063:19;;11008:85:0;11687:401:1;11008:85:0;11129:60;11138:5;11145:7;11173:15;11154:16;:34;11129:8;:60::i;:::-;-1:-1:-1;11220:4:0;;10796:436;-1:-1:-1;;;;10796:436:0:o;176404:233::-;176544:4;176566:19;:17;:19::i;:::-;176603:26;176618:2;176622:6;176603:14;:26::i;170681:2764::-;170843:7;18656:1;19254:7;;:19;19246:63;;;;-1:-1:-1;;;19246:63:0;;;;;;;:::i;:::-;18656:1;19387:7;:18;170868:19:::1;:17;:19::i;:::-;170922:9;::::0;:30:::1;::::0;126442:2:::1;::::0;170922:30:::1;:::i;:::-;170908:10;;:45;170900:85;;;::::0;-1:-1:-1;;;170900:85:0;;12295:2:1;170900:85:0::1;::::0;::::1;12277:21:1::0;12334:2;12314:18;;;12307:30;-1:-1:-1;;;12353:18:1;;;12346:44;12407:18;;170900:85:0::1;12093:338:1::0;170900:85:0::1;171066:13;171083:1;171066:18;171058:59;;;::::0;-1:-1:-1;;;171058:59:0;;12638:2:1;171058:59:0::1;::::0;::::1;12620:21:1::0;12677:2;12657:18;;;12650:30;-1:-1:-1;;;12696:18:1;;;12689:45;12751:18;;171058:59:0::1;12436:339:1::0;171058:59:0::1;171130:18;::::0;171213:12;-1:-1:-1;;;;;171267:26:0;::::1;171263:1486;;171392:9;171382:6;:19;171378:68;;171422:8;::::0;::::1;171378:68;126539:42;171576:27;::::0;:13:::1;:27;::::0;;;171533:72:::1;::::0;171561:43:::1;::::0;-1:-1:-1;;;;;171576:27:0::1;171561:14;:43::i;:::-;171533:27;:72::i;:::-;171520:85:::0;-1:-1:-1;171520:85:0;171635:16:::1;:6:::0;-1:-1:-1;;;171635:16:0::1;:::i;:::-;171634:31;;;;:::i;:::-;171694:33;::::0;171620:45;;-1:-1:-1;127097:42:0::1;::::0;171694:33;::::1;;;::::0;171720:6;;171694:33:::1;::::0;;;171720:6;127097:42;171694:33;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;171263:1486;;;-1:-1:-1::0;;;;;171819:27:0;;::::1;171797:19;171819:27:::0;;;:13:::1;:27;::::0;;;;;;;::::1;::::0;126649:42:::1;171920:28;::::0;::::1;::::0;:57:::1;;-1:-1:-1::0;;;;;;171952:25:0;::::1;::::0;171920:57:::1;171916:106;;;171998:8;::::0;::::1;171916:106;-1:-1:-1::0;;;;;172042:28:0;::::1;126649:42;172042:28;172038:627;;-1:-1:-1::0;;;;;;;172157:28:0;::::1;::::0;172153:421:::1;;172223:56;172251:27;172266:11;172251:14;:27::i;172223:56::-;172210:69:::0;-1:-1:-1;172210:69:0;172317:16:::1;:6:::0;-1:-1:-1;;;172317:16:0::1;:::i;:::-;172316:31;;;;:::i;:::-;172302:45;;172038:627;;172153:421;172428:56;172456:27;172471:11;172456:14;:27::i;172428:56::-;172415:69:::0;-1:-1:-1;;;;172522:19:0::1;172415:69:::0;172522:6;:19:::1;:::i;172038:627::-;172643:6;172629:20;;172038:627;172681:56;::::0;-1:-1:-1;;;172681:56:0;;-1:-1:-1;;;;;172681:18:0;::::1;::::0;::::1;::::0;:56:::1;::::0;172700:10:::1;::::0;127097:42:::1;::::0;172730:6;;172681:56:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;171782:967;171263:1486;172783:1;172769:11;:15;172761:56;;;;-1:-1:-1::0;;;172761:56:0::1;;;;;;;:::i;:::-;172846:7;::::0;:32:::1;::::0;-1:-1:-1;;;172846:32:0;;172867:10:::1;172846:32;::::0;::::1;4113:51:1::0;172830:13:0::1;::::0;-1:-1:-1;;;;;172846:7:0::1;::::0;:20:::1;::::0;4086:18:1;;172846:32:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;172830:48;;172919:152;125613:1;172972:11;172998:1;173014:5;173042:1;173059::::0;172919:9:::1;:152::i;:::-;173167:11;173134:13;:29;173148:10;;173161:1;173148:14;;;;:::i;:::-;173134:29;;;;;;;;;;;;:44;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;173196:210:0::1;::::0;173224:33:::1;173240:15;173224:33;-1:-1:-1::0;;173312:2:0::1;173279:35:::0;;;;173224:91:::1;345:25:1::0;;-1:-1:-1;;;;;173196:210:0;::::1;::::0;::::1;::::0;::::1;::::0;173330:10:::1;::::0;173196:210:::1;::::0;333:2:1;318:18;173196:210:0::1;;;;;;;-1:-1:-1::0;;18612:1:0;19566:7;:22;173426:11;170681:2764;-1:-1:-1;;;;170681:2764:0:o;8099:151::-;-1:-1:-1;;;;;8215:18:0;;;8188:7;8215:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;8099:151::o;142504:6452::-;142651:5;;:18;;;-1:-1:-1;;;142651:18:0;;;;142633:15;;-1:-1:-1;;;;;142651:5:0;;:16;;:18;;;;;;;;;;;;;;:5;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;142633:36;;142699:7;142686:10;;:20;142682:6267;;;142723:16;142752:10;;142742:7;:20;;;;:::i;:::-;142723:39;;142796:9;142791:6147;142815:8;142811:1;:12;142791:6147;;;142849:23;142877:17;:15;:17::i;:::-;142849:45;;142913:25;142941:30;142960:10;;142941:18;:30::i;:::-;142913:58;;142992:21;143067:25;143191:21;;143161:14;:26;143176:10;;143161:26;;;;;;;;;;;;143128:14;:30;143143:10;;143156:1;143143:14;;;;:::i;:::-;143128:30;;;;;;;;;;;;:59;;;;:::i;:::-;143127:85;;;;:::i;:::-;143111:101;-1:-1:-1;143327:17:0;;143323:863;;125671:4;143560:17;:33;143578:10;;143591:1;143578:14;;;;:::i;:::-;143560:33;;;;;;;;;;;;:54;;;;:::i;:::-;125671:4;143513:21;;:42;;;;:::i;:::-;143496:2;:12;;;143452:56;;125671:4;143453;:18;;;-1:-1:-1;;;;;143453:39:0;;;;;:::i;:::-;143452:56;;;;:::i;:::-;143451:105;;;;:::i;:::-;:164;;;;:::i;:::-;143431:184;-1:-1:-1;143638:34:0;143659:13;143431:184;143638:34;:::i;:::-;143731:10;;143716:26;;;;:14;:26;;;;;;143638:34;;-1:-1:-1;143695:47:0;;143638:34;143695:47;:::i;:::-;143836:1;143812:21;:25;143695:47;-1:-1:-1;143323:863:0;;;-1:-1:-1;143921:10:0;;143906:26;;;;:14;:26;;;;;;;144133:17;;143906:26;144151:14;;144164:1;144151:14;:::i;:::-;144133:33;;;;;;;;;;;;144117:2;:12;;;144096:33;;:4;:18;;;:33;;;;:::i;:::-;-1:-1:-1;;;;;144095:71:0;;;;;:::i;:::-;144070:21;;:96;;;;;;;:::i;:::-;;;;-1:-1:-1;;143323:863:0;144239:17;144206:14;:30;144221:10;;144234:1;144221:14;;;;:::i;:::-;144206:30;;;;;;;;;;;:50;;;;144308:13;144275:14;:30;144290:10;;144303:1;144290:14;;;;:::i;:::-;144275:30;;;;;;;;;;;-1:-1:-1;144275:30:0;:46;144628:10;;:14;;144641:1;144628:14;:::i;:::-;144347:314;144561:3;144534:21;;-1:-1:-1;;;;;144518:39:0;:46;;144485:2;144466:13;-1:-1:-1;;;;;144450:31:0;:37;;144403:15;144387:33;;:101;:178;144588:17;144347:314;;;;;;11608:25:1;;;11664:2;11649:18;;11642:34;11596:2;11581:18;;11434:248;144347:314:0;;;;;;;;144706:1;144682:21;:25;;;144937:21;;144922:10;;144907:26;;;:14;:26;;;;;;;;144706:1;;144937:21;144907:26;;:14;144706:1;;144889:14;;144902:1;144889:14;:::i;:::-;144874:30;;;;;;;;;;;;:59;;;;:::i;:::-;144873:85;;;;:::i;:::-;144857:101;-1:-1:-1;145073:17:0;;145069:1435;;125671:4;145315:17;:33;145333:10;;145346:1;145333:14;;;;:::i;:::-;145315:33;;;;;;;;;;;;:54;;;;:::i;:::-;125671:4;145268:21;;:42;;;;:::i;:::-;145251:2;:12;;;145207:56;;125671:4;145208;:18;;;-1:-1:-1;;;;;145208:39:0;;;;;:::i;:::-;145207:56;;;;:::i;:::-;145206:105;;;;:::i;:::-;:164;;;;:::i;:::-;145182:188;-1:-1:-1;145393:38:0;145418:13;145182:188;145393:38;:::i;:::-;145498:10;;145479:30;;;;:18;:30;;;;;;145393:38;;-1:-1:-1;145454:55:0;;145393:38;145454:55;:::i;:::-;;;125671:4;145673:17;:33;145691:10;;145704:1;145691:14;;;;:::i;:::-;145673:33;;;;;;;;;;;;:54;;;;:::i;:::-;125671:4;145626:21;;:42;;;;:::i;:::-;145625:103;;;;:::i;:::-;145601:127;-1:-1:-1;145751:38:0;145776:13;145601:127;145751:38;:::i;:::-;145856:10;;145837:30;;;;:18;:30;;;;;;145751:38;;-1:-1:-1;145812:55:0;;145751:38;145812:55;:::i;:::-;145960:1;145936:21;:25;;;145984:21;:25;145812:55;-1:-1:-1;145069:1435:0;;;-1:-1:-1;;146101:10:0;;146082:30;;;;:18;:30;;;;;;;;;146159:18;:30;;;;;;146082;;146159;;146370:17;;146388:14;;146401:1;146388:14;:::i;:::-;146370:33;;;;;;;;;;;;146354:2;:12;;;146333:33;;:4;:18;;;:33;;;;:::i;:::-;-1:-1:-1;;;;;146332:71:0;;;;;:::i;:::-;146307:21;;:96;;;;;;;:::i;:::-;;;;-1:-1:-1;;146469:10:0;;146451:17;;:33;;146469:14;;146482:1;146469:14;:::i;:::-;146451:33;;;;;;;;;;;;146426:21;;:58;;;;;;;:::i;:::-;;;;-1:-1:-1;;145069:1435:0;146561:21;146524:18;:34;146543:10;;146556:1;146543:14;;;;:::i;:::-;146524:34;;;;;;;;;;;:58;;;;146638:21;146601:18;:34;146620:10;;146633:1;146620:14;;;;:::i;:::-;146601:34;;;;;;;;;;;:58;;;;146711:13;146678:14;:30;146693:10;;146706:1;146693:14;;;;:::i;:::-;146678:30;;;;;;;;;;;-1:-1:-1;146678:30:0;:46;147079:10;;:14;;147092:1;147079:14;:::i;:::-;146750:362;146964:3;146937:21;;-1:-1:-1;;;;;146921:39:0;:46;;146888:2;146869:13;-1:-1:-1;;;;;146853:31:0;:37;;146806:15;146790:33;;:101;:178;146991:21;147035;146750:362;;;;;;;1833:25:1;;;1889:2;1874:18;;1867:34;;;;1932:2;1917:18;;1910:34;1821:2;1806:18;;1631:319;146750:362:0;;;;;;;;147157:1;147133:21;:25;;;147332:20;;;147317:10;;147303:25;;;:13;:25;;;;;;;;147332:20;;147303:13;147157:1;;147285:14;;147298:1;147285:14;:::i;:::-;147271:29;;;;;;;;;;;;:57;;;;:::i;:::-;147270:82;;;;:::i;:::-;147254:98;-1:-1:-1;147467:17:0;;147463:834;;125671:4;147698:17;:33;147716:10;;147729:1;147716:14;;;;:::i;:::-;147698:33;;;;;;;;;;;;:54;;;;:::i;:::-;125671:4;147652:20;;:41;;;;:::i;:::-;147635:2;:12;;;147591:56;;125671:4;147592;:18;;;-1:-1:-1;;;;;147592:39:0;;;;;:::i;:::-;147591:56;;;;:::i;:::-;147590:104;;;;:::i;:::-;:163;;;;:::i;:::-;147571:182;-1:-1:-1;147776:33:0;147796:13;147571:182;147776:33;:::i;:::-;147866:10;;147852:25;;;;:13;:25;;;;;;147776:33;;-1:-1:-1;147832:45:0;;147776:33;147832:45;:::i;:::-;147970:1;147947:20;:24;147832:45;-1:-1:-1;147463:834:0;;;-1:-1:-1;148053:10:0;;148039:25;;;;:13;:25;;;;;;;148244:17;;148039:25;148262:14;;148275:1;148262:14;:::i;:::-;148244:33;;;;;;;;;;;;148228:2;:12;;;148207:33;;:4;:18;;;:33;;;;:::i;:::-;-1:-1:-1;;;;;148206:71:0;;;;;:::i;:::-;148182:20;;:95;;;;;;;:::i;:::-;;;;-1:-1:-1;;147463:834:0;148365:16;148333:13;:29;148347:10;;148360:1;148347:14;;;;:::i;:::-;148333:29;;;;;;;;;;;:48;;;;148432:13;148400;:29;148414:10;;148427:1;148414:14;;;;:::i;:::-;148400:29;;;;;;;;;;;-1:-1:-1;148400:29:0;:45;148749:10;;:14;;148762:1;148749:14;:::i;:::-;148471:311;148683:3;148657:20;;-1:-1:-1;;;;;148641:38:0;:45;;148608:2;148589:13;-1:-1:-1;;;;;148573:31:0;:37;;148526:15;148510:33;;:101;:177;148710:16;148471:311;;;;;;11608:25:1;;;11664:2;11649:18;;11642:34;11596:2;11581:18;;11434:248;148471:311:0;;;;;;;;148826:1;148803:20;:24;;;148910:10;:12;;;;;;:::i;:::-;;;;;;142830:6108;;;;;;;142825:3;;;;;:::i;:::-;;;;142791:6147;;;;142708:6241;142682:6267;142557:6399;142504:6452::o;140593:699::-;140776:21;;-1:-1:-1;;;;;140776:21:0;;;140743:54;;-1:-1:-1;;;140841:23:0;;;140808:19;;;:56;-1:-1:-1;;;140908:22:0;;-1:-1:-1;;;;;140908:22:0;140875:18;;;:55;-1:-1:-1;;;140974:19:0;;;;140941:52;;:15;;;:52;140776:21;141037:34;;;;-1:-1:-1;;;;;141037:34:0;;;141004:30;;;:67;-1:-1:-1;;;141115:34:0;;;;141082:30;;;:67;-1:-1:-1;;;141193:22:0;;;141160:18;;;:55;-1:-1:-1;;;141259:25:0;;;;141226:21;;;;:58;140593:699::o;132287:885::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;132399:25:0;132435:28;132474:17;132502:25;132538:22;132571:24;132606:21;132638:18;132874:3;;;;;;;;;-1:-1:-1;;;;;132874:3:0;-1:-1:-1;;;;;132874:11:0;;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;132907:257;;;;;;;;-1:-1:-1;;;;;132907:257:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;132907:257:0;;;;;;;;132287:885;-1:-1:-1;;;;;;;;;132287:885:0:o;135437:712::-;135553:7;125792:2;135658:24;135679:3;125671:4;135658:24;:::i;:::-;135642:11;:41;135638:470;;-1:-1:-1;126030:3:0;135638:470;;;135775:25;135796:4;125671;135775:25;:::i;:::-;135759:11;:42;135755:353;;-1:-1:-1;125970:3:0;135755:353;;;135893:26;135914:5;125671:4;135893:26;:::i;:::-;135877:11;:43;135873:235;;-1:-1:-1;125910:3:0;135873:235;;;136014:27;136035:6;125671:4;136014:27;:::i;:::-;135998:11;:44;135994:114;;-1:-1:-1;125851:2:0;135994:114;136127:14;135437:712;-1:-1:-1;;135437:712:0:o;138769:1581::-;139005:27;;;139001:1342;;139087:332;;;;;;;;139127:10;;-1:-1:-1;;;;;139087:332:0;;;;;139168:10;;-1:-1:-1;;;;;139087:332:0;;;;;139210:11;-1:-1:-1;;;;;139087:332:0;;;;;139245:4;139087:332;;;;;;139279:1;-1:-1:-1;;;;;139087:332:0;;;;;139311:1;-1:-1:-1;;;;;139087:332:0;;;;;139343:11;-1:-1:-1;;;;;139087:332:0;;;;;139385:14;139087:332;;;;;139049:10;:18;139060:6;-1:-1:-1;;;;;139049:18:0;-1:-1:-1;;;;;139049:18:0;;;;;;;;;;;;:370;;;;;;;;;;;;;-1:-1:-1;;;;;139049:370:0;;;;;-1:-1:-1;;;;;139049:370:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139049:370:0;;;;;-1:-1:-1;;;;;139049:370:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139049:370:0;;;;;-1:-1:-1;;;;;139049:370:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139049:370:0;;;;;-1:-1:-1;;;;;139049:370:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139049:370:0;;;;;-1:-1:-1;;;;;139049:370:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139049:370:0;;;;;-1:-1:-1;;;;;139049:370:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;139001:1342;;;-1:-1:-1;;139441:27:0;;;;139437:906;;139523:332;;;;;;;;139563:10;;-1:-1:-1;;;;;139523:332:0;;;;;139604:10;;-1:-1:-1;;;;;139523:332:0;;;;;139646:11;-1:-1:-1;;;;;139523:332:0;;;;;139681:4;139523:332;;;;;;139715:1;-1:-1:-1;;;;;139523:332:0;;;;;139747:1;-1:-1:-1;;;;;139523:332:0;;;;;139779:11;-1:-1:-1;;;;;139523:332:0;;;;;139821:14;139523:332;;;;;139485:10;:18;139496:6;-1:-1:-1;;;;;139485:18:0;-1:-1:-1;;;;;139485:18:0;;;;;;;;;;;;:370;;;;;;;;;;;;;-1:-1:-1;;;;;139485:370:0;;;;;-1:-1:-1;;;;;139485:370:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139485:370:0;;;;;-1:-1:-1;;;;;139485:370:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139485:370:0;;;;;-1:-1:-1;;;;;139485:370:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139485:370:0;;;;;-1:-1:-1;;;;;139485:370:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139485:370:0;;;;;-1:-1:-1;;;;;139485:370:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139485:370:0;;;;;-1:-1:-1;;;;;139485:370:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;139437:906;;;-1:-1:-1;;139877:26:0;;;;139873:470;;139958:332;;;;;;;;139998:10;;-1:-1:-1;;;;;139958:332:0;;;;;140039:10;;-1:-1:-1;;;;;139958:332:0;;;;;140081:11;-1:-1:-1;;;;;139958:332:0;;;;;140116:4;139958:332;;;;;;140150:1;-1:-1:-1;;;;;139958:332:0;;;;;140182:1;-1:-1:-1;;;;;139958:332:0;;;;;140214:11;-1:-1:-1;;;;;139958:332:0;;;;;140256:14;139958:332;;;;;139920:9;:18;139930:7;139920:18;;;;;;;;;;;:370;;;;;;;;;;;;;-1:-1:-1;;;;;139920:370:0;;;;;-1:-1:-1;;;;;139920:370:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139920:370:0;;;;;-1:-1:-1;;;;;139920:370:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139920:370:0;;;;;-1:-1:-1;;;;;139920:370:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139920:370:0;;;;;-1:-1:-1;;;;;139920:370:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139920:370:0;;;;;-1:-1:-1;;;;;139920:370:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139920:370:0;;;;;-1:-1:-1;;;;;139920:370:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;139873:470;138769:1581;;;;;;:::o;8570:201::-;8653:4;4107:10;8709:32;4107:10;8725:7;8734:6;8709:8;:32::i;141529:750::-;141712:17;;141667:63;;141786:19;;;;141862:18;;;;141929:15;;;;141892:52;;-1:-1:-1;;;141892:52:0;-1:-1:-1;;;;;;;;;;141817:64:0;;;-1:-1:-1;;;141817:64:0;141892:52;;;;-1:-1:-1;;;;;;;;;;141741:65:0;;;-1:-1:-1;;;141741:65:0;-1:-1:-1;;141741:65:0;;;141667:63;;;;141741:65;;;;;;;;141892:52;;;;;;;;;;;142000:30;;;;141667:63;141955:34;;;:76;;142087:30;;;;142174:18;;;;142249:21;;;;;142204:67;;-1:-1:-1;;;142204:67:0;-1:-1:-1;;;;;;;;;;142129:64:0;;;-1:-1:-1;;;142129:64:0;142204:67;-1:-1:-1;;;;;142042:76:0;;;-1:-1:-1;;;142042:76:0;-1:-1:-1;;;;;;142042:76:0;;;141955;;;;142042;;;;;;;;142204:67;;;;;;;;141529:750::o;137676:621::-;137846:7;;;;137937:14;;137933:319;;137968:24;138033:10;137996:33;125671:4;137996:12;:33;:::i;:::-;137995:48;;;;:::i;:::-;137968:75;-1:-1:-1;137968:75:0;138068:27;125671:4;138068:6;:27;:::i;:::-;138067:48;;;;:::i;:::-;138058:57;-1:-1:-1;138141:15:0;138058:57;138141:6;:15;:::i;:::-;138130:27;;137953:216;137933:319;;;-1:-1:-1;138208:1:0;;-1:-1:-1;138234:6:0;137933:319;138272:6;;;;-1:-1:-1;137676:621:0;-1:-1:-1;;;;137676:621:0:o;136438:878::-;136575:7;136616:6;136655:24;136676:3;125671:4;136655:24;:::i;:::-;136639:11;:41;136635:638;;125671:4;136716:37;125671:4;126324:2;136716:37;:::i;:::-;136706:48;;:6;:48;:::i;:::-;136705:71;;;;:::i;:::-;136697:79;;136635:638;;;136814:25;136835:4;125671;136814:25;:::i;:::-;136798:11;:42;136794:479;;125671:4;136876:37;125671:4;126265:2;136876:37;:::i;136794:479::-;136974:26;136995:5;125671:4;136974:26;:::i;:::-;136958:11;:43;136954:319;;125671:4;137037:39;125671:4;126206:2;137037:39;:::i;136954:319::-;137137:27;137158:6;125671:4;137137:27;:::i;:::-;137121:11;:44;137117:156;;125671:4;137201:37;125671:4;126148:1;137201:37;:::i;:::-;137191:48;;:6;:48;:::i;:::-;137190:71;;;;:::i;:::-;137182:79;;137117:156;137293:14;137301:6;137293:5;:14;:::i;12660:399::-;-1:-1:-1;;;;;12744:21:0;;12736:65;;;;-1:-1:-1;;;12736:65:0;;14996:2:1;12736:65:0;;;14978:21:1;15035:2;15015:18;;;15008:30;15074:33;15054:18;;;15047:61;15125:18;;12736:65:0;14794:355:1;12736:65:0;12814:49;12843:1;12847:7;12856:6;12814:20;:49::i;:::-;12892:6;12876:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;12909:18:0;;:9;:18;;;;;;;;;;:28;;12931:6;;12909:9;:28;;12931:6;;12909:28;:::i;:::-;;;;-1:-1:-1;;12953:37:0;;345:25:1;;;-1:-1:-1;;;;;12953:37:0;;;12970:1;;12953:37;;333:2:1;318:18;12953:37:0;;;;;;;13003:48;13031:1;13035:7;13044:6;13003:19;:48::i;:::-;12660:399;;:::o;9351:295::-;9482:4;4107:10;9540:38;9556:4;4107:10;9571:6;9540:15;:38::i;:::-;9589:27;9599:4;9605:2;9609:6;9589:9;:27::i;14421:380::-;-1:-1:-1;;;;;14557:19:0;;14549:68;;;;-1:-1:-1;;;14549:68:0;;15356:2:1;14549:68:0;;;15338:21:1;15395:2;15375:18;;;15368:30;15434:34;15414:18;;;15407:62;-1:-1:-1;;;15485:18:1;;;15478:34;15529:19;;14549:68:0;15154:400:1;14549:68:0;-1:-1:-1;;;;;14636:21:0;;14628:68;;;;-1:-1:-1;;;14628:68:0;;15761:2:1;14628:68:0;;;15743:21:1;15800:2;15780:18;;;15773:30;15839:34;15819:18;;;15812:62;-1:-1:-1;;;15890:18:1;;;15883:32;15932:19;;14628:68:0;15559:398:1;14628:68:0;-1:-1:-1;;;;;14709:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;14761:32;;345:25:1;;;14761:32:0;;318:18:1;14761:32:0;;;;;;;14421:380;;;:::o;13392:591::-;-1:-1:-1;;;;;13476:21:0;;13468:67;;;;-1:-1:-1;;;13468:67:0;;16164:2:1;13468:67:0;;;16146:21:1;16203:2;16183:18;;;16176:30;16242:34;16222:18;;;16215:62;-1:-1:-1;;;16293:18:1;;;16286:31;16334:19;;13468:67:0;15962:397:1;13468:67:0;13548:49;13569:7;13586:1;13590:6;13548:20;:49::i;:::-;-1:-1:-1;;;;;13635:18:0;;13610:22;13635:18;;;;;;;;;;;13672:24;;;;13664:71;;;;-1:-1:-1;;;13664:71:0;;16566:2:1;13664:71:0;;;16548:21:1;16605:2;16585:18;;;16578:30;16644:34;16624:18;;;16617:62;-1:-1:-1;;;16695:18:1;;;16688:32;16737:19;;13664:71:0;16364:398:1;13664:71:0;-1:-1:-1;;;;;13771:18:0;;:9;:18;;;;;;;;;;13792:23;;;13771:44;;13837:12;:22;;13809:6;;13771:9;13837:22;;13809:6;;13837:22;:::i;:::-;;;;-1:-1:-1;;13877:37:0;;345:25:1;;;13903:1:0;;-1:-1:-1;;;;;13877:37:0;;;;;333:2:1;318:18;13877:37:0;;;;;;;13927:48;13947:7;13964:1;13968:6;13927:19;:48::i;134372:815::-;134480:21;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134480:21:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134560:17:0;134588:18;134617:16;134644:17;134672:19;134702;134732:15;134926:3;-1:-1:-1;;;;;134926:9:0;;:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;134957:222;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;134372:815;-1:-1:-1;;;;;;;;;;134372:815:0:o;7843:193::-;7922:4;4107:10;7978:28;4107:10;7995:2;7999:6;7978:9;:28::i;149210:553::-;149379:15;;;149392:1;149379:15;;;;;;;;149324:7;;;;149379:15;149392:1;149379:15;;;;;;;;;;-1:-1:-1;149379:15:0;149349:45;;126383:2;149405:30;;:11;149417:1;149405:14;;;;;;;;:::i;:::-;;;;;;:30;;;;;;;;;;;149463:1;149446:11;149458:1;149446:14;;;;;;;;:::i;:::-;:18;;;;:14;;;;;;;;;;;:18;149514:50;;-1:-1:-1;;;149514:50:0;;149478:30;;-1:-1:-1;;;;;149514:37:0;;;;;:50;;149552:11;;149514:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;149514:50:0;;;;;;;;;;;;:::i;:::-;149477:87;;;149577:20;149600:123;126383:2;149648:63;;149670:15;149686:1;149670:18;;;;;;;;:::i;:::-;;;;;;;149649:15;149665:1;149649:18;;;;;;;;:::i;:::-;;;;;;;:39;;;;:::i;:::-;149648:63;;;;:::i;:::-;149600:27;:123::i;:::-;149577:146;149210:553;-1:-1:-1;;;;;149210:553:0:o;150002:226::-;150127:7;150159:61;-1:-1:-1;;;;;150159:61:0;;;-1:-1:-1;;;150159:15:0;:61::i;133459:663::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133894:5:0;;:28;;-1:-1:-1;;;133894:28:0;;;;;345:25:1;;;133592:21:0;;;;;;;;;;-1:-1:-1;;;;;133894:5:0;;:19;;318:18:1;;133894:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;133942:172;;;;;;;;-1:-1:-1;;;;;133942:172:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;133459:663:0:o;15092:453::-;15227:24;15254:25;15264:5;15271:7;15254:9;:25::i;:::-;15227:52;;-1:-1:-1;;15294:16:0;:37;15290:248;;15376:6;15356:16;:26;;15348:68;;;;-1:-1:-1;;;15348:68:0;;23393:2:1;15348:68:0;;;23375:21:1;23432:2;23412:18;;;23405:30;23471:31;23451:18;;;23444:59;23520:18;;15348:68:0;23191:353:1;15348:68:0;15460:51;15469:5;15476:7;15504:6;15485:16;:25;15460:8;:51::i;:::-;15216:329;15092:453;;;:::o;11702:671::-;-1:-1:-1;;;;;11833:18:0;;11825:68;;;;-1:-1:-1;;;11825:68:0;;23751:2:1;11825:68:0;;;23733:21:1;23790:2;23770:18;;;23763:30;23829:34;23809:18;;;23802:62;-1:-1:-1;;;23880:18:1;;;23873:35;23925:19;;11825:68:0;23549:401:1;11825:68:0;-1:-1:-1;;;;;11912:16:0;;11904:64;;;;-1:-1:-1;;;11904:64:0;;24157:2:1;11904:64:0;;;24139:21:1;24196:2;24176:18;;;24169:30;24235:34;24215:18;;;24208:62;-1:-1:-1;;;24286:18:1;;;24279:33;24329:19;;11904:64:0;23955:399:1;11904:64:0;11981:38;12002:4;12008:2;12012:6;11981:20;:38::i;:::-;-1:-1:-1;;;;;12054:15:0;;12032:19;12054:15;;;;;;;;;;;12088:21;;;;12080:72;;;;-1:-1:-1;;;12080:72:0;;24561:2:1;12080:72:0;;;24543:21:1;24600:2;24580:18;;;24573:30;24639:34;24619:18;;;24612:62;-1:-1:-1;;;24690:18:1;;;24683:36;24736:19;;12080:72:0;24359:402:1;12080:72:0;-1:-1:-1;;;;;12188:15:0;;;:9;:15;;;;;;;;;;;12206:20;;;12188:38;;12248:13;;;;;;;;:23;;12220:6;;12188:9;12248:23;;12220:6;;12248:23;:::i;:::-;;;;;;;;12304:2;-1:-1:-1;;;;;12289:26:0;12298:4;-1:-1:-1;;;;;12289:26:0;;12308:6;12289:26;;;;345:25:1;;333:2;318:18;;199:177;12289:26:0;;;;;;;;12328:37;12348:4;12354:2;12358:6;12328:19;:37::i;112525:2619::-;112588:20;112621:15;112646:1;112639:4;:8;;;:57;;112690:4;112683:12;;112639:57;;;112666:4;112659:12;;112658:13;;;:::i;:::-;112621:75;-1:-1:-1;111795:9:0;-1:-1:-1;;111795:9:0;:::i;:::-;112734:16;;112715:7;:36;;112707:50;;;;-1:-1:-1;;;112707:50:0;;25298:2:1;112707:50:0;;;25280:21:1;25337:1;25317:18;;;25310:29;-1:-1:-1;;;25355:18:1;;;25348:31;25396:18;;112707:50:0;25096:324:1;112707:50:0;112770:13;112786:7;112796:3;112786:13;112803:1;112786:18;:93;;-1:-1:-1;;;112786:93:0;;;112807:34;112786:93;112770:109;;;-1:-1:-1;112904:3:0;112894:13;;:18;112890:83;;112970:3;112923:42;:5;112931:34;112923:42;:::i;:::-;112922:51;;112914:59;;112890:83;112998:3;112988:13;;:18;112984:83;;113064:3;113017:42;:5;113025:34;113017:42;:::i;:::-;113016:51;;113008:59;;112984:83;113092:3;113082:13;;:18;113078:83;;113158:3;113111:42;:5;113119:34;113111:42;:::i;:::-;113110:51;;113102:59;;113078:83;113186:4;113176:14;;:19;113172:84;;113253:3;113206:42;:5;113214:34;113206:42;:::i;:::-;113205:51;;113197:59;;113172:84;113281:4;113271:14;;:19;113267:84;;113348:3;113301:42;:5;113309:34;113301:42;:::i;:::-;113300:51;;113292:59;;113267:84;113376:4;113366:14;;:19;113362:84;;113443:3;113396:42;:5;113404:34;113396:42;:::i;:::-;113395:51;;113387:59;;113362:84;113471:4;113461:14;;:19;113457:84;;113538:3;113491:42;:5;113499:34;113491:42;:::i;:::-;113490:51;;113482:59;;113457:84;113566:5;113556:15;;:20;113552:85;;113634:3;113587:42;:5;113595:34;113587:42;:::i;:::-;113586:51;;113578:59;;113552:85;113662:5;113652:15;;:20;113648:85;;113730:3;113683:42;:5;113691:34;113683:42;:::i;:::-;113682:51;;113674:59;;113648:85;113758:5;113748:15;;:20;113744:85;;113826:3;113779:42;:5;113787:34;113779:42;:::i;:::-;113778:51;;113770:59;;113744:85;113854:5;113844:15;;:20;113840:85;;113922:3;113875:42;:5;113883:34;113875:42;:::i;:::-;113874:51;;113866:59;;113840:85;113950:6;113940:16;;:21;113936:86;;114019:3;113972:42;:5;113980:34;113972:42;:::i;:::-;113971:51;;113963:59;;113936:86;114047:6;114037:16;;:21;114033:86;;114116:3;114069:42;:5;114077:34;114069:42;:::i;:::-;114068:51;;114060:59;;114033:86;114144:6;114134:16;;:21;114130:86;;114213:3;114166:42;:5;114174:34;114166:42;:::i;:::-;114165:51;;114157:59;;114130:86;114241:6;114231:16;;:21;114227:86;;114310:3;114263:42;:5;114271:34;114263:42;:::i;:::-;114262:51;;114254:59;;114227:86;114338:7;114328:17;;:22;114324:86;;114407:3;114361:41;:5;114369:33;114361:41;:::i;:::-;114360:50;;114352:58;;114324:86;114435:7;114425:17;;:22;114421:85;;114503:3;114458:40;:5;114466:32;114458:40;:::i;:::-;114457:49;;114449:57;;114421:85;114531:7;114521:17;;:22;114517:83;;114597:3;114554:38;:5;114562:30;114554:38;:::i;:::-;114553:47;;114545:55;;114517:83;114625:7;114615:17;;:22;114611:78;;114686:3;114648:33;:5;114656:25;114648:33;:::i;:::-;114647:42;;114639:50;;114611:78;114713:1;114706:4;:8;;;114702:47;;;114724:25;114744:5;-1:-1:-1;;114724:25:0;:::i;:::-;114716:33;;114702:47;115104:17;115113:7;115104:5;:17;:::i;:::-;:22;:30;;115133:1;115104:30;;;115129:1;115104:30;115087:48;;;;115097:2;115088:11;;;115087:48;:::i;120702:3917::-;120818:14;;;-1:-1:-1;;121355:1:0;121352;121345:20;121395:1;121392;121388:9;121379:18;;121447:5;121443:2;121440:13;121432:5;121428:2;121424:14;121420:34;121411:43;;;121540:5;121549:1;121540:10;121536:185;;121589:1;121575:11;:15;121567:24;;;;;;-1:-1:-1;121644:23:0;;;;-1:-1:-1;121696:13:0;;121536:185;121852:5;121838:11;:19;121830:28;;;;;;122143:17;122221:11;122218:1;122215;122208:25;122584:12;122607:20;;;122599:43;;122739:22;;;;;123562:1;123543;:15;;123542:21;;123793:17;;;123789:21;;123782:28;123852:17;;;123848:21;;123841:28;123912:17;;;123908:21;;123901:28;123972:17;;;123968:21;;123961:28;124032:17;;;124028:21;;124021:28;124093:17;;;124089:21;;;124082:28;123122:12;;;;123118:23;;;123143:1;123114:31;122354:20;;;122343:32;;;123175:12;;;;122398:21;;;;122872:16;;;;123166:21;;;;124565:11;;;;;-1:-1:-1;;120702:3917:0;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:180:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;381:597::-;493:4;522:2;551;540:9;533:21;583:6;577:13;626:6;621:2;610:9;606:18;599:34;651:1;661:140;675:6;672:1;669:13;661:140;;;770:14;;;766:23;;760:30;736:17;;;755:2;732:26;725:66;690:10;;661:140;;;819:6;816:1;813:13;810:91;;;889:1;884:2;875:6;864:9;860:22;856:31;849:42;810:91;-1:-1:-1;962:2:1;941:15;-1:-1:-1;;937:29:1;922:45;;;;969:2;918:54;;381:597;-1:-1:-1;;;381:597:1:o;983:131::-;-1:-1:-1;;;;;1058:31:1;;1048:42;;1038:70;;1104:1;1101;1094:12;1119:315;1187:6;1195;1248:2;1236:9;1227:7;1223:23;1219:32;1216:52;;;1264:1;1261;1254:12;1216:52;1303:9;1290:23;1322:31;1347:5;1322:31;:::i;:::-;1372:5;1424:2;1409:18;;;;1396:32;;-1:-1:-1;;;1119:315:1:o;1955:456::-;2032:6;2040;2048;2101:2;2089:9;2080:7;2076:23;2072:32;2069:52;;;2117:1;2114;2107:12;2069:52;2156:9;2143:23;2175:31;2200:5;2175:31;:::i;:::-;2225:5;-1:-1:-1;2282:2:1;2267:18;;2254:32;2295:33;2254:32;2295:33;:::i;:::-;1955:456;;2347:7;;-1:-1:-1;;;2401:2:1;2386:18;;;;2373:32;;1955:456::o;2605:247::-;2664:6;2717:2;2705:9;2696:7;2692:23;2688:32;2685:52;;;2733:1;2730;2723:12;2685:52;2772:9;2759:23;2791:31;2816:5;2791:31;:::i;3714:248::-;3782:6;3790;3843:2;3831:9;3822:7;3818:23;3814:32;3811:52;;;3859:1;3856;3849:12;3811:52;-1:-1:-1;;3882:23:1;;;3952:2;3937:18;;;3924:32;;-1:-1:-1;3714:248:1:o;4643:315::-;4711:6;4719;4772:2;4760:9;4751:7;4747:23;4743:32;4740:52;;;4788:1;4785;4778:12;4740:52;4824:9;4811:23;4801:33;;4884:2;4873:9;4869:18;4856:32;4897:31;4922:5;4897:31;:::i;:::-;4947:5;4937:15;;;4643:315;;;;;:::o;4963:388::-;5031:6;5039;5092:2;5080:9;5071:7;5067:23;5063:32;5060:52;;;5108:1;5105;5098:12;5060:52;5147:9;5134:23;5166:31;5191:5;5166:31;:::i;:::-;5216:5;-1:-1:-1;5273:2:1;5258:18;;5245:32;5286:33;5245:32;5286:33;:::i;5356:355::-;5558:2;5540:21;;;5597:2;5577:18;;;5570:30;5636:33;5631:2;5616:18;;5609:61;5702:2;5687:18;;5356:355::o;6063:184::-;6133:6;6186:2;6174:9;6165:7;6161:23;6157:32;6154:52;;;6202:1;6199;6192:12;6154:52;-1:-1:-1;6225:16:1;;6063:184;-1:-1:-1;6063:184:1:o;6252:341::-;6454:2;6436:21;;;6493:2;6473:18;;;6466:30;-1:-1:-1;;;6527:2:1;6512:18;;6505:47;6584:2;6569:18;;6252:341::o;6598:127::-;6659:10;6654:3;6650:20;6647:1;6640:31;6690:4;6687:1;6680:15;6714:4;6711:1;6704:15;6730:127;6791:10;6786:3;6782:20;6779:1;6772:31;6822:4;6819:1;6812:15;6846:4;6843:1;6836:15;6862:120;6902:1;6928;6918:35;;6933:18;;:::i;:::-;-1:-1:-1;6967:9:1;;6862:120::o;6987:168::-;7027:7;7093:1;7089;7085:6;7081:14;7078:1;7075:21;7070:1;7063:9;7056:17;7052:45;7049:71;;;7100:18;;:::i;:::-;-1:-1:-1;7140:9:1;;6987:168::o;7160:339::-;7362:2;7344:21;;;7401:2;7381:18;;;7374:30;-1:-1:-1;;;7435:2:1;7420:18;;7413:45;7490:2;7475:18;;7160:339::o;7504:128::-;7544:3;7575:1;7571:6;7568:1;7565:13;7562:39;;;7581:18;;:::i;:::-;-1:-1:-1;7617:9:1;;7504:128::o;7637:375::-;-1:-1:-1;;;;;7895:15:1;;;7877:34;;7947:15;;;;7942:2;7927:18;;7920:43;7994:2;7979:18;;7972:34;;;;7827:2;7812:18;;7637:375::o;8017:164::-;8093:13;;8142;;8135:21;8125:32;;8115:60;;8171:1;8168;8161:12;8115:60;8017:164;;;:::o;8186:202::-;8253:6;8306:2;8294:9;8285:7;8281:23;8277:32;8274:52;;;8322:1;8319;8312:12;8274:52;8345:37;8372:9;8345:37;:::i;8393:380::-;8472:1;8468:12;;;;8515;;;8536:61;;8590:4;8582:6;8578:17;8568:27;;8536:61;8643:2;8635:6;8632:14;8612:18;8609:38;8606:161;;8689:10;8684:3;8680:20;8677:1;8670:31;8724:4;8721:1;8714:15;8752:4;8749:1;8742:15;8606:161;;8393:380;;;:::o;8778:338::-;8980:2;8962:21;;;9019:2;8999:18;;;8992:30;-1:-1:-1;;;9053:2:1;9038:18;;9031:44;9107:2;9092:18;;8778:338::o;9400:125::-;9440:4;9468:1;9465;9462:8;9459:34;;;9473:18;;:::i;:::-;-1:-1:-1;9510:9:1;;9400:125::o;9873:135::-;9912:3;9933:17;;;9930:43;;9953:18;;:::i;:::-;-1:-1:-1;10000:1:1;9989:13;;9873:135::o;10013:251::-;10083:6;10136:2;10124:9;10115:7;10111:23;10107:32;10104:52;;;10152:1;10149;10142:12;10104:52;10184:9;10178:16;10203:31;10228:5;10203:31;:::i;10613:193::-;10652:1;10678:12;10717:2;10714:1;10710:10;10739:3;10729:37;;10746:18;;:::i;:::-;10784:10;;10780:20;;;;;10613:193;-1:-1:-1;;10613:193:1:o;13168:201::-;13207:1;-1:-1:-1;;;;;13280:2:1;13277:1;13273:10;13302:3;13292:37;;13309:18;;:::i;13374:177::-;13452:13;;-1:-1:-1;;;;;13494:32:1;;13484:43;;13474:71;;13541:1;13538;13531:12;13556:169;13634:13;;13687:12;13676:24;;13666:35;;13656:63;;13715:1;13712;13705:12;13730:163;13808:13;;13861:6;13850:18;;13840:29;;13830:57;;13883:1;13880;13873:12;13898:891;14024:6;14032;14040;14048;14056;14064;14072;14080;14133:3;14121:9;14112:7;14108:23;14104:33;14101:53;;;14150:1;14147;14140:12;14101:53;14173:39;14202:9;14173:39;:::i;:::-;14163:49;;14231:48;14275:2;14264:9;14260:18;14231:48;:::i;:::-;14221:58;;14298:48;14342:2;14331:9;14327:18;14298:48;:::i;:::-;14288:58;;14365:48;14409:2;14398:9;14394:18;14365:48;:::i;:::-;14355:58;;14432:49;14476:3;14465:9;14461:19;14432:49;:::i;:::-;14422:59;;14500:49;14544:3;14533:9;14529:19;14500:49;:::i;:::-;14490:59;;14568:49;14612:3;14601:9;14597:19;14568:49;:::i;:::-;14558:59;;14660:3;14649:9;14645:19;14639:26;-1:-1:-1;;;;;14698:5:1;14694:46;14687:5;14684:57;14674:85;;14755:1;14752;14745:12;14674:85;14778:5;14768:15;;;13898:891;;;;;;;;;;;:::o;16767:127::-;16828:10;16823:3;16819:20;16816:1;16809:31;16859:4;16856:1;16849:15;16883:4;16880:1;16873:15;16899:253;16971:2;16965:9;17013:4;17001:17;;-1:-1:-1;;;;;17033:34:1;;17069:22;;;17030:62;17027:88;;;17095:18;;:::i;:::-;17131:2;17124:22;16899:253;:::o;17157:275::-;17228:2;17222:9;17293:2;17274:13;;-1:-1:-1;;17270:27:1;17258:40;;-1:-1:-1;;;;;17313:34:1;;17349:22;;;17310:62;17307:88;;;17375:18;;:::i;:::-;17411:2;17404:22;17157:275;;-1:-1:-1;17157:275:1:o;17437:160::-;17514:13;;17567:4;17556:16;;17546:27;;17536:55;;17587:1;17584;17577:12;17602:167;17680:13;;17733:10;17722:22;;17712:33;;17702:61;;17759:1;17756;17749:12;17774:1201;17929:6;17937;17945;17953;17961;17969;17977;17985;18029:9;18020:7;18016:23;18059:3;18055:2;18051:12;18048:32;;;18076:1;18073;18066:12;18048:32;18100:4;18096:2;18092:13;18089:33;;;18118:1;18115;18108:12;18089:33;;18144:22;;:::i;:::-;18189:39;18218:9;18189:39;:::i;:::-;18182:5;18175:54;18261:48;18305:2;18294:9;18290:18;18261:48;:::i;:::-;18256:2;18249:5;18245:14;18238:72;18342:48;18386:2;18375:9;18371:18;18342:48;:::i;:::-;18337:2;18330:5;18326:14;18319:72;18423:48;18467:2;18456:9;18452:18;18423:48;:::i;:::-;18418:2;18407:14;;18400:72;18411:5;-1:-1:-1;18515:50:1;18559:4;18544:20;;18515:50;:::i;:::-;18505:60;;18584:48;18627:3;18616:9;18612:19;18584:48;:::i;:::-;18574:58;;18651:49;18695:3;18684:9;18680:19;18651:49;:::i;:::-;18641:59;;18719:49;18763:3;18752:9;18748:19;18719:49;:::i;:::-;18709:59;;18787:49;18831:3;18820:9;18816:19;18787:49;:::i;:::-;18777:59;;18855:48;18898:3;18887:9;18883:19;18855:48;:::i;:::-;18845:58;;18922:47;18964:3;18953:9;18949:19;18922:47;:::i;:::-;18912:57;;17774:1201;;;;;;;;;;;:::o;18980:127::-;19041:10;19036:3;19032:20;19029:1;19022:31;19072:4;19069:1;19062:15;19096:4;19093:1;19086:15;19112:647;19281:2;19333:21;;;19403:13;;19306:18;;;19425:22;;;19252:4;;19281:2;19504:15;;;;19478:2;19463:18;;;19252:4;19547:186;19561:6;19558:1;19555:13;19547:186;;;19626:13;;19641:10;19622:30;19610:43;;19708:15;;;;19673:12;;;;19583:1;19576:9;19547:186;;;-1:-1:-1;19750:3:1;;19112:647;-1:-1:-1;;;;;;19112:647:1:o;19764:181::-;19822:4;-1:-1:-1;;;;;19847:6:1;19844:30;19841:56;;;19877:18;;:::i;:::-;-1:-1:-1;19922:1:1;19918:14;19934:4;19914:25;;19764:181::o;19950:732::-;20015:5;20068:3;20061:4;20053:6;20049:17;20045:27;20035:55;;20086:1;20083;20076:12;20035:55;20115:6;20109:13;20141:4;20165:58;20181:41;20219:2;20181:41;:::i;:::-;20165:58;:::i;:::-;20257:15;;;20343:1;20339:10;;;;20327:23;;20323:32;;;20288:12;;;;20367:15;;;20364:35;;;20395:1;20392;20385:12;20364:35;20431:2;20423:6;20419:15;20443:210;20459:6;20454:3;20451:15;20443:210;;;20532:3;20526:10;20549:31;20574:5;20549:31;:::i;:::-;20593:18;;20631:12;;;;20476;;20443:210;;;-1:-1:-1;20671:5:1;19950:732;-1:-1:-1;;;;;;19950:732:1:o;20687:1303::-;20814:6;20822;20875:2;20863:9;20854:7;20850:23;20846:32;20843:52;;;20891:1;20888;20881:12;20843:52;20924:9;20918:16;-1:-1:-1;;;;;20994:2:1;20986:6;20983:14;20980:34;;;21010:1;21007;21000:12;20980:34;21048:6;21037:9;21033:22;21023:32;;21093:7;21086:4;21082:2;21078:13;21074:27;21064:55;;21115:1;21112;21105:12;21064:55;21144:2;21138:9;21166:4;21190:58;21206:41;21244:2;21206:41;:::i;21190:58::-;21282:15;;;21364:1;21360:10;;;;21352:19;;21348:28;;;21313:12;;;;21388:19;;;21385:39;;;21420:1;21417;21410:12;21385:39;21444:11;;;;21464:308;21480:6;21475:3;21472:15;21464:308;;;21553:3;21547:10;21604:5;21601:1;21590:20;21583:5;21580:31;21570:129;;21653:1;21682:2;21678;21671:14;21570:129;21712:18;;21497:12;;;;21750;;;;21464:308;;;21827:18;;;21821:25;21791:5;;-1:-1:-1;21821:25:1;;-1:-1:-1;;;21858:16:1;;;21855:36;;;21887:1;21884;21877:12;21855:36;;21910:74;21976:7;21965:8;21954:9;21950:24;21910:74;:::i;:::-;21900:84;;;20687:1303;;;;;:::o;21995:359::-;22033:4;22077:1;22074;22063:16;22113:1;22110;22099:16;22143:1;22138:3;22134:11;22209:3;22190:16;22186:21;22182:31;22177:3;22173:41;22168:2;22161:10;22157:58;22154:84;;;22218:18;;:::i;:::-;22289:3;22271:16;22267:26;22262:3;22258:36;22254:2;22250:45;22247:71;;;22298:18;;:::i;:::-;-1:-1:-1;22335:13:1;;;21995:359;-1:-1:-1;;;21995:359:1:o;22359:284::-;22397:1;22438;22435;22424:16;22474:1;22471;22460:16;22495:3;22485:37;;22502:18;;:::i;:::-;-1:-1:-1;;22538:30:1;;-1:-1:-1;;22570:15:1;;22534:52;22531:78;;;22589:18;;:::i;:::-;22623:14;;;22359:284;-1:-1:-1;;;22359:284:1:o;22648:538::-;22748:6;22756;22764;22772;22780;22833:3;22821:9;22812:7;22808:23;22804:33;22801:53;;;22850:1;22847;22840:12;22801:53;22873:39;22902:9;22873:39;:::i;:::-;22863:49;;22931:48;22975:2;22964:9;22960:18;22931:48;:::i;:::-;22921:58;;22998:48;23042:2;23031:9;23027:18;22998:48;:::i;:::-;22988:58;;23065:48;23109:2;23098:9;23094:18;23065:48;:::i;:::-;23055:58;;23132:48;23175:3;23164:9;23160:19;23132:48;:::i;:::-;23122:58;;22648:538;;;;;;;;:::o;24766:136::-;24801:3;-1:-1:-1;;;24822:22:1;;24819:48;;24847:18;;:::i;:::-;-1:-1:-1;24887:1:1;24883:13;;24766:136::o;24907:184::-;24941:3;24988:5;24985:1;24974:20;25022:7;25018:12;25009:7;25006:25;25003:51;;25034:18;;:::i;:::-;25074:1;25070:15;;24907:184;-1:-1:-1;;24907:184:1:o;25425:112::-;25457:1;25483;25473:35;;25488:18;;:::i;:::-;-1:-1:-1;25522:9:1;;25425:112::o

Swarm Source

ipfs://6fae9180e5bc3b2fe969c2964f1e17e80de1e312a7226fdda5ba630a8a9e27fc
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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