@abtnode/blocklet-services 1.16.25-beta-be3a37f4 → 1.16.25-beta-cfcab4af

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 (200) hide show
  1. package/api/services/auth/connect/connect-to-did-spaces-for-user.js +200 -51
  2. package/dist/assets/{Add-lZ4mxpbL.js → Add-LHUM0Ma8.js} +1 -1
  3. package/dist/assets/Alert-Jwofj9zD.js +1 -0
  4. package/dist/assets/{ArrowDropDown-0_YaRpzF.js → ArrowDropDown-Xwz8I9dw.js} +1 -1
  5. package/dist/assets/Avatar-d1HBhAcf.js +1 -0
  6. package/dist/assets/{ButtonGroup-Re1nNykr.js → ButtonGroup-JTRmfxdD.js} +1 -1
  7. package/dist/assets/{CheckCircle-pSajKl0K.js → CheckCircle-s0z0jpJ6.js} +1 -1
  8. package/dist/assets/{ChevronRight-E9CFXCjm.js → ChevronRight-aPnLeTB4.js} +1 -1
  9. package/dist/assets/{CloseOutlined-X-D-0DBL.js → CloseOutlined--dnfQa2n.js} +1 -1
  10. package/dist/assets/{Delete-yBiZpo99.js → Delete-jNg2gv9v.js} +1 -1
  11. package/dist/assets/{DeleteOutline-65Cuhlpm.js → DeleteOutline--3VOI5hj.js} +1 -1
  12. package/dist/assets/{Done-xYwONwQm.js → Done-WCFuEG8h.js} +1 -1
  13. package/dist/assets/{Download-nUZa-YZm.js → Download-MRLPGnEV.js} +1 -1
  14. package/dist/assets/{Edit-OhHXrW-y.js → Edit-e1kdlpe-.js} +1 -1
  15. package/dist/assets/{EditIcon-Bc_-MLIG.js → EditIcon-W-Wd8PWd.js} +1 -1
  16. package/dist/assets/{ExpandMore-V-R7JsGL.js → ExpandMore-inn6pwGR.js} +1 -1
  17. package/dist/assets/FilterList-_UU_tsIc.js +25 -0
  18. package/dist/assets/{FormControl-UyqgO9Ab.js → FormControl-8O72uE8H.js} +1 -1
  19. package/dist/assets/{FormControlLabel-9bCs5HRT.js → FormControlLabel-r9q0VfRf.js} +1 -1
  20. package/dist/assets/FormGroup-G3i9ndxk.js +1 -0
  21. package/dist/assets/{Google-S_pBVgQ8.js → Google-frjvLhqb.js} +1 -1
  22. package/dist/assets/{Grid-3SE35yjG.js → Grid-GelBsPE2.js} +1 -1
  23. package/dist/assets/{Hidden-oxCC7kMQ.js → Hidden-mW8rjJ7H.js} +1 -1
  24. package/dist/assets/{InfoOutlined-jLffwAQN.js → InfoOutlined-aFlSmEQY.js} +1 -1
  25. package/dist/assets/{InputAdornment-8CaUKP_t.js → InputAdornment-ZGszKDvC.js} +1 -1
  26. package/dist/assets/{InputLabel--xXan3mK.js → InputLabel-OaHIlADE.js} +1 -1
  27. package/dist/assets/{LastPage-D9tpDmBg.js → LastPage-JawdTEAU.js} +1 -1
  28. package/dist/assets/{Launch-hRhwJbQR.js → Launch-N5MXzc59.js} +1 -1
  29. package/dist/assets/{LaunchOutlined-6538M4-X.js → LaunchOutlined-UDaO4b_K.js} +1 -1
  30. package/dist/assets/{Link-qwWqvw7Y.js → Link-eUvm2eyV.js} +1 -1
  31. package/dist/assets/{ListItem-uf59B9KY.js → ListItem-jR0DTbV4.js} +1 -1
  32. package/dist/assets/{ListItemText-v8mvGUjy.js → ListItemText-JpoZJL1W.js} +1 -1
  33. package/dist/assets/{LockIcon-HXoQTlUo.js → LockIcon-zz3rFvQ4.js} +1 -1
  34. package/dist/assets/{Loop-y2VDs_7o.js → Loop-OCjMxbSV.js} +1 -1
  35. package/dist/assets/{MoreHoriz-h0p3UhnV.js → MoreHoriz-sd7FCyPf.js} +1 -1
  36. package/dist/assets/MoreVert-w2xJDuVT.js +1 -0
  37. package/dist/assets/{OpenInNew-EArz_tFd.js → OpenInNew-UfLZPW1_.js} +1 -1
  38. package/dist/assets/{Pagination-P2Q87_Fw.js → Pagination-ivSNMkKH.js} +1 -1
  39. package/dist/assets/{PlayArrow-aCMeuyjP.js → PlayArrow-VPEfVDyh.js} +1 -1
  40. package/dist/assets/{RadioGroup-J9SFYdhF.js → RadioGroup-m7_mgPuS.js} +1 -1
  41. package/dist/assets/{Search-JVIzhtig.js → Search-y1h18Mub.js} +1 -1
  42. package/dist/assets/Select-6x_KXv7T.js +2 -0
  43. package/dist/assets/{ServerLogo-cJ3Q9a_X.js → ServerLogo-63QQHvC5.js} +1 -1
  44. package/dist/assets/{Skeleton--a2ajR0H.js → Skeleton-P-w29KVi.js} +5 -5
  45. package/dist/assets/Slider-tLdXZYtt.js +1 -0
  46. package/dist/assets/{Stepper-Ckw-JQ2D.js → Stepper-k_1sc-Jz.js} +1 -1
  47. package/dist/assets/{TableRow-wEa_QnPy.js → TableRow-j1fbGnXk.js} +2 -2
  48. package/dist/assets/{TextField-y1frF4gR.js → TextField-BmfH05Zr.js} +1 -1
  49. package/dist/assets/{Toolbar-y0kWdfqe.js → Toolbar-qIgYu3q0.js} +1 -1
  50. package/dist/assets/{ViewList-nYuZscNN.js → ViewList-IUiaZyFJ.js} +1 -1
  51. package/dist/assets/{access-control-APvTPpAm.js → access-control-S02_icFp.js} +2 -2
  52. package/dist/assets/{actions-DL367zbF.js → actions-utWI_Fdq.js} +1 -1
  53. package/dist/assets/{add-component-core-KZRHpJtF.js → add-component-core-nv0BkT-1.js} +59 -53
  54. package/dist/assets/add-component-core-sZCWP9eJ.css +1 -0
  55. package/dist/assets/add-resource-V5SSdovk.js +1 -0
  56. package/dist/assets/{addon-PtLac09D.js → addon-WH4aidA7.js} +1 -1
  57. package/dist/assets/{analytics-r5zIdsEi.js → analytics-Q8r2CWze.js} +6 -6
  58. package/dist/assets/api-ovvSdkBc.js +1 -0
  59. package/dist/assets/{ar-D9yktoXU.js → ar-QYKKaEb-.js} +1 -1
  60. package/dist/assets/{audit-logs-L50xEbC1.js → audit-logs-If0sv5d-.js} +1 -1
  61. package/dist/assets/{button-kxA4_akG.js → button-wMY8RkVx.js} +1 -1
  62. package/dist/assets/{click-to-copy-BXczzFkc.js → click-to-copy-rNYVmm1q.js} +1 -1
  63. package/dist/assets/{complete-wFu-iD6J.js → complete-MWi1D0CT.js} +2 -2
  64. package/dist/assets/{component-cgfgry4n.js → component-eJU_VSuZ.js} +38 -38
  65. package/dist/assets/{config-P1j_HOCS.js → config-H3UQNIPq.js} +1 -1
  66. package/dist/assets/{config-navigation-44ONhSCZ.js → config-navigation-xnnDHqk-.js} +5 -5
  67. package/dist/assets/{config-u8MQycm5.js → config-pJYUgz7W.js} +1 -1
  68. package/dist/assets/{config-space-wFjyKefP.js → config-space-DKKLcIG0.js} +23 -23
  69. package/dist/assets/{confirm-2kHFQlD_.js → confirm-Ol9jrnEp.js} +1 -1
  70. package/dist/assets/{connect-8d2_FRcC.js → connect-3iNlPsJr.js} +1 -1
  71. package/dist/assets/{connect-DhaI81RV.js → connect-GahP7mCS.js} +1 -1
  72. package/dist/assets/{connect-to-IYkW0Mij.js → connect-to-y8-mTLBV.js} +2 -2
  73. package/dist/assets/{content-layout-K3qfzXkD.js → content-layout-Yl1I61Iu.js} +1 -1
  74. package/dist/assets/{dashboard-EF-S_0yr.js → dashboard-kM0LM1rk.js} +8 -8
  75. package/dist/assets/{de-QQ-sRiHr.js → de-2-jD6QEr.js} +1 -1
  76. package/dist/assets/{did-address-Q6r9kSWU.js → did-address-LWSNRm3U.js} +1 -1
  77. package/dist/assets/{domain-XXTXs5-i.js → domain-5EDkOwwC.js} +1 -1
  78. package/dist/assets/{domain-list-XLuzyzq7.js → domain-list--f1cwe1D.js} +2 -2
  79. package/dist/assets/{es-udrxAOPj.js → es-1XcdsJ2u.js} +1 -1
  80. package/dist/assets/{exchange-passport-2p0qsOrz.js → exchange-passport-7k1iz_0l.js} +1 -1
  81. package/dist/assets/{fallback-stZRYYBF.js → fallback-WjzTKaZb.js} +1 -1
  82. package/dist/assets/{fr-tQ3isg9d.js → fr-BOg_vssD.js} +1 -1
  83. package/dist/assets/{fuel-DZxH_Hjw.js → fuel-FzmgRd-b.js} +1 -1
  84. package/dist/assets/{fullpage-a5T_jRyi.js → fullpage-i6iNi4_E.js} +1 -1
  85. package/dist/assets/{hi-n-_OAux8.js → hi-omXH4h0-.js} +1 -1
  86. package/dist/assets/{home-2OrcwbfG.js → home-cQPSY8mb.js} +1 -1
  87. package/dist/assets/{id-gvVGB1k_.js → id-eN35NmSv.js} +1 -1
  88. package/dist/assets/{iframe-Kzn32-hn.js → iframe-5UjW2V6n.js} +1 -1
  89. package/dist/assets/{index-d0HWrgcb.js → index-0D-f55vh.js} +1 -1
  90. package/dist/assets/{index-CRbbKO3F.js → index-KaOUc2JH.js} +1 -1
  91. package/dist/assets/{index-V3bd7z9T.js → index-Lz-j33m0.js} +6 -6
  92. package/dist/assets/{index-qSYDZylC.js → index-QvTDYv6X.js} +164 -164
  93. package/dist/assets/{index-Xmh3L24H.js → index-ZOtBXjp4.js} +1 -1
  94. package/dist/assets/{index-eksOb0dZ.js → index-Zdfw2Jfh.js} +4 -4
  95. package/dist/assets/{index-3gq6XeKX.js → index-ZxfDwv5M.js} +3 -3
  96. package/dist/assets/{index-qovA7RT2.js → index-_N7xFgV-.js} +1 -1
  97. package/dist/assets/{index-5UdUp3Bz.js → index-be-g3mUI.js} +2 -2
  98. package/dist/assets/{index-dbuVZzvX.js → index-br4owYtx.js} +1 -1
  99. package/dist/assets/{index-baXn_loT.js → index-cxMd9OmR.js} +2 -2
  100. package/dist/assets/{index-h_D0VzlA.js → index-epYuva3d.js} +1 -1
  101. package/dist/assets/{index-aF8jhNI-.js → index-fSGfbmCJ.js} +1 -1
  102. package/dist/assets/index-goHsxnhy.js +721 -0
  103. package/dist/assets/{index-41MsyR99.js → index-oDR_sdyF.js} +4 -4
  104. package/dist/assets/{index-aHetRZlP.js → index-oXD9dbMK.js} +1 -1
  105. package/dist/assets/{index-i7lnxZJ8.js → index-pDR9mJ-H.js} +1 -1
  106. package/dist/assets/{index-AAeG7JoU.js → index-tggg7yzj.js} +1 -1
  107. package/dist/assets/{index-8Ltw7adH.js → index-uKQPc1-9.js} +1 -1
  108. package/dist/assets/{index-rPWBV4BD.js → index-ucFrSwXM.js} +1 -1
  109. package/dist/assets/{index-5-f0uSU3.js → index-vOzMfhG6.js} +1 -1
  110. package/dist/assets/{index-QEc24wlT.js → index-vmnxboIT.js} +1 -1
  111. package/dist/assets/{index-3ySpuGaA.js → index-xNeqsXvu.js} +7 -7
  112. package/dist/assets/{index-_IFA08HO.js → index-xmLBpv45.js} +1 -1
  113. package/dist/assets/{index-Z516eVX-.js → index-xp4s9IF1.js} +1 -1
  114. package/dist/assets/{index-qlPnZF_S.js → index-yNszdAyn.js} +1 -1
  115. package/dist/assets/{index-0FPN72Sx.js → index-yxeCKWVh.js} +8 -8
  116. package/dist/assets/index-zRf18La_.js +1 -0
  117. package/dist/assets/{index.es-PP-WzLpZ.js → index.es-OKnxTnLl.js} +2 -2
  118. package/dist/assets/index.esm-OcETBuDV.js +1 -0
  119. package/dist/assets/{invitation-MFS-Nbg2.js → invitation-k0Q9cGc5.js} +1 -1
  120. package/dist/assets/{invite-A0723Fa0.js → invite-TXEzfZdZ.js} +1 -1
  121. package/dist/assets/{issue-passport-qeoGEzEJ.js → issue-passport-lqc3DCzl.js} +1 -1
  122. package/dist/assets/{ja-rpqthl1E.js → ja-uXcYH1WO.js} +1 -1
  123. package/dist/assets/{jss-plugin-props-sort.esm-D5BlghfN.js → jss-plugin-props-sort.esm-aXihcMq2.js} +4 -4
  124. package/dist/assets/{ko-h4z2Ved-.js → ko-185M34oe.js} +1 -1
  125. package/dist/assets/{launch-result-message-BTtWZO4x.js → launch-result-message-d1r2NgCX.js} +1 -1
  126. package/dist/assets/{layout-zDjW3z4b.js → layout-QckOi3Xm.js} +1 -1
  127. package/dist/assets/{list-header-NrNf4ww2.js → list-header--_n-b43_.js} +1 -1
  128. package/dist/assets/localization-q0_ZXoZr.js +1 -0
  129. package/dist/assets/{log-vtX0UCjY.js → log-mnS-TdXn.js} +1 -1
  130. package/dist/assets/{login-flhHgexj.js → login-3qKyn_VS.js} +1 -1
  131. package/dist/assets/logo-uploader--_qtondy.js +127 -0
  132. package/dist/assets/{lost-passport-mha6EGzR.js → lost-passport-bODnf323.js} +3 -3
  133. package/dist/assets/{lottie-ZP6kRMPz.js → lottie-E1ACRA3E.js} +1 -1
  134. package/dist/assets/{notifications-3Xzs4h9V.js → notifications-SZg6UK6X.js} +1 -1
  135. package/dist/assets/{overview-WqmvrFVk.js → overview-4G67JAUI.js} +1 -1
  136. package/dist/assets/{page-header-_Bv8UU1p.js → page-header-qF7_fzR9.js} +1 -1
  137. package/dist/assets/{permission-UQw_mXhQ.js → permission-hEOP1h9W.js} +1 -1
  138. package/dist/assets/preact.module-CqtzSW6G.js +1 -0
  139. package/dist/assets/{preferences-tICAys9H.js → preferences-eB-0C2Rp.js} +1 -1
  140. package/dist/assets/{pt-IgiDTYB-.js → pt-z7OfMj-M.js} +1 -1
  141. package/dist/assets/publish-resource-9ALgGTpI.js +1 -0
  142. package/dist/assets/{react-borpVomN.js → react-bSUPw7ox.js} +14 -14
  143. package/dist/assets/{redux--rqpftZj.js → redux-x1KHLUJG.js} +1 -1
  144. package/dist/assets/{ru-RDsyfXO5.js → ru-yjZq7H3q.js} +1 -1
  145. package/dist/assets/selector-8FMpyB2D.js +46 -0
  146. package/dist/assets/session-daRjp05u.js +1 -0
  147. package/dist/assets/{setup-sUfD_NMH.js → setup-q9HSByQU.js} +3 -3
  148. package/dist/assets/{slicedToArray-vO7CT7RI.js → slicedToArray-5KNWz95O.js} +2 -2
  149. package/dist/assets/{spaces-Mb6GGuoZ.js → spaces-N2F_E-8K.js} +1 -1
  150. package/dist/assets/{start-i4dGLDuk.js → start-QdHpx1u3.js} +1 -1
  151. package/dist/assets/{step-actions-eyJ47HoG.js → step-actions-OuZVbtQC.js} +1 -1
  152. package/dist/assets/{studio-mrQdpWqr.js → studio-FAm6rdv-.js} +1 -1
  153. package/dist/assets/{switch-control-XB9n-Ggg.js → switch-control-uAEmC3pq.js} +1 -1
  154. package/dist/assets/{th-J7YiOUSD.js → th-Mrqi4DKP.js} +1 -1
  155. package/dist/assets/{toUpper-40rJRTB6.js → toUpper-9pPJLyHS.js} +1 -1
  156. package/dist/assets/{transfer-7z-6sRns.js → transfer-izCLI9R_.js} +1 -1
  157. package/dist/assets/ua-parser-UbVJZWQu.js +57 -0
  158. package/dist/assets/uniqBy-MWaAHDmW.js +1 -0
  159. package/dist/assets/{unsubscribe-Bgz-96K2.js → unsubscribe-Gdf5yrA3.js} +1 -1
  160. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-RqzHWIsv.js → use-blocklet-info-for-connect-did-spaces-IlLt-w7P.js} +1 -1
  161. package/dist/assets/useAsync-fFB3zXQe.js +1 -0
  162. package/dist/assets/{useFormControl-RPQwTOAU.js → useFormControl-htyncNn_.js} +1 -1
  163. package/dist/assets/{useLocalStorage-QIvxcgrR.js → useLocalStorage-lFajT5Wt.js} +1 -1
  164. package/dist/assets/{useSetState-7V0tflQ2.js → useSetState-VkVh8FSU.js} +1 -1
  165. package/dist/assets/useSlot-o8ZWnVB_.js +1 -0
  166. package/dist/assets/user-center--CwIbbon.js +1 -0
  167. package/dist/assets/{user-sessions-DHsskD-P.js → user-sessions-98WzThR8.js} +1 -1
  168. package/dist/assets/{util-85N-_Pgj.js → util-SlxoUgsk.js} +1 -1
  169. package/dist/assets/{vi-kAbNCgvr.js → vi-HKoQZZgD.js} +1 -1
  170. package/dist/assets/wrap-locale-rzaw8fdM.js +7 -0
  171. package/dist/assets/{zh-y3CgTRBX.js → zh-XPFWoF1h.js} +1 -1
  172. package/dist/assets/{zh-tw-pkAc85io.js → zh-tw-_3Gc_DYG.js} +1 -1
  173. package/dist/index.html +1 -1
  174. package/dist/service-worker.js +1 -1
  175. package/package.json +23 -23
  176. package/dist/assets/Alert-Sdrkip3b.js +0 -1
  177. package/dist/assets/Avatar-xLWc5S5b.js +0 -1
  178. package/dist/assets/FilterList-Hm_AfXra.js +0 -25
  179. package/dist/assets/FormGroup-ofRNksFA.js +0 -1
  180. package/dist/assets/MoreVert-MwQoF0F6.js +0 -1
  181. package/dist/assets/Select-Uz_h4btJ.js +0 -2
  182. package/dist/assets/Slider-d03zAvC1.js +0 -1
  183. package/dist/assets/add-component-core-wegghUnI.css +0 -1
  184. package/dist/assets/add-resource-T1d1Huct.js +0 -1
  185. package/dist/assets/api-4mY5BjEo.js +0 -1
  186. package/dist/assets/index-btS5NVdj.js +0 -1
  187. package/dist/assets/index-eHiuO6FO.js +0 -721
  188. package/dist/assets/index.esm-7VB_gheg.js +0 -1
  189. package/dist/assets/localization-2rcERL-P.js +0 -1
  190. package/dist/assets/logo-uploader-xRQlkZ4F.js +0 -127
  191. package/dist/assets/preact.module-lMgcnEc-.js +0 -1
  192. package/dist/assets/publish-resource-G6Rshv3j.js +0 -1
  193. package/dist/assets/selector-sBtObpG1.js +0 -46
  194. package/dist/assets/session-PXkZWYZj.js +0 -1
  195. package/dist/assets/ua-parser-M2aliXHw.js +0 -57
  196. package/dist/assets/uniqBy-FPiZPJ28.js +0 -1
  197. package/dist/assets/useAsync-HlOA1vZO.js +0 -1
  198. package/dist/assets/useSlot-rlbG6RwJ.js +0 -1
  199. package/dist/assets/user-center-MixqlgtO.js +0 -1
  200. package/dist/assets/wrap-locale-GDRCyvNR.js +0 -7
