ETH Price: $2,585.57 (+5.70%)
Gas: 0.19 GWei

Contract

0x96cFA2A369Ec67A93C324A35E693Fbeea11C0594

Overview

ETH Balance

Scroll LogoScroll LogoScroll Logo0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Collect Fee Char...95348522024-09-23 5:48:3921 days ago1727070519IN
0x96cFA2A3...ea11C0594
0 ETH0.000009570.07586954
Collect Fee Char...89229262024-09-02 7:19:5942 days ago1725261599IN
0x96cFA2A3...ea11C0594
0 ETH0.000003430.03768829
Collect Fee Char...85954202024-08-22 6:36:0453 days ago1724308564IN
0x96cFA2A3...ea11C0594
0 ETH0.000006130.0495367
Collect Fee Char...83333192024-08-13 9:20:2562 days ago1723540825IN
0x96cFA2A3...ea11C0594
0 ETH0.000305662.5404342
Collect Fee Char...79586292024-08-01 3:03:5174 days ago1722481431IN
0x96cFA2A3...ea11C0594
0 ETH0.000008630.06642937
Collect Fee Char...76336482024-07-21 3:10:5385 days ago1721531453IN
0x96cFA2A3...ea11C0594
0 ETH0.00000780.06042646
Collect Fee Char...74480122024-07-15 6:34:3691 days ago1721025276IN
0x96cFA2A3...ea11C0594
0 ETH0.000006760.07199432
Collect Fee Char...72997092024-07-10 9:20:0696 days ago1720603206IN
0x96cFA2A3...ea11C0594
0 ETH0.000031930.36027784
Collect Fee Char...69558772024-06-28 10:43:13108 days ago1719571393IN
0x96cFA2A3...ea11C0594
0 ETH0.000019770.2142
Collect Fee Char...67244942024-06-20 9:44:21116 days ago1718876661IN
0x96cFA2A3...ea11C0594
0 ETH0.000023670.25386156
Collect Fee Char...66343422024-06-17 6:36:37119 days ago1718606197IN
0x96cFA2A3...ea11C0594
0 ETH0.000020950.23538758
Collect Fee Char...60307942024-05-27 7:26:35140 days ago1716794795IN
0x96cFA2A3...ea11C0594
0 ETH0.000020520.2
Collect Fee Char...26752782024-01-22 10:51:19266 days ago1705920679IN
0x96cFA2A3...ea11C0594
0 ETH0.000145870.6325
Collect Fee Char...23370052024-01-10 11:21:52278 days ago1704885712IN
0x96cFA2A3...ea11C0594
0 ETH0.000163590.45149999
Collect Fee Char...20144852023-12-30 3:07:29289 days ago1703905649IN
0x96cFA2A3...ea11C0594
0 ETH0.00015220.92
Collect Fee Char...11978902023-11-30 5:44:39319 days ago1701323079IN
0x96cFA2A3...ea11C0594
0 ETH0.000178230.4
Collect Fee Char...9335262023-11-20 2:37:55329 days ago1700447875IN
0x96cFA2A3...ea11C0594
0 ETH0.00012660.49
Collect Fee Char...6651222023-11-09 4:59:56340 days ago1699505996IN
0x96cFA2A3...ea11C0594
0 ETH0.000167350.4692
Collect Fee Char...5306102023-11-04 3:51:19345 days ago1699069879IN
0x96cFA2A3...ea11C0594
0 ETH0.000114970.6
Collect Fee Char...2265282023-10-23 2:28:08357 days ago1698028088IN
0x96cFA2A3...ea11C0594
0 ETH0.000093370.4

Latest 1 internal transaction

Parent Transaction Hash Block From To
1076412023-10-18 14:53:03361 days ago1697640783  Contract Creation0 ETH
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x8F8ed95B...481a94dd9
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
iZiSwapPool

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 10 runs

Other Settings:
default evmVersion, BSL 1.1 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at scrollscan.com on 2023-11-01
*/

// SPDX-License-Identifier: BUSL-1.1

pragma solidity ^0.8.4;

interface IiZiSwapPool {

    /// @notice Emitted when miner successfully add liquidity (mint).
    /// @param sender the address that minted the liquidity
    /// @param owner the owner who will benefit from this liquidity
    /// @param leftPoint left endpoint of the liquidity
    /// @param rightPoint right endpoint of the liquidity
    /// @param liquidity the amount of liquidity minted to the range [leftPoint, rightPoint)
    /// @param amountX amount of tokenX deposit
    /// @param amountY amount of tokenY deposit
    event Mint(
        address sender, 
        address indexed owner, 
        int24 indexed leftPoint, 
        int24 indexed rightPoint, 
        uint128 liquidity, 
        uint256 amountX, 
        uint256 amountY
    );

    /// @notice Emitted when miner successfully decrease liquidity (withdraw).
    /// @param owner owner address of liquidity
    /// @param leftPoint left endpoint of liquidity
    /// @param rightPoint right endpoint of liquidity
    /// @param liquidity amount of liquidity decreased
    /// @param amountX amount of tokenX withdrawed
    /// @param amountY amount of tokenY withdrawed
    event Burn(
        address indexed owner, 
        int24 indexed leftPoint,
        int24 indexed rightPoint,
        uint128 liquidity,
        uint256 amountX,
        uint256 amountY
    );

    /// @notice Emitted when fees and withdrawed liquidity are collected 
    /// @param owner The owner of the Liquidity
    /// @param recipient recipient of those token
    /// @param leftPoint The left point of the liquidity
    /// @param rightPoint The right point of the liquidity
    /// @param amountX The amount of tokenX (fees and withdrawed tokenX from liquidity)
    /// @param amountY The amount of tokenY (fees and withdrawed tokenY from liquidity)
    event CollectLiquidity(
        address indexed owner,
        address recipient,
        int24 indexed leftPoint,
        int24 indexed rightPoint,
        uint256 amountX,
        uint256 amountY
    );

    /// @notice Emitted when a trader successfully exchange.
    /// @param tokenX tokenX of pool
    /// @param tokenY tokenY of pool
    /// @param fee fee amount of pool
    /// @param sellXEarnY true for selling tokenX, false for buying tokenX
    /// @param amountX amount of tokenX in this exchange
    /// @param amountY amount of tokenY in this exchange
    /// @param currentPoint current point after swap
    event Swap(
        address indexed tokenX,
        address indexed tokenY,
        uint24 indexed fee,
        bool sellXEarnY,
        uint256 amountX,
        uint256 amountY,
        int24 currentPoint
    );

    /// @notice Emitted by the pool for any flashes of tokenX/tokenY.
    /// @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 amountX the amount of tokenX that was flashed
    /// @param amountY the amount of tokenY that was flashed
    /// @param paidX the amount of tokenX paid for the flash, which can exceed the amountX plus the fee
    /// @param paidY the amount of tokenY paid for the flash, which can exceed the amountY plus the fee
    event Flash(
        address indexed sender,
        address indexed recipient,
        uint256 amountX,
        uint256 amountY,
        uint256 paidX,
        uint256 paidY
    );

    /// @notice Emitted when a seller successfully add a limit order.
    /// @param owner owner of limit order
    /// @param addAmount amount of token to sell the seller added
    /// @param acquireAmount amount of earn-token acquired, if there exists some opposite order before 
    /// @param point point of limit order
    /// @param claimSold claimed sold sell-token, if this owner has order with same direction on this point before
    /// @param claimEarn claimed earned earn-token, if this owner has order with same direction on this point before
    /// @param sellXEarnY direction of limit order, etc. sell tokenX or sell tokenY
    event AddLimitOrder(
        address indexed owner,
        uint128 addAmount,
        uint128 acquireAmount,
        int24 indexed point,
        uint128 claimSold,
        uint128 claimEarn,
        bool sellXEarnY
    );

    /// @notice Emitted when a seller successfully decrease a limit order.
    /// @param owner owner of limit order
    /// @param decreaseAmount amount of token to sell the seller decreased
    /// @param point point of limit order
    /// @param claimSold claimed sold sell-token
    /// @param claimEarn claimed earned earn-token
    /// @param sellXEarnY direction of limit order, etc. sell tokenX or sell tokenY
    event DecLimitOrder(
        address indexed owner,
        uint128 decreaseAmount,
        int24 indexed point,
        uint128 claimSold,
        uint128 claimEarn,
        bool sellXEarnY
    );

    /// @notice Emitted when collect from a limit order
    /// @param owner The owner of the Liquidity
    /// @param recipient recipient of those token
    /// @param point The point of the limit order
    /// @param collectDec The amount of decreased sell token collected
    /// @param collectEarn The amount of earn token collected
    /// @param sellXEarnY direction of limit order, etc. sell tokenX or sell tokenY
    event CollectLimitOrder(
        address indexed owner,
        address recipient,
        int24 indexed point,
        uint128 collectDec,
        uint128 collectEarn,
        bool sellXEarnY
    );

    /// @notice Returns the information about a liquidity by the liquidity's key.
    /// @param key the liquidity's key is a hash of a preimage composed by the miner(owner), pointLeft and pointRight
    /// @return liquidity the amount of liquidity,
    /// @return lastFeeScaleX_128 fee growth of tokenX inside the range as of the last mint/burn/collect,
    /// @return lastFeeScaleY_128 fee growth of tokenY inside the range as of the last mint/burn/collect,
    /// @return tokenOwedX the computed amount of tokenX miner can collect as of the last mint/burn/collect,
    /// @return tokenOwedY the computed amount of tokenY miner can collect as of the last mint/burn/collect
    function liquidity(bytes32 key)
        external
        view
        returns (
            uint128 liquidity,
            uint256 lastFeeScaleX_128,
            uint256 lastFeeScaleY_128,
            uint256 tokenOwedX,
            uint256 tokenOwedY
        );
    
    /// @notice Returns the information about a user's limit order (sell tokenY and earn tokenX).
    /// @param key the limit order's key is a hash of a preimage composed by the seller, point
    /// @return lastAccEarn total amount of tokenX earned by all users at this point as of the last add/dec/collect
    /// @return sellingRemain amount of tokenY not selled in this limit order
    /// @return sellingDec amount of tokenY decreased by seller from this limit order
    /// @return earn amount of unlegacy earned tokenX in this limit order not assigned
    /// @return legacyEarn amount of legacy earned tokenX in this limit order not assgined
    /// @return earnAssign assigned amount of tokenX earned (both legacy and unlegacy) in this limit order
    function userEarnX(bytes32 key)
        external
        view
        returns (
            uint256 lastAccEarn,
            uint128 sellingRemain,
            uint128 sellingDec,
            uint128 earn,
            uint128 legacyEarn,
            uint128 earnAssign
        );
    
    /// @notice Returns the information about a user's limit order (sell tokenX and earn tokenY).
    /// @param key the limit order's key is a hash of a preimage composed by the seller, point
    /// @return lastAccEarn total amount of tokenY earned by all users at this point as of the last add/dec/collect
    /// @return sellingRemain amount of tokenX not selled in this limit order
    /// @return sellingDec amount of tokenX decreased by seller from this limit order
    /// @return earn amount of unlegacy earned tokenY in this limit order not assigned
    /// @return legacyEarn amount of legacy earned tokenY in this limit order not assgined
    /// @return earnAssign assigned amount of tokenY earned (both legacy and unlegacy) in this limit order
    function userEarnY(bytes32 key)
        external
        view
        returns (
            uint256 lastAccEarn,
            uint128 sellingRemain,
            uint128 sellingDec,
            uint128 earn,
            uint128 legacyEarn,
            uint128 earnAssign
        );
    
    /// @notice Mark a given amount of tokenY in a limitorder(sellx and earn y) as assigned.
    /// @param point point (log Price) of seller's limit order,be sure to be times of pointDelta
    /// @param assignY max amount of tokenY to mark assigned
    /// @param fromLegacy true for assigning earned token from legacyEarnY
    /// @return actualAssignY actual amount of tokenY marked
    function assignLimOrderEarnY(
        int24 point,
        uint128 assignY,
        bool fromLegacy
    ) external returns(uint128 actualAssignY);
    
    /// @notice Mark a given amount of tokenX in a limitorder(selly and earn x) as assigned.
    /// @param point point (log Price) of seller's limit order,be sure to be times of pointDelta
    /// @param assignX max amount of tokenX to mark assigned
    /// @param fromLegacy true for assigning earned token from legacyEarnX
    /// @return actualAssignX actual amount of tokenX marked
    function assignLimOrderEarnX(
        int24 point,
        uint128 assignX,
        bool fromLegacy
    ) external returns(uint128 actualAssignX);

    /// @notice Decrease limitorder of selling X.
    /// @param point point of seller's limit order, be sure to be times of pointDelta
    /// @param deltaX max amount of tokenX seller wants to decrease
    /// @return actualDeltaX actual amount of tokenX decreased
    /// @return legacyAccEarn legacyAccEarnY of pointOrder at point when calling this interface
    function decLimOrderWithX(
        int24 point,
        uint128 deltaX
    ) external returns (uint128 actualDeltaX, uint256 legacyAccEarn);
    
    /// @notice Decrease limitorder of selling Y.
    /// @param point point of seller's limit order, be sure to be times of pointDelta
    /// @param deltaY max amount of tokenY seller wants to decrease
    /// @return actualDeltaY actual amount of tokenY decreased
    /// @return legacyAccEarn legacyAccEarnX of pointOrder at point when calling this interface
    function decLimOrderWithY(
        int24 point,
        uint128 deltaY
    ) external returns (uint128 actualDeltaY, uint256 legacyAccEarn);
    
    /// @notice Add a limit order (selling x) in the pool.
    /// @param recipient owner of the limit order
    /// @param point point of the order, be sure to be times of pointDelta
    /// @param amountX amount of tokenX to sell
    /// @param data any data that should be passed through to the callback
    /// @return orderX actual added amount of tokenX
    /// @return acquireY amount of tokenY acquired if there is a limit order to sell y before adding
    function addLimOrderWithX(
        address recipient,
        int24 point,
        uint128 amountX,
        bytes calldata data
    ) external returns (uint128 orderX, uint128 acquireY);

    /// @notice Add a limit order (selling y) in the pool.
    /// @param recipient owner of the limit order
    /// @param point point of the order, be sure to be times of pointDelta
    /// @param amountY amount of tokenY to sell
    /// @param data any data that should be passed through to the callback
    /// @return orderY actual added amount of tokenY
    /// @return acquireX amount of tokenX acquired if there exists a limit order to sell x before adding
    function addLimOrderWithY(
        address recipient,
        int24 point,
        uint128 amountY,
        bytes calldata data
    ) external returns (uint128 orderY, uint128 acquireX);

    /// @notice Collect earned or decreased token from limit order.
    /// @param recipient address to benefit
    /// @param point point of limit order, be sure to be times of pointDelta
    /// @param collectDec max amount of decreased selling token to collect
    /// @param collectEarn max amount of earned token to collect
    /// @param isEarnY direction of this limit order, true for sell y, false for sell x
    /// @return actualCollectDec actual amount of decresed selling token collected
    /// @return actualCollectEarn actual amount of earned token collected
    function collectLimOrder(
        address recipient, int24 point, uint128 collectDec, uint128 collectEarn, bool isEarnY
    ) external returns(uint128 actualCollectDec, uint128 actualCollectEarn);

    /// @notice Add liquidity to the pool.
    /// @param recipient newly created liquidity will belong to this address
    /// @param leftPt left endpoint of the liquidity, be sure to be times of pointDelta
    /// @param rightPt right endpoint of the liquidity, be sure to be times of pointDelta
    /// @param liquidDelta amount of liquidity to add
    /// @param data any data that should be passed through to the callback
    /// @return amountX The amount of tokenX that was paid for the liquidity. Matches the value in the callback
    /// @return amountY The amount of tokenY that was paid for the liquidity. Matches the value in the callback
    function mint(
        address recipient,
        int24 leftPt,
        int24 rightPt,
        uint128 liquidDelta,
        bytes calldata data
    ) external returns (uint256 amountX, uint256 amountY);

    /// @notice Decrease a given amount of liquidity from msg.sender's liquidities.
    /// @param leftPt left endpoint of the liquidity
    /// @param rightPt right endpoint of the liquidity
    /// @param liquidDelta amount of liquidity to burn
    /// @return amountX The amount of tokenX should be refund after burn
    /// @return amountY The amount of tokenY should be refund after burn
    function burn(
        int24 leftPt,
        int24 rightPt,
        uint128 liquidDelta
    ) external returns (uint256 amountX, uint256 amountY);

    /// @notice Collect tokens (fee or refunded after burn) from a liquidity.
    /// @param recipient the address which should receive the collected tokens
    /// @param leftPt left endpoint of the liquidity
    /// @param rightPt right endpoint of the liquidity
    /// @param amountXLim max amount of tokenX the owner wants to collect
    /// @param amountYLim max amount of tokenY the owner wants to collect
    /// @return actualAmountX the amount tokenX collected
    /// @return actualAmountY the amount tokenY collected
    function collect(
        address recipient,
        int24 leftPt,
        int24 rightPt,
        uint256 amountXLim,
        uint256 amountYLim
    ) external returns (uint256 actualAmountX, uint256 actualAmountY);

    /// @notice Swap tokenY for tokenX, given max amount of tokenY user willing to pay.
    /// @param recipient the address to receive tokenX
    /// @param amount the max amount of tokenY user willing to pay
    /// @param highPt the highest point(price) of x/y during swap
    /// @param data any data to be passed through to the callback
    /// @return amountX amount of tokenX payed
    /// @return amountY amount of tokenY acquired
    function swapY2X(
        address recipient,
        uint128 amount,
        int24 highPt,
        bytes calldata data
    ) external returns (uint256 amountX, uint256 amountY);
    
    /// @notice Swap tokenY for tokenX, given amount of tokenX user desires.
    /// @param recipient the address to receive tokenX
    /// @param desireX the amount of tokenX user desires
    /// @param highPt the highest point(price) of x/y during swap
    /// @param data any data to be passed through to the callback
    /// @return amountX amount of tokenX payed
    /// @return amountY amount of tokenY acquired
    function swapY2XDesireX(
        address recipient,
        uint128 desireX,
        int24 highPt,
        bytes calldata data
    ) external returns (uint256 amountX, uint256 amountY);
    
    /// @notice Swap tokenX for tokenY, given max amount of tokenX user willing to pay.
    /// @param recipient the address to receive tokenY
    /// @param amount the max amount of tokenX user willing to pay
    /// @param lowPt the lowest point(price) of x/y during swap
    /// @param data any data to be passed through to the callback
    /// @return amountX amount of tokenX acquired
    /// @return amountY amount of tokenY payed
    function swapX2Y(
        address recipient,
        uint128 amount,
        int24 lowPt,
        bytes calldata data
    ) external returns (uint256 amountX, uint256 amountY);
    
    /// @notice Swap tokenX for tokenY, given amount of tokenY user desires.
    /// @param recipient the address to receive tokenY
    /// @param desireY the amount of tokenY user desires
    /// @param lowPt the lowest point(price) of x/y during swap
    /// @param data any data to be passed through to the callback
    /// @return amountX amount of tokenX acquired
    /// @return amountY amount of tokenY payed
    function swapX2YDesireY(
        address recipient,
        uint128 desireY,
        int24 lowPt,
        bytes calldata data
    ) external returns (uint256 amountX, uint256 amountY);

    /// @notice Returns sqrt(1.0001), in 96 bit fixpoint number.
    function sqrtRate_96() external view returns(uint160);
    
    /// @notice State values of pool.
    /// @return sqrtPrice_96 a 96 fixpoing number describe the sqrt value of current price(tokenX/tokenY)
    /// @return currentPoint the current point of the pool, 1.0001 ^ currentPoint = price
    /// @return observationCurrentIndex the index of the last oracle observation that was written,
    /// @return observationQueueLen the current maximum number of observations stored in the pool,
    /// @return observationNextQueueLen the next maximum number of observations, to be updated when the observation.
    /// @return locked whether the pool is locked (only used for checking reentrance)
    /// @return liquidity liquidity on the currentPoint (currX * sqrtPrice + currY / sqrtPrice)
    /// @return liquidityX liquidity of tokenX
    function state()
        external view
        returns(
            uint160 sqrtPrice_96,
            int24 currentPoint,
            uint16 observationCurrentIndex,
            uint16 observationQueueLen,
            uint16 observationNextQueueLen,
            bool locked,
            uint128 liquidity,
            uint128 liquidityX
        );
    
    /// @notice LimitOrder info on a given point.
    /// @param point the given point 
    /// @return sellingX total amount of tokenX selling on the point
    /// @return earnY total amount of unclaimed earned tokenY for unlegacy sellingX
    /// @return accEarnY total amount of earned tokenY(via selling tokenX) by all users at this point as of the last swap
    /// @return legacyAccEarnY latest recorded 'accEarnY' value when sellingX is clear (legacy)
    /// @return legacyEarnY total amount of unclaimed earned tokenY for legacy (cleared during swap) sellingX
    /// @return sellingY total amount of tokenYselling on the point
    /// @return earnX total amount of unclaimed earned tokenX for unlegacy sellingY
    /// @return legacyEarnX total amount of unclaimed earned tokenX for legacy (cleared during swap) sellingY
    /// @return accEarnX total amount of earned tokenX(via selling tokenY) by all users at this point as of the last swap
    /// @return legacyAccEarnX latest recorded 'accEarnX' value when sellingY is clear (legacy)
    function limitOrderData(int24 point)
        external view
        returns(
            uint128 sellingX,
            uint128 earnY,
            uint256 accEarnY,
            uint256 legacyAccEarnY,
            uint128 legacyEarnY,
            uint128 sellingY,
            uint128 earnX,
            uint128 legacyEarnX,
            uint256 accEarnX,
            uint256 legacyAccEarnX
        );
    
    /// @notice Query infomation about a point whether has limit order or is an liquidity's endpoint.
    /// @param point point to query
    /// @return val endpoint for val&1>0 and has limit order for val&2 > 0
    function orderOrEndpoint(int24 point) external returns(int24 val);

    /// @notice Returns observation data about a specific index.
    /// @param index the index of observation array
    /// @return timestamp the timestamp of the observation,
    /// @return accPoint the point multiplied by seconds elapsed for the life of the pool as of the observation timestamp,
    /// @return init whether the observation has been initialized and the above values are safe to use
    function observations(uint256 index)
        external
        view
        returns (
            uint32 timestamp,
            int56 accPoint,
            bool init
        );

    /// @notice Point status in the pool.
    /// @param point the point
    /// @return liquidSum the total amount of liquidity that uses the point either as left endpoint or right endpoint
    /// @return liquidDelta how much liquidity changes when the pool price crosses the point from left to right
    /// @return accFeeXOut_128 the fee growth on the other side of the point from the current point in tokenX
    /// @return accFeeYOut_128 the fee growth on the other side of the point from the current point in tokenY
    /// @return isEndpt whether the point is an endpoint of a some miner's liquidity, true if liquidSum > 0
    function points(int24 point)
        external
        view
        returns (
            uint128 liquidSum,
            int128 liquidDelta,
            uint256 accFeeXOut_128,
            uint256 accFeeYOut_128,
            bool isEndpt
        );

    /// @notice Returns 256 packed point (statusVal>0) boolean values. See PointBitmap for more information.
    function pointBitmap(int16 wordPosition) external view returns (uint256);

    /// @notice Returns the integral value of point(time) and integral value of 1/liquidity(time)
    ///     at some target timestamps (block.timestamp - secondsAgo[i])
    /// @dev Reverts if target timestamp is early than oldest observation in the queue
    /// @dev If you call this method with secondsAgos = [3600, 0]. the average point of this pool during recent hour is 
    /// (accPoints[1] - accPoints[0]) / 3600
    /// @param secondsAgos describe the target timestamp , targetTimestimp[i] = block.timestamp - secondsAgo[i]
    /// @return accPoints integral value of point(time) from 0 to each target timestamp
    function observe(uint32[] calldata secondsAgos)
        external
        view
        returns (int56[] memory accPoints);
    
    /// @notice Expand max-length of observation queue.
    /// @param newNextQueueLen new value of observationNextQueueLen, which should be greater than current observationNextQueueLen
    function expandObservationQueue(uint16 newNextQueueLen) external;

    /// @notice Borrow tokenX and/or tokenY and pay it back within a block.
    /// @dev The caller needs to implement a IiZiSwapPool#flashCallback callback function
    /// @param recipient the address which will receive the tokenY and/or tokenX
    /// @param amountX the amount of tokenX to borrow
    /// @param amountY the amount of tokenY to borrow
    /// @param data Any data to be passed through to the callback
    function flash(
        address recipient,
        uint256 amountX,
        uint256 amountY,
        bytes calldata data
    ) external;

    /// @notice Returns a snapshot infomation of Liquidity in [leftPoint, rightPoint).
    /// @param leftPoint left endpoint of range, should be times of pointDelta
    /// @param rightPoint right endpoint of range, should be times of pointDelta
    /// @return deltaLiquidities an array of delta liquidity for points in the range
    ///    note 1. delta liquidity here is amount of liquidity changed when cross a point from left to right
    ///    note 2. deltaLiquidities only contains points which are times of pointDelta
    ///    note 3. this function may cost a ENORMOUS amount of gas, be careful to call
    function liquiditySnapshot(int24 leftPoint, int24 rightPoint) external view returns(int128[] memory deltaLiquidities);

    struct LimitOrderStruct {
        uint128 sellingX;
        uint128 earnY;
        uint256 accEarnY;
        uint128 sellingY;
        uint128 earnX;
        uint256 accEarnX;
    }

    /// @notice Returns a snapshot infomation of Limit Order in [leftPoint, rightPoint).
    /// @param leftPoint left endpoint of range, should be times of pointDelta
    /// @param rightPoint right endpoint of range, should be times of pointDelta
    /// @return limitOrders an array of Limit Orders for points in the range
    ///    note 1. this function may cost a HUGE amount of gas, be careful to call
    function limitOrderSnapshot(int24 leftPoint, int24 rightPoint) external view returns(LimitOrderStruct[] memory limitOrders); 

    /// @notice Amount of charged fee on tokenX.
    function totalFeeXCharged() external view returns(uint256);

    /// @notice Amount of charged fee on tokenY.
    function totalFeeYCharged() external view returns(uint256);

    /// @notice Percent to charge from miner's fee.
    function feeChargePercent() external view returns(uint24);

    /// @notice Collect charged fee, only factory's chargeReceiver can call.
    function collectFeeCharged() external;

    /// @notice modify 'feeChargePercent', only owner has authority.
    /// @param newFeeChargePercent new value of feeChargePercent, a nature number range in [0, 100], 
    function modifyFeeChargePercent(uint24 newFeeChargePercent) external;
    
}


// File contracts/interfaces/IiZiSwapFactory.sol


pragma solidity ^0.8.4;

interface IiZiSwapFactory {

    /// @notice emit when successfuly create a new pool (calling iZiSwapFactory#newPool)
    /// @param tokenX address of erc-20 tokenX
    /// @param tokenY address of erc-20 tokenY
    /// @param fee fee amount of swap (3000 means 0.3%)
    /// @param pointDelta minimum number of distance between initialized or limitorder points
    /// @param pool address of swap pool
    event NewPool(
        address indexed tokenX,
        address indexed tokenY,
        uint24 indexed fee,
        uint24 pointDelta,
        address pool
    );

    /// @notice module to support swap from tokenX to tokenY
    /// @return swapX2YModule address
    function swapX2YModule() external returns (address);

    /// @notice module to support swap from tokenY to tokenX
    /// @return swapY2XModule address
    function swapY2XModule() external returns (address);

    /// @notice module to support mint/burn/collect function of pool
    /// @return liquidityModule address
    function liquidityModule() external returns (address);

    /// @notice address of module for user to manage limit orders
    /// @return limitOrderModule address
    function limitOrderModule() external returns (address);

    /// @notice address of module for flash loan
    /// @return flashModule address
    function flashModule() external returns (address);

    /// @notice default fee rate from miner's fee gain
    /// @return defaultFeeChargePercent default fee rate * 100
    function defaultFeeChargePercent() external returns (uint24);

    /// @notice Enables a fee amount with the given pointDelta
    /// @dev Fee amounts may never be removed once enabled
    /// @param fee fee amount (3000 means 0.3%)
    /// @param pointDelta The spacing between points to be enforced for all pools created with the given fee amount
    function enableFeeAmount(uint24 fee, uint24 pointDelta) external;

    /// @notice Create a new pool which not exists.
    /// @param tokenX address of tokenX
    /// @param tokenY address of tokenY
    /// @param fee fee amount
    /// @param currentPoint initial point (log 1.0001 of price)
    /// @return address of newly created pool
    function newPool(
        address tokenX,
        address tokenY,
        uint24 fee,
        int24 currentPoint
    ) external returns (address);

    /// @notice Charge receiver of all pools.
    /// @return address of charge receiver
    function chargeReceiver() external view returns(address);

    /// @notice Get pool of (tokenX, tokenY, fee), address(0) for not exists.
    /// @param tokenX address of tokenX
    /// @param tokenY address of tokenY
    /// @param fee fee amount
    /// @return address of pool
    function pool(
        address tokenX,
        address tokenY,
        uint24 fee
    ) external view returns(address);

    /// @notice Get point delta of a given fee amount.
    /// @param fee fee amount
    /// @return pointDelta the point delta
    function fee2pointDelta(uint24 fee) external view returns (int24 pointDelta);

    /// @notice Change charge receiver, only owner of factory can call.
    /// @param _chargeReceiver address of new receiver
    function modifyChargeReceiver(address _chargeReceiver) external;

    /// @notice Change defaultFeeChargePercent
    /// @param _defaultFeeChargePercent new charge percent
    function modifyDefaultFeeChargePercent(uint24 _defaultFeeChargePercent) external;

    function deployPoolParams() external view returns(
        address tokenX,
        address tokenY,
        uint24 fee,
        int24 currentPoint,
        int24 pointDelta,
        uint24 feeChargePercent
    );
    
}


// File contracts/interfaces/IiZiSwapFlashCallback.sol


pragma solidity ^0.8.4;

interface IiZiSwapFlashCallback {

