MON Price: $0.02141 (-3.41%)

Contract

0xCAd063D9D22c505AcaD0fAb49Ca026e2A3f86c26

Overview

MON Balance

Monad Chain LogoMonad Chain LogoMonad Chain Logo0 MON

MON Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

1 Internal Transaction found.

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
515883352026-01-28 3:37:3213 hrs ago1769571452  Contract Creation0 MON
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BungeeHandler

Compiler Version
v0.8.30+commit.73712a01

Optimization Enabled:
No with 200 runs

Other Settings:
osaka EvmVersion
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.13;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC4626} from "@openzeppelin/contracts/interfaces/IERC4626.sol";
import {IHandler} from "../interfaces/IHandler.sol";
import {IBungeeInbox} from "../interfaces/IBungeeInbox.sol";
import {IBungeeGateway} from "../interfaces/IBungeeGateway.sol";
import {BaseHandlerUpgradeable} from "./base/BaseHandlerUpgradeable.sol";
import {BungeeHashLib} from "../libraries/BungeeHashLib.sol";

import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/// @title BungeeHandler
/// @author Obsidian (obsidiandefi.com)
/// @notice Handler for cross-chain vault deposits via Bungee protocol
contract BungeeHandler is BaseHandlerUpgradeable {
    error AlreadyWithdrawn();
    error InvalidAddress();
    error NativeTransferFailed();

    using SafeERC20 for IERC20;

    event ExecuteOnSourceChain(
        address indexed vault,
        address indexed receiver,
        uint256 indexed destinationChainId,
        uint256 amount
    );
    event MessageReceivedAndDeposited(
        address indexed vault, address indexed asset, address indexed receiver, uint256 assets, uint256 refuelAmount
    );
    event FailedBridgeWithdrawn(bytes32 indexed typedDataHash, address indexed receiver, address token, uint256 amount);
    event DestinationWithdrawal(address indexed receiver, uint256 amount);
    event EmergencyWithdraw(address indexed token, address indexed receiver, uint256 amount);

    constructor(address _hopper) BaseHandlerUpgradeable(_hopper) {}

    // not a constant because we need identical bytecode across chains
    address public bungeeInbox;
    address public bungeeGateway;
    address public bungeeCalldataExecutor;
    address public usdc;
    mapping(bytes32 => bool) public usedTypedDataHash;

    uint256[50] private __gap;

    /// @notice Initialize contract addresses
    /// @param _bungeeInbox Bungee inbox address on this chain
    /// @param _usdc USDC token address on this chain
    function initialize(address _bungeeInbox, address _usdc) external onlyOwner initializer {
        bungeeInbox = _bungeeInbox;
        bungeeGateway = IBungeeInbox(bungeeInbox).BUNGEE_GATEWAY();
        bungeeCalldataExecutor = IBungeeGateway(bungeeGateway).CALLDATA_EXECUTOR();
        usdc = _usdc;
    }

    /// @notice Create a Bungee bridge request on the source chain
    /// @dev data = abi.encode(request)
    /// @param asset Token address being bridged
    /// @param sender Original caller address
    /// @param amount Amount of `asset` to bridge
    /// @param data ABI-encoded `IBungeeInbox.Request`
    function executeOnSourceChain(address asset, address sender, uint256 amount, bytes calldata data) external payable override onlyHopper {
        IBungeeInbox.Request memory request = abi.decode(data, (IBungeeInbox.Request));

        if (request.basicReq.receiver == address(0)) revert InvalidAddress();
        if (request.basicReq.delegate == address(0)) revert InvalidAddress();

        bytes memory destinationPayload = request.destinationPayload;
        require(destinationPayload.length == 128, "Invalid destinationPayload length");

        (,address destinationVault, address receiver,) = abi.decode(destinationPayload, (address, address, address, uint256));
        if (destinationVault == address(0) || receiver != sender) revert InvalidAddress();

        IERC20(asset).safeTransferFrom(msg.sender, address(this), amount);
        IERC20(asset).safeIncreaseAllowance(bungeeInbox, amount);

        IBungeeInbox(bungeeInbox).createRequest{value: msg.value}(request);

        emit ExecuteOnSourceChain(destinationVault, receiver, request.basicReq.destinationChainId, amount);

    }

    /// @notice Withdraw and deposit funds when a bridge request failed on source chain
    /// @param request Original Bungee request
    function withdrawFailedBridgeOnSource(IBungeeInbox.Request calldata request) external {
        (bytes32 requestHash, bytes32 typedDataHash) = BungeeHashLib.createTypedDataHash(request);

        if (usedTypedDataHash[typedDataHash]) revert AlreadyWithdrawn();

        (address originVault, address receiver,,) = abi.decode(request.destinationPayload, (address, address, address, uint256));

        usedTypedDataHash[typedDataHash] = true;

        IBungeeGateway.WithdrawnRequest memory withdrawnRequest = IBungeeGateway(bungeeGateway).withdrawnRequests(requestHash);

        address token;
        uint256 amount;
        if (withdrawnRequest.receiver == address(0)) {
            if (!IBungeeInbox(bungeeInbox).withdrawnInbox(typedDataHash)) {
                IBungeeInbox(bungeeInbox).withdrawFunds(request);
            }
            token = request.basicReq.inputToken;
            amount = request.basicReq.inputAmount;
        } else {
            // Funds already withdrawn to this contract
            token = withdrawnRequest.token;
            amount = withdrawnRequest.amount;
        }

        if (originVault != address(0)) {
            IERC20(token).safeIncreaseAllowance(originVault, amount);
            IERC4626(originVault).deposit(amount, receiver);
        } else {
            IERC20(token).safeTransfer(receiver, amount);
        }

        emit FailedBridgeWithdrawn(typedDataHash, receiver, token, amount);
    }

    /// @notice Bungee callback to deposit bridged assets into the destination vault
    /// @param amounts Token amounts delivered by Bungee
    /// @param tokens Token addresses delivered by Bungee
    /// @param destinationPayload ABI-encoded payload with vault/receiver data
    function executeData(
        bytes32 /*requestHash*/,
        uint256[] calldata amounts,
        address[] calldata tokens,
        bytes memory destinationPayload
    ) external payable {
        require(msg.sender == IBungeeGateway(bungeeGateway).CALLDATA_EXECUTOR(), "Invalid sender");
        require(amounts.length == tokens.length && tokens.length == 1, "Invalid tokens or amounts");

        uint256 amount = amounts[0];
        address outputToken = tokens[0];

        (,address destinationVault, address receiver,) = abi.decode(destinationPayload, (address, address, address, uint256));

        if (destinationVault == address(0) || receiver == address(0)) revert InvalidAddress();

        IERC4626 vaultToken = IERC4626(destinationVault);
        require(vaultToken.asset() == outputToken, "Invalid output token");

        IERC20(outputToken).safeIncreaseAllowance(destinationVault, amount);
        vaultToken.deposit(amount, receiver);

        // handle bungee refuel
        uint256 refuelAmount = address(this).balance;
        if (refuelAmount > 0) {
            (bool success,) = receiver.call{value: refuelAmount}("");
            if (!success) revert NativeTransferFailed();
        }
        emit MessageReceivedAndDeposited(destinationVault, outputToken, receiver, amount, refuelAmount);
    }
    
    // used to withdraw funds from destination chain when CCTP was used
    /// @notice Withdraw a CCTP-based request on destination and forward funds to receiver
    /// @param router Router address required by Bungee gateway
    /// @param request Original Bungee request
    /// @param withdrawRequestData ABI-encoded CCTP message + attestation
    function withdrawRequestOnDestination(
        address router,
        IBungeeInbox.Request calldata request,
        bytes calldata withdrawRequestData // abi.encode(bytes memory cctpMessage, bytes memory cctpMsgAttestation)
    ) external payable {
        // Record USDC balance before
        uint256 balanceBefore = IERC20(usdc).balanceOf(address(this));

        // Call gateway to withdraw (transfers funds to this contract)
        IBungeeGateway(bungeeGateway).withdrawRequestOnDestination{value: msg.value}(
            router,
            request,
            withdrawRequestData
        );

        // Calculate received amount
        uint256 balanceAfter = IERC20(usdc).balanceOf(address(this));
        uint256 receivedAmount = balanceAfter - balanceBefore;

        require(receivedAmount > 0, "no funds received");

        // Transfer to receiver
        IERC20(usdc).safeTransfer(request.basicReq.receiver, receivedAmount);

        emit DestinationWithdrawal(request.basicReq.receiver, receivedAmount);
    }

    /// @notice Emergency withdraw tokens or native currency from this contract
    /// @param token Token address to withdraw (zero for native)
    /// @param amount Amount to withdraw
    /// @param receiver Recipient of the withdrawal
    function emergencyWithdraw(address token, uint256 amount, address receiver) external onlyOwner {

        if (token == address(0)) {
            (bool success,) = receiver.call{value: amount}("");
            if (!success) revert NativeTransferFailed();
        } else {
            IERC20(token).safeTransfer(receiver, amount);
        }

        emit EmergencyWithdraw(token, receiver, amount);
    }

    /// @notice Accept native token transfers (e.g., refuel or bridge callbacks)
    receive() external payable {}
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (interfaces/IERC4626.sol)

pragma solidity >=0.6.2;

import {IERC20} from "../token/ERC20/IERC20.sol";
import {IERC20Metadata} from "../token/ERC20/extensions/IERC20Metadata.sol";

/**
 * @dev Interface of the ERC-4626 "Tokenized Vault Standard", as defined in
 * https://eips.ethereum.org/EIPS/eip-4626[ERC-4626].
 */
interface IERC4626 is IERC20, IERC20Metadata {
    event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares);

    event Withdraw(
        address indexed sender,
        address indexed receiver,
        address indexed owner,
        uint256 assets,
        uint256 shares
    );

    /**
     * @dev Returns the address of the underlying token used for the Vault for accounting, depositing, and withdrawing.
     *
     * - MUST be an ERC-20 token contract.
     * - MUST NOT revert.
     */
    function asset() external view returns (address assetTokenAddress);

    /**
     * @dev Returns the total amount of the underlying asset that is “managed” by Vault.
     *
     * - SHOULD include any compounding that occurs from yield.
     * - MUST be inclusive of any fees that are charged against assets in the Vault.
     * - MUST NOT revert.
     */
    function totalAssets() external view returns (uint256 totalManagedAssets);

    /**
     * @dev Returns the amount of shares that the Vault would exchange for the amount of assets provided, in an ideal
     * scenario where all the conditions are met.
     *
     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.
     * - MUST NOT show any variations depending on the caller.
     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
     * - MUST NOT revert.
     *
     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the
     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and
     * from.
     */
    function convertToShares(uint256 assets) external view returns (uint256 shares);

    /**
     * @dev Returns the amount of assets that the Vault would exchange for the amount of shares provided, in an ideal
     * scenario where all the conditions are met.
     *
     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.
     * - MUST NOT show any variations depending on the caller.
     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
     * - MUST NOT revert.
     *
     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the
     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and
     * from.
     */
    function convertToAssets(uint256 shares) external view returns (uint256 assets);

    /**
     * @dev Returns the maximum amount of the underlying asset that can be deposited into the Vault for the receiver,
     * through a deposit call.
     *
     * - MUST return a limited value if receiver is subject to some deposit limit.
     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of assets that may be deposited.
     * - MUST NOT revert.
     */
    function maxDeposit(address receiver) external view returns (uint256 maxAssets);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given
     * current on-chain conditions.
     *
     * - MUST return as close to and no more than the exact amount of Vault shares that would be minted in a deposit
     *   call in the same transaction. I.e. deposit should return the same or more shares as previewDeposit if called
     *   in the same transaction.
     * - MUST NOT account for deposit limits like those returned from maxDeposit and should always act as though the
     *   deposit would be accepted, regardless if the user has enough tokens approved, etc.
     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToShares and previewDeposit SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by depositing.
     */
    function previewDeposit(uint256 assets) external view returns (uint256 shares);

    /**
     * @dev Deposit `assets` underlying tokens and send the corresponding number of vault shares (`shares`) to `receiver`.
     *
     * - MUST emit the Deposit event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
     *   deposit execution, and are accounted for during deposit.
     * - MUST revert if all of assets cannot be deposited (due to deposit limit being reached, slippage, the user not
     *   approving enough underlying tokens to the Vault contract, etc).
     *
     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
     */
    function deposit(uint256 assets, address receiver) external returns (uint256 shares);

    /**
     * @dev Returns the maximum amount of the Vault shares that can be minted for the receiver, through a mint call.
     * - MUST return a limited value if receiver is subject to some mint limit.
     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of shares that may be minted.
     * - MUST NOT revert.
     */
    function maxMint(address receiver) external view returns (uint256 maxShares);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given
     * current on-chain conditions.
     *
     * - MUST return as close to and no fewer than the exact amount of assets that would be deposited in a mint call
     *   in the same transaction. I.e. mint should return the same or fewer assets as previewMint if called in the
     *   same transaction.
     * - MUST NOT account for mint limits like those returned from maxMint and should always act as though the mint
     *   would be accepted, regardless if the user has enough tokens approved, etc.
     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToAssets and previewMint SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by minting.
     */
    function previewMint(uint256 shares) external view returns (uint256 assets);

    /**
     * @dev Mints exactly `shares` vault shares to `receiver` in exchange for `assets` underlying tokens.
     *
     * - MUST emit the Deposit event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the mint
     *   execution, and are accounted for during mint.
     * - MUST revert if all of shares cannot be minted (due to deposit limit being reached, slippage, the user not
     *   approving enough underlying tokens to the Vault contract, etc).
     *
     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
     */
    function mint(uint256 shares, address receiver) external returns (uint256 assets);

    /**
     * @dev Returns the maximum amount of the underlying asset that can be withdrawn from the owner balance in the
     * Vault, through a withdraw call.
     *
     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.
     * - MUST NOT revert.
     */
    function maxWithdraw(address owner) external view returns (uint256 maxAssets);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block,
     * given current on-chain conditions.
     *
     * - MUST return as close to and no fewer than the exact amount of Vault shares that would be burned in a withdraw
     *   call in the same transaction. I.e. withdraw should return the same or fewer shares as previewWithdraw if
     *   called
     *   in the same transaction.
     * - MUST NOT account for withdrawal limits like those returned from maxWithdraw and should always act as though
     *   the withdrawal would be accepted, regardless if the user has enough shares, etc.
     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToShares and previewWithdraw SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by depositing.
     */
    function previewWithdraw(uint256 assets) external view returns (uint256 shares);

    /**
     * @dev Burns shares from owner and sends exactly assets of underlying tokens to receiver.
     *
     * - MUST emit the Withdraw event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
     *   withdraw execution, and are accounted for during withdraw.
     * - MUST revert if all of assets cannot be withdrawn (due to withdrawal limit being reached, slippage, the owner
     *   not having enough shares, etc).
     *
     * Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
     * Those methods should be performed separately.
     */
    function withdraw(uint256 assets, address receiver, address owner) external returns (uint256 shares);

    /**
     * @dev Returns the maximum amount of Vault shares that can be redeemed from the owner balance in the Vault,
     * through a redeem call.
     *
     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.
     * - MUST return balanceOf(owner) if owner is not subject to any withdrawal limit or timelock.
     * - MUST NOT revert.
     */
    function maxRedeem(address owner) external view returns (uint256 maxShares);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their redemption at the current block,
     * given current on-chain conditions.
     *
     * - MUST return as close to and no more than the exact amount of assets that would be withdrawn in a redeem call
     *   in the same transaction. I.e. redeem should return the same or more assets as previewRedeem if called in the
     *   same transaction.
     * - MUST NOT account for redemption limits like those returned from maxRedeem and should always act as though the
     *   redemption would be accepted, regardless if the user has enough shares, etc.
     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToAssets and previewRedeem SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by redeeming.
     */
    function previewRedeem(uint256 shares) external view returns (uint256 assets);

    /**
     * @dev Burns exactly shares from owner and sends assets of underlying tokens to receiver.
     *
     * - MUST emit the Withdraw event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
     *   redeem execution, and are accounted for during redeem.
     * - MUST revert if all of shares cannot be redeemed (due to withdrawal limit being reached, slippage, the owner
     *   not having enough shares, etc).
     *
     * NOTE: some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
     * Those methods should be performed separately.
     */
    function redeem(uint256 shares, address receiver, address owner) external returns (uint256 assets);
}

// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.13;

interface IHandler {
    function executeOnSourceChain(address asset, address sender, uint256 amount, bytes calldata data) external payable;
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IBungeeInbox {
    function BUNGEE_GATEWAY() external view returns (address);

    struct BasicRequest {
        uint256 originChainId;
        uint256 destinationChainId;
        uint256 deadline;
        uint256 nonce;
        address sender;
        address receiver;
        address delegate;
        address bungeeGateway;
        uint32 switchboardId;
        address inputToken;
        uint256 inputAmount;
        address outputToken;
        uint256 minOutputAmount;
        uint256 refuelAmount;
    }

    struct Request {
        BasicRequest basicReq;
        address swapOutputToken;
        uint256 minSwapOutput;
        bytes32 metadata;
        bytes affiliateFees;
        uint256 minDestGas;
        bytes destinationPayload;
        address exclusiveTransmitter;
    }

    function createRequest(Request calldata singleOutputRequest) external payable;

    function withdrawnInbox(bytes32 typedDataHash) external view returns (bool);

    function withdrawFunds(Request calldata request) external;
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IBungeeInbox} from "./IBungeeInbox.sol";

interface IBungeeGateway {
    function CALLDATA_EXECUTOR() external view returns (address);

