ETH Price: $2,613.48 (-0.44%)

Token

ERC20 ***
 

Overview

Max Total Supply

1,146,028.994960227096694705 ERC20 ***

Holders

100

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
lunas.eth
Balance
1.042472447356198035 ERC20 ***

Value
$0.00
0x2231bec9c6479e4ce9c6aa5e7b997584523987cf
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

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

Contract Name:
AmplElasticCRP

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
istanbul EvmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-09-15
*/

// @AmpelforthOrg + @BalancerLabs => Elastic smart pool  

pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

// File: configurable-rights-pool/contracts/IBFactory.sol

interface IBPool {
    function rebind(address token, uint balance, uint denorm) external;
    function setSwapFee(uint swapFee) external;
    function setPublicSwap(bool publicSwap) external;
    function bind(address token, uint balance, uint denorm) external;
    function unbind(address token) external;
    function gulp(address token) external;
    function isBound(address token) external view returns(bool);
    function getBalance(address token) external view returns (uint);
    function totalSupply() external view returns (uint);
    function getSwapFee() external view returns (uint);
    function isPublicSwap() external view returns (bool);
    function getDenormalizedWeight(address token) external view returns (uint);
    function getTotalDenormalizedWeight() external view returns (uint);
    // solhint-disable-next-line func-name-mixedcase
    function EXIT_FEE() external view returns (uint);

    function calcPoolOutGivenSingleIn(
        uint tokenBalanceIn,
        uint tokenWeightIn,
        uint poolSupply,
        uint totalWeight,
        uint tokenAmountIn,
        uint swapFee
    )
        external pure
        returns (uint poolAmountOut);

    function calcSingleInGivenPoolOut(
        uint tokenBalanceIn,
        uint tokenWeightIn,
        uint poolSupply,
        uint totalWeight,
        uint poolAmountOut,
        uint swapFee
    )
        external pure
        returns (uint tokenAmountIn);

    function calcSingleOutGivenPoolIn(
        uint tokenBalanceOut,
        uint tokenWeightOut,
        uint poolSupply,
        uint totalWeight,
        uint poolAmountIn,
        uint swapFee
    )
        external pure
        returns (uint tokenAmountOut);

    function calcPoolInGivenSingleOut(
        uint tokenBalanceOut,
        uint tokenWeightOut,
        uint poolSupply,
        uint totalWeight,
        uint tokenAmountOut,
        uint swapFee
    )
        external pure
        returns (uint poolAmountIn);

    function getCurrentTokens()
        external view
        returns (address[] memory tokens);
}

interface IBFactory {
    function newBPool() external returns (IBPool);
    function setBLabs(address b) external;
    function collect(IBPool pool) external;
    function isBPool(address b) external view returns (bool);
    function getBLabs() external view returns (address);
}

// File: configurable-rights-pool/libraries/BalancerConstants.sol



/**
 * @author Balancer Labs
 * @title Put all the constants in one place
 */

library BalancerConstants {
    // State variables (must be constant in a library)

    // B "ONE" - all math is in the "realm" of 10 ** 18;
    // where numeric 1 = 10 ** 18
    uint public constant BONE = 10**18;
    uint public constant MIN_WEIGHT = BONE;
    uint public constant MAX_WEIGHT = BONE * 50;
    uint public constant MAX_TOTAL_WEIGHT = BONE * 50;
    uint public constant MIN_BALANCE = BONE / 10**6;
    uint public constant MAX_BALANCE = BONE * 10**12;
    uint public constant MIN_POOL_SUPPLY = BONE * 100;
    uint public constant MAX_POOL_SUPPLY = BONE * 10**9;
    uint public constant MIN_FEE = BONE / 10**6;
    uint public constant MAX_FEE = BONE / 10;
    // EXIT_FEE must always be zero, or ConfigurableRightsPool._pushUnderlying will fail
    uint public constant EXIT_FEE = 0;
    uint public constant MAX_IN_RATIO = BONE / 2;
    uint public constant MAX_OUT_RATIO = (BONE / 3) + 1 wei;
    // Must match BConst.MIN_BOUND_TOKENS and BConst.MAX_BOUND_TOKENS
    uint public constant MIN_ASSET_LIMIT = 2;
    uint public constant MAX_ASSET_LIMIT = 8;
    uint public constant MAX_UINT = uint(-1);
}

// File: configurable-rights-pool/libraries/BalancerSafeMath.sol




// Imports


/**
 * @author Balancer Labs
 * @title SafeMath - wrap Solidity operators to prevent underflow/overflow
 * @dev badd and bsub are basically identical to OpenZeppelin SafeMath; mul/div have extra checks
 */
library BalancerSafeMath {
    /**
     * @notice Safe addition
     * @param a - first operand
     * @param b - second operand
     * @dev if we are adding b to a, the resulting sum must be greater than a
     * @return - sum of operands; throws if overflow
     */
    function badd(uint a, uint b) internal pure returns (uint) {
        uint c = a + b;
        require(c >= a, "ERR_ADD_OVERFLOW");
        return c;
    }

    /**
     * @notice Safe unsigned subtraction
     * @param a - first operand
     * @param b - second operand
     * @dev Do a signed subtraction, and check that it produces a positive value
     *      (i.e., a - b is valid if b <= a)
     * @return - a - b; throws if underflow
     */
    function bsub(uint a, uint b) internal pure returns (uint) {
        (uint c, bool negativeResult) = bsubSign(a, b);
        require(!negativeResult, "ERR_SUB_UNDERFLOW");
        return c;
    }

    /**
     * @notice Safe signed subtraction
     * @param a - first operand
     * @param b - second operand
     * @dev Do a signed subtraction
     * @return - difference between a and b, and a flag indicating a negative result
     *           (i.e., a - b if a is greater than or equal to b; otherwise b - a)
     */
    function bsubSign(uint a, uint b) internal pure returns (uint, bool) {
        if (b <= a) {
            return (a - b, false);
        } else {
            return (b - a, true);
        }
    }

    /**
     * @notice Safe multiplication
     * @param a - first operand
     * @param b - second operand
     * @dev Multiply safely (and efficiently), rounding down
     * @return - product of operands; throws if overflow or rounding error
     */
    function bmul(uint a, uint b) internal pure returns (uint) {
        // Gas optimization (see github.com/OpenZeppelin/openzeppelin-contracts/pull/522)
        if (a == 0) {
            return 0;
        }

        // Standard overflow check: a/a*b=b
        uint c0 = a * b;
        require(c0 / a == b, "ERR_MUL_OVERFLOW");

        // Round to 0 if x*y < BONE/2?
        uint c1 = c0 + (BalancerConstants.BONE / 2);
        require(c1 >= c0, "ERR_MUL_OVERFLOW");
        uint c2 = c1 / BalancerConstants.BONE;
        return c2;
    }

    /**
     * @notice Safe division
     * @param dividend - first operand
     * @param divisor - second operand
     * @dev Divide safely (and efficiently), rounding down
     * @return - quotient; throws if overflow or rounding error
     */
    function bdiv(uint dividend, uint divisor) internal pure returns (uint) {
        require(divisor != 0, "ERR_DIV_ZERO");

        // Gas optimization
        if (dividend == 0){
            return 0;
        }

        uint c0 = dividend * BalancerConstants.BONE;
        require(c0 / dividend == BalancerConstants.BONE, "ERR_DIV_INTERNAL"); // bmul overflow

        uint c1 = c0 + (divisor / 2);
        require(c1 >= c0, "ERR_DIV_INTERNAL"); //  badd require

        uint c2 = c1 / divisor;
        return c2;
    }

    /**
     * @notice Safe unsigned integer modulo
     * @dev Returns the remainder of dividing two unsigned integers.
     *      Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * @param dividend - first operand
     * @param divisor - second operand -- cannot be zero
     * @return - quotient; throws if overflow or rounding error
     */
    function bmod(uint dividend, uint divisor) internal pure returns (uint) {
        require(divisor != 0, "ERR_MODULO_BY_ZERO");

        return dividend % divisor;
    }

    /**
     * @notice Safe unsigned integer max
     * @dev Returns the greater of the two input values
     *
     * @param a - first operand
     * @param b - second operand
     * @return - the maximum of a and b
     */
    function bmax(uint a, uint b) internal pure returns (uint) {
        return a >= b ? a : b;
    }

    /**
     * @notice Safe unsigned integer min
     * @dev returns b, if b < a; otherwise returns a
     *
     * @param a - first operand
     * @param b - second operand
     * @return - the lesser of the two input values
     */
    function bmin(uint a, uint b) internal pure returns (uint) {
        return a < b ? a : b;
    }

    /**
     * @notice Safe unsigned integer average
     * @dev Guard against (a+b) overflow by dividing each operand separately
     *
     * @param a - first operand
     * @param b - second operand
     * @return - the average of the two values
     */
    function baverage(uint a, uint b) internal pure returns (uint) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }

    /**
     * @notice Babylonian square root implementation
     * @dev (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
     * @param y - operand
     * @return z - the square root result
     */
    function sqrt(uint y) internal pure returns (uint z) {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        }
        else if (y != 0) {
            z = 1;
        }
    }
}

// File: configurable-rights-pool/interfaces/IERC20.sol



// Interface declarations

/* solhint-disable func-order */

interface IERC20 {
    // Emitted when the allowance of a spender for an owner is set by a call to approve.
    // Value is the new allowance
    event Approval(address indexed owner, address indexed spender, uint value);

    // Emitted when value tokens are moved from one account (from) to another (to).
    // Note that value may be zero
    event Transfer(address indexed from, address indexed to, uint value);

    // Returns the amount of tokens in existence
    function totalSupply() external view returns (uint);

    // Returns the amount of tokens owned by account
    function balanceOf(address account) external view returns (uint);

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

    // Sets amount as the allowance of spender over the caller’s tokens
    // Returns a boolean value indicating whether the operation succeeded
    // Emits an Approval event.
    function approve(address spender, uint amount) external returns (bool);

    // Moves amount tokens from the caller’s account to recipient
    // Returns a boolean value indicating whether the operation succeeded
    // Emits a Transfer event.
    function transfer(address recipient, uint amount) external returns (bool);

    // Moves amount tokens from sender to recipient using the allowance mechanism
    // Amount is then deducted from the caller’s allowance
    // Returns a boolean value indicating whether the operation succeeded
    // Emits a Transfer event
    function transferFrom(address sender, address recipient, uint amount) external returns (bool);
}

// File: configurable-rights-pool/contracts/PCToken.sol



// Imports



// Contracts

/* solhint-disable func-order */

/**
 * @author Balancer Labs
 * @title Highly opinionated token implementation
*/
contract PCToken is IERC20 {
    using BalancerSafeMath for uint;

    // State variables
    string public constant NAME = "Balancer Smart Pool";
    uint8 public constant DECIMALS = 18;

    // No leading underscore per naming convention (non-private)
    // Cannot call totalSupply (name conflict)
    // solhint-disable-next-line private-vars-leading-underscore
    uint internal varTotalSupply;

    mapping(address => uint) private _balance;
    mapping(address => mapping(address => uint)) private _allowance;

    string private _symbol;
    string private _name;

    // Event declarations

    // See definitions above; must be redeclared to be emitted from this contract
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    // Function declarations

    /**
     * @notice Base token constructor
     * @param tokenSymbol - the token symbol
     */
    constructor (string memory tokenSymbol, string memory tokenName) public {
        _symbol = tokenSymbol;
        _name = tokenName;
    }

    // External functions

    /**
     * @notice Getter for allowance: amount spender will be allowed to spend on behalf of owner
     * @param owner - owner of the tokens
     * @param spender - entity allowed to spend the tokens
     * @return uint - remaining amount spender is allowed to transfer
     */
    function allowance(address owner, address spender) external view override returns (uint) {
        return _allowance[owner][spender];
    }

    /**
     * @notice Getter for current account balance
     * @param account - address we're checking the balance of
     * @return uint - token balance in the account
     */
    function balanceOf(address account) external view override returns (uint) {
        return _balance[account];
    }

    /**
     * @notice Approve owner (sender) to spend a certain amount
     * @dev emits an Approval event
     * @param spender - entity the owner (sender) is approving to spend his tokens
     * @param amount - number of tokens being approved
     * @return bool - result of the approval (will always be true if it doesn't revert)
     */
    function approve(address spender, uint amount) external override returns (bool) {
        /* In addition to the increase/decreaseApproval functions, could
           avoid the "approval race condition" by only allowing calls to approve
           when the current approval amount is 0

           require(_allowance[msg.sender][spender] == 0, "ERR_RACE_CONDITION");

           Some token contracts (e.g., KNC), already revert if you call approve
           on a non-zero allocation. To deal with these, we use the SafeApprove library
           and safeApprove function when adding tokens to the pool.
        */

        _allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    /**
     * @notice Increase the amount the spender is allowed to spend on behalf of the owner (sender)
     * @dev emits an Approval event
     * @param spender - entity the owner (sender) is approving to spend his tokens
     * @param amount - number of tokens being approved
     * @return bool - result of the approval (will always be true if it doesn't revert)
     */
    function increaseApproval(address spender, uint amount) external returns (bool) {
        _allowance[msg.sender][spender] = BalancerSafeMath.badd(_allowance[msg.sender][spender], amount);

        emit Approval(msg.sender, spender, _allowance[msg.sender][spender]);

        return true;
    }

    /**
     * @notice Decrease the amount the spender is allowed to spend on behalf of the owner (sender)
     * @dev emits an Approval event
     * @dev If you try to decrease it below the current limit, it's just set to zero (not an error)
     * @param spender - entity the owner (sender) is approving to spend his tokens
     * @param amount - number of tokens being approved
     * @return bool - result of the approval (will always be true if it doesn't revert)
     */
    function decreaseApproval(address spender, uint amount) external returns (bool) {
        uint oldValue = _allowance[msg.sender][spender];
        // Gas optimization - if amount == oldValue (or is larger), set to zero immediately
        if (amount >= oldValue) {
            _allowance[msg.sender][spender] = 0;
        } else {
            _allowance[msg.sender][spender] = BalancerSafeMath.bsub(oldValue, amount);
        }

        emit Approval(msg.sender, spender, _allowance[msg.sender][spender]);

        return true;
    }

    /**
     * @notice Transfer the given amount from sender (caller) to recipient
     * @dev _move emits a Transfer event if successful
     * @param recipient - entity receiving the tokens
     * @param amount - number of tokens being transferred
     * @return bool - result of the transfer (will always be true if it doesn't revert)
     */
    function transfer(address recipient, uint amount) external override returns (bool) {
        require(recipient != address(0), "ERR_ZERO_ADDRESS");

        _move(msg.sender, recipient, amount);

        return true;
    }

    /**
     * @notice Transfer the given amount from sender to recipient
     * @dev _move emits a Transfer event if successful; may also emit an Approval event
     * @param sender - entity sending the tokens (must be caller or allowed to spend on behalf of caller)
     * @param recipient - recipient of the tokens
     * @param amount - number of tokens being transferred
     * @return bool - result of the transfer (will always be true if it doesn't revert)
     */
    function transferFrom(address sender, address recipient, uint amount) external override returns (bool) {
        require(recipient != address(0), "ERR_ZERO_ADDRESS");
        require(msg.sender == sender || amount <= _allowance[sender][msg.sender], "ERR_PCTOKEN_BAD_CALLER");

        _move(sender, recipient, amount);

        // memoize for gas optimization
        uint oldAllowance = _allowance[sender][msg.sender];

        // If the sender is not the caller, adjust the allowance by the amount transferred
        if (msg.sender != sender && oldAllowance != uint(-1)) {
            _allowance[sender][msg.sender] = BalancerSafeMath.bsub(oldAllowance, amount);

            emit Approval(msg.sender, recipient, _allowance[sender][msg.sender]);
        }

        return true;
    }

    // public functions

    /**
     * @notice Getter for the total supply
     * @dev declared external for gas optimization
     * @return uint - total number of tokens in existence
     */
    function totalSupply() external view override returns (uint) {
        return varTotalSupply;
    }

    // Public functions

    /**
     * @dev Returns the name of the token.
     *      We allow the user to set this name (as well as the symbol).
     *      Alternatives are 1) A fixed string (original design)
     *                       2) A fixed string plus the user-defined symbol
     *                          return string(abi.encodePacked(NAME, "-", _symbol));
     */
    function name() external view returns (string memory) {
        return _name;
    }

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

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

    // internal functions

    // Mint an amount of new tokens, and add them to the balance (and total supply)
    // Emit a transfer amount from the null address to this contract
    function _mint(uint amount) internal virtual {
        _balance[address(this)] = BalancerSafeMath.badd(_balance[address(this)], amount);
        varTotalSupply = BalancerSafeMath.badd(varTotalSupply, amount);

        emit Transfer(address(0), address(this), amount);
    }

    // Burn an amount of new tokens, and subtract them from the balance (and total supply)
    // Emit a transfer amount from this contract to the null address
    function _burn(uint amount) internal virtual {
        // Can't burn more than we have
        // Remove require for gas optimization - bsub will revert on underflow
        // require(_balance[address(this)] >= amount, "ERR_INSUFFICIENT_BAL");

        _balance[address(this)] = BalancerSafeMath.bsub(_balance[address(this)], amount);
        varTotalSupply = BalancerSafeMath.bsub(varTotalSupply, amount);

        emit Transfer(address(this), address(0), amount);
    }

    // Transfer tokens from sender to recipient
    // Adjust balances, and emit a Transfer event
    function _move(address sender, address recipient, uint amount) internal virtual {
        // Can't send more than sender has
        // Remove require for gas optimization - bsub will revert on underflow
        // require(_balance[sender] >= amount, "ERR_INSUFFICIENT_BAL");

        _balance[sender] = BalancerSafeMath.bsub(_balance[sender], amount);
        _balance[recipient] = BalancerSafeMath.badd(_balance[recipient], amount);

        emit Transfer(sender, recipient, amount);
    }

    // Transfer from this contract to recipient
    // Emits a transfer event if successful
    function _push(address recipient, uint amount) internal {
        _move(address(this), recipient, amount);
    }

    // Transfer from recipient to this contract
    // Emits a transfer event if successful
    function _pull(address sender, uint amount) internal {
        _move(sender, address(this), amount);
    }
}

// File: configurable-rights-pool/contracts/utils/BalancerReentrancyGuard.sol



/**
 * @author Balancer Labs (and OpenZeppelin)
 * @title Protect against reentrant calls (and also selectively protect view functions)
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {_lock_} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `_lock_` guard, functions marked as
 * `_lock_` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `_lock_` entry
 * points to them.
 *
 * Also adds a _lockview_ modifier, which doesn't create a lock, but fails
 *   if another _lock_ call is in progress
 */
contract BalancerReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint private constant _NOT_ENTERED = 1;
    uint private constant _ENTERED = 2;

    uint private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

        // Any calls to _lock_ after this point will fail
        _status = _ENTERED;
        _;
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Also add a modifier that doesn't create a lock, but protects functions that
     *      should not be called while a _lock_ function is running
     */
     modifier viewlock() {
        require(_status != _ENTERED, "ERR_REENTRY_VIEW");
        _;
     }
}

// File: configurable-rights-pool/contracts/utils/BalancerOwnable.sol



/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract BalancerOwnable {
    // State variables

    address private _owner;

    // Event declarations

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    // Modifiers

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == msg.sender, "ERR_NOT_CONTROLLER");
        _;
    }

    // Function declarations

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        _owner = msg.sender;
    }

    /**
     * @notice Transfers ownership of the contract to a new account (`newOwner`).
     *         Can only be called by the current owner
     * @dev external for gas optimization
     * @param newOwner - address of new owner
     */
    function setController(address newOwner) external onlyOwner {
        require(newOwner != address(0), "ERR_ZERO_ADDRESS");

        emit OwnershipTransferred(_owner, newOwner);

        _owner = newOwner;
    }

    /**
     * @notice Returns the address of the current owner
     * @dev external for gas optimization
     * @return address - of the owner (AKA controller)
     */
    function getController() external view returns (address) {
        return _owner;
    }
}

// File: configurable-rights-pool/libraries/RightsManager.sol



// Needed to handle structures externally

/**
 * @author Balancer Labs
 * @title Manage Configurable Rights for the smart pool
 *      canPauseSwapping - can setPublicSwap back to false after turning it on
 *                         by default, it is off on initialization and can only be turned on
 *      canChangeSwapFee - can setSwapFee after initialization (by default, it is fixed at create time)
 *      canChangeWeights - can bind new token weights (allowed by default in base pool)
 *      canAddRemoveTokens - can bind/unbind tokens (allowed by default in base pool)
 *      canWhitelistLPs - can limit liquidity providers to a given set of addresses
 *      canChangeCap - can change the BSP cap (max # of pool tokens)
 */
library RightsManager {

    // Type declarations

    enum Permissions { PAUSE_SWAPPING,
                       CHANGE_SWAP_FEE,
                       CHANGE_WEIGHTS,
                       ADD_REMOVE_TOKENS,
                       WHITELIST_LPS,
                       CHANGE_CAP }

    struct Rights {
        bool canPauseSwapping;
        bool canChangeSwapFee;
        bool canChangeWeights;
        bool canAddRemoveTokens;
        bool canWhitelistLPs;
        bool canChangeCap;
    }

    // State variables (can only be constants in a library)
    bool public constant DEFAULT_CAN_PAUSE_SWAPPING = false;
    bool public constant DEFAULT_CAN_CHANGE_SWAP_FEE = true;
    bool public constant DEFAULT_CAN_CHANGE_WEIGHTS = true;
    bool public constant DEFAULT_CAN_ADD_REMOVE_TOKENS = false;
    bool public constant DEFAULT_CAN_WHITELIST_LPS = false;
    bool public constant DEFAULT_CAN_CHANGE_CAP = false;

    // Functions

    /**
     * @notice create a struct from an array (or return defaults)
     * @dev If you pass an empty array, it will construct it using the defaults
     * @param a - array input
     * @return Rights struct
     */
    function constructRights(bool[] calldata a) external pure returns (Rights memory) {
        if (a.length == 0) {
            return Rights(DEFAULT_CAN_PAUSE_SWAPPING,
                          DEFAULT_CAN_CHANGE_SWAP_FEE,
                          DEFAULT_CAN_CHANGE_WEIGHTS,
                          DEFAULT_CAN_ADD_REMOVE_TOKENS,
                          DEFAULT_CAN_WHITELIST_LPS,
                          DEFAULT_CAN_CHANGE_CAP);
        }
        else {
            return Rights(a[0], a[1], a[2], a[3], a[4], a[5]);
        }
    }

    /**
     * @notice Convert rights struct to an array (e.g., for events, GUI)
     * @dev avoids multiple calls to hasPermission
     * @param rights - the rights struct to convert
     * @return boolean array containing the rights settings
     */
    function convertRights(Rights calldata rights) external pure returns (bool[] memory) {
        bool[] memory result = new bool[](6);

        result[0] = rights.canPauseSwapping;
        result[1] = rights.canChangeSwapFee;
        result[2] = rights.canChangeWeights;
        result[3] = rights.canAddRemoveTokens;
        result[4] = rights.canWhitelistLPs;
        result[5] = rights.canChangeCap;

        return result;
    }

    // Though it is actually simple, the number of branches triggers code-complexity
    /* solhint-disable code-complexity */

    /**
     * @notice Externally check permissions using the Enum
     * @param self - Rights struct containing the permissions
     * @param permission - The permission to check
     * @return Boolean true if it has the permission
     */
    function hasPermission(Rights calldata self, Permissions permission) external pure returns (bool) {
        if (Permissions.PAUSE_SWAPPING == permission) {
            return self.canPauseSwapping;
        }
        else if (Permissions.CHANGE_SWAP_FEE == permission) {
            return self.canChangeSwapFee;
        }
        else if (Permissions.CHANGE_WEIGHTS == permission) {
            return self.canChangeWeights;
        }
        else if (Permissions.ADD_REMOVE_TOKENS == permission) {
            return self.canAddRemoveTokens;
        }
        else if (Permissions.WHITELIST_LPS == permission) {
            return self.canWhitelistLPs;
        }
        else if (Permissions.CHANGE_CAP == permission) {
            return self.canChangeCap;
        }
    }

    /* solhint-enable code-complexity */
}

// File: configurable-rights-pool/interfaces/IConfigurableRightsPool.sol



// Interface declarations

// Introduce to avoid circularity (otherwise, the CRP and SmartPoolManager include each other)
// Removing circularity allows flattener tools to work, which enables Etherscan verification
interface IConfigurableRightsPool {
    function mintPoolShareFromLib(uint amount) external;
    function pushPoolShareFromLib(address to, uint amount) external;
    function pullPoolShareFromLib(address from, uint amount) external;
    function burnPoolShareFromLib(uint amount) external;
    function totalSupply() external view returns (uint);
    function getController() external view returns (address);
}

// File: configurable-rights-pool/libraries/SafeApprove.sol



// Imports


// Libraries

/**
 * @author PieDAO (ported to Balancer Labs)
 * @title SafeApprove - set approval for tokens that require 0 prior approval
 * @dev Perhaps to address the known ERC20 race condition issue
 *      See https://github.com/crytic/not-so-smart-contracts/tree/master/race_condition
 *      Some tokens - notably KNC - only allow approvals to be increased from 0
 */
library SafeApprove {
    /**
     * @notice handle approvals of tokens that require approving from a base of 0
     * @param token - the token we're approving
     * @param spender - entity the owner (sender) is approving to spend his tokens
     * @param amount - number of tokens being approved
     */
    function safeApprove(IERC20 token, address spender, uint amount) internal returns (bool) {
        uint currentAllowance = token.allowance(address(this), spender);

        // Do nothing if allowance is already set to this value
        if(currentAllowance == amount) {
            return true;
        }

        // If approval is not zero reset it to zero first
        if(currentAllowance != 0) {
            return token.approve(spender, 0);
        }

        // do the actual approval
        return token.approve(spender, amount);
    }
}

// File: configurable-rights-pool/libraries/SmartPoolManager.sol



// Needed to pass in structs

// Imports







/**
 * @author Balancer Labs
 * @title Factor out the weight updates
 */
