@abtnode/blocklet-services 1.16.14-beta-0c29907f → 1.16.14-beta-d802cd3c
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/api/routes/blocklet.js +1 -1
- package/api/services/dashboard/index.js +1 -1
- package/build/asset-manifest.json +7 -7
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/652.d534b309.chunk.js +2 -0
- package/build/static/js/780.32bf1f5b.chunk.js +2 -0
- package/build/static/js/{main.efa52345.js → main.0357601e.js} +3 -3
- package/package.json +19 -19
- package/build/static/js/652.5fc00cd3.chunk.js +0 -2
- package/build/static/js/780.860d0370.chunk.js +0 -2
- /package/build/static/js/{main.efa52345.js.LICENSE.txt → main.0357601e.js.LICENSE.txt} +0 -0
package/api/routes/blocklet.js
CHANGED
|
@@ -36,7 +36,7 @@ const {
|
|
|
36
36
|
} = require('@abtnode/constant');
|
|
37
37
|
const logger = require('@abtnode/logger')(require('../../package.json').name);
|
|
38
38
|
|
|
39
|
-
const { createDownloadLogStream } = require('@abtnode/
|
|
39
|
+
const { createDownloadLogStream } = require('@abtnode/core/lib/util/log');
|
|
40
40
|
|
|
41
41
|
const { BlockletStatus } = require('@blocklet/constant');
|
|
42
42
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const get = require('lodash/get');
|
|
2
2
|
const { WsServer } = require('@arcblock/ws');
|
|
3
3
|
const { WELLKNOWN_SERVICE_PATH_PREFIX, ROLES, EVENTS } = require('@abtnode/constant');
|
|
4
|
-
const { createStreamLogManager, getLogFiles } = require('@abtnode/
|
|
4
|
+
const { createStreamLogManager, getLogFiles } = require('@abtnode/core/lib/util/log');
|
|
5
5
|
const { BlockletEvents } = require('@blocklet/constant');
|
|
6
6
|
const eventHub =
|
|
7
7
|
process.env.NODE_ENV === 'test' ? require('@arcblock/event-hub/single') : require('@arcblock/event-hub');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
3
|
"main.css": "/.well-known/service/static/static/css/main.7ea79dc8.css",
|
|
4
|
-
"main.js": "/.well-known/service/static/static/js/main.
|
|
4
|
+
"main.js": "/.well-known/service/static/static/js/main.0357601e.js",
|
|
5
5
|
"static/js/4716.a1240199.chunk.js": "/.well-known/service/static/static/js/4716.a1240199.chunk.js",
|
|
6
6
|
"static/js/4359.5ed52fe3.chunk.js": "/.well-known/service/static/static/js/4359.5ed52fe3.chunk.js",
|
|
7
7
|
"static/js/1255.0e8a8a45.chunk.js": "/.well-known/service/static/static/js/1255.0e8a8a45.chunk.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"static/js/3953.e3e51520.chunk.js": "/.well-known/service/static/static/js/3953.e3e51520.chunk.js",
|
|
11
11
|
"static/js/868.aa2a1c4d.chunk.js": "/.well-known/service/static/static/js/868.aa2a1c4d.chunk.js",
|
|
12
12
|
"static/js/4547.b26ceabb.chunk.js": "/.well-known/service/static/static/js/4547.b26ceabb.chunk.js",
|
|
13
|
-
"static/js/652.
|
|
13
|
+
"static/js/652.d534b309.chunk.js": "/.well-known/service/static/static/js/652.d534b309.chunk.js",
|
|
14
14
|
"static/js/4682.81053e18.chunk.js": "/.well-known/service/static/static/js/4682.81053e18.chunk.js",
|
|
15
15
|
"static/js/6711.a62d0bcd.chunk.js": "/.well-known/service/static/static/js/6711.a62d0bcd.chunk.js",
|
|
16
16
|
"static/js/8437.e4b47fc3.chunk.js": "/.well-known/service/static/static/js/8437.e4b47fc3.chunk.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"static/js/4603.f6b8d272.chunk.js": "/.well-known/service/static/static/js/4603.f6b8d272.chunk.js",
|
|
29
29
|
"static/js/5050.538edf89.chunk.js": "/.well-known/service/static/static/js/5050.538edf89.chunk.js",
|
|
30
30
|
"static/css/780.e3db6e49.chunk.css": "/.well-known/service/static/static/css/780.e3db6e49.chunk.css",
|
|
31
|
-
"static/js/780.
|
|
31
|
+
"static/js/780.32bf1f5b.chunk.js": "/.well-known/service/static/static/js/780.32bf1f5b.chunk.js",
|
|
32
32
|
"static/js/766.5dd16d47.chunk.js": "/.well-known/service/static/static/js/766.5dd16d47.chunk.js",
|
|
33
33
|
"static/js/5430.8114614c.chunk.js": "/.well-known/service/static/static/js/5430.8114614c.chunk.js",
|
|
34
34
|
"static/js/3800.faac00ca.chunk.js": "/.well-known/service/static/static/js/3800.faac00ca.chunk.js",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"router-template-styles/styles.css": "/.well-known/service/static/router-template-styles/styles.css",
|
|
88
88
|
"index.html": "/.well-known/service/static/index.html",
|
|
89
89
|
"main.7ea79dc8.css.map": "/.well-known/service/static/static/css/main.7ea79dc8.css.map",
|
|
90
|
-
"main.
|
|
90
|
+
"main.0357601e.js.map": "/.well-known/service/static/static/js/main.0357601e.js.map",
|
|
91
91
|
"4716.a1240199.chunk.js.map": "/.well-known/service/static/static/js/4716.a1240199.chunk.js.map",
|
|
92
92
|
"4359.5ed52fe3.chunk.js.map": "/.well-known/service/static/static/js/4359.5ed52fe3.chunk.js.map",
|
|
93
93
|
"1255.0e8a8a45.chunk.js.map": "/.well-known/service/static/static/js/1255.0e8a8a45.chunk.js.map",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"3953.e3e51520.chunk.js.map": "/.well-known/service/static/static/js/3953.e3e51520.chunk.js.map",
|
|
97
97
|
"868.aa2a1c4d.chunk.js.map": "/.well-known/service/static/static/js/868.aa2a1c4d.chunk.js.map",
|
|
98
98
|
"4547.b26ceabb.chunk.js.map": "/.well-known/service/static/static/js/4547.b26ceabb.chunk.js.map",
|
|
99
|
-
"652.
|
|
99
|
+
"652.d534b309.chunk.js.map": "/.well-known/service/static/static/js/652.d534b309.chunk.js.map",
|
|
100
100
|
"4682.81053e18.chunk.js.map": "/.well-known/service/static/static/js/4682.81053e18.chunk.js.map",
|
|
101
101
|
"6711.a62d0bcd.chunk.js.map": "/.well-known/service/static/static/js/6711.a62d0bcd.chunk.js.map",
|
|
102
102
|
"8437.e4b47fc3.chunk.js.map": "/.well-known/service/static/static/js/8437.e4b47fc3.chunk.js.map",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"4603.f6b8d272.chunk.js.map": "/.well-known/service/static/static/js/4603.f6b8d272.chunk.js.map",
|
|
115
115
|
"5050.538edf89.chunk.js.map": "/.well-known/service/static/static/js/5050.538edf89.chunk.js.map",
|
|
116
116
|
"780.e3db6e49.chunk.css.map": "/.well-known/service/static/static/css/780.e3db6e49.chunk.css.map",
|
|
117
|
-
"780.
|
|
117
|
+
"780.32bf1f5b.chunk.js.map": "/.well-known/service/static/static/js/780.32bf1f5b.chunk.js.map",
|
|
118
118
|
"766.5dd16d47.chunk.js.map": "/.well-known/service/static/static/js/766.5dd16d47.chunk.js.map",
|
|
119
119
|
"5430.8114614c.chunk.js.map": "/.well-known/service/static/static/js/5430.8114614c.chunk.js.map",
|
|
120
120
|
"3800.faac00ca.chunk.js.map": "/.well-known/service/static/static/js/3800.faac00ca.chunk.js.map",
|
|
@@ -152,6 +152,6 @@
|
|
|
152
152
|
},
|
|
153
153
|
"entrypoints": [
|
|
154
154
|
"static/css/main.7ea79dc8.css",
|
|
155
|
-
"static/js/main.
|
|
155
|
+
"static/js/main.0357601e.js"
|
|
156
156
|
]
|
|
157
157
|
}
|
package/build/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"/><meta name="theme-color" content="#000000"/><title>Blocklet Service</title><link rel="manifest" href="/.well-known/service/manifest.json"/><script src="/.well-known/service/api/env"></script><script src="/__blocklet__.js"></script><script defer="defer" src="/.well-known/service/static/static/js/main.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"/><meta name="theme-color" content="#000000"/><title>Blocklet Service</title><link rel="manifest" href="/.well-known/service/manifest.json"/><script src="/.well-known/service/api/env"></script><script src="/__blocklet__.js"></script><script defer="defer" src="/.well-known/service/static/static/js/main.0357601e.js"></script><link href="/.well-known/service/static/static/css/main.7ea79dc8.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
package/build/service-worker.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see service-worker.js.LICENSE.txt */
|
|
2
|
-
!function(){"use strict";var e={838:function(){try{self["workbox:core:6.5.3"]&&_()}catch(e){}},404:function(){try{self["workbox:expiration:6.5.3"]&&_()}catch(e){}},362:function(){try{self["workbox:precaching:6.5.3"]&&_()}catch(e){}},161:function(){try{self["workbox:routing:6.5.3"]&&_()}catch(e){}},880:function(){try{self["workbox:strategies:6.5.3"]&&_()}catch(e){}}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}!function(){r(838);var e=null;function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,r||"default");if("object"!==t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}function a(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,n(a.key),a)}}function i(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function h(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,r){if(r&&("object"===t(r)||"function"===typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){var t=h();return function(){var r,n=u(e);if(t){var a=u(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function p(e,t,r){return p=h()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&c(a,r.prototype),a},p.apply(null,arguments)}function v(e){var t="function"===typeof Map?new Map:void 0;return v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return p(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},v(e)}var d=function(e){for(var t=e,r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.length>0&&(t+=" :: ".concat(JSON.stringify(n))),t},y=function(e){o(r,e);var t=f(r);function r(e,n){var a;s(this,r);var i=d(e,n);return(a=t.call(this,i)).name=e,a.details=n,a}return i(r)}(v(Error)),b=new Set;var g,m={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},x=function(e){return[m.prefix,e,m.suffix].filter((function(e){return e&&e.length>0})).join("-")},w=function(e){return e||x(m.precache)},k=function(e){return e||x(m.runtime)};function _(){_=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",o=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(S){u=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,s=Object.create(i.prototype),c=new C(n||[]);return a(s,"_invoke",{value:k(e,r,c)}),s}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(S){return{type:"throw",arg:S}}}e.wrap=h;var f={};function p(){}function v(){}function d(){}var y={};u(y,s,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(O([])));g&&g!==r&&n.call(g,s)&&(y=g);var m=d.prototype=p.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,r){function i(a,s,c,o){var u=l(e[a],e,s);if("throw"!==u.type){var h=u.arg,f=h.value;return f&&"object"==t(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(e){i("next",e,c,o)}),(function(e){i("throw",e,c,o)})):r.resolve(f).then((function(e){h.value=e,c(h)}),(function(e){return i("throw",e,c,o)}))}o(u.arg)}var s;a(this,"_invoke",{value:function(e,t){function n(){return new r((function(r,n){i(e,t,r,n)}))}return s=s?s.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return j()}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var c=R(s,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var o=l(e,t,r);if("normal"===o.type){if(n=r.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:r.done}}"throw"===o.type&&(n="completed",r.method="throw",r.arg=o.arg)}}}function R(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,R(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var a=l(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return v.prototype=d,a(m,"constructor",{value:d,configurable:!0}),a(d,"constructor",{value:v,configurable:!0}),v.displayName=u(d,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,o,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},x(w.prototype),u(w.prototype,c,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var s=new w(h(t,r,n,a),i);return e.isGeneratorFunction(r)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},x(m),u(m,o,"Generator"),u(m,s,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return s.type="throw",s.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),o=n.call(i,"finallyLoc");if(c&&o){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;L(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function R(e,t,r,n,a,i,s){try{var c=e[i](s),o=c.value}catch(u){return void r(u)}c.done?t(o):Promise.resolve(o).then(n,a)}function E(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function s(e){R(i,n,a,s,c,"next",e)}function c(e){R(i,n,a,s,c,"throw",e)}s(void 0)}))}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){if(e){if("string"===typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}function O(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=C(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw i}}}}function j(e,t){var r,n=new URL(e),a=O(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;n.searchParams.delete(i)}}catch(s){a.e(s)}finally{a.f()}return n.href}function S(e,t,r,n){return P.apply(this,arguments)}function P(){return(P=E(_().mark((function e(t,r,n,a){var i,s,c,o,u,h,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=j(r.url,n),r.url!==i){e.next=3;break}return e.abrupt("return",t.match(r,a));case 3:return s=Object.assign(Object.assign({},a),{ignoreSearch:!0}),e.next=6,t.keys(r,s);case 6:c=e.sent,o=O(c),e.prev=8,o.s();case 10:if((u=o.n()).done){e.next=17;break}if(h=u.value,l=j(h.url,n),i!==l){e.next=15;break}return e.abrupt("return",t.match(h,a));case 15:e.next=10;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(8),o.e(e.t0);case 22:return e.prev=22,o.f(),e.finish(22);case 25:return e.abrupt("return");case 26:case"end":return e.stop()}}),e,null,[[8,19,22,25]])})))).apply(this,arguments)}function T(){if(void 0===g){var e=new Response("");if("body"in e)try{new Response(e.body),g=!0}catch(t){g=!1}g=!1}return g}function q(e){e.then((function(){}))}var D=i((function e(){var t=this;s(this,e),this.promise=new Promise((function(e,r){t.resolve=e,t.reject=r}))}));function U(){return N.apply(this,arguments)}function N(){return(N=E(_().mark((function e(){var t,r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,t=O(b),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=11;break}return n=r.value,e.next=8,n();case 8:0;case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),t.e(e.t0);case 16:return e.prev=16,t.f(),e.finish(16);case 19:0;case 20:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})))).apply(this,arguments)}var I=function(e){return new URL(String(e),location.href).href.replace(new RegExp("^".concat(location.origin)),"")};function A(e){return new Promise((function(t){return setTimeout(t,e)}))}function M(e,t){var r=t();return e.waitUntil(r),r}function K(e,t){return W.apply(this,arguments)}function W(){return(W=E(_().mark((function e(t,r){var n,a,i,s,c,o;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,t.url&&(a=new URL(t.url),n=a.origin),n===self.location.origin){e.next=4;break}throw new y("cross-origin-copy-response",{origin:n});case 4:if(i=t.clone(),s={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},c=r?r(s):s,!T()){e.next=11;break}e.t0=i.body,e.next=14;break;case 11:return e.next=13,i.blob();case 13:e.t0=e.sent;case 14:return o=e.t0,e.abrupt("return",new Response(o,c));case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,s,c=[],o=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(h){u=!0,a=h}finally{try{if(!o&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return c}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r(362);function H(e){if(!e)throw new y("add-to-cache-list-unexpected-type",{entry:e});if("string"===typeof e){var t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}var r=e.revision,n=e.url;if(!n)throw new y("add-to-cache-list-unexpected-type",{entry:e});if(!r){var a=new URL(n,location.href);return{cacheKey:a.href,url:a.href}}var i=new URL(n,location.href),s=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",r),{cacheKey:i.href,url:s.href}}var V=i((function e(){var t=this;s(this,e),this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=function(){var e=E(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.request,(n=t.state)&&(n.originalRequest=r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.cachedResponseWillBeUsed=function(){var e=E(_().mark((function e(r){var n,a,i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.event,a=r.state,i=r.cachedResponse,"install"===n.type&&a&&a.originalRequest&&a.originalRequest instanceof Request&&(s=a.originalRequest.url,i?t.notUpdatedURLs.push(s):t.updatedURLs.push(s)),e.abrupt("return",i);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),G=i((function e(t){var r=this,n=t.precacheController;s(this,e),this.cacheKeyWillBeUsed=function(){var e=E(_().mark((function e(t){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.request,a=t.params,i=(null===a||void 0===a?void 0:a.cacheKey)||r._precacheController.getCacheKeyForURL(n.url),e.abrupt("return",i?new Request(i,{headers:n.headers}):n);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._precacheController=n}));r(880);function Y(e){return"string"===typeof e?new Request(e):e}var $=function(){function t(e,r){s(this,t),this._cacheKeys={},Object.assign(this,r),this.event=r.event,this._strategy=e,this._handlerDeferred=new D,this._extendLifetimePromises=[],this._plugins=F(e.plugins),this._pluginStateMap=new Map;var n,a=O(this._plugins);try{for(a.s();!(n=a.n()).done;){var i=n.value;this._pluginStateMap.set(i,{})}}catch(c){a.e(c)}finally{a.f()}this.event.waitUntil(this._handlerDeferred.promise)}return i(t,[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=E(_().mark((function e(t){var r,n,a,i,s,c,o,u,h,l,f,p;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.event,!("navigate"===(n=Y(t)).mode&&r instanceof FetchEvent&&r.preloadResponse)){e.next=9;break}return e.next=5,r.preloadResponse;case 5:if(!(a=e.sent)){e.next=9;break}return e.abrupt("return",a);case 9:i=this.hasCallback("fetchDidFail")?n.clone():null,e.prev=10,s=O(this.iterateCallbacks("requestWillFetch")),e.prev=12,s.s();case 14:if((c=s.n()).done){e.next=21;break}return o=c.value,e.next=18,o({request:n.clone(),event:r});case 18:n=e.sent;case 19:e.next=14;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(12),s.e(e.t0);case 26:return e.prev=26,s.f(),e.finish(26);case 29:e.next=35;break;case 31:if(e.prev=31,e.t1=e.catch(10),!(e.t1 instanceof Error)){e.next=35;break}throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:e.t1.message});case 35:return u=n.clone(),e.prev=36,e.next=39,fetch(n,"navigate"===n.mode?void 0:this._strategy.fetchOptions);case 39:h=e.sent,l=O(this.iterateCallbacks("fetchDidSucceed")),e.prev=42,l.s();case 44:if((f=l.n()).done){e.next=51;break}return p=f.value,e.next=48,p({event:r,request:u,response:h});case 48:h=e.sent;case 49:e.next=44;break;case 51:e.next=56;break;case 53:e.prev=53,e.t2=e.catch(42),l.e(e.t2);case 56:return e.prev=56,l.f(),e.finish(56);case 59:return e.abrupt("return",h);case 62:if(e.prev=62,e.t3=e.catch(36),!i){e.next=68;break}return e.next=68,this.runCallbacks("fetchDidFail",{error:e.t3,event:r,originalRequest:i.clone(),request:u.clone()});case 68:throw e.t3;case 69:case"end":return e.stop()}}),e,this,[[10,31],[12,23,26,29],[36,62],[42,53,56,59]])})));return function(t){return e.apply(this,arguments)}}())},{key:"fetchAndCachePut",value:function(){var e=E(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetch(t);case 2:return r=e.sent,n=r.clone(),this.waitUntil(this.cachePut(t,n)),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"cacheMatch",value:function(){var e=E(_().mark((function e(t){var r,n,a,i,s,c,o,u,h,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Y(t),a=this._strategy,i=a.cacheName,s=a.matchOptions,e.next=4,this.getCacheKey(r,"read");case 4:return c=e.sent,o=Object.assign(Object.assign({},s),{cacheName:i}),e.next=8,caches.match(c,o);case 8:n=e.sent,u=O(this.iterateCallbacks("cachedResponseWillBeUsed")),e.prev=11,u.s();case 13:if((h=u.n()).done){e.next=23;break}return l=h.value,e.next=17,l({cacheName:i,matchOptions:s,cachedResponse:n,request:c,event:this.event});case 17:if(e.t0=e.sent,e.t0){e.next=20;break}e.t0=void 0;case 20:n=e.t0;case 21:e.next=13;break;case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(11),u.e(e.t1);case 28:return e.prev=28,u.f(),e.finish(28);case 31:return e.abrupt("return",n);case 32:case"end":return e.stop()}}),e,this,[[11,25,28,31]])})));return function(t){return e.apply(this,arguments)}}()},{key:"cachePut",value:function(){var t=E(_().mark((function t(r,n){var a,i,s,c,o,u,h,l,f,p,v,d,b;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=Y(r),t.next=3,A(0);case 3:return t.next=5,this.getCacheKey(a,"write");case 5:i=t.sent,t.next=11;break;case 9:(s=n.headers.get("Vary"))&&e.debug("The response for ".concat(I(i.url)," ")+"has a 'Vary: ".concat(s,"' header. ")+"Consider setting the {ignoreVary: true} option on your strategy to ensure cache matching and deletion works as expected.");case 11:if(n){t.next=14;break}throw new y("cache-put-with-no-response",{url:I(i.url)});case 14:return t.next=16,this._ensureResponseSafeToCache(n);case 16:if(c=t.sent){t.next=20;break}return t.abrupt("return",!1);case 20:return o=this._strategy,u=o.cacheName,h=o.matchOptions,t.next=23,self.caches.open(u);case 23:if(l=t.sent,!(f=this.hasCallback("cacheDidUpdate"))){t.next=31;break}return t.next=28,S(l,i.clone(),["__WB_REVISION__"],h);case 28:t.t0=t.sent,t.next=32;break;case 31:t.t0=null;case 32:return p=t.t0,t.prev=34,t.next=37,l.put(i,f?c.clone():c);case 37:t.next=46;break;case 39:if(t.prev=39,t.t1=t.catch(34),!(t.t1 instanceof Error)){t.next=46;break}if("QuotaExceededError"!==t.t1.name){t.next=45;break}return t.next=45,U();case 45:throw t.t1;case 46:v=O(this.iterateCallbacks("cacheDidUpdate")),t.prev=47,v.s();case 49:if((d=v.n()).done){t.next=55;break}return b=d.value,t.next=53,b({cacheName:u,oldResponse:p,newResponse:c.clone(),request:i,event:this.event});case 53:t.next=49;break;case 55:t.next=60;break;case 57:t.prev=57,t.t2=t.catch(47),v.e(t.t2);case 60:return t.prev=60,v.f(),t.finish(60);case 63:return t.abrupt("return",!0);case 64:case"end":return t.stop()}}),t,this,[[34,39],[47,57,60,63]])})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getCacheKey",value:function(){var e=E(_().mark((function e(t,r){var n,a,i,s,c;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="".concat(t.url," | ").concat(r),this._cacheKeys[n]){e.next=24;break}a=t,i=O(this.iterateCallbacks("cacheKeyWillBeUsed")),e.prev=4,i.s();case 6:if((s=i.n()).done){e.next=15;break}return c=s.value,e.t0=Y,e.next=11,c({mode:r,request:a,event:this.event,params:this.params});case 11:e.t1=e.sent,a=(0,e.t0)(e.t1);case 13:e.next=6;break;case 15:e.next=20;break;case 17:e.prev=17,e.t2=e.catch(4),i.e(e.t2);case 20:return e.prev=20,i.f(),e.finish(20);case 23:this._cacheKeys[n]=a;case 24:return e.abrupt("return",this._cacheKeys[n]);case 25:case"end":return e.stop()}}),e,this,[[4,17,20,23]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"hasCallback",value:function(e){var t,r=O(this._strategy.plugins);try{for(r.s();!(t=r.n()).done;){if(e in t.value)return!0}}catch(n){r.e(n)}finally{r.f()}return!1}},{key:"runCallbacks",value:function(){var e=E(_().mark((function e(t,r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=O(this.iterateCallbacks(t)),e.prev=1,n.s();case 3:if((a=n.n()).done){e.next=9;break}return i=a.value,e.next=7,i(r);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"iterateCallbacks",value:_().mark((function e(t){var r,n,a,i=this;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=O(this._strategy.plugins),e.prev=1,a=_().mark((function e(){var r,a,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof(r=n.value)[t]){e.next=6;break}return a=i._pluginStateMap.get(r),s=function(e){var n=Object.assign(Object.assign({},e),{state:a});return r[t](n)},e.next=6,s;case 6:case"end":return e.stop()}}),e)})),r.s();case 4:if((n=r.n()).done){e.next=8;break}return e.delegateYield(a(),"t0",6);case 6:e.next=4;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),r.e(e.t1);case 13:return e.prev=13,r.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,10,13,16]])}))},{key:"waitUntil",value:function(e){return this._extendLifetimePromises.push(e),e}},{key:"doneWaiting",value:function(){var e=E(_().mark((function e(){var t;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this._extendLifetimePromises.shift())){e.next=5;break}return e.next=3,t;case 3:e.next=0;break;case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"destroy",value:function(){this._handlerDeferred.resolve(null)}},{key:"_ensureResponseSafeToCache",value:function(){var e=E(_().mark((function e(t){var r,n,a,i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t,n=!1,a=O(this.iterateCallbacks("cacheWillUpdate")),e.prev=3,a.s();case 5:if((i=a.n()).done){e.next=18;break}return s=i.value,e.next=9,s({request:this.request,response:r,event:this.event});case 9:if(e.t0=e.sent,e.t0){e.next=12;break}e.t0=void 0;case 12:if(r=e.t0,n=!0,r){e.next=16;break}return e.abrupt("break",18);case 16:e.next=5;break;case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(3),a.e(e.t1);case 23:return e.prev=23,a.f(),e.finish(23);case 26:return n||r&&200!==r.status&&(r=void 0),e.abrupt("return",r);case 28:case"end":return e.stop()}}),e,this,[[3,20,23,26]])})));return function(t){return e.apply(this,arguments)}}()}]),t}(),Q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.cacheName=k(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}return i(e,[{key:"handle",value:function(e){return B(this.handleAll(e),1)[0]}},{key:"handleAll",value:function(e){e instanceof FetchEvent&&(e={event:e,request:e.request});var t=e.event,r="string"===typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new $(this,{event:t,request:r,params:n}),i=this._getResponse(a,r,t);return[i,this._awaitComplete(i,a,r,t)]}},{key:"_getResponse",value:function(){var e=E(_().mark((function e(t,r,n){var a,i,s,c,o,u,h;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.runCallbacks("handlerWillStart",{event:n,request:r});case 2:return a=void 0,e.prev=3,e.next=6,this._handle(r,t);case 6:if((a=e.sent)&&"error"!==a.type){e.next=9;break}throw new y("no-response",{url:r.url});case 9:e.next=39;break;case 11:if(e.prev=11,e.t0=e.catch(3),!(e.t0 instanceof Error)){e.next=34;break}i=O(t.iterateCallbacks("handlerDidError")),e.prev=15,i.s();case 17:if((s=i.n()).done){e.next=26;break}return c=s.value,e.next=21,c({error:e.t0,event:n,request:r});case 21:if(!(a=e.sent)){e.next=24;break}return e.abrupt("break",26);case 24:e.next=17;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(15),i.e(e.t1);case 31:return e.prev=31,i.f(),e.finish(31);case 34:if(a){e.next=38;break}throw e.t0;case 38:0;case 39:o=O(t.iterateCallbacks("handlerWillRespond")),e.prev=40,o.s();case 42:if((u=o.n()).done){e.next=49;break}return h=u.value,e.next=46,h({event:n,request:r,response:a});case 46:a=e.sent;case 47:e.next=42;break;case 49:e.next=54;break;case 51:e.prev=51,e.t2=e.catch(40),o.e(e.t2);case 54:return e.prev=54,o.f(),e.finish(54);case 57:return e.abrupt("return",a);case 58:case"end":return e.stop()}}),e,this,[[3,11],[15,28,31,34],[40,51,54,57]])})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"_awaitComplete",value:function(){var e=E(_().mark((function e(t,r,n,a){var i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:i=e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.prev=8,e.next=11,r.runCallbacks("handlerDidRespond",{event:a,request:n,response:i});case 11:return e.next=13,r.doneWaiting();case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(8),e.t1 instanceof Error&&(s=e.t1);case 18:return e.next=20,r.runCallbacks("handlerDidComplete",{event:a,request:n,response:i,error:s});case 20:if(r.destroy(),!s){e.next=23;break}throw s;case 23:case"end":return e.stop()}}),e,null,[[0,6],[8,15]])})));return function(t,r,n,a){return e.apply(this,arguments)}}()}]),e}(),J=function(t){o(n,t);var r=f(n);function n(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),t.cacheName=w(t.cacheName),(e=r.call(this,t))._fallbackToNetwork=!1!==t.fallbackToNetwork,e.plugins.push(n.copyRedirectedCacheableResponsesPlugin),e}return i(n,[{key:"_handle",value:function(){var e=E(_().mark((function e(t,r){var n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.cacheMatch(t);case 2:if(!(n=e.sent)){e.next=5;break}return e.abrupt("return",n);case 5:if(!r.event||"install"!==r.event.type){e.next=9;break}return e.next=8,this._handleInstall(t,r);case 8:case 11:return e.abrupt("return",e.sent);case 9:return e.next=11,this._handleFetch(t,r);case 12:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_handleFetch",value:function(){var t=E(_().mark((function t(r,n){var a,i,s,c,o,u;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.params||{},!this._fallbackToNetwork){t.next=17;break}return s=i.integrity,c=r.integrity,o=!c||c===s,t.next=8,n.fetch(new Request(r,{integrity:"no-cors"!==r.mode?c||s:void 0}));case 8:if(a=t.sent,!s||!o||"no-cors"===r.mode){t.next=15;break}return this._useDefaultCacheabilityPluginIfNeeded(),t.next=13,n.cachePut(r,a.clone());case 13:t.sent;case 15:t.next=18;break;case 17:throw new y("missing-precache-entry",{cacheName:this.cacheName,url:r.url});case 18:t.next=34;break;case 23:t.t0=t.sent;case 24:u=t.t0,e.groupCollapsed("Precaching is responding to: "+I(r.url)),e.log("Serving the precached url: ".concat(I(u instanceof Request?u.url:u))),e.groupCollapsed("View request details here."),e.log(r),e.groupEnd(),e.groupCollapsed("View response details here."),e.log(a),e.groupEnd(),e.groupEnd();case 34:return t.abrupt("return",a);case 35:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"_handleInstall",value:function(){var e=E(_().mark((function e(t,r){var n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._useDefaultCacheabilityPluginIfNeeded(),e.next=3,r.fetch(t);case 3:return n=e.sent,e.next=6,r.cachePut(t,n.clone());case 6:if(e.sent){e.next=9;break}throw new y("bad-precaching-response",{url:t.url,status:n.status});case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_useDefaultCacheabilityPluginIfNeeded",value:function(){var e,t=null,r=0,a=O(this.plugins.entries());try{for(a.s();!(e=a.n()).done;){var i=B(e.value,2),s=i[0],c=i[1];c!==n.copyRedirectedCacheableResponsesPlugin&&(c===n.defaultPrecacheCacheabilityPlugin&&(t=s),c.cacheWillUpdate&&r++)}}catch(o){a.e(o)}finally{a.f()}0===r?this.plugins.push(n.defaultPrecacheCacheabilityPlugin):r>1&&null!==t&&this.plugins.splice(t,1)}}]),n}(Q);J.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:function(e){return E(_().mark((function t(){var r;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=e.response)&&!(r.status>=400)){t.next=3;break}return t.abrupt("return",null);case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()}},J.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:function(e){return E(_().mark((function t(){var r;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.response).redirected){t.next=7;break}return t.next=4,K(r);case 4:t.t0=t.sent,t.next=8;break;case 7:t.t0=r;case 8:return t.abrupt("return",t.t0);case 9:case"end":return t.stop()}}),t)})))()}};var z,X=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.cacheName,n=t.plugins,a=void 0===n?[]:n,i=t.fallbackToNetwork,c=void 0===i||i;s(this,e),this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new J({cacheName:w(r),plugins:[].concat(F(a),[new G({precacheController:this})]),fallbackToNetwork:c}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}return i(e,[{key:"strategy",get:function(){return this._strategy}},{key:"precache",value:function(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}},{key:"addToCacheList",value:function(e){var t,r=[],n=O(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;"string"===typeof a?r.push(a):a&&void 0===a.revision&&r.push(a.url);var i=H(a),s=i.cacheKey,c=i.url,o="string"!==typeof a&&a.revision?"reload":"default";if(this._urlsToCacheKeys.has(c)&&this._urlsToCacheKeys.get(c)!==s)throw new y("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(c),secondEntry:s});if("string"!==typeof a&&a.integrity){if(this._cacheKeysToIntegrities.has(s)&&this._cacheKeysToIntegrities.get(s)!==a.integrity)throw new y("add-to-cache-list-conflicting-integrities",{url:c});this._cacheKeysToIntegrities.set(s,a.integrity)}if(this._urlsToCacheKeys.set(c,s),this._urlsToCacheModes.set(c,o),r.length>0){var u="Workbox is precaching URLs without revision "+"info: ".concat(r.join(", "),"\nThis is generally NOT safe. ")+"Learn more at https://bit.ly/wb-precache";console.warn(u)}}}catch(h){n.e(h)}finally{n.f()}}},{key:"install",value:function(e){var t=this;return M(e,E(_().mark((function r(){var n,a,i,s,c,o,u,h,l,f,p;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=new V,t.strategy.plugins.push(n),a=O(t._urlsToCacheKeys),r.prev=3,a.s();case 5:if((i=a.n()).done){r.next=14;break}return s=B(i.value,2),c=s[0],o=s[1],u=t._cacheKeysToIntegrities.get(o),h=t._urlsToCacheModes.get(c),l=new Request(c,{integrity:u,cache:h,credentials:"same-origin"}),r.next=12,Promise.all(t.strategy.handleAll({params:{cacheKey:o},request:l,event:e}));case 12:r.next=5;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(3),a.e(r.t0);case 19:return r.prev=19,a.f(),r.finish(19);case 22:return f=n.updatedURLs,p=n.notUpdatedURLs,r.abrupt("return",{updatedURLs:f,notUpdatedURLs:p});case 25:case"end":return r.stop()}}),r,null,[[3,16,19,22]])}))))}},{key:"activate",value:function(e){var t=this;return M(e,E(_().mark((function e(){var r,n,a,i,s,c,o;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,self.caches.open(t.strategy.cacheName);case 2:return r=e.sent,e.next=5,r.keys();case 5:n=e.sent,a=new Set(t._urlsToCacheKeys.values()),i=[],s=O(n),e.prev=9,s.s();case 11:if((c=s.n()).done){e.next=19;break}if(o=c.value,a.has(o.url)){e.next=17;break}return e.next=16,r.delete(o);case 16:i.push(o.url);case 17:e.next=11;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(9),s.e(e.t0);case 24:return e.prev=24,s.f(),e.finish(24);case 27:return e.abrupt("return",{deletedURLs:i});case 29:case"end":return e.stop()}}),e,null,[[9,21,24,27]])}))))}},{key:"getURLsToCacheKeys",value:function(){return this._urlsToCacheKeys}},{key:"getCachedURLs",value:function(){return F(this._urlsToCacheKeys.keys())}},{key:"getCacheKeyForURL",value:function(e){var t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}},{key:"getIntegrityForCacheKey",value:function(e){return this._cacheKeysToIntegrities.get(e)}},{key:"matchPrecache",value:function(){var e=E(_().mark((function e(t){var r,n,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t instanceof Request?t.url:t,!(n=this.getCacheKeyForURL(r))){e.next=7;break}return e.next=5,self.caches.open(this.strategy.cacheName);case 5:return a=e.sent,e.abrupt("return",a.match(n));case 7:return e.abrupt("return",void 0);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"createHandlerBoundToURL",value:function(e){var t=this,r=this.getCacheKeyForURL(e);if(!r)throw new y("non-precached-url",{url:e});return function(n){return n.request=new Request(e),n.params=Object.assign({cacheKey:r},n.params),t.strategy.handle(n)}}}]),e}(),Z=function(){return z||(z=new X),z};r(161);var ee,te=function(e){return e&&"object"===typeof e?e:{handle:e}},re=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";s(this,e),this.handler=te(r),this.match=t,this.method=n}return i(e,[{key:"setCatchHandler",value:function(e){this.catchHandler=te(e)}}]),e}(),ne=function(e){o(r,e);var t=f(r);function r(e,n,a){s(this,r);return t.call(this,(function(t){var r=t.url,n=e.exec(r.href);if(n&&(r.origin===location.origin||0===n.index))return n.slice(1)}),n,a)}return i(r)}(re),ae=function(){function e(){s(this,e),this._routes=new Map,this._defaultHandlerMap=new Map}return i(e,[{key:"routes",get:function(){return this._routes}},{key:"addFetchListener",value:function(){var e=this;self.addEventListener("fetch",(function(t){var r=t.request,n=e.handleRequest({request:r,event:t});n&&t.respondWith(n)}))}},{key:"addCacheListener",value:function(){var e=this;self.addEventListener("message",(function(t){if(t.data&&"CACHE_URLS"===t.data.type){var r=t.data.payload;0;var n=Promise.all(r.urlsToCache.map((function(r){"string"===typeof r&&(r=[r]);var n=p(Request,F(r));return e.handleRequest({request:n,event:t})})));t.waitUntil(n),t.ports&&t.ports[0]&&n.then((function(){return t.ports[0].postMessage(!0)}))}}))}},{key:"handleRequest",value:function(e){var t=this,r=e.request,n=e.event;var a=new URL(r.url,location.href);if(a.protocol.startsWith("http")){var i=a.origin===location.origin,s=this.findMatchingRoute({event:n,request:r,sameOrigin:i,url:a}),c=s.params,o=s.route,u=o&&o.handler;0;var h=r.method;if(!u&&this._defaultHandlerMap.has(h)&&(u=this._defaultHandlerMap.get(h)),u){var l;0;try{l=u.handle({url:a,request:r,event:n,params:c})}catch(p){l=Promise.reject(p)}var f=o&&o.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(function(){var e=E(_().mark((function e(i){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!f){e.next=11;break}return e.prev=2,e.next=5,f.handle({url:a,request:r,event:n,params:c});case 5:return e.abrupt("return",e.sent);case 8:e.prev=8,e.t0=e.catch(2),e.t0 instanceof Error&&(i=e.t0);case 11:if(!t._catchHandler){e.next=14;break}return e.abrupt("return",t._catchHandler.handle({url:a,request:r,event:n}));case 14:throw i;case 15:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}())),l}}}},{key:"findMatchingRoute",value:function(e){var t,r=e.url,n=e.sameOrigin,a=e.request,i=e.event,s=O(this._routes.get(a.method)||[]);try{for(s.s();!(t=s.n()).done;){var c=t.value,o=void 0,u=c.match({url:r,sameOrigin:n,request:a,event:i});if(u)return o=u,(Array.isArray(o)&&0===o.length||u.constructor===Object&&0===Object.keys(u).length||"boolean"===typeof u)&&(o=void 0),{route:c,params:o}}}catch(h){s.e(h)}finally{s.f()}return{}}},{key:"setDefaultHandler",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";this._defaultHandlerMap.set(t,te(e))}},{key:"setCatchHandler",value:function(e){this._catchHandler=te(e)}},{key:"registerRoute",value:function(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}},{key:"unregisterRoute",value:function(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});var t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new y("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}]),e}(),ie=function(){return ee||((ee=new ae).addFetchListener(),ee.addCacheListener()),ee};function se(e,t,r){var n;if("string"===typeof e){var a=new URL(e,location.href);n=new re((function(e){return e.url.href===a.href}),t,r)}else if(e instanceof RegExp)n=new ne(e,t,r);else if("function"===typeof e)n=new re(e,t,r);else{if(!(e instanceof re))throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});n=e}return ie().registerRoute(n),n}function ce(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function(){var r=a[n];t.some((function(e){return e.test(r)}))&&e.searchParams.delete(r)},n=0,a=F(e.searchParams.keys());n<a.length;n++)r();return e}var oe=function(e){o(r,e);var t=f(r);function r(e,n){s(this,r);return t.call(this,(function(t){var r,a=t.request,i=e.getURLsToCacheKeys(),s=O(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ignoreURLParametersMatching,n=void 0===r?[/^utm_/,/^fbclid$/]:r,a=t.directoryIndex,i=void 0===a?"index.html":a,s=t.cleanURLs,c=void 0===s||s,o=t.urlManipulation;return _().mark((function t(){var r,a,s,u,h,l,f,p;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new URL(e,location.href)).hash="",t.next=4,r.href;case 4:return a=ce(r,n),t.next=7,a.href;case 7:if(!i||!a.pathname.endsWith("/")){t.next=12;break}return(s=new URL(a.href)).pathname+=i,t.next=12,s.href;case 12:if(!c){t.next=17;break}return(u=new URL(a.href)).pathname+=".html",t.next=17,u.href;case 17:if(!o){t.next=36;break}h=o({url:r}),l=O(h),t.prev=20,l.s();case 22:if((f=l.n()).done){t.next=28;break}return p=f.value,t.next=26,p.href;case 26:t.next=22;break;case 28:t.next=33;break;case 30:t.prev=30,t.t0=t.catch(20),l.e(t.t0);case 33:return t.prev=33,l.f(),t.finish(33);case 36:case"end":return t.stop()}}),t,null,[[20,30,33,36]])}))()}(a.url,n));try{for(s.s();!(r=s.n()).done;){var c=r.value,o=i.get(c);if(o)return{cacheKey:o,integrity:e.getIntegrityForCacheKey(o)}}}catch(u){s.e(u)}finally{s.f()}}),e.strategy)}return i(r)}(re);function ue(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){ue(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var fe,pe,ve=function(e,t){return t.some((function(t){return e instanceof t}))};var de=new WeakMap,ye=new WeakMap,be=new WeakMap,ge=new WeakMap,me=new WeakMap;var xe={get:function(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return ye.get(e);if("objectStoreNames"===t)return e.objectStoreNames||be.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return _e(e[t])},set:function(e,t,r){return e[t]=r,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function we(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(pe||(pe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(Re(this),r),_e(de.get(this))}:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _e(e.apply(Re(this),r))}:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=e.call.apply(e,[Re(this),t].concat(n));return be.set(i,t.sort?t.sort():[t]),_e(i)}}function ke(e){return"function"===typeof e?we(e):(e instanceof IDBTransaction&&function(e){if(!ye.has(e)){var t=new Promise((function(t,r){var n=function(){e.removeEventListener("complete",a),e.removeEventListener("error",i),e.removeEventListener("abort",i)},a=function(){t(),n()},i=function(){r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",i),e.addEventListener("abort",i)}));ye.set(e,t)}}(e),ve(e,fe||(fe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,xe):e)}function _e(e){if(e instanceof IDBRequest)return function(e){var t=new Promise((function(t,r){var n=function(){e.removeEventListener("success",a),e.removeEventListener("error",i)},a=function(){t(_e(e.result)),n()},i=function(){r(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",i)}));return t.then((function(t){t instanceof IDBCursor&&de.set(t,e)})).catch((function(){})),me.set(t,e),t}(e);if(ge.has(e))return ge.get(e);var t=ke(e);return t!==e&&(ge.set(e,t),me.set(t,e)),t}var Re=function(e){return me.get(e)};function Ee(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.blocked,a=r.upgrade,i=r.blocking,s=r.terminated,c=indexedDB.open(e,t),o=_e(c);return a&&c.addEventListener("upgradeneeded",(function(e){a(_e(c.result),e.oldVersion,e.newVersion,_e(c.transaction),e)})),n&&c.addEventListener("blocked",(function(e){return n(e.oldVersion,e.newVersion,e)})),o.then((function(e){s&&e.addEventListener("close",(function(){return s()})),i&&e.addEventListener("versionchange",(function(e){return i(e.oldVersion,e.newVersion,e)}))})).catch((function(){})),o}var Le=["get","getKey","getAll","getAllKeys","count"],Ce=["put","add","delete","clear"],Oe=new Map;function je(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"===typeof t){if(Oe.get(t))return Oe.get(t);var r=t.replace(/FromIndex$/,""),n=t!==r,a=Ce.includes(r);if(r in(n?IDBIndex:IDBObjectStore).prototype&&(a||Le.includes(r))){var i=function(){var e=E(_().mark((function e(t){var i,s,c,o,u,h,l=arguments;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s=this.transaction(t,a?"readwrite":"readonly"),c=s.store,o=l.length,u=new Array(o>1?o-1:0),h=1;h<o;h++)u[h-1]=l[h];return n&&(c=c.index(u.shift())),e.next=6,Promise.all([(i=c)[r].apply(i,u),a&&s.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();return Oe.set(t,i),i}}}xe=function(e){return le(le({},e),{},{get:function(t,r,n){return je(t,r)||e.get(t,r,n)},has:function(t,r){return!!je(t,r)||e.has(t,r)}})}(xe);r(404);var Se="cache-entries",Pe=function(e){var t=new URL(e,location.href);return t.hash="",t.href},Te=function(){function e(t){s(this,e),this._db=null,this._cacheName=t}return i(e,[{key:"_upgradeDb",value:function(e){var t=e.createObjectStore(Se,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}},{key:"_upgradeDbAndDeleteOldDbs",value:function(e){this._upgradeDb(e),this._cacheName&&function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).blocked,r=indexedDB.deleteDatabase(e);t&&r.addEventListener("blocked",(function(e){return t(e.oldVersion,e)})),_e(r).then((function(){}))}(this._cacheName)}},{key:"setTimestamp",value:function(){var e=E(_().mark((function e(t,r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Pe(t),n={url:t,timestamp:r,cacheName:this._cacheName,id:this._getId(t)},e.next=4,this.getDb();case 4:return a=e.sent,i=a.transaction(Se,"readwrite",{durability:"relaxed"}),e.next=8,i.store.put(n);case 8:return e.next=10,i.done;case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getTimestamp",value:function(){var e=E(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getDb();case 2:return r=e.sent,e.next=5,r.get(Se,this._getId(t));case 5:return n=e.sent,e.abrupt("return",null===n||void 0===n?void 0:n.timestamp);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"expireEntries",value:function(){var e=E(_().mark((function e(t,r){var n,a,i,s,c,o,u,h,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getDb();case 2:return n=e.sent,e.next=5,n.transaction(Se).store.index("timestamp").openCursor(null,"prev");case 5:a=e.sent,i=[],s=0;case 8:if(!a){e.next=16;break}return(c=a.value).cacheName===this._cacheName&&(t&&c.timestamp<t||r&&s>=r?i.push(a.value):s++),e.next=13,a.continue();case 13:a=e.sent,e.next=8;break;case 16:o=[],u=0,h=i;case 18:if(!(u<h.length)){e.next=26;break}return l=h[u],e.next=22,n.delete(Se,l.id);case 22:o.push(l.url);case 23:u++,e.next=18;break;case 26:return e.abrupt("return",o);case 27:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_getId",value:function(e){return this._cacheName+"|"+Pe(e)}},{key:"getDb",value:function(){var e=E(_().mark((function e(){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._db){e.next=4;break}return e.next=3,Ee("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)});case 3:this._db=e.sent;case 4:return e.abrupt("return",this._db);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),qe=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=r.maxEntries,this._maxAgeSeconds=r.maxAgeSeconds,this._matchOptions=r.matchOptions,this._cacheName=t,this._timestampModel=new Te(t)}return i(e,[{key:"expireEntries",value:function(){var e=E(_().mark((function e(){var t,r,n,a,i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isRunning){e.next=3;break}return this._rerunRequested=!0,e.abrupt("return");case 3:return this._isRunning=!0,t=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,e.next=7,this._timestampModel.expireEntries(t,this._maxEntries);case 7:return r=e.sent,e.next=10,self.caches.open(this._cacheName);case 10:n=e.sent,a=O(r),e.prev=12,a.s();case 14:if((i=a.n()).done){e.next=20;break}return s=i.value,e.next=18,n.delete(s,this._matchOptions);case 18:e.next=14;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(12),a.e(e.t0);case 25:return e.prev=25,a.f(),e.finish(25);case 28:0,this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,q(this.expireEntries()));case 31:case"end":return e.stop()}}),e,this,[[12,22,25,28]])})));return function(){return e.apply(this,arguments)}}()},{key:"updateTimestamp",value:function(){var e=E(_().mark((function e(t){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this._timestampModel.setTimestamp(t,Date.now());case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"isURLExpired",value:function(){var e=E(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._maxAgeSeconds){e.next=6;break}e.next=3;break;case 3:return e.abrupt("return",!1);case 6:return e.next=8,this._timestampModel.getTimestamp(t);case 8:return r=e.sent,n=Date.now()-1e3*this._maxAgeSeconds,e.abrupt("return",void 0===r||r<n);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=E(_().mark((function e(){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._rerunRequested=!1,e.next=3,this._timestampModel.expireEntries(1/0);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),De=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.cachedResponseWillBeUsed=function(){var e=E(_().mark((function e(r){var n,a,i,s,c,o,u;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.event,a=r.request,i=r.cacheName,s=r.cachedResponse){e.next=3;break}return e.abrupt("return",null);case 3:if(c=t._isResponseDateFresh(s),q((o=t._getCacheExpiration(i)).expireEntries()),u=o.updateTimestamp(a.url),n)try{n.waitUntil(u)}catch(h){0}return e.abrupt("return",c?s:null);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.cacheDidUpdate=function(){var e=E(_().mark((function e(r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.cacheName,a=r.request,i=t._getCacheExpiration(n),e.next=5,i.updateTimestamp(a.url);case 5:return e.next=7,i.expireEntries();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._config=r,this._maxAgeSeconds=r.maxAgeSeconds,this._cacheExpirations=new Map,r.purgeOnQuotaError&&function(e){b.add(e)}((function(){return t.deleteCacheAndMetadata()}))}return i(e,[{key:"_getCacheExpiration",value:function(e){if(e===k())throw new y("expire-custom-caches-only");var t=this._cacheExpirations.get(e);return t||(t=new qe(e,this._config),this._cacheExpirations.set(e,t)),t}},{key:"_isResponseDateFresh",value:function(e){if(!this._maxAgeSeconds)return!0;var t=this._getDateHeaderTimestamp(e);return null===t||t>=Date.now()-1e3*this._maxAgeSeconds}},{key:"_getDateHeaderTimestamp",value:function(e){if(!e.headers.has("date"))return null;var t=e.headers.get("date"),r=new Date(t).getTime();return isNaN(r)?null:r}},{key:"deleteCacheAndMetadata",value:function(){var e=E(_().mark((function e(){var t,r,n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=O(this._cacheExpirations),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=11;break}return n=B(r.value,2),a=n[0],i=n[1],e.next=7,self.caches.delete(a);case 7:return e.next=9,i.delete();case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),t.e(e.t0);case 16:return e.prev=16,t.f(),e.finish(16);case 19:this._cacheExpirations=new Map;case 20:case"end":return e.stop()}}),e,this,[[1,13,16,19]])})));return function(){return e.apply(this,arguments)}}()}]),e}();var Ue,Ne=function(e){o(r,e);var t=f(r);function r(){return s(this,r),t.apply(this,arguments)}return i(r,[{key:"_handle",value:function(){var e=E(_().mark((function e(t,r){var n,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return[],e.next=4,r.cacheMatch(t);case 4:if(n=e.sent,a=void 0,n){e.next=20;break}return e.prev=8,e.next=11,r.fetchAndCachePut(t);case 11:n=e.sent,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(8),e.t0 instanceof Error&&(a=e.t0);case 17:0,e.next=21;break;case 20:0;case 21:if(n){e.next=24;break}throw new y("no-response",{url:t.url,error:a});case 24:return e.abrupt("return",n);case 25:case"end":return e.stop()}}),e,this,[[8,14]])})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(Q),Ie={cacheWillUpdate:function(){var e=E(_().mark((function e(t){var r;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(200!==(r=t.response).status&&0!==r.status){e.next=3;break}return e.abrupt("return",r);case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},Ae=function(e){o(r,e);var t=f(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,r),(e=t.call(this,n)).plugins.some((function(e){return"cacheWillUpdate"in e}))||e.plugins.unshift(Ie),e}return i(r,[{key:"_handle",value:function(){var e=E(_().mark((function e(t,r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return[],n=r.fetchAndCachePut(t).catch((function(){})),r.waitUntil(n),e.next=6,r.cacheMatch(t);case 6:if(!(a=e.sent)){e.next=11;break}0,e.next=21;break;case 11:return e.prev=12,e.next=15,n;case 15:a=e.sent,e.next=21;break;case 18:e.prev=18,e.t0=e.catch(12),e.t0 instanceof Error&&(i=e.t0);case 21:if(a){e.next=24;break}throw new y("no-response",{url:t.url,error:i});case 24:return e.abrupt("return",a);case 25:case"end":return e.stop()}}),e,this,[[12,18]])})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(Q);(function(e){Z().precache(e)})(([{'revision':'b7e3cb2fc693b46d974db6cb87e3fa31','url':'/.well-known/service/static/index.html'},{'revision':'0e898c13dd6acc261bd8e1c685957057','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-400-normal.woff'},{'revision':'e1b3b5908c9cf23dfb2b9c52b9a023ab','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-400-normal.woff2'},{'revision':'cf01af70a3ae9a494a729f504c43804e','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-ext-400-normal.woff'},{'revision':'4bde07f991ba6af69a1e009fd7ce9d1a','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-ext-400-normal.woff2'},{'revision':'6a0b64dd716576afb1ef9217bfe20439','url':'/.well-known/service/static/router-template-styles/styles.css'},{'revision':null,'url':'/.well-known/service/static/static/css/2130.b9437a64.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/3154.e954fcda.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/4603.dce369d5.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/780.e3db6e49.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/main.7ea79dc8.css'},{'revision':null,'url':'/.well-known/service/static/static/js/1162.ff3136ae.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1210.b6221400.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1237.1d0b8f1e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1255.0e8a8a45.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1832.4cd8a983.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1980.dba23d65.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2130.59fef4ad.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2139.341406d2.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2631.54f86f84.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3042.c9fe1ced.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3162.6bbe08fc.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3242.5dea77f3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3464.12806bfe.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3800.faac00ca.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3953.e3e51520.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3963.2e06f9bc.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4319.e99b5af9.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4359.5ed52fe3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/445.6da52f3e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4492.97b0d4f6.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4547.b26ceabb.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4603.f6b8d272.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4651.0a58cbc3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4682.81053e18.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4716.a1240199.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5050.538edf89.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5052.91c69c75.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5176.68fd3fde.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5233.faabaae9.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5430.8114614c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5491.f227b5b4.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5645.a17cd258.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5711.aa17ef28.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/576.d7d4814e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6315.59e078f6.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/652.5fc00cd3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/655.cdee65b4.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6576.e08b0e93.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6711.a62d0bcd.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6737.4f37dd4a.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6891.6c7018ab.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7291.5553195e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7345.4b4f8941.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7371.da3c5cc3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7518.5b02f3ba.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7606.25231f8c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/766.5dd16d47.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/780.860d0370.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8031.d9af3d84.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8341.09d10e93.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8395.e5aa519c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8437.e4b47fc3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8669.814198b8.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/868.aa2a1c4d.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9409.9ba09610.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9476.bc480cfc.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/982.11dc355f.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/main.efa52345.js'},{'revision':null,'url':'/.well-known/service/static/static/media/iconify.212917dd32288c600255.cjs'},{'revision':null,'url':'/.well-known/service/static/static/media/index.20414a3fa1e6c5498a67.cjs'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-all-400-normal.3dc1eff492ab1f598560.woff'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-all-700-normal.1e7707c9ec98d9b97e7f.woff'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-400-normal.be36596da218e1eec01c.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-700-normal.8f28e0e1fdb195149f1c.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-ext-400-normal.361f3dbb9db6a5980326.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-ext-700-normal.9c8812eaec45956201e1.woff2'},{'revision':'1eb1b65118c541eb7f5453294a9d8e77','url':'/.well-known/service/static/static/media/studio.f849ff5763d19a78ada7fdeea249f819.svg'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-all-400-normal.c879328bc62e9c68268f.woff'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-cyrillic-400-normal.c367f416832eb8f1b846.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-cyrillic-ext-400-normal.eda1c4946b1f7bf58386.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-greek-400-normal.22f3bfc91f79c342bdf4.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-greek-ext-400-normal.b3459900ea8a25d1f7c2.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-latin-400-normal.18e32d9d743af28f913e.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-latin-ext-400-normal.b56e2315611d10838ad5.woff2'}]||[]).filter((function(e){return"/"!==e.url&&!e.url.includes("index.html")}))),function(e){var t=Z();se(new oe(t,e))}(Ue),self.addEventListener("activate",(function(){return self.clients.claim()})),self.addEventListener("activate",(function(){console.log("Service Worker activated")})),self.addEventListener("install",(function(e){console.log("Service Worker installed"),e.waitUntil(self.skipWaiting())}));var Me=function(e){return"GET"!==e.method||(!!e.url.includes("/api")||(!!e.url.includes("__meta__.js")||!!e.url.includes("__blocklet__.js")))};se((function(e){var t=e.request;return!Me(t)&&t.url.includes("/static/")}),new Ne({cacheName:"static",plugins:[new De({maxEntries:200})]})),se((function(e){var t=e.request;return!Me(t)&&(t.url.includes("/images/")||t.url.includes("/router/-template-styles/"))}),new Ae)}()}();
|
|
2
|
+
!function(){"use strict";var e={838:function(){try{self["workbox:core:6.5.3"]&&_()}catch(e){}},404:function(){try{self["workbox:expiration:6.5.3"]&&_()}catch(e){}},362:function(){try{self["workbox:precaching:6.5.3"]&&_()}catch(e){}},161:function(){try{self["workbox:routing:6.5.3"]&&_()}catch(e){}},880:function(){try{self["workbox:strategies:6.5.3"]&&_()}catch(e){}}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}!function(){r(838);var e=null;function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,r||"default");if("object"!==t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}function a(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,n(a.key),a)}}function i(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function h(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,r){if(r&&("object"===t(r)||"function"===typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){var t=h();return function(){var r,n=u(e);if(t){var a=u(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}function p(e,t,r){return p=h()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var a=new(Function.bind.apply(e,n));return r&&c(a,r.prototype),a},p.apply(null,arguments)}function v(e){var t="function"===typeof Map?new Map:void 0;return v=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return p(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},v(e)}var d=function(e){for(var t=e,r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.length>0&&(t+=" :: ".concat(JSON.stringify(n))),t},y=function(e){o(r,e);var t=f(r);function r(e,n){var a;s(this,r);var i=d(e,n);return(a=t.call(this,i)).name=e,a.details=n,a}return i(r)}(v(Error)),b=new Set;var g,m={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},x=function(e){return[m.prefix,e,m.suffix].filter((function(e){return e&&e.length>0})).join("-")},w=function(e){return e||x(m.precache)},k=function(e){return e||x(m.runtime)};function _(){_=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",o=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(S){u=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,s=Object.create(i.prototype),c=new C(n||[]);return a(s,"_invoke",{value:k(e,r,c)}),s}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(S){return{type:"throw",arg:S}}}e.wrap=h;var f={};function p(){}function v(){}function d(){}var y={};u(y,s,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(O([])));g&&g!==r&&n.call(g,s)&&(y=g);var m=d.prototype=p.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,r){function i(a,s,c,o){var u=l(e[a],e,s);if("throw"!==u.type){var h=u.arg,f=h.value;return f&&"object"==t(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(e){i("next",e,c,o)}),(function(e){i("throw",e,c,o)})):r.resolve(f).then((function(e){h.value=e,c(h)}),(function(e){return i("throw",e,c,o)}))}o(u.arg)}var s;a(this,"_invoke",{value:function(e,t){function n(){return new r((function(r,n){i(e,t,r,n)}))}return s=s?s.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return j()}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var c=R(s,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var o=l(e,t,r);if("normal"===o.type){if(n=r.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:r.done}}"throw"===o.type&&(n="completed",r.method="throw",r.arg=o.arg)}}}function R(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,R(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var a=l(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return v.prototype=d,a(m,"constructor",{value:d,configurable:!0}),a(d,"constructor",{value:v,configurable:!0}),v.displayName=u(d,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,o,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},x(w.prototype),u(w.prototype,c,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,a,i){void 0===i&&(i=Promise);var s=new w(h(t,r,n,a),i);return e.isGeneratorFunction(r)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},x(m),u(m,o,"Generator"),u(m,s,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=O,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return s.type="throw",s.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),o=n.call(i,"finallyLoc");if(c&&o){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;L(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function R(e,t,r,n,a,i,s){try{var c=e[i](s),o=c.value}catch(u){return void r(u)}c.done?t(o):Promise.resolve(o).then(n,a)}function E(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function s(e){R(i,n,a,s,c,"next",e)}function c(e){R(i,n,a,s,c,"throw",e)}s(void 0)}))}}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){if(e){if("string"===typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}function O(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=C(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(c)throw i}}}}function j(e,t){var r,n=new URL(e),a=O(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;n.searchParams.delete(i)}}catch(s){a.e(s)}finally{a.f()}return n.href}function S(e,t,r,n){return P.apply(this,arguments)}function P(){return(P=E(_().mark((function e(t,r,n,a){var i,s,c,o,u,h,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=j(r.url,n),r.url!==i){e.next=3;break}return e.abrupt("return",t.match(r,a));case 3:return s=Object.assign(Object.assign({},a),{ignoreSearch:!0}),e.next=6,t.keys(r,s);case 6:c=e.sent,o=O(c),e.prev=8,o.s();case 10:if((u=o.n()).done){e.next=17;break}if(h=u.value,l=j(h.url,n),i!==l){e.next=15;break}return e.abrupt("return",t.match(h,a));case 15:e.next=10;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(8),o.e(e.t0);case 22:return e.prev=22,o.f(),e.finish(22);case 25:return e.abrupt("return");case 26:case"end":return e.stop()}}),e,null,[[8,19,22,25]])})))).apply(this,arguments)}function T(){if(void 0===g){var e=new Response("");if("body"in e)try{new Response(e.body),g=!0}catch(t){g=!1}g=!1}return g}function q(e){e.then((function(){}))}var D=i((function e(){var t=this;s(this,e),this.promise=new Promise((function(e,r){t.resolve=e,t.reject=r}))}));function U(){return N.apply(this,arguments)}function N(){return(N=E(_().mark((function e(){var t,r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,t=O(b),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=11;break}return n=r.value,e.next=8,n();case 8:0;case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),t.e(e.t0);case 16:return e.prev=16,t.f(),e.finish(16);case 19:0;case 20:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})))).apply(this,arguments)}var I=function(e){return new URL(String(e),location.href).href.replace(new RegExp("^".concat(location.origin)),"")};function A(e){return new Promise((function(t){return setTimeout(t,e)}))}function M(e,t){var r=t();return e.waitUntil(r),r}function K(e,t){return W.apply(this,arguments)}function W(){return(W=E(_().mark((function e(t,r){var n,a,i,s,c,o;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,t.url&&(a=new URL(t.url),n=a.origin),n===self.location.origin){e.next=4;break}throw new y("cross-origin-copy-response",{origin:n});case 4:if(i=t.clone(),s={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},c=r?r(s):s,!T()){e.next=11;break}e.t0=i.body,e.next=14;break;case 11:return e.next=13,i.blob();case 13:e.t0=e.sent;case 14:return o=e.t0,e.abrupt("return",new Response(o,c));case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,s,c=[],o=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(h){u=!0,a=h}finally{try{if(!o&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return c}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r(362);function H(e){if(!e)throw new y("add-to-cache-list-unexpected-type",{entry:e});if("string"===typeof e){var t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}var r=e.revision,n=e.url;if(!n)throw new y("add-to-cache-list-unexpected-type",{entry:e});if(!r){var a=new URL(n,location.href);return{cacheKey:a.href,url:a.href}}var i=new URL(n,location.href),s=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",r),{cacheKey:i.href,url:s.href}}var V=i((function e(){var t=this;s(this,e),this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=function(){var e=E(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.request,(n=t.state)&&(n.originalRequest=r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.cachedResponseWillBeUsed=function(){var e=E(_().mark((function e(r){var n,a,i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.event,a=r.state,i=r.cachedResponse,"install"===n.type&&a&&a.originalRequest&&a.originalRequest instanceof Request&&(s=a.originalRequest.url,i?t.notUpdatedURLs.push(s):t.updatedURLs.push(s)),e.abrupt("return",i);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),G=i((function e(t){var r=this,n=t.precacheController;s(this,e),this.cacheKeyWillBeUsed=function(){var e=E(_().mark((function e(t){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.request,a=t.params,i=(null===a||void 0===a?void 0:a.cacheKey)||r._precacheController.getCacheKeyForURL(n.url),e.abrupt("return",i?new Request(i,{headers:n.headers}):n);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._precacheController=n}));r(880);function Y(e){return"string"===typeof e?new Request(e):e}var $=function(){function t(e,r){s(this,t),this._cacheKeys={},Object.assign(this,r),this.event=r.event,this._strategy=e,this._handlerDeferred=new D,this._extendLifetimePromises=[],this._plugins=F(e.plugins),this._pluginStateMap=new Map;var n,a=O(this._plugins);try{for(a.s();!(n=a.n()).done;){var i=n.value;this._pluginStateMap.set(i,{})}}catch(c){a.e(c)}finally{a.f()}this.event.waitUntil(this._handlerDeferred.promise)}return i(t,[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=E(_().mark((function e(t){var r,n,a,i,s,c,o,u,h,l,f,p;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.event,!("navigate"===(n=Y(t)).mode&&r instanceof FetchEvent&&r.preloadResponse)){e.next=9;break}return e.next=5,r.preloadResponse;case 5:if(!(a=e.sent)){e.next=9;break}return e.abrupt("return",a);case 9:i=this.hasCallback("fetchDidFail")?n.clone():null,e.prev=10,s=O(this.iterateCallbacks("requestWillFetch")),e.prev=12,s.s();case 14:if((c=s.n()).done){e.next=21;break}return o=c.value,e.next=18,o({request:n.clone(),event:r});case 18:n=e.sent;case 19:e.next=14;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(12),s.e(e.t0);case 26:return e.prev=26,s.f(),e.finish(26);case 29:e.next=35;break;case 31:if(e.prev=31,e.t1=e.catch(10),!(e.t1 instanceof Error)){e.next=35;break}throw new y("plugin-error-request-will-fetch",{thrownErrorMessage:e.t1.message});case 35:return u=n.clone(),e.prev=36,e.next=39,fetch(n,"navigate"===n.mode?void 0:this._strategy.fetchOptions);case 39:h=e.sent,l=O(this.iterateCallbacks("fetchDidSucceed")),e.prev=42,l.s();case 44:if((f=l.n()).done){e.next=51;break}return p=f.value,e.next=48,p({event:r,request:u,response:h});case 48:h=e.sent;case 49:e.next=44;break;case 51:e.next=56;break;case 53:e.prev=53,e.t2=e.catch(42),l.e(e.t2);case 56:return e.prev=56,l.f(),e.finish(56);case 59:return e.abrupt("return",h);case 62:if(e.prev=62,e.t3=e.catch(36),!i){e.next=68;break}return e.next=68,this.runCallbacks("fetchDidFail",{error:e.t3,event:r,originalRequest:i.clone(),request:u.clone()});case 68:throw e.t3;case 69:case"end":return e.stop()}}),e,this,[[10,31],[12,23,26,29],[36,62],[42,53,56,59]])})));return function(t){return e.apply(this,arguments)}}())},{key:"fetchAndCachePut",value:function(){var e=E(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetch(t);case 2:return r=e.sent,n=r.clone(),this.waitUntil(this.cachePut(t,n)),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"cacheMatch",value:function(){var e=E(_().mark((function e(t){var r,n,a,i,s,c,o,u,h,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Y(t),a=this._strategy,i=a.cacheName,s=a.matchOptions,e.next=4,this.getCacheKey(r,"read");case 4:return c=e.sent,o=Object.assign(Object.assign({},s),{cacheName:i}),e.next=8,caches.match(c,o);case 8:n=e.sent,u=O(this.iterateCallbacks("cachedResponseWillBeUsed")),e.prev=11,u.s();case 13:if((h=u.n()).done){e.next=23;break}return l=h.value,e.next=17,l({cacheName:i,matchOptions:s,cachedResponse:n,request:c,event:this.event});case 17:if(e.t0=e.sent,e.t0){e.next=20;break}e.t0=void 0;case 20:n=e.t0;case 21:e.next=13;break;case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(11),u.e(e.t1);case 28:return e.prev=28,u.f(),e.finish(28);case 31:return e.abrupt("return",n);case 32:case"end":return e.stop()}}),e,this,[[11,25,28,31]])})));return function(t){return e.apply(this,arguments)}}()},{key:"cachePut",value:function(){var t=E(_().mark((function t(r,n){var a,i,s,c,o,u,h,l,f,p,v,d,b;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=Y(r),t.next=3,A(0);case 3:return t.next=5,this.getCacheKey(a,"write");case 5:i=t.sent,t.next=11;break;case 9:(s=n.headers.get("Vary"))&&e.debug("The response for ".concat(I(i.url)," ")+"has a 'Vary: ".concat(s,"' header. ")+"Consider setting the {ignoreVary: true} option on your strategy to ensure cache matching and deletion works as expected.");case 11:if(n){t.next=14;break}throw new y("cache-put-with-no-response",{url:I(i.url)});case 14:return t.next=16,this._ensureResponseSafeToCache(n);case 16:if(c=t.sent){t.next=20;break}return t.abrupt("return",!1);case 20:return o=this._strategy,u=o.cacheName,h=o.matchOptions,t.next=23,self.caches.open(u);case 23:if(l=t.sent,!(f=this.hasCallback("cacheDidUpdate"))){t.next=31;break}return t.next=28,S(l,i.clone(),["__WB_REVISION__"],h);case 28:t.t0=t.sent,t.next=32;break;case 31:t.t0=null;case 32:return p=t.t0,t.prev=34,t.next=37,l.put(i,f?c.clone():c);case 37:t.next=46;break;case 39:if(t.prev=39,t.t1=t.catch(34),!(t.t1 instanceof Error)){t.next=46;break}if("QuotaExceededError"!==t.t1.name){t.next=45;break}return t.next=45,U();case 45:throw t.t1;case 46:v=O(this.iterateCallbacks("cacheDidUpdate")),t.prev=47,v.s();case 49:if((d=v.n()).done){t.next=55;break}return b=d.value,t.next=53,b({cacheName:u,oldResponse:p,newResponse:c.clone(),request:i,event:this.event});case 53:t.next=49;break;case 55:t.next=60;break;case 57:t.prev=57,t.t2=t.catch(47),v.e(t.t2);case 60:return t.prev=60,v.f(),t.finish(60);case 63:return t.abrupt("return",!0);case 64:case"end":return t.stop()}}),t,this,[[34,39],[47,57,60,63]])})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getCacheKey",value:function(){var e=E(_().mark((function e(t,r){var n,a,i,s,c;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="".concat(t.url," | ").concat(r),this._cacheKeys[n]){e.next=24;break}a=t,i=O(this.iterateCallbacks("cacheKeyWillBeUsed")),e.prev=4,i.s();case 6:if((s=i.n()).done){e.next=15;break}return c=s.value,e.t0=Y,e.next=11,c({mode:r,request:a,event:this.event,params:this.params});case 11:e.t1=e.sent,a=(0,e.t0)(e.t1);case 13:e.next=6;break;case 15:e.next=20;break;case 17:e.prev=17,e.t2=e.catch(4),i.e(e.t2);case 20:return e.prev=20,i.f(),e.finish(20);case 23:this._cacheKeys[n]=a;case 24:return e.abrupt("return",this._cacheKeys[n]);case 25:case"end":return e.stop()}}),e,this,[[4,17,20,23]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"hasCallback",value:function(e){var t,r=O(this._strategy.plugins);try{for(r.s();!(t=r.n()).done;){if(e in t.value)return!0}}catch(n){r.e(n)}finally{r.f()}return!1}},{key:"runCallbacks",value:function(){var e=E(_().mark((function e(t,r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=O(this.iterateCallbacks(t)),e.prev=1,n.s();case 3:if((a=n.n()).done){e.next=9;break}return i=a.value,e.next=7,i(r);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])})));return function(t,r){return e.apply(this,arguments)}}()},{key:"iterateCallbacks",value:_().mark((function e(t){var r,n,a,i=this;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=O(this._strategy.plugins),e.prev=1,a=_().mark((function e(){var r,a,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof(r=n.value)[t]){e.next=6;break}return a=i._pluginStateMap.get(r),s=function(e){var n=Object.assign(Object.assign({},e),{state:a});return r[t](n)},e.next=6,s;case 6:case"end":return e.stop()}}),e)})),r.s();case 4:if((n=r.n()).done){e.next=8;break}return e.delegateYield(a(),"t0",6);case 6:e.next=4;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),r.e(e.t1);case 13:return e.prev=13,r.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,10,13,16]])}))},{key:"waitUntil",value:function(e){return this._extendLifetimePromises.push(e),e}},{key:"doneWaiting",value:function(){var e=E(_().mark((function e(){var t;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this._extendLifetimePromises.shift())){e.next=5;break}return e.next=3,t;case 3:e.next=0;break;case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"destroy",value:function(){this._handlerDeferred.resolve(null)}},{key:"_ensureResponseSafeToCache",value:function(){var e=E(_().mark((function e(t){var r,n,a,i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t,n=!1,a=O(this.iterateCallbacks("cacheWillUpdate")),e.prev=3,a.s();case 5:if((i=a.n()).done){e.next=18;break}return s=i.value,e.next=9,s({request:this.request,response:r,event:this.event});case 9:if(e.t0=e.sent,e.t0){e.next=12;break}e.t0=void 0;case 12:if(r=e.t0,n=!0,r){e.next=16;break}return e.abrupt("break",18);case 16:e.next=5;break;case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(3),a.e(e.t1);case 23:return e.prev=23,a.f(),e.finish(23);case 26:return n||r&&200!==r.status&&(r=void 0),e.abrupt("return",r);case 28:case"end":return e.stop()}}),e,this,[[3,20,23,26]])})));return function(t){return e.apply(this,arguments)}}()}]),t}(),Q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.cacheName=k(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}return i(e,[{key:"handle",value:function(e){return B(this.handleAll(e),1)[0]}},{key:"handleAll",value:function(e){e instanceof FetchEvent&&(e={event:e,request:e.request});var t=e.event,r="string"===typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new $(this,{event:t,request:r,params:n}),i=this._getResponse(a,r,t);return[i,this._awaitComplete(i,a,r,t)]}},{key:"_getResponse",value:function(){var e=E(_().mark((function e(t,r,n){var a,i,s,c,o,u,h;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.runCallbacks("handlerWillStart",{event:n,request:r});case 2:return a=void 0,e.prev=3,e.next=6,this._handle(r,t);case 6:if((a=e.sent)&&"error"!==a.type){e.next=9;break}throw new y("no-response",{url:r.url});case 9:e.next=39;break;case 11:if(e.prev=11,e.t0=e.catch(3),!(e.t0 instanceof Error)){e.next=34;break}i=O(t.iterateCallbacks("handlerDidError")),e.prev=15,i.s();case 17:if((s=i.n()).done){e.next=26;break}return c=s.value,e.next=21,c({error:e.t0,event:n,request:r});case 21:if(!(a=e.sent)){e.next=24;break}return e.abrupt("break",26);case 24:e.next=17;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(15),i.e(e.t1);case 31:return e.prev=31,i.f(),e.finish(31);case 34:if(a){e.next=38;break}throw e.t0;case 38:0;case 39:o=O(t.iterateCallbacks("handlerWillRespond")),e.prev=40,o.s();case 42:if((u=o.n()).done){e.next=49;break}return h=u.value,e.next=46,h({event:n,request:r,response:a});case 46:a=e.sent;case 47:e.next=42;break;case 49:e.next=54;break;case 51:e.prev=51,e.t2=e.catch(40),o.e(e.t2);case 54:return e.prev=54,o.f(),e.finish(54);case 57:return e.abrupt("return",a);case 58:case"end":return e.stop()}}),e,this,[[3,11],[15,28,31,34],[40,51,54,57]])})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"_awaitComplete",value:function(){var e=E(_().mark((function e(t,r,n,a){var i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:i=e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:return e.prev=8,e.next=11,r.runCallbacks("handlerDidRespond",{event:a,request:n,response:i});case 11:return e.next=13,r.doneWaiting();case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(8),e.t1 instanceof Error&&(s=e.t1);case 18:return e.next=20,r.runCallbacks("handlerDidComplete",{event:a,request:n,response:i,error:s});case 20:if(r.destroy(),!s){e.next=23;break}throw s;case 23:case"end":return e.stop()}}),e,null,[[0,6],[8,15]])})));return function(t,r,n,a){return e.apply(this,arguments)}}()}]),e}(),J=function(t){o(n,t);var r=f(n);function n(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),t.cacheName=w(t.cacheName),(e=r.call(this,t))._fallbackToNetwork=!1!==t.fallbackToNetwork,e.plugins.push(n.copyRedirectedCacheableResponsesPlugin),e}return i(n,[{key:"_handle",value:function(){var e=E(_().mark((function e(t,r){var n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.cacheMatch(t);case 2:if(!(n=e.sent)){e.next=5;break}return e.abrupt("return",n);case 5:if(!r.event||"install"!==r.event.type){e.next=9;break}return e.next=8,this._handleInstall(t,r);case 8:case 11:return e.abrupt("return",e.sent);case 9:return e.next=11,this._handleFetch(t,r);case 12:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_handleFetch",value:function(){var t=E(_().mark((function t(r,n){var a,i,s,c,o,u;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.params||{},!this._fallbackToNetwork){t.next=17;break}return s=i.integrity,c=r.integrity,o=!c||c===s,t.next=8,n.fetch(new Request(r,{integrity:"no-cors"!==r.mode?c||s:void 0}));case 8:if(a=t.sent,!s||!o||"no-cors"===r.mode){t.next=15;break}return this._useDefaultCacheabilityPluginIfNeeded(),t.next=13,n.cachePut(r,a.clone());case 13:t.sent;case 15:t.next=18;break;case 17:throw new y("missing-precache-entry",{cacheName:this.cacheName,url:r.url});case 18:t.next=34;break;case 23:t.t0=t.sent;case 24:u=t.t0,e.groupCollapsed("Precaching is responding to: "+I(r.url)),e.log("Serving the precached url: ".concat(I(u instanceof Request?u.url:u))),e.groupCollapsed("View request details here."),e.log(r),e.groupEnd(),e.groupCollapsed("View response details here."),e.log(a),e.groupEnd(),e.groupEnd();case 34:return t.abrupt("return",a);case 35:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"_handleInstall",value:function(){var e=E(_().mark((function e(t,r){var n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._useDefaultCacheabilityPluginIfNeeded(),e.next=3,r.fetch(t);case 3:return n=e.sent,e.next=6,r.cachePut(t,n.clone());case 6:if(e.sent){e.next=9;break}throw new y("bad-precaching-response",{url:t.url,status:n.status});case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_useDefaultCacheabilityPluginIfNeeded",value:function(){var e,t=null,r=0,a=O(this.plugins.entries());try{for(a.s();!(e=a.n()).done;){var i=B(e.value,2),s=i[0],c=i[1];c!==n.copyRedirectedCacheableResponsesPlugin&&(c===n.defaultPrecacheCacheabilityPlugin&&(t=s),c.cacheWillUpdate&&r++)}}catch(o){a.e(o)}finally{a.f()}0===r?this.plugins.push(n.defaultPrecacheCacheabilityPlugin):r>1&&null!==t&&this.plugins.splice(t,1)}}]),n}(Q);J.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:function(e){return E(_().mark((function t(){var r;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=e.response)&&!(r.status>=400)){t.next=3;break}return t.abrupt("return",null);case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})))()}},J.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:function(e){return E(_().mark((function t(){var r;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.response).redirected){t.next=7;break}return t.next=4,K(r);case 4:t.t0=t.sent,t.next=8;break;case 7:t.t0=r;case 8:return t.abrupt("return",t.t0);case 9:case"end":return t.stop()}}),t)})))()}};var z,X=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.cacheName,n=t.plugins,a=void 0===n?[]:n,i=t.fallbackToNetwork,c=void 0===i||i;s(this,e),this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new J({cacheName:w(r),plugins:[].concat(F(a),[new G({precacheController:this})]),fallbackToNetwork:c}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}return i(e,[{key:"strategy",get:function(){return this._strategy}},{key:"precache",value:function(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}},{key:"addToCacheList",value:function(e){var t,r=[],n=O(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;"string"===typeof a?r.push(a):a&&void 0===a.revision&&r.push(a.url);var i=H(a),s=i.cacheKey,c=i.url,o="string"!==typeof a&&a.revision?"reload":"default";if(this._urlsToCacheKeys.has(c)&&this._urlsToCacheKeys.get(c)!==s)throw new y("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(c),secondEntry:s});if("string"!==typeof a&&a.integrity){if(this._cacheKeysToIntegrities.has(s)&&this._cacheKeysToIntegrities.get(s)!==a.integrity)throw new y("add-to-cache-list-conflicting-integrities",{url:c});this._cacheKeysToIntegrities.set(s,a.integrity)}if(this._urlsToCacheKeys.set(c,s),this._urlsToCacheModes.set(c,o),r.length>0){var u="Workbox is precaching URLs without revision "+"info: ".concat(r.join(", "),"\nThis is generally NOT safe. ")+"Learn more at https://bit.ly/wb-precache";console.warn(u)}}}catch(h){n.e(h)}finally{n.f()}}},{key:"install",value:function(e){var t=this;return M(e,E(_().mark((function r(){var n,a,i,s,c,o,u,h,l,f,p;return _().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=new V,t.strategy.plugins.push(n),a=O(t._urlsToCacheKeys),r.prev=3,a.s();case 5:if((i=a.n()).done){r.next=14;break}return s=B(i.value,2),c=s[0],o=s[1],u=t._cacheKeysToIntegrities.get(o),h=t._urlsToCacheModes.get(c),l=new Request(c,{integrity:u,cache:h,credentials:"same-origin"}),r.next=12,Promise.all(t.strategy.handleAll({params:{cacheKey:o},request:l,event:e}));case 12:r.next=5;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(3),a.e(r.t0);case 19:return r.prev=19,a.f(),r.finish(19);case 22:return f=n.updatedURLs,p=n.notUpdatedURLs,r.abrupt("return",{updatedURLs:f,notUpdatedURLs:p});case 25:case"end":return r.stop()}}),r,null,[[3,16,19,22]])}))))}},{key:"activate",value:function(e){var t=this;return M(e,E(_().mark((function e(){var r,n,a,i,s,c,o;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,self.caches.open(t.strategy.cacheName);case 2:return r=e.sent,e.next=5,r.keys();case 5:n=e.sent,a=new Set(t._urlsToCacheKeys.values()),i=[],s=O(n),e.prev=9,s.s();case 11:if((c=s.n()).done){e.next=19;break}if(o=c.value,a.has(o.url)){e.next=17;break}return e.next=16,r.delete(o);case 16:i.push(o.url);case 17:e.next=11;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(9),s.e(e.t0);case 24:return e.prev=24,s.f(),e.finish(24);case 27:return e.abrupt("return",{deletedURLs:i});case 29:case"end":return e.stop()}}),e,null,[[9,21,24,27]])}))))}},{key:"getURLsToCacheKeys",value:function(){return this._urlsToCacheKeys}},{key:"getCachedURLs",value:function(){return F(this._urlsToCacheKeys.keys())}},{key:"getCacheKeyForURL",value:function(e){var t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}},{key:"getIntegrityForCacheKey",value:function(e){return this._cacheKeysToIntegrities.get(e)}},{key:"matchPrecache",value:function(){var e=E(_().mark((function e(t){var r,n,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t instanceof Request?t.url:t,!(n=this.getCacheKeyForURL(r))){e.next=7;break}return e.next=5,self.caches.open(this.strategy.cacheName);case 5:return a=e.sent,e.abrupt("return",a.match(n));case 7:return e.abrupt("return",void 0);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"createHandlerBoundToURL",value:function(e){var t=this,r=this.getCacheKeyForURL(e);if(!r)throw new y("non-precached-url",{url:e});return function(n){return n.request=new Request(e),n.params=Object.assign({cacheKey:r},n.params),t.strategy.handle(n)}}}]),e}(),Z=function(){return z||(z=new X),z};r(161);var ee,te=function(e){return e&&"object"===typeof e?e:{handle:e}},re=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";s(this,e),this.handler=te(r),this.match=t,this.method=n}return i(e,[{key:"setCatchHandler",value:function(e){this.catchHandler=te(e)}}]),e}(),ne=function(e){o(r,e);var t=f(r);function r(e,n,a){s(this,r);return t.call(this,(function(t){var r=t.url,n=e.exec(r.href);if(n&&(r.origin===location.origin||0===n.index))return n.slice(1)}),n,a)}return i(r)}(re),ae=function(){function e(){s(this,e),this._routes=new Map,this._defaultHandlerMap=new Map}return i(e,[{key:"routes",get:function(){return this._routes}},{key:"addFetchListener",value:function(){var e=this;self.addEventListener("fetch",(function(t){var r=t.request,n=e.handleRequest({request:r,event:t});n&&t.respondWith(n)}))}},{key:"addCacheListener",value:function(){var e=this;self.addEventListener("message",(function(t){if(t.data&&"CACHE_URLS"===t.data.type){var r=t.data.payload;0;var n=Promise.all(r.urlsToCache.map((function(r){"string"===typeof r&&(r=[r]);var n=p(Request,F(r));return e.handleRequest({request:n,event:t})})));t.waitUntil(n),t.ports&&t.ports[0]&&n.then((function(){return t.ports[0].postMessage(!0)}))}}))}},{key:"handleRequest",value:function(e){var t=this,r=e.request,n=e.event;var a=new URL(r.url,location.href);if(a.protocol.startsWith("http")){var i=a.origin===location.origin,s=this.findMatchingRoute({event:n,request:r,sameOrigin:i,url:a}),c=s.params,o=s.route,u=o&&o.handler;0;var h=r.method;if(!u&&this._defaultHandlerMap.has(h)&&(u=this._defaultHandlerMap.get(h)),u){var l;0;try{l=u.handle({url:a,request:r,event:n,params:c})}catch(p){l=Promise.reject(p)}var f=o&&o.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(function(){var e=E(_().mark((function e(i){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!f){e.next=11;break}return e.prev=2,e.next=5,f.handle({url:a,request:r,event:n,params:c});case 5:return e.abrupt("return",e.sent);case 8:e.prev=8,e.t0=e.catch(2),e.t0 instanceof Error&&(i=e.t0);case 11:if(!t._catchHandler){e.next=14;break}return e.abrupt("return",t._catchHandler.handle({url:a,request:r,event:n}));case 14:throw i;case 15:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(t){return e.apply(this,arguments)}}())),l}}}},{key:"findMatchingRoute",value:function(e){var t,r=e.url,n=e.sameOrigin,a=e.request,i=e.event,s=O(this._routes.get(a.method)||[]);try{for(s.s();!(t=s.n()).done;){var c=t.value,o=void 0,u=c.match({url:r,sameOrigin:n,request:a,event:i});if(u)return o=u,(Array.isArray(o)&&0===o.length||u.constructor===Object&&0===Object.keys(u).length||"boolean"===typeof u)&&(o=void 0),{route:c,params:o}}}catch(h){s.e(h)}finally{s.f()}return{}}},{key:"setDefaultHandler",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";this._defaultHandlerMap.set(t,te(e))}},{key:"setCatchHandler",value:function(e){this._catchHandler=te(e)}},{key:"registerRoute",value:function(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}},{key:"unregisterRoute",value:function(e){if(!this._routes.has(e.method))throw new y("unregister-route-but-not-found-with-method",{method:e.method});var t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new y("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}]),e}(),ie=function(){return ee||((ee=new ae).addFetchListener(),ee.addCacheListener()),ee};function se(e,t,r){var n;if("string"===typeof e){var a=new URL(e,location.href);n=new re((function(e){return e.url.href===a.href}),t,r)}else if(e instanceof RegExp)n=new ne(e,t,r);else if("function"===typeof e)n=new re(e,t,r);else{if(!(e instanceof re))throw new y("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});n=e}return ie().registerRoute(n),n}function ce(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function(){var r=a[n];t.some((function(e){return e.test(r)}))&&e.searchParams.delete(r)},n=0,a=F(e.searchParams.keys());n<a.length;n++)r();return e}var oe=function(e){o(r,e);var t=f(r);function r(e,n){s(this,r);return t.call(this,(function(t){var r,a=t.request,i=e.getURLsToCacheKeys(),s=O(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ignoreURLParametersMatching,n=void 0===r?[/^utm_/,/^fbclid$/]:r,a=t.directoryIndex,i=void 0===a?"index.html":a,s=t.cleanURLs,c=void 0===s||s,o=t.urlManipulation;return _().mark((function t(){var r,a,s,u,h,l,f,p;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(r=new URL(e,location.href)).hash="",t.next=4,r.href;case 4:return a=ce(r,n),t.next=7,a.href;case 7:if(!i||!a.pathname.endsWith("/")){t.next=12;break}return(s=new URL(a.href)).pathname+=i,t.next=12,s.href;case 12:if(!c){t.next=17;break}return(u=new URL(a.href)).pathname+=".html",t.next=17,u.href;case 17:if(!o){t.next=36;break}h=o({url:r}),l=O(h),t.prev=20,l.s();case 22:if((f=l.n()).done){t.next=28;break}return p=f.value,t.next=26,p.href;case 26:t.next=22;break;case 28:t.next=33;break;case 30:t.prev=30,t.t0=t.catch(20),l.e(t.t0);case 33:return t.prev=33,l.f(),t.finish(33);case 36:case"end":return t.stop()}}),t,null,[[20,30,33,36]])}))()}(a.url,n));try{for(s.s();!(r=s.n()).done;){var c=r.value,o=i.get(c);if(o)return{cacheKey:o,integrity:e.getIntegrityForCacheKey(o)}}}catch(u){s.e(u)}finally{s.f()}}),e.strategy)}return i(r)}(re);function ue(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){ue(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var fe,pe,ve=function(e,t){return t.some((function(t){return e instanceof t}))};var de=new WeakMap,ye=new WeakMap,be=new WeakMap,ge=new WeakMap,me=new WeakMap;var xe={get:function(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return ye.get(e);if("objectStoreNames"===t)return e.objectStoreNames||be.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return _e(e[t])},set:function(e,t,r){return e[t]=r,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function we(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(pe||(pe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(Re(this),r),_e(de.get(this))}:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return _e(e.apply(Re(this),r))}:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=e.call.apply(e,[Re(this),t].concat(n));return be.set(i,t.sort?t.sort():[t]),_e(i)}}function ke(e){return"function"===typeof e?we(e):(e instanceof IDBTransaction&&function(e){if(!ye.has(e)){var t=new Promise((function(t,r){var n=function(){e.removeEventListener("complete",a),e.removeEventListener("error",i),e.removeEventListener("abort",i)},a=function(){t(),n()},i=function(){r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",i),e.addEventListener("abort",i)}));ye.set(e,t)}}(e),ve(e,fe||(fe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,xe):e)}function _e(e){if(e instanceof IDBRequest)return function(e){var t=new Promise((function(t,r){var n=function(){e.removeEventListener("success",a),e.removeEventListener("error",i)},a=function(){t(_e(e.result)),n()},i=function(){r(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",i)}));return t.then((function(t){t instanceof IDBCursor&&de.set(t,e)})).catch((function(){})),me.set(t,e),t}(e);if(ge.has(e))return ge.get(e);var t=ke(e);return t!==e&&(ge.set(e,t),me.set(t,e)),t}var Re=function(e){return me.get(e)};function Ee(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.blocked,a=r.upgrade,i=r.blocking,s=r.terminated,c=indexedDB.open(e,t),o=_e(c);return a&&c.addEventListener("upgradeneeded",(function(e){a(_e(c.result),e.oldVersion,e.newVersion,_e(c.transaction),e)})),n&&c.addEventListener("blocked",(function(e){return n(e.oldVersion,e.newVersion,e)})),o.then((function(e){s&&e.addEventListener("close",(function(){return s()})),i&&e.addEventListener("versionchange",(function(e){return i(e.oldVersion,e.newVersion,e)}))})).catch((function(){})),o}var Le=["get","getKey","getAll","getAllKeys","count"],Ce=["put","add","delete","clear"],Oe=new Map;function je(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"===typeof t){if(Oe.get(t))return Oe.get(t);var r=t.replace(/FromIndex$/,""),n=t!==r,a=Ce.includes(r);if(r in(n?IDBIndex:IDBObjectStore).prototype&&(a||Le.includes(r))){var i=function(){var e=E(_().mark((function e(t){var i,s,c,o,u,h,l=arguments;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s=this.transaction(t,a?"readwrite":"readonly"),c=s.store,o=l.length,u=new Array(o>1?o-1:0),h=1;h<o;h++)u[h-1]=l[h];return n&&(c=c.index(u.shift())),e.next=6,Promise.all([(i=c)[r].apply(i,u),a&&s.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();return Oe.set(t,i),i}}}xe=function(e){return le(le({},e),{},{get:function(t,r,n){return je(t,r)||e.get(t,r,n)},has:function(t,r){return!!je(t,r)||e.has(t,r)}})}(xe);r(404);var Se="cache-entries",Pe=function(e){var t=new URL(e,location.href);return t.hash="",t.href},Te=function(){function e(t){s(this,e),this._db=null,this._cacheName=t}return i(e,[{key:"_upgradeDb",value:function(e){var t=e.createObjectStore(Se,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}},{key:"_upgradeDbAndDeleteOldDbs",value:function(e){this._upgradeDb(e),this._cacheName&&function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).blocked,r=indexedDB.deleteDatabase(e);t&&r.addEventListener("blocked",(function(e){return t(e.oldVersion,e)})),_e(r).then((function(){}))}(this._cacheName)}},{key:"setTimestamp",value:function(){var e=E(_().mark((function e(t,r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Pe(t),n={url:t,timestamp:r,cacheName:this._cacheName,id:this._getId(t)},e.next=4,this.getDb();case 4:return a=e.sent,i=a.transaction(Se,"readwrite",{durability:"relaxed"}),e.next=8,i.store.put(n);case 8:return e.next=10,i.done;case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getTimestamp",value:function(){var e=E(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getDb();case 2:return r=e.sent,e.next=5,r.get(Se,this._getId(t));case 5:return n=e.sent,e.abrupt("return",null===n||void 0===n?void 0:n.timestamp);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"expireEntries",value:function(){var e=E(_().mark((function e(t,r){var n,a,i,s,c,o,u,h,l;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getDb();case 2:return n=e.sent,e.next=5,n.transaction(Se).store.index("timestamp").openCursor(null,"prev");case 5:a=e.sent,i=[],s=0;case 8:if(!a){e.next=16;break}return(c=a.value).cacheName===this._cacheName&&(t&&c.timestamp<t||r&&s>=r?i.push(a.value):s++),e.next=13,a.continue();case 13:a=e.sent,e.next=8;break;case 16:o=[],u=0,h=i;case 18:if(!(u<h.length)){e.next=26;break}return l=h[u],e.next=22,n.delete(Se,l.id);case 22:o.push(l.url);case 23:u++,e.next=18;break;case 26:return e.abrupt("return",o);case 27:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_getId",value:function(e){return this._cacheName+"|"+Pe(e)}},{key:"getDb",value:function(){var e=E(_().mark((function e(){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._db){e.next=4;break}return e.next=3,Ee("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)});case 3:this._db=e.sent;case 4:return e.abrupt("return",this._db);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),qe=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=r.maxEntries,this._maxAgeSeconds=r.maxAgeSeconds,this._matchOptions=r.matchOptions,this._cacheName=t,this._timestampModel=new Te(t)}return i(e,[{key:"expireEntries",value:function(){var e=E(_().mark((function e(){var t,r,n,a,i,s;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isRunning){e.next=3;break}return this._rerunRequested=!0,e.abrupt("return");case 3:return this._isRunning=!0,t=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,e.next=7,this._timestampModel.expireEntries(t,this._maxEntries);case 7:return r=e.sent,e.next=10,self.caches.open(this._cacheName);case 10:n=e.sent,a=O(r),e.prev=12,a.s();case 14:if((i=a.n()).done){e.next=20;break}return s=i.value,e.next=18,n.delete(s,this._matchOptions);case 18:e.next=14;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(12),a.e(e.t0);case 25:return e.prev=25,a.f(),e.finish(25);case 28:0,this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,q(this.expireEntries()));case 31:case"end":return e.stop()}}),e,this,[[12,22,25,28]])})));return function(){return e.apply(this,arguments)}}()},{key:"updateTimestamp",value:function(){var e=E(_().mark((function e(t){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this._timestampModel.setTimestamp(t,Date.now());case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"isURLExpired",value:function(){var e=E(_().mark((function e(t){var r,n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._maxAgeSeconds){e.next=6;break}e.next=3;break;case 3:return e.abrupt("return",!1);case 6:return e.next=8,this._timestampModel.getTimestamp(t);case 8:return r=e.sent,n=Date.now()-1e3*this._maxAgeSeconds,e.abrupt("return",void 0===r||r<n);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=E(_().mark((function e(){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._rerunRequested=!1,e.next=3,this._timestampModel.expireEntries(1/0);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),De=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.cachedResponseWillBeUsed=function(){var e=E(_().mark((function e(r){var n,a,i,s,c,o,u;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.event,a=r.request,i=r.cacheName,s=r.cachedResponse){e.next=3;break}return e.abrupt("return",null);case 3:if(c=t._isResponseDateFresh(s),q((o=t._getCacheExpiration(i)).expireEntries()),u=o.updateTimestamp(a.url),n)try{n.waitUntil(u)}catch(h){0}return e.abrupt("return",c?s:null);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.cacheDidUpdate=function(){var e=E(_().mark((function e(r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.cacheName,a=r.request,i=t._getCacheExpiration(n),e.next=5,i.updateTimestamp(a.url);case 5:return e.next=7,i.expireEntries();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this._config=r,this._maxAgeSeconds=r.maxAgeSeconds,this._cacheExpirations=new Map,r.purgeOnQuotaError&&function(e){b.add(e)}((function(){return t.deleteCacheAndMetadata()}))}return i(e,[{key:"_getCacheExpiration",value:function(e){if(e===k())throw new y("expire-custom-caches-only");var t=this._cacheExpirations.get(e);return t||(t=new qe(e,this._config),this._cacheExpirations.set(e,t)),t}},{key:"_isResponseDateFresh",value:function(e){if(!this._maxAgeSeconds)return!0;var t=this._getDateHeaderTimestamp(e);return null===t||t>=Date.now()-1e3*this._maxAgeSeconds}},{key:"_getDateHeaderTimestamp",value:function(e){if(!e.headers.has("date"))return null;var t=e.headers.get("date"),r=new Date(t).getTime();return isNaN(r)?null:r}},{key:"deleteCacheAndMetadata",value:function(){var e=E(_().mark((function e(){var t,r,n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=O(this._cacheExpirations),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=11;break}return n=B(r.value,2),a=n[0],i=n[1],e.next=7,self.caches.delete(a);case 7:return e.next=9,i.delete();case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),t.e(e.t0);case 16:return e.prev=16,t.f(),e.finish(16);case 19:this._cacheExpirations=new Map;case 20:case"end":return e.stop()}}),e,this,[[1,13,16,19]])})));return function(){return e.apply(this,arguments)}}()}]),e}();var Ue,Ne=function(e){o(r,e);var t=f(r);function r(){return s(this,r),t.apply(this,arguments)}return i(r,[{key:"_handle",value:function(){var e=E(_().mark((function e(t,r){var n,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return[],e.next=4,r.cacheMatch(t);case 4:if(n=e.sent,a=void 0,n){e.next=20;break}return e.prev=8,e.next=11,r.fetchAndCachePut(t);case 11:n=e.sent,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(8),e.t0 instanceof Error&&(a=e.t0);case 17:0,e.next=21;break;case 20:0;case 21:if(n){e.next=24;break}throw new y("no-response",{url:t.url,error:a});case 24:return e.abrupt("return",n);case 25:case"end":return e.stop()}}),e,this,[[8,14]])})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(Q),Ie={cacheWillUpdate:function(){var e=E(_().mark((function e(t){var r;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(200!==(r=t.response).status&&0!==r.status){e.next=3;break}return e.abrupt("return",r);case 3:return e.abrupt("return",null);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},Ae=function(e){o(r,e);var t=f(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,r),(e=t.call(this,n)).plugins.some((function(e){return"cacheWillUpdate"in e}))||e.plugins.unshift(Ie),e}return i(r,[{key:"_handle",value:function(){var e=E(_().mark((function e(t,r){var n,a,i;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return[],n=r.fetchAndCachePut(t).catch((function(){})),r.waitUntil(n),e.next=6,r.cacheMatch(t);case 6:if(!(a=e.sent)){e.next=11;break}0,e.next=21;break;case 11:return e.prev=12,e.next=15,n;case 15:a=e.sent,e.next=21;break;case 18:e.prev=18,e.t0=e.catch(12),e.t0 instanceof Error&&(i=e.t0);case 21:if(a){e.next=24;break}throw new y("no-response",{url:t.url,error:i});case 24:return e.abrupt("return",a);case 25:case"end":return e.stop()}}),e,this,[[12,18]])})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(Q);(function(e){Z().precache(e)})(([{'revision':'e0aebbfdd560984f74499ab7701b0f91','url':'/.well-known/service/static/index.html'},{'revision':'0e898c13dd6acc261bd8e1c685957057','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-400-normal.woff'},{'revision':'e1b3b5908c9cf23dfb2b9c52b9a023ab','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-400-normal.woff2'},{'revision':'cf01af70a3ae9a494a729f504c43804e','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-ext-400-normal.woff'},{'revision':'4bde07f991ba6af69a1e009fd7ce9d1a','url':'/.well-known/service/static/router-template-styles/fonts/lato-latin-ext-400-normal.woff2'},{'revision':'6a0b64dd716576afb1ef9217bfe20439','url':'/.well-known/service/static/router-template-styles/styles.css'},{'revision':null,'url':'/.well-known/service/static/static/css/2130.b9437a64.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/3154.e954fcda.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/4603.dce369d5.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/780.e3db6e49.chunk.css'},{'revision':null,'url':'/.well-known/service/static/static/css/main.7ea79dc8.css'},{'revision':null,'url':'/.well-known/service/static/static/js/1162.ff3136ae.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1210.b6221400.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1237.1d0b8f1e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1255.0e8a8a45.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1832.4cd8a983.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/1980.dba23d65.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2130.59fef4ad.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2139.341406d2.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/2631.54f86f84.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3042.c9fe1ced.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3162.6bbe08fc.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3242.5dea77f3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3464.12806bfe.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3800.faac00ca.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3953.e3e51520.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/3963.2e06f9bc.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4319.e99b5af9.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4359.5ed52fe3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/445.6da52f3e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4492.97b0d4f6.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4547.b26ceabb.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4603.f6b8d272.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4651.0a58cbc3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4682.81053e18.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/4716.a1240199.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5050.538edf89.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5052.91c69c75.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5176.68fd3fde.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5233.faabaae9.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5430.8114614c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5491.f227b5b4.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5645.a17cd258.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/5711.aa17ef28.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/576.d7d4814e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6315.59e078f6.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/652.d534b309.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/655.cdee65b4.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6576.e08b0e93.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6711.a62d0bcd.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6737.4f37dd4a.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/6891.6c7018ab.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7291.5553195e.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7345.4b4f8941.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7371.da3c5cc3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7518.5b02f3ba.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/7606.25231f8c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/766.5dd16d47.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/780.32bf1f5b.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8031.d9af3d84.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8341.09d10e93.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8395.e5aa519c.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8437.e4b47fc3.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/8669.814198b8.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/868.aa2a1c4d.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9409.9ba09610.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/9476.bc480cfc.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/982.11dc355f.chunk.js'},{'revision':null,'url':'/.well-known/service/static/static/js/main.0357601e.js'},{'revision':null,'url':'/.well-known/service/static/static/media/iconify.212917dd32288c600255.cjs'},{'revision':null,'url':'/.well-known/service/static/static/media/index.20414a3fa1e6c5498a67.cjs'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-all-400-normal.3dc1eff492ab1f598560.woff'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-all-700-normal.1e7707c9ec98d9b97e7f.woff'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-400-normal.be36596da218e1eec01c.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-700-normal.8f28e0e1fdb195149f1c.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-ext-400-normal.361f3dbb9db6a5980326.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/lato-latin-ext-700-normal.9c8812eaec45956201e1.woff2'},{'revision':'1eb1b65118c541eb7f5453294a9d8e77','url':'/.well-known/service/static/static/media/studio.f849ff5763d19a78ada7fdeea249f819.svg'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-all-400-normal.c879328bc62e9c68268f.woff'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-cyrillic-400-normal.c367f416832eb8f1b846.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-cyrillic-ext-400-normal.eda1c4946b1f7bf58386.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-greek-400-normal.22f3bfc91f79c342bdf4.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-greek-ext-400-normal.b3459900ea8a25d1f7c2.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-latin-400-normal.18e32d9d743af28f913e.woff2'},{'revision':null,'url':'/.well-known/service/static/static/media/ubuntu-mono-latin-ext-400-normal.b56e2315611d10838ad5.woff2'}]||[]).filter((function(e){return"/"!==e.url&&!e.url.includes("index.html")}))),function(e){var t=Z();se(new oe(t,e))}(Ue),self.addEventListener("activate",(function(){return self.clients.claim()})),self.addEventListener("activate",(function(){console.log("Service Worker activated")})),self.addEventListener("install",(function(e){console.log("Service Worker installed"),e.waitUntil(self.skipWaiting())}));var Me=function(e){return"GET"!==e.method||(!!e.url.includes("/api")||(!!e.url.includes("__meta__.js")||!!e.url.includes("__blocklet__.js")))};se((function(e){var t=e.request;return!Me(t)&&t.url.includes("/static/")}),new Ne({cacheName:"static",plugins:[new De({maxEntries:200})]})),se((function(e){var t=e.request;return!Me(t)&&(t.url.includes("/images/")||t.url.includes("/router/-template-styles/"))}),new Ae)}()}();
|
|
3
3
|
//# sourceMappingURL=service-worker.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[652],{5954:function(e,t,n){n.d(t,{cK:function(){return d},h6:function(){return f}});var r=n(30969),o=n(78174),i=n(20244),a=n(48952),l=n(50692),c=n(99042),u=n(37574),s=o.NodeContext.Provider;o.NodeContext.Consumer;function d(e){var t=e.children,n="".concat(i.WELLKNOWN_SERVICE_PATH_PREFIX,"/static/images"),r=window.env,o=r.serverDid,d=r.serverVersion,f=r.mode,p={imgPrefix:n,api:a.Z,restApi:c.Z,ws:{getWsClient:l.ZP,create:l.Ue,useSubscription:l.mU},type:"service",info:{did:o,version:d,mode:f}};return(0,u.jsx)(s,{value:{node:p},children:t})}function f(){return(0,r.useContext)(o.NodeContext).node}},70652:function(e,t,n){n.r(t),n.d(t,{default:function(){return se}});var r=n(71171),o=n(16380),i=n(30969),a=n(30734),l=n(38361),c=n(14682),u=n(42167),s=n(3037),d=n(7017),f=n(20244),p=n(85710),m=n(94308),v=n(98169),b=n(66657),g=n(31350),y=n(37807),h=n(30547),x=n(4414),j=n(99811),O=n(50692),P=n(92174),k=n(5954),w=n(32723),C=n(34795),S=n(96234),D=n(59505),E=n(80519),_=n(48952),T=n(37574),R=E.TeamContext.Provider,N=(E.TeamContext.Consumer,window.env),I=N.did,L=N.appId;function B(e){var t,n,r=e.children,o=(0,P.y0)().blocklet,a=(0,i.useState)([]),l=(0,S.Z)(a,2),c=l[0],u=l[1],s=(0,i.useState)([]),p=(0,S.Z)(s,2),m=p[0],v=p[1],b=(0,i.useState)([]),g=(0,S.Z)(b,2),y=g[0],h=g[1],x=(0,d.getDisplayName)(o),k=(null===(t=((null===o||void 0===o?void 0:o.environments)||[]).find((function(e){return e.key===D.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR})))||void 0===t?void 0:t.value)||"auto",E=(null===o||void 0===o?void 0:o.trustedPassports)||[],N=(null===o||void 0===o?void 0:o.trustedFactories)||[],B=!1!==(null===o||void 0===o?void 0:o.enablePassportIssuance),M=function(){var e=(0,C.Z)((0,w.Z)().mark((function e(){var t;return(0,w.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.Z.doBatchQuery({getRoles:{input:{teamDid:I}},getPermissions:{input:{teamDid:I}},getInvitations:{input:{teamDid:I}}});case 3:t=e.sent,v((t.getRoles.roles||[]).filter((function(e){return!f.RBAC_CONFIG.roles.some((function(t){return t.name===e.name&&(!t.passport||t.ci)}))})).map((function(e){return e.description=e.description||"Use this passport to connect ".concat(x," as ").concat(e.title),e}))),h(t.getPermissions.permissions||[]),u(t.getInvitations.invitations||[]),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),j.default.error(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}();(0,i.useEffect)((function(){var e;null!==o&&void 0!==o&&null!==(e=o.meta)&&void 0!==e&&e.did&&M()}),[null===o||void 0===o||null===(n=o.meta)||void 0===n?void 0:n.did]);var A=function(e){e.teamDid===I&&M(I)};(0,O.mU)(f.EVENTS.USER_ADDED,A,[I]),(0,O.mU)(f.EVENTS.USER_REMOVED,A,[I]),(0,O.mU)(f.EVENTS.USER_UPDATED,A,[I]);var U={teamDid:I,teamIssuerDid:L,teamName:x,invitations:c,roles:m,permissions:y,trustedPassports:E,trustedFactories:N,isNodeTeam:!1,enablePassportIssuance:B,refresh:function(){return M()},passportColor:k,endpoint:window.location.origin,blocklet:o,api:{getUser:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).did,t={teamDid:I,user:{did:e}};return _.Z.getUser({input:t})},getUsers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=e.paging,r={teamDid:I};return n&&(r.paging=n),t&&(r.query=t),r.sort={lastLoginAt:-1},_.Z.getUsers({input:r})},getUsersCountPerRole:function(){return _.Z.getUsersCountPerRole({input:{teamDid:I}})}}};return(0,T.jsx)(R,{value:U,children:r})}n(53420);var M,A=n(25177),U=n(75255),Z=n(51921),z=n(52426),F=n(88029),V=n(81721),q=n(2834),K=n(15209),W=n(1934),G=n(51524),H=n(13328);function X(e){var t,n=e.children,r=(0,u.useLocaleContext)().t,o=(0,P.y0)(),i=o.loading,c=o.error,s=o.actions.refreshBlocklet,d=o.env,v=o.blocklet,b=(0,k.h6)().info,g=(0,a.useLocation)(),y=(0,U.Z)((function(e){return e.breakpoints.down("md")})),h=[{label:"App ID",value:d.appId},{label:"App Version",value:d.version},{label:"App Bundle Name",value:null===v||void 0===v||null===(t=v.meta)||void 0===t?void 0:t.bundleName},{label:"Server Id",value:b.did},{label:"Server Version",value:b.version}],x={};return y&&(x.logo=null),(0,H.jsxs)(J,{legacy:!1,fullWidth:!0,headerAddons:function(e){var t,n;if(!(0,W.isServerless)(v))return e;var r=Array.isArray(e)?e:[e];return r.unshift((0,H.jsx)(G.Z,{chainHost:null===v||void 0===v||null===(t=v.controller)||void 0===t?void 0:t.chainHost,nftId:null===v||void 0===v||null===(n=v.controller)||void 0===n?void 0:n.nftId,retention:f.EXPIRED_BLOCKLET_DATA_RETENTION_DAYS,sx:{cursor:"pointer",marginRight:{xs:"8px",md:"48px"}}})),r},headerProps:x,footerProps:{addon:(0,H.jsx)(z.Z,{infos:h})},children:[!v&&i&&(0,H.jsx)(V.default,{relative:"parent",children:(0,H.jsx)(m.Z,{})}),!v&&c&&(0,H.jsxs)(V.default,{relative:"parent",children:[(0,H.jsxs)(l.Z,{display:"flex",alignItems:"center",children:[(0,H.jsx)(A.default,{color:"error",sx:{marginRight:1}}),(0,p.formatError)(c)]}),(0,H.jsx)(F.default,{onClick:function(){return s()},children:(0,H.jsx)("span",{style:{textDecoration:"underline"},children:r("common.retry")})})]}),!!v&&(0,H.jsx)("div",{className:"dashboard-layout-body",children:(0,H.jsx)("div",{className:"dashboard-layout-main",children:(0,H.jsx)(l.Z,{className:"dashboard-layout-main",children:(0,H.jsx)(l.Z,{flex:1,padding:"16px",display:"flex",flexDirection:"column",children:(0,H.jsx)(Z.ErrorBoundary,{FallbackComponent:q.ErrorFallback,resetKeys:[g.pathname],children:n})})})})})]})}X.defaultProps={children:null};var Y,J=(0,o.default)(K.default)(M||(M=(0,r.Z)(["\n .dashboard-layout-body {\n flex: 1;\n display: flex;\n padding-top: 16px;\n }\n .dashboard-layout-main {\n flex: 1;\n padding: 0;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n }\n"]))),Q=n(38507),$=(0,i.lazy)((function(){return Promise.all([n.e(3464),n.e(5052)]).then(n.bind(n,15052))})),ee=(0,i.lazy)((function(){return Promise.all([n.e(3042),n.e(3162),n.e(655),n.e(2631),n.e(6315),n.e(3963),n.e(8395)]).then(n.bind(n,98395))})),te=(0,i.lazy)((function(){return Promise.all([n.e(4319),n.e(982),n.e(5233)]).then(n.bind(n,65233))})),ne=(0,i.lazy)((function(){return Promise.all([n.e(3042),n.e(3162),n.e(655),n.e(2631),n.e(6315),n.e(8669),n.e(8031),n.e(1210),n.e(4603)]).then(n.bind(n,49645))})),re=(0,i.lazy)((function(){return Promise.all([n.e(7606),n.e(3154),n.e(5050)]).then(n.bind(n,95050))})),oe=(0,i.lazy)((function(){return Promise.all([n.e(576),n.e(5645),n.e(780)]).then(n.bind(n,36666))})),ie=(0,i.lazy)((function(){return Promise.all([n.e(3042),n.e(3162),n.e(655),n.e(576),n.e(2631),n.e(8669),n.e(7291),n.e(7345),n.e(766)]).then(n.bind(n,766))})),ae=(0,i.lazy)((function(){return Promise.all([n.e(3042),n.e(3162),n.e(655),n.e(576),n.e(2631),n.e(6315),n.e(6891),n.e(5430)]).then(n.bind(n,45609))})),le=(0,i.lazy)((function(){return Promise.all([n.e(3042),n.e(3162),n.e(655),n.e(576),n.e(4319),n.e(445),n.e(7518),n.e(7291),n.e(7606),n.e(2130),n.e(1210),n.e(1162),n.e(9476),n.e(3800)]).then(n.bind(n,33800))})),ce=(0,i.lazy)((function(){return Promise.all([n.e(3042),n.e(3162),n.e(655),n.e(2631),n.e(6315),n.e(7518),n.e(5711),n.e(1832)]).then(n.bind(n,61832))}));function ue(){var e,t,n=(0,a.useNavigate)(),r=(0,a.useParams)().tab,o=void 0===r?"overview":r,O=(0,P.y0)(),w=O.blocklet,C=O.actions.refreshBlocklet,S=(0,u.useLocaleContext)().t,D=null===w||void 0===w||null===(e=w.meta)||void 0===e?void 0:e.did,E=!w||(0,p.isInstalling)(w.status)?[]:(0,d.getAppMissingConfigs)(w),_=[{label:S("common.overview"),value:"overview"},{label:(0,T.jsx)(c.Z,{color:"error",variant:"dot",invisible:!E.length,children:S("common.components")}),value:"components"}];(0,p.isInstalling)(null===w||void 0===w?void 0:w.status)||_.push({label:S("common.configuration"),value:"configuration"}),_.push({label:S("common.auditLogs"),value:"audit-logs"}),w&&null!==(t=w.children)&&void 0!==t&&t.length&&w.structVersion===f.APP_STRUCT_VERSION&&_.push({label:S("common.logs"),value:"logs"}),_.push({label:S("common.configNavigation"),value:"navigation"}),_.push({label:S("common.storage"),value:"storage"});var R=(0,T.jsx)(re,{scope:D,categories:["blocklet","team","security","certificates","gateway"]}),N={overview:(0,T.jsx)($,{}),members:(0,T.jsx)(l.Z,{mt:-5,children:(0,T.jsx)(ee,{type:"blocklet",createPassportSvg:Q.Ju})}),passports:(0,T.jsx)(l.Z,{mt:-4.5,children:(0,T.jsx)(te,{createPassportSvg:Q.Ju})}),components:le,configuration:(0,T.jsx)(ne,{blocklet:w,onUpdate:function(){C()}}),"audit-logs":R,logs:oe,navigation:ie,storage:(0,T.jsx)(ae,{}),analytics:(0,T.jsx)(l.Z,{mt:-5,children:(0,T.jsx)(ce,{})})},I=N[o]||N.overview,L=!["members","passports","analytics"].includes(o),M=w?(0,T.jsxs)(b.DeletingBlockletProvider,{type:"components",children:[L&&(0,T.jsx)(s.default,{tabs:_,current:o,onChange:function(e){n("".concat(f.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin/").concat(e))},scrollButtons:"auto"}),(0,T.jsx)("div",{className:"page-content",children:(0,T.jsx)(i.Suspense,{fallback:(0,T.jsx)(m.Z,{}),children:(0,i.isValidElement)(I)?I:(0,T.jsx)(I,{blocklet:w})})})]}):(0,T.jsx)(m.Z,{});return(0,T.jsx)(k.cK,{children:(0,T.jsx)(B,{children:(0,T.jsx)(X,{children:(0,T.jsxs)(de,{children:[L&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(l.Z,{component:"div",className:"page-header",children:[(0,T.jsxs)(l.Z,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[w?(0,T.jsx)(h.Z,{blocklet:w,style:{marginRight:16}}):null,w?(0,T.jsxs)(l.Z,{display:"flex",alignItems:"center",children:[(0,T.jsx)(l.Z,{children:(0,d.getDisplayName)(w)}),"unknown"!==(null===w||void 0===w?void 0:w.status)&&(0,T.jsx)(g.default,{size:"12px",style:{marginLeft:8},status:w.status,source:w.source})]}):"".concat(S("common.blocklet")," ").concat(S("common.detail"))]}),w?(0,T.jsx)(y.Z,{className:"page-actions",hasPermission:!0,blocklet:w,onStart:function(){},onComplete:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).error;e&&j.default.error(e.message)},variant:"group"}):null]}),!!E.length&&(0,T.jsx)(v.default,{type:"error",style:{margin:"12px 0"},children:S("blocklet.config.missingRequired")})]}),(0,T.jsx)(x.Z,{}),M]})})})})}function se(){var e,t=(0,P.y0)().blocklet,n=null===t||void 0===t||null===(e=t.meta)||void 0===e?void 0:e.did;return(0,i.useEffect)((function(){var e=(0,O.ZP)();return n&&e.connect(),function(){n&&e.isConnected()&&e.disconnect()}}),[n]),(0,T.jsx)(ue,{})}var de=o.default.main(Y||(Y=(0,r.Z)(["\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .page-title {\n display: flex;\n align-items: center;\n\n .page-link {\n font-size: 15px;\n margin-top: 8px;\n margin-left: 8px;\n }\n }\n\n .page-content {\n margin-top: 36px;\n }\n\n @media (max-width: ","px) {\n .page-header {\n flex-direction: column;\n align-items: flex-start;\n .page-actions,\n .MuiButtonGroup-root {\n width: 100%;\n }\n .MuiButtonGroup-root {\n .MuiButtonBase-root {\n flex: 1;\n }\n .blocklet-action-text {\n display: none;\n }\n }\n }\n\n .page-title {\n margin-bottom: 15px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.values.md}))},37807:function(e,t,n){var r=n(27609).default,o=n(91461).default,i=n(43681).default;t.Z=K;var a,l=n(30969),c=Z(n(24974)),u=Z(n(16380)),s=n(86822),d=Z(n(17708)),f=Z(n(98623)),p=Z(n(6839)),m=Z(n(46315)),v=Z(n(29491)),b=Z(n(99)),g=Z(n(47856)),y=Z(n(37973)),h=Z(n(44718)),x=Z(n(54277)),j=Z(n(49284)),O=Z(n(88420)),P=Z(n(70413)),k=Z(n(20392)),w=Z(n(25652)),C=Z(n(88029)),S=n(7017),D=n(42167),E=n(59505),_=n(20244),T=Z(n(99811)),R=n(85710),N=n(1934),I=n(78174),L=Z(n(8144)),B=Z(n(73237)),M=n(51145),A=n(37574),U=["blocklet","onStart","onComplete","variant","hasPermission","useBlockletUrlEvaluation"];function Z(e){return e&&e.__esModule?e:{default:e}}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function K(e){var t,n,a,c,u=e.blocklet,Z=e.onStart,z=e.onComplete,V=e.variant,K=e.hasPermission,W=e.useBlockletUrlEvaluation,G=q(e,U),X=(0,s.useNavigate)(),Y=(0,I.useNodeContext)(),J=(0,l.useState)(null),Q=i(J,2),$=Q[0],ee=Q[1],te=(0,l.useState)(null),ne=i(te,2),re=ne[0],oe=ne[1],ie=(0,l.useState)(!1),ae=i(ie,2),le=ae[0],ce=ae[1],ue=(0,l.useState)(null),se=i(ue,2),de=se[0],fe=se[1],pe=(0,l.useContext)(D.LocaleContext).t,me=(0,d.default)("skip-blocklet-setup",!1),ve=i(me,1)[0],be=W(u),ge=be.loading,ye=be.recommendedUrl,he=(0,M.useBlockletContext)().nftState,xe=(0,S.isInProgress)(u.status),je=(null===u||void 0===u||null===(t=u.controller)||void 0===t||null===(n=t.status)||void 0===n?void 0:n.value)===E.BLOCKLET_CONTROLLER_STATUS.suspended;null!==he&&void 0!==he&&he.expired||(null===u||void 0===u||null===(a=u.controller)||void 0===a||null===(c=a.status)||void 0===c?void 0:c.reason)!==E.SUSPENDED_REASON.expired||(je=!1);var Oe=Y.inService,Pe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o(r().mark((function i(){var a,l,c,s,d;return r().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a=function(){var n=o(r().mark((function n(o){var i,a,l,c,s,d,f;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(Z({action:e,blocklet:u}),ce(!0),oe(e),fe(null),i=!1,n.prev=5,"remove"!==e){n.next=11;break}return n.next=9,t(o);case 9:n.next=30;break;case 11:if("start"!==e){n.next=27;break}if((0,S.hasRunnableComponent)(u)){n.next=15;break}return T.default.error(pe("blocklet.noComponent")),n.abrupt("return");case 15:if(Oe||ve||null!==(a=u.settings)&&void 0!==a&&a.initialized){n.next=22;break}return l=(0,N.getServerUrl)(Y.info),(c=new URL(ye)).searchParams.set("serverUrl",l),window.open(c.href),z({action:e,blocklet:u}),n.abrupt("return");case 22:return s={did:u.meta.did},n.next=25,t({input:s});case 25:n.next=30;break;case 27:return d={did:u.meta.did},n.next=30,t({input:d});case 30:if("remove"!==e){n.next=34;break}i=!0,n.next=36;break;case 34:return n.next=36,(0,R.sleep)(1e3);case 36:"reload"===e&&T.default.success(pe("blocklet.reloadSuccess")),z({action:e,blocklet:u}),n.next=44;break;case 40:n.prev=40,n.t0=n.catch(5),f="Blocklet ".concat(e," failed: ").concat((0,R.formatError)(n.t0)),z({action:e,blocklet:u,error:new Error(f)});case 44:return n.prev=44,i||ce(!1),n.finish(44);case 47:case"end":return n.stop()}}),n,null,[[5,40,44,47]])})));return function(e){return n.apply(this,arguments)}}(),l=function(){ce(!1),fe(null)},c=(0,S.getDisplayName)(u,!0),s={description:function(e,t){return(0,A.jsxs)(j.default,{component:"div",children:[(0,A.jsx)(j.default,{gutterBottom:!0,children:pe("blocklet.action.removeApplicationDescription")}),(0,A.jsxs)(P.default,{name:"removeType",value:e.removeType,onChange:function(n){return t(F(F({},e),{},{removeType:n.target.value}))},children:[(0,A.jsx)(k.default,{value:"backup",control:(0,A.jsx)(O.default,{}),label:pe("blocklet.action.removeApplicationAfterBackup")}),(0,A.jsx)(k.default,{value:"complete",control:(0,A.jsx)(O.default,{}),label:pe("blocklet.action.removeApplicationComplete")})]})]})},params:{removeType:"backup"}},d={stop:{title:"".concat(pe("common.stop")," ").concat(c),description:pe("blocklet.action.stopDescription"),confirm:pe("blocklet.action.confirmStop"),cancel:pe("common.cancel"),onConfirm:a,onCancel:l},restart:{title:"".concat(pe("common.restart")," ").concat(c),description:pe("blocklet.action.restartDescription"),confirm:pe("blocklet.action.confirmRestart"),cancel:pe("common.cancel"),onConfirm:a,onCancel:l},remove:F({title:"".concat(pe("common.remove")," ").concat(c),confirm:pe("blocklet.action.confirmRemove"),cancel:pe("common.cancel"),onConfirm:a,onCancel:l},s),cancelDownload:{title:"".concat(pe("common.cancel")),description:pe("blocklet.action.cancelDownloadDescription",{name:c}),confirm:pe("common.confirm"),cancel:pe("common.cancel"),onConfirm:a,onCancel:l}},!n){i.next=9;break}fe(d[e]),i.next=11;break;case 9:return i.next=11,a();case 11:case"end":return i.stop()}}),i)})))},ke=Boolean($),we=function(){var e=o(r().mark((function e(t,n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{n.stopPropagation(),n.preventDefault()}catch(r){}if(ee(null),"function"!==typeof t.handler){e.next=16;break}return e.prev=3,ce(!0),oe(t.action),e.next=8,t.handler();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error("Blocklet ".concat(t.name," failed: "),e.t0);case 13:return e.prev=13,ce(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[3,10,13,16]])})));return function(t,n){return e.apply(this,arguments)}}(),Ce=!Oe&&(0,S.isDeletableBlocklet)(u)&&u.structVersion===_.APP_STRUCT_VERSION?{action:"remove",icon:B.default.Remove,name:pe("common.remove"),handler:Pe("remove",function(){var e=o(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("backup"!==t.removeType){e.next=4;break}return e.next=4,Y.api.backupBlocklet({input:{appDid:u.appDid,to:"disk"}});case 4:return e.next=6,Y.api.deleteBlocklet({input:{did:u.meta.did,keepData:!1}});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),!0),disabled:xe}:null,Se={action:"remove",icon:B.default.Remove,name:pe("common.cancel"),handler:Pe("cancelDownload",Y.api.cancelDownloadBlocklet,!0)},De=(0,S.getAppMissingConfigs)(u),Ee=[{action:"start",icon:B.default.Start,name:pe("common.start"),handler:Pe("start",Y.api.startBlocklet),disabled:je||"running"===u.status||"corrupted"===u.status||De.length>0||(0,R.isDownloading)(u.status)||u.mode===E.BLOCKLET_MODES.DEVELOPMENT||ge||xe},{action:"stop",icon:B.default.Stop,name:pe("common.stop"),handler:Pe("stop",Y.api.stopBlocklet,!0),disabled:!["running","starting"].includes(u.status)||u.mode===E.BLOCKLET_MODES.DEVELOPMENT},{action:"restart",icon:B.default.Restart,name:pe("common.restart"),handler:Pe("restart",Y.api.restartBlocklet,!0),disabled:je||"running"!==u.status||u.mode===E.BLOCKLET_MODES.DEVELOPMENT},{action:"reload",icon:B.default.Reload,name:pe("common.reload"),handler:Pe("reload",Y.api.reloadBlocklet),disabled:je||"running"!==u.status||u.mode===E.BLOCKLET_MODES.DEVELOPMENT},(0,R.isDownloading)(u.status)?Se:Ce,{separator:!0},{onlyInMenu:!0,action:"config",icon:B.default.Config,name:pe("common.config"),handler:function(){X("/blocklets/".concat(u.meta.did,"/configuration"))},disabled:(0,R.isDownloading)(u.status)},{onlyInMenu:!0,action:"team",icon:B.default.Group,name:pe("common.manageTeam"),handler:function(){X("/blocklets/".concat(u.meta.did,"/members"))},disabled:(0,R.isDownloading)(u.status)},{onlyInMenu:!0,action:"log",icon:B.default.Log,name:pe("common.log"),handler:function(){X("/logs/blocklet-".concat(u.meta.did))},disabled:(0,R.isDownloading)(u.status)}].filter(Boolean);return"menu"===V?(0,A.jsxs)(H,{"data-cy":"blocklet-actions",children:[(0,A.jsx)(f.default,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":u.meta.did,onClick:function(e){try{e.stopPropagation(),e.preventDefault()}catch(t){}ee(e.currentTarget)},size:"small",disabled:!K||!(0,R.isDownloading)(u.status)&&le,children:(0,A.jsx)(y.default,{})}),(0,A.jsxs)(p.default,{id:"actions-menu",anchorEl:$,keepMounted:!0,open:ke,onClose:function(e){try{e.stopPropagation(),e.preventDefault()}catch(t){}ee(null)},PaperProps:{},children:[De.length>0&&(0,A.jsxs)(w.default,{style:{maxWidth:"400px"},severity:"error",children:[pe("blocklet.config.missingRequired"),(0,A.jsx)("br",{}),(0,A.jsx)(s.Link,{to:"/blocklets/".concat(u.meta.did,"/components"),children:pe("blocklet.config.gotoFix")})]}),Ee.map((function(e,t){return e.separator?(0,A.jsx)(m.default,{},"separator-".concat(t)):(0,A.jsxs)(g.default,{dense:!0,onClick:function(t){return we(e,t)},disabled:e.disabled,"data-cy":"".concat(e.action,"-blocklet"),children:[(0,A.jsx)(h.default,{style:{minWidth:24},children:(0,A.jsx)(e.icon,{fontSize:"small"})}),(0,A.jsx)(x.default,{primary:e.name})]},e.name)}))]}),de&&(0,A.jsx)(L.default,{title:de.title,description:de.description,confirm:de.confirm,cancel:de.cancel,params:de.params,onConfirm:de.onConfirm,onCancel:de.onCancel})]}):(0,A.jsxs)(H,F(F({"data-cy":"blocklet-actions"},G),{},{children:[(0,A.jsx)(v.default,{children:Ee.filter((function(e){return!e.separator&&!e.onlyInMenu})).map((function(e){return(0,A.jsxs)(C.default,{title:e.name,"data-cy":"".concat(e.action,"-blocklet"),onClick:function(){return we(e)},disabled:Boolean(e.disabled)||le,children:[re===e.action&&le&&xe?(0,A.jsx)(b.default,{size:16}):(0,A.jsx)(e.icon,{}),(0,A.jsx)("span",{className:"blocklet-action-text",children:e.name})]},e.name)}))}),de&&(0,A.jsx)(L.default,{title:de.title,description:de.description,confirm:de.confirm,cancel:de.cancel,params:de.params,onConfirm:de.onConfirm,onCancel:de.onCancel})]}))}K.propTypes={blocklet:c.default.object.isRequired,onStart:c.default.func.isRequired,onComplete:c.default.func.isRequired,variant:c.default.oneOf(["menu","group"]),hasPermission:c.default.bool,useBlockletUrlEvaluation:c.default.func},K.defaultProps={variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:function(){var e,t;return{loading:!1,recommendedUrl:null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.href}}};var W,G,H=u.default.div(a||(W=["\n display: flex;\n align-items: center;\n\n @media (max-width: ","px) {\n .MuiButton-root {\n padding: 4px;\n font-size: 10px;\n }\n }\n"],G||(G=W.slice(0)),a=Object.freeze(Object.defineProperties(W,{raw:{value:Object.freeze(G)}}))),(function(e){return e.theme.breakpoints.values.sm}))},30547:function(e,t,n){t.Z=v;var r=s(n(24974)),o=s(n(42477)),i=s(n(43685)),a=n(59505),l=s(n(27533)),c=n(37574),u=["blocklet","style","size"];function s(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function v(e){var t,n=e.blocklet,r=e.style,s=e.size,d=m(e,u),p=(0,l.default)({blocklet:n}).logoUrl,v=d.variant,b=(0,c.jsx)("img",{src:p,alt:"",style:{width:s}});n.meta.logo||((null===(t=(n.configs||[]).find((function(e){return e.key===a.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE})))||void 0===t?void 0:t.value)||(b=(0,c.jsx)(i.default,{did:n.meta.did||"",responsive:!0})));return(0,c.jsx)(o.default,f(f({variant:v||"square",style:Object.assign({backgroundColor:"transparent",width:s,height:s,borderRadius:10},r)},d),{},{children:b}))}v.propTypes={blocklet:r.default.object.isRequired,style:r.default.object,size:r.default.oneOfType([r.default.number,r.default.string])},v.defaultProps={style:{},size:40}},73237:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(10814)),o=d(n(8825)),i=d(n(60003)),a=d(n(13875)),l=d(n(57256)),c=d(n(14079)),u=d(n(51389)),s=d(n(98127));function d(e){return e&&e.__esModule?e:{default:e}}var f={Start:o.default,Stop:i.default,Restart:a.default,Reload:l.default,Remove:r.default,Config:c.default,Log:u.default,Group:s.default};t.default=f},4414:function(e,t,n){var r=n(43681).default;t.Z=P;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(30969)),i=h(n(92293)),a=h(n(98169)),l=h(n(88029)),c=n(20244),u=h(n(7284)),s=n(42167),d=n(7017),f=h(n(99811)),p=n(78174),m=n(51145),v=n(99112),b=n(85710),g=n(1934),y=n(37574);function h(e){return e&&e.__esModule?e:{default:e}}function x(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}var j=function(e){var t={},n=null;return(0,d.forEachBlockletSync)(e,(function(e){t[e.meta.bundleDid]?n=(0,d.getDisplayName)(e,!0):e.meta.bundleDid&&(t[e.meta.bundleDid]=!0)})),n},O=function(e,t,n){var r=e.hostname,o=e.href;if(!t)return o;if(n){var i,a=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!a)return o;var l=a[0],u=(((null===(i=t.site)||void 0===i?void 0:i.domainAliases)||[]).map((function(e){return e.value})).filter(Boolean).find((function(e){return e.endsWith(c.DEFAULT_DID_DOMAIN)}))||"").replace(".".concat(c.DEFAULT_DID_DOMAIN),"");return u?o.replace(r,"".concat(u,"-").concat(l,".").concat(c.DEFAULT_IP_DOMAIN_SUFFIX)):o}return o.replace(t.meta.bundleDid,t.appPid)};function P(){var e=(0,s.useLocaleContext)().t,t=(0,v.useSessionContext)().api,n=(0,m.useBlockletContext)().blocklet,h=(0,p.useNodeContext)().inService,x=(0,o.useState)(!1),P=r(x,2),k=P[0],w=P[1],C=(0,o.useState)(5),S=r(C,2),D=S[0],E=S[1],_=n&&n.structVersion!==c.APP_STRUCT_VERSION;return[_&&(0,y.jsxs)(a.default,{type:"warning",style:{margin:"12px 0"},children:[(0,y.jsxs)(i.default,{display:"flex",alignItems:"center",children:[(0,y.jsx)(l.default,{variant:"contained",size:"small",color:"primary",onClick:function(){return function(){try{if("running"===n.status)return void f.default.error(e("blocklet.migrate.tip.running"));var t=j(n);if(t)return void f.default.error(e("blocklet.migrate.tip.duplicate",{name:t}));w(!0)}catch(r){f.default.error((0,b.formatError)(r))}}()},style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),(0,y.jsx)("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map((function(t){return(0,y.jsx)(i.default,{display:"flex",alignItems:"center",children:e("blocklet.migrate.intro.".concat(t))},t)}))]},"alert"),n&&(0,y.jsx)(u.default,{popup:!0,open:k,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:3e5,onSuccess:function(){var e=O(window.location,n,h);setTimeout((function(){window.location.href=e}),5e3),E(5),setInterval((function(){E((function(e){return e-1}))}),1e3)},extraParams:{appDid:n.appDid,did:n.meta.did,wt:(0,g.getWalletType)(n,!0),title:(0,d.getDisplayName)(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:D>=0?e("blocklet.migrate.success",{sec:D}):"Redirecting..."},onClose:function(){return w(!1)}},"connect")]}P.propTypes={}},31350:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var r=n(30969),o=p(n(24974)),i=p(n(99)),a=p(n(58926)),l=n(42167),c=n(7017),u=p(n(98734)),s=p(n(51359)),d=n(37574),f=["status","variant","source"];function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y={yellow:"#FFCF71",grey:"#888888"};function h(e){var t=e.status,n=e.variant,o=(e.source,g(e,f)),p=(0,r.useContext)(l.LocaleContext).t,m={added:y.grey,waiting:y.yellow,downloading:y.yellow,downloaded:y.grey,installing:y.yellow,installed:y.grey,starting:y.yellow,running:"success",stopping:y.yellow,stopped:y.grey,error:"error",upgrading:y.yellow,restarting:y.yellow,corrupted:"error",deleting:y.yellow},b=(0,c.isInProgress)(t),h=p("blocklet.status.".concat(t));return"dot"===n?(0,d.jsx)(a.default,{title:p("blocklet.statusTip",{status:h}),children:(0,d.jsx)(u.default,v({color:m[t]},o))}):(0,d.jsxs)(s.default,v(v({type:{added:"primary",waiting:"warning",downloading:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning"}[t]},o),{},{children:[b&&(0,d.jsx)(i.default,{size:12,color:"inherit",style:{marginRight:5}}),h]}))}h.propTypes={status:o.default.string.isRequired,variant:o.default.oneOf(["dot","tag"]),source:o.default.string},h.defaultProps={variant:"tag",source:""}},8144:function(e,t,n){var r=n(27609).default,o=n(91461).default,i=n(43681).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=w;var a,l=n(30969),c=k(n(24974)),u=k(n(16380)),s=k(n(47499)),d=k(n(99)),f=k(n(65317)),p=k(n(31851)),m=k(n(1707)),v=k(n(58920)),b=k(n(25652)),g=k(n(94702)),y=k(n(96534)),h=n(42167),x=k(n(88029)),j=n(85710),O=k(n(78853)),P=n(37574);function k(e){return e&&e.__esModule?e:{default:e}}function w(e){var t=e.title,n=e.description,a=e.showCancel,c=e.cancel,u=e.confirm,s=e.color,k=e.params,w=e.onCancel,C=e.onConfirm,S=e.loading,E=(0,l.useState)(k),_=i(E,2),T=_[0],R=_[1],N=(0,l.useState)(!0),I=i(N,2),L=I[0],B=I[1],M=(0,l.useState)(!1),A=i(M,2),U=A[0],Z=A[1],z=(0,l.useState)(""),F=i(z,2),V=F[0],q=F[1],K=(0,h.useLocaleContext)().t,W=(0,g.default)(),G=function(){var e=o(r().mark((function e(t){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!==typeof t){e.next=17;break}return Z(!0),e.prev=2,e.next=5,t(T);case 5:B(!1),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(2),q((0,j.formatError)(e.t0)),console.error(e.t0);case 12:return e.prev=12,Z(!1),e.finish(12);case 15:e.next=18;break;case 17:B(!1);case 18:case"end":return e.stop()}}),e,null,[[2,8,12,15]])})));return function(t){return e.apply(this,arguments)}}(),H="function"===typeof t?t():t,X="function"===typeof n?n(T,R,q):n,Y=(0,y.default)(W.breakpoints.down("md")),J=(0,O.default)().minWidth;return(0,P.jsxs)(D,{onClick:function(e){e.stopPropagation()},fullScreen:Y,open:L,style:{minWidth:J},children:[(0,P.jsx)(v.default,{children:H}),(0,P.jsxs)(p.default,{style:{minWidth:J},children:[(0,P.jsx)(m.default,{component:"div",children:X}),!!V&&(0,P.jsx)(b.default,{severity:"error",style:{width:"100%",marginTop:8},children:V})]}),(0,P.jsxs)(f.default,{className:"delete-actions",style:{padding:"8px 24px 24px"},children:[a&&(0,P.jsx)(x.default,{onClick:function(e){e.stopPropagation(),G(w)},color:"inherit","data-cy":"cancel-confirm-dialog",children:c||K("common.cancel")}),(0,P.jsxs)(x.default,{onClick:function(e){e.stopPropagation(),G(C)},color:s,disabled:T.__disableConfirm||U||S,variant:"contained","data-cy":"submit-confirm-dialog",autoFocus:!0,children:[(U||S)&&(0,P.jsx)(d.default,{size:16}),u]})]})]})}w.propTypes={title:c.default.any.isRequired,description:c.default.any.isRequired,showCancel:c.default.bool,cancel:c.default.string,color:c.default.string,confirm:c.default.string,params:c.default.object,onCancel:c.default.func,onConfirm:c.default.func.isRequired,loading:c.default.bool},w.defaultProps={onCancel:function(){},showCancel:!0,cancel:"",confirm:"Confirm",color:"error",params:{},loading:!1};var C,S,D=(0,u.default)(s.default)(a||(C=["\n .delete-actions .Mui-disabled {\n color: rgba(0, 0, 0, 0.26) !important;\n box-shadow: none;\n background-color: rgba(0, 0, 0, 0.12) !important;\n }\n"],S||(S=C.slice(0)),a=Object.freeze(Object.defineProperties(C,{raw:{value:Object.freeze(S)}}))))},66657:function(e,t,n){var r=n(73408).default,o=n(43681).default;Object.defineProperty(t,"__esModule",{value:!0}),t.DeletingBlockletProvider=d,t.useDeletingBlockletContext=function(){return(0,i.useContext)(s)};var i=n(30969),a=u(n(24974)),l=u(n(16986)),c=n(37574);function u(e){return e&&e.__esModule?e:{default:e}}var s=(0,i.createContext)({});function d(e){var t=e.children,n=e.type,a=(0,i.useState)([]),u=o(a,2),d=u[0],f=u[1],p=(0,i.useRef)([]),m=function(e){if(p.current.includes(e)){var t=p.current.filter((function(t){return t!==e}));f(t),p.current=t}};return(0,c.jsx)(s.Provider,{value:{type:n,deletingBlocklets:d,addDeletingDid:function(e){if(!p.current.includes(e)){var t=[].concat(r(p.current),[e]);f(t),p.current=t}},removeDeletingDid:m,matchDeletingDid:function(e){var t=d.filter((function(t){return e.find((function(e){return e===t}))}));(0,l.default)(t,d).forEach((function(e){return m(e)}))}},children:t})}d.propTypes={type:a.default.string,children:a.default.node.isRequired},d.defaultProps={type:"blocklets"}},78174:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NodeProvider=t.NodeContext=t.NodeConsumer=void 0,t.useNodeContext=function(){var e=(0,r.useContext)(l).node;return i(i({},e),{},{inService:"service"===e.type,inDaemon:"daemon"===e.type})};var r=n(30969);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=(0,r.createContext)({});t.NodeContext=l;var c=l.Provider,u=l.Consumer;t.NodeConsumer=u,t.NodeProvider=c},99112:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SessionContext",{enumerable:!0,get:function(){return o.SessionContext}}),t.useSessionContext=function(){return(0,r.useContext)(o.SessionContext)};var r=n(30969),o=n(2480)},80519:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TeamProvider=t.TeamContext=t.TeamConsumer=void 0,t.useTeamContext=function(){return(0,r.useContext)(o)};var r=n(30969),o=(0,r.createContext)({});t.TeamContext=o;var i=o.Provider,a=o.Consumer;t.TeamConsumer=a,t.TeamProvider=i},98734:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=(r=n(16380))&&r.__esModule?r:{default:r};var a,l,c={success:"#3ab39d",error:"#D0021B"},u="10px",s=i.default.div(o||(a=["\n display: inline-block;\n width: ",";\n height: ",";\n background: ",";\n border-radius: 100%;\n"],l||(l=a.slice(0)),o=Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(l)}}))),(function(e){return e.size||u}),(function(e){return e.size||u}),(function(e){return c[e.color]||e.color||c.success}));t.default=s},78853:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(75722),i=(r=n(96534))&&r.__esModule?r:{default:r};var a=function(){var e=(0,o.useTheme)();return{minWidth:(0,i.default)(e.breakpoints.down("md"))?300:e.breakpoints.values.sm}};t.default=a},27533:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,r=e.blocklet,l=(0,i.useNodeContext)().inService,c=(null===(t=window.env)||void 0===t?void 0:t.apiPrefix)||"/",u="?v=".concat(null===r||void 0===r||null===(n=r.meta)||void 0===n?void 0:n.version).concat((0,a.isInstalling)(null===r||void 0===r?void 0:r.status)?"~":"");return{logoUrl:(0,o.default)(c,"/blocklet/logo/".concat(l?"":r.meta.did),u)}};var r,o=(r=n(19611))&&r.__esModule?r:{default:r},i=n(78174),a=n(85710)},52426:function(e,t,n){t.Z=u;var r=c(n(24974)),o=n(49506),i=c(n(20744)),a=n(42167),l=n(13328);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.infos,n=(0,a.useLocaleContext)().t,r=t.map((function(e){return"* ".concat(e.label,": ").concat(e.value)})).join("\n"),c=new URL("https://github.com/blocklet/blocklet-site/issues/new");return c.searchParams.set("title","[Feedback]"),c.searchParams.set("body","\x3c!-- [Enter feedback here] --\x3e\n\n\n\n\x3c!--\nDocument Details\n".concat(r,"\n* Page: ").concat(window.location.href,"\n--\x3e\n")),(0,l.jsx)(o.Box,{sx:{mx:{xs:0,md:2}},children:(0,l.jsx)(i.default,{sx:{color:"text.primary"},target:"_blank",href:c.href,rel:"noreferrer",style:{textDecoration:"underline"},children:n("common.reportIssue")})})}u.propTypes={infos:r.default.arrayOf(r.default.shape({label:r.default.string,value:r.default.string}))},u.defaultProps={infos:[]}},51524:function(e,t,n){var r=n(43681).default;t.Z=void 0;var o=h(n(93033)),i=n(42167),a=h(n(25847)),l=h(n(92293)),c=h(n(81868)),u=h(n(99)),s=h(n(19886)),d=h(n(24974)),f=n(30969),p=h(n(22073)),m=h(n(43178)),v=n(85710),b=n(37574),g=["chainHost","nftId","retention"],y=["sx"];function h(e){return e&&e.__esModule?e:{default:e}}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k(e){var t,n,d,h=e.chainHost,x=e.nftId,O=(e.retention,P(e,g)),k=(0,i.useLocaleContext)(),w=k.t,C=k.locale,S=(0,m.default)({safeIframeRef:null,popoverAnchorEl:null}),D=r(S,2),E=D[0],_=D[1],T=(0,f.useRef)(null),R=O.sx,N=void 0===R?{}:R,I=P(O,y),L=(0,p.default)((function(){return(0,v.getAsset)(h,x)}));if(L.loading)return(0,b.jsxs)(l.default,j(j({sx:j({display:"flex",alignItems:"center",color:"grey",gap:1},N)},I),{},{children:[(0,b.jsx)(u.default,{size:16}),w("expiration.loading")]}));if(L.error)return console.error(L.error),(0,b.jsx)(a.default,j(j({label:w("expiration.loadFailed"),color:"error",variant:"success",sx:j({cursor:"pointer"},N)},I),{},{onClick:function(){return L.retry()}}));var B=(0,v.getAssetExpiration)(L.value),M=null===(t=L.value)||void 0===t||null===(n=t.data)||void 0===n||null===(d=n.value)||void 0===d?void 0:d.launcherUrl,A=(0,s.default)(B).isBefore((0,s.default)()),U=(0,s.default)(B).diff((0,s.default)(),"ms"),Z="success";U<=2592e6&&(Z="warning"),A&&(Z="error");return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a.default,j(j({label:w("expiration.tips.".concat(Z),{validity:(0,o.default)(U,{locale:(0,v.formatLocale)(C),compact:!0,verbose:!0})}),color:Z,variant:"success"!==Z?"contained":"outlined",sx:j({cursor:"pointer"},N)},I),{},{onClick:function(e){_({popoverAnchorEl:e.currentTarget})}})),(0,b.jsx)(c.default,{id:"popover-info",open:Boolean(E.popoverAnchorEl),anchorEl:E.popoverAnchorEl,onClose:function(){_({popoverAnchorEl:null})},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,b.jsx)("iframe",{ref:T,title:w("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(0,v.getSubscriptionURL)({launcherUrl:M,nftId:x,locale:C})})})]})}k.propTypes={chainHost:d.default.string.isRequired,nftId:d.default.string.isRequired,sx:d.default.object,retention:d.default.number},k.defaultProps={sx:{},retention:0};var w=k;t.Z=w},51359:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=l(n(24974)),o=l(n(51938)),i=n(37574),a=["children","style"];function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e){var t=e.children,n=e.style,r=d(e,a);return(0,i.jsx)(o.default,u(u({style:n},r),{},{children:t}))}f.propTypes={children:r.default.any.isRequired,style:r.default.object},f.defaultProps={style:{}}}}]);
|
|
2
|
+
//# sourceMappingURL=652.d534b309.chunk.js.map
|