(()=>{const e=self.location.origin+self.location.pathname.replace("sw.js",""),t=[{'revision':'1310332a42aec1f3bfc7f5015d46cd2f','url':'index.html'},{'revision':null,'url':'js/285.a45adf5328351748d7e1.chunk.js'},{'revision':null,'url':'js/317.323b3522f672b469170c.chunk.js'},{'revision':null,'url':'js/424.7e028df0d4cadf44737a.chunk.js'},{'revision':null,'url':'js/668.16247e15b502d32a00a5.chunk.js'},{'revision':null,'url':'js/69.ab27a1f576ee563ff291.chunk.js'},{'revision':null,'url':'js/702.42c8e6f0c2eae2a4cd6b.chunk.js'},{'revision':null,'url':'js/760.165f70e48f9aba51587f.chunk.js'},{'revision':null,'url':'js/favorite-hubs.e93c5e26d8bc6143e690.chunk.js'},{'revision':null,'url':'js/filelists.7b8b27538a2d5717824f.chunk.js'},{'revision':null,'url':'js/files.e3a4c6db6ed09b40e8b5.chunk.js'},{'revision':null,'url':'js/home.122860e8afd750a607d3.chunk.js'},{'revision':null,'url':'js/hubs.8f320d3c3e7829793b47.chunk.js'},{'revision':null,'url':'js/locales/ca.628048a82903a62ac1b6.chunk.js'},{'revision':null,'url':'js/locales/da.2f7e7fcec25240839ce2.chunk.js'},{'revision':null,'url':'js/locales/de.db46fe17ee588025f06d.chunk.js'},{'revision':null,'url':'js/locales/el.5d49264c0ef9fe964ed4.chunk.js'},{'revision':null,'url':'js/locales/en.0e119603a1307cf48235.chunk.js'},{'revision':null,'url':'js/locales/es.27d991c441498aba4e8d.chunk.js'},{'revision':null,'url':'js/locales/eu.6870aecc90ac70d691ef.chunk.js'},{'revision':null,'url':'js/locales/fi.7b3cb149331a894bf3e1.chunk.js'},{'revision':null,'url':'js/locales/fr.8879e00df3955253a459.chunk.js'},{'revision':null,'url':'js/locales/hu.fa050b0808e5479e991e.chunk.js'},{'revision':null,'url':'js/locales/it.0ff3fb29b2606b52619f.chunk.js'},{'revision':null,'url':'js/locales/nl.03a277c91e607129bfde.chunk.js'},{'revision':null,'url':'js/locales/no.3c7fd5f4bb74176dbad1.chunk.js'},{'revision':null,'url':'js/locales/pl.a51a7402eee4a698e869.chunk.js'},{'revision':null,'url':'js/locales/pt-br.806cba7ad4d978892114.chunk.js'},{'revision':null,'url':'js/locales/pt.15b6ee2b203a6128a894.chunk.js'},{'revision':null,'url':'js/locales/ro.2f6648bb3d32f0e16828.chunk.js'},{'revision':null,'url':'js/locales/ru.2264f60e654b422a2479.chunk.js'},{'revision':null,'url':'js/locales/sv.7ce9e51830d8345740d5.chunk.js'},{'revision':null,'url':'js/locales/tr.7a40b7c911e3e90322d5.chunk.js'},{'revision':null,'url':'js/locales/uk_UA.6e254af773212b1564bd.chunk.js'},{'revision':null,'url':'js/locales/zh_CN.583f8846476805155004.chunk.js'},{'revision':null,'url':'js/main.10d44585920278e636b4.entry.js'},{'revision':null,'url':'js/messages.b8ddfaeb91c0d087def5.chunk.js'},{'revision':null,'url':'js/queue.94495a71e152a2868f57.chunk.js'},{'revision':null,'url':'js/search.5f1482d8b306934b844b.chunk.js'},{'revision':null,'url':'js/settings.b476e6c0892bad239c79.chunk.js'},{'revision':null,'url':'js/share.643982cd75ae7172cb4d.chunk.js'},{'revision':null,'url':'js/system-log.f51ba30a8152d38c1742.chunk.js'},{'revision':null,'url':'js/transfers.e52e52c325e7f3820617.chunk.js'}].map((function(t){return e+t.url})),n=!0,l="resource-store";function s(e,t){return caches.match(new URL(t)).then((function(t){return t?(n&&console.log("[SW] Return cached",e.request.url),t):(n&&console.log("[SW] Fetch",e.request.url),fetch(e.request))}))}self.addEventListener("install",(e=>{console.log("[SW] Worker installed"),e.waitUntil(caches.open(l).then((e=>e.addAll([...t]))).then((()=>{n&&console.log("[SW] Assets: ",t)})).catch((e=>{throw console.error(e),e})))})),self.addEventListener("activate",(e=>{n&&console.log("[SW] Activate event"),e.waitUntil(caches.keys().then((e=>Promise.all(e.map((e=>caches.open(e).then((e=>(e=>e.keys().then((l=>Promise.all(l.map((l=>-1!==t.indexOf(l.url)?(n&&console.log(`[SW] Cached asset ${l.url} still exists, skip delete`),null):e.delete(l).then((e=>{console.log(`[SW] Cached asset ${l.url} deleted`,e)}))))))))(e)))))))))})),self.addEventListener("fetch",(t=>{if("GET"===t.request.method){if("navigate"===t.request.mode||t.request.url.startsWith(e)&&-1===t.request.url.indexOf(".",e.length)&&!t.request.url.replace(e,"").match(/^(view)\//)){console.log("[SW] Navigate action, fetch index",t.request.url);const n=e+"index.html";return t.respondWith(new Promise((e=>{fetch(n).then((s=>{caches.open(l).then((l=>{l.put(new Request(n),s.clone()).then((()=>{console.log("[SW] Index file cached",t.request.url),e(s)}))}))})).catch((l=>{console.log("[SW] Navigate action, failed to fetch index",t.request.url,l),e(s(t,n))}))})))}return t.respondWith(s(t,t.request.url))}}))})();
//# sourceMappingURL=sw.js.map