@blockend/widget 1.0.60 → 1.0.61

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 (217) hide show
  1. package/dist/{AllRoutes-Bi2Qb6vT.js → AllRoutes-BqW5S4_J.js} +9 -9
  2. package/dist/AllRoutes-CIe7ZLbW.js +2209 -0
  3. package/dist/{Box-DofFTOO9.js → Box-Dw7IJo3D.js} +1 -1
  4. package/dist/Box-QpYIDD-V.js +54 -0
  5. package/dist/EstGas-C_ldluj6.js +1576 -0
  6. package/dist/{EstGas-w0MeYkJr.js → EstGas-Dpwt2-50.js} +7 -7
  7. package/dist/{Grow-C7qv-xx7.js → Grow-DjneaPQY.js} +2 -2
  8. package/dist/Grow-L7kyPhbh.js +1656 -0
  9. package/dist/{InputComp-B7JBOOCL.js → InputComp-CWH4SAk7.js} +3 -3
  10. package/dist/InputComp-Dl4M7E5v.js +105 -0
  11. package/dist/{LoadRoute-KBCAhdb3.js → LoadRoute-Cafzlcfy.js} +4 -4
  12. package/dist/LoadRoute-cBSl34Bs.js +125 -0
  13. package/dist/{QuotesProgress-DaVjqEE8.js → QuotesProgress-Covy7wmW.js} +1 -1
  14. package/dist/QuotesProgress-CxJUoCPy.js +28 -0
  15. package/dist/{SwapAsset-ClNXL1XN.js → SwapAsset-BqXVX_DR.js} +1 -1
  16. package/dist/SwapAsset-CkRat7Ok.js +51 -0
  17. package/dist/Tooltip-3YpYU_vO.js +572 -0
  18. package/dist/{Tooltip-BfAqBg9y.js → Tooltip-D2kKNQ0U.js} +3 -3
  19. package/dist/TxnButton-CPMFPFA_.js +222 -0
  20. package/dist/{TxnButton-41zPru_N.js → TxnButton-mfwy-EoQ.js} +3 -3
  21. package/dist/{add-Dtd6YmCJ.js → add-CRY8asYF.js} +1 -1
  22. package/dist/add-Dfrw-dUV.js +19 -0
  23. package/dist/{all-wallets-fWl6fl6Y.js → all-wallets-DOnIRIv0.js} +1 -1
  24. package/dist/all-wallets-Dw10lWJZ.js +10 -0
  25. package/dist/{app-store-DSLOwXZY.js → app-store-C0M9hC1B.js} +1 -1
  26. package/dist/app-store-DJiZFSCr.js +21 -0
  27. package/dist/{apple-BMDEkk8X.js → apple-Bv7oA5AQ.js} +1 -1
  28. package/dist/apple-kMZGS4AC.js +22 -0
  29. package/dist/{arrow-bottom-BWURPGva.js → arrow-bottom-D4arnome.js} +1 -1
  30. package/dist/arrow-bottom-DgmWrLqf.js +12 -0
  31. package/dist/{arrow-bottom-circle-BR18TdWN.js → arrow-bottom-circle-BUny4yP8.js} +1 -1
  32. package/dist/arrow-bottom-circle-C7iPKwzW.js +15 -0
  33. package/dist/{arrow-left-DSHPaT9f.js → arrow-left-DImJbKZs.js} +1 -1
  34. package/dist/arrow-left-Dol642VI.js +12 -0
  35. package/dist/{arrow-right-BQyfcxHk.js → arrow-right-BvRPNX9F.js} +1 -1
  36. package/dist/arrow-right-CMwyPVT7.js +12 -0
  37. package/dist/{arrow-top-RP3srPoV.js → arrow-top-1RWPJImu.js} +1 -1
  38. package/dist/arrow-top-kn9xtx92.js +12 -0
  39. package/dist/{bank-C9VWqird.js → bank-C0t9JpLj.js} +1 -1
  40. package/dist/bank-DK-FvDfd.js +18 -0
  41. package/dist/{basic-ChmJK0Xt.js → basic-Sejv2JvX.js} +3 -3
  42. package/dist/basic-VfgwBHn1.js +5783 -0
  43. package/dist/{browser-CSkm7gnt.js → browser-0d0uw45D.js} +1 -1
  44. package/dist/browser-BzT1ACe9.js +18 -0
  45. package/dist/{card-qLWgu9c8.js → card-BBByykfy.js} +1 -1
  46. package/dist/card-DqDM55a-.js +18 -0
  47. package/dist/{ccip-QF_uXtAt.js → ccip-8__szz9Q.js} +1 -1
  48. package/dist/ccip-BPZSey8I.js +228 -0
  49. package/dist/{checkmark-BmzqmMw0.js → checkmark-B_osdsm_.js} +1 -1
  50. package/dist/checkmark-DEKH6rOS.js +15 -0
  51. package/dist/{checkmark-bold-B6aImdAf.js → checkmark-bold-BEzepFY4.js} +1 -1
  52. package/dist/checkmark-bold-Dzv2hN2Q.js +12 -0
  53. package/dist/{chevron-bottom-t4h4eaxS.js → chevron-bottom-Bdaxlaxc.js} +1 -1
  54. package/dist/chevron-bottom-CXdHWe0F.js +12 -0
  55. package/dist/{chevron-left-D3susSgC.js → chevron-left-2aCeqxdm.js} +1 -1
  56. package/dist/chevron-left-CeuFz3M9.js +12 -0
  57. package/dist/{chevron-right-W13sAkua.js → chevron-right-BPgQeMPz.js} +1 -1
  58. package/dist/chevron-right-DikqbHjp.js +12 -0
  59. package/dist/{chevron-top-Bx-QdB_J.js → chevron-top-BskFpgMP.js} +1 -1
  60. package/dist/chevron-top-CjCScawp.js +12 -0
  61. package/dist/{chrome-store-CGxM7IYK.js → chrome-store-CxhEG2Jk.js} +1 -1
  62. package/dist/chrome-store-DaP5Y4w2.js +65 -0
  63. package/dist/{clock-DLxk1mp4.js → clock-BDgHn083.js} +1 -1
  64. package/dist/clock-BzjZWK68.js +12 -0
  65. package/dist/{close-XyT_Ei7X.js → close-CQTa1LZg.js} +1 -1
  66. package/dist/close-Dqncm2nY.js +12 -0
  67. package/dist/{coinPlaceholder-COnVP39c.js → coinPlaceholder-B-NSV729.js} +1 -1
  68. package/dist/coinPlaceholder-BExfa33b.js +12 -0
  69. package/dist/{compass-B7Ua__ME.js → compass-BdJmk2w2.js} +1 -1
  70. package/dist/compass-C1H_fht-.js +12 -0
  71. package/dist/{copy-CwqmRN0X.js → copy-Cg4vgr82.js} +1 -1
  72. package/dist/copy-DPMVX3yZ.js +19 -0
  73. package/dist/{core-HN_b3jpG.js → core-BSwMFU2B.js} +6124 -4570
  74. package/dist/core-BYOwnw_B.js +16521 -0
  75. package/dist/{cursor-CZUzCZDa.js → cursor-BoD_rq0f.js} +1 -1
  76. package/dist/{cursor-transparent-C-iNJp5e.js → cursor-transparent-Dqs1kXcb.js} +1 -1
  77. package/dist/cursor-transparent-IQlZspwQ.js +16 -0
  78. package/dist/cursor-ybJpiPr6.js +7 -0
  79. package/dist/{desktop-CKvUvwiO.js → desktop-BOxkTik1.js} +1 -1
  80. package/dist/desktop-WMYv3b4Q.js +13 -0
  81. package/dist/{disconnect-Baq1ttCe.js → disconnect-CTxFyZWa.js} +1 -1
  82. package/dist/disconnect-eMeec26w.js +12 -0
  83. package/dist/{discord-D8jJPT-u.js → discord-BJRxIhBt.js} +1 -1
  84. package/dist/discord-CpTo4KnZ.js +21 -0
  85. package/dist/{down-CbXkinMO.js → down-372J_rRV.js} +2 -2
  86. package/dist/down-hvB7J3FG.js +622 -0
  87. package/dist/{etherscan-DmvsfmlR.js → etherscan-CyQf5MH5.js} +1 -1
  88. package/dist/etherscan-DQ1h54d3.js +10 -0
  89. package/dist/{exclamation-triangle-B5sVL0Op.js → exclamation-triangle-DFOXjtuI.js} +1 -1
  90. package/dist/exclamation-triangle-DzKs0-30.js +8 -0
  91. package/dist/{extension-DTURW9PD.js → extension-XiWSr1Ku.js} +1 -1
  92. package/dist/extension-ep1TEUSD.js +12 -0
  93. package/dist/{external-link-BhiyYwAM.js → external-link-CYjbHRDY.js} +1 -1
  94. package/dist/external-link-DRzzevt_.js +12 -0
  95. package/dist/{facebook-BKU8pCSU.js → facebook-DhP37m2R.js} +1 -1
  96. package/dist/facebook-eXS31CP5.js +30 -0
  97. package/dist/{farcaster-aPuBoT-f.js → farcaster-C1J2oGt2.js} +1 -1
  98. package/dist/farcaster-f0EPKy4w.js +16 -0
  99. package/dist/{filters-Dhcy_bWD.js → filters-C5jLy9GP.js} +1 -1
  100. package/dist/filters-RqawLZYy.js +12 -0
  101. package/dist/{getChainIds-hFBaLC3P.js → getChainIds-AaKb_MmO.js} +2 -2
  102. package/dist/getChainIds-DXEtLb1g.js +1888 -0
  103. package/dist/{getCosmosAddress-wW2QvGf4.js → getCosmosAddress-D-F7jz-d.js} +2 -2
  104. package/dist/getCosmosAddress-X_cfoAnv.js +9517 -0
  105. package/dist/{github-DpOcHBpK.js → github-CJ8g1by7.js} +1 -1
  106. package/dist/github-d1vUfc1B.js +22 -0
  107. package/dist/{google-Dlr5X4XZ.js → google-DpIVCnNm.js} +1 -1
  108. package/dist/google-Dtcfyt4F.js +22 -0
  109. package/dist/{hamburger-CbTP1z8e.js → hamburger-BylLGawu.js} +5 -5
  110. package/dist/hamburger-DezZOKRv.js +3915 -0
  111. package/dist/{help-circle-DfsreI1-.js → help-circle-BESCFGIa.js} +1 -1
  112. package/dist/help-circle-BTpSg7wr.js +16 -0
  113. package/dist/{id-CgVrDv4g.js → id-CPX0IEMo.js} +1 -1
  114. package/dist/id-CV-pIIiZ.js +16 -0
  115. package/dist/{image-BgZMfISb.js → image-DrFHyQOS.js} +1 -1
  116. package/dist/image-n7ODnWNp.js +8 -0
  117. package/dist/{index-CzIE4OVR.js → index-BDezoD7C.js} +1 -1
  118. package/dist/{index-DEzMTwnP.js → index-BOd8pd8c.js} +11 -11
  119. package/dist/index-BYmiFoJh.js +29495 -0
  120. package/dist/index-BheqnLKf.js +992 -0
  121. package/dist/{index-ij8WLtCK.js → index-C7McnY5R.js} +10 -10
  122. package/dist/{index-Dfnahm9u.js → index-CI-V1HdQ.js} +4 -4
  123. package/dist/{index-CQef3aFT.js → index-CSgWo9Cg.js} +5 -5
  124. package/dist/index-CViW2kjE.js +13547 -0
  125. package/dist/{index-W17Yun1B.js → index-CoV9zQx1.js} +78 -78
  126. package/dist/{index-BzlNNUJC.js → index-D0J1OD73.js} +4 -4
  127. package/dist/index-DO14DPs3.js +6713 -0
  128. package/dist/{index-BNAc3BNQ.js → index-D_8iklL2.js} +7 -7
  129. package/dist/{index-D-h2D2T4.js → index-DhZwdjPQ.js} +2 -2
  130. package/dist/{index-cmkdh21h.js → index-DjHDqI7m.js} +4 -4
  131. package/dist/{index-Doq8prid.js → index-DoNokw4Q.js} +1 -1
  132. package/dist/index-GlSAE8hE.js +472 -0
  133. package/dist/index-H7ThVJwV.js +3267 -0
  134. package/dist/index-Pni0gIii.js +206 -0
  135. package/dist/index-TEYMoNwP.js +9 -0
  136. package/dist/index-VS3sEqmI.js +330 -0
  137. package/dist/index-ePnYqYhf.js +1483 -0
  138. package/dist/index-eatshJSd.js +18509 -0
  139. package/dist/{index.es-DznYPOeF.js → index.es-B95K0DgG.js} +1 -1
  140. package/dist/index.es-BzyBckd_.js +366 -0
  141. package/dist/index.es-CMvE7ghR.js +14904 -0
  142. package/dist/index.es-gTtSa0r5.js +14904 -0
  143. package/dist/index.es.js +1 -1
  144. package/dist/{info-CZQMmcBD.js → info-DB9XS3BU.js} +1 -1
  145. package/dist/info-DWZmKXfC.js +7 -0
  146. package/dist/{info-circle-CA3WSSRD.js → info-circle-BVB8s9W_.js} +1 -1
  147. package/dist/info-circle-Bk9rpQzz.js +16 -0
  148. package/dist/{lightbulb-8ISYXfUt.js → lightbulb-C0eiLvuS.js} +1 -1
  149. package/dist/lightbulb-CUDopurR.js +7 -0
  150. package/dist/{mail-CHIth09p.js → mail-CYcc9yZZ.js} +1 -1
  151. package/dist/mail-Df9wlUBz.js +12 -0
  152. package/dist/{mobile-CrFtClXb.js → mobile-Cvm9Skqq.js} +1 -1
  153. package/dist/mobile-DcoUJktC.js +13 -0
  154. package/dist/{more-mHern-4V.js → more-B-UvO1Yo.js} +1 -1
  155. package/dist/more-DbsAB7Xx.js +15 -0
  156. package/dist/{network-placeholder-CoODkTLk.js → network-placeholder-C8QNcwPf.js} +1 -1
  157. package/dist/network-placeholder-CnHZLxGT.js +18 -0
  158. package/dist/{nftPlaceholder-CG7DC4DT.js → nftPlaceholder-C_LU9tT5.js} +1 -1
  159. package/dist/nftPlaceholder-D7igGAAq.js +12 -0
  160. package/dist/{off-CrgcN-zp.js → off-BEQbMYBZ.js} +1 -1
  161. package/dist/off-Brms9nN7.js +12 -0
  162. package/dist/{play-store-CQP9kqkp.js → play-store-CEopCauM.js} +1 -1
  163. package/dist/play-store-z4z-boXn.js +36 -0
  164. package/dist/{plus-DHA7xDuc.js → plus-CtEYHV2t.js} +1 -1
  165. package/dist/plus-LkrIZJEQ.js +17 -0
  166. package/dist/{qr-code-zibhnzKq.js → qr-code-BhmZxeo_.js} +1 -1
  167. package/dist/qr-code-CZnYaNoE.js +10 -0
  168. package/dist/{recycle-horizontal-DywyCULr.js → recycle-horizontal-CF9eqICi.js} +1 -1
  169. package/dist/recycle-horizontal-CeGotUdv.js +13 -0
  170. package/dist/{refresh-e2GocWQK.js → refresh-Bm3plkBE.js} +1 -1
  171. package/dist/refresh-CKhWU1dQ.js +12 -0
  172. package/dist/{reown-logo-BU64qOXz.js → reown-logo-8S9ZN_-T.js} +1 -1
  173. package/dist/reown-logo-CF2Qkyw1.js +16 -0
  174. package/dist/{search-DzxpvkH-.js → search-DNcA47oY.js} +1 -1
  175. package/dist/search-DyuAYb_-.js +12 -0
  176. package/dist/{send-r9Pjl4vo.js → send-B0S9gHH6.js} +1 -1
  177. package/dist/send-BbBOjlsM.js +19 -0
  178. package/dist/{swapHorizontal-BTrXWq48.js → swapHorizontal-BuTPPB8N.js} +1 -1
  179. package/dist/swapHorizontal-DA7yhPfV.js +12 -0
  180. package/dist/{swapHorizontalBold-CJqWkgp6.js → swapHorizontalBold-BnB-fpce.js} +1 -1
  181. package/dist/swapHorizontalBold-BujZxwgY.js +12 -0
  182. package/dist/{swapHorizontalMedium-DX7hDgRK.js → swapHorizontalMedium-9QnwwjJD.js} +1 -1
  183. package/dist/swapHorizontalMedium-hEBn_MJv.js +20 -0
  184. package/dist/{swapHorizontalRoundedBold-C51tXWKa.js → swapHorizontalRoundedBold-C83mxp3u.js} +1 -1
  185. package/dist/swapHorizontalRoundedBold-Cqg1Na-5.js +12 -0
  186. package/dist/{swapVertical-Crddwuzr.js → swapVertical-BAz7hmKO.js} +1 -1
  187. package/dist/swapVertical-D1CdGHJt.js +12 -0
  188. package/dist/{telegram-BC6rpZd8.js → telegram-BMT9bLfw.js} +1 -1
  189. package/dist/telegram-dDQ2sOw5.js +20 -0
  190. package/dist/{three-dots-DC9iZV71.js → three-dots-DuhUrXKI.js} +1 -1
  191. package/dist/three-dots-ltDeu1Xu.js +9 -0
  192. package/dist/{twitch-Dqthmddu.js → twitch-ClsoABSi.js} +1 -1
  193. package/dist/twitch-sBusnrAt.js +22 -0
  194. package/dist/{twitterIcon-DIWxOs67.js → twitterIcon-B9n98fnH.js} +1 -1
  195. package/dist/twitterIcon-BKMgaEZ4.js +10 -0
  196. package/dist/{unsupportedProp-BW6bMgdV.js → unsupportedProp-BXmR-9gT.js} +1 -1
  197. package/dist/unsupportedProp-P9y3_0om.js +10 -0
  198. package/dist/{useRegisterError-D0oAcJrb.js → useRegisterError-DGMdKFc9.js} +1 -1
  199. package/dist/useRegisterError-DVG0sgLq.js +8918 -0
  200. package/dist/{verify-GrViE51Y.js → verify-BHTa1Niv.js} +1 -1
  201. package/dist/verify-DXzijLDZ.js +12 -0
  202. package/dist/{verify-filled-Cws_QO3X.js → verify-filled-CqobBYuI.js} +1 -1
  203. package/dist/verify-filled-DnKqj8X5.js +12 -0
  204. package/dist/{w3m-modal-n7hzVP_I.js → w3m-modal-B7akV0Kp.js} +2 -2
  205. package/dist/w3m-modal-Cc1j8j_E.js +1471 -0
  206. package/dist/{wallet-Cd1ruTUh.js → wallet-ObJy7yZR.js} +1 -1
  207. package/dist/{wallet-placeholder-Ce4gGswZ.js → wallet-placeholder-BxVrKpEz.js} +1 -1
  208. package/dist/wallet-placeholder-DEsjd5Nv.js +18 -0
  209. package/dist/wallet-zL6TDKIa.js +12 -0
  210. package/dist/{walletconnect-CqpJhu9-.js → walletconnect-CYJbrPQQ.js} +1 -1
  211. package/dist/walletconnect-CZz6e0wy.js +36 -0
  212. package/dist/{warning-circle-DQ6ZS1NO.js → warning-circle-DOwgDOgL.js} +1 -1
  213. package/dist/warning-circle-DsGlg2MF.js +16 -0
  214. package/dist/{x-CR749er2.js → x-B03u0kWD.js} +1 -1
  215. package/dist/x-MwPhq03Y.js +16 -0
  216. package/package.json +1 -1
  217. package/dist/index.es-C8qSCFHh.js +0 -13234
