@abtnode/blocklet-services 1.16.32-beta-4d47ae7f → 1.16.32-beta-17be26d7

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 (300) hide show
  1. package/api/index.js +9 -8
  2. package/api/libs/auth/index.js +2 -0
  3. package/api/libs/auth/utils.js +4 -1
  4. package/api/libs/connect/session.js +86 -97
  5. package/api/libs/connect/v1.js +2 -10
  6. package/api/libs/email.js +1 -1
  7. package/api/libs/jwt.js +17 -3
  8. package/api/libs/kyc.js +213 -0
  9. package/api/routes/federated.js +37 -4
  10. package/api/routes/oauth.js +65 -7
  11. package/api/routes/openapi.js +12 -21
  12. package/api/routes/opencomponent.js +12 -19
  13. package/api/routes/openembed.js +15 -26
  14. package/api/routes/user-session.js +2 -0
  15. package/api/routes/user.js +17 -2
  16. package/api/services/analytics/index.js +21 -24
  17. package/api/services/auth/connect/invite.js +38 -24
  18. package/api/services/auth/connect/issue-kyc.js +58 -0
  19. package/api/services/auth/connect/login.js +1 -0
  20. package/api/services/auth/connect/update-kyc.js +82 -0
  21. package/api/services/auth/index.js +34 -10
  22. package/api/services/auth/passport.js +11 -14
  23. package/api/services/auth/session.js +196 -197
  24. package/api/services/kyc/index.js +92 -0
  25. package/api/services/notification/index.js +6 -16
  26. package/api/services/relay/index.js +3 -7
  27. package/api/services/studio/index.js +62 -65
  28. package/api/socket/channel/did.js +1 -0
  29. package/api/util/get-static-service-config.js +2 -10
  30. package/dist/assets/{Add-D8_0U-mi.js → Add-DPWETbuH.js} +1 -1
  31. package/dist/assets/Alert-DDr4PUmN.js +1 -0
  32. package/dist/assets/{ArrowDropDown-exkF-BIK.js → ArrowDropDown-BCZ8iqaM.js} +1 -1
  33. package/dist/assets/Avatar-Der2Q3Zi.js +1 -0
  34. package/dist/assets/{ButtonGroup-CTrZ2Hyv.js → ButtonGroup-zMm3edlK.js} +1 -1
  35. package/dist/assets/{CheckCircle-BNxyw6NJ.js → CheckCircle-BfztTFob.js} +1 -1
  36. package/dist/assets/ChevronLeft-CrTHRIqK.js +1 -0
  37. package/dist/assets/{ChevronRight-DBpo88DV.js → ChevronRight-CIt5KDbd.js} +1 -1
  38. package/dist/assets/{Close-DgxsFA7q.js → Close-CgA7Qef8.js} +1 -1
  39. package/dist/assets/{CloseOutlined-CN4iKY7n.js → CloseOutlined-OBzuC30j.js} +1 -1
  40. package/dist/assets/{Delete-BaSq9RZZ.js → Delete-DVYTl7-n.js} +1 -1
  41. package/dist/assets/{DeleteOutline-Du2BPdlg.js → DeleteOutline-DKoxIRL9.js} +1 -1
  42. package/dist/assets/DialogContentText-BnQAOkxN.js +1 -0
  43. package/dist/assets/{Done-BG-Fw8ts.js → Done-D1_3yhtX.js} +1 -1
  44. package/dist/assets/{Download-C1y29u9K.js → Download-CvngcFRX.js} +1 -1
  45. package/dist/assets/{Edit-u2-N8rQN.js → Edit-DQ3aLTS3.js} +1 -1
  46. package/dist/assets/{EditIcon-B2Y7T-CN.js → EditIcon-C5DCIJQ3.js} +1 -1
  47. package/dist/assets/{Error-B1K0WhCp.js → Error-DOhq8cCM.js} +1 -1
  48. package/dist/assets/{ExpandMore-DBQIHjkB.js → ExpandMore-BgcTT2Bb.js} +1 -1
  49. package/dist/assets/FormControl-D00yHDcj.js +1 -0
  50. package/dist/assets/FormControlLabel-BJXWJJky.js +1 -0
  51. package/dist/assets/FormGroup-CBgybl1l.js +1 -0
  52. package/dist/assets/{Google-CvB2nYH_.js → Google-Be2TlnTX.js} +1 -1
  53. package/dist/assets/{Hidden-DJwWGZh0.js → Hidden-Bg6BPxEd.js} +1 -1
  54. package/dist/assets/{InfoOutlined-BIY-Lnxg.js → InfoOutlined-BxTwuqiu.js} +1 -1
  55. package/dist/assets/{InputAdornment-VVruavKc.js → InputAdornment-BGOXKboF.js} +1 -1
  56. package/dist/assets/{InputLabel-3M9sMlBq.js → InputLabel-BaHBEVm2.js} +1 -1
  57. package/dist/assets/{LastPage-CBInTPpp.js → LastPage-DyrTuTrl.js} +1 -1
  58. package/dist/assets/{Launch-Dhq-grBI.js → Launch-CNWKbDVj.js} +1 -1
  59. package/dist/assets/{LaunchOutlined-DnkKRXxH.js → LaunchOutlined-BuQ3n0Nq.js} +1 -1
  60. package/dist/assets/{Link-Cpnh7s1v.js → Link-CiVKLn7B.js} +1 -1
  61. package/dist/assets/{ListItemText-CHjUage1.js → ListItemText-BW_owdy0.js} +1 -1
  62. package/dist/assets/{LoadingButton-C47nsxMx.js → LoadingButton-AM-IIW_5.js} +1 -1
  63. package/dist/assets/{LockIcon-CoUaWmH-.js → LockIcon-0vWjHODV.js} +1 -1
  64. package/dist/assets/{Loop-CbcENVkw.js → Loop-C8sLBH67.js} +1 -1
  65. package/dist/assets/{MoreHoriz-B4gnOmnB.js → MoreHoriz-i1hLrklo.js} +1 -1
  66. package/dist/assets/{MoreVert-CBWkVJTE.js → MoreVert-D_g6Th6c.js} +1 -1
  67. package/dist/assets/{OpenInNew-svkkbJCn.js → OpenInNew-DBNjDxil.js} +1 -1
  68. package/dist/assets/{Pagination-BBwBFjSJ.js → Pagination-DLYy7jWI.js} +2 -2
  69. package/dist/assets/{PlayArrow-D-mvqfoj.js → PlayArrow-ywjbMR8A.js} +1 -1
  70. package/dist/assets/{QuestionMarkCircle-Duxt-AlB.js → QuestionMarkCircle-UZOXHzIe.js} +1 -1
  71. package/dist/assets/{RadioGroup-C4DI71vM.js → RadioGroup-BOq5mI1A.js} +1 -1
  72. package/dist/assets/{Search-BOxcXluh.js → Search-Cm2FDsnl.js} +1 -1
  73. package/dist/assets/{Select-drnrjZt8.js → Select-_ZzhxUOz.js} +2 -2
  74. package/dist/assets/{ServerLogo-CxVp5JLf.js → ServerLogo-DeFJVAh8.js} +1 -1
  75. package/dist/assets/{Skeleton-YurB3EC5.js → Skeleton-D6pzHOGJ.js} +4 -4
  76. package/dist/assets/{Slider-BX1l_Lvj.js → Slider-ZYL8jZ1U.js} +1 -1
  77. package/dist/assets/Stack-DuNNAX-1.js +1 -0
  78. package/dist/assets/{Stepper-UV_DHoEg.js → Stepper-DJcNoyk4.js} +1 -1
  79. package/dist/assets/TextField-DvTYZ6EA.js +1 -0
  80. package/dist/assets/Toolbar-DbekG5v-.js +1 -0
  81. package/dist/assets/ViewColumn-BOqfI3PF.js +1 -0
  82. package/dist/assets/{ViewList-Bwkry3LO.js → ViewList-DloAt_wk.js} +1 -1
  83. package/dist/assets/access-control-Coh2AROp.js +13 -0
  84. package/dist/assets/{actions-5mXSkQB4.js → actions-DU4pTpmF.js} +1 -1
  85. package/dist/assets/{add-component-core-DFH5qH7x.js → add-component-core-DT8eSr6D.js} +61 -61
  86. package/dist/assets/add-resource-CSMNGPH3.js +1 -0
  87. package/dist/assets/{addon-CUxwPHa_.js → addon-DImOcoyp.js} +1 -1
  88. package/dist/assets/{analytics-B29460Yu.js → analytics-CdJi4q2Q.js} +7 -7
  89. package/dist/assets/api-DUETbHv8.js +1 -0
  90. package/dist/assets/ar-BywPGmOa.js +1 -0
  91. package/dist/assets/ar-cd9W8CrI.js +1 -0
  92. package/dist/assets/audit-logs-Bf2mKt3i.js +58 -0
  93. package/dist/assets/{button-BqgSoT0h.js → button-LdgYe-Yo.js} +1 -1
  94. package/dist/assets/{click-to-copy-CM2U6JEg.js → click-to-copy-GLcS-PQh.js} +1 -1
  95. package/dist/assets/{complete-DaiPBjLS.js → complete-d1PDQlj9.js} +1 -1
  96. package/dist/assets/component-Ny_sGfYr.js +768 -0
  97. package/dist/assets/{config-CxG4Kz4G.js → config-CFU2n19a.js} +2 -2
  98. package/dist/assets/{config-BygYwcXq.js → config-CpPqNxWJ.js} +1 -1
  99. package/dist/assets/{config-navigation-Rsc7sQGs.js → config-navigation-BQEWPLSH.js} +2 -2
  100. package/dist/assets/confirm-BdJlZzQ-.js +7 -0
  101. package/dist/assets/{connect-B87FT6ev.js → connect-BDR3XUNJ.js} +1 -1
  102. package/dist/assets/{connect-26mFy5d9.js → connect-ndruP8fv.js} +1 -1
  103. package/dist/assets/connect-to-D6gkq_5F.js +54 -0
  104. package/dist/assets/{content-layout-B7X0Mv3n.js → content-layout-9pObqqwC.js} +1 -1
  105. package/dist/assets/{dashboard-BrV_SESr.js → dashboard-Clr7sJbb.js} +4 -4
  106. package/dist/assets/de-DS4XAN75.js +1 -0
  107. package/dist/assets/{de-9vHBMa7b.js → de-qs3PjT55.js} +1 -1
  108. package/dist/assets/{did-address-BWnma-3-.js → did-address-DNmiCCjI.js} +1 -1
  109. package/dist/assets/domain-BM3Ias2K.js +9 -0
  110. package/dist/assets/{domain-list-wgNQeEgv.js → domain-list-BdKqoNlW.js} +2 -2
  111. package/dist/assets/email-03xGEqer.js +9 -0
  112. package/dist/assets/es-DXb9xB6c.js +1 -0
  113. package/dist/assets/es-XT3Dd0hc.js +1 -0
  114. package/dist/assets/{exchange-passport-BZ8Q-G3h.js → exchange-passport-BwiQ670F.js} +1 -1
  115. package/dist/assets/{fallback-C5E1lZAR.js → fallback-BLJkxLTK.js} +1 -1
  116. package/dist/assets/format-error-C43xGCjC.js +2 -0
  117. package/dist/assets/fr-C5TQA9s1.js +1 -0
  118. package/dist/assets/{fr-C5fh5fdm.js → fr-CMgZc3LR.js} +1 -1
  119. package/dist/assets/{fuel-XF4sXoDA.js → fuel-C7otG6Kf.js} +1 -1
  120. package/dist/assets/{fullpage-BOyZgu9A.js → fullpage-C4Et_NyD.js} +1 -1
  121. package/dist/assets/hi-C_Mli2FO.js +1 -0
  122. package/dist/assets/hi-Ch52Lky6.js +1 -0
  123. package/dist/assets/{home-Dajv5NTd.js → home-CZCCRVbe.js} +1 -1
  124. package/dist/assets/id-BkncNzMh.js +1 -0
  125. package/dist/assets/id-_x67Rh2B.js +1 -0
  126. package/dist/assets/{iframe-CmugPIuF.js → iframe-CPKiwkND.js} +1 -1
  127. package/dist/assets/index-AgTn3eU4.js +68 -0
  128. package/dist/assets/{index-DHNVLiI8.js → index-B3ThwVSS.js} +1 -1
  129. package/dist/assets/{index-BRJLJSjg.js → index-BCMjvLku.js} +2 -2
  130. package/dist/assets/{index-CrurRDDC.js → index-BK9kuqs5.js} +1 -1
  131. package/dist/assets/index-BRnCFYx3.js +262 -0
  132. package/dist/assets/{index-Dcphtm5y.js → index-BWVDn9BP.js} +1 -1
  133. package/dist/assets/{index-DfZjT3WA.js → index-BaC4EhQh.js} +212 -121
  134. package/dist/assets/index-Bc3FFnWG.js +126 -0
  135. package/dist/assets/{index-BtQK2llU.js → index-BlvJrvQX.js} +2 -2
  136. package/dist/assets/{index-CTFB4nHV.js → index-BrFlqDrV.js} +3 -3
  137. package/dist/assets/{index-BrcKk7u6.js → index-BzY4clAs.js} +1 -1
  138. package/dist/assets/{index-CFmNTsQh.js → index-CD6yQnY4.js} +1 -1
  139. package/dist/assets/{index-BvZ1bsPZ.js → index-CFpdZL6w.js} +5 -5
  140. package/dist/assets/{index-UKHQeYs5.js → index-CH2n2mOS.js} +1 -1
  141. package/dist/assets/index-CT70Tuv9.js +329 -0
  142. package/dist/assets/{index-BisUmH-h.js → index-CTil0VJz.js} +1 -1
  143. package/dist/assets/{index-C0qYe9TG.js → index-CWjTgh2V.js} +1 -1
  144. package/dist/assets/{index-D5lkEFWM.js → index-CbBjirNE.js} +1 -1
  145. package/dist/assets/{index-Ca5y7O4k.js → index-Cfnr_7cH.js} +12 -12
  146. package/dist/assets/{index-DPyKucXe.js → index-ChWrF7R7.js} +1 -1
  147. package/dist/assets/{index-Cixwi4BX.js → index-CzxDEhmG.js} +1 -1
  148. package/dist/assets/index-D9e3uQkW.js +4 -0
  149. package/dist/assets/{index-TlMkikTm.js → index-DPXmNWqb.js} +1 -1
  150. package/dist/assets/{index-hv_yaUi2.js → index-DR40cJFL.js} +4 -4
  151. package/dist/assets/{index-D0ZBFe_v.js → index-DiOkeCOc.js} +12 -12
  152. package/dist/assets/{index-DCkU-F0r.js → index-Dp6zROo4.js} +1 -1
  153. package/dist/assets/{index-p81jbN_h.js → index-Ez2y1Lea.js} +1 -1
  154. package/dist/assets/{index-C2sin8wt.js → index-TwQfcdR0.js} +1 -1
  155. package/dist/assets/{index-BK4259Qj.js → index-hkkOggLS.js} +1 -1
  156. package/dist/assets/{index-BiafpQ0u.js → index-lVfYf5Oq.js} +40 -40
  157. package/dist/assets/{index-BtQOF6n3.js → index-s95vTNww.js} +1 -1
  158. package/dist/assets/{index.es-w-0rtBPs.js → index.es-CkGqU4MQ.js} +1 -1
  159. package/dist/assets/index.esm-8yCk0S5h.js +1 -0
  160. package/dist/assets/{invitation-KAlNPJe6.js → invitation-DAGy7I2M.js} +1 -1
  161. package/dist/assets/{invite-C_RF0Rm2.js → invite-06pBNgrg.js} +1 -1
  162. package/dist/assets/{issue-passport-DM7CKvcB.js → issue-passport-CbtgsLgQ.js} +1 -1
  163. package/dist/assets/item-B0XIEv1j.js +1 -0
  164. package/dist/assets/ja-BemsOTjE.js +1 -0
  165. package/dist/assets/ja-j9_7sWtG.js +1 -0
  166. package/dist/assets/{jss-plugin-props-sort.esm-BzROyw1n.js → jss-plugin-props-sort.esm-D4wv_NcC.js} +1 -1
  167. package/dist/assets/ko-BcDVaiV3.js +1 -0
  168. package/dist/assets/ko-CqkhhVdi.js +1 -0
  169. package/dist/assets/{launch-result-message-CIfX9Pg1.js → launch-result-message-BGkFHBr0.js} +1 -1
  170. package/dist/assets/{layout-Bb2LZLxa.js → layout-C1fJ0PwQ.js} +2 -2
  171. package/dist/assets/{list-header-BDhQIu5L.js → list-header-D2TsmXsU.js} +1 -1
  172. package/dist/assets/localization-IrbI0TJr.js +1 -0
  173. package/dist/assets/{log-o0iKO5dx.js → log-Bx1CDJfR.js} +1 -1
  174. package/dist/assets/{login-B9UvusG-.js → login-Ci8kprd2.js} +1 -1
  175. package/dist/assets/{login-oauth-callback-cZ3oa4a_.js → login-oauth-callback-OcVe-Pko.js} +1 -1
  176. package/dist/assets/logo-uploader-DPtvNrwp.js +122 -0
  177. package/dist/assets/lost-passport-DQYzD5oM.js +168 -0
  178. package/dist/assets/{lottie-DsjCdNh-.js → lottie-Dtcij0yx.js} +1 -1
  179. package/dist/assets/notifications-u_yxMKF9.js +62 -0
  180. package/dist/assets/{open-window-B5RcEIrm.js → open-window-Ca8SnnJR.js} +1 -1
  181. package/dist/assets/overview-hyt-Fv0L.js +12 -0
  182. package/dist/assets/{page-header-BvuGyCDw.js → page-header-DZBo2jY4.js} +1 -1
  183. package/dist/assets/{permission-BuA9Zt4q.js → permission-DDD12SuE.js} +1 -1
  184. package/dist/assets/{preferences-BzcjmMUC.js → preferences-BzxjYd2D.js} +1 -1
  185. package/dist/assets/pt-DZmF_qcN.js +1 -0
  186. package/dist/assets/pt-NjuvVfFo.js +1 -0
  187. package/dist/assets/publish-resource-BL3ifBGp.js +1 -0
  188. package/dist/assets/react-iXxw1Yhu.js +57 -0
  189. package/dist/assets/{redux-BDPBPXLM.js → redux-Bma4eNss.js} +1 -1
  190. package/dist/assets/resource-dialog-DhmviK8K.js +57 -0
  191. package/dist/assets/ru-BFNdjdAO.js +1 -0
  192. package/dist/assets/ru-BsFEd75u.js +1 -0
  193. package/dist/assets/sdk-B37oViy1.js +1 -0
  194. package/dist/assets/{selector-DktPytoX.js → selector-B8IAFODK.js} +3 -3
  195. package/dist/assets/session-D3mS3Gz5.js +1 -0
  196. package/dist/assets/setup-TXTEwwLA.js +19 -0
  197. package/dist/assets/{shorten-label-3owfLRzi.js → shorten-label-DWH-tsmz.js} +1 -1
  198. package/dist/assets/{slicedToArray-CQG0j1sa.js → slicedToArray-Doa8i3Sy.js} +2 -2
  199. package/dist/assets/{spaces-DDj9ynWl.js → spaces-DPfrZKXe.js} +1 -1
  200. package/dist/assets/{start-DCKDZC67.js → start-DwEZv43D.js} +1 -1
  201. package/dist/assets/{step-actions-CoJc8417.js → step-actions-B1vsf_QO.js} +1 -1
  202. package/dist/assets/{studio-B_0UB40R.js → studio-CTK5QQPt.js} +1 -1
  203. package/dist/assets/{switch-control-Bun_5Zkk.js → switch-control-DJhTvGtn.js} +1 -1
  204. package/dist/assets/th-B61cOYck.js +1 -0
  205. package/dist/assets/th-C7TEM40B.js +1 -0
  206. package/dist/assets/{toUpper-Bf_TQKK7.js → toUpper-Bff1Q0mA.js} +1 -1
  207. package/dist/assets/{transfer-C7Cxyvnx.js → transfer-IRhzEeuE.js} +1 -1
  208. package/dist/assets/{uniqBy-BqI7ffNX.js → uniqBy-DIeGY4K_.js} +1 -1
  209. package/dist/assets/{unsubscribe-B-iaO9gM.js → unsubscribe-CwygyLJZ.js} +1 -1
  210. package/dist/assets/{url-join-BoNn2Qh7.js → url-join-D5TK65dM.js} +1 -1
  211. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-CfK0RcTD.js → use-blocklet-info-for-connect-did-spaces-DaNxIRBj.js} +1 -1
  212. package/dist/assets/{use-mobile-C19pzcVe.js → use-mobile-BA_cO1yG.js} +1 -1
  213. package/dist/assets/{useAsync-Ca_M5Jhn.js → useAsync-Bl2lmnoD.js} +1 -1
  214. package/dist/assets/{useFormControl-Cs3LGXJe.js → useFormControl-CAWQrhew.js} +1 -1
  215. package/dist/assets/{useLocalStorage-3-rj5S6B.js → useLocalStorage-DkK4fk62.js} +1 -1
  216. package/dist/assets/{useSetState-BTR-3GfC.js → useSetState-OuMAH4bG.js} +1 -1
  217. package/dist/assets/useSlot-nO86v-Bn.js +1 -0
  218. package/dist/assets/{useSlotProps-CCXsWmb3.js → useSlotProps-B8lkbwkT.js} +1 -1
  219. package/dist/assets/{useThemeProps-BjkDmxHT.js → useThemeProps-CIT7yB5m.js} +1 -1
  220. package/dist/assets/user-center-BEb-hcxI.js +1 -0
  221. package/dist/assets/user-sessions-D_s7CT2k.js +1 -0
  222. package/dist/assets/{util-DBNeRhAr.js → util-znUxW1sG.js} +1 -1
  223. package/dist/assets/vi-B884zOLu.js +1 -0
  224. package/dist/assets/vi-C1X-AoyG.js +1 -0
  225. package/dist/assets/wrap-locale-BjkpLOO0.js +1 -0
  226. package/dist/assets/zh-DjEnl7LY.js +1 -0
  227. package/dist/assets/zh-kNAPjCk5.js +2 -0
  228. package/dist/assets/zh-tw-Bn1Pkz9A.js +1 -0
  229. package/dist/assets/zh-tw-DSZuinRu.js +1 -0
  230. package/dist/index.html +1 -1
  231. package/dist/service-worker.js +1 -1
  232. package/package.json +26 -25
  233. package/api/util/constants.js +0 -10
  234. package/dist/assets/AddBox-BpwHbwbG.js +0 -1
  235. package/dist/assets/Alert-Dlco0B3L.js +0 -1
  236. package/dist/assets/Avatar-B1SFM1MR.js +0 -1
  237. package/dist/assets/FilterList-DumRQ8ls.js +0 -26
  238. package/dist/assets/FormControl-CeSJJZgZ.js +0 -1
  239. package/dist/assets/FormControlLabel-CpH9LTeH.js +0 -1
  240. package/dist/assets/FormGroup-B0Xdxgiy.js +0 -1
  241. package/dist/assets/TextField-D_Jtjg13.js +0 -1
  242. package/dist/assets/Toolbar-D7_EWzTj.js +0 -1
  243. package/dist/assets/access-control-YUBGali8.js +0 -13
  244. package/dist/assets/add-resource-BJ9u32jP.js +0 -1
  245. package/dist/assets/api-DbvHYaVa.js +0 -1
  246. package/dist/assets/ar-BSACs5SN.js +0 -1
  247. package/dist/assets/ar-lTVP4T3d.js +0 -1
  248. package/dist/assets/audit-logs-C1AOwGce.js +0 -58
  249. package/dist/assets/component-npmbPVSM.js +0 -464
  250. package/dist/assets/confirm-3b8GTIgU.js +0 -7
  251. package/dist/assets/connect-to-B0Td9yUD.js +0 -54
  252. package/dist/assets/de-B3TxaybY.js +0 -1
  253. package/dist/assets/domain-CkCbH8sj.js +0 -9
  254. package/dist/assets/es-BY0KMFme.js +0 -1
  255. package/dist/assets/es-Bk9E9Gbf.js +0 -1
  256. package/dist/assets/format-error-BVI56bJg.js +0 -2
  257. package/dist/assets/fr-BiVZLeXU.js +0 -1
  258. package/dist/assets/hi-B_LrkIOS.js +0 -1
  259. package/dist/assets/hi-HiGtGtUs.js +0 -1
  260. package/dist/assets/id-CirrqXGd.js +0 -1
  261. package/dist/assets/id-jBXPD1he.js +0 -1
  262. package/dist/assets/index-2xySyQ5i.js +0 -262
  263. package/dist/assets/index-B0NvcpjT.js +0 -1
  264. package/dist/assets/index-B7Un-ZeO.js +0 -68
  265. package/dist/assets/index-BP53WpUP.js +0 -4
  266. package/dist/assets/index-C1Puqx4M.js +0 -304
  267. package/dist/assets/index-CLQi4cVY.js +0 -126
  268. package/dist/assets/index.esm-CptJw3C8.js +0 -1
  269. package/dist/assets/item-DIkrlQMP.js +0 -1
  270. package/dist/assets/ja-BOs7uPqI.js +0 -1
  271. package/dist/assets/ja-DKiHQ6DE.js +0 -1
  272. package/dist/assets/ko-BBYyf1yM.js +0 -1
  273. package/dist/assets/ko-D1G4UvNg.js +0 -1
  274. package/dist/assets/localization-V0WRiXKC.js +0 -1
  275. package/dist/assets/logo-uploader-D4yqBa_O.js +0 -122
  276. package/dist/assets/lost-passport-soFqeEb7.js +0 -168
  277. package/dist/assets/notifications-B9Mu8Fxb.js +0 -62
  278. package/dist/assets/overview-CFbnZdV0.js +0 -12
  279. package/dist/assets/pt-CcFeyma6.js +0 -1
  280. package/dist/assets/pt-DI2MIkSi.js +0 -1
  281. package/dist/assets/publish-resource-DwhFCZXw.js +0 -1
  282. package/dist/assets/react-CwUjkFxY.js +0 -57
  283. package/dist/assets/resource-dialog-BBzXGjTp.js +0 -57
  284. package/dist/assets/ru-B2L3CRQ4.js +0 -1
  285. package/dist/assets/ru-OymXgLUI.js +0 -1
  286. package/dist/assets/sdk-CI7TJ_xu.js +0 -1
  287. package/dist/assets/session-Cw-dytKR.js +0 -1
  288. package/dist/assets/setup-DRfpHXNv.js +0 -19
  289. package/dist/assets/th-CZbdb5PZ.js +0 -1
  290. package/dist/assets/th-CfNBHHtU.js +0 -1
  291. package/dist/assets/useSlot-C1f6ZTLt.js +0 -1
  292. package/dist/assets/user-center-BN2FDsvO.js +0 -1
  293. package/dist/assets/user-sessions-BIEmgTqD.js +0 -1
  294. package/dist/assets/vi-DbzhnofW.js +0 -1
  295. package/dist/assets/vi-DhjQx2Z1.js +0 -1
  296. package/dist/assets/wrap-locale-D7L9anic.js +0 -1
  297. package/dist/assets/zh-FO0C29Rb.js +0 -1
  298. package/dist/assets/zh-jGK5FFL0.js +0 -2
  299. package/dist/assets/zh-tw-DnmwTx49.js +0 -1
  300. package/dist/assets/zh-tw-cyWwf75a.js +0 -1
