This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
forked from d3fend/d3fend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice-worker.js
1 lines (1 loc) · 4.26 KB
/
service-worker.js
1
!function(e){var t={};function c(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,c),a.l=!0,a.exports}c.m=e,c.c=t,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)c.d(n,a,function(t){return e[t]}.bind(null,a));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="",c(c.s=0)}([function(e,t,c){"use strict";c.r(t);const n=["/client/68e80f961dc8a044c6f4/about.5.js","/client/68e80f961dc8a044c6f4/analyses.6.js","/client/68e80f961dc8a044c6f4/analyses_$slug.7.js","/client/68e80f961dc8a044c6f4/analyses_$slug~offensive$45technique_attack_$technique~technique_$technique.3.js","/client/68e80f961dc8a044c6f4/analyses_BlockTree.8.js","/client/68e80f961dc8a044c6f4/contact.9.js","/client/68e80f961dc8a044c6f4/contribute.10.js","/client/68e80f961dc8a044c6f4/dao.11.js","/client/68e80f961dc8a044c6f4/dao_artifact.12.js","/client/68e80f961dc8a044c6f4/dao_artifact_$artifact.13.js","/client/68e80f961dc8a044c6f4/faq.14.js","/client/68e80f961dc8a044c6f4/group_$group.15.js","/client/68e80f961dc8a044c6f4/group__layout.16.js","/client/68e80f961dc8a044c6f4/group__layout~index~offensive$45technique_attack__layout~technique__layout.1.js","/client/68e80f961dc8a044c6f4/index.17.js","/client/68e80f961dc8a044c6f4/main.js","/client/68e80f961dc8a044c6f4/offensive$45technique_attack_$technique.19.js","/client/68e80f961dc8a044c6f4/offensive$45technique_attack_$technique~technique_$technique.4.js","/client/68e80f961dc8a044c6f4/offensive$45technique_attack__layout.20.js","/client/68e80f961dc8a044c6f4/ontology_describe_$slug.21.js","/client/68e80f961dc8a044c6f4/privacy.22.js","/client/68e80f961dc8a044c6f4/progress.23.js","/client/68e80f961dc8a044c6f4/progress__layout.24.js","/client/68e80f961dc8a044c6f4/resources.25.js","/client/68e80f961dc8a044c6f4/search.26.js","/client/68e80f961dc8a044c6f4/technique_$technique.27.js","/client/68e80f961dc8a044c6f4/technique__layout.28.js","/client/68e80f961dc8a044c6f4/tou.29.js","/client/68e80f961dc8a044c6f4/vendors~analyses_$slug~dao~dao_artifact_$artifact~faq~group_$group~group__layout~index~offensive$45t~7b938f3c.0.js","/client/68e80f961dc8a044c6f4/vendors~dao~dao_artifact_$artifact~offensive$45technique_attack_$technique~technique_$technique.2.js","/client/68e80f961dc8a044c6f4/vendors~index.30.js"].concat(["/service-worker-index.html","/.DS_Store","/favicon.ico","/font/.DS_Store","/font/azonix/.DS_Store","/font/azonix/azonix-d3fend.otf","/global-d3fend.css","/global.css","/img/attack-dao-defend.png","/img/attack-defend.png","/img/csd.png","/img/csv.png","/img/graph.png","/img/graph1.png","/img/json.png","/img/mitre.png","/img/nsa.png","/img/owl.png","/img/paper.png","/img/ttl.png","/ontologies/.git","/ontologies/README.md","/ontologies/d3fend.csv","/ontologies/d3fend.json","/ontologies/d3fend.owl","/ontologies/d3fend.ttl","/ontologies/d3fend.xml","/resources/D3FEND.pdf"]),a=new Set(n);self.addEventListener("install",e=>{e.waitUntil(caches.open("cache1624386642252").then(e=>e.addAll(n)).then(()=>{self.skipWaiting()}))}),self.addEventListener("activate",e=>{e.waitUntil(caches.keys().then(async e=>{for(const t of e)"cache1624386642252"!==t&&await caches.delete(t);self.clients.claim()}))}),self.addEventListener("fetch",e=>{if("GET"!==e.request.method||e.request.headers.has("range"))return;const t=new URL(e.request.url),c=t.protocol.startsWith("http"),n=t.hostname===self.location.hostname&&t.port!==self.location.port,i=t.host===self.location.host&&a.has(t.pathname),o="only-if-cached"===e.request.cache&&!i;!c||n||o||e.respondWith((async()=>i&&await caches.match(e.request)||async function(e){const t=await caches.open("offline1624386642252");try{const c=await fetch(e);return t.put(e,c.clone()),c}catch(c){const n=await t.match(e);if(n)return n;throw c}}(e.request))())})}]);