    /// @notice Call the msg.sender after sending tokens in IiZiSwapPool#flash.
    /// @dev Must repay the tokens to the pool within one call.
    /// @param feeX the fee amount in tokenX due to the pool by the end of the flash
    /// @param feeY the fee amount in tokenY due to the pool by the end of the flash
    /// @param data any data passed through by the caller
    function flashCallback(
        uint256 feeX,
        uint256 feeY,
        bytes calldata data
    ) external;

}


// File contracts/interfaces/IiZiSwapCallback.sol


pragma solidity ^0.8.4;

interface IiZiSwapMintCallback {

    /// @notice Called to msg.sender in iZiSwapPool#mint call
    /// @param x Amount of tokenX need to pay from miner
    /// @param y Amount of tokenY need to pay from miner
    /// @param data Any data passed through by the msg.sender via the iZiSwapPool#mint call
    function mintDepositCallback(
        uint256 x,
        uint256 y,
        bytes calldata data
    ) external;

}

interface IiZiSwapCallback {

    /// @notice Called to msg.sender in iZiSwapPool#swapY2X(DesireX) call
    /// @param x Amount of tokenX trader will acquire
    /// @param y Amount of tokenY trader will pay
    /// @param data Any dadta passed though by the msg.sender via the iZiSwapPool#swapY2X(DesireX) call
    function swapY2XCallback(
        uint256 x,
        uint256 y,
        bytes calldata data
    ) external;

    /// @notice Called to msg.sender in iZiSwapPool#swapX2Y(DesireY) call
    /// @param x Amount of tokenX trader will pay
    /// @param y Amount of tokenY trader will require
    /// @param data Any dadta passed though by the msg.sender via the iZiSwapPool#swapX2Y(DesireY) call
    function swapX2YCallback(
        uint256 x,
        uint256 y,
        bytes calldata data
    ) external;

}

interface IiZiSwapAddLimOrderCallback {

    /// @notice Called to msg.sender in iZiSwapPool#addLimOrderWithX(Y) call
    /// @param x Amount of tokenX seller will pay
    /// @param y Amount of tokenY seller will pay
    /// @param data Any dadta passed though by the msg.sender via the iZiSwapPool#addLimOrderWithX(Y) call
    function payCallback(
        uint256 x,
        uint256 y,
        bytes calldata data
    ) external;

}


// File contracts/interfaces/IOwnable.sol


pragma solidity ^0.8.4;

interface IOwnable {
    /**
     * @dev Returns the address of the current owner.
     */
    function owner() external view returns (address);
}


// File contracts/libraries/MulDivMath.sol


pragma solidity ^0.8.4;

library MulDivMath {

    // compute res = floor(a * b / c), assuming res < 2^256
    function mulDivFloor(
        uint256 a,
        uint256 b,
        uint256 c
    ) internal pure returns (uint256 res) {
        
        // let prodMod2_256 = a * b % 2^256
        uint256 prodMod2_256; 
        // let prodDiv2_256 = a * b / 2^256
        uint256 prodDiv2_256;
        assembly {
            let prodModM1 := mulmod(a, b, not(0))
            prodMod2_256 := mul(a, b)
            prodDiv2_256 := sub(sub(prodModM1, prodMod2_256), lt(prodModM1, prodMod2_256))
        }

        if (prodDiv2_256 == 0) {
            require(c > 0);
            assembly {
                res := div(prodMod2_256, c)
            }
            return res;
        }

        // we should ensure that a * b /c < 2^256 before calling
        require(c > prodDiv2_256);

        uint256 resMod;
        assembly {
            resMod := mulmod(a, b, c)
            // a * b - resMod
            prodDiv2_256 := sub(prodDiv2_256, gt(resMod, prodMod2_256))
            prodMod2_256 := sub(prodMod2_256, resMod)

            // compute lowbit of c
            let lowbit := not(c)
            lowbit := add(lowbit, 1)
            lowbit := and(lowbit, c)

            // c / lowbit
            c := div(c, lowbit)
            // a * b / lowbit
            prodMod2_256 := div(prodMod2_256, lowbit)
            lowbit := add(div(sub(0, lowbit), lowbit), 1)
            prodDiv2_256 := mul(prodDiv2_256, lowbit)
            prodMod2_256 := or(prodMod2_256, prodDiv2_256)

            // get inv of c
            // cInv * c = 1 (mod 2^4)
            let cInv := xor(mul(3, c), 2)
            cInv := mul(cInv, sub(2, mul(c, cInv))) // shift to 2^8
            cInv := mul(cInv, sub(2, mul(c, cInv))) // shift to 2^16
            cInv := mul(cInv, sub(2, mul(c, cInv))) // shift to 2^32
            cInv := mul(cInv, sub(2, mul(c, cInv))) // shift to 2^64
            cInv := mul(cInv, sub(2, mul(c, cInv))) // shift to 2^128
            cInv := mul(cInv, sub(2, mul(c, cInv))) // shift to 2^256

            // a * b / c = prodMod2_256 * cInv (mod 2^256)
            res := mul(prodMod2_256, cInv)
        }
    }

    // compute res = ceil(a * b / c), assuming res < 2^256
    function mulDivCeil(
        uint256 a,
        uint256 b,
        uint256 c
    ) internal pure returns (uint256 res) {
        res = mulDivFloor(a, b, c);
        if (mulmod(a, b, c) > 0) {
            require(res < type(uint256).max);
            res++;
        }
    }
    
}


// File contracts/libraries/TwoPower.sol


pragma solidity ^0.8.4;

library TwoPower {

    uint256 internal constant Pow128 = 0x100000000000000000000000000000000;
    uint256 internal constant Pow96 = 0x1000000000000000000000000;

}


// File contracts/libraries/Liquidity.sol


pragma solidity ^0.8.4;


library Liquidity {

    struct Data {
        uint128 liquidity;
        uint256 lastFeeScaleX_128;
        uint256 lastFeeScaleY_128;
        uint256 tokenOwedX;
        uint256 tokenOwedY;
    }
    
    // delta cannot be int128.min and liquidDelta of any one point will not be int128.min
    function liquidityAddDelta(uint128 l, int128 delta) internal pure returns (uint128 nl) {
        if (delta < 0) {
            // in the pool, max(liquidity) < 2 ** 127
            // so, -delta > -2**127, -delta <= int128.max
            nl = l - uint128(-delta);
        } else {
            nl = l + uint128(delta);
        }
    }

    function get(
        mapping(bytes32 => Data) storage self,
        address minter,
        int24 tl,
        int24 tr
    ) internal view returns (Liquidity.Data storage data) {
        data = self[keccak256(abi.encodePacked(minter, tl, tr))];
    }

    function update(
        Liquidity.Data storage self,
        int128 delta,
        uint256 feeScaleX_128,
        uint256 feeScaleY_128
    ) internal {
        Data memory data = self;
        uint128 liquidity;
        if (delta == 0) {
            require(data.liquidity > 0, "L>0");
            liquidity = data.liquidity;
        } else {
            liquidity = liquidityAddDelta(data.liquidity, delta);
        }
        uint256 deltaScaleX = data.lastFeeScaleX_128;
        uint256 deltaScaleY = data.lastFeeScaleY_128;
        // use assembly to prevent revert if overflow
        // data.lastFeeScaleX(Y)_128 may be "negative" (>=2^255)
        assembly {
            deltaScaleX := sub(feeScaleX_128, deltaScaleX)
            deltaScaleY := sub(feeScaleY_128, deltaScaleY)
        }
        uint256 feeX = MulDivMath.mulDivFloor(deltaScaleX, data.liquidity, TwoPower.Pow128);
        uint256 feeY = MulDivMath.mulDivFloor(deltaScaleY, data.liquidity, TwoPower.Pow128);
        data.liquidity = liquidity;

        // update the position
        if (delta != 0) self.liquidity = liquidity;
        self.lastFeeScaleX_128 = feeScaleX_128;
        self.lastFeeScaleY_128 = feeScaleY_128;
        if (feeX > 0 || feeY > 0) {
            // need to withdraw before overflow
            self.tokenOwedX += feeX;
            self.tokenOwedY += feeY;
        }
    }
    
}


// File contracts/libraries/Point.sol


pragma solidity ^0.8.4;

library Point {
    
    struct Data {
        uint128 liquidSum;
        // value to add when pass this slot from left to right
        // value to dec when pass this slot from right to left
        int128 liquidDelta;
        // if pointPrice < currPrice
        //    value = sigma(feeScaleX(p)), which p < pointPrice
        // if pointPrice >= currPrice
        //    value = sigma(feeScaleX(p)), which p >= pointPrice
        uint256 accFeeXOut_128;
        // similar to accFeeXOut_128
        uint256 accFeeYOut_128;
        // whether the point is endpoint of a liquid segment
        bool isEndpt;
    }
    
    function _getFeeScaleL(
        int24 endpt,
        int24 currpt,
        uint256 feeScale_128,
        uint256 feeScaleBeyond_128
    ) internal pure returns (uint256 feeScaleL_128) {
        if (endpt <= currpt) {
            feeScaleL_128 = feeScaleBeyond_128;
        } else {
            assembly {
                feeScaleL_128:= sub(feeScale_128, feeScaleBeyond_128)
            }
        }
    }
    function _getFeeScaleGE(
        int24 endpt,
        int24 currpt,
        uint256 feeScale_128,
        uint256 feeScaleBeyond_128
    ) internal pure returns (uint256 feeScaleGE_128) {
        if (endpt > currpt) {
            feeScaleGE_128 = feeScaleBeyond_128;
        } else {
            assembly {
                feeScaleGE_128:= sub(feeScale_128, feeScaleBeyond_128)
            }
        }
    }
    /// @dev Calculate fee scale within range [pl, pr).
    /// @param axies collection of points of liquidities
    /// @param pl left endpoint of the segment
    /// @param pr right endpoint of the segment
    /// @param currpt point of the curr price
    /// @param feeScaleX_128 total fee scale of token x accummulated of the exchange
    /// @param feeScaleY_128 similar to feeScaleX_128
    /// @return accFeeXIn_128 accFeeYIn_128 fee scale of token x and token y within range [pl, pr)
    function getSubFeeScale(
        mapping(int24 =>Point.Data) storage axies,
        int24 pl,
        int24 pr,
        int24 currpt,
        uint256 feeScaleX_128,
        uint256 feeScaleY_128
    ) internal view returns (uint256 accFeeXIn_128, uint256 accFeeYIn_128) {
        Point.Data storage plData = axies[pl];
        Point.Data storage prData = axies[pr];
        // tot fee scale of token x for price < pl
        uint256 feeScaleLX_128 = _getFeeScaleL(pl, currpt, feeScaleX_128, plData.accFeeXOut_128);
        // to fee scale of token x for price >= pr
        uint256 feeScaleGEX_128 = _getFeeScaleGE(pr, currpt, feeScaleX_128, prData.accFeeXOut_128);
        uint256 feeScaleLY_128 = _getFeeScaleL(pl, currpt, feeScaleY_128, plData.accFeeYOut_128);
        uint256 feeScaleGEY_128 = _getFeeScaleGE(pr, currpt, feeScaleY_128, prData.accFeeYOut_128);
        assembly{
            accFeeXIn_128 := sub(sub(feeScaleX_128, feeScaleLX_128), feeScaleGEX_128)
            accFeeYIn_128 := sub(sub(feeScaleY_128, feeScaleLY_128), feeScaleGEY_128)
        }
    }
    
    /// @dev Update and endpoint of a liquidity segment.
    /// @param axies collections of points
    /// @param endpt endpoint of a segment
    /// @param isLeft left or right endpoint
    /// @param currpt point of current price
    /// @param delta >0 for add liquidity and <0 for dec
    /// @param liquidLimPt liquid limit per point
    /// @param feeScaleX_128 total fee scale of token x
    /// @param feeScaleY_128 total fee scale of token y
    function updateEndpoint(
        mapping(int24 =>Point.Data) storage axies,
        int24 endpt,
        bool isLeft,
        int24 currpt,
        int128 delta,
        uint128 liquidLimPt,
        uint256 feeScaleX_128,
        uint256 feeScaleY_128
    ) internal returns (bool) {
        Point.Data storage data = axies[endpt];
        uint128 liquidAccBefore = data.liquidSum;
        // delta cannot be 0
        require(delta!=0, "D0");
        // liquide acc cannot overflow
        uint128 liquidAccAfter;
        if (delta > 0) {
            liquidAccAfter = liquidAccBefore + uint128(delta);
            require(liquidAccAfter > liquidAccBefore, "LAAO");
        } else {
            liquidAccAfter = liquidAccBefore - uint128(-delta);
            require(liquidAccAfter < liquidAccBefore, "LASO");
        }
        require(liquidAccAfter <= liquidLimPt, "L LIM PT");
        data.liquidSum = liquidAccAfter;

        if (isLeft) {
            data.liquidDelta = data.liquidDelta + delta;
        } else {
            data.liquidDelta = data.liquidDelta - delta;
        }
        bool new_or_erase = false;
        if (liquidAccBefore == 0) {
            // a new endpoint of certain segment
            new_or_erase = true;
            data.isEndpt = true;

            // for either left point or right point of the liquide segment
            // the feeScaleBeyond can be initialized to arbitrary value
            // we here set the initial val to total feeScale to delay overflow
            if (endpt >= currpt) {
                data.accFeeXOut_128 = feeScaleX_128;
                data.accFeeYOut_128 = feeScaleY_128;
            }
        } else if (liquidAccAfter == 0) {
            // no segment use this endpoint
            new_or_erase = true;
            data.isEndpt = false;
        }
        return new_or_erase;
    }

    /// @dev Pass the endpoint, change the feescale beyond the price.
    /// @param endpt endpoint to change
    /// @param feeScaleX_128 total fee scale of token x
    /// @param feeScaleY_128 total fee scale of token y 
    function passEndpoint(
        Point.Data storage endpt,
        uint256 feeScaleX_128,
        uint256 feeScaleY_128
    ) internal {
        uint256 accFeeXOut_128 = endpt.accFeeXOut_128;
        uint256 accFeeYOut_128 = endpt.accFeeYOut_128;
        assembly {
            accFeeXOut_128 := sub(feeScaleX_128, accFeeXOut_128)
            accFeeYOut_128 := sub(feeScaleY_128, accFeeYOut_128)
        }
        endpt.accFeeXOut_128 = accFeeXOut_128;
        endpt.accFeeYOut_128 = accFeeYOut_128;
    }

}


// File contracts/libraries/PointBitmap.sol


pragma solidity ^0.8.4;

library PointBitmap {

    function MSB(uint256 number) internal pure returns (uint8 msb) {
        require(number > 0);

        if (number >= 0x100000000000000000000000000000000) {
            number >>= 128;
            msb += 128;
        }
        if (number >= 0x10000000000000000) {
            number >>= 64;
            msb += 64;
        }
        if (number >= 0x100000000) {
            number >>= 32;
            msb += 32;
        }
        if (number >= 0x10000) {
            number >>= 16;
            msb += 16;
        }
        if (number >= 0x100) {
            number >>= 8;
            msb += 8;
        }
        if (number >= 0x10) {
            number >>= 4;
            msb += 4;
        }
        if (number >= 0x4) {
            number >>= 2;
            msb += 2;
        }
        if (number >= 0x2) msb += 1;
    }

    function LSB(uint256 number) internal pure returns (uint8 msb) {
        require(number > 0);

        msb = 255;
        if (number & type(uint128).max > 0) {
            msb -= 128;
        } else {
            number >>= 128;
        }
        if (number & type(uint64).max > 0) {
            msb -= 64;
        } else {
            number >>= 64;
        }
        if (number & type(uint32).max > 0) {
            msb -= 32;
        } else {
            number >>= 32;
        }
        if (number & type(uint16).max > 0) {
            msb -= 16;
        } else {
            number >>= 16;
        }
        if (number & type(uint8).max > 0) {
            msb -= 8;
        } else {
            number >>= 8;
        }
        if (number & 0xf > 0) {
            msb -= 4;
        } else {
            number >>= 4;
        }
        if (number & 0x3 > 0) {
            msb -= 2;
        } else {
            number >>= 2;
        }
        if (number & 0x1 > 0) msb -= 1;
    }

    /// @notice Flips the initialized state for a given point from false to true, or vice versa
    /// @param self The mapping in which to flip the point
    /// @param point The point to flip
    /// @param pointDelta The spacing between usable points
    function flipPoint(
        mapping(int16 => uint256) storage self,
        int24 point,
        int24 pointDelta
    ) internal {
        require(point % pointDelta == 0);
        int24 mapPt = point / pointDelta;
        int16 wordIdx = int16(mapPt >> 8);
        uint8 bitIdx = uint8(uint24(mapPt % 256));
        self[wordIdx] ^= 1 << bitIdx;
    }

    function setOne(
        mapping(int16 => uint256) storage self,
        int24 point,
        int24 pointDelta
    ) internal {
        require(point % pointDelta == 0);
        int24 mapPt = point / pointDelta;
        int16 wordIdx = int16(mapPt >> 8);
        uint8 bitIdx = uint8(uint24(mapPt % 256));
        self[wordIdx] |= 1 << bitIdx;
    }

    function setZero(
        mapping(int16 => uint256) storage self,
        int24 point,
        int24 pointDelta
    ) internal {
        require(point % pointDelta == 0);
        int24 mapPt = point / pointDelta;
        int16 wordIdx = int16(mapPt >> 8);
        uint8 bitIdx = uint8(uint24(mapPt % 256));
        self[wordIdx] &= ~(1 << bitIdx);
    }

    // find nearest one from point, or boundary in the same word
    function nearestLeftOneOrBoundary(
        mapping(int16 => uint256) storage self,
        int24 point,
        int24 pointDelta
    ) internal view returns (int24 left) {
        int24 mapPt = point / pointDelta;
        if (point < 0 && point % pointDelta != 0) mapPt--; // round towards negative infinity

        int16 wordIdx = int16(mapPt >> 8);
        uint8 bitIdx = uint8(uint24(mapPt % 256));
        
        uint256 ones = self[wordIdx] & ((1 << bitIdx) - 1 + (1 << bitIdx));

        left = (ones != 0)
            ? (mapPt - int24(uint24(bitIdx - MSB(ones)))) * pointDelta
            : (mapPt - int24(uint24(bitIdx))) * pointDelta;
        
    }
    
    // find nearest one from point, or boundary in the same word
    function nearestRightOneOrBoundary(
        mapping(int16 => uint256) storage self,
        int24 point,
        int24 pointDelta
    ) internal view returns (int24 right) {
        int24 mapPt = point / pointDelta;
        if (point < 0 && point % pointDelta != 0) mapPt--; // round towards negative infinity

        mapPt += 1;
        int16 wordIdx = int16(mapPt >> 8);
        uint8 bitIdx = uint8(uint24(mapPt % 256));
        
        uint256 ones = self[wordIdx] & (~((1 << bitIdx) - 1));

        right = (ones != 0)
            ? (mapPt + int24(uint24(LSB(ones) - bitIdx))) * pointDelta
            : (mapPt + int24(uint24(type(uint8).max - bitIdx))) * pointDelta;
    }

}


// File contracts/libraries/LogPowMath.sol


pragma solidity ^0.8.4;


library LogPowMath {

    int24 internal constant MIN_POINT = -887272;

    int24 internal constant MAX_POINT = -MIN_POINT;

    uint160 internal constant MIN_SQRT_PRICE = 4295128739;

    uint160 internal constant MAX_SQRT_PRICE = 1461446703485210103287273052203988822378723970342;

    /// @notice sqrt(1.0001^point) in form oy 96-bit fix point num
    function getSqrtPrice(int24 point) internal pure returns (uint160 sqrtPrice_96) {
        uint256 absIdx = point < 0 ? uint256(-int256(point)) : uint256(int256(point));
        require(absIdx <= uint256(int256(MAX_POINT)), 'T');

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

        if (point > 0) value = type(uint256).max / value;

        sqrtPrice_96 = uint160((value >> 32) + (value % (1 << 32) == 0 ? 0 : 1));
    }

    // floor(log1.0001(sqrtPrice_96))
    function getLogSqrtPriceFloor(uint160 sqrtPrice_96) internal pure returns (int24 logValue) {
        // second inequality must be < because the price can nevex reach the price at the max tick
        require(sqrtPrice_96 >= MIN_SQRT_PRICE && sqrtPrice_96 < MAX_SQRT_PRICE, 'R');
        uint256 sqrtPrice_128 = uint256(sqrtPrice_96) << 32;

        uint256 x = sqrtPrice_128;
        uint256 m = 0;

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

        if (m >= 128) x = sqrtPrice_128 >> (m - 127);
        else x = sqrtPrice_128 << (127 - m);

        int256 l2 = (int256(m) - 128) << 64;

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

        int256 ls10001 = l2 * 255738958999603826347141;

        int24 logFloor = int24((ls10001 - 3402992956809132418596140100660247210) >> 128);
        int24 logUpper = int24((ls10001 + 291339464771989622907027621153398088495) >> 128);

        logValue = logFloor == logUpper ? logFloor : getSqrtPrice(logUpper) <= sqrtPrice_96 ? logUpper : logFloor;
    }

    function getLogSqrtPriceFU(uint160 sqrtPrice_96) internal pure returns (int24 logFloor, int24 logUpper) {
        // second inequality must be < because the price can nevex reach the price at the max tick
        require(sqrtPrice_96 >= MIN_SQRT_PRICE && sqrtPrice_96 < MAX_SQRT_PRICE, 'R');
        uint256 sqrtPrice_128 = uint256(sqrtPrice_96) << 32;

        uint256 x = sqrtPrice_128;
        uint256 m = 0;

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

        if (m >= 128) x = sqrtPrice_128 >> (m - 127);
        else x = sqrtPrice_128 << (127 - m);

        int256 l2 = (int256(m) - 128) << 64;

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

        int256 ls10001 = l2 * 255738958999603826347141;

        logFloor = int24((ls10001 - 3402992956809132418596140100660247210) >> 128);
        logUpper = int24((ls10001 + 291339464771989622907027621153398088495) >> 128);
    }
    
}


// File contracts/libraries/LimitOrder.sol


pragma solidity ^0.8.4;

library LimitOrder {

    struct Data {
        uint128 sellingX;
        uint128 earnY;
        uint256 accEarnY;
        uint256 legacyAccEarnY;
        uint128 legacyEarnY;
        uint128 sellingY;
        uint128 earnX;
        uint128 legacyEarnX;
        uint256 accEarnX;
        uint256 legacyAccEarnX;
    }

}


// File contracts/libraries/AmountMath.sol


pragma solidity ^0.8.4;



library AmountMath {

    function getAmountY(
        uint128 liquidity,
        uint160 sqrtPriceL_96,
        uint160 sqrtPriceR_96,
        uint160 sqrtRate_96,
        bool upper
    ) internal pure returns (uint256 amount) {
        uint160 numerator = sqrtPriceR_96 - sqrtPriceL_96;
        uint160 denominator = sqrtRate_96 - uint160(TwoPower.Pow96);
        if (!upper) {
            amount = MulDivMath.mulDivFloor(liquidity, numerator, denominator);
        } else {
            amount = MulDivMath.mulDivCeil(liquidity, numerator, denominator);
        }
    }

    function getAmountX(
        uint128 liquidity,
        int24 leftPt,
        int24 rightPt,
        uint160 sqrtPriceR_96,
        uint160 sqrtRate_96,
        bool upper
    ) internal pure returns (uint256 amount) {
        // rightPt - (leftPt - 1), pc = leftPt - 1
        uint160 sqrtPricePrPl_96 = LogPowMath.getSqrtPrice(rightPt - leftPt);
        // 1. sqrtPriceR_96 * 2^96 < 2^256
        // 2. sqrtRate_96 > 2^96, so sqrtPricePrM1_96 < sqrtPriceR_96 < 2^160
        uint160 sqrtPricePrM1_96 = uint160(uint256(sqrtPriceR_96) * TwoPower.Pow96 / sqrtRate_96);

        uint160 numerator = sqrtPricePrPl_96 - uint160(TwoPower.Pow96);
        uint160 denominator = sqrtPriceR_96 - sqrtPricePrM1_96;
        if (!upper) {
            amount = MulDivMath.mulDivFloor(liquidity, numerator, denominator);
        } else {
            amount = MulDivMath.mulDivCeil(liquidity, numerator, denominator);
        }
    }

}


// File contracts/libraries/Converter.sol


pragma solidity ^0.8.4;

library Converter {

    function toUint128(uint256 a) internal pure returns (uint128 b){
        b = uint128(a);
        require(a == b, 'C128');
    }

}


// File contracts/libraries/MaxMinMath.sol


pragma solidity ^0.8.4;

library MaxMinMath {

    function max(int24 a, int24 b) internal pure returns (int24) {
        if (a > b) {
            return a;
        }
        return b;
    }

    function min(int24 a, int24 b) internal pure returns (int24) {
        if (a < b) {
            return a;
        }
        return b;
    }

    function min(uint128 a, uint128 b) internal pure returns (uint128) {
        if (a < b) {
            return a;
        }
        return b;
    }

    function min256(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a < b) {
            return a;
        }
        return b;
    }
    
}


// File contracts/libraries/UserEarn.sol


pragma solidity ^0.8.4;




