Moonbase Alpha Testnet

Contract

0xea3Fcb53EBcc6aA141689a740C9142d2395CCab4

Overview

DEV Balance

Moonbase Alpha LogoMoonbase Alpha LogoMoonbase Alpha Logo0 DEV

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
0x6080604046177992023-06-26 18:59:00390 days ago1687805940IN
 Contract Creation
0 DEV0.015507953

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
79086952024-07-19 17:49:0043 hrs ago1721411340
0xea3Fcb53...2395CCab4
0 DEV
79086952024-07-19 17:49:0043 hrs ago1721411340
0xea3Fcb53...2395CCab4
0 DEV
79086952024-07-19 17:49:0043 hrs ago1721411340
0xea3Fcb53...2395CCab4
0 DEV
79086952024-07-19 17:49:0043 hrs ago1721411340
0xea3Fcb53...2395CCab4
0 DEV
79086952024-07-19 17:49:0043 hrs ago1721411340
0xea3Fcb53...2395CCab4
0 DEV
79086952024-07-19 17:49:0043 hrs ago1721411340
0xea3Fcb53...2395CCab4
0 DEV
79086952024-07-19 17:49:0043 hrs ago1721411340
0xea3Fcb53...2395CCab4
0 DEV
79086952024-07-19 17:49:0043 hrs ago1721411340
0xea3Fcb53...2395CCab4
0 DEV
79086952024-07-19 17:49:0043 hrs ago1721411340
0xea3Fcb53...2395CCab4
0 DEV
79086952024-07-19 17:49:0043 hrs ago1721411340
0xea3Fcb53...2395CCab4
0 DEV
79086952024-07-19 17:49:0043 hrs ago1721411340
0xea3Fcb53...2395CCab4
0 DEV
79086952024-07-19 17:49:0043 hrs ago1721411340
0xea3Fcb53...2395CCab4
0 DEV
79059672024-07-19 12:48:542 days ago1721393334
0xea3Fcb53...2395CCab4
0 DEV
79059672024-07-19 12:48:542 days ago1721393334
0xea3Fcb53...2395CCab4
0 DEV
79059672024-07-19 12:48:542 days ago1721393334
0xea3Fcb53...2395CCab4
0 DEV
79059672024-07-19 12:48:542 days ago1721393334
0xea3Fcb53...2395CCab4
0 DEV
79059672024-07-19 12:48:542 days ago1721393334
0xea3Fcb53...2395CCab4
0 DEV
79059672024-07-19 12:48:542 days ago1721393334
0xea3Fcb53...2395CCab4
0 DEV
79059672024-07-19 12:48:542 days ago1721393334
0xea3Fcb53...2395CCab4
0 DEV
79059672024-07-19 12:48:542 days ago1721393334
0xea3Fcb53...2395CCab4
0 DEV
79059672024-07-19 12:48:542 days ago1721393334
0xea3Fcb53...2395CCab4
0 DEV
79059672024-07-19 12:48:542 days ago1721393334
0xea3Fcb53...2395CCab4
0 DEV
79059672024-07-19 12:48:542 days ago1721393334
0xea3Fcb53...2395CCab4
0 DEV
79059672024-07-19 12:48:542 days ago1721393334
0xea3Fcb53...2395CCab4
0 DEV
79059182024-07-19 12:43:302 days ago1721393010
0xea3Fcb53...2395CCab4
0 DEV
View All Internal Transactions
Loading...
Loading

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

Contract Name:
BridgeImplementation

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at moonbase.moonscan.io on 2023-03-15
*/

// SPDX-License-Identifier: Apache 2
// File: @openzeppelin/contracts/proxy/beacon/IBeacon.sol


pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeacon {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

// File: @openzeppelin/contracts/utils/Address.sol


pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/utils/StorageSlot.sol


pragma solidity ^0.8.0;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly {
            r.slot := slot
        }
    }
}

// File: @openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol


pragma solidity ^0.8.2;



/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967Upgrade {
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallSecure(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        address oldImplementation = _getImplementation();

        // Initial upgrade and setup call
        _setImplementation(newImplementation);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(newImplementation, data);
        }

        // Perform rollback test if not already in progress
        StorageSlot.BooleanSlot storage rollbackTesting = StorageSlot.getBooleanSlot(_ROLLBACK_SLOT);
        if (!rollbackTesting.value) {
            // Trigger rollback using upgradeTo from the new implementation
            rollbackTesting.value = true;
            Address.functionDelegateCall(
                newImplementation,
                abi.encodeWithSignature("upgradeTo(address)", oldImplementation)
            );
            rollbackTesting.value = false;
            // Check rollback was effective
            require(oldImplementation == _getImplementation(), "ERC1967Upgrade: upgrade breaks further upgrades");
            // Finally reset to the new implementation and log the upgrade
            _upgradeTo(newImplementation);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlot.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            Address.isContract(IBeacon(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
        }
    }
}

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

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

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

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

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

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


pragma solidity ^0.8.0;


/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/libraries/external/BytesLib.sol

/*
 * @title Solidity Bytes Arrays Utils
 * @author Gonçalo Sá <[email protected]>
 *
 * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
 *      The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
 */
pragma solidity >=0.8.0 <0.9.0;


library BytesLib {
    function concat(
        bytes memory _preBytes,
        bytes memory _postBytes
    )
        internal
        pure
        returns (bytes memory)
    {
        bytes memory tempBytes;

        assembly {
            // Get a location of some free memory and store it in tempBytes as
            // Solidity does for memory variables.
            tempBytes := mload(0x40)

            // Store the length of the first bytes array at the beginning of
            // the memory for tempBytes.
            let length := mload(_preBytes)
            mstore(tempBytes, length)

            // Maintain a memory counter for the current write location in the
            // temp bytes array by adding the 32 bytes for the array length to
            // the starting location.
            let mc := add(tempBytes, 0x20)
            // Stop copying when the memory counter reaches the length of the
            // first bytes array.
            let end := add(mc, length)

            for {
                // Initialize a copy counter to the start of the _preBytes data,
                // 32 bytes into its memory.
                let cc := add(_preBytes, 0x20)
            } lt(mc, end) {
                // Increase both counters by 32 bytes each iteration.
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
                // Write the _preBytes data into the tempBytes memory 32 bytes
                // at a time.
                mstore(mc, mload(cc))
            }

            // Add the length of _postBytes to the current length of tempBytes
            // and store it as the new length in the first 32 bytes of the
            // tempBytes memory.
            length := mload(_postBytes)
            mstore(tempBytes, add(length, mload(tempBytes)))

            // Move the memory counter back from a multiple of 0x20 to the
            // actual end of the _preBytes data.
            mc := end
            // Stop copying when the memory counter reaches the new combined
            // length of the arrays.
            end := add(mc, length)

            for {
                let cc := add(_postBytes, 0x20)
            } lt(mc, end) {
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
                mstore(mc, mload(cc))
            }

            // Update the free-memory pointer by padding our last write location
            // to 32 bytes: add 31 bytes to the end of tempBytes to move to the
            // next 32 byte block, then round down to the nearest multiple of
            // 32. If the sum of the length of the two arrays is zero then add
            // one before rounding down to leave a blank 32 bytes (the length block with 0).
            mstore(0x40, and(
              add(add(end, iszero(add(length, mload(_preBytes)))), 31),
              not(31) // Round down to the nearest 32 bytes.
            ))
        }

        return tempBytes;
    }

    function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal {
        assembly {
            // Read the first 32 bytes of _preBytes storage, which is the length
            // of the array. (We don't need to use the offset into the slot
            // because arrays use the entire slot.)
            let fslot := sload(_preBytes.slot)
            // Arrays of 31 bytes or less have an even value in their slot,
            // while longer arrays have an odd value. The actual length is
            // the slot divided by two for odd values, and the lowest order
            // byte divided by two for even values.
            // If the slot is even, bitwise and the slot with 255 and divide by
            // two to get the length. If the slot is odd, bitwise and the slot
            // with -1 and divide by two.
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)
            let newlength := add(slength, mlength)
            // slength can contain both the length and contents of the array
            // if length < 32 bytes so let's prepare for that
            // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
            switch add(lt(slength, 32), lt(newlength, 32))
            case 2 {
                // Since the new array still fits in the slot, we just need to
                // update the contents of the slot.
                // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length
                sstore(
                    _preBytes.slot,
                    // all the modifications to the slot are inside this
                    // next block
                    add(
                        // we can just add to the slot contents because the
                        // bytes we want to change are the LSBs
                        fslot,
                        add(
                            mul(
                                div(
                                    // load the bytes from memory
                                    mload(add(_postBytes, 0x20)),
                                    // zero all bytes to the right
                                    exp(0x100, sub(32, mlength))
                                ),
                                // and now shift left the number of bytes to
                                // leave space for the length in the slot
                                exp(0x100, sub(32, newlength))
                            ),
                            // increase length by the double of the memory
                            // bytes length
                            mul(mlength, 2)
                        )
                    )
                )
            }
            case 1 {
                // The stored value fits in the slot, but the combined value
                // will exceed it.
                // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes.slot)
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

                // save new length
                sstore(_preBytes.slot, add(mul(newlength, 2), 1))

                // The contents of the _postBytes array start 32 bytes into
                // the structure. Our first read should obtain the `submod`
                // bytes that can fit into the unused space in the last word
                // of the stored array. To get this, we read 32 bytes starting
                // from `submod`, so the data we read overlaps with the array
                // contents by `submod` bytes. Masking the lowest-order
                // `submod` bytes allows us to add that value directly to the
                // stored value.

                let submod := sub(32, slength)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(
                    sc,
                    add(
                        and(
                            fslot,
                            0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00
                        ),
                        and(mload(mc), mask)
                    )
                )

                for {
                    mc := add(mc, 0x20)
                    sc := add(sc, 1)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
            default {
                // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes.slot)
                // Start copying to the last used word of the stored array.
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

                // save new length
                sstore(_preBytes.slot, add(mul(newlength, 2), 1))

                // Copy over the first `submod` bytes of the new data as in
                // case 1 above.
                let slengthmod := mod(slength, 32)
                let mlengthmod := mod(mlength, 32)
                let submod := sub(32, slengthmod)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(sc, add(sload(sc), and(mload(mc), mask)))

                for {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
        }
    }

    function slice(
        bytes memory _bytes,
        uint256 _start,
        uint256 _length
    )
        internal
        pure
        returns (bytes memory)
    {
        require(_length + 31 >= _length, "slice_overflow");
        require(_bytes.length >= _start + _length, "slice_outOfBounds");

        bytes memory tempBytes;

        assembly {
            switch iszero(_length)
            case 0 {
                // Get a location of some free memory and store it in tempBytes as
                // Solidity does for memory variables.
                tempBytes := mload(0x40)

                // The first word of the slice result is potentially a partial
                // word read from the original array. To read it, we calculate
                // the length of that partial word and start copying that many
                // bytes into the array. The first word we copy will start with
                // data we don't care about, but the last `lengthmod` bytes will
                // land at the beginning of the contents of the new array. When
                // we're done copying, we overwrite the full first word with
                // the actual length of the slice.
                let lengthmod := and(_length, 31)

                // The multiplication in the next line is necessary
                // because when slicing multiples of 32 bytes (lengthmod == 0)
                // the following copy loop was copying the origin's length
                // and then ending prematurely not copying everything it should.
                let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))
                let end := add(mc, _length)

                for {
                    // The multiplication in the next line has the same exact purpose
                    // as the one above.
                    let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)
                } lt(mc, end) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                    mstore(mc, mload(cc))
                }

                mstore(tempBytes, _length)

                //update free-memory pointer
                //allocating the array padded to 32 bytes like the compiler does now
                mstore(0x40, and(add(mc, 31), not(31)))
            }
            //if we want a zero-length slice let's just return a zero-length array
            default {
                tempBytes := mload(0x40)
                //zero out the 32 bytes slice we are about to return
                //we need to do it because Solidity does not garbage collect
                mstore(tempBytes, 0)

                mstore(0x40, add(tempBytes, 0x20))
            }
        }

        return tempBytes;
    }

    function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) {
        require(_bytes.length >= _start + 20, "toAddress_outOfBounds");
        address tempAddress;

        assembly {
            tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000)
        }

        return tempAddress;
    }

    function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) {
        require(_bytes.length >= _start + 1 , "toUint8_outOfBounds");
        uint8 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x1), _start))
        }

        return tempUint;
    }

    function toUint16(bytes memory _bytes, uint256 _start) internal pure returns (uint16) {
        require(_bytes.length >= _start + 2, "toUint16_outOfBounds");
        uint16 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x2), _start))
        }

        return tempUint;
    }

    function toUint32(bytes memory _bytes, uint256 _start) internal pure returns (uint32) {
        require(_bytes.length >= _start + 4, "toUint32_outOfBounds");
        uint32 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x4), _start))
        }

        return tempUint;
    }

    function toUint64(bytes memory _bytes, uint256 _start) internal pure returns (uint64) {
        require(_bytes.length >= _start + 8, "toUint64_outOfBounds");
        uint64 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x8), _start))
        }

        return tempUint;
    }

    function toUint96(bytes memory _bytes, uint256 _start) internal pure returns (uint96) {
        require(_bytes.length >= _start + 12, "toUint96_outOfBounds");
        uint96 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0xc), _start))
        }

        return tempUint;
    }

    function toUint128(bytes memory _bytes, uint256 _start) internal pure returns (uint128) {
        require(_bytes.length >= _start + 16, "toUint128_outOfBounds");
        uint128 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x10), _start))
        }

        return tempUint;
    }

    function toUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256) {
        require(_bytes.length >= _start + 32, "toUint256_outOfBounds");
        uint256 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x20), _start))
        }

        return tempUint;
    }

    function toBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32) {
        require(_bytes.length >= _start + 32, "toBytes32_outOfBounds");
        bytes32 tempBytes32;

        assembly {
            tempBytes32 := mload(add(add(_bytes, 0x20), _start))
        }

        return tempBytes32;
    }

    function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) {
        bool success = true;

        assembly {
            let length := mload(_preBytes)

            // if lengths don't match the arrays are not equal
            switch eq(length, mload(_postBytes))
            case 1 {
                // cb is a circuit breaker in the for loop since there's
                //  no said feature for inline assembly loops
                // cb = 1 - don't breaker
                // cb = 0 - break
                let cb := 1

                let mc := add(_preBytes, 0x20)
                let end := add(mc, length)

                for {
                    let cc := add(_postBytes, 0x20)
                // the next line is the loop condition:
                // while(uint256(mc < end) + cb == 2)
                } eq(add(lt(mc, end), cb), 2) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                    // if any of these checks fails then arrays are not equal
                    if iszero(eq(mload(mc), mload(cc))) {
                        // unsuccess:
                        success := 0
                        cb := 0
                    }
                }
            }
            default {
                // unsuccess:
                success := 0
            }
        }

        return success;
    }

    function equalStorage(
        bytes storage _preBytes,
        bytes memory _postBytes
    )
        internal
        view
        returns (bool)
    {
        bool success = true;

        assembly {
            // we know _preBytes_offset is 0
            let fslot := sload(_preBytes.slot)
            // Decode the length of the stored array like in concatStorage().
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)

            // if lengths don't match the arrays are not equal
            switch eq(slength, mlength)
            case 1 {
                // slength can contain both the length and contents of the array
                // if length < 32 bytes so let's prepare for that
                // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
                if iszero(iszero(slength)) {
                    switch lt(slength, 32)
                    case 1 {
                        // blank the last byte which is the length
                        fslot := mul(div(fslot, 0x100), 0x100)

                        if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) {
                            // unsuccess:
                            success := 0
                        }
                    }
                    default {
                        // cb is a circuit breaker in the for loop since there's
                        //  no said feature for inline assembly loops
                        // cb = 1 - don't breaker
                        // cb = 0 - break
                        let cb := 1

                        // get the keccak hash to get the contents of the array
                        mstore(0x0, _preBytes.slot)
                        let sc := keccak256(0x0, 0x20)

                        let mc := add(_postBytes, 0x20)
                        let end := add(mc, mlength)

                        // the next line is the loop condition:
                        // while(uint256(mc < end) + cb == 2)
                        for {} eq(add(lt(mc, end), cb), 2) {
                            sc := add(sc, 1)
                            mc := add(mc, 0x20)
                        } {
                            if iszero(eq(sload(sc), mload(mc))) {
                                // unsuccess:
                                success := 0
                                cb := 0
                            }
                        }
                    }
                }
            }
            default {
                // unsuccess:
                success := 0
            }
        }

        return success;
    }
}

// File: contracts/interfaces/IWormhole.sol

// contracts/Messages.sol

pragma solidity ^0.8.0;

interface IWormhole {
    struct GuardianSet {
        address[] keys;
        uint32 expirationTime;
    }

    struct Signature {
        bytes32 r;
        bytes32 s;
        uint8 v;
        uint8 guardianIndex;
    }

    struct VM {
        uint8 version;
        uint32 timestamp;
        uint32 nonce;
        uint16 emitterChainId;
        bytes32 emitterAddress;
        uint64 sequence;
        uint8 consistencyLevel;
        bytes payload;

        uint32 guardianSetIndex;
        Signature[] signatures;

        bytes32 hash;
    }

    struct ContractUpgrade {
        bytes32 module;
        uint8 action;
        uint16 chain;

        address newContract;
    }

    struct GuardianSetUpgrade {
        bytes32 module;
        uint8 action;
        uint16 chain;

        GuardianSet newGuardianSet;
        uint32 newGuardianSetIndex;
    }

    struct SetMessageFee {
        bytes32 module;
        uint8 action;
        uint16 chain;

        uint256 messageFee;
    }

    struct TransferFees {
        bytes32 module;
        uint8 action;
        uint16 chain;

        uint256 amount;
        bytes32 recipient;
    }

    struct RecoverChainId {
        bytes32 module;
        uint8 action;

        uint256 evmChainId;
        uint16 newChainId;
    }

    event LogMessagePublished(address indexed sender, uint64 sequence, uint32 nonce, bytes payload, uint8 consistencyLevel);
    event ContractUpgraded(address indexed oldContract, address indexed newContract);
    event GuardianSetAdded(uint32 indexed index);

    function publishMessage(
        uint32 nonce,
        bytes memory payload,
        uint8 consistencyLevel
    ) external payable returns (uint64 sequence);

    function initialize() external;

    function parseAndVerifyVM(bytes calldata encodedVM) external view returns (VM memory vm, bool valid, string memory reason);

    function verifyVM(VM memory vm) external view returns (bool valid, string memory reason);

    function verifySignatures(bytes32 hash, Signature[] memory signatures, GuardianSet memory guardianSet) external pure returns (bool valid, string memory reason);

    function parseVM(bytes memory encodedVM) external pure returns (VM memory vm);

    function quorum(uint numGuardians) external pure returns (uint numSignaturesRequiredForQuorum);

    function getGuardianSet(uint32 index) external view returns (GuardianSet memory);

    function getCurrentGuardianSetIndex() external view returns (uint32);

    function getGuardianSetExpiry() external view returns (uint32);

    function governanceActionIsConsumed(bytes32 hash) external view returns (bool);

    function isInitialized(address impl) external view returns (bool);

    function chainId() external view returns (uint16);

    function isFork() external view returns (bool);

    function governanceChainId() external view returns (uint16);

    function governanceContract() external view returns (bytes32);

    function messageFee() external view returns (uint256);

    function evmChainId() external view returns (uint256);

    function nextSequence(address emitter) external view returns (uint64);

    function parseContractUpgrade(bytes memory encodedUpgrade) external pure returns (ContractUpgrade memory cu);

    function parseGuardianSetUpgrade(bytes memory encodedUpgrade) external pure returns (GuardianSetUpgrade memory gsu);

    function parseSetMessageFee(bytes memory encodedSetMessageFee) external pure returns (SetMessageFee memory smf);

    function parseTransferFees(bytes memory encodedTransferFees) external pure returns (TransferFees memory tf);

    function parseRecoverChainId(bytes memory encodedRecoverChainId) external pure returns (RecoverChainId memory rci);

    function submitContractUpgrade(bytes memory _vm) external;

    function submitSetMessageFee(bytes memory _vm) external;

    function submitNewGuardianSet(bytes memory _vm) external;

    function submitTransferFees(bytes memory _vm) external;

    function submitRecoverChainId(bytes memory _vm) external;
}

// File: contracts/bridge/interfaces/IWETH.sol

// contracts/Bridge.sol

pragma solidity ^0.8.0;

interface IWETH is IERC20 {
    function deposit() external payable;
    function withdraw(uint amount) external;
}

// File: contracts/bridge/BridgeStructs.sol

// contracts/Structs.sol

pragma solidity ^0.8.0;

contract BridgeStructs {
    struct Transfer {
        // PayloadID uint8 = 1
        uint8 payloadID;
        // Amount being transferred (big-endian uint256)
        uint256 amount;
        // Address of the token. Left-zero-padded if shorter than 32 bytes
        bytes32 tokenAddress;
        // Chain ID of the token
        uint16 tokenChain;
        // Address of the recipient. Left-zero-padded if shorter than 32 bytes
        bytes32 to;
        // Chain ID of the recipient
        uint16 toChain;
        // Amount of tokens (big-endian uint256) that the user is willing to pay as relayer fee. Must be <= Amount.
        uint256 fee;
    }

    struct TransferWithPayload {
        // PayloadID uint8 = 3
        uint8 payloadID;
        // Amount being transferred (big-endian uint256)
        uint256 amount;
        // Address of the token. Left-zero-padded if shorter than 32 bytes
        bytes32 tokenAddress;
        // Chain ID of the token
        uint16 tokenChain;
        // Address of the recipient. Left-zero-padded if shorter than 32 bytes
        bytes32 to;
        // Chain ID of the recipient
        uint16 toChain;
        // Address of the message sender. Left-zero-padded if shorter than 32 bytes
        bytes32 fromAddress;
        // An arbitrary payload
        bytes payload;
    }

    struct TransferResult {
        // Chain ID of the token
        uint16  tokenChain;
        // Address of the token. Left-zero-padded if shorter than 32 bytes
        bytes32 tokenAddress;
        // Amount being transferred (big-endian uint256)
        uint256 normalizedAmount;
        // Amount of tokens (big-endian uint256) that the user is willing to pay as relayer fee. Must be <= Amount.
        uint256 normalizedArbiterFee;
        // Portion of msg.value to be paid as the core bridge fee
        uint wormholeFee;
    }

    struct AssetMeta {
        // PayloadID uint8 = 2
        uint8 payloadID;
        // Address of the token. Left-zero-padded if shorter than 32 bytes
        bytes32 tokenAddress;
        // Chain ID of the token
        uint16 tokenChain;
        // Number of decimals of the token (big-endian uint256)
        uint8 decimals;
        // Symbol of the token (UTF-8)
        bytes32 symbol;
        // Name of the token (UTF-8)
        bytes32 name;
    }

    struct RegisterChain {
        // Governance Header
        // module: "TokenBridge" left-padded
        bytes32 module;
        // governance action: 1
        uint8 action;
        // governance paket chain id: this or 0
        uint16 chainId;

        // Chain ID
        uint16 emitterChainID;
        // Emitter address. Left-zero-padded if shorter than 32 bytes
        bytes32 emitterAddress;
    }

    struct UpgradeContract {
        // Governance Header
        // module: "TokenBridge" left-padded
        bytes32 module;
        // governance action: 2
        uint8 action;
        // governance paket chain id
        uint16 chainId;

        // Address of the new contract
        bytes32 newContract;
    }

    struct RecoverChainId {
        // Governance Header
        // module: "TokenBridge" left-padded
        bytes32 module;
        // governance action: 3
        uint8 action;

        // EIP-155 Chain ID
        uint256 evmChainId;
        // Chain ID
        uint16 newChainId;
    }
}

// File: contracts/bridge/BridgeState.sol

// contracts/State.sol

pragma solidity ^0.8.0;

contract BridgeStorage {
    struct Provider {
        uint16 chainId;
        uint16 governanceChainId;
        // Required number of block confirmations to assume finality
        uint8 finality;
        bytes32 governanceContract;
        address WETH;
    }

    struct Asset {
        uint16 chainId;
        bytes32 assetAddress;
    }

    struct State {
        address payable wormhole;
        address tokenImplementation;

        Provider provider;

        // Mapping of consumed governance actions
        mapping(bytes32 => bool) consumedGovernanceActions;

        // Mapping of consumed token transfers
        mapping(bytes32 => bool) completedTransfers;

        // Mapping of initialized implementations
        mapping(address => bool) initializedImplementations;

        // Mapping of wrapped assets (chainID => nativeAddress => wrappedAddress)
        mapping(uint16 => mapping(bytes32 => address)) wrappedAssets;

        // Mapping to safely identify wrapped assets
        mapping(address => bool) isWrappedAsset;

        // Mapping of native assets to amount outstanding on other chains
        mapping(address => uint256) outstandingBridged;

        // Mapping of bridge contracts on other chains
        mapping(uint16 => bytes32) bridgeImplementations;

        // EIP-155 Chain ID
        uint256 evmChainId;
    }
}

contract BridgeState {
    BridgeStorage.State _state;
}

// File: contracts/bridge/BridgeGetters.sol

// contracts/Getters.sol

pragma solidity ^0.8.0;


contract BridgeGetters is BridgeState {
    function governanceActionIsConsumed(bytes32 hash) public view returns (bool) {
        return _state.consumedGovernanceActions[hash];
    }

    function isInitialized(address impl) public view returns (bool) {
        return _state.initializedImplementations[impl];
    }

    function isTransferCompleted(bytes32 hash) public view returns (bool) {
        return _state.completedTransfers[hash];
    }

    function wormhole() public view returns (IWormhole) {
        return IWormhole(_state.wormhole);
    }

    function chainId() public view returns (uint16){
        return _state.provider.chainId;
    }

    function evmChainId() public view returns (uint256) {
        return _state.evmChainId;
    }

    function isFork() public view returns (bool) {
        return evmChainId() != block.chainid;
    }

    function governanceChainId() public view returns (uint16){
        return _state.provider.governanceChainId;
    }

    function governanceContract() public view returns (bytes32){
        return _state.provider.governanceContract;
    }

    function wrappedAsset(uint16 tokenChainId, bytes32 tokenAddress) public view returns (address){
        return _state.wrappedAssets[tokenChainId][tokenAddress];
    }

    function bridgeContracts(uint16 chainId_) public view returns (bytes32){
        return _state.bridgeImplementations[chainId_];
    }

    function tokenImplementation() public view returns (address){
        return _state.tokenImplementation;
    }

    function WETH() public view returns (IWETH){
        return IWETH(_state.provider.WETH);
    }

    function outstandingBridged(address token) public view returns (uint256){
        return _state.outstandingBridged[token];
    }

    function isWrappedAsset(address token) public view returns (bool){
        return _state.isWrappedAsset[token];
    }

    function finality() public view returns (uint8) {
        return _state.provider.finality;
    }
}

