@aurora-is-near/intents-swap-widget 3.14.0-redesign.7 → 3.14.0-redesign.9

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.
Files changed (97) hide show
  1. package/dist/{config-Behl5hcc.js → config-CG-NCoEP.js} +328 -329
  2. package/dist/config-CG-NCoEP.js.map +1 -0
  3. package/dist/config.js +1 -1
  4. package/dist/errors.js +1 -1
  5. package/dist/ext/alchemy/index.js +1 -1
  6. package/dist/ext/index.js +1 -1
  7. package/dist/features/BalanceRpcLoader/TokenBalanceLoader.js +1 -1
  8. package/dist/features/BalanceRpcLoader/index.js +1 -1
  9. package/dist/features/BalanceRpcLoader/useTokenBalanceRpc.js +1 -1
  10. package/dist/features/ChainsDropdown/index.js +1 -1
  11. package/dist/features/DepositMethodSwitcher.js +1 -1
  12. package/dist/features/ErrorBoundary.js +1 -1
  13. package/dist/features/ExternalDeposit.js +1 -1
  14. package/dist/features/SendAddress/index.js +1 -1
  15. package/dist/features/SendAddress/useNotification.js +1 -1
  16. package/dist/features/SubmitButton/index.js +1 -1
  17. package/dist/features/SuccessScreen/index.js +1 -1
  18. package/dist/features/SwapDirectionSwitcher.js +1 -1
  19. package/dist/features/SwapQuote/SwapQuote.js +1 -1
  20. package/dist/features/SwapQuote/index.js +1 -1
  21. package/dist/features/TokenInput/TokenInput.js +1 -1
  22. package/dist/features/TokenInput/TokenInputEmpty.js +1 -1
  23. package/dist/features/TokenInput/TokenInputSource.js +1 -1
  24. package/dist/features/TokenInput/TokenInputTarget.js +1 -1
  25. package/dist/features/TokenInput/WalletBalance.js +1 -1
  26. package/dist/features/TokenInput/hooks/index.js +1 -1
  27. package/dist/features/TokenInput/hooks/useTokenInputBalance.js +1 -1
  28. package/dist/features/TokenInput/index.js +1 -1
  29. package/dist/features/TokensList/TokenItem.js +1 -1
  30. package/dist/features/TokensList/TokensList.js +1 -1
  31. package/dist/features/TokensList/index.js +1 -1
  32. package/dist/features/TokensModal.js +1 -1
  33. package/dist/features/WalletCompatibilityCheck/WalletCompatibilityModal.js +1 -1
  34. package/dist/features/WalletCompatibilityCheck/index.js +1 -1
  35. package/dist/features/index.js +1 -1
  36. package/dist/hooks/index.js +1 -1
  37. package/dist/hooks/useAllTokens.js +1 -1
  38. package/dist/hooks/useChains.js +1 -1
  39. package/dist/hooks/useCompatibilityCheck.js +1 -1
  40. package/dist/hooks/useDefaultToken.js +1 -1
  41. package/dist/hooks/useExternalDepositStatus/index.js +1 -1
  42. package/dist/hooks/useExternalDepositStatus/usePoaExternalDepositStatus.js +1 -1
  43. package/dist/hooks/useIntentsBalance.js +1 -1
  44. package/dist/hooks/useIsCompatibilityCheckRequired.js +1 -1
  45. package/dist/hooks/useMakeDepositAddress.js +1 -1
  46. package/dist/hooks/useMakeEvmTransfer.d.ts +1 -1
  47. package/dist/hooks/useMakeEvmTransfer.js +1 -1
  48. package/dist/hooks/useMakeEvmTransfer.js.map +1 -1
  49. package/dist/hooks/useMakeIntentsTransfer.js +1 -1
  50. package/dist/hooks/useMakeNEARFtTransferCall.js +1 -1
  51. package/dist/hooks/useMakeQuote.js +1 -1
  52. package/dist/hooks/useMakeQuoteTransfer.js +2 -2
  53. package/dist/hooks/useMakeTransfer.js +1 -1
  54. package/dist/hooks/useMergedBalance.js +1 -1
  55. package/dist/hooks/useSwitchChain.js +1 -1
  56. package/dist/hooks/useTheme.js +1 -1
  57. package/dist/hooks/useToggleTheme.d.ts +6 -1
  58. package/dist/hooks/useToggleTheme.js +16 -13
  59. package/dist/hooks/useToggleTheme.js.map +1 -1
  60. package/dist/hooks/useTokenInputPair.js +1 -1
  61. package/dist/hooks/useTokens.js +1 -1
  62. package/dist/hooks/useTokensFiltered.js +1 -1
  63. package/dist/hooks/useTokensIntentsUnique.js +1 -1
  64. package/dist/index.js +1 -1
  65. package/dist/machine/effects/index.js +1 -1
  66. package/dist/machine/effects/useAlchemyBalanceEffect.js +1 -1
  67. package/dist/machine/effects/useBalancesUpdateEffect.js +1 -1
  68. package/dist/machine/effects/useMakeQuoteEffect.js +1 -1
  69. package/dist/machine/effects/useSelectedTokensEffect.js +1 -1
  70. package/dist/machine/effects/useSetTokenBalanceEffect.js +1 -1
  71. package/dist/machine/effects/useSetTokenIntentsTargetEffect.js +1 -1
  72. package/dist/machine/effects/useWalletConnEffect.js +1 -1
  73. package/dist/machine/events/index.js +1 -1
  74. package/dist/machine/events/tokenSelect.js +1 -1
  75. package/dist/machine/events/validateInputAndMoveTo.js +1 -1
  76. package/dist/machine/events/validateInputs.js +1 -1
  77. package/dist/machine/index.js +1 -1
  78. package/dist/machine/snap.js +1 -1
  79. package/dist/machine/subscriptions/checkers/isSendAddressAsConnected.js +1 -1
  80. package/dist/machine/subscriptions/index.js +1 -1
  81. package/dist/theme/ThemeProvider.js +1 -1
  82. package/dist/types/transfer.d.ts +1 -1
  83. package/dist/utils/intents/signers/near.js +1 -1
  84. package/dist/utils/intents/signers/privy.js +1 -1
  85. package/dist/utils/near/getNearNep141StorageBalance.js +1 -1
  86. package/dist/widgets/WidgetDeposit/WidgetDepositContent.js +1 -1
  87. package/dist/widgets/WidgetDeposit/WidgetDepositSkeleton.js +1 -1
  88. package/dist/widgets/WidgetSwap/WidgetSwapContent.js +1 -1
  89. package/dist/widgets/WidgetSwap/WidgetSwapSkeleton.js +1 -1
  90. package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +1 -1
  91. package/dist/widgets/WidgetWithdraw/WidgetWithdrawSkeleton.js +1 -1
  92. package/package.json +1 -1
  93. package/src/hooks/useMakeEvmTransfer.ts +3 -3
  94. package/src/hooks/useMakeQuoteTransfer.ts +3 -2
  95. package/src/hooks/useToggleTheme.ts +11 -7
  96. package/src/types/transfer.ts +1 -1
  97. package/dist/config-Behl5hcc.js.map +0 -1
@@ -1,86 +1,86 @@
1
1
  import { p as st } from "./index-xuotMAFm.js";
2
- import { jsx as o, jsxs as T, Fragment as Ft } from "react/jsx-runtime";
3
- import Lt from "i18next";
2
+ import { jsx as o, jsxs as T, Fragment as Lt } from "react/jsx-runtime";
3
+ import Bt from "i18next";
4
4
  import { deepClone as pe } from "valtio/utils";
5
5
  import { snapshot as Ne, useSnapshot as oe, proxy as rt } from "valtio";
6
- import { HelmetProvider as Bt, Helmet as qt } from "react-helmet-async";
7
- import { memo as Ut, useEffect as C, useMemo as v, useRef as Y, useCallback as he, useState as re, useId as Pt, Fragment as Wt, createContext as at, useContext as Vt } from "react";
8
- import { useQuery as _e, useInfiniteQuery as Mt, useQueryClient as Qt, QueryClient as $t, QueryClientProvider as Kt } from "@tanstack/react-query";
9
- import { Trans as Ht, I18nextProvider as Gt } from "react-i18next";
10
- import { useTypedTranslation as M, initLocalisation as jt } from "./localisation.js";
6
+ import { HelmetProvider as qt, Helmet as Ut } from "react-helmet-async";
7
+ import { memo as Pt, useEffect as C, useMemo as v, useRef as Y, useCallback as he, useState as re, useId as Wt, Fragment as Vt, createContext as at, useContext as Mt } from "react";
8
+ import { useQuery as _e, useInfiniteQuery as Qt, useQueryClient as $t, QueryClient as Kt, QueryClientProvider as Ht } from "@tanstack/react-query";
9
+ import { Trans as Gt, I18nextProvider as jt } from "react-i18next";
10
+ import { useTypedTranslation as M, initLocalisation as zt } from "./localisation.js";
11
11
  import { logger as b } from "./logger.js";
12
- import { getTonTokenBalance as zt } from "./utils/ton/getTonTokenBalance.js";
13
- import { getSolanaTokenBalance as Yt } from "./utils/solana/getSolanaTokenBalance.js";
12
+ import { getTonTokenBalance as Yt } from "./utils/ton/getTonTokenBalance.js";
13
+ import { getSolanaTokenBalance as Zt } from "./utils/solana/getSolanaTokenBalance.js";
14
14
  import { useWalletAddressForToken as ot } from "./hooks/useWalletAddressForToken.js";
15
15
  import "@headlessui/react";
16
16
  import "framer-motion";
17
17
  import "lucide-react";
18
18
  import { cn as H } from "./utils/cn.js";
19
- import { OneClickService as Zt, QuoteRequest as U, GetExecutionStatusResponse as ee } from "@defuse-protocol/one-click-sdk-typescript";
20
- import { CHAINS_LIST as ye, DEFAULT_CHAIN_ICON as Xt, DEFAULT_CHAINS_ORDER as it, CHAIN_POA_MAP as ct, POA_EVM_CHAIN_ID as lt, CHAIN_BASE_TOKENS as Jt, EVM_CHAIN_IDS_MAP as Te, CHAIN_IDS_MAP as en, EVM_CHAINS as tn } from "./constants/chains.js";
19
+ import { OneClickService as Xt, QuoteRequest as U, GetExecutionStatusResponse as ee } from "@defuse-protocol/one-click-sdk-typescript";
20
+ import { CHAINS_LIST as ye, DEFAULT_CHAIN_ICON as Jt, DEFAULT_CHAINS_ORDER as it, CHAIN_POA_MAP as ct, POA_EVM_CHAIN_ID as lt, CHAIN_BASE_TOKENS as en, EVM_CHAIN_IDS_MAP as Te, CHAIN_IDS_MAP as tn, EVM_CHAINS as nn } from "./constants/chains.js";
21
21
  import "use-debounce";
22
- import { derive as nn } from "derive-valtio";
23
- import { getIsNativeNearDeposit as sn } from "./machine/computed/getIsNativeNearDeposit.js";
24
- import { getIsDirectTokenOnNearDeposit as rn } from "./machine/computed/getIsDirectTokenOnNearDeposit.js";
22
+ import { derive as sn } from "derive-valtio";
23
+ import { getIsNativeNearDeposit as rn } from "./machine/computed/getIsNativeNearDeposit.js";
24
+ import { getIsDirectTokenOnNearDeposit as an } from "./machine/computed/getIsDirectTokenOnNearDeposit.js";
25
25
  import "ethers";
26
26
  import { moveTo as O, machine as Z } from "./machine/machine.js";
27
- import an from "lodash.once";
27
+ import on from "lodash.once";
28
28
  import { guardStates as D } from "./machine/guards/index.js";
29
- import { parse as on } from "./ext/alchemy/parse.js";
30
- import { createLoader as cn } from "./ext/alchemy/load.js";
31
- import { isAlchemySupportedChain as ln } from "./ext/alchemy/types.js";
29
+ import { parse as cn } from "./ext/alchemy/parse.js";
30
+ import { createLoader as ln } from "./ext/alchemy/load.js";
31
+ import { isAlchemySupportedChain as dn } from "./ext/alchemy/types.js";
32
32
  import { fireEvent as p } from "./machine/events/utils/fireEvent.js";
33
33
  import { NATIVE_NEAR_DUMB_ASSET_ID as $, TOKENS_DATA as be, WNEAR_ASSET_ID as ge } from "./constants/tokens.js";
34
- import { isValidChain as dn } from "./utils/checkers/isValidChain.js";
34
+ import { isValidChain as un } from "./utils/checkers/isValidChain.js";
35
35
  import { useWalletBalance as Ee } from "./hooks/useWalletBalance.js";
36
36
  import { getIntentsAccountId as te } from "./utils/intents/getIntentsAccountId.js";
