@abtnode/blocklet-services 1.17.8-beta-20260121-102603-f9d0176f → 1.17.8-beta-20260125-093329-64b43854

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 (247) hide show
  1. package/api/index.js +5 -0
  2. package/api/libs/connect/session.js +33 -39
  3. package/api/middlewares/launcher-login.js +1 -2
  4. package/api/routes/federated.js +1 -2
  5. package/api/routes/oauth/server.js +1 -2
  6. package/api/routes/user-session.js +0 -2
  7. package/api/routes/user.js +61 -41
  8. package/api/services/auth/connect/destroy-self.js +0 -2
  9. package/api/services/auth/connect/invite.js +0 -2
  10. package/api/services/auth/connect/issue-passport.js +0 -2
  11. package/api/services/auth/connect/receive-transfer-app-owner.js +0 -2
  12. package/api/services/auth/connect/verify-destroy.js +0 -2
  13. package/api/services/auth/connect/verify-elevated.js +0 -2
  14. package/api/services/auth/session.js +1 -36
  15. package/api/util/user-util.js +1 -2
  16. package/dist/assets/{AdapterDayjs-QqQc9YbA.js → AdapterDayjs-B5owpIH3.js} +1 -1
  17. package/dist/assets/{Google-PffSpBc2.js → Google-efeywUOs.js} +1 -1
  18. package/dist/assets/{access-control-B6JglGtO.js → access-control-BzsCJj-F.js} +1 -1
  19. package/dist/assets/{actions-DydkTgA0.js → actions-DbuL4r3Z.js} +1 -1
  20. package/dist/assets/{actions-Do5Z9cxZ.js → actions-Dm98-Dap.js} +2 -2
  21. package/dist/assets/{add-component-core-CLOpD7CB.js → add-component-core-BKVGCdxY.js} +7 -7
  22. package/dist/assets/add-resource-Cxa0mbrd.js +1 -0
  23. package/dist/assets/{addon-CrVdMlFe.js → addon-B1KwZDQ5.js} +1 -1
  24. package/dist/assets/advanced-B62UUhxe.js +14 -0
  25. package/dist/assets/{aigne-CeD5Xo7t.js → aigne-jjaGOQQ7.js} +1 -1
  26. package/dist/assets/{appearance-BJuIABu8.js → appearance-_ZB7EroL.js} +1 -1
  27. package/dist/assets/{ar-xXK-6slW.js → ar-BJmSv7rn.js} +1 -1
  28. package/dist/assets/{audit-logs-DxVzMUJK.js → audit-logs-DF2wcdWX.js} +2 -2
  29. package/dist/assets/{authorize-BxQgoA5F.js → authorize-C6nOsMWm.js} +1 -1
  30. package/dist/assets/{base-chart-CQOyckBN.js → base-chart-D_u2nVGm.js} +1 -1
  31. package/dist/assets/{base32-CyUpiYTu.js → base32-D79Y2AcQ.js} +1 -1
  32. package/dist/assets/{bind-account-D5gBazop.js → bind-account-BIj9FA7d.js} +1 -1
  33. package/dist/assets/{branding-CDPvtKJm.js → branding-BEGHWROe.js} +1 -1
  34. package/dist/assets/{branding-CtbvPvdK.js → branding-C86_64it.js} +1 -1
  35. package/dist/assets/branding-Dqv4_zpD.js +1 -0
  36. package/dist/assets/{bundle-avatar-2ugE80w1.js → bundle-avatar-Cy8tSSSQ.js} +1 -1
  37. package/dist/assets/button-DMYwcDVh.js +1 -0
  38. package/dist/assets/{click-to-copy-CgakrWoh.js → click-to-copy-BCjXD9Nd.js} +1 -1
  39. package/dist/assets/{collapse-RMuUWnK3.js → collapse-CBrasNzu.js} +1 -1
  40. package/dist/assets/{complete-B_lyTPVv.js → complete-CCe1VfI6.js} +1 -1
  41. package/dist/assets/{component-pjnMydek.js → component-DLlaIYmq.js} +2 -2
  42. package/dist/assets/{config-CyDF6KG9.js → config-BccEmD3I.js} +2 -2
  43. package/dist/assets/{config-BcCR6bUQ.js → config-C0CmuuRP.js} +1 -1
  44. package/dist/assets/{config-BsWCoWa6.js → config-CsQBU86s.js} +1 -1
  45. package/dist/assets/{config-navigation-B36NPLt0.js → config-navigation-D46rq0IX.js} +2 -2
  46. package/dist/assets/{config-space-DUkjNtdL.js → config-space-DLjHQVCq.js} +1 -1
  47. package/dist/assets/{confirm-CoDiNrSj.js → confirm-ClxC2cDv.js} +1 -1
  48. package/dist/assets/{connect-ULEL84iL.js → connect-9CgvkPOq.js} +1 -1
  49. package/dist/assets/{connect-SOuN9k8I.js → connect-C1q4hvQ3.js} +1 -1
  50. package/dist/assets/connect-DXjJ46DL.js +5 -0
  51. package/dist/assets/{connect-to-DnBUF-KE.js → connect-to-CbgQNAwh.js} +1 -1
  52. package/dist/assets/{content-layout-Dlmn5DW6.js → content-layout-BH_g_OCf.js} +1 -1
  53. package/dist/assets/{create-passport-svg-BSRyjG0k.js → create-passport-svg-Ct68e5tm.js} +1 -1
  54. package/dist/assets/{createClass-DKvdNmc_.js → createClass-CeMEAEuP.js} +1 -1
  55. package/dist/assets/{dashboard-CkDdshHQ.js → dashboard-y1fk-IQM.js} +2 -2
  56. package/dist/assets/{de-CzlQlDUl.js → de-B2IoQCYX.js} +1 -1
  57. package/dist/assets/{delete-confirm-Cq9MJasT.js → delete-confirm-CxRbnJU_.js} +1 -1
  58. package/dist/assets/{did-address-CtvTDc_I.js → did-address-BhAIkFPZ.js} +1 -1
  59. package/dist/assets/{domain-BOIdkJ_V.js → domain-CMJp7emz.js} +1 -1
  60. package/dist/assets/{domain-action-card-DuiLZ6sE.js → domain-action-card-CKlATj2V.js} +2 -2
  61. package/dist/assets/domains-CQs-XM9-.js +1 -0
  62. package/dist/assets/{email-DN8lH7fV.js → email-CYR31d5d.js} +2 -2
  63. package/dist/assets/{empty-spinner-DB1GKIOS.js → empty-spinner-DzVQ0tC1.js} +1 -1
  64. package/dist/assets/engine-ByRLynLu.js +1 -0
  65. package/dist/assets/{es-BpsyeJfJ.js → es-nlHqTKrO.js} +1 -1
  66. package/dist/assets/{exchange-passport-BvS_8Ud6.js → exchange-passport-BAD6oRbd.js} +1 -1
  67. package/dist/assets/{fallback-CuXkR699.js → fallback-CJFJeDKq.js} +1 -1
  68. package/dist/assets/{form-text-input-BT3t62-a.js → form-text-input-Dq_8KU_Y.js} +2 -2
  69. package/dist/assets/{form-wrapper-kWYD3nZz.js → form-wrapper-YOmD-sDI.js} +1 -1
  70. package/dist/assets/{form-CZjONW3r.js → form-zHvITlPG.js} +1 -1
  71. package/dist/assets/{fr-BawgvFA1.js → fr-LrrW00cI.js} +1 -1
  72. package/dist/assets/{fuel-dijAR437.js → fuel-CU-CpANh.js} +1 -1
  73. package/dist/assets/{gen-access-key-DaJCt-T5.js → gen-access-key-Fb9M1v-f.js} +1 -1
  74. package/dist/assets/{gen-simple-access-key-DLZy8UKi.js → gen-simple-access-key-BgYT9wM-.js} +1 -1
  75. package/dist/assets/get-safe-url-CCXmZ6Ty.js +1 -0
  76. package/dist/assets/hi-DxZE2HUh.js +5 -0
  77. package/dist/assets/{home-ChU7yi5l.js → home-Cy8jLKNF.js} +1 -1
  78. package/dist/assets/{id-_HQ0of3E.js → id-C3U8Kyb0.js} +1 -1
  79. package/dist/assets/{iframe-CYVXxx1r.js → iframe-CZ9tjsFz.js} +1 -1
  80. package/dist/assets/{index-C3UXSk-k.js → index-B-yh2KQb.js} +1 -1
  81. package/dist/assets/{index-DKeuwD_Y.js → index-B2LgdSh1.js} +15 -15
  82. package/dist/assets/{index-DswHt4-F.js → index-BJ69cdwn.js} +2 -2
  83. package/dist/assets/index-BJCzMYyG.js +832 -0
  84. package/dist/assets/{index-DF1j89BT.js → index-BZxTtTlP.js} +1 -1
  85. package/dist/assets/{index-Boc2cNQ7.js → index-Bg0Lw3eZ.js} +7 -7
  86. package/dist/assets/{index-D8oCzSQW.js → index-Bij9abGY.js} +2 -2
  87. package/dist/assets/{index-CD7hq5dy.js → index-BkgA3JrZ.js} +2 -2
  88. package/dist/assets/{index-Ci7zZ36D.js → index-BqISx1lI.js} +1 -1
  89. package/dist/assets/index-BsIQdVmB.js +29 -0
  90. package/dist/assets/{index-D7Er4cge.js → index-BtHiIOEI.js} +1 -1
  91. package/dist/assets/index-BtxDkXoY.js +7 -0
  92. package/dist/assets/{index-Dvc-Bpkc.js → index-CKgbiYHC.js} +2 -2
  93. package/dist/assets/{index-NHiSMvgy.js → index-CQz-yW1Q.js} +4 -4
  94. package/dist/assets/{index-Cax1AxL9.js → index-CSdd2W7t.js} +1 -1
  95. package/dist/assets/{index-CVuESID5.js → index-CYam9iu7.js} +3 -3
  96. package/dist/assets/{index-s8xAfo-W.js → index-CZc0agHR.js} +1 -1
  97. package/dist/assets/index-Cb9H09Dz.js +1 -0
  98. package/dist/assets/{index-B5VPb4FA.js → index-CtCzpHpi.js} +1 -1
  99. package/dist/assets/{index-iOa1BVMr.js → index-D0VFBmtN.js} +5 -5
  100. package/dist/assets/{index-CNlJloMN.js → index-D1HHdOwz.js} +2 -2
  101. package/dist/assets/{index-B9FojAjj.js → index-DDpk_EEp.js} +1 -1
  102. package/dist/assets/{index-B4A3W4qJ.js → index-DPbBn0Vu.js} +1 -1
  103. package/dist/assets/{index-C2O2gJSR.js → index-DbbtJMIS.js} +1 -1
  104. package/dist/assets/index-DgwyiIiW.js +1 -0
  105. package/dist/assets/{index-BVTsYhIX.js → index-Dh38UJiv.js} +1 -1
  106. package/dist/assets/{index-Zxy2t-7f.js → index-DvtkahBB.js} +1 -1
  107. package/dist/assets/{index-BDSBuO5S.js → index-Dw9kO-TK.js} +2 -2
  108. package/dist/assets/{index-Dn9eNAe6.js → index-E0k6Os1B.js} +1 -1
  109. package/dist/assets/{index-5Sys1Zsb.js → index-L6md5GCk.js} +2 -2
  110. package/dist/assets/{index-5RRpshJe.js → index-VTJ4vv2F.js} +7 -7
  111. package/dist/assets/{index-CZ-qZTKi.js → index-WY8_4PO1.js} +1 -1
  112. package/dist/assets/{index-uUS1eXYF.js → index-lGLHoHAP.js} +1 -1
  113. package/dist/assets/{index-WzGP4BGm.js → index-rh1DYsh2.js} +3 -3
  114. package/dist/assets/{index-B9YNNXOw.js → index-u8Hqob_G.js} +1 -1
  115. package/dist/assets/{index-C6vJzTmT.js → index-vQWAt26Z.js} +2 -2
  116. package/dist/assets/{info-outline-rounded-DovRYvXo.js → info-outline-rounded-CTki6xsp.js} +1 -1
  117. package/dist/assets/{invitation-DAWt0g1f.js → invitation-CrLJgh5y.js} +6 -6
  118. package/dist/assets/{invitations-B18y415k.js → invitations-Cs7LYbh9.js} +1 -1
  119. package/dist/assets/invite-B0wKu-K4.js +1 -0
  120. package/dist/assets/{issue-passport-Dd43b9Se.js → issue-passport-B1azomgq.js} +1 -1
  121. package/dist/assets/item-CcfCB60B.js +1 -0
  122. package/dist/assets/{ja-LErFaY57.js → ja-Cv-fddix.js} +1 -1
  123. package/dist/assets/{ko-D4ub28je.js → ko-Cy3G6t2o.js} +1 -1
  124. package/dist/assets/{landing-page-CZoTtLnc.js → landing-page-3yvA3dHp.js} +1 -1
  125. package/dist/assets/{launch-result-message-DJqF-slD.js → launch-result-message-CYcW9uFA.js} +1 -1
  126. package/dist/assets/{layout-U4Obhm5w.js → layout-DPEeowZp.js} +1 -1
  127. package/dist/assets/{list-D-9AeBju.js → list-BtmehYr0.js} +2 -2
  128. package/dist/assets/{list-header-BEZSwSji.js → list-header-DqG9VFur.js} +1 -1
  129. package/dist/assets/{list-BD3g0v2E.js → list-qef9ITY3.js} +1 -1
  130. package/dist/assets/localization-VGnaiTRr.js +1 -0
  131. package/dist/assets/{log-BWxaKOTA.js → log-BDLuou50.js} +1 -1
  132. package/dist/assets/logger-Cn2_Ur4V.js +1 -0
  133. package/dist/assets/{login-BWZaWrBW.js → login-BTzBeYdR.js} +1 -1
  134. package/dist/assets/{login-method-item-aEisznLn.js → login-method-item-T1v3TnPG.js} +1 -1
  135. package/dist/assets/{login-oauth-callback-CB-osgdG.js → login-oauth-callback-f1uXdv_Y.js} +1 -1
  136. package/dist/assets/{logo-uploader-DOPycN59.js → logo-uploader-YNwnzUQw.js} +1 -1
  137. package/dist/assets/{lost-passport-H1fCptmJ.js → lost-passport-Cv4fSebj.js} +2 -2
  138. package/dist/assets/metadata-BeJTujvj.js +55 -0
  139. package/dist/assets/{nav-menu-D7Sf6VZj.js → nav-menu-CefEor9d.js} +1 -1
  140. package/dist/assets/{open-window-By98Pw1o.js → open-window-Cq_Eb4d0.js} +1 -1
  141. package/dist/assets/over-due-invoice-payment-Cx9nVkCY.js +1 -0
  142. package/dist/assets/{overview-DEkktSML.js → overview-UWHPi3tV.js} +2 -2
  143. package/dist/assets/{page-header-qdK3sAJh.js → page-header-DayahqMa.js} +1 -1
  144. package/dist/assets/passport-D7GEY4wO.js +1 -0
  145. package/dist/assets/{passport-item-CIv8Q8Ng.js → passport-item-CpICtT-w.js} +1 -1
  146. package/dist/assets/{permission-B22pCnUb.js → permission-ozcooui7.js} +1 -1
  147. package/dist/assets/preferences-RHaCYv9t.js +1 -0
  148. package/dist/assets/profile-embed-BLPUgZl6.js +1 -0
  149. package/dist/assets/{provider-icon-DbnLu_85.js → provider-icon-Blmpf_9p.js} +1 -1
  150. package/dist/assets/pt-CLIZ5rGV.js +5 -0
  151. package/dist/assets/publish-resource-Cn5CEQma.js +1 -0
  152. package/dist/assets/{react-beautiful-dnd.esm-D7zp9L4b.js → react-beautiful-dnd.esm-L71UpeRK.js} +1 -1
  153. package/dist/assets/{react-stripe.esm-B-FTN8ep.js → react-stripe.esm-B1zA7yon.js} +1 -1
  154. package/dist/assets/{required-DnQpCGsD.js → required-jUJP5eu8.js} +1 -1
  155. package/dist/assets/ru-DoXNa8xl.js +5 -0
  156. package/dist/assets/{runtime-MjoLSEeg.js → runtime-CGShJ0Po.js} +1 -1
  157. package/dist/assets/sdk-C05lZFmW.js +1 -0
  158. package/dist/assets/{section-CZylgxjz.js → section-BHNJgwmP.js} +1 -1
  159. package/dist/assets/{security-BtD9TnGk.js → security-_Iru3mSY.js} +1 -1
  160. package/dist/assets/{session-UEzmH-IS.js → session-DpYXqKUu.js} +1 -1
  161. package/dist/assets/{setup-Bts0WUxD.js → setup-DCnaHhf3.js} +1 -1
  162. package/dist/assets/{shorten-label-CuBHsWUR.js → shorten-label-NmLkBKIj.js} +1 -1
  163. package/dist/assets/{simple-select-C6gRUbia.js → simple-select--uh08-vW.js} +1 -1
  164. package/dist/assets/{spaces-DtMVp8Fn.js → spaces-gCrHfJB8.js} +1 -1
  165. package/dist/assets/{start-Dabk9waT.js → start-S0ZFYLEE.js} +1 -1
  166. package/dist/assets/{starting-progress-Ds2lnMge.js → starting-progress-BSgBADJS.js} +1 -1
  167. package/dist/assets/{status-CicPnfGJ.js → status-DqZ0B8Xa.js} +1 -1
  168. package/dist/assets/{step-actions-CnJCnymc.js → step-actions-DxJMBPwi.js} +1 -1
  169. package/dist/assets/{studio-D7qZJqJ7.js → studio-B2SgpXxn.js} +1 -1
  170. package/dist/assets/{switch-qh9YpwMi.js → switch-D9wb-oPu.js} +1 -1
  171. package/dist/assets/{switch-control-C5gj6NIz.js → switch-control-Dl1BCyFd.js} +1 -1
  172. package/dist/assets/{table-tips-BSl1oNMX.js → table-tips-C5NrUDu8.js} +1 -1
  173. package/dist/assets/{team-Djzt5BWc.js → team-DXPe7dCA.js} +1 -1
  174. package/dist/assets/th-DmzEcJam.js +5 -0
  175. package/dist/assets/theme-mode-toggle-BYQvzsDR.js +1 -0
  176. package/dist/assets/{traffic-BtuX1qMz.js → traffic-BandB_6R.js} +1 -1
  177. package/dist/assets/{transfer-UdrQjD9F.js → transfer-Dky9H1bl.js} +1 -1
  178. package/dist/assets/{unsubscribe-Bj2S8OkH.js → unsubscribe-D0la_6Ib.js} +1 -1
  179. package/dist/assets/{use-app-logo-DyU2iSXF.js → use-app-logo-0G6x82Xn.js} +1 -1
  180. package/dist/assets/{use-blocklet-logo-ys-h-CV_.js → use-blocklet-logo-IV_8xnB2.js} +1 -1
  181. package/dist/assets/{use-mobile-DFkQ5N0b.js → use-mobile-CEr7zhO3.js} +1 -1
  182. package/dist/assets/{use-mobile-DwGMuJlg.js → use-mobile-DAngW3li.js} +1 -1
  183. package/dist/assets/{use-mobile-CyUZDIaX.js → use-mobile-kXWiSSQD.js} +1 -1
  184. package/dist/assets/{use-server-logo-KZn9RrZd.js → use-server-logo-BVKQ1t0s.js} +1 -1
  185. package/dist/assets/{use-window-close-CT9brY7I.js → use-window-close-C-WcChaL.js} +1 -1
  186. package/dist/assets/{useAsync-WuOY1bFS.js → useAsync-DRrTtbU_.js} +1 -1
  187. package/dist/assets/{useAsync-DbIyJl2v.js → useAsync-D_y3bEgl.js} +1 -1
  188. package/dist/assets/{useAsyncRetry-cAGDIsw4.js → useAsyncRetry-BZ4R17gr.js} +2 -2
  189. package/dist/assets/useLocalStorage-C5E7FrUa.js +1 -0
  190. package/dist/assets/{user-center-DLgnUI1s.js → user-center-D-UOqGpV.js} +5 -5
  191. package/dist/assets/{user-follower-BbQfOSyh.js → user-follower-_9B1O2CU.js} +4 -4
  192. package/dist/assets/{util-tg9hB6_c.js → util-Bf1lWzn8.js} +1 -1
  193. package/dist/assets/{util-BCpVIbwL.js → util-Dn9RqFJI.js} +1 -1
  194. package/dist/assets/utils-eOkzHJzR.js +1 -0
  195. package/dist/assets/{vendor-arcblock-Xw2zMy0D.js → vendor-arcblock-B6JCofz3.js} +1 -1
  196. package/dist/assets/vendor-hooks-Bt9Vv36g.js +1 -0
  197. package/dist/assets/{vendor-mui-core-CV-FnYH_.js → vendor-mui-core-D6nniiQs.js} +2 -2
  198. package/dist/assets/{vendor-mui-x-DwN6dcQH.js → vendor-mui-x-Ds-5Y7YM.js} +1 -1
  199. package/dist/assets/{vendor-ux-BGqHwkOM.js → vendor-ux-hzekFYg2.js} +123 -123
  200. package/dist/assets/vi-6MG7Pp6O.js +5 -0
  201. package/dist/assets/{wait-connect-BED_xYYA.js → wait-connect-DmtX5SsS.js} +1 -1
  202. package/dist/assets/wallet-hidden-topbar-OBN14KiV.js +68 -0
  203. package/dist/assets/{wizard-C6DvqdjM.js → wizard-Q2Vm8Y9G.js} +1 -1
  204. package/dist/assets/{wizard-components-1u7l8zuE.js → wizard-components-CON7Dump.js} +1 -1
  205. package/dist/assets/wrap-locale-BGMozDAq.js +1 -0
  206. package/dist/assets/{zh-DK-_Edsp.js → zh-B9y8LJ3-.js} +1 -1
  207. package/dist/assets/zh-Dfkd9CXx.js +1 -0
  208. package/dist/assets/{zh-tw-Us2SjBNr.js → zh-tw-CbtwifV_.js} +1 -1
  209. package/dist/index.html +1 -1
  210. package/package.json +44 -44
  211. package/dist/assets/add-resource-ipDE-D6W.js +0 -1
  212. package/dist/assets/advanced-C3qjZMWH.js +0 -14
  213. package/dist/assets/branding-Dv3-0Q39.js +0 -1
  214. package/dist/assets/button-d8gvZuHP.js +0 -1
  215. package/dist/assets/connect--GxmDNr3.js +0 -5
  216. package/dist/assets/domains-C5GLc_A-.js +0 -1
  217. package/dist/assets/engine-Crd5Z3lP.js +0 -1
  218. package/dist/assets/get-safe-url-czY77v8f.js +0 -1
  219. package/dist/assets/hi-ClGNxnSL.js +0 -5
  220. package/dist/assets/index-B4EOqUNT.js +0 -1
  221. package/dist/assets/index-BOoRVhLj.js +0 -29
  222. package/dist/assets/index-DGZbt7_m.js +0 -1
  223. package/dist/assets/index-tRQj1y79.js +0 -6
  224. package/dist/assets/index-yoaLEniz.js +0 -832
  225. package/dist/assets/invite-DNSyQ-zG.js +0 -1
  226. package/dist/assets/item-Cr70mAvV.js +0 -1
  227. package/dist/assets/joi-browser.min-CUdv8seQ.js +0 -1
  228. package/dist/assets/joi-browser.min-eEVeW7LC.js +0 -1
  229. package/dist/assets/localization-ByZI4mSj.js +0 -1
  230. package/dist/assets/logger-B962sOsB.js +0 -1
  231. package/dist/assets/metadata-DftwYKum.js +0 -55
  232. package/dist/assets/over-due-invoice-payment-DeFNS-Us.js +0 -1
  233. package/dist/assets/passport-BxMVp3TG.js +0 -1
  234. package/dist/assets/preferences-BY_s4EkY.js +0 -1
  235. package/dist/assets/profile-embed-DUKyv_oX.js +0 -1
  236. package/dist/assets/pt-BU7pvSz6.js +0 -5
  237. package/dist/assets/publish-resource-Be5Gs98x.js +0 -1
  238. package/dist/assets/ru-CtjyU-qF.js +0 -5
  239. package/dist/assets/sdk-Dy-R7tw7.js +0 -1
  240. package/dist/assets/th-C0DkNnMF.js +0 -5
  241. package/dist/assets/theme-mode-toggle-Jvn37gNg.js +0 -1
  242. package/dist/assets/useLocalStorage-D8kgfBAn.js +0 -1
  243. package/dist/assets/vendor-hooks-164oA5kM.js +0 -1
  244. package/dist/assets/vi-nXB9zTif.js +0 -5
  245. package/dist/assets/wallet-hidden-topbar-dnCLvPpW.js +0 -68
  246. package/dist/assets/wrap-locale-C2lxMNe7.js +0 -1
  247. package/dist/assets/zh-QEwKQjt8.js +0 -1