// File: contracts/bridge/BridgeSetters.sol

// contracts/Setters.sol

pragma solidity ^0.8.0;

contract BridgeSetters is BridgeState {
    function setInitialized(address implementatiom) internal {
        _state.initializedImplementations[implementatiom] = true;
    }

    function setGovernanceActionConsumed(bytes32 hash) internal {
        _state.consumedGovernanceActions[hash] = true;
    }

    function setTransferCompleted(bytes32 hash) internal {
        _state.completedTransfers[hash] = true;
    }

    function setChainId(uint16 chainId) internal {
        _state.provider.chainId = chainId;
    }

    function setGovernanceChainId(uint16 chainId) internal {
        _state.provider.governanceChainId = chainId;
    }

    function setGovernanceContract(bytes32 governanceContract) internal {
        _state.provider.governanceContract = governanceContract;
    }

    function setBridgeImplementation(uint16 chainId, bytes32 bridgeContract) internal {
        _state.bridgeImplementations[chainId] = bridgeContract;
    }

    function setTokenImplementation(address impl) internal {
        require(impl != address(0), "invalid implementation address");
        _state.tokenImplementation = impl;
    }

    function setWETH(address weth) internal {
        _state.provider.WETH = weth;
    }

    function setWormhole(address wh) internal {
        _state.wormhole = payable(wh);
    }

    function setWrappedAsset(uint16 tokenChainId, bytes32 tokenAddress, address wrapper) internal {
        _state.wrappedAssets[tokenChainId][tokenAddress] = wrapper;
        _state.isWrappedAsset[wrapper] = true;
    }

    function setOutstandingBridged(address token, uint256 outstanding) internal {
        _state.outstandingBridged[token] = outstanding;
    }

    function setFinality(uint8 finality) internal {
        _state.provider.finality = finality;
    }

    function setEvmChainId(uint256 evmChainId) internal {
        require(evmChainId == block.chainid, "invalid evmChainId");
        _state.evmChainId = evmChainId;
    }
}

// File: @openzeppelin/contracts/proxy/Proxy.sol


pragma solidity ^0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 {
                revert(0, returndatasize())
            }
            default {
                return(0, returndatasize())
            }
        }
    }

    /**
     * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback() external payable virtual {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive() external payable virtual {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     *
     * If overriden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {}
}

// File: @openzeppelin/contracts/proxy/beacon/BeaconProxy.sol


pragma solidity ^0.8.0;



/**
 * @dev This contract implements a proxy that gets the implementation address for each call from a {UpgradeableBeacon}.
 *
 * The beacon address is stored in storage slot `uint256(keccak256('eip1967.proxy.beacon')) - 1`, so that it doesn't
 * conflict with the storage layout of the implementation behind the proxy.
 *
 * _Available since v3.4._
 */
contract BeaconProxy is Proxy, ERC1967Upgrade {
    /**
     * @dev Initializes the proxy with `beacon`.
     *
     * If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This
     * will typically be an encoded function call, and allows initializating the storage of the proxy like a Solidity
     * constructor.
     *
     * Requirements:
     *
     * - `beacon` must be a contract with the interface {IBeacon}.
     */
    constructor(address beacon, bytes memory data) payable {
        assert(_BEACON_SLOT == bytes32(uint256(keccak256("eip1967.proxy.beacon")) - 1));
        _upgradeBeaconToAndCall(beacon, data, false);
    }

    /**
     * @dev Returns the current beacon address.
     */
    function _beacon() internal view virtual returns (address) {
        return _getBeacon();
    }

    /**
     * @dev Returns the current implementation address of the associated beacon.
     */
    function _implementation() internal view virtual override returns (address) {
        return IBeacon(_getBeacon()).implementation();
    }

    /**
     * @dev Changes the proxy to use a new beacon. Deprecated: see {_upgradeBeaconToAndCall}.
     *
     * If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon.
     *
     * Requirements:
     *
     * - `beacon` must be a contract.
     * - The implementation returned by `beacon` must be a contract.
     */
    function _setBeacon(address beacon, bytes memory data) internal virtual {
        _upgradeBeaconToAndCall(beacon, data, false);
    }
}

// File: contracts/bridge/token/Token.sol

// contracts/Structs.sol

pragma solidity ^0.8.0;

contract BridgeToken is BeaconProxy {
    constructor(address beacon, bytes memory data) BeaconProxy(beacon, data) {

    }
}

// File: @openzeppelin/contracts/utils/Counters.sol


pragma solidity ^0.8.0;

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

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

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

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

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

// File: contracts/bridge/token/TokenState.sol

// contracts/State.sol

pragma solidity ^0.8.0;

contract TokenStorage {
    struct State {
        string name;
        string symbol;

        uint64 metaLastUpdatedSequence;

        uint256 totalSupply;
        uint8 decimals;

        mapping(address => uint256) balances;

        mapping(address => mapping(address => uint256)) allowances;

        address owner;

        bool initialized;

        uint16 chainId;
        bytes32 nativeContract;

        // EIP712
        // Cache the domain separator and salt, but also store the chain id that 
        // it corresponds to, in order to invalidate the cached domain separator
        // if the chain id changes.
        bytes32 cachedDomainSeparator;
        uint256 cachedChainId;
        address cachedThis;
        bytes32 cachedSalt;
        bytes32 cachedHashedName;

        // ERC20Permit draft
        mapping(address => Counters.Counter) nonces;
    }
}