37
- import { getIntentsBalances as un } from "./utils/intents/getIntentsBalance.js";
37
+ import { getIntentsBalances as mn } from "./utils/intents/getIntentsBalance.js";
38
38
  import { notReachable as Ce } from "./utils/notReachable.js";
39
39
  import { getTokenBalanceKey as G } from "./utils/intents/getTokenBalanceKey.js";
40
40
  import { isDryQuote as Re } from "./machine/guards/checks/isDryQuote.js";
41
41
  import { snakeCase as dt } from "change-case";
42
- import mn, { CanceledError as ut, AxiosError as mt } from "axios";
42
+ import fn, { CanceledError as ut, AxiosError as mt } from "axios";
43
43
  import { oneClickApi as Ie, bridgeApi as ft } from "./network.js";
44
44
  import { formatBigToHuman as z } from "./utils/formatters/formatBigToHuman.js";
45
45
  import { getDryQuoteAddress as Pe } from "./utils/getDryQuoteAddress.js";
46
46
  import { isEvmChain as Q } from "./utils/evm/isEvmChain.js";
47
- import { checkNearAccountExists as fn } from "./utils/near/checkNearAccountExists.js";
47
+ import { checkNearAccountExists as pn } from "./utils/near/checkNearAccountExists.js";
48
48
  import { isNotEmptyAmount as ne } from "./utils/checkers/isNotEmptyAmount.js";
49
49
  import { isValidBigint as pt } from "./utils/checkers/isValidBigint.js";
50
50
  import { isNearAddress as ht } from "./utils/near/isNearAddress.js";
51
51
  import { isBalanceSufficient as ve } from "./machine/guards/checks/isBalanceSufficient.js";
52
- import { isQuoteError as De, isTransferError as xe, isAsyncSendAddressValidationError as pn } from "./machine/errors.js";
52
+ import { isQuoteError as De, isTransferError as xe, isAsyncSendAddressValidationError as hn } from "./machine/errors.js";
53
53
  import { isSolanaAddress as Tt } from "./utils/solana/isSolanaAddress.js";
54
54
  import { isEvmAddress as gt } from "./utils/evm/isEvmAddress.js";
55
- import { getMainTokenByChain as hn } from "./utils/tokens/getMainTokenByChain.js";
56
- import { getDefaultIntentsToken as Tn } from "./utils/tokens/getDefaultIntentsToken.js";
57
- import { getTokenWithHighBalance as gn } from "./utils/tokens/getTokenWithHighBalance.js";
58
- import { isQuoteIdle as In } from "./machine/subscriptions/checkers/isQuoteIdle.js";
59
- import { isInputChanged as wn } from "./machine/subscriptions/checkers/isInputChanged.js";
60
- import { isErrorChanged as kn } from "./machine/subscriptions/checkers/isErrorChanged.js";
61
- import { isOnlyErrorChanged as An } from "./machine/subscriptions/checkers/isOnlyErrorChanged.js";
62
- import { isValidInitialState as Sn } from "./machine/subscriptions/checkers/isValidInitialState.js";
63
- import { isWalletDisconnected as Nn } from "./machine/subscriptions/checkers/isWalletDisconnected.js";
64
- import { isSendAddressForbidden as _n } from "./machine/subscriptions/checkers/isSendAddressForbidden.js";
65
- import { isAmountChangedFromQuote as yn } from "./machine/subscriptions/checkers/isAmountChangedFromQuote.js";
66
- import { reset as bn } from "./machine/events/reset.js";
55
+ import { getMainTokenByChain as Tn } from "./utils/tokens/getMainTokenByChain.js";
56
+ import { getDefaultIntentsToken as gn } from "./utils/tokens/getDefaultIntentsToken.js";
57
+ import { getTokenWithHighBalance as In } from "./utils/tokens/getTokenWithHighBalance.js";
58
+ import { isQuoteIdle as wn } from "./machine/subscriptions/checkers/isQuoteIdle.js";
59
+ import { isInputChanged as kn } from "./machine/subscriptions/checkers/isInputChanged.js";
60
+ import { isErrorChanged as An } from "./machine/subscriptions/checkers/isErrorChanged.js";
61
+ import { isOnlyErrorChanged as Sn } from "./machine/subscriptions/checkers/isOnlyErrorChanged.js";
62
+ import { isValidInitialState as Nn } from "./machine/subscriptions/checkers/isValidInitialState.js";
63
+ import { isWalletDisconnected as _n } from "./machine/subscriptions/checkers/isWalletDisconnected.js";
64
+ import { isSendAddressForbidden as yn } from "./machine/subscriptions/checkers/isSendAddressForbidden.js";
65
+ import { isAmountChangedFromQuote as bn } from "./machine/subscriptions/checkers/isAmountChangedFromQuote.js";
66
+ import { reset as En } from "./machine/events/reset.js";
67
67
  import { tokenSelectRotate as we } from "./machine/events/tokenSelectRotate.js";
68
- import { errorSet as En } from "./machine/events/errorSet.js";
69
- import { quoteSet as Cn } from "./machine/events/quoteSet.js";
70
- import { addressSet as Rn } from "./machine/events/addressSet.js";
71
- import { tokenSetAmount as vn } from "./machine/events/tokenSetAmount.js";
72
- import { quoteSetStatus as Dn } from "./machine/events/quoteSetStatus.js";
73
- import { depositTypeSet as xn } from "./machine/events/depositTypeSet.js";
74
- import { externalDepositTxSet as On } from "./machine/events/externalDepositTxSet.js";
75
- import { setInputsValidating as Fn } from "./machine/events/setInputsValidating.js";
76
- import { walletAddressSet as Ln } from "./machine/events/walletAddressSet.js";
77
- import { tokenSetBalance as Bn } from "./machine/events/tokenSetBalance.js";
78
- import { transferSetStatus as qn } from "./machine/events/transferSetStatus.js";
79
- import { getUsdTradeDelta as Un } from "./machine/computed/getUsdTradeDelta.js";
80
- import { getIsDirectNonNearWithdrawal as Pn } from "./machine/computed/getIsDirectNonNearWithdrawal.js";
81
- import { getIsDirectTokenOnNearTransfer as Wn } from "./machine/computed/getIsDirectTokenOnNearTransfer.js";
82
- import { getIsDirectNearTokenWithdrawal as Vn } from "./machine/computed/getIsDirectNearTokenWithdrawal.js";
83
- import { getIsSameAssetDiffChainWithdrawal as Mn } from "./machine/computed/getIsSameAssetDiffChainWithdrawal.js";
68
+ import { errorSet as Cn } from "./machine/events/errorSet.js";
69
+ import { quoteSet as Rn } from "./machine/events/quoteSet.js";
70
+ import { addressSet as vn } from "./machine/events/addressSet.js";
71
+ import { tokenSetAmount as Dn } from "./machine/events/tokenSetAmount.js";
72
+ import { quoteSetStatus as xn } from "./machine/events/quoteSetStatus.js";
73
+ import { depositTypeSet as On } from "./machine/events/depositTypeSet.js";
74
+ import { externalDepositTxSet as Fn } from "./machine/events/externalDepositTxSet.js";
75
+ import { setInputsValidating as Ln } from "./machine/events/setInputsValidating.js";
76
+ import { walletAddressSet as Bn } from "./machine/events/walletAddressSet.js";
77
+ import { tokenSetBalance as qn } from "./machine/events/tokenSetBalance.js";
78
+ import { transferSetStatus as Un } from "./machine/events/transferSetStatus.js";
79
+ import { getUsdTradeDelta as Pn } from "./machine/computed/getUsdTradeDelta.js";
80
+ import { getIsDirectNonNearWithdrawal as Wn } from "./machine/computed/getIsDirectNonNearWithdrawal.js";
81
+ import { getIsDirectTokenOnNearTransfer as Vn } from "./machine/computed/getIsDirectTokenOnNearTransfer.js";
82
+ import { getIsDirectNearTokenWithdrawal as Mn } from "./machine/computed/getIsDirectNearTokenWithdrawal.js";
83
+ import { getIsSameAssetDiffChainWithdrawal as Qn } from "./machine/computed/getIsSameAssetDiffChainWithdrawal.js";
84
84
  import "viem";
85
85
  import { Button as A } from "./components/Button.js";
86
86
  import { TinyNumber as Oe } from "./components/TinyNumber.js";
@@ -88,11 +88,11 @@ import { ErrorMessage as K } from "./components/ErrorMessage.js";
88
88
  import { FT_DEPOSIT_GAS as We, FT_TRANSFER_GAS as Ve } from "./utils/near/config.js";
89
89
  import { a as Fe } from "./index-DEq3oXQF.js";
90
90
  import { z as se } from "zod";
91
- import { decodeQueryResult as Qn } from "./utils/near/decodeQueryResult.js";
92
- import { nearRpcClient as $n } from "./utils/near/rpc.js";
93
- import { getNearNep141MinStorageBalance as Kn } from "./utils/near/getNearNep141MinStorageBalance.js";
91
+ import { decodeQueryResult as $n } from "./utils/near/decodeQueryResult.js";
92
+ import { nearRpcClient as Kn } from "./utils/near/rpc.js";
93
+ import { getNearNep141MinStorageBalance as Hn } from "./utils/near/getNearNep141MinStorageBalance.js";
94
94
  import { INTENTS_CONTRACT as ke } from "./constants/intents.js";
95
- import { isEth as Hn } from "./utils/evm/isEth.js";
95
+ import { isEvmBaseToken as It } from "./utils/evm/isEvmBaseToken.js";
96
96
  import { useMakeEvmTransfer as Gn } from "./hooks/useMakeEvmTransfer.js";
97
97
  import { useMakeSolanaTransfer as jn } from "./hooks/useMakeSolanaTransfer.js";
98
98
  import { isUserDeniedSigning as Ae } from "./utils/checkers/isUserDeniedSigning.js";
@@ -105,7 +105,7 @@ import { utils as Qe } from "@defuse-protocol/internal-utils";
105
105
  import { getTransactionLink as ns } from "./utils/formatters/getTransactionLink.js";
106
106
  import { switchEthereumChain as ss } from "./utils/evm/switchEthereumChain.js";
107
107
  import "copy-text-to-clipboard";
108
- import { SwapQuoteSkeleton as It } from "./features/SwapQuote/SwapQuoteSkeleton.js";
108
+ import { SwapQuoteSkeleton as wt } from "./features/SwapQuote/SwapQuoteSkeleton.js";
109
109
  import { Notes as de } from "./components/Notes.js";
110
110
  import { Accordion as rs } from "./components/Accordion.js";
111
111
  import { formatUsdAmount as $e } from "./utils/formatters/formatUsdAmount.js";
@@ -114,11 +114,11 @@ import os from "clsx";
114
114
  import { Skeleton as is } from "./components/Skeleton.js";
115
115
  import { getBalancePortion as cs } from "./features/TokenInput/utils/getBalancePortion.js";
116
116
  import { getUsdDisplayAmount as ls } from "./features/TokenInput/utils/getUsdDisplayAmount.js";
117
- import { TokenInputHeading as wt } from "./features/TokenInput/TokenInputHeading.js";
117
+ import { TokenInputHeading as kt } from "./features/TokenInput/TokenInputHeading.js";
118
118
  import { noop as ds } from "./utils/noop.js";
119
119
  import { Card as ie } from "./components/Card.js";
120
120
  import { Badge as Ke } from "./components/Badge.js";
121
- import { TokenIcon as kt } from "./components/TokenIcon.js";
121
+ import { TokenIcon as At } from "./components/TokenIcon.js";
122
122
  import { InputAmount as us } from "./components/InputAmount.js";
123
123
  import { TokenInputSkeleton as ms } from "./features/TokenInput/TokenInputSkeleton.js";
124
124
  import { getUsdDisplayBalance as fs } from "./utils/formatters/getUsdDisplayBalance.js";
@@ -131,22 +131,21 @@ import { createFilterBySearch as gs } from "./utils/tokens/filterBySearchString.
131
131
  import { createFilterBySelectedChain as Is } from "./utils/tokens/filterBySelectedChain.js";
132
132
  import "bs58";
133
133
  import "viem/chains";
134
- import { isBrowser as At } from "browser-or-node";
134
+ import { isBrowser as St } from "browser-or-node";
135
135
  import "qrcode.react";
136
136
  import { createColorPalette as ws } from "./theme/createColorPalette.js";
137
137
  import { ArmingCountdownFill as ks, BeenhereFill as As, EncryptedFill as Ss, AccountBalanceWalletFill as Ns, CheckCircleFill as _s, GppBadFill as ys } from "@material-symbols-svg/react-rounded";
138
138
  import { useTimer as bs } from "use-timer";
139
- import { CloseButton as St } from "./components/CloseButton.js";
139
+ import { CloseButton as Nt } from "./components/CloseButton.js";
140
140
  import { DEFAULT_RPCS as Es } from "./rpcs.js";
141
141
  import { useAddClassToPortal as Cs } from "./hooks/useAddClassToPortal.js";
142
142
  import { ErrorBoundary as Rs } from "react-error-boundary";