    struct WithdrawnRequest {
        address token;
        uint256 amount;
        address receiver;
    }

    function withdrawnRequests(bytes32 requestHash) external view returns (WithdrawnRequest memory);

    function withdrawRequestOnDestination(
        address router,
        IBungeeInbox.Request calldata request,
        bytes calldata withdrawRequestData
    ) external payable;
}

File 7 of 23 : BaseHandlerUpgradeable.sol
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.13;

import {IHandler} from "../../interfaces/IHandler.sol";
import {VaultHopper} from "../../VaultHopper.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Initializable} from "@openzeppelin/contracts/proxy/utils/Initializable.sol";

abstract contract BaseHandlerUpgradeable is IHandler, Initializable {

    error Unauthorized();
    error OnlyHopper();

    using SafeERC20 for IERC20;

    VaultHopper public immutable hopper;
    uint256 internal constant BPS_DENOMINATOR = 10000;

    constructor(address _hopper) {
        hopper = VaultHopper(_hopper);
        _disableInitializers();
    }

    modifier onlyOwner() {
        if (msg.sender != hopper.owner()) revert Unauthorized();
        _;
    }

    modifier onlyHopper() {
        if (msg.sender != address(hopper)) revert OnlyHopper();
        _;
    }
}

// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.13;

import {IBungeeInbox} from "../interfaces/IBungeeInbox.sol";
import {ISignatureTransfer} from "permit2/src/interfaces/ISignatureTransfer.sol";
import {IPermit2} from "permit2/src/interfaces/IPermit2.sol";

/// @title BungeeHashLib
/// @notice Library for Bungee protocol hashing operations
library BungeeHashLib {
    // ============ BasicRequest Constants ============

    bytes internal constant BASIC_REQUEST_TYPE =
        abi.encodePacked(
            "BasicRequest(",
            "uint256 originChainId,",
            "uint256 destinationChainId,",
            "uint256 deadline,",
            "uint256 nonce,",
            "address sender,",
            "address receiver,",
            "address delegate,",
            "address bungeeGateway,",
            "uint32 switchboardId,",
            "address inputToken,",
            "uint256 inputAmount,",
            "address outputToken,",
            "uint256 minOutputAmount,"
            "uint256 refuelAmount)"
        );
    bytes32 internal constant BASIC_REQUEST_TYPE_HASH = keccak256(BASIC_REQUEST_TYPE);

    // ============ Request Constants ============

    // REQUEST TYPE encode packed
    bytes internal constant REQUEST_TYPE =
        abi.encodePacked(
            "Request(",
            "BasicRequest basicReq,",
            "address swapOutputToken,",
            "uint256 minSwapOutput,",
            "bytes32 metadata,",
            "bytes affiliateFees,",
            "uint256 minDestGas,",
            "bytes destinationPayload,",
            "address exclusiveTransmitter)"
        );

    // BUNGEE_REQUEST_TYPE
    bytes internal constant BUNGEE_REQUEST_TYPE = abi.encodePacked(REQUEST_TYPE, BASIC_REQUEST_TYPE);

    // Keccak Hash of BUNGEE_REQUEST_TYPE
    bytes32 internal constant BUNGEE_REQUEST_TYPE_HASH = keccak256(BUNGEE_REQUEST_TYPE);

    // Permit 2 Witness Order Type.
    string internal constant PERMIT2_ORDER_TYPE =
        string(
            abi.encodePacked(
                "Request witness)",
                abi.encodePacked(BASIC_REQUEST_TYPE, REQUEST_TYPE),
                TOKEN_PERMISSIONS_TYPE
            )
        );

    // ============ Permit2 Constants ============

    address internal constant PERMIT2 = 0x000000000022D473030F116dDEE9F6B43aC78BA3;

    string internal constant TOKEN_PERMISSIONS_TYPE = "TokenPermissions(address token,uint256 amount)";

    string public constant _PERMIT_TRANSFER_FROM_WITNESS_TYPEHASH_STUB =
        "PermitWitnessTransferFrom(TokenPermissions permitted,address spender,uint256 nonce,uint256 deadline,";

    bytes32 public constant _TOKEN_PERMISSIONS_TYPEHASH = keccak256("TokenPermissions(address token,uint256 amount)");

    // ============ BasicRequest Functions ============

    /// @notice Hash of BasicRequest struct on the origin chain
    function originHash(IBungeeInbox.BasicRequest memory basicReq) internal view returns (bytes32) {
        return
            keccak256(
                abi.encodePacked(
                    BASIC_REQUEST_TYPE_HASH,
                    abi.encode(
                        block.chainid,
                        basicReq.destinationChainId,
                        basicReq.deadline,
                        basicReq.nonce,
                        basicReq.sender,
                        basicReq.receiver,
                        basicReq.delegate,
                        basicReq.bungeeGateway,
                        basicReq.switchboardId,
                        basicReq.inputToken,
                        basicReq.inputAmount,
                        basicReq.outputToken,
                        basicReq.minOutputAmount,
                        basicReq.refuelAmount
                    )
                )
            );
    }

    // ============ Request Functions ============

    /// @notice Hash of request on the origin chain
    function hashOriginRequest(IBungeeInbox.Request memory request) internal view returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    BUNGEE_REQUEST_TYPE_HASH,
                    originHash(request.basicReq),
                    request.swapOutputToken,
                    request.minSwapOutput,
                    request.metadata,
                    keccak256(request.affiliateFees),
                    request.minDestGas,
                    keccak256(request.destinationPayload),
                    request.exclusiveTransmitter
                )
            );
    }

    // ============ Permit2 Helper Functions ============

    function returnHashWithWitness(
        address token,
        uint256 amount,
        uint256 nonce,
        uint256 deadline,
        bytes32 commandHash,
        string memory witnessTypeString,
        address bungeeGateway
    ) internal pure returns (bytes32) {
        ISignatureTransfer.TokenPermissions memory tokenPermissions = ISignatureTransfer.TokenPermissions(
            token,
            amount
        );
        ISignatureTransfer.PermitTransferFrom memory permit = ISignatureTransfer.PermitTransferFrom(
            tokenPermissions,
            nonce,
            deadline
        );
        return hashWithWitness(permit, commandHash, witnessTypeString, bungeeGateway);
    }

    function hashWithWitness(
        ISignatureTransfer.PermitTransferFrom memory permit,
        bytes32 witness,
        string memory witnessTypeString,
        address bungeeGateway
    ) internal pure returns (bytes32) {
        bytes32 typeHash = keccak256(abi.encodePacked(_PERMIT_TRANSFER_FROM_WITNESS_TYPEHASH_STUB, witnessTypeString));

        bytes32 tokenPermissionsHash = _hashTokenPermissions(permit.permitted);
        return
            keccak256(
                abi.encode(typeHash, tokenPermissionsHash, bungeeGateway, permit.nonce, permit.deadline, witness)
            );
    }

    function _hashTokenPermissions(
        ISignatureTransfer.TokenPermissions memory permitted
    ) private pure returns (bytes32) {
        return keccak256(abi.encode(_TOKEN_PERMISSIONS_TYPEHASH, permitted));
    }

    /// @notice Creates an EIP-712 typed data hash
    function _hashTypedData(bytes32 dataHash) internal view returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", IPermit2(PERMIT2).DOMAIN_SEPARATOR(), dataHash));
    }

    function createTypedDataHash(
        IBungeeInbox.Request memory request
    ) internal view returns (bytes32 requestHash, bytes32 typedDataHash) {
        requestHash = hashOriginRequest(request);
        bytes32 witnessHash = returnHashWithWitness(
            request.basicReq.inputToken,
            request.basicReq.inputAmount,
            request.basicReq.nonce,
            request.basicReq.deadline,
            requestHash,
            PERMIT2_ORDER_TYPE,
            request.basicReq.bungeeGateway
        );
        typedDataHash = _hashTypedData(witnessHash);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC-20 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 {
    /**
     * @dev An operation with an ERC-20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        if (!_safeTransfer(token, to, value, true)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        if (!_safeTransferFrom(token, from, to, value, true)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _safeTransfer(token, to, value, false);
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _safeTransferFrom(token, from, to, value, false);
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        if (!_safeApprove(token, spender, value, false)) {
            if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));
            if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity `token.transfer(to, value)` call, 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 to The recipient of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {
        bytes4 selector = IERC20.transfer.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(to, shr(96, not(0))))
            mstore(0x24, value)
            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
        }
    }

    /**
     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, 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 from The sender of the tokens
     * @param to The recipient of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value,
        bool bubble
    ) private returns (bool success) {
        bytes4 selector = IERC20.transferFrom.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(from, shr(96, not(0))))
            mstore(0x24, and(to, shr(96, not(0))))
            mstore(0x44, value)
            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
            mstore(0x60, 0)
        }
    }

    /**
     * @dev Imitates a Solidity `token.approve(spender, value)` call, 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 spender The spender of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {
        bytes4 selector = IERC20.approve.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(spender, shr(96, not(0))))
            mstore(0x24, value)
            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity >=0.6.2;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.13;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC20Permit} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol";
import {IERC4626} from "@openzeppelin/contracts/interfaces/IERC4626.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IHandler} from "./interfaces/IHandler.sol";

/// @title VaultHopper
/// @author Obsidian (obsidiandefi.com)
/// @notice Core entrypoint for hops via handler contracts
contract VaultHopper is Ownable {
    
    error InvalidAddress();
    error HandlerNotWhitelisted();
    error InvalidParams();

    using SafeERC20 for IERC20;

     // 10 USDC max fee
    uint256 public constant MAX_PROTOCOL_FEE_USDC = 10e6;

    uint256 public constant VERSION = 1;

    event HandlerSet(address indexed handler, bool status);
    event FeeRecipientSet(address feeRecipient);
    event ExecutedWithHandler(
        address indexed sender,
        address indexed vault,
        address indexed handler,
        address asset,
        uint256 shares,
        uint256 assets
    );

    mapping(address => bool) public whitelistedHandlers;

    address public feeRecipient;

    constructor(address _owner) Ownable(_owner) {}

    /// @notice Add or remove a handler from the whitelist
    /// @param handler Handler contract address
    /// @param status True to whitelist, false to remove
    function setHandler(address handler, bool status) external onlyOwner {
        if (handler == address(0)) revert InvalidAddress();
        whitelistedHandlers[handler] = status;
        emit HandlerSet(handler, status);
    }

    /// @notice Set the recipient of protocol fees
    /// @param _feeRecipient Address that will receive protocol fees
    function setFeeRecipient(address _feeRecipient) external onlyOwner {
        feeRecipient = _feeRecipient;
        emit FeeRecipientSet(_feeRecipient);
    }


    //   - Use `assetsToWithdraw` > 0 to withdraw an exact amount of assets (e.g., withdraw exactly 10k USDC)
    /// @notice Redeem or withdraw from a vault and route assets via a handler or direct deposit
    /// @dev Exactly one of `shares` or `assetsToWithdraw` must be non-zero
    /// @param startToken ERC4626 vault token address or asset token address if `isVault` is false
    /// @param isVault True if `startToken` is an ERC4626 vault token, false if it is the asset token
    /// @param shares Number of shares to redeem (set to 0 when using `assetsToWithdraw`)
    /// @param assetsToWithdraw Exact asset amount to withdraw (set to 0 when using `shares`)
    /// @param handler Handler contract to use for cross-chain routing (zero for same-chain direct deposit)
    /// @param handlerData ABI-encoded handler parameters (format depends on handler)
    /// @return assets Amount of assets obtained on the source chain
    function executeWithHandler(
        address startToken,
        bool isVault,
        uint256 shares,
        uint256 assetsToWithdraw,
        address handler,
        bytes calldata handlerData
    )
        public
        payable
        returns (uint256 assets)
    {
        // handlerData format: 
        // For Same chain, same asset: handlerData is abi.encode(toVault, receiver)
        // For Same chain, different asset: handlerData is abi.encode(toVault, receiver, asset)
        // For CCTP: handlerData is abi.encode(destinationDomain, destinationCaller, maxFee, minFinalityThreshold, hookData, sourceSwapHandler, sourceSwapData)
        //   - hookData is abi.encode(vault, receiver, maxRelayerFee, protocolFee, destSwapHandler, outputToken, minAmountOut)
        // For Bungee: handlerData is abi.encode(request)

        if (startToken == address(0)) revert InvalidAddress();
        if ((shares == 0) == (assetsToWithdraw == 0)) revert InvalidParams();

        IERC20 asset;
        if (isVault) {
            IERC4626 vaultToken = IERC4626(startToken);
            asset = IERC20(vaultToken.asset());

            uint256 balanceBefore = asset.balanceOf(address(this));

            if (shares > 0) {
                assets = vaultToken.redeem(shares, address(this), msg.sender);

                uint256 balanceAfter = asset.balanceOf(address(this));

                require(balanceAfter - balanceBefore == assets, "Invalid vault");
            } else {
                vaultToken.withdraw(assetsToWithdraw, address(this), msg.sender);
                assets = assetsToWithdraw;

                uint256 balanceAfter = asset.balanceOf(address(this));

                require(balanceAfter - balanceBefore == assets, "Invalid vault");
            }
        }
        else {
            asset = IERC20(startToken);
            asset.safeTransferFrom(msg.sender, address(this), assetsToWithdraw);
            assets = assetsToWithdraw;
        }

        if (handler == address(0)) {
            // Same chain, same asset: deposit directly into destination vault
            (address toVault, address receiver) = abi.decode(handlerData, (address, address));
            asset.safeIncreaseAllowance(toVault, assets);
            IERC4626(toVault).deposit(assets, receiver);
        } else {
            if (!whitelistedHandlers[handler]) revert HandlerNotWhitelisted();
            asset.safeIncreaseAllowance(handler, assets);
            IHandler(handler).executeOnSourceChain{value: msg.value}(address(asset), msg.sender, assets, handlerData);
        }

        emit ExecutedWithHandler(msg.sender, startToken, handler, address(asset), shares, assets);
    }

    /// @notice Permit token spend and then execute routing in one call
    /// @dev Uses EIP-2612 permit when supported by `startToken` and falls back silently if it fails.
    /// @param startToken ERC4626 vault token address or asset token address if `isVault` is false
    /// @param isVault True if `startToken` is an ERC4626 vault token, false if it is the asset token
    /// @param shares Number of shares to redeem (set to 0 when using `assetsToWithdraw`)
    /// @param assetsToWithdraw Exact asset amount to withdraw (set to 0 when using `shares`)
    /// @param handler Handler contract to use for cross-chain routing (zero for same-chain direct deposit)
    /// @param handlerData ABI-encoded handler parameters (format depends on handler)
    /// @param deadline Permit deadline timestamp
    /// @param v Permit signature v
    /// @param r Permit signature r
    /// @param s Permit signature s
    /// @return assets Amount of assets obtained on the source chain
    function permitAndExecuteWithHandler(
        address startToken,
        bool isVault,
        uint256 shares,
        uint256 assetsToWithdraw,
        address handler,
        bytes calldata handlerData,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
        external
        payable
        returns (uint256 assets)
    {
        uint256 permitAmount = isVault ? shares : assetsToWithdraw;

        if (assetsToWithdraw > 0) {
            shares = 0;
        }

        try IERC20Permit(startToken).permit(
            msg.sender,
            address(this),
            permitAmount,
            deadline,
            v,
            r,
            s
        ) {} catch {}

        return executeWithHandler(
            startToken,
            isVault,
            shares,
            assetsToWithdraw,
            handler,
            handlerData
        );
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.20;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Storage of the initializable contract.
     *
     * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
     * when using with upgradeable contracts.
     *
     * @custom:storage-location erc7201:openzeppelin.storage.Initializable
     */
    struct InitializableStorage {
        /**
         * @dev Indicates that the contract has been initialized.
         */
        uint64 _initialized;
        /**
         * @dev Indicates that the contract is in the process of being initialized.
         */
        bool _initializing;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;

    /**
     * @dev The contract is already initialized.
     */
    error InvalidInitialization();

    /**
     * @dev The contract is not initializing.
     */
    error NotInitializing();

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint64 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
     * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
     * production.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        // Cache values to avoid duplicated sloads
        bool isTopLevelCall = !$._initializing;
        uint64 initialized = $._initialized;

        // Allowed calls:
        // - initialSetup: the contract is not in the initializing state and no previous version was
        //                 initialized
        // - construction: the contract is initialized at version 1 (no reinitialization) and the
        //                 current contract is just being deployed
        bool initialSetup = initialized == 0 && isTopLevelCall;
        bool construction = initialized == 1 && address(this).code.length == 0;

        if (!initialSetup && !construction) {
            revert InvalidInitialization();
        }
        $._initialized = 1;
        if (isTopLevelCall) {
            $._initializing = true;
        }
        _;
        if (isTopLevelCall) {
            $._initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint64 version) {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing || $._initialized >= version) {
            revert InvalidInitialization();
        }
        $._initialized = version;
        $._initializing = true;
        _;
        $._initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        _checkInitializing();
        _;
    }

    /**
     * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
     */
    function _checkInitializing() internal view virtual {
        if (!_isInitializing()) {
            revert NotInitializing();
        }
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing) {
            revert InvalidInitialization();
        }
        if ($._initialized != type(uint64).max) {
            $._initialized = type(uint64).max;
            emit Initialized(type(uint64).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint64) {
        return _getInitializableStorage()._initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _getInitializableStorage()._initializing;
    }

    /**
     * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.
     *
     * NOTE: Consider following the ERC-7201 formula to derive storage locations.
     */
    function _initializableStorageSlot() internal pure virtual returns (bytes32) {
        return INITIALIZABLE_STORAGE;
    }

    /**
     * @dev Returns a pointer to the storage namespace.
     */
    // solhint-disable-next-line var-name-mixedcase
    function _getInitializableStorage() private pure returns (InitializableStorage storage $) {
        bytes32 slot = _initializableStorageSlot();
        assembly {
            $.slot := slot
        }
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IEIP712} from "./IEIP712.sol";

/// @title SignatureTransfer
/// @notice Handles ERC20 token transfers through signature based actions
/// @dev Requires user's token approval on the Permit2 contract
interface ISignatureTransfer is IEIP712 {
    /// @notice Thrown when the requested amount for a transfer is larger than the permissioned amount
    /// @param maxAmount The maximum amount a spender can request to transfer
    error InvalidAmount(uint256 maxAmount);

    /// @notice Thrown when the number of tokens permissioned to a spender does not match the number of tokens being transferred
    /// @dev If the spender does not need to transfer the number of tokens permitted, the spender can request amount 0 to be transferred
    error LengthMismatch();

    /// @notice Emits an event when the owner successfully invalidates an unordered nonce.
    event UnorderedNonceInvalidation(address indexed owner, uint256 word, uint256 mask);

    /// @notice The token and amount details for a transfer signed in the permit transfer signature
    struct TokenPermissions {
        // ERC20 token address
        address token;
        // the maximum amount that can be spent
        uint256 amount;
    }

    /// @notice The signed permit message for a single token transfer
    struct PermitTransferFrom {
        TokenPermissions permitted;
        // a unique value for every token owner's signature to prevent signature replays
        uint256 nonce;
        // deadline on the permit signature
        uint256 deadline;
    }

    /// @notice Specifies the recipient address and amount for batched transfers.
    /// @dev Recipients and amounts correspond to the index of the signed token permissions array.
    /// @dev Reverts if the requested amount is greater than the permitted signed amount.
    struct SignatureTransferDetails {
        // recipient address
        address to;
        // spender requested amount
        uint256 requestedAmount;
    }

    /// @notice Used to reconstruct the signed permit message for multiple token transfers
    /// @dev Do not need to pass in spender address as it is required that it is msg.sender
    /// @dev Note that a user still signs over a spender address
    struct PermitBatchTransferFrom {
        // the tokens and corresponding amounts permitted for a transfer
        TokenPermissions[] permitted;
        // a unique value for every token owner's signature to prevent signature replays
        uint256 nonce;
        // deadline on the permit signature
        uint256 deadline;
    }

    /// @notice A map from token owner address and a caller specified word index to a bitmap. Used to set bits in the bitmap to prevent against signature replay protection
    /// @dev Uses unordered nonces so that permit messages do not need to be spent in a certain order
    /// @dev The mapping is indexed first by the token owner, then by an index specified in the nonce
    /// @dev It returns a uint256 bitmap
    /// @dev The index, or wordPosition is capped at type(uint248).max
    function nonceBitmap(address, uint256) external view returns (uint256);

    /// @notice Transfers a token using a signed permit message
    /// @dev Reverts if the requested amount is greater than the permitted signed amount
    /// @param permit The permit data signed over by the owner
    /// @param owner The owner of the tokens to transfer
    /// @param transferDetails The spender's requested transfer details for the permitted token
    /// @param signature The signature to verify
    function permitTransferFrom(
        PermitTransferFrom memory permit,
        SignatureTransferDetails calldata transferDetails,
        address owner,
        bytes calldata signature
    ) external;

    /// @notice Transfers a token using a signed permit message
    /// @notice Includes extra data provided by the caller to verify signature over
    /// @dev The witness type string must follow EIP712 ordering of nested structs and must include the TokenPermissions type definition
    /// @dev Reverts if the requested amount is greater than the permitted signed amount
    /// @param permit The permit data signed over by the owner
    /// @param owner The owner of the tokens to transfer
    /// @param transferDetails The spender's requested transfer details for the permitted token
    /// @param witness Extra data to include when checking the user signature
    /// @param witnessTypeString The EIP-712 type definition for remaining string stub of the typehash
    /// @param signature The signature to verify
    function permitWitnessTransferFrom(
        PermitTransferFrom memory permit,
        SignatureTransferDetails calldata transferDetails,
        address owner,
        bytes32 witness,
        string calldata witnessTypeString,
        bytes calldata signature
    ) external;

    /// @notice Transfers multiple tokens using a signed permit message
    /// @param permit The permit data signed over by the owner
    /// @param owner The owner of the tokens to transfer
    /// @param transferDetails Specifies the recipient and requested amount for the token transfer
    /// @param signature The signature to verify
    function permitTransferFrom(
        PermitBatchTransferFrom memory permit,
        SignatureTransferDetails[] calldata transferDetails,
        address owner,
        bytes calldata signature
    ) external;

    /// @notice Transfers multiple tokens using a signed permit message
    /// @dev The witness type string must follow EIP712 ordering of nested structs and must include the TokenPermissions type definition
    /// @notice Includes extra data provided by the caller to verify signature over
    /// @param permit The permit data signed over by the owner
    /// @param owner The owner of the tokens to transfer
    /// @param transferDetails Specifies the recipient and requested amount for the token transfer
    /// @param witness Extra data to include when checking the user signature
    /// @param witnessTypeString The EIP-712 type definition for remaining string stub of the typehash
    /// @param signature The signature to verify
    function permitWitnessTransferFrom(
        PermitBatchTransferFrom memory permit,
        SignatureTransferDetails[] calldata transferDetails,
        address owner,
        bytes32 witness,
        string calldata witnessTypeString,
        bytes calldata signature
    ) external;

    /// @notice Invalidates the bits specified in mask for the bitmap at the word position
    /// @dev The wordPos is maxed at type(uint248).max
    /// @param wordPos A number to index the nonceBitmap at
    /// @param mask A bitmap masked against msg.sender's current bitmap at the word position
    function invalidateUnorderedNonces(uint256 wordPos, uint256 mask) external;
}

File 14 of 23 : IPermit2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {ISignatureTransfer} from "./ISignatureTransfer.sol";
import {IAllowanceTransfer} from "./IAllowanceTransfer.sol";

/// @notice Permit2 handles signature-based transfers in SignatureTransfer and allowance-based transfers in AllowanceTransfer.
/// @dev Users must approve Permit2 before calling any of the transfer functions.
interface IPermit2 is ISignatureTransfer, IAllowanceTransfer {
// IPermit2 unifies the two interfaces so users have maximal flexibility with their approval.
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)

pragma solidity >=0.6.2;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[ERC-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC-20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also applies here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IEIP712 {
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IEIP712} from "./IEIP712.sol";

/// @title AllowanceTransfer
/// @notice Handles ERC20 token permissions through signature based allowance setting and ERC20 token transfers by checking allowed amounts
/// @dev Requires user's token approval on the Permit2 contract
interface IAllowanceTransfer is IEIP712 {
    /// @notice Thrown when an allowance on a token has expired.
    /// @param deadline The timestamp at which the allowed amount is no longer valid
    error AllowanceExpired(uint256 deadline);

    /// @notice Thrown when an allowance on a token has been depleted.
    /// @param amount The maximum amount allowed
    error InsufficientAllowance(uint256 amount);

    /// @notice Thrown when too many nonces are invalidated.
    error ExcessiveInvalidation();

    /// @notice Emits an event when the owner successfully invalidates an ordered nonce.
    event NonceInvalidation(
        address indexed owner, address indexed token, address indexed spender, uint48 newNonce, uint48 oldNonce
    );

    /// @notice Emits an event when the owner successfully sets permissions on a token for the spender.
    event Approval(
        address indexed owner, address indexed token, address indexed spender, uint160 amount, uint48 expiration
    );

    /// @notice Emits an event when the owner successfully sets permissions using a permit signature on a token for the spender.
    event Permit(
        address indexed owner,
        address indexed token,
        address indexed spender,
        uint160 amount,
        uint48 expiration,
        uint48 nonce
    );

    /// @notice Emits an event when the owner sets the allowance back to 0 with the lockdown function.
    event Lockdown(address indexed owner, address token, address spender);

    /// @notice The permit data for a token
    struct PermitDetails {
        // ERC20 token address
        address token;
        // the maximum amount allowed to spend
        uint160 amount;
        // timestamp at which a spender's token allowances become invalid
        uint48 expiration;
        // an incrementing value indexed per owner,token,and spender for each signature
        uint48 nonce;
    }

    /// @notice The permit message signed for a single token allowance
    struct PermitSingle {
        // the permit data for a single token alownce
        PermitDetails details;
        // address permissioned on the allowed tokens
        address spender;
        // deadline on the permit signature
        uint256 sigDeadline;
    }

    /// @notice The permit message signed for multiple token allowances
    struct PermitBatch {
        // the permit data for multiple token allowances
        PermitDetails[] details;
        // address permissioned on the allowed tokens
        address spender;
        // deadline on the permit signature
        uint256 sigDeadline;
    }

    /// @notice The saved permissions
    /// @dev This info is saved per owner, per token, per spender and all signed over in the permit message
    /// @dev Setting amount to type(uint160).max sets an unlimited approval
    struct PackedAllowance {
        // amount allowed
        uint160 amount;
        // permission expiry
        uint48 expiration;
        // an incrementing value indexed per owner,token,and spender for each signature
        uint48 nonce;
    }

    /// @notice A token spender pair.
    struct TokenSpenderPair {
        // the token the spender is approved
        address token;
        // the spender address
        address spender;
    }

    /// @notice Details for a token transfer.
    struct AllowanceTransferDetails {
        // the owner of the token
        address from;
        // the recipient of the token
        address to;
        // the amount of the token
        uint160 amount;
        // the token to be transferred
        address token;
    }

    /// @notice A mapping from owner address to token address to spender address to PackedAllowance struct, which contains details and conditions of the approval.
    /// @notice The mapping is indexed in the above order see: allowance[ownerAddress][tokenAddress][spenderAddress]
    /// @dev The packed slot holds the allowed amount, expiration at which the allowed amount is no longer valid, and current nonce thats updated on any signature based approvals.
    function allowance(address user, address token, address spender)
        external
        view
        returns (uint160 amount, uint48 expiration, uint48 nonce);

    /// @notice Approves the spender to use up to amount of the specified token up until the expiration
    /// @param token The token to approve
    /// @param spender The spender address to approve
    /// @param amount The approved amount of the token
    /// @param expiration The timestamp at which the approval is no longer valid
    /// @dev The packed allowance also holds a nonce, which will stay unchanged in approve
    /// @dev Setting amount to type(uint160).max sets an unlimited approval
    function approve(address token, address spender, uint160 amount, uint48 expiration) external;

    /// @notice Permit a spender to a given amount of the owners token via the owner's EIP-712 signature
    /// @dev May fail if the owner's nonce was invalidated in-flight by invalidateNonce
    /// @param owner The owner of the tokens being approved
    /// @param permitSingle Data signed over by the owner specifying the terms of approval
    /// @param signature The owner's signature over the permit data
    function permit(address owner, PermitSingle memory permitSingle, bytes calldata signature) external;

    /// @notice Permit a spender to the signed amounts of the owners tokens via the owner's EIP-712 signature
    /// @dev May fail if the owner's nonce was invalidated in-flight by invalidateNonce
    /// @param owner The owner of the tokens being approved
    /// @param permitBatch Data signed over by the owner specifying the terms of approval
    /// @param signature The owner's signature over the permit data
    function permit(address owner, PermitBatch memory permitBatch, bytes calldata signature) external;

    /// @notice Transfer approved tokens from one address to another
    /// @param from The address to transfer from
    /// @param to The address of the recipient
    /// @param amount The amount of the token to transfer
    /// @param token The token address to transfer
    /// @dev Requires the from address to have approved at least the desired amount
    /// of tokens to msg.sender.
    function transferFrom(address from, address to, uint160 amount, address token) external;

    /// @notice Transfer approved tokens in a batch
    /// @param transferDetails Array of owners, recipients, amounts, and tokens for the transfers
    /// @dev Requires the from addresses to have approved at least the desired amount
    /// of tokens to msg.sender.
    function transferFrom(AllowanceTransferDetails[] calldata transferDetails) external;

    /// @notice Enables performing a "lockdown" of the sender's Permit2 identity
    /// by batch revoking approvals
    /// @param approvals Array of approvals to revoke.
    function lockdown(TokenSpenderPair[] calldata approvals) external;

    /// @notice Invalidate nonces for a given (token, spender) pair
    /// @param token The token to invalidate nonces for
    /// @param spender The spender to invalidate nonces for
    /// @param newNonce The new nonce to set. Invalidates all nonces less than it.
    /// @dev Can't invalidate more than 2**16 nonces per transaction.
    function invalidateNonces(address token, address spender, uint48 newNonce) external;
}

File 20 of 23 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)

pragma solidity >=0.4.16;

import {IERC20} from "../token/ERC20/IERC20.sol";

File 21 of 23 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)

pragma solidity >=0.4.16;

import {IERC165} from "../utils/introspection/IERC165.sol";

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

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

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "permit2/=lib/permit2/",
    "ds-test/=lib/permit2/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-gas-snapshot/=lib/permit2/lib/forge-gas-snapshot/src/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solmate/=lib/permit2/lib/solmate/"
  ],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "none",
    "appendCBOR": false
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "osaka",
  "viaIR": true
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_hopper","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyWithdrawn","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NativeTransferFailed","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[],"name":"OnlyHopper","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DestinationWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"vault","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ExecuteOnSourceChain","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"typedDataHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FailedBridgeWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"vault","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"refuelAmount","type":"uint256"}],"name":"MessageReceivedAndDeposited","type":"event"},{"inputs":[],"name":"bungeeCalldataExecutor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bungeeGateway","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bungeeInbox","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"bytes","name":"destinationPayload","type":"bytes"}],"name":"executeData","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"executeOnSourceChain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"hopper","outputs":[{"internalType":"contract VaultHopper","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_bungeeInbox","type":"address"},{"internalType":"address","name":"_usdc","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdc","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"usedTypedDataHash","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"uint256","name":"originChainId","type":"uint256"},{"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"delegate","type":"address"},{"internalType":"address","name":"bungeeGateway","type":"address"},{"internalType":"uint32","name":"switchboardId","type":"uint32"},{"internalType":"address","name":"inputToken","type":"address"},{"internalType":"uint256","name":"inputAmount","type":"uint256"},{"internalType":"address","name":"outputToken","type":"address"},{"internalType":"uint256","name":"minOutputAmount","type":"uint256"},{"internalType":"uint256","name":"refuelAmount","type":"uint256"}],"internalType":"struct IBungeeInbox.BasicRequest","name":"basicReq","type":"tuple"},{"internalType":"address","name":"swapOutputToken","type":"address"},{"internalType":"uint256","name":"minSwapOutput","type":"uint256"},{"internalType":"bytes32","name":"metadata","type":"bytes32"},{"internalType":"bytes","name":"affiliateFees","type":"bytes"},{"internalType":"uint256","name":"minDestGas","type":"uint256"},{"internalType":"bytes","name":"destinationPayload","type":"bytes"},{"internalType":"address","name":"exclusiveTransmitter","type":"address"}],"internalType":"struct IBungeeInbox.Request","name":"request","type":"tuple"}],"name":"withdrawFailedBridgeOnSource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"router","type":"address"},{"components":[{"components":[{"internalType":"uint256","name":"originChainId","type":"uint256"},{"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"delegate","type":"address"},{"internalType":"address","name":"bungeeGateway","type":"address"},{"internalType":"uint32","name":"switchboardId","type":"uint32"},{"internalType":"address","name":"inputToken","type":"address"},{"internalType":"uint256","name":"inputAmount","type":"uint256"},{"internalType":"address","name":"outputToken","type":"address"},{"internalType":"uint256","name":"minOutputAmount","type":"uint256"},{"internalType":"uint256","name":"refuelAmount","type":"uint256"}],"internalType":"struct IBungeeInbox.BasicRequest","name":"basicReq","type":"tuple"},{"internalType":"address","name":"swapOutputToken","type":"address"},{"internalType":"uint256","name":"minSwapOutput","type":"uint256"},{"internalType":"bytes32","name":"metadata","type":"bytes32"},{"internalType":"bytes","name":"affiliateFees","type":"bytes"},{"internalType":"uint256","name":"minDestGas","type":"uint256"},{"internalType":"bytes","name":"destinationPayload","type":"bytes"},{"internalType":"address","name":"exclusiveTransmitter","type":"address"}],"internalType":"struct IBungeeInbox.Request","name":"request","type":"tuple"},{"internalType":"bytes","name":"withdrawRequestData","type":"bytes"}],"name":"withdrawRequestOnDestination","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523461004d57610019610014610112565b610133565b610021610052565b6145996103a4823960805181818161018c0152818161174101528181611c8f01526128be015261459990f35b610058565b60405190565b5f80fd5b601f801991011690565b634e487b7160e01b5f52604160045260245ffd5b906100849061005c565b810190811060018060401b0382111761009c57604052565b610066565b906100b46100ad610052565b928361007a565b565b5f80fd5b60018060a01b031690565b6100ce906100ba565b90565b6100da816100c5565b036100e157565b5f80fd5b905051906100f2826100d1565b565b9060208282031261010d5761010a915f016100e5565b90565b6100b6565b61013061493d80380380610125816100a1565b9283398101906100f4565b90565b61013c90610175565b565b90565b61015561015061015a926100ba565b61013e565b6100ba565b90565b61016690610141565b90565b6101729061015d565b90565b61017e90610169565b60805261018961027a565b565b60401c90565b60ff1690565b6101a36101a89161018b565b610191565b90565b6101b59054610197565b90565b5f0190565b5f1c90565b60018060401b031690565b6101d96101de916101bd565b6101c2565b90565b6101eb90546101cd565b90565b60018060401b031690565b5f1b90565b9061020f60018060401b03916101f9565b9181191691161790565b61022d610228610232926101ee565b61013e565b6101ee565b90565b90565b9061024d61024861025492610219565b610235565b82546101fe565b9055565b610261906101ee565b9052565b9190610278905f60208501940190610258565b565b610282610332565b61028d5f82016101ab565b6103165761029c5f82016101e1565b6102b46102ae60018060401b036101ee565b916101ee565b036102bd575b50565b6102d0905f60018060401b039101610238565b60018060401b0361030d7fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d291610304610052565b91829182610265565b0390a15f6102ba565b5f63f92ee8a960e01b81528061032e600482016101b8565b0390fd5b61033a61038f565b90565b5f90565b90565b90565b61035b61035661036092610341565b6101f9565b610344565b90565b61038c7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610347565b90565b61039761033d565b506103a0610363565b9056fe60a06040526004361015610015575b3661097157005b61001f5f356100de565b806317a0443f146100d957806333794c05146100d45780633b13584a146100cf5780633e413bee146100ca578063485cc955146100c5578063551512de146100c05780635558c150146100bb578063599832fd146100b65780636c83392d146100b15780636dda00b7146100ac5780636e9ef1fa146100a75763b601a7680361000e5761093c565b610900565b61086b565b61078f565b61053a565b6104fe565b610415565b610381565b6102fc565b6102b8565b610212565b610148565b60e01c90565b60405190565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b90816102a09103126101095790565b6100f6565b9060208282031261013e575f82013567ffffffffffffffff81116101395761013692016100fa565b90565b6100f2565b6100ee565b5f0190565b346101765761016061015b36600461010e565b611322565b6101686100e4565b8061017281610143565b0390f35b6100ea565b5f91031261018557565b6100ee565b7f000000000000000000000000000000000000000000000000000000000000000090565b60018060a01b031690565b90565b6101d06101cb6101d5926101ae565b6101b9565b6101ae565b90565b6101e1906101bc565b90565b6101ed906101d8565b90565b6101f9906101e4565b9052565b9190610210905f602085019401906101f0565b565b346102425761022236600461017b565b61023e61022d61018a565b6102356100e4565b918291826101fd565b0390f35b6100ea565b1c90565b60018060a01b031690565b61026690600861026b9302610247565b61024b565b90565b906102799154610256565b90565b6102875f5f9061026e565b90565b610293906101ae565b90565b61029f9061028a565b9052565b91906102b6905f60208501940190610296565b565b346102e8576102c836600461017b565b6102e46102d361027c565b6102db6100e4565b918291826102a3565b0390f35b6100ea565b6102f960035f9061026e565b90565b3461032c5761030c36600461017b565b6103286103176102ed565b61031f6100e4565b918291826102a3565b0390f35b6100ea565b61033a8161028a565b0361034157565b5f80fd5b9050359061035282610331565b565b919060408382031261037c5780610370610379925f8601610345565b93602001610345565b90565b6100ee565b346103b05761039a610394366004610354565b90611c76565b6103a26100e4565b806103ac81610143565b0390f35b6100ea565b90565b6103c1816103b5565b036103c857565b5f80fd5b905035906103d9826103b8565b565b90916060828403126104105761040d6103f6845f8501610345565b9361040481602086016103cc565b93604001610345565b90565b6100ee565b346104445761042e6104283660046103db565b91611eb0565b6104366100e4565b8061044081610143565b0390f35b6100ea565b5f80fd5b5f80fd5b5f80fd5b909182601f8301121561048f5781359167ffffffffffffffff831161048a57602001926001830284011161048557565b610451565b61044d565b610449565b916060838303126104f9576104ab825f8501610345565b92602081013567ffffffffffffffff81116104f457836104cc9183016100fa565b92604082013567ffffffffffffffff81116104ef576104eb9201610455565b9091565b6100f2565b6100f2565b6100ee565b61051561050c366004610494565b92919091611fff565b61051d6100e4565b8061052781610143565b0390f35b61053760015f9061026e565b90565b3461056a5761054a36600461017b565b61056661055561052b565b61055d6100e4565b918291826102a3565b0390f35b6100ea565b90565b61057b8161056f565b0361058257565b5f80fd5b9050359061059382610572565b565b909182601f830112156105cf5781359167ffffffffffffffff83116105ca5760200192602083028401116105c557565b610451565b61044d565b610449565b909182601f8301121561060e5781359167ffffffffffffffff831161060957602001926020830284011161060457565b610451565b61044d565b610449565b5f80fd5b601f801991011690565b634e487b7160e01b5f52604160045260245ffd5b9061063f90610617565b810190811067ffffffffffffffff82111761065957604052565b610621565b9061067161066a6100e4565b9283610635565b565b67ffffffffffffffff81116106915761068d602091610617565b0190565b610621565b90825f939282370152565b909291926106b66106b182610673565b61065e565b938185526020850190828401116106d2576106d092610696565b565b610613565b9080601f830112156106f5578160206106f2933591016106a1565b90565b610449565b91909160808184031261078a57610713835f8301610586565b92602082013567ffffffffffffffff81116107855781610734918401610595565b929093604082013567ffffffffffffffff811161078057836107579184016105d4565b929093606082013567ffffffffffffffff811161077b5761077892016106d7565b90565b6100f2565b6100f2565b6100f2565b6100ee565b6107a961079d3660046106fa565b949390939291926124d4565b6107b16100e4565b806107bb81610143565b0390f35b906020828203126107d8576107d5915f01610586565b90565b6100ee565b6107e69061056f565b90565b906107f3906107dd565b5f5260205260405f2090565b60ff1690565b61081590600861081a9302610247565b6107ff565b90565b906108289154610805565b90565b6108419061083c6004915f926107e9565b61081d565b90565b151590565b61085290610844565b9052565b9190610869905f60208501940190610849565b565b3461089b576108976108866108813660046107bf565b61082b565b61088e6100e4565b91829182610856565b0390f35b6100ea565b906080828203126108fb576108b7815f8401610345565b926108c58260208501610345565b926108d383604083016103cc565b92606082013567ffffffffffffffff81116108f6576108f29201610455565b9091565b6100f2565b6100ee565b61091761090e3660046108a0565b93929092612ed2565b61091f6100e4565b8061092981610143565b0390f35b61093960025f9061026e565b90565b3461096c5761094c36600461017b565b61096861095761092d565b61095f6100e4565b918291826102a3565b0390f35b6100ea565b5f80fd5b5f80fd5b5f80fd5b63ffffffff1690565b61098f8161097d565b0361099657565b5f80fd5b905035906109a782610986565b565b91906101c083820312610ac957610ac1906109c56101c061065e565b936109d2825f83016103cc565b5f8601526109e382602083016103cc565b60208601526109f582604083016103cc565b6040860152610a0782606083016103cc565b6060860152610a198260808301610345565b6080860152610a2b8260a08301610345565b60a0860152610a3d8260c08301610345565b60c0860152610a4f8260e08301610345565b60e0860152610a6282610100830161099a565b610100860152610a76826101208301610345565b610120860152610a8a8261014083016103cc565b610140860152610a9e826101608301610345565b610160860152610ab28261018083016103cc565b6101808601526101a0016103cc565b6101a0830152565b610975565b9190916102a081840312610bae57610ae761010061065e565b92610af4815f84016109a9565b5f850152610b06816101c08401610345565b6020850152610b19816101e084016103cc565b6040850152610b2c816102008401610586565b606085015261022082013567ffffffffffffffff8111610ba95781610b529184016106d7565b6080850152610b658161024084016103cc565b60a08501526102608201359167ffffffffffffffff8311610ba457610b8f82610b9d9483016106d7565b60c086015261028001610345565b60e0830152565b610979565b610979565b610975565b610bbe903690610ace565b90565b5f1c90565b610bd2610bd791610bc1565b6107ff565b90565b610be49054610bc6565b90565b5f80fd5b5f80fd5b5f80fd5b903590600160200381360303821215610c35570180359067ffffffffffffffff8211610c3057602001916001820236038313610c2b57565b610bef565b610beb565b610be7565b610c43906101ae565b90565b610c4f81610c3a565b03610c5657565b5f80fd5b90503590610c6782610c46565b565b608081830312610caa57610c7f825f8301610c5a565b92610ca7610c908460208501610c5a565b93610c9e8160408601610c5a565b936060016103cc565b90565b6100ee565b610cb8906101d8565b90565b5f1b90565b90610ccc60ff91610cbb565b9181191691161790565b610cdf90610844565b90565b90565b90610cfa610cf5610d0192610cd6565b610ce2565b8254610cc0565b9055565b610d11610d1691610bc1565b61024b565b90565b610d239054610d05565b90565b610d2f906101bc565b90565b610d3b90610d26565b90565b610d47906101d8565b90565b5f80fd5b60e01b90565b90505190610d6182610331565b565b90505190610d70826103b8565b565b9190606083820312610dbe57610db790610d8c606061065e565b93610d99825f8301610d54565b5f860152610daa8260208301610d63565b6020860152604001610d54565b6040830152565b610975565b90606082820312610ddc57610dd9915f01610d72565b90565b6100ee565b610dea9061056f565b9052565b9190610e01905f60208501940190610de1565b565b610e0b6100e4565b3d5f823e3d90fd5b5f90565b5f90565b610e25905161028a565b90565b90565b610e3f610e3a610e4492610e28565b6101b9565b6101ae565b90565b610e5090610e2b565b90565b610e5d90516103b5565b90565b610e69906101bc565b90565b610e7590610e60565b90565b610e81906101d8565b90565b610e8d81610844565b03610e9457565b5f80fd5b90505190610ea582610e84565b565b90602082820312610ec057610ebd915f01610e98565b90565b6100ee565b5f910312610ecf57565b6100ee565b5090565b50610ee79060208101906103cc565b90565b610ef3906103b5565b9052565b50610f06906020810190610345565b90565b610f129061028a565b9052565b50610f2590602081019061099a565b90565b610f319061097d565b9052565b906101a06110a36110ab93610f58610f4f5f830183610ed8565b5f860190610eea565b610f72610f686020830183610ed8565b6020860190610eea565b610f8c610f826040830183610ed8565b6040860190610eea565b610fa6610f9c6060830183610ed8565b6060860190610eea565b610fc0610fb66080830183610ef7565b6080860190610f09565b610fda610fd060a0830183610ef7565b60a0860190610f09565b610ff4610fea60c0830183610ef7565b60c0860190610f09565b61100e61100460e0830183610ef7565b60e0860190610f09565b61102a61101f610100830183610f16565b610100860190610f28565b61104661103b610120830183610ef7565b610120860190610f09565b611062611057610140830183610ed8565b610140860190610eea565b61107e611073610160830183610ef7565b610160860190610f09565b61109a61108f610180830183610ed8565b610180860190610eea565b82810190610ed8565b910190610eea565b565b506110bc906020810190610586565b90565b6110c89061056f565b9052565b5f80fd5b5f80fd5b5f80fd5b903560016020038236030381121561111957016020813591019167ffffffffffffffff821161111457600182023603831361110f57565b6110d0565b6110cc565b6110d4565b60209181520190565b91906111418161113a816111469561111e565b8095610696565b610617565b0190565b906112349061028061122c6112226111e96102a0850161117861116f5f8a018a610ed4565b5f880190610f35565b6111946111896101c08a018a610ef7565b6101c0880190610f09565b6111b06111a56101e08a018a610ed8565b6101e0880190610eea565b6111cc6111c16102008a018a6110ad565b6102008801906110bf565b6111da6102208901896110d8565b90878303610220890152611127565b6112056111fa610240890189610ed8565b610240870190610eea565b6112136102608801886110d8565b90868303610260880152611127565b9482810190610ef7565b910190610f09565b90565b61124c9160208201915f81840391015261114a565b90565b3561125981610331565b90565b35611266816103b8565b90565b611272906101bc565b90565b61127e90611269565b90565b61128a906101bc565b90565b61129690611281565b90565b6112a2906101d8565b90565b906020828203126112be576112bb915f01610d63565b90565b6100ee565b6112cc906103b5565b9052565b9160206112f19294936112ea60408201965f8301906112c3565b0190610296565b565b6112fc906101d8565b90565b91602061132092949361131960408201965f830190610296565b01906112c3565b565b61133361132e82610bb3565b6137e1565b9190611349611344600485906107e9565b610bda565b6116fb5761137c926113da606061138261137361136b87610260810190610bf3565b810190610c69565b50509790610caf565b96610caf565b936113996001611394600487906107e9565b610ce5565b6113b36113ae6113a96001610d19565b610d32565b610d3e565b6113cf636a7372da6113c36100e4565b95869485938493610d4e565b835260048301610dee565b03915afa9081156116f6575f916116c8575b506113f5610e13565b506113fe610e17565b5061140b60408201610e1b565b61142561141f61141a5f610e47565b61028a565b9161028a565b145f146116a95750611475602061144b6114466114415f610d19565b610e6c565b610e78565b639ef6b8709061146a859261145e6100e4565b95869485938493610d4e565b835260048301610dee565b03915afa80156116a457611491915f91611676575b5015610844565b6115dc575b6114b46101405f6114ac6101208288010161124f565b95010161125c565b935b806114d16114cb6114c65f610e47565b61028a565b9161028a565b14155f146115c2576114f96114fe916114f46114ec87611275565b828991613906565b61128d565b611299565b6020636e553f659186906115255f87956115306115196100e4565b97889687958694610d4e565b8452600484016112d0565b03925af180156115bd57611591575b505b9091926115776115717f60a8967134f601852f621763dea4ae527e95693649621676284d850755d939cf936107dd565b936112f3565b9361158c6115836100e4565b928392836112ff565b0390a3565b6115b19060203d81116115b6575b6115a98183610635565b8101906112a5565b61153f565b503d61159f565b610e03565b506115d76115cf84611275565b83869161386b565b611541565b6115f56115f06115eb5f610d19565b610e6c565b610e78565b63ad77611684823b156116715761162b926116205f80946116146100e4565b96879586948593610d4e565b835260048301611237565b03925af1801561166c57611640575b50611496565b61165f905f3d8111611665575b6116578183610635565b810190610ec5565b5f61163a565b503d61164d565b610e03565b610d4a565b611697915060203d811161169d575b61168f8183610635565b810190610ea7565b5f61148a565b503d611685565b610e03565b92506116c260206116bb5f8601610e1b565b9401610e53565b936114b6565b6116e9915060603d81116116ef575b6116e18183610635565b810190610dc3565b5f6113ec565b503d6116d7565b610e03565b5f636507689f60e01b81528061171360048201610143565b0390fd5b906020828203126117305761172d915f01610d54565b90565b6100ee565b903361177b60206117657f00000000000000000000000000000000000000000000000000000000000000006101e4565b638da5cb5b906117736100e4565b938492610d4e565b8252818061178b60048201610143565b03915afa90811561180a576117b1916117ab915f916117dc575b5061028a565b9161028a565b036117c1576117bf91611996565b565b5f6282b42960e81b8152806117d860048201610143565b0390fd5b6117fd915060203d8111611803575b6117f58183610635565b810190611717565b5f6117a5565b503d6117eb565b610e03565b60401c90565b6118216118269161180f565b6107ff565b90565b6118339054611815565b90565b67ffffffffffffffff1690565b61184f61185491610bc1565b611836565b90565b6118619054611843565b90565b67ffffffffffffffff1690565b61188561188061188a92610e28565b6101b9565b611864565b90565b90565b6118a461189f6118a99261188d565b6101b9565b611864565b90565b6118b5906101d8565b90565b6118cc6118c76118d192610e28565b6101b9565b6103b5565b90565b906118e767ffffffffffffffff91610cbb565b9181191691161790565b61190561190061190a92611864565b6101b9565b611864565b90565b90565b9061192561192061192c926118f1565b61190d565b82546118d4565b9055565b60401b90565b9061194a68ff000000000000000091611930565b9181191691161790565b9061196961196461197092610cd6565b610ce2565b8254611936565b9055565b61197d90611890565b9052565b9190611994905f60208501940190611974565b565b9061199f6139a6565b916119b46119ae5f8501611829565b15610844565b916119c05f8501611857565b806119d36119cd5f611871565b91611864565b1480611aed575b906119ee6119e86001611890565b91611864565b1480611ac5575b611a00909115610844565b9081611ab4575b50611a9857611a3091611a25611a1d6001611890565b5f8701611910565b83611a86575b611b32565b611a38575b50565b611a45905f809101611954565b6001611a7d7fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d291611a746100e4565b91829182611981565b0390a15f611a35565b611a9360015f8701611954565b611a2b565b5f63f92ee8a960e01b815280611ab060048201610143565b0390fd5b611abf915015610844565b5f611a07565b50611a00611ad2306118ac565b3b611ae5611adf5f6118b8565b916103b5565b1490506119f5565b50836119da565b90611b0560018060a01b0391610cbb565b9181191691161790565b90565b90611b27611b22611b2e926112f3565b611b0f565b8254611af4565b9055565b90611b40611b71925f611b12565b6020611b5b611b56611b515f610d19565b610e6c565b610e78565b6370372d8590611b696100e4565b948592610d4e565b82528180611b8160048201610143565b03915afa918215611c7157611bd592611ba3915f91611c43575b506001611b12565b6020611bbf611bba611bb56001610d19565b610d32565b610d3e565b630cb352e090611bcd6100e4565b948592610d4e565b82528180611be560048201610143565b03915afa918215611c3e57611c0e92611c07915f91611c10575b506002611b12565b6003611b12565b565b611c31915060203d8111611c37575b611c298183610635565b810190611717565b5f611bff565b503d611c1f565b610e03565b611c64915060203d8111611c6a575b611c5c8183610635565b810190611717565b5f611b9b565b503d611c52565b610e03565b90611c8091611735565b565b919033611cc96020611cb37f00000000000000000000000000000000000000000000000000000000000000006101e4565b638da5cb5b90611cc16100e4565b938492610d4e565b82528180611cd960048201610143565b03915afa908115611d5857611cff91611cf9915f91611d2a575b5061028a565b9161028a565b03611d0f57611d0d92611dd7565b565b5f6282b42960e81b815280611d2660048201610143565b0390fd5b611d4b915060203d8111611d51575b611d438183610635565b810190611717565b5f611cf3565b503d611d39565b610e03565b905090565b611d6d5f8092611d5d565b0190565b611d7a90611d62565b90565b90611d8f611d8a83610673565b61065e565b918252565b606090565b3d5f14611db457611da93d611d7d565b903d5f602084013e5b565b611dbc611d94565b90611db2565b9190611dd5905f602085019401906112c3565b565b80611df2611dec611de75f610e47565b61028a565b9161028a565b145f14611e9757611e265f808585611e086100e4565b9081611e1381611d71565b03925af1611e1f611d99565b5015610844565b611e7b575b919091611e76611e64611e5e7ff24ef89f38eadc1bde50701ad6e4d6d11a2dc24f7cf834a486991f3883328504936112f3565b936112f3565b93611e6d6100e4565b91829182611dc2565b0390a3565b5f633d2cec6f60e21b815280611e9360048201610143565b0390fd5b611eab611ea382611275565b84849161386b565b611e2b565b90611ebb9291611c82565b565b611ec6906101d8565b90565b611ed2906101d8565b90565b60209181520190565b9190611ef881611ef181611efd95611ed5565b8095610696565b610617565b0190565b9290611f2a90611f389593611f1d60608701925f880190610296565b858203602087015261114a565b926040818503910152611ede565b90565b634e487b7160e01b5f52601160045260245ffd5b611f5e611f64919392936103b5565b926103b5565b8203918211611f6f57565b611f3b565b60209181520190565b5f7f6e6f2066756e6473207265636569766564000000000000000000000000000000910152565b611fb16011602092611f74565b611fba81611f7d565b0190565b611fd39060208101905f818303910152611fa4565b90565b15611fdd57565b611fe56100e4565b62461bcd60e51b815280611ffb60048201611fbe565b0390fd5b9092612052602061202061201b6120166003610d19565b611275565b611ebd565b6370a082319061204761203230611ec9565b9261203b6100e4565b95869485938493610d4e565b8352600483016102a3565b03915afa90811561226b575f9161223d575b509161208061207b6120766001610d19565b610d32565b610d3e565b635558c150903490919087969491833b15612238576120bd6120b2935f976120a66100e4565b9a8b9889978896610d4e565b865260048601611f01565b03925af19182156122335761212092612207575b5060206120ee6120e96120e46003610d19565b611275565b611ebd565b6370a082319061211561210030611ec9565b926121096100e4565b96879485938493610d4e565b8352600483016102a3565b03915afa80156122025761214360a0925f926121909584916121d4575b50611f4f565b936121608561215a612154856118b8565b916103b5565b11611fd6565b6121896121756121706003610d19565b611275565b612182858585010161124f565b879161386b565b010161124f565b6121cf6121bd7f5e112e8f101fba203c96a3f74bc00c9531211812c1dbe17f786447701570d4c2926112f3565b926121c66100e4565b91829182611dc2565b0390a2565b6121f5915060203d81116121fb575b6121ed8183610635565b8101906112a5565b5f61213d565b503d6121e3565b610e03565b612226905f3d811161222c575b61221e8183610635565b810190610ec5565b5f6120d1565b503d612214565b610e03565b610d4a565b61225e915060203d8111612264575b6122568183610635565b8101906112a5565b5f612064565b503d61224c565b610e03565b5f7f496e76616c69642073656e646572000000000000000000000000000000000000910152565b6122a4600e602092611f74565b6122ad81612270565b0190565b6122c69060208101905f818303910152612297565b90565b156122d057565b6122d86100e4565b62461bcd60e51b8152806122ee600482016122b1565b0390fd5b5090565b5090565b61230e6123096123139261188d565b6101b9565b6103b5565b90565b5f7f496e76616c696420746f6b656e73206f7220616d6f756e747300000000000000910152565b61234a6019602092611f74565b61235381612316565b0190565b61236c9060208101905f81830391015261233d565b90565b1561237657565b61237e6100e4565b62461bcd60e51b81528061239460048201612357565b0390fd5b634e487b7160e01b5f52603260045260245ffd5b91908110156123bc576020020190565b612398565b91908110156123d1576020020190565b612398565b905051906123e382610c46565b565b608081830312612426576123fb825f83016123d6565b9261242361240c84602085016123d6565b9361241a81604086016123d6565b93606001610d63565b90565b6100ee565b5190565b5f7f496e76616c6964206f757470757420746f6b656e000000000000000000000000910152565b6124636014602092611f74565b61246c8161242f565b0190565b6124859060208101905f818303910152612456565b90565b1561248f57565b6124976100e4565b62461bcd60e51b8152806124ad60048201612470565b0390fd5b9160206124d29294936124cb60408201965f8301906112c3565b01906112c3565b565b5093919290339461251060206124fa6124f56124f06001610d19565b610d32565b610d3e565b630cb352e0906125086100e4565b938492610d4e565b8252818061252060048201610143565b03915afa9384156128a9576125b46125af6125e1956125ca956125676125ea9c61256161255b6125f09c6125c59a5f9161287b575b5061028a565b9161028a565b146122c9565b8a61258f61258961258461257c8587906122f2565b9389906122f6565b6103b5565b916103b5565b1480612851575b61259f9061236f565b906125a95f6118b8565b916123ac565b61125c565b96906125bf5f6118b8565b916123c1565b61124f565b9260206125d68261242b565b8183010191016123e5565b50959150610caf565b93610caf565b908361260c6126066126015f610e47565b61028a565b9161028a565b14801561282f575b612813576126456126248561128d565b602061262f82611299565b6338d52e0f9061263d6100e4565b948592610d4e565b8252818061265560048201610143565b03915afa91821561280e576126a192612688915f916127e0575b5061268261267c8661028a565b9161028a565b14612488565b61269c61269484611275565b878791613906565b611299565b6020636e553f659185906126c85f87956126d36126bc6100e4565b97889687958694610d4e565b8452600484016112d0565b03925af180156127db576127af575b506126ec30611ec9565b3193846127016126fb5f6118b8565b916103b5565b11612761575b9091929361274761274161273b7f4a1f030afa3d9c058e18072d165e29d0bfd6d96219154a9a2fad1292f21584bc946112f3565b946112f3565b946112f3565b9461275c6127536100e4565b928392836124b1565b0390a4565b61278e5f8085886127706100e4565b908161277b81611d71565b03925af1612787611d99565b5015610844565b15612707575f633d2cec6f60e21b8152806127ab60048201610143565b0390fd5b6127cf9060203d81116127d4575b6127c78183610635565b8101906112a5565b6126e2565b503d6127bd565b610e03565b612801915060203d8111612807575b6127f98183610635565b810190611717565b5f61266f565b503d6127ef565b610e03565b5f63e6c4247b60e01b81528061282b60048201610143565b0390fd5b508161284b6128456128405f610e47565b61028a565b9161028a565b14612614565b5061259f6128608c87906122f6565b61287361286d60016122fa565b916103b5565b149050612596565b61289c915060203d81116128a2575b6128948183610635565b810190611717565b5f612555565b503d61288a565b610e03565b93929190336128ed6128e76128e27f00000000000000000000000000000000000000000000000000000000000000006101e4565b61028a565b9161028a565b036128fd576128fb94612c31565b565b5f6308449d9160e31b81528061291560048201610143565b0390fd5b90602082820312612949575f82013567ffffffffffffffff8111612944576129419201610ace565b90565b6100f2565b6100ee565b90565b61296561296061296a9261294e565b6101b9565b6103b5565b90565b60207f6800000000000000000000000000000000000000000000000000000000000000917f496e76616c69642064657374696e6174696f6e5061796c6f6164206c656e67745f8201520152565b6129c76021604092611f74565b6129d08161296d565b0190565b6129e99060208101905f8183039101526129ba565b90565b156129f357565b6129fb6100e4565b62461bcd60e51b815280612a11600482016129d4565b0390fd5b906101a080612b1a93612a2e5f8201515f860190610eea565b612a4060208201516020860190610eea565b612a5260408201516040860190610eea565b612a6460608201516060860190610eea565b612a7660808201516080860190610f09565b612a8860a082015160a0860190610f09565b612a9a60c082015160c0860190610f09565b612aac60e082015160e0860190610f09565b612ac0610100820151610100860190610f28565b612ad4610120820151610120860190610f09565b612ae8610140820151610140860190610eea565b612afc610160820151610160860190610f09565b612b10610180820151610180860190610eea565b0151910190610eea565b565b90825f9392825e0152565b612b46612b4f602093612b5493612b3d8161242b565b9384809361111e565b95869101612b1c565b610617565b0190565b90612bfa9061028060e0612bef612bc96102a08501612b7d5f8901515f880190612a15565b612b9060208901516101c0880190610f09565b612ba360408901516101e0880190610eea565b612bb660608901516102008801906110bf565b6080880151868203610220880152612b27565b612bdc60a0880151610240870190610eea565b60c0870151858203610260870152612b27565b940151910190610f09565b90565b612c129160208201915f818403910152612b58565b90565b612c29612c24612c2e926103b5565b6101b9565b6103b5565b90565b919293612c42919490810190612919565b90612c5260a05f84015101610e1b565b612c6c612c66612c615f610e47565b61028a565b9161028a565b14612eb657612c8060c05f84015101610e1b565b612c9a612c94612c8f5f610e47565b61028a565b9161028a565b14612e9a57612cf290612cf8612ce960c0850151612cd3612cba8261242b565b612ccd612cc76080612951565b916103b5565b146129ec565b6020612cde8261242b565b8183010191016123e5565b50949150610caf565b92610caf565b9482612d14612d0e612d095f610e47565b61028a565b9161028a565b14908115612e7d575b50612e6157612d4c81612d47612d35612d5c94611275565b33612d3f30611ec9565b9089926139b1565b611275565b612d555f610d19565b8591613906565b612d75612d70612d6b5f610d19565b610e6c565b610e78565b6369e0a55634919091908490803b15612e5c57612da55f93612db095612d996100e4565b96879586948593610d4e565b835260048301612bfd565b03925af18015612e5757612dd3926020925f92612e2b575b509593015101610e53565b9192612e26612e14612e0e612e087f61f98b0dd589e230a91224572fed491e171020062b2a3e93701d812eb23ad50a946112f3565b946112f3565b94612c15565b94612e1d6100e4565b91829182611dc2565b0390a4565b612e4a90833d8111612e50575b612e428183610635565b810190610ec5565b5f612dc8565b503d612e38565b610e03565b610d4a565b5f63e6c4247b60e01b815280612e7960048201610143565b0390fd5b9050612e92612e8c879261028a565b9161028a565b14155f612d1d565b5f63e6c4247b60e01b815280612eb260048201610143565b0390fd5b5f63e6c4247b60e01b815280612ece60048201610143565b0390fd5b90612edf949392916128ae565b565b5f90565b905090565b5f7f4261736963526571756573742800000000000000000000000000000000000000910152565b612f1d600d8092612ee5565b612f2681612eea565b0190565b5f7f75696e74323536206f726967696e436861696e49642c00000000000000000000910152565b612f5d60168092612ee5565b612f6681612f2a565b0190565b5f7f75696e743235362064657374696e6174696f6e436861696e49642c0000000000910152565b612f9d601b8092612ee5565b612fa681612f6a565b0190565b5f7f75696e7432353620646561646c696e652c000000000000000000000000000000910152565b612fdd60118092612ee5565b612fe681612faa565b0190565b5f7f75696e74323536206e6f6e63652c000000000000000000000000000000000000910152565b61301d600e8092612ee5565b61302681612fea565b0190565b5f7f616464726573732073656e6465722c0000000000000000000000000000000000910152565b61305d600f8092612ee5565b6130668161302a565b0190565b5f7f616464726573732072656365697665722c000000000000000000000000000000910152565b61309d60118092612ee5565b6130a68161306a565b0190565b5f7f616464726573732064656c65676174652c000000000000000000000000000000910152565b6130dd60118092612ee5565b6130e6816130aa565b0190565b5f7f616464726573732062756e676565476174657761792c00000000000000000000910152565b61311d60168092612ee5565b613126816130ea565b0190565b5f7f75696e74333220737769746368626f61726449642c0000000000000000000000910152565b61315d60158092612ee5565b6131668161312a565b0190565b5f7f6164647265737320696e707574546f6b656e2c00000000000000000000000000910152565b61319d60138092612ee5565b6131a68161316a565b0190565b5f7f75696e7432353620696e707574416d6f756e742c000000000000000000000000910152565b6131dd60148092612ee5565b6131e6816131aa565b0190565b5f7f61646472657373206f7574707574546f6b656e2c000000000000000000000000910152565b61321d60148092612ee5565b613226816131ea565b0190565b60207f72656675656c416d6f756e742900000000000000000000000000000000000000917f75696e74323536206d696e4f7574707574416d6f756e742c75696e74323536205f8201520152565b613283602d8092612ee5565b61328c8161322a565b0190565b6132fc6132f76132f26132ed6132e86132e36132de6132d96132d46132cf6132ca6132c56132c06133019d612f11565b612f51565b612f91565b612fd1565b613011565b613051565b613091565b6130d1565b613111565b613151565b613191565b6131d1565b613211565b613277565b90565b61330c6100e4565b61332b8161331c60208201613290565b60208201810382520382610635565b90565b5f7f5265717565737428000000000000000000000000000000000000000000000000910152565b61336160088092612ee5565b61336a8161332e565b0190565b5f7f4261736963526571756573742062617369635265712c00000000000000000000910152565b6133a160168092612ee5565b6133aa8161336e565b0190565b5f7f6164647265737320737761704f7574707574546f6b656e2c0000000000000000910152565b6133e160188092612ee5565b6133ea816133ae565b0190565b5f7f75696e74323536206d696e537761704f75747075742c00000000000000000000910152565b61342160168092612ee5565b61342a816133ee565b0190565b5f7f62797465733332206d657461646174612c000000000000000000000000000000910152565b61346160118092612ee5565b61346a8161342e565b0190565b5f7f627974657320616666696c69617465466565732c000000000000000000000000910152565b6134a160148092612ee5565b6134aa8161346e565b0190565b5f7f75696e74323536206d696e446573744761732c00000000000000000000000000910152565b6134e160138092612ee5565b6134ea816134ae565b0190565b5f7f62797465732064657374696e6174696f6e5061796c6f61642c00000000000000910152565b61352160198092612ee5565b61352a816134ee565b0190565b5f7f61646472657373206578636c75736976655472616e736d697474657229000000910152565b613561601d8092612ee5565b61356a8161352e565b0190565b6135b26135ad6135a86135a361359e61359961359461358f6135b798613355565b613395565b6133d5565b613415565b613455565b613495565b6134d5565b613515565b613555565b90565b6135c26100e4565b6135e1816135d26020820161356e565b60208201810382520382610635565b90565b613609613600926020926135f78161242b565b94858093611d5d565b93849101612b1c565b0190565b61361b9061362193926135e4565b906135e4565b90565b67ffffffffffffffff81116136425761363e602091610617565b0190565b610621565b9061365961365483613624565b61065e565b918252565b60207f696e7432353620616d6f756e7429000000000000000000000000000000000000917f546f6b656e5065726d697373696f6e73286164647265737320746f6b656e2c755f8201520152565b6136b5602e613647565b906136c26020830161365e565b565b6136cc6136ab565b90565b6136d76136c4565b90565b5f7f52657175657374207769746e6573732900000000000000000000000000000000910152565b61370d60108092612ee5565b613716816136da565b0190565b5190565b61374361373a926020926137318161371a565b94858093612ee5565b93849101612b1c565b0190565b613764929161375861375e92613701565b906135e4565b9061371e565b90565b90565b6137de613775613304565b6137a76137806135ba565b9161379861378c6100e4565b9384926020840161360d565b60208201810382520382610635565b6137d96137b26136cf565b916137ca6137be6100e4565b93849260208401613747565b60208201810382520382610635565b613767565b90565b906137ea612ee1565b506137f3612ee1565b5061386861386361380384613af0565b936138146101205f83015101610e1b565b906138256101405f83015101610e53565b61383460605f84015101610e53565b61384360405f85015101610e53565b90889261385d60e05f61385461376a565b97015101610e1b565b95613bf6565b613d2a565b90565b916138849161387e918491600192613e08565b15610844565b61388b5750565b6138976138ae91611ebd565b5f918291635274afe760e01b8352600483016102a3565b0390fd5b6138bb906101d8565b90565b9160206138df9294936138d860408201965f830190610296565b0190610296565b565b6138f06138f6919392936103b5565b926103b5565b820180921161390157565b611f3b565b61390f81611ebd565b602063dd62ed3e91613920306138b2565b9061393d86946139486139316100e4565b96879586948594610d4e565b8452600484016138be565b03915afa9384156139a1576139719461396b925f91613973575b509293926138e1565b91613e72565b565b613994915060203d811161399a575b61398c8183610635565b8101906112a5565b5f613962565b503d613982565b610e03565b6139ae613f76565b90565b92906139ce926139c8928592919091600193613f8a565b15610844565b6139d55750565b6139e16139f891611ebd565b5f918291635274afe760e01b8352600483016102a3565b0390fd5b613a046135ba565b613a36613a0f613304565b91613a27613a1b6100e4565b9384926020840161360d565b60208201810382520382610635565b90565b60200190565b613a476139fc565b613a59613a538261242b565b91613a39565b2090565b613a67905161056f565b90565b9694929099989795939161012088019a5f8901613a8691610de1565b60208801613a9391610de1565b60408701613aa091610296565b60608601613aad916112c3565b60808501613aba91610de1565b60a08401613ac791610de1565b60c08301613ad4916112c3565b60e08201613ae191610de1565b61010001613aee91610296565b565b613af8612ee1565b50613ba7613b04613a3f565b613b98613b135f85015161414a565b93613b2060208201610e1b565b90613b2d60408201610e53565b613b3960608301613a5d565b6080830151613b50613b4a8261242b565b91613a39565b2090613b5e60a08501610e53565b92613b8360e060c0870151613b7b613b758261242b565b91613a39565b209601610e1b565b95613b8c6100e4565b9a8b9960208b01613a6a565b60208201810382520382610635565b613bb9613bb38261242b565b91613a39565b2090565b613bc7604061065e565b90565b90613bd49061028a565b9052565b90613be2906103b5565b9052565b613bf0606061065e565b90565b52565b92613c4d613c5692613c2f613c5f99979896613c10612ee1565b5091613c26613c1d613bbd565b935f8501613bca565b60208301613bd8565b93613c44613c3b613be6565b955f8701613bf3565b60208501613bd8565b60408301613bd8565b929091926143bd565b90565b6e22d473030f116ddee9f6b43ac78ba390565b613c7e906101bc565b90565b613c8a90613c75565b90565b613c96906101d8565b90565b90505190613ca682610572565b565b90602082820312613cc157613cbe915f01613c99565b90565b6100ee565b5f61190160f01b910152565b613cde60028092612ee5565b613ce781613cc6565b0190565b90565b613cfa613cff9161056f565b613ceb565b9052565b6020809392613d1e613d17613d2694613cd2565b8092613cee565b018092613cee565b0190565b613d6790613d36612ee1565b506020613d51613d4c613d47613c62565b613c81565b613c8d565b633644e51590613d5f6100e4565b948592610d4e565b82528180613d7760048201610143565b03915afa918215613dff575f92613dcb575b50613db59091613da6613d9a6100e4565b93849260208401613d03565b60208201810382520382610635565b613dc7613dc18261242b565b91613a39565b2090565b613db5919250613df19060203d8111613df8575b613de98183610635565b810190613ca8565b9190613d89565b503d613ddf565b610e03565b5f90565b9091939293613e15613e04565b5063a9059cbb60e01b92604051935f525f1960601c1660045260245260205f60448180855af19360015f5114851615613e50575b5050604052565b8492941516613e69575f903b113d151616915f80613e49565b833d5f823e3d90fd5b91613e8a613e84848484905f92614474565b15610844565b613e94575b505050565b613eb6613eb08484905f91613eaa6001936118b8565b91614474565b15610844565b613f0457613ed291613ecc918491600192614474565b15610844565b613edd578080613e8f565b613ee9613f0091611ebd565b5f918291635274afe760e01b8352600483016102a3565b0390fd5b613f27613f1084611ebd565b5f918291635274afe760e01b8352600483016102a3565b0390fd5b90565b613f42613f3d613f4792613f2b565b610cbb565b61056f565b90565b613f737ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00613f2e565b90565b613f7e612ee1565b50613f87613f4a565b90565b91949394929092613f99613e04565b506323b872dd60e01b93604051945f525f1960601c166004525f1960601c1660245260445260205f60648180855af19360015f5114851615613fe1575b50506040525f606052565b8492941516613ffa575f903b113d151616915f80613fd6565b833d5f823e3d90fd5b61400b613304565b61401d6140178261242b565b91613a39565b2090565b61402b905161097d565b90565b6140379061097d565b9052565b9e9d9c9b9a999897969594939291909e6080526080516101c0019e6080515f01614064916112c3565b608051602001614073916112c3565b608051604001614082916112c3565b608051606001614091916112c3565b6080516080016140a091610296565b60805160a0016140af91610296565b60805160c0016140be91610296565b60805160e0016140cd91610296565b608051610100016140dd9161402e565b608051610120016140ed91610296565b608051610140016140fd916112c3565b6080516101600161410d91610296565b6080516101800161411d916112c3565b6080516101a00161412d916112c3565b565b806141406020926141479594613cee565b01906135e4565b90565b614152612ee1565b5061415b614003565b90468160200161416a90610e53565b908260400161417890610e53565b928060600161418690610e53565b908060800161419490610e1b565b8160a0016141a190610e1b565b8260c0016141ae90610e1b565b8360e0016141bb90610e1b565b84610100016141c990614021565b9085610120016141d890610e1b565b9286610140016141e790610e53565b9487610160016141f690610e1b565b96886101800161420590610e53565b986101a00161421390610e53565b9961421c6100e4565b9d8e9d60208f019d61422d9e61403b565b6020820181038252036142409082610635565b6142486100e4565b91829160208301916142599261412f565b60208201810382520361426c9082610635565b6142758161242b565b9061427f90613a39565b2090565b60607f696e652c00000000000000000000000000000000000000000000000000000000917f5065726d69745769746e6573735472616e7366657246726f6d28546f6b656e505f8201527f65726d697373696f6e73207065726d69747465642c616464726573732073706560208201527f6e6465722c75696e74323536206e6f6e63652c75696e7432353620646561646c60408201520152565b6143266064613647565b9061433360208301614283565b565b61433d61431c565b90565b614348614335565b90565b6143599061435f939261371e565b9061371e565b90565b91946143aa6143b4929897956143a060a0966143966143bb9a61438c60c08a019e5f8b0190610de1565b6020890190610de1565b6040870190610296565b60608501906112c3565b60808301906112c3565b0190610de1565b565b61444f9061445e936143cd612ee1565b506143ff6143d9614340565b6143f06143e46100e4565b9384926020840161434b565b60208201810382520382610635565b61441161440b8261242b565b91613a39565b209261441f5f830151614549565b9591614439604061443260208401610e53565b9201610e53565b91926144436100e4565b97889660208801614362565b60208201810382520382610635565b61447061446a8261242b565b91613a39565b2090565b9091939293614481613e04565b5063095ea7b360e01b92604051935f525f1960601c1660045260245260205f60448180855af19360015f51148516156144bc575b5050604052565b84929415166144d5575f903b113d151616915f806144b5565b833d5f823e3d90fd5b7f618358ac3db8dc274f0cd8829da7e234bd48cd73c4a740aede1adec9846d06a190565b906020806145249361451a5f8201515f860190610f09565b0151910190610eea565b565b91602061454792949361454060608201965f830190610de1565b0190614502565b565b614551612ee1565b5061458361455d6144de565b6145746145686100e4565b93849260208401614526565b60208201810382520382610635565b61459561458f8261242b565b91613a39565b209056000000000000000000000000a78184dd4165d855c74e02e07270898396cfc117

