@genesislcap/foundation-shell 14.218.1-alpha-9b0b135.0 → 14.218.1
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/sw.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var e={733:()=>{try{self["workbox:cacheable-response:6.5.3"]&&_()}catch(e){}},823:(e,t,s)=>{s.d(t,{c:()=>n});s(114);class n{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}},552:(e,t,s)=>{s.d(t,{R:()=>a});s(114);const n=(e,...t)=>{let s=e;return t.length>0&&(s+=` :: ${JSON.stringify(t)}`),s};class a extends Error{constructor(e,t){super(n(e,t)),this.name=e,this.details=t}}},322:(e,t,s)=>{s.d(t,{v:()=>n});s(552),s(114);const n=null},771:(e,t,s)=>{s.d(t,{e:()=>a});s(114);function n(e,t){const s=new URL(e);for(const e of t)s.searchParams.delete(e);return s.href}async function a(e,t,s,a){const r=n(t.url,s);if(t.url===r)return e.match(t,a);const i=Object.assign(Object.assign({},a),{ignoreSearch:!0}),o=await e.keys(t,i);for(const t of o){if(r===n(t.url,s))return e.match(t,a)}}},354:(e,t,s)=>{s.d(t,{n:()=>r});s(114);const n={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},a=e=>[n.prefix,e,n.suffix].filter((e=>e&&e.length>0)).join("-"),r={updateDetails:e=>{(e=>{for(const t of Object.keys(n))e(t)})((t=>{"string"==typeof e[t]&&(n[t]=e[t])}))},getGoogleAnalyticsName:e=>e||a(n.googleAnalytics),getPrecacheName:e=>e||a(n.precache),getPrefix:()=>n.prefix,getRuntimeName:e=>e||a(n.runtime),getSuffix:()=>n.suffix}},204:(e,t,s)=>{s.d(t,{V:()=>a});s(114);let n;function a(){if(void 0===n){const e=new Response("");if("body"in e)try{new Response(e.body),n=!0}catch(e){n=!1}n=!1}return n}},555:(e,t,s)=>{s.d(t,{S:()=>n});s(114);function n(e){e.then((()=>{}))}},715:(e,t,s)=>{s.d(t,{w:()=>a});s(468);var n=s(922);s(114);async function a(){for(const e of n.j)await e()}},312:(e,t,s)=>{s.d(t,{R:()=>n});s(114);const n=e=>new URL(String(e),location.href).href.replace(new RegExp(`^${location.origin}`),"")},468:(e,t,s)=>{s.d(t,{v:()=>n});s(114);const n=null},37:(e,t,s)=>{s.d(t,{w:()=>n});s(114);function n(e){return new Promise((t=>setTimeout(t,e)))}},209:(e,t,s)=>{s.d(t,{a:()=>n});s(114);function n(e,t){const s=t();return e.waitUntil(s),s}},114:()=>{try{self["workbox:core:6.5.3"]&&_()}catch(e){}},707:(e,t,s)=>{s.d(t,{t:()=>r});var n=s(204),a=s(552);s(114);async function r(e,t){let s=null;if(e.url){s=new URL(e.url).origin}if(s!==self.location.origin)throw new a.R("cross-origin-copy-response",{origin:s});const r=e.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},o=t?t(i):i,c=(0,n.V)()?r.body:await r.blob();return new Response(c,o)}},922:(e,t,s)=>{s.d(t,{j:()=>n});s(114);const n=new Set},905:(e,t,s)=>{s.d(t,{$:()=>a});s(468),s(322);var n=s(922);s(114);function a(e){n.j.add(e)}},876:()=>{try{self["workbox:expiration:6.5.3"]&&_()}catch(e){}},665:()=>{try{self["workbox:precaching:6.5.3"]&&_()}catch(e){}},334:(e,t,s)=>{s.d(t,{b:()=>a});s(322),s(468);var n=s(737);s(205);class a extends n.q{constructor(e,t,s){super((({url:t})=>{const s=e.exec(t.href);if(s&&(t.origin===location.origin||0===s.index))return s.slice(1)}),t,s)}}},737:(e,t,s)=>{s.d(t,{q:()=>r});s(322);var n=s(683),a=s(161);s(205);class r{constructor(e,t,s=n.l){this.handler=(0,a.q)(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=(0,a.q)(e)}}},507:(e,t,s)=>{s.d(t,{I:()=>i});s(322),s(312);var n=s(683),a=(s(468),s(161)),r=s(552);s(205);class i{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const s=Promise.all(t.urlsToCache.map((t=>{"string"==typeof t&&(t=[t]);const s=new Request(...t);return this.handleRequest({request:s,event:e})})));e.waitUntil(s),e.ports&&e.ports[0]&&s.then((()=>e.ports[0].postMessage(!0)))}}))}handleRequest({request:e,event:t}){const s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return void 0;const n=s.origin===location.origin,{params:a,route:r}=this.findMatchingRoute({event:t,request:e,sameOrigin:n,url:s});let i=r&&r.handler;const o=e.method;if(!i&&this._defaultHandlerMap.has(o)&&(i=this._defaultHandlerMap.get(o)),!i)return void 0;let c;try{c=i.handle({url:s,request:e,event:t,params:a})}catch(e){c=Promise.reject(e)}const h=r&&r.catchHandler;return c instanceof Promise&&(this._catchHandler||h)&&(c=c.catch((async n=>{if(h){0;try{return await h.handle({url:s,request:e,event:t,params:a})}catch(e){e instanceof Error&&(n=e)}}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw n}))),c}findMatchingRoute({url:e,sameOrigin:t,request:s,event:n}){const a=this._routes.get(s.method)||[];for(const r of a){let a;const i=r.match({url:e,sameOrigin:t,request:s,event:n});if(i)return a=i,(Array.isArray(a)&&0===a.length||i.constructor===Object&&0===Object.keys(i).length||"boolean"==typeof i)&&(a=void 0),{route:r,params:a}}return{}}setDefaultHandler(e,t=n.l){this._defaultHandlerMap.set(t,(0,a.q)(e))}setCatchHandler(e){this._catchHandler=(0,a.q)(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.R("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new r.R("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}},205:()=>{try{self["workbox:routing:6.5.3"]&&_()}catch(e){}},502:(e,t,s)=>{s.d(t,{R:()=>o});s(468);var n=s(552),a=s(737),r=s(334),i=s(947);s(205);function o(e,t,s){let o;if("string"==typeof e){const n=new URL(e,location.href);0;const r=({url:e})=>e.href===n.href;o=new a.q(r,t,s)}else if(e instanceof RegExp)o=new r.b(e,t,s);else if("function"==typeof e)o=new a.q(e,t,s);else{if(!(e instanceof a.q))throw new n.R("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});o=e}return(0,i.G)().registerRoute(o),o}},683:(e,t,s)=>{s.d(t,{l:()=>n});s(205);const n="GET"},947:(e,t,s)=>{s.d(t,{G:()=>r});var n=s(507);s(205);let a;const r=()=>(a||(a=new n.I,a.addFetchListener(),a.addCacheListener()),a)},161:(e,t,s)=>{s.d(t,{q:()=>n});s(322),s(205);const n=e=>e&&"object"==typeof e?e:{handle:e}},662:(e,t,s)=>{s.d(t,{q:()=>i});var n=s(354),a=s(552),r=(s(468),s(312),s(344));s(484);class i{constructor(e={}){this.cacheName=n.n.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,s="string"==typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new r.s(this,{event:t,request:s,params:n}),i=this._getResponse(a,s,t);return[i,this._awaitComplete(i,a,s,t)]}async _getResponse(e,t,s){let n;await e.runCallbacks("handlerWillStart",{event:s,request:t});try{if(n=await this._handle(t,e),!n||"error"===n.type)throw new a.R("no-response",{url:t.url})}catch(a){if(a instanceof Error)for(const r of e.iterateCallbacks("handlerDidError"))if(n=await r({error:a,event:s,request:t}),n)break;if(!n)throw a}for(const a of e.iterateCallbacks("handlerWillRespond"))n=await a({event:s,request:t,response:n});return n}async _awaitComplete(e,t,s,n){let a,r;try{a=await e}catch(r){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:s,response:a}),await t.doneWaiting()}catch(e){e instanceof Error&&(r=e)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}},344:(e,t,s)=>{s.d(t,{s:()=>l});s(322);var n=s(771),a=s(823),r=s(715),i=s(312),o=(s(468),s(37)),c=s(552);s(484);function h(e){return"string"==typeof e?new Request(e):e}class l{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new a.c,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const e of this._plugins)this._pluginStateMap.set(e,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let s=h(e);if("navigate"===s.mode&&t instanceof FetchEvent&&t.preloadResponse){const e=await t.preloadResponse;if(e)return e}const n=this.hasCallback("fetchDidFail")?s.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))s=await e({request:s.clone(),event:t})}catch(e){if(e instanceof Error)throw new c.R("plugin-error-request-will-fetch",{thrownErrorMessage:e.message})}const a=s.clone();try{let e;e=await fetch(s,"navigate"===s.mode?void 0:this._strategy.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))e=await s({event:t,request:a,response:e});return e}catch(e){throw n&&await this.runCallbacks("fetchDidFail",{error:e,event:t,originalRequest:n.clone(),request:a.clone()}),e}}async fetchAndCachePut(e){const t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}async cacheMatch(e){const t=h(e);let s;const{cacheName:n,matchOptions:a}=this._strategy,r=await this.getCacheKey(t,"read"),i=Object.assign(Object.assign({},a),{cacheName:n});s=await caches.match(r,i);for(const e of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await e({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(e,t){const s=h(e);await(0,o.w)(0);const a=await this.getCacheKey(s,"write");if(!t)throw new c.R("cache-put-with-no-response",{url:(0,i.R)(a.url)});const l=await this._ensureResponseSafeToCache(t);if(!l)return!1;const{cacheName:u,matchOptions:d}=this._strategy,f=await self.caches.open(u),p=this.hasCallback("cacheDidUpdate"),g=p?await(0,n.e)(f,a.clone(),["__WB_REVISION__"],d):null;try{await f.put(a,p?l.clone():l)}catch(e){if(e instanceof Error)throw"QuotaExceededError"===e.name&&await(0,r.w)(),e}for(const e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:u,oldResponse:g,newResponse:l.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const s=`${e.url} | ${t}`;if(!this._cacheKeys[s]){let n=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))n=h(await e({mode:t,request:n,event:this.event,params:this.params}));this._cacheKeys[s]=n}return this._cacheKeys[s]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"==typeof t[e]){const s=this._pluginStateMap.get(t),n=n=>{const a=Object.assign(Object.assign({},n),{state:s});return t[e](a)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(const e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}},484:()=>{try{self["workbox:strategies:6.5.3"]&&_()}catch(e){}},519:(e,t,s)=>{s.r(t),s.d(t,{CacheableResponse:()=>n,CacheableResponsePlugin:()=>a});s(322),s(552),s(312),s(468),s(733);class n{constructor(e={}){this._statuses=e.statuses,this._headers=e.headers}isResponseCacheable(e){let t=!0;return this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t&&(t=Object.keys(this._headers).some((t=>e.headers.get(t)===this._headers[t]))),t}}class a{constructor(e){this.cacheWillUpdate=async({response:e})=>this._cacheableResponse.isResponseCacheable(e)?e:null,this._cacheableResponse=new n(e)}}},521:(e,t,s)=>{s.r(t),s.d(t,{_private:()=>n,cacheNames:()=>R,clientsClaim:()=>x,copyResponse:()=>b.t,registerQuotaErrorCallback:()=>a.$,setCacheNameDetails:()=>C,skipWaiting:()=>k});var n={};s.r(n),s.d(n,{Deferred:()=>d.c,WorkboxError:()=>v.R,assert:()=>r.v,cacheMatchIgnoreParams:()=>o.e,cacheNames:()=>i.n,canConstructReadableStream:()=>h,canConstructResponseFromBodyStream:()=>l.V,dontWaitFor:()=>u.S,executeQuotaErrorCallbacks:()=>f.w,getFriendlyURL:()=>p.R,logger:()=>g.v,resultingClientExists:()=>y,timeout:()=>w.w,waitUntil:()=>_.a});var a=s(905),r=s(322),i=s(354),o=s(771);s(114);let c;function h(){if(void 0===c)try{new ReadableStream({start(){}}),c=!0}catch(e){c=!1}return c}var l=s(204),u=s(555),d=s(823),f=s(715),p=s(312),g=s(468),w=s(37);const m=2e3;async function y(e){if(!e)return;let t=await self.clients.matchAll({type:"window"});const s=new Set(t.map((e=>e.id)));let n;const a=performance.now();for(;performance.now()-a<m&&(t=await self.clients.matchAll({type:"window"}),n=t.find((t=>e?t.id===e:!s.has(t.id))),!n);)await(0,w.w)(100);return n}var _=s(209),v=s(552);const R={get googleAnalytics(){return i.n.getGoogleAnalyticsName()},get precache(){return i.n.getPrecacheName()},get prefix(){return i.n.getPrefix()},get runtime(){return i.n.getRuntimeName()},get suffix(){return i.n.getSuffix()}};var b=s(707);function x(){self.addEventListener("activate",(()=>self.clients.claim()))}function C(e){i.n.updateDetails(e)}function k(){self.skipWaiting()}},692:(e,t,s)=>{s.r(t),s.d(t,{CacheExpiration:()=>k,ExpirationPlugin:()=>L});s(322);var n=s(555),a=(s(468),s(552));const r=(e,t)=>t.some((t=>e instanceof t));let i,o;const c=new WeakMap,h=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap;let f={get(e,t,s){if(e instanceof IDBTransaction){if("done"===t)return h.get(e);if("objectStoreNames"===t)return e.objectStoreNames||l.get(e);if("store"===t)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return w(e[t])},set:(e,t,s)=>(e[t]=s,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function p(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(o||(o=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(m(this),t),w(c.get(this))}:function(...t){return w(e.apply(m(this),t))}:function(t,...s){const n=e.call(m(this),t,...s);return l.set(n,t.sort?t.sort():[t]),w(n)}}function g(e){return"function"==typeof e?p(e):(e instanceof IDBTransaction&&function(e){if(h.has(e))return;const t=new Promise(((t,s)=>{const n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",r),e.removeEventListener("abort",r)},a=()=>{t(),n()},r=()=>{s(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",r),e.addEventListener("abort",r)}));h.set(e,t)}(e),r(e,i||(i=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,f):e)}function w(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,s)=>{const n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",r)},a=()=>{t(w(e.result)),n()},r=()=>{s(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",r)}));return t.then((t=>{t instanceof IDBCursor&&c.set(t,e)})).catch((()=>{})),d.set(t,e),t}(e);if(u.has(e))return u.get(e);const t=g(e);return t!==e&&(u.set(e,t),d.set(t,e)),t}const m=e=>d.get(e);const y=["get","getKey","getAll","getAllKeys","count"],_=["put","add","delete","clear"],v=new Map;function R(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(v.get(t))return v.get(t);const s=t.replace(/FromIndex$/,""),n=t!==s,a=_.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!y.includes(s))return;const r=async function(e,...t){const r=this.transaction(e,a?"readwrite":"readonly");let i=r.store;return n&&(i=i.index(t.shift())),(await Promise.all([i[s](...t),a&&r.done]))[0]};return v.set(t,r),r}f=(e=>({...e,get:(t,s,n)=>R(t,s)||e.get(t,s,n),has:(t,s)=>!!R(t,s)||e.has(t,s)}))(f);s(876);const b="cache-entries",x=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class C{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(b,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e,{blocked:t}={}){const s=indexedDB.deleteDatabase(e);t&&s.addEventListener("blocked",(e=>t(e.oldVersion,e))),w(s).then((()=>{}))}(this._cacheName)}async setTimestamp(e,t){const s={url:e=x(e),timestamp:t,cacheName:this._cacheName,id:this._getId(e)},n=(await this.getDb()).transaction(b,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(e){const t=await this.getDb(),s=await t.get(b,this._getId(e));return null==s?void 0:s.timestamp}async expireEntries(e,t){const s=await this.getDb();let n=await s.transaction(b).store.index("timestamp").openCursor(null,"prev");const a=[];let r=0;for(;n;){const s=n.value;s.cacheName===this._cacheName&&(e&&s.timestamp<e||t&&r>=t?a.push(n.value):r++),n=await n.continue()}const i=[];for(const e of a)await s.delete(b,e.id),i.push(e.url);return i}_getId(e){return this._cacheName+"|"+x(e)}async getDb(){return this._db||(this._db=await function(e,t,{blocked:s,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(e,t),o=w(i);return n&&i.addEventListener("upgradeneeded",(e=>{n(w(i.result),e.oldVersion,e.newVersion,w(i.transaction),e)})),s&&i.addEventListener("blocked",(e=>s(e.oldVersion,e.newVersion,e))),o.then((e=>{r&&e.addEventListener("close",(()=>r())),a&&e.addEventListener("versionchange",(e=>a(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),o}("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class k{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 C(e)}async expireEntries(){if(this._isRunning)return void(this._rerunRequested=!0);this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),s=await self.caches.open(this._cacheName);for(const e of t)await s.delete(e,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,(0,n.S)(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),s=Date.now()-1e3*this._maxAgeSeconds;return void 0===t||t<s}return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}var q=s(354),E=(s(312),s(905));class L{constructor(e={}){this.cachedResponseWillBeUsed=async({event:e,request:t,cacheName:s,cachedResponse:a})=>{if(!a)return null;const r=this._isResponseDateFresh(a),i=this._getCacheExpiration(s);(0,n.S)(i.expireEntries());const o=i.updateTimestamp(t.url);if(e)try{e.waitUntil(o)}catch(e){0}return r?a:null},this.cacheDidUpdate=async({cacheName:e,request:t})=>{const s=this._getCacheExpiration(e);await s.updateTimestamp(t.url),await s.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&(0,E.$)((()=>this.deleteCacheAndMetadata()))}_getCacheExpiration(e){if(e===q.n.getRuntimeName())throw new a.R("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new k(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(null===t)return!0;return t>=Date.now()-1e3*this._maxAgeSeconds}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),s=new Date(t).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}},355:(e,t,s)=>{s.r(t),s.d(t,{PrecacheController:()=>d,PrecacheFallbackPlugin:()=>E,PrecacheRoute:()=>y,PrecacheStrategy:()=>u,addPlugins:()=>g,addRoute:()=>_,cleanupOutdatedCaches:()=>R,createHandlerBoundToURL:()=>b,getCacheKeyForURL:()=>x,matchPrecache:()=>C,precache:()=>k,precacheAndRoute:()=>q});s(322);var n=s(354),a=(s(468),s(552)),r=s(209);s(665);function i(e){if(!e)throw new a.R("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:t,url:s}=e;if(!s)throw new a.R("add-to-cache-list-unexpected-type",{entry:e});if(!t){const e=new URL(s,location.href);return{cacheKey:e.href,url:e.href}}const n=new URL(s,location.href),r=new URL(s,location.href);return n.searchParams.set("__WB_REVISION__",t),{cacheKey:n.href,url:r.href}}class o{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:s})=>{if("install"===e.type&&t&&t.originalRequest&&t.originalRequest instanceof Request){const e=t.originalRequest.url;s?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return s}}}class c{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{const s=(null==t?void 0:t.cacheKey)||this._precacheController.getCacheKeyForURL(e.url);return s?new Request(s,{headers:e.headers}):e},this._precacheController=e}}var h=s(707),l=(s(312),s(662));class u extends l.q{constructor(e={}){e.cacheName=n.n.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(u.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let s;const n=t.params||{};if(!this._fallbackToNetwork)throw new a.R("missing-precache-entry",{cacheName:this.cacheName,url:e.url});{0;const a=n.integrity,r=e.integrity,i=!r||r===a;if(s=await t.fetch(new Request(e,{integrity:"no-cors"!==e.mode?r||a:void 0})),a&&i&&"no-cors"!==e.mode){this._useDefaultCacheabilityPluginIfNeeded();await t.cachePut(e,s.clone());0}}return s}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const s=await t.fetch(e);if(!await t.cachePut(e,s.clone()))throw new a.R("bad-precaching-response",{url:e.url,status:s.status});return s}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[s,n]of this.plugins.entries())n!==u.copyRedirectedCacheableResponsesPlugin&&(n===u.defaultPrecacheCacheabilityPlugin&&(e=s),n.cacheWillUpdate&&t++);0===t?this.plugins.push(u.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}u.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:e})=>!e||e.status>=400?null:e},u.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:e})=>e.redirected?await(0,h.t)(e):e};class d{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new u({cacheName:n.n.getPrecacheName(e),plugins:[...t,new c({precacheController:this})],fallbackToNetwork:s}),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 s of e){"string"==typeof s?t.push(s):s&&void 0===s.revision&&t.push(s.url);const{cacheKey:e,url:n}=i(s),r="string"!=typeof s&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(n)&&this._urlsToCacheKeys.get(n)!==e)throw new a.R("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(n),secondEntry:e});if("string"!=typeof s&&s.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==s.integrity)throw new a.R("add-to-cache-list-conflicting-integrities",{url:n});this._cacheKeysToIntegrities.set(e,s.integrity)}if(this._urlsToCacheKeys.set(n,e),this._urlsToCacheModes.set(n,r),t.length>0){const e=`Workbox is precaching URLs without revision info: ${t.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return(0,r.a)(e,(async()=>{const t=new o;this.strategy.plugins.push(t);for(const[t,s]of this._urlsToCacheKeys){const n=this._cacheKeysToIntegrities.get(s),a=this._urlsToCacheModes.get(t),r=new Request(t,{integrity:n,cache:a,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(e){return(0,r.a)(e,(async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),s=new Set(this._urlsToCacheKeys.values()),n=[];for(const a of t)s.has(a.url)||(await e.delete(a),n.push(a.url));return{deletedURLs:n}}))}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,s=this.getCacheKeyForURL(t);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new a.R("non-precached-url",{url:e});return s=>(s.request=new Request(e),s.params=Object.assign({cacheKey:t},s.params),this.strategy.handle(s))}}let f;const p=()=>(f||(f=new d),f);function g(e){p().strategy.plugins.push(...e)}var w=s(502),m=s(737);class y extends m.q{constructor(e,t){super((({request:s})=>{const n=e.getURLsToCacheKeys();for(const a of function*(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e,t=[]){for(const s of[...e.searchParams.keys()])t.some((e=>e.test(s)))&&e.searchParams.delete(s);return e}(r,t);if(yield i.href,s&&i.pathname.endsWith("/")){const e=new URL(i.href);e.pathname+=s,yield e.href}if(n){const e=new URL(i.href);e.pathname+=".html",yield e.href}if(a){const e=a({url:r});for(const t of e)yield t.href}}(s.url,t)){const t=n.get(a);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}}),e.strategy)}}function _(e){const t=p(),s=new y(t,e);(0,w.R)(s)}const v=async(e,t="-precache-")=>{const s=(await self.caches.keys()).filter((s=>s.includes(t)&&s.includes(self.registration.scope)&&s!==e));return await Promise.all(s.map((e=>self.caches.delete(e)))),s};function R(){self.addEventListener("activate",(e=>{const t=n.n.getPrecacheName();e.waitUntil(v(t).then((e=>{0})))}))}function b(e){return p().createHandlerBoundToURL(e)}function x(e){return p().getCacheKeyForURL(e)}function C(e){return p().matchPrecache(e)}function k(e){p().precache(e)}function q(e,t){k(e),_(t)}class E{constructor({fallbackURL:e,precacheController:t}){this.handlerDidError=()=>this._precacheController.matchPrecache(this._fallbackURL),this._fallbackURL=e,this._precacheController=t||p()}}},175:(e,t,s)=>{s.r(t),s.d(t,{NavigationRoute:()=>a,RegExpRoute:()=>r.b,Route:()=>n.q,Router:()=>o.I,registerRoute:()=>i.R,setCatchHandler:()=>h,setDefaultHandler:()=>l});s(322),s(468);var n=s(737);s(205);class a extends n.q{constructor(e,{allowlist:t=[/./],denylist:s=[]}={}){super((e=>this._match(e)),e),this._allowlist=t,this._denylist=s}_match({url:e,request:t}){if(t&&"navigate"!==t.mode)return!1;const s=e.pathname+e.search;for(const e of this._denylist)if(e.test(s))return!1;return!!this._allowlist.some((e=>e.test(s)))}}var r=s(334),i=s(502),o=s(507),c=s(947);function h(e){(0,c.G)().setCatchHandler(e)}function l(e){(0,c.G)().setDefaultHandler(e)}},27:(e,t,s)=>{s.r(t),s.d(t,{CacheFirst:()=>r,CacheOnly:()=>i,NetworkFirst:()=>c,NetworkOnly:()=>l,StaleWhileRevalidate:()=>u,Strategy:()=>a.q,StrategyHandler:()=>d.s});s(322),s(468);var n=s(552),a=s(662);s(312),s(484);class r extends a.q{async _handle(e,t){let s,a=await t.cacheMatch(e);if(a)0;else{0;try{a=await t.fetchAndCachePut(e)}catch(e){e instanceof Error&&(s=e)}0}if(!a)throw new n.R("no-response",{url:e.url,error:s});return a}}class i extends a.q{async _handle(e,t){const s=await t.cacheMatch(e);if(!s)throw new n.R("no-response",{url:e.url});return s}}const o={cacheWillUpdate:async({response:e})=>200===e.status||0===e.status?e:null};class c extends a.q{constructor(e={}){super(e),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(o),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){const s=[];const a=[];let r;if(this._networkTimeoutSeconds){const{id:n,promise:i}=this._getTimeoutPromise({request:e,logs:s,handler:t});r=n,a.push(i)}const i=this._getNetworkPromise({timeoutId:r,request:e,logs:s,handler:t});a.push(i);const o=await t.waitUntil((async()=>await t.waitUntil(Promise.race(a))||await i)());if(!o)throw new n.R("no-response",{url:e.url});return o}_getTimeoutPromise({request:e,logs:t,handler:s}){let n;return{promise:new Promise((t=>{n=setTimeout((async()=>{t(await s.cacheMatch(e))}),1e3*this._networkTimeoutSeconds)})),id:n}}async _getNetworkPromise({timeoutId:e,request:t,logs:s,handler:n}){let a,r;try{r=await n.fetchAndCachePut(t)}catch(e){e instanceof Error&&(a=e)}return e&&clearTimeout(e),!a&&r||(r=await n.cacheMatch(t)),r}}var h=s(37);class l extends a.q{constructor(e={}){super(e),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){let s,a;try{const s=[t.fetch(e)];if(this._networkTimeoutSeconds){const e=(0,h.w)(1e3*this._networkTimeoutSeconds);s.push(e)}if(a=await Promise.race(s),!a)throw new Error(`Timed out the network response after ${this._networkTimeoutSeconds} seconds.`)}catch(e){e instanceof Error&&(s=e)}if(!a)throw new n.R("no-response",{url:e.url,error:s});return a}}class u extends a.q{constructor(e={}){super(e),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(o)}async _handle(e,t){const s=t.fetchAndCachePut(e).catch((()=>{}));t.waitUntil(s);let a,r=await t.cacheMatch(e);if(r)0;else{0;try{r=await s}catch(e){e instanceof Error&&(a=e)}}if(!r)throw new n.R("no-response",{url:e.url,error:a});return r}}var d=s(344)}},t={};function s(n){var a=t[n];if(void 0!==a){if(void 0!==a.error)throw a.error;return a.exports}var r=t[n]={exports:{}},i=!0;try{e[n](r,r.exports,s),i=!1}finally{i&&delete t[n]}return r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{s.S={};var e={},t={};s.I=(n,a)=>{a||(a=[]);var r=t[n];if(r||(r=t[n]={}),!(a.indexOf(r)>=0)){if(a.push(r),e[n])return e[n];s.o(s.S,n)||(s.S[n]={});var i=s.S[n],o="@genesislcap/foundation-shell",c=(e,t,s,n)=>{var a=i[e]=i[e]||{},r=a[t];(!r||!r.loaded&&(!n!=!r.eager?n:o>r.from))&&(a[t]={get:s,from:o,eager:!!n})},h=[];if("default"===n)c("workbox-cacheable-response","6.5.4",(()=>()=>s(519))),c("workbox-core","6.5.4",(()=>()=>s(521))),c("workbox-expiration","6.5.4",(()=>()=>s(692))),c("workbox-precaching","6.5.4",(()=>()=>s(355))),c("workbox-routing","6.5.4",(()=>()=>s(175))),c("workbox-strategies","6.5.4",(()=>()=>s(27)));return h.length?e[n]=Promise.all(h).then((()=>e[n]=1)):e[n]=1}}})(),(()=>{function e(e,t,s,n){return new(s||(s=Promise))((function(a,r){function i(e){try{c(n.next(e))}catch(e){r(e)}}function o(e){try{c(n.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(i,o)}c((n=n.apply(e,t||[])).next())}))}var t,n=s(519),a=s(521),r=s(692),i=s(355),o=s(175),c=s(27);console.log("Hello from sw.js v0.0.1"),(0,a.clientsClaim)(),(0,i.precacheAndRoute)([{'revision':null,'url':'/11.11.971e68b381ba25a07516.js'},{'revision':null,'url':'/529.529.44ad6ede076d548f77d2.js'},{'revision':null,'url':'/653.653.3ad4993346890040fc21.js'},{'revision':null,'url':'/705.705.570fdb3a99939e48b121.js'},{'revision':null,'url':'/816.816.fc74afcd43a848c48b02.js'},{'revision':'5c035540edea453294160c87b69d6efc','url':'/assets/icon.svg'},{'revision':'968c9b1e3aec8f497ac498d6ee3ff3ae','url':'/dts/app/app.d.ts'},{'revision':'078b6a5c77374f3e6010259f49de61c3','url':'/dts/app/behaviors.d.ts'},{'revision':'75ba0437a002fa52f35a11c6e031fb83','url':'/dts/app/config.d.ts'},{'revision':'15fd8d96dc0bb0147a927cd655991d61','url':'/dts/app/index.d.ts'},{'revision':'cec57cbbee9f1d99e4db496de3d6e722','url':'/dts/app/types.d.ts'},{'revision':'fab333a799c73864a775733433c0fe3d','url':'/dts/app/utils.d.ts'},{'revision':'d8c2f99b493635c8c25ff0a01b297da5','url':'/dts/index.d.ts'},{'revision':'2057a4ce7f492309ceb05c78e1abf2f8','url':'/dts/index.docs.d.ts'},{'revision':'56e747ccd78defe7c8311bbba58a721e','url':'/dts/index.federated.d.ts'},{'revision':'5d05b2cca398071e8b7bd80f8a37ff80','url':'/dts/main/index.d.ts'},{'revision':'127ad4e70d39a7beb238977a6ad7790c','url':'/dts/main/main.d.ts'},{'revision':'5ce23c1e29e802698be958444fcac33a','url':'/dts/main/main.styles.d.ts'},{'revision':'5a9c7f1e56b35773b19ea8fc6fd779d1','url':'/dts/main/main.template.d.ts'},{'revision':'a4a585ff72bb0a204cfe49b476bd9b80','url':'/dts/pbc/index.d.ts'},{'revision':'36878d18600216555e06ab792adc10eb','url':'/dts/pbc/pbc.d.ts'},{'revision':'48006c4dd8006dc5b51028ba56498fa3','url':'/dts/pbc/vite/exports.d.ts'},{'revision':'d6e2176ecbaafe1bc42b9f15136946d0','url':'/dts/pbc/vite/index.d.ts'},{'revision':'e372dabcf39748888ec80c9849ba7265','url':'/dts/pbc/vite/utils.d.ts'},{'revision':'48006c4dd8006dc5b51028ba56498fa3','url':'/dts/pbc/webpack/exports.d.ts'},{'revision':'d6e2176ecbaafe1bc42b9f15136946d0','url':'/dts/pbc/webpack/index.d.ts'},{'revision':'8979ecaa984fead1c6adea7bd8fd941f','url':'/dts/pbc/webpack/utils.d.ts'},{'revision':'1d6bffdf6619ff38e64181ac26bf4297','url':'/dts/serviceWorker/registration.d.ts'},{'revision':'0ab8d9f2503966e9295ae54cc6f64a4a','url':'/dts/serviceWorker/serviceWorker.d.ts'},{'revision':'65230a59ca53b222394cb29719af898c','url':'/dts/utils/index.d.ts'},{'revision':'dc36fe29c255f4306be90d0f53681e24','url':'/dts/utils/logger.d.ts'},{'revision':'d4f850463f4df51860be6f46b599e7ce','url':'/favicon.ico'},{'revision':'6866a6cdc4bbf64f128da42c6c53d590','url':'/index.html'},{'revision':'30cb28b85891d5fcd1083a2c39bb5611','url':'/info.html'},{'revision':null,'url':'/main.83bc6a19081d3d6cbfa2.js'},{'revision':null,'url':'/npm.microsoft.544.0cabb2a7bfa63636a21d.js'},{'revision':'fec4ce091f45b1af05c7393b92ec5541','url':'/remoteEntry.js'},{'revision':null,'url':'/swRegistration.f5cf447008bd257ae47b.js'}]||[]),(0,o.registerRoute)((({request:e})=>"navigate"===e.mode),new c.NetworkFirst({cacheName:"pages",plugins:[new n.CacheableResponsePlugin({statuses:[200]})]})),(0,o.registerRoute)((({request:e})=>"style"===e.destination||"script"===e.destination||"worker"===e.destination),new c.StaleWhileRevalidate({cacheName:"assets",plugins:[new n.CacheableResponsePlugin({statuses:[200]})]})),(0,o.registerRoute)((({request:e})=>"image"===e.destination),new c.CacheFirst({cacheName:"images",plugins:[new n.CacheableResponsePlugin({statuses:[200]}),new r.ExpirationPlugin({maxEntries:50,maxAgeSeconds:2592e3})]})),function(e){e.skipWaiting="skipWaiting"}(t||(t={})),self.addEventListener("message",(e=>{if(e.data&&e.data.type===t.skipWaiting)self.skipWaiting()}));const h={applicationServerKey:(e=>{const t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),s=self.atob(t),n=new Uint8Array(s.length);for(let e=0;e<s.length;e+=1)n[e]=s.charCodeAt(e);return n})("BHjc7KuOaU4j6MNOs_Mm90By-mPPUqn8Y94I0yv-aYP03ip2nfq8ti_n1mH01QxW9mWtjY8d2-VdcblQYl1Zq-M"),userVisibleOnly:!0};self.addEventListener("activate",(()=>e(void 0,void 0,void 0,(function*(){try{const t=yield self.registration.pushManager.subscribe(h),s=yield(t=>e(void 0,void 0,void 0,(function*(){return(yield fetch("http://localhost:6050/push/save",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()})))(t);console.log(s)}catch(e){console.error("SW activate error",e)}})))),self.addEventListener("push",(e=>{console.log("SW received a push message",e);const{data:t}=e;if(!t)return void console.error("no data in message");const s=t.text()||"Push Message Title";e.waitUntil(self.registration.showNotification(s,{tag:"genesis-global-notification-tag",renotify:!0,body:t.text(),vibrate:[500,100,500]}))})),self.addEventListener("notificationclose",(({notification:e})=>{const t=e.data;console.log("SW notification close",t)})),self.addEventListener("notificationclick",(({action:e,notification:t})=>{const s=t.data;console.log("SW notification click",s,e),"close"!==e||t.close()}))})()})();
|
|
2
|
-
//# sourceMappingURL=InjectManifest.
|
|
1
|
+
(()=>{"use strict";var e={733:()=>{try{self["workbox:cacheable-response:6.5.4"]&&_()}catch(e){}},823:(e,t,s)=>{s.d(t,{c:()=>n});s(114);class n{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}},552:(e,t,s)=>{s.d(t,{R:()=>a});s(114);const n=(e,...t)=>{let s=e;return t.length>0&&(s+=` :: ${JSON.stringify(t)}`),s};class a extends Error{constructor(e,t){super(n(e,t)),this.name=e,this.details=t}}},322:(e,t,s)=>{s.d(t,{v:()=>n});s(552),s(114);const n=null},771:(e,t,s)=>{s.d(t,{e:()=>a});s(114);function n(e,t){const s=new URL(e);for(const e of t)s.searchParams.delete(e);return s.href}async function a(e,t,s,a){const r=n(t.url,s);if(t.url===r)return e.match(t,a);const i=Object.assign(Object.assign({},a),{ignoreSearch:!0}),o=await e.keys(t,i);for(const t of o){if(r===n(t.url,s))return e.match(t,a)}}},354:(e,t,s)=>{s.d(t,{n:()=>r});s(114);const n={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},a=e=>[n.prefix,e,n.suffix].filter((e=>e&&e.length>0)).join("-"),r={updateDetails:e=>{(e=>{for(const t of Object.keys(n))e(t)})((t=>{"string"==typeof e[t]&&(n[t]=e[t])}))},getGoogleAnalyticsName:e=>e||a(n.googleAnalytics),getPrecacheName:e=>e||a(n.precache),getPrefix:()=>n.prefix,getRuntimeName:e=>e||a(n.runtime),getSuffix:()=>n.suffix}},204:(e,t,s)=>{s.d(t,{V:()=>a});s(114);let n;function a(){if(void 0===n){const e=new Response("");if("body"in e)try{new Response(e.body),n=!0}catch(e){n=!1}n=!1}return n}},555:(e,t,s)=>{s.d(t,{S:()=>n});s(114);function n(e){e.then((()=>{}))}},715:(e,t,s)=>{s.d(t,{w:()=>a});s(468);var n=s(922);s(114);async function a(){for(const e of n.j)await e()}},312:(e,t,s)=>{s.d(t,{R:()=>n});s(114);const n=e=>new URL(String(e),location.href).href.replace(new RegExp(`^${location.origin}`),"")},468:(e,t,s)=>{s.d(t,{v:()=>n});s(114);const n=null},37:(e,t,s)=>{s.d(t,{w:()=>n});s(114);function n(e){return new Promise((t=>setTimeout(t,e)))}},209:(e,t,s)=>{s.d(t,{a:()=>n});s(114);function n(e,t){const s=t();return e.waitUntil(s),s}},114:()=>{try{self["workbox:core:6.5.4"]&&_()}catch(e){}},707:(e,t,s)=>{s.d(t,{t:()=>r});var n=s(204),a=s(552);s(114);async function r(e,t){let s=null;if(e.url){s=new URL(e.url).origin}if(s!==self.location.origin)throw new a.R("cross-origin-copy-response",{origin:s});const r=e.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},o=t?t(i):i,c=(0,n.V)()?r.body:await r.blob();return new Response(c,o)}},922:(e,t,s)=>{s.d(t,{j:()=>n});s(114);const n=new Set},905:(e,t,s)=>{s.d(t,{$:()=>a});s(468),s(322);var n=s(922);s(114);function a(e){n.j.add(e)}},876:()=>{try{self["workbox:expiration:6.5.4"]&&_()}catch(e){}},665:()=>{try{self["workbox:precaching:6.5.4"]&&_()}catch(e){}},334:(e,t,s)=>{s.d(t,{b:()=>a});s(322),s(468);var n=s(737);s(205);class a extends n.q{constructor(e,t,s){super((({url:t})=>{const s=e.exec(t.href);if(s&&(t.origin===location.origin||0===s.index))return s.slice(1)}),t,s)}}},737:(e,t,s)=>{s.d(t,{q:()=>r});s(322);var n=s(683),a=s(161);s(205);class r{constructor(e,t,s=n.l){this.handler=(0,a.q)(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=(0,a.q)(e)}}},507:(e,t,s)=>{s.d(t,{I:()=>i});s(322),s(312);var n=s(683),a=(s(468),s(161)),r=s(552);s(205);class i{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const s=Promise.all(t.urlsToCache.map((t=>{"string"==typeof t&&(t=[t]);const s=new Request(...t);return this.handleRequest({request:s,event:e})})));e.waitUntil(s),e.ports&&e.ports[0]&&s.then((()=>e.ports[0].postMessage(!0)))}}))}handleRequest({request:e,event:t}){const s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return void 0;const n=s.origin===location.origin,{params:a,route:r}=this.findMatchingRoute({event:t,request:e,sameOrigin:n,url:s});let i=r&&r.handler;const o=e.method;if(!i&&this._defaultHandlerMap.has(o)&&(i=this._defaultHandlerMap.get(o)),!i)return void 0;let c;try{c=i.handle({url:s,request:e,event:t,params:a})}catch(e){c=Promise.reject(e)}const h=r&&r.catchHandler;return c instanceof Promise&&(this._catchHandler||h)&&(c=c.catch((async n=>{if(h){0;try{return await h.handle({url:s,request:e,event:t,params:a})}catch(e){e instanceof Error&&(n=e)}}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw n}))),c}findMatchingRoute({url:e,sameOrigin:t,request:s,event:n}){const a=this._routes.get(s.method)||[];for(const r of a){let a;const i=r.match({url:e,sameOrigin:t,request:s,event:n});if(i)return a=i,(Array.isArray(a)&&0===a.length||i.constructor===Object&&0===Object.keys(i).length||"boolean"==typeof i)&&(a=void 0),{route:r,params:a}}return{}}setDefaultHandler(e,t=n.l){this._defaultHandlerMap.set(t,(0,a.q)(e))}setCatchHandler(e){this._catchHandler=(0,a.q)(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.R("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new r.R("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}},205:()=>{try{self["workbox:routing:6.5.4"]&&_()}catch(e){}},502:(e,t,s)=>{s.d(t,{R:()=>o});s(468);var n=s(552),a=s(737),r=s(334),i=s(947);s(205);function o(e,t,s){let o;if("string"==typeof e){const n=new URL(e,location.href);0;const r=({url:e})=>e.href===n.href;o=new a.q(r,t,s)}else if(e instanceof RegExp)o=new r.b(e,t,s);else if("function"==typeof e)o=new a.q(e,t,s);else{if(!(e instanceof a.q))throw new n.R("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});o=e}return(0,i.G)().registerRoute(o),o}},683:(e,t,s)=>{s.d(t,{l:()=>n});s(205);const n="GET"},947:(e,t,s)=>{s.d(t,{G:()=>r});var n=s(507);s(205);let a;const r=()=>(a||(a=new n.I,a.addFetchListener(),a.addCacheListener()),a)},161:(e,t,s)=>{s.d(t,{q:()=>n});s(322),s(205);const n=e=>e&&"object"==typeof e?e:{handle:e}},662:(e,t,s)=>{s.d(t,{q:()=>i});var n=s(354),a=s(552),r=(s(468),s(312),s(344));s(484);class i{constructor(e={}){this.cacheName=n.n.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,s="string"==typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new r.s(this,{event:t,request:s,params:n}),i=this._getResponse(a,s,t);return[i,this._awaitComplete(i,a,s,t)]}async _getResponse(e,t,s){let n;await e.runCallbacks("handlerWillStart",{event:s,request:t});try{if(n=await this._handle(t,e),!n||"error"===n.type)throw new a.R("no-response",{url:t.url})}catch(a){if(a instanceof Error)for(const r of e.iterateCallbacks("handlerDidError"))if(n=await r({error:a,event:s,request:t}),n)break;if(!n)throw a}for(const a of e.iterateCallbacks("handlerWillRespond"))n=await a({event:s,request:t,response:n});return n}async _awaitComplete(e,t,s,n){let a,r;try{a=await e}catch(r){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:s,response:a}),await t.doneWaiting()}catch(e){e instanceof Error&&(r=e)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}},344:(e,t,s)=>{s.d(t,{s:()=>l});s(322);var n=s(771),a=s(823),r=s(715),i=s(312),o=(s(468),s(37)),c=s(552);s(484);function h(e){return"string"==typeof e?new Request(e):e}class l{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new a.c,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const e of this._plugins)this._pluginStateMap.set(e,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let s=h(e);if("navigate"===s.mode&&t instanceof FetchEvent&&t.preloadResponse){const e=await t.preloadResponse;if(e)return e}const n=this.hasCallback("fetchDidFail")?s.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))s=await e({request:s.clone(),event:t})}catch(e){if(e instanceof Error)throw new c.R("plugin-error-request-will-fetch",{thrownErrorMessage:e.message})}const a=s.clone();try{let e;e=await fetch(s,"navigate"===s.mode?void 0:this._strategy.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))e=await s({event:t,request:a,response:e});return e}catch(e){throw n&&await this.runCallbacks("fetchDidFail",{error:e,event:t,originalRequest:n.clone(),request:a.clone()}),e}}async fetchAndCachePut(e){const t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}async cacheMatch(e){const t=h(e);let s;const{cacheName:n,matchOptions:a}=this._strategy,r=await this.getCacheKey(t,"read"),i=Object.assign(Object.assign({},a),{cacheName:n});s=await caches.match(r,i);for(const e of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await e({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(e,t){const s=h(e);await(0,o.w)(0);const a=await this.getCacheKey(s,"write");if(!t)throw new c.R("cache-put-with-no-response",{url:(0,i.R)(a.url)});const l=await this._ensureResponseSafeToCache(t);if(!l)return!1;const{cacheName:u,matchOptions:d}=this._strategy,f=await self.caches.open(u),p=this.hasCallback("cacheDidUpdate"),g=p?await(0,n.e)(f,a.clone(),["__WB_REVISION__"],d):null;try{await f.put(a,p?l.clone():l)}catch(e){if(e instanceof Error)throw"QuotaExceededError"===e.name&&await(0,r.w)(),e}for(const e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:u,oldResponse:g,newResponse:l.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const s=`${e.url} | ${t}`;if(!this._cacheKeys[s]){let n=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))n=h(await e({mode:t,request:n,event:this.event,params:this.params}));this._cacheKeys[s]=n}return this._cacheKeys[s]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"==typeof t[e]){const s=this._pluginStateMap.get(t),n=n=>{const a=Object.assign(Object.assign({},n),{state:s});return t[e](a)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(const e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}},484:()=>{try{self["workbox:strategies:6.5.4"]&&_()}catch(e){}},519:(e,t,s)=>{s.r(t),s.d(t,{CacheableResponse:()=>n,CacheableResponsePlugin:()=>a});s(322),s(552),s(312),s(468),s(733);class n{constructor(e={}){this._statuses=e.statuses,this._headers=e.headers}isResponseCacheable(e){let t=!0;return this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t&&(t=Object.keys(this._headers).some((t=>e.headers.get(t)===this._headers[t]))),t}}class a{constructor(e){this.cacheWillUpdate=async({response:e})=>this._cacheableResponse.isResponseCacheable(e)?e:null,this._cacheableResponse=new n(e)}}},521:(e,t,s)=>{s.r(t),s.d(t,{_private:()=>n,cacheNames:()=>R,clientsClaim:()=>x,copyResponse:()=>b.t,registerQuotaErrorCallback:()=>a.$,setCacheNameDetails:()=>C,skipWaiting:()=>k});var n={};s.r(n),s.d(n,{Deferred:()=>d.c,WorkboxError:()=>v.R,assert:()=>r.v,cacheMatchIgnoreParams:()=>o.e,cacheNames:()=>i.n,canConstructReadableStream:()=>h,canConstructResponseFromBodyStream:()=>l.V,dontWaitFor:()=>u.S,executeQuotaErrorCallbacks:()=>f.w,getFriendlyURL:()=>p.R,logger:()=>g.v,resultingClientExists:()=>y,timeout:()=>w.w,waitUntil:()=>_.a});var a=s(905),r=s(322),i=s(354),o=s(771);s(114);let c;function h(){if(void 0===c)try{new ReadableStream({start(){}}),c=!0}catch(e){c=!1}return c}var l=s(204),u=s(555),d=s(823),f=s(715),p=s(312),g=s(468),w=s(37);const m=2e3;async function y(e){if(!e)return;let t=await self.clients.matchAll({type:"window"});const s=new Set(t.map((e=>e.id)));let n;const a=performance.now();for(;performance.now()-a<m&&(t=await self.clients.matchAll({type:"window"}),n=t.find((t=>e?t.id===e:!s.has(t.id))),!n);)await(0,w.w)(100);return n}var _=s(209),v=s(552);const R={get googleAnalytics(){return i.n.getGoogleAnalyticsName()},get precache(){return i.n.getPrecacheName()},get prefix(){return i.n.getPrefix()},get runtime(){return i.n.getRuntimeName()},get suffix(){return i.n.getSuffix()}};var b=s(707);function x(){self.addEventListener("activate",(()=>self.clients.claim()))}function C(e){i.n.updateDetails(e)}function k(){self.skipWaiting()}},692:(e,t,s)=>{s.r(t),s.d(t,{CacheExpiration:()=>k,ExpirationPlugin:()=>L});s(322);var n=s(555),a=(s(468),s(552));const r=(e,t)=>t.some((t=>e instanceof t));let i,o;const c=new WeakMap,h=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap;let f={get(e,t,s){if(e instanceof IDBTransaction){if("done"===t)return h.get(e);if("objectStoreNames"===t)return e.objectStoreNames||l.get(e);if("store"===t)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return w(e[t])},set:(e,t,s)=>(e[t]=s,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function p(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(o||(o=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(m(this),t),w(c.get(this))}:function(...t){return w(e.apply(m(this),t))}:function(t,...s){const n=e.call(m(this),t,...s);return l.set(n,t.sort?t.sort():[t]),w(n)}}function g(e){return"function"==typeof e?p(e):(e instanceof IDBTransaction&&function(e){if(h.has(e))return;const t=new Promise(((t,s)=>{const n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",r),e.removeEventListener("abort",r)},a=()=>{t(),n()},r=()=>{s(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",r),e.addEventListener("abort",r)}));h.set(e,t)}(e),r(e,i||(i=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,f):e)}function w(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,s)=>{const n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",r)},a=()=>{t(w(e.result)),n()},r=()=>{s(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",r)}));return t.then((t=>{t instanceof IDBCursor&&c.set(t,e)})).catch((()=>{})),d.set(t,e),t}(e);if(u.has(e))return u.get(e);const t=g(e);return t!==e&&(u.set(e,t),d.set(t,e)),t}const m=e=>d.get(e);const y=["get","getKey","getAll","getAllKeys","count"],_=["put","add","delete","clear"],v=new Map;function R(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(v.get(t))return v.get(t);const s=t.replace(/FromIndex$/,""),n=t!==s,a=_.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!y.includes(s))return;const r=async function(e,...t){const r=this.transaction(e,a?"readwrite":"readonly");let i=r.store;return n&&(i=i.index(t.shift())),(await Promise.all([i[s](...t),a&&r.done]))[0]};return v.set(t,r),r}f=(e=>({...e,get:(t,s,n)=>R(t,s)||e.get(t,s,n),has:(t,s)=>!!R(t,s)||e.has(t,s)}))(f);s(876);const b="cache-entries",x=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class C{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(b,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e,{blocked:t}={}){const s=indexedDB.deleteDatabase(e);t&&s.addEventListener("blocked",(e=>t(e.oldVersion,e))),w(s).then((()=>{}))}(this._cacheName)}async setTimestamp(e,t){const s={url:e=x(e),timestamp:t,cacheName:this._cacheName,id:this._getId(e)},n=(await this.getDb()).transaction(b,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(e){const t=await this.getDb(),s=await t.get(b,this._getId(e));return null==s?void 0:s.timestamp}async expireEntries(e,t){const s=await this.getDb();let n=await s.transaction(b).store.index("timestamp").openCursor(null,"prev");const a=[];let r=0;for(;n;){const s=n.value;s.cacheName===this._cacheName&&(e&&s.timestamp<e||t&&r>=t?a.push(n.value):r++),n=await n.continue()}const i=[];for(const e of a)await s.delete(b,e.id),i.push(e.url);return i}_getId(e){return this._cacheName+"|"+x(e)}async getDb(){return this._db||(this._db=await function(e,t,{blocked:s,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(e,t),o=w(i);return n&&i.addEventListener("upgradeneeded",(e=>{n(w(i.result),e.oldVersion,e.newVersion,w(i.transaction),e)})),s&&i.addEventListener("blocked",(e=>s(e.oldVersion,e.newVersion,e))),o.then((e=>{r&&e.addEventListener("close",(()=>r())),a&&e.addEventListener("versionchange",(e=>a(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),o}("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class k{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 C(e)}async expireEntries(){if(this._isRunning)return void(this._rerunRequested=!0);this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),s=await self.caches.open(this._cacheName);for(const e of t)await s.delete(e,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,(0,n.S)(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),s=Date.now()-1e3*this._maxAgeSeconds;return void 0===t||t<s}return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}var q=s(354),E=(s(312),s(905));class L{constructor(e={}){this.cachedResponseWillBeUsed=async({event:e,request:t,cacheName:s,cachedResponse:a})=>{if(!a)return null;const r=this._isResponseDateFresh(a),i=this._getCacheExpiration(s);(0,n.S)(i.expireEntries());const o=i.updateTimestamp(t.url);if(e)try{e.waitUntil(o)}catch(e){0}return r?a:null},this.cacheDidUpdate=async({cacheName:e,request:t})=>{const s=this._getCacheExpiration(e);await s.updateTimestamp(t.url),await s.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&(0,E.$)((()=>this.deleteCacheAndMetadata()))}_getCacheExpiration(e){if(e===q.n.getRuntimeName())throw new a.R("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new k(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(null===t)return!0;return t>=Date.now()-1e3*this._maxAgeSeconds}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),s=new Date(t).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}},355:(e,t,s)=>{s.r(t),s.d(t,{PrecacheController:()=>d,PrecacheFallbackPlugin:()=>E,PrecacheRoute:()=>y,PrecacheStrategy:()=>u,addPlugins:()=>g,addRoute:()=>_,cleanupOutdatedCaches:()=>R,createHandlerBoundToURL:()=>b,getCacheKeyForURL:()=>x,matchPrecache:()=>C,precache:()=>k,precacheAndRoute:()=>q});s(322);var n=s(354),a=(s(468),s(552)),r=s(209);s(665);function i(e){if(!e)throw new a.R("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:t,url:s}=e;if(!s)throw new a.R("add-to-cache-list-unexpected-type",{entry:e});if(!t){const e=new URL(s,location.href);return{cacheKey:e.href,url:e.href}}const n=new URL(s,location.href),r=new URL(s,location.href);return n.searchParams.set("__WB_REVISION__",t),{cacheKey:n.href,url:r.href}}class o{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:s})=>{if("install"===e.type&&t&&t.originalRequest&&t.originalRequest instanceof Request){const e=t.originalRequest.url;s?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return s}}}class c{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{const s=(null==t?void 0:t.cacheKey)||this._precacheController.getCacheKeyForURL(e.url);return s?new Request(s,{headers:e.headers}):e},this._precacheController=e}}var h=s(707),l=(s(312),s(662));class u extends l.q{constructor(e={}){e.cacheName=n.n.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(u.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let s;const n=t.params||{};if(!this._fallbackToNetwork)throw new a.R("missing-precache-entry",{cacheName:this.cacheName,url:e.url});{0;const a=n.integrity,r=e.integrity,i=!r||r===a;if(s=await t.fetch(new Request(e,{integrity:"no-cors"!==e.mode?r||a:void 0})),a&&i&&"no-cors"!==e.mode){this._useDefaultCacheabilityPluginIfNeeded();await t.cachePut(e,s.clone());0}}return s}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const s=await t.fetch(e);if(!await t.cachePut(e,s.clone()))throw new a.R("bad-precaching-response",{url:e.url,status:s.status});return s}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[s,n]of this.plugins.entries())n!==u.copyRedirectedCacheableResponsesPlugin&&(n===u.defaultPrecacheCacheabilityPlugin&&(e=s),n.cacheWillUpdate&&t++);0===t?this.plugins.push(u.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}u.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:e})=>!e||e.status>=400?null:e},u.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:e})=>e.redirected?await(0,h.t)(e):e};class d{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new u({cacheName:n.n.getPrecacheName(e),plugins:[...t,new c({precacheController:this})],fallbackToNetwork:s}),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 s of e){"string"==typeof s?t.push(s):s&&void 0===s.revision&&t.push(s.url);const{cacheKey:e,url:n}=i(s),r="string"!=typeof s&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(n)&&this._urlsToCacheKeys.get(n)!==e)throw new a.R("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(n),secondEntry:e});if("string"!=typeof s&&s.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==s.integrity)throw new a.R("add-to-cache-list-conflicting-integrities",{url:n});this._cacheKeysToIntegrities.set(e,s.integrity)}if(this._urlsToCacheKeys.set(n,e),this._urlsToCacheModes.set(n,r),t.length>0){const e=`Workbox is precaching URLs without revision info: ${t.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return(0,r.a)(e,(async()=>{const t=new o;this.strategy.plugins.push(t);for(const[t,s]of this._urlsToCacheKeys){const n=this._cacheKeysToIntegrities.get(s),a=this._urlsToCacheModes.get(t),r=new Request(t,{integrity:n,cache:a,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(e){return(0,r.a)(e,(async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),s=new Set(this._urlsToCacheKeys.values()),n=[];for(const a of t)s.has(a.url)||(await e.delete(a),n.push(a.url));return{deletedURLs:n}}))}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,s=this.getCacheKeyForURL(t);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new a.R("non-precached-url",{url:e});return s=>(s.request=new Request(e),s.params=Object.assign({cacheKey:t},s.params),this.strategy.handle(s))}}let f;const p=()=>(f||(f=new d),f);function g(e){p().strategy.plugins.push(...e)}var w=s(502),m=s(737);class y extends m.q{constructor(e,t){super((({request:s})=>{const n=e.getURLsToCacheKeys();for(const a of function*(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e,t=[]){for(const s of[...e.searchParams.keys()])t.some((e=>e.test(s)))&&e.searchParams.delete(s);return e}(r,t);if(yield i.href,s&&i.pathname.endsWith("/")){const e=new URL(i.href);e.pathname+=s,yield e.href}if(n){const e=new URL(i.href);e.pathname+=".html",yield e.href}if(a){const e=a({url:r});for(const t of e)yield t.href}}(s.url,t)){const t=n.get(a);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}}),e.strategy)}}function _(e){const t=p(),s=new y(t,e);(0,w.R)(s)}const v=async(e,t="-precache-")=>{const s=(await self.caches.keys()).filter((s=>s.includes(t)&&s.includes(self.registration.scope)&&s!==e));return await Promise.all(s.map((e=>self.caches.delete(e)))),s};function R(){self.addEventListener("activate",(e=>{const t=n.n.getPrecacheName();e.waitUntil(v(t).then((e=>{0})))}))}function b(e){return p().createHandlerBoundToURL(e)}function x(e){return p().getCacheKeyForURL(e)}function C(e){return p().matchPrecache(e)}function k(e){p().precache(e)}function q(e,t){k(e),_(t)}class E{constructor({fallbackURL:e,precacheController:t}){this.handlerDidError=()=>this._precacheController.matchPrecache(this._fallbackURL),this._fallbackURL=e,this._precacheController=t||p()}}},175:(e,t,s)=>{s.r(t),s.d(t,{NavigationRoute:()=>a,RegExpRoute:()=>r.b,Route:()=>n.q,Router:()=>o.I,registerRoute:()=>i.R,setCatchHandler:()=>h,setDefaultHandler:()=>l});s(322),s(468);var n=s(737);s(205);class a extends n.q{constructor(e,{allowlist:t=[/./],denylist:s=[]}={}){super((e=>this._match(e)),e),this._allowlist=t,this._denylist=s}_match({url:e,request:t}){if(t&&"navigate"!==t.mode)return!1;const s=e.pathname+e.search;for(const e of this._denylist)if(e.test(s))return!1;return!!this._allowlist.some((e=>e.test(s)))}}var r=s(334),i=s(502),o=s(507),c=s(947);function h(e){(0,c.G)().setCatchHandler(e)}function l(e){(0,c.G)().setDefaultHandler(e)}},27:(e,t,s)=>{s.r(t),s.d(t,{CacheFirst:()=>r,CacheOnly:()=>i,NetworkFirst:()=>c,NetworkOnly:()=>l,StaleWhileRevalidate:()=>u,Strategy:()=>a.q,StrategyHandler:()=>d.s});s(322),s(468);var n=s(552),a=s(662);s(312),s(484);class r extends a.q{async _handle(e,t){let s,a=await t.cacheMatch(e);if(a)0;else{0;try{a=await t.fetchAndCachePut(e)}catch(e){e instanceof Error&&(s=e)}0}if(!a)throw new n.R("no-response",{url:e.url,error:s});return a}}class i extends a.q{async _handle(e,t){const s=await t.cacheMatch(e);if(!s)throw new n.R("no-response",{url:e.url});return s}}const o={cacheWillUpdate:async({response:e})=>200===e.status||0===e.status?e:null};class c extends a.q{constructor(e={}){super(e),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(o),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){const s=[];const a=[];let r;if(this._networkTimeoutSeconds){const{id:n,promise:i}=this._getTimeoutPromise({request:e,logs:s,handler:t});r=n,a.push(i)}const i=this._getNetworkPromise({timeoutId:r,request:e,logs:s,handler:t});a.push(i);const o=await t.waitUntil((async()=>await t.waitUntil(Promise.race(a))||await i)());if(!o)throw new n.R("no-response",{url:e.url});return o}_getTimeoutPromise({request:e,logs:t,handler:s}){let n;return{promise:new Promise((t=>{n=setTimeout((async()=>{t(await s.cacheMatch(e))}),1e3*this._networkTimeoutSeconds)})),id:n}}async _getNetworkPromise({timeoutId:e,request:t,logs:s,handler:n}){let a,r;try{r=await n.fetchAndCachePut(t)}catch(e){e instanceof Error&&(a=e)}return e&&clearTimeout(e),!a&&r||(r=await n.cacheMatch(t)),r}}var h=s(37);class l extends a.q{constructor(e={}){super(e),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){let s,a;try{const s=[t.fetch(e)];if(this._networkTimeoutSeconds){const e=(0,h.w)(1e3*this._networkTimeoutSeconds);s.push(e)}if(a=await Promise.race(s),!a)throw new Error(`Timed out the network response after ${this._networkTimeoutSeconds} seconds.`)}catch(e){e instanceof Error&&(s=e)}if(!a)throw new n.R("no-response",{url:e.url,error:s});return a}}class u extends a.q{constructor(e={}){super(e),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(o)}async _handle(e,t){const s=t.fetchAndCachePut(e).catch((()=>{}));t.waitUntil(s);let a,r=await t.cacheMatch(e);if(r)0;else{0;try{r=await s}catch(e){e instanceof Error&&(a=e)}}if(!r)throw new n.R("no-response",{url:e.url,error:a});return r}}var d=s(344)}},t={};function s(n){var a=t[n];if(void 0!==a){if(void 0!==a.error)throw a.error;return a.exports}var r=t[n]={exports:{}},i=!0;try{e[n](r,r.exports,s),i=!1}finally{i&&delete t[n]}return r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{s.S={};var e={},t={};s.I=(n,a)=>{a||(a=[]);var r=t[n];if(r||(r=t[n]={}),!(a.indexOf(r)>=0)){if(a.push(r),e[n])return e[n];s.o(s.S,n)||(s.S[n]={});var i=s.S[n],o="@genesislcap/foundation-shell",c=(e,t,s,n)=>{var a=i[e]=i[e]||{},r=a[t];(!r||!r.loaded&&(!n!=!r.eager?n:o>r.from))&&(a[t]={get:s,from:o,eager:!!n})},h=[];if("default"===n)c("workbox-cacheable-response","6.6.0",(()=>()=>s(519))),c("workbox-core","6.6.0",(()=>()=>s(521))),c("workbox-expiration","6.6.0",(()=>()=>s(692))),c("workbox-precaching","6.6.0",(()=>()=>s(355))),c("workbox-routing","6.6.0",(()=>()=>s(175))),c("workbox-strategies","6.6.0",(()=>()=>s(27)));return h.length?e[n]=Promise.all(h).then((()=>e[n]=1)):e[n]=1}}})(),(()=>{function e(e,t,s,n){return new(s||(s=Promise))((function(a,r){function i(e){try{c(n.next(e))}catch(e){r(e)}}function o(e){try{c(n.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(i,o)}c((n=n.apply(e,t||[])).next())}))}var t,n=s(519),a=s(521),r=s(692),i=s(355),o=s(175),c=s(27);console.log("Hello from sw.js v0.0.1"),(0,a.clientsClaim)(),(0,i.precacheAndRoute)([{'revision':null,'url':'/11.11.971e68b381ba25a07516.js'},{'revision':null,'url':'/529.529.44ad6ede076d548f77d2.js'},{'revision':null,'url':'/653.653.3ad4993346890040fc21.js'},{'revision':null,'url':'/705.705.570fdb3a99939e48b121.js'},{'revision':null,'url':'/816.816.fc74afcd43a848c48b02.js'},{'revision':'5c035540edea453294160c87b69d6efc','url':'/assets/icon.svg'},{'revision':'968c9b1e3aec8f497ac498d6ee3ff3ae','url':'/dts/app/app.d.ts'},{'revision':'078b6a5c77374f3e6010259f49de61c3','url':'/dts/app/behaviors.d.ts'},{'revision':'75ba0437a002fa52f35a11c6e031fb83','url':'/dts/app/config.d.ts'},{'revision':'15fd8d96dc0bb0147a927cd655991d61','url':'/dts/app/index.d.ts'},{'revision':'cec57cbbee9f1d99e4db496de3d6e722','url':'/dts/app/types.d.ts'},{'revision':'fab333a799c73864a775733433c0fe3d','url':'/dts/app/utils.d.ts'},{'revision':'d8c2f99b493635c8c25ff0a01b297da5','url':'/dts/index.d.ts'},{'revision':'2057a4ce7f492309ceb05c78e1abf2f8','url':'/dts/index.docs.d.ts'},{'revision':'56e747ccd78defe7c8311bbba58a721e','url':'/dts/index.federated.d.ts'},{'revision':'5d05b2cca398071e8b7bd80f8a37ff80','url':'/dts/main/index.d.ts'},{'revision':'127ad4e70d39a7beb238977a6ad7790c','url':'/dts/main/main.d.ts'},{'revision':'5ce23c1e29e802698be958444fcac33a','url':'/dts/main/main.styles.d.ts'},{'revision':'5a9c7f1e56b35773b19ea8fc6fd779d1','url':'/dts/main/main.template.d.ts'},{'revision':'a4a585ff72bb0a204cfe49b476bd9b80','url':'/dts/pbc/index.d.ts'},{'revision':'36878d18600216555e06ab792adc10eb','url':'/dts/pbc/pbc.d.ts'},{'revision':'48006c4dd8006dc5b51028ba56498fa3','url':'/dts/pbc/vite/exports.d.ts'},{'revision':'d6e2176ecbaafe1bc42b9f15136946d0','url':'/dts/pbc/vite/index.d.ts'},{'revision':'e372dabcf39748888ec80c9849ba7265','url':'/dts/pbc/vite/utils.d.ts'},{'revision':'48006c4dd8006dc5b51028ba56498fa3','url':'/dts/pbc/webpack/exports.d.ts'},{'revision':'d6e2176ecbaafe1bc42b9f15136946d0','url':'/dts/pbc/webpack/index.d.ts'},{'revision':'8979ecaa984fead1c6adea7bd8fd941f','url':'/dts/pbc/webpack/utils.d.ts'},{'revision':'1d6bffdf6619ff38e64181ac26bf4297','url':'/dts/serviceWorker/registration.d.ts'},{'revision':'0ab8d9f2503966e9295ae54cc6f64a4a','url':'/dts/serviceWorker/serviceWorker.d.ts'},{'revision':'65230a59ca53b222394cb29719af898c','url':'/dts/utils/index.d.ts'},{'revision':'dc36fe29c255f4306be90d0f53681e24','url':'/dts/utils/logger.d.ts'},{'revision':'d4f850463f4df51860be6f46b599e7ce','url':'/favicon.ico'},{'revision':'6866a6cdc4bbf64f128da42c6c53d590','url':'/index.html'},{'revision':'30cb28b85891d5fcd1083a2c39bb5611','url':'/info.html'},{'revision':null,'url':'/main.83bc6a19081d3d6cbfa2.js'},{'revision':null,'url':'/npm.microsoft.544.0cabb2a7bfa63636a21d.js'},{'revision':'fec4ce091f45b1af05c7393b92ec5541','url':'/remoteEntry.js'},{'revision':null,'url':'/swRegistration.f5cf447008bd257ae47b.js'}]||[]),(0,o.registerRoute)((({request:e})=>"navigate"===e.mode),new c.NetworkFirst({cacheName:"pages",plugins:[new n.CacheableResponsePlugin({statuses:[200]})]})),(0,o.registerRoute)((({request:e})=>"style"===e.destination||"script"===e.destination||"worker"===e.destination),new c.StaleWhileRevalidate({cacheName:"assets",plugins:[new n.CacheableResponsePlugin({statuses:[200]})]})),(0,o.registerRoute)((({request:e})=>"image"===e.destination),new c.CacheFirst({cacheName:"images",plugins:[new n.CacheableResponsePlugin({statuses:[200]}),new r.ExpirationPlugin({maxEntries:50,maxAgeSeconds:2592e3})]})),function(e){e.skipWaiting="skipWaiting"}(t||(t={})),self.addEventListener("message",(e=>{if(e.data&&e.data.type===t.skipWaiting)self.skipWaiting()}));const h={applicationServerKey:(e=>{const t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),s=self.atob(t),n=new Uint8Array(s.length);for(let e=0;e<s.length;e+=1)n[e]=s.charCodeAt(e);return n})("BHjc7KuOaU4j6MNOs_Mm90By-mPPUqn8Y94I0yv-aYP03ip2nfq8ti_n1mH01QxW9mWtjY8d2-VdcblQYl1Zq-M"),userVisibleOnly:!0};self.addEventListener("activate",(()=>e(void 0,void 0,void 0,(function*(){try{const t=yield self.registration.pushManager.subscribe(h),s=yield(t=>e(void 0,void 0,void 0,(function*(){return(yield fetch("http://localhost:6050/push/save",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()})))(t);console.log(s)}catch(e){console.error("SW activate error",e)}})))),self.addEventListener("push",(e=>{console.log("SW received a push message",e);const{data:t}=e;if(!t)return void console.error("no data in message");const s=t.text()||"Push Message Title";e.waitUntil(self.registration.showNotification(s,{tag:"genesis-global-notification-tag",renotify:!0,body:t.text(),vibrate:[500,100,500]}))})),self.addEventListener("notificationclose",(({notification:e})=>{const t=e.data;console.log("SW notification close",t)})),self.addEventListener("notificationclick",(({action:e,notification:t})=>{const s=t.data;console.log("SW notification click",s,e),"close"!==e||t.close()}))})()})();
|
|
2
|
+
//# sourceMappingURL=InjectManifest.7279673d18f2c3dd6aa07c8cabcdc6eb.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-shell",
|
|
3
3
|
"description": "Genesis Foundation Shell",
|
|
4
|
-
"version": "14.218.1
|
|
4
|
+
"version": "14.218.1",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/dts/index.d.ts",
|
|
@@ -67,21 +67,21 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@genesislcap/foundation-testing": "14.218.1
|
|
71
|
-
"@genesislcap/genx": "14.218.1
|
|
72
|
-
"@genesislcap/rollup-builder": "14.218.1
|
|
73
|
-
"@genesislcap/ts-builder": "14.218.1
|
|
74
|
-
"@genesislcap/uvu-playwright-builder": "14.218.1
|
|
75
|
-
"@genesislcap/vite-builder": "14.218.1
|
|
76
|
-
"@genesislcap/webpack-builder": "14.218.1
|
|
70
|
+
"@genesislcap/foundation-testing": "14.218.1",
|
|
71
|
+
"@genesislcap/genx": "14.218.1",
|
|
72
|
+
"@genesislcap/rollup-builder": "14.218.1",
|
|
73
|
+
"@genesislcap/ts-builder": "14.218.1",
|
|
74
|
+
"@genesislcap/uvu-playwright-builder": "14.218.1",
|
|
75
|
+
"@genesislcap/vite-builder": "14.218.1",
|
|
76
|
+
"@genesislcap/webpack-builder": "14.218.1",
|
|
77
77
|
"rimraf": "^5.0.0"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@genesislcap/foundation-logger": "14.218.1
|
|
81
|
-
"@genesislcap/foundation-store": "14.218.1
|
|
82
|
-
"@genesislcap/foundation-ui": "14.218.1
|
|
83
|
-
"@genesislcap/foundation-utils": "14.218.1
|
|
84
|
-
"@genesislcap/web-core": "14.218.1
|
|
80
|
+
"@genesislcap/foundation-logger": "14.218.1",
|
|
81
|
+
"@genesislcap/foundation-store": "14.218.1",
|
|
82
|
+
"@genesislcap/foundation-ui": "14.218.1",
|
|
83
|
+
"@genesislcap/foundation-utils": "14.218.1",
|
|
84
|
+
"@genesislcap/web-core": "14.218.1",
|
|
85
85
|
"workbox-cacheable-response": "^6.5.4",
|
|
86
86
|
"workbox-core": "^6.5.4",
|
|
87
87
|
"workbox-expiration": "^6.5.4",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"publishConfig": {
|
|
98
98
|
"access": "public"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "3f2914c46bf26912a59d05c82097542cef8d899e"
|
|
101
101
|
}
|