@@ -1,68 +0,0 @@
1
- import{G as te,j as f,al as K,I as je,Q as Ot,aj as qt,H as Ft,P as Nt,W as Dt,U as Ht,b$ as zt,T as _,X as y,Z as Ut,a0 as Bt,S as Wt,R as Pe,L as Qt,bb as ot,c0 as he,ap as Vt,bq as Zt,aT as z,ak as Kt,bM as Gt}from"./vendor-mui-core-CV-FnYH_.js";import{r as C,a as Jt}from"./vendor-react-DX7tU9aY.js";import{a4 as rt,aF as Yt,aG as Xt,aH as en,aI as tn,aD as nn,W as it,aJ as Ee,at as Me,ah as Re}from"./index-yoaLEniz.js";import{g as on}from"./theme-mode-toggle-Jvn37gNg.js";import{F as pe,bn as _e,O as st,bo as rn,b3 as sn,bp as cn,x as an,b6 as ct,b7 as ln,a5 as at,bq as un,V as dn,b5 as fn,aK as hn,ad as pn}from"./vendor-ux-BGqHwkOM.js";import{i as gn,b as G,a as T,s as mn,x as xn}from"./vendor-hooks-164oA5kM.js";import{a8 as yn,G as ne,z as U,a as lt}from"./vendor-utils-BbcnEeJI.js";import{u as bn}from"./use-mobile-CyUZDIaX.js";import{p as wn}from"./purify.es-HRjpPm7y.js";import{r as kn}from"./index-CZ-qZTKi.js";function vn(e){try{return new URL(e).origin!==window.location.origin}catch{return!1}}function Cn(e,n){try{if(!vn(e))return e;const t=yn(e),r={utm_source:window.location.hostname,utm_medium:`${n}_nav`,utm_campaign:"default",utm_content:new URL(e).hostname,...t};return ne(e,r)}catch(t){return console.error("Failed to generate UTM URL:",t),e}}const ut=Object.freeze({left:0,top:0,width:16,height:16}),J=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),B=Object.freeze({...ut,...J}),ge=Object.freeze({...B,body:"",hidden:!1}),jn=Object.freeze({width:null,height:null}),dt=Object.freeze({...jn,...J});function In(e,n=0){const t=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(t!==e){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-t.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return n}const Sn=/[\s,]+/;function Tn(e,n){n.split(Sn).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ft={...dt,preserveAspectRatio:""};function Oe(e){const n={...ft},t=(r,o)=>e.getAttribute(r)||o;return n.width=t("width",null),n.height=t("height",null),n.rotate=In(t("rotate","")),Tn(n,t("flip","")),n.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),n}function $n(e,n){for(const t in ft)if(e[t]!==n[t])return!0;return!1}const q=/^[a-z0-9]+(-[a-z0-9]+)*$/,W=(e,n,t,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),a=o.pop(),l={provider:o.length>0?o[0]:r,prefix:a,name:s};return n&&!V(l)?null:l}const i=o[0],c=i.split("-");if(c.length>1){const s={provider:r,prefix:c.shift(),name:c.join("-")};return n&&!V(s)?null:s}if(t&&r===""){const s={provider:r,prefix:"",name:i};return n&&!V(s,t)?null:s}return null},V=(e,n)=>e?!!((e.provider===""||e.provider.match(q))&&(n&&e.prefix===""||e.prefix.match(q))&&e.name.match(q)):!1;function Ln(e,n){const t={};!e.hFlip!=!n.hFlip&&(t.hFlip=!0),!e.vFlip!=!n.vFlip&&(t.vFlip=!0);const r=((e.rotate||0)+(n.rotate||0))%4;return r&&(t.rotate=r),t}function qe(e,n){const t=Ln(e,n);for(const r in ge)r in J?r in e&&!(r in t)&&(t[r]=J[r]):r in n?t[r]=n[r]:r in e&&(t[r]=e[r]);return t}function An(e,n){const t=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(c){if(t[c])return o[c]=[];if(!(c in o)){o[c]=null;const s=r[c]&&r[c].parent,a=s&&i(s);a&&(o[c]=[s].concat(a))}return o[c]}return Object.keys(t).concat(Object.keys(r)).forEach(i),o}function Pn(e,n,t){const r=e.icons,o=e.aliases||Object.create(null);let i={};function c(s){i=qe(r[s]||o[s],i)}return c(n),t.forEach(c),qe(e,i)}function ht(e,n){const t=[];if(typeof e!="object"||typeof e.icons!="object")return t;e.not_found instanceof Array&&e.not_found.forEach(o=>{n(o,null),t.push(o)});const r=An(e);for(const o in r){const i=r[o];i&&(n(o,Pn(e,o,i)),t.push(o))}return t}const En={provider:"",aliases:{},not_found:{},...ut};function se(e,n){for(const t in n)if(t in e&&typeof e[t]!=typeof n[t])return!1;return!0}function pt(e){if(typeof e!="object"||e===null)return null;const n=e;if(typeof n.prefix!="string"||!e.icons||typeof e.icons!="object"||!se(e,En))return null;const t=n.icons;for(const o in t){const i=t[o];if(!o.match(q)||typeof i.body!="string"||!se(i,ge))return null}const r=n.aliases||Object.create(null);for(const o in r){const i=r[o],c=i.parent;if(!o.match(q)||typeof c!="string"||!t[c]&&!r[c]||!se(i,ge))return null}return n}const Y=Object.create(null);function Mn(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}function P(e,n){const t=Y[e]||(Y[e]=Object.create(null));return t[n]||(t[n]=Mn(e,n))}function Ie(e,n){return pt(n)?ht(n,(t,r)=>{r?e.icons[t]=r:e.missing.add(t)}):[]}function Rn(e,n,t){try{if(typeof t.body=="string")return e.icons[n]={...t},!0}catch{}return!1}function _n(e,n){let t=[];return(typeof e=="string"?[e]:Object.keys(Y)).forEach(o=>{(typeof o=="string"&&typeof n=="string"?[n]:Object.keys(Y[o]||{})).forEach(c=>{const s=P(o,c);t=t.concat(Object.keys(s.icons).map(a=>(o!==""?"@"+o+":":"")+c+":"+a))})}),t}let N=!1;function gt(e){return typeof e=="boolean"&&(N=e),N}function D(e){const n=typeof e=="string"?W(e,!0,N):e;if(n){const t=P(n.provider,n.prefix),r=n.name;return t.icons[r]||(t.missing.has(r)?null:void 0)}}function mt(e,n){const t=W(e,!0,N);if(!t)return!1;const r=P(t.provider,t.prefix);return Rn(r,t.name,n)}function Fe(e,n){if(typeof e!="object")return!1;if(typeof n!="string"&&(n=e.provider||""),N&&!n&&!e.prefix){let o=!1;return pt(e)&&(e.prefix="",ht(e,(i,c)=>{c&&mt(i,c)&&(o=!0)})),o}const t=e.prefix;if(!V({provider:n,prefix:t,name:"a"}))return!1;const r=P(n,t);return!!Ie(r,e)}function On(e){return!!D(e)}function qn(e){const n=D(e);return n?{...B,...n}:null}function Fn(e){const n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,c=o.prefix,s=o.name,a=t[i]||(t[i]=Object.create(null)),l=a[c]||(a[c]=P(i,c));let u;s in l.icons?u=n.loaded:c===""||l.missing.has(s)?u=n.missing:u=n.pending;const d={provider:i,prefix:c,name:s};u.push(d)}),n}function xt(e,n){e.forEach(t=>{const r=t.loaderCallbacks;r&&(t.loaderCallbacks=r.filter(o=>o.id!==n))})}function Nn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!n.length)return;let t=!1;const r=e.provider,o=e.prefix;n.forEach(i=>{const c=i.icons,s=c.pending.length;c.pending=c.pending.filter(a=>{if(a.prefix!==o)return!0;const l=a.name;if(e.icons[l])c.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))c.missing.push({provider:r,prefix:o,name:l});else return t=!0,!0;return!1}),c.pending.length!==s&&(t||xt([e],i.id),i.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),i.abort))})}))}let Dn=0;function Hn(e,n,t){const r=Dn++,o=xt.bind(null,t,r);if(!n.pending.length)return o;const i={id:r,icons:n,callback:e,abort:o};return t.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(i)}),o}const me=Object.create(null);function Ne(e,n){me[e]=n}function xe(e){return me[e]||me[""]}function zn(e,n=!0,t=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?W(o,n,t):o;i&&r.push(i)}),r}var Un={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Bn(e,n,t,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let c;if(e.random){let k=e.resources.slice(0);for(c=[];k.length>1;){const j=Math.floor(Math.random()*k.length);c.push(k[j]),k=k.slice(0,j).concat(k.slice(j+1))}c=c.concat(k)}else c=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let a="pending",l=0,u,d=null,h=[],p=[];typeof r=="function"&&p.push(r);function g(){d&&(clearTimeout(d),d=null)}function m(){a==="pending"&&(a="aborted"),g(),h.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),h=[]}function x(k,j){j&&(p=[]),typeof k=="function"&&p.push(k)}function b(){return{startTime:s,payload:n,status:a,queriesSent:l,queriesPending:h.length,subscribe:x,abort:m}}function w(){a="failed",p.forEach(k=>{k(void 0,u)})}function v(){h.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),h=[]}function $(k,j,L){const A=j!=="success";switch(h=h.filter(E=>E!==k),a){case"pending":break;case"failed":if(A||!e.dataAfterTimeout)return;break;default:return}if(j==="abort"){u=L,w();return}if(A){u=L,h.length||(c.length?S():w());return}if(g(),v(),!e.random){const E=e.resources.indexOf(k.resource);E!==-1&&E!==e.index&&(e.index=E)}a="completed",p.forEach(E=>{E(L)})}function S(){if(a!=="pending")return;g();const k=c.shift();if(k===void 0){if(h.length){d=setTimeout(()=>{g(),a==="pending"&&(v(),w())},e.timeout);return}w();return}const j={status:"pending",resource:k,callback:(L,A)=>{$(j,L,A)}};h.push(j),l++,d=setTimeout(S,e.rotate),t(k,n,j.callback)}return setTimeout(S),b}function yt(e){const n={...Un,...e};let t=[];function r(){t=t.filter(s=>s().status==="pending")}function o(s,a,l){const u=Bn(n,s,a,(d,h)=>{r(),l&&l(d,h)});return t.push(u),u}function i(s){return t.find(a=>s(a))||null}return{query:o,find:i,setIndex:s=>{n.index=s},getIndex:()=>n.index,cleanup:r}}function Se(e){let n;if(typeof e.resources=="string")n=[e.resources];else if(n=e.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const oe=Object.create(null),O=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;O.length>0;)O.length===1||Math.random()>.5?Z.push(O.shift()):Z.push(O.pop());oe[""]=Se({resources:["https://api.iconify.design"].concat(Z)});function De(e,n){const t=Se(n);return t===null?!1:(oe[e]=t,!0)}function re(e){return oe[e]}function Wn(){return Object.keys(oe)}function He(){}const ce=Object.create(null);function Qn(e){if(!ce[e]){const n=re(e);if(!n)return;const t=yt(n),r={config:n,redundancy:t};ce[e]=r}return ce[e]}function bt(e,n,t){let r,o;if(typeof e=="string"){const i=xe(e);if(!i)return t(void 0,424),He;o=i.send;const c=Qn(e);c&&(r=c.redundancy)}else{const i=Se(e);if(i){r=yt(i);const c=e.resources?e.resources[0]:"",s=xe(c);s&&(o=s.send)}}return!r||!o?(t(void 0,424),He):r.query(n,o,t)().abort}const ze="iconify2",H="iconify",wt=H+"-count",Ue=H+"-version",kt=36e5,Vn=168;function ye(e,n){try{return e.getItem(n)}catch{}}function Te(e,n,t){try{return e.setItem(n,t),!0}catch{}}function Be(e,n){try{e.removeItem(n)}catch{}}function be(e,n){return Te(e,wt,n.toString())}function we(e){return parseInt(ye(e,wt))||0}const M={local:!0,session:!0},vt={local:new Set,session:new Set};let $e=!1;function Zn(e){$e=e}let Q=typeof window>"u"?{}:window;function Ct(e){const n=e+"Storage";try{if(Q&&Q[n]&&typeof Q[n].length=="number")return Q[n]}catch{}M[e]=!1}function jt(e,n){const t=Ct(e);if(!t)return;const r=ye(t,Ue);if(r!==ze){if(r){const s=we(t);for(let a=0;a<s;a++)Be(t,H+a.toString())}Te(t,Ue,ze),be(t,0);return}const o=Math.floor(Date.now()/kt)-Vn,i=s=>{const a=H+s.toString(),l=ye(t,a);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&n(u,s))return!0}catch{}Be(t,a)}};let c=we(t);for(let s=c-1;s>=0;s--)i(s)||(s===c-1?(c--,be(t,c)):vt[e].add(s))}function It(){if(!$e){Zn(!0);for(const e in M)jt(e,n=>{const t=n.data,r=n.provider,o=t.prefix,i=P(r,o);if(!Ie(i,t).length)return!1;const c=t.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,c):c,!0})}}function Kn(e,n){const t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(const r in M)jt(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===n});return!0}function Gn(e,n){$e||It();function t(r){let o;if(!M[r]||!(o=Ct(r)))return;const i=vt[r];let c;if(i.size)i.delete(c=Array.from(i).shift());else if(c=we(o),!be(o,c+1))return;const s={cached:Math.floor(Date.now()/kt),provider:e.provider,data:n};return Te(o,H+c.toString(),JSON.stringify(s))}n.lastModified&&!Kn(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),t("local")||t("session"))}function We(){}function Jn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Nn(e)}))}function Yn(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=xe(t)))return;i.prepare(t,r,o).forEach(s=>{bt(t,s,a=>{if(typeof a!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=Ie(e,a);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),Gn(e,a)}catch(l){console.error(l)}Jn(e)})})}))}const Le=(e,n)=>{const t=zn(e,!0,gt()),r=Fn(t);if(!r.pending.length){let a=!0;return n&&setTimeout(()=>{a&&n(r.loaded,r.missing,r.pending,We)}),()=>{a=!1}}const o=Object.create(null),i=[];let c,s;return r.pending.forEach(a=>{const{provider:l,prefix:u}=a;if(u===s&&l===c)return;c=l,s=u,i.push(P(l,u));const d=o[l]||(o[l]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(a=>{const{provider:l,prefix:u,name:d}=a,h=P(l,u),p=h.pendingIcons||(h.pendingIcons=new Set);p.has(d)||(p.add(d),o[l][u].push(d))}),i.forEach(a=>{const{provider:l,prefix:u}=a;o[l][u].length&&Yn(a,o[l][u])}),n?Hn(n,r,i):We},Xn=e=>new Promise((n,t)=>{const r=typeof e=="string"?W(e,!0):e;if(!r){t(e);return}Le([r||e],o=>{if(o.length&&r){const i=D(r);if(i){n({...B,...i});return}}t(e)})});function eo(e){try{const n=typeof e=="string"?JSON.parse(e):e;if(typeof n.body=="string")return{...n}}catch{}}function to(e,n){const t=typeof e=="string"?W(e,!0,!0):null;if(!t){const i=eo(e);return{value:e,data:i}}const r=D(t);if(r!==void 0||!t.prefix)return{value:e,name:t,data:r};const o=Le([t],()=>n(e,t,D(t)));return{value:e,name:t,loading:o}}function ae(e){return e.hasAttribute("inline")}let St=!1;try{St=navigator.vendor.indexOf("Apple")===0}catch{}function no(e,n){switch(n){case"svg":case"bg":case"mask":return n}return n!=="style"&&(St||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const oo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ro=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ke(e,n,t){if(n===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*n*t)/t;if(typeof e!="string")return e;const r=e.split(oo);if(r===null||!r.length)return e;const o=[];let i=r.shift(),c=ro.test(i);for(;;){if(c){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*n*t)/t)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");c=!c}}const io=e=>e==="unset"||e==="undefined"||e==="none";function Tt(e,n){const t={...B,...e},r={...dt,...n},o={left:t.left,top:t.top,width:t.width,height:t.height};let i=t.body;[t,r].forEach(g=>{const m=[],x=g.hFlip,b=g.vFlip;let w=g.rotate;x?b?w+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):b&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let v;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:v=o.height/2+o.top,m.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,m.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}w%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),m.length&&(i='<g transform="'+m.join(" ")+'">'+i+"</g>")});const c=r.width,s=r.height,a=o.width,l=o.height;let u,d;c===null?(d=s===null?"1em":s==="auto"?l:s,u=ke(d,a/l)):(u=c==="auto"?a:c,d=s===null?ke(u,l/a):s==="auto"?l:s);const h={},p=(g,m)=>{io(m)||(h[g]=m.toString())};return p("width",u),p("height",d),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+a.toString()+" "+l.toString(),{attributes:h,body:i}}const so=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let X=so();function co(e){X=e}function ao(){return X}function lo(e,n){const t=re(e);if(!t)return 0;let r;if(!t.maxURL)r=0;else{let o=0;t.resources.forEach(c=>{o=Math.max(o,c.length)});const i=n+".json?icons=";r=t.maxURL-o-t.path.length-i.length}return r}function uo(e){return e===404}const fo=(e,n,t)=>{const r=[],o=lo(e,n),i="icons";let c={type:i,provider:e,prefix:n,icons:[]},s=0;return t.forEach((a,l)=>{s+=a.length+1,s>=o&&l>0&&(r.push(c),c={type:i,provider:e,prefix:n,icons:[]},s=a.length),c.icons.push(a)}),r.push(c),r};function ho(e){if(typeof e=="string"){const n=re(e);if(n)return n.path}return"/"}const po=(e,n,t)=>{if(!X){t("abort",424);return}let r=ho(n.provider);switch(n.type){case"icons":{const i=n.prefix,s=n.icons.join(","),a=new URLSearchParams({icons:s});r+=i+".json?"+a.toString();break}case"custom":{const i=n.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:t("abort",400);return}let o=503;X(e+r).then(i=>{const c=i.status;if(c!==200){setTimeout(()=>{t(uo(c)?"abort":"next",c)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?t("abort",i):t("next",o)});return}setTimeout(()=>{t("success",i)})}).catch(()=>{t("next",o)})},go={prepare:fo,send:po};function Qe(e,n){switch(e){case"local":case"session":M[e]=n;break;case"all":for(const t in M)M[t]=n;break}}const le="data-style";let $t="";function mo(e){$t=e}function Ve(e,n){let t=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(le));t||(t=document.createElement("style"),t.setAttribute(le,le),e.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+$t}function Lt(){Ne("",go),gt(!0);let e;try{e=window}catch{}if(e){if(It(),e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Fe(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const r in t){const o="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;De(r,i)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>Qe(t,!0),disableCache:t=>Qe(t,!1),iconExists:On,getIcon:qn,listIcons:_n,addIcon:mt,addCollection:Fe,calculateSize:ke,buildIcon:Tt,loadIcons:Le,loadIcon:Xn,addAPIProvider:De,appendCustomStyle:mo,_api:{getAPIConfig:re,setAPIModule:Ne,sendAPIQuery:bt,setFetch:co,getFetch:ao,listAPIProviders:Wn}}}function At(e,n){let t=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)t+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}function xo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function yo(e){return"data:image/svg+xml,"+xo(e)}function bo(e){return'url("'+yo(e)+'")'}const ve={"background-color":"currentColor"},Pt={"background-color":"transparent"},Ze={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ke={"-webkit-mask":ve,mask:ve,background:Pt};for(const e in Ke){const n=Ke[e];for(const t in Ze)n[e+"-"+t]=Ze[t]}function Ge(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function wo(e,n,t){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const i=e.attributes,c=At(o,{...i,width:n.width+"",height:n.height+""}),s=bo(c),a=r.style,l={"--svg":s,width:Ge(i.width),height:Ge(i.height),...t?ve:Pt};for(const u in l)a.setProperty(u,l[u]);return r}let F;function ko(){try{F=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{F=null}}function vo(e){return F===void 0&&ko(),F?F.createHTML(e):e}function Co(e){const n=document.createElement("span"),t=e.attributes;let r="";t.width||(r="width: inherit;"),t.height||(r+="height: inherit;"),r&&(t.style=r);const o=At(e.body,t);return n.innerHTML=vo(o),n.firstChild}function Je(e,n){const t=n.icon.data,r=n.customisations,o=Tt(t,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const i=n.renderedMode;let c;i==="svg"?c=Co(o):c=wo(o,{...B,...t},i==="mask");const s=Array.from(e.childNodes).find(a=>{const l=a.tagName&&a.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});s?c.tagName==="SPAN"&&s.tagName===c.tagName?s.setAttribute("style",c.getAttribute("style")):e.replaceChild(c,s):e.appendChild(c)}function Ye(e,n,t){const r=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:n,icon:e,lastRender:r}}function jo(e="iconify-icon"){let n,t;try{n=window.customElements,t=window.HTMLElement}catch{return}if(!n||!t)return;const r=n.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],i=class extends t{_shadowRoot;_state;_checkQueued=!1;constructor(){super();const s=this._shadowRoot=this.attachShadow({mode:"open"}),a=ae(this);Ve(s,a),this._state=Ye({value:""},a),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(s){if(s==="inline"){const a=ae(this),l=this._state;a!==l.inline&&(l.inline=a,Ve(this._shadowRoot,a))}else this._queueCheck()}get icon(){const s=this.getAttribute("icon");if(s&&s.slice(0,1)==="{")try{return JSON.parse(s)}catch{}return s}set icon(s){typeof s=="object"&&(s=JSON.stringify(s)),this.setAttribute("icon",s)}get inline(){return ae(this)}set inline(s){s?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const s=this._state;if(s.rendered){const a=this._shadowRoot;if(s.renderedMode==="svg")try{a.lastChild.setCurrentTime(0);return}catch{}Je(a,s)}}get status(){const s=this._state;return s.rendered?"rendered":s.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const s=this._state,a=this.getAttribute("icon");if(a!==s.icon.value){this._iconChanged(a);return}if(!s.rendered)return;const l=this.getAttribute("mode"),u=Oe(this);(s.attrMode!==l||$n(s.customisations,u))&&this._renderIcon(s.icon,u,l)}_iconChanged(s){const a=to(s,(l,u,d)=>{const h=this._state;if(h.rendered||this.getAttribute("icon")!==l)return;const p={value:l,name:u,data:d};p.data?this._gotIconData(p):h.icon=p});a.data?this._gotIconData(a):this._state=Ye(a,this._state.inline,this._state)}_gotIconData(s){this._checkQueued=!1,this._renderIcon(s,Oe(this),this.getAttribute("mode"))}_renderIcon(s,a,l){const u=no(s.data.body,l),d=this._state.inline;Je(this._shadowRoot,this._state={rendered:!0,icon:s,inline:d,customisations:a,attrMode:l,renderedMode:u})}};o.forEach(s=>{s in i.prototype||Object.defineProperty(i.prototype,s,{get:function(){return this.getAttribute(s)},set:function(a){a!==null?this.setAttribute(s,a):this.removeAttribute(s)}})});const c=Lt();for(const s in c)i[s]=i.prototype[s]=c[s];return n.define(e,i),i}const Io=jo()||Lt(),{enableCache:Ar,disableCache:Pr,iconExists:Er,getIcon:Mr,listIcons:Rr,addIcon:_r,addCollection:Or,calculateSize:qr,buildIcon:Fr,loadIcons:Nr,loadIcon:Dr,addAPIProvider:Hr,_api:zr}=Io,ie=(e,n,t="children")=>e.map(r=>Array.isArray(r[t])?n({...r,[t]:ie(r[t],n,t)}):n(r)),Ur=(e,n="children")=>{const t=[];return ie(e,r=>t.push(r),n),t},Ae=(e,n,t="children")=>e.map(r=>({...r})).filter(r=>{const o=r[t];if(Array.isArray(o)){const c=Ae(o,n,t);r[t]=c?.length?c:void 0}const i={filteredChildren:r[t],isLeaf:!o?.length};return n(r,i)}),So=e=>/^https?:\/\//.test(e),To=e=>/^mailto:/i.test(e.trim()),$o=e=>{if(!e||!e?.startsWith("/"))return!1;const n=o=>o.endsWith("/")?o:`${o}/`,t=n(window.location.pathname),r=n(new URL(e,window.location.origin).pathname);return t.startsWith(r)},Br=(e=[])=>{const n=e.map((t,r)=>({path:t,index:r})).filter(t=>$o(t.path));return n?.length?n.slice(1).reduce((t,r)=>t.path.length>=r.path.length?t:r,n[0]).index:-1},Wr=(e,n={})=>{const{columns:t=1,breakInside:r=!1,groupHeight:o=48,itemHeight:i=24,childrenKey:c="items"}=n,s=e.length,a=e.reduce((m,x)=>m+o+(x[c]?.length||0)*i,0),l=Math.ceil(a/t),u=[[]];let d=0,h=0;const p=l*.2,g=m=>h>l-p&&d<t-1&&h+m>l+p;return e.forEach(m=>{const x=o+(m[c]?.length||0)*i;r&&g(o)&&(d++,h=0,u[d]=[]),!r&&h>0&&(s<=t||g(x))&&(d++,h=0,u[d]=[]),u[d].push({...m,group:!0}),h+=o,m[c]&&m[c].forEach(b=>{r&&g(i)&&(d++,h=0,u[d]=[]),u[d].push({...b,group:!1}),h+=i})}),u},Qr=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",Lo=e=>{const n={...e},t=e?.background;return typeof t=="string"?n.background={header:t,footer:t,default:t}:t&&typeof t=="object"&&(n.background={header:t.header||t.default,footer:t.footer||t.default,default:t.default}),n},Ao=(e,n="en",t="en")=>{if(typeof e=="string"){if(So(e)){const o=new URL(e);return o.searchParams.set("locale",n),o.href}if(To(e))return e;const r=new URL(e,window.location.origin);return r.searchParams.set("locale",n),r.pathname+r.search}return typeof e=="object"?e[n]||e[t]||e.en:e},Po=({navigation:e,locale:n,defaultLocale:t,section:r="header"})=>{if(!e?.length)return e;const o=(i,c)=>i&&typeof i=="object"?i[c]||i[t]||i.en:i;return ie(e,i=>({...i,title:o(i.title,n),description:o(i.description,n),link:Cn(i.items?.length?i.link:Ao(i.link,n,t),r),_rawLink:i.link}),"items")},Eo=e=>ie(e,n=>n.role?{...n,role:Array.isArray(n.role)?n.role:[n.role]}:n,"items"),Mo=e=>{if(!e?.length)return null;const n=Eo(e),t={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach(r=>{r.section?Array.isArray(r.section)?r.section.forEach(o=>{t[o]?.push(r)}):typeof r.section=="string"&&t[r.section]?.push(r):t.header.push(r)}),t},Vr=e=>{if(!e)return null;const n={...e};return n.theme=Lo(n.theme),n.navigation=Mo(Ro(n.navigation)),n},Ro=(e=[])=>Ae(e,(n,t)=>!!n.link||t.filteredChildren?.length,"items"),_o=(e,n)=>Ae(e,(t,r)=>{const o=!t.role||n&&(t.role.includes(n)||t.role.includes("guest"));return r.isLeaf?o:o&&r.filteredChildren?.length},"items"),Oo={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},qo={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Fo({session:e,locale:n="zh",size:t=24,popperType:r="click",sx:o,...i}){const c=window?.blocklet||{},s=(c.navigation||[]).filter(p=>p.section==="sessionManager"&&!["/sessionManager"].includes(p.id)).filter(p=>!!(p?.role||[]).includes(e?.user?.role||"guest")).map(p=>{const g=(c?.componentMountPoints||[]).find(m=>p.component===m.name);return{...p,component:g}}),a=te(),l=C.useRef(null),u=gn({open:!1}),d=G((p=!u.open)=>{u.open=p}),h=r==="hover"?{onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)}:{onClick:()=>d()};return s.length===0||!e?.user?null:f.jsxs(K,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",...o},...i,...h,children:[f.jsx(je,{size:"medium",ref:l,children:f.jsx(pe,{icon:Oo,fontSize:t,style:{transform:"scale(1.08)"}})}),f.jsx(Ot,{open:u.open,anchorEl:l.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:p})=>f.jsx(qt,{onClickAway:g=>{g.preventDefault(),g.stopPropagation(),d(!1)},children:f.jsx(Ft,{...p,timeout:350,children:f.jsxs(Nt,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[f.jsx(Dt,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:s.map(g=>f.jsx(Ht,{disablePadding:!0,children:f.jsxs(zt,{href:_e(g.link,n),sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:1,"&:hover":{backgroundColor:"action.hover"}},children:[g?.component?.did?f.jsx(K,{component:"img",src:`${st}/blocklet/logo-bundle/${g.component.did}`,sx:{borderRadius:1,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):f.jsx(pe,{fontSize:50,icon:g.icon||qo,color:a.palette.text.secondary}),f.jsx(_,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:_e(g.title,n)})]})},g.id))}),f.jsx(rn,{session:e,children:f.jsx(sn,{variant:"outlined",fullWidth:!0,href:cn,sx:{mt:1},children:n==="zh"?"管理":"Manage"})})]})})})})]})}const Zr=y.shape({appLogo:y.node,appName:y.string,theme:y.shape({background:y.string}),enableConnect:y.bool,enableLocale:y.bool,navigation:y.arrayOf(y.shape({title:y.oneOfType([y.string,y.object]),link:y.oneOfType([y.string,y.object]),icon:y.string,items:y.arrayOf(y.shape({title:y.oneOfType([y.string,y.object]),link:y.oneOfType([y.string,y.object])}))}))}),No=y.shape({showText:y.bool,showRole:y.bool,switchDid:y.bool,switchProfile:y.bool,switchPassport:y.bool,disableLogout:y.bool,onLogin:y.func,onLogout:y.func,onSwitchDid:y.func,onSwitchProfile:y.func,onSwitchPassport:y.func,menu:y.array,menuRender:y.func,dark:y.bool,size:y.number,profileUrl:y.string}),Do=["admin","owner"],Ho=e=>e.endsWith(".ip.abtnet.io"),zo=e=>e.endsWith(".did.abtnet.io"),Uo={en:{guest:{title:"Notice: You are using a temporary domain",description:"You are accessing this site through a temporary domain. For a better experience, please contact the site administrator to configure a custom domain. Using a custom domain not only makes access more convenient but also ensures your access is more secure."},owner:{title:"Enhance Your Website Security",description:"Dear administrator, we recommend configuring your custom domain immediately, which will:",benefits1:"Automatically obtain HTTPS certificates to ensure secure data transmission",benefits2:"Create an exclusive brand image and increase website credibility",benefits3:"Get a shorter, more memorable access address",benefits4:"Provide visitors with a more professional experience",benefits5:"Domain configuration takes just minutes to complete, taking your website to the next level!"},skip:"Remind Me Later",bindDomain:"Configure Domain"},zh:{guest:{title:"温馨提示:当前使用的是临时域名",description:"您正在通过临时域名访问本站点。为了获得更好的访问体验,请联系站点管理员配置自定义域名。使用自定义域名不仅访问更便捷,还能确保您的访问更加安全。"},owner:{title:"提升网站安全性与专业度",description:"尊敬的管理员,我们建议您尽快配置自定义域名,这样可以:",benefits1:"自动获取 HTTPS 证书,确保数据传输安全",benefits2:"打造专属品牌形象,提升网站可信度",benefits3:"获得更简短、易记的访问地址",benefits4:"为访客提供更专业的访问体验",benefits5:"只需几分钟即可完成域名配置,全面提升您的网站品质!"},skip:"稍后提醒",bindDomain:"配置域名"}},Bo=1e3*60*60*24*30,Xe=".well-known/service/admin/domains";function Et({locale:e="en",session:n={}}){const t=n?.user,r=bn(),[o,i]=C.useState(()=>{const h=window.localStorage.getItem("domain-warning-skip");if(!h)return!0;const p=+new Date,g=+new Date(h);return p-g>Bo}),c=G((h,p={})=>an(Uo,h,e,"en",p)),s=C.useMemo(()=>{try{const{hostname:h}=new URL(window.location.href);return h}catch{return""}},[]),a=C.useMemo(()=>[c("owner.benefits1"),c("owner.benefits2"),c("owner.benefits3"),c("owner.benefits4"),c("owner.benefits5")],[c]),l=C.useCallback(()=>{window.localStorage.setItem("domain-warning-skip",new Date().toISOString()),i(!1)},[]),u=C.useCallback(()=>{const h=U(window.location.origin,Xe);h.startsWith("http")&&window.open(h,"_blank"),i(!1)},[]),d=t?.role&&Do.includes(t.role);return window.location.href.includes(Xe)||r||!Ho(s)&&!zo(s)?null:f.jsxs(Ut,{open:o,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>i(!1),children:[f.jsxs(Bt,{sx:{padding:"20px !important"},children:[f.jsx(_,{sx:{fontSize:"20px",fontWeight:"500"},children:c(d?"owner.title":"guest.title")}),f.jsx(_,{sx:{marginTop:"20px",fontSize:"14px",color:"text.secondary"},children:c(d?"owner.description":"guest.description")}),d&&f.jsx(K,{component:"ul",children:a.map(h=>f.jsx(_,{component:"li",sx:{fontSize:"14px",color:"text.secondary"},children:h},h))})]}),f.jsxs(Wt,{sx:{px:"12px !important"},children:[f.jsx(Pe,{onClick:l,children:c("skip")}),d&&f.jsx(Pe,{variant:"contained",onClick:u,children:c("bindDomain")})]})]})}Et.propTypes={locale:y.string,session:y.object};const Wo=e=>C.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.251 2.5c-2.576-.006-4.747 2.1-4.766 4.506v5.784c0 .793-.084 1.778-.58 2.71h12.19c-.496-.932-.58-1.917-.58-2.711V7.01c-.035-2.403-2.21-4.502-4.797-4.508L9.25 2.5zM17.015 7v5.789c0 .79.1 1.562.53 2.219l.287.438c.436.664-.033 1.554-.817 1.554H2.985c-.785 0-1.255-.89-.818-1.554l.287-.438c.43-.657.53-1.428.53-2.218V7c.024-3.291 2.927-6.008 6.27-6l1.467.003c3.344.008 6.254 2.706 6.294 5.998zM11.06 18.06A1.5 1.5 0 0 0 11.5 17H13a3 3 0 0 1-6 0h1.5a1.5 1.5 0 0 0 2.56 1.06z",fill:"currentColor"})),I={};function Qo(e="admin"){let n="/";!window?.blocklet&&window?.env?.apiPrefix&&(n=window.env.apiPrefix);const t=U(n,st,e);return new Yt.WsClient(t,{heartbeatIntervalMs:100*1e3})}function Vo(e="admin"){return I[e]||(I[e]=Qo(e)),I[e]}const Zo=(e="admin")=>{const n=C.use(rt),{session:t}=n??{},r=T(()=>t.user?.did,[t.user]),o=mn(r);return xn(()=>{Object.keys(I).forEach(i=>{I[i]?.isConnected()&&I[i]?.disconnect(),delete I[i]})}),r?(o&&o!==r&&Object.keys(I).forEach(i=>{I[i]&&(I[i].isConnected()&&I[i].disconnect(),I[i].connect())}),!I[e]&&t.user&&(I[e]=Vo(e),I[e].connect()),I[e]):null},Ko={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"/><path d="m9 12l2 2l4-4"/></g>'},Go={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-3v4m0 3v.01"/>'},Jo={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 0 9-9a9 9 0 0 0-9-9a9 9 0 0 0-9 9a9 9 0 0 0 9 9zM9 8l6 8m0-8l-6 8"/>'};function Yo(){const e=te();return[...e.breakpoints.keys].reverse().reduce((n,t)=>{const r=Qt(e.breakpoints.up(t));return!n&&r?t:n},null)||"xs"}var ue,et;function Xo(){if(et)return ue;et=1;const{joinURL:e,withQuery:n}=Xt(),{toTypeInfo:t}=kn(),{isEVMChain:r,getExplorerUrl:o}=en(),{arcChainConfig:i}=tn(),c={ROLE_ROLLUP:"number"},s="https://explorer.abtnetwork.io/explorer/";return ue=function({hash:l,asset:u,rollup:d,address:h,token:p,stake:g,chainId:m=""}){if(r(m)){const v=o(m);return l?e(v,`tx/${l}`):u?e(v,`token/${u}`):e(v,`address/${h}`)}const b=i[m]?.defaultRPC,w=b?`${b}`:void 0;return d&&t(d).role===c.ROLE_ROLLUP?l?n(e(s,`rollups/${d}/moves/${l}`),{host:w}):n(e(s,`rollups/${d}`),{host:w}):u?n(e(s,`assets/${u}`),{host:w}):l?n(e(s,`txs/${l}`),{host:w}):p?n(e(s,`tokens/${p}/tx`),{host:w}):g?n(e(s,`stakes/${g}`),{host:w}):n(e(s,`accounts/${h}`),{host:w})},ue}var de,tt;function Mt(){return tt||(tt=1,de={isSameAddr:(e,n)=>String(e).toLowerCase()===String(n).toLowerCase()}),de}var fe,nt;function er(){if(nt)return fe;nt=1;const e=Xo(),{isSameAddr:n}=Mt();class t{constructor({type:a,did:l,chainId:u,text:d}){this.text=d,this.did=l,this.type=a,this.chainId=u}}const r=s=>{const a=[];try{let l=0;const u=/<(.+?)\(?[tx|nft|token|stake|did|dapp|link]+[:](.+?)\)?>/gi,d=s.matchAll(u);for(const h of d){const p=/\([tx|nft|token|stake|did|dapp|link]+[:](.+?)\)/gi,g=h[0],m=h.index||l,x=m+g.length;if([...g.matchAll(p)].length>1)return[s];let w="";const v=p.exec(g);let $="";if(v){const A=v[0];w=g.replace(A,"").replace(/^</,"").replace(/(>)$/,""),$=A.replace(/\)$/,"").replace(/^\(/,"")}else $=g;const S=$.split(":"),k=(S[0]||"").replace(/^</,"").replace(/^\(/,"").toUpperCase(),j=(S[1]||"").replace(/>$/,"").replace(/\)$/,""),L=(S[S.length-1]||"").replace(/>$/,"").replace(/\)$/,"");a.push(s.substring(l,m)),a.push(new t({type:k,chainId:j,did:L,text:w||k})),l=x}return l<s.length&&a.push(s.substring(l)),a}catch(l){return console.error(l?.message),[s]}},o=s=>{let a;const{type:l,chainId:u,did:d}=s;return n(l,"link")?a=`${u}:${d}`:n(l,"tx")?a=e({hash:d,chainId:u}):n(l,"stake")?a=e({stake:d,chainId:u}):n(l,"nft")?a=e({asset:d,chainId:u}):n(l,"token")?a=e({token:d,chainId:u}):n(l,"did")&&(a=e({address:d,chainId:u})),a};return fe={toClickableSpan:(s,a=!0)=>r(s).map(u=>{if(u instanceof t){if(a){const d=o(u),{type:h,chainId:p,did:g}=u;return n(h,"dapp")?`<em style="font-weight:bold;" data-type="${h}" data-chain-id="${p}" data-did="${g}">${u.text}</em>`:d?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${d}">${u.text}</a>`:`<em style="font-weight:bold;" data-type="${h}" data-chain-id="${p}" data-did="${g}">${u.text}</em>`}return u.text}return u}).join(""),toTextList:r,toSlackLink:s=>r(s).map(l=>l instanceof t?`<${o(l)}|${l.text}>`:l.replace(/:\n/g,": ")).join(""),Link:t,getLink:o},fe}var ee=er(),Rt=Mt();const tr=e=>!lt(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,nr=e=>{if(!e)return null;const{meta:n,target:t}=e;return{metaLink:n?.id,targetLink:t?.id}},or=async(e,n)=>{try{return await nn().user.getProfileUrl({did:e,locale:n})}catch(t){console.error(t);return}},rr=async(e,n)=>{const{type:t,did:r}=e;return Rt.isSameAddr(t,"did")&&await or(r,n)||ee.getLink(e)},ir=async(e,n,t=!0)=>{const r=ee.toTextList(e);return await Promise.all(r.map(async o=>{if(o instanceof ee.Link){if(t){const i=await rr(o,n),{type:c,chainId:s,did:a}=o;return Rt.isSameAddr(c,"dapp")?`<em class="dapp" data-type="${c}" data-chain-id="${s}" data-did="${a}">${o.text}</em>`:i?`<a target="_blank" rel="noopener noreferrer" class="link" href="${i}">${o.text}</a>`:`<em class="common" data-type="${c}" data-chain-id="${s}" data-did="${a}">${o.text}</em>`}return o.text}return o})).then(o=>o.join(""))},sr=e=>wn.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),cr={comment:(e,n)=>n&&n>1?f.jsxs(f.Fragment,{children:["left ",n," comments on your ",e]}):f.jsxs(f.Fragment,{children:["commented on your ",e]}),like:e=>f.jsxs(f.Fragment,{children:["liked your ",e]}),follow:()=>f.jsx(f.Fragment,{children:"followed you"}),tips:e=>f.jsxs(f.Fragment,{children:["gave tips to your ",e]}),mention:e=>f.jsxs(f.Fragment,{children:["mentioned you in ",e]}),assign:()=>f.jsx(f.Fragment,{children:"assigned you a task"})};function R({user:e,color:n=void 0}){const{palette:t}=te(),r=ne(U(it,"user"),{did:e.did}),o=n||t.text.primary;return f.jsx(ot,{href:r,color:o,target:"_blank",onClick:i=>{i.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}R.displayName="UserLink";function ar({activity:e,users:n,actors:t,extra:r={},mountPoint:o=""}){const{palette:i}=te(),{type:c,target:s}=e||{},{type:a}=s||{},{linkColor:l=i.text.primary}=r||{},u=T(()=>{if(!Array.isArray(n))return new Map;const x=new Map;return n.forEach(b=>{b?.did&&!x.has(b.did)&&x.set(b.did,b)}),x},[n]),d=T(()=>Array.isArray(t)?t.map(x=>x?u.get(x)||{did:x,fullName:"System"}:null).filter(Boolean):[],[t,u]),h=G(()=>{if(!Array.isArray(d)||d.length===0)return null;if(d.length===1)return f.jsx(R,{user:d[0],color:l});const x=d.slice(0,-1),b=d[d.length-1];if(d.length===2)return f.jsxs(f.Fragment,{children:[f.jsx(R,{user:x[0],color:l})," and ",f.jsx(R,{user:b,color:l})]});const w=d.length>3,v=w?d.slice(0,2):x;return f.jsxs(f.Fragment,{children:[v.map(($,S)=>f.jsxs(Jt.Fragment,{children:[f.jsx(R,{user:$,color:l}),S<v.length-1?", ":""]},$.did)),w?`, and ${d.length-2} others`:f.jsxs(f.Fragment,{children:[", and ",f.jsx(R,{user:b,color:l})]})]})}),p=G(()=>{const x=c?cr[c]:null;return x?x(a,n.length):null}),g=T(()=>{const x=h(),b=p();return!x||!b?null:f.jsxs(f.Fragment,{children:[x," ",b]})},[c,a,d,h,p]),m=T(()=>{if(!e)return null;const x=nr(e);return x?.targetLink?U(o,x.targetLink):null},[e,o]);return!c||lt(s)?null:f.jsxs(f.Fragment,{children:[g," ",m&&f.jsx(ot,{href:m,color:l,target:"_blank",sx:{textDecoration:"none"},onClick:x=>{x.customPreventRedirect=!0},children:s.name})]})}const lr={normal:Ee,success:Ko,info:Ee,warning:Go,error:Jo},ur=z(Kt)`
2
- font-size: 20px;
3
- `,dr=z.div`
4
- display: flex;
5
- align-items: flex-start;
6
- gap: 8px;
7
- flex: 1;
8
- width: 0;
9
- `,fr=z.div`
10
- display: flex;
11
- align-items: center;
12
- margin-left: auto;
13
- margin-right: -8px;
14
- width: 44px;
15
- `,hr={xl:"400px",lg:"400px",md:"400px",sm:"300px"},pr=z(ln)`
16
- display: flex;
17
- color: #fff;
18
- align-items: center;
19
- padding: 12px 16px;
20
- border-radius: 4px;
21
- box-shadow:
22
- 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
23
- 0px 6px 10px 0px rgba(0, 0, 0, 0.14),
24
- 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
25
-
26
- ${({severity:e,breakpoint:n})=>{const t=hr[n]||"400px";return e==="success"?`
27
- background-color: ${Vt[600]} !important;
28
- width: ${t};
29
- `:e==="error"?`
30
- background-color: #d32f2f !important;
31
- width: ${t};
32
- `:e==="info"?`
33
- background-color: #1976d2 !important;
34
- width: ${t};
35
- `:e==="warning"?`
36
- background-color: ${Zt[700]} !important;
37
- width: ${t};
38
- `:`
39
- background-color: #333;
40
- width: ${t};
41
- `}}
42
- `,gr=z.div`
43
- cursor: pointer;
44
- display: flex;
45
- flex-direction: column;
46
- .title {
47
- overflow: hidden;
48
- text-overflow: ellipsis;
49
- display: -webkit-box;
50
- -webkit-line-clamp: 1;
51
- -webkit-box-orient: vertical;
52
- font-weight: bold;
53
- }
54
- .desc {
55
- overflow: hidden;
56
- text-overflow: ellipsis;
57
- display: -webkit-box;
58
- -webkit-line-clamp: 3;
59
- -webkit-box-orient: vertical;
60
- word-break: break-word;
61
- line-height: 1.2;
62
- .link,
63
- .dapp,
64
- .common {
65
- color: ${he.white};
66
- }
67
- }
68
- `;function mr({ref:e=void 0,keyId:n,notification:t={},viewAllUrl:r,content:o=null}){const i=Yo(),[c,s]=C.useState(t.description||""),a=lr[t.severity||""],{closeSnackbar:l}=ct(),u=()=>l(n);C.useEffect(()=>{ir(t.description||"","en").then(x=>{s(x)})},[t.description]);const d=x=>{x.stopPropagation(),l(n),x?.customPreventRedirect||window.open(r,"_blank")},h=T(()=>tr(t),[t]),p=T(()=>t?.activity,[t]),g=T(()=>!p||p.type==="tips"?null:p?.meta,[p]),m=ar({activity:p,users:[t?.actorInfo],actors:[t?.activity?.actor],extra:{linkColor:he.white}});return f.jsxs(pr,{ref:e,severity:t.severity,breakpoint:i,children:[f.jsxs(dr,{children:[a?f.jsx(pe,{icon:a,fontSize:24}):null,f.jsx(gr,{onClick:d,style:{width:"calc(100% - 30px)"},children:f.jsx(K,{children:h?f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"title",children:m}),g?f.jsx(_,{variant:"subtitle2",component:"p",sx:{fontSize:16,display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,WebkitBoxOrient:"vertical",color:he.white,lineHeight:1.2},children:g?.content}):null]}):f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"title",children:t.title}),o||f.jsx(_,{component:"span",className:"desc",dangerouslySetInnerHTML:{__html:sr(c)}})]})})})]}),f.jsx(fr,{children:f.jsx(je,{"aria-label":"close",color:"inherit",onClick:u,size:"large",children:f.jsx(ur,{})},"close")})]})}const Ce=U(it,"user","notifications"),xr=e=>ne(Ce,{id:e.id,severity:e.severity||"all",componentDid:e.source==="system"?"system":e.componentDid||"all"});function _t({session:e={}}){const{unReadCount:n,user:t,setUnReadCount:r}=e,o=T(()=>t?.did,[t]),i=T(()=>t?.role&&[Me.ADMIN,Me.OWNER].includes(t?.role),[t?.role]),{enqueueSnackbar:c}=ct(),s=at(),a=C.useMemo(()=>!o||t?.isPreviewUser||o===window.blocklet.did,[o,t]),l=C.useMemo(()=>s.arcSphere||s.wallet,[s]),u=T(()=>window.blocklet?.serverVersion,[]),d=Zo("user"),h=T(()=>`${window.blocklet.did}/${o}/${Re.NOTIFICATION_BLOCKLET_CREATE}`,[o]),p=T(()=>`${window.blocklet.did}/${o}/${Re.NOTIFICATION_BLOCKLET_READ}`,[o]),g=C.useCallback(x=>{const{receivers:b,source:w}=x??{},{receiver:v}=b[0]??{};if(v===o&&(i||w!=="system")){r(S=>S+1);const $=un(u,"1.16.42-beta-20250407");if(!l&&x.source==="component"&&$){const S=xr(x),{severity:k,description:j}=x||{},L=["error","warning"].includes(k)||x.sticky;c(j,{variant:k,autoHideDuration:L?null:5e3,anchorOrigin:{vertical:"top",horizontal:"center"},content:A=>f.jsx(mr,{viewAllUrl:S,keyId:A,notification:x})})}}},[o,r,c,u,l,i]),m=C.useCallback(x=>{const{receiver:b,readCount:w}=x??{};b===o&&r(v=>Math.max(v-w,0))},[o,r]);return C.useEffect(()=>(d&&!a&&(d.on(h,g),d.on(p,m)),()=>{d&&!a&&(d.off(h,g),d.off(p,m))}),[d,r,g,h,m,p,a]),!e.user||!Ce?null:f.jsx(je,{size:"medium",variant:"outlined",href:ne(Ce,{read:n<=0}),sx:{"&:hover":{borderRadius:"50%"}},children:f.jsx(Gt,{badgeContent:n,color:"error",invisible:n===0,children:f.jsx(Wo,{style:{width:"auto",height:24}})})})}_t.propTypes={session:y.object};const yr=()=>!!(window?.blocklet?.navigation??[]).find(e=>e.id==="/userCenter/notification");function br({formattedBlocklet:e,addons:n=null,showDomainWarningDialog:t=!0,sessionManagerProps:r={showRole:!0}}){const o=C.use(rt),{locale:i,languages:c,defaultLocale:s}=dn()||{},{enableConnect:a=!0,enableLocale:l=!0}=e,u=!!o?.session?.user;let d=Po({navigation:e?.navigation?.sessionManager,locale:i,defaultLocale:s})||[];d=_o(d,o?.session?.user?.role);const h=(()=>{if(n&&typeof n!="function")return Array.isArray(n)?n:[n];let m=[];if(yr()&&m.push(f.jsx(_t,{session:o.session},"notification-addon")),l&&i&&c.length>1&&m.push(f.jsx(fn,{showText:!1},"locale-selector")),m.push(f.jsx(on,{},"theme-mode-toggle")),a&&o){const x=[];u&&(d?d.slice(0,5):[]).forEach(b=>{x.push({label:b.title,icon:b.icon?f.jsx("iconify-icon",{icon:b.icon,height:24,style:{marginRight:8}}):null,component:"a",href:b.link,key:b.link})}),m.push(f.jsx(Fo,{session:o.session,locale:i},"session-blocklet")),m.push(f.jsx(hn,{session:o.session,locale:i,menu:x,showRole:!0,...r},"session-user"))}return typeof n=="function"&&(m=n(m)||[]),m})(),p=Array.isArray(h)?h:[h],g=[t?f.jsx(Et,{session:o?.session,locale:i}):null,...p].filter(Boolean);return C.createElement(f.Fragment,null,...g)}br.propTypes={formattedBlocklet:y.object.isRequired,addons:y.oneOfType([y.func,y.node]),sessionManagerProps:No,showDomainWarningDialog:y.bool};const Kr=()=>{const e=at();C.useEffect(()=>{(e.wallet||e.arcSphere)&&pn.call("arcHideTopBar","{}")},[e])};export{Ur as A,Vr as L,Po as N,_o as P,To as S,Br as W,Ao as a,So as b,Rt as f,ee as h,Wr as k,Zr as n,ie as p,Kr as s,No as t,Cn as u,Qr as v,br as z};
@@ -1 +0,0 @@
1
- import{T as n}from"./vendor-ux-BGqHwkOM.js";import{t as a}from"./index-B4EOqUNT.js";import{j as r}from"./vendor-mui-core-CV-FnYH_.js";function m(t){return function(o){return r.jsx(n,{translations:a,children:r.jsx(t,{...o})})}}export{m as w};
@@ -1 +0,0 @@
1
- import{g as s}from"./vendor-react-DX7tU9aY.js";import{b0 as i}from"./index-yoaLEniz.js";function c(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=i();const p=s(f),l=c({__proto__:null,default:p},[f]);export{l as z};