@orbs-network/spot-react 0.0.40 → 0.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ var Sc = (e, t, r, n) => ({
14
14
  }
15
15
  });
16
16
  import { jsx as _, jsxs as fe, Fragment as mo } from "react/jsx-runtime";
17
- import * as wt from "react";
17
+ import * as vt from "react";
18
18
  import te, { Component as qx, createElement as _a, createContext as Ki, useContext as Zl, useMemo as ee, useEffect as rs, useState as yf, useRef as _m, useCallback as Fe } from "react";
19
19
  import Yx from "react-dom";
20
20
  const Kx = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B290FEB04E353d1821bc0a12397FdEa9a846C0", lensAddress: "0x0221EfDF1Fd3212AF87F23cceB7693a65fAF1d7f", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SpookySwap", partner: "Orbs:TWAP:SpookySwap", exchangeAddress: "0xdF7CCd5fc7077E9de5f27a7b7bfDC837c82f8496", exchangeType: "ExchangeV2", pathfinderKey: "" }, Zx = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SpookySwapSonic", partner: "Orbs:TWAP:SpookySwap", exchangeAddress: "0x6699bE3aF75e5c1B807b1031dBde6dA9A67739F3", exchangeType: "ExchangeV2", pathfinderKey: "" }, Xx = { chainName: "poly", chainId: 137, twapVersion: 4, twapAddress: "0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4", lensAddress: "0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "QuickSwap", partner: "Orbs:TWAP:QuickSwap", exchangeAddress: "0x8FCc245209bE85C49D738D0CE5613F74E5d91E86", exchangeType: "ParaswapExchange", pathfinderKey: "QuickSwap,QuickSwapV3" }, Qx = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "QuickSwap", partner: "Orbs:TWAP:QuickSwap", exchangeAddress: "0xb7a3d74895bfd3aff6780525e36d79fcf26a895f", exchangeType: "ExchangeV2", pathfinderKey: "" }, Jx = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Chronos", partner: "Orbs:TWAP:Chronos", exchangeAddress: "0x0178e50adAF3b925F27aC518FCd952CE7F9A3B36", exchangeType: "ExchangeV2", pathfinderKey: "Chronos Stable,Chronos Volatile,Chronos V3" }, e5 = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "BaseSwap", partner: "Orbs:TWAP:BaseSwap", exchangeAddress: "0xAca3155c17530C4aA96746F226fcC049658490d2", exchangeType: "ExchangeV2", pathfinderKey: "BaseSwap,BaseSwapX" }, t5 = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Arbidex", partner: "Orbs:TWAP:Arbidex", exchangeAddress: "0x49d21052f4695d16C7cce6eF561301Aa4d840420", exchangeType: "ExchangeV2", pathfinderKey: "Arbidex Classic,Arbidex Quantum" }, r5 = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Thena", partner: "Orbs:TWAP:Thena", exchangeAddress: "0x2B2fABDbfa4a15da0d351F947C14F4520db0bDc1", exchangeType: "ExchangeV2", pathfinderKey: "43,47" }, n5 = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0x1A2bb6B75D58b740d88413ef4840D6fa3F637940", exchangeType: "P2Exchange", pathfinderKey: "" }, s5 = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, a5 = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, o5 = { chainName: "linea", chainId: 59144, twapVersion: 4, twapAddress: "0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78", lensAddress: "0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "PancakeSwap", partner: "Orbs:TWAP:PancakeSwap", exchangeAddress: "0xb37cB9A058c03081Ae6EF934313588cD53d408e7", exchangeType: "P2Exchange", pathfinderKey: "" }, i5 = { chainName: "linea", chainId: 59144, twapVersion: 4, twapAddress: "0x48423e62acbfEF7779b5b4a5E7d6Fbd39E623d78", lensAddress: "0xe84CaEc86eCF3f0AB4267dC6130D9a5510e73DFb", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "Lynex", partner: "Orbs:TWAP:Lynex", exchangeAddress: "0x04C06C96d7D19977156016DD408B5992af0570a2", exchangeType: "ExchangeV2", pathfinderKey: "19,18" }, c5 = { chainName: "zkSync", chainId: 324, twapVersion: 4, twapAddress: "0xc32cAA0F7AD9ED88e22Fc214fc24cCb5C0595D68", lensAddress: "0x7daE5af3011c3bE9A5283F0368a3fdD757fc74F9", takers: ["0xB924C20c400575D2B73Baa16CF0Fa0EAA720aFBC", "0xBE452F03Be354CAC397C3F0c8397672067D44531"], bidDelaySeconds: 60, minChunkSizeUsd: 100, name: "SyncSwap", partner: "Orbs:TWAP:SyncSwap", exchangeAddress: "0x422623a40c42f026Ed33A9910078Aa843FD66e27", exchangeType: "ExchangeV2", pathfinderKey: "2,3" }, l5 = { chainName: "poly", chainId: 137, twapVersion: 4, twapAddress: "0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4", lensAddress: "0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "Retro", partner: "Orbs:TWAP:Retro", exchangeAddress: "0xb7A3d74895bFD3Aff6780525e36D79FCf26a895F", exchangeType: "ExchangeV2", pathfinderKey: "retro,retro-v3" }, u5 = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiArb", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, d5 = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiBase", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, p5 = { chainName: "eth", chainId: 1, twapVersion: 4, twapAddress: "0xb1ed8BCAD1EaC8a1DF0764700472391800D12946", lensAddress: "0x0967f448c4d4dbd14c355E635AE9CbF68cc44A60", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 200, name: "SushiEth", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x04eB53119079FA779492720D1EfeAEBF0aF2e5ad", exchangeType: "ExchangeV2", pathfinderKey: "" }, f5 = { chainName: "katana", chainId: 747474, twapVersion: 4, twapAddress: "0xf2d96E7BE676153d202e1453804E2749923C7c5b", lensAddress: "0x1579EED0527781B1A748043AA1f59a3858Ace4a7", takers: ["0xF74437A3Fc45a518640828E5D6A3E8c9A9BbDC3a", "0x07A6C715063e94c0D95e809efefFCbF4EBEdfD55"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "SushiKatana", partner: "Orbs:TWAP:Sushi", exchangeAddress: "0x92209481507e6B2d14C9b5b70Ed287024177220E", exchangeType: "ExchangeV2", pathfinderKey: "" }, m5 = { chainName: "sei", chainId: 1329, twapVersion: 4, twapAddress: "0xde737dB24548F8d41A4a3Ca2Bac8aaaDc4DBA099", lensAddress: "0xa1376f2Bb80D3cF6c2D8ebEf34b3d122e9af4020", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "DragonSwap", partner: "Orbs:TWAP:DragonSwap", exchangeAddress: "0xf2F933FafbDB97062CfA3c447ff373e76A90Efd6", exchangeType: "ExchangeV2", pathfinderKey: "" }, h5 = { chainName: "poly", chainId: 137, twapVersion: 4, twapAddress: "0x688C027B0f7FaCeFcBa73e472900d28c12C5bDF4", lensAddress: "0xe0D4E736fc76af7C256ae7652c8c1e850bfb7849", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "TeaFi", partner: "Orbs:TWAP:TeaFi", exchangeAddress: "0xE9D3b4Cf5B0CC392e78C1a4DD9885D449EEF9793", exchangeType: "ParaswapExchange", pathfinderKey: "AaveV2,AaveV3,AaveV3Stata,AngleStakedStableEUR,AngleStakedStableUSD,ApeSwap,AugustusRFQ,BalancerV2,ComethSwap,CurveV1,CurveV1Factory,CurveV1StableNg,CurveV2,Dfyn,DODOV2,Dystopia,Hashflow,IronV2,JarvisV6,KyberDmm,QuickSwap,QuickSwapV3,Retro,SushiSwap,SushiSwapV3,SwaapV2,Synapse,UniswapV2,UniswapV3,WaultFinance,Wmatic,WooFiV2,wUSDM" }, b5 = { chainName: "flare", chainId: 14, twapVersion: 4, twapAddress: "0x9D70B0b90915Bb8b9bdAC7e6a7e6435bBF1feC4D", lensAddress: "0xf2d96E7BE676153d202e1453804E2749923C7c5b", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SparkDEX", partner: "Orbs:TWAP:SparkDEX", exchangeAddress: "0xe59c53C76bB7EEc01401A18fA8215B94bC65Bf56", exchangeType: "P2Exchange" }, y5 = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "Ramses", partner: "Orbs:TWAP:Ramses", exchangeAddress: "0x8FCc245209bE85C49D738D0CE5613F74E5d91E86", exchangeType: "ParaswapExchange", pathfinderKey: "" }, g5 = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "SwapX", partner: "Orbs:TWAP:SwapX", exchangeAddress: "0xDA902994b7F7a1ecDd8De02E4a17dbFF2E6F67b7", exchangeType: "ExchangeV2", pathfinderKey: "" }, x5 = { chainName: "cronos-zkevm", chainId: 388, twapVersion: 4, twapAddress: "0xc32cAA0F7AD9ED88e22Fc214fc24cCb5C0595D68", lensAddress: "0x7daE5af3011c3bE9A5283F0368a3fdD757fc74F9", takers: ["0xB924C20c400575D2B73Baa16CF0Fa0EAA720aFBC", "0xBE452F03Be354CAC397C3F0c8397672067D44531"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "H2Finance", partner: "Orbs:TWAP:H2Finance", exchangeAddress: "0x2f1f10dc311722Be609e6B427bF3FBac6e44093B", exchangeType: "ExchangeV2" }, w5 = { chainName: "sonic", chainId: 146, twapVersion: 4, twapAddress: "0x8963992816b4EafE5a22b7DB2A99513c18be9afA", lensAddress: "0x67e631F71232D63AcA98a2D5E9B2Bce5FCc39d5D", takers: ["0xDF406A27C58a8Cd6Fd43e143339bCE131216a913", "0x504f6E10173249dD22491829D98862Cf81DeF79E"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "Shadow", partner: "Orbs:TWAP:Shadow", exchangeAddress: "0x69e3c891450161b7BF27f181eE85E7bAE69E5b07", exchangeType: "ExchangeV2" }, v5 = { chainName: "berachain", chainId: 80094, twapVersion: 4, twapAddress: "0xD13609A8ace04D11Ea2FFE176B69dF77C6d9375E", lensAddress: "0xA0b07F9a11dFb01388149abBdbc5B4f2196600AB", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "Kodiak", partner: "Orbs:TWAP:Kodiak", exchangeAddress: "0x69B7aE1250B8d1309954CaD65b6607ae478Ec6eE", exchangeType: "ExchangeV2" }, E5 = { chainName: "base", chainId: 8453, twapVersion: 4, twapAddress: "0xc918bdC47264687796Cd54FE362FaC4f8b99Eb55", lensAddress: "0x6313188c1909b161074D62E43105faC9B756A23e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 10, name: "OmniBase", partner: "Orbs:TWAP:OmniBase", exchangeAddress: "0x54435FcFDF3A08150Ed799b6EF472A20a432303F", exchangeType: "ParaswapExchange" }, k5 = { chainName: "arb", chainId: 42161, twapVersion: 4, twapAddress: "0x0B94dcC0EA2d1ee33Ab064DaC252de980a941eF3", lensAddress: "0x549e1fc9a47FCc0C5C2EbdfF31254cc49fF7164e", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "OmniArb", partner: "Orbs:TWAP:OmniArb", exchangeAddress: "0xF0607785424d342Cceb33E708f4579CA97a3b392", exchangeType: "ParaswapExchange" }, C5 = { chainName: "avax", chainId: 43114, twapVersion: 4, twapAddress: "0xf77Ad005aBF7e31f669ce89a6568B2f39Ca92cDe", lensAddress: "0x48466B82Ce1575c5c9eCa168ac1090048dD47fA3", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "BlackholeAvax", partner: "Orbs:TWAP:BlackholeAvax", exchangeAddress: "0xb7A3d74895bFD3Aff6780525e36D79FCf26a895F", exchangeType: "ExchangeV2" }, T5 = { chainName: "bsc", chainId: 56, twapVersion: 4, twapAddress: "0xa6F7444D2b92Aa9F94a2165c77aAF2B671e63994", lensAddress: "0xEdB0c077fa87Fb21d050c619FF426798f8Fc1264", takers: ["0xA05405b6340A7F43dC5835351BFC4f5b1F028359", "0xE3Efef1563a5960ACc731F9e4d6f4cBf5bd87dcA"], bidDelaySeconds: 60, minChunkSizeUsd: 50, name: "NewEraBnb", partner: "Orbs:TWAP:NewEraBnb", exchangeAddress: "0xA22D7Df24d9Ea4D4EF6dC96b2204bd550430eC42", exchangeType: "ExchangeV2" }, Ht = {
@@ -708,13 +708,13 @@ const Kx = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
708
708
  }
709
709
  ], B5 = A5, MY = S5, F5 = I5, U5 = P5;
710
710
  var ke = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(ke || {}), yt = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Canceled = "CANCELED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(yt || {}), er = /* @__PURE__ */ ((e) => (e[e.Minutes = 6e4] = "Minutes", e[e.Hours = 36e5] = "Hours", e[e.Weeks = 6048e5] = "Weeks", e[e.Days = 864e5] = "Days", e[e.Months = 2592e6] = "Months", e[e.Years = 31536e6] = "Years", e))(er || {}), ht = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TRIGGER_PRICE_MARKET = "trigger-price-market", e.TRIGGER_PRICE_LIMIT = "trigger-price-limit", e))(ht || {}), O5 = /* @__PURE__ */ ((e) => (e.Arbidex = "arbidex", e.Blackhole = "blackhole", e.Chronos = "chronos", e.Dragon = "dragon", e.Kodiak = "kodiak", e.Lynex = "lynex", e.Nami = "nami", e.Newera = "newera", e.Omni = "omni", e.Pancake = "pancake", e.Quick = "quick", e.Ramses = "ramses", e.Shadow = "shadow", e.Spark = "spark", e.Spooky = "spooky", e.Swapx = "swapx", e.Teafi = "teafi", e.Thena = "thena", e.Yowie = "yowie", e))(O5 || {});
711
- const xt = "0x0000000000000000000000000000000000000000", Rt = {
711
+ const wt = "0x0000000000000000000000000000000000000000", Rt = {
712
712
  eth: {
713
713
  id: 1,
714
714
  name: "Ethereum",
715
715
  shortname: "eth",
716
716
  native: {
717
- address: xt,
717
+ address: wt,
718
718
  symbol: "ETH",
719
719
  decimals: 18,
720
720
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -735,7 +735,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
735
735
  name: "BinanceSmartChain",
736
736
  shortname: "bsc",
737
737
  native: {
738
- address: xt,
738
+ address: wt,
739
739
  symbol: "BNB",
740
740
  decimals: 18,
741
741
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/128x128/1839.png"
@@ -756,7 +756,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
756
756
  name: "Polygon",
757
757
  shortname: "poly",
758
758
  native: {
759
- address: xt,
759
+ address: wt,
760
760
  symbol: "POL",
761
761
  decimals: 18,
762
762
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/64x64/28321.png"
@@ -777,7 +777,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
777
777
  name: "Arbitrum",
778
778
  shortname: "arb",
779
779
  native: {
780
- address: xt,
780
+ address: wt,
781
781
  symbol: "ETH",
782
782
  decimals: 18,
783
783
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -798,7 +798,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
798
798
  name: "Sei",
799
799
  shortname: "sei",
800
800
  native: {
801
- address: xt,
801
+ address: wt,
802
802
  symbol: "SEI",
803
803
  decimals: 18,
804
804
  logoUrl: "https://assets.coingecko.com/coins/images/28205/standard/Sei_Logo_-_Transparent.png"
@@ -819,7 +819,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
819
819
  name: "Avalanche",
820
820
  shortname: "avax",
821
821
  native: {
822
- address: xt,
822
+ address: wt,
823
823
  symbol: "AVAX",
824
824
  decimals: 18,
825
825
  logoUrl: "https://app.1inch.io/assets/images/network-logos/avalanche.svg"
@@ -840,7 +840,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
840
840
  name: "Fantom",
841
841
  shortname: "ftm",
842
842
  native: {
843
- address: xt,
843
+ address: wt,
844
844
  symbol: "FTM",
845
845
  decimals: 18,
846
846
  logoUrl: "https://app.1inch.io/assets/images/network-logos/fantom.svg"
@@ -861,7 +861,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
861
861
  name: "Base",
862
862
  shortname: "base",
863
863
  native: {
864
- address: xt,
864
+ address: wt,
865
865
  symbol: "ETH",
866
866
  decimals: 18,
867
867
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -882,7 +882,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
882
882
  name: "Linea",
883
883
  shortname: "linea",
884
884
  native: {
885
- address: xt,
885
+ address: wt,
886
886
  symbol: "ETH",
887
887
  decimals: 18,
888
888
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -903,7 +903,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
903
903
  name: "zksync",
904
904
  shortname: "zksync",
905
905
  native: {
906
- address: xt,
906
+ address: wt,
907
907
  symbol: "ETH",
908
908
  decimals: 18,
909
909
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -924,7 +924,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
924
924
  name: "zkevm",
925
925
  shortname: "zkevm",
926
926
  native: {
927
- address: xt,
927
+ address: wt,
928
928
  symbol: "ETH",
929
929
  decimals: 18,
930
930
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -945,7 +945,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
945
945
  name: "manta",
946
946
  shortname: "manta",
947
947
  native: {
948
- address: xt,
948
+ address: wt,
949
949
  symbol: "ETH",
950
950
  decimals: 18,
951
951
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_manta.jpg"
@@ -966,7 +966,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
966
966
  name: "blast",
967
967
  shortname: "blast",
968
968
  native: {
969
- address: xt,
969
+ address: wt,
970
970
  symbol: "ETH",
971
971
  decimals: 18,
972
972
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_blast"
@@ -987,7 +987,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
987
987
  name: "sonic",
988
988
  shortname: "sonic",
989
989
  native: {
990
- address: xt,
990
+ address: wt,
991
991
  symbol: "S",
992
992
  decimals: 18,
993
993
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_sonic"
@@ -1008,7 +1008,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
1008
1008
  name: "scroll",
1009
1009
  shortname: "scroll",
1010
1010
  native: {
1011
- address: xt,
1011
+ address: wt,
1012
1012
  symbol: "ETH",
1013
1013
  decimals: 18,
1014
1014
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_scroll"
@@ -1029,7 +1029,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
1029
1029
  name: "Zircuit",
1030
1030
  shortname: "zircuit",
1031
1031
  native: {
1032
- address: xt,
1032
+ address: wt,
1033
1033
  symbol: "ETH",
1034
1034
  decimals: 18,
1035
1035
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -1050,7 +1050,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
1050
1050
  name: "flare",
1051
1051
  shortname: "flare",
1052
1052
  native: {
1053
- address: xt,
1053
+ address: wt,
1054
1054
  symbol: "FLR",
1055
1055
  decimals: 18,
1056
1056
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_flare?w=48&h=48"
@@ -1095,7 +1095,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
1095
1095
  name: "Katana",
1096
1096
  shortname: "katana",
1097
1097
  native: {
1098
- address: xt,
1098
+ address: wt,
1099
1099
  symbol: "ETH",
1100
1100
  decimals: 18,
1101
1101
  logoUrl: "https://katana.network/assets/katana-logo.svg"
@@ -1118,7 +1118,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
1118
1118
  name: "Bera",
1119
1119
  shortname: "bera",
1120
1120
  native: {
1121
- address: xt,
1121
+ address: wt,
1122
1122
  symbol: "BERA",
1123
1123
  decimals: 18,
1124
1124
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/128x128/24647.png"
@@ -1141,7 +1141,7 @@ const xt = "0x0000000000000000000000000000000000000000", Rt = {
1141
1141
  name: "Monad",
1142
1142
  shortname: "monad",
1143
1143
  native: {
1144
- address: xt,
1144
+ address: wt,
1145
1145
  symbol: "MONAD",
1146
1146
  decimals: 18,
1147
1147
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/128x128/30495.png"
@@ -2880,7 +2880,7 @@ const Hw = async ({
2880
2880
  }) => (await Promise.all([
2881
2881
  s ? Hw({ chainId: r, signal: e, page: t, limit: n, filters: { accounts: [a], configs: [s] } }) : Promise.resolve([]),
2882
2882
  Ow({ chainId: r, signal: e, account: a })
2883
- ]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), Ww = "0.0.40", qw = {
2883
+ ]).then(([c, l]) => [...c, ...l])).sort((c, l) => l.createdAt - c.createdAt), Ww = "0.0.41", qw = {
2884
2884
  version: Ww
2885
2885
  };
2886
2886
  var yo = class {
@@ -4723,19 +4723,19 @@ var In, is, Jt, Bn, Ln, wl, mp, ub, m3 = (ub = class extends yo {
4723
4723
  clear() {
4724
4724
  M(this, dt).clear(), M(this, cs).clear();
4725
4725
  }
4726
- }, dt = new WeakMap(), cs = new WeakMap(), ls = new WeakMap(), to = new WeakMap(), ro = new WeakMap(), us = new WeakMap(), no = new WeakMap(), so = new WeakMap(), pb), Ub = wt.createContext(
4726
+ }, dt = new WeakMap(), cs = new WeakMap(), ls = new WeakMap(), to = new WeakMap(), ro = new WeakMap(), us = new WeakMap(), no = new WeakMap(), so = new WeakMap(), pb), Ub = vt.createContext(
4727
4727
  void 0
4728
4728
  ), Ql = (e) => {
4729
- const t = wt.useContext(Ub);
4729
+ const t = vt.useContext(Ub);
4730
4730
  if (!t)
4731
4731
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
4732
4732
  return t;
4733
4733
  }, y3 = ({
4734
4734
  client: e,
4735
4735
  children: t
4736
- }) => (wt.useEffect(() => (e.mount(), () => {
4736
+ }) => (vt.useEffect(() => (e.mount(), () => {
4737
4737
  e.unmount();
4738
- }), [e]), /* @__PURE__ */ _(Ub.Provider, { value: e, children: t })), Ob = wt.createContext(!1), g3 = () => wt.useContext(Ob);
4738
+ }), [e]), /* @__PURE__ */ _(Ub.Provider, { value: e, children: t })), Ob = vt.createContext(!1), g3 = () => vt.useContext(Ob);
4739
4739
  Ob.Provider;
4740
4740
  function x3() {
4741
4741
  let e = !1;
@@ -4749,10 +4749,10 @@ function x3() {
4749
4749
  isReset: () => e
4750
4750
  };
4751
4751
  }
4752
- var w3 = wt.createContext(x3()), v3 = () => wt.useContext(w3), E3 = (e, t) => {
4752
+ var w3 = vt.createContext(x3()), v3 = () => vt.useContext(w3), E3 = (e, t) => {
4753
4753
  (e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
4754
4754
  }, k3 = (e) => {
4755
- wt.useEffect(() => {
4755
+ vt.useEffect(() => {
4756
4756
  e.clearReset();
4757
4757
  }, [e]);
4758
4758
  }, C3 = ({
@@ -4785,14 +4785,14 @@ function P3(e, t, r) {
4785
4785
  ), process.env.NODE_ENV !== "production" && (o.queryFn || console.error(
4786
4786
  `[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
4787
4787
  )), o._optimisticResults = n ? "isRestoring" : "optimistic", T3(o), E3(o, s), k3(s);
4788
- const i = !a.getQueryCache().get(o.queryHash), [c] = wt.useState(
4788
+ const i = !a.getQueryCache().get(o.queryHash), [c] = vt.useState(
4789
4789
  () => new t(
4790
4790
  a,
4791
4791
  o
4792
4792
  )
4793
4793
  ), l = c.getOptimisticResult(o), u = !n && e.subscribed !== !1;
4794
- if (wt.useSyncExternalStore(
4795
- wt.useCallback(
4794
+ if (vt.useSyncExternalStore(
4795
+ vt.useCallback(
4796
4796
  (E) => {
4797
4797
  const v = u ? c.subscribe(Tt.batchCalls(E)) : Wt;
4798
4798
  return c.updateResult(), v;
@@ -4801,7 +4801,7 @@ function P3(e, t, r) {
4801
4801
  ),
4802
4802
  () => c.getCurrentResult(),
4803
4803
  () => c.getCurrentResult()
4804
- ), wt.useEffect(() => {
4804
+ ), vt.useEffect(() => {
4805
4805
  c.setOptions(o);
4806
4806
  }, [o, c]), S3(o, l))
4807
4807
  throw eh(o, c, s);
@@ -4835,23 +4835,23 @@ function I3(e, t) {
4835
4835
  return P3(e, c3);
4836
4836
  }
4837
4837
  function jn(e, t) {
4838
- const r = Ql(), [n] = wt.useState(
4838
+ const r = Ql(), [n] = vt.useState(
4839
4839
  () => new m3(
4840
4840
  r,
4841
4841
  e
4842
4842
  )
4843
4843
  );
4844
- wt.useEffect(() => {
4844
+ vt.useEffect(() => {
4845
4845
  n.setOptions(e);
4846
4846
  }, [n, e]);
4847
- const s = wt.useSyncExternalStore(
4848
- wt.useCallback(
4847
+ const s = vt.useSyncExternalStore(
4848
+ vt.useCallback(
4849
4849
  (o) => n.subscribe(Tt.batchCalls(o)),
4850
4850
  [n]
4851
4851
  ),
4852
4852
  () => n.getCurrentResult(),
4853
4853
  () => n.getCurrentResult()
4854
- ), a = wt.useCallback(
4854
+ ), a = vt.useCallback(
4855
4855
  (o, i) => {
4856
4856
  n.mutate(o, i).catch(Wt);
4857
4857
  },
@@ -5010,7 +5010,7 @@ function R3({ children: e, ...t }) {
5010
5010
  return /* @__PURE__ */ _(Db.Provider, { value: t, children: e });
5011
5011
  }
5012
5012
  const dn = () => Zl(Db);
5013
- var vt = /* @__PURE__ */ ((e) => (e[e.LOADING = 1] = "LOADING", e[e.SUCCESS = 2] = "SUCCESS", e[e.FAILED = 3] = "FAILED", e))(vt || {});
5013
+ var gt = /* @__PURE__ */ ((e) => (e[e.LOADING = 1] = "LOADING", e[e.SUCCESS = 2] = "SUCCESS", e[e.FAILED = 3] = "FAILED", e))(gt || {});
5014
5014
  const N3 = ({
5015
5015
  className: e = "",
5016
5016
  size: t = 38,
@@ -5054,7 +5054,7 @@ const z3 = ({ link: e, text: t }) => {
5054
5054
  const { swapStatus: r } = dn();
5055
5055
  return !e && !t ? null : /* @__PURE__ */ fe("div", { className: Le("TradeStepLayoutFooter"), children: [
5056
5056
  /* @__PURE__ */ _(V3, {}),
5057
- e ? /* @__PURE__ */ _(L3, { link: e, text: t }) : r === vt.FAILED ? void 0 : /* @__PURE__ */ _(ai, { children: t })
5057
+ e ? /* @__PURE__ */ _(L3, { link: e, text: t }) : r === gt.FAILED ? void 0 : /* @__PURE__ */ _(ai, { children: t })
5058
5058
  ] });
5059
5059
  }, L3 = ({ link: e, text: t }) => /* @__PURE__ */ _(
5060
5060
  "a",
@@ -5115,7 +5115,7 @@ function H3() {
5115
5115
  }
5116
5116
  const G3 = () => {
5117
5117
  const { swapStatus: e } = dn();
5118
- return e === vt.SUCCESS ? /* @__PURE__ */ _($3, {}) : e === vt.FAILED ? /* @__PURE__ */ _(H3, {}) : /* @__PURE__ */ _(j3, {});
5118
+ return e === gt.SUCCESS ? /* @__PURE__ */ _($3, {}) : e === gt.FAILED ? /* @__PURE__ */ _(H3, {}) : /* @__PURE__ */ _(j3, {});
5119
5119
  }, j3 = () => {
5120
5120
  const { components: e } = dn();
5121
5121
  return e.Loader ? e.Loader : /* @__PURE__ */ _(
@@ -5128,7 +5128,7 @@ const G3 = () => {
5128
5128
  );
5129
5129
  }, V3 = () => {
5130
5130
  const { totalSteps: e, currentStepIndex: t = 0, swapStatus: r } = dn();
5131
- return r !== vt.LOADING || e === 1 ? null : /* @__PURE__ */ _("div", { className: Le("StepIndicator"), children: /* @__PURE__ */ _(
5131
+ return r !== gt.LOADING || e === 1 ? null : /* @__PURE__ */ _("div", { className: Le("StepIndicator"), children: /* @__PURE__ */ _(
5132
5132
  "div",
5133
5133
  {
5134
5134
  style: {
@@ -5335,7 +5335,7 @@ const Mb = ({
5335
5335
  }
5336
5336
  ), Q3 = () => {
5337
5337
  const { swapStatus: e, components: t, className: r } = dn();
5338
- return /* @__PURE__ */ _("div", { className: `${Le("SwapFlow")} ${r}`, children: e === vt.SUCCESS ? t == null ? void 0 : t.Success : e === vt.FAILED ? t == null ? void 0 : t.Failed : t == null ? void 0 : t.Main });
5338
+ return /* @__PURE__ */ _("div", { className: `${Le("SwapFlow")} ${r}`, children: e === gt.SUCCESS ? t == null ? void 0 : t.Success : e === gt.FAILED ? t == null ? void 0 : t.Failed : t == null ? void 0 : t.Main });
5339
5339
  };
5340
5340
  ks.Success = Y3;
5341
5341
  ks.Failed = W3;
@@ -23823,26 +23823,26 @@ function lg(e, t = {}) {
23823
23823
  return n = r === "left" ? n.slice(s) : n.slice(0, n.length - s), n;
23824
23824
  }
23825
23825
  function fu(e, t) {
23826
- if (gt(e) > t)
23826
+ if (xt(e) > t)
23827
23827
  throw new rU({
23828
- givenSize: gt(e),
23828
+ givenSize: xt(e),
23829
23829
  maxSize: t
23830
23830
  });
23831
23831
  }
23832
23832
  function YF(e, t) {
23833
- if (typeof t == "number" && t > 0 && t > gt(e) - 1)
23833
+ if (typeof t == "number" && t > 0 && t > xt(e) - 1)
23834
23834
  throw new hg({
23835
23835
  offset: t,
23836
23836
  position: "start",
23837
- size: gt(e)
23837
+ size: xt(e)
23838
23838
  });
23839
23839
  }
23840
23840
  function KF(e, t, r) {
23841
- if (typeof t == "number" && typeof r == "number" && gt(e) !== r - t)
23841
+ if (typeof t == "number" && typeof r == "number" && xt(e) !== r - t)
23842
23842
  throw new hg({
23843
23843
  offset: r,
23844
23844
  position: "end",
23845
- size: gt(e)
23845
+ size: xt(e)
23846
23846
  });
23847
23847
  }
23848
23848
  function ug(e, t = {}) {
@@ -23934,7 +23934,7 @@ function Ie(e, t, r, n = {}) {
23934
23934
  const a = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (r ?? e.length) * 2)}`;
23935
23935
  return s && KF(a, t, r), a;
23936
23936
  }
23937
- function gt(e) {
23937
+ function xt(e) {
23938
23938
  return Math.ceil((e.length - 2) / 2);
23939
23939
  }
23940
23940
  function Dp(e) {
@@ -24222,7 +24222,7 @@ function vU(e, t = {}) {
24222
24222
  return r === "Bytes" ? n : Ut(n);
24223
24223
  }
24224
24224
  function EU(e) {
24225
- return _r(e) && gt(e) === 32;
24225
+ return _r(e) && xt(e) === 32;
24226
24226
  }
24227
24227
  function xg(e, t = {}) {
24228
24228
  const { compressed: r } = t, { prefix: n, x: s, y: a } = e;
@@ -24349,7 +24349,7 @@ let IU = class extends oe {
24349
24349
  super(`Value \`${t}\` is an invalid public key size.`, {
24350
24350
  metaMessages: [
24351
24351
  "Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",
24352
- `Received ${gt(mu(t))} bytes.`
24352
+ `Received ${xt(mu(t))} bytes.`
24353
24353
  ]
24354
24354
  }), Object.defineProperty(this, "name", {
24355
24355
  enumerable: !0,
@@ -25726,7 +25726,7 @@ class wO extends oe {
25726
25726
  super(`Value \`${t}\` is an invalid signature size.`, {
25727
25727
  metaMessages: [
25728
25728
  "Expected: 64 bytes or 65 bytes.",
25729
- `Received ${gt(mu(t))} bytes.`
25729
+ `Received ${xt(mu(t))} bytes.`
25730
25730
  ]
25731
25731
  }), Object.defineProperty(this, "name", {
25732
25732
  enumerable: !0,
@@ -25852,12 +25852,12 @@ function AO(e) {
25852
25852
  }
25853
25853
  const Lp = "0x01", $p = "0x02", Gg = "0x03", _s = "0x7777777777777777777777777777777777777777777777777777777777777777";
25854
25854
  function To(e) {
25855
- const t = e.endsWith(_s.slice(2)) ? Ie(e, 0, -gt(_s)) : e;
25856
- if (gt(t) === 65) {
25855
+ const t = e.endsWith(_s.slice(2)) ? Ie(e, 0, -xt(_s)) : e;
25856
+ if (xt(t) === 65) {
25857
25857
  const o = s0(t);
25858
25858
  return bu(o), { signature: o, type: "secp256k1" };
25859
25859
  }
25860
- const n = Ie(t, 0, 1), s = Ie(t, 1), a = gt(s);
25860
+ const n = Ie(t, 0, 1), s = Ie(t, 1), a = xt(s);
25861
25861
  if (n === Lp) {
25862
25862
  if (a !== 129)
25863
25863
  throw new Xo({
@@ -25963,7 +25963,7 @@ function xu(e) {
25963
25963
  type: "p256"
25964
25964
  };
25965
25965
  if (e.type === "webAuthn") {
25966
- const t = e.webauthnData, r = gt(t);
25966
+ const t = e.webauthnData, r = xt(t);
25967
25967
  let n, s;
25968
25968
  for (let a = 37; a < r; a++) {
25969
25969
  const o = fg(Ie(t, a));
@@ -26330,13 +26330,13 @@ function d0(e) {
26330
26330
  let t = 0;
26331
26331
  for (let a = 0; a < e.length; a++) {
26332
26332
  const { dynamic: o, encoded: i } = e[a];
26333
- o ? t += 32 : t += gt(i);
26333
+ o ? t += 32 : t += xt(i);
26334
26334
  }
26335
26335
  const r = [], n = [];
26336
26336
  let s = 0;
26337
26337
  for (let a = 0; a < e.length; a++) {
26338
26338
  const { dynamic: o, encoded: i } = e[a];
26339
- o ? (r.push(Z(t + s, { size: 32 })), n.push(i), s += gt(i)) : r.push(i);
26339
+ o ? (r.push(Z(t + s, { size: 32 })), n.push(i), s += xt(i)) : r.push(i);
26340
26340
  }
26341
26341
  return pt(...r, ...n);
26342
26342
  }
@@ -26385,7 +26385,7 @@ function NO(e, t) {
26385
26385
  };
26386
26386
  }
26387
26387
  function zO(e, { type: t }) {
26388
- const [, r] = t.split("bytes"), n = gt(e);
26388
+ const [, r] = t.split("bytes"), n = xt(e);
26389
26389
  if (!r) {
26390
26390
  let s = e;
26391
26391
  return n % 32 !== 0 && (s = aa(s, Math.ceil((e.length - 2) / 2 / 32) * 32)), {
@@ -26426,12 +26426,12 @@ function $O(e, { signed: t, size: r }) {
26426
26426
  };
26427
26427
  }
26428
26428
  function HO(e) {
26429
- const t = oc(e), r = Math.ceil(gt(t) / 32), n = [];
26429
+ const t = oc(e), r = Math.ceil(xt(t) / 32), n = [];
26430
26430
  for (let s = 0; s < r; s++)
26431
26431
  n.push(aa(Ie(t, s * 32, (s + 1) * 32)));
26432
26432
  return {
26433
26433
  dynamic: !0,
26434
- encoded: pt(aa(Z(gt(t), { size: 32 })), ...n)
26434
+ encoded: pt(aa(Z(xt(t), { size: 32 })), ...n)
26435
26435
  };
26436
26436
  }
26437
26437
  function GO(e, t) {
@@ -26758,7 +26758,7 @@ class ZO extends oe {
26758
26758
  }
26759
26759
  class Vg extends oe {
26760
26760
  constructor({ expectedSize: t, value: r }) {
26761
- super(`Size of bytes "${r}" (bytes${gt(r)}) does not match expected size (bytes${t}).`), Object.defineProperty(this, "name", {
26761
+ super(`Size of bytes "${r}" (bytes${xt(r)}) does not match expected size (bytes${t}).`), Object.defineProperty(this, "name", {
26762
26762
  enumerable: !0,
26763
26763
  configurable: !0,
26764
26764
  writable: !0,
@@ -27811,7 +27811,7 @@ async function ku(e, t) {
27811
27811
  });
27812
27812
  return ie === "0x" ? { data: void 0 } : { data: ie };
27813
27813
  } catch (U) {
27814
- const F = OD(U), { offchainLookup: N, offchainLookupSignature: z } = await import("./ccip-DyAeTCJ8.js");
27814
+ const F = OD(U), { offchainLookup: N, offchainLookupSignature: z } = await import("./ccip-Dx1a4716.js");
27815
27815
  if (e.ccipRead !== !1 && (F == null ? void 0 : F.slice(0, 10)) === z && C)
27816
27816
  return { data: await N(e, { data: F, to: C }) };
27817
27817
  throw A && (F == null ? void 0 : F.slice(0, 10)) === "0x101bb98d" ? new ZA({ factory: f }) : Zf(U, {
@@ -28309,7 +28309,7 @@ function n_(e) {
28309
28309
  const t = [];
28310
28310
  for (const { address: r, storageKeys: n } of e) {
28311
28311
  for (let s = 0; s < n.length; s++)
28312
- if (gt(n[s]) !== 32)
28312
+ if (xt(n[s]) !== 32)
28313
28313
  throw new s_({
28314
28314
  storageKey: n[s]
28315
28315
  });
@@ -28319,7 +28319,7 @@ function n_(e) {
28319
28319
  }
28320
28320
  class s_ extends oe {
28321
28321
  constructor({ storageKey: t }) {
28322
- super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${gt(t)} bytes.`), Object.defineProperty(this, "name", {
28322
+ super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${xt(t)} bytes.`), Object.defineProperty(this, "name", {
28323
28323
  enumerable: !0,
28324
28324
  configurable: !0,
28325
28325
  writable: !0,
@@ -39349,7 +39349,7 @@ const cm = () => {
39349
39349
  throw new Error("missing required parameters");
39350
39350
  try {
39351
39351
  (d = s == null ? void 0 : s.onCancelOrderRequest) == null || d.call(s, u), i({
39352
- cancelOrderStatus: vt.LOADING,
39352
+ cancelOrderStatus: gt.LOADING,
39353
39353
  cancelOrderTxHash: void 0,
39354
39354
  cancelOrderError: void 0
39355
39355
  });
@@ -39358,11 +39358,11 @@ const cm = () => {
39358
39358
  y.length ? l(y) : Promise.resolve("")
39359
39359
  ]);
39360
39360
  return i({
39361
- cancelOrderStatus: vt.SUCCESS,
39361
+ cancelOrderStatus: gt.SUCCESS,
39362
39362
  orderIdsToCancel: []
39363
39363
  }), [...g || [], E];
39364
39364
  } catch (m) {
39365
- console.error("cancel order error", m), (f = s == null ? void 0 : s.onCancelOrderFailed) == null || f.call(s, m), Nb(m) ? i({ cancelOrderStatus: void 0 }) : (i({ cancelOrderStatus: vt.FAILED }), bt.onCancelOrderError(m));
39365
+ console.error("cancel order error", m), (f = s == null ? void 0 : s.onCancelOrderFailed) == null || f.call(s, m), Nb(m) ? i({ cancelOrderStatus: void 0 }) : (i({ cancelOrderStatus: gt.FAILED }), bt.onCancelOrderError(m));
39366
39366
  }
39367
39367
  }
39368
39368
  });
@@ -43230,9 +43230,9 @@ const Zq = () => /* @__PURE__ */ _("div", { className: "twap-orders__loader", ch
43230
43230
  }
43231
43231
  ) }) : /* @__PURE__ */ _(Jq, {}) });
43232
43232
  }, Qq = ({ order: e, selectOrder: t, selected: r, cancelOrdersMode: n }) => {
43233
- const s = Y((i) => i.updateState), a = wt.useCallback(() => {
43233
+ const s = Y((i) => i.updateState), a = vt.useCallback(() => {
43234
43234
  s({ selectedOrderID: e == null ? void 0 : e.id });
43235
- }, [s, e == null ? void 0 : e.id]), o = wt.useCallback(() => {
43235
+ }, [s, e == null ? void 0 : e.id]), o = vt.useCallback(() => {
43236
43236
  n ? t(e == null ? void 0 : e.id) : a();
43237
43237
  }, [n, t, a, e == null ? void 0 : e.id]);
43238
43238
  return /* @__PURE__ */ _(
@@ -43252,7 +43252,7 @@ const Zq = () => /* @__PURE__ */ _("div", { className: "twap-orders__loader", ch
43252
43252
  }
43253
43253
  );
43254
43254
  }, Jq = () => {
43255
- const e = Y((n) => n.state.orderHistoryStatusFilter), t = Re(), r = wt.useMemo(() => e || "", [e]);
43255
+ const e = Y((n) => n.state.orderHistoryStatusFilter), t = Re(), r = vt.useMemo(() => e || "", [e]);
43256
43256
  return /* @__PURE__ */ _("div", { className: "twap-orders__list-empty", children: /* @__PURE__ */ _("p", { children: t("noOrders", { status: r }) }) });
43257
43257
  }, eY = ({ order: e }) => {
43258
43258
  const t = e && e.status, r = K2(e), n = im(e.createdAt);
@@ -43700,20 +43700,21 @@ const rY = () => {
43700
43700
  }, [e, n, r, t]);
43701
43701
  };
43702
43702
  function dY() {
43703
- const { marketPrice: e, marketPriceLoading: t } = ne(), r = Y((l) => l.state.typedSrcAmount), n = Rx(), { error: s } = wa(), { error: a } = kc(), { error: o } = Kn(), { error: i } = xa(), { error: c } = km();
43703
+ const { marketPrice: e, marketPriceLoading: t } = ne(), r = Y((u) => u.state.typedSrcAmount), n = Y((u) => u.state.swapExecution.status), s = Rx(), { error: a } = wa(), { error: o } = kc(), { error: i } = Kn(), { error: c } = xa(), { error: l } = km();
43704
43704
  return ee(() => {
43705
- const l = Xl("ignore-errors");
43706
- if (!(H(e || 0).isZero() || H(r || 0).isZero() || t || l))
43707
- return s || a || o || i || c || n;
43705
+ const u = Xl("ignore-errors");
43706
+ if (n !== gt.LOADING && !(H(e || 0).isZero() || H(r || 0).isZero() || t || u))
43707
+ return a || o || i || c || l || s;
43708
43708
  }, [
43709
43709
  e,
43710
43710
  t,
43711
43711
  r,
43712
- s,
43713
43712
  a,
43714
43713
  o,
43715
43714
  i,
43716
43715
  c,
43716
+ l,
43717
+ s,
43717
43718
  n
43718
43719
  ]);
43719
43720
  }
@@ -43869,7 +43870,7 @@ const Nx = (e, t) => {
43869
43870
  /* @__PURE__ */ _(Ee.USD, { value: n })
43870
43871
  ] }), $x = () => {
43871
43872
  const e = Re(), t = Y((a) => a.state.isMarketOrder), r = Y((a) => a.state.swapExecution.status), { totalTrades: n } = Kn(), s = gY(t, n);
43872
- return r === vt.SUCCESS ? e("createOrderActionSuccess", { name: s }) : e("createOrderAction", { name: s });
43873
+ return r === gt.SUCCESS ? e("createOrderActionSuccess", { name: s }) : e("createOrderAction", { name: s });
43873
43874
  }, wY = () => {
43874
43875
  const e = Y((y) => y.state.swapExecution.srcToken), t = Re(), { step: r, wrapTxHash: n, approveTxHash: s } = Y(
43875
43876
  (y) => y.state.swapExecution
@@ -43884,7 +43885,7 @@ const Nx = (e, t) => {
43884
43885
  footerText: t(c ? "viewOnExplorer" : "proceedInWallet")
43885
43886
  } : {
43886
43887
  title: m,
43887
- footerText: l === vt.LOADING ? t("proceedInWallet") : void 0
43888
+ footerText: l === gt.LOADING ? t("proceedInWallet") : void 0
43888
43889
  }, [
43889
43890
  r,
43890
43891
  c,
@@ -44289,7 +44290,7 @@ const FY = () => {
44289
44290
  totalSteps: v,
44290
44291
  stepIndex: E,
44291
44292
  allowanceLoading: !1,
44292
- status: vt.LOADING
44293
+ status: gt.LOADING
44293
44294
  }), u(), d && (c({ step: Ma.WRAP }), await a({
44294
44295
  onHash: (S) => c({ wrapTxHash: S }),
44295
44296
  srcAmountWei: l
@@ -44299,7 +44300,7 @@ const FY = () => {
44299
44300
  srcAmountWei: l
44300
44301
  }), E++, c({ stepIndex: E })), c({ step: Ma.CREATE });
44301
44302
  const w = await o();
44302
- return c({ status: vt.SUCCESS, orderId: w.id }), w;
44303
+ return c({ status: gt.SUCCESS, orderId: w.id }), w;
44303
44304
  } catch (y) {
44304
44305
  if (Nb(y))
44305
44306
  (f = n == null ? void 0 : n.onSubmitOrderRejected) == null || f.call(n), c({
@@ -44311,7 +44312,7 @@ const FY = () => {
44311
44312
  else {
44312
44313
  const g = BY(y);
44313
44314
  (m = n == null ? void 0 : n.onSubmitOrderFailed) == null || m.call(n, g), c({
44314
- status: vt.FAILED,
44315
+ status: gt.FAILED,
44315
44316
  parsedError: g,
44316
44317
  error: y
44317
44318
  });
@@ -44322,11 +44323,11 @@ const FY = () => {
44322
44323
  });
44323
44324
  }, LK = () => {
44324
44325
  const { marketPrice: e, srcToken: t, dstToken: r } = ne(), n = FY(), s = Y((f) => f.updateState), { amountUI: a } = bn(), o = Y((f) => f.resetState), i = Y((f) => f.state.swapExecution), c = Fe(() => {
44325
- (i == null ? void 0 : i.status) === vt.SUCCESS && (s({ typedSrcAmount: "" }), setTimeout(() => {
44326
+ (i == null ? void 0 : i.status) === gt.SUCCESS && (s({ typedSrcAmount: "" }), setTimeout(() => {
44326
44327
  o();
44327
44328
  }, 1e3));
44328
44329
  }, [i == null ? void 0 : i.status, o, s]), l = Fe(() => {
44329
- (i == null ? void 0 : i.status) !== vt.LOADING && s({
44330
+ (i == null ? void 0 : i.status) !== gt.LOADING && s({
44330
44331
  acceptedSrcAmount: void 0,
44331
44332
  acceptedMarketPrice: void 0,
44332
44333
  swapExecution: { srcToken: t, dstToken: r }
@@ -44346,9 +44347,9 @@ const FY = () => {
44346
44347
  onOpenModal: l,
44347
44348
  onSubmit: d,
44348
44349
  ...i,
44349
- isLoading: !!((i == null ? void 0 : i.status) === vt.LOADING || i != null && i.allowanceLoading),
44350
- isSuccess: (i == null ? void 0 : i.status) === vt.SUCCESS,
44351
- isFailed: (i == null ? void 0 : i.status) === vt.FAILED
44350
+ isLoading: !!((i == null ? void 0 : i.status) === gt.LOADING || i != null && i.allowanceLoading),
44351
+ isSuccess: (i == null ? void 0 : i.status) === gt.SUCCESS,
44352
+ isFailed: (i == null ? void 0 : i.status) === gt.FAILED
44352
44353
  }), [o, c, d, i]);
44353
44354
  }, $K = () => {
44354
44355
  const e = Re(), {
@@ -44384,7 +44385,7 @@ export {
44384
44385
  He as I,
44385
44386
  qt as J,
44386
44387
  Ma as K,
44387
- vt as L,
44388
+ gt as L,
44388
44389
  O5 as M,
44389
44390
  ht as N,
44390
44391
  yt as O,