143
143
  import { isEvmToken as vs } from "./utils/evm/isEvmToken.js";
144
- import { isEvmBaseToken as Ds } from "./utils/evm/isEvmBaseToken.js";
145
- import { getEvmMainTokenBalance as xs } from "./utils/evm/getEvmMainTokenBalance.js";
146
- import { getNativeNearBalance as Os } from "./utils/near/getNativeNearBalance.js";
147
- import { getNearTokenBalance as Fs } from "./utils/near/getNearTokenBalance.js";
148
- import { getEvmTokenBalance as Ls } from "./utils/evm/getEvmTokenBalance.js";
149
- function Bs({ rpcs: e, token: t, connectedWallets: r }) {
144
+ import { getEvmMainTokenBalance as Ds } from "./utils/evm/getEvmMainTokenBalance.js";
145
+ import { getNativeNearBalance as xs } from "./utils/near/getNativeNearBalance.js";
146
+ import { getNearTokenBalance as Os } from "./utils/near/getNearTokenBalance.js";
147
+ import { getEvmTokenBalance as Fs } from "./utils/evm/getEvmTokenBalance.js";
148
+ function Ls({ rpcs: e, token: t, connectedWallets: r }) {
150
149
  const { walletSupportedChains: s, tonCenterApiKey: n, alchemyApiKey: a } = y(), { walletAddress: l } = ot(r, t);
151
150
  return _e({
152
151
  retry: 2,
@@ -156,32 +155,32 @@ function Bs({ rpcs: e, token: t, connectedWallets: r }) {
156
155
  if (!l)
157
156
  return null;
158
157
  if (t.blockchain === "near" && s.includes(t.blockchain))
159
- return !e.near || e.near.length === 0 ? null : t.assetId === $ ? Os(l, e.near) : Fs(t, l, e.near);
158
+ return !e.near || e.near.length === 0 ? null : t.assetId === $ ? xs(l, e.near) : Os(t, l, e.near);
160
159
  if (!s.includes("eth") && Q(t.blockchain))
161
160
  return null;
162
- if (Q(t.blockchain) && Ds(t)) {
161
+ if (Q(t.blockchain) && It(t)) {
163
162
  const c = e[t.blockchain] ?? [];
164
- return c.length > 0 ? xs(l, c[0]) : null;
163
+ return c.length > 0 ? Ds(l, c[0]) : null;
165
164
  }
166
165
  if (vs(t) || Q(t.blockchain)) {
167
166
  const c = e[t.blockchain] ?? [];
168
- return c.length > 0 ? Ls(t, l, c[0]) : null;
167
+ return c.length > 0 ? Fs(t, l, c[0]) : null;
169
168
  }
170
- return t.blockchain === "ton" ? zt(t, l, n) : t.blockchain === "sol" && s.includes(t.blockchain) ? Yt(t, l, a) : (b.warn(
169
+ return t.blockchain === "ton" ? Yt(t, l, n) : t.blockchain === "sol" && s.includes(t.blockchain) ? Zt(t, l, a) : (b.warn(
171
170
  `Failed to fetch token balance for ${t.symbol} on ${t.blockchain}`
172
171
  ), null);
173
172
  }
174
173
  });
175
174
  }
176
- const qs = ({
175
+ const Bs = ({
177
176
  rpcs: e,
178
177
  token: t,
179
178
  onBalancesLoaded: r
180
179
  }) => (C(() => {
181
180
  t.isIntent || !Object.keys(e).includes(t.blockchain) || r({ [t.assetId]: "0" });
182
- }, [t.assetId]), null), Nt = Ut(
181
+ }, [t.assetId]), null), _t = Pt(
183
182
  ({ rpcs: e, token: t, connectedWallets: r, onBalancesLoaded: s }) => {
184
- const { data: n } = Bs({
183
+ const { data: n } = Ls({
185
184
  rpcs: e,
186
185
  token: t,
187
186
  connectedWallets: r
@@ -192,13 +191,13 @@ const qs = ({
192
191
  },
193
192
  (e, t) => e.token.assetId === t.token.assetId && e.connectedWallets === t.connectedWallets
194
193
  );
195
- Nt.displayName = "TokenBalanceLoader";
196
- const Ge = Object.assign(Nt, {
197
- Zero: qs
198
- }), Us = (e) => {
194
+ _t.displayName = "TokenBalanceLoader";
195
+ const Ge = Object.assign(_t, {
196
+ Zero: Bs
197
+ }), qs = (e) => {
199
198
  const t = e.toLowerCase();
200
199
  return be[t]?.icon ?? "";
201
- }, je = (e) => ye[e].icon ?? Xt, Ps = (e) => `${e?.charAt(0).toUpperCase()}${e?.slice(1)}`, Ws = (e) => be[e]?.name ?? e, P = (e) => {
200
+ }, je = (e) => ye[e].icon ?? Jt, Us = (e) => `${e?.charAt(0).toUpperCase()}${e?.slice(1)}`, Ps = (e) => be[e]?.name ?? e, P = (e) => {
202
201
  const {
203
202
  showIntentTokens: t,
204
203
  allowedTokensList: r,
@@ -209,23 +208,23 @@ const Ge = Object.assign(Nt, {
209
208
  fetchTargetTokens: c
210
209
  } = y(), { data: d, ...u } = _e({
211
210
  queryKey: ["tokens", e].filter(Boolean),
212
- queryFn: async () => e === "source" && l ? l() : e === "target" && c ? c() : Zt.getTokens()
211
+ queryFn: async () => e === "source" && l ? l() : e === "target" && c ? c() : Xt.getTokens()
213
212
  }), i = v(() => {
214
213
  if (!d)
215
214
  return [];
216
215
  const m = d.map((f) => {
217
216
  const w = f.blockchain.toLowerCase();
218
- return !dn(w) || r && !r.includes(f.assetId) || e === "source" && s && !s.includes(f.assetId) || e === "target" && n && !n.includes(f.assetId) ? null : {
217
+ return !un(w) || r && !r.includes(f.assetId) || e === "source" && s && !s.includes(f.assetId) || e === "target" && n && !n.includes(f.assetId) ? null : {
219
218
  assetId: f.assetId,
220
219
  symbol: f.symbol,
221
220
  decimals: f.decimals,
222
221
  price: f.price,
223
222
  blockchain: w,
224
223
  isIntent: !1,
225
- icon: f.icon ?? Us(f.symbol),
226
- name: Ws(f.symbol),
224
+ icon: f.icon ?? qs(f.symbol),
225
+ name: Ps(f.symbol),
227
226
  chainIcon: je(w),
228
- chainName: ye[f.blockchain]?.label ?? Ps(f.blockchain),
227
+ chainName: ye[f.blockchain]?.label ?? Us(f.blockchain),
229
228
  contractAddress: f.contractAddress
230
229
  };
231
230
  }).filter((f) => !!f).filter(a ?? (() => !0)), h = m.filter(
@@ -255,7 +254,7 @@ const Ge = Object.assign(Nt, {
255
254
  ...u,
256
255
  tokens: i
257
256
  };
258
- }, Vs = () => {
257
+ }, Ws = () => {
259
258
  const { tokens: e } = P(), { tokens: t } = P("source"), { tokens: r } = P("target");
260
259
  return { tokens: v(() => {
261
260
  const n = {};
@@ -273,7 +272,7 @@ const Ge = Object.assign(Nt, {
273
272
  { near: ["USDT", "USDC", "AURORA"] },
274
273
  { arb: ["ARB", "ETH", "USDT", "USDC"] },
275
274
  { btc: ["BTC"] }
276
- ], Ms = (e) => [...e].sort((t, r) => {
275
+ ], Vs = (e) => [...e].sort((t, r) => {
277
276
  const s = ue.findIndex(
278
277
  (d) => Object.keys(d)[0] === t.blockchain
279
278
  ), n = ue.findIndex(
@@ -283,9 +282,9 @@ const Ge = Object.assign(Nt, {
283
282
  return s === -1 ? 1 : n === -1 ? -1 : s - n;
284
283
  const a = ue[s]?.[t.blockchain] ?? [], l = a.indexOf(t.symbol), c = a.indexOf(r.symbol);
285
284
  return l === -1 && c === -1 ? 0 : l === -1 ? 1 : c === -1 ? -1 : l - c;
286
- }), Qs = ({ rpcs: e, connectedWallets: t }) => {
287
- const { tokens: r } = Vs(), { walletSupportedChains: s } = y(), { setWalletBalance: n } = Ee(t);
288
- return v(() => Ms(r), [r]).map((l) => s.includes(l.blockchain) ? /* @__PURE__ */ o(
285
+ }), Ms = ({ rpcs: e, connectedWallets: t }) => {
286
+ const { tokens: r } = Ws(), { walletSupportedChains: s } = y(), { setWalletBalance: n } = Ee(t);
287
+ return v(() => Vs(r), [r]).map((l) => s.includes(l.blockchain) ? /* @__PURE__ */ o(
289
288
  Ge,
290
289
  {
291
290
  rpcs: e,
@@ -304,7 +303,7 @@ const Ge = Object.assign(Nt, {
304
303
  G(l)
305
304
  ));
306
305
  };
307
- function $s(e, t) {
306
+ function Qs(e, t) {
308
307
  const r = Array.from(
309
308
  /* @__PURE__ */ new Set([...t ?? [], ...it])
310
309
  ), s = new Map(r.map((n, a) => [n, a]));
@@ -313,7 +312,7 @@ function $s(e, t) {
313
312
  return l !== c ? l - c : n.id.localeCompare(a.id, void 0, { sensitivity: "base" });
314
313
  });
315
314
  }
316
- const Ks = (e) => {
315
+ const $s = (e) => {
317
316
  const {
318
317
  chainsOrder: t,
319
318
  allowedChainsList: r,
@@ -324,18 +323,18 @@ const Ks = (e) => {
324
323
  const l = Array.from(
325
324
  new Set(a.map((c) => ye[c.blockchain]))
326
325
  ).filter((c) => !(r && !r.includes(c.id) || e === "source" && s && !s.includes(c.id) || e === "target" && n && !n.includes(c.id)));
327
- return $s(l, t);
326
+ return Qs(l, t);
328
327
  }, [a, t, r]);
329
- }, ze = 3, _t = ({
328
+ }, ze = 3, yt = ({
330
329
  connectedWallets: e,
331
330
  alchemyApiKey: t,
332
331
  ...r
333
332
  }) => {
334
- const { ctx: s } = _(), { tokens: n } = P(), { walletSupportedChains: a } = y(), { setWalletBalance: l } = Ee(e), c = r.isEnabled && !!Object.values(e).length && a.length > 0, d = Mt({
333
+ const { ctx: s } = _(), { tokens: n } = P(), { walletSupportedChains: a } = y(), { setWalletBalance: l } = Ee(e), c = r.isEnabled && !!Object.values(e).length && a.length > 0, d = Qt({
335
334
  initialPageParam: null,
336
335
  enabled: !!c && !!t,
337
336
  queryKey: ["walletTokensBalance", e],
338
- queryFn: async ({ pageParam: i }) => cn({ alchemyApiKey: t })({
337
+ queryFn: async ({ pageParam: i }) => ln({ alchemyApiKey: t })({
339
338
  pageParam: i ? `${i}` : null,
340
339
  connectedWallets: e,
341
340
  walletSupportedChains: a
@@ -351,12 +350,12 @@ const Ks = (e) => {
351
350
  const u = v(() => {
352
351
  if (!d.data?.pages)
353
352
  return {};
354
- const i = on(
353
+ const i = cn(
355
354
  n,
356
355
  d.data.pages.flatMap((m) => m.data)
357
356
  );
358
357
  return n.forEach((m) => {
359
- ln(m.blockchain) && !(m.assetId in i) && (i[m.assetId] = "0");
358
+ dn(m.blockchain) && !(m.assetId in i) && (i[m.assetId] = "0");
360
359
  }), i;
361
360
  }, [d.data, n]);
362
361
  return C(() => {
@@ -375,7 +374,7 @@ const Ks = (e) => {
375
374
  }), a = _e({
376
375
  enabled: !!t && !!n && r.length > 0,
377
376
  queryKey: ["intentsBalances", n],
378
- queryFn: async () => n ? await un(n, s) : {}
377
+ queryFn: async () => n ? await mn(n, s) : {}
379
378
  }), l = v(() => {
380
379
  switch (a.status) {
381
380
  case "error":
@@ -397,11 +396,11 @@ const Ks = (e) => {
397
396
  ...a,
398
397
  intentBalances: l
399
398
  };
400
- }, Hs = ({
399
+ }, Ks = ({
401
400
  isEnabled: e,
402
401
  alchemyApiKey: t
403
402
  }) => {
404
- const { connectedWallets: r } = y(), { ctx: s } = _(), n = Qt(), { refetch: a } = ce(), { refetch: l } = _t({
403
+ const { connectedWallets: r } = y(), { ctx: s } = _(), n = $t(), { refetch: a } = ce(), { refetch: l } = yt({
405
404
  isEnabled: e,
406
405
  connectedWallets: r,
407
406
  alchemyApiKey: t ?? ""
@@ -418,7 +417,7 @@ const Ks = (e) => {
418
417
  () => ({ ...r, ...t }),
419
418
  [r, t]
420
419
  ) };
421
- }, Gs = ({ isEnabled: e }) => {
420
+ }, Hs = ({ isEnabled: e }) => {
422
421
  const { ctx: t } = _(), { mergedBalance: r } = le();
423
422
  C(() => {
424
423
  if (!e)
@@ -445,7 +444,7 @@ const Ks = (e) => {
445
444
  "nep245:v2_1.omni.hot.tg:56_SZzgw3HSudhZcTwPWUTi2RJB19t": "nep141:wrap.near",
446
445
  // BTC (near)
447
446
  "nep141:btc.omft.near": "nep141:nbtc.bridge.near"
448
- }, js = ({
447
+ }, Gs = ({
449
448
  isEnabled: e
450
449
  }) => {
451
450
  const { ctx: t } = _(), { tokens: r } = P();
@@ -484,7 +483,7 @@ const Ks = (e) => {
484
483
  token: a ?? l
485
484
  });
486
485
  }, [r, t.sourceToken]);
487
- }, zs = ({ isEnabled: e }) => {
486
+ }, js = ({ isEnabled: e }) => {
488
487
  const { connectedWallets: t } = y(), { ctx: r, state: s } = _(), { walletAddress: n } = ot(
489
488
  t,
490
489
  r.sourceToken
@@ -494,10 +493,10 @@ const Ks = (e) => {
494
493
  return;
495
494
  p("walletAddressSet", n), D(r, ["initial_dry", "initial_wallet"]) && (s === "initial_wallet" && !n ? O("initial_dry") : s === "initial_dry" && n && O("initial_wallet"));
496
495
  }, [e, n, r, s]);
497
- }, Ys = (e) => (["depositAddress"].forEach((t) => {
496
+ }, zs = (e) => (["depositAddress"].forEach((t) => {
498
497
  if (!(t in e))
499
498
  return b.error(`Missing ${t} in quote response`), !1;
500
- }), !0), Zs = () => {
499
+ }), !0), Ys = () => {
501
500
  const { ctx: e } = _(), {
502
501
  walletSupportedChains: t,
503
502
  intentsAccountType: r,
@@ -627,7 +626,7 @@ const Ks = (e) => {
627
626
  ...F,
628
627
  deadline: void 0,
629
628
  depositAddress: void 0
630
- } : (Ys(F), {
629
+ } : (zs(F), {
631
630
  dry: !1,
632
631
  ...F,
633
632
  deadline: F.deadline,
@@ -638,7 +637,7 @@ const Ks = (e) => {
638
637
  u.current.abort("Abort quote manually"), u.current = new AbortController();
639
638
  }
640
639
  };
641
- }, Xs = () => {
640
+ }, Zs = () => {
642
641
  const { ctx: e } = _(), { intentsAccountType: t } = y(), { isNativeNearDeposit: r } = j(), s = te({
643
642
  addressType: t,
644
643
  walletAddress: e.walletAddress ?? ""
@@ -763,7 +762,7 @@ const Ks = (e) => {
763
762
  return;
764
763
  let t = !1;
765
764
  try {
766
- p("setInputsValidating", !0), t = await fn(e.sendAddress);
765
+ p("setInputsValidating", !0), t = await pn(e.sendAddress);
767
766
  } catch {
768
767
  Ze({
769
768
  code: "SEND_ADDRESS_IS_NOT_VERIFIED",
@@ -778,14 +777,14 @@ const Ks = (e) => {
778
777
  }), O("initial_wallet");
779
778
  return;
780
779
  }
781
- e.error ? pn(e.error) && (p("errorSet", null), O("input_valid_external")) : O("input_valid_external");
782
- }, yt = (e) => {
780
+ e.error ? hn(e.error) && (p("errorSet", null), O("input_valid_external")) : O("input_valid_external");
781
+ }, bt = (e) => {
783
782
  const t = D(e, ["initial_dry"]), r = D(e, ["input_valid_dry"]);
784
783
  if (!t && !r)
785
784
  return;
786
785
  let s;
787
786
  return t && (e.sourceToken ? e.targetToken ? ne(e.sourceTokenAmount) ? e.walletAddress && !ve(e) && (s = { code: "SOURCE_BALANCE_INSUFFICIENT" }) : s = { code: "SOURCE_TOKEN_AMOUNT_IS_EMPTY" } : s = { code: "TARGET_TOKEN_IS_EMPTY" } : s = { code: "SOURCE_TOKEN_IS_EMPTY" }), !r && s ? p("errorSet", s) : e.error && !De(e.error) && !xe(e.error) && p("errorSet", null), r && s?.code === "SOURCE_BALANCE_INSUFFICIENT" && p("errorSet", s), r;
788
- }, bt = (e) => {
787
+ }, Et = (e) => {
789
788
  const t = D(e, ["initial_wallet"]), r = D(e, ["input_valid_external"]);
790
789
  if (!t && !r)
791
790
  return;
@@ -795,21 +794,21 @@ const Ks = (e) => {
795
794
  code: "SEND_ADDRESS_IS_INVALID",
796
795
  meta: { address: e.sendAddress, chain: "near" }
797
796
  } : e.isDepositFromExternalWallet || (!s || !pt(s) ? n = { code: "INVALID_SOURCE_BALANCE" } : ve(e) || (n = { code: "SOURCE_BALANCE_INSUFFICIENT" })) : n = { code: "SEND_ADDRESS_IS_EMPTY" } : n = { code: "SOURCE_TOKEN_AMOUNT_IS_EMPTY" } : n = { code: "TARGET_TOKEN_IS_EMPTY" } : n = { code: "SOURCE_TOKEN_IS_EMPTY" }), r && e.targetToken.blockchain === "near" && Xe(e), !r && n ? p("errorSet", n) : e.error && !De(e.error) && !xe(e.error) && p("errorSet", null), r;
798
- }, Et = (e) => {
797
+ }, Ct = (e) => {
799
798
  const t = D(e, ["initial_wallet"]), r = D(e, ["input_valid_internal"]);
800
799
  if (!t && !r)
801
800
  return;
802
801
  const s = e.sourceTokenBalance;
803
802
  let n;
804
803
  return t && (e.sourceToken ? e.targetToken ? e.targetToken.isIntent ? ne(e.sourceTokenAmount) ? e.isDepositFromExternalWallet || (!s || !pt(s) ? n = { code: "INVALID_SOURCE_BALANCE" } : ve(e) || (n = { code: "SOURCE_BALANCE_INSUFFICIENT" })) : n = { code: "SOURCE_TOKEN_AMOUNT_IS_EMPTY" } : n = { code: "SOURCE_TOKEN_NOT_INTENT" } : n = { code: "TARGET_TOKEN_IS_EMPTY" } : n = { code: "SOURCE_TOKEN_IS_EMPTY" }), !r && n ? p("errorSet", n) : e.error && !De(e.error) && !xe(e.error) && p("errorSet", null), r;
805
- }, Ct = (e) => {
804
+ }, Rt = (e) => {
806
805
  const t = Re(e), r = !t && e.targetToken?.isIntent === !0, s = !t && e.targetToken?.isIntent === !1;
807
806
  if (t) {
808
- const n = yt(e);
807
+ const n = bt(e);
809
808
  return O(n ? "input_valid_dry" : "initial_dry");
810
809
  }
811
- s && bt(e) ? O("input_valid_external") : r && Et(e) ? O("input_valid_internal") : O("initial_wallet");
812
- }, Js = ({
810
+ s && Et(e) ? O("input_valid_external") : r && Ct(e) ? O("input_valid_internal") : O("initial_wallet");
811
+ }, Xs = ({
813
812
  isEnabled: e,
814
813
  message: t,
815
814
  type: r = "exact_in",
@@ -822,7 +821,7 @@ const Ks = (e) => {
822
821
  isDirectNearTokenWithdrawal: d,
823
822
  isDirectTokenOnNearTransfer: u,
824
823
  isSameAssetDiffChainWithdrawal: i
825
- } = j(), m = Re(n), h = e && !n.areInputsValidating && (i || (c || a) && n.isDepositFromExternalWallet || !d && !l && !c && !u), { make: g, cancel: f } = Zs(), { make: w, cancel: S } = Xs(), E = Y(null), B = () => {
824
+ } = j(), m = Re(n), h = e && !n.areInputsValidating && (i || (c || a) && n.isDepositFromExternalWallet || !d && !l && !c && !u), { make: g, cancel: f } = Ys(), { make: w, cancel: S } = Zs(), E = Y(null), B = () => {
826
825
  f(), S();
827
826
  };
828
827
  C(() => {
@@ -855,7 +854,7 @@ const Ks = (e) => {
855
854
  p("quoteSetStatus", "idle"), p("quoteSet", void 0), p("errorSet", null);
856
855
  return;
857
856
  }
858
- p("quoteSetStatus", "error"), p("quoteSet", void 0), p("errorSet", k.data), Ct(n);
857
+ p("quoteSetStatus", "error"), p("quoteSet", void 0), p("errorSet", k.data), Rt(n);
859
858
  return;
860
859
  }
861
860
  b.error("Unhandled error in useMakeQuoteEffect:", k), p("quoteSetStatus", "error"), p("quoteSet", void 0), p("errorSet", {
@@ -880,18 +879,18 @@ const Ks = (e) => {
880
879
  sol: "sol",
881
880
  evm: "eth",
882
881
  near: "near"
883
- }, er = ({
882
+ }, Js = ({
884
883
  isEnabled: e,
885
884
  skipIntents: t = !1,
886
885
  target: r = "none"
887
886
  }) => {
888
- const { tokens: s } = P(), { ctx: n, state: a } = _(), { intentBalances: l } = ce(), { walletSupportedChains: c, chainsFilter: d, intentsAccountType: u } = y(), i = gn({
887
+ const { tokens: s } = P(), { ctx: n, state: a } = _(), { intentBalances: l } = ce(), { walletSupportedChains: c, chainsFilter: d, intentsAccountType: u } = y(), i = In({
889
888
  tokens: s,
890
889
  walletSupportedChains: c,
891
890
  balances: l,
892
891
  across: "intents"
893
892
  }), [m, h] = v(() => !n.walletAddress && !t ? [
894
- { token: Tn({ tokens: s }), status: "loaded" },
893
+ { token: gn({ tokens: s }), status: "loaded" },
895
894
  { token: void 0, status: "loaded" }
896
895
  ] : d.source.intents !== "none" && !t ? i ? [
897
896
  { token: i, status: "loaded" },
@@ -900,7 +899,7 @@ const Ks = (e) => {
900
899
  { token: void 0, status: "loading" },
901
900
  { token: void 0, status: "loading" }
902
901
  ] : [
903
- { token: hn({
902
+ { token: Tn({
904
903
  tokens: s,
905
904
  walletSupportedChains: c
906
905
  }), status: "loaded" },
@@ -943,7 +942,7 @@ const Ks = (e) => {
943
942
  }, [n, m, h, e]);
944
943
  const g = (f, w) => {
945
944
  const S = s.find(
946
- (E) => !E.isIntent && E.blockchain === me[f] && E.symbol.toLowerCase() === Jt[me[f]]?.toLowerCase()
945
+ (E) => !E.isIntent && E.blockchain === me[f] && E.symbol.toLowerCase() === en[me[f]]?.toLowerCase()
947
946
  ) ?? w;
948
947
  p("tokenSelect", {
949
948
  variant: "source",
@@ -967,31 +966,31 @@ const Ks = (e) => {
967
966
  }, 3e3);
968
967
  return () => clearTimeout(S);
969
968
  }, [s, m, t]), { source: n.sourceToken, target: n.targetToken };
970
- }, tr = ({
969
+ }, er = ({
971
970
  isEnabled: e,
972
971
  alchemyApiKey: t
973
972
  }) => {
974
973
  const { connectedWallets: r } = y();
975
- _t({
974
+ yt({
976
975
  isEnabled: e,
977
976
  connectedWallets: r,
978
977
  alchemyApiKey: t ?? ""
979
978
  });
980
- }, nr = (e, t) => {
979
+ }, tr = (e, t) => {
981
980
  const { config: r } = Ne(Ue);
982
981
  return e.targetToken && !e.sendAddress && !!e.walletAddress && !e.targetToken.isIntent && !t.find((s) => s?.key === "sendAddress") && r.walletSupportedChains.includes(e.targetToken.blockchain);
983
- }, sr = ({ debug: e }) => {
982
+ }, nr = ({ debug: e }) => {
984
983
  Z.onContextChange((t, r) => {
985
984
  const s = r;
986
- if (e && b.debug("[WIDGET] Context changed", s), e && t.error && kn(s) && b.debug(`[WIDGET] Error set to ${t.error.code}`), An(s) || yn(t, s, e))
985
+ if (e && b.debug("[WIDGET] Context changed", s), e && t.error && An(s) && b.debug(`[WIDGET] Error set to ${t.error.code}`), Sn(s) || bn(t, s, e))
987
986
  return;
988
- if (Nn(t, s)) {
987
+ if (_n(t, s)) {
989
988
  p("reset", { clearWalletAddress: !0 }), O("initial_dry");
990
989
  return;
991
990
  }
992
- const { isChanged: n, isDry: a } = wn(t, s);
991
+ const { isChanged: n, isDry: a } = kn(t, s);
993
992
  if (n) {
994
- if (Sn(t)) {
993
+ if (Nn(t)) {
995
994
  const l = a ? "initial_dry" : "initial_wallet";
996
995
  O(l, {
997
996
  onMoved: () => {
@@ -1001,14 +1000,14 @@ const Ks = (e) => {
1001
1000
  }
1002
1001
  });
1003
1002
  }
1004
- In(t) || (t.quote = void 0, t.quoteStatus = "idle", t.transferStatus = { status: "idle" }), _n(t) && (t.sendAddress = void 0), nr(t, s) && (t.sendAddress = t.walletAddress), Ct(t);
1003
+ wn(t) || (t.quote = void 0, t.quoteStatus = "idle", t.transferStatus = { status: "idle" }), yn(t) && (t.sendAddress = void 0), tr(t, s) && (t.sendAddress = t.walletAddress), Rt(t);
1005
1004
  }
1006
1005
  });
1007
- }, rr = ({ debug: e }) => {
1006
+ }, sr = ({ debug: e }) => {
1008
1007
  Z.onTransition((t, r) => {
1009
1008
  e && b.debug(`===> [WIDGET] State moved from ${t} to ${r}`);
1010
1009
  });
1011
- }, ar = (e, t) => {
1010
+ }, rr = (e, t) => {
1012
1011
  const { variant: r, token: s } = t, { config: n } = Ne(Ue);
1013
1012
  switch (r) {
1014
1013
  case "source":
@@ -1037,15 +1036,15 @@ const Ks = (e) => {
1037
1036
  }, R = (e, t) => Z.on(
1038
1037
  e,
1039
1038
  (r, s) => t(r, s, Z)
1040
- ), or = () => {
1041
- R("quoteSetStatus", Dn), R("walletAddressSet", Ln), R("transferSetStatus", qn), R("tokenSelectRotate", we), R("tokenSetBalance", Bn), R("tokenSetAmount", vn), R("depositTypeSet", xn), R("setInputsValidating", Fn), R("externalDepositTxSet", On), R("tokenSelect", ar), R("addressSet", Rn), R("errorSet", En), R("quoteSet", Cn), R("reset", bn), R("validateDryInputs", yt), R("validateExternalInputs", bt), R("validateInternalInputs", Et);
1042
- }, ir = an(({ debug: e }) => {
1039
+ ), ar = () => {
1040
+ R("quoteSetStatus", xn), R("walletAddressSet", Bn), R("transferSetStatus", Un), R("tokenSelectRotate", we), R("tokenSetBalance", qn), R("tokenSetAmount", Dn), R("depositTypeSet", On), R("setInputsValidating", Ln), R("externalDepositTxSet", Fn), R("tokenSelect", rr), R("addressSet", vn), R("errorSet", Cn), R("quoteSet", Rn), R("reset", En), R("validateDryInputs", bt), R("validateExternalInputs", Et), R("validateInternalInputs", Ct);
1041
+ }, or = on(({ debug: e }) => {
1043
1042
  e && b.debug(
1044
- "[WIDGET] Debug mode is enabled (package version: 3.14.0-redesign.7)"
1045
- ), or(), rr({ debug: e }), sr({ debug: e });
1046
- }), Bi = ({ listenTo: e, debug: t = !1 }) => {
1043
+ "[WIDGET] Debug mode is enabled (package version: 3.14.0-redesign.9)"
1044
+ ), ar(), sr({ debug: e }), nr({ debug: e });
1045
+ }), Fi = ({ listenTo: e, debug: t = !1 }) => {
1047
1046
  C(() => {
1048
- ir({ debug: t });
1047
+ or({ debug: t });
1049
1048
  }, [t]);
1050
1049
  const r = e.find(
1051
1050
  (a) => Array.isArray(a) && a[0] === "setBalancesUsingAlchemyExt"
@@ -1054,85 +1053,85 @@ const Ks = (e) => {
1054
1053
  ), n = e.find(
1055
1054
  (a) => Array.isArray(a) && a[0] === "makeQuote"
1056
1055
  );
1057
- tr({
1056
+ er({
1058
1057
  isEnabled: !!r,
1059
1058
  alchemyApiKey: r?.[1].alchemyApiKey
1060
- }), er({
1059
+ }), Js({
1061
1060
  isEnabled: !!s,
1062
1061
  skipIntents: s?.[1].skipIntents,
1063
1062
  target: s?.[1].target
1064
- }), Js({
1063
+ }), Xs({
1065
1064
  isEnabled: !!n,
1066
1065
  message: n?.[1].message,
1067
1066
  type: n?.[1].type,
1068
1067
  refetchQuoteInterval: n?.[1].refetchQuoteInterval
1069
- }), zs({
1068
+ }), js({
1070
1069
  isEnabled: e.includes("checkWalletConnection")
1071
- }), Gs({
1070
+ }), Hs({
1072
1071
  isEnabled: e.includes("setSourceTokenBalance")
1073
- }), js({
1072
+ }), Gs({
1074
1073
  isEnabled: e.includes("setSourceTokenIntentsTarget")
1075
- }), Hs({
1074
+ }), Ks({
1076
1075
  isEnabled: e.includes("updateBalances"),
1077
1076
  alchemyApiKey: r?.[1].alchemyApiKey
1078
1077
  });
1079
- }, cr = Z.getStore();
1078
+ }, ir = Z.getStore();
1080
1079
  class W extends Error {
1081
1080
  context;
1082
1081
  _is_widget_error = !0;
1083
1082
  constructor(t, r) {
1084
- super(t), this.name = "WidgetError", this.cause = r?.cause, this.context = Ne(cr).context;
1083
+ super(t), this.name = "WidgetError", this.cause = r?.cause, this.context = Ne(ir).context;
1085
1084
  }
1086
1085
  }
1087
- class Rt extends W {
1086
+ class vt extends W {
1088
1087
  data;
1089
1088
  constructor(t) {
1090
1089
  super(t.code), this.data = t, this.name = "MachineError";
1091
1090
  }
1092
1091
  }
1093
- class q extends Rt {
1092
+ class q extends vt {
1094
1093
  constructor(t) {
1095
1094
  super(t), this.name = "QuoteError";
1096
1095
  }
1097
1096
  }
1098
- class I extends Rt {
1097
+ class I extends vt {
1099
1098
  constructor(t) {
1100
1099
  super(t), this.name = "TransferError";
1101
1100
  }
1102
1101
  }
1103
- const qi = (e) => typeof e == "object" && e !== null && "_is_widget_error" in e && !!e._is_widget_error, V = Z.getStore(), lr = nn({
1104
- usdTradeDelta: (e) => Un(e(V.context)),
1105
- isDirectNearTokenWithdrawal: (e) => Vn(e(V.context)),
1106
- isDirectNonNearWithdrawal: (e) => Pn(e(V.context)),
1107
- isDirectTokenOnNearDeposit: (e) => rn(e(V.context)),
1108
- isNativeNearDeposit: (e) => sn(e(V.context)),
1109
- isSameAssetDiffChainWithdrawal: (e) => Mn(e(V.context)),
1110
- isDirectTokenOnNearTransfer: (e) => Wn(e(V.context))
1111
- }), j = () => oe(lr), _ = () => {
1102
+ const Li = (e) => typeof e == "object" && e !== null && "_is_widget_error" in e && !!e._is_widget_error, V = Z.getStore(), cr = sn({
1103
+ usdTradeDelta: (e) => Pn(e(V.context)),
1104
+ isDirectNearTokenWithdrawal: (e) => Mn(e(V.context)),
1105
+ isDirectNonNearWithdrawal: (e) => Wn(e(V.context)),
1106
+ isDirectTokenOnNearDeposit: (e) => an(e(V.context)),
1107
+ isNativeNearDeposit: (e) => rn(e(V.context)),
1108
+ isSameAssetDiffChainWithdrawal: (e) => Qn(e(V.context)),
1109
+ isDirectTokenOnNearTransfer: (e) => Vn(e(V.context))
1110
+ }), j = () => oe(cr), _ = () => {
1112
1111
  const e = oe(V);
1113
1112
  return {
1114
1113
  state: e.state,
1115
1114
  ctx: e.context
1116
1115
  };
1117
- }, Ui = (e) => {
1116
+ }, Bi = (e) => {
1118
1117
  const t = oe(V);
1119
1118
  if (!D(t.context, [e]))
1120
1119
  throw new W(
1121
1120
  `[WIDGET] Attempt to access snapshot for ${e} state while context does not match`
1122
1121
  );
1123
1122
  return t.context;
1124
- }, dr = async ({
1123
+ }, lr = async ({
1125
1124
  contractId: e,
1126
1125
  accountId: t
1127
1126
  }) => {
1128
1127
  try {
1129
- const r = { account_id: t }, s = Fe.from(JSON.stringify(r)).toString("base64"), n = await $n.query({
1128
+ const r = { account_id: t }, s = Fe.from(JSON.stringify(r)).toString("base64"), n = await Kn.query({
1130
1129
  request_type: "call_function",
1131
1130
  method_name: "storage_balance_of",
1132
1131
  account_id: e,
1133
1132
  args_base64: s,
1134
1133
  finality: "optimistic"
1135
- }), a = Qn(
1134
+ }), a = $n(
1136
1135
  n,
1137
1136
  se.union([se.null(), se.object({ total: se.string() })])
1138
1137
  );
@@ -1141,7 +1140,7 @@ const qi = (e) => typeof e == "object" && e !== null && "_is_widget_error" in e
1141
1140
  throw new W("Error fetching balance", { cause: r });
1142
1141
  }
1143
1142
  };
1144
- function ur(e) {
1143
+ function dr(e) {
1145
1144
  const { ctx: t } = _(), { isNativeNearDeposit: r } = j(), s = t.sourceToken?.contractAddress, n = t.quote?.amountIn ?? t.sourceTokenAmount;
1146
1145
  return {
1147
1146
  make: async (l, c) => {
@@ -1248,10 +1247,10 @@ function ur(e) {
1248
1247
  });
1249
1248
  try {
1250
1249
  const [i, m] = await Promise.all([
1251
- Kn({
1250
+ Hn({
1252
1251
  contractId: s
1253
1252
  }),
1254
- dr({
1253
+ lr({
1255
1254
  contractId: s,
1256
1255
  accountId: l
1257
1256
  })
@@ -1302,7 +1301,7 @@ function ur(e) {
1302
1301
  }
1303
1302
  };
1304
1303
  }
1305
- const mr = ({
1304
+ const ur = ({
1306
1305
  makeTransfer: e,
1307
1306
  providers: t
1308
1307
  }) => {
@@ -1351,7 +1350,7 @@ const mr = ({
1351
1350
  address: r.quote.depositAddress,
1352
1351
  chain: r.sourceToken.blockchain,
1353
1352
  evmChainId: Q(r.sourceToken.blockchain) ? Te[r.sourceToken.blockchain] : null,
1354
- isNativeEthTransfer: !!r.sourceToken && Hn(r.sourceToken),
1353
+ isNativeEvmTokenTransfer: !!r.sourceToken && It(r.sourceToken),
1355
1354
  tokenAddress: r.sourceToken.assetId === $ ? $ : r.sourceToken.contractAddress,
1356
1355
  sourceAssetId: r.sourceToken.assetId,
1357
1356
  targetAssetId: r.targetToken.assetId
@@ -1376,7 +1375,7 @@ const mr = ({
1376
1375
  const h = i instanceof Error && Ae(i.message);
1377
1376
  if (h)
1378
1377
  return;
1379
- throw mn.isAxiosError(i) ? (m = i.response?.data?.detail ?? i.message ?? "Failed to make deposit. Please try again.", new I({
1378
+ throw fn.isAxiosError(i) ? (m = i.response?.data?.detail ?? i.message ?? "Failed to make deposit. Please try again.", new I({
1380
1379
  code: "QUOTE_ERROR",
1381
1380
  meta: { message: m }
1382
1381
  })) : m === "No quotes found" ? new I({
@@ -1391,7 +1390,7 @@ const mr = ({
1391
1390
  }
1392
1391
  } };
1393
1392
  };
1394
- class fr {
1393
+ class mr {
1395
1394
  constructor(t, r) {
1396
1395
  this.account = t, this.provider = r;
1397
1396
  }
@@ -1420,7 +1419,7 @@ class fr {
1420
1419
  };
1421
1420
  }
1422
1421
  }
1423
- const pr = ({
1422
+ const fr = ({
1424
1423
  walletAddress: e,
1425
1424
  getProvider: t
1426
1425
  }) => zn({
@@ -1447,7 +1446,7 @@ const pr = ({
1447
1446
  signature: n.signature
1448
1447
  };
1449
1448
  }
1450
- }), hr = (e, t) => {
1449
+ }), pr = (e, t) => {
1451
1450
  if (t) {
1452
1451
  if (e.sendAddress)
1453
1452
  return e.sendAddress;
@@ -1462,7 +1461,7 @@ const pr = ({
1462
1461
  meta: { message: "Quote is required for intents non-direct transfer" }
1463
1462
  });
1464
1463
  return e.quote.depositAddress;
1465
- }, Tr = async (e, t) => {
1464
+ }, hr = async (e, t) => {
1466
1465
  let r = Me.getItem("nearWalletsPk")[t];
1467
1466
  if (!e.signMessage)
1468
1467
  throw new I({
@@ -1528,7 +1527,7 @@ const pr = ({
1528
1527
  meta: { message: "Unable to add public key to intents account" }
1529
1528
  });
1530
1529
  }
1531
- }, gr = ({ providers: e }) => {
1530
+ }, Tr = ({ providers: e }) => {
1532
1531
  const { ctx: t } = _(), { appName: r, intentsAccountType: s } = y(), {
1533
1532
  isNativeNearDeposit: n,
1534
1533
  isDirectNearTokenWithdrawal: a,
@@ -1568,7 +1567,7 @@ const pr = ({
1568
1567
  code: "TRANSFER_INVALID_INITIAL",
1569
1568
  meta: { message: "No EVM provider configured" }
1570
1569
  });
1571
- i = new fr(
1570
+ i = new mr(
1572
1571
  { walletAddress: t.walletAddress },
1573
1572
  e.evm
1574
1573
  );
@@ -1590,7 +1589,7 @@ const pr = ({
1590
1589
  code: "TRANSFER_INVALID_INITIAL",
1591
1590
  meta: { message: "No NEAR provider configured" }
1592
1591
  });
1593
- await Tr(e.near(), t.walletAddress), i = pr({
1592
+ await hr(e.near(), t.walletAddress), i = fr({
1594
1593
  walletAddress: t.walletAddress,
1595
1594
  getProvider: e.near
1596
1595
  });
@@ -1607,7 +1606,7 @@ const pr = ({
1607
1606
  withdrawalParams: {
1608
1607
  assetId: t.sourceToken.assetId,
1609
1608
  amount: BigInt(t.sourceTokenAmount),
1610
- destinationAddress: hr(
1609
+ destinationAddress: pr(
1611
1610
  t,
1612
1611
  a || l
1613
1612
  ),
@@ -1623,7 +1622,7 @@ const pr = ({
1623
1622
  const w = await g.waitForIntentSettlement();
1624
1623
  return await g.waitForWithdrawalCompletion(), {
1625
1624
  hash: w.hash,
1626
- transactionLink: ns(en.near, w.hash),
1625
+ transactionLink: ns(tn.near, w.hash),
1627
1626
  intent: f
1628
1627
  };
1629
1628
  } catch (f) {
@@ -1640,7 +1639,7 @@ const pr = ({
1640
1639
  });
1641
1640
  }
1642
1641
  } };
1643
- }, Ir = ({
1642
+ }, gr = ({
1644
1643
  message: e,
1645
1644
  providers: t,
1646
1645
  makeTransfer: r
@@ -1649,10 +1648,10 @@ const pr = ({
1649
1648
  isDirectTokenOnNearDeposit: n,
1650
1649
  isDirectTokenOnNearTransfer: a,
1651
1650
  isNativeNearDeposit: l
1652
- } = j(), { make: c } = gr({ providers: t }), { make: d } = mr({
1651
+ } = j(), { make: c } = Tr({ providers: t }), { make: d } = ur({
1653
1652
  makeTransfer: r,
1654
1653
  providers: t
1655
- }), { make: u } = ur(
1654
+ }), { make: u } = dr(
1656
1655
  t?.near
1657
1656
  );
1658
1657
  return { make: async () => {
@@ -1699,19 +1698,19 @@ const pr = ({
1699
1698
  }
1700
1699
  return p("transferSetStatus", { status: "success" }), O("transfer_success"), m;
1701
1700
  } };
1702
- }, wr = async (e) => {
1701
+ }, Ir = async (e) => {
1703
1702
  if (!e)
1704
1703
  return;
1705
1704
  const t = await e.request({
1706
1705
  method: "eth_chainId"
1707
1706
  });
1708
1707
  return parseInt(t, 16);
1709
- }, kr = ({ providers: e }) => {
1708
+ }, wr = ({ providers: e }) => {
1710
1709
  const { ctx: t } = _(), [r, s] = re(!1), [n, a] = re(!1), l = he(async () => {
1711
1710
  const d = typeof e?.evm == "function" ? await e.evm() : e?.evm;
1712
1711
  if (!t.sourceToken || !d)
1713
1712
  return !1;
1714
- const u = await wr(d);
1713
+ const u = await Ir(d);
1715
1714
  if (!Q(t.sourceToken.blockchain))
1716
1715
  return !1;
1717
1716
  const i = Te[t.sourceToken.blockchain];
@@ -1760,7 +1759,7 @@ const pr = ({
1760
1759
  if (e.error?.code === "QUOTE_AMOUNT_IS_TOO_LOW")
1761
1760
  return /* @__PURE__ */ T("div", { className: "gap-sw-md flex flex-col", children: [
1762
1761
  /* @__PURE__ */ o(A, { state: "error", ...N, children: t("submit.error.amountTooLow.label", "Amount is too low") }),
1763
- /* @__PURE__ */ o(K, { children: /* @__PURE__ */ T(Ht, { i18nKey: "submit.error.amountTooLow.message", children: [
1762
+ /* @__PURE__ */ o(K, { children: /* @__PURE__ */ T(Gt, { i18nKey: "submit.error.amountTooLow.message", children: [
1764
1763
  "Amount you entered is very low. Please try increasing it",
1765
1764
  " ",
1766
1765
  /* @__PURE__ */ T("span", { className: "text-nowrap", children: [
@@ -1810,19 +1809,19 @@ const pr = ({
1810
1809
  ] });
1811
1810
  if (e.error?.code === "SOURCE_BALANCE_INSUFFICIENT")
1812
1811
  return /* @__PURE__ */ o(A, { state: "error", ...N, children: t("submit.error.insufficientBalance", "Insufficient balance") });
1813
- }, Ar = ({ onClick: e }) => {
1812
+ }, kr = ({ onClick: e }) => {
1814
1813
  const { t } = M();
1815
1814
  return /* @__PURE__ */ o(A, { state: "disabled", ...N, onClick: e, children: t("submit.error.connectWallet", "Connect wallet") });
1816
- }, Sr = () => {
1815
+ }, Ar = () => {
1817
1816
  const { ctx: e } = _();
1818
1817
  return Le(e) ?? null;
1819
- }, Nr = (e) => {
1818
+ }, Sr = (e) => {
1820
1819
  const { providers: t, makeTransfer: r, onSuccess: s } = e, { ctx: n } = _(), { t: a } = M(), {
1821
1820
  isNativeNearDeposit: l,
1822
1821
  isDirectNonNearWithdrawal: c,
1823
1822
  isDirectTokenOnNearDeposit: d,
1824
1823
  isDirectNearTokenWithdrawal: u
1825
- } = j(), { make: i } = Ir({ providers: t, makeTransfer: r }), { isSwitchingChainRequired: m, switchChain: h, isSwitchingChain: g } = kr({ providers: t }), f = Le(n), w = async () => {
1824
+ } = j(), { make: i } = gr({ providers: t, makeTransfer: r }), { isSwitchingChainRequired: m, switchChain: h, isSwitchingChain: g } = wr({ providers: t }), f = Le(n), w = async () => {
1826
1825
  if (m && !await h())
1827
1826
  return;
1828
1827
  const S = await i();
@@ -1863,15 +1862,15 @@ const pr = ({
1863
1862
  }
1864
1863
  })() })
1865
1864
  ] }) : n.quoteStatus === "pending" ? /* @__PURE__ */ o(A, { state: "loading", ...N, children: n.quote ? a("submit.pending.quote.refreshing", "Refreshing quote") : a("submit.pending.quote.finalizing", "Finalizing quote") }) : n.error ? /* @__PURE__ */ o(A, { state: "disabled", ...N, children: e.label }) : !n.quote && !c && !d && !u && !l ? /* @__PURE__ */ o(A, { state: "disabled", ...N, children: e.label }) : /* @__PURE__ */ o(A, { ...N, onClick: w, children: e.label });
1866
- }, _r = (e) => {
1865
+ }, Nr = (e) => {
1867
1866
  const { t } = M(), { ctx: r } = _(), s = Le(r);
1868
- return r.isDepositFromExternalWallet ? ne(r.sourceTokenAmount) ? r.externalDepositTxReceived ? /* @__PURE__ */ o(A, { state: "loading", ...N, children: t("submit.pending.externalDeposit.processing", "Processing") }) : /* @__PURE__ */ o(A, { state: "loading", ...N, children: t("submit.pending.externalDeposit.waiting", "Waiting for transaction") }) : /* @__PURE__ */ o(A, { ...N, state: "disabled", children: t("submit.disabled.enterAmount", "Enter amount") }) : s || /* @__PURE__ */ o(Nr, { ...e });
1869
- }, yr = (e) => {
1867
+ return r.isDepositFromExternalWallet ? ne(r.sourceTokenAmount) ? r.externalDepositTxReceived ? /* @__PURE__ */ o(A, { state: "loading", ...N, children: t("submit.pending.externalDeposit.processing", "Processing") }) : /* @__PURE__ */ o(A, { state: "loading", ...N, children: t("submit.pending.externalDeposit.waiting", "Waiting for transaction") }) : /* @__PURE__ */ o(A, { ...N, state: "disabled", children: t("submit.disabled.enterAmount", "Enter amount") }) : s || /* @__PURE__ */ o(Sr, { ...e });
1868
+ }, _r = (e) => {
1870
1869
  const { ctx: t } = _(), r = y();
1871
- return t.walletAddress ? /* @__PURE__ */ o(_r, { ...e }) : /* @__PURE__ */ o(Ar, { onClick: r.onWalletSignin });
1870
+ return t.walletAddress ? /* @__PURE__ */ o(Nr, { ...e }) : /* @__PURE__ */ o(kr, { onClick: r.onWalletSignin });
1872
1871
  };
1873
- yr.Error = Sr;
1874
- const br = ({ className: e }) => {
1872
+ _r.Error = Ar;
1873
+ const yr = ({ className: e }) => {
1875
1874
  const { t } = M(), { slippageTolerance: r } = y(), { ctx: s } = _(), n = s.sourceToken && s.targetToken && s.sourceToken.price / s.targetToken.price;
1876
1875
  return s.sourceToken ? /* @__PURE__ */ o(
1877
1876
  rs,
@@ -1912,10 +1911,10 @@ const br = ({ className: e }) => {
1912
1911
  )
1913
1912
  ] })
1914
1913
  }
1915
- ) : /* @__PURE__ */ o(It, {});
1916
- }, Pi = Object.assign(br, {
1917
- Skeleton: It
1918
- }), Er = ({
1914
+ ) : /* @__PURE__ */ o(wt, {});
1915
+ }, qi = Object.assign(yr, {
1916
+ Skeleton: wt
1917
+ }), br = ({
1919
1918
  token: e,
1920
1919
  balance: t,
1921
1920
  isNotSufficient: r = !1,
@@ -1953,14 +1952,14 @@ const br = ({ className: e }) => {
1953
1952
  heading: d,
1954
1953
  onMsg: u
1955
1954
  }) => {
1956
- const i = Pt(), { ctx: m } = _(), { t: h } = M(), { hideTokenInputHeadings: g } = y(), f = ls(e, r, n), w = (S) => {
1955
+ const i = Wt(), { ctx: m } = _(), { t: h } = M(), { hideTokenInputHeadings: g } = y(), f = ls(e, r, n), w = (S) => {
1957
1956
  u({
1958
1957
  type: "on_change_amount",
1959
1958
  amount: cs(t, e.decimals, S)
1960
1959
  });
1961
1960
  };
1962
1961
  return /* @__PURE__ */ T(ie, { className: "flex flex-col", "aria-label": d, children: [
1963
- !g && /* @__PURE__ */ o(wt, { children: d }),
1962
+ !g && /* @__PURE__ */ o(kt, { children: d }),
1964
1963
  /* @__PURE__ */ T(
1965
1964
  "div",
1966
1965
  {
@@ -1996,7 +1995,7 @@ const br = ({ className: e }) => {
1996
1995
  ),
1997
1996
  children: [
1998
1997
  /* @__PURE__ */ o(
1999
- kt,
1998
+ At,
2000
1999
  {
2001
2000
  chainShowIcon: !e.isIntent,
2002
2001
  className: "border-sw-gray-800 group-hover:border-sw-gray-700 transition-colors top-[14px]",
@@ -2028,7 +2027,7 @@ const br = ({ className: e }) => {
2028
2027
  ] }),
2029
2028
  /* @__PURE__ */ T("div", { className: "gap-sw-sm flex items-center", children: [
2030
2029
  e && !!m.walletAddress && l && /* @__PURE__ */ o(
2031
- Er,
2030
+ br,
2032
2031
  {
2033
2032
  token: e,
2034
2033
  balance: t,
@@ -2036,7 +2035,7 @@ const br = ({ className: e }) => {
2036
2035
  onClick: () => w(1)
2037
2036
  }
2038
2037
  ),
2039
- !!t && l && c && /* @__PURE__ */ T(Ft, { children: [
2038
+ !!t && l && c && /* @__PURE__ */ T(Lt, { children: [
2040
2039
  /* @__PURE__ */ o(
2041
2040
  Ke,
2042
2041
  {
@@ -2067,7 +2066,7 @@ const br = ({ className: e }) => {
2067
2066
  className: "flex flex-col",
2068
2067
  onClick: () => e({ type: "on_click_select_token" }),
2069
2068
  children: [
2070
- !r && /* @__PURE__ */ o(wt, { children: t }),
2069
+ !r && /* @__PURE__ */ o(kt, { children: t }),
2071
2070
  /* @__PURE__ */ T(
2072
2071
  "div",
2073
2072
  {
@@ -2100,7 +2099,7 @@ const br = ({ className: e }) => {
2100
2099
  ]
2101
2100
  }
2102
2101
  );
2103
- }, vt = (e) => {
2102
+ }, Dt = (e) => {
2104
2103
  const { mergedBalance: t } = le(), [r, s] = re(
2105
2104
  e ? t[G(e)] : void 0
2106
2105
  );
@@ -2120,7 +2119,7 @@ const br = ({ className: e }) => {
2120
2119
  n && clearTimeout(n);
2121
2120
  };
2122
2121
  }, [e, t]), r;
2123
- }, Dt = (e, t) => {
2122
+ }, xt = (e, t) => {
2124
2123
  const { tokens: r } = P(e), s = Array.from(
2125
2124
  new Set(r.map((n) => n.assetId))
2126
2125
  );
@@ -2128,14 +2127,14 @@ const br = ({ className: e }) => {
2128
2127
  const n = s.length === 1 ? r[0] : null;
2129
2128
  n && t({ type: "on_select_token", token: n });
2130
2129
  }, [r]);
2131
- }, Cr = ({
2130
+ }, Er = ({
2132
2131
  onMsg: e,
2133
2132
  isChanging: t = !0,
2134
2133
  showBalance: r = !0,
2135
2134
  heading: s
2136
2135
  }) => {
2137
- const { ctx: n } = _(), a = vt(n.sourceToken);
2138
- Dt("source", e);
2136
+ const { ctx: n } = _(), a = Dt(n.sourceToken);
2137
+ xt("source", e);
2139
2138
  const l = v(() => {
2140
2139
  if (!t && n.quoteStatus === "pending")
2141
2140
  return "disabled";
@@ -2159,13 +2158,13 @@ const br = ({ className: e }) => {
2159
2158
  onMsg: e
2160
2159
  }
2161
2160
  ) : /* @__PURE__ */ o(qe, { heading: s, onMsg: e });
2162
- }, Rr = ({
2161
+ }, Cr = ({
2163
2162
  isChanging: e = !1,
2164
2163
  onMsg: t,
2165
2164
  heading: r
2166
2165
  }) => {
2167
- const { ctx: s } = _(), { usdTradeDelta: n } = j(), a = vt(s.targetToken);
2168
- Dt("target", t);
2166
+ const { ctx: s } = _(), { usdTradeDelta: n } = j(), a = Dt(s.targetToken);
2167
+ xt("target", t);
2169
2168
  const l = v(() => !e && s.quoteStatus === "pending" ? "disabled" : "default", [e, s.quoteStatus]);
2170
2169
  return s.targetToken ? /* @__PURE__ */ o(
2171
2170
  Be,
@@ -2182,11 +2181,11 @@ const br = ({ className: e }) => {
2182
2181
  onMsg: t
2183
2182
  }
2184
2183
  ) : /* @__PURE__ */ o(qe, { heading: r, onMsg: t });
2185
- }, vr = ({ token: e, heading: t, ...r }) => e ? /* @__PURE__ */ o(Be, { ...r, token: e, heading: t }) : /* @__PURE__ */ o(qe, { onMsg: r.onMsg, heading: t }), Wi = Object.assign(vr, {
2184
+ }, Rr = ({ token: e, heading: t, ...r }) => e ? /* @__PURE__ */ o(Be, { ...r, token: e, heading: t }) : /* @__PURE__ */ o(qe, { onMsg: r.onMsg, heading: t }), Ui = Object.assign(Rr, {
2186
2185
  Skeleton: ms,
2187
- Source: Cr,
2188
- Target: Rr
2189
- }), Je = 58, xt = ({
2186
+ Source: Er,
2187
+ Target: Cr
2188
+ }), Je = 58, Ot = ({
2190
2189
  token: e,
2191
2190
  balance: t,
2192
2191
  showBalance: r = !0,
@@ -2209,7 +2208,7 @@ const br = ({ className: e }) => {
2209
2208
  onClick: () => !s && a({ type: "on_select_token", token: e }),
2210
2209
  children: [
2211
2210
  /* @__PURE__ */ o(
2212
- kt,
2211
+ At,
2213
2212
  {
2214
2213
  chainShowIcon: !e.isIntent,
2215
2214
  className: "border-sw-gray-900 group-hover:border-sw-gray-800 transition-colors",
@@ -2254,7 +2253,7 @@ const br = ({ className: e }) => {
2254
2253
  // NEAR (bsc)
2255
2254
  "nep141:eth-0xe0f63a424a4439cbe457d80e4f4b51ad25b2c56c.omft.near"
2256
2255
  // SPX (eth)
2257
- ], Dr = () => {
2256
+ ], vr = () => {
2258
2257
  const { tokens: e } = P();
2259
2258
  return {
2260
2259
  uniqueIntentsTokens: v(() => {
@@ -2264,15 +2263,15 @@ const br = ({ className: e }) => {
2264
2263
  return [...t, ...s];
2265
2264
  }, [e])
2266
2265
  };
2267
- }, xr = ({
2266
+ }, Dr = ({
2268
2267
  variant: e,
2269
2268
  search: t,
2270
2269
  selectedChain: r,
2271
2270
  chainsFilter: s,
2272
2271
  walletSupportedChains: n
2273
2272
  }) => {
2274
- Ks(e);
2275
- const { tokens: a } = P(e), { mergedBalance: l } = le(), { intentBalances: c } = ce(), { uniqueIntentsTokens: d } = Dr(), u = Ts(
2273
+ $s(e);
2274
+ const { tokens: a } = P(e), { mergedBalance: l } = le(), { intentBalances: c } = ce(), { uniqueIntentsTokens: d } = vr(), u = Ts(
2276
2275
  l,
2277
2276
  n,
2278
2277
  t
@@ -2290,7 +2289,7 @@ const br = ({ className: e }) => {
2290
2289
  intents: i.filter(He({ isIntent: !0 })).sort(u),
2291
2290
  wallet: i.filter(He({ isIntent: !1 })).sort(u)
2292
2291
  };
2293
- }, Or = (e, t) => e.length === 0 && t ? "EMPTY_SEARCH" : e.length === 0 && !t ? "NO_TOKENS" : "HAS_TOKENS", Fr = ({
2292
+ }, xr = (e, t) => e.length === 0 && t ? "EMPTY_SEARCH" : e.length === 0 && !t ? "NO_TOKENS" : "HAS_TOKENS", Or = ({
2294
2293
  variant: e,
2295
2294
  search: t,
2296
2295
  className: r,
@@ -2301,13 +2300,13 @@ const br = ({ className: e }) => {
2301
2300
  chainIsNotSupported: c,
2302
2301
  onMsg: d
2303
2302
  }) => {
2304
- const { t: u } = M(), { ctx: i } = _(), { walletSupportedChains: m, appName: h } = y(), { mergedBalance: g } = le(), f = xr({
2303
+ const { t: u } = M(), { ctx: i } = _(), { walletSupportedChains: m, appName: h } = y(), { mergedBalance: g } = le(), f = Dr({
2305
2304
  variant: e,
2306
2305
  search: t,
2307
2306
  chainsFilter: a,
2308
2307
  selectedChain: l,
2309
2308
  walletSupportedChains: m
2310
- }), w = i.walletAddress ? s : !1, S = Or(f.all, t), E = v(
2309
+ }), w = i.walletAddress ? s : !1, S = xr(f.all, t), E = v(
2311
2310
  () => [{ label: null, tokens: f.all }],
2312
2311
  [f.all]
2313
2312
  ), B = v(
@@ -2351,7 +2350,7 @@ const br = ({ className: e }) => {
2351
2350
  height: F ? F * Je + (w ? B.length * 62 : 0) : Je * 2
2352
2351
  },
2353
2352
  children: (w ? B : E).map(
2354
- ({ label: k, tokens: x }) => /* @__PURE__ */ T(Wt, { children: [
2353
+ ({ label: k, tokens: x }) => /* @__PURE__ */ T(Vt, { children: [
2355
2354
  x.length && k ? /* @__PURE__ */ T("header", { className: "pb-sw-lg flex flex-col", children: [
2356
2355
  /* @__PURE__ */ o(hs, {}),
2357
2356
  /* @__PURE__ */ o("span", { className: "text-sw-label-sm pt-sw-xl text-sw-gray-100", children: `${k} — ${x.length}` })
@@ -2359,7 +2358,7 @@ const br = ({ className: e }) => {
2359
2358
  x.map((X) => {
2360
2359
  const J = G(X);
2361
2360
  return /* @__PURE__ */ o(
2362
- xt,
2361
+ Ot,
2363
2362
  {
2364
2363
  token: X,
2365
2364
  showBalance: n,
@@ -2392,10 +2391,10 @@ const br = ({ className: e }) => {
2392
2391
  }
2393
2392
  );
2394
2393
  }
2395
- }, Vi = Object.assign(Fr, {
2394
+ }, Pi = Object.assign(Or, {
2396
2395
  Placeholder: Se,
2397
- Item: xt
2398
- }), Lr = (e, t) => {
2396
+ Item: Ot
2397
+ }), Fr = (e, t) => {
2399
2398
  const r = t.assetId.substring(t.assetId.indexOf(":") + 1), s = (a) => {
2400
2399
  const l = (u) => u.replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, ""), c = l(t.amount), d = l(
2401
2400
  a.amount.toLocaleString("en-US", {
@@ -2408,12 +2407,12 @@ const br = ({ className: e }) => {
2408
2407
  return (e.result.deposits || []).find(
2409
2408
  (a) => a.chain === t.chainId && a.account_id === t.intentsAccountId && a.address === t.depositAddress && a.near_token_id === r && n(a) && s(a)
2410
2409
  );
2411
- }, Br = {
2410
+ }, Lr = {
2412
2411
  CREDITED: ee.status.PROCESSING,
2413
2412
  PENDING: ee.status.PROCESSING,
2414
2413
  COMPLETED: ee.status.SUCCESS,
2415
2414
  FAILED: ee.status.FAILED
2416
- }, Mi = ({ depositAddress: e }) => {
2415
+ }, Wi = ({ depositAddress: e }) => {
2417
2416
  const { ctx: t } = _(), { intentsAccountType: r } = y(), [s, n] = re(null), a = te({
2418
2417
  addressType: r,
2419
2418
  walletAddress: t.walletAddress
@@ -2445,7 +2444,7 @@ const br = ({ className: e }) => {
2445
2444
  chain: i
2446
2445
  }
2447
2446
  ]
2448
- }), g = Lr(h.data, {
2447
+ }), g = Fr(h.data, {
2449
2448
  intentsAccountId: a,
2450
2449
  initiatedAtDate: m,
2451
2450
  depositAddress: e,
@@ -2454,7 +2453,7 @@ const br = ({ className: e }) => {
2454
2453
  amount: d
2455
2454
  });
2456
2455
  return g ? {
2457
- status: Br[g.status],
2456
+ status: Lr[g.status],
2458
2457
  swapDetails: {
2459
2458
  intentHashes: [""],
2460
2459
  destinationChainTxHashes: [{ hash: g.tx_hash ?? "" }]
@@ -2467,8 +2466,8 @@ const br = ({ className: e }) => {
2467
2466
  }
2468
2467
  };
2469
2468
  } };
2470
- }, qr = (e, t, r) => {
2471
- if (At) {
2469
+ }, Br = (e, t, r) => {
2470
+ if (St) {
2472
2471
  let s = document.body;
2473
2472
  r instanceof HTMLElement && (s = r), Object.entries(e).forEach(([n, a]) => {
2474
2473
  s.style.setProperty(`--c-sw-${t}-${n}`, a);
@@ -2476,18 +2475,18 @@ const br = ({ className: e }) => {
2476
2475
  }
2477
2476
  }, tt = (e, t, r, s) => {
2478
2477
  const n = r ? ws(r, s ?? "dark") : null;
2479
- n && qr(n, e, t);
2480
- }, Ur = (e, t) => {
2478
+ n && Br(n, e, t);
2479
+ }, qr = (e, t) => {
2481
2480
  const { primaryColor: r, surfaceColor: s, colorScheme: n } = t;
2482
2481
  tt("accent", e, r, n), tt("gray", e, s, n);
2483
- }, Pr = at(void 0), Wr = ({ children: e, theme: t }) => {
2482
+ }, Ur = at(void 0), Pr = ({ children: e, theme: t }) => {
2484
2483
  const { themeParentElementSelector: r } = y(), s = v(() => t, [t]);
2485
2484
  return C(() => {
2486
- if (t && At) {
2485
+ if (t && St) {
2487
2486
  const n = r ? document.querySelector(r) : null;
2488
- Ur(n, t);
2487
+ qr(n, t);
2489
2488
  }
2490
- }, [t]), /* @__PURE__ */ o(Pr.Provider, { value: s, children: e });
2489
+ }, [t]), /* @__PURE__ */ o(Ur.Provider, { value: s, children: e });
2491
2490
  }, fe = ({
2492
2491
  text: e,
2493
2492
  icon: t
@@ -2510,7 +2509,7 @@ const br = ({ className: e }) => {
2510
2509
  /* @__PURE__ */ o("span", { className: "text-sw-label-md", children: e })
2511
2510
  ]
2512
2511
  }
2513
- ), Vr = ({ isSigned: e, isSigning: t, onMsg: r }) => {
2512
+ ), Wr = ({ isSigned: e, isSigning: t, onMsg: r }) => {
2514
2513
  const { t: s } = M(), n = bs({
2515
2514
  endTime: 0,
2516
2515
  autostart: !1,
@@ -2524,7 +2523,7 @@ const br = ({ className: e }) => {
2524
2523
  e ? n.start() : n.reset();
2525
2524
  }, [e]), /* @__PURE__ */ T(ie, { className: "relative w-full gap-sw-2xl flex flex-col", children: [
2526
2525
  /* @__PURE__ */ o(
2527
- St,
2526
+ Nt,
2528
2527
  {
2529
2528
  onClick: () => r({ type: "on_close" }),
2530
2529
  className: "absolute top-sw-2xl right-sw-2xl"
@@ -2620,11 +2619,11 @@ const br = ({ className: e }) => {
2620
2619
  )
2621
2620
  ] })
2622
2621
  ] });
2623
- }, Mr = ({ onMsg: e }) => {
2622
+ }, Vr = ({ onMsg: e }) => {
2624
2623
  const { t } = M();
2625
2624
  return /* @__PURE__ */ T(ie, { className: "relative w-full gap-sw-2xl flex flex-col", children: [
2626
2625
  /* @__PURE__ */ o(
2627
- St,
2626
+ Nt,
2628
2627
  {
2629
2628
  onClick: () => e({ type: "on_close" }),
2630
2629
  className: "absolute top-sw-2xl right-sw-2xl"
@@ -2666,9 +2665,9 @@ const br = ({ className: e }) => {
2666
2665
  )
2667
2666
  ] })
2668
2667
  ] });
2669
- }, Qi = Object.assign(Vr, {
2670
- Error: Mr
2671
- }), Qr = (e) => null, $r = (e) => (t) => {
2668
+ }, Vi = Object.assign(Wr, {
2669
+ Error: Vr
2670
+ }), Mr = (e) => null, Qr = (e) => (t) => {
2672
2671
  if (t instanceof W)
2673
2672
  throw t;
2674
2673
  const r = new W(
@@ -2676,49 +2675,49 @@ const br = ({ className: e }) => {
2676
2675
  { cause: t }
2677
2676
  );
2678
2677
  throw r.context = e, r;
2679
- }, Kr = ({ children: e }) => {
2678
+ }, $r = ({ children: e }) => {
2680
2679
  const { ctx: t } = _();
2681
2680
  return /* @__PURE__ */ o(
2682
2681
  Rs,
2683
2682
  {
2684
- FallbackComponent: Qr,
2685
- onError: $r(t),
2683
+ FallbackComponent: Mr,
2684
+ onError: Qr(t),
2686
2685
  children: e
2687
2686
  }
2688
2687
  );
2689
- }, Hr = new $t({
2688
+ }, Kr = new Kt({
2690
2689
  defaultOptions: {
2691
2690
  queries: {
2692
2691
  staleTime: 2e3 * 60,
2693
2692
  retry: st.env.NODE_ENV === "test" ? !1 : 3
2694
2693
  }
2695
2694
  }
2696
- }), Gr = ["fms", "abg", "stjack", "noear", "testnebula"], ae = {
2695
+ }), Hr = ["fms", "abg", "stjack", "noear", "testnebula"], ae = {
2697
2696
  appName: "Unknown",
2698
2697
  appIcon: "https://wtmcxrwapthiogjpxwfr.supabase.co/storage/v1/object/public/swap-widget/unknown.svg",
2699
2698
  slippageTolerance: 100,
2700
2699
  // 1%
2701
2700
  intentsAccountType: "evm",
2702
- walletSupportedChains: tn,
2701
+ walletSupportedChains: nn,
2703
2702
  connectedWallets: {},
2704
2703
  enableAutoTokensSwitching: !0,
2705
2704
  showIntentTokens: !0,
2706
2705
  chainsOrder: it,
2707
- filterTokens: (e) => !Gr.includes(e.symbol.toLocaleLowerCase()),
2706
+ filterTokens: (e) => !Hr.includes(e.symbol.toLocaleLowerCase()),
2708
2707
  chainsFilter: {
2709
2708
  source: { external: "wallet-supported", intents: "none" },
2710
2709
  target: { external: "all", intents: "none" }
2711
2710
  }
2712
- }, Ot = at({
2711
+ }, Ft = at({
2713
2712
  config: ae
2714
2713
  }), Ue = rt({
2715
2714
  config: ae
2716
2715
  }), y = () => {
2717
- const e = Vt(Ot);
2716
+ const e = Mt(Ft);
2718
2717
  return oe(e).config;
2719
- }, jr = (e) => {
2718
+ }, Gr = (e) => {
2720
2719
  Ue.config = pe(e);
2721
- }, $i = ({
2720
+ }, Mi = ({
2722
2721
  children: e,
2723
2722
  config: t,
2724
2723
  balanceViaRpc: r = !0,
@@ -2740,17 +2739,17 @@ const br = ({ className: e }) => {
2740
2739
  ...ae,
2741
2740
  ...t
2742
2741
  });
2743
- Object.assign(l.current.config, c), jr(c);
2744
- }, [t]), jt(s ?? {}), Cs("headlessui-portal-root", "sw"), /* @__PURE__ */ o(Kt, { client: Hr, children: /* @__PURE__ */ o(Gt, { i18n: Lt, children: /* @__PURE__ */ T(Ot.Provider, { value: l.current, children: [
2745
- /* @__PURE__ */ T(Bt, { children: [
2746
- /* @__PURE__ */ T(qt, { children: [
2742
+ Object.assign(l.current.config, c), Gr(c);
2743
+ }, [t]), zt(s ?? {}), Cs("headlessui-portal-root", "sw"), /* @__PURE__ */ o(Ht, { client: Kr, children: /* @__PURE__ */ o(jt, { i18n: Bt, children: /* @__PURE__ */ T(Ft.Provider, { value: l.current, children: [
2744
+ /* @__PURE__ */ T(qt, { children: [
2745
+ /* @__PURE__ */ T(Ut, { children: [
2747
2746
  /* @__PURE__ */ o("link", { rel: "preconnect", href: "https://rsms.me/" }),
2748
2747
  /* @__PURE__ */ o("link", { rel: "stylesheet", href: "https://rsms.me/inter/inter.css" })
2749
2748
  ] }),
2750
- /* @__PURE__ */ o(Wr, { theme: a, children: st.env.NODE_ENV === "test" ? e : /* @__PURE__ */ o(Kr, { children: e }) })
2749
+ /* @__PURE__ */ o(Pr, { theme: a, children: st.env.NODE_ENV === "test" ? e : /* @__PURE__ */ o($r, { children: e }) })
2751
2750
  ] }),
2752
2751
  r && /* @__PURE__ */ o(
2753
- Qs,
2752
+ Ms,
2754
2753
  {
2755
2754
  rpcs: n ?? Es,
2756
2755
  connectedWallets: t.connectedWallets ?? {}
@@ -2759,78 +2758,78 @@ const br = ({ className: e }) => {
2759
2758
  ] }) }) });
2760
2759
  };
2761
2760
  export {
2762
- dr as $,
2763
- Mi as A,
2764
- Qs as B,
2765
- Pr as C,
2766
- Bs as D,
2761
+ lr as $,
2762
+ Wi as A,
2763
+ Ms as B,
2764
+ Ur as C,
2765
+ Ls as D,
2767
2766
  Ge as E,
2768
- Hs as F,
2769
- Gs as G,
2770
- js as H,
2771
- zs as I,
2772
- Xs as J,
2773
- yt as K,
2774
- bt as L,
2775
- Rt as M,
2776
- Et as N,
2777
- Ct as O,
2778
- Js as P,
2767
+ Ks as F,
2768
+ Hs as G,
2769
+ Gs as H,
2770
+ js as I,
2771
+ Zs as J,
2772
+ bt as K,
2773
+ Et as L,
2774
+ vt as M,
2775
+ Ct as N,
2776
+ Rt as O,
2777
+ Xs as P,
2779
2778
  q as Q,
2780
- er as R,
2781
- yr as S,
2782
- vr as T,
2783
- tr as U,
2784
- nr as V,
2785
- $i as W,
2786
- sr as X,
2787
- rr as Y,
2788
- ar as Z,
2789
- or as _,
2790
- Ui as a,
2791
- ur as a0,
2792
- fr as a1,
2793
- pr as a2,
2794
- br as a3,
2795
- Er as a4,
2779
+ Js as R,
2780
+ _r as S,
2781
+ Rr as T,
2782
+ er as U,
2783
+ tr as V,
2784
+ Mi as W,
2785
+ nr as X,
2786
+ sr as Y,
2787
+ rr as Z,
2788
+ ar as _,
2789
+ Bi as a,
2790
+ dr as a0,
2791
+ mr as a1,
2792
+ fr as a2,
2793
+ yr as a3,
2794
+ br as a4,
2796
2795
  Be as a5,
2797
2796
  qe as a6,
2798
- Dt as a7,
2799
- Cr as a8,
2800
- Rr as a9,
2797
+ xt as a7,
2798
+ Er as a8,
2799
+ Cr as a9,
2801
2800
  Je as aa,
2802
- xt as ab,
2803
- Dr as ac,
2804
- Fr as ad,
2805
- Wr as ae,
2806
- Vr as af,
2807
- Mr as ag,
2808
- Kr as ah,
2801
+ Ot as ab,
2802
+ vr as ac,
2803
+ Or as ad,
2804
+ Pr as ae,
2805
+ Wr as af,
2806
+ Vr as ag,
2807
+ $r as ah,
2809
2808
  Ue as ai,
2810
2809
  _ as b,
2811
- Bi as c,
2812
- Ks as d,
2813
- Vs as e,
2810
+ Fi as c,
2811
+ $s as d,
2812
+ Ws as e,
2814
2813
  ce as f,
2815
- gr as g,
2816
- Zs as h,
2817
- Ir as i,
2818
- mr as j,
2814
+ Tr as g,
2815
+ Ys as h,
2816
+ gr as i,
2817
+ ur as j,
2819
2818
  le as k,
2820
- kr as l,
2821
- xr as m,
2819
+ wr as l,
2820
+ Dr as m,
2822
2821
  P as n,
2823
- Pi as o,
2824
- Wi as p,
2825
- Vi as q,
2826
- ir as r,
2827
- vt as s,
2828
- _t as t,
2822
+ qi as o,
2823
+ Ui as p,
2824
+ Pi as q,
2825
+ or as r,
2826
+ Dt as s,
2827
+ yt as t,
2829
2828
  j as u,
2830
2829
  W as v,
2831
2830
  I as w,
2832
- qi as x,
2831
+ Li as x,
2833
2832
  y,
2834
- Qi as z
2833
+ Vi as z
2835
2834
  };
2836
- //# sourceMappingURL=config-Behl5hcc.js.map
2835
+ //# sourceMappingURL=config-CG-NCoEP.js.map