library SmartPoolManager {
    // Type declarations

    struct NewTokenParams {
        address addr;
        bool isCommitted;
        uint commitBlock;
        uint denorm;
        uint balance;
    }

    // For blockwise, automated weight updates
    // Move weights linearly from startWeights to endWeights,
    // between startBlock and endBlock
    struct GradualUpdateParams {
        uint startBlock;
        uint endBlock;
        uint[] startWeights;
        uint[] endWeights;
    }

    // updateWeight and pokeWeights are unavoidably long
    /* solhint-disable function-max-lines */

    /**
     * @notice Update the weight of an existing token
     * @dev Refactored to library to make CRPFactory deployable
     * @param self - ConfigurableRightsPool instance calling the library
     * @param bPool - Core BPool the CRP is wrapping
     * @param token - token to be reweighted
     * @param newWeight - new weight of the token
    */
    function updateWeight(
        IConfigurableRightsPool self,
        IBPool bPool,
        address token,
        uint newWeight
    )
        external
    {
        require(newWeight >= BalancerConstants.MIN_WEIGHT, "ERR_MIN_WEIGHT");
        require(newWeight <= BalancerConstants.MAX_WEIGHT, "ERR_MAX_WEIGHT");

        uint currentWeight = bPool.getDenormalizedWeight(token);
        // Save gas; return immediately on NOOP
        if (currentWeight == newWeight) {
             return;
        }

        uint currentBalance = bPool.getBalance(token);
        uint totalSupply = self.totalSupply();
        uint totalWeight = bPool.getTotalDenormalizedWeight();
        uint poolShares;
        uint deltaBalance;
        uint deltaWeight;
        uint newBalance;

        if (newWeight < currentWeight) {
            // This means the controller will withdraw tokens to keep price
            // So they need to redeem PCTokens
            deltaWeight = BalancerSafeMath.bsub(currentWeight, newWeight);

            // poolShares = totalSupply * (deltaWeight / totalWeight)
            poolShares = BalancerSafeMath.bmul(totalSupply,
                                               BalancerSafeMath.bdiv(deltaWeight, totalWeight));

            // deltaBalance = currentBalance * (deltaWeight / currentWeight)
            deltaBalance = BalancerSafeMath.bmul(currentBalance,
                                                 BalancerSafeMath.bdiv(deltaWeight, currentWeight));

            // New balance cannot be lower than MIN_BALANCE
            newBalance = BalancerSafeMath.bsub(currentBalance, deltaBalance);

            require(newBalance >= BalancerConstants.MIN_BALANCE, "ERR_MIN_BALANCE");

            // First get the tokens from this contract (Pool Controller) to msg.sender
            bPool.rebind(token, newBalance, newWeight);

            // Now with the tokens this contract can send them to msg.sender
            bool xfer = IERC20(token).transfer(msg.sender, deltaBalance);
            require(xfer, "ERR_ERC20_FALSE");

            self.pullPoolShareFromLib(msg.sender, poolShares);
            self.burnPoolShareFromLib(poolShares);
        }
        else {
            // This means the controller will deposit tokens to keep the price.
            // They will be minted and given PCTokens
            deltaWeight = BalancerSafeMath.bsub(newWeight, currentWeight);

            require(BalancerSafeMath.badd(totalWeight, deltaWeight) <= BalancerConstants.MAX_TOTAL_WEIGHT,
                    "ERR_MAX_TOTAL_WEIGHT");

            // poolShares = totalSupply * (deltaWeight / totalWeight)
            poolShares = BalancerSafeMath.bmul(totalSupply,
                                               BalancerSafeMath.bdiv(deltaWeight, totalWeight));
            // deltaBalance = currentBalance * (deltaWeight / currentWeight)
            deltaBalance = BalancerSafeMath.bmul(currentBalance,
                                                 BalancerSafeMath.bdiv(deltaWeight, currentWeight));

            // First gets the tokens from msg.sender to this contract (Pool Controller)
            bool xfer = IERC20(token).transferFrom(msg.sender, address(this), deltaBalance);
            require(xfer, "ERR_ERC20_FALSE");

            // Now with the tokens this contract can bind them to the pool it controls
            bPool.rebind(token, BalancerSafeMath.badd(currentBalance, deltaBalance), newWeight);

            self.mintPoolShareFromLib(poolShares);
            self.pushPoolShareFromLib(msg.sender, poolShares);
        }
    }

    /**
     * @notice External function called to make the contract update weights according to plan
     * @param bPool - Core BPool the CRP is wrapping
     * @param gradualUpdate - gradual update parameters from the CRP
    */
    function pokeWeights(
        IBPool bPool,
        GradualUpdateParams storage gradualUpdate
    )
        external
    {
        // Do nothing if we call this when there is no update plan
        if (gradualUpdate.startBlock == 0) {
            return;
        }

        // Error to call it before the start of the plan
        require(block.number >= gradualUpdate.startBlock, "ERR_CANT_POKE_YET");
        // Proposed error message improvement
        // require(block.number >= startBlock, "ERR_NO_HOKEY_POKEY");

        // This allows for pokes after endBlock that get weights to endWeights
        // Get the current block (or the endBlock, if we're already past the end)
        uint currentBlock;
        if (block.number > gradualUpdate.endBlock) {
            currentBlock = gradualUpdate.endBlock;
        }
        else {
            currentBlock = block.number;
        }

        uint blockPeriod = BalancerSafeMath.bsub(gradualUpdate.endBlock, gradualUpdate.startBlock);
        uint blocksElapsed = BalancerSafeMath.bsub(currentBlock, gradualUpdate.startBlock);
        uint weightDelta;
        uint deltaPerBlock;
        uint newWeight;

        address[] memory tokens = bPool.getCurrentTokens();

        // This loop contains external calls
        // External calls are to math libraries or the underlying pool, so low risk
        for (uint i = 0; i < tokens.length; i++) {
            // Make sure it does nothing if the new and old weights are the same (saves gas)
            // It's a degenerate case if they're *all* the same, but you certainly could have
            // a plan where you only change some of the weights in the set
            if (gradualUpdate.startWeights[i] != gradualUpdate.endWeights[i]) {
                if (gradualUpdate.endWeights[i] < gradualUpdate.startWeights[i]) {
                    // We are decreasing the weight

                    // First get the total weight delta
                    weightDelta = BalancerSafeMath.bsub(gradualUpdate.startWeights[i],
                                                        gradualUpdate.endWeights[i]);
                    // And the amount it should change per block = total change/number of blocks in the period
                    deltaPerBlock = BalancerSafeMath.bdiv(weightDelta, blockPeriod);
                    //deltaPerBlock = bdivx(weightDelta, blockPeriod);

                     // newWeight = startWeight - (blocksElapsed * deltaPerBlock)
                    newWeight = BalancerSafeMath.bsub(gradualUpdate.startWeights[i],
                                                      BalancerSafeMath.bmul(blocksElapsed, deltaPerBlock));
                }
                else {
                    // We are increasing the weight

                    // First get the total weight delta
                    weightDelta = BalancerSafeMath.bsub(gradualUpdate.endWeights[i],
                                                        gradualUpdate.startWeights[i]);
                    // And the amount it should change per block = total change/number of blocks in the period
                    deltaPerBlock = BalancerSafeMath.bdiv(weightDelta, blockPeriod);
                    //deltaPerBlock = bdivx(weightDelta, blockPeriod);

                     // newWeight = startWeight + (blocksElapsed * deltaPerBlock)
                    newWeight = BalancerSafeMath.badd(gradualUpdate.startWeights[i],
                                                      BalancerSafeMath.bmul(blocksElapsed, deltaPerBlock));
                }

                uint bal = bPool.getBalance(tokens[i]);

                bPool.rebind(tokens[i], bal, newWeight);
            }
        }

        // Reset to allow add/remove tokens, or manual weight updates
        if (block.number >= gradualUpdate.endBlock) {
            gradualUpdate.startBlock = 0;
        }
    }

    /* solhint-enable function-max-lines */

    /**
     * @notice Schedule (commit) a token to be added; must call applyAddToken after a fixed
     *         number of blocks to actually add the token
     * @param bPool - Core BPool the CRP is wrapping
     * @param token - the token to be added
     * @param balance - how much to be added
     * @param denormalizedWeight - the desired token weight
     * @param newToken - NewTokenParams struct used to hold the token data (in CRP storage)
     */
    function commitAddToken(
        IBPool bPool,
        address token,
        uint balance,
        uint denormalizedWeight,
        NewTokenParams storage newToken
    )
        external
    {
        require(!bPool.isBound(token), "ERR_IS_BOUND");

        require(denormalizedWeight <= BalancerConstants.MAX_WEIGHT, "ERR_WEIGHT_ABOVE_MAX");
        require(denormalizedWeight >= BalancerConstants.MIN_WEIGHT, "ERR_WEIGHT_BELOW_MIN");
        require(BalancerSafeMath.badd(bPool.getTotalDenormalizedWeight(),
                                      denormalizedWeight) <= BalancerConstants.MAX_TOTAL_WEIGHT,
                "ERR_MAX_TOTAL_WEIGHT");
        require(balance >= BalancerConstants.MIN_BALANCE, "ERR_BALANCE_BELOW_MIN");

        newToken.addr = token;
        newToken.balance = balance;
        newToken.denorm = denormalizedWeight;
        newToken.commitBlock = block.number;
        newToken.isCommitted = true;
    }

    /**
     * @notice Add the token previously committed (in commitAddToken) to the pool
     * @param self - ConfigurableRightsPool instance calling the library
     * @param bPool - Core BPool the CRP is wrapping
     * @param addTokenTimeLockInBlocks -  Wait time between committing and applying a new token
     * @param newToken - NewTokenParams struct used to hold the token data (in CRP storage)
     */
    function applyAddToken(
        IConfigurableRightsPool self,
        IBPool bPool,
        uint addTokenTimeLockInBlocks,
        NewTokenParams storage newToken
    )
        external
    {
        require(newToken.isCommitted, "ERR_NO_TOKEN_COMMIT");
        require(BalancerSafeMath.bsub(block.number, newToken.commitBlock) >= addTokenTimeLockInBlocks,
                                      "ERR_TIMELOCK_STILL_COUNTING");

        uint totalSupply = self.totalSupply();

        // poolShares = totalSupply * newTokenWeight / totalWeight
        uint poolShares = BalancerSafeMath.bdiv(BalancerSafeMath.bmul(totalSupply, newToken.denorm),
                                                bPool.getTotalDenormalizedWeight());

        // Clear this to allow adding more tokens
        newToken.isCommitted = false;

        // First gets the tokens from msg.sender to this contract (Pool Controller)
        bool returnValue = IERC20(newToken.addr).transferFrom(self.getController(), address(self), newToken.balance);
        require(returnValue, "ERR_ERC20_FALSE");

        // Now with the tokens this contract can bind them to the pool it controls
        // Approves bPool to pull from this controller
        // Approve unlimited, same as when creating the pool, so they can join pools later
        returnValue = SafeApprove.safeApprove(IERC20(newToken.addr), address(bPool), BalancerConstants.MAX_UINT);
        require(returnValue, "ERR_ERC20_FALSE");

        bPool.bind(newToken.addr, newToken.balance, newToken.denorm);

        self.mintPoolShareFromLib(poolShares);
        self.pushPoolShareFromLib(msg.sender, poolShares);
    }

     /**
     * @notice Remove a token from the pool
     * @dev Logic in the CRP controls when ths can be called. There are two related permissions:
     *      AddRemoveTokens - which allows removing down to the underlying BPool limit of two
     *      RemoveAllTokens - which allows completely draining the pool by removing all tokens
     *                        This can result in a non-viable pool with 0 or 1 tokens (by design),
     *                        meaning all swapping or binding operations would fail in this state
     * @param self - ConfigurableRightsPool instance calling the library
     * @param bPool - Core BPool the CRP is wrapping
     * @param token - token to remove
     */
    function removeToken(
        IConfigurableRightsPool self,
        IBPool bPool,
        address token
    )
        external
    {
        uint totalSupply = self.totalSupply();

        // poolShares = totalSupply * tokenWeight / totalWeight
        uint poolShares = BalancerSafeMath.bdiv(BalancerSafeMath.bmul(totalSupply,
                                                                      bPool.getDenormalizedWeight(token)),
                                                bPool.getTotalDenormalizedWeight());

        // this is what will be unbound from the pool
        // Have to get it before unbinding
        uint balance = bPool.getBalance(token);

        // Unbind and get the tokens out of balancer pool
        bPool.unbind(token);

        // Now with the tokens this contract can send them to msg.sender
        bool xfer = IERC20(token).transfer(self.getController(), balance);
        require(xfer, "ERR_ERC20_FALSE");

        self.pullPoolShareFromLib(self.getController(), poolShares);
        self.burnPoolShareFromLib(poolShares);
    }

    /**
     * @notice Non ERC20-conforming tokens are problematic; don't allow them in pools
     * @dev Will revert if invalid
     * @param token - The prospective token to verify
     */
    function verifyTokenCompliance(address token) external {
        verifyTokenComplianceInternal(token);
    }

    /**
     * @notice Non ERC20-conforming tokens are problematic; don't allow them in pools
     * @dev Will revert if invalid - overloaded to save space in the main contract
     * @param tokens - The prospective tokens to verify
     */
    function verifyTokenCompliance(address[] calldata tokens) external {
        for (uint i = 0; i < tokens.length; i++) {
            verifyTokenComplianceInternal(tokens[i]);
         }
    }

    /**
     * @notice Update weights in a predetermined way, between startBlock and endBlock,
     *         through external cals to pokeWeights
     * @param bPool - Core BPool the CRP is wrapping
     * @param newWeights - final weights we want to get to
     * @param startBlock - when weights should start to change
     * @param endBlock - when weights will be at their final values
     * @param minimumWeightChangeBlockPeriod - needed to validate the block period
    */
    function updateWeightsGradually(
        IBPool bPool,
        GradualUpdateParams storage gradualUpdate,
        uint[] calldata newWeights,
        uint startBlock,
        uint endBlock,
        uint minimumWeightChangeBlockPeriod
    )
        external
    {
        // Enforce a minimum time over which to make the changes
        // The also prevents endBlock <= startBlock
        require(BalancerSafeMath.bsub(endBlock, startBlock) >= minimumWeightChangeBlockPeriod,
                "ERR_WEIGHT_CHANGE_TIME_BELOW_MIN");
        require(block.number < endBlock, "ERR_GRADUAL_UPDATE_TIME_TRAVEL");

        address[] memory tokens = bPool.getCurrentTokens();

        // Must specify weights for all tokens
        require(newWeights.length == tokens.length, "ERR_START_WEIGHTS_MISMATCH");

        uint weightsSum = 0;
        gradualUpdate.startWeights = new uint[](tokens.length);

        // Check that endWeights are valid now to avoid reverting in a future pokeWeights call
        //
        // This loop contains external calls
        // External calls are to math libraries or the underlying pool, so low risk
        for (uint i = 0; i < tokens.length; i++) {
            require(newWeights[i] <= BalancerConstants.MAX_WEIGHT, "ERR_WEIGHT_ABOVE_MAX");
            require(newWeights[i] >= BalancerConstants.MIN_WEIGHT, "ERR_WEIGHT_BELOW_MIN");

            weightsSum = BalancerSafeMath.badd(weightsSum, newWeights[i]);
            gradualUpdate.startWeights[i] = bPool.getDenormalizedWeight(tokens[i]);
        }
        require(weightsSum <= BalancerConstants.MAX_TOTAL_WEIGHT, "ERR_MAX_TOTAL_WEIGHT");

        if (block.number > startBlock && block.number < endBlock) {
            // This means the weight update should start ASAP
            // Moving the start block up prevents a big jump/discontinuity in the weights
            //
            // Only valid within the startBlock - endBlock period!
            // Should not happen, but defensively check that we aren't
            // setting the start point past the end point
            gradualUpdate.startBlock = block.number;
        }
        else{
            gradualUpdate.startBlock = startBlock;
        }

        gradualUpdate.endBlock = endBlock;
        gradualUpdate.endWeights = newWeights;
    }

    /**
     * @notice Join a pool
     * @param self - ConfigurableRightsPool instance calling the library
     * @param bPool - Core BPool the CRP is wrapping
     * @param poolAmountOut - number of pool tokens to receive
     * @param maxAmountsIn - Max amount of asset tokens to spend
     * @return actualAmountsIn - calculated values of the tokens to pull in
     */
    function joinPool(
        IConfigurableRightsPool self,
        IBPool bPool,
        uint poolAmountOut,
        uint[] calldata maxAmountsIn
    )
         external
         view
         returns (uint[] memory actualAmountsIn)
    {
        address[] memory tokens = bPool.getCurrentTokens();

        require(maxAmountsIn.length == tokens.length, "ERR_AMOUNTS_MISMATCH");

        uint poolTotal = self.totalSupply();
        // Subtract  1 to ensure any rounding errors favor the pool
        uint ratio = BalancerSafeMath.bdiv(poolAmountOut,
                                           BalancerSafeMath.bsub(poolTotal, 1));

        require(ratio != 0, "ERR_MATH_APPROX");

        // We know the length of the array; initialize it, and fill it below
        // Cannot do "push" in memory
        actualAmountsIn = new uint[](tokens.length);

        // This loop contains external calls
        // External calls are to math libraries or the underlying pool, so low risk
        for (uint i = 0; i < tokens.length; i++) {
            address t = tokens[i];
            uint bal = bPool.getBalance(t);
            // Add 1 to ensure any rounding errors favor the pool
            uint tokenAmountIn = BalancerSafeMath.bmul(ratio,
                                                       BalancerSafeMath.badd(bal, 1));

            require(tokenAmountIn != 0, "ERR_MATH_APPROX");
            require(tokenAmountIn <= maxAmountsIn[i], "ERR_LIMIT_IN");

            actualAmountsIn[i] = tokenAmountIn;
        }
    }

    /**
     * @notice Exit a pool - redeem pool tokens for underlying assets
     * @param self - ConfigurableRightsPool instance calling the library
     * @param bPool - Core BPool the CRP is wrapping
     * @param poolAmountIn - amount of pool tokens to redeem
     * @param minAmountsOut - minimum amount of asset tokens to receive
     * @return exitFee - calculated exit fee
     * @return pAiAfterExitFee - final amount in (after accounting for exit fee)
     * @return actualAmountsOut - calculated amounts of each token to pull
     */
    function exitPool(
        IConfigurableRightsPool self,
        IBPool bPool,
        uint poolAmountIn,
        uint[] calldata minAmountsOut
    )
        external
        view
        returns (uint exitFee, uint pAiAfterExitFee, uint[] memory actualAmountsOut)
    {
        address[] memory tokens = bPool.getCurrentTokens();

        require(minAmountsOut.length == tokens.length, "ERR_AMOUNTS_MISMATCH");

        uint poolTotal = self.totalSupply();

        // Calculate exit fee and the final amount in
        exitFee = BalancerSafeMath.bmul(poolAmountIn, BalancerConstants.EXIT_FEE);
        pAiAfterExitFee = BalancerSafeMath.bsub(poolAmountIn, exitFee);

        uint ratio = BalancerSafeMath.bdiv(pAiAfterExitFee,
                                           BalancerSafeMath.badd(poolTotal, 1));

        require(ratio != 0, "ERR_MATH_APPROX");

        actualAmountsOut = new uint[](tokens.length);

        // This loop contains external calls
        // External calls are to math libraries or the underlying pool, so low risk
        for (uint i = 0; i < tokens.length; i++) {
            address t = tokens[i];
            uint bal = bPool.getBalance(t);
            // Subtract 1 to ensure any rounding errors favor the pool
            uint tokenAmountOut = BalancerSafeMath.bmul(ratio,
                                                        BalancerSafeMath.bsub(bal, 1));

            require(tokenAmountOut != 0, "ERR_MATH_APPROX");
            require(tokenAmountOut >= minAmountsOut[i], "ERR_LIMIT_OUT");

            actualAmountsOut[i] = tokenAmountOut;
        }
    }

    /**
     * @notice Join by swapping a fixed amount of an external token in (must be present in the pool)
     *         System calculates the pool token amount
     * @param self - ConfigurableRightsPool instance calling the library
     * @param bPool - Core BPool the CRP is wrapping
     * @param tokenIn - which token we're transferring in
     * @param tokenAmountIn - amount of deposit
     * @param minPoolAmountOut - minimum of pool tokens to receive
     * @return poolAmountOut - amount of pool tokens minted and transferred
     */
    function joinswapExternAmountIn(
        IConfigurableRightsPool self,
        IBPool bPool,
        address tokenIn,
        uint tokenAmountIn,
        uint minPoolAmountOut
    )
        external
        view
        returns (uint poolAmountOut)
    {
        require(bPool.isBound(tokenIn), "ERR_NOT_BOUND");
        require(tokenAmountIn <= BalancerSafeMath.bmul(bPool.getBalance(tokenIn),
                                                       BalancerConstants.MAX_IN_RATIO),
                                                       "ERR_MAX_IN_RATIO");

        poolAmountOut = bPool.calcPoolOutGivenSingleIn(
                            bPool.getBalance(tokenIn),
                            bPool.getDenormalizedWeight(tokenIn),
                            self.totalSupply(),
                            bPool.getTotalDenormalizedWeight(),
                            tokenAmountIn,
                            bPool.getSwapFee()
                        );

        require(poolAmountOut >= minPoolAmountOut, "ERR_LIMIT_OUT");
    }

    /**
     * @notice Join by swapping an external token in (must be present in the pool)
     *         To receive an exact amount of pool tokens out. System calculates the deposit amount
     * @param self - ConfigurableRightsPool instance calling the library
     * @param bPool - Core BPool the CRP is wrapping
     * @param tokenIn - which token we're transferring in (system calculates amount required)
     * @param poolAmountOut - amount of pool tokens to be received
     * @param maxAmountIn - Maximum asset tokens that can be pulled to pay for the pool tokens
     * @return tokenAmountIn - amount of asset tokens transferred in to purchase the pool tokens
     */
    function joinswapPoolAmountOut(
        IConfigurableRightsPool self,
        IBPool bPool,
        address tokenIn,
        uint poolAmountOut,
        uint maxAmountIn
    )
        external
        view
        returns (uint tokenAmountIn)
    {
        require(bPool.isBound(tokenIn), "ERR_NOT_BOUND");

        tokenAmountIn = bPool.calcSingleInGivenPoolOut(
                            bPool.getBalance(tokenIn),
                            bPool.getDenormalizedWeight(tokenIn),
                            self.totalSupply(),
                            bPool.getTotalDenormalizedWeight(),
                            poolAmountOut,
                            bPool.getSwapFee()
                        );

        require(tokenAmountIn != 0, "ERR_MATH_APPROX");
        require(tokenAmountIn <= maxAmountIn, "ERR_LIMIT_IN");

        require(tokenAmountIn <= BalancerSafeMath.bmul(bPool.getBalance(tokenIn),
                                                       BalancerConstants.MAX_IN_RATIO),
                                                       "ERR_MAX_IN_RATIO");
    }

    /**
     * @notice Exit a pool - redeem a specific number of pool tokens for an underlying asset
     *         Asset must be present in the pool, and will incur an EXIT_FEE (if set to non-zero)
     * @param self - ConfigurableRightsPool instance calling the library
     * @param bPool - Core BPool the CRP is wrapping
     * @param tokenOut - which token the caller wants to receive
     * @param poolAmountIn - amount of pool tokens to redeem
     * @param minAmountOut - minimum asset tokens to receive
     * @return exitFee - calculated exit fee
     * @return tokenAmountOut - amount of asset tokens returned
     */
    function exitswapPoolAmountIn(
        IConfigurableRightsPool self,
        IBPool bPool,
        address tokenOut,
        uint poolAmountIn,
        uint minAmountOut
    )
        external
        view
        returns (uint exitFee, uint tokenAmountOut)
    {
        require(bPool.isBound(tokenOut), "ERR_NOT_BOUND");

        tokenAmountOut = bPool.calcSingleOutGivenPoolIn(
                            bPool.getBalance(tokenOut),
                            bPool.getDenormalizedWeight(tokenOut),
                            self.totalSupply(),
                            bPool.getTotalDenormalizedWeight(),
                            poolAmountIn,
                            bPool.getSwapFee()
                        );

        require(tokenAmountOut >= minAmountOut, "ERR_LIMIT_OUT");
        require(tokenAmountOut <= BalancerSafeMath.bmul(bPool.getBalance(tokenOut),
                                                        BalancerConstants.MAX_OUT_RATIO),
                                                        "ERR_MAX_OUT_RATIO");

        exitFee = BalancerSafeMath.bmul(poolAmountIn, BalancerConstants.EXIT_FEE);
    }

    /**
     * @notice Exit a pool - redeem pool tokens for a specific amount of underlying assets
     *         Asset must be present in the pool
     * @param self - ConfigurableRightsPool instance calling the library
     * @param bPool - Core BPool the CRP is wrapping
     * @param tokenOut - which token the caller wants to receive
     * @param tokenAmountOut - amount of underlying asset tokens to receive
     * @param maxPoolAmountIn - maximum pool tokens to be redeemed
     * @return exitFee - calculated exit fee
     * @return poolAmountIn - amount of pool tokens redeemed
     */
    function exitswapExternAmountOut(
        IConfigurableRightsPool self,
        IBPool bPool,
        address tokenOut,
        uint tokenAmountOut,
        uint maxPoolAmountIn
    )
        external
        view
        returns (uint exitFee, uint poolAmountIn)
    {
        require(bPool.isBound(tokenOut), "ERR_NOT_BOUND");
        require(tokenAmountOut <= BalancerSafeMath.bmul(bPool.getBalance(tokenOut),
                                                        BalancerConstants.MAX_OUT_RATIO),
                                                        "ERR_MAX_OUT_RATIO");
        poolAmountIn = bPool.calcPoolInGivenSingleOut(
                            bPool.getBalance(tokenOut),
                            bPool.getDenormalizedWeight(tokenOut),
                            self.totalSupply(),
                            bPool.getTotalDenormalizedWeight(),
                            tokenAmountOut,
                            bPool.getSwapFee()
                        );

        require(poolAmountIn != 0, "ERR_MATH_APPROX");
        require(poolAmountIn <= maxPoolAmountIn, "ERR_LIMIT_IN");

        exitFee = BalancerSafeMath.bmul(poolAmountIn, BalancerConstants.EXIT_FEE);
    }

    // Internal functions

    // Check for zero transfer, and make sure it returns true to returnValue
    function verifyTokenComplianceInternal(address token) internal {
        bool returnValue = IERC20(token).transfer(msg.sender, 0);
        require(returnValue, "ERR_NONCONFORMING_TOKEN");
    }
}

// File: configurable-rights-pool/contracts/ConfigurableRightsPool.sol



// Needed to handle structures externally

// Imports





// Interfaces

// Libraries




// Contracts

/**
 * @author Balancer Labs
 * @title Smart Pool with customizable features
 * @notice PCToken is the "Balancer Smart Pool" token (transferred upon finalization)
 * @dev Rights are defined as follows (index values into the array)
 *      0: canPauseSwapping - can setPublicSwap back to false after turning it on
 *                            by default, it is off on initialization and can only be turned on
 *      1: canChangeSwapFee - can setSwapFee after initialization (by default, it is fixed at create time)
 *      2: canChangeWeights - can bind new token weights (allowed by default in base pool)
 *      3: canAddRemoveTokens - can bind/unbind tokens (allowed by default in base pool)
 *      4: canWhitelistLPs - can restrict LPs to a whitelist
 *      5: canChangeCap - can change the BSP cap (max # of pool tokens)
 *
 * Note that functions called on bPool and bFactory may look like internal calls,
 *   but since they are contracts accessed through an interface, they are really external.
 * To make this explicit, we could write "IBPool(address(bPool)).function()" everywhere,
 *   instead of "bPool.function()".
 */