Deployed Bytecode

0x60a06040526004361015610015575b3661097157005b61001f5f356100de565b806317a0443f146100d957806333794c05146100d45780633b13584a146100cf5780633e413bee146100ca578063485cc955146100c5578063551512de146100c05780635558c150146100bb578063599832fd146100b65780636c83392d146100b15780636dda00b7146100ac5780636e9ef1fa146100a75763b601a7680361000e5761093c565b610900565b61086b565b61078f565b61053a565b6104fe565b610415565b610381565b6102fc565b6102b8565b610212565b610148565b60e01c90565b60405190565b5f80fd5b5f80fd5b5f80fd5b5f80fd5b90816102a09103126101095790565b6100f6565b9060208282031261013e575f82013567ffffffffffffffff81116101395761013692016100fa565b90565b6100f2565b6100ee565b5f0190565b346101765761016061015b36600461010e565b611322565b6101686100e4565b8061017281610143565b0390f35b6100ea565b5f91031261018557565b6100ee565b7f000000000000000000000000a78184dd4165d855c74e02e07270898396cfc11790565b60018060a01b031690565b90565b6101d06101cb6101d5926101ae565b6101b9565b6101ae565b90565b6101e1906101bc565b90565b6101ed906101d8565b90565b6101f9906101e4565b9052565b9190610210905f602085019401906101f0565b565b346102425761022236600461017b565b61023e61022d61018a565b6102356100e4565b918291826101fd565b0390f35b6100ea565b1c90565b60018060a01b031690565b61026690600861026b9302610247565b61024b565b90565b906102799154610256565b90565b6102875f5f9061026e565b90565b610293906101ae565b90565b61029f9061028a565b9052565b91906102b6905f60208501940190610296565b565b346102e8576102c836600461017b565b6102e46102d361027c565b6102db6100e4565b918291826102a3565b0390f35b6100ea565b6102f960035f9061026e565b90565b3461032c5761030c36600461017b565b6103286103176102ed565b61031f6100e4565b918291826102a3565b0390f35b6100ea565b61033a8161028a565b0361034157565b5f80fd5b9050359061035282610331565b565b919060408382031261037c5780610370610379925f8601610345565b93602001610345565b90565b6100ee565b346103b05761039a610394366004610354565b90611c76565b6103a26100e4565b806103ac81610143565b0390f35b6100ea565b90565b6103c1816103b5565b036103c857565b5f80fd5b905035906103d9826103b8565b565b90916060828403126104105761040d6103f6845f8501610345565b9361040481602086016103cc565b93604001610345565b90565b6100ee565b346104445761042e6104283660046103db565b91611eb0565b6104366100e4565b8061044081610143565b0390f35b6100ea565b5f80fd5b5f80fd5b5f80fd5b909182601f8301121561048f5781359167ffffffffffffffff831161048a57602001926001830284011161048557565b610451565b61044d565b610449565b916060838303126104f9576104ab825f8501610345565b92602081013567ffffffffffffffff81116104f457836104cc9183016100fa565b92604082013567ffffffffffffffff81116104ef576104eb9201610455565b9091565b6100f2565b6100f2565b6100ee565b61051561050c366004610494565b92919091611fff565b61051d6100e4565b8061052781610143565b0390f35b61053760015f9061026e565b90565b3461056a5761054a36600461017b565b61056661055561052b565b61055d6100e4565b918291826102a3565b0390f35b6100ea565b90565b61057b8161056f565b0361058257565b5f80fd5b9050359061059382610572565b565b909182601f830112156105cf5781359167ffffffffffffffff83116105ca5760200192602083028401116105c557565b610451565b61044d565b610449565b909182601f8301121561060e5781359167ffffffffffffffff831161060957602001926020830284011161060457565b610451565b61044d565b610449565b5f80fd5b601f801991011690565b634e487b7160e01b5f52604160045260245ffd5b9061063f90610617565b810190811067ffffffffffffffff82111761065957604052565b610621565b9061067161066a6100e4565b9283610635565b565b67ffffffffffffffff81116106915761068d602091610617565b0190565b610621565b90825f939282370152565b909291926106b66106b182610673565b61065e565b938185526020850190828401116106d2576106d092610696565b565b610613565b9080601f830112156106f5578160206106f2933591016106a1565b90565b610449565b91909160808184031261078a57610713835f8301610586565b92602082013567ffffffffffffffff81116107855781610734918401610595565b929093604082013567ffffffffffffffff811161078057836107579184016105d4565b929093606082013567ffffffffffffffff811161077b5761077892016106d7565b90565b6100f2565b6100f2565b6100f2565b6100ee565b6107a961079d3660046106fa565b949390939291926124d4565b6107b16100e4565b806107bb81610143565b0390f35b906020828203126107d8576107d5915f01610586565b90565b6100ee565b6107e69061056f565b90565b906107f3906107dd565b5f5260205260405f2090565b60ff1690565b61081590600861081a9302610247565b6107ff565b90565b906108289154610805565b90565b6108419061083c6004915f926107e9565b61081d565b90565b151590565b61085290610844565b9052565b9190610869905f60208501940190610849565b565b3461089b576108976108866108813660046107bf565b61082b565b61088e6100e4565b91829182610856565b0390f35b6100ea565b906080828203126108fb576108b7815f8401610345565b926108c58260208501610345565b926108d383604083016103cc565b92606082013567ffffffffffffffff81116108f6576108f29201610455565b9091565b6100f2565b6100ee565b61091761090e3660046108a0565b93929092612ed2565b61091f6100e4565b8061092981610143565b0390f35b61093960025f9061026e565b90565b3461096c5761094c36600461017b565b61096861095761092d565b61095f6100e4565b918291826102a3565b0390f35b6100ea565b5f80fd5b5f80fd5b5f80fd5b63ffffffff1690565b61098f8161097d565b0361099657565b5f80fd5b905035906109a782610986565b565b91906101c083820312610ac957610ac1906109c56101c061065e565b936109d2825f83016103cc565b5f8601526109e382602083016103cc565b60208601526109f582604083016103cc565b6040860152610a0782606083016103cc565b6060860152610a198260808301610345565b6080860152610a2b8260a08301610345565b60a0860152610a3d8260c08301610345565b60c0860152610a4f8260e08301610345565b60e0860152610a6282610100830161099a565b610100860152610a76826101208301610345565b610120860152610a8a8261014083016103cc565b610140860152610a9e826101608301610345565b610160860152610ab28261018083016103cc565b6101808601526101a0016103cc565b6101a0830152565b610975565b9190916102a081840312610bae57610ae761010061065e565b92610af4815f84016109a9565b5f850152610b06816101c08401610345565b6020850152610b19816101e084016103cc565b6040850152610b2c816102008401610586565b606085015261022082013567ffffffffffffffff8111610ba95781610b529184016106d7565b6080850152610b658161024084016103cc565b60a08501526102608201359167ffffffffffffffff8311610ba457610b8f82610b9d9483016106d7565b60c086015261028001610345565b60e0830152565b610979565b610979565b610975565b610bbe903690610ace565b90565b5f1c90565b610bd2610bd791610bc1565b6107ff565b90565b610be49054610bc6565b90565b5f80fd5b5f80fd5b5f80fd5b903590600160200381360303821215610c35570180359067ffffffffffffffff8211610c3057602001916001820236038313610c2b57565b610bef565b610beb565b610be7565b610c43906101ae565b90565b610c4f81610c3a565b03610c5657565b5f80fd5b90503590610c6782610c46565b565b608081830312610caa57610c7f825f8301610c5a565b92610ca7610c908460208501610c5a565b93610c9e8160408601610c5a565b936060016103cc565b90565b6100ee565b610cb8906101d8565b90565b5f1b90565b90610ccc60ff91610cbb565b9181191691161790565b610cdf90610844565b90565b90565b90610cfa610cf5610d0192610cd6565b610ce2565b8254610cc0565b9055565b610d11610d1691610bc1565b61024b565b90565b610d239054610d05565b90565b610d2f906101bc565b90565b610d3b90610d26565b90565b610d47906101d8565b90565b5f80fd5b60e01b90565b90505190610d6182610331565b565b90505190610d70826103b8565b565b9190606083820312610dbe57610db790610d8c606061065e565b93610d99825f8301610d54565b5f860152610daa8260208301610d63565b6020860152604001610d54565b6040830152565b610975565b90606082820312610ddc57610dd9915f01610d72565b90565b6100ee565b610dea9061056f565b9052565b9190610e01905f60208501940190610de1565b565b610e0b6100e4565b3d5f823e3d90fd5b5f90565b5f90565b610e25905161028a565b90565b90565b610e3f610e3a610e4492610e28565b6101b9565b6101ae565b90565b610e5090610e2b565b90565b610e5d90516103b5565b90565b610e69906101bc565b90565b610e7590610e60565b90565b610e81906101d8565b90565b610e8d81610844565b03610e9457565b5f80fd5b90505190610ea582610e84565b565b90602082820312610ec057610ebd915f01610e98565b90565b6100ee565b5f910312610ecf57565b6100ee565b5090565b50610ee79060208101906103cc565b90565b610ef3906103b5565b9052565b50610f06906020810190610345565b90565b610f129061028a565b9052565b50610f2590602081019061099a565b90565b610f319061097d565b9052565b906101a06110a36110ab93610f58610f4f5f830183610ed8565b5f860190610eea565b610f72610f686020830183610ed8565b6020860190610eea565b610f8c610f826040830183610ed8565b6040860190610eea565b610fa6610f9c6060830183610ed8565b6060860190610eea565b610fc0610fb66080830183610ef7565b6080860190610f09565b610fda610fd060a0830183610ef7565b60a0860190610f09565b610ff4610fea60c0830183610ef7565b60c0860190610f09565b61100e61100460e0830183610ef7565b60e0860190610f09565b61102a61101f610100830183610f16565b610100860190610f28565b61104661103b610120830183610ef7565b610120860190610f09565b611062611057610140830183610ed8565b610140860190610eea565b61107e611073610160830183610ef7565b610160860190610f09565b61109a61108f610180830183610ed8565b610180860190610eea565b82810190610ed8565b910190610eea565b565b506110bc906020810190610586565b90565b6110c89061056f565b9052565b5f80fd5b5f80fd5b5f80fd5b903560016020038236030381121561111957016020813591019167ffffffffffffffff821161111457600182023603831361110f57565b6110d0565b6110cc565b6110d4565b60209181520190565b91906111418161113a816111469561111e565b8095610696565b610617565b0190565b906112349061028061122c6112226111e96102a0850161117861116f5f8a018a610ed4565b5f880190610f35565b6111946111896101c08a018a610ef7565b6101c0880190610f09565b6111b06111a56101e08a018a610ed8565b6101e0880190610eea565b6111cc6111c16102008a018a6110ad565b6102008801906110bf565b6111da6102208901896110d8565b90878303610220890152611127565b6112056111fa610240890189610ed8565b610240870190610eea565b6112136102608801886110d8565b90868303610260880152611127565b9482810190610ef7565b910190610f09565b90565b61124c9160208201915f81840391015261114a565b90565b3561125981610331565b90565b35611266816103b8565b90565b611272906101bc565b90565b61127e90611269565b90565b61128a906101bc565b90565b61129690611281565b90565b6112a2906101d8565b90565b906020828203126112be576112bb915f01610d63565b90565b6100ee565b6112cc906103b5565b9052565b9160206112f19294936112ea60408201965f8301906112c3565b0190610296565b565b6112fc906101d8565b90565b91602061132092949361131960408201965f830190610296565b01906112c3565b565b61133361132e82610bb3565b6137e1565b9190611349611344600485906107e9565b610bda565b6116fb5761137c926113da606061138261137361136b87610260810190610bf3565b810190610c69565b50509790610caf565b96610caf565b936113996001611394600487906107e9565b610ce5565b6113b36113ae6113a96001610d19565b610d32565b610d3e565b6113cf636a7372da6113c36100e4565b95869485938493610d4e565b835260048301610dee565b03915afa9081156116f6575f916116c8575b506113f5610e13565b506113fe610e17565b5061140b60408201610e1b565b61142561141f61141a5f610e47565b61028a565b9161028a565b145f146116a95750611475602061144b6114466114415f610d19565b610e6c565b610e78565b639ef6b8709061146a859261145e6100e4565b95869485938493610d4e565b835260048301610dee565b03915afa80156116a457611491915f91611676575b5015610844565b6115dc575b6114b46101405f6114ac6101208288010161124f565b95010161125c565b935b806114d16114cb6114c65f610e47565b61028a565b9161028a565b14155f146115c2576114f96114fe916114f46114ec87611275565b828991613906565b61128d565b611299565b6020636e553f659186906115255f87956115306115196100e4565b97889687958694610d4e565b8452600484016112d0565b03925af180156115bd57611591575b505b9091926115776115717f60a8967134f601852f621763dea4ae527e95693649621676284d850755d939cf936107dd565b936112f3565b9361158c6115836100e4565b928392836112ff565b0390a3565b6115b19060203d81116115b6575b6115a98183610635565b8101906112a5565b61153f565b503d61159f565b610e03565b506115d76115cf84611275565b83869161386b565b611541565b6115f56115f06115eb5f610d19565b610e6c565b610e78565b63ad77611684823b156116715761162b926116205f80946116146100e4565b96879586948593610d4e565b835260048301611237565b03925af1801561166c57611640575b50611496565b61165f905f3d8111611665575b6116578183610635565b810190610ec5565b5f61163a565b503d61164d565b610e03565b610d4a565b611697915060203d811161169d575b61168f8183610635565b810190610ea7565b5f61148a565b503d611685565b610e03565b92506116c260206116bb5f8601610e1b565b9401610e53565b936114b6565b6116e9915060603d81116116ef575b6116e18183610635565b810190610dc3565b5f6113ec565b503d6116d7565b610e03565b5f636507689f60e01b81528061171360048201610143565b0390fd5b906020828203126117305761172d915f01610d54565b90565b6100ee565b903361177b60206117657f000000000000000000000000a78184dd4165d855c74e02e07270898396cfc1176101e4565b638da5cb5b906117736100e4565b938492610d4e565b8252818061178b60048201610143565b03915afa90811561180a576117b1916117ab915f916117dc575b5061028a565b9161028a565b036117c1576117bf91611996565b565b5f6282b42960e81b8152806117d860048201610143565b0390fd5b6117fd915060203d8111611803575b6117f58183610635565b810190611717565b5f6117a5565b503d6117eb565b610e03565b60401c90565b6118216118269161180f565b6107ff565b90565b6118339054611815565b90565b67ffffffffffffffff1690565b61184f61185491610bc1565b611836565b90565b6118619054611843565b90565b67ffffffffffffffff1690565b61188561188061188a92610e28565b6101b9565b611864565b90565b90565b6118a461189f6118a99261188d565b6101b9565b611864565b90565b6118b5906101d8565b90565b6118cc6118c76118d192610e28565b6101b9565b6103b5565b90565b906118e767ffffffffffffffff91610cbb565b9181191691161790565b61190561190061190a92611864565b6101b9565b611864565b90565b90565b9061192561192061192c926118f1565b61190d565b82546118d4565b9055565b60401b90565b9061194a68ff000000000000000091611930565b9181191691161790565b9061196961196461197092610cd6565b610ce2565b8254611936565b9055565b61197d90611890565b9052565b9190611994905f60208501940190611974565b565b9061199f6139a6565b916119b46119ae5f8501611829565b15610844565b916119c05f8501611857565b806119d36119cd5f611871565b91611864565b1480611aed575b906119ee6119e86001611890565b91611864565b1480611ac5575b611a00909115610844565b9081611ab4575b50611a9857611a3091611a25611a1d6001611890565b5f8701611910565b83611a86575b611b32565b611a38575b50565b611a45905f809101611954565b6001611a7d7fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d291611a746100e4565b91829182611981565b0390a15f611a35565b611a9360015f8701611954565b611a2b565b5f63f92ee8a960e01b815280611ab060048201610143565b0390fd5b611abf915015610844565b5f611a07565b50611a00611ad2306118ac565b3b611ae5611adf5f6118b8565b916103b5565b1490506119f5565b50836119da565b90611b0560018060a01b0391610cbb565b9181191691161790565b90565b90611b27611b22611b2e926112f3565b611b0f565b8254611af4565b9055565b90611b40611b71925f611b12565b6020611b5b611b56611b515f610d19565b610e6c565b610e78565b6370372d8590611b696100e4565b948592610d4e565b82528180611b8160048201610143565b03915afa918215611c7157611bd592611ba3915f91611c43575b506001611b12565b6020611bbf611bba611bb56001610d19565b610d32565b610d3e565b630cb352e090611bcd6100e4565b948592610d4e565b82528180611be560048201610143565b03915afa918215611c3e57611c0e92611c07915f91611c10575b506002611b12565b6003611b12565b565b611c31915060203d8111611c37575b611c298183610635565b810190611717565b5f611bff565b503d611c1f565b610e03565b611c64915060203d8111611c6a575b611c5c8183610635565b810190611717565b5f611b9b565b503d611c52565b610e03565b90611c8091611735565b565b919033611cc96020611cb37f000000000000000000000000a78184dd4165d855c74e02e07270898396cfc1176101e4565b638da5cb5b90611cc16100e4565b938492610d4e565b82528180611cd960048201610143565b03915afa908115611d5857611cff91611cf9915f91611d2a575b5061028a565b9161028a565b03611d0f57611d0d92611dd7565b565b5f6282b42960e81b815280611d2660048201610143565b0390fd5b611d4b915060203d8111611d51575b611d438183610635565b810190611717565b5f611cf3565b503d611d39565b610e03565b905090565b611d6d5f8092611d5d565b0190565b611d7a90611d62565b90565b90611d8f611d8a83610673565b61065e565b918252565b606090565b3d5f14611db457611da93d611d7d565b903d5f602084013e5b565b611dbc611d94565b90611db2565b9190611dd5905f602085019401906112c3565b565b80611df2611dec611de75f610e47565b61028a565b9161028a565b145f14611e9757611e265f808585611e086100e4565b9081611e1381611d71565b03925af1611e1f611d99565b5015610844565b611e7b575b919091611e76611e64611e5e7ff24ef89f38eadc1bde50701ad6e4d6d11a2dc24f7cf834a486991f3883328504936112f3565b936112f3565b93611e6d6100e4565b91829182611dc2565b0390a3565b5f633d2cec6f60e21b815280611e9360048201610143565b0390fd5b611eab611ea382611275565b84849161386b565b611e2b565b90611ebb9291611c82565b565b611ec6906101d8565b90565b611ed2906101d8565b90565b60209181520190565b9190611ef881611ef181611efd95611ed5565b8095610696565b610617565b0190565b9290611f2a90611f389593611f1d60608701925f880190610296565b858203602087015261114a565b926040818503910152611ede565b90565b634e487b7160e01b5f52601160045260245ffd5b611f5e611f64919392936103b5565b926103b5565b8203918211611f6f57565b611f3b565b60209181520190565b5f7f6e6f2066756e6473207265636569766564000000000000000000000000000000910152565b611fb16011602092611f74565b611fba81611f7d565b0190565b611fd39060208101905f818303910152611fa4565b90565b15611fdd57565b611fe56100e4565b62461bcd60e51b815280611ffb60048201611fbe565b0390fd5b9092612052602061202061201b6120166003610d19565b611275565b611ebd565b6370a082319061204761203230611ec9565b9261203b6100e4565b95869485938493610d4e565b8352600483016102a3565b03915afa90811561226b575f9161223d575b509161208061207b6120766001610d19565b610d32565b610d3e565b635558c150903490919087969491833b15612238576120bd6120b2935f976120a66100e4565b9a8b9889978896610d4e565b865260048601611f01565b03925af19182156122335761212092612207575b5060206120ee6120e96120e46003610d19565b611275565b611ebd565b6370a082319061211561210030611ec9565b926121096100e4565b96879485938493610d4e565b8352600483016102a3565b03915afa80156122025761214360a0925f926121909584916121d4575b50611f4f565b936121608561215a612154856118b8565b916103b5565b11611fd6565b6121896121756121706003610d19565b611275565b612182858585010161124f565b879161386b565b010161124f565b6121cf6121bd7f5e112e8f101fba203c96a3f74bc00c9531211812c1dbe17f786447701570d4c2926112f3565b926121c66100e4565b91829182611dc2565b0390a2565b6121f5915060203d81116121fb575b6121ed8183610635565b8101906112a5565b5f61213d565b503d6121e3565b610e03565b612226905f3d811161222c575b61221e8183610635565b810190610ec5565b5f6120d1565b503d612214565b610e03565b610d4a565b61225e915060203d8111612264575b6122568183610635565b8101906112a5565b5f612064565b503d61224c565b610e03565b5f7f496e76616c69642073656e646572000000000000000000000000000000000000910152565b6122a4600e602092611f74565b6122ad81612270565b0190565b6122c69060208101905f818303910152612297565b90565b156122d057565b6122d86100e4565b62461bcd60e51b8152806122ee600482016122b1565b0390fd5b5090565b5090565b61230e6123096123139261188d565b6101b9565b6103b5565b90565b5f7f496e76616c696420746f6b656e73206f7220616d6f756e747300000000000000910152565b61234a6019602092611f74565b61235381612316565b0190565b61236c9060208101905f81830391015261233d565b90565b1561237657565b61237e6100e4565b62461bcd60e51b81528061239460048201612357565b0390fd5b634e487b7160e01b5f52603260045260245ffd5b91908110156123bc576020020190565b612398565b91908110156123d1576020020190565b612398565b905051906123e382610c46565b565b608081830312612426576123fb825f83016123d6565b9261242361240c84602085016123d6565b9361241a81604086016123d6565b93606001610d63565b90565b6100ee565b5190565b5f7f496e76616c6964206f757470757420746f6b656e000000000000000000000000910152565b6124636014602092611f74565b61246c8161242f565b0190565b6124859060208101905f818303910152612456565b90565b1561248f57565b6124976100e4565b62461bcd60e51b8152806124ad60048201612470565b0390fd5b9160206124d29294936124cb60408201965f8301906112c3565b01906112c3565b565b5093919290339461251060206124fa6124f56124f06001610d19565b610d32565b610d3e565b630cb352e0906125086100e4565b938492610d4e565b8252818061252060048201610143565b03915afa9384156128a9576125b46125af6125e1956125ca956125676125ea9c61256161255b6125f09c6125c59a5f9161287b575b5061028a565b9161028a565b146122c9565b8a61258f61258961258461257c8587906122f2565b9389906122f6565b6103b5565b916103b5565b1480612851575b61259f9061236f565b906125a95f6118b8565b916123ac565b61125c565b96906125bf5f6118b8565b916123c1565b61124f565b9260206125d68261242b565b8183010191016123e5565b50959150610caf565b93610caf565b908361260c6126066126015f610e47565b61028a565b9161028a565b14801561282f575b612813576126456126248561128d565b602061262f82611299565b6338d52e0f9061263d6100e4565b948592610d4e565b8252818061265560048201610143565b03915afa91821561280e576126a192612688915f916127e0575b5061268261267c8661028a565b9161028a565b14612488565b61269c61269484611275565b878791613906565b611299565b6020636e553f659185906126c85f87956126d36126bc6100e4565b97889687958694610d4e565b8452600484016112d0565b03925af180156127db576127af575b506126ec30611ec9565b3193846127016126fb5f6118b8565b916103b5565b11612761575b9091929361274761274161273b7f4a1f030afa3d9c058e18072d165e29d0bfd6d96219154a9a2fad1292f21584bc946112f3565b946112f3565b946112f3565b9461275c6127536100e4565b928392836124b1565b0390a4565b61278e5f8085886127706100e4565b908161277b81611d71565b03925af1612787611d99565b5015610844565b15612707575f633d2cec6f60e21b8152806127ab60048201610143565b0390fd5b6127cf9060203d81116127d4575b6127c78183610635565b8101906112a5565b6126e2565b503d6127bd565b610e03565b612801915060203d8111612807575b6127f98183610635565b810190611717565b5f61266f565b503d6127ef565b610e03565b5f63e6c4247b60e01b81528061282b60048201610143565b0390fd5b508161284b6128456128405f610e47565b61028a565b9161028a565b14612614565b5061259f6128608c87906122f6565b61287361286d60016122fa565b916103b5565b149050612596565b61289c915060203d81116128a2575b6128948183610635565b810190611717565b5f612555565b503d61288a565b610e03565b93929190336128ed6128e76128e27f000000000000000000000000a78184dd4165d855c74e02e07270898396cfc1176101e4565b61028a565b9161028a565b036128fd576128fb94612c31565b565b5f6308449d9160e31b81528061291560048201610143565b0390fd5b90602082820312612949575f82013567ffffffffffffffff8111612944576129419201610ace565b90565b6100f2565b6100ee565b90565b61296561296061296a9261294e565b6101b9565b6103b5565b90565b60207f6800000000000000000000000000000000000000000000000000000000000000917f496e76616c69642064657374696e6174696f6e5061796c6f6164206c656e67745f8201520152565b6129c76021604092611f74565b6129d08161296d565b0190565b6129e99060208101905f8183039101526129ba565b90565b156129f357565b6129fb6100e4565b62461bcd60e51b815280612a11600482016129d4565b0390fd5b906101a080612b1a93612a2e5f8201515f860190610eea565b612a4060208201516020860190610eea565b612a5260408201516040860190610eea565b612a6460608201516060860190610eea565b612a7660808201516080860190610f09565b612a8860a082015160a0860190610f09565b612a9a60c082015160c0860190610f09565b612aac60e082015160e0860190610f09565b612ac0610100820151610100860190610f28565b612ad4610120820151610120860190610f09565b612ae8610140820151610140860190610eea565b612afc610160820151610160860190610f09565b612b10610180820151610180860190610eea565b0151910190610eea565b565b90825f9392825e0152565b612b46612b4f602093612b5493612b3d8161242b565b9384809361111e565b95869101612b1c565b610617565b0190565b90612bfa9061028060e0612bef612bc96102a08501612b7d5f8901515f880190612a15565b612b9060208901516101c0880190610f09565b612ba360408901516101e0880190610eea565b612bb660608901516102008801906110bf565b6080880151868203610220880152612b27565b612bdc60a0880151610240870190610eea565b60c0870151858203610260870152612b27565b940151910190610f09565b90565b612c129160208201915f818403910152612b58565b90565b612c29612c24612c2e926103b5565b6101b9565b6103b5565b90565b919293612c42919490810190612919565b90612c5260a05f84015101610e1b565b612c6c612c66612c615f610e47565b61028a565b9161028a565b14612eb657612c8060c05f84015101610e1b565b612c9a612c94612c8f5f610e47565b61028a565b9161028a565b14612e9a57612cf290612cf8612ce960c0850151612cd3612cba8261242b565b612ccd612cc76080612951565b916103b5565b146129ec565b6020612cde8261242b565b8183010191016123e5565b50949150610caf565b92610caf565b9482612d14612d0e612d095f610e47565b61028a565b9161028a565b14908115612e7d575b50612e6157612d4c81612d47612d35612d5c94611275565b33612d3f30611ec9565b9089926139b1565b611275565b612d555f610d19565b8591613906565b612d75612d70612d6b5f610d19565b610e6c565b610e78565b6369e0a55634919091908490803b15612e5c57612da55f93612db095612d996100e4565b96879586948593610d4e565b835260048301612bfd565b03925af18015612e5757612dd3926020925f92612e2b575b509593015101610e53565b9192612e26612e14612e0e612e087f61f98b0dd589e230a91224572fed491e171020062b2a3e93701d812eb23ad50a946112f3565b946112f3565b94612c15565b94612e1d6100e4565b91829182611dc2565b0390a4565b612e4a90833d8111612e50575b612e428183610635565b810190610ec5565b5f612dc8565b503d612e38565b610e03565b610d4a565b5f63e6c4247b60e01b815280612e7960048201610143565b0390fd5b9050612e92612e8c879261028a565b9161028a565b14155f612d1d565b5f63e6c4247b60e01b815280612eb260048201610143565b0390fd5b5f63e6c4247b60e01b815280612ece60048201610143565b0390fd5b90612edf949392916128ae565b565b5f90565b905090565b5f7f4261736963526571756573742800000000000000000000000000000000000000910152565b612f1d600d8092612ee5565b612f2681612eea565b0190565b5f7f75696e74323536206f726967696e436861696e49642c00000000000000000000910152565b612f5d60168092612ee5565b612f6681612f2a565b0190565b5f7f75696e743235362064657374696e6174696f6e436861696e49642c0000000000910152565b612f9d601b8092612ee5565b612fa681612f6a565b0190565b5f7f75696e7432353620646561646c696e652c000000000000000000000000000000910152565b612fdd60118092612ee5565b612fe681612faa565b0190565b5f7f75696e74323536206e6f6e63652c000000000000000000000000000000000000910152565b61301d600e8092612ee5565b61302681612fea565b0190565b5f7f616464726573732073656e6465722c0000000000000000000000000000000000910152565b61305d600f8092612ee5565b6130668161302a565b0190565b5f7f616464726573732072656365697665722c000000000000000000000000000000910152565b61309d60118092612ee5565b6130a68161306a565b0190565b5f7f616464726573732064656c65676174652c000000000000000000000000000000910152565b6130dd60118092612ee5565b6130e6816130aa565b0190565b5f7f616464726573732062756e676565476174657761792c00000000000000000000910152565b61311d60168092612ee5565b613126816130ea565b0190565b5f7f75696e74333220737769746368626f61726449642c0000000000000000000000910152565b61315d60158092612ee5565b6131668161312a565b0190565b5f7f6164647265737320696e707574546f6b656e2c00000000000000000000000000910152565b61319d60138092612ee5565b6131a68161316a565b0190565b5f7f75696e7432353620696e707574416d6f756e742c000000000000000000000000910152565b6131dd60148092612ee5565b6131e6816131aa565b0190565b5f7f61646472657373206f7574707574546f6b656e2c000000000000000000000000910152565b61321d60148092612ee5565b613226816131ea565b0190565b60207f72656675656c416d6f756e742900000000000000000000000000000000000000917f75696e74323536206d696e4f7574707574416d6f756e742c75696e74323536205f8201520152565b613283602d8092612ee5565b61328c8161322a565b0190565b6132fc6132f76132f26132ed6132e86132e36132de6132d96132d46132cf6132ca6132c56132c06133019d612f11565b612f51565b612f91565b612fd1565b613011565b613051565b613091565b6130d1565b613111565b613151565b613191565b6131d1565b613211565b613277565b90565b61330c6100e4565b61332b8161331c60208201613290565b60208201810382520382610635565b90565b5f7f5265717565737428000000000000000000000000000000000000000000000000910152565b61336160088092612ee5565b61336a8161332e565b0190565b5f7f4261736963526571756573742062617369635265712c00000000000000000000910152565b6133a160168092612ee5565b6133aa8161336e565b0190565b5f7f6164647265737320737761704f7574707574546f6b656e2c0000000000000000910152565b6133e160188092612ee5565b6133ea816133ae565b0190565b5f7f75696e74323536206d696e537761704f75747075742c00000000000000000000910152565b61342160168092612ee5565b61342a816133ee565b0190565b5f7f62797465733332206d657461646174612c000000000000000000000000000000910152565b61346160118092612ee5565b61346a8161342e565b0190565b5f7f627974657320616666696c69617465466565732c000000000000000000000000910152565b6134a160148092612ee5565b6134aa8161346e565b0190565b5f7f75696e74323536206d696e446573744761732c00000000000000000000000000910152565b6134e160138092612ee5565b6134ea816134ae565b0190565b5f7f62797465732064657374696e6174696f6e5061796c6f61642c00000000000000910152565b61352160198092612ee5565b61352a816134ee565b0190565b5f7f61646472657373206578636c75736976655472616e736d697474657229000000910152565b613561601d8092612ee5565b61356a8161352e565b0190565b6135b26135ad6135a86135a361359e61359961359461358f6135b798613355565b613395565b6133d5565b613415565b613455565b613495565b6134d5565b613515565b613555565b90565b6135c26100e4565b6135e1816135d26020820161356e565b60208201810382520382610635565b90565b613609613600926020926135f78161242b565b94858093611d5d565b93849101612b1c565b0190565b61361b9061362193926135e4565b906135e4565b90565b67ffffffffffffffff81116136425761363e602091610617565b0190565b610621565b9061365961365483613624565b61065e565b918252565b60207f696e7432353620616d6f756e7429000000000000000000000000000000000000917f546f6b656e5065726d697373696f6e73286164647265737320746f6b656e2c755f8201520152565b6136b5602e613647565b906136c26020830161365e565b565b6136cc6136ab565b90565b6136d76136c4565b90565b5f7f52657175657374207769746e6573732900000000000000000000000000000000910152565b61370d60108092612ee5565b613716816136da565b0190565b5190565b61374361373a926020926137318161371a565b94858093612ee5565b93849101612b1c565b0190565b613764929161375861375e92613701565b906135e4565b9061371e565b90565b90565b6137de613775613304565b6137a76137806135ba565b9161379861378c6100e4565b9384926020840161360d565b60208201810382520382610635565b6137d96137b26136cf565b916137ca6137be6100e4565b93849260208401613747565b60208201810382520382610635565b613767565b90565b906137ea612ee1565b506137f3612ee1565b5061386861386361380384613af0565b936138146101205f83015101610e1b565b906138256101405f83015101610e53565b61383460605f84015101610e53565b61384360405f85015101610e53565b90889261385d60e05f61385461376a565b97015101610e1b565b95613bf6565b613d2a565b90565b916138849161387e918491600192613e08565b15610844565b61388b5750565b6138976138ae91611ebd565b5f918291635274afe760e01b8352600483016102a3565b0390fd5b6138bb906101d8565b90565b9160206138df9294936138d860408201965f830190610296565b0190610296565b565b6138f06138f6919392936103b5565b926103b5565b820180921161390157565b611f3b565b61390f81611ebd565b602063dd62ed3e91613920306138b2565b9061393d86946139486139316100e4565b96879586948594610d4e565b8452600484016138be565b03915afa9384156139a1576139719461396b925f91613973575b509293926138e1565b91613e72565b565b613994915060203d811161399a575b61398c8183610635565b8101906112a5565b5f613962565b503d613982565b610e03565b6139ae613f76565b90565b92906139ce926139c8928592919091600193613f8a565b15610844565b6139d55750565b6139e16139f891611ebd565b5f918291635274afe760e01b8352600483016102a3565b0390fd5b613a046135ba565b613a36613a0f613304565b91613a27613a1b6100e4565b9384926020840161360d565b60208201810382520382610635565b90565b60200190565b613a476139fc565b613a59613a538261242b565b91613a39565b2090565b613a67905161056f565b90565b9694929099989795939161012088019a5f8901613a8691610de1565b60208801613a9391610de1565b60408701613aa091610296565b60608601613aad916112c3565b60808501613aba91610de1565b60a08401613ac791610de1565b60c08301613ad4916112c3565b60e08201613ae191610de1565b61010001613aee91610296565b565b613af8612ee1565b50613ba7613b04613a3f565b613b98613b135f85015161414a565b93613b2060208201610e1b565b90613b2d60408201610e53565b613b3960608301613a5d565b6080830151613b50613b4a8261242b565b91613a39565b2090613b5e60a08501610e53565b92613b8360e060c0870151613b7b613b758261242b565b91613a39565b209601610e1b565b95613b8c6100e4565b9a8b9960208b01613a6a565b60208201810382520382610635565b613bb9613bb38261242b565b91613a39565b2090565b613bc7604061065e565b90565b90613bd49061028a565b9052565b90613be2906103b5565b9052565b613bf0606061065e565b90565b52565b92613c4d613c5692613c2f613c5f99979896613c10612ee1565b5091613c26613c1d613bbd565b935f8501613bca565b60208301613bd8565b93613c44613c3b613be6565b955f8701613bf3565b60208501613bd8565b60408301613bd8565b929091926143bd565b90565b6e22d473030f116ddee9f6b43ac78ba390565b613c7e906101bc565b90565b613c8a90613c75565b90565b613c96906101d8565b90565b90505190613ca682610572565b565b90602082820312613cc157613cbe915f01613c99565b90565b6100ee565b5f61190160f01b910152565b613cde60028092612ee5565b613ce781613cc6565b0190565b90565b613cfa613cff9161056f565b613ceb565b9052565b6020809392613d1e613d17613d2694613cd2565b8092613cee565b018092613cee565b0190565b613d6790613d36612ee1565b506020613d51613d4c613d47613c62565b613c81565b613c8d565b633644e51590613d5f6100e4565b948592610d4e565b82528180613d7760048201610143565b03915afa918215613dff575f92613dcb575b50613db59091613da6613d9a6100e4565b93849260208401613d03565b60208201810382520382610635565b613dc7613dc18261242b565b91613a39565b2090565b613db5919250613df19060203d8111613df8575b613de98183610635565b810190613ca8565b9190613d89565b503d613ddf565b610e03565b5f90565b9091939293613e15613e04565b5063a9059cbb60e01b92604051935f525f1960601c1660045260245260205f60448180855af19360015f5114851615613e50575b5050604052565b8492941516613e69575f903b113d151616915f80613e49565b833d5f823e3d90fd5b91613e8a613e84848484905f92614474565b15610844565b613e94575b505050565b613eb6613eb08484905f91613eaa6001936118b8565b91614474565b15610844565b613f0457613ed291613ecc918491600192614474565b15610844565b613edd578080613e8f565b613ee9613f0091611ebd565b5f918291635274afe760e01b8352600483016102a3565b0390fd5b613f27613f1084611ebd565b5f918291635274afe760e01b8352600483016102a3565b0390fd5b90565b613f42613f3d613f4792613f2b565b610cbb565b61056f565b90565b613f737ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00613f2e565b90565b613f7e612ee1565b50613f87613f4a565b90565b91949394929092613f99613e04565b506323b872dd60e01b93604051945f525f1960601c166004525f1960601c1660245260445260205f60648180855af19360015f5114851615613fe1575b50506040525f606052565b8492941516613ffa575f903b113d151616915f80613fd6565b833d5f823e3d90fd5b61400b613304565b61401d6140178261242b565b91613a39565b2090565b61402b905161097d565b90565b6140379061097d565b9052565b9e9d9c9b9a999897969594939291909e6080526080516101c0019e6080515f01614064916112c3565b608051602001614073916112c3565b608051604001614082916112c3565b608051606001614091916112c3565b6080516080016140a091610296565b60805160a0016140af91610296565b60805160c0016140be91610296565b60805160e0016140cd91610296565b608051610100016140dd9161402e565b608051610120016140ed91610296565b608051610140016140fd916112c3565b6080516101600161410d91610296565b6080516101800161411d916112c3565b6080516101a00161412d916112c3565b565b806141406020926141479594613cee565b01906135e4565b90565b614152612ee1565b5061415b614003565b90468160200161416a90610e53565b908260400161417890610e53565b928060600161418690610e53565b908060800161419490610e1b565b8160a0016141a190610e1b565b8260c0016141ae90610e1b565b8360e0016141bb90610e1b565b84610100016141c990614021565b9085610120016141d890610e1b565b9286610140016141e790610e53565b9487610160016141f690610e1b565b96886101800161420590610e53565b986101a00161421390610e53565b9961421c6100e4565b9d8e9d60208f019d61422d9e61403b565b6020820181038252036142409082610635565b6142486100e4565b91829160208301916142599261412f565b60208201810382520361426c9082610635565b6142758161242b565b9061427f90613a39565b2090565b60607f696e652c00000000000000000000000000000000000000000000000000000000917f5065726d69745769746e6573735472616e7366657246726f6d28546f6b656e505f8201527f65726d697373696f6e73207065726d69747465642c616464726573732073706560208201527f6e6465722c75696e74323536206e6f6e63652c75696e7432353620646561646c60408201520152565b6143266064613647565b9061433360208301614283565b565b61433d61431c565b90565b614348614335565b90565b6143599061435f939261371e565b9061371e565b90565b91946143aa6143b4929897956143a060a0966143966143bb9a61438c60c08a019e5f8b0190610de1565b6020890190610de1565b6040870190610296565b60608501906112c3565b60808301906112c3565b0190610de1565b565b61444f9061445e936143cd612ee1565b506143ff6143d9614340565b6143f06143e46100e4565b9384926020840161434b565b60208201810382520382610635565b61441161440b8261242b565b91613a39565b209261441f5f830151614549565b9591614439604061443260208401610e53565b9201610e53565b91926144436100e4565b97889660208801614362565b60208201810382520382610635565b61447061446a8261242b565b91613a39565b2090565b9091939293614481613e04565b5063095ea7b360e01b92604051935f525f1960601c1660045260245260205f60448180855af19360015f51148516156144bc575b5050604052565b84929415166144d5575f903b113d151616915f806144b5565b833d5f823e3d90fd5b7f618358ac3db8dc274f0cd8829da7e234bd48cd73c4a740aede1adec9846d06a190565b906020806145249361451a5f8201515f860190610f09565b0151910190610eea565b565b91602061454792949361454060608201965f830190610de1565b0190614502565b565b614551612ee1565b5061458361455d6144de565b6145746145686100e4565b93849260208401614526565b60208201810382520382610635565b61459561458f8261242b565b91613a39565b209056

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000a78184dd4165d855c74e02e07270898396cfc117

-----Decoded View---------------
Arg [0] : _hopper (address): 0xa78184dD4165d855C74e02e07270898396Cfc117

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a78184dd4165d855c74e02e07270898396cfc117


Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.