contract TokenState {
    using Counters for Counters.Counter;

    TokenStorage.State _state;

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner_) public view returns (uint256) {
        return _state.nonces[owner_].current();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     */
    function _useNonce(address owner_) internal returns (uint256 current) {
        Counters.Counter storage nonce = _state.nonces[owner_];
        current = nonce.current();
        nonce.increment();
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol


pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

// File: contracts/bridge/token/TokenImplementation.sol

// contracts/TokenImplementation.sol

pragma solidity ^0.8.0;





// Based on the OpenZepplin ERC20 implementation, licensed under MIT
contract TokenImplementation is TokenState, Context {
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    function initialize(
        string memory name_,
        string memory symbol_,
        uint8 decimals_,
        uint64 sequence_,
        address owner_,
        uint16 chainId_,
        bytes32 nativeContract_
    ) initializer public {
        _initializeNativeToken(
            name_,
            symbol_,
            decimals_,
            sequence_,
            owner_,
            chainId_,
            nativeContract_
        );

        // initialize w/ EIP712 state variables for domain separator
        _initializePermitStateIfNeeded();
    }

    function _initializeNativeToken(
        string memory name_,
        string memory symbol_,
        uint8 decimals_,
        uint64 sequence_,
        address owner_,
        uint16 chainId_,
        bytes32 nativeContract_
    ) internal {
        _state.name = name_;
        _state.symbol = symbol_;
        _state.decimals = decimals_;
        _state.metaLastUpdatedSequence = sequence_;

        _state.owner = owner_;

        _state.chainId = chainId_;
        _state.nativeContract = nativeContract_;
    }

    function _initializePermitStateIfNeeded() internal {
        // If someone were to change the implementation of name(), we
        // need to make sure we recache.
        bytes32 hashedName = _eip712DomainNameHashed();

        // If for some reason the salt generation changes with newer
        // token implementations, we need to make sure the state reflects
        // the new salt.
        bytes32 salt = _eip712DomainSalt();

        // check cached values
        if (_state.cachedHashedName != hashedName || _state.cachedSalt != salt) {
            _state.cachedChainId = block.chainid;
            _state.cachedThis = address(this);
            _state.cachedDomainSeparator = _buildDomainSeparator(hashedName, salt);
            _state.cachedSalt = salt;
            _state.cachedHashedName = hashedName;
        }
    }

    function name() public view returns (string memory) {
        return _state.name;
    }

    function symbol() public view returns (string memory) {
        return _state.symbol;
    }

    function owner() public view returns (address) {
        return _state.owner;
    }

    function decimals() public view returns (uint8) {
        return _state.decimals;
    }

    function totalSupply() public view returns (uint256) {
        return _state.totalSupply;
    }

    function chainId() public view returns (uint16) {
        return _state.chainId;
    }

    function nativeContract() public view returns (bytes32) {
        return _state.nativeContract;
    }

    function balanceOf(address account_) public view returns (uint256) {
        return _state.balances[account_];
    }

    function transfer(address recipient_, uint256 amount_) public returns (bool) {
        _transfer(_msgSender(), recipient_, amount_);
        return true;
    }

    function allowance(address owner_, address spender_) public view returns (uint256) {
        return _state.allowances[owner_][spender_];
    }

    function approve(address spender_, uint256 amount_) public returns (bool) {
        _approve(_msgSender(), spender_, amount_);
        return true;
    }

    function transferFrom(address sender_, address recipient_, uint256 amount_) public returns (bool) {
        _transfer(sender_, recipient_, amount_);

        uint256 currentAllowance = _state.allowances[sender_][_msgSender()];
        require(currentAllowance >= amount_, "ERC20: transfer amount exceeds allowance");
        _approve(sender_, _msgSender(), currentAllowance - amount_);

        return true;
    }

    function increaseAllowance(address spender_, uint256 addedValue_) public returns (bool) {
        _approve(_msgSender(), spender_, _state.allowances[_msgSender()][spender_] + addedValue_);
        return true;
    }

    function decreaseAllowance(address spender_, uint256 subtractedValue_) public returns (bool) {
        uint256 currentAllowance = _state.allowances[_msgSender()][spender_];
        require(currentAllowance >= subtractedValue_, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender_, currentAllowance - subtractedValue_);

        return true;
    }

    function _transfer(address sender_, address recipient_, uint256 amount_) internal {
        require(sender_ != address(0), "ERC20: transfer from the zero address");
        require(recipient_ != address(0), "ERC20: transfer to the zero address");

        uint256 senderBalance = _state.balances[sender_];
        require(senderBalance >= amount_, "ERC20: transfer amount exceeds balance");
        _state.balances[sender_] = senderBalance - amount_;
        _state.balances[recipient_] += amount_;

        emit Transfer(sender_, recipient_, amount_);
    }

    function mint(address account_, uint256 amount_) public onlyOwner {
        _mint(account_, amount_);
    }

    function _mint(address account_, uint256 amount_) internal {
        require(account_ != address(0), "ERC20: mint to the zero address");

        _state.totalSupply += amount_;
        _state.balances[account_] += amount_;
        emit Transfer(address(0), account_, amount_);
    }

    function burn(address account_, uint256 amount_) public onlyOwner {
        _burn(account_, amount_);
    }

    function _burn(address account_, uint256 amount_) internal {
        require(account_ != address(0), "ERC20: burn from the zero address");

        uint256 accountBalance = _state.balances[account_];
        require(accountBalance >= amount_, "ERC20: burn amount exceeds balance");
        _state.balances[account_] = accountBalance - amount_;
        _state.totalSupply -= amount_;

        emit Transfer(account_, address(0), amount_);
    }

    function _approve(address owner_, address spender_, uint256 amount_) internal virtual {
        require(owner_ != address(0), "ERC20: approve from the zero address");
        require(spender_ != address(0), "ERC20: approve to the zero address");

        _state.allowances[owner_][spender_] = amount_;
        emit Approval(owner_, spender_, amount_);
    }

    function updateDetails(string memory name_, string memory symbol_, uint64 sequence_) public onlyOwner {
        require(_state.metaLastUpdatedSequence < sequence_, "current metadata is up to date");

        _state.name = name_;
        _state.symbol = symbol_;
        _state.metaLastUpdatedSequence = sequence_;

        // Because the name is updated, we need to recache the domain separator.
        // For old implementations, none of the caches may have been written to yet.
        _initializePermitStateIfNeeded();
    }

    modifier onlyOwner() {
        require(owner() == _msgSender(), "caller is not the owner");
        _;
    }

    modifier initializer() {
        require(
            !_state.initialized,
            "Already initialized"
        );

        _state.initialized = true;

        _;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _state.cachedThis && block.chainid == _state.cachedChainId) {
            return _state.cachedDomainSeparator;
        } else {
            return _buildDomainSeparator(
                _eip712DomainNameHashed(), _eip712DomainSalt()
            );
        }
    }

    function _buildDomainSeparator(bytes32 hashedName, bytes32 salt) internal view returns (bytes32) {
        return keccak256(
            abi.encode(
                keccak256(
                    "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract,bytes32 salt)"
                ),
                hashedName,
                keccak256(abi.encodePacked(_eip712DomainVersion())),
                block.chainid,
                address(this),
                salt
            )
        );
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(
        address owner_,
        address spender_,
        uint256 value_,
        uint256 deadline_,
        uint8 v_,
        bytes32 r_,
        bytes32 s_
    ) public {
        // for those tokens that have been initialized before permit, we need to set
        // the permit state variables if they have not been set before
        _initializePermitStateIfNeeded();

        // permit is only allowed before the signature's deadline
        require(block.timestamp <= deadline_, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(
            abi.encode(
                keccak256(
                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                ),
                owner_,
                spender_,
                value_,
                _useNonce(owner_),
                deadline_
            )
        );

        bytes32 message = _hashTypedDataV4(structHash);
        address signer = ECDSA.recover(message, v_, r_, s_);

        // if we cannot recover the token owner, signature is invalid
        require(signer == owner_, "ERC20Permit: invalid signature");

        _approve(owner_, spender_, value_);
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() public view returns (bytes32) {
        return _domainSeparatorV4();
    }

    function eip712Domain() public view returns (
        bytes1 domainFields,
        string memory domainName,
        string memory domainVersion,
        uint256 domainChainId,
        address domainVerifyingContract,
        bytes32 domainSalt,
        uint256[] memory domainExtensions
    ) {
        return (
            hex"1F", // 11111
            name(),
            _eip712DomainVersion(),
            block.chainid,
            address(this),
            _eip712DomainSalt(),
            new uint256[](0)
        );
    }

    function _eip712DomainVersion() internal pure returns (string memory) {
        return "1";
    }

    function _eip712DomainNameHashed() internal view returns (bytes32) {
        return keccak256(abi.encodePacked(name()));
    }

    function _eip712DomainSalt() internal view returns (bytes32) {
        return keccak256(abi.encodePacked(_state.chainId, _state.nativeContract));
    }
}

// File: contracts/bridge/BridgeGovernance.sol

// contracts/Bridge.sol

pragma solidity ^0.8.0;






contract BridgeGovernance is BridgeGetters, BridgeSetters, ERC1967Upgrade {
    using BytesLib for bytes;

    // "TokenBridge" (left padded)
    bytes32 constant module = 0x000000000000000000000000000000000000000000546f6b656e427269646765;

    // Execute a RegisterChain governance message
    function registerChain(bytes memory encodedVM) public {
        (IWormhole.VM memory vm, bool valid, string memory reason) = verifyGovernanceVM(encodedVM);
        require(valid, reason);

        setGovernanceActionConsumed(vm.hash);

        BridgeStructs.RegisterChain memory chain = parseRegisterChain(vm.payload);

        require((chain.chainId == chainId() && !isFork()) || chain.chainId == 0, "invalid chain id");
        require(bridgeContracts(chain.emitterChainID) == bytes32(0), "chain already registered");

        setBridgeImplementation(chain.emitterChainID, chain.emitterAddress);
    }

    // Execute a UpgradeContract governance message
    function upgrade(bytes memory encodedVM) public {
        require(!isFork(), "invalid fork");

        (IWormhole.VM memory vm, bool valid, string memory reason) = verifyGovernanceVM(encodedVM);
        require(valid, reason);

        setGovernanceActionConsumed(vm.hash);

        BridgeStructs.UpgradeContract memory implementation = parseUpgrade(vm.payload);

        require(implementation.chainId == chainId(), "wrong chain id");

        upgradeImplementation(address(uint160(uint256(implementation.newContract))));
    }

    /**
    * @dev Updates the `chainId` and `evmChainId` on a forked chain via Governance VAA/VM
    */
    function submitRecoverChainId(bytes memory encodedVM) public {
        require(isFork(), "not a fork");

        (IWormhole.VM memory vm, bool valid, string memory reason) = verifyGovernanceVM(encodedVM);
        require(valid, reason);

        setGovernanceActionConsumed(vm.hash);

        BridgeStructs.RecoverChainId memory rci = parseRecoverChainId(vm.payload);

        // Verify the VAA is for this chain
        require(rci.evmChainId == block.chainid, "invalid EVM Chain");

        // Update the chainIds
        setEvmChainId(rci.evmChainId);
        setChainId(rci.newChainId);
    }

    function verifyGovernanceVM(bytes memory encodedVM) internal view returns (IWormhole.VM memory parsedVM, bool isValid, string memory invalidReason){
        (IWormhole.VM memory vm, bool valid, string memory reason) = wormhole().parseAndVerifyVM(encodedVM);

        if (!valid) {
            return (vm, valid, reason);
        }

        if (vm.emitterChainId != governanceChainId()) {
            return (vm, false, "wrong governance chain");
        }
        if (vm.emitterAddress != governanceContract()) {
            return (vm, false, "wrong governance contract");
        }

        if (governanceActionIsConsumed(vm.hash)) {
            return (vm, false, "governance action already consumed");
        }

        return (vm, true, "");
    }

    event ContractUpgraded(address indexed oldContract, address indexed newContract);

    function upgradeImplementation(address newImplementation) internal {
        address currentImplementation = _getImplementation();

        _upgradeTo(newImplementation);

        // Call initialize function of the new implementation
        (bool success, bytes memory reason) = newImplementation.delegatecall(abi.encodeWithSignature("initialize()"));

        require(success, string(reason));

        emit ContractUpgraded(currentImplementation, newImplementation);
    }

    function parseRegisterChain(bytes memory encoded) public pure returns (BridgeStructs.RegisterChain memory chain) {
        uint index = 0;

        // governance header

        chain.module = encoded.toBytes32(index);
        index += 32;
        require(chain.module == module, "wrong module");

        chain.action = encoded.toUint8(index);
        index += 1;
        require(chain.action == 1, "wrong action");

        chain.chainId = encoded.toUint16(index);
        index += 2;

        // payload

        chain.emitterChainID = encoded.toUint16(index);
        index += 2;

        chain.emitterAddress = encoded.toBytes32(index);
        index += 32;

        require(encoded.length == index, "wrong length");
    }

    function parseUpgrade(bytes memory encoded) public pure returns (BridgeStructs.UpgradeContract memory chain) {
        uint index = 0;

        // governance header

        chain.module = encoded.toBytes32(index);
        index += 32;
        require(chain.module == module, "wrong module");

        chain.action = encoded.toUint8(index);
        index += 1;
        require(chain.action == 2, "wrong action");

        chain.chainId = encoded.toUint16(index);
        index += 2;

        // payload

        chain.newContract = encoded.toBytes32(index);
        index += 32;

        require(encoded.length == index, "wrong length");
    }

    /// @dev Parse a recoverChainId (action 3) with minimal validation
    function parseRecoverChainId(bytes memory encodedRecoverChainId) public pure returns (BridgeStructs.RecoverChainId memory rci) {
        uint index = 0;

        rci.module = encodedRecoverChainId.toBytes32(index);
        index += 32;
        require(rci.module == module, "wrong module");

        rci.action = encodedRecoverChainId.toUint8(index);
        index += 1;
        require(rci.action == 3, "wrong action");

        rci.evmChainId = encodedRecoverChainId.toUint256(index);
        index += 32;

        rci.newChainId = encodedRecoverChainId.toUint16(index);
        index += 2;

        require(encodedRecoverChainId.length == index, "wrong length");
    }
}

// File: contracts/bridge/Bridge.sol

// contracts/Bridge.sol

pragma solidity ^0.8.0;







contract Bridge is BridgeGovernance, ReentrancyGuard {
    using BytesLib for bytes;

    /*
     *  @dev Produce a AssetMeta message for a given token
     */
    function attestToken(address tokenAddress, uint32 nonce) public payable returns (uint64 sequence) {
        // decimals, symbol & token are not part of the core ERC20 token standard, so we need to support contracts that dont implement them
        (,bytes memory queriedDecimals) = tokenAddress.staticcall(abi.encodeWithSignature("decimals()"));
        (,bytes memory queriedSymbol) = tokenAddress.staticcall(abi.encodeWithSignature("symbol()"));
        (,bytes memory queriedName) = tokenAddress.staticcall(abi.encodeWithSignature("name()"));

        uint8 decimals = abi.decode(queriedDecimals, (uint8));

        string memory symbolString = abi.decode(queriedSymbol, (string));
        string memory nameString = abi.decode(queriedName, (string));

        bytes32 symbol;
        bytes32 name;
        assembly {
            // first 32 bytes hold string length
            symbol := mload(add(symbolString, 32))
            name := mload(add(nameString, 32))
        }

        BridgeStructs.AssetMeta memory meta = BridgeStructs.AssetMeta({
        payloadID : 2,
        tokenAddress : bytes32(uint256(uint160(tokenAddress))), // Address of the token. Left-zero-padded if shorter than 32 bytes
        tokenChain : chainId(), // Chain ID of the token
        decimals : decimals, // Number of decimals of the token (big-endian uint8)
        symbol : symbol, // Symbol of the token (UTF-8)
        name : name // Name of the token (UTF-8)
        });

        bytes memory encoded = encodeAssetMeta(meta);

        sequence = wormhole().publishMessage{
            value : msg.value
        }(nonce, encoded, finality());
    }

    /*
     *  @notice Send eth through portal by first wrapping it to WETH.
     */
    function wrapAndTransferETH(
        uint16 recipientChain,
        bytes32 recipient,
        uint256 arbiterFee,
        uint32 nonce
    ) public payable returns (uint64 sequence) {
        BridgeStructs.TransferResult
            memory transferResult = _wrapAndTransferETH(arbiterFee);
        sequence = logTransfer(
            transferResult.tokenChain,
            transferResult.tokenAddress,
            transferResult.normalizedAmount,
            recipientChain,
            recipient,
            transferResult.normalizedArbiterFee,
            transferResult.wormholeFee,
            nonce
        );
    }

    /*
     *  @notice Send eth through portal by first wrapping it.
     *
     *  @dev This type of transfer is called a "contract-controlled transfer".
     *  There are three differences from a regular token transfer:
     *  1) Additional arbitrary payload can be attached to the message
     *  2) Only the recipient (typically a contract) can redeem the transaction
     *  3) The sender's address (msg.sender) is also included in the transaction payload
     *
     *  With these three additional components, xDapps can implement cross-chain
     *  composable interactions.
     */
    function wrapAndTransferETHWithPayload(
        uint16 recipientChain,
        bytes32 recipient,
        uint32 nonce,
        bytes memory payload
    ) public payable returns (uint64 sequence) {
        BridgeStructs.TransferResult
            memory transferResult = _wrapAndTransferETH(0);
        sequence = logTransferWithPayload(
            transferResult.tokenChain,
            transferResult.tokenAddress,
            transferResult.normalizedAmount,
            recipientChain,
            recipient,
            transferResult.wormholeFee,
            nonce,
            payload
        );
    }

    function _wrapAndTransferETH(uint256 arbiterFee) internal returns (BridgeStructs.TransferResult memory transferResult) {
        uint wormholeFee = wormhole().messageFee();

        require(wormholeFee < msg.value, "value is smaller than wormhole fee");

        uint amount = msg.value - wormholeFee;

        require(arbiterFee <= amount, "fee is bigger than amount minus wormhole fee");

        uint normalizedAmount = normalizeAmount(amount, 18);
        uint normalizedArbiterFee = normalizeAmount(arbiterFee, 18);

        // refund dust
        uint dust = amount - deNormalizeAmount(normalizedAmount, 18);
        if (dust > 0) {
            payable(msg.sender).transfer(dust);
        }

        // deposit into WETH
        WETH().deposit{
            value : amount - dust
        }();

        // track and check outstanding token amounts
        bridgeOut(address(WETH()), normalizedAmount);

        transferResult = BridgeStructs.TransferResult({
            tokenChain : chainId(),
            tokenAddress : bytes32(uint256(uint160(address(WETH())))),
            normalizedAmount : normalizedAmount,
            normalizedArbiterFee : normalizedArbiterFee,
            wormholeFee : wormholeFee
        });
    }

    /*
     *  @notice Send ERC20 token through portal.
     */
    function transferTokens(
        address token,
        uint256 amount,
        uint16 recipientChain,
        bytes32 recipient,
        uint256 arbiterFee,
        uint32 nonce
    ) public payable nonReentrant returns (uint64 sequence) {
        BridgeStructs.TransferResult memory transferResult = _transferTokens(
            token,
            amount,
            arbiterFee
        );
        sequence = logTransfer(
            transferResult.tokenChain,
            transferResult.tokenAddress,
            transferResult.normalizedAmount,
            recipientChain,
            recipient,
            transferResult.normalizedArbiterFee,
            transferResult.wormholeFee,
            nonce
        );
    }

    /*
     *  @notice Send ERC20 token through portal.
     *
     *  @dev This type of transfer is called a "contract-controlled transfer".
     *  There are three differences from a regular token transfer:
     *  1) Additional arbitrary payload can be attached to the message
     *  2) Only the recipient (typically a contract) can redeem the transaction
     *  3) The sender's address (msg.sender) is also included in the transaction payload
     *
     *  With these three additional components, xDapps can implement cross-chain
     *  composable interactions.
     */
    function transferTokensWithPayload(
        address token,
        uint256 amount,
        uint16 recipientChain,
        bytes32 recipient,
        uint32 nonce,
        bytes memory payload
    ) public payable nonReentrant returns (uint64 sequence) {
        BridgeStructs.TransferResult memory transferResult = _transferTokens(
            token,
            amount,
            0
        );
        sequence = logTransferWithPayload(
            transferResult.tokenChain,
            transferResult.tokenAddress,
            transferResult.normalizedAmount,
            recipientChain,
            recipient,
            transferResult.wormholeFee,
            nonce,
            payload
        );
    }

    /*
     *  @notice Initiate a transfer
     */
    function _transferTokens(address token, uint256 amount, uint256 arbiterFee) internal returns (BridgeStructs.TransferResult memory transferResult) {
        // determine token parameters
        uint16 tokenChain;
        bytes32 tokenAddress;
        if (isWrappedAsset(token)) {
            tokenChain = TokenImplementation(token).chainId();
            tokenAddress = TokenImplementation(token).nativeContract();
        } else {
            tokenChain = chainId();
            tokenAddress = bytes32(uint256(uint160(token)));
        }

        // query tokens decimals
        (,bytes memory queriedDecimals) = token.staticcall(abi.encodeWithSignature("decimals()"));
        uint8 decimals = abi.decode(queriedDecimals, (uint8));

        // don't deposit dust that can not be bridged due to the decimal shift
        amount = deNormalizeAmount(normalizeAmount(amount, decimals), decimals);

        if (tokenChain == chainId()) {
            // query own token balance before transfer
            (,bytes memory queriedBalanceBefore) = token.staticcall(abi.encodeWithSelector(IERC20.balanceOf.selector, address(this)));
            uint256 balanceBefore = abi.decode(queriedBalanceBefore, (uint256));

            // transfer tokens
            SafeERC20.safeTransferFrom(IERC20(token), msg.sender, address(this), amount);

            // query own token balance after transfer
            (,bytes memory queriedBalanceAfter) = token.staticcall(abi.encodeWithSelector(IERC20.balanceOf.selector, address(this)));
            uint256 balanceAfter = abi.decode(queriedBalanceAfter, (uint256));

            // correct amount for potential transfer fees
            amount = balanceAfter - balanceBefore;
        } else {
            SafeERC20.safeTransferFrom(IERC20(token), msg.sender, address(this), amount);

            TokenImplementation(token).burn(address(this), amount);
        }

        // normalize amounts decimals
        uint256 normalizedAmount = normalizeAmount(amount, decimals);
        uint256 normalizedArbiterFee = normalizeAmount(arbiterFee, decimals);

        // track and check outstanding token amounts
        if (tokenChain == chainId()) {
            bridgeOut(token, normalizedAmount);
        }

        transferResult = BridgeStructs.TransferResult({
            tokenChain : tokenChain,
            tokenAddress : tokenAddress,
            normalizedAmount : normalizedAmount,
            normalizedArbiterFee : normalizedArbiterFee,
            wormholeFee : msg.value
        });
    }

    function normalizeAmount(uint256 amount, uint8 decimals) internal pure returns(uint256){
        if (decimals > 8) {
            amount /= 10 ** (decimals - 8);
        }
        return amount;
    }

    function deNormalizeAmount(uint256 amount, uint8 decimals) internal pure returns(uint256){
        if (decimals > 8) {
            amount *= 10 ** (decimals - 8);
        }
        return amount;
    }

    function logTransfer(
        uint16 tokenChain,
        bytes32 tokenAddress,
        uint256 amount,
        uint16 recipientChain,
        bytes32 recipient,
        uint256 fee,
        uint256 callValue,
        uint32 nonce
    ) internal returns (uint64 sequence) {
        require(fee <= amount, "fee exceeds amount");

        BridgeStructs.Transfer memory transfer = BridgeStructs.Transfer({
            payloadID: 1,
            amount: amount,
            tokenAddress: tokenAddress,
            tokenChain: tokenChain,
            to: recipient,
            toChain: recipientChain,
            fee: fee
        });

        sequence = wormhole().publishMessage{value: callValue}(
            nonce,
            encodeTransfer(transfer),
            finality()
        );
    }

    /*
     * @dev Publish a token transfer message with payload.
     *
     * @return The sequence number of the published message.
     */
    function logTransferWithPayload(
        uint16 tokenChain,
        bytes32 tokenAddress,
        uint256 amount,
        uint16 recipientChain,
        bytes32 recipient,
        uint256 callValue,
        uint32 nonce,
        bytes memory payload
    ) internal returns (uint64 sequence) {
        BridgeStructs.TransferWithPayload memory transfer = BridgeStructs
            .TransferWithPayload({
                payloadID: 3,
                amount: amount,
                tokenAddress: tokenAddress,
                tokenChain: tokenChain,
                to: recipient,
                toChain: recipientChain,
                fromAddress : bytes32(uint256(uint160(msg.sender))),
                payload: payload
            });

        sequence = wormhole().publishMessage{value: callValue}(
            nonce,
            encodeTransferWithPayload(transfer),
            finality()
        );
    }

    function updateWrapped(bytes memory encodedVm) external returns (address token) {
        (IWormhole.VM memory vm, bool valid, string memory reason) = wormhole().parseAndVerifyVM(encodedVm);

        require(valid, reason);
        require(verifyBridgeVM(vm), "invalid emitter");

        BridgeStructs.AssetMeta memory meta = parseAssetMeta(vm.payload);
        return _updateWrapped(meta, vm.sequence);
    }

    function _updateWrapped(BridgeStructs.AssetMeta memory meta, uint64 sequence) internal returns (address token) {
        address wrapped = wrappedAsset(meta.tokenChain, meta.tokenAddress);
        require(wrapped != address(0), "wrapped asset does not exists");

        // Update metadata
        TokenImplementation(wrapped).updateDetails(bytes32ToString(meta.name), bytes32ToString(meta.symbol), sequence);

        return wrapped;
    }

    function createWrapped(bytes memory encodedVm) external returns (address token) {
        (IWormhole.VM memory vm, bool valid, string memory reason) = wormhole().parseAndVerifyVM(encodedVm);

        require(valid, reason);
        require(verifyBridgeVM(vm), "invalid emitter");

        BridgeStructs.AssetMeta memory meta = parseAssetMeta(vm.payload);
        return _createWrapped(meta, vm.sequence);
    }

    // Creates a wrapped asset using AssetMeta
    function _createWrapped(BridgeStructs.AssetMeta memory meta, uint64 sequence) internal returns (address token) {
        require(meta.tokenChain != chainId(), "can only wrap tokens from foreign chains");
        require(wrappedAsset(meta.tokenChain, meta.tokenAddress) == address(0), "wrapped asset already exists");

        // initialize the TokenImplementation
        bytes memory initialisationArgs = abi.encodeWithSelector(
            TokenImplementation.initialize.selector,
            bytes32ToString(meta.name),
            bytes32ToString(meta.symbol),
            meta.decimals,
            sequence,

            address(this),

            meta.tokenChain,
            meta.tokenAddress
        );

        // initialize the BeaconProxy
        bytes memory constructorArgs = abi.encode(address(this), initialisationArgs);

        // deployment code
        bytes memory bytecode = abi.encodePacked(type(BridgeToken).creationCode, constructorArgs);

        bytes32 salt = keccak256(abi.encodePacked(meta.tokenChain, meta.tokenAddress));

        assembly {
            token := create2(0, add(bytecode, 0x20), mload(bytecode), salt)

            if iszero(extcodesize(token)) {
                revert(0, 0)
            }
        }

        setWrappedAsset(meta.tokenChain, meta.tokenAddress, token);
    }

    /*
     * @notice Complete a contract-controlled transfer of an ERC20 token.
     *
     * @dev The transaction can only be redeemed by the recipient, typically a
     * contract.
     *
     * @param encodedVm    A byte array containing a VAA signed by the guardians.
     *
     * @return The byte array representing a BridgeStructs.TransferWithPayload.
     */
    function completeTransferWithPayload(bytes memory encodedVm) public returns (bytes memory) {
        return _completeTransfer(encodedVm, false);
    }

    /*
     * @notice Complete a contract-controlled transfer of WETH, and unwrap to ETH.
     *
     * @dev The transaction can only be redeemed by the recipient, typically a
     * contract.
     *
     * @param encodedVm    A byte array containing a VAA signed by the guardians.
     *
     * @return The byte array representing a BridgeStructs.TransferWithPayload.
     */
    function completeTransferAndUnwrapETHWithPayload(bytes memory encodedVm) public returns (bytes memory) {
        return _completeTransfer(encodedVm, true);
    }

    /*
     * @notice Complete a transfer of an ERC20 token.
     *
     * @dev The msg.sender gets paid the associated fee.
     *
     * @param encodedVm A byte array containing a VAA signed by the guardians.
     */
    function completeTransfer(bytes memory encodedVm) public {
        _completeTransfer(encodedVm, false);
    }

    /*
     * @notice Complete a transfer of WETH and unwrap to eth.
     *
     * @dev The msg.sender gets paid the associated fee.
     *
     * @param encodedVm A byte array containing a VAA signed by the guardians.
     */
    function completeTransferAndUnwrapETH(bytes memory encodedVm) public {
        _completeTransfer(encodedVm, true);
    }

    /*
     * @dev Truncate a 32 byte array to a 20 byte address.
     *      Reverts if the array contains non-0 bytes in the first 12 bytes.
     *
     * @param bytes32 bytes The 32 byte array to be converted.
     */
    function _truncateAddress(bytes32 b) internal pure returns (address) {
        require(bytes12(b) == 0, "invalid EVM address");
        return address(uint160(uint256(b)));
    }

    // Execute a Transfer message
    function _completeTransfer(bytes memory encodedVm, bool unwrapWETH) internal returns (bytes memory) {
        (IWormhole.VM memory vm, bool valid, string memory reason) = wormhole().parseAndVerifyVM(encodedVm);

        require(valid, reason);
        require(verifyBridgeVM(vm), "invalid emitter");

        BridgeStructs.Transfer memory transfer = _parseTransferCommon(vm.payload);

        // payload 3 must be redeemed by the designated proxy contract
        address transferRecipient = _truncateAddress(transfer.to);
        if (transfer.payloadID == 3) {
            require(msg.sender == transferRecipient, "invalid sender");
        }

        require(!isTransferCompleted(vm.hash), "transfer already completed");
        setTransferCompleted(vm.hash);

        require(transfer.toChain == chainId(), "invalid target chain");

        IERC20 transferToken;
        if (transfer.tokenChain == chainId()) {
            transferToken = IERC20(_truncateAddress(transfer.tokenAddress));

            // track outstanding token amounts
            bridgedIn(address(transferToken), transfer.amount);
        } else {
            address wrapped = wrappedAsset(transfer.tokenChain, transfer.tokenAddress);
            require(wrapped != address(0), "no wrapper for this token created yet");

            transferToken = IERC20(wrapped);
        }

        require(unwrapWETH == false || address(transferToken) == address(WETH()), "invalid token, can only unwrap WETH");

        // query decimals
        (,bytes memory queriedDecimals) = address(transferToken).staticcall(abi.encodeWithSignature("decimals()"));
        uint8 decimals = abi.decode(queriedDecimals, (uint8));

        // adjust decimals
        uint256 nativeAmount = deNormalizeAmount(transfer.amount, decimals);
        uint256 nativeFee = deNormalizeAmount(transfer.fee, decimals);

        // transfer fee to arbiter
        if (nativeFee > 0 && transferRecipient != msg.sender) {
            require(nativeFee <= nativeAmount, "fee higher than transferred amount");

            if (unwrapWETH) {
                WETH().withdraw(nativeFee);

                payable(msg.sender).transfer(nativeFee);
            } else {
                if (transfer.tokenChain != chainId()) {
                    // mint wrapped asset
                    TokenImplementation(address(transferToken)).mint(msg.sender, nativeFee);
                } else {
                    SafeERC20.safeTransfer(transferToken, msg.sender, nativeFee);
                }
            }
        } else {
            // set fee to zero in case transferRecipient == feeRecipient
            nativeFee = 0;
        }

        // transfer bridged amount to recipient
        uint transferAmount = nativeAmount - nativeFee;

        if (unwrapWETH) {
            WETH().withdraw(transferAmount);

            payable(transferRecipient).transfer(transferAmount);
        } else {
            if (transfer.tokenChain != chainId()) {
                // mint wrapped asset
                TokenImplementation(address(transferToken)).mint(transferRecipient, transferAmount);
            } else {
                SafeERC20.safeTransfer(transferToken, transferRecipient, transferAmount);
            }
        }

        return vm.payload;
    }

    function bridgeOut(address token, uint normalizedAmount) internal {
        uint outstanding = outstandingBridged(token);
        require(outstanding + normalizedAmount <= type(uint64).max, "transfer exceeds max outstanding bridged token amount");
        setOutstandingBridged(token, outstanding + normalizedAmount);
    }

    function bridgedIn(address token, uint normalizedAmount) internal {
        setOutstandingBridged(token, outstandingBridged(token) - normalizedAmount);
    }

    function verifyBridgeVM(IWormhole.VM memory vm) internal view returns (bool){
        require(!isFork(), "invalid fork");
        return bridgeContracts(vm.emitterChainId) == vm.emitterAddress;
    }

    function encodeAssetMeta(BridgeStructs.AssetMeta memory meta) public pure returns (bytes memory encoded) {
        encoded = abi.encodePacked(
            meta.payloadID,
            meta.tokenAddress,
            meta.tokenChain,
            meta.decimals,
            meta.symbol,
            meta.name
        );
    }

    function encodeTransfer(BridgeStructs.Transfer memory transfer) public pure returns (bytes memory encoded) {
        encoded = abi.encodePacked(
            transfer.payloadID,
            transfer.amount,
            transfer.tokenAddress,
            transfer.tokenChain,
            transfer.to,
            transfer.toChain,
            transfer.fee
        );
    }

    function encodeTransferWithPayload(BridgeStructs.TransferWithPayload memory transfer) public pure returns (bytes memory encoded) {
        encoded = abi.encodePacked(
            transfer.payloadID,
            transfer.amount,
            transfer.tokenAddress,
            transfer.tokenChain,
            transfer.to,
            transfer.toChain,
            transfer.fromAddress,
            transfer.payload
        );
    }

    function parsePayloadID(bytes memory encoded) public pure returns (uint8 payloadID) {
        payloadID = encoded.toUint8(0);
    }

    /*
     * @dev Parse a token metadata attestation (payload id 2)
     */
    function parseAssetMeta(bytes memory encoded) public pure returns (BridgeStructs.AssetMeta memory meta) {
        uint index = 0;

        meta.payloadID = encoded.toUint8(index);
        index += 1;

        require(meta.payloadID == 2, "invalid AssetMeta");

        meta.tokenAddress = encoded.toBytes32(index);
        index += 32;

        meta.tokenChain = encoded.toUint16(index);
        index += 2;

        meta.decimals = encoded.toUint8(index);
        index += 1;

        meta.symbol = encoded.toBytes32(index);
        index += 32;

        meta.name = encoded.toBytes32(index);
        index += 32;

        require(encoded.length == index, "invalid AssetMeta");
    }

    /*
     * @dev Parse a token transfer (payload id 1).
     *
     * @params encoded The byte array corresponding to the token transfer (not
     *                 the whole VAA, only the payload)
     */
    function parseTransfer(bytes memory encoded) public pure returns (BridgeStructs.Transfer memory transfer) {
        uint index = 0;

        transfer.payloadID = encoded.toUint8(index);
        index += 1;

        require(transfer.payloadID == 1, "invalid Transfer");

        transfer.amount = encoded.toUint256(index);
        index += 32;

        transfer.tokenAddress = encoded.toBytes32(index);
        index += 32;

        transfer.tokenChain = encoded.toUint16(index);
        index += 2;

        transfer.to = encoded.toBytes32(index);
        index += 32;

        transfer.toChain = encoded.toUint16(index);
        index += 2;

        transfer.fee = encoded.toUint256(index);
        index += 32;

        require(encoded.length == index, "invalid Transfer");
    }

    /*
     * @dev Parse a token transfer with payload (payload id 3).
     *
     * @params encoded The byte array corresponding to the token transfer (not
     *                 the whole VAA, only the payload)
     */
    function parseTransferWithPayload(bytes memory encoded) public pure returns (BridgeStructs.TransferWithPayload memory transfer) {
        uint index = 0;

        transfer.payloadID = encoded.toUint8(index);
        index += 1;

        require(transfer.payloadID == 3, "invalid Transfer");

        transfer.amount = encoded.toUint256(index);
        index += 32;

        transfer.tokenAddress = encoded.toBytes32(index);
        index += 32;

        transfer.tokenChain = encoded.toUint16(index);
        index += 2;

        transfer.to = encoded.toBytes32(index);
        index += 32;

        transfer.toChain = encoded.toUint16(index);
        index += 2;

        transfer.fromAddress = encoded.toBytes32(index);
        index += 32;

        transfer.payload = encoded.slice(index, encoded.length - index);
    }

    /*
     * @dev Parses either a type 1 transfer or a type 3 transfer ("transfer with
     *      payload") as a Transfer struct. The fee is set to 0 for type 3
     *      transfers, since they have no fees associated with them.
     *
     *      The sole purpose of this function is to get around the local
     *      variable count limitation in _completeTransfer.
     */
    function _parseTransferCommon(bytes memory encoded) public pure returns (BridgeStructs.Transfer memory transfer) {
        uint8 payloadID = parsePayloadID(encoded);

        if (payloadID == 1) {
            transfer = parseTransfer(encoded);
        } else if (payloadID == 3) {
            BridgeStructs.TransferWithPayload memory t = parseTransferWithPayload(encoded);
            transfer.payloadID = 3;
            transfer.amount = t.amount;
            transfer.tokenAddress = t.tokenAddress;
            transfer.tokenChain = t.tokenChain;
            transfer.to = t.to;
            transfer.toChain = t.toChain;
            // Type 3 payloads don't have fees.
            transfer.fee = 0;
        } else {
            revert("Invalid payload id");
        }
    }

    function bytes32ToString(bytes32 input) internal pure returns (string memory) {
        uint256 i;
        while (i < 32 && input[i] != 0) {
            i++;
        }
        bytes memory array = new bytes(i);
        for (uint c = 0; c < i; c++) {
            array[c] = input[c];
        }
        return string(array);
    }

    // we need to accept ETH sends to unwrap WETH
    receive() external payable {}
}

// File: contracts/bridge/BridgeImplementation.sol

// contracts/Implementation.sol

pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;

contract BridgeImplementation is Bridge {
    // Beacon getter for the token contracts
    function implementation() public view returns (address) {
        return tokenImplementation();
    }

    function initialize() initializer public virtual {
        // this function needs to be exposed for an upgrade to pass
    }

    modifier initializer() {
        address impl = ERC1967Upgrade._getImplementation();

        require(
            !isInitialized(impl),
            "already initialized"
        );

        setInitialized(impl);

        _;
    }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldContract","type":"address"},{"indexed":true,"internalType":"address","name":"newContract","type":"address"}],"name":"ContractUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"encoded","type":"bytes"}],"name":"_parseTransferCommon","outputs":[{"components":[{"internalType":"uint8","name":"payloadID","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"tokenAddress","type":"bytes32"},{"internalType":"uint16","name":"tokenChain","type":"uint16"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint16","name":"toChain","type":"uint16"},{"internalType":"uint256","name":"fee","type":"uint256"}],"internalType":"struct BridgeStructs.Transfer","name":"transfer","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint32","name":"nonce","type":"uint32"}],"name":"attestToken","outputs":[{"internalType":"uint64","name":"sequence","type":"uint64"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"chainId_","type":"uint16"}],"name":"bridgeContracts","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chainId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"encodedVm","type":"bytes"}],"name":"completeTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"encodedVm","type":"bytes"}],"name":"completeTransferAndUnwrapETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"encodedVm","type":"bytes"}],"name":"completeTransferAndUnwrapETHWithPayload","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"encodedVm","type":"bytes"}],"name":"completeTransferWithPayload","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"encodedVm","type":"bytes"}],"name":"createWrapped","outputs":[{"internalType":"address","name":"token","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"payloadID","type":"uint8"},{"internalType":"bytes32","name":"tokenAddress","type":"bytes32"},{"internalType":"uint16","name":"tokenChain","type":"uint16"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"bytes32","name":"symbol","type":"bytes32"},{"internalType":"bytes32","name":"name","type":"bytes32"}],"internalType":"struct BridgeStructs.AssetMeta","name":"meta","type":"tuple"}],"name":"encodeAssetMeta","outputs":[{"internalType":"bytes","name":"encoded","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"payloadID","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"tokenAddress","type":"bytes32"},{"internalType":"uint16","name":"tokenChain","type":"uint16"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint16","name":"toChain","type":"uint16"},{"internalType":"uint256","name":"fee","type":"uint256"}],"internalType":"struct BridgeStructs.Transfer","name":"transfer","type":"tuple"}],"name":"encodeTransfer","outputs":[{"internalType":"bytes","name":"encoded","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"payloadID","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"tokenAddress","type":"bytes32"},{"internalType":"uint16","name":"tokenChain","type":"uint16"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint16","name":"toChain","type":"uint16"},{"internalType":"bytes32","name":"fromAddress","type":"bytes32"},{"internalType":"bytes","name":"payload","type":"bytes"}],"internalType":"struct BridgeStructs.TransferWithPayload","name":"transfer","type":"tuple"}],"name":"encodeTransferWithPayload","outputs":[{"internalType":"bytes","name":"encoded","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"evmChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finality","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"name":"governanceActionIsConsumed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governanceChainId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governanceContract","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isFork","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"impl","type":"address"}],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"name":"isTransferCompleted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"isWrappedAsset","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"outstandingBridged","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"encoded","type":"bytes"}],"name":"parseAssetMeta","outputs":[{"components":[{"internalType":"uint8","name":"payloadID","type":"uint8"},{"internalType":"bytes32","name":"tokenAddress","type":"bytes32"},{"internalType":"uint16","name":"tokenChain","type":"uint16"},{"internalType":"uint8","name":"decimals","type":"uint8"},{"internalType":"bytes32","name":"symbol","type":"bytes32"},{"internalType":"bytes32","name":"name","type":"bytes32"}],"internalType":"struct BridgeStructs.AssetMeta","name":"meta","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"encoded","type":"bytes"}],"name":"parsePayloadID","outputs":[{"internalType":"uint8","name":"payloadID","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"encodedRecoverChainId","type":"bytes"}],"name":"parseRecoverChainId","outputs":[{"components":[{"internalType":"bytes32","name":"module","type":"bytes32"},{"internalType":"uint8","name":"action","type":"uint8"},{"internalType":"uint256","name":"evmChainId","type":"uint256"},{"internalType":"uint16","name":"newChainId","type":"uint16"}],"internalType":"struct BridgeStructs.RecoverChainId","name":"rci","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"encoded","type":"bytes"}],"name":"parseRegisterChain","outputs":[{"components":[{"internalType":"bytes32","name":"module","type":"bytes32"},{"internalType":"uint8","name":"action","type":"uint8"},{"internalType":"uint16","name":"chainId","type":"uint16"},{"internalType":"uint16","name":"emitterChainID","type":"uint16"},{"internalType":"bytes32","name":"emitterAddress","type":"bytes32"}],"internalType":"struct BridgeStructs.RegisterChain","name":"chain","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"encoded","type":"bytes"}],"name":"parseTransfer","outputs":[{"components":[{"internalType":"uint8","name":"payloadID","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"tokenAddress","type":"bytes32"},{"internalType":"uint16","name":"tokenChain","type":"uint16"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint16","name":"toChain","type":"uint16"},{"internalType":"uint256","name":"fee","type":"uint256"}],"internalType":"struct BridgeStructs.Transfer","name":"transfer","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"encoded","type":"bytes"}],"name":"parseTransferWithPayload","outputs":[{"components":[{"internalType":"uint8","name":"payloadID","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"tokenAddress","type":"bytes32"},{"internalType":"uint16","name":"tokenChain","type":"uint16"},{"internalType":"bytes32","name":"to","type":"bytes32"},{"internalType":"uint16","name":"toChain","type":"uint16"},{"internalType":"bytes32","name":"fromAddress","type":"bytes32"},{"internalType":"bytes","name":"payload","type":"bytes"}],"internalType":"struct BridgeStructs.TransferWithPayload","name":"transfer","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"encoded","type":"bytes"}],"name":"parseUpgrade","outputs":[{"components":[{"internalType":"bytes32","name":"module","type":"bytes32"},{"internalType":"uint8","name":"action","type":"uint8"},{"internalType":"uint16","name":"chainId","type":"uint16"},{"internalType":"bytes32","name":"newContract","type":"bytes32"}],"internalType":"struct BridgeStructs.UpgradeContract","name":"chain","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"encodedVM","type":"bytes"}],"name":"registerChain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"encodedVM","type":"bytes"}],"name":"submitRecoverChainId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint16","name":"recipientChain","type":"uint16"},{"internalType":"bytes32","name":"recipient","type":"bytes32"},{"internalType":"uint256","name":"arbiterFee","type":"uint256"},{"internalType":"uint32","name":"nonce","type":"uint32"}],"name":"transferTokens","outputs":[{"internalType":"uint64","name":"sequence","type":"uint64"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint16","name":"recipientChain","type":"uint16"},{"internalType":"bytes32","name":"recipient","type":"bytes32"},{"internalType":"uint32","name":"nonce","type":"uint32"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"transferTokensWithPayload","outputs":[{"internalType":"uint64","name":"sequence","type":"uint64"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"encodedVm","type":"bytes"}],"name":"updateWrapped","outputs":[{"internalType":"address","name":"token","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"encodedVM","type":"bytes"}],"name":"upgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wormhole","outputs":[{"internalType":"contract IWormhole","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"recipientChain","type":"uint16"},{"internalType":"bytes32","name":"recipient","type":"bytes32"},{"internalType":"uint256","name":"arbiterFee","type":"uint256"},{"internalType":"uint32","name":"nonce","type":"uint32"}],"name":"wrapAndTransferETH","outputs":[{"internalType":"uint64","name":"sequence","type":"uint64"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"recipientChain","type":"uint16"},{"internalType":"bytes32","name":"recipient","type":"bytes32"},{"internalType":"uint32","name":"nonce","type":"uint32"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"wrapAndTransferETHWithPayload","outputs":[{"internalType":"uint64","name":"sequence","type":"uint64"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenChainId","type":"uint16"},{"internalType":"bytes32","name":"tokenAddress","type":"bytes32"}],"name":"wrappedAsset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x608060405260043610620002935760003560e01c8063aa4efa5b116200015f578063cb4cfea811620000c5578063e89bc4011162000084578063e89bc4011462000996578063ea63738d14620009bb578063f768441f14620009ef578063fbe3c2cd1462000a14578063fbeeacd91462000a35578063ff200cde1462000a9557600080fd5b8063cb4cfea81462000897578063d56e2e2414620008f7578063d60b347f146200091c578063e039f2241462000959578063e8059810146200097157600080fd5b8063b96c7e4d116200011e578063b96c7e4d14620007ce578063bee9cdfc1462000808578063c3f511c1146200081f578063c48fa1151462000844578063c5a5ebda146200085b578063c6878519146200087257600080fd5b8063aa4efa5b1462000709578063ad5c4648146200073d578063ad66a5f1146200075d578063b046223b1462000792578063b172b22214620007b757600080fd5b80632c3c02a41162000205578063739fc8d111620001c4578063739fc8d114620006495780638129fc1c146200066b57806384acd1bb14620006835780639981509f14620006a35780639a8a059214620006ba578063a5799f9314620006e457600080fd5b80632c3c02a414620005975780632f3a3d5d14620005cb5780635c60da1b14620005eb5780635f854266146200060357806364d42b17146200062857600080fd5b80631a2be4da11620002525780631a2be4da14620004295780631c8475e414620004775780631ff1e28614620004ab5780632539464514620004e95780632b511375146200050e57600080fd5b806301f5325514620002a057806307dfd8fb146200031e5780630f509008146200039a5780630f5287b014620003d2578063178149e7146200040257600080fd5b366200029b57005b600080fd5b348015620002ad57600080fd5b50620002c5620002bf366004620046d3565b62000aba565b604051620003159190600060a0820190508251825260ff6020840151166020830152604083015161ffff808216604085015280606086015116606085015250506080830151608083015292915050565b60405180910390f35b3480156200032b57600080fd5b50620003436200033d366004620046d3565b62000c36565b604051620003159190600060c08201905060ff83511682526020830151602083015261ffff604084015116604083015260ff60608401511660608301526080830151608083015260a083015160a083015292915050565b348015620003a757600080fd5b50620003bf620003b9366004620046d3565b62000dc5565b60405160ff909116815260200162000315565b620003e9620003e336600462004552565b62000dd9565b6040516001600160401b03909116815260200162000315565b3480156200040f57600080fd5b506200042762000421366004620046d3565b62000e7d565b005b3480156200043657600080fd5b50620004666200044836600462004535565b6001600160a01b031660009081526009602052604090205460ff1690565b604051901515815260200162000315565b3480156200048457600080fd5b506200049c62000496366004620046d3565b62000f99565b60405162000315919062004d37565b348015620004b857600080fd5b50620004d0620004ca36600462004afd565b62000fa8565b6040516001600160a01b03909116815260200162000315565b348015620004f657600080fd5b506200042762000508366004620046d3565b62000fd4565b3480156200051b57600080fd5b50620005336200052d366004620046d3565b620010e4565b604051620003159190600060e08201905060ff83511682526020830151602083015260408301516040830152606083015161ffff8082166060850152608085015160808501528060a08601511660a0850152505060c083015160c083015292915050565b348015620005a457600080fd5b5062000466620005b6366004620046a1565b60009081526005602052604090205460ff1690565b348015620005d857600080fd5b506001546001600160a01b0316620004d0565b348015620005f857600080fd5b50620004d062001255565b3480156200061057600080fd5b506200049c62000622366004620048ab565b6200126f565b3480156200063557600080fd5b50600c545b60405190815260200162000315565b3480156200065657600080fd5b50600254640100000000900460ff16620003bf565b3480156200067857600080fd5b506200042762001304565b3480156200069057600080fd5b506000546001600160a01b0316620004d0565b620003e9620006b436600462004b2b565b620013ce565b348015620006c757600080fd5b5060025461ffff165b60405161ffff909116815260200162000315565b348015620006f157600080fd5b506200042762000703366004620046d3565b6200140e565b3480156200071657600080fd5b506200046662000728366004620046a1565b60009081526006602052604090205460ff1690565b3480156200074a57600080fd5b506004546001600160a01b0316620004d0565b3480156200076a57600080fd5b506200063a6200077c36600462004abf565b61ffff166000908152600b602052604090205490565b3480156200079f57600080fd5b506200049c620007b13660046200473f565b6200157a565b348015620007c457600080fd5b506003546200063a565b348015620007db57600080fd5b506200063a620007ed36600462004535565b6001600160a01b03166000908152600a602052604090205490565b620003e96200081936600462004b79565b620015f3565b3480156200082c57600080fd5b506200049c6200083e366004620046d3565b62001626565b620003e96200085536600462004649565b62001635565b620003e96200086c366004620045bd565b6200195a565b3480156200087f57600080fd5b506200042762000891366004620046d3565b620019e9565b348015620008a457600080fd5b50620008bc620008b6366004620046d3565b620019fa565b6040516200031591908151815260208083015160ff16908201526040808301519082015260609182015161ffff169181019190915260800190565b3480156200090457600080fd5b506200049c62000916366004620047d9565b62001af9565b3480156200092957600080fd5b50620004666200093b36600462004535565b6001600160a01b031660009081526007602052604090205460ff1690565b3480156200096657600080fd5b506200046662001b3c565b3480156200097e57600080fd5b50620004d062000990366004620046d3565b62001b50565b348015620009a357600080fd5b5062000533620009b5366004620046d3565b62001c65565b348015620009c857600080fd5b50620009e0620009da366004620046d3565b62001d71565b60405162000315919062004e9b565b348015620009fc57600080fd5b50620004d062000a0e366004620046d3565b62001eee565b34801562000a2157600080fd5b5060025462010000900461ffff16620006d0565b34801562000a4257600080fd5b5062000a5a62000a54366004620046d3565b62002003565b6040516200031591908151815260208083015160ff169082015260408083015161ffff16908201526060918201519181019190915260800190565b34801562000aa257600080fd5b506200042762000ab4366004620046d3565b62002102565b6040805160a08101825260008082526020820181905291810182905260608101829052608081018290529062000af183826200210f565b825262000b006020826200501e565b82519091506a546f6b656e4272696467651462000b3a5760405162461bcd60e51b815260040162000b319062004e4f565b60405180910390fd5b62000b46838262002171565b60ff16602083015262000b5b6001826200501e565b9050816020015160ff1660011462000b875760405162461bcd60e51b815260040162000b319062004e75565b62000b938382620021d1565b61ffff16604083015262000ba96002826200501e565b905062000bb78382620021d1565b61ffff16606083015262000bcd6002826200501e565b905062000bdb83826200210f565b608083015262000bed6020826200501e565b90508083511462000c305760405162461bcd60e51b815260206004820152600c60248201526b0eee4dedcce40d8cadccee8d60a31b604482015260640162000b31565b50919050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081018290529062000c74838262002171565b60ff16825262000c866001826200501e565b9050816000015160ff1660021462000cd55760405162461bcd60e51b8152602060048201526011602482015270696e76616c69642041737365744d65746160781b604482015260640162000b31565b62000ce183826200210f565b60208084019190915262000cf690826200501e565b905062000d048382620021d1565b61ffff16604083015262000d1a6002826200501e565b905062000d28838262002171565b60ff16606083015262000d3d6001826200501e565b905062000d4b83826200210f565b608083015262000d5d6020826200501e565b905062000d6b83826200210f565b60a083015262000d7d6020826200501e565b90508083511462000c305760405162461bcd60e51b8152602060048201526011602482015270696e76616c69642041737365744d65746160781b604482015260640162000b31565b600062000dd3828262002171565b92915050565b60006002600d54141562000e305760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640162000b31565b6002600d55600062000e4488888662002232565b905062000e6c8160000151826020015183604001518989866060015187608001518a620026e2565b6001600d5598975050505050505050565b62000e8762001b3c565b62000ec25760405162461bcd60e51b815260206004820152600a6024820152696e6f74206120666f726b60b01b604482015260640162000b31565b600080600062000ed28462002816565b92509250925081819062000efb5760405162461bcd60e51b815260040162000b31919062004d37565b5062000f0c83610140015162002a45565b600062000f1d8460e00151620019fa565b90504681604001511462000f685760405162461bcd60e51b815260206004820152601160248201527034b73b30b634b21022ab269021b430b4b760791b604482015260640162000b31565b62000f77816040015162002a60565b60608101516002805461ffff191661ffff9092169190911790555b5050505050565b606062000dd382600162002aab565b61ffff91909116600090815260086020908152604080832093835292905220546001600160a01b031690565b62000fde62001b3c565b156200101c5760405162461bcd60e51b815260206004820152600c60248201526b696e76616c696420666f726b60a01b604482015260640162000b31565b60008060006200102c8462002816565b925092509250818190620010555760405162461bcd60e51b815260040162000b31919062004d37565b506200106683610140015162002a45565b6000620010778460e0015162002003565b90506200108760025461ffff1690565b61ffff16816040015161ffff1614620010d45760405162461bcd60e51b815260206004820152600e60248201526d1ddc9bdb99c818da185a5b881a5960921b604482015260640162000b31565b606081015162000f92906200321e565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081018290529062001129838262002171565b60ff1682526200113b6001826200501e565b9050816000015160ff16600114620011675760405162461bcd60e51b815260040162000b319062004e25565b62001173838262003355565b6020808401919091526200118890826200501e565b90506200119683826200210f565b6040830152620011a86020826200501e565b9050620011b68382620021d1565b61ffff166060830152620011cc6002826200501e565b9050620011da83826200210f565b6080830152620011ec6020826200501e565b9050620011fa8382620021d1565b61ffff1660a0830152620012106002826200501e565b90506200121e838262003355565b60c0830152620012306020826200501e565b90508083511462000c305760405162461bcd60e51b815260040162000b319062004e25565b60006200126a6001546001600160a01b031690565b905090565b8051602080830151604080850151606080870151608088015160a089015160c08a0151955160f89990991b6001600160f81b031916978901979097526021880195909552604187019290925260f091821b6001600160f01b03199081166061880152606387019490945293901b909116608384015260858301529060a5015b6040516020818303038152906040529050919050565b6000620013387f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b90506200135d816001600160a01b031660009081526007602052604090205460ff1690565b15620013a25760405162461bcd60e51b8152602060048201526013602482015272185b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015260640162000b31565b620013cb816001600160a01b03166000908152600760205260409020805460ff19166001179055565b50565b600080620013dc84620033ae565b9050620014048160000151826020015183604001518989866060015187608001518a620026e2565b9695505050505050565b60008060006200141e8462002816565b925092509250818190620014475760405162461bcd60e51b815260040162000b31919062004d37565b506200145883610140015162002a45565b6000620014698460e0015162000aba565b90506200147960025461ffff1690565b61ffff16816040015161ffff161480156200149b57506200149962001b3c565b155b80620014ad5750604081015161ffff16155b620014ee5760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a590818da185a5b881a5960821b604482015260640162000b31565b606081015161ffff166000908152600b602052604081205414620015555760405162461bcd60e51b815260206004820152601860248201527f636861696e20616c726561647920726567697374657265640000000000000000604482015260640162000b31565b62000f928160600151826080015161ffff9091166000908152600b6020526040902055565b8051602080830151604080850151606080870151608088015160a0890151945160f898891b6001600160f81b031990811698820198909852602181019690965260f09390931b6001600160f01b031916604186015290951b909316604383015260448201929092526064810191909152608401620012ee565b600080620016026000620033ae565b905062001404816000015182602001518360400151898986608001518a8a62003688565b606062000dd382600062002aab565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b179052905160009182916001600160a01b038616916200167a9162004c54565b600060405180830381855afa9150503d8060008114620016b7576040519150601f19603f3d011682016040523d82523d6000602084013e620016bc565b606091505b5060408051600481526024810182526020810180516001600160e01b03166395d89b4160e01b1790529051919350600092506001600160a01b0387169162001705919062004c54565b600060405180830381855afa9150503d806000811462001742576040519150601f19603f3d011682016040523d82523d6000602084013e62001747565b606091505b5060408051600481526024810182526020810180516001600160e01b03166306fdde0360e01b1790529051919350600092506001600160a01b0388169162001790919062004c54565b600060405180830381855afa9150503d8060008114620017cd576040519150601f19603f3d011682016040523d82523d6000602084013e620017d2565b606091505b50915050600083806020019051810190620017ee919062004c07565b905060008380602001905181019062001808919062004709565b905060008380602001905181019062001822919062004709565b9050600080602084015191506020830151905060006040518060c00160405280600260ff1681526020018d6001600160a01b031660001b81526020016200186c60025461ffff1690565b61ffff1681526020018760ff168152602001848152602001838152509050600062001897826200157a565b9050620018ac6000546001600160a01b031690565b6001600160a01b031663b19a437e348e84620018d360025460ff6401000000009091041690565b6040518563ffffffff1660e01b8152600401620018f39392919062004f16565b6020604051808303818588803b1580156200190d57600080fd5b505af115801562001922573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019062001949919062004bea565b9d9c50505050505050505050505050565b60006002600d541415620019b15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640162000b31565b6002600d556000620019c588888362002232565b905062000e6c816000015182602001518360400151898986608001518a8a62003688565b620019f681600062002aab565b5050565b60408051608081018252600080825260208201819052918101829052606081018290529062001a2a83826200210f565b825262001a396020826200501e565b82519091506a546f6b656e4272696467651462001a6a5760405162461bcd60e51b815260040162000b319062004e4f565b62001a76838262002171565b60ff16602083015262001a8b6001826200501e565b9050816020015160ff1660031462001ab75760405162461bcd60e51b815260040162000b319062004e75565b62001ac3838262003355565b604083015262001ad56020826200501e565b905062001ae38382620021d1565b61ffff16606083015262000bed6002826200501e565b6060816000015182602001518360400151846060015185608001518660a001518760c001518860e00151604051602001620012ee98979695949392919062004ca5565b60004662001b49600c5490565b1415905090565b60008060008062001b696000546001600160a01b031690565b6001600160a01b031663c0fd8bde866040518263ffffffff1660e01b815260040162001b96919062004d37565b60006040518083038186803b15801562001baf57600080fd5b505afa15801562001bc4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262001bee919081019062004950565b92509250925081819062001c175760405162461bcd60e51b815260040162000b31919062004d37565b5062001c2383620036fb565b62001c425760405162461bcd60e51b815260040162000b319062004dfc565b600062001c538460e0015162000c36565b905062001404818560a0015162003768565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081018290529062001ca98362000dc5565b90508060ff166001141562001ccb5762001cc383620010e4565b915062000c30565b8060ff166003141562001d3357600062001ce58462001d71565b60038452602080820151908501526040808201519085015260608082015161ffff908116918601919091526080808301519086015260a091820151169084015250600060c083015262000c30565b60405162461bcd60e51b8152602060048201526012602482015271125b9d985b1a59081c185e5b1bd859081a5960721b604482015260640162000b31565b604080516101008101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e08201529062001dbd838262002171565b60ff16825262001dcf6001826200501e565b9050816000015160ff1660031462001dfb5760405162461bcd60e51b815260040162000b319062004e25565b62001e07838262003355565b60208084019190915262001e1c90826200501e565b905062001e2a83826200210f565b604083015262001e3c6020826200501e565b905062001e4a8382620021d1565b61ffff16606083015262001e606002826200501e565b905062001e6e83826200210f565b608083015262001e806020826200501e565b905062001e8e8382620021d1565b61ffff1660a083015262001ea46002826200501e565b905062001eb283826200210f565b60c083015262001ec46020826200501e565b905062001ee38182855162001eda919062005184565b85919062003a19565b60e083015250919050565b60008060008062001f076000546001600160a01b031690565b6001600160a01b031663c0fd8bde866040518263ffffffff1660e01b815260040162001f34919062004d37565b60006040518083038186803b15801562001f4d57600080fd5b505afa15801562001f62573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262001f8c919081019062004950565b92509250925081819062001fb55760405162461bcd60e51b815260040162000b31919062004d37565b5062001fc183620036fb565b62001fe05760405162461bcd60e51b815260040162000b319062004dfc565b600062001ff18460e0015162000c36565b905062001404818560a0015162003b34565b6040805160808101825260008082526020820181905291810182905260608101829052906200203383826200210f565b8252620020426020826200501e565b82519091506a546f6b656e42726964676514620020735760405162461bcd60e51b815260040162000b319062004e4f565b6200207f838262002171565b60ff166020830152620020946001826200501e565b9050816020015160ff16600214620020c05760405162461bcd60e51b815260040162000b319062004e75565b620020cc8382620021d1565b61ffff166040830152620020e26002826200501e565b9050620020f083826200210f565b606083015262000bed6020826200501e565b620019f681600162002aab565b60006200211e8260206200501e565b83511015620021685760405162461bcd60e51b8152602060048201526015602482015274746f427974657333325f6f75744f66426f756e647360581b604482015260640162000b31565b50016020015190565b6000620021808260016200501e565b83511015620021c85760405162461bcd60e51b8152602060048201526013602482015272746f55696e74385f6f75744f66426f756e647360681b604482015260640162000b31565b50016001015190565b6000620021e08260026200501e565b83511015620022295760405162461bcd60e51b8152602060048201526014602482015273746f55696e7431365f6f75744f66426f756e647360601b604482015260640162000b31565b50016002015190565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526001600160a01b038416600090815260096020526040812054819060ff16156200237557856001600160a01b0316639a8a05926040518163ffffffff1660e01b815260040160206040518083038186803b158015620022bb57600080fd5b505afa158015620022d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620022f6919062004ade565b9150856001600160a01b0316633d6c043b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200233257600080fd5b505afa15801562002347573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200236d9190620046ba565b905062002389565b505060025461ffff166001600160a01b0385165b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290516000916001600160a01b03891691620023cd919062004c54565b600060405180830381855afa9150503d80600081146200240a576040519150601f19603f3d011682016040523d82523d6000602084013e6200240f565b606091505b509150506000818060200190518101906200242b919062004c07565b9050620024446200243d888362003c2f565b8262003c6e565b96506200245460025461ffff1690565b61ffff168461ffff161415620025f457604080513060248083019190915282518083039091018152604490910182526020810180516001600160e01b03166370a0823160e01b17905290516000916001600160a01b038b1691620024b9919062004c54565b600060405180830381855afa9150503d8060008114620024f6576040519150601f19603f3d011682016040523d82523d6000602084013e620024fb565b606091505b50915050600081806020019051810190620025179190620046ba565b9050620025278a33308c62003ca3565b604080513060248083019190915282518083039091018152604490910182526020810180516001600160e01b03166370a0823160e01b17905290516000916001600160a01b038d16916200257c919062004c54565b600060405180830381855afa9150503d8060008114620025b9576040519150601f19603f3d011682016040523d82523d6000602084013e620025be565b606091505b50915050600081806020019051810190620025da9190620046ba565b9050620025e8838262005184565b9a505050505062002665565b620026028833308a62003ca3565b604051632770a7eb60e21b8152306004820152602481018890526001600160a01b03891690639dc29fac90604401600060405180830381600087803b1580156200264b57600080fd5b505af115801562002660573d6000803e3d6000fd5b505050505b600062002673888362003c2f565b9050600062002683888462003c2f565b90506200269360025461ffff1690565b61ffff168661ffff161415620026af57620026af8a8362003d16565b6040805160a08101825261ffff909716875260208701959095529385015250506060820152346080820152949350505050565b6000868411156200272b5760405162461bcd60e51b815260206004820152601260248201527119995948195e18d959591cc8185b5bdd5b9d60721b604482015260640162000b31565b6040805160e081018252600181526020810189905290810189905261ffff8a8116606083015260808201879052871660a082015260c081018590526000546001600160a01b031663b19a437e858562002784856200126f565b600254640100000000900460ff166040518563ffffffff1660e01b8152600401620027b29392919062004f16565b6020604051808303818588803b158015620027cc57600080fd5b505af1158015620027e1573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019062002808919062004bea565b9a9950505050505050505050565b604080516101608101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820181905261010082018390526101208201526101408101919091526000606060008060006200288a6000546001600160a01b031690565b6001600160a01b031663c0fd8bde886040518263ffffffff1660e01b8152600401620028b7919062004d37565b60006040518083038186803b158015620028d057600080fd5b505afa158015620028e5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200290f919081019062004950565b9250925092508162002928579194509250905062002a3e565b60025462010000900461ffff1661ffff16836060015161ffff1614620029865750506040805180820190915260168152753bb937b7339033b7bb32b93730b731b29031b430b4b760511b602082015290935060009250905062002a3e565b600354836080015114620029d957505060408051808201909152601981527f77726f6e6720676f7665726e616e636520636f6e747261637400000000000000602082015290935060009250905062002a3e565b61014083015160009081526005602052604090205460ff161562002a235782600060405180606001604052806022815260200162005c056022913995509550955050505062002a3e565b50506040805160208101909152600081529093506001925090505b9193909250565b6000908152600560205260409020805460ff19166001179055565b46811462002aa65760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a5908195d9b50da185a5b925960721b604482015260640162000b31565b600c55565b6060600080600062002ac56000546001600160a01b031690565b6001600160a01b031663c0fd8bde876040518263ffffffff1660e01b815260040162002af2919062004d37565b60006040518083038186803b15801562002b0b57600080fd5b505afa15801562002b20573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262002b4a919081019062004950565b92509250925081819062002b735760405162461bcd60e51b815260040162000b31919062004d37565b5062002b7f83620036fb565b62002b9e5760405162461bcd60e51b815260040162000b319062004dfc565b600062002baf8460e0015162001c65565b9050600062002bc2826080015162003de3565b9050816000015160ff166003141562002c2057336001600160a01b0382161462002c205760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21039b2b73232b960911b604482015260640162000b31565b61014085015160009081526006602052604090205460ff161562002c875760405162461bcd60e51b815260206004820152601a60248201527f7472616e7366657220616c726561647920636f6d706c65746564000000000000604482015260640162000b31565b62002cac8561014001516000908152600660205260409020805460ff19166001179055565b60025461ffff1661ffff168260a0015161ffff161462002d065760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b2103a30b933b2ba1031b430b4b760611b604482015260640162000b31565b600062002d1660025461ffff1690565b61ffff16836060015161ffff16141562002d515762002d39836040015162003de3565b905062002d4b81846020015162003e39565b62002dd2565b600062002d678460600151856040015162000fa8565b90506001600160a01b03811662002dcf5760405162461bcd60e51b815260206004820152602560248201527f6e6f207772617070657220666f72207468697320746f6b656e2063726561746560448201526419081e595d60da1b606482015260840162000b31565b90505b87158062002ded57506004546001600160a01b038281169116145b62002e475760405162461bcd60e51b815260206004820152602360248201527f696e76616c696420746f6b656e2c2063616e206f6e6c7920756e77726170205760448201526208aa8960eb1b606482015260840162000b31565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290516000916001600160a01b0384169162002e8b919062004c54565b600060405180830381855afa9150503d806000811462002ec8576040519150601f19603f3d011682016040523d82523d6000602084013e62002ecd565b606091505b5091505060008180602001905181019062002ee9919062004c07565b9050600062002efd86602001518362003c6e565b9050600062002f118760c001518462003c6e565b905060008111801562002f2d57506001600160a01b0386163314155b15620030bf578181111562002f905760405162461bcd60e51b815260206004820152602260248201527f66656520686967686572207468616e207472616e7366657272656420616d6f756044820152611b9d60f21b606482015260840162000b31565b8b156200302a5760048054604051632e1a7d4d60e01b81529182018390526001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801562002fdc57600080fd5b505af115801562002ff1573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f1935050505015801562003023573d6000803e3d6000fd5b50620030c3565b60025461ffff1661ffff16876060015161ffff1614620030ac576040516340c10f1960e01b8152336004820152602481018290526001600160a01b038616906340c10f1990604401600060405180830381600087803b1580156200308d57600080fd5b505af1158015620030a2573d6000803e3d6000fd5b50505050620030c3565b620030b985338362003e6b565b620030c3565b5060005b6000620030d1828462005184565b90508c15620031765760048054604051632e1a7d4d60e01b81529182018390526001600160a01b031690632e1a7d4d90602401600060405180830381600087803b1580156200311f57600080fd5b505af115801562003134573d6000803e3d6000fd5b50506040516001600160a01b038a16925083156108fc02915083906000818181858888f193505050501580156200316f573d6000803e3d6000fd5b5062003207565b60025461ffff1661ffff16886060015161ffff1614620031fa576040516340c10f1960e01b81526001600160a01b038881166004830152602482018390528716906340c10f1990604401600060405180830381600087803b158015620031db57600080fd5b505af1158015620031f0573d6000803e3d6000fd5b5050505062003207565b6200320786888362003e6b565b50505060e0909701519a9950505050505050505050565b6000620032527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b90506200325f8262003e9d565b60408051600481526024810182526020810180516001600160e01b031663204a7f0760e21b179052905160009182916001600160a01b03861691620032a49162004c54565b600060405180830381855af49150503d8060008114620032e1576040519150601f19603f3d011682016040523d82523d6000602084013e620032e6565b606091505b50915091508181906200330e5760405162461bcd60e51b815260040162000b31919062004d37565b50836001600160a01b0316836001600160a01b03167f2e4cc16c100f0b55e2df82ab0b1a7e294aa9cbd01b48fbaf622683fbc0507a4960405160405180910390a350505050565b6000620033648260206200501e565b83511015620021685760405162461bcd60e51b8152602060048201526015602482015274746f55696e743235365f6f75744f66426f756e647360581b604482015260640162000b31565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080546001600160a01b03166001600160a01b0316631a90a2196040518163ffffffff1660e01b815260040160206040518083038186803b1580156200341f57600080fd5b505afa15801562003434573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200345a9190620046ba565b9050348110620034b85760405162461bcd60e51b815260206004820152602260248201527f76616c756520697320736d616c6c6572207468616e20776f726d686f6c652066604482015261656560f01b606482015260840162000b31565b6000620034c6823462005184565b9050808411156200352f5760405162461bcd60e51b815260206004820152602c60248201527f66656520697320626967676572207468616e20616d6f756e74206d696e75732060448201526b776f726d686f6c652066656560a01b606482015260840162000b31565b60006200353e82601262003c2f565b905060006200354f86601262003c2f565b905060006200356083601262003c6e565b6200356c908562005184565b90508015620035a557604051339082156108fc029083906000818181858888f19350505050158015620035a3573d6000803e3d6000fd5b505b6004546001600160a01b031663d0e30db0620035c2838762005184565b6040518263ffffffff1660e01b81526004016000604051808303818588803b158015620035ee57600080fd5b505af115801562003603573d6000803e3d6000fd5b5050505050620036266200361f6004546001600160a01b031690565b8462003d16565b6040518060a001604052806200363f60025461ffff1690565b61ffff1681526020016200365b6004546001600160a01b031690565b6001600160a01b031660001b81526020018481526020018381526020018681525095505050505050919050565b6040805161010081018252600381526020810188905290810188905261ffff808a16606083015260808201869052861660a08201523360c082015260e08101829052600090620036e06000546001600160a01b031690565b6001600160a01b031663b19a437e8686620027848562001af9565b60006200370762001b3c565b15620037455760405162461bcd60e51b815260206004820152600c60248201526b696e76616c696420666f726b60a01b604482015260640162000b31565b50608081015160609091015161ffff166000908152600b60205260409020541490565b60006200377860025461ffff1690565b61ffff16836040015161ffff161415620037e65760405162461bcd60e51b815260206004820152602860248201527f63616e206f6e6c79207772617020746f6b656e732066726f6d20666f726569676044820152676e20636861696e7360c01b606482015260840162000b31565b60006001600160a01b0316620038058460400151856020015162000fa8565b6001600160a01b0316146200385d5760405162461bcd60e51b815260206004820152601c60248201527f7772617070656420617373657420616c72656164792065786973747300000000604482015260640162000b31565b600063c71f461560e01b620038768560a0015162003edf565b62003885866080015162003edf565b8660600151863089604001518a60200151604051602401620038ae979695949392919062004d8f565b60408051601f19818403018152918152602080830180516001600160e01b03166001600160e01b03199095169490941790935251909250600091620038f891309185910162004d11565b60405160208183030381529060405290506000604051806020016200391d9062004323565b601f1982820381018352601f909101166040819052620039439190849060200162004c72565b60405160208183030381529060405290506000866040015187602001516040516020016200398a92919060f09290921b6001600160f01b0319168252600282015260220190565b604051602081830303815290604052805190602001209050808251602084016000f59450843b620039ba57600080fd5b6040808801516020808a015161ffff90921660009081526008825283812092815291815282822080546001600160a01b0319166001600160a01b038a1690811790915582526009905220805460ff191660011790555050505092915050565b60608162003a2981601f6200501e565b101562003a6a5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b604482015260640162000b31565b62003a7682846200501e565b8451101562003abc5760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b604482015260640162000b31565b60608215801562003add576040519150600082526020820160405262003b29565b6040519150601f8416801560200281840101858101878315602002848b0101015b8183101562003b1857805183526020928301920162003afe565b5050858452601f01601f1916604052505b5090505b9392505050565b60008062003b4b8460400151856020015162000fa8565b90506001600160a01b03811662003ba55760405162461bcd60e51b815260206004820152601d60248201527f7772617070656420617373657420646f6573206e6f7420657869737473000000604482015260640162000b31565b806001600160a01b031663a18cd7c662003bc38660a0015162003edf565b62003bd2876080015162003edf565b866040518463ffffffff1660e01b815260040162003bf39392919062004d4c565b600060405180830381600087803b15801562003c0e57600080fd5b505af115801562003c23573d6000803e3d6000fd5b50929695505050505050565b600060088260ff16111562003c675762003c4b6008836200519e565b62003c5890600a620050a3565b62003c64908462005039565b92505b5090919050565b600060088260ff16111562003c675762003c8a6008836200519e565b62003c9790600a620050a3565b62003c64908462005162565b6040516001600160a01b038085166024830152831660448201526064810182905262003d109085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526200401a565b50505050565b6001600160a01b0382166000908152600a60205260409020546001600160401b0362003d4383836200501e565b111562003db15760405162461bcd60e51b815260206004820152603560248201527f7472616e736665722065786365656473206d6178206f75747374616e64696e6760448201527408189c9a5919d959081d1bdad95b88185b5bdd5b9d605a1b606482015260840162000b31565b62003dde8362003dc284846200501e565b6001600160a01b039091166000908152600a6020526040902055565b505050565b60006001600160a01b031982161562003e355760405162461bcd60e51b8152602060048201526013602482015272696e76616c69642045564d206164647265737360681b604482015260640162000b31565b5090565b620019f6828262003e5f856001600160a01b03166000908152600a602052604090205490565b62003dc2919062005184565b6040516001600160a01b03831660248201526044810182905262003dde90849063a9059cbb60e01b9060640162003cd8565b62003ea881620040f3565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606060005b60208110801562003f22575082816020811062003f1157634e487b7160e01b600052603260045260246000fd5b1a60f81b6001600160f81b03191615155b1562003f3d578062003f3481620051f3565b91505062003ee4565b6000816001600160401b0381111562003f6657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801562003f91576020820181803683370190505b50905060005b82811015620040125784816020811062003fc157634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811062003fe657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350806200400981620051f3565b91505062003f97565b509392505050565b600062004071826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200419a9092919063ffffffff16565b80519091501562003dde578080602001905181019062004092919062004684565b62003dde5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840162000b31565b803b620041595760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840162000b31565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060620041ab8484600085620041b3565b949350505050565b606082471015620042165760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000b31565b843b620042665760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000b31565b600080866001600160a01b0316858760405162004284919062004c54565b60006040518083038185875af1925050503d8060008114620042c3576040519150601f19603f3d011682016040523d82523d6000602084013e620042c8565b606091505b5091509150620042da828286620042e5565b979650505050505050565b60608315620042f657508162003b2d565b825115620043075782518084602001fd5b8160405162461bcd60e51b815260040162000b31919062004d37565b610993806200527283390190565b80356001600160a01b03811681146200434957600080fd5b919050565b600082601f8301126200435f578081fd5b815160206001600160401b038211156200437d576200437d62005227565b6200438d818360051b0162004fc1565b80838252828201915082860187848660071b8901011115620043ad578586fd5b855b858110156200441d57608080838b031215620043c9578788fd5b620043d362004f4a565b835181528684015187820152604080850151620043f08162005261565b90820152606084810151620044058162005261565b908201528552938501939190910190600101620043af565b5090979650505050505050565b805180151581146200434957600080fd5b600082601f8301126200444c578081fd5b8135620044636200445d8262004ff4565b62004fc1565b81815284602083860101111562004478578283fd5b816020850160208301379081016020019190915292915050565b600082601f830112620044a3578081fd5b8151620044b46200445d8262004ff4565b818152846020838601011115620044c9578283fd5b620041ab826020830160208701620051c4565b803562004349816200523d565b805162004349816200523d565b805162004349816200524e565b80516001600160401b03811681146200434957600080fd5b8035620043498162005261565b8051620043498162005261565b60006020828403121562004547578081fd5b62003b2d8262004331565b60008060008060008060c087890312156200456b578182fd5b620045768762004331565b95506020870135945060408701356200458f816200523d565b9350606087013592506080870135915060a0870135620045af816200524e565b809150509295509295509295565b60008060008060008060c08789031215620045d6578384fd5b620045e18762004331565b9550602087013594506040870135620045fa816200523d565b935060608701359250608087013562004613816200524e565b915060a08701356001600160401b038111156200462e578182fd5b6200463c89828a016200443b565b9150509295509295509295565b600080604083850312156200465c578182fd5b620046678362004331565b9150602083013562004679816200524e565b809150509250929050565b60006020828403121562004696578081fd5b62003b2d826200442a565b600060208284031215620046b3578081fd5b5035919050565b600060208284031215620046cc578081fd5b5051919050565b600060208284031215620046e5578081fd5b81356001600160401b03811115620046fb578182fd5b620041ab848285016200443b565b6000602082840312156200471b578081fd5b81516001600160401b0381111562004731578182fd5b620041ab8482850162004492565b600060c0828403121562004751578081fd5b60405160c081018181106001600160401b038211171562004776576200477662005227565b6040528235620047868162005261565b8152602083810135908201526040830135620047a2816200523d565b60408201526060830135620047b78162005261565b60608201526080838101359082015260a0928301359281019290925250919050565b600060208284031215620047eb578081fd5b81356001600160401b038082111562004802578283fd5b90830190610100828603121562004817578283fd5b6200482162004f75565b6200482c836200451b565b815260208301356020820152604083013560408201526200485060608401620044dc565b6060820152608083013560808201526200486d60a08401620044dc565b60a082015260c083013560c082015260e0830135828111156200488e578485fd5b6200489c878286016200443b565b60e08301525095945050505050565b600060e08284031215620048bd578081fd5b60405160e081018181106001600160401b0382111715620048e257620048e262005227565b6040528235620048f28162005261565b80825250602083013560208201526040830135604082015260608301356200491a816200523d565b6060820152608083810135908201526200493760a08401620044dc565b60a082015260c083013560c08201528091505092915050565b60008060006060848603121562004965578081fd5b83516001600160401b03808211156200497c578283fd5b90850190610160828803121562004991578283fd5b6200499b62004f9b565b620049a68362004528565b8152620049b660208401620044f6565b6020820152620049c960408401620044f6565b6040820152620049dc60608401620044e9565b606082015260808301516080820152620049f960a0840162004503565b60a082015262004a0c60c0840162004528565b60c082015260e08301518281111562004a23578485fd5b62004a318982860162004492565b60e08301525061010062004a47818501620044f6565b90820152610120838101518381111562004a5f578586fd5b62004a6d8a8287016200434e565b91830191909152506101408381015190820152945062004a90602087016200442a565b9350604086015191508082111562004aa6578283fd5b5062004ab58682870162004492565b9150509250925092565b60006020828403121562004ad1578081fd5b813562003b2d816200523d565b60006020828403121562004af0578081fd5b815162003b2d816200523d565b6000806040838503121562004b10578182fd5b823562004b1d816200523d565b946020939093013593505050565b6000806000806080858703121562004b41578182fd5b843562004b4e816200523d565b93506020850135925060408501359150606085013562004b6e816200524e565b939692955090935050565b6000806000806080858703121562004b8f578182fd5b843562004b9c816200523d565b935060208501359250604085013562004bb5816200524e565b915060608501356001600160401b0381111562004bd0578182fd5b62004bde878288016200443b565b91505092959194509250565b60006020828403121562004bfc578081fd5b62003b2d8262004503565b60006020828403121562004c19578081fd5b815162003b2d8162005261565b6000815180845262004c40816020860160208601620051c4565b601f01601f19169290920160200192915050565b6000825162004c68818460208701620051c4565b9190910192915050565b6000835162004c86818460208801620051c4565b83519083019062004c9c818360208801620051c4565b01949350505050565b60ff60f81b8960f81b168152876001820152866021820152600061ffff60f01b808860f01b166041840152866043840152808660f01b16606384015250836065830152825162004cfd816085850160208701620051c4565b919091016085019998505050505050505050565b6001600160a01b0383168152604060208201819052600090620041ab9083018462004c26565b60208152600062003b2d602083018462004c26565b60608152600062004d61606083018662004c26565b828103602084015262004d75818662004c26565b9150506001600160401b0383166040830152949350505050565b60e08152600062004da460e083018a62004c26565b828103602084015262004db8818a62004c26565b60ff98909816604084015250506001600160401b039490941660608501526001600160a01b0392909216608084015261ffff1660a083015260c09091015292915050565b6020808252600f908201526e34b73b30b634b21032b6b4ba3a32b960891b604082015260600190565b60208082526010908201526f34b73b30b634b2102a3930b739b332b960811b604082015260600190565b6020808252600c908201526b77726f6e67206d6f64756c6560a01b604082015260600190565b6020808252600c908201526b3bb937b7339030b1ba34b7b760a11b604082015260600190565b6020815260ff8251166020820152602082015160408201526040820151606082015261ffff6060830151166080820152608082015160a0820152600060a083015162004eed60c084018261ffff169052565b5060c083015160e083015260e0830151610100808185015250620041ab61012084018262004c26565b63ffffffff8416815260606020820152600062004f37606083018562004c26565b905060ff83166040830152949350505050565b604051608081016001600160401b038111828210171562004f6f5762004f6f62005227565b60405290565b60405161010081016001600160401b038111828210171562004f6f5762004f6f62005227565b60405161016081016001600160401b038111828210171562004f6f5762004f6f62005227565b604051601f8201601f191681016001600160401b038111828210171562004fec5762004fec62005227565b604052919050565b60006001600160401b0382111562005010576200501062005227565b50601f01601f191660200190565b6000821982111562005034576200503462005211565b500190565b6000826200505557634e487b7160e01b81526012600452602481fd5b500490565b600181815b808511156200509b5781600019048211156200507f576200507f62005211565b808516156200508d57918102915b93841c93908002906200505f565b509250929050565b600062003b2d60ff841683600082620050bf5750600162000dd3565b81620050ce5750600062000dd3565b8160018114620050e75760028114620050f25762005112565b600191505062000dd3565b60ff84111562005106576200510662005211565b50506001821b62000dd3565b5060208310610133831016604e8410600b841016171562005137575081810a62000dd3565b6200514383836200505a565b80600019048211156200515a576200515a62005211565b029392505050565b60008160001904831182151516156200517f576200517f62005211565b500290565b60008282101562005199576200519962005211565b500390565b600060ff821660ff841680821015620051bb57620051bb62005211565b90039392505050565b60005b83811015620051e1578181015183820152602001620051c7565b8381111562003d105750506000910152565b60006000198214156200520a576200520a62005211565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61ffff81168114620013cb57600080fd5b63ffffffff81168114620013cb57600080fd5b60ff81168114620013cb57600080fdfe608060405234801561001057600080fd5b5060405161099338038061099383398101604081905261002f9161048e565b818161005c60017fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d51610599565b60008051602061094c8339815191521461008657634e487b7160e01b600052600160045260246000fd5b6100928282600061009b565b505050506105fe565b6100a483610175565b6040516001600160a01b038416907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e90600090a26000825111806100e55750805b156101705761016e836001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561012657600080fd5b505afa15801561013a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061015e9190610474565b8361031560201b6100291760201c565b505b505050565b6101888161034160201b6100551760201c565b6101e75760405162461bcd60e51b815260206004820152602560248201527f455243313936373a206e657720626561636f6e206973206e6f74206120636f6e6044820152641d1c9858dd60da1b60648201526084015b60405180910390fd5b61026a816001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561022357600080fd5b505afa158015610237573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025b9190610474565b61034160201b6100551760201c565b6102cf5760405162461bcd60e51b815260206004820152603060248201527f455243313936373a20626561636f6e20696d706c656d656e746174696f6e206960448201526f1cc81b9bdd08184818dbdb9d1c9858dd60821b60648201526084016101de565b806102f460008051602061094c83398151915260001b61034760201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b606061033a838360405180606001604052806027815260200161096c6027913961034a565b9392505050565b3b151590565b90565b6060833b6103a95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016101de565b600080856001600160a01b0316856040516103c4919061054a565b600060405180830381855af49150503d80600081146103ff576040519150601f19603f3d011682016040523d82523d6000602084013e610404565b606091505b50909250905061041582828661041f565b9695505050505050565b6060831561042e57508161033a565b82511561043e5782518084602001fd5b8160405162461bcd60e51b81526004016101de9190610566565b80516001600160a01b038116811461046f57600080fd5b919050565b600060208284031215610485578081fd5b61033a82610458565b600080604083850312156104a0578081fd5b6104a983610458565b60208401519092506001600160401b03808211156104c5578283fd5b818501915085601f8301126104d8578283fd5b8151818111156104ea576104ea6105e8565b604051601f8201601f19908116603f01168101908382118183101715610512576105126105e8565b8160405282815288602084870101111561052a578586fd5b61053b8360208301602088016105bc565b80955050505050509250929050565b6000825161055c8184602087016105bc565b9190910192915050565b60208152600082518060208401526105858160408501602087016105bc565b601f01601f19169190910160400192915050565b6000828210156105b757634e487b7160e01b81526011600452602481fd5b500390565b60005b838110156105d75781810151838201526020016105bf565b8381111561016e5750506000910152565b634e487b7160e01b600052604160045260246000fd5b61033f8061060d6000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610106565b565b606061004e83836040518060600160405280602781526020016102e36027913961012a565b9392505050565b3b151590565b90565b60006100917fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50546001600160a01b031690565b6001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156100c957600080fd5b505afa1580156100dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610101919061023c565b905090565b3660008037600080366000845af43d6000803e808015610125573d6000f35b3d6000fd5b6060833b61018e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b0316856040516101a99190610263565b600060405180830381855af49150503d80600081146101e4576040519150601f19603f3d011682016040523d82523d6000602084013e6101e9565b606091505b50915091506101f9828286610203565b9695505050505050565b6060831561021257508161004e565b8251156102225782518084602001fd5b8160405162461bcd60e51b8152600401610185919061027f565b60006020828403121561024d578081fd5b81516001600160a01b038116811461004e578182fd5b600082516102758184602087016102b2565b9190910192915050565b602081526000825180602084015261029e8160408501602087016102b2565b601f01601f19169190910160400192915050565b60005b838110156102cd5781810151838201526020016102b5565b838111156102dc576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212203e23ac4f79a95247999f8e0df94ea5bd5e38561ccfd051b0ea50ba9aea59b8f164736f6c63430008040033a3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564676f7665726e616e636520616374696f6e20616c726561647920636f6e73756d6564a26469706673582212208627b3787af0c787b8674c918b448bd1c36b4d58319bc081ca717a02912a081c64736f6c63430008040033

Deployed Bytecode Sourcemap

127014:582:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;97429:752;;;;;;;;;;-1:-1:-1;97429:752:0;;;;;:::i;:::-;;:::i;:::-;;;;;;37504:4:1;37546:3;37535:9;37531:19;37523:27;;37583:6;37577:13;37566:9;37559:32;37659:4;37651;37643:6;37639:17;37633:24;37629:35;37622:4;37611:9;37607:20;37600:65;37712:4;37704:6;37700:17;37694:24;37737:6;37799:2;37785:12;37781:21;37774:4;37763:9;37759:20;37752:51;37871:2;37863:4;37855:6;37851:17;37845:24;37841:33;37834:4;37823:9;37819:20;37812:63;;;37931:4;37923:6;37919:17;37913:24;37906:4;37895:9;37891:20;37884:54;37513:431;;;;;97429:752:0;;;;;;;;122411:708;;;;;;;;;;-1:-1:-1;122411:708:0;;;;;:::i;:::-;;:::i;:::-;;;;;;36435:4:1;36477:3;36466:9;36462:19;36454:27;;36527:4;36518:6;36512:13;36508:24;36497:9;36490:43;36589:4;36581:6;36577:17;36571:24;36564:4;36553:9;36549:20;36542:54;36664:6;36656:4;36648:6;36644:17;36638:24;36634:37;36627:4;36616:9;36612:20;36605:67;36740:4;36732;36724:6;36720:17;36714:24;36710:35;36703:4;36692:9;36688:20;36681:65;36802:4;36794:6;36790:17;36784:24;36777:4;36766:9;36762:20;36755:54;36865:4;36857:6;36853:17;36847:24;36840:4;36829:9;36825:20;36818:54;36444:434;;;;;122190:133:0;;;;;;;;;;-1:-1:-1;122190:133:0;;;;;:::i;:::-;;:::i;:::-;;;41163:4:1;41151:17;;;41133:36;;41121:2;41106:18;122190:133:0;41088:87:1;104898:746:0;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;40948:31:1;;;40930:50;;40918:2;40903:18;104898:746:0;40885:101:1;95446:612:0;;;;;;;;;;-1:-1:-1;95446:612:0;;;;;:::i;:::-;;:::i;:::-;;58706:119;;;;;;;;;;-1:-1:-1;58706:119:0;;;;;:::i;:::-;-1:-1:-1;;;;;58789:28:0;58766:4;58789:28;;;:21;:28;;;;;;;;;58706:119;;;;19373:14:1;;19366:22;19348:41;;19336:2;19321:18;58706:119:0;19303:92:1;115614:163:0;;;;;;;;;;-1:-1:-1;115614:163:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;58025:168::-;;;;;;;;;;-1:-1:-1;58025:168:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;18186:32:1;;;18168:51;;18156:2;18141:18;58025:168:0;18123:102:1;94789:541:0;;;;;;;;;;-1:-1:-1;94789:541:0;;;;;:::i;:::-;;:::i;123341:808::-;;;;;;;;;;-1:-1:-1;123341:808:0;;;;;:::i;:::-;;:::i;:::-;;;;;;38985:4:1;39027:3;39016:9;39012:19;39004:27;;39077:4;39068:6;39062:13;39058:24;39047:9;39040:43;39139:4;39131:6;39127:17;39121:24;39114:4;39103:9;39099:20;39092:54;39202:4;39194:6;39190:17;39184:24;39177:4;39166:9;39162:20;39155:54;39256:4;39248:6;39244:17;39238:24;39281:6;39343:2;39329:12;39325:21;39318:4;39307:9;39303:20;39296:51;39403:4;39395:6;39391:17;39385:24;39378:4;39367:9;39363:20;39356:54;39478:2;39470:4;39462:6;39458:17;39452:24;39448:33;39441:4;39430:9;39426:20;39419:63;;;39538:4;39530:6;39526:17;39520:24;39513:4;39502:9;39498:20;39491:54;38994:557;;;;;56926:141:0;;;;;;;;;;-1:-1:-1;56926:141:0;;;;;:::i;:::-;56997:4;57021:38;;;:32;:38;;;;;;;;;56926:141;58344:112;;;;;;;;;;-1:-1:-1;58422:26:0;;-1:-1:-1;;;;;58422:26:0;58344:112;;127107:103;;;;;;;;;;;;;:::i;121353:380::-;;;;;;;;;;-1:-1:-1;121353:380:0;;;;;:::i;:::-;;:::i;57563:95::-;;;;;;;;;;-1:-1:-1;57633:17:0;;57563:95;;;19546:25:1;;;19534:2;19519:18;57563:95:0;19501:76:1;58833:98:0;;;;;;;;;;-1:-1:-1;58899:15:0;:24;;;;;;58833:98;;127218:126;;;;;;;;;;;;;:::i;57347:104::-;;;;;;;;;;-1:-1:-1;57388:9:0;57427:15;-1:-1:-1;;;;;57427:15:0;57347:104;;101673:640;;;;;;:::i;:::-;;:::i;57459:96::-;;;;;;;;;;-1:-1:-1;57524:15:0;:23;;;57459:96;;;40199:6:1;40187:19;;;40169:38;;40157:2;40142:18;57459:96:0;40124:89:1;94113:615:0;;;;;;;;;;-1:-1:-1;94113:615:0;;;;;:::i;:::-;;:::i;57212:127::-;;;;;;;;;;-1:-1:-1;57212:127:0;;;;;:::i;:::-;57276:4;57300:31;;;:25;:31;;;;;;;;;57212:127;58464:96;;;;;;;;;;-1:-1:-1;58531:20:0;;-1:-1:-1;;;;;58531:20:0;58464:96;;58201:135;;;;;;;;;;-1:-1:-1;58201:135:0;;;;;:::i;:::-;58290:38;;58264:7;58290:38;;;:28;:38;;;;;;;58201:135;121015:330;;;;;;;;;;-1:-1:-1;121015:330:0;;;;;:::i;:::-;;:::i;57898:119::-;;;;;;;;;;-1:-1:-1;57975:34:0;;57898:119;;58568:130;;;;;;;;;;-1:-1:-1;58568:130:0;;;;;:::i;:::-;-1:-1:-1;;;;;58658:32:0;58632:7;58658:32;;;:25;:32;;;;;;;58568:130;102924:627;;;;;;:::i;:::-;;:::i;115067:152::-;;;;;;;;;;-1:-1:-1;115067:152:0;;;;;:::i;:::-;;:::i;99906:1671::-;;;;;;:::i;:::-;;:::i;106242:733::-;;;;;;:::i;:::-;;:::i;116011:111::-;;;;;;;;;;-1:-1:-1;116011:111:0;;;;;:::i;:::-;;:::i;98934:689::-;;;;;;;;;;-1:-1:-1;98934:689:0;;;;;:::i;:::-;;:::i;:::-;;;;;;37112:13:1;;37094:32;;37186:4;37174:17;;;37168:24;37194:4;37164:35;37142:20;;;37135:65;37256:4;37244:17;;;37238:24;37216:20;;;37209:54;37323:4;37311:17;;;37305:24;37331:6;37301:37;37279:20;;;37272:67;;;;37081:3;37066:19;;37048:297;121741:441:0;;;;;;;;;;-1:-1:-1;121741:441:0;;;;;:::i;:::-;;:::i;57075:129::-;;;;;;;;;;-1:-1:-1;57075:129:0;;;;;:::i;:::-;-1:-1:-1;;;;;57157:39:0;57133:4;57157:39;;;:33;:39;;;;;;;;;57075:129;57666:100;;;;;;;;;;;;;:::i;112850:418::-;;;;;;;;;;-1:-1:-1;112850:418:0;;;;;:::i;:::-;;:::i;125629:793::-;;;;;;;;;;-1:-1:-1;125629:793:0;;;;;:::i;:::-;;:::i;124384:849::-;;;;;;;;;;-1:-1:-1;124384:849:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;111968:418::-;;;;;;;;;;-1:-1:-1;111968:418:0;;;;;:::i;:::-;;:::i;57774:116::-;;;;;;;;;;-1:-1:-1;57849:15:0;:33;;;;;;57774:116;;98189:665;;;;;;;;;;-1:-1:-1;98189:665:0;;;;;:::i;:::-;;:::i;:::-;;;;;;39787:13:1;;39769:32;;39861:4;39849:17;;;39843:24;39869:4;39839:35;39817:20;;;39810:65;39935:4;39923:17;;;39917:24;39943:6;39913:37;39891:20;;;39884:67;40007:4;39995:17;;;39989:24;39967:20;;;39960:54;;;;39756:3;39741:19;;39723:297;116364:122:0;;;;;;;;;;-1:-1:-1;116364:122:0;;;;;:::i;:::-;;:::i;97429:752::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;97627:24:0;:7;-1:-1:-1;97627:17:0;:24::i;:::-;97612:39;;97662:11;97671:2;97662:11;;:::i;:::-;97692:12;;97662:11;;-1:-1:-1;93987:66:0;97692:22;97684:47;;;;-1:-1:-1;;;97684:47:0;;;;;;;:::i;:::-;;;;;;;;;97759:22;:7;97775:5;97759:15;:22::i;:::-;97744:37;;:12;;;:37;97792:10;97801:1;97792:10;;:::i;:::-;;;97821:5;:12;;;:17;;97837:1;97821:17;97813:42;;;;-1:-1:-1;;;97813:42:0;;;;;;;:::i;:::-;97884:23;:7;97901:5;97884:16;:23::i;:::-;97868:39;;:13;;;:39;97918:10;97927:1;97918:10;;:::i;:::-;;-1:-1:-1;97986:23:0;:7;97918:10;97986:16;:23::i;:::-;97963:46;;:20;;;:46;98020:10;98029:1;98020:10;;:::i;:::-;;-1:-1:-1;98066:24:0;:7;98020:10;98066:17;:24::i;:::-;98043:20;;;:47;98101:11;98110:2;98101:11;;:::i;:::-;;;98151:5;98133:7;:14;:23;98125:48;;;;-1:-1:-1;;;98125:48:0;;25635:2:1;98125:48:0;;;25617:21:1;25674:2;25654:18;;;25647:30;-1:-1:-1;;;25693:18:1;;;25686:42;25745:18;;98125:48:0;25607:162:1;98125:48:0;97429:752;;;;:::o;122411:708::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;122570:22:0;:7;-1:-1:-1;122570:15:0;:22::i;:::-;122553:39;;;;122603:10;122612:1;122603:10;;:::i;:::-;;;122634:4;:14;;;:19;;122652:1;122634:19;122626:49;;;;-1:-1:-1;;;122626:49:0;;24931:2:1;122626:49:0;;;24913:21:1;24970:2;24950:18;;;24943:30;-1:-1:-1;;;24989:18:1;;;24982:47;25046:18;;122626:49:0;24903:167:1;122626:49:0;122708:24;:7;122726:5;122708:17;:24::i;:::-;122688:17;;;;:44;;;;122743:11;;;;:::i;:::-;;-1:-1:-1;122785:23:0;:7;122743:11;122785:16;:23::i;:::-;122767:41;;:15;;;:41;122819:10;122828:1;122819:10;;:::i;:::-;;-1:-1:-1;122858:22:0;:7;122819:10;122858:15;:22::i;:::-;122842:38;;:13;;;:38;122891:10;122900:1;122891:10;;:::i;:::-;;-1:-1:-1;122928:24:0;:7;122891:10;122928:17;:24::i;:::-;122914:11;;;:38;122963:11;122972:2;122963:11;;:::i;:::-;;-1:-1:-1;122999:24:0;:7;122963:11;122999:17;:24::i;:::-;122987:9;;;:36;123034:11;123043:2;123034:11;;:::i;:::-;;;123084:5;123066:7;:14;:23;123058:53;;;;-1:-1:-1;;;123058:53:0;;24931:2:1;123058:53:0;;;24913:21:1;24970:2;24950:18;;;24943:30;-1:-1:-1;;;24989:18:1;;;24982:47;25046:18;;123058:53:0;24903:167:1;122190:133:0;122257:15;122297:18;:7;122257:15;122297;:18::i;:::-;122285:30;122190:133;-1:-1:-1;;122190:133:0:o;104898:746::-;105127:15;19641:1;20237:7;;:19;;20229:63;;;;-1:-1:-1;;;20229:63:0;;36131:2:1;20229:63:0;;;36113:21:1;36170:2;36150:18;;;36143:30;36209:33;36189:18;;;36182:61;36260:18;;20229:63:0;36103:181:1;20229:63:0;19641:1;20370:7;:18;105155:50:::1;105208:92;105238:5:::0;105258:6;105279:10;105208:15:::1;:92::i;:::-;105155:145;;105322:314;105348:14;:25;;;105388:14;:27;;;105430:14;:31;;;105476:14;105505:9;105529:14;:35;;;105579:14;:26;;;105620:5;105322:11;:314::i;:::-;19597:1:::0;20549:7;:22;105311:325;104898:746;-1:-1:-1;;;;;;;;104898:746:0:o;95446:612::-;95526:8;:6;:8::i;:::-;95518:31;;;;-1:-1:-1;;;95518:31:0;;30329:2:1;95518:31:0;;;30311:21:1;30368:2;30348:18;;;30341:30;-1:-1:-1;;;30387:18:1;;;30380:40;30437:18;;95518:31:0;30301:160:1;95518:31:0;95563:22;95587:10;95599:20;95623:29;95642:9;95623:18;:29::i;:::-;95562:90;;;;;;95671:5;95678:6;95663:22;;;;;-1:-1:-1;;;95663:22:0;;;;;;;;:::i;:::-;;95698:36;95726:2;:7;;;95698:27;:36::i;:::-;95747:39;95789:31;95809:2;:10;;;95789:19;:31::i;:::-;95747:73;;95904:13;95886:3;:14;;;:31;95878:61;;;;-1:-1:-1;;;95878:61:0;;32527:2:1;95878:61:0;;;32509:21:1;32566:2;32546:18;;;32539:30;-1:-1:-1;;;32585:18:1;;;32578:47;32642:18;;95878:61:0;32499:167:1;95878:61:0;95984:29;95998:3;:14;;;95984:13;:29::i;:::-;96035:14;;;;59531:15;:33;;-1:-1:-1;;59531:33:0;;;;;;;;;;;96024:26;95446:612;;;;;:::o;115614:163::-;115703:12;115735:34;115753:9;115764:4;115735:17;:34::i;58025:168::-;58137:34;;;;;58111:7;58137:34;;;:20;:34;;;;;;;;:48;;;;;;;;-1:-1:-1;;;;;58137:48:0;;58025:168::o;94789:541::-;94857:8;:6;:8::i;:::-;94856:9;94848:34;;;;-1:-1:-1;;;94848:34:0;;32186:2:1;94848:34:0;;;32168:21:1;32225:2;32205:18;;;32198:30;-1:-1:-1;;;32244:18:1;;;32237:42;32296:18;;94848:34:0;32158:162:1;94848:34:0;94896:22;94920:10;94932:20;94956:29;94975:9;94956:18;:29::i;:::-;94895:90;;;;;;95004:5;95011:6;94996:22;;;;;-1:-1:-1;;;94996:22:0;;;;;;;;:::i;:::-;;95031:36;95059:2;:7;;;95031:27;:36::i;:::-;95080:51;95134:24;95147:2;:10;;;95134:12;:24::i;:::-;95080:78;;95205:9;57524:15;:23;;;;57459:96;95205:9;95179:35;;:14;:22;;;:35;;;95171:62;;;;-1:-1:-1;;;95171:62:0;;21971:2:1;95171:62:0;;;21953:21:1;22010:2;21990:18;;;21983:30;-1:-1:-1;;;22029:18:1;;;22022:44;22083:18;;95171:62:0;21943:164:1;95171:62:0;95292:26;;;;95246:76;;:21;:76::i;123341:808::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;123506:22:0;:7;-1:-1:-1;123506:15:0;:22::i;:::-;123485:43;;;;123539:10;123548:1;123539:10;;:::i;:::-;;;123570:8;:18;;;:23;;123592:1;123570:23;123562:52;;;;-1:-1:-1;;;123562:52:0;;;;;;;:::i;:::-;123645:24;:7;123663:5;123645:17;:24::i;:::-;123627:15;;;;:42;;;;123680:11;;;;:::i;:::-;;-1:-1:-1;123728:24:0;:7;123680:11;123728:17;:24::i;:::-;123704:21;;;:48;123763:11;123772:2;123763:11;;:::i;:::-;;-1:-1:-1;123809:23:0;:7;123763:11;123809:16;:23::i;:::-;123787:45;;:19;;;:45;123843:10;123852:1;123843:10;;:::i;:::-;;-1:-1:-1;123880:24:0;:7;123843:10;123880:17;:24::i;:::-;123866:11;;;:38;123915:11;123924:2;123915:11;;:::i;:::-;;-1:-1:-1;123958:23:0;:7;123915:11;123958:16;:23::i;:::-;123939:42;;:16;;;:42;123992:10;124001:1;123992:10;;:::i;:::-;;-1:-1:-1;124030:24:0;:7;123992:10;124030:17;:24::i;:::-;124015:12;;;:39;124065:11;124074:2;124065:11;;:::i;:::-;;;124115:5;124097:7;:14;:23;124089:52;;;;-1:-1:-1;;;124089:52:0;;;;;;;:::i;127107:103::-;127154:7;127181:21;58422:26;;-1:-1:-1;;;;;58422:26:0;;58344:112;127181:21;127174:28;;127107:103;:::o;121353:380::-;121512:18;;121545:15;;;;;121575:21;;;;;121438:20;121611:19;;;;121645:11;;;;121671:16;;;;121702:12;;;;121481:244;;17677:3:1;17655:16;;;;-1:-1:-1;;;;;;17651:36:1;121481:244:0;;;17639:49:1;;;;17704:11;;;17697:27;;;;17740:12;;;17733:28;;;;17784:3;17829:16;;;-1:-1:-1;;;;;;17825:25:1;;;17811:12;;;17804:47;17867:12;;;17860:28;;;;17922:16;;;17918:25;;;17904:12;;;17897:47;17960:13;;;17953:29;121438:20:0;17998:13:1;;121481:244:0;;;;;;;;;;;;;121471:254;;121353:380;;;:::o;127218:126::-;127386:12;127401:35;11962:66;12323:54;-1:-1:-1;;;;;12323:54:0;;12243:142;127401:35;127386:50;;127472:19;127486:4;-1:-1:-1;;;;;57157:39:0;57133:4;57157:39;;;:33;:39;;;;;;;;;57075:129;127472:19;127471:20;127449:89;;;;-1:-1:-1;;;127449:89:0;;26664:2:1;127449:89:0;;;26646:21:1;26703:2;26683:18;;;26676:30;-1:-1:-1;;;26722:18:1;;;26715:49;26781:18;;127449:89:0;26636:169:1;127449:89:0;127551:20;127566:4;-1:-1:-1;;;;;59153:49:0;:6;:49;;;:33;:49;;;;;:56;;-1:-1:-1;;59153:56:0;59205:4;59153:56;;;59085:132;127551:20;127218:126;:::o;101673:640::-;101844:15;101872:63;101938:31;101958:10;101938:19;:31::i;:::-;101872:97;;101991:314;102017:14;:25;;;102057:14;:27;;;102099:14;:31;;;102145:14;102174:9;102198:14;:35;;;102248:14;:26;;;102289:5;101991:11;:314::i;:::-;101980:325;101673:640;-1:-1:-1;;;;;;101673:640:0:o;94113:615::-;94179:22;94203:10;94215:20;94239:29;94258:9;94239:18;:29::i;:::-;94178:90;;;;;;94287:5;94294:6;94279:22;;;;;-1:-1:-1;;;94279:22:0;;;;;;;;:::i;:::-;;94314:36;94342:2;:7;;;94314:27;:36::i;:::-;94363:40;94406:30;94425:2;:10;;;94406:18;:30::i;:::-;94363:73;;94475:9;57524:15;:23;;;;57459:96;94475:9;94458:26;;:5;:13;;;:26;;;:39;;;;;94489:8;:6;:8::i;:::-;94488:9;94458:39;94457:63;;;-1:-1:-1;94502:13:0;;;;:18;;;94457:63;94449:92;;;;-1:-1:-1;;;94449:92:0;;27012:2:1;94449:92:0;;;26994:21:1;27051:2;27031:18;;;27024:30;-1:-1:-1;;;27070:18:1;;;27063:46;27126:18;;94449:92:0;26984:166:1;94449:92:0;94576:20;;;;58290:38;;94609:1;58290:38;;;:28;:38;;;;;;94560:51;94552:88;;;;-1:-1:-1;;;94552:88:0;;35778:2:1;94552:88:0;;;35760:21:1;35817:2;35797:18;;;35790:30;35856:26;35836:18;;;35829:54;35900:18;;94552:88:0;35750:174:1;94552:88:0;94653:67;94677:5;:20;;;94699:5;:20;;;59948:37;;;;:6;:37;;;:28;:37;;;;;:54;59855:155;121015:330;121172:14;;121201:17;;;;;121233:15;;;;;121098:20;121263:13;;;;121291:11;;;;121317:9;;;;121141:196;;16180:3:1;16214:16;;;-1:-1:-1;;;;;;16210:25:1;;;121141:196:0;;;16198:38:1;;;;16252:11;;;16245:27;;;;16328:3;16306:16;;;;-1:-1:-1;;;;;;16302:38:1;16288:12;;;16281:60;16375:16;;;16371:25;;;16357:12;;;16350:47;16413:12;;;16406:28;;;;16450:12;;;16443:28;;;;16487:13;;121141:196:0;16156:350:1;102924:627:0;103108:15;103136:63;103202:22;103222:1;103202:19;:22::i;:::-;103136:88;;103246:297;103283:14;:25;;;103323:14;:27;;;103365:14;:31;;;103411:14;103440:9;103464:14;:26;;;103505:5;103525:7;103246:22;:297::i;115067:152::-;115144:12;115176:35;115194:9;115205:5;115176:17;:35::i;99906:1671::-;100214:37;;;;;;;;;;;;;;;;-1:-1:-1;;;;;100214:37:0;-1:-1:-1;;;100214:37:0;;;100190:62;;99987:15;;;;-1:-1:-1;;;;;100190:23:0;;;:62;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;100319:35:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;100319:35:0;-1:-1:-1;;;100319:35:0;;;100295:60;;100156:96;;-1:-1:-1;100265:26:0;;-1:-1:-1;;;;;;100295:23:0;;;:60;;100319:35;100295:60;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;100420:33:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;100420:33:0;-1:-1:-1;;;100420:33:0;;;100396:58;;100263:92;;-1:-1:-1;100368:24:0;;-1:-1:-1;;;;;;100396:23:0;;;:58;;100420:33;100396:58;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100366:88;;;100467:14;100495:15;100484:36;;;;;;;;;;;;:::i;:::-;100467:53;;100533:26;100573:13;100562:35;;;;;;;;;;;;:::i;:::-;100533:64;;100608:24;100646:11;100635:33;;;;;;;;;;;;:::i;:::-;100608:60;;100681:14;100706:12;100837:2;100823:12;100819:21;100813:28;100803:38;;100885:2;100873:10;100869:19;100863:26;100855:34;;100912:35;100950:442;;;;;;;;100997:1;100950:442;;;;;;101048:12;-1:-1:-1;;;;;101032:30:0;101024:39;;100950:442;;;;101154:9;57524:15;:23;;;;57459:96;101154:9;100950:442;;;;;;101210:8;100950:442;;;;;;101292:6;100950:442;;;;101347:4;100950:442;;;100912:480;;101405:20;101428:21;101444:4;101428:15;:21::i;:::-;101405:44;;101473:10;57388:9;57427:15;-1:-1:-1;;;;;57427:15:0;;57347:104;101473:10;-1:-1:-1;;;;;101473:25:0;;101521:9;101542:5;101549:7;101558:10;58899:15;:24;;;;;;;;58833:98;101558:10;101473:96;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;101462:107;99906:1671;-1:-1:-1;;;;;;;;;;;;;99906:1671:0:o;106242:733::-;106484:15;19641:1;20237:7;;:19;;20229:63;;;;-1:-1:-1;;;20229:63:0;;36131:2:1;20229:63:0;;;36113:21:1;36170:2;36150:18;;;36143:30;36209:33;36189:18;;;36182:61;36260:18;;20229:63:0;36103:181:1;20229:63:0;19641:1;20370:7;:18;106512:50:::1;106565:83;106595:5:::0;106615:6;106512:50;106565:15:::1;:83::i;:::-;106512:136;;106670:297;106707:14;:25;;;106747:14;:27;;;106789:14;:31;;;106835:14;106864:9;106888:14;:26;;;106929:5;106949:7;106670:22;:297::i;116011:111::-:0;116079:35;116097:9;116108:5;116079:17;:35::i;:::-;;116011:111;:::o;98934:689::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99112:38:0;:21;-1:-1:-1;99112:31:0;:38::i;:::-;99099:51;;99161:11;99170:2;99161:11;;:::i;:::-;99191:10;;99161:11;;-1:-1:-1;93987:66:0;99191:20;99183:45;;;;-1:-1:-1;;;99183:45:0;;;;;;;:::i;:::-;99254:36;:21;99284:5;99254:29;:36::i;:::-;99241:49;;:10;;;:49;99301:10;99310:1;99301:10;;:::i;:::-;;;99330:3;:10;;;:15;;99344:1;99330:15;99322:40;;;;-1:-1:-1;;;99322:40:0;;;;;;;:::i;:::-;99392:38;:21;99424:5;99392:31;:38::i;:::-;99375:14;;;:55;99441:11;99450:2;99441:11;;:::i;:::-;;-1:-1:-1;99482:37:0;:21;99441:11;99482:30;:37::i;:::-;99465:54;;:14;;;:54;99530:10;99539:1;99530:10;;:::i;121741:441::-;121848:20;121922:8;:18;;;121955:8;:15;;;121985:8;:21;;;122021:8;:19;;;122055:8;:11;;;122081:8;:16;;;122112:8;:20;;;122147:8;:16;;;121891:283;;;;;;;;;;;;;;;:::i;57666:100::-;57705:4;57745:13;57729:12;57633:17;;;57563:95;57729:12;:29;;57722:36;;57666:100;:::o;112850:418::-;112915:13;112942:22;112966:10;112978:20;113002:10;57388:9;57427:15;-1:-1:-1;;;;;57427:15:0;;57347:104;113002:10;-1:-1:-1;;;;;113002:27:0;;113030:9;113002:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;113002:38:0;;;;;;;;;;;;:::i;:::-;112941:99;;;;;;113061:5;113068:6;113053:22;;;;;-1:-1:-1;;;113053:22:0;;;;;;;;:::i;:::-;;113094:18;113109:2;113094:14;:18::i;:::-;113086:46;;;;-1:-1:-1;;;113086:46:0;;;;;;;:::i;:::-;113145:35;113183:26;113198:2;:10;;;113183:14;:26::i;:::-;113145:64;;113227:33;113242:4;113248:2;:11;;;113227:14;:33::i;125629:793::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125771:23:0;125786:7;125771:14;:23::i;:::-;125753:41;;125811:9;:14;;125824:1;125811:14;125807:608;;;125853:22;125867:7;125853:13;:22::i;:::-;125842:33;;125807:608;;;125897:9;:14;;125910:1;125897:14;125893:522;;;125928:42;125973:33;125998:7;125973:24;:33::i;:::-;126042:1;126021:22;;126076:8;;;;;126058:15;;;:26;126123:14;;;;;126099:21;;;:38;126174:12;;;;;126152:34;;;;:19;;;:34;;;;126215:4;;;;;126201:11;;;:18;126253:9;;;;;126234:28;:16;;;:28;-1:-1:-1;126021:18:0;126326:12;;;:16;125893:522;;;126375:28;;-1:-1:-1;;;126375:28:0;;31023:2:1;126375:28:0;;;31005:21:1;31062:2;31042:18;;;31035:30;-1:-1:-1;;;31081:18:1;;;31074:48;31139:18;;126375:28:0;30995:168:1;124384:849:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;124571:22:0;:7;-1:-1:-1;124571:15:0;:22::i;:::-;124550:43;;;;124604:10;124613:1;124604:10;;:::i;:::-;;;124635:8;:18;;;:23;;124657:1;124635:23;124627:52;;;;-1:-1:-1;;;124627:52:0;;;;;;;:::i;:::-;124710:24;:7;124728:5;124710:17;:24::i;:::-;124692:15;;;;:42;;;;124745:11;;;;:::i;:::-;;-1:-1:-1;124793:24:0;:7;124745:11;124793:17;:24::i;:::-;124769:21;;;:48;124828:11;124837:2;124828:11;;:::i;:::-;;-1:-1:-1;124874:23:0;:7;124828:11;124874:16;:23::i;:::-;124852:45;;:19;;;:45;124908:10;124917:1;124908:10;;:::i;:::-;;-1:-1:-1;124945:24:0;:7;124908:10;124945:17;:24::i;:::-;124931:11;;;:38;124980:11;124989:2;124980:11;;:::i;:::-;;-1:-1:-1;125023:23:0;:7;124980:11;125023:16;:23::i;:::-;125004:42;;:16;;;:42;125057:10;125066:1;125057:10;;:::i;:::-;;-1:-1:-1;125103:24:0;:7;125057:10;125103:17;:24::i;:::-;125080:20;;;:47;125138:11;125147:2;125138:11;;:::i;:::-;;;125181:44;125195:5;125219;125202:7;:14;:22;;;;:::i;:::-;125181:7;;:44;:13;:44::i;:::-;125162:16;;;:63;-1:-1:-1;125162:8:0;124384:849;-1:-1:-1;124384:849:0:o;111968:418::-;112033:13;112060:22;112084:10;112096:20;112120:10;57388:9;57427:15;-1:-1:-1;;;;;57427:15:0;;57347:104;112120:10;-1:-1:-1;;;;;112120:27:0;;112148:9;112120:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;112120:38:0;;;;;;;;;;;;:::i;:::-;112059:99;;;;;;112179:5;112186:6;112171:22;;;;;-1:-1:-1;;;112171:22:0;;;;;;;;:::i;:::-;;112212:18;112227:2;112212:14;:18::i;:::-;112204:46;;;;-1:-1:-1;;;112204:46:0;;;;;;;:::i;:::-;112263:35;112301:26;112316:2;:10;;;112301:14;:26::i;:::-;112263:64;;112345:33;112360:4;112366:2;:11;;;112345:14;:33::i;98189:665::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98383:24:0;:7;-1:-1:-1;98383:17:0;:24::i;:::-;98368:39;;98418:11;98427:2;98418:11;;:::i;:::-;98448:12;;98418:11;;-1:-1:-1;93987:66:0;98448:22;98440:47;;;;-1:-1:-1;;;98440:47:0;;;;;;;:::i;:::-;98515:22;:7;98531:5;98515:15;:22::i;:::-;98500:37;;:12;;;:37;98548:10;98557:1;98548:10;;:::i;:::-;;;98577:5;:12;;;:17;;98593:1;98577:17;98569:42;;;;-1:-1:-1;;;98569:42:0;;;;;;;:::i;:::-;98640:23;:7;98657:5;98640:16;:23::i;:::-;98624:39;;:13;;;:39;98674:10;98683:1;98674:10;;:::i;:::-;;-1:-1:-1;98739:24:0;:7;98674:10;98739:17;:24::i;:::-;98719:17;;;:44;98774:11;98783:2;98774:11;;:::i;116364:122::-;116444:34;116462:9;116473:4;116444:17;:34::i;42555:329::-;42634:7;42679:11;:6;42688:2;42679:11;:::i;:::-;42662:6;:13;:28;;42654:62;;;;-1:-1:-1;;;42654:62:0;;29565:2:1;42654:62:0;;;29547:21:1;29604:2;29584:18;;;29577:30;-1:-1:-1;;;29623:18:1;;;29616:51;29684:18;;42654:62:0;29537:171:1;42654:62:0;-1:-1:-1;42804:30:0;42820:4;42804:30;42798:37;;42555:329::o;40291:311::-;40368:5;40411:10;:6;40420:1;40411:10;:::i;:::-;40394:6;:13;:27;;40386:60;;;;-1:-1:-1;;;40386:60:0;;33577:2:1;40386:60:0;;;33559:21:1;33616:2;33596:18;;;33589:30;-1:-1:-1;;;33635:18:1;;;33628:49;33694:18;;40386:60:0;33549:169:1;40386:60:0;-1:-1:-1;40526:29:0;40542:3;40526:29;40520:36;;40291:311::o;40610:314::-;40688:6;40732:10;:6;40741:1;40732:10;:::i;:::-;40715:6;:13;:27;;40707:60;;;;-1:-1:-1;;;40707:60:0;;23753:2:1;40707:60:0;;;23735:21:1;23792:2;23772:18;;;23765:30;-1:-1:-1;;;23811:18:1;;;23804:50;23871:18;;40707:60:0;23725:170:1;40707:60:0;-1:-1:-1;40848:29:0;40864:3;40848:29;40842:36;;40610:314::o;107037:2580::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58789:28:0;;107233:17;58789:28;;;:21;:28;;;;;;107233:17;;58789:28;;107292:293;;;107367:5;-1:-1:-1;;;;;107347:34:0;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;107334:49;;107433:5;-1:-1:-1;;;;;107413:41:0;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;107398:58;;107292:293;;;-1:-1:-1;;57524:15:0;:23;;;-1:-1:-1;;;;;107549:23:0;;107292:293;107682:37;;;;;;;;;;;;;;;;-1:-1:-1;;;;;107682:37:0;-1:-1:-1;;;107682:37:0;;;107665:55;;107633:28;;-1:-1:-1;;;;;107665:16:0;;;:55;;107682:37;107665:55;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107631:89;;;107731:14;107759:15;107748:36;;;;;;;;;;;;:::i;:::-;107731:53;;107886:62;107904:33;107920:6;107928:8;107904:15;:33::i;:::-;107939:8;107886:17;:62::i;:::-;107877:71;;107979:9;57524:15;:23;;;;57459:96;107979:9;107965:23;;:10;:23;;;107961:1005;;;108117:64;;;108175:4;108117:64;;;;18168:51:1;;;;108117:64:0;;;;;;;;;;18141:18:1;;;;108117:64:0;;;;;;;-1:-1:-1;;;;;108117:64:0;-1:-1:-1;;;108117:64:0;;;108100:82;;108063:33;;-1:-1:-1;;;;;108100:16:0;;;:82;;108117:64;108100:82;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108061:121;;;108197:21;108232:20;108221:43;;;;;;;;;;;;:::i;:::-;108197:67;;108313:76;108347:5;108355:10;108375:4;108382:6;108313:26;:76::i;:::-;108516:64;;;108574:4;108516:64;;;;18168:51:1;;;;108516:64:0;;;;;;;;;;18141:18:1;;;;108516:64:0;;;;;;;-1:-1:-1;;;;;108516:64:0;-1:-1:-1;;;108516:64:0;;;108499:82;;108463:32;;-1:-1:-1;;;;;108499:16:0;;;:82;;108516:64;108499:82;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108461:120;;;108596:20;108630:19;108619:42;;;;;;;;;;;;:::i;:::-;108596:65;-1:-1:-1;108746:28:0;108761:13;108596:65;108746:28;:::i;:::-;108737:37;;107961:1005;;;;;;;108807:76;108841:5;108849:10;108869:4;108876:6;108807:26;:76::i;:::-;108900:54;;-1:-1:-1;;;108900:54:0;;108940:4;108900:54;;;19103:51:1;19170:18;;;19163:34;;;-1:-1:-1;;;;;108900:31:0;;;;;19076:18:1;;108900:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107961:1005;109017:24;109044:33;109060:6;109068:8;109044:15;:33::i;:::-;109017:60;;109088:28;109119:37;109135:10;109147:8;109119:15;:37::i;:::-;109088:68;;109241:9;57524:15;:23;;;;57459:96;109241:9;109227:23;;:10;:23;;;109223:90;;;109267:34;109277:5;109284:16;109267:9;:34::i;:::-;109342:267;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;109342:267:0;;;;109588:9;109342:267;;;;;107037:2580;-1:-1:-1;;;;107037:2580:0:o;110051:817::-;110314:15;110357:6;110350:3;:13;;110342:44;;;;-1:-1:-1;;;110342:44:0;;29218:2:1;110342:44:0;;;29200:21:1;29257:2;29237:18;;;29230:30;-1:-1:-1;;;29276:18:1;;;29269:48;29334:18;;110342:44:0;29190:168:1;110342:44:0;110440:258;;;;;;;;110489:1;110440:258;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57427:15:0;-1:-1:-1;;;;;57427:15:0;110722:25;110755:9;110780:5;110800:24;110440:258;110800:14;:24::i;:::-;58899:15;:24;;;;;;110722:138;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;110711:149;110051:817;-1:-1:-1;;;;;;;;;;110051:817:0:o;96066:772::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;96171:12:0;96185:27;96225:22;96249:10;96261:20;96285:10;57388:9;57427:15;-1:-1:-1;;;;;57427:15:0;;57347:104;96285:10;-1:-1:-1;;;;;96285:27:0;;96313:9;96285:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;96285:38:0;;;;;;;;;;;;:::i;:::-;96224:99;;;;;;96341:5;96336:65;;96371:2;;-1:-1:-1;96375:5:0;-1:-1:-1;96382:6:0;-1:-1:-1;96363:26:0;;96336:65;57849:15;:33;;;;;;96417:40;;:2;:17;;;:40;;;96413:117;;-1:-1:-1;;96474:44:0;;;;;;;;;;;;-1:-1:-1;;;96474:44:0;;;;96482:2;;-1:-1:-1;96486:5:0;;-1:-1:-1;96474:44:0;-1:-1:-1;96474:44:0;;96413:117;57975:34;;96544:2;:17;;;:41;96540:121;;-1:-1:-1;;96602:47:0;;;;;;;;;;;;;;;;;96610:2;;-1:-1:-1;96614:5:0;;-1:-1:-1;96602:47:0;-1:-1:-1;96602:47:0;;96540:121;96704:7;;;;56997:4;57021:38;;;:32;:38;;;;;;;;96673:124;;;96737:2;96741:5;96729:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;96673:124;-1:-1:-1;;96809:21:0;;;;;;;;;-1:-1:-1;96809:21:0;;96817:2;;-1:-1:-1;96821:4:0;;-1:-1:-1;96809:21:0;-1:-1:-1;96066:772:0;;;;;;:::o;59225:124::-;59296:6;:38;;;:32;:38;;;;;:45;;-1:-1:-1;;59296:45:0;59337:4;59296:45;;;59225:124::o;60881:170::-;60966:13;60952:10;:27;60944:58;;;;-1:-1:-1;;;60944:58:0;;34672:2:1;60944:58:0;;;34654:21:1;34711:2;34691:18;;;34684:30;-1:-1:-1;;;34730:18:1;;;34723:48;34788:18;;60944:58:0;34644:168:1;60944:58:0;61013:17;:30;60881:170::o;116945:3350::-;117031:12;117057:22;117081:10;117093:20;117117:10;57388:9;57427:15;-1:-1:-1;;;;;57427:15:0;;57347:104;117117:10;-1:-1:-1;;;;;117117:27:0;;117145:9;117117:38;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;117117:38:0;;;;;;;;;;;;:::i;:::-;117056:99;;;;;;117176:5;117183:6;117168:22;;;;;-1:-1:-1;;;117168:22:0;;;;;;;;:::i;:::-;;117209:18;117224:2;117209:14;:18::i;:::-;117201:46;;;;-1:-1:-1;;;117201:46:0;;;;;;;:::i;:::-;117260:38;117301:32;117322:2;:10;;;117301:20;:32::i;:::-;117260:73;;117418:25;117446:29;117463:8;:11;;;117446:16;:29::i;:::-;117418:57;;117490:8;:18;;;:23;;117512:1;117490:23;117486:114;;;117538:10;-1:-1:-1;;;;;117538:31:0;;;117530:58;;;;-1:-1:-1;;;117530:58:0;;22314:2:1;117530:58:0;;;22296:21:1;22353:2;22333:18;;;22326:30;-1:-1:-1;;;22372:18:1;;;22365:44;22426:18;;117530:58:0;22286:164:1;117530:58:0;117641:7;;;;57276:4;57300:31;;;:25;:31;;;;;;;;117620:29;117612:68;;;;-1:-1:-1;;;117612:68:0;;30668:2:1;117612:68:0;;;30650:21:1;30707:2;30687:18;;;30680:30;30746:28;30726:18;;;30719:56;30792:18;;117612:68:0;30640:176:1;117612:68:0;117691:29;117712:2;:7;;;59421:6;:31;;;:25;:31;;;;;:38;;-1:-1:-1;;59421:38:0;59455:4;59421:38;;;59357:110;117691:29;57524:15;:23;;;117741:29;;:8;:16;;;:29;;;117733:62;;;;-1:-1:-1;;;117733:62:0;;22657:2:1;117733:62:0;;;22639:21:1;22696:2;22676:18;;;22669:30;-1:-1:-1;;;22715:18:1;;;22708:50;22775:18;;117733:62:0;22629:170:1;117733:62:0;117808:20;117866:9;57524:15;:23;;;;57459:96;117866:9;117843:32;;:8;:19;;;:32;;;117839:484;;;117915:39;117932:8;:21;;;117915:16;:39::i;:::-;117892:63;;118020:50;118038:13;118054:8;:15;;;118020:9;:50::i;:::-;117839:484;;;118103:15;118121:56;118134:8;:19;;;118155:8;:21;;;118121:12;:56::i;:::-;118103:74;-1:-1:-1;;;;;;118200:21:0;;118192:71;;;;-1:-1:-1;;;118192:71:0;;33925:2:1;118192:71:0;;;33907:21:1;33964:2;33944:18;;;33937:30;34003:34;33983:18;;;33976:62;-1:-1:-1;;;34054:18:1;;;34047:35;34099:19;;118192:71:0;33897:227:1;118192:71:0;118303:7;-1:-1:-1;117839:484:0;118343:19;;;:64;;-1:-1:-1;58531:20:0;;-1:-1:-1;;;;;118366:41:0;;;58531:20;;118366:41;118343:64;118335:112;;;;-1:-1:-1;;;118335:112:0;;28048:2:1;118335:112:0;;;28030:21:1;28087:2;28067:18;;;28060:30;28126:34;28106:18;;;28099:62;-1:-1:-1;;;28177:18:1;;;28170:33;28220:19;;118335:112:0;28020:225:1;118335:112:0;118555:37;;;;;;;;;;;;;;;;-1:-1:-1;;;;;118555:37:0;-1:-1:-1;;;118555:37:0;;;118521:72;;118489:28;;-1:-1:-1;;;;;118521:33:0;;;:72;;118555:37;118521:72;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;118487:106;;;118604:14;118632:15;118621:36;;;;;;;;;;;;:::i;:::-;118604:53;;118698:20;118721:44;118739:8;:15;;;118756:8;118721:17;:44::i;:::-;118698:67;;118776:17;118796:41;118814:8;:12;;;118828:8;118796:17;:41::i;:::-;118776:61;;118902:1;118890:9;:13;:48;;;;-1:-1:-1;;;;;;118907:31:0;;118928:10;118907:31;;118890:48;118886:770;;;118976:12;118963:9;:25;;118955:72;;;;-1:-1:-1;;;118955:72:0;;23350:2:1;118955:72:0;;;23332:21:1;23389:2;23369:18;;;23362:30;23428:34;23408:18;;;23401:62;-1:-1:-1;;;23479:18:1;;;23472:32;23521:19;;118955:72:0;23322:224:1;118955:72:0;119048:10;119044:481;;;58531:20;;;119079:26;;-1:-1:-1;;;119079:26:0;;;;;19546:25:1;;;-1:-1:-1;;;;;58531:20:0;;119079:15;;19519:18:1;;119079:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;119126:39:0;;119134:10;;-1:-1:-1;119126:39:0;;;;;-1:-1:-1;119155:9:0;;119126:39;;;;119155:9;119134:10;119126:39;;;;;;;;;;;;;;;;;;;;;118886:770;;119044:481;57524:15;:23;;;119210:32;;:8;:19;;;:32;;;119206:304;;119310:71;;-1:-1:-1;;;119310:71:0;;119359:10;119310:71;;;19103:51:1;19170:18;;;19163:34;;;-1:-1:-1;;;;;119310:48:0;;;;;19076:18:1;;119310:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;118886:770;;119206:304;119430:60;119453:13;119468:10;119480:9;119430:22;:60::i;:::-;118886:770;;;-1:-1:-1;119643:1:0;118886:770;119717:19;119739:24;119754:9;119739:12;:24;:::i;:::-;119717:46;;119780:10;119776:482;;;58531:20;;;119807:31;;-1:-1:-1;;;119807:31:0;;;;;19546:25:1;;;-1:-1:-1;;;;;58531:20:0;;119807:15;;19519:18:1;;119807:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;119855:51:0;;-1:-1:-1;;;;;119855:35:0;;;-1:-1:-1;119855:51:0;;;;;-1:-1:-1;119891:14:0;;119855:51;;;;119891:14;119855:35;:51;;;;;;;;;;;;;;;;;;;;;119776:482;;;57524:15;:23;;;119943:32;;:8;:19;;;:32;;;119939:308;;120035:83;;-1:-1:-1;;;120035:83:0;;-1:-1:-1;;;;;19121:32:1;;;120035:83:0;;;19103:51:1;19170:18;;;19163:34;;;120035:48:0;;;;;19076:18:1;;120035:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;119939:308;;;120159:72;120182:13;120197:17;120216:14;120159:22;:72::i;:::-;-1:-1:-1;;;120277:10:0;;;;;;116945:3350;-1:-1:-1;;;;;;;;;;116945:3350:0:o;96935:486::-;97013:29;97045:20;11962:66;12323:54;-1:-1:-1;;;;;12323:54:0;;12243:142;97045:20;97013:52;;97078:29;97089:17;97078:10;:29::i;:::-;97252:39;;;;;;;;;;;;;;;;-1:-1:-1;;;;;97252:39:0;-1:-1:-1;;;97252:39:0;;;97221:71;;97184:12;;;;-1:-1:-1;;;;;97221:30:0;;;:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;97183:109;;;;97313:7;97329:6;97305:32;;;;;-1:-1:-1;;;97305:32:0;;;;;;;;:::i;:::-;;97395:17;-1:-1:-1;;;;;97355:58:0;97372:21;-1:-1:-1;;;;;97355:58:0;;;;;;;;;;;96935:486;;;;:::o;42227:320::-;42306:7;42351:11;:6;42360:2;42351:11;:::i;:::-;42334:6;:13;:28;;42326:62;;;;-1:-1:-1;;;42326:62:0;;27698:2:1;42326:62:0;;;27680:21:1;27737:2;27717:18;;;27710:30;-1:-1:-1;;;27756:18:1;;;27749:51;27817:18;;42326:62:0;27670:171:1;103559:1264:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103689:16:0;57427:15;;-1:-1:-1;;;;;57427:15:0;-1:-1:-1;;;;;103708:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;103689:42;;103766:9;103752:11;:23;103744:70;;;;-1:-1:-1;;;103744:70:0;;31783:2:1;103744:70:0;;;31765:21:1;31822:2;31802:18;;;31795:30;31861:34;31841:18;;;31834:62;-1:-1:-1;;;31912:18:1;;;31905:32;31954:19;;103744:70:0;31755:224:1;103744:70:0;103827:11;103841:23;103853:11;103841:9;:23;:::i;:::-;103827:37;;103899:6;103885:10;:20;;103877:77;;;;-1:-1:-1;;;103877:77:0;;31370:2:1;103877:77:0;;;31352:21:1;31409:2;31389:18;;;31382:30;31448:34;31428:18;;;31421:62;-1:-1:-1;;;31499:18:1;;;31492:42;31551:19;;103877:77:0;31342:234:1;103877:77:0;103967:21;103991:27;104007:6;104015:2;103991:15;:27::i;:::-;103967:51;;104029:25;104057:31;104073:10;104085:2;104057:15;:31::i;:::-;104029:59;;104125:9;104146:39;104164:16;104182:2;104146:17;:39::i;:::-;104137:48;;:6;:48;:::i;:::-;104125:60;-1:-1:-1;104200:8:0;;104196:75;;104225:34;;104233:10;;104225:34;;;;;104254:4;;104225:34;;;;104254:4;104233:10;104225:34;;;;;;;;;;;;;;;;;;;;;104196:75;58531:20;;-1:-1:-1;;;;;58531:20:0;104313:14;104350:13;104359:4;104350:6;:13;:::i;:::-;104313:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;104443:44;104461:6;58531:20;;-1:-1:-1;;;;;58531:20:0;;58464:96;104461:6;104470:16;104443:9;:44::i;:::-;104517:298;;;;;;;;104574:9;57524:15;:23;;;;57459:96;104574:9;104517:298;;;;;;104645:6;58531:20;;-1:-1:-1;;;;;58531:20:0;;58464:96;104645:6;-1:-1:-1;;;;;104621:33:0;104613:42;;104517:298;;;;104689:16;104517:298;;;;104743:20;104517:298;;;;104792:11;104517:298;;;104500:315;;103559:1264;;;;;;;;:::o;111023:937::-;111386:393;;;;;;;;111464:1;111386:393;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111715:10;111386:393;;;;;;;;;;111306:15;;111803:10;57388:9;57427:15;-1:-1:-1;;;;;57427:15:0;;57347:104;111803:10;-1:-1:-1;;;;;111803:25:0;;111836:9;111861:5;111881:35;111907:8;111881:25;:35::i;120805:202::-;120876:4;120901:8;:6;:8::i;:::-;120900:9;120892:34;;;;-1:-1:-1;;;120892:34:0;;32186:2:1;120892:34:0;;;32168:21:1;32225:2;32205:18;;;32198:30;-1:-1:-1;;;32244:18:1;;;32237:42;32296:18;;120892:34:0;32158:162:1;120892:34:0;-1:-1:-1;120982:17:0;;;;120960;;;;;58290:38;;58264:7;58290:38;;;:28;:38;;;;;;120944:55;;120805:202::o;113324:1357::-;113420:13;113473:9;57524:15;:23;;;;57459:96;113473:9;113454:28;;:4;:15;;;:28;;;;113446:81;;;;-1:-1:-1;;;113446:81:0;;28809:2:1;113446:81:0;;;28791:21:1;28848:2;28828:18;;;28821:30;28887:34;28867:18;;;28860:62;-1:-1:-1;;;28938:18:1;;;28931:38;28986:19;;113446:81:0;28781:230:1;113446:81:0;113606:1;-1:-1:-1;;;;;113546:62:0;:48;113559:4;:15;;;113576:4;:17;;;113546:12;:48::i;:::-;-1:-1:-1;;;;;113546:62:0;;113538:103;;;;-1:-1:-1;;;113538:103:0;;28452:2:1;113538:103:0;;;28434:21:1;28491:2;28471:18;;;28464:30;28530;28510:18;;;28503:58;28578:18;;113538:103:0;28424:178:1;113538:103:0;113701:31;113772:39;;;113826:26;113842:4;:9;;;113826:15;:26::i;:::-;113867:28;113883:4;:11;;;113867:15;:28::i;:::-;113910:4;:13;;;113938:8;113971:4;113993;:15;;;114023:4;:17;;;113735:316;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;113735:316:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;113735:316:0;-1:-1:-1;;;;;;113735:316:0;;;;;;;;;;114134:45;113735:316;;-1:-1:-1;;;114134:45:0;;114153:4;;113735:316;;114134:45;;:::i;:::-;;;;;;;;;;;;;114103:76;;114220:21;114261:30;;;;;;;;:::i;:::-;-1:-1:-1;;114261:30:0;;;;;;;;;;;;;;;;114244:65;;114261:30;114293:15;;114261:30;114244:65;;:::i;:::-;;;;;;;;;;;;;114220:89;;114322:12;114364:4;:15;;;114381:4;:17;;;114347:52;;;;;;;;15819:3:1;15797:16;;;;-1:-1:-1;;;;;;15793:38:1;15781:51;;15857:1;15848:11;;15841:27;15893:2;15884:12;;15771:131;114347:52:0;;;;;;;;;;;;;114337:63;;;;;;114322:78;;114495:4;114484:8;114478:15;114471:4;114461:8;114457:19;114454:1;114446:54;114437:63;;114538:5;114526:18;114516:2;;114575:1;114572;114565:12;114516:2;114631:15;;;;;114648:17;;;;;60502:34;;;;:6;:34;;;:20;:34;;;;;:48;;;;;;;;;:58;;-1:-1:-1;;;;;;60502:58:0;-1:-1:-1;;;;;60502:58:0;;;;;;;;60571:30;;:21;:30;;;:37;;-1:-1:-1;;60571:37:0;-1:-1:-1;60571:37:0;;;113324:1357;;;;;;;;:::o;37041:2871::-;37194:12;37248:7;37232:12;37248:7;37242:2;37232:12;:::i;:::-;:23;;37224:50;;;;-1:-1:-1;;;37224:50:0;;25976:2:1;37224:50:0;;;25958:21:1;26015:2;25995:18;;;25988:30;-1:-1:-1;;;26034:18:1;;;26027:44;26088:18;;37224:50:0;25948:164:1;37224:50:0;37310:16;37319:7;37310:6;:16;:::i;:::-;37293:6;:13;:33;;37285:63;;;;-1:-1:-1;;;37285:63:0;;33231:2:1;37285:63:0;;;33213:21:1;33270:2;33250:18;;;33243:30;-1:-1:-1;;;33289:18:1;;;33282:47;33346:18;;37285:63:0;33203:167:1;37285:63:0;37361:22;37427:15;;37456:2005;;;;39605:4;39599:11;39586:24;;39794:1;39783:9;39776:20;39844:4;39833:9;39829:20;39823:4;39816:34;37420:2445;;37456:2005;37641:4;37635:11;37622:24;;38310:2;38301:7;38297:16;38698:9;38691:17;38685:4;38681:28;38669:9;38658;38654:25;38650:60;38747:7;38743:2;38739:16;39004:6;38990:9;38983:17;38977:4;38973:28;38961:9;38953:6;38949:22;38945:57;38941:70;38775:434;39038:3;39034:2;39031:11;38775:434;;;39180:9;;39169:21;;39080:4;39072:13;;;;39113;38775:434;;;-1:-1:-1;;39229:26:0;;;39441:2;39424:11;-1:-1:-1;;39420:25:0;39414:4;39407:39;-1:-1:-1;37420:2445:0;-1:-1:-1;39895:9:0;-1:-1:-1;37041:2871:0;;;;;;:::o;112394:448::-;112490:13;112516:15;112534:48;112547:4;:15;;;112564:4;:17;;;112534:12;:48::i;:::-;112516:66;-1:-1:-1;;;;;;112601:21:0;;112593:63;;;;-1:-1:-1;;;112593:63:0;;25277:2:1;112593:63:0;;;25259:21:1;25316:2;25296:18;;;25289:30;25355:31;25335:18;;;25328:59;25404:18;;112593:63:0;25249:179:1;112593:63:0;112717:7;-1:-1:-1;;;;;112697:42:0;;112740:26;112756:4;:9;;;112740:15;:26::i;:::-;112768:28;112784:4;:11;;;112768:15;:28::i;:::-;112798:8;112697:110;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;112827:7:0;;112394:448;-1:-1:-1;;;;;;112394:448:0:o;109625:204::-;109704:7;109738:1;109727:8;:12;;;109723:75;;;109773:12;109784:1;109773:8;:12;:::i;:::-;109766:20;;:2;:20;:::i;:::-;109756:30;;;;:::i;:::-;;;109723:75;-1:-1:-1;109815:6:0;;109625:204;-1:-1:-1;109625:204:0:o;109837:206::-;109918:7;109952:1;109941:8;:12;;;109937:75;;;109987:12;109998:1;109987:8;:12;:::i;:::-;109980:20;;:2;:20;:::i;:::-;109970:30;;;;:::i;24265:248::-;24436:68;;-1:-1:-1;;;;;18488:15:1;;;24436:68:0;;;18470:34:1;18540:15;;18520:18;;;18513:43;18572:18;;;18565:34;;;24409:96:0;;24429:5;;-1:-1:-1;;;24459:27:0;18405:18:1;;24436:68:0;;;;-1:-1:-1;;24436:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;24436:68:0;-1:-1:-1;;;;;;24436:68:0;;;;;;;;;;24409:19;:96::i;:::-;24265:248;;;;:::o;120303:327::-;-1:-1:-1;;;;;58658:32:0;;120380:16;58658:32;;;:25;:32;;;;;;-1:-1:-1;;;;;120443:30:0;120457:16;58658:32;120443:30;:::i;:::-;:50;;120435:116;;;;-1:-1:-1;;;120435:116:0;;24102:2:1;120435:116:0;;;24084:21:1;24141:2;24121:18;;;24114:30;24180:34;24160:18;;;24153:62;-1:-1:-1;;;24231:18:1;;;24224:51;24292:19;;120435:116:0;24074:243:1;120435:116:0;120562:60;120584:5;120591:30;120605:16;120591:11;:30;:::i;:::-;-1:-1:-1;;;;;60711:32:0;;;:6;:32;;;:25;:32;;;;;:46;60624:141;120562:60;120303:327;;;:::o;116721:181::-;116781:7;-1:-1:-1;;;;;;116809:15:0;;;116801:47;;;;-1:-1:-1;;;116801:47:0;;35019:2:1;116801:47:0;;;35001:21:1;35058:2;35038:18;;;35031:30;-1:-1:-1;;;35077:18:1;;;35070:49;35136:18;;116801:47:0;34991:169:1;116801:47:0;-1:-1:-1;116890:1:0;116721:181::o;120638:159::-;120715:74;120737:5;120772:16;120744:25;120763:5;-1:-1:-1;;;;;58658:32:0;58632:7;58658:32;;;:25;:32;;;;;;;58568:130;120744:25;:44;;;;:::i;24046:211::-;24190:58;;-1:-1:-1;;;;;19121:32:1;;24190:58:0;;;19103:51:1;19170:18;;;19163:34;;;24163:86:0;;24183:5;;-1:-1:-1;;;24213:23:0;19076:18:1;;24190:58:0;19058:145:1;12856:155:0;12923:37;12942:17;12923:18;:37::i;:::-;12976:27;;-1:-1:-1;;;;;12976:27:0;;;;;;;;12856:155;:::o;126430:338::-;126493:13;126519:9;126539:62;126550:2;126546:1;:6;:23;;;;;126556:5;126562:1;126556:8;;;;;-1:-1:-1;;;126556:8:0;;;;;;;;;;;;-1:-1:-1;;;;;;126556:13:0;;;126546:23;126539:62;;;126586:3;;;;:::i;:::-;;;;126539:62;;;126611:18;126642:1;-1:-1:-1;;;;;126632:12:0;;;;;-1:-1:-1;;;126632:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;126632:12:0;;126611:33;;126660:6;126655:75;126676:1;126672;:5;126655:75;;;126710:5;126716:1;126710:8;;;;;-1:-1:-1;;;126710:8:0;;;;;;;;;;;;126699:5;126705:1;126699:8;;;;;;-1:-1:-1;;;126699:8:0;;;;;;;;;;;;:19;-1:-1:-1;;;;;126699:19:0;;;;;;;;-1:-1:-1;126679:3:0;;;;:::i;:::-;;;;126655:75;;;-1:-1:-1;126754:5:0;126430:338;-1:-1:-1;;;126430:338:0:o;26619:716::-;27043:23;27069:69;27097:4;27069:69;;;;;;;;;;;;;;;;;27077:5;-1:-1:-1;;;;;27069:27:0;;;:69;;;;;:::i;:::-;27153:17;;27043:95;;-1:-1:-1;27153:21:0;27149:179;;27250:10;27239:30;;;;;;;;;;;;:::i;:::-;27231:85;;;;-1:-1:-1;;;27231:85:0;;35367:2:1;27231:85:0;;;35349:21:1;35406:2;35386:18;;;35379:30;35445:34;35425:18;;;35418:62;-1:-1:-1;;;35496:18:1;;;35489:40;35546:19;;27231:85:0;35339:232:1;12481:262:0;1560:20;;12555:95;;;;-1:-1:-1;;;12555:95:0;;29915:2:1;12555:95:0;;;29897:21:1;29954:2;29934:18;;;29927:30;29993:34;29973:18;;;29966:62;-1:-1:-1;;;30044:18:1;;;30037:43;30097:19;;12555:95:0;29887:235:1;12555:95:0;11962:66;12661:74;;-1:-1:-1;;;;;;12661:74:0;-1:-1:-1;;;;;12661:74:0;;;;;;;;;;12481:262::o;4043:229::-;4180:12;4212:52;4234:6;4242:4;4248:1;4251:12;4212:21;:52::i;:::-;4205:59;4043:229;-1:-1:-1;;;;4043:229:0:o;5163:510::-;5333:12;5391:5;5366:21;:30;;5358:81;;;;-1:-1:-1;;;5358:81:0;;24524:2:1;5358:81:0;;;24506:21:1;24563:2;24543:18;;;24536:30;24602:34;24582:18;;;24575:62;-1:-1:-1;;;24653:18:1;;;24646:36;24699:19;;5358:81:0;24496:228:1;5358:81:0;1560:20;;5450:60;;;;-1:-1:-1;;;5450:60:0;;32873:2:1;5450:60:0;;;32855:21:1;32912:2;32892:18;;;32885:30;32951:31;32931:18;;;32924:59;33000:18;;5450:60:0;32845:179:1;5450:60:0;5524:12;5538:23;5565:6;-1:-1:-1;;;;;5565:11:0;5584:5;5591:4;5565:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5523:73;;;;5614:51;5631:7;5640:10;5652:12;5614:16;:51::i;:::-;5607:58;5163:510;-1:-1:-1;;;;;;;5163:510:0:o;7849:712::-;7999:12;8028:7;8024:530;;;-1:-1:-1;8059:10:0;8052:17;;8024:530;8173:17;;:21;8169:374;;8371:10;8365:17;8432:15;8419:10;8415:2;8411:19;8404:44;8319:148;8514:12;8507:20;;-1:-1:-1;;;8507:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:1283::-;266:5;319:3;312:4;304:6;300:17;296:27;286:2;;341:5;334;327:20;286:2;374:6;368:13;400:4;-1:-1:-1;;;;;419:2:1;416:26;413:2;;;445:18;;:::i;:::-;485:36;517:2;512;509:1;505:10;501:19;485:36;:::i;:::-;543:3;567:2;562:3;555:15;595:2;590:3;586:12;579:19;;630:2;622:6;618:15;682:3;677:2;671;668:1;664:10;656:6;652:23;648:32;645:41;642:2;;;703:5;696;689:20;642:2;729:5;743:703;757:2;754:1;751:9;743:703;;;812:4;851:2;845:3;840;836:13;832:22;829:2;;;871:5;864;857:20;829:2;905:22;;:::i;:::-;960:3;954:10;947:5;940:25;1016:2;1011:3;1007:12;1001:19;996:2;989:5;985:14;978:43;1044:2;1089;1084:3;1080:12;1074:19;1106:31;1129:7;1106:31;:::i;:::-;1157:14;;;1150:31;1204:2;1240:12;;;1234:19;1266:31;1234:19;1266:31;:::i;:::-;1317:14;;;1310:31;1354:18;;1392:12;;;;1424;;;;;775:1;768:9;743:703;;;-1:-1:-1;1464:5:1;;276:1199;-1:-1:-1;;;;;;;276:1199:1:o;1480:164::-;1556:13;;1605;;1598:21;1588:32;;1578:2;;1634:1;1631;1624:12;1649:482;1691:5;1744:3;1737:4;1729:6;1725:17;1721:27;1711:2;;1766:5;1759;1752:20;1711:2;1806:6;1793:20;1837:48;1853:31;1881:2;1853:31;:::i;:::-;1837:48;:::i;:::-;1910:2;1901:7;1894:19;1956:3;1949:4;1944:2;1936:6;1932:15;1928:26;1925:35;1922:2;;;1977:5;1970;1963:20;1922:2;2046;2039:4;2031:6;2027:17;2020:4;2011:7;2007:18;1994:55;2069:16;;;2087:4;2065:27;2058:42;;;;2073:7;1701:430;-1:-1:-1;;1701:430:1:o;2136:444::-;2189:5;2242:3;2235:4;2227:6;2223:17;2219:27;2209:2;;2264:5;2257;2250:20;2209:2;2297:6;2291:13;2328:48;2344:31;2372:2;2344:31;:::i;2328:48::-;2401:2;2392:7;2385:19;2447:3;2440:4;2435:2;2427:6;2423:15;2419:26;2416:35;2413:2;;;2468:5;2461;2454:20;2413:2;2485:64;2546:2;2539:4;2530:7;2526:18;2519:4;2511:6;2507:17;2485:64;:::i;2585:132::-;2652:20;;2681:30;2652:20;2681:30;:::i;2722:136::-;2800:13;;2822:30;2800:13;2822:30;:::i;2863:136::-;2941:13;;2963:30;2941:13;2963:30;:::i;3004:175::-;3082:13;;-1:-1:-1;;;;;3124:30:1;;3114:41;;3104:2;;3169:1;3166;3159:12;3184:130;3250:20;;3279:29;3250:20;3279:29;:::i;3319:134::-;3396:13;;3418:29;3396:13;3418:29;:::i;3458:196::-;3517:6;3570:2;3558:9;3549:7;3545:23;3541:32;3538:2;;;3591:6;3583;3576:22;3538:2;3619:29;3638:9;3619:29;:::i;3659:675::-;3761:6;3769;3777;3785;3793;3801;3854:3;3842:9;3833:7;3829:23;3825:33;3822:2;;;3876:6;3868;3861:22;3822:2;3904:29;3923:9;3904:29;:::i;:::-;3894:39;;3980:2;3969:9;3965:18;3952:32;3942:42;;4034:2;4023:9;4019:18;4006:32;4047:30;4071:5;4047:30;:::i;:::-;4096:5;-1:-1:-1;4148:2:1;4133:18;;4120:32;;-1:-1:-1;4199:3:1;4184:19;;4171:33;;-1:-1:-1;4256:3:1;4241:19;;4228:33;4270:32;4228:33;4270:32;:::i;:::-;4321:7;4311:17;;;3812:522;;;;;;;;:::o;4339:825::-;4450:6;4458;4466;4474;4482;4490;4543:3;4531:9;4522:7;4518:23;4514:33;4511:2;;;4565:6;4557;4550:22;4511:2;4593:29;4612:9;4593:29;:::i;:::-;4583:39;;4669:2;4658:9;4654:18;4641:32;4631:42;;4723:2;4712:9;4708:18;4695:32;4736:30;4760:5;4736:30;:::i;:::-;4785:5;-1:-1:-1;4837:2:1;4822:18;;4809:32;;-1:-1:-1;4893:3:1;4878:19;;4865:33;4907:32;4865:33;4907:32;:::i;:::-;4958:7;-1:-1:-1;5016:3:1;5001:19;;4988:33;-1:-1:-1;;;;;5033:30:1;;5030:2;;;5081:6;5073;5066:22;5030:2;5109:49;5150:7;5141:6;5130:9;5126:22;5109:49;:::i;:::-;5099:59;;;4501:663;;;;;;;;:::o;5169:329::-;5236:6;5244;5297:2;5285:9;5276:7;5272:23;5268:32;5265:2;;;5318:6;5310;5303:22;5265:2;5346:29;5365:9;5346:29;:::i;:::-;5336:39;;5425:2;5414:9;5410:18;5397:32;5438:30;5462:5;5438:30;:::i;:::-;5487:5;5477:15;;;5255:243;;;;;:::o;5503:212::-;5570:6;5623:2;5611:9;5602:7;5598:23;5594:32;5591:2;;;5644:6;5636;5629:22;5591:2;5672:37;5699:9;5672:37;:::i;5720:190::-;5779:6;5832:2;5820:9;5811:7;5807:23;5803:32;5800:2;;;5853:6;5845;5838:22;5800:2;-1:-1:-1;5881:23:1;;5790:120;-1:-1:-1;5790:120:1:o;5915:194::-;5985:6;6038:2;6026:9;6017:7;6013:23;6009:32;6006:2;;;6059:6;6051;6044:22;6006:2;-1:-1:-1;6087:16:1;;5996:113;-1:-1:-1;5996:113:1:o;6114:340::-;6182:6;6235:2;6223:9;6214:7;6210:23;6206:32;6203:2;;;6256:6;6248;6241:22;6203:2;6301:9;6288:23;-1:-1:-1;;;;;6326:6:1;6323:30;6320:2;;;6371:6;6363;6356:22;6320:2;6399:49;6440:7;6431:6;6420:9;6416:22;6399:49;:::i;6459:356::-;6539:6;6592:2;6580:9;6571:7;6567:23;6563:32;6560:2;;;6613:6;6605;6598:22;6560:2;6651:9;6645:16;-1:-1:-1;;;;;6676:6:1;6673:30;6670:2;;;6721:6;6713;6706:22;6670:2;6749:60;6801:7;6792:6;6781:9;6777:22;6749:60;:::i;6820:994::-;6906:6;6959:3;6947:9;6938:7;6934:23;6930:33;6927:2;;;6981:6;6973;6966:22;6927:2;7019;7013:9;7061:3;7053:6;7049:16;7131:6;7119:10;7116:22;-1:-1:-1;;;;;7083:10:1;7080:34;7077:62;7074:2;;;7142:18;;:::i;:::-;7178:2;7171:22;7215:23;;7247:29;7215:23;7247:29;:::i;:::-;7285:21;;7367:2;7352:18;;;7339:32;7322:15;;;7315:57;7424:2;7409:18;;7396:32;7437;7396;7437;:::i;:::-;7497:2;7485:15;;7478:32;7562:2;7547:18;;7534:32;7575:31;7534:32;7575:31;:::i;:::-;7634:2;7622:15;;7615:32;7709:3;7694:19;;;7681:33;7663:16;;;7656:59;7777:3;7762:19;;;7749:33;7731:16;;;7724:59;;;;-1:-1:-1;7626:6:1;6917:897;-1:-1:-1;6917:897:1:o;7819:1090::-;7915:6;7968:2;7956:9;7947:7;7943:23;7939:32;7936:2;;;7989:6;7981;7974:22;7936:2;8034:9;8021:23;-1:-1:-1;;;;;8104:2:1;8096:6;8093:14;8090:2;;;8125:6;8117;8110:22;8090:2;8153:22;;;;8209:6;8191:16;;;8187:29;8184:2;;;8234:6;8226;8219:22;8184:2;8265:22;;:::i;:::-;8310:20;8327:2;8310:20;:::i;:::-;8303:5;8296:35;8384:2;8380;8376:11;8363:25;8358:2;8351:5;8347:14;8340:49;8442:2;8438;8434:11;8421:25;8416:2;8409:5;8405:14;8398:49;8479:30;8505:2;8501;8497:11;8479:30;:::i;:::-;8474:2;8467:5;8463:14;8456:54;8564:3;8560:2;8556:12;8543:26;8537:3;8530:5;8526:15;8519:51;8603:31;8629:3;8625:2;8621:12;8603:31;:::i;:::-;8597:3;8590:5;8586:15;8579:56;8689:3;8685:2;8681:12;8668:26;8662:3;8655:5;8651:15;8644:51;8741:3;8737:2;8733:12;8720:26;8771:2;8761:8;8758:16;8755:2;;;8792:6;8784;8777:22;8755:2;8834:44;8870:7;8859:8;8855:2;8851:17;8834:44;:::i;:::-;8828:3;8817:15;;8810:69;-1:-1:-1;8821:5:1;7926:983;-1:-1:-1;;;;;7926:983:1:o;8914:995::-;8999:6;9052:3;9040:9;9031:7;9027:23;9023:33;9020:2;;;9074:6;9066;9059:22;9020:2;9112;9106:9;9154:3;9146:6;9142:16;9224:6;9212:10;9209:22;-1:-1:-1;;;;;9176:10:1;9173:34;9170:62;9167:2;;;9235:18;;:::i;:::-;9271:2;9264:22;9308:23;;9340:29;9308:23;9340:29;:::i;:::-;9393:5;9385:6;9378:21;;9460:2;9449:9;9445:18;9432:32;9427:2;9419:6;9415:15;9408:57;9526:2;9515:9;9511:18;9498:32;9493:2;9485:6;9481:15;9474:57;9583:2;9572:9;9568:18;9555:32;9596;9620:7;9596:32;:::i;:::-;9656:2;9644:15;;9637:32;9731:3;9716:19;;;9703:33;9685:16;;;9678:59;9771:38;9804:3;9789:19;;9771:38;:::i;:::-;9765:3;9757:6;9753:16;9746:64;9872:3;9861:9;9857:19;9844:33;9838:3;9830:6;9826:16;9819:59;9897:6;9887:16;;;9010:899;;;;:::o;9914:1844::-;10029:6;10037;10045;10098:2;10086:9;10077:7;10073:23;10069:32;10066:2;;;10119:6;10111;10104:22;10066:2;10157:9;10151:16;-1:-1:-1;;;;;10227:2:1;10219:6;10216:14;10213:2;;;10248:6;10240;10233:22;10213:2;10276:22;;;;10332:6;10314:16;;;10310:29;10307:2;;;10357:6;10349;10342:22;10307:2;10388:22;;:::i;:::-;10433:31;10461:2;10433:31;:::i;:::-;10426:5;10419:46;10497:41;10534:2;10530;10526:11;10497:41;:::i;:::-;10492:2;10485:5;10481:14;10474:65;10571:41;10608:2;10604;10600:11;10571:41;:::i;:::-;10566:2;10559:5;10555:14;10548:65;10645:41;10682:2;10678;10674:11;10645:41;:::i;:::-;10640:2;10633:5;10629:14;10622:65;10734:3;10730:2;10726:12;10720:19;10714:3;10707:5;10703:15;10696:44;10773:42;10810:3;10806:2;10802:12;10773:42;:::i;:::-;10767:3;10760:5;10756:15;10749:67;10849:41;10885:3;10881:2;10877:12;10849:41;:::i;:::-;10843:3;10836:5;10832:15;10825:66;10930:3;10926:2;10922:12;10916:19;10960:2;10950:8;10947:16;10944:2;;;10981:6;10973;10966:22;10944:2;11023:55;11070:7;11059:8;11055:2;11051:17;11023:55;:::i;:::-;11017:3;11010:5;11006:15;10999:80;;11098:3;11133:41;11170:2;11166;11162:11;11133:41;:::i;:::-;11117:14;;;11110:65;11194:3;11228:11;;;11222:18;11252:16;;;11249:2;;;11286:6;11278;11271:22;11249:2;11327:76;11395:7;11384:8;11380:2;11376:17;11327:76;:::i;:::-;11311:14;;;11304:100;;;;-1:-1:-1;11423:3:1;11464:11;;;11458:18;11442:14;;;11435:42;11315:5;-1:-1:-1;11520:46:1;11562:2;11547:18;;11520:46;:::i;:::-;11510:56;;11612:2;11601:9;11597:18;11591:25;11575:41;;11641:2;11631:8;11628:16;11625:2;;;11662:6;11654;11647:22;11625:2;;11690:62;11744:7;11733:8;11722:9;11718:24;11690:62;:::i;:::-;11680:72;;;10056:1702;;;;;:::o;11763:255::-;11821:6;11874:2;11862:9;11853:7;11849:23;11845:32;11842:2;;;11895:6;11887;11880:22;11842:2;11939:9;11926:23;11958:30;11982:5;11958:30;:::i;12023:259::-;12092:6;12145:2;12133:9;12124:7;12120:23;12116:32;12113:2;;;12166:6;12158;12151:22;12113:2;12203:9;12197:16;12222:30;12246:5;12222:30;:::i;12287:323::-;12354:6;12362;12415:2;12403:9;12394:7;12390:23;12386:32;12383:2;;;12436:6;12428;12421:22;12383:2;12480:9;12467:23;12499:30;12523:5;12499:30;:::i;:::-;12548:5;12600:2;12585:18;;;;12572:32;;-1:-1:-1;;;12373:237:1:o;12615:531::-;12699:6;12707;12715;12723;12776:3;12764:9;12755:7;12751:23;12747:33;12744:2;;;12798:6;12790;12783:22;12744:2;12842:9;12829:23;12861:30;12885:5;12861:30;:::i;:::-;12910:5;-1:-1:-1;12962:2:1;12947:18;;12934:32;;-1:-1:-1;13013:2:1;12998:18;;12985:32;;-1:-1:-1;13069:2:1;13054:18;;13041:32;13082;13041;13082;:::i;:::-;12734:412;;;;-1:-1:-1;12734:412:1;;-1:-1:-1;;12734:412:1:o;13151:681::-;13244:6;13252;13260;13268;13321:3;13309:9;13300:7;13296:23;13292:33;13289:2;;;13343:6;13335;13328:22;13289:2;13387:9;13374:23;13406:30;13430:5;13406:30;:::i;:::-;13455:5;-1:-1:-1;13507:2:1;13492:18;;13479:32;;-1:-1:-1;13563:2:1;13548:18;;13535:32;13576;13535;13576;:::i;:::-;13627:7;-1:-1:-1;13685:2:1;13670:18;;13657:32;-1:-1:-1;;;;;13701:30:1;;13698:2;;;13749:6;13741;13734:22;13698:2;13777:49;13818:7;13809:6;13798:9;13794:22;13777:49;:::i;:::-;13767:59;;;13279:553;;;;;;;:::o;14036:216::-;14105:6;14158:2;14146:9;14137:7;14133:23;14129:32;14126:2;;;14179:6;14171;14164:22;14126:2;14207:39;14236:9;14207:39;:::i;14257:257::-;14325:6;14378:2;14366:9;14357:7;14353:23;14349:32;14346:2;;;14399:6;14391;14384:22;14346:2;14436:9;14430:16;14455:29;14478:5;14455:29;:::i;14519:257::-;14560:3;14598:5;14592:12;14625:6;14620:3;14613:19;14641:63;14697:6;14690:4;14685:3;14681:14;14674:4;14667:5;14663:16;14641:63;:::i;:::-;14758:2;14737:15;-1:-1:-1;;14733:29:1;14724:39;;;;14765:4;14720:50;;14568:208;-1:-1:-1;;14568:208:1:o;14876:274::-;15005:3;15043:6;15037:13;15059:53;15105:6;15100:3;15093:4;15085:6;15081:17;15059:53;:::i;:::-;15128:16;;;;;15013:137;-1:-1:-1;;15013:137:1:o;15155:466::-;15330:3;15368:6;15362:13;15384:53;15430:6;15425:3;15418:4;15410:6;15406:17;15384:53;:::i;:::-;15500:13;;15459:16;;;;15522:57;15500:13;15459:16;15556:4;15544:17;;15522:57;:::i;:::-;15595:20;;15338:283;-1:-1:-1;;;;15338:283:1:o;16511:834::-;16889:3;16884;16880:13;16871:6;16866:3;16862:16;16858:36;16853:3;16846:49;16924:6;16920:1;16915:3;16911:11;16904:27;16961:6;16956:2;16951:3;16947:12;16940:28;16828:3;16996:5;16991:3;16987:15;17054:2;17045:6;17040:3;17036:16;17032:25;17027:2;17022:3;17018:12;17011:47;17088:6;17083:2;17078:3;17074:12;17067:28;17147:2;17138:6;17133:3;17129:16;17125:25;17120:2;17115:3;17111:12;17104:47;;17182:6;17176:3;17171;17167:13;17160:29;17218:6;17212:13;17234:63;17290:6;17284:3;17279;17275:13;17268:4;17260:6;17256:17;17234:63;:::i;:::-;17317:16;;;;17335:3;17313:26;;16836:509;-1:-1:-1;;;;;;;;;16836:509:1:o;18610:314::-;-1:-1:-1;;;;;18785:32:1;;18767:51;;18854:2;18849;18834:18;;18827:30;;;-1:-1:-1;;18874:44:1;;18899:18;;18891:6;18874:44;:::i;19582:217::-;19729:2;19718:9;19711:21;19692:4;19749:44;19789:2;19778:9;19774:18;19766:6;19749:44;:::i;20476:475::-;20699:2;20688:9;20681:21;20662:4;20725:44;20765:2;20754:9;20750:18;20742:6;20725:44;:::i;:::-;20817:9;20809:6;20805:22;20800:2;20789:9;20785:18;20778:50;20845:32;20870:6;20862;20845:32;:::i;:::-;20837:40;;;-1:-1:-1;;;;;20917:6:1;20913:31;20908:2;20897:9;20893:18;20886:59;20671:280;;;;;;:::o;20956:808::-;21285:3;21274:9;21267:22;21248:4;21312:45;21352:3;21341:9;21337:19;21329:6;21312:45;:::i;:::-;21405:9;21397:6;21393:22;21388:2;21377:9;21373:18;21366:50;21433:32;21458:6;21450;21433:32;:::i;:::-;21513:4;21501:17;;;;21496:2;21481:18;;21474:45;-1:-1:-1;;;;;;;21555:31:1;;;;21550:2;21535:18;;21528:59;-1:-1:-1;;;;;21624:32:1;;;;21618:3;21603:19;;21596:61;21706:6;21694:19;21644:3;21673:19;;21666:48;21745:3;21730:19;;;21723:35;21425:40;21257:507;-1:-1:-1;;21257:507:1:o;22804:339::-;23006:2;22988:21;;;23045:2;23025:18;;;23018:30;-1:-1:-1;;;23079:2:1;23064:18;;23057:45;23134:2;23119:18;;22978:165::o;26117:340::-;26319:2;26301:21;;;26358:2;26338:18;;;26331:30;-1:-1:-1;;;26392:2:1;26377:18;;26370:46;26448:2;26433:18;;26291:166::o;27155:336::-;27357:2;27339:21;;;27396:2;27376:18;;;27369:30;-1:-1:-1;;;27430:2:1;27415:18;;27408:42;27482:2;27467:18;;27329:162::o;34129:336::-;34331:2;34313:21;;;34370:2;34350:18;;;34343:30;-1:-1:-1;;;34404:2:1;34389:18;;34382:42;34456:2;34441:18;;34303:162::o;37949:887::-;38152:2;38141:9;38134:21;38210:4;38201:6;38195:13;38191:24;38186:2;38175:9;38171:18;38164:52;38270:2;38262:6;38258:15;38252:22;38247:2;38236:9;38232:18;38225:50;38329:2;38321:6;38317:15;38311:22;38306:2;38295:9;38291:18;38284:50;38399:6;38393:2;38385:6;38381:15;38375:22;38371:35;38365:3;38354:9;38350:19;38343:64;38462:3;38454:6;38450:16;38444:23;38438:3;38427:9;38423:19;38416:52;38115:4;38515:3;38507:6;38503:16;38497:23;38529:52;38576:3;38565:9;38561:19;38547:12;14857:6;14846:18;14834:31;;14824:47;38529:52;;38636:3;38628:6;38624:16;38618:23;38612:3;38601:9;38597:19;38590:52;38691:3;38683:6;38679:16;38673:23;38715:6;38757:2;38752;38741:9;38737:18;38730:30;;38777:53;38825:3;38814:9;38810:19;38794:14;38777:53;:::i;40400:381::-;40609:10;40601:6;40597:23;40586:9;40579:42;40657:2;40652;40641:9;40637:18;40630:30;40560:4;40677:44;40717:2;40706:9;40702:18;40694:6;40677:44;:::i;:::-;40669:52;;40769:4;40761:6;40757:17;40752:2;40741:9;40737:18;40730:45;40569:212;;;;;;:::o;41180:253::-;41252:2;41246:9;41294:4;41282:17;;-1:-1:-1;;;;;41314:34:1;;41350:22;;;41311:62;41308:2;;;41376:18;;:::i;:::-;41412:2;41405:22;41226:207;:::o;41438:255::-;41510:2;41504:9;41552:6;41540:19;;-1:-1:-1;;;;;41574:34:1;;41610:22;;;41571:62;41568:2;;;41636:18;;:::i;41698:255::-;41770:2;41764:9;41812:6;41800:19;;-1:-1:-1;;;;;41834:34:1;;41870:22;;;41831:62;41828:2;;;41896:18;;:::i;41958:275::-;42029:2;42023:9;42094:2;42075:13;;-1:-1:-1;;42071:27:1;42059:40;;-1:-1:-1;;;;;42114:34:1;;42150:22;;;42111:62;42108:2;;;42176:18;;:::i;:::-;42212:2;42205:22;42003:230;;-1:-1:-1;42003:230:1:o;42238:186::-;42286:4;-1:-1:-1;;;;;42311:6:1;42308:30;42305:2;;;42341:18;;:::i;:::-;-1:-1:-1;42407:2:1;42386:15;-1:-1:-1;;42382:29:1;42413:4;42378:40;;42295:129::o;42429:128::-;42469:3;42500:1;42496:6;42493:1;42490:13;42487:2;;;42506:18;;:::i;:::-;-1:-1:-1;42542:9:1;;42477:80::o;42562:217::-;42602:1;42628;42618:2;;-1:-1:-1;;;42653:31:1;;42707:4;42704:1;42697:15;42735:4;42660:1;42725:15;42618:2;-1:-1:-1;42764:9:1;;42608:171::o;42784:422::-;42873:1;42916:5;42873:1;42930:270;42951:7;42941:8;42938:21;42930:270;;;43010:4;43006:1;43002:6;42998:17;42992:4;42989:27;42986:2;;;43019:18;;:::i;:::-;43069:7;43059:8;43055:22;43052:2;;;43089:16;;;;43052:2;43168:22;;;;43128:15;;;;42930:270;;;42934:3;42848:358;;;;;:::o;43211:140::-;43269:5;43298:47;43339:4;43329:8;43325:19;43319:4;43405:5;43435:8;43425:2;;-1:-1:-1;43476:1:1;43490:5;;43425:2;43524:4;43514:2;;-1:-1:-1;43561:1:1;43575:5;;43514:2;43606:4;43624:1;43619:59;;;;43692:1;43687:130;;;;43599:218;;43619:59;43649:1;43640:10;;43663:5;;;43687:130;43724:3;43714:8;43711:17;43708:2;;;43731:18;;:::i;:::-;-1:-1:-1;;43787:1:1;43773:16;;43802:5;;43599:218;;43901:2;43891:8;43888:16;43882:3;43876:4;43873:13;43869:36;43863:2;43853:8;43850:16;43845:2;43839:4;43836:12;43832:35;43829:77;43826:2;;;-1:-1:-1;43938:19:1;;;43970:5;;43826:2;44017:34;44042:8;44036:4;44017:34;:::i;:::-;44087:6;44083:1;44079:6;44075:19;44066:7;44063:32;44060:2;;;44098:18;;:::i;:::-;44136:20;;43415:747;-1:-1:-1;;;43415:747:1:o;44167:168::-;44207:7;44273:1;44269;44265:6;44261:14;44258:1;44255:21;44250:1;44243:9;44236:17;44232:45;44229:2;;;44280:18;;:::i;:::-;-1:-1:-1;44320:9:1;;44219:116::o;44340:125::-;44380:4;44408:1;44405;44402:8;44399:2;;;44413:18;;:::i;:::-;-1:-1:-1;44450:9:1;;44389:76::o;44470:195::-;44508:4;44545;44542:1;44538:12;44577:4;44574:1;44570:12;44602:3;44597;44594:12;44591:2;;;44609:18;;:::i;:::-;44646:13;;;44517:148;-1:-1:-1;;;44517:148:1:o;44670:258::-;44742:1;44752:113;44766:6;44763:1;44760:13;44752:113;;;44842:11;;;44836:18;44823:11;;;44816:39;44788:2;44781:10;44752:113;;;44883:6;44880:1;44877:13;44874:2;;;-1:-1:-1;;44918:1:1;44900:16;;44893:27;44723:205::o;44933:135::-;44972:3;-1:-1:-1;;44993:17:1;;44990:2;;;45013:18;;:::i;:::-;-1:-1:-1;45060:1:1;45049:13;;44980:88::o;45073:127::-;45134:10;45129:3;45125:20;45122:1;45115:31;45165:4;45162:1;45155:15;45189:4;45186:1;45179:15;45205:127;45266:10;45261:3;45257:20;45254:1;45247:31;45297:4;45294:1;45287:15;45321:4;45318:1;45311:15;45337:117;45422:6;45415:5;45411:18;45404:5;45401:29;45391:2;;45444:1;45441;45434:12;45459:121;45544:10;45537:5;45533:22;45526:5;45523:33;45513:2;;45570:1;45567;45560:12;45585:114;45669:4;45662:5;45658:16;45651:5;45648:27;45638:2;;45689:1;45686;45679:12

Swarm Source

ipfs://8627b3787af0c787b8674c918b448bd1c36b4d58319bc081ca717a02912a081c

Block Transaction Gas Used Reward
view all blocks collator

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

Validator Index Block Amount
View All Withdrawals

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

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