contract ConfigurableRightsPool is PCToken, BalancerOwnable, BalancerReentrancyGuard {
    using BalancerSafeMath for uint;
    using SafeApprove for IERC20;

    // Type declarations

    struct PoolParams {
        // Balancer Pool Token (representing shares of the pool)
        string poolTokenSymbol;
        string poolTokenName;
        // Tokens inside the Pool
        address[] constituentTokens;
        uint[] tokenBalances;
        uint[] tokenWeights;
        uint swapFee;
    }

    // State variables

    IBFactory public bFactory;
    IBPool public bPool;

    // Struct holding the rights configuration
    RightsManager.Rights public rights;

    // Hold the parameters used in updateWeightsGradually
    SmartPoolManager.GradualUpdateParams public gradualUpdate;

    // This is for adding a new (currently unbound) token to the pool
    // It's a two-step process: commitAddToken(), then applyAddToken()
    SmartPoolManager.NewTokenParams public newToken;

    // Fee is initialized on creation, and can be changed if permission is set
    // Only needed for temporary storage between construction and createPool
    // Thereafter, the swap fee should always be read from the underlying pool
    uint private _initialSwapFee;

    // Store the list of tokens in the pool, and balances
    // NOTE that the token list is *only* used to store the pool tokens between
    //   construction and createPool - thereafter, use the underlying BPool's list
    //   (avoids synchronization issues)
    address[] private _initialTokens;
    uint[] private _initialBalances;

    // Enforce a minimum time between the start and end blocks
    uint public minimumWeightChangeBlockPeriod;
    // Enforce a mandatory wait time between updates
    // This is also the wait time between committing and applying a new token
    uint public addTokenTimeLockInBlocks;

    // Whitelist of LPs (if configured)
    mapping(address => bool) private _liquidityProviderWhitelist;

    // Cap on the pool size (i.e., # of tokens minted when joining)
    // Limits the risk of experimental pools; failsafe/backup for fixed-size pools
    uint public bspCap;

    // Event declarations

    // Anonymous logger event - can only be filtered by contract address

    event LogCall(
        bytes4  indexed sig,
        address indexed caller,
        bytes data
    ) anonymous;

    event LogJoin(
        address indexed caller,
        address indexed tokenIn,
        uint tokenAmountIn
    );

    event LogExit(
        address indexed caller,
        address indexed tokenOut,
        uint tokenAmountOut
    );

    event CapChanged(
        address indexed caller,
        uint oldCap,
        uint newCap
    );

    event NewTokenCommitted(
        address indexed token,
        address indexed pool,
        address indexed caller
    );

    // Modifiers

    modifier logs() {
        emit LogCall(msg.sig, msg.sender, msg.data);
        _;
    }

    // Mark functions that require delegation to the underlying Pool
    modifier needsBPool() {
        require(address(bPool) != address(0), "ERR_NOT_CREATED");
        _;
    }

    modifier lockUnderlyingPool() {
        // Turn off swapping on the underlying pool during joins
        // Otherwise tokens with callbacks would enable attacks involving simultaneous swaps and joins
        bool origSwapState = bPool.isPublicSwap();
        bPool.setPublicSwap(false);
        _;
        bPool.setPublicSwap(origSwapState);
    }

    // Default values for these variables (used only in updateWeightsGradually), set in the constructor
    // Pools without permission to update weights cannot use them anyway, and should call
    //   the default createPool() function.
    // To override these defaults, pass them into the overloaded createPool()
    // Period is in blocks; 500 blocks ~ 2 hours; 90,000 blocks ~ 2 weeks
    uint public constant DEFAULT_MIN_WEIGHT_CHANGE_BLOCK_PERIOD = 90000;
    uint public constant DEFAULT_ADD_TOKEN_TIME_LOCK_IN_BLOCKS = 500;

    // Function declarations

    /**
     * @notice Construct a new Configurable Rights Pool (wrapper around BPool)
     * @dev _initialTokens and _swapFee are only used for temporary storage between construction
     *      and create pool, and should not be used thereafter! _initialTokens is destroyed in
     *      createPool to prevent this, and _swapFee is kept in sync (defensively), but
     *      should never be used except in this constructor and createPool()
     * @param factoryAddress - the BPoolFactory used to create the underlying pool
     * @param poolParams - struct containing pool parameters
     * @param rightsStruct - Set of permissions we are assigning to this smart pool
     */
    constructor(
        address factoryAddress,
        PoolParams memory poolParams,
        RightsManager.Rights memory rightsStruct
    )
        public
        PCToken(poolParams.poolTokenSymbol, poolParams.poolTokenName)
    {
        // We don't have a pool yet; check now or it will fail later (in order of likelihood to fail)
        // (and be unrecoverable if they don't have permission set to change it)
        // Most likely to fail, so check first
        require(poolParams.swapFee >= BalancerConstants.MIN_FEE, "ERR_INVALID_SWAP_FEE");
        require(poolParams.swapFee <= BalancerConstants.MAX_FEE, "ERR_INVALID_SWAP_FEE");

        // Arrays must be parallel
        require(poolParams.tokenBalances.length == poolParams.constituentTokens.length, "ERR_START_BALANCES_MISMATCH");
        require(poolParams.tokenWeights.length == poolParams.constituentTokens.length, "ERR_START_WEIGHTS_MISMATCH");
        // Cannot have too many or too few - technically redundant, since BPool.bind() would fail later
        // But if we don't check now, we could have a useless contract with no way to create a pool

        require(poolParams.constituentTokens.length >= BalancerConstants.MIN_ASSET_LIMIT, "ERR_TOO_FEW_TOKENS");
        require(poolParams.constituentTokens.length <= BalancerConstants.MAX_ASSET_LIMIT, "ERR_TOO_MANY_TOKENS");
        // There are further possible checks (e.g., if they use the same token twice), but
        // we can let bind() catch things like that (i.e., not things that might reasonably work)

        SmartPoolManager.verifyTokenCompliance(poolParams.constituentTokens);

        bFactory = IBFactory(factoryAddress);
        rights = rightsStruct;
        _initialTokens = poolParams.constituentTokens;
        _initialBalances = poolParams.tokenBalances;
        _initialSwapFee = poolParams.swapFee;

        // These default block time parameters can be overridden in createPool
        minimumWeightChangeBlockPeriod = DEFAULT_MIN_WEIGHT_CHANGE_BLOCK_PERIOD;
        addTokenTimeLockInBlocks = DEFAULT_ADD_TOKEN_TIME_LOCK_IN_BLOCKS;

        gradualUpdate.startWeights = poolParams.tokenWeights;
        // Initializing (unnecessarily) for documentation - 0 means no gradual weight change has been initiated
        gradualUpdate.startBlock = 0;
        // By default, there is no cap (unlimited pool token minting)
        bspCap = BalancerConstants.MAX_UINT;
    }

    // External functions

    /**
     * @notice Set the swap fee on the underlying pool
     * @dev Keep the local version and core in sync (see below)
     *      bPool is a contract interface; function calls on it are external
     * @param swapFee in Wei
     */
    function setSwapFee(uint swapFee)
        external
        logs
        lock
        onlyOwner
        needsBPool
        virtual
    {
        require(rights.canChangeSwapFee, "ERR_NOT_CONFIGURABLE_SWAP_FEE");

        // Underlying pool will check against min/max fee
        bPool.setSwapFee(swapFee);
    }

    /**
     * @notice Getter for the publicSwap field on the underlying pool
     * @dev viewLock, because setPublicSwap is lock
     *      bPool is a contract interface; function calls on it are external
     * @return Current value of isPublicSwap
     */
    function isPublicSwap()
        external
        view
        viewlock
        needsBPool
        virtual
        returns (bool)
    {
        return bPool.isPublicSwap();
    }

    /**
     * @notice Set the cap (max # of pool tokens)
     * @dev _bspCap defaults in the constructor to unlimited
     *      Can set to 0 (or anywhere below the current supply), to halt new investment
     *      Prevent setting it before creating a pool, since createPool sets to intialSupply
     *      (it does this to avoid an unlimited cap window between construction and createPool)
     *      Therefore setting it before then has no effect, so should not be allowed
     * @param newCap - new value of the cap
     */
    function setCap(uint newCap)
        external
        logs
        lock
        needsBPool
        onlyOwner
    {
        require(rights.canChangeCap, "ERR_CANNOT_CHANGE_CAP");

        emit CapChanged(msg.sender, bspCap, newCap);

        bspCap = newCap;
    }

    /**
     * @notice Set the public swap flag on the underlying pool
     * @dev If this smart pool has canPauseSwapping enabled, we can turn publicSwap off if it's already on
     *      Note that if they turn swapping off - but then finalize the pool - finalizing will turn the
     *      swapping back on. They're not supposed to finalize the underlying pool... would defeat the
     *      smart pool functions. (Only the owner can finalize the pool - which is this contract -
     *      so there is no risk from outside.)
     *
     *      bPool is a contract interface; function calls on it are external
     * @param publicSwap new value of the swap
     */
    function setPublicSwap(bool publicSwap)
        external
        logs
        lock
        onlyOwner
        needsBPool
        virtual
    {
        require(rights.canPauseSwapping, "ERR_NOT_PAUSABLE_SWAP");

        bPool.setPublicSwap(publicSwap);
    }

    /**
     * @notice Create a new Smart Pool - and set the block period time parameters
     * @dev Initialize the swap fee to the value provided in the CRP constructor
     *      Can be changed if the canChangeSwapFee permission is enabled
     *      Time parameters will be fixed at these values
     *
     *      If this contract doesn't have canChangeWeights permission - or you want to use the default
     *      values, the block time arguments are not needed, and you can just call the single-argument
     *      createPool()
     * @param initialSupply - Starting token balance
     * @param minimumWeightChangeBlockPeriodParam - Enforce a minimum time between the start and end blocks
     * @param addTokenTimeLockInBlocksParam - Enforce a mandatory wait time between updates
     *                                   This is also the wait time between committing and applying a new token
     */
    function createPool(
        uint initialSupply,
        uint minimumWeightChangeBlockPeriodParam,
        uint addTokenTimeLockInBlocksParam
    )
        external
        onlyOwner
        logs
        lock
        virtual
    {
        require (minimumWeightChangeBlockPeriodParam >= addTokenTimeLockInBlocksParam,
                "ERR_INCONSISTENT_TOKEN_TIME_LOCK");

        minimumWeightChangeBlockPeriod = minimumWeightChangeBlockPeriodParam;
        addTokenTimeLockInBlocks = addTokenTimeLockInBlocksParam;

        createPoolInternal(initialSupply);
    }

    /**
     * @notice Create a new Smart Pool
     * @dev Delegates to internal function
     * @param initialSupply starting token balance
     */
    function createPool(uint initialSupply)
        external
        onlyOwner
        logs
        lock
        virtual
    {
        createPoolInternal(initialSupply);
    }

    /**
     * @notice Update the weight of an existing token
     * @dev Notice Balance is not an input (like with rebind on BPool) since we will require prices not to change
     *      This is achieved by forcing balances to change proportionally to weights, so that prices don't change
     *      If prices could be changed, this would allow the controller to drain the pool by arbing price changes
     * @param token - token to be reweighted
     * @param newWeight - new weight of the token
    */
    function updateWeight(address token, uint newWeight)
        external
        logs
        lock
        onlyOwner
        needsBPool
        virtual
    {
        require(rights.canChangeWeights, "ERR_NOT_CONFIGURABLE_WEIGHTS");

        // We don't want people to set weights manually if there's a block-based update in progress
        require(gradualUpdate.startBlock == 0, "ERR_NO_UPDATE_DURING_GRADUAL");

        // Delegate to library to save space
        SmartPoolManager.updateWeight(IConfigurableRightsPool(address(this)), bPool, token, newWeight);
    }

    /**
     * @notice Update weights in a predetermined way, between startBlock and endBlock,
     *         through external calls to pokeWeights
     * @dev Must call pokeWeights at least once past the end for it to do the final update
     *      and enable calling this again.
     *      It is possible to call updateWeightsGradually during an update in some use cases
     *      For instance, setting newWeights to currentWeights to stop the update where it is
     * @param newWeights - final weights we want to get to. Note that the ORDER (and number) of
     *                     tokens can change if you have added or removed tokens from the pool
     *                     It ensures the counts are correct, but can't help you with the order!
     *                     You can get the underlying BPool (it's public), and call
     *                     getCurrentTokens() to see the current ordering, if you're not sure
     * @param startBlock - when weights should start to change
     * @param endBlock - when weights will be at their final values
    */
    function updateWeightsGradually(
        uint[] calldata newWeights,
        uint startBlock,
        uint endBlock
    )
        external
        logs
        lock
        onlyOwner
        needsBPool
        virtual
    {
        require(rights.canChangeWeights, "ERR_NOT_CONFIGURABLE_WEIGHTS");
         // Don't start this when we're in the middle of adding a new token
        require(!newToken.isCommitted, "ERR_PENDING_TOKEN_ADD");

        // Library computes the startBlock, computes startWeights as the current
        // denormalized weights of the core pool tokens.
        SmartPoolManager.updateWeightsGradually(
            bPool,
            gradualUpdate,
            newWeights,
            startBlock,
            endBlock,
            minimumWeightChangeBlockPeriod
        );
    }

    /**
     * @notice External function called to make the contract update weights according to plan
     * @dev Still works if we poke after the end of the period; also works if the weights don't change
     *      Resets if we are poking beyond the end, so that we can do it again
    */
    function pokeWeights()
        external
        logs
        lock
        needsBPool
        virtual
    {
        require(rights.canChangeWeights, "ERR_NOT_CONFIGURABLE_WEIGHTS");

        // Delegate to library to save space
        SmartPoolManager.pokeWeights(bPool, gradualUpdate);
    }

    /**
     * @notice Schedule (commit) a token to be added; must call applyAddToken after a fixed
     *         number of blocks to actually add the token
     *
     * @dev The purpose of this two-stage commit is to give warning of a potentially dangerous
     *      operation. A malicious pool operator could add a large amount of a low-value token,
     *      then drain the pool through price manipulation. Of course, there are many
     *      legitimate purposes, such as adding additional collateral tokens.
     *
     * @param token - the token to be added
     * @param balance - how much to be added
     * @param denormalizedWeight - the desired token weight
     */
    function commitAddToken(
        address token,
        uint balance,
        uint denormalizedWeight
    )
        external
        logs
        lock
        onlyOwner
        needsBPool
        virtual
    {
        require(rights.canAddRemoveTokens, "ERR_CANNOT_ADD_REMOVE_TOKENS");

        // Can't do this while a progressive update is happening
        require(gradualUpdate.startBlock == 0, "ERR_NO_UPDATE_DURING_GRADUAL");

        SmartPoolManager.verifyTokenCompliance(token);

        emit NewTokenCommitted(token, address(this), msg.sender);

        // Delegate to library to save space
        SmartPoolManager.commitAddToken(
            bPool,
            token,
            balance,
            denormalizedWeight,
            newToken
        );
    }

    /**
     * @notice Add the token previously committed (in commitAddToken) to the pool
     */
    function applyAddToken()
        external
        logs
        lock
        onlyOwner
        needsBPool
        virtual
    {
        require(rights.canAddRemoveTokens, "ERR_CANNOT_ADD_REMOVE_TOKENS");

        // Delegate to library to save space
        SmartPoolManager.applyAddToken(
            IConfigurableRightsPool(address(this)),
            bPool,
            addTokenTimeLockInBlocks,
            newToken
        );
    }

     /**
     * @notice Remove a token from the pool
     * @dev bPool is a contract interface; function calls on it are external
     * @param token - token to remove
     */
    function removeToken(address token)
        external
        logs
        lock
        onlyOwner
        needsBPool
    {
        // It's possible to have remove rights without having add rights
        require(rights.canAddRemoveTokens,"ERR_CANNOT_ADD_REMOVE_TOKENS");
        // After createPool, token list is maintained in the underlying BPool
        require(!newToken.isCommitted, "ERR_REMOVE_WITH_ADD_PENDING");

        // Delegate to library to save space
        SmartPoolManager.removeToken(IConfigurableRightsPool(address(this)), bPool, token);
    }

    /**
     * @notice Join a pool
     * @dev Emits a LogJoin event (for each token)
     *      bPool is a contract interface; function calls on it are external
     * @param poolAmountOut - number of pool tokens to receive
     * @param maxAmountsIn - Max amount of asset tokens to spend
     */
    function joinPool(uint poolAmountOut, uint[] calldata maxAmountsIn)
        external
        logs
        lock
        needsBPool
        lockUnderlyingPool
    {
        require(!rights.canWhitelistLPs || _liquidityProviderWhitelist[msg.sender],
                "ERR_NOT_ON_WHITELIST");

        // Delegate to library to save space

        // Library computes actualAmountsIn, and does many validations
        // Cannot call the push/pull/min from an external library for
        // any of these pool functions. Since msg.sender can be anybody,
        // they must be internal
        uint[] memory actualAmountsIn = SmartPoolManager.joinPool(
                                            IConfigurableRightsPool(address(this)),
                                            bPool,
                                            poolAmountOut,
                                            maxAmountsIn
                                        );

        // After createPool, token list is maintained in the underlying BPool
        address[] memory poolTokens = bPool.getCurrentTokens();

        for (uint i = 0; i < poolTokens.length; i++) {
            address t = poolTokens[i];
            uint tokenAmountIn = actualAmountsIn[i];

            emit LogJoin(msg.sender, t, tokenAmountIn);

            _pullUnderlying(t, msg.sender, tokenAmountIn);
        }

        _mintPoolShare(poolAmountOut);
        _pushPoolShare(msg.sender, poolAmountOut);
    }

    /**
     * @notice Exit a pool - redeem pool tokens for underlying assets
     * @dev Emits a LogExit event for each token
     *      bPool is a contract interface; function calls on it are external
     * @param poolAmountIn - amount of pool tokens to redeem
     * @param minAmountsOut - minimum amount of asset tokens to receive
     */
    function exitPool(uint poolAmountIn, uint[] calldata minAmountsOut)
        external
        logs
        lock
        needsBPool
        lockUnderlyingPool
    {
        // Delegate to library to save space

        // Library computes actualAmountsOut, and does many validations
        // Also computes the exitFee and pAiAfterExitFee
        (uint exitFee,
         uint pAiAfterExitFee,
         uint[] memory actualAmountsOut) = SmartPoolManager.exitPool(
                                               IConfigurableRightsPool(address(this)),
                                               bPool,
                                               poolAmountIn,
                                               minAmountsOut
                                           );

        _pullPoolShare(msg.sender, poolAmountIn);
        _pushPoolShare(address(bFactory), exitFee);
        _burnPoolShare(pAiAfterExitFee);

        // After createPool, token list is maintained in the underlying BPool
        address[] memory poolTokens = bPool.getCurrentTokens();

        for (uint i = 0; i < poolTokens.length; i++) {
            address t = poolTokens[i];
            uint tokenAmountOut = actualAmountsOut[i];

            emit LogExit(msg.sender, t, tokenAmountOut);

            _pushUnderlying(t, msg.sender, tokenAmountOut);
        }
    }

    /**
     * @notice Join by swapping a fixed amount of an external token in (must be present in the pool)
     *         System calculates the pool token amount
     * @dev emits a LogJoin event
     * @param tokenIn - which token we're transferring in
     * @param tokenAmountIn - amount of deposit
     * @param minPoolAmountOut - minimum of pool tokens to receive
     * @return poolAmountOut - amount of pool tokens minted and transferred
     */
    function joinswapExternAmountIn(
        address tokenIn,
        uint tokenAmountIn,
        uint minPoolAmountOut
    )
        external
        logs
        lock
        needsBPool
        returns (uint poolAmountOut)
    {
        require(!rights.canWhitelistLPs || _liquidityProviderWhitelist[msg.sender],
                "ERR_NOT_ON_WHITELIST");

        // Delegate to library to save space
        poolAmountOut = SmartPoolManager.joinswapExternAmountIn(
                            IConfigurableRightsPool(address(this)),
                            bPool,
                            tokenIn,
                            tokenAmountIn,
                            minPoolAmountOut
                        );

        emit LogJoin(msg.sender, tokenIn, tokenAmountIn);

        _mintPoolShare(poolAmountOut);
        _pushPoolShare(msg.sender, poolAmountOut);
        _pullUnderlying(tokenIn, msg.sender, tokenAmountIn);

        return poolAmountOut;
    }

    /**
     * @notice Join by swapping an external token in (must be present in the pool)
     *         To receive an exact amount of pool tokens out. System calculates the deposit amount
     * @dev emits a LogJoin event
     * @param tokenIn - which token we're transferring in (system calculates amount required)
     * @param poolAmountOut - amount of pool tokens to be received
     * @param maxAmountIn - Maximum asset tokens that can be pulled to pay for the pool tokens
     * @return tokenAmountIn - amount of asset tokens transferred in to purchase the pool tokens
     */
    function joinswapPoolAmountOut(
        address tokenIn,
        uint poolAmountOut,
        uint maxAmountIn
    )
        external
        logs
        lock
        needsBPool
        returns (uint tokenAmountIn)
    {
        require(!rights.canWhitelistLPs || _liquidityProviderWhitelist[msg.sender],
                "ERR_NOT_ON_WHITELIST");

        // Delegate to library to save space
        tokenAmountIn = SmartPoolManager.joinswapPoolAmountOut(
                            IConfigurableRightsPool(address(this)),
                            bPool,
                            tokenIn,
                            poolAmountOut,
                            maxAmountIn
                        );

        emit LogJoin(msg.sender, tokenIn, tokenAmountIn);

        _mintPoolShare(poolAmountOut);
        _pushPoolShare(msg.sender, poolAmountOut);
        _pullUnderlying(tokenIn, msg.sender, tokenAmountIn);

        return tokenAmountIn;
    }

    /**
     * @notice Exit a pool - redeem a specific number of pool tokens for an underlying asset
     *         Asset must be present in the pool, and will incur an EXIT_FEE (if set to non-zero)
     * @dev Emits a LogExit event for the token
     * @param tokenOut - which token the caller wants to receive
     * @param poolAmountIn - amount of pool tokens to redeem
     * @param minAmountOut - minimum asset tokens to receive
     * @return tokenAmountOut - amount of asset tokens returned
     */
    function exitswapPoolAmountIn(
        address tokenOut,
        uint poolAmountIn,
        uint minAmountOut
    )
        external
        logs
        lock
        needsBPool
        returns (uint tokenAmountOut)
    {
        // Delegate to library to save space

        // Calculates final amountOut, and the fee and final amount in
        (uint exitFee,
         uint amountOut) = SmartPoolManager.exitswapPoolAmountIn(
                               IConfigurableRightsPool(address(this)),
                               bPool,
                               tokenOut,
                               poolAmountIn,
                               minAmountOut
                           );

        tokenAmountOut = amountOut;
        uint pAiAfterExitFee = BalancerSafeMath.bsub(poolAmountIn, exitFee);

        emit LogExit(msg.sender, tokenOut, tokenAmountOut);

        _pullPoolShare(msg.sender, poolAmountIn);
        _burnPoolShare(pAiAfterExitFee);
        _pushPoolShare(address(bFactory), exitFee);
        _pushUnderlying(tokenOut, msg.sender, tokenAmountOut);

        return tokenAmountOut;
    }

    /**
     * @notice Exit a pool - redeem pool tokens for a specific amount of underlying assets
     *         Asset must be present in the pool
     * @dev Emits a LogExit event for the token
     * @param tokenOut - which token the caller wants to receive
     * @param tokenAmountOut - amount of underlying asset tokens to receive
     * @param maxPoolAmountIn - maximum pool tokens to be redeemed
     * @return poolAmountIn - amount of pool tokens redeemed
     */
    function exitswapExternAmountOut(
        address tokenOut,
        uint tokenAmountOut,
        uint maxPoolAmountIn
    )
        external
        logs
        lock
        needsBPool
        returns (uint poolAmountIn)
    {
        // Delegate to library to save space

        // Calculates final amounts in, accounting for the exit fee
        (uint exitFee,
         uint amountIn) = SmartPoolManager.exitswapExternAmountOut(
                              IConfigurableRightsPool(address(this)),
                              bPool,
                              tokenOut,
                              tokenAmountOut,
                              maxPoolAmountIn
                          );

        poolAmountIn = amountIn;
        uint pAiAfterExitFee = BalancerSafeMath.bsub(poolAmountIn, exitFee);

        emit LogExit(msg.sender, tokenOut, tokenAmountOut);

        _pullPoolShare(msg.sender, poolAmountIn);
        _burnPoolShare(pAiAfterExitFee);
        _pushPoolShare(address(bFactory), exitFee);
        _pushUnderlying(tokenOut, msg.sender, tokenAmountOut);

        return poolAmountIn;
    }

    /**
     * @notice Add to the whitelist of liquidity providers (if enabled)
     * @param provider - address of the liquidity provider
     */
    function whitelistLiquidityProvider(address provider)
        external
        onlyOwner
        lock
        logs
    {
        require(rights.canWhitelistLPs, "ERR_CANNOT_WHITELIST_LPS");
        require(provider != address(0), "ERR_INVALID_ADDRESS");

        _liquidityProviderWhitelist[provider] = true;
    }

    /**
     * @notice Remove from the whitelist of liquidity providers (if enabled)
     * @param provider - address of the liquidity provider
     */
    function removeWhitelistedLiquidityProvider(address provider)
        external
        onlyOwner
        lock
        logs
    {
        require(rights.canWhitelistLPs, "ERR_CANNOT_WHITELIST_LPS");
        require(_liquidityProviderWhitelist[provider], "ERR_LP_NOT_WHITELISTED");
        require(provider != address(0), "ERR_INVALID_ADDRESS");

        _liquidityProviderWhitelist[provider] = false;
    }

    /**
     * @notice Check if an address is a liquidity provider
     * @dev If the whitelist feature is not enabled, anyone can provide liquidity (assuming finalized)
     * @return boolean value indicating whether the address can join a pool
     */
    function canProvideLiquidity(address provider)
        external
        view
        returns(bool)
    {
        if (rights.canWhitelistLPs) {
            return _liquidityProviderWhitelist[provider];
        }
        else {
            // Probably don't strictly need this (could just return true)
            // But the null address can't provide funds
            return provider != address(0);
        }
    }

    /**
     * @notice Getter for specific permissions
     * @dev value of the enum is just the 0-based index in the enumeration
     *      For instance canPauseSwapping is 0; canChangeWeights is 2
     * @return token boolean true if we have the given permission
    */
    function hasPermission(RightsManager.Permissions permission)
        external
        view
        virtual
        returns(bool)
    {
        return RightsManager.hasPermission(rights, permission);
    }

    /**
     * @notice Get the denormalized weight of a token
     * @dev viewlock to prevent calling if it's being updated
     * @return token weight
     */
    function getDenormalizedWeight(address token)
        external
        view
        viewlock
        needsBPool
        returns (uint)
    {
        return bPool.getDenormalizedWeight(token);
    }

    /**
     * @notice Getter for the RightsManager contract
     * @dev Convenience function to get the address of the RightsManager library (so clients can check version)
     * @return address of the RightsManager library
    */
    function getRightsManagerVersion() external pure returns (address) {
        return address(RightsManager);
    }

    /**
     * @notice Getter for the BalancerSafeMath contract
     * @dev Convenience function to get the address of the BalancerSafeMath library (so clients can check version)
     * @return address of the BalancerSafeMath library
    */
    function getBalancerSafeMathVersion() external pure returns (address) {
        return address(BalancerSafeMath);
    }

    /**
     * @notice Getter for the SmartPoolManager contract
     * @dev Convenience function to get the address of the SmartPoolManager library (so clients can check version)
     * @return address of the SmartPoolManager library
    */
    function getSmartPoolManagerVersion() external pure returns (address) {
        return address(SmartPoolManager);
    }

    // Public functions

    // "Public" versions that can safely be called from SmartPoolManager
    // Allows only the contract itself to call them (not the controller or any external account)

    function mintPoolShareFromLib(uint amount) public {
        require (msg.sender == address(this), "ERR_NOT_CONTROLLER");

        _mint(amount);
    }

    function pushPoolShareFromLib(address to, uint amount) public {
        require (msg.sender == address(this), "ERR_NOT_CONTROLLER");

        _push(to, amount);
    }

    function pullPoolShareFromLib(address from, uint amount) public  {
        require (msg.sender == address(this), "ERR_NOT_CONTROLLER");

        _pull(from, amount);
    }

    function burnPoolShareFromLib(uint amount) public  {
        require (msg.sender == address(this), "ERR_NOT_CONTROLLER");

        _burn(amount);
    }

    // Internal functions

    // Lint wants the function to have a leading underscore too
    /* solhint-disable private-vars-leading-underscore */

    /**
     * @notice Create a new Smart Pool
     * @dev Initialize the swap fee to the value provided in the CRP constructor
     *      Can be changed if the canChangeSwapFee permission is enabled
     * @param initialSupply starting token balance
     */
    function createPoolInternal(uint initialSupply) internal {
        require(address(bPool) == address(0), "ERR_IS_CREATED");
        require(initialSupply >= BalancerConstants.MIN_POOL_SUPPLY, "ERR_INIT_SUPPLY_MIN");
        require(initialSupply <= BalancerConstants.MAX_POOL_SUPPLY, "ERR_INIT_SUPPLY_MAX");

        // If the controller can change the cap, initialize it to the initial supply
        // Defensive programming, so that there is no gap between creating the pool
        // (initialized to unlimited in the constructor), and setting the cap,
        // which they will presumably do if they have this right.
        if (rights.canChangeCap) {
            bspCap = initialSupply;
        }

        // There is technically reentrancy here, since we're making external calls and
        // then transferring tokens. However, the external calls are all to the underlying BPool

        // To the extent possible, modify state variables before calling functions
        _mintPoolShare(initialSupply);
        _pushPoolShare(msg.sender, initialSupply);

        // Deploy new BPool (bFactory and bPool are interfaces; all calls are external)
        bPool = bFactory.newBPool();

        // EXIT_FEE must always be zero, or ConfigurableRightsPool._pushUnderlying will fail
        require(bPool.EXIT_FEE() == 0, "ERR_NONZERO_EXIT_FEE");
        require(BalancerConstants.EXIT_FEE == 0, "ERR_NONZERO_EXIT_FEE");

        for (uint i = 0; i < _initialTokens.length; i++) {
            address t = _initialTokens[i];
            uint bal = _initialBalances[i];
            uint denorm = gradualUpdate.startWeights[i];

            bool returnValue = IERC20(t).transferFrom(msg.sender, address(this), bal);
            require(returnValue, "ERR_ERC20_FALSE");

            returnValue = IERC20(t).safeApprove(address(bPool), BalancerConstants.MAX_UINT);
            require(returnValue, "ERR_ERC20_FALSE");

            bPool.bind(t, bal, denorm);
        }

        while (_initialTokens.length > 0) {
            // Modifying state variable after external calls here,
            // but not essential, so not dangerous
            _initialTokens.pop();
        }

        // Set fee to the initial value set in the constructor
        // Hereafter, read the swapFee from the underlying pool, not the local state variable
        bPool.setSwapFee(_initialSwapFee);
        bPool.setPublicSwap(true);

        // "destroy" the temporary swap fee (like _initialTokens above) in case a subclass tries to use it
        _initialSwapFee = 0;
    }

    /* solhint-enable private-vars-leading-underscore */

    // Rebind BPool and pull tokens from address
    // bPool is a contract interface; function calls on it are external
    function _pullUnderlying(address erc20, address from, uint amount) internal needsBPool {
        // Gets current Balance of token i, Bi, and weight of token i, Wi, from BPool.
        uint tokenBalance = bPool.getBalance(erc20);
        uint tokenWeight = bPool.getDenormalizedWeight(erc20);

        bool xfer = IERC20(erc20).transferFrom(from, address(this), amount);
        require(xfer, "ERR_ERC20_FALSE");
        bPool.rebind(erc20, BalancerSafeMath.badd(tokenBalance, amount), tokenWeight);
    }

    // Rebind BPool and push tokens to address
    // bPool is a contract interface; function calls on it are external
    function _pushUnderlying(address erc20, address to, uint amount) internal needsBPool {
        // Gets current Balance of token i, Bi, and weight of token i, Wi, from BPool.
        uint tokenBalance = bPool.getBalance(erc20);
        uint tokenWeight = bPool.getDenormalizedWeight(erc20);
        bPool.rebind(erc20, BalancerSafeMath.bsub(tokenBalance, amount), tokenWeight);

        bool xfer = IERC20(erc20).transfer(to, amount);
        require(xfer, "ERR_ERC20_FALSE");
    }

    // Wrappers around corresponding core functions

    //
    function _mint(uint amount) internal override {
        super._mint(amount);
        require(varTotalSupply <= bspCap, "ERR_CAP_LIMIT_REACHED");
    }

    function _mintPoolShare(uint amount) internal {
        _mint(amount);
    }

    function _pushPoolShare(address to, uint amount) internal {
        _push(to, amount);
    }

    function _pullPoolShare(address from, uint amount) internal  {
        _pull(from, amount);
    }

    function _burnPoolShare(uint amount) internal  {
        _burn(amount);
    }
}

// File: contracts/AmplElasticCRP.sol




// Needed to handle structures externally

// Imports


/**
 * @author Ampleforth engineering team & Balancer Labs
 *
 * Reference:
 * https://github.com/balancer-labs/configurable-rights-pool/blob/master/contracts/templates/ElasticSupplyPool.sol
 *
 * @title Ampl Elastic Configurable Rights Pool.
 *
 * @dev   Extension of Balancer labs' configurable rights pool (smart-pool).
 *        Amples are a dynamic supply tokens, supply and individual balances change daily by a Rebase operation.
 *        In constant-function markets, Ampleforth's supply adjustments result in Impermanent Loss (IL)
 *        to liquidity providers. The AmplElasticCRP is an extension of Balancer Lab's
 *        ConfigurableRightsPool which mitigates IL induced by supply adjustments.
 *
 *        It accomplishes this by doing the following mechanism:
 *        The `resyncWeight` method will be invoked atomically after rebase through Ampleforth's orchestrator.
 *
 *        When rebase changes supply, ampl weight is updated to the geometric mean of
 *        the current ampl weight and the target. Every other token's weight is updated
 *        proportionally such that relative ratios are same.
 *
 *        Weights: {w_ampl, w_t1 ... w_tn}
 *
 *        Rebase_change: x% (Ample's supply changes by x%, can be positive or negative)
 *
 *        Ample target weight: w_ampl_target = (100+x)/100 * w_ampl
 *
 *        w_ampl_new = sqrt(w_ampl * w_ampl_target)  // geometric mean
 *        for i in tn:
 *           w_ti_new = (w_ampl_new * w_ti) / w_ampl_target
 *
 */