library UserEarn {

    // describe user's earning info for a limit order
    struct Data {
        // total amount of earned token by all users at this point 
        // with same direction (sell x or sell y) as of the last update(add/dec)
        uint256 lastAccEarn;
        // remaing amount of token on sale in this limit order
        uint128 sellingRemain;
        // uncollected decreased token
        uint128 sellingDec;
        // unassigned and unlegacy earned token
        // earned token before collected need to be assigned
        uint128 earn;
        // unassigned and legacy earned token
        uint128 legacyEarn;
        // assigned but uncollected earned token (both unlegacy and legacy)
        uint128 earnAssign;
    }
    
    function get(
        mapping(bytes32 => Data) storage self,
        address user,
        int24 point
    ) internal view returns (UserEarn.Data storage data) {
        data = self[keccak256(abi.encodePacked(user, point))];
    }

    /// @notice update UserEarn info for an unlegacy (uncleared during swap) limit order.
    ///    update strategy is 'first claim first earn', etc, earned token will be transformed for
    ///    limit orders which is update first
    /// @param self UserEarn storage object of target limit order
    /// @param currAccEarn 'accEarn' value of corresponding point order on swap pool.
    ///    accumulate amount of earned token 
    /// @param sqrtPrice_96 describe price of limit order
    /// @param totalEarn remained(undistributed) amount of earned token of unlegacy limit order on corresponding point
    /// @param isEarnY direction of corresponding limit order.
    function updateUnlegacyOrder(
        UserEarn.Data storage self,
        uint256 currAccEarn,
        uint160 sqrtPrice_96,
        uint128 totalEarn,
        bool isEarnY
    ) internal returns (uint128 totalEarnRemain, uint128 claimSold, uint128 claimEarn) {
        Data memory data = self;

        // first, we compute how many earned token remained on the point order
        uint256 earn = currAccEarn - data.lastAccEarn;
        if (earn > totalEarn) {
            earn = totalEarn;
        }
        // second, compute how many sold token according to the 'first claim first earn' strategy,
        // etc, for earnY, sold = min(sellingRemain, earn / price)
        //      for earnX, sold = min(sellingRemain, earn * price)
        uint256 sold;
        if (isEarnY) {
            uint256 l = MulDivMath.mulDivCeil(earn, TwoPower.Pow96, sqrtPrice_96);
            sold = MulDivMath.mulDivCeil(l, TwoPower.Pow96, sqrtPrice_96);
        } else {
            uint256 l = MulDivMath.mulDivCeil(earn, sqrtPrice_96, TwoPower.Pow96);
            sold = MulDivMath.mulDivCeil(l, sqrtPrice_96, TwoPower.Pow96);
        }
        if (sold > data.sellingRemain) {
            sold = data.sellingRemain;
            if (isEarnY) {
                uint256 l = MulDivMath.mulDivFloor(sold, sqrtPrice_96, TwoPower.Pow96);
                earn = MulDivMath.mulDivFloor(l, sqrtPrice_96, TwoPower.Pow96);
            } else {
                uint256 l = MulDivMath.mulDivFloor(sold, TwoPower.Pow96, sqrtPrice_96);
                earn = MulDivMath.mulDivFloor(l, TwoPower.Pow96, sqrtPrice_96);
            }
        }
        // sold1 = ceil(ceil(earn1 * Q / P) * Q / P)
        // if sold1 <= data.sellingRemain, earn = earn1 <= totalEarn, sold=sold1 <= data.sellingRemain
        // if sold1 > data.sellingRemain, sold = data.sellingRemain
        //     sold1 - 1 < ceil(ceil(earn1 * Q / P) * Q / P)
        //  => sold1 - 1 < ceil(earn1 * Q / P) * Q / P
        //  => floor((sold1 - 1) * P / Q) < ceil(earn1 * Q / P)
        //  => floor((sold1 - 1) * P / Q) < earn1 * Q / P
        //  => earn = floor(floor((sold1 - 1) * P / Q) * P / Q) < earn1 <= totalEarn

        // thirdly, update info of userEarn object

        // earn <= totalEarn
        data.earn += uint128(earn);
        // sold <= data.sellingRemain
        data.sellingRemain -= uint128(sold);
        self.lastAccEarn = currAccEarn;
        if (earn > 0) {
            self.earn = data.earn;
        }
        if (sold > 0) {
            self.sellingRemain = data.sellingRemain;
        }
        claimSold = uint128(sold);
        claimEarn = uint128(earn);
        // earn <= totalEarn
        totalEarnRemain = totalEarn - claimEarn;
    }

    /// @notice update UserEarn info for an unlegacy (uncleared during swap) limit order.
    ///    and then add some amount of selling token
    ///    update strategy is 'first claim first earn', etc, earned token will be transformed for
    ///    limit orders which is update first
    /// @param self UserEarn storage object of target limit order
    /// @param currAccEarn 'accEarn' value of corresponding point order on swap pool.
    ///    accumulate amount of earned token 
    /// @param sqrtPrice_96 describe price of limit order
    /// @param totalEarn remained(undistributed) amount of earned token of unlegacy limit order on corresponding point
    /// @param isEarnY direction of corresponding limit order.
    function addUnlegacyOrder(
        UserEarn.Data storage self,
        uint128 delta,
        uint256 currAccEarn,
        uint160 sqrtPrice_96,
        uint128 totalEarn,
        bool isEarnY
    ) internal returns(uint128 totalEarnRemain, uint128 claimSold, uint128 claimEarn) {
        // first, call `updateUnlegacyOrder` to update unlegacy order
        (totalEarnRemain, claimSold, claimEarn) = updateUnlegacyOrder(self, currAccEarn, sqrtPrice_96, totalEarn, isEarnY);
        // then, add
        self.sellingRemain = self.sellingRemain + delta;
    }

    /// @notice update UserEarn info for an unlegacy (uncleared during swap) limit order.
    ///    and then decrease some amount of selling token (if remain)
    ///    update strategy is 'first claim first earn', etc, earned token will be transformed for
    ///    limit orders which is update first
    /// @param self UserEarn storage object of target limit order
    /// @param currAccEarn 'accEarn' value of corresponding point order on swap pool.
    ///    accumulate amount of earned token 
    /// @param sqrtPrice_96 describe price of limit order
    /// @param totalEarn remained(undistributed) amount of earned token of unlegacy limit order on corresponding point
    /// @param isEarnY direction of corresponding limit order.
    function decUnlegacyOrder(
        UserEarn.Data storage self,
        uint128 delta,
        uint256 currAccEarn,
        uint160 sqrtPrice_96,
        uint128 totalEarn,
        bool isEarnY
    ) internal returns(uint128 actualDelta, uint128 totalEarnRemain, uint128 claimSold, uint128 claimEarn) {
        // first, call `updateUnlegacyOrder` to update unlegacy order
        (totalEarnRemain, claimSold, claimEarn) = updateUnlegacyOrder(self, currAccEarn, sqrtPrice_96, totalEarn, isEarnY);
        // then decrease
        actualDelta = MaxMinMath.min(delta, self.sellingRemain);
        self.sellingRemain = self.sellingRemain - actualDelta;
        self.sellingDec = self.sellingDec + actualDelta;
    }

    /// @notice update UserEarn info for a legacy (cleared during swap) limit order.
    ///    an limit order we call it 'legacy' if it together with other limit order of same
    ///    direction and same point on the pool is cleared during one time of exchanging.
    ///    if an limit order is convinced to be 'legacy', we should mark it as 'sold out',
    ///    etc, transform all its remained selling token to earned token.
    /// @param self UserEarn storage object of target limit order
    /// @param addDelta addition of selling amount
    /// @param currAccEarn 'accEarn' value of corresponding point order on swap pool.
    ///    accumulate amount of earned token 
    /// @param sqrtPrice_96 describe price of limit order
    /// @param totalLegacyEarn remained(undistributed) amount of earned token of legacy limit order on corresponding point
    /// @param isEarnY direction of corresponding limit order.
    function updateLegacyOrder(
        UserEarn.Data storage self,
        uint128 addDelta,
        uint256 currAccEarn,
        uint160 sqrtPrice_96,
        uint128 totalLegacyEarn,
        bool isEarnY
    ) internal returns(uint128 totalLegacyEarnRemain, uint128 sold, uint128 claimedEarn) {
        sold = self.sellingRemain;
        uint256 earn = 0;
        if (sold > 0) {
            // transform all its remained selling token to earned token.
            if (isEarnY) {
                uint256 l = MulDivMath.mulDivFloor(sold, sqrtPrice_96, TwoPower.Pow96);
                // for earnY, earn = sold * price
                earn = MulDivMath.mulDivFloor(l, sqrtPrice_96, TwoPower.Pow96);
            } else {
                uint256 l = MulDivMath.mulDivFloor(sold, TwoPower.Pow96, sqrtPrice_96);
                // for earnX, earn = sold / price
                earn = MulDivMath.mulDivFloor(l, TwoPower.Pow96, sqrtPrice_96);
            }
            if (earn > totalLegacyEarn) {
                earn = totalLegacyEarn;
            }
            self.sellingRemain = 0;
            // count earned token into legacyEarn field, not earn field
            self.legacyEarn += uint128(earn);
        }
        uint128 pastEarn = self.earn;
        if (pastEarn > 0) {
            // add userEarn.earn into legacyEarn
            // because this userEarn is legacy
            self.legacyEarn += pastEarn;
            self.earn = 0;
        }
        // claimedEarn should not involve pastEarn
        claimedEarn = uint128(earn);
        self.lastAccEarn = currAccEarn;
        // because 1. totalLegacyEarn on pointOrder will minus claimedEarn
        // and totalLegacyEarn does not involve pastEarn
        // and 2. pastEarn must have been claimed before
        totalLegacyEarnRemain = totalLegacyEarn - claimedEarn;
        if (addDelta > 0) {
            // sellingRemain has been clear to 0
            self.sellingRemain = addDelta;
        }
    }

}


// File contracts/interfaces/IERC20Minimal.sol

pragma solidity ^0.8.4;

/// @title Minimal ERC20 interface for Uniswap
/// @notice Contains a subset of the full ERC20 interface that is used in Uniswap V3
interface IERC20Minimal {
    /// @notice Returns the balance of a token
    /// @param account The account for which to look up the number of tokens it has, i.e. its balance
    /// @return The number of tokens held by the account
    function balanceOf(address account) external view returns (uint256);

    /// @notice Transfers the amount of token from the `msg.sender` to the recipient
    /// @param recipient The account that will receive the amount transferred
    /// @param amount The number of tokens to send from the sender to the recipient
    /// @return Returns true for a successful transfer, false for an unsuccessful transfer
    function transfer(address recipient, uint256 amount) external returns (bool);

    /// @notice Returns the current allowance given to a spender by an owner
    /// @param owner The account of the token owner
    /// @param spender The account of the token spender
    /// @return The current allowance granted by `owner` to `spender`
    function allowance(address owner, address spender) external view returns (uint256);

    /// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`
    /// @param spender The account which will be allowed to spend a given amount of the owners tokens
    /// @param amount The amount of tokens allowed to be used by `spender`
    /// @return Returns true for a successful approval, false for unsuccessful
    function approve(address spender, uint256 amount) external returns (bool);

    /// @notice Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`
    /// @param sender The account from which the transfer will be initiated
    /// @param recipient The recipient of the transfer
    /// @param amount The amount of the transfer
    /// @return Returns true for a successful transfer, false for unsuccessful
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /// @notice Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.
    /// @param from The account from which the tokens were sent, i.e. the balance decreased
    /// @param to The account to which the tokens were sent, i.e. the balance increased
    /// @param value The amount of tokens that were transferred
    event Transfer(address indexed from, address indexed to, uint256 value);

    /// @notice Event emitted when the approval amount for the spender of a given owner's tokens changes.
    /// @param owner The account that approved spending of its tokens
    /// @param spender The account for which the spending allowance was modified
    /// @param value The new allowance from the owner to the spender
    event Approval(address indexed owner, address indexed spender, uint256 value);
    
}


// File contracts/libraries/TokenTransfer.sol


pragma solidity ^0.8.4;

library TokenTransfer {
    
    function transferToken(
        address tokenAddr,
        address toAddr,
        uint256 amount
    ) internal {
        (bool ok, bytes memory retData) =
            tokenAddr.call(abi.encodeWithSelector(IERC20Minimal.transfer.selector, toAddr, amount));
        require(ok && (retData.length == 0 || abi.decode(retData, (bool))), 'TNS');
    }
    
}


// File contracts/libraries/State.sol


pragma solidity ^0.8.4;

struct State {
    // a 96 fixpoing number describe the sqrt value of current price(tokenX/tokenY)
    uint160 sqrtPrice_96;
    // The current point of the pool, 1.0001 ^ currentPoint = price
    int24 currentPoint;
    // The index of the last oracle observation that was written,
    uint16 observationCurrentIndex;
    // The current maximum number of observations stored in the pool,
    uint16 observationQueueLen;
    // The next maximum number of observations, to be updated when the observation.
    uint16 observationNextQueueLen;
    // whether the pool is locked (only used for checking reentrance)
    bool locked;
    // total liquidity on the currentPoint (currX * sqrtPrice + currY / sqrtPrice)
    uint128 liquidity;
    // liquidity of tokenX, liquidity of tokenY is liquidity - liquidityX
    uint128 liquidityX;
}


// File contracts/libraries/Oracle.sol


pragma solidity ^0.8.4;

library Oracle {

    struct Observation {
        uint32 timestamp;
        // sigma (point_i * time_i - time_(i-1))
        int56 accPoint;
        // true if this observation is inited
        bool init;
    }

    /// @notice Record a new observation with a circular queue.
    /// @param last the specified observation to be updated
    /// @param timestamp the timestamp of the new observation, > last.timestamp
    /// @param currentPoint log 1.0001 of price
    /// @return observation generated
    function newObservation(
        Observation memory last,
        uint32 timestamp,
        int24 currentPoint
    ) private pure returns (Observation memory) {
        uint56 delta = uint56(timestamp - last.timestamp);
        return
            Observation({
                timestamp: timestamp,
                accPoint: last.accPoint + int56(currentPoint) * int56(delta),
                init: true
            });
    }

    function init(Observation[65535] storage self, uint32 timestamp)
        internal
        returns (uint16 queueLen, uint16 nextQueueLen)
    {
        self[0] = Observation({
            timestamp: timestamp,
            accPoint: 0,
            init: true
        });
        return (1, 1);
    }

    /// @notice Append a price oracle observation data in the pool
    /// @param self circular-queue of observation data in array form
    /// @param currentIndex the index of the last observation in the array
    /// @param timestamp timestamp of new observation
    /// @param currentPoint current point of new observation (usually we append the point value just-before exchange)
    /// @param queueLen max-length of circular queue
    /// @param nextQueueLen next max-length of circular queue, if length of queue increase over queueLen, queueLen will become nextQueueLen
    /// @return newIndex index of new observation
    /// @return newQueueLen queueLen value after appending
    function append(
        Observation[65535] storage self,
        uint16 currentIndex,
        uint32 timestamp,
        int24 currentPoint,
        uint16 queueLen,
        uint16 nextQueueLen
    ) internal returns (uint16 newIndex, uint16 newQueueLen) {
        Observation memory last = self[currentIndex];

        if (last.timestamp == timestamp) return (currentIndex, queueLen);

        // if the conditions are right, we can bump the cardinality
        if (nextQueueLen > queueLen && currentIndex == (queueLen - 1)) {
            newQueueLen = nextQueueLen;
        } else {
            newQueueLen = queueLen;
        }

        newIndex = (currentIndex + 1) % newQueueLen;
        self[newIndex] = newObservation(last, timestamp, currentPoint);
    }

    /// @notice Expand the max-length of observation queue
    /// @param queueLen current max-length of queue
    /// @param nextQueueLen next max-length
    /// @return next max-length
    function expand(
        Observation[65535] storage self,
        uint16 queueLen,
        uint16 nextQueueLen
    ) internal returns (uint16) {
        require(queueLen > 0, 'LEN');
        
        if (nextQueueLen <= queueLen) return queueLen;
        
        for (uint16 i = queueLen; i < nextQueueLen; i++) self[i].timestamp = 1;
        return nextQueueLen;
    }

    function lte(
        uint32 time,
        uint32 a,
        uint32 b
    ) private pure returns (bool) {
        if (a <= time && b <= time) return a <= b;

        uint256 aAdjusted = a > time ? a : a + 2**32;
        uint256 bAdjusted = b > time ? b : b + 2**32;

        return aAdjusted <= bAdjusted;
    }
    
    /// @notice Binary search to find two neighbor observations for a target timestamp
    /// @param self observation queue in array form
    /// @param timestamp timestamp of current block
    /// @param targetTimestamp target time stamp
    /// @param currentIdx The index of the last observation in the array
    /// @param queueLen current max-length of queue
    /// @return beforeNeighbor before-or-at observation neighbor to target timestamp
    /// @return afterNeighbor after-or-at observation neighbor to target timestamp
    function findNeighbor(
        Observation[65535] storage self,
        uint32 timestamp,
        uint32 targetTimestamp,
        uint16 currentIdx,
        uint16 queueLen
    ) private view returns (Observation memory beforeNeighbor, Observation memory afterNeighbor) {
        uint256 l = (currentIdx + 1) % queueLen; // oldest observation
        uint256 r = l + queueLen - 1; // newest observation
        uint256 i;
        while (true) {
            i = (l + r) / 2;

            beforeNeighbor = self[i % queueLen];

            if (!beforeNeighbor.init) {
                l = i + 1;
                continue;
            }

            afterNeighbor = self[(i + 1) % queueLen];

            bool leftLessOrEq = lte(timestamp, beforeNeighbor.timestamp, targetTimestamp);

            if (leftLessOrEq && lte(timestamp, targetTimestamp, afterNeighbor.timestamp)) break;

            if (!leftLessOrEq) r = i - 1;
            else l = i + 1;
        }
    }

    /// @notice Find two neighbor observations for a target timestamp
    /// @param self observation queue in array form
    /// @param timestamp timestamp of current block
    /// @param targetTimestamp target time stamp
    /// @param currentPoint current point of swap
    /// @param currentIndex the index of the last observation in the array
    /// @param queueLen current max-length of queue
    /// @return beforeNeighbor before-or-at observation neighbor to target timestamp
    /// @return afterNeighbor after-or-at observation neighbor to target timestamp, if the targetTimestamp is later than last observation in queue,
    ///     the afterNeighbor observation does not exist in the queue
    function getTwoNeighborObservation(
        Observation[65535] storage self,
        uint32 timestamp,
        uint32 targetTimestamp,
        int24 currentPoint,
        uint16 currentIndex,
        uint16 queueLen
    ) private view returns (Observation memory beforeNeighbor, Observation memory afterNeighbor) {
        beforeNeighbor = self[currentIndex];

        if (lte(timestamp, beforeNeighbor.timestamp, targetTimestamp)) {
            if (beforeNeighbor.timestamp == targetTimestamp) {
                return (beforeNeighbor, beforeNeighbor);
            } else {
                return (beforeNeighbor, newObservation(beforeNeighbor, targetTimestamp, currentPoint));
            }
        }

        beforeNeighbor = self[(currentIndex + 1) % queueLen];
        if (!beforeNeighbor.init) beforeNeighbor = self[0];

        require(lte(timestamp, beforeNeighbor.timestamp, targetTimestamp), 'OLD');

        return findNeighbor(self, timestamp, targetTimestamp, currentIndex, queueLen);
    }

    /// @dev Revert if secondsAgo too large.
    /// @param self the observation circular queue in array form
    /// @param timestamp the current block timestamp
    /// @param secondsAgo target timestamp is timestamp-secondsAg, 0 to return the current cumulative values.
    /// @param currentPoint the current point of pool
    /// @param currentIndex the index of the last observation in the array
    /// @param queueLen max-length of circular queue
    /// @return accPoint integral value of point(time) from 0 to each timestamp
    function observeSingle(
        Observation[65535] storage self,
        uint32 timestamp,
        uint32 secondsAgo,
        int24 currentPoint,
        uint16 currentIndex,
        uint16 queueLen
    ) internal view returns (int56 accPoint ) {
        if (secondsAgo == 0) {
            Observation memory last = self[currentIndex];
            if (last.timestamp != timestamp) last = newObservation(last, timestamp, currentPoint);
            return last.accPoint;
        }

        uint32 targetTimestamp = timestamp - secondsAgo;

        (Observation memory beforeNeighbor, Observation memory afterNeighbor) =
            getTwoNeighborObservation(self, timestamp, targetTimestamp, currentPoint, currentIndex, queueLen);

        if (targetTimestamp == beforeNeighbor.timestamp) {
            // we're at the left boundary
            return beforeNeighbor.accPoint;
        } else if (targetTimestamp == afterNeighbor.timestamp) {
            // we're at the right boundary
            return afterNeighbor.accPoint;
        } else {
            // we're in the middle
            uint56 leftRightTimeDelta = afterNeighbor.timestamp - beforeNeighbor.timestamp;
            uint56 targetTimeDelta = targetTimestamp - beforeNeighbor.timestamp;
            return beforeNeighbor.accPoint  + 
                (afterNeighbor.accPoint - beforeNeighbor.accPoint) / int56(leftRightTimeDelta) * int56(targetTimeDelta);
        }
    }

    /// @notice Returns the integral value of point with time 
    /// @dev Reverts if target timestamp is early than oldest observation in the queue
    /// @dev If you call this method with secondsAgos = [3600, 0]. the average point of this pool during recent hour is (accPoints[1] - accPoints[0]) / 3600
    /// @param self the observation circular queue in array form
    /// @param timestamp the current block timestamp
    /// @param secondsAgos describe the target timestamp , targetTimestimp[i] = block.timestamp - secondsAgo[i]
    /// @param currentPoint the current point of pool
    /// @param currentIndex the index of the last observation in the array
    /// @param queueLen max-length of circular queue
    /// @return accPoints integral value of point(time) from 0 to each timestamp
    function observe(
        Observation[65535] storage self,
        uint32 timestamp,
        uint32[] memory secondsAgos,
        int24 currentPoint,
        uint16 currentIndex,
        uint16 queueLen
    ) internal view returns (int56[] memory accPoints ) {
        require(queueLen > 0, 'I');

        accPoints = new int56[](secondsAgos.length);
        for (uint256 i = 0; i < secondsAgos.length; i++) {
            accPoints[i] = observeSingle(
                self,
                timestamp,
                secondsAgos[i],
                currentPoint,
                currentIndex,
                queueLen
            );
        }
    }
    
}


// File contracts/libraries/OrderOrEndpoint.sol


pragma solidity ^0.8.4;

library OrderOrEndpoint {
    
    function getOrderOrEndptVal(mapping(int24 =>int24) storage self, int24 point, int24 pd) internal view returns(int24 val) {
        if (point % pd != 0) {
            return 0;
        }
        val = self[point / pd];
    }
    function setOrderOrEndptVal(mapping(int24 =>int24) storage self, int24 point, int24 pd, int24 val) internal {
        self[point / pd] = val;
    }
    
}


// File contracts/libraries/SwapMathY2X.sol


pragma solidity ^0.8.4;






library SwapMathY2X {

    struct RangeRetState {
        // whether user has run out of tokenY
        bool finished;
        // actual cost of tokenY to buy tokenX
        uint128 costY;
        // actual amount of tokenX acquired
        uint256 acquireX;
        // final point after this swap
        int24 finalPt;
        // sqrt price on final point
        uint160 sqrtFinalPrice_96;
        // liquidity of tokenX at finalPt
        // if finalPt is not rightPt, liquidityX is meaningless
        uint128 liquidityX;
    }
    
    function y2XAtPrice(
        uint128 amountY,
        uint160 sqrtPrice_96,
        uint128 currX
    ) internal pure returns (uint128 costY, uint128 acquireX) {
        uint256 l = MulDivMath.mulDivFloor(amountY, TwoPower.Pow96, sqrtPrice_96);
        // acquireX <= currX <= uint128.max
        acquireX = uint128(MaxMinMath.min256(MulDivMath.mulDivFloor(l, TwoPower.Pow96, sqrtPrice_96), currX));
        l = MulDivMath.mulDivCeil(acquireX, sqrtPrice_96, TwoPower.Pow96);
        uint256 cost = MulDivMath.mulDivCeil(l, sqrtPrice_96, TwoPower.Pow96);
        // costY = cost <= amountY <= uint128.max
        costY = uint128(cost);
    }

    function y2XAtPriceLiquidity(
        uint128 amountY,
        uint160 sqrtPrice_96,
        uint128 liquidityX
    ) internal pure returns (uint128 costY, uint256 acquireX, uint128 newLiquidityX) {
        // amountY * TwoPower.Pow96 < 2^128 * 2^96 = 2^224 < 2^256 
        uint256 maxTransformLiquidityY = uint256(amountY) * TwoPower.Pow96 / sqrtPrice_96;
        // transformLiquidityY <= liquidityX
        uint128 transformLiquidityY = uint128(MaxMinMath.min256(maxTransformLiquidityY, liquidityX));
        // costY <= amountY
        costY = uint128(MulDivMath.mulDivCeil(transformLiquidityY, sqrtPrice_96, TwoPower.Pow96));
        // transformLiquidityY * 2^96 < 2^224 < 2^256
        acquireX = uint256(transformLiquidityY) * TwoPower.Pow96 / sqrtPrice_96;
        newLiquidityX = liquidityX - transformLiquidityY;
    }

    struct Range {
        uint128 liquidity;
        uint160 sqrtPriceL_96;
        int24 leftPt;
        uint160 sqrtPriceR_96;
        int24 rightPt;
        uint160 sqrtRate_96;
    }
    struct RangeCompRet {
        uint128 costY;
        uint256 acquireX;
        bool completeLiquidity;
        int24 locPt;
        uint160 sqrtLoc_96;
    }

    function y2XRangeComplete(
        Range memory rg,
        uint128 amountY
    ) internal pure returns (
        RangeCompRet memory ret
    ) {
        uint256 maxY = AmountMath.getAmountY(rg.liquidity, rg.sqrtPriceL_96, rg.sqrtPriceR_96, rg.sqrtRate_96, true);
        if (maxY <= amountY) {
            // ret.costY <= maxY <= uint128.max
            ret.costY = uint128(maxY);
            ret.acquireX = AmountMath.getAmountX(rg.liquidity, rg.leftPt, rg.rightPt, rg.sqrtPriceR_96, rg.sqrtRate_96, false);
            // we complete this liquidity segment
            ret.completeLiquidity = true;
        } else {
            // we should locate highest price
            // uint160 is enough for muldiv and adding, because amountY < maxY
            uint160 sqrtLoc_96 = uint160(MulDivMath.mulDivFloor(
                amountY,
                rg.sqrtRate_96 - TwoPower.Pow96,
                rg.liquidity
            ) + rg.sqrtPriceL_96);
            ret.locPt = LogPowMath.getLogSqrtPriceFloor(sqrtLoc_96);

            ret.locPt = MaxMinMath.max(rg.leftPt, ret.locPt);
            ret.locPt = MaxMinMath.min(rg.rightPt - 1, ret.locPt);

            ret.completeLiquidity = false;
            ret.sqrtLoc_96 = LogPowMath.getSqrtPrice(ret.locPt);
            if (ret.locPt == rg.leftPt) {
                ret.costY = 0;
                ret.acquireX = 0;
                return ret;
            }

            uint256 costY256 = AmountMath.getAmountY(
                rg.liquidity,
                rg.sqrtPriceL_96,
                ret.sqrtLoc_96,
                rg.sqrtRate_96,
                true
            );
            // ret.costY <= amountY <= uint128.max
            ret.costY = uint128(MaxMinMath.min256(costY256, amountY));

            // costY <= amountY even if the costY is the upperbound of the result
            // because amountY is not a real and sqrtLoc_96 <= sqrtLoc256_96
            ret.acquireX = AmountMath.getAmountX(
                rg.liquidity,
                rg.leftPt,
                ret.locPt,
                ret.sqrtLoc_96,
                rg.sqrtRate_96,
                false
            );
        
        }
    }

    /// @notice Compute amount of tokens exchanged during swapY2X and some amount values (currX, currY, allX) on final point
    ///    after this swap.
    /// @param currentState state values containing (currX, currY, allX) of start point
    /// @param rightPt right most point during this swap
    /// @param sqrtRate_96 sqrt(1.0001)
    /// @param amountY max amount of Y user willing to pay
    /// @return retState amount of token acquired and some values on final point
    function y2XRange(
        State memory currentState,
        int24 rightPt,
        uint160 sqrtRate_96,
        uint128 amountY
    ) internal pure returns (
        RangeRetState memory retState
    ) {
        retState.costY = 0;
        retState.acquireX = 0;
        retState.finished = false;
        // first, if current point is not all x, we can not move right directly
        bool startHasY = (currentState.liquidityX < currentState.liquidity);
        if (startHasY) {
            (retState.costY, retState.acquireX, retState.liquidityX) = y2XAtPriceLiquidity(
                amountY, 
                currentState.sqrtPrice_96,
                currentState.liquidityX
            );
            if (retState.liquidityX > 0 || retState.costY >= amountY) {
                // it means remaining y is not enough to rise current price to price*1.0001
                // but y may remain, so we cannot simply use (costY == amountY)
                retState.finished = true;
                retState.finalPt = currentState.currentPoint;
                retState.sqrtFinalPrice_96 = currentState.sqrtPrice_96;
                return retState;
            } else {
                // y not run out
                // not finsihed
                amountY -= retState.costY;
                currentState.currentPoint += 1;
                if (currentState.currentPoint == rightPt) {
                    retState.finalPt = currentState.currentPoint;
                    // get fixed sqrt price to reduce accumulated error
                    retState.sqrtFinalPrice_96 = LogPowMath.getSqrtPrice(rightPt);
                    return retState;
                }
                // sqrt(price) + sqrt(price) * (1.0001 - 1) == sqrt(price) * 1.0001
                currentState.sqrtPrice_96 = uint160(
                    uint256(currentState.sqrtPrice_96) +
                    uint256(currentState.sqrtPrice_96) * (uint256(sqrtRate_96) - TwoPower.Pow96) / TwoPower.Pow96
                );
            }
        }

        uint160 sqrtPriceR_96 = LogPowMath.getSqrtPrice(rightPt);

        // (uint128 liquidCostY, uint256 liquidAcquireX, bool liquidComplete, int24 locPt, uint160 sqrtLoc_96)
        RangeCompRet memory ret = y2XRangeComplete(
            Range({
                liquidity: currentState.liquidity,
                sqrtPriceL_96: currentState.sqrtPrice_96,
                leftPt: currentState.currentPoint,
                sqrtPriceR_96: sqrtPriceR_96,
                rightPt: rightPt,
                sqrtRate_96: sqrtRate_96
            }),
            amountY
        );

        retState.costY += ret.costY;
        amountY -= ret.costY;
        retState.acquireX += ret.acquireX;
        if (ret.completeLiquidity) {
            retState.finished = (amountY == 0);
            retState.finalPt = rightPt;
            retState.sqrtFinalPrice_96 = sqrtPriceR_96;
        } else {
            // trade at locPt
            uint128 locCostY;
            uint256 locAcquireX;

            (locCostY, locAcquireX, retState.liquidityX) = y2XAtPriceLiquidity(amountY, ret.sqrtLoc_96, currentState.liquidity);
            
            retState.costY += locCostY;
            retState.acquireX += locAcquireX;
            retState.finished = true;
            retState.sqrtFinalPrice_96 = ret.sqrtLoc_96;
            retState.finalPt = ret.locPt;
        }
    }

}


// File contracts/libraries/SwapMathX2Y.sol


pragma solidity ^0.8.4;






