@abtnode/webapp 1.16.43-beta-20250422-042711-c40bec75 → 1.16.43-beta-20250425-130658-8da18f4d

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 (248) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-Dd50umeM.js → AdapterDayjs-CiB9toI9.js} +7 -7
  4. package/dist/assets/{Add-CaztVzCy.js → Add-jEZFTiQU.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-DVC5NCF_.js → ArrowDropDown-CT-4P1KC.js} +1 -1
  6. package/dist/assets/{Autocomplete-BvgGgwn-.js → Autocomplete-Bs7d-YbL.js} +1 -1
  7. package/dist/assets/{Breadcrumbs--d8mi7-f.js → Breadcrumbs-BaQf5vA9.js} +1 -1
  8. package/dist/assets/{ButtonGroup-BwBRy_Vd.js → ButtonGroup-CXxrSIV0.js} +1 -1
  9. package/dist/assets/{CSSTransition-B2MHWQVG.js → CSSTransition-BP8Rhpxg.js} +1 -1
  10. package/dist/assets/{CallMerge-BKOZFJsL.js → CallMerge-Cglc7qj4.js} +1 -1
  11. package/dist/assets/CardContent-7kMksoLZ.js +1 -0
  12. package/dist/assets/{ChevronLeft-BLMagiOR.js → ChevronLeft-D0cz-2NS.js} +1 -1
  13. package/dist/assets/{ChevronRight-CmLzNb37.js → ChevronRight-ByKIlh_D.js} +1 -1
  14. package/dist/assets/{Clear-DnKBhMMz.js → Clear-CzcbL8Ae.js} +1 -1
  15. package/dist/assets/{Close-z9azgP87.js → Close-C7TOtk9p.js} +1 -1
  16. package/dist/assets/{Community-CfAYk0rg.js → Community-1Q3DqT_w.js} +1 -1
  17. package/dist/assets/{Delete-lfXEd_sD.js → Delete-CoHU08w5.js} +1 -1
  18. package/dist/assets/Delete-DosVyBLR.js +1 -0
  19. package/dist/assets/{DeleteOutline-CpHx956r.js → DeleteOutline-BOT28g3_.js} +1 -1
  20. package/dist/assets/{Done-B07f5HKr.js → Done-D-DP22Cm.js} +1 -1
  21. package/dist/assets/{Edit-DeW-Raa6.js → Edit-CC4z5k1g.js} +1 -1
  22. package/dist/assets/{ErrorOutline-BamXOGix.js → ErrorOutline-DjYrwQ38.js} +1 -1
  23. package/dist/assets/{HelpOutline-PjbpgGnS.js → HelpOutline-bgVW4YK3.js} +1 -1
  24. package/dist/assets/{Holiday-os2if6d3.js → Holiday-DIaowIan.js} +1 -1
  25. package/dist/assets/{Launch-VrwX5mL6.js → Launch-JGrFRNfl.js} +1 -1
  26. package/dist/assets/{Link-9GZNaOgm.js → Link-C2QoHwsl.js} +1 -1
  27. package/dist/assets/{ListItemButton-UrtScDNv.js → ListItemButton-CbFcdXgo.js} +1 -1
  28. package/dist/assets/{ListSubheader-CXoRyaHI.js → ListSubheader-BiYgsVLH.js} +1 -1
  29. package/dist/assets/{LoadingButton-D_BY4Jqp.js → LoadingButton-Cq4u8ov0.js} +1 -1
  30. package/dist/assets/{LockIcon-BNPULy1Y.js → LockIcon-Cze-ShJ1.js} +1 -1
  31. package/dist/assets/{Meeting-DYJ-razI.js → Meeting-BGFEJhQX.js} +1 -1
  32. package/dist/assets/{MoreHoriz-BGho5EZt.js → MoreHoriz-DzKDzUVs.js} +1 -1
  33. package/dist/assets/{MoreVert-Dsx1svGJ.js → MoreVert-3cneIjbG.js} +1 -1
  34. package/dist/assets/{OffSick-DkD5M8d5.js → OffSick-BUmXwL3A.js} +1 -1
  35. package/dist/assets/OpenInNew-BjHMRNtt.js +1 -0
  36. package/dist/assets/{Public-DsP_rIVN.js → Public-CUgb9aF1.js} +1 -1
  37. package/dist/assets/{Refresh-CY_XOdj5.js → Refresh-Dv_hYlcX.js} +1 -1
  38. package/dist/assets/{SchemaReference.es-CHFc7aCW.js → SchemaReference.es-zp5UNeP-.js} +1 -1
  39. package/dist/assets/{Search-Cy1sS0Ys.js → Search-SdD3jiMC.js} +1 -1
  40. package/dist/assets/{Slider-DliZyLUu.js → Slider-Crvk4gHf.js} +1 -1
  41. package/dist/assets/{Stepper-D00G8whg.js → Stepper-BWlWum42.js} +1 -1
  42. package/dist/assets/TableRow-CPvAPoKO.js +1 -0
  43. package/dist/assets/{TableSearch-B7Ia4hYX.js → TableSearch-BSpNs5yI.js} +1 -1
  44. package/dist/assets/{ToggleButtonGroup-Dx7Cqen3.js → ToggleButtonGroup-DKfUnWAC.js} +1 -1
  45. package/dist/assets/{Verified-DEPnoVi2.js → Verified-ll8KM-RV.js} +1 -1
  46. package/dist/assets/{VerifiedUser-CtMfrkOq.js → VerifiedUser-89OpS-O0.js} +1 -1
  47. package/dist/assets/{ViewColumn-1pLOayu5.js → ViewColumn-DYzQrfKK.js} +1 -1
  48. package/dist/assets/{ViewList-BAJgFctd.js → ViewList-B0GgaL9_.js} +1 -1
  49. package/dist/assets/{WorkingRemotely-CFsc5wBG.js → WorkingRemotely-DvjI3J2w.js} +1 -1
  50. package/dist/assets/{_createAggregator-BZiDTQ-1.js → _createAggregator-B68eDEEs.js} +1 -1
  51. package/dist/assets/{actions-rKZA5Yl3.js → actions-4GlzmDRv.js} +1 -1
  52. package/dist/assets/{actions-COYCVGfV.js → actions-BzctLrRJ.js} +2 -2
  53. package/dist/assets/{agreement-CvnU-wvl.js → agreement-CL0yNId5.js} +4 -4
  54. package/dist/assets/api-CgfGaMAh.js +1 -0
  55. package/dist/assets/{appearance-BKSHEoHy.js → appearance-DWpHxRQY.js} +1 -1
  56. package/dist/assets/{ar-DRtGxecv.js → ar-mN5tHF4O.js} +1 -1
  57. package/dist/assets/{audit-logs-C5PuRwaG.js → audit-logs-Bqt3mjwc.js} +2 -2
  58. package/dist/assets/blocklet-C1daQzB9.js +1 -0
  59. package/dist/assets/{brace-fold.es-zOkKbJNK.js → brace-fold.es-BHIReLqK.js} +1 -1
  60. package/dist/assets/{chain-nejdRVrr.js → chain-D_7KXr7d.js} +1 -1
  61. package/dist/assets/click-to-copy-CD44pMYS.js +1 -0
  62. package/dist/assets/cloneDeep-BRXk7foF.js +1 -0
  63. package/dist/assets/{closebrackets.es-D1eT-FTM.js → closebrackets.es--lhPx3rt.js} +1 -1
  64. package/dist/assets/{codemirror.es-0rTHjVK9.js → codemirror.es-Bj74ewYY.js} +1 -1
  65. package/dist/assets/{comment.es-BzTQxNrB.js → comment.es-BYggArDY.js} +1 -1
  66. package/dist/assets/{config-navigation-DP1VP0AV.js → config-navigation-D-Xbnbfs.js} +17 -17
  67. package/dist/assets/{connect-to-CLKjNArl.js → connect-to-C5zcVOc7.js} +1 -1
  68. package/dist/assets/de-BP5gdcKp.js +7 -0
  69. package/dist/assets/delete-confirm-DAmIANxQ.js +1 -0
  70. package/dist/assets/{detail-SkSHXUY6.js → detail-PsKOtV5O.js} +3 -3
  71. package/dist/assets/{dialog.es-DTCttvK1.js → dialog.es-BS5SePjL.js} +1 -1
  72. package/dist/assets/domains-BTKIPvpd.js +24 -0
  73. package/dist/assets/{download-hxkTe46m.js → download-C6Z56Tt6.js} +1 -1
  74. package/dist/assets/emotion-react.browser.esm-OA9QfV18.js +1 -0
  75. package/dist/assets/es-CBFvWN06.js +7 -0
  76. package/dist/assets/{foldgutter.es-D09BRatH.js → foldgutter.es-CHhOPKEu.js} +1 -1
  77. package/dist/assets/fr-CmHa1dCv.js +7 -0
  78. package/dist/assets/{get-safe-url-6iqduUH5.js → get-safe-url-BBqla3I1.js} +1 -1
  79. package/dist/assets/{get-safe-url-CVvG2J9I.js → get-safe-url-DK1HRb36.js} +1 -1
  80. package/dist/assets/getValidReactChildren-C4Batt3I.js +1 -0
  81. package/dist/assets/hi-CWyDCXYI.js +5 -0
  82. package/dist/assets/{hint.es-CElKEoBL.js → hint.es-DQgFgx7u.js} +1 -1
  83. package/dist/assets/{hint.es2-cm-ZWwEJ.js → hint.es2-CfBCBz7B.js} +1 -1
  84. package/dist/assets/id-3xH3q-wr.js +7 -0
  85. package/dist/assets/{iframe-BtkIGcLr.js → iframe-BHKiJ7ZC.js} +1 -1
  86. package/dist/assets/{index-DFqgZ5xa.js → index-2OLC7QPg.js} +1 -1
  87. package/dist/assets/index-B9NwQ4fV.js +327 -0
  88. package/dist/assets/index-BBLfRaSi.js +109 -0
  89. package/dist/assets/{index-BEKPz42W.js → index-BNPQGzJY.js} +2 -2
  90. package/dist/assets/{index-CrLu05HL.js → index-BNQdv6p6.js} +24 -24
  91. package/dist/assets/{index-BG2kH0vO.js → index-BTA7w00_.js} +3 -3
  92. package/dist/assets/{index-B-gpi2ba.js → index-BYFWgS3C.js} +1 -1
  93. package/dist/assets/{index-D1AcZBxv.js → index-BbPyYcY_.js} +1 -1
  94. package/dist/assets/{index-D5iXLg7U.js → index-BfmQayrS.js} +1 -1
  95. package/dist/assets/{index-Chf7gMD-.js → index-BlumH6IJ.js} +6 -6
  96. package/dist/assets/{index-DacB9LlP.js → index-Bp1Uuyts.js} +1 -1
  97. package/dist/assets/index-BpN-knDJ.js +1 -0
  98. package/dist/assets/{index-CmON_Ucm.js → index-C1Dkbnu6.js} +3 -3
  99. package/dist/assets/{index-BkTRcS0m.js → index-CDZ-Hu0o.js} +5 -5
  100. package/dist/assets/{index-C9UfyIb3.js → index-CERbZ-Ks.js} +1 -1
  101. package/dist/assets/index-CFhvSgL3.js +20 -0
  102. package/dist/assets/index-CIibWbQo.js +138 -0
  103. package/dist/assets/{index-DU1prNlR.js → index-CMRLl9mx.js} +1 -1
  104. package/dist/assets/{index-BjeDI2iY.js → index-CMmF_Q73.js} +1 -1
  105. package/dist/assets/index-Ca_AI8Ja.js +11 -0
  106. package/dist/assets/{index-Ca2ykS6T.js → index-CawbsPlQ.js} +1 -1
  107. package/dist/assets/{index-CrdafeIA.js → index-Cb5vovQV.js} +4 -4
  108. package/dist/assets/{index-CH0ZtB03.js → index-CbyzO-bB.js} +1 -1
  109. package/dist/assets/{index-CoenHBJL.js → index-Ci13pE37.js} +1 -1
  110. package/dist/assets/index-CilDVWw4.js +1 -0
  111. package/dist/assets/{index-BdcAx4jd.js → index-CsApEyBI.js} +1 -1
  112. package/dist/assets/{index-BaNhzXWK.js → index-Ct3Cv88N.js} +25 -25
  113. package/dist/assets/{index-dpcQFGC9.js → index-Cv4rDcLo.js} +1 -1
  114. package/dist/assets/{index-C7M3KjDN.js → index-D1FTf6L1.js} +1 -1
  115. package/dist/assets/index-D3lDDkys.js +1 -0
  116. package/dist/assets/{index-BI57n5-1.js → index-D4kEYYxp.js} +1 -1
  117. package/dist/assets/{index-CkuW1m1M.js → index-DAa8fCLv.js} +3 -3
  118. package/dist/assets/{index-B8tVxEg2.js → index-DZOoKZ79.js} +1 -1
  119. package/dist/assets/{index-BCoMTShJ.js → index-Da29Cj1G.js} +3 -3
  120. package/dist/assets/{index-DwcH9Py2.js → index-DdA20T3i.js} +1 -1
  121. package/dist/assets/{index-Db1NmfnY.js → index-F-rIOXkO.js} +11 -11
  122. package/dist/assets/{index-CwQRP9vW.js → index-I20LchFz.js} +1 -1
  123. package/dist/assets/{index-B_8fIevk.js → index-OQgc2aM9.js} +1 -1
  124. package/dist/assets/{index-DacxPQzS.js → index-V69Rm1MZ.js} +9 -9
  125. package/dist/assets/{index-iKNyCq23.js → index-VKNa-9d8.js} +1 -1
  126. package/dist/assets/{index-CdIzwolo.js → index-VfvLvsbm.js} +1 -1
  127. package/dist/assets/index-YM5g10d2.js +11 -0
  128. package/dist/assets/{index-H4oRzuHX.js → index-_5yUL6f2.js} +1 -1
  129. package/dist/assets/index-bPPx_Hv9.js +289 -0
  130. package/dist/assets/{index-DMyuQ6gX.js → index-d_P1tmBi.js} +1 -1
  131. package/dist/assets/{index-bYp_tt8z.js → index-lKfM6BZT.js} +1 -1
  132. package/dist/assets/index-oaL4Rv1j.js +29 -0
  133. package/dist/assets/index-uP4E64Y9.js +113 -0
  134. package/dist/assets/{index.esm-BiF80IE7.js → index.esm-zouKPS5y.js} +1 -1
  135. package/dist/assets/{info-addon.es-LTLqCI-0.js → info-addon.es-CXIyNQaL.js} +1 -1
  136. package/dist/assets/{info.es-DGuZ8x_j.js → info.es-B4cU8Aqj.js} +1 -1
  137. package/dist/assets/{install-from-url-CctlVaYm.js → install-from-url-DQ7AcK35.js} +1 -1
  138. package/dist/assets/{invitation-B5T1tiZS.js → invitation-BN8GOT5e.js} +5 -5
  139. package/dist/assets/is-path-prefix-equal-BjsJ5xBH.js +1 -0
  140. package/dist/assets/{item-C_feFNJE.js → item-DhcUqUC3.js} +5 -5
  141. package/dist/assets/ja-Dlm9gbED.js +7 -0
  142. package/dist/assets/{javascript.es-DXQm_49v.js → javascript.es-DmC-LVTH.js} +1 -1
  143. package/dist/assets/{jump-to-line.es-COQrSkxS.js → jump-to-line.es-CiRJzQAS.js} +1 -1
  144. package/dist/assets/{jump.es-Bt36pao4.js → jump.es-Cr1rsr6r.js} +1 -1
  145. package/dist/assets/ko-JYKwx9PY.js +7 -0
  146. package/dist/assets/{lint.es-D7cZDq3q.js → lint.es-Cao4W6is.js} +1 -1
  147. package/dist/assets/{lint.es2-DjlpYEUm.js → lint.es2-BmO3ym_D.js} +1 -1
  148. package/dist/assets/{lint.es3-DZfzAxs3.js → lint.es3-Bw8E5ZSP.js} +1 -1
  149. package/dist/assets/{list-header-D6gN8uAe.js → list-header-CLvwP9eV.js} +1 -1
  150. package/dist/assets/{log-D0D7SXBT.js → log-DIqg0luc.js} +1 -1
  151. package/dist/assets/{lottie-react.esm-Cq33pfIC.js → lottie-react.esm-CXxqofKx.js} +1 -1
  152. package/dist/assets/{matchbrackets.es-3bFu-rM7.js → matchbrackets.es-YBQDutU-.js} +1 -1
  153. package/dist/assets/{memory-C4f-u36N.js → memory-y0A5NqJK.js} +1 -1
  154. package/dist/assets/{mode.es-fSwJIwcv.js → mode.es-CL9LdSgs.js} +1 -1
  155. package/dist/assets/{mode.es2-DE0KN96r.js → mode.es2-Bn-R4bKM.js} +1 -1
  156. package/dist/assets/{mode.es3-7lr44IEM.js → mode.es3-qCeL57xO.js} +1 -1
  157. package/dist/assets/omit-DsCs9CP1.js +1 -0
  158. package/dist/assets/{onlineParser.es-CgJfI2uz.js → onlineParser.es-CyI9Q_d0.js} +1 -1
  159. package/dist/assets/{overview-BFj7mF3I.js → overview-mjgztvpK.js} +2 -2
  160. package/dist/assets/{permission-CWRNDCfb.js → permission-Bvs2yqp1.js} +1 -1
  161. package/dist/assets/{preference-Bu7eUUWY.js → preference-DfKjVX7Q.js} +4 -4
  162. package/dist/assets/pt-BgyGyT44.js +5 -0
  163. package/dist/assets/{raf-schd.esm-CHbi2ex4.js → raf-schd.esm-BhbXYYe6.js} +1 -1
  164. package/dist/assets/refType-CmlNeQNS.js +1 -0
  165. package/dist/assets/{resource-dialog-Bkqsb65A.js → resource-dialog-DQHi5__f.js} +4 -4
  166. package/dist/assets/ru-CEVWIKf9.js +5 -0
  167. package/dist/assets/runtime-DEyoNLVz.js +1 -0
  168. package/dist/assets/{schema-v7IiGTwK.js → schema-BxmPumwx.js} +1 -1
  169. package/dist/assets/{search.es-Dq3fEJn9.js → search.es-Bq_Otaio.js} +1 -1
  170. package/dist/assets/{searchcursor.es-4j5vi65s.js → searchcursor.es-S4pYTGPm.js} +1 -1
  171. package/dist/assets/{service-lHsrm0NQ.js → service-R5kw_ant.js} +1 -1
  172. package/dist/assets/session-DUPXykbA.js +1 -0
  173. package/dist/assets/shorten-label-9dS8Ib5c.js +1 -0
  174. package/dist/assets/{show-hint.es-Ojy6T5sj.js → show-hint.es-PvtNb65c.js} +1 -1
  175. package/dist/assets/{simple-select-F8H5fDWg.js → simple-select-DscPnnca.js} +1 -1
  176. package/dist/assets/{spaces-BTXS6Yjp.js → spaces-DEZPSf7q.js} +1 -1
  177. package/dist/assets/{status-l9WKVdEe.js → status-BEg3LYaU.js} +1 -1
  178. package/dist/assets/{status-IJGTdR69.js → status-D-4k6JPe.js} +1 -1
  179. package/dist/assets/{sublime.es-B-15UZDa.js → sublime.es-CaqfX_z-.js} +1 -1
  180. package/dist/assets/{switch-control-DonG73Yn.js → switch-control-D3y8OKM4.js} +1 -1
  181. package/dist/assets/{table-icons-BHel_001.js → table-icons-Br74wkXv.js} +1 -1
  182. package/dist/assets/team-BOaKaF7d.js +1 -0
  183. package/dist/assets/th-y94pKVk7.js +5 -0
  184. package/dist/assets/{toLower-Na2C3nc2.js → toLower-BZi61gAb.js} +1 -1
  185. package/dist/assets/toUpper-DCgW1QYY.js +1 -0
  186. package/dist/assets/{traffic-C0ojZNhU.js → traffic-BDBSkRtU.js} +1 -1
  187. package/dist/assets/{url-evaluation-gByE9zMg.js → url-evaluation-CiLjXBIq.js} +1 -1
  188. package/dist/assets/{url-join-D1f7RCcb.js → url-join-BQni1DFo.js} +1 -1
  189. package/dist/assets/{use-mobile-ccyNEJKq.js → use-mobile-Bj4lPhGz.js} +1 -1
  190. package/dist/assets/{use-mobile-ate4xZwv.js → use-mobile-d8ioRwmr.js} +1 -1
  191. package/dist/assets/{useAsync-VXf0m9o5.js → useAsync-BHK_lRzo.js} +1 -1
  192. package/dist/assets/{useLocalStorage-CM3CvKLy.js → useLocalStorage-i7GWvl8p.js} +1 -1
  193. package/dist/assets/{useThemeProps-BC8tRkwB.js → useThemeProps-DAMDTLAO.js} +1 -1
  194. package/dist/assets/util-DJYSIyMs.js +1 -0
  195. package/dist/assets/vi-Dw7W2UPp.js +5 -0
  196. package/dist/assets/{wait-container-YMrkmjdy.js → wait-container-Dzs1AE0W.js} +3 -3
  197. package/dist/assets/withStyles-cMFGSpYF.js +1 -0
  198. package/dist/assets/wrap-locale-DF7IwF4o.js +1 -0
  199. package/dist/assets/{zh-CY9wasmC.js → zh-Dag6w2Z7.js} +1 -1
  200. package/dist/assets/zh-tw-CMYkmBeh.js +7 -0
  201. package/dist/index.html +1 -1
  202. package/dist/service-worker.js +1 -1
  203. package/package.json +1 -1
  204. package/dist/assets/CardContent-BtOX0LtZ.js +0 -1
  205. package/dist/assets/Delete-WcGTUKKB.js +0 -1
  206. package/dist/assets/api-DLD170qt.js +0 -1
  207. package/dist/assets/blocklet-DJBGGeZX.js +0 -1
  208. package/dist/assets/click-to-copy-DMnzmGmb.js +0 -1
  209. package/dist/assets/cloneDeep-B9FR8YvV.js +0 -1
  210. package/dist/assets/de-BZDWXY3K.js +0 -7
  211. package/dist/assets/delete-confirm-BtLdya8P.js +0 -1
  212. package/dist/assets/domains-Ocd33WxK.js +0 -25
  213. package/dist/assets/emotion-react.browser.esm-BhrBe_SA.js +0 -1
  214. package/dist/assets/es-kQ6jQG-H.js +0 -7
  215. package/dist/assets/fr-Bf3jz4q5.js +0 -7
  216. package/dist/assets/getValidReactChildren-Cpt3JIPG.js +0 -1
  217. package/dist/assets/hi-DPdbGXyy.js +0 -5
  218. package/dist/assets/id-BqmT-cL5.js +0 -7
  219. package/dist/assets/index-BYMuyFwb.js +0 -138
  220. package/dist/assets/index-BbQ_Eva9.js +0 -1
  221. package/dist/assets/index-C1Ig2ZHh.js +0 -289
  222. package/dist/assets/index-CsRDH5PZ.js +0 -11
  223. package/dist/assets/index-D5tFxfO4.js +0 -29
  224. package/dist/assets/index-DErkdWGS.js +0 -1
  225. package/dist/assets/index-Dk_ddRep.js +0 -20
  226. package/dist/assets/index-JQOci2IN.js +0 -1
  227. package/dist/assets/index-PKxcb70p.js +0 -113
  228. package/dist/assets/index-Smdhabbz.js +0 -102
  229. package/dist/assets/index-U3LqL5BU.js +0 -327
  230. package/dist/assets/index-dPMBaXU5.js +0 -11
  231. package/dist/assets/is-path-prefix-equal-evPnCa54.js +0 -1
  232. package/dist/assets/ja-CyUU4_H1.js +0 -7
  233. package/dist/assets/ko-DWTxutv1.js +0 -7
  234. package/dist/assets/omit-CRVyfsPe.js +0 -1
  235. package/dist/assets/pt-BcsDG9H6.js +0 -5
  236. package/dist/assets/refType-DslaJ1jV.js +0 -1
  237. package/dist/assets/ru-BwH1q1F1.js +0 -5
  238. package/dist/assets/runtime-BTj0lhIQ.js +0 -1
  239. package/dist/assets/session-ZhuGZWu8.js +0 -1
  240. package/dist/assets/shorten-label-DOksnAtq.js +0 -1
  241. package/dist/assets/team-B791iWfh.js +0 -1
  242. package/dist/assets/th-CNztcQMJ.js +0 -5
  243. package/dist/assets/toUpper-CxCsEo5T.js +0 -1
  244. package/dist/assets/util-7WcGgtM2.js +0 -1
  245. package/dist/assets/vi-Bpl5HEj4.js +0 -5
  246. package/dist/assets/withStyles-oCXyS3DL.js +0 -1
  247. package/dist/assets/wrap-locale-C4NCfxhS.js +0 -1
  248. package/dist/assets/zh-tw-D6qZTlL3.js +0 -7
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-BFj7mF3I.js","./index-Db1NmfnY.js","./index-BwERA2k7.css","./HelpOutline-PjbpgGnS.js","./status-l9WKVdEe.js","./index-JQOci2IN.js","./ErrorOutline-BamXOGix.js","./omit-CRVyfsPe.js","./index-BojVbZw0.js","./index-CwQRP9vW.js","./blocklet-DJBGGeZX.js","./team-B791iWfh.js","./url-evaluation-gByE9zMg.js","./spaces-BTXS6Yjp.js","./api-DLD170qt.js","./domains-Ocd33WxK.js","./index-bYp_tt8z.js","./VerifiedUser-CtMfrkOq.js","./useAsync-VXf0m9o5.js","./permission-CWRNDCfb.js","./session-ZhuGZWu8.js","./Delete-lfXEd_sD.js","./actions-rKZA5Yl3.js","./MoreHoriz-BGho5EZt.js","./delete-confirm-BtLdya8P.js","./click-to-copy-DMnzmGmb.js","./shorten-label-DOksnAtq.js","./status-IJGTdR69.js","./CardContent-BtOX0LtZ.js","./Add-CaztVzCy.js","./CallMerge-BKOZFJsL.js","./toLower-Na2C3nc2.js","./use-mobile-ate4xZwv.js","./util-7WcGgtM2.js","./is-path-prefix-equal-evPnCa54.js","./LoadingButton-D_BY4Jqp.js","./useThemeProps-BC8tRkwB.js","./index-B8tVxEg2.js","./preference-Bu7eUUWY.js","./index-B_8fIevk.js","./iframe-BtkIGcLr.js","./ChevronRight-CmLzNb37.js","./index-C7M3KjDN.js","./Done-B07f5HKr.js","./chain-nejdRVrr.js","./ArrowDropDown-DVC5NCF_.js","./ButtonGroup-BwBRy_Vd.js","./getValidReactChildren-Cpt3JIPG.js","./Autocomplete-BvgGgwn-.js","./ListSubheader-CXoRyaHI.js","./Public-DsP_rIVN.js","./index-H4oRzuHX.js","./index.esm-BiF80IE7.js","./index-C1Ig2ZHh.js","./emotion-react.browser.esm-BhrBe_SA.js","./ViewColumn-1pLOayu5.js","./Search-Cy1sS0Ys.js","./Clear-DnKBhMMz.js","./MoreVert-Dsx1svGJ.js","./TableSearch-B7Ia4hYX.js","./switch-control-DonG73Yn.js","./Slider-DliZyLUu.js","./index-DU1prNlR.js","./index-CkuW1m1M.js","./index-foZCwT8M.css","./use-mobile-ccyNEJKq.js","./simple-select-F8H5fDWg.js","./actions-COYCVGfV.js","./useLocalStorage-CM3CvKLy.js","./get-safe-url-CVvG2J9I.js","./refType-DslaJ1jV.js","./CSSTransition-B2MHWQVG.js","./appearance-BKSHEoHy.js","./config-navigation-DP1VP0AV.js","./cloneDeep-B9FR8YvV.js","./index-D1AcZBxv.js","./_createAggregator-BZiDTQ-1.js","./raf-schd.esm-CHbi2ex4.js","./resource-dialog-Bkqsb65A.js","./index-CdIzwolo.js","./ListItemButton-UrtScDNv.js","./index-DwcH9Py2.js","./index-D5tFxfO4.js","./index-BJHGOv7L.js","./index-Ca2ykS6T.js","./index-PKxcb70p.js","./Refresh-CY_XOdj5.js","./traffic-C0ojZNhU.js","./ChevronLeft-BLMagiOR.js","./index-DMyuQ6gX.js","./AdapterDayjs-Dd50umeM.js","./audit-logs-C5PuRwaG.js","./index-CoenHBJL.js","./index-C0Iiqot3.css","./index-DacxPQzS.js","./LockIcon-BNPULy1Y.js","./list-header-D6gN8uAe.js","./ToggleButtonGroup-Dx7Cqen3.js","./index-CrLu05HL.js","./ViewList-BAJgFctd.js","./Verified-DEPnoVi2.js","./DeleteOutline-CpHx956r.js","./service-lHsrm0NQ.js","./table-icons-BHel_001.js","./Edit-DeW-Raa6.js","./index-BaNhzXWK.js","./Link-9GZNaOgm.js","./item-C_feFNJE.js","./index-DacB9LlP.js","./Launch-VrwX5mL6.js","./item-D-IRi6XF.css","./index-B-gpi2ba.js","./url-join-D1f7RCcb.js","./Close-z9azgP87.js","./connect-to-CLKjNArl.js","./agreement-CvnU-wvl.js","./install-from-url-CctlVaYm.js","./schema-v7IiGTwK.js","./Stepper-D00G8whg.js","./toUpper-CxCsEo5T.js","./log-D0D7SXBT.js","./download-hxkTe46m.js","./download-D33dFtt_.css","./runtime-BTj0lhIQ.js","./memory-C4f-u36N.js","./index-BdcAx4jd.js","./index-BEKPz42W.js","./index-BYMuyFwb.js","./Delete-WcGTUKKB.js"])))=>i.map(i=>d[i]);
2
- import{m as qe,bB as jt,r as b,A as F,j as p,X as Qe,M as ee,B as We,v as Pt,bL as At,H as T,y as X,Y as Ge,by as Ke,bM as I,x as Ot,u as Dt,bN as Lt,bO as Bt,bP as G,bQ as Rt,Z as De,C as Le,J as Mt,bR as Nt,k as fe,K as Ft,n as Vt,bS as zt}from"./index-Db1NmfnY.js";import{T as $t}from"./index-C7M3KjDN.js";import{B as Ut}from"./status-IJGTdR69.js";import{D as Ht,B as qt}from"./actions-COYCVGfV.js";import{u as Qt}from"./blocklet-DJBGGeZX.js";import{u as Je}from"./session-ZhuGZWu8.js";import{R as Wt}from"./index-CdIzwolo.js";import{B as Gt,a as Kt,T as Jt}from"./team-B791iWfh.js";import{P as Xt}from"./permission-CWRNDCfb.js";import{B as Yt}from"./Breadcrumbs--d8mi7-f.js";import"./url-evaluation-gByE9zMg.js";import"./useLocalStorage-CM3CvKLy.js";import"./MoreVert-Dsx1svGJ.js";import"./Delete-lfXEd_sD.js";import"./get-safe-url-CVvG2J9I.js";import"./ButtonGroup-BwBRy_Vd.js";import"./getValidReactChildren-Cpt3JIPG.js";/**
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-mjgztvpK.js","./index-F-rIOXkO.js","./index-BwERA2k7.css","./HelpOutline-bgVW4YK3.js","./status-BEg3LYaU.js","./index-CilDVWw4.js","./ErrorOutline-DjYrwQ38.js","./omit-DsCs9CP1.js","./index-BojVbZw0.js","./index-I20LchFz.js","./blocklet-C1daQzB9.js","./team-BOaKaF7d.js","./url-evaluation-CiLjXBIq.js","./spaces-DEZPSf7q.js","./api-CgfGaMAh.js","./domains-BTKIPvpd.js","./index-lKfM6BZT.js","./VerifiedUser-89OpS-O0.js","./LoadingButton-Cq4u8ov0.js","./useThemeProps-DAMDTLAO.js","./useAsync-BHK_lRzo.js","./permission-Bvs2yqp1.js","./session-DUPXykbA.js","./Delete-CoHU08w5.js","./actions-4GlzmDRv.js","./MoreHoriz-DzKDzUVs.js","./delete-confirm-DAmIANxQ.js","./click-to-copy-CD44pMYS.js","./status-D-4k6JPe.js","./CardContent-7kMksoLZ.js","./Add-jEZFTiQU.js","./CallMerge-Cglc7qj4.js","./toLower-BZi61gAb.js","./use-mobile-d8ioRwmr.js","./util-DJYSIyMs.js","./is-path-prefix-equal-BjsJ5xBH.js","./OpenInNew-BjHMRNtt.js","./TableRow-CPvAPoKO.js","./index-DZOoKZ79.js","./preference-DfKjVX7Q.js","./index-OQgc2aM9.js","./iframe-BHKiJ7ZC.js","./ChevronRight-ByKIlh_D.js","./index-D1FTf6L1.js","./Done-D-DP22Cm.js","./chain-D_7KXr7d.js","./ArrowDropDown-CT-4P1KC.js","./ButtonGroup-CXxrSIV0.js","./getValidReactChildren-C4Batt3I.js","./Autocomplete-Bs7d-YbL.js","./ListSubheader-BiYgsVLH.js","./Public-CUgb9aF1.js","./index-_5yUL6f2.js","./index.esm-zouKPS5y.js","./index-bPPx_Hv9.js","./emotion-react.browser.esm-OA9QfV18.js","./ViewColumn-DYzQrfKK.js","./Search-SdD3jiMC.js","./Clear-CzcbL8Ae.js","./MoreVert-3cneIjbG.js","./TableSearch-BSpNs5yI.js","./switch-control-D3y8OKM4.js","./Slider-Crvk4gHf.js","./index-CMRLl9mx.js","./index-DAa8fCLv.js","./index-foZCwT8M.css","./use-mobile-Bj4lPhGz.js","./simple-select-DscPnnca.js","./actions-BzctLrRJ.js","./useLocalStorage-i7GWvl8p.js","./get-safe-url-BBqla3I1.js","./refType-CmlNeQNS.js","./CSSTransition-BP8Rhpxg.js","./appearance-DWpHxRQY.js","./config-navigation-D-Xbnbfs.js","./cloneDeep-BRXk7foF.js","./index-BbPyYcY_.js","./_createAggregator-B68eDEEs.js","./raf-schd.esm-BhbXYYe6.js","./resource-dialog-DQHi5__f.js","./index-VfvLvsbm.js","./ListItemButton-CbFcdXgo.js","./index-DdA20T3i.js","./index-oaL4Rv1j.js","./index-BJHGOv7L.js","./index-CawbsPlQ.js","./index-uP4E64Y9.js","./shorten-label-9dS8Ib5c.js","./Refresh-Dv_hYlcX.js","./traffic-BDBSkRtU.js","./ChevronLeft-D0cz-2NS.js","./index-d_P1tmBi.js","./AdapterDayjs-CiB9toI9.js","./audit-logs-Bqt3mjwc.js","./index-Ci13pE37.js","./index-C0Iiqot3.css","./index-V69Rm1MZ.js","./LockIcon-Cze-ShJ1.js","./list-header-CLvwP9eV.js","./ToggleButtonGroup-DKfUnWAC.js","./index-BNQdv6p6.js","./ViewList-B0GgaL9_.js","./Verified-ll8KM-RV.js","./DeleteOutline-BOT28g3_.js","./service-R5kw_ant.js","./table-icons-Br74wkXv.js","./Edit-CC4z5k1g.js","./index-Ct3Cv88N.js","./Link-C2QoHwsl.js","./item-DhcUqUC3.js","./index-Bp1Uuyts.js","./Launch-JGrFRNfl.js","./item-D-IRi6XF.css","./index-BYFWgS3C.js","./url-join-BQni1DFo.js","./Close-C7TOtk9p.js","./connect-to-C5zcVOc7.js","./agreement-CL0yNId5.js","./install-from-url-DQ7AcK35.js","./schema-BxmPumwx.js","./Stepper-BWlWum42.js","./toUpper-DCgW1QYY.js","./log-DIqg0luc.js","./download-C6Z56Tt6.js","./download-D33dFtt_.css","./runtime-DEyoNLVz.js","./memory-y0A5NqJK.js","./index-CsApEyBI.js","./index-BNPQGzJY.js","./index-CIibWbQo.js","./Delete-DosVyBLR.js"])))=>i.map(i=>d[i]);
2
+ import{m as qe,bq as jt,r as b,A as F,j as p,X as Qe,M as ee,B as Ge,v as Pt,bB as At,H as T,y as X,Y as We,bn as Ke,bC as I,x as Dt,u as Ot,bD as Lt,bE as Bt,bF as W,bG as Rt,Z as Oe,C as Le,J as Mt,bH as Nt,k as fe,K as Ft,n as Vt,bI as zt}from"./index-F-rIOXkO.js";import{T as $t}from"./index-D1FTf6L1.js";import{B as Ut}from"./status-D-4k6JPe.js";import{D as Ht,B as qt}from"./actions-BzctLrRJ.js";import{u as Qt}from"./blocklet-C1daQzB9.js";import{u as Je}from"./session-DUPXykbA.js";import{R as Gt}from"./index-VfvLvsbm.js";import{B as Wt,a as Kt,T as Jt}from"./team-BOaKaF7d.js";import{P as Xt}from"./permission-Bvs2yqp1.js";import{B as Yt}from"./Breadcrumbs-BaQf5vA9.js";import"./url-evaluation-CiLjXBIq.js";import"./useLocalStorage-i7GWvl8p.js";import"./MoreVert-3cneIjbG.js";import"./Delete-CoHU08w5.js";import"./get-safe-url-BBqla3I1.js";import"./ButtonGroup-CXxrSIV0.js";import"./getValidReactChildren-C4Batt3I.js";/**
3
3
  * (c) Iconify
4
4
  *
5
5
  * For the full copyright and license information, please view the license.txt or license.gpl.txt
@@ -9,7 +9,7 @@ import{m as qe,bB as jt,r as b,A as F,j as p,X as Qe,M as ee,B as We,v as Pt,bL
9
9
  *
10
10
  * @license MIT
11
11
  * @version 3.1.1
12
- */const Xe=Object.freeze({left:0,top:0,width:16,height:16}),te=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Xe,...te}),he=Object.freeze({...H,body:"",hidden:!1});function Zt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Be(e,t){const n=Zt(e,t);for(const o in he)o in te?o in e&&!(o in n)&&(n[o]=te[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function en(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function s(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const c=o[i]&&o[i].parent,l=c&&s(c);l&&(r[i]=[c].concat(l))}return r[i]}return Object.keys(n).concat(Object.keys(o)).forEach(s),r}function tn(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let s={};function i(c){s=Be(o[c]||r[c],s)}return i(t),n.forEach(i),Be(e,s)}function nn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=en(e);for(const r in o){const s=o[r];s&&(t(r,tn(e,r,s)),n.push(r))}return n}const V=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),l=r.pop(),a={provider:r.length>0?r[0]:o,prefix:l,name:c};return t&&!Y(a)?null:a}const s=r[0],i=s.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return t&&!Y(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:s};return t&&!Y(c,n)?null:c}return null},Y=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,on={provider:"",aliases:{},not_found:{},...Xe};function de(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function rn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!de(e,on))return null;const n=t.icons;for(const r in n){const s=n[r];if(!r.match(V)||typeof s.body!="string"||!de(s,he))return null}const o=t.aliases||Object.create(null);for(const r in o){const s=o[r],i=s.parent;if(!r.match(V)||typeof i!="string"||!n[i]&&!o[i]||!de(s,he))return null}return t}const ne=Object.create(null);function sn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=ne[e]||(ne[e]=Object.create(null));return n[t]||(n[t]=sn(e,t))}function _e(e,t){return rn(t)?nn(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function cn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function an(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(ne)).forEach(r=>{(typeof r=="string"&&typeof t=="string"?[t]:Object.keys(ne[r]||{})).forEach(i=>{const c=C(r,i);n=n.concat(Object.keys(c.icons).map(l=>(r!==""?"@"+r+":":"")+i+":"+l))})}),n}let Ce=!1;function ln(e){return Ce}function q(e){const t=typeof e=="string"?R(e,!0,Ce):e;if(t){const n=C(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function un(e,t){const n=R(e,!0,Ce);if(!n)return!1;const o=C(n.provider,n.prefix);return cn(o,n.name,t)}function Ye(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Y({provider:t,prefix:n,name:"a"}))return!1;const o=C(t,n);return!!_e(o,e)}function fn(e){return!!q(e)}function dn(e){const t=q(e);return t?{...H,...t}:null}const Ze=Object.freeze({width:null,height:null}),et=Object.freeze({...Ze,...te}),pn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ge(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 o=e.split(pn);if(o===null||!o.length)return e;const r=[];let s=o.shift(),i=mn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?r.push(s):r.push(Math.ceil(c*t*n)/n)}else r.push(s);if(s=o.shift(),s===void 0)return r.join("");i=!i}}const hn=e=>e==="unset"||e==="undefined"||e==="none";function se(e,t){const n={...H,...e},o={...et,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,o].forEach(g=>{const y=[],E=g.hFlip,L=g.vFlip;let k=g.rotate;E?L?k+=2:(y.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),y.push("scale(-1 1)"),r.top=r.left=0):L&&(y.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),y.push("scale(1 -1)"),r.top=r.left=0);let x;switch(k<0&&(k-=Math.floor(k/4)*4),k=k%4,k){case 1:x=r.height/2+r.top,y.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:y.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:x=r.width/2+r.left,y.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}k%2===1&&(r.left!==r.top&&(x=r.left,r.left=r.top,r.top=x),r.width!==r.height&&(x=r.width,r.width=r.height,r.height=x)),y.length&&(s='<g transform="'+y.join(" ")+'">'+s+"</g>")});const i=o.width,c=o.height,l=r.width,a=r.height;let u,f;i===null?(f=c===null?"1em":c==="auto"?a:c,u=ge(f,l/a)):(u=i==="auto"?l:i,f=c===null?ge(u,a/l):c==="auto"?a:c);const d={},h=(g,y)=>{hn(y)||(d[g]=y.toString())};return h("width",u),h("height",f),d.viewBox=r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:d,body:s}}const gn=/\sid="(\S+)"/g,bn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yn=0;function tt(e,t=bn){const n=[];let o;for(;o=gn.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const O={local:!0,session:!0},nt={local:new Set,session:new Set};let Te=!1;function vn(e){Te=e}const Re="iconify2",U="iconify",ot=U+"-count",Me=U+"-version",rt=36e5,xn=168;function be(e,t){try{return e.getItem(t)}catch{}}function je(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ne(e,t){try{e.removeItem(t)}catch{}}function ye(e,t){return je(e,ot,t.toString())}function ve(e){return parseInt(be(e,ot))||0}let K=typeof window>"u"?{}:window;function st(e){const t=e+"Storage";try{if(K&&K[t]&&typeof K[t].length=="number")return K[t]}catch{}O[e]=!1}function it(e,t){const n=st(e);if(!n)return;const o=be(n,Me);if(o!==Re){if(o){const c=ve(n);for(let l=0;l<c;l++)Ne(n,U+l.toString())}je(n,Me,Re),ye(n,0);return}const r=Math.floor(Date.now()/rt)-xn,s=c=>{const l=U+c.toString(),a=be(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Ne(n,l)}};let i=ve(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,ye(n,i)):nt[e].add(c))}function ct(){if(!Te){vn(!0);for(const e in O)it(e,t=>{const n=t.data,o=t.provider,r=n.prefix,s=C(o,r);if(!_e(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function at(e,t){switch(e){case"local":case"session":O[e]=t;break;case"all":for(const n in O)O[n]=t;break}}const xe=Object.create(null);function lt(e,t){xe[e]=t}function we(e){return xe[e]||xe[""]}function Pe(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 ie=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;N.length>0;)N.length===1||Math.random()>.5?Z.push(N.shift()):Z.push(N.pop());ie[""]=Pe({resources:["https://api.iconify.design"].concat(Z)});function ut(e,t){const n=Pe(t);return n===null?!1:(ie[e]=n,!0)}function ce(e){return ie[e]}function wn(){return Object.keys(ie)}const Sn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let oe=Sn();function In(e){oe=e}function kn(){return oe}function En(e,t){const n=ce(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const s=t+".json?icons=";o=n.maxURL-r-n.path.length-s.length}return o}function _n(e){return e===404}const Cn=(e,t,n)=>{const o=[],r=En(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=r&&a>0&&(o.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),o.push(i),o};function Tn(e){if(typeof e=="string"){const t=ce(e);if(t)return t.path}return"/"}const jn=(e,t,n)=>{if(!oe){n("abort",424);return}let o=Tn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});o+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;o+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let r=503;oe(e+o).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_n(i)?"abort":"next",i)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",r)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",r)})},Pn={prepare:Cn,send:jn};function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const s=r.provider,i=r.prefix,c=r.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:c};u.push(f)}),t}function ft(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function On(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 o=e.provider,r=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==r)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:o,prefix:r,name:a});else if(e.missing.has(a))i.missing.push({provider:o,prefix:r,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ft([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Dn=0;function Ln(e,t,n){const o=Dn++,r=ft.bind(null,n,o);if(!t.pending.length)return r;const s={id:o,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),r}function Bn(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const s=typeof r=="string"?R(r,t,n):r;s&&o.push(s)}),o}var Rn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Mn(e,t,n,o){const r=e.resources.length,s=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const S=Math.floor(Math.random()*m.length);i.push(m[S]),m=m.slice(0,S).concat(m.slice(S+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,f=null,d=[],h=[];typeof o=="function"&&h.push(o);function g(){f&&(clearTimeout(f),f=null)}function y(){l==="pending"&&(l="aborted"),g(),d.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),d=[]}function E(m,S){S&&(h=[]),typeof m=="function"&&h.push(m)}function L(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:d.length,subscribe:E,abort:y}}function k(){l="failed",h.forEach(m=>{m(void 0,u)})}function x(){d.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),d=[]}function w(m,S,P){const A=S!=="success";switch(d=d.filter(_=>_!==m),l){case"pending":break;case"failed":if(A||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=P,k();return}if(A){u=P,d.length||(i.length?M():k());return}if(g(),x(),!e.random){const _=e.resources.indexOf(m.resource);_!==-1&&_!==e.index&&(e.index=_)}l="completed",h.forEach(_=>{_(P)})}function M(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(x(),k())},e.timeout);return}k();return}const S={status:"pending",resource:m,callback:(P,A)=>{w(S,P,A)}};d.push(S),a++,f=setTimeout(M,e.rotate),n(m,t,S.callback)}return setTimeout(M),L}function dt(e){const t={...Rn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function r(c,l,a){const u=Mn(t,c,l,(f,d)=>{o(),a&&a(f,d)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:r,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function Fe(){}const pe=Object.create(null);function Nn(e){if(!pe[e]){const t=ce(e);if(!t)return;const n=dt(t),o={config:t,redundancy:n};pe[e]=o}return pe[e]}function pt(e,t,n){let o,r;if(typeof e=="string"){const s=we(e);if(!s)return n(void 0,424),Fe;r=s.send;const i=Nn(e);i&&(o=i.redundancy)}else{const s=Pe(e);if(s){o=dt(s);const i=e.resources?e.resources[0]:"",c=we(i);c&&(r=c.send)}}return!o||!r?(n(void 0,424),Fe):o.query(t,r,n)().abort}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in O)it(o,r=>{const s=r.data;return r.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Vn(e,t){Te||ct();function n(o){let r;if(!O[o]||!(r=st(o)))return;const s=nt[o];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ve(r),!ye(r,i+1))return;const c={cached:Math.floor(Date.now()/rt),provider:e.provider,data:t};return je(r,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ve(){}function zn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,On(e)}))}function $n(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:o}=e,r=e.iconsToLoad;delete e.iconsToLoad;let s;if(!r||!(s=we(n)))return;s.prepare(n,o,r).forEach(c=>{pt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=_e(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(f=>{u.delete(f)}),Vn(e,l)}catch(a){console.error(a)}zn(e)})})}))}const Un=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Ae=(e,t)=>{const n=Bn(e,!0,ln()),o=An(n);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,Ve)}),()=>{l=!1}}const r=Object.create(null),s=[];let i,c;return o.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const f=r[a]||(r[a]=Object.create(null));f[u]||(f[u]=[])}),o.pending.forEach(l=>{const{provider:a,prefix:u,name:f}=l,d=C(a,u),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),r[a][u].push(f))}),s.forEach(l=>{const{provider:a,prefix:u}=l;r[a][u].length&&$n(l,r[a][u])}),t?Ln(t,o,s):Ve},Hn=e=>new Promise((t,n)=>{const o=typeof e=="string"?R(e,!0):e;if(!o){n(e);return}Ae([o||e],r=>{if(r.length&&o){const s=q(o);if(s){t({...H,...s});return}}n(e)})});function mt(e,t){const n={...e};for(const o in t){const r=t[o],s=typeof r;o in Ze?(r===null||r&&(s==="string"||s==="number"))&&(n[o]=r):s===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const ae={...et,inline:!1},me="iconify",Se="iconify-inline",j="iconifyData"+Date.now();let D=[];function Q(e){for(let t=0;t<D.length;t++){const n=D[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function ht(e,t=!1){let n=Q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},D.push(n),n)}function qn(){if(document.documentElement)return ht(document.documentElement);D.push({node:()=>document.documentElement})}function Qn(e){D=D.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function W(){return D}function Wn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Gn={childList:!0,subtree:!0,attributes:!0};function gt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Kn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const r=t[o];if(r.addedNodes&&r.addedNodes.length>0||r.type==="attributes"&&r.target[j]!==void 0){n.paused||gt(e);return}}}function bt(e,t){e.observer.instance.observe(t,Gn)}function re(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(Kn.bind(null,e)),bt(e,n),t.paused||gt(e))}function ze(){W().forEach(re)}function yt(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 Jn(e){const t=z!==null;if(z!==e&&(z=e,t&&W().forEach(yt)),t){ze();return}Wn(ze)}function Ie(e){(e?[e]:W()).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 Xn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function ke(e){(e?[e]:W()).forEach(t=>{if(!t.observer){re(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const o=typeof t.node=="function"?t.node():t.node;if(o)n.instance?bt(t,o):re(t);else return}})}function Yn(e){if(e){const t=Q(e);t&&ke(t)}else ke()}function vt(e,t=!1){const n=ht(e,t);return re(n),n}function xt(e){const t=Q(e);t&&(yt(t),Qn(e))}function Zn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const r in ae)if(n[r]!==o[r])return!0;return!1}function eo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/r,s%1===0?o(s):0)}}return t}const to=/[\s,]+/;function no(e,t){t.split(to).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const oo=["width","height"],ro=["inline","hFlip","vFlip"];function so(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function io(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const o={...ae,inline:e.classList&&e.classList.contains(Se)};oo.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(o[c]=l)});const r=e.getAttribute("data-rotate");typeof r=="string"&&(o.rotate=eo(r));const s=e.getAttribute("data-flip");typeof s=="string"&&no(o,s),ro.forEach(c=>{const l="data-"+c,a=so(e.getAttribute(l),l);typeof a=="boolean"&&(o[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:i}}const co="svg."+me+", i."+me+", span."+me+", i."+Se+", span."+Se;function ao(e){const t=[];return e.querySelectorAll(co).forEach(n=>{const o=n[j]||n.tagName.toLowerCase()!=="svg"?io(n):null;o&&t.push({node:n,props:o})}),t}function wt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let $;function lo(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function uo(e){return $===void 0&&lo(),$?$.createHTML(e):e}function St(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function It(e,t,n,o){const r=e.classList;if(o){const i=o.classList;Array.from(i).forEach(c=>{r.add(c)})}const s=[];return t.forEach(i=>{r.contains(i)?n.has(i)&&s.push(i):(r.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||r.remove(i)}),s}function kt(e,t,n){const o=e.style;(n||[]).forEach(s=>{o.removeProperty(s)});const r=[];for(const s in t)o.getPropertyValue(s)||(r.push(s),o.setProperty(s,t[s]));return r}function Et(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const r=t.customisations,s=se(n,r),i=e[j],c=wt(tt(s.body),{"aria-hidden":"true",role:"img",...s.attributes});o.innerHTML=uo(c);const l=o.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const y=a.item(g),E=y.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,y.value)}const u=St(t.icon),f=It(l,u,new Set(i&&i.addedClasses),e),d=kt(l,r.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:f,addedStyles:d};return l[j]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function fo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function po(e){return"data:image/svg+xml,"+fo(e)}function mo(e){return'url("'+po(e)+'")'}const ho={display:"inline-block"},Ee={"background-color":"currentColor"},_t={"background-color":"transparent"},$e={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ue={"-webkit-mask":Ee,mask:Ee,background:_t};for(const e in Ue){const t=Ue[e];for(const n in $e)t[e+"-"+n]=$e[n]}function He(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function go(e,t,n,o){const r=t.customisations,s=se(n,r),i=s.attributes,c=e[j],l=wt(s.body,{...i,width:n.width+"",height:n.height+""}),a=St(t.icon),u=It(e,a,new Set(c&&c.addedClasses)),d={"--svg":mo(l),width:He(i.width),height:He(i.height),...ho,...o?Ee:_t};r.inline&&(d["vertical-align"]="-0.125em");const h=kt(e,d,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[j]=g,e}let J=!1;function bo(){J||(J=!0,setTimeout(()=>{J&&(J=!1,B())}))}function B(e,t=!1){const n=Object.create(null);function o(r,s){const{provider:i,prefix:c,name:l}=r,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Un(r)){const f=n[i]||(n[i]=Object.create(null));(f[c]||(f[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:W()).forEach(r=>{const s=typeof r.node=="function"?r.node():r.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,f){if(c||(c=!0,Ie(r)),a.tagName.toUpperCase()!=="SVG"){const d=u.mode,h=d==="mask"||(d==="bg"?!1:d==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){go(a,u,{...H,...f},h);return}}Et(a,u,f)}ao(s).forEach(({node:a,props:u})=>{const f=a[j];if(!f){const{status:h,icon:g}=o(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[j]={...u,status:h};return}let d;if(Zn(f,u)){if(d=o(u.icon,f.name!==u.name),!d.icon){i=i||d.status==="loading",Object.assign(f,{...u,status:d.status});return}}else{if(f.status!=="loading")return;if(d=o(u.icon,!1),!d.icon){f.status=d.status;return}}l(a,u,d.icon)}),r.temporary&&!i?xt(s):t&&i?vt(s,!0):c&&r.observer&&ke(r)});for(const r in n){const s=n[r];for(const i in s){const c=s[i];Ae(Array.from(c).map(l=>({provider:r,prefix:i,name:l})),bo)}}}function yo(e){const t=Q(e);t?B(t):B({node:e,temporary:!0},!0)}function Ct(e,t,n=!1){const o=q(e);if(!o)return null;const r=R(e),s=mt(ae,t||{}),i=Et(document.createElement("span"),{name:e,icon:r,customisations:s},o);return n?i.outerHTML:i}function vo(){return"3.1.1"}function xo(e,t){return Ct(e,t,!1)}function wo(e,t){return Ct(e,t,!0)}function So(e,t){const n=q(e);if(!n)return null;const o=mt(ae,t||{});return se(n,o)}function Io(e){e?yo(e):B()}if(typeof document<"u"&&typeof window<"u"){qn();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(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ye(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Jn(B),B()})}function ko(e,t){at(e,t!==!1)}function Eo(e){at(e,!0)}lt("",Pn);if(typeof document<"u"&&typeof window<"u"){ct();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;ut(n,r)||console.error(o)}catch{console.error(o)}}}}const _o={getAPIConfig:ce,setAPIModule:lt,sendAPIQuery:pt,setFetch:In,getFetch:kn,listAPIProviders:wn},Co={_api:_o,addAPIProvider:ut,loadIcons:Ae,loadIcon:Hn,iconExists:fn,getIcon:dn,listIcons:an,addIcon:un,addCollection:Ye,replaceIDs:tt,calculateSize:ge,buildIcon:se,getVersion:vo,renderSVG:xo,renderHTML:wo,renderIcon:So,scan:Io,observe:vt,stopObserving:xt,pauseObserver:Xn,resumeObserver:Yn,enableCache:ko,disableCache:Eo};try{self.Iconify===void 0&&(self.Iconify=Co)}catch{}const To=e=>{const t={};let n=null;return T.forEachBlockletSync(e,o=>{t[o.meta.bundleDid]?n=T.getDisplayName(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},jo=(e,t,n)=>{var s;const{hostname:o,href:r}=e;if(!t)return r;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(o);if(!c)return r;const l=c[0],u=((((s=t.site)==null?void 0:s.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith(F.DEFAULT_DID_DOMAIN))||"").replace(`.${F.DEFAULT_DID_DOMAIN}`,"");return u?r.replace(o,`${u}-${l}.${F.DEFAULT_IP_DOMAIN_SUFFIX}`):r}return r.replace(t.meta.bundleDid,t.appPid)};function Tt(){const{t:e}=qe(),{api:t}=Je(),{blocklet:n}=Qt(),{inService:o}=jt(),[r,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(n.status==="running"){X.error(e("blocklet.migrate.tip.running"));return}const d=To(n);if(d){X.error(e("blocklet.migrate.tip.duplicate",{name:d}));return}s(!0)}catch(d){X.error(Ge(d))}},u=()=>{const d=jo(window.location,n,o);setTimeout(()=>{window.location.href=d},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},f=()=>s(!1);return[l&&p.jsxs(Qe,{severity:"warning",style:{margin:"12px 0"},children:[p.jsxs(ee,{display:"flex",alignItems:"center",children:[p.jsx(We,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),p.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(d=>p.jsx(ee,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${d}`)},d))]},"alert"),n&&p.jsx(Pt,{popup:!0,open:r,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:At(n,!0),title:T.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:f},"connect")]}Tt.propTypes={};const Po=b.lazy(()=>I(()=>import("./overview-BFj7mF3I.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)),Ao=b.lazy(()=>I(()=>import("./domains-Ocd33WxK.js"),__vite__mapDeps([15,1,2,16,5,17,18,10,19,20,21,22,23,24,25,26,27,12,28,29,30,31,32,9,33,34,35,36]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./index-B8tVxEg2.js"),__vite__mapDeps([37,1,2,38,39,40,41,42,19,20,5,43,44,45,46,47,48,49,50,10,25,11,12,9,4,6,7,51,52,16,53,36,54,55,56,57,21,58,59,60,29,61,62,63,64,65,66,67,68,69,70,71,28]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./appearance-BKSHEoHy.js"),__vite__mapDeps([72,1,2,10]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./config-navigation-DP1VP0AV.js"),__vite__mapDeps([73,1,2,7,74,75,76,10,53,36,54,55,56,57,21,16,58,59,77,78,32,42,79,80,81,51,12,82,83,8,3,84,46,47,67,68,69,19,20,52,66,11,45,14,48,49,40,35]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./index-PKxcb70p.js"),__vite__mapDeps([85,1,2,53,36,54,55,56,57,21,16,58,59,26,9,42,67,68,69,46,47,12,19,20,86,87,40,88,41,89,28,90,71,70]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./audit-logs-C5PuRwaG.js"),__vite__mapDeps([91,16,1,2,59,56,57,68,92,93,26,11,10,12]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-DacxPQzS.js").then(e=>e.i),__vite__mapDeps([94,1,2,53,36,54,55,56,57,21,16,58,59,42,11,10,12,84,46,47,19,20,95,74,29,44,96,97]),import.meta.url)),No=b.lazy(()=>I(()=>import("./index-CrLu05HL.js").then(e=>e.i),__vite__mapDeps([98,1,2,29,99,53,36,54,55,56,57,21,16,58,59,78,32,42,79,80,81,51,12,82,83,8,3,84,46,47,11,10,19,20,25,90,71,70,9,100,101,6,22,23,26]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./service-lHsrm0NQ.js"),__vite__mapDeps([102,1,2,103,77,89,55,71,42,29,21,57,104,41,88,56,45]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./index-BaNhzXWK.js"),__vite__mapDeps([105,1,2,29,16,67,68,58,21,69,46,47,12,19,20,60,51,10,104,103,77,89,55,71,42,57,41,88,56,45,25,106,107,108,48,49,100,17,109,43,101,24,26,110,111,112,113,114,82,83,8,3,84,13,14,115,92,93,38,39,40,95,74,116,117,75,9,80,118,33,34,65,27,22,23,119,11]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./log-D0D7SXBT.js"),__vite__mapDeps([120,1,2,68,121,46,47,122,49]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./runtime-BTj0lhIQ.js"),__vite__mapDeps([123,1,2,53,36,54,55,56,57,21,16,58,59,10,83,124,125,27,12,97,47]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./traffic-C0ojZNhU.js").then(e=>e.t),__vite__mapDeps([87,1,2,40,88,41,89,28,90,36,71,70]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./index-BEKPz42W.js"),__vite__mapDeps([126,1,2,42,10,65,82,83,8,3,84,46,47,14,114,13,101,9,125,53,36,54,55,56,57,21,16,58,59,23,67,68,69,12,19,20,60,51,96]),import.meta.url)),qo=b.lazy(()=>I(()=>import("./index-BYMuyFwb.js"),__vite__mapDeps([127,53,1,2,36,54,55,56,57,21,16,58,59,11,10,12,52,63,64,108,49,113,22,23,128]),import.meta.url)),Qo=({children:e})=>e;function Wo(){var A,_,Oe;const e=Ot(),{tab:t="overview"}=Ke(),{did:n,blocklet:o,error:r,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Kt(),{refresh:l}=Dt(),{t:a}=qe(),{session:u}=Je(),f=Lt(()=>{var v;return((v=u.user)==null?void 0:v.role)&&Bt.includes(u.user.role)},[u]),d=b.useCallback(()=>p.jsx(Ro,{scope:n}),[n]),h=b.useCallback(()=>f?p.jsx(Bo,{blocklet:o}):p.jsx(Wt,{status:403}),[o,f]),g=((A=o==null?void 0:o.environments.find(v=>v.key==="BLOCKLET_APP_URL"))==null?void 0:A.value)||window.location.origin,y=v=>zt(v,g),E=v=>{e(`/blocklets/${n}/${v}`)},L=v=>{v&&i(v),c()},k=!o||G(o.status)?[]:T.getAppMissingConfigs(o);let x=null;const w=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:p.jsx(Rt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!k.length,children:a("common.components")}),value:"components"}];if(r)x=p.jsxs(p.Fragment,{children:[p.jsx(Qe,{severity:"error",variant:"icon",children:Ge(r)}),p.jsx(We,{onClick:()=>c(),children:p.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(o){const v={overview:p.jsx(Po,{}),domains:p.jsx(Ao,{}),configuration:Oo,appearance:Do,navigation:Lo,services:Fo,members:p.jsx(No,{type:"blocklet",createPassportSvg:y}),passports:Mo,components:Vo,"audit-logs":d,notifications:h,logs:zo,runtime:p.jsx($o,{}),traffic:p.jsx(Uo,{client:s,did:n}),didSpaces:p.jsx(Ho,{}),webhooks:p.jsx(qo,{})};t==="configuration"&&G(o.status)&&E("overview"),w.push({label:a("common.domains"),value:"domains"}),G(o.status)||(w.push({label:a("common.members"),value:"members"}),w.push({label:a("team.member.passports"),value:"passports"})),G(o.status)||(w.push({label:a("common.configuration"),value:"configuration"}),w.push({label:a("common.appearance"),value:"appearance"})),w.push({label:a("common.auditLogs"),value:"audit-logs"}),f&&w.push({label:a("common.notificationRecords"),value:"notifications"}),o&&((_=o.children)!=null&&_.length)&&o.structVersion===F.APP_STRUCT_VERSION&&w.push({label:a("common.logs"),value:"logs"}),w.push({label:a("common.configNavigation"),value:"navigation"}),w.push({label:a("common.runtime"),value:"runtime"}),w.push({label:a("common.traffic"),value:"traffic"}),w.push({label:a("storage.spaces.title"),value:"didSpaces"}),["admin","owner"].includes((Oe=u.user)==null?void 0:Oe.role)&&w.push({label:"Webhooks",value:"webhooks"}),T.getBlockletServices(o).length&&w.splice(2,0,{label:a("blocklet.services"),value:"services"});const ue=v[t]||v.overview;x=p.jsxs(Ht,{type:"components",children:[!T.isExternalBlocklet(o)&&p.jsx($t,{tabs:w,current:t,onChange:E,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(b.Suspense,{fallback:p.jsx(De,{relative:"parent",children:p.jsx(Le,{})}),children:b.isValidElement(ue)?ue:p.jsx(ue,{blocklet:o,onUpdate:L,createPassportSvg:y})})})]})}else x=p.jsx(De,{relative:"parent",children:p.jsx(Le,{})});const M=()=>{},m=({action:v,error:le})=>{if(le){X.error(le.message);return}v==="remove"?(l(),e("/blocklets")):c()},S=w.find(v=>v.value===t),P=o?Jt:Qo;return p.jsx(P,{teamDid:n,children:p.jsxs(Go,{children:[p.jsxs(Yt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(Mt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),p.jsx(Nt,{to:`/blocklets/${n}/overview`,style:v=>v?{color:"inherit"}:{},children:a("common.detail")}),p.jsx(fe,{color:"textSecondary",children:S?S.breadcrumbsLabel||S.label:""})]}),p.jsxs(fe,{component:"div",className:"page-header",children:[p.jsxs(fe,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(Ft,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(ee,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(ee,{children:T.getDisplayName(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx(Ut,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),p.jsx(Xt,{permission:"mutate_blocklets",children:!!o&&!T.isExternalBlocklet(o)&&p.jsx(qt,{className:"page-actions",blocklet:o,onStart:M,onComplete:m,variant:"group"})})]}),p.jsx(Tt,{}),x]})})}function dr(){const{did:e}=Ke();return e?p.jsx(Gt,{did:e,children:p.jsx(Wo,{})}):null}const Go=Vt.main`
12
+ */const Xe=Object.freeze({left:0,top:0,width:16,height:16}),te=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),H=Object.freeze({...Xe,...te}),he=Object.freeze({...H,body:"",hidden:!1});function Zt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Be(e,t){const n=Zt(e,t);for(const o in he)o in te?o in e&&!(o in n)&&(n[o]=te[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function en(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);function s(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const c=o[i]&&o[i].parent,l=c&&s(c);l&&(r[i]=[c].concat(l))}return r[i]}return Object.keys(n).concat(Object.keys(o)).forEach(s),r}function tn(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let s={};function i(c){s=Be(o[c]||r[c],s)}return i(t),n.forEach(i),Be(e,s)}function nn(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const o=en(e);for(const r in o){const s=o[r];s&&(t(r,tn(e,r,s)),n.push(r))}return n}const V=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,o="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),l=r.pop(),a={provider:r.length>0?r[0]:o,prefix:l,name:c};return t&&!Y(a)?null:a}const s=r[0],i=s.split("-");if(i.length>1){const c={provider:o,prefix:i.shift(),name:i.join("-")};return t&&!Y(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:s};return t&&!Y(c,n)?null:c}return null},Y=(e,t)=>e?!!((e.provider===""||e.provider.match(V))&&(t&&e.prefix===""||e.prefix.match(V))&&e.name.match(V)):!1,on={provider:"",aliases:{},not_found:{},...Xe};function de(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function rn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!de(e,on))return null;const n=t.icons;for(const r in n){const s=n[r];if(!r.match(V)||typeof s.body!="string"||!de(s,he))return null}const o=t.aliases||Object.create(null);for(const r in o){const s=o[r],i=s.parent;if(!r.match(V)||typeof i!="string"||!n[i]&&!o[i]||!de(s,he))return null}return t}const ne=Object.create(null);function sn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=ne[e]||(ne[e]=Object.create(null));return n[t]||(n[t]=sn(e,t))}function _e(e,t){return rn(t)?nn(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function cn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function an(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(ne)).forEach(r=>{(typeof r=="string"&&typeof t=="string"?[t]:Object.keys(ne[r]||{})).forEach(i=>{const c=C(r,i);n=n.concat(Object.keys(c.icons).map(l=>(r!==""?"@"+r+":":"")+i+":"+l))})}),n}let Ce=!1;function ln(e){return Ce}function q(e){const t=typeof e=="string"?R(e,!0,Ce):e;if(t){const n=C(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function un(e,t){const n=R(e,!0,Ce);if(!n)return!1;const o=C(n.provider,n.prefix);return cn(o,n.name,t)}function Ye(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Y({provider:t,prefix:n,name:"a"}))return!1;const o=C(t,n);return!!_e(o,e)}function fn(e){return!!q(e)}function dn(e){const t=q(e);return t?{...H,...t}:null}const Ze=Object.freeze({width:null,height:null}),et=Object.freeze({...Ze,...te}),pn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ge(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 o=e.split(pn);if(o===null||!o.length)return e;const r=[];let s=o.shift(),i=mn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?r.push(s):r.push(Math.ceil(c*t*n)/n)}else r.push(s);if(s=o.shift(),s===void 0)return r.join("");i=!i}}const hn=e=>e==="unset"||e==="undefined"||e==="none";function se(e,t){const n={...H,...e},o={...et,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,o].forEach(g=>{const y=[],E=g.hFlip,L=g.vFlip;let k=g.rotate;E?L?k+=2:(y.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),y.push("scale(-1 1)"),r.top=r.left=0):L&&(y.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),y.push("scale(1 -1)"),r.top=r.left=0);let x;switch(k<0&&(k-=Math.floor(k/4)*4),k=k%4,k){case 1:x=r.height/2+r.top,y.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:y.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:x=r.width/2+r.left,y.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}k%2===1&&(r.left!==r.top&&(x=r.left,r.left=r.top,r.top=x),r.width!==r.height&&(x=r.width,r.width=r.height,r.height=x)),y.length&&(s='<g transform="'+y.join(" ")+'">'+s+"</g>")});const i=o.width,c=o.height,l=r.width,a=r.height;let u,f;i===null?(f=c===null?"1em":c==="auto"?a:c,u=ge(f,l/a)):(u=i==="auto"?l:i,f=c===null?ge(u,a/l):c==="auto"?a:c);const d={},h=(g,y)=>{hn(y)||(d[g]=y.toString())};return h("width",u),h("height",f),d.viewBox=r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:d,body:s}}const gn=/\sid="(\S+)"/g,bn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yn=0;function tt(e,t=bn){const n=[];let o;for(;o=gn.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const D={local:!0,session:!0},nt={local:new Set,session:new Set};let Te=!1;function vn(e){Te=e}const Re="iconify2",U="iconify",ot=U+"-count",Me=U+"-version",rt=36e5,xn=168;function be(e,t){try{return e.getItem(t)}catch{}}function je(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ne(e,t){try{e.removeItem(t)}catch{}}function ye(e,t){return je(e,ot,t.toString())}function ve(e){return parseInt(be(e,ot))||0}let K=typeof window>"u"?{}:window;function st(e){const t=e+"Storage";try{if(K&&K[t]&&typeof K[t].length=="number")return K[t]}catch{}D[e]=!1}function it(e,t){const n=st(e);if(!n)return;const o=be(n,Me);if(o!==Re){if(o){const c=ve(n);for(let l=0;l<c;l++)Ne(n,U+l.toString())}je(n,Me,Re),ye(n,0);return}const r=Math.floor(Date.now()/rt)-xn,s=c=>{const l=U+c.toString(),a=be(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Ne(n,l)}};let i=ve(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,ye(n,i)):nt[e].add(c))}function ct(){if(!Te){vn(!0);for(const e in D)it(e,t=>{const n=t.data,o=t.provider,r=n.prefix,s=C(o,r);if(!_e(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function at(e,t){switch(e){case"local":case"session":D[e]=t;break;case"all":for(const n in D)D[n]=t;break}}const xe=Object.create(null);function lt(e,t){xe[e]=t}function we(e){return xe[e]||xe[""]}function Pe(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 ie=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;N.length>0;)N.length===1||Math.random()>.5?Z.push(N.shift()):Z.push(N.pop());ie[""]=Pe({resources:["https://api.iconify.design"].concat(Z)});function ut(e,t){const n=Pe(t);return n===null?!1:(ie[e]=n,!0)}function ce(e){return ie[e]}function wn(){return Object.keys(ie)}const Sn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let oe=Sn();function In(e){oe=e}function kn(){return oe}function En(e,t){const n=ce(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const s=t+".json?icons=";o=n.maxURL-r-n.path.length-s.length}return o}function _n(e){return e===404}const Cn=(e,t,n)=>{const o=[],r=En(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=r&&a>0&&(o.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),o.push(i),o};function Tn(e){if(typeof e=="string"){const t=ce(e);if(t)return t.path}return"/"}const jn=(e,t,n)=>{if(!oe){n("abort",424);return}let o=Tn(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});o+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;o+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let r=503;oe(e+o).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(_n(i)?"abort":"next",i)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",r)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",r)})},Pn={prepare:Cn,send:jn};function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let o={provider:"",prefix:"",name:""};return e.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const s=r.provider,i=r.prefix,c=r.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=C(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const f={provider:s,prefix:i,name:c};u.push(f)}),t}function ft(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(r=>r.id!==t))})}function Dn(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 o=e.provider,r=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==r)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:o,prefix:r,name:a});else if(e.missing.has(a))i.missing.push({provider:o,prefix:r,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ft([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let On=0;function Ln(e,t,n){const o=On++,r=ft.bind(null,n,o);if(!t.pending.length)return r;const s={id:o,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),r}function Bn(e,t=!0,n=!1){const o=[];return e.forEach(r=>{const s=typeof r=="string"?R(r,t,n):r;s&&o.push(s)}),o}var Rn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Mn(e,t,n,o){const r=e.resources.length,s=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const S=Math.floor(Math.random()*m.length);i.push(m[S]),m=m.slice(0,S).concat(m.slice(S+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,f=null,d=[],h=[];typeof o=="function"&&h.push(o);function g(){f&&(clearTimeout(f),f=null)}function y(){l==="pending"&&(l="aborted"),g(),d.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),d=[]}function E(m,S){S&&(h=[]),typeof m=="function"&&h.push(m)}function L(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:d.length,subscribe:E,abort:y}}function k(){l="failed",h.forEach(m=>{m(void 0,u)})}function x(){d.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),d=[]}function w(m,S,P){const A=S!=="success";switch(d=d.filter(_=>_!==m),l){case"pending":break;case"failed":if(A||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=P,k();return}if(A){u=P,d.length||(i.length?M():k());return}if(g(),x(),!e.random){const _=e.resources.indexOf(m.resource);_!==-1&&_!==e.index&&(e.index=_)}l="completed",h.forEach(_=>{_(P)})}function M(){if(l!=="pending")return;g();const m=i.shift();if(m===void 0){if(d.length){f=setTimeout(()=>{g(),l==="pending"&&(x(),k())},e.timeout);return}k();return}const S={status:"pending",resource:m,callback:(P,A)=>{w(S,P,A)}};d.push(S),a++,f=setTimeout(M,e.rotate),n(m,t,S.callback)}return setTimeout(M),L}function dt(e){const t={...Rn,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function r(c,l,a){const u=Mn(t,c,l,(f,d)=>{o(),a&&a(f,d)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:r,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function Fe(){}const pe=Object.create(null);function Nn(e){if(!pe[e]){const t=ce(e);if(!t)return;const n=dt(t),o={config:t,redundancy:n};pe[e]=o}return pe[e]}function pt(e,t,n){let o,r;if(typeof e=="string"){const s=we(e);if(!s)return n(void 0,424),Fe;r=s.send;const i=Nn(e);i&&(o=i.redundancy)}else{const s=Pe(e);if(s){o=dt(s);const i=e.resources?e.resources[0]:"",c=we(i);c&&(r=c.send)}}return!o||!r?(n(void 0,424),Fe):o.query(t,r,n)().abort}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const o in D)it(o,r=>{const s=r.data;return r.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Vn(e,t){Te||ct();function n(o){let r;if(!D[o]||!(r=st(o)))return;const s=nt[o];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ve(r),!ye(r,i+1))return;const c={cached:Math.floor(Date.now()/rt),provider:e.provider,data:t};return je(r,U+i.toString(),JSON.stringify(c))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ve(){}function zn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Dn(e)}))}function $n(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:o}=e,r=e.iconsToLoad;delete e.iconsToLoad;let s;if(!r||!(s=we(n)))return;s.prepare(n,o,r).forEach(c=>{pt(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=_e(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(f=>{u.delete(f)}),Vn(e,l)}catch(a){console.error(a)}zn(e)})})}))}const Un=e=>{const n=C(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Ae=(e,t)=>{const n=Bn(e,!0,ln()),o=An(n);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,Ve)}),()=>{l=!1}}const r=Object.create(null),s=[];let i,c;return o.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(C(a,u));const f=r[a]||(r[a]=Object.create(null));f[u]||(f[u]=[])}),o.pending.forEach(l=>{const{provider:a,prefix:u,name:f}=l,d=C(a,u),h=d.pendingIcons||(d.pendingIcons=new Set);h.has(f)||(h.add(f),r[a][u].push(f))}),s.forEach(l=>{const{provider:a,prefix:u}=l;r[a][u].length&&$n(l,r[a][u])}),t?Ln(t,o,s):Ve},Hn=e=>new Promise((t,n)=>{const o=typeof e=="string"?R(e,!0):e;if(!o){n(e);return}Ae([o||e],r=>{if(r.length&&o){const s=q(o);if(s){t({...H,...s});return}}n(e)})});function mt(e,t){const n={...e};for(const o in t){const r=t[o],s=typeof r;o in Ze?(r===null||r&&(s==="string"||s==="number"))&&(n[o]=r):s===typeof n[o]&&(n[o]=o==="rotate"?r%4:r)}return n}const ae={...et,inline:!1},me="iconify",Se="iconify-inline",j="iconifyData"+Date.now();let O=[];function Q(e){for(let t=0;t<O.length;t++){const n=O[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function ht(e,t=!1){let n=Q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},O.push(n),n)}function qn(){if(document.documentElement)return ht(document.documentElement);O.push({node:()=>document.documentElement})}function Qn(e){O=O.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function G(){return O}function Gn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let z=null;const Wn={childList:!0,subtree:!0,attributes:!0};function gt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,z&&z(e)}))}function Kn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let o=0;o<t.length;o++){const r=t[o];if(r.addedNodes&&r.addedNodes.length>0||r.type==="attributes"&&r.target[j]!==void 0){n.paused||gt(e);return}}}function bt(e,t){e.observer.instance.observe(t,Wn)}function re(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(Kn.bind(null,e)),bt(e,n),t.paused||gt(e))}function ze(){G().forEach(re)}function yt(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 Jn(e){const t=z!==null;if(z!==e&&(z=e,t&&G().forEach(yt)),t){ze();return}Gn(ze)}function Ie(e){(e?[e]:G()).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 Xn(e){if(e){const t=Q(e);t&&Ie(t)}else Ie()}function ke(e){(e?[e]:G()).forEach(t=>{if(!t.observer){re(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const o=typeof t.node=="function"?t.node():t.node;if(o)n.instance?bt(t,o):re(t);else return}})}function Yn(e){if(e){const t=Q(e);t&&ke(t)}else ke()}function vt(e,t=!1){const n=ht(e,t);return re(n),n}function xt(e){const t=Q(e);t&&(yt(t),Qn(e))}function Zn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,o=t.customisations;for(const r in ae)if(n[r]!==o[r])return!0;return!1}function eo(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:o(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/r,s%1===0?o(s):0)}}return t}const to=/[\s,]+/;function no(e,t){t.split(to).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const oo=["width","height"],ro=["inline","hFlip","vFlip"];function so(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function io(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&R(t,!0);if(!n)return null;const o={...ae,inline:e.classList&&e.classList.contains(Se)};oo.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(o[c]=l)});const r=e.getAttribute("data-rotate");typeof r=="string"&&(o.rotate=eo(r));const s=e.getAttribute("data-flip");typeof s=="string"&&no(o,s),ro.forEach(c=>{const l="data-"+c,a=so(e.getAttribute(l),l);typeof a=="boolean"&&(o[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:o,mode:i}}const co="svg."+me+", i."+me+", span."+me+", i."+Se+", span."+Se;function ao(e){const t=[];return e.querySelectorAll(co).forEach(n=>{const o=n[j]||n.tagName.toLowerCase()!=="svg"?io(n):null;o&&t.push({node:n,props:o})}),t}function wt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let $;function lo(){try{$=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{$=null}}function uo(e){return $===void 0&&lo(),$?$.createHTML(e):e}function St(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function It(e,t,n,o){const r=e.classList;if(o){const i=o.classList;Array.from(i).forEach(c=>{r.add(c)})}const s=[];return t.forEach(i=>{r.contains(i)?n.has(i)&&s.push(i):(r.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||r.remove(i)}),s}function kt(e,t,n){const o=e.style;(n||[]).forEach(s=>{o.removeProperty(s)});const r=[];for(const s in t)o.getPropertyValue(s)||(r.push(s),o.setProperty(s,t[s]));return r}function Et(e,t,n){let o;try{o=document.createElement("span")}catch{return e}const r=t.customisations,s=se(n,r),i=e[j],c=wt(tt(s.body),{"aria-hidden":"true",role:"img",...s.attributes});o.innerHTML=uo(c);const l=o.childNodes[0],a=e.attributes;for(let g=0;g<a.length;g++){const y=a.item(g),E=y.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,y.value)}const u=St(t.icon),f=It(l,u,new Set(i&&i.addedClasses),e),d=kt(l,r.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:f,addedStyles:d};return l[j]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function fo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function po(e){return"data:image/svg+xml,"+fo(e)}function mo(e){return'url("'+po(e)+'")'}const ho={display:"inline-block"},Ee={"background-color":"currentColor"},_t={"background-color":"transparent"},$e={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ue={"-webkit-mask":Ee,mask:Ee,background:_t};for(const e in Ue){const t=Ue[e];for(const n in $e)t[e+"-"+n]=$e[n]}function He(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function go(e,t,n,o){const r=t.customisations,s=se(n,r),i=s.attributes,c=e[j],l=wt(s.body,{...i,width:n.width+"",height:n.height+""}),a=St(t.icon),u=It(e,a,new Set(c&&c.addedClasses)),d={"--svg":mo(l),width:He(i.width),height:He(i.height),...ho,...o?Ee:_t};r.inline&&(d["vertical-align"]="-0.125em");const h=kt(e,d,c&&c.addedStyles),g={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[j]=g,e}let J=!1;function bo(){J||(J=!0,setTimeout(()=>{J&&(J=!1,B())}))}function B(e,t=!1){const n=Object.create(null);function o(r,s){const{provider:i,prefix:c,name:l}=r,a=C(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!Un(r)){const f=n[i]||(n[i]=Object.create(null));(f[c]||(f[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:G()).forEach(r=>{const s=typeof r.node=="function"?r.node():r.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,f){if(c||(c=!0,Ie(r)),a.tagName.toUpperCase()!=="SVG"){const d=u.mode,h=d==="mask"||(d==="bg"?!1:d==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){go(a,u,{...H,...f},h);return}}Et(a,u,f)}ao(s).forEach(({node:a,props:u})=>{const f=a[j];if(!f){const{status:h,icon:g}=o(u.icon,!0);if(g){l(a,u,g);return}i=i||h==="loading",a[j]={...u,status:h};return}let d;if(Zn(f,u)){if(d=o(u.icon,f.name!==u.name),!d.icon){i=i||d.status==="loading",Object.assign(f,{...u,status:d.status});return}}else{if(f.status!=="loading")return;if(d=o(u.icon,!1),!d.icon){f.status=d.status;return}}l(a,u,d.icon)}),r.temporary&&!i?xt(s):t&&i?vt(s,!0):c&&r.observer&&ke(r)});for(const r in n){const s=n[r];for(const i in s){const c=s[i];Ae(Array.from(c).map(l=>({provider:r,prefix:i,name:l})),bo)}}}function yo(e){const t=Q(e);t?B(t):B({node:e,temporary:!0},!0)}function Ct(e,t,n=!1){const o=q(e);if(!o)return null;const r=R(e),s=mt(ae,t||{}),i=Et(document.createElement("span"),{name:e,icon:r,customisations:s},o);return n?i.outerHTML:i}function vo(){return"3.1.1"}function xo(e,t){return Ct(e,t,!1)}function wo(e,t){return Ct(e,t,!0)}function So(e,t){const n=q(e);if(!n)return null;const o=mt(ae,t||{});return se(n,o)}function Io(e){e?yo(e):B()}if(typeof document<"u"&&typeof window<"u"){qn();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(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ye(o))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Jn(B),B()})}function ko(e,t){at(e,t!==!1)}function Eo(e){at(e,!0)}lt("",Pn);if(typeof document<"u"&&typeof window<"u"){ct();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const o="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;ut(n,r)||console.error(o)}catch{console.error(o)}}}}const _o={getAPIConfig:ce,setAPIModule:lt,sendAPIQuery:pt,setFetch:In,getFetch:kn,listAPIProviders:wn},Co={_api:_o,addAPIProvider:ut,loadIcons:Ae,loadIcon:Hn,iconExists:fn,getIcon:dn,listIcons:an,addIcon:un,addCollection:Ye,replaceIDs:tt,calculateSize:ge,buildIcon:se,getVersion:vo,renderSVG:xo,renderHTML:wo,renderIcon:So,scan:Io,observe:vt,stopObserving:xt,pauseObserver:Xn,resumeObserver:Yn,enableCache:ko,disableCache:Eo};try{self.Iconify===void 0&&(self.Iconify=Co)}catch{}const To=e=>{const t={};let n=null;return T.forEachBlockletSync(e,o=>{t[o.meta.bundleDid]?n=T.getDisplayName(o,!0):o.meta.bundleDid&&(t[o.meta.bundleDid]=!0)}),n},jo=(e,t,n)=>{var s;const{hostname:o,href:r}=e;if(!t)return r;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(o);if(!c)return r;const l=c[0],u=((((s=t.site)==null?void 0:s.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith(F.DEFAULT_DID_DOMAIN))||"").replace(`.${F.DEFAULT_DID_DOMAIN}`,"");return u?r.replace(o,`${u}-${l}.${F.DEFAULT_IP_DOMAIN_SUFFIX}`):r}return r.replace(t.meta.bundleDid,t.appPid)};function Tt(){const{t:e}=qe(),{api:t}=Je(),{blocklet:n}=Qt(),{inService:o}=jt(),[r,s]=b.useState(!1),[i,c]=b.useState(5),l=n&&n.structVersion!==F.APP_STRUCT_VERSION,a=()=>{try{if(n.status==="running"){X.error(e("blocklet.migrate.tip.running"));return}const d=To(n);if(d){X.error(e("blocklet.migrate.tip.duplicate",{name:d}));return}s(!0)}catch(d){X.error(We(d))}},u=()=>{const d=jo(window.location,n,o);setTimeout(()=>{window.location.href=d},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},f=()=>s(!1);return[l&&p.jsxs(Qe,{severity:"warning",style:{margin:"12px 0"},children:[p.jsxs(ee,{display:"flex",alignItems:"center",children:[p.jsx(Ge,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),p.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(d=>p.jsx(ee,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${d}`)},d))]},"alert"),n&&p.jsx(Pt,{popup:!0,open:r,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:At(n,!0),title:T.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:f},"connect")]}Tt.propTypes={};const Po=b.lazy(()=>I(()=>import("./overview-mjgztvpK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)),Ao=b.lazy(()=>I(()=>import("./domains-BTKIPvpd.js"),__vite__mapDeps([15,1,2,16,5,17,18,19,20,10,21,22,23,24,25,26,27,28,12,29,30,31,32,33,9,34,35,36,37]),import.meta.url)),Do=b.lazy(()=>I(()=>import("./index-DZOoKZ79.js"),__vite__mapDeps([38,1,2,39,40,41,42,43,21,22,5,44,45,46,47,48,49,50,51,10,27,11,12,9,4,6,7,52,53,16,54,37,19,55,56,57,58,23,59,60,61,30,62,63,64,65,66,67,68,69,70,71,72,29]),import.meta.url)),Oo=b.lazy(()=>I(()=>import("./appearance-DWpHxRQY.js"),__vite__mapDeps([73,1,2,10]),import.meta.url)),Lo=b.lazy(()=>I(()=>import("./config-navigation-D-Xbnbfs.js"),__vite__mapDeps([74,1,2,7,75,76,77,10,54,37,19,55,56,57,58,23,16,59,60,78,79,33,43,80,81,82,52,12,83,36,84,8,3,85,47,48,68,69,70,21,22,53,67,11,46,14,49,50,41,18]),import.meta.url)),Bo=b.lazy(()=>I(()=>import("./index-uP4E64Y9.js"),__vite__mapDeps([86,1,2,54,37,19,55,56,57,58,23,16,59,60,87,9,43,68,69,70,47,48,12,21,22,88,89,41,90,42,91,29,92,72,71]),import.meta.url)),Ro=b.lazy(()=>I(()=>import("./audit-logs-Bqt3mjwc.js"),__vite__mapDeps([93,16,1,2,60,57,58,69,94,95,87,11,10,12]),import.meta.url)),Mo=b.lazy(()=>I(()=>import("./index-V69Rm1MZ.js").then(e=>e.i),__vite__mapDeps([96,1,2,54,37,19,55,56,57,58,23,16,59,60,43,11,10,12,85,47,48,21,22,97,75,30,45,98,99]),import.meta.url)),No=b.lazy(()=>I(()=>import("./index-BNQdv6p6.js").then(e=>e.i),__vite__mapDeps([100,1,2,30,101,54,37,19,55,56,57,58,23,16,59,60,79,33,43,80,81,82,52,12,83,36,84,8,3,85,47,48,11,10,21,22,27,92,72,71,9,102,103,6,24,25,87]),import.meta.url)),Fo=b.lazy(()=>I(()=>import("./service-R5kw_ant.js"),__vite__mapDeps([104,1,2,105,78,91,56,72,43,30,23,58,106,42,90,57,46]),import.meta.url)),Vo=b.lazy(()=>I(()=>import("./index-Ct3Cv88N.js"),__vite__mapDeps([107,1,2,30,16,68,69,59,23,70,47,48,12,21,22,61,52,10,106,105,78,91,56,72,43,58,42,90,57,46,27,108,109,110,49,50,102,17,111,44,103,26,112,113,114,115,116,83,36,84,8,3,85,13,14,117,94,95,39,40,41,97,75,118,119,76,9,81,120,34,35,66,28,24,25,121,11]),import.meta.url)),zo=b.lazy(()=>I(()=>import("./log-DIqg0luc.js"),__vite__mapDeps([122,1,2,69,123,47,48,124,50]),import.meta.url)),$o=b.lazy(()=>I(()=>import("./runtime-DEyoNLVz.js"),__vite__mapDeps([125,1,2,54,37,19,55,56,57,58,23,16,59,60,10,84,126,127,28,12,99,48]),import.meta.url)),Uo=b.lazy(()=>I(()=>import("./traffic-BDBSkRtU.js").then(e=>e.t),__vite__mapDeps([89,1,2,41,90,42,91,29,92,19,72,71]),import.meta.url)),Ho=b.lazy(()=>I(()=>import("./index-BNPQGzJY.js"),__vite__mapDeps([128,1,2,43,10,66,83,36,84,8,3,85,47,48,14,116,13,103,9,127,54,37,19,55,56,57,58,23,16,59,60,25,68,69,70,12,21,22,61,52,98]),import.meta.url)),qo=b.lazy(()=>I(()=>import("./index-CIibWbQo.js"),__vite__mapDeps([129,54,1,2,37,19,55,56,57,58,23,16,59,60,11,10,12,53,64,65,110,50,115,24,25,130]),import.meta.url)),Qo=({children:e})=>e;function Go(){var A,_,De;const e=Dt(),{tab:t="overview"}=Ke(),{did:n,blocklet:o,error:r,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Kt(),{refresh:l}=Ot(),{t:a}=qe(),{session:u}=Je(),f=Lt(()=>{var v;return((v=u.user)==null?void 0:v.role)&&Bt.includes(u.user.role)},[u]),d=b.useCallback(()=>p.jsx(Ro,{scope:n}),[n]),h=b.useCallback(()=>f?p.jsx(Bo,{blocklet:o}):p.jsx(Gt,{status:403}),[o,f]),g=((A=o==null?void 0:o.environments.find(v=>v.key==="BLOCKLET_APP_URL"))==null?void 0:A.value)||window.location.origin,y=v=>zt(v,g),E=v=>{e(`/blocklets/${n}/${v}`)},L=v=>{v&&i(v),c()},k=!o||W(o.status)?[]:T.getAppMissingConfigs(o);let x=null;const w=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:p.jsx(Rt,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!k.length,children:a("common.components")}),value:"components"}];if(r)x=p.jsxs(p.Fragment,{children:[p.jsx(Qe,{severity:"error",variant:"icon",children:We(r)}),p.jsx(Ge,{onClick:()=>c(),children:p.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(o){const v={overview:p.jsx(Po,{}),domains:p.jsx(Ao,{}),configuration:Do,appearance:Oo,navigation:Lo,services:Fo,members:p.jsx(No,{type:"blocklet",createPassportSvg:y}),passports:Mo,components:Vo,"audit-logs":d,notifications:h,logs:zo,runtime:p.jsx($o,{}),traffic:p.jsx(Uo,{client:s,did:n}),didSpaces:p.jsx(Ho,{}),webhooks:p.jsx(qo,{})};t==="configuration"&&W(o.status)&&E("overview"),w.push({label:a("common.domains"),value:"domains"}),W(o.status)||(w.push({label:a("common.members"),value:"members"}),w.push({label:a("team.member.passports"),value:"passports"})),W(o.status)||(w.push({label:a("common.configuration"),value:"configuration"}),w.push({label:a("common.appearance"),value:"appearance"})),w.push({label:a("common.auditLogs"),value:"audit-logs"}),f&&w.push({label:a("common.notificationRecords"),value:"notifications"}),o&&((_=o.children)!=null&&_.length)&&o.structVersion===F.APP_STRUCT_VERSION&&w.push({label:a("common.logs"),value:"logs"}),w.push({label:a("common.configNavigation"),value:"navigation"}),w.push({label:a("common.runtime"),value:"runtime"}),w.push({label:a("common.traffic"),value:"traffic"}),w.push({label:a("storage.spaces.title"),value:"didSpaces"}),["admin","owner"].includes((De=u.user)==null?void 0:De.role)&&w.push({label:"Webhooks",value:"webhooks"}),T.getBlockletServices(o).length&&w.splice(2,0,{label:a("blocklet.services"),value:"services"});const ue=v[t]||v.overview;x=p.jsxs(Ht,{type:"components",children:[!T.isExternalBlocklet(o)&&p.jsx($t,{tabs:w,current:t,onChange:E,scrollButtons:"auto"}),p.jsx("div",{className:"page-content",children:p.jsx(b.Suspense,{fallback:p.jsx(Oe,{relative:"parent",children:p.jsx(Le,{})}),children:b.isValidElement(ue)?ue:p.jsx(ue,{blocklet:o,onUpdate:L,createPassportSvg:y})})})]})}else x=p.jsx(Oe,{relative:"parent",children:p.jsx(Le,{})});const M=()=>{},m=({action:v,error:le})=>{if(le){X.error(le.message);return}v==="remove"?(l(),e("/blocklets")):c()},S=w.find(v=>v.value===t),P=o?Jt:Qo;return p.jsx(P,{teamDid:n,children:p.jsxs(Wo,{children:[p.jsxs(Yt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[p.jsx(Mt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),p.jsx(Nt,{to:`/blocklets/${n}/overview`,style:v=>v?{color:"inherit"}:{},children:a("common.detail")}),p.jsx(fe,{color:"textSecondary",children:S?S.breadcrumbsLabel||S.label:""})]}),p.jsxs(fe,{component:"div",className:"page-header",children:[p.jsxs(fe,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[o?p.jsx(Ft,{blocklet:o,style:{marginRight:16}}):null,o?p.jsxs(ee,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[p.jsx(ee,{children:T.getDisplayName(o)}),(o==null?void 0:o.status)!=="unknown"&&p.jsx(Ut,{size:"12px",status:o.status,source:o.source,progress:o.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),p.jsx(Xt,{permission:"mutate_blocklets",children:!!o&&!T.isExternalBlocklet(o)&&p.jsx(qt,{className:"page-actions",blocklet:o,onStart:M,onComplete:m,variant:"group"})})]}),p.jsx(Tt,{}),x]})})}function dr(){const{did:e}=Ke();return e?p.jsx(Wt,{did:e,children:p.jsx(Go,{})}):null}const Wo=Vt.main`
13
13
  .page-header {
14
14
  display: flex;
15
15
  justify-content: space-between;
@@ -1 +1 @@
1
- import{a as _}from"./codemirror.es-0rTHjVK9.js";import"./index-BkTRcS0m.js";import"./index-Db1NmfnY.js";var O=Object.defineProperty,m=(g,v)=>O(g,"name",{value:v,configurable:!0});function N(g,v){return v.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(c){if(c!=="default"&&!(c in g)){var d=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(g,c,d.get?d:{enumerable:!0,get:function(){return e[c]}})}})}),Object.freeze(g)}m(N,"_mergeNamespaces");var b={exports:{}};(function(g,v){(function(e){e(_.exports)})(function(e){function c(f,u,n){var o=f.getWrapperElement(),l;return l=o.appendChild(document.createElement("div")),n?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof u=="string"?l.innerHTML=u:l.appendChild(u),e.addClass(o,"dialog-opened"),l}m(c,"dialogDiv");function d(f,u){f.state.currentNotificationClose&&f.state.currentNotificationClose(),f.state.currentNotificationClose=u}m(d,"closeNotification"),e.defineExtension("openDialog",function(f,u,n){n||(n={}),d(this,null);var o=c(this,f,n.bottom),l=!1,r=this;function i(t){if(typeof t=="string")a.value=t;else{if(l)return;l=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),r.focus(),n.onClose&&n.onClose(o)}}m(i,"close");var a=o.getElementsByTagName("input")[0],s;return a?(a.focus(),n.value&&(a.value=n.value,n.selectValueOnOpen!==!1&&a.select()),n.onInput&&e.on(a,"input",function(t){n.onInput(t,a.value,i)}),n.onKeyUp&&e.on(a,"keyup",function(t){n.onKeyUp(t,a.value,i)}),e.on(a,"keydown",function(t){n&&n.onKeyDown&&n.onKeyDown(t,a.value,i)||((t.keyCode==27||n.closeOnEnter!==!1&&t.keyCode==13)&&(a.blur(),e.e_stop(t),i()),t.keyCode==13&&u(a.value,t))}),n.closeOnBlur!==!1&&e.on(o,"focusout",function(t){t.relatedTarget!==null&&i()})):(s=o.getElementsByTagName("button")[0])&&(e.on(s,"click",function(){i(),r.focus()}),n.closeOnBlur!==!1&&e.on(s,"blur",i),s.focus()),i}),e.defineExtension("openConfirm",function(f,u,n){d(this,null);var o=c(this,f,n&&n.bottom),l=o.getElementsByTagName("button"),r=!1,i=this,a=1;function s(){r||(r=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),i.focus())}m(s,"close"),l[0].focus();for(var t=0;t<l.length;++t){var p=l[t];(function(y){e.on(p,"click",function(h){e.e_preventDefault(h),s(),y&&y(i)})})(u[t]),e.on(p,"blur",function(){--a,setTimeout(function(){a<=0&&s()},200)}),e.on(p,"focus",function(){++a})}}),e.defineExtension("openNotification",function(f,u){d(this,i);var n=c(this,f,u&&u.bottom),o=!1,l,r=u&&typeof u.duration<"u"?u.duration:5e3;function i(){o||(o=!0,clearTimeout(l),e.rmClass(n.parentNode,"dialog-opened"),n.parentNode.removeChild(n))}return m(i,"close"),e.on(n,"click",function(a){e.e_preventDefault(a),i()}),r&&(l=setTimeout(i,r)),i})})})();var E=b.exports,j=Object.freeze(N({__proto__:null,[Symbol.toStringTag]:"Module",default:E},[b.exports]));export{b as a,j as d};
1
+ import{a as _}from"./codemirror.es-Bj74ewYY.js";import"./index-CDZ-Hu0o.js";import"./index-F-rIOXkO.js";var O=Object.defineProperty,m=(g,v)=>O(g,"name",{value:v,configurable:!0});function N(g,v){return v.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(c){if(c!=="default"&&!(c in g)){var d=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(g,c,d.get?d:{enumerable:!0,get:function(){return e[c]}})}})}),Object.freeze(g)}m(N,"_mergeNamespaces");var b={exports:{}};(function(g,v){(function(e){e(_.exports)})(function(e){function c(f,u,n){var o=f.getWrapperElement(),l;return l=o.appendChild(document.createElement("div")),n?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof u=="string"?l.innerHTML=u:l.appendChild(u),e.addClass(o,"dialog-opened"),l}m(c,"dialogDiv");function d(f,u){f.state.currentNotificationClose&&f.state.currentNotificationClose(),f.state.currentNotificationClose=u}m(d,"closeNotification"),e.defineExtension("openDialog",function(f,u,n){n||(n={}),d(this,null);var o=c(this,f,n.bottom),l=!1,r=this;function i(t){if(typeof t=="string")a.value=t;else{if(l)return;l=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),r.focus(),n.onClose&&n.onClose(o)}}m(i,"close");var a=o.getElementsByTagName("input")[0],s;return a?(a.focus(),n.value&&(a.value=n.value,n.selectValueOnOpen!==!1&&a.select()),n.onInput&&e.on(a,"input",function(t){n.onInput(t,a.value,i)}),n.onKeyUp&&e.on(a,"keyup",function(t){n.onKeyUp(t,a.value,i)}),e.on(a,"keydown",function(t){n&&n.onKeyDown&&n.onKeyDown(t,a.value,i)||((t.keyCode==27||n.closeOnEnter!==!1&&t.keyCode==13)&&(a.blur(),e.e_stop(t),i()),t.keyCode==13&&u(a.value,t))}),n.closeOnBlur!==!1&&e.on(o,"focusout",function(t){t.relatedTarget!==null&&i()})):(s=o.getElementsByTagName("button")[0])&&(e.on(s,"click",function(){i(),r.focus()}),n.closeOnBlur!==!1&&e.on(s,"blur",i),s.focus()),i}),e.defineExtension("openConfirm",function(f,u,n){d(this,null);var o=c(this,f,n&&n.bottom),l=o.getElementsByTagName("button"),r=!1,i=this,a=1;function s(){r||(r=!0,e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),i.focus())}m(s,"close"),l[0].focus();for(var t=0;t<l.length;++t){var p=l[t];(function(y){e.on(p,"click",function(h){e.e_preventDefault(h),s(),y&&y(i)})})(u[t]),e.on(p,"blur",function(){--a,setTimeout(function(){a<=0&&s()},200)}),e.on(p,"focus",function(){++a})}}),e.defineExtension("openNotification",function(f,u){d(this,i);var n=c(this,f,u&&u.bottom),o=!1,l,r=u&&typeof u.duration<"u"?u.duration:5e3;function i(){o||(o=!0,clearTimeout(l),e.rmClass(n.parentNode,"dialog-opened"),n.parentNode.removeChild(n))}return m(i,"close"),e.on(n,"click",function(a){e.e_preventDefault(a),i()}),r&&(l=setTimeout(i,r)),i})})})();var E=b.exports,j=Object.freeze(N({__proto__:null,[Symbol.toStringTag]:"Module",default:E},[b.exports]));export{b as a,j as d};
@@ -0,0 +1,24 @@
1
+ import{c2 as Rt,c1 as St,bY as At,r as j,c3 as Pt,c0 as kt,b_ as Me,j as e,c5 as Tt,c6 as It,fM as Ve,a3 as X,i9 as Et,fL as qt,cY as Ge,c_ as Lt,m as P,bs as Mt,cv as Z,ht as _t,D as Ft,M as x,C as $,bb as $t,k as A,X as K,o as J,am as ee,E as te,b5 as Ye,P as s,ia as Bt,b0 as Qe,N as Nt,bq as M,_ as zt,b as _e,aB as F,af as xe,y as L,B as ne,aW as Ut,U as Ze,aI as Wt,ab as Ot,aP as Ht,aQ as Vt,b6 as Gt,h as Yt,b7 as Fe,b4 as Qt,n as Zt,bE as Xt,i6 as Xe,b8 as Ke,cp as de,aZ as O,e7 as Je,ib as Kt,b9 as Jt,gk as et,gQ as he,ic as tt,id as en,ie as tn,c$ as nt,ig as nn,ih as sn,bk as on,L as rn,eS as W,H as ge,hD as an,a_ as ln,Z as $e,t as cn,aV as dn,Y as st,ff as Be,ii as un}from"./index-F-rIOXkO.js";import{E as mn}from"./index-lKfM6BZT.js";import{u as pn}from"./index-CilDVWw4.js";import{d as fn,a as xn}from"./VerifiedUser-89OpS-O0.js";import{L as it}from"./LoadingButton-Cq4u8ov0.js";import{u as hn}from"./useAsync-BHK_lRzo.js";import{u as se}from"./blocklet-C1daQzB9.js";import{w as ot}from"./permission-Bvs2yqp1.js";import{d as rt}from"./Delete-CoHU08w5.js";import{A as gn}from"./actions-4GlzmDRv.js";import{D as Dn}from"./delete-confirm-DAmIANxQ.js";import{D as Ne}from"./status-D-4k6JPe.js";import{C as yn}from"./CardContent-7kMksoLZ.js";import{d as jn}from"./Add-jEZFTiQU.js";import{d as bn}from"./CallMerge-Cglc7qj4.js";import{a as vn}from"./toLower-BZi61gAb.js";import{u as Cn}from"./use-mobile-d8ioRwmr.js";import{I as wn}from"./index-I20LchFz.js";import{g as Rn,p as ze}from"./util-DJYSIyMs.js";import{d as Sn}from"./OpenInNew-BjHMRNtt.js";import{C as An}from"./click-to-copy-CD44pMYS.js";import{T as Pn,d as kn,h as Ue,a as Tn}from"./TableRow-CPvAPoKO.js";import"./useThemeProps-DAMDTLAO.js";import"./session-DUPXykbA.js";import"./MoreHoriz-DzKDzUVs.js";import"./url-evaluation-CiLjXBIq.js";import"./is-path-prefix-equal-BjsJ5xBH.js";function In(n){return Rt("MuiTableContainer",n)}St("MuiTableContainer",["root"]);const En=["className","component"],qn=n=>{const{classes:t}=n;return It({root:["root"]},In,t)},Ln=At("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(n,t)=>t.root})({width:"100%",overflowX:"auto"}),Mn=j.forwardRef(function(t,i){const o=Pt({props:t,name:"MuiTableContainer"}),{className:r,component:a="div"}=o,d=kt(o,En),l=Me({},o,{component:a}),u=qn(l);return e.jsx(Ln,Me({ref:i,as:a,className:Tt(u.root,r),ownerState:l},d))}),_n=Ve({});_n.interceptors.request.use(n=>{const t=window.blocklet?window.blocklet.prefix:"/";return n.baseURL=t||"",n.url=X("/api",String(n.url)),n.timeout=2e5,n.params=n.params||{},new URLSearchParams(n.url.split("?")[1]).has("locale")||(n.params.locale=Et()),n},n=>Promise.reject(n));const at=(...n)=>Ve(...n),Fn=(n,t)=>t?n?[n,...Array.isArray(t)?t:[t]]:t:n,$n=(n,{width:t=600,height:i=700,name:o="did-domain:popup"}={})=>{const r=window.screenX+(window.innerWidth-t)/2,a=window.screenY+(window.innerHeight-i)/2,d=[`left=${r}`,`top=${a}`,`width=${t}`,`height=${i}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],l=window.open("",o,d.join(","));if(l===null)throw new Error("Failed to open popup");return l.location.href=qt(n,{opener:window.location.origin}),l},Bn="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",lt=async n=>{var u;if(!n||!(n!=null&&n.trim()))return null;const t=at(),i=new URL(n);i.pathname="__blocklet__.js",i.searchParams.set("type","json");const{data:o}=await t.get(i.toString()),r=(u=o==null?void 0:o.componentMountPoints)==null?void 0:u.find(h=>h.did===Bn),a=new URL(n);a.pathname=r==null?void 0:r.mountPoint;const d=a.toString(),l=X(d,"/api");return{base:d,api:l}},Nn=Ge({buy:{button:{title:"Buy DID Domain"},status:{inProgress:"Please wait while we are processing your request, the domain will be automatically resolved to the current app after the purchase...",success:"Purchase completed!"},error:{failedToCreateSession:"Failed to create session"}}}),zn=Ge({buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),Un={zh:zn,en:Nn},Wn=async({didDomainURL:n,delegatee:t,delegateePk:i})=>{const o=await lt(n);if(!o)return null;const r=at({baseURL:o.api}),{data:a}=await r.post("/payment/session",{delegatee:t,delegateePk:i});return{sessionId:a.sessionId,baseURL:o.base}};function ct({delegatee:n,delegateePk:t,didDomainURL:i,locale:o,title:r,onSuccess:a,...d}){const{t:l}=P(),[u,h]=pn({currentState:1}),f=j.useRef(null),g=Mt(async()=>{const c=await Wn({didDomainURL:i,delegatee:n,delegateePk:t});return c},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(c){console.error(c)}}),y=Z(c=>{var D,v,w,E;c.data.type==="didDomain.success"&&(a==null||a({nftDid:(D=c.data)==null?void 0:D.nftDid,domain:(v=c.data)==null?void 0:v.domain,chainHost:(w=c.data)==null?void 0:w.chainHost}),(E=f.current)==null||E.close(),f.current=null,h({currentState:4}),setTimeout(()=>{h({currentState:8})},2e3))});_t(()=>{var c;try{window.removeEventListener("message",y),(c=f.current)==null||c.close(),f.current=null}catch(D){console.warn("Failed to close popup",D)}});const p=Z(()=>{h({currentState:1})}),b=Z(()=>{if(h({currentState:2}),!g.data){console.error("Failed to create session");return}m({sessionId:g.data.sessionId,baseURL:g.data.baseURL})}),m=Z(({sessionId:c,baseURL:D})=>{window.addEventListener("message",y);const v=new URL(D);v.searchParams.set("sessionId",c),v.searchParams.set("locale",o),v.searchParams.set("embed","1"),f.current=$n(v.toString());const w=setInterval(()=>{var E;(E=f.current)!=null&&E.closed&&(clearInterval(w),p())},1e3);return()=>clearInterval(w)});return e.jsxs(e.Fragment,{children:[e.jsx(it,{loading:g.loading,onClick:b,variant:"contained",startIcon:e.jsx(fn,{}),...d,children:r||l("buy.button.title")}),e.jsxs(Ft,{fullWidth:!0,maxWidth:"xs",open:u.currentState>1&&u.currentState<8,onClose:p,children:[!g.error&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[u.currentState===2&&e.jsx($,{size:50}),u.currentState===4&&e.jsx($t,{sx:{color:"primary.main",fontSize:"5rem"}}),u.currentState===2&&e.jsx(A,{children:l("buy.status.inProgress")}),u.currentState===4&&e.jsx(A,{children:l("buy.status.success")})]}),g.error&&e.jsx(K,{severity:"error",children:l("buy.error.failedToCreateSession")})]})]})}const dt={onSuccess:()=>{},title:""};ct.defaultProps=dt;function ut(n){return e.jsx(Lt,{locale:n.locale,translations:Un,children:e.jsx(ct,{...n})})}ut.defaultProps=dt;function mt({nftDid:n,didDomainURL:t,locale:i,sx:o}){const{t:r}=P(),[a,d]=J({safeIframeRef:null,popoverAnchorEl:null}),l=j.useRef(null),u=ee(),h=te(u.breakpoints.down("md")),f=b=>{d({popoverAnchorEl:b.currentTarget})},g=()=>{d({popoverAnchorEl:null})},y=hn(async()=>{const b=await lt(t);return b?b.base:null});if(!y.value)return null;if(y.loading)return e.jsx($,{});const p=X(y.value,`/embed/domain?nft-did=${n}&locale=${i}`);return e.jsxs(e.Fragment,{children:[e.jsx(x,{component:"img",src:X(t,"/.well-known/service/blocklet/logo"),alt:"logo",width:16,height:16,onClick:f,sx:Fn({cursor:"pointer"},o)}),e.jsx(Ye,{id:"popover-info",open:!!a.popoverAnchorEl,anchorEl:a.popoverAnchorEl,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:l,title:r("common.subscription"),width:h?"320px":"400px",height:h?"600px":"680px",style:{border:0},src:p})})]})}mt.defaultProps={sx:{}};const On=n=>["waiting","creating","renewaling"].includes(n);function De(n){var S,k;const{t}=P(),[i,o]=j.useState(!1),{inService:r}=M(),[a,d]=j.useState(null),{siteId:l,domain:u,onAdd:h,children:f,did:g,issuing:y,setIssuing:p}=n,{api:b,ws:{useSubscription:m}}=M(),{mode:c,actions:{refreshDomainStatus:D}}=se(),v=zt(async()=>{const{cert:R}=await b.findCertificateByDomain({input:{domain:u,did:g}});return R}),w=(R,G)=>{R.domain===u&&(p(!1),o(!1),r&&c!=="setup"&&(G==="success"?L.success(t("setup.domain.genCertSuccess",{domain:R.domain})):G==="error"&&L.error(t("setup.domain.genCertFailed",{domain:R.domain,message:R.message}))))};if(j.useEffect(()=>{var R;v.loading||p(On((R=v.value)==null?void 0:R.status))},[v.loading,(S=v.value)==null?void 0:S.status,p]),m(_e.BlockletEvents.certError,R=>w(R,"error")),m(_e.BlockletEvents.certIssued,R=>{v.retry(),D(R.domain),w(R,"success")}),v.loading||((k=v.value)==null?void 0:k.status)==="normal")return"";const E=()=>{o(!1),d(null)},_=async()=>{o(!0);try{await b.issueLetsEncryptCert({input:{siteId:l,domain:u,did:g,inBlockletSetup:c==="setup"}}),h(),p(!0)}catch(R){console.error(R),p(!1)}finally{o(!1),d(null)}},N={title:t("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(K,{severity:"success",children:t("router.cert.genLetsEncryptCert.dnsTip")}),t("router.cert.genLetsEncryptCert.description")]}),confirm:t("common.confirm"),onConfirm:_,onCancel:E},ae=R=>{R.stopPropagation(),d(N)};return e.jsxs(e.Fragment,{children:[y?e.jsx(F,{title:t("router.cert.issuing"),children:e.jsx($,{size:13,style:{fontSize:"13px"}})}):f({loading:i,open:ae}),a&&e.jsx(xe,{color:"primary",title:a.title,description:a.description,confirm:a.confirm,params:a.params,onConfirm:a.onConfirm,onCancel:a.onCancel})]})}De.propTypes={domain:s.string.isRequired,did:s.string.isRequired,siteId:s.string.isRequired,onAdd:s.func,children:s.any,issuing:s.bool,setIssuing:s.func};De.defaultProps={onAdd:()=>{},children:null,issuing:!1,setIssuing:()=>{}};function ye(n){const{domain:t,domainStatus:i,...o}=n;return Bt(t)||!Qe(t)||Nt(i)||i!=null&&i.isHttps?"":e.jsx(De,{domain:t,...o})}ye.propTypes={domain:s.string.isRequired,domainStatus:s.shape({isHttps:s.bool}).isRequired,did:s.string.isRequired,onAdd:s.func,children:s.any,issuing:s.bool,setIssuing:s.func};ye.defaultProps={onAdd:()=>{},children:null,issuing:!1,setIssuing:()=>{}};function je(n){const{t}=P(),[i,o]=j.useState(!1),[r,a]=j.useState(null),{id:d,domain:l,children:u,teamDid:h,onDelete:f}=n,{api:g}=M(),y=()=>{o(!1),a(null)},p=async()=>{o(!0);try{await g.deleteDomainAlias({input:{id:d,domainAlias:l,teamDid:h}}),f==null||f(),await Ut(2e3)}catch(c){L.error(c.message)}finally{a(null),o(!1)}},b={keyName:l,title:t("router.domainAlias.delete.title"),description:t("router.domainAlias.delete.description",{domain:l}),confirmPlaceholder:t("router.domainAlias.delete.confirmPlaceholder",{domain:l}),confirm:t("common.delete"),onConfirm:p,onCancel:y},m=c=>{c.stopPropagation(),a(b)};return e.jsxs(e.Fragment,{children:[typeof u=="function"?u({loading:i,open:m}):e.jsxs(ne,{edge:"end",onClick:m,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[i?e.jsx($,{size:16}):e.jsx(rt,{style:{fontSize:16}}),t("common.delete")]}),r&&e.jsx(Dn,{keyName:r.keyName,title:r.title,description:r.description,confirmPlaceholder:r.confirmPlaceholder,confirm:r.confirm,params:r.params,onConfirm:r.onConfirm,onCancel:r.onCancel})]})}je.propTypes={id:s.string.isRequired,domain:s.string.isRequired,children:s.any,teamDid:s.string,onDelete:s.func};je.defaultProps={children:null,teamDid:"",onDelete:null};function be({site:n,domain:t,blocklet:i,onDelete:o}){const{t:r}=P(),a=t.value===window.location.hostname;return e.jsx(gn,{"data-cy":"domain-actions",size:"large",actions:[({close:d})=>{var l;return e.jsx(je,{id:n.id,domain:t.value,teamDid:(l=i==null?void 0:i.meta)==null?void 0:l.did,onDelete:o,children:({open:u})=>e.jsx(F,{title:a?r("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(Ze,{disabled:t.isProtected||a,dense:!0,onClick:h=>{d(),u(h)},"data-cy":"action-toggle-block",children:[e.jsx(Wt,{style:{minWidth:24,marginRight:8},children:e.jsx(rt,{})}),e.jsx(Ot,{primary:r("common.delete")})]},"remove")})})})}]})}be.propTypes={site:s.object.isRequired,domain:s.object.isRequired,blocklet:s.object.isRequired,onDelete:s.func};be.defaultProps={onDelete:()=>{}};var ve={},Hn=Vt;Object.defineProperty(ve,"__esModule",{value:!0});var pt=ve.default=void 0,Vn=Hn(Ht()),Gn=e;pt=ve.default=(0,Vn.default)((0,Gn.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"}),"PrivacyTip");const ie=s.shape({href:s.string,accessibility:s.shape({loading:s.bool,accessible:s.bool}),domainStatus:s.shape({isHttps:s.bool,matchedCert:s.object}),dns:s.shape({resolved:s.bool,ip:s.string})});function Ce({certificate:n}){const[t,i]=j.useState(null),o=M(),{t:r,locale:a}=P(),d=h=>{i(h.currentTarget)},l=()=>{i(null)},u=!!t;return e.jsxs(e.Fragment,{children:[e.jsx(xn,{"aria-owns":u?"mouse-over-popover":void 0,onMouseEnter:d,onMouseLeave:l,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(Ye,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:u,anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:l,disableRestoreFocus:!0,children:e.jsx(Gt,{children:e.jsxs(yn,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${o.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(A,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(A,{component:"div",style:{fontWeight:"bold"},children:n.domain}),e.jsx(A,{component:"div",children:`${r("common.issuer")}: ${Yt(n,"issuer.commonName","")}`}),e.jsx(A,{component:"div",children:`${r("router.cert.issuedOn")}: ${Fe(n.validFrom,a)}`}),e.jsx(A,{component:"div",children:`${r("router.cert.expiryOn")}: ${Fe(n.validTo,a)}`})]})]})})})]})}Ce.propTypes={certificate:s.object};Ce.defaultProps={certificate:{}};function V({domain:n,filters:t}){const{t:i}=P(),{value:o,domainStatus:r}=n;if(!Qe(o))return null;let a=null,d=null;const{isHttps:l,matchedCert:u}=r;if(!Qt(o)){const{dns:{ip:f,isDnsResolved:g,isCnameMatch:y}={}}=r;g&&y||f==="127.0.0.1"?a=e.jsx(F,{title:i("router.domain.verify.ok"),children:e.jsx(Ne,{color:"success"})}):a=e.jsx(F,{title:i("router.domain.verify.notResolved"),children:e.jsx(Ne,{color:"error"})})}l?d=e.jsx(Ce,{certificate:u}):d=e.jsx(F,{title:i("router.domain.https.bad"),children:e.jsx(pt,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const h=t.map(f=>f==="domain"?a:f==="http"?d:null);return j.createElement(j.Fragment,null,...h)}V.propTypes={domain:ie.isRequired,filters:s.array};V.defaultProps={filters:["domain","http"]};const Yn=ot(oe,"mutate_blocklets"),Qn=ot(oe,"",Xt);function Zn(n){const{inService:t}=M(),{blocklet:i,loadingRuntimeInfo:o}=se();let r=Yn;return t&&(r=Qn),e.jsx(r,{...n,blocklet:i,inService:t,loadingRuntimeInfo:o})}const We="nft-domain";function oe({hasPermission:n,blocklet:t,loadingRuntimeInfo:i,inService:o,showAllDomains:r,updateBlockletDomainAliases:a,systemTips:d}){var c;const{t:l}=P(),u=te(D=>D.breakpoints.down("md")),h=j.useMemo(()=>{let D=n;return Xe(t)&&(D=D&&o),D},[n,o,t]),{site:f}=t,g=j.useMemo(()=>{var D;return Ke((D=t.site)==null?void 0:D.domainAliases)},[(c=t.site)==null?void 0:c.domainAliases]),y=j.useMemo(()=>g.filter(D=>!de.isCustomDomain(D.value)),[g]),p=j.useMemo(()=>g.filter(D=>de.isCustomDomain(D.value)),[g]),b=j.useMemo(()=>p.filter(D=>D.type!==We),[p]),m=j.useMemo(()=>p.filter(D=>D.type===We),[p]);return e.jsxs(e.Fragment,{children:[e.jsxs(O,{gap:3,children:[!!m.length&&e.jsx(H,{title:l("common.didDomains"),description:l("common.didDomainsDescription"),domains:m,hasMutatePermission:h,blocklet:t,site:f,mobile:u,showAllDomains:r,updateBlockletDomainAliases:a}),!!b.length&&e.jsx(H,{title:l("common.manualDomains"),description:l("common.manualDomainsDescription"),domains:b,hasMutatePermission:h,blocklet:t,site:f,mobile:u,showAllDomains:r,updateBlockletDomainAliases:a}),!!y.length&&e.jsxs(x,{children:[d,e.jsx(H,{title:l("common.systemDomains"),description:l("common.systemDomainsDescription"),domains:y,hasMutatePermission:h,blocklet:t,site:f,mobile:u,updateBlockletDomainAliases:a})]})]}),!g.length&&(i?e.jsx($,{size:16}):e.jsx(mn,{children:l("common.empty")}))]})}oe.propTypes={hasPermission:s.bool,blocklet:s.object.isRequired,loadingRuntimeInfo:s.bool,inService:s.bool.isRequired,showAllDomains:s.bool,updateBlockletDomainAliases:s.func,systemTips:s.node};oe.defaultProps={hasPermission:!1,loadingRuntimeInfo:!1,showAllDomains:!1,updateBlockletDomainAliases:()=>{},systemTips:null};function ue({domain:n,children:t,...i}){const{t:o,locale:r}=P(),{href:a,accessibility:d,value:l}=n,u=j.useCallback(()=>e.jsx(et,{content:he(l),locale:r,style:{marginLeft:"4px",color:"#999",fontSize:"0.8em"}}),[l,r]);return!d||d.loading?e.jsxs(ce,{component:"span",...i,children:[e.jsx(F,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:t})}),u(),e.jsx(F,{title:o("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(x,{component:"span",className:"status",children:e.jsx($,{size:13,style:{fontSize:"13px"}})})})]}):d.accessible?e.jsxs(ce,{component:"span",...i,children:[e.jsx(x,{component:"a",href:a,target:"_blank",rel:"noopener noreferrer",sx:{color:n.loading?"text.disabled":void 0},children:e.jsx(F,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:t})})}),u()]}):e.jsxs(ce,{component:"span",...i,children:[e.jsx(F,{title:o("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(x,{component:"span",children:t})}),!n.loading&&u()]})}ue.propTypes={domain:ie.isRequired,children:s.any.isRequired};const ce=Zt(x)`
2
+ display: inline-block;
3
+ vertical-align: middle;
4
+
5
+ &,
6
+ & > * {
7
+ color: #222;
8
+ font-size: 18px;
9
+ }
10
+
11
+ &,
12
+ & > * {
13
+ word-break: break-all;
14
+ }
15
+
16
+ svg {
17
+ vertical-align: text-top;
18
+ }
19
+
20
+ .status {
21
+ margin-left: 8px;
22
+ font-size: 13px;
23
+ }
24
+ `;function me({hasMutatePermission:n,site:t,domain:i,blocklet:o,onDelete:r}){return n&&!i.isProtected?e.jsx(be,{site:t,domain:i,blocklet:o,onDelete:r}):null}me.propTypes={hasMutatePermission:s.bool.isRequired,site:s.object.isRequired,domain:ie.isRequired,blocklet:s.object.isRequired,onDelete:s.func.isRequired};function pe({siteId:n,domain:t,blocklet:i,hasMutatePermission:o}){const{info:r}=M(),{t:a,locale:d}=P(),[l,u]=j.useState(!1);return e.jsxs(x,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:.5,button:{lineHeight:1}},children:[t.type==="nft-domain"&&e.jsx(mt,{locale:d,nftDid:t.nftDid,didDomainURL:r.nftDomainUrl}),!l&&t.canGenerateCertificate&&e.jsx(x,{display:"flex",mt:"-1px",children:e.jsx(V,{domain:t,filters:["http"]},`${t.value}-http`)}),o&&t.canGenerateCertificate&&e.jsx(ye,{siteId:n,domain:t.value,domainStatus:t.domainStatus,did:i.meta.did,issuing:l,setIssuing:u,children:({open:h})=>e.jsx(ne,{sx:{padding:0},size:"small",onClick:f=>h(f),children:a("router.cert.genLetsEncryptCert.title")})})]})}pe.propTypes={siteId:s.string.isRequired,domain:ie.isRequired,blocklet:s.object.isRequired,hasMutatePermission:s.bool.isRequired};function H({title:n,description:t,domains:i=[],hasMutatePermission:o,blocklet:r,site:a,mobile:d,showAllDomains:l,updateBlockletDomainAliases:u}){const[h,f]=j.useState(!1),g=j.useMemo(()=>l||h?i:i.slice(0,1),[i,h,l]),y=i.length>1;return e.jsx(Je,{elevation:0,sx:{p:3,pb:l?3:1.5,display:"flex",alignItems:"flex-start",gap:3,borderRadius:2,border:"1px solid",borderColor:"divider",transition:"box-shadow 0.2s ease-in-out"},children:e.jsxs(O,{width:1,children:[e.jsxs(x,{sx:{mb:1.5},children:[e.jsx(A,{variant:"h6",children:n}),e.jsx(A,{sx:{fontSize:12,color:"text.secondary",mt:.5},children:t})]}),g.map((p,b)=>{var m,c;return e.jsxs(O,{children:[b!==0&&e.jsx(x,{my:.75,width:1,height:"1px"}),!d&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[e.jsxs(x,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(x,{sx:{display:"inline-block"},children:e.jsx(V,{domain:p,filters:["domain"]},`${p.value}-domain`)}),e.jsxs(x,{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:.5,sx:{svg:{width:"1em",height:"1em",fontSize:"1em"},img:{width:"0.9em",height:"0.9em"}},children:[e.jsx(ue,{domain:p,target:"_blank",sx:{minHeight:30},children:p.value}),e.jsx(x,{mt:"2px",children:e.jsx(pe,{siteId:(m=r.site)==null?void 0:m.id,domain:p,blocklet:r,hasMutatePermission:o})}),p.loading&&e.jsx($,{size:16})]})]}),e.jsx(x,{sx:{button:{padding:0}},children:e.jsx(me,{hasMutatePermission:o,site:a,domain:p,blocklet:r,onDelete:()=>u(p,"delete")})})]}),d&&e.jsxs(x,{display:"flex",flexDirection:"column",children:[e.jsx(x,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:e.jsx(ue,{domain:p,target:"_blank",children:p.value})}),e.jsxs(x,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[e.jsxs(x,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:[e.jsx(V,{domain:p,filters:["domain"]},`${p.value}-domain`),e.jsx(pe,{siteId:(c=r.site)==null?void 0:c.id,domain:p,blocklet:r,hasMutatePermission:o})]}),e.jsx(x,{sx:{button:{padding:0}},children:e.jsx(me,{hasMutatePermission:o,site:a,domain:p,blocklet:r,onDelete:()=>u(p,"delete")})})]})]})]},p.value)}),y&&!l&&e.jsx(ne,{onClick:()=>f(!h),sx:{p:0,mt:.5,alignSelf:"center"},children:h?e.jsx(Kt,{}):e.jsx(Jt,{})})]})})}H.propTypes={title:s.string.isRequired,description:s.string.isRequired,domains:s.array.isRequired,hasMutatePermission:s.bool.isRequired,blocklet:s.object.isRequired,site:s.object.isRequired,mobile:s.bool.isRequired,showAllDomains:s.bool,updateBlockletDomainAliases:s.func};H.defaultProps={showAllDomains:!1,updateBlockletDomainAliases:()=>{}};const ft=j.createContext({}),{Provider:Xn,Consumer:Ws}=ft;function Kn({children:n}){const[t,i]=J({domain:"",error:null}),{locale:o}=P(),r={error:t.error,domain:t.domain,setError:a=>{i({error:a})},setDomain:a=>{const d=he(a),l=tt(d,o);i({domain:d,error:l})}};return e.jsx(Xn,{value:{value:r},children:n})}function Jn(){const{value:n}=j.useContext(ft);return n}const{joinURL:Oe}=en,es=tn,xt="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",ts=async n=>{var l;if(!n||!(n!=null&&n.trim()))return null;const t=new URL(n);t.pathname="__blocklet__.js",t.searchParams.set("type","json");const{data:i}=await es.get(t.toString()),o=(l=i==null?void 0:i.componentMountPoints)==null?void 0:l.find(u=>u.did===xt),r=new URL(n);r.pathname=o==null?void 0:o.mountPoint;const a=r.toString(),d=Oe(a,"/api");return{base:a,api:d,domain:Oe(d,"/domains")}};var ns={DID_DOMAIN_SERVICE_DID:xt,getDidDomainServiceURL:ts};const ss=nt(vn),is=nt(nn),os=ss,rs=is;function ht(n){return!n||typeof n!="string"?!1:n.split(".").length===2}const as=n=>{const t=os(rs(n));return t&&(ht(t)?`www.${t}`:t)};var He={isTopLevelDomain:ht,formatTopLevelDidDomain:as},re={exports:{}};const ls=sn,cs=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];class gt 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 ds=(n,t,i)=>{const o=i.retries-(t-1);return n.attemptNumber=t,n.retriesLeft=o,n},us=n=>cs.includes(n),Dt=(n,t)=>new Promise((i,o)=>{t={onFailedAttempt:()=>{},retries:10,...t};const r=ls.operation(t);r.attempt(async a=>{try{i(await n(a))}catch(d){if(!(d instanceof Error)){o(new TypeError(`Non-error was thrown: "${d}". You should only throw errors.`));return}if(d instanceof gt)r.stop(),o(d.originalError);else if(d instanceof TypeError&&!us(d.message))r.stop(),o(d);else{ds(d,a,t);try{await t.onFailedAttempt(d)}catch(l){o(l);return}r.retry(d)||o(r.mainError())}}})});re.exports=Dt;re.exports.default=Dt;re.exports.AbortError=gt;var ms=re.exports;const ps=on(ms);function we({domain:n,resolvedTarget:t,...i}){const{t:o,locale:r}=P();return e.jsxs(x,{sx:{backgroundColor:"rgb(236, 251, 253)",borderColor:"rgb(236, 251, 253)",borderRadius:"8px",padding:"12px"},...i,children:[e.jsxs(x,{display:"flex",flexWrap:"wrap",children:[o("router.domain.setup.tipStart"),n&&e.jsx(x,{mx:.5,color:"primary.main",fontWeight:"fontWeightBold",children:n}),o("router.domain.setup.tipEnd"),":"]}),e.jsxs(O,{gap:.5,sx:{"&>div":{mb:0},marginTop:"12px"},children:[e.jsx(fe,{label:o("router.domain.setup.recordType"),value:"CNAME",locale:r}),e.jsx(fe,{label:o("router.domain.setup.recordValue"),value:t,locale:r})]})]})}we.propTypes={domain:s.string,resolvedTarget:s.string.isRequired};we.defaultProps={domain:""};function fe({locale:n,label:t,value:i}){const o=te(a=>a.breakpoints.down("md")),r=ee();return e.jsx(wn,{name:t,nameWidth:120,children:e.jsxs(x,{sx:{display:"flex",alignItems:"center",lineHeight:1},children:[e.jsx(A,{component:"span",color:"primary.main",overflow:"auto",sx:o?{maxWidth:"95%",wordWrap:"break-word"}:{wordWrap:"break-word"},children:i}),e.jsx(et,{content:i,locale:n,style:{marginLeft:"4px",color:r.palette.text.secondary}})]})})}fe.propTypes={locale:s.string.isRequired,label:s.string.isRequired,value:s.string.isRequired};function Re({children:n,href:t,sx:i,showIcon:o,...r}){const a=ee();return e.jsxs(rn,{href:t,target:"_blank",...r,sx:{display:"inline-flex",alignItems:"center",color:"rgba(0, 0, 0, 0.87)",":hover":{color:a.palette.primary.main},...i},children:[n,o&&e.jsx(Sn,{fontSize:"small",sx:{ml:"4px",fontSize:"1rem"}})]})}Re.propTypes={children:s.node,sx:s.object,href:s.string,showIcon:s.bool};Re.defaultProps={children:null,sx:null,href:"",showIcon:!1};function yt({records:n}){return e.jsx(Mn,{component:x,children:e.jsxs(Pn,{children:[e.jsx(kn,{children:e.jsxs(Ue,{children:[e.jsx(W,{children:"Type"}),e.jsx(W,{children:"Name"}),e.jsx(W,{children:"Data"})]})}),e.jsx(Tn,{children:n.map(t=>e.jsxs(Ue,{children:[e.jsx(W,{children:t.type}),e.jsx(W,{children:t.name}),e.jsx(W,{sx:{wordBreak:"break-word"},children:e.jsx(An,{children:t.data})})]},t.name))})]})})}yt.propTypes={records:s.array.isRequired};function Se({url:n,domain:t}){const{t:i}=P();return e.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:2},children:[e.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:1},children:[e.jsx(A,{component:"h3",variant:"h6",children:i("setting.dns.step1Title")}),e.jsxs(A,{component:"section",children:[i("setting.dns.step1Desc1"),e.jsx(Re,{href:"https://lookup.icann.org/",target:"_blank",children:"ICANN"})]})]}),e.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:1},children:[e.jsx(A,{component:"h3",variant:"h6",children:i("setting.dns.step2Title",{url:n})}),e.jsx(A,{component:"section",children:i("setting.dns.step2Desc")})]}),e.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:1},children:[e.jsx(A,{component:"h3",variant:"h6",children:i("setting.dns.step3Title")}),e.jsx(A,{component:"section",children:i("setting.dns.step3Desc")}),e.jsx(yt,{records:[{type:"CNAME",name:Rn(n),data:t}]})]})]})}Se.propTypes={url:s.string.isRequired,domain:s.string};Se.defaultProps={domain:""};function Ae({siteId:n,teamDid:t,cnameDomain:i,defaultCustomDomain:o,onInputDomain:r,appId:a,appPk:d,onSuccess:l,onError:u,disabled:h,autoFocus:f,inBlockletSetup:g,shouldCheckDomain:y,onStateChange:p,currentIp:b,...m}){const{t:c,locale:D}=P(),{api:v,info:w}=M(),{blocklet:E}=se(),_=Jn(),N=ee(),ae=Cn({key:"sm"}),[S,k]=J({submittingDomain:!1,domain:o,error:null,type:w!=null&&w.nftDomainUrl?"nftDomain":"inputDomain",showDnsTip:!1}),R=ge.getDisplayName(E),{connectApi:G}=an(),Y=ln(()=>ns.getDidDomainServiceURL(w==null?void 0:w.nftDomainUrl));if(w!=null&&w.nftDomainUrl&&Y.loading)return e.jsx(x,{...m,children:e.jsx($e,{relative:"parent",children:e.jsx($,{})})});if(Y.error)return e.jsx(x,{...m,children:e.jsx($e,{relative:"parent",children:Y.error.message})});const Ie=Y.value,bt=()=>{k({invalidDNSDomain:null})},le=async(C,T)=>{p(c("setting.domain.addingDomain"));try{await v.addDomainAlias({input:{id:n,domainAlias:C,teamDid:t,inBlockletSetup:!0}}),k({submittingDomain:!1}),l({domain:C,type:"inputDomain",canGenerateCertificate:!T})}catch(q){L.error(st(q))}},Ee=async({domain:C,type:T,nftDid:q,chainHost:z})=>{try{if(!y){if(T==="inputDomain"){await le(C);return}l({domain:C,type:T,nftDid:q,chainHost:z});return}p({text:c("setting.domain.checkingResolvable")});let I=30;const U=3e3,wt=I*1e3/U,Le=setInterval(()=>{if(I<=0){clearInterval(Le);return}p({text:`${c("setting.domain.checkingResolvable")} (${I--}s)`})},1e3),B=await ps(()=>v.getDomainDNS({input:{teamDid:t,domain:C}}),{retries:wt,minTimeout:U,maxTimeout:U,onFailedAttempt:console.error});if(clearInterval(Le),!(B!=null&&B.isDnsResolved)||!(B!=null&&B.isCnameMatch)){let Q="";if(B.isDnsResolved?B.isCnameMatch||(Q=c("setting.domain.resolvedAddressError",{domain:C,curDomain:i})):Q=c("setting.domain.cannotResolve",{domain:C}),T==="nftDomain"){L.error(Q),l({domain:C,type:"nftDomain"});return}p({text:""}),k({invalidDNSDomain:{domain:C,error:Q},domain:C,type:T,submittingDomain:!1});return}if(T==="nftDomain"){l({domain:C,type:"nftDomain"});return}await le(C)}catch(I){L.error(I.message),p({text:""}),k({submittingDomain:!1})}},vt=async({domain:C,nftDid:T,chainHost:q,isDomainOwner:z})=>{if(!z){const I=c("router.domainAlias.addDomainNFT.authorizeFailed");L.error(I),k({submittingDomain:!1,error:I});return}try{let I=ze(C);I=He.formatTopLevelDidDomain(I),k({submittingDomain:!0}),await v.addDomainAlias({input:{id:n,type:"nft-domain",domainAlias:I,nftDid:T,chainHost:q,teamDid:t,inBlockletSetup:g}});const U="nftDomain";k({type:U}),await Ee({domain:I,type:U,nftDid:T,chainHost:q})}catch(I){L.error(I.message)}finally{k({submittingDomain:!1})}},Ct=async()=>{try{k({submittingDomain:!0});const C=ze(S.domain);if(w.nftDomainUrl&&Ie&&(await v.isDidDomain({input:{domain:C}})).value===!0){G.openPopup({prefix:"/connect-to-did-domain",custom:!0,locale:D,extraParams:{provider:"wallet",delegatee:a,delegateePk:d,domain:He.formatTopLevelDidDomain(S.domain)},message:{title:c("router.domainAlias.addDomainNFT.connect.title",{appName:R}),scan:c("router.domainAlias.addDomainNFT.connect.scan",{domain:S.domain,appName:R}),confirm:c("router.domainAlias.addDomainNFT.connect.confirm"),success:c("router.domainAlias.addDomainNFT.connect.success")},onSuccess:vt,onError:q=>{L.error(q.message),k({submittingDomain:!1})},onClose:()=>k({submittingDomain:!1}),checkTimeout:60*5e3},{baseUrl:Ie.base});return}await Ee({domain:C,type:S.type})}catch(C){k({submittingDomain:!1}),_.setError(C.message)}},qe=_.error||S.error;return e.jsx(x,{...m,children:e.jsxs(x,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",gap:"1em"},children:[e.jsxs(x,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:[e.jsx(A,{sx:{color:N.palette.text.primary},children:c("router.domainAlias.add.tips")}),e.jsx(cn,{sx:{display:"block",marginTop:"8px"},label:c("router.domainAlias.add.domainDescription"),helperText:S.type==="inputDomain"&&qe||c("router.domainAlias.add.helperText"),inputProps:{"data-cy":"domain-name-input"},fullWidth:!0,disabled:h,value:S.domain,size:"small",variant:"outlined",error:!!qe&&S.type==="inputDomain",onChange:C=>{var z;const T=he((z=C.target)==null?void 0:z.value);_.setDomain(T);const q=tt(T,D);k({domain:T,error:q,type:"inputDomain"}),r({domain:T,error:q,type:"inputDomain"})},autoFocus:f,onBlur:()=>{_.domain||(k({error:null}),_.setError(null))}}),e.jsx(x,{sx:{width:"100%",display:"flex",justifyContent:"flex-end"},children:e.jsx(it,{"data-cy":"confirm-add-domain",fullWidth:ae,variant:"contained",loading:S.submittingDomain,onClick:Ct,children:c("common.add")})}),e.jsx(x,{sx:{backgroundColor:"rgb(236, 251, 253)",borderColor:"rgb(236, 251, 253)",borderRadius:"8px",padding:"12px"},children:c("router.domainAlias.addDomainNFT.topLevelDidDomainHint")}),e.jsxs(x,{sx:{cursor:"pointer",fontSize:"14px",display:"flex",alignItems:"center",gap:"4px",lineHeight:1,color:N.palette.primary.main},onClick:()=>k({showDnsTip:!S.showDnsTip}),children:[e.jsx(dn,{fontSize:"1em"}),c("router.domainAlias.showTipHint")]}),S.showDnsTip&&e.jsx(we,{domain:S.domain,resolvedTarget:i,style:{marginTop:"4px"}})]}),S.invalidDNSDomain&&e.jsx(xe,{maxWidth:"md",title:c("common.reminder"),description:e.jsxs(O,{gap:2,children:[e.jsx(K,{severity:"warning",children:c("setting.domain.invalidDNSReminder",{error:S.invalidDNSDomain.error})}),e.jsx(Se,{url:S.domain,domain:i})]}),color:"primary",confirm:c("setting.domain.continueAdd"),onConfirm:()=>le(S.invalidDNSDomain.domain,S.type),onCancel:bt})]})})}Ae.propTypes={siteId:s.string.isRequired,currentIp:s.string,teamDid:s.string.isRequired,cnameDomain:s.string.isRequired,defaultCustomDomain:s.string,onInputDomain:s.func,onSuccess:s.func,appId:s.string,appPk:s.string,disabled:s.bool,autoFocus:s.bool,inBlockletSetup:s.bool,shouldCheckDomain:s.bool,onStateChange:s.func,onError:s.func};Ae.defaultProps={defaultCustomDomain:"",currentIp:"",onInputDomain:Be,onSuccess:Be,appId:"",appPk:"",disabled:!1,autoFocus:!0,inBlockletSetup:!1,shouldCheckDomain:!1,onStateChange:()=>{},onError:()=>{}};function Pe({id:n,children:t,title:i,teamDid:o,systemDomains:r,appId:a,appPk:d,onAddDomainAlias:l,...u}){const{t:h}=P(),[f,g]=J({loading:!1,confirmSetting:null}),y=r.find(c=>de.isDidDomain(c)),p=()=>{g({loading:!1,confirmSetting:null})},b={title:i||h("router.domainAlias.add.title"),description:function(D,v,w){return e.jsx(Ae,{siteId:n,teamDid:o,cnameDomain:y,onSuccess:E=>{l(E),g({confirmSetting:null})},onInputDomain:({domain:E,type:_,error:N})=>{v({...D,domain:E,type:_,__disableConfirm:!!N}),w(N)},appId:a,appPk:d,...u})},confirm:h("common.confirm"),cancel:h("common.cancel"),params:{domain:"",__disableConfirm:!0},onCancel:p},m=c=>{c.stopPropagation(),g({confirmSetting:b})};return e.jsxs(e.Fragment,{children:[typeof t=="function"?t({loading:f.loading,open:m}):e.jsxs(Ze,{onClick:m,className:"rule-action","data-cy":"action-add-domain-alias",children:[f.loading?e.jsx($,{size:16}):e.jsx(bn,{style:{fontSize:18,marginRight:5}}),h("router.domainAlias.add.title")]}),f.confirmSetting&&e.jsx(xe,{title:f.confirmSetting.title,description:f.confirmSetting.description,confirm:f.confirmSetting.confirm,cancel:f.confirmSetting.cancel,params:f.confirmSetting.params,onCancel:f.confirmSetting.onCancel,showConfirm:!1,showCancel:!0,displayError:!1,color:"primary",loading:f.loading,maxWidth:"sm"})]})}Pe.propTypes={id:s.string.isRequired,children:s.any,title:s.string,teamDid:s.string,systemDomains:s.arrayOf(s.string).isRequired,appId:s.string,appPk:s.string.isRequired,onAddDomainAlias:s.func};Pe.defaultProps={children:null,title:"",teamDid:"",appId:null,onAddDomainAlias:()=>{}};function fs(n){return e.jsx(Kn,{children:e.jsx(Pe,{...n})})}function ke({appId:n,appPk:t,siteId:i,inBlockletSetup:o,teamDid:r,sx:a,onAddDomainAlias:d,...l}){const{api:u,info:h}=M(),{locale:f,t:g}=P(),y=async({domain:p,nftDid:b,chainHost:m})=>{const c={id:i,type:"nft-domain",domainAlias:p,nftDid:b,chainHost:m,teamDid:r,inBlockletSetup:o};try{await u.addDomainAlias({input:c}),d(c)}catch(D){L.error(st(D))}};return e.jsx(ut,{delegatee:n,delegateePk:t,didDomainURL:h.nftDomainUrl,onSuccess:y,locale:f,variant:"outlined",sx:a,title:g("router.domainAlias.addDomainNFT.buy"),...l})}ke.propTypes={appId:s.string.isRequired,appPk:s.string.isRequired,siteId:s.string.isRequired,inBlockletSetup:s.bool.isRequired,teamDid:s.string.isRequired,sx:s.object,onAddDomainAlias:s.func};ke.defaultProps={sx:{},onAddDomainAlias:()=>{}};function Te({blocklet:n,bugDidDomainProps:t,connectDomainProps:i,updateBlockletDomainAliases:o}){var g,y,p,b;const{t:r}=P(),{info:a}=M(),d=te(m=>m.breakpoints.down("md")),{site:l}=n,u=j.useMemo(()=>{var m;return Ke((m=n.site)==null?void 0:m.domainAliases)},[(g=n.site)==null?void 0:g.domainAliases]),h=(p=(y=n.environments)==null?void 0:y.find(m=>m.key==="BLOCKLET_APP_PK"))==null?void 0:p.value,f=un(u);return e.jsx(jt,{action:e.jsxs(x,{sx:{display:"flex",alignItems:d?"stretch":"center",flexDirection:d?"column":"row",gap:1},children:[a.nftDomainUrl&&e.jsx(ke,{variant:"contained",sx:{bgcolor:m=>m.palette.common.black,"&:hover":{bgcolor:m=>m.palette.grey[900]}},appId:n.appPid,appPk:h,siteId:l.id,inBlockletSetup:!1,teamDid:n.meta.did,onAddDomainAlias:m=>{const c={value:m.domainAlias,isProtected:!1,type:m.type,nftDid:m.nftDid,chainHost:m.chainHost,accessibility:{loading:!0}};o(c)},...t}),e.jsx(fs,{id:l.id,title:r("common.connectExistingDomain"),teamDid:(b=n.meta)==null?void 0:b.did,appId:n.appPid,appPk:h,systemDomains:f==null?void 0:f.map(m=>m.value),onAddDomainAlias:m=>{const c={value:m.domain,isProtected:!1,type:m.type==="nftDomain"?"nft-domain":"",nftDid:m.nftDid,chainHost:m.chainHost,accessibility:{loading:!0},canGenerateCertificate:m.canGenerateCertificate===void 0?!0:m.canGenerateCertificate};o(c)},...i,children:({open:m})=>e.jsxs(ne,{variant:"outlined",sx:{borderColor:"#ddd",color:"text.primary","&:hover":{bgcolor:c=>c.palette.primary.main,color:c=>c.palette.primary.contrastText}},"data-cy":"add-domain-alias",onClick:m,disabled:ge.isInProgress(n.status),children:[e.jsx(jn,{style:{fontSize:"1.3em",marginRight:4}}),r("common.connectExistingDomain")]})})]})})}Te.propTypes={blocklet:s.object.isRequired,bugDidDomainProps:s.object,connectDomainProps:s.object,updateBlockletDomainAliases:s.func};Te.defaultProps={bugDidDomainProps:{},connectDomainProps:{},updateBlockletDomainAliases:()=>{}};function jt({action:n}){const{t}=P();return e.jsxs(Je,{elevation:0,sx:{p:3,borderRadius:2,border:"1px solid",borderColor:"divider"},children:[e.jsx(x,{sx:{display:"flex",alignItems:"center",gap:2},children:e.jsxs(x,{sx:{flex:1,width:0,mb:1.5},children:[e.jsx(A,{variant:"h6",children:t("common.bugOrConnectDomain")}),e.jsx(A,{sx:{fontSize:12,color:"text.secondary",mt:.5},children:t("common.bugOrConnectDomainTip")})]})}),n]})}jt.propTypes={action:s.element.isRequired};function xs(){const{blocklet:n,actions:{updateBlockletDomainAliases:t}}=se(),{inService:i}=M(),{t:o}=P(),r=j.useMemo(()=>{let a=!0;return Xe(n)&&(a=a&&i),a},[i,n]);return e.jsxs(x,{component:O,sx:{maxWidth:820},gap:3,children:[e.jsxs(e.Fragment,{children:[ge.isAccessible(n.status)===!1&&e.jsx(K,{severity:"warning",children:o("blocklet.router.noRunning")}),r&&e.jsx(Te,{blocklet:n,updateBlockletDomainAliases:t,connectDomainProps:{shouldCheckDomain:!0}})]}),e.jsx(Zn,{showAllDomains:!0,updateBlockletDomainAliases:t})]})}xs.propTypes={};export{xs as default};