@orbs-network/spot-ui 0.0.15 → 0.0.17

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 at = Object.defineProperty;
2
2
  var st = (e, n, o) => n in e ? at(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
3
3
  var Ae = (e, n, o) => st(e, typeof n != "symbol" ? n + "" : n, o);
4
- const rt = { 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: "" }, it = { 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: "" }, ot = { 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" }, dt = { 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: "" }, ct = { 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" }, pt = { 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" }, lt = { 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" }, ut = { 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" }, ft = { 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: "" }, mt = { 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: "" }, yt = { 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: "" }, At = { 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" }, bt = { 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" }, Et = { 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: "" }, xt = { 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: "" }, wt = { 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: "" }, Tt = { 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: "" }, Ft = { 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: "" }, Ct = { 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" }, Dt = { 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" }, kt = { 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: "" }, St = { 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: "" }, Bt = { 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" }, Ot = { 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" }, vt = { 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" }, _t = { 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" }, Pt = { 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" }, Rt = { 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" }, $ = {
4
+ const rt = { 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: "" }, it = { 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: "" }, ot = { 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" }, dt = { 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: "" }, ct = { 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" }, pt = { 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" }, lt = { 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" }, ut = { 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" }, ft = { 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: "" }, mt = { 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: "" }, yt = { 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: "" }, ht = { 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: "" }, At = { 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" }, bt = { 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" }, Et = { 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: "" }, xt = { 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: "" }, wt = { 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: "" }, Tt = { 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: "" }, Ct = { 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: "" }, Ft = { 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" }, Dt = { 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" }, kt = { 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: "" }, St = { 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: "" }, Bt = { 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" }, Ot = { 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" }, vt = { 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" }, _t = { 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" }, Rt = { 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" }, Pt = { 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" }, It = { 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" }, $ = {
5
5
  SpookySwap: rt,
6
6
  SpookySwapSonic: it,
7
7
  QuickSwap: ot,
@@ -12,8 +12,8 @@ const rt = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
12
12
  Thena: ut,
13
13
  PancakeSwap: ft,
14
14
  PancakeSwapArbitrum: mt,
15
- PancakeSwapBase: ht,
16
- PancakeSwapLinea: yt,
15
+ PancakeSwapBase: yt,
16
+ PancakeSwapLinea: ht,
17
17
  Lynex: At,
18
18
  SyncSwap: bt,
19
19
  Retro: gt,
@@ -21,8 +21,8 @@ const rt = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
21
21
  SushiBase: xt,
22
22
  SushiEth: wt,
23
23
  SushiKatana: Tt,
24
- DragonSwap: Ft,
25
- TeaFi: Ct,
24
+ DragonSwap: Ct,
25
+ TeaFi: Ft,
26
26
  SparkDEX: Dt,
27
27
  Ramses: kt,
28
28
  SwapX: St,
@@ -30,9 +30,9 @@ const rt = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
30
30
  Shadow: Ot,
31
31
  Kodiak: vt,
32
32
  OmniBase: _t,
33
- OmniArb: It,
33
+ OmniArb: Rt,
34
34
  BlackholeAvax: Pt,
35
- NewEraBnb: Rt
35
+ NewEraBnb: It
36
36
  }, Nt = [
37
37
  {
38
38
  constant: !1,
@@ -91,7 +91,7 @@ const rt = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
91
91
  name: "Withdrawal",
92
92
  type: "event"
93
93
  }
94
- ], Ut = [
94
+ ], Mt = [
95
95
  {
96
96
  inputs: [
97
97
  {
@@ -378,56 +378,327 @@ const rt = { chainName: "ftm", chainId: 250, twapVersion: 4, twapAddress: "0xd3B
378
378
  stateMutability: "nonpayable",
379
379
  type: "function"
380
380
  }
381
- ];
382
- function Mt(e) {
383
- 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.');
384
- }
385
- const Lt = {
386
- 14: { dex: { spark: { type: "default:spark", adapter: "0xB18c633B6584A33E45a8840a759f56dF17117b1D", fee: "0xaeA8C3e1a129A77686E115b1a46D9aD8405F7D2b" } } },
387
- 56: { dex: { thena: { type: "default:odos-v2", adapter: "0xB75218ba5A99bF57Fd02556B70F05A4A0f1Dbe67", fee: "0x15eBc8b5b3877512FFF23650188694A9a8891FAc" }, pancake: { type: "p2:pancakeswap-v2", adapter: "0x654272F7e6e6E912D38650f783eFd44452fD6ee5", fee: "0x37A957f10F458e0d7fDECBE2917971b57F15c927" }, newera: { type: "default:odos-v2", adapter: "0x845f459271D800f6Ab32D78400b8Aa18414E80b0", fee: "0x4E7454909eB6D539111D56b50d68897E933D2d11" } } },
388
- 137: { dex: { quick: { type: "paraswap:paraswap-v5", adapter: "0x023fD6848234f2655818705237F77F02215FEfe5", fee: "0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f" }, teafi: { type: "paraswap:paraswap-v5", adapter: "0xe95db7a60164B112C64cE67bA8587b1d4a0E0D29", fee: "0x04Ff96e2c4D62b5771795d307AD679a25b3D2D50" } } },
389
- 143: { dex: { yowie: { type: "default:openocean-v2", adapter: "0x18bc9533c3539073B9A9acF12b0AbF7cB73e0F1f", fee: "0x6AF3eE77A3A3257777F5649aFa611b4C7Fd975Ef" } } },
390
- 146: { dex: { spooky: { type: "default:magpie-v3", adapter: "0xdCee7FDdB932104329d528144Cd17A408722B7e2", fee: "0x840Df4684B35BC68BcdA3F6707A3c82A0D662f8b" }, swapx: { type: "default:openocean-v2", adapter: "0xecc733D6F6f2DEa341832D650E30822118884FEb", fee: "0x6E03f7BC0f141894612AA017796096399623895F" }, shadow: { type: "default:magpie-v3", adapter: "0x5f3E5F6ACCfc65243A01Da3E93b5A700285592C3", fee: "0xb9e3751fAF3187E1bC468E56a707a8A91754460e" } } },
391
- 1329: { dex: { dragon: { type: "default:dragon", adapter: "0x02d9d5882129241b67ec21Ebc2C86e1BE9BC9890", fee: "0x0dc1E0525202b32e89bA78ed55b1e5cEdB751334" }, nami: { type: "default:openocean-v2", adapter: "0x2D4A1237A98f8cb03C3C85960e859aA44036a306", fee: "0xeB58450e23632003f013568703F54446070E2E80" } } },
392
- 8453: { dex: { quick: { type: "default:kyber-v2", adapter: "0xc73F03c929A123Ee2f3A98EC18BB240f03980AE5", fee: "0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f" } } },
393
- 42161: { dex: { arbidex: { type: "default:odos-v2", adapter: "0xa734b32151108139e48dCA06eE721538d90A9Ef6", fee: "0xa0c11852f8A44e32F9EC10AD25986A53842f72Ca" }, ramses: { type: "paraswap:paraswap-v5", adapter: "0x023fD6848234f2655818705237F77F02215FEfe5", fee: "0xB5BaCB60ECDa0bEF809B2A26eC9B4B926835D7af" }, omni: { type: "paraswap:paraswap-v5", adapter: "0xa1baE146161223cd9dCa7137F68eb385934130BE", fee: "0xba5291526c30B097E9F1Fd1Be301E2ab6E0782aa" }, chronos: { type: "default:odos-v2", adapter: "0x4Ff90F32aceD08b3e3257B018EA495Fd1Bfe4455", fee: "0x5729af83240EFecAa18eafaAE82961c2DD045Dbe" } } },
394
- 43114: { dex: { blackhole: { type: "default:kyber-v2", adapter: "0x426ec4bc0d58B80959CDE77576a1942dd40592Fa", fee: "0x7f8B62520D9B5DA0ED517cc36e8dcb2a356f1928" } } },
395
- 59144: { dex: { lynex: { type: "default:openocean", adapter: "0x4FF6A97A67fe395212f168f011D71fE79E4396f2", fee: "0xcb36ed1B1BfAD8F7FC9651f52d21f04A68677423" } } },
396
- 80094: { dex: { kodiak: { type: "default:kodiak", adapter: "0xBbaa527Aac00b1Ee9A3909D4D8c4447630E29B1F", fee: "0xBA47Ec15aFbCF6e7e9F52900632049530bB6bAe4" } } },
397
- "*": { wm: "0x0005d5cE0dB57e5BE3b2b8b6FeB75f0ccd015000", repermit: "0x00002a9C4D9497df5Bd31768eC5d30eEf5405000", cosigner: "0x0007ec53404c423C935e830ec21903e184690000", reactor: "0x0006a959430e8fBB858D81B2D1140B0ae5c26001", executor: "0x000eBA869d76C618ddc4A6D685A0820A620Ce002", refinery: "0x000E474c0D7084EAA35A501035E73269f4b009A5", salt: { wm: "0xc9b46eae42dfeba3222a0315bf682f33cd5cc9d60c9625642e88406f8415f152", repermit: "0x4871dc9008e605821ea9677b65ea2a60ffb774afb31e0dcaea2e192880096be7", cosigner: "0x37576f2ac1d2a602f00777611edf6f0cbc27611b0980b29bc7856fa79b2b8073", reactor: "0x034169222370f2fd587ef8998082d762cceef58a272330215f5110ec0d76d400", executor: "0xea139bc421fa5e272bed3db74233b2e02077e0aacf8b855f87961e98f2fb467f", refinery: "0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec" } }
398
- };
399
- var Ce, Le;
400
- function Vt() {
401
- if (Le) return Ce;
402
- Le = 1;
403
- const e = Lt, n = (l) => Mt(`./out/${l}.sol/${l}.json`).abi, o = () => ({
404
- wm: n("WM"),
405
- repermit: n("RePermit"),
406
- reactor: n("OrderReactor"),
407
- executor: n("Executor"),
408
- refinery: n("Refinery"),
409
- adapter: n("DefaultDexAdapter")
410
- });
411
- function h(l, A) {
412
- if (!l || !(A != null && A.trim())) return;
413
- const { dex: g, ...x } = e["*"] ?? {}, w = e[l];
414
- if (!w) return;
415
- const { dex: T, ...B } = w, C = T == null ? void 0 : T[A];
416
- if (C)
417
- return { ...x, ...B, ...C };
381
+ ], Ut = /* @__PURE__ */ JSON.parse('[{"inputs":[{"internalType":"address","name":"_iweth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"name":"OrderBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"OrderCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"}],"name":"OrderCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"}],"name":"OrderCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstAmountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"srcFilledAmount","type":"uint256"}],"name":"OrderFilled","type":"event"},{"inputs":[],"name":"MIN_BID_DELAY_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_OUTBID_PERCENT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_BASE","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STALE_BID_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_CANCELED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_COMPLETED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"_ask","type":"tuple"}],"name":"ask","outputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"bid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"book","outputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"fill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"iweth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"makerOrders","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"order","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"internalType":"struct OrderLib.Order","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"maker","type":"address"}],"name":"orderIdsByMaker","outputs":[{"internalType":"uint64[]","name":"","type":"uint64[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"prune","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"status","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]'), Lt = [
382
+ {
383
+ type: "constructor",
384
+ inputs: [],
385
+ stateMutability: "nonpayable"
386
+ },
387
+ {
388
+ type: "function",
389
+ name: "DOMAIN_SEPARATOR",
390
+ inputs: [],
391
+ outputs: [
392
+ {
393
+ name: "",
394
+ type: "bytes32",
395
+ internalType: "bytes32"
396
+ }
397
+ ],
398
+ stateMutability: "view"
399
+ },
400
+ {
401
+ type: "function",
402
+ name: "cancel",
403
+ inputs: [
404
+ {
405
+ name: "digests",
406
+ type: "bytes32[]",
407
+ internalType: "bytes32[]"
408
+ }
409
+ ],
410
+ outputs: [],
411
+ stateMutability: "nonpayable"
412
+ },
413
+ {
414
+ type: "function",
415
+ name: "eip712Domain",
416
+ inputs: [],
417
+ outputs: [
418
+ {
419
+ name: "fields",
420
+ type: "bytes1",
421
+ internalType: "bytes1"
422
+ },
423
+ {
424
+ name: "name",
425
+ type: "string",
426
+ internalType: "string"
427
+ },
428
+ {
429
+ name: "version",
430
+ type: "string",
431
+ internalType: "string"
432
+ },
433
+ {
434
+ name: "chainId",
435
+ type: "uint256",
436
+ internalType: "uint256"
437
+ },
438
+ {
439
+ name: "verifyingContract",
440
+ type: "address",
441
+ internalType: "address"
442
+ },
443
+ {
444
+ name: "salt",
445
+ type: "bytes32",
446
+ internalType: "bytes32"
447
+ },
448
+ {
449
+ name: "extensions",
450
+ type: "uint256[]",
451
+ internalType: "uint256[]"
452
+ }
453
+ ],
454
+ stateMutability: "view"
455
+ },
456
+ {
457
+ type: "function",
458
+ name: "hashTypedData",
459
+ inputs: [
460
+ {
461
+ name: "structHash",
462
+ type: "bytes32",
463
+ internalType: "bytes32"
464
+ }
465
+ ],
466
+ outputs: [
467
+ {
468
+ name: "digest",
469
+ type: "bytes32",
470
+ internalType: "bytes32"
471
+ }
472
+ ],
473
+ stateMutability: "view"
474
+ },
475
+ {
476
+ type: "function",
477
+ name: "repermitWitnessTransferFrom",
478
+ inputs: [
479
+ {
480
+ name: "permit",
481
+ type: "tuple",
482
+ internalType: "struct RePermitLib.RePermitTransferFrom",
483
+ components: [
484
+ {
485
+ name: "permitted",
486
+ type: "tuple",
487
+ internalType: "struct RePermitLib.TokenPermissions",
488
+ components: [
489
+ {
490
+ name: "token",
491
+ type: "address",
492
+ internalType: "address"
493
+ },
494
+ {
495
+ name: "amount",
496
+ type: "uint256",
497
+ internalType: "uint256"
498
+ }
499
+ ]
500
+ },
501
+ {
502
+ name: "nonce",
503
+ type: "uint256",
504
+ internalType: "uint256"
505
+ },
506
+ {
507
+ name: "deadline",
508
+ type: "uint256",
509
+ internalType: "uint256"
510
+ }
511
+ ]
512
+ },
513
+ {
514
+ name: "request",
515
+ type: "tuple",
516
+ internalType: "struct RePermitLib.TransferRequest",
517
+ components: [
518
+ {
519
+ name: "to",
520
+ type: "address",
521
+ internalType: "address"
522
+ },
523
+ {
524
+ name: "amount",
525
+ type: "uint256",
526
+ internalType: "uint256"
527
+ }
528
+ ]
529
+ },
530
+ {
531
+ name: "signer",
532
+ type: "address",
533
+ internalType: "address"
534
+ },
535
+ {
536
+ name: "witness",
537
+ type: "bytes32",
538
+ internalType: "bytes32"
539
+ },
540
+ {
541
+ name: "witnessTypeString",
542
+ type: "string",
543
+ internalType: "string"
544
+ },
545
+ {
546
+ name: "signature",
547
+ type: "bytes",
548
+ internalType: "bytes"
549
+ }
550
+ ],
551
+ outputs: [],
552
+ stateMutability: "nonpayable"
553
+ },
554
+ {
555
+ type: "function",
556
+ name: "spent",
557
+ inputs: [
558
+ {
559
+ name: "",
560
+ type: "address",
561
+ internalType: "address"
562
+ },
563
+ {
564
+ name: "",
565
+ type: "bytes32",
566
+ internalType: "bytes32"
567
+ }
568
+ ],
569
+ outputs: [
570
+ {
571
+ name: "",
572
+ type: "uint256",
573
+ internalType: "uint256"
574
+ }
575
+ ],
576
+ stateMutability: "view"
577
+ },
578
+ {
579
+ type: "event",
580
+ name: "Cancel",
581
+ inputs: [
582
+ {
583
+ name: "signer",
584
+ type: "address",
585
+ indexed: !0,
586
+ internalType: "address"
587
+ },
588
+ {
589
+ name: "digest",
590
+ type: "bytes32",
591
+ indexed: !1,
592
+ internalType: "bytes32"
593
+ }
594
+ ],
595
+ anonymous: !1
596
+ },
597
+ {
598
+ type: "event",
599
+ name: "EIP712DomainChanged",
600
+ inputs: [],
601
+ anonymous: !1
602
+ },
603
+ {
604
+ type: "event",
605
+ name: "Spend",
606
+ inputs: [
607
+ {
608
+ name: "signer",
609
+ type: "address",
610
+ indexed: !0,
611
+ internalType: "address"
612
+ },
613
+ {
614
+ name: "permitHash",
615
+ type: "bytes32",
616
+ indexed: !0,
617
+ internalType: "bytes32"
618
+ },
619
+ {
620
+ name: "token",
621
+ type: "address",
622
+ indexed: !0,
623
+ internalType: "address"
624
+ },
625
+ {
626
+ name: "to",
627
+ type: "address",
628
+ indexed: !1,
629
+ internalType: "address"
630
+ },
631
+ {
632
+ name: "amount",
633
+ type: "uint256",
634
+ indexed: !1,
635
+ internalType: "uint256"
636
+ },
637
+ {
638
+ name: "totalSpent",
639
+ type: "uint256",
640
+ indexed: !1,
641
+ internalType: "uint256"
642
+ }
643
+ ],
644
+ anonymous: !1
645
+ },
646
+ {
647
+ type: "error",
648
+ name: "Canceled",
649
+ inputs: []
650
+ },
651
+ {
652
+ type: "error",
653
+ name: "Expired",
654
+ inputs: []
655
+ },
656
+ {
657
+ type: "error",
658
+ name: "InsufficientAllowance",
659
+ inputs: []
660
+ },
661
+ {
662
+ type: "error",
663
+ name: "InvalidShortString",
664
+ inputs: []
665
+ },
666
+ {
667
+ type: "error",
668
+ name: "InvalidSignature",
669
+ inputs: []
670
+ },
671
+ {
672
+ type: "error",
673
+ name: "SafeERC20FailedOperation",
674
+ inputs: [
675
+ {
676
+ name: "token",
677
+ type: "address",
678
+ internalType: "address"
679
+ }
680
+ ]
681
+ },
682
+ {
683
+ type: "error",
684
+ name: "StringTooLong",
685
+ inputs: [
686
+ {
687
+ name: "str",
688
+ type: "string",
689
+ internalType: "string"
690
+ }
691
+ ]
418
692
  }
419
- return Ce = { config: h, abis: o, raw: e }, Ce;
420
- }
421
- var Ne = Vt();
422
- const Wt = /* @__PURE__ */ JSON.parse('[{"inputs":[{"internalType":"address","name":"_iweth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"name":"OrderBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"OrderCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"}],"name":"OrderCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"indexed":false,"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"}],"name":"OrderCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"id","type":"uint64"},{"indexed":true,"internalType":"address","name":"maker","type":"address"},{"indexed":true,"internalType":"address","name":"exchange","type":"address"},{"indexed":false,"internalType":"address","name":"taker","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstAmountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dstFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"srcFilledAmount","type":"uint256"}],"name":"OrderFilled","type":"event"},{"inputs":[],"name":"MIN_BID_DELAY_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_OUTBID_PERCENT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENT_BASE","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STALE_BID_SECONDS","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_CANCELED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_COMPLETED","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"_ask","type":"tuple"}],"name":"ask","outputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"uint32","name":"slippagePercent","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"bid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"book","outputs":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"fill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"iweth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"length","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"makerOrders","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"order","outputs":[{"components":[{"internalType":"uint64","name":"id","type":"uint64"},{"internalType":"uint32","name":"status","type":"uint32"},{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"uint32","name":"filledTime","type":"uint32"},{"internalType":"uint256","name":"srcFilledAmount","type":"uint256"},{"internalType":"address","name":"maker","type":"address"},{"components":[{"internalType":"address","name":"exchange","type":"address"},{"internalType":"address","name":"srcToken","type":"address"},{"internalType":"address","name":"dstToken","type":"address"},{"internalType":"uint256","name":"srcAmount","type":"uint256"},{"internalType":"uint256","name":"srcBidAmount","type":"uint256"},{"internalType":"uint256","name":"dstMinAmount","type":"uint256"},{"internalType":"uint32","name":"deadline","type":"uint32"},{"internalType":"uint32","name":"bidDelay","type":"uint32"},{"internalType":"uint32","name":"fillDelay","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Ask","name":"ask","type":"tuple"},{"components":[{"internalType":"uint32","name":"time","type":"uint32"},{"internalType":"address","name":"taker","type":"address"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"uint256","name":"dstAmount","type":"uint256"},{"internalType":"uint256","name":"dstFee","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct OrderLib.Bid","name":"bid","type":"tuple"}],"internalType":"struct OrderLib.Order","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"maker","type":"address"}],"name":"orderIdsByMaker","outputs":[{"internalType":"uint64[]","name":"","type":"uint64[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"id","type":"uint64"}],"name":"prune","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"status","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]'), zt = Ne.abis(), Bn = Nt, On = Ut, vn = zt.repermit, _n = Wt;
423
- var G = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(G || {}), se = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Canceled = "CANCELED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(se || {}), ne = /* @__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))(ne || {}), j = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TRIGGER_PRICE_MARKET = "trigger-price-market", e.TRIGGER_PRICE_LIMIT = "trigger-price-limit", e))(j || {}), $t = /* @__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))($t || {});
424
- const M = "0x0000000000000000000000000000000000000000", H = {
693
+ ], Bn = Nt, On = Mt, vn = Lt, _n = Ut;
694
+ var G = /* @__PURE__ */ ((e) => (e.TWAP = "TWAP", e.LIMIT = "LIMIT", e.STOP_LOSS = "STOP_LOSS", e.TAKE_PROFIT = "TAKE_PROFIT", e))(G || {}), se = /* @__PURE__ */ ((e) => (e.Open = "OPEN", e.Canceled = "CANCELED", e.Completed = "COMPLETED", e.Expired = "EXPIRED", e))(se || {}), ne = /* @__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))(ne || {}), j = /* @__PURE__ */ ((e) => (e.LIMIT = "limit", e.TWAP_LIMIT = "twap-limit", e.TWAP_MARKET = "twap-market", e.TRIGGER_PRICE_MARKET = "trigger-price-market", e.TRIGGER_PRICE_LIMIT = "trigger-price-limit", e))(j || {}), Vt = /* @__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))(Vt || {});
695
+ const U = "0x0000000000000000000000000000000000000000", H = {
425
696
  eth: {
426
697
  id: 1,
427
698
  name: "Ethereum",
428
699
  shortname: "eth",
429
700
  native: {
430
- address: M,
701
+ address: U,
431
702
  symbol: "ETH",
432
703
  decimals: 18,
433
704
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -448,7 +719,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
448
719
  name: "BinanceSmartChain",
449
720
  shortname: "bsc",
450
721
  native: {
451
- address: M,
722
+ address: U,
452
723
  symbol: "BNB",
453
724
  decimals: 18,
454
725
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/128x128/1839.png"
@@ -469,7 +740,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
469
740
  name: "Polygon",
470
741
  shortname: "poly",
471
742
  native: {
472
- address: M,
743
+ address: U,
473
744
  symbol: "POL",
474
745
  decimals: 18,
475
746
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/64x64/28321.png"
@@ -490,7 +761,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
490
761
  name: "Arbitrum",
491
762
  shortname: "arb",
492
763
  native: {
493
- address: M,
764
+ address: U,
494
765
  symbol: "ETH",
495
766
  decimals: 18,
496
767
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -511,7 +782,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
511
782
  name: "Sei",
512
783
  shortname: "sei",
513
784
  native: {
514
- address: M,
785
+ address: U,
515
786
  symbol: "SEI",
516
787
  decimals: 18,
517
788
  logoUrl: "https://assets.coingecko.com/coins/images/28205/standard/Sei_Logo_-_Transparent.png"
@@ -532,7 +803,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
532
803
  name: "Avalanche",
533
804
  shortname: "avax",
534
805
  native: {
535
- address: M,
806
+ address: U,
536
807
  symbol: "AVAX",
537
808
  decimals: 18,
538
809
  logoUrl: "https://app.1inch.io/assets/images/network-logos/avalanche.svg"
@@ -553,7 +824,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
553
824
  name: "Fantom",
554
825
  shortname: "ftm",
555
826
  native: {
556
- address: M,
827
+ address: U,
557
828
  symbol: "FTM",
558
829
  decimals: 18,
559
830
  logoUrl: "https://app.1inch.io/assets/images/network-logos/fantom.svg"
@@ -574,7 +845,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
574
845
  name: "Base",
575
846
  shortname: "base",
576
847
  native: {
577
- address: M,
848
+ address: U,
578
849
  symbol: "ETH",
579
850
  decimals: 18,
580
851
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -595,7 +866,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
595
866
  name: "Linea",
596
867
  shortname: "linea",
597
868
  native: {
598
- address: M,
869
+ address: U,
599
870
  symbol: "ETH",
600
871
  decimals: 18,
601
872
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -616,7 +887,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
616
887
  name: "zksync",
617
888
  shortname: "zksync",
618
889
  native: {
619
- address: M,
890
+ address: U,
620
891
  symbol: "ETH",
621
892
  decimals: 18,
622
893
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -637,7 +908,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
637
908
  name: "zkevm",
638
909
  shortname: "zkevm",
639
910
  native: {
640
- address: M,
911
+ address: U,
641
912
  symbol: "ETH",
642
913
  decimals: 18,
643
914
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -658,7 +929,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
658
929
  name: "manta",
659
930
  shortname: "manta",
660
931
  native: {
661
- address: M,
932
+ address: U,
662
933
  symbol: "ETH",
663
934
  decimals: 18,
664
935
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_manta.jpg"
@@ -679,7 +950,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
679
950
  name: "blast",
680
951
  shortname: "blast",
681
952
  native: {
682
- address: M,
953
+ address: U,
683
954
  symbol: "ETH",
684
955
  decimals: 18,
685
956
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_blast"
@@ -700,7 +971,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
700
971
  name: "sonic",
701
972
  shortname: "sonic",
702
973
  native: {
703
- address: M,
974
+ address: U,
704
975
  symbol: "S",
705
976
  decimals: 18,
706
977
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_sonic"
@@ -721,7 +992,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
721
992
  name: "scroll",
722
993
  shortname: "scroll",
723
994
  native: {
724
- address: M,
995
+ address: U,
725
996
  symbol: "ETH",
726
997
  decimals: 18,
727
998
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_scroll"
@@ -742,7 +1013,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
742
1013
  name: "Zircuit",
743
1014
  shortname: "zircuit",
744
1015
  native: {
745
- address: M,
1016
+ address: U,
746
1017
  symbol: "ETH",
747
1018
  decimals: 18,
748
1019
  logoUrl: "https://app.1inch.io/assets/images/network-logos/ethereum.svg"
@@ -763,7 +1034,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
763
1034
  name: "flare",
764
1035
  shortname: "flare",
765
1036
  native: {
766
- address: M,
1037
+ address: U,
767
1038
  symbol: "FLR",
768
1039
  decimals: 18,
769
1040
  logoUrl: "https://icons.llamao.fi/icons/chains/rsz_flare?w=48&h=48"
@@ -808,7 +1079,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
808
1079
  name: "Katana",
809
1080
  shortname: "katana",
810
1081
  native: {
811
- address: M,
1082
+ address: U,
812
1083
  symbol: "ETH",
813
1084
  decimals: 18,
814
1085
  logoUrl: "https://katana.network/assets/katana-logo.svg"
@@ -831,7 +1102,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
831
1102
  name: "Bera",
832
1103
  shortname: "bera",
833
1104
  native: {
834
- address: M,
1105
+ address: U,
835
1106
  symbol: "BERA",
836
1107
  decimals: 18,
837
1108
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/128x128/24647.png"
@@ -854,7 +1125,7 @@ const M = "0x0000000000000000000000000000000000000000", H = {
854
1125
  name: "Monad",
855
1126
  shortname: "monad",
856
1127
  native: {
857
- address: M,
1128
+ address: U,
858
1129
  symbol: "MONAD",
859
1130
  decimals: 18,
860
1131
  logoUrl: "https://s2.coinmarketcap.com/static/img/coins/128x128/30495.png"
@@ -871,9 +1142,9 @@ const M = "0x0000000000000000000000000000000000000000", H = {
871
1142
  eip1559: !0
872
1143
  }
873
1144
  };
874
- var Ht = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, De = Math.ceil, J = Math.floor, q = "[BigNumber Error] ", Ve = q + "Number primitive has more than 15 significant digits: ", te = 1e14, S = 14, ke = 9007199254740991, Se = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ce = 1e7, V = 1e9;
875
- function je(e) {
876
- var n, o, h, l = b.prototype = { constructor: b, toString: null, valueOf: null }, A = new b(1), g = 20, x = 4, w = -7, T = 21, B = -1e7, C = 1e7, k = !1, I = 1, P = 0, ue = {
1145
+ var Wt = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Fe = Math.ceil, J = Math.floor, q = "[BigNumber Error] ", Ue = q + "Number primitive has more than 15 significant digits: ", te = 1e14, S = 14, De = 9007199254740991, ke = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ce = 1e7, V = 1e9;
1146
+ function Ge(e) {
1147
+ var n, o, y, l = b.prototype = { constructor: b, toString: null, valueOf: null }, A = new b(1), g = 20, x = 4, w = -7, T = 21, B = -1e7, F = 1e7, k = !1, R = 1, P = 0, ue = {
877
1148
  prefix: "",
878
1149
  groupSize: 3,
879
1150
  secondaryGroupSize: 0,
@@ -889,28 +1160,28 @@ function je(e) {
889
1160
  if (!(p instanceof b)) return new b(t, a);
890
1161
  if (a == null) {
891
1162
  if (t && t._isBigNumber === !0) {
892
- p.s = t.s, !t.c || t.e > C ? p.c = p.e = null : t.e < B ? p.c = [p.e = 0] : (p.e = t.e, p.c = t.c.slice());
1163
+ p.s = t.s, !t.c || t.e > F ? p.c = p.e = null : t.e < B ? p.c = [p.e = 0] : (p.e = t.e, p.c = t.c.slice());
893
1164
  return;
894
1165
  }
895
1166
  if ((r = typeof t == "number") && t * 0 == 0) {
896
1167
  if (p.s = 1 / t < 0 ? (t = -t, -1) : 1, t === ~~t) {
897
1168
  for (c = 0, m = t; m >= 10; m /= 10, c++) ;
898
- c > C ? p.c = p.e = null : (p.e = c, p.c = [t]);
1169
+ c > F ? p.c = p.e = null : (p.e = c, p.c = [t]);
899
1170
  return;
900
1171
  }
901
1172
  f = String(t);
902
1173
  } else {
903
- if (!Ht.test(f = String(t))) return h(p, f, r);
1174
+ if (!Wt.test(f = String(t))) return y(p, f, r);
904
1175
  p.s = f.charCodeAt(0) == 45 ? (f = f.slice(1), -1) : 1;
905
1176
  }
906
1177
  (c = f.indexOf(".")) > -1 && (f = f.replace(".", "")), (m = f.search(/e/i)) > 0 ? (c < 0 && (c = m), c += +f.slice(m + 1), f = f.substring(0, m)) : c < 0 && (c = f.length);
907
1178
  } else {
908
- if (R(a, 2, re.length, "Base"), a == 10 && fe)
1179
+ if (I(a, 2, re.length, "Base"), a == 10 && fe)
909
1180
  return p = new b(t), X(p, g + p.e + 1, x);
910
1181
  if (f = String(t), r = typeof t == "number") {
911
- if (t * 0 != 0) return h(p, f, r, a);
1182
+ if (t * 0 != 0) return y(p, f, r, a);
912
1183
  if (p.s = 1 / t < 0 ? (f = f.slice(1), -1) : 1, b.DEBUG && f.replace(/^0\.0*|\./, "").length > 15)
913
- throw Error(Ve + t);
1184
+ throw Error(Ue + t);
914
1185
  } else
915
1186
  p.s = f.charCodeAt(0) === 45 ? (f = f.slice(1), -1) : 1;
916
1187
  for (s = re.slice(0, a), c = m = 0, d = f.length; m < d; m++)
@@ -924,16 +1195,16 @@ function je(e) {
924
1195
  i = !0, m = -1, c = 0;
925
1196
  continue;
926
1197
  }
927
- return h(p, String(t), r, a);
1198
+ return y(p, String(t), r, a);
928
1199
  }
929
1200
  r = !1, f = o(f, a, 10, p.s), (c = f.indexOf(".")) > -1 ? f = f.replace(".", "") : c = f.length;
930
1201
  }
931
1202
  for (m = 0; f.charCodeAt(m) === 48; m++) ;
932
1203
  for (d = f.length; f.charCodeAt(--d) === 48; ) ;
933
1204
  if (f = f.slice(m, ++d)) {
934
- if (d -= m, r && b.DEBUG && d > 15 && (t > ke || t !== J(t)))
935
- throw Error(Ve + p.s * t);
936
- if ((c = c - m - 1) > C)
1205
+ if (d -= m, r && b.DEBUG && d > 15 && (t > De || t !== J(t)))
1206
+ throw Error(Ue + p.s * t);
1207
+ if ((c = c - m - 1) > F)
937
1208
  p.c = p.e = null;
938
1209
  else if (c < B)
939
1210
  p.c = [p.e = 0];
@@ -950,15 +1221,15 @@ function je(e) {
950
1221
  } else
951
1222
  p.c = [p.e = 0];
952
1223
  }
953
- b.clone = je, b.ROUND_UP = 0, b.ROUND_DOWN = 1, b.ROUND_CEIL = 2, b.ROUND_FLOOR = 3, b.ROUND_HALF_UP = 4, b.ROUND_HALF_DOWN = 5, b.ROUND_HALF_EVEN = 6, b.ROUND_HALF_CEIL = 7, b.ROUND_HALF_FLOOR = 8, b.EUCLID = 9, b.config = b.set = function(t) {
1224
+ b.clone = Ge, b.ROUND_UP = 0, b.ROUND_DOWN = 1, b.ROUND_CEIL = 2, b.ROUND_FLOOR = 3, b.ROUND_HALF_UP = 4, b.ROUND_HALF_DOWN = 5, b.ROUND_HALF_EVEN = 6, b.ROUND_HALF_CEIL = 7, b.ROUND_HALF_FLOOR = 8, b.EUCLID = 9, b.config = b.set = function(t) {
954
1225
  var a, s;
955
1226
  if (t != null)
956
1227
  if (typeof t == "object") {
957
- if (t.hasOwnProperty(a = "DECIMAL_PLACES") && (s = t[a], R(s, 0, V, a), g = s), t.hasOwnProperty(a = "ROUNDING_MODE") && (s = t[a], R(s, 0, 8, a), x = s), t.hasOwnProperty(a = "EXPONENTIAL_AT") && (s = t[a], s && s.pop ? (R(s[0], -V, 0, a), R(s[1], 0, V, a), w = s[0], T = s[1]) : (R(s, -V, V, a), w = -(T = s < 0 ? -s : s))), t.hasOwnProperty(a = "RANGE"))
1228
+ if (t.hasOwnProperty(a = "DECIMAL_PLACES") && (s = t[a], I(s, 0, V, a), g = s), t.hasOwnProperty(a = "ROUNDING_MODE") && (s = t[a], I(s, 0, 8, a), x = s), t.hasOwnProperty(a = "EXPONENTIAL_AT") && (s = t[a], s && s.pop ? (I(s[0], -V, 0, a), I(s[1], 0, V, a), w = s[0], T = s[1]) : (I(s, -V, V, a), w = -(T = s < 0 ? -s : s))), t.hasOwnProperty(a = "RANGE"))
958
1229
  if (s = t[a], s && s.pop)
959
- R(s[0], -V, -1, a), R(s[1], 1, V, a), B = s[0], C = s[1];
960
- else if (R(s, -V, V, a), s)
961
- B = -(C = s < 0 ? -s : s);
1230
+ I(s[0], -V, -1, a), I(s[1], 1, V, a), B = s[0], F = s[1];
1231
+ else if (I(s, -V, V, a), s)
1232
+ B = -(F = s < 0 ? -s : s);
962
1233
  else
963
1234
  throw Error(q + a + " cannot be zero: " + s);
964
1235
  if (t.hasOwnProperty(a = "CRYPTO"))
@@ -972,7 +1243,7 @@ function je(e) {
972
1243
  k = s;
973
1244
  else
974
1245
  throw Error(q + a + " not true or false: " + s);
975
- if (t.hasOwnProperty(a = "MODULO_MODE") && (s = t[a], R(s, 0, 9, a), I = s), t.hasOwnProperty(a = "POW_PRECISION") && (s = t[a], R(s, 0, V, a), P = s), t.hasOwnProperty(a = "FORMAT"))
1246
+ if (t.hasOwnProperty(a = "MODULO_MODE") && (s = t[a], I(s, 0, 9, a), R = s), t.hasOwnProperty(a = "POW_PRECISION") && (s = t[a], I(s, 0, V, a), P = s), t.hasOwnProperty(a = "FORMAT"))
976
1247
  if (s = t[a], typeof s == "object") ue = s;
977
1248
  else throw Error(q + a + " not an object: " + s);
978
1249
  if (t.hasOwnProperty(a = "ALPHABET"))
@@ -986,9 +1257,9 @@ function je(e) {
986
1257
  DECIMAL_PLACES: g,
987
1258
  ROUNDING_MODE: x,
988
1259
  EXPONENTIAL_AT: [w, T],
989
- RANGE: [B, C],
1260
+ RANGE: [B, F],
990
1261
  CRYPTO: k,
991
- MODULO_MODE: I,
1262
+ MODULO_MODE: R,
992
1263
  POW_PRECISION: P,
993
1264
  FORMAT: ue,
994
1265
  ALPHABET: re
@@ -1024,7 +1295,7 @@ function je(e) {
1024
1295
  };
1025
1296
  return function(s) {
1026
1297
  var u, i, c, m, r, d = 0, f = [], p = new b(A);
1027
- if (s == null ? s = g : R(s, 0, V), m = De(s / S), k)
1298
+ if (s == null ? s = g : I(s, 0, V), m = Fe(s / S), k)
1028
1299
  if (crypto.getRandomValues) {
1029
1300
  for (u = crypto.getRandomValues(new Uint32Array(m *= 2)); d < m; )
1030
1301
  r = u[d] * 131072 + (u[d + 1] >>> 11), r >= 9e15 ? (i = crypto.getRandomValues(new Uint32Array(2)), u[d] = i[0], u[d + 1] = i[1]) : (f.push(r % 1e14), d += 2);
@@ -1038,7 +1309,7 @@ function je(e) {
1038
1309
  if (!k)
1039
1310
  for (; d < m; )
1040
1311
  r = a(), r < 9e15 && (f[d++] = r % 1e14);
1041
- for (m = f[--d], s %= S, m && s && (r = Se[S - s], f[d] = J(m / r) * r); f[d] === 0; f.pop(), d--) ;
1312
+ for (m = f[--d], s %= S, m && s && (r = ke[S - s], f[d] = J(m / r) * r); f[d] === 0; f.pop(), d--) ;
1042
1313
  if (d < 0)
1043
1314
  f = [c = 0];
1044
1315
  else {
@@ -1062,18 +1333,18 @@ function je(e) {
1062
1333
  return r.reverse();
1063
1334
  }
1064
1335
  return function(s, u, i, c, m) {
1065
- var r, d, f, p, y, F, D, v, N = s.indexOf("."), L = g, O = x;
1066
- for (N >= 0 && (p = P, P = 0, s = s.replace(".", ""), v = new b(u), F = v.pow(s.length - N), P = p, v.c = a(
1067
- oe(Y(F.c), F.e, "0"),
1336
+ var r, d, f, p, h, C, D, v, N = s.indexOf("."), L = g, O = x;
1337
+ for (N >= 0 && (p = P, P = 0, s = s.replace(".", ""), v = new b(u), C = v.pow(s.length - N), P = p, v.c = a(
1338
+ oe(Y(C.c), C.e, "0"),
1068
1339
  10,
1069
1340
  i,
1070
1341
  t
1071
1342
  ), v.e = v.c.length), D = a(s, u, i, m ? (r = re, t) : (r = t, re)), f = p = D.length; D[--p] == 0; D.pop()) ;
1072
1343
  if (!D[0]) return r.charAt(0);
1073
- if (N < 0 ? --f : (F.c = D, F.e = f, F.s = c, F = n(F, v, L, O, i), D = F.c, y = F.r, f = F.e), d = f + L + 1, N = D[d], p = i / 2, y = y || d < 0 || D[d + 1] != null, y = O < 4 ? (N != null || y) && (O == 0 || O == (F.s < 0 ? 3 : 2)) : N > p || N == p && (O == 4 || y || O == 6 && D[d - 1] & 1 || O == (F.s < 0 ? 8 : 7)), d < 1 || !D[0])
1074
- s = y ? oe(r.charAt(1), -L, r.charAt(0)) : r.charAt(0);
1344
+ if (N < 0 ? --f : (C.c = D, C.e = f, C.s = c, C = n(C, v, L, O, i), D = C.c, h = C.r, f = C.e), d = f + L + 1, N = D[d], p = i / 2, h = h || d < 0 || D[d + 1] != null, h = O < 4 ? (N != null || h) && (O == 0 || O == (C.s < 0 ? 3 : 2)) : N > p || N == p && (O == 4 || h || O == 6 && D[d - 1] & 1 || O == (C.s < 0 ? 8 : 7)), d < 1 || !D[0])
1345
+ s = h ? oe(r.charAt(1), -L, r.charAt(0)) : r.charAt(0);
1075
1346
  else {
1076
- if (D.length = d, y)
1347
+ if (D.length = d, h)
1077
1348
  for (--i; ++D[--d] > i; )
1078
1349
  D[d] = 0, d || (++f, D = [1].concat(D));
1079
1350
  for (p = D.length; !D[--p]; ) ;
@@ -1084,9 +1355,9 @@ function je(e) {
1084
1355
  };
1085
1356
  })(), n = /* @__PURE__ */ (function() {
1086
1357
  function t(u, i, c) {
1087
- var m, r, d, f, p = 0, y = u.length, F = i % ce, D = i / ce | 0;
1088
- for (u = u.slice(); y--; )
1089
- d = u[y] % ce, f = u[y] / ce | 0, m = D * d + f * F, r = F * d + m % ce * ce + p, p = (r / c | 0) + (m / ce | 0) + D * f, u[y] = r % c;
1358
+ var m, r, d, f, p = 0, h = u.length, C = i % ce, D = i / ce | 0;
1359
+ for (u = u.slice(); h--; )
1360
+ d = u[h] % ce, f = u[h] / ce | 0, m = D * d + f * C, r = C * d + m % ce * ce + p, p = (r / c | 0) + (m / ce | 0) + D * f, u[h] = r % c;
1090
1361
  return p && (u = [p].concat(u)), u;
1091
1362
  }
1092
1363
  function a(u, i, c, m) {
@@ -1107,47 +1378,47 @@ function je(e) {
1107
1378
  for (; !u[0] && u.length > 1; u.splice(0, 1)) ;
1108
1379
  }
1109
1380
  return function(u, i, c, m, r) {
1110
- var d, f, p, y, F, D, v, N, L, O, _, W, ye, Te, Fe, ae, me, Q = u.s == i.s ? 1 : -1, z = u.c, U = i.c;
1111
- if (!z || !z[0] || !U || !U[0])
1381
+ var d, f, p, h, C, D, v, N, L, O, _, W, he, Te, Ce, ae, me, Q = u.s == i.s ? 1 : -1, z = u.c, M = i.c;
1382
+ if (!z || !z[0] || !M || !M[0])
1112
1383
  return new b(
1113
1384
  // Return NaN if either NaN, or both Infinity or 0.
1114
- !u.s || !i.s || (z ? U && z[0] == U[0] : !U) ? NaN : (
1385
+ !u.s || !i.s || (z ? M && z[0] == M[0] : !M) ? NaN : (
1115
1386
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
1116
- z && z[0] == 0 || !U ? Q * 0 : Q / 0
1387
+ z && z[0] == 0 || !M ? Q * 0 : Q / 0
1117
1388
  )
1118
1389
  );
1119
- for (N = new b(Q), L = N.c = [], f = u.e - i.e, Q = c + f + 1, r || (r = te, f = ee(u.e / S) - ee(i.e / S), Q = Q / S | 0), p = 0; U[p] == (z[p] || 0); p++) ;
1120
- if (U[p] > (z[p] || 0) && f--, Q < 0)
1121
- L.push(1), y = !0;
1390
+ for (N = new b(Q), L = N.c = [], f = u.e - i.e, Q = c + f + 1, r || (r = te, f = ee(u.e / S) - ee(i.e / S), Q = Q / S | 0), p = 0; M[p] == (z[p] || 0); p++) ;
1391
+ if (M[p] > (z[p] || 0) && f--, Q < 0)
1392
+ L.push(1), h = !0;
1122
1393
  else {
1123
- for (Te = z.length, ae = U.length, p = 0, Q += 2, F = J(r / (U[0] + 1)), F > 1 && (U = t(U, F, r), z = t(z, F, r), ae = U.length, Te = z.length), ye = ae, O = z.slice(0, ae), _ = O.length; _ < ae; O[_++] = 0) ;
1124
- me = U.slice(), me = [0].concat(me), Fe = U[0], U[1] >= r / 2 && Fe++;
1394
+ for (Te = z.length, ae = M.length, p = 0, Q += 2, C = J(r / (M[0] + 1)), C > 1 && (M = t(M, C, r), z = t(z, C, r), ae = M.length, Te = z.length), he = ae, O = z.slice(0, ae), _ = O.length; _ < ae; O[_++] = 0) ;
1395
+ me = M.slice(), me = [0].concat(me), Ce = M[0], M[1] >= r / 2 && Ce++;
1125
1396
  do {
1126
- if (F = 0, d = a(U, O, ae, _), d < 0) {
1127
- if (W = O[0], ae != _ && (W = W * r + (O[1] || 0)), F = J(W / Fe), F > 1)
1128
- for (F >= r && (F = r - 1), D = t(U, F, r), v = D.length, _ = O.length; a(D, O, v, _) == 1; )
1129
- F--, s(D, ae < v ? me : U, v, r), v = D.length, d = 1;
1397
+ if (C = 0, d = a(M, O, ae, _), d < 0) {
1398
+ if (W = O[0], ae != _ && (W = W * r + (O[1] || 0)), C = J(W / Ce), C > 1)
1399
+ for (C >= r && (C = r - 1), D = t(M, C, r), v = D.length, _ = O.length; a(D, O, v, _) == 1; )
1400
+ C--, s(D, ae < v ? me : M, v, r), v = D.length, d = 1;
1130
1401
  else
1131
- F == 0 && (d = F = 1), D = U.slice(), v = D.length;
1402
+ C == 0 && (d = C = 1), D = M.slice(), v = D.length;
1132
1403
  if (v < _ && (D = [0].concat(D)), s(O, D, _, r), _ = O.length, d == -1)
1133
- for (; a(U, O, ae, _) < 1; )
1134
- F++, s(O, ae < _ ? me : U, _, r), _ = O.length;
1135
- } else d === 0 && (F++, O = [0]);
1136
- L[p++] = F, O[0] ? O[_++] = z[ye] || 0 : (O = [z[ye]], _ = 1);
1137
- } while ((ye++ < Te || O[0] != null) && Q--);
1138
- y = O[0] != null, L[0] || L.splice(0, 1);
1404
+ for (; a(M, O, ae, _) < 1; )
1405
+ C++, s(O, ae < _ ? me : M, _, r), _ = O.length;
1406
+ } else d === 0 && (C++, O = [0]);
1407
+ L[p++] = C, O[0] ? O[_++] = z[he] || 0 : (O = [z[he]], _ = 1);
1408
+ } while ((he++ < Te || O[0] != null) && Q--);
1409
+ h = O[0] != null, L[0] || L.splice(0, 1);
1139
1410
  }
1140
1411
  if (r == te) {
1141
1412
  for (p = 1, Q = L[0]; Q >= 10; Q /= 10, p++) ;
1142
- X(N, c + (N.e = p + f * S - 1) + 1, m, y);
1413
+ X(N, c + (N.e = p + f * S - 1) + 1, m, h);
1143
1414
  } else
1144
- N.e = f, N.r = +y;
1415
+ N.e = f, N.r = +h;
1145
1416
  return N;
1146
1417
  };
1147
1418
  })();
1148
1419
  function xe(t, a, s, u) {
1149
1420
  var i, c, m, r, d;
1150
- if (s == null ? s = x : R(s, 0, 8), !t.c) return t.toString();
1421
+ if (s == null ? s = x : I(s, 0, 8), !t.c) return t.toString();
1151
1422
  if (i = t.c[0], m = t.e, a == null)
1152
1423
  d = Y(t.c), d = u == 1 || u == 2 && (m <= w || m >= T) ? ge(d, m) : oe(d, m, "0");
1153
1424
  else if (t = X(new b(t), a, s), c = t.e, d = Y(t.c), r = d.length, u == 1 || u == 2 && (a <= c || c <= w)) {
@@ -1167,17 +1438,17 @@ function je(e) {
1167
1438
  function we(t, a, s) {
1168
1439
  for (var u = 1, i = a.length; !a[--i]; a.pop()) ;
1169
1440
  for (i = a[0]; i >= 10; i /= 10, u++) ;
1170
- return (s = u + s * S - 1) > C ? t.c = t.e = null : s < B ? t.c = [t.e = 0] : (t.e = s, t.c = a), t;
1441
+ return (s = u + s * S - 1) > F ? t.c = t.e = null : s < B ? t.c = [t.e = 0] : (t.e = s, t.c = a), t;
1171
1442
  }
1172
- h = /* @__PURE__ */ (function() {
1443
+ y = /* @__PURE__ */ (function() {
1173
1444
  var t = /^(-?)0([xbo])(?=\w[\w.]*$)/i, a = /^([^.]+)\.$/, s = /^\.([^.]+)$/, u = /^-?(Infinity|NaN)$/, i = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
1174
1445
  return function(c, m, r, d) {
1175
1446
  var f, p = r ? m : m.replace(i, "");
1176
1447
  if (u.test(p))
1177
1448
  c.s = isNaN(p) ? null : p < 0 ? -1 : 1;
1178
1449
  else {
1179
- if (!r && (p = p.replace(t, function(y, F, D) {
1180
- return f = (D = D.toLowerCase()) == "x" ? 16 : D == "b" ? 2 : 8, !d || d == f ? F : y;
1450
+ if (!r && (p = p.replace(t, function(h, C, D) {
1451
+ return f = (D = D.toLowerCase()) == "x" ? 16 : D == "b" ? 2 : 8, !d || d == f ? C : h;
1181
1452
  }), d && (f = d, p = p.replace(a, "$1").replace(s, "0.$1")), m != p))
1182
1453
  return new b(p, f);
1183
1454
  if (b.DEBUG)
@@ -1188,42 +1459,42 @@ function je(e) {
1188
1459
  };
1189
1460
  })();
1190
1461
  function X(t, a, s, u) {
1191
- var i, c, m, r, d, f, p, y = t.c, F = Se;
1192
- if (y) {
1462
+ var i, c, m, r, d, f, p, h = t.c, C = ke;
1463
+ if (h) {
1193
1464
  e: {
1194
- for (i = 1, r = y[0]; r >= 10; r /= 10, i++) ;
1465
+ for (i = 1, r = h[0]; r >= 10; r /= 10, i++) ;
1195
1466
  if (c = a - i, c < 0)
1196
- c += S, m = a, d = y[f = 0], p = J(d / F[i - m - 1] % 10);
1197
- else if (f = De((c + 1) / S), f >= y.length)
1467
+ c += S, m = a, d = h[f = 0], p = J(d / C[i - m - 1] % 10);
1468
+ else if (f = Fe((c + 1) / S), f >= h.length)
1198
1469
  if (u) {
1199
- for (; y.length <= f; y.push(0)) ;
1470
+ for (; h.length <= f; h.push(0)) ;
1200
1471
  d = p = 0, i = 1, c %= S, m = c - S + 1;
1201
1472
  } else
1202
1473
  break e;
1203
1474
  else {
1204
- for (d = r = y[f], i = 1; r >= 10; r /= 10, i++) ;
1205
- c %= S, m = c - S + i, p = m < 0 ? 0 : J(d / F[i - m - 1] % 10);
1475
+ for (d = r = h[f], i = 1; r >= 10; r /= 10, i++) ;
1476
+ c %= S, m = c - S + i, p = m < 0 ? 0 : J(d / C[i - m - 1] % 10);
1206
1477
  }
1207
1478
  if (u = u || a < 0 || // Are there any non-zero digits after the rounding digit?
1208
1479
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
1209
1480
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
1210
- y[f + 1] != null || (m < 0 ? d : d % F[i - m - 1]), u = s < 4 ? (p || u) && (s == 0 || s == (t.s < 0 ? 3 : 2)) : p > 5 || p == 5 && (s == 4 || u || s == 6 && // Check whether the digit to the left of the rounding digit is odd.
1211
- (c > 0 ? m > 0 ? d / F[i - m] : 0 : y[f - 1]) % 10 & 1 || s == (t.s < 0 ? 8 : 7)), a < 1 || !y[0])
1212
- return y.length = 0, u ? (a -= t.e + 1, y[0] = F[(S - a % S) % S], t.e = -a || 0) : y[0] = t.e = 0, t;
1213
- if (c == 0 ? (y.length = f, r = 1, f--) : (y.length = f + 1, r = F[S - c], y[f] = m > 0 ? J(d / F[i - m] % F[m]) * r : 0), u)
1481
+ h[f + 1] != null || (m < 0 ? d : d % C[i - m - 1]), u = s < 4 ? (p || u) && (s == 0 || s == (t.s < 0 ? 3 : 2)) : p > 5 || p == 5 && (s == 4 || u || s == 6 && // Check whether the digit to the left of the rounding digit is odd.
1482
+ (c > 0 ? m > 0 ? d / C[i - m] : 0 : h[f - 1]) % 10 & 1 || s == (t.s < 0 ? 8 : 7)), a < 1 || !h[0])
1483
+ return h.length = 0, u ? (a -= t.e + 1, h[0] = C[(S - a % S) % S], t.e = -a || 0) : h[0] = t.e = 0, t;
1484
+ if (c == 0 ? (h.length = f, r = 1, f--) : (h.length = f + 1, r = C[S - c], h[f] = m > 0 ? J(d / C[i - m] % C[m]) * r : 0), u)
1214
1485
  for (; ; )
1215
1486
  if (f == 0) {
1216
- for (c = 1, m = y[0]; m >= 10; m /= 10, c++) ;
1217
- for (m = y[0] += r, r = 1; m >= 10; m /= 10, r++) ;
1218
- c != r && (t.e++, y[0] == te && (y[0] = 1));
1487
+ for (c = 1, m = h[0]; m >= 10; m /= 10, c++) ;
1488
+ for (m = h[0] += r, r = 1; m >= 10; m /= 10, r++) ;
1489
+ c != r && (t.e++, h[0] == te && (h[0] = 1));
1219
1490
  break;
1220
1491
  } else {
1221
- if (y[f] += r, y[f] != te) break;
1222
- y[f--] = 0, r = 1;
1492
+ if (h[f] += r, h[f] != te) break;
1493
+ h[f--] = 0, r = 1;
1223
1494
  }
1224
- for (c = y.length; y[--c] === 0; y.pop()) ;
1495
+ for (c = h.length; h[--c] === 0; h.pop()) ;
1225
1496
  }
1226
- t.e > C ? t.c = t.e = null : t.e < B && (t.c = [t.e = 0]);
1497
+ t.e > F ? t.c = t.e = null : t.e < B && (t.c = [t.e = 0]);
1227
1498
  }
1228
1499
  return t;
1229
1500
  }
@@ -1239,7 +1510,7 @@ function je(e) {
1239
1510
  }, l.decimalPlaces = l.dp = function(t, a) {
1240
1511
  var s, u, i, c = this;
1241
1512
  if (t != null)
1242
- return R(t, 0, V), a == null ? a = x : R(a, 0, 8), X(new b(c), t + c.e + 1, a);
1513
+ return I(t, 0, V), a == null ? a = x : I(a, 0, 8), X(new b(c), t + c.e + 1, a);
1243
1514
  if (!(s = c.c)) return null;
1244
1515
  if (u = ((i = s.length - 1) - ee(this.e / S)) * S, i = s[i]) for (; i % 10 == 0; i /= 10, u--) ;
1245
1516
  return u < 0 && (u = 0), u;
@@ -1248,22 +1519,22 @@ function je(e) {
1248
1519
  }, l.dividedToIntegerBy = l.idiv = function(t, a) {
1249
1520
  return n(this, new b(t, a), 0, 1);
1250
1521
  }, l.exponentiatedBy = l.pow = function(t, a) {
1251
- var s, u, i, c, m, r, d, f, p, y = this;
1522
+ var s, u, i, c, m, r, d, f, p, h = this;
1252
1523
  if (t = new b(t), t.c && !t.isInteger())
1253
1524
  throw Error(q + "Exponent not an integer: " + ie(t));
1254
- if (a != null && (a = new b(a)), r = t.e > 14, !y.c || !y.c[0] || y.c[0] == 1 && !y.e && y.c.length == 1 || !t.c || !t.c[0])
1255
- return p = new b(Math.pow(+ie(y), r ? t.s * (2 - be(t)) : +ie(t))), a ? p.mod(a) : p;
1525
+ 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])
1526
+ return p = new b(Math.pow(+ie(h), r ? t.s * (2 - be(t)) : +ie(t))), a ? p.mod(a) : p;
1256
1527
  if (d = t.s < 0, a) {
1257
1528
  if (a.c ? !a.c[0] : !a.s) return new b(NaN);
1258
- u = !d && y.isInteger() && a.isInteger(), u && (y = y.mod(a));
1529
+ u = !d && h.isInteger() && a.isInteger(), u && (h = h.mod(a));
1259
1530
  } else {
1260
- if (t.e > 9 && (y.e > 0 || y.e < -1 || (y.e == 0 ? y.c[0] > 1 || r && y.c[1] >= 24e7 : y.c[0] < 8e13 || r && y.c[0] <= 9999975e7)))
1261
- return c = y.s < 0 && be(t) ? -0 : 0, y.e > -1 && (c = 1 / c), new b(d ? 1 / c : c);
1262
- P && (c = De(P / S + 2));
1531
+ 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)))
1532
+ return c = h.s < 0 && be(t) ? -0 : 0, h.e > -1 && (c = 1 / c), new b(d ? 1 / c : c);
1533
+ P && (c = Fe(P / S + 2));
1263
1534
  }
1264
1535
  for (r ? (s = new b(0.5), d && (t.s = 1), f = be(t)) : (i = Math.abs(+ie(t)), f = i % 2), p = new b(A); ; ) {
1265
1536
  if (f) {
1266
- if (p = p.times(y), !p.c) break;
1537
+ if (p = p.times(h), !p.c) break;
1267
1538
  c ? p.c.length > c && (p.c.length = c) : u && (p = p.mod(a));
1268
1539
  }
1269
1540
  if (i) {
@@ -1275,12 +1546,12 @@ function je(e) {
1275
1546
  if (i = +ie(t), i === 0) break;
1276
1547
  f = i % 2;
1277
1548
  }
1278
- y = y.times(y), c ? y.c && y.c.length > c && (y.c.length = c) : u && (y = y.mod(a));
1549
+ h = h.times(h), c ? h.c && h.c.length > c && (h.c.length = c) : u && (h = h.mod(a));
1279
1550
  }
1280
1551
  return u ? p : (d && (p = A.div(p)), a ? p.mod(a) : c ? X(p, P, x, m) : p);
1281
1552
  }, l.integerValue = function(t) {
1282
1553
  var a = new b(this);
1283
- return t == null ? t = x : R(t, 0, 8), X(a, a.e + 1, t);
1554
+ return t == null ? t = x : I(t, 0, 8), X(a, a.e + 1, t);
1284
1555
  }, l.isEqualTo = l.eq = function(t, a) {
1285
1556
  return le(this, new b(t, a)) === 0;
1286
1557
  }, l.isFinite = function() {
@@ -1308,45 +1579,45 @@ function je(e) {
1308
1579
  if (t = new b(t, a), a = t.s, !r || !a) return new b(NaN);
1309
1580
  if (r != a)
1310
1581
  return t.s = -a, m.plus(t);
1311
- var d = m.e / S, f = t.e / S, p = m.c, y = t.c;
1582
+ var d = m.e / S, f = t.e / S, p = m.c, h = t.c;
1312
1583
  if (!d || !f) {
1313
- if (!p || !y) return p ? (t.s = -a, t) : new b(y ? m : NaN);
1314
- if (!p[0] || !y[0])
1315
- return y[0] ? (t.s = -a, t) : new b(p[0] ? m : (
1584
+ if (!p || !h) return p ? (t.s = -a, t) : new b(h ? m : NaN);
1585
+ if (!p[0] || !h[0])
1586
+ return h[0] ? (t.s = -a, t) : new b(p[0] ? m : (
1316
1587
  // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
1317
1588
  x == 3 ? -0 : 0
1318
1589
  ));
1319
1590
  }
1320
1591
  if (d = ee(d), f = ee(f), p = p.slice(), r = d - f) {
1321
- for ((c = r < 0) ? (r = -r, i = p) : (f = d, i = y), i.reverse(), a = r; a--; i.push(0)) ;
1592
+ for ((c = r < 0) ? (r = -r, i = p) : (f = d, i = h), i.reverse(), a = r; a--; i.push(0)) ;
1322
1593
  i.reverse();
1323
1594
  } else
1324
- for (u = (c = (r = p.length) < (a = y.length)) ? r : a, r = a = 0; a < u; a++)
1325
- if (p[a] != y[a]) {
1326
- c = p[a] < y[a];
1595
+ for (u = (c = (r = p.length) < (a = h.length)) ? r : a, r = a = 0; a < u; a++)
1596
+ if (p[a] != h[a]) {
1597
+ c = p[a] < h[a];
1327
1598
  break;
1328
1599
  }
1329
- if (c && (i = p, p = y, y = i, t.s = -t.s), a = (u = y.length) - (s = p.length), a > 0) for (; a--; p[s++] = 0) ;
1600
+ if (c && (i = p, p = h, h = i, t.s = -t.s), a = (u = h.length) - (s = p.length), a > 0) for (; a--; p[s++] = 0) ;
1330
1601
  for (a = te - 1; u > r; ) {
1331
- if (p[--u] < y[u]) {
1602
+ if (p[--u] < h[u]) {
1332
1603
  for (s = u; s && !p[--s]; p[s] = a) ;
1333
1604
  --p[s], p[u] += te;
1334
1605
  }
1335
- p[u] -= y[u];
1606
+ p[u] -= h[u];
1336
1607
  }
1337
1608
  for (; p[0] == 0; p.splice(0, 1), --f) ;
1338
1609
  return p[0] ? we(t, p, f) : (t.s = x == 3 ? -1 : 1, t.c = [t.e = 0], t);
1339
1610
  }, l.modulo = l.mod = function(t, a) {
1340
1611
  var s, u, i = this;
1341
- return t = new b(t, a), !i.c || !t.s || t.c && !t.c[0] ? new b(NaN) : !t.c || i.c && !i.c[0] ? new b(i) : (I == 9 ? (u = t.s, t.s = 1, s = n(i, t, 0, 3), t.s = u, s.s *= u) : s = n(i, t, 0, I), t = i.minus(s.times(t)), !t.c[0] && I == 1 && (t.s = i.s), t);
1612
+ return t = new b(t, a), !i.c || !t.s || t.c && !t.c[0] ? new b(NaN) : !t.c || i.c && !i.c[0] ? new b(i) : (R == 9 ? (u = t.s, t.s = 1, s = n(i, t, 0, 3), t.s = u, s.s *= u) : s = n(i, t, 0, R), t = i.minus(s.times(t)), !t.c[0] && R == 1 && (t.s = i.s), t);
1342
1613
  }, l.multipliedBy = l.times = function(t, a) {
1343
- var s, u, i, c, m, r, d, f, p, y, F, D, v, N, L, O = this, _ = O.c, W = (t = new b(t, a)).c;
1614
+ var s, u, i, c, m, r, d, f, p, h, C, D, v, N, L, O = this, _ = O.c, W = (t = new b(t, a)).c;
1344
1615
  if (!_ || !W || !_[0] || !W[0])
1345
1616
  return !O.s || !t.s || _ && !_[0] && !W || W && !W[0] && !_ ? t.c = t.e = t.s = null : (t.s *= O.s, !_ || !W ? t.c = t.e = null : (t.c = [0], t.e = 0)), t;
1346
- for (u = ee(O.e / S) + ee(t.e / S), t.s *= O.s, d = _.length, y = W.length, d < y && (v = _, _ = W, W = v, i = d, d = y, y = i), i = d + y, v = []; i--; v.push(0)) ;
1347
- for (N = te, L = ce, i = y; --i >= 0; ) {
1348
- for (s = 0, F = W[i] % L, D = W[i] / L | 0, m = d, c = i + m; c > i; )
1349
- f = _[--m] % L, p = _[m] / L | 0, r = D * f + p * F, f = F * f + r % L * L + v[c] + s, s = (f / N | 0) + (r / L | 0) + D * p, v[c--] = f % N;
1617
+ for (u = ee(O.e / S) + ee(t.e / S), t.s *= O.s, d = _.length, h = W.length, d < h && (v = _, _ = W, W = v, i = d, d = h, h = i), i = d + h, v = []; i--; v.push(0)) ;
1618
+ for (N = te, L = ce, i = h; --i >= 0; ) {
1619
+ for (s = 0, C = W[i] % L, D = W[i] / L | 0, m = d, c = i + m; c > i; )
1620
+ f = _[--m] % L, p = _[m] / L | 0, r = D * f + p * C, f = C * f + r % L * L + v[c] + s, s = (f / N | 0) + (r / L | 0) + D * p, v[c--] = f % N;
1350
1621
  v[c] = s;
1351
1622
  }
1352
1623
  return s ? ++u : v.splice(0, 1), we(t, v, u);
@@ -1373,7 +1644,7 @@ function je(e) {
1373
1644
  }, l.precision = l.sd = function(t, a) {
1374
1645
  var s, u, i, c = this;
1375
1646
  if (t != null && t !== !!t)
1376
- return R(t, 1, V), a == null ? a = x : R(a, 0, 8), X(new b(c), t, a);
1647
+ return I(t, 1, V), a == null ? a = x : I(a, 0, 8), X(new b(c), t, a);
1377
1648
  if (!(s = c.c)) return null;
1378
1649
  if (i = s.length - 1, u = i * S + 1, i = s[i]) {
1379
1650
  for (; i % 10 == 0; i /= 10, u--) ;
@@ -1381,7 +1652,7 @@ function je(e) {
1381
1652
  }
1382
1653
  return t && c.e + 1 > u && (u = c.e + 1), u;
1383
1654
  }, l.shiftedBy = function(t) {
1384
- return R(t, -ke, ke), this.times("1e" + t);
1655
+ return I(t, -De, De), this.times("1e" + t);
1385
1656
  }, l.squareRoot = l.sqrt = function() {
1386
1657
  var t, a, s, u, i, c = this, m = c.c, r = c.s, d = c.e, f = g + 4, p = new b("0.5");
1387
1658
  if (r !== 1 || !m || !m[0])
@@ -1402,9 +1673,9 @@ function je(e) {
1402
1673
  }
1403
1674
  return X(s, s.e + g + 1, x, t);
1404
1675
  }, l.toExponential = function(t, a) {
1405
- return t != null && (R(t, 0, V), t++), xe(this, t, a, 1);
1676
+ return t != null && (I(t, 0, V), t++), xe(this, t, a, 1);
1406
1677
  }, l.toFixed = function(t, a) {
1407
- return t != null && (R(t, 0, V), t = t + this.e + 1), xe(this, t, a);
1678
+ return t != null && (I(t, 0, V), t = t + this.e + 1), xe(this, t, a);
1408
1679
  }, l.toFormat = function(t, a, s) {
1409
1680
  var u, i = this;
1410
1681
  if (s == null)
@@ -1412,34 +1683,34 @@ function je(e) {
1412
1683
  else if (typeof s != "object")
1413
1684
  throw Error(q + "Argument not an object: " + s);
1414
1685
  if (u = i.toFixed(t, a), i.c) {
1415
- var c, m = u.split("."), r = +s.groupSize, d = +s.secondaryGroupSize, f = s.groupSeparator || "", p = m[0], y = m[1], F = i.s < 0, D = F ? p.slice(1) : p, v = D.length;
1686
+ var c, m = u.split("."), r = +s.groupSize, d = +s.secondaryGroupSize, f = s.groupSeparator || "", p = m[0], h = m[1], C = i.s < 0, D = C ? p.slice(1) : p, v = D.length;
1416
1687
  if (d && (c = r, r = d, d = c, v -= c), r > 0 && v > 0) {
1417
1688
  for (c = v % r || r, p = D.substr(0, c); c < v; c += r) p += f + D.substr(c, r);
1418
- d > 0 && (p += f + D.slice(c)), F && (p = "-" + p);
1689
+ d > 0 && (p += f + D.slice(c)), C && (p = "-" + p);
1419
1690
  }
1420
- u = y ? p + (s.decimalSeparator || "") + ((d = +s.fractionGroupSize) ? y.replace(
1691
+ u = h ? p + (s.decimalSeparator || "") + ((d = +s.fractionGroupSize) ? h.replace(
1421
1692
  new RegExp("\\d{" + d + "}\\B", "g"),
1422
1693
  "$&" + (s.fractionGroupSeparator || "")
1423
- ) : y) : p;
1694
+ ) : h) : p;
1424
1695
  }
1425
1696
  return (s.prefix || "") + u + (s.suffix || "");
1426
1697
  }, l.toFraction = function(t) {
1427
- var a, s, u, i, c, m, r, d, f, p, y, F, D = this, v = D.c;
1698
+ var a, s, u, i, c, m, r, d, f, p, h, C, D = this, v = D.c;
1428
1699
  if (t != null && (r = new b(t), !r.isInteger() && (r.c || r.s !== 1) || r.lt(A)))
1429
1700
  throw Error(q + "Argument " + (r.isInteger() ? "out of range: " : "not an integer: ") + ie(r));
1430
1701
  if (!v) return new b(D);
1431
- for (a = new b(A), f = s = new b(A), u = d = new b(A), F = Y(v), c = a.e = F.length - D.e - 1, a.c[0] = Se[(m = c % S) < 0 ? S + m : m], t = !t || r.comparedTo(a) > 0 ? c > 0 ? a : f : r, m = C, C = 1 / 0, r = new b(F), d.c[0] = 0; p = n(r, a, 0, 1), i = s.plus(p.times(u)), i.comparedTo(t) != 1; )
1702
+ for (a = new b(A), f = s = new b(A), u = d = new b(A), C = Y(v), c = a.e = C.length - D.e - 1, a.c[0] = ke[(m = c % S) < 0 ? S + m : m], t = !t || r.comparedTo(a) > 0 ? c > 0 ? a : f : r, m = F, F = 1 / 0, r = new b(C), d.c[0] = 0; p = n(r, a, 0, 1), i = s.plus(p.times(u)), i.comparedTo(t) != 1; )
1432
1703
  s = u, u = i, f = d.plus(p.times(i = f)), d = i, a = r.minus(p.times(i = a)), r = i;
1433
- return i = n(t.minus(s), u, 0, 1), d = d.plus(i.times(f)), s = s.plus(i.times(u)), d.s = f.s = D.s, c = c * 2, y = n(f, u, c, x).minus(D).abs().comparedTo(
1704
+ return i = n(t.minus(s), u, 0, 1), d = d.plus(i.times(f)), s = s.plus(i.times(u)), d.s = f.s = D.s, c = c * 2, h = n(f, u, c, x).minus(D).abs().comparedTo(
1434
1705
  n(d, s, c, x).minus(D).abs()
1435
- ) < 1 ? [f, u] : [d, s], C = m, y;
1706
+ ) < 1 ? [f, u] : [d, s], F = m, h;
1436
1707
  }, l.toNumber = function() {
1437
1708
  return +ie(this);
1438
1709
  }, l.toPrecision = function(t, a) {
1439
- return t != null && R(t, 1, V), xe(this, t, a, 2);
1710
+ return t != null && I(t, 1, V), xe(this, t, a, 2);
1440
1711
  }, l.toString = function(t) {
1441
1712
  var a, s = this, u = s.s, i = s.e;
1442
- return i === null ? u ? (a = "Infinity", u < 0 && (a = "-" + a)) : a = "NaN" : (t == null ? a = i <= w || i >= T ? ge(Y(s.c), i) : oe(Y(s.c), i, "0") : t === 10 && fe ? (s = X(new b(s), g + i + 1, x), a = oe(Y(s.c), s.e, "0")) : (R(t, 2, re.length, "Base"), a = o(oe(Y(s.c), i, "0"), 10, t, u, !0)), u < 0 && s.c[0] && (a = "-" + a)), a;
1713
+ return i === null ? u ? (a = "Infinity", u < 0 && (a = "-" + a)) : a = "NaN" : (t == null ? a = i <= w || i >= T ? ge(Y(s.c), i) : oe(Y(s.c), i, "0") : t === 10 && fe ? (s = X(new b(s), g + i + 1, x), a = oe(Y(s.c), s.e, "0")) : (I(t, 2, re.length, "Base"), a = o(oe(Y(s.c), i, "0"), 10, t, u, !0)), u < 0 && s.c[0] && (a = "-" + a)), a;
1443
1714
  }, l.valueOf = l.toJSON = function() {
1444
1715
  return ie(this);
1445
1716
  }, l._isBigNumber = !0, l[Symbol.toStringTag] = "BigNumber", l[Symbol.for("nodejs.util.inspect.custom")] = l.valueOf, e != null && b.set(e), b;
@@ -1449,26 +1720,26 @@ function ee(e) {
1449
1720
  return e > 0 || e === n ? n : n - 1;
1450
1721
  }
1451
1722
  function Y(e) {
1452
- for (var n, o, h = 1, l = e.length, A = e[0] + ""; h < l; ) {
1453
- for (n = e[h++] + "", o = S - n.length; o--; n = "0" + n) ;
1723
+ for (var n, o, y = 1, l = e.length, A = e[0] + ""; y < l; ) {
1724
+ for (n = e[y++] + "", o = S - n.length; o--; n = "0" + n) ;
1454
1725
  A += n;
1455
1726
  }
1456
1727
  for (l = A.length; A.charCodeAt(--l) === 48; ) ;
1457
1728
  return A.slice(0, l + 1 || 1);
1458
1729
  }
1459
1730
  function le(e, n) {
1460
- var o, h, l = e.c, A = n.c, g = e.s, x = n.s, w = e.e, T = n.e;
1731
+ var o, y, l = e.c, A = n.c, g = e.s, x = n.s, w = e.e, T = n.e;
1461
1732
  if (!g || !x) return null;
1462
- if (o = l && !l[0], h = A && !A[0], o || h) return o ? h ? 0 : -x : g;
1733
+ if (o = l && !l[0], y = A && !A[0], o || y) return o ? y ? 0 : -x : g;
1463
1734
  if (g != x) return g;
1464
- if (o = g < 0, h = w == T, !l || !A) return h ? 0 : !l ^ o ? 1 : -1;
1465
- if (!h) return w > T ^ o ? 1 : -1;
1735
+ if (o = g < 0, y = w == T, !l || !A) return y ? 0 : !l ^ o ? 1 : -1;
1736
+ if (!y) return w > T ^ o ? 1 : -1;
1466
1737
  for (x = (w = l.length) < (T = A.length) ? w : T, g = 0; g < x; g++) if (l[g] != A[g]) return l[g] > A[g] ^ o ? 1 : -1;
1467
1738
  return w == T ? 0 : w > T ^ o ? 1 : -1;
1468
1739
  }
1469
- function R(e, n, o, h) {
1740
+ function I(e, n, o, y) {
1470
1741
  if (e < n || e > o || e !== J(e))
1471
- throw Error(q + (h || "Argument") + (typeof e == "number" ? e < n || e > o ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
1742
+ throw Error(q + (y || "Argument") + (typeof e == "number" ? e < n || e > o ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
1472
1743
  }
1473
1744
  function be(e) {
1474
1745
  var n = e.c.length - 1;
@@ -1478,57 +1749,57 @@ function ge(e, n) {
1478
1749
  return (e.length > 1 ? e.charAt(0) + "." + e.slice(1) : e) + (n < 0 ? "e" : "e+") + n;
1479
1750
  }
1480
1751
  function oe(e, n, o) {
1481
- var h, l;
1752
+ var y, l;
1482
1753
  if (n < 0) {
1483
1754
  for (l = o + "."; ++n; l += o) ;
1484
1755
  e = l + e;
1485
- } else if (h = e.length, ++n > h) {
1486
- for (l = o, n -= h; --n; l += o) ;
1756
+ } else if (y = e.length, ++n > y) {
1757
+ for (l = o, n -= y; --n; l += o) ;
1487
1758
  e += l;
1488
- } else n < h && (e = e.slice(0, n) + "." + e.slice(n));
1759
+ } else n < y && (e = e.slice(0, n) + "." + e.slice(n));
1489
1760
  return e;
1490
1761
  }
1491
- var E = je();
1492
- const In = (e, n) => {
1762
+ var E = Ge();
1763
+ const Rn = (e, n) => {
1493
1764
  if (!e || !n) return "";
1494
1765
  const o = E(10).pow(e || 0);
1495
1766
  return E(n).times(o).idiv(o).div(o).toFixed();
1496
- }, Pn = (e, n) => !e || !n ? "" : qt(n).times(E(10).pow(e)).decimalPlaces(0).toFixed(0), Kt = E(0);
1767
+ }, Pn = (e, n) => !e || !n ? "" : $t(n).times(E(10).pow(e)).decimalPlaces(0).toFixed(0), zt = E(0);
1497
1768
  E(1);
1498
1769
  E(10);
1499
1770
  E(1e18);
1500
- function We(e, n) {
1501
- return e instanceof E ? e : e ? E(e, n) : Kt;
1771
+ function Le(e, n) {
1772
+ return e instanceof E ? e : e ? E(e, n) : zt;
1502
1773
  }
1503
1774
  function Ee(e, n) {
1504
1775
  return e == n || e.toLowerCase() == n.toLowerCase();
1505
1776
  }
1506
- function qt(e, n, o) {
1507
- if (typeof e != "string") return We(e);
1508
- const h = ".", l = e.replace(new RegExp(`[^${h}\\d-]+`, "g"), "");
1509
- return We(l);
1777
+ function $t(e, n, o) {
1778
+ if (typeof e != "string") return Le(e);
1779
+ const y = ".", l = e.replace(new RegExp(`[^${y}\\d-]+`, "g"), "");
1780
+ return Le(l);
1510
1781
  }
1511
- const Rn = (e) => !!Jt.find((n) => Ee(n, e || ""));
1512
- function Gt(e) {
1782
+ const In = (e) => !!Qt.find((n) => Ee(n, e || ""));
1783
+ function Ht(e) {
1513
1784
  return [ne.Years, ne.Months, ne.Weeks, ne.Days, ne.Hours, ne.Minutes].find((o) => o <= e) || ne.Minutes;
1514
1785
  }
1515
- const pe = (e) => e ? e.value * e.unit : 0, jt = (e) => !e || e === "NaN" ? "0" : E(e).decimalPlaces(0).toFixed(), Nn = (e) => Object.values(H).find((n) => n.id === e), Xt = (e) => {
1786
+ const pe = (e) => e ? e.value * e.unit : 0, Kt = (e) => !e || e === "NaN" ? "0" : E(e).decimalPlaces(0).toFixed(), Nn = (e) => Object.values(H).find((n) => n.id === e), qt = (e) => {
1516
1787
  if (!e) return;
1517
- const n = e.map((A) => K(A)), o = Object.entries(en).filter(([A]) => n.includes(A)).flatMap(([, A]) => A), h = e.map((A) => A.exchangeAddress), l = new Set([...h, ...o].map((A) => A.toLowerCase()));
1788
+ const n = e.map((A) => K(A)), o = Object.entries(Yt).filter(([A]) => n.includes(A)).flatMap(([, A]) => A), y = e.map((A) => A.exchangeAddress), l = new Set([...y, ...o].map((A) => A.toLowerCase()));
1518
1789
  return Array.from(l);
1519
- }, Un = (e, n) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + Ze(n) : (e.fillDelay || 0) * 1e3, Xe = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), Mn = (e) => sn().filter((n) => n.name === e).map((n) => n.chainId), ze = "https://order-sink-dev.orbs.network", Be = "https://order-sink.orbs.network";
1790
+ }, Mn = (e, n) => e.version === 1 ? (e.fillDelay || 0) * 1e3 + Ze(n) : (e.fillDelay || 0) * 1e3, je = (e) => typeof window > "u" ? null : new URLSearchParams(window.location.search).get(e), Un = (e) => sn().filter((n) => n.name === e).map((n) => n.chainId), Ve = "https://order-sink-dev.orbs.network", Se = "https://order-sink.orbs.network";
1520
1791
  let _e;
1521
1792
  const Ln = (e) => {
1522
1793
  _e = e;
1523
- }, Qe = () => {
1524
- const e = Xe(
1794
+ }, Xe = () => {
1795
+ const e = je(
1525
1796
  "env"
1526
1797
  /* ENV */
1527
1798
  );
1528
- return e === "prod" ? Be : e === "dev" ? ze : _e === "prod" ? Be : _e === "dev" ? ze : Be;
1529
- }, Vn = 100, Wn = 1, Ie = 300 * 1e3, he = 365 * 24 * 60 * 60 * 1e3, $e = 300 * 1e3, Qt = new Date(
1530
- Ie
1531
- ).getMinutes(), He = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, Z = "https://hub.orbs.network/api/apikey/subgraphs/id", Yt = {
1799
+ return e === "prod" ? Se : e === "dev" ? Ve : _e === "prod" ? Se : _e === "dev" ? Ve : Se;
1800
+ }, Vn = 100, Wn = 1, Re = 300 * 1e3, ye = 365 * 24 * 60 * 60 * 1e3, We = 300 * 1e3, Gt = new Date(
1801
+ Re
1802
+ ).getMinutes(), ze = (e) => `https://hub.orbs.network/api/private/project_cm7nb67z86nyr01z12gs0fxpf/subgraphs/orbs-twap-${e}/prod/gn`, Z = "https://hub.orbs.network/api/apikey/subgraphs/id", jt = {
1532
1803
  [H.eth.id]: `${Z}/Bf7bvMYcJbDAvYWJmhMpHZ4cpFjqzkhK6GXXEpnPRq6`,
1533
1804
  [H.bsc.id]: `${Z}/4NfXEi8rreQsnAr4aJ45RLCKgnjcWX46Lbt9SadiCcz6`,
1534
1805
  [H.poly.id]: `${Z}/3PyRPWSvDnMowGbeBy7aNsvUkD5ZuxdXQw2RdJq4NdXi`,
@@ -1541,16 +1812,16 @@ const Ln = (e) => {
1541
1812
  [H.katana.id]: `${Z}/CGi9sDFMQcnBwF3C3NoCFqnaE34sssbgwPLTwiskSXmW`,
1542
1813
  [H.avax.id]: `${Z}/FxZ1vMwE5Xy1qvKvZENUMz4vhW8Sh4vXJf9Vp7o17pTx`,
1543
1814
  [H.bera.id]: `${Z}/H7aY53mY1hgaSURwXj3ZVirwNSifExwjgEL5GNtTqmEj`,
1544
- [H.flare.id]: He("flare"),
1545
- [H.cronosZkEvm.id]: He("cronos-zkevm")
1546
- }, Zt = "0x0000000000000000000000000000000000000000", Jt = [
1547
- Zt,
1815
+ [H.flare.id]: ze("flare"),
1816
+ [H.cronosZkEvm.id]: ze("cronos-zkevm")
1817
+ }, Xt = "0x0000000000000000000000000000000000000000", Qt = [
1818
+ Xt,
1548
1819
  "0x0000000000000000000000000000000000001010",
1549
1820
  "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
1550
1821
  "0x000000000000000000000000000000000000dEaD",
1551
1822
  "0x000000000000000000000000000000000000800A",
1552
1823
  "0x000000000000000000000000000000000000800a"
1553
- ], zn = "115792089237316195423570985008687907853269984665640564039457584007913129639935", K = (e) => `${e.name}_${e.chainId}`, en = {
1824
+ ], zn = "115792089237316195423570985008687907853269984665640564039457584007913129639935", K = (e) => `${e.name}_${e.chainId}`, Yt = {
1554
1825
  [K($.SushiArb)]: [
1555
1826
  "0x846F2B29ef314bF3D667981b4ffdADc5B858312a",
1556
1827
  "0x08c41f5D1C844061f6D952E25827eeAA576c6536"
@@ -1599,10 +1870,10 @@ const Ln = (e) => {
1599
1870
  [K($.SwapX)]: [
1600
1871
  "0xE5012eBDe5e26EE3Ea41992154731a03023CF274"
1601
1872
  ]
1602
- }, Ke = {
1873
+ }, $e = {
1603
1874
  unit: ne.Minutes,
1604
- value: Qt
1605
- }, $n = 0.25, Hn = "100", tn = "RePermitWitnessTransferFrom", nn = {
1875
+ value: Gt
1876
+ }, $n = 0.25, Hn = "100", Zt = "RePermitWitnessTransferFrom", Jt = {
1606
1877
  RePermitWitnessTransferFrom: [
1607
1878
  {
1608
1879
  name: "permitted",
@@ -1728,34 +1999,75 @@ const Ln = (e) => {
1728
1999
  }
1729
2000
  ]
1730
2001
  }, Kn = "https://www.orbs.com/dtwap-and-dlimit-faq/", qn = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP", Gn = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg", jn = "https://www.orbs.com/assets/img/common/logo.svg", Xn = "https://www.orbs.com/", Qn = "https://www.orbs.com/dtwap-dlimit-disclaimer";
1731
- var Ye = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_USD = "minChunkSizeUsd", e.ENV = "env", e))(Ye || {});
1732
- const Yn = "-5", Zn = "10", Jn = "-10", ea = "5", ta = "Something went wrong", na = (e, n, o) => {
2002
+ var Qe = /* @__PURE__ */ ((e) => (e.FRESHNESS = "freshness", e.MIN_CHUNK_SIZE_USD = "minChunkSizeUsd", e.ENV = "env", e))(Qe || {});
2003
+ const Yn = "-5", Zn = "10", Jn = "-10", ea = "5", ta = "Something went wrong";
2004
+ function en(e) {
2005
+ 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.');
2006
+ }
2007
+ const tn = {
2008
+ 14: { dex: { spark: { type: "default:spark", adapter: "0xB18c633B6584A33E45a8840a759f56dF17117b1D", fee: "0xaeA8C3e1a129A77686E115b1a46D9aD8405F7D2b" } } },
2009
+ 56: { dex: { thena: { type: "default:odos-v2", adapter: "0xB75218ba5A99bF57Fd02556B70F05A4A0f1Dbe67", fee: "0x15eBc8b5b3877512FFF23650188694A9a8891FAc" }, pancake: { type: "p2:pancakeswap-v2", adapter: "0x654272F7e6e6E912D38650f783eFd44452fD6ee5", fee: "0x37A957f10F458e0d7fDECBE2917971b57F15c927" }, newera: { type: "default:odos-v2", adapter: "0x845f459271D800f6Ab32D78400b8Aa18414E80b0", fee: "0x4E7454909eB6D539111D56b50d68897E933D2d11" } } },
2010
+ 137: { dex: { quick: { type: "paraswap:paraswap-v5", adapter: "0x023fD6848234f2655818705237F77F02215FEfe5", fee: "0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f" }, teafi: { type: "paraswap:paraswap-v5", adapter: "0xe95db7a60164B112C64cE67bA8587b1d4a0E0D29", fee: "0x04Ff96e2c4D62b5771795d307AD679a25b3D2D50" } } },
2011
+ 143: { dex: { yowie: { type: "default:openocean-v2", adapter: "0x18bc9533c3539073B9A9acF12b0AbF7cB73e0F1f", fee: "0x6AF3eE77A3A3257777F5649aFa611b4C7Fd975Ef" } } },
2012
+ 146: { dex: { spooky: { type: "default:magpie-v3", adapter: "0xdCee7FDdB932104329d528144Cd17A408722B7e2", fee: "0x840Df4684B35BC68BcdA3F6707A3c82A0D662f8b" }, swapx: { type: "default:openocean-v2", adapter: "0xecc733D6F6f2DEa341832D650E30822118884FEb", fee: "0x6E03f7BC0f141894612AA017796096399623895F" }, shadow: { type: "default:magpie-v3", adapter: "0x5f3E5F6ACCfc65243A01Da3E93b5A700285592C3", fee: "0xb9e3751fAF3187E1bC468E56a707a8A91754460e" } } },
2013
+ 1329: { dex: { dragon: { type: "default:dragon", adapter: "0x02d9d5882129241b67ec21Ebc2C86e1BE9BC9890", fee: "0x0dc1E0525202b32e89bA78ed55b1e5cEdB751334" }, nami: { type: "default:openocean-v2", adapter: "0x2D4A1237A98f8cb03C3C85960e859aA44036a306", fee: "0xeB58450e23632003f013568703F54446070E2E80" } } },
2014
+ 8453: { dex: { quick: { type: "default:kyber-v2", adapter: "0xc73F03c929A123Ee2f3A98EC18BB240f03980AE5", fee: "0xd207DC6a6dA88f27c8DB78201F974161b1d84b1f" } } },
2015
+ 42161: { dex: { arbidex: { type: "default:odos-v2", adapter: "0xa734b32151108139e48dCA06eE721538d90A9Ef6", fee: "0xa0c11852f8A44e32F9EC10AD25986A53842f72Ca" }, ramses: { type: "paraswap:paraswap-v5", adapter: "0x023fD6848234f2655818705237F77F02215FEfe5", fee: "0xB5BaCB60ECDa0bEF809B2A26eC9B4B926835D7af" }, omni: { type: "paraswap:paraswap-v5", adapter: "0xa1baE146161223cd9dCa7137F68eb385934130BE", fee: "0xba5291526c30B097E9F1Fd1Be301E2ab6E0782aa" }, chronos: { type: "default:odos-v2", adapter: "0x4Ff90F32aceD08b3e3257B018EA495Fd1Bfe4455", fee: "0x5729af83240EFecAa18eafaAE82961c2DD045Dbe" } } },
2016
+ 43114: { dex: { blackhole: { type: "default:kyber-v2", adapter: "0x426ec4bc0d58B80959CDE77576a1942dd40592Fa", fee: "0x7f8B62520D9B5DA0ED517cc36e8dcb2a356f1928" } } },
2017
+ 59144: { dex: { lynex: { type: "default:openocean", adapter: "0x4FF6A97A67fe395212f168f011D71fE79E4396f2", fee: "0xcb36ed1B1BfAD8F7FC9651f52d21f04A68677423" } } },
2018
+ 80094: { dex: { kodiak: { type: "default:kodiak", adapter: "0xBbaa527Aac00b1Ee9A3909D4D8c4447630E29B1F", fee: "0xBA47Ec15aFbCF6e7e9F52900632049530bB6bAe4" } } },
2019
+ "*": { wm: "0x0005d5cE0dB57e5BE3b2b8b6FeB75f0ccd015000", repermit: "0x00002a9C4D9497df5Bd31768eC5d30eEf5405000", cosigner: "0x0007ec53404c423C935e830ec21903e184690000", reactor: "0x0006a959430e8fBB858D81B2D1140B0ae5c26001", executor: "0x000eBA869d76C618ddc4A6D685A0820A620Ce002", refinery: "0x000E474c0D7084EAA35A501035E73269f4b009A5", salt: { wm: "0xc9b46eae42dfeba3222a0315bf682f33cd5cc9d60c9625642e88406f8415f152", repermit: "0x4871dc9008e605821ea9677b65ea2a60ffb774afb31e0dcaea2e192880096be7", cosigner: "0x37576f2ac1d2a602f00777611edf6f0cbc27611b0980b29bc7856fa79b2b8073", reactor: "0x034169222370f2fd587ef8998082d762cceef58a272330215f5110ec0d76d400", executor: "0xea139bc421fa5e272bed3db74233b2e02077e0aacf8b855f87961e98f2fb467f", refinery: "0x9746de29f1dd31b2c8460d71e92a7aefa34911130e61f274f37776e598c48bec" } }
2020
+ };
2021
+ var Be, He;
2022
+ function nn() {
2023
+ if (He) return Be;
2024
+ He = 1;
2025
+ const e = tn, n = (l) => en(`./out/${l}.sol/${l}.json`).abi, o = () => ({
2026
+ wm: n("WM"),
2027
+ repermit: n("RePermit"),
2028
+ reactor: n("OrderReactor"),
2029
+ executor: n("Executor"),
2030
+ refinery: n("Refinery"),
2031
+ adapter: n("DefaultDexAdapter")
2032
+ });
2033
+ function y(l, A) {
2034
+ if (!l || !(A != null && A.trim())) return;
2035
+ const { dex: g, ...x } = e["*"] ?? {}, w = e[l];
2036
+ if (!w) return;
2037
+ const { dex: T, ...B } = w, F = T == null ? void 0 : T[A];
2038
+ if (F)
2039
+ return { ...x, ...B, ...F };
2040
+ }
2041
+ return Be = { config: y, abis: o, raw: e }, Be;
2042
+ }
2043
+ var Ye = nn();
2044
+ const na = (e, n, o) => {
1733
2045
  if (!e || !n || !o) return;
1734
- const h = E(e).times(n), l = E(10).pow(o);
1735
- return h.div(l).toFixed(0);
1736
- }, aa = (e, n, o, h) => {
1737
- if (o || !h || !e || !n)
2046
+ const y = E(e).times(n), l = E(10).pow(o);
2047
+ return y.div(l).toFixed(0);
2048
+ }, aa = (e, n, o, y) => {
2049
+ if (o || !y || !e || !n)
1738
2050
  return E(0).toString();
1739
- const l = E(e).times(E(n)), A = E(10).pow(h), g = l.div(A);
2051
+ const l = E(e).times(E(n)), A = E(10).pow(y), g = l.div(A);
1740
2052
  return E.max(1, g).integerValue(E.ROUND_FLOOR).toFixed(0);
1741
- }, sa = (e, n, o, h) => {
2053
+ }, sa = (e, n, o, y) => {
1742
2054
  if (e === G.TWAP || e === G.LIMIT)
1743
2055
  return "0";
1744
- if (!h || !n || !o) return;
1745
- const l = E(n).times(E(o)), A = E(10).pow(h), g = l.div(A);
2056
+ if (!y || !n || !o) return;
2057
+ const l = E(n).times(E(o)), A = E(10).pow(y), g = l.div(A);
1746
2058
  return E.max(1, g).integerValue(E.ROUND_FLOOR).toFixed(0) || "0";
1747
- }, ra = (e, n, o, h) => {
1748
- const l = pe(o) * 2 * n, A = Gt(l);
1749
- return h || (e === G.LIMIT ? { unit: ne.Days, value: 7 } : e === G.STOP_LOSS || e === G.TAKE_PROFIT ? { unit: ne.Days, value: 1 } : { unit: A, value: Number(E(l / A).toFixed(2)) });
1750
- }, ia = (e, n, o) => n !== G.TWAP ? 1 : o !== void 0 ? o : e, oa = (e, n, o, h) => {
1751
- if (!n || !o || !h) return 1;
1752
- const A = E(o).times(n).div(h).integerValue(E.ROUND_FLOOR).toNumber(), g = Math.floor(
1753
- he / 2 / pe(e)
2059
+ }, ra = (e, n, o, y) => {
2060
+ const l = pe(o) * 2 * n, A = Ht(l);
2061
+ return y || (e === G.LIMIT ? { unit: ne.Days, value: 7 } : e === G.STOP_LOSS || e === G.TAKE_PROFIT ? { unit: ne.Days, value: 1 } : { unit: A, value: Number(E(l / A).toFixed(2)) });
2062
+ }, ia = (e, n, o) => n !== G.TWAP ? 1 : o !== void 0 ? o : e, oa = (e, n, o, y) => {
2063
+ if (!n || !o || !y) return 1;
2064
+ const A = E(o).times(n).div(y).integerValue(E.ROUND_FLOOR).toNumber(), g = Math.floor(
2065
+ ye / 2 / pe(e)
1754
2066
  );
1755
2067
  return Math.max(1, Math.min(A, g));
1756
2068
  }, da = (e) => Ze(e) / 1e3 / 60, ca = (e, n) => e + pe(n) + 6e4, Ze = (e) => e.bidDelaySeconds * 1e3 * 2, pa = (e, n) => !e || !n ? "0" : E(e).div(n).integerValue(E.ROUND_FLOOR).toFixed(0), la = (e, n) => ({
1757
- isError: !(e.unit === Ke.unit && e.value === Ke.value) && pe(e) * n > he,
1758
- value: Math.floor(he / n)
2069
+ isError: !(e.unit === $e.unit && e.value === $e.value) && pe(e) * n > ye,
2070
+ value: Math.floor(ye / n)
1759
2071
  }), ua = (e = "", n = "", o) => {
1760
2072
  if (o === G.STOP_LOSS)
1761
2073
  return {
@@ -1768,31 +2080,31 @@ const Yn = "-5", Zn = "10", Jn = "-10", ea = "5", ta = "Something went wrong", n
1768
2080
  isError: E(n || 0).lte(E(e || 0)),
1769
2081
  value: e
1770
2082
  };
1771
- }, ma = (e = "", n = "", o = !1, h) => {
1772
- if (!o && h === G.STOP_LOSS)
2083
+ }, ma = (e = "", n = "", o = !1, y) => {
2084
+ if (!o && y === G.STOP_LOSS)
1773
2085
  return {
1774
2086
  isError: E(n || 0).gte(E(e || 0)),
1775
2087
  value: e
1776
2088
  };
1777
- }, ha = (e = "", n = "", o = !1, h) => {
1778
- if (!o && h === G.TAKE_PROFIT)
2089
+ }, ya = (e = "", n = "", o = !1, y) => {
2090
+ if (!o && y === G.TAKE_PROFIT)
1779
2091
  return {
1780
2092
  isError: E(n || 0).gte(E(e || 0)),
1781
2093
  value: e
1782
2094
  };
1783
- }, ya = (e, n) => e === G.STOP_LOSS || e === G.TAKE_PROFIT ? {
2095
+ }, ha = (e, n) => e === G.STOP_LOSS || e === G.TAKE_PROFIT ? {
1784
2096
  isError: pe(n) > 5184e6,
1785
2097
  value: 5184e6
1786
2098
  } : {
1787
- isError: pe(n) > he,
2099
+ isError: pe(n) > ye,
1788
2100
  // 365 days
1789
- value: he
2101
+ value: ye
1790
2102
  }, Aa = (e) => ({
1791
- isError: pe(e) < $e,
1792
- value: $e
2103
+ isError: pe(e) < We,
2104
+ value: We
1793
2105
  }), ba = (e) => ({
1794
- isError: pe(e) < Ie,
1795
- value: Ie
2106
+ isError: pe(e) < Re,
2107
+ value: Re
1796
2108
  }), ga = (e, n, o) => ({
1797
2109
  isError: E(n || 0).multipliedBy(e || 0).isLessThan(o),
1798
2110
  value: o
@@ -1803,22 +2115,22 @@ const Yn = "-5", Zn = "10", Jn = "-10", ea = "5", ta = "Something went wrong", n
1803
2115
  var o;
1804
2116
  try {
1805
2117
  if (!e || !n) throw new Error("Invalid chainId or _dex");
1806
- const h = (o = Object.entries($).find(
2118
+ const y = (o = Object.entries($).find(
1807
2119
  ([x, w]) => w.chainId === e && x.toLowerCase().indexOf(n.toLowerCase()) >= 0
1808
- )) == null ? void 0 : o[1], { abi: l, ...A } = Ne.config(e, n);
2120
+ )) == null ? void 0 : o[1], { abi: l, ...A } = Ye.config(e, n);
1809
2121
  return {
1810
2122
  ...A,
1811
2123
  partner: n,
1812
- twapConfig: h
2124
+ twapConfig: y
1813
2125
  };
1814
2126
  } catch {
1815
2127
  return;
1816
2128
  }
1817
2129
  }, sn = () => {
1818
- const e = Ne.raw;
2130
+ const e = Ye.raw;
1819
2131
  return Object.entries(e).filter(([n]) => n !== "*").flatMap(([n, o]) => {
1820
- const h = o == null ? void 0 : o.dex;
1821
- return !h || typeof h != "object" ? [] : Object.entries(h).map(([l]) => ({
2132
+ const y = o == null ? void 0 : o.dex;
2133
+ return !y || typeof y != "object" ? [] : Object.entries(y).map(([l]) => ({
1822
2134
  chainId: Number(n),
1823
2135
  name: l,
1824
2136
  config: an(Number(n), l)
@@ -1828,7 +2140,7 @@ const Yn = "-5", Zn = "10", Jn = "-10", ea = "5", ta = "Something went wrong", n
1828
2140
  chainId: e,
1829
2141
  srcToken: n,
1830
2142
  dstToken: o,
1831
- srcAmount: h,
2143
+ srcAmount: y,
1832
2144
  deadlineMillis: l,
1833
2145
  fillDelayMillis: A,
1834
2146
  slippage: g,
@@ -1836,22 +2148,22 @@ const Yn = "-5", Zn = "10", Jn = "-10", ea = "5", ta = "Something went wrong", n
1836
2148
  srcAmountPerTrade: w,
1837
2149
  dstMinAmountPerTrade: T,
1838
2150
  triggerAmountPerTrade: B,
1839
- config: C
2151
+ config: F
1840
2152
  }) => {
1841
- const k = Date.now().toString(), I = parseInt((A / 1e3).toFixed(0)), P = jt(l / 1e3), ue = Xe(Ye.FRESHNESS), re = ue ? parseInt(ue) : 60, fe = {
2153
+ const k = Date.now().toString(), R = parseInt((A / 1e3).toFixed(0)), P = Kt(l / 1e3), ue = je(Qe.FRESHNESS), re = ue ? parseInt(ue) : 60, fe = {
1842
2154
  permitted: {
1843
2155
  token: n,
1844
- amount: h
2156
+ amount: y
1845
2157
  },
1846
- spender: C.reactor,
2158
+ spender: F.reactor,
1847
2159
  nonce: k,
1848
2160
  deadline: P,
1849
2161
  witness: {
1850
- reactor: C.reactor,
1851
- executor: C.executor,
2162
+ reactor: F.reactor,
2163
+ executor: F.executor,
1852
2164
  exchange: {
1853
- adapter: C.adapter,
1854
- ref: C.fee,
2165
+ adapter: F.adapter,
2166
+ ref: F.fee,
1855
2167
  share: 0,
1856
2168
  data: "0x"
1857
2169
  },
@@ -1860,13 +2172,13 @@ const Yn = "-5", Zn = "10", Jn = "-10", ea = "5", ta = "Something went wrong", n
1860
2172
  deadline: P,
1861
2173
  chainid: e,
1862
2174
  exclusivity: 0,
1863
- epoch: I,
2175
+ epoch: R,
1864
2176
  slippage: g,
1865
2177
  freshness: re,
1866
2178
  input: {
1867
2179
  token: n,
1868
2180
  amount: w,
1869
- maxAmount: h
2181
+ maxAmount: y
1870
2182
  },
1871
2183
  output: {
1872
2184
  token: o,
@@ -1881,13 +2193,13 @@ const Yn = "-5", Zn = "10", Jn = "-10", ea = "5", ta = "Something went wrong", n
1881
2193
  name: "RePermit",
1882
2194
  version: "1",
1883
2195
  chainId: e,
1884
- verifyingContract: C.repermit
2196
+ verifyingContract: F.repermit
1885
2197
  },
1886
2198
  order: fe,
1887
- types: nn,
1888
- primaryType: tn
2199
+ types: Jt,
2200
+ primaryType: Zt
1889
2201
  };
1890
- }, rn = "0.0.15", on = {
2202
+ }, rn = "0.0.17", on = {
1891
2203
  version: rn
1892
2204
  }, dn = 0.7, cn = `https://bi.orbs.network/putes/twap-ui-${dn}`, Je = on.version;
1893
2205
  let Pe = "unknown";
@@ -1899,7 +2211,7 @@ function Oe() {
1899
2211
  return `id_${e + n + o}`;
1900
2212
  }
1901
2213
  const pn = (e, n, o) => {
1902
- var h, l, A, g, x, w, T, B, C;
2214
+ var y, l, A, g, x, w, T, B, F;
1903
2215
  return {
1904
2216
  spotVersion: Je,
1905
2217
  partner: e.partner,
@@ -1913,7 +2225,7 @@ const pn = (e, n, o) => {
1913
2225
  router: e.router,
1914
2226
  type: e.type,
1915
2227
  wm: e.wm,
1916
- chainName: ((h = e.twapConfig) == null ? void 0 : h.chainName) || "",
2228
+ chainName: ((y = e.twapConfig) == null ? void 0 : y.chainName) || "",
1917
2229
  chainId: o || 0,
1918
2230
  twapVersion: ((l = e.twapConfig) == null ? void 0 : l.twapVersion) || 0,
1919
2231
  twapAddress: ((A = e.twapConfig) == null ? void 0 : A.twapAddress) || "",
@@ -1923,9 +2235,9 @@ const pn = (e, n, o) => {
1923
2235
  name: ((w = e.twapConfig) == null ? void 0 : w.name) || "",
1924
2236
  exchangeAddress: ((T = e.twapConfig) == null ? void 0 : T.exchangeAddress) || "",
1925
2237
  exchangeType: ((B = e.twapConfig) == null ? void 0 : B.exchangeType) || "",
1926
- pathfinderKey: ((C = e.twapConfig) == null ? void 0 : C.pathfinderKey) || ""
2238
+ pathfinderKey: ((F = e.twapConfig) == null ? void 0 : F.pathfinderKey) || ""
1927
2239
  };
1928
- }, qe = async (e) => {
2240
+ }, Ke = async (e) => {
1929
2241
  try {
1930
2242
  await fetch(cn, {
1931
2243
  method: "POST",
@@ -1947,13 +2259,13 @@ class ln {
1947
2259
  _id: Oe()
1948
2260
  });
1949
2261
  }
1950
- async updateAndSend(n = {}, o = !1, h) {
2262
+ async updateAndSend(n = {}, o = !1, y) {
1951
2263
  try {
1952
2264
  this.data = {
1953
2265
  ...this.data,
1954
2266
  ...n
1955
- }, o ? (await qe(this.data), h == null || h()) : (clearTimeout(this.timeout), this.timeout = setTimeout(() => {
1956
- qe(this.data), h == null || h();
2267
+ }, o ? (await Ke(this.data), y == null || y()) : (clearTimeout(this.timeout), this.timeout = setTimeout(() => {
2268
+ Ke(this.data), y == null || y();
1957
2269
  }, 1e3));
1958
2270
  } catch (l) {
1959
2271
  console.error("Failed to update and send BI", l);
@@ -2009,14 +2321,14 @@ class ln {
2009
2321
  this.updateAndSend({ action: "crash", actionError: ((o = n == null ? void 0 : n.message) == null ? void 0 : o.toLowerCase()) || (n == null ? void 0 : n.toLowerCase()) });
2010
2322
  }
2011
2323
  onTxError(n) {
2012
- var h;
2013
- const o = ((h = n == null ? void 0 : n.message) == null ? void 0 : h.toLowerCase()) || (n == null ? void 0 : n.toLowerCase());
2324
+ var y;
2325
+ const o = ((y = n == null ? void 0 : n.message) == null ? void 0 : y.toLowerCase()) || (n == null ? void 0 : n.toLowerCase());
2014
2326
  this.updateAndSend({ actionError: o });
2015
2327
  }
2016
2328
  onRequestOrder({
2017
2329
  account: n,
2018
2330
  chainId: o,
2019
- module: h,
2331
+ module: y,
2020
2332
  srcToken: l,
2021
2333
  dstToken: A,
2022
2334
  fromTokenAmount: g,
@@ -2024,9 +2336,9 @@ class ln {
2024
2336
  minDstAmountOutPerTrade: w = "",
2025
2337
  triggerPricePerTrade: T = "",
2026
2338
  deadline: B,
2027
- fillDelay: C,
2339
+ fillDelay: F,
2028
2340
  slippage: k,
2029
- isMarketOrder: I
2341
+ isMarketOrder: R
2030
2342
  }) {
2031
2343
  const P = E(g).div(x).integerValue(E.ROUND_FLOOR).toNumber();
2032
2344
  this.updateAndSend({
@@ -2040,12 +2352,12 @@ class ln {
2040
2352
  minDstAmountOutPerTrade: w,
2041
2353
  triggerPricePerTrade: T,
2042
2354
  deadline: B,
2043
- fillDelay: C,
2355
+ fillDelay: F,
2044
2356
  slippage: k,
2045
2357
  chainId: o,
2046
2358
  walletAddress: n,
2047
- module: h,
2048
- orderType: I ? "market" : "limit",
2359
+ module: y,
2360
+ orderType: R ? "market" : "limit",
2049
2361
  actionError: void 0
2050
2362
  });
2051
2363
  }
@@ -2064,13 +2376,13 @@ class ln {
2064
2376
  signature: n
2065
2377
  });
2066
2378
  }
2067
- init(n, o, h) {
2379
+ init(n, o, y) {
2068
2380
  var l;
2069
- this.config = n, h !== ((l = this.data) == null ? void 0 : l.chainId) && (this.data = {
2381
+ this.config = n, y !== ((l = this.data) == null ? void 0 : l.chainId) && (this.data = {
2070
2382
  _id: Oe(),
2071
2383
  action: "module-import",
2072
2384
  uiVersion: Pe,
2073
- ...pn(n, o, h),
2385
+ ...pn(n, o, y),
2074
2386
  origin: window.location.origin
2075
2387
  }, this.updateAndSend(this.data));
2076
2388
  }
@@ -2131,26 +2443,26 @@ class ln {
2131
2443
  }
2132
2444
  const ve = new ln(), un = (e) => {
2133
2445
  var l;
2134
- const n = E(e.order.witness.output.limit || 0).gt(1), o = E(e.order.witness.output.stop || 0).gt(0), h = ((l = e.metadata.chunks) == null ? void 0 : l.length) || E(e.order.witness.input.maxAmount).div(E(e.order.witness.input.amount)).toNumber();
2135
- return o && n ? j.TRIGGER_PRICE_LIMIT : o ? j.TRIGGER_PRICE_MARKET : !n && h <= 1 ? j.TWAP_MARKET : h >= 1 && n ? j.TWAP_LIMIT : n ? j.LIMIT : j.TWAP_MARKET;
2446
+ const n = E(e.order.witness.output.limit || 0).gt(1), o = E(e.order.witness.output.stop || 0).gt(0), y = ((l = e.metadata.chunks) == null ? void 0 : l.length) || E(e.order.witness.input.maxAmount).div(E(e.order.witness.input.amount)).toNumber();
2447
+ return o && n ? j.TRIGGER_PRICE_LIMIT : o ? j.TRIGGER_PRICE_MARKET : !n && y <= 1 ? j.TWAP_MARKET : y >= 1 && n ? j.TWAP_LIMIT : n ? j.LIMIT : j.TWAP_MARKET;
2136
2448
  }, fn = (e) => {
2137
2449
  var l;
2138
- const n = ((l = e.metadata.chunks) == null ? void 0 : l.filter((A) => A.status === "success").length) || 0, o = e.metadata.expectedChunks || 0, h = E(n).dividedBy(o).toNumber();
2139
- return h >= 0.99 ? 100 : h <= 0 ? 0 : Number((h * 100).toFixed(2));
2140
- }, mn = (e, n) => e.metadata.status === "completed" || n >= 99 ? se.Completed : ["pending", "eligible"].includes(e.metadata.status) ? se.Open : e.metadata.description.toLowerCase() === "cancelled by contract" ? se.Canceled : se.Expired, hn = (e) => {
2450
+ const n = ((l = e.metadata.chunks) == null ? void 0 : l.filter((A) => A.status === "success").length) || 0, o = e.metadata.expectedChunks || 0, y = E(n).dividedBy(o).toNumber();
2451
+ return y >= 0.99 ? 100 : y <= 0 ? 0 : Number((y * 100).toFixed(2));
2452
+ }, mn = (e, n) => e.metadata.status === "completed" || n >= 99 ? se.Completed : ["pending", "eligible"].includes(e.metadata.status) ? se.Open : e.metadata.description.toLowerCase() === "cancelled by contract" ? se.Canceled : se.Expired, yn = (e) => {
2141
2453
  var o;
2142
- return (((o = e.metadata.chunks) == null ? void 0 : o.filter((h) => h.status === "success")) || []).map((h) => ({
2143
- inAmount: h.inAmount,
2144
- outAmount: h.outAmount,
2145
- timestamp: new Date(h.timestamp).getTime(),
2146
- txHash: h.txHash
2454
+ return (((o = e.metadata.chunks) == null ? void 0 : o.filter((y) => y.status === "success")) || []).map((y) => ({
2455
+ inAmount: y.inAmount,
2456
+ outAmount: y.outAmount,
2457
+ timestamp: new Date(y.timestamp).getTime(),
2458
+ txHash: y.txHash
2147
2459
  }));
2148
- }, yn = (e, n) => {
2149
- var h;
2460
+ }, hn = (e, n) => {
2461
+ var y;
2150
2462
  const o = e.length;
2151
- return o >= n && ((h = e[o - 1]) == null ? void 0 : h.timestamp) || 0;
2463
+ return o >= n && ((y = e[o - 1]) == null ? void 0 : y.timestamp) || 0;
2152
2464
  }, et = (e) => {
2153
- const n = fn(e), o = Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, h = e.metadata.expectedChunks || 1, l = hn(e);
2465
+ const n = fn(e), o = Number(e.order.witness.output.limit) === 1 ? "" : e.order.witness.output.limit, y = e.metadata.expectedChunks || 1, l = yn(e);
2154
2466
  return {
2155
2467
  id: e.hash,
2156
2468
  hash: e.hash,
@@ -2170,16 +2482,16 @@ const ve = new ln(), un = (e) => {
2170
2482
  srcAmount: e.order.witness.input.maxAmount,
2171
2483
  dstMinAmountPerTrade: o,
2172
2484
  triggerPricePerTrade: E(e.order.witness.output.stop || 0).isZero() ? "" : e.order.witness.output.stop,
2173
- dstMinAmountTotal: E(o).multipliedBy(h).toString(),
2485
+ dstMinAmountTotal: E(o).multipliedBy(y).toString(),
2174
2486
  srcAmountPerTrade: e.order.witness.input.amount,
2175
- totalTradesAmount: h,
2487
+ totalTradesAmount: y,
2176
2488
  isMarketPrice: E(o || 0).lte(1),
2177
2489
  chainId: e.order.witness.chainid,
2178
- filledOrderTimestamp: yn(l, h),
2490
+ filledOrderTimestamp: hn(l, y),
2179
2491
  status: mn(e, n),
2180
2492
  rawOrder: e
2181
2493
  };
2182
- }, An = async ({ chainId: e, signal: n, account: o }) => o ? (await (await fetch(`${Qe()}/orders?swapper=${o}&chainId=${e}`, {
2494
+ }, An = async ({ chainId: e, signal: n, account: o }) => o ? (await (await fetch(`${Xe()}/orders?swapper=${o}&chainId=${e}`, {
2183
2495
  signal: n
2184
2496
  })).json()).orders.map(et) : [], Ta = async (e, n) => {
2185
2497
  try {
@@ -2189,7 +2501,7 @@ const ve = new ln(), un = (e) => {
2189
2501
  status: "pending"
2190
2502
  };
2191
2503
  console.log("body", o), ve.onCreateOrderRequest();
2192
- const l = await (await fetch(`${Qe()}/orders/new`, {
2504
+ const l = await (await fetch(`${Xe()}/orders/new`, {
2193
2505
  method: "POST",
2194
2506
  body: JSON.stringify(o)
2195
2507
  })).json();
@@ -2202,35 +2514,35 @@ const ve = new ln(), un = (e) => {
2202
2514
  }
2203
2515
  }, de = (e, n) => e && e.length ? e.map(n || ((o) => `${o}`)) : void 0, bn = (e) => {
2204
2516
  if (e)
2205
- return Yt[e];
2206
- }, Ue = async ({
2517
+ return jt[e];
2518
+ }, Ne = async ({
2207
2519
  chainId: e,
2208
2520
  buildQuery: n,
2209
2521
  extractResults: o,
2210
- signal: h,
2522
+ signal: y,
2211
2523
  retries: l = 1,
2212
2524
  limit: A = 1e3,
2213
2525
  page: g
2214
2526
  }) => {
2215
2527
  const x = bn(e);
2216
- if (!x) throw new Fn();
2217
- const w = async (C) => {
2528
+ if (!x) throw new Cn();
2529
+ const w = async (F) => {
2218
2530
  let k = 0;
2219
2531
  for (; k <= l; )
2220
2532
  try {
2221
- const I = await fetch(x, {
2533
+ const R = await fetch(x, {
2222
2534
  method: "POST",
2223
- body: JSON.stringify({ query: C }),
2224
- signal: h,
2535
+ body: JSON.stringify({ query: F }),
2536
+ signal: y,
2225
2537
  headers: { "Content-Type": "application/json" }
2226
2538
  });
2227
- if (!I.ok) throw new Error(`HTTP error: ${I.status}`);
2228
- const P = await I.json();
2539
+ if (!R.ok) throw new Error(`HTTP error: ${R.status}`);
2540
+ const P = await R.json();
2229
2541
  if (P.errors)
2230
2542
  throw new Error(P.errors[0].message);
2231
2543
  return o(P);
2232
- } catch (I) {
2233
- if (k === l) throw I;
2544
+ } catch (R) {
2545
+ if (k === l) throw R;
2234
2546
  await new Promise((P) => setTimeout(P, 500 * 2 ** k)), k++;
2235
2547
  }
2236
2548
  return [];
@@ -2238,27 +2550,27 @@ const ve = new ln(), un = (e) => {
2238
2550
  let T = 0;
2239
2551
  const B = [];
2240
2552
  if (g !== void 0) {
2241
- const C = n(g, A);
2553
+ const F = n(g, A);
2242
2554
  try {
2243
- return await w(C);
2555
+ return await w(F);
2244
2556
  } catch {
2245
2557
  console.warn(`Page ${g} failed, retrying one final time...`);
2246
2558
  try {
2247
- return await w(C);
2559
+ return await w(F);
2248
2560
  } catch {
2249
2561
  return [];
2250
2562
  }
2251
2563
  }
2252
2564
  }
2253
2565
  for (; ; ) {
2254
- const C = n(T, A);
2566
+ const F = n(T, A);
2255
2567
  let k;
2256
2568
  try {
2257
- k = await w(C);
2569
+ k = await w(F);
2258
2570
  } catch {
2259
2571
  console.warn(`Page ${T} failed, retrying one final time...`);
2260
2572
  try {
2261
- k = await w(C);
2573
+ k = await w(F);
2262
2574
  } catch {
2263
2575
  return B;
2264
2576
  }
@@ -2272,17 +2584,17 @@ const ve = new ln(), un = (e) => {
2272
2584
  outAmount: n.dstAmountOut,
2273
2585
  timestamp: n.timestamp,
2274
2586
  txHash: n.transactionHash
2275
- })), Ge = (e, n) => {
2587
+ })), qe = (e, n) => {
2276
2588
  const o = E(e || 0).gt(1);
2277
2589
  return !o && n === 1 ? j.TWAP_MARKET : n > 1 && o ? j.TWAP_LIMIT : o ? j.LIMIT : j.TWAP_MARKET;
2278
- }, gn = (e, n, o, h) => {
2590
+ }, gn = (e, n, o, y) => {
2279
2591
  var k;
2280
- const l = tt(o || []), A = new E(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(E.ROUND_FLOOR).toNumber(), x = (o == null ? void 0 : o.length) === A ? (k = o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1]) == null ? void 0 : k.timestamp : void 0, w = l.reduce((I, P) => I.plus(P.inAmount), new E(0)).toFixed(), T = l.reduce((I, P) => I.plus(P.outAmount), new E(0)).toFixed(), B = nt(e.ask_srcAmount, w), C = Ge(e.ask_dstMinAmount, A);
2592
+ const l = tt(o || []), A = new E(e.ask_srcAmount || 0).div(e.ask_srcBidAmount).integerValue(E.ROUND_FLOOR).toNumber(), x = (o == null ? void 0 : o.length) === A ? (k = o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1]) == null ? void 0 : k.timestamp : void 0, w = l.reduce((R, P) => R.plus(P.inAmount), new E(0)).toFixed(), T = l.reduce((R, P) => R.plus(P.outAmount), new E(0)).toFixed(), B = nt(e.ask_srcAmount, w), F = qe(e.ask_dstMinAmount, A);
2281
2593
  return {
2282
2594
  version: 1,
2283
2595
  id: e.Contract_id.toString(),
2284
2596
  hash: "",
2285
- type: Ge(e.ask_dstMinAmount, A),
2597
+ type: qe(e.ask_dstMinAmount, A),
2286
2598
  srcTokenAddress: e.ask_srcToken,
2287
2599
  dstTokenAddress: e.ask_dstToken,
2288
2600
  exchangeAddress: e.exchange,
@@ -2303,22 +2615,22 @@ const ve = new ln(), un = (e) => {
2303
2615
  srcAmountPerTrade: e.ask_srcBidAmount,
2304
2616
  txHash: e.transactionHash,
2305
2617
  totalTradesAmount: A,
2306
- isMarketPrice: [j.TWAP_MARKET, j.TRIGGER_PRICE_MARKET].includes(C),
2618
+ isMarketPrice: [j.TWAP_MARKET, j.TRIGGER_PRICE_MARKET].includes(F),
2307
2619
  chainId: n,
2308
2620
  filledOrderTimestamp: x || 0,
2309
- status: h,
2621
+ status: y,
2310
2622
  rawOrder: e
2311
2623
  };
2312
2624
  }, En = (e) => {
2313
- var C;
2625
+ var F;
2314
2626
  if (!e) return "";
2315
2627
  const n = de(
2316
2628
  e.accounts,
2317
2629
  (k) => `"${k.toLowerCase()}"`
2318
2630
  ), o = de(
2319
- Xt(e.configs),
2631
+ qt(e.configs),
2320
2632
  (k) => `"${k.toLowerCase()}"`
2321
- ), h = de(
2633
+ ), y = de(
2322
2634
  e.inTokenSymbols,
2323
2635
  (k) => `"${k.toUpperCase()}"`
2324
2636
  ), l = de(
@@ -2334,7 +2646,7 @@ const ve = new ln(), un = (e) => {
2334
2646
  e.transactionHashes,
2335
2647
  (k) => `"${k.toLowerCase()}"`
2336
2648
  ), w = de(e.orderIds, (k) => `"${k}"`), T = o != null && o.length ? "" : de(
2337
- (C = e.configs) == null ? void 0 : C.map((k) => k.twapAddress),
2649
+ (F = e.configs) == null ? void 0 : F.map((k) => k.twapAddress),
2338
2650
  (k) => `"${k.toLowerCase()}"`
2339
2651
  ), B = e.minDollarValueIn;
2340
2652
  return [
@@ -2344,7 +2656,7 @@ const ve = new ln(), un = (e) => {
2344
2656
  x ? `transactionHash_in: [${x.join(", ")}]` : "",
2345
2657
  w ? `Contract_id_in: [${w.join(", ")}]` : "",
2346
2658
  B ? `dollarValueIn_gte: ${B}` : "",
2347
- h ? `srcTokenSymbol_in: [${h.join(", ")}]` : "",
2659
+ y ? `srcTokenSymbol_in: [${y.join(", ")}]` : "",
2348
2660
  l ? `dstTokenSymbol_in: [${l.join(", ")}]` : "",
2349
2661
  A ? `srcTokenAddress_in: [${A.join(", ")}]` : "",
2350
2662
  g ? `dstTokenAddress_in: [${g.join(", ")}]` : "",
@@ -2358,11 +2670,11 @@ async function xn({
2358
2670
  chainId: e,
2359
2671
  signal: n,
2360
2672
  page: o,
2361
- limit: h,
2673
+ limit: y,
2362
2674
  filters: l
2363
2675
  }) {
2364
- const A = h || 1e3, g = En(l);
2365
- return await Ue({
2676
+ const A = y || 1e3, g = En(l);
2677
+ return await Ne({
2366
2678
  chainId: e,
2367
2679
  signal: n,
2368
2680
  limit: A,
@@ -2414,10 +2726,10 @@ const wn = async ({
2414
2726
  signal: o
2415
2727
  }) => {
2416
2728
  if (n.length === 0) return [];
2417
- const h = Re(n.map((x) => x.Contract_id.toString()));
2418
- if (!h.length) return [];
2419
- const A = `where: { twapId_in: [${h.map((x) => `"${x}"`).join(", ")}]}`;
2420
- return await Ue({
2729
+ const y = Ie(n.map((x) => x.Contract_id.toString()));
2730
+ if (!y.length) return [];
2731
+ const A = `where: { twapId_in: [${y.map((x) => `"${x}"`).join(", ")}]}`;
2732
+ return await Ne({
2421
2733
  chainId: e,
2422
2734
  signal: o,
2423
2735
  limit: 1e3,
@@ -2440,7 +2752,7 @@ const wn = async ({
2440
2752
  }
2441
2753
  });
2442
2754
  };
2443
- function Re(e) {
2755
+ function Ie(e) {
2444
2756
  return Array.from(new Set(e));
2445
2757
  }
2446
2758
  const Tn = async ({
@@ -2448,19 +2760,19 @@ const Tn = async ({
2448
2760
  orders: n,
2449
2761
  signal: o
2450
2762
  }) => {
2451
- const h = Re(n.map((C) => C.Contract_id)), l = Re(n.map((C) => C.twapAddress)).filter(Boolean);
2452
- if (h.length === 0) return [];
2453
- const A = h.join(", "), g = l.map((C) => `"${C}"`).join(", "), x = l.length ? `twapAddress_in: [${g}]` : "", T = `where: { ${[
2763
+ const y = Ie(n.map((F) => F.Contract_id)), l = Ie(n.map((F) => F.twapAddress)).filter(Boolean);
2764
+ if (y.length === 0) return [];
2765
+ const A = y.join(", "), g = l.map((F) => `"${F}"`).join(", "), x = l.length ? `twapAddress_in: [${g}]` : "", T = `where: { ${[
2454
2766
  `TWAP_id_in: [${A}]`,
2455
2767
  x
2456
2768
  ].filter(Boolean).join(", ")} }`;
2457
- return await Ue({
2769
+ return await Ne({
2458
2770
  chainId: e,
2459
2771
  signal: o,
2460
2772
  limit: 1e3,
2461
- buildQuery: (C, k) => `
2773
+ buildQuery: (F, k) => `
2462
2774
  {
2463
- orderFilleds(first: ${k}, orderBy: timestamp, skip: ${C * k}, ${T}) {
2775
+ orderFilleds(first: ${k}, orderBy: timestamp, skip: ${F * k}, ${T}) {
2464
2776
  id
2465
2777
  dstAmountOut
2466
2778
  dstFee
@@ -2476,32 +2788,32 @@ const Tn = async ({
2476
2788
  }
2477
2789
  }
2478
2790
  `,
2479
- extractResults: (C) => {
2791
+ extractResults: (F) => {
2480
2792
  var k;
2481
- return (((k = C.data) == null ? void 0 : k.orderFilleds) || []).map((I) => ({
2482
- ...I,
2483
- timestamp: new Date(I.timestamp).getTime()
2793
+ return (((k = F.data) == null ? void 0 : k.orderFilleds) || []).map((R) => ({
2794
+ ...R,
2795
+ timestamp: new Date(R.timestamp).getTime()
2484
2796
  }));
2485
2797
  }
2486
2798
  });
2487
2799
  };
2488
- class Fn extends Error {
2800
+ class Cn extends Error {
2489
2801
  constructor() {
2490
2802
  super("No graph endpoint found"), this.name = "NoGraphEndpointError";
2491
2803
  }
2492
2804
  }
2493
- const Cn = async ({
2805
+ const Fn = async ({
2494
2806
  chainId: e,
2495
2807
  signal: n,
2496
2808
  page: o,
2497
- limit: h,
2809
+ limit: y,
2498
2810
  filters: l
2499
2811
  }) => {
2500
2812
  const A = await xn({
2501
2813
  chainId: e,
2502
2814
  signal: n,
2503
2815
  page: o,
2504
- limit: h,
2816
+ limit: y,
2505
2817
  filters: l
2506
2818
  }), [g, x] = await Promise.all([
2507
2819
  Tn({ chainId: e, orders: A, signal: n }),
@@ -2509,7 +2821,7 @@ const Cn = async ({
2509
2821
  ]);
2510
2822
  return A.map((T) => {
2511
2823
  const B = g == null ? void 0 : g.filter(
2512
- (C) => C.TWAP_id === Number(T.Contract_id) && Ee(C.exchange, T.exchange) && Ee(C.twapAddress, T.twapAddress)
2824
+ (F) => F.TWAP_id === Number(T.Contract_id) && Ee(F.exchange, T.exchange) && Ee(F.twapAddress, T.twapAddress)
2513
2825
  );
2514
2826
  return gn(
2515
2827
  T,
@@ -2520,45 +2832,45 @@ const Cn = async ({
2520
2832
  }).sort((T, B) => B.createdAt - T.createdAt);
2521
2833
  }, Dn = (e, n, o) => {
2522
2834
  var x;
2523
- const h = (x = o == null ? void 0 : o.find(
2835
+ const y = (x = o == null ? void 0 : o.find(
2524
2836
  (w) => w.twapId === e.Contract_id.toString() && Ee(w.twapAddress, e.twapAddress)
2525
2837
  )) == null ? void 0 : x.status, A = tt(n).reduce((w, T) => w.plus(T.inAmount), new E(0)).toFixed(), g = nt(e.ask_srcAmount, A);
2526
- return kn(g, e.ask_deadline * 1e3, h);
2838
+ return kn(g, e.ask_deadline * 1e3, y);
2527
2839
  }, nt = (e, n) => {
2528
2840
  if (!n || !e) return 0;
2529
2841
  const o = E(n).dividedBy(e).toNumber();
2530
2842
  return o >= 0.99 ? 100 : o <= 0 ? 0 : Number((o * 100).toFixed(2));
2531
- }, kn = (e, n, o) => e === 100 ? se.Completed : o === "CANCELED" ? se.Canceled : o === "COMPLETED" ? se.Completed : n > Date.now() ? se.Open : se.Expired, Fa = async ({
2843
+ }, kn = (e, n, o) => e === 100 ? se.Completed : o === "CANCELED" ? se.Canceled : o === "COMPLETED" ? se.Completed : n > Date.now() ? se.Open : se.Expired, Ca = async ({
2532
2844
  signal: e,
2533
2845
  page: n,
2534
2846
  chainId: o,
2535
- limit: h,
2847
+ limit: y,
2536
2848
  config: l,
2537
2849
  account: A
2538
2850
  }) => (await Promise.all([
2539
- l ? Cn({ chainId: o, signal: e, page: n, limit: h, filters: { accounts: [A], configs: [l] } }) : Promise.resolve([]),
2851
+ l ? Fn({ chainId: o, signal: e, page: n, limit: y, filters: { accounts: [A], configs: [l] } }) : Promise.resolve([]),
2540
2852
  An({ chainId: o, signal: e, account: A })
2541
2853
  ]).then(([w, T]) => [...w, ...T])).sort((w, T) => T.createdAt - w.createdAt);
2542
2854
  export {
2543
2855
  ta as CRASH_ERROR_MESSAGE,
2544
2856
  $ as Configs,
2545
- Ke as DEFAULT_FILL_DELAY,
2857
+ $e as DEFAULT_FILL_DELAY,
2546
2858
  Jn as DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE,
2547
2859
  Yn as DEFAULT_STOP_LOSS_PERCENTAGE,
2548
2860
  ea as DEFAULT_TAKE_PROFIT_LIMIT_PERCENTAGE,
2549
2861
  Zn as DEFAULT_TAKE_PROFIT_PERCENTAGE,
2550
2862
  Qn as DISCLAIMER_URL,
2551
- nn as EIP712_TYPES,
2863
+ Jt as EIP712_TYPES,
2552
2864
  On as ERC20_ABI,
2553
2865
  Hn as EXCLUSIVITY_OVERRIDE_BPS,
2554
2866
  $n as FEES,
2555
2867
  Bn as IWETH_ABI,
2556
- en as LEGACY_EXCHANGES_MAP,
2557
- he as MAX_ORDER_DURATION_MILLIS,
2868
+ Yt as LEGACY_EXCHANGES_MAP,
2869
+ ye as MAX_ORDER_DURATION_MILLIS,
2558
2870
  Wn as MIN_CHUNKS,
2559
- Ie as MIN_FILL_DELAY_MILLIS,
2560
- Qt as MIN_FILL_DELAY_MINUTES,
2561
- $e as MIN_ORDER_DURATION_MILLIS,
2871
+ Re as MIN_FILL_DELAY_MILLIS,
2872
+ Gt as MIN_FILL_DELAY_MINUTES,
2873
+ We as MIN_ORDER_DURATION_MILLIS,
2562
2874
  G as Module,
2563
2875
  Gn as ORBS_LOGO,
2564
2876
  jn as ORBS_LOGO_FALLBACK,
@@ -2567,21 +2879,21 @@ export {
2567
2879
  Xn as ORBS_WEBSITE_URL,
2568
2880
  se as OrderStatus,
2569
2881
  j as OrderType,
2570
- $t as Partners,
2571
- Ye as QUERY_PARAMS,
2882
+ Vt as Partners,
2883
+ Qe as QUERY_PARAMS,
2572
2884
  vn as REPERMIT_ABI,
2573
- tn as REPERMIT_PRIMARY_TYPE,
2885
+ Zt as REPERMIT_PRIMARY_TYPE,
2574
2886
  Vn as SUGGEST_CHUNK_VALUE,
2575
- Yt as THE_GRAPH_ORDERS_API,
2887
+ jt as THE_GRAPH_ORDERS_API,
2576
2888
  _n as TWAP_ABI,
2577
2889
  ne as TimeUnit,
2578
2890
  Pn as amountBN,
2579
- In as amountUi,
2891
+ Rn as amountUi,
2580
2892
  ve as analytics,
2581
2893
  xa as buildRePermitOrderData,
2582
2894
  Ee as eqIgnoreCase,
2583
- Fa as getAccountOrders,
2584
- Qe as getApiEndpoint,
2895
+ Ca as getAccountOrders,
2896
+ Xe as getApiEndpoint,
2585
2897
  ia as getChunks,
2586
2898
  an as getConfig,
2587
2899
  ca as getDeadline,
@@ -2591,30 +2903,30 @@ export {
2591
2903
  Ze as getEstimatedDelayBetweenChunksMillis,
2592
2904
  Ea as getMaxChunksError,
2593
2905
  la as getMaxFillDelayError,
2594
- ya as getMaxOrderDurationError,
2906
+ ha as getMaxOrderDurationError,
2595
2907
  oa as getMaxPossibleChunks,
2596
2908
  ba as getMinFillDelayError,
2597
2909
  Aa as getMinOrderDurationError,
2598
2910
  ga as getMinTradeSizeError,
2599
2911
  da as getMinimumDelayMinutes,
2600
2912
  Nn as getNetwork,
2601
- Un as getOrderFillDelayMillis,
2602
- Mn as getPartnerChains,
2913
+ Mn as getOrderFillDelayMillis,
2914
+ Un as getPartnerChains,
2603
2915
  K as getPartnerIdentifier,
2604
2916
  sn as getPartners,
2605
- Xe as getQueryParam,
2917
+ je as getQueryParam,
2606
2918
  pa as getSrcTokenChunkAmount,
2607
2919
  ma as getStopLossLimitPriceError,
2608
2920
  ua as getStopLossPriceError,
2609
- ha as getTakeProfitLimitPriceError,
2921
+ ya as getTakeProfitLimitPriceError,
2610
2922
  fa as getTakeProfitPriceError,
2611
2923
  sa as getTriggerPricePerChunk,
2612
- Rn as isNativeAddress,
2924
+ In as isNativeAddress,
2613
2925
  zn as maxUint256,
2614
- Jt as nativeTokenAddresses,
2926
+ Qt as nativeTokenAddresses,
2615
2927
  H as networks,
2616
2928
  Ln as setApiMode,
2617
2929
  wa as setUIVersion,
2618
2930
  Ta as submitOrder,
2619
- Zt as zeroAddress
2931
+ Xt as zeroAddress
2620
2932
  };