@abtnode/blocklet-services 1.16.30-beta-5d9c2c41 → 1.16.30-beta-e7a90fb2

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 (253) hide show
  1. package/api/index.js +0 -3
  2. package/api/libs/jwt.js +5 -1
  3. package/api/routes/federated.js +9 -163
  4. package/api/routes/openembed.js +4 -2
  5. package/api/routes/user-session.js +29 -13
  6. package/api/routes/user.js +26 -7
  7. package/dist/assets/{Add-CVYAN2n2.js → Add-DV9cHTiI.js} +1 -1
  8. package/dist/assets/{AddBox-DnwcDko1.js → AddBox-DjGRetT1.js} +1 -1
  9. package/dist/assets/{Alert-bzh-1cuw.js → Alert-BriK3hjA.js} +1 -1
  10. package/dist/assets/{ArrowDropDown-B3gw7vQE.js → ArrowDropDown-DX29Pf8V.js} +1 -1
  11. package/dist/assets/{Avatar-CDgX4gdS.js → Avatar-CpQhQmV4.js} +1 -1
  12. package/dist/assets/{ButtonGroup-XCe_4Dd6.js → ButtonGroup-BPdi_2z2.js} +1 -1
  13. package/dist/assets/{CheckCircle-ZNzwITLi.js → CheckCircle-DwkE-k6U.js} +1 -1
  14. package/dist/assets/{ChevronRight-BQxGComx.js → ChevronRight-BHXal2s_.js} +1 -1
  15. package/dist/assets/{Close-qW-xij4G.js → Close-BtG4tyUL.js} +1 -1
  16. package/dist/assets/{CloseOutlined-WD0GWqZM.js → CloseOutlined-CYZb8eDz.js} +1 -1
  17. package/dist/assets/{Delete-CRriNkym.js → Delete-rvy-F0hT.js} +1 -1
  18. package/dist/assets/{DeleteOutline-BBqJ5_Hu.js → DeleteOutline-C36lJe42.js} +1 -1
  19. package/dist/assets/{Done-DCkMGid3.js → Done-n1c-sUsw.js} +1 -1
  20. package/dist/assets/{Download-DmONKHB6.js → Download-DuCZFVPl.js} +1 -1
  21. package/dist/assets/{Edit-Dl7Da72r.js → Edit-BrAk9NBL.js} +1 -1
  22. package/dist/assets/{EditIcon-CqMuLEHT.js → EditIcon-CPgYqcwg.js} +1 -1
  23. package/dist/assets/{Error-BXJV4yzT.js → Error-g7gK9Wfp.js} +1 -1
  24. package/dist/assets/{ExpandMore-Br1x9msZ.js → ExpandMore-DpLFPsWa.js} +1 -1
  25. package/dist/assets/{FilterList-CH2nj31H.js → FilterList-BpmYd7MC.js} +5 -5
  26. package/dist/assets/FormControl-Dq6XW9kS.js +1 -0
  27. package/dist/assets/FormControlLabel-CQnpTkDU.js +1 -0
  28. package/dist/assets/FormGroup-C8sAhYQk.js +1 -0
  29. package/dist/assets/{Google-BL_kfN9f.js → Google-C3cw6Unp.js} +4 -4
  30. package/dist/assets/Hidden-c0nvbE8_.js +1 -0
  31. package/dist/assets/{InfoOutlined-CDKG5pPz.js → InfoOutlined-DEt-KJ8v.js} +1 -1
  32. package/dist/assets/{InputAdornment-tlUB0OtI.js → InputAdornment-Dr1oU3Hs.js} +1 -1
  33. package/dist/assets/{InputLabel-D2kHO3Su.js → InputLabel-DYr7To9X.js} +1 -1
  34. package/dist/assets/{LastPage-bpkDUtUD.js → LastPage-DV14H4DC.js} +1 -1
  35. package/dist/assets/{Launch-Ddq1J5R1.js → Launch-DSSRxyd1.js} +1 -1
  36. package/dist/assets/{LaunchOutlined-ItmbAFN0.js → LaunchOutlined-DOGa7uCZ.js} +1 -1
  37. package/dist/assets/{Link-NMapyzp6.js → Link-BzeSWqDp.js} +1 -1
  38. package/dist/assets/{ListItemText-OVWUZ8Yw.js → ListItemText-BWMpM4cA.js} +1 -1
  39. package/dist/assets/{LoadingButton-TfmYHzFH.js → LoadingButton-IrsPdnhT.js} +1 -1
  40. package/dist/assets/{LockIcon-XG87P4do.js → LockIcon-Cx_TySkG.js} +1 -1
  41. package/dist/assets/{Loop-B5igBWDP.js → Loop-CSmyyk97.js} +1 -1
  42. package/dist/assets/{MoreHoriz-c2PDP89o.js → MoreHoriz-B_IgZ_Tw.js} +1 -1
  43. package/dist/assets/{MoreVert-VUWyXDsQ.js → MoreVert-BQD92YJp.js} +1 -1
  44. package/dist/assets/{OpenInNew-ChhskXmz.js → OpenInNew-Ba4HupG6.js} +1 -1
  45. package/dist/assets/{Pagination-aUFIvi5y.js → Pagination-g_z2fX8D.js} +2 -2
  46. package/dist/assets/{PlayArrow-By-kmerY.js → PlayArrow-CvyM0yMY.js} +1 -1
  47. package/dist/assets/{QuestionMarkCircle-B9pyXZy7.js → QuestionMarkCircle-B_wELYAO.js} +1 -1
  48. package/dist/assets/{RadioGroup-DiH-c46e.js → RadioGroup-BSqtRWJR.js} +1 -1
  49. package/dist/assets/{Search-YlhHuO6O.js → Search-D_9DtKpx.js} +1 -1
  50. package/dist/assets/{Select-DxpmtgW4.js → Select-CMM8MR9i.js} +1 -1
  51. package/dist/assets/{ServerLogo-CKkyRIMN.js → ServerLogo-Ds39xok2.js} +1 -1
  52. package/dist/assets/{Skeleton-D1F5dy2x.js → Skeleton-d-rA8WB_.js} +4 -4
  53. package/dist/assets/{Slider-ao2S-hIb.js → Slider-Cv9IlmAx.js} +1 -1
  54. package/dist/assets/{Stepper-DGOl59kQ.js → Stepper-X4KYPIVJ.js} +1 -1
  55. package/dist/assets/{TextField-BYfKGYpN.js → TextField-BYelVRF_.js} +1 -1
  56. package/dist/assets/Toolbar-DI2YKZS2.js +1 -0
  57. package/dist/assets/{ViewList-CjH94hua.js → ViewList-DWZsPuDR.js} +1 -1
  58. package/dist/assets/access-control-Deg0Ez_v.js +13 -0
  59. package/dist/assets/actions-Dv2KmWA_.js +1 -0
  60. package/dist/assets/{add-component-core-HIykDunt.js → add-component-core-CGy2QLvt.js} +1 -1
  61. package/dist/assets/add-resource-B2YCggbD.js +1 -0
  62. package/dist/assets/addon-B-L0-6EM.js +31 -0
  63. package/dist/assets/{analytics-BKsUeXDw.js → analytics-B3U8I3AQ.js} +7 -7
  64. package/dist/assets/api-DJ1sjN9o.js +1 -0
  65. package/dist/assets/ar-lTVP4T3d.js +1 -0
  66. package/dist/assets/audit-logs-Dt1zBSaX.js +58 -0
  67. package/dist/assets/{button-Bfs5dmJW.js → button-BotQVFjI.js} +1 -1
  68. package/dist/assets/click-to-copy-C932KUDy.js +1 -0
  69. package/dist/assets/{complete-Dqz9_rJD.js → complete-BfHgp0O7.js} +3 -3
  70. package/dist/assets/{component-UDUqL4fG.js → component-BziFLYA3.js} +1 -1
  71. package/dist/assets/config-BcfULTik.js +32 -0
  72. package/dist/assets/{config-rlS2Ozpo.js → config-BqLTd80Y.js} +1 -1
  73. package/dist/assets/{config-navigation-CJ-de3j1.js → config-navigation-1U4iVdBl.js} +1 -1
  74. package/dist/assets/confirm-BWW215hi.js +7 -0
  75. package/dist/assets/{connect-BlBcX7xs.js → connect-CfBbqaTr.js} +1 -1
  76. package/dist/assets/connect-DC7BGJJv.js +1 -0
  77. package/dist/assets/connect-to-CHo6hM6n.js +54 -0
  78. package/dist/assets/{content-layout-CvCSD7Cn.js → content-layout-BP4bsvx7.js} +1 -1
  79. package/dist/assets/dashboard-BWG8DtF1.js +165 -0
  80. package/dist/assets/de-B3TxaybY.js +1 -0
  81. package/dist/assets/{did-address-B8vaNsMa.js → did-address-TSZ5XRBj.js} +1 -1
  82. package/dist/assets/domain-B0bCdxTC.js +9 -0
  83. package/dist/assets/domain-list-A5SqLbLS.js +15 -0
  84. package/dist/assets/es-BY0KMFme.js +1 -0
  85. package/dist/assets/exchange-passport-CBjbwwA6.js +1 -0
  86. package/dist/assets/{fallback-l6x8Ufow.js → fallback-Dz8ZuYD5.js} +1 -1
  87. package/dist/assets/{format-error-Blif5aTO.js → format-error-DQS9AwZv.js} +2 -2
  88. package/dist/assets/fr-BiVZLeXU.js +1 -0
  89. package/dist/assets/fuel-BP12PtJ1.js +32 -0
  90. package/dist/assets/{fullpage-uuQNoBvu.js → fullpage-DXFbt1Ve.js} +1 -1
  91. package/dist/assets/hi-B_LrkIOS.js +1 -0
  92. package/dist/assets/{home-DRLEBJrk.js → home-Cx9PAId-.js} +1 -1
  93. package/dist/assets/id-jBXPD1he.js +1 -0
  94. package/dist/assets/{iframe-CVrqJU8l.js → iframe-CO-VEhes.js} +1 -1
  95. package/dist/assets/{index-CSBw7k-G.js → index--YUaVsoq.js} +22 -22
  96. package/dist/assets/index-46Rvg-Bo.js +1 -0
  97. package/dist/assets/{index-CvAjMcvY.js → index-B0wa_Sca.js} +1 -1
  98. package/dist/assets/{index-ZShT0NT3.js → index-B22_1WOD.js} +1 -1
  99. package/dist/assets/{index-Ci6IWDWf.js → index-B5Pm_bPi.js} +1 -1
  100. package/dist/assets/{index-CxrCgTse.js → index-BJDKEH0b.js} +7 -7
  101. package/dist/assets/{index-CWfGuhnW.js → index-BSHfXuRt.js} +7 -7
  102. package/dist/assets/index-BcFOSrVl.js +68 -0
  103. package/dist/assets/{index-DA21JYSh.js → index-BmHPL-9s.js} +5 -5
  104. package/dist/assets/{index-cHjJj_dG.js → index-BqmsKa7O.js} +1 -1
  105. package/dist/assets/{index-cVr26mKy.js → index-BsjCwHmK.js} +1 -1
  106. package/dist/assets/{index-tfBxNgKx.js → index-Bwzls06Y.js} +1 -1
  107. package/dist/assets/{index-DNlUUcTz.js → index-ByYl1QnH.js} +1 -1
  108. package/dist/assets/{index-Bn5NB2JF.js → index-CFQwbx1S.js} +1 -1
  109. package/dist/assets/{index-DT8M-stk.js → index-COZKzHiS.js} +1 -1
  110. package/dist/assets/{index-Bo9QnPG1.js → index-CQU16qpp.js} +1 -1
  111. package/dist/assets/{index-BJ9Owdb4.js → index-CTFO1wAr.js} +12 -12
  112. package/dist/assets/{index-Bdg2hH7J.js → index-CaLGv6xG.js} +6 -6
  113. package/dist/assets/{index-D3CByOWX.js → index-ChpB_Xok.js} +1 -1
  114. package/dist/assets/{index-wK8MJeLI.js → index-CndSwPzI.js} +2 -2
  115. package/dist/assets/{index-ByD4ydGX.js → index-D-GkMvG_.js} +1 -1
  116. package/dist/assets/{index-Cpb38s9N.js → index-D5PXuh6o.js} +4 -4
  117. package/dist/assets/{index-B8k2vim3.js → index-DCMTEGgZ.js} +1 -1
  118. package/dist/assets/{index-255o-u6L.js → index-DU7LqWjQ.js} +3 -2
  119. package/dist/assets/{index-BS9TWd2p.js → index-D_u35EkG.js} +9 -9
  120. package/dist/assets/{index-BA1LIiSA.js → index-DtAm5Ed6.js} +1 -1
  121. package/dist/assets/index-Du6azec5.js +4 -0
  122. package/dist/assets/{index-_F8kdc8Q.js → index-MoRwjSwP.js} +1 -1
  123. package/dist/assets/{index-DiWAz-Pl.js → index-TTSckhl8.js} +1 -1
  124. package/dist/assets/{index--iA86Fqj.js → index-VIHj0M7P.js} +1 -1
  125. package/dist/assets/{index-BnWtXVAz.js → index-ozDSMBYi.js} +2 -2
  126. package/dist/assets/{index-Dt07hFjg.js → index-zQvc8SIq.js} +1 -1
  127. package/dist/assets/{index.es-B5pLCk4-.js → index.es-CYl4P_xg.js} +2 -2
  128. package/dist/assets/{index.esm-MqNtIWnn.js → index.esm-DDyWFyUp.js} +1 -1
  129. package/dist/assets/{invitation-BfR9BdX3.js → invitation-YCFRX3K4.js} +6 -6
  130. package/dist/assets/invite-BVqEvYi7.js +10 -0
  131. package/dist/assets/issue-passport-Bt2ICeaH.js +1 -0
  132. package/dist/assets/{item-DxzYKgGj.js → item-DmDrPoAj.js} +1 -1
  133. package/dist/assets/ja-DKiHQ6DE.js +1 -0
  134. package/dist/assets/{jss-plugin-props-sort.esm-D8X7o2pr.js → jss-plugin-props-sort.esm-B9z92TrV.js} +1 -1
  135. package/dist/assets/ko-BBYyf1yM.js +1 -0
  136. package/dist/assets/{launch-result-message-DlfUpqsM.js → launch-result-message-DpNOYW9u.js} +1 -1
  137. package/dist/assets/{layout-B0gSHs6T.js → layout-D41GSjev.js} +2 -2
  138. package/dist/assets/list-header-cw9lRKSX.js +57 -0
  139. package/dist/assets/localization-9mzelGR9.js +1 -0
  140. package/dist/assets/{log-CypPgBlx.js → log-DVDRYSeA.js} +1 -1
  141. package/dist/assets/login-BLIQel5D.js +1 -0
  142. package/dist/assets/{login-oauth-callback-2ujdQmZH.js → login-oauth-callback--4mls_Fw.js} +1 -1
  143. package/dist/assets/{logo-uploader-ClUYYxL1.js → logo-uploader-CHBeSau3.js} +5 -5
  144. package/dist/assets/{lost-passport-CPnepwqM.js → lost-passport-6PNRRlCd.js} +4 -4
  145. package/dist/assets/{lottie-7e9js8BB.js → lottie-C16LOHrZ.js} +1 -1
  146. package/dist/assets/notifications-DHYTuxQt.js +62 -0
  147. package/dist/assets/{open-window-BPoK7T-M.js → open-window-CEqHc-YI.js} +1 -1
  148. package/dist/assets/overview-jW78KQ6d.js +12 -0
  149. package/dist/assets/page-header-Bjl7D46v.js +31 -0
  150. package/dist/assets/{permission-ClswWE64.js → permission-BK9x4qjQ.js} +1 -1
  151. package/dist/assets/{preferences-COQfVvgo.js → preferences-4fQh6PBV.js} +1 -1
  152. package/dist/assets/pt-DI2MIkSi.js +1 -0
  153. package/dist/assets/publish-resource-RsLy3V3l.js +1 -0
  154. package/dist/assets/{react-C8LgBs_k.js → react-DCoycSH4.js} +16 -16
  155. package/dist/assets/{redux-_YFRGxHq.js → redux-Xix6UYN5.js} +1 -1
  156. package/dist/assets/resource-dialog-CMS1eEc0.js +57 -0
  157. package/dist/assets/ru-B2L3CRQ4.js +1 -0
  158. package/dist/assets/sdk-B75CkXUw.js +1 -0
  159. package/dist/assets/{selector-YK8Xf2Rq.js → selector-BcHp8r2b.js} +3 -3
  160. package/dist/assets/session-AqfK0jLG.js +1 -0
  161. package/dist/assets/setup-DXuWRjLR.js +19 -0
  162. package/dist/assets/{shorten-label-CeQzn9-u.js → shorten-label-DZ5n7VkB.js} +1 -1
  163. package/dist/assets/{slicedToArray-Ci6zdtll.js → slicedToArray-DiN6EoYj.js} +2 -2
  164. package/dist/assets/{spaces-Cz9_Xdg_.js → spaces-DBKeHx91.js} +1 -1
  165. package/dist/assets/start-C4mLiamV.js +187 -0
  166. package/dist/assets/step-actions-NyA7AGpj.js +31 -0
  167. package/dist/assets/studio-CC7YQ-9Q.js +6 -0
  168. package/dist/assets/switch-control-VH3u6pwk.js +13 -0
  169. package/dist/assets/th-CfNBHHtU.js +1 -0
  170. package/dist/assets/{toUpper-DiCihDmj.js → toUpper-D8eon-dl.js} +1 -1
  171. package/dist/assets/{transfer-BTtIrW0g.js → transfer-Dp36g86n.js} +2 -2
  172. package/dist/assets/{uniqBy-Blkjf7ps.js → uniqBy-Cev3lMnU.js} +1 -1
  173. package/dist/assets/unsubscribe-Be0k3pAZ.js +1 -0
  174. package/dist/assets/{url-join-Cc5MbaZB.js → url-join-B-UX0vQK.js} +1 -1
  175. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BNPOv7wG.js → use-blocklet-info-for-connect-did-spaces-DF1lby8c.js} +1 -1
  176. package/dist/assets/use-mobile-BLqjm-5m.js +1 -0
  177. package/dist/assets/{useAsync-CbQ86h-f.js → useAsync-PE3W-DLW.js} +1 -1
  178. package/dist/assets/{useFormControl-CDmRrmKw.js → useFormControl-DMGx-jdt.js} +1 -1
  179. package/dist/assets/{useLocalStorage-DvZZwTDC.js → useLocalStorage-eP0cInBT.js} +1 -1
  180. package/dist/assets/{useSetState-BpZL0m-H.js → useSetState-DEVLe2Fz.js} +1 -1
  181. package/dist/assets/useSlot-BrU8y60n.js +1 -0
  182. package/dist/assets/{useSlotProps-C9cl4-TZ.js → useSlotProps-fP10cTIP.js} +1 -1
  183. package/dist/assets/useThemeProps-C59Glnbx.js +1 -0
  184. package/dist/assets/user-center-CkHZ_2ui.js +1 -0
  185. package/dist/assets/{user-sessions-QPFNNTrZ.js → user-sessions-C8nlOE7U.js} +1 -1
  186. package/dist/assets/{util-C2KlfrNA.js → util-yXMDVjHb.js} +1 -1
  187. package/dist/assets/vi-DbzhnofW.js +1 -0
  188. package/dist/assets/{wrap-locale-aa3oShvm.js → wrap-locale-DL11xPuS.js} +1 -1
  189. package/dist/assets/zh-FO0C29Rb.js +1 -0
  190. package/dist/assets/zh-tw-cyWwf75a.js +1 -0
  191. package/dist/index.html +1 -1
  192. package/dist/service-worker.js +1 -1
  193. package/package.json +36 -36
  194. package/dist/assets/FormControl-DE9N6Db0.js +0 -1
  195. package/dist/assets/FormControlLabel-DGbEY6m8.js +0 -1
  196. package/dist/assets/FormGroup-n5wwFjBA.js +0 -1
  197. package/dist/assets/Hidden-BYIvIL0k.js +0 -1
  198. package/dist/assets/Toolbar-B_xj2T9O.js +0 -1
  199. package/dist/assets/access-control-tbrDClnL.js +0 -13
  200. package/dist/assets/actions-HNNA8mAr.js +0 -1
  201. package/dist/assets/add-resource-C-yDv8nK.js +0 -1
  202. package/dist/assets/addon-DIKMgGhZ.js +0 -31
  203. package/dist/assets/api-D5rmifNl.js +0 -1
  204. package/dist/assets/ar-BOQhQYjx.js +0 -1
  205. package/dist/assets/audit-logs-HTNz9Ui5.js +0 -58
  206. package/dist/assets/click-to-copy-D14O9X1o.js +0 -1
  207. package/dist/assets/config-CPhfDBZV.js +0 -32
  208. package/dist/assets/confirm-CnJhc68Q.js +0 -7
  209. package/dist/assets/connect-31ih5dtl.js +0 -1
  210. package/dist/assets/connect-to-NQzylv_u.js +0 -54
  211. package/dist/assets/dashboard-WQeB59iZ.js +0 -165
  212. package/dist/assets/de-t1rC40NN.js +0 -1
  213. package/dist/assets/domain-DLjLI_5f.js +0 -9
  214. package/dist/assets/domain-list-RbmvUGd2.js +0 -15
  215. package/dist/assets/es-DfbI4mbP.js +0 -1
  216. package/dist/assets/exchange-passport-BVVa20rU.js +0 -1
  217. package/dist/assets/fr-_U79lUBj.js +0 -1
  218. package/dist/assets/fuel-BlKNXMVP.js +0 -32
  219. package/dist/assets/hi-Di6UaHUZ.js +0 -1
  220. package/dist/assets/id-CuP-z2YS.js +0 -1
  221. package/dist/assets/index-CJj_4VZH.js +0 -4
  222. package/dist/assets/index-DHvniSKa.js +0 -68
  223. package/dist/assets/index-DTg4Ig3M.js +0 -1
  224. package/dist/assets/invite-COB2td-Z.js +0 -10
  225. package/dist/assets/issue-passport-C8WI5I2r.js +0 -1
  226. package/dist/assets/ja-CsYEjFuw.js +0 -1
  227. package/dist/assets/ko-DwcGU2RJ.js +0 -1
  228. package/dist/assets/list-header-Bma_K6X2.js +0 -57
  229. package/dist/assets/localization-DQx8Ct-X.js +0 -1
  230. package/dist/assets/login-CN16WkWc.js +0 -1
  231. package/dist/assets/notifications-DNM-dija.js +0 -62
  232. package/dist/assets/overview-D47edAva.js +0 -12
  233. package/dist/assets/page-header-Dlu4P1xk.js +0 -31
  234. package/dist/assets/pt-DF-luAxv.js +0 -1
  235. package/dist/assets/publish-resource-D7CEW6PO.js +0 -1
  236. package/dist/assets/resource-dialog-CROCpfsh.js +0 -57
  237. package/dist/assets/ru-DKnB6G3S.js +0 -1
  238. package/dist/assets/sdk-DR0yLm5u.js +0 -1
  239. package/dist/assets/session-CBJgIJsY.js +0 -1
  240. package/dist/assets/setup-Cq2NZKc3.js +0 -19
  241. package/dist/assets/start-DfU9ilW5.js +0 -187
  242. package/dist/assets/step-actions-BvzypTeZ.js +0 -31
  243. package/dist/assets/studio-Dogn9FY7.js +0 -6
  244. package/dist/assets/switch-control-D9hjlMId.js +0 -13
  245. package/dist/assets/th-Dna3ZHAu.js +0 -1
  246. package/dist/assets/unsubscribe-Bl9PzG7o.js +0 -1
  247. package/dist/assets/use-mobile-CPAuyQwU.js +0 -1
  248. package/dist/assets/useSlot-DxWJyNOJ.js +0 -1
  249. package/dist/assets/useThemeProps-_7k5Wu1c.js +0 -1
  250. package/dist/assets/user-center-CKSVKtEg.js +0 -1
  251. package/dist/assets/vi-tHyNmIs-.js +0 -1
  252. package/dist/assets/zh-CZ75v_KR.js +0 -1
  253. package/dist/assets/zh-tw-BDv-O3sb.js +0 -1