contract AmplElasticCRP is ConfigurableRightsPool {
    constructor(
        address factoryAddress,
        PoolParams memory poolParams,
        RightsManager.Rights memory rightsStruct
    )
    public
    ConfigurableRightsPool(factoryAddress, poolParams, rightsStruct) {

        require(rights.canChangeWeights, "ERR_NOT_CONFIGURABLE_WEIGHTS");

    }

    function updateWeight(address token, uint newWeight)
        external
        logs
        onlyOwner
        needsBPool
        override
    {
        revert("ERR_UNSUPPORTED_OPERATION");
    }

    function updateWeightsGradually(
        uint[] calldata newWeights,
        uint startBlock,
        uint endBlock
    )
        external
        logs
        onlyOwner
        needsBPool
        override
    {
        revert("ERR_UNSUPPORTED_OPERATION");
    }

    function pokeWeights()
        external
        logs
        needsBPool
        override
    {
       revert("ERR_UNSUPPORTED_OPERATION");
    }

    /*
     * @param token The address of the token in the underlying BPool to be weight adjusted.
     * @dev Checks if the token's current pool balance has deviated from cached balance,
     *      if so it adjusts the token's weights proportional to the deviation.
     *      The underlying BPool enforces bounds on MIN_WEIGHTS=1e18, MAX_WEIGHT=50e18 and TOTAL_WEIGHT=50e18.
     *      NOTE: The BPool.rebind function CAN REVERT if the updated weights go beyond the enforced bounds.
     */
    function resyncWeight(address token)
        external
        logs
        lock
        needsBPool
    {

        // NOTE: Skipping gradual update check
        // Pool will never go into gradual update state as `updateWeightsGradually` is disabled
        // require(
        //     ConfigurableRightsPool.gradualUpdate.startBlock == 0,
        //     "ERR_NO_UPDATE_DURING_GRADUAL");

        require(
            IBPool(address(bPool)).isBound(token),
            "ERR_NOT_BOUND");

        // get cached balance
        uint tokenBalanceBefore = IBPool(address(bPool)).getBalance(token);

        // sync balance
        IBPool(address(bPool)).gulp(token);

        // get new balance
        uint tokenBalanceAfter = IBPool(address(bPool)).getBalance(token);

        // No-Op
        if(tokenBalanceBefore == tokenBalanceAfter) {
            return;
        }

        // current token weight
        uint tokenWeightBefore = IBPool(address(bPool)).getDenormalizedWeight(token);

        // target token weight = RebaseRatio * previous token weight
        uint tokenWeightTarget = BalancerSafeMath.bdiv(
            BalancerSafeMath.bmul(tokenWeightBefore, tokenBalanceAfter),
            tokenBalanceBefore
        );

        // new token weight = sqrt(current token weight * target token weight)
        uint tokenWeightAfter = BalancerSafeMath.sqrt(
            BalancerSafeMath.bdiv(
                BalancerSafeMath.bmul(tokenWeightBefore, tokenWeightTarget),
                1
            )
        );


        address[] memory tokens = IBPool(address(bPool)).getCurrentTokens();
        for(uint i=0; i<tokens.length; i++){
            if(tokens[i] == token) {

                // adjust weight
                IBPool(address(bPool)).rebind(token, tokenBalanceAfter, tokenWeightAfter);

            } else {

                uint otherWeightBefore = IBPool(address(bPool)).getDenormalizedWeight(tokens[i]);
                uint otherBalance = bPool.getBalance(tokens[i]);

                // other token weight = (new token weight * other token weight before) / target token weight
                uint otherWeightAfter = BalancerSafeMath.bdiv(
                    BalancerSafeMath.bmul(tokenWeightAfter, otherWeightBefore),
                    tokenWeightTarget
                );

                // adjust weight
                IBPool(address(bPool)).rebind(tokens[i], otherBalance, otherWeightAfter);
            }
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"factoryAddress","type":"address"},{"components":[{"internalType":"string","name":"poolTokenSymbol","type":"string"},{"internalType":"string","name":"poolTokenName","type":"string"},{"internalType":"address[]","name":"constituentTokens","type":"address[]"},{"internalType":"uint256[]","name":"tokenBalances","type":"uint256[]"},{"internalType":"uint256[]","name":"tokenWeights","type":"uint256[]"},{"internalType":"uint256","name":"swapFee","type":"uint256"}],"internalType":"struct ConfigurableRightsPool.PoolParams","name":"poolParams","type":"tuple"},{"components":[{"internalType":"bool","name":"canPauseSwapping","type":"bool"},{"internalType":"bool","name":"canChangeSwapFee","type":"bool"},{"internalType":"bool","name":"canChangeWeights","type":"bool"},{"internalType":"bool","name":"canAddRemoveTokens","type":"bool"},{"internalType":"bool","name":"canWhitelistLPs","type":"bool"},{"internalType":"bool","name":"canChangeCap","type":"bool"}],"internalType":"struct RightsManager.Rights","name":"rightsStruct","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldCap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCap","type":"uint256"}],"name":"CapChanged","type":"event"},{"anonymous":true,"inputs":[{"indexed":true,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogCall","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmountOut","type":"uint256"}],"name":"LogExit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmountIn","type":"uint256"}],"name":"LogJoin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":true,"internalType":"address","name":"caller","type":"address"}],"name":"NewTokenCommitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DECIMALS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADD_TOKEN_TIME_LOCK_IN_BLOCKS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_MIN_WEIGHT_CHANGE_BLOCK_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addTokenTimeLockInBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"applyAddToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bFactory","outputs":[{"internalType":"contract IBFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bPool","outputs":[{"internalType":"contract IBPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bspCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnPoolShareFromLib","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"provider","type":"address"}],"name":"canProvideLiquidity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"denormalizedWeight","type":"uint256"}],"name":"commitAddToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"}],"name":"createPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"uint256","name":"minimumWeightChangeBlockPeriodParam","type":"uint256"},{"internalType":"uint256","name":"addTokenTimeLockInBlocksParam","type":"uint256"}],"name":"createPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"decreaseApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"poolAmountIn","type":"uint256"},{"internalType":"uint256[]","name":"minAmountsOut","type":"uint256[]"}],"name":"exitPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"tokenAmountOut","type":"uint256"},{"internalType":"uint256","name":"maxPoolAmountIn","type":"uint256"}],"name":"exitswapExternAmountOut","outputs":[{"internalType":"uint256","name":"poolAmountIn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"poolAmountIn","type":"uint256"},{"internalType":"uint256","name":"minAmountOut","type":"uint256"}],"name":"exitswapPoolAmountIn","outputs":[{"internalType":"uint256","name":"tokenAmountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBalancerSafeMathVersion","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getController","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getDenormalizedWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRightsManagerVersion","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getSmartPoolManagerVersion","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"gradualUpdate","outputs":[{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum RightsManager.Permissions","name":"permission","type":"uint8"}],"name":"hasPermission","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"increaseApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isPublicSwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"poolAmountOut","type":"uint256"},{"internalType":"uint256[]","name":"maxAmountsIn","type":"uint256[]"}],"name":"joinPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"tokenAmountIn","type":"uint256"},{"internalType":"uint256","name":"minPoolAmountOut","type":"uint256"}],"name":"joinswapExternAmountIn","outputs":[{"internalType":"uint256","name":"poolAmountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"poolAmountOut","type":"uint256"},{"internalType":"uint256","name":"maxAmountIn","type":"uint256"}],"name":"joinswapPoolAmountOut","outputs":[{"internalType":"uint256","name":"tokenAmountIn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minimumWeightChangeBlockPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintPoolShareFromLib","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"newToken","outputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isCommitted","type":"bool"},{"internalType":"uint256","name":"commitBlock","type":"uint256"},{"internalType":"uint256","name":"denorm","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pokeWeights","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"pullPoolShareFromLib","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"pushPoolShareFromLib","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"removeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"provider","type":"address"}],"name":"removeWhitelistedLiquidityProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"resyncWeight","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rights","outputs":[{"internalType":"bool","name":"canPauseSwapping","type":"bool"},{"internalType":"bool","name":"canChangeSwapFee","type":"bool"},{"internalType":"bool","name":"canChangeWeights","type":"bool"},{"internalType":"bool","name":"canAddRemoveTokens","type":"bool"},{"internalType":"bool","name":"canWhitelistLPs","type":"bool"},{"internalType":"bool","name":"canChangeCap","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCap","type":"uint256"}],"name":"setCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"publicSwap","type":"bool"}],"name":"setPublicSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapFee","type":"uint256"}],"name":"setSwapFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"newWeight","type":"uint256"}],"name":"updateWeight","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"newWeights","type":"uint256[]"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"}],"name":"updateWeightsGradually","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"provider","type":"address"}],"name":"whitelistLiquidityProvider","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620057ad380380620057ad8339810160408190526200003491620006fd565b828282816000015182602001518160039080519060200190620000599291906200036d565b5080516200006f9060049060208401906200036d565b5050600580546001600160a01b03191633179055506001600655620f4240670de0b6b3a7640000048260a001511015620000c65760405162461bcd60e51b8152600401620000bd906200095c565b60405180910390fd5b60a082015167016345785d8a00001015620000f55760405162461bcd60e51b8152600401620000bd906200095c565b81604001515182606001515114620001215760405162461bcd60e51b8152600401620000bd90620008f9565b816040015151826080015151146200014d5760405162461bcd60e51b8152600401620000bd906200088b565b60028260400151511015620001765760405162461bcd60e51b8152600401620000bd9062000930565b600882604001515111156200019f5760405162461bcd60e51b8152600401620000bd9062000993565b60408083015190516377d4434960e01b815273a854ecc4d8bf77cad542a04087fc6e0082d43b86916377d4434991620001dc91906004016200083c565b60006040518083038186803b158015620001f557600080fd5b505af41580156200020a573d6000803e3d6000fd5b5050600780546001600160a01b0319166001600160a01b03871617905550508051600980546020808501516040808701516060880151608089015160a08a015160ff199097169815159890981761ff001916610100941515949094029390931762ff0000191662010000911515919091021763ff00000019166301000000921515929092029190911760ff60201b1916640100000000951515959095029490941760ff60281b1916650100000000009215159290920291909117909155908301518051620002dd926013920190620003f2565b5060608201518051620002f99160149160209091019062000458565b5060a082015160125562015f906015556101f4601655608082015180516200032a91600c9160209091019062000458565b50506000600a55505060001960185560095462010000900460ff16620003645760405162461bcd60e51b8152600401620000bd90620008c2565b50505062000a23565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003b057805160ff1916838001178555620003e0565b82800160010185558215620003e0579182015b82811115620003e0578251825591602001919060010190620003c3565b50620003ee92915062000495565b5090565b8280548282559060005260206000209081019282156200044a579160200282015b828111156200044a57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000413565b50620003ee929150620004ac565b828054828255906000526020600020908101928215620003e05791602002820182811115620003e0578251825591602001919060010190620003c3565b5b80821115620003ee576000815560010162000496565b5b80821115620003ee5780546001600160a01b0319168155600101620004ad565b80516001600160a01b0381168114620004e557600080fd5b92915050565b600082601f830112620004fc578081fd5b8151620005136200050d82620009f1565b620009ca565b8181529150602080830190848101818402860182018710156200053557600080fd5b60005b8481101562000560576200054d8883620004cd565b8452928201929082019060010162000538565b505050505092915050565b600082601f8301126200057c578081fd5b81516200058d6200050d82620009f1565b818152915060208083019084810181840286018201871015620005af57600080fd5b60005b848110156200056057815184529282019290820190600101620005b2565b600082601f830112620005e1578081fd5b81516001600160401b03811115620005f7578182fd5b60206200060d601f8301601f19168201620009ca565b925081835284818386010111156200062457600080fd5b60005b828110156200064457848101820151848201830152810162000627565b82811115620006565760008284860101525b50505092915050565b600060c0828403121562000671578081fd5b6200067d60c0620009ca565b905081516200068c8162000a11565b815260208201516200069e8162000a11565b60208201526040820151620006b38162000a11565b60408201526060820151620006c88162000a11565b60608201526080820151620006dd8162000a11565b608082015260a0820151620006f28162000a11565b60a082015292915050565b6000806000610100848603121562000713578283fd5b6200071f8585620004cd565b60208501519093506001600160401b03808211156200073c578384fd5b9085019060c0828803121562000750578384fd5b6200075c60c0620009ca565b8251828111156200076b578586fd5b6200077989828601620005d0565b8252506020830151828111156200078e578586fd5b6200079c89828601620005d0565b602083015250604083015182811115620007b4578586fd5b620007c289828601620004eb565b604083015250606083015182811115620007da578586fd5b620007e8898286016200056b565b60608301525060808301518281111562000800578586fd5b6200080e898286016200056b565b60808301525060a083015160a08201528094505050506200083385604086016200065f565b90509250925092565b6020808252825182820181905260009190848201906040850190845b818110156200087f5783516001600160a01b03168352928401929184019160010162000858565b50909695505050505050565b6020808252601a908201527f4552525f53544152545f574549474854535f4d49534d41544348000000000000604082015260600190565b6020808252601c908201527f4552525f4e4f545f434f4e464947555241424c455f5745494748545300000000604082015260600190565b6020808252601b908201527f4552525f53544152545f42414c414e4345535f4d49534d415443480000000000604082015260600190565b6020808252601290820152714552525f544f4f5f4645575f544f4b454e5360701b604082015260600190565b60208082526014908201527f4552525f494e56414c49445f535741505f464545000000000000000000000000604082015260600190565b60208082526013908201527f4552525f544f4f5f4d414e595f544f4b454e5300000000000000000000000000604082015260600190565b6040518181016001600160401b0381118282101715620009e957600080fd5b604052919050565b60006001600160401b0382111562000a07578081fd5b5060209081020190565b801515811462000a2057600080fd5b50565b614d7a8062000a336000396000f3fe608060405234801561001057600080fd5b50600436106102885760003560e01c806302c967481461028d57806306fdde03146102b6578063095dcccc146102cb578063095ea7b3146102e05780630a165940146103005780630ce27925146103155780630f93ab471461031d57806318160ddd14610330578063220eb7601461033857806323b872dd1461034b578063246bc19b1461035e5780632e0f2625146103715780633018205f14610386578063313ce5671461038e57806334e199071461039657806337c6f4d9146103a957806346ab38f1146103bc57806347786d37146103cf57806349b59552146103e25780634ba57882146103f55780634c20d209146104085780634f69c0d41461041b57806355c32a231461042e5780635a8342d8146104415780635db34277146104575780635fa7b5841461046a578063661884631461047d5780636d06dfa01461049057806370a08231146104a357806374983a0d146104b6578063806c6f87146104be5780638259e6a0146104d157806392eefe9b146104e4578063948d8ce6146104f757806395d89b411461050a5780639776e94b14610512578063980e8db6146105205780639a82417e1461053a5780639d829c2b14610542578063a3f4df7e1461054a578063a835a0de14610552578063a9059cbb1461055a578063b02f0b731461056d578063b64ef17b14610580578063c275d81b14610588578063c3391d2714610590578063c42bd05a146105a3578063c83a1c2d146105bc578063d73dd623146105cf578063dd62ed3e146105e2578063e211b875146105f5578063e2762d4b146105fd578063e7f1a55414610610578063e854f53d14610618578063f226b52814610620578063fde924f714610628575b600080fd5b6102a061029b3660046140fa565b610630565b6040516102ad9190614c2d565b60405180910390f35b6102be6107e5565b6040516102ad919061460d565b6102de6102d93660046140cf565b61087b565b005b6102f36102ee3660046140cf565b6108a8565b6040516102ad9190614496565b610308610901565b6040516102ad91906143dc565b6102a0610910565b6102de61032b36600461403b565b610916565b6102a0610f86565b6102de6103463660046142c1565b610f8c565b6102f361035936600461408f565b610fb7565b6102de61036c3660046141c6565b6110e5565b610379611189565b6040516102ad9190614c44565b61030861118e565b61037961119d565b6102de6103a43660046142c1565b6111a2565b6102f36103b73660046142a2565b6112e7565b6102a06103ca3660046140fa565b61137c565b6102de6103dd3660046142c1565b611518565b6102de6103f036600461424e565b611644565b6102de6104033660046142c1565b61174a565b6102de6104163660046140fa565b611772565b6102de6104293660046142f1565b611993565b6102de61043c3660046140cf565b611d82565b610449611dab565b6040516102ad929190614c36565b6102a06104653660046140fa565b611db4565b6102de61047836600461403b565b611f67565b6102f361048b3660046140cf565b6120e2565b6102a061049e3660046140fa565b6121bc565b6102a06104b136600461403b565b61236f565b61030861238a565b6102f36104cc36600461403b565b6123a2565b6102de6104df3660046142c1565b6123eb565b6102de6104f236600461403b565b612480565b6102a061050536600461403b565b61252c565b6102be6125f9565b6102de61036c3660046140cf565b61052861265a565b6040516102ad969594939291906144a1565b610308612693565b6103086126ab565b6102be6126c3565b6102a06126f2565b6102f36105683660046140cf565b6126f8565b6102de61057b3660046142f1565b612734565b610308612ab6565b6102de612ac5565b6102de61059e3660046143ab565b612c24565b6105ab612ced565b6040516102ad95949392919061442e565b6102de6105ca36600461403b565b612d14565b6102f36105dd3660046140cf565b612e07565b6102a06105f0366004614057565b612e7b565b6102de612ea6565b6102de61060b36600461403b565b612f08565b6102a061302f565b6102a0613035565b6102a061303b565b6102f3613042565b60405160009033906001600160e01b03198335169061065290849036906144d1565b60405180910390a2600260065414156106865760405162461bcd60e51b815260040161067d906148b9565b60405180910390fd5b60026006556008546001600160a01b03166106b35760405162461bcd60e51b815260040161067d90614811565b60085460405163724a2d5360e01b8152600091829173a854ecc4d8bf77cad542a04087fc6e0082d43b869163724a2d53916107049130916001600160a01b03909116908b908b908b90600401614554565b604080518083038186803b15801561071b57600080fd5b505af415801561072f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610753919061433a565b915091508092506000610766848461311a565b9050866001600160a01b0316336001600160a01b0316600080516020614cc5833981519152886040516107999190614c2d565b60405180910390a36107ab3385611da1565b6107b481610fab565b6007546107ca906001600160a01b03168461089a565b6107d5873388613153565b5050505b60016006559392505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108715780601f1061084657610100808354040283529160200191610871565b820191906000526020600020905b81548152906001019060200180831161085457829003601f168201915b5050505050905090565b33301461089a5760405162461bcd60e51b815260040161067d90614660565b6108a4828261339c565b5050565b3360008181526002602090815260408083206001600160a01b03871680855292528083208590555191929091600080516020614d05833981519152906108ef908690614c2d565b60405180910390a35060015b92915050565b6007546001600160a01b031681565b60185481565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516109489291906144d1565b60405180910390a2600260065414156109735760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b03166109a05760405162461bcd60e51b815260040161067d90614811565b600854604051630bcded8960e21b81526001600160a01b0390911690632f37b624906109d09084906004016143dc565b60206040518083038186803b1580156109e857600080fd5b505afa1580156109fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a20919061426a565b610a3c5760405162461bcd60e51b815260040161067d906148de565b60085460405163f8b2cb4f60e01b81526000916001600160a01b03169063f8b2cb4f90610a6d9085906004016143dc565b60206040518083038186803b158015610a8557600080fd5b505afa158015610a99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abd91906142d9565b600854604051631185197d60e31b81529192506001600160a01b031690638c28cbe890610aee9085906004016143dc565b600060405180830381600087803b158015610b0857600080fd5b505af1158015610b1c573d6000803e3d6000fd5b505060085460405163f8b2cb4f60e01b8152600093506001600160a01b03909116915063f8b2cb4f90610b539086906004016143dc565b60206040518083038186803b158015610b6b57600080fd5b505afa158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba391906142d9565b905080821415610bb4575050610f7e565b600854604051634a46c67360e11b81526000916001600160a01b03169063948d8ce690610be59087906004016143dc565b60206040518083038186803b158015610bfd57600080fd5b505afa158015610c11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3591906142d9565b90506000610c4c610c4683856133a7565b85613424565b90506000610c6c610c67610c6085856133a7565b6001613424565b6134b5565b90506060600860009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b158015610cbe57600080fd5b505afa158015610cd2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610cfa919081019061412e565b905060005b8151811015610f7657876001600160a01b0316828281518110610d1e57fe5b60200260200101516001600160a01b03161415610da057600854604051631feeed5160e11b81526001600160a01b0390911690633fdddaa290610d69908b908a908890600401614475565b600060405180830381600087803b158015610d8357600080fd5b505af1158015610d97573d6000803e3d6000fd5b50505050610f6e565b60085482516000916001600160a01b03169063948d8ce690859085908110610dc457fe5b60200260200101516040518263ffffffff1660e01b8152600401610de891906143dc565b60206040518083038186803b158015610e0057600080fd5b505afa158015610e14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3891906142d9565b60085484519192506000916001600160a01b039091169063f8b2cb4f90869086908110610e6157fe5b60200260200101516040518263ffffffff1660e01b8152600401610e8591906143dc565b60206040518083038186803b158015610e9d57600080fd5b505afa158015610eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed591906142d9565b90506000610eec610ee687856133a7565b88613424565b60085486519192506001600160a01b031690633fdddaa290879087908110610f1057fe5b602002602001015184846040518463ffffffff1660e01b8152600401610f3893929190614475565b600060405180830381600087803b158015610f5257600080fd5b505af1158015610f66573d6000803e3d6000fd5b505050505050505b600101610cff565b505050505050505b506001600655565b60005490565b333014610fab5760405162461bcd60e51b815260040161067d90614660565b610fb481613506565b50565b60006001600160a01b038316610fdf5760405162461bcd60e51b815260040161067d90614785565b336001600160a01b038516148061101957506001600160a01b03841660009081526002602090815260408083203384529091529020548211155b6110355760405162461bcd60e51b815260040161067d90614a38565b61104084848461356e565b6001600160a01b038416600081815260026020908152604080832033808552925290912054911480159061107657506000198114155b156110d857611085818461311a565b6001600160a01b038681166000908152600260209081526040808320338085529252918290208490559051918716929091600080516020614d05833981519152916110cf91614c2d565b60405180910390a35b60019150505b9392505050565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516111179291906144d1565b60405180910390a26005546001600160a01b031633146111495760405162461bcd60e51b815260040161067d90614660565b6008546001600160a01b03166111715760405162461bcd60e51b815260040161067d90614811565b60405162461bcd60e51b815260040161067d906146f7565b601281565b6005546001600160a01b031690565b601290565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516111d49291906144d1565b60405180910390a2600260065414156111ff5760405162461bcd60e51b815260040161067d906148b9565b60026006556005546001600160a01b0316331461122e5760405162461bcd60e51b815260040161067d90614660565b6008546001600160a01b03166112565760405162461bcd60e51b815260040161067d90614811565b600954610100900460ff1661127d5760405162461bcd60e51b815260040161067d90614b4a565b6008546040516334e1990760e01b81526001600160a01b03909116906334e19907906112ad908490600401614c2d565b600060405180830381600087803b1580156112c757600080fd5b505af11580156112db573d6000803e3d6000fd5b50506001600655505050565b6040516322c1aa2560e11b8152600090732992a06af9b5e156cd6574049d37ad8da52b9e2890634583544a90611324906009908690600401614bb7565b60206040518083038186803b15801561133c57600080fd5b505af4158015611350573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611374919061426a565b90505b919050565b60405160009033906001600160e01b03198335169061139e90849036906144d1565b60405180910390a2600260065414156113c95760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b03166113f65760405162461bcd60e51b815260040161067d90614811565b600854604051636a82d4a760e11b8152600091829173a854ecc4d8bf77cad542a04087fc6e0082d43b869163d505a94e916114479130916001600160a01b03909116908b908b908b90600401614554565b604080518083038186803b15801561145e57600080fd5b505af4158015611472573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611496919061433a565b9150915080925060006114a9868461311a565b9050866001600160a01b0316336001600160a01b0316600080516020614cc5833981519152866040516114dc9190614c2d565b60405180910390a36114ee3387611da1565b6114f781610fab565b60075461150d906001600160a01b03168461089a565b6107d5873386613153565b336001600160a01b03166000356001600160e01b0319166001600160e01b03191660003660405161154a9291906144d1565b60405180910390a2600260065414156115755760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b03166115a25760405162461bcd60e51b815260040161067d90614811565b6005546001600160a01b031633146115cc5760405162461bcd60e51b815260040161067d90614660565b600954600160281b900460ff166115f55760405162461bcd60e51b815260040161067d90614986565b336001600160a01b03167f6bc200110c7794738d401810b22ef824a2044a8ccb022d4ad8769840370331f560185483604051611632929190614c36565b60405180910390a26018556001600655565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516116769291906144d1565b60405180910390a2600260065414156116a15760405162461bcd60e51b815260040161067d906148b9565b60026006556005546001600160a01b031633146116d05760405162461bcd60e51b815260040161067d90614660565b6008546001600160a01b03166116f85760405162461bcd60e51b815260040161067d90614811565b60095460ff1661171a5760405162461bcd60e51b815260040161067d90614ac6565b6008546040516324dacaa960e11b81526001600160a01b03909116906349b59552906112ad908490600401614496565b3330146117695760405162461bcd60e51b815260040161067d90614660565b610fb48161360d565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516117a49291906144d1565b60405180910390a2600260065414156117cf5760405162461bcd60e51b815260040161067d906148b9565b60026006556005546001600160a01b031633146117fe5760405162461bcd60e51b815260040161067d90614660565b6008546001600160a01b03166118265760405162461bcd60e51b815260040161067d90614811565b6009546301000000900460ff1661184f5760405162461bcd60e51b815260040161067d9061468c565b600a541561186f5760405162461bcd60e51b815260040161067d90614b81565b604051630e0d789b60e11b815273a854ecc4d8bf77cad542a04087fc6e0082d43b8690631c1af136906118a69086906004016143dc565b60006040518083038186803b1580156118be57600080fd5b505af41580156118d2573d6000803e3d6000fd5b50506040513392503091506001600160a01b038616907f33b043686b9408a355896fe90b2f8ecc86a41d87d1554ef65a739948b4f23e2790600090a460085460405163b489ec1960e01b815273a854ecc4d8bf77cad542a04087fc6e0082d43b869163b489ec1991611959916001600160a01b031690879087908790600e90600401614500565b60006040518083038186803b15801561197157600080fd5b505af4158015611985573d6000803e3d6000fd5b505060016006555050505050565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516119c59291906144d1565b60405180910390a2600260065414156119f05760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b0316611a1d5760405162461bcd60e51b815260040161067d90614811565b6008546040805163fde924f760e01b815290516000926001600160a01b03169163fde924f7916004808301926020929190829003018186803b158015611a6257600080fd5b505afa158015611a76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9a919061426a565b6008546040516324dacaa960e11b81529192506001600160a01b0316906349b5955290611acc90600090600401614496565b600060405180830381600087803b158015611ae657600080fd5b505af1158015611afa573d6000803e3d6000fd5b5050600954600160201b900460ff16159150819050611b2857503360009081526017602052604090205460ff165b611b445760405162461bcd60e51b815260040161067d9061472a565b60085460405163a1925f1d60e01b815260609173a854ecc4d8bf77cad542a04087fc6e0082d43b869163a1925f1d91611b919130916001600160a01b0316908a908a908a90600401614588565b60006040518083038186803b158015611ba957600080fd5b505af4158015611bbd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611be59190810190614214565b90506060600860009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b158015611c3757600080fd5b505afa158015611c4b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c73919081019061412e565b905060005b8151811015611cff576000828281518110611c8f57fe5b602002602001015190506000848381518110611ca757fe5b60200260200101519050816001600160a01b0316336001600160a01b0316600080516020614d2583398151915283604051611ce29190614c2d565b60405180910390a3611cf582338361363a565b5050600101611c78565b50611d0986611769565b611d13338761089a565b50506008546040516324dacaa960e11b81526001600160a01b03909116906349b5955290611d45908490600401614496565b600060405180830381600087803b158015611d5f57600080fd5b505af1158015611d73573d6000803e3d6000fd5b50506001600655505050505050565b333014611da15760405162461bcd60e51b815260040161067d90614660565b6108a48282613883565b600a54600b5482565b60405160009033906001600160e01b031983351690611dd690849036906144d1565b60405180910390a260026006541415611e015760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b0316611e2e5760405162461bcd60e51b815260040161067d90614811565b600954600160201b900460ff161580611e5657503360009081526017602052604090205460ff165b611e725760405162461bcd60e51b815260040161067d9061472a565b60085460405163df90de0b60e01b815273a854ecc4d8bf77cad542a04087fc6e0082d43b869163df90de0b91611ebe9130916001600160a01b0390911690899089908990600401614554565b60206040518083038186803b158015611ed657600080fd5b505af4158015611eea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0e91906142d9565b9050836001600160a01b0316336001600160a01b0316600080516020614d2583398151915285604051611f419190614c2d565b60405180910390a3611f5281611769565b611f5c338261089a565b6107d984338561363a565b336001600160a01b03166000356001600160e01b0319166001600160e01b031916600036604051611f999291906144d1565b60405180910390a260026006541415611fc45760405162461bcd60e51b815260040161067d906148b9565b60026006556005546001600160a01b03163314611ff35760405162461bcd60e51b815260040161067d90614660565b6008546001600160a01b031661201b5760405162461bcd60e51b815260040161067d90614811565b6009546301000000900460ff166120445760405162461bcd60e51b815260040161067d9061468c565b600e54600160a01b900460ff161561206e5760405162461bcd60e51b815260040161067d90614a68565b600854604051630970e47f60e01b815273a854ecc4d8bf77cad542a04087fc6e0082d43b8691630970e47f916120b69130916001600160a01b03909116908690600401614531565b60006040518083038186803b1580156120ce57600080fd5b505af41580156112db573d6000803e3d6000fd5b3360009081526002602090815260408083206001600160a01b0386168452909152812054808310612136573360009081526002602090815260408083206001600160a01b0388168452909152812055612165565b612140818461311a565b3360009081526002602090815260408083206001600160a01b03891684529091529020555b3360008181526002602090815260408083206001600160a01b038916808552925291829020549151909291600080516020614d05833981519152916121aa9190614c2d565b60405180910390a35060019392505050565b60405160009033906001600160e01b0319833516906121de90849036906144d1565b60405180910390a2600260065414156122095760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b03166122365760405162461bcd60e51b815260040161067d90614811565b600954600160201b900460ff16158061225e57503360009081526017602052604090205460ff165b61227a5760405162461bcd60e51b815260040161067d9061472a565b600854604051636a6dc6e760e01b815273a854ecc4d8bf77cad542a04087fc6e0082d43b8691636a6dc6e7916122c69130916001600160a01b0390911690899089908990600401614554565b60206040518083038186803b1580156122de57600080fd5b505af41580156122f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231691906142d9565b9050836001600160a01b0316336001600160a01b0316600080516020614d25833981519152836040516123499190614c2d565b60405180910390a361235a83611769565b612364338461089a565b6107d984338361363a565b6001600160a01b031660009081526001602052604090205490565b732992a06af9b5e156cd6574049d37ad8da52b9e2890565b600954600090600160201b900460ff16156123d957506001600160a01b03811660009081526017602052604090205460ff16611377565b506001600160a01b0381161515611377565b6005546001600160a01b031633146124155760405162461bcd60e51b815260040161067d90614660565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516124479291906144d1565b60405180910390a2600260065414156124725760405162461bcd60e51b815260040161067d906148b9565b6002600655610f7e8161388e565b6005546001600160a01b031633146124aa5760405162461bcd60e51b815260040161067d90614660565b6001600160a01b0381166124d05760405162461bcd60e51b815260040161067d90614785565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000600260065414156125515760405162461bcd60e51b815260040161067d90614905565b6008546001600160a01b03166125795760405162461bcd60e51b815260040161067d90614811565b600854604051634a46c67360e11b81526001600160a01b039091169063948d8ce6906125a99085906004016143dc565b60206040518083038186803b1580156125c157600080fd5b505afa1580156125d5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137491906142d9565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108715780601f1061084657610100808354040283529160200191610871565b60095460ff80821691610100810482169162010000820481169163010000008104821691600160201b8204811691600160281b90041686565b735147fd16f4f7bfbc33f9fdcc5b82f945e37fe4d890565b73a854ecc4d8bf77cad542a04087fc6e0082d43b8690565b6040518060400160405280601381526020017210985b185b98d95c8814db585c9d08141bdbdb606a1b81525081565b6101f481565b60006001600160a01b0383166127205760405162461bcd60e51b815260040161067d90614785565b61272b33848461356e565b50600192915050565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516127669291906144d1565b60405180910390a2600260065414156127915760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b03166127be5760405162461bcd60e51b815260040161067d90614811565b6008546040805163fde924f760e01b815290516000926001600160a01b03169163fde924f7916004808301926020929190829003018186803b15801561280357600080fd5b505afa158015612817573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061283b919061426a565b6008546040516324dacaa960e11b81529192506001600160a01b0316906349b595529061286d90600090600401614496565b600060405180830381600087803b15801561288757600080fd5b505af115801561289b573d6000803e3d6000fd5b505060085460405163151c70f960e21b81526000935083925060609173a854ecc4d8bf77cad542a04087fc6e0082d43b8691635471c3e4916128f19130916001600160a01b0316908c908c908c90600401614588565b60006040518083038186803b15801561290957600080fd5b505af415801561291d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612945919081019061435d565b9250925092506129553388611da1565b60075461296b906001600160a01b03168461089a565b61297482610fab565b6008546040805163cc77828d60e01b815290516060926001600160a01b03169163cc77828d916004808301926000929190829003018186803b1580156129b957600080fd5b505afa1580156129cd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129f5919081019061412e565b905060005b8151811015612a81576000828281518110612a1157fe5b602002602001015190506000848381518110612a2957fe5b60200260200101519050816001600160a01b0316336001600160a01b0316600080516020614cc583398151915283604051612a649190614c2d565b60405180910390a3612a77823383613153565b50506001016129fa565b50506008546040516324dacaa960e11b81526001600160a01b0390911693506349b595529250611d4591508490600401614496565b6008546001600160a01b031681565b336001600160a01b03166000356001600160e01b0319166001600160e01b031916600036604051612af79291906144d1565b60405180910390a260026006541415612b225760405162461bcd60e51b815260040161067d906148b9565b60026006556005546001600160a01b03163314612b515760405162461bcd60e51b815260040161067d90614660565b6008546001600160a01b0316612b795760405162461bcd60e51b815260040161067d90614811565b6009546301000000900460ff16612ba25760405162461bcd60e51b815260040161067d9061468c565b600854601654604051633be961dd60e21b815273a854ecc4d8bf77cad542a04087fc6e0082d43b869263efa5877492612bed9230926001600160a01b03169190600e906004016145e4565b60006040518083038186803b158015612c0557600080fd5b505af4158015612c19573d6000803e3d6000fd5b505060016006555050565b6005546001600160a01b03163314612c4e5760405162461bcd60e51b815260040161067d90614660565b336001600160a01b03166000356001600160e01b0319166001600160e01b031916600036604051612c809291906144d1565b60405180910390a260026006541415612cab5760405162461bcd60e51b815260040161067d906148b9565b600260065580821015612cd05760405162461bcd60e51b815260040161067d906146c2565b60158290556016819055612ce38361388e565b5050600160065550565b600e54600f546010546011546001600160a01b03841693600160a01b900460ff1692919085565b6005546001600160a01b03163314612d3e5760405162461bcd60e51b815260040161067d90614660565b60026006541415612d615760405162461bcd60e51b815260040161067d906148b9565b60026006556040513390600080356001600160e01b03191691612d86919036906144d1565b60405180910390a2600954600160201b900460ff16612db75760405162461bcd60e51b815260040161067d906147af565b6001600160a01b038116612ddd5760405162461bcd60e51b815260040161067d9061492f565b6001600160a01b03166000908152601760205260409020805460ff19166001908117909155600655565b3360009081526002602090815260408083206001600160a01b0386168452909152812054612e359083613d37565b3360008181526002602090815260408083206001600160a01b03891680855292529182902084905590519092600080516020614d05833981519152916108ef9190614c2d565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b336001600160a01b03166000356001600160e01b0319166001600160e01b031916600036604051612ed89291906144d1565b60405180910390a26008546001600160a01b03166111715760405162461bcd60e51b815260040161067d90614811565b6005546001600160a01b03163314612f325760405162461bcd60e51b815260040161067d90614660565b60026006541415612f555760405162461bcd60e51b815260040161067d906148b9565b60026006556040513390600080356001600160e01b03191691612f7a919036906144d1565b60405180910390a2600954600160201b900460ff16612fab5760405162461bcd60e51b815260040161067d906147af565b6001600160a01b03811660009081526017602052604090205460ff16612fe35760405162461bcd60e51b815260040161067d906147e1565b6001600160a01b0381166130095760405162461bcd60e51b815260040161067d9061492f565b6001600160a01b03166000908152601760205260409020805460ff191690556001600655565b60165481565b60155481565b62015f9081565b6000600260065414156130675760405162461bcd60e51b815260040161067d90614905565b6008546001600160a01b031661308f5760405162461bcd60e51b815260040161067d90614811565b600860009054906101000a90046001600160a01b03166001600160a01b031663fde924f76040518163ffffffff1660e01b815260040160206040518083038186803b1580156130dd57600080fd5b505afa1580156130f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613115919061426a565b905090565b60008060006131298585613d5c565b91509150801561314b5760405162461bcd60e51b815260040161067d90614af5565b509392505050565b6008546001600160a01b031661317b5760405162461bcd60e51b815260040161067d90614811565b60085460405163f8b2cb4f60e01b81526000916001600160a01b03169063f8b2cb4f906131ac9087906004016143dc565b60206040518083038186803b1580156131c457600080fd5b505afa1580156131d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131fc91906142d9565b600854604051634a46c67360e11b81529192506000916001600160a01b039091169063948d8ce6906132329088906004016143dc565b60206040518083038186803b15801561324a57600080fd5b505afa15801561325e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061328291906142d9565b6008549091506001600160a01b0316633fdddaa2866132a1858761311a565b846040518463ffffffff1660e01b81526004016132c093929190614475565b600060405180830381600087803b1580156132da57600080fd5b505af11580156132ee573d6000803e3d6000fd5b505060405163a9059cbb60e01b8152600092506001600160a01b038816915063a9059cbb90613323908890889060040161445c565b602060405180830381600087803b15801561333d57600080fd5b505af1158015613351573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613375919061426a565b9050806133945760405162461bcd60e51b815260040161067d90614a9d565b505050505050565b6108a430838361356e565b6000826133b6575060006108fb565b828202828482816133c357fe5b04146133e15760405162461bcd60e51b815260040161067d9061495c565b6706f05b59d3b2000081018181101561340c5760405162461bcd60e51b815260040161067d9061495c565b6000670de0b6b3a7640000825b049695505050505050565b6000816134435760405162461bcd60e51b815260040161067d906149b5565b82613450575060006108fb565b670de0b6b3a76400008381029084828161346657fe5b04146134845760405162461bcd60e51b815260040161067d9061488f565b600283048101818110156134aa5760405162461bcd60e51b815260040161067d9061488f565b600084828161341957fe5b600060038211156134f8575080600160028204015b818110156134f2578091506002818285816134e157fe5b0401816134ea57fe5b0490506134ca565b50611377565b811561137757506001919050565b30600090815260016020526040902054613520908261311a565b306000908152600160205260408120919091555461353e908261311a565b60009081556040513090600080516020614ce583398151915290613563908590614c2d565b60405180910390a350565b6001600160a01b038316600090815260016020526040902054613591908261311a565b6001600160a01b0380851660009081526001602052604080822093909355908416815220546135c09082613d37565b6001600160a01b038084166000818152600160205260409081902093909355915190851690600080516020614ce583398151915290613600908590614c2d565b60405180910390a3505050565b61361681613d81565b6018546000541115610fb45760405162461bcd60e51b815260040161067d90614a09565b6008546001600160a01b03166136625760405162461bcd60e51b815260040161067d90614811565b60085460405163f8b2cb4f60e01b81526000916001600160a01b03169063f8b2cb4f906136939087906004016143dc565b60206040518083038186803b1580156136ab57600080fd5b505afa1580156136bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136e391906142d9565b600854604051634a46c67360e11b81529192506000916001600160a01b039091169063948d8ce6906137199088906004016143dc565b60206040518083038186803b15801561373157600080fd5b505afa158015613745573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061376991906142d9565b90506000856001600160a01b03166323b872dd8630876040518463ffffffff1660e01b815260040161379d939291906143f0565b602060405180830381600087803b1580156137b757600080fd5b505af11580156137cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137ef919061426a565b90508061380e5760405162461bcd60e51b815260040161067d90614a9d565b6008546001600160a01b0316633fdddaa28761382a8688613d37565b856040518463ffffffff1660e01b815260040161384993929190614475565b600060405180830381600087803b15801561386357600080fd5b505af1158015613877573d6000803e3d6000fd5b50505050505050505050565b6108a482308361356e565b6008546001600160a01b0316156138b75760405162461bcd60e51b815260040161067d9061483a565b68056bc75e2d631000008110156138e05760405162461bcd60e51b815260040161067d90614862565b676765c793fa10079d601b1b81111561390b5760405162461bcd60e51b815260040161067d90614758565b600954600160281b900460ff16156139235760188190555b61392c81611769565b613936338261089a565b600760009054906101000a90046001600160a01b03166001600160a01b031663d556c5dc6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561398657600080fd5b505af115801561399a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139be9190614286565b600880546001600160a01b0319166001600160a01b0392831617908190556040805163632c068960e11b81529051919092169163c6580d12916004808301926020929190829003018186803b158015613a1657600080fd5b505afa158015613a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a4e91906142d9565b15613a6b5760405162461bcd60e51b815260040161067d906149db565b60005b601354811015613c2d57600060138281548110613a8757fe5b6000918252602082200154601480546001600160a01b0390921693509084908110613aae57fe5b906000526020600020015490506000600a6002018481548110613acd57fe5b60009182526020822001546040516323b872dd60e01b81529092506001600160a01b038516906323b872dd90613b0b903390309088906004016143f0565b602060405180830381600087803b158015613b2557600080fd5b505af1158015613b39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b5d919061426a565b905080613b7c5760405162461bcd60e51b815260040161067d90614a9d565b600854613b98906001600160a01b038681169116600019613ddf565b905080613bb75760405162461bcd60e51b815260040161067d90614a9d565b600854604051631c9c3ca760e31b81526001600160a01b039091169063e4e1e53890613beb90879087908790600401614475565b600060405180830381600087803b158015613c0557600080fd5b505af1158015613c19573d6000803e3d6000fd5b505060019096019550613a6e945050505050565b505b60135415613c69576013805480613c4257fe5b600082815260209020810160001990810180546001600160a01b0319169055019055613c2f565b6008546012546040516334e1990760e01b81526001600160a01b03909216916334e1990791613c9a91600401614c2d565b600060405180830381600087803b158015613cb457600080fd5b505af1158015613cc8573d6000803e3d6000fd5b50506008546040516324dacaa960e11b81526001600160a01b0390911692506349b595529150613cfd90600190600401614496565b600060405180830381600087803b158015613d1757600080fd5b505af1158015613d2b573d6000803e3d6000fd5b50506000601255505050565b6000828201838110156110de5760405162461bcd60e51b815260040161067d90614b20565b600080838311613d725750508082036000613d7a565b505081810360015b9250929050565b30600090815260016020526040902054613d9b9082613d37565b3060009081526001602052604081209190915554613db99082613d37565b6000908155604051309190600080516020614ce583398151915290613563908590614c2d565b600080846001600160a01b031663dd62ed3e30866040518363ffffffff1660e01b8152600401613e10929190614414565b60206040518083038186803b158015613e2857600080fd5b505afa158015613e3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e6091906142d9565b905082811415613e745760019150506110de565b8015613f035760405163095ea7b360e01b81526001600160a01b0386169063095ea7b390613ea990879060009060040161445c565b602060405180830381600087803b158015613ec357600080fd5b505af1158015613ed7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613efb919061426a565b9150506110de565b60405163095ea7b360e01b81526001600160a01b0386169063095ea7b390613f31908790879060040161445c565b602060405180830381600087803b158015613f4b57600080fd5b505af1158015613f5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f83919061426a565b95945050505050565b60008083601f840112613f9d578081fd5b5081356001600160401b03811115613fb3578182fd5b6020830191508360208083028501011115613d7a57600080fd5b600082601f830112613fdd578081fd5b8151613ff0613feb82614c78565b614c52565b81815291506020808301908481018184028601820187101561401157600080fd5b60005b8481101561403057815184529282019290820190600101614014565b505050505092915050565b60006020828403121561404c578081fd5b81356110de81614ca1565b60008060408385031215614069578081fd5b823561407481614ca1565b9150602083013561408481614ca1565b809150509250929050565b6000806000606084860312156140a3578081fd5b83356140ae81614ca1565b925060208401356140be81614ca1565b929592945050506040919091013590565b600080604083850312156140e1578182fd5b82356140ec81614ca1565b946020939093013593505050565b60008060006060848603121561410e578283fd5b833561411981614ca1565b95602085013595506040909401359392505050565b60006020808385031215614140578182fd5b82516001600160401b03811115614155578283fd5b8301601f81018513614165578283fd5b8051614173613feb82614c78565b818152838101908385018584028501860189101561418f578687fd5b8694505b838510156141ba5780516141a681614ca1565b835260019490940193918501918501614193565b50979650505050505050565b600080600080606085870312156141db578081fd5b84356001600160401b038111156141f0578182fd5b6141fc87828801613f8c565b90989097506020870135966040013595509350505050565b600060208284031215614225578081fd5b81516001600160401b0381111561423a578182fd5b61424684828501613fcd565b949350505050565b60006020828403121561425f578081fd5b81356110de81614cb6565b60006020828403121561427b578081fd5b81516110de81614cb6565b600060208284031215614297578081fd5b81516110de81614ca1565b6000602082840312156142b3578081fd5b8135600681106110de578182fd5b6000602082840312156142d2578081fd5b5035919050565b6000602082840312156142ea578081fd5b5051919050565b600080600060408486031215614305578081fd5b8335925060208401356001600160401b03811115614321578182fd5b61432d86828701613f8c565b9497909650939450505050565b6000806040838503121561434c578182fd5b505080516020909101519092909150565b600080600060608486031215614371578081fd5b83516020850151604086015191945092506001600160401b03811115614395578182fd5b6143a186828701613fcd565b9150509250925092565b6000806000606084860312156143bf578081fd5b505081359360208301359350604090920135919050565b15159052565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03959095168552921515602085015260408401919091526060830152608082015260a00190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b9515158652931515602086015291151560408501521515606084015215156080830152151560a082015260c00190565b60006020825282602083015282846040840137818301604090810191909152601f909201601f19160101919050565b6001600160a01b03958616815293909416602084015260408301919091526060820152608081019190915260a00190565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6001600160a01b0386811682528516602082015260408101849052608060608201819052810182905260006001600160fb1b038311156145c6578081fd5b60208302808560a08501379190910160a00190815295945050505050565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6000602080835283518082850152825b818110156146395785810183015185820160400152820161461d565b8181111561464a5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526012908201527122a9292fa727aa2fa1a7a72a2927a62622a960711b604082015260600190565b6020808252601c908201527b4552525f43414e4e4f545f4144445f52454d4f56455f544f4b454e5360201b604082015260600190565b6020808252818101527f4552525f494e434f4e53495354454e545f544f4b454e5f54494d455f4c4f434b604082015260600190565b60208082526019908201527822a9292faaa729aaa82827a92a22a22fa7a822a920aa24a7a760391b604082015260600190565b60208082526014908201527311549497d393d517d3d397d5d2125511531254d560621b604082015260600190565b60208082526013908201527208aa4a4be929c92a8bea6aaa0a098b2be9a82b606b1b604082015260600190565b60208082526010908201526f4552525f5a45524f5f4144445245535360801b604082015260600190565b6020808252601890820152774552525f43414e4e4f545f57484954454c4953545f4c505360401b604082015260600190565b60208082526016908201527511549497d31417d393d517d5d2125511531254d5115160521b604082015260600190565b6020808252600f908201526e11549497d393d517d0d49150551151608a1b604082015260600190565b6020808252600e908201526d11549497d254d7d0d4915055115160921b604082015260600190565b60208082526013908201527222a9292fa4a724aa2fa9aaa828262cafa6a4a760691b604082015260600190565b60208082526010908201526f11549497d1125597d25395115493905360821b604082015260600190565b6020808252600b908201526a4552525f5245454e54525960a81b604082015260600190565b6020808252600d908201526c11549497d393d517d093d55391609a1b604082015260600190565b60208082526010908201526f4552525f5245454e5452595f5649455760801b604082015260600190565b6020808252601390820152724552525f494e56414c49445f4144445245535360681b604082015260600190565b60208082526010908201526f4552525f4d554c5f4f564552464c4f5760801b604082015260600190565b60208082526015908201527404552525f43414e4e4f545f4348414e47455f43415605c1b604082015260600190565b6020808252600c908201526b4552525f4449565f5a45524f60a01b604082015260600190565b6020808252601490820152734552525f4e4f4e5a45524f5f455849545f46454560601b604082015260600190565b60208082526015908201527411549497d0d05417d31253525517d4915050d21151605a1b604082015260600190565b60208082526016908201527522a9292fa821aa27a5a2a72fa120a22fa1a0a62622a960511b604082015260600190565b6020808252601b908201527a4552525f52454d4f56455f574954485f4144445f50454e44494e4760281b604082015260600190565b6020808252600f908201526e4552525f45524332305f46414c534560881b604082015260600190565b60208082526015908201527404552525f4e4f545f5041555341424c455f5357415605c1b604082015260600190565b6020808252601190820152704552525f5355425f554e444552464c4f5760781b604082015260600190565b60208082526010908201526f4552525f4144445f4f564552464c4f5760801b604082015260600190565b6020808252601d908201527f4552525f4e4f545f434f4e464947555241424c455f535741505f464545000000604082015260600190565b6020808252601c908201527b11549497d393d7d5541110551157d11554925391d7d1d4905115505360221b604082015260600190565b600060e082019050835460ff80821615158452808260081c1615156020850152808260101c1615156040850152808260181c1615156060850152614c0360808501828460201c166143d6565b614c1560a08501828460281c166143d6565b5050614c2083614c97565b8260c08301529392505050565b90815260200190565b918252602082015260400190565b60ff91909116815260200190565b6040518181016001600160401b0381118282101715614c7057600080fd5b604052919050565b60006001600160401b03821115614c8d578081fd5b5060209081020190565b60068110610fb457fe5b6001600160a01b0381168114610fb457600080fd5b8015158114610fb457600080fdfec62fc35ac75e3bff532648e2859a3e1694002cfa357614ae8e034df7f83db5e9ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925ea39e3b35c5cd8937999ed5f7fbab30acd562a931fc4a887fed2a47c3074aa72a26469706673582212204f20e5c32495ddcba8a4e93222dfe69be39c8625c8fe75306b57180156f003b864736f6c634300060c00330000000000000000000000009424b1412450d0f8fc2255faf6046b98213b76bd000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000aa87bee538000000000000000000000000000000000000000000000000000000000000000001f42414c2d5245424153494e472d534d4152542d56312d414d504c2d5553444300000000000000000000000000000000000000000000000000000000000000003142616c616e636572205265626173696e6720536d61727420506f6f6c20546f6b656e2056312028414d504c2d55534443290000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d46ba6d942050d489dbd938a2c909a5d5039a161000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000174876e8000000000000000000000000000000000000000000000000000000000005f5e100000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000062217ab5f535c38000000000000000000000000000000000000000000000000062217ab5f535c380

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102885760003560e01c806302c967481461028d57806306fdde03146102b6578063095dcccc146102cb578063095ea7b3146102e05780630a165940146103005780630ce27925146103155780630f93ab471461031d57806318160ddd14610330578063220eb7601461033857806323b872dd1461034b578063246bc19b1461035e5780632e0f2625146103715780633018205f14610386578063313ce5671461038e57806334e199071461039657806337c6f4d9146103a957806346ab38f1146103bc57806347786d37146103cf57806349b59552146103e25780634ba57882146103f55780634c20d209146104085780634f69c0d41461041b57806355c32a231461042e5780635a8342d8146104415780635db34277146104575780635fa7b5841461046a578063661884631461047d5780636d06dfa01461049057806370a08231146104a357806374983a0d146104b6578063806c6f87146104be5780638259e6a0146104d157806392eefe9b146104e4578063948d8ce6146104f757806395d89b411461050a5780639776e94b14610512578063980e8db6146105205780639a82417e1461053a5780639d829c2b14610542578063a3f4df7e1461054a578063a835a0de14610552578063a9059cbb1461055a578063b02f0b731461056d578063b64ef17b14610580578063c275d81b14610588578063c3391d2714610590578063c42bd05a146105a3578063c83a1c2d146105bc578063d73dd623146105cf578063dd62ed3e146105e2578063e211b875146105f5578063e2762d4b146105fd578063e7f1a55414610610578063e854f53d14610618578063f226b52814610620578063fde924f714610628575b600080fd5b6102a061029b3660046140fa565b610630565b6040516102ad9190614c2d565b60405180910390f35b6102be6107e5565b6040516102ad919061460d565b6102de6102d93660046140cf565b61087b565b005b6102f36102ee3660046140cf565b6108a8565b6040516102ad9190614496565b610308610901565b6040516102ad91906143dc565b6102a0610910565b6102de61032b36600461403b565b610916565b6102a0610f86565b6102de6103463660046142c1565b610f8c565b6102f361035936600461408f565b610fb7565b6102de61036c3660046141c6565b6110e5565b610379611189565b6040516102ad9190614c44565b61030861118e565b61037961119d565b6102de6103a43660046142c1565b6111a2565b6102f36103b73660046142a2565b6112e7565b6102a06103ca3660046140fa565b61137c565b6102de6103dd3660046142c1565b611518565b6102de6103f036600461424e565b611644565b6102de6104033660046142c1565b61174a565b6102de6104163660046140fa565b611772565b6102de6104293660046142f1565b611993565b6102de61043c3660046140cf565b611d82565b610449611dab565b6040516102ad929190614c36565b6102a06104653660046140fa565b611db4565b6102de61047836600461403b565b611f67565b6102f361048b3660046140cf565b6120e2565b6102a061049e3660046140fa565b6121bc565b6102a06104b136600461403b565b61236f565b61030861238a565b6102f36104cc36600461403b565b6123a2565b6102de6104df3660046142c1565b6123eb565b6102de6104f236600461403b565b612480565b6102a061050536600461403b565b61252c565b6102be6125f9565b6102de61036c3660046140cf565b61052861265a565b6040516102ad969594939291906144a1565b610308612693565b6103086126ab565b6102be6126c3565b6102a06126f2565b6102f36105683660046140cf565b6126f8565b6102de61057b3660046142f1565b612734565b610308612ab6565b6102de612ac5565b6102de61059e3660046143ab565b612c24565b6105ab612ced565b6040516102ad95949392919061442e565b6102de6105ca36600461403b565b612d14565b6102f36105dd3660046140cf565b612e07565b6102a06105f0366004614057565b612e7b565b6102de612ea6565b6102de61060b36600461403b565b612f08565b6102a061302f565b6102a0613035565b6102a061303b565b6102f3613042565b60405160009033906001600160e01b03198335169061065290849036906144d1565b60405180910390a2600260065414156106865760405162461bcd60e51b815260040161067d906148b9565b60405180910390fd5b60026006556008546001600160a01b03166106b35760405162461bcd60e51b815260040161067d90614811565b60085460405163724a2d5360e01b8152600091829173a854ecc4d8bf77cad542a04087fc6e0082d43b869163724a2d53916107049130916001600160a01b03909116908b908b908b90600401614554565b604080518083038186803b15801561071b57600080fd5b505af415801561072f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610753919061433a565b915091508092506000610766848461311a565b9050866001600160a01b0316336001600160a01b0316600080516020614cc5833981519152886040516107999190614c2d565b60405180910390a36107ab3385611da1565b6107b481610fab565b6007546107ca906001600160a01b03168461089a565b6107d5873388613153565b5050505b60016006559392505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108715780601f1061084657610100808354040283529160200191610871565b820191906000526020600020905b81548152906001019060200180831161085457829003601f168201915b5050505050905090565b33301461089a5760405162461bcd60e51b815260040161067d90614660565b6108a4828261339c565b5050565b3360008181526002602090815260408083206001600160a01b03871680855292528083208590555191929091600080516020614d05833981519152906108ef908690614c2d565b60405180910390a35060015b92915050565b6007546001600160a01b031681565b60185481565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516109489291906144d1565b60405180910390a2600260065414156109735760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b03166109a05760405162461bcd60e51b815260040161067d90614811565b600854604051630bcded8960e21b81526001600160a01b0390911690632f37b624906109d09084906004016143dc565b60206040518083038186803b1580156109e857600080fd5b505afa1580156109fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a20919061426a565b610a3c5760405162461bcd60e51b815260040161067d906148de565b60085460405163f8b2cb4f60e01b81526000916001600160a01b03169063f8b2cb4f90610a6d9085906004016143dc565b60206040518083038186803b158015610a8557600080fd5b505afa158015610a99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abd91906142d9565b600854604051631185197d60e31b81529192506001600160a01b031690638c28cbe890610aee9085906004016143dc565b600060405180830381600087803b158015610b0857600080fd5b505af1158015610b1c573d6000803e3d6000fd5b505060085460405163f8b2cb4f60e01b8152600093506001600160a01b03909116915063f8b2cb4f90610b539086906004016143dc565b60206040518083038186803b158015610b6b57600080fd5b505afa158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba391906142d9565b905080821415610bb4575050610f7e565b600854604051634a46c67360e11b81526000916001600160a01b03169063948d8ce690610be59087906004016143dc565b60206040518083038186803b158015610bfd57600080fd5b505afa158015610c11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3591906142d9565b90506000610c4c610c4683856133a7565b85613424565b90506000610c6c610c67610c6085856133a7565b6001613424565b6134b5565b90506060600860009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b158015610cbe57600080fd5b505afa158015610cd2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610cfa919081019061412e565b905060005b8151811015610f7657876001600160a01b0316828281518110610d1e57fe5b60200260200101516001600160a01b03161415610da057600854604051631feeed5160e11b81526001600160a01b0390911690633fdddaa290610d69908b908a908890600401614475565b600060405180830381600087803b158015610d8357600080fd5b505af1158015610d97573d6000803e3d6000fd5b50505050610f6e565b60085482516000916001600160a01b03169063948d8ce690859085908110610dc457fe5b60200260200101516040518263ffffffff1660e01b8152600401610de891906143dc565b60206040518083038186803b158015610e0057600080fd5b505afa158015610e14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3891906142d9565b60085484519192506000916001600160a01b039091169063f8b2cb4f90869086908110610e6157fe5b60200260200101516040518263ffffffff1660e01b8152600401610e8591906143dc565b60206040518083038186803b158015610e9d57600080fd5b505afa158015610eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed591906142d9565b90506000610eec610ee687856133a7565b88613424565b60085486519192506001600160a01b031690633fdddaa290879087908110610f1057fe5b602002602001015184846040518463ffffffff1660e01b8152600401610f3893929190614475565b600060405180830381600087803b158015610f5257600080fd5b505af1158015610f66573d6000803e3d6000fd5b505050505050505b600101610cff565b505050505050505b506001600655565b60005490565b333014610fab5760405162461bcd60e51b815260040161067d90614660565b610fb481613506565b50565b60006001600160a01b038316610fdf5760405162461bcd60e51b815260040161067d90614785565b336001600160a01b038516148061101957506001600160a01b03841660009081526002602090815260408083203384529091529020548211155b6110355760405162461bcd60e51b815260040161067d90614a38565b61104084848461356e565b6001600160a01b038416600081815260026020908152604080832033808552925290912054911480159061107657506000198114155b156110d857611085818461311a565b6001600160a01b038681166000908152600260209081526040808320338085529252918290208490559051918716929091600080516020614d05833981519152916110cf91614c2d565b60405180910390a35b60019150505b9392505050565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516111179291906144d1565b60405180910390a26005546001600160a01b031633146111495760405162461bcd60e51b815260040161067d90614660565b6008546001600160a01b03166111715760405162461bcd60e51b815260040161067d90614811565b60405162461bcd60e51b815260040161067d906146f7565b601281565b6005546001600160a01b031690565b601290565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516111d49291906144d1565b60405180910390a2600260065414156111ff5760405162461bcd60e51b815260040161067d906148b9565b60026006556005546001600160a01b0316331461122e5760405162461bcd60e51b815260040161067d90614660565b6008546001600160a01b03166112565760405162461bcd60e51b815260040161067d90614811565b600954610100900460ff1661127d5760405162461bcd60e51b815260040161067d90614b4a565b6008546040516334e1990760e01b81526001600160a01b03909116906334e19907906112ad908490600401614c2d565b600060405180830381600087803b1580156112c757600080fd5b505af11580156112db573d6000803e3d6000fd5b50506001600655505050565b6040516322c1aa2560e11b8152600090732992a06af9b5e156cd6574049d37ad8da52b9e2890634583544a90611324906009908690600401614bb7565b60206040518083038186803b15801561133c57600080fd5b505af4158015611350573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611374919061426a565b90505b919050565b60405160009033906001600160e01b03198335169061139e90849036906144d1565b60405180910390a2600260065414156113c95760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b03166113f65760405162461bcd60e51b815260040161067d90614811565b600854604051636a82d4a760e11b8152600091829173a854ecc4d8bf77cad542a04087fc6e0082d43b869163d505a94e916114479130916001600160a01b03909116908b908b908b90600401614554565b604080518083038186803b15801561145e57600080fd5b505af4158015611472573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611496919061433a565b9150915080925060006114a9868461311a565b9050866001600160a01b0316336001600160a01b0316600080516020614cc5833981519152866040516114dc9190614c2d565b60405180910390a36114ee3387611da1565b6114f781610fab565b60075461150d906001600160a01b03168461089a565b6107d5873386613153565b336001600160a01b03166000356001600160e01b0319166001600160e01b03191660003660405161154a9291906144d1565b60405180910390a2600260065414156115755760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b03166115a25760405162461bcd60e51b815260040161067d90614811565b6005546001600160a01b031633146115cc5760405162461bcd60e51b815260040161067d90614660565b600954600160281b900460ff166115f55760405162461bcd60e51b815260040161067d90614986565b336001600160a01b03167f6bc200110c7794738d401810b22ef824a2044a8ccb022d4ad8769840370331f560185483604051611632929190614c36565b60405180910390a26018556001600655565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516116769291906144d1565b60405180910390a2600260065414156116a15760405162461bcd60e51b815260040161067d906148b9565b60026006556005546001600160a01b031633146116d05760405162461bcd60e51b815260040161067d90614660565b6008546001600160a01b03166116f85760405162461bcd60e51b815260040161067d90614811565b60095460ff1661171a5760405162461bcd60e51b815260040161067d90614ac6565b6008546040516324dacaa960e11b81526001600160a01b03909116906349b59552906112ad908490600401614496565b3330146117695760405162461bcd60e51b815260040161067d90614660565b610fb48161360d565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516117a49291906144d1565b60405180910390a2600260065414156117cf5760405162461bcd60e51b815260040161067d906148b9565b60026006556005546001600160a01b031633146117fe5760405162461bcd60e51b815260040161067d90614660565b6008546001600160a01b03166118265760405162461bcd60e51b815260040161067d90614811565b6009546301000000900460ff1661184f5760405162461bcd60e51b815260040161067d9061468c565b600a541561186f5760405162461bcd60e51b815260040161067d90614b81565b604051630e0d789b60e11b815273a854ecc4d8bf77cad542a04087fc6e0082d43b8690631c1af136906118a69086906004016143dc565b60006040518083038186803b1580156118be57600080fd5b505af41580156118d2573d6000803e3d6000fd5b50506040513392503091506001600160a01b038616907f33b043686b9408a355896fe90b2f8ecc86a41d87d1554ef65a739948b4f23e2790600090a460085460405163b489ec1960e01b815273a854ecc4d8bf77cad542a04087fc6e0082d43b869163b489ec1991611959916001600160a01b031690879087908790600e90600401614500565b60006040518083038186803b15801561197157600080fd5b505af4158015611985573d6000803e3d6000fd5b505060016006555050505050565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516119c59291906144d1565b60405180910390a2600260065414156119f05760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b0316611a1d5760405162461bcd60e51b815260040161067d90614811565b6008546040805163fde924f760e01b815290516000926001600160a01b03169163fde924f7916004808301926020929190829003018186803b158015611a6257600080fd5b505afa158015611a76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9a919061426a565b6008546040516324dacaa960e11b81529192506001600160a01b0316906349b5955290611acc90600090600401614496565b600060405180830381600087803b158015611ae657600080fd5b505af1158015611afa573d6000803e3d6000fd5b5050600954600160201b900460ff16159150819050611b2857503360009081526017602052604090205460ff165b611b445760405162461bcd60e51b815260040161067d9061472a565b60085460405163a1925f1d60e01b815260609173a854ecc4d8bf77cad542a04087fc6e0082d43b869163a1925f1d91611b919130916001600160a01b0316908a908a908a90600401614588565b60006040518083038186803b158015611ba957600080fd5b505af4158015611bbd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611be59190810190614214565b90506060600860009054906101000a90046001600160a01b03166001600160a01b031663cc77828d6040518163ffffffff1660e01b815260040160006040518083038186803b158015611c3757600080fd5b505afa158015611c4b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611c73919081019061412e565b905060005b8151811015611cff576000828281518110611c8f57fe5b602002602001015190506000848381518110611ca757fe5b60200260200101519050816001600160a01b0316336001600160a01b0316600080516020614d2583398151915283604051611ce29190614c2d565b60405180910390a3611cf582338361363a565b5050600101611c78565b50611d0986611769565b611d13338761089a565b50506008546040516324dacaa960e11b81526001600160a01b03909116906349b5955290611d45908490600401614496565b600060405180830381600087803b158015611d5f57600080fd5b505af1158015611d73573d6000803e3d6000fd5b50506001600655505050505050565b333014611da15760405162461bcd60e51b815260040161067d90614660565b6108a48282613883565b600a54600b5482565b60405160009033906001600160e01b031983351690611dd690849036906144d1565b60405180910390a260026006541415611e015760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b0316611e2e5760405162461bcd60e51b815260040161067d90614811565b600954600160201b900460ff161580611e5657503360009081526017602052604090205460ff165b611e725760405162461bcd60e51b815260040161067d9061472a565b60085460405163df90de0b60e01b815273a854ecc4d8bf77cad542a04087fc6e0082d43b869163df90de0b91611ebe9130916001600160a01b0390911690899089908990600401614554565b60206040518083038186803b158015611ed657600080fd5b505af4158015611eea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0e91906142d9565b9050836001600160a01b0316336001600160a01b0316600080516020614d2583398151915285604051611f419190614c2d565b60405180910390a3611f5281611769565b611f5c338261089a565b6107d984338561363a565b336001600160a01b03166000356001600160e01b0319166001600160e01b031916600036604051611f999291906144d1565b60405180910390a260026006541415611fc45760405162461bcd60e51b815260040161067d906148b9565b60026006556005546001600160a01b03163314611ff35760405162461bcd60e51b815260040161067d90614660565b6008546001600160a01b031661201b5760405162461bcd60e51b815260040161067d90614811565b6009546301000000900460ff166120445760405162461bcd60e51b815260040161067d9061468c565b600e54600160a01b900460ff161561206e5760405162461bcd60e51b815260040161067d90614a68565b600854604051630970e47f60e01b815273a854ecc4d8bf77cad542a04087fc6e0082d43b8691630970e47f916120b69130916001600160a01b03909116908690600401614531565b60006040518083038186803b1580156120ce57600080fd5b505af41580156112db573d6000803e3d6000fd5b3360009081526002602090815260408083206001600160a01b0386168452909152812054808310612136573360009081526002602090815260408083206001600160a01b0388168452909152812055612165565b612140818461311a565b3360009081526002602090815260408083206001600160a01b03891684529091529020555b3360008181526002602090815260408083206001600160a01b038916808552925291829020549151909291600080516020614d05833981519152916121aa9190614c2d565b60405180910390a35060019392505050565b60405160009033906001600160e01b0319833516906121de90849036906144d1565b60405180910390a2600260065414156122095760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b03166122365760405162461bcd60e51b815260040161067d90614811565b600954600160201b900460ff16158061225e57503360009081526017602052604090205460ff165b61227a5760405162461bcd60e51b815260040161067d9061472a565b600854604051636a6dc6e760e01b815273a854ecc4d8bf77cad542a04087fc6e0082d43b8691636a6dc6e7916122c69130916001600160a01b0390911690899089908990600401614554565b60206040518083038186803b1580156122de57600080fd5b505af41580156122f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061231691906142d9565b9050836001600160a01b0316336001600160a01b0316600080516020614d25833981519152836040516123499190614c2d565b60405180910390a361235a83611769565b612364338461089a565b6107d984338361363a565b6001600160a01b031660009081526001602052604090205490565b732992a06af9b5e156cd6574049d37ad8da52b9e2890565b600954600090600160201b900460ff16156123d957506001600160a01b03811660009081526017602052604090205460ff16611377565b506001600160a01b0381161515611377565b6005546001600160a01b031633146124155760405162461bcd60e51b815260040161067d90614660565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516124479291906144d1565b60405180910390a2600260065414156124725760405162461bcd60e51b815260040161067d906148b9565b6002600655610f7e8161388e565b6005546001600160a01b031633146124aa5760405162461bcd60e51b815260040161067d90614660565b6001600160a01b0381166124d05760405162461bcd60e51b815260040161067d90614785565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000600260065414156125515760405162461bcd60e51b815260040161067d90614905565b6008546001600160a01b03166125795760405162461bcd60e51b815260040161067d90614811565b600854604051634a46c67360e11b81526001600160a01b039091169063948d8ce6906125a99085906004016143dc565b60206040518083038186803b1580156125c157600080fd5b505afa1580156125d5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137491906142d9565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108715780601f1061084657610100808354040283529160200191610871565b60095460ff80821691610100810482169162010000820481169163010000008104821691600160201b8204811691600160281b90041686565b735147fd16f4f7bfbc33f9fdcc5b82f945e37fe4d890565b73a854ecc4d8bf77cad542a04087fc6e0082d43b8690565b6040518060400160405280601381526020017210985b185b98d95c8814db585c9d08141bdbdb606a1b81525081565b6101f481565b60006001600160a01b0383166127205760405162461bcd60e51b815260040161067d90614785565b61272b33848461356e565b50600192915050565b336001600160a01b03166000356001600160e01b0319166001600160e01b0319166000366040516127669291906144d1565b60405180910390a2600260065414156127915760405162461bcd60e51b815260040161067d906148b9565b60026006556008546001600160a01b03166127be5760405162461bcd60e51b815260040161067d90614811565b6008546040805163fde924f760e01b815290516000926001600160a01b03169163fde924f7916004808301926020929190829003018186803b15801561280357600080fd5b505afa158015612817573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061283b919061426a565b6008546040516324dacaa960e11b81529192506001600160a01b0316906349b595529061286d90600090600401614496565b600060405180830381600087803b15801561288757600080fd5b505af115801561289b573d6000803e3d6000fd5b505060085460405163151c70f960e21b81526000935083925060609173a854ecc4d8bf77cad542a04087fc6e0082d43b8691635471c3e4916128f19130916001600160a01b0316908c908c908c90600401614588565b60006040518083038186803b15801561290957600080fd5b505af415801561291d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612945919081019061435d565b9250925092506129553388611da1565b60075461296b906001600160a01b03168461089a565b61297482610fab565b6008546040805163cc77828d60e01b815290516060926001600160a01b03169163cc77828d916004808301926000929190829003018186803b1580156129b957600080fd5b505afa1580156129cd573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129f5919081019061412e565b905060005b8151811015612a81576000828281518110612a1157fe5b602002602001015190506000848381518110612a2957fe5b60200260200101519050816001600160a01b0316336001600160a01b0316600080516020614cc583398151915283604051612a649190614c2d565b60405180910390a3612a77823383613153565b50506001016129fa565b50506008546040516324dacaa960e11b81526001600160a01b0390911693506349b595529250611d4591508490600401614496565b6008546001600160a01b031681565b336001600160a01b03166000356001600160e01b0319166001600160e01b031916600036604051612af79291906144d1565b60405180910390a260026006541415612b225760405162461bcd60e51b815260040161067d906148b9565b60026006556005546001600160a01b03163314612b515760405162461bcd60e51b815260040161067d90614660565b6008546001600160a01b0316612b795760405162461bcd60e51b815260040161067d90614811565b6009546301000000900460ff16612ba25760405162461bcd60e51b815260040161067d9061468c565b600854601654604051633be961dd60e21b815273a854ecc4d8bf77cad542a04087fc6e0082d43b869263efa5877492612bed9230926001600160a01b03169190600e906004016145e4565b60006040518083038186803b158015612c0557600080fd5b505af4158015612c19573d6000803e3d6000fd5b505060016006555050565b6005546001600160a01b03163314612c4e5760405162461bcd60e51b815260040161067d90614660565b336001600160a01b03166000356001600160e01b0319166001600160e01b031916600036604051612c809291906144d1565b60405180910390a260026006541415612cab5760405162461bcd60e51b815260040161067d906148b9565b600260065580821015612cd05760405162461bcd60e51b815260040161067d906146c2565b60158290556016819055612ce38361388e565b5050600160065550565b600e54600f546010546011546001600160a01b03841693600160a01b900460ff1692919085565b6005546001600160a01b03163314612d3e5760405162461bcd60e51b815260040161067d90614660565b60026006541415612d615760405162461bcd60e51b815260040161067d906148b9565b60026006556040513390600080356001600160e01b03191691612d86919036906144d1565b60405180910390a2600954600160201b900460ff16612db75760405162461bcd60e51b815260040161067d906147af565b6001600160a01b038116612ddd5760405162461bcd60e51b815260040161067d9061492f565b6001600160a01b03166000908152601760205260409020805460ff19166001908117909155600655565b3360009081526002602090815260408083206001600160a01b0386168452909152812054612e359083613d37565b3360008181526002602090815260408083206001600160a01b03891680855292529182902084905590519092600080516020614d05833981519152916108ef9190614c2d565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b336001600160a01b03166000356001600160e01b0319166001600160e01b031916600036604051612ed89291906144d1565b60405180910390a26008546001600160a01b03166111715760405162461bcd60e51b815260040161067d90614811565b6005546001600160a01b03163314612f325760405162461bcd60e51b815260040161067d90614660565b60026006541415612f555760405162461bcd60e51b815260040161067d906148b9565b60026006556040513390600080356001600160e01b03191691612f7a919036906144d1565b60405180910390a2600954600160201b900460ff16612fab5760405162461bcd60e51b815260040161067d906147af565b6001600160a01b03811660009081526017602052604090205460ff16612fe35760405162461bcd60e51b815260040161067d906147e1565b6001600160a01b0381166130095760405162461bcd60e51b815260040161067d9061492f565b6001600160a01b03166000908152601760205260409020805460ff191690556001600655565b60165481565b60155481565b62015f9081565b6000600260065414156130675760405162461bcd60e51b815260040161067d90614905565b6008546001600160a01b031661308f5760405162461bcd60e51b815260040161067d90614811565b600860009054906101000a90046001600160a01b03166001600160a01b031663fde924f76040518163ffffffff1660e01b815260040160206040518083038186803b1580156130dd57600080fd5b505afa1580156130f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613115919061426a565b905090565b60008060006131298585613d5c565b91509150801561314b5760405162461bcd60e51b815260040161067d90614af5565b509392505050565b6008546001600160a01b031661317b5760405162461bcd60e51b815260040161067d90614811565b60085460405163f8b2cb4f60e01b81526000916001600160a01b03169063f8b2cb4f906131ac9087906004016143dc565b60206040518083038186803b1580156131c457600080fd5b505afa1580156131d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131fc91906142d9565b600854604051634a46c67360e11b81529192506000916001600160a01b039091169063948d8ce6906132329088906004016143dc565b60206040518083038186803b15801561324a57600080fd5b505afa15801561325e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061328291906142d9565b6008549091506001600160a01b0316633fdddaa2866132a1858761311a565b846040518463ffffffff1660e01b81526004016132c093929190614475565b600060405180830381600087803b1580156132da57600080fd5b505af11580156132ee573d6000803e3d6000fd5b505060405163a9059cbb60e01b8152600092506001600160a01b038816915063a9059cbb90613323908890889060040161445c565b602060405180830381600087803b15801561333d57600080fd5b505af1158015613351573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613375919061426a565b9050806133945760405162461bcd60e51b815260040161067d90614a9d565b505050505050565b6108a430838361356e565b6000826133b6575060006108fb565b828202828482816133c357fe5b04146133e15760405162461bcd60e51b815260040161067d9061495c565b6706f05b59d3b2000081018181101561340c5760405162461bcd60e51b815260040161067d9061495c565b6000670de0b6b3a7640000825b049695505050505050565b6000816134435760405162461bcd60e51b815260040161067d906149b5565b82613450575060006108fb565b670de0b6b3a76400008381029084828161346657fe5b04146134845760405162461bcd60e51b815260040161067d9061488f565b600283048101818110156134aa5760405162461bcd60e51b815260040161067d9061488f565b600084828161341957fe5b600060038211156134f8575080600160028204015b818110156134f2578091506002818285816134e157fe5b0401816134ea57fe5b0490506134ca565b50611377565b811561137757506001919050565b30600090815260016020526040902054613520908261311a565b306000908152600160205260408120919091555461353e908261311a565b60009081556040513090600080516020614ce583398151915290613563908590614c2d565b60405180910390a350565b6001600160a01b038316600090815260016020526040902054613591908261311a565b6001600160a01b0380851660009081526001602052604080822093909355908416815220546135c09082613d37565b6001600160a01b038084166000818152600160205260409081902093909355915190851690600080516020614ce583398151915290613600908590614c2d565b60405180910390a3505050565b61361681613d81565b6018546000541115610fb45760405162461bcd60e51b815260040161067d90614a09565b6008546001600160a01b03166136625760405162461bcd60e51b815260040161067d90614811565b60085460405163f8b2cb4f60e01b81526000916001600160a01b03169063f8b2cb4f906136939087906004016143dc565b60206040518083038186803b1580156136ab57600080fd5b505afa1580156136bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136e391906142d9565b600854604051634a46c67360e11b81529192506000916001600160a01b039091169063948d8ce6906137199088906004016143dc565b60206040518083038186803b15801561373157600080fd5b505afa158015613745573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061376991906142d9565b90506000856001600160a01b03166323b872dd8630876040518463ffffffff1660e01b815260040161379d939291906143f0565b602060405180830381600087803b1580156137b757600080fd5b505af11580156137cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137ef919061426a565b90508061380e5760405162461bcd60e51b815260040161067d90614a9d565b6008546001600160a01b0316633fdddaa28761382a8688613d37565b856040518463ffffffff1660e01b815260040161384993929190614475565b600060405180830381600087803b15801561386357600080fd5b505af1158015613877573d6000803e3d6000fd5b50505050505050505050565b6108a482308361356e565b6008546001600160a01b0316156138b75760405162461bcd60e51b815260040161067d9061483a565b68056bc75e2d631000008110156138e05760405162461bcd60e51b815260040161067d90614862565b676765c793fa10079d601b1b81111561390b5760405162461bcd60e51b815260040161067d90614758565b600954600160281b900460ff16156139235760188190555b61392c81611769565b613936338261089a565b600760009054906101000a90046001600160a01b03166001600160a01b031663d556c5dc6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561398657600080fd5b505af115801561399a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139be9190614286565b600880546001600160a01b0319166001600160a01b0392831617908190556040805163632c068960e11b81529051919092169163c6580d12916004808301926020929190829003018186803b158015613a1657600080fd5b505afa158015613a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a4e91906142d9565b15613a6b5760405162461bcd60e51b815260040161067d906149db565b60005b601354811015613c2d57600060138281548110613a8757fe5b6000918252602082200154601480546001600160a01b0390921693509084908110613aae57fe5b906000526020600020015490506000600a6002018481548110613acd57fe5b60009182526020822001546040516323b872dd60e01b81529092506001600160a01b038516906323b872dd90613b0b903390309088906004016143f0565b602060405180830381600087803b158015613b2557600080fd5b505af1158015613b39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b5d919061426a565b905080613b7c5760405162461bcd60e51b815260040161067d90614a9d565b600854613b98906001600160a01b038681169116600019613ddf565b905080613bb75760405162461bcd60e51b815260040161067d90614a9d565b600854604051631c9c3ca760e31b81526001600160a01b039091169063e4e1e53890613beb90879087908790600401614475565b600060405180830381600087803b158015613c0557600080fd5b505af1158015613c19573d6000803e3d6000fd5b505060019096019550613a6e945050505050565b505b60135415613c69576013805480613c4257fe5b600082815260209020810160001990810180546001600160a01b0319169055019055613c2f565b6008546012546040516334e1990760e01b81526001600160a01b03909216916334e1990791613c9a91600401614c2d565b600060405180830381600087803b158015613cb457600080fd5b505af1158015613cc8573d6000803e3d6000fd5b50506008546040516324dacaa960e11b81526001600160a01b0390911692506349b595529150613cfd90600190600401614496565b600060405180830381600087803b158015613d1757600080fd5b505af1158015613d2b573d6000803e3d6000fd5b50506000601255505050565b6000828201838110156110de5760405162461bcd60e51b815260040161067d90614b20565b600080838311613d725750508082036000613d7a565b505081810360015b9250929050565b30600090815260016020526040902054613d9b9082613d37565b3060009081526001602052604081209190915554613db99082613d37565b6000908155604051309190600080516020614ce583398151915290613563908590614c2d565b600080846001600160a01b031663dd62ed3e30866040518363ffffffff1660e01b8152600401613e10929190614414565b60206040518083038186803b158015613e2857600080fd5b505afa158015613e3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e6091906142d9565b905082811415613e745760019150506110de565b8015613f035760405163095ea7b360e01b81526001600160a01b0386169063095ea7b390613ea990879060009060040161445c565b602060405180830381600087803b158015613ec357600080fd5b505af1158015613ed7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613efb919061426a565b9150506110de565b60405163095ea7b360e01b81526001600160a01b0386169063095ea7b390613f31908790879060040161445c565b602060405180830381600087803b158015613f4b57600080fd5b505af1158015613f5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f83919061426a565b95945050505050565b60008083601f840112613f9d578081fd5b5081356001600160401b03811115613fb3578182fd5b6020830191508360208083028501011115613d7a57600080fd5b600082601f830112613fdd578081fd5b8151613ff0613feb82614c78565b614c52565b81815291506020808301908481018184028601820187101561401157600080fd5b60005b8481101561403057815184529282019290820190600101614014565b505050505092915050565b60006020828403121561404c578081fd5b81356110de81614ca1565b60008060408385031215614069578081fd5b823561407481614ca1565b9150602083013561408481614ca1565b809150509250929050565b6000806000606084860312156140a3578081fd5b83356140ae81614ca1565b925060208401356140be81614ca1565b929592945050506040919091013590565b600080604083850312156140e1578182fd5b82356140ec81614ca1565b946020939093013593505050565b60008060006060848603121561410e578283fd5b833561411981614ca1565b95602085013595506040909401359392505050565b60006020808385031215614140578182fd5b82516001600160401b03811115614155578283fd5b8301601f81018513614165578283fd5b8051614173613feb82614c78565b818152838101908385018584028501860189101561418f578687fd5b8694505b838510156141ba5780516141a681614ca1565b835260019490940193918501918501614193565b50979650505050505050565b600080600080606085870312156141db578081fd5b84356001600160401b038111156141f0578182fd5b6141fc87828801613f8c565b90989097506020870135966040013595509350505050565b600060208284031215614225578081fd5b81516001600160401b0381111561423a578182fd5b61424684828501613fcd565b949350505050565b60006020828403121561425f578081fd5b81356110de81614cb6565b60006020828403121561427b578081fd5b81516110de81614cb6565b600060208284031215614297578081fd5b81516110de81614ca1565b6000602082840312156142b3578081fd5b8135600681106110de578182fd5b6000602082840312156142d2578081fd5b5035919050565b6000602082840312156142ea578081fd5b5051919050565b600080600060408486031215614305578081fd5b8335925060208401356001600160401b03811115614321578182fd5b61432d86828701613f8c565b9497909650939450505050565b6000806040838503121561434c578182fd5b505080516020909101519092909150565b600080600060608486031215614371578081fd5b83516020850151604086015191945092506001600160401b03811115614395578182fd5b6143a186828701613fcd565b9150509250925092565b6000806000606084860312156143bf578081fd5b505081359360208301359350604090920135919050565b15159052565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03959095168552921515602085015260408401919091526060830152608082015260a00190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b9515158652931515602086015291151560408501521515606084015215156080830152151560a082015260c00190565b60006020825282602083015282846040840137818301604090810191909152601f909201601f19160101919050565b6001600160a01b03958616815293909416602084015260408301919091526060820152608081019190915260a00190565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6001600160a01b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b6001600160a01b0386811682528516602082015260408101849052608060608201819052810182905260006001600160fb1b038311156145c6578081fd5b60208302808560a08501379190910160a00190815295945050505050565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6000602080835283518082850152825b818110156146395785810183015185820160400152820161461d565b8181111561464a5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526012908201527122a9292fa727aa2fa1a7a72a2927a62622a960711b604082015260600190565b6020808252601c908201527b4552525f43414e4e4f545f4144445f52454d4f56455f544f4b454e5360201b604082015260600190565b6020808252818101527f4552525f494e434f4e53495354454e545f544f4b454e5f54494d455f4c4f434b604082015260600190565b60208082526019908201527822a9292faaa729aaa82827a92a22a22fa7a822a920aa24a7a760391b604082015260600190565b60208082526014908201527311549497d393d517d3d397d5d2125511531254d560621b604082015260600190565b60208082526013908201527208aa4a4be929c92a8bea6aaa0a098b2be9a82b606b1b604082015260600190565b60208082526010908201526f4552525f5a45524f5f4144445245535360801b604082015260600190565b6020808252601890820152774552525f43414e4e4f545f57484954454c4953545f4c505360401b604082015260600190565b60208082526016908201527511549497d31417d393d517d5d2125511531254d5115160521b604082015260600190565b6020808252600f908201526e11549497d393d517d0d49150551151608a1b604082015260600190565b6020808252600e908201526d11549497d254d7d0d4915055115160921b604082015260600190565b60208082526013908201527222a9292fa4a724aa2fa9aaa828262cafa6a4a760691b604082015260600190565b60208082526010908201526f11549497d1125597d25395115493905360821b604082015260600190565b6020808252600b908201526a4552525f5245454e54525960a81b604082015260600190565b6020808252600d908201526c11549497d393d517d093d55391609a1b604082015260600190565b60208082526010908201526f4552525f5245454e5452595f5649455760801b604082015260600190565b6020808252601390820152724552525f494e56414c49445f4144445245535360681b604082015260600190565b60208082526010908201526f4552525f4d554c5f4f564552464c4f5760801b604082015260600190565b60208082526015908201527404552525f43414e4e4f545f4348414e47455f43415605c1b604082015260600190565b6020808252600c908201526b4552525f4449565f5a45524f60a01b604082015260600190565b6020808252601490820152734552525f4e4f4e5a45524f5f455849545f46454560601b604082015260600190565b60208082526015908201527411549497d0d05417d31253525517d4915050d21151605a1b604082015260600190565b60208082526016908201527522a9292fa821aa27a5a2a72fa120a22fa1a0a62622a960511b604082015260600190565b6020808252601b908201527a4552525f52454d4f56455f574954485f4144445f50454e44494e4760281b604082015260600190565b6020808252600f908201526e4552525f45524332305f46414c534560881b604082015260600190565b60208082526015908201527404552525f4e4f545f5041555341424c455f5357415605c1b604082015260600190565b6020808252601190820152704552525f5355425f554e444552464c4f5760781b604082015260600190565b60208082526010908201526f4552525f4144445f4f564552464c4f5760801b604082015260600190565b6020808252601d908201527f4552525f4e4f545f434f4e464947555241424c455f535741505f464545000000604082015260600190565b6020808252601c908201527b11549497d393d7d5541110551157d11554925391d7d1d4905115505360221b604082015260600190565b600060e082019050835460ff80821615158452808260081c1615156020850152808260101c1615156040850152808260181c1615156060850152614c0360808501828460201c166143d6565b614c1560a08501828460281c166143d6565b5050614c2083614c97565b8260c08301529392505050565b90815260200190565b918252602082015260400190565b60ff91909116815260200190565b6040518181016001600160401b0381118282101715614c7057600080fd5b604052919050565b60006001600160401b03821115614c8d578081fd5b5060209081020190565b60068110610fb457fe5b6001600160a01b0381168114610fb457600080fd5b8015158114610fb457600080fdfec62fc35ac75e3bff532648e2859a3e1694002cfa357614ae8e034df7f83db5e9ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925ea39e3b35c5cd8937999ed5f7fbab30acd562a931fc4a887fed2a47c3074aa72a26469706673582212204f20e5c32495ddcba8a4e93222dfe69be39c8625c8fe75306b57180156f003b864736f6c634300060c0033