@@ -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),n);import{aC as xt,co as wt,cF as vt,aF as G,bZ as V,r as A,az as It,aE as Ct,aJ as ve,cj as St,b$ as Tt,j as m,aH as Ie,aI as At,P as f,H as Pt,h as jt,ax as kt,bz as Ce,br as Lt,bs as Mt,cU as Ot,ad as Rt,G as P,bp as _t,B as Et,cV as Nt,T as qt,cW as Ft,W as $t,cX as Bt,bK as De,u as Ve,ay as zt,V as Ht,Y as Dt}from"./index-qSYDZylC.js";import{D as Vt}from"./index-eHiuO6FO.js";import{l as R,g as Ut,L as Qt}from"./ListItem-uf59B9KY.js";import{L as Wt}from"./selector-sBtObpG1.js";const Gt=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Zt=(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]},Jt=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"]},Ut,n);return G({},n,l)},Xt=xt(wt,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Zt})(({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})),Yt=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,Gt),x=A.useContext(ve),C=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:C.dense,disableGutters:l,divider:u,selected:p}),y=Jt(w),O=Tt(T,n);return m.jsx(ve.Provider,{value:C,children:m.jsx(Xt,G({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}))})}),Kt=Yt;/**
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),n);import{aB as xt,cq as wt,cI as vt,aE as W,b$ as V,r as A,aI as It,aD as Ct,aJ as ve,cl as St,c1 as Tt,j as m,aG as Ie,aH as At,P as f,H as Pt,h as jt,ax as kt,bz as Ce,br as Lt,bs as Mt,cX as Ot,ad as Rt,G as P,bp as _t,B as Et,bG as Nt,T as qt,cY as Ft,W as $t,cZ as Bt,bM as De,u as Ve,ay as zt,V as Ht,Y as Dt}from"./index-QvTDYv6X.js";import{D as Vt}from"./index-goHsxnhy.js";import{l as R,g as Ut,L as Gt}from"./ListItem-jR0DTbV4.js";import{L as Qt}from"./selector-8FMpyB2D.js";const Wt=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Zt=(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]},Jt=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"]},Ut,n);return W({},n,l)},Yt=xt(wt,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Zt})(({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})),Xt=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,Wt),x=A.useContext(ve),C=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:C.dense,disableGutters:l,divider:u,selected:p}),y=Jt(w),O=Tt(T,n);return m.jsx(ve.Provider,{value:C,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}))})}),Kt=Xt;/**
2
2
  * (c) Iconify
