@chillicream/nitro-embedded 20.0.0 → 21.0.0-insider.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/apple-touch-icon.png +0 -0
- package/asset-manifest.json +7 -7
- package/favicon.ico +0 -0
- package/favicon.svg +1 -1
- package/package.json +3 -2
- package/service-worker.js +1 -1
- package/static/js/435.bb82ca7b.js +1 -1
- package/static/js/459.bb82ca7b.js +1 -1
- package/static/js/785.543a4f5f.chunk.js +1 -0
- package/static/js/editor.bb82ca7b.js +1 -1
- package/static/js/{graphql-engine.781c9293.chunk.js → graphql-engine.a32da6fe.chunk.js} +1 -1
- package/static/js/{graphql-indexer.b0f0f3b9.chunk.js → graphql-indexer.6cc8b3ff.chunk.js} +1 -1
- package/static/js/graphql.worker.bb82ca7b.js +1 -1
- package/static/js/json.bb82ca7b.js +1 -1
- package/static/js/main.bb82ca7b.js +1 -1
- package/static/js/session.8b452181.chunk.js +1 -0
- package/static/js/yaml.worker.bb82ca7b.js +1 -1
- package/static/js/785.6dfcf288.chunk.js +0 -1
- package/static/js/session.1b18a1e8.chunk.js +0 -1
package/apple-touch-icon.png
CHANGED
|
Binary file
|
package/asset-manifest.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"static/js/522.0da62492.chunk.js": "./static/js/522.0da62492.chunk.js",
|
|
5
5
|
"static/js/81.7ef63da7.chunk.js": "./static/js/81.7ef63da7.chunk.js",
|
|
6
6
|
"static/js/712.af77a472.chunk.js": "./static/js/712.af77a472.chunk.js",
|
|
7
|
-
"graphql-engine.js": "./static/js/graphql-engine.
|
|
8
|
-
"graphql-indexer.js": "./static/js/graphql-indexer.
|
|
9
|
-
"session.js": "./static/js/session.
|
|
7
|
+
"graphql-engine.js": "./static/js/graphql-engine.a32da6fe.chunk.js",
|
|
8
|
+
"graphql-indexer.js": "./static/js/graphql-indexer.6cc8b3ff.chunk.js",
|
|
9
|
+
"session.js": "./static/js/session.8b452181.chunk.js",
|
|
10
10
|
"static/js/195.6d82bb33.chunk.js": "./static/js/195.6d82bb33.chunk.js",
|
|
11
11
|
"polyfills.js": "./static/js/polyfills.bb82ca7b.js",
|
|
12
12
|
"styles.css": "./static/css/styles.3e5f6824.css",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"static/js/692.94345d72.chunk.js": "./static/js/692.94345d72.chunk.js",
|
|
20
20
|
"static/js/264.bb82ca7b.js": "./static/js/264.bb82ca7b.js",
|
|
21
21
|
"static/js/927.bb82ca7b.js": "./static/js/927.bb82ca7b.js",
|
|
22
|
-
"static/js/785.
|
|
22
|
+
"static/js/785.543a4f5f.chunk.js": "./static/js/785.543a4f5f.chunk.js",
|
|
23
23
|
"static/js/996.ed393652.chunk.js": "./static/js/996.ed393652.chunk.js",
|
|
24
24
|
"static/js/99.bb82ca7b.js": "./static/js/99.bb82ca7b.js",
|
|
25
25
|
"static/js/yaml.worker.bb82ca7b.js": "./static/js/yaml.worker.bb82ca7b.js",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"static/media/FiraCode-Medium.woff2": "./static/media/FiraCode-Medium.1bc138a84f63b384c3f2.woff2",
|
|
30
30
|
"static/media/codicon.ttf": "./static/media/codicon.184be8c3aa435ca6c3f5.ttf",
|
|
31
31
|
"service-worker.js": "./service-worker.js",
|
|
32
|
-
"favicon-
|
|
33
|
-
"apple-touch-icon-
|
|
32
|
+
"favicon-insider.ico": "./favicon.ico",
|
|
33
|
+
"apple-touch-icon-insider.png": "./apple-touch-icon.png",
|
|
34
34
|
"index.html": "./index.html",
|
|
35
|
-
"favicon-
|
|
35
|
+
"favicon-insider.svg": "./favicon.svg",
|
|
36
36
|
"manifest.webmanifest": "./manifest.webmanifest"
|
|
37
37
|
},
|
|
38
38
|
"entrypoints": [
|
package/favicon.ico
CHANGED
|
Binary file
|
package/favicon.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?><svg id="uuid-
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg id="uuid-6e3db13c-ba82-433e-b6f5-57116fab976a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><g id="uuid-6a35e0fc-7cd9-41e2-b4dd-b67cadd22462"><rect x="0" y="0" width="256" height="256" rx="56" ry="56" stroke-width="0"/></g><path id="uuid-953c254d-d64a-498b-baf8-2816c8de0d5e" d="m96.35,67.48s-.06-.07-.1-.12c-.59-.77-7.62-9.71-21.1-11.4-29.95-2.64-30.83,22.9-30.83,22.9v110.99c0,10.57,16.3,10.57,16.3,10.57,0,0,14.53,0,14.53-10.57v-88.76c0-1.62,1.99-2.38,3.07-1.17l81.43,88.61s.06.07.1.12c.59.77,7.62,9.71,21.1,11.4,29.95,2.64,30.83-22.9,30.83-22.9v-110.99c0-10.57-16.3-10.57-16.3-10.57,0,0-14.53,0-14.53,10.57v88.76c0,1.62-1.99,2.38-3.07,1.17l-81.53-88.73" fill="#d3af18" stroke-width="0"/></svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chillicream/nitro-embedded",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0-insider.1",
|
|
4
4
|
"description": "Nitro GraphQL IDE",
|
|
5
5
|
"homepage": "https://chillicream.com",
|
|
6
6
|
"repository": "github:ChilliCream/graphql-platform",
|
|
@@ -42,5 +42,6 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"./package.json": "./package.json"
|
|
45
|
-
}
|
|
45
|
+
},
|
|
46
|
+
"stableVersion": "0.0.0"
|
|
46
47
|
}
|
package/service-worker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={930:()=>{try{self["workbox:core:6.5.4"]&&_()}catch(e){}},172:()=>{try{self["workbox:expiration:6.5.4"]&&_()}catch(e){}},769:()=>{try{self["workbox:precaching:6.5.4"]&&_()}catch(e){}},357:()=>{try{self["workbox:routing:6.5.4"]&&_()}catch(e){}},124:()=>{try{self["workbox:strategies:6.5.4"]&&_()}catch(e){}}},t={};function s(n){var a=t[n];if(void 0!==a)return a.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,s),r.exports}s(930);const n=function(e){let t=e;for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];return n.length>0&&(t+=` :: ${JSON.stringify(n)}`),t};class a extends Error{constructor(e,t){super(n(e,t)),this.name=e,this.details=t}}const r=new Set;const i={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},o=e=>[i.prefix,e,i.suffix].filter((e=>e&&e.length>0)).join("-"),c=e=>e||o(i.precache),h=e=>e||o(i.runtime);function l(e,t){const s=new URL(e);for(const n of t)s.searchParams.delete(n);return s.href}let u;function d(e){e.then((()=>{}))}class f{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}const p=e=>new URL(String(e),location.href).href.replace(new RegExp(`^${location.origin}`),"");function g(e){return new Promise((t=>setTimeout(t,e)))}function w(e,t){const s=t();return e.waitUntil(s),s}async function m(e,t){let s=null;if(e.url){s=new URL(e.url).origin}if(s!==self.location.origin)throw new a("cross-origin-copy-response",{origin:s});const n=e.clone(),r={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},i=t?t(r):r,o=function(){if(void 0===u){const t=new Response("");if("body"in t)try{new Response(t.body),u=!0}catch(e){u=!1}u=!1}return u}()?n.body:await n.blob();return new Response(o,i)}let y,v;const b=new WeakMap,R=new WeakMap,x=new WeakMap,C=new WeakMap,E=new WeakMap;let L={get(e,t,s){if(e instanceof IDBTransaction){if("done"===t)return R.get(e);if("objectStoreNames"===t)return e.objectStoreNames||x.get(e);if("store"===t)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return U(e[t])},set:(e,t,s)=>(e[t]=s,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function q(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(v||(v=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return e.apply(T(this),s),U(b.get(this))}:function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return U(e.apply(T(this),s))}:function(t){for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];const r=e.call(T(this),t,...n);return x.set(r,t.sort?t.sort():[t]),U(r)}}function D(e){return"function"===typeof e?q(e):(e instanceof IDBTransaction&&function(e){if(R.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)}));R.set(e,t)}(e),t=e,(y||(y=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,L):e);var t}function U(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(U(e.result)),n()},r=()=>{s(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",r)}));return t.then((t=>{t instanceof IDBCursor&&b.set(t,e)})).catch((()=>{})),E.set(t,e),t}(e);if(C.has(e))return C.get(e);const t=D(e);return t!==e&&(C.set(e,t),E.set(t,e)),t}const T=e=>E.get(e);const k=["get","getKey","getAll","getAllKeys","count"],N=["put","add","delete","clear"],I=new Map;function K(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(I.get(t))return I.get(t);const s=t.replace(/FromIndex$/,""),n=t!==s,a=N.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!k.includes(s))return;const r=async function(e){const t=this.transaction(e,a?"readwrite":"readonly");let r=t.store;for(var i=arguments.length,o=new Array(i>1?i-1:0),c=1;c<i;c++)o[c-1]=arguments[c];return n&&(r=r.index(o.shift())),(await Promise.all([r[s](...o),a&&t.done]))[0]};return I.set(t,r),r}L=(e=>({...e,get:(t,s,n)=>K(t,s)||e.get(t,s,n),has:(t,s)=>!!K(t,s)||e.has(t,s)}))(L);s(172);const A="cache-entries",M=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class P{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(A,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e){let{blocked:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=indexedDB.deleteDatabase(e);t&&s.addEventListener("blocked",(e=>t(e.oldVersion,e))),U(s).then((()=>{}))}(this._cacheName)}async setTimestamp(e,t){const s={url:e=M(e),timestamp:t,cacheName:this._cacheName,id:this._getId(e)},n=(await this.getDb()).transaction(A,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(e){const t=await this.getDb(),s=await t.get(A,this._getId(e));return null===s||void 0===s?void 0:s.timestamp}async expireEntries(e,t){const s=await this.getDb();let n=await s.transaction(A).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 o of a)await s.delete(A,o.id),i.push(o.url);return i}_getId(e){return this._cacheName+"|"+M(e)}async getDb(){return this._db||(this._db=await function(e,t){let{blocked:s,upgrade:n,blocking:a,terminated:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=indexedDB.open(e,t),o=U(i);return n&&i.addEventListener("upgradeneeded",(e=>{n(U(i.result),e.oldVersion,e.newVersion,U(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 O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new P(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 n of t)await s.delete(n,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,d(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)}}s(769);function S(e){if(!e)throw new a("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("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 W{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async e=>{let{request:t,state:s}=e;s&&(s.originalRequest=t)},this.cachedResponseWillBeUsed=async e=>{let{event:t,state:s,cachedResponse:n}=e;if("install"===t.type&&s&&s.originalRequest&&s.originalRequest instanceof Request){const e=s.originalRequest.url;n?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return n}}}class B{constructor(e){let{precacheController:t}=e;this.cacheKeyWillBeUsed=async e=>{let{request:t,params:s}=e;const n=(null===s||void 0===s?void 0:s.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return n?new Request(n,{headers:t.headers}):t},this._precacheController=t}}s(124);function j(e){return"string"===typeof e?new Request(e):e}class F{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new f,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const s of this._plugins)this._pluginStateMap.set(s,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let s=j(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(i){if(i instanceof Error)throw new a("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=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:r,response:e});return e}catch(o){throw n&&await this.runCallbacks("fetchDidFail",{error:o,event:t,originalRequest:n.clone(),request:r.clone()}),o}}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=j(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 o of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await o({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(e,t){const s=j(e);await g(0);const n=await this.getCacheKey(s,"write");if(!t)throw new a("cache-put-with-no-response",{url:p(n.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:o,matchOptions:c}=this._strategy,h=await self.caches.open(o),u=this.hasCallback("cacheDidUpdate"),d=u?await async function(e,t,s,n){const a=l(t.url,s);if(t.url===a)return e.match(t,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await e.keys(t,r);for(const o of i)if(a===l(o.url,s))return e.match(o,n)}(h,n.clone(),["__WB_REVISION__"],c):null;try{await h.put(n,u?i.clone():i)}catch(f){if(f instanceof Error)throw"QuotaExceededError"===f.name&&await async function(){for(const e of r)await e()}(),f}for(const a of this.iterateCallbacks("cacheDidUpdate"))await a({cacheName:o,oldResponse:d,newResponse:i.clone(),request:n,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=j(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 n of this.iterateCallbacks("cacheWillUpdate"))if(t=await n({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}class H{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cacheName=h(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 F(this,{event:t,request:s,params:n}),r=this._getResponse(a,s,t);return[r,this._awaitComplete(r,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("no-response",{url:t.url})}catch(r){if(r instanceof Error)for(const a of e.iterateCallbacks("handlerDidError"))if(n=await a({error:r,event:s,request:t}),n)break;if(!n)throw r}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(i){i instanceof Error&&(r=i)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}class V extends H{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.cacheName=c(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(V.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("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("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!==V.copyRedirectedCacheableResponsesPlugin&&(n===V.defaultPrecacheCacheabilityPlugin&&(e=s),n.cacheWillUpdate&&t++);0===t?this.plugins.push(V.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}V.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate(e){let{response:t}=e;return!t||t.status>=400?null:t}},V.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate(e){let{response:t}=e;return t.redirected?await m(t):t}};class ${constructor(){let{cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new V({cacheName:c(e),plugins:[...t,new B({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}=S(s),r="string"!==typeof s&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(n)&&this._urlsToCacheKeys.get(n)!==e)throw new a("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("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 w(e,(async()=>{const t=new W;this.strategy.plugins.push(t);for(const[a,r]of this._urlsToCacheKeys){const t=this._cacheKeysToIntegrities.get(r),s=this._urlsToCacheModes.get(a),n=new Request(a,{integrity:t,cache:s,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:r},request:n,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(e){return w(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("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 G;const Q=()=>(G||(G=new $),G);s(357);const J=e=>e&&"object"===typeof e?e:{handle:e};class z{constructor(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";this.handler=J(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=J(e)}}class X extends z{constructor(e,t,s){super((t=>{let{url:s}=t;const n=e.exec(s.href);if(n&&(s.origin===location.origin||0===n.index))return n.slice(1)}),t,s)}}class Y{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(e){let{request:t,event:s}=e;const n=new URL(t.url,location.href);if(!n.protocol.startsWith("http"))return void 0;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:s,request:t,sameOrigin:a,url:n});let o=i&&i.handler;const c=t.method;if(!o&&this._defaultHandlerMap.has(c)&&(o=this._defaultHandlerMap.get(c)),!o)return void 0;let h;try{h=o.handle({url:n,request:t,event:s,params:r})}catch(u){h=Promise.reject(u)}const l=i&&i.catchHandler;return h instanceof Promise&&(this._catchHandler||l)&&(h=h.catch((async e=>{if(l){0;try{return await l.handle({url:n,request:t,event:s,params:r})}catch(a){a instanceof Error&&(e=a)}}if(this._catchHandler)return this._catchHandler.handle({url:n,request:t,event:s});throw e}))),h}findMatchingRoute(e){let{url:t,sameOrigin:s,request:n,event:a}=e;const r=this._routes.get(n.method)||[];for(const i of r){let e;const r=i.match({url:t,sameOrigin:s,request:n,event:a});if(r)return e=r,(Array.isArray(e)&&0===e.length||r.constructor===Object&&0===Object.keys(r).length||"boolean"===typeof r)&&(e=void 0),{route:i,params:e}}return{}}setDefaultHandler(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";this._defaultHandlerMap.set(t,J(e))}setCatchHandler(e){this._catchHandler=J(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 a("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new a("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}let Z;const ee=()=>(Z||(Z=new Y,Z.addFetchListener(),Z.addCacheListener()),Z);function te(e,t,s){let n;if("string"===typeof e){const a=new URL(e,location.href);0;n=new z((e=>{let{url:t}=e;return t.href===a.href}),t,s)}else if(e instanceof RegExp)n=new X(e,t,s);else if("function"===typeof e)n=new z(e,t,s);else{if(!(e instanceof z))throw new a("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});n=e}return ee().registerRoute(n),n}class se extends z{constructor(e,t){super((s=>{let{request:n}=s;const a=e.getURLsToCacheKeys();for(const r of function(e){let{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];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}}()}(n.url,t)){const t=a.get(r);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}}),e.strategy)}}const ne={cacheWillUpdate:async e=>{let{response:t}=e;return 200===t.status||0===t.status?t:null}};var ae;self.addEventListener("activate",(()=>self.clients.claim())),function(e){Q().precache(e)}([{'revision':'6a6cfe7295bdb8197f0dfb798a02399b','url':'apple-touch-icon.png'},{'revision':'e673c0673c83dca3fdf3012c6a13a16b','url':'favicon.ico'},{'revision':'a9c1352eebc2e2c037a7de460256c170','url':'favicon.svg'},{'revision':'8675ff7a7212bc08e1160baa42285f79','url':'index.html'},{'revision':'8df6add213ddba3e5d21b4a69d272e68','url':'manifest.webmanifest'},{'revision':null,'url':'static/css/styles.3e5f6824.css'},{'revision':null,'url':'static/js/110.bb82ca7b.js'},{'revision':null,'url':'static/js/195.6d82bb33.chunk.js'},{'revision':null,'url':'static/js/264.bb82ca7b.js'},{'revision':null,'url':'static/js/435.bb82ca7b.js'},{'revision':null,'url':'static/js/459.bb82ca7b.js'},{'revision':null,'url':'static/js/522.0da62492.chunk.js'},{'revision':null,'url':'static/js/692.94345d72.chunk.js'},{'revision':null,'url':'static/js/712.af77a472.chunk.js'},{'revision':null,'url':'static/js/762.76d2e08a.chunk.js'},{'revision':null,'url':'static/js/785.6dfcf288.chunk.js'},{'revision':null,'url':'static/js/81.7ef63da7.chunk.js'},{'revision':null,'url':'static/js/86.a88d32a1.chunk.js'},{'revision':null,'url':'static/js/927.bb82ca7b.js'},{'revision':null,'url':'static/js/936.bb82ca7b.js'},{'revision':null,'url':'static/js/99.bb82ca7b.js'},{'revision':null,'url':'static/js/996.ed393652.chunk.js'},{'revision':null,'url':'static/js/editor.bb82ca7b.js'},{'revision':null,'url':'static/js/graphql-engine.781c9293.chunk.js'},{'revision':null,'url':'static/js/graphql-indexer.b0f0f3b9.chunk.js'},{'revision':null,'url':'static/js/graphql.worker.bb82ca7b.js'},{'revision':null,'url':'static/js/json.bb82ca7b.js'},{'revision':null,'url':'static/js/main.bb82ca7b.js'},{'revision':null,'url':'static/js/polyfills.bb82ca7b.js'},{'revision':null,'url':'static/js/session.1b18a1e8.chunk.js'},{'revision':null,'url':'static/js/yaml.worker.bb82ca7b.js'},{'revision':null,'url':'static/media/FiraCode-Medium.1bc138a84f63b384c3f2.woff2'},{'revision':null,'url':'static/media/codicon.184be8c3aa435ca6c3f5.ttf'}]),function(e){const t=Q();te(new se(t,e))}(ae);const re=new RegExp("/[^/?]+\\.[^/]+$");var ie;te((e=>{let{request:t,url:s}=e;return"navigate"===t.mode&&(!s.pathname.startsWith("/_")&&!s.pathname.match(re))}),(ie="./index.html",Q().createHandlerBoundToURL(ie))),te((e=>{let{url:t}=e;return t.origin===self.location.origin&&t.pathname.endsWith("/bcp-config.json")}),new class extends H{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(ne)}async _handle(e,t){const s=t.fetchAndCachePut(e).catch((()=>{}));t.waitUntil(s);let n,r=await t.cacheMatch(e);if(r)0;else{0;try{r=await s}catch(i){i instanceof Error&&(n=i)}}if(!r)throw new a("no-response",{url:e.url,error:n});return r}}({cacheName:"runtime",plugins:[new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cachedResponseWillBeUsed=async e=>{let{event:t,request:s,cacheName:n,cachedResponse:a}=e;if(!a)return null;const r=this._isResponseDateFresh(a),i=this._getCacheExpiration(n);d(i.expireEntries());const o=i.updateTimestamp(s.url);if(t)try{t.waitUntil(o)}catch(c){0}return r?a:null},this.cacheDidUpdate=async e=>{let{cacheName:t,request:s}=e;const n=this._getCacheExpiration(t);await n.updateTimestamp(s.url),await n.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&function(e){r.add(e)}((()=>this.deleteCacheAndMetadata()))}_getCacheExpiration(e){if(e===h())throw new a("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new O(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}}({maxEntries:1})]})),self.addEventListener("message",(e=>{var t,s;"SKIP_WAITING"===(null===(t=e.data)||void 0===t?void 0:t.type)?self.skipWaiting():"CLOSE_UPDATE_DIALOG"===(null===(s=e.data)||void 0===s?void 0:s.type)&&self.clients.matchAll({includeUncontrolled:!0,type:"window"}).then((t=>{t.forEach((t=>{t.postMessage(e.data)}))}))}))})();
|
|
1
|
+
(()=>{"use strict";var e={930:()=>{try{self["workbox:core:6.5.4"]&&_()}catch(e){}},172:()=>{try{self["workbox:expiration:6.5.4"]&&_()}catch(e){}},769:()=>{try{self["workbox:precaching:6.5.4"]&&_()}catch(e){}},357:()=>{try{self["workbox:routing:6.5.4"]&&_()}catch(e){}},124:()=>{try{self["workbox:strategies:6.5.4"]&&_()}catch(e){}}},t={};function s(n){var a=t[n];if(void 0!==a)return a.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,s),r.exports}s(930);const n=function(e){let t=e;for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];return n.length>0&&(t+=` :: ${JSON.stringify(n)}`),t};class a extends Error{constructor(e,t){super(n(e,t)),this.name=e,this.details=t}}const r=new Set;const i={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},o=e=>[i.prefix,e,i.suffix].filter((e=>e&&e.length>0)).join("-"),c=e=>e||o(i.precache),h=e=>e||o(i.runtime);function l(e,t){const s=new URL(e);for(const n of t)s.searchParams.delete(n);return s.href}let u;function d(e){e.then((()=>{}))}class f{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}const p=e=>new URL(String(e),location.href).href.replace(new RegExp(`^${location.origin}`),"");function g(e){return new Promise((t=>setTimeout(t,e)))}function w(e,t){const s=t();return e.waitUntil(s),s}async function m(e,t){let s=null;if(e.url){s=new URL(e.url).origin}if(s!==self.location.origin)throw new a("cross-origin-copy-response",{origin:s});const n=e.clone(),r={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},i=t?t(r):r,o=function(){if(void 0===u){const t=new Response("");if("body"in t)try{new Response(t.body),u=!0}catch(e){u=!1}u=!1}return u}()?n.body:await n.blob();return new Response(o,i)}let y,v;const b=new WeakMap,R=new WeakMap,x=new WeakMap,C=new WeakMap,E=new WeakMap;let L={get(e,t,s){if(e instanceof IDBTransaction){if("done"===t)return R.get(e);if("objectStoreNames"===t)return e.objectStoreNames||x.get(e);if("store"===t)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return U(e[t])},set:(e,t,s)=>(e[t]=s,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function q(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(v||(v=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return e.apply(T(this),s),U(b.get(this))}:function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return U(e.apply(T(this),s))}:function(t){for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];const r=e.call(T(this),t,...n);return x.set(r,t.sort?t.sort():[t]),U(r)}}function D(e){return"function"===typeof e?q(e):(e instanceof IDBTransaction&&function(e){if(R.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)}));R.set(e,t)}(e),t=e,(y||(y=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,L):e);var t}function U(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(U(e.result)),n()},r=()=>{s(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",r)}));return t.then((t=>{t instanceof IDBCursor&&b.set(t,e)})).catch((()=>{})),E.set(t,e),t}(e);if(C.has(e))return C.get(e);const t=D(e);return t!==e&&(C.set(e,t),E.set(t,e)),t}const T=e=>E.get(e);const k=["get","getKey","getAll","getAllKeys","count"],N=["put","add","delete","clear"],I=new Map;function K(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(I.get(t))return I.get(t);const s=t.replace(/FromIndex$/,""),n=t!==s,a=N.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!k.includes(s))return;const r=async function(e){const t=this.transaction(e,a?"readwrite":"readonly");let r=t.store;for(var i=arguments.length,o=new Array(i>1?i-1:0),c=1;c<i;c++)o[c-1]=arguments[c];return n&&(r=r.index(o.shift())),(await Promise.all([r[s](...o),a&&t.done]))[0]};return I.set(t,r),r}L=(e=>({...e,get:(t,s,n)=>K(t,s)||e.get(t,s,n),has:(t,s)=>!!K(t,s)||e.has(t,s)}))(L);s(172);const A="cache-entries",M=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class P{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(A,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e){let{blocked:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=indexedDB.deleteDatabase(e);t&&s.addEventListener("blocked",(e=>t(e.oldVersion,e))),U(s).then((()=>{}))}(this._cacheName)}async setTimestamp(e,t){const s={url:e=M(e),timestamp:t,cacheName:this._cacheName,id:this._getId(e)},n=(await this.getDb()).transaction(A,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(e){const t=await this.getDb(),s=await t.get(A,this._getId(e));return null===s||void 0===s?void 0:s.timestamp}async expireEntries(e,t){const s=await this.getDb();let n=await s.transaction(A).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 o of a)await s.delete(A,o.id),i.push(o.url);return i}_getId(e){return this._cacheName+"|"+M(e)}async getDb(){return this._db||(this._db=await function(e,t){let{blocked:s,upgrade:n,blocking:a,terminated:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=indexedDB.open(e,t),o=U(i);return n&&i.addEventListener("upgradeneeded",(e=>{n(U(i.result),e.oldVersion,e.newVersion,U(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 O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new P(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 n of t)await s.delete(n,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,d(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)}}s(769);function S(e){if(!e)throw new a("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("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 W{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async e=>{let{request:t,state:s}=e;s&&(s.originalRequest=t)},this.cachedResponseWillBeUsed=async e=>{let{event:t,state:s,cachedResponse:n}=e;if("install"===t.type&&s&&s.originalRequest&&s.originalRequest instanceof Request){const e=s.originalRequest.url;n?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return n}}}class B{constructor(e){let{precacheController:t}=e;this.cacheKeyWillBeUsed=async e=>{let{request:t,params:s}=e;const n=(null===s||void 0===s?void 0:s.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return n?new Request(n,{headers:t.headers}):t},this._precacheController=t}}s(124);function j(e){return"string"===typeof e?new Request(e):e}class F{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new f,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const s of this._plugins)this._pluginStateMap.set(s,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let s=j(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(i){if(i instanceof Error)throw new a("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=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:r,response:e});return e}catch(o){throw n&&await this.runCallbacks("fetchDidFail",{error:o,event:t,originalRequest:n.clone(),request:r.clone()}),o}}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=j(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 o of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await o({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(e,t){const s=j(e);await g(0);const n=await this.getCacheKey(s,"write");if(!t)throw new a("cache-put-with-no-response",{url:p(n.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:o,matchOptions:c}=this._strategy,h=await self.caches.open(o),u=this.hasCallback("cacheDidUpdate"),d=u?await async function(e,t,s,n){const a=l(t.url,s);if(t.url===a)return e.match(t,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await e.keys(t,r);for(const o of i)if(a===l(o.url,s))return e.match(o,n)}(h,n.clone(),["__WB_REVISION__"],c):null;try{await h.put(n,u?i.clone():i)}catch(f){if(f instanceof Error)throw"QuotaExceededError"===f.name&&await async function(){for(const e of r)await e()}(),f}for(const a of this.iterateCallbacks("cacheDidUpdate"))await a({cacheName:o,oldResponse:d,newResponse:i.clone(),request:n,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=j(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 n of this.iterateCallbacks("cacheWillUpdate"))if(t=await n({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}class H{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cacheName=h(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 F(this,{event:t,request:s,params:n}),r=this._getResponse(a,s,t);return[r,this._awaitComplete(r,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("no-response",{url:t.url})}catch(r){if(r instanceof Error)for(const a of e.iterateCallbacks("handlerDidError"))if(n=await a({error:r,event:s,request:t}),n)break;if(!n)throw r}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(i){i instanceof Error&&(r=i)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}class V extends H{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.cacheName=c(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(V.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("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("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!==V.copyRedirectedCacheableResponsesPlugin&&(n===V.defaultPrecacheCacheabilityPlugin&&(e=s),n.cacheWillUpdate&&t++);0===t?this.plugins.push(V.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}V.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate(e){let{response:t}=e;return!t||t.status>=400?null:t}},V.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate(e){let{response:t}=e;return t.redirected?await m(t):t}};class ${constructor(){let{cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new V({cacheName:c(e),plugins:[...t,new B({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}=S(s),r="string"!==typeof s&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(n)&&this._urlsToCacheKeys.get(n)!==e)throw new a("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("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 w(e,(async()=>{const t=new W;this.strategy.plugins.push(t);for(const[a,r]of this._urlsToCacheKeys){const t=this._cacheKeysToIntegrities.get(r),s=this._urlsToCacheModes.get(a),n=new Request(a,{integrity:t,cache:s,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:r},request:n,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(e){return w(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("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 G;const Q=()=>(G||(G=new $),G);s(357);const J=e=>e&&"object"===typeof e?e:{handle:e};class z{constructor(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";this.handler=J(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=J(e)}}class X extends z{constructor(e,t,s){super((t=>{let{url:s}=t;const n=e.exec(s.href);if(n&&(s.origin===location.origin||0===n.index))return n.slice(1)}),t,s)}}class Y{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(e){let{request:t,event:s}=e;const n=new URL(t.url,location.href);if(!n.protocol.startsWith("http"))return void 0;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:s,request:t,sameOrigin:a,url:n});let o=i&&i.handler;const c=t.method;if(!o&&this._defaultHandlerMap.has(c)&&(o=this._defaultHandlerMap.get(c)),!o)return void 0;let h;try{h=o.handle({url:n,request:t,event:s,params:r})}catch(u){h=Promise.reject(u)}const l=i&&i.catchHandler;return h instanceof Promise&&(this._catchHandler||l)&&(h=h.catch((async e=>{if(l){0;try{return await l.handle({url:n,request:t,event:s,params:r})}catch(a){a instanceof Error&&(e=a)}}if(this._catchHandler)return this._catchHandler.handle({url:n,request:t,event:s});throw e}))),h}findMatchingRoute(e){let{url:t,sameOrigin:s,request:n,event:a}=e;const r=this._routes.get(n.method)||[];for(const i of r){let e;const r=i.match({url:t,sameOrigin:s,request:n,event:a});if(r)return e=r,(Array.isArray(e)&&0===e.length||r.constructor===Object&&0===Object.keys(r).length||"boolean"===typeof r)&&(e=void 0),{route:i,params:e}}return{}}setDefaultHandler(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";this._defaultHandlerMap.set(t,J(e))}setCatchHandler(e){this._catchHandler=J(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 a("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new a("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}let Z;const ee=()=>(Z||(Z=new Y,Z.addFetchListener(),Z.addCacheListener()),Z);function te(e,t,s){let n;if("string"===typeof e){const a=new URL(e,location.href);0;n=new z((e=>{let{url:t}=e;return t.href===a.href}),t,s)}else if(e instanceof RegExp)n=new X(e,t,s);else if("function"===typeof e)n=new z(e,t,s);else{if(!(e instanceof z))throw new a("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});n=e}return ee().registerRoute(n),n}class se extends z{constructor(e,t){super((s=>{let{request:n}=s;const a=e.getURLsToCacheKeys();for(const r of function(e){let{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];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}}()}(n.url,t)){const t=a.get(r);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}}),e.strategy)}}const ne={cacheWillUpdate:async e=>{let{response:t}=e;return 200===t.status||0===t.status?t:null}};var ae;self.addEventListener("activate",(()=>self.clients.claim())),function(e){Q().precache(e)}([{'revision':'94c78dbc314adb1da638617ff8a7e756','url':'apple-touch-icon.png'},{'revision':'f21120af273b26460ddc02b7c040542d','url':'favicon.ico'},{'revision':'22729774845da96e2b985221c24ac57a','url':'favicon.svg'},{'revision':'8675ff7a7212bc08e1160baa42285f79','url':'index.html'},{'revision':'8df6add213ddba3e5d21b4a69d272e68','url':'manifest.webmanifest'},{'revision':null,'url':'static/css/styles.3e5f6824.css'},{'revision':null,'url':'static/js/110.bb82ca7b.js'},{'revision':null,'url':'static/js/195.6d82bb33.chunk.js'},{'revision':null,'url':'static/js/264.bb82ca7b.js'},{'revision':null,'url':'static/js/435.bb82ca7b.js'},{'revision':null,'url':'static/js/459.bb82ca7b.js'},{'revision':null,'url':'static/js/522.0da62492.chunk.js'},{'revision':null,'url':'static/js/692.94345d72.chunk.js'},{'revision':null,'url':'static/js/712.af77a472.chunk.js'},{'revision':null,'url':'static/js/762.76d2e08a.chunk.js'},{'revision':null,'url':'static/js/785.543a4f5f.chunk.js'},{'revision':null,'url':'static/js/81.7ef63da7.chunk.js'},{'revision':null,'url':'static/js/86.a88d32a1.chunk.js'},{'revision':null,'url':'static/js/927.bb82ca7b.js'},{'revision':null,'url':'static/js/936.bb82ca7b.js'},{'revision':null,'url':'static/js/99.bb82ca7b.js'},{'revision':null,'url':'static/js/996.ed393652.chunk.js'},{'revision':null,'url':'static/js/editor.bb82ca7b.js'},{'revision':null,'url':'static/js/graphql-engine.a32da6fe.chunk.js'},{'revision':null,'url':'static/js/graphql-indexer.6cc8b3ff.chunk.js'},{'revision':null,'url':'static/js/graphql.worker.bb82ca7b.js'},{'revision':null,'url':'static/js/json.bb82ca7b.js'},{'revision':null,'url':'static/js/main.bb82ca7b.js'},{'revision':null,'url':'static/js/polyfills.bb82ca7b.js'},{'revision':null,'url':'static/js/session.8b452181.chunk.js'},{'revision':null,'url':'static/js/yaml.worker.bb82ca7b.js'},{'revision':null,'url':'static/media/FiraCode-Medium.1bc138a84f63b384c3f2.woff2'},{'revision':null,'url':'static/media/codicon.184be8c3aa435ca6c3f5.ttf'}]),function(e){const t=Q();te(new se(t,e))}(ae);const re=new RegExp("/[^/?]+\\.[^/]+$");var ie;te((e=>{let{request:t,url:s}=e;return"navigate"===t.mode&&(!s.pathname.startsWith("/_")&&!s.pathname.match(re))}),(ie="./index.html",Q().createHandlerBoundToURL(ie))),te((e=>{let{url:t}=e;return t.origin===self.location.origin&&t.pathname.endsWith("/bcp-config.json")}),new class extends H{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(ne)}async _handle(e,t){const s=t.fetchAndCachePut(e).catch((()=>{}));t.waitUntil(s);let n,r=await t.cacheMatch(e);if(r)0;else{0;try{r=await s}catch(i){i instanceof Error&&(n=i)}}if(!r)throw new a("no-response",{url:e.url,error:n});return r}}({cacheName:"runtime",plugins:[new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cachedResponseWillBeUsed=async e=>{let{event:t,request:s,cacheName:n,cachedResponse:a}=e;if(!a)return null;const r=this._isResponseDateFresh(a),i=this._getCacheExpiration(n);d(i.expireEntries());const o=i.updateTimestamp(s.url);if(t)try{t.waitUntil(o)}catch(c){0}return r?a:null},this.cacheDidUpdate=async e=>{let{cacheName:t,request:s}=e;const n=this._getCacheExpiration(t);await n.updateTimestamp(s.url),await n.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&function(e){r.add(e)}((()=>this.deleteCacheAndMetadata()))}_getCacheExpiration(e){if(e===h())throw new a("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new O(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}}({maxEntries:1})]})),self.addEventListener("message",(e=>{var t,s;"SKIP_WAITING"===(null===(t=e.data)||void 0===t?void 0:t.type)?self.skipWaiting():"CLOSE_UPDATE_DIALOG"===(null===(s=e.data)||void 0===s?void 0:s.type)&&self.clients.matchAll({includeUncontrolled:!0,type:"window"}).then((t=>{t.forEach((t=>{t.postMessage(e.data)}))}))}))})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunknitro=self.webpackChunknitro||[]).push([[435],{37551:(e,t,r)=>{"use strict";r.d(t,{L:()=>s,x:()=>o});var n=r(99850),i=r(28511);function s(e,t,r){return(0,n.SE)(["mutex"],"readwrite",(async n=>{const s=await n.store.mutex.get(e),o=()=>n.store.mutex.put({resource:e,owner:t,expiresAt:(0,i.tB)()+r});return s?(s.owner===t||s.expiresAt<(0,i.tB)())&&(await o(),!0):(await o(),!0)}))}function o(e){return(0,n.ot)((t=>t.delete("mutex",e)))}},95616:(e,t,r)=>{"use strict";r(99850)},4537:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});r(40231),r(95666),r(77845);var n=r(23845),i=r(28511),s=r(77122);async function o(e){var t;const r=await(0,s.ZH)();return{uri:(0,i.mv)(e)?e:new URL(e,null!==(t=null===r||void 0===r?void 0:r.apiUrl)&&void 0!==t?t:"https://api.chillicream.com").href,headers:function(e){const t=new Headers;if(t.set("CCC-Agent",n.mF),t.set("GraphQL-Agent",n.mF),t.set("GraphQL-Client-Id",n.ag),t.set("GraphQL-Client-Version",n.hl),t.set("GraphQL-Defer-RFC","v2"),!e)throw new s.jc;t.set("Authorization",`Bearer ${e}`);return t}(null===r||void 0===r?void 0:r.accessToken)}}},78238:(e,t,r)=>{"use strict";r.d(t,{T:()=>o});var n=r(23845),i=r(66094),s=r(28511);function o(e,t,r){var o;const c=null!==(o=null===r||void 0===r?void 0:r.expiry)&&void 0!==o?o:n.fc,l=(0,s.sX)("mutex");return async function(e,t,r){for(;!await(0,i.LDz)(e,t,r);)await(0,s.cb)(n.wL)}(e,l,c).then((async()=>{const r=new s.y1(c);try{const[e]=await Promise.all([t(r.signal.toAbortSignal()).then((e=>(r.cancel(),e))),r.signal.toPromise()]);return e}catch(n){if((0,s.Mn)(n))throw new a(e);throw n}finally{r.cancel(),await(0,i.x_1)(e)}}))}class a extends Error{constructor(e){super(`Lock for resource "${e}" has been expired`)}}},72790:(e,t,r)=>{"use strict";var n=r(92398);var i=function(e){return e.SOF="<SOF>",e.DIRECTIVE_NAME="directiveName",e.TYPE_NAME="typeName",e.MEMBER_NAME="memberName",e.ARGUMENT_NAME="argumentName",e.PUNCTUATION="punctuation",e.INVALID_CHAR="invalidchar",e}(i||{});(0,n.p)("@"),s(i.DIRECTIVE_NAME),(0,n.opt)("Argument"),s(i.TYPE_NAME),(0,n.opt)("Member"),(0,n.p)("."),s(i.MEMBER_NAME),(0,n.opt)("Argument"),(0,n.p)("("),s(i.ARGUMENT_NAME),(0,n.p)(":"),(0,n.p)(")");function s(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}},90126:(e,t,r)=>{"use strict";r.d(t,{Q:()=>u,k:()=>d});var n=r(4473),i=r(68341),s=(r(36022),r(23845)),o=r(29232),a=r(28511),c=(0,i.A)("handlers"),l=(0,i.A)("responseHandlers");class d{constructor(){Object.defineProperty(this,c,{writable:!0,value:[]}),Object.defineProperty(this,l,{writable:!0,value:new Map})}handleMessage(e,t){const r=(0,n.A)(this,l)[l].get(t.id);r?r(t,e):(0,n.A)(this,c)[c].filter((e=>e.type===t.type)).forEach((r=>{let{handle:n}=r;return n(t,e)}))}registerReceiveMessageHandler(e,t){const r={type:e,handle:t};return(0,n.A)(this,c)[c].push(r),()=>{const e=(0,n.A)(this,c)[c].indexOf(r);(0,n.A)(this,c)[c].splice(e,1)}}sendAndReceiveMessage(e){let t,r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=arguments.length>2?arguments[2]:void 0;return(0,a.bA)((()=>{var e;return null===(e=r)||void 0===e?void 0:e()}),(()=>new Promise(((d,u)=>{r=()=>{self.clearTimeout(t),u(a.eC),(0,o.yX)(this.getContext(),e.id),(0,n.A)(this,l)[l].delete(e.id)},t=i?void 0:self.setTimeout((()=>{u("Timeout exceeded 60 sec."),(0,n.A)(this,l)[l].delete(e.id)}),s.iW),(0,n.A)(this,l)[l].set(e.id,(e=>{if(null===c||void 0===c||!c.aborted){if((0,o.SA)(e)){const{errorMessage:t,kind:r,details:n}=e.payload;u(new o.zX(t,r,n))}else d(e.payload);self.clearTimeout(t),(0,n.A)(this,l)[l].delete(e.id)}})),this.getContext().sendMessage(e)}))),c)}sendMessage(e){this.getContext().sendMessage(e)}}class u{constructor(e,t,r){this.type=e,this.payload=t,this.id=void 0,this.createdAt=void 0,this.id=r||(0,a.sX)(),this.createdAt=(0,a.tB)()}}},82175:(e,t,r)=>{"use strict";r.d(t,{M_:()=>f,Mn:()=>m,bA:()=>p,eC:()=>o,y1:()=>v,zf:()=>A});var n=r(4473),i=r(68341);r(96183);const s="AbortError",o=new DOMException("Action cancelled",s),a="Action timed out",c=new DOMException(a,s);var l=(0,i.A)("signal"),d=(0,i.A)("checkIfCancelled"),u=(0,i.A)("promise");class h{constructor(e,t){Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,d,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),(0,n.A)(this,l)[l]=e,(0,n.A)(this,d)[d]=t}get aborted(){return(0,n.A)(this,l)[l].aborted}get cancelled(){return(0,n.A)(this,d)[d]()}get onabort(){return(0,n.A)(this,l)[l].onabort}get reason(){return(0,n.A)(this,l)[l].reason}dispatchEvent(e){return(0,n.A)(this,l)[l].dispatchEvent(e)}throwIfAborted(){(0,n.A)(this,l)[l].throwIfAborted()}toAbortSignal(){return(0,n.A)(this,l)[l]}toPromise(){if((0,n.A)(this,u)[u])return(0,n.A)(this,u)[u];const e=this;let t=!1;return(0,n.A)(this,u)[u]=new Promise(((r,n)=>{if(e.aborted)return t=!0,void n(c);if(e.cancelled)return t=!0,void r();function i(){e.removeEventListener("abort",i),e.removeEventListener("cancelled",s),t||(t=!0,n(c))}function s(){e.removeEventListener("abort",i),e.removeEventListener("cancelled",s),t||(t=!0,r())}e.addEventListener("abort",i),e.addEventListener("cancelled",s)})),(0,n.A)(this,u)[u]}addEventListener(e,t,r){(0,n.A)(this,l)[l].addEventListener(e,t,r)}removeEventListener(e,t,r){(0,n.A)(this,l)[l].removeEventListener(e,t,r)}}class v{constructor(e){this._controller=new AbortController,this._signal=new h(this._controller.signal,(()=>this._cancelled)),this._cancelled=!1,this._timeoutHandle=void 0,this._timeoutHandle=self.setTimeout((()=>{this.abort(a)}),e)}get signal(){return this._signal}abort(e){this._controller.abort(e)}cancel(){this._cancelled=!0,self.clearTimeout(this._timeoutHandle),this._signal.dispatchEvent(new Event("cancelled"))}}function A(e){return e instanceof DOMException&&e.name===s}function m(e){return A(e)&&e.message===a}function f(e,t){const r=new AbortController;if(e.aborted||t.aborted){var n;r.abort(null!==(n=e.reason)&&void 0!==n?n:t.reason)}else{function i(e){return()=>{r.signal.aborted||r.abort(e.reason)}}function s(){r.signal.removeEventListener("abort",s),e.removeEventListener("abort",i(e)),t.removeEventListener("abort",i(t))}r.signal.addEventListener("abort",s),e.addEventListener("abort",i(e)),t.addEventListener("abort",i(t))}return r.signal}function p(e,t,r){return r?r.aborted?Promise.reject(o):(r.addEventListener("abort",e),t().finally((()=>{r.removeEventListener("abort",e)}))):t()}},5198:(e,t,r)=>{"use strict";r(13798)},27362:(e,t,r)=>{"use strict";function n(e,t){return e.name.localeCompare(t.name,"en",{sensitivity:"base"})}r.d(t,{A:()=>n})},46765:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(23845);function i(e){return n.c7.test(e)}},44812:(e,t,r)=>{"use strict";function n(e){return new Promise((t=>{self.setTimeout(t,e)}))}r.d(t,{c:()=>n})},50477:()=>{},15340:()=>{},79838:()=>{},8330:e=>{"use strict";e.exports=JSON.parse('{"QC":"Nitro","rE":"
|
|
1
|
+
(self.webpackChunknitro=self.webpackChunknitro||[]).push([[435],{37551:(e,t,r)=>{"use strict";r.d(t,{L:()=>s,x:()=>o});var n=r(99850),i=r(28511);function s(e,t,r){return(0,n.SE)(["mutex"],"readwrite",(async n=>{const s=await n.store.mutex.get(e),o=()=>n.store.mutex.put({resource:e,owner:t,expiresAt:(0,i.tB)()+r});return s?(s.owner===t||s.expiresAt<(0,i.tB)())&&(await o(),!0):(await o(),!0)}))}function o(e){return(0,n.ot)((t=>t.delete("mutex",e)))}},95616:(e,t,r)=>{"use strict";r(99850)},4537:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});r(40231),r(95666),r(77845);var n=r(23845),i=r(28511),s=r(77122);async function o(e){var t;const r=await(0,s.ZH)();return{uri:(0,i.mv)(e)?e:new URL(e,null!==(t=null===r||void 0===r?void 0:r.apiUrl)&&void 0!==t?t:"https://api.chillicream.com").href,headers:function(e){const t=new Headers;if(t.set("CCC-Agent",n.mF),t.set("GraphQL-Agent",n.mF),t.set("GraphQL-Client-Id",n.ag),t.set("GraphQL-Client-Version",n.hl),t.set("GraphQL-Defer-RFC","v2"),!e)throw new s.jc;t.set("Authorization",`Bearer ${e}`);return t}(null===r||void 0===r?void 0:r.accessToken)}}},78238:(e,t,r)=>{"use strict";r.d(t,{T:()=>o});var n=r(23845),i=r(66094),s=r(28511);function o(e,t,r){var o;const c=null!==(o=null===r||void 0===r?void 0:r.expiry)&&void 0!==o?o:n.fc,l=(0,s.sX)("mutex");return async function(e,t,r){for(;!await(0,i.LDz)(e,t,r);)await(0,s.cb)(n.wL)}(e,l,c).then((async()=>{const r=new s.y1(c);try{const[e]=await Promise.all([t(r.signal.toAbortSignal()).then((e=>(r.cancel(),e))),r.signal.toPromise()]);return e}catch(n){if((0,s.Mn)(n))throw new a(e);throw n}finally{r.cancel(),await(0,i.x_1)(e)}}))}class a extends Error{constructor(e){super(`Lock for resource "${e}" has been expired`)}}},72790:(e,t,r)=>{"use strict";var n=r(92398);var i=function(e){return e.SOF="<SOF>",e.DIRECTIVE_NAME="directiveName",e.TYPE_NAME="typeName",e.MEMBER_NAME="memberName",e.ARGUMENT_NAME="argumentName",e.PUNCTUATION="punctuation",e.INVALID_CHAR="invalidchar",e}(i||{});(0,n.p)("@"),s(i.DIRECTIVE_NAME),(0,n.opt)("Argument"),s(i.TYPE_NAME),(0,n.opt)("Member"),(0,n.p)("."),s(i.MEMBER_NAME),(0,n.opt)("Argument"),(0,n.p)("("),s(i.ARGUMENT_NAME),(0,n.p)(":"),(0,n.p)(")");function s(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}},90126:(e,t,r)=>{"use strict";r.d(t,{Q:()=>u,k:()=>d});var n=r(4473),i=r(68341),s=(r(36022),r(23845)),o=r(29232),a=r(28511),c=(0,i.A)("handlers"),l=(0,i.A)("responseHandlers");class d{constructor(){Object.defineProperty(this,c,{writable:!0,value:[]}),Object.defineProperty(this,l,{writable:!0,value:new Map})}handleMessage(e,t){const r=(0,n.A)(this,l)[l].get(t.id);r?r(t,e):(0,n.A)(this,c)[c].filter((e=>e.type===t.type)).forEach((r=>{let{handle:n}=r;return n(t,e)}))}registerReceiveMessageHandler(e,t){const r={type:e,handle:t};return(0,n.A)(this,c)[c].push(r),()=>{const e=(0,n.A)(this,c)[c].indexOf(r);(0,n.A)(this,c)[c].splice(e,1)}}sendAndReceiveMessage(e){let t,r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=arguments.length>2?arguments[2]:void 0;return(0,a.bA)((()=>{var e;return null===(e=r)||void 0===e?void 0:e()}),(()=>new Promise(((d,u)=>{r=()=>{self.clearTimeout(t),u(a.eC),(0,o.yX)(this.getContext(),e.id),(0,n.A)(this,l)[l].delete(e.id)},t=i?void 0:self.setTimeout((()=>{u("Timeout exceeded 60 sec."),(0,n.A)(this,l)[l].delete(e.id)}),s.iW),(0,n.A)(this,l)[l].set(e.id,(e=>{if(null===c||void 0===c||!c.aborted){if((0,o.SA)(e)){const{errorMessage:t,kind:r,details:n}=e.payload;u(new o.zX(t,r,n))}else d(e.payload);self.clearTimeout(t),(0,n.A)(this,l)[l].delete(e.id)}})),this.getContext().sendMessage(e)}))),c)}sendMessage(e){this.getContext().sendMessage(e)}}class u{constructor(e,t,r){this.type=e,this.payload=t,this.id=void 0,this.createdAt=void 0,this.id=r||(0,a.sX)(),this.createdAt=(0,a.tB)()}}},82175:(e,t,r)=>{"use strict";r.d(t,{M_:()=>f,Mn:()=>m,bA:()=>p,eC:()=>o,y1:()=>v,zf:()=>A});var n=r(4473),i=r(68341);r(96183);const s="AbortError",o=new DOMException("Action cancelled",s),a="Action timed out",c=new DOMException(a,s);var l=(0,i.A)("signal"),d=(0,i.A)("checkIfCancelled"),u=(0,i.A)("promise");class h{constructor(e,t){Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,d,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),(0,n.A)(this,l)[l]=e,(0,n.A)(this,d)[d]=t}get aborted(){return(0,n.A)(this,l)[l].aborted}get cancelled(){return(0,n.A)(this,d)[d]()}get onabort(){return(0,n.A)(this,l)[l].onabort}get reason(){return(0,n.A)(this,l)[l].reason}dispatchEvent(e){return(0,n.A)(this,l)[l].dispatchEvent(e)}throwIfAborted(){(0,n.A)(this,l)[l].throwIfAborted()}toAbortSignal(){return(0,n.A)(this,l)[l]}toPromise(){if((0,n.A)(this,u)[u])return(0,n.A)(this,u)[u];const e=this;let t=!1;return(0,n.A)(this,u)[u]=new Promise(((r,n)=>{if(e.aborted)return t=!0,void n(c);if(e.cancelled)return t=!0,void r();function i(){e.removeEventListener("abort",i),e.removeEventListener("cancelled",s),t||(t=!0,n(c))}function s(){e.removeEventListener("abort",i),e.removeEventListener("cancelled",s),t||(t=!0,r())}e.addEventListener("abort",i),e.addEventListener("cancelled",s)})),(0,n.A)(this,u)[u]}addEventListener(e,t,r){(0,n.A)(this,l)[l].addEventListener(e,t,r)}removeEventListener(e,t,r){(0,n.A)(this,l)[l].removeEventListener(e,t,r)}}class v{constructor(e){this._controller=new AbortController,this._signal=new h(this._controller.signal,(()=>this._cancelled)),this._cancelled=!1,this._timeoutHandle=void 0,this._timeoutHandle=self.setTimeout((()=>{this.abort(a)}),e)}get signal(){return this._signal}abort(e){this._controller.abort(e)}cancel(){this._cancelled=!0,self.clearTimeout(this._timeoutHandle),this._signal.dispatchEvent(new Event("cancelled"))}}function A(e){return e instanceof DOMException&&e.name===s}function m(e){return A(e)&&e.message===a}function f(e,t){const r=new AbortController;if(e.aborted||t.aborted){var n;r.abort(null!==(n=e.reason)&&void 0!==n?n:t.reason)}else{function i(e){return()=>{r.signal.aborted||r.abort(e.reason)}}function s(){r.signal.removeEventListener("abort",s),e.removeEventListener("abort",i(e)),t.removeEventListener("abort",i(t))}r.signal.addEventListener("abort",s),e.addEventListener("abort",i(e)),t.addEventListener("abort",i(t))}return r.signal}function p(e,t,r){return r?r.aborted?Promise.reject(o):(r.addEventListener("abort",e),t().finally((()=>{r.removeEventListener("abort",e)}))):t()}},5198:(e,t,r)=>{"use strict";r(13798)},27362:(e,t,r)=>{"use strict";function n(e,t){return e.name.localeCompare(t.name,"en",{sensitivity:"base"})}r.d(t,{A:()=>n})},46765:(e,t,r)=>{"use strict";r.d(t,{m:()=>i});var n=r(23845);function i(e){return n.c7.test(e)}},44812:(e,t,r)=>{"use strict";function n(e){return new Promise((t=>{self.setTimeout(t,e)}))}r.d(t,{c:()=>n})},50477:()=>{},15340:()=>{},79838:()=>{},8330:e=>{"use strict";e.exports=JSON.parse('{"QC":"Nitro","rE":"21.0.0-insider.1"}')}}]);
|