library SwapMathX2Y {

    // group returned values of x2YRange to avoid stake too deep
    struct RangeRetState {
        // whether user run out of amountX
        bool finished;
        // actual cost of tokenX to buy tokenY
        uint128 costX;
        // amount of acquired tokenY
        uint256 acquireY;
        // final point after this swap
        int24 finalPt;
        // sqrt price on final point
        uint160 sqrtFinalPrice_96;
        // liquidity of tokenX at finalPt
        uint128 liquidityX;
    }

    function x2YAtPrice(
        uint128 amountX,
        uint160 sqrtPrice_96,
        uint128 currY
    ) internal pure returns (uint128 costX, uint128 acquireY) {
        uint256 l = MulDivMath.mulDivFloor(amountX, sqrtPrice_96, TwoPower.Pow96);
        acquireY = Converter.toUint128(MulDivMath.mulDivFloor(l, sqrtPrice_96, TwoPower.Pow96));
        if (acquireY > currY) {
            acquireY = currY;
        }
        l = MulDivMath.mulDivCeil(acquireY, TwoPower.Pow96, sqrtPrice_96);
        uint256 cost = MulDivMath.mulDivCeil(l, TwoPower.Pow96, sqrtPrice_96);
        // costX <= amountX <= uint128.max
        costX = uint128(cost);
    }

    function mulDivCeil(uint256 a, uint256 b, uint256 c) internal pure returns (uint256) {
        uint256 v = a * b;
        if (v % c == 0) {
            return v / c;
        }
        return v / c + 1;
    }

    function x2YAtPriceLiquidity(
        uint128 amountX,
        uint160 sqrtPrice_96,
        uint128 liquidity,
        uint128 liquidityX
    ) internal pure returns (uint128 costX, uint256 acquireY, uint128 newLiquidityX) {
        uint256 liquidityY = uint256(liquidity - liquidityX);
        uint256 maxTransformLiquidityX = MulDivMath.mulDivFloor(amountX, sqrtPrice_96, TwoPower.Pow96);
        // transformLiquidityX <= liquidityY <= uint128.max
        uint128 transformLiquidityX = uint128(MaxMinMath.min256(maxTransformLiquidityX, liquidityY));

        // 1. transformLiquidityX * TwoPower.Pow96 < 2^128 * 2^96 < 2^224 < 2^256
        // 2. transformLiquidityX <= floor(amountX * sqrtPrice_96 / TwoPower.Pow96)
        // ceil(transformLiquidityX * sqrtPrice_96 / TwoPower.Pow96) <=
        // ceil(floor(amountX * sqrtPrice_96 / TwoPower.Pow96) * sqrtPrice_96 / TwoPower.Pow96) <=
        // ceil(amountX * sqrtPrice_96 / TwoPower.Pow96 * sqrtPrice_96 / TwoPower.Pow96) =
        // ceil(amountX) = amountX <= uint128.max
        costX = uint128(mulDivCeil(transformLiquidityX, TwoPower.Pow96, sqrtPrice_96));
        acquireY = MulDivMath.mulDivFloor(transformLiquidityX, sqrtPrice_96, TwoPower.Pow96);
        newLiquidityX = liquidityX + transformLiquidityX;
    }
    
    struct Range {
        uint128 liquidity;
        uint160 sqrtPriceL_96;
        int24 leftPt;
        uint160 sqrtPriceR_96;
        int24 rightPt;
        uint160 sqrtRate_96;
    }
    
    struct RangeCompRet {
        uint128 costX;
        uint256 acquireY;
        bool completeLiquidity;
        int24 locPt;
        uint160 sqrtLoc_96;
    }

    /// @dev Move from rightPt to leftPt, the range is [leftPt, rightPt).
    function x2YRangeComplete(
        Range memory rg,
        uint128 amountX
    ) internal pure returns (
        RangeCompRet memory ret
    ) {
        // rg.sqrtPriceR_96 * 2^96 < 2^160 * 2^96 = 2^256
        uint160 sqrtPricePrM1_96 = uint160(mulDivCeil(rg.sqrtPriceR_96, TwoPower.Pow96, rg.sqrtRate_96));
        uint160 sqrtPricePrMl_96 = LogPowMath.getSqrtPrice(rg.rightPt - rg.leftPt);
        // rg.rightPt - rg.leftPt <= 256 * 100
        // 1.0001 ** 25600 < 13
        // 13 * 2^96 - 2^96 < 2^100
        // rg.liquidity * (sqrtPricePrMl_96 - TwoPower.Pow96) < 2^228 < 2^256
        uint256 maxX = mulDivCeil(rg.liquidity, sqrtPricePrMl_96 - TwoPower.Pow96, rg.sqrtPriceR_96 - sqrtPricePrM1_96);
        if (maxX <= amountX) {
            // maxX <= amountX <= uint128.max
            ret.costX = uint128(maxX);
            ret.acquireY = AmountMath.getAmountY(rg.liquidity, rg.sqrtPriceL_96, rg.sqrtPriceR_96, rg.sqrtRate_96, false);
            ret.completeLiquidity = true;
        } else {
            // we should locate lowest price
            // 1. amountX * (rg.sqrtPriceR_96 - sqrtPricePrM1_96)
            // < maxX * (rg.sqrtPriceR_96 - sqrtPricePrM1_96)
            // < rg.liquidity * (sqrtPricePrMl_96 - TwoPower.Pow96) + (rg.sqrtPriceR_96 - sqrtPricePrM1_96)
            // < 2^228 + 2^160 < 2^256
            // 2. sqrtValue_96 = amountX * (rg.sqrtPriceR_96 - sqrtPricePrM1_96) // rg.liquidity + 2^96
            // <= amountX * (rg.sqrtPriceR_96 - sqrtPricePrM1_96) / rg.liquidity + 2^96
            // <= (maxX - 1) * (rg.sqrtPriceR_96 - sqrtPricePrM1_96) / rg.liquidity + 2^96
            // < rg.liquidity * (sqrtPricePrMl_96 - 2^96) / (rg.sqrtPriceR_96 - sqrtPricePrM1_96) * (rg.sqrtPriceR_96 - sqrtPricePrM1_96) / rg.liquidity + 2^96
            // = sqrtPricePrMl_96 < 2^160
            uint160 sqrtValue_96 = uint160(uint256(amountX) * (uint256(rg.sqrtPriceR_96) - sqrtPricePrM1_96) / uint256(rg.liquidity) + TwoPower.Pow96);

            int24 logValue = LogPowMath.getLogSqrtPriceFloor(sqrtValue_96);

            ret.locPt = rg.rightPt - logValue;

            ret.locPt = MaxMinMath.min(ret.locPt, rg.rightPt);
            ret.locPt = MaxMinMath.max(ret.locPt, rg.leftPt + 1);
            ret.completeLiquidity = false;
            
            if (ret.locPt == rg.rightPt) {
                ret.costX = 0;
                ret.acquireY = 0;
                ret.locPt = ret.locPt - 1;
                ret.sqrtLoc_96 = LogPowMath.getSqrtPrice(ret.locPt);
            } else {
                uint160 sqrtPricePrMloc_96 = LogPowMath.getSqrtPrice(rg.rightPt - ret.locPt);
                // rg.rightPt - ret.locPt <= 256 * 100
                // 1.0001 ** 25600 < 13
                // 13 * 2^96 - 2^96 < 2^100
                // rg.liquidity * (sqrtPricePrMloc_96 - TwoPower.Pow96) < 2^228 < 2^256
                uint256 costX256 = mulDivCeil(rg.liquidity, sqrtPricePrMloc_96 - TwoPower.Pow96, rg.sqrtPriceR_96 - sqrtPricePrM1_96);
                // ret.costX <= amountX <= uint128.max
                ret.costX = uint128(MaxMinMath.min256(costX256, amountX));
                
                ret.locPt = ret.locPt - 1;
                ret.sqrtLoc_96 = LogPowMath.getSqrtPrice(ret.locPt);

                uint160 sqrtLocA1_96 = uint160(
                    uint256(ret.sqrtLoc_96) +
                    uint256(ret.sqrtLoc_96) * (uint256(rg.sqrtRate_96) - TwoPower.Pow96) / TwoPower.Pow96
                );
                ret.acquireY = AmountMath.getAmountY(rg.liquidity, sqrtLocA1_96, rg.sqrtPriceR_96, rg.sqrtRate_96, false);
            }
        }
    }
    
    /// @notice Compute amount of tokens exchanged during swapX2Y and some amount values (currX, currY, allX) on final point
    ///    after this swap.
    /// @param currentState state values containing (currX, currY, allX) of start point
    /// @param leftPt left most point during this swap
    /// @param sqrtRate_96 sqrt(1.0001)
    /// @param amountX max amount of tokenX user willing to pay
    /// @return retState amount of token acquired and some values on final point
    function x2YRange(
        State memory currentState,
        int24 leftPt,
        uint160 sqrtRate_96,
        uint128 amountX
    ) internal pure returns (
        RangeRetState memory retState
    ) {
        retState.costX = 0;
        retState.acquireY = 0;
        retState.finished = false;

        bool currentHasY = (currentState.liquidityX < currentState.liquidity);
        if (currentHasY && (currentState.liquidityX > 0 || leftPt == currentState.currentPoint)) {
            (retState.costX, retState.acquireY, retState.liquidityX) = x2YAtPriceLiquidity(
                amountX, currentState.sqrtPrice_96, currentState.liquidity, currentState.liquidityX
            );
            if (retState.liquidityX < currentState.liquidity ||  retState.costX >= amountX) {
                // remaining x is not enough to down current price to price / 1.0001
                // but x may remain, so we cannot simply use (costX == amountX)
                retState.finished = true;
                retState.finalPt = currentState.currentPoint;
                retState.sqrtFinalPrice_96 = currentState.sqrtPrice_96;
            } else {
                amountX -= retState.costX;
            }
        } else if (currentHasY) { // all y
            currentState.currentPoint = currentState.currentPoint + 1;
            // sqrt(price) + sqrt(price) * (1.0001 - 1) == sqrt(price) * 1.0001
            currentState.sqrtPrice_96 = uint160(
                uint256(currentState.sqrtPrice_96) +
                uint256(currentState.sqrtPrice_96) * (uint256(sqrtRate_96) - TwoPower.Pow96) / TwoPower.Pow96
            );
        } else {
            retState.liquidityX = currentState.liquidityX;
        }

        if (retState.finished) {
            return retState;
        }

        if (leftPt < currentState.currentPoint) {
            uint160 sqrtPriceL_96 = LogPowMath.getSqrtPrice(leftPt);
            RangeCompRet memory ret = x2YRangeComplete(
                Range({
                    liquidity: currentState.liquidity,
                    sqrtPriceL_96: sqrtPriceL_96,
                    leftPt: leftPt, 
                    sqrtPriceR_96: currentState.sqrtPrice_96, 
                    rightPt: currentState.currentPoint, 
                    sqrtRate_96: sqrtRate_96
                }),
                amountX
            );
            retState.costX += ret.costX;
            amountX -= ret.costX;
            retState.acquireY += ret.acquireY;
            if (ret.completeLiquidity) {
                retState.finished = (amountX == 0);
                retState.finalPt = leftPt;
                retState.sqrtFinalPrice_96 = sqrtPriceL_96;
                retState.liquidityX = currentState.liquidity;
            } else {
                uint128 locCostX;
                uint256 locAcquireY;
                (locCostX, locAcquireY, retState.liquidityX) = x2YAtPriceLiquidity(amountX, ret.sqrtLoc_96, currentState.liquidity, 0);
                retState.costX += locCostX;
                retState.acquireY += locAcquireY;
                retState.finished = true;
                retState.sqrtFinalPrice_96 = ret.sqrtLoc_96;
                retState.finalPt = ret.locPt;
            }
        } else {
            // finishd must be false
            // retState.finished == false;
            // liquidityX has been set
            retState.finalPt = currentState.currentPoint;
            retState.sqrtFinalPrice_96 = currentState.sqrtPrice_96;
        }
    }
    
}


// File contracts/iZiSwapPool.sol


pragma solidity ^0.8.4;



















