@abtnode/blocklet-services 1.16.33-beta-20241010-072121-fe74d5f7 → 1.16.33-beta-20241011-054050-798b5f46
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.
- package/api/index.js +1 -1
- package/api/libs/connect/session.js +7 -11
- package/api/libs/connect/v1.js +10 -1
- package/api/libs/kyc.js +8 -5
- package/api/services/auth/connect/invite.js +2 -3
- package/api/services/auth/connect/issue-kyc.js +7 -3
- package/api/services/auth/connect/update-kyc.js +2 -3
- package/api/services/auth/index.js +19 -8
- package/api/services/kyc/index.js +1 -1
- package/api/util/blocklet-utils.js +33 -32
- package/dist/assets/{Add-DyGjqE-h.js → Add-CjHtOOsW.js} +1 -1
- package/dist/assets/{Alert-CUXXTs-A.js → Alert-C1AWoXzB.js} +1 -1
- package/dist/assets/{ArrowDropDown-IInSnLqS.js → ArrowDropDown-5QQoKnLR.js} +1 -1
- package/dist/assets/{Avatar-CPUcBr2e.js → Avatar-DD_manng.js} +1 -1
- package/dist/assets/{ButtonGroup-7xzATnH3.js → ButtonGroup-Dslh4PgR.js} +1 -1
- package/dist/assets/{CheckCircle-DcVG1pYP.js → CheckCircle-D3la5wZJ.js} +1 -1
- package/dist/assets/ChevronLeft-CAbyk7Rn.js +1 -0
- package/dist/assets/ChevronRight-cHt6B2E_.js +1 -0
- package/dist/assets/{Close-Cfa9lFRp.js → Close-C9Al2sHH.js} +1 -1
- package/dist/assets/{CloseOutlined-Cv5fEA0-.js → CloseOutlined-vttxnPOn.js} +1 -1
- package/dist/assets/{Delete-PO2CUZY1.js → Delete-DmUC02xh.js} +1 -1
- package/dist/assets/{DeleteOutline-PwtNQI2z.js → DeleteOutline-Dm_Nsq2F.js} +1 -1
- package/dist/assets/{DialogContentText-DDxG8hj4.js → DialogContentText-Dd6Llavm.js} +1 -1
- package/dist/assets/{Done-C91mwo7P.js → Done-DNj6bTeJ.js} +1 -1
- package/dist/assets/{Download-Dcqfe--u.js → Download-Ce--U_BZ.js} +1 -1
- package/dist/assets/{Edit-CNh3gW7J.js → Edit-BJPRqjE_.js} +1 -1
- package/dist/assets/{EditIcon-BeH2y9tv.js → EditIcon-BlL4geyW.js} +1 -1
- package/dist/assets/{Error-DPnxUNXE.js → Error-B3NgNRCx.js} +1 -1
- package/dist/assets/{ExpandMore-_gQ-fZto.js → ExpandMore-DkLjJq9w.js} +1 -1
- package/dist/assets/{FormControl-DcqSXUze.js → FormControl-CBM31tVk.js} +1 -1
- package/dist/assets/{FormControlLabel-B90pDmco.js → FormControlLabel-Bid6aLDa.js} +1 -1
- package/dist/assets/{FormGroup-CjUiV6JR.js → FormGroup-CQ2r3LPd.js} +1 -1
- package/dist/assets/{Google-CGJA1b77.js → Google-BDEjIi3K.js} +1 -1
- package/dist/assets/Grid-CosTfC_n.js +1 -0
- package/dist/assets/{Hidden-CcpHglaq.js → Hidden-CbT0Nsko.js} +1 -1
- package/dist/assets/{InfoOutlined-DalvVJTx.js → InfoOutlined-B9EO-P9G.js} +1 -1
- package/dist/assets/{InputAdornment-C8xzBvx-.js → InputAdornment-CyPi6QAH.js} +1 -1
- package/dist/assets/{InputLabel-B9VpxZFG.js → InputLabel-D4nkCqtD.js} +1 -1
- package/dist/assets/{LastPage-Dt-nineH.js → LastPage-D5sEb42F.js} +1 -1
- package/dist/assets/{Launch-Dr5eQTpq.js → Launch-KX5AwGaZ.js} +1 -1
- package/dist/assets/{LaunchOutlined-OkYt6HGw.js → LaunchOutlined-CaL34FcQ.js} +1 -1
- package/dist/assets/{Link-C_SGMwYb.js → Link-C4c-c9oW.js} +1 -1
- package/dist/assets/{ListItemText-_p53ayXZ.js → ListItemText-SZUZM8zJ.js} +1 -1
- package/dist/assets/{LoadingButton-BW1-cENL.js → LoadingButton-BHAAzaqd.js} +1 -1
- package/dist/assets/{LockIcon-iAidu7x0.js → LockIcon-D_fJE15j.js} +1 -1
- package/dist/assets/{Loop-Co6l3YCy.js → Loop-CGMlnuX2.js} +1 -1
- package/dist/assets/Menu-C6gTV_C5.js +1 -0
- package/dist/assets/{MoreHoriz-BWWNaLfy.js → MoreHoriz-91XyooIB.js} +1 -1
- package/dist/assets/{MoreVert-DMmsCPA0.js → MoreVert-Dm5VmAN3.js} +1 -1
- package/dist/assets/{OpenInNew-SD9ooEXu.js → OpenInNew-FWEY5jmN.js} +1 -1
- package/dist/assets/{Pagination-D13zUKBy.js → Pagination-CrML4K_7.js} +1 -1
- package/dist/assets/{PlayArrow-NGf7DjUf.js → PlayArrow-DDVBKikc.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-CI1aKRuc.js → QuestionMarkCircle-N_nyomRU.js} +1 -1
- package/dist/assets/{RadioGroup-b8usdHKU.js → RadioGroup-DQS4l9Qs.js} +1 -1
- package/dist/assets/{Search-DebWLbXn.js → Search-kaa4IwGB.js} +1 -1
- package/dist/assets/{Select-DFT_zgbS.js → Select-3MFmfiU2.js} +1 -1
- package/dist/assets/{ServerLogo-CSHQ7A9Q.js → ServerLogo-BDPxuR0z.js} +1 -1
- package/dist/assets/{Skeleton-DNwmSsjq.js → Skeleton-DghEtvL_.js} +1 -1
- package/dist/assets/{Slider-CmXT75wu.js → Slider-DHap0Syp.js} +1 -1
- package/dist/assets/{Stack-34bIY77n.js → Stack-DOuPfp9P.js} +1 -1
- package/dist/assets/{Stepper-CtJJUW6X.js → Stepper-CEgSJjc5.js} +1 -1
- package/dist/assets/{TextField-CrQGhuNw.js → TextField-DFiFTqqd.js} +1 -1
- package/dist/assets/{Toolbar-BW2NgBkZ.js → Toolbar-Ch5_bErb.js} +1 -1
- package/dist/assets/{ViewColumn-gBpp_W4_.js → ViewColumn-UerMI3fe.js} +1 -1
- package/dist/assets/{ViewList-TN7tcoUd.js → ViewList-JPiij74q.js} +1 -1
- package/dist/assets/{access-control-DoGoHOPa.js → access-control-EjYGet_v.js} +1 -1
- package/dist/assets/{actions-B_ph6AqT.js → actions-GskZx_ox.js} +1 -1
- package/dist/assets/add-component-core-C4W9lOMx.js +890 -0
- package/dist/assets/add-component-core-Dg7G08Fh.css +1 -0
- package/dist/assets/add-resource-HMG5CdPm.js +1 -0
- package/dist/assets/{addon-BL3o5y5o.js → addon-BPs0htdJ.js} +1 -1
- package/dist/assets/{analytics-DwXJ7zJE.js → analytics-BGp8lvxJ.js} +7 -7
- package/dist/assets/api-CTJQFV8E.js +1 -0
- package/dist/assets/audit-logs-Cnci_r2o.js +58 -0
- package/dist/assets/bundle-avatar-BuAV52Lr.js +1 -0
- package/dist/assets/{button-kh1A2MtB.js → button-CdCaehQs.js} +1 -1
- package/dist/assets/{click-to-copy-Cz088-n3.js → click-to-copy-JKdxz45I.js} +1 -1
- package/dist/assets/{complete-D8k6amPn.js → complete-lZpRAcrs.js} +3 -3
- package/dist/assets/{component-B1U-Ilw5.js → component-C0raFocJ.js} +8 -8
- package/dist/assets/{config-BvJ5ipaE.js → config-BS0f8E6U.js} +1 -1
- package/dist/assets/{config-BuNZV38x.js → config-CYMR43Uh.js} +1 -1
- package/dist/assets/{config-navigation-DEr_vkqq.js → config-navigation-DC5Unmga.js} +2 -2
- package/dist/assets/{confirm-DD5TAjx6.js → confirm-DQ3CFWMW.js} +1 -1
- package/dist/assets/{connect-Dx1KHIox.js → connect-CDiZvdtC.js} +1 -1
- package/dist/assets/{connect-BbIvYSzr.js → connect-DNaSl255.js} +1 -1
- package/dist/assets/{connect-to-oZQ3bHHK.js → connect-to-D2CuNe81.js} +1 -1
- package/dist/assets/{content-layout-CnChPnA0.js → content-layout-CANmEWo5.js} +1 -1
- package/dist/assets/{dashboard-kBhY1Chz.js → dashboard-H4MvXtMx.js} +3 -3
- package/dist/assets/{deprecate-DMFecaAn.js → deprecate-CiQ3rCd1.js} +1 -1
- package/dist/assets/{did-address-BKqEASAW.js → did-address-BnBtx4o3.js} +1 -1
- package/dist/assets/{domain-Mt_bDVZ8.js → domain-DWy85KB9.js} +1 -1
- package/dist/assets/{domain-list-CSn2y9Yr.js → domain-list-DN84Sise.js} +2 -2
- package/dist/assets/{email-CQ00P-m9.js → email-DyV-6FVc.js} +3 -3
- package/dist/assets/emotion-cache.browser.esm-BNDDTfYL.js +1 -0
- package/dist/assets/{exchange-passport-CmZN9Sin.js → exchange-passport-Z_HeEHaC.js} +1 -1
- package/dist/assets/{fallback-3gtaf7Sx.js → fallback-BiNvsiaq.js} +1 -1
- package/dist/assets/{format-error-B18wVBqz.js → format-error-CFOsq4HX.js} +1 -1
- package/dist/assets/{fuel-Cvj0DADJ.js → fuel-yExjWSAI.js} +1 -1
- package/dist/assets/{fullpage-DG7VtNjX.js → fullpage-BBGvbVDW.js} +1 -1
- package/dist/assets/home-BRqwH5Nf.js +1 -0
- package/dist/assets/{iframe-CNtNQA83.js → iframe-DGAKfP0s.js} +1 -1
- package/dist/assets/index--duswiri.js +1 -0
- package/dist/assets/{index-Bx84JAj-.js → index-AxsaK0fs.js} +1 -1
- package/dist/assets/{index-nJ12q8Oj.js → index-B2buyTYt.js} +1 -1
- package/dist/assets/{index-BOpVxP0B.js → index-B7RmJs-M.js} +1 -1
- package/dist/assets/{index-CI6K1D_K.js → index-BCrKZebO.js} +1 -1
- package/dist/assets/{index-BSJQWxBe.js → index-BF2VCknl.js} +1 -1
- package/dist/assets/{index-BYZsOcTK.js → index-BgbKLD3V.js} +10 -10
- package/dist/assets/{index-BXMnVfRQ.js → index-BjRErSmf.js} +1 -1
- package/dist/assets/index-Brct1h9T.js +721 -0
- package/dist/assets/{index-4sDEam-t.js → index-Bv3OaukA.js} +1 -1
- package/dist/assets/{index-CPu-OtVP.js → index-Bwpc9lYR.js} +6 -6
- package/dist/assets/{index-oLTmVJss.js → index-BzI1fpMA.js} +1 -1
- package/dist/assets/{index-CBFK5yXm.js → index-CE8crdfZ.js} +1 -1
- package/dist/assets/index-CGMrZbj4.js +68 -0
- package/dist/assets/{index-8Pfj1kvp.js → index-CM4OpCGB.js} +1 -1
- package/dist/assets/{index-wbxLd8ND.js → index-Cd-oyWSF.js} +1 -1
- package/dist/assets/{index-C9180Rq-.js → index-CjmnCSHR.js} +1 -1
- package/dist/assets/{index-5Xe6hM9K.js → index-CpiJ7s5C.js} +1 -1
- package/dist/assets/{index-BQeY1nGA.js → index-CuFxdccR.js} +4 -4
- package/dist/assets/{index-ClLYAhzE.js → index-D09vFr6D.js} +1 -1
- package/dist/assets/{index-QmPKTzYe.js → index-D1cdkATF.js} +1 -1
- package/dist/assets/{index-CgaigX2y.js → index-DMTI-fNK.js} +21 -21
- package/dist/assets/{index-DCSMw_Fs.js → index-DPP6VPXO.js} +8 -8
- package/dist/assets/{index-Dp5msv9c.js → index-DRy-NjFK.js} +4 -4
- package/dist/assets/{index-ty7xhNZH.js → index-DdSurbTD.js} +1 -1
- package/dist/assets/{index-Jp3DytaA.js → index-DrKbE9ju.js} +1 -1
- package/dist/assets/{index-BVwO1Rs-.js → index-DuBaIIFS.js} +1 -1
- package/dist/assets/{index-BjOEQFEW.js → index-DuPJDRpB.js} +1 -1
- package/dist/assets/{index-Byv5cIqj.js → index-Pa_povbs.js} +1 -1
- package/dist/assets/{index-B3XHYC9j.js → index-XgsqmBi5.js} +2 -2
- package/dist/assets/{index-D6-qn7YC.js → index-fgn9vwq8.js} +113 -113
- package/dist/assets/{index-DfwvEXpm.js → index-ljMFxTRJ.js} +1 -1
- package/dist/assets/{index-vLbfY-P2.js → index-oadE3d-r.js} +1 -1
- package/dist/assets/{index.es-Dphbg3pT.js → index.es-BAn09M1Y.js} +1 -1
- package/dist/assets/{index.esm-DduNFGMI.js → index.esm-B3pQyY3d.js} +1 -1
- package/dist/assets/{invitation-BdW82ntG.js → invitation-X778y-7j.js} +1 -1
- package/dist/assets/{invite-B95Q8IUB.js → invite-DW0gtypP.js} +1 -1
- package/dist/assets/{issue-passport-B1nbLuc4.js → issue-passport-eUut_p6V.js} +1 -1
- package/dist/assets/{item-S_YKH5qQ.js → item-jVTYzTUh.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-BgLpcdlc.js → jss-plugin-props-sort.esm-BEeq9OWC.js} +4 -4
- package/dist/assets/{launch-result-message-BbAwrnvZ.js → launch-result-message-abpetv4C.js} +1 -1
- package/dist/assets/{layout-BR242h2z.js → layout-CEo-nvMH.js} +1 -1
- package/dist/assets/{list-header-Oe1DnFXy.js → list-header-B0DU7iJ8.js} +1 -1
- package/dist/assets/localization-taL-ipRT.js +1 -0
- package/dist/assets/log-zgah1FFi.js +95 -0
- package/dist/assets/{login-B0m1yA9j.js → login-BZkTkP-9.js} +1 -1
- package/dist/assets/{login-oauth-callback-9GflQ5uo.js → login-oauth-callback-Dm5-WEz0.js} +1 -1
- package/dist/assets/logo-uploader-BtaIWDgJ.js +122 -0
- package/dist/assets/{lost-passport-BIUr4EEN.js → lost-passport-B8wdBerz.js} +3 -3
- package/dist/assets/{lottie-CYPs52go.js → lottie-CzdjuVhm.js} +1 -1
- package/dist/assets/notifications-D0GXE82s.js +62 -0
- package/dist/assets/{open-window-B_uKh9fq.js → open-window-C-80E_lx.js} +1 -1
- package/dist/assets/overview-CwLJAe7-.js +12 -0
- package/dist/assets/{page-header-5F6egx2_.js → page-header-CxkULuMr.js} +1 -1
- package/dist/assets/{permission-CGleg7Gs.js → permission-BbWaMmK6.js} +1 -1
- package/dist/assets/preferences-W2NveEKa.js +1 -0
- package/dist/assets/publish-resource-DMHR6AkZ.js +1 -0
- package/dist/assets/react-AgKpYdvC.css +9 -0
- package/dist/assets/react-BfXkambL.js +57 -0
- package/dist/assets/redux-Bj5HJmsh.js +1 -0
- package/dist/assets/{resource-dialog-BCp8aov_.js → resource-dialog-B74wCZrY.js} +1 -1
- package/dist/assets/sdk-DmxPo3pC.js +1 -0
- package/dist/assets/{selector-DSVTeW4u.js → selector-CuYNfwOx.js} +1 -1
- package/dist/assets/session-DAMa63sM.js +1 -0
- package/dist/assets/{setup-jYKR9zne.js → setup-CkAqZcwR.js} +3 -3
- package/dist/assets/{shorten-label-C7cAhyO1.js → shorten-label-DXOCGUmG.js} +1 -1
- package/dist/assets/slicedToArray-C0WlFNXN.js +2 -0
- package/dist/assets/{spaces-BadxZSPH.js → spaces-C30MN-fS.js} +1 -1
- package/dist/assets/{start-C5sDtSSE.js → start-BrD7qtd7.js} +1 -1
- package/dist/assets/{step-actions-DcaA_1G8.js → step-actions-pilBvcqr.js} +1 -1
- package/dist/assets/{studio-2mHdE3FO.js → studio-B_REa37-.js} +1 -1
- package/dist/assets/{switch-control-YN5KHB2B.js → switch-control-BxJO_e5C.js} +1 -1
- package/dist/assets/{toUpper-CLaqhezO.js → toUpper-DduZg1wT.js} +1 -1
- package/dist/assets/{transfer-DkF5fZmH.js → transfer-BrT_GwZC.js} +1 -1
- package/dist/assets/trim-BAyy5nHT.js +1 -0
- package/dist/assets/{uniqBy-DvZfJBLN.js → uniqBy-dnuDvtYO.js} +1 -1
- package/dist/assets/{unsubscribe-CRShw0Nx.js → unsubscribe-UP3-zTl3.js} +1 -1
- package/dist/assets/{url-join-f_4hZoEz.js → url-join-FMV_JPfK.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-C8k09CGt.js → use-blocklet-info-for-connect-did-spaces-D7ja6RMG.js} +1 -1
- package/dist/assets/{use-mobile-CN7PshZ5.js → use-mobile-2Gfazu03.js} +1 -1
- package/dist/assets/{useAsync-CoP3HYo2.js → useAsync-Bb8Vv9_h.js} +1 -1
- package/dist/assets/{useFormControl-D6xM9FXP.js → useFormControl-CGJ6_pv6.js} +1 -1
- package/dist/assets/{useLocalStorage-BKqxa_v7.js → useLocalStorage-Dh2Sw2wx.js} +1 -1
- package/dist/assets/{useSetState-CWedcSc_.js → useSetState-DIdqG-wZ.js} +1 -1
- package/dist/assets/{useSlot-DeN8P_X1.js → useSlot-Suwkr6Il.js} +1 -1
- package/dist/assets/{useSlotProps-BQjYPQy0.js → useSlotProps-Do3AixJL.js} +1 -1
- package/dist/assets/useThemeProps-Dc-5SZKE.js +1 -0
- package/dist/assets/user-center-D6fHk_Q6.js +1 -0
- package/dist/assets/{user-sessions-BpzGtybj.js → user-sessions-3hW7A5O1.js} +1 -1
- package/dist/assets/{util-APdPRJ_P.js → util-B4YWdsL1.js} +1 -1
- package/dist/assets/{wrap-locale-BdN4b1Lo.js → wrap-locale-Bx_1JQDo.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +25 -25
- package/dist/assets/ChevronLeft-bBC-GmMQ.js +0 -1
- package/dist/assets/ChevronRight-DBjJ6NLf.js +0 -1
- package/dist/assets/add-component-core-D_j8BgsJ.css +0 -1
- package/dist/assets/add-component-core-DdSs_u3X.js +0 -979
- package/dist/assets/add-resource-GA2PH1Pg.js +0 -1
- package/dist/assets/api-dSHDB8TX.js +0 -1
- package/dist/assets/audit-logs-CNAAKzR8.js +0 -58
- package/dist/assets/emotion-cache.browser.esm-BHZ5GkAU.js +0 -1
- package/dist/assets/home-CGwQzxcT.js +0 -1
- package/dist/assets/index-DaquW_Lp.js +0 -721
- package/dist/assets/index-p3e8pud_.js +0 -68
- package/dist/assets/localization-DVoeED0Z.js +0 -1
- package/dist/assets/log-BGOzVwIk.js +0 -94
- package/dist/assets/logo-uploader-VvQyjwsJ.js +0 -122
- package/dist/assets/notifications-BY2fe48L.js +0 -62
- package/dist/assets/overview-BuAS-XNt.js +0 -12
- package/dist/assets/preferences-atCcXcuU.js +0 -1
- package/dist/assets/publish-resource-sWhPpuNv.js +0 -1
- package/dist/assets/react-BW7E7-P9.css +0 -9
- package/dist/assets/react-Dp1344KM.js +0 -57
- package/dist/assets/redux-8H8zZE4I.js +0 -1
- package/dist/assets/sdk-oFRuwQgH.js +0 -1
- package/dist/assets/session-DmH17CpQ.js +0 -1
- package/dist/assets/slicedToArray-BeNWmBfu.js +0 -2
- package/dist/assets/toPropertyKey-PLuKRk1e.js +0 -1
- package/dist/assets/trim-B5rczrMy.js +0 -1
- package/dist/assets/useThemeProps-DWe4sq9j.js +0 -1
- package/dist/assets/user-center-fhY0Z3m8.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as H,j as i,fZ as Xn,l as fr,f_ as Jn,eY as hn,eX as gn,eW as _t,f$ as ft,eV as _e,g0 as Qn,g1 as yn,g2 as vn,g3 as ei,g4 as ti,g5 as bn,g6 as pr,g7 as ri,g8 as ni,g9 as ii,ga as oi,eO as tr,b7 as ai,cm as Lr,eQ as si,a8 as ci,aP as Ne,u as Fe,N as xn,B as ce,aT as jt,A as wn,D as li,T as Ue,gb as dr,af as pt,au as Ge,a1 as Se,n as rt,P as M,bC as ui,cq as rr,K as fi,e$ as pi,Z as De,de as di,a0 as mt,bl as Ze,t as nt,gc as mi,aa as Ye,dC as hi,aY as jn,G as Ee,a as dt,c as nr,b as gi,bF as yi,gd as En,bL as Sn,aV as vi,X as bi,Y as xi,bQ as Pn,m as wi,aC as ji,bH as Ei}from"./index-D6-qn7YC.js";import{c as Si}from"./index-BjOEQFEW.js";import{d as Et}from"./Add-DyGjqE-h.js";import{d as Pi}from"./Loop-Co6l3YCy.js";import{d as Oi}from"./ViewList-TN7tcoUd.js";import{L as Ai,S as Ri,d as On}from"./list-header-Oe1DnFXy.js";import{D as An,g as Ii}from"./index-DCSMw_Fs.js";import"./index-BSJQWxBe.js";import"./index-B3XHYC9j.js";import{h as Rn}from"./resource-dialog-BCp8aov_.js";import{T as _i}from"./index-QmPKTzYe.js";import{E as In}from"./index-Byv5cIqj.js";import"./fallback-3gtaf7Sx.js";import"./index-nJ12q8Oj.js";import{d as Ti,U as Ci}from"./user-sessions-BpzGtybj.js";import{u as $e,d as Ur,W as _n,a as Ni}from"./dashboard-kBhY1Chz.js";import{W as St}from"./did-address-BKqEASAW.js";import{P as Ke}from"./permission-CGleg7Gs.js";import{C as Tt}from"./click-to-copy-Cz088-n3.js";import{F as ir}from"./FormControl-DcqSXUze.js";import{I as or}from"./InputLabel-B9VpxZFG.js";import{S as ar}from"./Select-DFT_zgbS.js";import{T as Pt}from"./TextField-CrQGhuNw.js";import{D as mr}from"./DialogContentText-DDxG8hj4.js";import{A as tt}from"./Alert-CUXXTs-A.js";import{f as Xe}from"./format-error-B18wVBqz.js";import{_ as Di}from"./useAsync-CoP3HYo2.js";import{I as sr}from"./index-8Pfj1kvp.js";import{C as Ct}from"./confirm-DD5TAjx6.js";import{u as Tn}from"./session-DmH17CpQ.js";import{N as Li}from"./index-BOpVxP0B.js";import{a as Ui}from"./uniqBy-DvZfJBLN.js";import{b as qi}from"./sdk-oFRuwQgH.js";import{A as ki}from"./Avatar-CPUcBr2e.js";import{d as Ki}from"./Delete-PO2CUZY1.js";import{p as Bi}from"./index-HqFqdQ4r.js";import{A as Fi}from"./actions-B_ph6AqT.js";import{L as $i,a as Mi}from"./ListItemText-_p53ayXZ.js";import{S as zi}from"./shorten-label-C7cAhyO1.js";import{F as Wi,C as Vi}from"./FormControlLabel-B90pDmco.js";import"./Search-DebWLbXn.js";import"./useThemeProps-DWe4sq9j.js";import"./toPropertyKey-PLuKRk1e.js";import"./emotion-cache.browser.esm-BHZ5GkAU.js";import"./index-oLTmVJss.js";import"./redux-8H8zZE4I.js";import"./ViewColumn-gBpp_W4_.js";import"./useFormControl-D6xM9FXP.js";import"./FormGroup-CjUiV6JR.js";import"./LastPage-Dt-nineH.js";import"./Toolbar-BW2NgBkZ.js";import"./MoreVert-DMmsCPA0.js";import"./index-DaquW_Lp.js";import"./Hidden-CcpHglaq.js";import"./ExpandMore-_gQ-fZto.js";import"./selector-DSVTeW4u.js";import"./OpenInNew-SD9ooEXu.js";import"./CloseOutlined-Cv5fEA0-.js";import"./use-mobile-CN7PshZ5.js";import"./Link-C_SGMwYb.js";import"./useLocalStorage-BKqxa_v7.js";import"./PlayArrow-NGf7DjUf.js";import"./ButtonGroup-7xzATnH3.js";import"./RadioGroup-b8usdHKU.js";import"./index-vLbfY-P2.js";import"./useSetState-CWedcSc_.js";import"./deprecate-DMFecaAn.js";import"./useSlot-DeN8P_X1.js";import"./MoreHoriz-BWWNaLfy.js";import"./Stack-34bIY77n.js";var hr={};Object.defineProperty(hr,"__esModule",{value:!0});var Cn=hr.default=void 0;Hi(H);var Qe=i;function Hi(e){return e&&e.__esModule?e:{default:e}}function qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qr(Object(r),!0).forEach(function(n){Gi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gi(e,t,r){return(t=Yi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yi(e){var t=Zi(e,"string");return typeof t=="symbol"?t:t+""}function Zi(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gr=function(t){return(0,Qe.jsxs)("svg",kr(kr({},t),{},{children:[(0,Qe.jsx)("g",{clipPath:"url(#clip0)",children:(0,Qe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,Qe.jsx)("defs",{children:(0,Qe.jsx)("clipPath",{id:"clip0",children:(0,Qe.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};gr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};gr.displayName="person";Cn=hr.default=gr;var wt={},Xi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Nn="%[a-f0-9]{2}",Kr=new RegExp("("+Nn+")|([^%]+?)","gi"),Br=new RegExp("("+Nn+")+","gi");function cr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],cr(r),cr(n))}function Ji(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Kr)||[],r=1;r<t.length;r++)e=cr(t,r).join(""),t=e.match(Kr)||[];return e}}function Qi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Br.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=Ji(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Br.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),u=0;u<s.length;u++){var d=s[u];e=e.replace(new RegExp(d,"g"),t[d])}return e}var eo=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Qi(e)}},to=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},ro=function(e,t){for(var r={},n=Object.keys(e),s=Array.isArray(t),u=0;u<n.length;u++){var d=n[u],S=e[d];(s?t.indexOf(d)!==-1:t(d,S,e))&&(r[d]=S)}return r};(function(e){const t=Xi,r=eo,n=to,s=ro,u=a=>a==null;function d(a){switch(a.arrayFormat){case"index":return o=>(l,p)=>{const y=l.length;return p===void 0||a.skipNull&&p===null||a.skipEmptyString&&p===""?l:p===null?[...l,[j(o,a),"[",y,"]"].join("")]:[...l,[j(o,a),"[",j(y,a),"]=",j(p,a)].join("")]};case"bracket":return o=>(l,p)=>p===void 0||a.skipNull&&p===null||a.skipEmptyString&&p===""?l:p===null?[...l,[j(o,a),"[]"].join("")]:[...l,[j(o,a),"[]=",j(p,a)].join("")];case"comma":case"separator":return o=>(l,p)=>p==null||p.length===0?l:l.length===0?[[j(o,a),"=",j(p,a)].join("")]:[[l,j(p,a)].join(a.arrayFormatSeparator)];default:return o=>(l,p)=>p===void 0||a.skipNull&&p===null||a.skipEmptyString&&p===""?l:p===null?[...l,j(o,a)]:[...l,[j(o,a),"=",j(p,a)].join("")]}}function S(a){let o;switch(a.arrayFormat){case"index":return(l,p,y)=>{if(o=/\[(\d*)\]$/.exec(l),l=l.replace(/\[\d*\]$/,""),!o){y[l]=p;return}y[l]===void 0&&(y[l]={}),y[l][o[1]]=p};case"bracket":return(l,p,y)=>{if(o=/(\[\])$/.exec(l),l=l.replace(/\[\]$/,""),!o){y[l]=p;return}if(y[l]===void 0){y[l]=[p];return}y[l]=[].concat(y[l],p)};case"comma":case"separator":return(l,p,y)=>{const C=typeof p=="string"&&p.includes(a.arrayFormatSeparator),E=typeof p=="string"&&!C&&f(p,a).includes(a.arrayFormatSeparator);p=E?f(p,a):p;const N=C||E?p.split(a.arrayFormatSeparator).map(V=>f(V,a)):p===null?p:f(p,a);y[l]=N};default:return(l,p,y)=>{if(y[l]===void 0){y[l]=p;return}y[l]=[].concat(y[l],p)}}}function x(a){if(typeof a!="string"||a.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function j(a,o){return o.encode?o.strict?t(a):encodeURIComponent(a):a}function f(a,o){return o.decode?r(a):a}function D(a){return Array.isArray(a)?a.sort():typeof a=="object"?D(Object.keys(a)).sort((o,l)=>Number(o)-Number(l)).map(o=>a[o]):a}function b(a){const o=a.indexOf("#");return o!==-1&&(a=a.slice(0,o)),a}function P(a){let o="";const l=a.indexOf("#");return l!==-1&&(o=a.slice(l)),o}function O(a){a=b(a);const o=a.indexOf("?");return o===-1?"":a.slice(o+1)}function k(a,o){return o.parseNumbers&&!Number.isNaN(Number(a))&&typeof a=="string"&&a.trim()!==""?a=Number(a):o.parseBooleans&&a!==null&&(a.toLowerCase()==="true"||a.toLowerCase()==="false")&&(a=a.toLowerCase()==="true"),a}function w(a,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),x(o.arrayFormatSeparator);const l=S(o),p=Object.create(null);if(typeof a!="string"||(a=a.trim().replace(/^[?#&]/,""),!a))return p;for(const y of a.split("&")){if(y==="")continue;let[C,E]=n(o.decode?y.replace(/\+/g," "):y,"=");E=E===void 0?null:["comma","separator"].includes(o.arrayFormat)?E:f(E,o),l(f(C,o),E,p)}for(const y of Object.keys(p)){const C=p[y];if(typeof C=="object"&&C!==null)for(const E of Object.keys(C))C[E]=k(C[E],o);else p[y]=k(C,o)}return o.sort===!1?p:(o.sort===!0?Object.keys(p).sort():Object.keys(p).sort(o.sort)).reduce((y,C)=>{const E=p[C];return E&&typeof E=="object"&&!Array.isArray(E)?y[C]=D(E):y[C]=E,y},Object.create(null))}e.extract=O,e.parse=w,e.stringify=(a,o)=>{if(!a)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),x(o.arrayFormatSeparator);const l=E=>o.skipNull&&u(a[E])||o.skipEmptyString&&a[E]==="",p=d(o),y={};for(const E of Object.keys(a))l(E)||(y[E]=a[E]);const C=Object.keys(y);return o.sort!==!1&&C.sort(o.sort),C.map(E=>{const N=a[E];return N===void 0?"":N===null?j(E,o):Array.isArray(N)?N.reduce(p(E),[]).join("&"):j(E,o)+"="+j(N,o)}).filter(E=>E.length>0).join("&")},e.parseUrl=(a,o)=>{o=Object.assign({decode:!0},o);const[l,p]=n(a,"#");return Object.assign({url:l.split("?")[0]||"",query:w(O(a),o)},o&&o.parseFragmentIdentifier&&p?{fragmentIdentifier:f(p,o)}:{})},e.stringifyUrl=(a,o)=>{o=Object.assign({encode:!0,strict:!0},o);const l=b(a.url).split("?")[0]||"",p=e.extract(a.url),y=e.parse(p,{sort:!1}),C=Object.assign(y,a.query);let E=e.stringify(C,o);E&&(E=`?${E}`);let N=P(a.url);return a.fragmentIdentifier&&(N=`#${j(a.fragmentIdentifier,o)}`),`${l}${E}${N}`},e.pick=(a,o,l)=>{l=Object.assign({parseFragmentIdentifier:!0},l);const{url:p,query:y,fragmentIdentifier:C}=e.parseUrl(a,l);return e.stringifyUrl({url:p,query:s(y,o),fragmentIdentifier:C},l)},e.exclude=(a,o,l)=>{const p=Array.isArray(o)?y=>!o.includes(y):(y,C)=>!o(y,C);return e.pick(a,p,l)}})(wt);const ct=Jn,no={parseNumbers:!1,parseBooleans:!1},io={skipNull:!1,skipEmptyString:!1},oo=(e,t)=>{var r,n;const{navigateMode:s="push",parseOptions:u,stringifyOptions:d}={},S=Object.assign(Object.assign({},no),u),x=Object.assign(Object.assign({},io),d),j=ct.useLocation(),f=(r=ct.useHistory)===null||r===void 0?void 0:r.call(ct),D=(n=ct.useNavigate)===null||n===void 0?void 0:n.call(ct),b=Xn(),P=H.useRef(typeof e=="function"?e():e||{}),O=H.useMemo(()=>wt.parse(j.search,S),[j.search]),k=H.useMemo(()=>Object.assign(Object.assign({},P.current),O),[O]);return[k,fr(a=>{const o=typeof a=="function"?a(k):a;b(),f&&f[s]({hash:j.hash,search:wt.stringify(Object.assign(Object.assign({},O),o),x)||"?"},j.state),D&&D({hash:j.hash,search:wt.stringify(Object.assign(Object.assign({},O),o),x)||"?"},{replace:s==="replace",state:j.state})})]},ao=oo;var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isValid=he.fromJSON=he.fromRandom=he.fromAddress=he.fromPublicKey=he.fromSecretKey=he.Wallet=he.WalletType=void 0;const ht=gn,Ot=_t,Ae=hn;he.WalletType=Ae.DidType;function it(e,t="default"){const r=(0,Ae.DidType)(t),n=(0,Ot.getSigner)(r.pk),s=(0,Ot.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,Ae.fromPublicKey)(e.pk,r):e.address,hash(u,d=1,S="hex"){return s(u,d,S)},sign(u,d=!0,S="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(d){const x=s(u,1);return n.sign(x,e.sk,S)}return n.sign(u,e.sk,S)},verify(u,d,S=!0){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const x=S?s(u,1):u;return n.verify(x,d,e.pk)},ethHash(u){if(typeof n.ethHash!="function")throw new Error("ethHash is not supported by signer");return n.ethHash(u)},ethSign(u,d=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof n.ethHash!="function")throw new Error("ethSign is not supported by signer");return d?n.ethSign(n.ethHash(u),(0,ht.toHex)(e.sk)):n.ethSign(u,(0,ht.toHex)(e.sk))},ethVerify(u,d,S=!0){if(typeof n.ethHash!="function")throw new Error("ethVerify is not supported by signer");const x=S?n.ethHash(u):u;return n.ethRecover(x,d)===this.address},toAddress(){return e.pk?(0,Ae.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:Ae.DidType.toJSON(r),sk:(0,ht.toHex)(e.sk),pk:(0,ht.toHex)(e.pk),address:this.address}}}}he.Wallet=it;function so(e,t="default"){const r=(0,Ae.DidType)(t),n={sk:e,pk:(0,Ot.getSigner)(r.pk).getPublicKey(e)};return it(n,r)}he.fromSecretKey=so;function co(e,t="default"){return it({pk:e},(0,Ae.DidType)(t))}he.fromPublicKey=co;function lo(e){return it({address:(0,Ae.toAddress)(e)},(0,Ae.toTypeInfo)(e))}he.fromAddress=lo;function uo(e="default"){const t=(0,Ae.DidType)(e),n=(0,Ot.getSigner)(t.pk).genKeyPair();return it({sk:n.secretKey,pk:n.publicKey},t)}he.fromRandom=uo;function fo(e){const t=Ae.DidType.fromJSON(e.type);return it(e,t)}he.fromJSON=fo;function po(e,t=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||t&&(!e.secretKey||typeof e.sign!="function"))}he.isValid=po;var kt={exports:{}},Kt={},Fr;function Dn(){if(Fr)return Kt;Fr=1;function e(o){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},e(o)}function t(o,l,p){return Object.defineProperty(o,"prototype",{writable:!1}),o}function r(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}function n(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),l&&s(o,l)}function s(o,l){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,C){return y.__proto__=C,y},s(o,l)}function u(o){var l=x();return function(){var y=j(o),C;if(l){var E=j(this).constructor;C=Reflect.construct(y,arguments,E)}else C=y.apply(this,arguments);return d(this,C)}}function d(o,l){if(l&&(e(l)==="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(o)}function S(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j(o){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},j(o)}var f={},D,b;function P(o,l,p){p||(p=Error);function y(E,N,V){return typeof l=="string"?l:l(E,N,V)}var C=function(E){n(V,E);var N=u(V);function V(ee,X,G){var J;return r(this,V),J=N.call(this,y(ee,X,G)),J.code=o,J}return t(V)}(p);f[o]=C}function O(o,l){if(Array.isArray(o)){var p=o.length;return o=o.map(function(y){return String(y)}),p>2?"one of ".concat(l," ").concat(o.slice(0,p-1).join(", "),", or ")+o[p-1]:p===2?"one of ".concat(l," ").concat(o[0]," or ").concat(o[1]):"of ".concat(l," ").concat(o[0])}else return"of ".concat(l," ").concat(String(o))}function k(o,l,p){return o.substr(0,l.length)===l}function w(o,l,p){return(p===void 0||p>o.length)&&(p=o.length),o.substring(p-l.length,p)===l}function a(o,l,p){return typeof p!="number"&&(p=0),p+l.length>o.length?!1:o.indexOf(l,p)!==-1}return P("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),P("ERR_INVALID_ARG_TYPE",function(o,l,p){D===void 0&&(D=lr()),D(typeof o=="string","'name' must be a string");var y;typeof l=="string"&&k(l,"not ")?(y="must not be",l=l.replace(/^not /,"")):y="must be";var C;if(w(o," argument"))C="The ".concat(o," ").concat(y," ").concat(O(l,"type"));else{var E=a(o,".")?"property":"argument";C='The "'.concat(o,'" ').concat(E," ").concat(y," ").concat(O(l,"type"))}return C+=". Received type ".concat(e(p)),C},TypeError),P("ERR_INVALID_ARG_VALUE",function(o,l){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";b===void 0&&(b=ft);var y=b.inspect(l);return y.length>128&&(y="".concat(y.slice(0,128),"...")),"The argument '".concat(o,"' ").concat(p,". Received ").concat(y)},TypeError),P("ERR_INVALID_RETURN_VALUE",function(o,l,p){var y;return p&&p.constructor&&p.constructor.name?y="instance of ".concat(p.constructor.name):y="type ".concat(e(p)),"Expected ".concat(o,' to be returned from the "').concat(l,'"')+" function but got ".concat(y,".")},TypeError),P("ERR_MISSING_ARGS",function(){for(var o=arguments.length,l=new Array(o),p=0;p<o;p++)l[p]=arguments[p];D===void 0&&(D=lr()),D(l.length>0,"At least one arg needs to be specified");var y="The ",C=l.length;switch(l=l.map(function(E){return'"'.concat(E,'"')}),C){case 1:y+="".concat(l[0]," argument");break;case 2:y+="".concat(l[0]," and ").concat(l[1]," arguments");break;default:y+=l.slice(0,C-1).join(", "),y+=", and ".concat(l[C-1]," arguments");break}return"".concat(y," must be specified")},TypeError),Kt.codes=f,Kt}var Bt,$r;function mo(){if($r)return Bt;$r=1;function e(A,R){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(A);R&&(_=_.filter(function(W){return Object.getOwnPropertyDescriptor(A,W).enumerable})),B.push.apply(B,_)}return B}function t(A){for(var R=1;R<arguments.length;R++){var B=arguments[R]!=null?arguments[R]:{};R%2?e(Object(B),!0).forEach(function(_){r(A,_,B[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(B)):e(Object(B)).forEach(function(_){Object.defineProperty(A,_,Object.getOwnPropertyDescriptor(B,_))})}return A}function r(A,R,B){return R=d(R),R in A?Object.defineProperty(A,R,{value:B,enumerable:!0,configurable:!0,writable:!0}):A[R]=B,A}function n(A,R){if(!(A instanceof R))throw new TypeError("Cannot call a class as a function")}function s(A,R){for(var B=0;B<R.length;B++){var _=R[B];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(A,d(_.key),_)}}function u(A,R,B){return R&&s(A.prototype,R),Object.defineProperty(A,"prototype",{writable:!1}),A}function d(A){var R=S(A,"string");return o(R)==="symbol"?R:String(R)}function S(A,R){if(o(A)!=="object"||A===null)return A;var B=A[Symbol.toPrimitive];if(B!==void 0){var _=B.call(A,R||"default");if(o(_)!=="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(A)}function x(A,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(R&&R.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),R&&w(A,R)}function j(A){var R=O();return function(){var _=a(A),W;if(R){var g=a(this).constructor;W=Reflect.construct(_,arguments,g)}else W=_.apply(this,arguments);return f(this,W)}}function f(A,R){if(R&&(o(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(A)}function D(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function b(A){var R=typeof Map=="function"?new Map:void 0;return b=function(_){if(_===null||!k(_))return _;if(typeof _!="function")throw new TypeError("Super expression must either be null or a function");if(typeof R<"u"){if(R.has(_))return R.get(_);R.set(_,W)}function W(){return P(_,arguments,a(this).constructor)}return W.prototype=Object.create(_.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),w(W,_)},b(A)}function P(A,R,B){return O()?P=Reflect.construct.bind():P=function(W,g,m){var v=[null];v.push.apply(v,g);var L=Function.bind.apply(W,v),T=new L;return m&&w(T,m.prototype),T},P.apply(null,arguments)}function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k(A){return Function.toString.call(A).indexOf("[native code]")!==-1}function w(A,R){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_,W){return _.__proto__=W,_},w(A,R)}function a(A){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},a(A)}function o(A){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},o(A)}var l=ft,p=l.inspect,y=Dn(),C=y.codes.ERR_INVALID_ARG_TYPE;function E(A,R,B){return(B===void 0||B>A.length)&&(B=A.length),A.substring(B-R.length,B)===R}function N(A,R){if(R=Math.floor(R),A.length==0||R==0)return"";var B=A.length*R;for(R=Math.floor(Math.log(R)/Math.log(2));R;)A+=A,R--;return A+=A.substring(0,B-A.length),A}var V="",ee="",X="",G="",J={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},xe=10;function Y(A){var R=Object.keys(A),B=Object.create(Object.getPrototypeOf(A));return R.forEach(function(_){B[_]=A[_]}),Object.defineProperty(B,"message",{value:A.message}),B}function pe(A){return p(A,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function we(A,R,B){var _="",W="",g=0,m="",v=!1,L=pe(A),T=L.split(`
|
|
1
|
+
import{r as H,j as i,g1 as Xn,l as fr,g2 as Jn,eX as hn,eW as gn,eV as _t,g3 as ft,eU as _e,g4 as Qn,g5 as yn,g6 as vn,g7 as ei,g8 as ti,g9 as bn,ga as pr,gb as ri,gc as ni,gd as ii,ge as oi,eN as tr,b7 as ai,cm as Lr,eP as si,a8 as ci,aP as Ne,u as Fe,N as xn,B as ce,aT as jt,A as wn,D as li,T as Ue,gf as dr,af as pt,au as Ge,a1 as Se,n as rt,P as M,bC as ui,cq as rr,K as fi,e_ as pi,Z as De,dc as di,a0 as mt,bl as Ze,t as nt,gg as mi,aa as Ye,dC as hi,aY as jn,G as Ee,a as dt,c as nr,b as gi,bF as yi,gh as En,bL as Sn,aV as vi,X as bi,Y as xi,bQ as Pn,m as wi,aC as ji,bH as Ei}from"./index-fgn9vwq8.js";import{c as Si}from"./index-DuPJDRpB.js";import{d as Et}from"./Add-CjHtOOsW.js";import{d as Pi}from"./Loop-CGMlnuX2.js";import{d as Oi}from"./ViewList-JPiij74q.js";import{L as Ai,S as Ri,d as On}from"./list-header-B0DU7iJ8.js";import{D as An,g as Ii}from"./index-DPP6VPXO.js";import"./index-BF2VCknl.js";import"./index-XgsqmBi5.js";import{h as Rn}from"./resource-dialog-B74wCZrY.js";import{T as _i}from"./index-D1cdkATF.js";import{E as In}from"./index-Pa_povbs.js";import"./fallback-BiNvsiaq.js";import"./index-B2buyTYt.js";import{d as Ti,U as Ci}from"./user-sessions-3hW7A5O1.js";import{u as $e,d as Ur,W as _n,a as Ni}from"./dashboard-H4MvXtMx.js";import{W as St}from"./did-address-BnBtx4o3.js";import{P as Ke}from"./permission-BbWaMmK6.js";import{C as Tt}from"./click-to-copy-JKdxz45I.js";import{F as ir}from"./FormControl-CBM31tVk.js";import{I as or}from"./InputLabel-D4nkCqtD.js";import{S as ar}from"./Select-3MFmfiU2.js";import{T as Pt}from"./TextField-DFiFTqqd.js";import{D as mr}from"./DialogContentText-Dd6Llavm.js";import{A as tt}from"./Alert-C1AWoXzB.js";import{f as Xe}from"./format-error-CFOsq4HX.js";import{_ as Di}from"./useAsync-Bb8Vv9_h.js";import{I as sr}from"./index-CM4OpCGB.js";import{C as Ct}from"./confirm-DQ3CFWMW.js";import{u as Tn}from"./session-DAMa63sM.js";import{N as Li}from"./index-B7RmJs-M.js";import{a as Ui}from"./uniqBy-dnuDvtYO.js";import{b as qi}from"./sdk-DmxPo3pC.js";import{A as ki}from"./Avatar-DD_manng.js";import{d as Ki}from"./Delete-DmUC02xh.js";import{p as Bi}from"./index-HqFqdQ4r.js";import{A as Fi}from"./actions-GskZx_ox.js";import{L as $i,a as Mi}from"./ListItemText-SZUZM8zJ.js";import{S as zi}from"./shorten-label-DXOCGUmG.js";import{F as Wi,C as Vi}from"./FormControlLabel-Bid6aLDa.js";import"./Search-kaa4IwGB.js";import"./useThemeProps-Dc-5SZKE.js";import"./Grid-CosTfC_n.js";import"./emotion-cache.browser.esm-BNDDTfYL.js";import"./index-BzI1fpMA.js";import"./redux-Bj5HJmsh.js";import"./ViewColumn-UerMI3fe.js";import"./useFormControl-CGJ6_pv6.js";import"./FormGroup-CQ2r3LPd.js";import"./LastPage-D5sEb42F.js";import"./Toolbar-Ch5_bErb.js";import"./MoreVert-Dm5VmAN3.js";import"./index-Brct1h9T.js";import"./Menu-C6gTV_C5.js";import"./Hidden-CbT0Nsko.js";import"./ExpandMore-DkLjJq9w.js";import"./selector-CuYNfwOx.js";import"./OpenInNew-FWEY5jmN.js";import"./CloseOutlined-vttxnPOn.js";import"./use-mobile-2Gfazu03.js";import"./Link-C4c-c9oW.js";import"./useLocalStorage-Dh2Sw2wx.js";import"./PlayArrow-DDVBKikc.js";import"./ButtonGroup-Dslh4PgR.js";import"./RadioGroup-DQS4l9Qs.js";import"./index-oadE3d-r.js";import"./useSetState-DIdqG-wZ.js";import"./deprecate-CiQ3rCd1.js";import"./useSlot-Suwkr6Il.js";import"./MoreHoriz-91XyooIB.js";import"./Stack-DOuPfp9P.js";var hr={};Object.defineProperty(hr,"__esModule",{value:!0});var Cn=hr.default=void 0;Hi(H);var Qe=i;function Hi(e){return e&&e.__esModule?e:{default:e}}function qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qr(Object(r),!0).forEach(function(n){Gi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gi(e,t,r){return(t=Yi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yi(e){var t=Zi(e,"string");return typeof t=="symbol"?t:t+""}function Zi(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gr=function(t){return(0,Qe.jsxs)("svg",kr(kr({},t),{},{children:[(0,Qe.jsx)("g",{clipPath:"url(#clip0)",children:(0,Qe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,Qe.jsx)("defs",{children:(0,Qe.jsx)("clipPath",{id:"clip0",children:(0,Qe.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};gr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};gr.displayName="person";Cn=hr.default=gr;var wt={},Xi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Nn="%[a-f0-9]{2}",Kr=new RegExp("("+Nn+")|([^%]+?)","gi"),Br=new RegExp("("+Nn+")+","gi");function cr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],cr(r),cr(n))}function Ji(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Kr)||[],r=1;r<t.length;r++)e=cr(t,r).join(""),t=e.match(Kr)||[];return e}}function Qi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Br.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=Ji(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Br.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),u=0;u<s.length;u++){var d=s[u];e=e.replace(new RegExp(d,"g"),t[d])}return e}var eo=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Qi(e)}},to=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},ro=function(e,t){for(var r={},n=Object.keys(e),s=Array.isArray(t),u=0;u<n.length;u++){var d=n[u],S=e[d];(s?t.indexOf(d)!==-1:t(d,S,e))&&(r[d]=S)}return r};(function(e){const t=Xi,r=eo,n=to,s=ro,u=a=>a==null;function d(a){switch(a.arrayFormat){case"index":return o=>(l,p)=>{const y=l.length;return p===void 0||a.skipNull&&p===null||a.skipEmptyString&&p===""?l:p===null?[...l,[j(o,a),"[",y,"]"].join("")]:[...l,[j(o,a),"[",j(y,a),"]=",j(p,a)].join("")]};case"bracket":return o=>(l,p)=>p===void 0||a.skipNull&&p===null||a.skipEmptyString&&p===""?l:p===null?[...l,[j(o,a),"[]"].join("")]:[...l,[j(o,a),"[]=",j(p,a)].join("")];case"comma":case"separator":return o=>(l,p)=>p==null||p.length===0?l:l.length===0?[[j(o,a),"=",j(p,a)].join("")]:[[l,j(p,a)].join(a.arrayFormatSeparator)];default:return o=>(l,p)=>p===void 0||a.skipNull&&p===null||a.skipEmptyString&&p===""?l:p===null?[...l,j(o,a)]:[...l,[j(o,a),"=",j(p,a)].join("")]}}function S(a){let o;switch(a.arrayFormat){case"index":return(l,p,y)=>{if(o=/\[(\d*)\]$/.exec(l),l=l.replace(/\[\d*\]$/,""),!o){y[l]=p;return}y[l]===void 0&&(y[l]={}),y[l][o[1]]=p};case"bracket":return(l,p,y)=>{if(o=/(\[\])$/.exec(l),l=l.replace(/\[\]$/,""),!o){y[l]=p;return}if(y[l]===void 0){y[l]=[p];return}y[l]=[].concat(y[l],p)};case"comma":case"separator":return(l,p,y)=>{const C=typeof p=="string"&&p.includes(a.arrayFormatSeparator),E=typeof p=="string"&&!C&&f(p,a).includes(a.arrayFormatSeparator);p=E?f(p,a):p;const N=C||E?p.split(a.arrayFormatSeparator).map(V=>f(V,a)):p===null?p:f(p,a);y[l]=N};default:return(l,p,y)=>{if(y[l]===void 0){y[l]=p;return}y[l]=[].concat(y[l],p)}}}function x(a){if(typeof a!="string"||a.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function j(a,o){return o.encode?o.strict?t(a):encodeURIComponent(a):a}function f(a,o){return o.decode?r(a):a}function D(a){return Array.isArray(a)?a.sort():typeof a=="object"?D(Object.keys(a)).sort((o,l)=>Number(o)-Number(l)).map(o=>a[o]):a}function b(a){const o=a.indexOf("#");return o!==-1&&(a=a.slice(0,o)),a}function P(a){let o="";const l=a.indexOf("#");return l!==-1&&(o=a.slice(l)),o}function O(a){a=b(a);const o=a.indexOf("?");return o===-1?"":a.slice(o+1)}function k(a,o){return o.parseNumbers&&!Number.isNaN(Number(a))&&typeof a=="string"&&a.trim()!==""?a=Number(a):o.parseBooleans&&a!==null&&(a.toLowerCase()==="true"||a.toLowerCase()==="false")&&(a=a.toLowerCase()==="true"),a}function w(a,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),x(o.arrayFormatSeparator);const l=S(o),p=Object.create(null);if(typeof a!="string"||(a=a.trim().replace(/^[?#&]/,""),!a))return p;for(const y of a.split("&")){if(y==="")continue;let[C,E]=n(o.decode?y.replace(/\+/g," "):y,"=");E=E===void 0?null:["comma","separator"].includes(o.arrayFormat)?E:f(E,o),l(f(C,o),E,p)}for(const y of Object.keys(p)){const C=p[y];if(typeof C=="object"&&C!==null)for(const E of Object.keys(C))C[E]=k(C[E],o);else p[y]=k(C,o)}return o.sort===!1?p:(o.sort===!0?Object.keys(p).sort():Object.keys(p).sort(o.sort)).reduce((y,C)=>{const E=p[C];return E&&typeof E=="object"&&!Array.isArray(E)?y[C]=D(E):y[C]=E,y},Object.create(null))}e.extract=O,e.parse=w,e.stringify=(a,o)=>{if(!a)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),x(o.arrayFormatSeparator);const l=E=>o.skipNull&&u(a[E])||o.skipEmptyString&&a[E]==="",p=d(o),y={};for(const E of Object.keys(a))l(E)||(y[E]=a[E]);const C=Object.keys(y);return o.sort!==!1&&C.sort(o.sort),C.map(E=>{const N=a[E];return N===void 0?"":N===null?j(E,o):Array.isArray(N)?N.reduce(p(E),[]).join("&"):j(E,o)+"="+j(N,o)}).filter(E=>E.length>0).join("&")},e.parseUrl=(a,o)=>{o=Object.assign({decode:!0},o);const[l,p]=n(a,"#");return Object.assign({url:l.split("?")[0]||"",query:w(O(a),o)},o&&o.parseFragmentIdentifier&&p?{fragmentIdentifier:f(p,o)}:{})},e.stringifyUrl=(a,o)=>{o=Object.assign({encode:!0,strict:!0},o);const l=b(a.url).split("?")[0]||"",p=e.extract(a.url),y=e.parse(p,{sort:!1}),C=Object.assign(y,a.query);let E=e.stringify(C,o);E&&(E=`?${E}`);let N=P(a.url);return a.fragmentIdentifier&&(N=`#${j(a.fragmentIdentifier,o)}`),`${l}${E}${N}`},e.pick=(a,o,l)=>{l=Object.assign({parseFragmentIdentifier:!0},l);const{url:p,query:y,fragmentIdentifier:C}=e.parseUrl(a,l);return e.stringifyUrl({url:p,query:s(y,o),fragmentIdentifier:C},l)},e.exclude=(a,o,l)=>{const p=Array.isArray(o)?y=>!o.includes(y):(y,C)=>!o(y,C);return e.pick(a,p,l)}})(wt);const ct=Jn,no={parseNumbers:!1,parseBooleans:!1},io={skipNull:!1,skipEmptyString:!1},oo=(e,t)=>{var r,n;const{navigateMode:s="push",parseOptions:u,stringifyOptions:d}={},S=Object.assign(Object.assign({},no),u),x=Object.assign(Object.assign({},io),d),j=ct.useLocation(),f=(r=ct.useHistory)===null||r===void 0?void 0:r.call(ct),D=(n=ct.useNavigate)===null||n===void 0?void 0:n.call(ct),b=Xn(),P=H.useRef(typeof e=="function"?e():e||{}),O=H.useMemo(()=>wt.parse(j.search,S),[j.search]),k=H.useMemo(()=>Object.assign(Object.assign({},P.current),O),[O]);return[k,fr(a=>{const o=typeof a=="function"?a(k):a;b(),f&&f[s]({hash:j.hash,search:wt.stringify(Object.assign(Object.assign({},O),o),x)||"?"},j.state),D&&D({hash:j.hash,search:wt.stringify(Object.assign(Object.assign({},O),o),x)||"?"},{replace:s==="replace",state:j.state})})]},ao=oo;var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isValid=he.fromJSON=he.fromRandom=he.fromAddress=he.fromPublicKey=he.fromSecretKey=he.Wallet=he.WalletType=void 0;const ht=gn,Ot=_t,Ae=hn;he.WalletType=Ae.DidType;function it(e,t="default"){const r=(0,Ae.DidType)(t),n=(0,Ot.getSigner)(r.pk),s=(0,Ot.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,Ae.fromPublicKey)(e.pk,r):e.address,hash(u,d=1,S="hex"){return s(u,d,S)},sign(u,d=!0,S="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(d){const x=s(u,1);return n.sign(x,e.sk,S)}return n.sign(u,e.sk,S)},verify(u,d,S=!0){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const x=S?s(u,1):u;return n.verify(x,d,e.pk)},ethHash(u){if(typeof n.ethHash!="function")throw new Error("ethHash is not supported by signer");return n.ethHash(u)},ethSign(u,d=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof n.ethHash!="function")throw new Error("ethSign is not supported by signer");return d?n.ethSign(n.ethHash(u),(0,ht.toHex)(e.sk)):n.ethSign(u,(0,ht.toHex)(e.sk))},ethVerify(u,d,S=!0){if(typeof n.ethHash!="function")throw new Error("ethVerify is not supported by signer");const x=S?n.ethHash(u):u;return n.ethRecover(x,d)===this.address},toAddress(){return e.pk?(0,Ae.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:Ae.DidType.toJSON(r),sk:(0,ht.toHex)(e.sk),pk:(0,ht.toHex)(e.pk),address:this.address}}}}he.Wallet=it;function so(e,t="default"){const r=(0,Ae.DidType)(t),n={sk:e,pk:(0,Ot.getSigner)(r.pk).getPublicKey(e)};return it(n,r)}he.fromSecretKey=so;function co(e,t="default"){return it({pk:e},(0,Ae.DidType)(t))}he.fromPublicKey=co;function lo(e){return it({address:(0,Ae.toAddress)(e)},(0,Ae.toTypeInfo)(e))}he.fromAddress=lo;function uo(e="default"){const t=(0,Ae.DidType)(e),n=(0,Ot.getSigner)(t.pk).genKeyPair();return it({sk:n.secretKey,pk:n.publicKey},t)}he.fromRandom=uo;function fo(e){const t=Ae.DidType.fromJSON(e.type);return it(e,t)}he.fromJSON=fo;function po(e,t=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||t&&(!e.secretKey||typeof e.sign!="function"))}he.isValid=po;var kt={exports:{}},Kt={},Fr;function Dn(){if(Fr)return Kt;Fr=1;function e(o){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},e(o)}function t(o,l,p){return Object.defineProperty(o,"prototype",{writable:!1}),o}function r(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}function n(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),l&&s(o,l)}function s(o,l){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,C){return y.__proto__=C,y},s(o,l)}function u(o){var l=x();return function(){var y=j(o),C;if(l){var E=j(this).constructor;C=Reflect.construct(y,arguments,E)}else C=y.apply(this,arguments);return d(this,C)}}function d(o,l){if(l&&(e(l)==="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(o)}function S(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j(o){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},j(o)}var f={},D,b;function P(o,l,p){p||(p=Error);function y(E,N,V){return typeof l=="string"?l:l(E,N,V)}var C=function(E){n(V,E);var N=u(V);function V(ee,X,G){var J;return r(this,V),J=N.call(this,y(ee,X,G)),J.code=o,J}return t(V)}(p);f[o]=C}function O(o,l){if(Array.isArray(o)){var p=o.length;return o=o.map(function(y){return String(y)}),p>2?"one of ".concat(l," ").concat(o.slice(0,p-1).join(", "),", or ")+o[p-1]:p===2?"one of ".concat(l," ").concat(o[0]," or ").concat(o[1]):"of ".concat(l," ").concat(o[0])}else return"of ".concat(l," ").concat(String(o))}function k(o,l,p){return o.substr(0,l.length)===l}function w(o,l,p){return(p===void 0||p>o.length)&&(p=o.length),o.substring(p-l.length,p)===l}function a(o,l,p){return typeof p!="number"&&(p=0),p+l.length>o.length?!1:o.indexOf(l,p)!==-1}return P("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),P("ERR_INVALID_ARG_TYPE",function(o,l,p){D===void 0&&(D=lr()),D(typeof o=="string","'name' must be a string");var y;typeof l=="string"&&k(l,"not ")?(y="must not be",l=l.replace(/^not /,"")):y="must be";var C;if(w(o," argument"))C="The ".concat(o," ").concat(y," ").concat(O(l,"type"));else{var E=a(o,".")?"property":"argument";C='The "'.concat(o,'" ').concat(E," ").concat(y," ").concat(O(l,"type"))}return C+=". Received type ".concat(e(p)),C},TypeError),P("ERR_INVALID_ARG_VALUE",function(o,l){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";b===void 0&&(b=ft);var y=b.inspect(l);return y.length>128&&(y="".concat(y.slice(0,128),"...")),"The argument '".concat(o,"' ").concat(p,". Received ").concat(y)},TypeError),P("ERR_INVALID_RETURN_VALUE",function(o,l,p){var y;return p&&p.constructor&&p.constructor.name?y="instance of ".concat(p.constructor.name):y="type ".concat(e(p)),"Expected ".concat(o,' to be returned from the "').concat(l,'"')+" function but got ".concat(y,".")},TypeError),P("ERR_MISSING_ARGS",function(){for(var o=arguments.length,l=new Array(o),p=0;p<o;p++)l[p]=arguments[p];D===void 0&&(D=lr()),D(l.length>0,"At least one arg needs to be specified");var y="The ",C=l.length;switch(l=l.map(function(E){return'"'.concat(E,'"')}),C){case 1:y+="".concat(l[0]," argument");break;case 2:y+="".concat(l[0]," and ").concat(l[1]," arguments");break;default:y+=l.slice(0,C-1).join(", "),y+=", and ".concat(l[C-1]," arguments");break}return"".concat(y," must be specified")},TypeError),Kt.codes=f,Kt}var Bt,$r;function mo(){if($r)return Bt;$r=1;function e(A,R){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(A);R&&(_=_.filter(function(W){return Object.getOwnPropertyDescriptor(A,W).enumerable})),B.push.apply(B,_)}return B}function t(A){for(var R=1;R<arguments.length;R++){var B=arguments[R]!=null?arguments[R]:{};R%2?e(Object(B),!0).forEach(function(_){r(A,_,B[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(B)):e(Object(B)).forEach(function(_){Object.defineProperty(A,_,Object.getOwnPropertyDescriptor(B,_))})}return A}function r(A,R,B){return R=d(R),R in A?Object.defineProperty(A,R,{value:B,enumerable:!0,configurable:!0,writable:!0}):A[R]=B,A}function n(A,R){if(!(A instanceof R))throw new TypeError("Cannot call a class as a function")}function s(A,R){for(var B=0;B<R.length;B++){var _=R[B];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(A,d(_.key),_)}}function u(A,R,B){return R&&s(A.prototype,R),Object.defineProperty(A,"prototype",{writable:!1}),A}function d(A){var R=S(A,"string");return o(R)==="symbol"?R:String(R)}function S(A,R){if(o(A)!=="object"||A===null)return A;var B=A[Symbol.toPrimitive];if(B!==void 0){var _=B.call(A,R||"default");if(o(_)!=="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(A)}function x(A,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(R&&R.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),R&&w(A,R)}function j(A){var R=O();return function(){var _=a(A),W;if(R){var g=a(this).constructor;W=Reflect.construct(_,arguments,g)}else W=_.apply(this,arguments);return f(this,W)}}function f(A,R){if(R&&(o(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(A)}function D(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function b(A){var R=typeof Map=="function"?new Map:void 0;return b=function(_){if(_===null||!k(_))return _;if(typeof _!="function")throw new TypeError("Super expression must either be null or a function");if(typeof R<"u"){if(R.has(_))return R.get(_);R.set(_,W)}function W(){return P(_,arguments,a(this).constructor)}return W.prototype=Object.create(_.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),w(W,_)},b(A)}function P(A,R,B){return O()?P=Reflect.construct.bind():P=function(W,g,m){var v=[null];v.push.apply(v,g);var L=Function.bind.apply(W,v),T=new L;return m&&w(T,m.prototype),T},P.apply(null,arguments)}function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k(A){return Function.toString.call(A).indexOf("[native code]")!==-1}function w(A,R){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_,W){return _.__proto__=W,_},w(A,R)}function a(A){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},a(A)}function o(A){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},o(A)}var l=ft,p=l.inspect,y=Dn(),C=y.codes.ERR_INVALID_ARG_TYPE;function E(A,R,B){return(B===void 0||B>A.length)&&(B=A.length),A.substring(B-R.length,B)===R}function N(A,R){if(R=Math.floor(R),A.length==0||R==0)return"";var B=A.length*R;for(R=Math.floor(Math.log(R)/Math.log(2));R;)A+=A,R--;return A+=A.substring(0,B-A.length),A}var V="",ee="",X="",G="",J={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},xe=10;function Y(A){var R=Object.keys(A),B=Object.create(Object.getPrototypeOf(A));return R.forEach(function(_){B[_]=A[_]}),Object.defineProperty(B,"message",{value:A.message}),B}function pe(A){return p(A,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function we(A,R,B){var _="",W="",g=0,m="",v=!1,L=pe(A),T=L.split(`
|
|
2
2
|
`),q=pe(R).split(`
|
|
3
3
|
`),F=0,ne="";if(B==="strictEqual"&&o(A)==="object"&&o(R)==="object"&&A!==null&&R!==null&&(B="strictEqualObject"),T.length===1&&q.length===1&&T[0]!==q[0]){var ue=T[0].length+q[0].length;if(ue<=xe){if((o(A)!=="object"||A===null)&&(o(R)!=="object"||R===null)&&(A!==0||R!==0))return"".concat(J[B],`
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as o,bt as h,B as p,P as i}from"./index-
|
|
1
|
+
import{r as d,j as o,bt as h,B as p,P as i}from"./index-fgn9vwq8.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var f=a.default=void 0;v(d);var c=o;function v(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(y){return Object.getOwnPropertyDescriptor(e,y).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(n){b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=g(e,"string");return typeof t=="symbol"?t:t+""}function g(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,c.jsx)("svg",u(u({},t),{},{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.361 2.4a.8.8 0 0 0-.728.469L.873 15.54a.8.8 0 0 0-.072.33V27.393a.8.8 0 0 0 .8.8h28.8a.8.8 0 0 0 .8-.8v-11.52a.8.8 0 0 0-.072-.331L25.37 2.869a.8.8 0 0 0-.728-.47H7.361zm-4.96 14.4v9.792h27.2v-9.799a.814.814 0 0 1-.104.007h-7.098l-2.066 3.1a.8.8 0 0 1-.666.356h-8.064a.8.8 0 0 1-.665-.356L8.87 16.8h-6.47zm26.816-1.6H21.97a.8.8 0 0 0-.665.356l-2.067 3.1h-7.208l-2.066-3.1a.8.8 0 0 0-.666-.356H2.785L7.876 4h16.25l5.09 11.2z",fill:"currentColor"})}))};l.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};l.displayName="empty";f=a.default=l;const O=h(p)`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -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{aG as xt,cP as wt,d5 as vt,aK as W,ck as V,r as A,aI as It,aJ as Ct,aO as ve,cK as St,ch as Tt,j as m,aM as Ie,aN as At,P as f,N as kt,l as
|
|
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,cP as wt,d5 as vt,aK as W,ck as V,r as A,aI as It,aJ as Ct,aO as ve,cK as St,ch as Tt,j as m,aM as Ie,aN as At,P as f,N as kt,l as Pt,aC as jt,bF as Ce,bm as Lt,bn as Mt,df as Ot,ai as Rt,bE as k,bk as Et,B as Nt,bB as _t,T as qt,dg as Ft,dh as Bt,a1 as $t,di as zt,bC as De,u as Ve,aD as Ht,f as Dt,E as Vt}from"./index-fgn9vwq8.js";import{D as Ut}from"./index-Brct1h9T.js";import{l as R,g as Qt,L as Gt}from"./MoreVert-Dm5VmAN3.js";import{L as Wt}from"./selector-CuYNfwOx.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 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};
|
|
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 j(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=j(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=j(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=j(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=j(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]=j(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,P){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=P,w();return}if(S){u=P,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(P)})}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:(P,S)=>{O(v,P,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 Pe(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 je(){}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),je;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),je):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=j(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 Pn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,mn(e)}))}function jn(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)}Pn(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(j(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=j(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&&jn(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;Pe(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:Pe,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=Pt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:m.jsxs(m.Fragment,{children:[m.jsx(jt,{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 P;let C=ht((P=d==null?void 0:d.navigation)==null?void 0:P.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};
|