@abtnode/webapp 1.16.28-beta-bfbab430 → 1.16.28-beta-17c98819
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{Add-DEou6OQu.js → Add-DdfKyAdP.js} +1 -1
- package/dist/assets/{ArrowDropDown-B8q6yJii.js → ArrowDropDown-qBw97pL-.js} +1 -1
- package/dist/assets/{Autocomplete-CxHBaO5x.js → Autocomplete-BReAy6iG.js} +1 -1
- package/dist/assets/{Breadcrumbs--9MrOMZw.js → Breadcrumbs-FWiDSZgQ.js} +1 -1
- package/dist/assets/{ButtonGroup-BbRXyWVe.js → ButtonGroup-CbxNRMKE.js} +1 -1
- package/dist/assets/{CheckCircle-D6vwJd9K.js → CheckCircle-dALAsbHQ.js} +1 -1
- package/dist/assets/{ChevronLeft-Bc2acyen.js → ChevronLeft-Cf-5wtBt.js} +1 -1
- package/dist/assets/{ChevronRight-Bcko4z80.js → ChevronRight-BaQf9l-O.js} +1 -1
- package/dist/assets/{Close-DGnER_ve.js → Close-BneTv7Xy.js} +1 -1
- package/dist/assets/Delete-DXKhZTtc.js +1 -0
- package/dist/assets/{DeleteOutline-C7JmRduW.js → DeleteOutline-DkrRhsKv.js} +1 -1
- package/dist/assets/{Done-CydSjSOx.js → Done-89WeLZcz.js} +1 -1
- package/dist/assets/{Edit-B0yxTPMe.js → Edit-CbzkqV44.js} +1 -1
- package/dist/assets/{EditIcon-CF5y6ttj.js → EditIcon-BSBLuyj1.js} +1 -1
- package/dist/assets/{FilterList-RGEuYf_e.js → FilterList-nvbrBFgI.js} +4 -4
- package/dist/assets/{Google-CuSS9iHp.js → Google-ur2xY4JS.js} +1 -1
- package/dist/assets/{Https-B3P9JJiw.js → Https-OdxMf6s_.js} +1 -1
- package/dist/assets/{InfoOutlined-B4lqtuRU.js → InfoOutlined-BaBR5WTh.js} +1 -1
- package/dist/assets/{InputAdornment-BzCm_2kz.js → InputAdornment-Bz3jTEed.js} +1 -1
- package/dist/assets/{InputLabel-CdW9MyDY.js → InputLabel-Bb9-Zb4y.js} +1 -1
- package/dist/assets/{LastPage-dDlMsztV.js → LastPage-b5Zg6Pue.js} +1 -1
- package/dist/assets/{Launch-Dhs9Q_70.js → Launch-D3J61EvG.js} +1 -1
- package/dist/assets/{Link-DSNZ4PNo.js → Link-B0Z7PitM.js} +1 -1
- package/dist/assets/{LoadingButton-DrVP9tt_.js → LoadingButton-g3UG3r3Q.js} +1 -1
- package/dist/assets/{LockIcon-BMilDbx1.js → LockIcon-BIvEaDW_.js} +1 -1
- package/dist/assets/{Loop-CAxjNyCL.js → Loop-CvEhoguC.js} +1 -1
- package/dist/assets/{MoreVert-BL42DjcZ.js → MoreVert--N-SWxBs.js} +1 -1
- package/dist/assets/{Pagination-DWKt9t_F.js → Pagination-Cu8asTOi.js} +1 -1
- package/dist/assets/{Public-BobH8eAT.js → Public-Dm9eNERj.js} +1 -1
- package/dist/assets/{SchemaReference.es-MUfmufV5.js → SchemaReference.es-Rht2H7VZ.js} +1 -1
- package/dist/assets/{Search-J7ilvWof.js → Search-DifTFgaN.js} +1 -1
- package/dist/assets/{Select-DJl6HmRs.js → Select-BazOq14-.js} +2 -2
- package/dist/assets/{Skeleton-CSyuj2cV.js → Skeleton-DzFzNaqT.js} +5 -5
- package/dist/assets/{Slider-DRCfqhU1.js → Slider-Bl9ZTB5-.js} +1 -1
- package/dist/assets/{Stepper-C2a4PQ3_.js → Stepper-CPSfsr8I.js} +1 -1
- package/dist/assets/TextField-CedO329E.js +1 -0
- package/dist/assets/{ToggleButtonGroup-CR3zvwUX.js → ToggleButtonGroup-Ce7WBAl0.js} +1 -1
- package/dist/assets/{ViewList-D3pEO1Ca.js → ViewList-DovmYLzP.js} +1 -1
- package/dist/assets/{actions-CL-Y8Eer.js → actions-BeKlqO4e.js} +1 -1
- package/dist/assets/actions-DnYxUqme.js +11 -0
- package/dist/assets/{agreement-Dd1yuqFa.js → agreement-yWupKN3O.js} +3 -3
- package/dist/assets/api-Cex76yJU.js +1 -0
- package/dist/assets/app-avatar-DmCjOAyS.js +1 -0
- package/dist/assets/{ar-DXpJw3XU.js → ar-BKJrehco.js} +1 -1
- package/dist/assets/{audit-logs-CmuAN_qn.js → audit-logs-jhEVyJaR.js} +1 -1
- package/dist/assets/{brace-fold.es-psNZdrWu.js → brace-fold.es-CFridbwI.js} +1 -1
- package/dist/assets/{bundle-avatar-C_2wXttj.js → bundle-avatar-DUPs0-m4.js} +1 -1
- package/dist/assets/{chart-sF6tbndw.js → chart-CP8mBtBC.js} +1 -1
- package/dist/assets/{click-to-copy-KBQWqGOq.js → click-to-copy-BXxUHt8e.js} +1 -1
- package/dist/assets/{closebrackets.es-ZHCmqLUg.js → closebrackets.es-_N2Hw_sF.js} +1 -1
- package/dist/assets/{codemirror.es-DmoQbR9T.js → codemirror.es-B7W38ouq.js} +1 -1
- package/dist/assets/{comment.es-B7zL23d5.js → comment.es-j4ympnEk.js} +1 -1
- package/dist/assets/{config-navigation-BN7PO-cf.js → config-navigation-BwONACZe.js} +4 -4
- package/dist/assets/{de-CWxlIdre.js → de-Byp7vRl4.js} +1 -1
- package/dist/assets/{delete-confirm-ztUwg2kj.js → delete-confirm-CHP8pMt1.js} +1 -1
- package/dist/assets/{detail-CXbwmlpg.js → detail-D7XGmf6a.js} +3 -3
- package/dist/assets/{dialog.es-CFWHh6H2.js → dialog.es-BOmAJ2tY.js} +1 -1
- package/dist/assets/{download-bWTPRaod.js → download-4eDwdyWv.js} +1 -1
- package/dist/assets/{es-BmrvDK07.js → es-O_BI7nAs.js} +1 -1
- package/dist/assets/{foldgutter.es-CqRhTHya.js → foldgutter.es-CpEL5ZIC.js} +1 -1
- package/dist/assets/{fr-B7SxgRy3.js → fr-DyVRrA5G.js} +1 -1
- package/dist/assets/getValidReactChildren-qfgxz0Xv.js +1 -0
- package/dist/assets/{hi-BRRtNIB_.js → hi-BpaB7ujL.js} +1 -1
- package/dist/assets/{hint.es-DK_6KY-o.js → hint.es-BpaHJ1HV.js} +1 -1
- package/dist/assets/{hint.es2-CgWo28Uj.js → hint.es2-D5kC37e7.js} +1 -1
- package/dist/assets/{id-D6-Qi7Q1.js → id-D7fl0yX3.js} +1 -1
- package/dist/assets/{iframe-C32DbqVc.js → iframe-D-cUXJPs.js} +1 -1
- package/dist/assets/{index-lXzOGnDm.js → index-5av-A8Se.js} +11 -11
- package/dist/assets/index-6y7fW5zM.js +21 -0
- package/dist/assets/{index-CE4mBIM_.js → index-B0nGAy1U.js} +1 -1
- package/dist/assets/{index-84DtgjQO.js → index-B5xa9VAq.js} +1 -1
- package/dist/assets/{index-BNulkcXj.js → index-B6TlGEJh.js} +1 -1
- package/dist/assets/{index-Clbjq5Ay.js → index-B6XDQWKd.js} +1 -1
- package/dist/assets/index-BBSo4Kre.js +1 -0
- package/dist/assets/{index-D5A34D-v.js → index-BFf4j7Ww.js} +1 -1
- package/dist/assets/{index-CzZF4DJ9.js → index-BQiUEEfD.js} +1 -1
- package/dist/assets/{index-CsNkkebn.js → index-BUk5N7af.js} +1 -1
- package/dist/assets/{index-Bzs05ai8.js → index-BamwV6lX.js} +1 -1
- package/dist/assets/{index-HMFhZkjG.js → index-BuyQWayQ.js} +1 -1
- package/dist/assets/{index-BD7uC7gm.js → index-Bzz51kzM.js} +3 -3
- package/dist/assets/{index-CEBXL16c.js → index-CBX-R_fM.js} +1 -1
- package/dist/assets/{index-CYGLUEkg.js → index-CD-Lt__N.js} +3 -3
- package/dist/assets/{index-BA_TAXpL.js → index-CaSOHyUU.js} +2 -2
- package/dist/assets/{index-DA4GWzzk.js → index-CfAX8o1m.js} +4 -4
- package/dist/assets/{index-CkI554oc.js → index-CkzoIPXc.js} +5 -5
- package/dist/assets/index-CptiWA5V.js +150 -0
- package/dist/assets/{index-DeSsBKwN.js → index-CulJYPiw.js} +1 -1
- package/dist/assets/{index-D2cgpNGA.js → index-D-o-DXlo.js} +5 -5
- package/dist/assets/{index-B4ZjZNN8.js → index-D1poLYtV.js} +1 -1
- package/dist/assets/{index-BoZhSN8h.js → index-DBtfr-g8.js} +1 -1
- package/dist/assets/{index-BET56ssY.js → index-DH55mhhr.js} +1 -1
- package/dist/assets/{index-C4aM6rsI.js → index-DLz4Hi3Z.js} +1 -1
- package/dist/assets/{index-Dlmo3B4P.js → index-DSZjoNB8.js} +1 -1
- package/dist/assets/{index-Ca7UJIsi.js → index-DWayuvwj.js} +1 -1
- package/dist/assets/{index-CYZ-ZpV5.js → index-DaLAdjV1.js} +1 -1
- package/dist/assets/{index-lfuZxoX8.js → index-Dgz6y_sw.js} +1 -1
- package/dist/assets/{index-C6fuJWed.js → index-Djimj0Ja.js} +1 -1
- package/dist/assets/{index-CwOFD6vt.js → index-DjsDiQcb.js} +1 -1
- package/dist/assets/{index-Cj3s4CtX.js → index-DnYL7SmU.js} +1 -1
- package/dist/assets/{index-DbaRhcjK.js → index-DrN8Ygwh.js} +1 -1
- package/dist/assets/index-KCymnL8f.js +11 -0
- package/dist/assets/{index-owRl0jyR.js → index-MncUxq-k.js} +1 -1
- package/dist/assets/{index-CfOOBUnf.js → index-P39Qd5P6.js} +1 -1
- package/dist/assets/{index-DoYPOJLK.js → index-UNdpHp7m.js} +27 -27
- package/dist/assets/{index-aVpXIXlo.js → index-Xp6JtBc6.js} +1 -1
- package/dist/assets/{index-CiaQ1OoK.js → index-hQvDKtXn.js} +1 -1
- package/dist/assets/{index-Dc48oA1e.js → index-i-porPUL.js} +8 -8
- package/dist/assets/{index-B0WN-XH2.js → index-jkMpqxhG.js} +1 -1
- package/dist/assets/{index-DuHl-QWf.js → index-n8r9cN9d.js} +1 -1
- package/dist/assets/index-zHybkvc3.js +58 -0
- package/dist/assets/{index.es-r9xAwx7Q.js → index.es-CLAf8rQ0.js} +1 -1
- package/dist/assets/{index.esm-BCQ0BZMT.js → index.esm-nYmTtYeB.js} +1 -1
- package/dist/assets/{info-addon.es-BDFdJmkW.js → info-addon.es-Cfolj5ET.js} +1 -1
- package/dist/assets/{info.es-CBadJSwW.js → info.es-D3Yd6cKh.js} +1 -1
- package/dist/assets/{install-from-url-DuxahkOW.js → install-from-url-NnkVYELF.js} +1 -1
- package/dist/assets/{invitation-CSvGVnhZ.js → invitation-BBnyeKGK.js} +2 -2
- package/dist/assets/{isEqual-DLk5wI5o.js → isEqual-DQGyAi5I.js} +1 -1
- package/dist/assets/{item-Bv034Zcl.js → item-wk2MJlrI.js} +14 -14
- package/dist/assets/{ja--dtwu5Xy.js → ja-xLR8soVq.js} +1 -1
- package/dist/assets/{javascript.es-Bq6krn1L.js → javascript.es-CqW0BR4Z.js} +1 -1
- package/dist/assets/{jump-to-line.es-Cm-kakdo.js → jump-to-line.es-C-Ofosy7.js} +1 -1
- package/dist/assets/{jump.es-VEZCju5l.js → jump.es-EY-vdsrN.js} +1 -1
- package/dist/assets/{ko-DpRJDWhF.js → ko-CdC91nMA.js} +1 -1
- package/dist/assets/{line-VNmgswg2.js → line-BJiZY-Na.js} +4 -4
- package/dist/assets/{lint.es-DhrBN362.js → lint.es-DCPumBx-.js} +1 -1
- package/dist/assets/{lint.es2-CWQYXYDN.js → lint.es2-D7ziml_k.js} +1 -1
- package/dist/assets/{lint.es3-HsrZT9m1.js → lint.es3-CQ3RJFPm.js} +1 -1
- package/dist/assets/{list-header-DsWkp7IV.js → list-header-2M6faCjv.js} +1 -1
- package/dist/assets/{log-DgVRxyob.js → log-DOLydL84.js} +1 -1
- package/dist/assets/{lottie-CYf1PmCL.js → lottie-DR9cYUcR.js} +1 -1
- package/dist/assets/{matchbrackets.es-BthTk6Jn.js → matchbrackets.es-DMbNa-Dz.js} +1 -1
- package/dist/assets/{memory-dGmMptAO.js → memory-XTtEtBxW.js} +1 -1
- package/dist/assets/{mode.es-_GdTPtpx.js → mode.es-4hNpjLfH.js} +1 -1
- package/dist/assets/{mode.es2-brmgogqJ.js → mode.es2-Pi_OeoUI.js} +1 -1
- package/dist/assets/{mode.es3-DPGB-Rg-.js → mode.es3-DqEODLL1.js} +1 -1
- package/dist/assets/{onlineParser.es-BUsBjG_x.js → onlineParser.es-LEndSaRN.js} +1 -1
- package/dist/assets/{overview-BjqHXIvR.js → overview-DG3ws5aa.js} +2 -2
- package/dist/assets/{pt-BxA88dKG.js → pt-CrWN8vvS.js} +1 -1
- package/dist/assets/{react-B-xa5K3p.js → react-DfJCVmkR.js} +22 -22
- package/dist/assets/{redux-BBckwmBz.js → redux-ELJtQoC2.js} +1 -1
- package/dist/assets/{resource-dialog-CIpxrG7w.js → resource-dialog-ZbHwdUpF.js} +1 -1
- package/dist/assets/{ru-C9WJaQoQ.js → ru-DYnq26fF.js} +1 -1
- package/dist/assets/{runtime-mnz4kggA.js → runtime-aFzgxTMx.js} +1 -1
- package/dist/assets/{search.es-CV0d4AUV.js → search.es-dkimuVIV.js} +1 -1
- package/dist/assets/{searchcursor.es-CxYOh1mB.js → searchcursor.es-Cgy0Dkqz.js} +1 -1
- package/dist/assets/service-BvyV0xti.js +1 -0
- package/dist/assets/{show-hint.es-GDHMVUwy.js → show-hint.es-C9i0xJlO.js} +1 -1
- package/dist/assets/{slicedToArray-Pwxti1pp.js → slicedToArray-Bc32ss_C.js} +1 -1
- package/dist/assets/{spaces-3s9pbV-M.js → spaces-D6AOV9xA.js} +1 -1
- package/dist/assets/{sublime.es-BiX2tLa_.js → sublime.es-BcF48CMJ.js} +1 -1
- package/dist/assets/{switch-control-1CHbJzd5.js → switch-control-BoZOKX0C.js} +1 -1
- package/dist/assets/{table-icons-DjAM1A7C.js → table-icons-B2dymBbK.js} +9 -9
- package/dist/assets/{tag-CdoBHuxB.js → tag-Bd5v37NR.js} +1 -1
- package/dist/assets/{team-CrNp0IgF.js → team-C-DXj-V_.js} +1 -1
- package/dist/assets/{th-z7LSYRZi.js → th-Bfmczss9.js} +1 -1
- package/dist/assets/{toUpper-C7enqaxL.js → toUpper-14sgZgOq.js} +1 -1
- package/dist/assets/{traffic-Bw_e_wEP.js → traffic-BZOD1k45.js} +5 -5
- package/dist/assets/{url-evaluation-asC5XTLH.js → url-evaluation-ClVD1OGC.js} +4 -4
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-BtXC5kfM.js +1 -0
- package/dist/assets/{useLocalStorage-DRS65jti.js → useLocalStorage-BG3mT3Wr.js} +1 -1
- package/dist/assets/{util-BC42zb0j.js → util-9Xuj0MWG.js} +1 -1
- package/dist/assets/{vi-CAtyUyNW.js → vi-Cyl8BHvR.js} +1 -1
- package/dist/assets/{wait-container-DzvlQJkQ.js → wait-container-CnoPKjU3.js} +1 -1
- package/dist/assets/withStyles-DCBbgotO.js +1 -0
- package/dist/assets/wrap-locale-B30EgQCX.js +1 -0
- package/dist/assets/zh-Dttm4AuY.js +2 -0
- package/dist/assets/zh-tw-BSAV-ffK.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/Delete-BGOcGa_D.js +0 -1
- package/dist/assets/TextField-BD0it3d0.js +0 -1
- package/dist/assets/actions-Dx15LaaC.js +0 -11
- package/dist/assets/api-Ce74sKYG.js +0 -1
- package/dist/assets/app-avatar-rgMNqIXw.js +0 -1
- package/dist/assets/getValidReactChildren-DKO9kPop.js +0 -1
- package/dist/assets/index-D9RqTndg.js +0 -21
- package/dist/assets/index-DG50udXf.js +0 -150
- package/dist/assets/index-DHDAQRQS.js +0 -11
- package/dist/assets/index-dQw_Q0Sx.js +0 -58
- package/dist/assets/index-sNR67yJ2.js +0 -1
- package/dist/assets/service-DbM6n6e-.js +0 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-R82fq7SC.js +0 -1
- package/dist/assets/withStyles-CPWhmxGn.js +0 -1
- package/dist/assets/wrap-locale-p7nrsckq.js +0 -1
- package/dist/assets/zh-BVBeddUa.js +0 -2
- package/dist/assets/zh-tw-CoStw7dd.js +0 -1
package/dist/service-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
try{self["workbox:core:7.0.0"]&&_()}catch{}const ae=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},ne=ae;let y=class extends Error{constructor(e,t){const r=ne(e,t);super(r),this.name=e,this.details=t}};const ie=new Set,d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},N=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),ce=s=>{for(const e of Object.keys(d))s(e)},oe={updateDetails:s=>{ce(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||N(d.googleAnalytics),getPrecacheName:s=>s||N(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||N(d.runtime),getSuffix:()=>d.suffix};function $(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function le(s,e,t,r){const a=$(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=$(c.url,t);if(a===o)return s.match(c,r)}}let he=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function ue(){for(const s of ie)await s()}const fe=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function de(s){return new Promise(e=>setTimeout(e,s))}function pe(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:core:7.0.0"]&&_()}catch{}const ge=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},me=ge;let u=class extends Error{constructor(e,t){const r=me(e,t);super(r),this.name=e,this.details=t}};const p={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},M=s=>[p.prefix,s,p.suffix].filter(e=>e&&e.length>0).join("-"),we=s=>{for(const e of Object.keys(p))s(e)},j={updateDetails:s=>{we(e=>{typeof s[e]=="string"&&(p[e]=s[e])})},getGoogleAnalyticsName:s=>s||M(p.googleAnalytics),getPrecacheName:s=>s||M(p.precache),getPrefix:()=>p.prefix,getRuntimeName:s=>s||M(p.runtime),getSuffix:()=>p.suffix};function H(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const ye="__WB_REVISION__";function _e(s){if(!s)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const i=new URL(s,location.href);return{cacheKey:i.href,url:i.href}}const{revision:e,url:t}=s;if(!t)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(!e){const i=new URL(t,location.href);return{cacheKey:i.href,url:i.href}}const r=new URL(t,location.href),a=new URL(t,location.href);return r.searchParams.set(ye,e),{cacheKey:r.href,url:a.href}}class Re{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:r})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;r?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return r}}}class be{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:r})=>{const a=(r==null?void 0:r.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let b;function Ce(){if(b===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),b=!0}catch{b=!1}b=!1}return b}async function xe(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new u("cross-origin-copy-response",{origin:t});const r=s.clone(),a={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},i=e?e(a):a,n=Ce()?r.body:await r.blob();return new Response(n,i)}const ke=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function B(s,e){const t=new URL(s);for(const r of e)t.searchParams.delete(r);return t.href}async function Ee(s,e,t,r){const a=B(e.url,t);if(e.url===a)return s.match(e,r);const i=Object.assign(Object.assign({},r),{ignoreSearch:!0}),n=await s.keys(e,i);for(const c of n){const o=B(c.url,t);if(a===o)return s.match(c,r)}}class De{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const Ue=new Set;async function Le(){for(const s of Ue)await s()}function Pe(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function D(s){return typeof s=="string"?new Request(s):s}let ve=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new De,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=D(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=D(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=D(e);await Pe(0);const a=await this.getCacheKey(r,"write");if(!t)throw new u("cache-put-with-no-response",{url:ke(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await Ee(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await Le(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=D(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}},Ne=class{constructor(e={}){this.cacheName=j.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new ve(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new u("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}};class w extends Ne{constructor(e={}){e.cacheName=j.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(w.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const r=await t.cacheMatch(e);return r||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let r;const a=t.params||{};if(this._fallbackToNetwork){const i=a.integrity,n=e.integrity,c=!n||n===i;r=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?n||i:void 0})),i&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,r.clone()))}else throw new u("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return r}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const r=await t.fetch(e);if(!await t.cachePut(e,r.clone()))throw new u("bad-precaching-response",{url:e.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[r,a]of this.plugins.entries())a!==w.copyRedirectedCacheableResponsesPlugin&&(a===w.defaultPrecacheCacheabilityPlugin&&(e=r),a.cacheWillUpdate&&t++);t===0?this.plugins.push(w.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}w.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};w.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await xe(s):s}};class Me{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:r=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new w({cacheName:j.getPrecacheName(e),plugins:[...t,new be({precacheController:this})],fallbackToNetwork:r}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const r of e){typeof r=="string"?t.push(r):r&&r.revision===void 0&&t.push(r.url);const{cacheKey:a,url:i}=_e(r),n=typeof r!="string"&&r.revision?"reload":"default";if(this._urlsToCacheKeys.has(i)&&this._urlsToCacheKeys.get(i)!==a)throw new u("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(i),secondEntry:a});if(typeof r!="string"&&r.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==r.integrity)throw new u("add-to-cache-list-conflicting-integrities",{url:i});this._cacheKeysToIntegrities.set(a,r.integrity)}if(this._urlsToCacheKeys.set(i,a),this._urlsToCacheModes.set(i,n),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")}
|
|
2
|
-
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function qe(s){J().precache(s)}function $e(s,e){qe(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,q=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),q.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),q.set(e,s)),e}const S=s=>q.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new nt(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const r=Date.now();return t>=r-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}$e(([{"revision":null,"url":"assets/actions-CL-Y8Eer.js"},{"revision":null,"url":"assets/actions-Dx15LaaC.js"},{"revision":null,"url":"assets/Add-DEou6OQu.js"},{"revision":null,"url":"assets/agreement-Dd1yuqFa.js"},{"revision":null,"url":"assets/api-Ce74sKYG.js"},{"revision":null,"url":"assets/app-avatar-rgMNqIXw.js"},{"revision":null,"url":"assets/ar-DEFG_HSF.js"},{"revision":null,"url":"assets/ar-DXpJw3XU.js"},{"revision":null,"url":"assets/ArrowDropDown-B8q6yJii.js"},{"revision":null,"url":"assets/audit-logs-CmuAN_qn.js"},{"revision":null,"url":"assets/Autocomplete-CxHBaO5x.js"},{"revision":null,"url":"assets/brace-fold.es-psNZdrWu.js"},{"revision":null,"url":"assets/Breadcrumbs--9MrOMZw.js"},{"revision":null,"url":"assets/bundle-avatar-C_2wXttj.js"},{"revision":null,"url":"assets/ButtonGroup-BbRXyWVe.js"},{"revision":null,"url":"assets/chart-sF6tbndw.js"},{"revision":null,"url":"assets/CheckCircle-D6vwJd9K.js"},{"revision":null,"url":"assets/ChevronLeft-Bc2acyen.js"},{"revision":null,"url":"assets/ChevronRight-Bcko4z80.js"},{"revision":null,"url":"assets/click-to-copy-KBQWqGOq.js"},{"revision":null,"url":"assets/Close-DGnER_ve.js"},{"revision":null,"url":"assets/closebrackets.es-ZHCmqLUg.js"},{"revision":null,"url":"assets/codemirror.es-DmoQbR9T.js"},{"revision":null,"url":"assets/comment.es-B7zL23d5.js"},{"revision":null,"url":"assets/config-navigation-BN7PO-cf.js"},{"revision":null,"url":"assets/de-BXx5XWMv.js"},{"revision":null,"url":"assets/de-CWxlIdre.js"},{"revision":null,"url":"assets/Delete-BGOcGa_D.js"},{"revision":null,"url":"assets/delete-confirm-ztUwg2kj.js"},{"revision":null,"url":"assets/DeleteOutline-C7JmRduW.js"},{"revision":null,"url":"assets/detail-CXbwmlpg.js"},{"revision":null,"url":"assets/dialog.es-CFWHh6H2.js"},{"revision":null,"url":"assets/Done-CydSjSOx.js"},{"revision":null,"url":"assets/download-bWTPRaod.js"},{"revision":null,"url":"assets/download-D33dFtt_.css"},{"revision":null,"url":"assets/Edit-B0yxTPMe.js"},{"revision":null,"url":"assets/EditIcon-CF5y6ttj.js"},{"revision":null,"url":"assets/es-BmrvDK07.js"},{"revision":null,"url":"assets/es-dYDfzHE0.js"},{"revision":null,"url":"assets/FilterList-RGEuYf_e.js"},{"revision":null,"url":"assets/foldgutter.es-CqRhTHya.js"},{"revision":null,"url":"assets/forEachState.es-D8bf0zSr.js"},{"revision":null,"url":"assets/fr-B7SxgRy3.js"},{"revision":null,"url":"assets/fr-DGLilU-8.js"},{"revision":null,"url":"assets/getValidReactChildren-DKO9kPop.js"},{"revision":null,"url":"assets/Google-CuSS9iHp.js"},{"revision":null,"url":"assets/hi-BRRtNIB_.js"},{"revision":null,"url":"assets/hi-EiYI5FnU.js"},{"revision":null,"url":"assets/hint.es-DK_6KY-o.js"},{"revision":null,"url":"assets/hint.es2-CgWo28Uj.js"},{"revision":null,"url":"assets/Https-B3P9JJiw.js"},{"revision":null,"url":"assets/id-BHuBzbF-.js"},{"revision":null,"url":"assets/id-D6-Qi7Q1.js"},{"revision":null,"url":"assets/iframe-C32DbqVc.js"},{"revision":null,"url":"assets/index-84DtgjQO.js"},{"revision":null,"url":"assets/index-aVpXIXlo.js"},{"revision":null,"url":"assets/index-B0WN-XH2.js"},{"revision":null,"url":"assets/index-B4ZjZNN8.js"},{"revision":null,"url":"assets/index-BA_TAXpL.js"},{"revision":null,"url":"assets/index-BD7uC7gm.js"},{"revision":null,"url":"assets/index-BET56ssY.js"},{"revision":null,"url":"assets/index-BNulkcXj.js"},{"revision":null,"url":"assets/index-BoZhSN8h.js"},{"revision":null,"url":"assets/index-Bzs05ai8.js"},{"revision":null,"url":"assets/index-C4aM6rsI.js"},{"revision":null,"url":"assets/index-C6fuJWed.js"},{"revision":null,"url":"assets/index-C7igR7se.css"},{"revision":null,"url":"assets/index-Ca7UJIsi.js"},{"revision":null,"url":"assets/index-CE4mBIM_.js"},{"revision":null,"url":"assets/index-CEBXL16c.js"},{"revision":null,"url":"assets/index-CfOOBUnf.js"},{"revision":null,"url":"assets/index-CiaQ1OoK.js"},{"revision":null,"url":"assets/index-Cj3s4CtX.js"},{"revision":null,"url":"assets/index-CkI554oc.js"},{"revision":null,"url":"assets/index-Clbjq5Ay.js"},{"revision":null,"url":"assets/index-CsNkkebn.js"},{"revision":null,"url":"assets/index-CwOFD6vt.js"},{"revision":null,"url":"assets/index-CYGLUEkg.js"},{"revision":null,"url":"assets/index-CYZ-ZpV5.js"},{"revision":null,"url":"assets/index-CzZF4DJ9.js"},{"revision":null,"url":"assets/index-D2cgpNGA.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-D5A34D-v.js"},{"revision":null,"url":"assets/index-D7K8de1w.css"},{"revision":null,"url":"assets/index-D9k2I5J1.js"},{"revision":null,"url":"assets/index-D9RqTndg.js"},{"revision":null,"url":"assets/index-DA4GWzzk.js"},{"revision":null,"url":"assets/index-DbaRhcjK.js"},{"revision":null,"url":"assets/index-Dc48oA1e.js"},{"revision":null,"url":"assets/index-DeSsBKwN.js"},{"revision":null,"url":"assets/index-DG50udXf.js"},{"revision":null,"url":"assets/index-DHDAQRQS.js"},{"revision":null,"url":"assets/index-Dlmo3B4P.js"},{"revision":null,"url":"assets/index-DoYPOJLK.js"},{"revision":null,"url":"assets/index-dQw_Q0Sx.js"},{"revision":null,"url":"assets/index-DU3JORH0.css"},{"revision":null,"url":"assets/index-DuHl-QWf.js"},{"revision":null,"url":"assets/index-HMFhZkjG.js"},{"revision":null,"url":"assets/index-lfuZxoX8.js"},{"revision":null,"url":"assets/index-lXzOGnDm.js"},{"revision":null,"url":"assets/index-owRl0jyR.js"},{"revision":null,"url":"assets/index-sNR67yJ2.js"},{"revision":null,"url":"assets/index.es-r9xAwx7Q.js"},{"revision":null,"url":"assets/index.esm-BCQ0BZMT.js"},{"revision":null,"url":"assets/info-addon.es-BDFdJmkW.js"},{"revision":null,"url":"assets/info.es-CBadJSwW.js"},{"revision":null,"url":"assets/InfoOutlined-B4lqtuRU.js"},{"revision":null,"url":"assets/InputAdornment-BzCm_2kz.js"},{"revision":null,"url":"assets/InputLabel-CdW9MyDY.js"},{"revision":null,"url":"assets/install-from-url-DuxahkOW.js"},{"revision":null,"url":"assets/introspection.es-CPJcz6nz.js"},{"revision":null,"url":"assets/invitation-CSvGVnhZ.js"},{"revision":null,"url":"assets/isEqual-DLk5wI5o.js"},{"revision":null,"url":"assets/item-Bv034Zcl.js"},{"revision":null,"url":"assets/item-CxkJY_14.css"},{"revision":null,"url":"assets/ja--dtwu5Xy.js"},{"revision":null,"url":"assets/ja-BeNRi6CF.js"},{"revision":null,"url":"assets/javascript.es-Bq6krn1L.js"},{"revision":null,"url":"assets/jump-to-line.es-Cm-kakdo.js"},{"revision":null,"url":"assets/jump.es-VEZCju5l.js"},{"revision":null,"url":"assets/ko-BGPBfmUw.js"},{"revision":null,"url":"assets/ko-DpRJDWhF.js"},{"revision":null,"url":"assets/LastPage-dDlMsztV.js"},{"revision":null,"url":"assets/Launch-Dhs9Q_70.js"},{"revision":null,"url":"assets/line-VNmgswg2.js"},{"revision":null,"url":"assets/Link-DSNZ4PNo.js"},{"revision":null,"url":"assets/lint.es-DhrBN362.js"},{"revision":null,"url":"assets/lint.es2-CWQYXYDN.js"},{"revision":null,"url":"assets/lint.es3-HsrZT9m1.js"},{"revision":null,"url":"assets/list-header-DsWkp7IV.js"},{"revision":null,"url":"assets/LoadingButton-DrVP9tt_.js"},{"revision":null,"url":"assets/LockIcon-BMilDbx1.js"},{"revision":null,"url":"assets/log-DgVRxyob.js"},{"revision":null,"url":"assets/logo-BKA11TRi.js"},{"revision":null,"url":"assets/Loop-CAxjNyCL.js"},{"revision":null,"url":"assets/lottie-CYf1PmCL.js"},{"revision":null,"url":"assets/matchbrackets.es-BthTk6Jn.js"},{"revision":null,"url":"assets/memoize-one.esm-BdPwpGay.js"},{"revision":null,"url":"assets/memory-dGmMptAO.js"},{"revision":null,"url":"assets/mode-B2dWMeTO.js"},{"revision":null,"url":"assets/mode.es-_GdTPtpx.js"},{"revision":null,"url":"assets/mode.es2-brmgogqJ.js"},{"revision":null,"url":"assets/mode.es3-DPGB-Rg-.js"},{"revision":null,"url":"assets/MoreVert-BL42DjcZ.js"},{"revision":null,"url":"assets/onlineParser.es-BUsBjG_x.js"},{"revision":null,"url":"assets/overview-BjqHXIvR.js"},{"revision":null,"url":"assets/Pagination-DWKt9t_F.js"},{"revision":null,"url":"assets/preact.module-B1z5cdvs.js"},{"revision":null,"url":"assets/pt-BmW9xdbz.js"},{"revision":null,"url":"assets/pt-BxA88dKG.js"},{"revision":null,"url":"assets/Public-BobH8eAT.js"},{"revision":null,"url":"assets/Range.es-DaV7MD2W.js"},{"revision":null,"url":"assets/react-B-xa5K3p.js"},{"revision":null,"url":"assets/react-BW7E7-P9.css"},{"revision":null,"url":"assets/redux-BBckwmBz.js"},{"revision":null,"url":"assets/resource-dialog-CIpxrG7w.js"},{"revision":null,"url":"assets/ru-C9WJaQoQ.js"},{"revision":null,"url":"assets/ru-DufkUHOM.js"},{"revision":null,"url":"assets/runtime-mnz4kggA.js"},{"revision":null,"url":"assets/SchemaReference.es-MUfmufV5.js"},{"revision":null,"url":"assets/Search-J7ilvWof.js"},{"revision":null,"url":"assets/search.es-CV0d4AUV.js"},{"revision":null,"url":"assets/searchcursor.es-CxYOh1mB.js"},{"revision":null,"url":"assets/Select-DJl6HmRs.js"},{"revision":null,"url":"assets/service-DbM6n6e-.js"},{"revision":null,"url":"assets/show-hint.es-GDHMVUwy.js"},{"revision":null,"url":"assets/Skeleton-CSyuj2cV.js"},{"revision":null,"url":"assets/slicedToArray-Pwxti1pp.js"},{"revision":null,"url":"assets/Slider-DRCfqhU1.js"},{"revision":null,"url":"assets/spaces-3s9pbV-M.js"},{"revision":null,"url":"assets/Stepper-C2a4PQ3_.js"},{"revision":null,"url":"assets/sublime.es-BiX2tLa_.js"},{"revision":null,"url":"assets/switch-control-1CHbJzd5.js"},{"revision":null,"url":"assets/table-icons-DjAM1A7C.js"},{"revision":null,"url":"assets/tag-CdoBHuxB.js"},{"revision":null,"url":"assets/team-CrNp0IgF.js"},{"revision":null,"url":"assets/TextField-BD0it3d0.js"},{"revision":null,"url":"assets/th-Dl-J4TkD.js"},{"revision":null,"url":"assets/th-z7LSYRZi.js"},{"revision":null,"url":"assets/ToggleButtonGroup-CR3zvwUX.js"},{"revision":null,"url":"assets/toUpper-C7enqaxL.js"},{"revision":null,"url":"assets/traffic-Bw_e_wEP.js"},{"revision":null,"url":"assets/url-evaluation-asC5XTLH.js"},{"revision":null,"url":"assets/use-blocklet-info-for-connect-did-spaces-R82fq7SC.js"},{"revision":null,"url":"assets/useLocalStorage-DRS65jti.js"},{"revision":null,"url":"assets/util-BC42zb0j.js"},{"revision":null,"url":"assets/vi-BMeJuBa9.js"},{"revision":null,"url":"assets/vi-CAtyUyNW.js"},{"revision":null,"url":"assets/ViewList-D3pEO1Ca.js"},{"revision":null,"url":"assets/wait-container-DzvlQJkQ.js"},{"revision":null,"url":"assets/withStyles-CPWhmxGn.js"},{"revision":null,"url":"assets/wrap-locale-p7nrsckq.js"},{"revision":null,"url":"assets/zh-BDoN11lM.js"},{"revision":null,"url":"assets/zh-BVBeddUa.js"},{"revision":null,"url":"assets/zh-tw-CoStw7dd.js"},{"revision":null,"url":"assets/zh-tw-Dg9g_7UM.js"},{"revision":"1a966ec541e09feab6e09d6a3464571a","url":"icons/css/all.css"},{"revision":"8cb29294e1259a11a4dcfc53db228c0c","url":"icons/css/brands.css"},{"revision":"e261b026495a963a3440c2cabaafffd9","url":"icons/css/brands.min.css"},{"revision":"b40c99e5b26dfdd9c49d45f550044137","url":"icons/css/fontawesome.css"},{"revision":"40af17bd614587f6c474f1d1ae9cd743","url":"icons/css/fontawesome.min.css"},{"revision":"03077cdd0957040d48261696c05e9215","url":"icons/css/light.css"},{"revision":"fe218a7af84a0e83bf616f465b9f0f4a","url":"icons/css/light.min.css"},{"revision":"b44b938aebcc3bed3949efde849f30bb","url":"index.html"},{"revision":"be6aad568a9de402ad83ef7601f9d6ce","url":"registerSW.js"},{"revision":"eee7588574d50fc529352609420cb773","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/static/")},new mt({cacheName:"static",plugins:[new ut({maxEntries:200})]}));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/images/")||e.url.includes("/icons/")},new yt);
|
|
2
|
+
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return H(e,async()=>{const t=new Re;this.strategy.plugins.push(t);for(const[i,n]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(n),o=this._urlsToCacheModes.get(i),l=new Request(i,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:l,event:e}))}const{updatedURLs:r,notUpdatedURLs:a}=t;return{updatedURLs:r,notUpdatedURLs:a}})}activate(e){return H(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),r=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),i=[];for(const n of r)a.has(n.url)||(await t.delete(n),i.push(n.url));return{deletedURLs:i}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,r=this.getCacheKeyForURL(t);if(r)return(await self.caches.open(this.strategy.cacheName)).match(r)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return r=>(r.request=new Request(e),r.params=Object.assign({cacheKey:t},r.params),this.strategy.handle(r))}}let T;const J=()=>(T||(T=new Me),T);try{self["workbox:routing:7.0.0"]&&_()}catch{}const z="GET",P=s=>s&&typeof s=="object"?s:{handle:s};let E=class{constructor(e,t,r=z){this.handler=P(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=P(e)}},Te=class extends E{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}},Oe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=z){this._defaultHandlerMap.set(t,P(e))}setCatchHandler(e){this._catchHandler=P(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},C;const Se=()=>(C||(C=new Oe,C.addFetchListener(),C.addCacheListener()),C);function Ae(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new E(n,e,t)}else if(s instanceof RegExp)r=new Te(s,e,t);else if(typeof s=="function")r=new E(s,e,t);else if(s instanceof E)r=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return Se().registerRoute(r),r}function Ke(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(r=>r.test(t))&&s.searchParams.delete(t);return s}function*Ie(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:r=!0,urlManipulation:a}={}){const i=new URL(s,location.href);i.hash="",yield i.href;const n=Ke(i,e);if(yield n.href,t&&n.pathname.endsWith("/")){const c=new URL(n.href);c.pathname+=t,yield c.href}if(r){const c=new URL(n.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:i});for(const o of c)yield o.href}}class We extends E{constructor(e,t){const r=({request:a})=>{const i=e.getURLsToCacheKeys();for(const n of Ie(a.url,t)){const c=i.get(n);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(r,e.strategy)}}function je(s){const e=J(),t=new We(e,s);Ae(t)}function qe(s){J().precache(s)}function $e(s,e){qe(s),je(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const He=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Be=He;class Fe extends Error{constructor(e,t){const r=Be(e,t);super(r),this.name=e,this.details=t}}function X(s){s.then(()=>{})}const Ve=(s,e)=>e.some(t=>s instanceof t);let F,V;function Ge(){return F||(F=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Qe(){return V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Y=new WeakMap,I=new WeakMap,Z=new WeakMap,O=new WeakMap,q=new WeakMap;function Je(s){const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("success",i),s.removeEventListener("error",n)},i=()=>{t(m(s.result)),a()},n=()=>{r(s.error),a()};s.addEventListener("success",i),s.addEventListener("error",n)});return e.then(t=>{t instanceof IDBCursor&&Y.set(t,s)}).catch(()=>{}),q.set(e,s),e}function ze(s){if(I.has(s))return;const e=new Promise((t,r)=>{const a=()=>{s.removeEventListener("complete",i),s.removeEventListener("error",n),s.removeEventListener("abort",n)},i=()=>{t(),a()},n=()=>{r(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",i),s.addEventListener("error",n),s.addEventListener("abort",n)});I.set(s,e)}let W={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return I.get(s);if(e==="objectStoreNames")return s.objectStoreNames||Z.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function Xe(s){W=s(W)}function Ye(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const r=s.call(S(this),e,...t);return Z.set(r,e.sort?e.sort():[e]),m(r)}:Qe().includes(s)?function(...e){return s.apply(S(this),e),m(Y.get(this))}:function(...e){return m(s.apply(S(this),e))}}function Ze(s){return typeof s=="function"?Ye(s):(s instanceof IDBTransaction&&ze(s),Ve(s,Ge())?new Proxy(s,W):s)}function m(s){if(s instanceof IDBRequest)return Je(s);if(O.has(s))return O.get(s);const e=Ze(s);return e!==s&&(O.set(s,e),q.set(e,s)),e}const S=s=>q.get(s);function et(s,e,{blocked:t,upgrade:r,blocking:a,terminated:i}={}){const n=indexedDB.open(s,e),c=m(n);return r&&n.addEventListener("upgradeneeded",o=>{r(m(n.result),o.oldVersion,o.newVersion,m(n.transaction),o)}),t&&n.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{i&&o.addEventListener("close",()=>i()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function tt(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",r=>e(r.oldVersion,r)),m(t).then(()=>{})}const st=["get","getKey","getAll","getAllKeys","count"],rt=["put","add","delete","clear"],A=new Map;function G(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(A.get(e))return A.get(e);const t=e.replace(/FromIndex$/,""),r=e!==t,a=rt.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(a||st.includes(t)))return;const i=async function(n,...c){const o=this.transaction(n,a?"readwrite":"readonly");let l=o.store;return r&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return A.set(e,i),i}Xe(s=>({...s,get:(e,t,r)=>G(e,t)||s.get(e,t,r),has:(e,t)=>!!G(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const at="workbox-expiration",x="cache-entries",Q=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class nt{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(x,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&tt(this._cacheName)}async setTimestamp(e,t){e=Q(e);const r={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},i=(await this.getDb()).transaction(x,"readwrite",{durability:"relaxed"});await i.store.put(r),await i.done}async getTimestamp(e){const r=await(await this.getDb()).get(x,this._getId(e));return r==null?void 0:r.timestamp}async expireEntries(e,t){const r=await this.getDb();let a=await r.transaction(x).store.index("timestamp").openCursor(null,"prev");const i=[];let n=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&n>=t?i.push(a.value):n++),a=await a.continue()}const c=[];for(const o of i)await r.delete(x,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Q(e)}async getDb(){return this._db||(this._db=await et(at,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class it{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new nt(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(const a of t)await r.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,X(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),r=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<r:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},K=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),ct=s=>{for(const e of Object.keys(g))s(e)},ot={updateDetails:s=>{ct(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||K(g.googleAnalytics),getPrecacheName:s=>s||K(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||K(g.runtime),getSuffix:()=>g.suffix},lt=new Set;function ht(s){lt.add(s)}class ut{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:r,cacheName:a,cachedResponse:i})=>{if(!i)return null;const n=this._isResponseDateFresh(i),c=this._getCacheExpiration(a);X(c.expireEntries());const o=c.updateTimestamp(r.url);if(t)try{t.waitUntil(o)}catch{}return n?i:null},this.cacheDidUpdate=async({cacheName:t,request:r})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(r.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&ht(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===ot.getRuntimeName())throw new Fe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new it(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const r=Date.now();return t>=r-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class L{constructor(e,t,r=ee){this.handler=v(t),this.match=e,this.method=r}setCatchHandler(e){this.catchHandler=v(e)}}class ft extends L{constructor(e,t,r){const a=({url:i})=>{const n=e.exec(i.href);if(n&&!(i.origin!==location.origin&&n.index!==0))return n.slice(1)};super(a,t,r)}}class dt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,r=this.handleRequest({request:t,event:e});r&&e.respondWith(r)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,r=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const i=new Request(...a);return this.handleRequest({request:i,event:e})}));e.waitUntil(r),e.ports&&e.ports[0]&&r.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const r=new URL(e.url,location.href);if(!r.protocol.startsWith("http"))return;const a=r.origin===location.origin,{params:i,route:n}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:r});let c=n&&n.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:r,request:e,event:t,params:i})}catch(h){l=Promise.reject(h)}const f=n&&n.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:e,event:t,params:i})}catch(R){R instanceof Error&&(h=R)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:r,event:a}){const i=this._routes.get(r.method)||[];for(const n of i){let c;const o=n.match({url:e,sameOrigin:t,request:r,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:n,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new y("unregister-route-route-not-registered")}}let k;const pt=()=>(k||(k=new dt,k.addFetchListener(),k.addCacheListener()),k);function te(s,e,t){let r;if(typeof s=="string"){const i=new URL(s,location.href),n=({url:c})=>c.href===i.href;r=new L(n,e,t)}else if(s instanceof RegExp)r=new ft(s,e,t);else if(typeof s=="function")r=new L(s,e,t);else if(s instanceof L)r=s;else throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return pt().registerRoute(r),r}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}class gt{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new he,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let r=U(e);if(r.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const n=await t.preloadResponse;if(n)return n}const a=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const n of this.iterateCallbacks("requestWillFetch"))r=await n({request:r.clone(),event:t})}catch(n){if(n instanceof Error)throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:n.message})}const i=r.clone();try{let n;n=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))n=await c({event:t,request:i,response:n});return n}catch(n){throw a&&await this.runCallbacks("fetchDidFail",{error:n,event:t,originalRequest:a.clone(),request:i.clone()}),n}}async fetchAndCachePut(e){const t=await this.fetch(e),r=t.clone();return this.waitUntil(this.cachePut(e,r)),t}async cacheMatch(e){const t=U(e);let r;const{cacheName:a,matchOptions:i}=this._strategy,n=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},i),{cacheName:a});r=await caches.match(n,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await o({cacheName:a,matchOptions:i,cachedResponse:r,request:n,event:this.event})||void 0;return r}async cachePut(e,t){const r=U(e);await de(0);const a=await this.getCacheKey(r,"write");if(!t)throw new y("cache-put-with-no-response",{url:fe(a.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:n,matchOptions:c}=this._strategy,o=await self.caches.open(n),l=this.hasCallback("cacheDidUpdate"),f=l?await le(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?i.clone():i)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ue(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:n,oldResponse:f,newResponse:i.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const r=`${e.url} | ${t}`;if(!this._cacheKeys[r]){let a=e;for(const i of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await i({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[r]=a}return this._cacheKeys[r]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const r of this.iterateCallbacks(e))await r(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const r=this._pluginStateMap.get(t);yield i=>{const n=Object.assign(Object.assign({},i),{state:r});return t[e](n)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,r=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,r=!0,!t)break;return r||t&&t.status!==200&&(t=void 0),t}}class se{constructor(e={}){this.cacheName=oe.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,r=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,i=new gt(this,{event:t,request:r,params:a}),n=this._getResponse(i,r,t),c=this._awaitComplete(n,i,r,t);return[n,c]}async _getResponse(e,t,r){await e.runCallbacks("handlerWillStart",{event:r,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new y("no-response",{url:t.url})}catch(i){if(i instanceof Error){for(const n of e.iterateCallbacks("handlerDidError"))if(a=await n({error:i,event:r,request:t}),a)break}if(!a)throw i}for(const i of e.iterateCallbacks("handlerWillRespond"))a=await i({event:r,request:t,response:a});return a}async _awaitComplete(e,t,r,a){let i,n;try{i=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:r,response:i}),await t.doneWaiting()}catch(c){c instanceof Error&&(n=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:r,response:i,error:n}),t.destroy(),n)throw n}}class mt extends se{async _handle(e,t){let r=await t.cacheMatch(e),a;if(!r)try{r=await t.fetchAndCachePut(e)}catch(i){i instanceof Error&&(a=i)}if(!r)throw new y("no-response",{url:e.url,error:a});return r}}const wt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class yt extends se{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(wt)}async _handle(e,t){const r=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(r);let a=await t.cacheMatch(e),i;if(!a)try{a=await r}catch(n){n instanceof Error&&(i=n)}if(!a)throw new y("no-response",{url:e.url,error:i});return a}}$e(([{"revision":null,"url":"assets/actions-BeKlqO4e.js"},{"revision":null,"url":"assets/actions-DnYxUqme.js"},{"revision":null,"url":"assets/Add-DdfKyAdP.js"},{"revision":null,"url":"assets/agreement-yWupKN3O.js"},{"revision":null,"url":"assets/api-Cex76yJU.js"},{"revision":null,"url":"assets/app-avatar-DmCjOAyS.js"},{"revision":null,"url":"assets/ar-BKJrehco.js"},{"revision":null,"url":"assets/ar-DEFG_HSF.js"},{"revision":null,"url":"assets/ArrowDropDown-qBw97pL-.js"},{"revision":null,"url":"assets/audit-logs-jhEVyJaR.js"},{"revision":null,"url":"assets/Autocomplete-BReAy6iG.js"},{"revision":null,"url":"assets/brace-fold.es-CFridbwI.js"},{"revision":null,"url":"assets/Breadcrumbs-FWiDSZgQ.js"},{"revision":null,"url":"assets/bundle-avatar-DUPs0-m4.js"},{"revision":null,"url":"assets/ButtonGroup-CbxNRMKE.js"},{"revision":null,"url":"assets/chart-CP8mBtBC.js"},{"revision":null,"url":"assets/CheckCircle-dALAsbHQ.js"},{"revision":null,"url":"assets/ChevronLeft-Cf-5wtBt.js"},{"revision":null,"url":"assets/ChevronRight-BaQf9l-O.js"},{"revision":null,"url":"assets/click-to-copy-BXxUHt8e.js"},{"revision":null,"url":"assets/Close-BneTv7Xy.js"},{"revision":null,"url":"assets/closebrackets.es-_N2Hw_sF.js"},{"revision":null,"url":"assets/codemirror.es-B7W38ouq.js"},{"revision":null,"url":"assets/comment.es-j4ympnEk.js"},{"revision":null,"url":"assets/config-navigation-BwONACZe.js"},{"revision":null,"url":"assets/de-BXx5XWMv.js"},{"revision":null,"url":"assets/de-Byp7vRl4.js"},{"revision":null,"url":"assets/delete-confirm-CHP8pMt1.js"},{"revision":null,"url":"assets/Delete-DXKhZTtc.js"},{"revision":null,"url":"assets/DeleteOutline-DkrRhsKv.js"},{"revision":null,"url":"assets/detail-D7XGmf6a.js"},{"revision":null,"url":"assets/dialog.es-BOmAJ2tY.js"},{"revision":null,"url":"assets/Done-89WeLZcz.js"},{"revision":null,"url":"assets/download-4eDwdyWv.js"},{"revision":null,"url":"assets/download-D33dFtt_.css"},{"revision":null,"url":"assets/Edit-CbzkqV44.js"},{"revision":null,"url":"assets/EditIcon-BSBLuyj1.js"},{"revision":null,"url":"assets/es-dYDfzHE0.js"},{"revision":null,"url":"assets/es-O_BI7nAs.js"},{"revision":null,"url":"assets/FilterList-nvbrBFgI.js"},{"revision":null,"url":"assets/foldgutter.es-CpEL5ZIC.js"},{"revision":null,"url":"assets/forEachState.es-D8bf0zSr.js"},{"revision":null,"url":"assets/fr-DGLilU-8.js"},{"revision":null,"url":"assets/fr-DyVRrA5G.js"},{"revision":null,"url":"assets/getValidReactChildren-qfgxz0Xv.js"},{"revision":null,"url":"assets/Google-ur2xY4JS.js"},{"revision":null,"url":"assets/hi-BpaB7ujL.js"},{"revision":null,"url":"assets/hi-EiYI5FnU.js"},{"revision":null,"url":"assets/hint.es-BpaHJ1HV.js"},{"revision":null,"url":"assets/hint.es2-D5kC37e7.js"},{"revision":null,"url":"assets/Https-OdxMf6s_.js"},{"revision":null,"url":"assets/id-BHuBzbF-.js"},{"revision":null,"url":"assets/id-D7fl0yX3.js"},{"revision":null,"url":"assets/iframe-D-cUXJPs.js"},{"revision":null,"url":"assets/index-5av-A8Se.js"},{"revision":null,"url":"assets/index-6y7fW5zM.js"},{"revision":null,"url":"assets/index-B0nGAy1U.js"},{"revision":null,"url":"assets/index-B5xa9VAq.js"},{"revision":null,"url":"assets/index-B6TlGEJh.js"},{"revision":null,"url":"assets/index-B6XDQWKd.js"},{"revision":null,"url":"assets/index-BamwV6lX.js"},{"revision":null,"url":"assets/index-BBSo4Kre.js"},{"revision":null,"url":"assets/index-BFf4j7Ww.js"},{"revision":null,"url":"assets/index-BQiUEEfD.js"},{"revision":null,"url":"assets/index-BUk5N7af.js"},{"revision":null,"url":"assets/index-BuyQWayQ.js"},{"revision":null,"url":"assets/index-Bzz51kzM.js"},{"revision":null,"url":"assets/index-C7igR7se.css"},{"revision":null,"url":"assets/index-CaSOHyUU.js"},{"revision":null,"url":"assets/index-CBX-R_fM.js"},{"revision":null,"url":"assets/index-CD-Lt__N.js"},{"revision":null,"url":"assets/index-CfAX8o1m.js"},{"revision":null,"url":"assets/index-CkzoIPXc.js"},{"revision":null,"url":"assets/index-CptiWA5V.js"},{"revision":null,"url":"assets/index-CulJYPiw.js"},{"revision":null,"url":"assets/index-D-o-DXlo.js"},{"revision":null,"url":"assets/index-D1poLYtV.js"},{"revision":null,"url":"assets/index-D4PP6P2d.css"},{"revision":null,"url":"assets/index-D7K8de1w.css"},{"revision":null,"url":"assets/index-D9k2I5J1.js"},{"revision":null,"url":"assets/index-DaLAdjV1.js"},{"revision":null,"url":"assets/index-DBtfr-g8.js"},{"revision":null,"url":"assets/index-Dgz6y_sw.js"},{"revision":null,"url":"assets/index-DH55mhhr.js"},{"revision":null,"url":"assets/index-Djimj0Ja.js"},{"revision":null,"url":"assets/index-DjsDiQcb.js"},{"revision":null,"url":"assets/index-DLz4Hi3Z.js"},{"revision":null,"url":"assets/index-DnYL7SmU.js"},{"revision":null,"url":"assets/index-DrN8Ygwh.js"},{"revision":null,"url":"assets/index-DSZjoNB8.js"},{"revision":null,"url":"assets/index-DU3JORH0.css"},{"revision":null,"url":"assets/index-DWayuvwj.js"},{"revision":null,"url":"assets/index-hQvDKtXn.js"},{"revision":null,"url":"assets/index-i-porPUL.js"},{"revision":null,"url":"assets/index-jkMpqxhG.js"},{"revision":null,"url":"assets/index-KCymnL8f.js"},{"revision":null,"url":"assets/index-MncUxq-k.js"},{"revision":null,"url":"assets/index-n8r9cN9d.js"},{"revision":null,"url":"assets/index-P39Qd5P6.js"},{"revision":null,"url":"assets/index-UNdpHp7m.js"},{"revision":null,"url":"assets/index-Xp6JtBc6.js"},{"revision":null,"url":"assets/index-zHybkvc3.js"},{"revision":null,"url":"assets/index.es-CLAf8rQ0.js"},{"revision":null,"url":"assets/index.esm-nYmTtYeB.js"},{"revision":null,"url":"assets/info-addon.es-Cfolj5ET.js"},{"revision":null,"url":"assets/info.es-D3Yd6cKh.js"},{"revision":null,"url":"assets/InfoOutlined-BaBR5WTh.js"},{"revision":null,"url":"assets/InputAdornment-Bz3jTEed.js"},{"revision":null,"url":"assets/InputLabel-Bb9-Zb4y.js"},{"revision":null,"url":"assets/install-from-url-NnkVYELF.js"},{"revision":null,"url":"assets/introspection.es-CPJcz6nz.js"},{"revision":null,"url":"assets/invitation-BBnyeKGK.js"},{"revision":null,"url":"assets/isEqual-DQGyAi5I.js"},{"revision":null,"url":"assets/item-CxkJY_14.css"},{"revision":null,"url":"assets/item-wk2MJlrI.js"},{"revision":null,"url":"assets/ja-BeNRi6CF.js"},{"revision":null,"url":"assets/ja-xLR8soVq.js"},{"revision":null,"url":"assets/javascript.es-CqW0BR4Z.js"},{"revision":null,"url":"assets/jump-to-line.es-C-Ofosy7.js"},{"revision":null,"url":"assets/jump.es-EY-vdsrN.js"},{"revision":null,"url":"assets/ko-BGPBfmUw.js"},{"revision":null,"url":"assets/ko-CdC91nMA.js"},{"revision":null,"url":"assets/LastPage-b5Zg6Pue.js"},{"revision":null,"url":"assets/Launch-D3J61EvG.js"},{"revision":null,"url":"assets/line-BJiZY-Na.js"},{"revision":null,"url":"assets/Link-B0Z7PitM.js"},{"revision":null,"url":"assets/lint.es-DCPumBx-.js"},{"revision":null,"url":"assets/lint.es2-D7ziml_k.js"},{"revision":null,"url":"assets/lint.es3-CQ3RJFPm.js"},{"revision":null,"url":"assets/list-header-2M6faCjv.js"},{"revision":null,"url":"assets/LoadingButton-g3UG3r3Q.js"},{"revision":null,"url":"assets/LockIcon-BIvEaDW_.js"},{"revision":null,"url":"assets/log-DOLydL84.js"},{"revision":null,"url":"assets/logo-BKA11TRi.js"},{"revision":null,"url":"assets/Loop-CvEhoguC.js"},{"revision":null,"url":"assets/lottie-DR9cYUcR.js"},{"revision":null,"url":"assets/matchbrackets.es-DMbNa-Dz.js"},{"revision":null,"url":"assets/memoize-one.esm-BdPwpGay.js"},{"revision":null,"url":"assets/memory-XTtEtBxW.js"},{"revision":null,"url":"assets/mode-B2dWMeTO.js"},{"revision":null,"url":"assets/mode.es-4hNpjLfH.js"},{"revision":null,"url":"assets/mode.es2-Pi_OeoUI.js"},{"revision":null,"url":"assets/mode.es3-DqEODLL1.js"},{"revision":null,"url":"assets/MoreVert--N-SWxBs.js"},{"revision":null,"url":"assets/onlineParser.es-LEndSaRN.js"},{"revision":null,"url":"assets/overview-DG3ws5aa.js"},{"revision":null,"url":"assets/Pagination-Cu8asTOi.js"},{"revision":null,"url":"assets/preact.module-B1z5cdvs.js"},{"revision":null,"url":"assets/pt-BmW9xdbz.js"},{"revision":null,"url":"assets/pt-CrWN8vvS.js"},{"revision":null,"url":"assets/Public-Dm9eNERj.js"},{"revision":null,"url":"assets/Range.es-DaV7MD2W.js"},{"revision":null,"url":"assets/react-BW7E7-P9.css"},{"revision":null,"url":"assets/react-DfJCVmkR.js"},{"revision":null,"url":"assets/redux-ELJtQoC2.js"},{"revision":null,"url":"assets/resource-dialog-ZbHwdUpF.js"},{"revision":null,"url":"assets/ru-DufkUHOM.js"},{"revision":null,"url":"assets/ru-DYnq26fF.js"},{"revision":null,"url":"assets/runtime-aFzgxTMx.js"},{"revision":null,"url":"assets/SchemaReference.es-Rht2H7VZ.js"},{"revision":null,"url":"assets/Search-DifTFgaN.js"},{"revision":null,"url":"assets/search.es-dkimuVIV.js"},{"revision":null,"url":"assets/searchcursor.es-Cgy0Dkqz.js"},{"revision":null,"url":"assets/Select-BazOq14-.js"},{"revision":null,"url":"assets/service-BvyV0xti.js"},{"revision":null,"url":"assets/show-hint.es-C9i0xJlO.js"},{"revision":null,"url":"assets/Skeleton-DzFzNaqT.js"},{"revision":null,"url":"assets/slicedToArray-Bc32ss_C.js"},{"revision":null,"url":"assets/Slider-Bl9ZTB5-.js"},{"revision":null,"url":"assets/spaces-D6AOV9xA.js"},{"revision":null,"url":"assets/Stepper-CPSfsr8I.js"},{"revision":null,"url":"assets/sublime.es-BcF48CMJ.js"},{"revision":null,"url":"assets/switch-control-BoZOKX0C.js"},{"revision":null,"url":"assets/table-icons-B2dymBbK.js"},{"revision":null,"url":"assets/tag-Bd5v37NR.js"},{"revision":null,"url":"assets/team-C-DXj-V_.js"},{"revision":null,"url":"assets/TextField-CedO329E.js"},{"revision":null,"url":"assets/th-Bfmczss9.js"},{"revision":null,"url":"assets/th-Dl-J4TkD.js"},{"revision":null,"url":"assets/ToggleButtonGroup-Ce7WBAl0.js"},{"revision":null,"url":"assets/toUpper-14sgZgOq.js"},{"revision":null,"url":"assets/traffic-BZOD1k45.js"},{"revision":null,"url":"assets/url-evaluation-ClVD1OGC.js"},{"revision":null,"url":"assets/use-blocklet-info-for-connect-did-spaces-BtXC5kfM.js"},{"revision":null,"url":"assets/useLocalStorage-BG3mT3Wr.js"},{"revision":null,"url":"assets/util-9Xuj0MWG.js"},{"revision":null,"url":"assets/vi-BMeJuBa9.js"},{"revision":null,"url":"assets/vi-Cyl8BHvR.js"},{"revision":null,"url":"assets/ViewList-DovmYLzP.js"},{"revision":null,"url":"assets/wait-container-CnoPKjU3.js"},{"revision":null,"url":"assets/withStyles-DCBbgotO.js"},{"revision":null,"url":"assets/wrap-locale-B30EgQCX.js"},{"revision":null,"url":"assets/zh-BDoN11lM.js"},{"revision":null,"url":"assets/zh-Dttm4AuY.js"},{"revision":null,"url":"assets/zh-tw-BSAV-ffK.js"},{"revision":null,"url":"assets/zh-tw-Dg9g_7UM.js"},{"revision":"1a966ec541e09feab6e09d6a3464571a","url":"icons/css/all.css"},{"revision":"8cb29294e1259a11a4dcfc53db228c0c","url":"icons/css/brands.css"},{"revision":"e261b026495a963a3440c2cabaafffd9","url":"icons/css/brands.min.css"},{"revision":"b40c99e5b26dfdd9c49d45f550044137","url":"icons/css/fontawesome.css"},{"revision":"40af17bd614587f6c474f1d1ae9cd743","url":"icons/css/fontawesome.min.css"},{"revision":"03077cdd0957040d48261696c05e9215","url":"icons/css/light.css"},{"revision":"fe218a7af84a0e83bf616f465b9f0f4a","url":"icons/css/light.min.css"},{"revision":"623f487ed9e5a9c0e6c3d9a471689855","url":"index.html"},{"revision":"be6aad568a9de402ad83ef7601f9d6ce","url":"registerSW.js"},{"revision":"eee7588574d50fc529352609420cb773","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));pe();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const re=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/static/")},new mt({cacheName:"static",plugins:[new ut({maxEntries:200})]}));te(s=>{const{request:e}=s;return re(e)?!1:e.url.includes("/images/")||e.url.includes("/icons/")},new yt);
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bR as w,bQ as x,bL as b,bN as a,r as v,bS as h,bP as F,d3 as C,d4 as G,j as t,bU as R,bV as y,bK as u,aJ as g,aK as j}from"./index-CkI554oc.js";function M(o){return w("MuiFormGroup",o)}const _=x("MuiFormGroup",["root","row","error"]),q=_,D=["className","row"],K=o=>{const{classes:r,row:s,error:e}=o;return y({root:["root",s&&"row",e&&"error"]},M,r)},S=b("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:s}=o;return[r.root,s.row&&r.row]}})(({ownerState:o})=>a({display:"flex",flexDirection:"column",flexWrap:"wrap"},o.row&&{flexDirection:"row"})),L=v.forwardRef(function(r,s){const e=h({props:r,name:"MuiFormGroup"}),{className:n,row:i=!1}=e,p=F(e,D),m=C(),d=G({props:e,muiFormControl:m,states:["error"]}),c=a({},e,{row:i,error:d.error}),f=K(c);return t.jsx(S,a({className:R(f.root,n),ownerState:c,ref:s},p))}),E=L,I=u(t.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),H=u(t.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var l={},U=j;Object.defineProperty(l,"__esModule",{value:!0});var z=l.default=void 0,A=U(g()),N=t;z=l.default=(0,A.default)((0,N.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");export{l as D,E as F,I as K,H as a,z as d,q as f,M as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bR as M,bQ as q,bL as S,bY as L,bN as l,r as N,bS as U,bP as _,d3 as re,d4 as le,j as i,bU as B,bV as E,c1 as ae}from"./index-CkI554oc.js";import{F as ie,S as ne,a as de,h as ce,O as ue}from"./Select-DJl6HmRs.js";import{I as pe}from"./InputLabel-CdW9MyDY.js";function me(e){return M("MuiFormHelperText",e)}const fe=q("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),j=fe;var w;const xe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],be=e=>{const{classes:s,contained:t,size:r,disabled:n,error:d,filled:c,focused:p,required:u}=e,o={root:["root",n&&"disabled",d&&"error",r&&`size${L(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return E(o,me,s)},Fe=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:t}=e;return[s.root,t.size&&s[`size${L(t.size)}`],t.contained&&s.contained,t.filled&&s.filled]}})(({theme:e,ownerState:s})=>l({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}},s.size==="small"&&{marginTop:4},s.contained&&{marginLeft:14,marginRight:14})),Te=N.forwardRef(function(s,t){const r=U({props:s,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=r,p=_(r,xe),u=re(),o=le({props:r,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=l({},r,{component:c,contained:o.variant==="filled"||o.variant==="outlined",variant:o.variant,size:o.size,disabled:o.disabled,error:o.error,filled:o.filled,focused:o.focused,required:o.required}),b=be(m);return i.jsx(Fe,l({as:c,ownerState:m,className:B(b.root,d),ref:t},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:""})):n}))}),he=Te;function ve(e){return M("MuiTextField",e)}const Ce=q("MuiTextField",["root"]),je=Ce,ge=["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"],Re={standard:de,filled:ce,outlined:ue},Ie=e=>{const{classes:s}=e;return E({root:["root"]},ve,s)},ye=S(ie,{name:"MuiTextField",slot:"Root",overridesResolver:(e,s)=>s.root})({}),He=N.forwardRef(function(s,t){const r=U({props:s,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:o,disabled:m=!1,error:b=!1,FormHelperTextProps:O,fullWidth:h=!1,helperText:v,id:V,InputLabelProps:F,inputProps:W,InputProps:k,inputRef:A,label:f,maxRows:Q,minRows:Y,multiline:I=!1,name:D,onBlur:G,onChange:J,onFocus:K,placeholder:X,required:y=!1,rows:Z,select:C=!1,SelectProps:g,type:ee,value:H,variant:T="outlined"}=r,se=_(r,ge),P=l({},r,{autoFocus:d,color:u,disabled:m,error:b,fullWidth:h,multiline:I,required:y,select:C,variant:T}),oe=Ie(P),x={};T==="outlined"&&(F&&typeof F.shrink<"u"&&(x.notched=F.shrink),x.label=f),C&&((!g||!g.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const a=ae(V),R=v&&a?`${a}-helper-text`:void 0,z=f&&a?`${a}-label`:void 0,te=Re[T],$=i.jsx(te,l({"aria-describedby":R,autoComplete:n,autoFocus:d,defaultValue:o,fullWidth:h,multiline:I,name:D,rows:Z,maxRows:Q,minRows:Y,type:ee,value:H,id:a,inputRef:A,onBlur:G,onChange:J,onFocus:K,placeholder:X,inputProps:W},x,k));return i.jsxs(ye,l({className:B(oe.root,p),disabled:m,error:b,fullWidth:h,ref:t,required:y,color:u,variant:T,ownerState:P},se,{children:[f!=null&&f!==""&&i.jsx(pe,l({htmlFor:a,id:z},F,{children:f})),C?i.jsx(ne,l({"aria-describedby":R,id:a,labelId:z,value:H,input:$},g,{children:c})):$,v&&i.jsx(he,l({id:R},O,{children:v}))]}))}),we=He;export{he as F,we as T,me as a,j as f,ve as g,je as t};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{bs as Ie,bt as Ue,bu as Oe,bv as Te,bw as qe,bx as ze,by as Ne,bz as ke,bA as He,g as Fe,bB as Ge,bC as Ve,bD as We,r as v,j as n,P as j,a1 as Ke,aJ as R,aK as b,bE as Xe,n as Ye,z as Je,bk as Ze,f as pe,M,b as H,bF as P,a2 as Qe,aY as et,aN as tt,N as nt,bc as at,S as rt,aC as st,C as se,a9 as ot,ad as oe,B as it,F as ie,m as q,aW as ce,A as le,aa as ct,aM as lt,K as ut,bG as dt,bH as mt,bI as pt}from"./index-CkI554oc.js";import{_ as ft}from"./useLocalStorage-DRS65jti.js";import{d as vt}from"./MoreVert-BL42DjcZ.js";import{d as ht}from"./Delete-BGOcGa_D.js";import{B as gt}from"./ButtonGroup-BbRXyWVe.js";import{R as xt,b as ue,u as _t}from"./url-evaluation-asC5XTLH.js";var St=Ie,jt=Te,yt=qe,Dt=Ue,Rt=Oe,bt=ze,Ct=200;function $t(e,r,o,c){var s=-1,u=jt,g=!0,x=e.length,d=[],i=r.length;if(!x)return d;o&&(r=Dt(r,Rt(o))),c?(u=yt,g=!1):r.length>=Ct&&(u=bt,g=!1,r=new St(r));e:for(;++s<x;){var p=e[s],f=o==null?p:o(p);if(p=c||p!==0?p:0,g&&f===f){for(var C=i;C--;)if(r[C]===f)continue e;d.push(p)}else u(r,f,c)||d.push(p)}return d}var Lt=$t,wt=Lt,Bt=Ne,de=ke;function Mt(e,r,o){var c=e.length;if(c<2)return c?de(e[0]):[];for(var s=-1,u=Array(c);++s<c;)for(var g=e[s],x=-1;++x<c;)x!=s&&(u[s]=wt(u[s]||g,e[x],r,o));return de(Bt(u,1),r,o)}var Pt=Mt,At=Ge,Et=He,It=Pt,Ut=We,Ot=Ve,Tt=Et(function(e){var r=Ot(e);return r=typeof r=="function"?r:void 0,It(At(e,Ut),void 0,r)}),qt=Tt;const zt=Fe(qt),fe=v.createContext({});function ve({children:e,type:r}){const[o,c]=v.useState([]),s=v.useRef([]),u=d=>{if(!s.current.includes(d)){const i=[...s.current,d];c(i),s.current=i}},g=d=>{if(s.current.includes(d)){const i=s.current.filter(p=>p!==d);c(i),s.current=i}},x=d=>{const i=o.filter(f=>d.find(C=>C===f));zt(i,o).forEach(f=>g(f))};return n.jsx(fe.Provider,{value:{type:r,deletingBlocklets:o,addDeletingDid:u,removeDeletingDid:g,matchDeletingDid:x},children:e})}ve.propTypes={type:j.string,children:j.node.isRequired};ve.defaultProps={type:"blocklets"};function _n(){return v.useContext(fe)}const Nt=(e,r)=>{if(!e)return"";if(!r)return e;const o=new URL(e),c=new URLSearchParams(o.searchParams),s=new URL(Ke(o.origin,r));return s.search=c.toString(),s.toString()};var F={},kt=b;Object.defineProperty(F,"__esModule",{value:!0});var he=F.default=void 0,Ht=kt(R()),Ft=n;he=F.default=(0,Ht.default)((0,Ft.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");var G={},Gt=b;Object.defineProperty(G,"__esModule",{value:!0});var ge=G.default=void 0,Vt=Gt(R()),Wt=n;ge=G.default=(0,Vt.default)((0,Wt.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var V={},Kt=b;Object.defineProperty(V,"__esModule",{value:!0});var xe=V.default=void 0,Xt=Kt(R()),Yt=n;xe=V.default=(0,Xt.default)((0,Yt.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var W={},Jt=b;Object.defineProperty(W,"__esModule",{value:!0});var _e=W.default=void 0,Zt=Jt(R()),Qt=n;_e=W.default=(0,Zt.default)((0,Qt.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var K={},en=b;Object.defineProperty(K,"__esModule",{value:!0});var Se=K.default=void 0,tn=en(R()),nn=n;Se=K.default=(0,tn.default)((0,nn.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var X={},an=b;Object.defineProperty(X,"__esModule",{value:!0});var je=X.default=void 0,rn=an(R()),sn=n;je=X.default=(0,rn.default)((0,sn.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Y={},on=b;Object.defineProperty(Y,"__esModule",{value:!0});var ye=Y.default=void 0,cn=on(R()),ln=n;ye=Y.default=(0,cn.default)((0,ln.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var J={},un=b;Object.defineProperty(J,"__esModule",{value:!0});var De=J.default=void 0,dn=un(R()),mn=n;De=J.default=(0,dn.default)((0,mn.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");const S={Start:he,Stop:ge,Restart:xe,Reload:_e,Remove:ht,Config:Se,Log:je,Group:ye,Cancel:De,Dashboard:Xe};function Z({blocklet:e,onStart:r,onComplete:o,variant:c,hasPermission:s,getComponentUrl:u,useBlockletUrlEvaluation:g,...x}){const d=Je(),i=Ze(),[p,f]=v.useState(null),[C,Q]=v.useState(null),[A,E]=v.useState(!1),[m,z]=v.useState(null),{t:a}=v.useContext(pe),[Re]=ft("skip-blocklet-setup",!1),{loading:be,recommendedUrl:Ce}=g(e),ee=M.isInProgress(e.status),[N,te]=v.useState(!1);v.useEffect(()=>{var l,y;if(!(e!=null&&e.controller))return;te(((y=(l=e==null?void 0:e.controller)==null?void 0:l.status)==null?void 0:y.value)===H.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var D,$,L;try{const h=await i.api.getLauncherSession({input:{launcherSessionId:(D=e==null?void 0:e.controller)==null?void 0:D.launcherSessionId,launcherUrl:($=e==null?void 0:e.controller)==null?void 0:$.launcherUrl}});if(h!=null&&h.error){console.error("get launcher session failed",h.error);return}te([ie.LAUNCH_SESSION_STATUS.expired,ie.LAUNCH_SESSION_STATUS.terminated].includes((L=h==null?void 0:h.launcherSession)==null?void 0:L.status))}catch(h){console.error("call getLauncherSession error",h)}})()},[]);const{inService:k}=i,$e=()=>{const t=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),l=u==null?void 0:u({mountPoint:t,blocklet:e});window.open(Nt(l,".well-known/service/admin"))},I=(t,l,y=!1)=>async()=>{const D=async U=>{var T;r({action:t,blocklet:e}),E(!0),Q(t);let O=!1;try{if(t==="remove")await l(U);else if(t==="start"){if(!M.hasRunnableComponent(e)){le.error(a("blocklet.noComponent"));return}if(!k&&!Re&&!((T=e.settings)!=null&&T.initialized)&&e.mode!==H.BLOCKLET_MODES.DEVELOPMENT){const _=ct(i.info),re=new URL(Ce);re.searchParams.set("serverUrl",_),window.open(re.href),o({action:t,blocklet:e});return}const w=e.children.filter(_=>!M.isInProgress(_.status)&&_.status!=="running").map(_=>_.meta.did),B={did:e.meta.did,componentDids:w};await l({input:B})}else if(["stop","restart","reload"].includes(t)){const w=e.children.filter(_=>_.status==="running").map(_=>_.meta.did),B={did:e.meta.did,componentDids:w};await l({input:B})}else{const w={did:e.meta.did};await l({input:w})}t==="remove"?O=!0:await lt(1e3),t==="reload"&&le.success(a("blocklet.reloadSuccess")),z(null),o({action:t,blocklet:e})}catch(w){const B=`Blocklet ${t} failed: ${ut(w)}`;throw o({action:t,blocklet:e,error:new Error(B)}),new Error(B)}finally{O||E(!1)}},$=()=>{E(!1),z(null)},L=M.getDisplayName(e,!0),h=e.mode===H.BLOCKLET_MODES.DEVELOPMENT?{description:()=>n.jsx(q,{component:"div",children:n.jsx(q,{gutterBottom:!0,children:a("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(U,O)=>n.jsxs(q,{component:"div",children:[n.jsx(q,{gutterBottom:!0,children:a("blocklet.action.removeApplicationDescription")}),n.jsxs(xt,{name:"removeType",value:U.removeType,onChange:T=>O({...U,removeType:T.target.value}),children:[n.jsx(ce,{value:"backup",control:n.jsx(ue,{}),label:a("blocklet.action.removeApplicationAfterBackup")}),n.jsx(ce,{value:"complete",control:n.jsx(ue,{}),label:a("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},Ee={stop:{title:`${a("common.stop")} ${L}`,description:a("blocklet.action.stopDescription"),confirm:a("blocklet.action.confirmStop"),cancel:a("common.cancel"),onConfirm:D,onCancel:$},restart:{title:`${a("common.restart")} ${L}`,description:a("blocklet.action.restartDescription"),confirm:a("blocklet.action.confirmRestart"),cancel:a("common.cancel"),onConfirm:D,onCancel:$},remove:{title:`${a("common.remove")} ${L}`,confirm:a("blocklet.action.confirmRemove"),cancel:a("common.cancel"),onConfirm:D,onCancel:$,...h},cancelDownload:{title:`${a("common.cancel")}`,description:a("blocklet.action.cancelDownloadDescription",{name:L}),confirm:a("common.confirm"),cancel:a("common.cancel"),onConfirm:D,onCancel:$}};y?z(Ee[t]):await D()},Le=!!p,we=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}f(t.currentTarget)},Be=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}f(null)},ne=async(t,l)=>{try{l.stopPropagation(),l.preventDefault()}catch{}if(typeof t.handler=="function")try{E(!0),Q(t.action),await t.handler()}catch(y){console.error(`Blocklet ${t.name} failed: `,y)}finally{E(!1),f(null)}else f(null)},Me=!k&&M.isDeletableBlocklet(e)?{action:"remove",icon:S.Remove,name:a("common.remove"),handler:I("remove",async({removeType:t})=>{t==="backup"&&await i.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await i.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:ee}:null,Pe={action:"remove",icon:({sx:t,...l})=>n.jsx(S.Cancel,{sx:{...t,paddingRight:"2px",zoom:.95},...l}),name:a("common.cancel"),handler:I("cancelDownload",i.api.cancelDownloadBlocklet,!0)},Ae=M.getAppMissingConfigs(e),ae=[{action:"start",icon:S.Start,name:a("common.start"),handler:I("start",i.api.startBlocklet),disabled:N||e.children.every(t=>t.status==="running")||P(e.status)||be||ee},{action:"stop",icon:S.Stop,name:a("common.stop"),handler:I("stop",i.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:S.Restart,name:a("common.restart"),handler:I("restart",i.api.restartBlocklet,!0),disabled:N||e.status!=="running"},P(e.status)?Pe:Me,{separator:!0},k?null:{action:"dashboard",icon:({style:t,...l})=>n.jsx(S.Dashboard,{...l,style:{...t,width:"26px",height:"26px",paddingRight:"3px"}}),name:a("sidebar.dashboard"),handler:$e,disabled:N||e.status!=="running"},{separator:!0},{onlyInMenu:!0,action:"config",icon:S.Config,name:a("common.config"),handler:()=>{d(`/blocklets/${e.meta.did}/configuration`)},disabled:P(e.status)},{onlyInMenu:!0,action:"team",icon:S.Group,name:a("common.manageTeam"),handler:()=>{d(`/blocklets/${e.meta.did}/members`)},disabled:P(e.status)},{onlyInMenu:!0,action:"log",icon:S.Log,name:a("common.log"),handler:()=>{d(`/logs/blocklet-${e.meta.did}`)},disabled:P(e.status)}].filter(Boolean);return c==="menu"?n.jsxs(me,{"data-cy":"blocklet-actions",children:[n.jsx(Qe,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:we,size:"small",disabled:!s||!P(e.status)&&A,children:n.jsx(vt,{})}),n.jsxs(et,{id:"actions-menu",anchorEl:p,keepMounted:!0,open:Le,onClose:Be,PaperProps:{},children:[Ae.length>0&&n.jsxs(tt,{style:{maxWidth:"400px"},severity:"error",children:[a("blocklet.config.missingRequired"),n.jsx("br",{}),n.jsx(nt,{to:`/blocklets/${e.meta.did}/components`,children:a("blocklet.config.gotoFix")})]}),ae.map((t,l)=>t.separator?n.jsx(at,{},`separator-${l}`):n.jsxs(rt,{dense:!0,onClick:y=>ne(t,y),disabled:A||t.disabled,"data-cy":`${t.action}-blocklet`,children:[n.jsx(st,{style:{minWidth:24},children:C===t.action&&A?n.jsx(se,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{fontSize:"small"})}),n.jsx(ot,{primary:t.name})]},t.name))]}),m&&n.jsx(oe,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]}):n.jsxs(me,{"data-cy":"blocklet-actions",...x,children:[n.jsx(gt,{children:ae.filter(t=>!t.separator&&!t.onlyInMenu).map(t=>n.jsxs(it,{title:t.name,"data-cy":`${t.action}-blocklet`,onClick:()=>ne(t),disabled:!!t.disabled||A,children:[C===t.action&&A?n.jsx(se,{size:16,sx:{marginRight:1}}):n.jsx(t.icon,{}),n.jsx("span",{className:"blocklet-action-text",children:t.name})]},t.name))}),m&&n.jsx(oe,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}Z.propTypes={getComponentUrl:j.func,blocklet:j.object.isRequired,onStart:j.func.isRequired,onComplete:j.func.isRequired,variant:j.oneOf(["menu","group"]),hasPermission:j.bool,useBlockletUrlEvaluation:j.func};Z.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const me=Ye.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
|
|
5
|
-
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
6
|
-
.MuiButton-root {
|
|
7
|
-
padding: 4px;
|
|
8
|
-
font-size: 10px;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
`;function Sn({...e}){const{locale:r}=v.useContext(pe),o=dt(Z,"mutate_blocklets"),c=({mountPoint:s,blocklet:u})=>mt({blocklet:u,mountPoint:s,params:pt(u,r)});return n.jsx(o,{...e,getComponentUrl:c,useBlockletUrlEvaluation:_t})}export{Sn as B,ve as D,V as R,Lt as _,ge as a,S as b,he as c,ye as d,xe as e,_n as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{av as a}from"./index-CkI554oc.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bk as A,b as L,a1 as u,cX as B,bo as y,P as o,j as E,ce as P}from"./index-CkI554oc.js";const d=(s,a)=>{var r;let n="?v=";return a?n+=B(a):n+=`${(r=s==null?void 0:s.meta)==null?void 0:r.version}${y(s==null?void 0:s.status)?"~":""}`,n};function T({blocklet:s}){var O,g,p,v;const{inService:a}=A(),n=(O=((s==null?void 0:s.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:O.value,r=(g=((s==null?void 0:s.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:g.value,t=(p=((s==null?void 0:s.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:p.value,i=((v=window.env)==null?void 0:v.apiPrefix)||"/",m=u(i,`/blocklet/logo/${a?"":s.meta.did}`,d(s,n)),f=u(i,`/blocklet/logo-rect/${a?"":s.meta.did}`,d(s,r)),C=u(i,`/blocklet/logo-favicon/${a?"":s.meta.did}`,d(s,t));return{logoUrl:m,rectLogoUrl:f,faviconUrl:C}}function _({blocklet:s,style:a,size:n,...r}){const{logoUrl:t}=T({blocklet:s}),{variant:i}=r;return E.jsx(P,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:n,height:n,borderRadius:10},a),...r,children:E.jsx("img",{src:t,alt:"",style:{width:n}})})}_.propTypes={blocklet:o.object.isRequired,style:o.object,size:o.oneOfType([o.number,o.string])};_.defaultProps={style:{},size:40};export{_ as B,T as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r}from"./index-CkI554oc.js";function a(t){return r.Children.toArray(t).filter(e=>r.isValidElement(e))}export{a as g};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{aj as J,z as A,r as p,a as X,b as Z,P as x,q as j,u as P,y as ee,au as $,M as N,j as t,x as _,av as te,a1 as S,m as R,D as q,aw as se,U as M,ax as oe,B as O,C as W,ay as re,A as z,K,az as ne,aA as ae,aB as le,F as ie,i as ce,n as V,aa as ue,a4 as de,a7 as pe,a8 as he,aC as fe,a9 as me,O as ge}from"./index-CkI554oc.js";import{_ as D}from"./useLocalStorage-DRS65jti.js";import{c as xe,C as be,A as ye,D as ke,B as Se,S as H,a as je,b as Pe}from"./item-Bv034Zcl.js";import{d as we}from"./ArrowDropDown-B8q6yJii.js";import{B as ve}from"./Breadcrumbs--9MrOMZw.js";import"./index-Clbjq5Ay.js";import"./index-CfOOBUnf.js";import"./Search-J7ilvWof.js";import"./index-sNR67yJ2.js";import"./Select-DJl6HmRs.js";import"./InputAdornment-BzCm_2kz.js";import"./preact.module-B1z5cdvs.js";import"./Add-DEou6OQu.js";import"./TextField-BD0it3d0.js";import"./InputLabel-CdW9MyDY.js";import"./Launch-Dhs9Q_70.js";import"./Done-CydSjSOx.js";import"./DeleteOutline-C7JmRduW.js";import"./delete-confirm-ztUwg2kj.js";import"./click-to-copy-KBQWqGOq.js";import"./MoreVert-BL42DjcZ.js";import"./ButtonGroup-BbRXyWVe.js";import"./getValidReactChildren-DKO9kPop.js";function Re(e){const n=J(),c=A(),[s,o]=D(`sid:blocklet:purchase:${e}`),[i,u]=p.useState(!1),[h,a]=p.useState(null),d=()=>{const{pathname:r,searchParams:m}=new URL(window.location.href),b=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";m.get("sid")&&(o(""),c(r.replace(b,"/"),{replace:!0}))},l=!!(n.get("assetDid")&&s&&n.get("sid")===s);return X(Z.BlockletEvents.purchaseChange,r=>{r.did===e&&(a(r.session),["declined","confirmed","error"].includes(r.session.status)&&(u(!0),setTimeout(d,2e3)))}),p.useEffect(()=>{h&&h.id!==s&&o(h.id)},[h]),{hasCompleted:i,hasPurchased:l,session:h,setSession:a,doRedirect:d}}function B({meta:e,onCancel:n,handlePaySuccess:c,storeUrl:s}){const{t:o}=j(),{info:i}=P(),[u,h]=p.useState("both"),[a,d]=p.useState(1),l=ee(i),r=$(e,i,s),m=v=>{v!==u&&h(v)},b=()=>{u&&(d(2),u==="verify"&&(window.location.href=r))},y=(v,L)=>{L!=="backdropClick"&&n()},w=()=>{c(r)},f=N.getDisplayName({meta:e});if(u==="purchase"&&a===2)return t.jsx(_,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:te.create({baseURL:S(s,"/store")}).get,onSuccess:w,onClose:n,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:l,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:f}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(R,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(R,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:f})]})]})}});const g=q;return t.jsx(g,{title:o("store.purchase.title",{name:f}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:y,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(be,{action:u,onNext:b,onSelect:m})})})}B.propTypes={...xe,storeUrl:x.string.isRequired,handlePaySuccess:x.func};B.defaultProps={handlePaySuccess:e=>{setTimeout(()=>{window.location.href=e},1e3)}};function E({meta:e,buttonText:n,storeUrl:c,isResource:s}){const{t:o}=j(),i=A(),{info:u}=P(),{api:h}=se(),a=N.isFreeBlocklet(e)===!1,[d,l]=p.useState(!1),{hasPurchased:r}=Re(e.did),[m,b]=p.useState(!1),[y]=D("instant-blocklet-install",!1),[w,f]=p.useState(!1),g=p.useMemo(()=>d?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[d,o,a]),v=p.useMemo(()=>s?o("blocklet.status.resource"):a?n.purchase:n.launch,[a,n,s]),L=k=>{k.preventDefault(),k.stopPropagation();try{if(l(!0),a){b(!0);return}if(y){f(!0);return}if(!a){const C=$(e,u,c);window.location.href=C;return}}catch(C){z.error(K(C),{autoHideDuration:5e3}),console.error("Blocklet installed failed",C)}finally{l(!1)}},G=()=>{l(!1),b(!1)},Q=k=>{l(!1),f(!1),i(`/blocklets/${k.appDid}/components`)},Y=()=>{l(!1),f(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(ye,{children:t.jsx(M,{permission:"mutate_blocklets",children:k=>t.jsx(oe,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(O,{onClick:L,size:"small",sx:{cursor:s?"not-allowed":"pointer"},disabled:!!(g||!k),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:g?t.jsxs(t.Fragment,{children:[t.jsx(W,{size:16,style:{marginRight:3}}),g]}):v},e.did)})})}),(r||m)&&t.jsx(B,{method:"launch",meta:e,mode:"both",onCancel:G,storeUrl:c}),w&&t.jsx(_,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:h.get,checkTimeout:5*60*1e3,onSuccess:Q,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(re(c,e.did).trim())},messages:{title:o("setup.keyPair.title"),scan:o("setup.keyPair.scan"),confirm:o("setup.keyPair.confirm"),success:o("setup.keyPair.success")},onClose:Y})]})}E.propTypes={isResource:x.bool,meta:x.object.isRequired,buttonText:x.shape({purchase:x.string.isRequired,launch:x.string.isRequired}).isRequired,storeUrl:x.string.isRequired};E.defaultProps={isResource:!1};const Ce=(e,n,c)=>{const s=ue(n);return S(c,`/blocklets/${e.did}/?server-url=${s}`)},F=({meta:e,attribute:n,value:c})=>e._formatted?e._formatted[n]:c;function U({blocklet:e,endpoint:n}){const{t:c}=j(),s=P();let o=S(s.imgPrefix,"blocklet.png");const i=n;if(i.startsWith("http")&&e.logo)o=S(i,le(e.did,e.logo,e.version));else{let r=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");r&&(r=`/${r}`),o=S(r,`/blocklet/logo/${e.did}`)}try{const l=new URL(o);l.searchParams.set("v",e.version||+new Date),o=l.href}catch{}const u=(s==null?void 0:s.info.mode)!==ie.NODE_MODES.SERVERLESS,h=l=>l.currentTarget.contains(l.target)?!0:(l.preventDefault(),!1),a={meta:e,buttonText:{purchase:c("common.purchase"),launch:c("common.launch")},storeUrl:i};let d=null;return u&&(d=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(E,{isResource:!e.group,...a})})),t.jsx(ce,{href:Ce(e,s.info,n),style:{color:"initial",textDecoration:"none"},onClick:h,target:"_blank",children:t.jsx(De,{title:F({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:F({meta:e,attribute:"description",value:e.description}),cover:e.logo?o:"",version:e.version,button:d})})}U.propTypes={blocklet:x.object.isRequired,endpoint:x.string};U.defaultProps={endpoint:""};function T({storeUrl:e,handleSearchSelect:n,extraFilter:c,...s}){var r;const{locale:o}=j(),i=P(),[u,h]=p.useState({}),a=m=>{h(m)},d=e,l=(r=i==null?void 0:i.info)==null?void 0:r.version;return p.useEffect(()=>{h({})},[d]),t.jsx(ne,{FallbackComponent:ae,resetKeys:[d],children:t.jsx("div",{...s,children:t.jsx(ke,{blockletRender:m=>{const b={...m,endpoint:d};return t.jsx(U,{...b})},baseSearch:!0,endpoint:d,locale:o,onFilterChange:a,onSearchSelect:n,filters:u,extraFilter:c,serverVersion:l})})})}T.propTypes={storeUrl:x.string.isRequired,handleSearchSelect:x.func,extraFilter:x.func};T.defaultProps={handleSearchSelect:null,extraFilter:void 0};const De=V(Se)`
|
|
2
|
-
.ms-highlight {
|
|
3
|
-
color: ${e=>e.theme.palette.primary.main};
|
|
4
|
-
}
|
|
5
|
-
`,Le=de(()=>({buttonText:{textTransform:"none !important"},iconRoot:{minWidth:24},menuName:{display:"flex",flexDirection:"column",marginRight:"100px","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}})),I=p.forwardRef(({onChange:e,onDelete:n},c)=>{const{info:s}=P(),{t:o}=j(),[i,u]=p.useState(!1),[h,a]=p.useState(!1),[d,l]=p.useState(-1),r=Le(),[m,b]=D(H),y=Math.max(s.blockletRegistryList.findIndex(f=>f.url===m),0),w=f=>{try{u(!0),l(f);const g=s.blockletRegistryList[f];b(g.url),e(g.url),a(!1)}catch(g){console.error(g),z.error(`${o("store.blockletRegistry.changeFailed")} ${K(g)}`)}finally{u(!1)}};return p.useImperativeHandle(c,()=>({setOpen:a})),t.jsxs(t.Fragment,{children:[t.jsx(M,{permission:"mutate_node",children:f=>t.jsx(O,{disabled:!f,classes:{text:r.buttonText},color:"secondary","data-cy":"store-toggle",onClick:()=>{a(!0)},endIcon:t.jsx(we,{}),children:t.jsx(R,{color:"secondary",children:s.blockletRegistryList[y].name})})}),t.jsx(q,{title:o("store.blockletRegistry.switchRegistry"),disableEscapeKeyDown:!0,disablePortal:!1,fullWidth:!0,open:h,onClose:()=>a(!1),children:t.jsxs(pe,{className:r.tabPanel,children:[s.blockletRegistryList.map((f,g)=>t.jsxs(he,{button:!0,disabled:i,selected:y===g,"data-cy":"store-switch",onClick:()=>{if(!i){if(g===y){a(!1);return}w(g)}},children:[d===g&&i&&t.jsx(fe,{className:r.iconRoot,children:t.jsx(W,{size:16})}),t.jsx(me,{children:t.jsx(je,{teamDid:s.did,store:f,onDelete:()=>n(f.url)})})]},f.url)),t.jsx(Pe,{disabled:i,onAdd:e,teamDid:s.did,blockletRegistryList:s.blockletRegistryList})]})})]})});I.propTypes={onChange:x.func,onDelete:x.func};I.defaultProps={onChange:()=>{},onDelete:()=>{}};const Be=I;function tt(){const{t:e}=j(),{info:n}=P(),[c]=D(H),{blockletRegistryList:s}=n,o=s.find(r=>c===r.url)||s[0],[i,u]=p.useState(o.url),h=n.routing.adminPath,a=S(window.location.origin,h),d=({detailUrl:r})=>{const m=new URL(r);m.searchParams.set("server-url",a);const b=document.createElement("a");b.setAttribute("target","_blank"),b.setAttribute("href",m.href),b.click()},l=p.useRef(null);return t.jsxs(Ee,{children:[t.jsxs(ve,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[t.jsx(R,{color:"textPrimary",children:e("common.store")}),t.jsx(Be,{ref:l,onChange:r=>u(r),onDelete:r=>{var m;i===r&&u((m=n.blockletRegistryList[0])==null?void 0:m.url)}})]}),t.jsx(ge,{className:"store-header",display:"flex",justifyContent:"space-between",p:0,m:0,children:t.jsx(R,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:e("store.headerDescription")})}),t.jsx(T,{className:"blocklet-list",handleSearchSelect:d,storeUrl:i})]})}const Ee=V.main`
|
|
6
|
-
@media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
|
|
7
|
-
.store-header {
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
margin-bottom: 32px !important;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.page-header {
|
|
13
|
-
margin-bottom: 16px !important;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
.blocklet-list {
|
|
17
|
-
aside:hover {
|
|
18
|
-
height: calc(100vh - 235px);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
`;export{tt as default};
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import{r as C,j as n,q as ee,u as te,aj as Ne,ct as ne,M as X,n as B,B as Xe,P as G,aw as Ye,z as Re,cu as Ze,v as et,cv as tt,ac as nt,av as ve,bl as xe,a1 as Q,b as le,A as ie,K as be,ah as st,Q as J,V as Y,C as T,N as De,i as at,W as rt,x as ot,y as $e,ag as lt,cw as it,ae as ct,c4 as ze,cx as Ee,aa as ut,F as dt,cy as pt,H as ht,ak as mt,al as ft,am as gt,cz as vt,an as xt,J as bt,ao as yt,ap as K,aq as kt,ar as jt}from"./index-CkI554oc.js";import{L as Z,P as Ie,A as wt,S as Pt,a as Ct}from"./index-CsNkkebn.js";import{u as Lt,A as _t,W as Ut,P as Bt,D as ye,L as ke,d as je,a as we}from"./wait-container-DzvlQJkQ.js";import{C as Te,d as St,A as Ot}from"./agreement-Dd1yuqFa.js";import{a as Nt}from"./api-Ce74sKYG.js";import{i as Rt}from"./isEqual-DLk5wI5o.js";import{_ as Dt}from"./useLocalStorage-DRS65jti.js";import{s as $t}from"./logo-BKA11TRi.js";import"./Skeleton-CSyuj2cV.js";import"./Close-DGnER_ve.js";import"./lottie-CYf1PmCL.js";import"./index-D5A34D-v.js";var ce={};Object.defineProperty(ce,"__esModule",{value:!0});var Ae=ce.default=void 0;zt(C);var P=n;function zt(e){return e&&e.__esModule?e:{default:e}}function Pe(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),s.push.apply(s,r)}return s}function Ce(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?Pe(Object(s),!0).forEach(function(r){Et(e,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Pe(Object(s)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(s,r))})}return e}function Et(e,t,s){return t=It(t),t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function It(e){var t=Tt(e,"string");return typeof t=="symbol"?t:String(t)}function Tt(e,t){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var r=s.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 ue=function(t){return(0,P.jsxs)("svg",Ce(Ce({},t),{},{children:[(0,P.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.642L31.72 0 13.288 10.642v14.152L1 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L62.44 53.172V31.89l-12.288-7.095V10.642zM60.52 32.997l-12.288-7.094V11.75L31.72 2.217 15.208 11.75v14.153L2.92 32.997v19.067l16.512 9.533L31.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_428)"}),(0,P.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 24.83L31.72 14.19 13.288 24.831v21.283L31.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L31.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L29.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L38.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_428)"}),(0,P.jsxs)("defs",{children:[(0,P.jsxs)("linearGradient",{id:"paint0_linear_615_428",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,P.jsx)("stop",{stopColor:"#0FA4B7"}),(0,P.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,P.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,P.jsxs)("linearGradient",{id:"paint1_linear_615_428",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,P.jsx)("stop",{stopColor:"#0FA4B7"}),(0,P.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,P.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};ue.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};ue.displayName="launcher-logo-notext";Ae=ce.default=ue;var de={};Object.defineProperty(de,"__esModule",{value:!0});var Me=de.default=void 0;At(C);var b=n;function At(e){return e&&e.__esModule?e:{default:e}}function Le(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),s.push.apply(s,r)}return s}function _e(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{};t%2?Le(Object(s),!0).forEach(function(r){Mt(e,r,s[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Le(Object(s)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(s,r))})}return e}function Mt(e,t,s){return t=Vt(t),t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Vt(e){var t=Ft(e,"string");return typeof t=="symbol"?t:String(t)}function Ft(e,t){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var r=s.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 pe=function(t){return(0,b.jsxs)("svg",_e(_e({},t),{},{children:[(0,b.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#121319"}),(0,b.jsx)("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zM101.843 47.235c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zM120.85 39.003v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zM127.512 40.767c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406-.522.27-1.017.64-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zM150.373 42.04c-.103.132-.205.234-.308.309-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zM157.049 40.543a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zM178.649 44.533a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378c-.532.074-1.05.112-1.554.112a7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zM187.615 41.495c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#121319"}),(0,b.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642L30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_416)"}),(0,b.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_416)"}),(0,b.jsxs)("defs",{children:[(0,b.jsxs)("linearGradient",{id:"paint0_linear_615_416",x1:"30.72",y1:"95.721",x2:"94.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,b.jsx)("stop",{stopColor:"#0FA4B7"}),(0,b.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,b.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,b.jsxs)("linearGradient",{id:"paint1_linear_615_416",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,b.jsx)("stop",{stopColor:"#0FA4B7"}),(0,b.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,b.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};pe.defaultProps={width:"193",height:"64",viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};pe.displayName="launcher-logo";Me=de.default=pe;function Wt(){const{t:e}=ee(),{info:t}=te(),s=Ne(),r=decodeURIComponent(s.get("accessUrl")||""),{meta:l}=ne();return n.jsx(qt,{children:n.jsx("div",{className:"body",children:n.jsx(Z,{variant:"success",title:X.getDisplayName({meta:l},!0),subTitle:e("launchBlocklet.installSuccess",{serverName:t.name}),footer:n.jsx(Ht,{href:r,rel:"noreferrer","data-cy":"open-blocklet",children:e("common.open")})})})})}const Ht=B.a`
|
|
2
|
-
display: block;
|
|
3
|
-
height: 36px;
|
|
4
|
-
color: ${e=>e.theme.palette.primary.main};
|
|
5
|
-
`,qt=B(Te)`
|
|
6
|
-
.app-info_desc {
|
|
7
|
-
font-weight: 400;
|
|
8
|
-
margin-top: 40px;
|
|
9
|
-
font-size: 18px;
|
|
10
|
-
line-height: 21px;
|
|
11
|
-
color: #222222;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.body {
|
|
15
|
-
text-align: center;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
19
|
-
.app-info_desc {
|
|
20
|
-
font-size: 16px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.circle_icon {
|
|
25
|
-
font-size: 58px;
|
|
26
|
-
color: ${e=>e.variant==="error"?e.theme.palette.error.main:e.theme.palette.success.main};
|
|
27
|
-
}
|
|
28
|
-
`;function Ve({children:e,...t}){return n.jsx(Xe,{variant:"contained",color:"primary",...t,children:e})}Ve.propTypes={children:G.any.isRequired};const A=C.forwardRef((e,t)=>n.jsx(Ve,{...e,forwardedRef:t})),W=lt("@abtnode/webapp:launch-blocklet:step-install"),Ue=(e,t)=>!t.statusChanged&&(e==="installed"||e==="running")&&!t.launching,Kt=(e,t,s)=>s(t==="nft"?e?"launchBlocklet.dialog.nftFreeDescription":"launchBlocklet.dialog.nftPaidDescription":e?"launchBlocklet.dialog.freeDescription":"launchBlocklet.dialog.paidDescription"),he="setup_token",Gt=e=>{sessionStorage.setItem(he,e)},Qt=()=>{sessionStorage.removeItem(he)},Jt=()=>sessionStorage.getItem(he);function Xt(){const e=Ne(),{t,locale:s}=ee(),{api:r,info:l}=te(),{session:d,api:M}=Ye(),k=Re(),{loading:g,meta:u,isFree:R,appDid:_,sessionId:j,storeUrl:U,blockletMetaUrl:y,isExternal:S,setAppDid:$,launcherUrl:L,launcherSessionId:O,isInstalling:V,isInstalled:D}=ne(),N=u?X.getDisplayName({meta:u},!0):null,p=e.get("launchType"),z=e.get("chainHost"),H=!!e.get("onlyRequired"),h=e.get("nftId"),E=C.useRef(null),{decrypt:F,encryptKey:Fe}=Ze(),[We]=Dt("skip-blocklet-setup",!1),[a,m]=et({launching:!1,visiting:!1,statusChanged:!1,isConnectOpen:!1,nextAccessUrl:"",loaded:!1,installError:null,progressIndex:0,connectData:{action:"",baseUrl:"",checkFn:()=>{},extraParams:{}}}),fe=tt({user:d.user,launchType:p,nftId:h}),se=nt.getServerAuthMethod(l,p,O,fe),w=Lt(fe?_:""),{status:v,eventName:ae}=w,ge=e.get("from");C.useEffect(()=>{g||(!D&&!V&&re(),m({loaded:!0}))},[g]);const He=async()=>{const{isNew:i,decoded:o}=it(U,l.blockletRegistryList);i&&await r.addBlockletStore({input:{teamDid:l.did,url:o}})},re=async()=>{var o,f;const i=d.user?`${d.user.fullName}'s ${N}`:N;if(m({installError:null}),d!=null&&d.user&&!S&&p!=="serverless")try{await He()}catch(c){console.error("addNewRegistryToRegistryList error:",c)}if(R){const c=`launch-free-blocklet-by-${se}`;m({isConnectOpen:!0,connectData:{action:c,baseUrl:"",checkFn:ve.create({baseURL:((o=window==null?void 0:window.env)==null?void 0:o.apiPrefix)??"/"}).get,extraParams:{wt:xe(u),title:i,blockletMetaUrl:y,launchType:p,nftId:h,chainHost:decodeURIComponent(z),launcherUrl:L,launcherSessionId:O,onlyRequired:H}}})}else{const c=`launch-paid-blocklet-by-${se}`,x=new URL(window.location.href);x.pathname=Q(((f=window==null?void 0:window.env)==null?void 0:f.apiPrefix)??"/",`/api/did/${c}/token`),x.searchParams.set("wt",xe(u)),x.searchParams.set("_ek_",Fe),x.searchParams.set("title",i),x.searchParams.set("autoConnect",!1),x.searchParams.set("blockletMetaUrl",y),p&&x.searchParams.set("launchType",p),h&&x.searchParams.set("nftId",h),L&&x.searchParams.set("launcherUrl",L),O&&x.searchParams.set("launcherSessionId",O);const{data:q}=await Nt.get(x.href);m({isConnectOpen:!0,connectData:{action:"verify-purchase-blocklet",baseUrl:new URL(y).origin,checkFn:ve.create({baseURL:new URL(y).origin}).get,extraParams:{serverDid:l.did,blockletDid:u==null?void 0:u.did,nw:q.url}}})}},qe=async i=>{ie.success(t("launchBlocklet.dialog.success"));const o=Array.isArray(i)?i[i.length-1]:i;if(o.sessionToken&&(ct(F(o.sessionToken)),await d.refresh()),o.setupToken&&Gt(o.setupToken),m({launching:!o.isInstalled,isConnectOpen:!1}),o.appDid){$(o.appDid,o.sessionId);const f=new URL(window.location.href);f.searchParams.set("appDid",o.appDid),f.searchParams.set("sessionId",o.sessionId),window.history.replaceState(null,"",f.toString())}},Ke=i=>{const o=`/${l.routing.adminPath}/blocklets/${i.meta.did}/configuration`.replace(/\/+/g,"/");let f=`/launch-blocklet/complete?status=installed&name=${encodeURIComponent(N)}&accessUrl=${encodeURIComponent(o)}&blocklet_meta_url=${y}`;const c=e.get("fromLauncher");c&&(f+=`&fromLauncher=${c}`),p&&(f+=`&launchType=${p}`),z&&(f+=`&chainHost=${z}`),k(f)},Ge=async i=>{if(W("visitBlocklet",{status:v,state:a,appDid:_}),a.visiting)return;m({visiting:!0});const o=ze({blocklet:i}),f=await Ee(o);if(J(f)&&p!=="serverless"||We){m({visiting:!1}),setTimeout(()=>{Ke(i)},1e3);return}if(J(f)){m({visiting:!1});return}if(Ue(v,a)===!1)try{await M.post(`/api/launch/${j}`)}catch(Je){W("end launch failed",{error:be(Je)})}const c=new URL(f);c.searchParams.set("serverUrl",ut(l)),i.status!=="running"&&c.searchParams.set("__start__","1");const x=e.get("fromLauncher");x&&c.searchParams.set("fromLauncher",x),p&&c.searchParams.set("launchType",p),h&&c.searchParams.set("nftId",h),z&&c.searchParams.set("chainHost",z);const q=Jt();q&&c.searchParams.set("setupToken",q),m({nextAccessUrl:c.href,visiting:!1}),setTimeout(()=>{Qt(),window.location.href=c.href},1e3)},Qe=[t("launchBlocklet.waiting.verifying"),t("launchBlocklet.waiting.downloading"),t("launchBlocklet.waiting.extracting"),t(v==="upgrading"?"common.upgrading":"launchBlocklet.waiting.installing"),t("launchBlocklet.waiting.done")],I=()=>{W("handleInstalledProgress",{status:v,state:a}),v&&(m({progressIndex:4}),E.current&&(clearTimeout(E.current),E.current=null),E.current=setTimeout(()=>{r.getBlocklet({input:{did:_,attachRuntimeInfo:!0}}).then(i=>{i.blocklet&&Ge(i.blocklet)})},500))};if(C.useEffect(()=>{V&&m({launching:!0}),D&&I()},[D,V]),C.useEffect(()=>{var i;if(p==="serverless"&&ae===le.BlockletEvents.nftConsumed){I();return}switch(v){case"waiting":m({progressIndex:1,statusChanged:!0});break;case"downloading":m({progressIndex:2,statusChanged:!0});break;case"installing":case"upgrading":m({progressIndex:3,statusChanged:!0});break;case"installed":if(p==="serverless"&&!st(w))break;I();break;case"starting":I();break;case"running":I();break;case"stopped":I();break;case"corrupted":case"error":{const o={message:w.error.message,name:w.eventName};[le.BlockletEvents.downloadFailed,le.BlockletEvents.installFailed].includes(w.eventName)?o.action="retry":(v==="error"||v==="corrupted")&&(o.action="view"),Rt(o,a.installError)||(i=w==null?void 0:w.error)!=null&&i.message&&ie.error(be(w.error))}break}},[v,ae,w]),W("render",{status:v,eventName:ae,launchType:p,runtimeBlockletState:w,state:a}),g||d.user&&v===null||J(u))return n.jsx(Y,{relative:"parent",children:n.jsx(T,{})});if(a.installError){const i={view:!S&&n.jsx(A,{className:"bottom-button",component:De,to:`/blocklets/${_}/overview`,"data-cy":"view-blocklet",color:"primary",variant:"contained",children:t("launchBlocklet.viewApplication")}),retry:n.jsxs(en,{children:[ge&&n.jsx(A,{variant:"text",className:"bottom-button","data-cy":"go-back",disabled:a.isConnectOpen,onClick:()=>{window.location.href=ge},children:t("common.back")}),n.jsxs(A,{className:"bottom-button","data-cy":"retry-install",disabled:a.isConnectOpen,onClick:re,children:[a.isConnectOpen&&n.jsx(T,{size:16}),t("common.retry")]})]})},o=a.installError.name?a.installError.name.replace("blocklet.",""):"installFailed";return n.jsx(Be,{variant:"error",title:N,subTitle:n.jsxs(Zt,{children:[n.jsx("div",{children:t(`launchBlocklet.error.${o}`)}),a.installError.message&&n.jsx("div",{className:"error-desc",children:t("common.errorMessage")+a.installError.message})]}),footer:i[a.installError.action]})}if(Ue(v,a))return W("alreadyExists",{status:v,state:a,runtimeBlockletState:w}),n.jsx(Be,{variant:"info",title:t("common.reminder"),subTitle:t("launchBlocklet.alreadyExists",{name:X.getDisplayName({meta:u},!0)}),footer:n.jsxs("div",{children:[!a.nextAccessUrl&&n.jsx(T,{size:16}),a.nextAccessUrl&&n.jsx(at,{href:a.nextAccessUrl,"data-cy":"open-blocklet",children:t("launchBlocklet.redirect")})]})});const oe=!a.launching&&!v;return n.jsxs(Yt,{children:[n.jsx("div",{className:"header",children:n.jsx(Ie,{title:t(oe?"common.install":"common.installing"),subTitle:oe?t("launchBlocklet.subTitle",{appName:N,serverName:l.name}):""})}),n.jsxs("div",{className:"body",children:[oe&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"illustrations",children:[n.jsx("div",{className:"ills-block ills-block-left",children:n.jsxs("div",{className:"ills-block-inner",children:[n.jsx(_t,{className:"i-icon",blocklet:{meta:u},blockletMetaUrl:y}),n.jsx("div",{className:"i-name",children:N})]})}),n.jsx(St,{className:"arrow-icon"}),n.jsx("div",{className:"ills-block ills-block-right",children:n.jsxs("div",{className:"ills-block-inner",children:[n.jsx("img",{width:"64",height:"64",src:$t,alt:""}),n.jsx("div",{className:"i-name",children:l.name}),n.jsx(rt,{size:12,responsive:!1,compact:!0,did:l.did})]})})]}),a.loaded&&!D&&!a.launching&&n.jsxs(A,{className:"bottom-button","data-cy":"start-launch",disabled:a.isConnectOpen,onClick:re,children:[a.isConnectOpen&&n.jsx(T,{size:16}),t("launchBlocklet.confirmInstall")]})]}),a.launching&&n.jsxs(Ut,{children:[n.jsx(wt,{increaseSpeed:.3,messageLoop:!1,message:n.jsx(Bt,{steps:Qe,stepIndex:a.progressIndex,autoGrowth:a.progressIndex===4?1e3:4e3})}),[1,2].includes(a.progressIndex)&&n.jsx(ye,{appDid:_})]})]}),a.isConnectOpen&&n.jsx(ye,{appDid:_,visible:!1}),n.jsx(ot,{open:a.isConnectOpen,popup:!0,saveConnect:!1,className:"connect",baseUrl:a.connectData.baseUrl,action:a.connectData.action,checkFn:a.connectData.checkFn,extraParams:a.connectData.extraParams,checkTimeout:10*60*1e3,webWalletUrl:$e(l),onSuccess:qe,onClose:()=>m({isConnectOpen:!1}),locale:s,messages:{title:`${t("launchBlocklet.dialog.title")}`,scan:Kt(R,se,t),confirm:t("launchBlocklet.dialog.confirm"),success:t("launchBlocklet.dialog.success")}})]})}const Yt=B(Te)`
|
|
29
|
-
.body {
|
|
30
|
-
align-items: center;
|
|
31
|
-
animation: fadein ease 0.3s;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.illustrations {
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: row;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
align-items: start;
|
|
39
|
-
text-align: center;
|
|
40
|
-
margin-top: 16px;
|
|
41
|
-
margin-bottom: 40px;
|
|
42
|
-
width: 100%;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.ills-block,
|
|
46
|
-
.ills-block-inner {
|
|
47
|
-
display: flex;
|
|
48
|
-
flex-direction: column;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
align-items: center;
|
|
51
|
-
flex-shrink: 0;
|
|
52
|
-
flex: 1;
|
|
53
|
-
}
|
|
54
|
-
.ills-block {
|
|
55
|
-
max-width: 220px;
|
|
56
|
-
.i-icon {
|
|
57
|
-
width: 64px;
|
|
58
|
-
height: 64px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.i-name {
|
|
62
|
-
margin-top: 16px;
|
|
63
|
-
font-weight: 400;
|
|
64
|
-
font-size: 16px;
|
|
65
|
-
color: #222222;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.i-sub-name {
|
|
69
|
-
color: #999999;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.arrow-icon {
|
|
74
|
-
align-self: start;
|
|
75
|
-
color: #c4c5ca;
|
|
76
|
-
font-size: 30px;
|
|
77
|
-
margin: 16px 0 0;
|
|
78
|
-
${e=>e.theme.breakpoints.down("md")} {
|
|
79
|
-
margin: 25px 24px 0;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@keyframes fadein {
|
|
84
|
-
0% {
|
|
85
|
-
opacity: 0;
|
|
86
|
-
}
|
|
87
|
-
100% {
|
|
88
|
-
opacity: 1;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
`,Zt=B.div`
|
|
92
|
-
line-height: 1.4em;
|
|
93
|
-
.error-desc {
|
|
94
|
-
margin-top: 8px;
|
|
95
|
-
word-wrap: break-word;
|
|
96
|
-
color: ${e=>e.theme.palette.grey[500]};
|
|
97
|
-
}
|
|
98
|
-
`,en=B.div`
|
|
99
|
-
display: flex;
|
|
100
|
-
justify-content: space-around;
|
|
101
|
-
flex-wrap: wrap;
|
|
102
|
-
button {
|
|
103
|
-
margin: 0 10px 18px;
|
|
104
|
-
}
|
|
105
|
-
`,Be=B(Z)`
|
|
106
|
-
.result-footer {
|
|
107
|
-
height: auto;
|
|
108
|
-
}
|
|
109
|
-
`;function me({onClickNext:e,handleDescEle:t,showPageHeader:s}){var H;const r=Re(),[l,d]=C.useState(null),[M,k]=C.useState(!1),{t:g}=ee(),{info:u,api:R}=te(),{loading:_,meta:j,isRunning:U,isInstalled:y,isInstalling:S,appDid:$,isExternal:L}=ne(),[O,V]=C.useState(!0),D=C.useMemo(()=>L?l?`${new URL(l).origin}${dt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`:"":`/blocklets/${$}/overview`,[l,L,$]),N=()=>{const h=new URLSearchParams(window.location.search);O||h.set("onlyRequired","1"),r(`/launch-blocklet/install?${h.toString()}`)},p=e||N,z=async()=>{try{k(!0);const{blocklet:h}=await R.getBlocklet({input:{did:j.did,attachRuntimeInfo:!0}}),E=ze({blocklet:h}),F=await Ee(E);if(!F&&J(F)){d(null);return}d(new URL(F).href)}catch(h){ie.error(h.message)}finally{k(!1)}};if(C.useEffect(()=>{if(!_){if(S){N();return}(U||y&&L)&&z()}},[U,L,y,S]),y){const h=U?"alreadyRunning":"alreadyInstalled";return n.jsx(Z,{variant:"info",title:g("common.reminder"),subTitle:g(`launchBlocklet.${h}`,{name:X.getDisplayName({meta:j},!0)}),footer:n.jsxs(tn,{children:[n.jsx(A,{loading:!D,"data-cy":"view-blocklet",component:L?void 0:De,to:D,href:D,variant:U?"outlined":"contained",color:"primary",children:g("launchBlocklet.viewApplication")}),U&&n.jsx(A,{loading:M,className:"last-button",disabled:!l,href:l,"data-cy":"open-blocklet",children:g("common.open")})]})})}return u?!pt.hasStartEngine(j)&&!((H=j==null?void 0:j.components)!=null&&H.length)?n.jsx(Se,{className:"center",children:n.jsx(Z,{variant:"error",subTitle:g("launchBlocklet.error.resourceBlocklet")})}):n.jsxs(Se,{children:[s&&n.jsx(Ie,{title:g("launchBlocklet.introduction"),subTitle:g("launchBlocklet.welcome")}),n.jsx(Ot,{installRelated:O,onChangeInstallRelated:V,meta:j,onClickNext:p,handleDescEle:t})]}):n.jsx(Y,{relative:"parent",children:n.jsx(T,{})})}me.propTypes={onClickNext:G.func,handleDescEle:G.node,showPageHeader:G.bool};me.defaultProps={onClickNext:null,handleDescEle:"",showPageHeader:!0};const Se=B.div`
|
|
110
|
-
display: flex;
|
|
111
|
-
flex-direction: column;
|
|
112
|
-
align-items: center;
|
|
113
|
-
width: 100%;
|
|
114
|
-
height: 100%;
|
|
115
|
-
&.center {
|
|
116
|
-
justify-content: center;
|
|
117
|
-
}
|
|
118
|
-
`,tn=B.div`
|
|
119
|
-
.MuiButton-root {
|
|
120
|
-
${e=>e.theme.breakpoints.up("md")} {
|
|
121
|
-
min-width: 200px;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
.last-button {
|
|
125
|
-
margin-left: ${e=>e.theme.spacing(2)};
|
|
126
|
-
}
|
|
127
|
-
`;function vn(){const e=ht(O=>O.breakpoints.down("md")),{t,locale:s}=ee(),{info:r}=te(),l=$e(r),{serverUrl:d,fromLauncher:M,meta:k,isFree:g,loading:u,error:R,storeUrl:_}=ne(),j=Q(mt(),"/launch-blocklet"),U=[{key:"install",name:t("launchBlocklet.steps.installApp"),path:Q(j,"install")},{key:"setup",name:t("setup.steps.launchApp")}];let y=[{key:"agreement",name:t("launchBlocklet.introduction"),path:Q(j,"agreement")},...U];const S=()=>{d&&window.open(d)};let $=n.jsx(Oe,{className:`${d?"logo-can-click":""}`,children:n.jsx(ke,{onClick:S,logo:e?n.jsx(we,{width:"32",height:"32"}):n.jsx(je,{width:"128",height:"48"})})});M&&(y=[{key:"purchase-space",name:t("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:t("launchBlocklet.steps.prepareSpace")},...U],$=n.jsx(Oe,{className:`${d?"logo-can-click":""}`,children:n.jsx(ke,{logo:e?n.jsx(we,{onClick:S,width:"32",height:"32"}):n.jsx(je,{onClick:S,width:"128",height:"48"}),previousData:{logo:e?n.jsx(Ae,{width:"32",height:"32"}):n.jsx(Me,{width:"145",height:"48"})}})}));const L={meta:k,isFree:g};return n.jsx(Pt,{steps:y,children:n.jsx(Ct,{locale:s,loading:u,blockletMeta:{...k,isFree:g},useOfSkeleton:!1,navLogo:$,headerEndAddons:n.jsx(ft,{webWalletUrl:l,SessionContext:gt}),pcWidth:"80%",style:{height:"100%"},logoUrl:k&&k.logo?vt({did:k.did,version:k.version,baseUrl:_,logoPath:k.logo}):null,children:n.jsxs(sn,{children:[n.jsx(xt,{styles:nn}),u&&n.jsx(Y,{relative:"parent",children:n.jsx(T,{})}),!u&&R&&n.jsx(Y,{relative:"parent",children:n.jsx(bt,{style:{wordBreak:"break-all"},variant:"icon",type:"error",children:R})}),!u&&!R&&n.jsxs(yt,{children:[n.jsx(K,{path:"agreement",element:n.jsx(me,{})}),n.jsx(K,{path:"install",element:n.jsx(Xt,{})}),n.jsx(K,{path:"complete",element:n.jsx(Wt,{blocklet:L})}),n.jsx(K,{path:"*",element:n.jsx(kt,{to:`agreement${window.location.search}`,replace:!0})})]})]})})})}const nn=jt`
|
|
128
|
-
html,
|
|
129
|
-
body,
|
|
130
|
-
#root,
|
|
131
|
-
#root > .wrapper {
|
|
132
|
-
height: 100%;
|
|
133
|
-
}
|
|
134
|
-
`,sn=B.div`
|
|
135
|
-
width: 100%;
|
|
136
|
-
height: 100%;
|
|
137
|
-
display: flex;
|
|
138
|
-
flex-direction: column;
|
|
139
|
-
justify-content: flex-start;
|
|
140
|
-
align-items: flex-start;
|
|
141
|
-
|
|
142
|
-
.bottom-button {
|
|
143
|
-
min-width: 200px;
|
|
144
|
-
}
|
|
145
|
-
`,Oe=B.div`
|
|
146
|
-
margin-top: -1px;
|
|
147
|
-
&.logo-can-click {
|
|
148
|
-
cursor: pointer;
|
|
149
|
-
}
|
|
150
|
-
`;export{vn as default};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{u as R,j as o,C,aw as T,cB as U,z as b,q as W,cu as D,r,aR as _,k as d,a1 as x,ak as k,ae as E,x as O,av as $,y as q,bj as z,n as B}from"./index-CkI554oc.js";import{I as K}from"./invitation-CSvGVnhZ.js";import"./index-BA_TAXpL.js";import"./index-BET56ssY.js";import"./CheckCircle-D6vwJd9K.js";import"./wrap-locale-p7nrsckq.js";function M(v){const{api:i,session:f}=T(),{info:s}=R(),c=U(),p=b(),{t:l,locale:m}=W(),{encryptKey:P,decrypt:N}=D(),[S,w]=r.useState(!1),h=r.useMemo(()=>new URLSearchParams(c.search).get("inviteId"),[c]),t=_(async()=>{if(!h)return null;let e;const{data:n}=await i.get("/api/invitation",{params:{inviteId:h}}),a=!!d(s,"ownerNft.did")&&n.role.name==="owner";if(a){const u=new URL(window.location.href);u.pathname=x(k(),"/api/did/invite/token"),u.searchParams.set("_ek_",P),u.searchParams.set("inviteId",h);const{data:F}=await i.get(u.href);e=F}return{invitation:n,nextWorkflow:e,needReceiveNFT:a}}),j=r.useCallback(()=>{w(!0)},[]),y=r.useCallback(()=>{if(t.error)throw t.error;return t.value.invitation},[t]),g=r.useCallback(async e=>{e&&E(N(e.sessionToken));const n=new URLSearchParams(c.search);n.delete("inviteId");const a=n.toString();await f.refresh(),p(`/${a&&`?${a}`}`,{replace:!0})},[c,p,f]);if(t.loading)return o.jsx(C,{});const I=()=>{const e=new URL(window.location.href);e.pathname=x(k(),"/api/did/invite/status"),e.searchParams.set("_t_",t.value.nextWorkflow.token),e.searchParams.set("locale",m);const n=setInterval(async()=>{const{data:a}=await i.get(e.href);a.status==="succeed"&&(clearInterval(n),f.updateConnectedInfo(a),g(a))},2e3)},L=()=>{w(!1)};return o.jsxs(A,{className:"page-invite",children:[d(t,"value.needReceiveNFT")&&o.jsx(O,{action:"login",popup:!0,className:"connect",open:S,locale:m,baseUrl:s.launcher.url,checkFn:$.create({baseURL:s.launcher.url}).get,onSuccess:I,onClose:L,checkTimeout:5*60*1e3,webWalletUrl:q(s),extraParams:{nw:d(t,"value.nextWorkflow.url")},messages:{title:l("invite.transferNFTDialog.title",{name:s.name}),scan:l("invite.transferNFTDialog.scan"),confirm:l("invite.transferNFTDialog.confirm"),success:l("invite.transferNFTDialog.success")},prefix:"/.well-known/service/api/did"}),o.jsx(K,{...v,getDataFn:y,createPassportSvg:e=>z(e,s),checkFn:i.get,onLoginSuccess:g,passportColor:"default",onReceive:d(t,"value.needReceiveNFT")?j:null})]})}const A=B.div`
|
|
2
|
-
width: 100vw;
|
|
3
|
-
height: 100%;
|
|
4
|
-
min-height: 100vh;
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: #f6f8fa;
|
|
9
|
-
overflow: auto;
|
|
10
|
-
padding: 20px;
|
|
11
|
-
`;function Y(){return R().loading?o.jsx(C,{}):o.jsx(M,{})}export{Y as default};
|