@orbs-network/spot-ui 1.0.2 → 1.0.3

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.
package/dist/spot-ui.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var rt = Object.defineProperty;
2
2
  var it = (e, n, i) => n in e ? rt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
- var Te = (e, n, i) => it(e, typeof n != "symbol" ? n + "" : n, i);
4
- const ot = { 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: "" }, dt = { 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: "" }, ct = { 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" }, pt = { 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: "" }, ut = { 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" }, lt = { 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" }, ft = { 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" }, mt = { 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" }, yt = { 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: "" }, At = { 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: "" }, ht = { 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: "" }, bt = { 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: "" }, Et = { 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" }, xt = { 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" }, gt = { 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" }, Ct = { 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: "" }, Tt = { 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: "" }, Ft = { 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: "" }, wt = { 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: "" }, Dt = { 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: "" }, kt = { 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" }, Bt = { 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" }, St = { 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: "" }, _t = { 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: "" }, Ot = { 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" }, vt = { 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" }, Rt = { 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" }, Pt = { 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" }, It = { 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" }, Nt = { 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" }, Mt = { 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" }, _ = {
3
+ var Fe = (e, n, i) => it(e, typeof n != "symbol" ? n + "" : n, i);
4
+ const ot = { 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: "" }, dt = { 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: "" }, ct = { 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" }, pt = { 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: "" }, ut = { 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" }, lt = { 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" }, ft = { 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" }, mt = { 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" }, yt = { 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: "" }, ht = { 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: "" }, At = { 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: "" }, bt = { 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: "" }, Et = { 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" }, xt = { 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" }, gt = { 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" }, Ct = { 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: "" }, Ft = { 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: "" }, Tt = { 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: "" }, wt = { 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: "" }, Dt = { 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: "" }, kt = { 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" }, Bt = { 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" }, St = { 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: "" }, Ot = { 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: "" }, _t = { 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" }, vt = { 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" }, Pt = { 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" }, Rt = { 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" }, It = { 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" }, Nt = { 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" }, Mt = { 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" }, O = {
5
5
  SpookySwap: ot,
6
6
  SpookySwapSonic: dt,
7
7
  QuickSwap: ct,
@@ -11,25 +11,25 @@ const ot = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
11
11
  Arbidex: ft,
12
12
  Thena: mt,
13
13
  PancakeSwap: yt,
14
- PancakeSwapArbitrum: At,
15
- PancakeSwapBase: ht,
14
+ PancakeSwapArbitrum: ht,
15
+ PancakeSwapBase: At,
16
16
  PancakeSwapLinea: bt,
17
17
  Lynex: Et,
18
18
  SyncSwap: xt,
19
19
  Retro: gt,
20
20
  SushiArb: Ct,
21
- SushiBase: Tt,
22
- SushiEth: Ft,
21
+ SushiBase: Ft,
22
+ SushiEth: Tt,
23
23
  SushiKatana: wt,
24
24
  DragonSwap: Dt,
25
25
  TeaFi: kt,
26
26
  SparkDEX: Bt,
27
27
  Ramses: St,
28
- SwapX: _t,
29
- H2Finance: Ot,
28
+ SwapX: Ot,
29
+ H2Finance: _t,
30
30
  Shadow: vt,
31
- Kodiak: Rt,
32
- OmniBase: Pt,
31
+ Kodiak: Pt,
32
+ OmniBase: Rt,
33
33
  OmniArb: It,
34
34
  BlackholeAvax: Nt,
35
35
  NewEraBnb: Mt
@@ -691,8 +691,8 @@ const ot = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
691
691
  ]
692
692
  }
693
693
  ], Vn = Ut, Wn = Lt, zn = Wt, $n = Vt;
