@abtnode/blocklet-services 1.16.33 → 1.16.34-beta-20241113-102431-65542b84
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/dist/assets/{Add-keKAhJf1.js → Add-DO2-dTzI.js} +1 -1
- package/dist/assets/{Alert-CvjoyYBC.js → Alert-BeH7Xy0H.js} +1 -1
- package/dist/assets/{ArrowDropDown-C0LbBLoq.js → ArrowDropDown-CqLtDLTF.js} +1 -1
- package/dist/assets/{Autocomplete-B2GoIEiU.js → Autocomplete-jCHDD6vg.js} +1 -1
- package/dist/assets/{Avatar-Dpx0qZux.js → Avatar-DJ-UK4kO.js} +1 -1
- package/dist/assets/{ButtonGroup-HFkgBADe.js → ButtonGroup-BoN0Hhwo.js} +1 -1
- package/dist/assets/{CSSTransition-BCODA-ba.js → CSSTransition-BhimT6c4.js} +1 -1
- package/dist/assets/{CheckCircle-dj8lmygB.js → CheckCircle-DqQ30Nuj.js} +1 -1
- package/dist/assets/{ChevronLeft-DMcIWZxt.js → ChevronLeft-BfrgHEUq.js} +1 -1
- package/dist/assets/{ChevronRight-C5a3Tp9Z.js → ChevronRight-D0lR4sWK.js} +1 -1
- package/dist/assets/{Close-C1lblU7j.js → Close-jUFIDdYA.js} +1 -1
- package/dist/assets/{Delete-Bt8sEFHf.js → Delete-D7CV2-yT.js} +1 -1
- package/dist/assets/{DeleteOutline-CbAyWFU_.js → DeleteOutline-DEv5LIWu.js} +1 -1
- package/dist/assets/{DialogContentText-DCrSbjzq.js → DialogContentText-mK9YgSzl.js} +1 -1
- package/dist/assets/{Done-DcSnacmc.js → Done-Dhe1Acuk.js} +1 -1
- package/dist/assets/{Download-DCo9Sut8.js → Download-W1ymYBs1.js} +1 -1
- package/dist/assets/{EditIcon-CCujR7ZO.js → EditIcon-CddD6wUz.js} +1 -1
- package/dist/assets/{Error-B1YMBQQI.js → Error-D0Acz-zI.js} +1 -1
- package/dist/assets/{ExpandMore-gjdCPrPn.js → ExpandMore-BVv1-SMz.js} +1 -1
- package/dist/assets/{FormControl-fwuAUJF7.js → FormControl-DKFNjq8h.js} +1 -1
- package/dist/assets/{FormControlLabel-Dd50kGih.js → FormControlLabel-DnPrJzTY.js} +1 -1
- package/dist/assets/{FormGroup-CQVrTSBu.js → FormGroup-CbFAfBRz.js} +1 -1
- package/dist/assets/{Google-tjgxWlOw.js → Google-D58bjHqZ.js} +1 -1
- package/dist/assets/{Grid-CdEXdmAj.js → Grid-Bg0kohyl.js} +1 -1
- package/dist/assets/{HelpOutline-BqeAr-nt.js → HelpOutline-XybpP4tI.js} +1 -1
- package/dist/assets/{Hidden-DzGAqhyo.js → Hidden-BQtTxfyp.js} +1 -1
- package/dist/assets/{InfoOutlined-bFgj9q23.js → InfoOutlined-CboH3WPt.js} +1 -1
- package/dist/assets/{InputAdornment-DLavXxQC.js → InputAdornment-yF3jZBda.js} +1 -1
- package/dist/assets/{LastPage-BKsIncQL.js → LastPage-CyL5MRIw.js} +1 -1
- package/dist/assets/{Launch-CxApRsQk.js → Launch-CBp2D-C7.js} +1 -1
- package/dist/assets/{LaunchOutlined-DfDSvTLO.js → LaunchOutlined-C3gNa-wr.js} +1 -1
- package/dist/assets/{Link-CwMoHxxH.js → Link-BwgclF4_.js} +1 -1
- package/dist/assets/{ListItemButton-DVUJtRJm.js → ListItemButton-CMgRyCRE.js} +1 -1
- package/dist/assets/{ListSubheader-CFOk8Duw.js → ListSubheader-C78EogH7.js} +1 -1
- package/dist/assets/{LoadingButton-CV6_YGxl.js → LoadingButton-DJbUWJbY.js} +1 -1
- package/dist/assets/{LockIcon-DuGlV5OX.js → LockIcon-ByD8OTbY.js} +1 -1
- package/dist/assets/{Loop-StSu2hQZ.js → Loop-BkFaNofi.js} +1 -1
- package/dist/assets/{MarkEmailRead-Dql1zMPh.js → MarkEmailRead-DOPzccRb.js} +1 -1
- package/dist/assets/{Menu-BO891UCo.js → Menu-C2M4G3Hi.js} +1 -1
- package/dist/assets/{MoreHoriz-9r1HwwoN.js → MoreHoriz-DBFQtbAK.js} +1 -1
- package/dist/assets/{MoreVert-DOniSEHD.js → MoreVert-DFIFOaRy.js} +1 -1
- package/dist/assets/{OpenInNew-BPyaFhom.js → OpenInNew-DUWMHCSU.js} +1 -1
- package/dist/assets/{Pagination-BLtZNPA8.js → Pagination-D6LRlZDH.js} +1 -1
- package/dist/assets/{PlayArrow-5GWIfGl4.js → PlayArrow-BSjhdlo6.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-DKy3bE5m.js → QuestionMarkCircle-CyGg01op.js} +1 -1
- package/dist/assets/{RadioGroup-DORPFwcd.js → RadioGroup-CSPixlIn.js} +1 -1
- package/dist/assets/{Search-DX3AW4Ja.js → Search-sG28-wD4.js} +1 -1
- package/dist/assets/{Select-CRV0iHHv.js → Select-CG30SlQk.js} +1 -1
- package/dist/assets/{ServerLogo-Bf6UHHwQ.js → ServerLogo-DvZf64-B.js} +1 -1
- package/dist/assets/{Skeleton-B0qtX8zT.js → Skeleton-DjtvIQXX.js} +1 -1
- package/dist/assets/{Slider-ICT3OK_s.js → Slider-CC4u_l5t.js} +1 -1
- package/dist/assets/{Stack-D9gGxV3p.js → Stack-CoMDlKDj.js} +1 -1
- package/dist/assets/{Stepper-DnzprAA5.js → Stepper-ic2H4ABx.js} +1 -1
- package/dist/assets/{TextField-CDyde-vy.js → TextField-DMaGvlb2.js} +1 -1
- package/dist/assets/{Toolbar-B1kAku_I.js → Toolbar-CwzKsnp2.js} +1 -1
- package/dist/assets/{ViewColumn-Cnif--3f.js → ViewColumn-CoIY4ost.js} +1 -1
- package/dist/assets/{ViewList-BsA6104d.js → ViewList-XcD8RN7F.js} +1 -1
- package/dist/assets/{_createAggregator-DrVSAj0q.js → _createAggregator-DIp4MAbQ.js} +1 -1
- package/dist/assets/{access-control-DLJpzKF0.js → access-control-6Pyf8eMM.js} +1 -1
- package/dist/assets/{actions-aH21JHuE.js → actions-B_svi_ng.js} +1 -1
- package/dist/assets/{add-component-core-CUJCSG5o.js → add-component-core-9JdWlOEK.js} +1 -1
- package/dist/assets/add-resource-C5ogIRZA.js +1 -0
- package/dist/assets/{addon-q69Gsvdx.js → addon-CR-QYf6K.js} +1 -1
- package/dist/assets/{analytics-PWeZC2nI.js → analytics-9rG61aN4.js} +1 -1
- package/dist/assets/api-OojOMSa3.js +1 -0
- package/dist/assets/{audit-logs-DDiQqcXp.js → audit-logs-EaMVOMGy.js} +1 -1
- package/dist/assets/{base32-C6zHYqZY.js → base32-1ph3JiLh.js} +1 -1
- package/dist/assets/{branding-UWNwsJgO.js → branding-CvScw--O.js} +2 -2
- package/dist/assets/{bundle-avatar-CAJ4ok0y.js → bundle-avatar-CGmZUUzF.js} +1 -1
- package/dist/assets/{button-B44tuPUX.js → button-BYEykGiq.js} +1 -1
- package/dist/assets/{click-to-copy-CO2NnWs4.js → click-to-copy-k_YcO3Cc.js} +1 -1
- package/dist/assets/{complete-DDKp_U3c.js → complete-CZ50BDGL.js} +1 -1
- package/dist/assets/{component-D3p8A_S7.js → component-DGNedHq-.js} +1 -1
- package/dist/assets/{config-fErcYSNl.js → config-BgOu961P.js} +1 -1
- package/dist/assets/{config-BaIaZlTt.js → config-Bq0PRCnF.js} +1 -1
- package/dist/assets/{config-navigation-CA8IvSUF.js → config-navigation-D8Q4tV74.js} +1 -1
- package/dist/assets/{config-space-BTpvPCf5.js → config-space-CYRh354P.js} +1 -1
- package/dist/assets/{confirm-Bc68-DFG.js → confirm-BoswCyyO.js} +1 -1
- package/dist/assets/{connect-BuX8KN_Y.js → connect-CH-LPNgi.js} +1 -1
- package/dist/assets/{connect-B-gCtz6y.js → connect-ClEE3xTO.js} +1 -1
- package/dist/assets/{connect-to-CmPhkTnO.js → connect-to-CL_QN0Zk.js} +1 -1
- package/dist/assets/{content-layout-DWrJ4SYf.js → content-layout-d6nQGGPv.js} +1 -1
- package/dist/assets/{dashboard-BJUhLtpP.js → dashboard-Bttxlc2F.js} +3 -3
- package/dist/assets/{deprecate-CBfNeB3N.js → deprecate-DiScibmf.js} +1 -1
- package/dist/assets/{did-address-CeAEd9AA.js → did-address-Do1u0yvf.js} +1 -1
- package/dist/assets/{domain-DAVxIeBd.js → domain-DKaPX3V4.js} +1 -1
- package/dist/assets/{domain-list-C9Q-rA9d.js → domain-list-lt9p7VPN.js} +1 -1
- package/dist/assets/{email-DVrFLh0C.js → email-F8IV1jpI.js} +3 -3
- package/dist/assets/emotion-cache.browser.esm-DeYKFD9v.js +1 -0
- package/dist/assets/{exchange-passport-CymsSQq4.js → exchange-passport-Bc7oyqYM.js} +1 -1
- package/dist/assets/{fallback-HzSJFkgV.js → fallback-CySK2UM6.js} +1 -1
- package/dist/assets/{form-text-input-DlUuPAGn.js → form-text-input-_NofBVzR.js} +2 -2
- package/dist/assets/{format-error-DiR6lB9S.js → format-error-DmvkKPOi.js} +1 -1
- package/dist/assets/{fuel-00iTGFPb.js → fuel-DYhdX9mY.js} +1 -1
- package/dist/assets/{fullpage-Tob3koDP.js → fullpage-TsqEn9ZW.js} +1 -1
- package/dist/assets/{home-C0YYsg_6.js → home-BgfKi-BX.js} +1 -1
- package/dist/assets/{iframe-ClBOPtPf.js → iframe-hao1011H.js} +1 -1
- package/dist/assets/{index-D9_f7f5B.js → index-08dVt-H4.js} +1 -1
- package/dist/assets/{index-DV2LNzli.js → index-6En2VE0M.js} +1 -1
- package/dist/assets/{index-ElzBhQUO.js → index-B5naDBdR.js} +1 -1
- package/dist/assets/{index-BzUR-a4Z.js → index-B7Bg6W0f.js} +1 -1
- package/dist/assets/{index-CCt0KYoE.js → index-BEECxsLH.js} +1 -1
- package/dist/assets/{index-D9LIoB-S.js → index-BNKNRBXO.js} +1 -1
- package/dist/assets/{index-YTRzBzgM.js → index-Bla3oaYF.js} +1 -1
- package/dist/assets/{index-JB2oUFYn.js → index-Bs2vXwLl.js} +1 -1
- package/dist/assets/index-Bz2TnzRg.js +23 -0
- package/dist/assets/{index-Dvw2zQCR.js → index-C3NOENDl.js} +1 -1
- package/dist/assets/{index-Bw7V6nBD.js → index-CFdEP-4-.js} +1 -1
- package/dist/assets/{index-DMQtTWea.js → index-CH3FeX_Q.js} +1 -1
- package/dist/assets/{index-2aUz-aBH.js → index-CNA31-_J.js} +1 -1
- package/dist/assets/{index-BVOdM4SV.js → index-CR5uiugf.js} +1 -1
- package/dist/assets/{index-BrPvHdaT.js → index-CaDLAYuL.js} +1 -1
- package/dist/assets/{index-DdQMqH36.js → index-CxAlUYeg.js} +1 -1
- package/dist/assets/{index-CnIYMEiN.js → index-DF2xwfOP.js} +1 -1
- package/dist/assets/{index-wdFo0Sfg.js → index-DJlTIBhw.js} +1 -1
- package/dist/assets/{index-BSr00ZmK.js → index-DP5WaEil.js} +1 -1
- package/dist/assets/{index-BF7ZXXC1.js → index-DR0NxKp6.js} +4 -4
- package/dist/assets/{index-CtQQYMUx.js → index-DW_V6-gm.js} +1 -1
- package/dist/assets/{index-gOnIj4Rb.js → index-Df7UYVfF.js} +1 -1
- package/dist/assets/{index-CB8acmN6.js → index-DqA-gjIa.js} +1 -1
- package/dist/assets/{index-DFY8jb7D.js → index-DvWX5lcP.js} +3 -3
- package/dist/assets/{index-CgSUIlrZ.js → index-DxWKZlex.js} +1 -1
- package/dist/assets/{index-hSGAxOdh.js → index-IQ9ogfc1.js} +1 -1
- package/dist/assets/{index-BLoPFMkc.js → index-M4HLFU5S.js} +1 -1
- package/dist/assets/{index-BdrLOxFM.js → index-NYTtKlvg.js} +1 -1
- package/dist/assets/{index-C0WGjtg-.js → index-cwJIaDF2.js} +3 -3
- package/dist/assets/{index-ak_q22RG.js → index-fakd9V57.js} +1 -1
- package/dist/assets/{index-DmehIOg4.js → index-kC_Fqlds.js} +1 -1
- package/dist/assets/{index-DsJOqL94.js → index-m7ojM69a.js} +1 -1
- package/dist/assets/{index-BBAn78dN.js → index-mV4olAJC.js} +13 -13
- package/dist/assets/{index-BQQj2X3R.js → index-xh6_T_pg.js} +1 -1
- package/dist/assets/{invitation-5s62ddPg.js → invitation-DTvEPNv5.js} +1 -1
- package/dist/assets/{invite-3Iwg7r6_.js → invite-C-gUUyrx.js} +1 -1
- package/dist/assets/{isEmail-9Cd87-Jf.js → isEmail-pxRJ4u4b.js} +1 -1
- package/dist/assets/{issue-passport-Bs_kcQrL.js → issue-passport-HXpJO7su.js} +1 -1
- package/dist/assets/{item-BoZPHIoN.js → item-CF17cwn5.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-CAi1eATI.js → jss-plugin-props-sort.esm-_8_SkzjI.js} +4 -4
- package/dist/assets/{launch-result-message-BKyjNhKo.js → launch-result-message-C-gi5Hcc.js} +1 -1
- package/dist/assets/{layout-D2dVjUzS.js → layout-C9kLxcxh.js} +1 -1
- package/dist/assets/{list-header-C4m5dLsI.js → list-header-Dayn2KVK.js} +1 -1
- package/dist/assets/localization-Dw2oX4iS.js +1 -0
- package/dist/assets/{log-C3JMMjMc.js → log-DSHQNgK9.js} +1 -1
- package/dist/assets/{login-Dvmflp_9.js → login-BODHtFGm.js} +1 -1
- package/dist/assets/{login-oauth-callback-CPc0zcES.js → login-oauth-callback-C6QHa1Lk.js} +1 -1
- package/dist/assets/{logo-uploader-CBETevxN.js → logo-uploader-C-nB71XI.js} +3 -3
- package/dist/assets/{lost-passport-DU8KQjn-.js → lost-passport-LHkfuCUF.js} +3 -3
- package/dist/assets/{lottie-react.esm-1vAuyi_k.js → lottie-react.esm-DQBqzPbm.js} +1 -1
- package/dist/assets/{notifications-BckZ6Zeg.js → notifications-BF8FV0zj.js} +1 -1
- package/dist/assets/{open-window-0wATMkvy.js → open-window-CqI5HjBH.js} +1 -1
- package/dist/assets/{overview-Btrxfq66.js → overview-e5YB5YK-.js} +1 -1
- package/dist/assets/{page-header-UrCX2Xf3.js → page-header-D_SotiVO.js} +1 -1
- package/dist/assets/{permission-HDkuilbX.js → permission-Dy3KYYSY.js} +1 -1
- package/dist/assets/{preferences-BY6jsr72.js → preferences-DtKur-cf.js} +1 -1
- package/dist/assets/publish-resource-C3yw04Cm.js +1 -0
- package/dist/assets/{raf-schd.esm-B0fy_Dud.js → raf-schd.esm-CW1B-XAd.js} +1 -1
- package/dist/assets/{react-beautiful-dnd.esm-qMe30Bxp.js → react-beautiful-dnd.esm-BX-ynXor.js} +1 -1
- package/dist/assets/refType-umpokUbq.js +1 -0
- package/dist/assets/{resource-dialog-oqFn-KmA.js → resource-dialog-BtcgMu0k.js} +1 -1
- package/dist/assets/sdk-DPOxEfov.js +1 -0
- package/dist/assets/{selector-DwWXI-4m.js → selector-gfopSmpe.js} +1 -1
- package/dist/assets/session-C-DlgGKg.js +1 -0
- package/dist/assets/{setup-BbMO8a0y.js → setup-Cwi2FI84.js} +3 -3
- package/dist/assets/{shorten-label-D-Kk5MqZ.js → shorten-label-B7-YS4W6.js} +1 -1
- package/dist/assets/{simple-select-r4Tnf5lE.js → simple-select-BSGZjRci.js} +1 -1
- package/dist/assets/{slicedToArray-BO_HbV5G.js → slicedToArray-CB6TRUBj.js} +1 -1
- package/dist/assets/{start-B4VFPrrl.js → start-NH0brBSS.js} +1 -1
- package/dist/assets/{step-actions-BRQxebyB.js → step-actions-jeUrWz6Q.js} +1 -1
- package/dist/assets/{studio-THlq023E.js → studio-zdyFZHI9.js} +1 -1
- package/dist/assets/{switch-control-8eQzUS4W.js → switch-control-CZG6Et6P.js} +1 -1
- package/dist/assets/{toUpper-DCrwupTk.js → toUpper-CZEXmczw.js} +1 -1
- package/dist/assets/{transfer-6dDKzuz2.js → transfer-D5kzQELC.js} +1 -1
- package/dist/assets/{trim-DYeSEo_Z.js → trim-BzoaQoDa.js} +1 -1
- package/dist/assets/{uniqBy-Vd8yZc0_.js → uniqBy-fWKa3D1V.js} +1 -1
- package/dist/assets/{unsubscribe-BWgJo6hj.js → unsubscribe-B8anERCw.js} +1 -1
- package/dist/assets/{url-join-BOuybw6E.js → url-join-BVKuS6lK.js} +1 -1
- package/dist/assets/{use-mobile-n7zuWNST.js → use-mobile-BLuHP_mI.js} +1 -1
- package/dist/assets/{use-mobile-BS_bqT1b.js → use-mobile-jpj1YD2L.js} +1 -1
- package/dist/assets/{useAsync-Bif71966.js → useAsync-BXZK4V5X.js} +1 -1
- package/dist/assets/{useFormControl-DqfIuuvt.js → useFormControl-CxIzvtrT.js} +1 -1
- package/dist/assets/{useLocalStorage-DMU1hTLM.js → useLocalStorage-CsSUReaJ.js} +1 -1
- package/dist/assets/{useSetState-CN9u96ki.js → useSetState-BzR-fcDn.js} +1 -1
- package/dist/assets/{useSlot-CHqta3Nf.js → useSlot-S_UbBXk0.js} +1 -1
- package/dist/assets/{useSlotProps-CCyJAuna.js → useSlotProps-j4B8dX4p.js} +1 -1
- package/dist/assets/{useThemeProps-BA28YyAa.js → useThemeProps-3q16yOwn.js} +1 -1
- package/dist/assets/{user-center-BDSX7lWk.js → user-center-4f1XBwHb.js} +1 -1
- package/dist/assets/{user-sessions-B3_Z4sc5.js → user-sessions-BneSaeAF.js} +1 -1
- package/dist/assets/{util-BDJl9b79.js → util-BvfRfOuB.js} +1 -1
- package/dist/assets/{wrap-locale-Cy5ov56q.js → wrap-locale-4KmuomrO.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +18 -18
- package/dist/assets/add-resource-DK1zuka_.js +0 -1
- package/dist/assets/api-BDt5g5RU.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-CdXTLibk.js +0 -1
- package/dist/assets/index-CElxuQNA.js +0 -23
- package/dist/assets/localization-DDRUsd3P.js +0 -1
- package/dist/assets/publish-resource-HbUTGqHz.js +0 -1
- package/dist/assets/refType-hOh2vas7.js +0 -1
- package/dist/assets/sdk-DAD_xkYB.js +0 -1
- package/dist/assets/session-CASkyLZm.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as S,d9 as St,i4 as pe,cn as Lt,cj as at,cM as wt,cV as Ge,cW as $e,i5 as Je,aM as c,cZ as Te,aG as Pt,aH as Ct,aO as oe,j as P,aI as J,aJ as B,cg as ot,cf as nt,cm as lt,eI as dt,aK as $t,cU as Tt,aL as _t,aN as Y,aP as Rt}from"./index-DFY8jb7D.js";const It={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function At(e,t,a=(l,d)=>l===d){return e.length===t.length&&e.every((l,d)=>a(l,t[d]))}const Mt=2;function pt(e,t){return e-t}function st(e,t){var a;const{index:l}=(a=e.reduce((d,L,C)=>{const m=Math.abs(t-L);return d===null||m<d.distance||m===d.distance?{distance:m,index:C}:d},null))!=null?a:{};return l}function Le(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const d=a.changedTouches[l];if(d.identifier===t.current)return{x:d.clientX,y:d.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,a){return(e-t)*100/(a-t)}function zt(e,t,a){return(a-t)*e+t}function Nt(e){if(Math.abs(e)<1){const a=e.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Vt(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Nt(t)))}function it({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(pt)}function we({sliderRef:e,activeIndex:t,setActive:a}){var l,d;const L=$e(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(d=L.activeElement)==null?void 0:d.getAttribute("data-index"))!==t){var C;(C=e.current)==null||C.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Pe(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?At(e,t):!1}const Et={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},jt=e=>e;let Ce;function ut(){return Ce===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ce=CSS.supports("touch-action","none"):Ce=!0),Ce}function Ft(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:d=!1,isRtl:L=!1,marks:C=!1,max:m=100,min:f=0,name:U,onChange:ne,onChangeCommitted:K,orientation:Z="horizontal",rootRef:fe,scale:le=jt,step:z=1,shiftStep:se=10,tabIndex:be,value:me}=e,E=S.useRef(),[W,H]=S.useState(-1),[ve,O]=S.useState(-1),[ie,ue]=S.useState(!1),X=S.useRef(0),[_,Q]=St({controlled:me,default:a??f,name:"Slider"}),N=ne&&((r,o,n)=>{const i=r.nativeEvent||r,u=new i.constructor(i.type,i);Object.defineProperty(u,"target",{writable:!0,value:{value:o,name:U}}),ne(u,o,n)}),q=Array.isArray(_);let y=q?_.slice().sort(pt):[_];y=y.map(r=>r==null?f:pe(r,f,m));const ce=C===!0&&z!==null?[...Array(Math.floor((m-f)/z)+1)].map((r,o)=>({value:f+z*o})):C||[],g=ce.map(r=>r.value),{isFocusVisibleRef:R,onBlur:Re,onFocus:Ie,ref:Ae}=Lt(),[he,G]=S.useState(-1),w=S.useRef(),ge=at(Ae,w),ye=at(fe,ge),ee=r=>o=>{var n;const i=Number(o.currentTarget.getAttribute("data-index"));Ie(o),R.current===!0&&G(i),O(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),O(-1),r==null||(n=r.onBlur)==null||n.call(r,o)},ke=(r,o)=>{const n=Number(r.currentTarget.getAttribute("data-index")),i=y[n],u=g.indexOf(i);let s=o;if(ce&&z==null){const M=g[g.length-1];s>M?s=M:s<g[0]?s=g[0]:s=s<i?g[u-1]:g[u+1]}if(s=pe(s,f,m),q){d&&(s=pe(s,y[n-1]||-1/0,y[n+1]||1/0));const M=s;s=it({values:y,newValue:s,index:n});let V=n;d||(V=s.indexOf(M)),we({sliderRef:w,activeIndex:V})}Q(s),G(n),N&&!Pe(s,_)&&N(r,s,n),K&&K(r,s)},Me=r=>o=>{var n;if(z!==null){const i=Number(o.currentTarget.getAttribute("data-index")),u=y[i];let s=null;(o.key==="ArrowLeft"||o.key==="ArrowDown")&&o.shiftKey||o.key==="PageDown"?s=Math.max(u-se,f):((o.key==="ArrowRight"||o.key==="ArrowUp")&&o.shiftKey||o.key==="PageUp")&&(s=Math.min(u+se,m)),s!==null&&(ke(o,s),o.preventDefault())}r==null||(n=r.onKeyDown)==null||n.call(r,o)};wt(()=>{if(l&&w.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[l]),l&&W!==-1&&H(-1),l&&he!==-1&&G(-1);const ze=r=>o=>{var n;(n=r.onChange)==null||n.call(r,o),ke(o,o.target.valueAsNumber)},xe=S.useRef();let j=Z;L&&Z==="horizontal"&&(j+="-reverse");const v=({finger:r,move:o=!1})=>{const{current:n}=w,{width:i,height:u,bottom:s,left:M}=n.getBoundingClientRect();let V;j.indexOf("vertical")===0?V=(s-r.y)/u:V=(r.x-M)/i,j.indexOf("-reverse")!==-1&&(V=1-V);let p;if(p=zt(V,f,m),z)p=Vt(p,z,f);else{const ae=st(g,p);p=g[ae]}p=pe(p,f,m);let $=0;if(q){o?$=xe.current:$=st(y,p),d&&(p=pe(p,y[$-1]||-1/0,y[$+1]||1/0));const ae=p;p=it({values:y,newValue:p,index:$}),d&&o||($=p.indexOf(ae),xe.current=$)}return{newValue:p,activeIndex:$}},b=Ge(r=>{const o=Le(r,E);if(!o)return;if(X.current+=1,r.type==="mousemove"&&r.buttons===0){I(r);return}const{newValue:n,activeIndex:i}=v({finger:o,move:!0});we({sliderRef:w,activeIndex:i,setActive:H}),Q(n),!ie&&X.current>Mt&&ue(!0),N&&!Pe(n,_)&&N(r,n,i)}),I=Ge(r=>{const o=Le(r,E);if(ue(!1),!o)return;const{newValue:n}=v({finger:o,move:!0});H(-1),r.type==="touchend"&&O(-1),K&&K(r,n),E.current=void 0,A()}),D=Ge(r=>{if(l)return;ut()||r.preventDefault();const o=r.changedTouches[0];o!=null&&(E.current=o.identifier);const n=Le(r,E);if(n!==!1){const{newValue:u,activeIndex:s}=v({finger:n});we({sliderRef:w,activeIndex:s,setActive:H}),Q(u),N&&!Pe(u,_)&&N(r,u,s)}X.current=0;const i=$e(w.current);i.addEventListener("touchmove",b,{passive:!0}),i.addEventListener("touchend",I,{passive:!0})}),A=S.useCallback(()=>{const r=$e(w.current);r.removeEventListener("mousemove",b),r.removeEventListener("mouseup",I),r.removeEventListener("touchmove",b),r.removeEventListener("touchend",I)},[I,b]);S.useEffect(()=>{const{current:r}=w;return r.addEventListener("touchstart",D,{passive:ut()}),()=>{r.removeEventListener("touchstart",D),A()}},[A,D]),S.useEffect(()=>{l&&A()},[l,A]);const Ne=r=>o=>{var n;if((n=r.onMouseDown)==null||n.call(r,o),l||o.defaultPrevented||o.button!==0)return;o.preventDefault();const i=Le(o,E);if(i!==!1){const{newValue:s,activeIndex:M}=v({finger:i});we({sliderRef:w,activeIndex:M,setActive:H}),Q(s),N&&!Pe(s,_)&&N(o,s,M)}X.current=0;const u=$e(w.current);u.addEventListener("mousemove",b,{passive:!0}),u.addEventListener("mouseup",I)},x=_e(q?y[0]:f,f,m),re=_e(y[y.length-1],f,m)-x,Ve=(r={})=>{const o=Je(r),n={onMouseDown:Ne(o||{})},i=c({},o,n);return c({},r,{ref:ye},i)},Ee=r=>o=>{var n;(n=r.onMouseOver)==null||n.call(r,o);const i=Number(o.currentTarget.getAttribute("data-index"));O(i)},je=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),O(-1)};return{active:W,axis:j,axisProps:Et,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Je(r),i={onChange:ze(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:Me(n||{})},u=c({},n,i);return c({tabIndex:be,"aria-labelledby":t,"aria-orientation":Z,"aria-valuemax":le(m),"aria-valuemin":le(f),name:U,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(o=e.step)!=null?o:void 0,disabled:l},r,u,{style:c({},It,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ve,getThumbProps:(r={})=>{const o=Je(r),n={onMouseOver:Ee(o||{}),onMouseLeave:je(o||{})};return c({},r,o,n)},marks:ce,open:ve,range:q,rootRef:ye,trackLeap:re,trackOffset:x,values:y,getThumbStyle:r=>({pointerEvents:W!==-1&&W!==r?"none":void 0})}}const Ht=e=>!e||!Te(e);function Ot(e){return Ct("MuiSlider",e)}const T=Pt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dt=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Yt(e){const{children:t,className:a,value:l}=e,d=Dt(e);return t?S.cloneElement(t,{className:oe(t.props.className)},P.jsxs(S.Fragment,{children:[t.props.children,P.jsx("span",{className:oe(d.offset,a),"aria-hidden":!0,children:P.jsx("span",{className:d.circle,children:P.jsx("span",{className:d.label,children:l})})})]})):null}const Bt=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function ct(e){return e}const Ut=J("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${B(a.color)}`],a.size!=="medium"&&t[`size${B(a.size)}`],a.marked&&t.marked,a.orientation==="vertical"&&t.vertical,a.track==="inverted"&&t.trackInverted,a.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${T.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${T.dragging}`]:{[`& .${T.thumb}, & .${T.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{color:(e.vars||e).palette[a].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Kt=J("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Wt=J("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a,track:"inverted"},style:c({},e.vars?{backgroundColor:e.vars.palette.Slider[`${a}Track`],borderColor:e.vars.palette.Slider[`${a}Track`]}:c({backgroundColor:ot(e.palette[a].main,.62),borderColor:ot(e.palette[a].main,.62)},e.applyStyles("dark",{backgroundColor:nt(e.palette[a].main,.5)}),e.applyStyles("dark",{borderColor:nt(e.palette[a].main,.5)})))}))]}}),Xt=J("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${B(a.color)}`],a.size!=="medium"&&t[`thumbSize${B(a.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${T.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{[`&:hover, &.${T.focusVisible}`]:c({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${lt(e.palette[a].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${T.active}`]:c({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${lt(e.palette[a].main,.16)}`})}}))]}}),qt=J(Yt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>c({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Gt=J("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>dt(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),Jt=J("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>dt(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>c({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Zt=e=>{const{disabled:t,dragging:a,marked:l,orientation:d,track:L,classes:C,color:m,size:f}=e,U={root:["root",t&&"disabled",a&&"dragging",l&&"marked",d==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",m&&`color${B(m)}`,f&&`size${B(f)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",f&&`thumbSize${B(f)}`,m&&`thumbColor${B(m)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Rt(U,Ot,C)},Qt=({children:e})=>e,tr=S.forwardRef(function(t,a){var l,d,L,C,m,f,U,ne,K,Z,fe,le,z,se,be,me,E,W,H,ve,O,ie,ue,X;const _=$t({props:t,name:"MuiSlider"}),Q=Tt(),{"aria-label":N,"aria-valuetext":q,"aria-labelledby":y,component:ce="span",components:g={},componentsProps:R={},color:Re="primary",classes:Ie,className:Ae,disableSwap:he=!1,disabled:G=!1,getAriaLabel:w,getAriaValueText:ge,marks:ye=!1,max:ee=100,min:te=0,orientation:ke="horizontal",shiftStep:Me=10,size:ze="medium",step:xe=1,scale:j=ct,slotProps:v,slots:b,track:I="normal",valueLabelDisplay:D="off",valueLabelFormat:A=ct}=_,Ne=_t(_,Bt),x=c({},_,{isRtl:Q,max:ee,min:te,classes:Ie,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:ze,step:xe,shiftStep:Me,scale:j,track:I,valueLabelDisplay:D,valueLabelFormat:A}),{axisProps:re,getRootProps:Ve,getHiddenInputProps:Ee,getThumbProps:je,open:Ze,active:Fe,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:M,getThumbStyle:V}=Ft(c({},x,{rootRef:a}));x.marked=i.length>0&&i.some(h=>h.label),x.dragging=n,x.focusedThumbIndex=r;const p=Zt(x),$=(l=(d=b==null?void 0:b.root)!=null?d:g.Root)!=null?l:Ut,ae=(L=(C=b==null?void 0:b.rail)!=null?C:g.Rail)!=null?L:Kt,Qe=(m=(f=b==null?void 0:b.track)!=null?f:g.Track)!=null?m:Wt,et=(U=(ne=b==null?void 0:b.thumb)!=null?ne:g.Thumb)!=null?U:Xt,tt=(K=(Z=b==null?void 0:b.valueLabel)!=null?Z:g.ValueLabel)!=null?K:qt,He=(fe=(le=b==null?void 0:b.mark)!=null?le:g.Mark)!=null?fe:Gt,Oe=(z=(se=b==null?void 0:b.markLabel)!=null?se:g.MarkLabel)!=null?z:Jt,rt=(be=(me=b==null?void 0:b.input)!=null?me:g.Input)!=null?be:"input",De=(E=v==null?void 0:v.root)!=null?E:R.root,ft=(W=v==null?void 0:v.rail)!=null?W:R.rail,Ye=(H=v==null?void 0:v.track)!=null?H:R.track,Be=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,Ue=(O=v==null?void 0:v.valueLabel)!=null?O:R.valueLabel,bt=(ie=v==null?void 0:v.mark)!=null?ie:R.mark,mt=(ue=v==null?void 0:v.markLabel)!=null?ue:R.markLabel,vt=(X=v==null?void 0:v.input)!=null?X:R.input,ht=Y({elementType:$,getSlotProps:Ve,externalSlotProps:De,externalForwardedProps:Ne,additionalProps:c({},Ht($)&&{as:ce}),ownerState:c({},x,De==null?void 0:De.ownerState),className:[p.root,Ae]}),gt=Y({elementType:ae,externalSlotProps:ft,ownerState:x,className:p.rail}),yt=Y({elementType:Qe,externalSlotProps:Ye,additionalProps:{style:c({},re[de].offset(s),re[de].leap(M))},ownerState:c({},x,Ye==null?void 0:Ye.ownerState),className:p.track}),Ke=Y({elementType:et,getSlotProps:je,externalSlotProps:Be,ownerState:c({},x,Be==null?void 0:Be.ownerState),className:p.thumb}),kt=Y({elementType:tt,externalSlotProps:Ue,ownerState:c({},x,Ue==null?void 0:Ue.ownerState),className:p.valueLabel}),We=Y({elementType:He,externalSlotProps:bt,ownerState:x,className:p.mark}),Xe=Y({elementType:Oe,externalSlotProps:mt,ownerState:x,className:p.markLabel}),xt=Y({elementType:rt,getSlotProps:Ee,externalSlotProps:vt,ownerState:x});return P.jsxs($,c({},ht,{children:[P.jsx(ae,c({},gt)),P.jsx(Qe,c({},yt)),i.filter(h=>h.value>=te&&h.value<=ee).map((h,k)=>{const qe=_e(h.value,te,ee),Se=re[de].offset(qe);let F;return I===!1?F=u.indexOf(h.value)!==-1:F=I==="normal"&&(o?h.value>=u[0]&&h.value<=u[u.length-1]:h.value<=u[0])||I==="inverted"&&(o?h.value<=u[0]||h.value>=u[u.length-1]:h.value>=u[0]),P.jsxs(S.Fragment,{children:[P.jsx(He,c({"data-index":k},We,!Te(He)&&{markActive:F},{style:c({},Se,We.style),className:oe(We.className,F&&p.markActive)})),h.label!=null?P.jsx(Oe,c({"aria-hidden":!0,"data-index":k},Xe,!Te(Oe)&&{markLabelActive:F},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,F&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),F=D==="off"?Qt:tt;return P.jsx(F,c({},!Te(F)&&{valueLabelFormat:A,valueLabelDisplay:D,value:typeof A=="function"?A(j(h),k):A,index:k,open:Ze===k||Fe===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ke,{className:oe(p.thumb,Ke.className,Fe===k&&p.active,r===k&&p.focusVisible),style:c({},Se,V(k),Ke.style),children:P.jsx(rt,c({"data-index":k,"aria-label":w?w(k):N,"aria-valuenow":j(h),"aria-labelledby":y,"aria-valuetext":ge?ge(j(h),k):q,value:u[k]},xt))}))}),k)})]}))});export{tr as S};
|
|
1
|
+
import{r as S,d9 as St,i4 as pe,cn as Lt,cj as at,cM as wt,cV as Ge,cW as $e,i5 as Je,aM as c,cZ as Te,aG as Pt,aH as Ct,aO as oe,j as P,aI as J,aJ as B,cg as ot,cf as nt,cm as lt,eI as dt,aK as $t,cU as Tt,aL as _t,aN as Y,aP as Rt}from"./index-DvWX5lcP.js";const It={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function At(e,t,a=(l,d)=>l===d){return e.length===t.length&&e.every((l,d)=>a(l,t[d]))}const Mt=2;function pt(e,t){return e-t}function st(e,t){var a;const{index:l}=(a=e.reduce((d,L,C)=>{const m=Math.abs(t-L);return d===null||m<d.distance||m===d.distance?{distance:m,index:C}:d},null))!=null?a:{};return l}function Le(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const d=a.changedTouches[l];if(d.identifier===t.current)return{x:d.clientX,y:d.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,a){return(e-t)*100/(a-t)}function zt(e,t,a){return(a-t)*e+t}function Nt(e){if(Math.abs(e)<1){const a=e.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Vt(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Nt(t)))}function it({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(pt)}function we({sliderRef:e,activeIndex:t,setActive:a}){var l,d;const L=$e(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(d=L.activeElement)==null?void 0:d.getAttribute("data-index"))!==t){var C;(C=e.current)==null||C.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Pe(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?At(e,t):!1}const Et={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},jt=e=>e;let Ce;function ut(){return Ce===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ce=CSS.supports("touch-action","none"):Ce=!0),Ce}function Ft(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:d=!1,isRtl:L=!1,marks:C=!1,max:m=100,min:f=0,name:U,onChange:ne,onChangeCommitted:K,orientation:Z="horizontal",rootRef:fe,scale:le=jt,step:z=1,shiftStep:se=10,tabIndex:be,value:me}=e,E=S.useRef(),[W,H]=S.useState(-1),[ve,O]=S.useState(-1),[ie,ue]=S.useState(!1),X=S.useRef(0),[_,Q]=St({controlled:me,default:a??f,name:"Slider"}),N=ne&&((r,o,n)=>{const i=r.nativeEvent||r,u=new i.constructor(i.type,i);Object.defineProperty(u,"target",{writable:!0,value:{value:o,name:U}}),ne(u,o,n)}),q=Array.isArray(_);let y=q?_.slice().sort(pt):[_];y=y.map(r=>r==null?f:pe(r,f,m));const ce=C===!0&&z!==null?[...Array(Math.floor((m-f)/z)+1)].map((r,o)=>({value:f+z*o})):C||[],g=ce.map(r=>r.value),{isFocusVisibleRef:R,onBlur:Re,onFocus:Ie,ref:Ae}=Lt(),[he,G]=S.useState(-1),w=S.useRef(),ge=at(Ae,w),ye=at(fe,ge),ee=r=>o=>{var n;const i=Number(o.currentTarget.getAttribute("data-index"));Ie(o),R.current===!0&&G(i),O(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),O(-1),r==null||(n=r.onBlur)==null||n.call(r,o)},ke=(r,o)=>{const n=Number(r.currentTarget.getAttribute("data-index")),i=y[n],u=g.indexOf(i);let s=o;if(ce&&z==null){const M=g[g.length-1];s>M?s=M:s<g[0]?s=g[0]:s=s<i?g[u-1]:g[u+1]}if(s=pe(s,f,m),q){d&&(s=pe(s,y[n-1]||-1/0,y[n+1]||1/0));const M=s;s=it({values:y,newValue:s,index:n});let V=n;d||(V=s.indexOf(M)),we({sliderRef:w,activeIndex:V})}Q(s),G(n),N&&!Pe(s,_)&&N(r,s,n),K&&K(r,s)},Me=r=>o=>{var n;if(z!==null){const i=Number(o.currentTarget.getAttribute("data-index")),u=y[i];let s=null;(o.key==="ArrowLeft"||o.key==="ArrowDown")&&o.shiftKey||o.key==="PageDown"?s=Math.max(u-se,f):((o.key==="ArrowRight"||o.key==="ArrowUp")&&o.shiftKey||o.key==="PageUp")&&(s=Math.min(u+se,m)),s!==null&&(ke(o,s),o.preventDefault())}r==null||(n=r.onKeyDown)==null||n.call(r,o)};wt(()=>{if(l&&w.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[l]),l&&W!==-1&&H(-1),l&&he!==-1&&G(-1);const ze=r=>o=>{var n;(n=r.onChange)==null||n.call(r,o),ke(o,o.target.valueAsNumber)},xe=S.useRef();let j=Z;L&&Z==="horizontal"&&(j+="-reverse");const v=({finger:r,move:o=!1})=>{const{current:n}=w,{width:i,height:u,bottom:s,left:M}=n.getBoundingClientRect();let V;j.indexOf("vertical")===0?V=(s-r.y)/u:V=(r.x-M)/i,j.indexOf("-reverse")!==-1&&(V=1-V);let p;if(p=zt(V,f,m),z)p=Vt(p,z,f);else{const ae=st(g,p);p=g[ae]}p=pe(p,f,m);let $=0;if(q){o?$=xe.current:$=st(y,p),d&&(p=pe(p,y[$-1]||-1/0,y[$+1]||1/0));const ae=p;p=it({values:y,newValue:p,index:$}),d&&o||($=p.indexOf(ae),xe.current=$)}return{newValue:p,activeIndex:$}},b=Ge(r=>{const o=Le(r,E);if(!o)return;if(X.current+=1,r.type==="mousemove"&&r.buttons===0){I(r);return}const{newValue:n,activeIndex:i}=v({finger:o,move:!0});we({sliderRef:w,activeIndex:i,setActive:H}),Q(n),!ie&&X.current>Mt&&ue(!0),N&&!Pe(n,_)&&N(r,n,i)}),I=Ge(r=>{const o=Le(r,E);if(ue(!1),!o)return;const{newValue:n}=v({finger:o,move:!0});H(-1),r.type==="touchend"&&O(-1),K&&K(r,n),E.current=void 0,A()}),D=Ge(r=>{if(l)return;ut()||r.preventDefault();const o=r.changedTouches[0];o!=null&&(E.current=o.identifier);const n=Le(r,E);if(n!==!1){const{newValue:u,activeIndex:s}=v({finger:n});we({sliderRef:w,activeIndex:s,setActive:H}),Q(u),N&&!Pe(u,_)&&N(r,u,s)}X.current=0;const i=$e(w.current);i.addEventListener("touchmove",b,{passive:!0}),i.addEventListener("touchend",I,{passive:!0})}),A=S.useCallback(()=>{const r=$e(w.current);r.removeEventListener("mousemove",b),r.removeEventListener("mouseup",I),r.removeEventListener("touchmove",b),r.removeEventListener("touchend",I)},[I,b]);S.useEffect(()=>{const{current:r}=w;return r.addEventListener("touchstart",D,{passive:ut()}),()=>{r.removeEventListener("touchstart",D),A()}},[A,D]),S.useEffect(()=>{l&&A()},[l,A]);const Ne=r=>o=>{var n;if((n=r.onMouseDown)==null||n.call(r,o),l||o.defaultPrevented||o.button!==0)return;o.preventDefault();const i=Le(o,E);if(i!==!1){const{newValue:s,activeIndex:M}=v({finger:i});we({sliderRef:w,activeIndex:M,setActive:H}),Q(s),N&&!Pe(s,_)&&N(o,s,M)}X.current=0;const u=$e(w.current);u.addEventListener("mousemove",b,{passive:!0}),u.addEventListener("mouseup",I)},x=_e(q?y[0]:f,f,m),re=_e(y[y.length-1],f,m)-x,Ve=(r={})=>{const o=Je(r),n={onMouseDown:Ne(o||{})},i=c({},o,n);return c({},r,{ref:ye},i)},Ee=r=>o=>{var n;(n=r.onMouseOver)==null||n.call(r,o);const i=Number(o.currentTarget.getAttribute("data-index"));O(i)},je=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),O(-1)};return{active:W,axis:j,axisProps:Et,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Je(r),i={onChange:ze(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:Me(n||{})},u=c({},n,i);return c({tabIndex:be,"aria-labelledby":t,"aria-orientation":Z,"aria-valuemax":le(m),"aria-valuemin":le(f),name:U,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(o=e.step)!=null?o:void 0,disabled:l},r,u,{style:c({},It,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ve,getThumbProps:(r={})=>{const o=Je(r),n={onMouseOver:Ee(o||{}),onMouseLeave:je(o||{})};return c({},r,o,n)},marks:ce,open:ve,range:q,rootRef:ye,trackLeap:re,trackOffset:x,values:y,getThumbStyle:r=>({pointerEvents:W!==-1&&W!==r?"none":void 0})}}const Ht=e=>!e||!Te(e);function Ot(e){return Ct("MuiSlider",e)}const T=Pt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dt=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Yt(e){const{children:t,className:a,value:l}=e,d=Dt(e);return t?S.cloneElement(t,{className:oe(t.props.className)},P.jsxs(S.Fragment,{children:[t.props.children,P.jsx("span",{className:oe(d.offset,a),"aria-hidden":!0,children:P.jsx("span",{className:d.circle,children:P.jsx("span",{className:d.label,children:l})})})]})):null}const Bt=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function ct(e){return e}const Ut=J("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${B(a.color)}`],a.size!=="medium"&&t[`size${B(a.size)}`],a.marked&&t.marked,a.orientation==="vertical"&&t.vertical,a.track==="inverted"&&t.trackInverted,a.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${T.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${T.dragging}`]:{[`& .${T.thumb}, & .${T.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{color:(e.vars||e).palette[a].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Kt=J("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Wt=J("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a,track:"inverted"},style:c({},e.vars?{backgroundColor:e.vars.palette.Slider[`${a}Track`],borderColor:e.vars.palette.Slider[`${a}Track`]}:c({backgroundColor:ot(e.palette[a].main,.62),borderColor:ot(e.palette[a].main,.62)},e.applyStyles("dark",{backgroundColor:nt(e.palette[a].main,.5)}),e.applyStyles("dark",{borderColor:nt(e.palette[a].main,.5)})))}))]}}),Xt=J("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${B(a.color)}`],a.size!=="medium"&&t[`thumbSize${B(a.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${T.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{[`&:hover, &.${T.focusVisible}`]:c({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${lt(e.palette[a].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${T.active}`]:c({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${lt(e.palette[a].main,.16)}`})}}))]}}),qt=J(Yt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>c({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Gt=J("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>dt(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),Jt=J("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>dt(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>c({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Zt=e=>{const{disabled:t,dragging:a,marked:l,orientation:d,track:L,classes:C,color:m,size:f}=e,U={root:["root",t&&"disabled",a&&"dragging",l&&"marked",d==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",m&&`color${B(m)}`,f&&`size${B(f)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",f&&`thumbSize${B(f)}`,m&&`thumbColor${B(m)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Rt(U,Ot,C)},Qt=({children:e})=>e,tr=S.forwardRef(function(t,a){var l,d,L,C,m,f,U,ne,K,Z,fe,le,z,se,be,me,E,W,H,ve,O,ie,ue,X;const _=$t({props:t,name:"MuiSlider"}),Q=Tt(),{"aria-label":N,"aria-valuetext":q,"aria-labelledby":y,component:ce="span",components:g={},componentsProps:R={},color:Re="primary",classes:Ie,className:Ae,disableSwap:he=!1,disabled:G=!1,getAriaLabel:w,getAriaValueText:ge,marks:ye=!1,max:ee=100,min:te=0,orientation:ke="horizontal",shiftStep:Me=10,size:ze="medium",step:xe=1,scale:j=ct,slotProps:v,slots:b,track:I="normal",valueLabelDisplay:D="off",valueLabelFormat:A=ct}=_,Ne=_t(_,Bt),x=c({},_,{isRtl:Q,max:ee,min:te,classes:Ie,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:ze,step:xe,shiftStep:Me,scale:j,track:I,valueLabelDisplay:D,valueLabelFormat:A}),{axisProps:re,getRootProps:Ve,getHiddenInputProps:Ee,getThumbProps:je,open:Ze,active:Fe,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:M,getThumbStyle:V}=Ft(c({},x,{rootRef:a}));x.marked=i.length>0&&i.some(h=>h.label),x.dragging=n,x.focusedThumbIndex=r;const p=Zt(x),$=(l=(d=b==null?void 0:b.root)!=null?d:g.Root)!=null?l:Ut,ae=(L=(C=b==null?void 0:b.rail)!=null?C:g.Rail)!=null?L:Kt,Qe=(m=(f=b==null?void 0:b.track)!=null?f:g.Track)!=null?m:Wt,et=(U=(ne=b==null?void 0:b.thumb)!=null?ne:g.Thumb)!=null?U:Xt,tt=(K=(Z=b==null?void 0:b.valueLabel)!=null?Z:g.ValueLabel)!=null?K:qt,He=(fe=(le=b==null?void 0:b.mark)!=null?le:g.Mark)!=null?fe:Gt,Oe=(z=(se=b==null?void 0:b.markLabel)!=null?se:g.MarkLabel)!=null?z:Jt,rt=(be=(me=b==null?void 0:b.input)!=null?me:g.Input)!=null?be:"input",De=(E=v==null?void 0:v.root)!=null?E:R.root,ft=(W=v==null?void 0:v.rail)!=null?W:R.rail,Ye=(H=v==null?void 0:v.track)!=null?H:R.track,Be=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,Ue=(O=v==null?void 0:v.valueLabel)!=null?O:R.valueLabel,bt=(ie=v==null?void 0:v.mark)!=null?ie:R.mark,mt=(ue=v==null?void 0:v.markLabel)!=null?ue:R.markLabel,vt=(X=v==null?void 0:v.input)!=null?X:R.input,ht=Y({elementType:$,getSlotProps:Ve,externalSlotProps:De,externalForwardedProps:Ne,additionalProps:c({},Ht($)&&{as:ce}),ownerState:c({},x,De==null?void 0:De.ownerState),className:[p.root,Ae]}),gt=Y({elementType:ae,externalSlotProps:ft,ownerState:x,className:p.rail}),yt=Y({elementType:Qe,externalSlotProps:Ye,additionalProps:{style:c({},re[de].offset(s),re[de].leap(M))},ownerState:c({},x,Ye==null?void 0:Ye.ownerState),className:p.track}),Ke=Y({elementType:et,getSlotProps:je,externalSlotProps:Be,ownerState:c({},x,Be==null?void 0:Be.ownerState),className:p.thumb}),kt=Y({elementType:tt,externalSlotProps:Ue,ownerState:c({},x,Ue==null?void 0:Ue.ownerState),className:p.valueLabel}),We=Y({elementType:He,externalSlotProps:bt,ownerState:x,className:p.mark}),Xe=Y({elementType:Oe,externalSlotProps:mt,ownerState:x,className:p.markLabel}),xt=Y({elementType:rt,getSlotProps:Ee,externalSlotProps:vt,ownerState:x});return P.jsxs($,c({},ht,{children:[P.jsx(ae,c({},gt)),P.jsx(Qe,c({},yt)),i.filter(h=>h.value>=te&&h.value<=ee).map((h,k)=>{const qe=_e(h.value,te,ee),Se=re[de].offset(qe);let F;return I===!1?F=u.indexOf(h.value)!==-1:F=I==="normal"&&(o?h.value>=u[0]&&h.value<=u[u.length-1]:h.value<=u[0])||I==="inverted"&&(o?h.value<=u[0]||h.value>=u[u.length-1]:h.value>=u[0]),P.jsxs(S.Fragment,{children:[P.jsx(He,c({"data-index":k},We,!Te(He)&&{markActive:F},{style:c({},Se,We.style),className:oe(We.className,F&&p.markActive)})),h.label!=null?P.jsx(Oe,c({"aria-hidden":!0,"data-index":k},Xe,!Te(Oe)&&{markLabelActive:F},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,F&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),F=D==="off"?Qt:tt;return P.jsx(F,c({},!Te(F)&&{valueLabelFormat:A,valueLabelDisplay:D,value:typeof A=="function"?A(j(h),k):A,index:k,open:Ze===k||Fe===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ke,{className:oe(p.thumb,Ke.className,Fe===k&&p.active,r===k&&p.focusVisible),style:c({},Se,V(k),Ke.style),children:P.jsx(rt,c({"data-index":k,"aria-label":w?w(k):N,"aria-valuenow":j(h),"aria-labelledby":y,"aria-valuetext":ge?ge(j(h),k):q,value:u[k]},xt))}))}),k)})]}))});export{tr as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dm as b,dn as T,aM as k,dp as g,dq as d,dr as D,ds as F,dt as M,r as p,du as B,aL as E,j as G,aO as N,dv as O,aP as L,aH as U,dw as h,aI as _,aK as $}from"./index-
|
|
1
|
+
import{dm as b,dn as T,aM as k,dp as g,dq as d,dr as D,ds as F,dt as M,r as p,du as B,aL as E,j as G,aO as N,dv as O,aP as L,aH as U,dw as h,aI as _,aK as $}from"./index-DvWX5lcP.js";const A=["component","direction","spacing","divider","children","className","useFlexGap"],I=b(),q=T("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,s)=>s.root});function H(e){return O({props:e,name:"MuiStack",defaultTheme:I})}function K(e,s){const n=p.Children.toArray(e).filter(Boolean);return n.reduce((a,c,t)=>(a.push(c),t<n.length-1&&a.push(p.cloneElement(s,{key:`separator-${t}`})),a),[])}const W=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],z=({ownerState:e,theme:s})=>{let n=k({display:"flex",flexDirection:"column"},g({theme:s},d({values:e.direction,breakpoints:s.breakpoints.values}),a=>({flexDirection:a})));if(e.spacing){const a=D(s),c=Object.keys(s.breakpoints.values).reduce((o,r)=>((typeof e.spacing=="object"&&e.spacing[r]!=null||typeof e.direction=="object"&&e.direction[r]!=null)&&(o[r]=!0),o),{}),t=d({values:e.direction,base:c}),m=d({values:e.spacing,base:c});typeof t=="object"&&Object.keys(t).forEach((o,r,i)=>{if(!t[o]){const u=r>0?t[i[r-1]]:"column";t[o]=u}}),n=F(n,g({theme:s},m,(o,r)=>e.useFlexGap?{gap:h(a,o)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${W(r?t[r]:e.direction)}`]:h(a,o)}}))}return n=M(s.breakpoints,n),n};function J(e={}){const{createStyledComponent:s=q,useThemeProps:n=H,componentName:a="MuiStack"}=e,c=()=>L({root:["root"]},o=>U(a,o),{}),t=s(z);return p.forwardRef(function(o,r){const i=n(o),l=B(i),{component:u="div",direction:x="column",spacing:P=0,divider:y,children:v,className:j,useFlexGap:C=!1}=l,S=E(l,A),R={direction:x,spacing:P,useFlexGap:C},V=c();return G.jsx(t,k({as:u,ownerState:R,ref:r,className:N(V.root,j)},S,{children:y?K(v,y):v}))})}const X=J({createStyledComponent:_("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,s)=>s.root}),useThemeProps:e=>$({props:e,name:"MuiStack"})});export{X as S,J as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as v,aH as w,aG as U,aI as S,aM as s,aK as _,aL as W,j as i,aO as P,aP as k,av as H,cz as B,aJ as V}from"./index-
|
|
1
|
+
import{r as v,aH as w,aG as U,aI as S,aM as s,aK as _,aL as W,j as i,aO as P,aP as k,av as H,cz as B,aJ as V}from"./index-DvWX5lcP.js";const T=v.createContext({}),E=v.createContext({});function G(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const J=["active","children","className","component","completed","disabled","expanded","index","last"],K=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return k({root:["root",o,n&&"alternativeLabel",a&&"completed"]},G,t)},O=S("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),he=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:r,className:u,component:c="div",completed:p,disabled:b,expanded:d=!1,index:l,last:m}=n,R=W(n,J),{activeStep:h,connector:L,alternativeLabel:y,orientation:I,nonLinear:M}=v.useContext(T);let[x=!1,j=!1,f=!1]=[a,p,b];h===l?x=a!==void 0?a:!0:!M&&h>l?j=p!==void 0?p:!0:!M&&h<l&&(f=b!==void 0?b:!0);const N=v.useMemo(()=>({index:l,last:m,expanded:d,icon:l+1,active:x,completed:j,disabled:f}),[l,m,d,x,j,f]),C=s({},n,{active:x,orientation:I,alternativeLabel:y,completed:j,disabled:f,expanded:d,component:c}),$=K(C),z=i.jsxs(O,s({as:c,className:P($.root,u),ref:o,ownerState:C},R,{children:[L&&y&&l!==0?L:null,r]}));return i.jsx(E.Provider,{value:N,children:L&&!y&&l!==0?i.jsxs(v.Fragment,{children:[L,z]}):z})}),q=H(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Q=H(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function X(e){return w("MuiStepIcon",e)}const A=U("MuiStepIcon",["root","active","completed","error","text"]);var F;const Y=["active","className","completed","error","icon"],Z=e=>{const{classes:t,active:o,completed:n,error:a}=e;return k({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},X,t)},D=S(B,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),ee=S("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),te=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:r,completed:u=!1,error:c=!1,icon:p}=n,b=W(n,Y),d=s({},n,{active:a,completed:u,error:c}),l=Z(d);if(typeof p=="number"||typeof p=="string"){const m=P(r,l.root);return c?i.jsx(D,s({as:Q,className:m,ref:o,ownerState:d},b)):u?i.jsx(D,s({as:q,className:m,ref:o,ownerState:d},b)):i.jsxs(D,s({className:m,ref:o,ownerState:d},b,{children:[F||(F=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(ee,{className:l.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:p})]}))}return p});function oe(e){return w("MuiStepLabel",e)}const g=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),ne=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],ae=e=>{const{classes:t,orientation:o,active:n,completed:a,error:r,disabled:u,alternativeLabel:c}=e;return k({root:["root",o,r&&"error",u&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",r&&"error",u&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",r&&"error",u&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},oe,t)},re=S("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>s({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),le=S("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>s({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),se=S("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),ie=S("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),ce=v.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:r,className:u,componentsProps:c={},error:p=!1,icon:b,optional:d,slotProps:l={},StepIconComponent:m,StepIconProps:R}=a,h=W(a,ne),{alternativeLabel:L,orientation:y}=v.useContext(T),{active:I,disabled:M,completed:x,icon:j}=v.useContext(E),f=b||j;let N=m;f&&!N&&(N=te);const C=s({},a,{active:I,alternativeLabel:L,completed:x,disabled:M,error:p,orientation:y}),$=ae(C),z=(n=l.label)!=null?n:c.label;return i.jsxs(re,s({className:P($.root,u),ref:o,ownerState:C},h,{children:[f||N?i.jsx(se,{className:$.iconContainer,ownerState:C,children:i.jsx(N,s({completed:x,active:I,error:p,icon:f},R))}):null,i.jsxs(ie,{className:$.labelContainer,ownerState:C,children:[r?i.jsx(le,s({ownerState:C},z,{className:P($.label,z==null?void 0:z.className),children:r})):null,d]})]}))});ce.muiName="StepLabel";function pe(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const de=["className"],ve=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:r,disabled:u}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",r&&"completed",u&&"disabled"],line:["line",`line${V(o)}`]};return k(c,pe,t)},ue=S("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),be=S("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${V(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return s({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),me=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,r=W(n,de),{alternativeLabel:u,orientation:c="horizontal"}=v.useContext(T),{active:p,disabled:b,completed:d}=v.useContext(E),l=s({},n,{alternativeLabel:u,orientation:c,active:p,completed:d,disabled:b}),m=ve(l);return i.jsx(ue,s({className:P(m.root,a),ref:o,ownerState:l},r,{children:i.jsx(be,{className:m.line,ownerState:l})}))});function xe(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const Se=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Le=e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:a}=e;return k({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},xe,a)},fe=S("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})(({ownerState:e})=>s({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ce=i.jsx(me,{}),ye=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:r=!1,children:u,className:c,component:p="div",connector:b=Ce,nonLinear:d=!1,orientation:l="horizontal"}=n,m=W(n,Se),R=s({},n,{nonLinear:d,alternativeLabel:r,orientation:l,component:p}),h=Le(R),L=v.Children.toArray(u).filter(Boolean),y=L.map((M,x)=>v.cloneElement(M,s({index:x,last:x+1===L.length},M.props))),I=v.useMemo(()=>({activeStep:a,alternativeLabel:r,connector:b,nonLinear:d,orientation:l}),[a,r,b,d,l]);return i.jsx(T.Provider,{value:I,children:i.jsx(fe,s({as:p,ownerState:R,className:P(h.root,c),ref:o},m,{children:y}))})});export{ye as S,he as a,ce as b,E as c,T as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aG as q,aH as L,aI as S,aJ as $,aM as a,r as N,aK as U,aL as _,j as i,aO as O,aP as B,da as re}from"./index-
|
|
1
|
+
import{aG as q,aH as L,aI as S,aJ as $,aM as a,r as N,aK as U,aL as _,j as i,aO as O,aP as B,da as re}from"./index-DvWX5lcP.js";import{F as ae}from"./FormControl-DKFNjq8h.js";import{d as le,S as ie,a as ne,F as de,O as ce}from"./Select-CG30SlQk.js";import{u as ue,f as pe}from"./useFormControl-CxIzvtrT.js";function me(e){return L("MuiFormHelperText",e)}const j=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var w;const fe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xe=e=>{const{classes:o,contained:t,size:r,disabled:n,error:d,filled:c,focused:p,required:u}=e,s={root:["root",n&&"disabled",d&&"error",r&&`size${$(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return B(s,me,o)},Fe=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${$(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${j.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),be=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=r,p=_(r,fe),u=ue(),s=pe({props:r,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:c,contained:s.variant==="filled"||s.variant==="outlined",variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),F=xe(m);return i.jsx(Fe,a({as:c,ownerState:m,className:O(F.root,d),ref:t},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:""})):n}))});function ve(e){return L("MuiTextField",e)}const ze=q("MuiTextField",["root"]),Te=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],he={standard:ne,filled:de,outlined:ce},ge=e=>{const{classes:o}=e;return B({root:["root"]},ve,o)},Ce=S(ae,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),He=N.forwardRef(function(o,t){const r=U({props:o,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:s,disabled:m=!1,error:F=!1,FormHelperTextProps:E,fullWidth:T=!1,helperText:h,id:W,InputLabelProps:b,inputProps:k,InputProps:V,inputRef:A,label:f,maxRows:D,minRows:G,multiline:I=!1,name:J,onBlur:K,onChange:Q,onFocus:X,placeholder:Y,required:y=!1,rows:Z,select:g=!1,SelectProps:C,type:ee,value:P,variant:v="outlined"}=r,oe=_(r,Te),z=a({},r,{autoFocus:d,color:u,disabled:m,error:F,fullWidth:T,multiline:I,required:y,select:g,variant:v}),se=ge(z),x={};v==="outlined"&&(b&&typeof b.shrink<"u"&&(x.notched=b.shrink),x.label=f),g&&((!C||!C.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const l=re(W),R=h&&l?`${l}-helper-text`:void 0,H=f&&l?`${l}-label`:void 0,te=he[v],M=i.jsx(te,a({"aria-describedby":R,autoComplete:n,autoFocus:d,defaultValue:s,fullWidth:T,multiline:I,name:J,rows:Z,maxRows:D,minRows:G,type:ee,value:P,id:l,inputRef:A,onBlur:K,onChange:Q,onFocus:X,placeholder:Y,inputProps:k},x,V));return i.jsxs(Ce,a({className:O(se.root,p),disabled:m,error:F,fullWidth:T,ref:t,required:y,color:u,variant:v,ownerState:z},oe,{children:[f!=null&&f!==""&&i.jsx(le,a({htmlFor:l,id:H},b,{children:f})),g?i.jsx(ie,a({"aria-describedby":R,id:l,labelId:H,value:P,input:M},C,{children:c})):M,h&&i.jsx(be,a({id:R},E,{children:h}))]}))});export{be as F,He as T,ve as g,ze as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aH as d,aG as g,aI as b,aM as e,r as m,aK as v,aL as f,j as x,aO as T,aP as R}from"./index-
|
|
1
|
+
import{aH as d,aG as g,aI as b,aM as e,r as m,aK as v,aL as f,j as x,aO as T,aP as R}from"./index-DvWX5lcP.js";function C(s){return d("MuiToolbar",s)}const L=g("MuiToolbar",["root","gutters","regular","dense"]),G=["className","component","disableGutters","variant"],M=s=>{const{classes:a,disableGutters:t,variant:o}=s;return R({root:["root",!t&&"gutters",o]},C,a)},j=b("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(s,a)=>{const{ownerState:t}=s;return[a.root,!t.disableGutters&&a.gutters,a[t.variant]]}})(({theme:s,ownerState:a})=>e({position:"relative",display:"flex",alignItems:"center"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}},a.variant==="dense"&&{minHeight:48}),({theme:s,ownerState:a})=>a.variant==="regular"&&s.mixins.toolbar),U=m.forwardRef(function(a,t){const o=v({props:a,name:"MuiToolbar"}),{className:r,component:n="div",disableGutters:l=!1,variant:c="regular"}=o,u=f(o,G),i=e({},o,{component:n,disableGutters:l,variant:c}),p=M(i);return x.jsx(j,e({as:n,className:T(p.root,r),ref:t,ownerState:i},u))});export{U as T,C as g,L as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Z as e,$ as a,j as r}from"./index-
|
|
1
|
+
import{Z as e,$ as a,j as r}from"./index-DvWX5lcP.js";var t={},l=a;Object.defineProperty(t,"__esModule",{value:!0});var o=t.default=void 0,d=l(e()),i=r;o=t.default=(0,d.default)((0,i.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");var u={},s=a;Object.defineProperty(u,"__esModule",{value:!0});var f=u.default=void 0,_=s(e()),n=r;f=u.default=(0,_.default)((0,n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");var v={},p=a;Object.defineProperty(v,"__esModule",{value:!0});var m=v.default=void 0,j=p(e()),R=r;m=v.default=(0,j.default)((0,R.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn");export{u as C,t as R,v as V,m as a,o as b,f as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Z as t,$ as r,j as a}from"./index-
|
|
1
|
+
import{Z as t,$ as r,j as a}from"./index-DvWX5lcP.js";var e={},i=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=i(t()),o=a;u=e.default=(0,v.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");export{u as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{il as I,r as q,im as M,X as L,
|
|
1
|
+
import{il as I,r as q,im as M,X as L,eU as O,io as x,ip as $,W as T,bA as z,iq as N,ez as P,fa as S}from"./index-DvWX5lcP.js";var U=function(r,a){return r===void 0&&(r=[]),a===void 0&&(a=[]),I(r,a)},V=function(r,a,n){var e=q.useRef(),t=q.useRef(0);U(a,e.current)||(t.current+=1),e.current=a,M(r,[t.current],n)},X=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),W={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:X?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},K={ctrl:function(r){return r.ctrlKey},shift:function(r){return r.shiftKey},alt:function(r){return r.altKey},meta:function(r){return r.type==="keyup"?W.meta.includes(r.keyCode):r.metaKey}};function j(r){return $(r)||T(r)}function J(r){var a=Object.keys(K).reduce(function(n,e){return K[e](r)?n+1:n},0);return[16,17,18,91,92].includes(r.keyCode)?a:a+1}function R(r,a,n){var e,t;if(!r.key)return!1;if(T(a))return r.keyCode===a?a:!1;var o=a.split("."),i=0;try{for(var l=x(o),d=l.next();!d.done;d=l.next()){var g=d.value,p=K[g],y=W[g.toLowerCase()];(p&&p(r)||y&&y===r.keyCode)&&i++}}catch(w){e={error:w}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}return n?i===o.length&&J(r)===o.length?a:!1:i===o.length?a:!1}function Q(r,a){return z(r)?r:j(r)?function(n){return R(n,r,a)}:Array.isArray(r)?function(n){return r.find(function(e){return R(n,e,a)})}:function(){return!!r}}var Y=["keydown"];function ur(r,a,n){var e=n||{},t=e.events,o=t===void 0?Y:t,i=e.target,l=e.exactMatch,d=l===void 0?!1:l,g=e.useCapture,p=g===void 0?!1:g,y=L(a),w=L(r);V(function(){var k,A,E,u=O(i,window);if(u){var C=function(f){var v,h=Q(w.current,d),c=h(f),s=j(c)?c:f.key;if(c)return(v=y.current)===null||v===void 0?void 0:v.call(y,f,s)};try{for(var b=x(o),m=b.next();!m.done;m=b.next()){var B=m.value;(E=u==null?void 0:u.addEventListener)===null||E===void 0||E.call(u,B,C,p)}}catch(f){k={error:f}}finally{try{m&&!m.done&&(A=b.return)&&A.call(b)}finally{if(k)throw k.error}}return function(){var f,v,h;try{for(var c=x(o),s=c.next();!s.done;s=c.next()){var G=s.value;(h=u==null?void 0:u.removeEventListener)===null||h===void 0||h.call(u,G,C,p)}}catch(H){f={error:H}}finally{try{s&&!s.done&&(v=c.return)&&v.call(c)}finally{if(f)throw f.error}}}}},[o],i)}function Z(r,a,n,e){for(var t=-1,o=r==null?0:r.length;++t<o;){var i=r[t];a(e,i,n(i),r)}return e}var D=Z,_=N;function F(r,a,n,e){return _(r,function(t,o,i){a(e,t,n(t),i)}),e}var rr=F,ar=D,er=rr,nr=P,tr=S;function or(r,a){return function(n,e){var t=tr(n)?ar:er,o=a?a():{};return t(n,r,nr(e),o)}}var fr=or;export{fr as _,ur as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{al as E,u as h,r as l,am as L,aa as N,G as a,j as e,B as d,P as g,a0 as I,a8 as y,t as O}from"./index-
|
|
1
|
+
import{al as E,u as h,r as l,am as L,aa as N,G as a,j as e,B as d,P as g,a0 as I,a8 as y,t as O}from"./index-DvWX5lcP.js";import{A as j}from"./config-Bq0PRCnF.js";import{P}from"./page-header-D_SotiVO.js";import{S as R}from"./layout-C9kLxcxh.js";import{S as b}from"./step-actions-jeUrWz6Q.js";import{S as v}from"./button-BYEykGiq.js";import{F as T}from"./FormControl-DKFNjq8h.js";import{R as Y,a as B}from"./RadioGroup-CSPixlIn.js";import{F as D}from"./FormControlLabel-DnPrJzTY.js";import"./content-layout-d6nQGGPv.js";import"./useFormControl-CxIzvtrT.js";import"./FormGroup-CbFAfBRz.js";import"./Stack-CoMDlKDj.js";function C({onNext:s}){const S=E(),{t:c,locale:m}=h(),[i,n]=l.useState(!1),[f,p]=l.useState(""),{blocklet:r}=L();l.useEffect(()=>{var o;const t=N.findServiceFromMeta(r.meta,a.NODE_SERVICES.AUTH);p(((o=t==null?void 0:t.config)==null?void 0:o.whoCanAccess)||a.WHO_CAN_ACCESS.ALL)},[r]);const u=async t=>{let o=a.ACCESS_POLICY_PUBLIC;t===a.WHO_CAN_ACCESS.ALL?o=a.ACCESS_POLICY_PUBLIC:t===a.WHO_CAN_ACCESS.INVITED?o=a.ACCESS_POLICY_INVITED_ONLY:t===a.WHO_CAN_ACCESS.OWNER?o=a.ACCESS_POLICY_OWNER_ONLY:t===a.WHO_CAN_ACCESS.ADMIN&&(o=a.ACCESS_POLICY_ADMIN_ONLY);try{n(!0),await y.updateBlockletSecurityRule({input:{did:r.meta.did,data:{id:a.SECURITY_RULE_DEFAULT_ID,accessPolicyId:o}}}),n(!1)}catch(A){n(!1),O.error(A.message)}},x=async t=>{i||(p(t.target.value),await u(t.target.value))},_={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:S.palette.text.secondary};return e.jsxs(H,{children:[e.jsx("div",{className:"header",children:e.jsx(P,{title:c("blocklet.config.access.description")})}),e.jsx(T,{component:"fieldset",children:e.jsx(Y,{name:"inherit",value:f,onChange:x,children:j.map(t=>e.jsxs(d,{sx:{mb:2},children:[e.jsx(D,{value:t.value,control:e.jsx(B,{size:"small",color:"primary"}),label:e.jsxs("span",{children:[e.jsx(t.icon,{style:_}),t.title[m]]})}),e.jsx(d,{className:"tip",children:t.description[m]})]},t.value))})}),e.jsx(b,{mt:8,disabled:i,blocklet:r,onStartNow:()=>s("complete"),children:e.jsx(v,{loading:i,variant:"contained",disabled:i,onClick:()=>s(),children:c("setup.continue")})})]})}C.propTypes={onNext:g.func};C.defaultProps={onNext:()=>{}};const H=I(R)`
|
|
2
2
|
height: 100%;
|
|
3
3
|
overflow-y: auto;
|
|
4
4
|
.header {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as a,aE as E,aT as P,aU as v,aV as I,P as p,a0 as T}from"./index-
|
|
1
|
+
import{r as c,j as a,aE as E,aT as P,aU as v,aV as I,P as p,a0 as T}from"./index-DvWX5lcP.js";import{d as D}from"./MoreHoriz-DBFQtbAK.js";import{L as b,a as k}from"./Delete-D7CV2-yT.js";function l({actions:u,size:m,...d}){const[n,r]=c.useState(null),f=!!n,y=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(t.currentTarget)},e=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(null)};return a.jsxs(z,{...d,children:[a.jsx(E,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:y,size:m,children:a.jsx(D,{})}),a.jsx(P,{id:"actions-menu","data-cy":"actions-menu",anchorEl:n,keepMounted:!0,open:f,onClose:e,slotProps:{paper:{}},children:u.map((t,s)=>{if(typeof t=="function")return t({close:e});if(t.separator)return a.jsx(v,{},`separator-${s}`);const{icon:h,text:x,render:A,onClick:o,disabled:j=!1,...g}=t;return c.createElement(I,{...g,disabled:j,dense:!0,onClick:async i=>{i.stopPropagation(),await(o==null?void 0:o(i)),e()},key:s,"data-cy":`actions-menu-${s}`},a.jsx(b,{style:{minWidth:24,marginRight:8},children:h}),a.jsx(k,{primary:x}))})})]})}l.propTypes={actions:p.array,size:p.oneOf(["small","medium","large"])};l.defaultProps={actions:[],size:"small"};const z=T.div``;export{l as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as __read,r as reactExports,U as useRequest,eT as __awaiter,eU as __generator,bB as __assign,dc as __spreadArray,l as useMemoizedFn,eV as getTargetElement,eW as useEventListener,c2 as useUpdateEffect,co as commonjsGlobal,b9 as getDefaultExportFromCjs,eX as Buffer,eQ as React,bD as noop,j as jsxRuntimeExports,P as PropTypes,bv as styled,Z as requireCreateSvgIcon,$ as interopRequireDefaultExports,a3 as ButtonComponent,n as CircularProgress,aw as Dialog,a0 as newStyled,eY as browser,eZ as get_1,e_ as uniq_1,e$ as pLimit_1,f0 as require$$6,B as Box,k as useCreation,cs as get$1,D as DID,T as Typography,G as constant$2,u as useLocaleContext,a1 as useMediaQuery,bF as Icon,aR as useNodeContext,F as useSearchParams,e as useNavigate,aE as IconButton,f1 as require$$0$2,cw as getAugmentedNamespace,f2 as process$1,f3 as lib,c7 as lib$1,eM as lib$2,f4 as urlPathFriendly,ac as constant$3,f5 as cloneDeep_1$1,aa as util$1,N as DidConnect,a$ as getWalletType,bm as List,bu as colors,f6 as getWebWalletUrl,c4 as axios,c as joinURL,f7 as extractStatusUrlFromNextWorkflow,c0 as pWaitFor,t as Toast,f8 as hasRequiredSteps,a_ as useBlockletContext,C as Center$1,cp as propTypesExports,f9 as getStoreList,aV as MenuItem,al as useTheme,ae as Img,A as AvatarWithErrorBoundary,fa as _baseOrderBy,fb as isArray_1,aA as Se,b as Button,dM as createTheme,cF as merge,cJ as ThemeProvider,eJ as createAxios,cA as MenuList,de as default_1$8,bs as ErrorBoundary,fc as omitBy,w as withQuery,bh as Chip,Q as useReactive,fd as parseURL,fe as parseQuery,ff as parseFilename,fg as stringifyParsedURL,bH as isEmpty,cz as SvgIcon,bo as Popper,el as Grow,ak as Paper,bp as ClickAwayListener,cG as default_1$c,fh as useDebounceFn,c3 as Dialog$1,fi as Et,a as Tooltip,fj as semver$2,fk as formatRegistryLogoPath,fl as getBlockletLogoUrl,bz as useParams,fm as formatMountPoint,fn as isNil,fo as flatten,fp as _default$2,fq as getBlockletMetaUrl,fr as isNewStoreUrl}from"./index-DFY8jb7D.js";import{m as makeStyles,S as StoreItem,s as serverless,A as AddStore}from"./item-BoZPHIoN.js";import{u as useStepContext,L as Layout,S as StepProvider}from"./index-ElzBhQUO.js";import{L as LaunchResultMessage}from"./launch-result-message-BKyjNhKo.js";import{P as PageHeader}from"./page-header-UrCX2Xf3.js";import{u as uniqBy}from"./uniqBy-Vd8yZc0_.js";import{u as useConfigSpaceContext,C as ConfigSpaceProvider}from"./config-space-BTpvPCf5.js";import{R as Required}from"./logo-uploader-CBETevxN.js";import{S as SchemaForm}from"./index-D9LIoB-S.js";import{s as svg,h as html,w as webNamespaces,f as find,a as stringify,b as stringify$1,c as hastToReact,M as MarkdownPreview}from"./index-D9_f7f5B.js";import{j as joinUrl}from"./url-join-BOuybw6E.js";import{F as FormControlLabel}from"./FormControlLabel-Dd50kGih.js";import{C as Checkbox,L as ListItem}from"./MoreVert-DOniSEHD.js";import{p as pathBrowserify}from"./index-BQQj2X3R.js";import{I as InfoRow}from"./index-YTRzBzgM.js";import{u as useSessionContext}from"./session-CASkyLZm.js";import{W as WrappedDidAddress}from"./did-address-CeAEd9AA.js";import{d as default_1$5,a as ListItemText,L as ListItemIcon}from"./Delete-Bt8sEFHf.js";import{_ as _default$1}from"./useLocalStorage-DMU1hTLM.js";import{A as Autocomplete}from"./Autocomplete-B2GoIEiU.js";import{L as ListItemButton}from"./ListItemButton-DVUJtRJm.js";import{F as FormHelperText,T as TextField}from"./TextField-CDyde-vy.js";import{S as Stepper,a as Step,b as StepLabel}from"./Stepper-DnzprAA5.js";import{D as DialogContentText}from"./DialogContentText-DCrSbjzq.js";import{A as Alert}from"./Alert-CvjoyYBC.js";import{f as formatError}from"./format-error-DiR6lB9S.js";import{a as api}from"./api-BDt5g5RU.js";import{v as validatePathPrefix,e as existPathPrefix}from"./util-BDJl9b79.js";import{u as useMobile}from"./use-mobile-BS_bqT1b.js";import{C as ContentLayout}from"./content-layout-DWrJ4SYf.js";import{C as Connected,D as Disconnect,a as ConnectTo}from"./connect-to-CmPhkTnO.js";import{d as default_1$6}from"./ArrowDropDown-C0LbBLoq.js";import{E as ErrorFallback}from"./fallback-HzSJFkgV.js";import{d as default_1$a}from"./ChevronLeft-DMcIWZxt.js";import{d as default_1$b}from"./ChevronRight-C5a3Tp9Z.js";import{d as default_1$7}from"./Search-DX3AW4Ja.js";import{E as Empty}from"./index-gOnIj4Rb.js";import{d as default_1$9,D as Drawer}from"./Menu-BO891UCo.js";import{O as OutlinedInput}from"./Select-CRV0iHHv.js";import{S as Stack}from"./Stack-D9gGxV3p.js";import{S as Skeleton}from"./Skeleton-B0qtX8zT.js";import{G as Grid}from"./Grid-CdEXdmAj.js";import{I as InputAdornment}from"./InputAdornment-DLavXxQC.js";import{L as Link$1}from"./Link-CwMoHxxH.js";var getScrollTop=function(i){return i===document||i===document.documentElement||i===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):i.scrollTop},getScrollHeight=function(i){return i.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},getClientHeight=function(i){return i.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},useInfiniteScroll$1=function(i,s){s===void 0&&(s={});var o=s.target,u=s.isNoMore,E=s.threshold,_=E===void 0?100:E,L=s.reloadDeps,S=L===void 0?[]:L,j=s.manual,G=s.onBefore,F=s.onSuccess,C=s.onError,D=s.onFinally,O=__read(reactExports.useState(),2),R=O[0],P=O[1],V=__read(reactExports.useState(!1),2),B=V[0],M=V[1],N=reactExports.useMemo(function(){return u?u(R):!1},[R]),$=useRequest(function(ye){return __awaiter(void 0,void 0,void 0,function(){var re,oe,J;return __generator(this,function(te){switch(te.label){case 0:return[4,i(ye)];case 1:return re=te.sent(),P(ye?__assign(__assign({},re),{list:__spreadArray(__spreadArray([],__read((J=ye.list)!==null&&J!==void 0?J:[]),!1),__read(re.list),!1)}):__assign(__assign({},re),{list:__spreadArray([],__read((oe=re.list)!==null&&oe!==void 0?oe:[]),!1)})),[2,re]}})})},{manual:j,onFinally:function(ye,re,oe){M(!1),D==null||D(re,oe)},onBefore:function(){return G==null?void 0:G()},onSuccess:function(ye){setTimeout(function(){Be()}),F==null||F(ye)},onError:function(ye){return C==null?void 0:C(ye)}}),U=$.loading,H=$.error,W=$.run,K=$.runAsync,X=$.cancel,Q=useMemoizedFn(function(){N||(M(!0),W(R))}),ne=useMemoizedFn(function(){return N?Promise.reject():(M(!0),K(R))}),Ce=function(){return M(!1),W()},De=function(){return M(!1),K()},Be=function(){var ye=getTargetElement(o);if(ye){ye=ye===document?document.documentElement:ye;var re=getScrollTop(ye),oe=getScrollHeight(ye),J=getClientHeight(ye);oe-re<=J+_&&Q()}};return useEventListener("scroll",function(){U||B||Be()},{target:o}),useUpdateEffect(function(){W()},__spreadArray([],__read(S),!1)),{data:R,loading:!B&&U,error:H,loadingMore:B,noMore:N,loadMore:Q,loadMoreAsync:ne,reload:useMemoizedFn(Ce),reloadAsync:useMemoizedFn(De),mutate:P,cancel:X}};const STORAGE_KEY_STORE_BLOCKLET="blocklet-add-component-registry",STORAGE_KEY_STORE_SERVER="server-add-registry",STORAGE_KEY_STORE_RESOURCE=i=>`resource-${i}-add-registry`;var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(i,s){module.exports=s()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(s){_useWebWorker=!!s},getWebWorker=function(){return _useWebWorker},setLocationHref=function(s){locationHref=s},getLocationHref=function(){return locationHref};function createTag(i){return document.createElement(i)}function extendPrototype(i,s){var o,u=i.length,E;for(o=0;o<u;o+=1){E=i[o].prototype;for(var _ in E)Object.prototype.hasOwnProperty.call(E,_)&&(s.prototype[_]=E[_])}}function getDescriptor(i,s){return Object.getOwnPropertyDescriptor(i,s)}function createProxyFunction(i){function s(){}return s.prototype=i,s}var audioControllerFactory=function(){function i(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return i.prototype={addAudio:function(o){this.audios.push(o)},pause:function(){var o,u=this.audios.length;for(o=0;o<u;o+=1)this.audios[o].pause()},resume:function(){var o,u=this.audios.length;for(o=0;o<u;o+=1)this.audios[o].resume()},setRate:function(o){var u,E=this.audios.length;for(u=0;u<E;u+=1)this.audios[u].setRate(o)},createAudio:function(o){return this.audioFactory?this.audioFactory(o):window.Howl?new window.Howl({src:[o]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(o){this.audioFactory=o},setVolume:function(o){this._volume=o,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var o,u=this.audios.length;for(o=0;o<u;o+=1)this.audios[o].volume(this._volume*(this._isMuted?0:1))}},function(){return new i}}(),createTypedArray=function(){function i(o,u){var E=0,_=[],L;switch(o){case"int16":case"uint8c":L=1;break;default:L=1.1;break}for(E=0;E<u;E+=1)_.push(L);return _}function s(o,u){return o==="float32"?new Float32Array(u):o==="int16"?new Int16Array(u):o==="uint8c"?new Uint8ClampedArray(u):i(o,u)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:i}();function createSizedArray(i){return Array.apply(null,{length:i})}function _typeof$6(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(o){return typeof o}:_typeof$6=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$6(i)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var i=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,o=i.length;for(s=0;s<o;s+=1)BMMath[i[s]]=Math[i[s]]})(),BMMath.random=Math.random,BMMath.abs=function(i){var s=_typeof$6(i);if(s==="object"&&i.length){var o=createSizedArray(i.length),u,E=i.length;for(u=0;u<E;u+=1)o[u]=Math.abs(i[u]);return o}return Math.abs(i)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(i){i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.display="block",i.style.transformOrigin="0 0",i.style.webkitTransformOrigin="0 0",i.style.backfaceVisibility="visible",i.style.webkitBackfaceVisibility="visible",i.style.transformStyle="preserve-3d",i.style.webkitTransformStyle="preserve-3d",i.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(i,s,o,u){this.type=i,this.currentTime=s,this.totalTime=o,this.direction=u<0?-1:1}function BMCompleteEvent(i,s){this.type=i,this.direction=s<0?-1:1}function BMCompleteLoopEvent(i,s,o,u){this.type=i,this.currentLoop=o,this.totalLoops=s,this.direction=u<0?-1:1}function BMSegmentStartEvent(i,s,o){this.type=i,this.firstFrame=s,this.totalFrames=o}function BMDestroyEvent(i,s){this.type=i,this.target=s}function BMRenderFrameErrorEvent(i,s){this.type="renderFrameError",this.nativeError=i,this.currentTime=s}function BMConfigErrorEvent(i){this.type="configError",this.nativeError=i}var createElementID=function(){var i=0;return function(){return i+=1,idPrefix$1+"__lottie_element_"+i}}();function HSVtoRGB(i,s,o){var u,E,_,L,S,j,G,F;switch(L=Math.floor(i*6),S=i*6-L,j=o*(1-s),G=o*(1-S*s),F=o*(1-(1-S)*s),L%6){case 0:u=o,E=F,_=j;break;case 1:u=G,E=o,_=j;break;case 2:u=j,E=o,_=F;break;case 3:u=j,E=G,_=o;break;case 4:u=F,E=j,_=o;break;case 5:u=o,E=j,_=G;break}return[u,E,_]}function RGBtoHSV(i,s,o){var u=Math.max(i,s,o),E=Math.min(i,s,o),_=u-E,L,S=u===0?0:_/u,j=u/255;switch(u){case E:L=0;break;case i:L=s-o+_*(s<o?6:0),L/=6*_;break;case s:L=o-i+_*2,L/=6*_;break;case o:L=i-s+_*4,L/=6*_;break}return[L,S,j]}function addSaturationToRGB(i,s){var o=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return o[1]+=s,o[1]>1?o[1]=1:o[1]<=0&&(o[1]=0),HSVtoRGB(o[0],o[1],o[2])}function addBrightnessToRGB(i,s){var o=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return o[2]+=s,o[2]>1?o[2]=1:o[2]<0&&(o[2]=0),HSVtoRGB(o[0],o[1],o[2])}function addHueToRGB(i,s){var o=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return o[0]+=s/360,o[0]>1?o[0]-=1:o[0]<0&&(o[0]+=1),HSVtoRGB(o[0],o[1],o[2])}var rgbToHex=function(){var i=[],s,o;for(s=0;s<256;s+=1)o=s.toString(16),i[s]=o.length===1?"0"+o:o;return function(u,E,_){return u<0&&(u=0),E<0&&(E=0),_<0&&(_=0),"#"+i[u]+i[E]+i[_]}}(),setSubframeEnabled=function(s){subframeEnabled=!!s},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(s){expressionsPlugin=s},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(s){expressionsInterfaces=s},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(s){defaultCurveSegments=s},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(s){idPrefix$1=s};function createNS(i){return document.createElementNS(svgNS,i)}function _typeof$5(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(o){return typeof o}:_typeof$5=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$5(i)}var dataManager=function(){var i=1,s=[],o,u,E={onmessage:function(){},postMessage:function(O){o({data:O})}},_={postMessage:function(O){E.onmessage({data:O})}};function L(D){if(window.Worker&&window.Blob&&getWebWorker()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",D.toString()],{type:"text/javascript"}),R=URL.createObjectURL(O);return new Worker(R)}return o=D,E}function S(){u||(u=L(function(O){function R(){function V(ye,re){var oe,J,te=ye.length,xe,Ee,$e,tt;for(J=0;J<te;J+=1)if(oe=ye[J],"ks"in oe&&!oe.completed){if(oe.completed=!0,oe.hasMask){var nt=oe.masksProperties;for(Ee=nt.length,xe=0;xe<Ee;xe+=1)if(nt[xe].pt.k.i)U(nt[xe].pt.k);else for(tt=nt[xe].pt.k.length,$e=0;$e<tt;$e+=1)nt[xe].pt.k[$e].s&&U(nt[xe].pt.k[$e].s[0]),nt[xe].pt.k[$e].e&&U(nt[xe].pt.k[$e].e[0])}oe.ty===0?(oe.layers=N(oe.refId,re),V(oe.layers,re)):oe.ty===4?$(oe.shapes):oe.ty===5&&De(oe)}}function B(ye,re){if(ye){var oe=0,J=ye.length;for(oe=0;oe<J;oe+=1)ye[oe].t===1&&(ye[oe].data.layers=N(ye[oe].data.refId,re),V(ye[oe].data.layers,re))}}function M(ye,re){for(var oe=0,J=re.length;oe<J;){if(re[oe].id===ye)return re[oe];oe+=1}return null}function N(ye,re){var oe=M(ye,re);return oe?oe.layers.__used?JSON.parse(JSON.stringify(oe.layers)):(oe.layers.__used=!0,oe.layers):null}function $(ye){var re,oe=ye.length,J,te;for(re=oe-1;re>=0;re-=1)if(ye[re].ty==="sh")if(ye[re].ks.k.i)U(ye[re].ks.k);else for(te=ye[re].ks.k.length,J=0;J<te;J+=1)ye[re].ks.k[J].s&&U(ye[re].ks.k[J].s[0]),ye[re].ks.k[J].e&&U(ye[re].ks.k[J].e[0]);else ye[re].ty==="gr"&&$(ye[re].it)}function U(ye){var re,oe=ye.i.length;for(re=0;re<oe;re+=1)ye.i[re][0]+=ye.v[re][0],ye.i[re][1]+=ye.v[re][1],ye.o[re][0]+=ye.v[re][0],ye.o[re][1]+=ye.v[re][1]}function H(ye,re){var oe=re?re.split("."):[100,100,100];return ye[0]>oe[0]?!0:oe[0]>ye[0]?!1:ye[1]>oe[1]?!0:oe[1]>ye[1]?!1:ye[2]>oe[2]?!0:oe[2]>ye[2]?!1:null}var W=function(){var ye=[4,4,14];function re(J){var te=J.t.d;J.t.d={k:[{s:te,t:0}]}}function oe(J){var te,xe=J.length;for(te=0;te<xe;te+=1)J[te].ty===5&&re(J[te])}return function(J){if(H(ye,J.v)&&(oe(J.layers),J.assets)){var te,xe=J.assets.length;for(te=0;te<xe;te+=1)J.assets[te].layers&&oe(J.assets[te].layers)}}}(),K=function(){var ye=[4,7,99];return function(re){if(re.chars&&!H(ye,re.v)){var oe,J=re.chars.length;for(oe=0;oe<J;oe+=1){var te=re.chars[oe];te.data&&te.data.shapes&&($(te.data.shapes),te.data.ip=0,te.data.op=99999,te.data.st=0,te.data.sr=1,te.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},re.chars[oe].t||(te.data.shapes.push({ty:"no"}),te.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),X=function(){var ye=[5,7,15];function re(J){var te=J.t.p;typeof te.a=="number"&&(te.a={a:0,k:te.a}),typeof te.p=="number"&&(te.p={a:0,k:te.p}),typeof te.r=="number"&&(te.r={a:0,k:te.r})}function oe(J){var te,xe=J.length;for(te=0;te<xe;te+=1)J[te].ty===5&&re(J[te])}return function(J){if(H(ye,J.v)&&(oe(J.layers),J.assets)){var te,xe=J.assets.length;for(te=0;te<xe;te+=1)J.assets[te].layers&&oe(J.assets[te].layers)}}}(),Q=function(){var ye=[4,1,9];function re(J){var te,xe=J.length,Ee,$e;for(te=0;te<xe;te+=1)if(J[te].ty==="gr")re(J[te].it);else if(J[te].ty==="fl"||J[te].ty==="st")if(J[te].c.k&&J[te].c.k[0].i)for($e=J[te].c.k.length,Ee=0;Ee<$e;Ee+=1)J[te].c.k[Ee].s&&(J[te].c.k[Ee].s[0]/=255,J[te].c.k[Ee].s[1]/=255,J[te].c.k[Ee].s[2]/=255,J[te].c.k[Ee].s[3]/=255),J[te].c.k[Ee].e&&(J[te].c.k[Ee].e[0]/=255,J[te].c.k[Ee].e[1]/=255,J[te].c.k[Ee].e[2]/=255,J[te].c.k[Ee].e[3]/=255);else J[te].c.k[0]/=255,J[te].c.k[1]/=255,J[te].c.k[2]/=255,J[te].c.k[3]/=255}function oe(J){var te,xe=J.length;for(te=0;te<xe;te+=1)J[te].ty===4&&re(J[te].shapes)}return function(J){if(H(ye,J.v)&&(oe(J.layers),J.assets)){var te,xe=J.assets.length;for(te=0;te<xe;te+=1)J.assets[te].layers&&oe(J.assets[te].layers)}}}(),ne=function(){var ye=[4,4,18];function re(J){var te,xe=J.length,Ee,$e;for(te=xe-1;te>=0;te-=1)if(J[te].ty==="sh")if(J[te].ks.k.i)J[te].ks.k.c=J[te].closed;else for($e=J[te].ks.k.length,Ee=0;Ee<$e;Ee+=1)J[te].ks.k[Ee].s&&(J[te].ks.k[Ee].s[0].c=J[te].closed),J[te].ks.k[Ee].e&&(J[te].ks.k[Ee].e[0].c=J[te].closed);else J[te].ty==="gr"&&re(J[te].it)}function oe(J){var te,xe,Ee=J.length,$e,tt,nt,kt;for(xe=0;xe<Ee;xe+=1){if(te=J[xe],te.hasMask){var ht=te.masksProperties;for(tt=ht.length,$e=0;$e<tt;$e+=1)if(ht[$e].pt.k.i)ht[$e].pt.k.c=ht[$e].cl;else for(kt=ht[$e].pt.k.length,nt=0;nt<kt;nt+=1)ht[$e].pt.k[nt].s&&(ht[$e].pt.k[nt].s[0].c=ht[$e].cl),ht[$e].pt.k[nt].e&&(ht[$e].pt.k[nt].e[0].c=ht[$e].cl)}te.ty===4&&re(te.shapes)}}return function(J){if(H(ye,J.v)&&(oe(J.layers),J.assets)){var te,xe=J.assets.length;for(te=0;te<xe;te+=1)J.assets[te].layers&&oe(J.assets[te].layers)}}}();function Ce(ye){ye.__complete||(Q(ye),W(ye),K(ye),X(ye),ne(ye),V(ye.layers,ye.assets),B(ye.chars,ye.assets),ye.__complete=!0)}function De(ye){ye.t.a.length===0&&"m"in ye.t.p}var Be={};return Be.completeData=Ce,Be.checkColors=Q,Be.checkChars=K,Be.checkPathProperties=X,Be.checkShapes=ne,Be.completeLayers=V,Be}if(_.dataManager||(_.dataManager=R()),_.assetLoader||(_.assetLoader=function(){function V(M){var N=M.getResponseHeader("content-type");return N&&M.responseType==="json"&&N.indexOf("json")!==-1||M.response&&_typeof$5(M.response)==="object"?M.response:M.response&&typeof M.response=="string"?JSON.parse(M.response):M.responseText?JSON.parse(M.responseText):null}function B(M,N,$,U){var H,W=new XMLHttpRequest;try{W.responseType="json"}catch{}W.onreadystatechange=function(){if(W.readyState===4)if(W.status===200)H=V(W),$(H);else try{H=V(W),$(H)}catch(K){U&&U(K)}};try{W.open(["G","E","T"].join(""),M,!0)}catch{W.open(["G","E","T"].join(""),N+"/"+M,!0)}W.send()}return{load:B}}()),O.data.type==="loadAnimation")_.assetLoader.load(O.data.path,O.data.fullPath,function(V){_.dataManager.completeData(V),_.postMessage({id:O.data.id,payload:V,status:"success"})},function(){_.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var P=O.data.animation;_.dataManager.completeData(P),_.postMessage({id:O.data.id,payload:P,status:"success"})}else O.data.type==="loadData"&&_.assetLoader.load(O.data.path,O.data.fullPath,function(V){_.postMessage({id:O.data.id,payload:V,status:"success"})},function(){_.postMessage({id:O.data.id,status:"error"})})}),u.onmessage=function(D){var O=D.data,R=O.id,P=s[R];s[R]=null,O.status==="success"?P.onComplete(O.payload):P.onError&&P.onError()})}function j(D,O){i+=1;var R="processId_"+i;return s[R]={onComplete:D,onError:O},R}function G(D,O,R){S();var P=j(O,R);u.postMessage({type:"loadAnimation",path:D,fullPath:window.location.origin+window.location.pathname,id:P})}function F(D,O,R){S();var P=j(O,R);u.postMessage({type:"loadData",path:D,fullPath:window.location.origin+window.location.pathname,id:P})}function C(D,O,R){S();var P=j(O,R);u.postMessage({type:"complete",animation:D,id:P})}return{loadAnimation:G,loadData:F,completeAnimation:C}}(),ImagePreloader=function(){var i=function(){var B=createTag("canvas");B.width=1,B.height=1;var M=B.getContext("2d");return M.fillStyle="rgba(0,0,0,0)",M.fillRect(0,0,1,1),B}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function o(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function u(B,M,N){var $="";if(B.e)$=B.p;else if(M){var U=B.p;U.indexOf("images/")!==-1&&(U=U.split("/")[1]),$=M+U}else $=N,$+=B.u?B.u:"",$+=B.p;return $}function E(B){var M=0,N=setInterval((function(){var $=B.getBBox();($.width||M>500)&&(this._imageLoaded(),clearInterval(N)),M+=1}).bind(this),50)}function _(B){var M=u(B,this.assetsPath,this.path),N=createNS("image");isSafari?this.testImageLoaded(N):N.addEventListener("load",this._imageLoaded,!1),N.addEventListener("error",(function(){$.img=i,this._imageLoaded()}).bind(this),!1),N.setAttributeNS("http://www.w3.org/1999/xlink","href",M),this._elementHelper.append?this._elementHelper.append(N):this._elementHelper.appendChild(N);var $={img:N,assetData:B};return $}function L(B){var M=u(B,this.assetsPath,this.path),N=createTag("img");N.crossOrigin="anonymous",N.addEventListener("load",this._imageLoaded,!1),N.addEventListener("error",(function(){$.img=i,this._imageLoaded()}).bind(this),!1),N.src=M;var $={img:N,assetData:B};return $}function S(B){var M={assetData:B},N=u(B,this.assetsPath,this.path);return dataManager.loadData(N,(function($){M.img=$,this._footageLoaded()}).bind(this),(function(){M.img={},this._footageLoaded()}).bind(this)),M}function j(B,M){this.imagesLoadedCb=M;var N,$=B.length;for(N=0;N<$;N+=1)B[N].layers||(!B[N].t||B[N].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(B[N]))):B[N].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(B[N]))))}function G(B){this.path=B||""}function F(B){this.assetsPath=B||""}function C(B){for(var M=0,N=this.images.length;M<N;){if(this.images[M].assetData===B)return this.images[M].img;M+=1}return null}function D(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function R(){return this.totalFootages===this.loadedFootagesCount}function P(B,M){B==="svg"?(this._elementHelper=M,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function V(){this._imageLoaded=s.bind(this),this._footageLoaded=o.bind(this),this.testImageLoaded=E.bind(this),this.createFootageData=S.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return V.prototype={loadAssets:j,setAssetsPath:F,setPath:G,loadedImages:O,loadedFootages:R,destroy:D,getAsset:C,createImgData:L,createImageData:_,imageLoaded:s,footageLoaded:o,setCacheType:P},V}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(s,o){if(this._cbs[s])for(var u=this._cbs[s],E=0;E<u.length;E+=1)u[E](o)},addEventListener:function(s,o){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(o),(function(){this.removeEventListener(s,o)}).bind(this)},removeEventListener:function(s,o){if(!o)this._cbs[s]=null;else if(this._cbs[s]){for(var u=0,E=this._cbs[s].length;u<E;)this._cbs[s][u]===o&&(this._cbs[s].splice(u,1),u-=1,E-=1),u+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var markerParser=function(){function i(s){for(var o=s.split(`\r
|
|
1
|
+
import{_ as __read,r as reactExports,U as useRequest,eS as __awaiter,eT as __generator,bB as __assign,dc as __spreadArray,l as useMemoizedFn,eU as getTargetElement,eV as useEventListener,c2 as useUpdateEffect,co as commonjsGlobal,b9 as getDefaultExportFromCjs,eW as Buffer,eP as React,bD as noop,j as jsxRuntimeExports,P as PropTypes,bv as styled,Z as requireCreateSvgIcon,$ as interopRequireDefaultExports,a3 as ButtonComponent,n as CircularProgress,aw as Dialog,a0 as newStyled,eX as browser,eY as get_1,eZ as uniq_1,e_ as pLimit_1,e$ as require$$6,B as Box,k as useCreation,cs as get$1,D as DID,T as Typography,G as constant$2,u as useLocaleContext,a1 as useMediaQuery,bF as Icon,aR as useNodeContext,F as useSearchParams,e as useNavigate,aE as IconButton,f0 as require$$0$2,cw as getAugmentedNamespace,f1 as process$1,f2 as lib,c7 as lib$1,eL as lib$2,f3 as urlPathFriendly,ac as constant$3,f4 as cloneDeep_1$1,aa as util$1,N as DidConnect,a$ as getWalletType,bm as List,bu as colors,f5 as getWebWalletUrl,c4 as axios,c as joinURL,f6 as extractStatusUrlFromNextWorkflow,c0 as pWaitFor,t as Toast,f7 as hasRequiredSteps,a_ as useBlockletContext,C as Center$1,cp as propTypesExports,f8 as getStoreList,aV as MenuItem,al as useTheme,ae as Img,A as AvatarWithErrorBoundary,f9 as _baseOrderBy,fa as isArray_1,aA as Se,b as Button,dM as createTheme,cF as merge,cJ as ThemeProvider,fb as createAxios,cA as MenuList,de as default_1$8,bs as ErrorBoundary,fc as omitBy,w as withQuery,bh as Chip,Q as useReactive,fd as parseURL,fe as parseQuery,ff as parseFilename,fg as stringifyParsedURL,bH as isEmpty,cz as SvgIcon,bo as Popper,el as Grow,ak as Paper,bp as ClickAwayListener,cG as default_1$c,fh as useDebounceFn,c3 as Dialog$1,fi as Et,a as Tooltip,fj as semver$2,fk as formatRegistryLogoPath,fl as getBlockletLogoUrl,bz as useParams,fm as formatMountPoint,fn as isNil,fo as flatten,fp as _default$2,fq as getBlockletMetaUrl,fr as isNewStoreUrl}from"./index-DvWX5lcP.js";import{m as makeStyles,S as StoreItem,s as serverless,A as AddStore}from"./item-CF17cwn5.js";import{u as useStepContext,L as Layout,S as StepProvider}from"./index-B5naDBdR.js";import{L as LaunchResultMessage}from"./launch-result-message-C-gi5Hcc.js";import{P as PageHeader}from"./page-header-D_SotiVO.js";import{u as uniqBy}from"./uniqBy-fWKa3D1V.js";import{u as useConfigSpaceContext,C as ConfigSpaceProvider}from"./config-space-CYRh354P.js";import{R as Required}from"./logo-uploader-C-nB71XI.js";import{S as SchemaForm}from"./index-BNKNRBXO.js";import{s as svg,h as html,w as webNamespaces,f as find,a as stringify,b as stringify$1,c as hastToReact,M as MarkdownPreview}from"./index-08dVt-H4.js";import{j as joinUrl}from"./url-join-BVKuS6lK.js";import{F as FormControlLabel}from"./FormControlLabel-DnPrJzTY.js";import{C as Checkbox,L as ListItem}from"./MoreVert-DFIFOaRy.js";import{p as pathBrowserify}from"./index-xh6_T_pg.js";import{I as InfoRow}from"./index-Bla3oaYF.js";import{u as useSessionContext}from"./session-C-DlgGKg.js";import{W as WrappedDidAddress}from"./did-address-Do1u0yvf.js";import{d as default_1$5,a as ListItemText,L as ListItemIcon}from"./Delete-D7CV2-yT.js";import{_ as _default$1}from"./useLocalStorage-CsSUReaJ.js";import{A as Autocomplete}from"./Autocomplete-jCHDD6vg.js";import{L as ListItemButton}from"./ListItemButton-CMgRyCRE.js";import{F as FormHelperText,T as TextField}from"./TextField-DMaGvlb2.js";import{S as Stepper,a as Step,b as StepLabel}from"./Stepper-ic2H4ABx.js";import{D as DialogContentText}from"./DialogContentText-mK9YgSzl.js";import{A as Alert}from"./Alert-BeH7Xy0H.js";import{f as formatError}from"./format-error-DmvkKPOi.js";import{a as api}from"./api-OojOMSa3.js";import{v as validatePathPrefix,e as existPathPrefix}from"./util-BvfRfOuB.js";import{u as useMobile}from"./use-mobile-jpj1YD2L.js";import{C as ContentLayout}from"./content-layout-d6nQGGPv.js";import{C as Connected,D as Disconnect,a as ConnectTo}from"./connect-to-CL_QN0Zk.js";import{d as default_1$6}from"./ArrowDropDown-CqLtDLTF.js";import{E as ErrorFallback}from"./fallback-CySK2UM6.js";import{d as default_1$a}from"./ChevronLeft-BfrgHEUq.js";import{d as default_1$b}from"./ChevronRight-D0lR4sWK.js";import{d as default_1$7}from"./Search-sG28-wD4.js";import{E as Empty}from"./index-Df7UYVfF.js";import{d as default_1$9,D as Drawer}from"./Menu-C2M4G3Hi.js";import{O as OutlinedInput}from"./Select-CG30SlQk.js";import{S as Stack}from"./Stack-CoMDlKDj.js";import{S as Skeleton}from"./Skeleton-DjtvIQXX.js";import{G as Grid}from"./Grid-Bg0kohyl.js";import{I as InputAdornment}from"./InputAdornment-yF3jZBda.js";import{L as Link$1}from"./Link-BwgclF4_.js";var getScrollTop=function(i){return i===document||i===document.documentElement||i===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):i.scrollTop},getScrollHeight=function(i){return i.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},getClientHeight=function(i){return i.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},useInfiniteScroll$1=function(i,s){s===void 0&&(s={});var o=s.target,u=s.isNoMore,E=s.threshold,_=E===void 0?100:E,L=s.reloadDeps,S=L===void 0?[]:L,j=s.manual,G=s.onBefore,F=s.onSuccess,C=s.onError,D=s.onFinally,O=__read(reactExports.useState(),2),R=O[0],P=O[1],V=__read(reactExports.useState(!1),2),B=V[0],M=V[1],N=reactExports.useMemo(function(){return u?u(R):!1},[R]),$=useRequest(function(ye){return __awaiter(void 0,void 0,void 0,function(){var re,oe,J;return __generator(this,function(te){switch(te.label){case 0:return[4,i(ye)];case 1:return re=te.sent(),P(ye?__assign(__assign({},re),{list:__spreadArray(__spreadArray([],__read((J=ye.list)!==null&&J!==void 0?J:[]),!1),__read(re.list),!1)}):__assign(__assign({},re),{list:__spreadArray([],__read((oe=re.list)!==null&&oe!==void 0?oe:[]),!1)})),[2,re]}})})},{manual:j,onFinally:function(ye,re,oe){M(!1),D==null||D(re,oe)},onBefore:function(){return G==null?void 0:G()},onSuccess:function(ye){setTimeout(function(){Be()}),F==null||F(ye)},onError:function(ye){return C==null?void 0:C(ye)}}),U=$.loading,H=$.error,W=$.run,K=$.runAsync,X=$.cancel,Q=useMemoizedFn(function(){N||(M(!0),W(R))}),ne=useMemoizedFn(function(){return N?Promise.reject():(M(!0),K(R))}),Ce=function(){return M(!1),W()},De=function(){return M(!1),K()},Be=function(){var ye=getTargetElement(o);if(ye){ye=ye===document?document.documentElement:ye;var re=getScrollTop(ye),oe=getScrollHeight(ye),J=getClientHeight(ye);oe-re<=J+_&&Q()}};return useEventListener("scroll",function(){U||B||Be()},{target:o}),useUpdateEffect(function(){W()},__spreadArray([],__read(S),!1)),{data:R,loading:!B&&U,error:H,loadingMore:B,noMore:N,loadMore:Q,loadMoreAsync:ne,reload:useMemoizedFn(Ce),reloadAsync:useMemoizedFn(De),mutate:P,cancel:X}};const STORAGE_KEY_STORE_BLOCKLET="blocklet-add-component-registry",STORAGE_KEY_STORE_SERVER="server-add-registry",STORAGE_KEY_STORE_RESOURCE=i=>`resource-${i}-add-registry`;var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(i,s){module.exports=s()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(s){_useWebWorker=!!s},getWebWorker=function(){return _useWebWorker},setLocationHref=function(s){locationHref=s},getLocationHref=function(){return locationHref};function createTag(i){return document.createElement(i)}function extendPrototype(i,s){var o,u=i.length,E;for(o=0;o<u;o+=1){E=i[o].prototype;for(var _ in E)Object.prototype.hasOwnProperty.call(E,_)&&(s.prototype[_]=E[_])}}function getDescriptor(i,s){return Object.getOwnPropertyDescriptor(i,s)}function createProxyFunction(i){function s(){}return s.prototype=i,s}var audioControllerFactory=function(){function i(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return i.prototype={addAudio:function(o){this.audios.push(o)},pause:function(){var o,u=this.audios.length;for(o=0;o<u;o+=1)this.audios[o].pause()},resume:function(){var o,u=this.audios.length;for(o=0;o<u;o+=1)this.audios[o].resume()},setRate:function(o){var u,E=this.audios.length;for(u=0;u<E;u+=1)this.audios[u].setRate(o)},createAudio:function(o){return this.audioFactory?this.audioFactory(o):window.Howl?new window.Howl({src:[o]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(o){this.audioFactory=o},setVolume:function(o){this._volume=o,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var o,u=this.audios.length;for(o=0;o<u;o+=1)this.audios[o].volume(this._volume*(this._isMuted?0:1))}},function(){return new i}}(),createTypedArray=function(){function i(o,u){var E=0,_=[],L;switch(o){case"int16":case"uint8c":L=1;break;default:L=1.1;break}for(E=0;E<u;E+=1)_.push(L);return _}function s(o,u){return o==="float32"?new Float32Array(u):o==="int16"?new Int16Array(u):o==="uint8c"?new Uint8ClampedArray(u):i(o,u)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:i}();function createSizedArray(i){return Array.apply(null,{length:i})}function _typeof$6(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(o){return typeof o}:_typeof$6=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$6(i)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var i=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,o=i.length;for(s=0;s<o;s+=1)BMMath[i[s]]=Math[i[s]]})(),BMMath.random=Math.random,BMMath.abs=function(i){var s=_typeof$6(i);if(s==="object"&&i.length){var o=createSizedArray(i.length),u,E=i.length;for(u=0;u<E;u+=1)o[u]=Math.abs(i[u]);return o}return Math.abs(i)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(i){i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.display="block",i.style.transformOrigin="0 0",i.style.webkitTransformOrigin="0 0",i.style.backfaceVisibility="visible",i.style.webkitBackfaceVisibility="visible",i.style.transformStyle="preserve-3d",i.style.webkitTransformStyle="preserve-3d",i.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(i,s,o,u){this.type=i,this.currentTime=s,this.totalTime=o,this.direction=u<0?-1:1}function BMCompleteEvent(i,s){this.type=i,this.direction=s<0?-1:1}function BMCompleteLoopEvent(i,s,o,u){this.type=i,this.currentLoop=o,this.totalLoops=s,this.direction=u<0?-1:1}function BMSegmentStartEvent(i,s,o){this.type=i,this.firstFrame=s,this.totalFrames=o}function BMDestroyEvent(i,s){this.type=i,this.target=s}function BMRenderFrameErrorEvent(i,s){this.type="renderFrameError",this.nativeError=i,this.currentTime=s}function BMConfigErrorEvent(i){this.type="configError",this.nativeError=i}var createElementID=function(){var i=0;return function(){return i+=1,idPrefix$1+"__lottie_element_"+i}}();function HSVtoRGB(i,s,o){var u,E,_,L,S,j,G,F;switch(L=Math.floor(i*6),S=i*6-L,j=o*(1-s),G=o*(1-S*s),F=o*(1-(1-S)*s),L%6){case 0:u=o,E=F,_=j;break;case 1:u=G,E=o,_=j;break;case 2:u=j,E=o,_=F;break;case 3:u=j,E=G,_=o;break;case 4:u=F,E=j,_=o;break;case 5:u=o,E=j,_=G;break}return[u,E,_]}function RGBtoHSV(i,s,o){var u=Math.max(i,s,o),E=Math.min(i,s,o),_=u-E,L,S=u===0?0:_/u,j=u/255;switch(u){case E:L=0;break;case i:L=s-o+_*(s<o?6:0),L/=6*_;break;case s:L=o-i+_*2,L/=6*_;break;case o:L=i-s+_*4,L/=6*_;break}return[L,S,j]}function addSaturationToRGB(i,s){var o=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return o[1]+=s,o[1]>1?o[1]=1:o[1]<=0&&(o[1]=0),HSVtoRGB(o[0],o[1],o[2])}function addBrightnessToRGB(i,s){var o=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return o[2]+=s,o[2]>1?o[2]=1:o[2]<0&&(o[2]=0),HSVtoRGB(o[0],o[1],o[2])}function addHueToRGB(i,s){var o=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return o[0]+=s/360,o[0]>1?o[0]-=1:o[0]<0&&(o[0]+=1),HSVtoRGB(o[0],o[1],o[2])}var rgbToHex=function(){var i=[],s,o;for(s=0;s<256;s+=1)o=s.toString(16),i[s]=o.length===1?"0"+o:o;return function(u,E,_){return u<0&&(u=0),E<0&&(E=0),_<0&&(_=0),"#"+i[u]+i[E]+i[_]}}(),setSubframeEnabled=function(s){subframeEnabled=!!s},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(s){expressionsPlugin=s},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(s){expressionsInterfaces=s},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(s){defaultCurveSegments=s},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(s){idPrefix$1=s};function createNS(i){return document.createElementNS(svgNS,i)}function _typeof$5(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(o){return typeof o}:_typeof$5=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$5(i)}var dataManager=function(){var i=1,s=[],o,u,E={onmessage:function(){},postMessage:function(O){o({data:O})}},_={postMessage:function(O){E.onmessage({data:O})}};function L(D){if(window.Worker&&window.Blob&&getWebWorker()){var O=new Blob(["var _workerSelf = self; self.onmessage = ",D.toString()],{type:"text/javascript"}),R=URL.createObjectURL(O);return new Worker(R)}return o=D,E}function S(){u||(u=L(function(O){function R(){function V(ye,re){var oe,J,te=ye.length,xe,Ee,$e,tt;for(J=0;J<te;J+=1)if(oe=ye[J],"ks"in oe&&!oe.completed){if(oe.completed=!0,oe.hasMask){var nt=oe.masksProperties;for(Ee=nt.length,xe=0;xe<Ee;xe+=1)if(nt[xe].pt.k.i)U(nt[xe].pt.k);else for(tt=nt[xe].pt.k.length,$e=0;$e<tt;$e+=1)nt[xe].pt.k[$e].s&&U(nt[xe].pt.k[$e].s[0]),nt[xe].pt.k[$e].e&&U(nt[xe].pt.k[$e].e[0])}oe.ty===0?(oe.layers=N(oe.refId,re),V(oe.layers,re)):oe.ty===4?$(oe.shapes):oe.ty===5&&De(oe)}}function B(ye,re){if(ye){var oe=0,J=ye.length;for(oe=0;oe<J;oe+=1)ye[oe].t===1&&(ye[oe].data.layers=N(ye[oe].data.refId,re),V(ye[oe].data.layers,re))}}function M(ye,re){for(var oe=0,J=re.length;oe<J;){if(re[oe].id===ye)return re[oe];oe+=1}return null}function N(ye,re){var oe=M(ye,re);return oe?oe.layers.__used?JSON.parse(JSON.stringify(oe.layers)):(oe.layers.__used=!0,oe.layers):null}function $(ye){var re,oe=ye.length,J,te;for(re=oe-1;re>=0;re-=1)if(ye[re].ty==="sh")if(ye[re].ks.k.i)U(ye[re].ks.k);else for(te=ye[re].ks.k.length,J=0;J<te;J+=1)ye[re].ks.k[J].s&&U(ye[re].ks.k[J].s[0]),ye[re].ks.k[J].e&&U(ye[re].ks.k[J].e[0]);else ye[re].ty==="gr"&&$(ye[re].it)}function U(ye){var re,oe=ye.i.length;for(re=0;re<oe;re+=1)ye.i[re][0]+=ye.v[re][0],ye.i[re][1]+=ye.v[re][1],ye.o[re][0]+=ye.v[re][0],ye.o[re][1]+=ye.v[re][1]}function H(ye,re){var oe=re?re.split("."):[100,100,100];return ye[0]>oe[0]?!0:oe[0]>ye[0]?!1:ye[1]>oe[1]?!0:oe[1]>ye[1]?!1:ye[2]>oe[2]?!0:oe[2]>ye[2]?!1:null}var W=function(){var ye=[4,4,14];function re(J){var te=J.t.d;J.t.d={k:[{s:te,t:0}]}}function oe(J){var te,xe=J.length;for(te=0;te<xe;te+=1)J[te].ty===5&&re(J[te])}return function(J){if(H(ye,J.v)&&(oe(J.layers),J.assets)){var te,xe=J.assets.length;for(te=0;te<xe;te+=1)J.assets[te].layers&&oe(J.assets[te].layers)}}}(),K=function(){var ye=[4,7,99];return function(re){if(re.chars&&!H(ye,re.v)){var oe,J=re.chars.length;for(oe=0;oe<J;oe+=1){var te=re.chars[oe];te.data&&te.data.shapes&&($(te.data.shapes),te.data.ip=0,te.data.op=99999,te.data.st=0,te.data.sr=1,te.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},re.chars[oe].t||(te.data.shapes.push({ty:"no"}),te.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),X=function(){var ye=[5,7,15];function re(J){var te=J.t.p;typeof te.a=="number"&&(te.a={a:0,k:te.a}),typeof te.p=="number"&&(te.p={a:0,k:te.p}),typeof te.r=="number"&&(te.r={a:0,k:te.r})}function oe(J){var te,xe=J.length;for(te=0;te<xe;te+=1)J[te].ty===5&&re(J[te])}return function(J){if(H(ye,J.v)&&(oe(J.layers),J.assets)){var te,xe=J.assets.length;for(te=0;te<xe;te+=1)J.assets[te].layers&&oe(J.assets[te].layers)}}}(),Q=function(){var ye=[4,1,9];function re(J){var te,xe=J.length,Ee,$e;for(te=0;te<xe;te+=1)if(J[te].ty==="gr")re(J[te].it);else if(J[te].ty==="fl"||J[te].ty==="st")if(J[te].c.k&&J[te].c.k[0].i)for($e=J[te].c.k.length,Ee=0;Ee<$e;Ee+=1)J[te].c.k[Ee].s&&(J[te].c.k[Ee].s[0]/=255,J[te].c.k[Ee].s[1]/=255,J[te].c.k[Ee].s[2]/=255,J[te].c.k[Ee].s[3]/=255),J[te].c.k[Ee].e&&(J[te].c.k[Ee].e[0]/=255,J[te].c.k[Ee].e[1]/=255,J[te].c.k[Ee].e[2]/=255,J[te].c.k[Ee].e[3]/=255);else J[te].c.k[0]/=255,J[te].c.k[1]/=255,J[te].c.k[2]/=255,J[te].c.k[3]/=255}function oe(J){var te,xe=J.length;for(te=0;te<xe;te+=1)J[te].ty===4&&re(J[te].shapes)}return function(J){if(H(ye,J.v)&&(oe(J.layers),J.assets)){var te,xe=J.assets.length;for(te=0;te<xe;te+=1)J.assets[te].layers&&oe(J.assets[te].layers)}}}(),ne=function(){var ye=[4,4,18];function re(J){var te,xe=J.length,Ee,$e;for(te=xe-1;te>=0;te-=1)if(J[te].ty==="sh")if(J[te].ks.k.i)J[te].ks.k.c=J[te].closed;else for($e=J[te].ks.k.length,Ee=0;Ee<$e;Ee+=1)J[te].ks.k[Ee].s&&(J[te].ks.k[Ee].s[0].c=J[te].closed),J[te].ks.k[Ee].e&&(J[te].ks.k[Ee].e[0].c=J[te].closed);else J[te].ty==="gr"&&re(J[te].it)}function oe(J){var te,xe,Ee=J.length,$e,tt,nt,kt;for(xe=0;xe<Ee;xe+=1){if(te=J[xe],te.hasMask){var ht=te.masksProperties;for(tt=ht.length,$e=0;$e<tt;$e+=1)if(ht[$e].pt.k.i)ht[$e].pt.k.c=ht[$e].cl;else for(kt=ht[$e].pt.k.length,nt=0;nt<kt;nt+=1)ht[$e].pt.k[nt].s&&(ht[$e].pt.k[nt].s[0].c=ht[$e].cl),ht[$e].pt.k[nt].e&&(ht[$e].pt.k[nt].e[0].c=ht[$e].cl)}te.ty===4&&re(te.shapes)}}return function(J){if(H(ye,J.v)&&(oe(J.layers),J.assets)){var te,xe=J.assets.length;for(te=0;te<xe;te+=1)J.assets[te].layers&&oe(J.assets[te].layers)}}}();function Ce(ye){ye.__complete||(Q(ye),W(ye),K(ye),X(ye),ne(ye),V(ye.layers,ye.assets),B(ye.chars,ye.assets),ye.__complete=!0)}function De(ye){ye.t.a.length===0&&"m"in ye.t.p}var Be={};return Be.completeData=Ce,Be.checkColors=Q,Be.checkChars=K,Be.checkPathProperties=X,Be.checkShapes=ne,Be.completeLayers=V,Be}if(_.dataManager||(_.dataManager=R()),_.assetLoader||(_.assetLoader=function(){function V(M){var N=M.getResponseHeader("content-type");return N&&M.responseType==="json"&&N.indexOf("json")!==-1||M.response&&_typeof$5(M.response)==="object"?M.response:M.response&&typeof M.response=="string"?JSON.parse(M.response):M.responseText?JSON.parse(M.responseText):null}function B(M,N,$,U){var H,W=new XMLHttpRequest;try{W.responseType="json"}catch{}W.onreadystatechange=function(){if(W.readyState===4)if(W.status===200)H=V(W),$(H);else try{H=V(W),$(H)}catch(K){U&&U(K)}};try{W.open(["G","E","T"].join(""),M,!0)}catch{W.open(["G","E","T"].join(""),N+"/"+M,!0)}W.send()}return{load:B}}()),O.data.type==="loadAnimation")_.assetLoader.load(O.data.path,O.data.fullPath,function(V){_.dataManager.completeData(V),_.postMessage({id:O.data.id,payload:V,status:"success"})},function(){_.postMessage({id:O.data.id,status:"error"})});else if(O.data.type==="complete"){var P=O.data.animation;_.dataManager.completeData(P),_.postMessage({id:O.data.id,payload:P,status:"success"})}else O.data.type==="loadData"&&_.assetLoader.load(O.data.path,O.data.fullPath,function(V){_.postMessage({id:O.data.id,payload:V,status:"success"})},function(){_.postMessage({id:O.data.id,status:"error"})})}),u.onmessage=function(D){var O=D.data,R=O.id,P=s[R];s[R]=null,O.status==="success"?P.onComplete(O.payload):P.onError&&P.onError()})}function j(D,O){i+=1;var R="processId_"+i;return s[R]={onComplete:D,onError:O},R}function G(D,O,R){S();var P=j(O,R);u.postMessage({type:"loadAnimation",path:D,fullPath:window.location.origin+window.location.pathname,id:P})}function F(D,O,R){S();var P=j(O,R);u.postMessage({type:"loadData",path:D,fullPath:window.location.origin+window.location.pathname,id:P})}function C(D,O,R){S();var P=j(O,R);u.postMessage({type:"complete",animation:D,id:P})}return{loadAnimation:G,loadData:F,completeAnimation:C}}(),ImagePreloader=function(){var i=function(){var B=createTag("canvas");B.width=1,B.height=1;var M=B.getContext("2d");return M.fillStyle="rgba(0,0,0,0)",M.fillRect(0,0,1,1),B}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function o(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function u(B,M,N){var $="";if(B.e)$=B.p;else if(M){var U=B.p;U.indexOf("images/")!==-1&&(U=U.split("/")[1]),$=M+U}else $=N,$+=B.u?B.u:"",$+=B.p;return $}function E(B){var M=0,N=setInterval((function(){var $=B.getBBox();($.width||M>500)&&(this._imageLoaded(),clearInterval(N)),M+=1}).bind(this),50)}function _(B){var M=u(B,this.assetsPath,this.path),N=createNS("image");isSafari?this.testImageLoaded(N):N.addEventListener("load",this._imageLoaded,!1),N.addEventListener("error",(function(){$.img=i,this._imageLoaded()}).bind(this),!1),N.setAttributeNS("http://www.w3.org/1999/xlink","href",M),this._elementHelper.append?this._elementHelper.append(N):this._elementHelper.appendChild(N);var $={img:N,assetData:B};return $}function L(B){var M=u(B,this.assetsPath,this.path),N=createTag("img");N.crossOrigin="anonymous",N.addEventListener("load",this._imageLoaded,!1),N.addEventListener("error",(function(){$.img=i,this._imageLoaded()}).bind(this),!1),N.src=M;var $={img:N,assetData:B};return $}function S(B){var M={assetData:B},N=u(B,this.assetsPath,this.path);return dataManager.loadData(N,(function($){M.img=$,this._footageLoaded()}).bind(this),(function(){M.img={},this._footageLoaded()}).bind(this)),M}function j(B,M){this.imagesLoadedCb=M;var N,$=B.length;for(N=0;N<$;N+=1)B[N].layers||(!B[N].t||B[N].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(B[N]))):B[N].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(B[N]))))}function G(B){this.path=B||""}function F(B){this.assetsPath=B||""}function C(B){for(var M=0,N=this.images.length;M<N;){if(this.images[M].assetData===B)return this.images[M].img;M+=1}return null}function D(){this.imagesLoadedCb=null,this.images.length=0}function O(){return this.totalImages===this.loadedAssets}function R(){return this.totalFootages===this.loadedFootagesCount}function P(B,M){B==="svg"?(this._elementHelper=M,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function V(){this._imageLoaded=s.bind(this),this._footageLoaded=o.bind(this),this.testImageLoaded=E.bind(this),this.createFootageData=S.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return V.prototype={loadAssets:j,setAssetsPath:F,setPath:G,loadedImages:O,loadedFootages:R,destroy:D,getAsset:C,createImgData:L,createImageData:_,imageLoaded:s,footageLoaded:o,setCacheType:P},V}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(s,o){if(this._cbs[s])for(var u=this._cbs[s],E=0;E<u.length;E+=1)u[E](o)},addEventListener:function(s,o){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(o),(function(){this.removeEventListener(s,o)}).bind(this)},removeEventListener:function(s,o){if(!o)this._cbs[s]=null;else if(this._cbs[s]){for(var u=0,E=this._cbs[s].length;u<E;)this._cbs[s][u]===o&&(this._cbs[s].splice(u,1),u-=1,E-=1),u+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var markerParser=function(){function i(s){for(var o=s.split(`\r
|
|
2
2
|
`),u={},E,_=0,L=0;L<o.length;L+=1)E=o[L].split(":"),E.length===2&&(u[E[0]]=E[1].trim(),_+=1);if(_===0)throw new Error;return u}return function(s){for(var o=[],u=0;u<s.length;u+=1){var E=s[u],_={time:E.tm,duration:E.dr};try{_.payload=JSON.parse(s[u].cm)}catch{try{_.payload=i(s[u].cm)}catch{_.payload={name:s[u].cm}}}o.push(_)}return o}}(),ProjectInterface=function(){function i(s){this.compositions.push(s)}return function(){function s(o){for(var u=0,E=this.compositions.length;u<E;){if(this.compositions[u].data&&this.compositions[u].data.nm===o)return this.compositions[u].prepareFrame&&this.compositions[u].data.xt&&this.compositions[u].prepareFrame(this.currentFrame),this.compositions[u].compInterface;u+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=i,s}}(),renderers={},registerRenderer=function(s,o){renderers[s]=o};function getRenderer(i){return renderers[i]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var i in renderers)if(renderers[i])return i;return""}function _typeof$4(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(o){return typeof o}:_typeof$4=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$4(i)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(i){(i.wrapper||i.container)&&(this.wrapper=i.wrapper||i.container);var s="svg";i.animType?s=i.animType:i.renderer&&(s=i.renderer);var o=getRenderer(s);this.renderer=new o(this,i.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,i.loop===""||i.loop===null||i.loop===void 0||i.loop===!0?this.loop=!0:i.loop===!1?this.loop=!1:this.loop=parseInt(i.loop,10),this.autoplay="autoplay"in i?i.autoplay:!0,this.name=i.name?i.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(i,"autoloadSegments")?i.autoloadSegments:!0,this.assetsPath=i.assetsPath,this.initialSegment=i.initialSegment,i.audioFactory&&this.audioController.setAudioFactory(i.audioFactory),i.animationData?this.setupAnimation(i.animationData):i.path&&(i.path.lastIndexOf("\\")!==-1?this.path=i.path.substr(0,i.path.lastIndexOf("\\")+1):this.path=i.path.substr(0,i.path.lastIndexOf("/")+1),this.fileName=i.path.substr(i.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(i.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(i){dataManager.completeAnimation(i,this.configAnimation)},AnimationItem.prototype.setData=function(i,s){s&&_typeof$4(s)!=="object"&&(s=JSON.parse(s));var o={wrapper:i,animationData:s},u=i.attributes;o.path=u.getNamedItem("data-animation-path")?u.getNamedItem("data-animation-path").value:u.getNamedItem("data-bm-path")?u.getNamedItem("data-bm-path").value:u.getNamedItem("bm-path")?u.getNamedItem("bm-path").value:"",o.animType=u.getNamedItem("data-anim-type")?u.getNamedItem("data-anim-type").value:u.getNamedItem("data-bm-type")?u.getNamedItem("data-bm-type").value:u.getNamedItem("bm-type")?u.getNamedItem("bm-type").value:u.getNamedItem("data-bm-renderer")?u.getNamedItem("data-bm-renderer").value:u.getNamedItem("bm-renderer")?u.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var E=u.getNamedItem("data-anim-loop")?u.getNamedItem("data-anim-loop").value:u.getNamedItem("data-bm-loop")?u.getNamedItem("data-bm-loop").value:u.getNamedItem("bm-loop")?u.getNamedItem("bm-loop").value:"";E==="false"?o.loop=!1:E==="true"?o.loop=!0:E!==""&&(o.loop=parseInt(E,10));var _=u.getNamedItem("data-anim-autoplay")?u.getNamedItem("data-anim-autoplay").value:u.getNamedItem("data-bm-autoplay")?u.getNamedItem("data-bm-autoplay").value:u.getNamedItem("bm-autoplay")?u.getNamedItem("bm-autoplay").value:!0;o.autoplay=_!=="false",o.name=u.getNamedItem("data-name")?u.getNamedItem("data-name").value:u.getNamedItem("data-bm-name")?u.getNamedItem("data-bm-name").value:u.getNamedItem("bm-name")?u.getNamedItem("bm-name").value:"";var L=u.getNamedItem("data-anim-prerender")?u.getNamedItem("data-anim-prerender").value:u.getNamedItem("data-bm-prerender")?u.getNamedItem("data-bm-prerender").value:u.getNamedItem("bm-prerender")?u.getNamedItem("bm-prerender").value:"";L==="false"&&(o.prerender=!1),o.path?this.setParams(o):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(i){i.op>this.animationData.op&&(this.animationData.op=i.op,this.totalFrames=Math.floor(i.op-this.animationData.ip));var s=this.animationData.layers,o,u=s.length,E=i.layers,_,L=E.length;for(_=0;_<L;_+=1)for(o=0;o<u;){if(s[o].id===E[_].id){s[o]=E[_];break}o+=1}if((i.chars||i.fonts)&&(this.renderer.globalData.fontManager.addChars(i.chars),this.renderer.globalData.fontManager.addFonts(i.fonts,this.renderer.globalData.defs)),i.assets)for(u=i.assets.length,o=0;o<u;o+=1)this.animationData.assets.push(i.assets[o]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(i){this.animationData=i;var s=getExpressionsPlugin();s&&s.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var i=this.animationData.segments;if(!i||i.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=i.shift();this.timeCompleted=s.time*this.frameRate;var o=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(o,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var i=this.animationData.segments;i||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(i){if(this.renderer)try{this.animationData=i,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(i),i.assets||(i.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(i.assets),this.markers=markerParser(i.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var i=getExpressionsPlugin();i&&i.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(i,s){var o=typeof i=="number"?i:void 0,u=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(o,u)},AnimationItem.prototype.setSubframe=function(i){this.isSubframeEnabled=!!i},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(i){this.triggerRenderFrameError(i)}},AnimationItem.prototype.play=function(i){i&&this.name!==i||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(i){i&&this.name!==i||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(i){i&&this.name!==i||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(i){i&&this.name!==i||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(i){for(var s,o=0;o<this.markers.length;o+=1)if(s=this.markers[o],s.payload&&s.payload.name===i)return s;return null},AnimationItem.prototype.goToAndStop=function(i,s,o){if(!(o&&this.name!==o)){var u=Number(i);if(isNaN(u)){var E=this.getMarkerData(i);E&&this.goToAndStop(E.time,!0)}else s?this.setCurrentRawFrameValue(i):this.setCurrentRawFrameValue(i*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(i,s,o){if(!(o&&this.name!==o)){var u=Number(i);if(isNaN(u)){var E=this.getMarkerData(i);E&&(E.duration?this.playSegments([E.time,E.time+E.duration],!0):this.goToAndStop(E.time,!0))}else this.goToAndStop(u,s,o);this.play()}},AnimationItem.prototype.advanceTime=function(i){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+i*this.frameModifier,o=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(o=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(o=!0,s=0)):this.setCurrentRawFrameValue(s),o&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(i,s){this.playCount=0,i[1]<i[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=i[0]-i[1],this.timeCompleted=this.totalFrames,this.firstFrame=i[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):i[1]>i[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=i[1]-i[0],this.timeCompleted=this.totalFrames,this.firstFrame=i[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(i,s){var o=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<i?o=i:this.currentRawFrame+this.firstFrame>s&&(o=s-i)),this.firstFrame=i,this.totalFrames=s-i,this.timeCompleted=this.totalFrames,o!==-1&&this.goToAndStop(o,!0)},AnimationItem.prototype.playSegments=function(i,s){if(s&&(this.segments.length=0),_typeof$4(i[0])==="object"){var o,u=i.length;for(o=0;o<u;o+=1)this.segments.push(i[o])}else this.segments.push(i);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(i){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),i&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(i){return this.segments.length?(this.adjustSegment(this.segments.shift(),i),!0):!1},AnimationItem.prototype.destroy=function(i){i&&this.name!==i||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(i){this.currentRawFrame=i,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(i){this.playSpeed=i,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(i){this.playDirection=i<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(i){this.loop=i},AnimationItem.prototype.setVolume=function(i,s){s&&this.name!==s||this.audioController.setVolume(i)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(i){i&&this.name!==i||this.audioController.mute()},AnimationItem.prototype.unmute=function(i){i&&this.name!==i||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(i){var s="";if(i.e)s=i.p;else if(this.assetsPath){var o=i.p;o.indexOf("images/")!==-1&&(o=o.split("/")[1]),s=this.assetsPath+o}else s=this.path,s+=i.u?i.u:"",s+=i.p;return s},AnimationItem.prototype.getAssetData=function(i){for(var s=0,o=this.assets.length;s<o;){if(i===this.assets[s].id)return this.assets[s];s+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(i){return i?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(i,s,o){try{var u=this.renderer.getElementByPath(i);u.updateDocumentData(s,o)}catch{}},AnimationItem.prototype.trigger=function(i){if(this._cbs&&this._cbs[i])switch(i){case"enterFrame":this.triggerEvent(i,new BMEnterFrameEvent(i,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(i,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(i,new BMCompleteLoopEvent(i,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(i,new BMCompleteEvent(i,this.frameMult));break;case"segmentStart":this.triggerEvent(i,new BMSegmentStartEvent(i,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(i,new BMDestroyEvent(i,this));break;default:this.triggerEvent(i)}i==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(i,this.currentFrame,this.totalFrames,this.frameMult)),i==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(i,this.loop,this.playCount,this.frameMult)),i==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(i,this.frameMult)),i==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(i,this.firstFrame,this.totalFrames)),i==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(i,this))},AnimationItem.prototype.triggerRenderFrameError=function(i){var s=new BMRenderFrameErrorEvent(i,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},AnimationItem.prototype.triggerConfigError=function(i){var s=new BMConfigErrorEvent(i,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var animationManager=function(){var i={},s=[],o=0,u=0,E=0,_=!0,L=!1;function S(re){for(var oe=0,J=re.target;oe<u;)s[oe].animation===J&&(s.splice(oe,1),oe-=1,u-=1,J.isPaused||C()),oe+=1}function j(re,oe){if(!re)return null;for(var J=0;J<u;){if(s[J].elem===re&&s[J].elem!==null)return s[J].animation;J+=1}var te=new AnimationItem;return D(te,re),te.setData(re,oe),te}function G(){var re,oe=s.length,J=[];for(re=0;re<oe;re+=1)J.push(s[re].animation);return J}function F(){E+=1,Q()}function C(){E-=1}function D(re,oe){re.addEventListener("destroy",S),re.addEventListener("_active",F),re.addEventListener("_idle",C),s.push({elem:oe,animation:re}),u+=1}function O(re){var oe=new AnimationItem;return D(oe,null),oe.setParams(re),oe}function R(re,oe){var J;for(J=0;J<u;J+=1)s[J].animation.setSpeed(re,oe)}function P(re,oe){var J;for(J=0;J<u;J+=1)s[J].animation.setDirection(re,oe)}function V(re){var oe;for(oe=0;oe<u;oe+=1)s[oe].animation.play(re)}function B(re){var oe=re-o,J;for(J=0;J<u;J+=1)s[J].animation.advanceTime(oe);o=re,E&&!L?window.requestAnimationFrame(B):_=!0}function M(re){o=re,window.requestAnimationFrame(B)}function N(re){var oe;for(oe=0;oe<u;oe+=1)s[oe].animation.pause(re)}function $(re,oe,J){var te;for(te=0;te<u;te+=1)s[te].animation.goToAndStop(re,oe,J)}function U(re){var oe;for(oe=0;oe<u;oe+=1)s[oe].animation.stop(re)}function H(re){var oe;for(oe=0;oe<u;oe+=1)s[oe].animation.togglePause(re)}function W(re){var oe;for(oe=u-1;oe>=0;oe-=1)s[oe].animation.destroy(re)}function K(re,oe,J){var te=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),xe,Ee=te.length;for(xe=0;xe<Ee;xe+=1)J&&te[xe].setAttribute("data-bm-type",J),j(te[xe],re);if(oe&&Ee===0){J||(J="svg");var $e=document.getElementsByTagName("body")[0];$e.innerText="";var tt=createTag("div");tt.style.width="100%",tt.style.height="100%",tt.setAttribute("data-bm-type",J),$e.appendChild(tt),j(tt,re)}}function X(){var re;for(re=0;re<u;re+=1)s[re].animation.resize()}function Q(){!L&&E&&_&&(window.requestAnimationFrame(M),_=!1)}function ne(){L=!0}function Ce(){L=!1,Q()}function De(re,oe){var J;for(J=0;J<u;J+=1)s[J].animation.setVolume(re,oe)}function Be(re){var oe;for(oe=0;oe<u;oe+=1)s[oe].animation.mute(re)}function ye(re){var oe;for(oe=0;oe<u;oe+=1)s[oe].animation.unmute(re)}return i.registerAnimation=j,i.loadAnimation=O,i.setSpeed=R,i.setDirection=P,i.play=V,i.pause=N,i.stop=U,i.togglePause=H,i.searchAnimations=K,i.resize=X,i.goToAndStop=$,i.destroy=W,i.freeze=ne,i.unfreeze=Ce,i.setVolume=De,i.mute=Be,i.unmute=ye,i.getRegisteredAnimations=G,i}(),BezierFactory=function(){var i={};i.getBezierEasing=o;var s={};function o(M,N,$,U,H){var W=H||("bez_"+M+"_"+N+"_"+$+"_"+U).replace(/\./g,"p");if(s[W])return s[W];var K=new B([M,N,$,U]);return s[W]=K,K}var u=4,E=.001,_=1e-7,L=10,S=11,j=1/(S-1),G=typeof Float32Array=="function";function F(M,N){return 1-3*N+3*M}function C(M,N){return 3*N-6*M}function D(M){return 3*M}function O(M,N,$){return((F(N,$)*M+C(N,$))*M+D(N))*M}function R(M,N,$){return 3*F(N,$)*M*M+2*C(N,$)*M+D(N)}function P(M,N,$,U,H){var W,K,X=0;do K=N+($-N)/2,W=O(K,U,H)-M,W>0?$=K:N=K;while(Math.abs(W)>_&&++X<L);return K}function V(M,N,$,U){for(var H=0;H<u;++H){var W=R(N,$,U);if(W===0)return N;var K=O(N,$,U)-M;N-=K/W}return N}function B(M){this._p=M,this._mSampleValues=G?new Float32Array(S):new Array(S),this._precomputed=!1,this.get=this.get.bind(this)}return B.prototype={get:function(N){var $=this._p[0],U=this._p[1],H=this._p[2],W=this._p[3];return this._precomputed||this._precompute(),$===U&&H===W?N:N===0?0:N===1?1:O(this._getTForX(N),U,W)},_precompute:function(){var N=this._p[0],$=this._p[1],U=this._p[2],H=this._p[3];this._precomputed=!0,(N!==$||U!==H)&&this._calcSampleValues()},_calcSampleValues:function(){for(var N=this._p[0],$=this._p[2],U=0;U<S;++U)this._mSampleValues[U]=O(U*j,N,$)},_getTForX:function(N){for(var $=this._p[0],U=this._p[2],H=this._mSampleValues,W=0,K=1,X=S-1;K!==X&&H[K]<=N;++K)W+=j;--K;var Q=(N-H[K])/(H[K+1]-H[K]),ne=W+Q*j,Ce=R(ne,$,U);return Ce>=E?V(N,ne,$,U):Ce===0?ne:P(N,W,W+j,$,U)}},i}(),pooling=function(){function i(s){return s.concat(createSizedArray(s.length))}return{double:i}}(),poolFactory=function(){return function(i,s,o){var u=0,E=i,_=createSizedArray(E),L={newElement:S,release:j};function S(){var G;return u?(u-=1,G=_[u]):G=s(),G}function j(G){u===E&&(_=pooling.double(_),E*=2),o&&o(G),_[u]=G,u+=1}return L}}(),bezierLengthPool=function(){function i(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,i)}(),segmentsLengthPool=function(){function i(){return{lengths:[],totalLength:0}}function s(o){var u,E=o.lengths.length;for(u=0;u<E;u+=1)bezierLengthPool.release(o.lengths[u]);o.lengths.length=0}return poolFactory(8,i,s)}();function bezFunction(){var i=Math;function s(D,O,R,P,V,B){var M=D*P+O*V+R*B-V*P-B*D-R*O;return M>-.001&&M<.001}function o(D,O,R,P,V,B,M,N,$){if(R===0&&B===0&&$===0)return s(D,O,P,V,M,N);var U=i.sqrt(i.pow(P-D,2)+i.pow(V-O,2)+i.pow(B-R,2)),H=i.sqrt(i.pow(M-D,2)+i.pow(N-O,2)+i.pow($-R,2)),W=i.sqrt(i.pow(M-P,2)+i.pow(N-V,2)+i.pow($-B,2)),K;return U>H?U>W?K=U-H-W:K=W-H-U:W>H?K=W-H-U:K=H-U-W,K>-1e-4&&K<1e-4}var u=function(){return function(D,O,R,P){var V=getDefaultCurveSegments(),B,M,N,$,U,H=0,W,K=[],X=[],Q=bezierLengthPool.newElement();for(N=R.length,B=0;B<V;B+=1){for(U=B/(V-1),W=0,M=0;M<N;M+=1)$=bmPow(1-U,3)*D[M]+3*bmPow(1-U,2)*U*R[M]+3*(1-U)*bmPow(U,2)*P[M]+bmPow(U,3)*O[M],K[M]=$,X[M]!==null&&(W+=bmPow(K[M]-X[M],2)),X[M]=K[M];W&&(W=bmSqrt(W),H+=W),Q.percents[B]=U,Q.lengths[B]=H}return Q.addedLength=H,Q}}();function E(D){var O=segmentsLengthPool.newElement(),R=D.c,P=D.v,V=D.o,B=D.i,M,N=D._length,$=O.lengths,U=0;for(M=0;M<N-1;M+=1)$[M]=u(P[M],P[M+1],V[M],B[M+1]),U+=$[M].addedLength;return R&&N&&($[M]=u(P[M],P[0],V[M],B[0]),U+=$[M].addedLength),O.totalLength=U,O}function _(D){this.segmentLength=0,this.points=new Array(D)}function L(D,O){this.partialLength=D,this.point=O}var S=function(){var D={};return function(O,R,P,V){var B=(O[0]+"_"+O[1]+"_"+R[0]+"_"+R[1]+"_"+P[0]+"_"+P[1]+"_"+V[0]+"_"+V[1]).replace(/\./g,"p");if(!D[B]){var M=getDefaultCurveSegments(),N,$,U,H,W,K=0,X,Q,ne=null;O.length===2&&(O[0]!==R[0]||O[1]!==R[1])&&s(O[0],O[1],R[0],R[1],O[0]+P[0],O[1]+P[1])&&s(O[0],O[1],R[0],R[1],R[0]+V[0],R[1]+V[1])&&(M=2);var Ce=new _(M);for(U=P.length,N=0;N<M;N+=1){for(Q=createSizedArray(U),W=N/(M-1),X=0,$=0;$<U;$+=1)H=bmPow(1-W,3)*O[$]+3*bmPow(1-W,2)*W*(O[$]+P[$])+3*(1-W)*bmPow(W,2)*(R[$]+V[$])+bmPow(W,3)*R[$],Q[$]=H,ne!==null&&(X+=bmPow(Q[$]-ne[$],2));X=bmSqrt(X),K+=X,Ce.points[N]=new L(X,Q),ne=Q}Ce.segmentLength=K,D[B]=Ce}return D[B]}}();function j(D,O){var R=O.percents,P=O.lengths,V=R.length,B=bmFloor((V-1)*D),M=D*O.addedLength,N=0;if(B===V-1||B===0||M===P[B])return R[B];for(var $=P[B]>M?-1:1,U=!0;U;)if(P[B]<=M&&P[B+1]>M?(N=(M-P[B])/(P[B+1]-P[B]),U=!1):B+=$,B<0||B>=V-1){if(B===V-1)return R[B];U=!1}return R[B]+(R[B+1]-R[B])*N}function G(D,O,R,P,V,B){var M=j(V,B),N=1-M,$=i.round((N*N*N*D[0]+(M*N*N+N*M*N+N*N*M)*R[0]+(M*M*N+N*M*M+M*N*M)*P[0]+M*M*M*O[0])*1e3)/1e3,U=i.round((N*N*N*D[1]+(M*N*N+N*M*N+N*N*M)*R[1]+(M*M*N+N*M*M+M*N*M)*P[1]+M*M*M*O[1])*1e3)/1e3;return[$,U]}var F=createTypedArray("float32",8);function C(D,O,R,P,V,B,M){V<0?V=0:V>1&&(V=1);var N=j(V,M);B=B>1?1:B;var $=j(B,M),U,H=D.length,W=1-N,K=1-$,X=W*W*W,Q=N*W*W*3,ne=N*N*W*3,Ce=N*N*N,De=W*W*K,Be=N*W*K+W*N*K+W*W*$,ye=N*N*K+W*N*$+N*W*$,re=N*N*$,oe=W*K*K,J=N*K*K+W*$*K+W*K*$,te=N*$*K+W*$*$+N*K*$,xe=N*$*$,Ee=K*K*K,$e=$*K*K+K*$*K+K*K*$,tt=$*$*K+K*$*$+$*K*$,nt=$*$*$;for(U=0;U<H;U+=1)F[U*4]=i.round((X*D[U]+Q*R[U]+ne*P[U]+Ce*O[U])*1e3)/1e3,F[U*4+1]=i.round((De*D[U]+Be*R[U]+ye*P[U]+re*O[U])*1e3)/1e3,F[U*4+2]=i.round((oe*D[U]+J*R[U]+te*P[U]+xe*O[U])*1e3)/1e3,F[U*4+3]=i.round((Ee*D[U]+$e*R[U]+tt*P[U]+nt*O[U])*1e3)/1e3;return F}return{getSegmentsLength:E,getNewSegment:C,getPointInSegment:G,buildBezierData:S,pointOnLine2D:s,pointOnLine3D:o}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(i,s){var o=this.offsetTime,u;this.propType==="multidimensional"&&(u=createTypedArray("float32",this.pv.length));for(var E=s.lastIndex,_=E,L=this.keyframes.length-1,S=!0,j,G,F;S;){if(j=this.keyframes[_],G=this.keyframes[_+1],_===L-1&&i>=G.t-o){j.h&&(j=G),E=0;break}if(G.t-o>i){E=_;break}_<L-1?_+=1:(E=0,S=!1)}F=this.keyframesMetadata[_]||{};var C,D,O,R,P,V,B=G.t-o,M=j.t-o,N;if(j.to){F.bezierData||(F.bezierData=bez.buildBezierData(j.s,G.s||j.e,j.to,j.ti));var $=F.bezierData;if(i>=B||i<M){var U=i>=B?$.points.length-1:0;for(D=$.points[U].point.length,C=0;C<D;C+=1)u[C]=$.points[U].point[C]}else{F.__fnct?V=F.__fnct:(V=BezierFactory.getBezierEasing(j.o.x,j.o.y,j.i.x,j.i.y,j.n).get,F.__fnct=V),O=V((i-M)/(B-M));var H=$.segmentLength*O,W,K=s.lastFrame<i&&s._lastKeyframeIndex===_?s._lastAddedLength:0;for(P=s.lastFrame<i&&s._lastKeyframeIndex===_?s._lastPoint:0,S=!0,R=$.points.length;S;){if(K+=$.points[P].partialLength,H===0||O===0||P===$.points.length-1){for(D=$.points[P].point.length,C=0;C<D;C+=1)u[C]=$.points[P].point[C];break}else if(H>=K&&H<K+$.points[P+1].partialLength){for(W=(H-K)/$.points[P+1].partialLength,D=$.points[P].point.length,C=0;C<D;C+=1)u[C]=$.points[P].point[C]+($.points[P+1].point[C]-$.points[P].point[C])*W;break}P<R-1?P+=1:S=!1}s._lastPoint=P,s._lastAddedLength=K-$.points[P].partialLength,s._lastKeyframeIndex=_}}else{var X,Q,ne,Ce,De;if(L=j.s.length,N=G.s||j.e,this.sh&&j.h!==1)if(i>=B)u[0]=N[0],u[1]=N[1],u[2]=N[2];else if(i<=M)u[0]=j.s[0],u[1]=j.s[1],u[2]=j.s[2];else{var Be=createQuaternion(j.s),ye=createQuaternion(N),re=(i-M)/(B-M);quaternionToEuler(u,slerp(Be,ye,re))}else for(_=0;_<L;_+=1)j.h!==1&&(i>=B?O=1:i<M?O=0:(j.o.x.constructor===Array?(F.__fnct||(F.__fnct=[]),F.__fnct[_]?V=F.__fnct[_]:(X=j.o.x[_]===void 0?j.o.x[0]:j.o.x[_],Q=j.o.y[_]===void 0?j.o.y[0]:j.o.y[_],ne=j.i.x[_]===void 0?j.i.x[0]:j.i.x[_],Ce=j.i.y[_]===void 0?j.i.y[0]:j.i.y[_],V=BezierFactory.getBezierEasing(X,Q,ne,Ce).get,F.__fnct[_]=V)):F.__fnct?V=F.__fnct:(X=j.o.x,Q=j.o.y,ne=j.i.x,Ce=j.i.y,V=BezierFactory.getBezierEasing(X,Q,ne,Ce).get,j.keyframeMetadata=V),O=V((i-M)/(B-M)))),N=G.s||j.e,De=j.h===1?j.s[_]:j.s[_]+(N[_]-j.s[_])*O,this.propType==="multidimensional"?u[_]=De:u=De}return s.lastIndex=E,u}function slerp(i,s,o){var u=[],E=i[0],_=i[1],L=i[2],S=i[3],j=s[0],G=s[1],F=s[2],C=s[3],D,O,R,P,V;return O=E*j+_*G+L*F+S*C,O<0&&(O=-O,j=-j,G=-G,F=-F,C=-C),1-O>1e-6?(D=Math.acos(O),R=Math.sin(D),P=Math.sin((1-o)*D)/R,V=Math.sin(o*D)/R):(P=1-o,V=o),u[0]=P*E+V*j,u[1]=P*_+V*G,u[2]=P*L+V*F,u[3]=P*S+V*C,u}function quaternionToEuler(i,s){var o=s[0],u=s[1],E=s[2],_=s[3],L=Math.atan2(2*u*_-2*o*E,1-2*u*u-2*E*E),S=Math.asin(2*o*u+2*E*_),j=Math.atan2(2*o*_-2*u*E,1-2*o*o-2*E*E);i[0]=L/degToRads,i[1]=S/degToRads,i[2]=j/degToRads}function createQuaternion(i){var s=i[0]*degToRads,o=i[1]*degToRads,u=i[2]*degToRads,E=Math.cos(s/2),_=Math.cos(o/2),L=Math.cos(u/2),S=Math.sin(s/2),j=Math.sin(o/2),G=Math.sin(u/2),F=E*_*L-S*j*G,C=S*j*L+E*_*G,D=S*_*L+E*j*G,O=E*j*L-S*_*G;return[C,D,O,F]}function getValueAtCurrentTime(){var i=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,o=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(i===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=o&&i>=o||this._caching.lastFrame<s&&i<s))){this._caching.lastFrame>=i&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var u=this.interpolateValue(i,this._caching);this.pv=u}return this._caching.lastFrame=i,this.pv}function setVValue(i){var s;if(this.propType==="unidimensional")s=i*this.mult,mathAbs(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var o=0,u=this.v.length;o<u;)s=i[o]*this.mult,mathAbs(this.v[o]-s)>1e-5&&(this.v[o]=s,this._mdf=!0),o+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var i,s=this.effectsSequence.length,o=this.kf?this.pv:this.data.k;for(i=0;i<s;i+=1)o=this.effectsSequence[i](o);this.setVValue(o),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(i){this.effectsSequence.push(i),this.container.addDynamicProperty(this)}function ValueProperty(i,s,o,u){this.propType="unidimensional",this.mult=o||1,this.data=s,this.v=o?s.k*o:s.k,this.pv=s.k,this._mdf=!1,this.elem=i,this.container=u,this.comp=i.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(i,s,o,u){this.propType="multidimensional",this.mult=o||1,this.data=s,this._mdf=!1,this.elem=i,this.container=u,this.comp=i.comp,this.k=!1,this.kf=!1,this.frameId=-1;var E,_=s.k.length;for(this.v=createTypedArray("float32",_),this.pv=createTypedArray("float32",_),this.vel=createTypedArray("float32",_),E=0;E<_;E+=1)this.v[E]=s.k[E]*this.mult,this.pv[E]=s.k[E];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(i,s,o,u){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=i.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=o||1,this.elem=i,this.container=u,this.comp=i.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(i,s,o,u){this.propType="multidimensional";var E,_=s.k.length,L,S,j,G;for(E=0;E<_-1;E+=1)s.k[E].to&&s.k[E].s&&s.k[E+1]&&s.k[E+1].s&&(L=s.k[E].s,S=s.k[E+1].s,j=s.k[E].to,G=s.k[E].ti,(L.length===2&&!(L[0]===S[0]&&L[1]===S[1])&&bez.pointOnLine2D(L[0],L[1],S[0],S[1],L[0]+j[0],L[1]+j[1])&&bez.pointOnLine2D(L[0],L[1],S[0],S[1],S[0]+G[0],S[1]+G[1])||L.length===3&&!(L[0]===S[0]&&L[1]===S[1]&&L[2]===S[2])&&bez.pointOnLine3D(L[0],L[1],L[2],S[0],S[1],S[2],L[0]+j[0],L[1]+j[1],L[2]+j[2])&&bez.pointOnLine3D(L[0],L[1],L[2],S[0],S[1],S[2],S[0]+G[0],S[1]+G[1],S[2]+G[2]))&&(s.k[E].to=null,s.k[E].ti=null),L[0]===S[0]&&L[1]===S[1]&&j[0]===0&&j[1]===0&&G[0]===0&&G[1]===0&&(L.length===2||L[2]===S[2]&&j[2]===0&&G[2]===0)&&(s.k[E].to=null,s.k[E].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=i.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=o||1,this.elem=i,this.container=u,this.comp=i.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var F=s.k[0].s.length;for(this.v=createTypedArray("float32",F),this.pv=createTypedArray("float32",F),E=0;E<F;E+=1)this.v[E]=initFrame,this.pv[E]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",F)},this.addEffect=addEffect}var PropertyFactory=function(){function i(o,u,E,_,L){u.sid&&(u=o.globalData.slotManager.getProp(u));var S;if(!u.k.length)S=new ValueProperty(o,u,_,L);else if(typeof u.k[0]=="number")S=new MultiDimensionalProperty(o,u,_,L);else switch(E){case 0:S=new KeyframedValueProperty(o,u,_,L);break;case 1:S=new KeyframedMultidimensionalProperty(o,u,_,L);break}return S.effectsSequence.length&&L.addDynamicProperty(S),S}var s={getProp:i};return s}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,o=this.dynamicProperties.length;for(s=0;s<o;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function i(){return createTypedArray("float32",2)}return poolFactory(8,i)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(i,s){this.c=i,this.setLength(s);for(var o=0;o<s;)this.v[o]=pointPool.newElement(),this.o[o]=pointPool.newElement(),this.i[o]=pointPool.newElement(),o+=1},ShapePath.prototype.setLength=function(i){for(;this._maxLength<i;)this.doubleArrayLength();this._length=i},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(i,s,o,u,E){var _;switch(this._length=Math.max(this._length,u+1),this._length>=this._maxLength&&this.doubleArrayLength(),o){case"v":_=this.v;break;case"i":_=this.i;break;case"o":_=this.o;break;default:_=[];break}(!_[u]||_[u]&&!E)&&(_[u]=pointPool.newElement()),_[u][0]=i,_[u][1]=s},ShapePath.prototype.setTripleAt=function(i,s,o,u,E,_,L,S){this.setXYAt(i,s,"v",L,S),this.setXYAt(o,u,"o",L,S),this.setXYAt(E,_,"i",L,S)},ShapePath.prototype.reverse=function(){var i=new ShapePath;i.setPathData(this.c,this._length);var s=this.v,o=this.o,u=this.i,E=0;this.c&&(i.setTripleAt(s[0][0],s[0][1],u[0][0],u[0][1],o[0][0],o[0][1],0,!1),E=1);var _=this._length-1,L=this._length,S;for(S=E;S<L;S+=1)i.setTripleAt(s[_][0],s[_][1],u[_][0],u[_][1],o[_][0],o[_][1],S,!1),_-=1;return i},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function i(){return new ShapePath}function s(E){var _=E._length,L;for(L=0;L<_;L+=1)pointPool.release(E.v[L]),pointPool.release(E.i[L]),pointPool.release(E.o[L]),E.v[L]=null,E.i[L]=null,E.o[L]=null;E._length=0,E.c=!1}function o(E){var _=u.newElement(),L,S=E._length===void 0?E.v.length:E._length;for(_.setLength(S),_.c=E.c,L=0;L<S;L+=1)_.setTripleAt(E.v[L][0],E.v[L][1],E.o[L][0],E.o[L][1],E.i[L][0],E.i[L][1],L);return _}var u=poolFactory(4,i,s);return u.clone=o,u}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(i){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=i,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var i;for(i=0;i<this._length;i+=1)shapePool.release(this.shapes[i]);this._length=0};var shapeCollectionPool=function(){var i={newShapeCollection:E,release:_},s=0,o=4,u=createSizedArray(o);function E(){var L;return s?(s-=1,L=u[s]):L=new ShapeCollection,L}function _(L){var S,j=L._length;for(S=0;S<j;S+=1)shapePool.release(L.shapes[S]);L._length=0,s===o&&(u=pooling.double(u),o*=2),u[s]=L,s+=1}return i}(),ShapePropertyFactory=function(){var i=-999999;function s(B,M,N){var $=N.lastIndex,U,H,W,K,X,Q,ne,Ce,De,Be=this.keyframes;if(B<Be[0].t-this.offsetTime)U=Be[0].s[0],W=!0,$=0;else if(B>=Be[Be.length-1].t-this.offsetTime)U=Be[Be.length-1].s?Be[Be.length-1].s[0]:Be[Be.length-2].e[0],W=!0;else{for(var ye=$,re=Be.length-1,oe=!0,J,te,xe;oe&&(J=Be[ye],te=Be[ye+1],!(te.t-this.offsetTime>B));)ye<re-1?ye+=1:oe=!1;if(xe=this.keyframesMetadata[ye]||{},W=J.h===1,$=ye,!W){if(B>=te.t-this.offsetTime)Ce=1;else if(B<J.t-this.offsetTime)Ce=0;else{var Ee;xe.__fnct?Ee=xe.__fnct:(Ee=BezierFactory.getBezierEasing(J.o.x,J.o.y,J.i.x,J.i.y).get,xe.__fnct=Ee),Ce=Ee((B-(J.t-this.offsetTime))/(te.t-this.offsetTime-(J.t-this.offsetTime)))}H=te.s?te.s[0]:J.e[0]}U=J.s[0]}for(Q=M._length,ne=U.i[0].length,N.lastIndex=$,K=0;K<Q;K+=1)for(X=0;X<ne;X+=1)De=W?U.i[K][X]:U.i[K][X]+(H.i[K][X]-U.i[K][X])*Ce,M.i[K][X]=De,De=W?U.o[K][X]:U.o[K][X]+(H.o[K][X]-U.o[K][X])*Ce,M.o[K][X]=De,De=W?U.v[K][X]:U.v[K][X]+(H.v[K][X]-U.v[K][X])*Ce,M.v[K][X]=De}function o(){var B=this.comp.renderedFrame-this.offsetTime,M=this.keyframes[0].t-this.offsetTime,N=this.keyframes[this.keyframes.length-1].t-this.offsetTime,$=this._caching.lastFrame;return $!==i&&($<M&&B<M||$>N&&B>N)||(this._caching.lastIndex=$<B?this._caching.lastIndex:0,this.interpolateShape(B,this.pv,this._caching)),this._caching.lastFrame=B,this.pv}function u(){this.paths=this.localShapeCollection}function E(B,M){if(B._length!==M._length||B.c!==M.c)return!1;var N,$=B._length;for(N=0;N<$;N+=1)if(B.v[N][0]!==M.v[N][0]||B.v[N][1]!==M.v[N][1]||B.o[N][0]!==M.o[N][0]||B.o[N][1]!==M.o[N][1]||B.i[N][0]!==M.i[N][0]||B.i[N][1]!==M.i[N][1])return!1;return!0}function _(B){E(this.v,B)||(this.v=shapePool.clone(B),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function L(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var B;this.kf?B=this.pv:this.data.ks?B=this.data.ks.k:B=this.data.pt.k;var M,N=this.effectsSequence.length;for(M=0;M<N;M+=1)B=this.effectsSequence[M](B);this.setVValue(B),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function S(B,M,N){this.propType="shape",this.comp=B.comp,this.container=B,this.elem=B,this.data=M,this.k=!1,this.kf=!1,this._mdf=!1;var $=N===3?M.pt.k:M.ks.k;this.v=shapePool.clone($),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=u,this.effectsSequence=[]}function j(B){this.effectsSequence.push(B),this.container.addDynamicProperty(this)}S.prototype.interpolateShape=s,S.prototype.getValue=L,S.prototype.setVValue=_,S.prototype.addEffect=j;function G(B,M,N){this.propType="shape",this.comp=B.comp,this.elem=B,this.container=B,this.offsetTime=B.data.st,this.keyframes=N===3?M.pt.k:M.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var $=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,$),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=i,this.reset=u,this._caching={lastFrame:i,lastIndex:0},this.effectsSequence=[o.bind(this)]}G.prototype.getValue=L,G.prototype.interpolateShape=s,G.prototype.setVValue=_,G.prototype.addEffect=j;var F=function(){var B=roundCorner;function M(N,$){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=$.d,this.elem=N,this.comp=N.comp,this.frameId=-1,this.initDynamicPropertyContainer(N),this.p=PropertyFactory.getProp(N,$.p,1,0,this),this.s=PropertyFactory.getProp(N,$.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return M.prototype={reset:u,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var $=this.p.v[0],U=this.p.v[1],H=this.s.v[0]/2,W=this.s.v[1]/2,K=this.d!==3,X=this.v;X.v[0][0]=$,X.v[0][1]=U-W,X.v[1][0]=K?$+H:$-H,X.v[1][1]=U,X.v[2][0]=$,X.v[2][1]=U+W,X.v[3][0]=K?$-H:$+H,X.v[3][1]=U,X.i[0][0]=K?$-H*B:$+H*B,X.i[0][1]=U-W,X.i[1][0]=K?$+H:$-H,X.i[1][1]=U-W*B,X.i[2][0]=K?$+H*B:$-H*B,X.i[2][1]=U+W,X.i[3][0]=K?$-H:$+H,X.i[3][1]=U+W*B,X.o[0][0]=K?$+H*B:$-H*B,X.o[0][1]=U-W,X.o[1][0]=K?$+H:$-H,X.o[1][1]=U+W*B,X.o[2][0]=K?$-H*B:$+H*B,X.o[2][1]=U+W,X.o[3][0]=K?$-H:$+H,X.o[3][1]=U-W*B}},extendPrototype([DynamicPropertyContainer],M),M}(),C=function(){function B(M,N){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=M,this.comp=M.comp,this.data=N,this.frameId=-1,this.d=N.d,this.initDynamicPropertyContainer(M),N.sy===1?(this.ir=PropertyFactory.getProp(M,N.ir,0,0,this),this.is=PropertyFactory.getProp(M,N.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(M,N.pt,0,0,this),this.p=PropertyFactory.getProp(M,N.p,1,0,this),this.r=PropertyFactory.getProp(M,N.r,0,degToRads,this),this.or=PropertyFactory.getProp(M,N.or,0,0,this),this.os=PropertyFactory.getProp(M,N.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return B.prototype={reset:u,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var N=Math.floor(this.pt.v)*2,$=Math.PI*2/N,U=!0,H=this.or.v,W=this.ir.v,K=this.os.v,X=this.is.v,Q=2*Math.PI*H/(N*2),ne=2*Math.PI*W/(N*2),Ce,De,Be,ye,re=-Math.PI/2;re+=this.r.v;var oe=this.data.d===3?-1:1;for(this.v._length=0,Ce=0;Ce<N;Ce+=1){De=U?H:W,Be=U?K:X,ye=U?Q:ne;var J=De*Math.cos(re),te=De*Math.sin(re),xe=J===0&&te===0?0:te/Math.sqrt(J*J+te*te),Ee=J===0&&te===0?0:-J/Math.sqrt(J*J+te*te);J+=+this.p.v[0],te+=+this.p.v[1],this.v.setTripleAt(J,te,J-xe*ye*Be*oe,te-Ee*ye*Be*oe,J+xe*ye*Be*oe,te+Ee*ye*Be*oe,Ce,!0),U=!U,re+=$*oe}},convertPolygonToPath:function(){var N=Math.floor(this.pt.v),$=Math.PI*2/N,U=this.or.v,H=this.os.v,W=2*Math.PI*U/(N*4),K,X=-Math.PI*.5,Q=this.data.d===3?-1:1;for(X+=this.r.v,this.v._length=0,K=0;K<N;K+=1){var ne=U*Math.cos(X),Ce=U*Math.sin(X),De=ne===0&&Ce===0?0:Ce/Math.sqrt(ne*ne+Ce*Ce),Be=ne===0&&Ce===0?0:-ne/Math.sqrt(ne*ne+Ce*Ce);ne+=+this.p.v[0],Ce+=+this.p.v[1],this.v.setTripleAt(ne,Ce,ne-De*W*H*Q,Ce-Be*W*H*Q,ne+De*W*H*Q,Ce+Be*W*H*Q,K,!0),X+=$*Q}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],B),B}(),D=function(){function B(M,N){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=M,this.comp=M.comp,this.frameId=-1,this.d=N.d,this.initDynamicPropertyContainer(M),this.p=PropertyFactory.getProp(M,N.p,1,0,this),this.s=PropertyFactory.getProp(M,N.s,1,0,this),this.r=PropertyFactory.getProp(M,N.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return B.prototype={convertRectToPath:function(){var N=this.p.v[0],$=this.p.v[1],U=this.s.v[0]/2,H=this.s.v[1]/2,W=bmMin(U,H,this.r.v),K=W*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(N+U,$-H+W,N+U,$-H+W,N+U,$-H+K,0,!0),this.v.setTripleAt(N+U,$+H-W,N+U,$+H-K,N+U,$+H-W,1,!0),W!==0?(this.v.setTripleAt(N+U-W,$+H,N+U-W,$+H,N+U-K,$+H,2,!0),this.v.setTripleAt(N-U+W,$+H,N-U+K,$+H,N-U+W,$+H,3,!0),this.v.setTripleAt(N-U,$+H-W,N-U,$+H-W,N-U,$+H-K,4,!0),this.v.setTripleAt(N-U,$-H+W,N-U,$-H+K,N-U,$-H+W,5,!0),this.v.setTripleAt(N-U+W,$-H,N-U+W,$-H,N-U+K,$-H,6,!0),this.v.setTripleAt(N+U-W,$-H,N+U-K,$-H,N+U-W,$-H,7,!0)):(this.v.setTripleAt(N-U,$+H,N-U+K,$+H,N-U,$+H,2),this.v.setTripleAt(N-U,$-H,N-U,$-H+K,N-U,$-H,3))):(this.v.setTripleAt(N+U,$-H+W,N+U,$-H+K,N+U,$-H+W,0,!0),W!==0?(this.v.setTripleAt(N+U-W,$-H,N+U-W,$-H,N+U-K,$-H,1,!0),this.v.setTripleAt(N-U+W,$-H,N-U+K,$-H,N-U+W,$-H,2,!0),this.v.setTripleAt(N-U,$-H+W,N-U,$-H+W,N-U,$-H+K,3,!0),this.v.setTripleAt(N-U,$+H-W,N-U,$+H-K,N-U,$+H-W,4,!0),this.v.setTripleAt(N-U+W,$+H,N-U+W,$+H,N-U+K,$+H,5,!0),this.v.setTripleAt(N+U-W,$+H,N+U-K,$+H,N+U-W,$+H,6,!0),this.v.setTripleAt(N+U,$+H-W,N+U,$+H-W,N+U,$+H-K,7,!0)):(this.v.setTripleAt(N-U,$-H,N-U+K,$-H,N-U,$-H,1,!0),this.v.setTripleAt(N-U,$+H,N-U,$+H-K,N-U,$+H,2,!0),this.v.setTripleAt(N+U,$+H,N+U-K,$+H,N+U,$+H,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:u},extendPrototype([DynamicPropertyContainer],B),B}();function O(B,M,N){var $;if(N===3||N===4){var U=N===3?M.pt:M.ks,H=U.k;H.length?$=new G(B,M,N):$=new S(B,M,N)}else N===5?$=new D(B,M):N===6?$=new F(B,M):N===7&&($=new C(B,M));return $.k&&B.addDynamicProperty($),$}function R(){return S}function P(){return G}var V={};return V.getShapeProp=O,V.getConstructorFunction=R,V.getKeyframedConstructorFunction=P,V}();/*!
|
|
3
3
|
Transformation Matrix v2.0
|
|
4
4
|
(c) Epistemex 2014-2015
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as B,am as L,bz as W,a1 as O,r,c as A,c4 as T,by as _,m as h,l as F,c5 as K,j as w,aw as $}from"./index-DvWX5lcP.js";import{A as z,S as G}from"./add-component-core-9JdWlOEK.js";import"./item-CF17cwn5.js";import"./Add-DO2-dTzI.js";import"./MoreVert-DFIFOaRy.js";import"./FormControlLabel-DnPrJzTY.js";import"./useFormControl-CxIzvtrT.js";import"./Stack-CoMDlKDj.js";import"./DialogContentText-mK9YgSzl.js";import"./TextField-DMaGvlb2.js";import"./FormControl-DKFNjq8h.js";import"./Select-CG30SlQk.js";import"./Alert-BeH7Xy0H.js";import"./useSlot-S_UbBXk0.js";import"./format-error-DmvkKPOi.js";import"./Launch-CBp2D-C7.js";import"./Done-Dhe1Acuk.js";import"./DeleteOutline-DEv5LIWu.js";import"./click-to-copy-k_YcO3Cc.js";import"./shorten-label-B7-YS4W6.js";import"./confirm-BoswCyyO.js";import"./session-C-DlgGKg.js";import"./did-address-Do1u0yvf.js";import"./Link-BwgclF4_.js";import"./Avatar-DJ-UK4kO.js";import"./ButtonGroup-BoN0Hhwo.js";import"./jss-plugin-props-sort.esm-_8_SkzjI.js";import"./toPropertyKey-PLuKRk1e.js";import"./index-B5naDBdR.js";import"./url-join-BVKuS6lK.js";import"./Skeleton-DjtvIQXX.js";import"./Hidden-BQtTxfyp.js";import"./launch-result-message-C-gi5Hcc.js";import"./Close-jUFIDdYA.js";import"./page-header-D_SotiVO.js";import"./uniqBy-fWKa3D1V.js";import"./config-space-CYRh354P.js";import"./index-DP5WaEil.js";import"./api-OojOMSa3.js";import"./logo-uploader-C-nB71XI.js";import"./index-CaDLAYuL.js";import"./index-BNKNRBXO.js";import"./Google-D58bjHqZ.js";import"./index-08dVt-H4.js";import"./index-xh6_T_pg.js";import"./index-Bla3oaYF.js";import"./Delete-D7CV2-yT.js";import"./useLocalStorage-CsSUReaJ.js";import"./Autocomplete-jCHDD6vg.js";import"./ListSubheader-C78EogH7.js";import"./ListItemButton-CMgRyCRE.js";import"./Stepper-ic2H4ABx.js";import"./util-BvfRfOuB.js";import"./use-mobile-jpj1YD2L.js";import"./content-layout-d6nQGGPv.js";import"./connect-to-CL_QN0Zk.js";import"./index-Bz2TnzRg.js";import"./OpenInNew-DUWMHCSU.js";import"./HelpOutline-XybpP4tI.js";import"./index-CH3FeX_Q.js";import"./ExpandMore-BVv1-SMz.js";import"./ArrowDropDown-CqLtDLTF.js";import"./fallback-CySK2UM6.js";import"./ChevronLeft-BfrgHEUq.js";import"./ChevronRight-D0lR4sWK.js";import"./Search-sG28-wD4.js";import"./index-Df7UYVfF.js";import"./Menu-C2M4G3Hi.js";import"./Grid-Bg0kohyl.js";import"./InputAdornment-yF3jZBda.js";function ao(){var u;const{t:g}=B(),{blocklet:a}=L(),{componentDid:s}=W(),f=O(t=>t.breakpoints.down("md")),e=new URL(window.location.href),C=e.searchParams.get("mode")==="dialog",p=e.searchParams.get("resourceType")||"",c=e.searchParams.get("resourceDid")||s,R=e.searchParams.get("store")||"",y=e.searchParams.get("showFromUrl")!=="false",S=e.searchParams.get("showResourcesSwitch")!=="false",E=e.searchParams.get("enableRunBackground")!=="false",P=e.searchParams.get("showCategory")!=="false",m=(u=a==null?void 0:a.meta)==null?void 0:u.did,n=R.split(",").filter(Boolean).map(t=>{try{return new URL(t.startsWith("http")?t:`https://${t}`).origin}catch(o){return console.error(o),null}}).filter(Boolean),[b,D]=r.useState(n.map(t=>({url:t,name:t.replace("https://","")}))),[U,x]=r.useState(null),[j,M]=r.useState("");r.useEffect(()=>{(async()=>{try{const t=await Promise.all(n.map(async o=>{const i=A(o,"/api/store.json"),{data:v}=await T.get(i);return{url:o,name:v.name}}));D(t||[])}catch(t){console.error(t)}})()},[n.join(",")]);const k=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")};r.useEffect(()=>{const t=_();return m&&t.connect(),()=>{m&&t.isConnected()&&t.disconnect()}},[m]),h(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:s},"*")});const l=F(t=>{var o,i;((o=t.data)==null?void 0:o.event)==="resourceDialog.select"&&((i=t.data)==null?void 0:i.componentDid)===s&&(x(t.data.data),M(t.data.storeUrl))});h(()=>{window.addEventListener("message",l)}),K(()=>{window.removeEventListener("message",l)});const d=({inDialog:t=!0}={})=>w.jsx(z,{stores:b,selectedMeta:U,storeUrl:j,resourceType:p,resourceDid:c,mode:"embed",inDialog:t,storageKey:G(`${p}+${c}`),showResourcesSwitch:S,showFromUrl:y,enableRunBackground:E,showCategory:P});return C?w.jsx($,{className:"resource-dialog",title:g("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:f?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(t,o)=>{o!=="backdropClick"&&k()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:d()}):d({inDialog:!1})}export{ao as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as s,j as a,a2 as j,aD as P,aE as O,aF as z,P as n,a0 as _}from"./index-
|
|
1
|
+
import{r as s,j as a,a2 as j,aD as P,aE as O,aF as z,P as n,a0 as _}from"./index-DvWX5lcP.js";import{L as M}from"./selector-gfopSmpe.js";import{d as k}from"./QuestionMarkCircle-CyGg01op.js";var c={};Object.defineProperty(c,"__esModule",{value:!0});var m=c.default=void 0;S(s);var p=a;function S(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),o.push.apply(o,r)}return o}function f(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?d(Object(o),!0).forEach(function(r){H(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function H(e,t,o){return(t=C(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function C(e){var t=A(e,"string");return typeof t=="symbol"?t:t+""}function A(e,t){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,p.jsx)("svg",f(f({},t),{},{children:(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.606 17.32a7.933 7.933 0 0 1-.581-1.18c-.165-.411-.312-.86-.44-1.339a7.639 7.639 0 0 0-1.586 1.054 7.69 7.69 0 0 0 2.607 1.465zm.657-1.675c-.16-.4-.305-.848-.429-1.335A7.643 7.643 0 0 1 10 14h.002c.734 0 1.463.104 2.165.31-.124.487-.268.935-.428 1.335-.283.707-.604 1.235-.925 1.575-.32.339-.595.447-.813.447-.218 0-.493-.108-.813-.447-.322-.34-.642-.867-.925-1.575zM10 12.667a8.976 8.976 0 0 1 2.436.334c.116-.727.193-1.511.22-2.334H7.344c.027.823.103 1.607.22 2.334A8.972 8.972 0 0 1 10 12.667zM7.345 9.333c.027-.823.103-1.607.22-2.334.791.223 1.61.335 2.436.334A8.974 8.974 0 0 0 12.437 7c.116.727.193 1.511.22 2.334H7.344zm6.646 1.334c-.03.982-.127 1.925-.28 2.797.81.367 1.56.852 2.227 1.439a7.666 7.666 0 0 0 1.734-4.236h-3.681zm3.681-1.334H13.99a19.718 19.718 0 0 0-.28-2.798 8.975 8.975 0 0 0 2.228-1.438 7.665 7.665 0 0 1 1.734 4.236zm1.329.669A9 9 0 1 1 1 10a9 9 0 0 1 18 0v.002zM2.329 9.333a7.665 7.665 0 0 1 1.734-4.236A8.974 8.974 0 0 0 6.29 6.535a19.74 19.74 0 0 0-.28 2.798H2.329zm0 1.334h3.682c.03.983.126 1.925.28 2.797a8.974 8.974 0 0 0-2.228 1.439 7.665 7.665 0 0 1-1.734-4.236zm10.648 5.473c.164-.411.312-.86.44-1.34.57.285 1.103.639 1.585 1.055a7.687 7.687 0 0 1-2.606 1.465c.216-.354.41-.751.58-1.18zm-.581-13.46c.967.316 1.85.819 2.606 1.465A7.64 7.64 0 0 1 13.417 5.2c-.128-.48-.276-.928-.44-1.34a7.925 7.925 0 0 0-.581-1.18zm-.657 1.675c.16.4.304.848.428 1.335a7.64 7.64 0 0 1-2.165.31H10a7.64 7.64 0 0 1-2.166-.31c.124-.487.268-.935.429-1.335.283-.708.603-1.235.925-1.575.32-.339.595-.447.813-.447.218 0 .492.108.813.447.321.34.642.867.925 1.575zM7.025 3.86c-.165.411-.312.86-.44 1.34a7.64 7.64 0 0 1-1.586-1.055A7.688 7.688 0 0 1 7.606 2.68c-.216.354-.41.751-.581 1.18z",fill:"currentColor"})}))};l.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"};l.displayName="globe";m=c.default=l;function b({SessionContext:e,extraItems:t,showLocale:o,showHelper:r,showSessionManager:i,sessionManagerProps:w}){const{session:h}=s.useContext(e),{locale:g}=s.useContext(j),y=P(),v=()=>{if(y.pathname.indexOf("/store")>-1){window.open("https://www.arcblock.io/content/docs/createblocklet","_blank");return}window.open("https://www.arcblock.io/content/docs/blocklet-developer","_blank")};return a.jsxs(D,{children:[t.map((u,x)=>s.cloneElement(u,{key:x})),o&&a.jsx(M,{"data-cy":"locale-addon",icon:m,size:23,showText:!1,className:"locale-addon"}),r&&a.jsx(O,{onClick:v,children:a.jsx(k,{})}),i&&a.jsx(z,{locale:g,session:h,size:24,showRole:!0,...w,showManageBlocklet:!1})]})}b.propTypes={SessionContext:n.object.isRequired,webWalletUrl:n.string,extraItems:n.array,showLocale:n.bool,showSessionManager:n.bool,showHelper:n.bool,sessionManagerProps:n.object};b.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};const D=_.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|