@abtnode/webapp 1.16.53-beta-20251010-233105-b0ddacda → 1.16.53-beta-20251011-095147-8bd212c5
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-DQepVz3x.js → AdapterDayjs-CeksOrhl.js} +1 -1
- package/dist/assets/{Add-CQt7mq1G.js → Add-C8Lm-hkR.js} +1 -1
- package/dist/assets/ArrowDropDown-D3yioOpG.js +1 -0
- package/dist/assets/{Autocomplete-Bf1Ho3Hd.js → Autocomplete-BQrCutXD.js} +1 -1
- package/dist/assets/{Breadcrumbs-CPilcW9u.js → Breadcrumbs-CjoKrRSd.js} +1 -1
- package/dist/assets/{ButtonGroup-9zvLC_k0.js → ButtonGroup-0m6xN_hM.js} +1 -1
- package/dist/assets/{CSSTransition-dwX1-RMJ.js → CSSTransition-r6UVh1d4.js} +1 -1
- package/dist/assets/{CallMerge-BYCLcH5E.js → CallMerge-Dw8aSOXl.js} +1 -1
- package/dist/assets/{CardContent-C22npYBc.js → CardContent-Dn4qVn0M.js} +1 -1
- package/dist/assets/{ChevronLeft-Bmmo6bzu.js → ChevronLeft-vJUfXHLK.js} +1 -1
- package/dist/assets/{ChevronRight-X_FMXVA4.js → ChevronRight-CBhWmXPb.js} +1 -1
- package/dist/assets/{Clear-B-e33dNn.js → Clear-Dm80eYkN.js} +1 -1
- package/dist/assets/{DeleteOutline-CIuy8JMu.js → DeleteOutline-DBp8IxLy.js} +1 -1
- package/dist/assets/{Done-yHCWLz6K.js → Done-C3L_U1d0.js} +1 -1
- package/dist/assets/{Edit-CLiO2h_l.js → Edit-T8wWfQhn.js} +1 -1
- package/dist/assets/{ErrorOutline-B_qBOUnI.js → ErrorOutline-DDgW0IIs.js} +1 -1
- package/dist/assets/{FilterList-BOMn8eqm.js → FilterList-DOx5uN4S.js} +1 -1
- package/dist/assets/{Google-KOeLJ7n-.js → Google-DT749Dih.js} +1 -1
- package/dist/assets/{HelpOutline-BXdmHwaP.js → HelpOutline-Y8yJx9_1.js} +1 -1
- package/dist/assets/{KeyboardArrowDown-CdK82Qsb.js → KeyboardArrowDown-Vjm82N0l.js} +1 -1
- package/dist/assets/{Launch-cxvym2iP.js → Launch-CbU-zIFy.js} +1 -1
- package/dist/assets/{Link-DKb1MvxW.js → Link-C1xLiB79.js} +1 -1
- package/dist/assets/{ListItemButton-E5H4lrRx.js → ListItemButton-ClnowAwh.js} +1 -1
- package/dist/assets/{ListSubheader-FJVGwx1O.js → ListSubheader-DBKVdByu.js} +1 -1
- package/dist/assets/{LoadingButton-C7IcO9Nb.js → LoadingButton-Cyu7epth.js} +1 -1
- package/dist/assets/{MoreVert-bx--E19j.js → MoreVert-Dt9p1lZE.js} +1 -1
- package/dist/assets/{OpenInNew-BdVhgoOc.js → OpenInNew-SrFDopIl.js} +1 -1
- package/dist/assets/{Refresh-mYLoMEkT.js → Refresh-DibDVagJ.js} +1 -1
- package/dist/assets/{Search-Dm2dt-Sr.js → Search-DUF2osvO.js} +1 -1
- package/dist/assets/{Stepper-B1wBWjZo.js → Stepper-CTMouRdp.js} +1 -1
- package/dist/assets/{Switch-CE03jZ_8.js → Switch-DVmHUng5.js} +1 -1
- package/dist/assets/{TableSearch-Bj41g7St.js → TableSearch-x3y0kzP6.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-BEjde42R.js → ToggleButtonGroup-CDxsnBYJ.js} +1 -1
- package/dist/assets/{UnfoldMore-zrMTJNOp.js → UnfoldMore-DfHvwMX2.js} +1 -1
- package/dist/assets/{Verified-B-cFyGP0.js → Verified-RZDxPBl3.js} +1 -1
- package/dist/assets/{VerifiedUser-aSWRZr_Y.js → VerifiedUser-C5GKL4NI.js} +1 -1
- package/dist/assets/{ViewList-BbDrtZvr.js → ViewList-BIasqeLT.js} +1 -1
- package/dist/assets/{_createAggregator-OKIbDBKF.js → _createAggregator-CT54gRWr.js} +1 -1
- package/dist/assets/{actions-DaOidt88.js → actions-BTo9FCWY.js} +1 -1
- package/dist/assets/{actions-BBls_wa0.js → actions-Bkf_XgjE.js} +1 -1
- package/dist/assets/{agreement-B9tSzjmL.js → agreement-V0j80REH.js} +1 -1
- package/dist/assets/api-CUhmsggO.js +1 -0
- package/dist/assets/{appearance-BOeNpo6Y.js → appearance-CaphgLyB.js} +1 -1
- package/dist/assets/{audit-logs-Bdg8Eitt.js → audit-logs-BwQjwQRC.js} +1 -1
- package/dist/assets/{base-chart-D7y6qq9u.js → base-chart-C5PdAmLw.js} +1 -1
- package/dist/assets/{blocklet-C67aFvl7.js → blocklet-qrkDxr_e.js} +1 -1
- package/dist/assets/{chain-se1xvUDC.js → chain-CA7TjYnf.js} +1 -1
- package/dist/assets/{click-to-copy-D50kkiW4.js → click-to-copy-Pl4hIypx.js} +1 -1
- package/dist/assets/client-CPdeHHs9.js +1 -0
- package/dist/assets/cloneDeep-LYTwa-JV.js +1 -0
- package/dist/assets/{collapse-UPIFGGD9.js → collapse-DASgp2d0.js} +1 -1
- package/dist/assets/{config-navigation-CutTRHe-.js → config-navigation-DDLekmi-.js} +3 -3
- package/dist/assets/{connect-to-Dz9eH_td.js → connect-to-Bi6Hyl3q.js} +1 -1
- package/dist/assets/{cssMode-73_XXe8t.js → cssMode-C7ESlTK9.js} +1 -1
- package/dist/assets/{delete-confirm-cbt-tN11.js → delete-confirm-B-r93j03.js} +1 -1
- package/dist/assets/{depsEqual-BaUhqVSn.js → depsEqual-DfTLPdgg.js} +1 -1
- package/dist/assets/{detail-BR9P1Yx6.js → detail-BD2IFxMv.js} +3 -3
- package/dist/assets/{domains-BDMd9S2d.js → domains-C4W6m2uy.js} +1 -1
- package/dist/assets/{download-Oh1d5P58.js → download-CehHaiXA.js} +1 -1
- package/dist/assets/{edit.svg-BHG50OdM.js → edit.svg-BLR5epzr.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-DZEVfVIs.js +1 -0
- package/dist/assets/engine-CXYcW8tV.js +1 -0
- package/dist/assets/{freemarker2-BQ02ePgw.js → freemarker2-DfzPp9s6.js} +1 -1
- package/dist/assets/{get-safe-url-CteWIr5a.js → get-safe-url-CumOcp7c.js} +1 -1
- package/dist/assets/getValidReactChildren-BKEsPaXS.js +1 -0
- package/dist/assets/{graphqlMode-BTvp4HDh.js → graphqlMode-CsAQlaEf.js} +2 -2
- package/dist/assets/{handlebars-DPMLBiwS.js → handlebars-CA_-cqDJ.js} +1 -1
- package/dist/assets/{html-iuKRS8o1.js → html-C9RxEE-e.js} +1 -1
- package/dist/assets/{html-title-vsl-TT26.js → html-title-3CG5UyIt.js} +1 -1
- package/dist/assets/{htmlMode-CvGrTtxZ.js → htmlMode-uPtGYFj3.js} +1 -1
- package/dist/assets/{iframe-Dl-yNrp9.js → iframe-aJ3sDUVb.js} +1 -1
- package/dist/assets/{index-C-1MOEs6.js → index-0Dj9yC88.js} +1 -1
- package/dist/assets/{index-BGSPRFxN.js → index-0slfmis0.js} +1 -1
- package/dist/assets/{index-GerkFFyW.js → index-3bOYCU_O.js} +3 -3
- package/dist/assets/{index-BtY4M62T.js → index-3tLE8Mjd.js} +3 -3
- package/dist/assets/{index-BYQEC6o1.js → index-5b60aMk8.js} +1 -1
- package/dist/assets/{index-ClSpNPOh.js → index-B0iEGhMY.js} +1 -1
- package/dist/assets/{index-B2jTgxcq.js → index-B27Mzk9d.js} +1 -1
- package/dist/assets/{index-DfEAejxd.js → index-B2EpuvFX.js} +1 -1
- package/dist/assets/{index-2UXtfcoT.js → index-BIbaiVup.js} +30 -30
- package/dist/assets/{index-CC45e4UO.js → index-BOjR9vg6.js} +1 -1
- package/dist/assets/{index-W1Jg0zqO.js → index-BPsgcLTY.js} +1 -1
- package/dist/assets/{index-DnNVPfHo.js → index-BXCHVLcm.js} +1 -1
- package/dist/assets/{index-BvVI7Mxo.js → index-B_DdwI_f.js} +1 -1
- package/dist/assets/{index-oHwXuk_n.js → index-Bb2FNNL0.js} +1 -1
- package/dist/assets/{index-8DgiLFWe.js → index-BdNOQK8-.js} +1 -1
- package/dist/assets/{index-D9p6b5Uq.js → index-BiOrweAN.js} +1 -1
- package/dist/assets/{index-DsOZQCxX.js → index-BmgIzODJ.js} +1 -1
- package/dist/assets/{index-DfPrMmoZ.js → index-BsMctdy8.js} +1 -1
- package/dist/assets/{index-BxxgnmFX.js → index-BuQjZmfi.js} +1 -1
- package/dist/assets/{index-eYZIsLRo.js → index-C-p8VUs-.js} +1 -1
- package/dist/assets/{index-D_jr-SDL.js → index-CAv2tOhi.js} +1 -1
- package/dist/assets/{index-CHmcCDqZ.js → index-CEfdMhRs.js} +1 -1
- package/dist/assets/{index-CpuUG8Z1.js → index-CLAxAmz7.js} +1 -1
- package/dist/assets/{index-DWy1kjL1.js → index-CLPR7ihj.js} +1 -1
- package/dist/assets/{index-BzM5LY8-.js → index-CS7Cpww7.js} +1 -1
- package/dist/assets/{index-Cwp0FKW3.js → index-CeEola33.js} +2 -2
- package/dist/assets/{index-BIIfr0Cp.js → index-CoZAeEqA.js} +1 -1
- package/dist/assets/{index-Cisz7h7X.js → index-CsTazi5p.js} +1 -1
- package/dist/assets/{index-CRZ7_NI2.js → index-CtVrHc87.js} +1 -1
- package/dist/assets/{index-BDFC1sP1.js → index-CuYfzE9Z.js} +1 -1
- package/dist/assets/{index-ClxIMfsM.js → index-CyD53ctP.js} +1 -1
- package/dist/assets/{index-AKf23glP.js → index-DD8ntqdX.js} +1 -1
- package/dist/assets/{index-BP0DWBRY.js → index-DIS4k28C.js} +1 -1
- package/dist/assets/{index-C7egXf_h.js → index-DJuZ9nhg.js} +2 -2
- package/dist/assets/{index-rrAKD-3O.js → index-DQ7-a_Yl.js} +1 -1
- package/dist/assets/index-DQq1Zt3Z.js +1 -0
- package/dist/assets/{index-C31TKs2j.js → index-DUhy4qU3.js} +1 -1
- package/dist/assets/{index-B28OSLEk.js → index-DW2RdjBK.js} +1 -1
- package/dist/assets/{index-Dxww66F8.js → index-DX626HNP.js} +1 -1
- package/dist/assets/{index-CFw_f03A.js → index-DmvJyGWn.js} +1 -1
- package/dist/assets/{index-DbXGWrH9.js → index-DzOEPYi6.js} +9 -9
- package/dist/assets/{index-DnZwjPBr.js → index-E_CTV0v0.js} +1 -1
- package/dist/assets/{index-B5Z2178w.js → index-UhL8ZNVc.js} +3 -3
- package/dist/assets/{index-CgJV4oal.js → index-ZGV5ibHs.js} +1 -1
- package/dist/assets/{index-BkGL3dW2.js → index-apvSg0Un.js} +1 -1
- package/dist/assets/{index-BOBzLa1k.js → index-w74fQNNd.js} +1 -1
- package/dist/assets/{index.esm-DkqB0mnE.js → index.esm-CUQzywxe.js} +1 -1
- package/dist/assets/{install-from-url-DOR8ZaEG.js → install-from-url-D1dFcWCR.js} +1 -1
- package/dist/assets/{invitation-BOK3Xmtg.js → invitation-DFyK6TJC.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-Cl2onSKX.js → is-path-prefix-equal-CiLM8lGB.js} +1 -1
- package/dist/assets/{item-BQYMoVUI.js → item-TSYlBggO.js} +1 -1
- package/dist/assets/{javascript-BaLTUeT9.js → javascript-EM--ygX_.js} +1 -1
- package/dist/assets/{jsonMode-P_9C43Nc.js → jsonMode-DH-rRMEi.js} +1 -1
- package/dist/assets/{liquid-amkaEf3E.js → liquid-CPNnvOnm.js} +1 -1
- package/dist/assets/{list-header-DAiEDwhs.js → list-header-CSkrCQnJ.js} +1 -1
- package/dist/assets/{lock.svg-CNAb9wZc.js → lock.svg-f30K2Q3n.js} +1 -1
- package/dist/assets/{log-1_m4xF_N.js → log-BNvsxBZM.js} +1 -1
- package/dist/assets/{lottie-react.esm-BmVAhuIy.js → lottie-react.esm-DrKTtVJH.js} +1 -1
- package/dist/assets/{mdx-Bd0pfo5p.js → mdx-D8UbuZxT.js} +1 -1
- package/dist/assets/{memory-UJLIVuot.js → memory-C-FNQnOM.js} +1 -1
- package/dist/assets/{metric-DNUD7jbr.js → metric-DLT0xGvO.js} +1 -1
- package/dist/assets/omit-Cok1Xpup.js +1 -0
- package/dist/assets/{overview-DqrKT2dL.js → overview-BlGEtn8-.js} +1 -1
- package/dist/assets/{permission-ycsOOBwp.js → permission-DNpvmcDO.js} +1 -1
- package/dist/assets/{preference-BhfekBAB.js → preference-u7m9CcMY.js} +3 -3
- package/dist/assets/{python-B5XVaf0B.js → python-B8mnJBlR.js} +1 -1
- package/dist/assets/{raf-schd.esm-yET3NUrL.js → raf-schd.esm-YM3QK6AK.js} +1 -1
- package/dist/assets/{razor-TLp_5QYQ.js → razor-DojlprmT.js} +1 -1
- package/dist/assets/{rotate-session-key-B90qT4kq.js → rotate-session-key-CeXBuq4a.js} +1 -1
- package/dist/assets/{runtime-D_DvOf5h.js → runtime-DGPwslIs.js} +1 -1
- package/dist/assets/schema-KXHYgx_0.js +1 -0
- package/dist/assets/sdk-DfZRIh46.js +1 -0
- package/dist/assets/{service-DjmXGMON.js → service-MFlOMoBK.js} +1 -1
- package/dist/assets/{shorten-label-BOfK6p4p.js → shorten-label-DZAvaXjZ.js} +1 -1
- package/dist/assets/{simple-select-BZu6cCw3.js → simple-select-BOihC2wB.js} +1 -1
- package/dist/assets/{spaces-CNd41sir.js → spaces-C9qYfO4e.js} +1 -1
- package/dist/assets/{status-C32bwmXC.js → status-DD9VFS3g.js} +1 -1
- package/dist/assets/{status-DnBUY_P3.js → status-Mggvc_gJ.js} +1 -1
- package/dist/assets/{switch-control-Ce2o9ffJ.js → switch-control-C6Td5SBH.js} +1 -1
- package/dist/assets/{table-icons-BYT0kQuz.js → table-icons-LMjLX7nG.js} +1 -1
- package/dist/assets/{team-CxcPF7A7.js → team-CMHYwDgb.js} +1 -1
- package/dist/assets/{toLower-DJOalyNw.js → toLower-CTEP5nFX.js} +1 -1
- package/dist/assets/toUpper-BtDx3pcE.js +1 -0
- package/dist/assets/{traffic-C17ygInL.js → traffic-z7f03zNE.js} +1 -1
- package/dist/assets/{tsMode-YA-whx9N.js → tsMode-lGeC_vCj.js} +1 -1
- package/dist/assets/{typescript-Balm-M-7.js → typescript-DiGD7n7I.js} +1 -1
- package/dist/assets/{url-evaluation-w8X_lgzG.js → url-evaluation-PoqA_faF.js} +1 -1
- package/dist/assets/{url-join-3aXvW59g.js → url-join-C-ehcRI1.js} +1 -1
- package/dist/assets/{use-mobile-BxUSznYk.js → use-mobile-GbhQCYjE.js} +1 -1
- package/dist/assets/{use-mobile-IHqsUzt1.js → use-mobile-v5_YeznP.js} +1 -1
- package/dist/assets/{useAsync-Bkh8Rg6Z.js → useAsync-C9kvrJTF.js} +1 -1
- package/dist/assets/{useAsyncRetry-CwoOKXPC.js → useAsyncRetry-C1G4OCyZ.js} +1 -1
- package/dist/assets/{useLocalStorage-DZYDHTFQ.js → useLocalStorage-rIF260NZ.js} +1 -1
- package/dist/assets/{useThemeProps-Bs1lG48z.js → useThemeProps-CIXT-uHm.js} +1 -1
- package/dist/assets/{util-CC0K7Xya.js → util-daXkBzvl.js} +1 -1
- package/dist/assets/{wait-container-DeaT7Cuc.js → wait-container-DcvUvcI3.js} +1 -1
- package/dist/assets/{without-wallet-B5UEEmrQ.js → without-wallet-Cifhravr.js} +1 -1
- package/dist/assets/{wrap-locale-gBhiwBoM.js → wrap-locale-CTx-eXFm.js} +1 -1
- package/dist/assets/{xml-CZ5H3llM.js → xml-PLx49qdR.js} +1 -1
- package/dist/assets/{yaml-CL1tqltg.js → yaml-DrWuPUdc.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-aNeHE2A2.js +0 -1
- package/dist/assets/api-r-_fEWsI.js +0 -1
- package/dist/assets/client-Dj0WAiOq.js +0 -1
- package/dist/assets/cloneDeep-Dqj81-8-.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-B4ZmPeHk.js +0 -1
- package/dist/assets/engine-BWGbIQAy.js +0 -1
- package/dist/assets/getValidReactChildren-DDB1J2y7.js +0 -1
- package/dist/assets/index-DVAwbdhJ.js +0 -1
- package/dist/assets/omit-DVVVCRDp.js +0 -1
- package/dist/assets/schema-Db5OWlWL.js +0 -1
- package/dist/assets/sdk-BZ4-wJ5p.js +0 -1
- package/dist/assets/toUpper-B5TzdczN.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as P,n as E,B as C,j as e,Y as W,C as j,cC as I,M as T,x as k,H as u,aH as S,u as U,y as v,aq as N,ae as R}from"./index-
|
|
1
|
+
import{r as P,n as E,B as C,j as e,Y as W,C as j,cC as I,M as T,x as k,H as u,aH as S,u as U,y as v,aq as N,ae as R}from"./index-DJuZ9nhg.js";import{w as b}from"./wrap-locale-CTx-eXFm.js";import{g as L}from"./get-safe-url-CumOcp7c.js";function B({SessionContext:n,webWalletUrl:a,onSuccess:r}){const{api:o,session:t}=P.useContext(n),{t:s,locale:g}=E(),h=C(),{searchParams:l}=new URL(window.location.href),p=l.get("redirect"),f=async(c,w)=>{r(c,w),await t.refresh(),u.success(s("exchangePassport.success")),setTimeout(()=>{if(p){const i=decodeURIComponent(p);i.startsWith(S.WELLKNOWN_SERVICE_PATH_PREFIX)?h(i,{replace:!0}):window.location.href=L(i)}else window.location.href=window.env.pathPrefix||window.env.apiPrefix||"/"},3e3)},m=c=>{u.error(c.message)},d={},x=l.get("componentId");return x&&(d.componentId=x),t.loading?e.jsx(W,{children:e.jsx(j,{})}):e.jsx(I,{did:window?.blocklet?.appPid||window?.env?.appPid,children:e.jsx(T,{sx:{maxWidth:"100%",height:"100%"},children:e.jsx(k,{popup:!0,open:!0,className:"connect",action:"exchange-passport",checkFn:o.get,checkTimeout:10*60*1e3,webWalletUrl:a,onSuccess:f,onError:m,locale:g,messages:{title:s("exchangePassport.dialog.title"),scan:s("exchangePassport.dialog.scan"),confirm:s("exchangePassport.dialog.confirm"),success:s("exchangePassport.dialog.success")},extraParams:d,extraContent:null,hideCloseButton:!0})})})}const H=b(B);function K(){const{info:n}=U(),a=v(n),r=(o,t)=>{o.sessionToken&&R(t(o.sessionToken))};return e.jsx(H,{SessionContext:N,webWalletUrl:a,onSuccess:r})}export{K as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as de,j as e,hl as Ts,hm as Es,bM as Is,r as q,s as xe,M as $,f5 as kt,v as U,eO as ft,a3 as ie,C as Ee,bi as Bt,dL as Ds,o as T,hn as Ls,b2 as Ht,cx as qs,cQ as Ms,dp as zs,T as Y,dG as at,bn as ne,bA as mt,g as ue,ho as Bs,bB as pt,b as W,bg as G,dI as ee,H as Z,aV as ae,n as oe,q as Nt,t as Hs,x as Ft,ac as Ns,i as Zt,gi as Fs,hp as Zs,at as Vs,aU as X,U as Te,$ as ke,D as Us,V as Ws,w as re,X as it,hq as Js,hr as Ks,eA as Gs,eC as Ys,I as je,aH as J,g6 as Xs,cY as St,W as Qs,fm as Vt,ay as te,aR as Ct,hs as er,f9 as Re,cs as E,bz as ge,aD as se,P as Q,aP as ye,ht as qe,a1 as tr,hu as Je,c3 as Ce,eD as sr,hv as rr,dH as ce,f as Oe,z as Ut,bw as ot,N as nr,cE as Wt,gh as ar,fP as Ze,hw as ir,b9 as or,L as lr,cr as ze,aK as He,hx as cr,R as dr,af as Rt,a2 as Jt,bj as Ne,hy as Kt,b6 as ur,gG as we,fa as Gt,cW as Yt,E as hr,b5 as Ot,fb as fr,fg as mr,G as Ke,K as pr,bu as gr}from"./index-C7egXf_h.js";import{F as yr,a as lt,s as xr,L as _e,S as vr,B as br}from"./preference-BhfekBAB.js";import{N as $t}from"./ChevronRight-X_FMXVA4.js";import{T as Fe}from"./html-title-vsl-TT26.js";import{w as Ie,P as jr}from"./permission-ycsOOBwp.js";import{u as gt}from"./index-DVAwbdhJ.js";import{D as _r}from"./Done-yHCWLz6K.js";import{R as wr,S as M}from"./collapse-UPIFGGD9.js";import{A as kr,a as At}from"./Autocomplete-Bf1Ho3Hd.js";import{C as Sr,R as Cr,S as Rr,P as Or}from"./rotate-session-key-B90qT4kq.js";import{u as le}from"./blocklet-C67aFvl7.js";import{C as $r}from"./click-to-copy-D50kkiW4.js";import{u as Ve}from"./team-CxcPF7A7.js";import{v as Xt}from"./index-DWy1kjL1.js";import{g as Ar}from"./chain-se1xvUDC.js";import{V as Pr,d as Tr}from"./status-DnBUY_P3.js";import{S as pe}from"./Switch-CE03jZ_8.js";import{B as Er}from"./index-BP0DWBRY.js";import{y as Ir}from"./index-BxxgnmFX.js";import{I as Dr,J as Lr,K as qr,L as Mr}from"./index-rrAKD-3O.js";import{u as ve,C as H,b as Pt}from"./index.esm-DkqB0mnE.js";import{S as Be,u as zr}from"./switch-control-Ce2o9ffJ.js";import{D as Tt,R as Qt,a as es}from"./url-evaluation-w8X_lgzG.js";import{A as Et}from"./Add-CQt7mq1G.js";import{H as Ue}from"./index-8DgiLFWe.js";import{l as Br}from"./index-W1Jg0zqO.js";import{u as ts}from"./use-mobile-BxUSznYk.js";import{S as Ge}from"./simple-select-BZu6cCw3.js";import{G as Hr}from"./actions-BBls_wa0.js";import{C as Nr}from"./CardContent-C22npYBc.js";import"./omit-DVVVCRDp.js";import"./index-AKf23glP.js";import"./edit.svg-BHG50OdM.js";import"./ArrowDropDown-aNeHE2A2.js";import"./ButtonGroup-9zvLC_k0.js";import"./getValidReactChildren-DDB1J2y7.js";import"./index-DnZwjPBr.js";import"./iframe-Dl-yNrp9.js";import"./ListSubheader-FJVGwx1O.js";import"./visuallyHidden-Dan1xhjv.js";import"./ErrorOutline-B_qBOUnI.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./FilterList-BOMn8eqm.js";import"./CSSTransition-dwX1-RMJ.js";import"./emotion-cache.browser.esm-B4ZmPeHk.js";import"./depsEqual-BaUhqVSn.js";import"./TableSearch-Bj41g7St.js";import"./Search-Dm2dt-Sr.js";import"./Clear-B-e33dNn.js";import"./MoreVert-bx--E19j.js";import"./useLocalStorage-DZYDHTFQ.js";import"./get-safe-url-CteWIr5a.js";const ss=de([e.jsx("path",{d:"M21 7.28V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-2.28c.59-.35 1-.98 1-1.72V9c0-.74-.41-1.37-1-1.72M20 9v6h-7V9zM5 19V5h14v2h-6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h6v2z"},"0"),e.jsx("circle",{cx:"16",cy:"12",r:"1.5"},"1")]),Fr=de([e.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),e.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Zr=de(e.jsx("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"})),Vr=de(e.jsx("path",{d:"M24 9v2h-6V9zM8 4C5.79 4 4 5.79 4 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17"})),Ur=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),Wr=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),ct=de(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Jr=de([e.jsx("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),e.jsx("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")]),Kr=de(e.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),Gr=de(e.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"})),rs=de(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23z"})),Yr=de(e.jsx("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"})),Xr=de(e.jsx("path",{d:"M16 13c3.09-2.81 6-5.44 6-7.7C22 3.45 20.55 2 18.7 2c-1.04 0-2.05.49-2.7 1.25C15.34 2.49 14.34 2 13.3 2 11.45 2 10 3.45 10 5.3c0 2.26 2.91 4.89 6 7.7m-2.7-9c.44 0 .89.21 1.18.55L16 6.34l1.52-1.79c.29-.34.74-.55 1.18-.55.74 0 1.3.56 1.3 1.3 0 1.12-2.04 3.17-4 4.99-1.96-1.82-4-3.88-4-4.99 0-.74.56-1.3 1.3-1.3M19 16h-2c0-1.2-.75-2.28-1.87-2.7L8.97 11H1v11h6v-1.44l7 1.94 8-2.5v-1c0-1.66-1.34-3-3-3M3 20v-7h2v7zm10.97.41L7 18.48V13h1.61l5.82 2.17c.34.13.57.46.57.83 0 0-1.99-.05-2.3-.15l-2.38-.79-.63 1.9 2.38.79c.51.17 1.04.26 1.58.26H19c.39 0 .74.23.9.56z"}));var Qr=Array.prototype,It=Qr.splice;function en(v,R,O,C){var _=Es,j=-1,p=R.length,a=v;for(v===R&&(R=Ts(R));++j<p;)for(var m=0,f=R[j],h=f;(m=_(a,h,m))>-1;)a!==v&&It.call(a,m,1),It.call(v,m,1);return v}function tn(v,R){return v&&v.length&&R&&R.length?en(v,R):v}var sn=Is(tn);const rn={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'};function ns({label:v="",disabled:R=!1,required:O=!1,initialValue:C="",onChange:_=()=>{},style:j={},onSubmit:p=()=>{},triggers:a=[],options:m=[],formatterBeforeSubmit:f=n=>n.join(","),helperText:h="",placeholder:t="",renderImage:l=()=>null,renderLabel:o=()=>"",filterKeys:r=["name"],noEmpty:s=!1,...c}){const[n,i]=q.useState(!1),[u,g]=q.useState(!1),[y,k]=q.useState(""),w=q.useRef(null),[d,x]=q.useState(C),[b,S]=q.useState(d),A=q.useMemo(()=>{if(!m)return{};const B={};return m.forEach(I=>{B[I.code]=I}),B},[m]),P=()=>{if(!m)return[];if(!y)return m.map(I=>I.code);const B=new RegExp(y.toLowerCase());return m.filter(I=>{for(let z=0;z<r.length;z++){const F=r[z];if(B.test(I[F]?.toLowerCase()))return!0}return!1}).map(I=>I.code)},L=async()=>{g(!0);try{await p(typeof f=="function"?f(b):b)===!1?S(d):s&&!b.length?(S(C),x(C)):(S(b),x(b))}catch{S(d)}finally{g(!1),i(!1)}},D=(B,I)=>{if(!Array.isArray(I)){S([]),_([]);return}const z=I.filter(F=>A[F]);if(!z.length){S([]),_([]);return}S(z),_(z)},N=B=>{B.stopPropagation(),i(!0),setTimeout(()=>{if(w.current){const I=w.current.querySelector("input");I&&I.focus()}},500)},V=n?e.jsx(kr,{ref:w,options:m,value:b,onChange:D,inputValue:y,onInputChange:(B,I)=>{k(I)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:P,getOptionLabel:B=>A[B]?.name,renderInput:B=>e.jsx(U,{...B,label:"",placeholder:t}),renderOption:(B,I)=>{const z=b.indexOf(I)!==-1;return q.createElement(nn,{component:"li",...B,key:I},l(A[I]||{}),e.jsx($,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:z?"700":"normal"},children:o(I,A[I])||A[I]?.name}),e.jsx($,{component:kt,sx:{opacity:.5,width:18,height:18},style:{visibility:z?"visible":"hidden"}}))},...c,slots:{popper:an}}):e.jsx($,{className:"form-item-input slot",onClick:N,style:{whiteSpace:"pre-wrap",cursor:"text"},sx:{px:1},children:b.filter(B=>m.some(I=>I.code===B)).map(B=>e.jsx(ft,{label:m.find(I=>I.code===B).name,style:{marginRight:8},size:"small"},B))});return e.jsx(yr,{className:"form",style:j,children:e.jsxs($,{className:"form-item",children:[e.jsxs($,{className:"form-item-label",children:[v,O&&e.jsx(wr,{})]}),e.jsxs($,{className:"form-item-body",children:[e.jsx($,{className:"form-item-input",children:V}),n?e.jsx($,{className:"form-item-action",children:e.jsxs(e.Fragment,{children:[e.jsx(ie,{"data-cy":"schema-form-item-confirm",onClick:L,disabled:R||u,size:"large",children:u?e.jsx(Ee,{size:24}):e.jsx(_r,{})}),e.jsx(ie,{"data-cy":"schema-form-item-cancel",onClick:()=>{S(d),i(!1)},disabled:R||u,size:"large",children:e.jsx(kt,{})})]})}):null]}),n&&h&&e.jsx(Bt,{children:h})]})})}ns.propTypes={style:T.object,onSubmit:T.func,onChange:T.func,label:T.string,initialValue:T.string,required:T.bool,disabled:T.bool,triggers:T.array,options:T.array,helperText:T.string,formatterBeforeSubmit:T.func,placeholder:T.string,renderImage:T.func,filterKeys:T.arrayOf(T.string),noEmpty:T.bool,renderLabel:T.func};const nn=xe.div`
|
|
1
|
+
import{aF as de,j as e,hl as Ts,hm as Es,bM as Is,r as q,s as xe,M as $,f5 as kt,v as U,eO as ft,a3 as ie,C as Ee,bi as Bt,dL as Ds,o as T,hn as Ls,b2 as Ht,cx as qs,cQ as Ms,dp as zs,T as Y,dG as at,bn as ne,bA as mt,g as ue,ho as Bs,bB as pt,b as W,bg as G,dI as ee,H as Z,aV as ae,n as oe,q as Nt,t as Hs,x as Ft,ac as Ns,i as Zt,gi as Fs,hp as Zs,at as Vs,aU as X,U as Te,$ as ke,D as Us,V as Ws,w as re,X as it,hq as Js,hr as Ks,eA as Gs,eC as Ys,I as je,aH as J,g6 as Xs,cY as St,W as Qs,fm as Vt,ay as te,aR as Ct,hs as er,f9 as Re,cs as E,bz as ge,aD as se,P as Q,aP as ye,ht as qe,a1 as tr,hu as Je,c3 as Ce,eD as sr,hv as rr,dH as ce,f as Oe,z as Ut,bw as ot,N as nr,cE as Wt,gh as ar,fP as Ze,hw as ir,b9 as or,L as lr,cr as ze,aK as He,hx as cr,R as dr,af as Rt,a2 as Jt,bj as Ne,hy as Kt,b6 as ur,gG as we,fa as Gt,cW as Yt,E as hr,b5 as Ot,fb as fr,fg as mr,G as Ke,K as pr,bu as gr}from"./index-DJuZ9nhg.js";import{F as yr,a as lt,s as xr,L as _e,S as vr,B as br}from"./preference-u7m9CcMY.js";import{N as $t}from"./ChevronRight-CBhWmXPb.js";import{T as Fe}from"./html-title-3CG5UyIt.js";import{w as Ie,P as jr}from"./permission-DNpvmcDO.js";import{u as gt}from"./index-DQq1Zt3Z.js";import{D as _r}from"./Done-C3L_U1d0.js";import{R as wr,S as M}from"./collapse-DASgp2d0.js";import{A as kr,a as At}from"./Autocomplete-BQrCutXD.js";import{C as Sr,R as Cr,S as Rr,P as Or}from"./rotate-session-key-CeXBuq4a.js";import{u as le}from"./blocklet-qrkDxr_e.js";import{C as $r}from"./click-to-copy-Pl4hIypx.js";import{u as Ve}from"./team-CMHYwDgb.js";import{v as Xt}from"./index-CLPR7ihj.js";import{g as Ar}from"./chain-CA7TjYnf.js";import{V as Pr,d as Tr}from"./status-Mggvc_gJ.js";import{S as pe}from"./Switch-DVmHUng5.js";import{B as Er}from"./index-DIS4k28C.js";import{y as Ir}from"./index-BuQjZmfi.js";import{I as Dr,J as Lr,K as qr,L as Mr}from"./index-DQ7-a_Yl.js";import{u as ve,C as H,b as Pt}from"./index.esm-CUQzywxe.js";import{S as Be,u as zr}from"./switch-control-C6Td5SBH.js";import{D as Tt,R as Qt,a as es}from"./url-evaluation-PoqA_faF.js";import{A as Et}from"./Add-C8Lm-hkR.js";import{H as Ue}from"./index-BdNOQK8-.js";import{l as Br}from"./index-BPsgcLTY.js";import{u as ts}from"./use-mobile-GbhQCYjE.js";import{S as Ge}from"./simple-select-BOihC2wB.js";import{G as Hr}from"./actions-Bkf_XgjE.js";import{C as Nr}from"./CardContent-Dn4qVn0M.js";import"./omit-Cok1Xpup.js";import"./index-DD8ntqdX.js";import"./edit.svg-BLR5epzr.js";import"./ArrowDropDown-D3yioOpG.js";import"./ButtonGroup-0m6xN_hM.js";import"./getValidReactChildren-BKEsPaXS.js";import"./index-E_CTV0v0.js";import"./iframe-aJ3sDUVb.js";import"./ListSubheader-DBKVdByu.js";import"./visuallyHidden-Dan1xhjv.js";import"./ErrorOutline-DDgW0IIs.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./FilterList-DOx5uN4S.js";import"./CSSTransition-r6UVh1d4.js";import"./emotion-cache.browser.esm-DZEVfVIs.js";import"./depsEqual-DfTLPdgg.js";import"./TableSearch-x3y0kzP6.js";import"./Search-DUF2osvO.js";import"./Clear-Dm80eYkN.js";import"./MoreVert-Dt9p1lZE.js";import"./useLocalStorage-rIF260NZ.js";import"./get-safe-url-CumOcp7c.js";const ss=de([e.jsx("path",{d:"M21 7.28V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-2.28c.59-.35 1-.98 1-1.72V9c0-.74-.41-1.37-1-1.72M20 9v6h-7V9zM5 19V5h14v2h-6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h6v2z"},"0"),e.jsx("circle",{cx:"16",cy:"12",r:"1.5"},"1")]),Fr=de([e.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),e.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Zr=de(e.jsx("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"})),Vr=de(e.jsx("path",{d:"M24 9v2h-6V9zM8 4C5.79 4 4 5.79 4 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17"})),Ur=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),Wr=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),ct=de(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Jr=de([e.jsx("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),e.jsx("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")]),Kr=de(e.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),Gr=de(e.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"})),rs=de(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23z"})),Yr=de(e.jsx("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"})),Xr=de(e.jsx("path",{d:"M16 13c3.09-2.81 6-5.44 6-7.7C22 3.45 20.55 2 18.7 2c-1.04 0-2.05.49-2.7 1.25C15.34 2.49 14.34 2 13.3 2 11.45 2 10 3.45 10 5.3c0 2.26 2.91 4.89 6 7.7m-2.7-9c.44 0 .89.21 1.18.55L16 6.34l1.52-1.79c.29-.34.74-.55 1.18-.55.74 0 1.3.56 1.3 1.3 0 1.12-2.04 3.17-4 4.99-1.96-1.82-4-3.88-4-4.99 0-.74.56-1.3 1.3-1.3M19 16h-2c0-1.2-.75-2.28-1.87-2.7L8.97 11H1v11h6v-1.44l7 1.94 8-2.5v-1c0-1.66-1.34-3-3-3M3 20v-7h2v7zm10.97.41L7 18.48V13h1.61l5.82 2.17c.34.13.57.46.57.83 0 0-1.99-.05-2.3-.15l-2.38-.79-.63 1.9 2.38.79c.51.17 1.04.26 1.58.26H19c.39 0 .74.23.9.56z"}));var Qr=Array.prototype,It=Qr.splice;function en(v,R,O,C){var _=Es,j=-1,p=R.length,a=v;for(v===R&&(R=Ts(R));++j<p;)for(var m=0,f=R[j],h=f;(m=_(a,h,m))>-1;)a!==v&&It.call(a,m,1),It.call(v,m,1);return v}function tn(v,R){return v&&v.length&&R&&R.length?en(v,R):v}var sn=Is(tn);const rn={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'};function ns({label:v="",disabled:R=!1,required:O=!1,initialValue:C="",onChange:_=()=>{},style:j={},onSubmit:p=()=>{},triggers:a=[],options:m=[],formatterBeforeSubmit:f=n=>n.join(","),helperText:h="",placeholder:t="",renderImage:l=()=>null,renderLabel:o=()=>"",filterKeys:r=["name"],noEmpty:s=!1,...c}){const[n,i]=q.useState(!1),[u,g]=q.useState(!1),[y,k]=q.useState(""),w=q.useRef(null),[d,x]=q.useState(C),[b,S]=q.useState(d),A=q.useMemo(()=>{if(!m)return{};const B={};return m.forEach(I=>{B[I.code]=I}),B},[m]),P=()=>{if(!m)return[];if(!y)return m.map(I=>I.code);const B=new RegExp(y.toLowerCase());return m.filter(I=>{for(let z=0;z<r.length;z++){const F=r[z];if(B.test(I[F]?.toLowerCase()))return!0}return!1}).map(I=>I.code)},L=async()=>{g(!0);try{await p(typeof f=="function"?f(b):b)===!1?S(d):s&&!b.length?(S(C),x(C)):(S(b),x(b))}catch{S(d)}finally{g(!1),i(!1)}},D=(B,I)=>{if(!Array.isArray(I)){S([]),_([]);return}const z=I.filter(F=>A[F]);if(!z.length){S([]),_([]);return}S(z),_(z)},N=B=>{B.stopPropagation(),i(!0),setTimeout(()=>{if(w.current){const I=w.current.querySelector("input");I&&I.focus()}},500)},V=n?e.jsx(kr,{ref:w,options:m,value:b,onChange:D,inputValue:y,onInputChange:(B,I)=>{k(I)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:P,getOptionLabel:B=>A[B]?.name,renderInput:B=>e.jsx(U,{...B,label:"",placeholder:t}),renderOption:(B,I)=>{const z=b.indexOf(I)!==-1;return q.createElement(nn,{component:"li",...B,key:I},l(A[I]||{}),e.jsx($,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:z?"700":"normal"},children:o(I,A[I])||A[I]?.name}),e.jsx($,{component:kt,sx:{opacity:.5,width:18,height:18},style:{visibility:z?"visible":"hidden"}}))},...c,slots:{popper:an}}):e.jsx($,{className:"form-item-input slot",onClick:N,style:{whiteSpace:"pre-wrap",cursor:"text"},sx:{px:1},children:b.filter(B=>m.some(I=>I.code===B)).map(B=>e.jsx(ft,{label:m.find(I=>I.code===B).name,style:{marginRight:8},size:"small"},B))});return e.jsx(yr,{className:"form",style:j,children:e.jsxs($,{className:"form-item",children:[e.jsxs($,{className:"form-item-label",children:[v,O&&e.jsx(wr,{})]}),e.jsxs($,{className:"form-item-body",children:[e.jsx($,{className:"form-item-input",children:V}),n?e.jsx($,{className:"form-item-action",children:e.jsxs(e.Fragment,{children:[e.jsx(ie,{"data-cy":"schema-form-item-confirm",onClick:L,disabled:R||u,size:"large",children:u?e.jsx(Ee,{size:24}):e.jsx(_r,{})}),e.jsx(ie,{"data-cy":"schema-form-item-cancel",onClick:()=>{S(d),i(!1)},disabled:R||u,size:"large",children:e.jsx(kt,{})})]})}):null]}),n&&h&&e.jsx(Bt,{children:h})]})})}ns.propTypes={style:T.object,onSubmit:T.func,onChange:T.func,label:T.string,initialValue:T.string,required:T.bool,disabled:T.bool,triggers:T.array,options:T.array,helperText:T.string,formatterBeforeSubmit:T.func,placeholder:T.string,renderImage:T.func,filterKeys:T.arrayOf(T.string),noEmpty:T.bool,renderLabel:T.func};const nn=xe.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as xe,j as e,r as R,aV as he,cx as Zt,T as U,ay as ye,o as C,n as H,be as tt,b8 as Et,M as j,O as et,W as Re,eO as Ot,fI as _t,bz as hi,br as xi,bs as gi,bt as bi,aO as Qt,aP as wi,$ as le,s as ce,bn as B,cr as st,C as Q,V as Rs,at as vi,dl as yi,bf as Is,bg as ji,aH as me,H as N,bA as Ee,gp as Ci,gq as Si,i as Ti,w as G,b as ki,a2 as Ie,v as te,R as it,a3 as ae,aS as Xe,X as Ge,I as As,ac as Lt,bd as Ds,gr as Ri,t as Ii,fm as Ai,Q as Ps,fe as Es,bi as Os,p as Di,D as Pi,c5 as _s,aU as Ei,U as Oi,dI as _i,F as Li,gs as Jt,fG as zi,gt as Mi,S as Fi}from"./index-C7egXf_h.js";import{H as zt,g as Ni}from"./index-8DgiLFWe.js";import{T as Bi}from"./html-title-vsl-TT26.js";import{u as K}from"./team-CxcPF7A7.js";import{u as Hi}from"./use-mobile-BxUSznYk.js";import{v as ze}from"./index-C-1MOEs6.js";import{w as ge,P as Ls}from"./permission-ycsOOBwp.js";import{C as Ui}from"./Google-KOeLJ7n-.js";import{u as $i}from"./blocklet-C67aFvl7.js";import{A as Mt}from"./Add-CQt7mq1G.js";import{y as Ft}from"./index-BxxgnmFX.js";import{e as nt}from"./edit.svg-BHG50OdM.js";import{M as zs}from"./TableSearch-Bj41g7St.js";import{L as Ms}from"./list-header-DAiEDwhs.js";import{g as qi}from"./chain-se1xvUDC.js";import{T as Fs,a as Ve}from"./ToggleButtonGroup-BEjde42R.js";import{C as Wi}from"./lock.svg-CNAb9wZc.js";const Vi=xe(e.jsx("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"})),es=xe(e.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})),Ns=xe(e.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),ut=xe(e.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),Gi=xe(e.jsx("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),Yi=xe(e.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"})),Ki=xe(e.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"})),pt=xe(e.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"})),lt=t=>R.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},R.createElement("path",{d:"M8.4375 4.3125H8.25C8.35313 4.3125 8.4375 4.22812 8.4375 4.125V4.3125H15.5625V4.125C15.5625 4.22812 15.6469 4.3125 15.75 4.3125H15.5625V6H17.25V4.125C17.25 3.29766 16.5773 2.625 15.75 2.625H8.25C7.42266 2.625 6.75 3.29766 6.75 4.125V6H8.4375V4.3125ZM20.25 6H3.75C3.33516 6 3 6.33516 3 6.75V7.5C3 7.60313 3.08437 7.6875 3.1875 7.6875H4.60312L5.18203 19.9453C5.21953 20.7445 5.88047 21.375 6.67969 21.375H17.3203C18.1219 21.375 18.7805 20.7469 18.818 19.9453L19.3969 7.6875H20.8125C20.9156 7.6875 21 7.60313 21 7.5V6.75C21 6.33516 20.6648 6 20.25 6ZM17.1398 19.6875H6.86016L6.29297 7.6875H17.707L17.1398 19.6875Z"}));var Xi="2.0.3",It=500,ts="user-agent",Ae="",ss="?",rt="function",fe="undefined",De="object",At="string",q="browser",ie="cpu",ee="device",Z="engine",Y="os",Te="result",b="name",h="type",g="vendor",w="version",W="architecture",Ye="major",x="model",qe="console",A="mobile",O="tablet",z="smarttv",J="wearable",mt="xr",We="embedded",Me="inapp",Nt="brands",ve="formFactors",Bt="fullVersionList",ke="platform",Ht="platformVersion",ct="bitness",be="sec-ch-ua",Zi=be+"-full-version-list",Qi=be+"-arch",Ji=be+"-"+ct,er=be+"-form-factors",tr=be+"-"+A,sr=be+"-"+x,Bs=be+"-"+ke,ir=Bs+"-version",Hs=[Nt,Bt,A,x,ke,Ht,W,ve,ct],Ze="Amazon",Ce="Apple",is="ASUS",rs="BlackBerry",we="Google",os="Huawei",as="Lenovo",ns="Honor",Qe="LG",ft="Microsoft",ht="Motorola",xt="Nvidia",ls="OnePlus",gt="OPPO",Fe="Samsung",cs="Sharp",Ne="Sony",bt="Xiaomi",wt="Zebra",ds="Chrome",us="Chromium",de="Chromecast",rr="Edge",Be="Firefox",He="Opera",vt="Facebook",ps="Sogou",Se="Mobile ",Ue=" Browser",Dt="Windows",or=typeof window!==fe,V=or&&window.navigator?window.navigator:void 0,ue=V&&V.userAgentData?V.userAgentData:void 0,ar=function(t,s){var i={},p=s;if(!ot(s)){p={};for(var n in s)for(var m in s[n])p[m]=s[n][m].concat(p[m]?p[m]:[])}for(var u in t)i[u]=p[u]&&p[u].length%2===0?p[u].concat(t[u]):t[u];return i},dt=function(t){for(var s={},i=0;i<t.length;i++)s[t[i].toUpperCase()]=t[i];return s},Pt=function(t,s){if(typeof t===De&&t.length>0){for(var i in t)if(re(t[i])==re(s))return!0;return!1}return Oe(t)?re(s).indexOf(re(t))!==-1:!1},ot=function(t,s){for(var i in t)return/^(browser|cpu|device|engine|os)$/.test(i)||(s?ot(t[i]):!1)},Oe=function(t){return typeof t===At},yt=function(t){if(t){for(var s=[],i=Pe(/\\?\"/g,t).split(","),p=0;p<i.length;p++)if(i[p].indexOf(";")>-1){var n=Ke(i[p]).split(";v=");s[p]={brand:n[0],version:n[1]}}else s[p]=Ke(i[p]);return s}},re=function(t){return Oe(t)?t.toLowerCase():t},jt=function(t){return Oe(t)?Pe(/[^\d\.]/g,t).split(".")[0]:void 0},oe=function(t){for(var s in t){var i=t[s];typeof i==De&&i.length==2?this[i[0]]=i[1]:this[i]=void 0}return this},Pe=function(t,s){return Oe(s)?s.replace(t,Ae):s},$e=function(t){return Pe(/\\?\"/g,t)},Ke=function(t,s){if(Oe(t))return t=Pe(/^\s\s*/,t),typeof s===fe?t:t.substring(0,It)},Ct=function(t,s){if(!(!t||!s))for(var i=0,p,n,m,u,o,d;i<s.length&&!o;){var r=s[i],l=s[i+1];for(p=n=0;p<r.length&&!o&&r[p];)if(o=r[p++].exec(t),o)for(m=0;m<l.length;m++)d=o[++n],u=l[m],typeof u===De&&u.length>0?u.length===2?typeof u[1]==rt?this[u[0]]=u[1].call(this,d):this[u[0]]=u[1]:u.length===3?typeof u[1]===rt&&!(u[1].exec&&u[1].test)?this[u[0]]=d?u[1].call(this,d,u[2]):void 0:this[u[0]]=d?d.replace(u[1],u[2]):void 0:u.length===4&&(this[u[0]]=d?u[3].call(this,d.replace(u[1],u[2])):void 0):this[u]=d||void 0;i+=2}},pe=function(t,s){for(var i in s)if(typeof s[i]===De&&s[i].length>0){for(var p=0;p<s[i].length;p++)if(Pt(s[i][p],t))return i===ss?void 0:i}else if(Pt(s[i],t))return i===ss?void 0:i;return s.hasOwnProperty("*")?s["*"]:t},ms={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},fs={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},hs={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[b,Se+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[b,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[b,w],[/opios[\/ ]+([\w\.]+)/i],[w,[b,He+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[w,[b,He+" GX"]],[/\bopr\/([\w\.]+)/i],[w,[b,He]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[w,[b,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[w,[b,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[b,w],[/quark(?:pc)?\/([-\w\.]+)/i],[w,[b,"Quark"]],[/\bddg\/([\w\.]+)/i],[w,[b,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[b,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[w,[b,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[b,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[b,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[b,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[w,[b,"Smart "+as+Ue]],[/(avast|avg)\/([\w\.]+)/i],[[b,/(.+)/,"$1 Secure"+Ue],w],[/\bfocus\/([\w\.]+)/i],[w,[b,Be+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[b,He+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[b,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[b,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[b,He+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[b,"MIUI"+Ue]],[/fxios\/([\w\.-]+)/i],[w,[b,Se+Be]],[/\bqihoobrowser\/?([\w\.]*)/i],[w,[b,"360"]],[/\b(qq)\/([\w\.]+)/i],[[b,/(.+)/,"$1Browser"],w],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[b,/(.+)/,"$1"+Ue],w],[/samsungbrowser\/([\w\.]+)/i],[w,[b,Fe+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[w,[b,ps+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[b,ps+" Mobile"],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[b,w],[/(lbbrowser|rekonq)/i],[b],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[w,b],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[b,vt],w,[h,Me]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[b,w,[h,Me]],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[b,"GSA"],[h,Me]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[b,"TikTok"],[h,Me]],[/\[(linkedin)app\]/i],[b,[h,Me]],[/(chromium)[\/ ]([-\w\.]+)/i],[b,w],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[b,ds+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[b,ds+" WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[b,"Android"+Ue]],[/chrome\/([\w\.]+) mobile/i],[w,[b,Se+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[b,w],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[w,[b,Se+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[b,Se+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[w,b],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[b,[w,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[b,w],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[b,Se+Be],w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[b,"Netscape"],w],[/(wolvic|librewolf)\/([\w\.]+)/i],[b,w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[b,Be+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[b,[w,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[b,[w,/[^\d\.]+./,Ae]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[W,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[W,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[W,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[W,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[W,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[W,/ower/,Ae,re]],[/ sun4\w[;\)]/i],[[W,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[W,re]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[x,[g,Fe],[h,O]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[x,[g,Fe],[h,A]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[x,[g,Ce],[h,A]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[x,[g,Ce],[h,O]],[/(macintosh);/i],[x,[g,Ce]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[x,[g,cs],[h,A]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[x,[g,ns],[h,O]],[/honor([-\w ]+)[;\)]/i],[x,[g,ns],[h,A]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[x,[g,os],[h,O]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[x,[g,os],[h,A]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[x,/_/g," "],[g,bt],[h,O]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[x,/_/g," "],[g,bt],[h,A]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[x,[g,gt],[h,A]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[x,[g,pe,{OnePlus:["304","403","203"],"*":gt}],[h,O]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[x,[g,"BLU"],[h,A]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[x,[g,"Vivo"],[h,A]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[x,[g,"Realme"],[h,A]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[x,[g,ht],[h,A]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[x,[g,ht],[h,O]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[x,[g,Qe],[h,O]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[x,[g,Qe],[h,A]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[x,[g,as],[h,O]],[/(nokia) (t[12][01])/i],[g,x,[h,O]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[x,/_/g," "],[h,A],[g,"Nokia"]],[/(pixel (c|tablet))\b/i],[x,[g,we],[h,O]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[x,[g,we],[h,A]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[x,[g,Ne],[h,A]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[x,"Xperia Tablet"],[g,Ne],[h,O]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[x,[g,ls],[h,A]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[x,[g,Ze],[h,O]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[x,/(.+)/g,"Fire Phone $1"],[g,Ze],[h,A]],[/(playbook);[-\w\),; ]+(rim)/i],[x,g,[h,O]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[x,[g,rs],[h,A]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[x,[g,is],[h,O]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[x,[g,is],[h,A]],[/(nexus 9)/i],[x,[g,"HTC"],[h,O]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[x,/_/g," "],[h,A]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[x,[g,"TCL"],[h,O]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[x,[g,"TCL"],[h,A]],[/(itel) ((\w+))/i],[[g,re],x,[h,pe,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[x,[g,"Acer"],[h,O]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[x,[g,"Meizu"],[h,A]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[x,[g,"Ulefone"],[h,A]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[x,[g,"Energizer"],[h,A]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[x,[g,"Cat"],[h,A]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[x,[g,"Smartfren"],[h,A]],[/droid.+; (a(?:015|06[35]|142p?))/i],[x,[g,"Nothing"],[h,A]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[x,[g,"Archos"],[h,O]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[x,[g,"Archos"],[h,A]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[g,x,[h,O]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[g,x,[h,A]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[g,x,[h,O]],[/(surface duo)/i],[x,[g,ft],[h,O]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[x,[g,"Fairphone"],[h,A]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[x,[g,xt],[h,O]],[/(sprint) (\w+)/i],[g,x,[h,A]],[/(kin\.[onetw]{3})/i],[[x,/\./g," "],[g,ft],[h,A]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[x,[g,wt],[h,O]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[x,[g,wt],[h,A]],[/smart-tv.+(samsung)/i],[g,[h,z]],[/hbbtv.+maple;(\d+)/i],[[x,/^/,"SmartTV"],[g,Fe],[h,z]],[/tcast.+(lg)e?. ([-\w]+)/i],[g,x,[h,z]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,Qe],[h,z]],[/(apple) ?tv/i],[g,[x,Ce+" TV"],[h,z]],[/crkey.*devicetype\/chromecast/i],[[x,de+" Third Generation"],[g,we],[h,z]],[/crkey.*devicetype\/([^/]*)/i],[[x,/^/,"Chromecast "],[g,we],[h,z]],[/fuchsia.*crkey/i],[[x,de+" Nest Hub"],[g,we],[h,z]],[/crkey/i],[[x,de],[g,we],[h,z]],[/(portaltv)/i],[x,[g,vt],[h,z]],[/droid.+aft(\w+)( bui|\))/i],[x,[g,Ze],[h,z]],[/(shield \w+ tv)/i],[x,[g,xt],[h,z]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[x,[g,cs],[h,z]],[/(bravia[\w ]+)( bui|\))/i],[x,[g,Ne],[h,z]],[/(mi(tv|box)-?\w+) bui/i],[x,[g,bt],[h,z]],[/Hbbtv.*(technisat) (.*);/i],[g,x,[h,z]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,Ke],[x,Ke],[h,z]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[x,[h,z]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,z]],[/(ouya)/i,/(nintendo) (\w+)/i],[g,x,[h,qe]],[/droid.+; (shield)( bui|\))/i],[x,[g,xt],[h,qe]],[/(playstation \w+)/i],[x,[g,Ne],[h,qe]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[x,[g,ft],[h,qe]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[x,[g,Fe],[h,J]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[g,x,[h,J]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[x,[g,gt],[h,J]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[x,[g,Ce],[h,J]],[/(opwwe\d{3})/i],[x,[g,ls],[h,J]],[/(moto 360)/i],[x,[g,ht],[h,J]],[/(smartwatch 3)/i],[x,[g,Ne],[h,J]],[/(g watch r)/i],[x,[g,Qe],[h,J]],[/droid.+; (wt63?0{2,3})\)/i],[x,[g,wt],[h,J]],[/droid.+; (glass) \d/i],[x,[g,we],[h,mt]],[/(pico) (4|neo3(?: link|pro)?)/i],[g,x,[h,mt]],[/(quest( \d| pro)?s?).+vr/i],[x,[g,vt],[h,mt]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[h,We]],[/(aeobc)\b/i],[x,[g,Ze],[h,We]],[/(homepod).+mac os/i],[x,[g,Ce],[h,We]],[/windows iot/i],[[h,We]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[x,[h,pe,{mobile:"Mobile",xr:"VR","*":O}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,O]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,A]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[x,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[b,rr+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[b,w],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[b,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[b,w],[/ladybird\//i],[[b,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,b]],os:[[/microsoft (windows) (vista|xp)/i],[b,w],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[b,[w,pe,ms]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,pe,ms],[b,Dt]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[b,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[b,"macOS"],[w,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[w,[b,de+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[w,[b,de+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[w,[b,de+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[w,[b,de+" Linux"]],[/crkey\/([\d\.]+)/i],[w,[b,de]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,b],[/(ubuntu) ([\w\.]+) like android/i],[[b,/(.+)/,"$1 Touch"],w],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[b,w],[/\(bb(10);/i],[w,[b,rs]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[w,[b,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[b,Be+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[b,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[b,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[b,"Chrome OS"],w],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[b,w],[/(sunos) ?([\w\.\d]*)/i],[[b,"Solaris"],w],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[b,w]]},Je=function(){var t={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return oe.call(t.init,[[q,[b,w,Ye,h]],[ie,[W]],[ee,[h,x,g]],[Z,[b,w]],[Y,[b,w]]]),oe.call(t.isIgnore,[[q,[w,Ye]],[Z,[w]],[Y,[w]]]),oe.call(t.isIgnoreRgx,[[q,/ ?browser$/i],[Y,/ ?os$/i]]),oe.call(t.toString,[[q,[b,w]],[ie,[W]],[ee,[g,x]],[Z,[b,w]],[Y,[b,w]]]),t}(),nr=function(t,s){var i=Je.init[s],p=Je.isIgnore[s]||0,n=Je.isIgnoreRgx[s]||0,m=Je.toString[s]||0;function u(){oe.call(this,i)}return u.prototype.getItem=function(){return t},u.prototype.withClientHints=function(){return ue?ue.getHighEntropyValues(Hs).then(function(o){return t.setCH(new Us(o,!1)).parseCH().get()}):t.parseCH().get()},u.prototype.withFeatureCheck=function(){return t.detectFeature().get()},s!=Te&&(u.prototype.is=function(o){var d=!1;for(var r in this)if(this.hasOwnProperty(r)&&!Pt(p,r)&&re(n?Pe(n,this[r]):this[r])==re(n?Pe(n,o):o)){if(d=!0,o!=fe)break}else if(o==fe&&d){d=!d;break}return d},u.prototype.toString=function(){var o=Ae;for(var d in m)typeof this[m[d]]!==fe&&(o+=(o?" ":Ae)+this[m[d]]);return o||fe}),ue||(u.prototype.then=function(o){var d=this,r=function(){for(var c in d)d.hasOwnProperty(c)&&(this[c]=d[c])};r.prototype={is:u.prototype.is,toString:u.prototype.toString};var l=new r;return o(l),l}),new u};function Us(t,s){if(t=t||{},oe.call(this,Hs),s)oe.call(this,[[Nt,yt(t[be])],[Bt,yt(t[Zi])],[A,/\?1/.test(t[tr])],[x,$e(t[sr])],[ke,$e(t[Bs])],[Ht,$e(t[ir])],[W,$e(t[Qi])],[ve,yt(t[er])],[ct,$e(t[Ji])]]);else for(var i in t)this.hasOwnProperty(i)&&typeof t[i]!==fe&&(this[i]=t[i])}function xs(t,s,i,p){return this.get=function(n){return n?this.data.hasOwnProperty(n)?this.data[n]:void 0:this.data},this.set=function(n,m){return this.data[n]=m,this},this.setCH=function(n){return this.uaCH=n,this},this.detectFeature=function(){if(V&&V.userAgent==this.ua)switch(this.itemType){case q:V.brave&&typeof V.brave.isBrave==rt&&this.set(b,"Brave");break;case ee:!this.get(h)&&ue&&ue[A]&&this.set(h,A),this.get(x)=="Macintosh"&&V&&typeof V.standalone!==fe&&V.maxTouchPoints&&V.maxTouchPoints>2&&this.set(x,"iPad").set(h,O);break;case Y:!this.get(b)&&ue&&ue[ke]&&this.set(b,ue[ke]);break;case Te:var n=this.data,m=function(u){return n[u].getItem().detectFeature().get()};this.set(q,m(q)).set(ie,m(ie)).set(ee,m(ee)).set(Z,m(Z)).set(Y,m(Y))}return this},this.parseUA=function(){return this.itemType!=Te&&Ct.call(this.data,this.ua,this.rgxMap),this.itemType==q&&this.set(Ye,jt(this.get(w))),this},this.parseCH=function(){var n=this.uaCH,m=this.rgxMap;switch(this.itemType){case q:case Z:var u=n[Bt]||n[Nt],o;if(u)for(var d in u){var r=u[d].brand||u[d],l=u[d].version;this.itemType==q&&!/not.a.brand/i.test(r)&&(!o||/chrom/i.test(o)&&r!=us)&&(r=pe(r,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(b,r).set(w,l).set(Ye,jt(l)),o=r),this.itemType==Z&&r==us&&this.set(w,l)}break;case ie:var c=n[W];c&&(c&&n[ct]=="64"&&(c+="64"),Ct.call(this.data,c+";",m));break;case ee:if(n[A]&&this.set(h,A),n[x]&&(this.set(x,n[x]),!this.get(h)||!this.get(g))){var a={};Ct.call(a,"droid 9; "+n[x]+")",m),!this.get(h)&&a.type&&this.set(h,a.type),!this.get(g)&&a.vendor&&this.set(g,a.vendor)}if(n[ve]){var f;if(typeof n[ve]!="string")for(var S=0;!f&&S<n[ve].length;)f=pe(n[ve][S++],fs);else f=pe(n[ve],fs);this.set(h,f)}break;case Y:var v=n[ke];if(v){var y=n[Ht];v==Dt&&(y=parseInt(jt(y),10)>=13?"11":"10"),this.set(b,v).set(w,y)}this.get(b)==Dt&&n[x]=="Xbox"&&this.set(b,"Xbox").set(w,void 0);break;case Te:var T=this.data,k=function(D){return T[D].getItem().setCH(n).parseCH().get()};this.set(q,k(q)).set(ie,k(ie)).set(ee,k(ee)).set(Z,k(Z)).set(Y,k(Y))}return this},oe.call(this,[["itemType",t],["ua",s],["uaCH",p],["rgxMap",i],["data",nr(this,t)]]),this}function ne(t,s,i){if(typeof t===De?(ot(t,!0)?(typeof s===De&&(i=s),s=t):(i=t,s=void 0),t=void 0):typeof t===At&&!ot(s,!0)&&(i=s,s=void 0),i&&typeof i.append===rt){var p={};i.forEach(function(d,r){p[r]=d}),i=p}if(!(this instanceof ne))return new ne(t,s,i).getResult();var n=typeof t===At?t:i&&i[ts]?i[ts]:V&&V.userAgent?V.userAgent:Ae,m=new Us(i,!0),u=s?ar(hs,s):hs,o=function(d){return d==Te?function(){return new xs(d,n,u,m).set("ua",n).set(q,this.getBrowser()).set(ie,this.getCPU()).set(ee,this.getDevice()).set(Z,this.getEngine()).set(Y,this.getOS()).get()}:function(){return new xs(d,n,u[d],m).parseUA().get()}};return oe.call(this,[["getBrowser",o(q)],["getCPU",o(ie)],["getDevice",o(ee)],["getEngine",o(Z)],["getOS",o(Y)],["getResult",o(Te)],["getUA",function(){return n}],["setUA",function(d){return Oe(d)&&(n=d.length>It?Ke(d,It):d),this}]]).setUA(n),this}ne.VERSION=Xi;ne.BROWSER=dt([b,w,Ye,h]);ne.CPU=dt([W]);ne.DEVICE=dt([x,g,h,qe,A,z,O,J,We]);ne.ENGINE=ne.OS=dt([b,w]);function lr(t){return!t||typeof t!="string"?"break-all":t.includes(" ")?"break-word":"break-all"}function $s({logo:t="",name:s="",description:i="",size:p=40,variant:n="rounded",sx:m={},className:u="",logoName:o="",tooltip:d=null}){const r={width:p,height:p,...m},l=typeof s=="string"?s:t,c=e.jsxs(he,{direction:"row",spacing:1,className:`info-card-wrapper ${u}`,sx:{alignItems:"center",cursor:d?"pointer":"default"},children:[t?e.jsx(Zt,{src:t,alt:o??l,variant:n,sx:r}):e.jsx(Zt,{variant:n,sx:r,children:l?.slice(0,1)}),e.jsxs(he,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:lr(s),minWidth:{xs:100,sm:140}},children:[e.jsx(U,{variant:"body1",component:"div",sx:{color:"text.primary"},children:s}),i&&e.jsx(U,{variant:"subtitle1",sx:{color:"text.secondary"},children:i})]})]});return d?e.jsx(ye,{title:d,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:a=>a.palette.mode==="dark"?"#2a2e37":"#ffffff",color:a=>a.palette.mode==="dark"?"#ffffff":a.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:a=>a.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:a=>a.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:a=>a.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:a=>a.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:c}):c}$s.propTypes={logo:C.string,name:C.oneOfType([C.string,C.node]).isRequired,description:C.oneOfType([C.string,C.node]),size:C.oneOfType([C.number,C.string]),variant:C.oneOf(["square","rounded","circular"]),sx:C.object,className:C.string,logoName:C.string,tooltip:C.oneOfType([C.string,C.node])};function cr(t){try{if(!t.trim())return{device:{icon:e.jsx(ut,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(pt,{fontSize:"small"}),text:"Unknown Browser"}};const i=new ne(t).getResult();let p="";const n=t.split(/\s+/).find(d=>d.startsWith("arcwallet"));if(n){const d=n.split("/");d.length>1&&Qt.coerce(d[1])&&(p=Qt.coerce(d[1]).version)}const m=(()=>{const{type:d="",model:r=""}=i.device;return d==="mobile"?{icon:e.jsx(Yi,{fontSize:"small"}),text:r||"Mobile Device"}:d==="tablet"?{icon:e.jsx(Ki,{fontSize:"small"}),text:r||"Tablet"}:{icon:e.jsx(Gi,{fontSize:"small"}),text:r||"Desktop"}})(),u=(()=>{const{name:d="",version:r=""}=i.os;return d.toLowerCase().includes("mac")?{icon:e.jsx(es,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("ios")?{icon:e.jsx(es,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("android")?{icon:e.jsx(Vi,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("windows")?{icon:e.jsx(ut,{fontSize:"small"}),text:`${d} ${r}`}:{icon:null,text:d?`${d} ${r}`:"Unknown OS"}})(),o=(()=>{const{name:d="",version:r=""}=i.browser;return{icon:e.jsx(pt,{fontSize:"small"}),text:d?`${d} ${r}`:"Unknown Browser"}})();return{device:m,os:u,browser:o,...p?{walletVersion:{icon:null,text:p}}:{}}}catch(s){return console.error("Error parsing user agent:",s),{device:{icon:e.jsx(ut,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(pt,{fontSize:"small"}),text:"Unknown Browser"}}}}function qs({ua:t}){const s=cr(t);return e.jsx(he,{spacing:1,children:Object.entries(s).map(([i,{icon:p,text:n}])=>e.jsxs(j,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(j,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p}),e.jsx(U,{variant:"body2",sx:{display:"flex"},children:n})]},i))})}qs.propTypes={ua:C.string.isRequired};const Ws=()=>{const{t}=H(),s={$all:t("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:s,formatRoleName:p=>{const n=(p||"").toLowerCase();return n.startsWith("$")?s[n]||n.slice(1):s[n]||n}}},dr=(t,s=!1)=>{const i=s?1:.6;switch(t){case"owner":return`rgba(232, 222, 255, ${i})`;case"admin":return`rgba(227, 242, 253, ${i})`;case"member":return`rgba(232, 245, 233, ${i})`;case"guest":return`rgba(245, 245, 245, ${i})`;default:return`rgba(245, 245, 245, ${i})`}},ur=Et(Ot)(({role:t})=>({backgroundColor:dr(t.toLowerCase()),color:"#000000"})),pr=t=>{switch(t){case"valid":return s=>s.palette.success.light;case"expired":return s=>s.palette.text.disabled;case"revoked":return s=>s.palette.error.light;default:return s=>s.palette.warning.light}},mr=Et(Ot)(({theme:t,status:s})=>({backgroundColor:pr(s)(t),color:"#FFFFFF"}));function Vs({did:t}){return e.jsx(Re,{size:14,responsive:!1,compact:!0,copyable:!1,did:t})}Vs.propTypes={did:C.string.isRequired};function Gs({timestamp:t,locale:s}){return e.jsx(j,{sx:{minWidth:"100px"},children:e.jsx(et,{value:t,locale:s})})}Gs.propTypes={timestamp:C.number.isRequired,locale:C.string.isRequired};function Ys({name:t="",role:s}){const{formatRoleName:i}=Ws();return e.jsx(ur,{label:i(t||s),size:"small",role:t||s,sx:{borderRadius:1}})}Ys.propTypes={role:C.string.isRequired,name:C.string};function Ks({status:t}){const{t:s}=H();return e.jsx(mr,{label:s(`team.passport.statusMap.${t}`),size:"small",status:t,sx:{borderRadius:1}})}Ks.propTypes={status:C.string.isRequired};function Xs({source:t}){const{t:s}=H();return t?s(`team.passport.sourceMaps.${t}`):"-"}Xs.propTypes={source:C.string.isRequired};function Zs({user:t,size:s="default",tooltip:i=!1,inService:p=!1}){const{teamDid:n}=K(),m=tt.useMemo(()=>_t(t.avatar,n,p),[t.avatar,n,p]),u=tt.useMemo(()=>e.jsx(Re,{did:t?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[t?.did]),o=hi(()=>({...t,avatar:m}),[t,m]);return s==="small"?e.jsx($s,{variant:"circular",logo:m,name:e.jsx(U,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:t.fullName||t.email}),...s==="small"?{tooltip:i?e.jsx(Re,{did:t?.did}):!1,size:24}:{description:u,size:36}}):e.jsx(xi,{user:o,avatarSize:s==="small"?24:36,cardType:bi.Detailed,infoType:gi.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}Zs.propTypes={user:C.object.isRequired,size:C.string,tooltip:C.bool,inService:C.bool};const fr=tt.memo(Zs),hr=t=>e.jsx(Vs,{did:t}),Ut=(t,s)=>e.jsx(Ys,{name:t,role:s}),$t=t=>e.jsx(Ks,{status:t}),Qs=(t,s)=>e.jsx(Gs,{timestamp:t,locale:s}),at=t=>e.jsx(Xs,{source:t}),qt=(t,s=!1)=>e.jsx(fr,{user:t,inService:s}),xr=t=>e.jsx(qs,{ua:t}),gs="info";function Js({createPassportSvg:t,passport:s,onCancel:i,onSwitchPassport:p=()=>{}}){const{t:n}=H(),m=wi({tab:gs}),u={info:{label:n("common.basicInfo"),value:gs,component:()=>e.jsx(ei,{passport:s,createPassportSvg:t})},logs:{label:n("common.logs"),value:"logs",component:()=>e.jsx(ii,{passport:s})},related:{label:n("team.passport.related"),value:"related",component:()=>e.jsx(ri,{passport:s,onSwitchPassport:p})}},o=Object.values(u).map(({label:l,value:c})=>({label:l,value:c})).filter(l=>l.value==="related"?s.parentDid:!0),d=u[m.tab]||u.info,r=l=>{m.tab=l};return e.jsx(le,{title:n("common.passport"),onClose:i,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs(gr,{children:[e.jsx(j,{className:"tabs",children:e.jsx(Bi,{tabs:o,current:m.tab,onChange:r,scrollButtons:"auto"})}),e.jsx(j,{className:"body",children:e.jsx(d.component,{})})]})})}Js.propTypes={createPassportSvg:C.func.isRequired,passport:C.object.isRequired,onCancel:C.func.isRequired,onSwitchPassport:C.func};const gr=ce(j)`
|
|
1
|
+
import{aF as xe,j as e,r as R,aV as he,cx as Zt,T as U,ay as ye,o as C,n as H,be as tt,b8 as Et,M as j,O as et,W as Re,eO as Ot,fI as _t,bz as hi,br as xi,bs as gi,bt as bi,aO as Qt,aP as wi,$ as le,s as ce,bn as B,cr as st,C as Q,V as Rs,at as vi,dl as yi,bf as Is,bg as ji,aH as me,H as N,bA as Ee,gp as Ci,gq as Si,i as Ti,w as G,b as ki,a2 as Ie,v as te,R as it,a3 as ae,aS as Xe,X as Ge,I as As,ac as Lt,bd as Ds,gr as Ri,t as Ii,fm as Ai,Q as Ps,fe as Es,bi as Os,p as Di,D as Pi,c5 as _s,aU as Ei,U as Oi,dI as _i,F as Li,gs as Jt,fG as zi,gt as Mi,S as Fi}from"./index-DJuZ9nhg.js";import{H as zt,g as Ni}from"./index-BdNOQK8-.js";import{T as Bi}from"./html-title-3CG5UyIt.js";import{u as K}from"./team-CMHYwDgb.js";import{u as Hi}from"./use-mobile-GbhQCYjE.js";import{v as ze}from"./index-0Dj9yC88.js";import{w as ge,P as Ls}from"./permission-DNpvmcDO.js";import{C as Ui}from"./Google-DT749Dih.js";import{u as $i}from"./blocklet-qrkDxr_e.js";import{A as Mt}from"./Add-C8Lm-hkR.js";import{y as Ft}from"./index-BuQjZmfi.js";import{e as nt}from"./edit.svg-BLR5epzr.js";import{M as zs}from"./TableSearch-x3y0kzP6.js";import{L as Ms}from"./list-header-CSkrCQnJ.js";import{g as qi}from"./chain-CA7TjYnf.js";import{T as Fs,a as Ve}from"./ToggleButtonGroup-CDxsnBYJ.js";import{C as Wi}from"./lock.svg-f30K2Q3n.js";const Vi=xe(e.jsx("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"})),es=xe(e.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})),Ns=xe(e.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),ut=xe(e.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),Gi=xe(e.jsx("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),Yi=xe(e.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"})),Ki=xe(e.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"})),pt=xe(e.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"})),lt=t=>R.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},R.createElement("path",{d:"M8.4375 4.3125H8.25C8.35313 4.3125 8.4375 4.22812 8.4375 4.125V4.3125H15.5625V4.125C15.5625 4.22812 15.6469 4.3125 15.75 4.3125H15.5625V6H17.25V4.125C17.25 3.29766 16.5773 2.625 15.75 2.625H8.25C7.42266 2.625 6.75 3.29766 6.75 4.125V6H8.4375V4.3125ZM20.25 6H3.75C3.33516 6 3 6.33516 3 6.75V7.5C3 7.60313 3.08437 7.6875 3.1875 7.6875H4.60312L5.18203 19.9453C5.21953 20.7445 5.88047 21.375 6.67969 21.375H17.3203C18.1219 21.375 18.7805 20.7469 18.818 19.9453L19.3969 7.6875H20.8125C20.9156 7.6875 21 7.60313 21 7.5V6.75C21 6.33516 20.6648 6 20.25 6ZM17.1398 19.6875H6.86016L6.29297 7.6875H17.707L17.1398 19.6875Z"}));var Xi="2.0.3",It=500,ts="user-agent",Ae="",ss="?",rt="function",fe="undefined",De="object",At="string",q="browser",ie="cpu",ee="device",Z="engine",Y="os",Te="result",b="name",h="type",g="vendor",w="version",W="architecture",Ye="major",x="model",qe="console",A="mobile",O="tablet",z="smarttv",J="wearable",mt="xr",We="embedded",Me="inapp",Nt="brands",ve="formFactors",Bt="fullVersionList",ke="platform",Ht="platformVersion",ct="bitness",be="sec-ch-ua",Zi=be+"-full-version-list",Qi=be+"-arch",Ji=be+"-"+ct,er=be+"-form-factors",tr=be+"-"+A,sr=be+"-"+x,Bs=be+"-"+ke,ir=Bs+"-version",Hs=[Nt,Bt,A,x,ke,Ht,W,ve,ct],Ze="Amazon",Ce="Apple",is="ASUS",rs="BlackBerry",we="Google",os="Huawei",as="Lenovo",ns="Honor",Qe="LG",ft="Microsoft",ht="Motorola",xt="Nvidia",ls="OnePlus",gt="OPPO",Fe="Samsung",cs="Sharp",Ne="Sony",bt="Xiaomi",wt="Zebra",ds="Chrome",us="Chromium",de="Chromecast",rr="Edge",Be="Firefox",He="Opera",vt="Facebook",ps="Sogou",Se="Mobile ",Ue=" Browser",Dt="Windows",or=typeof window!==fe,V=or&&window.navigator?window.navigator:void 0,ue=V&&V.userAgentData?V.userAgentData:void 0,ar=function(t,s){var i={},p=s;if(!ot(s)){p={};for(var n in s)for(var m in s[n])p[m]=s[n][m].concat(p[m]?p[m]:[])}for(var u in t)i[u]=p[u]&&p[u].length%2===0?p[u].concat(t[u]):t[u];return i},dt=function(t){for(var s={},i=0;i<t.length;i++)s[t[i].toUpperCase()]=t[i];return s},Pt=function(t,s){if(typeof t===De&&t.length>0){for(var i in t)if(re(t[i])==re(s))return!0;return!1}return Oe(t)?re(s).indexOf(re(t))!==-1:!1},ot=function(t,s){for(var i in t)return/^(browser|cpu|device|engine|os)$/.test(i)||(s?ot(t[i]):!1)},Oe=function(t){return typeof t===At},yt=function(t){if(t){for(var s=[],i=Pe(/\\?\"/g,t).split(","),p=0;p<i.length;p++)if(i[p].indexOf(";")>-1){var n=Ke(i[p]).split(";v=");s[p]={brand:n[0],version:n[1]}}else s[p]=Ke(i[p]);return s}},re=function(t){return Oe(t)?t.toLowerCase():t},jt=function(t){return Oe(t)?Pe(/[^\d\.]/g,t).split(".")[0]:void 0},oe=function(t){for(var s in t){var i=t[s];typeof i==De&&i.length==2?this[i[0]]=i[1]:this[i]=void 0}return this},Pe=function(t,s){return Oe(s)?s.replace(t,Ae):s},$e=function(t){return Pe(/\\?\"/g,t)},Ke=function(t,s){if(Oe(t))return t=Pe(/^\s\s*/,t),typeof s===fe?t:t.substring(0,It)},Ct=function(t,s){if(!(!t||!s))for(var i=0,p,n,m,u,o,d;i<s.length&&!o;){var r=s[i],l=s[i+1];for(p=n=0;p<r.length&&!o&&r[p];)if(o=r[p++].exec(t),o)for(m=0;m<l.length;m++)d=o[++n],u=l[m],typeof u===De&&u.length>0?u.length===2?typeof u[1]==rt?this[u[0]]=u[1].call(this,d):this[u[0]]=u[1]:u.length===3?typeof u[1]===rt&&!(u[1].exec&&u[1].test)?this[u[0]]=d?u[1].call(this,d,u[2]):void 0:this[u[0]]=d?d.replace(u[1],u[2]):void 0:u.length===4&&(this[u[0]]=d?u[3].call(this,d.replace(u[1],u[2])):void 0):this[u]=d||void 0;i+=2}},pe=function(t,s){for(var i in s)if(typeof s[i]===De&&s[i].length>0){for(var p=0;p<s[i].length;p++)if(Pt(s[i][p],t))return i===ss?void 0:i}else if(Pt(s[i],t))return i===ss?void 0:i;return s.hasOwnProperty("*")?s["*"]:t},ms={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},fs={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},hs={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[b,Se+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[b,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[b,w],[/opios[\/ ]+([\w\.]+)/i],[w,[b,He+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[w,[b,He+" GX"]],[/\bopr\/([\w\.]+)/i],[w,[b,He]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[w,[b,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[w,[b,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[b,w],[/quark(?:pc)?\/([-\w\.]+)/i],[w,[b,"Quark"]],[/\bddg\/([\w\.]+)/i],[w,[b,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[b,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[w,[b,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[b,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[b,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[b,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[w,[b,"Smart "+as+Ue]],[/(avast|avg)\/([\w\.]+)/i],[[b,/(.+)/,"$1 Secure"+Ue],w],[/\bfocus\/([\w\.]+)/i],[w,[b,Be+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[b,He+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[b,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[b,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[b,He+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[b,"MIUI"+Ue]],[/fxios\/([\w\.-]+)/i],[w,[b,Se+Be]],[/\bqihoobrowser\/?([\w\.]*)/i],[w,[b,"360"]],[/\b(qq)\/([\w\.]+)/i],[[b,/(.+)/,"$1Browser"],w],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[b,/(.+)/,"$1"+Ue],w],[/samsungbrowser\/([\w\.]+)/i],[w,[b,Fe+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[w,[b,ps+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[b,ps+" Mobile"],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[b,w],[/(lbbrowser|rekonq)/i],[b],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[w,b],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[b,vt],w,[h,Me]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[b,w,[h,Me]],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[b,"GSA"],[h,Me]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[b,"TikTok"],[h,Me]],[/\[(linkedin)app\]/i],[b,[h,Me]],[/(chromium)[\/ ]([-\w\.]+)/i],[b,w],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[b,ds+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[b,ds+" WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[b,"Android"+Ue]],[/chrome\/([\w\.]+) mobile/i],[w,[b,Se+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[b,w],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[w,[b,Se+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[b,Se+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[w,b],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[b,[w,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[b,w],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[b,Se+Be],w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[b,"Netscape"],w],[/(wolvic|librewolf)\/([\w\.]+)/i],[b,w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[b,Be+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[b,[w,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[b,[w,/[^\d\.]+./,Ae]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[W,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[W,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[W,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[W,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[W,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[W,/ower/,Ae,re]],[/ sun4\w[;\)]/i],[[W,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[W,re]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[x,[g,Fe],[h,O]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[x,[g,Fe],[h,A]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[x,[g,Ce],[h,A]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[x,[g,Ce],[h,O]],[/(macintosh);/i],[x,[g,Ce]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[x,[g,cs],[h,A]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[x,[g,ns],[h,O]],[/honor([-\w ]+)[;\)]/i],[x,[g,ns],[h,A]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[x,[g,os],[h,O]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[x,[g,os],[h,A]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[x,/_/g," "],[g,bt],[h,O]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[x,/_/g," "],[g,bt],[h,A]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[x,[g,gt],[h,A]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[x,[g,pe,{OnePlus:["304","403","203"],"*":gt}],[h,O]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[x,[g,"BLU"],[h,A]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[x,[g,"Vivo"],[h,A]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[x,[g,"Realme"],[h,A]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[x,[g,ht],[h,A]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[x,[g,ht],[h,O]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[x,[g,Qe],[h,O]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[x,[g,Qe],[h,A]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[x,[g,as],[h,O]],[/(nokia) (t[12][01])/i],[g,x,[h,O]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[x,/_/g," "],[h,A],[g,"Nokia"]],[/(pixel (c|tablet))\b/i],[x,[g,we],[h,O]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[x,[g,we],[h,A]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[x,[g,Ne],[h,A]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[x,"Xperia Tablet"],[g,Ne],[h,O]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[x,[g,ls],[h,A]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[x,[g,Ze],[h,O]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[x,/(.+)/g,"Fire Phone $1"],[g,Ze],[h,A]],[/(playbook);[-\w\),; ]+(rim)/i],[x,g,[h,O]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[x,[g,rs],[h,A]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[x,[g,is],[h,O]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[x,[g,is],[h,A]],[/(nexus 9)/i],[x,[g,"HTC"],[h,O]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[x,/_/g," "],[h,A]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[x,[g,"TCL"],[h,O]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[x,[g,"TCL"],[h,A]],[/(itel) ((\w+))/i],[[g,re],x,[h,pe,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[x,[g,"Acer"],[h,O]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[x,[g,"Meizu"],[h,A]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[x,[g,"Ulefone"],[h,A]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[x,[g,"Energizer"],[h,A]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[x,[g,"Cat"],[h,A]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[x,[g,"Smartfren"],[h,A]],[/droid.+; (a(?:015|06[35]|142p?))/i],[x,[g,"Nothing"],[h,A]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[x,[g,"Archos"],[h,O]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[x,[g,"Archos"],[h,A]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[g,x,[h,O]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[g,x,[h,A]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[g,x,[h,O]],[/(surface duo)/i],[x,[g,ft],[h,O]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[x,[g,"Fairphone"],[h,A]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[x,[g,xt],[h,O]],[/(sprint) (\w+)/i],[g,x,[h,A]],[/(kin\.[onetw]{3})/i],[[x,/\./g," "],[g,ft],[h,A]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[x,[g,wt],[h,O]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[x,[g,wt],[h,A]],[/smart-tv.+(samsung)/i],[g,[h,z]],[/hbbtv.+maple;(\d+)/i],[[x,/^/,"SmartTV"],[g,Fe],[h,z]],[/tcast.+(lg)e?. ([-\w]+)/i],[g,x,[h,z]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,Qe],[h,z]],[/(apple) ?tv/i],[g,[x,Ce+" TV"],[h,z]],[/crkey.*devicetype\/chromecast/i],[[x,de+" Third Generation"],[g,we],[h,z]],[/crkey.*devicetype\/([^/]*)/i],[[x,/^/,"Chromecast "],[g,we],[h,z]],[/fuchsia.*crkey/i],[[x,de+" Nest Hub"],[g,we],[h,z]],[/crkey/i],[[x,de],[g,we],[h,z]],[/(portaltv)/i],[x,[g,vt],[h,z]],[/droid.+aft(\w+)( bui|\))/i],[x,[g,Ze],[h,z]],[/(shield \w+ tv)/i],[x,[g,xt],[h,z]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[x,[g,cs],[h,z]],[/(bravia[\w ]+)( bui|\))/i],[x,[g,Ne],[h,z]],[/(mi(tv|box)-?\w+) bui/i],[x,[g,bt],[h,z]],[/Hbbtv.*(technisat) (.*);/i],[g,x,[h,z]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,Ke],[x,Ke],[h,z]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[x,[h,z]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,z]],[/(ouya)/i,/(nintendo) (\w+)/i],[g,x,[h,qe]],[/droid.+; (shield)( bui|\))/i],[x,[g,xt],[h,qe]],[/(playstation \w+)/i],[x,[g,Ne],[h,qe]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[x,[g,ft],[h,qe]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[x,[g,Fe],[h,J]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[g,x,[h,J]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[x,[g,gt],[h,J]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[x,[g,Ce],[h,J]],[/(opwwe\d{3})/i],[x,[g,ls],[h,J]],[/(moto 360)/i],[x,[g,ht],[h,J]],[/(smartwatch 3)/i],[x,[g,Ne],[h,J]],[/(g watch r)/i],[x,[g,Qe],[h,J]],[/droid.+; (wt63?0{2,3})\)/i],[x,[g,wt],[h,J]],[/droid.+; (glass) \d/i],[x,[g,we],[h,mt]],[/(pico) (4|neo3(?: link|pro)?)/i],[g,x,[h,mt]],[/(quest( \d| pro)?s?).+vr/i],[x,[g,vt],[h,mt]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[h,We]],[/(aeobc)\b/i],[x,[g,Ze],[h,We]],[/(homepod).+mac os/i],[x,[g,Ce],[h,We]],[/windows iot/i],[[h,We]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[x,[h,pe,{mobile:"Mobile",xr:"VR","*":O}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,O]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,A]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[x,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[b,rr+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[b,w],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[b,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[b,w],[/ladybird\//i],[[b,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,b]],os:[[/microsoft (windows) (vista|xp)/i],[b,w],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[b,[w,pe,ms]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[w,pe,ms],[b,Dt]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[b,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[b,"macOS"],[w,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[w,[b,de+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[w,[b,de+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[w,[b,de+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[w,[b,de+" Linux"]],[/crkey\/([\d\.]+)/i],[w,[b,de]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,b],[/(ubuntu) ([\w\.]+) like android/i],[[b,/(.+)/,"$1 Touch"],w],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[b,w],[/\(bb(10);/i],[w,[b,rs]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[w,[b,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[b,Be+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[b,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[b,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[b,"Chrome OS"],w],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[b,w],[/(sunos) ?([\w\.\d]*)/i],[[b,"Solaris"],w],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[b,w]]},Je=function(){var t={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return oe.call(t.init,[[q,[b,w,Ye,h]],[ie,[W]],[ee,[h,x,g]],[Z,[b,w]],[Y,[b,w]]]),oe.call(t.isIgnore,[[q,[w,Ye]],[Z,[w]],[Y,[w]]]),oe.call(t.isIgnoreRgx,[[q,/ ?browser$/i],[Y,/ ?os$/i]]),oe.call(t.toString,[[q,[b,w]],[ie,[W]],[ee,[g,x]],[Z,[b,w]],[Y,[b,w]]]),t}(),nr=function(t,s){var i=Je.init[s],p=Je.isIgnore[s]||0,n=Je.isIgnoreRgx[s]||0,m=Je.toString[s]||0;function u(){oe.call(this,i)}return u.prototype.getItem=function(){return t},u.prototype.withClientHints=function(){return ue?ue.getHighEntropyValues(Hs).then(function(o){return t.setCH(new Us(o,!1)).parseCH().get()}):t.parseCH().get()},u.prototype.withFeatureCheck=function(){return t.detectFeature().get()},s!=Te&&(u.prototype.is=function(o){var d=!1;for(var r in this)if(this.hasOwnProperty(r)&&!Pt(p,r)&&re(n?Pe(n,this[r]):this[r])==re(n?Pe(n,o):o)){if(d=!0,o!=fe)break}else if(o==fe&&d){d=!d;break}return d},u.prototype.toString=function(){var o=Ae;for(var d in m)typeof this[m[d]]!==fe&&(o+=(o?" ":Ae)+this[m[d]]);return o||fe}),ue||(u.prototype.then=function(o){var d=this,r=function(){for(var c in d)d.hasOwnProperty(c)&&(this[c]=d[c])};r.prototype={is:u.prototype.is,toString:u.prototype.toString};var l=new r;return o(l),l}),new u};function Us(t,s){if(t=t||{},oe.call(this,Hs),s)oe.call(this,[[Nt,yt(t[be])],[Bt,yt(t[Zi])],[A,/\?1/.test(t[tr])],[x,$e(t[sr])],[ke,$e(t[Bs])],[Ht,$e(t[ir])],[W,$e(t[Qi])],[ve,yt(t[er])],[ct,$e(t[Ji])]]);else for(var i in t)this.hasOwnProperty(i)&&typeof t[i]!==fe&&(this[i]=t[i])}function xs(t,s,i,p){return this.get=function(n){return n?this.data.hasOwnProperty(n)?this.data[n]:void 0:this.data},this.set=function(n,m){return this.data[n]=m,this},this.setCH=function(n){return this.uaCH=n,this},this.detectFeature=function(){if(V&&V.userAgent==this.ua)switch(this.itemType){case q:V.brave&&typeof V.brave.isBrave==rt&&this.set(b,"Brave");break;case ee:!this.get(h)&&ue&&ue[A]&&this.set(h,A),this.get(x)=="Macintosh"&&V&&typeof V.standalone!==fe&&V.maxTouchPoints&&V.maxTouchPoints>2&&this.set(x,"iPad").set(h,O);break;case Y:!this.get(b)&&ue&&ue[ke]&&this.set(b,ue[ke]);break;case Te:var n=this.data,m=function(u){return n[u].getItem().detectFeature().get()};this.set(q,m(q)).set(ie,m(ie)).set(ee,m(ee)).set(Z,m(Z)).set(Y,m(Y))}return this},this.parseUA=function(){return this.itemType!=Te&&Ct.call(this.data,this.ua,this.rgxMap),this.itemType==q&&this.set(Ye,jt(this.get(w))),this},this.parseCH=function(){var n=this.uaCH,m=this.rgxMap;switch(this.itemType){case q:case Z:var u=n[Bt]||n[Nt],o;if(u)for(var d in u){var r=u[d].brand||u[d],l=u[d].version;this.itemType==q&&!/not.a.brand/i.test(r)&&(!o||/chrom/i.test(o)&&r!=us)&&(r=pe(r,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(b,r).set(w,l).set(Ye,jt(l)),o=r),this.itemType==Z&&r==us&&this.set(w,l)}break;case ie:var c=n[W];c&&(c&&n[ct]=="64"&&(c+="64"),Ct.call(this.data,c+";",m));break;case ee:if(n[A]&&this.set(h,A),n[x]&&(this.set(x,n[x]),!this.get(h)||!this.get(g))){var a={};Ct.call(a,"droid 9; "+n[x]+")",m),!this.get(h)&&a.type&&this.set(h,a.type),!this.get(g)&&a.vendor&&this.set(g,a.vendor)}if(n[ve]){var f;if(typeof n[ve]!="string")for(var S=0;!f&&S<n[ve].length;)f=pe(n[ve][S++],fs);else f=pe(n[ve],fs);this.set(h,f)}break;case Y:var v=n[ke];if(v){var y=n[Ht];v==Dt&&(y=parseInt(jt(y),10)>=13?"11":"10"),this.set(b,v).set(w,y)}this.get(b)==Dt&&n[x]=="Xbox"&&this.set(b,"Xbox").set(w,void 0);break;case Te:var T=this.data,k=function(D){return T[D].getItem().setCH(n).parseCH().get()};this.set(q,k(q)).set(ie,k(ie)).set(ee,k(ee)).set(Z,k(Z)).set(Y,k(Y))}return this},oe.call(this,[["itemType",t],["ua",s],["uaCH",p],["rgxMap",i],["data",nr(this,t)]]),this}function ne(t,s,i){if(typeof t===De?(ot(t,!0)?(typeof s===De&&(i=s),s=t):(i=t,s=void 0),t=void 0):typeof t===At&&!ot(s,!0)&&(i=s,s=void 0),i&&typeof i.append===rt){var p={};i.forEach(function(d,r){p[r]=d}),i=p}if(!(this instanceof ne))return new ne(t,s,i).getResult();var n=typeof t===At?t:i&&i[ts]?i[ts]:V&&V.userAgent?V.userAgent:Ae,m=new Us(i,!0),u=s?ar(hs,s):hs,o=function(d){return d==Te?function(){return new xs(d,n,u,m).set("ua",n).set(q,this.getBrowser()).set(ie,this.getCPU()).set(ee,this.getDevice()).set(Z,this.getEngine()).set(Y,this.getOS()).get()}:function(){return new xs(d,n,u[d],m).parseUA().get()}};return oe.call(this,[["getBrowser",o(q)],["getCPU",o(ie)],["getDevice",o(ee)],["getEngine",o(Z)],["getOS",o(Y)],["getResult",o(Te)],["getUA",function(){return n}],["setUA",function(d){return Oe(d)&&(n=d.length>It?Ke(d,It):d),this}]]).setUA(n),this}ne.VERSION=Xi;ne.BROWSER=dt([b,w,Ye,h]);ne.CPU=dt([W]);ne.DEVICE=dt([x,g,h,qe,A,z,O,J,We]);ne.ENGINE=ne.OS=dt([b,w]);function lr(t){return!t||typeof t!="string"?"break-all":t.includes(" ")?"break-word":"break-all"}function $s({logo:t="",name:s="",description:i="",size:p=40,variant:n="rounded",sx:m={},className:u="",logoName:o="",tooltip:d=null}){const r={width:p,height:p,...m},l=typeof s=="string"?s:t,c=e.jsxs(he,{direction:"row",spacing:1,className:`info-card-wrapper ${u}`,sx:{alignItems:"center",cursor:d?"pointer":"default"},children:[t?e.jsx(Zt,{src:t,alt:o??l,variant:n,sx:r}):e.jsx(Zt,{variant:n,sx:r,children:l?.slice(0,1)}),e.jsxs(he,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:lr(s),minWidth:{xs:100,sm:140}},children:[e.jsx(U,{variant:"body1",component:"div",sx:{color:"text.primary"},children:s}),i&&e.jsx(U,{variant:"subtitle1",sx:{color:"text.secondary"},children:i})]})]});return d?e.jsx(ye,{title:d,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:a=>a.palette.mode==="dark"?"#2a2e37":"#ffffff",color:a=>a.palette.mode==="dark"?"#ffffff":a.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:a=>a.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:a=>a.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:a=>a.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:a=>a.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:c}):c}$s.propTypes={logo:C.string,name:C.oneOfType([C.string,C.node]).isRequired,description:C.oneOfType([C.string,C.node]),size:C.oneOfType([C.number,C.string]),variant:C.oneOf(["square","rounded","circular"]),sx:C.object,className:C.string,logoName:C.string,tooltip:C.oneOfType([C.string,C.node])};function cr(t){try{if(!t.trim())return{device:{icon:e.jsx(ut,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(pt,{fontSize:"small"}),text:"Unknown Browser"}};const i=new ne(t).getResult();let p="";const n=t.split(/\s+/).find(d=>d.startsWith("arcwallet"));if(n){const d=n.split("/");d.length>1&&Qt.coerce(d[1])&&(p=Qt.coerce(d[1]).version)}const m=(()=>{const{type:d="",model:r=""}=i.device;return d==="mobile"?{icon:e.jsx(Yi,{fontSize:"small"}),text:r||"Mobile Device"}:d==="tablet"?{icon:e.jsx(Ki,{fontSize:"small"}),text:r||"Tablet"}:{icon:e.jsx(Gi,{fontSize:"small"}),text:r||"Desktop"}})(),u=(()=>{const{name:d="",version:r=""}=i.os;return d.toLowerCase().includes("mac")?{icon:e.jsx(es,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("ios")?{icon:e.jsx(es,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("android")?{icon:e.jsx(Vi,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("windows")?{icon:e.jsx(ut,{fontSize:"small"}),text:`${d} ${r}`}:{icon:null,text:d?`${d} ${r}`:"Unknown OS"}})(),o=(()=>{const{name:d="",version:r=""}=i.browser;return{icon:e.jsx(pt,{fontSize:"small"}),text:d?`${d} ${r}`:"Unknown Browser"}})();return{device:m,os:u,browser:o,...p?{walletVersion:{icon:null,text:p}}:{}}}catch(s){return console.error("Error parsing user agent:",s),{device:{icon:e.jsx(ut,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(pt,{fontSize:"small"}),text:"Unknown Browser"}}}}function qs({ua:t}){const s=cr(t);return e.jsx(he,{spacing:1,children:Object.entries(s).map(([i,{icon:p,text:n}])=>e.jsxs(j,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(j,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p}),e.jsx(U,{variant:"body2",sx:{display:"flex"},children:n})]},i))})}qs.propTypes={ua:C.string.isRequired};const Ws=()=>{const{t}=H(),s={$all:t("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:s,formatRoleName:p=>{const n=(p||"").toLowerCase();return n.startsWith("$")?s[n]||n.slice(1):s[n]||n}}},dr=(t,s=!1)=>{const i=s?1:.6;switch(t){case"owner":return`rgba(232, 222, 255, ${i})`;case"admin":return`rgba(227, 242, 253, ${i})`;case"member":return`rgba(232, 245, 233, ${i})`;case"guest":return`rgba(245, 245, 245, ${i})`;default:return`rgba(245, 245, 245, ${i})`}},ur=Et(Ot)(({role:t})=>({backgroundColor:dr(t.toLowerCase()),color:"#000000"})),pr=t=>{switch(t){case"valid":return s=>s.palette.success.light;case"expired":return s=>s.palette.text.disabled;case"revoked":return s=>s.palette.error.light;default:return s=>s.palette.warning.light}},mr=Et(Ot)(({theme:t,status:s})=>({backgroundColor:pr(s)(t),color:"#FFFFFF"}));function Vs({did:t}){return e.jsx(Re,{size:14,responsive:!1,compact:!0,copyable:!1,did:t})}Vs.propTypes={did:C.string.isRequired};function Gs({timestamp:t,locale:s}){return e.jsx(j,{sx:{minWidth:"100px"},children:e.jsx(et,{value:t,locale:s})})}Gs.propTypes={timestamp:C.number.isRequired,locale:C.string.isRequired};function Ys({name:t="",role:s}){const{formatRoleName:i}=Ws();return e.jsx(ur,{label:i(t||s),size:"small",role:t||s,sx:{borderRadius:1}})}Ys.propTypes={role:C.string.isRequired,name:C.string};function Ks({status:t}){const{t:s}=H();return e.jsx(mr,{label:s(`team.passport.statusMap.${t}`),size:"small",status:t,sx:{borderRadius:1}})}Ks.propTypes={status:C.string.isRequired};function Xs({source:t}){const{t:s}=H();return t?s(`team.passport.sourceMaps.${t}`):"-"}Xs.propTypes={source:C.string.isRequired};function Zs({user:t,size:s="default",tooltip:i=!1,inService:p=!1}){const{teamDid:n}=K(),m=tt.useMemo(()=>_t(t.avatar,n,p),[t.avatar,n,p]),u=tt.useMemo(()=>e.jsx(Re,{did:t?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[t?.did]),o=hi(()=>({...t,avatar:m}),[t,m]);return s==="small"?e.jsx($s,{variant:"circular",logo:m,name:e.jsx(U,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:t.fullName||t.email}),...s==="small"?{tooltip:i?e.jsx(Re,{did:t?.did}):!1,size:24}:{description:u,size:36}}):e.jsx(xi,{user:o,avatarSize:s==="small"?24:36,cardType:bi.Detailed,infoType:gi.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}Zs.propTypes={user:C.object.isRequired,size:C.string,tooltip:C.bool,inService:C.bool};const fr=tt.memo(Zs),hr=t=>e.jsx(Vs,{did:t}),Ut=(t,s)=>e.jsx(Ys,{name:t,role:s}),$t=t=>e.jsx(Ks,{status:t}),Qs=(t,s)=>e.jsx(Gs,{timestamp:t,locale:s}),at=t=>e.jsx(Xs,{source:t}),qt=(t,s=!1)=>e.jsx(fr,{user:t,inService:s}),xr=t=>e.jsx(qs,{ua:t}),gs="info";function Js({createPassportSvg:t,passport:s,onCancel:i,onSwitchPassport:p=()=>{}}){const{t:n}=H(),m=wi({tab:gs}),u={info:{label:n("common.basicInfo"),value:gs,component:()=>e.jsx(ei,{passport:s,createPassportSvg:t})},logs:{label:n("common.logs"),value:"logs",component:()=>e.jsx(ii,{passport:s})},related:{label:n("team.passport.related"),value:"related",component:()=>e.jsx(ri,{passport:s,onSwitchPassport:p})}},o=Object.values(u).map(({label:l,value:c})=>({label:l,value:c})).filter(l=>l.value==="related"?s.parentDid:!0),d=u[m.tab]||u.info,r=l=>{m.tab=l};return e.jsx(le,{title:n("common.passport"),onClose:i,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs(gr,{children:[e.jsx(j,{className:"tabs",children:e.jsx(Bi,{tabs:o,current:m.tab,onChange:r,scrollButtons:"auto"})}),e.jsx(j,{className:"body",children:e.jsx(d.component,{})})]})})}Js.propTypes={createPassportSvg:C.func.isRequired,passport:C.object.isRequired,onCancel:C.func.isRequired,onSwitchPassport:C.func};const gr=ce(j)`
|
|
2
2
|
margin-top: -16px;
|
|
3
3
|
|
|
4
4
|
.tabs {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ez as k}from"./index-
|
|
1
|
+
import{ez as k}from"./index-DJuZ9nhg.js";var m,C;function S(){if(C)return m;C=1;function v(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function A(o,e){for(var r="",i=0,f=-1,t=0,n,l=0;l<=o.length;++l){if(l<o.length)n=o.charCodeAt(l);else{if(n===47)break;n=47}if(n===47){if(!(f===l-1||t===1))if(f!==l-1&&t===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var s=r.lastIndexOf("/");if(s!==r.length-1){s===-1?(r="",i=0):(r=r.slice(0,s),i=r.length-1-r.lastIndexOf("/")),f=l,t=0;continue}}else if(r.length===2||r.length===1){r="",i=0,f=l,t=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+o.slice(f+1,l):r=o.slice(f+1,l),i=l-f-1;f=l,t=0}else n===46&&t!==-1?++t:t=-1}return r}function b(o,e){var r=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+i:r+o+i:i}var g={resolve:function(){for(var e="",r=!1,i,f=arguments.length-1;f>=-1&&!r;f--){var t;f>=0?t=arguments[f]:(i===void 0&&(i=k.cwd()),t=i),v(t),t.length!==0&&(e=t+"/"+e,r=t.charCodeAt(0)===47)}return e=A(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(v(e),e.length===0)return".";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=A(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return v(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];v(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":g.normalize(e)},relative:function(e,r){if(v(e),v(r),e===r||(e=g.resolve(e),r=g.resolve(r),e===r))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var f=e.length,t=f-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(var l=r.length,s=l-n,c=t<s?t:s,u=-1,a=0;a<=c;++a){if(a===c){if(s>c){if(r.charCodeAt(n+a)===47)return r.slice(n+a+1);if(a===0)return r.slice(n+a)}else t>c&&(e.charCodeAt(i+a)===47?u=a:a===0&&(u=0));break}var h=e.charCodeAt(i+a),y=r.charCodeAt(n+a);if(h!==y)break;h===47&&(u=a)}var d="";for(a=i+u+1;a<=f;++a)(a===f||e.charCodeAt(a)===47)&&(d.length===0?d+="..":d+="/..");return d.length>0?d+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){return e},dirname:function(e){if(v(e),e.length===0)return".";for(var r=e.charCodeAt(0),i=r===47,f=-1,t=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!t){f=n;break}}else t=!1;return f===-1?i?"/":".":i&&f===1?"//":e.slice(0,f)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');v(e);var i=0,f=-1,t=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var l=r.length-1,s=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(c===47){if(!t){i=n+1;break}}else s===-1&&(t=!1,s=n+1),l>=0&&(c===r.charCodeAt(l)?--l===-1&&(f=n):(l=-1,f=s))}return i===f?f=s:f===-1&&(f=e.length),e.slice(i,f)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!t){i=n+1;break}}else f===-1&&(t=!1,f=n+1);return f===-1?"":e.slice(i,f)}},extname:function(e){v(e);for(var r=-1,i=0,f=-1,t=!0,n=0,l=e.length-1;l>=0;--l){var s=e.charCodeAt(l);if(s===47){if(!t){i=l+1;break}continue}f===-1&&(t=!1,f=l+1),s===46?r===-1?r=l:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||f===-1||n===0||n===1&&r===f-1&&r===i+1?"":e.slice(r,f)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return b("/",e)},parse:function(e){v(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var i=e.charCodeAt(0),f=i===47,t;f?(r.root="/",t=1):t=0;for(var n=-1,l=0,s=-1,c=!0,u=e.length-1,a=0;u>=t;--u){if(i=e.charCodeAt(u),i===47){if(!c){l=u+1;break}continue}s===-1&&(c=!1,s=u+1),i===46?n===-1?n=u:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||s===-1||a===0||a===1&&n===s-1&&n===l+1?s!==-1&&(l===0&&f?r.base=r.name=e.slice(1,s):r.base=r.name=e.slice(l,s)):(l===0&&f?(r.name=e.slice(1,n),r.base=e.slice(1,s)):(r.name=e.slice(l,n),r.base=e.slice(l,s)),r.ext=e.slice(n,s)),l>0?r.dir=e.slice(0,l-1):f&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return g.posix=g,m=g,m}export{S as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aF as le,j as e,hA as ce,bd as ue,bn as Z,n as G,fP as ee,f9 as te,aP as re,cs as u,H as S,hB as M,M as R,v as x,hC as H,aU as V,P as p,ay as de,w as A,s as ie,aV as ne,A as me,z as fe,aH as he,r as B,g as xe,bz as pe}from"./index-C7egXf_h.js";import{T as ve}from"./html-title-vsl-TT26.js";import{u as se,C as m}from"./index.esm-DkqB0mnE.js";import{S as h,A as je,a as be,b as ge,c as ye}from"./collapse-UPIFGGD9.js";import{u as ae}from"./blocklet-C67aFvl7.js";import{S as $}from"./Switch-CE03jZ_8.js";const Re=le(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}));var K={exports:{}},O={exports:{}},z={exports:{}},J;function Te(){return J||(J=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=t;function t(d){return d==null}c.exports=s.default,c.exports.default=s.default}(z,z.exports)),z.exports}var Q;function ke(){return Q||(Q=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=E;var t=b(ce()),d=b(Te());function b(n){return n&&n.__esModule?n:{default:n}}var f=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,P=/^[-+]?[0-9]+$/;function E(n,i){(0,t.default)(n),i=i||{};var _=i.allow_leading_zeroes===!1?f:P,q=!i.hasOwnProperty("min")||(0,d.default)(i.min)||n>=i.min,l=!i.hasOwnProperty("max")||(0,d.default)(i.max)||n<=i.max,a=!i.hasOwnProperty("lt")||(0,d.default)(i.lt)||n<i.lt,C=!i.hasOwnProperty("gt")||(0,d.default)(i.gt)||n>i.gt;return _.test(n)&&q&&l&&a&&C}c.exports=s.default,c.exports.default=s.default}(O,O.exports)),O.exports}var X;function we(){return X||(X=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=b;var t=d(ke());function d(f){return f&&f.__esModule?f:{default:f}}function b(f){return(0,t.default)(f,{allow_leading_zeroes:!1,min:0,max:65535})}c.exports=s.default,c.exports.default=s.default}(K,K.exports)),K.exports}var Se=we();const Ee=ue(Se),U={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:"",companyName:"",companyLink:"",companyAddress:"",supportEmail:""};function Ce(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...U},s?.settings?.notification?.email||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(U))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(r,g,w=!0)=>{try{const{blocklet:y}=await c.configNotification({input:{did:f,notification:JSON.stringify({email:r})}}),oe=Object.assign({...U},y?.settings?.notification?.email||{});q(oe),w&&S.success(t("oauth.saveSuccess"))}catch(y){if(w)S.error(y.message||t("oauth.saveFailed"));else throw y}}),N=u(async(r,g,w)=>{try{i.isDirty&&await C(r,g,!1),await c.sendEmail({input:{did:f,receiver:w,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification",attachments:[{type:"link",data:{url:"https://community.arcblock.io",title:"Community",image:"https://community.arcblock.io/.well-known/service/blocklet/logo-rect-dark",utm:{campaign:"test-campaign"}}}],utm:{content:"test-email-button"}})}}),S.success(t("notification.email.testSuccess"))}catch(y){S.error(y.message||t("notification.email.testfailed"))}}),W=u((r,g)=>{l.testReceiver=localStorage.getItem("test-receiver")||"",l.testReceiverError="",d.open({title:t("notification.email.testSendEmail"),content:()=>e.jsx(R,{sx:{width:"300px"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.email.inputTestReceiver"),value:l.testReceiver,onChange:w=>{l.testReceiver=w.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(w){const y=l.testReceiver?.trim();if(!y){l.testReceiverError=t("notification.email.receiverRequired");return}if(!M(y)){l.testReceiverError=t("notification.email.receiverInvalid");return}l.testReceiverError="",await N(r,g,y),w()}})}),F=u(r=>{const g=r?.trim();return g?M(g)?!0:t("notification.email.fromInvalid"):t("notification.email.fromRequired")}),L=u(r=>{const g=r?.trim();return g?H(g,{require_host:!1,protocols:[]})?!0:t("notification.email.hostInvalid"):t("notification.email.hostRequired")}),o=u(r=>r?Ee(r)?!0:t("notification.email.portInvalid"):t("notification.email.portRequired")),T=u(r=>r?.trim()?!0:t("notification.email.userRequired")),v=u(r=>r?.trim()?!0:t("notification.email.passwordRequired")),k=u(r=>r?.trim()&&!H(r,{protocols:["http","https"],require_protocol:!0})?t("notification.email.linkInvalid"):!0),I=u(r=>r?.trim()&&!M(r)?t("notification.email.emailInvalid"):!0),j=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(Pe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.email.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:r})=>e.jsx(V,{control:e.jsx($,{checked:r.value,...r})})})}),e.jsx(h,{title:t("notification.email.from"),children:e.jsx(m,{name:"from",control:n,rules:{validate:a?F:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,label:t("notification.email.from"),error:!!i.errors[r.name],helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.host"),children:e.jsx(m,{name:"host",control:n,rules:{validate:a?L:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.host"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.port"),children:e.jsx(m,{name:"port",control:n,rules:{validate:a?o:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"number",error:!!i.errors[r.name],label:t("notification.email.port"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.user"),children:e.jsx(m,{name:"user",control:n,rules:{validate:a?T:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.user"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.password"),children:e.jsx(m,{name:"password",control:n,rules:{validate:a?v:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"password",error:!!i.errors[r.name],label:t("notification.email.password"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.secure"),children:e.jsx(m,{name:"secure",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(V,{control:e.jsx($,{checked:r.value,...r,disabled:!a})})})})}),e.jsxs(je,{children:[e.jsxs(be,{expandIcon:e.jsx(ge,{fontSize:"small"}),"aria-controls":"panel1-content",id:"panel1-header",children:[t("notification.email.signature"),e.jsx(de,{title:t("notification.email.signatureTooltip"),children:e.jsx(Re,{fontSize:"small",sx:{ml:1,cursor:"help"}})})]}),e.jsxs(ye,{children:[e.jsx(h,{title:t("notification.email.companyName"),children:e.jsx(m,{name:"companyName",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyName"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyLink"),children:e.jsx(m,{name:"companyLink",control:n,rules:{validate:a?k:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyLink"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyAddress"),children:e.jsx(m,{name:"companyAddress",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyAddress"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.supportEmail"),children:e.jsx(m,{name:"supportEmail",control:n,rules:{validate:a?I:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",type:"email",error:!!i.errors[r.name],label:t("notification.email.supportEmail"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})})]})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(A,{variant:"outlined",color:"warning",onClick:E(W),disabled:!a,children:t("oauth.runTest")}),e.jsx(A,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const Pe=ie(ne)``,D={enabled:!1,endpoint:"",did:void 0,pushPath:void 0};function _e(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...D},s?.settings?.notification?.pushKit||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(D))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(o,T,v=!0)=>{try{const{blocklet:k}=await c.configNotification({input:{did:f,notification:JSON.stringify({pushKit:o})}}),I=Object.assign({...D},k?.settings?.notification?.pushKit||{});q(I),v&&S.success(t("oauth.saveSuccess"))}catch(k){if(v)S.error(k.message||t("oauth.saveFailed"));else throw k}}),N=u(async(o,T)=>{try{i.isDirty&&await C(o,T,!1);const v=(s?.configs||[]).find(j=>j.key==="BLOCKLET_APP_URL")?.value,k=me(fe(v,he.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),{v:s?.meta?.version,t:new Date(s?.updatedAt||0).getTime()}),I={type:"passthrough",passthroughType:"messageStatus",data:{message:{title:"Test push-kit notification",body:"This is message from push-kit config test",sender:{did:s?.appDid,fullName:s?.meta?.title,avatar:k}}}};await c.sendPush({input:{did:f,receiver:l.testReceiver,notification:JSON.stringify(I)}}),S.success(t("notification.pushKit.testSuccess"))}catch(v){S.error(v.message||t("notification.pushKit.testfailed"))}}),W=u((o,T)=>{l.testReceiverError="",d.open({title:t("notification.pushKit.testSend"),content:()=>e.jsx(R,{sx:{width:"450px",maxWidth:"100%"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.pushKit.inputTestReceiver"),value:l.testReceiver,onChange:v=>{l.testReceiver=v.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(v){if(!l.testReceiver?.trim()){l.testReceiverError=t("notification.pushKit.receiverRequired");return}l.testReceiverError="",await N(o,T),v()}})}),F=u(o=>{const T=o?.trim();return T?H(T)?!0:t("notification.pushKit.endpointInvalid"):t("notification.pushKit.endpointRequired")}),L=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(qe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.pushKit.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:o})=>e.jsx(V,{control:e.jsx($,{checked:o.value,...o})})})}),e.jsx(h,{title:t("notification.pushKit.endpoint"),children:e.jsx(m,{name:"endpoint",control:n,rules:{validate:a?F:L},render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",required:!0,label:t("notification.pushKit.endpoint"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})}),e.jsxs(h,{title:t("notification.pushKit.customOptions"),children:[e.jsx(m,{name:"did",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.did"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})}),e.jsx(m,{name:"pushPath",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.pushPath"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(A,{variant:"outlined",color:"warning",onClick:E(W),disabled:!a,children:t("oauth.runTest")}),e.jsx(A,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const qe=ie(ne)``,Y=[{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Email"}),value:"email"},{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Push Kit"}),value:"pushKit"}];function We(){const[c,s]=B.useState(Y[0].value),{locale:t}=B.useContext(xe),d=pe(()=>({email:e.jsx(Ce,{}),pushKit:e.jsx(_e,{})}),[t]),b=B.useMemo(()=>({padding:"10px 0"}),[]);return e.jsxs(R,{children:[e.jsx(ve,{tabs:Y,current:c,onChange:s}),e.jsx(R,{style:b,children:d[c]})]})}export{We as B};
|
|
1
|
+
import{aF as le,j as e,hA as ce,bd as ue,bn as Z,n as G,fP as ee,f9 as te,aP as re,cs as u,H as S,hB as M,M as R,v as x,hC as H,aU as V,P as p,ay as de,w as A,s as ie,aV as ne,A as me,z as fe,aH as he,r as B,g as xe,bz as pe}from"./index-DJuZ9nhg.js";import{T as ve}from"./html-title-3CG5UyIt.js";import{u as se,C as m}from"./index.esm-CUQzywxe.js";import{S as h,A as je,a as be,b as ge,c as ye}from"./collapse-DASgp2d0.js";import{u as ae}from"./blocklet-qrkDxr_e.js";import{S as $}from"./Switch-DVmHUng5.js";const Re=le(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}));var K={exports:{}},O={exports:{}},z={exports:{}},J;function Te(){return J||(J=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=t;function t(d){return d==null}c.exports=s.default,c.exports.default=s.default}(z,z.exports)),z.exports}var Q;function ke(){return Q||(Q=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=E;var t=b(ce()),d=b(Te());function b(n){return n&&n.__esModule?n:{default:n}}var f=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,P=/^[-+]?[0-9]+$/;function E(n,i){(0,t.default)(n),i=i||{};var _=i.allow_leading_zeroes===!1?f:P,q=!i.hasOwnProperty("min")||(0,d.default)(i.min)||n>=i.min,l=!i.hasOwnProperty("max")||(0,d.default)(i.max)||n<=i.max,a=!i.hasOwnProperty("lt")||(0,d.default)(i.lt)||n<i.lt,C=!i.hasOwnProperty("gt")||(0,d.default)(i.gt)||n>i.gt;return _.test(n)&&q&&l&&a&&C}c.exports=s.default,c.exports.default=s.default}(O,O.exports)),O.exports}var X;function we(){return X||(X=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=b;var t=d(ke());function d(f){return f&&f.__esModule?f:{default:f}}function b(f){return(0,t.default)(f,{allow_leading_zeroes:!1,min:0,max:65535})}c.exports=s.default,c.exports.default=s.default}(K,K.exports)),K.exports}var Se=we();const Ee=ue(Se),U={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:"",companyName:"",companyLink:"",companyAddress:"",supportEmail:""};function Ce(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...U},s?.settings?.notification?.email||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(U))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(r,g,w=!0)=>{try{const{blocklet:y}=await c.configNotification({input:{did:f,notification:JSON.stringify({email:r})}}),oe=Object.assign({...U},y?.settings?.notification?.email||{});q(oe),w&&S.success(t("oauth.saveSuccess"))}catch(y){if(w)S.error(y.message||t("oauth.saveFailed"));else throw y}}),N=u(async(r,g,w)=>{try{i.isDirty&&await C(r,g,!1),await c.sendEmail({input:{did:f,receiver:w,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification",attachments:[{type:"link",data:{url:"https://community.arcblock.io",title:"Community",image:"https://community.arcblock.io/.well-known/service/blocklet/logo-rect-dark",utm:{campaign:"test-campaign"}}}],utm:{content:"test-email-button"}})}}),S.success(t("notification.email.testSuccess"))}catch(y){S.error(y.message||t("notification.email.testfailed"))}}),W=u((r,g)=>{l.testReceiver=localStorage.getItem("test-receiver")||"",l.testReceiverError="",d.open({title:t("notification.email.testSendEmail"),content:()=>e.jsx(R,{sx:{width:"300px"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.email.inputTestReceiver"),value:l.testReceiver,onChange:w=>{l.testReceiver=w.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(w){const y=l.testReceiver?.trim();if(!y){l.testReceiverError=t("notification.email.receiverRequired");return}if(!M(y)){l.testReceiverError=t("notification.email.receiverInvalid");return}l.testReceiverError="",await N(r,g,y),w()}})}),F=u(r=>{const g=r?.trim();return g?M(g)?!0:t("notification.email.fromInvalid"):t("notification.email.fromRequired")}),L=u(r=>{const g=r?.trim();return g?H(g,{require_host:!1,protocols:[]})?!0:t("notification.email.hostInvalid"):t("notification.email.hostRequired")}),o=u(r=>r?Ee(r)?!0:t("notification.email.portInvalid"):t("notification.email.portRequired")),T=u(r=>r?.trim()?!0:t("notification.email.userRequired")),v=u(r=>r?.trim()?!0:t("notification.email.passwordRequired")),k=u(r=>r?.trim()&&!H(r,{protocols:["http","https"],require_protocol:!0})?t("notification.email.linkInvalid"):!0),I=u(r=>r?.trim()&&!M(r)?t("notification.email.emailInvalid"):!0),j=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(Pe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.email.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:r})=>e.jsx(V,{control:e.jsx($,{checked:r.value,...r})})})}),e.jsx(h,{title:t("notification.email.from"),children:e.jsx(m,{name:"from",control:n,rules:{validate:a?F:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,label:t("notification.email.from"),error:!!i.errors[r.name],helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.host"),children:e.jsx(m,{name:"host",control:n,rules:{validate:a?L:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.host"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.port"),children:e.jsx(m,{name:"port",control:n,rules:{validate:a?o:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"number",error:!!i.errors[r.name],label:t("notification.email.port"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.user"),children:e.jsx(m,{name:"user",control:n,rules:{validate:a?T:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.user"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.password"),children:e.jsx(m,{name:"password",control:n,rules:{validate:a?v:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"password",error:!!i.errors[r.name],label:t("notification.email.password"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.secure"),children:e.jsx(m,{name:"secure",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(V,{control:e.jsx($,{checked:r.value,...r,disabled:!a})})})})}),e.jsxs(je,{children:[e.jsxs(be,{expandIcon:e.jsx(ge,{fontSize:"small"}),"aria-controls":"panel1-content",id:"panel1-header",children:[t("notification.email.signature"),e.jsx(de,{title:t("notification.email.signatureTooltip"),children:e.jsx(Re,{fontSize:"small",sx:{ml:1,cursor:"help"}})})]}),e.jsxs(ye,{children:[e.jsx(h,{title:t("notification.email.companyName"),children:e.jsx(m,{name:"companyName",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyName"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyLink"),children:e.jsx(m,{name:"companyLink",control:n,rules:{validate:a?k:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyLink"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyAddress"),children:e.jsx(m,{name:"companyAddress",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyAddress"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.supportEmail"),children:e.jsx(m,{name:"supportEmail",control:n,rules:{validate:a?I:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",type:"email",error:!!i.errors[r.name],label:t("notification.email.supportEmail"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})})]})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(A,{variant:"outlined",color:"warning",onClick:E(W),disabled:!a,children:t("oauth.runTest")}),e.jsx(A,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const Pe=ie(ne)``,D={enabled:!1,endpoint:"",did:void 0,pushPath:void 0};function _e(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...D},s?.settings?.notification?.pushKit||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(D))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(o,T,v=!0)=>{try{const{blocklet:k}=await c.configNotification({input:{did:f,notification:JSON.stringify({pushKit:o})}}),I=Object.assign({...D},k?.settings?.notification?.pushKit||{});q(I),v&&S.success(t("oauth.saveSuccess"))}catch(k){if(v)S.error(k.message||t("oauth.saveFailed"));else throw k}}),N=u(async(o,T)=>{try{i.isDirty&&await C(o,T,!1);const v=(s?.configs||[]).find(j=>j.key==="BLOCKLET_APP_URL")?.value,k=me(fe(v,he.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),{v:s?.meta?.version,t:new Date(s?.updatedAt||0).getTime()}),I={type:"passthrough",passthroughType:"messageStatus",data:{message:{title:"Test push-kit notification",body:"This is message from push-kit config test",sender:{did:s?.appDid,fullName:s?.meta?.title,avatar:k}}}};await c.sendPush({input:{did:f,receiver:l.testReceiver,notification:JSON.stringify(I)}}),S.success(t("notification.pushKit.testSuccess"))}catch(v){S.error(v.message||t("notification.pushKit.testfailed"))}}),W=u((o,T)=>{l.testReceiverError="",d.open({title:t("notification.pushKit.testSend"),content:()=>e.jsx(R,{sx:{width:"450px",maxWidth:"100%"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.pushKit.inputTestReceiver"),value:l.testReceiver,onChange:v=>{l.testReceiver=v.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(v){if(!l.testReceiver?.trim()){l.testReceiverError=t("notification.pushKit.receiverRequired");return}l.testReceiverError="",await N(o,T),v()}})}),F=u(o=>{const T=o?.trim();return T?H(T)?!0:t("notification.pushKit.endpointInvalid"):t("notification.pushKit.endpointRequired")}),L=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(qe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.pushKit.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:o})=>e.jsx(V,{control:e.jsx($,{checked:o.value,...o})})})}),e.jsx(h,{title:t("notification.pushKit.endpoint"),children:e.jsx(m,{name:"endpoint",control:n,rules:{validate:a?F:L},render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",required:!0,label:t("notification.pushKit.endpoint"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})}),e.jsxs(h,{title:t("notification.pushKit.customOptions"),children:[e.jsx(m,{name:"did",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.did"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})}),e.jsx(m,{name:"pushPath",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.pushPath"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(A,{variant:"outlined",color:"warning",onClick:E(W),disabled:!a,children:t("oauth.runTest")}),e.jsx(A,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const qe=ie(ne)``,Y=[{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Email"}),value:"email"},{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Push Kit"}),value:"pushKit"}];function We(){const[c,s]=B.useState(Y[0].value),{locale:t}=B.useContext(xe),d=pe(()=>({email:e.jsx(Ce,{}),pushKit:e.jsx(_e,{})}),[t]),b=B.useMemo(()=>({padding:"10px 0"}),[]);return e.jsxs(R,{children:[e.jsx(ve,{tabs:Y,current:c,onChange:s}),e.jsx(R,{style:b,children:d[c]})]})}export{We as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-ZGV5ibHs.js","./index-BojVbZw0.js","./index-CLPR7ihj.js","./metric-DLT0xGvO.js","./click-to-copy-Pl4hIypx.js","./index-B0iEGhMY.js","./useLocalStorage-rIF260NZ.js","./index-BdNOQK8-.js","./FilterList-DOx5uN4S.js","./CSSTransition-r6UVh1d4.js","./emotion-cache.browser.esm-DZEVfVIs.js","./index-DQ7-a_Yl.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./depsEqual-DfTLPdgg.js","./index-BuQjZmfi.js","./TableSearch-x3y0kzP6.js","./Search-DUF2osvO.js","./Clear-Dm80eYkN.js","./MoreVert-Dt9p1lZE.js","./status-DD9VFS3g.js","./actions-Bkf_XgjE.js","./url-evaluation-PoqA_faF.js","./get-safe-url-CumOcp7c.js","./ButtonGroup-0m6xN_hM.js","./getValidReactChildren-BKEsPaXS.js","./permission-DNpvmcDO.js","./install-from-url-D1dFcWCR.js","./without-wallet-Cifhravr.js","./index-DD8ntqdX.js","./cloneDeep-LYTwa-JV.js","./Autocomplete-BQrCutXD.js","./ListSubheader-DBKVdByu.js","./ListItemButton-ClnowAwh.js","./Stepper-CTMouRdp.js","./Launch-CbU-zIFy.js","./Add-C8Lm-hkR.js","./index-0Dj9yC88.js","./schema-KXHYgx_0.js","./index-DmvJyGWn.js","./toLower-CTEP5nFX.js","./index-CoZAeEqA.js","./url-join-C-ehcRI1.js","./wait-container-DcvUvcI3.js","./use-mobile-GbhQCYjE.js","./DeleteOutline-DBp8IxLy.js","./spaces-C9qYfO4e.js","./api-CUhmsggO.js","./index-DX626HNP.js","./item-TSYlBggO.js","./index-BOjR9vg6.js","./KeyboardArrowDown-Vjm82N0l.js","./ChevronLeft-vJUfXHLK.js","./ChevronRight-CBhWmXPb.js","./blocklet-qrkDxr_e.js","./Verified-RZDxPBl3.js","./VerifiedUser-C5GKL4NI.js","./Done-C3L_U1d0.js","./delete-confirm-B-r93j03.js","./item-G0iZE90Q.css","./engine-CXYcW8tV.js","./ArrowDropDown-D3yioOpG.js","./Breadcrumbs-CjoKrRSd.js","./index-0slfmis0.js","./html-title-3CG5UyIt.js","./index.esm-CUQzywxe.js","./switch-control-C6Td5SBH.js","./Switch-DVmHUng5.js","./Link-C1xLiB79.js","./logo-BKA11TRi.js","./Refresh-DibDVagJ.js","./LoadingButton-Cyu7epth.js","./rotate-session-key-CeXBuq4a.js","./visuallyHidden-Dan1xhjv.js","./is-path-prefix-equal-CiLM8lGB.js","./Edit-T8wWfQhn.js","./CallMerge-Dw8aSOXl.js","./CardContent-Dn4qVn0M.js","./index-DW2RdjBK.js","./download-CehHaiXA.js","./index-DUhy4qU3.js","./audit-logs-BwQjwQRC.js","./index-CsTazi5p.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-DfHvwMX2.js","./shorten-label-DZAvaXjZ.js","./team-CMHYwDgb.js","./index-apvSg0Un.js","./ViewList-BIasqeLT.js","./use-mobile-v5_YeznP.js","./client-CPdeHHs9.js","./Google-DT749Dih.js","./AdapterDayjs-CeksOrhl.js","./useThemeProps-CIXT-uHm.js","./ErrorOutline-DDgW0IIs.js","./index-B27Mzk9d.js","./sdk-DfZRIh46.js","./actions-BTo9FCWY.js","./index-CyD53ctP.js","./edit.svg-BLR5epzr.js","./list-header-CSkrCQnJ.js","./chain-CA7TjYnf.js","./ToggleButtonGroup-CDxsnBYJ.js","./lock.svg-f30K2Q3n.js","./index-BPsgcLTY.js","./index-ZgkIHsf0.css","./useAsyncRetry-C1G4OCyZ.js","./useAsync-C9kvrJTF.js","./detail-BD2IFxMv.js","./index-C-p8VUs-.js","./index-Bb2FNNL0.js","./invitation-DFyK6TJC.js","./wrap-locale-CTx-eXFm.js","./index-3bOYCU_O.js","./index-CtVrHc87.js","./index-CS7Cpww7.js","./agreement-V0j80REH.js","./index-B2EpuvFX.js","./index-CEfdMhRs.js","./index-w74fQNNd.js","./traffic-z7f03zNE.js","./iframe-aJ3sDUVb.js","./index-DBii9-f-.js","./base-chart-C5PdAmLw.js","./index-CLAxAmz7.js","./index-DRYJ0xIl.js","./memory-C-FNQnOM.js","./index-BsMctdy8.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function _mergeNamespaces(Be,Me){for(var qe=0;qe<Me.length;qe++){const He=Me[qe];if(typeof He!="string"&&!Array.isArray(He)){for(const Ge in He)if(Ge!=="default"&&!(Ge in Be)){const Je=Object.getOwnPropertyDescriptor(He,Ge);Je&&Object.defineProperty(Be,Ge,Je.get?Je:{enumerable:!0,get:()=>He[Ge]})}}}return Object.freeze(Object.defineProperty(Be,Symbol.toStringTag,{value:"Module"}))}(function(){const Me=document.createElement("link").relList;if(Me&&Me.supports&&Me.supports("modulepreload"))return;for(const Ge of document.querySelectorAll('link[rel="modulepreload"]'))He(Ge);new MutationObserver(Ge=>{for(const Je of Ge)if(Je.type==="childList")for(const Ye of Je.addedNodes)Ye.tagName==="LINK"&&Ye.rel==="modulepreload"&&He(Ye)}).observe(document,{childList:!0,subtree:!0});function qe(Ge){const Je={};return Ge.integrity&&(Je.integrity=Ge.integrity),Ge.referrerPolicy&&(Je.referrerPolicy=Ge.referrerPolicy),Ge.crossOrigin==="use-credentials"?Je.credentials="include":Ge.crossOrigin==="anonymous"?Je.credentials="omit":Je.credentials="same-origin",Je}function He(Ge){if(Ge.ep)return;Ge.ep=!0;const Je=qe(Ge);fetch(Ge.href,Je)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(Be){return Be&&Be.__esModule&&Object.prototype.hasOwnProperty.call(Be,"default")?Be.default:Be}function getAugmentedNamespace(Be){if(Object.prototype.hasOwnProperty.call(Be,"__esModule"))return Be;var Me=Be.default;if(typeof Me=="function"){var qe=function He(){var Ge=!1;try{Ge=this instanceof He}catch{}return Ge?Reflect.construct(Me,arguments,this.constructor):Me.apply(this,arguments)};qe.prototype=Me.prototype}else qe={};return Object.defineProperty(qe,"__esModule",{value:!0}),Object.keys(Be).forEach(function(He){var Ge=Object.getOwnPropertyDescriptor(Be,He);Object.defineProperty(qe,He,Ge.get?Ge:{enumerable:!0,get:function(){return Be[He]}})}),qe}var jsxRuntime={exports:{}},reactJsxRuntime_production={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
@@ -2900,4 +2900,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2900
2900
|
padding-top: 16px;
|
|
2901
2901
|
${Be=>Be.scrollable?"":"overflow: hidden"};
|
|
2902
2902
|
}
|
|
2903
|
-
`;function GlobalSubscriber(){const{t:Be}=T$7(),{session:Me}=useSessionContext$1(),{info:qe,refresh:He}=useNodeContext();return useSubscription(constantExports.TeamEvents.userUpdated,({teamDid:Ge,user:Je})=>{Ge===qe.did&&Je&&!Je.approved&&Me&&Me.user&&Me.user.did===Je.did&&(H$7.warning(Be("session.blockAccess"),{autoHideDuration:10*1e3}),Me.logout())}),useSubscription(constantExports$1.EVENTS.NOTIFICATION_CREATE,Ge=>{Ge.entityType==="node"&&He({silent:!0})}),useSubscription(constantExports$1.EVENTS.NODE_UPDATED,()=>{He({silent:!0})}),null}const authorize=({user:Be,launchType:Me,nftId:qe})=>{if(!Be)return!1;if(Me==="serverless"){if(!qe)throw new Error("nftId is required");return Be?.controller?.nftId===qe}return(Be.permissions||[]).includes("mutate_blocklets")},isServerlessBlockletInstalled=Be=>Be.isGetBlocklet&&Be.runtimeBlocklet?.controller?.consumedAt,getRestoredAccessUrl=async Be=>{const Me=getBlockletUrls({blocklet:Be});let qe="";return qe=Me.find(He=>{try{const{hostname:Ge}=new URL(He);return urlEvaluationExports.isSlpDomain(Ge)}catch(Ge){return console.error(Ge),!1}}),qe||(qe=await getAccessibleUrl(Me)),qe},LaunchBlockletContext=reactExports.createContext({}),{Provider:Provider$1,Consumer:Consumer$1}=LaunchBlockletContext;function LaunchBlockletProvider({children:Be}){const{session:Me}=useSessionContext$1(),{t:qe}=T$7(),{api:He,info:Ge}=useNodeContext(),[Je]=useSearchParams(),Ye=Je.get("launchType"),Qe=Je.get("fromLauncher"),Ze=Je.get("blocklet_meta_url")||"",nt=Je.get("nftId")||"",tt=Je.get("from")||"",rt=Je.get("launcherSessionId")||"",at=Je.get("launcherUrl")||"",ot=tt==="url",lt=tt==="empty",ut=ot||lt?"":new URL(Ze).origin,[dt,ct]=reactExports.useState({meta:null,appDid:Je.get("appDid")||null,sessionId:Je.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),ft=(mt,bt)=>ct(Et=>({...Et,appDid:mt,sessionId:bt})),ht=authorize({user:Me.user,launchType:Ye,nftId:nt}),[yt,gt]=reactExports.useState(null),[Ct,St]=reactExports.useState(!0),_t=reactExports.useMemo(()=>Ge?getServerUrl(Ge):"",[Ge]),Bt=async mt=>{if(!mt)throw new Error("appDid should not be empty");const{blocklet:bt}=await He.getBlocklet({input:{did:mt,attachConfig:!1}});if(!bt)return null;const Et=constantExports.BlockletStatus[bt.status],Rt=!!nt,Tt=Et<constantExports.BlockletStatus.installed,At=Et===constantExports.BlockletStatus.installed,kt=Et===constantExports.BlockletStatus.running;return ct(wt=>({...wt,isInstalled:At,isRunning:kt,isExternal:Rt,isInstalling:Tt})),{isInstalled:At,isRunning:kt,isExternal:Rt,isInstalling:Tt}},Dt=async()=>{if(St(!0),lt){ct(mt=>({...mt,meta:{title:Je.get("title")||"",description:Je.get("description")||""}})),St(!1);return}try{if(!Ze&&!lt)throw new Error(qe("common.invalidParam"));const[{meta:mt,isFree:bt,registryUrl:Et},{launcherSession:Rt,error:Tt}]=await Promise.all([He.getBlockletMetaFromUrl({input:{url:Ze,checkPrice:!0}}),rt?He.getLauncherSession({input:{launcherSessionId:rt,launcherUrl:at}}):Promise.resolve({})]);if(rt&&!Rt)throw new Error(`Launch session invalid: ${Tt}`);if(!mt)throw new Error(qe("LaunchBlockletBlocklet.error.loadMetaFailed"));let At={};ht&&dt.appDid&&(At=await Bt(dt.appDid)),ct(kt=>({...kt,...At,meta:mt,isFree:bt,registryUrl:Et,launcherSession:Rt}))}catch(mt){console.error(mt),gt(mt.message)}finally{St(!1)}};reactExports.useEffect(()=>{Me?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Me?.user?.controller?.nftId!==nt&&Me.logout(),Dt()},[]),reactExports.useEffect(()=>{Ct||!dt.meta||(ht?dt.appDid&&Bt(dt.appDid).catch(mt=>{H$7.error(mt.message)}):(ct(mt=>({...mt,isInstalled:!1,isRunning:!1,isExternal:!1})),gt(null)))},[ht]);const Ot={meta:dt.meta,isFree:dt.isFree,appDid:dt.appDid,sessionId:dt.sessionId,isInstalling:dt.isInstalling,isInstalled:dt.isInstalled,isExternal:dt.isExternal,isRunning:dt.isRunning,serverUrl:_t,storeUrl:dt.registryUrl||ut,blockletMetaUrl:Ze,fromLauncher:Qe,loading:Ct,error:yt,api:He,getBlocklet:Bt,setAppDid:ft,launcherUrl:at,launcherSession:dt.launcherSession,launcherSessionId:rt,launchType:Ye};return jsxRuntimeExports.jsx(Provider$1,{value:Ot,children:Be})}function useLaunchBlockletContext(){return reactExports.useContext(LaunchBlockletContext)}var useAsyncExports=requireUseAsync();const useAsync=getDefaultExportFromCjs$1(useAsyncExports);function useQuery(){return new URLSearchParams(useLocation().search)}const BlockletAppContext=reactExports.createContext(),{Provider,Consumer}=BlockletAppContext;function BlockletAppProvider({children:Be}){const qe=useQuery().get("blocklet_meta_url"),He=useAsync(async()=>{const{data:Je}=await axios.get(qe);return Je});if(He.loading)return jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})});const Ge={meta:He.value,error:He.error};return jsxRuntimeExports.jsx(Provider,{value:Ge,children:Be})}BlockletAppProvider.propTypes={children:o$i.any.isRequired};function useBlockletAppContext(){return reactExports.useContext(BlockletAppContext)}const Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./index-CgJV4oal.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),BlockletList=reactExports.lazy(()=>__vitePreload(()=>import("./index-ClSpNPOh.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,2,31,32,33,34,35,36,37,38]),import.meta.url)),BlockletRestore=reactExports.lazy(()=>__vitePreload(()=>import("./index-CFw_f03A.js"),__vite__mapDeps([39,40,41,42,43,44,23,6,35,45,46,47,19,15]),import.meta.url)),BlockletStore=reactExports.lazy(()=>__vitePreload(()=>import("./index-Dxww66F8.js"),__vite__mapDeps([48,6,49,50,51,52,53,17,15,54,31,32,55,56,36,35,57,45,58,4,19,23,24,25,59,60,26,61,62]),import.meta.url)),Settings=reactExports.lazy(()=>__vitePreload(()=>import("./index-BGSPRFxN.js"),__vite__mapDeps([63,64,61,65,66,67,26,7,8,9,10,11,12,13,14,15,16,17,18,19,68,22,58,4,2,69,6,70,71,72,73,36,20,74,53,75,76,77]),import.meta.url)),LogPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-B28OSLEk.js"),__vite__mapDeps([78,79,24,25,6]),import.meta.url)),TeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-C31TKs2j.js"),__vite__mapDeps([80,64,81,15,16,17,18,6,82,83,84,85,86,87,54,22,88,36,89,7,8,9,10,11,12,13,14,19,90,91,37,24,25,65,92,30,31,32,26,4,93,94,73,2,55,45,95,96,97,50,44,98,99,100,101,102,103,104,75,105,106,1,58,107,108]),import.meta.url)),BlockletDetail=reactExports.lazy(()=>__vitePreload(()=>import("./detail-BR9P1Yx6.js"),__vite__mapDeps([109,64,20,21,6,19,22,23,24,25,26,54,110,87,62]),import.meta.url)),EULAPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-D9p6b5Uq.js"),[],import.meta.url)),Notifications=reactExports.lazy(()=>__vitePreload(()=>import("./index-D_jr-SDL.js"),[],import.meta.url)),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-oHwXuk_n.js"),__vite__mapDeps([111,112,110,96,10,97,113,23]),import.meta.url)),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-GerkFFyW.js"),__vite__mapDeps([114,89,57,96,10,113,23,34]),import.meta.url)),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-CRZ7_NI2.js"),__vite__mapDeps([115,113,23]),import.meta.url)),BlockletLauncher=reactExports.lazy(()=>__vitePreload(()=>import("./index-BzM5LY8-.js"),__vite__mapDeps([116,41,42,43,44,107,108,117,82,83,84,23,28,29,47,38,6,69,60]),import.meta.url)),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-DfEAejxd.js"),__vite__mapDeps([118,110]),import.meta.url)),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./index-CHmcCDqZ.js"),__vite__mapDeps([119,112,110,96,10,97,113]),import.meta.url)),Console=reactExports.lazy(()=>__vitePreload(()=>import("./index-Cwp0FKW3.js"),[],import.meta.url)),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-BOBzLa1k.js"),__vite__mapDeps([120,64,121,122,52,53,123,13,124,125,93,94,9,73,7,8,10,11,12,14,15,16,17,18,19,126,127,77,6,103,25]),import.meta.url)),GenKeyPair=reactExports.lazy(()=>__vitePreload(()=>import("./index-DfPrMmoZ.js"),__vite__mapDeps([128,110]),import.meta.url));function useSharedContext(){const Be=useNodeContext(),{session:Me}=useSessionContext$1(),{wallet:qe}=d$e(),He=Me.user&&Me.user.did;return reactExports.useEffect(()=>{const Ge=getWsClient();return He?Ge.connect():Ge.isConnected()&&Ge.disconnect(),()=>{Ge.isConnected()&&Ge.disconnect()}},[He]),reactExports.useEffect(()=>{if(qe)return()=>{};const Ge=()=>{document.visibilityState==="visible"&&Me.refresh()};return document.addEventListener("visibilitychange",Ge),()=>{document.removeEventListener("visibilitychange",Ge)}},[]),{node:Be,session:Me}}function ProtectedApp(){const{t:Be}=T$7(),{node:Me,session:qe}=useSharedContext(),He=useLocation();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${He.pathname}${He.search}`)},[He]),reactExports.useEffect(()=>{qe?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&qe.logout()},[qe?.user?.role]);const Ge=jsxRuntimeExports.jsx(CircularProgress,{});if(Me.loading||qe.loading)return jsxRuntimeExports.jsx(o$g,{children:Ge});if(!Me.info.initialized)return getAuthMethodExports.getServerAuthMethod(Me.info)==="nft"?jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"verify-owner"}):jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(NodeConnectOwner,{})});if(Me.info.upgradeSessionId)return jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(MaintainProgress,{})});if(!qe.user)return jsxRuntimeExports.jsx(NodeLogin,{loadingEle:Ge});const Je=jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(BlockletsProvider,{children:jsxRuntimeExports.jsxs(NotificationProvider,{children:[jsxRuntimeExports.jsx(Health,{}),jsxRuntimeExports.jsx(CheckNodeStatus,{}),jsxRuntimeExports.jsx(GlobalSubscriber,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Je,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.blocklets"),children:jsxRuntimeExports.jsx(BlockletList,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/:did/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Blocklets",children:jsxRuntimeExports.jsx(BlockletDetail,{})})}),jsxRuntimeExports.jsx(Route,{path:"/settings/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.setting"),children:jsxRuntimeExports.jsx(Settings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/eula",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("setup.steps.eula"),children:jsxRuntimeExports.jsx(EULAPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/store",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.store"),children:jsxRuntimeExports.jsx(BlockletStore,{})})}),jsxRuntimeExports.jsx(Route,{path:"/console",element:jsxRuntimeExports.jsx(DashboardRoute,{title:`GraphQL ${Be("common.console")}`,scrollable:!1,fullWidth:!0,children:jsxRuntimeExports.jsx(Console,{})})}),jsxRuntimeExports.jsx(Route,{path:"/notifications",element:jsxRuntimeExports.jsx(DashboardRoute,{title:Be("common.notifications"),children:jsxRuntimeExports.jsx(Notifications,{})})}),jsxRuntimeExports.jsx(Route,{path:"/team/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.team"),children:jsxRuntimeExports.jsx(TeamPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/logs/:name?",element:jsxRuntimeExports.jsx(DashboardRoute,{scrollable:!1,fullWidth:!0,title:Be("common.logs"),children:jsxRuntimeExports.jsx(LogPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/analytics/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.analytics"),children:jsxRuntimeExports.jsx(AnalyticsPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/dashboard",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/team",element:jsxRuntimeExports.jsx(Navigate,{to:"/team/members",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/analytics",element:jsxRuntimeExports.jsx(Navigate,{to:"/analytics/traffic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/router",element:jsxRuntimeExports.jsx(Navigate,{to:"/router/rules",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/settings",element:jsxRuntimeExports.jsx(Navigate,{to:"/settings/basic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace",element:jsxRuntimeExports.jsx(Navigate,{to:"/store",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace/:did",element:jsxRuntimeExports.jsx(Navigate,{to:"/store/:did",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})]})})}function UnprotectedWrapper({children:Be}){const{node:Me,session:qe}=useSharedContext();return Me.loading||!qe.initialized&&qe.loading?jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):Me.info.upgradeSessionId?jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(MaintainProgress,{})}):Be}function App(){const{changeLocale:Be}=T$7(),Me=useQuery();reactExports.useEffect(()=>{const He=Me.get("locale");He&&["zh","en"].includes(He)&&Be(He)},[]);const qe=jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:qe,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(IssuePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LostPassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(ExchangePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:"/accept-server",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"accept-server"})})}),jsxRuntimeExports.jsx(Route,{path:"/gen-key-pair/",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(GenKeyPair,{})})}),jsxRuntimeExports.jsx(Route,{path:"/launch-blocklet/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LaunchBlockletProvider,{children:jsxRuntimeExports.jsx(BlockletLauncher,{})})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/restore/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(BlockletAppProvider,{children:jsxRuntimeExports.jsx(BlockletRestore,{})})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(Invite,{})})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(ProtectedApp,{})})]})})}function AppWrapper(){const Be=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return jsxRuntimeExports.jsx(BrowserRouter,{history:history$1,basename:Be,children:jsxRuntimeExports.jsx(Root,{children:jsxRuntimeExports.jsx(App,{})})})}const root=clientExports.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";register(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:prefix},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(Be){console.error("Error during service worker registration:",Be)}});export{$$4 as $,withQuery as A,useNavigate as B,CircularProgress as C,DialogContentText as D,useSearchParams as E,useMediaQuery as F,Grid$1 as G,H$7 as H,libExports$3 as I,Link$1 as J,BlockletAppAvatar as K,Link as L,Box as M,isEmpty as N,et as O,FormControl as P,InputLabel as Q,MenuItem as R,Select as S,Typography as T,Checkbox as U,Alert as V,WrappedDidAddress as W,formatError as X,o$g as Y,CheckIcon$2 as Z,propTypesExports as _,useSubscription as a,Menu as a$,api as a0,merge as a1,cloneDeep as a2,IconButton as a3,R$3 as a4,ListItemSecondaryAction as a5,List as a6,ListItem as a7,ListItemText as a8,getServerUrl as a9,ErrorBoundary as aA,k$1 as aB,formatRegistryLogoPath as aC,Icon as aD,ListItemIcon as aE,createSvgIcon as aF,ensureDomainAliases as aG,constantExports$1 as aH,getIp as aI,normalizePathPrefix as aJ,sortBy as aK,stringSortHandlerAsc as aL,getAccessUrl as aM,history$1 as aN,semver as aO,useReactive as aP,useAsyncEffect as aQ,InfoOutlinedIcon as aR,sleep as aS,checkInputByType as aT,FormControlLabel as aU,Stack$1 as aV,useAsync as aW,axios as aX,shouldCheckDomainStatus as aY,formatMountPoint as aZ,urlPathFriendly as a_,useBlockletAppContext as aa,getAuthMethodExports as ab,ConfirmDialog as ac,getRestoredAccessUrl as ad,setSessionToken as ae,isEqual as af,isServerlessBlockletInstalled as ag,Debug as ah,getWsClient as ai,useQuery as aj,getPathPrefix as ak,Global as al,Routes as am,Route as an,Navigate as ao,HeaderAddon as ap,SessionContext as aq,css as ar,$$5 as as,formatToDatetime as at,alpha$1 as au,getLaunchAgreementUrl as av,axios$2 as aw,useSessionContext$1 as ax,Tooltip as ay,getBlockletMetaUrl as az,constantExports as b,clsx$1 as b$,checkIsWildcardDomain as b0,Popover as b1,Card as b2,formatToDate as b3,sortDomains as b4,C$a as b5,Collapse as b6,CheckCircle as b7,styled as b8,isUrl as b9,BlockletAdminRoles as bA,isInstalling as bB,Badge as bC,createAppPassportSvg as bD,NavLink as bE,__vitePreload as bF,SetCache as bG,arrayIncludes$1 as bH,arrayIncludesWith as bI,cacheHas as bJ,baseUniq as bK,baseFlatten as bL,baseRest as bM,last as bN,arrayFilter as bO,isArrayLikeObject as bP,t$9 as bQ,isDownloading as bR,getBlockletUrl as bS,getBlockletUrlParams as bT,ButtonBase as bU,memoTheme as bV,emphasize as bW,generateUtilityClasses$1 as bX,generateUtilityClass$1 as bY,useDefaultProps as bZ,useSlotProps as b_,__awaiter as ba,__generator as bb,__spread as bc,getDefaultExportFromCjs$1 as bd,U$3 as be,dayjs$1 as bf,Divider as bg,isCertificateMatch as bh,FormHelperText as bi,FormGroup as bj,o$d as bk,NodeContext as bl,useParams as bm,useNodeContext$1 as bn,uniqBy as bo,l as bp,libExports$1 as bq,B$5 as br,o$a as bs,l$h as bt,BlockletAvatar as bu,ClickAwayListener as bv,f$8 as bw,createPassportSvg as bx,getWalletType as by,useCreation as bz,createCompounder as c,flat as c$,composeClasses as c0,__read as c1,toSlotDomain as c2,omit as c3,fixBlocklet as c4,isProtectedRole as c5,baseOrderBy as c6,isArray$1 as c7,rootShouldForwardProp as c8,useFormControl as c9,isFunction$2 as cA,Container$3 as cB,K$3 as cC,getLauncherBaseURL as cD,SvgIcon as cE,Buffer$1 as cF,parseURL as cG,withHttps as cH,useLaunchBlockletContext as cI,z$3 as cJ,authorize as cK,ArrowForwardIcon as cL,isNewStoreUrl as cM,getAccessibleUrl as cN,getBlockletLogoUrl as cO,t as cP,M$7 as cQ,__spreadArrays as cR,__assign as cS,h$6 as cT,useLocation as cU,l$8 as cV,useMount as cW,s$8 as cX,formatDateTime as cY,getExplorerLink as cZ,patchJsxToLocale as c_,createChainedFunction$1 as ca,useSlot as cb,capitalize$1 as cc,SwitchBase as cd,createSimplePaletteValueFilter as ce,useControlled as cf,useForkRef as cg,useId as ch,getBlockletUrls as ci,defaultCheckAccessible as cj,urlEvaluationExports as ck,memoize as cl,ButtonGroupContext as cm,ButtonGroupButtonContext as cn,useNotificationContext as co,utilExports as cp,NotificationList as cq,useRequest as cr,useMemoizedFn as cs,isNumber$3 as ct,useLatest as cu,dayjs as cv,d$e as cw,Avatar as cx,isFromWallet as cy,usePassportId as cz,useBlockletsContext as d,afterMain as d$,en$2 as d0,Q$3 as d1,getSessionToken as d2,LinearProgress as d3,SvgLogo as d4,isNumber$1 as d5,useEnhancedEffect$1 as d6,debounce$2 as d7,ownerWindow as d8,useRtl as d9,requirePropTypes as dA,requireReactDom as dB,isObject$3 as dC,require$$0$2 as dD,require$$5$1 as dE,requireConstant$1 as dF,$e$1 as dG,noop$1 as dH,Button as dI,Paper as dJ,MenuList as dK,Popper as dL,_inheritsLoose$1 as dM,ReactDOM as dN,_objectWithoutPropertiesLoose$1 as dO,TransitionGroup as dP,ENTERED as dQ,ENTERING as dR,EXITING as dS,TransitionGroupContext as dT,Transition as dU,config$1 as dV,popperGenerator as dW,eventListeners as dX,popperOffsets$1 as dY,computeStyles$1 as dZ,applyStyles$1 as d_,KeyboardArrowLeft as da,KeyboardArrowRight as db,useEventCallback$1 as dc,ownerDocument as dd,l$p as de,getCommonHtmlTitle as df,HelmetExport as dg,requireReact as dh,i$e as di,oe$2 as dj,ne$2 as dk,InfoIcon$2 as dl,upperFirst as dm,camelCase as dn,Skeleton as dp,R$5 as dq,isArrayLike as dr,baseIteratee as ds,keys as dt,toInteger as du,baseFindIndex as dv,commonjsGlobal as dw,getAugmentedNamespace as dx,emotionUtils_browser_esm as dy,requireJsxRuntime as dz,useAsyncRetry as e,toString$2 as e$,afterRead as e0,afterWrite as e1,arrow$1 as e2,auto as e3,basePlacements as e4,beforeMain as e5,beforeRead as e6,beforeWrite as e7,bottom as e8,clippingParents as e9,requireLib$3 as eA,requireLib$4 as eB,requireLib$2 as eC,requireConstant$2 as eD,requireUrlPathFriendly as eE,b$8 as eF,data$s as eG,global$2 as eH,hoistStatics as eI,isEqual$3 as eJ,usePreviousProps as eK,setRef as eL,ClearIcon as eM,ArrowDropDownIcon as eN,Chip as eO,filledInputClasses as eP,inputBaseClasses as eQ,outlinedInputClasses as eR,inputClasses as eS,ListContext as eT,getListItemButtonUtilityClass as eU,listItemButtonClasses as eV,emotionReact_browser_esm as eW,emotionCache_browser_esm as eX,cloneDeep$1 as eY,forceReflow as eZ,_extends$2 as e_,createPopper as ea,createPopper$1 as eb,detectOverflow as ec,end as ed,flip$1 as ee,hide$1 as ef,left as eg,main as eh,modifierPhases as ei,offset$1 as ej,placements as ek,popper as el,preventOverflow$1 as em,read as en,reference as eo,right as ep,start as eq,top as er,variationPlacements as es,viewport as et,write as eu,requireReactIs as ev,emotionStyled_browser_esm as ew,emotionSerialize_esm as ex,emotionSheet_esm as ey,process$1 as ez,useTheme as f,requireSafeBuffer$1 as f$,mergeThemeOptions as f0,StyledEngineProvider as f1,ThemeProvider as f2,ThemeProvider$3 as f3,s$3 as f4,CloseIcon as f5,isString$1 as f6,createTheme as f7,createAxios as f8,pick as f9,slotShouldForwardProp as fA,requireNormalizePathPrefix as fB,debounce as fC,useInterval as fD,formatTime as fE,CloseFullscreenIcon as fF,S$8 as fG,TablePagination as fH,parseAvatar as fI,__rest as fJ,useEffectWithTarget$1 as fK,__values as fL,tmp as fM,useUpdate as fN,Y$3 as fO,I$3 as fP,p$d as fQ,ee as fR,requireUtil$6 as fS,requireObjectKeys$1 as fT,requireShams$1 as fU,requireCallBound as fV,requireEsObjectAtoms as fW,requireDefineDataProperty as fX,requireHasPropertyDescriptors as fY,requireCallBind as fZ,requireCallBound$1 as f_,omitBy as fa,MenuIcon as fb,useDebounceFn as fc,Dialog as fd,OutlinedInput as fe,data as ff,Drawer as fg,parseQuery as fh,parseFilename as fi,stringifyParsedURL as fj,Grow as fk,Wt as fl,InputAdornment as fm,tooltipClasses as fn,e$b as fo,requireEngine as fp,__spreadArray as fq,useEventListener as fr,le$7 as fs,getTargetElement as ft,clamp as fu,extractEventHandlers as fv,isFocusVisible as fw,isHostComponent as fx,lighten as fy,darken as fz,g$f as g,THEME_ID as g$,requireBrowser$f as g0,requireElliptic as g1,requireCryptoBrowserify as g2,requireRipemd160 as g3,requireLib$1 as g4,requireUtil$2 as g5,uniq as g6,useLocalStorageState as g7,InputBase as g8,useSize as g9,arrayMap as gA,baseMap as gB,baseForOwn as gC,isPlainObject$2 as gD,require$$12 as gE,throttle$2 as gF,isUndefined$1 as gG,useTimeout as gH,Fade as gI,FocusTrap as gJ,dialogClasses as gK,localizedFormatPlugin as gL,n$8 as gM,purify as gN,Buffer$1$1 as gO,Q$2 as gP,requireJsonStableStringify as gQ,requireSemver as gR,requireBrowser$5 as gS,require$$0$1 as gT,requireIsAbsoluteUrl as gU,requireDist$1 as gV,requireBrowser$3 as gW,require$$3 as gX,resolveProps as gY,useThemeProps as gZ,defaultTheme$1 as g_,DialogTitle as ga,DialogContent as gb,DialogActions as gc,pickBy as gd,shouldForwardProp as ge,resolveComponentProps as gf,getInviteLink as gg,copy as gh,e$d as gi,getIssuePassportLink as gj,uniqBy$1 as gk,isNodeOwner as gl,isSelf as gm,Q$1 as gn,getBlockletAccessibleUrl as go,A$1 as gp,createPassportSvg$1 as gq,requireMs as gr,E$3 as gs,trim as gt,BlockletSDK as gu,getBlockletSDK as gv,MoreHorizIcon as gw,identity$1 as gx,arrayEach as gy,baseEach as gz,get$1 as h,green as h$,isIndex as h0,useTheme$4 as h1,objectAssign as h2,__extends as h3,isServerless as h4,isFunction$1 as h5,omit$1 as h6,TableContext as h7,Tablelvl2Context as h8,d$f as h9,requireAssertString as hA,isEmail as hB,isURL as hC,createUseStorageState as hD,isBrowser$1 as hE,root$1 as hF,isNil$1 as hG,require$$11 as hH,requireHoistNonReactStatics_cjs as hI,_assertThisInitialized$1 as hJ,reactDomExports as hK,loadIcon as hL,withoutLeadingSlash as hM,fetchSvgAsPng as hN,blobToFile as hO,withoutTrailingSlash as hP,u$2 as hQ,Ce as hR,t$g as hS,i as hT,R$8 as hU,browserExports$1 as hV,highlightExports as hW,funcExports as hX,data$y as hY,useSnackbar as hZ,common$3 as h_,useUnmount as ha,isDidDomainOrIpEchoDomain as hb,ExpandLess as hc,validateDomain as hd,requireDist$2 as he,requireAxios as hf,trim$1 as hg,requirePRetry as hh,TableCell as hi,xe$1 as hj,getSystemDomains as hk,copyArray as hl,baseIndexOf as hm,ke as hn,useAppLogo as ho,getTransferAppLink as hp,requireBn$1 as hq,require$$2 as hr,updateWindowEnv as hs,M$3 as ht,isNil as hu,requireBase32 as hv,Pe as hw,withTrailingSlash as hx,data$B as hy,keyframes as hz,utilExports$1 as i,n$5 as i$,amber as i0,SnackbarContent as i1,d$h as i2,t$1 as i3,useDebounce as i4,Y as i5,g$3 as i6,b as i7,g$a as i8,withErrorBoundary as i9,pWaitFor as iA,hasRequiredSteps as iB,getStoreList as iC,commonjsRequire as iD,require_interface as iE,requireHasown as iF,requireBrowser$1 as iG,require$$4$1 as iH,flatten as iI,trimEnd as iJ,base32Exports as iK,flatExports as iL,qt as iM,AxiosError as iN,I$6 as iO,isNull as iP,orange as iQ,purple as iR,useStore as iS,createStore as iT,create$1 as iU,t$h as iV,clientExports as iW,Ve$2 as iX,retry as iY,isNetworkError as iZ,requirePTimeout as i_,z$2 as ia,M$4 as ib,Fe as ic,G as id,xe as ie,useBlockletLogo as ig,isPlainObject$1 as ih,Toolbar as ii,_setPrototypeOf as ij,isString$3 as ik,FormLabel as il,RelativeTime as im,isIncludeActivity as io,isUserActor as ip,ActorAvatar as iq,SendComponentAvatar as ir,Activity as is,NotificationContent$1 as it,AvatarGroup as iu,requireCjs as iv,useTheme$2 as iw,baseAssignValue as ix,isValidClusterSize as iy,extractStatusUrlFromNextWorkflow as iz,jsxRuntimeExports as j,Modal as j0,GlobalStyles$2 as j1,filesize as k,prettyMs as l,formatLocale as m,T$7 as n,o$i as o,p$3 as p,useSessionContext as q,reactExports as r,styled$3 as s,useSetState as t,useNodeContext as u,TextField as v,n$4 as w,lo as x,getWebWalletUrl as y,joinURL as z};
|
|
2903
|
+
`;function GlobalSubscriber(){const{t:Be}=T$7(),{session:Me}=useSessionContext$1(),{info:qe,refresh:He}=useNodeContext();return useSubscription(constantExports.TeamEvents.userUpdated,({teamDid:Ge,user:Je})=>{Ge===qe.did&&Je&&!Je.approved&&Me&&Me.user&&Me.user.did===Je.did&&(H$7.warning(Be("session.blockAccess"),{autoHideDuration:10*1e3}),Me.logout())}),useSubscription(constantExports$1.EVENTS.NOTIFICATION_CREATE,Ge=>{Ge.entityType==="node"&&He({silent:!0})}),useSubscription(constantExports$1.EVENTS.NODE_UPDATED,()=>{He({silent:!0})}),null}const authorize=({user:Be,launchType:Me,nftId:qe})=>{if(!Be)return!1;if(Me==="serverless"){if(!qe)throw new Error("nftId is required");return Be?.controller?.nftId===qe}return(Be.permissions||[]).includes("mutate_blocklets")},isServerlessBlockletInstalled=Be=>Be.isGetBlocklet&&Be.runtimeBlocklet?.controller?.consumedAt,getRestoredAccessUrl=async Be=>{const Me=getBlockletUrls({blocklet:Be});let qe="";return qe=Me.find(He=>{try{const{hostname:Ge}=new URL(He);return urlEvaluationExports.isSlpDomain(Ge)}catch(Ge){return console.error(Ge),!1}}),qe||(qe=await getAccessibleUrl(Me)),qe},LaunchBlockletContext=reactExports.createContext({}),{Provider:Provider$1,Consumer:Consumer$1}=LaunchBlockletContext;function LaunchBlockletProvider({children:Be}){const{session:Me}=useSessionContext$1(),{t:qe}=T$7(),{api:He,info:Ge}=useNodeContext(),[Je]=useSearchParams(),Ye=Je.get("launchType"),Qe=Je.get("fromLauncher"),Ze=Je.get("blocklet_meta_url")||"",nt=Je.get("nftId")||"",tt=Je.get("from")||"",rt=Je.get("launcherSessionId")||"",at=Je.get("launcherUrl")||"",ot=tt==="url",lt=tt==="empty",ut=ot||lt?"":new URL(Ze).origin,[dt,ct]=reactExports.useState({meta:null,appDid:Je.get("appDid")||null,sessionId:Je.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),ft=(mt,bt)=>ct(Et=>({...Et,appDid:mt,sessionId:bt})),ht=authorize({user:Me.user,launchType:Ye,nftId:nt}),[yt,gt]=reactExports.useState(null),[Ct,St]=reactExports.useState(!0),_t=reactExports.useMemo(()=>Ge?getServerUrl(Ge):"",[Ge]),Bt=async mt=>{if(!mt)throw new Error("appDid should not be empty");const{blocklet:bt}=await He.getBlocklet({input:{did:mt,attachConfig:!1}});if(!bt)return null;const Et=constantExports.BlockletStatus[bt.status],Rt=!!nt,Tt=Et<constantExports.BlockletStatus.installed,At=Et===constantExports.BlockletStatus.installed,kt=Et===constantExports.BlockletStatus.running;return ct(wt=>({...wt,isInstalled:At,isRunning:kt,isExternal:Rt,isInstalling:Tt})),{isInstalled:At,isRunning:kt,isExternal:Rt,isInstalling:Tt}},Dt=async()=>{if(St(!0),lt){ct(mt=>({...mt,meta:{title:Je.get("title")||"",description:Je.get("description")||""}})),St(!1);return}try{if(!Ze&&!lt)throw new Error(qe("common.invalidParam"));const[{meta:mt,isFree:bt,registryUrl:Et},{launcherSession:Rt,error:Tt}]=await Promise.all([He.getBlockletMetaFromUrl({input:{url:Ze,checkPrice:!0}}),rt?He.getLauncherSession({input:{launcherSessionId:rt,launcherUrl:at}}):Promise.resolve({})]);if(rt&&!Rt)throw new Error(`Launch session invalid: ${Tt}`);if(!mt)throw new Error(qe("LaunchBlockletBlocklet.error.loadMetaFailed"));let At={};ht&&dt.appDid&&(At=await Bt(dt.appDid)),ct(kt=>({...kt,...At,meta:mt,isFree:bt,registryUrl:Et,launcherSession:Rt}))}catch(mt){console.error(mt),gt(mt.message)}finally{St(!1)}};reactExports.useEffect(()=>{Me?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Me?.user?.controller?.nftId!==nt&&Me.logout(),Dt()},[]),reactExports.useEffect(()=>{Ct||!dt.meta||(ht?dt.appDid&&Bt(dt.appDid).catch(mt=>{H$7.error(mt.message)}):(ct(mt=>({...mt,isInstalled:!1,isRunning:!1,isExternal:!1})),gt(null)))},[ht]);const Ot={meta:dt.meta,isFree:dt.isFree,appDid:dt.appDid,sessionId:dt.sessionId,isInstalling:dt.isInstalling,isInstalled:dt.isInstalled,isExternal:dt.isExternal,isRunning:dt.isRunning,serverUrl:_t,storeUrl:dt.registryUrl||ut,blockletMetaUrl:Ze,fromLauncher:Qe,loading:Ct,error:yt,api:He,getBlocklet:Bt,setAppDid:ft,launcherUrl:at,launcherSession:dt.launcherSession,launcherSessionId:rt,launchType:Ye};return jsxRuntimeExports.jsx(Provider$1,{value:Ot,children:Be})}function useLaunchBlockletContext(){return reactExports.useContext(LaunchBlockletContext)}var useAsyncExports=requireUseAsync();const useAsync=getDefaultExportFromCjs$1(useAsyncExports);function useQuery(){return new URLSearchParams(useLocation().search)}const BlockletAppContext=reactExports.createContext(),{Provider,Consumer}=BlockletAppContext;function BlockletAppProvider({children:Be}){const qe=useQuery().get("blocklet_meta_url"),He=useAsync(async()=>{const{data:Je}=await axios.get(qe);return Je});if(He.loading)return jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})});const Ge={meta:He.value,error:He.error};return jsxRuntimeExports.jsx(Provider,{value:Ge,children:Be})}BlockletAppProvider.propTypes={children:o$i.any.isRequired};function useBlockletAppContext(){return reactExports.useContext(BlockletAppContext)}const Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./index-ZGV5ibHs.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),BlockletList=reactExports.lazy(()=>__vitePreload(()=>import("./index-B0iEGhMY.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,2,31,32,33,34,35,36,37,38]),import.meta.url)),BlockletRestore=reactExports.lazy(()=>__vitePreload(()=>import("./index-DmvJyGWn.js"),__vite__mapDeps([39,40,41,42,43,44,23,6,35,45,46,47,19,15]),import.meta.url)),BlockletStore=reactExports.lazy(()=>__vitePreload(()=>import("./index-DX626HNP.js"),__vite__mapDeps([48,6,49,50,51,52,53,17,15,54,31,32,55,56,36,35,57,45,58,4,19,23,24,25,59,60,26,61,62]),import.meta.url)),Settings=reactExports.lazy(()=>__vitePreload(()=>import("./index-0slfmis0.js"),__vite__mapDeps([63,64,61,65,66,67,26,7,8,9,10,11,12,13,14,15,16,17,18,19,68,22,58,4,2,69,6,70,71,72,73,36,20,74,53,75,76,77]),import.meta.url)),LogPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-DW2RdjBK.js"),__vite__mapDeps([78,79,24,25,6]),import.meta.url)),TeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-DUhy4qU3.js"),__vite__mapDeps([80,64,81,15,16,17,18,6,82,83,84,85,86,87,54,22,88,36,89,7,8,9,10,11,12,13,14,19,90,91,37,24,25,65,92,30,31,32,26,4,93,94,73,2,55,45,95,96,97,50,44,98,99,100,101,102,103,104,75,105,106,1,58,107,108]),import.meta.url)),BlockletDetail=reactExports.lazy(()=>__vitePreload(()=>import("./detail-BD2IFxMv.js"),__vite__mapDeps([109,64,20,21,6,19,22,23,24,25,26,54,110,87,62]),import.meta.url)),EULAPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-BiOrweAN.js"),[],import.meta.url)),Notifications=reactExports.lazy(()=>__vitePreload(()=>import("./index-CAv2tOhi.js"),[],import.meta.url)),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-Bb2FNNL0.js"),__vite__mapDeps([111,112,110,96,10,97,113,23]),import.meta.url)),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-3bOYCU_O.js"),__vite__mapDeps([114,89,57,96,10,113,23,34]),import.meta.url)),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-CtVrHc87.js"),__vite__mapDeps([115,113,23]),import.meta.url)),BlockletLauncher=reactExports.lazy(()=>__vitePreload(()=>import("./index-CS7Cpww7.js"),__vite__mapDeps([116,41,42,43,44,107,108,117,82,83,84,23,28,29,47,38,6,69,60]),import.meta.url)),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-B2EpuvFX.js"),__vite__mapDeps([118,110]),import.meta.url)),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./index-CEfdMhRs.js"),__vite__mapDeps([119,112,110,96,10,97,113]),import.meta.url)),Console=reactExports.lazy(()=>__vitePreload(()=>import("./index-CeEola33.js"),[],import.meta.url)),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-w74fQNNd.js"),__vite__mapDeps([120,64,121,122,52,53,123,13,124,125,93,94,9,73,7,8,10,11,12,14,15,16,17,18,19,126,127,77,6,103,25]),import.meta.url)),GenKeyPair=reactExports.lazy(()=>__vitePreload(()=>import("./index-BsMctdy8.js"),__vite__mapDeps([128,110]),import.meta.url));function useSharedContext(){const Be=useNodeContext(),{session:Me}=useSessionContext$1(),{wallet:qe}=d$e(),He=Me.user&&Me.user.did;return reactExports.useEffect(()=>{const Ge=getWsClient();return He?Ge.connect():Ge.isConnected()&&Ge.disconnect(),()=>{Ge.isConnected()&&Ge.disconnect()}},[He]),reactExports.useEffect(()=>{if(qe)return()=>{};const Ge=()=>{document.visibilityState==="visible"&&Me.refresh()};return document.addEventListener("visibilitychange",Ge),()=>{document.removeEventListener("visibilitychange",Ge)}},[]),{node:Be,session:Me}}function ProtectedApp(){const{t:Be}=T$7(),{node:Me,session:qe}=useSharedContext(),He=useLocation();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${He.pathname}${He.search}`)},[He]),reactExports.useEffect(()=>{qe?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&qe.logout()},[qe?.user?.role]);const Ge=jsxRuntimeExports.jsx(CircularProgress,{});if(Me.loading||qe.loading)return jsxRuntimeExports.jsx(o$g,{children:Ge});if(!Me.info.initialized)return getAuthMethodExports.getServerAuthMethod(Me.info)==="nft"?jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"verify-owner"}):jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(NodeConnectOwner,{})});if(Me.info.upgradeSessionId)return jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(MaintainProgress,{})});if(!qe.user)return jsxRuntimeExports.jsx(NodeLogin,{loadingEle:Ge});const Je=jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(BlockletsProvider,{children:jsxRuntimeExports.jsxs(NotificationProvider,{children:[jsxRuntimeExports.jsx(Health,{}),jsxRuntimeExports.jsx(CheckNodeStatus,{}),jsxRuntimeExports.jsx(GlobalSubscriber,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Je,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.blocklets"),children:jsxRuntimeExports.jsx(BlockletList,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/:did/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Blocklets",children:jsxRuntimeExports.jsx(BlockletDetail,{})})}),jsxRuntimeExports.jsx(Route,{path:"/settings/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.setting"),children:jsxRuntimeExports.jsx(Settings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/eula",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("setup.steps.eula"),children:jsxRuntimeExports.jsx(EULAPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/store",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.store"),children:jsxRuntimeExports.jsx(BlockletStore,{})})}),jsxRuntimeExports.jsx(Route,{path:"/console",element:jsxRuntimeExports.jsx(DashboardRoute,{title:`GraphQL ${Be("common.console")}`,scrollable:!1,fullWidth:!0,children:jsxRuntimeExports.jsx(Console,{})})}),jsxRuntimeExports.jsx(Route,{path:"/notifications",element:jsxRuntimeExports.jsx(DashboardRoute,{title:Be("common.notifications"),children:jsxRuntimeExports.jsx(Notifications,{})})}),jsxRuntimeExports.jsx(Route,{path:"/team/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.team"),children:jsxRuntimeExports.jsx(TeamPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/logs/:name?",element:jsxRuntimeExports.jsx(DashboardRoute,{scrollable:!1,fullWidth:!0,title:Be("common.logs"),children:jsxRuntimeExports.jsx(LogPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/analytics/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:Be("common.analytics"),children:jsxRuntimeExports.jsx(AnalyticsPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/dashboard",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/team",element:jsxRuntimeExports.jsx(Navigate,{to:"/team/members",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/analytics",element:jsxRuntimeExports.jsx(Navigate,{to:"/analytics/traffic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/router",element:jsxRuntimeExports.jsx(Navigate,{to:"/router/rules",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/settings",element:jsxRuntimeExports.jsx(Navigate,{to:"/settings/basic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace",element:jsxRuntimeExports.jsx(Navigate,{to:"/store",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace/:did",element:jsxRuntimeExports.jsx(Navigate,{to:"/store/:did",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})]})})}function UnprotectedWrapper({children:Be}){const{node:Me,session:qe}=useSharedContext();return Me.loading||!qe.initialized&&qe.loading?jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):Me.info.upgradeSessionId?jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(MaintainProgress,{})}):Be}function App(){const{changeLocale:Be}=T$7(),Me=useQuery();reactExports.useEffect(()=>{const He=Me.get("locale");He&&["zh","en"].includes(He)&&Be(He)},[]);const qe=jsxRuntimeExports.jsx(o$g,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:qe,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(IssuePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LostPassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(ExchangePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:"/accept-server",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"accept-server"})})}),jsxRuntimeExports.jsx(Route,{path:"/gen-key-pair/",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(GenKeyPair,{})})}),jsxRuntimeExports.jsx(Route,{path:"/launch-blocklet/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LaunchBlockletProvider,{children:jsxRuntimeExports.jsx(BlockletLauncher,{})})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/restore/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(BlockletAppProvider,{children:jsxRuntimeExports.jsx(BlockletRestore,{})})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(Invite,{})})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(ProtectedApp,{})})]})})}function AppWrapper(){const Be=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return jsxRuntimeExports.jsx(BrowserRouter,{history:history$1,basename:Be,children:jsxRuntimeExports.jsx(Root,{children:jsxRuntimeExports.jsx(App,{})})})}const root=clientExports.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";register(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:prefix},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(Be){console.error("Error during service worker registration:",Be)}});export{$$4 as $,withQuery as A,useNavigate as B,CircularProgress as C,DialogContentText as D,useSearchParams as E,useMediaQuery as F,Grid$1 as G,H$7 as H,libExports$3 as I,Link$1 as J,BlockletAppAvatar as K,Link as L,Box as M,isEmpty as N,et as O,FormControl as P,InputLabel as Q,MenuItem as R,Select as S,Typography as T,Checkbox as U,Alert as V,WrappedDidAddress as W,formatError as X,o$g as Y,CheckIcon$2 as Z,propTypesExports as _,useSubscription as a,Menu as a$,api as a0,merge as a1,cloneDeep as a2,IconButton as a3,R$3 as a4,ListItemSecondaryAction as a5,List as a6,ListItem as a7,ListItemText as a8,getServerUrl as a9,ErrorBoundary as aA,k$1 as aB,formatRegistryLogoPath as aC,Icon as aD,ListItemIcon as aE,createSvgIcon as aF,ensureDomainAliases as aG,constantExports$1 as aH,getIp as aI,normalizePathPrefix as aJ,sortBy as aK,stringSortHandlerAsc as aL,getAccessUrl as aM,history$1 as aN,semver as aO,useReactive as aP,useAsyncEffect as aQ,InfoOutlinedIcon as aR,sleep as aS,checkInputByType as aT,FormControlLabel as aU,Stack$1 as aV,useAsync as aW,axios as aX,shouldCheckDomainStatus as aY,formatMountPoint as aZ,urlPathFriendly as a_,useBlockletAppContext as aa,getAuthMethodExports as ab,ConfirmDialog as ac,getRestoredAccessUrl as ad,setSessionToken as ae,isEqual as af,isServerlessBlockletInstalled as ag,Debug as ah,getWsClient as ai,useQuery as aj,getPathPrefix as ak,Global as al,Routes as am,Route as an,Navigate as ao,HeaderAddon as ap,SessionContext as aq,css as ar,$$5 as as,formatToDatetime as at,alpha$1 as au,getLaunchAgreementUrl as av,axios$2 as aw,useSessionContext$1 as ax,Tooltip as ay,getBlockletMetaUrl as az,constantExports as b,clsx$1 as b$,checkIsWildcardDomain as b0,Popover as b1,Card as b2,formatToDate as b3,sortDomains as b4,C$a as b5,Collapse as b6,CheckCircle as b7,styled as b8,isUrl as b9,BlockletAdminRoles as bA,isInstalling as bB,Badge as bC,createAppPassportSvg as bD,NavLink as bE,__vitePreload as bF,SetCache as bG,arrayIncludes$1 as bH,arrayIncludesWith as bI,cacheHas as bJ,baseUniq as bK,baseFlatten as bL,baseRest as bM,last as bN,arrayFilter as bO,isArrayLikeObject as bP,t$9 as bQ,isDownloading as bR,getBlockletUrl as bS,getBlockletUrlParams as bT,ButtonBase as bU,memoTheme as bV,emphasize as bW,generateUtilityClasses$1 as bX,generateUtilityClass$1 as bY,useDefaultProps as bZ,useSlotProps as b_,__awaiter as ba,__generator as bb,__spread as bc,getDefaultExportFromCjs$1 as bd,U$3 as be,dayjs$1 as bf,Divider as bg,isCertificateMatch as bh,FormHelperText as bi,FormGroup as bj,o$d as bk,NodeContext as bl,useParams as bm,useNodeContext$1 as bn,uniqBy as bo,l as bp,libExports$1 as bq,B$5 as br,o$a as bs,l$h as bt,BlockletAvatar as bu,ClickAwayListener as bv,f$8 as bw,createPassportSvg as bx,getWalletType as by,useCreation as bz,createCompounder as c,flat as c$,composeClasses as c0,__read as c1,toSlotDomain as c2,omit as c3,fixBlocklet as c4,isProtectedRole as c5,baseOrderBy as c6,isArray$1 as c7,rootShouldForwardProp as c8,useFormControl as c9,isFunction$2 as cA,Container$3 as cB,K$3 as cC,getLauncherBaseURL as cD,SvgIcon as cE,Buffer$1 as cF,parseURL as cG,withHttps as cH,useLaunchBlockletContext as cI,z$3 as cJ,authorize as cK,ArrowForwardIcon as cL,isNewStoreUrl as cM,getAccessibleUrl as cN,getBlockletLogoUrl as cO,t as cP,M$7 as cQ,__spreadArrays as cR,__assign as cS,h$6 as cT,useLocation as cU,l$8 as cV,useMount as cW,s$8 as cX,formatDateTime as cY,getExplorerLink as cZ,patchJsxToLocale as c_,createChainedFunction$1 as ca,useSlot as cb,capitalize$1 as cc,SwitchBase as cd,createSimplePaletteValueFilter as ce,useControlled as cf,useForkRef as cg,useId as ch,getBlockletUrls as ci,defaultCheckAccessible as cj,urlEvaluationExports as ck,memoize as cl,ButtonGroupContext as cm,ButtonGroupButtonContext as cn,useNotificationContext as co,utilExports as cp,NotificationList as cq,useRequest as cr,useMemoizedFn as cs,isNumber$3 as ct,useLatest as cu,dayjs as cv,d$e as cw,Avatar as cx,isFromWallet as cy,usePassportId as cz,useBlockletsContext as d,afterMain as d$,en$2 as d0,Q$3 as d1,getSessionToken as d2,LinearProgress as d3,SvgLogo as d4,isNumber$1 as d5,useEnhancedEffect$1 as d6,debounce$2 as d7,ownerWindow as d8,useRtl as d9,requirePropTypes as dA,requireReactDom as dB,isObject$3 as dC,require$$0$2 as dD,require$$5$1 as dE,requireConstant$1 as dF,$e$1 as dG,noop$1 as dH,Button as dI,Paper as dJ,MenuList as dK,Popper as dL,_inheritsLoose$1 as dM,ReactDOM as dN,_objectWithoutPropertiesLoose$1 as dO,TransitionGroup as dP,ENTERED as dQ,ENTERING as dR,EXITING as dS,TransitionGroupContext as dT,Transition as dU,config$1 as dV,popperGenerator as dW,eventListeners as dX,popperOffsets$1 as dY,computeStyles$1 as dZ,applyStyles$1 as d_,KeyboardArrowLeft as da,KeyboardArrowRight as db,useEventCallback$1 as dc,ownerDocument as dd,l$p as de,getCommonHtmlTitle as df,HelmetExport as dg,requireReact as dh,i$e as di,oe$2 as dj,ne$2 as dk,InfoIcon$2 as dl,upperFirst as dm,camelCase as dn,Skeleton as dp,R$5 as dq,isArrayLike as dr,baseIteratee as ds,keys as dt,toInteger as du,baseFindIndex as dv,commonjsGlobal as dw,getAugmentedNamespace as dx,emotionUtils_browser_esm as dy,requireJsxRuntime as dz,useAsyncRetry as e,toString$2 as e$,afterRead as e0,afterWrite as e1,arrow$1 as e2,auto as e3,basePlacements as e4,beforeMain as e5,beforeRead as e6,beforeWrite as e7,bottom as e8,clippingParents as e9,requireLib$3 as eA,requireLib$4 as eB,requireLib$2 as eC,requireConstant$2 as eD,requireUrlPathFriendly as eE,b$8 as eF,data$s as eG,global$2 as eH,hoistStatics as eI,isEqual$3 as eJ,usePreviousProps as eK,setRef as eL,ClearIcon as eM,ArrowDropDownIcon as eN,Chip as eO,filledInputClasses as eP,inputBaseClasses as eQ,outlinedInputClasses as eR,inputClasses as eS,ListContext as eT,getListItemButtonUtilityClass as eU,listItemButtonClasses as eV,emotionReact_browser_esm as eW,emotionCache_browser_esm as eX,cloneDeep$1 as eY,forceReflow as eZ,_extends$2 as e_,createPopper as ea,createPopper$1 as eb,detectOverflow as ec,end as ed,flip$1 as ee,hide$1 as ef,left as eg,main as eh,modifierPhases as ei,offset$1 as ej,placements as ek,popper as el,preventOverflow$1 as em,read as en,reference as eo,right as ep,start as eq,top as er,variationPlacements as es,viewport as et,write as eu,requireReactIs as ev,emotionStyled_browser_esm as ew,emotionSerialize_esm as ex,emotionSheet_esm as ey,process$1 as ez,useTheme as f,requireSafeBuffer$1 as f$,mergeThemeOptions as f0,StyledEngineProvider as f1,ThemeProvider as f2,ThemeProvider$3 as f3,s$3 as f4,CloseIcon as f5,isString$1 as f6,createTheme as f7,createAxios as f8,pick as f9,slotShouldForwardProp as fA,requireNormalizePathPrefix as fB,debounce as fC,useInterval as fD,formatTime as fE,CloseFullscreenIcon as fF,S$8 as fG,TablePagination as fH,parseAvatar as fI,__rest as fJ,useEffectWithTarget$1 as fK,__values as fL,tmp as fM,useUpdate as fN,Y$3 as fO,I$3 as fP,p$d as fQ,ee as fR,requireUtil$6 as fS,requireObjectKeys$1 as fT,requireShams$1 as fU,requireCallBound as fV,requireEsObjectAtoms as fW,requireDefineDataProperty as fX,requireHasPropertyDescriptors as fY,requireCallBind as fZ,requireCallBound$1 as f_,omitBy as fa,MenuIcon as fb,useDebounceFn as fc,Dialog as fd,OutlinedInput as fe,data as ff,Drawer as fg,parseQuery as fh,parseFilename as fi,stringifyParsedURL as fj,Grow as fk,Wt as fl,InputAdornment as fm,tooltipClasses as fn,e$b as fo,requireEngine as fp,__spreadArray as fq,useEventListener as fr,le$7 as fs,getTargetElement as ft,clamp as fu,extractEventHandlers as fv,isFocusVisible as fw,isHostComponent as fx,lighten as fy,darken as fz,g$f as g,THEME_ID as g$,requireBrowser$f as g0,requireElliptic as g1,requireCryptoBrowserify as g2,requireRipemd160 as g3,requireLib$1 as g4,requireUtil$2 as g5,uniq as g6,useLocalStorageState as g7,InputBase as g8,useSize as g9,arrayMap as gA,baseMap as gB,baseForOwn as gC,isPlainObject$2 as gD,require$$12 as gE,throttle$2 as gF,isUndefined$1 as gG,useTimeout as gH,Fade as gI,FocusTrap as gJ,dialogClasses as gK,localizedFormatPlugin as gL,n$8 as gM,purify as gN,Buffer$1$1 as gO,Q$2 as gP,requireJsonStableStringify as gQ,requireSemver as gR,requireBrowser$5 as gS,require$$0$1 as gT,requireIsAbsoluteUrl as gU,requireDist$1 as gV,requireBrowser$3 as gW,require$$3 as gX,resolveProps as gY,useThemeProps as gZ,defaultTheme$1 as g_,DialogTitle as ga,DialogContent as gb,DialogActions as gc,pickBy as gd,shouldForwardProp as ge,resolveComponentProps as gf,getInviteLink as gg,copy as gh,e$d as gi,getIssuePassportLink as gj,uniqBy$1 as gk,isNodeOwner as gl,isSelf as gm,Q$1 as gn,getBlockletAccessibleUrl as go,A$1 as gp,createPassportSvg$1 as gq,requireMs as gr,E$3 as gs,trim as gt,BlockletSDK as gu,getBlockletSDK as gv,MoreHorizIcon as gw,identity$1 as gx,arrayEach as gy,baseEach as gz,get$1 as h,green as h$,isIndex as h0,useTheme$4 as h1,objectAssign as h2,__extends as h3,isServerless as h4,isFunction$1 as h5,omit$1 as h6,TableContext as h7,Tablelvl2Context as h8,d$f as h9,requireAssertString as hA,isEmail as hB,isURL as hC,createUseStorageState as hD,isBrowser$1 as hE,root$1 as hF,isNil$1 as hG,require$$11 as hH,requireHoistNonReactStatics_cjs as hI,_assertThisInitialized$1 as hJ,reactDomExports as hK,loadIcon as hL,withoutLeadingSlash as hM,fetchSvgAsPng as hN,blobToFile as hO,withoutTrailingSlash as hP,u$2 as hQ,Ce as hR,t$g as hS,i as hT,R$8 as hU,browserExports$1 as hV,highlightExports as hW,funcExports as hX,data$y as hY,useSnackbar as hZ,common$3 as h_,useUnmount as ha,isDidDomainOrIpEchoDomain as hb,ExpandLess as hc,validateDomain as hd,requireDist$2 as he,requireAxios as hf,trim$1 as hg,requirePRetry as hh,TableCell as hi,xe$1 as hj,getSystemDomains as hk,copyArray as hl,baseIndexOf as hm,ke as hn,useAppLogo as ho,getTransferAppLink as hp,requireBn$1 as hq,require$$2 as hr,updateWindowEnv as hs,M$3 as ht,isNil as hu,requireBase32 as hv,Pe as hw,withTrailingSlash as hx,data$B as hy,keyframes as hz,utilExports$1 as i,n$5 as i$,amber as i0,SnackbarContent as i1,d$h as i2,t$1 as i3,useDebounce as i4,Y as i5,g$3 as i6,b as i7,g$a as i8,withErrorBoundary as i9,pWaitFor as iA,hasRequiredSteps as iB,getStoreList as iC,commonjsRequire as iD,require_interface as iE,requireHasown as iF,requireBrowser$1 as iG,require$$4$1 as iH,flatten as iI,trimEnd as iJ,base32Exports as iK,flatExports as iL,qt as iM,AxiosError as iN,I$6 as iO,isNull as iP,orange as iQ,purple as iR,useStore as iS,createStore as iT,create$1 as iU,t$h as iV,clientExports as iW,Ve$2 as iX,retry as iY,isNetworkError as iZ,requirePTimeout as i_,z$2 as ia,M$4 as ib,Fe as ic,G as id,xe as ie,useBlockletLogo as ig,isPlainObject$1 as ih,Toolbar as ii,_setPrototypeOf as ij,isString$3 as ik,FormLabel as il,RelativeTime as im,isIncludeActivity as io,isUserActor as ip,ActorAvatar as iq,SendComponentAvatar as ir,Activity as is,NotificationContent$1 as it,AvatarGroup as iu,requireCjs as iv,useTheme$2 as iw,baseAssignValue as ix,isValidClusterSize as iy,extractStatusUrlFromNextWorkflow as iz,jsxRuntimeExports as j,Modal as j0,GlobalStyles$2 as j1,filesize as k,prettyMs as l,formatLocale as m,T$7 as n,o$i as o,p$3 as p,useSessionContext as q,reactExports as r,styled$3 as s,useSetState as t,useNodeContext as u,TextField as v,n$4 as w,lo as x,getWebWalletUrl as y,joinURL as z};
|