@@ -1,4 +1,4 @@
1
- var bt=Object.defineProperty;var yt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>yt(e,typeof t!="symbol"?t+"":t,n);import{aH as xt,cJ as wt,c$ as vt,aL as G,ck as V,r as A,aJ as It,aK as Ct,aP as ve,cE as St,ch as Tt,j as m,aN as Ie,aO as At,P as f,N as Pt,l as jt,aD as kt,bF as Ce,bn as Lt,bo as Ot,dl as Mt,ah as Rt,aB as P,bl as Et,B as Nt,bC as _t,T as qt,dm as Ft,dn as Bt,a1 as $t,dp as zt,bD as De,u as Ve,aE as Ht,f as Dt,E as Vt}from"./index-DfZjT3WA.js";import{D as Ut}from"./index-D0ZBFe_v.js";import{l as R,g as Qt,L as Wt}from"./MoreVert-CBWkVJTE.js";import{L as Gt}from"./selector-DktPytoX.js";const Zt=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Jt=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Xt=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:i,selected:a}=e,l=At({root:["root",r&&"dense",!s&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},Qt,n);return G({},n,l)},Yt=xt(wt,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Jt})(({theme:e,ownerState:t})=>G({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${R.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:V(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${R.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:V(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${R.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:V(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:V(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${R.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${R.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),Kt=A.forwardRef(function(t,n){const r=It({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:i="div",children:a,dense:c=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:d,selected:p=!1,className:g}=r,b=Ct(r,Zt),x=A.useContext(ve),I=A.useMemo(()=>({dense:c||x.dense||!1,alignItems:o,disableGutters:l}),[o,x.dense,c,l]),T=A.useRef(null);St(()=>{s&&T.current&&T.current.focus()},[s]);const w=G({},r,{alignItems:o,dense:I.dense,disableGutters:l,divider:u,selected:p}),y=Xt(w),M=Tt(T,n);return m.jsx(ve.Provider,{value:I,children:m.jsx(Yt,G({ref:M,href:b.href||b.to,component:(b.href||b.to)&&i==="div"?"button":i,focusVisibleClassName:Ie(y.focusVisible,d),ownerState:w,className:Ie(y.root,g)},b,{classes:y,children:a}))})});/**
1
+ var bt=Object.defineProperty;var yt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var D=(e,t,n)=>yt(e,typeof t!="symbol"?t+"":t,n);import{aG as xt,cJ as wt,c$ as vt,aK as W,ck as V,r as A,aI as It,aJ as Ct,aO as ve,cE as St,ch as Tt,j as m,aM as Ie,aN as At,P as f,N as kt,l as jt,aC as Pt,bF as Ce,bm as Lt,bn as Mt,db as Ot,ai as Rt,bE as k,bk as Et,B as Nt,bB as _t,T as qt,dc as Ft,dd as Bt,a1 as $t,de as zt,bC as De,u as Ve,aD as Ht,f as Dt,E as Vt}from"./index-BaC4EhQh.js";import{D as Ut}from"./index-DiOkeCOc.js";import{l as R,g as Qt,L as Gt}from"./MoreVert-D_g6Th6c.js";import{L as Wt}from"./selector-B8IAFODK.js";const Zt=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Jt=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Xt=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:s,divider:i,selected:a}=e,l=At({root:["root",r&&"dense",!s&&"gutters",i&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},Qt,n);return W({},n,l)},Yt=xt(wt,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Jt})(({theme:e,ownerState:t})=>W({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${R.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:V(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${R.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:V(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${R.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:V(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:V(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${R.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${R.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),Kt=A.forwardRef(function(t,n){const r=It({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:i="div",children:a,dense:c=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:d,selected:p=!1,className:g}=r,b=Ct(r,Zt),x=A.useContext(ve),I=A.useMemo(()=>({dense:c||x.dense||!1,alignItems:o,disableGutters:l}),[o,x.dense,c,l]),T=A.useRef(null);St(()=>{s&&T.current&&T.current.focus()},[s]);const w=W({},r,{alignItems:o,dense:I.dense,disableGutters:l,divider:u,selected:p}),y=Xt(w),O=Tt(T,n);return m.jsx(ve.Provider,{value:I,children:m.jsx(Yt,W({ref:O,href:b.href||b.to,component:(b.href||b.to)&&i==="div"?"button":i,focusVisibleClassName:Ie(y.focusVisible,d),ownerState:w,className:Ie(y.root,g)},b,{classes:y,children:a}))})});/**
2
2
  * (c) Iconify
3
3
  *
4
4
  * For the full copyright and license information, please view the license.txt
@@ -8,4 +8,4 @@ var bt=Object.defineProperty;var yt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,config
8
8
  *
9
9
  * @license MIT
10
10
  * @version 1.0.8
11
- */const Ue=Object.freeze({left:0,top:0,width:16,height:16}),Z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$=Object.freeze({...Ue,...Z}),re=Object.freeze({...$,body:"",hidden:!1}),en=Object.freeze({width:null,height:null}),Qe=Object.freeze({...en,...Z});function tn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const nn=/[\s,]+/;function on(e,t){t.split(nn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const We={...Qe,preserveAspectRatio:""};function Se(e){const t={...We},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=tn(n("rotate","")),on(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function rn(e,t){for(const n in We)if(e[n]!==t[n])return!0;return!1}const N=/^[a-z0-9]+(-[a-z0-9]+)*$/,z=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!Q(l)?null:l}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Q(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Q(a,n)?null:a}return null},Q=(e,t)=>e?!!((e.provider===""||e.provider.match(N))&&(t&&e.prefix===""||e.prefix.match(N))&&e.name.match(N)):!1;function sn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Te(e,t){const n=sn(e,t);for(const r in re)r in Z?r in e&&!(r in n)&&(n[r]=Z[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function cn(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function an(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Te(r[a]||o[a],s)}return i(t),n.forEach(i),Te(e,s)}function Ge(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=cn(e);for(const o in r){const s=r[o];s&&(t(o,an(e,o,s)),n.push(o))}return n}const ln={provider:"",aliases:{},not_found:{},...Ue};function ee(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ze(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ee(e,ln))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(N)||typeof s.body!="string"||!ee(s,re))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(N)||typeof i!="string"||!n[i]&&!r[i]||!ee(s,re))return null}return t}const J=Object.create(null);function un(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function k(e,t){const n=J[e]||(J[e]=Object.create(null));return n[t]||(n[t]=un(e,t))}function pe(e,t){return Ze(t)?Ge(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function fn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function dn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(J)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(J[o]||{})).forEach(i=>{const a=k(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let q=!1;function Je(e){return typeof e=="boolean"&&(q=e),q}function F(e){const t=typeof e=="string"?z(e,!0,q):e;if(t){const n=k(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Xe(e,t){const n=z(e,!0,q);if(!n)return!1;const r=k(n.provider,n.prefix);return fn(r,n.name,t)}function Ae(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),q&&!t&&!e.prefix){let o=!1;return Ze(e)&&(e.prefix="",Ge(e,(s,i)=>{i&&Xe(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Q({provider:t,prefix:n,name:"a"}))return!1;const r=k(t,n);return!!pe(r,e)}function pn(e){return!!F(e)}function hn(e){const t=F(e);return t?{...$,...t}:null}function gn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),l=c[i]||(c[i]=k(s,i));let u;a in l.icons?u=t.loaded:i===""||l.missing.has(a)?u=t.missing:u=t.pending;const d={provider:s,prefix:i,name:a};u.push(d)}),t}function Ye(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function mn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])i.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))i.missing.push({provider:r,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Ye([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let bn=0;function yn(e,t,n){const r=bn++,o=Ye.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const se=Object.create(null);function Pe(e,t){se[e]=t}function ie(e){return se[e]||se[""]}function xn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?z(o,t,n):o;s&&r.push(s)}),r}var wn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const v=Math.floor(Math.random()*h.length);i.push(h[v]),h=h.slice(0,v).concat(h.slice(v+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,u,d=null,p=[],g=[];typeof r=="function"&&g.push(r);function b(){d&&(clearTimeout(d),d=null)}function x(){c==="pending"&&(c="aborted"),b(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function I(h,v){v&&(g=[]),typeof h=="function"&&g.push(h)}function T(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:p.length,subscribe:I,abort:x}}function w(){c="failed",g.forEach(h=>{h(void 0,u)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function M(h,v,j){const S=v!=="success";switch(p=p.filter(L=>L!==h),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(v==="abort"){u=j,w();return}if(S){u=j,p.length||(i.length?C():w());return}if(b(),y(),!e.random){const L=e.resources.indexOf(h.resource);L!==-1&&L!==e.index&&(e.index=L)}c="completed",g.forEach(L=>{L(j)})}function C(){if(c!=="pending")return;b();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{b(),c==="pending"&&(y(),w())},e.timeout);return}w();return}const v={status:"pending",resource:h,callback:(j,S)=>{M(v,j,S)}};p.push(v),l++,d=setTimeout(C,e.rotate),n(h,t,v.callback)}return setTimeout(C),T}function Ke(e){const t={...wn,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const u=vn(t,a,c,(d,p)=>{r(),l&&l(d,p)});return n.push(u),u}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function he(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 Y=Object.create(null),E=["https://api.simplesvg.com","https://api.unisvg.com"],W=[];for(;E.length>0;)E.length===1||Math.random()>.5?W.push(E.shift()):W.push(E.pop());Y[""]=he({resources:["https://api.iconify.design"].concat(W)});function je(e,t){const n=he(t);return n===null?!1:(Y[e]=n,!0)}function K(e){return Y[e]}function In(){return Object.keys(Y)}function ke(){}const te=Object.create(null);function Cn(e){if(!te[e]){const t=K(e);if(!t)return;const n=Ke(t),r={config:t,redundancy:n};te[e]=r}return te[e]}function et(e,t,n){let r,o;if(typeof e=="string"){const s=ie(e);if(!s)return n(void 0,424),ke;o=s.send;const i=Cn(e);i&&(r=i.redundancy)}else{const s=he(e);if(s){r=Ke(s);const i=e.resources?e.resources[0]:"",a=ie(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),ke):r.query(t,o,n)().abort}const Le="iconify2",B="iconify",tt=B+"-count",Oe=B+"-version",nt=36e5,Sn=168;function ce(e,t){try{return e.getItem(t)}catch{}}function ge(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Me(e,t){try{e.removeItem(t)}catch{}}function ae(e,t){return ge(e,tt,t.toString())}function le(e){return parseInt(ce(e,tt))||0}const O={local:!0,session:!0},ot={local:new Set,session:new Set};let me=!1;function Tn(e){me=e}let U=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(U&&U[t]&&typeof U[t].length=="number")return U[t]}catch{}O[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ce(n,Oe);if(r!==Le){if(r){const a=le(n);for(let c=0;c<a;c++)Me(n,B+c.toString())}ge(n,Oe,Le),ae(n,0);return}const o=Math.floor(Date.now()/nt)-Sn,s=a=>{const c=B+a.toString(),l=ce(n,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Me(n,c)}};let i=le(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ae(n,i)):ot[e].add(a))}function it(){if(!me){Tn(!0);for(const e in O)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=k(r,o);if(!pe(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function An(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in O)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Pn(e,t){me||it();function n(r){let o;if(!O[r]||!(o=rt(r)))return;const s=ot[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=le(o),!ae(o,i+1))return;const a={cached:Math.floor(Date.now()/nt),provider:e.provider,data:t};return ge(o,B+i.toString(),JSON.stringify(a))}t.lastModified&&!An(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Re(){}function jn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,mn(e)}))}function kn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ie(n)))return;s.prepare(n,r,o).forEach(a=>{et(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=pe(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),Pn(e,c)}catch(l){console.error(l)}jn(e)})})}))}const be=(e,t)=>{const n=xn(e,!0,Je()),r=gn(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,Re)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,s.push(k(l,u));const d=o[l]||(o[l]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,p=k(l,u),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(d)||(g.add(d),o[l][u].push(d))}),s.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&kn(c,o[l][u])}),t?yn(t,r,s):Re},Ln=e=>new Promise((t,n)=>{const r=typeof e=="string"?z(e,!0):e;if(!r){n(e);return}be([r||e],o=>{if(o.length&&r){const s=F(r);if(s){t({...$,...s});return}}n(e)})});function On(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function Mn(e,t){const n=typeof e=="string"?z(e,!0,!0):null;if(!n){const s=On(e);return{value:e,data:s}}const r=F(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=be([n],()=>t(e,n,F(n)));return{value:e,name:n,loading:o}}function ne(e){return e.hasAttribute("inline")}let ct=!1;try{ct=navigator.vendor.indexOf("Apple")===0}catch{}function Rn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(ct||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const En=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Nn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ue(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(En);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Nn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const _n=e=>e==="unset"||e==="undefined"||e==="none";function at(e,t){const n={...$,...e},r={...Qe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const x=[],I=b.hFlip,T=b.vFlip;let w=b.rotate;I?T?w+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):T&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let y;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:y=o.height/2+o.top,x.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,x.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}w%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?l:a,u=ue(d,c/l)):(u=i==="auto"?c:i,d=a===null?ue(u,l/c):a==="auto"?l:a);const p={},g=(b,x)=>{_n(x)||(p[b]=x.toString())};return g("width",u),g("height",d),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:s}}const qn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let X=qn();function Fn(e){X=e}function Bn(){return X}function $n(e,t){const n=K(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function zn(e){return e===404}const Hn=(e,t,n)=>{const r=[],o=$n(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Dn(e){if(typeof e=="string"){const t=K(e);if(t)return t.path}return"/"}const Vn=(e,t,n)=>{if(!X){n("abort",424);return}let r=Dn(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;X(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(zn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Un={prepare:Hn,send:Vn};function Ee(e,t){switch(e){case"local":case"session":O[e]=t;break;case"all":for(const n in O)O[n]=t;break}}const oe="data-style";let lt="";function Qn(e){lt=e}function Ne(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(oe));n||(n=document.createElement("style"),n.setAttribute(oe,oe),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+lt}function ut(){Pe("",Un),Je(!0);let e;try{e=window}catch{}if(e){if(it(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ae(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;je(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ee(n,!0),disableCache:n=>Ee(n,!1),iconExists:pn,getIcon:hn,listIcons:dn,addIcon:Xe,addCollection:Ae,calculateSize:ue,buildIcon:at,loadIcons:be,loadIcon:Ln,addAPIProvider:je,appendCustomStyle:Qn,_api:{getAPIConfig:K,setAPIModule:Pe,sendAPIQuery:et,setFetch:Fn,getFetch:Bn,listAPIProviders:In}}}function ft(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Wn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Gn(e){return"data:image/svg+xml,"+Wn(e)}function Zn(e){return'url("'+Gn(e)+'")'}const fe={"background-color":"currentColor"},dt={"background-color":"transparent"},_e={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},qe={"-webkit-mask":fe,mask:fe,background:dt};for(const e in qe){const t=qe[e];for(const n in _e)t[e+"-"+n]=_e[n]}function Fe(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Jn(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=ft(o,{...s,width:t.width+"",height:t.height+""}),a=Zn(i),c=r.style,l={"--svg":a,width:Fe(s.width),height:Fe(s.height),...n?fe:dt};for(const u in l)c.setProperty(u,l[u]);return r}let _;function Xn(){try{_=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{_=null}}function Yn(e){return _===void 0&&Xn(),_?_.createHTML(e):e}function Kn(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=ft(e.body,n);return t.innerHTML=Yn(o),t.firstChild}function Be(e,t){const n=t.icon.data,r=t.customisations,o=at(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=Kn(o);break;default:i=Jn(o,{...$,...n},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function $e(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function eo(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();D(this,"_shadowRoot");D(this,"_state");D(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=ne(this);Ne(c,l),this._state=$e({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=ne(this),u=this._state;l!==u.inline&&(u.inline=l,Ne(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return ne(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Be(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),d=Se(this);(c.attrMode!==u||rn(c.customisations,d))&&this._renderIcon(c.icon,d,u)}_iconChanged(c){const l=Mn(c,(u,d,p)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:d,data:p};b.data?this._gotIconData(b):g.icon=b});l.data?this._gotIconData(l):this._state=$e(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Se(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const d=Rn(c.data.body,u),p=this._state.inline;Be(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=ut();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}eo()||ut();const to=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),pt=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),H=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:H(r[n],t,n)}):t(r)),no=(e,t="children")=>{const n=[];return H(e,r=>n.push(r),t),n},ye=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=ye(o,t,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return t(r,s)}),oo=e=>/^https?:\/\//.test(e),ro=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const t=o=>o.endsWith("/")?o:`${o}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},so=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>ro(r.path));return t!=null&&t.length?t.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,t[0]).index:-1};var ze,He;const de=((ze=window==null?void 0:window.blocklet)==null?void 0:ze.groupPrefix)||((He=window==null?void 0:window.blocklet)==null?void 0:He.prefix)||"/",io=e=>{const t={...e},n=e==null?void 0:e.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},ht=(e,t="en")=>{if(!(e!=null&&e.length))return e;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(oo(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return H(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t),_rawLink:o.link}},"items")},co=e=>H(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),ao=e=>{if(!(e!=null&&e.length))return null;const t=co(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},lo=e=>{if(!e)return null;const t={...e};return t.theme=io(t.theme),t.navigation=ao(uo(t.navigation)),t},uo=(e=[])=>ye(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),gt=(e,t)=>ye(e,(n,r)=>{var s;const o=!n.role||t&&n.role.includes(t);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),fo={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},po={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function xe({session:e,locale:t,size:n}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=e==null?void 0:e.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),s=A.useRef(null),i=Pt({open:!1}),a=jt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:m.jsxs(m.Fragment,{children:[m.jsx(kt,{size:"medium",ref:s,onClick:()=>a(),children:m.jsx(Ce,{icon:fo,fontSize:n,style:{transform:"scale(1.08)"}})}),m.jsx(Lt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>m.jsx(Ot,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:m.jsx(Mt,{...c,timeout:350,children:m.jsxs(Rt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:P.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${P.gray6}, 0px 0px 0px 1px ${P.gray6}`},children:[m.jsx(Et,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u;return m.jsx(Wt,{disablePadding:!0,children:m.jsxs(Kt,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:P.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?m.jsx(Nt,{component:"img",src:`${_t}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):m.jsx(Ce,{fontSize:50,icon:l.icon||po,color:P.textSubtitle}),m.jsx(qt,{sx:{fontSize:"12px",color:P.textBase,textAlign:"center",lineHeight:"normal"},children:Ft(l.title,t)})]})},l.id)})}),m.jsx(Bt,{session:e,children:m.jsx($t,{variant:"outlined",fullWidth:!0,href:zt,sx:{mt:1,borderRadius:2,color:P.textBase,borderColor:P.lineBorderStrong,"&:hover":{color:P.primaryBase,borderColor:P.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}xe.propTypes={session:f.object.isRequired,locale:f.string,size:f.number};xe.defaultProps={locale:"en",size:24};function we({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var p,g,b,x;const r=A.useContext(De),{locale:o}=Ve()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((p=r==null?void 0:r.session)!=null&&p.user);let c=ht((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=gt(c,(x=(b=r==null?void 0:r.session)==null?void 0:b.user)==null?void 0:x.role);const u=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let I=[];if(i&&o&&I.push(m.jsx(Gt,{showText:!1},"locale-selector")),s&&r){const T=[];a&&(c?c.slice(0,5):[]).forEach(y=>{T.push({label:y.title,icon:y.icon?m.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),I.push(m.jsx(xe,{session:r.session,locale:o},"session-blocklet")),I.push(m.jsx(Ht,{session:r.session,locale:o,menu:T,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(I=t(I)||[]),I})();return A.createElement(m.Fragment,null,...Array.isArray(u)?u:[u])}we.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:pt};we.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const ho=()=>{const e=Dt();A.useEffect(()=>{e.wallet&&Vt.call("arcHideTopBar","{}")},[e])};function mt({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var M;ho();const a=A.useContext(De),c=(M=a==null?void 0:a.session)==null?void 0:M.user,l=c==null?void 0:c.role,{locale:u}=Ve()||{},d=A.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return lo(C)}catch(h){return console.error("Failed to format blocklet info",h,C),C}},[e]),{localizedNav:p,flattened:g,matchedIndex:b}=A.useMemo(()=>{var j;let C=ht((j=d==null?void 0:d.navigation)==null?void 0:j.dashboard,u)||[];C=gt(C,l),C=H(C,S=>({title:S.title,url:S.link,icon:S.icon?m.jsx("iconify-icon",{height:"100%",width:"100%",icon:S.icon}):null,external:!0,children:S.items}),"items");const h=no(C).filter(S=>!!S.url),v=so(h.map(S=>S.url));return v!==-1&&(h[v].active=!0),{localizedNav:C,flattened:h,matchedIndex:v}},[d,u,l]),x=typeof s=="function"?s(p):[...p,...s];if(A.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),A.useLayoutEffect(()=>{c&&(g!=null&&g.length)&&b===-1&&n&&n()},[n,g,b]),!d.appName)return null;const{appLogo:I,appLogoRect:T,appName:w}=d,y=m.jsx(we,{formattedBlocklet:d,addons:r,sessionManagerProps:o});return m.jsx(Ut,{title:w,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:de,logo:m.jsx("img",{src:T||I,alt:"logo"}),addons:y,...i.headerProps}})}mt.propTypes={meta:to,fallbackUrl:f.string,invalidPathFallback:f.func,headerAddons:f.oneOfType([f.func,f.node]),sessionManagerProps:pt,links:f.oneOfType([f.array,f.func])};mt.defaultProps={meta:{},fallbackUrl:de,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=de}},links:[]};export{to as B,mt as D,we as H,Kt as L,no as a,so as b,lo as f,ht as g,oo as i,H as m,de as p,ho as u};
11
+ */const Ue=Object.freeze({left:0,top:0,width:16,height:16}),Z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$=Object.freeze({...Ue,...Z}),re=Object.freeze({...$,body:"",hidden:!1}),en=Object.freeze({width:null,height:null}),Qe=Object.freeze({...en,...Z});function tn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const nn=/[\s,]+/;function on(e,t){t.split(nn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Ge={...Qe,preserveAspectRatio:""};function Se(e){const t={...Ge},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=tn(n("rotate","")),on(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function rn(e,t){for(const n in Ge)if(e[n]!==t[n])return!0;return!1}const N=/^[a-z0-9]+(-[a-z0-9]+)*$/,z=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!Q(l)?null:l}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Q(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!Q(a,n)?null:a}return null},Q=(e,t)=>e?!!((e.provider===""||e.provider.match(N))&&(t&&e.prefix===""||e.prefix.match(N))&&e.name.match(N)):!1;function sn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Te(e,t){const n=sn(e,t);for(const r in re)r in Z?r in e&&!(r in n)&&(n[r]=Z[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function cn(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function an(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=Te(r[a]||o[a],s)}return i(t),n.forEach(i),Te(e,s)}function We(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=cn(e);for(const o in r){const s=r[o];s&&(t(o,an(e,o,s)),n.push(o))}return n}const ln={provider:"",aliases:{},not_found:{},...Ue};function ee(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ze(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ee(e,ln))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(N)||typeof s.body!="string"||!ee(s,re))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(N)||typeof i!="string"||!n[i]&&!r[i]||!ee(s,re))return null}return t}const J=Object.create(null);function un(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function P(e,t){const n=J[e]||(J[e]=Object.create(null));return n[t]||(n[t]=un(e,t))}function pe(e,t){return Ze(t)?We(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function fn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function dn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(J)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(J[o]||{})).forEach(i=>{const a=P(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let q=!1;function Je(e){return typeof e=="boolean"&&(q=e),q}function F(e){const t=typeof e=="string"?z(e,!0,q):e;if(t){const n=P(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Xe(e,t){const n=z(e,!0,q);if(!n)return!1;const r=P(n.provider,n.prefix);return fn(r,n.name,t)}function Ae(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),q&&!t&&!e.prefix){let o=!1;return Ze(e)&&(e.prefix="",We(e,(s,i)=>{i&&Xe(s,i)&&(o=!0)})),o}const n=e.prefix;if(!Q({provider:t,prefix:n,name:"a"}))return!1;const r=P(t,n);return!!pe(r,e)}function pn(e){return!!F(e)}function hn(e){const t=F(e);return t?{...$,...t}:null}function gn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),l=c[i]||(c[i]=P(s,i));let u;a in l.icons?u=t.loaded:i===""||l.missing.has(a)?u=t.missing:u=t.pending;const d={provider:s,prefix:i,name:a};u.push(d)}),t}function Ye(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function mn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])i.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))i.missing.push({provider:r,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Ye([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let bn=0;function yn(e,t,n){const r=bn++,o=Ye.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const se=Object.create(null);function ke(e,t){se[e]=t}function ie(e){return se[e]||se[""]}function xn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?z(o,t,n):o;s&&r.push(s)}),r}var wn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const v=Math.floor(Math.random()*h.length);i.push(h[v]),h=h.slice(0,v).concat(h.slice(v+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,u,d=null,p=[],g=[];typeof r=="function"&&g.push(r);function b(){d&&(clearTimeout(d),d=null)}function x(){c==="pending"&&(c="aborted"),b(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function I(h,v){v&&(g=[]),typeof h=="function"&&g.push(h)}function T(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:p.length,subscribe:I,abort:x}}function w(){c="failed",g.forEach(h=>{h(void 0,u)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function O(h,v,j){const S=v!=="success";switch(p=p.filter(L=>L!==h),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(v==="abort"){u=j,w();return}if(S){u=j,p.length||(i.length?C():w());return}if(b(),y(),!e.random){const L=e.resources.indexOf(h.resource);L!==-1&&L!==e.index&&(e.index=L)}c="completed",g.forEach(L=>{L(j)})}function C(){if(c!=="pending")return;b();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{b(),c==="pending"&&(y(),w())},e.timeout);return}w();return}const v={status:"pending",resource:h,callback:(j,S)=>{O(v,j,S)}};p.push(v),l++,d=setTimeout(C,e.rotate),n(h,t,v.callback)}return setTimeout(C),T}function Ke(e){const t={...wn,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const u=vn(t,a,c,(d,p)=>{r(),l&&l(d,p)});return n.push(u),u}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function he(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 Y=Object.create(null),E=["https://api.simplesvg.com","https://api.unisvg.com"],G=[];for(;E.length>0;)E.length===1||Math.random()>.5?G.push(E.shift()):G.push(E.pop());Y[""]=he({resources:["https://api.iconify.design"].concat(G)});function je(e,t){const n=he(t);return n===null?!1:(Y[e]=n,!0)}function K(e){return Y[e]}function In(){return Object.keys(Y)}function Pe(){}const te=Object.create(null);function Cn(e){if(!te[e]){const t=K(e);if(!t)return;const n=Ke(t),r={config:t,redundancy:n};te[e]=r}return te[e]}function et(e,t,n){let r,o;if(typeof e=="string"){const s=ie(e);if(!s)return n(void 0,424),Pe;o=s.send;const i=Cn(e);i&&(r=i.redundancy)}else{const s=he(e);if(s){r=Ke(s);const i=e.resources?e.resources[0]:"",a=ie(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),Pe):r.query(t,o,n)().abort}const Le="iconify2",B="iconify",tt=B+"-count",Me=B+"-version",nt=36e5,Sn=168;function ce(e,t){try{return e.getItem(t)}catch{}}function ge(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Oe(e,t){try{e.removeItem(t)}catch{}}function ae(e,t){return ge(e,tt,t.toString())}function le(e){return parseInt(ce(e,tt))||0}const M={local:!0,session:!0},ot={local:new Set,session:new Set};let me=!1;function Tn(e){me=e}let U=typeof window>"u"?{}:window;function rt(e){const t=e+"Storage";try{if(U&&U[t]&&typeof U[t].length=="number")return U[t]}catch{}M[e]=!1}function st(e,t){const n=rt(e);if(!n)return;const r=ce(n,Me);if(r!==Le){if(r){const a=le(n);for(let c=0;c<a;c++)Oe(n,B+c.toString())}ge(n,Me,Le),ae(n,0);return}const o=Math.floor(Date.now()/nt)-Sn,s=a=>{const c=B+a.toString(),l=ce(n,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Oe(n,c)}};let i=le(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ae(n,i)):ot[e].add(a))}function it(){if(!me){Tn(!0);for(const e in M)st(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=P(r,o);if(!pe(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function An(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in M)st(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function kn(e,t){me||it();function n(r){let o;if(!M[r]||!(o=rt(r)))return;const s=ot[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=le(o),!ae(o,i+1))return;const a={cached:Math.floor(Date.now()/nt),provider:e.provider,data:t};return ge(o,B+i.toString(),JSON.stringify(a))}t.lastModified&&!An(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Re(){}function jn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,mn(e)}))}function Pn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ie(n)))return;s.prepare(n,r,o).forEach(a=>{et(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=pe(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),kn(e,c)}catch(l){console.error(l)}jn(e)})})}))}const be=(e,t)=>{const n=xn(e,!0,Je()),r=gn(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,Re)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,s.push(P(l,u));const d=o[l]||(o[l]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,p=P(l,u),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(d)||(g.add(d),o[l][u].push(d))}),s.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&Pn(c,o[l][u])}),t?yn(t,r,s):Re},Ln=e=>new Promise((t,n)=>{const r=typeof e=="string"?z(e,!0):e;if(!r){n(e);return}be([r||e],o=>{if(o.length&&r){const s=F(r);if(s){t({...$,...s});return}}n(e)})});function Mn(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function On(e,t){const n=typeof e=="string"?z(e,!0,!0):null;if(!n){const s=Mn(e);return{value:e,data:s}}const r=F(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=be([n],()=>t(e,n,F(n)));return{value:e,name:n,loading:o}}function ne(e){return e.hasAttribute("inline")}let ct=!1;try{ct=navigator.vendor.indexOf("Apple")===0}catch{}function Rn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(ct||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const En=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Nn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ue(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(En);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Nn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const _n=e=>e==="unset"||e==="undefined"||e==="none";function at(e,t){const n={...$,...e},r={...Qe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const x=[],I=b.hFlip,T=b.vFlip;let w=b.rotate;I?T?w+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):T&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let y;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:y=o.height/2+o.top,x.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,x.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}w%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?l:a,u=ue(d,c/l)):(u=i==="auto"?c:i,d=a===null?ue(u,l/c):a==="auto"?l:a);const p={},g=(b,x)=>{_n(x)||(p[b]=x.toString())};return g("width",u),g("height",d),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:s}}const qn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let X=qn();function Fn(e){X=e}function Bn(){return X}function $n(e,t){const n=K(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function zn(e){return e===404}const Hn=(e,t,n)=>{const r=[],o=$n(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Dn(e){if(typeof e=="string"){const t=K(e);if(t)return t.path}return"/"}const Vn=(e,t,n)=>{if(!X){n("abort",424);return}let r=Dn(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;X(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(zn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Un={prepare:Hn,send:Vn};function Ee(e,t){switch(e){case"local":case"session":M[e]=t;break;case"all":for(const n in M)M[n]=t;break}}const oe="data-style";let lt="";function Qn(e){lt=e}function Ne(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(oe));n||(n=document.createElement("style"),n.setAttribute(oe,oe),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+lt}function ut(){ke("",Un),Je(!0);let e;try{e=window}catch{}if(e){if(it(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ae(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;je(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ee(n,!0),disableCache:n=>Ee(n,!1),iconExists:pn,getIcon:hn,listIcons:dn,addIcon:Xe,addCollection:Ae,calculateSize:ue,buildIcon:at,loadIcons:be,loadIcon:Ln,addAPIProvider:je,appendCustomStyle:Qn,_api:{getAPIConfig:K,setAPIModule:ke,sendAPIQuery:et,setFetch:Fn,getFetch:Bn,listAPIProviders:In}}}function ft(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Gn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Wn(e){return"data:image/svg+xml,"+Gn(e)}function Zn(e){return'url("'+Wn(e)+'")'}const fe={"background-color":"currentColor"},dt={"background-color":"transparent"},_e={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},qe={"-webkit-mask":fe,mask:fe,background:dt};for(const e in qe){const t=qe[e];for(const n in _e)t[e+"-"+n]=_e[n]}function Fe(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Jn(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=ft(o,{...s,width:t.width+"",height:t.height+""}),a=Zn(i),c=r.style,l={"--svg":a,width:Fe(s.width),height:Fe(s.height),...n?fe:dt};for(const u in l)c.setProperty(u,l[u]);return r}let _;function Xn(){try{_=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{_=null}}function Yn(e){return _===void 0&&Xn(),_?_.createHTML(e):e}function Kn(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=ft(e.body,n);return t.innerHTML=Yn(o),t.firstChild}function Be(e,t){const n=t.icon.data,r=t.customisations,o=at(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=Kn(o);break;default:i=Jn(o,{...$,...n},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function $e(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function eo(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();D(this,"_shadowRoot");D(this,"_state");D(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=ne(this);Ne(c,l),this._state=$e({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=ne(this),u=this._state;l!==u.inline&&(u.inline=l,Ne(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return ne(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Be(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),d=Se(this);(c.attrMode!==u||rn(c.customisations,d))&&this._renderIcon(c.icon,d,u)}_iconChanged(c){const l=On(c,(u,d,p)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:d,data:p};b.data?this._gotIconData(b):g.icon=b});l.data?this._gotIconData(l):this._state=$e(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Se(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const d=Rn(c.data.body,u),p=this._state.inline;Be(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=ut();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}eo()||ut();const to=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),pt=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),H=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:H(r[n],t,n)}):t(r)),no=(e,t="children")=>{const n=[];return H(e,r=>n.push(r),t),n},ye=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=ye(o,t,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return t(r,s)}),oo=e=>/^https?:\/\//.test(e),ro=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const t=o=>o.endsWith("/")?o:`${o}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},so=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>ro(r.path));return t!=null&&t.length?t.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,t[0]).index:-1};var ze,He;const de=((ze=window==null?void 0:window.blocklet)==null?void 0:ze.groupPrefix)||((He=window==null?void 0:window.blocklet)==null?void 0:He.prefix)||"/",io=e=>{const t={...e},n=e==null?void 0:e.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},ht=(e,t="en")=>{if(!(e!=null&&e.length))return e;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(oo(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return H(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t),_rawLink:o.link}},"items")},co=e=>H(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),ao=e=>{if(!(e!=null&&e.length))return null;const t=co(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},lo=e=>{if(!e)return null;const t={...e};return t.theme=io(t.theme),t.navigation=ao(uo(t.navigation)),t},uo=(e=[])=>ye(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),gt=(e,t)=>ye(e,(n,r)=>{var s;const o=!n.role||t&&n.role.includes(t);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),fo={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},po={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function xe({session:e,locale:t,size:n}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=e==null?void 0:e.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),s=A.useRef(null),i=kt({open:!1}),a=jt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:m.jsxs(m.Fragment,{children:[m.jsx(Pt,{size:"medium",ref:s,onClick:()=>a(),children:m.jsx(Ce,{icon:fo,fontSize:n,style:{transform:"scale(1.08)"}})}),m.jsx(Lt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>m.jsx(Mt,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:m.jsx(Ot,{...c,timeout:350,children:m.jsxs(Rt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:k.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${k.gray6}, 0px 0px 0px 1px ${k.gray6}`},children:[m.jsx(Et,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u;return m.jsx(Gt,{disablePadding:!0,children:m.jsxs(Kt,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:k.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?m.jsx(Nt,{component:"img",src:`${_t}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):m.jsx(Ce,{fontSize:50,icon:l.icon||po,color:k.textSubtitle}),m.jsx(qt,{sx:{fontSize:"12px",color:k.textBase,textAlign:"center",lineHeight:"normal"},children:Ft(l.title,t)})]})},l.id)})}),m.jsx(Bt,{session:e,children:m.jsx($t,{variant:"outlined",fullWidth:!0,href:zt,sx:{mt:1,borderRadius:2,color:k.textBase,borderColor:k.lineBorderStrong,"&:hover":{color:k.primaryBase,borderColor:k.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}xe.propTypes={session:f.object.isRequired,locale:f.string,size:f.number};xe.defaultProps={locale:"en",size:24};function we({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var p,g,b,x;const r=A.useContext(De),{locale:o}=Ve()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((p=r==null?void 0:r.session)!=null&&p.user);let c=ht((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=gt(c,(x=(b=r==null?void 0:r.session)==null?void 0:b.user)==null?void 0:x.role);const u=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let I=[];if(i&&o&&I.push(m.jsx(Wt,{showText:!1},"locale-selector")),s&&r){const T=[];a&&(c?c.slice(0,5):[]).forEach(y=>{T.push({label:y.title,icon:y.icon?m.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),I.push(m.jsx(xe,{session:r.session,locale:o},"session-blocklet")),I.push(m.jsx(Ht,{session:r.session,locale:o,menu:T,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(I=t(I)||[]),I})();return A.createElement(m.Fragment,null,...Array.isArray(u)?u:[u])}we.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:pt};we.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const ho=()=>{const e=Dt();A.useEffect(()=>{e.wallet&&Vt.call("arcHideTopBar","{}")},[e])};function mt({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var O;ho();const a=A.useContext(De),c=(O=a==null?void 0:a.session)==null?void 0:O.user,l=c==null?void 0:c.role,{locale:u}=Ve()||{},d=A.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return lo(C)}catch(h){return console.error("Failed to format blocklet info",h,C),C}},[e]),{localizedNav:p,flattened:g,matchedIndex:b}=A.useMemo(()=>{var j;let C=ht((j=d==null?void 0:d.navigation)==null?void 0:j.dashboard,u)||[];C=gt(C,l),C=H(C,S=>({title:S.title,url:S.link,icon:S.icon?m.jsx("iconify-icon",{height:"100%",width:"100%",icon:S.icon}):null,external:!0,children:S.items}),"items");const h=no(C).filter(S=>!!S.url),v=so(h.map(S=>S.url));return v!==-1&&(h[v].active=!0),{localizedNav:C,flattened:h,matchedIndex:v}},[d,u,l]),x=typeof s=="function"?s(p):[...p,...s];if(A.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),A.useLayoutEffect(()=>{c&&(g!=null&&g.length)&&b===-1&&n&&n()},[n,g,b]),!d.appName)return null;const{appLogo:I,appLogoRect:T,appName:w}=d,y=m.jsx(we,{formattedBlocklet:d,addons:r,sessionManagerProps:o});return m.jsx(Ut,{title:w,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:de,logo:m.jsx("img",{src:T||I,alt:"logo"}),addons:y,...i.headerProps}})}mt.propTypes={meta:to,fallbackUrl:f.string,invalidPathFallback:f.func,headerAddons:f.oneOfType([f.func,f.node]),sessionManagerProps:pt,links:f.oneOfType([f.array,f.func])};mt.defaultProps={meta:{},fallbackUrl:de,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=de}},links:[]};export{to as B,mt as D,we as H,Kt as L,no as a,so as b,lo as f,ht as g,oo as i,H as m,de as p,ho as u};
@@ -1 +1 @@
1
- import{aF as ve,aG as me,aH as X,cJ as $e,aI as He,aL as p,r as d,aJ as Se,aK as ae,aN as L,j as u,aO as ge,as as Oe,cE as at,cK as Ae,cL as Xe,cM as De,aM as se,ai as it,cN as fe,cO as ct,bu as dt,aB as F,P as W}from"./index-DfZjT3WA.js";let U;function _e(){if(U)return U;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),U="reverse",e.scrollLeft>0?U="default":(e.scrollLeft=1,e.scrollLeft===0&&(U="negative")),document.body.removeChild(e),U}function ut(e,t){const l=e.scrollLeft;if(t!=="rtl")return l;switch(_e()){case"negative":return e.scrollWidth-e.clientWidth+l;case"reverse":return e.scrollWidth-e.clientWidth-l;default:return l}}function bt(e){return me("MuiTab",e)}const k=ve("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),pt=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ft=e=>{const{classes:t,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=e,g={root:["root",a&&v&&"labelIcon",`textColor${He(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return ge(g,bt,t)},ht=X($e,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.root,l.label&&l.icon&&t.labelIcon,t[`textColor${He(l.textColor)}`],l.fullWidth&&t.fullWidth,l.wrapped&&t.wrapped,{[`& .${k.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>p({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${k.iconWrapper}`]:p({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${k.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${k.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${k.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${k.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),xe=d.forwardRef(function(t,l){const s=Se({props:t,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:g="top",indicator:B,label:y,onChange:m,onClick:w,onFocus:j,selected:T,selectionFollowsFocus:x,textColor:D="inherit",value:R,wrapped:ie=!1}=s,_=ae(s,pt),V=p({},s,{disabled:a,disableFocusRipple:v,selected:T,icon:!!b,iconPosition:g,label:!!y,fullWidth:h,textColor:D,wrapped:ie}),q=ft(V),$=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:L(q.iconWrapper,b.props.className)}):b,ee=E=>{!T&&m&&m(E,R),w&&w(E)},K=E=>{x&&!T&&m&&m(E,R),j&&j(E)};return u.jsxs(ht,p({focusRipple:!v,className:L(q.root,n),ref:l,role:"tab","aria-selected":T,disabled:a,onClick:ee,onFocus:K,ownerState:V,tabIndex:T?0:-1},_,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[$,y]}):u.jsxs(d.Fragment,{children:[y,$]}),B]}))}),vt=Oe(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),mt=Oe(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function St(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function gt(e,t,l,s={},n=()=>{}){const{ease:a=St,duration:v=300}=s;let h=null;const b=t[e];let g=!1;const B=()=>{g=!0},y=m=>{if(g){n(new Error("Animation cancelled"));return}h===null&&(h=m);const w=Math.min(1,(m-h)/v);if(t[e]=a(w)*(l-b)+b,w>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const xt=["onChange"],yt={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ct(e){const{onChange:t}=e,l=ae(e,xt),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return at(()=>{const v=Ae(()=>{const b=s.current;a(),b!==s.current&&t(s.current)}),h=Xe(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[t]),d.useEffect(()=>{a(),t(s.current)},[t]),u.jsx("div",p({style:yt,ref:n},l))}function Bt(e){return me("MuiTabScrollButton",e)}const wt=ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Tt=["className","slots","slotProps","direction","orientation","disabled"],Mt=e=>{const{classes:t,orientation:l,disabled:s}=e;return ge({root:["root",l,s&&"disabled"]},Bt,t)},It=X($e,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.root,l.orientation&&t[l.orientation]]}})(({ownerState:e})=>p({width:40,flexShrink:0,opacity:.8,[`&.${wt.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Rt=d.forwardRef(function(t,l){var s,n;const a=Se({props:t,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:g}=a,B=ae(a,Tt),y=De(),m=p({isRtl:y},a),w=Mt(m),j=(s=h.StartScrollButtonIcon)!=null?s:vt,T=(n=h.EndScrollButtonIcon)!=null?n:mt,x=se({elementType:j,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),D=se({elementType:T,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(It,p({component:"div",className:L(w.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(j,p({},x)):u.jsx(T,p({},D))}))});function Et(e){return me("MuiTabs",e)}const he=ve("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),zt=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ke=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Le=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ne=(e,t,l)=>{let s=!1,n=l(e,t);for(;n;){if(n===e.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(e,n);else{n.focus();return}}},Wt=e=>{const{vertical:t,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=e;return ge({root:["root",t&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Et,b)},Pt=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[{[`& .${he.scrollButtons}`]:t.scrollButtons},{[`& .${he.scrollButtons}`]:l.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,l.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${he.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Nt=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.scroller,l.fixed&&t.fixed,l.hideScrollbar&&t.hideScrollbar,l.scrollableX&&t.scrollableX,l.scrollableY&&t.scrollableY]}})(({ownerState:e})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),kt=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.flexContainer,l.vertical&&t.flexContainerVertical,l.centered&&t.centered]}})(({ownerState:e})=>p({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Lt=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Ft=X(Ct)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Fe={},ye=d.forwardRef(function(t,l){const s=Se({props:t,name:"MuiTabs"}),n=it(),a=De(),{"aria-label":v,"aria-labelledby":h,action:b,centered:g=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:j="primary",onChange:T,orientation:x="horizontal",ScrollButtonComponent:D=Rt,scrollButtons:R="auto",selectionFollowsFocus:ie,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:$={},textColor:ee="primary",value:K,variant:E="standard",visibleScrollbar:ce=!1}=s,Ue=ae(s,zt),M=E==="scrollable",C=x==="vertical",G=C?"scrollTop":"scrollLeft",te=C?"top":"left",oe=C?"bottom":"right",de=C?"clientHeight":"clientWidth",J=C?"height":"width",H=p({},s,{component:m,allowScrollButtonsMobile:w,indicatorColor:j,orientation:x,vertical:C,scrollButtons:R,textColor:ee,variant:E,visibleScrollbar:ce,fixed:!M,hideScrollbar:M&&!ce,scrollableX:M&&!C,scrollableY:M&&C,centered:g&&!M,scrollButtonsHideMobile:!w}),P=Wt(H),Ye=se({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:H}),Ve=se({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:H}),[Ce,Ge]=d.useState(!1),[O,Be]=d.useState(Fe),[we,Je]=d.useState(!1),[Te,Qe]=d.useState(!1),[Me,Ze]=d.useState(!1),[Ie,et]=d.useState({overflow:"hidden",scrollbarWidth:0}),Re=new Map,z=d.useRef(null),A=d.useRef(null),Ee=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ut(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&K!==!1){const i=A.current.children;if(i.length>0){const f=i[Re.get(K)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=fe(()=>{const{tabsMeta:o,tabMeta:r}=Ee();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const f={[i]:c,[J]:r?r[J]:0};if(isNaN(O[i])||isNaN(O[J]))Be(f);else{const S=Math.abs(O[i]-f[i]),I=Math.abs(O[J]-f[J]);(S>=1||I>=1)&&Be(f)}}),ue=(o,{animation:r=!0}={})=>{r?gt(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},ze=o=>{let r=z.current[G];C?r+=o:(r+=o*(a?-1:1),r*=a&&_e()==="reverse"?-1:1),ue(r)},We=()=>{const o=z.current[de];let r=0;const c=Array.from(A.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[de]>o){i===0&&(r=o);break}r+=f[de]}return r},tt=()=>{ze(-1*We())},ot=()=>{ze(We())},lt=d.useCallback(o=>{et({overflow:null,scrollbarWidth:o})},[]),rt=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Ft,{onChange:lt,className:L(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(R==="auto"&&(we||Te)||R===!0);return o.scrollButtonStart=c?u.jsx(D,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ye},orientation:x,direction:a?"right":"left",onClick:tt,disabled:!we},$,{className:L(P.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?u.jsx(D,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ve},orientation:x,direction:a?"left":"right",onClick:ot,disabled:!Te},$,{className:L(P.scrollButtons,$.className)})):null,o},Pe=fe(o=>{const{tabsMeta:r,tabMeta:c}=Ee();if(!(!c||!r)){if(c[te]<r[te]){const i=r[G]+(c[te]-r[te]);ue(i,{animation:o})}else if(c[oe]>r[oe]){const i=r[G]+(c[oe]-r[oe]);ue(i,{animation:o})}}}),le=fe(()=>{M&&R!==!1&&Ze(!Me)});d.useEffect(()=>{const o=Ae(()=>{z.current&&Q()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Z=>{var N;(N=r)==null||N.unobserve(Z)}),I.addedNodes.forEach(Z=>{var N;(N=r)==null||N.observe(Z)})}),o(),le()},i=Xe(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(A.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(A.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=f)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[Q,le]),d.useEffect(()=>{const o=Array.from(A.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&R!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},S=pe=>{Je(!pe[0].isIntersecting)},I=new IntersectionObserver(S,f);I.observe(c);const Z=pe=>{Qe(!pe[0].isIntersecting)},N=new IntersectionObserver(Z,f);return N.observe(i),()=>{I.disconnect(),N.disconnect()}}},[M,R,Me,B==null?void 0:B.length]),d.useEffect(()=>{Ge(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Pe(Fe!==O)},[Pe,O]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:le}),[Q,le]);const Ne=u.jsx(Lt,p({},q,{className:L(P.indicator,q.className),ownerState:H,style:p({},O,q.style)}));let re=0;const nt=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?re:o.props.value;Re.set(r,re);const c=r===K;return re+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ce&&Ne,selected:c,selectionFollowsFocus:ie,onChange:T,textColor:ee,value:r},re===1&&K===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),st=o=>{const r=A.current,c=ct(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",S="ArrowLeft"),o.key){case f:o.preventDefault(),ne(r,c,Le);break;case S:o.preventDefault(),ne(r,c,ke);break;case"Home":o.preventDefault(),ne(r,null,ke);break;case"End":o.preventDefault(),ne(r,null,Le);break}},be=rt();return u.jsxs(Pt,p({className:L(P.root,y),ownerState:H,ref:l,as:m},Ue,{children:[be.scrollButtonStart,be.scrollbarSizeListener,u.jsxs(Nt,{className:P.scroller,ownerState:H,style:{overflow:Ie.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:ce?void 0:-Ie.scrollbarWidth},ref:z,children:[u.jsx(kt,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:H,onKeyDown:st,ref:A,role:"tablist",children:nt}),Ce&&Ne]}),be.scrollButtonEnd]}))}),je="index",Y={tabs:`${je}-tabs`,tab:`${je}-tab`},jt=dt(ye)(({theme:e})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[e.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qe({tabs:e,current:t,onChange:l,...s}){return u.jsx(ye,{scrollButtons:"auto",value:t,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:F.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:F.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:F.lineBorderBase,color:F.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:e.map(n=>u.jsx(xe,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qe.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Ke({tabs:e,current:t,onChange:l,...s}){return u.jsx(ye,{scrollButtons:"auto",value:t,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:F.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:F.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:F.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:F.foregroundsFgBase},...s.sx},children:e.map(n=>u.jsx(xe,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Ke.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function $t({tabs:e,current:t,onChange:l,...s}){return s.variant==="card"?u.jsx(qe,{...s,tabs:e,current:t,onChange:l}):s.variant==="line"?u.jsx(Ke,{...s,tabs:e,current:t,onChange:l}):u.jsx(jt,{scrollButtons:"auto",variant:"scrollable",value:t,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Y.tabs,s.className||""].join(" "),children:e.map(n=>u.jsx(xe,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}$t.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{mt as K,$t as T,vt as a,ye as b,xe as c,he as t};
1
+ import{aE as ve,aF as me,aG as X,cJ as $e,aH as He,aK as p,r as d,aI as ge,aJ as ae,aM as L,j as u,aN as Se,at as Ae,cE as at,cK as Oe,cL as Xe,cM as De,aL as se,aj as it,cN as fe,cO as ct,bt as dt,bE as F,P as W}from"./index-BaC4EhQh.js";let U;function _e(){if(U)return U;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),U="reverse",e.scrollLeft>0?U="default":(e.scrollLeft=1,e.scrollLeft===0&&(U="negative")),document.body.removeChild(e),U}function ut(e,t){const l=e.scrollLeft;if(t!=="rtl")return l;switch(_e()){case"negative":return e.scrollWidth-e.clientWidth+l;case"reverse":return e.scrollWidth-e.clientWidth-l;default:return l}}function bt(e){return me("MuiTab",e)}const k=ve("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),pt=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ft=e=>{const{classes:t,textColor:l,fullWidth:s,wrapped:n,icon:a,label:v,selected:h,disabled:b}=e,S={root:["root",a&&v&&"labelIcon",`textColor${He(l)}`,s&&"fullWidth",n&&"wrapped",h&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return Se(S,bt,t)},ht=X($e,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.root,l.label&&l.icon&&t.labelIcon,t[`textColor${He(l.textColor)}`],l.fullWidth&&t.fullWidth,l.wrapped&&t.wrapped,{[`& .${k.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>p({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${k.iconWrapper}`]:p({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${k.selected}`]:{opacity:1},[`&.${k.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${k.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${k.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${k.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${k.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),xe=d.forwardRef(function(t,l){const s=ge({props:t,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:v=!1,fullWidth:h,icon:b,iconPosition:S="top",indicator:B,label:y,onChange:m,onClick:w,onFocus:j,selected:T,selectionFollowsFocus:x,textColor:D="inherit",value:R,wrapped:ie=!1}=s,_=ae(s,pt),V=p({},s,{disabled:a,disableFocusRipple:v,selected:T,icon:!!b,iconPosition:S,label:!!y,fullWidth:h,textColor:D,wrapped:ie}),q=ft(V),$=b&&y&&d.isValidElement(b)?d.cloneElement(b,{className:L(q.iconWrapper,b.props.className)}):b,ee=E=>{!T&&m&&m(E,R),w&&w(E)},K=E=>{x&&!T&&m&&m(E,R),j&&j(E)};return u.jsxs(ht,p({focusRipple:!v,className:L(q.root,n),ref:l,role:"tab","aria-selected":T,disabled:a,onClick:ee,onFocus:K,ownerState:V,tabIndex:T?0:-1},_,{children:[S==="top"||S==="start"?u.jsxs(d.Fragment,{children:[$,y]}):u.jsxs(d.Fragment,{children:[y,$]}),B]}))}),vt=Ae(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),mt=Ae(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function gt(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function St(e,t,l,s={},n=()=>{}){const{ease:a=gt,duration:v=300}=s;let h=null;const b=t[e];let S=!1;const B=()=>{S=!0},y=m=>{if(S){n(new Error("Animation cancelled"));return}h===null&&(h=m);const w=Math.min(1,(m-h)/v);if(t[e]=a(w)*(l-b)+b,w>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(y)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(y),B)}const xt=["onChange"],yt={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ct(e){const{onChange:t}=e,l=ae(e,xt),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return at(()=>{const v=Oe(()=>{const b=s.current;a(),b!==s.current&&t(s.current)}),h=Xe(n.current);return h.addEventListener("resize",v),()=>{v.clear(),h.removeEventListener("resize",v)}},[t]),d.useEffect(()=>{a(),t(s.current)},[t]),u.jsx("div",p({style:yt,ref:n},l))}function Bt(e){return me("MuiTabScrollButton",e)}const wt=ve("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Tt=["className","slots","slotProps","direction","orientation","disabled"],Mt=e=>{const{classes:t,orientation:l,disabled:s}=e;return Se({root:["root",l,s&&"disabled"]},Bt,t)},It=X($e,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.root,l.orientation&&t[l.orientation]]}})(({ownerState:e})=>p({width:40,flexShrink:0,opacity:.8,[`&.${wt.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Rt=d.forwardRef(function(t,l){var s,n;const a=ge({props:t,name:"MuiTabScrollButton"}),{className:v,slots:h={},slotProps:b={},direction:S}=a,B=ae(a,Tt),y=De(),m=p({isRtl:y},a),w=Mt(m),j=(s=h.StartScrollButtonIcon)!=null?s:vt,T=(n=h.EndScrollButtonIcon)!=null?n:mt,x=se({elementType:j,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),D=se({elementType:T,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(It,p({component:"div",className:L(w.root,v),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:S==="left"?u.jsx(j,p({},x)):u.jsx(T,p({},D))}))});function Et(e){return me("MuiTabs",e)}const he=ve("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),zt=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ke=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Le=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ne=(e,t,l)=>{let s=!1,n=l(e,t);for(;n;){if(n===e.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(e,n);else{n.focus();return}}},Wt=e=>{const{vertical:t,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:v,scrollButtonsHideMobile:h,classes:b}=e;return Se({root:["root",t&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",v&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",h&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Et,b)},Pt=X("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[{[`& .${he.scrollButtons}`]:t.scrollButtons},{[`& .${he.scrollButtons}`]:l.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,l.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>p({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${he.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Nt=X("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.scroller,l.fixed&&t.fixed,l.hideScrollbar&&t.hideScrollbar,l.scrollableX&&t.scrollableX,l.scrollableY&&t.scrollableY]}})(({ownerState:e})=>p({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),kt=X("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:l}=e;return[t.flexContainer,l.vertical&&t.flexContainerVertical,l.centered&&t.centered]}})(({ownerState:e})=>p({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Lt=X("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>p({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Ft=X(Ct)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Fe={},ye=d.forwardRef(function(t,l){const s=ge({props:t,name:"MuiTabs"}),n=it(),a=De(),{"aria-label":v,"aria-labelledby":h,action:b,centered:S=!1,children:B,className:y,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:j="primary",onChange:T,orientation:x="horizontal",ScrollButtonComponent:D=Rt,scrollButtons:R="auto",selectionFollowsFocus:ie,slots:_={},slotProps:V={},TabIndicatorProps:q={},TabScrollButtonProps:$={},textColor:ee="primary",value:K,variant:E="standard",visibleScrollbar:ce=!1}=s,Ue=ae(s,zt),M=E==="scrollable",C=x==="vertical",G=C?"scrollTop":"scrollLeft",te=C?"top":"left",oe=C?"bottom":"right",de=C?"clientHeight":"clientWidth",J=C?"height":"width",H=p({},s,{component:m,allowScrollButtonsMobile:w,indicatorColor:j,orientation:x,vertical:C,scrollButtons:R,textColor:ee,variant:E,visibleScrollbar:ce,fixed:!M,hideScrollbar:M&&!ce,scrollableX:M&&!C,scrollableY:M&&C,centered:S&&!M,scrollButtonsHideMobile:!w}),P=Wt(H),Ye=se({elementType:_.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:H}),Ve=se({elementType:_.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:H}),[Ce,Ge]=d.useState(!1),[A,Be]=d.useState(Fe),[we,Je]=d.useState(!1),[Te,Qe]=d.useState(!1),[Me,Ze]=d.useState(!1),[Ie,et]=d.useState({overflow:"hidden",scrollbarWidth:0}),Re=new Map,z=d.useRef(null),O=d.useRef(null),Ee=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ut(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&K!==!1){const i=O.current.children;if(i.length>0){const f=i[Re.get(K)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},Q=fe(()=>{const{tabsMeta:o,tabMeta:r}=Ee();let c=0,i;if(C)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const g=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+g)}const f={[i]:c,[J]:r?r[J]:0};if(isNaN(A[i])||isNaN(A[J]))Be(f);else{const g=Math.abs(A[i]-f[i]),I=Math.abs(A[J]-f[J]);(g>=1||I>=1)&&Be(f)}}),ue=(o,{animation:r=!0}={})=>{r?St(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},ze=o=>{let r=z.current[G];C?r+=o:(r+=o*(a?-1:1),r*=a&&_e()==="reverse"?-1:1),ue(r)},We=()=>{const o=z.current[de];let r=0;const c=Array.from(O.current.children);for(let i=0;i<c.length;i+=1){const f=c[i];if(r+f[de]>o){i===0&&(r=o);break}r+=f[de]}return r},tt=()=>{ze(-1*We())},ot=()=>{ze(We())},lt=d.useCallback(o=>{et({overflow:null,scrollbarWidth:o})},[]),rt=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Ft,{onChange:lt,className:L(P.scrollableX,P.hideScrollbar)}):null;const c=M&&(R==="auto"&&(we||Te)||R===!0);return o.scrollButtonStart=c?u.jsx(D,p({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ye},orientation:x,direction:a?"right":"left",onClick:tt,disabled:!we},$,{className:L(P.scrollButtons,$.className)})):null,o.scrollButtonEnd=c?u.jsx(D,p({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ve},orientation:x,direction:a?"left":"right",onClick:ot,disabled:!Te},$,{className:L(P.scrollButtons,$.className)})):null,o},Pe=fe(o=>{const{tabsMeta:r,tabMeta:c}=Ee();if(!(!c||!r)){if(c[te]<r[te]){const i=r[G]+(c[te]-r[te]);ue(i,{animation:o})}else if(c[oe]>r[oe]){const i=r[G]+(c[oe]-r[oe]);ue(i,{animation:o})}}}),le=fe(()=>{M&&R!==!1&&Ze(!Me)});d.useEffect(()=>{const o=Oe(()=>{z.current&&Q()});let r;const c=g=>{g.forEach(I=>{I.removedNodes.forEach(Z=>{var N;(N=r)==null||N.unobserve(Z)}),I.addedNodes.forEach(Z=>{var N;(N=r)==null||N.observe(Z)})}),o(),le()},i=Xe(z.current);i.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(O.current.children).forEach(g=>{r.observe(g)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(O.current,{childList:!0})),()=>{var g,I;o.clear(),i.removeEventListener("resize",o),(g=f)==null||g.disconnect(),(I=r)==null||I.disconnect()}},[Q,le]),d.useEffect(()=>{const o=Array.from(O.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&R!==!1){const c=o[0],i=o[r-1],f={root:z.current,threshold:.99},g=pe=>{Je(!pe[0].isIntersecting)},I=new IntersectionObserver(g,f);I.observe(c);const Z=pe=>{Qe(!pe[0].isIntersecting)},N=new IntersectionObserver(Z,f);return N.observe(i),()=>{I.disconnect(),N.disconnect()}}},[M,R,Me,B==null?void 0:B.length]),d.useEffect(()=>{Ge(!0)},[]),d.useEffect(()=>{Q()}),d.useEffect(()=>{Pe(Fe!==A)},[Pe,A]),d.useImperativeHandle(b,()=>({updateIndicator:Q,updateScrollButtons:le}),[Q,le]);const Ne=u.jsx(Lt,p({},q,{className:L(P.indicator,q.className),ownerState:H,style:p({},A,q.style)}));let re=0;const nt=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?re:o.props.value;Re.set(r,re);const c=r===K;return re+=1,d.cloneElement(o,p({fullWidth:E==="fullWidth",indicator:c&&!Ce&&Ne,selected:c,selectionFollowsFocus:ie,onChange:T,textColor:ee,value:r},re===1&&K===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),st=o=>{const r=O.current,c=ct(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=x==="horizontal"?"ArrowLeft":"ArrowUp",g=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(f="ArrowRight",g="ArrowLeft"),o.key){case f:o.preventDefault(),ne(r,c,Le);break;case g:o.preventDefault(),ne(r,c,ke);break;case"Home":o.preventDefault(),ne(r,null,ke);break;case"End":o.preventDefault(),ne(r,null,Le);break}},be=rt();return u.jsxs(Pt,p({className:L(P.root,y),ownerState:H,ref:l,as:m},Ue,{children:[be.scrollButtonStart,be.scrollbarSizeListener,u.jsxs(Nt,{className:P.scroller,ownerState:H,style:{overflow:Ie.overflow,[C?`margin${a?"Left":"Right"}`:"marginBottom"]:ce?void 0:-Ie.scrollbarWidth},ref:z,children:[u.jsx(kt,{"aria-label":v,"aria-labelledby":h,"aria-orientation":x==="vertical"?"vertical":null,className:P.flexContainer,ownerState:H,onKeyDown:st,ref:O,role:"tablist",children:nt}),Ce&&Ne]}),be.scrollButtonEnd]}))}),je="index",Y={tabs:`${je}-tabs`,tab:`${je}-tab`},jt=dt(ye)(({theme:e})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[e.breakpoints.up("md")]:{fontSize:"1rem"}}}));function qe({tabs:e,current:t,onChange:l,...s}){return u.jsx(ye,{scrollButtons:"auto",value:t,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:F.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:F.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:F.lineBorderBase,color:F.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:e.map(n=>u.jsx(xe,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}qe.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function Ke({tabs:e,current:t,onChange:l,...s}){return u.jsx(ye,{scrollButtons:"auto",value:t,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:F.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:F.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:F.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:F.foregroundsFgBase},...s.sx},children:e.map(n=>u.jsx(xe,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}Ke.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};function $t({tabs:e,current:t,onChange:l,...s}){return s.variant==="card"?u.jsx(qe,{...s,tabs:e,current:t,onChange:l}):s.variant==="line"?u.jsx(Ke,{...s,tabs:e,current:t,onChange:l}):u.jsx(jt,{scrollButtons:"auto",variant:"scrollable",value:t,onChange:(n,a)=>l(a),indicatorColor:"primary",...s,className:[Y.tabs,s.className||""].join(" "),children:e.map(n=>u.jsx(xe,{className:Y.tab,value:n.value,label:n.label,icon:n.icon||null},n.value))})}$t.propTypes={tabs:W.array.isRequired,current:W.string.isRequired,onChange:W.func.isRequired};export{mt as K,$t as T,vt as a,ye as b,xe as c,_e as d,ut as g};