694
- var z = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(z || {}), re = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(re || {}), zt = /* @__PURE__ */ ((e) => (e.All = "ALL", e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(zt || {}), ae = /* @__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))(ae || {}), q = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TAKE_PROFIT = "take-profit", e.STOP_LOSS_LIMIT = "stop-loss-limit", e.STOP_LOSS_MARKET = "stop-loss-market", e))(q || {}), pe = /* @__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.Pangolin = "pangolin", e.Sushiswap = "sushiswap", e.Agent = "agent", e))(pe || {}), $t = /* @__PURE__ */ ((e) => (e[e.EMPTY_LIMIT_PRICE = 0] = "EMPTY_LIMIT_PRICE", e[e.MAX_CHUNKS = 1] = "MAX_CHUNKS", e[e.MIN_CHUNKS = 2] = "MIN_CHUNKS", e[e.MIN_TRADE_SIZE = 3] = "MIN_TRADE_SIZE", e[e.MAX_FILL_DELAY = 4] = "MAX_FILL_DELAY", e[e.MIN_FILL_DELAY = 5] = "MIN_FILL_DELAY", e[e.MAX_ORDER_DURATION = 6] = "MAX_ORDER_DURATION", e[e.MIN_ORDER_DURATION = 7] = "MIN_ORDER_DURATION", e[e.MISSING_LIMIT_PRICE = 8] = "MISSING_LIMIT_PRICE", e[e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = 9] = "STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE", e[e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = 10] = "TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE", e[e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = 11] = "TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE", e[e.EMPTY_TRIGGER_PRICE = 12] = "EMPTY_TRIGGER_PRICE", e[e.INSUFFICIENT_BALANCE = 13] = "INSUFFICIENT_BALANCE", e[e.MAX_ORDER_SIZE = 14] = "MAX_ORDER_SIZE", e[e.MIN_TRADE_SIZE_ERROR = 15] = "MIN_TRADE_SIZE_ERROR", e))($t || {});
695
- const L = "0x0000000000000000000000000000000000000000", K = {
694
+ var $ = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))($ || {}), re = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(re || {}), zt = /* @__PURE__ */ ((e) => (e.All = "ALL", e.Open = "OPEN", e.Cancelled = "CANCELLED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(zt || {}), ae = /* @__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))(ae || {}), z = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TAKE_PROFIT = "take-profit", e.STOP_LOSS_LIMIT = "stop-loss-limit", e.STOP_LOSS_MARKET = "stop-loss-market", e))(z || {}), pe = /* @__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.Pangolin = "pangolin", e.Sushiswap = "sushiswap", e.Agent = "agent", e))(pe || {}), $t = /* @__PURE__ */ ((e) => (e.EMPTY_LIMIT_PRICE = "emptyLimitPrice", e.MAX_CHUNKS = "maxChunksError", e.MIN_CHUNKS = "minChunksError", e.MIN_TRADE_SIZE = "minTradeSizeError", e.MAX_FILL_DELAY = "maxFillDelayError", e.MIN_FILL_DELAY = "minFillDelayError", e.MAX_ORDER_DURATION = "maxDurationError", e.MIN_ORDER_DURATION = "minDurationError", e.MISSING_LIMIT_PRICE = "missingLimitPrice", e.STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = "StopLossTriggerPriceError", e.TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = "triggerLimitPriceError", e.TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = "TakeProfitTriggerPriceError", e.EMPTY_TRIGGER_PRICE = "emptyTriggerPrice", e.INSUFFICIENT_BALANCE = "insufficientFunds", e.MAX_ORDER_SIZE = "maxOrderSize", e.MIN_TRADE_SIZE_ERROR = "minTradeSizeError", e))($t || {});
695
+ const L = "0x0000000000000000000000000000000000000000", q = {
696
696
  eth: {
697
697
  id: 1,
698
698
  name: "Ethereum",
@@ -1185,26 +1185,26 @@ const L = "0x0000000000000000000000000000000000000000", K = {
1185
1185
  }
1186
1186
  }, Ht = "2.3.3", Ve = {
1187
1187
  version: Ht
1188
- }, Kt = "https://order-sink-dev.orbs.network", Gt = "https://order-sink.orbs.network", qt = "https://order-sink-v2.orbs.network", We = Ve.version.split(".")[0], Ye = (e) => {
1188
+ }, Kt = "https://order-sink-dev.orbs.network", qt = "https://order-sink.orbs.network", Gt = "https://order-sink-v2.orbs.network", We = Ve.version.split(".")[0], Ye = (e) => {
1189
1189
  const n = Number(We) >= 2;
1190
- return e ? Kt : n ? qt : Gt;
1190
+ return e ? Kt : n ? Gt : qt;
1191
1191
  }, Hn = 100, Kn = 1, Me = 300 * 1e3, xe = 365 * 24 * 60 * 60 * 1e3, Ke = 300 * 1e3, Xt = new Date(
1192
1192
  Me
1193
- ).getMinutes(), _e = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, te = "https://hub.orbs.network/api/apikey/subgraphs/id", jt = {
1194
- [K.eth.id]: `${te}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
1195
- [K.bsc.id]: `${te}/4NfXEi8rreQsnAr4aJ45RLCKgnjcWX46Lbt9SadiCcz6`,
1196
- [K.poly.id]: `${te}/3PyRPWSvDnMowGbeBy7aNsvUkD5ZuxdXQw2RdJq4NdXi`,
1197
- [K.arb.id]: `${te}/83bpQexEaqBjHaQbKoFTbtvCXuo5RudRkfLgtRUYqo2c`,
1198
- [K.base.id]: `${te}/DFhaPQb3HATXkpsWNZw3gydYHehLBVEDiSk4iBdZJyps`,
1199
- [K.sei.id]: `${te}/5zjzRnURzoddyFSZBw5E5NAM3oBgPq3NasTYbtMk6EL6`,
1200
- [K.linea.id]: `${te}/6VsNPEYfFLPZCqdMMDadoXQjLHWJdjEwiD768GAtb7j6`,
1201
- [K.sonic.id]: `${te}/DtBr6a5vsoDd2oAXdPszcn4gLgrr1XC68Q3AJQKXnNLV`,
1202
- [K.ftm.id]: `${te}/DdRo1pmJkrJC9fjsjEBWnNE1uqrbh7Diz4tVKd7rfupp`,
1203
- [K.katana.id]: `${te}/CGi9sDFMQcnBwF3C3NoCFqnaE34sssbgwPLTwiskSXmW`,
1204
- [K.avax.id]: `${te}/FxZ1vMwE5Xy1qvKvZENUMz4vhW8Sh4vXJf9Vp7o17pTx`,
1205
- [K.bera.id]: _e("berachain"),
1206
- [K.flare.id]: _e("flare"),
1207
- [K.cronosZkEvm.id]: _e("cronos-zkevm")
1193
+ ).getMinutes(), Oe = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, te = "https://hub.orbs.network/api/apikey/subgraphs/id", jt = {
1194
+ [q.eth.id]: `${te}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
1195
+ [q.bsc.id]: `${te}/4NfXEi8rreQsnAr4aJ45RLCKgnjcWX46Lbt9SadiCcz6`,
1196
+ [q.poly.id]: `${te}/3PyRPWSvDnMowGbeBy7aNsvUkD5ZuxdXQw2RdJq4NdXi`,
1197
+ [q.arb.id]: `${te}/83bpQexEaqBjHaQbKoFTbtvCXuo5RudRkfLgtRUYqo2c`,
1198
+ [q.base.id]: `${te}/DFhaPQb3HATXkpsWNZw3gydYHehLBVEDiSk4iBdZJyps`,
1199
+ [q.sei.id]: `${te}/5zjzRnURzoddyFSZBw5E5NAM3oBgPq3NasTYbtMk6EL6`,
1200
+ [q.linea.id]: `${te}/6VsNPEYfFLPZCqdMMDadoXQjLHWJdjEwiD768GAtb7j6`,
1201
+ [q.sonic.id]: `${te}/DtBr6a5vsoDd2oAXdPszcn4gLgrr1XC68Q3AJQKXnNLV`,
1202
+ [q.ftm.id]: `${te}/DdRo1pmJkrJC9fjsjEBWnNE1uqrbh7Diz4tVKd7rfupp`,
1203
+ [q.katana.id]: `${te}/CGi9sDFMQcnBwF3C3NoCFqnaE34sssbgwPLTwiskSXmW`,
1204
+ [q.avax.id]: `${te}/FxZ1vMwE5Xy1qvKvZENUMz4vhW8Sh4vXJf9Vp7o17pTx`,
1205
+ [q.bera.id]: Oe("berachain"),
1206
+ [q.flare.id]: Oe("flare"),
1207
+ [q.cronosZkEvm.id]: Oe("cronos-zkevm")
1208
1208
  }, Qt = "0x0000000000000000000000000000000000000000", Yt = [
1209
1209
  Qt,
1210
1210
  "0x0000000000000000000000000000000000001010",
@@ -1213,58 +1213,58 @@ const L = "0x0000000000000000000000000000000000000000", K = {
1213
1213
  "0x000000000000000000000000000000000000800A",
1214
1214
  "0x000000000000000000000000000000000000800a"
1215
1215
  ], ze = "115792089237316195423570985008687907853269984665640564039457584007913129639935", G = (e) => `${e.name}_${e.chainId}`, Zt = {
1216
- [G(_.SushiArb)]: [
1216
+ [G(O.SushiArb)]: [
1217
1217
  "0x846F2B29ef314bF3D667981b4ffdADc5B858312a",
1218
1218
  "0x08c41f5D1C844061f6D952E25827eeAA576c6536"
1219
1219
  ],
1220
- [G(_.SushiBase)]: [
1220
+ [G(O.SushiBase)]: [
1221
1221
  "0x846F2B29ef314bF3D667981b4ffdADc5B858312a",
1222
1222
  "0x08c41f5D1C844061f6D952E25827eeAA576c6536"
1223
1223
  ],
1224
- [G(_.SushiEth)]: [
1224
+ [G(O.SushiEth)]: [
1225
1225
  "0xc55943Fa6509004B2903ED8F8ab7347BfC47D0bA",
1226
1226
  "0x08c41f5D1C844061f6D952E25827eeAA576c6536"
1227
1227
  ],
1228
- [G(_.PancakeSwap)]: [
1228
+ [G(O.PancakeSwap)]: [
1229
1229
  "0xb2BAFe188faD927240038cC4FfF2d771d8A58905",
1230
1230
  "0xE2a0c3b9aD19A18c4bBa7fffBe5bC1b0E58Db1CE"
1231
1231
  ],
1232
- [G(_.PancakeSwapArbitrum)]: [
1232
+ [G(O.PancakeSwapArbitrum)]: [
1233
1233
  "0xE20167871dB616DdfFD0Fd870d9bC068C350DD1F",
1234
1234
  "0x807488ADAD033e95C438F998277bE654152594dc"
1235
1235
  ],
1236
- [G(_.PancakeSwapBase)]: [
1236
+ [G(O.PancakeSwapBase)]: [
1237
1237
  "0x10ed1F36e4eBE76E161c9AADDa20BE841bc0082c",
1238
1238
  "0x3A9df3eE209b802D0337383f5abCe3204d623588"
1239
1239
  ],
1240
- [G(_.PancakeSwapLinea)]: [
1240
+ [G(O.PancakeSwapLinea)]: [
1241
1241
  "0x3A9df3eE209b802D0337383f5abCe3204d623588"
1242
1242
  ],
1243
- [G(_.QuickSwap)]: [
1243
+ [G(O.QuickSwap)]: [
1244
1244
  "0x26D0ec4Be402BCE03AAa8aAf0CF67e9428ba54eF"
1245
1245
  ],
1246
- [G(_.Thena)]: [
1246
+ [G(O.Thena)]: [
1247
1247
  "0xc2aBC02acd77Bb2407efA22348dA9afC8B375290"
1248
1248
  ],
1249
- [G(_.Lynex)]: [
1249
+ [G(O.Lynex)]: [
1250
1250
  "0x72e3e1fD5D2Ee2F1C2Eb695206D490a1D45C3835"
1251
1251
  ],
1252
- [G(_.DragonSwap)]: [
1252
+ [G(O.DragonSwap)]: [
1253
1253
  "0x101e1B65Bb516FB5f4547C80BAe0b51f1b8D7a22"
1254
1254
  ],
1255
- [G(_.SpookySwapSonic)]: [
1255
+ [G(O.SpookySwapSonic)]: [
1256
1256
  "0xAd97B770ad64aE47fc7d64B3bD820dCDbF9ff7DA"
1257
1257
  ],
1258
- [G(_.SpookySwap)]: [
1258
+ [G(O.SpookySwap)]: [
1259
1259
  "0x3924d62219483015f982b160d48c0fa5Fd436Cba"
1260
1260
  ],
1261
- [G(_.SwapX)]: [
1261
+ [G(O.SwapX)]: [
1262
1262
  "0xE5012eBDe5e26EE3Ea41992154731a03023CF274"
1263
1263
  ]
1264
- }, Ge = {
1264
+ }, qe = {
1265
1265
  unit: ae.Minutes,
1266
1266
  value: Xt
1267
- }, Gn = 0.25, qn = "100", Ze = "RePermitWitnessTransferFrom", Jt = {
1267
+ }, qn = 0.25, Gn = "100", Ze = "RePermitWitnessTransferFrom", Jt = {
1268
1268
  RePermitWitnessTransferFrom: [
1269
1269
  {
1270
1270
  name: "permitted",
@@ -1522,9 +1522,9 @@ const L = "0x0000000000000000000000000000000000000000", K = {
1522
1522
  }, Xn = "https://www.orbs.com/dtwap-and-dlimit-faq/", jn = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", Qn = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", Yn = "https://www.orbs.com/assets/img/common/logo.svg", Zn = "https://www.orbs.com/", Jn = "https://www.orbs.com/dtwap-dlimit-disclaimer";
1523
1523
  var ge = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_USD = "minChunkSizeUsd", e.ENV = "env", e.DURATION = "duration", e.IGNORE_ERRORS = "ignore-errors", e))(ge || {});
1524
1524
  const ea = "-5", ta = "10", na = "-10", aa = "5", sa = "Something went wrong";
1525
- var tn = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Oe = Math.ceil, Z = Math.floor, X = "[BigNumber Error] ", qe = X + "Number primitive has more than 15 significant digits: ", ne = 1e14, S = 14, ve = 9007199254740991, Re = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ue = 1e7, W = 1e9;
1525
+ var tn = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, _e = Math.ceil, Z = Math.floor, X = "[BigNumber Error] ", Ge = X + "Number primitive has more than 15 significant digits: ", ne = 1e14, S = 14, ve = 9007199254740991, Pe = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ue = 1e7, W = 1e9;
1526
1526
  function Je(e) {
1527
- var n, i, m, d = b.prototype = { constructor: b, toString: null, valueOf: null }, A = new b(1), E = 20, g = 4, T = -7, D = 21, B = -1e7, C = 1e7, F = !1, R = 1, I = 0, ie = {
1527
+ var n, i, m, d = b.prototype = { constructor: b, toString: null, valueOf: null }, h = new b(1), E = 20, x = 4, F = -7, D = 21, B = -1e7, C = 1e7, T = !1, P = 1, I = 0, ie = {
1528
1528
  prefix: "",
1529
1529
  groupSize: 3,
1530
1530
  secondaryGroupSize: 0,
@@ -1557,11 +1557,11 @@ function Je(e) {
1557
1557
  (p = f.indexOf(".")) > -1 && (f = f.replace(".", "")), (y = f.search(/e/i)) > 0 ? (p < 0 && (p = y), p += +f.slice(y + 1), f = f.substring(0, y)) : p < 0 && (p = f.length);
1558
1558
  } else {
1559
1559
  if (N(a, 2, ee.length, "Base"), a == 10 && fe)
1560
- return u = new b(t), j(u, E + u.e + 1, g);
1560
+ return u = new b(t), j(u, E + u.e + 1, x);
1561
1561
  if (f = String(t), r = typeof t == "number") {
1562
1562
  if (t * 0 != 0) return m(u, f, r, a);
1563
1563
  if (u.s = 1 / t < 0 ? (f = f.slice(1), -1) : 1, b.DEBUG && f.replace(/^0\.0*|\./, "").length > 15)
1564
- throw Error(qe + t);
1564
+ throw Error(Ge + t);
1565
1565
  } else
1566
1566
  u.s = f.charCodeAt(0) === 45 ? (f = f.slice(1), -1) : 1;
1567
1567
  for (s = ee.slice(0, a), p = y = 0, c = f.length; y < c; y++)
@@ -1583,7 +1583,7 @@ function Je(e) {
1583
1583
  for (c = f.length; f.charCodeAt(--c) === 48; ) ;
1584
1584
  if (f = f.slice(y, ++c)) {
1585
1585
  if (c -= y, r && b.DEBUG && c > 15 && (t > ve || t !== Z(t)))
1586
- throw Error(qe + u.s * t);
1586
+ throw Error(Ge + u.s * t);
1587
1587
  if ((p = p - y - 1) > C)
1588
1588
  u.c = u.e = null;
1589
1589
  else if (p < B)
@@ -1605,7 +1605,7 @@ function Je(e) {
1605
1605
  var a, s;
1606
1606
  if (t != null)
1607
1607
  if (typeof t == "object") {
1608
- if (t.hasOwnProperty(a = "DECIMAL_PLACES") && (s = t[a], N(s, 0, W, a), E = s), t.hasOwnProperty(a = "ROUNDING_MODE") && (s = t[a], N(s, 0, 8, a), g = s), t.hasOwnProperty(a = "EXPONENTIAL_AT") && (s = t[a], s && s.pop ? (N(s[0], -W, 0, a), N(s[1], 0, W, a), T = s[0], D = s[1]) : (N(s, -W, W, a), T = -(D = s < 0 ? -s : s))), t.hasOwnProperty(a = "RANGE"))
1608
+ if (t.hasOwnProperty(a = "DECIMAL_PLACES") && (s = t[a], N(s, 0, W, a), E = s), t.hasOwnProperty(a = "ROUNDING_MODE") && (s = t[a], N(s, 0, 8, a), x = s), t.hasOwnProperty(a = "EXPONENTIAL_AT") && (s = t[a], s && s.pop ? (N(s[0], -W, 0, a), N(s[1], 0, W, a), F = s[0], D = s[1]) : (N(s, -W, W, a), F = -(D = s < 0 ? -s : s))), t.hasOwnProperty(a = "RANGE"))
1609
1609
  if (s = t[a], s && s.pop)
1610
1610
  N(s[0], -W, -1, a), N(s[1], 1, W, a), B = s[0], C = s[1];
1611
1611
  else if (N(s, -W, W, a), s)
@@ -1616,14 +1616,14 @@ function Je(e) {
1616
1616
  if (s = t[a], s === !!s)
1617
1617
  if (s)
1618
1618
  if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
1619
- F = s;
1619
+ T = s;
1620
1620
  else
1621
- throw F = !s, Error(X + "crypto unavailable");
1621
+ throw T = !s, Error(X + "crypto unavailable");
1622
1622
  else
1623
- F = s;
1623
+ T = s;
1624
1624
  else
1625
1625
  throw Error(X + a + " not true or false: " + s);
1626
- if (t.hasOwnProperty(a = "MODULO_MODE") && (s = t[a], N(s, 0, 9, a), R = s), t.hasOwnProperty(a = "POW_PRECISION") && (s = t[a], N(s, 0, W, a), I = s), t.hasOwnProperty(a = "FORMAT"))
1626
+ if (t.hasOwnProperty(a = "MODULO_MODE") && (s = t[a], N(s, 0, 9, a), P = s), t.hasOwnProperty(a = "POW_PRECISION") && (s = t[a], N(s, 0, W, a), I = s), t.hasOwnProperty(a = "FORMAT"))
1627
1627
  if (s = t[a], typeof s == "object") ie = s;
1628
1628
  else throw Error(X + a + " not an object: " + s);
1629
1629
  if (t.hasOwnProperty(a = "ALPHABET"))
@@ -1635,11 +1635,11 @@ function Je(e) {
1635
1635
  throw Error(X + "Object expected: " + t);
1636
1636
  return {
1637
1637
  DECIMAL_PLACES: E,
1638
- ROUNDING_MODE: g,
1639
- EXPONENTIAL_AT: [T, D],
1638
+ ROUNDING_MODE: x,
1639
+ EXPONENTIAL_AT: [F, D],
1640
1640
  RANGE: [B, C],
1641
- CRYPTO: F,
1642
- MODULO_MODE: R,
1641
+ CRYPTO: T,
1642
+ MODULO_MODE: P,
1643
1643
  POW_PRECISION: I,
1644
1644
  FORMAT: ie,
1645
1645
  ALPHABET: ee
@@ -1664,9 +1664,9 @@ function Je(e) {
1664
1664
  return !0;
1665
1665
  throw Error(X + "Invalid BigNumber: " + t);
1666
1666
  }, b.maximum = b.max = function() {
1667
- return he(arguments, -1);
1667
+ return Ae(arguments, -1);
1668
1668
  }, b.minimum = b.min = function() {
1669
- return he(arguments, 1);
1669
+ return Ae(arguments, 1);
1670
1670
  }, b.random = (function() {
1671
1671
  var t = 9007199254740992, a = Math.random() * t & 2097151 ? function() {
1672
1672
  return Z(Math.random() * t);
@@ -1674,8 +1674,8 @@ function Je(e) {
1674
1674
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
1675
1675
  };
1676
1676
  return function(s) {
1677
- var l, o, p, y, r, c = 0, f = [], u = new b(A);
1678
- if (s == null ? s = E : N(s, 0, W), y = Oe(s / S), F)
1677
+ var l, o, p, y, r, c = 0, f = [], u = new b(h);
1678
+ if (s == null ? s = E : N(s, 0, W), y = _e(s / S), T)
1679
1679
  if (crypto.getRandomValues) {
1680
1680
  for (l = crypto.getRandomValues(new Uint32Array(y *= 2)); c < y; )
1681
1681
  r = l[c] * 131072 + (l[c + 1] >>> 11), r >= 9e15 ? (o = crypto.getRandomValues(new Uint32Array(2)), l[c] = o[0], l[c + 1] = o[1]) : (f.push(r % 1e14), c += 2);
@@ -1685,11 +1685,11 @@ function Je(e) {
1685
1685
  r = (l[c] & 31) * 281474976710656 + l[c + 1] * 1099511627776 + l[c + 2] * 4294967296 + l[c + 3] * 16777216 + (l[c + 4] << 16) + (l[c + 5] << 8) + l[c + 6], r >= 9e15 ? crypto.randomBytes(7).copy(l, c) : (f.push(r % 1e14), c += 7);
1686
1686
  c = y / 7;
1687
1687
  } else
1688
- throw F = !1, Error(X + "crypto unavailable");
1689
- if (!F)
1688
+ throw T = !1, Error(X + "crypto unavailable");
1689
+ if (!T)
1690
1690
  for (; c < y; )
1691
1691
  r = a(), r < 9e15 && (f[c++] = r % 1e14);
1692
- for (y = f[--c], s %= S, y && s && (r = Re[S - s], f[c] = Z(y / r) * r); f[c] === 0; f.pop(), c--) ;
1692
+ for (y = f[--c], s %= S, y && s && (r = Pe[S - s], f[c] = Z(y / r) * r); f[c] === 0; f.pop(), c--) ;
1693
1693
  if (c < 0)
1694
1694
  f = [p = 0];
1695
1695
  else {
@@ -1713,7 +1713,7 @@ function Je(e) {
1713
1713
  return r.reverse();
1714
1714
  }
1715
1715
  return function(s, l, o, p, y) {
1716
- var r, c, f, u, h, w, k, v, M = s.indexOf("."), V = E, O = g;
1716
+ var r, c, f, u, A, w, k, v, M = s.indexOf("."), V = E, _ = x;
1717
1717
  for (M >= 0 && (u = I, I = 0, s = s.replace(".", ""), v = new b(l), w = v.pow(s.length - M), I = u, v.c = a(
1718
1718
  de(Y(w.c), w.e, "0"),
1719
1719
  10,
@@ -1721,10 +1721,10 @@ function Je(e) {
1721
1721
  t
1722
1722
  ), v.e = v.c.length), k = a(s, l, o, y ? (r = ee, t) : (r = t, ee)), f = u = k.length; k[--u] == 0; k.pop()) ;
1723
1723
  if (!k[0]) return r.charAt(0);
1724
- if (M < 0 ? --f : (w.c = k, w.e = f, w.s = p, w = n(w, v, V, O, o), k = w.c, h = w.r, f = w.e), c = f + V + 1, M = k[c], u = o / 2, h = h || c < 0 || k[c + 1] != null, h = O < 4 ? (M != null || h) && (O == 0 || O == (w.s < 0 ? 3 : 2)) : M > u || M == u && (O == 4 || h || O == 6 && k[c - 1] & 1 || O == (w.s < 0 ? 8 : 7)), c < 1 || !k[0])
1725
- s = h ? de(r.charAt(1), -V, r.charAt(0)) : r.charAt(0);
1724
+ if (M < 0 ? --f : (w.c = k, w.e = f, w.s = p, w = n(w, v, V, _, o), k = w.c, A = w.r, f = w.e), c = f + V + 1, M = k[c], u = o / 2, A = A || c < 0 || k[c + 1] != null, A = _ < 4 ? (M != null || A) && (_ == 0 || _ == (w.s < 0 ? 3 : 2)) : M > u || M == u && (_ == 4 || A || _ == 6 && k[c - 1] & 1 || _ == (w.s < 0 ? 8 : 7)), c < 1 || !k[0])
1725
+ s = A ? de(r.charAt(1), -V, r.charAt(0)) : r.charAt(0);
1726
1726
  else {
1727
- if (k.length = c, h)
1727
+ if (k.length = c, A)
1728
1728
  for (--o; ++k[--c] > o; )
1729
1729
  k[c] = 0, c || (++f, k = [1].concat(k));
1730
1730
  for (u = k.length; !k[--u]; ) ;
@@ -1735,9 +1735,9 @@ function Je(e) {
1735
1735
  };
1736
1736
  })(), n = /* @__PURE__ */ (function() {
1737
1737
  function t(l, o, p) {
1738
- var y, r, c, f, u = 0, h = l.length, w = o % ue, k = o / ue | 0;
1739
- for (l = l.slice(); h--; )
1740
- c = l[h] % ue, f = l[h] / ue | 0, y = k * c + f * w, r = w * c + y % ue * ue + u, u = (r / p | 0) + (y / ue | 0) + k * f, l[h] = r % p;
1738
+ var y, r, c, f, u = 0, A = l.length, w = o % ue, k = o / ue | 0;
1739
+ for (l = l.slice(); A--; )
1740
+ c = l[A] % ue, f = l[A] / ue | 0, y = k * c + f * w, r = w * c + y % ue * ue + u, u = (r / p | 0) + (y / ue | 0) + k * f, l[A] = r % p;
1741
1741
  return u && (l = [u].concat(l)), l;
1742
1742
  }
1743
1743
  function a(l, o, p, y) {
@@ -1758,50 +1758,50 @@ function Je(e) {
1758
1758
  for (; !l[0] && l.length > 1; l.splice(0, 1)) ;
1759
1759
  }
1760
1760
  return function(l, o, p, y, r) {
1761
- var c, f, u, h, w, k, v, M, V, O, P, $, Ce, Be, Se, se, Ee, Q = l.s == o.s ? 1 : -1, H = l.c, U = o.c;
1762
- if (!H || !H[0] || !U || !U[0])
1761
+ var c, f, u, A, w, k, v, M, V, _, R, H, Ce, Be, Se, se, Ee, Q = l.s == o.s ? 1 : -1, K = l.c, U = o.c;
1762
+ if (!K || !K[0] || !U || !U[0])
1763
1763
  return new b(
1764
1764
  // Return NaN if either NaN, or both Infinity or 0.
1765
- !l.s || !o.s || (H ? U && H[0] == U[0] : !U) ? NaN : (
1765
+ !l.s || !o.s || (K ? U && K[0] == U[0] : !U) ? NaN : (
1766
1766
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
1767
- H && H[0] == 0 || !U ? Q * 0 : Q / 0
1767
+ K && K[0] == 0 || !U ? Q * 0 : Q / 0
1768
1768
  )
1769
1769
  );
1770
- for (M = new b(Q), V = M.c = [], f = l.e - o.e, Q = p + f + 1, r || (r = ne, f = J(l.e / S) - J(o.e / S), Q = Q / S | 0), u = 0; U[u] == (H[u] || 0); u++) ;
1771
- if (U[u] > (H[u] || 0) && f--, Q < 0)
1772
- V.push(1), h = !0;
1770
+ for (M = new b(Q), V = M.c = [], f = l.e - o.e, Q = p + f + 1, r || (r = ne, f = J(l.e / S) - J(o.e / S), Q = Q / S | 0), u = 0; U[u] == (K[u] || 0); u++) ;
1771
+ if (U[u] > (K[u] || 0) && f--, Q < 0)
1772
+ V.push(1), A = !0;
1773
1773
  else {
1774
- for (Be = H.length, se = U.length, u = 0, Q += 2, w = Z(r / (U[0] + 1)), w > 1 && (U = t(U, w, r), H = t(H, w, r), se = U.length, Be = H.length), Ce = se, O = H.slice(0, se), P = O.length; P < se; O[P++] = 0) ;
1774
+ for (Be = K.length, se = U.length, u = 0, Q += 2, w = Z(r / (U[0] + 1)), w > 1 && (U = t(U, w, r), K = t(K, w, r), se = U.length, Be = K.length), Ce = se, _ = K.slice(0, se), R = _.length; R < se; _[R++] = 0) ;
1775
1775
  Ee = U.slice(), Ee = [0].concat(Ee), Se = U[0], U[1] >= r / 2 && Se++;
1776
1776
  do {
1777
- if (w = 0, c = a(U, O, se, P), c < 0) {
1778
- if ($ = O[0], se != P && ($ = $ * r + (O[1] || 0)), w = Z($ / Se), w > 1)
1779
- for (w >= r && (w = r - 1), k = t(U, w, r), v = k.length, P = O.length; a(k, O, v, P) == 1; )
1777
+ if (w = 0, c = a(U, _, se, R), c < 0) {
1778
+ if (H = _[0], se != R && (H = H * r + (_[1] || 0)), w = Z(H / Se), w > 1)
1779
+ for (w >= r && (w = r - 1), k = t(U, w, r), v = k.length, R = _.length; a(k, _, v, R) == 1; )
1780
1780
  w--, s(k, se < v ? Ee : U, v, r), v = k.length, c = 1;
1781
1781
  else
1782
1782
  w == 0 && (c = w = 1), k = U.slice(), v = k.length;
1783
- if (v < P && (k = [0].concat(k)), s(O, k, P, r), P = O.length, c == -1)
1784
- for (; a(U, O, se, P) < 1; )
1785
- w++, s(O, se < P ? Ee : U, P, r), P = O.length;
1786
- } else c === 0 && (w++, O = [0]);
1787
- V[u++] = w, O[0] ? O[P++] = H[Ce] || 0 : (O = [H[Ce]], P = 1);
1788
- } while ((Ce++ < Be || O[0] != null) && Q--);
1789
- h = O[0] != null, V[0] || V.splice(0, 1);
1783
+ if (v < R && (k = [0].concat(k)), s(_, k, R, r), R = _.length, c == -1)
1784
+ for (; a(U, _, se, R) < 1; )
1785
+ w++, s(_, se < R ? Ee : U, R, r), R = _.length;
1786
+ } else c === 0 && (w++, _ = [0]);
1787
+ V[u++] = w, _[0] ? _[R++] = K[Ce] || 0 : (_ = [K[Ce]], R = 1);
1788
+ } while ((Ce++ < Be || _[0] != null) && Q--);
1789
+ A = _[0] != null, V[0] || V.splice(0, 1);
1790
1790
  }
1791
1791
  if (r == ne) {
1792
1792
  for (u = 1, Q = V[0]; Q >= 10; Q /= 10, u++) ;
1793
- j(M, p + (M.e = u + f * S - 1) + 1, y, h);
1793
+ j(M, p + (M.e = u + f * S - 1) + 1, y, A);
1794
1794
  } else
1795
- M.e = f, M.r = +h;
1795
+ M.e = f, M.r = +A;
1796
1796
  return M;
1797
1797
  };
1798
1798
  })();
1799
1799
  function me(t, a, s, l) {
1800
1800
  var o, p, y, r, c;
1801
- if (s == null ? s = g : N(s, 0, 8), !t.c) return t.toString();
1801
+ if (s == null ? s = x : N(s, 0, 8), !t.c) return t.toString();
1802
1802
  if (o = t.c[0], y = t.e, a == null)
1803
- c = Y(t.c), c = l == 1 || l == 2 && (y <= T || y >= D) ? we(c, y) : de(c, y, "0");
1804
- else if (t = j(new b(t), a, s), p = t.e, c = Y(t.c), r = c.length, l == 1 || l == 2 && (a <= p || p <= T)) {
1803
+ c = Y(t.c), c = l == 1 || l == 2 && (y <= F || y >= D) ? we(c, y) : de(c, y, "0");
1804
+ else if (t = j(new b(t), a, s), p = t.e, c = Y(t.c), r = c.length, l == 1 || l == 2 && (a <= p || p <= F)) {
1805
1805
  for (; r < a; c += "0", r++) ;
1806
1806
  c = we(c, p);
1807
1807
  } else if (a -= y + (l === 2 && p > y), c = de(c, p, "0"), p + 1 > r) {
@@ -1810,7 +1810,7 @@ function Je(e) {
1810
1810
  for (p + 1 == r && (c += "."); a--; c += "0") ;
1811
1811
  return t.s < 0 && o ? "-" + c : c;
1812
1812
  }
1813
- function he(t, a) {
1813
+ function Ae(t, a) {
1814
1814
  for (var s, l, o = 1, p = new b(t[0]); o < t.length; o++)
1815
1815
  l = new b(t[o]), (!l.s || (s = ye(p, l)) === a || s === 0 && p.s === a) && (p = l);
1816
1816
  return p;
@@ -1827,8 +1827,8 @@ function Je(e) {
1827
1827
  if (l.test(u))
1828
1828
  p.s = isNaN(u) ? null : u < 0 ? -1 : 1;
1829
1829
  else {
1830
- if (!r && (u = u.replace(t, function(h, w, k) {
1831
- return f = (k = k.toLowerCase()) == "x" ? 16 : k == "b" ? 2 : 8, !c || c == f ? w : h;
1830
+ if (!r && (u = u.replace(t, function(A, w, k) {
1831
+ return f = (k = k.toLowerCase()) == "x" ? 16 : k == "b" ? 2 : 8, !c || c == f ? w : A;
1832
1832
  }), c && (f = c, u = u.replace(a, "$1").replace(s, "0.$1")), y != u))
1833
1833
  return new b(u, f);
1834
1834
  if (b.DEBUG)
@@ -1839,40 +1839,40 @@ function Je(e) {
1839
1839
  };
1840
1840
  })();
1841
1841
  function j(t, a, s, l) {
1842
- var o, p, y, r, c, f, u, h = t.c, w = Re;
1843
- if (h) {
1842
+ var o, p, y, r, c, f, u, A = t.c, w = Pe;
1843
+ if (A) {
1844
1844
  e: {
1845
- for (o = 1, r = h[0]; r >= 10; r /= 10, o++) ;
1845
+ for (o = 1, r = A[0]; r >= 10; r /= 10, o++) ;
1846
1846
  if (p = a - o, p < 0)
1847
- p += S, y = a, c = h[f = 0], u = Z(c / w[o - y - 1] % 10);
1848
- else if (f = Oe((p + 1) / S), f >= h.length)
1847
+ p += S, y = a, c = A[f = 0], u = Z(c / w[o - y - 1] % 10);
1848
+ else if (f = _e((p + 1) / S), f >= A.length)
1849
1849
  if (l) {
1850
- for (; h.length <= f; h.push(0)) ;
1850
+ for (; A.length <= f; A.push(0)) ;
1851
1851
  c = u = 0, o = 1, p %= S, y = p - S + 1;
1852
1852
  } else
1853
1853
  break e;
1854
1854
  else {
1855
- for (c = r = h[f], o = 1; r >= 10; r /= 10, o++) ;
1855
+ for (c = r = A[f], o = 1; r >= 10; r /= 10, o++) ;
1856
1856
  p %= S, y = p - S + o, u = y < 0 ? 0 : Z(c / w[o - y - 1] % 10);
1857
1857
  }
1858
1858
  if (l = l || a < 0 || // Are there any non-zero digits after the rounding digit?
1859
1859
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
1860
1860
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
1861
- h[f + 1] != null || (y < 0 ? c : c % w[o - y - 1]), l = s < 4 ? (u || l) && (s == 0 || s == (t.s < 0 ? 3 : 2)) : u > 5 || u == 5 && (s == 4 || l || s == 6 && // Check whether the digit to the left of the rounding digit is odd.
1862
- (p > 0 ? y > 0 ? c / w[o - y] : 0 : h[f - 1]) % 10 & 1 || s == (t.s < 0 ? 8 : 7)), a < 1 || !h[0])
1863
- return h.length = 0, l ? (a -= t.e + 1, h[0] = w[(S - a % S) % S], t.e = -a || 0) : h[0] = t.e = 0, t;
1864
- if (p == 0 ? (h.length = f, r = 1, f--) : (h.length = f + 1, r = w[S - p], h[f] = y > 0 ? Z(c / w[o - y] % w[y]) * r : 0), l)
1861
+ A[f + 1] != null || (y < 0 ? c : c % w[o - y - 1]), l = s < 4 ? (u || l) && (s == 0 || s == (t.s < 0 ? 3 : 2)) : u > 5 || u == 5 && (s == 4 || l || s == 6 && // Check whether the digit to the left of the rounding digit is odd.
1862
+ (p > 0 ? y > 0 ? c / w[o - y] : 0 : A[f - 1]) % 10 & 1 || s == (t.s < 0 ? 8 : 7)), a < 1 || !A[0])
1863
+ return A.length = 0, l ? (a -= t.e + 1, A[0] = w[(S - a % S) % S], t.e = -a || 0) : A[0] = t.e = 0, t;
1864
+ if (p == 0 ? (A.length = f, r = 1, f--) : (A.length = f + 1, r = w[S - p], A[f] = y > 0 ? Z(c / w[o - y] % w[y]) * r : 0), l)
1865
1865
  for (; ; )
1866
1866
  if (f == 0) {
1867
- for (p = 1, y = h[0]; y >= 10; y /= 10, p++) ;
1868
- for (y = h[0] += r, r = 1; y >= 10; y /= 10, r++) ;
1869
- p != r && (t.e++, h[0] == ne && (h[0] = 1));
1867
+ for (p = 1, y = A[0]; y >= 10; y /= 10, p++) ;
1868
+ for (y = A[0] += r, r = 1; y >= 10; y /= 10, r++) ;
1869
+ p != r && (t.e++, A[0] == ne && (A[0] = 1));
1870
1870
  break;
1871
1871
  } else {
1872
- if (h[f] += r, h[f] != ne) break;
1873
- h[f--] = 0, r = 1;
1872
+ if (A[f] += r, A[f] != ne) break;
1873
+ A[f--] = 0, r = 1;
1874
1874
  }
1875
- for (p = h.length; h[--p] === 0; h.pop()) ;
1875
+ for (p = A.length; A[--p] === 0; A.pop()) ;
1876
1876
  }
1877
1877
  t.e > C ? t.c = t.e = null : t.e < B && (t.c = [t.e = 0]);
1878
1878
  }
@@ -1880,7 +1880,7 @@ function Je(e) {
1880
1880
  }
1881
1881
  function oe(t) {
1882
1882
  var a, s = t.e;
1883
- return s === null ? t.toString() : (a = Y(t.c), a = s <= T || s >= D ? we(a, s) : de(a, s, "0"), t.s < 0 ? "-" + a : a);
1883
+ return s === null ? t.toString() : (a = Y(t.c), a = s <= F || s >= D ? we(a, s) : de(a, s, "0"), t.s < 0 ? "-" + a : a);
1884
1884
  }
1885
1885
  return d.absoluteValue = d.abs = function() {
1886
1886
  var t = new b(this);
@@ -1890,48 +1890,48 @@ function Je(e) {
1890
1890
  }, d.decimalPlaces = d.dp = function(t, a) {
1891
1891
  var s, l, o, p = this;
1892
1892
  if (t != null)
1893
- return N(t, 0, W), a == null ? a = g : N(a, 0, 8), j(new b(p), t + p.e + 1, a);
1893
+ return N(t, 0, W), a == null ? a = x : N(a, 0, 8), j(new b(p), t + p.e + 1, a);
1894
1894
  if (!(s = p.c)) return null;
1895
1895
  if (l = ((o = s.length - 1) - J(this.e / S)) * S, o = s[o]) for (; o % 10 == 0; o /= 10, l--) ;
1896
1896
  return l < 0 && (l = 0), l;
1897
1897
  }, d.dividedBy = d.div = function(t, a) {
1898
- return n(this, new b(t, a), E, g);
1898
+ return n(this, new b(t, a), E, x);
1899
1899
  }, d.dividedToIntegerBy = d.idiv = function(t, a) {
1900
1900
  return n(this, new b(t, a), 0, 1);
1901
1901
  }, d.exponentiatedBy = d.pow = function(t, a) {
1902
- var s, l, o, p, y, r, c, f, u, h = this;
1902
+ var s, l, o, p, y, r, c, f, u, A = this;
1903
1903
  if (t = new b(t), t.c && !t.isInteger())
1904
1904
  throw Error(X + "Exponent not an integer: " + oe(t));
1905
- if (a != null && (a = new b(a)), r = t.e > 14, !h.c || !h.c[0] || h.c[0] == 1 && !h.e && h.c.length == 1 || !t.c || !t.c[0])
1906
- return u = new b(Math.pow(+oe(h), r ? t.s * (2 - Fe(t)) : +oe(t))), a ? u.mod(a) : u;
1905
+ if (a != null && (a = new b(a)), r = t.e > 14, !A.c || !A.c[0] || A.c[0] == 1 && !A.e && A.c.length == 1 || !t.c || !t.c[0])
1906
+ return u = new b(Math.pow(+oe(A), r ? t.s * (2 - Te(t)) : +oe(t))), a ? u.mod(a) : u;
1907
1907
  if (c = t.s < 0, a) {
1908
1908
  if (a.c ? !a.c[0] : !a.s) return new b(NaN);
1909
- l = !c && h.isInteger() && a.isInteger(), l && (h = h.mod(a));
1909
+ l = !c && A.isInteger() && a.isInteger(), l && (A = A.mod(a));
1910
1910
  } else {
1911
- if (t.e > 9 && (h.e > 0 || h.e < -1 || (h.e == 0 ? h.c[0] > 1 || r && h.c[1] >= 24e7 : h.c[0] < 8e13 || r && h.c[0] <= 9999975e7)))
1912
- return p = h.s < 0 && Fe(t) ? -0 : 0, h.e > -1 && (p = 1 / p), new b(c ? 1 / p : p);
1913
- I && (p = Oe(I / S + 2));
1911
+ if (t.e > 9 && (A.e > 0 || A.e < -1 || (A.e == 0 ? A.c[0] > 1 || r && A.c[1] >= 24e7 : A.c[0] < 8e13 || r && A.c[0] <= 9999975e7)))
1912
+ return p = A.s < 0 && Te(t) ? -0 : 0, A.e > -1 && (p = 1 / p), new b(c ? 1 / p : p);
1913
+ I && (p = _e(I / S + 2));
1914
1914
  }
1915
- for (r ? (s = new b(0.5), c && (t.s = 1), f = Fe(t)) : (o = Math.abs(+oe(t)), f = o % 2), u = new b(A); ; ) {
1915
+ for (r ? (s = new b(0.5), c && (t.s = 1), f = Te(t)) : (o = Math.abs(+oe(t)), f = o % 2), u = new b(h); ; ) {
1916
1916
  if (f) {
1917
- if (u = u.times(h), !u.c) break;
1917
+ if (u = u.times(A), !u.c) break;
1918
1918
  p ? u.c.length > p && (u.c.length = p) : l && (u = u.mod(a));
1919
1919
  }
1920
1920
  if (o) {
1921
1921
  if (o = Z(o / 2), o === 0) break;
1922
1922
  f = o % 2;
1923
1923
  } else if (t = t.times(s), j(t, t.e + 1, 1), t.e > 14)
1924
- f = Fe(t);
1924
+ f = Te(t);
1925
1925
  else {
1926
1926
  if (o = +oe(t), o === 0) break;
1927
1927
  f = o % 2;
1928
1928
  }
1929
- h = h.times(h), p ? h.c && h.c.length > p && (h.c.length = p) : l && (h = h.mod(a));
1929
+ A = A.times(A), p ? A.c && A.c.length > p && (A.c.length = p) : l && (A = A.mod(a));
1930
1930
  }
1931
- return l ? u : (c && (u = A.div(u)), a ? u.mod(a) : p ? j(u, I, g, y) : u);
1931
+ return l ? u : (c && (u = h.div(u)), a ? u.mod(a) : p ? j(u, I, x, y) : u);
1932
1932
  }, d.integerValue = function(t) {
1933
1933
  var a = new b(this);
1934
- return t == null ? t = g : N(t, 0, 8), j(a, a.e + 1, t);
1934
+ return t == null ? t = x : N(t, 0, 8), j(a, a.e + 1, t);
1935
1935
  }, d.isEqualTo = d.eq = function(t, a) {
1936
1936
  return ye(this, new b(t, a)) === 0;
1937
1937
  }, d.isFinite = function() {
@@ -1959,45 +1959,45 @@ function Je(e) {
1959
1959
  if (t = new b(t, a), a = t.s, !r || !a) return new b(NaN);
1960
1960
  if (r != a)
1961
1961
  return t.s = -a, y.plus(t);
1962
- var c = y.e / S, f = t.e / S, u = y.c, h = t.c;
1962
+ var c = y.e / S, f = t.e / S, u = y.c, A = t.c;
1963
1963
  if (!c || !f) {
1964
- if (!u || !h) return u ? (t.s = -a, t) : new b(h ? y : NaN);
1965
- if (!u[0] || !h[0])
1966
- return h[0] ? (t.s = -a, t) : new b(u[0] ? y : (
1964
+ if (!u || !A) return u ? (t.s = -a, t) : new b(A ? y : NaN);
1965
+ if (!u[0] || !A[0])
1966
+ return A[0] ? (t.s = -a, t) : new b(u[0] ? y : (
1967
1967
  // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
1968
- g == 3 ? -0 : 0
1968
+ x == 3 ? -0 : 0
1969
1969
  ));
1970
1970
  }
1971
1971
  if (c = J(c), f = J(f), u = u.slice(), r = c - f) {
1972
- for ((p = r < 0) ? (r = -r, o = u) : (f = c, o = h), o.reverse(), a = r; a--; o.push(0)) ;
1972
+ for ((p = r < 0) ? (r = -r, o = u) : (f = c, o = A), o.reverse(), a = r; a--; o.push(0)) ;
1973
1973
  o.reverse();
1974
1974
  } else
1975
- for (l = (p = (r = u.length) < (a = h.length)) ? r : a, r = a = 0; a < l; a++)
1976
- if (u[a] != h[a]) {
1977
- p = u[a] < h[a];
1975
+ for (l = (p = (r = u.length) < (a = A.length)) ? r : a, r = a = 0; a < l; a++)
1976
+ if (u[a] != A[a]) {
1977
+ p = u[a] < A[a];
1978
1978
  break;
1979
1979
  }
1980
- if (p && (o = u, u = h, h = o, t.s = -t.s), a = (l = h.length) - (s = u.length), a > 0) for (; a--; u[s++] = 0) ;
1980
+ if (p && (o = u, u = A, A = o, t.s = -t.s), a = (l = A.length) - (s = u.length), a > 0) for (; a--; u[s++] = 0) ;
1981
1981
  for (a = ne - 1; l > r; ) {
1982
- if (u[--l] < h[l]) {
1982
+ if (u[--l] < A[l]) {
1983
1983
  for (s = l; s && !u[--s]; u[s] = a) ;
1984
1984
  --u[s], u[l] += ne;
1985
1985
  }
1986
- u[l] -= h[l];
1986
+ u[l] -= A[l];
1987
1987
  }
1988
1988
  for (; u[0] == 0; u.splice(0, 1), --f) ;
1989
- return u[0] ? be(t, u, f) : (t.s = g == 3 ? -1 : 1, t.c = [t.e = 0], t);
1989
+ return u[0] ? be(t, u, f) : (t.s = x == 3 ? -1 : 1, t.c = [t.e = 0], t);
1990
1990
  }, d.modulo = d.mod = function(t, a) {
1991
1991
  var s, l, o = this;
1992
- return t = new b(t, a), !o.c || !t.s || t.c && !t.c[0] ? new b(NaN) : !t.c || o.c && !o.c[0] ? new b(o) : (R == 9 ? (l = t.s, t.s = 1, s = n(o, t, 0, 3), t.s = l, s.s *= l) : s = n(o, t, 0, R), t = o.minus(s.times(t)), !t.c[0] && R == 1 && (t.s = o.s), t);
1992
+ return t = new b(t, a), !o.c || !t.s || t.c && !t.c[0] ? new b(NaN) : !t.c || o.c && !o.c[0] ? new b(o) : (P == 9 ? (l = t.s, t.s = 1, s = n(o, t, 0, 3), t.s = l, s.s *= l) : s = n(o, t, 0, P), t = o.minus(s.times(t)), !t.c[0] && P == 1 && (t.s = o.s), t);
1993
1993
  }, d.multipliedBy = d.times = function(t, a) {
1994
- var s, l, o, p, y, r, c, f, u, h, w, k, v, M, V, O = this, P = O.c, $ = (t = new b(t, a)).c;
1995
- if (!P || !$ || !P[0] || !$[0])
1996
- return !O.s || !t.s || P && !P[0] && !$ || $ && !$[0] && !P ? t.c = t.e = t.s = null : (t.s *= O.s, !P || !$ ? t.c = t.e = null : (t.c = [0], t.e = 0)), t;
1997
- for (l = J(O.e / S) + J(t.e / S), t.s *= O.s, c = P.length, h = $.length, c < h && (v = P, P = $, $ = v, o = c, c = h, h = o), o = c + h, v = []; o--; v.push(0)) ;
1998
- for (M = ne, V = ue, o = h; --o >= 0; ) {
1999
- for (s = 0, w = $[o] % V, k = $[o] / V | 0, y = c, p = o + y; p > o; )
2000
- f = P[--y] % V, u = P[y] / V | 0, r = k * f + u * w, f = w * f + r % V * V + v[p] + s, s = (f / M | 0) + (r / V | 0) + k * u, v[p--] = f % M;
1994
+ var s, l, o, p, y, r, c, f, u, A, w, k, v, M, V, _ = this, R = _.c, H = (t = new b(t, a)).c;
1995
+ if (!R || !H || !R[0] || !H[0])
1996
+ return !_.s || !t.s || R && !R[0] && !H || H && !H[0] && !R ? t.c = t.e = t.s = null : (t.s *= _.s, !R || !H ? t.c = t.e = null : (t.c = [0], t.e = 0)), t;
1997
+ for (l = J(_.e / S) + J(t.e / S), t.s *= _.s, c = R.length, A = H.length, c < A && (v = R, R = H, H = v, o = c, c = A, A = o), o = c + A, v = []; o--; v.push(0)) ;
1998
+ for (M = ne, V = ue, o = A; --o >= 0; ) {
1999
+ for (s = 0, w = H[o] % V, k = H[o] / V | 0, y = c, p = o + y; p > o; )
2000
+ f = R[--y] % V, u = R[y] / V | 0, r = k * f + u * w, f = w * f + r % V * V + v[p] + s, s = (f / M | 0) + (r / V | 0) + k * u, v[p--] = f % M;
2001
2001
  v[p] = s;
2002
2002
  }
2003
2003
  return s ? ++l : v.splice(0, 1), be(t, v, l);
@@ -2024,7 +2024,7 @@ function Je(e) {
2024
2024
  }, d.precision = d.sd = function(t, a) {
2025
2025
  var s, l, o, p = this;
2026
2026
  if (t != null && t !== !!t)
2027
- return N(t, 1, W), a == null ? a = g : N(a, 0, 8), j(new b(p), t, a);
2027
+ return N(t, 1, W), a == null ? a = x : N(a, 0, 8), j(new b(p), t, a);
2028
2028
  if (!(s = p.c)) return null;
2029
2029
  if (o = s.length - 1, l = o * S + 1, o = s[o]) {
2030
2030
  for (; o % 10 == 0; o /= 10, l--) ;
@@ -2051,7 +2051,7 @@ function Je(e) {
2051
2051
  break;
2052
2052
  }
2053
2053
  }
2054
- return j(s, s.e + E + 1, g, t);
2054
+ return j(s, s.e + E + 1, x, t);
2055
2055
  }, d.toExponential = function(t, a) {
2056
2056
  return t != null && (N(t, 0, W), t++), me(this, t, a, 1);
2057
2057
  }, d.toFixed = function(t, a) {
@@ -2063,34 +2063,34 @@ function Je(e) {
2063
2063
  else if (typeof s != "object")
2064
2064
  throw Error(X + "Argument not an object: " + s);
2065
2065
  if (l = o.toFixed(t, a), o.c) {
2066
- var p, y = l.split("."), r = +s.groupSize, c = +s.secondaryGroupSize, f = s.groupSeparator || "", u = y[0], h = y[1], w = o.s < 0, k = w ? u.slice(1) : u, v = k.length;
2066
+ var p, y = l.split("."), r = +s.groupSize, c = +s.secondaryGroupSize, f = s.groupSeparator || "", u = y[0], A = y[1], w = o.s < 0, k = w ? u.slice(1) : u, v = k.length;
2067
2067
  if (c && (p = r, r = c, c = p, v -= p), r > 0 && v > 0) {
2068
2068
  for (p = v % r || r, u = k.substr(0, p); p < v; p += r) u += f + k.substr(p, r);
2069
2069
  c > 0 && (u += f + k.slice(p)), w && (u = "-" + u);
2070
2070
  }
2071
- l = h ? u + (s.decimalSeparator || "") + ((c = +s.fractionGroupSize) ? h.replace(
2071
+ l = A ? u + (s.decimalSeparator || "") + ((c = +s.fractionGroupSize) ? A.replace(
2072
2072
  new RegExp("\\d{" + c + "}\\B", "g"),
2073
2073
  "$&" + (s.fractionGroupSeparator || "")
2074
- ) : h) : u;
2074
+ ) : A) : u;
2075
2075
  }
2076
2076
  return (s.prefix || "") + l + (s.suffix || "");
2077
2077
  }, d.toFraction = function(t) {
2078
- var a, s, l, o, p, y, r, c, f, u, h, w, k = this, v = k.c;
2079
- if (t != null && (r = new b(t), !r.isInteger() && (r.c || r.s !== 1) || r.lt(A)))
2078
+ var a, s, l, o, p, y, r, c, f, u, A, w, k = this, v = k.c;
2079
+ if (t != null && (r = new b(t), !r.isInteger() && (r.c || r.s !== 1) || r.lt(h)))
2080
2080
  throw Error(X + "Argument " + (r.isInteger() ? "out of range: " : "not an integer: ") + oe(r));
2081
2081
  if (!v) return new b(k);
2082
- for (a = new b(A), f = s = new b(A), l = c = new b(A), w = Y(v), p = a.e = w.length - k.e - 1, a.c[0] = Re[(y = p % S) < 0 ? S + y : y], t = !t || r.comparedTo(a) > 0 ? p > 0 ? a : f : r, y = C, C = 1 / 0, r = new b(w), c.c[0] = 0; u = n(r, a, 0, 1), o = s.plus(u.times(l)), o.comparedTo(t) != 1; )
2082
+ for (a = new b(h), f = s = new b(h), l = c = new b(h), w = Y(v), p = a.e = w.length - k.e - 1, a.c[0] = Pe[(y = p % S) < 0 ? S + y : y], t = !t || r.comparedTo(a) > 0 ? p > 0 ? a : f : r, y = C, C = 1 / 0, r = new b(w), c.c[0] = 0; u = n(r, a, 0, 1), o = s.plus(u.times(l)), o.comparedTo(t) != 1; )
2083
2083
  s = l, l = o, f = c.plus(u.times(o = f)), c = o, a = r.minus(u.times(o = a)), r = o;
2084
- return o = n(t.minus(s), l, 0, 1), c = c.plus(o.times(f)), s = s.plus(o.times(l)), c.s = f.s = k.s, p = p * 2, h = n(f, l, p, g).minus(k).abs().comparedTo(
2085
- n(c, s, p, g).minus(k).abs()
2086
- ) < 1 ? [f, l] : [c, s], C = y, h;
2084
+ return o = n(t.minus(s), l, 0, 1), c = c.plus(o.times(f)), s = s.plus(o.times(l)), c.s = f.s = k.s, p = p * 2, A = n(f, l, p, x).minus(k).abs().comparedTo(
2085
+ n(c, s, p, x).minus(k).abs()
2086
+ ) < 1 ? [f, l] : [c, s], C = y, A;
2087
2087
  }, d.toNumber = function() {
2088
2088
  return +oe(this);
2089
2089
  }, d.toPrecision = function(t, a) {
2090
2090
  return t != null && N(t, 1, W), me(this, t, a, 2);
2091
2091
  }, d.toString = function(t) {
2092
2092
  var a, s = this, l = s.s, o = s.e;
2093
- return o === null ? l ? (a = "Infinity", l < 0 && (a = "-" + a)) : a = "NaN" : (t == null ? a = o <= T || o >= D ? we(Y(s.c), o) : de(Y(s.c), o, "0") : t === 10 && fe ? (s = j(new b(s), E + o + 1, g), a = de(Y(s.c), s.e, "0")) : (N(t, 2, ee.length, "Base"), a = i(de(Y(s.c), o, "0"), 10, t, l, !0)), l < 0 && s.c[0] && (a = "-" + a)), a;
2093
+ return o === null ? l ? (a = "Infinity", l < 0 && (a = "-" + a)) : a = "NaN" : (t == null ? a = o <= F || o >= D ? we(Y(s.c), o) : de(Y(s.c), o, "0") : t === 10 && fe ? (s = j(new b(s), E + o + 1, x), a = de(Y(s.c), s.e, "0")) : (N(t, 2, ee.length, "Base"), a = i(de(Y(s.c), o, "0"), 10, t, l, !0)), l < 0 && s.c[0] && (a = "-" + a)), a;
2094
2094
  }, d.valueOf = d.toJSON = function() {
2095
2095
  return oe(this);
2096
2096
  }, d._isBigNumber = !0, d[Symbol.toStringTag] = "BigNumber", d[Symbol.for("nodejs.util.inspect.custom")] = d.valueOf, e != null && b.set(e), b;
@@ -2100,28 +2100,28 @@ function J(e) {
2100
2100
  return e > 0 || e === n ? n : n - 1;
2101
2101
  }
2102
2102
  function Y(e) {
2103
- for (var n, i, m = 1, d = e.length, A = e[0] + ""; m < d; ) {
2103
+ for (var n, i, m = 1, d = e.length, h = e[0] + ""; m < d; ) {
2104
2104
  for (n = e[m++] + "", i = S - n.length; i--; n = "0" + n) ;
2105
- A += n;
2105
+ h += n;
2106
2106
  }
2107
- for (d = A.length; A.charCodeAt(--d) === 48; ) ;
2108
- return A.slice(0, d + 1 || 1);
2107
+ for (d = h.length; h.charCodeAt(--d) === 48; ) ;
2108
+ return h.slice(0, d + 1 || 1);
2109
2109
  }
2110
2110
  function ye(e, n) {
2111
- var i, m, d = e.c, A = n.c, E = e.s, g = n.s, T = e.e, D = n.e;
2112
- if (!E || !g) return null;
2113
- if (i = d && !d[0], m = A && !A[0], i || m) return i ? m ? 0 : -g : E;
2114
- if (E != g) return E;
2115
- if (i = E < 0, m = T == D, !d || !A) return m ? 0 : !d ^ i ? 1 : -1;
2116
- if (!m) return T > D ^ i ? 1 : -1;
2117
- for (g = (T = d.length) < (D = A.length) ? T : D, E = 0; E < g; E++) if (d[E] != A[E]) return d[E] > A[E] ^ i ? 1 : -1;
2118
- return T == D ? 0 : T > D ^ i ? 1 : -1;
2111
+ var i, m, d = e.c, h = n.c, E = e.s, x = n.s, F = e.e, D = n.e;
2112
+ if (!E || !x) return null;
2113
+ if (i = d && !d[0], m = h && !h[0], i || m) return i ? m ? 0 : -x : E;
2114
+ if (E != x) return E;
2115
+ if (i = E < 0, m = F == D, !d || !h) return m ? 0 : !d ^ i ? 1 : -1;
2116
+ if (!m) return F > D ^ i ? 1 : -1;
2117
+ for (x = (F = d.length) < (D = h.length) ? F : D, E = 0; E < x; E++) if (d[E] != h[E]) return d[E] > h[E] ^ i ? 1 : -1;
2118
+ return F == D ? 0 : F > D ^ i ? 1 : -1;
2119
2119
  }
2120
2120
  function N(e, n, i, m) {
2121
2121
  if (e < n || e > i || e !== Z(e))
2122
2122
  throw Error(X + (m || "Argument") + (typeof e == "number" ? e < n || e > i ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
2123
2123
  }
2124
- function Fe(e) {
2124
+ function Te(e) {
2125
2125
  var n = e.c.length - 1;
2126
2126
  return J(e.e / S) == n && e.c[n] % 2 != 0;
2127
2127
  }
@@ -2139,7 +2139,7 @@ function de(e, n, i) {
2139
2139
  } else n < m && (e = e.slice(0, n) + "." + e.slice(n));
2140
2140
  return e;
2141
2141
  }
2142
- var x = Je();
2142
+ var g = Je();
2143
2143
  function nn(e) {
2144
2144
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
2145
2145
  }
@@ -2161,9 +2161,9 @@ const an = {
2161
2161
  747474: { dex: { sushiswap: { type: "default:sushi", router: "0xAC4c6e212A361c968F1725b4d055b47E63F80b75", adapter: "0x2e43A28FAf083717CcD9B246d97C61E1Bc9914Df", fee: "0x28F6C9dBE21fFc146Af8d5D15c49Cf48F61140Dc" } } },
2162
2162
  "*": { wm: "0x0005d5cE0dB57e5BE3b2b8b6FeB75f0ccd015000", repermit: "0x00002a9C4D9497df5Bd31768eC5d30eEf5405000", cosigner: "0x000ECFa392ecDEfEE6e2a5C095d39B7A32f1E000", reactor: "0x000000b33fE4fB9d999Dd684F79b110731c3d000", executor: "0x000642A0966d9bd49870D9519f76b5cf823f3000", refinery: "0x000E474c0D7084EAA35A501035E73269f4b009A5", salt: { wm: "0xc9b46eae42dfeba3222a0315bf682f33cd5cc9d60c9625642e88406f8415f152", repermit: "0x4871dc9008e605821ea9677b65ea2a60ffb774afb31e0dcaea2e192880096be7", cosigner: "0x1117fe6f4e25c9380d10b2b3314a1e9b33e5f65ba0e55e0c63d0640db0dd60a2", reactor: "0xec73677f3a465a9755d4c9eab9509b59a24613fdb8b78719682930373e9876f5", executor: "0x9abc67d936f79e493f1f14050c2f6adb87ec208ff7aaae2e7ae788a7cb4796d7", refinery: "0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec" } }
2163
2163
  };
2164
- var Pe, Xe;
2164
+ var Re, Xe;
2165
2165
  function sn() {
2166
- if (Xe) return Pe;
2166
+ if (Xe) return Re;
2167
2167
  Xe = 1;
2168
2168
  const e = an, n = (d) => nn(`./out/${d}.sol/${d}.json`).abi, i = () => ({
2169
2169
  wm: n("WM"),
@@ -2174,29 +2174,29 @@ function sn() {
2174
2174
  settler: n("Settler"),
2175
2175
  adapter: n("DefaultDexAdapter")
2176
2176
  });
2177
- function m(d, A) {
2177
+ function m(d, h) {
2178
2178
  if (!d) return;
2179
- const { dex: E, ...g } = e["*"] ?? {}, T = e[d];
2180
- if (!T) return;
2181
- const { dex: D, ...B } = T;
2182
- if (!(A != null && A.trim()))
2183
- return { ...g, ...B };
2184
- const C = D == null ? void 0 : D[A];
2179
+ const { dex: E, ...x } = e["*"] ?? {}, F = e[d];
2180
+ if (!F) return;
2181
+ const { dex: D, ...B } = F;
2182
+ if (!(h != null && h.trim()))
2183
+ return { ...x, ...B };
2184
+ const C = D == null ? void 0 : D[h];
2185
2185
  if (C)
2186
- return { ...g, ...B, ...C };
2186
+ return { ...x, ...B, ...C };
2187
2187
  }
2188
- return Pe = { config: m, abis: i, raw: e }, Pe;
2188
+ return Re = { config: m, abis: i, raw: e }, Re;
2189
2189
  }
2190
2190
  var et = sn();
2191
- const Ae = (e, n) => {
2191
+ const he = (e, n) => {
2192
2192
  if (!e || !n) return "";
2193
- const i = x(10).pow(e || 0);
2194
- return x(n).times(i).idiv(i).div(i).toFixed();
2193
+ const i = g(10).pow(e || 0);
2194
+ return g(n).times(i).idiv(i).div(i).toFixed();
2195
2195
  };
2196
- x(0);
2197
- x(1);
2198
- x(10);
2199
- x(1e18);
2196
+ g(0);
2197
+ g(1);
2198
+ g(10);
2199
+ g(1e18);
2200
2200
  function De(e, n) {
2201
2201
  return e == n || e.toLowerCase() == n.toLowerCase();
2202
2202
  }
@@ -2211,77 +2211,77 @@ function rn(e) {
2211
2211
  ae.Minutes
2212
2212
  ].find((i) => i <= e) || ae.Minutes;
2213
2213
  }
2214
- const le = (e) => e ? e.value * e.unit : 0, on = (e) => !e || e === "NaN" ? "0" : x(e).decimalPlaces(0).toFixed(), ia = (e) => Object.values(K).find((n) => n.id === e), dn = (e) => {
2214
+ const le = (e) => e ? e.value * e.unit : 0, on = (e) => !e || e === "NaN" ? "0" : g(e).decimalPlaces(0).toFixed(), ia = (e) => Object.values(q).find((n) => n.id === e), dn = (e) => {
2215
2215
  if (!e) return;
2216
- const n = e.map((A) => G(A)), i = Object.entries(Zt).filter(([A]) => n.includes(A)).flatMap(([, A]) => A), m = e.map((A) => A.exchangeAddress), d = new Set(
2217
- [...m, ...i].map((A) => A.toLowerCase())
2216
+ const n = e.map((h) => G(h)), i = Object.entries(Zt).filter(([h]) => n.includes(h)).flatMap(([, h]) => h), m = e.map((h) => h.exchangeAddress), d = new Set(
2217
+ [...m, ...i].map((h) => h.toLowerCase())
2218
2218
  );
2219
2219
  return Array.from(d);
2220
2220
  }, oa = (e, n) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + cn(n) : (e.fillDelay || 0) * 1e3, ke = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), da = (e) => ln().filter((n) => n.name === e).map((n) => n.chainId), ca = (e = "", n = "", i = 18, m = 18) => {
2221
- if (!x(e || 0).gt(0) || !x(n || 0).gt(0))
2221
+ if (!g(e || 0).gt(0) || !g(n || 0).gt(0))
2222
2222
  return "";
2223
- const d = Ae(i, e), A = Ae(m, n);
2224
- return x(A).div(d).toFixed();
2223
+ const d = he(i, e), h = he(m, n);
2224
+ return g(h).div(d).toFixed();
2225
2225
  }, pa = (e, n, i) => {
2226
- if (e.type === q.TWAP_MARKET) return "";
2227
- const m = Ae(n, e.srcAmountPerTrade), d = Ae(i, e.dstMinAmountPerTrade);
2228
- return x(d).div(m).toFixed();
2226
+ if (e.type === z.TWAP_MARKET) return "";
2227
+ const m = he(n, e.srcAmountPerTrade), d = he(i, e.dstMinAmountPerTrade);
2228
+ return g(d).div(m).toFixed();
2229
2229
  }, ua = (e, n, i) => {
2230
- if (e.type === q.TWAP_MARKET) return "";
2231
- const m = Ae(n, e.srcAmountPerTrade), d = Ae(i, e.triggerPricePerTrade);
2232
- return x(d).div(m).toFixed();
2230
+ if (e.type === z.TWAP_MARKET) return "";
2231
+ const m = he(n, e.srcAmountPerTrade), d = he(i, e.triggerPricePerTrade);
2232
+ return g(d).div(m).toFixed();
2233
2233
  }, la = (e, n, i) => {
2234
2234
  if (!e || !n || !i) return;
2235
- const m = x(e).times(n), d = x(10).pow(i);
2235
+ const m = g(e).times(n), d = g(10).pow(i);
2236
2236
  return m.div(d).toFixed(0);
2237
2237
  }, fa = (e, n, i, m) => {
2238
2238
  if (i || !m || !e || !n)
2239
- return x(0).toString();
2240
- const d = x(e).times(x(n)), A = x(10).pow(m), E = d.div(A);
2241
- return x.max(1, E).integerValue(x.ROUND_FLOOR).toFixed(0);
2239
+ return g(0).toString();
2240
+ const d = g(e).times(g(n)), h = g(10).pow(m), E = d.div(h);
2241
+ return g.max(1, E).integerValue(g.ROUND_FLOOR).toFixed(0);
2242
2242
  }, ma = (e, n, i, m) => {
2243
- if (e === z.TWAP || e === z.LIMIT)
2243
+ if (e === $.TWAP || e === $.LIMIT)
2244
2244
  return "0";
2245
2245
  if (!m || !n || !i) return;
2246
- const d = x(n).times(x(i)), A = x(10).pow(m), E = d.div(A);
2247
- return x.max(1, E).integerValue(x.ROUND_FLOOR).toFixed(0) || "0";
2246
+ const d = g(n).times(g(i)), h = g(10).pow(m), E = d.div(h);
2247
+ return g.max(1, E).integerValue(g.ROUND_FLOOR).toFixed(0) || "0";
2248
2248
  }, ya = (e, n, i, m) => {
2249
- const d = le(i) * 2 * n, A = ke(ge.DURATION), E = rn(A ? Number(A) : d);
2250
- return A ? { unit: E, value: Number(x(Number(A) / E).toFixed(2)) } : m || (e === z.LIMIT ? { unit: ae.Days, value: 7 } : e === z.STOP_LOSS || e === z.TAKE_PROFIT ? { unit: ae.Days, value: 1 } : { unit: E, value: Number(x(d / E).toFixed(2)) });
2251
- }, Aa = (e, n, i) => n !== z.TWAP ? 1 : i !== void 0 ? i : e, ha = (e, n, i, m) => {
2249
+ const d = le(i) * 2 * n, h = ke(ge.DURATION), E = rn(h ? Number(h) : d);
2250
+ return h ? { unit: E, value: Number(g(Number(h) / E).toFixed(2)) } : m || (e === $.LIMIT ? { unit: ae.Days, value: 7 } : e === $.STOP_LOSS || e === $.TAKE_PROFIT ? { unit: ae.Days, value: 1 } : { unit: E, value: Number(g(d / E).toFixed(2)) });
2251
+ }, ha = (e, n, i) => n !== $.TWAP ? 1 : i !== void 0 ? i : e, Aa = (e, n, i, m) => {
2252
2252
  if (!n || !i || !m) return 1;
2253
- const A = x(i).times(n).div(m).integerValue(x.ROUND_FLOOR).toNumber(), E = Math.floor(
2253
+ const h = g(i).times(n).div(m).integerValue(g.ROUND_FLOOR).toNumber(), E = Math.floor(
2254
2254
  xe / 2 / le(e)
2255
2255
  );
2256
- return Math.max(1, Math.min(A, E));
2257
- }, ba = (e, n) => e + le(n) + 6e4, cn = (e) => e.bidDelaySeconds * 1e3 * 2, Ea = (e = "", n = 0) => !e || !n ? "0" : x(e).div(n).integerValue(x.ROUND_FLOOR).toFixed(0), xa = (e, n) => ({
2258
- isError: !(e.unit === Ge.unit && e.value === Ge.value) && le(e) * n > xe,
2256
+ return Math.max(1, Math.min(h, E));
2257
+ }, ba = (e, n) => e + le(n) + 6e4, cn = (e) => e.bidDelaySeconds * 1e3 * 2, Ea = (e = "", n = 0) => !e || !n ? "0" : g(e).div(n).integerValue(g.ROUND_FLOOR).toFixed(0), xa = (e, n) => ({
2258
+ isError: !(e.unit === qe.unit && e.value === qe.value) && le(e) * n > xe,
2259
2259
  value: Math.floor(xe / n)
2260
2260
  }), ga = (e = "", n = "", i) => {
2261
- if (i === z.STOP_LOSS)
2261
+ if (i === $.STOP_LOSS)
2262
2262
  return {
2263
- isError: x(n || 0).gte(x(e || 0)),
2263
+ isError: g(n || 0).gte(g(e || 0)),
2264
2264
  value: e
2265
2265
  };
2266
2266
  }, Ca = (e = "", n = "", i) => {
2267
- if (i === z.TAKE_PROFIT)
2267
+ if (i === $.TAKE_PROFIT)
2268
2268
  return {
2269
- isError: x(n || 0).lte(x(e || 0)),
2269
+ isError: g(n || 0).lte(g(e || 0)),
2270
2270
  value: e
2271
2271
  };
2272
- }, Ta = (e = "", n = "", i = !1, m) => {
2273
- if (!i && m === z.STOP_LOSS)
2272
+ }, Fa = (e = "", n = "", i = !1, m) => {
2273
+ if (!i && m === $.STOP_LOSS)
2274
2274
  return {
2275
- isError: x(n || 0).gte(x(e || 0)),
2275
+ isError: g(n || 0).gte(g(e || 0)),
2276
2276
  value: e
2277
2277
  };
2278
- }, Fa = (e = "", n = "", i = !1, m) => {
2279
- if (!i && m === z.TAKE_PROFIT)
2278
+ }, Ta = (e = "", n = "", i = !1, m) => {
2279
+ if (!i && m === $.TAKE_PROFIT)
2280
2280
  return {
2281
- isError: x(n || 0).gte(x(e || 0)),
2281
+ isError: g(n || 0).gte(g(e || 0)),
2282
2282
  value: e
2283
2283
  };
2284
- }, wa = (e, n) => e === z.STOP_LOSS || e === z.TAKE_PROFIT ? {
2284
+ }, wa = (e, n) => e === $.STOP_LOSS || e === $.TAKE_PROFIT ? {
2285
2285
  isError: le(n) > 5184e6,
2286
2286
  value: 5184e6
2287
2287
  } : {
@@ -2295,83 +2295,83 @@ const le = (e) => e ? e.value * e.unit : 0, on = (e) => !e || e === "NaN" ? "0"
2295
2295
  isError: le(e) < Me,
2296
2296
  value: Me
2297
2297
  }), Ba = (e, n, i) => ({
2298
- isError: x(n || 0).multipliedBy(e || 0).isLessThan(i),
2298
+ isError: g(n || 0).multipliedBy(e || 0).isLessThan(i),
2299
2299
  value: i
2300
2300
  }), Sa = (e, n, i) => ({
2301
- isError: i === z.TWAP && x(e).isGreaterThan(n),
2301
+ isError: i === $.TWAP && g(e).isGreaterThan(n),
2302
2302
  value: n
2303
2303
  }), pn = (e, n) => {
2304
2304
  if (e === pe.Pancake)
2305
2305
  switch (n) {
2306
2306
  case 56:
2307
- return _.PancakeSwap;
2307
+ return O.PancakeSwap;
2308
2308
  case 42161:
2309
- return _.PancakeSwapArbitrum;
2309
+ return O.PancakeSwapArbitrum;
2310
2310
  case 8453:
2311
- return _.PancakeSwapBase;
2311
+ return O.PancakeSwapBase;
2312
2312
  case 59144:
2313
- return _.PancakeSwapLinea;
2313
+ return O.PancakeSwapLinea;
2314
2314
  default:
2315
- return _.PancakeSwap;
2315
+ return O.PancakeSwap;
2316
2316
  }
2317
2317
  if (e === pe.Sushiswap)
2318
2318
  switch (n) {
2319
2319
  case 1:
2320
- return _.SushiEth;
2320
+ return O.SushiEth;
2321
2321
  case 42161:
2322
- return _.SushiArb;
2322
+ return O.SushiArb;
2323
2323
  case 8453:
2324
- return _.SushiBase;
2324
+ return O.SushiBase;
2325
2325
  case 747474:
2326
- return _.SushiKatana;
2326
+ return O.SushiKatana;
2327
2327
  default:
2328
- return _.SushiEth;
2328
+ return O.SushiEth;
2329
2329
  }
2330
2330
  if (e === pe.Quick)
2331
2331
  switch (n) {
2332
2332
  case 137:
2333
- return _.QuickSwap;
2333
+ return O.QuickSwap;
2334
2334
  case 8453:
2335
- return _.QuickSwapBase;
2335
+ return O.QuickSwapBase;
2336
2336
  default:
2337
- return _.QuickSwap;
2337
+ return O.QuickSwap;
2338
2338
  }
2339
2339
  if (e === pe.Thena)
2340
2340
  switch (n) {
2341
2341
  case 56:
2342
- return _.Thena;
2342
+ return O.Thena;
2343
2343
  default:
2344
- return _.Thena;
2344
+ return O.Thena;
2345
2345
  }
2346
2346
  if (e === pe.Spooky)
2347
2347
  switch (n) {
2348
2348
  case 250:
2349
- return _.SpookySwap;
2349
+ return O.SpookySwap;
2350
2350
  case 146:
2351
- return _.SpookySwapSonic;
2351
+ return O.SpookySwapSonic;
2352
2352
  default:
2353
- return _.SpookySwap;
2353
+ return O.SpookySwap;
2354
2354
  }
2355
2355
  if (e === pe.Lynex)
2356
2356
  switch (n) {
2357
2357
  case 59144:
2358
- return _.Lynex;
2358
+ return O.Lynex;
2359
2359
  default:
2360
- return _.Lynex;
2360
+ return O.Lynex;
2361
2361
  }
2362
2362
  if (e === pe.Swapx)
2363
2363
  switch (n) {
2364
2364
  case 146:
2365
- return _.SwapX;
2365
+ return O.SwapX;
2366
2366
  default:
2367
- return _.SwapX;
2367
+ return O.SwapX;
2368
2368
  }
2369
2369
  if (e === pe.Blackhole)
2370
2370
  switch (n) {
2371
2371
  case 43114:
2372
- return _.BlackholeAvax;
2372
+ return O.BlackholeAvax;
2373
2373
  default:
2374
- return _.BlackholeAvax;
2374
+ return O.BlackholeAvax;
2375
2375
  }
2376
2376
  }, un = (e, n = 0) => {
2377
2377
  const { abi: i, ...m } = et.config(n, e);
@@ -2394,28 +2394,28 @@ const le = (e) => e ? e.value * e.unit : 0, on = (e) => !e || e === "NaN" ? "0"
2394
2394
  config: un(d, Number(n))
2395
2395
  }));
2396
2396
  }).sort((n, i) => n.name.localeCompare(i.name));
2397
- }, _a = (e) => {
2397
+ }, Oa = (e) => {
2398
2398
  const n = ke(
2399
2399
  ge.MIN_CHUNK_SIZE_USD
2400
2400
  );
2401
2401
  return n ? parseInt(n) : e;
2402
- }, Oa = ({
2402
+ }, _a = ({
2403
2403
  marketPrice: e,
2404
2404
  typedInputAmount: n,
2405
2405
  srcUsd1Token: i,
2406
2406
  marketPriceLoading: m,
2407
2407
  triggerPriceError: d,
2408
- limitPriceError: A,
2408
+ limitPriceError: h,
2409
2409
  tradesError: E,
2410
- fillDelayError: g,
2411
- durationError: T,
2410
+ fillDelayError: x,
2411
+ durationError: F,
2412
2412
  balanceError: D,
2413
2413
  minTradeSizeError: B
2414
2414
  }) => {
2415
- if (!ke(ge.IGNORE_ERRORS) && !(x(e || 0).isZero() || x(n || 0).isZero() || x(i || "0").isZero() || m))
2416
- return B || d || A || E || g || T || D;
2415
+ if (!ke(ge.IGNORE_ERRORS) && !(g(e || 0).isZero() || g(n || 0).isZero() || g(i || "0").isZero() || m))
2416
+ return B || d || h || E || x || F || D;
2417
2417
  }, tt = (e, n) => {
2418
- const i = Date.now().toString(), m = parseInt((e / 1e3).toFixed(0)), d = on(n / 1e3), A = ke(ge.FRESHNESS), E = A ? parseInt(A) : 60;
2418
+ const i = Date.now().toString(), m = parseInt((e / 1e3).toFixed(0)), d = on(n / 1e3), h = ke(ge.FRESHNESS), E = h ? parseInt(h) : 60;
2419
2419
  return {
2420
2420
  nonce: i,
2421
2421
  epoch: m,
@@ -2428,25 +2428,25 @@ const le = (e) => e ? e.value * e.unit : 0, on = (e) => !e || e === "NaN" ? "0"
2428
2428
  dstToken: i,
2429
2429
  srcAmount: m,
2430
2430
  deadlineMillis: d,
2431
- fillDelayMillis: A,
2431
+ fillDelayMillis: h,
2432
2432
  slippage: E,
2433
- account: g,
2434
- srcAmountPerTrade: T,
2433
+ account: x,
2434
+ srcAmountPerTrade: F,
2435
2435
  dstMinAmountPerTrade: D = "0",
2436
2436
  triggerAmountPerTrade: B = "0",
2437
2437
  config: C,
2438
- module: F
2438
+ module: T
2439
2439
  }) => {
2440
- const { nonce: R, epoch: I, deadline: ie, freshness: ee } = tt(
2441
- A,
2440
+ const { nonce: P, epoch: I, deadline: ie, freshness: ee } = tt(
2441
+ h,
2442
2442
  d
2443
- ), fe = F === z.TAKE_PROFIT ? ze : B, b = F === z.TAKE_PROFIT ? B : D, me = {
2443
+ ), fe = T === $.TAKE_PROFIT ? ze : B, b = T === $.TAKE_PROFIT ? B : D, me = {
2444
2444
  permitted: {
2445
2445
  token: n,
2446
2446
  amount: m
2447
2447
  },
2448
2448
  spender: C.reactor,
2449
- nonce: R,
2449
+ nonce: P,
2450
2450
  deadline: ie,
2451
2451
  witness: {
2452
2452
  reactor: C.reactor,
@@ -2457,8 +2457,8 @@ const le = (e) => e ? e.value * e.unit : 0, on = (e) => !e || e === "NaN" ? "0"
2457
2457
  share: 0,
2458
2458
  data: "0x"
2459
2459
  },
2460
- swapper: g,
2461
- nonce: R,
2460
+ swapper: x,
2461
+ nonce: P,
2462
2462
  deadline: ie,
2463
2463
  chainid: e,
2464
2464
  exclusivity: 0,
@@ -2467,14 +2467,14 @@ const le = (e) => e ? e.value * e.unit : 0, on = (e) => !e || e === "NaN" ? "0"
2467
2467
  freshness: ee,
2468
2468
  input: {
2469
2469
  token: n,
2470
- amount: T,
2470
+ amount: F,
2471
2471
  maxAmount: m
2472
2472
  },
2473
2473
  output: {
2474
2474
  token: i,
2475
- limit: x(b || 0).toFixed(),
2476
- stop: x(fe || 0).toFixed(),
2477
- recipient: g
2475
+ limit: g(b || 0).toFixed(),
2476
+ stop: g(fe || 0).toFixed(),
2477
+ recipient: x
2478
2478
  }
2479
2479
  }
2480
2480
  };
@@ -2495,25 +2495,25 @@ const le = (e) => e ? e.value * e.unit : 0, on = (e) => !e || e === "NaN" ? "0"
2495
2495
  dstToken: i,
2496
2496
  srcAmount: m,
2497
2497
  deadlineMillis: d,
2498
- fillDelayMillis: A,
2498
+ fillDelayMillis: h,
2499
2499
  slippage: E,
2500
- account: g,
2501
- srcAmountPerTrade: T,
2500
+ account: x,
2501
+ srcAmountPerTrade: F,
2502
2502
  dstMinAmountPerTrade: D = "0",
2503
2503
  triggerAmountPerTrade: B = "0",
2504
2504
  config: C,
2505
- module: F
2505
+ module: T
2506
2506
  }) => {
2507
- const { nonce: R, epoch: I, deadline: ie, freshness: ee } = tt(
2508
- A,
2507
+ const { nonce: P, epoch: I, deadline: ie, freshness: ee } = tt(
2508
+ h,
2509
2509
  d
2510
- ), fe = Math.floor(Date.now() / 1e3).toString(), b = D, me = F === z.STOP_LOSS ? B : "0", he = F === z.TAKE_PROFIT ? B : "0", be = {
2510
+ ), fe = Math.floor(Date.now() / 1e3).toString(), b = D, me = T === $.STOP_LOSS ? B : "0", Ae = T === $.TAKE_PROFIT ? B : "0", be = {
2511
2511
  permitted: {
2512
2512
  token: n,
2513
2513
  amount: m
2514
2514
  },
2515
2515
  spender: C.reactor,
2516
- nonce: R,
2516
+ nonce: P,
2517
2517
  deadline: ie,
2518
2518
  witness: {
2519
2519
  reactor: C.reactor,
@@ -2524,8 +2524,8 @@ const le = (e) => e ? e.value * e.unit : 0, on = (e) => !e || e === "NaN" ? "0"
2524
2524
  share: 0,
2525
2525
  data: "0x"
2526
2526
  },
2527
- swapper: g,
2528
- nonce: R,
2527
+ swapper: x,
2528
+ nonce: P,
2529
2529
  start: fe,
2530
2530
  deadline: ie,
2531
2531
  chainid: e,
@@ -2535,15 +2535,15 @@ const le = (e) => e ? e.value * e.unit : 0, on = (e) => !e || e === "NaN" ? "0"
2535
2535
  freshness: ee,
2536
2536
  input: {
2537
2537
  token: n,
2538
- amount: T,
2538
+ amount: F,
2539
2539
  maxAmount: m
2540
2540
  },
2541
2541
  output: {
2542
2542
  token: i,
2543
- limit: x(b || 0).toFixed(),
2544
- triggerLower: x(me || 0).toFixed(),
2545
- triggerUpper: x(he || 0).toFixed(),
2546
- recipient: g
2543
+ limit: g(b || 0).toFixed(),
2544
+ triggerLower: g(me || 0).toFixed(),
2545
+ triggerUpper: g(Ae || 0).toFixed(),
2546
+ recipient: x
2547
2547
  }
2548
2548
  }
2549
2549
  };
@@ -2558,17 +2558,17 @@ const le = (e) => e ? e.value * e.unit : 0, on = (e) => !e || e === "NaN" ? "0"
2558
2558
  types: en,
2559
2559
  primaryType: Ze
2560
2560
  };
2561
- }, va = (e) => Number(We) >= 2 ? mn(e) : fn(e), yn = 0.7, An = `https://bi.orbs.network/putes/twap-ui-${yn}`;
2561
+ }, va = (e) => Number(We) >= 2 ? mn(e) : fn(e), yn = 0.7, hn = `https://bi.orbs.network/putes/twap-ui-${yn}`;
2562
2562
  let Ue = "unknown";
2563
- function Ra(e) {
2563
+ function Pa(e) {
2564
2564
  Ue = e;
2565
2565
  }
2566
2566
  function Ie() {
2567
2567
  const e = Math.random().toString(36).substring(2, 16), n = Math.random().toString(36).substring(2, 16), i = Date.now().toString(36);
2568
2568
  return `id_${e + n + i}`;
2569
2569
  }
2570
- const hn = (e, n, i) => {
2571
- var m, d, A, E, g, T, D, B, C;
2570
+ const An = (e, n, i) => {
2571
+ var m, d, h, E, x, F, D, B, C;
2572
2572
  return {
2573
2573
  spotVersion: Ve.version,
2574
2574
  partner: e.partner,
@@ -2585,18 +2585,18 @@ const hn = (e, n, i) => {
2585
2585
  chainName: ((m = e.twapConfig) == null ? void 0 : m.chainName) || "",
2586
2586
  chainId: i || 0,
2587
2587
  twapVersion: ((d = e.twapConfig) == null ? void 0 : d.twapVersion) || 0,
2588
- twapAddress: ((A = e.twapConfig) == null ? void 0 : A.twapAddress) || "",
2588
+ twapAddress: ((h = e.twapConfig) == null ? void 0 : h.twapAddress) || "",
2589
2589
  lensAddress: ((E = e.twapConfig) == null ? void 0 : E.lensAddress) || "",
2590
- bidDelaySeconds: ((g = e.twapConfig) == null ? void 0 : g.bidDelaySeconds) || 0,
2590
+ bidDelaySeconds: ((x = e.twapConfig) == null ? void 0 : x.bidDelaySeconds) || 0,
2591
2591
  minChunkSizeUsd: n,
2592
- name: ((T = e.twapConfig) == null ? void 0 : T.name) || "",
2592
+ name: ((F = e.twapConfig) == null ? void 0 : F.name) || "",
2593
2593
  exchangeAddress: ((D = e.twapConfig) == null ? void 0 : D.exchangeAddress) || "",
2594
2594
  exchangeType: ((B = e.twapConfig) == null ? void 0 : B.exchangeType) || "",
2595
2595
  pathfinderKey: ((C = e.twapConfig) == null ? void 0 : C.pathfinderKey) || ""
2596
2596
  };
2597
2597
  }, je = async (e) => {
2598
2598
  try {
2599
- await fetch(An, {
2599
+ await fetch(hn, {
2600
2600
  method: "POST",
2601
2601
  headers: {
2602
2602
  Accept: "application/json",
@@ -2610,9 +2610,9 @@ const hn = (e, n, i) => {
2610
2610
  };
2611
2611
  class bn {
2612
2612
  constructor() {
2613
- Te(this, "timeout");
2614
- Te(this, "config");
2615
- Te(this, "data", {
2613
+ Fe(this, "timeout");
2614
+ Fe(this, "config");
2615
+ Fe(this, "data", {
2616
2616
  _id: Ie()
2617
2617
  });
2618
2618
  }
@@ -2687,34 +2687,34 @@ class bn {
2687
2687
  chainId: i,
2688
2688
  module: m,
2689
2689
  srcToken: d,
2690
- dstToken: A,
2690
+ dstToken: h,
2691
2691
  fromTokenAmount: E,
2692
- srcChunkAmount: g,
2693
- minDstAmountOutPerTrade: T = "",
2692
+ srcChunkAmount: x,
2693
+ minDstAmountOutPerTrade: F = "",
2694
2694
  triggerPricePerTrade: D = "",
2695
2695
  deadline: B,
2696
2696
  fillDelay: C,
2697
- slippage: F,
2698
- isMarketOrder: R,
2697
+ slippage: T,
2698
+ isMarketOrder: P,
2699
2699
  chunksAmount: I
2700
2700
  }) {
2701
2701
  this.updateAndSend({
2702
- toTokenAddress: A.address,
2703
- toTokenSymbol: A.symbol,
2702
+ toTokenAddress: h.address,
2703
+ toTokenSymbol: h.symbol,
2704
2704
  fromTokenAddress: d.address,
2705
2705
  fromTokenSymbol: d.symbol,
2706
2706
  fromTokenAmount: E,
2707
2707
  chunksAmount: I,
2708
- srcChunkAmount: g,
2709
- minDstAmountOutPerTrade: T,
2708
+ srcChunkAmount: x,
2709
+ minDstAmountOutPerTrade: F,
2710
2710
  triggerPricePerTrade: D,
2711
2711
  deadline: B,
2712
2712
  fillDelay: C,
2713
- slippage: F,
2713
+ slippage: T,
2714
2714
  chainId: i,
2715
2715
  walletAddress: n,
2716
2716
  module: m,
2717
- orderType: R ? "market" : "limit",
2717
+ orderType: P ? "market" : "limit",
2718
2718
  actionError: void 0
2719
2719
  });
2720
2720
  }
@@ -2739,7 +2739,7 @@ class bn {
2739
2739
  _id: Ie(),
2740
2740
  action: "module-import",
2741
2741
  uiVersion: Ue,
2742
- ...hn(n, i, m),
2742
+ ...An(n, i, m),
2743
2743
  origin: window.location.origin
2744
2744
  }, this.updateAndSend(this.data));
2745
2745
  }
@@ -2799,12 +2799,12 @@ class bn {
2799
2799
  }
2800
2800
  }
2801
2801
  const Ne = new bn(), En = (e) => {
2802
- var g;
2803
- const n = x(e.order.witness.output.limit || 0).gt(1), i = e.order.witness.output.stop, m = e.order.witness.output.triggerUpper, d = x(i || 0).eq(ze) || x(m || 0).gt(0), A = x(i || 0).gt(0), E = ((g = e.metadata.chunks) == null ? void 0 : g.length) || x(e.order.witness.input.maxAmount).div(x(e.order.witness.input.amount)).toNumber();
2804
- return d ? q.TAKE_PROFIT : A ? n ? q.STOP_LOSS_LIMIT : q.STOP_LOSS_MARKET : n ? E > 1 && n ? q.TWAP_LIMIT : n ? q.LIMIT : q.TWAP_MARKET : q.TWAP_MARKET;
2802
+ var x;
2803
+ const n = g(e.order.witness.output.limit || 0).gt(1), i = e.order.witness.output.stop, m = e.order.witness.output.triggerUpper, d = g(i || 0).eq(ze) || g(m || 0).gt(0), h = g(i || 0).gt(0), E = ((x = e.metadata.chunks) == null ? void 0 : x.length) || g(e.order.witness.input.maxAmount).div(g(e.order.witness.input.amount)).toNumber();
2804
+ return d ? z.TAKE_PROFIT : h ? n ? z.STOP_LOSS_LIMIT : z.STOP_LOSS_MARKET : n ? E > 1 && n ? z.TWAP_LIMIT : n ? z.LIMIT : z.TWAP_MARKET : z.TWAP_MARKET;
2805
2805
  }, xn = (e) => {
2806
2806
  var d;
2807
- const n = ((d = e.metadata.chunks) == null ? void 0 : d.filter((A) => A.status === "success").length) || 0, i = e.metadata.expectedChunks || 0, m = x(n).dividedBy(i).toNumber();
2807
+ const n = ((d = e.metadata.chunks) == null ? void 0 : d.filter((h) => h.status === "success").length) || 0, i = e.metadata.expectedChunks || 0, m = g(n).dividedBy(i).toNumber();
2808
2808
  return m >= 0.99 ? 100 : m <= 0 ? 0 : Number((m * 100).toFixed(2));
2809
2809
  }, gn = (e, n) => e.metadata.status === "completed" || n >= 99 ? re.Completed : ["pending", "eligible"].includes(e.metadata.status) ? re.Open : e.metadata.description.toLowerCase() === "cancelled by contract" ? re.Cancelled : re.Expired, Cn = (e) => {
2810
2810
  var i;
@@ -2814,52 +2814,53 @@ const Ne = new bn(), En = (e) => {
2814
2814
  timestamp: new Date(m.timestamp).getTime(),
2815
2815
  txHash: m.txHash
2816
2816
  }));
2817
- }, Tn = (e, n) => {
2817
+ }, Fn = (e, n) => {
2818
2818
  var m;
2819
2819
  const i = e.length;
2820
2820
  return i >= n && ((m = e[i - 1]) == null ? void 0 : m.timestamp) || 0;
2821
- }, Fn = (e) => x(e.metadata.displayOnlyInputTokenPriceUSD).dividedBy(1e18).toFixed(), $e = (e) => Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, wn = (e) => {
2821
+ }, Tn = (e) => g(e.metadata.displayOnlyInputTokenPriceUSD).dividedBy(1e18).toFixed(), $e = (e) => Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, wn = (e) => {
2822
2822
  const {
2823
2823
  triggerLower: n = "0",
2824
2824
  triggerUpper: i = "0"
2825
- } = e.order.witness.output, m = $e(e), d = e.metadata.expectedChunks || 1, A = x(i || 0).gt(0);
2825
+ } = e.order.witness.output, m = $e(e), d = e.metadata.expectedChunks || 1, h = g(i || 0).gt(0);
2826
2826
  return {
2827
2827
  dstMinAmountPerTrade: m,
2828
- triggerPricePerTrade: A ? i : n,
2829
- dstMinAmountTotal: x(m).multipliedBy(d).toFixed()
2828
+ triggerPricePerTrade: h ? i : n,
2829
+ dstMinAmountTotal: g(m).multipliedBy(d).toFixed()
2830
2830
  };
2831
2831
  }, Dn = (e) => {
2832
- const n = $e(e), i = x(e.order.witness.output.stop || 0).eq(ze), m = e.metadata.expectedChunks || 1;
2832
+ const n = $e(e), i = g(e.order.witness.output.stop || 0).eq(ze), m = e.metadata.expectedChunks || 1;
2833
2833
  return {
2834
2834
  dstMinAmountPerTrade: i ? "" : n,
2835
- triggerPricePerTrade: i ? n : x(e.order.witness.output.stop || "").toFixed(),
2836
- dstMinAmountTotal: i ? "" : x(n).multipliedBy(m).toFixed()
2835
+ triggerPricePerTrade: i ? n : g(e.order.witness.output.stop || "").toFixed(),
2836
+ dstMinAmountTotal: i ? "" : g(n).multipliedBy(m).toFixed()
2837
2837
  };
2838
2838
  }, kn = (e) => Number(We) >= 2 ? wn(e) : Dn(e), nt = (e) => {
2839
- const n = xn(e), i = $e(e), m = e.metadata.expectedChunks || 1, d = Cn(e);
2839
+ const n = xn(e), i = $e(e), m = e.metadata.expectedChunks || 1, d = Cn(e), h = En(e);
2840
2840
  return {
2841
2841
  id: e.hash,
2842
2842
  hash: e.hash,
2843
2843
  version: 2,
2844
- type: En(e),
2844
+ type: h,
2845
2845
  maker: e.order.witness.swapper,
2846
2846
  progress: n,
2847
- srcAmountFilled: d.reduce((A, E) => A.plus(E.inAmount), new x(0)).toFixed() || "",
2848
- dstAmountFilled: d.reduce((A, E) => A.plus(E.outAmount), new x(0)).toFixed() || "",
2847
+ srcAmountFilled: d.reduce((E, x) => E.plus(x.inAmount), new g(0)).toFixed() || "",
2848
+ dstAmountFilled: d.reduce((E, x) => E.plus(x.outAmount), new g(0)).toFixed() || "",
2849
2849
  fills: d,
2850
2850
  srcTokenAddress: e.order.witness.input.token,
2851
2851
  dstTokenAddress: e.order.witness.output.token,
2852
- orderDollarValueIn: Fn(e),
2852
+ orderDollarValueIn: Tn(e),
2853
2853
  fillDelay: e.order.witness.epoch * 1e3,
2854
2854
  deadline: Number(e.order.deadline) * 1e3,
2855
2855
  createdAt: new Date(e.timestamp).getTime(),
2856
2856
  srcAmount: e.order.witness.input.maxAmount,
2857
2857
  srcAmountPerTrade: e.order.witness.input.amount,
2858
2858
  totalTradesAmount: m,
2859
- isMarketPrice: x(i || 0).lte(1),
2859
+ isMarketPrice: g(i || 0).lte(1),
2860
2860
  chainId: e.order.witness.chainid,
2861
- filledOrderTimestamp: Tn(d, m),
2861
+ filledOrderTimestamp: Fn(d, m),
2862
2862
  status: gn(e, n),
2863
+ isTriggerPrice: h === z.TAKE_PROFIT || h === z.STOP_LOSS_LIMIT || h === z.STOP_LOSS_MARKET,
2863
2864
  rawOrder: e,
2864
2865
  ...kn(e)
2865
2866
  };
@@ -2872,17 +2873,17 @@ const Ne = new bn(), En = (e) => {
2872
2873
  }) => {
2873
2874
  try {
2874
2875
  if (!i) return [];
2875
- const A = m ? `&exchange=${m}` : "", g = await (await fetch(
2876
- `${Ye(d)}/orders?swapper=${i}&chainId=${e}${A}`,
2876
+ const h = m ? `&exchange=${m}` : "", x = await (await fetch(
2877
+ `${Ye(d)}/orders?swapper=${i}&chainId=${e}${h}`,
2877
2878
  {
2878
2879
  signal: n
2879
2880
  }
2880
2881
  )).json();
2881
- return !g || !Array.isArray(g.orders) ? [] : g.orders.map(nt);
2882
+ return !x || !Array.isArray(x.orders) ? [] : x.orders.map(nt);
2882
2883
  } catch {
2883
2884
  return [];
2884
2885
  }
2885
- }, Pa = async (e, n, i = !1) => {
2886
+ }, Ra = async (e, n, i = !1) => {
2886
2887
  try {
2887
2888
  const m = {
2888
2889
  signature: n,
@@ -2893,14 +2894,14 @@ const Ne = new bn(), En = (e) => {
2893
2894
  const d = await fetch(`${Ye(i)}/orders/new`, {
2894
2895
  method: "POST",
2895
2896
  body: JSON.stringify(m)
2896
- }), A = await d.json().catch(() => ({}));
2897
- if (!d.ok || !(A != null && A.success)) {
2898
- const g = (A == null ? void 0 : A.message) ?? d.statusText ?? "Request failed", T = (A == null ? void 0 : A.code) ?? d.status;
2899
- throw new Error(`error:${g}, code:${T}`);
2897
+ }), h = await d.json().catch(() => ({}));
2898
+ if (!d.ok || !(h != null && h.success)) {
2899
+ const x = (h == null ? void 0 : h.message) ?? d.statusText ?? "Request failed", F = (h == null ? void 0 : h.code) ?? d.status;
2900
+ throw new Error(`error:${x}, code:${F}`);
2900
2901
  }
2901
- if (!A.signedOrder || typeof A.signedOrder != "object")
2902
+ if (!h.signedOrder || typeof h.signedOrder != "object")
2902
2903
  throw new Error("Invalid API response: missing signedOrder");
2903
- const E = nt(A.signedOrder);
2904
+ const E = nt(h.signedOrder);
2904
2905
  return Ne.onCreateOrderSuccess(E.id), E;
2905
2906
  } catch (m) {
2906
2907
  throw Ne.onCreateOrderError(m), console.error(m), m;
@@ -2914,61 +2915,61 @@ const Ne = new bn(), En = (e) => {
2914
2915
  extractResults: i,
2915
2916
  signal: m,
2916
2917
  retries: d = 1,
2917
- limit: A = 1e3,
2918
+ limit: h = 1e3,
2918
2919
  page: E
2919
2920
  }) => {
2920
- const g = Sn(e);
2921
- if (!g) throw new In();
2922
- const T = async (C) => {
2923
- let F = 0;
2924
- for (; F <= d; )
2921
+ const x = Sn(e);
2922
+ if (!x) throw new In();
2923
+ const F = async (C) => {
2924
+ let T = 0;
2925
+ for (; T <= d; )
2925
2926
  try {
2926
- const R = await fetch(g, {
2927
+ const P = await fetch(x, {
2927
2928
  method: "POST",
2928
2929
  body: JSON.stringify({ query: C }),
2929
2930
  signal: m,
2930
2931
  headers: { "Content-Type": "application/json" }
2931
2932
  });
2932
- if (!R.ok) throw new Error(`HTTP error: ${R.status}`);
2933
- const I = await R.json();
2933
+ if (!P.ok) throw new Error(`HTTP error: ${P.status}`);
2934
+ const I = await P.json();
2934
2935
  if (I.errors)
2935
2936
  throw new Error(I.errors[0].message);
2936
2937
  return i(I);
2937
- } catch (R) {
2938
- if (F === d) throw R;
2939
- await new Promise((I) => setTimeout(I, 500 * 2 ** F)), F++;
2938
+ } catch (P) {
2939
+ if (T === d) throw P;
2940
+ await new Promise((I) => setTimeout(I, 500 * 2 ** T)), T++;
2940
2941
  }
2941
2942
  return [];
2942
2943
  };
2943
2944
  let D = 0;
2944
2945
  const B = [];
2945
2946
  if (E !== void 0) {
2946
- const C = n(E, A);
2947
+ const C = n(E, h);
2947
2948
  try {
2948
- return await T(C);
2949
+ return await F(C);
2949
2950
  } catch {
2950
2951
  console.warn(`Page ${E} failed, retrying one final time...`);
2951
2952
  try {
2952
- return await T(C);
2953
+ return await F(C);
2953
2954
  } catch {
2954
2955
  return [];
2955
2956
  }
2956
2957
  }
2957
2958
  }
2958
2959
  for (; ; ) {
2959
- const C = n(D, A);
2960
- let F;
2960
+ const C = n(D, h);
2961
+ let T;
2961
2962
  try {
2962
- F = await T(C);
2963
+ T = await F(C);
2963
2964
  } catch {
2964
2965
  console.warn(`Page ${D} failed, retrying one final time...`);
2965
2966
  try {
2966
- F = await T(C);
2967
+ T = await F(C);
2967
2968
  } catch {
2968
2969
  return B;
2969
2970
  }
2970
2971
  }
2971
- if (B.push(...F), F.length < A) break;
2972
+ if (B.push(...T), T.length < h) break;
2972
2973
  D++;
2973
2974
  }
2974
2975
  return B;
@@ -2978,16 +2979,17 @@ const Ne = new bn(), En = (e) => {
2978
2979
  timestamp: n.timestamp,
2979
2980
  txHash: n.transactionHash
2980
2981
  })), Qe = (e, n) => {
2981
- const i = x(e || 0).gt(1);
2982
- return !i && n === 1 ? q.TWAP_MARKET : n > 1 && i ? q.TWAP_LIMIT : i ? q.LIMIT : q.TWAP_MARKET;
2983
- }, _n = (e, n, i, m) => {
2984
- var F;
2985
- const d = at(i || []), A = new x(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(x.ROUND_FLOOR).toNumber(), g = (i == null ? void 0 : i.length) === A ? (F = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) == null ? void 0 : F.timestamp : void 0, T = d.reduce((R, I) => R.plus(I.inAmount), new x(0)).toFixed(), D = d.reduce((R, I) => R.plus(I.outAmount), new x(0)).toFixed(), B = st(e.ask_srcAmount, T), C = Qe(e.ask_dstMinAmount, A);
2982
+ const i = g(e || 0).gt(1);
2983
+ return !i && n === 1 ? z.TWAP_MARKET : n > 1 && i ? z.TWAP_LIMIT : i ? z.LIMIT : z.TWAP_MARKET;
2984
+ }, On = (e, n, i, m) => {
2985
+ var T;
2986
+ const d = at(i || []), h = new g(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(g.ROUND_FLOOR).toNumber(), x = (i == null ? void 0 : i.length) === h ? (T = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) == null ? void 0 : T.timestamp : void 0, F = d.reduce((P, I) => P.plus(I.inAmount), new g(0)).toFixed(), D = d.reduce((P, I) => P.plus(I.outAmount), new g(0)).toFixed(), B = st(e.ask_srcAmount, F), C = Qe(e.ask_dstMinAmount, h);
2986
2987
  return {
2987
2988
  version: 1,
2989
+ isTriggerPrice: !1,
2988
2990
  id: e.Contract_id.toString(),
2989
2991
  hash: "",
2990
- type: Qe(e.ask_dstMinAmount, A),
2992
+ type: Qe(e.ask_dstMinAmount, h),
2991
2993
  srcTokenAddress: e.ask_srcToken,
2992
2994
  dstTokenAddress: e.ask_dstToken,
2993
2995
  exchangeAddress: e.exchange,
@@ -2995,63 +2997,63 @@ const Ne = new bn(), En = (e) => {
2995
2997
  maker: e.maker,
2996
2998
  progress: B,
2997
2999
  dstAmountFilled: D,
2998
- srcAmountFilled: T,
2999
- orderDollarValueIn: x(e.dollarValueIn || 0).toFixed(6),
3000
+ srcAmountFilled: F,
3001
+ orderDollarValueIn: g(e.dollarValueIn || 0).toFixed(6),
3000
3002
  srcAmount: e.ask_srcAmount,
3001
- dstMinAmountTotal: x(e.ask_dstMinAmount).multipliedBy(A).toString(),
3003
+ dstMinAmountTotal: g(e.ask_dstMinAmount).multipliedBy(h).toString(),
3002
3004
  fills: d,
3003
3005
  fillDelay: e.ask_fillDelay,
3004
3006
  deadline: e.ask_deadline * 1e3,
3005
3007
  createdAt: new Date(e.timestamp).getTime(),
3006
- dstMinAmountPerTrade: x(e.ask_dstMinAmount).eq(1) ? "" : e.ask_dstMinAmount,
3008
+ dstMinAmountPerTrade: g(e.ask_dstMinAmount).eq(1) ? "" : e.ask_dstMinAmount,
3007
3009
  triggerPricePerTrade: "",
3008
3010
  srcAmountPerTrade: e.ask_srcBidAmount,
3009
3011
  txHash: e.transactionHash,
3010
- totalTradesAmount: A,
3011
- isMarketPrice: [q.TWAP_MARKET].includes(C),
3012
+ totalTradesAmount: h,
3013
+ isMarketPrice: [z.TWAP_MARKET].includes(C),
3012
3014
  chainId: n,
3013
- filledOrderTimestamp: g || 0,
3015
+ filledOrderTimestamp: x || 0,
3014
3016
  status: m,
3015
3017
  rawOrder: e
3016
3018
  };
3017
- }, On = (e) => {
3019
+ }, _n = (e) => {
3018
3020
  var C;
3019
3021
  if (!e) return "";
3020
3022
  const n = ce(
3021
3023
  e.accounts,
3022
- (F) => `"${F.toLowerCase()}"`
3024
+ (T) => `"${T.toLowerCase()}"`
3023
3025
  ), i = ce(
3024
3026
  dn(e.configs),
3025
- (F) => `"${F.toLowerCase()}"`
3027
+ (T) => `"${T.toLowerCase()}"`
3026
3028
  ), m = ce(
3027
3029
  e.inTokenSymbols,
3028
- (F) => `"${F.toUpperCase()}"`
3030
+ (T) => `"${T.toUpperCase()}"`
3029
3031
  ), d = ce(
3030
3032
  e.outTokenSymbols,
3031
- (F) => `"${F.toUpperCase()}"`
3032
- ), A = ce(
3033
+ (T) => `"${T.toUpperCase()}"`
3034
+ ), h = ce(
3033
3035
  e.inTokenAddresses,
3034
- (F) => `"${F.toLowerCase()}"`
3036
+ (T) => `"${T.toLowerCase()}"`
3035
3037
  ), E = ce(
3036
3038
  e.outTokenAddresses,
3037
- (F) => `"${F.toLowerCase()}"`
3038
- ), g = ce(
3039
+ (T) => `"${T.toLowerCase()}"`
3040
+ ), x = ce(
3039
3041
  e.transactionHashes,
3040
- (F) => `"${F.toLowerCase()}"`
3041
- ), T = ce(e.orderIds, (F) => `"${F}"`), D = i != null && i.length ? "" : ce(
3042
- (C = e.configs) == null ? void 0 : C.map((F) => F.twapAddress),
3043
- (F) => `"${F.toLowerCase()}"`
3042
+ (T) => `"${T.toLowerCase()}"`
3043
+ ), F = ce(e.orderIds, (T) => `"${T}"`), D = i != null && i.length ? "" : ce(
3044
+ (C = e.configs) == null ? void 0 : C.map((T) => T.twapAddress),
3045
+ (T) => `"${T.toLowerCase()}"`
3044
3046
  ), B = e.minDollarValueIn;
3045
3047
  return [
3046
3048
  i ? `exchange_in: [${i.join(", ")}]` : "",
3047
3049
  D ? `twapAddress_in: [${D.join(", ")}]` : "",
3048
3050
  n ? `maker_in: [${n.join(", ")}]` : "",
3049
- g ? `transactionHash_in: [${g.join(", ")}]` : "",
3050
- T ? `Contract_id_in: [${T.join(", ")}]` : "",
3051
+ x ? `transactionHash_in: [${x.join(", ")}]` : "",
3052
+ F ? `Contract_id_in: [${F.join(", ")}]` : "",
3051
3053
  B ? `dollarValueIn_gte: ${B}` : "",
3052
3054
  m ? `srcTokenSymbol_in: [${m.join(", ")}]` : "",
3053
3055
  d ? `dstTokenSymbol_in: [${d.join(", ")}]` : "",
3054
- A ? `srcTokenAddress_in: [${A.join(", ")}]` : "",
3056
+ h ? `srcTokenAddress_in: [${h.join(", ")}]` : "",
3055
3057
  E ? `dstTokenAddress_in: [${E.join(", ")}]` : "",
3056
3058
  e != null && e.startDate ? `blockTimestamp_gte: ${e.startDate}` : "",
3057
3059
  e != null && e.endDate ? `blockTimestamp_lte: ${e.endDate}` : "",
@@ -3066,18 +3068,18 @@ async function vn({
3066
3068
  limit: m,
3067
3069
  filters: d
3068
3070
  }) {
3069
- const A = m || 1e3, E = On(d);
3071
+ const h = m || 1e3, E = _n(d);
3070
3072
  return await He({
3071
3073
  chainId: e,
3072
3074
  signal: n,
3073
- limit: A,
3075
+ limit: h,
3074
3076
  page: i,
3075
- buildQuery: (T, D) => `
3077
+ buildQuery: (F, D) => `
3076
3078
  {
3077
3079
  orderCreateds(
3078
3080
  ${E ? `where: { ${E} }` : ""},
3079
3081
  first: ${D},
3080
- skip: ${T * D},
3082
+ skip: ${F * D},
3081
3083
  orderBy: timestamp,
3082
3084
  orderDirection: desc,
3083
3085
  ) {
@@ -3107,31 +3109,31 @@ async function vn({
3107
3109
  }
3108
3110
  }
3109
3111
  `,
3110
- extractResults: (T) => {
3112
+ extractResults: (F) => {
3111
3113
  var D;
3112
- return ((D = T.data) == null ? void 0 : D.orderCreateds) || [];
3114
+ return ((D = F.data) == null ? void 0 : D.orderCreateds) || [];
3113
3115
  }
3114
3116
  });
3115
3117
  }
3116
- const Rn = async ({
3118
+ const Pn = async ({
3117
3119
  chainId: e,
3118
3120
  orders: n,
3119
3121
  signal: i
3120
3122
  }) => {
3121
3123
  if (n.length === 0) return [];
3122
- const m = Le(n.map((g) => g.Contract_id.toString()));
3124
+ const m = Le(n.map((x) => x.Contract_id.toString()));
3123
3125
  if (!m.length) return [];
3124
- const A = `where: { twapId_in: [${m.map((g) => `"${g}"`).join(", ")}]}`;
3126
+ const h = `where: { twapId_in: [${m.map((x) => `"${x}"`).join(", ")}]}`;
3125
3127
  return await He({
3126
3128
  chainId: e,
3127
3129
  signal: i,
3128
3130
  limit: 1e3,
3129
- buildQuery: (g, T) => `
3131
+ buildQuery: (x, F) => `
3130
3132
  {
3131
3133
  statusNews(
3132
- first: ${T},
3133
- skip: ${g * T},
3134
- ${A}
3134
+ first: ${F},
3135
+ skip: ${x * F},
3136
+ ${h}
3135
3137
  ) {
3136
3138
  twapId
3137
3139
  twapAddress
@@ -3139,33 +3141,33 @@ const Rn = async ({
3139
3141
  }
3140
3142
  }
3141
3143
  `,
3142
- extractResults: (g) => {
3143
- var T;
3144
- return ((T = g.data) == null ? void 0 : T.statusNews) || [];
3144
+ extractResults: (x) => {
3145
+ var F;
3146
+ return ((F = x.data) == null ? void 0 : F.statusNews) || [];
3145
3147
  }
3146
3148
  });
3147
3149
  };
3148
3150
  function Le(e) {
3149
3151
  return Array.from(new Set(e));
3150
3152
  }
3151
- const Pn = async ({
3153
+ const Rn = async ({
3152
3154
  chainId: e,
3153
3155
  orders: n,
3154
3156
  signal: i
3155
3157
  }) => {
3156
3158
  const m = Le(n.map((C) => C.Contract_id)), d = Le(n.map((C) => C.twapAddress)).filter(Boolean);
3157
3159
  if (m.length === 0) return [];
3158
- const A = m.join(", "), E = d.map((C) => `"${C}"`).join(", "), g = d.length ? `twapAddress_in: [${E}]` : "", D = `where: { ${[
3159
- `TWAP_id_in: [${A}]`,
3160
- g
3160
+ const h = m.join(", "), E = d.map((C) => `"${C}"`).join(", "), x = d.length ? `twapAddress_in: [${E}]` : "", D = `where: { ${[
3161
+ `TWAP_id_in: [${h}]`,
3162
+ x
3161
3163
  ].filter(Boolean).join(", ")} }`;
3162
3164
  return await He({
3163
3165
  chainId: e,
3164
3166
  signal: i,
3165
3167
  limit: 1e3,
3166
- buildQuery: (C, F) => `
3168
+ buildQuery: (C, T) => `
3167
3169
  {
3168
- orderFilleds(first: ${F}, orderBy: timestamp, skip: ${C * F}, ${D}) {
3170
+ orderFilleds(first: ${T}, orderBy: timestamp, skip: ${C * T}, ${D}) {
3169
3171
  id
3170
3172
  dstAmountOut
3171
3173
  dstFee
@@ -3182,10 +3184,10 @@ const Pn = async ({
3182
3184
  }
3183
3185
  `,
3184
3186
  extractResults: (C) => {
3185
- var F;
3186
- return (((F = C.data) == null ? void 0 : F.orderFilleds) || []).map((R) => ({
3187
- ...R,
3188
- timestamp: new Date(R.timestamp).getTime()
3187
+ var T;
3188
+ return (((T = C.data) == null ? void 0 : T.orderFilleds) || []).map((P) => ({
3189
+ ...P,
3190
+ timestamp: new Date(P.timestamp).getTime()
3189
3191
  }));
3190
3192
  }
3191
3193
  });
@@ -3203,39 +3205,39 @@ const Nn = async ({
3203
3205
  filters: d
3204
3206
  }) => {
3205
3207
  try {
3206
- const A = await vn({
3208
+ const h = await vn({
3207
3209
  chainId: e,
3208
3210
  signal: n,
3209
3211
  page: i,
3210
3212
  limit: m,
3211
3213
  filters: d
3212
- }), [E, g] = await Promise.all([
3213
- Pn({ chainId: e, orders: A, signal: n }),
3214
- Rn({ chainId: e, orders: A, signal: n })
3215
- ]), T = A.map((B) => {
3214
+ }), [E, x] = await Promise.all([
3215
+ Rn({ chainId: e, orders: h, signal: n }),
3216
+ Pn({ chainId: e, orders: h, signal: n })
3217
+ ]), F = h.map((B) => {
3216
3218
  const C = E == null ? void 0 : E.filter(
3217
- (F) => F.TWAP_id === Number(B.Contract_id) && De(F.exchange, B.exchange) && De(F.twapAddress, B.twapAddress)
3219
+ (T) => T.TWAP_id === Number(B.Contract_id) && De(T.exchange, B.exchange) && De(T.twapAddress, B.twapAddress)
3218
3220
  );
3219
- return _n(
3221
+ return On(
3220
3222
  B,
3221
3223
  e,
3222
3224
  C,
3223
- Mn(B, C || [], g)
3225
+ Mn(B, C || [], x)
3224
3226
  );
3225
3227
  }).sort((B, C) => C.createdAt - B.createdAt), D = /* @__PURE__ */ new Set();
3226
- return T.filter((B) => D.has(B.id) ? !1 : (D.add(B.id), !0));
3228
+ return F.filter((B) => D.has(B.id) ? !1 : (D.add(B.id), !0));
3227
3229
  } catch {
3228
3230
  return [];
3229
3231
  }
3230
3232
  }, Mn = (e, n, i) => {
3231
- var g;
3232
- const m = (g = i == null ? void 0 : i.find(
3233
- (T) => T.twapId === e.Contract_id.toString() && De(T.twapAddress, e.twapAddress)
3234
- )) == null ? void 0 : g.status, A = at(n).reduce((T, D) => T.plus(D.inAmount), new x(0)).toFixed(), E = st(e.ask_srcAmount, A);
3233
+ var x;
3234
+ const m = (x = i == null ? void 0 : i.find(
3235
+ (F) => F.twapId === e.Contract_id.toString() && De(F.twapAddress, e.twapAddress)
3236
+ )) == null ? void 0 : x.status, h = at(n).reduce((F, D) => F.plus(D.inAmount), new g(0)).toFixed(), E = st(e.ask_srcAmount, h);
3235
3237
  return Un(E, e.ask_deadline * 1e3, m);
3236
3238
  }, st = (e, n) => {
3237
3239
  if (!n || !e) return 0;
3238
- const i = x(n).dividedBy(e).toNumber();
3240
+ const i = g(n).dividedBy(e).toNumber();
3239
3241
  return i >= 0.99 ? 100 : i <= 0 ? 0 : Number((i * 100).toFixed(2));
3240
3242
  }, Un = (e, n, i) => e === 100 ? re.Completed : i === "CANCELLED" ? re.Cancelled : i === "COMPLETED" ? re.Completed : n > Date.now() ? re.Open : re.Expired, Ia = async ({
3241
3243
  signal: e,
@@ -3243,16 +3245,16 @@ const Nn = async ({
3243
3245
  chainId: i,
3244
3246
  limit: m,
3245
3247
  config: d,
3246
- account: A,
3248
+ account: h,
3247
3249
  isDev: E = !1
3248
3250
  }) => (await Promise.all([
3249
- d ? Nn({ chainId: i, signal: e, page: n, limit: m, filters: { accounts: [A], configs: d.twapConfig ? [d.twapConfig] : [] } }) : Promise.resolve([]),
3250
- Bn({ chainId: i, signal: e, account: A, exchange: d == null ? void 0 : d.adapter, isDev: E })
3251
+ d ? Nn({ chainId: i, signal: e, page: n, limit: m, filters: { accounts: [h], configs: d.twapConfig ? [d.twapConfig] : [] } }) : Promise.resolve([]),
3252
+ Bn({ chainId: i, signal: e, account: h, exchange: d == null ? void 0 : d.adapter, isDev: E })
3251
3253
  ]).then(([D, B]) => [...D, ...B])).sort((D, B) => B.createdAt - D.createdAt);
3252
3254
  export {
3253
3255
  sa as CRASH_ERROR_MESSAGE,
3254
- _ as Configs,
3255
- Ge as DEFAULT_FILL_DELAY,
3256
+ O as Configs,
3257
+ qe as DEFAULT_FILL_DELAY,
3256
3258
  na as DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE,
3257
3259
  ea as DEFAULT_STOP_LOSS_PERCENTAGE,
3258
3260
  aa as DEFAULT_TAKE_PROFIT_LIMIT_PERCENTAGE,
@@ -3261,8 +3263,8 @@ export {
3261
3263
  Jt as EIP712_TYPES,
3262
3264
  en as EIP712_TYPES_DEV,
3263
3265
  Wn as ERC20_ABI,
3264
- qn as EXCLUSIVITY_OVERRIDE_BPS,
3265
- Gn as FEES,
3266
+ Gn as EXCLUSIVITY_OVERRIDE_BPS,
3267
+ qn as FEES,
3266
3268
  Vn as IWETH_ABI,
3267
3269
  $t as InputErrors,
3268
3270
  Zt as LEGACY_EXCHANGES_MAP,
@@ -3271,7 +3273,7 @@ export {
3271
3273
  Me as MIN_FILL_DELAY_MILLIS,
3272
3274
  Xt as MIN_FILL_DELAY_MINUTES,
3273
3275
  Ke as MIN_ORDER_DURATION_MILLIS,
3274
- z as Module,
3276
+ $ as Module,
3275
3277
  Qn as ORBS_LOGO,
3276
3278
  Yn as ORBS_LOGO_FALLBACK,
3277
3279
  jn as ORBS_SLTP_FAQ_URL,
@@ -3279,7 +3281,7 @@ export {
3279
3281
  Zn as ORBS_WEBSITE_URL,
3280
3282
  zt as OrderFilter,
3281
3283
  re as OrderStatus,
3282
- q as OrderType,
3284
+ z as OrderType,
3283
3285
  pe as Partners,
3284
3286
  ge as QUERY_PARAMS,
3285
3287
  zn as REPERMIT_ABI,
@@ -3295,19 +3297,19 @@ export {
3295
3297
  De as eqIgnoreCase,
3296
3298
  Ia as getAccountOrders,
3297
3299
  Ye as getApiEndpoint,
3298
- Aa as getChunks,
3300
+ ha as getChunks,
3299
3301
  un as getConfig,
3300
3302
  ba as getDeadline,
3301
3303
  la as getDestTokenAmount,
3302
3304
  fa as getDestTokenMinAmountPerChunk,
3303
3305
  ya as getDuration,
3304
- Oa as getErrors,
3306
+ _a as getErrors,
3305
3307
  cn as getEstimatedDelayBetweenChunksMillis,
3306
3308
  Sa as getMaxChunksError,
3307
3309
  xa as getMaxFillDelayError,
3308
3310
  wa as getMaxOrderDurationError,
3309
- ha as getMaxPossibleChunks,
3310
- _a as getMinChunkSizeUsd,
3311
+ Aa as getMaxPossibleChunks,
3312
+ Oa as getMinChunkSizeUsd,
3311
3313
  ka as getMinFillDelayError,
3312
3314
  Da as getMinOrderDurationError,
3313
3315
  Ba as getMinTradeSizeError,
@@ -3319,17 +3321,17 @@ export {
3319
3321
  G as getPartnerIdentifier,
3320
3322
  ln as getPartners,
3321
3323
  Ea as getSrcTokenChunkAmount,
3322
- Ta as getStopLossLimitPriceError,
3324
+ Fa as getStopLossLimitPriceError,
3323
3325
  ga as getStopLossPriceError,
3324
- Fa as getTakeProfitLimitPriceError,
3326
+ Ta as getTakeProfitLimitPriceError,
3325
3327
  Ca as getTakeProfitPriceError,
3326
3328
  ma as getTriggerPricePerChunk,
3327
- ua as getTriggerPricePerTrade,
3329
+ ua as getTriggerPriceRate,
3328
3330
  ra as isNativeAddress,
3329
3331
  ze as maxUint256,
3330
3332
  Yt as nativeTokenAddresses,
3331
- K as networks,
3332
- Ra as setUIVersion,
3333
- Pa as submitOrder,
3333
+ q as networks,
3334
+ Pa as setUIVersion,
3335
+ Ra as submitOrder,
3334
3336
  Qt as zeroAddress
3335
3337
  };