@@ -0,0 +1,3267 @@
1
+ import { jsx as c, jsxs as C, Fragment as B } from "react/jsx-runtime";
2
+ import * as _ from "react";
3
+ import { useState as Z, useEffect as te } from "react";
4
+ import { useConnect as Xt, useAccount as _t, useDisconnect as Dn, useSwitchAccount as Kt, useConfig as qt, useConnectors as Tn, useConnections as kn } from "wagmi";
5
+ import { p as z, g as An, b as zn, i as En, aC as Ln, d as R, _ as Ye, s as On, e as Rn, f as Pe, h as Pn, P as O, C as At, a as Te, u as A, l as Ie } from "./index-BYmiFoJh.js";
6
+ import { _ as en, x as Bn, C as Je, A as Gn, i as pe, d as Un, u as ke, B as tn, W as Qn } from "./useRegisterError-DGMdKFc9.js";
7
+ import { useDynamicContext as he, useIsLoggedIn as Xe, useWalletItemActions as Ct, useSwitchWallet as _e, useUserWallets as Ae, useWalletOptions as Ke } from "@dynamic-labs/sdk-react-core";
8
+ import { _ as zt, C as nn, g as We } from "./getChainIds-DXEtLb1g.js";
9
+ import { useAccount as qe, useSuggestChain as rn, useSuggestChainAndConnect as sn, useConnect as on, WalletType as De, useActiveChainIds as Yn, useDisconnect as Zn, useActiveWalletType as Vn } from "graz";
10
+ import { B as Et } from "./Box-Dw7IJo3D.js";
11
+ import { v as $n } from "./validError-CDlJpg_f.js";
12
+ import "@dynamic-labs/solana";
13
+ import "@dynamic-labs/bitcoin";
14
+ const an = /* @__PURE__ */ _.createContext(null);
15
+ z.env.NODE_ENV !== "production" && (an.displayName = "ThemeContext");
16
+ function Jn() {
17
+ const r = _.useContext(an);
18
+ return z.env.NODE_ENV !== "production" && _.useDebugValue(r), r;
19
+ }
20
+ const Wn = typeof Symbol == "function" && Symbol.for, Fn = Wn ? Symbol.for("mui.nested") : "__THEME_NESTED__";
21
+ function Ue(r) {
22
+ "@babel/helpers - typeof";
23
+ return Ue = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
24
+ return typeof n;
25
+ } : function(n) {
26
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
27
+ }, Ue(r);
28
+ }
29
+ function Hn(r, n) {
30
+ if (Ue(r) != "object" || !r) return r;
31
+ var t = r[Symbol.toPrimitive];
32
+ if (t !== void 0) {
33
+ var e = t.call(r, n);
34
+ if (Ue(e) != "object") return e;
35
+ throw new TypeError("@@toPrimitive must return a primitive value.");
36
+ }
37
+ return String(r);
38
+ }
39
+ function Xn(r) {
40
+ var n = Hn(r, "string");
41
+ return Ue(n) == "symbol" ? n : n + "";
42
+ }
43
+ function _n(r) {
44
+ return An("MuiTypography", r);
45
+ }
46
+ zn("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
47
+ const Kn = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], qn = (r) => {
48
+ const {
49
+ align: n,
50
+ gutterBottom: t,
51
+ noWrap: e,
52
+ paragraph: i,
53
+ variant: o,
54
+ classes: a
55
+ } = r, s = {
56
+ root: ["root", o, r.align !== "inherit" && `align${Pe(n)}`, t && "gutterBottom", e && "noWrap", i && "paragraph"]
57
+ };
58
+ return Pn(s, _n, a);
59
+ }, er = On("span", {
60
+ name: "MuiTypography",
61
+ slot: "Root",
62
+ overridesResolver: (r, n) => {
63
+ const {
64
+ ownerState: t
65
+ } = r;
66
+ return [n.root, t.variant && n[t.variant], t.align !== "inherit" && n[`align${Pe(t.align)}`], t.noWrap && n.noWrap, t.gutterBottom && n.gutterBottom, t.paragraph && n.paragraph];
67
+ }
68
+ })(({
69
+ theme: r,
70
+ ownerState: n
71
+ }) => R({
72
+ margin: 0
73
+ }, n.variant === "inherit" && {
74
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
75
+ font: "inherit"
76
+ }, n.variant !== "inherit" && r.typography[n.variant], n.align !== "inherit" && {
77
+ textAlign: n.align
78
+ }, n.noWrap && {
79
+ overflow: "hidden",
80
+ textOverflow: "ellipsis",
81
+ whiteSpace: "nowrap"
82
+ }, n.gutterBottom && {
83
+ marginBottom: "0.35em"
84
+ }, n.paragraph && {
85
+ marginBottom: 16
86
+ })), Lt = {
87
+ h1: "h1",
88
+ h2: "h2",
89
+ h3: "h3",
90
+ h4: "h4",
91
+ h5: "h5",
92
+ h6: "h6",
93
+ subtitle1: "h6",
94
+ subtitle2: "h6",
95
+ body1: "p",
96
+ body2: "p",
97
+ inherit: "p"
98
+ }, tr = {
99
+ primary: "primary.main",
100
+ textPrimary: "text.primary",
101
+ secondary: "secondary.main",
102
+ textSecondary: "text.secondary",
103
+ error: "error.main"
104
+ }, nr = (r) => tr[r] || r, cn = /* @__PURE__ */ _.forwardRef(function(n, t) {
105
+ const e = En({
106
+ props: n,
107
+ name: "MuiTypography"
108
+ }), i = nr(e.color), o = Ln(R({}, e, {
109
+ color: i
110
+ })), {
111
+ align: a = "inherit",
112
+ className: s,
113
+ component: l,
114
+ gutterBottom: u = !1,
115
+ noWrap: g = !1,
116
+ paragraph: h = !1,
117
+ variant: m = "body1",
118
+ variantMapping: y = Lt
119
+ } = o, p = Ye(o, Kn), d = R({}, o, {
120
+ align: a,
121
+ color: i,
122
+ className: s,
123
+ component: l,
124
+ gutterBottom: u,
125
+ noWrap: g,
126
+ paragraph: h,
127
+ variant: m,
128
+ variantMapping: y
129
+ }), v = l || (h ? "p" : y[m] || Lt[m]) || "span", M = qn(d);
130
+ return /* @__PURE__ */ c(er, R({
131
+ as: v,
132
+ ref: t,
133
+ ownerState: d,
134
+ className: Rn(M.root, s)
135
+ }, p));
136
+ });
137
+ z.env.NODE_ENV !== "production" && (cn.propTypes = {
138
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
139
+ // │ These PropTypes are generated from the TypeScript type definitions. │
140
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
141
+ // └─────────────────────────────────────────────────────────────────────┘
142
+ /**
143
+ * Set the text-align on the component.
144
+ * @default 'inherit'
145
+ */
146
+ align: O.oneOf(["center", "inherit", "justify", "left", "right"]),
147
+ /**
148
+ * The content of the component.
149
+ */
150
+ children: O.node,
151
+ /**
152
+ * Override or extend the styles applied to the component.
153
+ */
154
+ classes: O.object,
155
+ /**
156
+ * @ignore
157
+ */
158
+ className: O.string,
159
+ /**
160
+ * The component used for the root node.
161
+ * Either a string to use a HTML element or a component.
162
+ */
163
+ component: O.elementType,
164
+ /**
165
+ * If `true`, the text will have a bottom margin.
166
+ * @default false
167
+ */
168
+ gutterBottom: O.bool,
169
+ /**
170
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
171
+ *
172
+ * Note that text overflow can only happen with block or inline-block level elements
173
+ * (the element needs to have a width in order to overflow).
174
+ * @default false
175
+ */
176
+ noWrap: O.bool,
177
+ /**
178
+ * If `true`, the element will be a paragraph element.
179
+ * @default false
180
+ */
181
+ paragraph: O.bool,
182
+ /**
183
+ * The system prop that allows defining system overrides as well as additional CSS styles.
184
+ */
185
+ sx: O.oneOfType([O.arrayOf(O.oneOfType([O.func, O.object, O.bool])), O.func, O.object]),
186
+ /**
187
+ * Applies the theme typography styles.
188
+ * @default 'body1'
189
+ */
190
+ variant: O.oneOfType([O.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), O.string]),
191
+ /**
192
+ * The component maps the variant prop to a range of different HTML element types.
193
+ * For instance, subtitle1 to `<h6>`.
194
+ * If you wish to change that mapping, you can provide your own.
195
+ * Alternatively, you can use the `component` prop.
196
+ * @default {
197
+ * h1: 'h1',
198
+ * h2: 'h2',
199
+ * h3: 'h3',
200
+ * h4: 'h4',
201
+ * h5: 'h5',
202
+ * h6: 'h6',
203
+ * subtitle1: 'h6',
204
+ * subtitle2: 'h6',
205
+ * body1: 'p',
206
+ * body2: 'p',
207
+ * inherit: 'p',
208
+ * }
209
+ */
210
+ variantMapping: O.object
211
+ });
212
+ const rr = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"];
213
+ function ir(r = {}) {
214
+ const {
215
+ disableGlobal: n = !1,
216
+ productionPrefix: t = "jss",
217
+ seed: e = ""
218
+ } = r, i = e === "" ? "" : `${e}-`;
219
+ let o = 0;
220
+ const a = () => (o += 1, z.env.NODE_ENV !== "production" && o >= 1e10, o);
221
+ return (s, l) => {
222
+ const u = l.options.name;
223
+ if (u && u.indexOf("Mui") === 0 && !l.options.link && !n) {
224
+ if (rr.indexOf(s.key) !== -1)
225
+ return `Mui-${s.key}`;
226
+ const h = `${i}${u}-${s.key}`;
227
+ return !l.options.theme[Fn] || e !== "" ? h : `${h}-${a()}`;
228
+ }
229
+ if (z.env.NODE_ENV === "production")
230
+ return `${i}${t}${a()}`;
231
+ const g = `${s.key}-${a()}`;
232
+ return l.options.classNamePrefix ? `${i}${l.options.classNamePrefix}-${g}` : `${i}${g}`;
233
+ };
234
+ }
235
+ var sr = z.env.NODE_ENV === "production";
236
+ function re(r, n) {
237
+ if (!sr) {
238
+ var t = "Warning: " + n;
239
+ try {
240
+ throw Error(t);
241
+ } catch {
242
+ }
243
+ }
244
+ }
245
+ var Ot = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
246
+ return typeof r;
247
+ } : function(r) {
248
+ return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
249
+ }, Ze = (typeof window > "u" ? "undefined" : Ot(window)) === "object" && (typeof document > "u" ? "undefined" : Ot(document)) === "object" && document.nodeType === 9;
250
+ function or(r, n) {
251
+ for (var t = 0; t < n.length; t++) {
252
+ var e = n[t];
253
+ e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(r, Xn(e.key), e);
254
+ }
255
+ }
256
+ function ln(r, n, t) {
257
+ return n && or(r.prototype, n), Object.defineProperty(r, "prototype", {
258
+ writable: !1
259
+ }), r;
260
+ }
261
+ var ar = {}.constructor;
262
+ function gt(r) {
263
+ if (r == null || typeof r != "object") return r;
264
+ if (Array.isArray(r)) return r.map(gt);
265
+ if (r.constructor !== ar) return r;
266
+ var n = {};
267
+ for (var t in r)
268
+ n[t] = gt(r[t]);
269
+ return n;
270
+ }
271
+ function jt(r, n, t) {
272
+ r === void 0 && (r = "unnamed");
273
+ var e = t.jss, i = gt(n), o = e.plugins.onCreateRule(r, i, t);
274
+ return o || (r[0] === "@" && z.env.NODE_ENV !== "production" && re(!1, "[JSS] Unknown rule " + r), null);
275
+ }
276
+ var Rt = function(n, t) {
277
+ for (var e = "", i = 0; i < n.length && n[i] !== "!important"; i++)
278
+ e && (e += t), e += n[i];
279
+ return e;
280
+ }, ve = function(n) {
281
+ if (!Array.isArray(n)) return n;
282
+ var t = "";
283
+ if (Array.isArray(n[0]))
284
+ for (var e = 0; e < n.length && n[e] !== "!important"; e++)
285
+ t && (t += ", "), t += Rt(n[e], " ");
286
+ else t = Rt(n, ", ");
287
+ return n[n.length - 1] === "!important" && (t += " !important"), t;
288
+ };
289
+ function ze(r) {
290
+ return r && r.format === !1 ? {
291
+ linebreak: "",
292
+ space: ""
293
+ } : {
294
+ linebreak: `
295
+ `,
296
+ space: " "
297
+ };
298
+ }
299
+ function Le(r, n) {
300
+ for (var t = "", e = 0; e < n; e++)
301
+ t += " ";
302
+ return t + r;
303
+ }
304
+ function Qe(r, n, t) {
305
+ t === void 0 && (t = {});
306
+ var e = "";
307
+ if (!n) return e;
308
+ var i = t, o = i.indent, a = o === void 0 ? 0 : o, s = n.fallbacks;
309
+ t.format === !1 && (a = -1 / 0);
310
+ var l = ze(t), u = l.linebreak, g = l.space;
311
+ if (r && a++, s)
312
+ if (Array.isArray(s))
313
+ for (var h = 0; h < s.length; h++) {
314
+ var m = s[h];
315
+ for (var y in m) {
316
+ var p = m[y];
317
+ p != null && (e && (e += u), e += Le(y + ":" + g + ve(p) + ";", a));
318
+ }
319
+ }
320
+ else
321
+ for (var d in s) {
322
+ var v = s[d];
323
+ v != null && (e && (e += u), e += Le(d + ":" + g + ve(v) + ";", a));
324
+ }
325
+ for (var M in n) {
326
+ var Y = n[M];
327
+ Y != null && M !== "fallbacks" && (e && (e += u), e += Le(M + ":" + g + ve(Y) + ";", a));
328
+ }
329
+ return !e && !t.allowEmpty || !r ? e : (a--, e && (e = "" + u + e + u), Le("" + r + g + "{" + e, a) + Le("}", a));
330
+ }
331
+ var cr = /([[\].#*$><+~=|^:(),"'`\s])/g, Pt = typeof CSS < "u" && CSS.escape, St = function(r) {
332
+ return Pt ? Pt(r) : r.replace(cr, "\\$1");
333
+ }, un = /* @__PURE__ */ function() {
334
+ function r(t, e, i) {
335
+ this.type = "style", this.isProcessed = !1;
336
+ var o = i.sheet, a = i.Renderer;
337
+ this.key = t, this.options = i, this.style = e, o ? this.renderer = o.renderer : a && (this.renderer = new a());
338
+ }
339
+ var n = r.prototype;
340
+ return n.prop = function(e, i, o) {
341
+ if (i === void 0) return this.style[e];
342
+ var a = o ? o.force : !1;
343
+ if (!a && this.style[e] === i) return this;
344
+ var s = i;
345
+ (!o || o.process !== !1) && (s = this.options.jss.plugins.onChangeValue(i, e, this));
346
+ var l = s == null || s === !1, u = e in this.style;
347
+ if (l && !u && !a) return this;
348
+ var g = l && u;
349
+ if (g ? delete this.style[e] : this.style[e] = s, this.renderable && this.renderer)
350
+ return g ? this.renderer.removeProperty(this.renderable, e) : this.renderer.setProperty(this.renderable, e, s), this;
351
+ var h = this.options.sheet;
352
+ return h && h.attached && z.env.NODE_ENV !== "production" && re(!1, '[JSS] Rule is not linked. Missing sheet option "link: true".'), this;
353
+ }, r;
354
+ }(), bt = /* @__PURE__ */ function(r) {
355
+ en(n, r);
356
+ function n(e, i, o) {
357
+ var a;
358
+ a = r.call(this, e, i, o) || this;
359
+ var s = o.selector, l = o.scoped, u = o.sheet, g = o.generateId;
360
+ return s ? a.selectorText = s : l !== !1 && (a.id = g(zt(zt(a)), u), a.selectorText = "." + St(a.id)), a;
361
+ }
362
+ var t = n.prototype;
363
+ return t.applyTo = function(i) {
364
+ var o = this.renderer;
365
+ if (o) {
366
+ var a = this.toJSON();
367
+ for (var s in a)
368
+ o.setProperty(i, s, a[s]);
369
+ }
370
+ return this;
371
+ }, t.toJSON = function() {
372
+ var i = {};
373
+ for (var o in this.style) {
374
+ var a = this.style[o];
375
+ typeof a != "object" ? i[o] = a : Array.isArray(a) && (i[o] = ve(a));
376
+ }
377
+ return i;
378
+ }, t.toString = function(i) {
379
+ var o = this.options.sheet, a = o ? o.options.link : !1, s = a ? R({}, i, {
380
+ allowEmpty: !0
381
+ }) : i;
382
+ return Qe(this.selectorText, this.style, s);
383
+ }, ln(n, [{
384
+ key: "selector",
385
+ set: function(i) {
386
+ if (i !== this.selectorText) {
387
+ this.selectorText = i;
388
+ var o = this.renderer, a = this.renderable;
389
+ if (!(!a || !o)) {
390
+ var s = o.setSelector(a, i);
391
+ s || o.replaceRule(a, this);
392
+ }
393
+ }
394
+ },
395
+ get: function() {
396
+ return this.selectorText;
397
+ }
398
+ }]), n;
399
+ }(un), lr = {
400
+ onCreateRule: function(n, t, e) {
401
+ return n[0] === "@" || e.parent && e.parent.type === "keyframes" ? null : new bt(n, t, e);
402
+ }
403
+ }, nt = {
404
+ indent: 1,
405
+ children: !0
406
+ }, ur = /@([\w-]+)/, dr = /* @__PURE__ */ function() {
407
+ function r(t, e, i) {
408
+ this.type = "conditional", this.isProcessed = !1, this.key = t;
409
+ var o = t.match(ur);
410
+ this.at = o ? o[1] : "unknown", this.query = i.name || "@" + this.at, this.options = i, this.rules = new et(R({}, i, {
411
+ parent: this
412
+ }));
413
+ for (var a in e)
414
+ this.rules.add(a, e[a]);
415
+ this.rules.process();
416
+ }
417
+ var n = r.prototype;
418
+ return n.getRule = function(e) {
419
+ return this.rules.get(e);
420
+ }, n.indexOf = function(e) {
421
+ return this.rules.indexOf(e);
422
+ }, n.addRule = function(e, i, o) {
423
+ var a = this.rules.add(e, i, o);
424
+ return a ? (this.options.jss.plugins.onProcessRule(a), a) : null;
425
+ }, n.replaceRule = function(e, i, o) {
426
+ var a = this.rules.replace(e, i, o);
427
+ return a && this.options.jss.plugins.onProcessRule(a), a;
428
+ }, n.toString = function(e) {
429
+ e === void 0 && (e = nt);
430
+ var i = ze(e), o = i.linebreak;
431
+ if (e.indent == null && (e.indent = nt.indent), e.children == null && (e.children = nt.children), e.children === !1)
432
+ return this.query + " {}";
433
+ var a = this.rules.toString(e);
434
+ return a ? this.query + " {" + o + a + o + "}" : "";
435
+ }, r;
436
+ }(), fr = /@container|@media|@supports\s+/, hr = {
437
+ onCreateRule: function(n, t, e) {
438
+ return fr.test(n) ? new dr(n, t, e) : null;
439
+ }
440
+ }, rt = {
441
+ indent: 1,
442
+ children: !0
443
+ }, gr = /@keyframes\s+([\w-]+)/, wt = /* @__PURE__ */ function() {
444
+ function r(t, e, i) {
445
+ this.type = "keyframes", this.at = "@keyframes", this.isProcessed = !1;
446
+ var o = t.match(gr);
447
+ o && o[1] ? this.name = o[1] : (this.name = "noname", z.env.NODE_ENV !== "production" && re(!1, "[JSS] Bad keyframes name " + t)), this.key = this.type + "-" + this.name, this.options = i;
448
+ var a = i.scoped, s = i.sheet, l = i.generateId;
449
+ this.id = a === !1 ? this.name : St(l(this, s)), this.rules = new et(R({}, i, {
450
+ parent: this
451
+ }));
452
+ for (var u in e)
453
+ this.rules.add(u, e[u], R({}, i, {
454
+ parent: this
455
+ }));
456
+ this.rules.process();
457
+ }
458
+ var n = r.prototype;
459
+ return n.toString = function(e) {
460
+ e === void 0 && (e = rt);
461
+ var i = ze(e), o = i.linebreak;
462
+ if (e.indent == null && (e.indent = rt.indent), e.children == null && (e.children = rt.children), e.children === !1)
463
+ return this.at + " " + this.id + " {}";
464
+ var a = this.rules.toString(e);
465
+ return a && (a = "" + o + a + o), this.at + " " + this.id + " {" + a + "}";
466
+ }, r;
467
+ }(), br = /@keyframes\s+/, wr = /\$([\w-]+)/g, pt = function(n, t) {
468
+ return typeof n == "string" ? n.replace(wr, function(e, i) {
469
+ return i in t ? t[i] : (z.env.NODE_ENV !== "production" && re(!1, '[JSS] Referenced keyframes rule "' + i + '" is not defined.'), e);
470
+ }) : n;
471
+ }, Bt = function(n, t, e) {
472
+ var i = n[t], o = pt(i, e);
473
+ o !== i && (n[t] = o);
474
+ }, pr = {
475
+ onCreateRule: function(n, t, e) {
476
+ return typeof n == "string" && br.test(n) ? new wt(n, t, e) : null;
477
+ },
478
+ // Animation name ref replacer.
479
+ onProcessStyle: function(n, t, e) {
480
+ return t.type !== "style" || !e || ("animation-name" in n && Bt(n, "animation-name", e.keyframes), "animation" in n && Bt(n, "animation", e.keyframes)), n;
481
+ },
482
+ onChangeValue: function(n, t, e) {
483
+ var i = e.options.sheet;
484
+ if (!i)
485
+ return n;
486
+ switch (t) {
487
+ case "animation":
488
+ return pt(n, i.keyframes);
489
+ case "animation-name":
490
+ return pt(n, i.keyframes);
491
+ default:
492
+ return n;
493
+ }
494
+ }
495
+ }, mr = /* @__PURE__ */ function(r) {
496
+ en(n, r);
497
+ function n() {
498
+ return r.apply(this, arguments) || this;
499
+ }
500
+ var t = n.prototype;
501
+ return t.toString = function(i) {
502
+ var o = this.options.sheet, a = o ? o.options.link : !1, s = a ? R({}, i, {
503
+ allowEmpty: !0
504
+ }) : i;
505
+ return Qe(this.key, this.style, s);
506
+ }, n;
507
+ }(un), yr = {
508
+ onCreateRule: function(n, t, e) {
509
+ return e.parent && e.parent.type === "keyframes" ? new mr(n, t, e) : null;
510
+ }
511
+ }, xr = /* @__PURE__ */ function() {
512
+ function r(t, e, i) {
513
+ this.type = "font-face", this.at = "@font-face", this.isProcessed = !1, this.key = t, this.style = e, this.options = i;
514
+ }
515
+ var n = r.prototype;
516
+ return n.toString = function(e) {
517
+ var i = ze(e), o = i.linebreak;
518
+ if (Array.isArray(this.style)) {
519
+ for (var a = "", s = 0; s < this.style.length; s++)
520
+ a += Qe(this.at, this.style[s]), this.style[s + 1] && (a += o);
521
+ return a;
522
+ }
523
+ return Qe(this.at, this.style, e);
524
+ }, r;
525
+ }(), Mr = /@font-face/, vr = {
526
+ onCreateRule: function(n, t, e) {
527
+ return Mr.test(n) ? new xr(n, t, e) : null;
528
+ }
529
+ }, Ir = /* @__PURE__ */ function() {
530
+ function r(t, e, i) {
531
+ this.type = "viewport", this.at = "@viewport", this.isProcessed = !1, this.key = t, this.style = e, this.options = i;
532
+ }
533
+ var n = r.prototype;
534
+ return n.toString = function(e) {
535
+ return Qe(this.key, this.style, e);
536
+ }, r;
537
+ }(), Nr = {
538
+ onCreateRule: function(n, t, e) {
539
+ return n === "@viewport" || n === "@-ms-viewport" ? new Ir(n, t, e) : null;
540
+ }
541
+ }, Cr = /* @__PURE__ */ function() {
542
+ function r(t, e, i) {
543
+ this.type = "simple", this.isProcessed = !1, this.key = t, this.value = e, this.options = i;
544
+ }
545
+ var n = r.prototype;
546
+ return n.toString = function(e) {
547
+ if (Array.isArray(this.value)) {
548
+ for (var i = "", o = 0; o < this.value.length; o++)
549
+ i += this.key + " " + this.value[o] + ";", this.value[o + 1] && (i += `
550
+ `);
551
+ return i;
552
+ }
553
+ return this.key + " " + this.value + ";";
554
+ }, r;
555
+ }(), jr = {
556
+ "@charset": !0,
557
+ "@import": !0,
558
+ "@namespace": !0
559
+ }, Sr = {
560
+ onCreateRule: function(n, t, e) {
561
+ return n in jr ? new Cr(n, t, e) : null;
562
+ }
563
+ }, Gt = [lr, hr, pr, yr, vr, Nr, Sr], Dr = {
564
+ process: !0
565
+ }, Ut = {
566
+ force: !0,
567
+ process: !0
568
+ /**
569
+ * Contains rules objects and allows adding/removing etc.
570
+ * Is used for e.g. by `StyleSheet` or `ConditionalRule`.
571
+ */
572
+ }, et = /* @__PURE__ */ function() {
573
+ function r(t) {
574
+ this.map = {}, this.raw = {}, this.index = [], this.counter = 0, this.options = t, this.classes = t.classes, this.keyframes = t.keyframes;
575
+ }
576
+ var n = r.prototype;
577
+ return n.add = function(e, i, o) {
578
+ var a = this.options, s = a.parent, l = a.sheet, u = a.jss, g = a.Renderer, h = a.generateId, m = a.scoped, y = R({
579
+ classes: this.classes,
580
+ parent: s,
581
+ sheet: l,
582
+ jss: u,
583
+ Renderer: g,
584
+ generateId: h,
585
+ scoped: m,
586
+ name: e,
587
+ keyframes: this.keyframes,
588
+ selector: void 0
589
+ }, o), p = e;
590
+ e in this.raw && (p = e + "-d" + this.counter++), this.raw[p] = i, p in this.classes && (y.selector = "." + St(this.classes[p]));
591
+ var d = jt(p, i, y);
592
+ if (!d) return null;
593
+ this.register(d);
594
+ var v = y.index === void 0 ? this.index.length : y.index;
595
+ return this.index.splice(v, 0, d), d;
596
+ }, n.replace = function(e, i, o) {
597
+ var a = this.get(e), s = this.index.indexOf(a);
598
+ a && this.remove(a);
599
+ var l = o;
600
+ return s !== -1 && (l = R({}, o, {
601
+ index: s
602
+ })), this.add(e, i, l);
603
+ }, n.get = function(e) {
604
+ return this.map[e];
605
+ }, n.remove = function(e) {
606
+ this.unregister(e), delete this.raw[e.key], this.index.splice(this.index.indexOf(e), 1);
607
+ }, n.indexOf = function(e) {
608
+ return this.index.indexOf(e);
609
+ }, n.process = function() {
610
+ var e = this.options.jss.plugins;
611
+ this.index.slice(0).forEach(e.onProcessRule, e);
612
+ }, n.register = function(e) {
613
+ this.map[e.key] = e, e instanceof bt ? (this.map[e.selector] = e, e.id && (this.classes[e.key] = e.id)) : e instanceof wt && this.keyframes && (this.keyframes[e.name] = e.id);
614
+ }, n.unregister = function(e) {
615
+ delete this.map[e.key], e instanceof bt ? (delete this.map[e.selector], delete this.classes[e.key]) : e instanceof wt && delete this.keyframes[e.name];
616
+ }, n.update = function() {
617
+ var e, i, o;
618
+ if (typeof (arguments.length <= 0 ? void 0 : arguments[0]) == "string" ? (e = arguments.length <= 0 ? void 0 : arguments[0], i = arguments.length <= 1 ? void 0 : arguments[1], o = arguments.length <= 2 ? void 0 : arguments[2]) : (i = arguments.length <= 0 ? void 0 : arguments[0], o = arguments.length <= 1 ? void 0 : arguments[1], e = null), e)
619
+ this.updateOne(this.get(e), i, o);
620
+ else
621
+ for (var a = 0; a < this.index.length; a++)
622
+ this.updateOne(this.index[a], i, o);
623
+ }, n.updateOne = function(e, i, o) {
624
+ o === void 0 && (o = Dr);
625
+ var a = this.options, s = a.jss.plugins, l = a.sheet;
626
+ if (e.rules instanceof r) {
627
+ e.rules.update(i, o);
628
+ return;
629
+ }
630
+ var u = e.style;
631
+ if (s.onUpdate(i, e, l, o), o.process && u && u !== e.style) {
632
+ s.onProcessStyle(e.style, e, l);
633
+ for (var g in e.style) {
634
+ var h = e.style[g], m = u[g];
635
+ h !== m && e.prop(g, h, Ut);
636
+ }
637
+ for (var y in u) {
638
+ var p = e.style[y], d = u[y];
639
+ p == null && p !== d && e.prop(y, null, Ut);
640
+ }
641
+ }
642
+ }, n.toString = function(e) {
643
+ for (var i = "", o = this.options.sheet, a = o ? o.options.link : !1, s = ze(e), l = s.linebreak, u = 0; u < this.index.length; u++) {
644
+ var g = this.index[u], h = g.toString(e);
645
+ !h && !a || (i && (i += l), i += h);
646
+ }
647
+ return i;
648
+ }, r;
649
+ }(), dn = /* @__PURE__ */ function() {
650
+ function r(t, e) {
651
+ this.attached = !1, this.deployed = !1, this.classes = {}, this.keyframes = {}, this.options = R({}, e, {
652
+ sheet: this,
653
+ parent: this,
654
+ classes: this.classes,
655
+ keyframes: this.keyframes
656
+ }), e.Renderer && (this.renderer = new e.Renderer(this)), this.rules = new et(this.options);
657
+ for (var i in t)
658
+ this.rules.add(i, t[i]);
659
+ this.rules.process();
660
+ }
661
+ var n = r.prototype;
662
+ return n.attach = function() {
663
+ return this.attached ? this : (this.renderer && this.renderer.attach(), this.attached = !0, this.deployed || this.deploy(), this);
664
+ }, n.detach = function() {
665
+ return this.attached ? (this.renderer && this.renderer.detach(), this.attached = !1, this) : this;
666
+ }, n.addRule = function(e, i, o) {
667
+ var a = this.queue;
668
+ this.attached && !a && (this.queue = []);
669
+ var s = this.rules.add(e, i, o);
670
+ return s ? (this.options.jss.plugins.onProcessRule(s), this.attached ? (this.deployed && (a ? a.push(s) : (this.insertRule(s), this.queue && (this.queue.forEach(this.insertRule, this), this.queue = void 0))), s) : (this.deployed = !1, s)) : null;
671
+ }, n.replaceRule = function(e, i, o) {
672
+ var a = this.rules.get(e);
673
+ if (!a) return this.addRule(e, i, o);
674
+ var s = this.rules.replace(e, i, o);
675
+ return s && this.options.jss.plugins.onProcessRule(s), this.attached ? (this.deployed && this.renderer && (s ? a.renderable && this.renderer.replaceRule(a.renderable, s) : this.renderer.deleteRule(a)), s) : (this.deployed = !1, s);
676
+ }, n.insertRule = function(e) {
677
+ this.renderer && this.renderer.insertRule(e);
678
+ }, n.addRules = function(e, i) {
679
+ var o = [];
680
+ for (var a in e) {
681
+ var s = this.addRule(a, e[a], i);
682
+ s && o.push(s);
683
+ }
684
+ return o;
685
+ }, n.getRule = function(e) {
686
+ return this.rules.get(e);
687
+ }, n.deleteRule = function(e) {
688
+ var i = typeof e == "object" ? e : this.rules.get(e);
689
+ return !i || // Style sheet was created without link: true and attached, in this case we
690
+ // won't be able to remove the CSS rule from the DOM.
691
+ this.attached && !i.renderable ? !1 : (this.rules.remove(i), this.attached && i.renderable && this.renderer ? this.renderer.deleteRule(i.renderable) : !0);
692
+ }, n.indexOf = function(e) {
693
+ return this.rules.indexOf(e);
694
+ }, n.deploy = function() {
695
+ return this.renderer && this.renderer.deploy(), this.deployed = !0, this;
696
+ }, n.update = function() {
697
+ var e;
698
+ return (e = this.rules).update.apply(e, arguments), this;
699
+ }, n.updateOne = function(e, i, o) {
700
+ return this.rules.updateOne(e, i, o), this;
701
+ }, n.toString = function(e) {
702
+ return this.rules.toString(e);
703
+ }, r;
704
+ }(), Tr = /* @__PURE__ */ function() {
705
+ function r() {
706
+ this.plugins = {
707
+ internal: [],
708
+ external: []
709
+ }, this.registry = {};
710
+ }
711
+ var n = r.prototype;
712
+ return n.onCreateRule = function(e, i, o) {
713
+ for (var a = 0; a < this.registry.onCreateRule.length; a++) {
714
+ var s = this.registry.onCreateRule[a](e, i, o);
715
+ if (s) return s;
716
+ }
717
+ return null;
718
+ }, n.onProcessRule = function(e) {
719
+ if (!e.isProcessed) {
720
+ for (var i = e.options.sheet, o = 0; o < this.registry.onProcessRule.length; o++)
721
+ this.registry.onProcessRule[o](e, i);
722
+ e.style && this.onProcessStyle(e.style, e, i), e.isProcessed = !0;
723
+ }
724
+ }, n.onProcessStyle = function(e, i, o) {
725
+ for (var a = 0; a < this.registry.onProcessStyle.length; a++)
726
+ i.style = this.registry.onProcessStyle[a](i.style, i, o);
727
+ }, n.onProcessSheet = function(e) {
728
+ for (var i = 0; i < this.registry.onProcessSheet.length; i++)
729
+ this.registry.onProcessSheet[i](e);
730
+ }, n.onUpdate = function(e, i, o, a) {
731
+ for (var s = 0; s < this.registry.onUpdate.length; s++)
732
+ this.registry.onUpdate[s](e, i, o, a);
733
+ }, n.onChangeValue = function(e, i, o) {
734
+ for (var a = e, s = 0; s < this.registry.onChangeValue.length; s++)
735
+ a = this.registry.onChangeValue[s](a, i, o);
736
+ return a;
737
+ }, n.use = function(e, i) {
738
+ i === void 0 && (i = {
739
+ queue: "external"
740
+ });
741
+ var o = this.plugins[i.queue];
742
+ o.indexOf(e) === -1 && (o.push(e), this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function(a, s) {
743
+ for (var l in s)
744
+ l in a ? a[l].push(s[l]) : z.env.NODE_ENV !== "production" && re(!1, '[JSS] Unknown hook "' + l + '".');
745
+ return a;
746
+ }, {
747
+ onCreateRule: [],
748
+ onProcessRule: [],
749
+ onProcessStyle: [],
750
+ onProcessSheet: [],
751
+ onChangeValue: [],
752
+ onUpdate: []
753
+ }));
754
+ }, r;
755
+ }(), kr = /* @__PURE__ */ function() {
756
+ function r() {
757
+ this.registry = [];
758
+ }
759
+ var n = r.prototype;
760
+ return n.add = function(e) {
761
+ var i = this.registry, o = e.options.index;
762
+ if (i.indexOf(e) === -1) {
763
+ if (i.length === 0 || o >= this.index) {
764
+ i.push(e);
765
+ return;
766
+ }
767
+ for (var a = 0; a < i.length; a++)
768
+ if (i[a].options.index > o) {
769
+ i.splice(a, 0, e);
770
+ return;
771
+ }
772
+ }
773
+ }, n.reset = function() {
774
+ this.registry = [];
775
+ }, n.remove = function(e) {
776
+ var i = this.registry.indexOf(e);
777
+ this.registry.splice(i, 1);
778
+ }, n.toString = function(e) {
779
+ for (var i = e === void 0 ? {} : e, o = i.attached, a = Ye(i, ["attached"]), s = ze(a), l = s.linebreak, u = "", g = 0; g < this.registry.length; g++) {
780
+ var h = this.registry[g];
781
+ o != null && h.attached !== o || (u && (u += l), u += h.toString(a));
782
+ }
783
+ return u;
784
+ }, ln(r, [{
785
+ key: "index",
786
+ /**
787
+ * Current highest index number.
788
+ */
789
+ get: function() {
790
+ return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
791
+ }
792
+ }]), r;
793
+ }(), Be = new kr(), mt = typeof globalThis < "u" ? globalThis : typeof window < "u" && window.Math === Math ? window : typeof self < "u" && self.Math === Math ? self : Function("return this")(), yt = "2f1acc6c3a606b082e5eef5e54414ffb";
794
+ mt[yt] == null && (mt[yt] = 0);
795
+ var Qt = mt[yt]++, Ar = 1e10, Yt = function(n) {
796
+ n === void 0 && (n = {});
797
+ var t = 0, e = function(o, a) {
798
+ t += 1, t > Ar && z.env.NODE_ENV !== "production" && re(!1, "[JSS] You might have a memory leak. Rule counter is at " + t + ".");
799
+ var s = "", l = "";
800
+ return a && (a.options.classNamePrefix && (l = a.options.classNamePrefix), a.options.jss.id != null && (s = String(a.options.jss.id))), n.minify ? "" + (l || "c") + Qt + s + t : l + o.key + "-" + Qt + (s ? "-" + s : "") + "-" + t;
801
+ };
802
+ return e;
803
+ }, fn = function(n) {
804
+ var t;
805
+ return function() {
806
+ return t || (t = n()), t;
807
+ };
808
+ }, zr = function(n, t) {
809
+ try {
810
+ return n.attributeStyleMap ? n.attributeStyleMap.get(t) : n.style.getPropertyValue(t);
811
+ } catch {
812
+ return "";
813
+ }
814
+ }, Er = function(n, t, e) {
815
+ try {
816
+ var i = e;
817
+ if (Array.isArray(e) && (i = ve(e)), n.attributeStyleMap)
818
+ n.attributeStyleMap.set(t, i);
819
+ else {
820
+ var o = i ? i.indexOf("!important") : -1, a = o > -1 ? i.substr(0, o - 1) : i;
821
+ n.style.setProperty(t, a, o > -1 ? "important" : "");
822
+ }
823
+ } catch {
824
+ return !1;
825
+ }
826
+ return !0;
827
+ }, Lr = function(n, t) {
828
+ try {
829
+ n.attributeStyleMap ? n.attributeStyleMap.delete(t) : n.style.removeProperty(t);
830
+ } catch (e) {
831
+ z.env.NODE_ENV !== "production" && re(!1, '[JSS] DOMException "' + e.message + '" was thrown. Tried to remove property "' + t + '".');
832
+ }
833
+ }, Or = function(n, t) {
834
+ return n.selectorText = t, n.selectorText === t;
835
+ }, hn = fn(function() {
836
+ return document.querySelector("head");
837
+ });
838
+ function Rr(r, n) {
839
+ for (var t = 0; t < r.length; t++) {
840
+ var e = r[t];
841
+ if (e.attached && e.options.index > n.index && e.options.insertionPoint === n.insertionPoint)
842
+ return e;
843
+ }
844
+ return null;
845
+ }
846
+ function Pr(r, n) {
847
+ for (var t = r.length - 1; t >= 0; t--) {
848
+ var e = r[t];
849
+ if (e.attached && e.options.insertionPoint === n.insertionPoint)
850
+ return e;
851
+ }
852
+ return null;
853
+ }
854
+ function Br(r) {
855
+ for (var n = hn(), t = 0; t < n.childNodes.length; t++) {
856
+ var e = n.childNodes[t];
857
+ if (e.nodeType === 8 && e.nodeValue.trim() === r)
858
+ return e;
859
+ }
860
+ return null;
861
+ }
862
+ function Gr(r) {
863
+ var n = Be.registry;
864
+ if (n.length > 0) {
865
+ var t = Rr(n, r);
866
+ if (t && t.renderer)
867
+ return {
868
+ parent: t.renderer.element.parentNode,
869
+ node: t.renderer.element
870
+ };
871
+ if (t = Pr(n, r), t && t.renderer)
872
+ return {
873
+ parent: t.renderer.element.parentNode,
874
+ node: t.renderer.element.nextSibling
875
+ };
876
+ }
877
+ var e = r.insertionPoint;
878
+ if (e && typeof e == "string") {
879
+ var i = Br(e);
880
+ if (i)
881
+ return {
882
+ parent: i.parentNode,
883
+ node: i.nextSibling
884
+ };
885
+ z.env.NODE_ENV !== "production" && re(!1, '[JSS] Insertion point "' + e + '" not found.');
886
+ }
887
+ return !1;
888
+ }
889
+ function Ur(r, n) {
890
+ var t = n.insertionPoint, e = Gr(n);
891
+ if (e !== !1 && e.parent) {
892
+ e.parent.insertBefore(r, e.node);
893
+ return;
894
+ }
895
+ if (t && typeof t.nodeType == "number") {
896
+ var i = t, o = i.parentNode;
897
+ o ? o.insertBefore(r, i.nextSibling) : z.env.NODE_ENV !== "production" && re(!1, "[JSS] Insertion point is not in the DOM.");
898
+ return;
899
+ }
900
+ hn().appendChild(r);
901
+ }
902
+ var Qr = fn(function() {
903
+ var r = document.querySelector('meta[property="csp-nonce"]');
904
+ return r ? r.getAttribute("content") : null;
905
+ }), Zt = function(n, t, e) {
906
+ try {
907
+ "insertRule" in n ? n.insertRule(t, e) : "appendRule" in n && n.appendRule(t);
908
+ } catch (i) {
909
+ return z.env.NODE_ENV !== "production" && re(!1, "[JSS] " + i.message), !1;
910
+ }
911
+ return n.cssRules[e];
912
+ }, Vt = function(n, t) {
913
+ var e = n.cssRules.length;
914
+ return t === void 0 || t > e ? e : t;
915
+ }, Yr = function() {
916
+ var n = document.createElement("style");
917
+ return n.textContent = `
918
+ `, n;
919
+ }, Zr = /* @__PURE__ */ function() {
920
+ function r(t) {
921
+ this.getPropertyValue = zr, this.setProperty = Er, this.removeProperty = Lr, this.setSelector = Or, this.hasInsertedRules = !1, this.cssRules = [], t && Be.add(t), this.sheet = t;
922
+ var e = this.sheet ? this.sheet.options : {}, i = e.media, o = e.meta, a = e.element;
923
+ this.element = a || Yr(), this.element.setAttribute("data-jss", ""), i && this.element.setAttribute("media", i), o && this.element.setAttribute("data-meta", o);
924
+ var s = Qr();
925
+ s && this.element.setAttribute("nonce", s);
926
+ }
927
+ var n = r.prototype;
928
+ return n.attach = function() {
929
+ if (!(this.element.parentNode || !this.sheet)) {
930
+ Ur(this.element, this.sheet.options);
931
+ var e = !!(this.sheet && this.sheet.deployed);
932
+ this.hasInsertedRules && e && (this.hasInsertedRules = !1, this.deploy());
933
+ }
934
+ }, n.detach = function() {
935
+ if (this.sheet) {
936
+ var e = this.element.parentNode;
937
+ e && e.removeChild(this.element), this.sheet.options.link && (this.cssRules = [], this.element.textContent = `
938
+ `);
939
+ }
940
+ }, n.deploy = function() {
941
+ var e = this.sheet;
942
+ if (e) {
943
+ if (e.options.link) {
944
+ this.insertRules(e.rules);
945
+ return;
946
+ }
947
+ this.element.textContent = `
948
+ ` + e.toString() + `
949
+ `;
950
+ }
951
+ }, n.insertRules = function(e, i) {
952
+ for (var o = 0; o < e.index.length; o++)
953
+ this.insertRule(e.index[o], o, i);
954
+ }, n.insertRule = function(e, i, o) {
955
+ if (o === void 0 && (o = this.element.sheet), e.rules) {
956
+ var a = e, s = o;
957
+ if (e.type === "conditional" || e.type === "keyframes") {
958
+ var l = Vt(o, i);
959
+ if (s = Zt(o, a.toString({
960
+ children: !1
961
+ }), l), s === !1)
962
+ return !1;
963
+ this.refCssRule(e, l, s);
964
+ }
965
+ return this.insertRules(a.rules, s), s;
966
+ }
967
+ var u = e.toString();
968
+ if (!u) return !1;
969
+ var g = Vt(o, i), h = Zt(o, u, g);
970
+ return h === !1 ? !1 : (this.hasInsertedRules = !0, this.refCssRule(e, g, h), h);
971
+ }, n.refCssRule = function(e, i, o) {
972
+ e.renderable = o, e.options.parent instanceof dn && this.cssRules.splice(i, 0, o);
973
+ }, n.deleteRule = function(e) {
974
+ var i = this.element.sheet, o = this.indexOf(e);
975
+ return o === -1 ? !1 : (i.deleteRule(o), this.cssRules.splice(o, 1), !0);
976
+ }, n.indexOf = function(e) {
977
+ return this.cssRules.indexOf(e);
978
+ }, n.replaceRule = function(e, i) {
979
+ var o = this.indexOf(e);
980
+ return o === -1 ? !1 : (this.element.sheet.deleteRule(o), this.cssRules.splice(o, 1), this.insertRule(i, o));
981
+ }, n.getRules = function() {
982
+ return this.element.sheet.cssRules;
983
+ }, r;
984
+ }(), Vr = 0, $r = /* @__PURE__ */ function() {
985
+ function r(t) {
986
+ this.id = Vr++, this.version = "10.10.0", this.plugins = new Tr(), this.options = {
987
+ id: {
988
+ minify: !1
989
+ },
990
+ createGenerateId: Yt,
991
+ Renderer: Ze ? Zr : null,
992
+ plugins: []
993
+ }, this.generateId = Yt({
994
+ minify: !1
995
+ });
996
+ for (var e = 0; e < Gt.length; e++)
997
+ this.plugins.use(Gt[e], {
998
+ queue: "internal"
999
+ });
1000
+ this.setup(t);
1001
+ }
1002
+ var n = r.prototype;
1003
+ return n.setup = function(e) {
1004
+ return e === void 0 && (e = {}), e.createGenerateId && (this.options.createGenerateId = e.createGenerateId), e.id && (this.options.id = R({}, this.options.id, e.id)), (e.createGenerateId || e.id) && (this.generateId = this.options.createGenerateId(this.options.id)), e.insertionPoint != null && (this.options.insertionPoint = e.insertionPoint), "Renderer" in e && (this.options.Renderer = e.Renderer), e.plugins && this.use.apply(this, e.plugins), this;
1005
+ }, n.createStyleSheet = function(e, i) {
1006
+ i === void 0 && (i = {});
1007
+ var o = i, a = o.index;
1008
+ typeof a != "number" && (a = Be.index === 0 ? 0 : Be.index + 1);
1009
+ var s = new dn(e, R({}, i, {
1010
+ jss: this,
1011
+ generateId: i.generateId || this.generateId,
1012
+ insertionPoint: this.options.insertionPoint,
1013
+ Renderer: this.options.Renderer,
1014
+ index: a
1015
+ }));
1016
+ return this.plugins.onProcessSheet(s), s;
1017
+ }, n.removeStyleSheet = function(e) {
1018
+ return e.detach(), Be.remove(e), this;
1019
+ }, n.createRule = function(e, i, o) {
1020
+ if (i === void 0 && (i = {}), o === void 0 && (o = {}), typeof e == "object")
1021
+ return this.createRule(void 0, e, i);
1022
+ var a = R({}, o, {
1023
+ name: e,
1024
+ jss: this,
1025
+ Renderer: this.options.Renderer
1026
+ });
1027
+ a.generateId || (a.generateId = this.generateId), a.classes || (a.classes = {}), a.keyframes || (a.keyframes = {});
1028
+ var s = jt(e, i, a);
1029
+ return s && this.plugins.onProcessRule(s), s;
1030
+ }, n.use = function() {
1031
+ for (var e = this, i = arguments.length, o = new Array(i), a = 0; a < i; a++)
1032
+ o[a] = arguments[a];
1033
+ return o.forEach(function(s) {
1034
+ e.plugins.use(s);
1035
+ }), this;
1036
+ }, r;
1037
+ }(), Dt = function(n) {
1038
+ return new $r(n);
1039
+ }, Tt = typeof CSS == "object" && CSS != null && "number" in CSS;
1040
+ function gn(r) {
1041
+ var n = null;
1042
+ for (var t in r) {
1043
+ var e = r[t], i = typeof e;
1044
+ if (i === "function")
1045
+ n || (n = {}), n[t] = e;
1046
+ else if (i === "object" && e !== null && !Array.isArray(e)) {
1047
+ var o = gn(e);
1048
+ o && (n || (n = {}), n[t] = o);
1049
+ }
1050
+ }
1051
+ return n;
1052
+ }
1053
+ Dt();
1054
+ var bn = Date.now(), it = "fnValues" + bn, st = "fnStyle" + ++bn, Jr = function() {
1055
+ return {
1056
+ onCreateRule: function(t, e, i) {
1057
+ if (typeof e != "function") return null;
1058
+ var o = jt(t, {}, i);
1059
+ return o[st] = e, o;
1060
+ },
1061
+ onProcessStyle: function(t, e) {
1062
+ if (it in e || st in e) return t;
1063
+ var i = {};
1064
+ for (var o in t) {
1065
+ var a = t[o];
1066
+ typeof a == "function" && (delete t[o], i[o] = a);
1067
+ }
1068
+ return e[it] = i, t;
1069
+ },
1070
+ onUpdate: function(t, e, i, o) {
1071
+ var a = e, s = a[st];
1072
+ if (s && (a.style = s(t) || {}, z.env.NODE_ENV === "development")) {
1073
+ for (var l in a.style)
1074
+ if (typeof a.style[l] == "function") {
1075
+ z.env.NODE_ENV !== "production" && re(!1, "[JSS] Function values inside function rules are not supported.");
1076
+ break;
1077
+ }
1078
+ }
1079
+ var u = a[it];
1080
+ if (u)
1081
+ for (var g in u)
1082
+ a.prop(g, u[g](t), o);
1083
+ }
1084
+ };
1085
+ }, be = "@global", xt = "@global ", Wr = /* @__PURE__ */ function() {
1086
+ function r(t, e, i) {
1087
+ this.type = "global", this.at = be, this.isProcessed = !1, this.key = t, this.options = i, this.rules = new et(R({}, i, {
1088
+ parent: this
1089
+ }));
1090
+ for (var o in e)
1091
+ this.rules.add(o, e[o]);
1092
+ this.rules.process();
1093
+ }
1094
+ var n = r.prototype;
1095
+ return n.getRule = function(e) {
1096
+ return this.rules.get(e);
1097
+ }, n.addRule = function(e, i, o) {
1098
+ var a = this.rules.add(e, i, o);
1099
+ return a && this.options.jss.plugins.onProcessRule(a), a;
1100
+ }, n.replaceRule = function(e, i, o) {
1101
+ var a = this.rules.replace(e, i, o);
1102
+ return a && this.options.jss.plugins.onProcessRule(a), a;
1103
+ }, n.indexOf = function(e) {
1104
+ return this.rules.indexOf(e);
1105
+ }, n.toString = function(e) {
1106
+ return this.rules.toString(e);
1107
+ }, r;
1108
+ }(), Fr = /* @__PURE__ */ function() {
1109
+ function r(t, e, i) {
1110
+ this.type = "global", this.at = be, this.isProcessed = !1, this.key = t, this.options = i;
1111
+ var o = t.substr(xt.length);
1112
+ this.rule = i.jss.createRule(o, e, R({}, i, {
1113
+ parent: this
1114
+ }));
1115
+ }
1116
+ var n = r.prototype;
1117
+ return n.toString = function(e) {
1118
+ return this.rule ? this.rule.toString(e) : "";
1119
+ }, r;
1120
+ }(), Hr = /\s*,\s*/g;
1121
+ function wn(r, n) {
1122
+ for (var t = r.split(Hr), e = "", i = 0; i < t.length; i++)
1123
+ e += n + " " + t[i].trim(), t[i + 1] && (e += ", ");
1124
+ return e;
1125
+ }
1126
+ function Xr(r, n) {
1127
+ var t = r.options, e = r.style, i = e ? e[be] : null;
1128
+ if (i) {
1129
+ for (var o in i)
1130
+ n.addRule(o, i[o], R({}, t, {
1131
+ selector: wn(o, r.selector)
1132
+ }));
1133
+ delete e[be];
1134
+ }
1135
+ }
1136
+ function _r(r, n) {
1137
+ var t = r.options, e = r.style;
1138
+ for (var i in e)
1139
+ if (!(i[0] !== "@" || i.substr(0, be.length) !== be)) {
1140
+ var o = wn(i.substr(be.length), r.selector);
1141
+ n.addRule(o, e[i], R({}, t, {
1142
+ selector: o
1143
+ })), delete e[i];
1144
+ }
1145
+ }
1146
+ function Kr() {
1147
+ function r(t, e, i) {
1148
+ if (!t) return null;
1149
+ if (t === be)
1150
+ return new Wr(t, e, i);
1151
+ if (t[0] === "@" && t.substr(0, xt.length) === xt)
1152
+ return new Fr(t, e, i);
1153
+ var o = i.parent;
1154
+ return o && (o.type === "global" || o.options.parent && o.options.parent.type === "global") && (i.scoped = !1), !i.selector && i.scoped === !1 && (i.selector = t), null;
1155
+ }
1156
+ function n(t, e) {
1157
+ t.type !== "style" || !e || (Xr(t, e), _r(t, e));
1158
+ }
1159
+ return {
1160
+ onCreateRule: r,
1161
+ onProcessRule: n
1162
+ };
1163
+ }
1164
+ var $t = /\s*,\s*/g, qr = /&/g, ei = /\$([\w-]+)/g;
1165
+ function ti() {
1166
+ function r(i, o) {
1167
+ return function(a, s) {
1168
+ var l = i.getRule(s) || o && o.getRule(s);
1169
+ return l ? l.selector : (z.env.NODE_ENV !== "production" && re(!1, '[JSS] Could not find the referenced rule "' + s + '" in "' + (i.options.meta || i.toString()) + '".'), s);
1170
+ };
1171
+ }
1172
+ function n(i, o) {
1173
+ for (var a = o.split($t), s = i.split($t), l = "", u = 0; u < a.length; u++)
1174
+ for (var g = a[u], h = 0; h < s.length; h++) {
1175
+ var m = s[h];
1176
+ l && (l += ", "), l += m.indexOf("&") !== -1 ? m.replace(qr, g) : g + " " + m;
1177
+ }
1178
+ return l;
1179
+ }
1180
+ function t(i, o, a) {
1181
+ if (a) return R({}, a, {
1182
+ index: a.index + 1
1183
+ });
1184
+ var s = i.options.nestingLevel;
1185
+ s = s === void 0 ? 1 : s + 1;
1186
+ var l = R({}, i.options, {
1187
+ nestingLevel: s,
1188
+ index: o.indexOf(i) + 1
1189
+ // We don't need the parent name to be set options for chlid.
1190
+ });
1191
+ return delete l.name, l;
1192
+ }
1193
+ function e(i, o, a) {
1194
+ if (o.type !== "style") return i;
1195
+ var s = o, l = s.options.parent, u, g;
1196
+ for (var h in i) {
1197
+ var m = h.indexOf("&") !== -1, y = h[0] === "@";
1198
+ if (!(!m && !y)) {
1199
+ if (u = t(s, l, u), m) {
1200
+ var p = n(h, s.selector);
1201
+ g || (g = r(l, a)), p = p.replace(ei, g);
1202
+ var d = s.key + "-" + h;
1203
+ "replaceRule" in l ? l.replaceRule(d, i[h], R({}, u, {
1204
+ selector: p
1205
+ })) : l.addRule(d, i[h], R({}, u, {
1206
+ selector: p
1207
+ }));
1208
+ } else y && l.addRule(h, {}, u).addRule(s.key, i[h], {
1209
+ selector: s.selector
1210
+ });
1211
+ delete i[h];
1212
+ }
1213
+ }
1214
+ return i;
1215
+ }
1216
+ return {
1217
+ onProcessStyle: e
1218
+ };
1219
+ }
1220
+ var ni = /[A-Z]/g, ri = /^ms-/, ot = {};
1221
+ function ii(r) {
1222
+ return "-" + r.toLowerCase();
1223
+ }
1224
+ function pn(r) {
1225
+ if (ot.hasOwnProperty(r))
1226
+ return ot[r];
1227
+ var n = r.replace(ni, ii);
1228
+ return ot[r] = ri.test(n) ? "-" + n : n;
1229
+ }
1230
+ function Fe(r) {
1231
+ var n = {};
1232
+ for (var t in r) {
1233
+ var e = t.indexOf("--") === 0 ? t : pn(t);
1234
+ n[e] = r[t];
1235
+ }
1236
+ return r.fallbacks && (Array.isArray(r.fallbacks) ? n.fallbacks = r.fallbacks.map(Fe) : n.fallbacks = Fe(r.fallbacks)), n;
1237
+ }
1238
+ function si() {
1239
+ function r(t) {
1240
+ if (Array.isArray(t)) {
1241
+ for (var e = 0; e < t.length; e++)
1242
+ t[e] = Fe(t[e]);
1243
+ return t;
1244
+ }
1245
+ return Fe(t);
1246
+ }
1247
+ function n(t, e, i) {
1248
+ if (e.indexOf("--") === 0)
1249
+ return t;
1250
+ var o = pn(e);
1251
+ return e === o ? t : (i.prop(o, t), null);
1252
+ }
1253
+ return {
1254
+ onProcessStyle: r,
1255
+ onChangeValue: n
1256
+ };
1257
+ }
1258
+ var f = Tt && CSS ? CSS.px : "px", Ve = Tt && CSS ? CSS.ms : "ms", Ce = Tt && CSS ? CSS.percent : "%", oi = {
1259
+ // Animation properties
1260
+ "animation-delay": Ve,
1261
+ "animation-duration": Ve,
1262
+ // Background properties
1263
+ "background-position": f,
1264
+ "background-position-x": f,
1265
+ "background-position-y": f,
1266
+ "background-size": f,
1267
+ // Border Properties
1268
+ border: f,
1269
+ "border-bottom": f,
1270
+ "border-bottom-left-radius": f,
1271
+ "border-bottom-right-radius": f,
1272
+ "border-bottom-width": f,
1273
+ "border-left": f,
1274
+ "border-left-width": f,
1275
+ "border-radius": f,
1276
+ "border-right": f,
1277
+ "border-right-width": f,
1278
+ "border-top": f,
1279
+ "border-top-left-radius": f,
1280
+ "border-top-right-radius": f,
1281
+ "border-top-width": f,
1282
+ "border-width": f,
1283
+ "border-block": f,
1284
+ "border-block-end": f,
1285
+ "border-block-end-width": f,
1286
+ "border-block-start": f,
1287
+ "border-block-start-width": f,
1288
+ "border-block-width": f,
1289
+ "border-inline": f,
1290
+ "border-inline-end": f,
1291
+ "border-inline-end-width": f,
1292
+ "border-inline-start": f,
1293
+ "border-inline-start-width": f,
1294
+ "border-inline-width": f,
1295
+ "border-start-start-radius": f,
1296
+ "border-start-end-radius": f,
1297
+ "border-end-start-radius": f,
1298
+ "border-end-end-radius": f,
1299
+ // Margin properties
1300
+ margin: f,
1301
+ "margin-bottom": f,
1302
+ "margin-left": f,
1303
+ "margin-right": f,
1304
+ "margin-top": f,
1305
+ "margin-block": f,
1306
+ "margin-block-end": f,
1307
+ "margin-block-start": f,
1308
+ "margin-inline": f,
1309
+ "margin-inline-end": f,
1310
+ "margin-inline-start": f,
1311
+ // Padding properties
1312
+ padding: f,
1313
+ "padding-bottom": f,
1314
+ "padding-left": f,
1315
+ "padding-right": f,
1316
+ "padding-top": f,
1317
+ "padding-block": f,
1318
+ "padding-block-end": f,
1319
+ "padding-block-start": f,
1320
+ "padding-inline": f,
1321
+ "padding-inline-end": f,
1322
+ "padding-inline-start": f,
1323
+ // Mask properties
1324
+ "mask-position-x": f,
1325
+ "mask-position-y": f,
1326
+ "mask-size": f,
1327
+ // Width and height properties
1328
+ height: f,
1329
+ width: f,
1330
+ "min-height": f,
1331
+ "max-height": f,
1332
+ "min-width": f,
1333
+ "max-width": f,
1334
+ // Position properties
1335
+ bottom: f,
1336
+ left: f,
1337
+ top: f,
1338
+ right: f,
1339
+ inset: f,
1340
+ "inset-block": f,
1341
+ "inset-block-end": f,
1342
+ "inset-block-start": f,
1343
+ "inset-inline": f,
1344
+ "inset-inline-end": f,
1345
+ "inset-inline-start": f,
1346
+ // Shadow properties
1347
+ "box-shadow": f,
1348
+ "text-shadow": f,
1349
+ // Column properties
1350
+ "column-gap": f,
1351
+ "column-rule": f,
1352
+ "column-rule-width": f,
1353
+ "column-width": f,
1354
+ // Font and text properties
1355
+ "font-size": f,
1356
+ "font-size-delta": f,
1357
+ "letter-spacing": f,
1358
+ "text-decoration-thickness": f,
1359
+ "text-indent": f,
1360
+ "text-stroke": f,
1361
+ "text-stroke-width": f,
1362
+ "word-spacing": f,
1363
+ // Motion properties
1364
+ motion: f,
1365
+ "motion-offset": f,
1366
+ // Outline properties
1367
+ outline: f,
1368
+ "outline-offset": f,
1369
+ "outline-width": f,
1370
+ // Perspective properties
1371
+ perspective: f,
1372
+ "perspective-origin-x": Ce,
1373
+ "perspective-origin-y": Ce,
1374
+ // Transform properties
1375
+ "transform-origin": Ce,
1376
+ "transform-origin-x": Ce,
1377
+ "transform-origin-y": Ce,
1378
+ "transform-origin-z": Ce,
1379
+ // Transition properties
1380
+ "transition-delay": Ve,
1381
+ "transition-duration": Ve,
1382
+ // Alignment properties
1383
+ "vertical-align": f,
1384
+ "flex-basis": f,
1385
+ // Some random properties
1386
+ "shape-margin": f,
1387
+ size: f,
1388
+ gap: f,
1389
+ // Grid properties
1390
+ grid: f,
1391
+ "grid-gap": f,
1392
+ "row-gap": f,
1393
+ "grid-row-gap": f,
1394
+ "grid-column-gap": f,
1395
+ "grid-template-rows": f,
1396
+ "grid-template-columns": f,
1397
+ "grid-auto-rows": f,
1398
+ "grid-auto-columns": f,
1399
+ // Not existing properties.
1400
+ // Used to avoid issues with jss-plugin-expand integration.
1401
+ "box-shadow-x": f,
1402
+ "box-shadow-y": f,
1403
+ "box-shadow-blur": f,
1404
+ "box-shadow-spread": f,
1405
+ "font-line-height": f,
1406
+ "text-shadow-x": f,
1407
+ "text-shadow-y": f,
1408
+ "text-shadow-blur": f
1409
+ };
1410
+ function mn(r) {
1411
+ var n = /(-[a-z])/g, t = function(a) {
1412
+ return a[1].toUpperCase();
1413
+ }, e = {};
1414
+ for (var i in r)
1415
+ e[i] = r[i], e[i.replace(n, t)] = r[i];
1416
+ return e;
1417
+ }
1418
+ var ai = mn(oi);
1419
+ function Ge(r, n, t) {
1420
+ if (n == null) return n;
1421
+ if (Array.isArray(n))
1422
+ for (var e = 0; e < n.length; e++)
1423
+ n[e] = Ge(r, n[e], t);
1424
+ else if (typeof n == "object")
1425
+ if (r === "fallbacks")
1426
+ for (var i in n)
1427
+ n[i] = Ge(i, n[i], t);
1428
+ else
1429
+ for (var o in n)
1430
+ n[o] = Ge(r + "-" + o, n[o], t);
1431
+ else if (typeof n == "number" && isNaN(n) === !1) {
1432
+ var a = t[r] || ai[r];
1433
+ return a && !(n === 0 && a === f) ? typeof a == "function" ? a(n).toString() : "" + n + a : n.toString();
1434
+ }
1435
+ return n;
1436
+ }
1437
+ function ci(r) {
1438
+ r === void 0 && (r = {});
1439
+ var n = mn(r);
1440
+ function t(i, o) {
1441
+ if (o.type !== "style") return i;
1442
+ for (var a in i)
1443
+ i[a] = Ge(a, i[a], n);
1444
+ return i;
1445
+ }
1446
+ function e(i, o) {
1447
+ return Ge(o, i, n);
1448
+ }
1449
+ return {
1450
+ onProcessStyle: t,
1451
+ onChangeValue: e
1452
+ };
1453
+ }
1454
+ function Mt(r, n) {
1455
+ (n == null || n > r.length) && (n = r.length);
1456
+ for (var t = 0, e = Array(n); t < n; t++) e[t] = r[t];
1457
+ return e;
1458
+ }
1459
+ function li(r) {
1460
+ if (Array.isArray(r)) return Mt(r);
1461
+ }
1462
+ function ui(r) {
1463
+ if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
1464
+ }
1465
+ function di(r, n) {
1466
+ if (r) {
1467
+ if (typeof r == "string") return Mt(r, n);
1468
+ var t = {}.toString.call(r).slice(8, -1);
1469
+ return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Mt(r, n) : void 0;
1470
+ }
1471
+ }
1472
+ function fi() {
1473
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
1474
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1475
+ }
1476
+ function hi(r) {
1477
+ return li(r) || ui(r) || di(r) || fi();
1478
+ }
1479
+ var Oe = "", vt = "", yn = "", xn = "", gi = Ze && "ontouchstart" in document.documentElement;
1480
+ if (Ze) {
1481
+ var at = {
1482
+ Moz: "-moz-",
1483
+ ms: "-ms-",
1484
+ O: "-o-",
1485
+ Webkit: "-webkit-"
1486
+ }, bi = document.createElement("p"), ct = bi.style, wi = "Transform";
1487
+ for (var lt in at)
1488
+ if (lt + wi in ct) {
1489
+ Oe = lt, vt = at[lt];
1490
+ break;
1491
+ }
1492
+ Oe === "Webkit" && "msHyphens" in ct && (Oe = "ms", vt = at.ms, xn = "edge"), Oe === "Webkit" && "-apple-trailing-word" in ct && (yn = "apple");
1493
+ }
1494
+ var S = {
1495
+ js: Oe,
1496
+ css: vt,
1497
+ vendor: yn,
1498
+ browser: xn,
1499
+ isTouch: gi
1500
+ };
1501
+ function pi(r) {
1502
+ return r[1] === "-" || S.js === "ms" ? r : "@" + S.css + "keyframes" + r.substr(10);
1503
+ }
1504
+ var mi = {
1505
+ noPrefill: ["appearance"],
1506
+ supportedProperty: function(n) {
1507
+ return n !== "appearance" ? !1 : S.js === "ms" ? "-webkit-" + n : S.css + n;
1508
+ }
1509
+ }, yi = {
1510
+ noPrefill: ["color-adjust"],
1511
+ supportedProperty: function(n) {
1512
+ return n !== "color-adjust" ? !1 : S.js === "Webkit" ? S.css + "print-" + n : n;
1513
+ }
1514
+ }, xi = /[-\s]+(.)?/g;
1515
+ function Mi(r, n) {
1516
+ return n ? n.toUpperCase() : "";
1517
+ }
1518
+ function kt(r) {
1519
+ return r.replace(xi, Mi);
1520
+ }
1521
+ function we(r) {
1522
+ return kt("-" + r);
1523
+ }
1524
+ var vi = {
1525
+ noPrefill: ["mask"],
1526
+ supportedProperty: function(n, t) {
1527
+ if (!/^mask/.test(n)) return !1;
1528
+ if (S.js === "Webkit") {
1529
+ var e = "mask-image";
1530
+ if (kt(e) in t)
1531
+ return n;
1532
+ if (S.js + we(e) in t)
1533
+ return S.css + n;
1534
+ }
1535
+ return n;
1536
+ }
1537
+ }, Ii = {
1538
+ noPrefill: ["text-orientation"],
1539
+ supportedProperty: function(n) {
1540
+ return n !== "text-orientation" ? !1 : S.vendor === "apple" && !S.isTouch ? S.css + n : n;
1541
+ }
1542
+ }, Ni = {
1543
+ noPrefill: ["transform"],
1544
+ supportedProperty: function(n, t, e) {
1545
+ return n !== "transform" ? !1 : e.transform ? n : S.css + n;
1546
+ }
1547
+ }, Ci = {
1548
+ noPrefill: ["transition"],
1549
+ supportedProperty: function(n, t, e) {
1550
+ return n !== "transition" ? !1 : e.transition ? n : S.css + n;
1551
+ }
1552
+ }, ji = {
1553
+ noPrefill: ["writing-mode"],
1554
+ supportedProperty: function(n) {
1555
+ return n !== "writing-mode" ? !1 : S.js === "Webkit" || S.js === "ms" && S.browser !== "edge" ? S.css + n : n;
1556
+ }
1557
+ }, Si = {
1558
+ noPrefill: ["user-select"],
1559
+ supportedProperty: function(n) {
1560
+ return n !== "user-select" ? !1 : S.js === "Moz" || S.js === "ms" || S.vendor === "apple" ? S.css + n : n;
1561
+ }
1562
+ }, Di = {
1563
+ supportedProperty: function(n, t) {
1564
+ if (!/^break-/.test(n)) return !1;
1565
+ if (S.js === "Webkit") {
1566
+ var e = "WebkitColumn" + we(n);
1567
+ return e in t ? S.css + "column-" + n : !1;
1568
+ }
1569
+ if (S.js === "Moz") {
1570
+ var i = "page" + we(n);
1571
+ return i in t ? "page-" + n : !1;
1572
+ }
1573
+ return !1;
1574
+ }
1575
+ }, Ti = {
1576
+ supportedProperty: function(n, t) {
1577
+ if (!/^(border|margin|padding)-inline/.test(n)) return !1;
1578
+ if (S.js === "Moz") return n;
1579
+ var e = n.replace("-inline", "");
1580
+ return S.js + we(e) in t ? S.css + e : !1;
1581
+ }
1582
+ }, ki = {
1583
+ supportedProperty: function(n, t) {
1584
+ return kt(n) in t ? n : !1;
1585
+ }
1586
+ }, Ai = {
1587
+ supportedProperty: function(n, t) {
1588
+ var e = we(n);
1589
+ return n[0] === "-" || n[0] === "-" && n[1] === "-" ? n : S.js + e in t ? S.css + n : S.js !== "Webkit" && "Webkit" + e in t ? "-webkit-" + n : !1;
1590
+ }
1591
+ }, zi = {
1592
+ supportedProperty: function(n) {
1593
+ return n.substring(0, 11) !== "scroll-snap" ? !1 : S.js === "ms" ? "" + S.css + n : n;
1594
+ }
1595
+ }, Ei = {
1596
+ supportedProperty: function(n) {
1597
+ return n !== "overscroll-behavior" ? !1 : S.js === "ms" ? S.css + "scroll-chaining" : n;
1598
+ }
1599
+ }, Li = {
1600
+ "flex-grow": "flex-positive",
1601
+ "flex-shrink": "flex-negative",
1602
+ "flex-basis": "flex-preferred-size",
1603
+ "justify-content": "flex-pack",
1604
+ order: "flex-order",
1605
+ "align-items": "flex-align",
1606
+ "align-content": "flex-line-pack"
1607
+ // 'align-self' is handled by 'align-self' plugin.
1608
+ }, Oi = {
1609
+ supportedProperty: function(n, t) {
1610
+ var e = Li[n];
1611
+ return e && S.js + we(e) in t ? S.css + e : !1;
1612
+ }
1613
+ }, Mn = {
1614
+ flex: "box-flex",
1615
+ "flex-grow": "box-flex",
1616
+ "flex-direction": ["box-orient", "box-direction"],
1617
+ order: "box-ordinal-group",
1618
+ "align-items": "box-align",
1619
+ "flex-flow": ["box-orient", "box-direction"],
1620
+ "justify-content": "box-pack"
1621
+ }, Ri = Object.keys(Mn), Pi = function(n) {
1622
+ return S.css + n;
1623
+ }, Bi = {
1624
+ supportedProperty: function(n, t, e) {
1625
+ var i = e.multiple;
1626
+ if (Ri.indexOf(n) > -1) {
1627
+ var o = Mn[n];
1628
+ if (!Array.isArray(o))
1629
+ return S.js + we(o) in t ? S.css + o : !1;
1630
+ if (!i) return !1;
1631
+ for (var a = 0; a < o.length; a++)
1632
+ if (!(S.js + we(o[0]) in t))
1633
+ return !1;
1634
+ return o.map(Pi);
1635
+ }
1636
+ return !1;
1637
+ }
1638
+ }, vn = [mi, yi, vi, Ii, Ni, Ci, ji, Si, Di, Ti, ki, Ai, zi, Ei, Oi, Bi], Jt = vn.filter(function(r) {
1639
+ return r.supportedProperty;
1640
+ }).map(function(r) {
1641
+ return r.supportedProperty;
1642
+ }), Gi = vn.filter(function(r) {
1643
+ return r.noPrefill;
1644
+ }).reduce(function(r, n) {
1645
+ return r.push.apply(r, hi(n.noPrefill)), r;
1646
+ }, []), Re, Me = {};
1647
+ if (Ze) {
1648
+ Re = document.createElement("p");
1649
+ var ut = window.getComputedStyle(document.documentElement, "");
1650
+ for (var dt in ut)
1651
+ isNaN(dt) || (Me[ut[dt]] = ut[dt]);
1652
+ Gi.forEach(function(r) {
1653
+ return delete Me[r];
1654
+ });
1655
+ }
1656
+ function It(r, n) {
1657
+ if (n === void 0 && (n = {}), !Re) return r;
1658
+ if (z.env.NODE_ENV !== "benchmark" && Me[r] != null)
1659
+ return Me[r];
1660
+ (r === "transition" || r === "transform") && (n[r] = r in Re.style);
1661
+ for (var t = 0; t < Jt.length && (Me[r] = Jt[t](r, Re.style, n), !Me[r]); t++)
1662
+ ;
1663
+ try {
1664
+ Re.style[r] = "";
1665
+ } catch {
1666
+ return !1;
1667
+ }
1668
+ return Me[r];
1669
+ }
1670
+ var je = {}, Ui = {
1671
+ transition: 1,
1672
+ "transition-property": 1,
1673
+ "-webkit-transition": 1,
1674
+ "-webkit-transition-property": 1
1675
+ }, Qi = /(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g, ge;
1676
+ function Yi(r, n, t) {
1677
+ if (n === "var") return "var";
1678
+ if (n === "all") return "all";
1679
+ if (t === "all") return ", all";
1680
+ var e = n ? It(n) : ", " + It(t);
1681
+ return e || n || t;
1682
+ }
1683
+ Ze && (ge = document.createElement("p"));
1684
+ function Wt(r, n) {
1685
+ var t = n;
1686
+ if (!ge || r === "content") return n;
1687
+ if (typeof t != "string" || !isNaN(parseInt(t, 10)))
1688
+ return t;
1689
+ var e = r + t;
1690
+ if (z.env.NODE_ENV !== "benchmark" && je[e] != null)
1691
+ return je[e];
1692
+ try {
1693
+ ge.style[r] = t;
1694
+ } catch {
1695
+ return je[e] = !1, !1;
1696
+ }
1697
+ if (Ui[r])
1698
+ t = t.replace(Qi, Yi);
1699
+ else if (ge.style[r] === "" && (t = S.css + t, t === "-ms-flex" && (ge.style[r] = "-ms-flexbox"), ge.style[r] = t, ge.style[r] === ""))
1700
+ return je[e] = !1, !1;
1701
+ return ge.style[r] = "", je[e] = t, je[e];
1702
+ }
1703
+ function Zi() {
1704
+ function r(i) {
1705
+ if (i.type === "keyframes") {
1706
+ var o = i;
1707
+ o.at = pi(o.at);
1708
+ }
1709
+ }
1710
+ function n(i) {
1711
+ for (var o in i) {
1712
+ var a = i[o];
1713
+ if (o === "fallbacks" && Array.isArray(a)) {
1714
+ i[o] = a.map(n);
1715
+ continue;
1716
+ }
1717
+ var s = !1, l = It(o);
1718
+ l && l !== o && (s = !0);
1719
+ var u = !1, g = Wt(l, ve(a));
1720
+ g && g !== a && (u = !0), (s || u) && (s && delete i[o], i[l || o] = g || a);
1721
+ }
1722
+ return i;
1723
+ }
1724
+ function t(i, o) {
1725
+ return o.type !== "style" ? i : n(i);
1726
+ }
1727
+ function e(i, o) {
1728
+ return Wt(o, ve(i)) || i;
1729
+ }
1730
+ return {
1731
+ onProcessRule: r,
1732
+ onProcessStyle: t,
1733
+ onChangeValue: e
1734
+ };
1735
+ }
1736
+ function Vi() {
1737
+ var r = function(t, e) {
1738
+ return t.length === e.length ? t > e ? 1 : -1 : t.length - e.length;
1739
+ };
1740
+ return {
1741
+ onProcessStyle: function(t, e) {
1742
+ if (e.type !== "style") return t;
1743
+ for (var i = {}, o = Object.keys(t).sort(r), a = 0; a < o.length; a++)
1744
+ i[o[a]] = t[o[a]];
1745
+ return i;
1746
+ }
1747
+ };
1748
+ }
1749
+ function In() {
1750
+ return {
1751
+ plugins: [
1752
+ Jr(),
1753
+ Kr(),
1754
+ ti(),
1755
+ si(),
1756
+ ci(),
1757
+ // Disable the vendor prefixer server-side, it does nothing.
1758
+ // This way, we can get a performance boost.
1759
+ // In the documentation, we are using `autoprefixer` to solve this problem.
1760
+ typeof window > "u" ? null : Zi(),
1761
+ Vi()
1762
+ ]
1763
+ };
1764
+ }
1765
+ function Nn(r = {}) {
1766
+ const {
1767
+ baseClasses: n,
1768
+ newClasses: t,
1769
+ Component: e
1770
+ } = r;
1771
+ if (!t)
1772
+ return n;
1773
+ const i = R({}, n);
1774
+ return z.env.NODE_ENV !== "production" && typeof t == "string" ? n : (Object.keys(t).forEach((o) => {
1775
+ z.env.NODE_ENV !== "production" && (!n[o] && t[o], t[o] && t[o]), t[o] && (i[o] = `${n[o]} ${t[o]}`);
1776
+ }), i);
1777
+ }
1778
+ const Se = {
1779
+ set: (r, n, t, e) => {
1780
+ let i = r.get(n);
1781
+ i || (i = /* @__PURE__ */ new Map(), r.set(n, i)), i.set(t, e);
1782
+ },
1783
+ get: (r, n, t) => {
1784
+ const e = r.get(n);
1785
+ return e ? e.get(t) : void 0;
1786
+ },
1787
+ delete: (r, n, t) => {
1788
+ r.get(n).delete(t);
1789
+ }
1790
+ };
1791
+ function $i() {
1792
+ var r;
1793
+ const n = Jn();
1794
+ return (r = n == null ? void 0 : n.$$material) != null ? r : n;
1795
+ }
1796
+ const Ji = ["children", "injectFirst", "disableGeneration"], Wi = Dt(In()), Fi = ir(), Hi = /* @__PURE__ */ new Map(), Xi = {
1797
+ disableGeneration: !1,
1798
+ generateClassName: Fi,
1799
+ jss: Wi,
1800
+ sheetsCache: null,
1801
+ sheetsManager: Hi,
1802
+ sheetsRegistry: null
1803
+ }, He = /* @__PURE__ */ _.createContext(Xi);
1804
+ z.env.NODE_ENV !== "production" && (He.displayName = "StylesContext");
1805
+ let $e;
1806
+ function Nt(r) {
1807
+ const {
1808
+ children: n,
1809
+ injectFirst: t = !1,
1810
+ disableGeneration: e = !1
1811
+ } = r, i = Ye(r, Ji), o = _.useContext(He), {
1812
+ generateClassName: a,
1813
+ jss: s,
1814
+ serverGenerateClassName: l,
1815
+ sheetsCache: u,
1816
+ sheetsManager: g,
1817
+ sheetsRegistry: h
1818
+ } = R({}, o, i);
1819
+ z.env.NODE_ENV !== "production" && t && i.jss;
1820
+ const m = _.useMemo(() => {
1821
+ const y = {
1822
+ disableGeneration: e,
1823
+ generateClassName: a,
1824
+ jss: s,
1825
+ serverGenerateClassName: l,
1826
+ sheetsCache: u,
1827
+ sheetsManager: g,
1828
+ sheetsRegistry: h
1829
+ };
1830
+ if (z.env.NODE_ENV !== "production" && typeof window > "u" && y.sheetsManager, z.env.NODE_ENV !== "production" && y.jss.options.insertionPoint, !y.jss.options.insertionPoint && t && typeof window < "u") {
1831
+ if (!$e) {
1832
+ const p = document.head;
1833
+ $e = document.createComment("mui-inject-first"), p.insertBefore($e, p.firstChild);
1834
+ }
1835
+ y.jss = Dt({
1836
+ plugins: In().plugins,
1837
+ insertionPoint: $e
1838
+ });
1839
+ }
1840
+ return y;
1841
+ }, [t, e, a, s, l, u, g, h]);
1842
+ return /* @__PURE__ */ c(He.Provider, {
1843
+ value: m,
1844
+ children: n
1845
+ });
1846
+ }
1847
+ z.env.NODE_ENV !== "production" && (Nt.propTypes = {
1848
+ /**
1849
+ * Your component tree.
1850
+ */
1851
+ children: O.node,
1852
+ /**
1853
+ * You can disable the generation of the styles with this option.
1854
+ * It can be useful when traversing the React tree outside of the HTML
1855
+ * rendering step on the server.
1856
+ * Let's say you are using react-apollo to extract all
1857
+ * the queries made by the interface server-side - you can significantly speed up the traversal with this prop.
1858
+ */
1859
+ disableGeneration: O.bool,
1860
+ /**
1861
+ * JSS's class name generator.
1862
+ */
1863
+ generateClassName: O.func,
1864
+ /**
1865
+ * By default, the styles are injected last in the <head> element of the page.
1866
+ * As a result, they gain more specificity than any other style sheet.
1867
+ * If you want to override MUI's styles, set this prop.
1868
+ */
1869
+ injectFirst: O.bool,
1870
+ /**
1871
+ * JSS's instance.
1872
+ */
1873
+ jss: O.object,
1874
+ /**
1875
+ * @ignore
1876
+ */
1877
+ serverGenerateClassName: O.func,
1878
+ /**
1879
+ * @ignore
1880
+ *
1881
+ * Beta feature.
1882
+ *
1883
+ * Cache for the sheets.
1884
+ */
1885
+ sheetsCache: O.object,
1886
+ /**
1887
+ * @ignore
1888
+ *
1889
+ * The sheetsManager is used to deduplicate style sheet injection in the page.
1890
+ * It's deduplicating using the (theme, styles) couple.
1891
+ * On the server, you should provide a new instance for each request.
1892
+ */
1893
+ sheetsManager: O.object,
1894
+ /**
1895
+ * @ignore
1896
+ *
1897
+ * Collect the sheets.
1898
+ */
1899
+ sheetsRegistry: O.object
1900
+ });
1901
+ z.env.NODE_ENV !== "production" && z.env.NODE_ENV !== "production" && (Nt.propTypes = Bn(Nt.propTypes));
1902
+ let ft = -1e9;
1903
+ function _i() {
1904
+ return ft += 1, z.env.NODE_ENV !== "production" && ft >= 0, ft;
1905
+ }
1906
+ const Ki = ["variant"];
1907
+ function Ft(r) {
1908
+ return r.length === 0;
1909
+ }
1910
+ function qi(r) {
1911
+ const {
1912
+ variant: n
1913
+ } = r, t = Ye(r, Ki);
1914
+ let e = n || "";
1915
+ return Object.keys(t).sort().forEach((i) => {
1916
+ i === "color" ? e += Ft(e) ? r[i] : Pe(r[i]) : e += `${Ft(e) ? i : Pe(i)}${Pe(r[i].toString())}`;
1917
+ }), e;
1918
+ }
1919
+ const Cn = {};
1920
+ function es(r) {
1921
+ const n = typeof r == "function";
1922
+ return z.env.NODE_ENV, {
1923
+ create: (t, e) => {
1924
+ let i;
1925
+ try {
1926
+ i = n ? r(t) : r;
1927
+ } catch (l) {
1928
+ throw z.env.NODE_ENV, l;
1929
+ }
1930
+ if (!e || !t.components || !t.components[e] || !t.components[e].styleOverrides && !t.components[e].variants)
1931
+ return i;
1932
+ const o = t.components[e].styleOverrides || {}, a = t.components[e].variants || [], s = R({}, i);
1933
+ return Object.keys(o).forEach((l) => {
1934
+ z.env.NODE_ENV !== "production" && s[l], s[l] = At(s[l] || {}, o[l]);
1935
+ }), a.forEach((l) => {
1936
+ const u = qi(l.props);
1937
+ s[u] = At(s[u] || {}, l.style);
1938
+ }), s;
1939
+ },
1940
+ options: {}
1941
+ };
1942
+ }
1943
+ const ts = ["name", "classNamePrefix", "Component", "defaultTheme"];
1944
+ function ns({
1945
+ state: r,
1946
+ stylesOptions: n
1947
+ }, t, e) {
1948
+ if (n.disableGeneration)
1949
+ return t || {};
1950
+ r.cacheClasses || (r.cacheClasses = {
1951
+ // Cache for the finalized classes value.
1952
+ value: null,
1953
+ // Cache for the last used classes prop pointer.
1954
+ lastProp: null,
1955
+ // Cache for the last used rendered classes pointer.
1956
+ lastJSS: {}
1957
+ });
1958
+ let i = !1;
1959
+ return r.classes !== r.cacheClasses.lastJSS && (r.cacheClasses.lastJSS = r.classes, i = !0), t !== r.cacheClasses.lastProp && (r.cacheClasses.lastProp = t, i = !0), i && (r.cacheClasses.value = Nn({
1960
+ baseClasses: r.cacheClasses.lastJSS,
1961
+ newClasses: t,
1962
+ Component: e
1963
+ })), r.cacheClasses.value;
1964
+ }
1965
+ function rs({
1966
+ state: r,
1967
+ theme: n,
1968
+ stylesOptions: t,
1969
+ stylesCreator: e,
1970
+ name: i
1971
+ }, o) {
1972
+ if (t.disableGeneration)
1973
+ return;
1974
+ let a = Se.get(t.sheetsManager, e, n);
1975
+ a || (a = {
1976
+ refs: 0,
1977
+ staticSheet: null,
1978
+ dynamicStyles: null
1979
+ }, Se.set(t.sheetsManager, e, n, a));
1980
+ const s = R({}, e.options, t, {
1981
+ theme: n,
1982
+ flip: typeof t.flip == "boolean" ? t.flip : n.direction === "rtl"
1983
+ });
1984
+ s.generateId = s.serverGenerateClassName || s.generateClassName;
1985
+ const l = t.sheetsRegistry;
1986
+ if (a.refs === 0) {
1987
+ let u;
1988
+ t.sheetsCache && (u = Se.get(t.sheetsCache, e, n));
1989
+ const g = e.create(n, i);
1990
+ u || (u = t.jss.createStyleSheet(g, R({
1991
+ link: !1
1992
+ }, s)), u.attach(), t.sheetsCache && Se.set(t.sheetsCache, e, n, u)), l && l.add(u), a.staticSheet = u, a.dynamicStyles = gn(g);
1993
+ }
1994
+ if (a.dynamicStyles) {
1995
+ const u = t.jss.createStyleSheet(a.dynamicStyles, R({
1996
+ link: !0
1997
+ }, s));
1998
+ u.update(o), u.attach(), r.dynamicSheet = u, r.classes = Nn({
1999
+ baseClasses: a.staticSheet.classes,
2000
+ newClasses: u.classes
2001
+ }), l && l.add(u);
2002
+ } else
2003
+ r.classes = a.staticSheet.classes;
2004
+ a.refs += 1;
2005
+ }
2006
+ function is({
2007
+ state: r
2008
+ }, n) {
2009
+ r.dynamicSheet && r.dynamicSheet.update(n);
2010
+ }
2011
+ function ss({
2012
+ state: r,
2013
+ theme: n,
2014
+ stylesOptions: t,
2015
+ stylesCreator: e
2016
+ }) {
2017
+ if (t.disableGeneration)
2018
+ return;
2019
+ const i = Se.get(t.sheetsManager, e, n);
2020
+ i.refs -= 1;
2021
+ const o = t.sheetsRegistry;
2022
+ i.refs === 0 && (Se.delete(t.sheetsManager, e, n), t.jss.removeStyleSheet(i.staticSheet), o && o.remove(i.staticSheet)), r.dynamicSheet && (t.jss.removeStyleSheet(r.dynamicSheet), o && o.remove(r.dynamicSheet));
2023
+ }
2024
+ function os(r, n) {
2025
+ const t = _.useRef([]);
2026
+ let e;
2027
+ const i = _.useMemo(() => ({}), n);
2028
+ t.current !== i && (t.current = i, e = r()), _.useEffect(
2029
+ () => () => {
2030
+ e && e();
2031
+ },
2032
+ [i]
2033
+ // eslint-disable-line react-hooks/exhaustive-deps
2034
+ );
2035
+ }
2036
+ function as(r, n = {}) {
2037
+ const {
2038
+ // alias for classNamePrefix, if provided will listen to theme (required for theme.components[name].styleOverrides)
2039
+ name: t,
2040
+ // Help with debuggability.
2041
+ classNamePrefix: e,
2042
+ Component: i,
2043
+ defaultTheme: o = Cn
2044
+ } = n, a = Ye(n, ts), s = es(r), l = t || e || "makeStyles";
2045
+ return s.options = {
2046
+ index: _i(),
2047
+ name: t,
2048
+ meta: l,
2049
+ classNamePrefix: l
2050
+ }, (g = {}) => {
2051
+ const h = $i() || o, m = R({}, _.useContext(He), a), y = _.useRef(), p = _.useRef();
2052
+ os(() => {
2053
+ const v = {
2054
+ name: t,
2055
+ state: {},
2056
+ stylesCreator: s,
2057
+ stylesOptions: m,
2058
+ theme: h
2059
+ };
2060
+ return rs(v, g), p.current = !1, y.current = v, () => {
2061
+ ss(v);
2062
+ };
2063
+ }, [h, s]), _.useEffect(() => {
2064
+ p.current && is(y.current, g), p.current = !0;
2065
+ });
2066
+ const d = ns(y.current, g.classes, i);
2067
+ return z.env.NODE_ENV !== "production" && _.useDebugValue(d), z.env.NODE_ENV !== "production" && t && ["MuiAvatar", "MuiBadge", "MuiButton", "MuiButtonGroup", "MuiChip", "MuiDivider", "MuiFab", "MuiPaper", "MuiToolbar", "MuiTypography", "MuiAlert", "MuiPagination", "MuiPaginationItem", "MuiSkeleton", "MuiTimelineDot"].indexOf(t) >= 0 && g.variant && d[g.variant], d;
2068
+ };
2069
+ }
2070
+ const cs = as(() => ({
2071
+ circle: {
2072
+ stroke: "url(#linearColors)"
2073
+ },
2074
+ MuiCircularProgress: { circle: { color: "green" } }
2075
+ }));
2076
+ function jn(r) {
2077
+ var Y, D, I, Q, k;
2078
+ cs();
2079
+ const { okxwallet: n, bitgetwallet: t, injectedicon: e, metamaskicon: i, xverse: o, walletconnecticon: a, coinbaseicon: s, phantom: l, solflare: u, slope: g, magiceden: h, backpacksol: m, tronLink: y, keplr: p, brave: d } = pe, v = {
2080
+ Injected: e,
2081
+ metaMask: i,
2082
+ coinbaseWallet: s,
2083
+ WalletConnect: a,
2084
+ solflare: u,
2085
+ phantom: l,
2086
+ slope: g,
2087
+ backpack: m,
2088
+ keplr: p,
2089
+ xverse: o,
2090
+ "magic eden (solana)": h,
2091
+ "brave browser (solana)": d,
2092
+ TronLink: y,
2093
+ "okx wallet": n,
2094
+ "bitget wallet": t
2095
+ }, M = A((T) => T.configuration);
2096
+ return /* @__PURE__ */ C(B, { children: [
2097
+ /* @__PURE__ */ c("svg", { className: "bw-absolute", children: /* @__PURE__ */ C("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
2098
+ /* @__PURE__ */ c("stop", { offset: "1%", stopColor: (Y = M == null ? void 0 : M.gradientStyle) != null && Y.spinnerColor ? (D = M == null ? void 0 : M.gradientStyle) == null ? void 0 : D.spinnerColor : "#A45EFF" }),
2099
+ /* @__PURE__ */ c("stop", { offset: "90%", stopColor: (I = M == null ? void 0 : M.gradientStyle) != null && I.spinnerColor ? (Q = M == null ? void 0 : M.gradientStyle) == null ? void 0 : Q.stopColor : "#2CFFE4" })
2100
+ ] }) }),
2101
+ /* @__PURE__ */ C(
2102
+ Et,
2103
+ {
2104
+ sx: {
2105
+ position: "relative",
2106
+ display: "inline-flex"
2107
+ },
2108
+ children: [
2109
+ /* @__PURE__ */ c(
2110
+ Je,
2111
+ {
2112
+ variant: "determinate",
2113
+ sx: {
2114
+ color: (T) => T.palette.grey[T.palette.mode === "light" ? 200 : 800]
2115
+ },
2116
+ size: 250,
2117
+ thickness: 1,
2118
+ value: 100
2119
+ }
2120
+ ),
2121
+ /* @__PURE__ */ c(
2122
+ Je,
2123
+ {
2124
+ variant: "determinate",
2125
+ size: 250,
2126
+ thickness: 1,
2127
+ value: r.value,
2128
+ sx: {
2129
+ "svg circle": { stroke: "url(#linearColors)" },
2130
+ position: "absolute",
2131
+ left: 0,
2132
+ [`& .${Gn.circle}`]: {
2133
+ strokeLinecap: "round"
2134
+ }
2135
+ }
2136
+ }
2137
+ ),
2138
+ /* @__PURE__ */ c(
2139
+ Et,
2140
+ {
2141
+ sx: {
2142
+ top: 0,
2143
+ left: 0,
2144
+ bottom: 0,
2145
+ right: 0,
2146
+ position: "absolute",
2147
+ display: "flex",
2148
+ alignItems: "center",
2149
+ justifyContent: "center"
2150
+ },
2151
+ children: /* @__PURE__ */ C(cn, { variant: "caption", className: "bw-flex bw-flex-col bw-justify-center bw-items-center bw-text-2xl bw-font-medium bw-text-text-primary", component: "div", color: "text.secondary", children: [
2152
+ /* @__PURE__ */ c("img", { src: v[r == null ? void 0 : r.selectedWallet] || ((k = r.selectedConnector) == null ? void 0 : k.icon) || "", width: 90, height: 83, alt: "img" }),
2153
+ /* @__PURE__ */ c("p", { className: "bw-text-2xl bw-px-3 bw-mt-1 bw-text-center bw-font-medium bw-text-text-primary", children: r.selectedWallet })
2154
+ ] })
2155
+ }
2156
+ )
2157
+ ]
2158
+ }
2159
+ )
2160
+ ] });
2161
+ }
2162
+ jn.propTypes = {
2163
+ value: O.number.isRequired
2164
+ };
2165
+ function ls({ selectedWallet: r, isSuccess: n, data: t, isSolConnecting: e, isCosmosonnecting: i, isSuiConnecting: o, isTronConnecting: a, isBitcoinConnecting: s, selectedConnector: l }) {
2166
+ const { primaryWallet: u } = he(), g = Xe(), [h, m] = _.useState(25), { address: y, connected: p } = Te(), { data: d } = qe();
2167
+ return _.useEffect(() => {
2168
+ (n && t || u !== null && g && (e || o || s) || y && p && a || d != null && d.bech32Address && i) && m(100);
2169
+ }, [n, t, e, o, s, u, g, a, i, d == null ? void 0 : d.bech32Address, y, p]), /* @__PURE__ */ c(jn, { value: h, selectedWallet: r, selectedConnector: l });
2170
+ }
2171
+ function us({ selectedWallet: r, selectedConnector: n, handleConnect: t, isSolConnecting: e, isCosmosonnecting: i, isSuiConnecting: o, isBitcoinConnecting: a, handleOtherWalletConnecting: s, data: l, isTronConnecting: u, isSuccess: g, evmError: h }) {
2172
+ var X, de, x;
2173
+ const m = A((N) => N.configuration), y = A((N) => N.setCosmosChainIds), p = A((N) => N.fromChain), d = A((N) => N.gradient), { select: v, connect: M, wallet: Y } = Te(), { openWallet: D } = Ct(), { setPrimaryWallet: I } = he(), Q = _e(), { error: k } = Xt(), { registerError: T } = Un(), { suggestAsync: P } = rn(), { suggestAndConnectAsync: W } = sn(), { refetch: U } = ke({}), { connectAsync: L } = on({
2174
+ onError: (N) => {
2175
+ G(N.message);
2176
+ }
2177
+ }), [E, G] = Z("");
2178
+ let w = h != null && h.length ? h : E;
2179
+ async function F() {
2180
+ G("");
2181
+ try {
2182
+ D(r);
2183
+ } catch (N) {
2184
+ G(N.message);
2185
+ }
2186
+ }
2187
+ async function ne() {
2188
+ G("");
2189
+ try {
2190
+ Y ? await M(r) : await v(r);
2191
+ } catch (N) {
2192
+ G(N.message);
2193
+ }
2194
+ }
2195
+ te(() => {
2196
+ let N = $n(w || "");
2197
+ w.length && N && T({
2198
+ mode: "wallet connection",
2199
+ error: w
2200
+ });
2201
+ }, [w]);
2202
+ const K = Ae();
2203
+ te(() => {
2204
+ var N;
2205
+ if (K && r) {
2206
+ let b = Ie.keyBy(K, (J) => J.connector.name.toLowerCase());
2207
+ (N = b == null ? void 0 : b[r]) != null && N.id && Q(b[r].id);
2208
+ }
2209
+ }, [K, r]);
2210
+ async function ue() {
2211
+ G("");
2212
+ try {
2213
+ let N = await We();
2214
+ if (!N.includes(p == null ? void 0 : p.chainId) && (p == null ? void 0 : p.networkType) == "cosmos") {
2215
+ let b = {
2216
+ ...p == null ? void 0 : p.chainInfo
2217
+ };
2218
+ await W({
2219
+ chainInfo: b,
2220
+ walletType: De.KEPLR
2221
+ });
2222
+ let J = await We();
2223
+ y(J), await L({
2224
+ chainId: J,
2225
+ walletType: De.KEPLR
2226
+ }), await U();
2227
+ } else
2228
+ L({
2229
+ chainId: N,
2230
+ walletType: De.KEPLR
2231
+ });
2232
+ } catch (N) {
2233
+ G(N.message);
2234
+ }
2235
+ }
2236
+ return /* @__PURE__ */ C("div", { className: "bw-flex bw-w-full bw-flex-col bw-justify-center bw-items-center", children: [
2237
+ /* @__PURE__ */ C("div", { className: "bw-flex bw-w-full bw-relative bw-justify-center bw-mb-2", children: [
2238
+ /* @__PURE__ */ c(
2239
+ "button",
2240
+ {
2241
+ onClick: () => {
2242
+ s();
2243
+ },
2244
+ className: "bw-absolute bw-left-0 bw-top-[25%]",
2245
+ children: /* @__PURE__ */ c(tn, { fill: "var(--tw-text-secondary)" })
2246
+ }
2247
+ ),
2248
+ /* @__PURE__ */ c("div", { className: "bw-text-lg bw-font-normal bw-text-text-secondary", children: "Connect Wallet" }),
2249
+ /* @__PURE__ */ c(
2250
+ "button",
2251
+ {
2252
+ onClick: () => {
2253
+ s();
2254
+ },
2255
+ className: "bw-absolute bw-right-0 bw-top-[25%]",
2256
+ children: /* @__PURE__ */ c(nn, { fill: "var(--tw-text-secondary)" })
2257
+ }
2258
+ )
2259
+ ] }),
2260
+ /* @__PURE__ */ c(ls, { selectedWallet: r, isSuccess: g, data: l, isSolConnecting: e, isCosmosonnecting: i, isSuiConnecting: o, isBitcoinConnecting: a, isTronConnecting: u, selectedConnector: n }),
2261
+ /* @__PURE__ */ C("p", { className: "bw-text-lg bw-mt-2 bw-font-medium bw-text-text-primary", children: [
2262
+ "Continue in ",
2263
+ r || ""
2264
+ ] }),
2265
+ /* @__PURE__ */ c("p", { className: "bw-text-lg bw-font-normal bw-mt-2 bw-text-text-secondary", children: "Accept connection request in the wallet" }),
2266
+ /* @__PURE__ */ c("p", { className: "bw-text-text-redtext bw-text-xs bw-relative bw-top-1", children: w }),
2267
+ /* @__PURE__ */ c(
2268
+ "div",
2269
+ {
2270
+ style: {
2271
+ ...m.gradientStyle,
2272
+ boxShadow: m && m.customTheme && ((de = (X = m.customTheme) == null ? void 0 : X.shadow) == null ? void 0 : de.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
2273
+ },
2274
+ className: `bw-w-full bw-mt-3 bw-rounded-sm bw-h-full bw-p-[3px] ${d || `${(x = m == null ? void 0 : m.gradientStyle) != null && x.background ? "" : "bw-bg-gradient-to-r bw-from-[#2CFFE4] bw-to-[#A45EFF]"}`}`,
2275
+ children: /* @__PURE__ */ c(
2276
+ "button",
2277
+ {
2278
+ onClick: () => {
2279
+ w = "", e || o || a ? F() : u ? ne() : i ? ue() : (G(""), t(n));
2280
+ },
2281
+ className: "bw-w-full bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-h-[50px] bw-rounded-sm ",
2282
+ children: /* @__PURE__ */ c("span", { style: { ...m.gradientStyle, backgroundClip: "text" }, className: " bw-text-text-primary bw-text-2xl bw-font-bold ", children: "Try Again" })
2283
+ }
2284
+ )
2285
+ }
2286
+ )
2287
+ ] });
2288
+ }
2289
+ const ds = "_gradientbutton_dz9ed_1", ie = {
2290
+ gradientbutton: ds
2291
+ };
2292
+ function fs({ selectedWalletTab: r, handleWalletTab: n }) {
2293
+ const t = ["All", "EVM", "SVM", "Cosmos", "Other"], e = A((u) => u.configuration), { cosmos: i, evmwal: o, solwal: a, walleticon: s } = pe, l = {
2294
+ EVM: o,
2295
+ SVM: a,
2296
+ Cosmos: i,
2297
+ Other: s
2298
+ };
2299
+ return /* @__PURE__ */ c("div", { className: "bw-flex bw-px-3 bw-justify-between bw-gap-x-2 bw-items-center", children: t.map((u, g) => /* @__PURE__ */ c(
2300
+ "div",
2301
+ {
2302
+ style: r == u ? {
2303
+ ...e == null ? void 0 : e.gradientStyle
2304
+ } : {},
2305
+ className: `${!e.gradientStyle && r == u && ie.gradientbutton} bw-min-h-[2px] bw-rounded-md bw-p-[1px] bw-mt-[2px] bw-min-w-[40px]`,
2306
+ children: /* @__PURE__ */ C(
2307
+ "div",
2308
+ {
2309
+ onClick: () => {
2310
+ n(u);
2311
+ },
2312
+ className: `bw-w-[57px] bw-cursor-pointer bw-h-[44px] bw-flex ${r === u ? "bw-bg-background-container" : ""} bw-rounded-md bw-relative bw-flex-col bw-justify-center bw-items-center`,
2313
+ children: [
2314
+ /* @__PURE__ */ c("div", { className: `${r === u ? "" : "bw-bg-background-secondary bw-opacity-[20%]"} bw-h-full bw-absolute bw-top-0 bw-right-0 bw-rounded-md bw-w-full` }),
2315
+ l[u] ? /* @__PURE__ */ c("img", { src: l[u], alt: "img" }) : /* @__PURE__ */ c(B, {}),
2316
+ /* @__PURE__ */ c("p", { className: `${r === u ? " bw-text-text-primary bw-font-bold" : " bw-text-text-secondary bw-font-normal"} bw-text-xs bw-mt-[2px] `, children: u })
2317
+ ]
2318
+ },
2319
+ g
2320
+ )
2321
+ }
2322
+ )) });
2323
+ }
2324
+ function Ee({ fill: r }) {
2325
+ return /* @__PURE__ */ C("svg", { width: "100%", height: "100%", viewBox: "0 0 25 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
2326
+ /* @__PURE__ */ c("rect", { x: "11.7148", y: "4.08594", width: "1.60573", height: "9.09916", rx: "0.802867", fill: r }),
2327
+ /* @__PURE__ */ c(
2328
+ "path",
2329
+ {
2330
+ "fill-rule": "evenodd",
2331
+ "clip-rule": "evenodd",
2332
+ d: "M16.3146 5.80529C16.5295 5.92348 16.738 6.05125 16.9396 6.18801C18.1562 7.01313 19.1223 8.16579 19.7212 9.51974C20.4268 11.1151 20.5828 12.8995 20.1647 14.5931C19.7465 16.2867 18.7778 17.7934 17.4107 18.8769C16.0435 19.9605 14.3554 20.5594 12.611 20.5797C10.8667 20.6 9.16506 20.0405 7.77309 18.9891C6.38111 17.9377 5.37764 16.4539 4.92016 14.7705C4.46268 13.0871 4.57709 11.2995 5.24543 9.68821C5.81266 8.32069 6.75162 7.14586 7.94869 6.29265C8.16209 6.14055 8.3837 5.99866 8.61287 5.86773L8.61451 5.8706C8.71383 5.81424 8.82868 5.78206 8.95105 5.78206C9.3282 5.78206 9.63394 6.0878 9.63394 6.46495C9.63394 6.74011 9.47121 6.97726 9.23674 7.0854C8.01077 7.8015 7.05203 8.89924 6.50763 10.2117C5.95526 11.5435 5.8607 13.0209 6.2388 14.4122C6.6169 15.8034 7.44624 17.0298 8.59668 17.8987C9.74711 18.7677 11.1535 19.2301 12.5951 19.2133C14.0368 19.1965 15.432 18.7015 16.5619 17.806C17.6918 16.9105 18.4924 15.6652 18.838 14.2655C19.1836 12.8658 19.0547 11.391 18.4715 10.0725C17.8885 8.75448 16.8845 7.66724 15.617 6.98132L15.6157 6.9806L15.6163 6.97936C15.4179 6.8599 15.2851 6.64237 15.2851 6.39384C15.2851 6.01668 15.5908 5.71094 15.968 5.71094C16.0747 5.71094 16.1756 5.7354 16.2656 5.77901L16.2658 5.77867C16.2688 5.78032 16.2719 5.78197 16.2749 5.78363C16.2884 5.79042 16.3016 5.79765 16.3146 5.80529Z",
2333
+ fill: r
2334
+ }
2335
+ ),
2336
+ /* @__PURE__ */ C("g", { filter: "url(#filter0_f_5308_21436)", children: [
2337
+ /* @__PURE__ */ c("rect", { x: "11.7148", y: "4.08594", width: "1.60573", height: "9.09916", rx: "0.802867", fill: r }),
2338
+ /* @__PURE__ */ c(
2339
+ "path",
2340
+ {
2341
+ "fill-rule": "evenodd",
2342
+ "clip-rule": "evenodd",
2343
+ d: "M16.3146 5.80529C16.5295 5.92348 16.738 6.05125 16.9396 6.18801C18.1562 7.01313 19.1223 8.16579 19.7212 9.51974C20.4268 11.1151 20.5828 12.8995 20.1647 14.5931C19.7465 16.2867 18.7778 17.7934 17.4107 18.8769C16.0435 19.9605 14.3554 20.5594 12.611 20.5797C10.8667 20.6 9.16506 20.0405 7.77309 18.9891C6.38111 17.9377 5.37764 16.4539 4.92016 14.7705C4.46268 13.0871 4.57709 11.2995 5.24543 9.68821C5.81266 8.32069 6.75162 7.14586 7.94869 6.29265C8.16209 6.14055 8.3837 5.99866 8.61287 5.86773L8.61451 5.8706C8.71383 5.81424 8.82868 5.78206 8.95105 5.78206C9.3282 5.78206 9.63394 6.0878 9.63394 6.46495C9.63394 6.74011 9.47121 6.97726 9.23674 7.0854C8.01077 7.8015 7.05203 8.89924 6.50763 10.2117C5.95526 11.5435 5.8607 13.0209 6.2388 14.4122C6.6169 15.8034 7.44624 17.0298 8.59668 17.8987C9.74711 18.7677 11.1535 19.2301 12.5951 19.2133C14.0368 19.1965 15.432 18.7015 16.5619 17.806C17.6918 16.9105 18.4924 15.6652 18.838 14.2655C19.1836 12.8658 19.0547 11.391 18.4715 10.0725C17.8885 8.75448 16.8845 7.66724 15.617 6.98132L15.6157 6.9806L15.6163 6.97936C15.4179 6.8599 15.2851 6.64237 15.2851 6.39384C15.2851 6.01668 15.5908 5.71094 15.968 5.71094C16.0747 5.71094 16.1756 5.7354 16.2656 5.77901L16.2658 5.77867C16.2688 5.78032 16.2719 5.78197 16.2749 5.78363C16.2884 5.79042 16.3016 5.79765 16.3146 5.80529Z",
2344
+ fill: r
2345
+ }
2346
+ )
2347
+ ] }),
2348
+ /* @__PURE__ */ c("defs", { children: /* @__PURE__ */ C("filter", { id: "filter0_f_5308_21436", x: "0.644531", y: "0.0859375", width: "23.75", height: "24.4941", filterUnits: "userSpaceOnUse", "color-interpolation-filters": "sRGB", children: [
2349
+ /* @__PURE__ */ c("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
2350
+ /* @__PURE__ */ c("feBlend", { mode: "normal", in: "SourceGraphic", in2: "BackgroundImageFix", result: "shape" }),
2351
+ /* @__PURE__ */ c("feGaussianBlur", { stdDeviation: "2", result: "effect1_foregroundBlur_5308_21436" })
2352
+ ] }) })
2353
+ ] });
2354
+ }
2355
+ function hs({ portfolio: r, handleShowWallet: n }) {
2356
+ var y, p, d, v;
2357
+ const t = A((M) => M.configuration), e = A((M) => M.customWallet), i = A((M) => M.setCustomWallet);
2358
+ A((M) => M.toDisconnect);
2359
+ const o = A((M) => M.setToDisconnect), a = A((M) => M.isCustomWalletSet), s = A((M) => M.setIsCustomWalletSet), [l, u] = Z(""), [g, h] = Z("");
2360
+ function m() {
2361
+ (l == null ? void 0 : l.length) > 30 ? (n(), s(!0), o(!1), i(l)) : h("Please enter a valid address");
2362
+ }
2363
+ return te(() => {
2364
+ (e == null ? void 0 : e.length) > 30 ? (u(e), s(!0)) : s(!1);
2365
+ }, [e]), /* @__PURE__ */ C("div", { className: `bw-sticky bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary ${r ? "bw-w-[calc(100%]" : "bw-w-[calc(100%+20px)]"} bw-ml-[-10px] bw-bottom-0`, children: [
2366
+ /* @__PURE__ */ C("div", { className: "bw-flex bw-mx-4 bw-items-center bw-mb-2 bw-gap-x-1", children: [
2367
+ /* @__PURE__ */ c(Qn, { fill: "var(--tw-text-secondary)" }),
2368
+ /* @__PURE__ */ c("p", { className: "bw-text-sm bw-font-semibold bw-text-text-secondary", children: "Send to a different wallet address" })
2369
+ ] }),
2370
+ /* @__PURE__ */ C(
2371
+ "form",
2372
+ {
2373
+ className: "bw-w-full bw-px-4 bw-flex bw-gap-x-2 bw-justify-between bw-items-center",
2374
+ onSubmit: (M) => {
2375
+ M.preventDefault(), m();
2376
+ },
2377
+ children: [
2378
+ /* @__PURE__ */ c("div", { className: `bw-rounded-md ${a && (e == null ? void 0 : e.length) > 30 ? "bw-w-[87%]" : "bw-w-[72%]"} bw-p-[1px] bw-bg-border-primary `, children: /* @__PURE__ */ c(
2379
+ "input",
2380
+ {
2381
+ type: "text",
2382
+ value: l,
2383
+ onChange: (M) => {
2384
+ u(M.target.value), h(""), s(!1);
2385
+ },
2386
+ placeholder: "Enter receiving wallet address",
2387
+ className: "bw-w-full bw-h-[38px] bw-rounded-md bw-text-sm bw-text-text-primary bw-bg-background-container bw-px-2 placeholder:bw-text-text-secondary "
2388
+ }
2389
+ ) }),
2390
+ a && (l == null ? void 0 : l.length) > 30 ? /* @__PURE__ */ c(
2391
+ "button",
2392
+ {
2393
+ type: "button",
2394
+ onClick: (M) => {
2395
+ M.stopPropagation(), s(!1), o(!0), i(""), u("");
2396
+ },
2397
+ className: "bw-w-[40px] bw-h-[40px] bw-flex bw-items-center bw-justify-center bw-rounded-md bw-border bw-border-bg-button",
2398
+ children: /* @__PURE__ */ c("div", { className: "bw-w-[25px] bw-h-[25px]", children: /* @__PURE__ */ c(Ee, { fill: "var(--tw-text-primary)" }) })
2399
+ }
2400
+ ) : /* @__PURE__ */ c(
2401
+ "div",
2402
+ {
2403
+ style: (l == null ? void 0 : l.length) > 30 ? {
2404
+ ...t == null ? void 0 : t.gradientStyle,
2405
+ boxShadow: t && t.customTheme && ((p = (y = t.customTheme) == null ? void 0 : y.shadow) == null ? void 0 : p.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
2406
+ } : {
2407
+ boxShadow: t && t.customTheme && ((v = (d = t.customTheme) == null ? void 0 : d.shadow) == null ? void 0 : v.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
2408
+ },
2409
+ className: `bw-w-[28%] bw-flex bw-justify-center bw-items-center bw-rounded-md ${!(t != null && t.gradientStyle) && (l == null ? void 0 : l.length) > 30 && ie.gradientbutton} `,
2410
+ children: /* @__PURE__ */ c(
2411
+ "button",
2412
+ {
2413
+ onClick: () => {
2414
+ m();
2415
+ },
2416
+ type: "submit",
2417
+ className: `bw-cursor-pointer bw-bg-background-container bw-w-full bw-rounded-[4px] ${(l == null ? void 0 : l.length) > 30 ? " bw-font-bold bw-text-text-primary bw-h-[36px] bw-m-[2px]" : "bw-border bw-font-medium bw-text-text-secondary bw-border-border-primary bw-h-[40px]"} bw-text-lg `,
2418
+ children: "Confirm"
2419
+ }
2420
+ )
2421
+ }
2422
+ )
2423
+ ]
2424
+ }
2425
+ ),
2426
+ /* @__PURE__ */ c("p", { className: "bw-text-xs bw-pl-4 bw-mt-1 bw-font-normal bw-text-text-redtext", children: g })
2427
+ ] });
2428
+ }
2429
+ function gs({ fill: r }) {
2430
+ return /* @__PURE__ */ C(
2431
+ "svg",
2432
+ {
2433
+ width: "18",
2434
+ height: "18",
2435
+ viewBox: "0 0 13 13",
2436
+ fill: "none",
2437
+ xmlns: "http://www.w3.org/2000/svg",
2438
+ children: [
2439
+ /* @__PURE__ */ c(
2440
+ "path",
2441
+ {
2442
+ d: "M6 2H2C1.44772 2 1 2.44772 1 3V11C1 11.5523 1.44772 12 2 12H10C10.5523 12 11 11.5523 11 11V7",
2443
+ stroke: r,
2444
+ "stroke-linecap": "round"
2445
+ }
2446
+ ),
2447
+ /* @__PURE__ */ c(
2448
+ "path",
2449
+ {
2450
+ d: "M4.64645 8.14645C4.45118 8.34171 4.45118 8.65829 4.64645 8.85355C4.84171 9.04882 5.15829 9.04882 5.35355 8.85355L4.64645 8.14645ZM13 1C13 0.723858 12.7761 0.5 12.5 0.5H8C7.72386 0.5 7.5 0.723858 7.5 1C7.5 1.27614 7.72386 1.5 8 1.5H12V5.5C12 5.77614 12.2239 6 12.5 6C12.7761 6 13 5.77614 13 5.5V1ZM5.35355 8.85355L12.8536 1.35355L12.1464 0.646447L4.64645 8.14645L5.35355 8.85355Z",
2451
+ fill: r
2452
+ }
2453
+ )
2454
+ ]
2455
+ }
2456
+ );
2457
+ }
2458
+ function tt({ wallet: r, chain: n }) {
2459
+ const { bitgetwallet: t, okxwallet: e, solflare: i, slope: o, magiceden: a, backpacksol: s, keplr: l, solanaicon: u, brave: g, cosmosicon: h, bitcoin: m, xverse: y, ethereumicon: p, tronLink: d } = pe, v = {
2460
+ solflare: i,
2461
+ // phantom,
2462
+ tronLink: d,
2463
+ xverse: y,
2464
+ bitcoin: m,
2465
+ slope: o,
2466
+ backpack: s,
2467
+ "okx wallet": e,
2468
+ "bitget wallet": t,
2469
+ "magic eden (solana)": a,
2470
+ keplr: l,
2471
+ "brave browser (solana)": g,
2472
+ phantom: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAKkElEQVR4Ae2dQW8bxxmGv9ldGmikJFQBO4bdWERiA40OkQrIl+QgGkjbS4rYaN2iJ4f9A61/gaV/kPyB0j61hY0qBYoe0oOpg32RgUg9OAGcoEycCk4MWFQsqYBJ7mTeJdehKFLcXc7sDnfmAShSFFei9nvnnW9mvh0yUsBqlRebtFci8hcY8RIjNovnOZF4jhfFfbH39eLnJTIQTrze+704D/XO89RgTDzm/g4Xz+F5j6Y3LlVYgyTDSAKdgD+96BAt+cTLpgZUNSJYdZ9oQzz8R4EKtUuVH9VpTMYSwM3q07LQ6zXxsEyW1BHBuy4c4sblyos1SkgiAdjAa0fNo0IliSPEEgCsvkW7IvD8T2TRELYs3GAl1hFRX7ha/X+pTc3bnUTOoivIE1wqXIjqBk6UF9368+4VEfxPbPD1BzFqiVj9rfrdxSivHymAW9XdP3LmX+8fulm0pigCuypytWujXnikAPALOPkfkGVC4ct/re4cma8NzQFgIVARWSYexp33f/OH6RsDfzboyW7C94m1/dzQEMPEnw1KDAd2Ad1s3wY/PxQR09Xq9qGYHhJAp9+32X7e6IwOvENJ4YEuANYvhhD/JUuOYRd6p44POIAIfpUsOYcfcIHnAujM79u5fQMod2Md8FwAjPErZDGEH1wgyAFs328eHrVnLlVmGoEDNKlZJotR+OQGawWBABxG75HFKMSwcAn3Tve7BbKYRhlfGGaHWuRuk8U4kAc4YnbItn5DaYrZQYcTL5HFSFxyFxxmBWAsvoi9EIBd9TMVXLDjiCnAWbIYi8e5dYC4FI4xcRPW+WNGx8R9odB5rpf9PU57u5yaz4gaTzjpCGdU8sgykuMnGRVnGL0849AJ8fiF6fjX0zx+xIUQfNr62g8e6wDnvOihUEDKBYI5Aq359BlGp37iiuAfbt1JgIiOn3Tp3JxL+8IZ/vfQpwef+sHjrBD9f9E6QA8I0tybnrB2OUEfBhzk3BtucH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zcgMC4zMTIyNTZMMzQuOTk5OSA5LjI3MDk0TDMyLjcwNzcgMTYuNDk5M0gyNy43NzgxTDIxLjQwMDkgMTIuMTMwMUwzMi43MDc3IDAuMzEyMjU2WiIgZmlsbD0iIzY2MTgwMCIvPgo8cGF0aCBkPSJNMjEuODMzIDIwLjQxOTlIMjQuMDY5NEwyNS4yODUzIDIxLjYwNzlMMjAuOTYwNCAyMi42NzZMMjEuODMzIDIwLjQxODJWMjAuNDE5OVoiIGZpbGw9IiM2NjE4MDAiLz4KPHBhdGggZD0iTTE5LjQ4MTcgMzAuODM2MkwxOS45OTExIDI4Ljk3OTRMMTguOTY1OCAyNy44NDIzSDE2LjAzMjdMMTUuMDA3MyAyOC45Nzk0TDE1LjUxNjcgMzAuODM2MiIgZmlsbD0iIzY2MTgwMCIvPgo8cGF0aCBkPSJNMTkuNDgxNiAzMC44MzU5VjMzLjkwMjFIMTUuNTE2NlYzMC44MzU5SDE5LjQ4MTZaIiBmaWxsPSIjQzBDNENEIi8+CjxwYXRoIGQ9Ik05LjgyOTU5IDMwLjUxNDJMMTUuNTIgMzMuOTAwOFYzMC44MzQ2TDE1LjAxMDYgMjguOTc3OEw5LjgyOTU5IDMwLjUxNDJaIiBmaWxsPSIjRTdFQkY2Ii8+CjxwYXRoIGQ9Ik0yNS4xNzIxIDMwLjUxNDJMMTkuNDgxNyAzMy45MDA4VjMwLjgzNDZMMTkuOTkxMSAyOC45Nzc4TDI1LjE3MjEgMzAuNTE0MloiIGZpbGw9IiNFN0VCRjYiLz4KPC9zdmc+Cg=="
2476
+ };
2477
+ return /* @__PURE__ */ c("a", { className: "bw-min-w-full", href: {
2478
+ solflare: "https://chromewebstore.google.com/detail/solflare-wallet/bhhhlbepdkbapadjdnnojkbgioiodbic",
2479
+ phantom: "https://chromewebstore.google.com/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa",
2480
+ slope: "https://chromewebstore.google.com/detail/slope-wallet/pocmplpaccanhmnllbbkpgfliimjljgo?hl=en",
2481
+ backpack: "https://chromewebstore.google.com/detail/backpack/aflkmfhebedbjioipglgcbcmnbpgliof",
2482
+ "magic eden (solana)": "https://chromewebstore.google.com/detail/magic-eden-wallet/mkpegjkblkkefacfnmkajcjmabijhclg",
2483
+ keplr: "https://chromewebstore.google.com/detail/keplr/dmkamcknogkgcdfhhbddcghachkejeap?hl=en",
2484
+ "brave browser (solana)": "https://brave.com/wallet/",
2485
+ "trust wallet": "https://chromewebstore.google.com/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
2486
+ "rabby wallet": "https://chromewebstore.google.com/detail/rabby-wallet/acmacodkjbdgmoleebolmdjonilkdbch?hl=en",
2487
+ metamask: "https://chromewebstore.google.com/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn?hl=en",
2488
+ xverse: "https://chromewebstore.google.com/detail/xverse-bitcoin-crypto-wal/idnnbdplmphpflfnlkomgpfbpcgelopg"
2489
+ }[r == null ? void 0 : r.toLowerCase()], target: "_blank", children: /* @__PURE__ */ C("div", { className: "bw-w-full bw-flex bw-items-center bw-justify-between bw-h-max", children: [
2490
+ " ",
2491
+ /* @__PURE__ */ C("div", { className: "bw-flex bw-my-2 bw-items-center bw-gap-x-2", children: [
2492
+ /* @__PURE__ */ C("div", { className: "bw-w-max bw-relative", children: [
2493
+ /* @__PURE__ */ c("img", { src: v[r == null ? void 0 : r.toLowerCase()], width: 32, height: 32, className: "bw-w-[32px] bw-h-[32px] bw-rounded-md", alt: "img" }),
2494
+ /* @__PURE__ */ c("img", { src: n == "cosmos" ? h : n === "evm" ? p : n === "bitcoin" ? m : u, className: "bw-absolute bw-right-[-15%] bw-bottom-[-30%]", width: "21", height: "21", alt: "img" })
2495
+ ] }),
2496
+ /* @__PURE__ */ c("p", { className: "bw-text-sm bw-text-text-secondary bw-font-medium", children: r })
2497
+ ] }),
2498
+ /* @__PURE__ */ C("button", { children: [
2499
+ " ",
2500
+ /* @__PURE__ */ c(gs, { fill: "var(--tw-text-placeholder)" })
2501
+ ] })
2502
+ ] }) });
2503
+ }
2504
+ function bs({ selectedWalletTab: r, styles: n, connectWalletField: t, handleShowWallet: e, setSelectedConnector: i, setSelectedWallet: o, handleConnect: a, setShowLoading: s, section: l }) {
2505
+ const u = A((w) => w.configuration), g = A((w) => w.setToDisconnect), { connector: h } = _t(), { disconnect: m } = Dn(), [y, p] = Z(), [d, v] = Z([]), { connectors: M, switchAccountAsync: Y } = Kt(), { injectedicon: D, metamaskicon: I, coinbaseicon: Q, walletconnecticon: k, ethereumicon: T } = pe, P = {
2506
+ injected: D,
2507
+ metaMaskSDK: I,
2508
+ coinbaseWalletSDK: Q,
2509
+ walletConnect: k
2510
+ }, W = qt(), U = Tn({
2511
+ config: W
2512
+ }), L = kn({ config: W }), E = A((w) => w.setIsEvmSupportAvailable);
2513
+ let G = ["MetaMask", "Trust Wallet", "Rabby Wallet", "Phantom"];
2514
+ return te(() => {
2515
+ let w = Ie.keyBy(U, "name"), F = G.filter((ne) => !w[ne]);
2516
+ v(F), E(F.length > 0);
2517
+ }, [U]), te(() => {
2518
+ p(Ie.keyBy(L, (w) => w.connector.uid));
2519
+ }, [L]), /* @__PURE__ */ C(B, { children: [
2520
+ r == "All" || r == "EVM" ? U.filter((w) => {
2521
+ let F = (h == null ? void 0 : h.id) == w.id || (y == null ? void 0 : y[w.uid]);
2522
+ return !!(l == "connected" && F || l == "installed" && !F || l == "supported");
2523
+ }).map((w, F) => {
2524
+ var ne, K;
2525
+ return /* @__PURE__ */ c(B, { children: l !== "supported" ? /* @__PURE__ */ C(
2526
+ "div",
2527
+ {
2528
+ style: (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? {
2529
+ ...u == null ? void 0 : u.gradientStyle
2530
+ } : {},
2531
+ className: `bw-w-[47%] bw-mb-4 bw-relative bw-rounded-md bw-p-[1px] ${!u.gradientStyle && (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? n.gradientbutton : u.gradientStyle && (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? "" : "bw-bg-border-primary"} `,
2532
+ children: [
2533
+ /* @__PURE__ */ C(
2534
+ "div",
2535
+ {
2536
+ onClick: () => {
2537
+ (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? t == "to" ? (g(!1), e()) : m({ connector: h }) : (o(w.name || w.type), i(w), a(w, !!(y != null && y[w.uid])), s(!1), g(!1));
2538
+ },
2539
+ style: { cursor: "pointer" },
2540
+ className: `bw-w-full bw-bg-background-container hover:bw-shadow-sm bw-font-medium hover:bw-font-bold hover:bw-text-text-primary bw-flex bw-gap-x-3 bw-px-3 bw-justify-start bw-items-center bw-h-[56px] ${(h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? " bw-text-text-primary" : "bw-text-text-secondary"} bw-relative bw-rounded-md
2541
+
2542
+ `,
2543
+ children: [
2544
+ /* @__PURE__ */ C("div", { className: "bw-w-max bw-relative", children: [
2545
+ " ",
2546
+ /* @__PURE__ */ c("img", { className: "bw-rounded-md", src: P[w.id] || w.icon, width: 32, height: 32, alt: "img" })
2547
+ ] }),
2548
+ /* @__PURE__ */ c("p", { className: "bw-text-xs bw-w-max ", children: w.name })
2549
+ ]
2550
+ },
2551
+ F
2552
+ ),
2553
+ /* @__PURE__ */ c(
2554
+ "div",
2555
+ {
2556
+ style: (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? {
2557
+ ...u == null ? void 0 : u.gradientStyle
2558
+ } : {},
2559
+ className: `bw-mb-4 bw-bottom-[-50%] bw-absolute bw-right-2 bw-rounded-md bw-p-[1px] ${!u.gradientStyle && (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? n.gradientbutton : u.gradientStyle && (h == null ? void 0 : h.id) == (w == null ? void 0 : w.id) ? "" : "bw-bg-border-primary"} `,
2560
+ children: /* @__PURE__ */ C("div", { className: " bw-w-[71px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1 ", children: [
2561
+ /* @__PURE__ */ c("img", { src: T, width: "", height: "", alt: "img" }),
2562
+ /* @__PURE__ */ c("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "EVM" })
2563
+ ] })
2564
+ }
2565
+ ),
2566
+ y != null && y[w.uid] || (h == null ? void 0 : h.id) == w.id ? /* @__PURE__ */ c(
2567
+ "div",
2568
+ {
2569
+ onClick: (ue) => {
2570
+ var X;
2571
+ m({
2572
+ connector: (X = y == null ? void 0 : y[w.uid]) == null ? void 0 : X.connector,
2573
+ config: W
2574
+ }), ue.stopPropagation();
2575
+ },
2576
+ className: " bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]",
2577
+ children: /* @__PURE__ */ c(
2578
+ "div",
2579
+ {
2580
+ style: {
2581
+ boxShadow: u && u.customTheme && ((K = (ne = u.customTheme) == null ? void 0 : ne.shadow) == null ? void 0 : K.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2582
+ },
2583
+ className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%]",
2584
+ children: /* @__PURE__ */ c(Ee, { fill: "var(--tw-text-primary)" })
2585
+ }
2586
+ )
2587
+ }
2588
+ ) : /* @__PURE__ */ c(B, {})
2589
+ ]
2590
+ }
2591
+ ) : /* @__PURE__ */ c(B, {}) });
2592
+ }) : /* @__PURE__ */ c(B, {}),
2593
+ l === "supported" && (r == "All" || r == "EVM") ? d.map((w) => /* @__PURE__ */ c(tt, { wallet: w, chain: "evm" })) : /* @__PURE__ */ c(B, {})
2594
+ ] });
2595
+ }
2596
+ function ws(r) {
2597
+ var n, t, e, i, o, a;
2598
+ switch (r) {
2599
+ case "phantom":
2600
+ return !!((t = (n = window == null ? void 0 : window.phantom) == null ? void 0 : n.solana) != null && t.isPhantom);
2601
+ case "backpack":
2602
+ return !!((e = window == null ? void 0 : window.backpack) != null && e.isBackpack);
2603
+ case "brave browser (solana)":
2604
+ return !!window.braveSolana.isBraveWallet;
2605
+ case "solflare":
2606
+ return !!((i = window == null ? void 0 : window.solflare) != null && i.isSolflare);
2607
+ case "magic eden (solana)":
2608
+ return !!((a = (o = window == null ? void 0 : window.magicEden) == null ? void 0 : o.solana) != null && a.isMagicEden);
2609
+ default:
2610
+ return !1;
2611
+ }
2612
+ }
2613
+ function Sn() {
2614
+ const r = _e(), n = Ae(), { primaryWallet: t, handleUnlinkWallet: e } = he();
2615
+ A((s) => s.fromChain);
2616
+ const i = A((s) => s.toChain), { updateMostRecentWallet: o } = ke({});
2617
+ async function a(s, l = "SOL") {
2618
+ const u = s === (t == null ? void 0 : t.id);
2619
+ try {
2620
+ if (u) {
2621
+ const g = n.filter((h) => h.chain === l && h.id !== s);
2622
+ if (g.length > 0)
2623
+ await r(g[0].id), o(g[0]);
2624
+ else {
2625
+ const h = n.filter((m) => m.chain !== l);
2626
+ if (h.length > 0) {
2627
+ const m = h.find((y) => {
2628
+ var p;
2629
+ return ((p = y.chain) == null ? void 0 : p.toLocaleLowerCase()) === (i == null ? void 0 : i.chainId);
2630
+ }) || h[0];
2631
+ await r(m.id), o(m);
2632
+ }
2633
+ }
2634
+ e(s);
2635
+ } else
2636
+ e(s);
2637
+ } catch {
2638
+ }
2639
+ }
2640
+ return { handleDisconnectDynamic: a };
2641
+ }
2642
+ const ps = ({ fromChain: r, toChain: n, connectWalletField: t, handleSolConnecting: e, selectedWalletTab: i, handleShowWallet: o, section: a }) => {
2643
+ const { primaryWallet: s, handleLogOut: l, handleUnlinkWallet: u } = he(), g = Xe(), [h, m] = Z(0), [y, p] = Z(!1), [d, v] = Z(), { setShowAuthFlow: M, walletConnectorOptions: Y } = he(), { openWallet: D } = Ct(), I = A((b) => b.configuration), Q = A((b) => b.setToDisconnect), { handleSOLDisable: k, updateMostRecentWallet: T } = ke({});
2644
+ k(t);
2645
+ const P = Ae(), { selectWalletOption: W, walletOptions: U } = Ke(), L = _e(), { handleDisconnectDynamic: E } = Sn();
2646
+ te(() => {
2647
+ g && y && s !== null && p(!1);
2648
+ }, [g, s]);
2649
+ const { phantom: G, solflare: w, slope: F, magiceden: ne, backpacksol: K, keplr: ue, solanaicon: X, brave: de } = pe, x = {
2650
+ solflare: w,
2651
+ phantom: G,
2652
+ slope: F,
2653
+ backpack: K,
2654
+ "magic eden (solana)": ne,
2655
+ keplr: ue,
2656
+ "brave browser (solana)": de
2657
+ };
2658
+ te(() => {
2659
+ if (P.length) {
2660
+ let b = P.length ? P.filter((V) => V.chain == "SOL") : [], J = Ie.keyBy(b, (V) => `${V.connector.name}-SOL`);
2661
+ v(J);
2662
+ } else
2663
+ v();
2664
+ }, [P.length]);
2665
+ const N = (b) => {
2666
+ var J, V, H, q, ee;
2667
+ (s == null ? void 0 : s.chain) === "SOL" && b.name == ((J = s == null ? void 0 : s.connector) == null ? void 0 : J.name) ? t == "to" && (Q(!1), o()) : ((V = d == null ? void 0 : d[`${b.name}-SOL`]) == null ? void 0 : V.chain) === "SOL" && (d != null && d[`${b.name}-SOL`]) ? (L((H = d == null ? void 0 : d[`${b.name}-SOL`]) == null ? void 0 : H.id), T(d == null ? void 0 : d[`${b.name}-SOL`]), o(), Q(!1)) : (D((q = b.key) == null ? void 0 : q.toLowerCase()), p(!0), e(!0, (ee = b.name) == null ? void 0 : ee.toLowerCase()));
2668
+ };
2669
+ return U != null && U.length ? /* @__PURE__ */ c(B, { children: U.filter((b, J) => {
2670
+ var H, q, ee;
2671
+ let V = (s == null ? void 0 : s.chain) === "SOL" && b.name == ((H = s == null ? void 0 : s._connector) == null ? void 0 : H.name) || ((q = d == null ? void 0 : d[`${b == null ? void 0 : b.name}-SOL`]) == null ? void 0 : q.chain) === "SOL" && (d == null ? void 0 : d[`${b == null ? void 0 : b.name}-SOL`]);
2672
+ if (((ee = b.chain) == null ? void 0 : ee.toLowerCase()) === "sol" && (b.name == "Solflare" || b.name == "Slope" || b.name == "Phantom" || b.name == "Backpack" || b.name == "Magic Eden (Solana)" || b.name == "Brave Browser (Solana)")) {
2673
+ if (a == "connected" && V)
2674
+ return !0;
2675
+ if (a == "installed" && !V && (b.isInstalledOnBrowser || b.name == "Phantom" && window.innerWidth < 768))
2676
+ return !0;
2677
+ if (a == "supported" && !b.isInstalledOnBrowser)
2678
+ return !0;
2679
+ }
2680
+ }).map((b, J) => {
2681
+ var H, q, ee, se, me, oe, ae, ce, le, ye, j, $, xe;
2682
+ let V = (s == null ? void 0 : s.chain) === "SOL" && b.name == ((H = s == null ? void 0 : s._connector) == null ? void 0 : H.name) || ((q = d == null ? void 0 : d[`${b == null ? void 0 : b.name}-SOL`]) == null ? void 0 : q.chain) === "SOL" && (d == null ? void 0 : d[`${b == null ? void 0 : b.name}-SOL`]);
2683
+ return b.isInstalledOnBrowser || V && a !== "supported" || b.name == "Phantom" && a == "installed" && !V ? /* @__PURE__ */ c(
2684
+ "div",
2685
+ {
2686
+ style: b.name == ((ee = s == null ? void 0 : s._connector) == null ? void 0 : ee.name) ? {
2687
+ ...I == null ? void 0 : I.gradientStyle
2688
+ } : {},
2689
+ className: `bw-w-[47%] bw-mb-4 ${b.name == "Keplr" && i === "Cosmos" ? "" : " "} bw-rounded-md bw-p-[1px] ${!I.gradientStyle && (s == null ? void 0 : s.chain) === "SOL" && b.name == ((se = s == null ? void 0 : s._connector) == null ? void 0 : se.name) ? ie.gradientbutton : I.gradientStyle && (s == null ? void 0 : s.chain) === "SOL" && b.name == ((me = s == null ? void 0 : s._connector) == null ? void 0 : me.name) ? "" : "bw-bg-border-primary"} `,
2690
+ children: /* @__PURE__ */ C(
2691
+ "div",
2692
+ {
2693
+ className: ` bw-relative bw-flex bw-w-full bw-bg-background-container hover:bw-shadow-sm bw-font-medium hover:bw-font-bold hover:bw-text-text-primary bw-items-center bw-gap-x-3 bw-rounded-md bw-h-[56px] bw-px-3 bw-cursor-pointer ${(s == null ? void 0 : s.chain) === "SOL" && b.name == ((oe = s == null ? void 0 : s._connector) == null ? void 0 : oe.name) ? " bw-text-text-primary" : "bw-text-text-secondary"}`,
2694
+ onClick: () => {
2695
+ var fe;
2696
+ (ws((fe = b.name) == null ? void 0 : fe.toLowerCase()) || b.name == "Phantom") && N(b);
2697
+ },
2698
+ children: [
2699
+ /* @__PURE__ */ c(
2700
+ "div",
2701
+ {
2702
+ style: (s == null ? void 0 : s.chain) === "SOL" && b.name == ((ae = s == null ? void 0 : s._connector) == null ? void 0 : ae.name) ? {
2703
+ ...I == null ? void 0 : I.gradientStyle
2704
+ } : {},
2705
+ className: ` bw-mb-4 ${b.name == "Keplr" && i === "Cosmos" ? "" : " "} bw-rounded-md bw-p-[1px] bw-absolute bw-right-2 bw-bottom-[-50%] ${!I.gradientStyle && (s == null ? void 0 : s.chain) === "SOL" && b.name == ((ce = s == null ? void 0 : s._connector) == null ? void 0 : ce.name) ? ie.gradientbutton : I.gradientStyle && (s == null ? void 0 : s.chain) === "SOL" && b.name == ((le = s == null ? void 0 : s._connector) == null ? void 0 : le.name) ? "" : "bw-bg-border-primary"} `,
2706
+ children: /* @__PURE__ */ C("div", { className: " bw-w-[71px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1 ", children: [
2707
+ /* @__PURE__ */ c("img", { src: X, width: "", height: "", alt: "img" }),
2708
+ /* @__PURE__ */ c("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "SOL" })
2709
+ ] })
2710
+ }
2711
+ ),
2712
+ ((ye = d == null ? void 0 : d[`${b == null ? void 0 : b.name}-SOL`]) == null ? void 0 : ye.chain) === "SOL" && (d != null && d[`${b == null ? void 0 : b.name}-SOL`]) ? /* @__PURE__ */ c(
2713
+ "div",
2714
+ {
2715
+ onClick: async (fe) => {
2716
+ var Ne;
2717
+ fe.stopPropagation(), P.length === 1 ? l() : E((Ne = d == null ? void 0 : d[`${b == null ? void 0 : b.name}-SOL`]) == null ? void 0 : Ne.id, "SOL");
2718
+ },
2719
+ className: " bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]",
2720
+ children: /* @__PURE__ */ c(
2721
+ "div",
2722
+ {
2723
+ style: {
2724
+ boxShadow: I && I.customTheme && (($ = (j = I.customTheme) == null ? void 0 : j.shadow) == null ? void 0 : $.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2725
+ },
2726
+ className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%]",
2727
+ children: /* @__PURE__ */ c(Ee, { fill: "var(--tw-text-primary)" })
2728
+ }
2729
+ )
2730
+ }
2731
+ ) : /* @__PURE__ */ c(B, {}),
2732
+ /* @__PURE__ */ C("div", { className: "bw-w-max bw-relative", children: [
2733
+ /* @__PURE__ */ c("img", { src: x[(xe = b.name) == null ? void 0 : xe.toLowerCase()], width: 32, height: 32, className: "bw-w-[32px] bw-h-[32px] bw-rounded-md", alt: "img" }),
2734
+ /* @__PURE__ */ c("img", { src: X, className: "bw-absolute bw-right-[-15%] bw-bottom-[-30%]", width: "", height: "", alt: "img" })
2735
+ ] }),
2736
+ /* @__PURE__ */ c("p", { className: "bw-text-xs bw-w-max ", children: b.name })
2737
+ ]
2738
+ }
2739
+ )
2740
+ }
2741
+ ) : b.name == "Phantom" && window.innerWidth < 768 ? /* @__PURE__ */ c(B, {}) : /* @__PURE__ */ c(tt, { wallet: b.name, chain: b.chain });
2742
+ }) }) : /* @__PURE__ */ c("div", { className: "bw-w-full bw-flex bw-justify-center bw-mt-2 bw-text-text-primary", children: /* @__PURE__ */ c(Je, { color: "inherit", size: 14 }) });
2743
+ }, ms = ({
2744
+ connectWalletField: r,
2745
+ fromChain: n,
2746
+ toChain: t,
2747
+ handleSolConnecting: e,
2748
+ portfolio: i,
2749
+ selectedWalletTab: o,
2750
+ handleShowWallet: a,
2751
+ section: s
2752
+ }) => /* @__PURE__ */ c(
2753
+ ps,
2754
+ {
2755
+ fromChain: n,
2756
+ toChain: t,
2757
+ connectWalletField: r,
2758
+ handleSolConnecting: e,
2759
+ portfolio: i,
2760
+ selectedWalletTab: o,
2761
+ handleShowWallet: a,
2762
+ section: s
2763
+ }
2764
+ ), ys = "_gradientbutton_dz9ed_1", Ht = {
2765
+ gradientbutton: ys
2766
+ };
2767
+ function xs({ selectedWalletTab: r, handleCosmosConnection: n, setErrorMsg: t, connectWalletField: e, handleShowWallet: i, section: o }) {
2768
+ var P, W, U, L;
2769
+ const a = A((E) => E.configuration), s = A((E) => E.fromChain);
2770
+ A((E) => E.toChain);
2771
+ const l = A((E) => E.setCosmosChainIds);
2772
+ Yn();
2773
+ const { refetch: u } = ke({}), { connect: g, connectAsync: h } = on({
2774
+ onError: (E) => t(E.message)
2775
+ }), { disconnect: m } = Zn(), { data: y, isConnected: p, reconnect: d } = qe(), v = A((E) => E.setToDisconnect), { keplr: M, cosmosicon: Y } = pe;
2776
+ Vn();
2777
+ const { suggestAsync: D } = rn(), { suggestAndConnectAsync: I } = sn(), Q = {
2778
+ keplr: M
2779
+ };
2780
+ async function k() {
2781
+ try {
2782
+ let E = await We();
2783
+ if (!E.includes(s == null ? void 0 : s.chainId) && (s == null ? void 0 : s.networkType) == "cosmos") {
2784
+ let G = {
2785
+ ...s == null ? void 0 : s.chainInfo
2786
+ };
2787
+ await I({
2788
+ chainInfo: G,
2789
+ walletType: De.KEPLR
2790
+ });
2791
+ let w = await We();
2792
+ l(w), await h({
2793
+ chainId: w,
2794
+ walletType: De.KEPLR
2795
+ }), await u();
2796
+ } else
2797
+ g({
2798
+ chainId: E,
2799
+ walletType: De.KEPLR
2800
+ });
2801
+ n(!0, "keplr");
2802
+ } catch {
2803
+ }
2804
+ }
2805
+ let T = ((P = y == null ? void 0 : y.bech32Address) == null ? void 0 : P.length) && p;
2806
+ return o == "connected" && T || o == "installed" && !T && window.keplr ? /* @__PURE__ */ C(
2807
+ "div",
2808
+ {
2809
+ style: T ? {
2810
+ ...a == null ? void 0 : a.gradientStyle
2811
+ } : {},
2812
+ className: `bw-w-[47%] bw-relative bw-mb-4 ${r === "Cosmos" ? "" : " "} bw-rounded-md bw-p-[1px] ${!a.gradientStyle && T ? Ht.gradientbutton : a.gradientStyle && T ? "" : "bw-bg-border-primary"} `,
2813
+ onClick: () => {
2814
+ e == "to" && p ? (v(!1), i()) : p ? m() : k();
2815
+ },
2816
+ children: [
2817
+ /* @__PURE__ */ C(
2818
+ "div",
2819
+ {
2820
+ className: ` bw-relative bw-flex bw-w-full bw-bg-background-container hover:bw-shadow-sm bw-font-medium hover:bw-font-bold hover:bw-text-text-primary bw-items-center bw-gap-x-3 bw-rounded-md bw-h-[56px] bw-px-3 bw-cursor-pointer ${(W = y == null ? void 0 : y.bech32Address) != null && W.length && p ? " bw-text-text-primary" : "bw-text-text-secondary"}`,
2821
+ children: [
2822
+ /* @__PURE__ */ c("img", { src: Q.keplr, width: 32, height: 32, className: "", alt: "img" }),
2823
+ /* @__PURE__ */ c("p", { className: "bw-text-xs bw-w-max ", children: "Keplr" })
2824
+ ]
2825
+ }
2826
+ ),
2827
+ /* @__PURE__ */ c(
2828
+ "div",
2829
+ {
2830
+ style: T ? {
2831
+ ...a == null ? void 0 : a.gradientStyle
2832
+ } : {},
2833
+ className: ` bw-absolute bw-right-2 bw-bottom-[-50%] bw-mb-4 ${r === "Cosmos" ? "" : " "} bw-rounded-md bw-p-[1px] ${!a.gradientStyle && T ? Ht.gradientbutton : a.gradientStyle && T ? "" : "bw-bg-border-primary"} `,
2834
+ children: /* @__PURE__ */ C("div", { className: " bw-w-[81px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1 ", children: [
2835
+ /* @__PURE__ */ c("img", { src: Y, width: "21", height: "21", alt: "img" }),
2836
+ /* @__PURE__ */ c("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "COSMOS" })
2837
+ ] })
2838
+ }
2839
+ ),
2840
+ p ? /* @__PURE__ */ c("p", { onClick: () => m(), className: " bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]", children: /* @__PURE__ */ c(
2841
+ "div",
2842
+ {
2843
+ style: {
2844
+ boxShadow: a && a.customTheme && ((L = (U = a.customTheme) == null ? void 0 : U.shadow) == null ? void 0 : L.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2845
+ },
2846
+ className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%] ",
2847
+ children: /* @__PURE__ */ c(Ee, { fill: "var(--tw-text-primary)" })
2848
+ }
2849
+ ) }) : /* @__PURE__ */ c(B, {})
2850
+ ]
2851
+ }
2852
+ ) : !window.keplr && o == "supported" ? /* @__PURE__ */ c(tt, { wallet: "keplr", chain: "cosmos" }) : /* @__PURE__ */ c(B, {});
2853
+ }
2854
+ let Ms = ["xverse", "phantom", "okx wallet", "bitget wallet"];
2855
+ const vs = ({ fromChain: r, toChain: n, connectWalletField: t, handleBitcoinConnecting: e, selectedWalletTab: i, handleShowWallet: o, section: a }) => {
2856
+ const { primaryWallet: s, handleLogOut: l, handleUnlinkWallet: u } = he(), g = Xe(), [h, m] = Z(0), [y, p] = Z(!1), [d, v] = Z(), { setShowAuthFlow: M, walletConnectorOptions: Y } = he(), { openWallet: D } = Ct(), I = A((x) => x.configuration), Q = A((x) => x.setToDisconnect), { handleBTCDisable: k, updateMostRecentWallet: T } = ke({});
2857
+ k(t);
2858
+ const P = Ae(), { selectWalletOption: W, walletOptions: U } = Ke(), L = _e(), { handleDisconnectDynamic: E } = Sn();
2859
+ te(() => {
2860
+ g && y && s !== null && p(!1);
2861
+ }, [g, s]);
2862
+ const { walleticon: G, phantom: w, bitcoin: F, xverse: ne, bitgetwallet: K, okxwallet: ue } = pe, X = {
2863
+ unisat: G,
2864
+ okx: G,
2865
+ xverse: G,
2866
+ leather: G,
2867
+ hiro: G,
2868
+ "magic eden": G,
2869
+ phantom: w,
2870
+ "rabby wallet": G,
2871
+ "bitget wallet": K,
2872
+ xverse: ne,
2873
+ "okx wallet": ue
2874
+ };
2875
+ te(() => {
2876
+ if (P.length) {
2877
+ let x = P.length ? P.filter((b) => b.chain == "BTC") : [], N = Ie.keyBy(x, (b) => `${b.connector.name}-BTC`);
2878
+ v(N);
2879
+ } else
2880
+ v();
2881
+ }, [P.length]);
2882
+ const de = (x) => {
2883
+ var N, b, J, V, H;
2884
+ (s == null ? void 0 : s.chain) === "BTC" && x.name == ((N = s == null ? void 0 : s.connector) == null ? void 0 : N.name) ? t == "to" && (Q(!1), o()) : ((b = d == null ? void 0 : d[`${x.name}-BTC`]) == null ? void 0 : b.chain) === "BTC" && (d != null && d[`${x.name}-BTC`]) ? (L((J = d == null ? void 0 : d[`${x.name}-BTC`]) == null ? void 0 : J.id), T(d == null ? void 0 : d[`${x.name}-BTC`]), o(), Q(!1)) : (D((V = x.key) == null ? void 0 : V.toLowerCase()), p(!0), e(!0, (H = x.name) == null ? void 0 : H.toLowerCase()));
2885
+ };
2886
+ return U != null && U.length ? /* @__PURE__ */ c(B, { children: U.filter((x, N) => {
2887
+ var J, V, H, q;
2888
+ let b = (s == null ? void 0 : s.chain) === "BTC" && x.name == ((J = s == null ? void 0 : s._connector) == null ? void 0 : J.name) || ((V = d == null ? void 0 : d[`${x == null ? void 0 : x.name}-BTC`]) == null ? void 0 : V.chain) === "BTC" && (d == null ? void 0 : d[`${x == null ? void 0 : x.name}-BTC`]);
2889
+ if (((H = x.chain) == null ? void 0 : H.toLowerCase()) === "btc" && Ms.includes((q = x.name) == null ? void 0 : q.toLowerCase())) {
2890
+ if (a == "connected" && b)
2891
+ return !0;
2892
+ if (a == "installed" && !b && x.isInstalledOnBrowser)
2893
+ return !0;
2894
+ if (a == "supported" && !x.isInstalledOnBrowser)
2895
+ return !0;
2896
+ }
2897
+ }).map((x, N) => {
2898
+ var J, V, H, q, ee, se, me, oe, ae, ce, le, ye, j;
2899
+ let b = (s == null ? void 0 : s.chain) === "BTC" && x.name == ((J = s == null ? void 0 : s._connector) == null ? void 0 : J.name) || ((V = d == null ? void 0 : d[`${x == null ? void 0 : x.name}-BTC`]) == null ? void 0 : V.chain) === "BTC" && (d == null ? void 0 : d[`${x == null ? void 0 : x.name}-BTC`]);
2900
+ return x.isInstalledOnBrowser || b && a !== "supported" ? /* @__PURE__ */ c(
2901
+ "div",
2902
+ {
2903
+ style: x.name == ((H = s == null ? void 0 : s._connector) == null ? void 0 : H.name) ? {
2904
+ ...I == null ? void 0 : I.gradientStyle
2905
+ } : {},
2906
+ className: `bw-w-[47%] bw-mb-4 bw-rounded-md bw-p-[1px] ${!I.gradientStyle && (s == null ? void 0 : s.chain) === "BTC" && x.name == ((q = s == null ? void 0 : s._connector) == null ? void 0 : q.name) ? ie.gradientbutton : I.gradientStyle && (s == null ? void 0 : s.chain) === "BTC" && x.name == ((ee = s == null ? void 0 : s._connector) == null ? void 0 : ee.name) ? "" : "bw-bg-border-primary"} `,
2907
+ children: /* @__PURE__ */ C("div", { className: ` bw-relative bw-flex bw-w-full bw-bg-background-container hover:bw-shadow-sm bw-font-medium hover:bw-font-bold hover:bw-text-text-primary bw-items-center bw-gap-x-3 bw-rounded-md bw-h-[56px] bw-px-3 bw-cursor-pointer ${(s == null ? void 0 : s.chain) === "BTC" && x.name == ((se = s == null ? void 0 : s._connector) == null ? void 0 : se.name) ? " bw-text-text-primary" : "bw-text-text-secondary"}`, onClick: () => de(x), children: [
2908
+ /* @__PURE__ */ c(
2909
+ "div",
2910
+ {
2911
+ style: (s == null ? void 0 : s.chain) === "BTC" && x.name == ((me = s == null ? void 0 : s._connector) == null ? void 0 : me.name) ? {
2912
+ ...I == null ? void 0 : I.gradientStyle
2913
+ } : {},
2914
+ className: ` bw-mb-4 bw-rounded-md bw-p-[1px] bw-absolute bw-right-2 bw-bottom-[-50%] ${!I.gradientStyle && (s == null ? void 0 : s.chain) === "BTC" && x.name == ((oe = s == null ? void 0 : s._connector) == null ? void 0 : oe.name) ? ie.gradientbutton : I.gradientStyle && (s == null ? void 0 : s.chain) === "BTC" && x.name == ((ae = s == null ? void 0 : s._connector) == null ? void 0 : ae.name) ? "" : "bw-bg-border-primary"} `,
2915
+ children: /* @__PURE__ */ C("div", { className: " bw-w-[71px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1 ", children: [
2916
+ /* @__PURE__ */ c("img", { src: F, width: "16", height: "16", alt: "btc" }),
2917
+ /* @__PURE__ */ c("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "BTC" })
2918
+ ] })
2919
+ }
2920
+ ),
2921
+ ((ce = d == null ? void 0 : d[`${x == null ? void 0 : x.name}-BTC`]) == null ? void 0 : ce.chain) === "BTC" && (d != null && d[`${x == null ? void 0 : x.name}-BTC`]) ? /* @__PURE__ */ c(
2922
+ "div",
2923
+ {
2924
+ onClick: async ($) => {
2925
+ var xe;
2926
+ $.stopPropagation(), P.length === 1 ? l() : E((xe = d == null ? void 0 : d[`${x == null ? void 0 : x.name}-BTC`]) == null ? void 0 : xe.id, "BTC");
2927
+ },
2928
+ className: " bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]",
2929
+ children: /* @__PURE__ */ c(
2930
+ "div",
2931
+ {
2932
+ style: {
2933
+ boxShadow: I && I.customTheme && ((ye = (le = I.customTheme) == null ? void 0 : le.shadow) == null ? void 0 : ye.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
2934
+ },
2935
+ className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%]",
2936
+ children: /* @__PURE__ */ c(Ee, { fill: "var(--tw-text-primary)" })
2937
+ }
2938
+ )
2939
+ }
2940
+ ) : /* @__PURE__ */ c(B, {}),
2941
+ /* @__PURE__ */ C("div", { className: "bw-w-max bw-relative", children: [
2942
+ /* @__PURE__ */ c("img", { src: X[(j = x.name) == null ? void 0 : j.toLowerCase()] || G, width: 32, height: 32, className: "bw-w-[32px] bw-h-[32px] bw-rounded-md", alt: "img" }),
2943
+ /* @__PURE__ */ c("img", { src: F, className: "bw-absolute bw-right-[-15%] bw-bottom-[-30%]", width: "16", height: "16", alt: "btc" })
2944
+ ] }),
2945
+ /* @__PURE__ */ c("p", { className: "bw-text-xs bw-w-max ", children: x.name })
2946
+ ] })
2947
+ },
2948
+ N
2949
+ ) : /* @__PURE__ */ c(tt, { wallet: x.name, chain: "bitcoin" }, N);
2950
+ }) }) : /* @__PURE__ */ c("div", { className: "bw-w-full bw-flex bw-justify-center bw-mt-2 bw-text-text-primary", children: /* @__PURE__ */ c(Je, { color: "inherit", size: 14 }) });
2951
+ };
2952
+ function Is({ handleTronConnection: r, connectWalletField: n, fromChain: t, toChain: e, handleShowWallet: i, selectedWalletTab: o, section: a }) {
2953
+ const { wallets: s, select: l, connected: u, address: g, connect: h, wallet: m, disconnect: y } = Te(), { handleTRONDisable: p } = ke({});
2954
+ p(n);
2955
+ const d = A((D) => D.configuration);
2956
+ A((D) => D.setToDisconnect);
2957
+ function v(D) {
2958
+ var I;
2959
+ try {
2960
+ m ? D.adapter.connect() : l(D.adapter.name);
2961
+ } catch {
2962
+ }
2963
+ r(!0, (I = D.adapter) == null ? void 0 : I.name);
2964
+ }
2965
+ const { tronLink: M } = pe, Y = {
2966
+ tronlink: M
2967
+ };
2968
+ return /* @__PURE__ */ c(B, { children: s.map((D, I) => {
2969
+ var P, W, U, L, E, G, w;
2970
+ const Q = ((P = D.adapter._readyState) == null ? void 0 : P.toLowerCase()) === "found", k = D.state === "Connected" && Q, T = D.adapter.name === ((W = m == null ? void 0 : m.adapter) == null ? void 0 : W.name);
2971
+ return a === "connected" && !k || a === "installed" && k ? null : a === "supported" && !Q ? /* @__PURE__ */ c(B, {}) : a === "supported" && Q ? /* @__PURE__ */ c(B, {}) : /* @__PURE__ */ c(
2972
+ "div",
2973
+ {
2974
+ style: k && T ? {
2975
+ ...d == null ? void 0 : d.gradientStyle
2976
+ } : {},
2977
+ className: `bw-w-[47%] bw-relative bw-mb-4 ${o === "Other" ? "" : " "} bw-rounded-md bw-p-[1px] ${!d.gradientStyle && k && T ? ie.gradientbutton : d.gradientStyle && k && T ? "" : "bw-bg-border-primary"} `,
2978
+ children: /* @__PURE__ */ C("div", { onClick: () => v(D), style: { cursor: "pointer" }, className: `bw-w-full bw-bg-background-container bw-font-medium hover:bw-font-bold hover:bw-text-text-primary hover:bw-shadow-sm bw-flex bw-gap-x-3 bw-px-3 bw-justify-start bw-items-center bw-h-[56px] bw-relative bw-rounded-md bw-cursor-pointer ${k && T ? " bw-text-text-primary" : "bw-text-text-secondary"}`, children: [
2979
+ /* @__PURE__ */ c(
2980
+ "div",
2981
+ {
2982
+ style: k && T && D.adapter.name === ((U = m == null ? void 0 : m.adapter) == null ? void 0 : U.name) ? {
2983
+ ...d == null ? void 0 : d.gradientStyle
2984
+ } : {},
2985
+ className: `bw-absolute bw-right-2 bw-bottom-[-50%] bw-mb-4 ${o === "Other" ? "" : " "} bw-rounded-md bw-p-[1px] ${!d.gradientStyle && k && T ? ie.gradientbutton : d.gradientStyle && k && T ? "" : "bw-bg-border-primary"} `,
2986
+ children: /* @__PURE__ */ C("div", { className: "bw-w-[71px] bw-h-[25px] bw-rounded-md bw-flex bw-bg-background-container bw-justify-center bw-items-center bw-gap-x-1", children: [
2987
+ /* @__PURE__ */ c("img", { src: "https://cdn-icons-png.flaticon.com/512/12114/12114250.png", width: 16, height: 16, className: "bw-w-[16px] bw-h-[16px] bw-rounded-md", alt: "img" }),
2988
+ /* @__PURE__ */ c("p", { className: "bw-text-xs bw-font-bold bw-text-text-primary", children: "TRON" })
2989
+ ] })
2990
+ }
2991
+ ),
2992
+ k ? /* @__PURE__ */ c(
2993
+ "div",
2994
+ {
2995
+ onClick: (F) => {
2996
+ F.stopPropagation(), D.adapter.disconnect();
2997
+ },
2998
+ className: "bw-cursor-pointer bw-absolute bw-right-[5px] bw-top-1 bw-text-[10px] bw-text-text-primary bw-z-40 bw-rounded-[50%]",
2999
+ children: /* @__PURE__ */ c(
3000
+ "div",
3001
+ {
3002
+ style: {
3003
+ boxShadow: d && d.customTheme && ((E = (L = d.customTheme) == null ? void 0 : L.shadow) == null ? void 0 : E.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.20)"
3004
+ },
3005
+ className: "bw-w-[25px] bw-h-[25px] bw-rounded-[50%]",
3006
+ children: /* @__PURE__ */ c(Ee, { fill: "var(--tw-text-primary)" })
3007
+ }
3008
+ )
3009
+ }
3010
+ ) : /* @__PURE__ */ c(B, {}),
3011
+ /* @__PURE__ */ c("div", { className: "bw-w-max bw-relative", children: Y[(w = (G = D == null ? void 0 : D.adapter) == null ? void 0 : G.name) == null ? void 0 : w.toLowerCase()] ? /* @__PURE__ */ c("img", { src: Y[D.adapter.name.toLowerCase()], width: 32, height: 32, className: "bw-w-[32px] bw-h-[32px] bw-rounded-md", alt: "img" }) : /* @__PURE__ */ c("div", { className: "bw-w-[32px] bw-h-[32px] bw-rounded-md bw-bg-background-secondary" }) }),
3012
+ /* @__PURE__ */ c("p", { className: "bw-text-xs bw-w-max", children: D.adapter.name })
3013
+ ] })
3014
+ },
3015
+ I
3016
+ );
3017
+ }) });
3018
+ }
3019
+ function ht({ selectedWalletTab: r, connectWalletField: n, handleShowWallet: t, handleConnect: e, setSelectedConnector: i, setSelectedWallet: o, setShowLoading: a, portfolio: s, fromChain: l, toChain: u, handleSolConnecting: g, handleCosmosConnection: h, handleSuiConnecting: m, handleBitcoinConnecting: y, setErrorMsg: p, section: d, handleTronConnection: v }) {
3020
+ const M = A((Y) => Y.isExternalProvider);
3021
+ return /* @__PURE__ */ C("div", { className: " bw-mx-auto bw-px-2 bw-w-full bw-flex bw-justify-between bw-flex-wrap ", children: [
3022
+ M.evm ? /* @__PURE__ */ c(B, {}) : /* @__PURE__ */ c(bs, { section: d, selectedWalletTab: r, styles: ie, connectWalletField: n, handleShowWallet: t, setSelectedConnector: i, setSelectedWallet: o, handleConnect: e, setShowLoading: a }),
3023
+ M.solana ? /* @__PURE__ */ c(B, {}) : r == "All" || r == "SVM" ? /* @__PURE__ */ c(ms, { section: d, handleShowWallet: t, fromChain: l, toChain: u, connectWalletField: n, handleSolConnecting: g, portfolio: s, selectedWalletTab: r }) : /* @__PURE__ */ c(B, {}),
3024
+ r == "All" || r == "Other" ? /* @__PURE__ */ c(vs, { section: d, handleShowWallet: t, fromChain: l, toChain: u, connectWalletField: n, handleBitcoinConnecting: y, portfolio: s, selectedWalletTab: r }) : /* @__PURE__ */ c(B, {}),
3025
+ r == "All" || r == "Cosmos" ? /* @__PURE__ */ c(xs, { selectedWalletTab: r, handleCosmosConnection: h, setErrorMsg: p, connectWalletField: n, handleShowWallet: t, section: d }) : /* @__PURE__ */ c(B, {}),
3026
+ r == "All" || r == "Other" ? /* @__PURE__ */ c(Is, { selectedWalletTab: r, handleTronConnection: v, setErrorMsg: p, connectWalletField: n, handleShowWallet: t, section: d }) : /* @__PURE__ */ c(B, {})
3027
+ ] });
3028
+ }
3029
+ function Ns({ selectedWalletTab: r }) {
3030
+ const { connector: n } = _t(), t = A.getState().isExternalProvider, { data: e, isConnected: i } = qe(), { primaryWallet: o } = he(), { walletOptions: a } = Ke(), [s, l] = Z(!1), [u, g] = Z(!1), [h, m] = Z(!1), y = n && !t.evm, p = (o == null ? void 0 : o.address) && !t.solana, d = A((k) => k.isEvmSupportAvailable), { connected: v } = Te(), M = Ae();
3031
+ function Y(k) {
3032
+ return M.some((T) => {
3033
+ var P;
3034
+ return ((P = T.chain) == null ? void 0 : P.toLowerCase()) === k;
3035
+ });
3036
+ }
3037
+ function D(k) {
3038
+ let T = Ie.keyBy(M, "key"), P = k === "sol" ? ["Solflare", "Phantom", "Slope", "Backpack", "Brave Browser (Solana)"] : ["Phantom", "Xverse"];
3039
+ return !!a.filter((L) => {
3040
+ var E;
3041
+ return P.includes(L.name) && ((E = L.chain) == null ? void 0 : E.toLowerCase()) === k;
3042
+ }).find((L) => L.isInstalledOnBrowser && !T[L.key]);
3043
+ }
3044
+ function I(k) {
3045
+ let T = Ie.keyBy(M, "key"), P = k === "sol" ? ["Solflare", "Phantom", "Slope", "Backpack", "Brave Browser (Solana)"] : ["Phantom", "Xverse"];
3046
+ return !!a.filter((L) => {
3047
+ var E;
3048
+ return P.includes(L.name) && ((E = L.chain) == null ? void 0 : E.toLowerCase()) === k;
3049
+ }).find((L) => !L.isInstalledOnBrowser && !T[L.key]);
3050
+ }
3051
+ function Q(k) {
3052
+ switch (k) {
3053
+ case "All":
3054
+ l(y || p || i || v), g(!t.evm || !i && window.keplr || D("sol") && !(t != null && t.solana) || D("btc") && !(t != null && t.solana)), m(!window.keplr || d && !t.evm || I("sol") && !(t != null && t.solana) || I("btc") && !(t != null && t.solana));
3055
+ break;
3056
+ case "EVM":
3057
+ l(y), g(!t.evm);
3058
+ break;
3059
+ case "SVM":
3060
+ l(Y("sol") && !t.solana), g(D("sol") && !t.solana), m(I("sol") && !(t != null && t.solana));
3061
+ break;
3062
+ case "Cosmos":
3063
+ l(i), g(!i && window.keplr), m(!i && !window.keplr);
3064
+ break;
3065
+ default:
3066
+ l(Y("btc") && !t.solana || v), g(
3067
+ D("btc") && !t.solana
3068
+ // || !isTronConnected
3069
+ ), m(I("btc") && !(t != null && t.solana));
3070
+ break;
3071
+ }
3072
+ }
3073
+ return te(() => {
3074
+ Q(r);
3075
+ }, [r, n, o == null ? void 0 : o.address, t, v, i, M, a]), { isWalletConnectedIndicator: s, isWalletInstalledIndicator: u, isSupportedIndicator: h };
3076
+ }
3077
+ function Cs({ handleShowWallet: r, connectWalletField: n, portfolio: t, classNames: e, handleRecentSelectedWallet: i }) {
3078
+ const o = qt(), { connectAsync: a, data: s, isSuccess: l } = Xt({
3079
+ config: o
3080
+ }), u = A((j) => j.fromChain), g = A((j) => j.toChain), { primaryWallet: h } = he(), m = Xe(), [y, p] = Z(""), [d, v] = Z(!0), [M, Y] = Z(), [D, I] = Z(!1), [Q, k] = Z(!1), [T, P] = Z(!1), [W, U] = Z(!1), [L, E] = Z(!1), [G, w] = Z(""), { connected: F, address: ne } = Te(), [K, ue] = Z("All"), { data: X, isConnected: de } = qe(), { switchAccountAsync: x } = Kt(), N = A((j) => j.configuration);
3081
+ Ae();
3082
+ const { walletOptions: b } = Ke();
3083
+ A((j) => j.isEvmSupportAvailable);
3084
+ const { connected: J } = Te(), { isWalletConnectedIndicator: V, isWalletInstalledIndicator: H, isSupportedIndicator: q } = Ns({ selectedWalletTab: K });
3085
+ async function ee(j, $) {
3086
+ w("");
3087
+ let xe = $ ? x : a;
3088
+ try {
3089
+ let fe = await xe({ connector: j });
3090
+ $ && r(), w((Ne) => (Ne != null && Ne.length && fe && r(), ""));
3091
+ } catch (fe) {
3092
+ w(fe.details || fe.message || "");
3093
+ }
3094
+ }
3095
+ te(() => {
3096
+ let j;
3097
+ return s && l && (j = setTimeout(() => {
3098
+ r();
3099
+ }, 1e3), !t && i("evm")), () => {
3100
+ clearTimeout(j);
3101
+ };
3102
+ }, [l, s]);
3103
+ function se(j, $) {
3104
+ w(""), $ && p($), I(j), v(!1);
3105
+ }
3106
+ function me() {
3107
+ v(!0), I(!1), k(!1), U(!1), E(!1);
3108
+ }
3109
+ function oe(j, $) {
3110
+ w(""), $ && p($), k(j), v(!1);
3111
+ }
3112
+ function ae(j, $) {
3113
+ w(""), $ && p($), P(j), v(!1);
3114
+ }
3115
+ function ce(j, $) {
3116
+ w(""), $ && p($), U(j), v(!1);
3117
+ }
3118
+ function le(j, $) {
3119
+ w(""), $ && p($), E(j), v(!1);
3120
+ }
3121
+ te(() => {
3122
+ let j;
3123
+ return m && h !== null && D && (j = setTimeout(() => {
3124
+ r(), se(!1);
3125
+ }, 1e3), !t && i("sol")), () => {
3126
+ clearTimeout(j);
3127
+ };
3128
+ }, [m, h, D]), te(() => {
3129
+ let j;
3130
+ return F && ne && Q && (j = setTimeout(() => {
3131
+ r(), oe(!1);
3132
+ }, 1e3), !t && i("tron")), () => {
3133
+ clearTimeout(j);
3134
+ };
3135
+ }, [F, ne, Q]), te(() => {
3136
+ let j;
3137
+ return de && (X != null && X.bech32Address) && T && (j = setTimeout(() => {
3138
+ r(), ae(!1);
3139
+ }, 1e3), !t && i("cosmos")), () => {
3140
+ clearTimeout(j);
3141
+ };
3142
+ }, [de, X == null ? void 0 : X.bech32Address, T]), te(() => {
3143
+ let j;
3144
+ return m && h !== null && W && (j = setTimeout(() => {
3145
+ r(), ce(!1);
3146
+ }, 1e3), !t && i("sui")), () => {
3147
+ clearTimeout(j);
3148
+ };
3149
+ }, [m, h, W]), te(() => {
3150
+ let j;
3151
+ return m && h !== null && L && (j = setTimeout(() => {
3152
+ r(), le(!1);
3153
+ }, 1e3), !t && i("btc")), () => {
3154
+ clearTimeout(j);
3155
+ };
3156
+ }, [m, h, L]);
3157
+ function ye(j) {
3158
+ ue(j);
3159
+ }
3160
+ return d ? /* @__PURE__ */ C("div", { className: "", children: [
3161
+ /* @__PURE__ */ C("div", { className: "bw-flex bw-relative bw-justify-center bw-mb-2", children: [
3162
+ /* @__PURE__ */ c("button", { onClick: r, className: "bw-absolute bw-left-0 bw-top-[25%]", children: /* @__PURE__ */ c(tn, { fill: "var(--tw-text-secondary)" }) }),
3163
+ /* @__PURE__ */ c("div", { className: "bw-text-lg bw-font-medium bw-text-text-secondary", children: "Connect Wallet" }),
3164
+ /* @__PURE__ */ c("button", { onClick: r, className: "bw-absolute bw-right-0 bw-top-[25%]", children: /* @__PURE__ */ c(nn, { fill: "var(--tw-text-secondary)" }) })
3165
+ ] }),
3166
+ /* @__PURE__ */ c(fs, { selectedWalletTab: K, handleWalletTab: ye }),
3167
+ /* @__PURE__ */ C("div", { className: `${e || "bw-h-[400px] "} bw-w-full bw-relative bw-overflow-y-auto`, children: [
3168
+ /* @__PURE__ */ C("div", { children: [
3169
+ V ? /* @__PURE__ */ C("div", { className: "bw-flex bw-items-center bw-gap-x-2 bw-justify-between bw-w-full bw-my-3", children: [
3170
+ /* @__PURE__ */ C("p", { style: { ...N == null ? void 0 : N.gradientStyle }, className: ` bw-bg-clip-text bw-flex bw-items-center bw-gap-x-1 bw-text-sm bw-font-medium bw-text-transparent ${N != null && N.gradientStyle ? "" : ie.gradientbutton} `, children: [
3171
+ /* @__PURE__ */ c("div", { style: { ...N == null ? void 0 : N.gradientStyle }, className: `bw-w-[10px] bw-rounded-[50%] ${N != null && N.gradientStyle ? "" : ie.gradientbutton} bw-bg-text-greentext bw-h-[10px]` }),
3172
+ " Connected"
3173
+ ] }),
3174
+ /* @__PURE__ */ c("div", { className: "bw-h-[1px] bw-mr-2 bw-w-full bw-bg-border-primary" })
3175
+ ] }) : /* @__PURE__ */ c(B, {}),
3176
+ /* @__PURE__ */ c(
3177
+ ht,
3178
+ {
3179
+ selectedWalletTab: K,
3180
+ connectWalletField: n,
3181
+ handleShowWallet: r,
3182
+ handleConnect: ee,
3183
+ setSelectedConnector: Y,
3184
+ setErrorMsg: w,
3185
+ setSelectedWallet: p,
3186
+ setShowLoading: v,
3187
+ portfolio: t,
3188
+ fromChain: u,
3189
+ toChain: g,
3190
+ handleSolConnecting: se,
3191
+ handleCosmosConnection: ae,
3192
+ handleTronConnection: oe,
3193
+ handleSuiConnecting: ce,
3194
+ handleBitcoinConnecting: le,
3195
+ section: "connected"
3196
+ }
3197
+ )
3198
+ ] }),
3199
+ /* @__PURE__ */ C("div", { children: [
3200
+ H ? /* @__PURE__ */ C("div", { className: "bw-flex bw-items-center bw-gap-x-2 bw-justify-between bw-w-full bw-my-3", children: [
3201
+ /* @__PURE__ */ c("p", { className: "bw-text-sm bw-font-medium bw-w-max bw-text-text-secondary ", children: "Installed" }),
3202
+ /* @__PURE__ */ c("div", { className: "bw-h-[1px] bw-mr-2 bw-w-full bw-bg-border-primary" })
3203
+ ] }) : /* @__PURE__ */ c(B, {}),
3204
+ /* @__PURE__ */ c(
3205
+ ht,
3206
+ {
3207
+ selectedWalletTab: K,
3208
+ connectWalletField: n,
3209
+ handleShowWallet: r,
3210
+ handleConnect: ee,
3211
+ setSelectedConnector: Y,
3212
+ setErrorMsg: w,
3213
+ setSelectedWallet: p,
3214
+ setShowLoading: v,
3215
+ portfolio: t,
3216
+ fromChain: u,
3217
+ toChain: g,
3218
+ handleSolConnecting: se,
3219
+ handleCosmosConnection: ae,
3220
+ handleTronConnection: oe,
3221
+ handleSuiConnecting: ce,
3222
+ handleBitcoinConnecting: le,
3223
+ section: "installed"
3224
+ }
3225
+ )
3226
+ ] }),
3227
+ /* @__PURE__ */ C("div", { children: [
3228
+ q ? /* @__PURE__ */ C("div", { className: "bw-flex bw-items-center bw-gap-x-2 bw-justify-between bw-w-full bw-my-3", children: [
3229
+ /* @__PURE__ */ c("p", { className: "bw-text-sm bw-font-medium bw-w-max bw-text-text-secondary ", children: "Supported" }),
3230
+ /* @__PURE__ */ c("div", { className: "bw-h-[1px] bw-mr-2 bw-w-full bw-bg-border-primary" })
3231
+ ] }) : /* @__PURE__ */ c(B, {}),
3232
+ /* @__PURE__ */ c(
3233
+ ht,
3234
+ {
3235
+ selectedWalletTab: K,
3236
+ connectWalletField: n,
3237
+ handleShowWallet: r,
3238
+ handleConnect: ee,
3239
+ setSelectedConnector: Y,
3240
+ setErrorMsg: w,
3241
+ setSelectedWallet: p,
3242
+ setShowLoading: v,
3243
+ portfolio: t,
3244
+ fromChain: u,
3245
+ toChain: g,
3246
+ handleSolConnecting: se,
3247
+ handleCosmosConnection: ae,
3248
+ handleTronConnection: oe,
3249
+ handleSuiConnecting: ce,
3250
+ handleBitcoinConnecting: le,
3251
+ section: "supported"
3252
+ }
3253
+ )
3254
+ ] })
3255
+ ] }),
3256
+ n == "to" ? /* @__PURE__ */ c(hs, { portfolio: t, handleShowWallet: r, section: "connected" }) : /* @__PURE__ */ c(B, {})
3257
+ ] }) : /* @__PURE__ */ c(us, { selectedWallet: y, selectedConnector: M, handleConnect: ee, handleOtherWalletConnecting: me, isSolConnecting: D, isTronConnecting: Q, isCosmosonnecting: T, isSuiConnecting: W, isBitcoinConnecting: L, isSuccess: l, data: s, evmError: G });
3258
+ }
3259
+ const Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3260
+ __proto__: null,
3261
+ default: Cs
3262
+ }, Symbol.toStringTag, { value: "Module" }));
3263
+ export {
3264
+ Cs as S,
3265
+ cn as T,
3266
+ Gs as i
3267
+ };