@abtnode/webapp 1.16.25-beta-4f765cf3 → 1.16.25-beta-f9c1b564

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/blocklet.yml CHANGED
@@ -31,4 +31,4 @@ environments: []
31
31
  capabilities: {}
32
32
  screenshots: []
33
33
  components: []
34
- gitHash: 7783a4bf883bb44b4266651b04008ef65bf6c2ce
34
+ gitHash: 1b405454868cf57fc71af90088ab82e1c1543c5a
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "./static/css/main.260b958a.css",
4
- "main.js": "./static/js/main.4029e1fc.js",
4
+ "main.js": "./static/js/main.cddf9239.js",
5
5
  "static/js/9041.bdd7c1f3.chunk.js": "./static/js/9041.bdd7c1f3.chunk.js",
6
6
  "static/js/2960.ac6f7a4e.chunk.js": "./static/js/2960.ac6f7a4e.chunk.js",
7
7
  "static/js/3389.52e7ac5c.chunk.js": "./static/js/3389.52e7ac5c.chunk.js",
@@ -120,7 +120,7 @@
120
120
  "static/css/7657.cc1ab277.chunk.css": "./static/css/7657.cc1ab277.chunk.css",
121
121
  "static/js/7657.70e9bb8c.chunk.js": "./static/js/7657.70e9bb8c.chunk.js",
122
122
  "static/js/592.c99306f8.chunk.js": "./static/js/592.c99306f8.chunk.js",
123
- "static/js/6281.6804e876.chunk.js": "./static/js/6281.6804e876.chunk.js",
123
+ "static/js/6281.4b891c90.chunk.js": "./static/js/6281.4b891c90.chunk.js",
124
124
  "static/js/9646.c6adee42.chunk.js": "./static/js/9646.c6adee42.chunk.js",
125
125
  "static/js/2746.6d8ac071.chunk.js": "./static/js/2746.6d8ac071.chunk.js",
126
126
  "static/js/3135.d72dbe37.chunk.js": "./static/js/3135.d72dbe37.chunk.js",
@@ -184,6 +184,6 @@
184
184
  },
185
185
  "entrypoints": [
186
186
  "static/css/main.260b958a.css",
187
- "static/js/main.4029e1fc.js"
187
+ "static/js/main.cddf9239.js"
188
188
  ]
189
189
  }