3
3
  *
4
4
  * For the full copyright and license information, please view the license.txt
@@ -8,10 +8,10 @@ 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}),B=Object.freeze({...Ue,...Z}),se=Object.freeze({...B,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 E=/^[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(E))&&(t&&e.prefix===""||e.prefix.match(E))&&e.name.match(E)):!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 se)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(t||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 te(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"||!te(e,ln))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(E)||typeof s.body!="string"||!te(s,se))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(E)||typeof i!="string"||!n[i]&&!r[i]||!te(s,se))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?{...B,...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 ie=Object.create(null);function Pe(e,t){ie[e]=t}function ce(e){return ie[e]||ie[""]}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 I=Math.floor(Math.random()*h.length);i.push(h[I]),h=h.slice(0,I).concat(h.slice(I+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 C(h,I){I&&(g=[]),typeof h=="function"&&g.push(h)}function T(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:p.length,subscribe:C,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,I,j){const S=I!=="success";switch(p=p.filter(L=>L!==h),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=j,w();return}if(S){u=j,p.length||(i.length?v():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 v(){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 I={status:"pending",resource:h,callback:(j,S)=>{O(I,j,S)}};p.push(I),l++,d=setTimeout(v,e.rotate),n(h,t,I.callback)}return setTimeout(v),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 K=Object.create(null),_=["https://api.simplesvg.com","https://api.unisvg.com"],W=[];for(;_.length>0;)_.length===1||Math.random()>.5?W.push(_.shift()):W.push(_.pop());K[""]=he({resources:["https://api.iconify.design"].concat(W)});function je(e,t){const n=he(t);return n===null?!1:(K[e]=n,!0)}function ee(e){return K[e]}function In(){return Object.keys(K)}function ke(){}const ne=Object.create(null);function Cn(e){if(!ne[e]){const t=ee(e);if(!t)return;const n=Ke(t),r={config:t,redundancy:n};ne[e]=r}return ne[e]}function et(e,t,n){let r,o;if(typeof e=="string"){const s=ce(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=ce(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),ke):r.query(t,o,n)().abort}const Le="iconify2",$="iconify",tt=$+"-count",Me=$+"-version",nt=36e5,Sn=168;function ae(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 le(e,t){return ge(e,tt,t.toString())}function ue(e){return parseInt(ae(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=ae(n,Me);if(r!==Le){if(r){const a=ue(n);for(let c=0;c<a;c++)Oe(n,$+c.toString())}ge(n,Me,Le),le(n,0);return}const o=Math.floor(Date.now()/nt)-Sn,s=a=>{const c=$+a.toString(),l=ae(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=ue(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,le(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=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 M)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(!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=ue(o),!le(o,i+1))return;const a={cached:Math.floor(Date.now()/nt),provider:e.provider,data:t};return ge(o,$+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=ce(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({...B,...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 oe(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 _n=/(-?[0-9.]*[0-9]+[0-9.]*)/g,En=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function fe(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(_n);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=En.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 Nn=e=>e==="unset"||e==="undefined"||e==="none";function at(e,t){const n={...B,...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=[],C=b.hFlip,T=b.vFlip;let w=b.rotate;C?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=fe(d,c/l)):(u=i==="auto"?c:i,d=a===null?fe(u,l/c):a==="auto"?l:a);const p={},g=(b,x)=>{Nn(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 $n(){return X}function Bn(e,t){const n=ee(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=Bn(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=ee(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 _e(e,t){switch(e){case"local":case"session":M[e]=t;break;case"all":for(const n in M)M[n]=t;break}}const re="data-style";let lt="";function Qn(e){lt=e}function Ee(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(re));n||(n=document.createElement("style"),n.setAttribute(re,re),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=>_e(n,!0),disableCache:n=>_e(n,!1),iconExists:pn,getIcon:hn,listIcons:dn,addIcon:Xe,addCollection:Ae,calculateSize:fe,buildIcon:at,loadIcons:be,loadIcon:Ln,addAPIProvider:je,appendCustomStyle:Qn,_api:{getAPIConfig:ee,setAPIModule:Pe,sendAPIQuery:et,setFetch:Fn,getFetch:$n,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 de={"background-color":"currentColor"},dt={"background-color":"transparent"},Ne={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},qe={"-webkit-mask":de,mask:de,background:dt};for(const e in qe){const t=qe[e];for(const n in Ne)t[e+"-"+n]=Ne[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?de:dt};for(const u in l)c.setProperty(u,l[u]);return r}let N;function Xn(){try{N=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{N=null}}function Yn(e){return N===void 0&&Xn(),N?N.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 $e(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,{...B,...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 Be(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=oe(this);Ee(c,l),this._state=Be({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=oe(this),u=this._state;l!==u.inline&&(u.inline=l,Ee(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 oe(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{}$e(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=Be(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;$e(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),wo=e=>/^[\w-]+:[\w-]+$/.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 Y=((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(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:P.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${P.gray6}, 0px 0px 0px 1px ${P.gray6}`},children:[m.jsx(_t,{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,d;return m.jsx(Qt,{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(Et,{component:"img",src:`${Nt}/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:((d=l.title)==null?void 0:d[t])||l.title})]})},l.id)})}),m.jsx(Ft,{session:e,children:m.jsx($t,{variant:"outlined",fullWidth:!0,href:Bt,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 C=[];if(i&&o&&C.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})}),C.push(m.jsx(xe,{session:r.session,locale:o},"session-blocklet")),C.push(m.jsx(zt,{session:r.session,locale:o,menu:T,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(C=t(C)||[]),C})();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=Ht();A.useEffect(()=>{e.wallet&&Dt(()=>import("./index-CRbbKO3F.js").then(t=>t.i),__vite__mapDeps([0,1,2])).then(t=>{t.call||(t=t.default),t.call("arcHideTopBar","{}")}).catch(t=>{console.error("load dsbridge error",t)})},[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 v=Object.assign({},window.blocklet,e);try{return lo(v)}catch(h){return console.error("Failed to format blocklet info",h,v),v}},[e]),{localizedNav:p,flattened:g,matchedIndex:b}=A.useMemo(()=>{var j;let v=ht((j=d==null?void 0:d.navigation)==null?void 0:j.dashboard,u)||[];v=gt(v,l),v=H(v,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(v).filter(S=>!!S.url),I=so(h.map(S=>S.url));return I!==-1&&(h[I].active=!0),{localizedNav:v,flattened:h,matchedIndex:I}},[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(()=>{var v;c&&(g!=null&&g.length)&&b===-1&&(n?n():window.location.href=((v=g[0])==null?void 0:v.url)||Y)},[n,g,b]),!d.appName)return null;const{appLogo:C,appLogoRect:T,appName:w}=d,y=m.jsx(we,{formattedBlocklet:d,addons:r,sessionManagerProps:o});return m.jsx(Vt,{title:w,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:Y,logo:m.jsx("img",{src:T||C,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:Y,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=Y}},links:[]};export{to as B,mt as D,we as H,Kt as L,pt as S,wo as a,no as b,so as c,lo as f,ht as g,oo as i,H as m,Y 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}),B=Object.freeze({...Ue,...Z}),se=Object.freeze({...B,body:"",hidden:!1}),en=Object.freeze({width:null,height:null}),Ge=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 Qe={...Ge,preserveAspectRatio:""};function Se(e){const t={...Qe},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 Qe)if(e[n]!==t[n])return!0;return!1}const E=/^[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&&!G(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&&!G(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!G(a,n)?null:a}return null},G=(e,t)=>e?!!((e.provider===""||e.provider.match(E))&&(t&&e.prefix===""||e.prefix.match(E))&&e.name.match(E)):!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 se)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(t||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 te(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"||!te(e,ln))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(E)||typeof s.body!="string"||!te(s,se))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(E)||typeof i!="string"||!n[i]&&!r[i]||!te(s,se))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)?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=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 Ye(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="",We(e,(s,i)=>{i&&Ye(s,i)&&(o=!0)})),o}const n=e.prefix;if(!G({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?{...B,...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 Xe(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||Xe([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=Xe.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 ie=Object.create(null);function Pe(e,t){ie[e]=t}function ce(e){return ie[e]||ie[""]}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 I=Math.floor(Math.random()*h.length);i.push(h[I]),h=h.slice(0,I).concat(h.slice(I+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 C(h,I){I&&(g=[]),typeof h=="function"&&g.push(h)}function T(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:p.length,subscribe:C,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,I,j){const S=I!=="success";switch(p=p.filter(L=>L!==h),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=j,w();return}if(S){u=j,p.length||(i.length?v():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 v(){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 I={status:"pending",resource:h,callback:(j,S)=>{O(I,j,S)}};p.push(I),l++,d=setTimeout(v,e.rotate),n(h,t,I.callback)}return setTimeout(v),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 K=Object.create(null),_=["https://api.simplesvg.com","https://api.unisvg.com"],Q=[];for(;_.length>0;)_.length===1||Math.random()>.5?Q.push(_.shift()):Q.push(_.pop());K[""]=he({resources:["https://api.iconify.design"].concat(Q)});function je(e,t){const n=he(t);return n===null?!1:(K[e]=n,!0)}function ee(e){return K[e]}function In(){return Object.keys(K)}function ke(){}const ne=Object.create(null);function Cn(e){if(!ne[e]){const t=ee(e);if(!t)return;const n=Ke(t),r={config:t,redundancy:n};ne[e]=r}return ne[e]}function et(e,t,n){let r,o;if(typeof e=="string"){const s=ce(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=ce(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),ke):r.query(t,o,n)().abort}const Le="iconify2",$="iconify",tt=$+"-count",Me=$+"-version",nt=36e5,Sn=168;function ae(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 le(e,t){return ge(e,tt,t.toString())}function ue(e){return parseInt(ae(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=ae(n,Me);if(r!==Le){if(r){const a=ue(n);for(let c=0;c<a;c++)Oe(n,$+c.toString())}ge(n,Me,Le),le(n,0);return}const o=Math.floor(Date.now()/nt)-Sn,s=a=>{const c=$+a.toString(),l=ae(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=ue(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,le(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=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 M)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(!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=ue(o),!le(o,i+1))return;const a={cached:Math.floor(Date.now()/nt),provider:e.provider,data:t};return ge(o,$+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=ce(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({...B,...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 oe(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 _n=/(-?[0-9.]*[0-9]+[0-9.]*)/g,En=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function fe(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(_n);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=En.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 Nn=e=>e==="unset"||e==="undefined"||e==="none";function at(e,t){const n={...B,...e},r={...Ge,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const x=[],C=b.hFlip,T=b.vFlip;let w=b.rotate;C?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=fe(d,c/l)):(u=i==="auto"?c:i,d=a===null?fe(u,l/c):a==="auto"?l:a);const p={},g=(b,x)=>{Nn(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 Y=qn();function Fn(e){Y=e}function $n(){return Y}function Bn(e,t){const n=ee(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=Bn(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=ee(e);if(t)return t.path}return"/"}const Vn=(e,t,n)=>{if(!Y){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;Y(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 _e(e,t){switch(e){case"local":case"session":M[e]=t;break;case"all":for(const n in M)M[n]=t;break}}const re="data-style";let lt="";function Gn(e){lt=e}function Ee(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(re));n||(n=document.createElement("style"),n.setAttribute(re,re),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=>_e(n,!0),disableCache:n=>_e(n,!1),iconExists:pn,getIcon:hn,listIcons:dn,addIcon:Ye,addCollection:Ae,calculateSize:fe,buildIcon:at,loadIcons:be,loadIcon:Ln,addAPIProvider:je,appendCustomStyle:Gn,_api:{getAPIConfig:ee,setAPIModule:Pe,sendAPIQuery:et,setFetch:Fn,getFetch:$n,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 Qn(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,"+Qn(e)}function Zn(e){return'url("'+Wn(e)+'")'}const de={"background-color":"currentColor"},dt={"background-color":"transparent"},Ne={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},qe={"-webkit-mask":de,mask:de,background:dt};for(const e in qe){const t=qe[e];for(const n in Ne)t[e+"-"+n]=Ne[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?de:dt};for(const u in l)c.setProperty(u,l[u]);return r}let N;function Yn(){try{N=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{N=null}}function Xn(e){return N===void 0&&Yn(),N?N.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=Xn(o),t.firstChild}function $e(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,{...B,...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 Be(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=oe(this);Ee(c,l),this._state=Be({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=oe(this),u=this._state;l!==u.inline&&(u.inline=l,Ee(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 oe(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{}$e(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=Be(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;$e(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),wo=e=>/^[\w-]+:[\w-]+$/.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 X=((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(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:P.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${P.gray6}, 0px 0px 0px 1px ${P.gray6}`},children:[m.jsx(_t,{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,d;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:P.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?m.jsx(Et,{component:"img",src:`${Nt}/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:((d=l.title)==null?void 0:d[t])||l.title})]})},l.id)})}),m.jsx(Ft,{session:e,children:m.jsx($t,{variant:"outlined",fullWidth:!0,href:Bt,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 C=[];if(i&&o&&C.push(m.jsx(Qt,{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})}),C.push(m.jsx(xe,{session:r.session,locale:o},"session-blocklet")),C.push(m.jsx(zt,{session:r.session,locale:o,menu:T,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(C=t(C)||[]),C})();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=Ht();A.useEffect(()=>{e.wallet&&Dt(()=>import("./index-KaOUc2JH.js").then(t=>t.i),__vite__mapDeps([0,1,2])).then(t=>{t.call||(t=t.default),t.call("arcHideTopBar","{}")}).catch(t=>{console.error("load dsbridge error",t)})},[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 v=Object.assign({},window.blocklet,e);try{return lo(v)}catch(h){return console.error("Failed to format blocklet info",h,v),v}},[e]),{localizedNav:p,flattened:g,matchedIndex:b}=A.useMemo(()=>{var j;let v=ht((j=d==null?void 0:d.navigation)==null?void 0:j.dashboard,u)||[];v=gt(v,l),v=H(v,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(v).filter(S=>!!S.url),I=so(h.map(S=>S.url));return I!==-1&&(h[I].active=!0),{localizedNav:v,flattened:h,matchedIndex:I}},[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(()=>{var v;c&&(g!=null&&g.length)&&b===-1&&(n?n():window.location.href=((v=g[0])==null?void 0:v.url)||X)},[n,g,b]),!d.appName)return null;const{appLogo:C,appLogoRect:T,appName:w}=d,y=m.jsx(we,{formattedBlocklet:d,addons:r,sessionManagerProps:o});return m.jsx(Vt,{title:w,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:X,logo:m.jsx("img",{src:T||C,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:X,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=X}},links:[]};export{to as B,mt as D,we as H,Kt as L,pt as S,wo as a,no as b,so as c,lo as f,ht as g,oo as i,H as m,X as p,ho as u};
12
12
  function __vite__mapDeps(indexes) {
13
13
  if (!__vite__mapDeps.viteFileDeps) {
14
- __vite__mapDeps.viteFileDeps = ["assets/index-CRbbKO3F.js","assets/index-qSYDZylC.js","assets/index-F9vDNwHQ.css"]
14
+ __vite__mapDeps.viteFileDeps = ["assets/index-KaOUc2JH.js","assets/index-QvTDYv6X.js","assets/index-F9vDNwHQ.css"]
15
15
  }
16
16
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
17
17
  }