Deployed Bytecode Sourcemap

104546:4054:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92162:1149;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;19337:85;;;:::i;:::-;;;;;;;:::i;97425:170::-;;;;;;:::i;:::-;;:::i;:::-;;14259:762;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;65447:25::-;;;:::i;:::-;;;;;;;:::i;67096:18::-;;;:::i;106075:2522::-;;;;;;:::i;:::-;;:::i;18837:101::-;;;:::i;97786:155::-;;;;;;:::i;:::-;;:::i;17826:803::-;;;;;;:::i;:::-;;:::i;105131:274::-;;;;;;:::i;:::-;;:::i;12142:35::-;;;:::i;:::-;;;;;;;:::i;27285:89::-;;;:::i;20268:84::-;;;:::i;72517:322::-;;;;;;:::i;:::-;;:::i;95355:211::-;;;;;;:::i;:::-;;:::i;90522:1150::-;;;;;;:::i;:::-;;:::i;73849:275::-;;;;;;:::i;:::-;;:::i;74813:267::-;;;;;;:::i;:::-;;:::i;97263:154::-;;;;;;:::i;:::-;;:::i;81277:799::-;;;;;;:::i;:::-;;:::i;83716:1494::-;;;;;;:::i;:::-;;:::i;97603:175::-;;;;;;:::i;:::-;;:::i;65657:57::-;;;:::i;:::-;;;;;;;;:::i;87419:995::-;;;;;;:::i;:::-;;:::i;82826:576::-;;;;;;:::i;:::-;;:::i;16205:545::-;;;;;;:::i;:::-;;:::i;89016:983::-;;;;;;:::i;:::-;;:::i;13785:117::-;;;;;;:::i;:::-;;:::i;96189:115::-;;;:::i;94641:427::-;;;;;;:::i;:::-;;:::i;76760:179::-;;;;;;:::i;:::-;;:::i;26887:216::-;;;;;;:::i;:::-;;:::i;95739:205::-;;;;;;:::i;:::-;;:::i;19541:89::-;;;:::i;104922:201::-;;;;;;:::i;65555:34::-;;;:::i;:::-;;;;;;;;;;;;:::i;96558:121::-;;;:::i;96933:::-;;;:::i;12084:51::-;;;:::i;68983:64::-;;;:::i;17111:227::-;;;;;;:::i;:::-;;:::i;85570:1377::-;;;;;;:::i;:::-;;:::i;65479:19::-;;;:::i;82185:452::-;;;:::i;76015:583::-;;;;;;:::i;:::-;;:::i;65866:47::-;;;:::i;:::-;;;;;;;;;;;:::i;93470:324::-;;;;;;:::i;:::-;;:::i;15413:299::-;;;;;;:::i;:::-;;:::i;13452:141::-;;;;;;:::i;:::-;;:::i;105413:151::-;;;:::i;93958:416::-;;;;;;:::i;:::-;;:::i;66788:36::-;;;:::i;66606:42::-;;;:::i;68909:67::-;;;:::i;73113:186::-;;;:::i;92162:1149::-;67899:38;;92374:17;;67916:10;;-1:-1:-1;;;;;;67907:7:0;;;;67899:38;;92374:17;;67928:8;;67899:38;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;;;;;;;;;24254:1;24932:7;:18:::0;68084:5:::2;::::0;-1:-1:-1;;;;;68084:5:0::2;68068:56;;;;-1:-1:-1::0;;;68068:56:0::2;;;;;;;:::i;:::-;92712:5:::3;::::0;92568:314:::3;::::0;-1:-1:-1;;;92568:314:0;;92527:12:::3;::::0;;;92568:16:::3;::::0;:40:::3;::::0;:314:::3;::::0;92673:4:::3;::::0;-1:-1:-1;;;;;92712:5:0;;::::3;::::0;92750:8;;92791:14;;92838:15;;92568:314:::3;;;:::i;:::-;;::::0;::::3;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;92526:356;;;;92910:8;92895:23;;92929:20;92952:44;92974:12;92988:7;92952:21;:44::i;:::-;92929:67;;93034:8;-1:-1:-1::0;;;;;93014:45:0::3;93022:10;-1:-1:-1::0;;;;;93014:45:0::3;-1:-1:-1::0;;;;;;;;;;;93044:14:0::3;93014:45;;;;;;:::i;:::-;;;;;;;;93072:40;93087:10;93099:12;93072:14;:40::i;:::-;93123:31;93138:15;93123:14;:31::i;:::-;93188:8;::::0;93165:42:::3;::::0;-1:-1:-1;;;;;93188:8:0::3;93199:7:::0;93165:14:::3;:42::i;:::-;93218:53;93234:8;93244:10;93256:14;93218:15;:53::i;:::-;93284:19;;;68135:1;24213::::1;25107:7;:22:::0;92162:1149;;-1:-1:-1;;;92162:1149:0:o;19337:85::-;19409:5;19402:12;;;;;;;;-1:-1:-1;;19402:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19376:13;;19402:12;;19409:5;;19402:12;;19409:5;19402:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19337:85;:::o;97425:170::-;97507:10;97529:4;97507:27;97498:59;;;;-1:-1:-1;;;97498:59:0;;;;;;;:::i;:::-;97570:17;97576:2;97580:6;97570:5;:17::i;:::-;97425:170;;:::o;14259:762::-;14905:10;14333:4;14894:22;;;:10;:22;;;;;;;;-1:-1:-1;;;;;14894:31:0;;;;;;;;;;:40;;;14952:37;14333:4;;14894:31;;-1:-1:-1;;;;;;;;;;;14952:37:0;;;14928:6;;14952:37;:::i;:::-;;;;;;;;-1:-1:-1;15009:4:0;14259:762;;;;;:::o;65447:25::-;;;-1:-1:-1;;;;;65447:25:0;;:::o;67096:18::-;;;;:::o;106075:2522::-;67916:10;-1:-1:-1;;;;;67899:38:0;67907:7;;-1:-1:-1;;;;;;67907:7:0;-1:-1:-1;;;;;67899:38:0;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;68084:5:::2;::::0;-1:-1:-1;;;;;68084:5:0::2;68068:56;;;;-1:-1:-1::0;;;68068:56:0::2;;;;;;;:::i;:::-;106520:5:::3;::::0;106505:37:::3;::::0;-1:-1:-1;;;106505:37:0;;-1:-1:-1;;;;;106520:5:0;;::::3;::::0;106505:30:::3;::::0;:37:::3;::::0;106536:5;;106505:37:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;106483:90;;;;-1:-1:-1::0;;;106483:90:0::3;;;;;;;:::i;:::-;106658:5;::::0;106643:40:::3;::::0;-1:-1:-1;;;106643:40:0;;106617:23:::3;::::0;-1:-1:-1;;;;;106658:5:0::3;::::0;106643:33:::3;::::0;:40:::3;::::0;106677:5;;106643:40:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;106736:5;::::0;106721:34:::3;::::0;-1:-1:-1;;;106721:34:0;;106617:66;;-1:-1:-1;;;;;;106736:5:0::3;::::0;106721:27:::3;::::0;:34:::3;::::0;106749:5;;106721:34:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;-1:-1:-1::0;;106836:5:0::3;::::0;106821:40:::3;::::0;-1:-1:-1;;;106821:40:0;;106796:22:::3;::::0;-1:-1:-1;;;;;;106836:5:0;;::::3;::::0;-1:-1:-1;106821:33:0::3;::::0;:40:::3;::::0;106855:5;;106821:40:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;106796:65;;106917:17;106895:18;:39;106892:77;;;106951:7;;;;106892:77;107054:5;::::0;107039:51:::3;::::0;-1:-1:-1;;;107039:51:0;;107014:22:::3;::::0;-1:-1:-1;;;;;107054:5:0::3;::::0;107039:44:::3;::::0;:51:::3;::::0;107084:5;;107039:51:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;107014:76;;107173:22;107198:139;107234:59;107256:17;107275;107234:21;:59::i;:::-;107308:18;107198:21;:139::i;:::-;107173:164;;107430:21;107454:181;107490:134;107530:59;107552:17;107571;107530:21;:59::i;:::-;107608:1;107490:21;:134::i;:::-;107454:21;:181::i;:::-;107430:205;;107650:23;107691:5;;;;;;;;;-1:-1:-1::0;;;;;107691:5:0::3;-1:-1:-1::0;;;;;107676:39:0::3;;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;::::0;;::::3;-1:-1:-1::0;;107676:41:0::3;::::0;::::3;;::::0;::::3;::::0;;;::::3;::::0;::::3;:::i;:::-;107650:67;;107732:6;107728:862;107744:6;:13;107742:1;:15;107728:862;;;107794:5;-1:-1:-1::0;;;;;107781:18:0::3;:6;107788:1;107781:9;;;;;;;;;;;;;;-1:-1:-1::0;;;;;107781:18:0::3;;107778:801;;;107871:5;::::0;107856:73:::3;::::0;-1:-1:-1;;;107856:73:0;;-1:-1:-1;;;;;107871:5:0;;::::3;::::0;107856:29:::3;::::0;:73:::3;::::0;107886:5;;107893:17;;107912:16;;107856:73:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;107778:801;;;108014:5;::::0;108044:9;;107974:22:::3;::::0;-1:-1:-1;;;;;108014:5:0::3;::::0;107999:44:::3;::::0;108044:6;;108051:1;;108044:9;::::3;;;;;;;;;;;107999:55;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;108093:5;::::0;108110:9;;107974:80;;-1:-1:-1;108073:17:0::3;::::0;-1:-1:-1;;;;;108093:5:0;;::::3;::::0;:16:::3;::::0;108110:6;;108117:1;;108110:9;::::3;;;;;;;;;;;108093:27;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;108073:47;;108251:21;108275:161;108319:58;108341:16;108359:17;108319:21;:58::i;:::-;108400:17;108275:21;:161::i;:::-;108506:5;::::0;108521:9;;108251:185;;-1:-1:-1;;;;;;108506:5:0::3;::::0;108491:29:::3;::::0;108521:6;;108528:1;;108521:9;::::3;;;;;;;;;;;108532:12;108546:16;108491:72;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;107778:801;;;;107759:3;;107728:862;;;;68135:1;;;;;;;-1:-1:-1::0;24213:1:0::1;25107:7;:22:::0;106075:2522::o;18837:101::-;18892:4;18916:14;18837:101;:::o;97786:155::-;97857:10;97879:4;97857:27;97848:59;;;;-1:-1:-1;;;97848:59:0;;;;;;;:::i;:::-;97920:13;97926:6;97920:5;:13::i;:::-;97786:155;:::o;17826:803::-;17923:4;-1:-1:-1;;;;;17948:23:0;;17940:52;;;;-1:-1:-1;;;17940:52:0;;;;;;;:::i;:::-;18011:10;-1:-1:-1;;;;;18011:20:0;;;;:64;;-1:-1:-1;;;;;;18045:18:0;;;;;;:10;:18;;;;;;;;18064:10;18045:30;;;;;;;;18035:40;;;18011:64;18003:99;;;;-1:-1:-1;;;18003:99:0;;;;;;;:::i;:::-;18115:32;18121:6;18129:9;18140:6;18115:5;:32::i;:::-;-1:-1:-1;;;;;18221:18:0;;18201:17;18221:18;;;:10;:18;;;;;;;;18240:10;18221:30;;;;;;;;;;18360:20;;;;:48;;;-1:-1:-1;;18384:12:0;:24;;18360:48;18356:242;;;18458:43;18480:12;18494:6;18458:21;:43::i;:::-;-1:-1:-1;;;;;18425:18:0;;;;;;;:10;:18;;;;;;;;18444:10;18425:30;;;;;;;;;:76;;;18523:63;;;;;;18444:10;;-1:-1:-1;;;;;;;;;;;18523:63:0;;;;:::i;:::-;;;;;;;;18356:242;18617:4;18610:11;;;17826:803;;;;;;:::o;105131:274::-;67916:10;-1:-1:-1;;;;;67899:38:0;67907:7;;-1:-1:-1;;;;;;67907:7:0;-1:-1:-1;;;;;67899:38:0;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;26368:6:::1;::::0;-1:-1:-1;;;;;26368:6:0::1;26378:10;26368:20;26360:51;;;;-1:-1:-1::0;;;26360:51:0::1;;;;;;;:::i;:::-;68084:5:::2;::::0;-1:-1:-1;;;;;68084:5:0::2;68068:56;;;;-1:-1:-1::0;;;68068:56:0::2;;;;;;;:::i;:::-;105362:35:::3;;-1:-1:-1::0;;;105362:35:0::3;;;;;;;:::i;12142:::-:0;12175:2;12142:35;:::o;27285:89::-;27360:6;;-1:-1:-1;;;;;27360:6:0;27285:89;:::o;20268:84::-;12175:2;20268:84;:::o;72517:322::-;67916:10;-1:-1:-1;;;;;67899:38:0;67907:7;;-1:-1:-1;;;;;;67907:7:0;-1:-1:-1;;;;;67899:38:0;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;26368:6:::2;::::0;-1:-1:-1;;;;;26368:6:0::2;26378:10;26368:20;26360:51;;;;-1:-1:-1::0;;;26360:51:0::2;;;;;;;:::i;:::-;68084:5:::3;::::0;-1:-1:-1;;;;;68084:5:0::3;68068:56;;;;-1:-1:-1::0;;;68068:56:0::3;;;;;;;:::i;:::-;72677:6:::4;:23:::0;::::4;::::0;::::4;;;72669:65;;;;-1:-1:-1::0;;;72669:65:0::4;;;;;;;:::i;:::-;72806:5;::::0;:25:::4;::::0;-1:-1:-1;;;72806:25:0;;-1:-1:-1;;;;;72806:5:0;;::::4;::::0;:16:::4;::::0;:25:::4;::::0;72823:7;;72806:25:::4;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;;-1:-1:-1::0;;24213:1:0::1;25107:7;:22:::0;-1:-1:-1;;;72517:322:0:o;95355:211::-;95511:47;;-1:-1:-1;;;95511:47:0;;95482:4;;95511:13;;:27;;:47;;95539:6;;95547:10;;95511:47;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;95504:54;;95355:211;;;;:::o;90522:1150::-;67899:38;;90726:19;;67916:10;;-1:-1:-1;;;;;;67907:7:0;;;;67899:38;;90726:19;;67928:8;;67899:38;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;68084:5:::2;::::0;-1:-1:-1;;;;;68084:5:0::2;68068:56;;;;-1:-1:-1::0;;;68068:56:0::2;;;;;;;:::i;:::-;91069:5:::3;::::0;90926:312:::3;::::0;-1:-1:-1;;;90926:312:0;;90884:12:::3;::::0;;;90926:16:::3;::::0;:37:::3;::::0;:312:::3;::::0;91029:4:::3;::::0;-1:-1:-1;;;;;91069:5:0;;::::3;::::0;91108:8;;91150:12;;91196;;90926:312:::3;;;:::i;:::-;;::::0;::::3;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;90883:355;;;;91268:9;91251:26;;91288:20;91311:44;91333:12;91347:7;91311:21;:44::i;:::-;91288:67;;91393:8;-1:-1:-1::0;;;;;91373:45:0::3;91381:10;-1:-1:-1::0;;;;;91373:45:0::3;-1:-1:-1::0;;;;;;;;;;;91403:14:0::3;91373:45;;;;;;:::i;:::-;;;;;;;;91431:40;91446:10;91458:12;91431:14;:40::i;:::-;91482:31;91497:15;91482:14;:31::i;:::-;91547:8;::::0;91524:42:::3;::::0;-1:-1:-1;;;;;91547:8:0::3;91558:7:::0;91524:14:::3;:42::i;:::-;91577:53;91593:8;91603:10;91615:14;91577:15;:53::i;73849:275::-:0;67916:10;-1:-1:-1;;;;;67899:38:0;67907:7;;-1:-1:-1;;;;;;67907:7:0;-1:-1:-1;;;;;67899:38:0;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;68084:5:::2;::::0;-1:-1:-1;;;;;68084:5:0::2;68068:56;;;;-1:-1:-1::0;;;68068:56:0::2;;;;;;;:::i;:::-;26368:6:::3;::::0;-1:-1:-1;;;;;26368:6:0::3;26378:10;26368:20;26360:51;;;;-1:-1:-1::0;;;26360:51:0::3;;;;;;;:::i;:::-;73987:6:::4;:19:::0;-1:-1:-1;;;73987:19:0;::::4;;;73979:53;;;;-1:-1:-1::0;;;73979:53:0::4;;;;;;;:::i;:::-;74061:10;-1:-1:-1::0;;;;;74050:38:0::4;;74073:6;;74081;74050:38;;;;;;;:::i;:::-;;;;;;;;74101:6;:15:::0;24213:1:::1;25107:7;:22:::0;73849:275::o;74813:267::-;67916:10;-1:-1:-1;;;;;67899:38:0;67907:7;;-1:-1:-1;;;;;;67907:7:0;-1:-1:-1;;;;;67899:38:0;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;26368:6:::2;::::0;-1:-1:-1;;;;;26368:6:0::2;26378:10;26368:20;26360:51;;;;-1:-1:-1::0;;;26360:51:0::2;;;;;;;:::i;:::-;68084:5:::3;::::0;-1:-1:-1;;;;;68084:5:0::3;68068:56;;;;-1:-1:-1::0;;;68068:56:0::3;;;;;;;:::i;:::-;74979:6:::4;:23:::0;::::4;;74971:57;;;;-1:-1:-1::0;;;74971:57:0::4;;;;;;;:::i;:::-;75041:5;::::0;:31:::4;::::0;-1:-1:-1;;;75041:31:0;;-1:-1:-1;;;;;75041:5:0;;::::4;::::0;:19:::4;::::0;:31:::4;::::0;75061:10;;75041:31:::4;;;:::i;97263:154::-:0;97333:10;97355:4;97333:27;97324:59;;;;-1:-1:-1;;;97324:59:0;;;;;;;:::i;:::-;97396:13;97402:6;97396:5;:13::i;81277:799::-;67916:10;-1:-1:-1;;;;;67899:38:0;67907:7;;-1:-1:-1;;;;;;67907:7:0;-1:-1:-1;;;;;67899:38:0;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;26368:6:::2;::::0;-1:-1:-1;;;;;26368:6:0::2;26378:10;26368:20;26360:51;;;;-1:-1:-1::0;;;26360:51:0::2;;;;;;;:::i;:::-;68084:5:::3;::::0;-1:-1:-1;;;;;68084:5:0::3;68068:56;;;;-1:-1:-1::0;;;68068:56:0::3;;;;;;;:::i;:::-;81515:6:::4;:25:::0;;;::::4;;;81507:66;;;;-1:-1:-1::0;;;81507:66:0::4;;;;;;;:::i;:::-;81660:13;:24:::0;:29;81652:70:::4;;;;-1:-1:-1::0;;;81652:70:0::4;;;;;;;:::i;:::-;81735:45;::::0;-1:-1:-1;;;81735:45:0;;:16:::4;::::0;:38:::4;::::0;:45:::4;::::0;81774:5;;81735:45:::4;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;;-1:-1:-1::0;;81798:51:0::4;::::0;81838:10:::4;::::0;-1:-1:-1;81831:4:0::4;::::0;-1:-1:-1;;;;;;81798:51:0;::::4;::::0;::::4;::::0;;;::::4;81954:5;::::0;81908:160:::4;::::0;-1:-1:-1;;;81908:160:0;;:16:::4;::::0;:31:::4;::::0;:160:::4;::::0;-1:-1:-1;;;;;81954:5:0::4;::::0;81974;;81994:7;;82016:18;;82049:8:::4;::::0;81908:160:::4;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;;-1:-1:-1::0;;24213:1:0::1;25107:7;:22:::0;-1:-1:-1;;;;;81277:799:0:o;83716:1494::-;67916:10;-1:-1:-1;;;;;67899:38:0;67907:7;;-1:-1:-1;;;;;;67907:7:0;-1:-1:-1;;;;;67899:38:0;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;68084:5:::2;::::0;-1:-1:-1;;;;;68084:5:0::2;68068:56;;;;-1:-1:-1::0;;;68068:56:0::2;;;;;;;:::i;:::-;68384:5:::3;::::0;:20:::3;::::0;;-1:-1:-1;;;68384:20:0;;;;68363:18:::3;::::0;-1:-1:-1;;;;;68384:5:0::3;::::0;:18:::3;::::0;:20:::3;::::0;;::::3;::::0;::::3;::::0;;;;;;;;:5;:20;::::3;;::::0;::::3;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;68415:5;::::0;:26:::3;::::0;-1:-1:-1;;;68415:26:0;;68363:41;;-1:-1:-1;;;;;;68415:5:0::3;::::0;:19:::3;::::0;:26:::3;::::0;:5:::3;::::0;:26:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;-1:-1:-1::0;;83903:6:0::4;:22:::0;-1:-1:-1;;;83903:22:0;::::4;;;83902:23;::::0;-1:-1:-1;83902:23:0;;-1:-1:-1;83902:66:0::4;;-1:-1:-1::0;83957:10:0::4;83929:39;::::0;;;:27:::4;:39;::::0;;;;;::::4;;83902:66;83894:116;;;;-1:-1:-1::0;;;83894:116:0::4;;;;;;;:::i;:::-;84511:5;::::0;84354:324:::4;::::0;-1:-1:-1;;;84354:324:0;;84322:29:::4;::::0;84354:16:::4;::::0;:25:::4;::::0;:324:::4;::::0;84458:4:::4;::::0;-1:-1:-1;;;;;84511:5:0::4;::::0;84563:13;;84623:12;;;;84354:324:::4;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;;;;;;::::0;;::::4;-1:-1:-1::0;;84354:324:0::4;::::0;::::4;;::::0;::::4;::::0;;;::::4;::::0;::::4;:::i;:::-;84322:356;;84770:27;84800:5;;;;;;;;;-1:-1:-1::0;;;;;84800:5:0::4;-1:-1:-1::0;;;;;84800:22:0::4;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;;;;;;::::0;;::::4;-1:-1:-1::0;;84800:24:0::4;::::0;::::4;;::::0;::::4;::::0;;;::::4;::::0;::::4;:::i;:::-;84770:54;;84842:6;84837:272;84858:10;:17;84854:1;:21;84837:272;;;84897:9;84909:10;84920:1;84909:13;;;;;;;;;;;;;;84897:25;;84937:18;84958:15;84974:1;84958:18;;;;;;;;;;;;;;84937:39;;85018:1;-1:-1:-1::0;;;;;84998:37:0::4;85006:10;-1:-1:-1::0;;;;;84998:37:0::4;-1:-1:-1::0;;;;;;;;;;;85021:13:0::4;84998:37;;;;;;:::i;:::-;;;;;;;;85052:45;85068:1;85071:10;85083:13;85052:15;:45::i;:::-;-1:-1:-1::0;;84877:3:0::4;;84837:272;;;;85121:29;85136:13;85121:14;:29::i;:::-;85161:41;85176:10;85188:13;85161:14;:41::i;:::-;-1:-1:-1::0;;68464:5:0::3;::::0;:34:::3;::::0;-1:-1:-1;;;68464:34:0;;-1:-1:-1;;;;;68464:5:0;;::::3;::::0;:19:::3;::::0;:34:::3;::::0;68484:13;;68464:34:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;-1:-1:-1::0;;24213:1:0::1;25107:7;:22:::0;-1:-1:-1;;;;;;83716:1494:0:o;97603:175::-;97688:10;97710:4;97688:27;97679:59;;;;-1:-1:-1;;;97679:59:0;;;;;;;:::i;:::-;97751:19;97757:4;97763:6;97751:5;:19::i;65657:57::-;;;;;;:::o;87419:995::-;67899:38;;87629:18;;67916:10;;-1:-1:-1;;;;;;67907:7:0;;;;67899:38;;87629:18;;67928:8;;67899:38;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;68084:5:::2;::::0;-1:-1:-1;;;;;68084:5:0::2;68068:56;;;;-1:-1:-1::0;;;68068:56:0::2;;;;;;;:::i;:::-;87674:6:::3;:22:::0;-1:-1:-1;;;87674:22:0;::::3;;;87673:23;::::0;:66:::3;;-1:-1:-1::0;87728:10:0::3;87700:39;::::0;;;:27:::3;:39;::::0;;;;;::::3;;87673:66;87665:116;;;;-1:-1:-1::0;;;87665:116:0::3;;;;;;;:::i;:::-;87995:5;::::0;87856:300:::3;::::0;-1:-1:-1;;;87856:300:0;;:16:::3;::::0;:39:::3;::::0;:300:::3;::::0;87958:4:::3;::::0;-1:-1:-1;;;;;87995:5:0;;::::3;::::0;88031:7;;88069:13;;88113:16;;87856:300:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;87840:316;;88194:7;-1:-1:-1::0;;;;;88174:43:0::3;88182:10;-1:-1:-1::0;;;;;88174:43:0::3;-1:-1:-1::0;;;;;;;;;;;88203:13:0::3;88174:43;;;;;;:::i;:::-;;;;;;;;88230:29;88245:13;88230:14;:29::i;:::-;88270:41;88285:10;88297:13;88270:14;:41::i;:::-;88322:51;88338:7;88347:10;88359:13;88322:15;:51::i;82826:576::-:0;67916:10;-1:-1:-1;;;;;67899:38:0;67907:7;;-1:-1:-1;;;;;;67907:7:0;-1:-1:-1;;;;;67899:38:0;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;26368:6:::2;::::0;-1:-1:-1;;;;;26368:6:0::2;26378:10;26368:20;26360:51;;;;-1:-1:-1::0;;;26360:51:0::2;;;;;;;:::i;:::-;68084:5:::3;::::0;-1:-1:-1;;;;;68084:5:0::3;68068:56;;;;-1:-1:-1::0;;;68068:56:0::3;;;;;;;:::i;:::-;83045:6:::4;:25:::0;;;::::4;;;83037:65;;;;-1:-1:-1::0;;;83037:65:0::4;;;;;;;:::i;:::-;83201:8;:20:::0;-1:-1:-1;;;83201:20:0;::::4;;;83200:21;83192:61;;;;-1:-1:-1::0;;;83192:61:0::4;;;;;;;:::i;:::-;83381:5;::::0;83312:82:::4;::::0;-1:-1:-1;;;83312:82:0;;:16:::4;::::0;:28:::4;::::0;:82:::4;::::0;83373:4:::4;::::0;-1:-1:-1;;;;;83381:5:0;;::::4;::::0;83388;;83312:82:::4;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;16205:545:::0;16323:10;16279:4;16312:22;;;:10;:22;;;;;;;;-1:-1:-1;;;;;16312:31:0;;;;;;;;;;16451:18;;;16447:192;;16497:10;16520:1;16486:22;;;:10;:22;;;;;;;;-1:-1:-1;;;;;16486:31:0;;;;;;;;;:35;16447:192;;;16588:39;16610:8;16620:6;16588:21;:39::i;:::-;16565:10;16554:22;;;;:10;:22;;;;;;;;-1:-1:-1;;;;;16554:31:0;;;;;;;;;:73;16447:192;16665:10;16686:22;;;;:10;:22;;;;;;;;-1:-1:-1;;;;;16656:62:0;;16686:31;;;;;;;;;;16656:62;;;;16665:10;-1:-1:-1;;;;;;;;;;;16656:62:0;;;16686:31;16656:62;:::i;:::-;;;;;;;;-1:-1:-1;16738:4:0;;16205:545;-1:-1:-1;;;16205:545:0:o;89016:983::-;67899:38;;89220:18;;67916:10;;-1:-1:-1;;;;;;67907:7:0;;;;67899:38;;89220:18;;67928:8;;67899:38;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;68084:5:::2;::::0;-1:-1:-1;;;;;68084:5:0::2;68068:56;;;;-1:-1:-1::0;;;68068:56:0::2;;;;;;;:::i;:::-;89265:6:::3;:22:::0;-1:-1:-1;;;89265:22:0;::::3;;;89264:23;::::0;:66:::3;;-1:-1:-1::0;89319:10:0::3;89291:39;::::0;;;:27:::3;:39;::::0;;;;;::::3;;89264:66;89256:116;;;;-1:-1:-1::0;;;89256:116:0::3;;;;;;;:::i;:::-;89585:5;::::0;89447:294:::3;::::0;-1:-1:-1;;;89447:294:0;;:16:::3;::::0;:38:::3;::::0;:294:::3;::::0;89548:4:::3;::::0;-1:-1:-1;;;;;89585:5:0;;::::3;::::0;89621:7;;89659:13;;89703:11;;89447:294:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;89431:310;;89779:7;-1:-1:-1::0;;;;;89759:43:0::3;89767:10;-1:-1:-1::0;;;;;89759:43:0::3;-1:-1:-1::0;;;;;;;;;;;89788:13:0::3;89759:43;;;;;;:::i;:::-;;;;;;;;89815:29;89830:13;89815:14;:29::i;:::-;89855:41;89870:10;89882:13;89855:14;:41::i;:::-;89907:51;89923:7;89932:10;89944:13;89907:15;:51::i;13785:117::-:0;-1:-1:-1;;;;;13877:17:0;13853:4;13877:17;;;:8;:17;;;;;;;13785:117::o;96189:115::-;96274:22;96189:115;:::o;94641:427::-;94763:6;:22;94737:4;;-1:-1:-1;;;94763:22:0;;;;94759:302;;;-1:-1:-1;;;;;;94809:37:0;;;;;;:27;:37;;;;;;;;94802:44;;94759:302;-1:-1:-1;;;;;;95027:22:0;;;;95020:29;;76760:179;26368:6;;-1:-1:-1;;;;;26368:6:0;26378:10;26368:20;26360:51;;;;-1:-1:-1;;;26360:51:0;;;;;;;:::i;:::-;67916:10:::1;-1:-1:-1::0;;;;;67899:38:0::1;67907:7;;-1:-1:-1::0;;;;;;67907:7:0::1;-1:-1:-1::0;;;;;67899:38:0::1;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;24254:1:::2;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::2;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;76898:33:::3;76917:13:::0;76898:18:::3;:33::i;26887:216::-:0;26368:6;;-1:-1:-1;;;;;26368:6:0;26378:10;26368:20;26360:51;;;;-1:-1:-1;;;26360:51:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;26966:22:0;::::1;26958:51;;;;-1:-1:-1::0;;;26958:51:0::1;;;;;;;:::i;:::-;27048:6;::::0;27027:38:::1;::::0;-1:-1:-1;;;;;27027:38:0;;::::1;::::0;27048:6:::1;::::0;27027:38:::1;::::0;27048:6:::1;::::0;27027:38:::1;27078:6;:17:::0;;-1:-1:-1;;;;;;27078:17:0::1;-1:-1:-1::0;;;;;27078:17:0;;;::::1;::::0;;;::::1;::::0;;26887:216::o;95739:205::-;95873:4;24254:1;25361:7;;:19;;25353:48;;;;-1:-1:-1;;;25353:48:0;;;;;;;:::i;:::-;68084:5:::1;::::0;-1:-1:-1;;;;;68084:5:0::1;68068:56;;;;-1:-1:-1::0;;;68068:56:0::1;;;;;;;:::i;:::-;95902:5:::2;::::0;:34:::2;::::0;-1:-1:-1;;;95902:34:0;;-1:-1:-1;;;;;95902:5:0;;::::2;::::0;:27:::2;::::0;:34:::2;::::0;95930:5;;95902:34:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;19541:89::-:0;19615:7;19608:14;;;;;;;;-1:-1:-1;;19608:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19582:13;;19608:14;;19615:7;;19608:14;;19615:7;19608:14;;;;;;;;;;;;;;;;;;;;;;;;65555:34;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;65555:34:0;;;;;-1:-1:-1;;;65555:34:0;;;;:::o;96558:121::-;96646:25;96558:121;:::o;96933:::-;97021:25;96933:121;:::o;12084:51::-;;;;;;;;;;;;;;-1:-1:-1;;;12084:51:0;;;;:::o;68983:64::-;69044:3;68983:64;:::o;17111:227::-;17188:4;-1:-1:-1;;;;;17213:23:0;;17205:52;;;;-1:-1:-1;;;17205:52:0;;;;;;;:::i;:::-;17270:36;17276:10;17288:9;17299:6;17270:5;:36::i;:::-;-1:-1:-1;17326:4:0;17111:227;;;;:::o;85570:1377::-;67916:10;-1:-1:-1;;;;;67899:38:0;67907:7;;-1:-1:-1;;;;;;67907:7:0;-1:-1:-1;;;;;67899:38:0;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;68084:5:::2;::::0;-1:-1:-1;;;;;68084:5:0::2;68068:56;;;;-1:-1:-1::0;;;68068:56:0::2;;;;;;;:::i;:::-;68384:5:::3;::::0;:20:::3;::::0;;-1:-1:-1;;;68384:20:0;;;;68363:18:::3;::::0;-1:-1:-1;;;;;68384:5:0::3;::::0;:18:::3;::::0;:20:::3;::::0;;::::3;::::0;::::3;::::0;;;;;;;;:5;:20;::::3;;::::0;::::3;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;68415:5;::::0;:26:::3;::::0;-1:-1:-1;;;68415:26:0;;68363:41;;-1:-1:-1;;;;;;68415:5:0::3;::::0;:19:::3;::::0;:26:::3;::::0;:5:::3;::::0;:26:::3;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;-1:-1:-1::0;;86181:5:0::4;::::0;86018:339:::4;::::0;-1:-1:-1;;;86018:339:0;;85928:12:::4;::::0;-1:-1:-1;85928:12:0;;-1:-1:-1;85984:30:0::4;::::0;86018:16:::4;::::0;:25:::4;::::0;:339:::4;::::0;86125:4:::4;::::0;-1:-1:-1;;;;;86181:5:0::4;::::0;86236:12;;86298:13;;;;86018:339:::4;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;;;;;;::::0;;::::4;-1:-1:-1::0;;86018:339:0::4;::::0;::::4;;::::0;::::4;::::0;;;::::4;::::0;::::4;:::i;:::-;85927:430;;;;;;86370:40;86385:10;86397:12;86370:14;:40::i;:::-;86444:8;::::0;86421:42:::4;::::0;-1:-1:-1;;;;;86444:8:0::4;86455:7:::0;86421:14:::4;:42::i;:::-;86474:31;86489:15;86474:14;:31::i;:::-;86627:5;::::0;:24:::4;::::0;;-1:-1:-1;;;86627:24:0;;;;86597:27:::4;::::0;-1:-1:-1;;;;;86627:5:0::4;::::0;:22:::4;::::0;:24:::4;::::0;;::::4;::::0;:5:::4;::::0;:24;;;;;;;:5;:24;::::4;;::::0;::::4;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;;;;;;::::0;;::::4;-1:-1:-1::0;;86627:24:0::4;::::0;::::4;;::::0;::::4;::::0;;;::::4;::::0;::::4;:::i;:::-;86597:54;;86669:6;86664:276;86685:10;:17;86681:1;:21;86664:276;;;86724:9;86736:10;86747:1;86736:13;;;;;;;;;;;;;;86724:25;;86764:19;86786:16;86803:1;86786:19;;;;;;;;;;;;;;86764:41;;86847:1;-1:-1:-1::0;;;;;86827:38:0::4;86835:10;-1:-1:-1::0;;;;;86827:38:0::4;-1:-1:-1::0;;;;;;;;;;;86850:14:0::4;86827:38;;;;;;:::i;:::-;;;;;;;;86882:46;86898:1;86901:10;86913:14;86882:15;:46::i;:::-;-1:-1:-1::0;;86704:3:0::4;;86664:276;;;-1:-1:-1::0;;68464:5:0::3;::::0;:34:::3;::::0;-1:-1:-1;;;68464:34:0;;-1:-1:-1;;;;;68464:5:0;;::::3;::::0;-1:-1:-1;68464:19:0::3;::::0;-1:-1:-1;68464:34:0::3;::::0;-1:-1:-1;68484:13:0;;68464:34:::3;;;:::i;65479:19::-:0;;;-1:-1:-1;;;;;65479:19:0;;:::o;82185:452::-;67916:10;-1:-1:-1;;;;;67899:38:0;67907:7;;-1:-1:-1;;;;;;67907:7:0;-1:-1:-1;;;;;67899:38:0;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;26368:6:::2;::::0;-1:-1:-1;;;;;26368:6:0::2;26378:10;26368:20;26360:51;;;;-1:-1:-1::0;;;26360:51:0::2;;;;;;;:::i;:::-;68084:5:::3;::::0;-1:-1:-1;;;;;68084:5:0::3;68068:56;;;;-1:-1:-1::0;;;68068:56:0::3;;;;;;;:::i;:::-;82336:6:::4;:25:::0;;;::::4;;;82328:66;;;;-1:-1:-1::0;;;82328:66:0::4;;;;;;;:::i;:::-;82551:5;::::0;82571:24:::4;::::0;82453:176:::4;::::0;-1:-1:-1;;;82453:176:0;;:16:::4;::::0;:30:::4;::::0;:176:::4;::::0;82530:4:::4;::::0;-1:-1:-1;;;;;82551:5:0::4;::::0;82571:24;82610:8:::4;::::0;82453:176:::4;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;;-1:-1:-1::0;;24213:1:0::1;25107:7;:22:::0;-1:-1:-1;;82185:452:0:o;76015:583::-;26368:6;;-1:-1:-1;;;;;26368:6:0;26378:10;26368:20;26360:51;;;;-1:-1:-1;;;26360:51:0;;;;;;;:::i;:::-;67916:10:::1;-1:-1:-1::0;;;;;67899:38:0::1;67907:7;;-1:-1:-1::0;;;;;;67907:7:0::1;-1:-1:-1::0;;;;;67899:38:0::1;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;24254:1:::2;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::2;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;76274:68;;::::3;;76265:131;;;;-1:-1:-1::0;;;76265:131:0::3;;;;;;;:::i;:::-;76409:30;:68:::0;;;76488:24:::3;:56:::0;;;76557:33:::3;76576:13:::0;76557:18:::3;:33::i;:::-;-1:-1:-1::0;;24213:1:0::2;25107:7;:22:::0;-1:-1:-1;76015:583:0:o;65866:47::-;;;;;;;;;-1:-1:-1;;;;;65866:47:0;;;-1:-1:-1;;;65866:47:0;;;;;;;;:::o;93470:324::-;26368:6;;-1:-1:-1;;;;;26368:6:0;26378:10;26368:20;26360:51;;;;-1:-1:-1;;;26360:51:0;;;;;;;:::i;:::-;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;67899:38:::2;::::0;67916:10:::2;::::0;67907:7:::2;::::0;::::2;-1:-1:-1::0;;;;;;67907:7:0::2;::::0;67899:38:::2;::::0;67907:7;67928:8:::2;::::0;67899:38:::2;:::i;:::-;;;;;;;;93613:6:::3;:22:::0;-1:-1:-1;;;93613:22:0;::::3;;;93605:59;;;;-1:-1:-1::0;;;93605:59:0::3;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;93683:22:0;::::3;93675:54;;;;-1:-1:-1::0;;;93675:54:0::3;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;93742:37:0::3;;::::0;;;:27:::3;:37;::::0;;;;:44;;-1:-1:-1;;93742:44:0::3;93782:4;93742:44:::0;;::::3;::::0;;;25107:7:::1;:22:::0;93470:324::o;15413:299::-;15571:10;15487:4;15560:22;;;:10;:22;;;;;;;;-1:-1:-1;;;;;15560:31:0;;;;;;;;;;15538:62;;15593:6;15538:21;:62::i;:::-;15515:10;15504:22;;;;:10;:22;;;;;;;;-1:-1:-1;;;;;15504:31:0;;;;;;;;;;;:96;;;15618:62;;15504:31;;-1:-1:-1;;;;;;;;;;;15618:62:0;;;15504:96;15618:62;:::i;13452:141::-;-1:-1:-1;;;;;13559:17:0;;;13535:4;13559:17;;;:10;:17;;;;;;;;:26;;;;;;;;;;;;;13452:141::o;105413:151::-;67916:10;-1:-1:-1;;;;;67899:38:0;67907:7;;-1:-1:-1;;;;;;67907:7:0;-1:-1:-1;;;;;67899:38:0;;67928:8;;67899:38;;;;;;;:::i;:::-;;;;;;;;68084:5:::1;::::0;-1:-1:-1;;;;;68084:5:0::1;68068:56;;;;-1:-1:-1::0;;;68068:56:0::1;;;;;;;:::i;93958:416::-:0;26368:6;;-1:-1:-1;;;;;26368:6:0;26378:10;26368:20;26360:51;;;;-1:-1:-1;;;26360:51:0;;;;;;;:::i;:::-;24254:1:::1;24825:7;;:19;;24817:43;;;;-1:-1:-1::0;;;24817:43:0::1;;;;;;;:::i;:::-;24254:1;24932:7;:18:::0;67899:38:::2;::::0;67916:10:::2;::::0;67907:7:::2;::::0;::::2;-1:-1:-1::0;;;;;;67907:7:0::2;::::0;67899:38:::2;::::0;67907:7;67928:8:::2;::::0;67899:38:::2;:::i;:::-;;;;;;;;94109:6:::3;:22:::0;-1:-1:-1;;;94109:22:0;::::3;;;94101:59;;;;-1:-1:-1::0;;;94101:59:0::3;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;94179:37:0;::::3;;::::0;;;:27:::3;:37;::::0;;;;;::::3;;94171:72;;;;-1:-1:-1::0;;;94171:72:0::3;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;94262:22:0;::::3;94254:54;;;;-1:-1:-1::0;;;94254:54:0::3;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;94321:37:0::3;94361:5;94321:37:::0;;;:27:::3;:37;::::0;;;;:45;;-1:-1:-1;;94321:45:0::3;::::0;;;25107:7:::1;:22:::0;93958:416::o;66788:36::-;;;;:::o;66606:42::-;;;;:::o;68909:67::-;68971:5;68909:67;:::o;73113:186::-;73242:4;24254:1;25361:7;;:19;;25353:48;;;;-1:-1:-1;;;25353:48:0;;;;;;;:::i;:::-;68084:5:::1;::::0;-1:-1:-1;;;;;68084:5:0::1;68068:56;;;;-1:-1:-1::0;;;68068:56:0::1;;;;;;;:::i;:::-;73271:5:::2;;;;;;;;;-1:-1:-1::0;;;;;73271:5:0::2;-1:-1:-1::0;;;;;73271:18:0::2;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;73264:27;;73113:186:::0;:::o;4967:199::-;5020:4;5038:6;5046:19;5069:14;5078:1;5081;5069:8;:14::i;:::-;5037:46;;;;5103:14;5102:15;5094:45;;;;-1:-1:-1;;;5094:45:0;;;;;;;:::i;:::-;-1:-1:-1;5157:1:0;4967:199;-1:-1:-1;;;4967:199:0:o;101805:489::-;68084:5;;-1:-1:-1;;;;;68084:5:0;68068:56;;;;-1:-1:-1;;;68068:56:0;;;;;;;:::i;:::-;102009:5:::1;::::0;:23:::1;::::0;-1:-1:-1;;;102009:23:0;;101989:17:::1;::::0;-1:-1:-1;;;;;102009:5:0::1;::::0;:16:::1;::::0;:23:::1;::::0;102026:5;;102009:23:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;102062:5;::::0;:34:::1;::::0;-1:-1:-1;;;102062:34:0;;101989:43;;-1:-1:-1;102043:16:0::1;::::0;-1:-1:-1;;;;;102062:5:0;;::::1;::::0;:27:::1;::::0;:34:::1;::::0;102090:5;;102062:34:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;102107:5;::::0;102043:53;;-1:-1:-1;;;;;;102107:5:0::1;:12;102120:5:::0;102127:43:::1;102149:12:::0;102163:6;102127:21:::1;:43::i;:::-;102172:11;102107:77;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;102209:34:0::1;::::0;-1:-1:-1;;;102209:34:0;;102197:9:::1;::::0;-1:-1:-1;;;;;;102209:22:0;::::1;::::0;-1:-1:-1;102209:22:0::1;::::0;:34:::1;::::0;102232:2;;102236:6;;102209:34:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;102197:46;;102262:4;102254:32;;;;-1:-1:-1::0;;;102254:32:0::1;;;;;;;:::i;:::-;68135:1;;;101805:489:::0;;;:::o;22183:114::-;22250:39;22264:4;22271:9;22282:6;22250:5;:39::i;5973:551::-;6026:4;6138:6;6134:47;;-1:-1:-1;6168:1:0;6161:8;;6134:47;6248:5;;;6252:1;6248;:5;:1;6272:6;;;;;:11;6264:40;;;;-1:-1:-1;;;6264:40:0;;;;;;;:::i;:::-;6373:26;6367:33;;6419:8;;;;6411:37;;;;-1:-1:-1;;;6411:37:0;;;;;;;:::i;:::-;6459:7;2981:6;6469:2;:27;;;5973:551;-1:-1:-1;;;;;;5973:551:0:o;6785:535::-;6851:4;6876:12;6868:37;;;;-1:-1:-1;;;6868:37:0;;;;;;;:::i;:::-;6951:13;6947:53;;-1:-1:-1;6987:1:0;6980:8;;6947:53;2981:6;7022:33;;;;:8;:33;:8;7074:13;;;;;:39;7066:68;;;;-1:-1:-1;;;7066:68:0;;;;;;;:::i;:::-;7190:1;7180:11;;7174:18;;7211:8;;;;7203:37;;;;-1:-1:-1;;;7203:37:0;;;;;;;:::i;:::-;7270:7;7285;7280:2;:12;;;;9468:312;9513:6;9540:1;9536;:5;9532:241;;;-1:-1:-1;9562:1:0;9595;9591;9587:5;;:9;9611:92;9622:1;9618;:5;9611:92;;;9648:1;9644:5;;9686:1;9681;9677;9673;:5;;;;;;:9;9672:15;;;;;;9668:19;;9611:92;;;9532:241;;;;9733:6;;9729:44;;-1:-1:-1;9760:1:0;9468:312;;;:::o;20992:481::-;21316:4;21299:23;;;;:8;:23;;;;;;21277:54;;21324:6;21277:21;:54::i;:::-;21268:4;21251:23;;;;:8;:23;;;;;:80;;;;21381:14;21359:45;;21397:6;21359:21;:45::i;:::-;21342:14;:62;;;21422:43;;21439:4;;-1:-1:-1;;;;;;;;;;;21422:43:0;;;21458:6;;21422:43;:::i;:::-;;;;;;;;20992:481;:::o;21581:500::-;-1:-1:-1;;;;;21912:16:0;;;;;;:8;:16;;;;;;21890:47;;21930:6;21890:21;:47::i;:::-;-1:-1:-1;;;;;21871:16:0;;;;;;;:8;:16;;;;;;:66;;;;21992:19;;;;;;;21970:50;;22013:6;21970:21;:50::i;:::-;-1:-1:-1;;;;;21948:19:0;;;;;;;:8;:19;;;;;;;:72;;;;22038:35;;;;;;-1:-1:-1;;;;;;;;;;;22038:35:0;;;22066:6;;22038:35;:::i;:::-;;;;;;;;21581:500;;;:::o;102365:153::-;102422:19;102434:6;102422:11;:19::i;:::-;102478:6;;102460:14;;:24;;102452:58;;;;-1:-1:-1;;;102452:58:0;;;;;;;:::i;101164:512::-;68084:5;;-1:-1:-1;;;;;68084:5:0;68068:56;;;;-1:-1:-1;;;68068:56:0;;;;;;;:::i;:::-;101370:5:::1;::::0;:23:::1;::::0;-1:-1:-1;;;101370:23:0;;101350:17:::1;::::0;-1:-1:-1;;;;;101370:5:0::1;::::0;:16:::1;::::0;:23:::1;::::0;101387:5;;101370:23:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;101423:5;::::0;:34:::1;::::0;-1:-1:-1;;;101423:34:0;;101350:43;;-1:-1:-1;101404:16:0::1;::::0;-1:-1:-1;;;;;101423:5:0;;::::1;::::0;:27:::1;::::0;:34:::1;::::0;101451:5;;101423:34:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;101404:53;;101470:9;101489:5;-1:-1:-1::0;;;;;101482:26:0::1;;101509:4;101523;101530:6;101482:55;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;101470:67;;101556:4;101548:32;;;;-1:-1:-1::0;;;101548:32:0::1;;;;;;;:::i;:::-;101591:5;::::0;-1:-1:-1;;;;;101591:5:0::1;:12;101604:5:::0;101611:43:::1;101633:12:::0;101647:6;101611:21:::1;:43::i;:::-;101656:11;101591:77;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;68135:1;;;101164:512:::0;;;:::o;22399:108::-;22463:36;22469:6;22485:4;22492:6;22463:5;:36::i;98370:2603::-;98454:5;;-1:-1:-1;;;;;98454:5:0;98446:28;98438:55;;;;-1:-1:-1;;;98438:55:0;;;;;;;:::i;:::-;3293:10;98512:50;;;98504:82;;;;-1:-1:-1;;;98504:82:0;;;;;;;:::i;:::-;-1:-1:-1;;;98605:50:0;;;98597:82;;;;-1:-1:-1;;;98597:82:0;;;;;;;:::i;:::-;99014:6;:19;-1:-1:-1;;;99014:19:0;;;;99010:74;;;99050:6;:22;;;99010:74;99368:29;99383:13;99368:14;:29::i;:::-;99408:41;99423:10;99435:13;99408:14;:41::i;:::-;99559:8;;;;;;;;;-1:-1:-1;;;;;99559:8:0;-1:-1:-1;;;;;99559:17:0;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;99551:5;:27;;-1:-1:-1;;;;;;99551:27:0;-1:-1:-1;;;;;99551:27:0;;;;;;;;99693:16;;;-1:-1:-1;;;99693:16:0;;;;:5;;;;;:14;;:16;;;;;;;;;;;;;;:5;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:21;99685:54;;;;-1:-1:-1;;;99685:54:0;;;;;;;:::i;:::-;99832:6;99827:545;99848:14;:21;99844:25;;99827:545;;;99891:9;99903:14;99918:1;99903:17;;;;;;;;;;;;;;;;;99946:16;:19;;-1:-1:-1;;;;;99903:17:0;;;;-1:-1:-1;99946:16:0;99963:1;;99946:19;;;;;;;;;;;;;;99935:30;;99980:11;99994:13;:26;;100021:1;99994:29;;;;;;;;;;;;;;;;;100059:54;;-1:-1:-1;;;100059:54:0;;99994:29;;-1:-1:-1;;;;;;100059:22:0;;;;;:54;;100082:10;;100102:4;;100109:3;;100059:54;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;100040:73;;100136:11;100128:39;;;;-1:-1:-1;;;100128:39:0;;;;;;;:::i;:::-;100228:5;;100198:65;;-1:-1:-1;;;;;100198:21:0;;;;100228:5;-1:-1:-1;;100198:21:0;:65::i;:::-;100184:79;;100286:11;100278:39;;;;-1:-1:-1;;;100278:39:0;;;;;;;:::i;:::-;100334:5;;:26;;-1:-1:-1;;;100334:26:0;;-1:-1:-1;;;;;100334:5:0;;;;:10;;:26;;100345:1;;100348:3;;100353:6;;100334:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;99871:3:0;;;;;-1:-1:-1;99827:545:0;;-1:-1:-1;;;;;99827:545:0;;;100384:201;100391:14;:21;:25;100384:201;;100553:14;:20;;;;;;;;;;;;;;;;-1:-1:-1;;100553:20:0;;;;;-1:-1:-1;;;;;;100553:20:0;;;;;;100384:201;;;100756:5;;100773:15;;100756:33;;-1:-1:-1;;;100756:33:0;;-1:-1:-1;;;;;100756:5:0;;;;:16;;:33;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;100800:5:0;;:25;;-1:-1:-1;;;100800:25:0;;-1:-1:-1;;;;;100800:5:0;;;;-1:-1:-1;100800:19:0;;-1:-1:-1;100800:25:0;;:5;;:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;100964:1:0;100946:15;:19;-1:-1:-1;;;98370:2603:0:o;4502:157::-;4555:4;4581:5;;;4605:6;;;;4597:35;;;;-1:-1:-1;;;4597:35:0;;;;;;;:::i;5506:200::-;5563:4;5569;5595:1;5590;:6;5586:113;;-1:-1:-1;;5621:5:0;;;5628;5613:21;;5586:113;-1:-1:-1;;5675:5:0;;;5682:4;5586:113;5506:200;;;;;:::o;20544:278::-;20665:4;20648:23;;;;:8;:23;;;;;;20626:54;;20673:6;20626:21;:54::i;:::-;20617:4;20600:23;;;;:8;:23;;;;;:80;;;;20730:14;20708:45;;20746:6;20708:21;:45::i;:::-;20691:14;:62;;;20771:43;;20800:4;;20691:14;-1:-1:-1;;;;;;;;;;;20771:43:0;;;20807:6;;20771:43;:::i;33391:558::-;33474:4;33491:21;33515:5;-1:-1:-1;;;;;33515:15:0;;33539:4;33546:7;33515:39;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33491:63;;33655:6;33635:16;:26;33632:69;;;33685:4;33678:11;;;;;33632:69;33775:21;;33772:85;;33820:25;;-1:-1:-1;;;33820:25:0;;-1:-1:-1;;;;;33820:13:0;;;;;:25;;33834:7;;33843:1;;33820:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33813:32;;;;;33772:85;33911:30;;-1:-1:-1;;;33911:30:0;;-1:-1:-1;;;;;33911:13:0;;;;;:30;;33925:7;;33934:6;;33911:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33904:37;33391:558;-1:-1:-1;;;;;33391:558:0:o;1049:352:-1:-;;;1179:3;1172:4;1164:6;1160:17;1156:27;1146:2;;-1:-1;;1187:12;1146:2;-1:-1;1217:20;;-1:-1;;;;;1246:30;;1243:2;;;-1:-1;;1279:12;1243:2;1323:4;1315:6;1311:17;1299:29;;1374:3;1323:4;;1358:6;1354:17;1315:6;1340:32;;1337:41;1334:2;;;1391:1;;1381:12;1427:722;;1555:3;1548:4;1540:6;1536:17;1532:27;1522:2;;-1:-1;;1563:12;1522:2;1603:6;1597:13;1625:80;1640:64;1697:6;1640:64;:::i;:::-;1625:80;:::i;:::-;1733:21;;;1616:89;-1:-1;1777:4;1790:14;;;;1765:17;;;1879;;;1870:27;;;;1867:36;-1:-1;1864:2;;;1916:1;;1906:12;1864:2;1941:1;1926:217;1951:6;1948:1;1945:13;1926:217;;;2976:13;;2019:61;;2094:14;;;;2122;;;;1973:1;1966:9;1926:217;;;1930:14;;;;;1515:634;;;;:::o;3039:241::-;;3143:2;3131:9;3122:7;3118:23;3114:32;3111:2;;;-1:-1;;3149:12;3111:2;85:6;72:20;97:33;124:5;97:33;:::i;3287:366::-;;;3408:2;3396:9;3387:7;3383:23;3379:32;3376:2;;;-1:-1;;3414:12;3376:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;3466:63;-1:-1;3566:2;3605:22;;72:20;97:33;72:20;97:33;:::i;:::-;3574:63;;;;3370:283;;;;;:::o;3660:491::-;;;;3798:2;3786:9;3777:7;3773:23;3769:32;3766:2;;;-1:-1;;3804:12;3766:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;3856:63;-1:-1;3956:2;3995:22;;72:20;97:33;72:20;97:33;:::i;:::-;3760:391;;3964:63;;-1:-1;;;4064:2;4103:22;;;;2828:20;;3760:391::o;4158:366::-;;;4279:2;4267:9;4258:7;4254:23;4250:32;4247:2;;;-1:-1;;4285:12;4247:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;4337:63;4437:2;4476:22;;;;2828:20;;-1:-1;;;4241:283::o;4531:491::-;;;;4669:2;4657:9;4648:7;4644:23;4640:32;4637:2;;;-1:-1;;4675:12;4637:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;4727:63;4827:2;4866:22;;2828:20;;-1:-1;4935:2;4974:22;;;2828:20;;4631:391;-1:-1;;;4631:391::o;5029:392::-;;5169:2;;5157:9;5148:7;5144:23;5140:32;5137:2;;;-1:-1;;5175:12;5137:2;5220:24;;-1:-1;;;;;5253:30;;5250:2;;;-1:-1;;5286:12;5250:2;5373:22;;422:4;410:17;;406:27;-1:-1;396:2;;-1:-1;;437:12;396:2;477:6;471:13;499:80;514:64;571:6;514:64;:::i;499:80::-;607:21;;;664:14;;;;639:17;;;753;;;744:27;;;;741:36;-1:-1;738:2;;;-1:-1;;780:12;738:2;-1:-1;806:10;;800:217;825:6;822:1;819:13;800:217;;;226:6;220:13;238:33;265:5;238:33;:::i;:::-;893:61;;847:1;840:9;;;;;968:14;;;;996;;800:217;;;-1:-1;5306:99;5131:290;-1:-1;;;;;;;5131:290::o;5428:647::-;;;;;5601:2;5589:9;5580:7;5576:23;5572:32;5569:2;;;-1:-1;;5607:12;5569:2;5652:31;;-1:-1;;;;;5692:30;;5689:2;;;-1:-1;;5725:12;5689:2;5763:80;5835:7;5826:6;5815:9;5811:22;5763:80;:::i;:::-;5745:98;;;;-1:-1;5880:2;5919:22;;2828:20;;5988:2;6027:22;2828:20;;-1:-1;5563:512;-1:-1;;;;5563:512::o;6082:392::-;;6222:2;6210:9;6201:7;6197:23;6193:32;6190:2;;;-1:-1;;6228:12;6190:2;6273:24;;-1:-1;;;;;6306:30;;6303:2;;;-1:-1;;6339:12;6303:2;6369:89;6450:7;6441:6;6430:9;6426:22;6369:89;:::i;:::-;6359:99;6184:290;-1:-1;;;;6184:290::o;6481:235::-;;6582:2;6570:9;6561:7;6557:23;6553:32;6550:2;;;-1:-1;;6588:12;6550:2;2234:6;2221:20;2246:30;2270:5;2246:30;:::i;6723:257::-;;6835:2;6823:9;6814:7;6810:23;6806:32;6803:2;;;-1:-1;;6841:12;6803:2;2369:6;2363:13;2381:30;2405:5;2381:30;:::i;6987:291::-;;7116:2;7104:9;7095:7;7091:23;7087:32;7084:2;;;-1:-1;;7122:12;7084:2;2521:6;2515:13;2533:47;2574:5;2533:47;:::i;7285:273::-;;7405:2;7393:9;7384:7;7380:23;7376:32;7373:2;;;-1:-1;;7411:12;7373:2;2688:6;2675:20;55021:1;55014:5;55011:12;55001:2;;-1:-1;;55027:12;7565:241;;7669:2;7657:9;7648:7;7644:23;7640:32;7637:2;;;-1:-1;;7675:12;7637:2;-1:-1;2828:20;;7631:175;-1:-1;7631:175::o;7813:263::-;;7928:2;7916:9;7907:7;7903:23;7899:32;7896:2;;;-1:-1;;7934:12;7896:2;-1:-1;2976:13;;7890:186;-1:-1;7890:186::o;8083:522::-;;;;8239:2;8227:9;8218:7;8214:23;8210:32;8207:2;;;-1:-1;;8245:12;8207:2;2828:20;;;-1:-1;8425:2;8410:18;;8397:32;-1:-1;;;;;8438:30;;8435:2;;;-1:-1;;8471:12;8435:2;8509:80;8581:7;8572:6;8561:9;8557:22;8509:80;:::i;:::-;8201:404;;8491:98;;-1:-1;8491:98;;-1:-1;;;;8201:404::o;8612:399::-;;;8744:2;8732:9;8723:7;8719:23;8715:32;8712:2;;;-1:-1;;8750:12;8712:2;-1:-1;;2976:13;;8913:2;8963:22;;;2976:13;;;;;-1:-1;8706:305::o;9018:664::-;;;;9192:2;9180:9;9171:7;9167:23;9163:32;9160:2;;;-1:-1;;9198:12;9160:2;2976:13;;9361:2;9411:22;;2976:13;9501:2;9486:18;;9480:25;2976:13;;-1:-1;2976:13;-1:-1;;;;;;9514:30;;9511:2;;;-1:-1;;9547:12;9511:2;9577:89;9658:7;9649:6;9638:9;9634:22;9577:89;:::i;:::-;9567:99;;;9154:528;;;;;:::o;9689:491::-;;;;9827:2;9815:9;9806:7;9802:23;9798:32;9795:2;;;-1:-1;;9833:12;9795:2;-1:-1;;2828:20;;;9985:2;10024:22;;2828:20;;-1:-1;10093:2;10132:22;;;2828:20;;9789:391;-1:-1;9789:391::o;11106:104::-;50105:13;50098:21;11171:34;;11165:45::o;24866:238::-;-1:-1;;;;;50450:54;;;;10407:37;;25001:2;24986:18;;24972:132::o;25340:460::-;-1:-1;;;;;50450:54;;;10266:58;;50450:54;;;;25703:2;25688:18;;10407:37;25786:2;25771:18;;22998;;;;25531:2;25516:18;;25502:298::o;25807:333::-;-1:-1;;;;;50450:54;;;10407:37;;50450:54;;26126:2;26111:18;;10407:37;25962:2;25947:18;;25933:207::o;26598:656::-;-1:-1;;;;;50450:54;;;;10407:37;;50105:13;;50098:21;26990:2;26975:18;;11171:34;27073:2;27058:18;;22998;;;;27156:2;27141:18;;22998;27239:3;27224:19;;22998:18;26831:3;26816:19;;26802:452::o;27261:349::-;-1:-1;;;;;50450:54;;;;10407:37;;27596:2;27581:18;;12604:58;27424:2;27409:18;;27395:215::o;27957:444::-;-1:-1;;;;;50450:54;;;;10407:37;;28304:2;28289:18;;22998;;;;28387:2;28372:18;;22998;28140:2;28125:18;;28111:290::o;28408:210::-;50105:13;;50098:21;11171:34;;28529:2;28514:18;;28500:118::o;28625:708::-;50105:13;;50098:21;11171:34;;50105:13;;50098:21;29009:2;28994:18;;11171:34;50105:13;;50098:21;29086:2;29071:18;;11171:34;50105:13;50098:21;29163:2;29148:18;;11171:34;50105:13;50098:21;29240:3;29225:19;;11171:34;50105:13;50098:21;29318:3;29303:19;;11171:34;28856:3;28841:19;;28827:506::o;29340:326::-;;29495:2;29516:17;29509:47;49442:6;29495:2;29484:9;29480:18;49430:19;52330:6;52325:3;49470:14;29484:9;49470:14;52307:30;52368:16;;;49470:14;52368:16;;;52361:27;;;;53739:7;53723:14;;;-1:-1;;53719:28;11601:39;;;29466:200;-1:-1;29466:200::o;30193:802::-;-1:-1;;;;;50450:54;;;11742:67;;50450:54;;;;30678:2;30663:18;;10407:37;30769:2;30754:18;;22998;;;;30860:2;30845:18;;22998;30980:3;30965:19;;22998:18;;;;30483:3;30468:19;;30454:541::o;31002:568::-;-1:-1;;;;;50450:54;;;11742:67;;50450:54;;;31465:2;31450:18;;11742:67;50450:54;;;31556:2;31541:18;;10407:37;31239:2;31224:18;;31210:360::o;31577:808::-;-1:-1;;;;;50450:54;;;11742:67;;50450:54;;;32097:2;32082:18;;11742:67;50450:54;;;;32188:2;32173:18;;10407:37;32279:2;32264:18;;22998;;;;32370:3;32355:19;;22998:18;;;;31870:3;31855:19;;31841:544::o;32392:856::-;-1:-1;;;;;50450:54;;;11742:67;;50450:54;;32944:2;32929:18;;11742:67;33035:2;33020:18;;22998;;;32717:3;33072:2;33057:18;;33050:48;;;32702:19;;49430;;;32392:856;-1:-1;;;;;10879:78;;10876:2;;;-1:-1;;10960:12;10876:2;32944;10995:6;10991:17;52330:6;52325:3;49470:14;32706:9;49470:14;52307:30;52368:16;;;;49470:14;52368:16;52361:27;;;52368:16;32688:560;-1:-1;;;;;32688:560::o;33255:746::-;-1:-1;;;;;50450:54;;;11742:67;;50450:54;;;;33776:2;33761:18;;11742:67;33867:2;33852:18;;22998;33987:2;33972:18;;22998;;;;33549:3;33534:19;;33520:481::o;34008:310::-;;34155:2;;34176:17;34169:47;12819:5;49262:12;49442:6;34155:2;34144:9;34140:18;49430:19;-1:-1;52475:101;52489:6;52486:1;52483:13;52475:101;;;52556:11;;;;;52550:18;52537:11;;;49470:14;52537:11;52530:39;52504:10;;52475:101;;;52591:6;52588:1;52585:13;52582:2;;;-1:-1;49470:14;52647:6;34144:9;52638:16;;52631:27;52582:2;-1:-1;53739:7;53723:14;-1:-1;;53719:28;12977:39;;;;49470:14;12977:39;;34126:192;-1:-1;;;34126:192::o;34325:416::-;34525:2;34539:47;;;13253:2;34510:18;;;49430:19;-1:-1;;;49470:14;;;13269:41;13329:12;;;34496:245::o;34748:416::-;34948:2;34962:47;;;13580:2;34933:18;;;49430:19;-1:-1;;;49470:14;;;13596:51;13666:12;;;34919:245::o;35171:416::-;35371:2;35385:47;;;35356:18;;;49430:19;13953:34;49470:14;;;13933:55;14007:12;;;35342:245::o;35594:416::-;35794:2;35808:47;;;14258:2;35779:18;;;49430:19;-1:-1;;;49470:14;;;14274:48;14341:12;;;35765:245::o;36017:416::-;36217:2;36231:47;;;14592:2;36202:18;;;49430:19;-1:-1;;;49470:14;;;14608:43;14670:12;;;36188:245::o;36440:416::-;36640:2;36654:47;;;14921:2;36625:18;;;49430:19;-1:-1;;;49470:14;;;14937:42;14998:12;;;36611:245::o;36863:416::-;37063:2;37077:47;;;15249:2;37048:18;;;49430:19;-1:-1;;;49470:14;;;15265:39;15323:12;;;37034:245::o;37286:416::-;37486:2;37500:47;;;15574:2;37471:18;;;49430:19;-1:-1;;;49470:14;;;15590:47;15656:12;;;37457:245::o;37709:416::-;37909:2;37923:47;;;15907:2;37894:18;;;49430:19;-1:-1;;;49470:14;;;15923:45;15987:12;;;37880:245::o;38132:416::-;38332:2;38346:47;;;16238:2;38317:18;;;49430:19;-1:-1;;;49470:14;;;16254:38;16311:12;;;38303:245::o;38555:416::-;38755:2;38769:47;;;16562:2;38740:18;;;49430:19;-1:-1;;;49470:14;;;16578:37;16634:12;;;38726:245::o;38978:416::-;39178:2;39192:47;;;16885:2;39163:18;;;49430:19;-1:-1;;;49470:14;;;16901:42;16962:12;;;39149:245::o;39401:416::-;39601:2;39615:47;;;17213:2;39586:18;;;49430:19;-1:-1;;;49470:14;;;17229:39;17287:12;;;39572:245::o;39824:416::-;40024:2;40038:47;;;17538:2;40009:18;;;49430:19;-1:-1;;;49470:14;;;17554:34;17607:12;;;39995:245::o;40247:416::-;40447:2;40461:47;;;17858:2;40432:18;;;49430:19;-1:-1;;;49470:14;;;17874:36;17929:12;;;40418:245::o;40670:416::-;40870:2;40884:47;;;18180:2;40855:18;;;49430:19;-1:-1;;;49470:14;;;18196:39;18254:12;;;40841:245::o;41093:416::-;41293:2;41307:47;;;18505:2;41278:18;;;49430:19;-1:-1;;;49470:14;;;18521:42;18582:12;;;41264:245::o;41516:416::-;41716:2;41730:47;;;18833:2;41701:18;;;49430:19;-1:-1;;;49470:14;;;18849:39;18907:12;;;41687:245::o;41939:416::-;42139:2;42153:47;;;19158:2;42124:18;;;49430:19;-1:-1;;;49470:14;;;19174:44;19237:12;;;42110:245::o;42362:416::-;42562:2;42576:47;;;19488:2;42547:18;;;49430:19;-1:-1;;;49470:14;;;19504:35;19558:12;;;42533:245::o;42785:416::-;42985:2;42999:47;;;19809:2;42970:18;;;49430:19;-1:-1;;;49470:14;;;19825:43;19887:12;;;42956:245::o;43208:416::-;43408:2;43422:47;;;20138:2;43393:18;;;49430:19;-1:-1;;;49470:14;;;20154:44;20217:12;;;43379:245::o;43631:416::-;43831:2;43845:47;;;20468:2;43816:18;;;49430:19;-1:-1;;;49470:14;;;20484:45;20548:12;;;43802:245::o;44054:416::-;44254:2;44268:47;;;20799:2;44239:18;;;49430:19;-1:-1;;;49470:14;;;20815:50;20884:12;;;44225:245::o;44477:416::-;44677:2;44691:47;;;21135:2;44662:18;;;49430:19;-1:-1;;;49470:14;;;21151:38;21208:12;;;44648:245::o;44900:416::-;45100:2;45114:47;;;21459:2;45085:18;;;49430:19;-1:-1;;;49470:14;;;21475:44;21538:12;;;45071:245::o;45323:416::-;45523:2;45537:47;;;21789:2;45508:18;;;49430:19;-1:-1;;;49470:14;;;21805:40;21864:12;;;45494:245::o;45746:416::-;45946:2;45960:47;;;22115:2;45931:18;;;49430:19;-1:-1;;;49470:14;;;22131:39;22189:12;;;45917:245::o;46169:416::-;46369:2;46383:47;;;22440:2;46354:18;;;49430:19;22476:31;49470:14;;;22456:52;22527:12;;;46340:245::o;46592:416::-;46792:2;46806:47;;;22778:2;46777:18;;;49430:19;-1:-1;;;49470:14;;;22794:51;22864:12;;;46763:245::o;47015:477::-;;47237:3;47226:9;47222:19;47214:27;;23328:16;23322:23;49924:4;;23413:9;49913:16;50105:13;50098:21;11178:3;11171:34;49924:4;23610:9;54401:1;54397:13;49913:16;50105:13;50098:21;23685:4;23680:3;23676:14;11171:34;49924:4;23807:9;53954:2;53950:14;49913:16;50105:13;50098:21;23882:4;23877:3;23873:14;11171:34;49924:4;24006:9;54066:2;54062:14;49913:16;50105:13;50098:21;24081:4;24076:3;24072:14;11171:34;24218:65;24277:4;24272:3;24268:14;49924:4;24202:9;23685:4;54174:14;49913:16;24218:65;:::i;:::-;24411;24470:4;24465:3;24461:14;49924:4;24395:9;54290:2;54286:14;49913:16;24411:65;:::i;:::-;;;50327:49;50370:5;50327:49;:::i;:::-;51830:40;47477:3;47466:9;47462:19;12449:64;47208:284;;;;;:::o;47499:222::-;22998:18;;;47626:2;47611:18;;47597:124::o;47728:333::-;22998:18;;;48047:2;48032:18;;22998;47883:2;47868:18;;47854:207::o;48068:214::-;49924:4;49913:16;;;;24819:35;;48191:2;48176:18;;48162:120::o;48289:256::-;48351:2;48345:9;48377:17;;;-1:-1;;;;;48437:34;;48473:22;;;48434:62;48431:2;;;48509:1;;48499:12;48431:2;48351;48518:22;48329:216;;-1:-1;48329:216::o;48552:304::-;;-1:-1;;;;;48700:30;;48697:2;;;-1:-1;;48733:12;48697:2;-1:-1;48778:4;48766:17;;;48831:15;;48634:222::o;54428:107::-;54513:1;54506:5;54503:12;54493:2;;54519:9;54542:117;-1:-1;;;;;50450:54;;54601:35;;54591:2;;54650:1;;54640:12;54666:111;54747:5;50105:13;50098:21;54725:5;54722:32;54712:2;;54768:1;;54758:12

Swarm Source

ipfs://4f20e5c32495ddcba8a4e93222dfe69be39c8625c8fe75306b57180156f003b8
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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