contract iZiSwapPool is IiZiSwapPool {

    using Liquidity for mapping(bytes32 =>Liquidity.Data);
    using Liquidity for Liquidity.Data;
    using Point for mapping(int24 =>Point.Data);
    using Point for Point.Data;
    using PointBitmap for mapping(int16 =>uint256);
    using LimitOrder for LimitOrder.Data;
    using UserEarn for UserEarn.Data;
    using UserEarn for mapping(bytes32 =>UserEarn.Data);
    using Oracle for Oracle.Observation[65535];
    using OrderOrEndpoint for mapping(int24 =>int24);

    int24 internal constant LEFT_MOST_PT = -800000;
    int24 internal constant RIGHT_MOST_PT = 800000;

    /// @notice left most point regularized by pointDelta
    int24 public leftMostPt;
    /// @notice right most point regularized by pointDelta
    int24 public rightMostPt;
    /// @notice maximum liquidSum for each point, see points() in IiZiSwapPool or library Point
    uint128 public maxLiquidPt;

    /// @notice address of iZiSwapFactory
    address public factory;

    /// @notice address of tokenX
    address public tokenX;
    /// @notice address of tokenY
    address public tokenY;
    /// @notice fee amount of this swap pool, 3000 means 0.3%
    uint24 public fee;

    /// @notice minimum number of distance between initialized or limitorder points 
    int24 public pointDelta;

    /// @notice the fee growth as a 128-bit fixpoing fees of tokenX collected per 1 liquidity of the pool
    uint256 public feeScaleX_128;
    /// @notice the fee growth as a 128-bit fixpoint fees of tokenY collected per 1 liquidity of the pool
    uint256 public feeScaleY_128;

    /// @notice sqrt(1.0001), 96 bit fixpoint number
    uint160 public override sqrtRate_96;

    /// @notice state of pool, see library State or IiZiSwapPool#state for more infomation
    State public override state;

    /// @notice the information about a liquidity by the liquidity's key
    mapping(bytes32 =>Liquidity.Data) public override liquidity;

    /// @notice 256 packed point (orderOrEndpoint>0) boolean values. See PointBitmap for more information
    mapping(int16 =>uint256) public override pointBitmap;

    /// @notice returns infomation of a point in the pool, see Point library of IiZiSwapPool#poitns for more information
    mapping(int24 =>Point.Data) public override points;
    /// @notice infomation about a point whether has limit order and whether as an liquidity's endpoint
    mapping(int24 =>int24) public override orderOrEndpoint;
    /// @notice limitOrder info on a given point
    mapping(int24 =>LimitOrder.Data) public override limitOrderData;
    /// @notice information about a user's limit order (sell tokenY and earn tokenX)
    mapping(bytes32 => UserEarn.Data) public override userEarnX;
    /// @notice information about a user's limit order (sell tokenX and earn tokenY)
    mapping(bytes32 => UserEarn.Data) public override userEarnY;

    /// @notice observation data array
    Oracle.Observation[65535] public override observations;

    uint256 public override totalFeeXCharged;
    uint256 public override totalFeeYCharged;

    address private original;

    address private swapModuleX2Y;
    address private swapModuleY2X;
    address private liquidityModule;
    address private limitOrderModule;
    address private flashModule;

    /// @notice percent to charge from miner's fee
    uint24 public override feeChargePercent;

    modifier lock() {
        require(!state.locked, 'LKD');
        state.locked = true;
        _;
        state.locked = false;
    }

    modifier noDelegateCall() {
        require(address(this) == original);
        _;
    }

    function _setRange(int24 pd) private {
        rightMostPt = RIGHT_MOST_PT / pd * pd;
        leftMostPt = - rightMostPt;
        uint24 pointNum = uint24((rightMostPt - leftMostPt) / pd) + 1;
        maxLiquidPt = type(uint128).max / pointNum;
    }

    /// @notice Construct a pool
    constructor() {
        (address _tokenX, address _tokenY, uint24 _fee, int24 currentPoint, int24 _pointDelta, uint24 _feeChargePercent) = IiZiSwapFactory(msg.sender).deployPoolParams();
        require(_tokenX < _tokenY, 'x<y');
        require(_pointDelta > 0, 'pd0');
        original = address(this);
        factory = msg.sender;
        swapModuleX2Y = IiZiSwapFactory(msg.sender).swapX2YModule();
        swapModuleY2X = IiZiSwapFactory(msg.sender).swapY2XModule();
        liquidityModule = IiZiSwapFactory(msg.sender).liquidityModule();
        limitOrderModule = IiZiSwapFactory(msg.sender).limitOrderModule();
        flashModule = IiZiSwapFactory(msg.sender).flashModule();

        tokenX = _tokenX;
        tokenY = _tokenY;
        fee = _fee;
        pointDelta = _pointDelta;
        _setRange(_pointDelta);

        require(currentPoint >= leftMostPt, "LO");
        require(currentPoint <= rightMostPt, "HO");

        // current state
        state.currentPoint = currentPoint;
        state.sqrtPrice_96 = LogPowMath.getSqrtPrice(currentPoint);
        state.liquidity = 0;
        state.liquidityX = 0;

        sqrtRate_96 = LogPowMath.getSqrtPrice(1);

        (state.observationQueueLen, state.observationNextQueueLen) = observations.init(uint32(block.timestamp));
        state.observationCurrentIndex = 0;
        feeChargePercent = _feeChargePercent;
    }

    function balanceX() private view returns (uint256) {
        (bool success, bytes memory data) =
            tokenX.staticcall(abi.encodeWithSelector(IERC20Minimal.balanceOf.selector, address(this)));
        require(success && data.length >= 32);
        return abi.decode(data, (uint256));
    }

    function balanceY() private view returns (uint256) {
        (bool success, bytes memory data) =
            tokenY.staticcall(abi.encodeWithSelector(IERC20Minimal.balanceOf.selector, address(this)));
        require(success && data.length >= 32);
        return abi.decode(data, (uint256));
    }

    function revertDCData(bytes memory data) private pure {
        if (data.length != 64) {
            if (data.length < 68) revert('dc');
            assembly {
                data := add(data, 0x04)
            }
            revert(abi.decode(data, (string)));
        }
        assembly {
            data:= add(data, 0x20)
            let w := mload(data)
            let t := mload(0x40)
            mstore(t, w)
            let w2 := mload(add(data, 0x20))
            mstore(add(t, 0x20), w2)
            revert(t, 64)
        }
    }

    /// @inheritdoc IiZiSwapPool
    function assignLimOrderEarnY(
        int24 point,
        uint128 assignY,
        bool fromLegacy
    ) external override noDelegateCall lock returns (uint128 actualAssignY) {
        
        (bool success, bytes memory d) = limitOrderModule.delegatecall(
            abi.encodeWithSignature("assignLimOrderEarnY(int24,uint128,bool)", point, assignY, fromLegacy)
        );
        if (success) {
            actualAssignY = abi.decode(d, (uint128));
        } else {
            revertDCData(d);
        }
    }

    /// @inheritdoc IiZiSwapPool
    function assignLimOrderEarnX(
        int24 point,
        uint128 assignX,
        bool fromLegacy
    ) external override noDelegateCall lock returns (uint128 actualAssignX) {
        
        (bool success, bytes memory d) = limitOrderModule.delegatecall(
            abi.encodeWithSignature("assignLimOrderEarnX(int24,uint128,bool)", point, assignX, fromLegacy)
        );
        if (success) {
            actualAssignX = abi.decode(d, (uint128));
        } else {
            revertDCData(d);
        }
    }

    /// @inheritdoc IiZiSwapPool
    function decLimOrderWithX(
        int24 point,
        uint128 deltaX
    ) external override noDelegateCall lock returns (uint128 actualDeltaX, uint256 legacyAccEarn) {
        
        (bool success, bytes memory d) = limitOrderModule.delegatecall(
            abi.encodeWithSignature("decLimOrderWithX(int24,uint128)", point, deltaX)
        );
        if (success) {
            uint128 claimSold;
            uint128 claimEarn;
            (actualDeltaX, legacyAccEarn, claimSold, claimEarn) = abi.decode(d, (uint128, uint256, uint128, uint128));
            emit DecLimitOrder(msg.sender, actualDeltaX, point, claimSold, claimEarn, true);
        } else {
            revertDCData(d);
        }

    }

    /// @inheritdoc IiZiSwapPool
    function decLimOrderWithY(
        int24 point,
        uint128 deltaY
    ) external override noDelegateCall lock returns (uint128 actualDeltaY, uint256 legacyAccEarn) {
        
        (bool success, bytes memory d) = limitOrderModule.delegatecall(
            abi.encodeWithSignature("decLimOrderWithY(int24,uint128)", point, deltaY)
        );
        if (success) {
            uint128 claimSold;
            uint128 claimEarn;
            (actualDeltaY, legacyAccEarn, claimSold, claimEarn) = abi.decode(d, (uint128, uint256, uint128, uint128));
            emit DecLimitOrder(msg.sender, actualDeltaY, point, claimSold, claimEarn, false);
        } else {
            revertDCData(d);
        }
        
    }

    /// @inheritdoc IiZiSwapPool
    function addLimOrderWithX(
        address recipient,
        int24 point,
        uint128 amountX,
        bytes calldata data
    ) external override noDelegateCall lock returns (uint128 orderX, uint128 acquireY) {
        
        (bool success, bytes memory d) = limitOrderModule.delegatecall(
            abi.encodeWithSignature("addLimOrderWithX(address,int24,uint128,bytes)", recipient, point, amountX, data)
        );
        if (success) {
            uint128 claimSold;
            uint128 claimEarn;
            (orderX, acquireY, claimSold, claimEarn) = abi.decode(d, (uint128, uint128, uint128, uint128));
            emit AddLimitOrder(recipient, orderX, acquireY, point, claimSold, claimEarn, true);
        } else {
            revertDCData(d);
        }
        
    }
    
    /// @inheritdoc IiZiSwapPool
    function addLimOrderWithY(
        address recipient,
        int24 point,
        uint128 amountY,
        bytes calldata data
    ) external override noDelegateCall lock returns (uint128 orderY, uint128 acquireX) {
        
        (bool success, bytes memory d) = limitOrderModule.delegatecall(
            abi.encodeWithSignature("addLimOrderWithY(address,int24,uint128,bytes)", recipient, point, amountY, data)
        );
        if (success) {
            uint128 claimSold;
            uint128 claimEarn;
            (orderY, acquireX, claimSold, claimEarn) = abi.decode(d, (uint128, uint128, uint128, uint128));
            emit AddLimitOrder(recipient, orderY, acquireX, point, claimSold, claimEarn, false);
        } else {
            revertDCData(d);
        }
        
    }

    /// @inheritdoc IiZiSwapPool
    function collectLimOrder(
        address recipient, int24 point, uint128 collectDec, uint128 collectEarn, bool isEarnY
    ) external override noDelegateCall lock returns(uint128 actualCollectDec, uint128 actualCollectEarn) {
        (bool success, bytes memory d) = limitOrderModule.delegatecall(
            abi.encodeWithSignature("collectLimOrder(address,int24,uint128,uint128,bool)", recipient, point, collectDec, collectEarn, isEarnY)
        );
        if (success) {
            (actualCollectDec, actualCollectEarn) = abi.decode(d, (uint128, uint128));
            emit CollectLimitOrder(msg.sender, recipient, point, actualCollectDec, actualCollectEarn, isEarnY);
        } else {
            revertDCData(d);
        }
    }
    
    /// @inheritdoc IiZiSwapPool
    function mint(
        address recipient,
        int24 leftPt,
        int24 rightPt,
        uint128 liquidDelta,
        bytes calldata data
    ) external override noDelegateCall lock returns (uint256 amountX, uint256 amountY) {
        (bool success, bytes memory d) = liquidityModule.delegatecall(
            abi.encodeWithSignature("mint(address,int24,int24,uint128,bytes)", recipient, leftPt, rightPt,liquidDelta,data)
        );
        if (success) {
            (amountX, amountY) = abi.decode(d, (uint256, uint256));
            emit Mint(msg.sender, recipient, leftPt, rightPt, liquidDelta, amountX, amountY);
        } else {
            revertDCData(d);
        }
    }

    /// @inheritdoc IiZiSwapPool
    function burn(
        int24 leftPt,
        int24 rightPt,
        uint128 liquidDelta
    ) external override noDelegateCall lock returns (uint256 amountX, uint256 amountY) {
        (bool success, bytes memory d) = liquidityModule.delegatecall(
            abi.encodeWithSignature("burn(int24,int24,uint128)", leftPt, rightPt, liquidDelta)
        );
        if (success) {
            (amountX, amountY) = abi.decode(d, (uint256, uint256));
            emit Burn(msg.sender, leftPt, rightPt, liquidDelta, amountX, amountY);
        } else {
            revertDCData(d);
        }
    }

    /// @inheritdoc IiZiSwapPool
    function collect(
        address recipient,
        int24 leftPt,
        int24 rightPt,
        uint256 amountXLim,
        uint256 amountYLim
    ) external override noDelegateCall lock returns (uint256 actualAmountX, uint256 actualAmountY) {
        (bool success, bytes memory d) = liquidityModule.delegatecall(
            abi.encodeWithSignature("collect(address,int24,int24,uint256,uint256)", recipient, leftPt, rightPt, amountXLim, amountYLim)
        );
        if (success) {
            (actualAmountX, actualAmountY) = abi.decode(d, (uint256, uint256));
            emit CollectLiquidity(msg.sender, recipient, leftPt, rightPt, actualAmountX, actualAmountY);
        } else {
            revertDCData(d);
        }
    }

    /// @inheritdoc IiZiSwapPool
    function swapY2X(
        address recipient,
        uint128 amount,
        int24 highPt,
        bytes calldata data
    ) external override noDelegateCall lock returns (uint256 amountX, uint256 amountY) {
        (bool success, bytes memory d) = swapModuleY2X.delegatecall(
            abi.encodeWithSignature("swapY2X(address,uint128,int24,bytes)", 
            recipient, amount, highPt, data)
        );
        if (success) {
            (amountX, amountY) = abi.decode(d, (uint256, uint256));
            emit Swap(tokenX, tokenY, fee, false, amountX, amountY, state.currentPoint);
        } else {
            revertDCData(d);
        }
    }

    /// @inheritdoc IiZiSwapPool
    function swapY2XDesireX(
        address recipient,
        uint128 desireX,
        int24 highPt,
        bytes calldata data
    ) external override noDelegateCall lock returns (uint256 amountX, uint256 amountY) {
        (bool success, bytes memory d) = swapModuleY2X.delegatecall(
            abi.encodeWithSignature("swapY2XDesireX(address,uint128,int24,bytes)", 
            recipient, desireX, highPt, data)
        );
        if (success) {
            (amountX, amountY) = abi.decode(d, (uint256, uint256));
            emit Swap(tokenX, tokenY, fee, false, amountX, amountY, state.currentPoint);
        } else {
            revertDCData(d);
        }
    }

    /// @inheritdoc IiZiSwapPool
    function swapX2Y(
        address recipient,
        uint128 amount,
        int24 lowPt,
        bytes calldata data
    ) external override noDelegateCall lock returns (uint256 amountX, uint256 amountY) {
        (bool success, bytes memory d) = swapModuleX2Y.delegatecall(
            abi.encodeWithSignature("swapX2Y(address,uint128,int24,bytes)", 
            recipient, amount, lowPt, data)
        );
        if (success) {
            (amountX, amountY) = abi.decode(d, (uint256, uint256));
            emit Swap(tokenX, tokenY, fee, true, amountX, amountY, state.currentPoint);
        } else {
            revertDCData(d);
        }
    }

    /// @inheritdoc IiZiSwapPool
    function swapX2YDesireY(
        address recipient,
        uint128 desireY,
        int24 lowPt,
        bytes calldata data
    ) external override noDelegateCall lock returns (uint256 amountX, uint256 amountY) {
        (bool success, bytes memory d) = swapModuleX2Y.delegatecall(
            abi.encodeWithSignature("swapX2YDesireY(address,uint128,int24,bytes)", recipient, desireY, lowPt,data)
        );
        if (success) {
            (amountX, amountY) = abi.decode(d, (uint256, uint256));
            emit Swap(tokenX, tokenY, fee, true, amountX, amountY, state.currentPoint);
        } else {
            revertDCData(d);
        }
    }

    /// @inheritdoc IiZiSwapPool
    function observe(uint32[] calldata secondsAgos)
        external
        view
        override
        noDelegateCall
        returns (int56[] memory accPoints)
    {
        return
            observations.observe(
                uint32(block.timestamp),
                secondsAgos,
                state.currentPoint,
                state.observationCurrentIndex,
                state.observationQueueLen
            );
    }

    /// @inheritdoc IiZiSwapPool
    function expandObservationQueue(uint16 newNextQueueLen) external override noDelegateCall lock {
        uint16 oldNextQueueLen = state.observationNextQueueLen;
        if (newNextQueueLen > oldNextQueueLen) {
            observations.expand(oldNextQueueLen, newNextQueueLen);
            state.observationNextQueueLen = newNextQueueLen;
        }
    }

    /// @inheritdoc IiZiSwapPool
    function liquiditySnapshot(int24 leftPoint, int24 rightPoint) external override view returns(int128[] memory deltaLiquidities) {
        require(leftPoint < rightPoint, "L<R");
        require(leftPoint >= leftMostPt, "LO");
        require(rightPoint <= rightMostPt, "RO");
        require(leftPoint % pointDelta == 0, "LD0");
        require(rightPoint % pointDelta == 0, "RD0");
        uint256 len = uint256(int256((rightPoint - leftPoint) / pointDelta));
        deltaLiquidities = new int128[](len);
        uint256 idx = 0;
        for (int24 i = leftPoint; i < rightPoint; i += pointDelta) {
            deltaLiquidities[idx] = points[i].liquidDelta;
            idx ++;
        }
    }

    /// @inheritdoc IiZiSwapPool
    function limitOrderSnapshot(int24 leftPoint, int24 rightPoint) external override view returns(LimitOrderStruct[] memory limitOrders) {
        require(leftPoint < rightPoint, "L<R");
        require(leftPoint >= leftMostPt, "LO");
        require(rightPoint <= rightMostPt, "RO");
        require(leftPoint % pointDelta == 0, "LD0");
        require(rightPoint % pointDelta == 0, "RD0");
        uint256 len = uint256(int256((rightPoint - leftPoint) / pointDelta));
        limitOrders = new LimitOrderStruct[](len);
        uint256 idx = 0;
        for (int24 i = leftPoint; i < rightPoint; i += pointDelta) {
            limitOrders[idx] = LimitOrderStruct({
                sellingX: limitOrderData[i].sellingX,
                earnY: limitOrderData[i].earnY,
                accEarnY: limitOrderData[i].accEarnY,
                sellingY: limitOrderData[i].sellingY,
                earnX: limitOrderData[i].earnX,
                accEarnX: limitOrderData[i].accEarnX
            });
            idx ++;
        }
    }

    /// @inheritdoc IiZiSwapPool
    function collectFeeCharged() external override noDelegateCall lock {
        require(msg.sender == IiZiSwapFactory(factory).chargeReceiver(), "NR");
        TokenTransfer.transferToken(tokenX, msg.sender, totalFeeXCharged);
        TokenTransfer.transferToken(tokenY, msg.sender, totalFeeYCharged);
        totalFeeXCharged = 0;
        totalFeeYCharged = 0;
    }

    /// @inheritdoc IiZiSwapPool
    function modifyFeeChargePercent(uint24 newFeeChargePercent) external override noDelegateCall lock {
        require(msg.sender == IOwnable(factory).owner(), "NON");
        require(newFeeChargePercent >= 0, "FP0");
        require(newFeeChargePercent <= 100, "FP0");
        feeChargePercent = newFeeChargePercent;
    }

    /// @inheritdoc IiZiSwapPool
    function flash(
        address recipient,
        uint256 amountX,
        uint256 amountY,
        bytes calldata data
    ) external override noDelegateCall lock {
        (bool success, bytes memory d) = flashModule.delegatecall(
            abi.encodeWithSignature("flash(address,uint256,uint256,bytes)", 
            recipient, amountX, amountY, data)
        );
        if (success) {
            (uint256 actualAmountX, uint256 actualAmountY, uint256 paidX, uint256 paidY) = abi.decode(d, (uint256, uint256, uint256, uint256));
            emit Flash(msg.sender, recipient, actualAmountX, actualAmountY, paidX, paidY);
        } else {
            revertDCData(d);
        }
    }
    
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint128","name":"addAmount","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"acquireAmount","type":"uint128"},{"indexed":true,"internalType":"int24","name":"point","type":"int24"},{"indexed":false,"internalType":"uint128","name":"claimSold","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"claimEarn","type":"uint128"},{"indexed":false,"internalType":"bool","name":"sellXEarnY","type":"bool"}],"name":"AddLimitOrder","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"leftPoint","type":"int24"},{"indexed":true,"internalType":"int24","name":"rightPoint","type":"int24"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amountX","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountY","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"int24","name":"point","type":"int24"},{"indexed":false,"internalType":"uint128","name":"collectDec","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"collectEarn","type":"uint128"},{"indexed":false,"internalType":"bool","name":"sellXEarnY","type":"bool"}],"name":"CollectLimitOrder","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":true,"internalType":"int24","name":"leftPoint","type":"int24"},{"indexed":true,"internalType":"int24","name":"rightPoint","type":"int24"},{"indexed":false,"internalType":"uint256","name":"amountX","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountY","type":"uint256"}],"name":"CollectLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint128","name":"decreaseAmount","type":"uint128"},{"indexed":true,"internalType":"int24","name":"point","type":"int24"},{"indexed":false,"internalType":"uint128","name":"claimSold","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"claimEarn","type":"uint128"},{"indexed":false,"internalType":"bool","name":"sellXEarnY","type":"bool"}],"name":"DecLimitOrder","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountX","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountY","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paidX","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"paidY","type":"uint256"}],"name":"Flash","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"int24","name":"leftPoint","type":"int24"},{"indexed":true,"internalType":"int24","name":"rightPoint","type":"int24"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amountX","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountY","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenX","type":"address"},{"indexed":true,"internalType":"address","name":"tokenY","type":"address"},{"indexed":true,"internalType":"uint24","name":"fee","type":"uint24"},{"indexed":false,"internalType":"bool","name":"sellXEarnY","type":"bool"},{"indexed":false,"internalType":"uint256","name":"amountX","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountY","type":"uint256"},{"indexed":false,"internalType":"int24","name":"currentPoint","type":"int24"}],"name":"Swap","type":"event"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"point","type":"int24"},{"internalType":"uint128","name":"amountX","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"addLimOrderWithX","outputs":[{"internalType":"uint128","name":"orderX","type":"uint128"},{"internalType":"uint128","name":"acquireY","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"point","type":"int24"},{"internalType":"uint128","name":"amountY","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"addLimOrderWithY","outputs":[{"internalType":"uint128","name":"orderY","type":"uint128"},{"internalType":"uint128","name":"acquireX","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"point","type":"int24"},{"internalType":"uint128","name":"assignX","type":"uint128"},{"internalType":"bool","name":"fromLegacy","type":"bool"}],"name":"assignLimOrderEarnX","outputs":[{"internalType":"uint128","name":"actualAssignX","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"point","type":"int24"},{"internalType":"uint128","name":"assignY","type":"uint128"},{"internalType":"bool","name":"fromLegacy","type":"bool"}],"name":"assignLimOrderEarnY","outputs":[{"internalType":"uint128","name":"actualAssignY","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"leftPt","type":"int24"},{"internalType":"int24","name":"rightPt","type":"int24"},{"internalType":"uint128","name":"liquidDelta","type":"uint128"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amountX","type":"uint256"},{"internalType":"uint256","name":"amountY","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"leftPt","type":"int24"},{"internalType":"int24","name":"rightPt","type":"int24"},{"internalType":"uint256","name":"amountXLim","type":"uint256"},{"internalType":"uint256","name":"amountYLim","type":"uint256"}],"name":"collect","outputs":[{"internalType":"uint256","name":"actualAmountX","type":"uint256"},{"internalType":"uint256","name":"actualAmountY","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectFeeCharged","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"point","type":"int24"},{"internalType":"uint128","name":"collectDec","type":"uint128"},{"internalType":"uint128","name":"collectEarn","type":"uint128"},{"internalType":"bool","name":"isEarnY","type":"bool"}],"name":"collectLimOrder","outputs":[{"internalType":"uint128","name":"actualCollectDec","type":"uint128"},{"internalType":"uint128","name":"actualCollectEarn","type":"uint128"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"point","type":"int24"},{"internalType":"uint128","name":"deltaX","type":"uint128"}],"name":"decLimOrderWithX","outputs":[{"internalType":"uint128","name":"actualDeltaX","type":"uint128"},{"internalType":"uint256","name":"legacyAccEarn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"point","type":"int24"},{"internalType":"uint128","name":"deltaY","type":"uint128"}],"name":"decLimOrderWithY","outputs":[{"internalType":"uint128","name":"actualDeltaY","type":"uint128"},{"internalType":"uint256","name":"legacyAccEarn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newNextQueueLen","type":"uint16"}],"name":"expandObservationQueue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeChargePercent","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeScaleX_128","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeScaleY_128","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountX","type":"uint256"},{"internalType":"uint256","name":"amountY","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"leftMostPt","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"","type":"int24"}],"name":"limitOrderData","outputs":[{"internalType":"uint128","name":"sellingX","type":"uint128"},{"internalType":"uint128","name":"earnY","type":"uint128"},{"internalType":"uint256","name":"accEarnY","type":"uint256"},{"internalType":"uint256","name":"legacyAccEarnY","type":"uint256"},{"internalType":"uint128","name":"legacyEarnY","type":"uint128"},{"internalType":"uint128","name":"sellingY","type":"uint128"},{"internalType":"uint128","name":"earnX","type":"uint128"},{"internalType":"uint128","name":"legacyEarnX","type":"uint128"},{"internalType":"uint256","name":"accEarnX","type":"uint256"},{"internalType":"uint256","name":"legacyAccEarnX","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"leftPoint","type":"int24"},{"internalType":"int24","name":"rightPoint","type":"int24"}],"name":"limitOrderSnapshot","outputs":[{"components":[{"internalType":"uint128","name":"sellingX","type":"uint128"},{"internalType":"uint128","name":"earnY","type":"uint128"},{"internalType":"uint256","name":"accEarnY","type":"uint256"},{"internalType":"uint128","name":"sellingY","type":"uint128"},{"internalType":"uint128","name":"earnX","type":"uint128"},{"internalType":"uint256","name":"accEarnX","type":"uint256"}],"internalType":"struct IiZiSwapPool.LimitOrderStruct[]","name":"limitOrders","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"liquidity","outputs":[{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"lastFeeScaleX_128","type":"uint256"},{"internalType":"uint256","name":"lastFeeScaleY_128","type":"uint256"},{"internalType":"uint256","name":"tokenOwedX","type":"uint256"},{"internalType":"uint256","name":"tokenOwedY","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"leftPoint","type":"int24"},{"internalType":"int24","name":"rightPoint","type":"int24"}],"name":"liquiditySnapshot","outputs":[{"internalType":"int128[]","name":"deltaLiquidities","type":"int128[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLiquidPt","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"int24","name":"leftPt","type":"int24"},{"internalType":"int24","name":"rightPt","type":"int24"},{"internalType":"uint128","name":"liquidDelta","type":"uint128"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[{"internalType":"uint256","name":"amountX","type":"uint256"},{"internalType":"uint256","name":"amountY","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"newFeeChargePercent","type":"uint24"}],"name":"modifyFeeChargePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"observations","outputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"},{"internalType":"int56","name":"accPoint","type":"int56"},{"internalType":"bool","name":"init","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"secondsAgos","type":"uint32[]"}],"name":"observe","outputs":[{"internalType":"int56[]","name":"accPoints","type":"int56[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"","type":"int24"}],"name":"orderOrEndpoint","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int16","name":"","type":"int16"}],"name":"pointBitmap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pointDelta","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"","type":"int24"}],"name":"points","outputs":[{"internalType":"uint128","name":"liquidSum","type":"uint128"},{"internalType":"int128","name":"liquidDelta","type":"int128"},{"internalType":"uint256","name":"accFeeXOut_128","type":"uint256"},{"internalType":"uint256","name":"accFeeYOut_128","type":"uint256"},{"internalType":"bool","name":"isEndpt","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rightMostPt","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sqrtRate_96","outputs":[{"internalType":"uint160","name":"","type":"uint160"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"uint160","name":"sqrtPrice_96","type":"uint160"},{"internalType":"int24","name":"currentPoint","type":"int24"},{"internalType":"uint16","name":"observationCurrentIndex","type":"uint16"},{"internalType":"uint16","name":"observationQueueLen","type":"uint16"},{"internalType":"uint16","name":"observationNextQueueLen","type":"uint16"},{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint128","name":"liquidityX","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"int24","name":"lowPt","type":"int24"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapX2Y","outputs":[{"internalType":"uint256","name":"amountX","type":"uint256"},{"internalType":"uint256","name":"amountY","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"desireY","type":"uint128"},{"internalType":"int24","name":"lowPt","type":"int24"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapX2YDesireY","outputs":[{"internalType":"uint256","name":"amountX","type":"uint256"},{"internalType":"uint256","name":"amountY","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"int24","name":"highPt","type":"int24"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapY2X","outputs":[{"internalType":"uint256","name":"amountX","type":"uint256"},{"internalType":"uint256","name":"amountY","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"desireX","type":"uint128"},{"internalType":"int24","name":"highPt","type":"int24"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapY2XDesireX","outputs":[{"internalType":"uint256","name":"amountX","type":"uint256"},{"internalType":"uint256","name":"amountY","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenX","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeXCharged","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeYCharged","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"userEarnX","outputs":[{"internalType":"uint256","name":"lastAccEarn","type":"uint256"},{"internalType":"uint128","name":"sellingRemain","type":"uint128"},{"internalType":"uint128","name":"sellingDec","type":"uint128"},{"internalType":"uint128","name":"earn","type":"uint128"},{"internalType":"uint128","name":"legacyEarn","type":"uint128"},{"internalType":"uint128","name":"earnAssign","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"userEarnY","outputs":[{"internalType":"uint256","name":"lastAccEarn","type":"uint256"},{"internalType":"uint128","name":"sellingRemain","type":"uint128"},{"internalType":"uint128","name":"sellingDec","type":"uint128"},{"internalType":"uint128","name":"earn","type":"uint128"},{"internalType":"uint128","name":"legacyEarn","type":"uint128"},{"internalType":"uint128","name":"earnAssign","type":"uint128"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102045760003560e01c806309beabc1146102095780630e1552f0146102395780631621835f1461026c57806316dc165b146102fe57806317fdacb9146103115780631aae2e5514610326578063252c09d71461033d5780632c4812521461037757806333005cd51461039f5780633c8a7d8d146103aa578063490e6cbc146103bd5780634cd70e91146103d0578063537c2d8e14610402578063544e705714610422578063588e59ae1461044d57806358c51ce61461045657806359dd14361461046a57806362c944ca1461047d57806362ccaafd146104905780636ad1718f146104e45780636d01843b146104f75780636f73f0061461051157806375c0e0d51461053157806381794fba146105b4578063857f812f146105e0578063872d1f15146105f35780638790aca314610606578063883bdbfd146106d457806398a0f72e146106f4578063a34123a714610714578063b0f5925714610727578063b14184e6146107a0578063b74d60a9146107c0578063b7d19fc4146107c8578063c19d93fb146107db578063c45a01551461089f578063d38a85ad146108b2578063d3b16864146108c5578063ddca3f43146108d9578063e556289f146108ef578063edcba3b2146108fa578063f0163ef41461091d578063f094685a14610930578063ff12504e14610943575b600080fd5b60065461021c906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61024c61024736600461366c565b610956565b604080516001600160801b03938416815292909116602083015201610230565b6102c061027a366004613866565b600f60205260009081526040902080546001820154600283015460039093015491926001600160801b0380831693600160801b9384900482169383831693048216911686565b604080519687526001600160801b039586166020880152938516938601939093529083166060850152821660808401521660a082015260c001610230565b60025461021c906001600160a01b031681565b61032461031f366004613b2c565b610af4565b005b61032f60045481565b604051908152602001610230565b61035061034b366004613866565b610b9c565b6040805163ffffffff909416845260069290920b6020840152151590820152606001610230565b61038a610385366004613751565b610bd0565b60408051928352602083019190915201610230565b61032f620100105481565b61038a6103b836600461358f565b610d53565b6103246103cb366004613791565b610f08565b6103e36103de366004613931565b6110ae565b604080516001600160801b039093168352602083019190915201610230565b60005461040f9060020b81565b60405160029190910b8152602001610230565b610435610430366004613967565b611230565b6040516001600160801b039091168152602001610230565b61032f60055481565b60035461040f90600160b81b900460020b81565b61038a610478366004613751565b61136e565b6103e361048b366004613931565b6114e4565b6102c061049e366004613866565b600e60205260009081526040902080546001820154600283015460039093015491926001600160801b0380831693600160801b9384900482169383831693048216911686565b61024c6104f23660046136e3565b611636565b60005461043590600160301b90046001600160801b031681565b61052461051f3660046138b9565b6117df565b6040516102309190613d8c565b61057d61053f36600461389f565b600b6020526000908152604090208054600182015460028301546003909301546001600160801b03831693600160801b909304600f0b929060ff1685565b604080516001600160801b039096168652600f9490940b60208601529284019190915260608301521515608082015260a001610230565b62010016546105cc90600160a01b900462ffffff1681565b60405162ffffff9091168152602001610230565b61038a6105ee366004613751565b611a6f565b61038a610601366004613616565b611b2e565b61067361061436600461389f565b600d6020526000908152604090208054600182015460028301546003840154600485015460058601546006909601546001600160801b0380871697600160801b978890048216978583169581900483169480841694919004909216918a565b604080516001600160801b039b8c168152998b1660208b01528901979097526060880195909552928716608087015290861660a0860152851660c085015290931660e083015261010082019290925261012081019190915261014001610230565b6106e76106e23660046137db565b611cb9565b6040516102309190613d51565b61032f61070236600461387e565b600a6020526000908152604090205481565b61038a6107223660046138eb565b611d40565b61076e610735366004613866565b600960205260009081526040902080546001820154600283015460038401546004909401546001600160801b0390931693919290919085565b604080516001600160801b0390961686526020860194909452928401919091526060830152608082015260a001610230565b6107b36107ae3660046138b9565b611eef565b6040516102309190613d0a565b6103246120f5565b60035461021c906001600160a01b031681565b600754600854610840916001600160a01b03811691600160a01b820460020b9161ffff600160b81b8204811692600160c81b8304821692600160d81b81049092169160ff600160e81b90910416906001600160801b0380821691600160801b90041688565b604080516001600160a01b03909916895260029790970b602089015261ffff9586169688019690965292841660608701529216608085015290151560a08401526001600160801b0390811660c08401521660e082015261010001610230565b60015461021c906001600160a01b031681565b6103246108c0366004613b4e565b612264565b60005461040f906301000000900460020b81565b6003546105cc90600160a01b900462ffffff1681565b61032f6201000f5481565b61040f61090836600461389f565b600c6020526000908152604090205460020b81565b61043561092b366004613967565b6123ec565b61038a61093e366004613751565b6124a5565b61024c61095136600461366c565b612564565b620100115460009081906001600160a01b0316301461097457600080fd5b600754600160e81b900460ff16156109a75760405162461bcd60e51b815260040161099e90613f3a565b60405180910390fd5b6007805460ff60e81b1916600160e81b179055620100155460405160009182916001600160a01b03909116906109e9908b908b908b908b908b90602401613c60565b60408051601f198184030181529181526020820180516001600160e01b031662e1552f60e41b17905251610a1d9190613bf2565b600060405180830381855af49150503d8060008114610a58576040519150601f19603f3d011682016040523d82523d6000602084013e610a5d565b606091505b50915091508115610ad05760008082806020019051810190610a7f9190613a96565b6040519399509197509350915060028b900b906001600160a01b038d169060008051602061445583398151915290610ac1908a908a9088908890600090613f81565b60405180910390a35050610ad9565b610ad981612b20565b50506007805460ff60e81b1916905590969095509350505050565b62010011546001600160a01b03163014610b0d57600080fd5b600754600160e81b900460ff1615610b375760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b179081905561ffff600160d81b9091048116908216811015610b8b57610b6f60108284612bb3565b506007805461ffff60d81b1916600160d81b61ffff8516021790555b50506007805460ff60e81b19169055565b60108161ffff8110610bad57600080fd5b015463ffffffff81169150600160201b810460060b90600160581b900460ff1683565b620100115460009081906001600160a01b03163014610bee57600080fd5b600754600160e81b900460ff1615610c185760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b179055620100135460405160009182916001600160a01b0390911690610c5a908b908b908b908b908b90602401613c9e565b60408051601f198184030181529181526020820180516001600160e01b0316631624092960e11b17905251610c8f9190613bf2565b600060405180830381855af49150503d8060008114610cca576040519150601f19603f3d011682016040523d82523d6000602084013e610ccf565b606091505b50915091508115610ad05780806020019051810190610cee9190613b71565b60035460028054600754604051959950939750600160a01b80840462ffffff16956001600160a01b0394851695949092169360008051602061443583398151915293610d46936000938d938d93919004900b90613e16565b60405180910390a4610ad9565b620100115460009081906001600160a01b03163014610d7157600080fd5b600754600160e81b900460ff1615610d9b5760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b179055620100145460405160009182916001600160a01b0390911690610ddf908c908c908c908c908c908c90602401613c0e565b60408051601f198184030181529181526020820180516001600160e01b0316633c8a7d8d60e01b17905251610e149190613bf2565b600060405180830381855af49150503d8060008114610e4f576040519150601f19603f3d011682016040523d82523d6000602084013e610e54565b606091505b50915091508115610ee35780806020019051810190610e739190613b71565b604080513381526001600160801b038b166020820152908101839052606081018290529195509350600289810b91908b900b906001600160a01b038d16907f7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde9060800160405180910390a4610eec565b610eec81612b20565b50506007805460ff60e81b191690559097909650945050505050565b62010011546001600160a01b03163014610f2157600080fd5b600754600160e81b900460ff1615610f4b5760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b179055620100165460405160009182916001600160a01b0390911690610f8d9089908990899089908990602401613cdc565b60408051601f198184030181529181526020820180516001600160e01b03166312439b2f60e21b17905251610fc29190613bf2565b600060405180830381855af49150503d8060008114610ffd576040519150601f19603f3d011682016040523d82523d6000602084013e611002565b606091505b5091509150811561108f57600080600080848060200190518101906110279190613b94565b604080518581526020810185905290810183905260608101829052939750919550935091506001600160a01b038c169033907fbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca6339060800160405180910390a350505050611098565b61109881612b20565b50506007805460ff60e81b191690555050505050565b620100115460009081906001600160a01b031630146110cc57600080fd5b600754600160e81b900460ff16156110f65760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b179055620100155460405160009182916001600160a01b03909116906111329088908890602401613e36565b60408051601f198184030181529181526020820180516001600160e01b0316634cd70e9160e01b179052516111679190613bf2565b600060405180830381855af49150503d80600081146111a2576040519150601f19603f3d011682016040523d82523d6000602084013e6111a7565b606091505b5091509150811561120f57600080828060200190518101906111c99190613af4565b60405193995091975093509150600289900b90339060008051602061441583398151915290611200908a9087908790600190613f57565b60405180910390a35050611218565b61121881612b20565b50506007805460ff60e81b1916905590939092509050565b62010011546000906001600160a01b0316301461124c57600080fd5b600754600160e81b900460ff16156112765760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b179055620100155460405160009182916001600160a01b03909116906112b490889088908890602401613e52565b60408051601f198184030181529181526020820180516001600160e01b031663544e705760e01b179052516112e99190613bf2565b600060405180830381855af49150503d8060008114611324576040519150601f19603f3d011682016040523d82523d6000602084013e611329565b606091505b5091509150811561134f57808060200190518101906113489190613a4c565b9250611358565b61135881612b20565b50506007805460ff60e81b191690559392505050565b620100115460009081906001600160a01b0316301461138c57600080fd5b600754600160e81b900460ff16156113b65760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b179055620100125460405160009182916001600160a01b03909116906113f8908b908b908b908b908b90602401613c9e565b60408051601f198184030181529181526020820180516001600160e01b0316632cee8a1b60e11b1790525161142d9190613bf2565b600060405180830381855af49150503d8060008114611468576040519150601f19603f3d011682016040523d82523d6000602084013e61146d565b606091505b50915091508115610ad0578080602001905181019061148c9190613b71565b60035460028054600754604051959950939750600160a01b80840462ffffff16956001600160a01b0394851695949092169360008051602061443583398151915293610d46936001938d938d93919004900b90613e16565b620100115460009081906001600160a01b0316301461150257600080fd5b600754600160e81b900460ff161561152c5760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b179055620100155460405160009182916001600160a01b03909116906115689088908890602401613e36565b60408051601f198184030181529181526020820180516001600160e01b0316633164a26560e11b1790525161159d9190613bf2565b600060405180830381855af49150503d80600081146115d8576040519150601f19603f3d011682016040523d82523d6000602084013e6115dd565b606091505b5091509150811561120f57600080828060200190518101906115ff9190613af4565b60405193995091975093509150600289900b90339060008051602061441583398151915290611200908a9087908790600090613f57565b620100115460009081906001600160a01b0316301461165457600080fd5b600754600160e81b900460ff161561167e5760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b17905562010015546040516001600160a01b038981166024830152600289900b60448301526001600160801b0388811660648401528716608483015285151560a4830152600092839291169060c40160408051601f198184030181529181526020820180516001600160e01b0316636ad1718f60e01b179052516117129190613bf2565b600060405180830381855af49150503d806000811461174d576040519150601f19603f3d011682016040523d82523d6000602084013e611752565b606091505b50915091508115610ad057808060200190518101906117719190613a68565b604080516001600160a01b038d1681526001600160801b0384811660208301528316818301528815156060820152905192965090945060028a900b9133917f7d3d0e34c86e56b4dcd993c09bbbf1b04527ab27b4365dffca10e0ded914e071919081900360800190a3610ad9565b60608160020b8360020b126118065760405162461bcd60e51b815260040161099e90613ec8565b600054600290810b810b9084900b12156118325760405162461bcd60e51b815260040161099e90613f02565b60005463010000009004600290810b810b9083900b13156118655760405162461bcd60e51b815260040161099e90613f1e565b60035461187c90600160b81b900460020b84614305565b60020b1561189c5760405162461bcd60e51b815260040161099e90613ee5565b6003546118b390600160b81b900460020b83614305565b60020b156118d35760405162461bcd60e51b815260040161099e90613eab565b600354600090600160b81b900460020b6118ed85856141d0565b6118f7919061409d565b60020b9050806001600160401b0381111561192257634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561198257816020015b6040805160c08101825260008082526020808301829052928201819052606082018190526080820181905260a082015282526000199092019101816119405790505b5091506000845b8460020b8160020b1215611a66576040805160c081018252600283810b900b6000818152600d602081815285832080546001600160801b038082168852600160801b91829004811684890152600183015498880198909852600382015404871660608701526004810154909616608086015292909152905260059091015460a08201528451859084908110611a2e57634e487b7160e01b600052603260045260246000fd5b60200260200101819052508180611a44906142ea565b600354909350611a5f9150600160b81b900460020b82613fb4565b9050611989565b50505092915050565b620100115460009081906001600160a01b03163014611a8d57600080fd5b600754600160e81b900460ff1615611ab75760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b179055620100125460405160009182916001600160a01b0390911690611af9908b908b908b908b908b90602401613c9e565b60408051601f198184030181529181526020820180516001600160e01b031663857f812f60e01b1790525161142d9190613bf2565b620100115460009081906001600160a01b03163014611b4c57600080fd5b600754600160e81b900460ff1615611b765760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b17905562010014546040516001600160a01b038981166024830152600289810b604484015288900b60648301526084820187905260a48201869052600092839291169060c40160408051601f198184030181529181526020820180516001600160e01b031663872d1f1560e01b17905251611c019190613bf2565b600060405180830381855af49150503d8060008114611c3c576040519150601f19603f3d011682016040523d82523d6000602084013e611c41565b606091505b50915091508115610ad05780806020019051810190611c609190613b71565b604080516001600160a01b038d168152602081018490529081018290529195509350600288810b91908a900b9033907ff69135213cd78fa4cffb855edf80272133f69bd8a6fb3236340a69b4d6e248e390606001610d46565b62010011546060906001600160a01b03163014611cd557600080fd5b611d394284848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600754601094939250600160a01b810460020b915061ffff600160b81b8204811691600160c81b900416612c71565b9392505050565b620100115460009081906001600160a01b03163014611d5e57600080fd5b600754600160e81b900460ff1615611d885760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b1790556201001454604051600287810b602483015286900b60448201526001600160801b038516606482015260009182916001600160a01b039091169060840160408051601f198184030181529181526020820180516001600160e01b031663a34123a760e01b17905251611e0d9190613bf2565b600060405180830381855af49150503d8060008114611e48576040519150601f19603f3d011682016040523d82523d6000602084013e611e4d565b606091505b50915091508115611ecd5780806020019051810190611e6c9190613b71565b604080516001600160801b0389168152602081018490529081018290529195509350600287810b919089900b9033907f0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c9060600160405180910390a4611ed6565b611ed681612b20565b50506007805460ff60e81b191690559094909350915050565b60608160020b8360020b12611f165760405162461bcd60e51b815260040161099e90613ec8565b600054600290810b810b9084900b1215611f425760405162461bcd60e51b815260040161099e90613f02565b60005463010000009004600290810b810b9083900b1315611f755760405162461bcd60e51b815260040161099e90613f1e565b600354611f8c90600160b81b900460020b84614305565b60020b15611fac5760405162461bcd60e51b815260040161099e90613ee5565b600354611fc390600160b81b900460020b83614305565b60020b15611fe35760405162461bcd60e51b815260040161099e90613eab565b600354600090600160b81b900460020b611ffd85856141d0565b612007919061409d565b60020b9050806001600160401b0381111561203257634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561205b578160200160208202803683370190505b5091506000845b8460020b8160020b1215611a6657600281810b900b6000908152600b60205260409020548451600160801b909104600f0b908590849081106120b457634e487b7160e01b600052603260045260246000fd5b6020026020010190600f0b9081600f0b8152505081806120d3906142ea565b6003549093506120ee9150600160b81b900460020b82613fb4565b9050612062565b62010011546001600160a01b0316301461210e57600080fd5b600754600160e81b900460ff16156121385760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b17905560015460408051636c66a87160e11b815290516001600160a01b039092169163d8cd50e291600480820192602092909190829003018186803b15801561219057600080fd5b505afa1580156121a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121c89190613573565b6001600160a01b0316336001600160a01b03161461220d5760405162461bcd60e51b8152602060048201526002602482015261272960f11b604482015260640161099e565b6002546201000f5461222a916001600160a01b0316903390612d91565b6003546201001054612247916001600160a01b0316903390612d91565b60006201000f81905562010010556007805460ff60e81b19169055565b62010011546001600160a01b0316301461227d57600080fd5b600754600160e81b900460ff16156122a75760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b17905560015460408051638da5cb5b60e01b815290516001600160a01b0390921691638da5cb5b91600480820192602092909190829003018186803b1580156122ff57600080fd5b505afa158015612313573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123379190613573565b6001600160a01b0316336001600160a01b03161461237d5760405162461bcd60e51b81526020600482015260036024820152622727a760e91b604482015260640161099e565b60648162ffffff1611156123b95760405162461bcd60e51b815260206004820152600360248201526204650360ec1b604482015260640161099e565b62010016805462ffffff909216600160a01b0262ffffff60a01b199092169190911790556007805460ff60e81b19169055565b62010011546000906001600160a01b0316301461240857600080fd5b600754600160e81b900460ff16156124325760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b179055620100155460405160009182916001600160a01b039091169061247090889088908890602401613e52565b60408051601f198184030181529181526020820180516001600160e01b0316633c058fbd60e21b179052516112e99190613bf2565b620100115460009081906001600160a01b031630146124c357600080fd5b600754600160e81b900460ff16156124ed5760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b179055620100135460405160009182916001600160a01b039091169061252f908b908b908b908b908b90602401613c9e565b60408051601f198184030181529181526020820180516001600160e01b031663784a342d60e11b17905251610c8f9190613bf2565b620100115460009081906001600160a01b0316301461258257600080fd5b600754600160e81b900460ff16156125ac5760405162461bcd60e51b815260040161099e90613f3a565b6007805460ff60e81b1916600160e81b179055620100155460405160009182916001600160a01b03909116906125ee908b908b908b908b908b90602401613c60565b60408051601f198184030181529181526020820180516001600160e01b031660016276d7d960e11b0319179052516126269190613bf2565b600060405180830381855af49150503d8060008114612661576040519150601f19603f3d011682016040523d82523d6000602084013e612666565b606091505b50915091508115610ad057600080828060200190518101906126889190613a96565b6040519399509197509350915060028b900b906001600160a01b038d169060008051602061445583398151915290610ac1908a908a9088908890600190613f81565b60008060008360020b126126e1578260020b6126ee565b8260020b6126ee9061437d565b90506126fd620d89e71961435c565b60020b8111156127335760405162461bcd60e51b81526020600482015260016024820152601560fa1b604482015260640161099e565b60006001821661274757600160801b612759565b6ffffcb933bd6fad37aa2d162d1a5940015b6001600160881b03169050600282161561278e576080612789826ffff97272373d413259a46990580e213a6141b1565b901c90505b60048216156127b85760806127b3826ffff2e50f5f656932ef12357cf3c7fdcc6141b1565b901c90505b60088216156127e25760806127dd826fffe5caca7e10e4e61c3624eaa0941cd06141b1565b901c90505b601082161561280c576080612807826fffcb9843d60f6159c9db58835c9266446141b1565b901c90505b6020821615612836576080612831826fff973b41fa98c081472e6896dfb254c06141b1565b901c90505b604082161561286057608061285b826fff2ea16466c96a3843ec78b326b528616141b1565b901c90505b608082161561288a576080612885826ffe5dee046a99a2a811c461f1969c30536141b1565b901c90505b6101008216156128b55760806128b0826ffcbe86c7900a88aedcffc83b479aa3a46141b1565b901c90505b6102008216156128e05760806128db826ff987a7253ac413176f2b074cf7815e546141b1565b901c90505b61040082161561290b576080612906826ff3392b0822b70005940c7a398e4b70f36141b1565b901c90505b610800821615612936576080612931826fe7159475a2c29b7443b29c7fa6e889d96141b1565b901c90505b61100082161561296157608061295c826fd097f3bdfd2022b8845ad8f792aa58256141b1565b901c90505b61200082161561298c576080612987826fa9f746462d870fdf8a65dc1f90e061e56141b1565b901c90505b6140008216156129b75760806129b2826f70d869a156d2a1b890bb3df62baf32f76141b1565b901c90505b6180008216156129e25760806129dd826f31be135f97d08fd981231505542fcfa66141b1565b901c90505b62010000821615612a0e576080612a09826f09aa508b5b7a84e1c677de54f3e99bc96141b1565b901c90505b62020000821615612a39576080612a34826e5d6af8dedb81196699c329225ee6046141b1565b901c90505b62040000821615612a63576080612a5e826d2216e584f5fa1ea926041bedfe986141b1565b901c90505b62080000821615612a8b576080612a86826b048a170391f7dc42444e8fa26141b1565b901c90505b60008460020b1315612aa657612aa38160001961410c565b90505b612ab4600160201b82614348565b15612ac0576001612ac3565b60005b612ad49060ff16602083901c614065565b949350505050565b6040805160608101825263ffffffff83168082526000602083015260019190920181905283546001600160601b031916909117600160581b178355805b9250929050565b8051604014612b9357604481511015612b605760405162461bcd60e51b8152602060048201526002602482015261646360f01b604482015260640161099e565b60048101905080806020019051810190612b7a91906139a4565b60405162461bcd60e51b815260040161099e9190613e78565b602081019050805160405181815260208301519150816020820152604081fd5b6000808361ffff1611612bee5760405162461bcd60e51b81526020600482015260036024820152622622a760e91b604482015260640161099e565b8261ffff168261ffff1611612c04575081611d39565b825b8261ffff168161ffff161015612c68576001858261ffff1661ffff8110612c3d57634e487b7160e01b600052603260045260246000fd5b01805463ffffffff191663ffffffff9290921691909117905580612c60816142c8565b915050612c06565b50909392505050565b606060008261ffff1611612cab5760405162461bcd60e51b81526020600482015260016024820152604960f81b604482015260640161099e565b84516001600160401b03811115612cd257634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612cfb578160200160208202803683370190505b50905060005b8551811015612d8657612d3f8888888481518110612d2f57634e487b7160e01b600052603260045260246000fd5b6020026020010151888888612e92565b828281518110612d5f57634e487b7160e01b600052603260045260246000fd5b602002602001019060060b908160060b815250508080612d7e906142ea565b915050612d01565b509695505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691612ded9190613bf2565b6000604051808303816000865af19150503d8060008114612e2a576040519150601f19603f3d011682016040523d82523d6000602084013e612e2f565b606091505b5091509150818015612e59575080511580612e59575080806020019051810190612e59919061384a565b612e8b5760405162461bcd60e51b8152602060048201526003602482015262544e5360e81b604482015260640161099e565b5050505050565b600063ffffffff8516612f2d576000878461ffff1661ffff8110612ec657634e487b7160e01b600052603260045260246000fd5b60408051606081018252919092015463ffffffff808216808452600160201b8304600690810b810b900b6020850152600160581b90920460ff1615159383019390935290925090881614612f2257612f1f818887613013565b90505b602001519050613009565b6000612f398688614273565b9050600080612f4c8a8a858a8a8a61307d565b91509150816000015163ffffffff168363ffffffff161415612f7657506020015191506130099050565b805163ffffffff84811691161415612f9657602001519250613009915050565b81518151600091612fa691614273565b63ffffffff1690506000836000015185612fc09190614273565b63ffffffff169050808285602001518560200151612fde9190614217565b612fe891906140d7565b612ff29190614120565b84602001516130019190613ffa565b955050505050505b9695505050505050565b61301b6134fd565b835160009061302a9085614273565b63ffffffff16905060405180606001604052808563ffffffff168152602001828560020b6130589190614120565b87602001516130679190613ffa565b60060b8152600160209091015295945050505050565b6130856134fd565b61308d6134fd565b878461ffff1661ffff81106130b257634e487b7160e01b600052603260045260246000fd5b60408051606081018252919092015463ffffffff8116808352600160201b8204600690810b810b900b6020840152600160581b90910460ff16151592820192909252925061310290889088613258565b1561313b578563ffffffff16826000015163ffffffff16141561312657508061324d565b81613132838888613013565b9150915061324d565b878361314886600161403f565b6131529190614327565b61ffff1661ffff811061317557634e487b7160e01b600052603260045260246000fd5b60408051606081018252919092015463ffffffff81168252600160201b8104600690810b810b900b6020830152600160581b900460ff16151591810182905292506131fa5760408051606081018252895463ffffffff81168252600160201b8104600690810b810b900b6020830152600160581b900460ff1615159181019190915291505b61320987836000015188613258565b61323b5760405162461bcd60e51b815260206004820152600360248201526213d31160ea1b604482015260640161099e565b6132488888888787613327565b915091505b965096945050505050565b60008363ffffffff168363ffffffff161115801561328257508363ffffffff168263ffffffff1611155b1561329e578163ffffffff168363ffffffff1611159050611d39565b60008463ffffffff168463ffffffff16116132cc576132c763ffffffff8516600160201b61407d565b6132d4565b8363ffffffff165b64ffffffffff16905060008563ffffffff168463ffffffff161161330b5761330663ffffffff8516600160201b61407d565b613313565b8363ffffffff165b64ffffffffff169091111595945050505050565b61332f6134fd565b6133376134fd565b60008361334586600161403f565b61334f9190614327565b61ffff169050600060018561ffff16836133699190614065565b613373919061425c565b905060005b60026133848385614065565b61338e919061410c565b90508961339f61ffff881683614348565b61ffff81106133be57634e487b7160e01b600052603260045260246000fd5b60408051606081018252919092015463ffffffff81168252600160201b8104600690810b810b900b6020830152600160581b900460ff16151591810182905295506134155761340e816001614065565b9250613378565b8961ffff8716613426836001614065565b6134309190614348565b61ffff811061344f57634e487b7160e01b600052603260045260246000fd5b60408051606081018252929091015463ffffffff81168352600160201b8104600690810b810b900b602084015260ff600160581b9091041615159082015285519094506000906134a1908b908b613258565b90508080156134ba57506134ba8a8a8760000151613258565b156134c557506134f0565b806134dc576134d560018361425c565b92506134ea565b6134e7826001614065565b93505b50613378565b5050509550959350505050565b604080516060810182526000808252602082018190529181019190915290565b60008083601f84011261352e578182fd5b5081356001600160401b03811115613544578182fd5b602083019150836020828501011115612b1957600080fd5b8035600281900b811461356e57600080fd5b919050565b600060208284031215613584578081fd5b8151611d39816143d9565b60008060008060008060a087890312156135a7578182fd5b86356135b2816143d9565b95506135c06020880161355c565b94506135ce6040880161355c565b935060608701356135de816143ff565b925060808701356001600160401b038111156135f8578283fd5b61360489828a0161351d565b979a9699509497509295939492505050565b600080600080600060a0868803121561362d578081fd5b8535613638816143d9565b94506136466020870161355c565b93506136546040870161355c565b94979396509394606081013594506080013592915050565b600080600080600060808688031215613683578081fd5b853561368e816143d9565b945061369c6020870161355c565b935060408601356136ac816143ff565b925060608601356001600160401b038111156136c6578182fd5b6136d28882890161351d565b969995985093965092949392505050565b600080600080600060a086880312156136fa578081fd5b8535613705816143d9565b94506137136020870161355c565b93506040860135613723816143ff565b92506060860135613733816143ff565b91506080860135613743816143f1565b809150509295509295909350565b600080600080600060808688031215613768578081fd5b8535613773816143d9565b94506020860135613783816143ff565b93506136ac6040870161355c565b6000806000806000608086880312156137a8578283fd5b85356137b3816143d9565b9450602086013593506040860135925060608601356001600160401b038111156136c6578182fd5b600080602083850312156137ed578182fd5b82356001600160401b0380821115613803578384fd5b818501915085601f830112613816578384fd5b813581811115613824578485fd5b8660208260051b8501011115613838578485fd5b60209290920196919550909350505050565b60006020828403121561385b578081fd5b8151611d39816143f1565b600060208284031215613877578081fd5b5035919050565b60006020828403121561388f578081fd5b81358060010b8114611d39578182fd5b6000602082840312156138b0578081fd5b611d398261355c565b600080604083850312156138cb578182fd5b6138d48361355c565b91506138e26020840161355c565b90509250929050565b6000806000606084860312156138ff578081fd5b6139088461355c565b92506139166020850161355c565b91506040840135613926816143ff565b809150509250925092565b60008060408385031215613943578182fd5b61394c8361355c565b9150602083013561395c816143ff565b809150509250929050565b60008060006060848603121561397b578081fd5b6139848461355c565b92506020840135613994816143ff565b91506040840135613926816143f1565b6000602082840312156139b5578081fd5b81516001600160401b03808211156139cb578283fd5b818401915084601f8301126139de578283fd5b8151818111156139f0576139f06143c3565b604051601f8201601f19908116603f01168101908382118183101715613a1857613a186143c3565b81604052828152876020848701011115613a30578586fd5b613a41836020830160208801614298565b979650505050505050565b600060208284031215613a5d578081fd5b8151611d39816143ff565b60008060408385031215613a7a578182fd5b8251613a85816143ff565b602084015190925061395c816143ff565b60008060008060808587031215613aab578182fd5b8451613ab6816143ff565b6020860151909450613ac7816143ff565b6040860151909350613ad8816143ff565b6060860151909250613ae9816143ff565b939692955090935050565b60008060008060808587031215613b09578182fd5b8451613b14816143ff565b602086015160408701519195509350613ad8816143ff565b600060208284031215613b3d578081fd5b813561ffff81168114611d39578182fd5b600060208284031215613b5f578081fd5b813562ffffff81168114611d39578182fd5b60008060408385031215613b83578182fd5b505080516020909101519092909150565b60008060008060808587031215613ba9578182fd5b505082516020840151604085015160609095015191969095509092509050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008251613c04818460208701614298565b9190910192915050565b6001600160a01b0387168152600286810b602083015285900b60408201526001600160801b038416606082015260a060808201819052600090613c549083018486613bc9565b98975050505050505050565b6001600160a01b0386168152600285900b60208201526001600160801b0384166040820152608060608201819052600090613a419083018486613bc9565b6001600160a01b03861681526001600160801b0385166020820152600284900b6040820152608060608201819052600090613a419083018486613bc9565b60018060a01b0386168152846020820152836040820152608060608201526000613a41608083018486613bc9565b6020808252825182820181905260009190848201906040850190845b81811015613d45578351600f0b83529284019291840191600101613d26565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613d4557835160060b83529284019291840191600101613d6d565b602080825282518282018190526000919060409081850190868401855b82811015613e0957815180516001600160801b0390811686528782015181168887015286820151878701526060808301518216908701526080808301519091169086015260a0908101519085015260c09093019290850190600101613da9565b5091979650505050505050565b93151584526020840192909252604083015260020b606082015260800190565b60029290920b82526001600160801b0316602082015260400190565b60029390930b83526001600160801b039190911660208301521515604082015260600190565b6020815260008251806020840152613e97816040850160208701614298565b601f01601f19169190910160400192915050565b60208082526003908201526205244360ec1b604082015260600190565b602080825260039082015262261e2960e91b604082015260600190565b60208082526003908201526204c44360ec1b604082015260600190565b6020808252600290820152614c4f60f01b604082015260600190565b602080825260029082015261524f60f01b604082015260600190565b6020808252600390820152621312d160ea1b604082015260600190565b6001600160801b039485168152928416602084015292166040820152901515606082015260800190565b6001600160801b039586168152938516602085015291841660408401529092166060820152901515608082015260a00190565b60008160020b8360020b82821282627fffff03821381151615613fd957613fd9614397565b82627fffff19038212811615613ff157613ff1614397565b50019392505050565b60008160060b8360060b82821282667fffffffffffff0382138115161561402357614023614397565b82667fffffffffffff19038212811615613ff157613ff1614397565b600061ffff80831681851680830382111561405c5761405c614397565b01949350505050565b6000821982111561407857614078614397565b500190565b600064ffffffffff80831681851680830382111561405c5761405c614397565b60008160020b8360020b806140b4576140b46143ad565b627fffff198214600019821416156140ce576140ce614397565b90059392505050565b60008160060b8360060b806140ee576140ee6143ad565b667fffffffffffff198214600019821416156140ce576140ce614397565b60008261411b5761411b6143ad565b500490565b60008160060b8360060b667fffffffffffff8382138484138383048511828216161561414e5761414e614397565b667fffffffffffff198685128281168783058712161561417057614170614397565b87871292508582058712848416161561418b5761418b614397565b858505871281841616156141a1576141a1614397565b5050509290910295945050505050565b60008160001904831182151516156141cb576141cb614397565b500290565b60008160020b8360020b82811281627fffff19018312811516156141f6576141f6614397565b81627fffff01831381161561420d5761420d614397565b5090039392505050565b60008160060b8360060b82811281667fffffffffffff190183128115161561424157614241614397565b81667fffffffffffff01831381161561420d5761420d614397565b60008282101561426e5761426e614397565b500390565b600063ffffffff8381169083168181101561429057614290614397565b039392505050565b60005b838110156142b357818101518382015260200161429b565b838111156142c2576000848401525b50505050565b600061ffff808316818114156142e0576142e0614397565b6001019392505050565b60006000198214156142fe576142fe614397565b5060010190565b60008260020b80614318576143186143ad565b808360020b0791505092915050565b600061ffff8084168061433c5761433c6143ad565b92169190910692915050565b600082614357576143576143ad565b500690565b60008160020b627fffff1981141561437657614376614397565b9003919050565b6000600160ff1b82141561439357614393614397565b0390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146143ee57600080fd5b50565b80151581146143ee57600080fd5b6001600160801b03811681146143ee57600080fdfe3736ba81d13006f6ea2012ba3e287f087169b55d90a9defb5966fe9eb830d7ea0fe977d619f8172f7fdbe8bb8928ef80952817d96936509f67d66346bc4cd10f4f4658280ee6d0e8f09b5e436dacaca69ec5dd7c2ba05fb010d5145a3567cdada2646970667358221220336d80b132feef86c529f37d3371b115ca9f1c5a659c38276dc7fea0925be6ab64736f6c63430008040033

Deployed Bytecode Sourcemap

109538:21068:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111234:35;;;;;-1:-1:-1;;;;;111234:35:0;;;;;;-1:-1:-1;;;;;13333:32:1;;;13315:51;;13303:2;13288:18;111234:35:0;;;;;;;;119724:806;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;28617:15:1;;;28599:34;;28669:15;;;;28664:2;28649:18;;28642:43;28534:18;119724:806:0;28516:175:1;112419:59:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;112419:59:0;;;;-1:-1:-1;;;112419:59:0;;;;;;;;;;;;;;;;;;;;;;33467:25:1;;;-1:-1:-1;;;;;33566:15:1;;;33561:2;33546:18;;33539:43;33618:15;;;33598:18;;;33591:43;;;;33670:15;;;33665:2;33650:18;;33643:43;33723:15;;33519:3;33702:19;;33695:44;33776:15;33770:3;33755:19;;33748:44;33454:3;33439:19;112419:59:0;33421:377:1;110596:21:0;;;;;-1:-1:-1;;;;;110596:21:0;;;126880:358;;;;;;:::i;:::-;;:::i;:::-;;111001:28;;;;;;;;;33144:25:1;;;33132:2;33117:18;111001:28:0;33099:76:1;112527:54:0;;;;;;:::i;:::-;;:::i;:::-;;;;34672:10:1;34660:23;;;34642:42;;34731:1;34720:21;;;;34715:2;34700:18;;34693:49;34785:14;34778:22;34758:18;;;34751:50;34630:2;34615:18;112527:54:0;34597:210:1;123545:667:0;;;;;;:::i;:::-;;:::i;:::-;;;;33977:25:1;;;34033:2;34018:18;;34011:34;;;;33950:18;123545:667:0;33932:119:1;112637:40:0;;;;;;121366:701;;;;;;:::i;:::-;;:::i;129893:704::-;;;;;;:::i;:::-;;:::i;117330:725::-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;30831:32:1;;;30813:51;;30895:2;30880:18;;30873:34;;;;30786:18;117330:725:0;30768:145:1;110234:23:0;;;;;;;;;;;;21261:1:1;21250:21;;;;21232:40;;21220:2;21205:18;110234:23:0;21187:91:1;116188:529:0;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;27825:32:1;;;27807:51;;27795:2;27780:18;116188:529:0;27762:102:1;111143:28:0;;;;;;110862:23;;;;;-1:-1:-1;;;110862:23:0;;;;;;125685:665;;;;;;:::i;:::-;;:::i;118097:734::-;;;;;;:::i;:::-;;:::i;112267:59::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;112267:59:0;;;;-1:-1:-1;;;112267:59:0;;;;;;;;;;;;;;;;;;120572:748;;;;;;:::i;:::-;;:::i;110452:26::-;;;;;-1:-1:-1;;;110452:26:0;;-1:-1:-1;;;;;110452:26:0;;;128029:1043;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;111838:50::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;111838:50:0;;;-1:-1:-1;;;111838:50:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;28138:32:1;;;28120:51;;28218:2;28207:22;;;;28202:2;28187:18;;28180:50;28246:18;;;28239:34;;;;28304:2;28289:18;;28282:34;28360:14;28353:22;28158:3;28332:19;;28325:51;28107:3;28092:19;111838:50:0;28074:308:1;112956:39:0;;;;;-1:-1:-1;;;112956:39:0;;;;;;;;;32977:8:1;32965:21;;;32947:40;;32935:2;32920:18;112956:39:0;32902:91:1;124979:664:0;;;;;;:::i;:::-;;:::i;122754:749::-;;;;;;:::i;:::-;;:::i;112111:63::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;112111:63:0;;;;-1:-1:-1;;;112111:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30174:15:1;;;30156:34;;30226:15;;;30221:2;30206:18;;30199:43;30258:18;;30251:34;;;;30316:2;30301:18;;30294:34;;;;30365:15;;;30136:3;30344:19;;30337:44;30418:15;;;30412:3;30397:19;;30390:44;30471:15;;30465:3;30450:19;;30443:44;30524:15;;;30518:3;30503:19;;30496:44;30571:3;30556:19;;30549:35;;;;30615:3;30600:19;;30593:35;;;;30105:3;30090:19;112111:63:0;30072:562:1;126392:446:0;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;111655:52::-;;;;;;:::i;:::-;;;;;;;;;;;;;;122109:603;;;;;;:::i;:::-;;:::i;111480:59::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;111480:59:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;31545:32:1;;;31527:51;;31609:2;31594:18;;31587:34;;;;31637:18;;;31630:34;;;;31695:2;31680:18;;31673:34;31565:3;31723:19;;31716:35;31514:3;31499:19;111480:59:0;31481:276:1;127280:707:0;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;129114:370::-;;;:::i;110659:21::-;;;;;-1:-1:-1;;;;;110659:21:0;;;111370:27;;;;;;;-1:-1:-1;;;;;111370:27:0;;;-1:-1:-1;;;111370:27:0;;;;;;-1:-1:-1;;;111370:27:0;;;;;-1:-1:-1;;;111370:27:0;;;;;-1:-1:-1;;;111370:27:0;;;;;;;-1:-1:-1;;;111370:27:0;;;;;-1:-1:-1;;;;;111370:27:0;;;;-1:-1:-1;;;111370:27:0;;;;;;;;;-1:-1:-1;;;;;32315:32:1;;;32297:51;;32395:1;32384:21;;;;32379:2;32364:18;;32357:49;32425:6;32467:15;;;32447:18;;;32440:43;;;;32519:15;;;32514:2;32499:18;;32492:43;32572:15;;32566:3;32551:19;;32544:44;32632:14;;32625:22;32335:3;32604:19;;32597:51;-1:-1:-1;;;;;32723:15:1;;;32717:3;32702:19;;32695:44;32776:15;32770:3;32755:19;;32748:44;32284:3;32269:19;111370:27:0;32251:547:1;110530:22:0;;;;;-1:-1:-1;;;;;110530:22:0;;;129526:325;;;;;;:::i;:::-;;:::i;110324:24::-;;;;;;;;;;;;110750:17;;;;;-1:-1:-1;;;110750:17:0;;;;;;112590:40;;;;;;112000:54;;;;;;:::i;:::-;;;;;;;;;;;;;;;;116759:529;;;;;;:::i;:::-;;:::i;124254:683::-;;;;;;:::i;:::-;;:::i;118873:805::-;;;;;;:::i;:::-;;:::i;119724:806::-;113211:8;;119910:14;;;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;;;;;;;;;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;119998:16:::2;::::0;120042:105:::2;::::0;113071:12:::1;::::0;;;-1:-1:-1;;;;;119998:16:0;;::::2;::::0;120042:105:::2;::::0;120115:9;;120126:5;;120133:7;;120142:4;;;;120042:105:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;120042:105:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;120042:105:0::2;-1:-1:-1::0;;;120042:105:0::2;::::0;;119998:160;::::2;::::0;120042:105;119998:160:::2;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;119965:193;;;;120173:7;120169:344;;;120197:17;120229::::0;120315:1:::2;120304:51;;;;;;;;;;;;:::i;:::-;120375:78;::::0;120261:94;;-1:-1:-1;120261:94:0;;-1:-1:-1;120261:94:0;-1:-1:-1;120261:94:0;-1:-1:-1;120375:78:0::2;::::0;;::::2;::::0;-1:-1:-1;;;;;120375:78:0;::::2;::::0;-1:-1:-1;;;;;;;;;;;120375:78:0;::::2;::::0;120261:94;;;;;;;;120447:5:::2;::::0;120375:78:::2;:::i;:::-;;;;;;;;120169:344;;;;;120486:15;120499:1;120486:12;:15::i;:::-;-1:-1:-1::0;;113113:5:0::1;:20:::0;;-1:-1:-1;;;;113113:20:0::1;::::0;;119724:806;;;;-1:-1:-1;119724:806:0;-1:-1:-1;;;;119724:806:0:o;126880:358::-;113211:8;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;;;127010:29:::2;-1:-1:-1::0;;;127010:29:0;;::::2;::::0;::::2;::::0;127054:33;::::2;::::0;-1:-1:-1;127050:181:0::2;;;127104:53;:12;127124:15:::0;127141;127104:19:::2;:53::i;:::-;-1:-1:-1::0;127172:5:0::2;:47:::0;;-1:-1:-1;;;;127172:47:0::2;-1:-1:-1::0;;;127172:47:0::2;::::0;::::2;;;::::0;;127050:181:::2;-1:-1:-1::0;;113113:5:0::1;:20:::0;;-1:-1:-1;;;;113113:20:0::1;::::0;;126880:358::o;112527:54::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;112527:54:0;;;;;-1:-1:-1;;;112527:54:0;;;;;:::o;123545:667::-;113211:8;;123722:15;;;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;123800:13:::2;::::0;123841:110:::2;::::0;113071:12:::1;::::0;;;-1:-1:-1;;;;;123800:13:0;;::::2;::::0;123841:110:::2;::::0;123919:9;;123930:6;;123938;;123946:4;;;;123841:110:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;123841:110:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;123841:110:0::2;-1:-1:-1::0;;;123841:110:0::2;::::0;;123800:162;::::2;::::0;123841:110;123800:162:::2;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;123767:195;;;;123977:7;123973:232;;;124033:1;124022:33;;;;;;;;;;;;:::i;:::-;124096:3;::::0;124080:6:::2;::::0;;124126:5:::2;:18:::0;124075:70:::2;::::0;124001:54;;-1:-1:-1;124001:54:0;;-1:-1:-1;;;;124096:3:0;;::::2;;;::::0;-1:-1:-1;;;;;124088:6:0;;::::2;::::0;124080;;;::::2;::::0;-1:-1:-1;;;;;;;;;;;124075:70:0;::::2;::::0;124088:6:::2;::::0;124001:54;;;;124126:18;;::::2;::::0;::::2;::::0;124075:70:::2;:::i;:::-;;;;;;;;123973:232;;121366:701:::0;113211:8;;121569:15;;;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;121647:15:::2;::::0;121690:111:::2;::::0;113071:12:::1;::::0;;;-1:-1:-1;;;;;121647:15:0;;::::2;::::0;121690:111:::2;::::0;121757:9;;121768:6;;121776:7;;121784:11;;121796:4;;;;121690:111:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;121690:111:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;121690:111:0::2;-1:-1:-1::0;;;121690:111:0::2;::::0;;121647:165;::::2;::::0;121690:111;121647:165:::2;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;121614:198;;;;121827:7;121823:237;;;121883:1;121872:33;;;;;;;;;;;;:::i;:::-;121925:75;::::0;;121930:10:::2;16847:51:1::0;;-1:-1:-1;;;;;16934:32:1;;16929:2;16914:18;;16907:60;16983:18;;;16976:34;;;17041:2;17026:18;;17019:34;;;121851:54:0;;-1:-1:-1;121851:54:0;-1:-1:-1;121925:75:0::2;::::0;;::::2;::::0;;;;::::2;::::0;-1:-1:-1;;;;;121925:75:0;::::2;::::0;::::2;::::0;16834:3:1;16819:19;121925:75:0::2;;;;;;;121823:237;;;122033:15;122046:1;122033:12;:15::i;:::-;-1:-1:-1::0;;113113:5:0::1;:20:::0;;-1:-1:-1;;;;113113:20:0::1;::::0;;121366:701;;;;-1:-1:-1;121366:701:0;-1:-1:-1;;;;;121366:701:0:o;129893:704::-;113211:8;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;130107:11:::2;::::0;130146:112:::2;::::0;113071:12:::1;::::0;;;-1:-1:-1;;;;;130107:11:0;;::::2;::::0;130146:112:::2;::::0;130224:9;;130235:7;;130244;;130253:4;;;;130146:112:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;130146:112:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;130146:112:0::2;-1:-1:-1::0;;;130146:112:0::2;::::0;;130107:162;::::2;::::0;130146:112;130107:162:::2;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130074:195;;;;130284:7;130280:310;;;130309:21;130332::::0;130355:13:::2;130370::::0;130398:1:::2;130387:51;;;;;;;;;;;;:::i;:::-;130458:72;::::0;;34287:25:1;;;34343:2;34328:18;;34321:34;;;34371:18;;;34364:34;;;34429:2;34414:18;;34407:34;;;130308:130:0;;-1:-1:-1;130308:130:0;;-1:-1:-1;130308:130:0;-1:-1:-1;130308:130:0;-1:-1:-1;;;;;;130458:72:0;::::2;::::0;130464:10:::2;::::0;130458:72:::2;::::0;34274:3:1;34259:19;130458:72:0::2;;;;;;;130280:310;;;;;;;130563:15;130576:1;130563:12;:15::i;:::-;-1:-1:-1::0;;113113:5:0::1;:20:::0;;-1:-1:-1;;;;113113:20:0::1;::::0;;-1:-1:-1;;;;;129893:704:0:o;117330:725::-;113211:8;;117457:20;;;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;117556:16:::2;::::0;117600:73:::2;::::0;113071:12:::1;::::0;;;-1:-1:-1;;;;;117556:16:0;;::::2;::::0;117600:73:::2;::::0;117659:5;;117666:6;;117600:73:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;117600:73:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;117600:73:0::2;-1:-1:-1::0;;;117600:73:0::2;::::0;;117556:128;::::2;::::0;117600:73;117556:128:::2;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;117523:161;;;;117699:7;117695:351;;;117723:17;117755::::0;117852:1:::2;117841:51;;;;;;;;;;;;:::i;:::-;117912:74;::::0;117787:105;;-1:-1:-1;117787:105:0;;-1:-1:-1;117787:105:0;-1:-1:-1;117787:105:0;-1:-1:-1;117912:74:0::2;::::0;;::::2;::::0;117926:10:::2;::::0;-1:-1:-1;;;;;;;;;;;117912:74:0;::::2;::::0;117787:105;;;;;;117981:4:::2;::::0;117912:74:::2;:::i;:::-;;;;;;;;117695:351;;;;;118019:15;118032:1;118019:12;:15::i;:::-;-1:-1:-1::0;;113113:5:0::1;:20:::0;;-1:-1:-1;;;;113113:20:0::1;::::0;;117330:725;;;;-1:-1:-1;117330:725:0;-1:-1:-1;117330:725:0:o;116188:529::-;113211:8;;116345:21;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;116422:16:::2;::::0;116466:94:::2;::::0;113071:12:::1;::::0;;;-1:-1:-1;;;;;116422:16:0;;::::2;::::0;116466:94:::2;::::0;116533:5;;116540:7;;116549:10;;116466:94:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;116466:94:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;116466:94:0::2;-1:-1:-1::0;;;116466:94:0::2;::::0;;116422:149;::::2;::::0;116466:94;116422:149:::2;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116389:182;;;;116586:7;116582:128;;;116637:1;116626:24;;;;;;;;;;;;:::i;:::-;116610:40;;116582:128;;;116683:15;116696:1;116683:12;:15::i;:::-;-1:-1:-1::0;;113113:5:0::1;:20:::0;;-1:-1:-1;;;;113113:20:0::1;::::0;;116188:529;;-1:-1:-1;;;116188:529:0:o;125685:665::-;113211:8;;125869:15;;;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;125947:13:::2;::::0;125988:102:::2;::::0;113071:12:::1;::::0;;;-1:-1:-1;;;;;125947:13:0;;::::2;::::0;125988:102:::2;::::0;126059:9;;126070:7;;126079:5;;126085:4;;;;125988:102:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;125988:102:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;125988:102:0::2;-1:-1:-1::0;;;125988:102:0::2;::::0;;125947:154;::::2;::::0;125988:102;125947:154:::2;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125914:187;;;;126116:7;126112:231;;;126172:1;126161:33;;;;;;;;;;;;:::i;:::-;126235:3;::::0;126219:6:::2;::::0;;126264:5:::2;:18:::0;126214:69:::2;::::0;126140:54;;-1:-1:-1;126140:54:0;;-1:-1:-1;;;;126235:3:0;;::::2;;;::::0;-1:-1:-1;;;;;126227:6:0;;::::2;::::0;126219;;;::::2;::::0;-1:-1:-1;;;;;;;;;;;126214:69:0;::::2;::::0;126227:6;;126140:54;;;;126264:18;;::::2;::::0;::::2;::::0;126214:69:::2;:::i;118097:734::-:0;113211:8;;118224:20;;;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;118323:16:::2;::::0;118367:73:::2;::::0;113071:12:::1;::::0;;;-1:-1:-1;;;;;118323:16:0;;::::2;::::0;118367:73:::2;::::0;118426:5;;118433:6;;118367:73:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;118367:73:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;118367:73:0::2;-1:-1:-1::0;;;118367:73:0::2;::::0;;118323:128;::::2;::::0;118367:73;118323:128:::2;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;118290:161;;;;118466:7;118462:352;;;118490:17;118522::::0;118619:1:::2;118608:51;;;;;;;;;;;;:::i;:::-;118679:75;::::0;118554:105;;-1:-1:-1;118554:105:0;;-1:-1:-1;118554:105:0;-1:-1:-1;118554:105:0;-1:-1:-1;118679:75:0::2;::::0;;::::2;::::0;118693:10:::2;::::0;-1:-1:-1;;;;;;;;;;;118679:75:0;::::2;::::0;118554:105;;;;;;118748:5:::2;::::0;118679:75:::2;:::i;120572:748::-:0;113211:8;;120746:24;;;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;120843:16:::2;::::0;120887:130:::2;::::0;-1:-1:-1;;;;;15297:32:1;;;120887:130:0::2;::::0;::::2;15279:51:1::0;15377:1;15366:21;;;15346:18;;;15339:49;-1:-1:-1;;;;;15462:15:1;;;15442:18;;;15435:43;15514:15;;15494:18;;;15487:43;15574:14;;15567:22;15546:19;;;15539:51;-1:-1:-1;;;;120843:16:0;::::2;::::0;15251:19:1;;120887:130:0::2;::::0;;-1:-1:-1;;120887:130:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;120887:130:0::2;-1:-1:-1::0;;;120887:130:0::2;::::0;;120843:185;::::2;::::0;120887:130;120843:185:::2;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;120810:218;;;;121043:7;121039:274;;;121118:1;121107:33;;;;;;;;;;;;:::i;:::-;121160:93;::::0;;-1:-1:-1;;;;;16371:32:1;;16353:51;;-1:-1:-1;;;;;16478:15:1;;;16473:2;16458:18;;16451:43;16530:15;;16510:18;;;16503:43;16589:14;;16582:22;16577:2;16562:18;;16555:50;121160:93:0;;16478:15:1;;-1:-1:-1;16530:15:1;;-1:-1:-1;121160:93:0::2;::::0;;::::2;::::0;121178:10:::2;::::0;121160:93:::2;::::0;;;;;16340:3:1;121160:93:0;;::::2;121039:274;;128029:1043:::0;128123:37;128193:10;128181:22;;:9;:22;;;128173:38;;;;-1:-1:-1;;;128173:38:0;;;;;;;:::i;:::-;128243:10;;;;;;128230:23;;;;;;;;128222:38;;;;-1:-1:-1;;;128222:38:0;;;;;;;:::i;:::-;128293:11;;;;;;;;;128279:25;;;;;;;;128271:40;;;;-1:-1:-1;;;128271:40:0;;;;;;;:::i;:::-;128342:10;;128330:22;;-1:-1:-1;;;128342:10:0;;;;128330:9;:22;:::i;:::-;:27;;;128322:43;;;;-1:-1:-1;;;128322:43:0;;;;;;;:::i;:::-;128397:10;;128384:23;;-1:-1:-1;;;128397:10:0;;;;128384;:23;:::i;:::-;:28;;;128376:44;;;;-1:-1:-1;;;128376:44:0;;;;;;;:::i;:::-;128487:10;;128431:11;;-1:-1:-1;;;128487:10:0;;;;128461:22;128474:9;128461:10;:22;:::i;:::-;128460:37;;;;:::i;:::-;128453:45;;128431:68;;128547:3;-1:-1:-1;;;;;128524:27:0;;;;;-1:-1:-1;;;128524:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128524:27:0;;-1:-1:-1;;128524:27:0;;;;;;;;;;;-1:-1:-1;128510:41:0;-1:-1:-1;128562:11:0;128603:9;128588:477;128618:10;128614:14;;:1;:14;;;128588:477;;;128681:351;;;;;;;;128727:17;;;;;;-1:-1:-1;128727:17:0;;;:14;:17;;;;;;;:26;;-1:-1:-1;;;;;128727:26:0;;;128681:351;;-1:-1:-1;;;128779:23:0;;;;;;128681:351;;;;128727:26;128831;;;128681:351;;;;;;;128886:26;;;;;;;128681:351;;;;128938:23;;;;;;;128681:351;;;;128990:17;;;;;;:26;;;;;128681:351;;;;128662:16;;:11;;128674:3;;128662:16;;;;-1:-1:-1;;;128662:16:0;;;;;;;;;;;;;;:370;;;;129047:6;;;;;:::i;:::-;128635:10;;129047:6;;-1:-1:-1;128630:15:0;;-1:-1:-1;;;;128635:10:0;;;;128630:15;;:::i;:::-;;;128588:477;;;;128029:1043;;;;;;:::o;124979:664::-;113211:8;;125155:15;;;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;125233:13:::2;::::0;125274:109:::2;::::0;113071:12:::1;::::0;;;-1:-1:-1;;;;;125233:13:0;;::::2;::::0;125274:109:::2;::::0;125352:9;;125363:6;;125371:5;;125378:4;;;;125274:109:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;125274:109:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;125274:109:0::2;-1:-1:-1::0;;;125274:109:0::2;::::0;;125233:161;::::2;::::0;125274:109;125233:161:::2;:::i;122754:749::-:0;113211:8;;122958:21;;;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;123048:15:::2;::::0;123091:123:::2;::::0;-1:-1:-1;;;;;14256:32:1;;;123091:123:0::2;::::0;::::2;14238:51:1::0;14336:1;14325:21;;;14305:18;;;14298:49;14383:21;;;14363:18;;;14356:49;14421:18;;;14414:34;;;14464:19;;;14457:35;;;-1:-1:-1;;;;123048:15:0;::::2;::::0;14210:19:1;;123091:123:0::2;::::0;;-1:-1:-1;;123091:123:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;123091:123:0::2;-1:-1:-1::0;;;123091:123:0::2;::::0;;123048:177;::::2;::::0;123091:123;123048:177:::2;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;123015:210;;;;123240:7;123236:260;;;123308:1;123297:33;;;;;;;;;;;;:::i;:::-;123350:86;::::0;;-1:-1:-1;;;;;17563:32:1;;17545:51;;17627:2;17612:18;;17605:34;;;17655:18;;;17648:34;;;123264:66:0;;-1:-1:-1;123264:66:0;-1:-1:-1;123350:86:0::2;::::0;;::::2;::::0;;;;::::2;::::0;123367:10:::2;::::0;123350:86:::2;::::0;17533:2:1;17518:18;123350:86:0::2;17500:188:1::0;126392:446:0;113211:8;;126532:24;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;126594:236:::1;126640:15;126675:11;;126594:236;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;126705:5:0::1;:18:::0;126594:12:::1;::::0;:236;;-1:-1:-1;;;;126705:18:0;::::1;;;::::0;-1:-1:-1;126742:29:0::1;-1:-1:-1::0;;;126742:29:0;::::1;::::0;::::1;::::0;-1:-1:-1;;;126790:25:0;::::1;;126594:20;:236::i;:::-;126574:256:::0;126392:446;-1:-1:-1;;;126392:446:0:o;122109:603::-;113211:8;;122254:15;;;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;122332:15:::2;::::0;122375:82:::2;::::0;21506:1:1;21495:21;;;122375:82:0::2;::::0;::::2;21477:40:1::0;21553:21;;;21533:18;;;21526:49;-1:-1:-1;;;;;21611:32:1;;21591:18;;;21584:60;-1:-1:-1;;;;;;;;;122332:15:0;;::::2;::::0;21450:18:1;;122375:82:0::2;::::0;;-1:-1:-1;;122375:82:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;122375:82:0::2;-1:-1:-1::0;;;122375:82:0::2;::::0;;122332:136;::::2;::::0;122375:82;122332:136:::2;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;122299:169;;;;122483:7;122479:226;;;122539:1;122528:33;;;;;;;;;;;;:::i;:::-;122581:64;::::0;;-1:-1:-1;;;;;31138:32:1;;31120:51;;31202:2;31187:18;;31180:34;;;31230:18;;;31223:34;;;122507:54:0;;-1:-1:-1;122507:54:0;-1:-1:-1;122581:64:0::2;::::0;;::::2;::::0;;;;::::2;::::0;122586:10:::2;::::0;122581:64:::2;::::0;31108:2:1;31093:18;122581:64:0::2;;;;;;;122479:226;;;122678:15;122691:1;122678:12;:15::i;:::-;-1:-1:-1::0;;113113:5:0::1;:20:::0;;-1:-1:-1;;;;113113:20:0::1;::::0;;122109:603;;;;-1:-1:-1;122109:603:0;-1:-1:-1;;122109:603:0:o;127280:707::-;127373:32;127438:10;127426:22;;:9;:22;;;127418:38;;;;-1:-1:-1;;;127418:38:0;;;;;;;:::i;:::-;127488:10;;;;;;127475:23;;;;;;;;127467:38;;;;-1:-1:-1;;;127467:38:0;;;;;;;:::i;:::-;127538:11;;;;;;;;;127524:25;;;;;;;;127516:40;;;;-1:-1:-1;;;127516:40:0;;;;;;;:::i;:::-;127587:10;;127575:22;;-1:-1:-1;;;127587:10:0;;;;127575:9;:22;:::i;:::-;:27;;;127567:43;;;;-1:-1:-1;;;127567:43:0;;;;;;;:::i;:::-;127642:10;;127629:23;;-1:-1:-1;;;127642:10:0;;;;127629;:23;:::i;:::-;:28;;;127621:44;;;;-1:-1:-1;;;127621:44:0;;;;;;;:::i;:::-;127732:10;;127676:11;;-1:-1:-1;;;127732:10:0;;;;127706:22;127719:9;127706:10;:22;:::i;:::-;127705:37;;;;:::i;:::-;127698:45;;127676:68;;127787:3;-1:-1:-1;;;;;127774:17:0;;;;;-1:-1:-1;;;127774:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;127774:17:0;-1:-1:-1;127755:36:0;-1:-1:-1;127802:11:0;127843:9;127828:152;127858:10;127854:14;;:1;:14;;;127828:152;;;127926:9;;;;;;;;;;:6;:9;;;;;:21;127902;;-1:-1:-1;;;127926:21:0;;;;;;127902:16;;127919:3;;127902:21;;;;-1:-1:-1;;;127902:21:0;;;;;;;;;;;;;;:45;;;;;;;;;;;127962:6;;;;;:::i;:::-;127875:10;;127962:6;;-1:-1:-1;127870:15:0;;-1:-1:-1;;;;127875:10:0;;;;127870:15;;:::i;:::-;;;127828:152;;129114:370;113211:8;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;113086:4:::1;129230:7:::0;129214:41:::2;::::0;;-1:-1:-1;;;129214:41:0;;;;-1:-1:-1;;;;;129230:7:0;;::::2;::::0;129214:39:::2;::::0;:41:::2;::::0;;::::2;::::0;::::2;::::0;;;;;;;;;129230:7;129214:41;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;129200:55:0::2;:10;-1:-1:-1::0;;;;;129200:55:0::2;;129192:70;;;::::0;-1:-1:-1;;;129192:70:0;;23568:2:1;129192:70:0::2;::::0;::::2;23550:21:1::0;23607:1;23587:18;;;23580:29;-1:-1:-1;;;23625:18:1;;;23618:32;23667:18;;129192:70:0::2;23540:151:1::0;129192:70:0::2;129301:6;::::0;129321:16:::2;::::0;129273:65:::2;::::0;-1:-1:-1;;;;;129301:6:0::2;::::0;129309:10:::2;::::0;129273:27:::2;:65::i;:::-;129377:6;::::0;129397:16:::2;::::0;129349:65:::2;::::0;-1:-1:-1;;;;;129377:6:0::2;::::0;129385:10:::2;::::0;129349:27:::2;:65::i;:::-;129444:1;129425:16;:20:::0;;;129456:16:::2;:20:::0;113113:5:::1;:20:::0;;-1:-1:-1;;;;113113:20:0::1;::::0;;129114:370::o;129526:325::-;113211:8;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;113086:4:::1;129666:7:::0;129657:25:::2;::::0;;-1:-1:-1;;;129657:25:0;;;;-1:-1:-1;;;;;129666:7:0;;::::2;::::0;129657:23:::2;::::0;:25:::2;::::0;;::::2;::::0;::::2;::::0;;;;;;;;;129666:7;129657:25;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;129643:39:0::2;:10;-1:-1:-1::0;;;;;129643:39:0::2;;129635:55;;;::::0;-1:-1:-1;;;129635:55:0;;23898:2:1;129635:55:0::2;::::0;::::2;23880:21:1::0;23937:1;23917:18;;;23910:29;-1:-1:-1;;;23955:18:1;;;23948:33;23998:18;;129635:55:0::2;23870:152:1::0;129635:55:0::2;129783:3;129760:19;:26;;;;129752:42;;;::::0;-1:-1:-1;;;129752:42:0;;25549:2:1;129752:42:0::2;::::0;::::2;25531:21:1::0;25588:1;25568:18;;;25561:29;-1:-1:-1;;;25606:18:1;;;25599:33;25649:18;;129752:42:0::2;25521:152:1::0;129752:42:0::2;129805:16;:38:::0;;::::2;::::0;;::::2;-1:-1:-1::0;;;129805:38:0::2;-1:-1:-1::0;;;;129805:38:0;;::::2;::::0;;;::::2;::::0;;113113:5:::1;:20:::0;;-1:-1:-1;;;;113113:20:0::1;::::0;;129526:325::o;116759:529::-;113211:8;;116916:21;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;116993:16:::2;::::0;117037:94:::2;::::0;113071:12:::1;::::0;;;-1:-1:-1;;;;;116993:16:0;;::::2;::::0;117037:94:::2;::::0;117104:5;;117111:7;;117120:10;;117037:94:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;117037:94:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;117037:94:0::2;-1:-1:-1::0;;;117037:94:0::2;::::0;;116993:149;::::2;::::0;117037:94;116993:149:::2;:::i;124254:683::-:0;113211:8;;124439:15;;;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;124517:13:::2;::::0;124558:118:::2;::::0;113071:12:::1;::::0;;;-1:-1:-1;;;;;124517:13:0;;::::2;::::0;124558:118:::2;::::0;124643:9;;124654:7;;124663:6;;124671:4;;;;124558:118:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;124558:118:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;124558:118:0::2;-1:-1:-1::0;;;124558:118:0::2;::::0;;124517:170;::::2;::::0;124558:118;124517:170:::2;:::i;118873:805::-:0;113211:8;;119059:14;;;;-1:-1:-1;;;;;113211:8:0;113202:4;113194:25;113186:34;;;;;;113040:5:::1;:12:::0;-1:-1:-1;;;113040:12:0;::::1;;;113039:13;113031:29;;;;-1:-1:-1::0;;;113031:29:0::1;;;;;;;:::i;:::-;113071:5;:19:::0;;-1:-1:-1;;;;113071:19:0::1;-1:-1:-1::0;;;113071:19:0::1;::::0;;119147:16:::2;::::0;119191:105:::2;::::0;113071:12:::1;::::0;;;-1:-1:-1;;;;;119147:16:0;;::::2;::::0;119191:105:::2;::::0;119264:9;;119275:5;;119282:7;;119291:4;;;;119191:105:::2;;;:::i;:::-;;::::0;;-1:-1:-1;;119191:105:0;;::::2;::::0;;;;;;::::2;::::0;::::2;::::0;;-1:-1:-1;;;;;119191:105:0::2;-1:-1:-1::0;;;;;;119191:105:0::2;::::0;;119147:160;::::2;::::0;119191:105;119147:160:::2;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;119114:193;;;;119322:7;119318:343;;;119346:17;119378::::0;119464:1:::2;119453:51;;;;;;;;;;;;:::i;:::-;119524:77;::::0;119410:94;;-1:-1:-1;119410:94:0;;-1:-1:-1;119410:94:0;-1:-1:-1;119410:94:0;-1:-1:-1;119524:77:0::2;::::0;;::::2;::::0;-1:-1:-1;;;;;119524:77:0;::::2;::::0;-1:-1:-1;;;;;;;;;;;119524:77:0;::::2;::::0;119410:94;;;;;;;;119596:4:::2;::::0;119524:77:::2;:::i;49901:2295::-:0;49959:20;49992:14;50017:1;50009:5;:9;;;:60;;50062:5;50055:13;;50009:60;;;50037:5;50030:13;;50029:14;;;:::i;:::-;49992:77;-1:-1:-1;49651:10:0;-1:-1:-1;;49651:10:0;:::i;:::-;50106:17;;50088:6;:36;;50080:50;;;;-1:-1:-1;;;50080:50:0;;24560:2:1;50080:50:0;;;24542:21:1;24599:1;24579:18;;;24572:29;-1:-1:-1;;;24617:18:1;;;24610:31;24658:18;;50080:50:0;24532:150:1;50080:50:0;50143:13;50168:3;50159:12;;:92;;-1:-1:-1;;;50159:92:0;;;50179:34;50159:92;-1:-1:-1;;;;;50143:108:0;;-1:-1:-1;50275:3:0;50266:12;;:17;50262:82;;50341:3;50294:42;:5;50302:34;50294:42;:::i;:::-;50293:51;;50285:59;;50262:82;50368:3;50359:12;;:17;50355:82;;50434:3;50387:42;:5;50395:34;50387:42;:::i;:::-;50386:51;;50378:59;;50355:82;50461:3;50452:12;;:17;50448:82;;50527:3;50480:42;:5;50488:34;50480:42;:::i;:::-;50479:51;;50471:59;;50448:82;50554:4;50545:13;;:18;50541:83;;50621:3;50574:42;:5;50582:34;50574:42;:::i;:::-;50573:51;;50565:59;;50541:83;50648:4;50639:13;;:18;50635:83;;50715:3;50668:42;:5;50676:34;50668:42;:::i;:::-;50667:51;;50659:59;;50635:83;50742:4;50733:13;;:18;50729:83;;50809:3;50762:42;:5;50770:34;50762:42;:::i;:::-;50761:51;;50753:59;;50729:83;50836:4;50827:13;;:18;50823:83;;50903:3;50856:42;:5;50864:34;50856:42;:::i;:::-;50855:51;;50847:59;;50823:83;50930:5;50921:14;;:19;50917:84;;50998:3;50951:42;:5;50959:34;50951:42;:::i;:::-;50950:51;;50942:59;;50917:84;51025:5;51016:14;;:19;51012:84;;51093:3;51046:42;:5;51054:34;51046:42;:::i;:::-;51045:51;;51037:59;;51012:84;51120:5;51111:14;;:19;51107:84;;51188:3;51141:42;:5;51149:34;51141:42;:::i;:::-;51140:51;;51132:59;;51107:84;51215:5;51206:14;;:19;51202:84;;51283:3;51236:42;:5;51244:34;51236:42;:::i;:::-;51235:51;;51227:59;;51202:84;51310:6;51301:15;;:20;51297:85;;51379:3;51332:42;:5;51340:34;51332:42;:::i;:::-;51331:51;;51323:59;;51297:85;51406:6;51397:15;;:20;51393:85;;51475:3;51428:42;:5;51436:34;51428:42;:::i;:::-;51427:51;;51419:59;;51393:85;51502:6;51493:15;;:20;51489:85;;51571:3;51524:42;:5;51532:34;51524:42;:::i;:::-;51523:51;;51515:59;;51489:85;51598:6;51589:15;;:20;51585:85;;51667:3;51620:42;:5;51628:34;51620:42;:::i;:::-;51619:51;;51611:59;;51585:85;51694:7;51685:16;;:21;51681:85;;51763:3;51717:41;:5;51725:33;51717:41;:::i;:::-;51716:50;;51708:58;;51681:85;51790:7;51781:16;;:21;51777:84;;51858:3;51813:40;:5;51821:32;51813:40;:::i;:::-;51812:49;;51804:57;;51777:84;51885:7;51876:16;;:21;51872:82;;51951:3;51908:38;:5;51916:30;51908:38;:::i;:::-;51907:47;;51899:55;;51872:82;51978:7;51969:16;;:21;51965:77;;52039:3;52001:33;:5;52009:25;52001:33;:::i;:::-;52000:42;;51992:50;;51965:77;52067:1;52059:5;:9;;;52055:48;;;52078:25;52098:5;-1:-1:-1;;52078:25:0;:::i;:::-;52070:33;;52055:48;52156:17;-1:-1:-1;;;52156:5:0;:17;:::i;:::-;:22;:30;;52185:1;52156:30;;;52181:1;52156:30;52139:48;;;;52149:2;52140:11;;;52139:48;:::i;:::-;52116:72;49901:2295;-1:-1:-1;;;;49901:2295:0:o;79673:307::-;79838:110;;;;;;;;;;;;;;-1:-1:-1;79838:110:0;;;;79932:4;79838:110;;;;;;;79828:120;;-1:-1:-1;;;;;;79828:120:0;;;;-1:-1:-1;;;79828:120:0;;;79932:4;79673:307;;;;;;:::o;115589:557::-;115658:4;:11;115673:2;115658:17;115654:213;;115710:2;115696:4;:11;:16;115692:34;;;115714:12;;-1:-1:-1;;;115714:12:0;;27533:2:1;115714:12:0;;;27515:21:1;27572:1;27552:18;;;27545:29;-1:-1:-1;;;27590:18:1;;;27583:32;27632:18;;115714:12:0;27505:151:1;115692:34:0;115787:4;115781;115777:15;115769:23;;115839:4;115828:26;;;;;;;;;;;;:::i;:::-;115821:34;;-1:-1:-1;;;115821:34:0;;;;;;;;:::i;115654:213::-;115918:4;115912;115908:15;115901:22;;115952:4;115946:11;115986:4;115980:11;116015:1;116012;116005:12;116057:4;116051;116047:15;116041:22;116031:32;;116098:2;116091:4;116088:1;116084:12;116077:24;116125:2;116122:1;116115:13;81664:381;81803:6;81841:1;81830:8;:12;;;81822:28;;;;-1:-1:-1;;;81822:28:0;;25218:2:1;81822:28:0;;;25200:21:1;25257:1;25237:18;;;25230:29;-1:-1:-1;;;25275:18:1;;;25268:33;25318:18;;81822:28:0;25190:152:1;81822:28:0;81891:8;81875:24;;:12;:24;;;81871:45;;-1:-1:-1;81908:8:0;81901:15;;81871:45;81953:8;81937:70;81967:12;81963:16;;:1;:16;;;81937:70;;;82006:1;81986:4;81991:1;81986:7;;;;;;;-1:-1:-1;;;81986:7:0;;;;;;;;;;:21;;-1:-1:-1;;81986:21:0;;;;;;;;;;;;81981:3;;;;:::i;:::-;;;;81937:70;;;-1:-1:-1;82025:12:0;;81664:381;-1:-1:-1;;;81664:381:0:o;88503:669::-;88742:24;88799:1;88788:8;:12;;;88780:26;;;;-1:-1:-1;;;88780:26:0;;24889:2:1;88780:26:0;;;24871:21:1;24928:1;24908:18;;;24901:29;-1:-1:-1;;;24946:18:1;;;24939:31;24987:18;;88780:26:0;24861:150:1;88780:26:0;88843:11;:18;-1:-1:-1;;;;;88831:31:0;;;;;-1:-1:-1;;;88831:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;88831:31:0;;88819:43;;88878:9;88873:292;88897:11;:18;88893:1;:22;88873:292;;;88952:201;88984:4;89007:9;89035:11;89047:1;89035:14;;;;;;-1:-1:-1;;;89035:14:0;;;;;;;;;;;;;;;89068:12;89099;89130:8;88952:13;:201::i;:::-;88937:9;88947:1;88937:12;;;;;;-1:-1:-1;;;88937:12:0;;;;;;;;;;;;;;:216;;;;;;;;;;;88917:3;;;;;:::i;:::-;;;;88873:292;;;;88503:669;;;;;;;;:::o;77338:355::-;77528:71;;;-1:-1:-1;;;;;17256:32:1;;;77528:71:0;;;17238:51:1;17305:18;;;;17298:34;;;77528:71:0;;;;;;;;;;17211:18:1;;;;77528:71:0;;;;;;;-1:-1:-1;;;;;77528:71:0;-1:-1:-1;;;77528:71:0;;;77513:87;;-1:-1:-1;;;;77513:14:0;;;;:87;;77528:71;77513:87;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77466:134;;;;77619:2;:58;;;;-1:-1:-1;77626:14:0;;:19;;:50;;;77660:7;77649:27;;;;;;;;;;;;:::i;:::-;77611:74;;;;-1:-1:-1;;;77611:74:0;;23237:2:1;77611:74:0;;;23219:21:1;23276:1;23256:18;;;23249:29;-1:-1:-1;;;23294:18:1;;;23287:33;23337:18;;77611:74:0;23209:152:1;77611:74:0;77338:355;;;;;:::o;86219:1466::-;86454:14;86486:15;;;86482:227;;86518:23;86544:4;86549:12;86544:18;;;;;;;-1:-1:-1;;;86544:18:0;;;;;;;;;86518:44;;;;;;;;86544:18;;;;86518:44;;;;;;;;-1:-1:-1;;;86518:44:0;;;;;;;;;;;;;;-1:-1:-1;;;86518:44:0;;;;;;;;;;;;;;;;-1:-1:-1;86581:27:0;;;;86577:85;;86617:45;86632:4;86638:9;86649:12;86617:14;:45::i;:::-;86610:52;;86577:85;86684:13;;;;-1:-1:-1;86677:20:0;;86482:227;86721:22;86746;86758:10;86746:9;:22;:::i;:::-;86721:47;;86782:33;86817:32;86866:97;86892:4;86898:9;86909:15;86926:12;86940;86954:8;86866:25;:97::i;:::-;86781:182;;;;86999:14;:24;;;86980:43;;:15;:43;;;86976:702;;;-1:-1:-1;87090:23:0;;;;-1:-1:-1;87083:30:0;;-1:-1:-1;87083:30:0;86976:702;87154:23;;87135:42;;;;;;;87131:547;;;87245:22;;;;-1:-1:-1;87238:29:0;;-1:-1:-1;;87238:29:0;87131:547;87390:24;;87364:23;;87336:25;;87364:50;;;:::i;:::-;87336:78;;;;87429:22;87472:14;:24;;;87454:15;:42;;;;:::i;:::-;87429:67;;;;87650:15;87622:18;87589:14;:23;;;87564:13;:22;;;:48;;;;:::i;:::-;87563:78;;;;:::i;:::-;:103;;;;:::i;:::-;87518:14;:23;;;:148;;;;:::i;:::-;87511:155;;;;;;;86219:1466;;;;;;;;;:::o;79228:437::-;79371:18;;:::i;:::-;79436:14;;79402:12;;79424:26;;:9;:26;:::i;:::-;79417:34;;79402:49;;79482:175;;;;;;;;79524:9;79482:175;;;;;;79606:5;79584:12;79578:19;;:34;;;;:::i;:::-;79562:4;:13;;;:50;;;;:::i;:::-;79482:175;;;;79637:4;79482:175;;;;;79462:195;79228:437;-1:-1:-1;;;;;79228:437:0:o;84641:1027::-;84892:33;;:::i;:::-;84927:32;;:::i;:::-;84989:4;84994:12;84989:18;;;;;;;-1:-1:-1;;;84989:18:0;;;;;;;;;84972:35;;;;;;;;84989:18;;;;84972:35;;;;;;;-1:-1:-1;;;84972:35:0;;;;;;;;;;;;;;-1:-1:-1;;;84972:35:0;;;;;;;;;;;;;;;-1:-1:-1;85024:57:0;;85028:9;;85065:15;85024:3;:57::i;:::-;85020:339;;;85130:15;85102:43;;:14;:24;;;:43;;;85098:250;;;-1:-1:-1;85174:14:0;85166:39;;85098:250;85254:14;85270:61;85285:14;85301:15;85318:12;85270:14;:61::i;:::-;85246:86;;;;;;85098:250;85388:4;85414:8;85394:16;:12;85409:1;85394:16;:::i;:::-;85393:29;;;;:::i;:::-;85388:35;;;;;;;-1:-1:-1;;;85388:35:0;;;;;;;;;85371:52;;;;;;;;85388:35;;;;85371:52;;;;;;-1:-1:-1;;;85371:52:0;;;;;;;;;;;;;;-1:-1:-1;;;85371:52:0;;;;;;;;;;;;;-1:-1:-1;85434:50:0;;85460:24;;;;;;;;;;;;;;;-1:-1:-1;;;85460:24:0;;;;;;;;;;;;;;-1:-1:-1;;;85460:24:0;;;;;;;;;;;;;;-1:-1:-1;85434:50:0;85505:57;85509:9;85520:14;:24;;;85546:15;85505:3;:57::i;:::-;85497:73;;;;-1:-1:-1;;;85497:73:0;;26211:2:1;85497:73:0;;;26193:21:1;26250:1;26230:18;;;26223:29;-1:-1:-1;;;26268:18:1;;;26261:33;26311:18;;85497:73:0;26183:152:1;85497:73:0;85590:70;85603:4;85609:9;85620:15;85637:12;85651:8;85590:12;:70::i;:::-;85583:77;;;;84641:1027;;;;;;;;;;:::o;82053:322::-;82155:4;82181;82176:9;;:1;:9;;;;:22;;;;;82194:4;82189:9;;:1;:9;;;;82176:22;82172:41;;;82212:1;82207:6;;:1;:6;;;;82200:13;;;;82172:41;82226:17;82250:4;82246:8;;:1;:8;;;:24;;82261:9;;;;-1:-1:-1;;;82261:9:0;:::i;:::-;82246:24;;;82257:1;82246:24;;;82226:44;;;;82281:17;82305:4;82301:8;;:1;:8;;;:24;;82316:9;;;;-1:-1:-1;;;82316:9:0;:::i;:::-;82301:24;;;82312:1;82301:24;;;82281:44;;82345:22;;;;;82053:322;-1:-1:-1;;;;;82053:322:0:o;82928:992::-;83135:33;;:::i;:::-;83170:32;;:::i;:::-;83215:9;83246:8;83228:14;:10;83241:1;83228:14;:::i;:::-;83227:27;;;;:::i;:::-;83215:39;;;;83287:9;83314:1;83303:8;83299:12;;:1;:12;;;;:::i;:::-;:16;;;;:::i;:::-;83287:28;;83348:9;83368:545;83410:1;83401:5;83405:1;83401;:5;:::i;:::-;83400:11;;;;:::i;:::-;83396:15;-1:-1:-1;83445:4:0;83450:12;;;;83396:15;83450:12;:::i;:::-;83445:18;;;;;-1:-1:-1;;;83445:18:0;;;;;;;;;83428:35;;;;;;;;83445:18;;;;83428:35;;;;;;-1:-1:-1;;;83428:35:0;;;;;;;;;;;;;;-1:-1:-1;;;83428:35:0;;;;;;;;;;;;;-1:-1:-1;83480:97:0;;83529:5;:1;83533;83529:5;:::i;:::-;83525:9;;83553:8;;83480:97;83609:4;83614:18;;;83615:5;:1;83619;83615:5;:::i;:::-;83614:18;;;;:::i;:::-;83609:24;;;;;-1:-1:-1;;;83609:24:0;;;;;;;;;83593:40;;;;;;;;83609:24;;;;83593:40;;;;;;-1:-1:-1;;;83593:40:0;;;;;;;;;;;;;;;-1:-1:-1;;;83593:40:0;;;;;;;;;;83685:24;;83593:40;;-1:-1:-1;;;83670:57:0;;83674:9;;83711:15;83670:3;:57::i;:::-;83650:77;;83748:12;:72;;;;;83764:56;83768:9;83779:15;83796:13;:23;;;83764:3;:56::i;:::-;83744:83;;;83822:5;;;83744:83;83849:12;83844:57;;83867:5;83871:1;83867;:5;:::i;:::-;83863:9;;83844:57;;;83896:5;:1;83900;83896:5;:::i;:::-;83892:9;;83844:57;83368:545;;;;82928:992;;;;;;;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:375:1:-;65:8;75:6;129:3;122:4;114:6;110:17;106:27;96:2;;154:8;144;137:26;96:2;-1:-1:-1;184:20:1;;-1:-1:-1;;;;;216:30:1;;213:2;;;266:8;256;249:26;213:2;310:4;302:6;298:17;286:29;;362:3;355:4;346:6;338;334:19;330:30;327:39;324:2;;;379:1;376;369:12;394:160;460:20;;520:1;509:20;;;499:31;;489:2;;544:1;541;534:12;489:2;441:113;;;:::o;559:261::-;629:6;682:2;670:9;661:7;657:23;653:32;650:2;;;703:6;695;688:22;650:2;740:9;734:16;759:31;784:5;759:31;:::i;825:847::-;927:6;935;943;951;959;967;1020:3;1008:9;999:7;995:23;991:33;988:2;;;1042:6;1034;1027:22;988:2;1086:9;1073:23;1105:31;1130:5;1105:31;:::i;:::-;1155:5;-1:-1:-1;1179:36:1;1211:2;1196:18;;1179:36;:::i;:::-;1169:46;;1234:36;1266:2;1255:9;1251:18;1234:36;:::i;:::-;1224:46;;1322:2;1311:9;1307:18;1294:32;1335:33;1360:7;1335:33;:::i;:::-;1387:7;-1:-1:-1;1445:3:1;1430:19;;1417:33;-1:-1:-1;;;;;1462:30:1;;1459:2;;;1510:6;1502;1495:22;1459:2;1554:58;1604:7;1595:6;1584:9;1580:22;1554:58;:::i;:::-;978:694;;;;-1:-1:-1;978:694:1;;-1:-1:-1;978:694:1;;1631:8;;978:694;-1:-1:-1;;;978:694:1:o;1677:535::-;1768:6;1776;1784;1792;1800;1853:3;1841:9;1832:7;1828:23;1824:33;1821:2;;;1875:6;1867;1860:22;1821:2;1919:9;1906:23;1938:31;1963:5;1938:31;:::i;:::-;1988:5;-1:-1:-1;2012:36:1;2044:2;2029:18;;2012:36;:::i;:::-;2002:46;;2067:36;2099:2;2088:9;2084:18;2067:36;:::i;:::-;1811:401;;;;-1:-1:-1;2057:46:1;;2150:2;2135:18;;2122:32;;-1:-1:-1;2201:3:1;2186:19;2173:33;;1811:401;-1:-1:-1;;1811:401:1:o;2217:776::-;2312:6;2320;2328;2336;2344;2397:3;2385:9;2376:7;2372:23;2368:33;2365:2;;;2419:6;2411;2404:22;2365:2;2463:9;2450:23;2482:31;2507:5;2482:31;:::i;:::-;2532:5;-1:-1:-1;2556:36:1;2588:2;2573:18;;2556:36;:::i;:::-;2546:46;;2644:2;2633:9;2629:18;2616:32;2657:33;2682:7;2657:33;:::i;:::-;2709:7;-1:-1:-1;2767:2:1;2752:18;;2739:32;-1:-1:-1;;;;;2783:30:1;;2780:2;;;2831:6;2823;2816:22;2780:2;2875:58;2925:7;2916:6;2905:9;2901:22;2875:58;:::i;:::-;2355:638;;;;-1:-1:-1;2355:638:1;;-1:-1:-1;2952:8:1;;2849:84;2355:638;-1:-1:-1;;;2355:638:1:o;2998:746::-;3088:6;3096;3104;3112;3120;3173:3;3161:9;3152:7;3148:23;3144:33;3141:2;;;3195:6;3187;3180:22;3141:2;3239:9;3226:23;3258:31;3283:5;3258:31;:::i;:::-;3308:5;-1:-1:-1;3332:36:1;3364:2;3349:18;;3332:36;:::i;:::-;3322:46;;3420:2;3409:9;3405:18;3392:32;3433:33;3458:7;3433:33;:::i;:::-;3485:7;-1:-1:-1;3544:2:1;3529:18;;3516:32;3557:33;3516:32;3557:33;:::i;:::-;3609:7;-1:-1:-1;3668:3:1;3653:19;;3640:33;3682:30;3640:33;3682:30;:::i;:::-;3731:7;3721:17;;;3131:613;;;;;;;;:::o;3749:776::-;3844:6;3852;3860;3868;3876;3929:3;3917:9;3908:7;3904:23;3900:33;3897:2;;;3951:6;3943;3936:22;3897:2;3995:9;3982:23;4014:31;4039:5;4014:31;:::i;:::-;4064:5;-1:-1:-1;4121:2:1;4106:18;;4093:32;4134:33;4093:32;4134:33;:::i;:::-;4186:7;-1:-1:-1;4212:36:1;4244:2;4229:18;;4212:36;:::i;4530:701::-;4627:6;4635;4643;4651;4659;4712:3;4700:9;4691:7;4687:23;4683:33;4680:2;;;4734:6;4726;4719:22;4680:2;4778:9;4765:23;4797:31;4822:5;4797:31;:::i;:::-;4847:5;-1:-1:-1;4899:2:1;4884:18;;4871:32;;-1:-1:-1;4950:2:1;4935:18;;4922:32;;-1:-1:-1;5005:2:1;4990:18;;4977:32;-1:-1:-1;;;;;5021:30:1;;5018:2;;;5069:6;5061;5054:22;5236:664;5321:6;5329;5382:2;5370:9;5361:7;5357:23;5353:32;5350:2;;;5403:6;5395;5388:22;5350:2;5435:23;;-1:-1:-1;;;;;5507:14:1;;;5504:2;;;5539:6;5531;5524:22;5504:2;5582:6;5571:9;5567:22;5557:32;;5627:7;5620:4;5616:2;5612:13;5608:27;5598:2;;5654:6;5646;5639:22;5598:2;5699;5686:16;5725:2;5717:6;5714:14;5711:2;;;5746:6;5738;5731:22;5711:2;5804:7;5799:2;5789:6;5786:1;5782:14;5778:2;5774:23;5770:32;5767:45;5764:2;;;5830:6;5822;5815:22;5764:2;5866;5858:11;;;;;5888:6;;-1:-1:-1;5340:560:1;;-1:-1:-1;;;;5340:560:1:o;5905:255::-;5972:6;6025:2;6013:9;6004:7;6000:23;5996:32;5993:2;;;6046:6;6038;6031:22;5993:2;6083:9;6077:16;6102:28;6124:5;6102:28;:::i;6165:190::-;6224:6;6277:2;6265:9;6256:7;6252:23;6248:32;6245:2;;;6298:6;6290;6283:22;6245:2;-1:-1:-1;6326:23:1;;6235:120;-1:-1:-1;6235:120:1:o;6360:293::-;6417:6;6470:2;6458:9;6449:7;6445:23;6441:32;6438:2;;;6491:6;6483;6476:22;6438:2;6535:9;6522:23;6588:5;6585:1;6574:20;6567:5;6564:31;6554:2;;6614:6;6606;6599:22;6658:192;6715:6;6768:2;6756:9;6747:7;6743:23;6739:32;6736:2;;;6789:6;6781;6774:22;6736:2;6817:27;6834:9;6817:27;:::i;6855:262::-;6919:6;6927;6980:2;6968:9;6959:7;6955:23;6951:32;6948:2;;;7001:6;6993;6986:22;6948:2;7029:27;7046:9;7029:27;:::i;:::-;7019:37;;7075:36;7107:2;7096:9;7092:18;7075:36;:::i;:::-;7065:46;;6938:179;;;;;:::o;7122:397::-;7195:6;7203;7211;7264:2;7252:9;7243:7;7239:23;7235:32;7232:2;;;7285:6;7277;7270:22;7232:2;7313:27;7330:9;7313:27;:::i;:::-;7303:37;;7359:36;7391:2;7380:9;7376:18;7359:36;:::i;:::-;7349:46;;7445:2;7434:9;7430:18;7417:32;7458:31;7483:5;7458:31;:::i;:::-;7508:5;7498:15;;;7222:297;;;;;:::o;7524:327::-;7590:6;7598;7651:2;7639:9;7630:7;7626:23;7622:32;7619:2;;;7672:6;7664;7657:22;7619:2;7700:27;7717:9;7700:27;:::i;:::-;7690:37;;7777:2;7766:9;7762:18;7749:32;7790:31;7815:5;7790:31;:::i;:::-;7840:5;7830:15;;;7609:242;;;;;:::o;7856:462::-;7928:6;7936;7944;7997:2;7985:9;7976:7;7972:23;7968:32;7965:2;;;8018:6;8010;8003:22;7965:2;8046:27;8063:9;8046:27;:::i;:::-;8036:37;;8123:2;8112:9;8108:18;8095:32;8136:31;8161:5;8136:31;:::i;:::-;8186:5;-1:-1:-1;8243:2:1;8228:18;;8215:32;8256:30;8215:32;8256:30;:::i;8323:924::-;8403:6;8456:2;8444:9;8435:7;8431:23;8427:32;8424:2;;;8477:6;8469;8462:22;8424:2;8509:16;;-1:-1:-1;;;;;8574:14:1;;;8571:2;;;8606:6;8598;8591:22;8571:2;8649:6;8638:9;8634:22;8624:32;;8694:7;8687:4;8683:2;8679:13;8675:27;8665:2;;8721:6;8713;8706:22;8665:2;8755;8749:9;8777:2;8773;8770:10;8767:2;;;8783:18;;:::i;:::-;8858:2;8852:9;8826:2;8912:13;;-1:-1:-1;;8908:22:1;;;8932:2;8904:31;8900:40;8888:53;;;8956:18;;;8976:22;;;8953:46;8950:2;;;9002:18;;:::i;:::-;9042:10;9038:2;9031:22;9077:2;9069:6;9062:18;9117:7;9112:2;9107;9103;9099:11;9095:20;9092:33;9089:2;;;9143:6;9135;9128:22;9089:2;9161:55;9213:2;9208;9200:6;9196:15;9191:2;9187;9183:11;9161:55;:::i;:::-;9235:6;8414:833;-1:-1:-1;;;;;;;8414:833:1:o;9252:261::-;9322:6;9375:2;9363:9;9354:7;9350:23;9346:32;9343:2;;;9396:6;9388;9381:22;9343:2;9433:9;9427:16;9452:31;9477:5;9452:31;:::i;9518:395::-;9597:6;9605;9658:2;9646:9;9637:7;9633:23;9629:32;9626:2;;;9679:6;9671;9664:22;9626:2;9716:9;9710:16;9735:31;9760:5;9735:31;:::i;:::-;9835:2;9820:18;;9814:25;9785:5;;-1:-1:-1;9848:33:1;9814:25;9848:33;:::i;9918:664::-;10015:6;10023;10031;10039;10092:3;10080:9;10071:7;10067:23;10063:33;10060:2;;;10114:6;10106;10099:22;10060:2;10151:9;10145:16;10170:31;10195:5;10170:31;:::i;:::-;10270:2;10255:18;;10249:25;10220:5;;-1:-1:-1;10283:33:1;10249:25;10283:33;:::i;:::-;10387:2;10372:18;;10366:25;10335:7;;-1:-1:-1;10400:33:1;10366:25;10400:33;:::i;:::-;10504:2;10489:18;;10483:25;10452:7;;-1:-1:-1;10517:33:1;10483:25;10517:33;:::i;:::-;10050:532;;;;-1:-1:-1;10050:532:1;;-1:-1:-1;;10050:532:1:o;10587:591::-;10684:6;10692;10700;10708;10761:3;10749:9;10740:7;10736:23;10732:33;10729:2;;;10783:6;10775;10768:22;10729:2;10820:9;10814:16;10839:31;10864:5;10839:31;:::i;:::-;10934:2;10919:18;;10913:25;10983:2;10968:18;;10962:25;10889:5;;-1:-1:-1;10913:25:1;-1:-1:-1;10996:33:1;10962:25;10996:33;:::i;11183:292::-;11241:6;11294:2;11282:9;11273:7;11269:23;11265:32;11262:2;;;11315:6;11307;11300:22;11262:2;11359:9;11346:23;11409:6;11402:5;11398:18;11391:5;11388:29;11378:2;;11436:6;11428;11421:22;11480:294;11538:6;11591:2;11579:9;11570:7;11566:23;11562:32;11559:2;;;11612:6;11604;11597:22;11559:2;11656:9;11643:23;11706:8;11699:5;11695:20;11688:5;11685:31;11675:2;;11735:6;11727;11720:22;11974:255;12053:6;12061;12114:2;12102:9;12093:7;12089:23;12085:32;12082:2;;;12135:6;12127;12120:22;12082:2;-1:-1:-1;;12163:16:1;;12219:2;12204:18;;;12198:25;12163:16;;12198:25;;-1:-1:-1;12072:157:1:o;12234:378::-;12331:6;12339;12347;12355;12408:3;12396:9;12387:7;12383:23;12379:33;12376:2;;;12430:6;12422;12415:22;12376:2;-1:-1:-1;;12458:16:1;;12514:2;12499:18;;12493:25;12558:2;12543:18;;12537:25;12602:2;12587:18;;;12581:25;12458:16;;12493:25;;-1:-1:-1;12581:25:1;;-1:-1:-1;12366:246:1;-1:-1:-1;12366:246:1:o;12617:268::-;12705:6;12700:3;12693:19;12757:6;12750:5;12743:4;12738:3;12734:14;12721:43;-1:-1:-1;12675:3:1;12784:16;;;12802:4;12780:27;;;12773:40;;;;12867:2;12846:15;;;-1:-1:-1;;12842:29:1;12833:39;;;12829:50;;12683:202::o;12890:274::-;13019:3;13057:6;13051:13;13073:53;13119:6;13114:3;13107:4;13099:6;13095:17;13073:53;:::i;:::-;13142:16;;;;;13027:137;-1:-1:-1;;13027:137:1:o;13377:605::-;-1:-1:-1;;;;;13638:32:1;;13620:51;;13718:1;13707:21;;;13702:2;13687:18;;13680:49;13765:21;;;13760:2;13745:18;;13738:49;-1:-1:-1;;;;;13823:32:1;;13818:2;13803:18;;13796:60;13658:3;13843;13872:19;;13865:32;;;-1:-1:-1;;13914:62:1;;13956:19;;13948:6;13940;13914:62;:::i;:::-;13906:70;13610:372;-1:-1:-1;;;;;;;;13610:372:1:o;14503:522::-;-1:-1:-1;;;;;14740:32:1;;14722:51;;14820:1;14809:21;;;14804:2;14789:18;;14782:49;-1:-1:-1;;;;;14867:32:1;;14862:2;14847:18;;14840:60;14887:3;14931:2;14916:18;;14909:31;;;-1:-1:-1;;14957:62:1;;14999:19;;14991:6;14983;14957:62;:::i;15601:522::-;-1:-1:-1;;;;;15838:32:1;;15820:51;;-1:-1:-1;;;;;15907:32:1;;15902:2;15887:18;;15880:60;15987:1;15976:21;;;15971:2;15956:18;;15949:49;15927:3;16029:2;16014:18;;16007:31;;;-1:-1:-1;;16055:62:1;;16097:19;;16089:6;16081;16055:62;:::i;17693:485::-;17963:1;17959;17954:3;17950:11;17946:19;17938:6;17934:32;17923:9;17916:51;18003:6;17998:2;17987:9;17983:18;17976:34;18046:6;18041:2;18030:9;18026:18;18019:34;18089:3;18084:2;18073:9;18069:18;18062:31;17897:4;18110:62;18167:3;18156:9;18152:19;18144:6;18136;18110:62;:::i;18183:649::-;18352:2;18404:21;;;18474:13;;18377:18;;;18496:22;;;18323:4;;18352:2;18575:15;;;;18549:2;18534:18;;;18323:4;18621:185;18635:6;18632:1;18629:13;18621:185;;;18711:13;;18707:2;18696:29;18684:42;;18781:15;;;;18746:12;;;;18657:1;18650:9;18621:185;;;-1:-1:-1;18823:3:1;;18332:500;-1:-1:-1;;;;;;18332:500:1:o;18837:646::-;19004:2;19056:21;;;19126:13;;19029:18;;;19148:22;;;18975:4;;19004:2;19227:15;;;;19201:2;19186:18;;;18975:4;19273:184;19287:6;19284:1;19281:13;19273:184;;;19362:13;;19359:1;19348:28;19336:41;;19432:15;;;;19397:12;;;;19309:1;19302:9;19273:184;;19488:1180;19725:2;19777:21;;;19847:13;;19750:18;;;19869:22;;;19696:4;;19725:2;19910;;19928:18;;;;19969:15;;;19696:4;20015:627;20029:6;20026:1;20023:13;20015:627;;;20088:13;;20172:9;;-1:-1:-1;;;;;20168:18:1;;;20156:31;;20231:11;;;20225:18;20221:27;;20207:12;;;20200:49;20289:11;;;20283:18;20269:12;;;20262:40;20325:4;20373:11;;;20367:18;20363:27;;20349:12;;;20342:49;20132:3;20462:11;;;20456:18;20452:27;;;20438:12;;;20431:49;20503:4;20547:11;;;20541:18;20527:12;;;20520:40;20589:4;20580:14;;;;20617:15;;;;20141:1;20044:9;20015:627;;;-1:-1:-1;20659:3:1;;19705:963;-1:-1:-1;;;;;;;19705:963:1:o;20673:412::-;20919:14;;20912:22;20894:41;;20966:2;20951:18;;20944:34;;;;21009:2;20994:18;;20987:34;21068:1;21057:21;21052:2;21037:18;;21030:49;20881:3;20866:19;;20848:237::o;21655:285::-;21854:1;21843:21;;;;21825:40;;-1:-1:-1;;;;;21901:32:1;21896:2;21881:18;;21874:60;21813:2;21798:18;;21780:160::o;21945:366::-;22166:1;22155:21;;;;22137:40;;-1:-1:-1;;;;;22213:32:1;;;;22208:2;22193:18;;22186:60;22289:14;22282:22;22277:2;22262:18;;22255:50;22125:2;22110:18;;22092:219::o;22316:383::-;22465:2;22454:9;22447:21;22428:4;22497:6;22491:13;22540:6;22535:2;22524:9;22520:18;22513:34;22556:66;22615:6;22610:2;22599:9;22595:18;22590:2;22582:6;22578:15;22556:66;:::i;:::-;22683:2;22662:15;-1:-1:-1;;22658:29:1;22643:45;;;;22690:2;22639:54;;22437:262;-1:-1:-1;;22437:262:1:o;22704:326::-;22906:2;22888:21;;;22945:1;22925:18;;;22918:29;-1:-1:-1;;;22978:2:1;22963:18;;22956:33;23021:2;23006:18;;22878:152::o;24027:326::-;24229:2;24211:21;;;24268:1;24248:18;;;24241:29;-1:-1:-1;;;24301:2:1;24286:18;;24279:33;24344:2;24329:18;;24201:152::o;25678:326::-;25880:2;25862:21;;;25919:1;25899:18;;;25892:29;-1:-1:-1;;;25952:2:1;25937:18;;25930:33;25995:2;25980:18;;25852:152::o;26340:325::-;26542:2;26524:21;;;26581:1;26561:18;;;26554:29;-1:-1:-1;;;26614:2:1;26599:18;;26592:32;26656:2;26641:18;;26514:151::o;26670:325::-;26872:2;26854:21;;;26911:1;26891:18;;;26884:29;-1:-1:-1;;;26944:2:1;26929:18;;26922:32;26986:2;26971:18;;26844:151::o;27000:326::-;27202:2;27184:21;;;27241:1;27221:18;;;27214:29;-1:-1:-1;;;27274:2:1;27259:18;;27252:33;27317:2;27302:18;;27174:152::o;28696:466::-;-1:-1:-1;;;;;28977:15:1;;;28959:34;;29029:15;;;29024:2;29009:18;;29002:43;29081:15;;29076:2;29061:18;;29054:43;29140:14;;29133:22;29128:2;29113:18;;29106:50;28908:3;28893:19;;28875:287::o;29167:547::-;-1:-1:-1;;;;;29476:15:1;;;29458:34;;29528:15;;;29523:2;29508:18;;29501:43;29580:15;;;29575:2;29560:18;;29553:43;29632:15;;;29627:2;29612:18;;29605:43;29692:14;;29685:22;29438:3;29664:19;;29657:51;29407:3;29392:19;;29374:340::o;34812:342::-;34850:3;34893:1;34890;34879:16;34929:1;34926;34915:16;34959:3;34954;34950:13;35014:3;35004:8;35000:18;34995:3;34991:28;34986:2;34979:10;34975:45;34972:2;;;35023:18;;:::i;:::-;35090:3;35080:7;35076:12;35072:22;35067:3;35063:32;35059:2;35055:41;35052:2;;;35099:18;;:::i;:::-;-1:-1:-1;35135:13:1;;34858:296;-1:-1:-1;;;34858:296:1:o;35159:359::-;35197:3;35240:1;35237;35226:16;35276:1;35273;35262:16;35306:3;35301;35297:13;35369:3;35351:16;35347:26;35342:3;35338:36;35333:2;35326:10;35322:53;35319:2;;;35378:18;;:::i;:::-;35454:3;35435:16;35431:21;35427:31;35422:3;35418:41;35414:2;35410:50;35407:2;;;35463:18;;:::i;35523:224::-;35562:3;35590:6;35623:2;35620:1;35616:10;35653:2;35650:1;35646:10;35684:3;35680:2;35676:12;35671:3;35668:21;35665:2;;;35692:18;;:::i;:::-;35728:13;;35570:177;-1:-1:-1;;;;35570:177:1:o;35752:128::-;35792:3;35823:1;35819:6;35816:1;35813:13;35810:2;;;35829:18;;:::i;:::-;-1:-1:-1;35865:9:1;;35800:80::o;35885:230::-;35924:3;35952:12;35991:2;35988:1;35984:10;36021:2;36018:1;36014:10;36052:3;36048:2;36044:12;36039:3;36036:21;36033:2;;;36060:18;;:::i;36120:275::-;36158:1;36199;36196;36185:16;36235:1;36232;36221:16;36256:3;36246:2;;36263:18;;:::i;:::-;-1:-1:-1;;36299:21:1;;-1:-1:-1;;36322:15:1;;36295:43;36292:2;;;36341:18;;:::i;:::-;36375:14;;;36164:231;-1:-1:-1;;;36164:231:1:o;36400:284::-;36438:1;36479;36476;36465:16;36515:1;36512;36501:16;36536:3;36526:2;;36543:18;;:::i;:::-;-1:-1:-1;;36579:30:1;;-1:-1:-1;;36611:15:1;;36575:52;36572:2;;;36630:18;;:::i;36689:120::-;36729:1;36755;36745:2;;36760:18;;:::i;:::-;-1:-1:-1;36794:9:1;;36735:74::o;36814:683::-;36852:7;36899:1;36896;36885:16;36935:1;36932;36921:16;36956;37000:7;36995:3;36991:17;37036:7;37031:3;37027:17;37089:3;37085:2;37081:12;37076:3;37073:21;37068:2;37064;37060:11;37056:39;37053:2;;;37098:18;;:::i;:::-;-1:-1:-1;;37177:17:1;;;37210:11;;;37232:13;;;37223:23;;37206:41;37203:2;;;37250:18;;:::i;:::-;37298:7;37293:3;37289:17;37279:27;;37353:3;37349:2;37344:13;37339:3;37335:23;37330:2;37326;37322:11;37318:41;37315:2;;;37362:18;;:::i;:::-;37429:3;37425:2;37420:13;37415:3;37411:23;37406:2;37402;37398:11;37394:41;37391:2;;;37438:18;;:::i;:::-;-1:-1:-1;;;37478:13:1;;;;;36864:633;-1:-1:-1;;;;;36864:633:1:o;37502:168::-;37542:7;37608:1;37604;37600:6;37596:14;37593:1;37590:21;37585:1;37578:9;37571:17;37567:45;37564:2;;;37615:18;;:::i;:::-;-1:-1:-1;37655:9:1;;37554:116::o;37675:345::-;37713:4;37757:1;37754;37743:16;37793:1;37790;37779:16;37823:4;37818:3;37814:14;37883:3;37873:7;37869:12;37865:22;37860:3;37856:32;37851:2;37844:10;37840:49;37837:2;;;37892:18;;:::i;:::-;37955:3;37945:8;37941:18;37936:3;37932:28;37928:2;37924:37;37921:2;;;37964:18;;:::i;:::-;-1:-1:-1;38001:13:1;;;37722:298;-1:-1:-1;;;37722:298:1:o;38025:362::-;38063:4;38107:1;38104;38093:16;38143:1;38140;38129:16;38173:4;38168:3;38164:14;38242:3;38223:16;38219:21;38215:31;38210:3;38206:41;38201:2;38194:10;38190:58;38187:2;;;38251:18;;:::i;:::-;38322:3;38304:16;38300:26;38295:3;38291:36;38287:2;38283:45;38280:2;;;38331:18;;:::i;38392:125::-;38432:4;38460:1;38457;38454:8;38451:2;;;38465:18;;:::i;:::-;-1:-1:-1;38502:9:1;;38441:76::o;38522:221::-;38561:4;38590:10;38650;;;;38620;;38672:12;;;38669:2;;;38687:18;;:::i;:::-;38724:13;;38570:173;-1:-1:-1;;;38570:173:1:o;38748:258::-;38820:1;38830:113;38844:6;38841:1;38838:13;38830:113;;;38920:11;;;38914:18;38901:11;;;38894:39;38866:2;38859:10;38830:113;;;38961:6;38958:1;38955:13;38952:2;;;38996:1;38987:6;38982:3;38978:16;38971:27;38952:2;;38801:205;;;:::o;39011:197::-;39049:3;39077:6;39118:2;39111:5;39107:14;39145:2;39136:7;39133:15;39130:2;;;39151:18;;:::i;:::-;39200:1;39187:15;;39057:151;-1:-1:-1;;;39057:151:1:o;39213:135::-;39252:3;-1:-1:-1;;39273:17:1;;39270:2;;;39293:18;;:::i;:::-;-1:-1:-1;39340:1:1;39329:13;;39260:88::o;39353:166::-;39383:1;39424;39421;39410:16;39445:3;39435:2;;39452:18;;:::i;:::-;39509:3;39505:1;39502;39491:16;39486:27;39481:32;;;39389:130;;;;:::o;39524:179::-;39555:1;39581:6;39614:2;39611:1;39607:10;39636:3;39626:2;;39643:18;;:::i;:::-;39681:10;;39677:20;;;;;39561:142;-1:-1:-1;;39561:142:1:o;39708:112::-;39740:1;39766;39756:2;;39771:18;;:::i;:::-;-1:-1:-1;39805:9:1;;39746:74::o;39825:186::-;39859:3;39906:5;39903:1;39892:20;39940:7;39936:12;39927:7;39924:25;39921:2;;;39952:18;;:::i;:::-;39988:17;;;39867:144;-1:-1:-1;39867:144:1:o;40016:138::-;40051:3;-1:-1:-1;;;40072:22:1;;40069:2;;;40097:18;;:::i;:::-;40133:15;;40059:95::o;40159:127::-;40220:10;40215:3;40211:20;40208:1;40201:31;40251:4;40248:1;40241:15;40275:4;40272:1;40265:15;40291:127;40352:10;40347:3;40343:20;40340:1;40333:31;40383:4;40380:1;40373:15;40407:4;40404:1;40397:15;40423:127;40484:10;40479:3;40475:20;40472:1;40465:31;40515:4;40512:1;40505:15;40539:4;40536:1;40529:15;40555:131;-1:-1:-1;;;;;40630:31:1;;40620:42;;40610:2;;40676:1;40673;40666:12;40610:2;40600:86;:::o;40691:118::-;40777:5;40770:13;40763:21;40756:5;40753:32;40743:2;;40799:1;40796;40789:12;40814:131;-1:-1:-1;;;;;40889:31:1;;40879:42;;40869:2;;40935:1;40932;40925:12

Swarm Source

ipfs://336d80b132feef86c529f37d3371b115ca9f1c5a659c38276dc7fea0925be6ab

Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.