package/build/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><base href="/"/><meta charset="utf-8"/><link rel="shortcut 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"/><script>"https:"===window.location.protocol&&document.write('<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />')</script><link rel="stylesheet" href="icons/css/all.css"/><title>Blocklet Server</title><script src="api/env"></script><script defer="defer" src="./static/js/main.4029e1fc.js"></script><link href="./static/css/main.260b958a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><base href="/"/><meta charset="utf-8"/><link rel="shortcut 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"/><script>"https:"===window.location.protocol&&document.write('<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />')</script><link rel="stylesheet" href="icons/css/all.css"/><title>Blocklet Server</title><script src="api/env"></script><script defer="defer" src="./static/js/main.cddf9239.js"></script><link href="./static/css/main.260b958a.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -1 +1 @@
1
- (()=>{"use strict";var e={522:()=>{try{self["workbox:core:7.0.0"]&&_()}catch(e){}},434:()=>{try{self["workbox:expiration:7.0.0"]&&_()}catch(e){}},290:()=>{try{self["workbox:precaching:7.0.0"]&&_()}catch(e){}},92:()=>{try{self["workbox:routing:7.0.0"]&&_()}catch(e){}},559:()=>{try{self["workbox:strategies:7.0.0"]&&_()}catch(e){}}},t={};function s(n){var a=t[n];if(void 0!==a)return a.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,s),r.exports}(()=>{s(522);const e=function(e){let t=e;for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];return n.length>0&&(t+=" :: ".concat(JSON.stringify(n))),t};class t extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}const n=new Set;const a={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},r=e=>[a.prefix,e,a.suffix].filter((e=>e&&e.length>0)).join("-"),i=e=>e||r(a.precache),c=e=>e||r(a.runtime);function o(e,t){const s=new URL(e);for(const n of t)s.searchParams.delete(n);return s.href}let h;function l(e){e.then((()=>{}))}class u{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}const d=e=>new URL(String(e),location.href).href.replace(new RegExp("^".concat(location.origin)),"");function f(e,t){const s=t();return e.waitUntil(s),s}async function p(e,s){let n=null;if(e.url){n=new URL(e.url).origin}if(n!==self.location.origin)throw new t("cross-origin-copy-response",{origin:n});const a=e.clone(),r={headers:new Headers(a.headers),status:a.status,statusText:a.statusText},i=s?s(r):r,c=function(){if(void 0===h){const t=new Response("");if("body"in t)try{new Response(t.body),h=!0}catch(e){h=!1}h=!1}return h}()?a.body:await a.blob();return new Response(c,i)}s(290);function g(e){if(!e)throw new t("add-to-cache-list-unexpected-type",{entry:e});if("string"===typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:s,url:n}=e;if(!n)throw new t("add-to-cache-list-unexpected-type",{entry:e});if(!s){const e=new URL(n,location.href);return{cacheKey:e.href,url:e.href}}const a=new URL(n,location.href),r=new URL(n,location.href);return a.searchParams.set("__WB_REVISION__",s),{cacheKey:a.href,url:r.href}}class w{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async e=>{let{request:t,state:s}=e;s&&(s.originalRequest=t)},this.cachedResponseWillBeUsed=async e=>{let{event:t,state:s,cachedResponse:n}=e;if("install"===t.type&&s&&s.originalRequest&&s.originalRequest instanceof Request){const e=s.originalRequest.url;n?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return n}}}class y{constructor(e){let{precacheController:t}=e;this.cacheKeyWillBeUsed=async e=>{let{request:t,params:s}=e;const n=(null===s||void 0===s?void 0:s.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return n?new Request(n,{headers:t.headers}):t},this._precacheController=t}}s(559);function m(e){return"string"===typeof e?new Request(e):e}class _{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new u,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const s of this._plugins)this._pluginStateMap.set(s,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:s}=this;let n=m(e);if("navigate"===n.mode&&s instanceof FetchEvent&&s.preloadResponse){const e=await s.preloadResponse;if(e)return e}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))n=await e({request:n.clone(),event:s})}catch(i){if(i instanceof Error)throw new t("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let e;e=await fetch(n,"navigate"===n.mode?void 0:this._strategy.fetchOptions);for(const t of this.iterateCallbacks("fetchDidSucceed"))e=await t({event:s,request:r,response:e});return e}catch(c){throw a&&await this.runCallbacks("fetchDidFail",{error:c,event:s,originalRequest:a.clone(),request:r.clone()}),c}}async fetchAndCachePut(e){const t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}async cacheMatch(e){const t=m(e);let s;const{cacheName:n,matchOptions:a}=this._strategy,r=await this.getCacheKey(t,"read"),i=Object.assign(Object.assign({},a),{cacheName:n});s=await caches.match(r,i);for(const c of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await c({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(e,s){const a=m(e);var r;await(r=0,new Promise((e=>setTimeout(e,r))));const i=await this.getCacheKey(a,"write");if(!s)throw new t("cache-put-with-no-response",{url:d(i.url)});const c=await this._ensureResponseSafeToCache(s);if(!c)return!1;const{cacheName:h,matchOptions:l}=this._strategy,u=await self.caches.open(h),f=this.hasCallback("cacheDidUpdate"),p=f?await async function(e,t,s,n){const a=o(t.url,s);if(t.url===a)return e.match(t,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await e.keys(t,r);for(const c of i)if(a===o(c.url,s))return e.match(c,n)}(u,i.clone(),["__WB_REVISION__"],l):null;try{await u.put(i,f?c.clone():c)}catch(g){if(g instanceof Error)throw"QuotaExceededError"===g.name&&await async function(){for(const e of n)await e()}(),g}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:h,oldResponse:p,newResponse:c.clone(),request:i,event:this.event});return!0}async getCacheKey(e,t){const s="".concat(e.url," | ").concat(t);if(!this._cacheKeys[s]){let n=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))n=m(await e({mode:t,request:n,event:this.event,params:this.params}));this._cacheKeys[s]=n}return this._cacheKeys[s]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"===typeof t[e]){const s=this._pluginStateMap.get(t),n=n=>{const a=Object.assign(Object.assign({},n),{state:s});return t[e](a)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(const n of this.iterateCallbacks("cacheWillUpdate"))if(t=await n({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}class v{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cacheName=c(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,s="string"===typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new _(this,{event:t,request:s,params:n}),r=this._getResponse(a,s,t);return[r,this._awaitComplete(r,a,s,t)]}async _getResponse(e,s,n){let a;await e.runCallbacks("handlerWillStart",{event:n,request:s});try{if(a=await this._handle(s,e),!a||"error"===a.type)throw new t("no-response",{url:s.url})}catch(r){if(r instanceof Error)for(const t of e.iterateCallbacks("handlerDidError"))if(a=await t({error:r,event:n,request:s}),a)break;if(!a)throw r}for(const t of e.iterateCallbacks("handlerWillRespond"))a=await t({event:n,request:s,response:a});return a}async _awaitComplete(e,t,s,n){let a,r;try{a=await e}catch(r){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:s,response:a}),await t.doneWaiting()}catch(i){i instanceof Error&&(r=i)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}class b extends v{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.cacheName=i(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(b.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,s){let n;const a=s.params||{};if(!this._fallbackToNetwork)throw new t("missing-precache-entry",{cacheName:this.cacheName,url:e.url});{0;const t=a.integrity,r=e.integrity,i=!r||r===t;if(n=await s.fetch(new Request(e,{integrity:"no-cors"!==e.mode?r||t:void 0})),t&&i&&"no-cors"!==e.mode){this._useDefaultCacheabilityPluginIfNeeded();await s.cachePut(e,n.clone());0}}return n}async _handleInstall(e,s){this._useDefaultCacheabilityPluginIfNeeded();const n=await s.fetch(e);if(!await s.cachePut(e,n.clone()))throw new t("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[s,n]of this.plugins.entries())n!==b.copyRedirectedCacheableResponsesPlugin&&(n===b.defaultPrecacheCacheabilityPlugin&&(e=s),n.cacheWillUpdate&&t++);0===t?this.plugins.push(b.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}b.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate(e){let{response:t}=e;return!t||t.status>=400?null:t}},b.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate(e){let{response:t}=e;return t.redirected?await p(t):t}};class R{constructor(){let{cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new b({cacheName:i(e),plugins:[...t,new y({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const s=[];for(const n of e){"string"===typeof n?s.push(n):n&&void 0===n.revision&&s.push(n.url);const{cacheKey:e,url:a}=g(n),r="string"!==typeof n&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==e)throw new t("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:e});if("string"!==typeof n&&n.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==n.integrity)throw new t("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(e,n.integrity)}if(this._urlsToCacheKeys.set(a,e),this._urlsToCacheModes.set(a,r),s.length>0){const e="Workbox is precaching URLs without revision "+"info: ".concat(s.join(", "),"\nThis is generally NOT safe. ")+"Learn more at https://bit.ly/wb-precache";console.warn(e)}}}install(e){return f(e,(async()=>{const t=new w;this.strategy.plugins.push(t);for(const[a,r]of this._urlsToCacheKeys){const t=this._cacheKeysToIntegrities.get(r),s=this._urlsToCacheModes.get(a),n=new Request(a,{integrity:t,cache:s,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:r},request:n,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(e){return f(e,(async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),s=new Set(this._urlsToCacheKeys.values()),n=[];for(const a of t)s.has(a.url)||(await e.delete(a),n.push(a.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,s=this.getCacheKeyForURL(t);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(e){const s=this.getCacheKeyForURL(e);if(!s)throw new t("non-precached-url",{url:e});return t=>(t.request=new Request(e),t.params=Object.assign({cacheKey:s},t.params),this.strategy.handle(t))}}let x;const C=()=>(x||(x=new R),x);s(92);const E=e=>e&&"object"===typeof e?e:{handle:e};class L{constructor(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";this.handler=E(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=E(e)}}class q extends L{constructor(e,t,s){super((t=>{let{url:s}=t;const n=e.exec(s.href);if(n&&(s.origin===location.origin||0===n.index))return n.slice(1)}),t,s)}}class D{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const s=Promise.all(t.urlsToCache.map((t=>{"string"===typeof t&&(t=[t]);const s=new Request(...t);return this.handleRequest({request:s,event:e})})));e.waitUntil(s),e.ports&&e.ports[0]&&s.then((()=>e.ports[0].postMessage(!0)))}}))}handleRequest(e){let{request:t,event:s}=e;const n=new URL(t.url,location.href);if(!n.protocol.startsWith("http"))return void 0;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:s,request:t,sameOrigin:a,url:n});let c=i&&i.handler;const o=t.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return void 0;let h;try{h=c.handle({url:n,request:t,event:s,params:r})}catch(u){h=Promise.reject(u)}const l=i&&i.catchHandler;return h instanceof Promise&&(this._catchHandler||l)&&(h=h.catch((async e=>{if(l){0;try{return await l.handle({url:n,request:t,event:s,params:r})}catch(a){a instanceof Error&&(e=a)}}if(this._catchHandler)return this._catchHandler.handle({url:n,request:t,event:s});throw e}))),h}findMatchingRoute(e){let{url:t,sameOrigin:s,request:n,event:a}=e;const r=this._routes.get(n.method)||[];for(const i of r){let e;const r=i.match({url:t,sameOrigin:s,request:n,event:a});if(r)return e=r,(Array.isArray(e)&&0===e.length||r.constructor===Object&&0===Object.keys(r).length||"boolean"===typeof r)&&(e=void 0),{route:i,params:e}}return{}}setDefaultHandler(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";this._defaultHandlerMap.set(t,E(e))}setCatchHandler(e){this._catchHandler=E(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new t("unregister-route-but-not-found-with-method",{method:e.method});const s=this._routes.get(e.method).indexOf(e);if(!(s>-1))throw new t("unregister-route-route-not-registered");this._routes.get(e.method).splice(s,1)}}let U;const k=()=>(U||(U=new D,U.addFetchListener(),U.addCacheListener()),U);function T(e,s,n){let a;if("string"===typeof e){const t=new URL(e,location.href);0;a=new L((e=>{let{url:s}=e;return s.href===t.href}),s,n)}else if(e instanceof RegExp)a=new q(e,s,n);else if("function"===typeof e)a=new L(e,s,n);else{if(!(e instanceof L))throw new t("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=e}return k().registerRoute(a),a}class N extends L{constructor(e,t){super((s=>{let{request:n}=s;const a=e.getURLsToCacheKeys();for(const r of function(e){let{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(const s of[...e.searchParams.keys()])t.some((e=>e.test(s)))&&e.searchParams.delete(s);return e}(r,t);if(yield i.href,s&&i.pathname.endsWith("/")){const e=new URL(i.href);e.pathname+=s,yield e.href}if(n){const e=new URL(i.href);e.pathname+=".html",yield e.href}if(a){const e=a({url:r});for(const t of e)yield t.href}}()}(n.url,t)){const t=a.get(r);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}}),e.strategy)}}const I=(e,t)=>t.some((t=>e instanceof t));let K,M;const A=new WeakMap,P=new WeakMap,S=new WeakMap,O=new WeakMap,W=new WeakMap;let B={get(e,t,s){if(e instanceof IDBTransaction){if("done"===t)return P.get(e);if("objectStoreNames"===t)return e.objectStoreNames||S.get(e);if("store"===t)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return H(e[t])},set:(e,t,s)=>(e[t]=s,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function j(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(M||(M=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return e.apply(V(this),s),H(A.get(this))}:function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return H(e.apply(V(this),s))}:function(t){for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];const r=e.call(V(this),t,...n);return S.set(r,t.sort?t.sort():[t]),H(r)}}function F(e){return"function"===typeof e?j(e):(e instanceof IDBTransaction&&function(e){if(P.has(e))return;const t=new Promise(((t,s)=>{const n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",r),e.removeEventListener("abort",r)},a=()=>{t(),n()},r=()=>{s(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",r),e.addEventListener("abort",r)}));P.set(e,t)}(e),I(e,K||(K=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,B):e)}function H(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,s)=>{const n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",r)},a=()=>{t(H(e.result)),n()},r=()=>{s(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",r)}));return t.then((t=>{t instanceof IDBCursor&&A.set(t,e)})).catch((()=>{})),W.set(t,e),t}(e);if(O.has(e))return O.get(e);const t=F(e);return t!==e&&(O.set(e,t),W.set(t,e)),t}const V=e=>W.get(e);const G=["get","getKey","getAll","getAllKeys","count"],Q=["put","add","delete","clear"],$=new Map;function J(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if($.get(t))return $.get(t);const s=t.replace(/FromIndex$/,""),n=t!==s,a=Q.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!G.includes(s))return;const r=async function(e){const t=this.transaction(e,a?"readwrite":"readonly");let r=t.store;for(var i=arguments.length,c=new Array(i>1?i-1:0),o=1;o<i;o++)c[o-1]=arguments[o];return n&&(r=r.index(c.shift())),(await Promise.all([r[s](...c),a&&t.done]))[0]};return $.set(t,r),r}B=(e=>({...e,get:(t,s,n)=>J(t,s)||e.get(t,s,n),has:(t,s)=>!!J(t,s)||e.has(t,s)}))(B);s(434);const z="cache-entries",X=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class Y{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(z,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e){let{blocked:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=indexedDB.deleteDatabase(e);t&&s.addEventListener("blocked",(e=>t(e.oldVersion,e))),H(s).then((()=>{}))}(this._cacheName)}async setTimestamp(e,t){const s={url:e=X(e),timestamp:t,cacheName:this._cacheName,id:this._getId(e)},n=(await this.getDb()).transaction(z,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(e){const t=await this.getDb(),s=await t.get(z,this._getId(e));return null===s||void 0===s?void 0:s.timestamp}async expireEntries(e,t){const s=await this.getDb();let n=await s.transaction(z).store.index("timestamp").openCursor(null,"prev");const a=[];let r=0;for(;n;){const s=n.value;s.cacheName===this._cacheName&&(e&&s.timestamp<e||t&&r>=t?a.push(n.value):r++),n=await n.continue()}const i=[];for(const c of a)await s.delete(z,c.id),i.push(c.url);return i}_getId(e){return this._cacheName+"|"+X(e)}async getDb(){return this._db||(this._db=await function(e,t){let{blocked:s,upgrade:n,blocking:a,terminated:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=indexedDB.open(e,t),c=H(i);return n&&i.addEventListener("upgradeneeded",(e=>{n(H(i.result),e.oldVersion,e.newVersion,H(i.transaction),e)})),s&&i.addEventListener("blocked",(e=>s(e.oldVersion,e.newVersion,e))),c.then((e=>{r&&e.addEventListener("close",(()=>r())),a&&e.addEventListener("versionchange",(e=>a(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),c}("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class Z{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new Y(e)}async expireEntries(){if(this._isRunning)return void(this._rerunRequested=!0);this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),s=await self.caches.open(this._cacheName);for(const n of t)await s.delete(n,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,l(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),s=Date.now()-1e3*this._maxAgeSeconds;return void 0===t||t<s}return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const ee={cacheWillUpdate:async e=>{let{response:t}=e;return 200===t.status||0===t.status?t:null}};var te;(function(e){C().precache(e)})(([{'revision':'95d646ec18e1adaa5ebc33848bdc11e8','url':'./index.html'},{'revision':null,'url':'./static/css/1371.f696fdbf.chunk.css'},{'revision':null,'url':'./static/css/3674.b61738f8.chunk.css'},{'revision':null,'url':'./static/css/4665.5d6e9197.chunk.css'},{'revision':null,'url':'./static/css/6230.9cab926a.chunk.css'},{'revision':null,'url':'./static/css/7657.cc1ab277.chunk.css'},{'revision':null,'url':'./static/css/7676.7f909312.chunk.css'},{'revision':null,'url':'./static/css/8219.f696fdbf.chunk.css'},{'revision':null,'url':'./static/css/main.260b958a.css'},{'revision':null,'url':'./static/js/1059.47c68713.chunk.js'},{'revision':null,'url':'./static/js/1361.c522d24a.chunk.js'},{'revision':null,'url':'./static/js/1366.3ed31e76.chunk.js'},{'revision':null,'url':'./static/js/1371.97ef96e6.chunk.js'},{'revision':null,'url':'./static/js/1575.7c51888f.chunk.js'},{'revision':null,'url':'./static/js/1667.dc49a80d.chunk.js'},{'revision':null,'url':'./static/js/1685.79e259fc.chunk.js'},{'revision':null,'url':'./static/js/1826.2ee3d019.chunk.js'},{'revision':null,'url':'./static/js/1846.c065e8f3.chunk.js'},{'revision':null,'url':'./static/js/1986.44b1949e.chunk.js'},{'revision':null,'url':'./static/js/2019.b2fd5835.chunk.js'},{'revision':null,'url':'./static/js/2098.6efa542b.chunk.js'},{'revision':null,'url':'./static/js/2129.fd2cfa2b.chunk.js'},{'revision':null,'url':'./static/js/2168.4aa1c106.chunk.js'},{'revision':null,'url':'./static/js/2183.ddd3936e.chunk.js'},{'revision':null,'url':'./static/js/2294.9e37053f.chunk.js'},{'revision':null,'url':'./static/js/233.6633c4f0.chunk.js'},{'revision':null,'url':'./static/js/2362.5f1e7e82.chunk.js'},{'revision':null,'url':'./static/js/2365.a3571172.chunk.js'},{'revision':null,'url':'./static/js/253.4a3aa017.chunk.js'},{'revision':null,'url':'./static/js/2537.10cf10fb.chunk.js'},{'revision':null,'url':'./static/js/2564.777b4d9f.chunk.js'},{'revision':null,'url':'./static/js/2611.4eb6822b.chunk.js'},{'revision':null,'url':'./static/js/2661.6a4f6166.chunk.js'},{'revision':null,'url':'./static/js/2720.147ae463.chunk.js'},{'revision':null,'url':'./static/js/2746.6d8ac071.chunk.js'},{'revision':null,'url':'./static/js/2828.89d42424.chunk.js'},{'revision':null,'url':'./static/js/2842.80969a8e.chunk.js'},{'revision':null,'url':'./static/js/2911.92a82b04.chunk.js'},{'revision':null,'url':'./static/js/2960.ac6f7a4e.chunk.js'},{'revision':null,'url':'./static/js/2978.4e3df936.chunk.js'},{'revision':null,'url':'./static/js/31.39d475aa.chunk.js'},{'revision':null,'url':'./static/js/3111.f44a8d78.chunk.js'},{'revision':null,'url':'./static/js/3135.d72dbe37.chunk.js'},{'revision':null,'url':'./static/js/318.169a3e69.chunk.js'},{'revision':null,'url':'./static/js/3216.04d7e546.chunk.js'},{'revision':null,'url':'./static/js/3217.c3294084.chunk.js'},{'revision':null,'url':'./static/js/3389.52e7ac5c.chunk.js'},{'revision':null,'url':'./static/js/3476.47d6170f.chunk.js'},{'revision':null,'url':'./static/js/3555.b1ed2b24.chunk.js'},{'revision':null,'url':'./static/js/3633.02809898.chunk.js'},{'revision':null,'url':'./static/js/3674.c701bb70.chunk.js'},{'revision':null,'url':'./static/js/3732.d5b401f7.chunk.js'},{'revision':null,'url':'./static/js/3803.c0312e3c.chunk.js'},{'revision':null,'url':'./static/js/3829.2ca489ad.chunk.js'},{'revision':null,'url':'./static/js/3930.bfa70d11.chunk.js'},{'revision':null,'url':'./static/js/406.9e49d99c.chunk.js'},{'revision':null,'url':'./static/js/4074.e94a9635.chunk.js'},{'revision':null,'url':'./static/js/4104.d4d484aa.chunk.js'},{'revision':null,'url':'./static/js/4232.7e43822b.chunk.js'},{'revision':null,'url':'./static/js/4241.fe0e853e.chunk.js'},{'revision':null,'url':'./static/js/4274.75f87895.chunk.js'},{'revision':null,'url':'./static/js/4317.91732893.chunk.js'},{'revision':null,'url':'./static/js/4349.b225724a.chunk.js'},{'revision':null,'url':'./static/js/436.d3dfe09b.chunk.js'},{'revision':null,'url':'./static/js/442.d95b0c5a.chunk.js'},{'revision':null,'url':'./static/js/4423.bd20b413.chunk.js'},{'revision':null,'url':'./static/js/4465.0f74e0ab.chunk.js'},{'revision':null,'url':'./static/js/4471.ddd34e83.chunk.js'},{'revision':null,'url':'./static/js/4512.d09c80a3.chunk.js'},{'revision':null,'url':'./static/js/4549.b6be8e74.chunk.js'},{'revision':null,'url':'./static/js/4550.af6850d6.chunk.js'},{'revision':null,'url':'./static/js/4590.39f2b68f.chunk.js'},{'revision':null,'url':'./static/js/4631.f627efb4.chunk.js'},{'revision':null,'url':'./static/js/4654.24f11775.chunk.js'},{'revision':null,'url':'./static/js/4657.1be0470f.chunk.js'},{'revision':null,'url':'./static/js/4775.131430bf.chunk.js'},{'revision':null,'url':'./static/js/4901.719512e8.chunk.js'},{'revision':null,'url':'./static/js/4906.999b88c8.chunk.js'},{'revision':null,'url':'./static/js/4930.c4c5d5d1.chunk.js'},{'revision':null,'url':'./static/js/5015.dda1435a.chunk.js'},{'revision':null,'url':'./static/js/5059.e78ab607.chunk.js'},{'revision':null,'url':'./static/js/506.e1874511.chunk.js'},{'revision':null,'url':'./static/js/5074.217389e9.chunk.js'},{'revision':null,'url':'./static/js/5163.cca32038.chunk.js'},{'revision':null,'url':'./static/js/5374.1135dab5.chunk.js'},{'revision':null,'url':'./static/js/5526.6683805e.chunk.js'},{'revision':null,'url':'./static/js/556.cfa178eb.chunk.js'},{'revision':null,'url':'./static/js/5672.066bb632.chunk.js'},{'revision':null,'url':'./static/js/5706.c53e6f7a.chunk.js'},{'revision':null,'url':'./static/js/5745.e717f338.chunk.js'},{'revision':null,'url':'./static/js/5748.2d3e72b1.chunk.js'},{'revision':null,'url':'./static/js/5760.b43b20af.chunk.js'},{'revision':null,'url':'./static/js/5887.aada06d9.chunk.js'},{'revision':null,'url':'./static/js/5904.02123820.chunk.js'},{'revision':null,'url':'./static/js/592.c99306f8.chunk.js'},{'revision':null,'url':'./static/js/5973.b1923a12.chunk.js'},{'revision':null,'url':'./static/js/5979.73ce82e4.chunk.js'},{'revision':null,'url':'./static/js/6230.e3bb9a7d.chunk.js'},{'revision':null,'url':'./static/js/6281.6804e876.chunk.js'},{'revision':null,'url':'./static/js/6490.5f14ec36.chunk.js'},{'revision':null,'url':'./static/js/6511.d9a32267.chunk.js'},{'revision':null,'url':'./static/js/6547.01abc819.chunk.js'},{'revision':null,'url':'./static/js/6602.34495e3d.chunk.js'},{'revision':null,'url':'./static/js/670.e1d2eada.chunk.js'},{'revision':null,'url':'./static/js/6780.aa9fb3ec.chunk.js'},{'revision':null,'url':'./static/js/6830.1a23c027.chunk.js'},{'revision':null,'url':'./static/js/6906.44480f01.chunk.js'},{'revision':null,'url':'./static/js/6931.d2496fd4.chunk.js'},{'revision':null,'url':'./static/js/6944.4c8d8699.chunk.js'},{'revision':null,'url':'./static/js/7020.b9df1e44.chunk.js'},{'revision':null,'url':'./static/js/7022.242a07f7.chunk.js'},{'revision':null,'url':'./static/js/7082.bc59e4c9.chunk.js'},{'revision':null,'url':'./static/js/744.74c12fbb.chunk.js'},{'revision':null,'url':'./static/js/7534.ea3b613f.chunk.js'},{'revision':null,'url':'./static/js/754.95d43c7d.chunk.js'},{'revision':null,'url':'./static/js/7638.c558497d.chunk.js'},{'revision':null,'url':'./static/js/7641.a0822ba8.chunk.js'},{'revision':null,'url':'./static/js/7657.70e9bb8c.chunk.js'},{'revision':null,'url':'./static/js/7676.96ca7a9d.chunk.js'},{'revision':null,'url':'./static/js/7718.301ab3f8.chunk.js'},{'revision':null,'url':'./static/js/7913.3940464c.chunk.js'},{'revision':null,'url':'./static/js/8170.7bcdd129.chunk.js'},{'revision':null,'url':'./static/js/8219.bc63e11b.chunk.js'},{'revision':null,'url':'./static/js/8249.b3efc43c.chunk.js'},{'revision':null,'url':'./static/js/8262.39716df6.chunk.js'},{'revision':null,'url':'./static/js/8537.dc816763.chunk.js'},{'revision':null,'url':'./static/js/8590.f6ea2144.chunk.js'},{'revision':null,'url':'./static/js/8606.a872b105.chunk.js'},{'revision':null,'url':'./static/js/8809.82c05cab.chunk.js'},{'revision':null,'url':'./static/js/8986.2f7c6ea5.chunk.js'},{'revision':null,'url':'./static/js/9038.aa97e3e5.chunk.js'},{'revision':null,'url':'./static/js/9041.bdd7c1f3.chunk.js'},{'revision':null,'url':'./static/js/9085.970be618.chunk.js'},{'revision':null,'url':'./static/js/9132.edb81af8.chunk.js'},{'revision':null,'url':'./static/js/9248.6cfcd5b2.chunk.js'},{'revision':null,'url':'./static/js/9327.93934827.chunk.js'},{'revision':null,'url':'./static/js/9517.ac659c32.chunk.js'},{'revision':null,'url':'./static/js/9552.be5312c3.chunk.js'},{'revision':null,'url':'./static/js/9586.ce440947.chunk.js'},{'revision':null,'url':'./static/js/9646.c6adee42.chunk.js'},{'revision':null,'url':'./static/js/9651.0cb999aa.chunk.js'},{'revision':null,'url':'./static/js/9662.2281f1d0.chunk.js'},{'revision':null,'url':'./static/js/9725.85b47edf.chunk.js'},{'revision':null,'url':'./static/js/main.4029e1fc.js'},{'revision':'8e707674580ac8fed33fddf8cdf26b38','url':'./static/media/empty-spaces-nft.f2f7da76d96b54cf8a379d6b32edc7f1.svg'},{'revision':null,'url':'./static/media/inter-latin-400-normal.08a02fd275ecea6ef662.woff'},{'revision':null,'url':'./static/media/inter-latin-400-normal.f1535355a7df553be385.woff2'},{'revision':null,'url':'./static/media/inter-latin-500-normal.4eedffe43452a87e61bd.woff'},{'revision':null,'url':'./static/media/inter-latin-500-normal.6629df60b0706dec8113.woff2'},{'revision':null,'url':'./static/media/inter-latin-600-normal.42ce943388c4ff9a05a1.woff'},{'revision':null,'url':'./static/media/inter-latin-600-normal.5d2eaa33f8194c062cad.woff2'},{'revision':null,'url':'./static/media/inter-latin-700-normal.91c4ed20ea233963e54f.woff'},{'revision':null,'url':'./static/media/inter-latin-700-normal.b4118e4ad76754e71d0b.woff2'},{'revision':null,'url':'./static/media/inter-latin-900-normal.63e655f86728fd3b5a78.woff2'},{'revision':null,'url':'./static/media/inter-latin-900-normal.fac286c4a2fbd535e7cb.woff'},{'revision':null,'url':'./static/media/inter-latin-ext-400-normal.0f9e8d4e940df8f6edfe.woff2'},{'revision':null,'url':'./static/media/inter-latin-ext-400-normal.40b3b0d5e09a90fb6e3e.woff'},{'revision':null,'url':'./static/media/inter-latin-ext-500-normal.abd2dd4838a0148febb9.woff'},{'revision':null,'url':'./static/media/inter-latin-ext-500-normal.bed85b98c34f434a1c80.woff2'},{'revision':null,'url':'./static/media/inter-latin-ext-600-normal.1b4b5615c2cc1d3b3562.woff'},{'revision':null,'url':'./static/media/inter-latin-ext-600-normal.862bc70ae0a0695770e7.woff2'},{'revision':null,'url':'./static/media/inter-latin-ext-700-normal.4c2578dbd1ff5ea14172.woff'},{'revision':null,'url':'./static/media/inter-latin-ext-700-normal.65678f6198b402319e15.woff2'},{'revision':null,'url':'./static/media/inter-latin-ext-900-normal.a8109878fa7153b2d04c.woff'},{'revision':null,'url':'./static/media/inter-latin-ext-900-normal.fd790aeb01b2afd98f91.woff2'},{'revision':null,'url':'./static/media/login-bg.9936fc84e60f5cea6739.png'},{'revision':'3f75f5574309bf1ab1a642cae6cec338','url':'./static/media/logo.60f66bbe1ce9674a4df4e374c9d97fc4.svg'},{'revision':'893e153699e6c3cbf74132eacdb77fa6','url':'./static/media/space-connected.9a4e18fd2bc7d065191b0d241a131c28.svg'},{'revision':null,'url':'./static/media/ubuntu-mono-cyrillic-400-normal.3d8a2767436c97526e5e.woff'},{'revision':null,'url':'./static/media/ubuntu-mono-cyrillic-400-normal.c367f416832eb8f1b846.woff2'},{'revision':null,'url':'./static/media/ubuntu-mono-cyrillic-ext-400-normal.e06671814416d634c36e.woff'},{'revision':null,'url':'./static/media/ubuntu-mono-cyrillic-ext-400-normal.eda1c4946b1f7bf58386.woff2'},{'revision':null,'url':'./static/media/ubuntu-mono-greek-400-normal.229eedabb26a787909cf.woff'},{'revision':null,'url':'./static/media/ubuntu-mono-greek-400-normal.22f3bfc91f79c342bdf4.woff2'},{'revision':null,'url':'./static/media/ubuntu-mono-greek-ext-400-normal.1bfcab2ece1ff3d4cc92.woff'},{'revision':null,'url':'./static/media/ubuntu-mono-greek-ext-400-normal.b3459900ea8a25d1f7c2.woff2'},{'revision':null,'url':'./static/media/ubuntu-mono-latin-400-normal.18e32d9d743af28f913e.woff2'},{'revision':null,'url':'./static/media/ubuntu-mono-latin-400-normal.3d12a93009cd936623de.woff'},{'revision':null,'url':'./static/media/ubuntu-mono-latin-ext-400-normal.691ea3fbf57333b3b408.woff'},{'revision':null,'url':'./static/media/ubuntu-mono-latin-ext-400-normal.7203caccc2b5871be756.woff2'}]||[]).filter((e=>"/"!==e.url&&!e.url.includes("index.html")))),function(e){const t=C();T(new N(t,e))}(te),self.addEventListener("activate",(()=>self.clients.claim())),self.addEventListener("activate",(()=>{console.log("Service Worker activated")})),self.addEventListener("install",(e=>{console.log("Service Worker installed"),e.waitUntil(self.skipWaiting())}));const se=e=>"GET"!==e.method||(!!e.url.includes("/api")||(!!e.url.includes("__meta__.js")||!!e.url.includes("__blocklet__.js")));T((e=>{const{request:t}=e;return!se(t)&&t.url.includes("/static/")}),new class extends v{async _handle(e,s){let n,a=await s.cacheMatch(e);if(a)0;else{0;try{a=await s.fetchAndCachePut(e)}catch(r){r instanceof Error&&(n=r)}0}if(!a)throw new t("no-response",{url:e.url,error:n});return a}}({cacheName:"static",plugins:[new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cachedResponseWillBeUsed=async e=>{let{event:t,request:s,cacheName:n,cachedResponse:a}=e;if(!a)return null;const r=this._isResponseDateFresh(a),i=this._getCacheExpiration(n);l(i.expireEntries());const c=i.updateTimestamp(s.url);if(t)try{t.waitUntil(c)}catch(o){0}return r?a:null},this.cacheDidUpdate=async e=>{let{cacheName:t,request:s}=e;const n=this._getCacheExpiration(t);await n.updateTimestamp(s.url),await n.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&function(e){n.add(e)}((()=>this.deleteCacheAndMetadata()))}_getCacheExpiration(e){if(e===c())throw new t("expire-custom-caches-only");let s=this._cacheExpirations.get(e);return s||(s=new Z(e,this._config),this._cacheExpirations.set(e,s)),s}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(null===t)return!0;return t>=Date.now()-1e3*this._maxAgeSeconds}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),s=new Date(t).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}({maxEntries:200})]})),T((e=>{const{request:t}=e;return!se(t)&&(t.url.includes("/images/")||t.url.includes("/icons/"))}),new class extends v{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(ee)}async _handle(e,s){const n=s.fetchAndCachePut(e).catch((()=>{}));s.waitUntil(n);let a,r=await s.cacheMatch(e);if(r)0;else{0;try{r=await n}catch(i){i instanceof Error&&(a=i)}}if(!r)throw new t("no-response",{url:e.url,error:a});return r}})})()})();
1
+ (()=>{"use strict";var e={522:()=>{try{self["workbox:core:7.0.0"]&&_()}catch(e){}},434:()=>{try{self["workbox:expiration:7.0.0"]&&_()}catch(e){}},290:()=>{try{self["workbox:precaching:7.0.0"]&&_()}catch(e){}},92:()=>{try{self["workbox:routing:7.0.0"]&&_()}catch(e){}},559:()=>{try{self["workbox:strategies:7.0.0"]&&_()}catch(e){}}},t={};function s(n){var a=t[n];if(void 0!==a)return a.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,s),r.exports}(()=>{s(522);const e=function(e){let t=e;for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];return n.length>0&&(t+=" :: ".concat(JSON.stringify(n))),t};class t extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}const n=new Set;const a={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!==typeof registration?registration.scope:""},r=e=>[a.prefix,e,a.suffix].filter((e=>e&&e.length>0)).join("-"),i=e=>e||r(a.precache),c=e=>e||r(a.runtime);function o(e,t){const s=new URL(e);for(const n of t)s.searchParams.delete(n);return s.href}let h;function l(e){e.then((()=>{}))}class u{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}const d=e=>new URL(String(e),location.href).href.replace(new RegExp("^".concat(location.origin)),"");function f(e,t){const s=t();return e.waitUntil(s),s}async function p(e,s){let n=null;if(e.url){n=new URL(e.url).origin}if(n!==self.location.origin)throw new t("cross-origin-copy-response",{origin:n});const a=e.clone(),r={headers:new Headers(a.headers),status:a.status,statusText:a.statusText},i=s?s(r):r,c=function(){if(void 0===h){const t=new Response("");if("body"in t)try{new Response(t.body),h=!0}catch(e){h=!1}h=!1}return h}()?a.body:await a.blob();return new Response(c,i)}s(290);function g(e){if(!e)throw new t("add-to-cache-list-unexpected-type",{entry:e});if("string"===typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:s,url:n}=e;if(!n)throw new t("add-to-cache-list-unexpected-type",{entry:e});if(!s){const e=new URL(n,location.href);return{cacheKey:e.href,url:e.href}}const a=new URL(n,location.href),r=new URL(n,location.href);return a.searchParams.set("__WB_REVISION__",s),{cacheKey:a.href,url:r.href}}class w{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async e=>{let{request:t,state:s}=e;s&&(s.originalRequest=t)},this.cachedResponseWillBeUsed=async e=>{let{event:t,state:s,cachedResponse:n}=e;if("install"===t.type&&s&&s.originalRequest&&s.originalRequest instanceof Request){const e=s.originalRequest.url;n?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return n}}}class y{constructor(e){let{precacheController:t}=e;this.cacheKeyWillBeUsed=async e=>{let{request:t,params:s}=e;const n=(null===s||void 0===s?void 0:s.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return n?new Request(n,{headers:t.headers}):t},this._precacheController=t}}s(559);function m(e){return"string"===typeof e?new Request(e):e}class _{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new u,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const s of this._plugins)this._pluginStateMap.set(s,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:s}=this;let n=m(e);if("navigate"===n.mode&&s instanceof FetchEvent&&s.preloadResponse){const e=await s.preloadResponse;if(e)return e}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))n=await e({request:n.clone(),event:s})}catch(i){if(i instanceof Error)throw new t("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let e;e=await fetch(n,"navigate"===n.mode?void 0:this._strategy.fetchOptions);for(const t of this.iterateCallbacks("fetchDidSucceed"))e=await t({event:s,request:r,response:e});return e}catch(c){throw a&&await this.runCallbacks("fetchDidFail",{error:c,event:s,originalRequest:a.clone(),request:r.clone()}),c}}async fetchAndCachePut(e){const t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}async cacheMatch(e){const t=m(e);let s;const{cacheName:n,matchOptions:a}=this._strategy,r=await this.getCacheKey(t,"read"),i=Object.assign(Object.assign({},a),{cacheName:n});s=await caches.match(r,i);for(const c of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await c({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(e,s){const a=m(e);var r;await(r=0,new Promise((e=>setTimeout(e,r))));const i=await this.getCacheKey(a,"write");if(!s)throw new t("cache-put-with-no-response",{url:d(i.url)});const c=await this._ensureResponseSafeToCache(s);if(!c)return!1;const{cacheName:h,matchOptions:l}=this._strategy,u=await self.caches.open(h),f=this.hasCallback("cacheDidUpdate"),p=f?await async function(e,t,s,n){const a=o(t.url,s);if(t.url===a)return e.match(t,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await e.keys(t,r);for(const c of i)if(a===o(c.url,s))return e.match(c,n)}(u,i.clone(),["__WB_REVISION__"],l):null;try{await u.put(i,f?c.clone():c)}catch(g){if(g instanceof Error)throw"QuotaExceededError"===g.name&&await async function(){for(const e of n)await e()}(),g}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:h,oldResponse:p,newResponse:c.clone(),request:i,event:this.event});return!0}async getCacheKey(e,t){const s="".concat(e.url," | ").concat(t);if(!this._cacheKeys[s]){let n=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))n=m(await e({mode:t,request:n,event:this.event,params:this.params}));this._cacheKeys[s]=n}return this._cacheKeys[s]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"===typeof t[e]){const s=this._pluginStateMap.get(t),n=n=>{const a=Object.assign(Object.assign({},n),{state:s});return t[e](a)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(const n of this.iterateCallbacks("cacheWillUpdate"))if(t=await n({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}class v{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cacheName=c(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,s="string"===typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new _(this,{event:t,request:s,params:n}),r=this._getResponse(a,s,t);return[r,this._awaitComplete(r,a,s,t)]}async _getResponse(e,s,n){let a;await e.runCallbacks("handlerWillStart",{event:n,request:s});try{if(a=await this._handle(s,e),!a||"error"===a.type)throw new t("no-response",{url:s.url})}catch(r){if(r instanceof Error)for(const t of e.iterateCallbacks("handlerDidError"))if(a=await t({error:r,event:n,request:s}),a)break;if(!a)throw r}for(const t of e.iterateCallbacks("handlerWillRespond"))a=await t({event:n,request:s,response:a});return a}async _awaitComplete(e,t,s,n){let a,r;try{a=await e}catch(r){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:s,response:a}),await t.doneWaiting()}catch(i){i instanceof Error&&(r=i)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}class b extends v{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.cacheName=i(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(b.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,s){let n;const a=s.params||{};if(!this._fallbackToNetwork)throw new t("missing-precache-entry",{cacheName:this.cacheName,url:e.url});{0;const t=a.integrity,r=e.integrity,i=!r||r===t;if(n=await s.fetch(new Request(e,{integrity:"no-cors"!==e.mode?r||t:void 0})),t&&i&&"no-cors"!==e.mode){this._useDefaultCacheabilityPluginIfNeeded();await s.cachePut(e,n.clone());0}}return n}async _handleInstall(e,s){this._useDefaultCacheabilityPluginIfNeeded();const n=await s.fetch(e);if(!await s.cachePut(e,n.clone()))throw new t("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[s,n]of this.plugins.entries())n!==b.copyRedirectedCacheableResponsesPlugin&&(n===b.defaultPrecacheCacheabilityPlugin&&(e=s),n.cacheWillUpdate&&t++);0===t?this.plugins.push(b.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}b.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate(e){let{response:t}=e;return!t||t.status>=400?null:t}},b.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate(e){let{response:t}=e;return t.redirected?await p(t):t}};class R{constructor(){let{cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new b({cacheName:i(e),plugins:[...t,new y({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const s=[];for(const n of e){"string"===typeof n?s.push(n):n&&void 0===n.revision&&s.push(n.url);const{cacheKey:e,url:a}=g(n),r="string"!==typeof n&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==e)throw new t("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:e});if("string"!==typeof n&&n.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==n.integrity)throw new t("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(e,n.integrity)}if(this._urlsToCacheKeys.set(a,e),this._urlsToCacheModes.set(a,r),s.length>0){const e="Workbox is precaching URLs without revision "+"info: ".concat(s.join(", "),"\nThis is generally NOT safe. ")+"Learn more at https://bit.ly/wb-precache";console.warn(e)}}}install(e){return f(e,(async()=>{const t=new w;this.strategy.plugins.push(t);for(const[a,r]of this._urlsToCacheKeys){const t=this._cacheKeysToIntegrities.get(r),s=this._urlsToCacheModes.get(a),n=new Request(a,{integrity:t,cache:s,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:r},request:n,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(e){return f(e,(async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),s=new Set(this._urlsToCacheKeys.values()),n=[];for(const a of t)s.has(a.url)||(await e.delete(a),n.push(a.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,s=this.getCacheKeyForURL(t);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(e){const s=this.getCacheKeyForURL(e);if(!s)throw new t("non-precached-url",{url:e});return t=>(t.request=new Request(e),t.params=Object.assign({cacheKey:s},t.params),this.strategy.handle(t))}}let x;const C=()=>(x||(x=new R),x);s(92);const E=e=>e&&"object"===typeof e?e:{handle:e};class L{constructor(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET";this.handler=E(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=E(e)}}class q extends L{constructor(e,t,s){super((t=>{let{url:s}=t;const n=e.exec(s.href);if(n&&(s.origin===location.origin||0===n.index))return n.slice(1)}),t,s)}}class D{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const s=Promise.all(t.urlsToCache.map((t=>{"string"===typeof t&&(t=[t]);const s=new Request(...t);return this.handleRequest({request:s,event:e})})));e.waitUntil(s),e.ports&&e.ports[0]&&s.then((()=>e.ports[0].postMessage(!0)))}}))}handleRequest(e){let{request:t,event:s}=e;const n=new URL(t.url,location.href);if(!n.protocol.startsWith("http"))return void 0;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:s,request:t,sameOrigin:a,url:n});let c=i&&i.handler;const o=t.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return void 0;let h;try{h=c.handle({url:n,request:t,event:s,params:r})}catch(u){h=Promise.reject(u)}const l=i&&i.catchHandler;return h instanceof Promise&&(this._catchHandler||l)&&(h=h.catch((async e=>{if(l){0;try{return await l.handle({url:n,request:t,event:s,params:r})}catch(a){a instanceof Error&&(e=a)}}if(this._catchHandler)return this._catchHandler.handle({url:n,request:t,event:s});throw e}))),h}findMatchingRoute(e){let{url:t,sameOrigin:s,request:n,event:a}=e;const r=this._routes.get(n.method)||[];for(const i of r){let e;const r=i.match({url:t,sameOrigin:s,request:n,event:a});if(r)return e=r,(Array.isArray(e)&&0===e.length||r.constructor===Object&&0===Object.keys(r).length||"boolean"===typeof r)&&(e=void 0),{route:i,params:e}}return{}}setDefaultHandler(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";this._defaultHandlerMap.set(t,E(e))}setCatchHandler(e){this._catchHandler=E(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new t("unregister-route-but-not-found-with-method",{method:e.method});const s=this._routes.get(e.method).indexOf(e);if(!(s>-1))throw new t("unregister-route-route-not-registered");this._routes.get(e.method).splice(s,1)}}let U;const k=()=>(U||(U=new D,U.addFetchListener(),U.addCacheListener()),U);function T(e,s,n){let a;if("string"===typeof e){const t=new URL(e,location.href);0;a=new L((e=>{let{url:s}=e;return s.href===t.href}),s,n)}else if(e instanceof RegExp)a=new q(e,s,n);else if("function"===typeof e)a=new L(e,s,n);else{if(!(e instanceof L))throw new t("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=e}return k().registerRoute(a),a}class N extends L{constructor(e,t){super((s=>{let{request:n}=s;const a=e.getURLsToCacheKeys();for(const r of function(e){let{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(const s of[...e.searchParams.keys()])t.some((e=>e.test(s)))&&e.searchParams.delete(s);return e}(r,t);if(yield i.href,s&&i.pathname.endsWith("/")){const e=new URL(i.href);e.pathname+=s,yield e.href}if(n){const e=new URL(i.href);e.pathname+=".html",yield e.href}if(a){const e=a({url:r});for(const t of e)yield t.href}}()}(n.url,t)){const t=a.get(r);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}}),e.strategy)}}const I=(e,t)=>t.some((t=>e instanceof t));let K,M;const A=new WeakMap,P=new WeakMap,S=new WeakMap,O=new WeakMap,W=new WeakMap;let B={get(e,t,s){if(e instanceof IDBTransaction){if("done"===t)return P.get(e);if("objectStoreNames"===t)return e.objectStoreNames||S.get(e);if("store"===t)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return H(e[t])},set:(e,t,s)=>(e[t]=s,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function j(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(M||(M=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return e.apply(V(this),s),H(A.get(this))}:function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return H(e.apply(V(this),s))}:function(t){for(var s=arguments.length,n=new Array(s>1?s-1:0),a=1;a<s;a++)n[a-1]=arguments[a];const r=e.call(V(this),t,...n);return S.set(r,t.sort?t.sort():[t]),H(r)}}function F(e){return"function"===typeof e?j(e):(e instanceof IDBTransaction&&function(e){if(P.has(e))return;const t=new Promise(((t,s)=>{const n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",r),e.removeEventListener("abort",r)},a=()=>{t(),n()},r=()=>{s(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",r),e.addEventListener("abort",r)}));P.set(e,t)}(e),I(e,K||(K=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,B):e)}function H(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,s)=>{const n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",r)},a=()=>{t(H(e.result)),n()},r=()=>{s(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",r)}));return t.then((t=>{t instanceof IDBCursor&&A.set(t,e)})).catch((()=>{})),W.set(t,e),t}(e);if(O.has(e))return O.get(e);const t=F(e);return t!==e&&(O.set(e,t),W.set(t,e)),t}const V=e=>W.get(e);const G=["get","getKey","getAll","getAllKeys","count"],Q=["put","add","delete","clear"],$=new Map;function J(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if($.get(t))return $.get(t);const s=t.replace(/FromIndex$/,""),n=t!==s,a=Q.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!G.includes(s))return;const r=async function(e){const t=this.transaction(e,a?"readwrite":"readonly");let r=t.store;for(var i=arguments.length,c=new Array(i>1?i-1:0),o=1;o<i;o++)c[o-1]=arguments[o];return n&&(r=r.index(c.shift())),(await Promise.all([r[s](...c),a&&t.done]))[0]};return $.set(t,r),r}B=(e=>({...e,get:(t,s,n)=>J(t,s)||e.get(t,s,n),has:(t,s)=>!!J(t,s)||e.has(t,s)}))(B);s(434);const z="cache-entries",X=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class Y{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(z,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e){let{blocked:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=indexedDB.deleteDatabase(e);t&&s.addEventListener("blocked",(e=>t(e.oldVersion,e))),H(s).then((()=>{}))}(this._cacheName)}async setTimestamp(e,t){const s={url:e=X(e),timestamp:t,cacheName:this._cacheName,id:this._getId(e)},n=(await this.getDb()).transaction(z,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(e){const t=await this.getDb(),s=await t.get(z,this._getId(e));return null===s||void 0===s?void 0:s.timestamp}async expireEntries(e,t){const s=await this.getDb();let n=await s.transaction(z).store.index("timestamp").openCursor(null,"prev");const a=[];let r=0;for(;n;){const s=n.value;s.cacheName===this._cacheName&&(e&&s.timestamp<e||t&&r>=t?a.push(n.value):r++),n=await n.continue()}const i=[];for(const c of a)await s.delete(z,c.id),i.push(c.url);return i}_getId(e){return this._cacheName+"|"+X(e)}async getDb(){return this._db||(this._db=await function(e,t){let{blocked:s,upgrade:n,blocking:a,terminated:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=indexedDB.open(e,t),c=H(i);return n&&i.addEventListener("upgradeneeded",(e=>{n(H(i.result),e.oldVersion,e.newVersion,H(i.transaction),e)})),s&&i.addEventListener("blocked",(e=>s(e.oldVersion,e.newVersion,e))),c.then((e=>{r&&e.addEventListener("close",(()=>r())),a&&e.addEventListener("versionchange",(e=>a(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),c}("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class Z{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new Y(e)}async expireEntries(){if(this._isRunning)return void(this._rerunRequested=!0);this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),s=await self.caches.open(this._cacheName);for(const n of t)await s.delete(n,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,l(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),s=Date.now()-1e3*this._maxAgeSeconds;return void 0===t||t<s}return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const ee={cacheWillUpdate:async e=>{let{response:t}=e;return 200===t.status||0===t.status?t:null}};var te;(function(e){C().precache(e)})(([{'revision':'7bca47604afce9846fe8c3e86fbb787d','url':'./index.html'},{'revision':null,'url':'./static/css/1371.f696fdbf.chunk.css'},{'revision':null,'url':'./static/css/3674.b61738f8.chunk.css'},{'revision':null,'url':'./static/css/4665.5d6e9197.chunk.css'},{'revision':null,'url':'./static/css/6230.9cab926a.chunk.css'},{'revision':null,'url':'./static/css/7657.cc1ab277.chunk.css'},{'revision':null,'url':'./static/css/7676.7f909312.chunk.css'},{'revision':null,'url':'./static/css/8219.f696fdbf.chunk.css'},{'revision':null,'url':'./static/css/main.260b958a.css'},{'revision':null,'url':'./static/js/1059.47c68713.chunk.js'},{'revision':null,'url':'./static/js/1361.c522d24a.chunk.js'},{'revision':null,'url':'./static/js/1366.3ed31e76.chunk.js'},{'revision':null,'url':'./static/js/1371.97ef96e6.chunk.js'},{'revision':null,'url':'./static/js/1575.7c51888f.chunk.js'},{'revision':null,'url':'./static/js/1667.dc49a80d.chunk.js'},{'revision':null,'url':'./static/js/1685.79e259fc.chunk.js'},{'revision':null,'url':'./static/js/1826.2ee3d019.chunk.js'},{'revision':null,'url':'./static/js/1846.c065e8f3.chunk.js'},{'revision':null,'url':'./static/js/1986.44b1949e.chunk.js'},{'revision':null,'url':'./static/js/2019.b2fd5835.chunk.js'},{'revision':null,'url':'./static/js/2098.6efa542b.chunk.js'},{'revision':null,'url':'./static/js/2129.fd2cfa2b.chunk.js'},{'revision':null,'url':'./static/js/2168.4aa1c106.chunk.js'},{'revision':null,'url':'./static/js/2183.ddd3936e.chunk.js'},{'revision':null,'url':'./static/js/2294.9e37053f.chunk.js'},{'revision':null,'url':'./static/js/233.6633c4f0.chunk.js'},{'revision':null,'url':'./static/js/2362.5f1e7e82.chunk.js'},{'revision':null,'url':'./static/js/2365.a3571172.chunk.js'},{'revision':null,'url':'./static/js/253.4a3aa017.chunk.js'},{'revision':null,'url':'./static/js/2537.10cf10fb.chunk.js'},{'revision':null,'url':'./static/js/2564.777b4d9f.chunk.js'},{'revision':null,'url':'./static/js/2611.4eb6822b.chunk.js'},{'revision':null,'url':'./static/js/2661.6a4f6166.chunk.js'},{'revision':null,'url':'./static/js/2720.147ae463.chunk.js'},{'revision':null,'url':'./static/js/2746.6d8ac071.chunk.js'},{'revision':null,'url':'./static/js/2828.89d42424.chunk.js'},{'revision':null,'url':'./static/js/2842.80969a8e.chunk.js'},{'revision':null,'url':'./static/js/2911.92a82b04.chunk.js'},{'revision':null,'url':'./static/js/2960.ac6f7a4e.chunk.js'},{'revision':null,'url':'./static/js/2978.4e3df936.chunk.js'},{'revision':null,'url':'./static/js/31.39d475aa.chunk.js'},{'revision':null,'url':'./static/js/3111.f44a8d78.chunk.js'},{'revision':null,'url':'./static/js/3135.d72dbe37.chunk.js'},{'revision':null,'url':'./static/js/318.169a3e69.chunk.js'},{'revision':null,'url':'./static/js/3216.04d7e546.chunk.js'},{'revision':null,'url':'./static/js/3217.c3294084.chunk.js'},{'revision':null,'url':'./static/js/3389.52e7ac5c.chunk.js'},{'revision':null,'url':'./static/js/3476.47d6170f.chunk.js'},{'revision':null,'url':'./static/js/3555.b1ed2b24.chunk.js'},{'revision':null,'url':'./static/js/3633.02809898.chunk.js'},{'revision':null,'url':'./static/js/3674.c701bb70.chunk.js'},{'revision':null,'url':'./static/js/3732.d5b401f7.chunk.js'},{'revision':null,'url':'./static/js/3803.c0312e3c.chunk.js'},{'revision':null,'url':'./static/js/3829.2ca489ad.chunk.js'},{'revision':null,'url':'./static/js/3930.bfa70d11.chunk.js'},{'revision':null,'url':'./static/js/406.9e49d99c.chunk.js'},{'revision':null,'url':'./static/js/4074.e94a9635.chunk.js'},{'revision':null,'url':'./static/js/4104.d4d484aa.chunk.js'},{'revision':null,'url':'./static/js/4232.7e43822b.chunk.js'},{'revision':null,'url':'./static/js/4241.fe0e853e.chunk.js'},{'revision':null,'url':'./static/js/4274.75f87895.chunk.js'},{'revision':null,'url':'./static/js/4317.91732893.chunk.js'},{'revision':null,'url':'./static/js/4349.b225724a.chunk.js'},{'revision':null,'url':'./static/js/436.d3dfe09b.chunk.js'},{'revision':null,'url':'./static/js/442.d95b0c5a.chunk.js'},{'revision':null,'url':'./static/js/4423.bd20b413.chunk.js'},{'revision':null,'url':'./static/js/4465.0f74e0ab.chunk.js'},{'revision':null,'url':'./static/js/4471.ddd34e83.chunk.js'},{'revision':null,'url':'./static/js/4512.d09c80a3.chunk.js'},{'revision':null,'url':'./static/js/4549.b6be8e74.chunk.js'},{'revision':null,'url':'./static/js/4550.af6850d6.chunk.js'},{'revision':null,'url':'./static/js/4590.39f2b68f.chunk.js'},{'revision':null,'url':'./static/js/4631.f627efb4.chunk.js'},{'revision':null,'url':'./static/js/4654.24f11775.chunk.js'},{'revision':null,'url':'./static/js/4657.1be0470f.chunk.js'},{'revision':null,'url':'./static/js/4775.131430bf.chunk.js'},{'revision':null,'url':'./static/js/4901.719512e8.chunk.js'},{'revision':null,'url':'./static/js/4906.999b88c8.chunk.js'},{'revision':null,'url':'./static/js/4930.c4c5d5d1.chunk.js'},{'revision':null,'url':'./static/js/5015.dda1435a.chunk.js'},{'revision':null,'url':'./static/js/5059.e78ab607.chunk.js'},{'revision':null,'url':'./static/js/506.e1874511.chunk.js'},{'revision':null,'url':'./static/js/5074.217389e9.chunk.js'},{'revision':null,'url':'./static/js/5163.cca32038.chunk.js'},{'revision':null,'url':'./static/js/5374.1135dab5.chunk.js'},{'revision':null,'url':'./static/js/5526.6683805e.chunk.js'},{'revision':null,'url':'./static/js/556.cfa178eb.chunk.js'},{'revision':null,'url':'./static/js/5672.066bb632.chunk.js'},{'revision':null,'url':'./static/js/5706.c53e6f7a.chunk.js'},{'revision':null,'url':'./static/js/5745.e717f338.chunk.js'},{'revision':null,'url':'./static/js/5748.2d3e72b1.chunk.js'},{'revision':null,'url':'./static/js/5760.b43b20af.chunk.js'},{'revision':null,'url':'./static/js/5887.aada06d9.chunk.js'},{'revision':null,'url':'./static/js/5904.02123820.chunk.js'},{'revision':null,'url':'./static/js/592.c99306f8.chunk.js'},{'revision':null,'url':'./static/js/5973.b1923a12.chunk.js'},{'revision':null,'url':'./static/js/5979.73ce82e4.chunk.js'},{'revision':null,'url':'./static/js/6230.e3bb9a7d.chunk.js'},{'revision':null,'url':'./static/js/6281.4b891c90.chunk.js'},{'revision':null,'url':'./static/js/6490.5f14ec36.chunk.js'},{'revision':null,'url':'./static/js/6511.d9a32267.chunk.js'},{'revision':null,'url':'./static/js/6547.01abc819.chunk.js'},{'revision':null,'url':'./static/js/6602.34495e3d.chunk.js'},{'revision':null,'url':'./static/js/670.e1d2eada.chunk.js'},{'revision':null,'url':'./static/js/6780.aa9fb3ec.chunk.js'},{'revision':null,'url':'./static/js/6830.1a23c027.chunk.js'},{'revision':null,'url':'./static/js/6906.44480f01.chunk.js'},{'revision':null,'url':'./static/js/6931.d2496fd4.chunk.js'},{'revision':null,'url':'./static/js/6944.4c8d8699.chunk.js'},{'revision':null,'url':'./static/js/7020.b9df1e44.chunk.js'},{'revision':null,'url':'./static/js/7022.242a07f7.chunk.js'},{'revision':null,'url':'./static/js/7082.bc59e4c9.chunk.js'},{'revision':null,'url':'./static/js/744.74c12fbb.chunk.js'},{'revision':null,'url':'./static/js/7534.ea3b613f.chunk.js'},{'revision':null,'url':'./static/js/754.95d43c7d.chunk.js'},{'revision':null,'url':'./static/js/7638.c558497d.chunk.js'},{'revision':null,'url':'./static/js/7641.a0822ba8.chunk.js'},{'revision':null,'url':'./static/js/7657.70e9bb8c.chunk.js'},{'revision':null,'url':'./static/js/7676.96ca7a9d.chunk.js'},{'revision':null,'url':'./static/js/7718.301ab3f8.chunk.js'},{'revision':null,'url':'./static/js/7913.3940464c.chunk.js'},{'revision':null,'url':'./static/js/8170.7bcdd129.chunk.js'},{'revision':null,'url':'./static/js/8219.bc63e11b.chunk.js'},{'revision':null,'url':'./static/js/8249.b3efc43c.chunk.js'},{'revision':null,'url':'./static/js/8262.39716df6.chunk.js'},{'revision':null,'url':'./static/js/8537.dc816763.chunk.js'},{'revision':null,'url':'./static/js/8590.f6ea2144.chunk.js'},{'revision':null,'url':'./static/js/8606.a872b105.chunk.js'},{'revision':null,'url':'./static/js/8809.82c05cab.chunk.js'},{'revision':null,'url':'./static/js/8986.2f7c6ea5.chunk.js'},{'revision':null,'url':'./static/js/9038.aa97e3e5.chunk.js'},{'revision':null,'url':'./static/js/9041.bdd7c1f3.chunk.js'},{'revision':null,'url':'./static/js/9085.970be618.chunk.js'},{'revision':null,'url':'./static/js/9132.edb81af8.chunk.js'},{'revision':null,'url':'./static/js/9248.6cfcd5b2.chunk.js'},{'revision':null,'url':'./static/js/9327.93934827.chunk.js'},{'revision':null,'url':'./static/js/9517.ac659c32.chunk.js'},{'revision':null,'url':'./static/js/9552.be5312c3.chunk.js'},{'revision':null,'url':'./static/js/9586.ce440947.chunk.js'},{'revision':null,'url':'./static/js/9646.c6adee42.chunk.js'},{'revision':null,'url':'./static/js/9651.0cb999aa.chunk.js'},{'revision':null,'url':'./static/js/9662.2281f1d0.chunk.js'},{'revision':null,'url':'./static/js/9725.85b47edf.chunk.js'},{'revision':null,'url':'./static/js/main.cddf9239.js'},{'revision':'8e707674580ac8fed33fddf8cdf26b38','url':'./static/media/empty-spaces-nft.f2f7da76d96b54cf8a379d6b32edc7f1.svg'},{'revision':null,'url':'./static/media/inter-latin-400-normal.08a02fd275ecea6ef662.woff'},{'revision':null,'url':'./static/media/inter-latin-400-normal.f1535355a7df553be385.woff2'},{'revision':null,'url':'./static/media/inter-latin-500-normal.4eedffe43452a87e61bd.woff'},{'revision':null,'url':'./static/media/inter-latin-500-normal.6629df60b0706dec8113.woff2'},{'revision':null,'url':'./static/media/inter-latin-600-normal.42ce943388c4ff9a05a1.woff'},{'revision':null,'url':'./static/media/inter-latin-600-normal.5d2eaa33f8194c062cad.woff2'},{'revision':null,'url':'./static/media/inter-latin-700-normal.91c4ed20ea233963e54f.woff'},{'revision':null,'url':'./static/media/inter-latin-700-normal.b4118e4ad76754e71d0b.woff2'},{'revision':null,'url':'./static/media/inter-latin-900-normal.63e655f86728fd3b5a78.woff2'},{'revision':null,'url':'./static/media/inter-latin-900-normal.fac286c4a2fbd535e7cb.woff'},{'revision':null,'url':'./static/media/inter-latin-ext-400-normal.0f9e8d4e940df8f6edfe.woff2'},{'revision':null,'url':'./static/media/inter-latin-ext-400-normal.40b3b0d5e09a90fb6e3e.woff'},{'revision':null,'url':'./static/media/inter-latin-ext-500-normal.abd2dd4838a0148febb9.woff'},{'revision':null,'url':'./static/media/inter-latin-ext-500-normal.bed85b98c34f434a1c80.woff2'},{'revision':null,'url':'./static/media/inter-latin-ext-600-normal.1b4b5615c2cc1d3b3562.woff'},{'revision':null,'url':'./static/media/inter-latin-ext-600-normal.862bc70ae0a0695770e7.woff2'},{'revision':null,'url':'./static/media/inter-latin-ext-700-normal.4c2578dbd1ff5ea14172.woff'},{'revision':null,'url':'./static/media/inter-latin-ext-700-normal.65678f6198b402319e15.woff2'},{'revision':null,'url':'./static/media/inter-latin-ext-900-normal.a8109878fa7153b2d04c.woff'},{'revision':null,'url':'./static/media/inter-latin-ext-900-normal.fd790aeb01b2afd98f91.woff2'},{'revision':null,'url':'./static/media/login-bg.9936fc84e60f5cea6739.png'},{'revision':'3f75f5574309bf1ab1a642cae6cec338','url':'./static/media/logo.60f66bbe1ce9674a4df4e374c9d97fc4.svg'},{'revision':'893e153699e6c3cbf74132eacdb77fa6','url':'./static/media/space-connected.9a4e18fd2bc7d065191b0d241a131c28.svg'},{'revision':null,'url':'./static/media/ubuntu-mono-cyrillic-400-normal.3d8a2767436c97526e5e.woff'},{'revision':null,'url':'./static/media/ubuntu-mono-cyrillic-400-normal.c367f416832eb8f1b846.woff2'},{'revision':null,'url':'./static/media/ubuntu-mono-cyrillic-ext-400-normal.e06671814416d634c36e.woff'},{'revision':null,'url':'./static/media/ubuntu-mono-cyrillic-ext-400-normal.eda1c4946b1f7bf58386.woff2'},{'revision':null,'url':'./static/media/ubuntu-mono-greek-400-normal.229eedabb26a787909cf.woff'},{'revision':null,'url':'./static/media/ubuntu-mono-greek-400-normal.22f3bfc91f79c342bdf4.woff2'},{'revision':null,'url':'./static/media/ubuntu-mono-greek-ext-400-normal.1bfcab2ece1ff3d4cc92.woff'},{'revision':null,'url':'./static/media/ubuntu-mono-greek-ext-400-normal.b3459900ea8a25d1f7c2.woff2'},{'revision':null,'url':'./static/media/ubuntu-mono-latin-400-normal.18e32d9d743af28f913e.woff2'},{'revision':null,'url':'./static/media/ubuntu-mono-latin-400-normal.3d12a93009cd936623de.woff'},{'revision':null,'url':'./static/media/ubuntu-mono-latin-ext-400-normal.691ea3fbf57333b3b408.woff'},{'revision':null,'url':'./static/media/ubuntu-mono-latin-ext-400-normal.7203caccc2b5871be756.woff2'}]||[]).filter((e=>"/"!==e.url&&!e.url.includes("index.html")))),function(e){const t=C();T(new N(t,e))}(te),self.addEventListener("activate",(()=>self.clients.claim())),self.addEventListener("activate",(()=>{console.log("Service Worker activated")})),self.addEventListener("install",(e=>{console.log("Service Worker installed"),e.waitUntil(self.skipWaiting())}));const se=e=>"GET"!==e.method||(!!e.url.includes("/api")||(!!e.url.includes("__meta__.js")||!!e.url.includes("__blocklet__.js")));T((e=>{const{request:t}=e;return!se(t)&&t.url.includes("/static/")}),new class extends v{async _handle(e,s){let n,a=await s.cacheMatch(e);if(a)0;else{0;try{a=await s.fetchAndCachePut(e)}catch(r){r instanceof Error&&(n=r)}0}if(!a)throw new t("no-response",{url:e.url,error:n});return a}}({cacheName:"static",plugins:[new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.cachedResponseWillBeUsed=async e=>{let{event:t,request:s,cacheName:n,cachedResponse:a}=e;if(!a)return null;const r=this._isResponseDateFresh(a),i=this._getCacheExpiration(n);l(i.expireEntries());const c=i.updateTimestamp(s.url);if(t)try{t.waitUntil(c)}catch(o){0}return r?a:null},this.cacheDidUpdate=async e=>{let{cacheName:t,request:s}=e;const n=this._getCacheExpiration(t);await n.updateTimestamp(s.url),await n.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&function(e){n.add(e)}((()=>this.deleteCacheAndMetadata()))}_getCacheExpiration(e){if(e===c())throw new t("expire-custom-caches-only");let s=this._cacheExpirations.get(e);return s||(s=new Z(e,this._config),this._cacheExpirations.set(e,s)),s}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(null===t)return!0;return t>=Date.now()-1e3*this._maxAgeSeconds}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),s=new Date(t).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}({maxEntries:200})]})),T((e=>{const{request:t}=e;return!se(t)&&(t.url.includes("/images/")||t.url.includes("/icons/"))}),new class extends v{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(ee)}async _handle(e,s){const n=s.fetchAndCachePut(e).catch((()=>{}));s.waitUntil(n);let a,r=await s.cacheMatch(e);if(r)0;else{0;try{r=await n}catch(i){i instanceof Error&&(a=i)}}if(!r)throw new t("no-response",{url:e.url,error:a});return r}})})()})();
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 6281.4b891c90.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[6281],{5873:(e,n,t)=>{"use strict";t.d(n,{Z:()=>m});var o=t(96266),r=(t(49631),t(5057)),i=t(55898),l=t.n(i),s=t(44247),a=t(68420),c=t(1033),d=t(615),u=t(6504),f=t(94457),h=t(59763),p=t(25162);function g(e){var n;let{meta:t,fallbackUrl:i,invalidPathFallback:l,headerAddons:d,sessionManagerProps:g,links:m,...v}=e;(0,p.x)();const b=(0,r.useContext)(s.B3),y=null===b||void 0===b||null===(n=b.session)||void 0===n?void 0:n.user,x=null===y||void 0===y?void 0:y.role,{locale:k}=(0,a.PE)()||{},w=(0,r.useMemo)((()=>{const e=Object.assign({},window.blocklet,t);try{return(0,f.RX)(e)}catch(n){return console.error("Failed to format blocklet info",n,e),e}}),[t]),{localizedNav:j,flattened:C,matchedIndex:A}=(0,r.useMemo)((()=>{var e;let n=(0,f.KN)(null===w||void 0===w||null===(e=w.navigation)||void 0===e?void 0:e.dashboard,k)||[];n=(0,f.Kb)(n,x),n=(0,u._J)(n,(e=>({title:e.title,url:e.link,icon:e.icon?(0,o.jsx)("iconify-icon",{height:"100%",width:"100%",icon:e.icon}):null,external:!0,children:e.items})),"items");const t=(0,u.Ik)(n).filter((e=>!!e.url)),r=(0,u.RX)(t.map((e=>e.url)));return-1!==r&&(t[r].active=!0),{localizedNav:n,flattened:t,matchedIndex:r}}),[w,k,x]),T="function"===typeof m?m(j):[...j,...m];if((0,r.useLayoutEffect)((()=>{!y||null!==C&&void 0!==C&&C.length||!i||(window.location.href=i)}),[i]),(0,r.useLayoutEffect)((()=>{var e;y&&null!==C&&void 0!==C&&C.length&&-1===A&&(l?l():window.location.href=(null===(e=C[0])||void 0===e?void 0:e.url)||f.iU)}),[l,C,A]),!w.appName)return null;const{appLogo:M,appLogoRect:Z,appName:E}=w,I=(0,o.jsx)(h.Z,{formattedBlocklet:w,addons:d,sessionManagerProps:g});return(0,o.jsx)(c.Z,{title:E,fullWidth:!0,sidebarWidth:128,legacy:!1,links:T,...v,headerProps:{homeLink:f.iU,logo:(0,o.jsx)("img",{src:Z||M,alt:"logo"}),addons:I,...v.headerProps}})}g.propTypes={meta:d.I,fallbackUrl:l().string,invalidPathFallback:l().func,headerAddons:l().oneOfType([l().func,l().node]),sessionManagerProps:d.Z,links:l().oneOfType([l().array,l().func])},g.defaultProps={meta:{},fallbackUrl:f.iU,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=f.iU}},links:[]};const m=g},2484:(e,n,t)=>{"use strict";t.d(n,{Z:()=>Y});var o,r=t(71171),i=t(96266),l=t(5057),s=t(55898),a=t.n(s),c=t(47685),d=t(52439),u=t(68420),f=t(71569),h=t(76223),p=t(24914),g=t.n(p),m=t(9498),v=t(39948);function b(e){let{name:n,logo:t,description:o,...r}=e;if(!n&&!t&&!o)return null;const s=(0,l.isValidElement)(t)?t:(0,i.jsx)("img",{src:t,alt:n});return(0,i.jsxs)(y,{...r,children:[(0,i.jsxs)("div",{children:[t&&(0,i.jsx)("div",{className:"footer-brand-logo",children:s}),n&&(0,i.jsx)("div",{className:"footer-brand-name",children:n})]}),o&&(0,i.jsx)("div",{className:"footer-brand-desc",children:o})]})}b.propTypes={name:a().node,logo:a().node,description:a().string},b.defaultProps={name:"",logo:"",description:""};const y=(0,c.zo)("div")(o||(o=(0,r.Z)(["\n display: flex;\n flex-direction: column;\n font-size: 14px;\n a {\n text-decoration: none;\n color: inherit;\n }\n > div:first-of-type {\n display: flex;\n align-items: center;\n }\n .footer-brand-logo {\n display: flex;\n align-items: center;\n margin-right: 16px;\n line-height: 1;\n img,\n svg {\n width: auto;\n height: 44px;\n max-height: 44px;\n }\n }\n .footer-brand-name {\n font-size: 16px;\n font-weight: bold;\n }\n .footer-brand-desc {\n margin-top: 16px;\n }\n\n "," {\n width: auto;\n }\n\n "," {\n .footer-brand-logo {\n img,\n svg {\n height: 32px;\n max-height: 32px;\n }\n }\n }\n"])),(e=>e.theme.breakpoints.down("sm")),(e=>e.theme.breakpoints.down("md")));var x,k=t(9978),w=t(76720),j=t(79787);function C(e){let{links:n,flowLayout:t,...o}=e;const[r,s]=(0,l.useState)(-1);if(null===n||void 0===n||!n.length)return null;const a=n.some((e=>{var n;return null===(n=e.items)||void 0===n?void 0:n.length})),c=e=>{let{label:n,link:t,icon:o,render:r,props:l}=e,s=n;return r?s=r({label:n,link:t,props:l}):t&&(s=(0,i.jsx)("a",{href:t,"aria-label":"Footer link for ".concat(n),...l,children:n})),(0,i.jsxs)(i.Fragment,{children:[o&&(0,i.jsx)(j.Z,{icon:o,size:20,sx:{mr:.5}}),s]})};return(0,i.jsx)(A,{...o,className:(0,k.Z)(o.className,{"footer-links--grouped":a,"footer-links--flow":t}),children:(0,i.jsxs)("div",{className:"footer-links-inner",children:[t&&n.map(((e,n)=>(0,i.jsx)("span",{className:"footer-links-item",children:c(e)},n))),!t&&n.map(((e,n)=>{const{items:t}=e,o=n===r;return(0,i.jsxs)("div",{className:(0,k.Z)("footer-links-group",{"footer-links-group--active":o}),onClick:()=>s(r===n?-1:n),children:[(0,i.jsxs)("span",{className:"footer-links-item",children:[c(e),!(null===t||void 0===t||!t.length)&&(0,i.jsx)("span",{className:"footer-links-group-expand-icon",children:(0,i.jsx)(w.Z,{style:{transform:"rotate(".concat(o?180:0,"deg)")}})})]}),!(null===t||void 0===t||!t.length)&&(0,i.jsx)("div",{className:"footer-links-sub",children:t.map(((e,n)=>(0,i.jsx)("span",{className:"footer-links-item",children:c(e)},n)))})]},n)}))]})})}C.propTypes={links:a().arrayOf(a().shape({label:a().string,link:a().string,render:a().func,props:a().object})),flowLayout:a().bool},C.defaultProps={links:[],flowLayout:!1};const A=(0,c.zo)("div")(x||(x=(0,r.Z)(["\n overflow: hidden;\n color: ",";\n .footer-links-inner {\n display: flex;\n justify-content: space-between;\n margin: 0 -8px;\n }\n .footer-links-group,\n .footer-links-sub {\n display: flex;\n flex-direction: column;\n }\n .footer-links-sub .footer-links-item {\n color: ",";\n }\n .footer-links-group-expand-icon {\n display: none;\n position: absolute;\n right: 16px;\n top: 50%;\n transform: translate(0, -50%);\n line-height: 1;\n svg {\n width: auto;\n height: 0.75em;\n }\n }\n .footer-links-item {\n display: inline-flex;\n align-items: center;\n position: relative;\n padding: 4px 8px;\n font-size: 14px;\n }\n &.footer-links--grouped {\n .footer-links-group {\n > .footer-links-item {\n font-weight: bold;\n }\n .footer-links-sub {\n margin-top: 8px;\n }\n }\n }\n a {\n display: inline-block;\n max-width: 150px;\n color: inherit;\n text-decoration: none;\n &:hover {\n text-decoration: underline;\n }\n }\n\n &.footer-links--flow {\n display: inline-flex;\n .footer-links-inner {\n justify-content: center;\n flex-wrap: wrap;\n margin: 0 -8px;\n .footer-links-item {\n padding: 0 8px;\n }\n .footer-links-item + .footer-links-item::before {\n content: '';\n position: absolute;\n left: 0;\n top: 50%;\n transform: translate(0, -50%);\n height: 1em;\n border-left: 1px solid ",";\n }\n }\n }\n\n "," {\n .footer-links-inner {\n flex-direction: column;\n margin: 0;\n }\n .footer-links-sub {\n display: none;\n }\n .footer-links-group {\n position: relative;\n padding: 12px 0;\n .footer-links-item .footer-links-group-expand-icon {\n display: inline-block;\n }\n }\n .footer-links-group + .footer-links-group {\n border-top: 1px solid ",";\n }\n .footer-links-group--active {\n .footer-links-sub {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n .footer-links-item {\n flex: 0 0 50%;\n }\n }\n }\n .footer-links-item {\n padding-left: 0;\n padding-right: 0;\n font-size: 13px;\n }\n &.footer-links--grouped {\n .footer-links-group {\n > .footer-links-item {\n font-size: 14px;\n }\n }\n }\n\n &.footer-links--flow {\n .footer-links-inner {\n flex-direction: row;\n }\n }\n }\n"])),(e=>e.theme.palette.grey[600]),(e=>e.theme.palette.grey[900]),(e=>e.theme.palette.grey[400]),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.palette.grey[200]));var T;function M(e){let{items:n,...t}=e;const o=(0,c.Fg)();return null!==n&&void 0!==n&&n.length?(0,i.jsx)(Z,{...t,children:n.map(((e,n)=>(0,i.jsx)("a",{href:e.link,target:"_blank","aria-label":"Social media icon".concat(e.title?" for ".concat(e.title):""),rel:"noreferrer",children:(0,i.jsx)(j.Z,{icon:e.icon||e.title,sx:{bgcolor:o.palette.grey[600],color:"#fff"},size:24,component:"span"})},n)))}):null}M.propTypes={items:a().arrayOf(a().shape({icon:a().string,link:a().string}))},M.defaultProps={items:null};const Z=(0,c.zo)("div")(T||(T=(0,r.Z)(["\n display: inline-flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n gap: 20px;\n a {\n color: ",";\n text-decoration: none;\n &:hover {\n color: ",";\n }\n }\n "," {\n gap: 12px;\n }\n"])),(e=>e.theme.palette.grey[400]),(e=>e.theme.palette.primary.light),(e=>e.theme.breakpoints.down("md")));var E;function I(e){let{owner:n,year:t,...o}=e;return(0,i.jsxs)(P,{...o,children:["Copyright \xa9 ",t," ",n]})}I.propTypes={owner:a().string,year:a().string},I.defaultProps={owner:"ArcBlock",year:"".concat((new Date).getFullYear())};const P=(0,c.zo)("p")(E||(E=(0,r.Z)(["\n display: flex;\n align-items: center;\n margin: 0;\n font-size: 13px;\n"])));var O,S=t(22139);function _(e){let{children:n,autoCenter:t,...o}=e;return n?(0,i.jsx)(z,{...o,className:(0,k.Z)(o.className,{"footer-row-auto-center":t}),children:n}):null}_.propTypes={children:a().any,autoCenter:a().bool},_.defaultProps={children:null,autoCenter:!1};const z=(0,c.zo)(v.Z)(O||(O=(0,r.Z)(["\n display: flex;\n justify-content: space-between;\n & + & {\n margin-top: 24px;\n }\n &.footer-row-auto-center > *:only-child {\n margin: 0 auto;\n }\n\n "," {\n align-items: stretch;\n flex-direction: column;\n gap: 16px;\n > * {\n flex: 1 0 100%;\n }\n &.footer-row-auto-center > * {\n margin: 0 auto;\n }\n }\n"])),(e=>e.theme.breakpoints.down("md")));var R;function N(e){var n;let{elements:t,data:o,...r}=e;return(0,i.jsx)(L,{...r,children:(0,i.jsxs)(S.Z,{children:[(0,i.jsxs)(v.Z,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:{xs:"center",md:"space-between"},gap:2,pb:3},children:[(0,i.jsx)(v.Z,{children:t.brand}),(0,i.jsx)(v.Z,{lineHeight:1,children:t.socialMedia})]}),!(null===(n=o.navigation)||void 0===n||!n.length)&&(0,i.jsx)(v.Z,{sx:{mb:6,pt:3,borderTop:1,borderColor:"grey.200"},children:t.navigation}),(0,i.jsxs)(_,{sx:{pt:3,borderTop:1,borderColor:"grey.200"},autoCenter:!0,children:[t.copyright,t.links]})]})})}N.propTypes={elements:a().shape({brand:a().element,navigation:a().element,socialMedia:a().element,copyright:a().element,links:a().element}).isRequired,data:a().object.isRequired};const L=(0,c.zo)("div")(R||(R=(0,r.Z)(["\n padding: 32px 0 24px 0;\n .footer-brand-name,\n .footer-brand-desc {\n display: none;\n }\n && .footer-brand-logo {\n margin-right: 0;\n }\n"]))),q=N;var F;function H(e){let{elements:n,data:t,...o}=e;return(0,i.jsx)(U,{...o,children:(0,i.jsxs)(S.Z,{className:"plain-layout-container",children:[!!t.links&&(0,i.jsxs)(_,{sx:{width:1},autoCenter:!0,children:[n.copyright,n.links]}),!t.links&&(0,i.jsxs)(i.Fragment,{children:[(0,l.cloneElement)(n.brand,{name:null,description:null}),n.copyright]})]})})}H.propTypes={elements:a().shape({brand:a().element,navigation:a().element,socialMedia:a().element,copyright:a().element,links:a().element}).isRequired,data:a().object.isRequired};const U=(0,c.zo)("div")(F||(F=(0,r.Z)(["\n padding: 24px 0;\n .plain-layout-container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n }\n"]))),B=[{name:"plain",support:(e,n)=>{var t,o;return!(null!==(t=n.navigation)&&void 0!==t&&t.length)&&!(null!==(o=n.socialMedia)&&void 0!==o&&o.length)},component:H},{name:"standard",support:()=>!0,component:q}],D=B.reduce(((e,n)=>({...e,[n.name]:n})),{});function J(e){var n,t;const{brand:o,navigation:r,socialMedia:l,copyright:s,links:a,layout:c,...d}=e,u={brand:o?(0,i.jsx)(b,{...o}):null,navigation:null!==r&&void 0!==r&&r.length?(0,i.jsx)(C,{links:r}):null,socialMedia:null!==l&&void 0!==l&&l.length?(0,i.jsx)(M,{items:l}):null,copyright:(()=>{const e=(null===s||void 0===s?void 0:s.owner)||(null===o||void 0===o?void 0:o.name);return e?(0,i.jsx)(I,{owner:e,year:(null===s||void 0===s?void 0:s.year)||void 0}):null})(),links:null!==a&&void 0!==a&&a.length?(0,i.jsx)(C,{flowLayout:!0,links:a}):null};let f=null;var h;"auto"===c?f=B.find((n=>n.support(u,e))).component:f=null===(h=D[c])||void 0===h?void 0:h.component;if(!f)throw new Error("layout ".concat(c," is not supported."));return(0,i.jsxs)(v.Z,{position:"relative",...d,children:[(0,i.jsx)(f,{elements:u,data:e}),(0,i.jsx)(v.Z,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:null===(n=window)||void 0===n||null===(t=n.blocklet)||void 0===t?void 0:t.version})]})}J.propTypes={brand:a().shape({name:a().node,description:a().string,logo:a().node}),navigation:a().arrayOf(a().shape({label:a().node,link:a().string})),socialMedia:a().arrayOf(a().shape({icon:a().node,link:a().string})),copyright:a().shape({owner:a().string,year:a().oneOfType([a().string,a().number])}),links:a().arrayOf(a().shape({label:a().node,link:a().string})),layout:a().oneOf(["auto","standard","plain"])},J.defaultProps={brand:null,navigation:null,copyright:null,socialMedia:null,links:null,layout:"auto"};const K=J;var $,Q=t(6504),W=t(94457),X=t(615);function V(e){var n,t,o,r;let{meta:s,theme:a,...c}=e;const{locale:d}=(0,u.PE)()||{},f=(0,l.useMemo)((()=>{const e=Object.assign({},window.blocklet,s);try{return(0,W.RX)(e)}catch(n){return console.error("Failed to format blocklet info",n,e),e}}),[s]);if(!f.appName)return null;const{appLogo:h,appLogoRect:p,appName:v,appDescription:b,description:y,theme:x,copyright:k}=f,w={footerNav:(0,W.KN)(null===f||void 0===f||null===(n=f.navigation)||void 0===n?void 0:n.footer,d)||[],socialMedia:(0,W.KN)(null===f||void 0===f||null===(t=f.navigation)||void 0===t?void 0:t.social,d)||[],links:(0,W.KN)(null===f||void 0===f||null===(o=f.navigation)||void 0===o?void 0:o.bottom,d)||[]},j={brand:{name:v,description:b||y,logo:p||h},navigation:(0,Q._J)(w.footerNav,(e=>({...e,label:e.title,link:e.link})),"items"),copyright:k,socialMedia:w.socialMedia,links:w.links.map((e=>({...e,label:e.title})))};return(0,i.jsx)(m.Z,{theme:a,children:(0,i.jsx)(G,{...j,...g()(c,["bordered"]),$bordered:null===c||void 0===c?void 0:c.bordered,$bgcolor:null===x||void 0===x||null===(r=x.background)||void 0===r?void 0:r.footer})})}V.propTypes={meta:X.I,theme:a().object},V.defaultProps={meta:{},theme:null};const G=(0,c.zo)(K)($||($=(0,r.Z)(["\n ","\n color: ",";\n ","\n font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n"])),(e=>{let{$bordered:n}=e;return"border-top: 1px solid ".concat(n?h.E.strokeSep:"#eee",";")}),(e=>e.theme.palette.grey[600]),(e=>{let{$bgcolor:n}=e;return n&&"background-color: ".concat(n,";")})),Y=(0,d.withErrorBoundary)(V,{FallbackComponent:f.H})},1192:(e,n,t)=>{"use strict";t.d(n,{Z:()=>M});var o,r=t(71171),i=t(96266),l=t(5057),s=t(55898),a=t.n(s),c=t(52439),d=t(71569),u=t(47685),f=t(60391),h=t(48250),p=t(68420),g=t(76223),m=t(24914),v=t.n(m),b=t(79787),y=t(9498),x=t(615),k=t(6504),w=t(94457),j=t(59763),C=t(25162);function A(e){var n,t;let{meta:o,addons:r,sessionManagerProps:s,homeLink:a,theme:c,hideNavMenu:d,...u}=e;(0,C.x)();const{locale:f}=(0,p.PE)()||{},g=(0,l.useMemo)((()=>{const e=Object.assign({},window.blocklet,o);try{return(0,w.RX)(e)}catch(n){return console.error("Failed to format blocklet info",n,e),e}}),[o]);if(!g.appName)return null;const{appLogo:m,appLogoRect:x,theme:A}=g,M=(e=>{if(null===e||void 0===e||!e.length)return{navItems:[],activeId:null};let n=1;const t=(0,k._J)(e,(e=>{var t,o;const r=e.icon?(0,i.jsx)(b.Z,{icon:e.icon}):null;if(e.items)return{id:"".concat(n++),label:e.title,icon:r,children:e.items};let l={};return(null!==(t=e.link)&&void 0!==t&&t.startsWith("http://")||null!==(o=e.link)&&void 0!==o&&o.startsWith("https://"))&&(l={target:"_blank",rel:"noreferrer"}),{id:"".concat(n++),label:(0,i.jsx)("a",{href:e.link,...l,children:e.title}),icon:r,link:e.link}}),"items"),o=(0,k.Ik)(t),r=(0,k.RX)(o.map((e=>e.link)));return{navItems:t,activeId:r>=0?o[r].id:null}})((0,w.KN)(null===g||void 0===g||null===(n=g.navigation)||void 0===n?void 0:n.header,f)),{navItems:Z,activeId:E}=M,I="function"===typeof r?e=>r(e,{navigation:M}):r,P=(0,i.jsx)(j.Z,{formattedBlocklet:g,addons:I,sessionManagerProps:s});return(0,i.jsx)(y.Z,{theme:c,children:(0,i.jsx)(T,{homeLink:a,logo:(0,i.jsx)("img",{src:x||m,alt:"logo"}),addons:P,...v()(u,["bordered"]),$bordered:null===u||void 0===u?void 0:u.bordered,$bgcolor:null===A||void 0===A||null===(t=A.background)||void 0===t?void 0:t.header,children:d||null===Z||void 0===Z||!Z.length?null:e=>{let{isMobile:n}=e;return(0,i.jsx)(h.Z,{mode:n?"inline":"horizontal",activeId:E,items:Z,className:"header-nav",bgColor:"transparent",textColor:"#777"})}})})}A.propTypes={meta:x.I,addons:a().oneOfType([a().func,a().node]),sessionManagerProps:x.Z,homeLink:a().string,theme:a().object,hideNavMenu:a().bool},A.defaultProps={meta:{},addons:null,sessionManagerProps:{showRole:!0},homeLink:w.iU,theme:null,hideNavMenu:!1};const T=(0,u.zo)(f.z)(o||(o=(0,r.Z)(["\n ","\n font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n .header-logo {\n min-width: 44px;\n }\n ","\n "," {\n .header-logo {\n min-width: 32px;\n }\n }\n .header-nav {\n .navmenu-sub .navmenu-item {\n min-width: 80px;\n }\n }\n .header-nav.navmenu--horizontal {\n .navmenu-root > .navmenu-sub,\n .navmenu-root > .navmenu-item {\n padding: 16px 4px;\n\n .navmenu-sub-container {\n padding-top: 0;\n }\n }\n .navmenu-item-icon > .MuiAvatar-root,\n .navmenu-sub-icon > .MuiAvatar-root {\n width: 20px;\n height: 20px;\n }\n }\n"])),(e=>{let{$bgcolor:n}=e;return"background-color: ".concat(n||"#fff",";")}),(e=>{let{$bordered:n}=e;return n?"border-bottom: 1px solid ".concat(g.E.strokeSep,";"):""}),(e=>e.theme.breakpoints.down("md"))),M=(0,c.withErrorBoundary)(A,{FallbackComponent:d.H})},79787:(e,n,t)=>{"use strict";t.d(n,{Z:()=>a});var o=t(96266),r=(t(49631),t(55898)),i=t.n(r),l=t(62681),s=t(6504);function a(e){let{icon:n,size:t,sx:r,...i}=e;const a=[...Array.isArray(r)?r:[r]];if(t&&a.push({width:t,height:t}),i.variant||a.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),(0,s.CB)(n))return(0,o.jsx)(l.Z,{as:"span",...i,src:n,sx:a});if((0,s.Xk)(n)){const e=t?.6*t+4:0;return(0,o.jsx)(l.Z,{as:"span",...i,sx:a,children:(0,o.jsx)("iconify-icon",{icon:n,height:e||void 0})})}return n&&"string"===typeof n?(a.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),(0,o.jsx)(l.Z,{as:"span",...i,sx:a,children:Array.from(n)[0]})):null}a.propTypes={icon:i().string.isRequired,size:i().number,sx:i().oneOfType([i().array,i().func,i().object])},a.defaultProps={size:null,sx:null}},94457:(e,n,t)=>{"use strict";t.d(n,{KN:()=>c,Kb:()=>h,RX:()=>u,iU:()=>a});var o,r,i,l,s=t(6504);const a=(null===(o=window)||void 0===o||null===(r=o.blocklet)||void 0===r?void 0:r.groupPrefix)||(null===(i=window)||void 0===i||null===(l=i.blocklet)||void 0===l?void 0:l.prefix)||"/",c=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if(null===e||void 0===e||!e.length)return e;const t=(e,n)=>"string"===typeof e?e:"object"===typeof e?e[n]||(null===e||void 0===e?void 0:e.en)||(null===e||void 0===e?void 0:e.zh):e,o=(e,n)=>{if("string"===typeof e){if((0,s.CB)(e)){const t=new URL(e);return t.searchParams.set("locale",n),t.href}const t=new URL(e,window.location.origin);return t.searchParams.set("locale",n),t.pathname+t.search}return"object"===typeof e?e[n]||(null===e||void 0===e?void 0:e.en)||(null===e||void 0===e?void 0:e.zh):e};return(0,s._J)(e,(e=>{var r;return{...e,title:t(e.title,n),link:null!==(r=e.items)&&void 0!==r&&r.length?e.link:o(e.link,n),_rawLink:e.link}}),"items")},d=e=>{if(null===e||void 0===e||!e.length)return null;const n=(e=>(0,s._J)(e,(e=>e.role?{...e,role:Array.isArray(e.role)?e.role:[e.role]}:e),"items"))(e),t={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach((e=>{if(e.section){if(Array.isArray(e.section))e.section.forEach((n=>{var o;null===(o=t[n])||void 0===o||o.push(e)}));else if("string"===typeof e.section){var n;null===(n=t[e.section])||void 0===n||n.push(e)}}else t.header.push(e)})),t},u=e=>{if(!e)return null;const n={...e};return n.theme=(e=>{const n={...e},t=null===e||void 0===e?void 0:e.background;return"string"===typeof t?n.background={header:t,footer:t,default:t}:t&&"object"===typeof t&&(n.background={header:t.header||t.default,footer:t.footer||t.default,default:t.default}),n})(n.theme),n.navigation=d(f(n.navigation)),n},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,s.fA)(e,((e,n)=>{var t;return!!e.link||(null===(t=n.filteredChildren)||void 0===t?void 0:t.length)}),"items")},h=(e,n)=>(0,s.fA)(e,((e,t)=>{const o=!e.role||n&&e.role.includes(n);var r;return t.isLeaf?o:o&&(null===(r=t.filteredChildren)||void 0===r?void 0:r.length)}),"items")},59763:(e,n,t)=>{"use strict";t.d(n,{Z:()=>S});var o=t(96266),r=(t(49631),t(5057)),i=t(55898),l=t.n(i),s=t(44247),a=t(51724),c=t(67680),d=t(49020),u=t(72113),f=t(7469),h=t(25228),p=t(19577),g=t(2478),m=t(79278),v=t(39948),b=t(11750),y=t(55498);const x={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},k={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};var w=t(12673),j=t(99360),C=t(28726),A=t(76223),T=t(21998),M=t(43907);function Z(e){var n;let{session:t,locale:i,size:l}=e;const s=(null===(n=window)||void 0===n?void 0:n.blocklet)||{},a=(s.navigation||[]).filter((e=>"sessionManager"===e.section&&!["/sessionManager"].includes(e.id))).filter((e=>{var n;return!!((null===e||void 0===e?void 0:e.role)||[]).includes((null===t||void 0===t||null===(n=t.user)||void 0===n?void 0:n.role)||"guest")})).map((e=>{const n=((null===s||void 0===s?void 0:s.componentMountPoints)||[]).find((n=>e.component===n.name));return{...e,component:n}})),Z=(0,r.useRef)(null),E=(0,w.Z)({open:!1}),I=(0,j.Z)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!E.open;E.open=e}));return 0!==a.length&&null!==t&&void 0!==t&&t.user?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.Z,{size:"medium",ref:Z,onClick:()=>I(),children:(0,o.jsx)(y.JO,{icon:x,fontSize:l,style:{transform:"scale(1.08)"}})}),(0,o.jsx)(d.Z,{open:E.open,onClose:()=>I(!1),anchorEl:Z.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:e=>{let{TransitionProps:n}=e;return(0,o.jsx)(u.d,{onClickAway:e=>{e.preventDefault(),e.stopPropagation(),I(!1)},children:(0,o.jsx)(f.Z,{...n,timeout:350,children:(0,o.jsxs)(h.Z,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:A.E.lineStep,p:2,border:"0 !important",boxShadow:"0px 8px 16px 0px ".concat(A.E.gray6,", 0px 0px 0px 1px ").concat(A.E.gray6)},children:[(0,o.jsx)(p.Z,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:a.map((e=>{var n,t;return(0,o.jsx)(g.ZP,{disablePadding:!0,children:(0,o.jsxs)(m.Z,{href:e.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:A.E.surfacePrimarySubtitle}},children:[null!==e&&void 0!==e&&null!==(n=e.component)&&void 0!==n&&n.did?(0,o.jsx)(v.Z,{component:"img",src:"".concat(T.Bu,"/blocklet/logo-bundle/").concat(e.component.did),sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):(0,o.jsx)(y.JO,{fontSize:50,icon:e.icon||k,color:A.E.textSubtitle}),(0,o.jsx)(b.Z,{sx:{fontSize:"12px",color:A.E.textBase,textAlign:"center",lineHeight:"normal"},children:(null===(t=e.title)||void 0===t?void 0:t.zh)||e.title})]})},e.id)}))}),(0,o.jsx)(M.Z,{session:t,children:(0,o.jsx)(C.Z,{variant:"outlined",fullWidth:!0,href:T.Rt,sx:{mt:1,borderRadius:2,color:A.E.textBase,borderColor:A.E.lineBorderStrong,"&:hover":{color:A.E.primaryBase,borderColor:A.E.primaryBase}},children:"zh"===i?"\u7ba1\u7406":"Manage"})})]})})})}})]}):null}Z.propTypes={session:l().object.isRequired,locale:l().string,size:l().number},Z.defaultProps={locale:"en",size:24};var E=t(30296),I=t(68420),P=t(615),O=t(94457);function S(e){var n,t,i,l;let{formattedBlocklet:c,addons:d,sessionManagerProps:u}=e;const f=(0,r.useContext)(s.B3),{locale:h}=(0,I.PE)()||{},{enableConnect:p=!0,enableLocale:g=!0}=c,m=!(null===f||void 0===f||null===(n=f.session)||void 0===n||!n.user);let v=(0,O.KN)(null===c||void 0===c||null===(t=c.navigation)||void 0===t?void 0:t.sessionManager,h)||[];v=(0,O.Kb)(v,null===f||void 0===f||null===(i=f.session)||void 0===i||null===(l=i.user)||void 0===l?void 0:l.role);const b=(()=>{if(d&&"function"!==typeof d)return Array.isArray(d)?d:[d];let e=[];if(g&&h&&e.push((0,o.jsx)(E.Z,{showText:!1},"locale-selector")),p&&f){const n=[];if(m){(v?v.slice(0,5):[]).forEach((e=>{n.push({label:e.title,icon:e.icon?(0,o.jsx)("iconify-icon",{icon:e.icon,height:24,style:{marginRight:8}}):null,component:"a",href:e.link,key:e.link})}))}e.push((0,o.jsx)(Z,{session:f.session,locale:h},"session-blocklet")),e.push((0,o.jsx)(a.Z,{session:f.session,locale:h,menu:n,showRole:!0,...u},"session-user"))}return"function"===typeof d&&(e=d(e)||[]),e})();return(0,r.createElement)(o.Fragment,null,...Array.isArray(b)?b:[b])}S.propTypes={formattedBlocklet:l().object.isRequired,addons:l().oneOfType([l().func,l().node]),sessionManagerProps:P.Z},S.defaultProps={addons:null,sessionManagerProps:{showRole:!0}}},9498:(e,n,t)=>{"use strict";t.d(n,{Z:()=>a});var o=t(96266),r=t(55898),i=t.n(r),l=t(47685);const s=(0,l.jG)();function a(e){let{theme:n,children:t}=e;const r=n?(0,l.jG)(n):s;return(0,o.jsx)(l.f6,{theme:r,children:t})}a.propTypes={children:i().any.isRequired,theme:i().object},a.defaultProps={theme:null}},25162:(e,n,t)=>{"use strict";t.d(n,{x:()=>i});var o=t(5057),r=t(60829);const i=()=>{const e=(0,r.Z)();(0,o.useEffect)((()=>{e.wallet&&t.e(2365).then(t.t.bind(t,72365,23)).then((e=>{e.call||(e=e.default),e.call("arcHideTopBar","{}")})).catch((e=>{console.error("load dsbridge error",e)}))}),[e])}},615:(e,n,t)=>{"use strict";t.d(n,{I:()=>i,Z:()=>l});var o=t(55898),r=t.n(o);const i=r().shape({appLogo:r().node,appName:r().string,theme:r().shape({background:r().string}),enableConnect:r().bool,enableLocale:r().bool,navigation:r().arrayOf(r().shape({title:r().oneOfType([r().string,r().object]),link:r().oneOfType([r().string,r().object]),icon:r().string,items:r().arrayOf(r().shape({title:r().oneOfType([r().string,r().object]),link:r().oneOfType([r().string,r().object])}))}))}),l=r().shape({showText:r().bool,showRole:r().bool,switchDid:r().bool,switchProfile:r().bool,switchPassport:r().bool,disableLogout:r().bool,onLogin:r().func,onLogout:r().func,onSwitchDid:r().func,onSwitchProfile:r().func,onSwitchPassport:r().func,menu:r().array,menuRender:r().func,dark:r().bool,size:r().number})},6504:(e,n,t)=>{"use strict";t.d(n,{CB:()=>l,Ik:()=>r,RX:()=>a,Xk:()=>s,_J:()=>o,fA:()=>i});const o=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children";return e.map((e=>Array.isArray(e[t])?n({...e,[t]:o(e[t],n,t)}):n(e)))},r=function(e){const n=[];return o(e,(e=>n.push(e)),arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children"),n},i=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children";return e.map((e=>({...e}))).filter((e=>{const o=e[t];if(Array.isArray(o)){const r=i(o,n,t);e[t]=null!==r&&void 0!==r&&r.length?r:void 0}const r={filteredChildren:e[t],isLeaf:!(null!==o&&void 0!==o&&o.length)};return n(e,r)}))},l=e=>/^https?:\/\//.test(e),s=e=>/^[\w-]+:[\w-]+$/.test(e),a=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(((e,n)=>({path:e,index:n}))).filter((e=>(e=>{if(!e||null===e||void 0===e||!e.startsWith("/"))return!1;const n=e=>e.endsWith("/")?e:"".concat(e,"/"),t=n(window.location.pathname),o=n(new URL(e,window.location.origin).pathname);return t.startsWith(o)})(e.path)));if(null===e||void 0===e||!e.length)return-1;return e.slice(1).reduce(((e,n)=>e.path.length>=n.path.length?e:n),e[0]).index}},63838:(e,n,t)=>{"use strict";t.d(n,{Z:()=>v});var o=t(27812),r=t(67120),i=t(89141),l=t(41168),s=t(5057),a=t(78590),c=t(50482),d=t.n(c);const u=function(e,n,t){var o,r,i=(0,s.useRef)(),l=(0,s.useRef)(0);o=n,r=i.current,void 0===o&&(o=[]),void 0===r&&(r=[]),d()(o,r)||(i.current=n,l.current+=1),(0,a.Z)(e,[l.current],t)};var f={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:/(mac|iphone|ipod|ipad)/i.test("undefined"!==typeof navigator?null===navigator||void 0===navigator?void 0:navigator.platform:"")?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},h={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return"keyup"===e.type?f.meta.includes(e.keyCode):e.metaKey}};function p(e){return(0,i.HD)(e)||(0,i.hj)(e)}function g(e,n,t){var r,l;if(!e.key)return!1;if((0,i.hj)(n))return e.keyCode===n&&n;var s=n.split("."),a=0;try{for(var c=(0,o.__values)(s),d=c.next();!d.done;d=c.next()){var u=d.value,p=h[u],g=f[u.toLowerCase()];(p&&p(e)||g&&g===e.keyCode)&&a++}}catch(m){r={error:m}}finally{try{d&&!d.done&&(l=c.return)&&l.call(c)}finally{if(r)throw r.error}}return t?a===s.length&&function(e){var n=Object.keys(h).reduce((function(n,t){return h[t](e)?n+1:n}),0);return[16,17,18,91,92].includes(e.keyCode)?n:n+1}(e)===s.length&&n:a===s.length&&n}var m=["keydown"];const v=function(e,n,t){var s=t||{},a=s.events,c=void 0===a?m:a,d=s.target,f=s.exactMatch,h=void 0!==f&&f,v=s.useCapture,b=void 0!==v&&v,y=(0,r.Z)(n),x=(0,r.Z)(e);u((function(){var e,n,t,r=(0,l.n)(d,window);if(r){var s=function(e){var n,t=function(e,n){return(0,i.mf)(e)?e:p(e)?function(t){return g(t,e,n)}:Array.isArray(e)?function(t){return e.find((function(e){return g(t,e,n)}))}:function(){return Boolean(e)}}(x.current,h),o=t(e),r=p(o)?o:e.key;if(o)return null===(n=y.current)||void 0===n?void 0:n.call(y,e,r)};try{for(var a=(0,o.__values)(c),u=a.next();!u.done;u=a.next()){var f=u.value;null===(t=null===r||void 0===r?void 0:r.addEventListener)||void 0===t||t.call(r,f,s,b)}}catch(m){e={error:m}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return function(){var e,n,t;try{for(var i=(0,o.__values)(c),l=i.next();!l.done;l=i.next()){var a=l.value;null===(t=null===r||void 0===r?void 0:r.removeEventListener)||void 0===t||t.call(r,a,s,b)}}catch(d){e={error:d}}finally{try{l&&!l.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}}}),[c],d)}},50482:(e,n,t)=>{var o=t(23800);e.exports=function(e,n){return o(e,n)}},56977:(e,n,t)=>{"use strict";var o=t(24921);function r(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function i(e,n){for(var t,o="",r=0,i=-1,l=0,s=0;s<=e.length;++s){if(s<e.length)t=e.charCodeAt(s);else{if(47===t)break;t=47}if(47===t){if(i===s-1||1===l);else if(i!==s-1&&2===l){if(o.length<2||2!==r||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){var a=o.lastIndexOf("/");if(a!==o.length-1){-1===a?(o="",r=0):r=(o=o.slice(0,a)).length-1-o.lastIndexOf("/"),i=s,l=0;continue}}else if(2===o.length||1===o.length){o="",r=0,i=s,l=0;continue}n&&(o.length>0?o+="/..":o="..",r=2)}else o.length>0?o+="/"+e.slice(i+1,s):o=e.slice(i+1,s),r=s-i-1;i=s,l=0}else 46===t&&-1!==l?++l:l=-1}return o}var l={resolve:function(){for(var e,n="",t=!1,l=arguments.length-1;l>=-1&&!t;l--){var s;l>=0?s=arguments[l]:(void 0===e&&(e=o.cwd()),s=e),r(s),0!==s.length&&(n=s+"/"+n,t=47===s.charCodeAt(0))}return n=i(n,!t),t?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(r(e),0===e.length)return".";var n=47===e.charCodeAt(0),t=47===e.charCodeAt(e.length-1);return 0!==(e=i(e,!n)).length||n||(e="."),e.length>0&&t&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return r(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var t=arguments[n];r(t),t.length>0&&(void 0===e?e=t:e+="/"+t)}return void 0===e?".":l.normalize(e)},relative:function(e,n){if(r(e),r(n),e===n)return"";if((e=l.resolve(e))===(n=l.resolve(n)))return"";for(var t=1;t<e.length&&47===e.charCodeAt(t);++t);for(var o=e.length,i=o-t,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var a=n.length-s,c=i<a?i:a,d=-1,u=0;u<=c;++u){if(u===c){if(a>c){if(47===n.charCodeAt(s+u))return n.slice(s+u+1);if(0===u)return n.slice(s+u)}else i>c&&(47===e.charCodeAt(t+u)?d=u:0===u&&(d=0));break}var f=e.charCodeAt(t+u);if(f!==n.charCodeAt(s+u))break;47===f&&(d=u)}var h="";for(u=t+d+1;u<=o;++u)u!==o&&47!==e.charCodeAt(u)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+d):(s+=d,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var n=e.charCodeAt(0),t=47===n,o=-1,i=!0,l=e.length-1;l>=1;--l)if(47===(n=e.charCodeAt(l))){if(!i){o=l;break}}else i=!1;return-1===o?t?"/":".":t&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!==typeof n)throw new TypeError('"ext" argument must be a string');r(e);var t,o=0,i=-1,l=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,a=-1;for(t=e.length-1;t>=0;--t){var c=e.charCodeAt(t);if(47===c){if(!l){o=t+1;break}}else-1===a&&(l=!1,a=t+1),s>=0&&(c===n.charCodeAt(s)?-1===--s&&(i=t):(s=-1,i=a))}return o===i?i=a:-1===i&&(i=e.length),e.slice(o,i)}for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!l){o=t+1;break}}else-1===i&&(l=!1,i=t+1);return-1===i?"":e.slice(o,i)},extname:function(e){r(e);for(var n=-1,t=0,o=-1,i=!0,l=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===o&&(i=!1,o=s+1),46===a?-1===n?n=s:1!==l&&(l=1):-1!==n&&(l=-1);else if(!i){t=s+1;break}}return-1===n||-1===o||0===l||1===l&&n===o-1&&n===t+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,n){var t=n.dir||n.root,o=n.base||(n.name||"")+(n.ext||"");return t?t===n.root?t+o:t+e+o:o}("/",e)},parse:function(e){r(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var t,o=e.charCodeAt(0),i=47===o;i?(n.root="/",t=1):t=0;for(var l=-1,s=0,a=-1,c=!0,d=e.length-1,u=0;d>=t;--d)if(47!==(o=e.charCodeAt(d)))-1===a&&(c=!1,a=d+1),46===o?-1===l?l=d:1!==u&&(u=1):-1!==l&&(u=-1);else if(!c){s=d+1;break}return-1===l||-1===a||0===u||1===u&&l===a-1&&l===s+1?-1!==a&&(n.base=n.name=0===s&&i?e.slice(1,a):e.slice(s,a)):(0===s&&i?(n.name=e.slice(1,l),n.base=e.slice(1,a)):(n.name=e.slice(s,l),n.base=e.slice(s,a)),n.ext=e.slice(l,a)),s>0?n.dir=e.slice(0,s-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,e.exports=l},49631:(e,n,t)=>{"use strict";var o=t(56666);const r=Object.freeze({left:0,top:0,width:16,height:16}),i=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),l=Object.freeze({...r,...i}),s=Object.freeze({...l,body:"",hidden:!1}),a=Object.freeze({width:null,height:null}),c=Object.freeze({...a,...i});const d=/[\s,]+/;const u={...c,preserveAspectRatio:""};function f(e){const n={...u},t=(n,t)=>e.getAttribute(n)||t;var o;return n.width=t("width",null),n.height=t("height",null),n.rotate=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const t=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===t){const n=parseInt(e);return isNaN(n)?0:o(n)}if(t!==e){let n=0;switch(t){case"%":n=25;break;case"deg":n=90}if(n){let r=parseFloat(e.slice(0,e.length-t.length));return isNaN(r)?0:(r/=n,r%1===0?o(r):0)}}return n}(t("rotate","")),o=n,t("flip","").split(d).forEach((e=>{switch(e.trim()){case"horizontal":o.hFlip=!0;break;case"vertical":o.vFlip=!0}})),n.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),n}const h=/^[a-z0-9]+(-[a-z0-9]+)*$/,p=function(e,n,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),t=r.pop(),i={provider:r.length>0?r[0]:o,prefix:t,name:e};return n&&!g(i)?null:i}const i=r[0],l=i.split("-");if(l.length>1){const e={provider:o,prefix:l.shift(),name:l.join("-")};return n&&!g(e)?null:e}if(t&&""===o){const e={provider:o,prefix:"",name:i};return n&&!g(e,t)?null:e}return null},g=(e,n)=>!!e&&!(""!==e.provider&&!e.provider.match(h)||!(n&&""===e.prefix||e.prefix.match(h))||!e.name.match(h));function m(e,n){const t=function(e,n){const t={};!e.hFlip!==!n.hFlip&&(t.hFlip=!0),!e.vFlip!==!n.vFlip&&(t.vFlip=!0);const o=((e.rotate||0)+(n.rotate||0))%4;return o&&(t.rotate=o),t}(e,n);for(const o in s)o in i?o in e&&!(o in t)&&(t[o]=i[o]):o in n?t[o]=n[o]:o in e&&(t[o]=e[o]);return t}function v(e,n,t){const o=e.icons,r=e.aliases||Object.create(null);let i={};function l(e){i=m(o[e]||r[e],i)}return l(n),t.forEach(l),m(e,i)}function b(e,n){const t=[];if("object"!==typeof e||"object"!==typeof e.icons)return t;e.not_found instanceof Array&&e.not_found.forEach((e=>{n(e,null),t.push(e)}));const o=function(e,n){const t=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(n||Object.keys(t).concat(Object.keys(o))).forEach((function e(n){if(t[n])return r[n]=[];if(!(n in r)){r[n]=null;const t=o[n]&&o[n].parent,i=t&&e(t);i&&(r[n]=[t].concat(i))}return r[n]})),r}(e);for(const r in o){const i=o[r];i&&(n(r,v(e,r,i)),t.push(r))}return t}const y={provider:"",aliases:{},not_found:{},...r};function x(e,n){for(const t in n)if(t in e&&typeof e[t]!==typeof n[t])return!1;return!0}function k(e){if("object"!==typeof e||null===e)return null;const n=e;if("string"!==typeof n.prefix||!e.icons||"object"!==typeof e.icons)return null;if(!x(e,y))return null;const t=n.icons;for(const r in t){const e=t[r];if(!r.match(h)||"string"!==typeof e.body||!x(e,s))return null}const o=n.aliases||Object.create(null);for(const r in o){const e=o[r],n=e.parent;if(!r.match(h)||"string"!==typeof n||!t[n]&&!o[n]||!x(e,s))return null}return n}const w=Object.create(null);function j(e,n){const t=w[e]||(w[e]=Object.create(null));return t[n]||(t[n]=function(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}(e,n))}function C(e,n){return k(n)?b(n,((n,t)=>{t?e.icons[n]=t:e.missing.add(n)})):[]}function A(e,n){let t=[];return("string"===typeof e?[e]:Object.keys(w)).forEach((e=>{("string"===typeof e&&"string"===typeof n?[n]:Object.keys(w[e]||{})).forEach((n=>{const o=j(e,n);t=t.concat(Object.keys(o.icons).map((t=>(""!==e?"@"+e+":":"")+n+":"+t)))}))})),t}let T=!1;function M(e){return"boolean"===typeof e&&(T=e),T}function Z(e){const n="string"===typeof e?p(e,!0,T):e;if(n){const e=j(n.provider,n.prefix),t=n.name;return e.icons[t]||(e.missing.has(t)?null:void 0)}}function E(e,n){const t=p(e,!0,T);if(!t)return!1;return function(e,n,t){try{if("string"===typeof t.body)return e.icons[n]={...t},!0}catch(o){}return!1}(j(t.provider,t.prefix),t.name,n)}function I(e,n){if("object"!==typeof e)return!1;if("string"!==typeof n&&(n=e.provider||""),T&&!n&&!e.prefix){let n=!1;return k(e)&&(e.prefix="",b(e,((e,t)=>{t&&E(e,t)&&(n=!0)}))),n}const t=e.prefix;if(!g({provider:n,prefix:t,name:"a"}))return!1;return!!C(j(n,t),e)}function P(e){return!!Z(e)}function O(e){const n=Z(e);return n?{...l,...n}:null}function S(e,n){e.forEach((e=>{const t=e.loaderCallbacks;t&&(e.loaderCallbacks=t.filter((e=>e.id!==n)))}))}let _=0;const z=Object.create(null);function R(e,n){z[e]=n}function N(e){return z[e]||z[""]}var L={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function q(e,n,t,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let l;if(e.random){let n=e.resources.slice(0);for(l=[];n.length>1;){const e=Math.floor(Math.random()*n.length);l.push(n[e]),n=n.slice(0,e).concat(n.slice(e+1))}l=l.concat(n)}else l=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let a,c="pending",d=0,u=null,f=[],h=[];function p(){u&&(clearTimeout(u),u=null)}function g(){"pending"===c&&(c="aborted"),p(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function m(e,n){n&&(h=[]),"function"===typeof e&&h.push(e)}function v(){c="failed",h.forEach((e=>{e(void 0,a)}))}function b(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function y(){if("pending"!==c)return;p();const o=l.shift();if(void 0===o)return f.length?void(u=setTimeout((()=>{p(),"pending"===c&&(b(),v())}),e.timeout)):void v();const r={status:"pending",resource:o,callback:(n,t)=>{!function(n,t,o){const r="success"!==t;switch(f=f.filter((e=>e!==n)),c){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===t)return a=o,void v();if(r)return a=o,void(f.length||(l.length?y():v()));if(p(),b(),!e.random){const t=e.resources.indexOf(n.resource);-1!==t&&t!==e.index&&(e.index=t)}c="completed",h.forEach((e=>{e(o)}))}(r,n,t)}};f.push(r),d++,u=setTimeout(y,e.rotate),t(o,n,r.callback)}return"function"===typeof o&&h.push(o),setTimeout(y),function(){return{startTime:s,payload:n,status:c,queriesSent:d,queriesPending:f.length,subscribe:m,abort:g}}}function F(e){const n={...L,...e};let t=[];function o(){t=t.filter((e=>"pending"===e().status))}return{query:function(e,r,i){const l=q(n,e,r,((e,n)=>{o(),i&&i(e,n)}));return t.push(l),l},find:function(e){return t.find((n=>e(n)))||null},setIndex:e=>{n.index=e},getIndex:()=>n.index,cleanup:o}}function H(e){let n;if("string"===typeof e.resources)n=[e.resources];else if(n=e.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const U=Object.create(null),B=["https://api.simplesvg.com","https://api.unisvg.com"],D=[];for(;B.length>0;)1===B.length||Math.random()>.5?D.push(B.shift()):D.push(B.pop());function J(e,n){const t=H(n);return null!==t&&(U[e]=t,!0)}function K(e){return U[e]}function $(){return Object.keys(U)}function Q(){}U[""]=H({resources:["https://api.iconify.design"].concat(D)});const W=Object.create(null);function X(e,n,t){let o,r;if("string"===typeof e){const n=N(e);if(!n)return t(void 0,424),Q;r=n.send;const i=function(e){if(!W[e]){const n=K(e);if(!n)return;const t={config:n,redundancy:F(n)};W[e]=t}return W[e]}(e);i&&(o=i.redundancy)}else{const n=H(e);if(n){o=F(n);const t=N(e.resources?e.resources[0]:"");t&&(r=t.send)}}return o&&r?o.query(n,r,t)().abort:(t(void 0,424),Q)}const V="iconify2",G="iconify",Y=G+"-count",ee=G+"-version",ne=36e5,te=168;function oe(e,n){try{return e.getItem(n)}catch(t){}}function re(e,n,t){try{return e.setItem(n,t),!0}catch(o){}}function ie(e,n){try{e.removeItem(n)}catch(t){}}function le(e,n){return re(e,Y,n.toString())}function se(e){return parseInt(oe(e,Y))||0}const ae={local:!0,session:!0},ce={local:new Set,session:new Set};let de=!1;let ue="undefined"===typeof window?{}:window;function fe(e){const n=e+"Storage";try{if(ue&&ue[n]&&"number"===typeof ue[n].length)return ue[n]}catch(t){}ae[e]=!1}function he(e,n){const t=fe(e);if(!t)return;const o=oe(t,ee);if(o!==V){if(o){const e=se(t);for(let n=0;n<e;n++)ie(t,G+n.toString())}return re(t,ee,V),void le(t,0)}const r=Math.floor(Date.now()/ne)-te,i=e=>{const o=G+e.toString(),i=oe(t,o);if("string"===typeof i){try{const t=JSON.parse(i);if("object"===typeof t&&"number"===typeof t.cached&&t.cached>r&&"string"===typeof t.provider&&"object"===typeof t.data&&"string"===typeof t.data.prefix&&n(t,e))return!0}catch(l){}ie(t,o)}};let l=se(t);for(let s=l-1;s>=0;s--)i(s)||(s===l-1?(l--,le(t,l)):ce[e].add(s))}function pe(){if(!de){de=!0;for(const e in ae)he(e,(e=>{const n=e.data,t=j(e.provider,n.prefix);if(!C(t,n).length)return!1;const o=n.lastModified||-1;return t.lastModifiedCached=t.lastModifiedCached?Math.min(t.lastModifiedCached,o):o,!0}))}}function ge(e,n){function t(t){let o;if(!ae[t]||!(o=fe(t)))return;const r=ce[t];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=se(o),!le(o,i+1))return;const l={cached:Math.floor(Date.now()/ne),provider:e.provider,data:n};return re(o,G+i.toString(),JSON.stringify(l))}de||pe(),n.lastModified&&!function(e,n){const t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(const o in ae)he(o,(t=>{const o=t.data;return t.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===n}));return!0}(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&delete(n=Object.assign({},n)).not_found,t("local")||t("session"))}function me(){}function ve(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!n.length)return;let t=!1;const o=e.provider,r=e.prefix;n.forEach((n=>{const i=n.icons,l=i.pending.length;i.pending=i.pending.filter((n=>{if(n.prefix!==r)return!0;const l=n.name;if(e.icons[l])i.loaded.push({provider:o,prefix:r,name:l});else{if(!e.missing.has(l))return t=!0,!0;i.missing.push({provider:o,prefix:r,name:l})}return!1})),i.pending.length!==l&&(t||S([e],n.id),n.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),n.abort))}))})))}(e)})))}const be=(e,n)=>{const t=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[];return e.forEach((e=>{const r="string"===typeof e?p(e,n,t):e;r&&o.push(r)})),o}(e,!0,M()),o=function(e){const n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort(((e,n)=>e.provider!==n.provider?e.provider.localeCompare(n.provider):e.prefix!==n.prefix?e.prefix.localeCompare(n.prefix):e.name.localeCompare(n.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,l=e.name,s=t[r]||(t[r]=Object.create(null)),a=s[i]||(s[i]=j(r,i));let c;c=l in a.icons?n.loaded:""===i||a.missing.has(l)?n.missing:n.pending;const d={provider:r,prefix:i,name:l};c.push(d)})),n}(t);if(!o.pending.length){let e=!0;return n&&setTimeout((()=>{e&&n(o.loaded,o.missing,o.pending,me)})),()=>{e=!1}}const r=Object.create(null),i=[];let l,s;return o.pending.forEach((e=>{const{provider:n,prefix:t}=e;if(t===s&&n===l)return;l=n,s=t,i.push(j(n,t));const o=r[n]||(r[n]=Object.create(null));o[t]||(o[t]=[])})),o.pending.forEach((e=>{const{provider:n,prefix:t,name:o}=e,i=j(n,t),l=i.pendingIcons||(i.pendingIcons=new Set);l.has(o)||(l.add(o),r[n][t].push(o))})),i.forEach((e=>{const{provider:n,prefix:t}=e;r[n][t].length&&function(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:t}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=N(n))&&r.prepare(n,t,o).forEach((t=>{X(n,t,(n=>{if("object"!==typeof n)t.icons.forEach((n=>{e.missing.add(n)}));else try{const t=C(e,n);if(!t.length)return;const o=e.pendingIcons;o&&t.forEach((e=>{o.delete(e)})),ge(e,n)}catch(o){console.error(o)}ve(e)}))}))})))}(e,r[n][t])})),n?function(e,n,t){const o=_++,r=S.bind(null,t,o);if(!n.pending.length)return r;const i={id:o,icons:n,callback:e,abort:r};return t.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(n,o,i):me},ye=e=>new Promise(((n,t)=>{const o="string"===typeof e?p(e,!0):e;o?be([o||e],(r=>{if(r.length&&o){const e=Z(o);if(e)return void n({...l,...e})}t(e)})):t(e)}));function xe(e,n){const t="string"===typeof e?p(e,!0,!0):null;if(!t){const n=function(e){try{const n="string"===typeof e?JSON.parse(e):e;if("string"===typeof n.body)return{...n}}catch(n){}}(e);return{value:e,data:n}}const o=Z(t);if(void 0!==o||!t.prefix)return{value:e,name:t,data:o};const r=be([t],(()=>n(e,t,Z(t))));return{value:e,name:t,loading:r}}function ke(e){return e.hasAttribute("inline")}let we=!1;try{we=0===navigator.vendor.indexOf("Apple")}catch(cn){}const je=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ce=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ae(e,n,t){if(1===n)return e;if(t=t||100,"number"===typeof e)return Math.ceil(e*n*t)/t;if("string"!==typeof e)return e;const o=e.split(je);if(null===o||!o.length)return e;const r=[];let i=o.shift(),l=Ce.test(i);for(;;){if(l){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*n*t)/t)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");l=!l}}const Te=e=>"unset"===e||"undefined"===e||"none"===e;function Me(e,n){const t={...l,...e},o={...c,...n},r={left:t.left,top:t.top,width:t.width,height:t.height};let i=t.body;[t,o].forEach((e=>{const n=[],t=e.hFlip,o=e.vFlip;let l,s=e.rotate;switch(t?o?s+=2:(n.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),n.push("scale(-1 1)"),r.top=r.left=0):o&&(n.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),n.push("scale(1 -1)"),r.top=r.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:l=r.height/2+r.top,n.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:n.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:l=r.width/2+r.left,n.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")")}s%2===1&&(r.left!==r.top&&(l=r.left,r.left=r.top,r.top=l),r.width!==r.height&&(l=r.width,r.width=r.height,r.height=l)),n.length&&(i='<g transform="'+n.join(" ")+'">'+i+"</g>")}));const s=o.width,a=o.height,d=r.width,u=r.height;let f,h;null===s?(h=null===a?"1em":"auto"===a?u:a,f=Ae(h,d/u)):(f="auto"===s?d:s,h=null===a?Ae(f,u/d):"auto"===a?u:a);const p={},g=(e,n)=>{Te(n)||(p[e]=n.toString())};return g("width",f),g("height",h),p.viewBox=r.left.toString()+" "+r.top.toString()+" "+d.toString()+" "+u.toString(),{attributes:p,body:i}}let Ze=(()=>{let e;try{if(e=fetch,"function"===typeof e)return e}catch(cn){}})();function Ee(e){Ze=e}function Ie(){return Ze}const Pe={prepare:(e,n,t)=>{const o=[],r=function(e,n){const t=K(e);if(!t)return 0;let o;if(t.maxURL){let e=0;t.resources.forEach((n=>{const t=n;e=Math.max(e,t.length)}));const r=n+".json?icons=";o=t.maxURL-e-t.path.length-r.length}else o=0;return o}(e,n),i="icons";let l={type:i,provider:e,prefix:n,icons:[]},s=0;return t.forEach(((t,a)=>{s+=t.length+1,s>=r&&a>0&&(o.push(l),l={type:i,provider:e,prefix:n,icons:[]},s=t.length),l.icons.push(t)})),o.push(l),o},send:(e,n,t)=>{if(!Ze)return void t("abort",424);let o=function(e){if("string"===typeof e){const n=K(e);if(n)return n.path}return"/"}(n.provider);switch(n.type){case"icons":{const e=n.prefix,t=n.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:t}).toString();break}case"custom":{const e=n.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void t("abort",400)}let r=503;Ze(e+o).then((e=>{const n=e.status;if(200===n)return r=501,e.json();setTimeout((()=>{t(function(e){return 404===e}(n)?"abort":"next",n)}))})).then((e=>{"object"===typeof e&&null!==e?setTimeout((()=>{t("success",e)})):setTimeout((()=>{404===e?t("abort",e):t("next",r)}))})).catch((()=>{t("next",r)}))}};function Oe(e,n){switch(e){case"local":case"session":ae[e]=n;break;case"all":for(const e in ae)ae[e]=n}}const Se="data-style";let _e="";function ze(e){_e=e}function Re(e,n){let t=Array.from(e.childNodes).find((e=>e.hasAttribute&&e.hasAttribute(Se)));t||(t=document.createElement("style"),t.setAttribute(Se,Se),e.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+_e}function Ne(){let e;R("",Pe),M(!0);try{e=window}catch(cn){}if(e){if(pe(),void 0!==e.IconifyPreload){const n=e.IconifyPreload,t="Invalid IconifyPreload syntax.";"object"===typeof n&&null!==n&&(n instanceof Array?n:[n]).forEach((e=>{try{("object"!==typeof e||null===e||e instanceof Array||"object"!==typeof e.icons||"string"!==typeof e.prefix||!I(e))&&console.error(t)}catch(n){console.error(t)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"===typeof t&&null!==t)for(const e in t){const o="IconifyProviders["+e+"] is invalid.";try{const n=t[e];if("object"!==typeof n||!n||void 0===n.resources)continue;J(e,n)||console.error(o)}catch(n){console.error(o)}}}}return{enableCache:e=>Oe(e,!0),disableCache:e=>Oe(e,!1),iconExists:P,getIcon:O,listIcons:A,addIcon:E,addCollection:I,calculateSize:Ae,buildIcon:Me,loadIcons:be,loadIcon:ye,addAPIProvider:J,appendCustomStyle:ze,_api:{getAPIConfig:K,setAPIModule:R,sendAPIQuery:X,setFetch:Ee,getFetch:Ie,listAPIProviders:$}}}function Le(e,n){let t=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in n)t+=" "+o+'="'+n[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}const qe={"background-color":"currentColor"},Fe={"background-color":"transparent"},He={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ue={"-webkit-mask":qe,mask:qe,background:Fe};for(const dn in Ue){const e=Ue[dn];for(const n in He)e[dn+"-"+n]=He[n]}function Be(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}let De;function Je(e){return void 0===De&&function(){try{De=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(cn){De=null}}(),De?De.createHTML(e):e}function Ke(e,n){const t=n.icon.data,o=n.customisations,r=Me(t,o);o.preserveAspectRatio&&(r.attributes.preserveAspectRatio=o.preserveAspectRatio);const i=n.renderedMode;let s;if("svg"===i)s=function(e){const n=document.createElement("span"),t=e.attributes;let o="";t.width||(o="width: inherit;"),t.height||(o+="height: inherit;"),o&&(t.style=o);const r=Le(e.body,t);return n.innerHTML=Je(r),n.firstChild}(r);else s=function(e,n,t){const o=document.createElement("span");let r=e.body;-1!==r.indexOf("<a")&&(r+="\x3c!-- "+Date.now()+" --\x3e");const i=e.attributes,l='url("'+(c=Le(r,{...i,width:n.width+"",height:n.height+""}),"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(c)+'")'),s=o.style,a={"--svg":l,width:Be(i.width),height:Be(i.height),...t?qe:Fe};var c;for(const d in a)s.setProperty(d,a[d]);return o}(r,{...l,...t},"mask"===i);const a=Array.from(e.childNodes).find((e=>{const n=e.tagName&&e.tagName.toUpperCase();return"SPAN"===n||"SVG"===n}));a?"SPAN"===s.tagName&&a.tagName===s.tagName?a.setAttribute("style",s.getAttribute("style")):e.replaceChild(s,a):e.appendChild(s)}function $e(e,n,t){return{rendered:!1,inline:n,icon:e,lastRender:t&&(t.rendered?t:t.lastRender)}}const Qe=function(){let e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"iconify-icon";try{e=window.customElements,n=window.HTMLElement}catch(cn){return}if(!e||!n)return;const r=e.get(t);if(r)return r;const i=["icon","mode","inline","width","height","rotate","flip"],l=class extends n{constructor(){super(),(0,o.Z)(this,"_shadowRoot",void 0),(0,o.Z)(this,"_state",void 0),(0,o.Z)(this,"_checkQueued",!1);const e=this._shadowRoot=this.attachShadow({mode:"open"}),n=ke(this);Re(e,n),this._state=$e({value:""},n),this._queueCheck()}static get observedAttributes(){return i.slice(0)}attributeChangedCallback(e){if("inline"===e){const e=ke(this),n=this._state;e!==n.inline&&(n.inline=e,Re(this._shadowRoot,e))}else this._queueCheck()}get icon(){const e=this.getAttribute("icon");if(e&&"{"===e.slice(0,1))try{return JSON.parse(e)}catch(cn){}return e}set icon(e){"object"===typeof e&&(e=JSON.stringify(e)),this.setAttribute("icon",e)}get inline(){return ke(this)}set inline(e){e?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const e=this._state;if(e.rendered){const n=this._shadowRoot;if("svg"===e.renderedMode)try{return void n.lastChild.setCurrentTime(0)}catch(cn){}Ke(n,e)}}get status(){const e=this._state;return e.rendered?"rendered":null===e.icon.data?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout((()=>{this._check()})))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const e=this._state,n=this.getAttribute("icon");if(n!==e.icon.value)return void this._iconChanged(n);if(!e.rendered)return;const t=this.getAttribute("mode"),o=f(this);(e.attrMode!==t||function(e,n){for(const t in u)if(e[t]!==n[t])return!0;return!1}(e.customisations,o))&&this._renderIcon(e.icon,o,t)}_iconChanged(e){const n=xe(e,((e,n,t)=>{const o=this._state;if(o.rendered||this.getAttribute("icon")!==e)return;const r={value:e,name:n,data:t};r.data?this._gotIconData(r):o.icon=r}));n.data?this._gotIconData(n):this._state=$e(n,this._state.inline,this._state)}_gotIconData(e){this._checkQueued=!1,this._renderIcon(e,f(this),this.getAttribute("mode"))}_renderIcon(e,n,t){const o=function(e,n){switch(n){case"svg":case"bg":case"mask":return n}return"style"===n||!we&&-1!==e.indexOf("<a")?-1===e.indexOf("currentColor")?"bg":"mask":"svg"}(e.data.body,t),r=this._state.inline;Ke(this._shadowRoot,this._state={rendered:!0,icon:e,inline:r,customisations:n,attrMode:t,renderedMode:o})}};i.forEach((e=>{e in l.prototype||Object.defineProperty(l.prototype,e,{get:function(){return this.getAttribute(e)},set:function(n){null!==n?this.setAttribute(e,n):this.removeAttribute(e)}})}));const s=Ne();for(const o in s)l[o]=l.prototype[o]=s[o];return e.define(t,l),l}()||Ne(),{enableCache:We,disableCache:Xe,iconExists:Ve,getIcon:Ge,listIcons:Ye,addIcon:en,addCollection:nn,calculateSize:tn,buildIcon:on,loadIcons:rn,loadIcon:ln,addAPIProvider:sn,_api:an}=Qe}}]);