@@ -0,0 +1,165 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-jW78KQ6d.js","assets/index-CaLGv6xG.js","assets/index-D8NuaJ66.css","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/index-B22_1WOD.js","assets/index-D-GkMvG_.js","assets/did-address-TSZ5XRBj.js","assets/Link-BzeSWqDp.js","assets/domain-list-A5SqLbLS.js","assets/Add-DV9cHTiI.js","assets/ExpandMore-DpLFPsWa.js","assets/LockIcon-Cx_TySkG.js","assets/index-B5Pm_bPi.js","assets/permission-BK9x4qjQ.js","assets/useAsync-PE3W-DLW.js","assets/session-AqfK0jLG.js","assets/confirm-BWW215hi.js","assets/format-error-DQS9AwZv.js","assets/Alert-BriK3hjA.js","assets/useSlot-BrU8y60n.js","assets/useSetState-DEVLe2Fz.js","assets/use-mobile-BLqjm-5m.js","assets/InfoOutlined-DEt-KJ8v.js","assets/OpenInNew-Ba4HupG6.js","assets/index-CFQwbx1S.js","assets/api-DJ1sjN9o.js","assets/util-yXMDVjHb.js","assets/TextField-BYelVRF_.js","assets/FormControl-Dq6XW9kS.js","assets/useFormControl-DMGx-jdt.js","assets/InputLabel-DYr7To9X.js","assets/Select-CMM8MR9i.js","assets/LoadingButton-IrsPdnhT.js","assets/useThemeProps-C59Glnbx.js","assets/Delete-rvy-F0hT.js","assets/actions-Dv2KmWA_.js","assets/MoreHoriz-B_IgZ_Tw.js","assets/ListItemText-BWMpM4cA.js","assets/index-ByYl1QnH.js","assets/useLocalStorage-eP0cInBT.js","assets/MoreVert-BQD92YJp.js","assets/PlayArrow-CvyM0yMY.js","assets/ButtonGroup-BPdi_2z2.js","assets/RadioGroup-BSqtRWJR.js","assets/FormControlLabel-CQnpTkDU.js","assets/FormGroup-C8sAhYQk.js","assets/Avatar-CpQhQmV4.js","assets/fallback-Dz8ZuYD5.js","assets/index-D_u35EkG.js","assets/Toolbar-DI2YKZS2.js","assets/Hidden-c0nvbE8_.js","assets/index-ozDSMBYi.js","assets/selector-BcHp8r2b.js","assets/index--YUaVsoq.js","assets/index-MoRwjSwP.js","assets/Loop-CSmyyk97.js","assets/ViewList-DWZsPuDR.js","assets/list-header-cw9lRKSX.js","assets/Search-D_9DtKpx.js","assets/index-COZKzHiS.js","assets/FilterList-BpmYd7MC.js","assets/toPropertyKey-PLuKRk1e.js","assets/LastPage-DV14H4DC.js","assets/index-BqmsKa7O.js","assets/redux-Xix6UYN5.js","assets/index-BSHfXuRt.js","assets/resource-dialog-CMS1eEc0.js","assets/CloseOutlined-CYZb8eDz.js","assets/index-ChpB_Xok.js","assets/user-sessions-C8nlOE7U.js","assets/click-to-copy-C932KUDy.js","assets/sdk-B75CkXUw.js","assets/index-HqFqdQ4r.js","assets/shorten-label-DZ5n7VkB.js","assets/index-BJDKEH0b.js","assets/index-CndSwPzI.js","assets/EditIcon-CPgYqcwg.js","assets/Google-C3cw6Unp.js","assets/InputAdornment-Dr1oU3Hs.js","assets/index-CTFO1wAr.js","assets/iframe-CO-VEhes.js","assets/Edit-BrAk9NBL.js","assets/Done-n1c-sUsw.js","assets/logo-uploader-CHBeSau3.js","assets/ArrowDropDown-DX29Pf8V.js","assets/ChevronRight-BHXal2s_.js","assets/index.esm-DDyWFyUp.js","assets/mode-B2dWMeTO.js","assets/Launch-DSSRxyd1.js","assets/config-BqLTd80Y.js","assets/switch-control-VH3u6pwk.js","assets/Slider-Cv9IlmAx.js","assets/index-CQU16qpp.js","assets/index-VIHj0M7P.js","assets/index-foZCwT8M.css","assets/audit-logs-Dt1zBSaX.js","assets/index-BsjCwHmK.js","assets/index-D4PP6P2d.css","assets/Pagination-g_z2fX8D.js","assets/index-DCMTEGgZ.js","assets/log-DVDRYSeA.js","assets/Download-DuCZFVPl.js","assets/log-D33dFtt_.css","assets/index-D5PXuh6o.js","assets/AddBox-DjGRetT1.js","assets/Error-g7gK9Wfp.js","assets/QuestionMarkCircle-B_wELYAO.js","assets/useSlotProps-fP10cTIP.js","assets/DeleteOutline-C36lJe42.js","assets/item-DmDrPoAj.js","assets/jss-plugin-props-sort.esm-B9z92TrV.js","assets/Stepper-X4KYPIVJ.js","assets/config-navigation-1U4iVdBl.js","assets/slicedToArray-DiN6EoYj.js","assets/index-DtAm5Ed6.js","assets/index-B0wa_Sca.js","assets/Skeleton-d-rA8WB_.js","assets/index-BcFOSrVl.js","assets/use-blocklet-info-for-connect-did-spaces-DF1lby8c.js","assets/spaces-DBKeHx91.js","assets/component-BziFLYA3.js","assets/index-TTSckhl8.js","assets/toUpper-D8eon-dl.js","assets/add-component-core-CGy2QLvt.js","assets/lottie-C16LOHrZ.js","assets/index-DU7LqWjQ.js","assets/url-join-B-UX0vQK.js","assets/launch-result-message-DpNOYW9u.js","assets/Close-BtG4tyUL.js","assets/page-header-Bjl7D46v.js","assets/uniqBy-Cev3lMnU.js","assets/index-46Rvg-Bo.js","assets/connect-to-CHo6hM6n.js","assets/content-layout-BP4bsvx7.js","assets/preact.module-DJUF--8d.js","assets/add-component-core-D_j8BgsJ.css","assets/analytics-B3U8I3AQ.js","assets/LaunchOutlined-DOGa7uCZ.js","assets/notifications-DHYTuxQt.js"])))=>i.map(i=>d[i]);
2
+ import{r as x,aF as Yn,aG as Jn,aH as Nt,aI as W,aJ as er,aK as tr,aL as ge,aM as Pn,aN as vt,j as c,aO as nr,aP as ho,Z as B,$ as z,P as m,a0 as Ye,e as Je,aQ as ye,a2 as Mt,a9 as k,ab as Y,aR as Ne,aD as Ut,aS as vo,L as kt,aT as yt,aU as yo,n as te,a3 as he,G as $,T as G,t as J,aV as xo,aW as bo,c as Be,aX as jo,aY as xt,u as Q,aZ as wo,B as D,K as So,a_ as _o,a as He,a$ as Co,b0 as Oo,b1 as Po,b2 as Io,b3 as Eo,b4 as Ro,b5 as To,b6 as Lo,b7 as Do,b8 as rr,b9 as Ao,ba as $o,bb as No,bc as or,bd as sr,be as ir,a1 as et,bf as ar,bg as ce,bh as me,bi as Bt,bj as cr,bk as Mo,ag as qe,ak as Uo,bl as ko,bm as Bo,bn as zo,aj as Fo,bo as Vo,bp as Ho,al as Ee,bq as qo,aC as Ko,C as Ke,br as Wo,bs as Go,bt as _e,bu as lr,bv as Qo,ae as In,a8 as Xo,ac as Zo,af as Yo,ah as Jo,bw as ze,a7 as Me,bx as es,H as ts,a4 as F,by as ns,aq as rs,V as En}from"./index-CaLGv6xG.js";import{T as os}from"./index-ByYl1QnH.js";import{_ as Rn}from"./useLocalStorage-eP0cInBT.js";import{d as ss}from"./MoreVert-BQD92YJp.js";import{C as Tn}from"./confirm-BWW215hi.js";import{d as is}from"./Delete-rvy-F0hT.js";import{d as as,u as cs}from"./PlayArrow-CvyM0yMY.js";import{A as ur}from"./Alert-BriK3hjA.js";import{L as ls,a as dr}from"./ListItemText-BWMpM4cA.js";import{B as us}from"./ButtonGroup-BPdi_2z2.js";import{R as ds,a as Ln}from"./RadioGroup-BSqtRWJR.js";import{F as bt,C as fs}from"./FormControlLabel-CQnpTkDU.js";import{f as zt}from"./format-error-DQS9AwZv.js";import{A as fr}from"./Avatar-CpQhQmV4.js";import{u as ps}from"./session-AqfK0jLG.js";import{D as ms,_ as pr,P as gs}from"./permission-BK9x4qjQ.js";import{T as mr,b as hs}from"./index-D-GkMvG_.js";import{L as gr}from"./Link-BzeSWqDp.js";import{_ as hr}from"./useSetState-DEVLe2Fz.js";import{E as vs}from"./fallback-Dz8ZuYD5.js";import{u as ys}from"./index-D_u35EkG.js";import{L as xs,D as bs}from"./index-ozDSMBYi.js";const vr=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function js(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=vr({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!o&&(s=!0);const{badgeContent:a,max:l=r}=s?i:e,u=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:u}}function ws(e){return Jn("MuiBadge",e)}const re=Yn("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Ss=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],ut=10,dt=4,_s=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:s={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${W(n.vertical)}${W(n.horizontal)}`,`anchorOrigin${W(n.vertical)}${W(n.horizontal)}${W(o)}`,`overlap${W(o)}`,t!=="default"&&`color${W(t)}`]};return nr(a,ws,s)},Cs=Nt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Os=Nt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${W(n.anchorOrigin.vertical)}${W(n.anchorOrigin.horizontal)}${W(n.overlap)}`],n.color!=="default"&&t[`color${W(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:ut*2,lineHeight:1,padding:"0 6px",height:ut*2,borderRadius:ut,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,o;return((r=e.vars)!=null?r:e).palette[n].main&&((o=e.vars)!=null?o:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:dt,height:dt*2,minWidth:dt*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${re.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),yr=x.forwardRef(function(t,n){var r,o,i,s,a,l;const u=er({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:f,component:p,components:v={},componentsProps:b={},children:h,overlap:j="rectangular",color:I="default",invisible:g=!1,max:_=99,badgeContent:w,slots:O,slotProps:S,showZero:R=!1,variant:C="standard"}=u,P=tr(u,Ss),{badgeContent:E,invisible:T,max:ne,displayValue:M}=js({max:_,invisible:g,badgeContent:w,showZero:R}),be=vr({anchorOrigin:d,color:I,overlap:j,variant:C,badgeContent:w}),je=T||E==null&&C!=="dot",{color:it=I,overlap:at=j,anchorOrigin:ct=d,variant:ie=C}=je?be:u,y=ie!=="dot"?M:void 0,L=ge({},u,{badgeContent:E,invisible:je,max:ne,displayValue:y,showZero:R,anchorOrigin:ct,color:it,overlap:at,variant:ie}),V=_s(L),H=(r=(o=O==null?void 0:O.root)!=null?o:v.Root)!=null?r:Cs,X=(i=(s=O==null?void 0:O.badge)!=null?s:v.Badge)!=null?i:Os,q=(a=S==null?void 0:S.root)!=null?a:b.root,N=(l=S==null?void 0:S.badge)!=null?l:b.badge,lt=Pn({elementType:H,externalSlotProps:q,externalForwardedProps:P,additionalProps:{ref:n,as:p},ownerState:L,className:vt(q==null?void 0:q.className,V.root,f)}),de=Pn({elementType:X,externalSlotProps:N,ownerState:L,className:vt(V.badge,N==null?void 0:N.className)});return c.jsxs(H,ge({},lt,{children:[h,c.jsx(X,ge({},de,{children:y}))]}))});function Ps(e){return Jn("MuiListItemAvatar",e)}Yn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Is=["className"],Es=e=>{const{alignItems:t,classes:n}=e;return nr({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Ps,n)},Rs=Nt("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>ge({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Ts=x.forwardRef(function(t,n){const r=er({props:t,name:"MuiListItemAvatar"}),{className:o}=r,i=tr(r,Is),s=x.useContext(ho),a=ge({},r,{alignItems:s.alignItems}),l=Es(a);return c.jsx(Rs,ge({className:vt(l.root,o),ownerState:a,ref:n},i))});var Ft={},Ls=z;Object.defineProperty(Ft,"__esModule",{value:!0});var xr=Ft.default=void 0,Ds=Ls(B()),As=c;xr=Ft.default=(0,Ds.default)((0,As.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Vt={},$s=z;Object.defineProperty(Vt,"__esModule",{value:!0});var br=Vt.default=void 0,Ns=$s(B()),Ms=c;br=Vt.default=(0,Ns.default)((0,Ms.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var Ht={},Us=z;Object.defineProperty(Ht,"__esModule",{value:!0});var jr=Ht.default=void 0,ks=Us(B()),Bs=c;jr=Ht.default=(0,ks.default)((0,Bs.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var qt={},zs=z;Object.defineProperty(qt,"__esModule",{value:!0});var wr=qt.default=void 0,Fs=zs(B()),Vs=c;wr=qt.default=(0,Fs.default)((0,Vs.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Kt={},Hs=z;Object.defineProperty(Kt,"__esModule",{value:!0});var Sr=Kt.default=void 0,qs=Hs(B()),Ks=c;Sr=Kt.default=(0,qs.default)((0,Ks.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Wt={},Ws=z;Object.defineProperty(Wt,"__esModule",{value:!0});var _r=Wt.default=void 0,Gs=Ws(B()),Qs=c;_r=Wt.default=(0,Gs.default)((0,Qs.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var Gt={},Xs=z;Object.defineProperty(Gt,"__esModule",{value:!0});var Cr=Gt.default=void 0,Zs=Xs(B()),Ys=c;Cr=Gt.default=(0,Zs.default)((0,Ys.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});var Or=Qt.default=void 0;Js(x);var Dn=c;function Js(e){return e&&e.__esModule?e:{default:e}}function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?An(Object(n),!0).forEach(function(r){ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ei(e,t,n){return(t=ti(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ti(e){var t=ni(e,"string");return typeof t=="symbol"?t:t+""}function ni(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xt=function(t){return(0,Dn.jsx)("svg",$n($n({},t),{},{children:(0,Dn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.33 8.207A11.52 11.52 0 0 1 23.504 26.34H8.496A11.52 11.52 0 0 1 9.33 8.207zM16 3.52a14.08 14.08 0 0 0-8.76 25.102c.226.18.506.278.796.278h15.928c.29 0 .57-.098.797-.278A14.08 14.08 0 0 0 16 3.52zm5.883 10.072a1.28 1.28 0 0 0-1.81-1.81l-2.205 2.205a4.124 4.124 0 1 0 1.81 1.81l2.205-2.205zm-7.447 4.073a1.564 1.564 0 1 1 3.128 0 1.564 1.564 0 0 1-3.129 0z",fill:"currentColor"})}))};Xt.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};Xt.displayName="dashboard";Or=Qt.default=Xt;var Zt={},ri=z;Object.defineProperty(Zt,"__esModule",{value:!0});var Pr=Zt.default=void 0,oi=ri(B()),si=c;Pr=Zt.default=(0,oi.default)((0,si.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const pe={Start:as,Stop:xr,Restart:br,Reload:jr,Remove:is,Config:wr,Log:Sr,Group:_r,Cancel:Cr,Dashboard:Or,Overview:Pr},ii="internal",ai="external";function Yt({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:o,getComponentUrl:i,useBlockletUrlEvaluation:s,...a}){const l=Je(),u=ye(),[d,f]=x.useState(null),[p,v]=x.useState(null),[b,h]=x.useState(!1),[j,I]=x.useState(null),{t:g}=x.useContext(Mt),[_]=Rn("skip-blocklet-setup",!1),{loading:w,recommendedUrl:O}=s(e),[S]=Rn("blocklet-type-filter",ii),R=k.isInProgress(e.status),[C,P]=x.useState(!1);x.useEffect(()=>{var L,V;if(!(e!=null&&e.controller))return;P(((V=(L=e==null?void 0:e.controller)==null?void 0:L.status)==null?void 0:V.value)===Y.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var H,X,q;try{const N=await u.api.getLauncherSession({input:{launcherSessionId:(H=e==null?void 0:e.controller)==null?void 0:H.launcherSessionId,launcherUrl:(X=e==null?void 0:e.controller)==null?void 0:X.launcherUrl}});if(N!=null&&N.error){console.error("get launcher session failed",N.error);return}P([$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((q=N==null?void 0:N.launcherSession)==null?void 0:q.status))}catch(N){console.error("call getLauncherSession error",N)}})()},[]);const{inService:E}=u,T=(y,L,V=!1)=>async()=>{const H=async de=>{var $e;t({action:y,blocklet:e}),h(!0),v(y);let Ae=!1;try{if(y==="remove")await L(de);else if(y==="start"){if(!k.hasRunnableComponent(e)){J.error(g("blocklet.noComponent"));return}if(!E&&!_&&!(($e=e.settings)!=null&&$e.initialized)&&e.mode!==Y.BLOCKLET_MODES.DEVELOPMENT){const Z=xo(u.info),On=new URL(O);On.searchParams.set("serverUrl",Z),window.open(On.href),n({action:y,blocklet:e});return}const ae=e.children.filter(Z=>!k.isInProgress(Z.status)&&Z.status!=="running").map(Z=>Z.meta.did),fe={did:e.meta.did,componentDids:ae};await L({input:fe})}else if(["stop","restart","reload"].includes(y)){const ae=e.children.filter(Z=>Z.status==="running").map(Z=>Z.meta.did),fe={did:e.meta.did,componentDids:ae};await L({input:fe})}else{const ae={did:e.meta.did};await L({input:ae})}y==="remove"?Ae=!0:await bo(1e3),y==="reload"&&J.success(g("blocklet.reloadSuccess")),I(null),n({action:y,blocklet:e})}catch(ae){const fe=`Blocklet ${y} failed: ${zt(ae)}`;throw n({action:y,blocklet:e,error:new Error(fe)}),new Error(fe)}finally{Ae||h(!1)}},X=()=>{h(!1),I(null)},q=k.getDisplayName(e,!0),N=e.mode===Y.BLOCKLET_MODES.DEVELOPMENT?{description:()=>c.jsx(G,{component:"div",children:c.jsx(G,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(de,Ae)=>c.jsxs(G,{component:"div",children:[c.jsx(G,{gutterBottom:!0,children:g("blocklet.action.removeApplicationDescription")}),c.jsxs(ds,{name:"removeType",value:de.removeType,onChange:$e=>Ae({...de,removeType:$e.target.value}),children:[c.jsx(bt,{value:"backup",control:c.jsx(Ln,{}),label:g("blocklet.action.removeApplicationAfterBackup")}),c.jsx(bt,{value:"complete",control:c.jsx(Ln,{}),label:g("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},lt={stop:{title:`${g("common.stop")} ${q}`,description:g("blocklet.action.stopDescription"),confirm:g("blocklet.action.confirmStop"),cancel:g("common.cancel"),onConfirm:H,onCancel:X},restart:{title:`${g("common.restart")} ${q}`,description:g("blocklet.action.restartDescription"),confirm:g("blocklet.action.confirmRestart"),cancel:g("common.cancel"),onConfirm:H,onCancel:X},remove:{title:`${g("common.remove")} ${q}`,confirm:g("blocklet.action.confirmRemove"),cancel:g("common.cancel"),onConfirm:H,onCancel:X,...N},cancelDownload:{title:`${g("common.cancel")}`,description:g("blocklet.action.cancelDownloadDescription",{name:q}),confirm:g("common.confirm"),cancel:g("common.cancel"),onConfirm:H,onCancel:X}};V?I(lt[y]):await H()},ne=!!d,M=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(y.currentTarget)},be=y=>{try{y.stopPropagation(),y.preventDefault()}catch{}f(null)},je=async(y,L)=>{try{L.stopPropagation(),L.preventDefault()}catch{}if(typeof y.handler=="function")try{h(!0),v(y.action),await y.handler()}catch(V){console.error(`Blocklet ${y.name} failed: `,V)}finally{h(!1),f(null)}else f(null)},it=!E&&k.isDeletableBlocklet(e)?{action:"remove",icon:pe.Remove,name:g("common.remove"),handler:T("remove",async({removeType:y})=>{y==="backup"&&await u.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await u.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:R}:null,at={action:"remove",icon:({sx:y,...L})=>c.jsx(pe.Cancel,{sx:{...y,paddingRight:"2px",zoom:.95},...L}),name:g("common.cancel"),handler:T("cancelDownload",u.api.cancelDownloadBlocklet,!0)},ct=k.getAppMissingConfigs(e);let ie=[{action:"start",icon:pe.Start,name:g("common.start"),handler:T("start",u.api.startBlocklet),disabled:C||e.children.every(y=>y.status==="running")||Ne(e.status)||w||R},{action:"stop",icon:pe.Stop,name:g("common.stop"),handler:T("stop",u.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:pe.Restart,name:g("common.restart"),handler:T("restart",u.api.restartBlocklet,!0),disabled:C||e.status!=="running"},Ne(e.status)?at:it,{separator:!0},E?null:{onlyInMenu:!0,action:"overview",icon:pe.Overview,name:g("common.overview"),handler:()=>{l(`/blocklets/${e.meta.did}/overview`)},disabled:Ne(e.status)}].filter(Boolean);return S===ai&&(ie=ie.filter(y=>y.onlyInMenu)),r==="menu"?c.jsxs(Nn,{"data-cy":"blocklet-actions",children:[c.jsx(Ut,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:M,size:"small",disabled:!o||!Ne(e.status)&&b,children:c.jsx(ss,{})}),c.jsxs(vo,{id:"actions-menu",anchorEl:d,keepMounted:!0,open:ne,onClose:be,PaperProps:{},children:[ct.length>0&&c.jsxs(ur,{style:{maxWidth:"400px"},severity:"error",children:[g("blocklet.config.missingRequired"),c.jsx("br",{}),c.jsx(kt,{to:`/blocklets/${e.meta.did}/components`,children:g("blocklet.config.gotoFix")})]}),ie.map((y,L)=>y.separator?c.jsx(yt,{},`separator-${L}`):c.jsxs(yo,{dense:!0,onClick:V=>je(y,V),disabled:b||y.disabled,"data-cy":`${y.action}-blocklet`,children:[c.jsx(ls,{style:{minWidth:24},children:p===y.action&&b?c.jsx(te,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{fontSize:"small"})}),c.jsx(dr,{primary:y.name})]},y.name))]}),j&&c.jsx(Tn,{title:j.title,description:j.description,confirm:j.confirm,cancel:j.cancel,params:j.params,onConfirm:j.onConfirm,onCancel:j.onCancel})]}):c.jsxs(Nn,{"data-cy":"blocklet-actions",...a,children:[c.jsx(us,{children:ie.filter(y=>!y.separator&&!y.onlyInMenu).map(y=>c.jsxs(he,{title:y.name,"data-cy":`${y.action}-blocklet`,onClick:()=>je(y),disabled:!!y.disabled||b,children:[p===y.action&&b?c.jsx(te,{size:16,sx:{marginRight:1}}):c.jsx(y.icon,{}),c.jsx("span",{className:"blocklet-action-text",children:y.name})]},y.name))}),j&&c.jsx(Tn,{title:j.title,description:j.description,confirm:j.confirm,cancel:j.cancel,params:j.params,onConfirm:j.onConfirm,onCancel:j.onCancel})]})}Yt.propTypes={getComponentUrl:m.func,blocklet:m.object.isRequired,onStart:m.func.isRequired,onComplete:m.func.isRequired,variant:m.oneOf(["menu","group"]),hasPermission:m.bool,useBlockletUrlEvaluation:m.func};Yt.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const Nn=Ye.div`
3
+ display: flex;
4
+ align-items: center;
5
+
6
+ @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
7
+ .MuiButton-root {
8
+ padding: 4px;
9
+ font-size: 10px;
10
+ }
11
+ }
12
+ `,ft=(e,t)=>{var r;let n="?v=";return t?n+=jo(t):n+=`${(r=e==null?void 0:e.meta)==null?void 0:r.version}${xt(e==null?void 0:e.status)?"~":""}`,n};function ci({blocklet:e}){var u,d,f,p;const{inService:t}=ye(),n=(u=((e==null?void 0:e.environments)||[]).find(v=>v.key===Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:u.value,r=(d=((e==null?void 0:e.environments)||[]).find(v=>v.key===Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:d.value,o=(f=((e==null?void 0:e.environments)||[]).find(v=>v.key===Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:f.value,i=((p=window.env)==null?void 0:p.apiPrefix)||"/",s=`${Be(i,`/blocklet/logo/${t?"":e.meta.did}`)}${ft(e,n)}`,a=`${Be(i,`/blocklet/logo-rect/${t?"":e.meta.did}`)}${ft(e,r)}`,l=`${Be(i,`/blocklet/logo-favicon/${t?"":e.meta.did}`)}${ft(e,o)}`;return{logoUrl:s,rectLogoUrl:a,faviconUrl:l}}function Jt({blocklet:e,style:t,size:n,...r}){const{logoUrl:o}=ci({blocklet:e}),{variant:i}=r;return c.jsx(fr,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:n,height:n,borderRadius:10},t),...r,children:c.jsx("img",{src:o,alt:"",style:{width:n}})})}Jt.propTypes={blocklet:m.object.isRequired,style:m.object,size:m.oneOfType([m.number,m.string])};Jt.defaultProps={style:{},size:40};const li=e=>{const t={};let n=null;return k.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=k.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},ui=(e,t,n)=>{var i;const{hostname:r,href:o}=e;if(!t)return o;if(n){const a=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!a)return o;const l=a[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith($.DEFAULT_DID_DOMAIN))||"").replace(`.${$.DEFAULT_DID_DOMAIN}`,"");return d?o.replace(r,`${d}-${l}.${$.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Ir(){const{t:e}=Q(),{api:t}=ps(),{blocklet:n}=wo(),{inService:r}=ye(),[o,i]=x.useState(!1),[s,a]=x.useState(5),l=n&&n.structVersion!==$.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){J.error(e("blocklet.migrate.tip.running"));return}const p=li(n);if(p){J.error(e("blocklet.migrate.tip.duplicate",{name:p}));return}i(!0)}catch(p){J.error(zt(p))}},d=()=>{const p=ui(window.location,n,r);setTimeout(()=>{window.location.href=p},5e3),a(5),setInterval(()=>{a(v=>v-1)},1e3)},f=()=>i(!1);return[l&&c.jsxs(ur,{severity:"warning",style:{margin:"12px 0"},children:[c.jsxs(D,{display:"flex",alignItems:"center",children:[c.jsx(he,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),c.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(p=>c.jsx(D,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${p}`)},p))]},"alert"),n&&c.jsx(So,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:_o(n,!0),title:k.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:s>=0?e("blocklet.migrate.success",{sec:s}):"Redirecting..."},onClose:f},"connect")]}Ir.propTypes={};function en({children:e,style:t,...n}){return c.jsx(mr,{style:t,...n,children:e})}en.propTypes={children:m.any.isRequired,style:m.object};en.defaultProps={style:{}};const U={yellow:"#FFCF71",grey:"#888888"};function tn({isResource:e,status:t,variant:n,source:r,progress:o,...i}){const{t:s}=x.useContext(Mt),a={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning",resource:"primary"},l={added:U.grey,waiting:U.yellow,downloading:U.yellow,extracting:U.yellow,downloaded:U.grey,installing:U.yellow,installed:U.grey,starting:U.yellow,running:"success",stopping:U.yellow,stopped:U.grey,error:"error",upgrading:U.yellow,restarting:U.yellow,corrupted:"error",deleting:U.yellow,resource:"primary"},u=k.isInProgress(t),d=e&&t==="stopped"?"resource":t,f=s(`blocklet.status.${d}`);return n==="dot"?c.jsx(He,{title:s("blocklet.statusTip",{status:f}),children:c.jsx(ms,{color:l[d],...i})}):c.jsxs(en,{type:a[d],...i,children:[u&&c.jsx(te,{size:12,color:"inherit",style:{marginRight:5}}),f,d==="downloading"&&o?c.jsx("div",{style:{marginLeft:5},children:`${o} %`}):null]})}tn.propTypes={status:m.string.isRequired,variant:m.oneOf(["dot","tag"]),source:m.string,progress:m.number,isResource:m.bool};tn.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};var di=Co,fi=Io,pi=Eo,mi=Oo,gi=Po,hi=Ro,vi=200;function yi(e,t,n,r){var o=-1,i=fi,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=mi(t,gi(n))),r?(i=pi,s=!1):t.length>=vi&&(i=hi,s=!1,t=new di(t));e:for(;++o<a;){var d=e[o],f=n==null?d:n(d);if(d=r||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue e;l.push(d)}else i(t,f,r)||l.push(d)}return l}var xi=yi,bi=xi,ji=To,Mn=Lo;function wi(e,t,n){var r=e.length;if(r<2)return r?Mn(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var s=e[o],a=-1;++a<r;)a!=o&&(i[o]=bi(i[o]||s,e[a],t,n));return Mn(ji(i,1),t,n)}var Si=wi,_i=Ao,Ci=Do,Oi=Si,Pi=No,Ii=$o,Ei=Ci(function(e){var t=Ii(e);return t=typeof t=="function"?t:void 0,Oi(_i(e,Pi),void 0,t)}),Ri=Ei;const Ti=rr(Ri),Er=x.createContext({});function nn({children:e,type:t}){const[n,r]=x.useState([]),o=x.useRef([]),i=l=>{if(!o.current.includes(l)){const u=[...o.current,l];r(u),o.current=u}},s=l=>{if(o.current.includes(l)){const u=o.current.filter(d=>d!==l);r(u),o.current=u}},a=l=>{const u=n.filter(f=>l.find(p=>p===f));Ti(u,n).forEach(f=>s(f))};return c.jsx(Er.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:s,matchDeletingDid:a},children:e})}nn.propTypes={type:m.string,children:m.node.isRequired};nn.defaultProps={type:"blocklets"};function Al(){return x.useContext(Er)}function A(e,t,n){return or.call(t,"css")?c.jsx(sr,ir(e,t),n):c.jsx(e,t,n)}function pt(e,t,n){return or.call(t,"css")?c.jsxs(sr,ir(e,t),n):c.jsxs(e,t,n)}/**
13
+ * (c) Iconify
14
+ *
15
+ * For the full copyright and license information, please view the license.txt or license.gpl.txt
16
+ * files at https://github.com/iconify/iconify
17
+ *
18
+ * Licensed under MIT.
19
+ *
20
+ * @license MIT
21
+ * @version 3.1.1
22
+ */const Rr=Object.freeze({left:0,top:0,width:16,height:16}),We=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Re=Object.freeze({...Rr,...We}),jt=Object.freeze({...Re,body:"",hidden:!1});function Li(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Un(e,t){const n=Li(e,t);for(const r in jt)r in We?r in e&&!(r in n)&&(n[r]=We[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Di(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=r[s]&&r[s].parent,l=a&&i(a);l&&(o[s]=[a].concat(l))}return o[s]}return Object.keys(n).concat(Object.keys(r)).forEach(i),o}function Ai(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function s(a){i=Un(r[a]||o[a],i)}return s(t),n.forEach(s),Un(e,i)}function $i(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Di(e);for(const o in r){const i=r[o];i&&(t(o,Ai(e,o,i)),n.push(o))}return n}const Ce=/^[a-z0-9]+(-[a-z0-9]+)*$/,xe=(e,t,n,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 a=o.pop(),l=o.pop(),u={provider:o.length>0?o[0]:r,prefix:l,name:a};return t&&!Fe(u)?null:u}const i=o[0],s=i.split("-");if(s.length>1){const a={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!Fe(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return t&&!Fe(a,n)?null:a}return null},Fe=(e,t)=>e?!!((e.provider===""||e.provider.match(Ce))&&(t&&e.prefix===""||e.prefix.match(Ce))&&e.name.match(Ce)):!1,Ni={provider:"",aliases:{},not_found:{},...Rr};function mt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Mi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!mt(e,Ni))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(Ce)||typeof i.body!="string"||!mt(i,jt))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(Ce)||typeof s!="string"||!n[s]&&!r[s]||!mt(i,jt))return null}return t}const Ge=Object.create(null);function Ui(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ee(e,t){const n=Ge[e]||(Ge[e]=Object.create(null));return n[t]||(n[t]=Ui(e,t))}function rn(e,t){return Mi(t)?$i(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function ki(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Bi(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(Ge)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(Ge[o]||{})).forEach(s=>{const a=ee(o,s);n=n.concat(Object.keys(a.icons).map(l=>(o!==""?"@"+o+":":"")+s+":"+l))})}),n}let on=!1;function zi(e){return on}function Te(e){const t=typeof e=="string"?xe(e,!0,on):e;if(t){const n=ee(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Fi(e,t){const n=xe(e,!0,on);if(!n)return!1;const r=ee(n.provider,n.prefix);return ki(r,n.name,t)}function Tr(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Fe({provider:t,prefix:n,name:"a"}))return!1;const r=ee(t,n);return!!rn(r,e)}function Vi(e){return!!Te(e)}function Hi(e){const t=Te(e);return t?{...Re,...t}:null}const Lr=Object.freeze({width:null,height:null}),Dr=Object.freeze({...Lr,...We}),qi=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ki=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wt(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(qi);if(r===null||!r.length)return e;const o=[];let i=r.shift(),s=Ki.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}const Wi=e=>e==="unset"||e==="undefined"||e==="none";function tt(e,t){const n={...Re,...e},r={...Dr,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(b=>{const h=[],j=b.hFlip,I=b.vFlip;let g=b.rotate;j?I?g+=2:(h.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),h.push("scale(-1 1)"),o.top=o.left=0):I&&(h.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),h.push("scale(1 -1)"),o.top=o.left=0);let _;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:_=o.height/2+o.top,h.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:h.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:_=o.width/2+o.left,h.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}g%2===1&&(o.left!==o.top&&(_=o.left,o.left=o.top,o.top=_),o.width!==o.height&&(_=o.width,o.width=o.height,o.height=_)),h.length&&(i='<g transform="'+h.join(" ")+'">'+i+"</g>")});const s=r.width,a=r.height,l=o.width,u=o.height;let d,f;s===null?(f=a===null?"1em":a==="auto"?u:a,d=wt(f,l/u)):(d=s==="auto"?l:s,f=a===null?wt(d,u/l):a==="auto"?u:a);const p={},v=(b,h)=>{Wi(h)||(p[b]=h.toString())};return v("width",d),v("height",f),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:i}}const Gi=/\sid="(\S+)"/g,Qi="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Xi=0;function Ar(e,t=Qi){const n=[];let r;for(;r=Gi.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof t=="function"?t(i):t+(Xi++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const le={local:!0,session:!0},$r={local:new Set,session:new Set};let sn=!1;function Zi(e){sn=e}const kn="iconify2",Ie="iconify",Nr=Ie+"-count",Bn=Ie+"-version",Mr=36e5,Yi=168;function St(e,t){try{return e.getItem(t)}catch{}}function an(e,t,n){try{return e.setItem(t,n),!0}catch{}}function zn(e,t){try{e.removeItem(t)}catch{}}function _t(e,t){return an(e,Nr,t.toString())}function Ct(e){return parseInt(St(e,Nr))||0}let Ue=typeof window>"u"?{}:window;function Ur(e){const t=e+"Storage";try{if(Ue&&Ue[t]&&typeof Ue[t].length=="number")return Ue[t]}catch{}le[e]=!1}function kr(e,t){const n=Ur(e);if(!n)return;const r=St(n,Bn);if(r!==kn){if(r){const a=Ct(n);for(let l=0;l<a;l++)zn(n,Ie+l.toString())}an(n,Bn,kn),_t(n,0);return}const o=Math.floor(Date.now()/Mr)-Yi,i=a=>{const l=Ie+a.toString(),u=St(n,l);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>o&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,a))return!0}catch{}zn(n,l)}};let s=Ct(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,_t(n,s)):$r[e].add(a))}function Br(){if(!sn){Zi(!0);for(const e in le)kr(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=ee(r,o);if(!rn(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function zr(e,t){switch(e){case"local":case"session":le[e]=t;break;case"all":for(const n in le)le[n]=t;break}}const Ot=Object.create(null);function Fr(e,t){Ot[e]=t}function Pt(e){return Ot[e]||Ot[""]}function cn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,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 nt=Object.create(null),we=["https://api.simplesvg.com","https://api.unisvg.com"],Ve=[];for(;we.length>0;)we.length===1||Math.random()>.5?Ve.push(we.shift()):Ve.push(we.pop());nt[""]=cn({resources:["https://api.iconify.design"].concat(Ve)});function Vr(e,t){const n=cn(t);return n===null?!1:(nt[e]=n,!0)}function rt(e){return nt[e]}function Ji(){return Object.keys(nt)}const ea=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Qe=ea();function ta(e){Qe=e}function na(){return Qe}function ra(e,t){const n=rt(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function oa(e){return e===404}const sa=(e,t,n)=>{const r=[],o=ra(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,u)=>{a+=l.length+1,a>=o&&u>0&&(r.push(s),s={type:i,provider:e,prefix:t,icons:[]},a=l.length),s.icons.push(l)}),r.push(s),r};function ia(e){if(typeof e=="string"){const t=rt(e);if(t)return t.path}return"/"}const aa=(e,t,n)=>{if(!Qe){n("abort",424);return}let r=ia(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;Qe(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(oa(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},ca={prepare:sa,send:aa};function la(e){const t={loaded:[],missing:[],pending:[]},n=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,s=o.prefix,a=o.name,l=n[i]||(n[i]=Object.create(null)),u=l[s]||(l[s]=ee(i,s));let d;a in u.icons?d=t.loaded:s===""||u.missing.has(a)?d=t.missing:d=t.pending;const f={provider:i,prefix:s,name:a};d.push(f)}),t}function Hr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function ua(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(l=>{if(l.prefix!==o)return!0;const u=l.name;if(e.icons[u])s.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))s.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||Hr([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let da=0;function fa(e,t,n){const r=da++,o=Hr.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function pa(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?xe(o,t,n):o;i&&r.push(i)}),r}var ma={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ga(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let s;if(e.random){let S=e.resources.slice(0);for(s=[];S.length>1;){const R=Math.floor(Math.random()*S.length);s.push(S[R]),S=S.slice(0,R).concat(S.slice(R+1))}s=s.concat(S)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let l="pending",u=0,d,f=null,p=[],v=[];typeof r=="function"&&v.push(r);function b(){f&&(clearTimeout(f),f=null)}function h(){l==="pending"&&(l="aborted"),b(),p.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function j(S,R){R&&(v=[]),typeof S=="function"&&v.push(S)}function I(){return{startTime:a,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:j,abort:h}}function g(){l="failed",v.forEach(S=>{S(void 0,d)})}function _(){p.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function w(S,R,C){const P=R!=="success";switch(p=p.filter(E=>E!==S),l){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(R==="abort"){d=C,g();return}if(P){d=C,p.length||(s.length?O():g());return}if(b(),_(),!e.random){const E=e.resources.indexOf(S.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",v.forEach(E=>{E(C)})}function O(){if(l!=="pending")return;b();const S=s.shift();if(S===void 0){if(p.length){f=setTimeout(()=>{b(),l==="pending"&&(_(),g())},e.timeout);return}g();return}const R={status:"pending",resource:S,callback:(C,P)=>{w(R,C,P)}};p.push(R),u++,f=setTimeout(O,e.rotate),n(S,t,R.callback)}return setTimeout(O),I}function qr(e){const t={...ma,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,l,u){const d=ga(t,a,l,(f,p)=>{r(),u&&u(f,p)});return n.push(d),d}function i(a){return n.find(l=>a(l))||null}return{query:o,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function Fn(){}const gt=Object.create(null);function ha(e){if(!gt[e]){const t=rt(e);if(!t)return;const n=qr(t),r={config:t,redundancy:n};gt[e]=r}return gt[e]}function Kr(e,t,n){let r,o;if(typeof e=="string"){const i=Pt(e);if(!i)return n(void 0,424),Fn;o=i.send;const s=ha(e);s&&(r=s.redundancy)}else{const i=cn(e);if(i){r=qr(i);const s=e.resources?e.resources[0]:"",a=Pt(s);a&&(o=a.send)}}return!r||!o?(n(void 0,424),Fn):r.query(t,o,n)().abort}function va(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in le)kr(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function ya(e,t){sn||Br();function n(r){let o;if(!le[r]||!(o=Ur(r)))return;const i=$r[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=Ct(o),!_t(o,s+1))return;const a={cached:Math.floor(Date.now()/Mr),provider:e.provider,data:t};return an(o,Ie+s.toString(),JSON.stringify(a))}t.lastModified&&!va(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Vn(){}function xa(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ua(e)}))}function ba(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=Pt(n)))return;i.prepare(n,r,o).forEach(a=>{Kr(n,a,l=>{if(typeof l!="object")a.icons.forEach(u=>{e.missing.add(u)});else try{const u=rn(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),ya(e,l)}catch(u){console.error(u)}xa(e)})})}))}const ja=e=>{const n=ee(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},ln=(e,t)=>{const n=pa(e,!0,zi()),r=la(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Vn)}),()=>{l=!1}}const o=Object.create(null),i=[];let s,a;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===a&&u===s)return;s=u,a=d,i.push(ee(u,d));const f=o[u]||(o[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:f}=l,p=ee(u,d),v=p.pendingIcons||(p.pendingIcons=new Set);v.has(f)||(v.add(f),o[u][d].push(f))}),i.forEach(l=>{const{provider:u,prefix:d}=l;o[u][d].length&&ba(l,o[u][d])}),t?fa(t,r,i):Vn},wa=e=>new Promise((t,n)=>{const r=typeof e=="string"?xe(e,!0):e;if(!r){n(e);return}ln([r||e],o=>{if(o.length&&r){const i=Te(r);if(i){t({...Re,...i});return}}n(e)})});function Wr(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in Lr?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ot={...Dr,inline:!1},ht="iconify",It="iconify-inline",se="iconifyData"+Date.now();let ue=[];function Le(e){for(let t=0;t<ue.length;t++){const n=ue[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function Gr(e,t=!1){let n=Le(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},ue.push(n),n)}function Sa(){if(document.documentElement)return Gr(document.documentElement);ue.push({node:()=>document.documentElement})}function _a(e){ue=ue.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function De(){return ue}function Ca(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let Oe=null;const Oa={childList:!0,subtree:!0,attributes:!0};function Qr(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,Oe&&Oe(e)}))}function Pa(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[se]!==void 0){n.paused||Qr(e);return}}}function Xr(e,t){e.observer.instance.observe(t,Oa)}function Xe(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Pa.bind(null,e)),Xr(e,n),t.paused||Qr(e))}function Hn(){De().forEach(Xe)}function Zr(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Ia(e){const t=Oe!==null;if(Oe!==e&&(Oe=e,t&&De().forEach(Zr)),t){Hn();return}Ca(Hn)}function Et(e){(e?[e]:De()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function Ea(e){if(e){const t=Le(e);t&&Et(t)}else Et()}function Rt(e){(e?[e]:De()).forEach(t=>{if(!t.observer){Xe(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?Xr(t,r):Xe(t);else return}})}function Ra(e){if(e){const t=Le(e);t&&Rt(t)}else Rt()}function Yr(e,t=!1){const n=Gr(e,t);return Xe(n),n}function Jr(e){const t=Le(e);t&&(Zr(t),_a(e))}function Ta(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ot)if(n[o]!==r[o])return!0;return!1}function La(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}const Da=/[\s,]+/;function Aa(e,t){t.split(Da).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const $a=["width","height"],Na=["inline","hFlip","vFlip"];function Ma(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function Ua(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&xe(t,!0);if(!n)return null;const r={...ot,inline:e.classList&&e.classList.contains(It)};$a.forEach(a=>{const l=e.getAttribute("data-"+a);l&&(r[a]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=La(o));const i=e.getAttribute("data-flip");typeof i=="string"&&Aa(r,i),Na.forEach(a=>{const l="data-"+a,u=Ma(e.getAttribute(l),l);typeof u=="boolean"&&(r[a]=u)});const s=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:s}}const ka="svg."+ht+", i."+ht+", span."+ht+", i."+It+", span."+It;function Ba(e){const t=[];return e.querySelectorAll(ka).forEach(n=>{const r=n[se]||n.tagName.toLowerCase()!=="svg"?Ua(n):null;r&&t.push({node:n,props:r})}),t}function eo(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let Pe;function za(){try{Pe=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Pe=null}}function Fa(e){return Pe===void 0&&za(),Pe?Pe.createHTML(e):e}function to(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function no(e,t,n,r){const o=e.classList;if(r){const s=r.classList;Array.from(s).forEach(a=>{o.add(a)})}const i=[];return t.forEach(s=>{o.contains(s)?n.has(s)&&i.push(s):(o.add(s),i.push(s))}),n.forEach(s=>{t.has(s)||o.remove(s)}),i}function ro(e,t,n){const r=e.style;(n||[]).forEach(i=>{r.removeProperty(i)});const o=[];for(const i in t)r.getPropertyValue(i)||(o.push(i),r.setProperty(i,t[i]));return o}function oo(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,i=tt(n,o),s=e[se],a=eo(Ar(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=Fa(a);const l=r.childNodes[0],u=e.attributes;for(let b=0;b<u.length;b++){const h=u.item(b),j=h.name;j!=="class"&&!l.hasAttribute(j)&&l.setAttribute(j,h.value)}const d=to(t.icon),f=no(l,d,new Set(s&&s.addedClasses),e),p=ro(l,o.inline?{"vertical-align":"-0.125em"}:{},s&&s.addedStyles),v={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[se]=v,e.parentNode&&e.parentNode.replaceChild(l,e),l}function Va(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ha(e){return"data:image/svg+xml,"+Va(e)}function qa(e){return'url("'+Ha(e)+'")'}const Ka={display:"inline-block"},Tt={"background-color":"currentColor"},so={"background-color":"transparent"},qn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Kn={"-webkit-mask":Tt,mask:Tt,background:so};for(const e in Kn){const t=Kn[e];for(const n in qn)t[e+"-"+n]=qn[n]}function Wn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function Wa(e,t,n,r){const o=t.customisations,i=tt(n,o),s=i.attributes,a=e[se],l=eo(i.body,{...s,width:n.width+"",height:n.height+""}),u=to(t.icon),d=no(e,u,new Set(a&&a.addedClasses)),p={"--svg":qa(l),width:Wn(s.width),height:Wn(s.height),...Ka,...r?Tt:so};o.inline&&(p["vertical-align"]="-0.125em");const v=ro(e,p,a&&a.addedStyles),b={...t,status:"loaded",addedClasses:d,addedStyles:v};return e[se]=b,e}let ke=!1;function Ga(){ke||(ke=!0,setTimeout(()=>{ke&&(ke=!1,ve())}))}function ve(e,t=!1){const n=Object.create(null);function r(o,i){const{provider:s,prefix:a,name:l}=o,u=ee(s,a),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(i&&!ja(o)){const f=n[s]||(n[s]=Object.create(null));(f[a]||(f[a]=new Set)).add(l)}return{status:"loading"}}(e?[e]:De()).forEach(o=>{const i=typeof o.node=="function"?o.node():o.node;if(!i||!i.querySelectorAll)return;let s=!1,a=!1;function l(u,d,f){if(a||(a=!0,Et(o)),u.tagName.toUpperCase()!=="SVG"){const p=d.mode,v=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof v=="boolean"){Wa(u,d,{...Re,...f},v);return}}oo(u,d,f)}Ba(i).forEach(({node:u,props:d})=>{const f=u[se];if(!f){const{status:v,icon:b}=r(d.icon,!0);if(b){l(u,d,b);return}s=s||v==="loading",u[se]={...d,status:v};return}let p;if(Ta(f,d)){if(p=r(d.icon,f.name!==d.name),!p.icon){s=s||p.status==="loading",Object.assign(f,{...d,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(d.icon,!1),!p.icon){f.status=p.status;return}}l(u,d,p.icon)}),o.temporary&&!s?Jr(i):t&&s?Yr(i,!0):a&&o.observer&&Rt(o)});for(const o in n){const i=n[o];for(const s in i){const a=i[s];ln(Array.from(a).map(l=>({provider:o,prefix:s,name:l})),Ga)}}}function Qa(e){const t=Le(e);t?ve(t):ve({node:e,temporary:!0},!0)}function io(e,t,n=!1){const r=Te(e);if(!r)return null;const o=xe(e),i=Wr(ot,t||{}),s=oo(document.createElement("span"),{name:e,icon:o,customisations:i},r);return n?s.outerHTML:s}function Xa(){return"3.1.1"}function Za(e,t){return io(e,t,!1)}function Ya(e,t){return io(e,t,!0)}function Ja(e,t){const n=Te(e);if(!n)return null;const r=Wr(ot,t||{});return tt(n,r)}function ec(e){e?Qa(e):ve()}if(typeof document<"u"&&typeof window<"u"){Sa();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Tr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Ia(ve),ve()})}function tc(e,t){zr(e,t!==!1)}function nc(e){zr(e,!0)}Fr("",ca);if(typeof document<"u"&&typeof window<"u"){Br();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;Vr(n,o)||console.error(r)}catch{console.error(r)}}}}const rc={getAPIConfig:rt,setAPIModule:Fr,sendAPIQuery:Kr,setFetch:ta,getFetch:na,listAPIProviders:Ji},oc={_api:rc,addAPIProvider:Vr,loadIcons:ln,loadIcon:wa,iconExists:Vi,getIcon:Hi,listIcons:Bi,addIcon:Fi,addCollection:Tr,replaceIDs:Ar,calculateSize:wt,buildIcon:tt,getVersion:Xa,renderSVG:Za,renderHTML:Ya,renderIcon:Ja,scan:ec,observe:Yr,stopObserving:Jr,pauseObserver:Ea,resumeObserver:Ra,enableCache:tc,disableCache:nc};try{self.Iconify===void 0&&(self.Iconify=oc)}catch{}var un={},sc=z;Object.defineProperty(un,"__esModule",{value:!0});var ao=un.default=void 0,ic=sc(B()),ac=c;ao=un.default=(0,ic.default)((0,ac.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function dn({infos:e}){const{t}=Q(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(o=>{n.searchParams.set(o.label,o.value)});const r=e.map(o=>`* ${o.label}: ${o.value}`).join(`
23
+ `);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
24
+
25
+
26
+
27
+ <!--
28
+ [Server Info]
29
+ ${r}
30
+ * Page: ${window.location.href}
31
+ -->
32
+ `),A(D,{sx:{mx:{xs:0,md:2}},children:A(gr,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}dn.propTypes={infos:m.arrayOf(m.shape({label:m.string,value:m.string}))};dn.defaultProps={infos:[]};var cc={year:{long:"year",short:"y"},day:{long:"day",short:"d"},hour:{long:"hour",short:"h"},minute:{long:"minute",short:"m"},second:{long:"second",short:"s"},millisecond:{long:"millisecond",short:"ms"},microsecond:{long:"microsecond",short:"µs"},nanosecond:{long:"nanosecond",short:"ns"}},lc={year:{long:"年",short:"年"},day:{long:"天",short:"天"},hour:{long:"小时",short:"小时"},minute:{long:"分钟",short:"分"},second:{long:"秒钟",short:"秒"},millisecond:{long:"毫秒",short:"毫秒"},microsecond:{long:"微秒",short:"微秒"},nanosecond:{long:"纳秒",short:"纳秒"}};const Lt=new Map,uc=(e,t)=>{Lt.set(e,t)},dc=(e="en_US")=>Lt.get(e)||Lt.get("en_US");var co={registerLang:uc,getLang:dc},fc=e=>{if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}};const pc=fc,{getLang:Se}=co,mc=(e,t)=>t===1?e:`${e}s`,gc=1e-7;var hc=(e,t={})=>{if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const n=Se(t.locale),r=[],o=(a,l)=>{const u=Math.floor(a*10**l+gc);return(Math.round(u)/10**l).toFixed(l)},i=(a,l,u)=>{if((r.length===0||!t.colonNotation)&&a===0&&!(t.colonNotation&&l==="minute"))return;const{long:d}=n[l]||Se("en_US")[l],{short:f}=n[l]||Se("en_US")[l];let p=(u||a||"0").toString(),v,b;if(t.colonNotation){v=r.length>0?":":"",b="";const h=p.includes(".")?p.split(".")[0].length:p.length,j=r.length>0?2:1;p="0".repeat(Math.max(0,j-h))+p}else v="",t.locale==="zh_CN"?Object.values(s).filter(h=>h>0).length>1?!s.days&&!s.hours&&s.minutes&&t.compact?b=d:b=f:s.minutes?b=d:b=f:b=t.verbose?` ${mc(d,a)}`:f;r.push(v+p+b)},s=pc(e);if(i(Math.trunc(s.days/365),"year"),i(s.days%365,"day"),i(s.hours,"hour"),i(s.minutes,"minute"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(s.seconds,"second"),t.formatSubMilliseconds)i(s.milliseconds,"millisecond"),i(s.microseconds,"microsecond"),i(s.nanoseconds,"nanosecond");else{const a=s.milliseconds+s.microseconds/1e3+s.nanoseconds/1e6,l=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=a>=1?Math.round(a):Math.ceil(a),d=l?a.toFixed(l):u;i(Number.parseFloat(d,10),"millisecond",d)}else{const a=e/1e3%60,l=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=o(a,l),d=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");i(Number.parseFloat(d,10),"second",d)}if(r.length===0){const a=(n.millisecond||Se("en_US").millisecond).long,l=(n.millisecond||Se("en_US").millisecond).short;return t.locale==="zh_CN"?`0${t.verbose?`${a}`:l}`:`0${t.verbose?` ${a}s`:l}`}if(t.compact)return r[0];if(typeof t.unitCount=="number"){const a=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(a)}return t.colonNotation?r.join(""):r.join(" ")};const vc=cc,yc=lc,{registerLang:fn}=co,lo=hc;fn("en_US",vc);fn("zh_CN",yc);lo.registerLang=fn;var xc=lo;const Ze=rr(xc);var pn={},bc=z;Object.defineProperty(pn,"__esModule",{value:!0});var Dt=pn.default=void 0,jc=bc(B()),Gn=c;Dt=pn.default=(0,jc.default)([(0,Gn.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Gn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function oe({children:e}){return et(n=>n.breakpoints.down("md"))?c.jsx(He,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:c.jsx(D,{sx:{display:"flex",alignItems:"center",gap:1},children:c.jsx(Dt,{fontSize:"small"})})}):c.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(Dt,{fontSize:"small"}),e]})}oe.propTypes={children:m.node.isRequired};const wc="https://launcher.arcblock.io/",Sc=30*24*60*60*1e3;function mn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var O,S,R,C,P,E;const{t:i,locale:s}=Q(),a=ye(),[l,u]=hr({safeIframeRef:null,popoverAnchorEl:null}),d=x.useRef(null),f=et(T=>T.breakpoints.down("md")),{sx:p={},...v}=o,b=f?"mobile":"desktop",h=pr(async()=>{const[T,ne]=await Promise.all([a.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),ar({launcherUrl:e||wc,nftDid:n,launcherSessionId:r,locale:s})]);if(T!=null&&T.error)throw new Error(T.error);return{launcherSession:T.launcherSession,subscriptionURL:ne}},[s]);if(h.loading)return c.jsx(ce,{label:c.jsxs(oe,{children:[!f&&i("expiration.desktop.loading"),c.jsx(te,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const j=T=>{u({popoverAnchorEl:T.currentTarget})},I=()=>{u({popoverAnchorEl:null})},g=(O=h.value)==null?void 0:O.launcherSession;let _="success";[$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((R=(S=h.value)==null?void 0:S.launcherSession)==null?void 0:R.status)&&(_="error");let w=null;if(g.expirationDate&&!g.subscription){const T=me(g.expirationDate).diff(me(),"ms");w=i(`expiration.${b}.tips.${_}`,{validity:Ze(T,{locale:Bt(s),compact:!0,verbose:!0})}),T>0&&T<=Sc&&(_="warning")}return c.jsxs(c.Fragment,{children:[c.jsx(ce,{label:c.jsx(oe,{children:w||((P=(C=g==null?void 0:g.subscription)==null?void 0:C.product)==null?void 0:P.name)||i("common.subscription")}),color:_,variant:_!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:j}),c.jsx(cr,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsx("iframe",{ref:d,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(E=h.value)==null?void 0:E.subscriptionURL})})]})}mn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};mn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const _c=30*24*60*60*1e3,Cc="https://launcher.arcblock.io/";function gn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...o}){var S,R,C,P,E,T,ne;const{t:i,locale:s}=Q(),[a,l]=hr({safeIframeRef:null,popoverAnchorEl:null}),u=x.useRef(null),d=et(M=>M.breakpoints.down("md")),f=ye(),{sx:p={},...v}=o,b=d?"mobile":"desktop",h=pr(async()=>{const[M,be]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),ar({launcherUrl:e||Cc,nftDid:n,launcherSessionId:r,locale:s})]);if(M!=null&&M.error)throw new Error(M.error);return{launcherSession:M.launcherSession,subscriptionURL:be}},[s]);if(h.loading)return c.jsx(ce,{label:c.jsxs(oe,{children:[!d&&i("expiration.desktop.loading"),c.jsx(te,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...v});if(h.error)return console.error(h.error),c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...v,onClick:()=>h.retry()});const j=(R=(S=h.value)==null?void 0:S.launcherSession)==null?void 0:R.expirationDate,I=me(j).isBefore(me()),g=me(j).diff(me(),"ms");let _="success";g<=_c&&(_="warning"),I&&(_="error");const w=M=>{l({popoverAnchorEl:M.currentTarget})},O=()=>{l({popoverAnchorEl:null})};return c.jsxs(c.Fragment,{children:[((P=(C=h.value)==null?void 0:C.launcherSession)==null?void 0:P.subscription)&&c.jsx(ce,{label:c.jsx(oe,{children:i("expiration.desktop.nextInvoice",{date:Mo(j,s)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...v,onClick:w}),!((T=(E=h.value)==null?void 0:E.launcherSession)!=null&&T.subscription)&&c.jsx(ce,{label:c.jsx(oe,{children:i(`expiration.${b}.tips.${_}`,{validity:Ze(g,{locale:Bt(s),compact:!0,verbose:!0})})}),color:_,variant:_!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...v,onClick:w}),c.jsx(cr,{id:"popover-info",open:!!a.popoverAnchorEl,anchorEl:a.popoverAnchorEl,onClose:O,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:c.jsx("iframe",{ref:u,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(ne=h.value)==null?void 0:ne.subscriptionURL})})]})}gn.propTypes={chainHost:m.string.isRequired,nftId:m.string,launcherSessionId:m.string,sx:m.object,retention:m.number,launcherUrl:m.string.isRequired};gn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var hn={},Oc=z;Object.defineProperty(hn,"__esModule",{value:!0});var uo=hn.default=void 0,Pc=Oc(B()),Ic=c;uo=hn.default=(0,Pc.default)((0,Ic.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var vn={},Ec=z;Object.defineProperty(vn,"__esModule",{value:!0});var fo=vn.default=void 0,Rc=Ec(B()),Tc=c;fo=vn.default=(0,Rc.default)((0,Tc.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");var yn={};Object.defineProperty(yn,"__esModule",{value:!0});var At=yn.default=void 0;Lc(x);var Qn=c;function Lc(e){return e&&e.__esModule?e:{default:e}}function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xn(Object(n),!0).forEach(function(r){Dc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dc(e,t,n){return(t=Ac(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ac(e){var t=$c(e,"string");return typeof t=="symbol"?t:t+""}function $c(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xn=function(t){return(0,Qn.jsx)("svg",Zn(Zn({},t),{},{children:(0,Qn.jsx)("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"})}))};xn.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};xn.displayName="notification";At=yn.default=xn;function po({status:e,...t}){const n={warning:"warning",error:"error",info:"primary"};return!e||e==="info"||e==="success"?null:c.jsx(mr,{type:n[e],style:{borderRadius:5,border:"1px solid #ccc"},...t,children:e})}po.propTypes={status:m.string.isRequired};function bn({value:e,...t}){const{t:n,locale:r}=Q();if(!e)return"-";const o={locale:Bt(r),compact:!0},i=new Date(e).getTime(),s=Date.now();if(i>s){const l=Ze(i-s,o);return c.jsx(He,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.afterTime",{time:l})})})}const a=Ze(s-i,o);return c.jsx(He,{title:qe(e,r),placement:"top-end",enterTouchDelay:0,children:c.jsx("span",{...t,children:n("common.timeAgo",{time:a})})})}bn.propTypes={value:m.any};bn.defaultProps={value:""};function Nc(e,t){const n=x.useRef(t);x.useEffect(()=>{const r=o=>n.current(o.detail);return window.addEventListener(e,r),()=>window.removeEventListener(e,r)},[e])}function Mc(){window.dispatchEvent(new CustomEvent("checkUpdate"))}function $l(e){const t=Je(),{t:n}=Q(),r=()=>{const o=new URLSearchParams(window.location.search);o.get("checkUpdate")&&(o.delete("checkUpdate"),t(o.toString()),e(),J.success(n("notification.checkingForUpdates")))};x.useEffect(r,[]),Nc("checkUpdate",r)}function jn({onHide:e,api:t,notifications:n,updateNotifications:r,viewAllUrl:o,teamDid:i}){const{inService:s}=ye(),{t:a,locale:l}=x.useContext(Mt),[u,d]=x.useState(!0),[f,p]=x.useState(!1),v=Je(),b=Uo();let h=u?n:n.filter(w=>w.read===!1);h=h.slice(0,5);const j=n.filter(w=>w.read===!1).length>0,I=async()=>{p(!0);const w=n.filter(O=>O.read===!1).map(O=>O.id).join(",");s?await t.readBlockletNotifications({input:{id:w,teamDid:i}}):await t.readNotifications({input:{id:w}}),r(),p(!1)},g=(w,O)=>{O.read||(s?t.readBlockletNotifications({input:{id:O.id,teamDid:i}}).then(()=>r()):t.readNotifications({input:{id:O.id}}).then(()=>r())),e(w),v(o)},_=(w,O)=>{w.preventDefault(),w.stopPropagation(),v(O),Mc()};return c.jsxs(Uc,{children:[c.jsxs(G,{component:"h3",variant:"h6",className:"notification-header",children:[a("notification.title"),c.jsx(he,{component:kt,to:o,"data-cy":"view-all-notifications-btn",onClick:e,children:a("notification.viewAll")})]}),c.jsx(yt,{}),c.jsxs(ko,{className:"notification-list",style:{maxHeight:"calc(100vh - 200px)",overflow:"auto"},children:[h.length===0&&c.jsx(G,{component:"p",variant:"body1",className:"notification-tip",children:a("notification.empty")}),h.length>0&&h.map(w=>c.jsxs(xs,{alignItems:"flex-start",disabled:w.read,onClick:O=>g(O,w),children:[c.jsx(Ts,{className:"list-item-avatar",children:c.jsxs(c.Fragment,{children:[c.jsx(fr,{children:w.entityType.substr(0,1).toUpperCase()}),c.jsx(po,{className:"notification-tag",status:w.severity})]})}),c.jsx(dr,{primary:w.title,secondary:c.jsxs(D,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[c.jsx(G,{component:"span",sx:{overflow:"hidden","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",display:"-webkit-box","text-overflow":"ellipsis"},children:w.description}),c.jsxs(D,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[c.jsx(bn,{value:w.createdAt,locale:l,style:{color:b.palette.text.secondary,fontSize:"0.875rem",marginTop:"4px"}}),w.action&&!w.read?c.jsx(he,{color:"primary",variant:"outlined",onPointerDown:O=>{O.stopPropagation(),O.preventDefault()},onClick:O=>_(O,w.action),"data-cy":"check-for-updates",children:a("notification.proceed")}):null]})]})})]},w.id))]}),c.jsx(yt,{}),c.jsxs(G,{component:"div",className:"notification-footer",children:[c.jsx(bt,{control:c.jsx(fs,{checked:u,onChange:()=>d(!u),name:"showRead",color:"primary"}),label:a("notification.showRead")}),c.jsx(gs,{permission:s?"":"mutate_notification",role:s?Bo:[],children:j&&c.jsxs(he,{disabled:f,onClick:I,className:"",children:[f&&c.jsx(te,{size:16,style:{marginRight:"1em"}}),a("notification.markAllAsRead")]})})]})]})}const Uc=Ye.div`
33
+ width: 420px;
34
+
35
+ @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
36
+ width: calc(100vw - 10px);
37
+ }
38
+
39
+ .notification-header {
40
+ padding: 8px 16px;
41
+ display: flex;
42
+ justify-content: space-between;
43
+ }
44
+
45
+ .notification-tip {
46
+ padding: 8px 16px;
47
+ }
48
+
49
+ .notification-footer {
50
+ padding: 8px 16px;
51
+ display: flex;
52
+ justify-content: space-between;
53
+ }
54
+
55
+ .MuiButtonBase-root {
56
+ white-space: pre-wrap;
57
+ }
58
+
59
+ .list-item-avatar {
60
+ display: flex;
61
+ flex-direction: column;
62
+ align-items: center;
63
+ min-width: 80px;
64
+
65
+ .notification-tag {
66
+ margin-top: 4px;
67
+ }
68
+ }
69
+
70
+ .MuiButtonBase-root:not(.Mui-disabled) {
71
+ .MuiAvatar-root {
72
+ background: ${e=>e.theme.palette.primary.light};
73
+ }
74
+ }
75
+ `;jn.propTypes={onHide:m.func,api:m.shape({readNotifications:m.func.isRequired,readBlockletNotifications:m.func.isRequired}).isRequired,notifications:m.arrayOf(m.shape({id:m.string,read:m.bool,entityType:m.string,title:m.string,createdAt:m.string,description:m.string}).isRequired).isRequired,updateNotifications:m.func.isRequired,viewAllUrl:m.string.isRequired,teamDid:m.string};jn.defaultProps={onHide:()=>{},teamDid:""};function wn({api:e,notifications:t,updateNotifications:n,viewAllUrl:r,teamDid:o}){const[i,s]=x.useState(!1),a=x.useRef(null),l=()=>{s(f=>!f)},u=f=>{a.current&&a.current.contains(f.target)||s(!1)},d=t.filter(f=>f.read===!1).length;return c.jsxs("div",{className:"notification-addon",children:[c.jsx(Ut,{ref:a,"aria-controls":"notify-list-grow","aria-haspopup":"true","data-cy":"toggle-notification-btn",onClick:l,children:d>0?c.jsx(yr,{badgeContent:d,max:99,color:"primary",children:c.jsx(At,{style:{width:"auto",height:24}})}):c.jsx(At,{style:{width:"auto",height:24}})}),i&&c.jsx(zo,{open:!0,anchorEl:a.current,disablePortal:!0,placement:"bottom-end",children:c.jsx(Fo,{id:"notify-list-grow",children:c.jsx(Vo,{onClickAway:u,children:c.jsx("div",{children:c.jsx(jn,{notifications:t,updateNotifications:n,api:e,viewAllUrl:r,onHide:u,teamDid:o})})})})})]})}wn.propTypes={notifications:m.arrayOf(m.object),viewAllUrl:m.string.isRequired,api:m.object.isRequired,updateNotifications:m.func.isRequired,teamDid:m.string};wn.defaultProps={notifications:[],teamDid:""};const kc=`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/notifications`;function Sn(){const{did:e}=window.env,{api:t,data:n,refresh:r}=Ho();return c.jsx(wn,{api:t,viewAllUrl:kc,notifications:n||[],updateNotifications:r,teamDid:e})}Sn.propTypes={};Sn.defaultProps={};function Bc(){const{inFullPage:e,toggleFullPage:t}=ys();return A(Ut,{onClick:t,children:e?A(fo,{sx:{transform:"scale(1.3)"}}):A(uo,{sx:{transform:"scale(1.3)"}})})}function _n({children:e}){var h;const{t}=Q(),{loading:n,error:r,actions:{refreshBlocklet:o},env:i,blocklet:s}=Ee(),{info:a}=qo(),l=Ko(),u=et(j=>j.breakpoints.down("md")),{appId:d,version:f}=i,p=[{label:"App ID",value:d},{label:"App Version",value:f},{label:"App Bundle Name",value:(h=s==null?void 0:s.meta)==null?void 0:h.bundleName},{label:"Server Id",value:a.did},{label:"Server Version",value:a.version}],v=j=>{var g,_,w,O;const I=Array.isArray(j)?j:[j];if(I.unshift(A(Sn,{})),u||I.unshift(A(Bc,{})),s){const S={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};Go(s)?I.unshift(A(mn,{chainHost:(g=s==null?void 0:s.controller)==null?void 0:g.chainHost,nftId:(_=s==null?void 0:s.controller)==null?void 0:_.nftId,launcherSessionId:(w=s==null?void 0:s.controller)==null?void 0:w.launcherSessionId,launcherUrl:(O=s==null?void 0:s.controller)==null?void 0:O.launcherUrl,sx:S})):a.ownerNft&&a.launcher&&I.unshift(A(gn,{chainHost:a.launcher.chainHost,launcherUrl:a.launcher.url,nftId:a.ownerNft.did,launcherSessionId:a.ownerNft.launcherSessionId,sx:S}))}return I},b={};return u&&(b.logo=null),pt(zc,{legacy:!1,fullWidth:!0,headerAddons:v,headerProps:b,isMobile:u,footerProps:{addon:A(dn,{infos:p})},children:[!s&&n&&A(Ke,{relative:"parent",children:A(te,{})}),!s&&r&&pt(Ke,{relative:"parent",children:[pt(D,{display:"flex",alignItems:"center",children:[A(ao,{color:"error",sx:{marginRight:1}}),zt(r)]}),A(he,{onClick:()=>o(),children:A("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!s&&A(D,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:A(Wo,{FallbackComponent:vs,resetKeys:[l.pathname],children:e})})]})}_n.propTypes={children:m.any};_n.defaultProps={children:null};const zc=Ye(bs)`
76
+ div.dashboard-content {
77
+ padding: 0;
78
+ }
79
+ .header-addons .locales {
80
+ max-height: 400px;
81
+ overflow-y: auto;
82
+ }
83
+ `,mo=(e,{name:t,alternative:n})=>function(o){return x.useEffect(()=>{},[]),c.jsx(e,{...o})},Fc={light:"fal",regular:"far",solid:"fas"};function Cn({name:e,color:t,size:n,variant:r,rounded:o,style:i,className:s,forwardedRef:a,...l}){const u=c.jsx("i",{ref:a,className:`${Fc[r]} fa-${e} ${o?"":s}`,style:Object.assign({color:t,fontSize:`${n}px`},i||{})});return o?c.jsx(Vc,{ref:a,size:n,color:t,className:s,...l,children:u}):u}Cn.propTypes={name:m.string.isRequired,className:m.string,color:m.string,rounded:m.bool,variant:m.string,size:m.number,style:m.object};Cn.defaultProps={rounded:!1,variant:"light",color:_e.grey[900],className:"",size:24,style:{}};const Vc=lr("span")`
84
+ width: ${e=>e.size*2}px;
85
+ height: ${e=>e.size*2}px;
86
+ border-radius: 50%;
87
+ border: 1px solid ${e=>e.color};
88
+ display: flex;
89
+ justify-content: center;
90
+ align-items: center;
91
+
92
+ .fa,
93
+ .fas,
94
+ .fal,
95
+ .far {
96
+ line-height: ${e=>e.size}px;
97
+ }
98
+ `,Hc=mo(x.forwardRef((e,t)=>c.jsx(Cn,{...e,forwardedRef:t})),{name:"Icon",alternative:"SVG icons"}),$t={error:{icon:"exclamation-circle",color:_e.error.main,borderColor:"#e35b54",backgroundColor:"rgba(227, 91, 84, 0.2)"},warning:{icon:"exclamation-triangle",color:_e.warning.main,borderColor:"#f7d040",backgroundColor:"rgba(247, 208, 64, 0.2)"},success:{icon:"check-circle",color:_e.success.main,borderColor:"#89ddd9",backgroundColor:"rgba(137, 221, 217, 0.2)"},tip:{icon:"info-circle",color:_e.grey[500],borderColor:"#222222",backgroundColor:"#EEEEEE"}};function st(e){const t=Qo(e,st,["style"]),{type:n,children:r,style:o,className:i,variant:s,...a}=t,{icon:l,color:u,backgroundColor:d,borderColor:f}=$t[n]||$t.success,p=Object.assign({color:hs[500],backgroundColor:s==="border"?d:"transparent",borderLeft:s==="border"?`5px solid ${f}`:"none"},o);return c.jsxs(Kc,{...a,className:`alert alert--${n} alert--${s} ${i}`.trim(),style:p,children:[s==="icon"&&c.jsx(Hc,{className:"alert-icon",name:l,size:24,style:{color:u}}),c.jsx(G,{component:"div",className:"alert-content",children:r})]})}st.propTypes={type:m.oneOf(Object.keys($t)),children:m.any.isRequired,className:m.string,style:m.oneOfType([m.object,m.string]),variant:m.oneOf(["border","icon"])};st.defaultProps={type:"tip",className:"",style:"{}",variant:"border"};const qc=mo(st,{name:"Alert",alternative:"@mui/material/Alert"}),Kc=lr("div")`
99
+ display: flex;
100
+ align-items: center;
101
+ font-size: 16px;
102
+ margin: 0;
103
+ padding: 16px;
104
+ margin: 16px 0;
105
+
106
+ strong {
107
+ margin: 0 5px;
108
+ }
109
+
110
+ .alert-icon {
111
+ margin-right: 16px;
112
+ }
113
+
114
+ .alert-content {
115
+ flex: 1;
116
+ display: flex;
117
+ flex-direction: column;
118
+ }
119
+ `;function Wc(){const{t:e,locale:t}=Q(),{blocklet:n,launcherSession:r}=Ee(),[o,i]=cs({subscriptionURL:"#"});if(x.useEffect(()=>{var l,u;In(n,r)&&Xo({launcherSessionId:(l=n==null?void 0:n.controller)==null?void 0:l.launcherSessionId,launcherUrl:(u=n==null?void 0:n.controller)==null?void 0:u.launcherUrl,locale:t}).then(d=>{i({subscriptionURL:d})}).catch(d=>{console.error("get subscription url error:",d)})},[n,r]),!n||!r||!Zo(n)||r.status===$.LAUNCH_SESSION_STATUS.installed)return"";let s=null,a="";return In(n,r)?(s=c.jsx(gr,{href:o.subscriptionURL,children:e("blocklet.manageSubscription")}),a=e("blocklet.suspendedCausedByExpired",{deadline:qe(r==null?void 0:r.reservedUntil,t)})):Yo(n,r)&&(s=c.jsx(kt,{to:Be($.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/storage"),children:e("common.backup")}),a=e("blocklet.suspendedCausedByTerminated",{canceledAt:qe(r==null?void 0:r.terminatedAt,t),deadline:Jo(r==null?void 0:r.terminatedAt,t)})),c.jsxs(D,{component:qc,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[a,c.jsx(G,{component:"span",sx:{marginLeft:"4px"},children:s})]})}const go=x.createContext({});function Nl(){return x.useContext(go)}const{Provider:Gc,Consumer:Ml}=go,{did:K,appId:Qc}=window.env;function Xc({children:e}){var S,R;const{t,locale:n}=Q(),{blocklet:r}=Ee(),[o,i]=x.useState([]),[s,a]=x.useState([]),[l,u]=x.useState([]),d=k.getDisplayName(r),f=((S=((r==null?void 0:r.environments)||[]).find(C=>C.key===Y.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:S.value)||"auto",p=(r==null?void 0:r.trustedPassports)||[],v=(r==null?void 0:r.trustedFactories)||[],b=(r==null?void 0:r.enablePassportIssuance)!==!1,h=async()=>{try{const C=await Me.doBatchQuery({getRoles:{input:{teamDid:K}},getPermissions:{input:{teamDid:K}},getInvitations:{input:{teamDid:K}}});a((C.getRoles.roles||[]).filter(P=>!$.RBAC_CONFIG.roles.some(E=>E.name===P.name&&(!E.passport||E.ci))).map(P=>(P.hasDescription=!!P.description,P.hasDescription||(P.description=t("team.passport.description",{teamName:d,title:P.title})),P))),u(C.getPermissions.permissions||[]),i(C.getInvitations.invitations||[])}catch(C){J.error(C.message)}},j=({did:C}={})=>{const P={teamDid:K,user:{did:C}};return Me.getUser({input:P})},I=({query:C,paging:P}={})=>{const E={teamDid:K};return P&&(E.paging=P),C&&(E.query=C),E.sort={lastLoginAt:-1},Me.getUsers({input:E})},g=()=>Me.getUsersCountPerRole({input:{teamDid:K}}),_=()=>h();x.useEffect(()=>{var C;(C=r==null?void 0:r.meta)!=null&&C.did&&h()},[(R=r==null?void 0:r.meta)==null?void 0:R.did]),x.useEffect(()=>{a(C=>C.map(P=>(P.hasDescription||(P.description=t("team.passport.description",{teamName:d,title:P.title})),{...P})))},[t,n]);const w=C=>{C.teamDid===K&&h()};ze(Y.TeamEvents.userAdded,w,[K]),ze(Y.TeamEvents.userRemoved,w,[K]),ze(Y.TeamEvents.userUpdated,w,[K]);const O={teamDid:K,teamIssuerDid:Qc,teamName:d,invitations:o,roles:s,permissions:l,trustedPassports:p,trustedFactories:v,isNodeTeam:!1,enablePassportIssuance:b,refresh:_,passportColor:f,endpoint:window.location.origin,blocklet:r,api:{getUser:j,getUsers:I,getUsersCountPerRole:g}};return c.jsx(Gc,{value:O,children:e})}const Zc=x.lazy(()=>F(()=>import("./overview-jW78KQ6d.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52]))),Yc=x.lazy(()=>F(()=>import("./index--YUaVsoq.js"),__vite__mapDeps([53,1,2,54,9,55,56,57,58,27,28,29,30,31,59,60,33,61,44,45,37,38,62,49,63,64,34,12,40,65,47,48,50,51,52,10,46,19,66,23,67,21,7,68,69,6,13,14,15,70,17,18,4,16,71,72,35,36,73,39,41,42,43,5,20]))),Jc=x.lazy(()=>F(()=>import("./index-BJDKEH0b.js"),__vite__mapDeps([74,1,2,9,75,10,42,76,11,57,58,27,28,29,30,31,13,14,15,16,17,18,19,44,77,12,6,7,5,20,78,38,39,40,34,41,37,43,45,46,47,48,49,50,51,52]))),el=x.lazy(()=>F(()=>import("./index-CTFO1wAr.js"),__vite__mapDeps([79,1,2,80,81,82,83,54,76,84,42,27,28,29,30,31,85,46,19,10,38,55,86,18,87,13,14,15,16,17,20,70,44,68,12,88,89,37,63,64,61,90,3,91,59,60,33,45,62,49,58,34,40,4,92,93,39,41,43,5,7,47,48,50,51,52,94]))),tl=x.lazy(()=>F(()=>import("./audit-logs-Dt1zBSaX.js"),__vite__mapDeps([95,1,2,96,97,12,5,39,28,29,30,31,98,62,99,38,40,16,17,18,19,34,41,37,42,43,44,45,46,15,13,14,7,20,47,48,49,50,51,52]))),nl=x.lazy(()=>F(()=>import("./log-DVDRYSeA.js"),__vite__mapDeps([100,1,2,39,42,101,28,29,31,102]))),rl=x.lazy(()=>F(()=>import("./index-D5PXuh6o.js"),__vite__mapDeps([103,1,2,9,104,34,105,59,60,33,61,44,29,28,45,30,37,31,27,38,62,49,63,64,58,12,40,5,16,17,18,19,15,6,7,85,46,73,101,106,20,54,72,25,93,10,23,107,108,109,88,82,70,42,110,84,78,68,96,97,99,111,43]))),ol=x.lazy(()=>F(()=>import("./config-navigation-1U4iVdBl.js"),__vite__mapDeps([112,1,2,63,64,61,113,110,86,31,28,29,18,19,114,115,30,37,27,38,78,65,47,48,49,50,51,40,52,10,46,116,17,42,32,33,39,16,34,41,43,44,45,15,13,14,5,7,20]))),sl=x.lazy(()=>F(()=>import("./index-BcFOSrVl.js"),__vite__mapDeps([117,1,2,75,10,42,25,118,67,119,93,17,27,28,29,30,31,18,19,4,6,7,90,68,44,36,108,37,87,5,59,60,33,61,45,38,62,49,63,64,58,34,12,40]))),il=x.lazy(()=>F(()=>import("./component-BziFLYA3.js"),__vite__mapDeps([120,1,2,9,81,82,83,54,76,84,42,27,28,29,30,31,12,90,68,44,13,14,15,38,60,33,61,45,37,62,49,64,58,121,85,46,19,108,104,113,110,116,78,122,70,34,18,17,123,124,125,119,93,25,126,50,127,128,129,130,131,77,96,97,114,4,6,7,111,109,40,88,73,16,26,132,118,67,75,10,133,39,47,134,135,11,22,43,41,35,36,5,20,48,51,52]))),al=x.lazy(()=>F(()=>import("./analytics-B3U8I3AQ.js"),__vite__mapDeps([136,1,2,38,13,14,15,80,137,121,61,85,46,19,64,40,37,28,29,31,18,17,33,107,27,30,78,59,60,44,45,62,49,63,58,34,12,39,16,41,42,43,5,7,20,47,48,50,51,52]))),cl=x.lazy(()=>F(()=>import("./notifications-DHYTuxQt.js"),__vite__mapDeps([138,1,2,13,14,15,44,29,40,46,19,37,98,62,38,39,16,17,18,34,41,42,43,45,5,7,20,47,48,49,50,51,52])));function ll(){var h,j;const e=Je(),{tab:t="overview"}=ns(),{blocklet:n,actions:{refreshBlocklet:r}}=Ee(),{t:o}=Q(),i=(h=n==null?void 0:n.meta)==null?void 0:h.did,s=I=>{e(`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${I}`)},a=()=>{r()},l=!n||xt(n.status)?[]:k.getAppMissingConfigs(n),u=[{label:o("common.overview"),value:"overview"},{label:c.jsx(yr,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!l.length,children:o("common.components")}),value:"components"}];xt(n==null?void 0:n.status)||u.push({label:o("common.configuration"),value:"configuration"}),u.push({label:o("common.auditLogs"),value:"audit-logs"}),n&&((j=n.children)!=null&&j.length)&&n.structVersion===$.APP_STRUCT_VERSION&&u.push({label:o("common.logs"),value:"logs"}),u.push({label:o("common.configNavigation"),value:"navigation"}),u.push({label:o("common.storage"),value:"storage"});const d=c.jsx(tl,{scope:i,categories:["blocklet","team","security","certificates","gateway"]});ze($.EVENTS.NOTIFICATION_BLOCKLET_CREATE,I=>{const{severity:g,title:_,description:w}=I||{};g==="error"?J.error(w||_):J.success(w||_)});const f={overview:c.jsx(Zc,{}),members:c.jsx(D,{mt:-5,children:c.jsx(Yc,{type:"blocklet",createPassportSvg:En})}),passports:c.jsx(D,{mt:-4.5,children:c.jsx(Jc,{createPassportSvg:En})}),components:il,configuration:c.jsx(el,{blocklet:n,onUpdate:a}),"audit-logs":d,logs:nl,navigation:ol,storage:c.jsx(sl,{}),analytics:c.jsx(D,{mt:-5,children:c.jsx(al,{})}),publish:c.jsx(D,{mt:-3,children:c.jsx(rl,{})}),notifications:c.jsx(cl,{})},p=f[t]||f.overview,v=!["members","passports","analytics","publish","notifications"].includes(t),b=n?c.jsxs(nn,{type:"components",children:[v&&c.jsx(D,{pt:3,children:c.jsx(os,{tabs:u,current:t,onChange:s,scrollButtons:"auto"})}),c.jsx("div",{className:"page-content",children:c.jsx(x.Suspense,{fallback:c.jsx(Ke,{relative:"parent",children:c.jsx(te,{})}),children:x.isValidElement(p)?p:c.jsx(p,{blocklet:n})})})]}):c.jsx(Ke,{relative:"parent",children:c.jsx(te,{})});return c.jsx(rs,{children:c.jsx(Xc,{children:c.jsx(_n,{children:c.jsxs(dl,{children:[v&&c.jsxs(D,{component:"div",className:"page-header",children:[c.jsxs(G,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[n?c.jsx(Jt,{blocklet:n,style:{marginRight:16}}):null,n?c.jsxs(D,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[c.jsx(D,{children:k.getDisplayName(n)}),(n==null?void 0:n.status)!=="unknown"&&c.jsx(tn,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${o("common.blocklet")} ${o("common.detail")}`]}),n?c.jsx(Yt,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:I}={})=>{I&&J.error(I.message)},variant:"group"}):null]}),c.jsx(Ir,{}),c.jsx(Wc,{}),b]})})})})}function ul(){var r;const{blocklet:e}=Ee(),{t}=Q(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return x.useEffect(()=>{const o=es();return n&&o.connect(),()=>{n&&o.isConnected()&&o.disconnect()}},[n]),c.jsxs(c.Fragment,{children:[c.jsx(ts,{children:c.jsx("title",{children:t("pageTitle.dashboard")})}),c.jsx(ll,{})]})}const dl=Ye.main`
120
+ .page-header {
121
+ display: flex;
122
+ justify-content: space-between;
123
+ align-items: center;
124
+ flex-wrap: wrap;
125
+ gap: 16px;
126
+ }
127
+
128
+ .page-title {
129
+ display: flex;
130
+ align-items: center;
131
+
132
+ .page-link {
133
+ font-size: 15px;
134
+ margin-top: 8px;
135
+ margin-left: 8px;
136
+ }
137
+ }
138
+
139
+ .page-content {
140
+ margin-top: 18px;
141
+ }
142
+
143
+ @media (max-width: ${e=>e.theme.breakpoints.values.md}px) {
144
+ .page-header {
145
+ flex-direction: column;
146
+ align-items: flex-start;
147
+ .page-actions,
148
+ .MuiButtonGroup-root {
149
+ width: 100%;
150
+ }
151
+ .MuiButtonGroup-root {
152
+ .MuiButtonBase-root {
153
+ flex: 1;
154
+ }
155
+ .blocklet-action-text {
156
+ display: none;
157
+ }
158
+ }
159
+ }
160
+
161
+ .page-title {
162
+ margin-bottom: 15px;
163
+ }
164
+ }
165
+ `,Ul=Object.freeze(Object.defineProperty({__proto__:null,default:ul},Symbol.toStringTag,{value:"Module"}));export{tn as B,Ts as L,po as N,bn as R,en as W,xi as _,yr as a,ci as b,_r as c,ao as d,Jt as e,vr as f,Vt as g,pe as h,xr as i,Al as j,br as k,$l as l,Ul as m,Ze as p,Nl as u};
@@ -0,0 +1 @@
1
+ const e={auth:{noPermission:{title:"Keine Erlaubnis",description:"Du bist nicht der Administrator des Blocklets"}},login:{reLogin:"Verbinden",description:"Du musst deine DIDs Wallet verbinden, um auf {name} zuzugreifen",already:"Du bist verbunden als",connectWallet:"Verbinde das DID Wallet",closeWindow:"Fenster schließen",accessLimit:{title:"Seitenzugriff eingeschränkt",description:"Diese Seite erfordert die folgenden Pässe zum Zugriff, verbinden Sie sich bitte mit dem Portemonnaie, um den entsprechenden Pass zu ändern oder zu beantragen.",alreadyHavePassport:"Habe bereits den Reisepass",connectWithPassport:"Verbinde mit diesem Reisepass",buyPassport:"Kaufen Sie einen Reisepass"},switchDid:{title:"Wechseln Sie das DID Wallet",scan:"Scannen Sie den folgenden QR-Code, um den Account zu wechseln",confirm:"Bestätige den Wechsel in deiner DID-Wallet",success:"Erfolgreich umgeschaltet"},switchSpecifiedDid:{title:"Wechsle DID Wallet",scan:"Du musst die DID zu {did} wechseln, um die folgenden Aktionen abzuschließen.",confirm:"Bestätigen Sie den Wechsel in Ihrer DID-Brieftasche",success:"Erfolgreich gewechselt"},connect:{title:"Verbinde DID Wallet",scan:"Verbinden Sie Ihre DID-Brieftasche, um auf diese Anwendung zuzugreifen",confirm:"Bestätigen Sie in Ihrer DID-Geldbörse",success:"Sie sind erfolgreich verbunden"},needManualClose:"Anmeldung erfolgreich. Wenn sich dieses Fenster nicht automatisch schließt, bitte schließen.",connectWithPassport:"Verbinde dich mit diesem Reisepass",invalidRedirectUrl:"Ungültige Weiterleitungs-URL"},studio:{home:"Studio",preferences:"Präferenzaufbau",localization:"Lokalisierung"},blocklet:{startApplication:"Starte Anwendung",startDescription:"Bereit, {name} zu starten",start:"Start",starting:"Starten...",open:"Öffnen",suspended:"Anwendung ausgesetzt",manageSubscription:"Abonnement verwalten",suspendedCausedByExpired:"Diese Anwendung wurde aufgrund abgelaufener Bezahlung vorübergehend gestoppt. Bitte erneuern Sie vor {deadline}, um fortzufahren. Erfolgt in der angegebenen Frist keine Erneuerung, kann sie nicht mehr erneuert oder fortgesetzt werden.",suspendedCausedByTerminated:"Die Anwendung wurde aufgrund der am {canceledAt} gekündigten Subscription beendet und die Daten werden bis zum {deadline} vorgehalten. Bevor die Daten gelöscht werden, können Sie die Daten in DID Spaces sichern.",terminated:"Anwendung beendet"},setup:{steps:{connect:"Verbinden",didSpace:"DID Spaces",config:"Konfiguration",domain:"Domain",access:"Zugangskontrolle",fuel:"Kraftstoff",complete:"Komplett",introduction:"Einführung",selectNodeDesc:"Wähle Blocklet Server aus",launchAppDesc:"Blocklet auf Server installieren",setupAppDesc:"Setup Blocklet",launched:"Vervollständigen"},connect:{title:"Verbinde mit Anwendung",scan:"Verbinden Sie Ihre DID Wallet, um das Benutzerprofil und die Eigentümerrechte des Blocklets bereitzustellen. Anschließend können Sie die App konfigurieren und starten.",confirm:"Bestätigen Sie in Ihrer DID-Brieftasche",success:"Sie sind erfolgreich verbunden"},domain:{addTitle:"Fügen Sie einen neuen Domänennamen hinzu (Optional)",title:"Domain Einstellung",subTitle:"Legen Sie eine benutzerdefinierte Domain für die Anwendung fest",label:"Bitte geben Sie einen gültigen Domainnamen an",tipStart:"Bitte stellen Sie sicher",tipEnd:"Hat Punkt zum aktuellen Server",cannotResolve:"{domain} kann nicht aufgelöst werden, bitte überprüfen Sie Ihre DNS-Konfiguration.",checkingResolvable:"Überprüfe den Domain-Status...",addingCert:"Zertifikat wird erstellt...",addingDomain:"Domain wird hinzugefügt...",recordType:"Datentyp",recordValue:"Aufzeichnungswert",skipStart:"Du kannst",skip:"Überspringe die benutzerdefinierte Domaineinstellung",skipEnd:"und verwenden Sie die Standarddomäne, um auf die Anwendung zuzugreifen",genCertSuccess:"Das {domain}-Zertifikat wurde erfolgreich ausgestellt",genCertFailed:"Fehler beim Ausstellen des Zertifikats für {domain}: {message}",genCertFailedForNFTDomain:"NFT-Domain erfolgreich hinzugefügt, aber das HTTPS-Zertifikat konnte nicht generiert werden. Bitte versuche es später erneut.",resolvedAddressError:"{domain} zeigt nicht auf die gleiche IP-Adresse wie {curDomain}",invalidDNSReminder:"{error}. Sie können jedoch weiterhin die Domain hinzufügen, aber eine automatische Zertifikatserstellung ist nicht verfügbar.",continueAdd:"Weiter hinzufügen"},didSpace:{title:"Konfigurieren Sie DID Spaces",subTitle:"Bitte schließen Sie den folgenden Verbindungsvorgang ab, um Anwendungsdaten in DID Spaces zu speichern.",tips:"Tipps",description:"Konfigurieren Sie die DID Spaces Instanzadresse und speichern Sie die Anwendungsdaten in DID Spaces nach einer erfolgreichen Verbindung",label:"Bitte wählen Sie den DID Spaces-Dienst",connected:"Sie haben erfolgreich eine Verbindung mit DID Spaces hergestellt",connect:"Verbinden Sie jetzt",reconnect:"Verbinden",addressCannotEmpty:"Die Adresse darf nicht leer sein",addressNotValid:"{url} ist keine gültige Adresse.",authorize:{title:"Verbinde {appName} mit DID Spaces",scan:"Verwenden Sie Ihre DID-Geldbörse, um den QR-Code unten zu scannen und der App {appName} den Zugriff auf DID-Räume zu ermöglichen",success:"Erfolgreich verbunden"}},config:{title:"Konfiguration",subTitle:"Andere Konfigurationselemente (Sie müssen auch die folgenden Elemente festlegen)"},complete:{title:"Alles ist bereit",failedTitle:"Fehler beim Starten des Blocklets",backToServer:"Zurück zum Blocklet Server",notRunning:"Blocklet konnte beim ersten Versuch nicht gestartet werden, bitte erneut versuchen"},fuel:{title:"Kraftstoff zum Starten erforderlich",tipStart:"Schlitz",tipEnd:"Für diese Anwendung ist eine Guthaben erforderlich, damit die Anwendung ordnungsgemäß funktionieren kann. Die Gelder werden in der Anwendungsbrieftasche gespeichert und können für Transaktionsgebühren verwendet werden. Sie können Ihr Guthaben jederzeit abheben, wenn Sie die App nicht mehr verwenden.",addressTitle:"Anwendungskonto",addressTip:"Befüllen Sie die Anwendung mit einer DID Wallet",need:"Brauchen",current:"Aktuell",fuelApp:"Anwendung mit Treibstoff versorgen"},title:"Aufbau",next:"Nächster",previous:"Vorherige",continue:"Weiter",skip:"Überspringen",startNow:"Starte jetzt",confirm:"Bestätigen",cancel:"Abbrechen"},user:{walletNotification:"DID Wallet Benachrichtigung",emailNotification:"E-Mail-Benachrichtigung",smsNotification:"SMS-Benachrichtigung",addWebhook:"Neuen Webhook hinzufügen"},pageTitle:{login:"Anmelden",dashboard:"Blocklet-Dashboard",userCenter:"Benutzerzentrum",invite:"Einladen",issuePassport:"Reisepass ausstellen",lostPassort:"Verloren Reisepass"}};export{e as default};
@@ -1 +1 @@
1
- import{j as s,D as p,L as d,P as r}from"./index-Bdg2hH7J.js";import{L as l}from"./Link-NMapyzp6.js";function a({did:o,href:t,external:n,avatarProps:f,...i}){const e=s.jsx(p,{did:o,...i});return t?n?s.jsx(l,{target:"_blank",href:t,underline:"hover",children:e}):s.jsx(d,{to:t,children:e}):e}a.propTypes={did:r.string.isRequired,to:r.string,href:r.string,avatarProps:r.object,external:r.bool};a.defaultProps={to:"",href:"",avatarProps:{},external:!1};export{a as W};
1
+ import{j as s,D as p,L as d,P as r}from"./index-CaLGv6xG.js";import{L as l}from"./Link-BzeSWqDp.js";function a({did:o,href:t,external:n,avatarProps:f,...i}){const e=s.jsx(p,{did:o,...i});return t?n?s.jsx(l,{target:"_blank",href:t,underline:"hover",children:e}):s.jsx(d,{to:t,children:e}):e}a.propTypes={did:r.string.isRequired,to:r.string,href:r.string,avatarProps:r.object,external:r.bool};a.defaultProps={to:"",href:"",avatarProps:{},external:!1};export{a as W};
@@ -0,0 +1,9 @@
1
+ import{j as i,r,a2 as P,al as C,a9 as T,fy as B,a6 as h,B as a,P as f,a0 as w}from"./index-CaLGv6xG.js";import{D as E,a as b,A as I}from"./domain-list-A5SqLbLS.js";import{P as A}from"./page-header-Bjl7D46v.js";import{_ as L}from"./useSetState-DEVLe2Fz.js";import{S as d}from"./button-BotQVFjI.js";import{S as W}from"./layout-D41GSjev.js";import{S as _}from"./step-actions-NyA7AGpj.js";import"./Add-DV9cHTiI.js";import"./ExpandMore-DpLFPsWa.js";import"./LockIcon-Cx_TySkG.js";import"./index-B5Pm_bPi.js";import"./did-address-TSZ5XRBj.js";import"./Link-BzeSWqDp.js";import"./permission-BK9x4qjQ.js";import"./useAsync-PE3W-DLW.js";import"./session-AqfK0jLG.js";import"./confirm-BWW215hi.js";import"./format-error-DQS9AwZv.js";import"./Alert-BriK3hjA.js";import"./useSlot-BrU8y60n.js";import"./use-mobile-BLqjm-5m.js";import"./InfoOutlined-DEt-KJ8v.js";import"./OpenInNew-Ba4HupG6.js";import"./index-CFQwbx1S.js";import"./api-DJ1sjN9o.js";import"./index-B22_1WOD.js";import"./util-yXMDVjHb.js";import"./TextField-BYelVRF_.js";import"./FormControl-Dq6XW9kS.js";import"./useFormControl-DMGx-jdt.js";import"./InputLabel-DYr7To9X.js";import"./Select-CMM8MR9i.js";import"./LoadingButton-IrsPdnhT.js";import"./useThemeProps-C59Glnbx.js";import"./Delete-rvy-F0hT.js";import"./actions-Dv2KmWA_.js";import"./MoreHoriz-B_IgZ_Tw.js";import"./ListItemText-BWMpM4cA.js";import"./content-layout-BP4bsvx7.js";function p({onNext:s,onPrevious:D}){var u,x;const{t:o}=r.useContext(P),[S,l]=r.useState(!1),{blocklet:e}=C(),[c,j]=r.useState(""),y=(((e==null?void 0:e.site)||{}).domainAliases||[]).map(t=>T.replaceSlotToIp(t.value,c)),[n,m]=L({domain:"",invalidDNSDomain:null,type:"",addDomainState:{text:""}}),v=(x=(u=e.environments)==null?void 0:u.find(t=>t.key==="BLOCKLET_APP_PK"))==null?void 0:x.value,g=y.find(t=>B.isDidDomain(t));return r.useEffect(()=>{h.get(`/dns-resolve?hostname=${window.location.hostname}`).then(({data:t})=>{j(t.address||"")}).catch(t=>{console.error(t.message)})},[]),i.jsxs(z,{children:[i.jsx("div",{className:"header",children:i.jsx(A,{title:o("setup.domain.title"),subTitle:o("setup.domain.subTitle"),onClickBack:D})}),i.jsxs(a,{className:"form",sx:{display:"flex",flexDirection:"column",gap:3,overflowY:"auto"},children:[i.jsxs(a,{children:[i.jsxs(a,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",children:[i.jsx(a,{display:"inline",children:o("setup.domain.skipStart")}),i.jsx(d,{variant:"text",size:"small",disabled:!!n.addDomainState.text,onClick:()=>s(),style:{paddingTop:0},children:i.jsx("span",{style:{textDecoration:"underline"},children:o("setup.domain.skip")})}),i.jsx(a,{display:"inline",children:o("setup.domain.skipEnd")})]}),i.jsx(a,{sx:{marginTop:"12px"},children:i.jsx(b,{listOnly:!0,inSetup:!0})})]}),i.jsxs(a,{children:[i.jsx(a,{fontWeight:"fontWeightBold",fontSize:"1.125rem",children:o("setup.domain.addTitle")}),i.jsx(I,{autoFocus:!1,appPk:v,appId:e.appPid,siteId:e.site.id,teamDid:e.meta.did,sx:{marginTop:"12px"},cnameDomain:g,currentIp:c,inBlockletSetup:!0,shouldCheckDomain:!0,resolveDomain:t=>h.get(`/dns-resolve?hostname=${t}`),onInputDomain:t=>{m({domain:t.domain,type:t.type}),l(t.error)},onStateChange:t=>m({addDomainState:t}),onSuccess:t=>{const k={domain:t.domain,type:t.type,nftDid:t.nftDid,chainHost:t.chainHost};m(k),s()},onError:l})]})]}),i.jsx(_,{mt:8,disabled:!!n.addDomainState.text,blocklet:e,onStartNow:()=>s("complete"),children:n.domain?i.jsx(d,{variant:"contained",loading:!!n.addDomainState.text,disabled:S||!!n.addDomainState.text||!n.domain,onClick:()=>s(),children:n.addDomainState.text||o("setup.next")}):i.jsx(d,{variant:"contained",disabled:!!n.addDomainState.text,onClick:()=>s(),children:o("setup.skip")})})]})}function Pt(s){return i.jsx(E,{children:i.jsx(p,{...s})})}p.propTypes={onNext:f.func,onPrevious:f.func};p.defaultProps={onNext:()=>{},onPrevious:()=>{}};const z=w(W)`
2
+ height: 100%;
3
+ overflow-y: hidden;
4
+ .form {
5
+ width: 100%;
6
+ height: 100%;
7
+ word-break: break-all;
8
+ }
9
+ `;export{Pt as default};
@@ -0,0 +1,15 @@
1
+ import{fz as ct,b8 as qe,fA as dt,fB as mt,fC as ut,fD as pt,fE as ft,fF as ht,Z as K,$ as J,j as e,cu as xt,eP as gt,P as r,fG as ze,u as R,r as C,aQ as U,aZ as Me,ab as Te,a as N,n as W,t as B,fH as Ne,fI as yt,fJ as jt,B as p,a1 as Fe,ak as G,T as S,fK as Be,C as Re,K as bt,c4 as Dt,bE as Ee,fy as Oe,aU as Ue,a3 as V,aW as vt,bj as We,c7 as He,c9 as Ve,cw as Ct,bk as Ie,fL as wt,a0 as St,bm as At,bs as Tt,fM as Rt,fN as Et,a9 as ke,aD as It}from"./index-CaLGv6xG.js";import{d as kt}from"./Add-DV9cHTiI.js";import{d as Pt}from"./ExpandMore-DpLFPsWa.js";import{d as _t}from"./LockIcon-Cx_TySkG.js";import{E as Lt}from"./index-B5Pm_bPi.js";import{W as $t}from"./did-address-TSZ5XRBj.js";import{_ as qt,D as Pe,w as Ke}from"./permission-BK9x4qjQ.js";import{C as Q}from"./confirm-BWW215hi.js";import{A as Je}from"./Alert-BriK3hjA.js";import{_ as le}from"./useSetState-DEVLe2Fz.js";import{u as zt}from"./use-mobile-BLqjm-5m.js";import{d as Mt}from"./InfoOutlined-DEt-KJ8v.js";import{d as Nt}from"./OpenInNew-Ba4HupG6.js";import{r as Ft}from"./index-CFQwbx1S.js";import{_ as Bt}from"./useAsync-PE3W-DLW.js";import"./api-DJ1sjN9o.js";import{I as Ot}from"./index-B22_1WOD.js";import{p as _e}from"./util-yXMDVjHb.js";import{L as Ut}from"./Link-BzeSWqDp.js";import{T as Wt}from"./TextField-BYelVRF_.js";import{L as Ht}from"./LoadingButton-IrsPdnhT.js";import{d as Ge}from"./Delete-rvy-F0hT.js";import{A as Vt}from"./actions-Dv2KmWA_.js";import{L as Kt,a as Jt}from"./ListItemText-BWMpM4cA.js";var Gt=ct;function Qt(n,t){for(var o=-1,i=n.length;++o<i&&Gt(t,n[o],0)>-1;);return o}var Zt=Qt,Yt=dt,Xt=mt,en=ut,tn=pt,nn=Zt,Le=ft,on=ht;function rn(n,t,o){if(n=on(n),n&&(o||t===void 0))return Xt(n);if(!n||!(t=Yt(t)))return n;var i=Le(n),s=Le(t),a=nn(i,s),l=tn(i,s)+1;return en(i,a,l).join("")}var sn=rn;const ce=qe(sn);var de={},an=J;Object.defineProperty(de,"__esModule",{value:!0});var oe=de.default=void 0,ln=an(K()),cn=e;oe=de.default=(0,ln.default)((0,cn.jsx)("path",{d:"M12.16 3h-.32L9.21 8.25h5.58zm4.3 5.25h5.16L19 3h-5.16zm4.92 1.5h-8.63V20.1zM11.25 20.1V9.75H2.62zM7.54 8.25 10.16 3H5L2.38 8.25z"}),"Diamond");var me={},dn=J;Object.defineProperty(me,"__esModule",{value:!0});var Qe=me.default=void 0,mn=dn(K()),un=e;Qe=me.default=(0,mn.default)((0,un.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");class pn{constructor(t,o,i){this.name=t,this.prefix=o,this.baseEncode=i}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class fn{constructor(t,o,i){if(this.name=t,this.prefix=o,o.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=o.codePointAt(0),this.baseDecode=i}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return Ze(this,t)}}class hn{constructor(t){this.decoders=t}or(t){return Ze(this,t)}decode(t){const o=t[0],i=this.decoders[o];if(i)return i.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Ze=(n,t)=>new hn({...n.decoders||{[n.prefix]:n},...t.decoders||{[t.prefix]:t}});class xn{constructor(t,o,i,s){this.name=t,this.prefix=o,this.baseEncode=i,this.baseDecode=s,this.encoder=new pn(t,o,i),this.decoder=new fn(t,o,s)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const gn=({name:n,prefix:t,encode:o,decode:i})=>new xn(n,t,o,i),yn=(n,t,o,i)=>{const s={};for(let u=0;u<t.length;++u)s[t[u]]=u;let a=n.length;for(;n[a-1]==="=";)--a;const l=new Uint8Array(a*o/8|0);let c=0,d=0,x=0;for(let u=0;u<a;++u){const j=s[n[u]];if(j===void 0)throw new SyntaxError(`Non-${i} character`);d=d<<o|j,c+=o,c>=8&&(c-=8,l[x++]=255&d>>c)}if(c>=o||255&d<<8-c)throw new SyntaxError("Unexpected end of data");return l},jn=(n,t,o)=>{const i=t[t.length-1]==="=",s=(1<<o)-1;let a="",l=0,c=0;for(let d=0;d<n.length;++d)for(c=c<<8|n[d],l+=8;l>o;)l-=o,a+=t[s&c>>l];if(l&&(a+=t[s&c<<o-l]),i)for(;a.length*o&7;)a+="=";return a},q=({name:n,prefix:t,bitsPerChar:o,alphabet:i})=>gn({prefix:t,name:n,encode(s){return jn(s,i,o)},decode(s){return yn(s,i,o,n)}}),bn=q({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Dn=q({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),vn=q({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Cn=q({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),wn=q({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Sn=q({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),An=q({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Tn=q({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Rn=q({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),En=Object.freeze(Object.defineProperty({__proto__:null,base32:bn,base32hex:wn,base32hexpad:An,base32hexpadupper:Tn,base32hexupper:Sn,base32pad:vn,base32padupper:Cn,base32upper:Dn,base32z:Rn},Symbol.toStringTag,{value:"Module"})),In=xt(En),{toBuffer:kn,toAddress:Pn,toBase58:_n,toHex:Ln}=gt,{base32:Ye}=In,$n=n=>{if(!n)return n;const t=kn(Pn(n));return Ye.encode(t)},qn=n=>{if(!n)return n;const t=Ye.decode(n),o=_n(t);return o.length>30?o:Ln(t)};var zn={encode:$n,decode:qn};const Mn=n=>["waiting","creating","renewaling"].includes(n);function ue(n){var y,v;const{t}=R(),[o,i]=C.useState(!1),{inService:s}=U(),[a,l]=C.useState(null),{siteId:c,domain:d,onAdd:x,children:u,did:j}=n,[_,b]=C.useState(!1),{api:A,ws:{useSubscription:E}}=U(),{mode:I,actions:{refreshDomainStatus:f}}=Me(),T=qt(async()=>{const{cert:g}=await A.findCertificateByDomain({input:{domain:d,did:j}});return g}),k=(g,L)=>{g.domain===d&&(b(!1),i(!1),s&&I!=="setup"&&(L==="success"?B.success(t("setup.domain.genCertSuccess",{domain:g.domain})):L==="error"&&B.error(t("setup.domain.genCertFailed",{domain:g.domain,message:g.message}))))};if(C.useEffect(()=>{var g;T.loading||b(Mn((g=T.value)==null?void 0:g.status))},[T.loading,(y=T.value)==null?void 0:y.status]),E(Te.BlockletEvents.certError,g=>k(g,"error")),E(Te.BlockletEvents.certIssued,g=>{T.retry(),f(g.domain),k(g,"success")}),T.loading||((v=T.value)==null?void 0:v.status)==="normal")return"";const D=()=>{i(!1),l(null)},m=async()=>{i(!0);try{await A.issueLetsEncryptCert({input:{siteId:c,domain:d,did:j,inBlockletSetup:I==="setup"}}),x(),b(!0)}catch(g){console.error(g),b(!1)}finally{i(!1),l(null)}},P={title:t("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(Je,{severity:"success",children:t("router.cert.genLetsEncryptCert.dnsTip")}),t("router.cert.genLetsEncryptCert.description")]}),confirm:t("common.confirm"),onConfirm:m,onCancel:D},O=g=>{g.stopPropagation(),l(P)};return e.jsxs(e.Fragment,{children:[_?e.jsx(N,{title:t("router.cert.issuing"),children:e.jsx(W,{size:12})}):u({loading:o,open:O}),a&&e.jsx(Q,{color:"primary",title:a.title,description:a.description,confirm:a.confirm,params:a.params,onConfirm:a.onConfirm,onCancel:a.onCancel})]})}ue.propTypes={domain:r.string.isRequired,did:r.string.isRequired,siteId:r.string.isRequired,onAdd:r.func,children:r.any};ue.defaultProps={onAdd:()=>{},children:null};function pe(n){const{domain:t,domainStatus:o,...i}=n;return!ze(t)||o!=null&&o.isHttps?"":e.jsx(ue,{domain:t,...i})}pe.propTypes={domain:r.string.isRequired,domainStatus:r.shape({isHttps:r.bool}).isRequired,did:r.string.isRequired,onAdd:r.func,children:r.any};pe.defaultProps={onAdd:()=>{},children:null};var fe={},Nn=J;Object.defineProperty(fe,"__esModule",{value:!0});var Xe=fe.default=void 0,Fn=Nn(K()),Bn=e;Xe=fe.default=(0,Fn.default)((0,Bn.jsx)("path",{d:"M17 20.41 18.41 19 15 15.59 13.59 17zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5z"}),"CallMerge");const et=C.createContext({}),{Provider:On,Consumer:ko}=et;function Un({children:n}){const[t,o]=le({domain:"",error:null}),{locale:i}=R(),s={error:t.error,domain:t.domain,setError:a=>{o({error:a})},setDomain:a=>{const l=ce(a),c=Ne(l,i);o({domain:l,error:c})}};return e.jsx(On,{value:{value:s},children:n})}function Wn(){const{value:n}=C.useContext(et);return n}const{joinURL:$e}=yt,Hn=jt,tt="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",Vn=async n=>{var c;if(!n||!(n!=null&&n.trim()))return null;const t=new URL(n);t.pathname="__blocklet__.js",t.searchParams.set("type","json");const{data:o}=await Hn.get(t.toString()),i=(c=o==null?void 0:o.componentMountPoints)==null?void 0:c.find(d=>d.did===tt),s=new URL(n);s.pathname=i==null?void 0:i.mountPoint;const a=s.toString(),l=$e(a,"/api");return{base:a,api:l,domain:$e(l,"/domains")}};var Kn={DID_DOMAIN_SERVICE_DID:tt,getDidDomainServiceURL:Vn},Z={exports:{}};const Jn=Ft,Gn=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];class nt extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}}const Qn=(n,t,o)=>{const i=o.retries-(t-1);return n.attemptNumber=t,n.retriesLeft=i,n},Zn=n=>Gn.includes(n),ot=(n,t)=>new Promise((o,i)=>{t={onFailedAttempt:()=>{},retries:10,...t};const s=Jn.operation(t);s.attempt(async a=>{try{o(await n(a))}catch(l){if(!(l instanceof Error)){i(new TypeError(`Non-error was thrown: "${l}". You should only throw errors.`));return}if(l instanceof nt)s.stop(),i(l.originalError);else if(l instanceof TypeError&&!Zn(l.message))s.stop(),i(l);else{Qn(l,a,t);try{await t.onFailedAttempt(l)}catch(c){i(c);return}s.retry(l)||i(s.mainError())}}})});Z.exports=ot;Z.exports.default=ot;Z.exports.AbortError=nt;var Yn=Z.exports;const Xn=qe(Yn);function he({domain:n,resolvedTarget:t,...o}){const{t:i,locale:s}=R();return e.jsxs(p,{sx:{backgroundColor:"rgb(236, 251, 253)",borderColor:"rgb(236, 251, 253)",borderRadius:"8px",padding:"12px"},...o,children:[e.jsxs(p,{display:"flex",children:[i("router.domain.setup.tipStart"),n&&e.jsx(p,{mx:.5,color:"primary.main",fontWeight:"fontWeightBold",children:n}),i("router.domain.setup.tipEnd"),":"]}),e.jsxs(p,{sx:{"&>div":{mb:0},marginTop:"8px"},children:[e.jsx(ie,{label:i("router.domain.setup.recordType"),value:"CNAME",locale:s}),e.jsx(ie,{label:i("router.domain.setup.recordValue"),value:t,locale:s})]})]})}he.propTypes={domain:r.string,resolvedTarget:r.string.isRequired};he.defaultProps={domain:""};function ie({locale:n,label:t,value:o}){const i=Fe(a=>a.breakpoints.down("md")),s=G();return e.jsx(Ot,{name:t,nameWidth:120,children:e.jsxs(p,{sx:{display:"flex",alignItems:"center",lineHeight:1},children:[e.jsx(S,{component:"span",color:"primary.main",overflow:"auto",sx:i?{maxWidth:"95%",wordWrap:"break-word"}:{wordWrap:"break-word"},children:o}),e.jsx(Be,{content:o,locale:n,style:{marginLeft:"4px",color:s.palette.text.secondary}})]})})}ie.propTypes={locale:r.string.isRequired,label:r.string.isRequired,value:r.string.isRequired};function xe({siteId:n,teamDid:t,cnameDomain:o,defaultCustomDomain:i,onInputDomain:s,appId:a,appPk:l,onSuccess:c,onError:d,disabled:x,autoFocus:u,inBlockletSetup:j,shouldCheckDomain:_,onStateChange:b,currentIp:A,resolveDomain:E,...I}){const{t:f,locale:T}=R(),{api:k,info:D}=U(),m=Wn(),P=G(),O=zt({key:"sm"}),[y,v]=le({submittingDomain:!1,domain:i,error:null,type:D!=null&&D.nftDomainUrl?"nftDomain":"inputDomain",showNFTDomainAuth:!1,showDnsTip:!1}),g=Bt(()=>Kn.getDidDomainServiceURL(D==null?void 0:D.nftDomainUrl));if(D!=null&&D.nftDomainUrl&&g.loading)return e.jsx(p,{...I,children:e.jsx(Re,{relative:"parent",children:e.jsx(W,{})})});if(g.error)return e.jsx(p,{...I,children:e.jsx(Re,{relative:"parent",children:g.error.message})});const L=g.value,rt=()=>{v({invalidDNSDomain:null})},ee=async h=>{b(f("setup.domain.addingDomain")),await k.addDomainAlias({input:{id:n,domainAlias:h,teamDid:t,inBlockletSetup:!0}}),v({submittingDomain:!1}),c({domain:h,type:"inputDomain"})},Ce=async({domain:h,type:w,nftDid:F,chainHost:$})=>{try{if(!_){if(w==="inputDomain"){await ee(h);return}c({domain:h,type:w,nftDid:F,chainHost:$});return}b({text:f("setup.domain.checkingResolvable")});let z=30;const te=3e3,lt=z*1e3/te,Se=setInterval(()=>{if(z<=0){clearInterval(Se);return}b({text:`${f("setup.domain.checkingResolvable")} (${z--}s)`})},1e3),Ae=await Xn(async()=>{const{data:M}=await E(h);if(!M.address)throw new Error("Cannot resolve domain");return M.address},{retries:lt,minTimeout:te,maxTimeout:te,onFailedAttempt:console.error}).catch(console.error);if(clearInterval(Se),!Ae){const M=f("setup.domain.cannotResolve",{domain:h});if(w==="nftDomain"){B.error(M),c({domain:h,type:"nftDomain"});return}b({text:""}),v({invalidDNSDomain:{domain:h,error:M},domain:h,type:w,submittingDomain:!1});return}if(Ae!==A){const M=f("setup.domain.resolvedAddressError",{domain:h,curDomain:window.location.hostname});if(w==="nftDomain"){B.error(M),c({domain:h,type:"nftDomain"});return}b({text:""}),v({invalidDNSDomain:{domain:h,error:M},domain:h,type:w,submittingDomain:!1});return}if(w==="nftDomain"){c({domain:h,type:"nftDomain"});return}await ee(h)}catch(z){B.error(z.message),b({text:""}),v({submittingDomain:!1})}},st=async({domain:h,nftDid:w,chainHost:F})=>{try{const $=_e(h);v({submittingDomain:!0}),await k.addDomainAlias({input:{id:n,type:"nft-domain",domainAlias:$,nftDid:w,chainHost:F,teamDid:t,inBlockletSetup:j}});const z="nftDomain";v({showNFTDomainAuth:!1,type:z}),await Ce({domain:$,type:z,nftDid:w,chainHost:F})}catch($){B.error($.message)}finally{v({showNFTDomainAuth:!1,submittingDomain:!1})}},at=async()=>{try{v({submittingDomain:!0});const h=_e(y.domain);if(D.nftDomainUrl&&L&&(await k.isDidDomain({input:{domain:h}})).value===!0){v({showNFTDomainAuth:!0});return}await Ce({domain:h,type:y.type})}catch(h){v({submittingDomain:!1}),m.setError(h.message)}},we=m.error||y.error;return e.jsx(p,{...I,children:e.jsxs(p,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",gap:"1em"},children:[e.jsxs(p,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:[D.nftDomainUrl&&L&&e.jsxs(p,{sx:{color:P.palette.text.primary},children:[e.jsx(S,{children:f("router.domainAlias.addDomainNFT.tips")}),e.jsxs(S,{component:"div",children:[f("router.domainAlias.addDomainNFT.buyTip"),e.jsxs(Ut,{href:L.base,sx:{display:"inline-flex",alignItems:"center"},target:"_blank",children:[e.jsx("i",{children:f("router.domainAlias.addDomainNFT.buy")}),e.jsx(Nt,{fontSize:"small"})]})]})]}),e.jsx(Wt,{sx:{display:"block",marginTop:"8px"},label:f("router.domainAlias.add.domainDescription"),helperText:y.type==="inputDomain"&&we||f("router.domainAlias.add.helperText"),inputProps:{"data-cy":"domain-name-input"},fullWidth:!0,disabled:x,value:y.domain,size:"small",variant:"outlined",error:!!we&&y.type==="inputDomain",onChange:h=>{var $;const w=ce(($=h.target)==null?void 0:$.value);m.setDomain(w);const F=Ne(w,T);v({domain:w,error:F,type:"inputDomain"}),s({domain:w,error:F,type:"inputDomain"})},autoFocus:u,onBlur:()=>{m.domain||(v({error:null}),m.setError(null))}}),e.jsx(p,{sx:{width:"100%",display:"flex",justifyContent:"flex-end"},children:e.jsx(Ht,{"data-cy":"confirm-add-domain",fullWidth:O,variant:"contained",loading:y.submittingDomain,onClick:at,children:f("common.add")})}),e.jsxs(p,{sx:{cursor:"pointer",fontSize:"14px",display:"flex",alignItems:"center",gap:"4px",lineHeight:1,color:P.palette.primary.main},onClick:()=>v({showDnsTip:!y.showDnsTip}),children:[e.jsx(Mt,{fontSize:"1em"}),f("router.domainAlias.showTipHint")]}),y.showDnsTip&&e.jsx(he,{domain:y.domain,resolvedTarget:o,style:{marginTop:"4px"}})]}),y.invalidDNSDomain&&e.jsx(Q,{title:f("common.reminder"),description:f("setup.domain.invalidDNSReminder",{error:y.invalidDNSDomain.error}),color:"primary",confirm:f("setup.domain.continueAdd"),onConfirm:()=>ee(y.invalidDNSDomain.domain,y.type),onCancel:rt}),L&&e.jsx(bt,{open:y.showNFTDomainAuth,popup:!0,useSocket:!1,action:"authorize",baseUrl:L.api,checkFn:Dt.create({baseURL:L.api}).get,extraParams:{delegatee:a,delegateePk:l,domain:y.domain},onSuccess:st,onClose:()=>v({showNFTDomainAuth:!1,submittingDomain:!1}),checkTimeout:60*5e3,showDownload:!1,messages:{title:f("router.domainAlias.addDomainNFT.connect.title"),scan:f("router.domainAlias.addDomainNFT.connect.scan"),confirm:f("router.domainAlias.addDomainNFT.connect.confirm"),success:f("router.domainAlias.addDomainNFT.connect.success")}})]})})}xe.propTypes={siteId:r.string.isRequired,currentIp:r.string,teamDid:r.string.isRequired,cnameDomain:r.string.isRequired,defaultCustomDomain:r.string,onInputDomain:r.func,onSuccess:r.func,appId:r.string,appPk:r.string,disabled:r.bool,autoFocus:r.bool,inBlockletSetup:r.bool,shouldCheckDomain:r.bool,onStateChange:r.func,resolveDomain:r.func,onError:r.func};xe.defaultProps={defaultCustomDomain:"",currentIp:"",onInputDomain:Ee,onSuccess:Ee,appId:"",appPk:"",disabled:!1,autoFocus:!0,inBlockletSetup:!1,shouldCheckDomain:!1,onStateChange:()=>{},resolveDomain:()=>{},onError:()=>{}};function ge({id:n,children:t,title:o,teamDid:i,systemDomains:s,appId:a,appPk:l}){const{t:c}=R(),[d,x]=le({loading:!1,confirmSetting:null}),u=s.find(A=>Oe.isDidDomain(A)),j=()=>{x({loading:!1,confirmSetting:null})},_={title:o||c("router.domainAlias.add.title"),description:function(E,I,f){return e.jsx(xe,{siteId:n,teamDid:i,cnameDomain:u,onSuccess:()=>x({confirmSetting:null}),onInputDomain:({domain:T,type:k,error:D})=>{I({...E,domain:T,type:k,__disableConfirm:!!D}),f(D)},appId:a,appPk:l})},confirm:c("common.confirm"),cancel:c("common.cancel"),params:{domain:"",__disableConfirm:!0},onCancel:j},b=A=>{A.stopPropagation(),x({confirmSetting:_})};return e.jsxs(e.Fragment,{children:[typeof t=="function"?t({loading:d.loading,open:b}):e.jsxs(Ue,{onClick:b,className:"rule-action","data-cy":"action-add-domain-alias",children:[d.loading?e.jsx(W,{size:16}):e.jsx(Xe,{style:{fontSize:18,marginRight:5}}),c("router.domainAlias.add.title")]}),d.confirmSetting&&e.jsx(Q,{title:d.confirmSetting.title,description:d.confirmSetting.description,confirm:d.confirmSetting.confirm,cancel:d.confirmSetting.cancel,params:d.confirmSetting.params,onCancel:d.confirmSetting.onCancel,showConfirm:!1,showCancel:!0,displayError:!1,color:"primary",loading:d.loading,maxWidth:"sm"})]})}ge.propTypes={id:r.string.isRequired,children:r.any,title:r.string,teamDid:r.string,systemDomains:r.arrayOf(r.string).isRequired,appId:r.string,appPk:r.string.isRequired};ge.defaultProps={children:null,title:"",teamDid:"",appId:null};function eo(n){return e.jsx(Un,{children:e.jsx(ge,{...n})})}function ye(n){const{t}=R(),[o,i]=C.useState(!1),[s,a]=C.useState(null),{id:l,domain:c,children:d,teamDid:x}=n,{api:u}=U(),j=()=>{i(!1),a(null)},_=async()=>{i(!0);try{await u.deleteDomainAlias({input:{id:l,domainAlias:c,teamDid:x}}),await vt(2e3)}catch(E){B.error(E.message)}finally{a(null),i(!1)}},b={title:t("router.domainAlias.delete.title"),description:t("router.domainAlias.delete.description"),confirm:t("common.confirm"),onConfirm:_,onCancel:j},A=E=>{E.stopPropagation(),a(b)};return e.jsxs(e.Fragment,{children:[typeof d=="function"?d({loading:o,open:A}):e.jsxs(V,{edge:"end",onClick:A,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[o?e.jsx(W,{size:16}):e.jsx(Ge,{style:{fontSize:16}}),t("router.domainAlias.delete.title")]}),s&&e.jsx(Q,{title:s.title,description:s.description,confirm:s.confirm,params:s.params,onConfirm:s.onConfirm,onCancel:s.onCancel})]})}ye.propTypes={id:r.string.isRequired,domain:r.string.isRequired,children:r.any,teamDid:r.string};ye.defaultProps={children:null,teamDid:""};function je({site:n,domain:t,blocklet:o}){const{t:i}=R(),s=t.value===window.location.hostname;return e.jsx(Vt,{"data-cy":"domain-actions",size:"large",actions:[({close:a})=>{var l;return e.jsx(ye,{id:n.id,domain:t.value,teamDid:(l=o==null?void 0:o.meta)==null?void 0:l.did,children:({open:c})=>e.jsx(N,{title:s?i("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(Ue,{disabled:t.isProtected||s,dense:!0,onClick:d=>{a(),c(d)},"data-cy":"action-toggle-block",children:[e.jsx(Kt,{style:{minWidth:24,marginRight:8},children:e.jsx(Ge,{})}),e.jsx(Jt,{primary:i("common.delete")})]},"remove")})})})}]})}je.propTypes={site:r.object.isRequired,domain:r.object.isRequired,blocklet:r.object.isRequired};je.defaultProps={};var be={},to=J;Object.defineProperty(be,"__esModule",{value:!0});var De=be.default=void 0,no=to(K()),oo=e;De=be.default=(0,no.default)((0,oo.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Https");const Y=r.shape({href:r.string,accessibility:r.shape({loading:r.bool,accessible:r.bool}),domainStatus:r.shape({isHttps:r.bool,matchedCert:r.object}),dns:r.shape({resolved:r.bool,ip:r.string})});function ve({certificate:n}){const[t,o]=C.useState(null),i=U(),{t:s,locale:a}=R(),l=x=>{o(x.currentTarget)},c=()=>{o(null)},d=!!t;return e.jsxs(e.Fragment,{children:[e.jsx(De,{"aria-owns":d?"mouse-over-popover":void 0,onMouseEnter:l,onMouseLeave:c,style:{color:"#44cdc6",fontSize:20,cursor:"pointer"}}),e.jsx(We,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:d,anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:c,disableRestoreFocus:!0,children:e.jsx(He,{children:e.jsxs(Ve,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${i.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(S,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(S,{component:"div",style:{fontWeight:"bold"},children:n.domain}),e.jsx(S,{component:"div",children:`${s("common.issuer")}: ${Ct(n,"issuer.commonName","")}`}),e.jsx(S,{component:"div",children:`${s("router.cert.issuedOn")}: ${Ie(n.validFrom,a)}`}),e.jsx(S,{component:"div",children:`${s("router.cert.expiryOn")}: ${Ie(n.validTo,a)}`})]})]})})})]})}ve.propTypes={certificate:r.object};ve.defaultProps={certificate:{}};function H({domain:n,filters:t}){const{t:o}=R(),{value:i,domainStatus:s}=n;if(!ze(i))return null;let a=null,l=null;const{isHttps:c,matchedCert:d}=s;if(!wt(i)){const{dns:{resolved:u,ip:j}={}}=s;u||j==="127.0.0.1"?a=e.jsx(N,{title:o("router.domain.verify.ok"),children:e.jsx(Pe,{color:"success"})}):a=e.jsx(N,{title:o("router.domain.verify.notResolved"),children:e.jsx(Pe,{color:"error"})})}c?l=e.jsx(ve,{certificate:d}):l=e.jsx(N,{title:o("router.domain.https.bad"),children:e.jsx(De,{style:{color:"#D0021B",fontSize:20,cursor:"pointer"}})});const x=t.map(u=>u==="domain"?a:u==="http"?l:null);return C.createElement(C.Fragment,null,...x)}H.propTypes={domain:Y.isRequired,filters:r.array};H.defaultProps={filters:["domain","http"]};const io=Ke(X,"mutate_blocklets"),ro=Ke(X,"",At);function it(n){const{inService:t}=U(),{blocklet:o,loadingRuntimeInfo:i}=Me();let s=io;return t&&(s=ro),e.jsx(s,{...n,blocklet:o,inService:t,loadingRuntimeInfo:i})}it.propTypes={listOnly:r.bool};it.defaultProps={listOnly:!1};function X({hasPermission:n,blocklet:t,loadingRuntimeInfo:o,inService:i,listOnly:s}){var f,T,k,D;const{t:a}=R(),[l,c]=C.useState(!1),d=Fe(m=>m.breakpoints.down("md")),x=C.useMemo(()=>{let m=n;return Tt(t)&&(m=m&&i),m},[n,i,t]),{site:u}=t,j=C.useMemo(()=>{var m;return Rt((m=t.site)==null?void 0:m.domainAliases)},[(f=t.site)==null?void 0:f.domainAliases]),_=[],b=[],A=zn.encode(t.appPid),E=(k=(T=t.environments)==null?void 0:T.find(m=>m.key==="BLOCKLET_APP_PK"))==null?void 0:k.value,I=Et(j);return j.forEach(m=>{const P=m.value||"";Oe.isDidDomain(P)&&!P.startsWith(A)?b.push(m):_.push(m)}),e.jsxs(e.Fragment,{children:[!s&&e.jsxs(e.Fragment,{children:[e.jsxs(p,{className:"title first",display:"flex",justifyContent:"space-between",alignItems:"center",children:[e.jsx(p,{children:a("common.domain")}),x&&e.jsx(eo,{id:u.id,title:a("router.domain.add.title"),teamDid:(D=t.meta)==null?void 0:D.did,appId:t.appPid,appPk:E,systemDomains:I==null?void 0:I.map(m=>m.value),children:({open:m})=>e.jsxs(V,{style:{marginLeft:16},variant:"contained",color:"primary","data-cy":"add-domain-alias",onClick:m,disabled:ke.isInProgress(t.status),children:[e.jsx(kt,{style:{fontSize:"1.3em",marginRight:4}}),a("common.add")]})})]}),ke.isAccessible(t.status)===!1&&e.jsx(p,{mt:1.5,mb:1.5,children:e.jsx(Je,{severity:"warning",children:a("blocklet.router.noRunning")})})]}),e.jsx(p,{sx:{display:"flex",flexDirection:"column",gap:1},children:(l?j:_).map(m=>{var O,y;const P=m.value;return e.jsxs(C.Fragment,{children:[d&&e.jsxs(p,{display:"flex",flexDirection:"column",children:[e.jsx(p,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:e.jsx(re,{domain:m,target:"_blank",children:m.value})}),e.jsxs(p,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[e.jsxs(p,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:[e.jsx(H,{domain:m,filters:["domain"]},`${m.value}-domain`),e.jsx(ae,{siteId:(O=t.site)==null?void 0:O.id,domain:m,blocklet:t,hasMutatePermission:x})]}),e.jsx(p,{sx:{button:{padding:0}},children:e.jsx(se,{hasMutatePermission:x,site:u,domain:m,blocklet:t})})]})]},P),!d&&e.jsxs(p,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[e.jsxs(p,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[e.jsx(H,{domain:m,filters:["domain"]},`${m.value}-domain`),e.jsx(p,{sx:{ml:2,mr:.5},children:e.jsx(re,{domain:m,target:"_blank",children:m.value})}),e.jsx(ae,{siteId:(y=t.site)==null?void 0:y.id,domain:m,blocklet:t,hasMutatePermission:x})]}),e.jsx(p,{sx:{button:{padding:0}},children:e.jsx(se,{hasMutatePermission:x,site:u,domain:m,blocklet:t})})]},P)]},P)})}),b.length>0&&e.jsx("div",{style:{marginLeft:"20px",marginTop:"12px"},children:e.jsx(V,{endIcon:l?e.jsx(Qe,{}):e.jsx(Pt,{}),onClick:()=>c(!l),children:a(l?"common.collapseAll":"blocklet.router.showAllDomains")})}),!j.length&&(o?e.jsx(W,{size:16}):e.jsx(Lt,{children:a("common.empty")}))]})}X.propTypes={hasPermission:r.bool,blocklet:r.object.isRequired,loadingRuntimeInfo:r.bool,inService:r.bool.isRequired,listOnly:r.bool};X.defaultProps={hasPermission:!1,loadingRuntimeInfo:!1,listOnly:!1};function re({domain:n,children:t,...o}){const{t:i,locale:s}=R(),{href:a,accessibility:l,value:c}=n,d=C.useCallback(()=>e.jsx(Be,{content:ce(c),locale:s,style:{marginLeft:"4px",color:"#999",fontSize:"0.8em",verticalAlign:"bottom"}}),[c,s]);return!l||l.loading?e.jsxs(ne,{...o,children:[t,d(),e.jsx(N,{title:i("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx("span",{className:"status",children:e.jsx(W,{size:12})})})]}):l.accessible?e.jsxs(ne,{...o,children:[e.jsx(p,{component:"a",href:a,target:"_blank",rel:"noopener noreferrer",children:t}),d()]}):e.jsxs(ne,{...o,children:[e.jsx(N,{title:i("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx("span",{children:t})}),d()]})}re.propTypes={domain:Y.isRequired,children:r.any.isRequired};const ne=St.span`
2
+ &,
3
+ & > * {
4
+ color: #222;
5
+ font-size: 18px;
6
+ }
7
+
8
+ & > * {
9
+ word-break: break-all;
10
+ }
11
+
12
+ .status {
13
+ margin-left: 8px;
14
+ }
15
+ `;function se({hasMutatePermission:n,site:t,domain:o,blocklet:i}){const s=G(),{t:a}=R();return n&&!o.isProtected?e.jsx(je,{site:t,domain:o,blocklet:i}):e.jsx(N,{title:a("blocklet.router.domainLockTooltip"),placement:"top",children:e.jsx(It,{disabled:!0,size:"large",style:{pointerEvents:"auto",paddingTop:0,paddingBottom:0},children:e.jsx(_t,{style:{fill:s.palette.text.disabled}})})})}se.propTypes={hasMutatePermission:r.bool.isRequired,site:r.object.isRequired,domain:Y.isRequired,blocklet:r.object.isRequired};function ae({siteId:n,domain:t,blocklet:o,hasMutatePermission:i}){const s=G(),{t:a}=R(),[l,c]=C.useState(null),d=u=>{c(u.currentTarget)},x=()=>{c(null)};return e.jsxs(p,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:1},children:[t.type==="nft-domain"&&e.jsxs(e.Fragment,{children:[e.jsx(oe,{onMouseEnter:d,onMouseLeave:x,style:{marginTop:"0.2em",cursor:"pointer",fill:s.palette.primary.main}}),e.jsx(We,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:!!l,anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:x,disableRestoreFocus:!0,children:e.jsx(He,{children:e.jsxs(Ve,{style:{display:"flex",flexDirection:"column"},children:[e.jsxs(S,{component:"div",style:{display:"flex",alignItems:"center"},children:[e.jsx(oe,{style:{fill:s.palette.primary.main}}),e.jsx(S,{component:"span",style:{marginLeft:"8px",fontSize:"18px",fontWeight:"bolder"},children:a("router.domainAlias.nftDomain")})]}),e.jsxs(S,{component:"div",style:{display:"flex",marginTop:"12px"},children:[e.jsx(S,{component:"span",style:{width:"80px",marginRight:"8px"},children:a("common.domain")}),e.jsx(S,{component:"span",children:t.value})]}),e.jsxs(S,{component:"div",style:{display:"flex"},children:[e.jsx(S,{component:"span",style:{width:"80px",marginRight:"8px"},children:"NFT"}),e.jsx($t,{did:t.nftDid})]})]})})})]}),e.jsx(H,{domain:t,filters:["http"]},`${t.value}-http`),i&&e.jsx(pe,{siteId:n,domain:t.value,domainStatus:t.domainStatus,did:o.meta.did,children:({open:u})=>e.jsx(V,{sx:{padding:0},size:"small",onClick:j=>u(j),children:a("router.cert.genLetsEncryptCert.title")})})]})}ae.propTypes={siteId:r.string.isRequired,domain:Y.isRequired,blocklet:r.object.isRequired,hasMutatePermission:r.bool.isRequired};export{xe as A,Un as D,it as a};
@@ -0,0 +1 @@
1
+ const e={auth:{noPermission:{title:"No tienes permiso",description:"No eres el administrador del blocklet"}},login:{reLogin:"Reconectar",description:"Debes conectar tu billetera DID para acceder a {name}",already:"Estás conectado como {name}",connectWallet:"Conectar DID Wallet",closeWindow:"Cerrar ventana",accessLimit:{title:"Acceso a la página restringido",description:"Esta página requiere los siguientes pasaportes para acceder, por favor conecta con la billetera para cambiar o solicitar el pase correspondiente.",alreadyHavePassport:"Ya tengo el pasaporte",connectWithPassport:"Conéctate con este pasaporte",buyPassport:"Comprar pasaporte"},switchDid:{title:"Cambiar billetera DID",scan:"Escanea el siguiente código QR para cambiar de cuenta",confirm:"Confirme el cambio en su billetera de DID",success:"Cambiado con éxito"},switchSpecifiedDid:{title:"Cambiar billetera DID",scan:"Necesitas cambiar el DID a {did} para completar las siguientes acciones",confirm:"Confirma el cambio en tu billetera DID",success:"Cambió satisfactoriamente"},connect:{title:"Conectar billetera DID",scan:"Conecta tu billetera DID para acceder a esta aplicación",confirm:"Confirme en su billetera de DID",success:"Estás conectado exitosamente"},needManualClose:"Inicio de sesión correcto, si esta ventana no se cierra automáticamente, ciérrela.",connectWithPassport:"Conectar con este pasaporte",invalidRedirectUrl:"Dirección URL de redireccionamiento no válida"},studio:{home:"Estudio",preferences:"Constructor de preferencias",localization:"Localización"},blocklet:{startApplication:"Iniciar Aplicación",startDescription:"Listo para empezar, {name}",start:"Comenzar",starting:"Comenzando...",open:"Abrir",suspended:"La aplicación ha sido suspendida",manageSubscription:"Administrar suscripción",suspendedCausedByExpired:"Esta solicitud se ha suspendido debido a la caducidad del pago. Renueve antes de {deadline} para reanudar. Si no se renueva dentro del plazo especificado, no podrá renovar o reanudar.",suspendedCausedByTerminated:"La aplicación se cerró debido a la cancelación de la suscripción, que se canceló el {canceledAt}, y los datos se conservarán hasta {deadline}; antes de que se eliminen los datos, puede hacer una copia de seguridad de los datos en los espacios DID.",terminated:"Aplicación terminada"},setup:{steps:{connect:"Conectar",didSpace:"Espacios DID",config:"Configuración",domain:"Dominio",access:"Control de Acceso",fuel:"Combustible",complete:"Completo",introduction:"Introducción",selectNodeDesc:"Seleccione el Servidor Blocklet",launchAppDesc:"Instalar Blocklet en el servidor",setupAppDesc:"Configurar Blocklet",launched:"Completa"},connect:{title:"Conéctate a la aplicación",scan:"Conecta tu billetera DID para proporcionar el perfil de usuario y los privilegios del propietario de la blocklet, luego podrás configurar y lanzar la aplicación.",confirm:"Confirme en su billetera DID",success:"Te has conectado correctamente"},domain:{addTitle:"Agregar un nuevo nombre de dominio (Opcional)",title:"Configuración de dominio",subTitle:"Establecer un dominio personalizado para la aplicación",label:"Por favor proporciona un nombre de dominio válido",tipStart:"Por favor, asegúrese",tipEnd:"tiene punto hacia el servidor actual",cannotResolve:"{domain} no se puede resolver, por favor revise su configuración de DNS",checkingResolvable:"Comprobando estado del dominio...",addingCert:"Generando certificado...",addingDomain:"Añadiendo dominio...",recordType:"Tipo de registro",recordValue:"Valor de registro",skipStart:"Puedes",skip:"Omitir la configuración de dominio personalizado",skipEnd:"y usa el dominio predeterminado para acceder a la aplicación",genCertSuccess:"El certificado de {domain} se emite correctamente",genCertFailed:"No se pudo emitir el certificado para {domain}: {message}",genCertFailedForNFTDomain:"Dominio NFT agregado con éxito, pero no se pudo generar el certificado HTTPS. Por favor, inténtelo nuevamente más tarde.",resolvedAddressError:"{domain} no apunta a la misma dirección IP que {curDomain}",invalidDNSReminder:"Sin embargo, puedes continuar añadiendo el dominio, pero la generación automática de certificados no está disponible.",continueAdd:"Continuar agregando"},didSpace:{title:"Configurar espacios DID",subTitle:"Completa el siguiente proceso de conexión para almacenar datos de la aplicación en los Espacios DID",tips:"Consejos",description:"Configura la dirección de la instancia de DID Spaces y almacena los datos de la aplicación en DID Spaces después de establecer una conexión exitosa",label:"Seleccione el servicio DID Spaces",connected:"Has conectado exitosamente a DID Spaces",connect:"Conectar ahora",reconnect:"Reconectar",addressCannotEmpty:"La dirección no puede estar vacía",addressNotValid:"{url} no es una dirección válida",authorize:{title:"Conecta {appName} a los Espacios DID",scan:"Usa tu billetera DID para escanear el código QR a continuación y permitir que la aplicación {appName} se conecte a los Espacios DID",success:"Conectado exitosamente"}},config:{title:"Configuración",subTitle:"Otros elementos de configuración (también deberá establecer los siguientes elementos)"},complete:{title:"Todo está listo",failedTitle:"Error al iniciar el Bloqueador",backToServer:"Volver al servidor Blocklet",notRunning:"La Blocklet no pudo iniciar en el primer intento, por favor inténtelo de nuevo"},fuel:{title:"Combustible necesario para arrancar",tipStart:"Espacio",tipEnd:"se requiere para que esta aplicación funcione correctamente, los fondos se guardan en la billetera de la aplicación y pueden ser utilizados para el pago de comisiones de transacción. Puedes retirar tu saldo en cualquier momento cuando ya no tengas la aplicación en ejecución.",addressTitle:"Cuenta de la aplicación",addressTip:"Alimenta la aplicación con la billetera DID",need:"Necesito",current:"Actual",fuelApp:"Alimentar la aplicación"},title:"Configuración",next:"Siguiente",previous:"Anterior",continue:"Continuar",skip:"Omitir",startNow:"Comenzar ahora",confirm:"Confirmar",cancel:"Cancelar"},user:{walletNotification:"Notificación de DID Wallet",emailNotification:"Notificación por correo electrónico",smsNotification:"Notificación de SMS",addWebhook:"Agregar nuevo webhook"},pageTitle:{login:"Iniciar sesión",dashboard:"Panel de control de Blocklet",userCenter:"Centro de Usuario",invite:"Invitar",issuePassport:"Problema de pasaporte",lostPassort:"Pasaporte perdido"}};export{e as default};
@@ -0,0 +1 @@
1
+ import{r as C,u as T,e as j,j as e,C as k,n as W,B as v,K as I,t as m,G as R,M as S,S as L,v as U,x as b}from"./index-CaLGv6xG.js";import{F}from"./fullpage-DXFbt1Ve.js";import{w as N}from"./wrap-locale-DL11xPuS.js";import"./Link-BzeSWqDp.js";function _({SessionContext:t,webWalletUrl:a,onSuccess:s}){var g,h;const{api:n,session:i}=C.useContext(t),{t:o,locale:u}=T(),w=j(),{searchParams:l}=new URL(window.location.href),x=l.get("redirect"),P=async(c,E)=>{s(c,E),await i.refresh(),m.success(o("exchangePassport.success")),setTimeout(()=>{if(x){const r=decodeURIComponent(x);r.startsWith(R.WELLKNOWN_SERVICE_PATH_PREFIX)?w(r,{replace:!0}):window.location=r}else window.location=window.env.pathPrefix||window.env.apiPrefix||"/"},3e3)},f=c=>{m.error(c.message)},p={},d=l.get("componentId");return d&&(p.componentId=d),i.loading?e.jsx(k,{children:e.jsx(W,{})}):e.jsx(F,{did:((g=window==null?void 0:window.blocklet)==null?void 0:g.appPid)||((h=window==null?void 0:window.env)==null?void 0:h.appPid),children:e.jsx(v,{sx:{width:"560px",maxWidth:"100%",height:"100%"},children:e.jsx(I,{className:"connect",action:"exchange-passport",checkFn:n.get,checkTimeout:10*60*1e3,webWalletUrl:a,onSuccess:P,onError:f,locale:u,messages:{title:o("exchangePassport.dialog.title"),scan:o("exchangePassport.dialog.scan"),confirm:o("exchangePassport.dialog.confirm"),success:o("exchangePassport.dialog.success")},extraParams:p,extraContent:null})})})}const B=N(_);function H(){const t=S(),a=(s,n)=>{s.sessionToken&&(U(n(s.sessionToken)),b(n(s.refreshToken)))};return e.jsx(B,{SessionContext:L,webWalletUrl:t,onSuccess:a})}export{H as default};
@@ -1,4 +1,4 @@
1
- import{P as e,j as o,bt as i,cb as a,a1 as l}from"./index-Bdg2hH7J.js";function n({title:r,desc:s,retryFunc:t}){return o.jsxs(p,{role:"alert",children:[o.jsx("h3",{children:r}),o.jsx("pre",{children:s}),t&&o.jsx(l,{variant:"contained",color:"error",size:"small",onClick:t,children:"Try again"})]})}n.propTypes={title:e.string,desc:e.string.isRequired,retryFunc:e.func};n.defaultProps={title:"Something went wrong...",retryFunc:null};function c({error:r}){return o.jsx(n,{desc:r.message})}c.propTypes={error:e.instanceOf(Error).isRequired};e.instanceOf(Error).isRequired,e.func.isRequired;const p=i("div")`
1
+ import{P as e,j as o,bu as i,cc as a,a3 as l}from"./index-CaLGv6xG.js";function n({title:r,desc:t,retryFunc:s}){return o.jsxs(p,{role:"alert",children:[o.jsx("h3",{children:r}),o.jsx("pre",{children:t}),s&&o.jsx(l,{variant:"contained",color:"error",size:"small",onClick:s,children:"Try again"})]})}n.propTypes={title:e.string,desc:e.string.isRequired,retryFunc:e.func};n.defaultProps={title:"Something went wrong...",retryFunc:null};function c({error:r}){return o.jsx(n,{desc:r.message})}c.propTypes={error:e.instanceOf(Error).isRequired};e.instanceOf(Error).isRequired,e.func.isRequired;const p=i("div")`
2
2
  padding: 16px;
3
3
  border: 2px solid ${r=>r.theme.palette.error.main};
4
4
  border-radius: 4px;
@@ -1,2 +1,2 @@
1
- import{aF as l,aE as c,aG as u,T as p,c_ as m,r as d,aI as f,aJ as g,j as x,aK as i,aM as C,aN as y,b7 as D}from"./index-Bdg2hH7J.js";function T(t){return l("MuiDialogContentText",t)}c("MuiDialogContentText",["root"]);const h=["children","className"],j=t=>{const{classes:o}=t,s=y({root:["root"]},T,o);return i({},o,s)},E=u(p,{shouldForwardProp:t=>m(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,o)=>o.root})({}),N=d.forwardRef(function(o,e){const s=f({props:o,name:"MuiDialogContentText"}),{className:a}=s,r=g(s,h),n=j(r);return x.jsx(E,i({component:"p",variant:"body1",color:"text.secondary",ref:e,ownerState:r,className:C(n.root,a)},s,{classes:n}))}),$=t=>{const{details:o,errors:e,response:s}=t;return Array.isArray(e)?e.map(a=>a.message).join(`
2
- `):Array.isArray(o)?`Validate failed: ${o.map(r=>{const n=r.message.replace(/["]/g,"'");return`${r.path.join(".")}: ${n}`}).join(";")}`:s?`Request failed: ${s.status} ${s.statusText}: ${JSON.stringify(s.data)}`:t.message};var M=$;const _=D(M);export{N as D,_ as f};
1
+ import{aG as l,aF as c,aH as u,T as p,c$ as m,r as d,aJ as f,aK as g,j as x,aL as i,aN as C,aO as y,b8 as D}from"./index-CaLGv6xG.js";function T(t){return l("MuiDialogContentText",t)}c("MuiDialogContentText",["root"]);const h=["children","className"],j=t=>{const{classes:o}=t,s=y({root:["root"]},T,o);return i({},o,s)},$=u(p,{shouldForwardProp:t=>m(t)||t==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,o)=>o.root})({}),N=d.forwardRef(function(o,e){const s=f({props:o,name:"MuiDialogContentText"}),{className:a}=s,r=g(s,h),n=j(r);return x.jsx($,i({component:"p",variant:"body1",color:"text.secondary",ref:e,ownerState:r,className:C(n.root,a)},s,{classes:n}))}),E=t=>{const{details:o,errors:e,response:s}=t;return Array.isArray(e)?e.map(a=>a.message).join(`
2
+ `):Array.isArray(o)?`Validate failed: ${o.map(r=>{const n=r.message.replace(/["]/g,"'");return`${r.path.join(".")}: ${n}`}).join(";")}`:s?`Request failed: ${s.status} ${s.statusText}: ${JSON.stringify(s.data)}`:t.message};var P=E;const v=D(P);export{N as D,v as f};
@@ -0,0 +1 @@
1
+ const e={auth:{noPermission:{title:"Pas de permission",description:"Vous n'êtes pas l'administrateur du bloclet"}},login:{reLogin:"Reconnecter",description:"Vous devez connecter votre portefeuille DID pour accéder à {name}",already:"Vous êtes connecté en tant que",connectWallet:"Connecter le portefeuille DID",closeWindow:"Fermer la fenêtre",accessLimit:{title:"Accès à la page restreint",description:"Cette page nécessite les passeports suivants pour y accéder, veuillez vous connecter au portefeuille pour changer ou demander le passe correspondant.",alreadyHavePassport:"J'ai déjà le passeport",connectWithPassport:"Connectez-vous avec ce passeport",buyPassport:"Acheter un passeport"},switchDid:{title:"Changer de portefeuille DID",scan:"Scanner le code QR suivant pour changer de compte",confirm:"Confirmez le changement dans votre portefeuille DID",success:"Basculé avec succès"},switchSpecifiedDid:{title:"Changer de portefeuille DID",scan:"Vous devez basculer de DID à {did} pour effectuer les actions suivantes.",confirm:"Confirmez le changement dans votre portefeuille DID",success:"Changement effectué avec succès"},connect:{title:"Connecter le portefeuille DID",scan:"Connectez votre portefeuille DID pour accéder à cette application",confirm:"Confirmez sur votre portefeuille DID",success:"Vous êtes connecté avec succès"},needManualClose:"Connexion réussie, si cette fenêtre ne se ferme pas automatiquement, veuillez la fermer.",connectWithPassport:"Connectez-vous avec ce passeport",invalidRedirectUrl:"URL de redirection non valide"},studio:{home:"Studio",preferences:"Générateur de préférences",localization:"Localisation"},blocklet:{startApplication:"Démarrer l'application",startDescription:"Prêt à commencer {name}",start:"Commencer",starting:"Démarrage...",open:"Ouvrir",suspended:"Application suspendue",manageSubscription:"Gérer l'abonnement",suspendedCausedByExpired:"Cette application a été suspendue pour cause d'expiration de paiement. Veuillez renouveler avant {deadline} afin de reprendre. Le non-renouvellement dans les délais impartis entraînera l'impossibilité de renouveler ou de reprendre.",suspendedCausedByTerminated:"L'application a été résiliée en raison de l'annulation de l'abonnement, qui a été annulé le {canceledAt}, et les données seront conservées jusqu'au {deadline} ; avant que les données ne soient supprimées, vous pouvez sauvegarder les données dans les espaces DID.",terminated:"Application terminée"},setup:{steps:{connect:"Connecter",didSpace:"DID Spaces",config:"Configuration",domain:"Domaine",access:"Contrôle d'accès",fuel:"Carburant",complete:"Complet",introduction:"Introduction",selectNodeDesc:"Sélectionnez le serveur Blocklet",launchAppDesc:"Installer le bloclet sur le serveur",setupAppDesc:"Configurer Blocklet",launched:"Compléter"},connect:{title:"Connectez-vous à l'application",scan:"Connectez votre portefeuille DID pour fournir le profil utilisateur et les privilèges du propriétaire de la blocklet, puis vous pouvez configurer et lancer l'application.",confirm:"Confirmez sur votre portefeuille DID",success:"Vous êtes connecté avec succès"},domain:{addTitle:"Ajouter un nouveau nom de domaine (facultatif)",title:"Réglage de domaine",subTitle:"Définissez un domaine personnalisé pour l'application",label:"Veuillez fournir un nom de domaine valide",tipStart:"Veuillez vous assurer",tipEnd:"A un point vers le serveur actuel",cannotResolve:"{domain} ne peut pas être résolu, veuillez vérifier votre configuration DNS.",checkingResolvable:"Vérification du statut du domaine...",addingCert:"Génération du certificat en cours...",addingDomain:"Ajout du domaine...",recordType:"Type d'enregistrement",recordValue:"Valeur d'enregistrement",skipStart:"Tu peux",skip:"Ignorer le paramètre de domaine personnalisé",skipEnd:"et utilisez le domaine par défaut pour accéder à l'application",genCertSuccess:"Le certificat {domain} est délivré avec succès",genCertFailed:"Impossible de délivrer un certificat pour {domain} : {message}",genCertFailedForNFTDomain:"Domaine NFT ajouté avec succès, mais échec de la génération du certificat HTTPS. Veuillez réessayer ultérieurement.",resolvedAddressError:"{domain} ne pointe pas vers la même adresse IP que {curDomain}",invalidDNSReminder:"{error}. Cependant, vous pouvez toujours ajouter le domaine, mais la génération automatique des certificats n'est pas disponible.",continueAdd:"Continuer à ajouter"},didSpace:{title:"Configurer les espaces DID",subTitle:"Veuillez compléter le processus de connexion suivant pour stocker les données de l'application dans DID Spaces.",tips:"Conseils",description:"Configurez l'adresse de l'instance DID Spaces et stockez les données de l'application dans DID Spaces après une connexion réussie",label:"Veuillez sélectionner le service DID Spaces",connected:"Vous vous êtes connecté(e) avec succès à DID Spaces",connect:"Connectez maintenant",reconnect:"Reconnecter",addressCannotEmpty:"L'adresse ne peut pas être vide",addressNotValid:"{url} n'est pas une adresse valide.",authorize:{title:"Connectez {appName} à des espaces DID",scan:"Utilisez votre portefeuille DID pour scanner le code QR ci-dessous afin de permettre à l'application {appName} de se connecter aux espaces DID",success:"Connecté avec succès"}},config:{title:"Configuration",subTitle:"Autres éléments de configuration (vous devrez également configurer les éléments suivants)"},complete:{title:"Tout est prêt",failedTitle:"Échec du démarrage du Blocklet",backToServer:"Retour au serveur Blocklet",notRunning:"Le Blocklet n'a pas pu démarrer du premier coup, veuillez réessayer"},fuel:{title:"Carburant nécessaire pour démarrer",tipStart:"fente",tipEnd:"Un solde est requis pour que cette application fonctionne correctement. Les fonds sont sauvegardés dans le porte-monnaie de l'application et peuvent être utilisés pour les frais de transaction. Vous pouvez retirer votre solde à tout moment lorsque vous n'avez plus l'application en cours d'exécution.",addressTitle:"Compte d'application",addressTip:"Alimenter l'application avec un portefeuille DID",need:"Besoin",current:"Actuel",fuelApp:"Alimenter l'application en carburant"},title:"Installation",next:"Suivant",previous:"Précédent",continue:"Continuer",skip:"Passer",startNow:"Commencez maintenant",confirm:"Confirmer",cancel:"Annuler"},user:{walletNotification:"Notification du portefeuille DID",emailNotification:"Notification par e-mail",smsNotification:"Notification SMS",addWebhook:"Ajouter un nouveau webhook"},pageTitle:{login:"Connexion",dashboard:"Tableau de bord de Blocklet",userCenter:"Centre d'utilisateur",invite:"Inviter",issuePassport:"Émettre un passeport",lostPassort:"Passeport perdu"}};export{e as default};