@abtnode/blocklet-services 1.16.44-beta-20250518-020443-77ba168f → 1.16.44-beta-20250520-104453-912ed737
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AdapterDayjs-YbaNvT9I.js → AdapterDayjs-Bck9Dv3l.js} +1 -1
- package/dist/assets/{ArrowDropDown-xgs4N3Rf.js → ArrowDropDown-BleCy3ti.js} +1 -1
- package/dist/assets/{CheckCircle-JXD6tKIa.js → CheckCircle-XrJDG94y.js} +1 -1
- package/dist/assets/{ChevronLeft-D0eko_T8.js → ChevronLeft-BlDLI-Qo.js} +1 -1
- package/dist/assets/{ChevronRight-CQY9Ni7X.js → ChevronRight-DkPaON7R.js} +1 -1
- package/dist/assets/{DeleteOutline-BEGOj_wq.js → DeleteOutline-Cj7UhBbF.js} +1 -1
- package/dist/assets/{Done-BUJJNjlP.js → Done-UEZFWnHj.js} +1 -1
- package/dist/assets/{Download-DdZEsxmZ.js → Download-CsoZ8yOi.js} +1 -1
- package/dist/assets/{Edit-vxeVwrqO.js → Edit-Bj4m2hpD.js} +1 -1
- package/dist/assets/{Error-C-RD4e9g.js → Error-BwUoSWOt.js} +1 -1
- package/dist/assets/{ExpandLess-CmqG9SE7.js → ExpandLess-CjIzahHO.js} +1 -1
- package/dist/assets/{Google-B7PA4qF8.js → Google-BON6upKi.js} +1 -1
- package/dist/assets/{InfoOutlined-BIr5nkjV.js → InfoOutlined-uoMMChNE.js} +1 -1
- package/dist/assets/{Launch-KvZQI_SA.js → Launch-rj4Kr2rA.js} +1 -1
- package/dist/assets/{LaunchOutlined-ClxZU_tj.js → LaunchOutlined-0gUfY-5D.js} +1 -1
- package/dist/assets/{MoreHoriz-H8rabTmY.js → MoreHoriz-3SNxR36h.js} +1 -1
- package/dist/assets/{PlayArrow-CmxnItFZ.js → PlayArrow-BHO_DqT2.js} +1 -1
- package/dist/assets/{TuneOutlined-DmhFMgM-.js → TuneOutlined-BvtfOd23.js} +1 -1
- package/dist/assets/{ViewList-DXk3qGFU.js → ViewList-BvucdDXZ.js} +1 -1
- package/dist/assets/{access-control-DupKwlXi.js → access-control-C9ZsDLlM.js} +1 -1
- package/dist/assets/{actions-V9hjjowb.js → actions-BWSNMC_c.js} +1 -1
- package/dist/assets/{add-component-core-hWyA0oyr.js → add-component-core-Dd9KPcvp.js} +15 -15
- package/dist/assets/add-resource-BHmsfuUO.js +1 -0
- package/dist/assets/{addon-DtaZ0TB3.js → addon-CaGk2PdY.js} +1 -1
- package/dist/assets/{advanced-EG10mbK7.js → advanced-DlILcrRl.js} +2 -2
- package/dist/assets/appearance-D1sGjeMk.js +1 -0
- package/dist/assets/{ar-2yn9i2dw.js → ar-C_INBNFD.js} +1 -1
- package/dist/assets/{audit-logs-WqpwTrlM.js → audit-logs-DfXh1JQZ.js} +3 -3
- package/dist/assets/{authorize-DEmcifx9.js → authorize-mEHpiCQH.js} +1 -1
- package/dist/assets/{base32-BPfgmw66.js → base32-BnPQ4q4v.js} +1 -1
- package/dist/assets/{branding-CJx0esf8.js → branding-BHziMdwk.js} +2 -2
- package/dist/assets/{branding-DFhJVvNX.js → branding-CbgACClH.js} +2 -2
- package/dist/assets/{bundle-avatar-BbIyJr7P.js → bundle-avatar-D7QQIJpo.js} +1 -1
- package/dist/assets/{button-m03GMAJs.js → button-DXOAf3Np.js} +1 -1
- package/dist/assets/{click-to-copy-DmYkL7Ui.js → click-to-copy-DtGgy9Ua.js} +1 -1
- package/dist/assets/{collapse-FsvH0gRe.js → collapse-iOiHn4dy.js} +1 -1
- package/dist/assets/complete-CKdswLjZ.js +39 -0
- package/dist/assets/{component-BK7TQ5JB.js → component-amc-22MQ.js} +1 -1
- package/dist/assets/{config-Dl_53WnU.js → config-B_jIm01w.js} +1 -1
- package/dist/assets/{config-Cc-40NNR.js → config-D3UduD_R.js} +2 -2
- package/dist/assets/{config-navigation-DH93rn-r.js → config-navigation-PoVJgHNU.js} +3 -3
- package/dist/assets/{config-space-CxEu1ku3.js → config-space-D-DWHYER.js} +1 -1
- package/dist/assets/{confirm-DFwkkng7.js → confirm-DaR0Yx39.js} +1 -1
- package/dist/assets/{connect-tnlrEGOa.js → connect-CVfkW49h.js} +1 -1
- package/dist/assets/connect-CvEHPjqh.js +5 -0
- package/dist/assets/{connect-to-jqzhxL2-.js → connect-to-DrhAN5Nn.js} +1 -1
- package/dist/assets/dashboard-B_QqB4aw.js +239 -0
- package/dist/assets/{de-CEKbJD3-.js → de-EYXdEi3Y.js} +1 -1
- package/dist/assets/{delete-confirm-cVLum8Er.js → delete-confirm-DHB0S_Co.js} +1 -1
- package/dist/assets/{did-address-BI9LYTx-.js → did-address-mv0Qw7hC.js} +1 -1
- package/dist/assets/domain-BR9srj-p.js +9 -0
- package/dist/assets/domain-action-card-DtwNOaxH.js +28 -0
- package/dist/assets/domains-Bg_t1pz-.js +1 -0
- package/dist/assets/dot-D3X4DSlo.js +7 -0
- package/dist/assets/{email-9P_7A90f.js → email-DiuMAA8U.js} +2 -2
- package/dist/assets/{es-dvMygD-W.js → es-3jqVamM8.js} +1 -1
- package/dist/assets/{exchange-passport-CfsGf2j7.js → exchange-passport-Bcw--2wm.js} +1 -1
- package/dist/assets/{fr-BvFd5xp9.js → fr-CUcR-yNv.js} +1 -1
- package/dist/assets/{fuel-DOrn9jKI.js → fuel-BitXgq2D.js} +1 -1
- package/dist/assets/{gen-access-key-Ddbn2A92.js → gen-access-key-CrHniwdW.js} +1 -1
- package/dist/assets/{get-safe-url-BcH2iukm.js → get-safe-url-BRocR2aJ.js} +1 -1
- package/dist/assets/{get-safe-url-OaLLn0UN.js → get-safe-url-DYtntqqo.js} +1 -1
- package/dist/assets/hi-DNldhMTl.js +5 -0
- package/dist/assets/{home-CJ28zTIJ.js → home-jh95SgT7.js} +1 -1
- package/dist/assets/{id-B1Mq_eQI.js → id-CmSIFhX-.js} +1 -1
- package/dist/assets/iframe-BlPuY8Pu.js +1 -0
- package/dist/assets/{index-BmR2oN4p.js → index-BDcuaL48.js} +5 -5
- package/dist/assets/{index-CeU2W9XY.js → index-BO7CJLK3.js} +8 -8
- package/dist/assets/{index-BQ8PIDUu.js → index-BWshat_T.js} +7 -7
- package/dist/assets/{index-BBKe69-Z.js → index-BXkKeWVW.js} +1 -1
- package/dist/assets/index-B_y3Xcdb.js +55 -0
- package/dist/assets/{index-Bi8r1T8R.js → index-Bi-YrbEk.js} +3 -3
- package/dist/assets/{index-D3iGbfL9.js → index-Bv8sds6g.js} +1 -1
- package/dist/assets/{index-DwswX2WL.js → index-C0w1ugDi.js} +1 -1
- package/dist/assets/{index-d-GNQQ24.js → index-CZOVduSH.js} +1 -1
- package/dist/assets/{index-DPmpjBeE.js → index-Cgdb1aGn.js} +4 -4
- package/dist/assets/{index-DfO-sKO8.js → index-CleFkLt8.js} +1 -1
- package/dist/assets/{index-DxVAvQEw.js → index-CqRVUIz0.js} +1 -1
- package/dist/assets/{index-DK8EXxrQ.js → index-D0TzEmpA.js} +2 -2
- package/dist/assets/{index-BoYbZj00.js → index-D3Od1Ju7.js} +9 -9
- package/dist/assets/{index-BEVde8cE.js → index-DO4zGWKz.js} +1 -1
- package/dist/assets/{index-D-mbJPLJ.js → index-DYlN9Brg.js} +1 -1
- package/dist/assets/{index-BXdw6keY.js → index-RDZtjGNC.js} +1 -1
- package/dist/assets/{index-BiIZw9KG.js → index-YuW8IExe.js} +7 -7
- package/dist/assets/index-c0hdujdn.js +10 -0
- package/dist/assets/{index-C2sWzOOC.js → index-hjv3dFXZ.js} +1 -1
- package/dist/assets/{invitation-DmNSx8lT.js → invitation-BtuI3wbb.js} +2 -2
- package/dist/assets/{invite-BRV4-5NB.js → invite-CelTXbxx.js} +1 -1
- package/dist/assets/{issue-passport-DVYjG5SL.js → issue-passport-DGinrMdr.js} +1 -1
- package/dist/assets/{item-F_qGx0RW.js → item-BhN-qZd_.js} +2 -2
- package/dist/assets/{ja-CCKVmbEX.js → ja-D-vAGmH7.js} +1 -1
- package/dist/assets/{ko-A_w8tIEg.js → ko-DpdamIdS.js} +1 -1
- package/dist/assets/{landing-page-CUrvCtHZ.js → landing-page-D_TLvQ3s.js} +1 -1
- package/dist/assets/{layout-Dkaou_pj.js → layout-0pbi4f6l.js} +1 -1
- package/dist/assets/list-C_1TcitB.js +236 -0
- package/dist/assets/{list-Dq129hfR.js → list-DKIkIMue.js} +2 -2
- package/dist/assets/localization-CpjVJ6VE.js +1 -0
- package/dist/assets/{log-C_uY3dq9.js → log-DnUF9orj.js} +1 -1
- package/dist/assets/{logger-BYg6vYBA.js → logger-jMgD3u5g.js} +1 -1
- package/dist/assets/{login-D8Wk5up1.js → login-Boq_S2S7.js} +1 -1
- package/dist/assets/{login-oauth-callback-DMou-vp-.js → login-oauth-callback-CuSXnq1m.js} +1 -1
- package/dist/assets/{logo-uploader-CHTXjHOW.js → logo-uploader-DtAT8iaJ.js} +4 -4
- package/dist/assets/{lost-passport-DlnOD9y-.js → lost-passport-DuJeKcGu.js} +1 -1
- package/dist/assets/{open-window-CuyFfntO.js → open-window-DXP1LoPD.js} +1 -1
- package/dist/assets/{overview-B451HiB6.js → overview-DHcHPq6g.js} +2 -2
- package/dist/assets/{page-header-DpNvpd52.js → page-header-PO_g4wSK.js} +1 -1
- package/dist/assets/{passport-item-BWCHjFYy.js → passport-item-NMGbWwTG.js} +1 -1
- package/dist/assets/{permission-Cnn9EYOW.js → permission-BfddnDBs.js} +1 -1
- package/dist/assets/{preferences-Cqm2olsT.js → preferences-Nt4L8Zgv.js} +1 -1
- package/dist/assets/{profile-embed-CcuuyEXm.js → profile-embed-C9nHKFrf.js} +1 -1
- package/dist/assets/pt-CEcOQeEC.js +5 -0
- package/dist/assets/publish-resource-BL83FldI.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-cfY5JZV6.js → react-beautiful-dnd.esm-0e7VDGmi.js} +1 -1
- package/dist/assets/ru-83xhwzPD.js +5 -0
- package/dist/assets/runtime-FDEoUn52.js +1 -0
- package/dist/assets/sdk-CytUSheP.js +1 -0
- package/dist/assets/{security-C8vye2TA.js → security-BuN2nUoZ.js} +4 -4
- package/dist/assets/{session-B2z_IWIe.js → session-DUt5rVEy.js} +1 -1
- package/dist/assets/setup-BB0XLqW9.js +30 -0
- package/dist/assets/{spaces-DMMN97uo.js → spaces-MprwX1Iq.js} +1 -1
- package/dist/assets/start-C7CIzLBY.js +187 -0
- package/dist/assets/{starting-progress-DeFtXRb_.js → starting-progress-BJCVRFkE.js} +2 -2
- package/dist/assets/{status-C73nIKwK.js → status-Bo92foK0.js} +1 -1
- package/dist/assets/{step-actions-CqbOBcvS.js → step-actions-D__rjlW_.js} +1 -1
- package/dist/assets/{studio-CiFHrC57.js → studio-kVKG7W3n.js} +1 -1
- package/dist/assets/{switch-control-DnNP5DPe.js → switch-control-BgwZFVCJ.js} +1 -1
- package/dist/assets/{table-tips-hNIkakER.js → table-tips-nPiIcvAy.js} +1 -1
- package/dist/assets/th-BQLlyW1N.js +5 -0
- package/dist/assets/{traffic-B7XP49Y5.js → traffic-Cd92p-Xb.js} +2 -2
- package/dist/assets/{transfer-BfUTfR-d.js → transfer-U9z5JNMl.js} +1 -1
- package/dist/assets/{unsubscribe-Bf4dBSoS.js → unsubscribe-BmAshFCd.js} +1 -1
- package/dist/assets/use-blocklet-logo-3VH4RBTr.js +2 -0
- package/dist/assets/useAsync-CDjYBiwf.js +1 -0
- package/dist/assets/useAsync-dC0jHVWO.js +1 -0
- package/dist/assets/{useLocalStorage-BRd3tKN9.js → useLocalStorage-DotMjDUB.js} +1 -1
- package/dist/assets/{user-center-Ck0gNc-m.js → user-center-8aoMSkJ_.js} +2 -2
- package/dist/assets/{util-CVjZG67N.js → util-CiTimo-i.js} +1 -1
- package/dist/assets/{util-DWicJSOi.js → util-CuK9uaNS.js} +1 -1
- package/dist/assets/{vendor-arcblock-DPRICUXM.js → vendor-arcblock-Ca95GLVH.js} +31 -45
- package/dist/assets/{vendor-hooks-Zkb4Ilbj.js → vendor-hooks-DpwFseeF.js} +1 -1
- package/dist/assets/{vendor-ux-did-connect-Ck9lzrbN.js → vendor-ux-did-connect-D0L9YnHn.js} +6 -6
- package/dist/assets/vi-DgWAr6FA.js +5 -0
- package/dist/assets/wrap-locale-QBHz1ECC.js +1 -0
- package/dist/assets/{zh-Cti0XXui.js → zh-BL80PoOh.js} +2 -2
- package/dist/assets/{zh-tw-BLcDG99i.js → zh-tw-Dg5z1DFE.js} +1 -1
- package/dist/index.html +4 -4
- package/dist/service-worker.js +1 -1
- package/package.json +31 -31
- package/dist/assets/add-resource-BE6wXeqY.js +0 -1
- package/dist/assets/appearance-Czknho-C.js +0 -1
- package/dist/assets/complete-C834qh46.js +0 -39
- package/dist/assets/connect-CX2tLgwf.js +0 -5
- package/dist/assets/dashboard-Dc5xtJBc.js +0 -239
- package/dist/assets/domain-7fDuc1TD.js +0 -9
- package/dist/assets/domain-action-card-CoP_GfSR.js +0 -28
- package/dist/assets/domains-CGg1il1q.js +0 -1
- package/dist/assets/dot-BB5occkV.js +0 -7
- package/dist/assets/hi-C51yBXa5.js +0 -5
- package/dist/assets/iframe-D0kv9-rE.js +0 -1
- package/dist/assets/index-C26jJx3Z.js +0 -55
- package/dist/assets/index-DoCu_ga_.js +0 -10
- package/dist/assets/list-CUP3NH6M.js +0 -236
- package/dist/assets/localization-Cl5vfs2R.js +0 -1
- package/dist/assets/pt-7HHecjdA.js +0 -5
- package/dist/assets/publish-resource-BdSfAE92.js +0 -1
- package/dist/assets/ru-Bw8FVC4M.js +0 -5
- package/dist/assets/runtime-BKK1_RAt.js +0 -1
- package/dist/assets/sdk-CXaHNlMH.js +0 -1
- package/dist/assets/setup-CS2QWFMb.js +0 -30
- package/dist/assets/start-6o3_Gxa0.js +0 -187
- package/dist/assets/th-DyW-mYrC.js +0 -5
- package/dist/assets/use-blocklet-logo-Bv56-gH-.js +0 -2
- package/dist/assets/useAsync-DnXpD472.js +0 -1
- package/dist/assets/vi-bzer6J4H.js +0 -5
- package/dist/assets/wrap-locale-HcPVeI43.js +0 -1
package/dist/service-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
try{self["workbox:core:7.0.0"]&&_()}catch{}const ue=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},fe=ue;let R=class extends Error{constructor(e,t){const n=fe(e,t);super(n),this.name=e,this.details=t}};const de=new Set,d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},M=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),pe=s=>{for(const e of Object.keys(d))s(e)},ge={updateDetails:s=>{pe(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||M(d.googleAnalytics),getPrecacheName:s=>s||M(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||M(d.runtime),getSuffix:()=>d.suffix};function q(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function me(s,e,t,n){const a=q(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=q(c.url,t);if(a===o)return s.match(c,n)}}let we=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function ye(){for(const s of de)await s()}const _e=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function Re(s){return new Promise(e=>setTimeout(e,s))}function be(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:core:7.0.0"]&&_()}catch{}const Ce=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},xe=Ce;let u=class extends Error{constructor(e,t){const n=xe(e,t);super(n),this.name=e,this.details=t}};const p={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},A=s=>[p.prefix,s,p.suffix].filter(e=>e&&e.length>0).join("-"),ke=s=>{for(const e of Object.keys(p))s(e)},B={updateDetails:s=>{ke(e=>{typeof s[e]=="string"&&(p[e]=s[e])})},getGoogleAnalyticsName:s=>s||A(p.googleAnalytics),getPrecacheName:s=>s||A(p.precache),getPrefix:()=>p.prefix,getRuntimeName:s=>s||A(p.runtime),getSuffix:()=>p.suffix};function V(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const Ee="__WB_REVISION__";function De(s){if(!s)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const r=new URL(s,location.href);return{cacheKey:r.href,url:r.href}}const{revision:e,url:t}=s;if(!t)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(!e){const r=new URL(t,location.href);return{cacheKey:r.href,url:r.href}}const n=new URL(t,location.href),a=new URL(t,location.href);return n.searchParams.set(Ee,e),{cacheKey:n.href,url:a.href}}class Ue{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;n?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return n}}}class Le{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const a=(n==null?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let C;function Pe(){if(C===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),C=!0}catch{C=!1}C=!1}return C}async function ve(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 n=s.clone(),r={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},i=Pe()?n.body:await n.blob();return new Response(i,r)}const Te=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function G(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function Ne(s,e,t,n){const a=G(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=G(c.url,t);if(a===o)return s.match(c,n)}}class Me{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const Ae=new Set;async function Oe(){for(const s of Ae)await s()}function Se(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}let Ie=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new Me,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=U(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=U(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=U(e);await Se(0);const a=await this.getCacheKey(n,"write");if(!t)throw new u("cache-put-with-no-response",{url:Te(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await Ne(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?r.clone():r)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await Oe(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}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,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}},Ke=class{constructor(e={}){this.cacheName=B.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,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new Ie(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,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(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}};class y extends Ke{constructor(e={}){e.cacheName=B.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(y.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const a=t.params||{};if(this._fallbackToNetwork){const r=a.integrity,i=e.integrity,c=!i||i===r;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?i||r:void 0})),r&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new u("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new u("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,a]of this.plugins.entries())a!==y.copyRedirectedCacheableResponsesPlugin&&(a===y.defaultPrecacheCacheabilityPlugin&&(e=n),a.cacheWillUpdate&&t++);t===0?this.plugins.push(y.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}y.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};y.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await ve(s):s}};class We{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new y({cacheName:B.getPrecacheName(e),plugins:[...t,new Le({precacheController:this})],fallbackToNetwork:n}),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 n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:a,url:r}=De(n),i=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(r)&&this._urlsToCacheKeys.get(r)!==a)throw new u("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(r),secondEntry:a});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==n.integrity)throw new u("add-to-cache-list-conflicting-integrities",{url:r});this._cacheKeysToIntegrities.set(a,n.integrity)}if(this._urlsToCacheKeys.set(r,a),this._urlsToCacheModes.set(r,i),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 V(e,async()=>{const t=new Ue;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),l=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return V(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}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,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let O;const Z=()=>(O||(O=new We),O);try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};let D=class{constructor(e,t,n=ee){this.handler=v(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=v(e)}},$e=class extends D{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}},je=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.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:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,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:i,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 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")}},x;const He=()=>(x||(x=new je,x.addFetchListener(),x.addCacheListener()),x);function Be(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new D(i,e,t)}else if(s instanceof RegExp)n=new $e(s,e,t);else if(typeof s=="function")n=new D(s,e,t);else if(s instanceof D)n=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return He().registerRoute(n),n}function Fe(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*qe(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=Fe(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class Ve extends D{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of qe(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function Ge(s){const e=Z(),t=new Ve(e,s);Be(t)}function Je(s){Z().precache(s)}function Qe(s,e){Je(s),Ge(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const ze=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Ye=ze;class Xe extends Error{constructor(e,t){const n=Ye(e,t);super(n),this.name=e,this.details=t}}function te(s){s.then(()=>{})}const Ze=(s,e)=>e.some(t=>s instanceof t);let J,Q;function et(){return J||(J=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function tt(){return Q||(Q=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const se=new WeakMap,$=new WeakMap,ne=new WeakMap,S=new WeakMap,F=new WeakMap;function st(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(m(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&se.set(t,s)}).catch(()=>{}),F.set(e,s),e}function nt(s){if($.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});$.set(s,e)}let j={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return $.get(s);if(e==="objectStoreNames")return s.objectStoreNames||ne.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 at(s){j=s(j)}function rt(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(I(this),e,...t);return ne.set(n,e.sort?e.sort():[e]),m(n)}:tt().includes(s)?function(...e){return s.apply(I(this),e),m(se.get(this))}:function(...e){return m(s.apply(I(this),e))}}function it(s){return typeof s=="function"?rt(s):(s instanceof IDBTransaction&&nt(s),Ze(s,et())?new Proxy(s,j):s)}function m(s){if(s instanceof IDBRequest)return st(s);if(S.has(s))return S.get(s);const e=it(s);return e!==s&&(S.set(s,e),F.set(e,s)),e}const I=s=>F.get(s);function ct(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=m(i);return n&&i.addEventListener("upgradeneeded",o=>{n(m(i.result),o.oldVersion,o.newVersion,m(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function ot(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),m(t).then(()=>{})}const lt=["get","getKey","getAll","getAllKeys","count"],ht=["put","add","delete","clear"],K=new Map;function z(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(K.get(e))return K.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=ht.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||lt.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let l=o.store;return n&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return K.set(e,r),r}at(s=>({...s,get:(e,t,n)=>z(e,t)||s.get(e,t,n),has:(e,t)=>!!z(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const ut="workbox-expiration",k="cache-entries",Y=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class ft{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(k,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ot(this._cacheName)}async setTimestamp(e,t){e=Y(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(k,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(k,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(k).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&i>=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(k,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Y(e)}async getDb(){return this._db||(this._db=await ct(ut,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class dt{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 ft(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),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,te(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),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<n:!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:""},W=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),pt=s=>{for(const e of Object.keys(g))s(e)},gt={updateDetails:s=>{pt(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||W(g.googleAnalytics),getPrecacheName:s=>s||W(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||W(g.runtime),getSuffix:()=>g.suffix},mt=new Set;function wt(s){mt.add(s)}class yt{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:n,cacheName:a,cachedResponse:r})=>{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);te(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&wt(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===gt.getRuntimeName())throw new Xe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new dt(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 n=Date.now();return t>=n-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 ae="GET",T=s=>s&&typeof s=="object"?s:{handle:s};class P{constructor(e,t,n=ae){this.handler=T(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=T(e)}}class _t extends P{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class Rt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.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:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,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:i,params:c}}return{}}setDefaultHandler(e,t=ae){this._defaultHandlerMap.set(t,T(e))}setCatchHandler(e){this._catchHandler=T(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 R("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 R("unregister-route-route-not-registered")}}let E;const bt=()=>(E||(E=new Rt,E.addFetchListener(),E.addCacheListener()),E);function N(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new P(i,e,t)}else if(s instanceof RegExp)n=new _t(s,e,t);else if(typeof s=="function")n=new P(s,e,t);else if(s instanceof P)n=s;else throw new R("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return bt().registerRoute(n),n}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function L(s){return typeof s=="string"?new Request(s):s}class Ct{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new we,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=L(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new R("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=L(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=L(e);await Re(0);const a=await this.getCacheKey(n,"write");if(!t)throw new R("cache-put-with-no-response",{url:_e(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await me(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?r.clone():r)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ye(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=L(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}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,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class re{constructor(e={}){this.cacheName=ge.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,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new Ct(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new R("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class ie extends re{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new R("no-response",{url:e.url,error:a});return n}}const xt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class ce extends re{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(xt)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new R("no-response",{url:e.url,error:r});return a}}const H="sw-update-reload-times",oe="/lastUpdateMsgTimestamps",kt=10,Et=20*1e3;let le=!1;function Dt(s,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}function Ut(s,e=50,t=5e3){return new Promise(n=>{const a=Date.now(),r=()=>{s()||Date.now()-a>=t?n():setTimeout(r,e)};r()})}self.addEventListener("message",s=>{s.data&&s.data.type==="CLIENT_UPDATE_READY"&&(console.log("Service Worker: client ready"),le=!0)});async function Lt(s){const t=await(await caches.open(H)).match(`${oe}-${s}`);if(t)try{const n=await t.text();return JSON.parse(n)}catch{return[]}return[]}async function Pt(s,e){const t=await caches.open(H);if((await t.keys()).length>100){await caches.delete(H);return}const a=new Response(JSON.stringify(s));await t.put(`${oe}-${e}`,a)}const vt=Dt(async()=>{(await self.clients.matchAll()).forEach(e=>{e.postMessage({type:"SW_DOCUMENT_UPDATED"})})},100),X=/updatedAt:\s*\d+,/g,Tt={cacheDidUpdate:async({request:s,oldResponse:e,newResponse:t})=>{if(e)try{let n=await e.clone().text(),a=await t.clone().text();if(s.url.includes("__blocklet__.js")&&(n=n.replace(X,"updatedAt: ,"),a=a.replace(X,"updatedAt: ,")),n!==a){const r=Date.now(),c=(await Lt(s.url)).filter(o=>r-o<Et);if(c.length>=kt){console.warn("[SW] update too frequent, skip:",s.url);return}await Ut(()=>le),await Pt(c,s.url),console.log("[SW] document version or session updated",s.url),vt()}}catch(n){console.error("[SW] Error comparing document responses:",n)}}};Qe(([{"revision":null,"url":"assets/access-control-DupKwlXi.js"},{"revision":null,"url":"assets/actions-V9hjjowb.js"},{"revision":null,"url":"assets/AdapterDayjs-YbaNvT9I.js"},{"revision":null,"url":"assets/add-component-core-D-IRi6XF.css"},{"revision":null,"url":"assets/add-component-core-hWyA0oyr.js"},{"revision":null,"url":"assets/add-resource-BE6wXeqY.js"},{"revision":null,"url":"assets/addon-DtaZ0TB3.js"},{"revision":null,"url":"assets/advanced-EG10mbK7.js"},{"revision":null,"url":"assets/api-BjteVZFg.js"},{"revision":null,"url":"assets/appearance-Czknho-C.js"},{"revision":null,"url":"assets/ar-2yn9i2dw.js"},{"revision":null,"url":"assets/ar-BRKjvO8p.js"},{"revision":null,"url":"assets/ArrowDropDown-xgs4N3Rf.js"},{"revision":null,"url":"assets/audit-logs-WqpwTrlM.js"},{"revision":null,"url":"assets/authorize-DEmcifx9.js"},{"revision":null,"url":"assets/base32-BPfgmw66.js"},{"revision":null,"url":"assets/branding-CJx0esf8.js"},{"revision":null,"url":"assets/branding-DFhJVvNX.js"},{"revision":null,"url":"assets/bundle-avatar-BbIyJr7P.js"},{"revision":null,"url":"assets/button-m03GMAJs.js"},{"revision":null,"url":"assets/CheckCircle-JXD6tKIa.js"},{"revision":null,"url":"assets/ChevronLeft-D0eko_T8.js"},{"revision":null,"url":"assets/ChevronRight-CQY9Ni7X.js"},{"revision":null,"url":"assets/click-to-copy-DmYkL7Ui.js"},{"revision":null,"url":"assets/cloneDeep-UpFQ2VNg.js"},{"revision":null,"url":"assets/collapse-FsvH0gRe.js"},{"revision":null,"url":"assets/Community-BCL2L7ib.js"},{"revision":null,"url":"assets/complete-C834qh46.js"},{"revision":null,"url":"assets/component-BK7TQ5JB.js"},{"revision":null,"url":"assets/config-Cc-40NNR.js"},{"revision":null,"url":"assets/config-Dl_53WnU.js"},{"revision":null,"url":"assets/config-navigation-DH93rn-r.js"},{"revision":null,"url":"assets/config-space-CxEu1ku3.js"},{"revision":null,"url":"assets/confirm-DFwkkng7.js"},{"revision":null,"url":"assets/connect-CX2tLgwf.js"},{"revision":null,"url":"assets/connect-tnlrEGOa.js"},{"revision":null,"url":"assets/connect-to-jqzhxL2-.js"},{"revision":null,"url":"assets/content-layout--sy9JlYZ.js"},{"revision":null,"url":"assets/dashboard-Dc5xtJBc.js"},{"revision":null,"url":"assets/de-CEKbJD3-.js"},{"revision":null,"url":"assets/de-D3cg0t9f.js"},{"revision":null,"url":"assets/delete-confirm-cVLum8Er.js"},{"revision":null,"url":"assets/DeleteOutline-BEGOj_wq.js"},{"revision":null,"url":"assets/did-address-BI9LYTx-.js"},{"revision":null,"url":"assets/domain-7fDuc1TD.js"},{"revision":null,"url":"assets/domain-action-card-CoP_GfSR.js"},{"revision":null,"url":"assets/domains-CGg1il1q.js"},{"revision":null,"url":"assets/Done-BUJJNjlP.js"},{"revision":null,"url":"assets/dot-BB5occkV.js"},{"revision":null,"url":"assets/Download-DdZEsxmZ.js"},{"revision":null,"url":"assets/Edit-vxeVwrqO.js"},{"revision":null,"url":"assets/EditIcon-Dffk7mPL.js"},{"revision":null,"url":"assets/email-9P_7A90f.js"},{"revision":null,"url":"assets/Email-CdSNK0eA.js"},{"revision":null,"url":"assets/empty-spinner-BZw_ShnT.js"},{"revision":null,"url":"assets/Error-C-RD4e9g.js"},{"revision":null,"url":"assets/es-DPjqApVE.js"},{"revision":null,"url":"assets/es-dvMygD-W.js"},{"revision":null,"url":"assets/exchange-passport-CfsGf2j7.js"},{"revision":null,"url":"assets/ExpandLess-CmqG9SE7.js"},{"revision":null,"url":"assets/fr-BvFd5xp9.js"},{"revision":null,"url":"assets/fr-Dscs9WsP.js"},{"revision":null,"url":"assets/fuel-DOrn9jKI.js"},{"revision":null,"url":"assets/gen-access-key-Ddbn2A92.js"},{"revision":null,"url":"assets/get-safe-url-BcH2iukm.js"},{"revision":null,"url":"assets/get-safe-url-OaLLn0UN.js"},{"revision":null,"url":"assets/Google-B7PA4qF8.js"},{"revision":null,"url":"assets/hi-B8D3j6bs.js"},{"revision":null,"url":"assets/hi-C51yBXa5.js"},{"revision":null,"url":"assets/Holiday-enHMZqEf.js"},{"revision":null,"url":"assets/home-CJ28zTIJ.js"},{"revision":null,"url":"assets/id-B1Mq_eQI.js"},{"revision":null,"url":"assets/id-DWMMQI0G.js"},{"revision":null,"url":"assets/iframe-D0kv9-rE.js"},{"revision":null,"url":"assets/index-8eXqqyHQ.js"},{"revision":null,"url":"assets/index-AgKpYdvC.css"},{"revision":null,"url":"assets/index-BBKe69-Z.js"},{"revision":null,"url":"assets/index-BdH_4Yfe.js"},{"revision":null,"url":"assets/index-BEVde8cE.js"},{"revision":null,"url":"assets/index-Bi8r1T8R.js"},{"revision":null,"url":"assets/index-BiIZw9KG.js"},{"revision":null,"url":"assets/index-BmR2oN4p.js"},{"revision":null,"url":"assets/index-BoYbZj00.js"},{"revision":null,"url":"assets/index-BQ8PIDUu.js"},{"revision":null,"url":"assets/index-Bs1kxR8_.js"},{"revision":null,"url":"assets/index-BXdw6keY.js"},{"revision":null,"url":"assets/index-C0Iiqot3.css"},{"revision":null,"url":"assets/index-C26jJx3Z.js"},{"revision":null,"url":"assets/index-C2sWzOOC.js"},{"revision":null,"url":"assets/index-C849wD9b.js"},{"revision":null,"url":"assets/index-CeU2W9XY.js"},{"revision":null,"url":"assets/index-CmQOzzP8.js"},{"revision":null,"url":"assets/index-CPE8Apzb.js"},{"revision":null,"url":"assets/index-d-GNQQ24.js"},{"revision":null,"url":"assets/index-D-mbJPLJ.js"},{"revision":null,"url":"assets/index-D3iGbfL9.js"},{"revision":null,"url":"assets/index-DbsXFWms.js"},{"revision":null,"url":"assets/index-DfO-sKO8.js"},{"revision":null,"url":"assets/index-DK8EXxrQ.js"},{"revision":null,"url":"assets/index-DoCu_ga_.js"},{"revision":null,"url":"assets/index-DOq-_YXu.css"},{"revision":null,"url":"assets/index-DPmpjBeE.js"},{"revision":null,"url":"assets/index-DVQCgvFb.js"},{"revision":null,"url":"assets/index-DwswX2WL.js"},{"revision":null,"url":"assets/index-DxVAvQEw.js"},{"revision":null,"url":"assets/InfoOutlined-BIr5nkjV.js"},{"revision":null,"url":"assets/invitation-DmNSx8lT.js"},{"revision":null,"url":"assets/invite-BRV4-5NB.js"},{"revision":null,"url":"assets/issue-passport-DVYjG5SL.js"},{"revision":null,"url":"assets/item-F_qGx0RW.js"},{"revision":null,"url":"assets/ja-3LoBq68U.js"},{"revision":null,"url":"assets/ja-CCKVmbEX.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-A_w8tIEg.js"},{"revision":null,"url":"assets/ko-B2dxwXDl.js"},{"revision":null,"url":"assets/landing-page-CUrvCtHZ.js"},{"revision":null,"url":"assets/Launch-KvZQI_SA.js"},{"revision":null,"url":"assets/launch-result-message-Eea5FZDm.js"},{"revision":null,"url":"assets/LaunchOutlined-ClxZU_tj.js"},{"revision":null,"url":"assets/layout-Dkaou_pj.js"},{"revision":null,"url":"assets/list-CUP3NH6M.js"},{"revision":null,"url":"assets/list-Dq129hfR.js"},{"revision":null,"url":"assets/list-header-DNFbdM3a.js"},{"revision":null,"url":"assets/localization-Cl5vfs2R.js"},{"revision":null,"url":"assets/Location-By12Z3Te.js"},{"revision":null,"url":"assets/LockIcon-98CKEIBe.js"},{"revision":null,"url":"assets/log-C_uY3dq9.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/logger-BYg6vYBA.js"},{"revision":null,"url":"assets/login-D8Wk5up1.js"},{"revision":null,"url":"assets/login-oauth-callback-DMou-vp-.js"},{"revision":null,"url":"assets/logo-uploader-CHTXjHOW.js"},{"revision":null,"url":"assets/lost-passport-DlnOD9y-.js"},{"revision":null,"url":"assets/lottie-error-CMOXHtBH.js"},{"revision":null,"url":"assets/lottie-loading-o-GBrhM9.js"},{"revision":null,"url":"assets/lottie-react.esm-D2t-u0YU.js"},{"revision":null,"url":"assets/lottie-web-jYmAQWuC.js"},{"revision":null,"url":"assets/lottie-welcome-C9B95FIi.js"},{"revision":null,"url":"assets/Meeting-CLeFWDkY.js"},{"revision":null,"url":"assets/MoreHoriz-H8rabTmY.js"},{"revision":null,"url":"assets/OffSick-dUm363rs.js"},{"revision":null,"url":"assets/omit-D2k92RIF.js"},{"revision":null,"url":"assets/open-window-CuyFfntO.js"},{"revision":null,"url":"assets/overview-B451HiB6.js"},{"revision":null,"url":"assets/page-header-DpNvpd52.js"},{"revision":null,"url":"assets/passport-item-BWCHjFYy.js"},{"revision":null,"url":"assets/permission-Cnn9EYOW.js"},{"revision":null,"url":"assets/Phone--BSu-btI.js"},{"revision":null,"url":"assets/PlayArrow-CmxnItFZ.js"},{"revision":null,"url":"assets/preferences-Cqm2olsT.js"},{"revision":null,"url":"assets/profile-embed-CcuuyEXm.js"},{"revision":null,"url":"assets/pt-7HHecjdA.js"},{"revision":null,"url":"assets/pt-eei1_Z4R.js"},{"revision":null,"url":"assets/publish-resource-BdSfAE92.js"},{"revision":null,"url":"assets/QuestionMarkCircle-DTf-Tya5.js"},{"revision":null,"url":"assets/raf-schd.esm-B3j6BePR.js"},{"revision":null,"url":"assets/react-beautiful-dnd.esm-cfY5JZV6.js"},{"revision":null,"url":"assets/ru-Bw8FVC4M.js"},{"revision":null,"url":"assets/ru-ZKgT6XdU.js"},{"revision":null,"url":"assets/runtime-BKK1_RAt.js"},{"revision":null,"url":"assets/sdk-CXaHNlMH.js"},{"revision":null,"url":"assets/section-C1TPQFRq.js"},{"revision":null,"url":"assets/security-C8vye2TA.js"},{"revision":null,"url":"assets/ServerLogo-CEsILJl5.js"},{"revision":null,"url":"assets/session-B2z_IWIe.js"},{"revision":null,"url":"assets/setup-CS2QWFMb.js"},{"revision":null,"url":"assets/shorten-label-Bf7YQUd6.js"},{"revision":null,"url":"assets/simple-select-DwWEI_ZU.js"},{"revision":null,"url":"assets/slicedToArray-BSaY8ui4.js"},{"revision":null,"url":"assets/spaces-DMMN97uo.js"},{"revision":null,"url":"assets/start-6o3_Gxa0.js"},{"revision":null,"url":"assets/starting-progress-DeFtXRb_.js"},{"revision":null,"url":"assets/status-C73nIKwK.js"},{"revision":null,"url":"assets/step-actions-CqbOBcvS.js"},{"revision":null,"url":"assets/studio-CiFHrC57.js"},{"revision":null,"url":"assets/switch-control-DnNP5DPe.js"},{"revision":null,"url":"assets/table-tips-hNIkakER.js"},{"revision":null,"url":"assets/th-CG5eLRZo.js"},{"revision":null,"url":"assets/th-DyW-mYrC.js"},{"revision":null,"url":"assets/Timezone-YZ0dMUEr.js"},{"revision":null,"url":"assets/traffic-B7XP49Y5.js"},{"revision":null,"url":"assets/transfer-BfUTfR-d.js"},{"revision":null,"url":"assets/TuneOutlined-DmhFMgM-.js"},{"revision":null,"url":"assets/unsubscribe-Bf4dBSoS.js"},{"revision":null,"url":"assets/use-blocklet-logo-Bv56-gH-.js"},{"revision":null,"url":"assets/use-mobile-JEGQfLZ2.js"},{"revision":null,"url":"assets/use-mobile-ZAS6Si4t.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-DnXpD472.js"},{"revision":null,"url":"assets/useLocalStorage-BRd3tKN9.js"},{"revision":null,"url":"assets/user-center-Ck0gNc-m.js"},{"revision":null,"url":"assets/useSetState-CWq0AVWn.js"},{"revision":null,"url":"assets/util-CVjZG67N.js"},{"revision":null,"url":"assets/util-DWicJSOi.js"},{"revision":null,"url":"assets/vendor-arcblock-DPRICUXM.js"},{"revision":null,"url":"assets/vendor-hooks-Zkb4Ilbj.js"},{"revision":null,"url":"assets/vendor-mui-core-Bh-qMRq3.js"},{"revision":null,"url":"assets/vendor-mui-x-CQTjfcpn.js"},{"revision":null,"url":"assets/vendor-react-DEoibe3W.js"},{"revision":null,"url":"assets/vendor-utils-rHXShPKm.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-Ck9lzrbN.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-DpSGLE7B.css"},{"revision":null,"url":"assets/vi-bzer6J4H.js"},{"revision":null,"url":"assets/vi-CoZs3B42.js"},{"revision":null,"url":"assets/ViewList-DXk3qGFU.js"},{"revision":null,"url":"assets/WorkingRemotely-BX7rgbEY.js"},{"revision":null,"url":"assets/wrap-locale-HcPVeI43.js"},{"revision":null,"url":"assets/zh-CgkeS2I3.js"},{"revision":null,"url":"assets/zh-Cti0XXui.js"},{"revision":null,"url":"assets/zh-tw-BLcDG99i.js"},{"revision":null,"url":"assets/zh-tw-CuakNRcW.js"},{"revision":"5428bf99faba000dc61d72676b1a1b74","url":"index.html"},{"revision":"629a14a7e3397a134f5a30b5dc735183","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"8f9b8997bf5804519b8e9f8dd1bb6ef9","url":"share/shared-bridge.html"},{"revision":"3c1549cff96a2d2baec44397663c083e","url":"share/shared-service-worker.js"},{"revision":"19d4c6a99cb8ed11e68209a612e7ec44","url":"share/workbox-v7.3.0/workbox-background-sync.prod.js"},{"revision":"d9d631014689e2b4b0e343c129671749","url":"share/workbox-v7.3.0/workbox-broadcast-update.prod.js"},{"revision":"bdb39ceb7380dcb1483c543e8856242b","url":"share/workbox-v7.3.0/workbox-cacheable-response.prod.js"},{"revision":"b84dd900eb18e8bc842666bbb740604e","url":"share/workbox-v7.3.0/workbox-core.prod.js"},{"revision":"c582a61c037234d8283eea0b97693b1b","url":"share/workbox-v7.3.0/workbox-expiration.prod.js"},{"revision":"866ba7d03bd871fa990976e4db312ab3","url":"share/workbox-v7.3.0/workbox-navigation-preload.prod.js"},{"revision":"0c55bb581ea7ce5ebfac1ce95cdda21f","url":"share/workbox-v7.3.0/workbox-offline-ga.prod.js"},{"revision":"770d183cf1f189a1ceb11ba8b5d808fa","url":"share/workbox-v7.3.0/workbox-precaching.prod.js"},{"revision":"295decbe1eb3b073a2a8d67cfbdf5692","url":"share/workbox-v7.3.0/workbox-range-requests.prod.js"},{"revision":"0bcb90677f3508ebc8a3571d14194478","url":"share/workbox-v7.3.0/workbox-recipes.prod.js"},{"revision":"4af96b70b2d20b041e2edd7ef1a8ef27","url":"share/workbox-v7.3.0/workbox-routing.prod.js"},{"revision":"c78c21b4058a1134ad3e12286c57cb2f","url":"share/workbox-v7.3.0/workbox-strategies.prod.js"},{"revision":"7eeb2d820d409221e076d31951fdcf79","url":"share/workbox-v7.3.0/workbox-streams.prod.js"},{"revision":"aa7368887577b9719a46b585d5dcc7a5","url":"share/workbox-v7.3.0/workbox-sw.js"},{"revision":"e768668db4eeefde11b58542900ab2ad","url":"share/workbox-v7.3.0/workbox-window.prod.umd.js"},{"revision":"f272d080151aa40322ce1603c6261ec1","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));be();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const he=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));N(({request:s})=>he(s)?!1:s.url.includes("/static/"),new ie({cacheName:`static-${self.registration.scope}`,plugins:[new yt({maxEntries:200})]}));N(({request:s,url:e})=>{var t,n;return(n=(t=self.blocklet)==null?void 0:t.canCache)!=null&&n.call(t,{url:e})?["image","font","style","script"].includes(s.destination):!1},new ie({cacheName:`static-resources-${self.registration.scope}`}));N(({request:s})=>he(s)?!1:s.url.includes("/images/")||s.url.includes("/router/-template-styles/"),new ce({cacheName:`StaleWhileRevalidate-${self.registration.scope}`}));const Nt={cacheKeyWillBeUsed({request:s}){const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(e.pathname="/.well-known/service/admin",e.search="",e.toString()):s.url}},w={};N(({request:s})=>{const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(Object.keys(w).forEach(t=>delete w[t]),!0):!w.env&&s.url.includes(".well-known/service/api/env")?(w.env=!0,!0):!w.session&&s.url.includes(".well-known/service/api/did/session")?(w.session=!0,!0):!w.blocklet&&s.url.endsWith("__blocklet__.js")?(w.blocklet=!0,!0):!1},new ce({cacheName:`documents-${self.registration.scope}`,plugins:[Tt,Nt]}));
|
|
2
|
+
This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return V(e,async()=>{const t=new Ue;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),l=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return V(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}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,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let O;const Z=()=>(O||(O=new We),O);try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",v=s=>s&&typeof s=="object"?s:{handle:s};let D=class{constructor(e,t,n=ee){this.handler=v(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=v(e)}},$e=class extends D{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}},je=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.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:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,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:i,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 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")}},x;const He=()=>(x||(x=new je,x.addFetchListener(),x.addCacheListener()),x);function Be(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new D(i,e,t)}else if(s instanceof RegExp)n=new $e(s,e,t);else if(typeof s=="function")n=new D(s,e,t);else if(s instanceof D)n=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return He().registerRoute(n),n}function Fe(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*qe(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=Fe(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class Ve extends D{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of qe(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function Ge(s){const e=Z(),t=new Ve(e,s);Be(t)}function Je(s){Z().precache(s)}function Qe(s,e){Je(s),Ge(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const ze=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Ye=ze;class Xe extends Error{constructor(e,t){const n=Ye(e,t);super(n),this.name=e,this.details=t}}function te(s){s.then(()=>{})}const Ze=(s,e)=>e.some(t=>s instanceof t);let J,Q;function et(){return J||(J=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function tt(){return Q||(Q=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const se=new WeakMap,$=new WeakMap,ne=new WeakMap,S=new WeakMap,F=new WeakMap;function st(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(m(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&se.set(t,s)}).catch(()=>{}),F.set(e,s),e}function nt(s){if($.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});$.set(s,e)}let j={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return $.get(s);if(e==="objectStoreNames")return s.objectStoreNames||ne.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 at(s){j=s(j)}function rt(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(I(this),e,...t);return ne.set(n,e.sort?e.sort():[e]),m(n)}:tt().includes(s)?function(...e){return s.apply(I(this),e),m(se.get(this))}:function(...e){return m(s.apply(I(this),e))}}function it(s){return typeof s=="function"?rt(s):(s instanceof IDBTransaction&&nt(s),Ze(s,et())?new Proxy(s,j):s)}function m(s){if(s instanceof IDBRequest)return st(s);if(S.has(s))return S.get(s);const e=it(s);return e!==s&&(S.set(s,e),F.set(e,s)),e}const I=s=>F.get(s);function ct(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=m(i);return n&&i.addEventListener("upgradeneeded",o=>{n(m(i.result),o.oldVersion,o.newVersion,m(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function ot(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),m(t).then(()=>{})}const lt=["get","getKey","getAll","getAllKeys","count"],ht=["put","add","delete","clear"],K=new Map;function z(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(K.get(e))return K.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=ht.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||lt.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let l=o.store;return n&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return K.set(e,r),r}at(s=>({...s,get:(e,t,n)=>z(e,t)||s.get(e,t,n),has:(e,t)=>!!z(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const ut="workbox-expiration",k="cache-entries",Y=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class ft{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(k,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ot(this._cacheName)}async setTimestamp(e,t){e=Y(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(k,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(k,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(k).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&i>=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(k,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Y(e)}async getDb(){return this._db||(this._db=await ct(ut,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class dt{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 ft(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),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,te(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),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<n:!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:""},W=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),pt=s=>{for(const e of Object.keys(g))s(e)},gt={updateDetails:s=>{pt(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||W(g.googleAnalytics),getPrecacheName:s=>s||W(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||W(g.runtime),getSuffix:()=>g.suffix},mt=new Set;function wt(s){mt.add(s)}class yt{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:n,cacheName:a,cachedResponse:r})=>{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);te(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&wt(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===gt.getRuntimeName())throw new Xe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new dt(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 n=Date.now();return t>=n-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 ae="GET",T=s=>s&&typeof s=="object"?s:{handle:s};class P{constructor(e,t,n=ae){this.handler=T(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=T(e)}}class _t extends P{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class Rt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.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:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,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:i,params:c}}return{}}setDefaultHandler(e,t=ae){this._defaultHandlerMap.set(t,T(e))}setCatchHandler(e){this._catchHandler=T(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 R("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 R("unregister-route-route-not-registered")}}let E;const bt=()=>(E||(E=new Rt,E.addFetchListener(),E.addCacheListener()),E);function N(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new P(i,e,t)}else if(s instanceof RegExp)n=new _t(s,e,t);else if(typeof s=="function")n=new P(s,e,t);else if(s instanceof P)n=s;else throw new R("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return bt().registerRoute(n),n}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function L(s){return typeof s=="string"?new Request(s):s}class Ct{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new we,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=L(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new R("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=L(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=L(e);await Re(0);const a=await this.getCacheKey(n,"write");if(!t)throw new R("cache-put-with-no-response",{url:_e(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await me(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?r.clone():r)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ye(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=L(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}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,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class re{constructor(e={}){this.cacheName=ge.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,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new Ct(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new R("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class ie extends re{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new R("no-response",{url:e.url,error:a});return n}}const xt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class ce extends re{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(xt)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new R("no-response",{url:e.url,error:r});return a}}const H="sw-update-reload-times",oe="/lastUpdateMsgTimestamps",kt=10,Et=20*1e3;let le=!1;function Dt(s,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}function Ut(s,e=50,t=5e3){return new Promise(n=>{const a=Date.now(),r=()=>{s()||Date.now()-a>=t?n():setTimeout(r,e)};r()})}self.addEventListener("message",s=>{s.data&&s.data.type==="CLIENT_UPDATE_READY"&&(console.log("Service Worker: client ready"),le=!0)});async function Lt(s){const t=await(await caches.open(H)).match(`${oe}-${s}`);if(t)try{const n=await t.text();return JSON.parse(n)}catch{return[]}return[]}async function Pt(s,e){const t=await caches.open(H);if((await t.keys()).length>100){await caches.delete(H);return}const a=new Response(JSON.stringify(s));await t.put(`${oe}-${e}`,a)}const vt=Dt(async()=>{(await self.clients.matchAll()).forEach(e=>{e.postMessage({type:"SW_DOCUMENT_UPDATED"})})},100),X=/updatedAt:\s*\d+,/g,Tt={cacheDidUpdate:async({request:s,oldResponse:e,newResponse:t})=>{if(e)try{let n=await e.clone().text(),a=await t.clone().text();if(s.url.includes("__blocklet__.js")&&(n=n.replace(X,"updatedAt: ,"),a=a.replace(X,"updatedAt: ,")),n!==a){const r=Date.now(),c=(await Lt(s.url)).filter(o=>r-o<Et);if(c.length>=kt){console.warn("[SW] update too frequent, skip:",s.url);return}await Ut(()=>le),await Pt(c,s.url),console.log("[SW] document version or session updated",s.url),vt()}}catch(n){console.error("[SW] Error comparing document responses:",n)}}};Qe(([{"revision":null,"url":"assets/access-control-C9ZsDLlM.js"},{"revision":null,"url":"assets/actions-BWSNMC_c.js"},{"revision":null,"url":"assets/AdapterDayjs-Bck9Dv3l.js"},{"revision":null,"url":"assets/add-component-core-D-IRi6XF.css"},{"revision":null,"url":"assets/add-component-core-Dd9KPcvp.js"},{"revision":null,"url":"assets/add-resource-BHmsfuUO.js"},{"revision":null,"url":"assets/addon-CaGk2PdY.js"},{"revision":null,"url":"assets/advanced-DlILcrRl.js"},{"revision":null,"url":"assets/api-BjteVZFg.js"},{"revision":null,"url":"assets/appearance-D1sGjeMk.js"},{"revision":null,"url":"assets/ar-BRKjvO8p.js"},{"revision":null,"url":"assets/ar-C_INBNFD.js"},{"revision":null,"url":"assets/ArrowDropDown-BleCy3ti.js"},{"revision":null,"url":"assets/audit-logs-DfXh1JQZ.js"},{"revision":null,"url":"assets/authorize-mEHpiCQH.js"},{"revision":null,"url":"assets/base32-BnPQ4q4v.js"},{"revision":null,"url":"assets/branding-BHziMdwk.js"},{"revision":null,"url":"assets/branding-CbgACClH.js"},{"revision":null,"url":"assets/bundle-avatar-D7QQIJpo.js"},{"revision":null,"url":"assets/button-DXOAf3Np.js"},{"revision":null,"url":"assets/CheckCircle-XrJDG94y.js"},{"revision":null,"url":"assets/ChevronLeft-BlDLI-Qo.js"},{"revision":null,"url":"assets/ChevronRight-DkPaON7R.js"},{"revision":null,"url":"assets/click-to-copy-DtGgy9Ua.js"},{"revision":null,"url":"assets/cloneDeep-UpFQ2VNg.js"},{"revision":null,"url":"assets/collapse-iOiHn4dy.js"},{"revision":null,"url":"assets/Community-BCL2L7ib.js"},{"revision":null,"url":"assets/complete-CKdswLjZ.js"},{"revision":null,"url":"assets/component-amc-22MQ.js"},{"revision":null,"url":"assets/config-B_jIm01w.js"},{"revision":null,"url":"assets/config-D3UduD_R.js"},{"revision":null,"url":"assets/config-navigation-PoVJgHNU.js"},{"revision":null,"url":"assets/config-space-D-DWHYER.js"},{"revision":null,"url":"assets/confirm-DaR0Yx39.js"},{"revision":null,"url":"assets/connect-CvEHPjqh.js"},{"revision":null,"url":"assets/connect-CVfkW49h.js"},{"revision":null,"url":"assets/connect-to-DrhAN5Nn.js"},{"revision":null,"url":"assets/content-layout--sy9JlYZ.js"},{"revision":null,"url":"assets/dashboard-B_QqB4aw.js"},{"revision":null,"url":"assets/de-D3cg0t9f.js"},{"revision":null,"url":"assets/de-EYXdEi3Y.js"},{"revision":null,"url":"assets/delete-confirm-DHB0S_Co.js"},{"revision":null,"url":"assets/DeleteOutline-Cj7UhBbF.js"},{"revision":null,"url":"assets/did-address-mv0Qw7hC.js"},{"revision":null,"url":"assets/domain-action-card-DtwNOaxH.js"},{"revision":null,"url":"assets/domain-BR9srj-p.js"},{"revision":null,"url":"assets/domains-Bg_t1pz-.js"},{"revision":null,"url":"assets/Done-UEZFWnHj.js"},{"revision":null,"url":"assets/dot-D3X4DSlo.js"},{"revision":null,"url":"assets/Download-CsoZ8yOi.js"},{"revision":null,"url":"assets/Edit-Bj4m2hpD.js"},{"revision":null,"url":"assets/EditIcon-Dffk7mPL.js"},{"revision":null,"url":"assets/Email-CdSNK0eA.js"},{"revision":null,"url":"assets/email-DiuMAA8U.js"},{"revision":null,"url":"assets/empty-spinner-BZw_ShnT.js"},{"revision":null,"url":"assets/Error-BwUoSWOt.js"},{"revision":null,"url":"assets/es-3jqVamM8.js"},{"revision":null,"url":"assets/es-DPjqApVE.js"},{"revision":null,"url":"assets/exchange-passport-Bcw--2wm.js"},{"revision":null,"url":"assets/ExpandLess-CjIzahHO.js"},{"revision":null,"url":"assets/fr-CUcR-yNv.js"},{"revision":null,"url":"assets/fr-Dscs9WsP.js"},{"revision":null,"url":"assets/fuel-BitXgq2D.js"},{"revision":null,"url":"assets/gen-access-key-CrHniwdW.js"},{"revision":null,"url":"assets/get-safe-url-BRocR2aJ.js"},{"revision":null,"url":"assets/get-safe-url-DYtntqqo.js"},{"revision":null,"url":"assets/Google-BON6upKi.js"},{"revision":null,"url":"assets/hi-B8D3j6bs.js"},{"revision":null,"url":"assets/hi-DNldhMTl.js"},{"revision":null,"url":"assets/Holiday-enHMZqEf.js"},{"revision":null,"url":"assets/home-jh95SgT7.js"},{"revision":null,"url":"assets/id-CmSIFhX-.js"},{"revision":null,"url":"assets/id-DWMMQI0G.js"},{"revision":null,"url":"assets/iframe-BlPuY8Pu.js"},{"revision":null,"url":"assets/index-8eXqqyHQ.js"},{"revision":null,"url":"assets/index-AgKpYdvC.css"},{"revision":null,"url":"assets/index-B_y3Xcdb.js"},{"revision":null,"url":"assets/index-BDcuaL48.js"},{"revision":null,"url":"assets/index-BdH_4Yfe.js"},{"revision":null,"url":"assets/index-Bi-YrbEk.js"},{"revision":null,"url":"assets/index-BO7CJLK3.js"},{"revision":null,"url":"assets/index-Bs1kxR8_.js"},{"revision":null,"url":"assets/index-Bv8sds6g.js"},{"revision":null,"url":"assets/index-BWshat_T.js"},{"revision":null,"url":"assets/index-BXkKeWVW.js"},{"revision":null,"url":"assets/index-c0hdujdn.js"},{"revision":null,"url":"assets/index-C0Iiqot3.css"},{"revision":null,"url":"assets/index-C0w1ugDi.js"},{"revision":null,"url":"assets/index-C849wD9b.js"},{"revision":null,"url":"assets/index-Cgdb1aGn.js"},{"revision":null,"url":"assets/index-CleFkLt8.js"},{"revision":null,"url":"assets/index-CmQOzzP8.js"},{"revision":null,"url":"assets/index-CPE8Apzb.js"},{"revision":null,"url":"assets/index-CqRVUIz0.js"},{"revision":null,"url":"assets/index-CZOVduSH.js"},{"revision":null,"url":"assets/index-D0TzEmpA.js"},{"revision":null,"url":"assets/index-D3Od1Ju7.js"},{"revision":null,"url":"assets/index-DbsXFWms.js"},{"revision":null,"url":"assets/index-DO4zGWKz.js"},{"revision":null,"url":"assets/index-DOq-_YXu.css"},{"revision":null,"url":"assets/index-DVQCgvFb.js"},{"revision":null,"url":"assets/index-DYlN9Brg.js"},{"revision":null,"url":"assets/index-hjv3dFXZ.js"},{"revision":null,"url":"assets/index-RDZtjGNC.js"},{"revision":null,"url":"assets/index-YuW8IExe.js"},{"revision":null,"url":"assets/InfoOutlined-uoMMChNE.js"},{"revision":null,"url":"assets/invitation-BtuI3wbb.js"},{"revision":null,"url":"assets/invite-CelTXbxx.js"},{"revision":null,"url":"assets/issue-passport-DGinrMdr.js"},{"revision":null,"url":"assets/item-BhN-qZd_.js"},{"revision":null,"url":"assets/ja-3LoBq68U.js"},{"revision":null,"url":"assets/ja-D-vAGmH7.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-B2dxwXDl.js"},{"revision":null,"url":"assets/ko-DpdamIdS.js"},{"revision":null,"url":"assets/landing-page-D_TLvQ3s.js"},{"revision":null,"url":"assets/launch-result-message-Eea5FZDm.js"},{"revision":null,"url":"assets/Launch-rj4Kr2rA.js"},{"revision":null,"url":"assets/LaunchOutlined-0gUfY-5D.js"},{"revision":null,"url":"assets/layout-0pbi4f6l.js"},{"revision":null,"url":"assets/list-C_1TcitB.js"},{"revision":null,"url":"assets/list-DKIkIMue.js"},{"revision":null,"url":"assets/list-header-DNFbdM3a.js"},{"revision":null,"url":"assets/localization-CpjVJ6VE.js"},{"revision":null,"url":"assets/Location-By12Z3Te.js"},{"revision":null,"url":"assets/LockIcon-98CKEIBe.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/log-DnUF9orj.js"},{"revision":null,"url":"assets/logger-jMgD3u5g.js"},{"revision":null,"url":"assets/login-Boq_S2S7.js"},{"revision":null,"url":"assets/login-oauth-callback-CuSXnq1m.js"},{"revision":null,"url":"assets/logo-uploader-DtAT8iaJ.js"},{"revision":null,"url":"assets/lost-passport-DuJeKcGu.js"},{"revision":null,"url":"assets/lottie-error-CMOXHtBH.js"},{"revision":null,"url":"assets/lottie-loading-o-GBrhM9.js"},{"revision":null,"url":"assets/lottie-react.esm-D2t-u0YU.js"},{"revision":null,"url":"assets/lottie-web-jYmAQWuC.js"},{"revision":null,"url":"assets/lottie-welcome-C9B95FIi.js"},{"revision":null,"url":"assets/Meeting-CLeFWDkY.js"},{"revision":null,"url":"assets/MoreHoriz-3SNxR36h.js"},{"revision":null,"url":"assets/OffSick-dUm363rs.js"},{"revision":null,"url":"assets/omit-D2k92RIF.js"},{"revision":null,"url":"assets/open-window-DXP1LoPD.js"},{"revision":null,"url":"assets/overview-DHcHPq6g.js"},{"revision":null,"url":"assets/page-header-PO_g4wSK.js"},{"revision":null,"url":"assets/passport-item-NMGbWwTG.js"},{"revision":null,"url":"assets/permission-BfddnDBs.js"},{"revision":null,"url":"assets/Phone--BSu-btI.js"},{"revision":null,"url":"assets/PlayArrow-BHO_DqT2.js"},{"revision":null,"url":"assets/preferences-Nt4L8Zgv.js"},{"revision":null,"url":"assets/profile-embed-C9nHKFrf.js"},{"revision":null,"url":"assets/pt-CEcOQeEC.js"},{"revision":null,"url":"assets/pt-eei1_Z4R.js"},{"revision":null,"url":"assets/publish-resource-BL83FldI.js"},{"revision":null,"url":"assets/QuestionMarkCircle-DTf-Tya5.js"},{"revision":null,"url":"assets/raf-schd.esm-B3j6BePR.js"},{"revision":null,"url":"assets/react-beautiful-dnd.esm-0e7VDGmi.js"},{"revision":null,"url":"assets/ru-83xhwzPD.js"},{"revision":null,"url":"assets/ru-ZKgT6XdU.js"},{"revision":null,"url":"assets/runtime-FDEoUn52.js"},{"revision":null,"url":"assets/sdk-CytUSheP.js"},{"revision":null,"url":"assets/section-C1TPQFRq.js"},{"revision":null,"url":"assets/security-BuN2nUoZ.js"},{"revision":null,"url":"assets/ServerLogo-CEsILJl5.js"},{"revision":null,"url":"assets/session-DUt5rVEy.js"},{"revision":null,"url":"assets/setup-BB0XLqW9.js"},{"revision":null,"url":"assets/shorten-label-Bf7YQUd6.js"},{"revision":null,"url":"assets/simple-select-DwWEI_ZU.js"},{"revision":null,"url":"assets/slicedToArray-BSaY8ui4.js"},{"revision":null,"url":"assets/spaces-MprwX1Iq.js"},{"revision":null,"url":"assets/start-C7CIzLBY.js"},{"revision":null,"url":"assets/starting-progress-BJCVRFkE.js"},{"revision":null,"url":"assets/status-Bo92foK0.js"},{"revision":null,"url":"assets/step-actions-D__rjlW_.js"},{"revision":null,"url":"assets/studio-kVKG7W3n.js"},{"revision":null,"url":"assets/switch-control-BgwZFVCJ.js"},{"revision":null,"url":"assets/table-tips-nPiIcvAy.js"},{"revision":null,"url":"assets/th-BQLlyW1N.js"},{"revision":null,"url":"assets/th-CG5eLRZo.js"},{"revision":null,"url":"assets/Timezone-YZ0dMUEr.js"},{"revision":null,"url":"assets/traffic-Cd92p-Xb.js"},{"revision":null,"url":"assets/transfer-U9z5JNMl.js"},{"revision":null,"url":"assets/TuneOutlined-BvtfOd23.js"},{"revision":null,"url":"assets/unsubscribe-BmAshFCd.js"},{"revision":null,"url":"assets/use-blocklet-logo-3VH4RBTr.js"},{"revision":null,"url":"assets/use-mobile-JEGQfLZ2.js"},{"revision":null,"url":"assets/use-mobile-ZAS6Si4t.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-CDjYBiwf.js"},{"revision":null,"url":"assets/useAsync-dC0jHVWO.js"},{"revision":null,"url":"assets/useLocalStorage-DotMjDUB.js"},{"revision":null,"url":"assets/user-center-8aoMSkJ_.js"},{"revision":null,"url":"assets/useSetState-CWq0AVWn.js"},{"revision":null,"url":"assets/util-CiTimo-i.js"},{"revision":null,"url":"assets/util-CuK9uaNS.js"},{"revision":null,"url":"assets/vendor-arcblock-Ca95GLVH.js"},{"revision":null,"url":"assets/vendor-hooks-DpwFseeF.js"},{"revision":null,"url":"assets/vendor-mui-core-Bh-qMRq3.js"},{"revision":null,"url":"assets/vendor-mui-x-CQTjfcpn.js"},{"revision":null,"url":"assets/vendor-react-DEoibe3W.js"},{"revision":null,"url":"assets/vendor-utils-rHXShPKm.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-D0L9YnHn.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-DpSGLE7B.css"},{"revision":null,"url":"assets/vi-CoZs3B42.js"},{"revision":null,"url":"assets/vi-DgWAr6FA.js"},{"revision":null,"url":"assets/ViewList-BvucdDXZ.js"},{"revision":null,"url":"assets/WorkingRemotely-BX7rgbEY.js"},{"revision":null,"url":"assets/wrap-locale-QBHz1ECC.js"},{"revision":null,"url":"assets/zh-BL80PoOh.js"},{"revision":null,"url":"assets/zh-CgkeS2I3.js"},{"revision":null,"url":"assets/zh-tw-CuakNRcW.js"},{"revision":null,"url":"assets/zh-tw-Dg5z1DFE.js"},{"revision":"413786465d8ea5f931fc0783e8170786","url":"index.html"},{"revision":"629a14a7e3397a134f5a30b5dc735183","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"8f9b8997bf5804519b8e9f8dd1bb6ef9","url":"share/shared-bridge.html"},{"revision":"3c1549cff96a2d2baec44397663c083e","url":"share/shared-service-worker.js"},{"revision":"19d4c6a99cb8ed11e68209a612e7ec44","url":"share/workbox-v7.3.0/workbox-background-sync.prod.js"},{"revision":"d9d631014689e2b4b0e343c129671749","url":"share/workbox-v7.3.0/workbox-broadcast-update.prod.js"},{"revision":"bdb39ceb7380dcb1483c543e8856242b","url":"share/workbox-v7.3.0/workbox-cacheable-response.prod.js"},{"revision":"b84dd900eb18e8bc842666bbb740604e","url":"share/workbox-v7.3.0/workbox-core.prod.js"},{"revision":"c582a61c037234d8283eea0b97693b1b","url":"share/workbox-v7.3.0/workbox-expiration.prod.js"},{"revision":"866ba7d03bd871fa990976e4db312ab3","url":"share/workbox-v7.3.0/workbox-navigation-preload.prod.js"},{"revision":"0c55bb581ea7ce5ebfac1ce95cdda21f","url":"share/workbox-v7.3.0/workbox-offline-ga.prod.js"},{"revision":"770d183cf1f189a1ceb11ba8b5d808fa","url":"share/workbox-v7.3.0/workbox-precaching.prod.js"},{"revision":"295decbe1eb3b073a2a8d67cfbdf5692","url":"share/workbox-v7.3.0/workbox-range-requests.prod.js"},{"revision":"0bcb90677f3508ebc8a3571d14194478","url":"share/workbox-v7.3.0/workbox-recipes.prod.js"},{"revision":"4af96b70b2d20b041e2edd7ef1a8ef27","url":"share/workbox-v7.3.0/workbox-routing.prod.js"},{"revision":"c78c21b4058a1134ad3e12286c57cb2f","url":"share/workbox-v7.3.0/workbox-strategies.prod.js"},{"revision":"7eeb2d820d409221e076d31951fdcf79","url":"share/workbox-v7.3.0/workbox-streams.prod.js"},{"revision":"aa7368887577b9719a46b585d5dcc7a5","url":"share/workbox-v7.3.0/workbox-sw.js"},{"revision":"e768668db4eeefde11b58542900ab2ad","url":"share/workbox-v7.3.0/workbox-window.prod.umd.js"},{"revision":"f272d080151aa40322ce1603c6261ec1","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));be();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const he=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));N(({request:s})=>he(s)?!1:s.url.includes("/static/"),new ie({cacheName:`static-${self.registration.scope}`,plugins:[new yt({maxEntries:200})]}));N(({request:s,url:e})=>{var t,n;return(n=(t=self.blocklet)==null?void 0:t.canCache)!=null&&n.call(t,{url:e})?["image","font","style","script"].includes(s.destination):!1},new ie({cacheName:`static-resources-${self.registration.scope}`}));N(({request:s})=>he(s)?!1:s.url.includes("/images/")||s.url.includes("/router/-template-styles/"),new ce({cacheName:`StaleWhileRevalidate-${self.registration.scope}`}));const Nt={cacheKeyWillBeUsed({request:s}){const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(e.pathname="/.well-known/service/admin",e.search="",e.toString()):s.url}},w={};N(({request:s})=>{const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(Object.keys(w).forEach(t=>delete w[t]),!0):!w.env&&s.url.includes(".well-known/service/api/env")?(w.env=!0,!0):!w.session&&s.url.includes(".well-known/service/api/did/session")?(w.session=!0,!0):!w.blocklet&&s.url.endsWith("__blocklet__.js")?(w.blocklet=!0,!0):!1},new ce({cacheName:`documents-${self.registration.scope}`,plugins:[Tt,Nt]}));
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.44-beta-
|
|
6
|
+
"version": "1.16.44-beta-20250520-104453-912ed737",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/analytics": "1.16.44-beta-
|
|
37
|
-
"@abtnode/auth": "1.16.44-beta-
|
|
38
|
-
"@abtnode/client": "1.16.44-beta-
|
|
39
|
-
"@abtnode/connect-storage": "1.16.44-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.44-beta-
|
|
41
|
-
"@abtnode/core": "1.16.44-beta-
|
|
42
|
-
"@abtnode/cron": "1.16.44-beta-
|
|
43
|
-
"@abtnode/logger": "1.16.44-beta-
|
|
44
|
-
"@abtnode/models": "1.16.44-beta-
|
|
45
|
-
"@abtnode/router-templates": "1.16.44-beta-
|
|
46
|
-
"@abtnode/util": "1.16.44-beta-
|
|
36
|
+
"@abtnode/analytics": "1.16.44-beta-20250520-104453-912ed737",
|
|
37
|
+
"@abtnode/auth": "1.16.44-beta-20250520-104453-912ed737",
|
|
38
|
+
"@abtnode/client": "1.16.44-beta-20250520-104453-912ed737",
|
|
39
|
+
"@abtnode/connect-storage": "1.16.44-beta-20250520-104453-912ed737",
|
|
40
|
+
"@abtnode/constant": "1.16.44-beta-20250520-104453-912ed737",
|
|
41
|
+
"@abtnode/core": "1.16.44-beta-20250520-104453-912ed737",
|
|
42
|
+
"@abtnode/cron": "1.16.44-beta-20250520-104453-912ed737",
|
|
43
|
+
"@abtnode/logger": "1.16.44-beta-20250520-104453-912ed737",
|
|
44
|
+
"@abtnode/models": "1.16.44-beta-20250520-104453-912ed737",
|
|
45
|
+
"@abtnode/router-templates": "1.16.44-beta-20250520-104453-912ed737",
|
|
46
|
+
"@abtnode/util": "1.16.44-beta-20250520-104453-912ed737",
|
|
47
47
|
"@arcblock/did": "1.20.11",
|
|
48
48
|
"@arcblock/did-auth": "1.20.11",
|
|
49
49
|
"@arcblock/did-ext": "1.20.11",
|
|
@@ -53,20 +53,20 @@
|
|
|
53
53
|
"@arcblock/jwt": "1.20.11",
|
|
54
54
|
"@arcblock/validator": "1.20.11",
|
|
55
55
|
"@arcblock/ws": "1.20.11",
|
|
56
|
-
"@blocklet/constant": "1.16.44-beta-
|
|
56
|
+
"@blocklet/constant": "1.16.44-beta-20250520-104453-912ed737",
|
|
57
57
|
"@blocklet/dbhub": "^0.2.9",
|
|
58
58
|
"@blocklet/did-space-js": "^1.0.53",
|
|
59
|
-
"@blocklet/env": "1.16.44-beta-
|
|
59
|
+
"@blocklet/env": "1.16.44-beta-20250520-104453-912ed737",
|
|
60
60
|
"@blocklet/error": "^0.2.4",
|
|
61
61
|
"@blocklet/form-builder": "^0.1.11",
|
|
62
62
|
"@blocklet/form-collector": "^0.1.8",
|
|
63
|
-
"@blocklet/images": "1.16.44-beta-
|
|
64
|
-
"@blocklet/js-sdk": "1.16.44-beta-
|
|
63
|
+
"@blocklet/images": "1.16.44-beta-20250520-104453-912ed737",
|
|
64
|
+
"@blocklet/js-sdk": "1.16.44-beta-20250520-104453-912ed737",
|
|
65
65
|
"@blocklet/mcp": "^1.10.2",
|
|
66
|
-
"@blocklet/meta": "1.16.44-beta-
|
|
67
|
-
"@blocklet/sdk": "1.16.44-beta-
|
|
68
|
-
"@blocklet/theme": "^2.13.
|
|
69
|
-
"@blocklet/theme-builder": "^0.1.
|
|
66
|
+
"@blocklet/meta": "1.16.44-beta-20250520-104453-912ed737",
|
|
67
|
+
"@blocklet/sdk": "1.16.44-beta-20250520-104453-912ed737",
|
|
68
|
+
"@blocklet/theme": "^2.13.41",
|
|
69
|
+
"@blocklet/theme-builder": "^0.1.18",
|
|
70
70
|
"@blocklet/uploader-server": "^0.1.98",
|
|
71
71
|
"@blocklet/xss": "^0.1.35",
|
|
72
72
|
"@did-connect/authenticator": "^2.2.8",
|
|
@@ -120,16 +120,16 @@
|
|
|
120
120
|
"whatwg-url": "14.0.0"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
123
|
-
"@abtnode/ux": "1.16.44-beta-
|
|
124
|
-
"@arcblock/bridge": "^2.13.
|
|
125
|
-
"@arcblock/did-connect": "^2.13.
|
|
126
|
-
"@arcblock/icons": "^2.13.
|
|
127
|
-
"@arcblock/react-hooks": "^2.13.
|
|
128
|
-
"@arcblock/ux": "^2.13.
|
|
129
|
-
"@blocklet/launcher-layout": "^2.13.
|
|
130
|
-
"@blocklet/payment-react": "^1.18.
|
|
131
|
-
"@blocklet/tracker": "1.16.44-beta-
|
|
132
|
-
"@blocklet/ui-react": "^2.13.
|
|
123
|
+
"@abtnode/ux": "1.16.44-beta-20250520-104453-912ed737",
|
|
124
|
+
"@arcblock/bridge": "^2.13.41",
|
|
125
|
+
"@arcblock/did-connect": "^2.13.41",
|
|
126
|
+
"@arcblock/icons": "^2.13.41",
|
|
127
|
+
"@arcblock/react-hooks": "^2.13.41",
|
|
128
|
+
"@arcblock/ux": "^2.13.41",
|
|
129
|
+
"@blocklet/launcher-layout": "^2.13.41",
|
|
130
|
+
"@blocklet/payment-react": "^1.18.45",
|
|
131
|
+
"@blocklet/tracker": "1.16.44-beta-20250520-104453-912ed737",
|
|
132
|
+
"@blocklet/ui-react": "^2.13.41",
|
|
133
133
|
"@blocklet/uploader": "^0.1.91",
|
|
134
134
|
"@emotion/react": "^11.11.4",
|
|
135
135
|
"@emotion/styled": "^11.11.5",
|
|
@@ -206,5 +206,5 @@
|
|
|
206
206
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
207
207
|
"email": "shijun@arcblock.io"
|
|
208
208
|
},
|
|
209
|
-
"gitHead": "
|
|
209
|
+
"gitHead": "b2f2e6a8fe20634cf4d034a26c4c388d687a7f55"
|
|
210
210
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{v as B,j as h}from"./vendor-mui-core-Bh-qMRq3.js";import{l as L,r}from"./vendor-react-DEoibe3W.js";import{A as W,E as A}from"./vendor-utils-rHXShPKm.js";import{a as O,al as T}from"./vendor-ux-did-connect-Ck9lzrbN.js";import{m as w,u as _,s as F}from"./vendor-hooks-Zkb4Ilbj.js";import{A as K,S as $}from"./add-component-core-hWyA0oyr.js";import{n as Q,Q as z}from"./index-BiIZw9KG.js";import"./lottie-web-jYmAQWuC.js";import"./item-F_qGx0RW.js";import"./vendor-arcblock-DPRICUXM.js";import"./index-8eXqqyHQ.js";import"./Launch-KvZQI_SA.js";import"./Done-BUJJNjlP.js";import"./DeleteOutline-BEGOj_wq.js";import"./delete-confirm-cVLum8Er.js";import"./click-to-copy-DmYkL7Ui.js";import"./confirm-DFwkkng7.js";import"./session-B2z_IWIe.js";import"./get-safe-url-BcH2iukm.js";import"./did-address-BI9LYTx-.js";import"./launch-result-message-Eea5FZDm.js";import"./page-header-DpNvpd52.js";import"./config-space-CxEu1ku3.js";import"./spaces-DMMN97uo.js";import"./api-BjteVZFg.js";import"./logo-uploader-CHTXjHOW.js";import"./index-DVQCgvFb.js";import"./index-BBKe69-Z.js";import"./collapse-FsvH0gRe.js";import"./Google-B7PA4qF8.js";import"./cloneDeep-UpFQ2VNg.js";import"./index-DbsXFWms.js";import"./index-Bs1kxR8_.js";import"./index-D3iGbfL9.js";import"./useLocalStorage-BRd3tKN9.js";import"./util-DWicJSOi.js";import"./use-mobile-ZAS6Si4t.js";import"./content-layout--sy9JlYZ.js";import"./connect-to-jqzhxL2-.js";import"./ArrowDropDown-xgs4N3Rf.js";import"./ChevronLeft-D0eko_T8.js";import"./ChevronRight-CQY9Ni7X.js";function Be(){var u;const{t:f}=O(),{blocklet:i}=Q(),{componentDid:s}=L(),g=B(e=>e.breakpoints.down("md")),o=new URL(window.location.href),C=o.searchParams.get("mode")==="dialog",c=o.searchParams.get("resourceType")||"",p=o.searchParams.get("resourceDid")||s,R=o.searchParams.get("store")||"",E=o.searchParams.get("showFromUrl")!=="false",S=o.searchParams.get("showResourcesSwitch")!=="false",y=o.searchParams.get("enableRunBackground")!=="false",P=o.searchParams.get("showCategory")!=="false",n=(u=i==null?void 0:i.meta)==null?void 0:u.did,m=R.split(",").filter(Boolean).map(e=>{try{return new URL(e.startsWith("http")?e:`https://${e}`).origin}catch(t){return console.error(t),null}}).filter(Boolean),[D,U]=r.useState(m.map(e=>({url:e,name:e.replace("https://","")}))),[b,x]=r.useState(null),[j,M]=r.useState("");r.useEffect(()=>{(async()=>{try{const e=await Promise.all(m.map(async t=>{const a=W(t,"/api/store.json"),{data:k}=await A.get(a);return{url:t,name:k.name}}));U(e||[])}catch(e){console.error(e)}})()},[m.join(",")]);const v=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")};r.useEffect(()=>{const e=z();return n&&e.connect(),()=>{n&&e.isConnected()&&e.disconnect()}},[n]),w(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:s},"*")});const l=_(e=>{var t,a;((t=e.data)==null?void 0:t.event)==="resourceDialog.select"&&((a=e.data)==null?void 0:a.componentDid)===s&&(x(e.data.data),M(e.data.storeUrl))});w(()=>{window.addEventListener("message",l)}),F(()=>{window.removeEventListener("message",l)});const d=({inDialog:e=!0}={})=>h.jsx(K,{stores:D,selectedMeta:b,storeUrl:j,resourceType:c,resourceDid:p,mode:"embed",inDialog:e,storageKey:$(`${c}+${p}`),showResourcesSwitch:S,showFromUrl:E,enableRunBackground:y,showCategory:P});return C?h.jsx(T,{className:"resource-dialog",title:f("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:g?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(e,t)=>{t!=="backdropClick"&&v()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:d()}):d({inDialog:!1})}export{Be as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as f,J as C}from"./vendor-utils-rHXShPKm.js";import{j as _}from"./vendor-ux-did-connect-Ck9lzrbN.js";import{r as e}from"./vendor-react-DEoibe3W.js";import{z as j,C as T}from"./index-BiIZw9KG.js";import{u as B}from"./use-mobile-ZAS6Si4t.js";import{e as I,j as o,aa as g,ab as k}from"./vendor-mui-core-Bh-qMRq3.js";import"./vendor-hooks-Zkb4Ilbj.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-DPRICUXM.js";function A(){const{info:h,inService:m}=j(),{did:E}=T(),c=e.useRef(null),s=I(),[w,x]=e.useState(0),p=B(),[i,y]=e.useState(!0),d=e.useRef(null);let r="";m?r=_.WELLKNOWN_SERVICE_PATH_PREFIX:r=h.routing.adminPath;const l=new URLSearchParams;m||l.set("authKey","__sst"),l.set("schemaKey",f(window.location.origin,r,`/api/theme?id=${encodeURIComponent(E)}`));const a=e.useCallback(()=>{if(d.current){const n=window.location.origin,t=C(JSON.parse(JSON.stringify(s)),["palette","typography","shape","direction","breakpoints","mixins","shadows","transitions","zIndex"]);d.current.contentWindow.postMessage({type:"SEND_THEME",payload:t},n)}},[s]);return e.useEffect(()=>{const n=t=>{t.origin===window.location.origin&&(t.data.type==="REQUEST_THEME"&&a(),t.data.type==="THEME_BUILDER_LOADED"&&y(!1))};return window.addEventListener("message",n),()=>{window.removeEventListener("message",n)}},[a]),e.useEffect(()=>{i===!1&&a()},[s,i,a]),e.useEffect(()=>{const n=document.querySelector("#arc__dashboard-main"),t=document.querySelector(".dashboard-content"),u=()=>{if(c.current){const{height:R}=n.getBoundingClientRect(),{top:S}=t.getBoundingClientRect(),{top:L}=c.current.getBoundingClientRect(),b=R-L+S-(p?0:parseInt(s.spacing(3),10))-173;x(b)}};return u(),window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)}},[p,s]),o.jsxs(o.Fragment,{children:[o.jsx(g,{ref:c}),i&&o.jsx(g,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"500px"},children:o.jsx(k,{})}),o.jsx("iframe",{title:"Theme Builder",ref:d,src:`${f(window.location.origin,r,"/hosted/theme-builder/")}?${l.toString()}`,style:{border:0,width:"100%",height:`${w}px`,display:i?"none":"block"}})]})}export{A as default};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import{ah as k,j as s,aa as m,H as T}from"./vendor-mui-core-Bh-qMRq3.js";import{a as Q,K as V,a2 as X,Z as B,j as Z}from"./vendor-ux-did-connect-Ck9lzrbN.js";import{n as q,o as I,ar as G,d as J,e as Y,aj as tt,as as et,P as st}from"./index-BiIZw9KG.js";import{r as u}from"./vendor-react-DEoibe3W.js";import{z as rt,A as _}from"./vendor-utils-rHXShPKm.js";import{f as b}from"./vendor-hooks-Zkb4Ilbj.js";import{L as ot}from"./launch-result-message-Eea5FZDm.js";import{g as nt}from"./get-safe-url-OaLLn0UN.js";import{g as at,a as it}from"./setup-CS2QWFMb.js";import{S as z}from"./button-m03GMAJs.js";import{S as lt}from"./layout-Dkaou_pj.js";import{P as ct,S as ut,p as mt}from"./starting-progress-DeFtXRb_.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-DPRICUXM.js";import"./config-space-CxEu1ku3.js";import"./spaces-DMMN97uo.js";import"./api-BjteVZFg.js";import"./addon-DtaZ0TB3.js";import"./QuestionMarkCircle-DTf-Tya5.js";import"./ServerLogo-CEsILJl5.js";import"./content-layout--sy9JlYZ.js";const dt=k(ot)`
|
|
2
|
-
&& .result-footer {
|
|
3
|
-
height: 120px;
|
|
4
|
-
> div {
|
|
5
|
-
flex-wrap: wrap;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
`,pt=dt;function A({onPrevious:a,launcherSession:x}){const{t:o}=Q(),[M,w]=u.useState(!1),[i,d]=u.useState("starting"),[c,y]=u.useState(),{blocklet:t}=q(),[l,D]=u.useState(""),S=I("fromLauncher"),F=I("launcherUrl"),N=at(F),W=it(x==null?void 0:x.userDid),p=!["starting","running"].includes(i),L=i==="starting",R={stopped:o("blocklet.start"),starting:o("blocklet.starting"),running:o("blocklet.open")},v=()=>{var $;if(S&&(($=t==null?void 0:t.meta)!=null&&$.did)){const O=rt(_(N,"app/u/apps/",t.meta.did,"overview"),W);window.location.href=O;return}const e=new URL(window.location.href).searchParams.get("redirect");if(!l||!X(l)){B.error(o("blocklet.gotoVisitError"));return}let r=new URL(l);e&&(r=new URL(e,l));const E=G.get("login_token");r.host!==window.location.host&&E&&(r.pathname=_(Z.WELLKNOWN_SERVICE_PATH_PREFIX,"redirect-with-login"),r.searchParams.set("setupToken",E)),window.location.href=nt(r.href)},j=async()=>{var n;w(!0),d("starting");try{await J.post("/blocklet/start?fromSetup=1");const{blocklet:{status:e}={}}=await Y.getBlocklet({input:{did:t.meta.did}});w(!1),d(e),y(e==="running"?null:o("setup.complete.notRunning"))}catch(e){const r=((n=e==null?void 0:e.response)==null?void 0:n.data)||e.message;B.error(r),w(!1),d("stopped"),y(r)}};u.useEffect(()=>{d(t.status),["starting","running"].includes(t.status)||j()},[]),u.useEffect(()=>{l||(async()=>{const e=await tt.evaluateURLs(t.site.domainAliases.map(r=>et(r.value,st)),{preferAccessible:!0});e.length>0&&D(e[0].url)})()},[t,l]);const g=b(()=>{var n;return(n=t==null?void 0:t.children)==null?void 0:n.length},[t]),f=b(()=>{var n,e;return((e=(n=t==null?void 0:t.children)==null?void 0:n.filter(r=>r.status==="running"))==null?void 0:e.length)||0},[t]),h=b(()=>!g||!f?0:Math.round(f/g*100),[f,g]),U=localStorage.getItem("blocklet-server-url"),P=L||!l;S&&!P&&(p?j():v());const H=V(mt,p?{ml:3}:{},L?{width:`${h}%`,"&::after":{width:`${h}%`},"&::before":{width:`${h}%`,animation:"shimmer 1.5s infinite cubic-bezier(0.4, 0.0, 0.2, 1)","@keyframes shimmer":{"0%":{width:0},"100%":{width:`${h}%`}}}}:{}),K={starting:o("setup.complete.readyToStart"),running:o("setup.complete.title")},C=s.jsx(ct,{blocklets:t.children??[],status:i,debounce:!1,children:s.jsx(z,{sx:H,onClick:()=>p?j():v(),loading:P,children:s.jsx("span",{style:{position:"relative",zIndex:2},children:i==="starting"&&!c?`(${f}/${g}) ${o("blocklet.starting")}`:R[i]||R.stopped})})});return s.jsx(gt,{children:s.jsx(pt,{variant:c?"error":"success",title:s.jsxs(m,{display:"flex",flexDirection:"column",alignItems:"center",gap:1,children:[s.jsx(m,{fontSize:24,fontWeight:600,children:c?o("setup.complete.failedTitle"):K[i]||""}),i==="starting"?s.jsx(ut,{blocklets:t.children??[]}):null]}),footer:s.jsxs(ft,{children:[p&&s.jsx(z,{variant:"outlined",disabled:M,onClick:()=>a(),children:o("setup.previous")}),S?C:s.jsxs(s.Fragment,{children:[s.jsx(m,{display:"flex",flexDirection:"column",alignItems:"center",gap:1,children:C}),(i==="running"||c)&&!!U&&s.jsx(m,{width:"100%",mt:2,children:s.jsx("a",{href:U,target:"_blank",rel:"noopener noreferrer",className:"back-to-server-link",children:o("setup.complete.backToServer")})}),c&&s.jsx(m,{className:"error-message",fontSize:14,color:"#888",mt:1,children:c})]})]})})})}const gt=k(lt)`
|
|
9
|
-
justify-content: center;
|
|
10
|
-
.icon-success {
|
|
11
|
-
width: 64px;
|
|
12
|
-
height: 64px;
|
|
13
|
-
color: ${a=>a.theme.palette.success.main};
|
|
14
|
-
}
|
|
15
|
-
.back-to-server-link {
|
|
16
|
-
color: ${a=>a.theme.palette.primary.main};
|
|
17
|
-
}
|
|
18
|
-
.error-message {
|
|
19
|
-
color: ${a=>a.theme.palette.error.main};
|
|
20
|
-
height: 15em;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
overflow-y: scroll;
|
|
23
|
-
}
|
|
24
|
-
`;A.propTypes={onPrevious:T.func,launcherSession:T.object};A.defaultProps={onPrevious:()=>{},launcherSession:{}};const ft=k(m)`
|
|
25
|
-
width: 100%;
|
|
26
|
-
margin-top: auto;
|
|
27
|
-
padding-top: 24px;
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
.bottom-button {
|
|
32
|
-
min-width: 200px;
|
|
33
|
-
}
|
|
34
|
-
${a=>a.theme.breakpoints.down("md")} {
|
|
35
|
-
.bottom-button {
|
|
36
|
-
width: 100%;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`;export{A as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{j as r,ab as f,T as h,H as y,ah as x}from"./vendor-mui-core-Bh-qMRq3.js";import"./vendor-react-DEoibe3W.js";import{A as g}from"./vendor-utils-rHXShPKm.js";import{_ as w}from"./useAsync-DnXpD472.js";import{a as C,aP as T,C as i,b0 as j,Z as k,an as P}from"./vendor-ux-did-connect-Ck9lzrbN.js";import{u as v,s as S}from"./index-BiIZw9KG.js";import"./vendor-hooks-Zkb4Ilbj.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-DPRICUXM.js";function U({children:p}){const{t:n,locale:u}=C(),{api:c,session:o}=v(),{encryptKey:l,decrypt:m}=T(),s=w(async()=>{var t;const e=new URL(window.location.href);e.pathname=g(((t=window==null?void 0:window.env)==null?void 0:t.apiPrefix)??"/","/api/did/setup/token"),e.searchParams.set("_ek_",l);const{data:a}=await c.get(e.href);return a}),d=async e=>{const a=Array.isArray(e)?e.find(t=>t.sessionToken):e;S(m(a.sessionToken));try{await o.refresh()}catch(t){k.error(t.message)}};return!s.value||s.loading||o.loading?r.jsx(i,{relative:"parent",children:r.jsx(f,{})}):o.user?p:s.error?r.jsx(i,{relative:"parent",children:r.jsx(h,{children:s.error.message})}):r.jsx(b,{popup:!0,open:!0,hideCloseButton:!0,action:"pre-setup",checkFn:c.get,checkTimeout:10*60*1e3,webWalletUrl:j(),onSuccess:d,locale:u,messages:{title:n("setup.connect.title"),scan:n("setup.connect.scan"),confirm:n("setup.connect.confirm"),success:n("setup.connect.success")},extraParams:{setup:!0,nw:s.value.url}})}U.propTypes={children:y.any.isRequired};const b=x(P)`
|
|
2
|
-
.action-info-desc {
|
|
3
|
-
padding: 0 72px;
|
|
4
|
-
}
|
|
5
|
-
`;export{U as default};
|