@micro-lc/preview 0.5.0-rc6 → 0.5.0-rc8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +9 -4
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/website/assets/{index-d846d55b.js → index-11acce20.js} +10 -10
- package/website/development/assets/{index-62118151.js → index-49595118.js} +43 -3
- package/website/development/index.html +1 -1
- package/website/development/manifest.json +1 -1
- package/website/development/service-worker.js +20 -10
- package/website/index.html +1 -1
- package/website/manifest.json +1 -1
- package/website/service-worker.js +2 -2
- package/dist/service-worker.d.ts +0 -16
- package/dist/service-worker.js +0 -146
- package/dist/src/lib/handlebars.d.ts +0 -2
- package/dist/src/lib/handlebars.js +0 -130
- package/dist/src/lib/index.d.ts +0 -110
- package/dist/src/lib/index.js +0 -38
- package/website/assets/index-d6db66eb.js +0 -13
- package/website/development/assets/index-3ca91186.js +0 -6668
package/dist/src/lib/index.d.ts
DELETED
@@ -1,110 +0,0 @@
|
|
1
|
-
import type { Manifest } from '@micro-lc/back-kit-engine/schemas';
|
2
|
-
import type { Component, PluginConfiguration } from '@micro-lc/interfaces/schemas/v2';
|
3
|
-
import type { SourceMapItems } from '../../service-worker';
|
4
|
-
interface TagInfo {
|
5
|
-
definitions?: Record<string, unknown>;
|
6
|
-
description?: string;
|
7
|
-
docLink?: string;
|
8
|
-
label?: string;
|
9
|
-
properties?: Manifest['properties'];
|
10
|
-
type?: Manifest['type'];
|
11
|
-
}
|
12
|
-
type OverlayMode = 0 | 'interact' | 'select';
|
13
|
-
interface InfoEntry {
|
14
|
-
info: TagInfo;
|
15
|
-
tag: string;
|
16
|
-
}
|
17
|
-
interface ElementContent {
|
18
|
-
ids: string[];
|
19
|
-
selectors: string[];
|
20
|
-
}
|
21
|
-
interface StyledElementContent extends ElementContent {
|
22
|
-
style: Partial<CSSStyleDeclaration>;
|
23
|
-
}
|
24
|
-
interface OptionMessage {
|
25
|
-
content: {
|
26
|
-
disableOverlay?: boolean;
|
27
|
-
redirectTo?: string;
|
28
|
-
run?: boolean;
|
29
|
-
timeout?: number;
|
30
|
-
};
|
31
|
-
type: 'options';
|
32
|
-
}
|
33
|
-
interface RequestResource {
|
34
|
-
content: Record<string, unknown>;
|
35
|
-
type: 'request-resource';
|
36
|
-
}
|
37
|
-
type RegisteredElementMessages = {
|
38
|
-
content: ElementContent | undefined;
|
39
|
-
type: 'click-element';
|
40
|
-
} | {
|
41
|
-
content: StyledElementContent | undefined;
|
42
|
-
type: 'focus-element';
|
43
|
-
};
|
44
|
-
interface NewConfiguration {
|
45
|
-
configuration: PluginConfiguration;
|
46
|
-
contexts: Map<string, Component[]>;
|
47
|
-
tags: string[];
|
48
|
-
}
|
49
|
-
interface NewConfigurationMessage {
|
50
|
-
content: NewConfiguration;
|
51
|
-
type: 'new-configuration';
|
52
|
-
}
|
53
|
-
interface UpdateConfiguration {
|
54
|
-
configuration: PluginConfiguration;
|
55
|
-
context: Component;
|
56
|
-
}
|
57
|
-
interface UpdateConfigurationMessage {
|
58
|
-
content: UpdateConfiguration;
|
59
|
-
type: 'update';
|
60
|
-
}
|
61
|
-
interface UpdatedMessage {
|
62
|
-
content: Record<string, never>;
|
63
|
-
type: 'updated';
|
64
|
-
}
|
65
|
-
type RegisteredConfigMessages = NewConfigurationMessage | UpdateConfigurationMessage;
|
66
|
-
type ReducedMouseEvent = Pick<MouseEvent, 'bubbles' | 'cancelable' | 'clientX' | 'clientY'>;
|
67
|
-
interface SourceMapMessage {
|
68
|
-
content: SourceMapItems;
|
69
|
-
type: 'set-source-map';
|
70
|
-
}
|
71
|
-
type RegisteredMessages = {
|
72
|
-
content: ReducedMouseEvent;
|
73
|
-
type: 'mousedown' | 'mousemove';
|
74
|
-
} | {
|
75
|
-
content: NotifyProps;
|
76
|
-
type: 'notification';
|
77
|
-
} | {
|
78
|
-
content: {
|
79
|
-
mode: OverlayMode;
|
80
|
-
};
|
81
|
-
type: 'ctrl-space';
|
82
|
-
} | {
|
83
|
-
content: InfoEntry[];
|
84
|
-
type: 'tag-info';
|
85
|
-
} | RegisteredConfigMessages | UpdatedMessage | RegisteredElementMessages | OptionMessage | RequestResource | SourceMapMessage;
|
86
|
-
interface NotifyProps extends Record<string, unknown> {
|
87
|
-
data?: Record<string, string>;
|
88
|
-
description: string;
|
89
|
-
message: string;
|
90
|
-
status: 'info' | 'error' | 'default' | 'success' | 'processing' | 'warning' | undefined;
|
91
|
-
}
|
92
|
-
interface Reset {
|
93
|
-
configuration: PluginConfiguration;
|
94
|
-
contexts: Map<string, Component[]>;
|
95
|
-
tags: string[];
|
96
|
-
type: 'reset';
|
97
|
-
}
|
98
|
-
interface SingleUpdate {
|
99
|
-
configuration: PluginConfiguration;
|
100
|
-
context: Component;
|
101
|
-
type: 'update';
|
102
|
-
}
|
103
|
-
type Update = Reset | SingleUpdate;
|
104
|
-
declare const MIA_PREVIEW_ID = "__mia_preview_id";
|
105
|
-
declare const OVERLAY_Z_INDEX = 1000000;
|
106
|
-
declare const DEFAULT_MODE = "select";
|
107
|
-
declare function isRegisteredMessage(input: unknown): input is RegisteredMessages;
|
108
|
-
export type { NewConfiguration, UpdateConfiguration, OverlayMode, TagInfo, InfoEntry, ElementContent, StyledElementContent, NewConfigurationMessage, UpdateConfigurationMessage, RegisteredConfigMessages, RegisteredMessages, OptionMessage, NotifyProps, Reset, Update, RequestResource, SourceMapItems, };
|
109
|
-
export { MIA_PREVIEW_ID, OVERLAY_Z_INDEX, DEFAULT_MODE, isRegisteredMessage, };
|
110
|
-
export * from './handlebars';
|
package/dist/src/lib/index.js
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
var DebugMessage;
|
2
|
-
(function (DebugMessage) {
|
3
|
-
DebugMessage[DebugMessage["Default"] = 0] = "Default";
|
4
|
-
DebugMessage[DebugMessage["Skip"] = 1] = "Skip";
|
5
|
-
})(DebugMessage || (DebugMessage = {}));
|
6
|
-
const MIA_PREVIEW_ID = '__mia_preview_id';
|
7
|
-
const OVERLAY_Z_INDEX = 1_000_000;
|
8
|
-
const DEFAULT_MODE = 'select';
|
9
|
-
const keys = {
|
10
|
-
'click-element': DebugMessage.Default,
|
11
|
-
'ctrl-space': DebugMessage.Default,
|
12
|
-
'focus-element': DebugMessage.Default,
|
13
|
-
mousedown: DebugMessage.Default,
|
14
|
-
mousemove: DebugMessage.Skip,
|
15
|
-
'new-configuration': DebugMessage.Default,
|
16
|
-
notification: DebugMessage.Default,
|
17
|
-
options: DebugMessage.Default,
|
18
|
-
'request-resource': DebugMessage.Default,
|
19
|
-
'set-source-map': DebugMessage.Default,
|
20
|
-
'tag-info': DebugMessage.Default,
|
21
|
-
update: DebugMessage.Default,
|
22
|
-
updated: DebugMessage.Default,
|
23
|
-
};
|
24
|
-
const isValidKey = (type) => Object.keys(keys).includes(type);
|
25
|
-
function isRegisteredMessage(input) {
|
26
|
-
if (input === null) {
|
27
|
-
return false;
|
28
|
-
}
|
29
|
-
if (typeof input !== 'object') {
|
30
|
-
return false;
|
31
|
-
}
|
32
|
-
if (!('type' in input) || typeof input.type !== 'string' || !isValidKey(input.type)) {
|
33
|
-
return false;
|
34
|
-
}
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
export { MIA_PREVIEW_ID, OVERLAY_Z_INDEX, DEFAULT_MODE, isRegisteredMessage, };
|
38
|
-
export * from './handlebars';
|
@@ -1,13 +0,0 @@
|
|
1
|
-
var rs=Object.defineProperty;var is=(t,e,n)=>e in t?rs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var re=(t,e,n)=>(is(t,typeof e!="symbol"?e+"":e,n),n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){const t=typeof window<"u",e=typeof document<"u",n=()=>{},r=e?document.querySelector("script[type=esms-options]"):void 0,s=r?JSON.parse(r.innerHTML):{};Object.assign(s,self.esmsInitOptions||{});let o=e?!!s.shimMode:!0;const c=F(o&&s.onimport),f=F(o&&s.resolve);let h=s.fetch?F(s.fetch):fetch;const d=s.meta?F(o&&s.meta):n,_=s.mapOverrides;let w=s.nonce;if(!w&&e){const u=document.querySelector("script[nonce]");u&&(w=u.nonce||u.getAttribute("nonce"))}const S=F(s.onerror||n),E=s.onpolyfill?F(s.onpolyfill):()=>{console.log("%c^^ Module TypeError above is polyfilled and can be ignored ^^","font-weight:900;color:#391")},{revokeBlobURLs:P,noLoadEventRetriggers:T,enforceIntegrity:V}=s;function F(u){return typeof u=="string"?self[u]:u}const j=Array.isArray(s.polyfillEnable)?s.polyfillEnable:[],H=j.includes("css-modules"),q=j.includes("json-modules"),ft=!navigator.userAgentData&&!!navigator.userAgent.match(/Edge\/\d+\.\d+/),ae=e?document.baseURI:`${location.protocol}//${location.host}${location.pathname.includes("/")?location.pathname.slice(0,location.pathname.lastIndexOf("/")+1):location.pathname}`,X=(u,p="text/javascript")=>URL.createObjectURL(new Blob([u],{type:p}));let{skip:ye}=s;if(Array.isArray(ye)){const u=ye.map(p=>new URL(p,ae).href);ye=p=>u.some(b=>b[b.length-1]==="/"&&p.startsWith(b)||p===b)}else if(typeof ye=="string"){const u=new RegExp(ye);ye=p=>u.test(p)}const bi=u=>setTimeout(()=>{throw u}),Ot=u=>{(self.reportError||t&&window.safari&&console.error||bi)(u),S(u)};function Ve(u){return u?` imported from ${u}`:""}let ht=!1;function yi(){ht=!0}if(!o)if(document.querySelectorAll("script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]").length)o=!0;else{let u=!1;for(const p of document.querySelectorAll("script[type=module],script[type=importmap]"))if(!u)p.type==="module"&&!p.ep&&(u=!0);else if(p.type==="importmap"&&u){ht=!0;break}}const _i=/\\/g;function Tt(u){if(u.indexOf(":")===-1)return!1;try{return new URL(u),!0}catch{return!1}}function $n(u,p){return $e(u,p)||(Tt(u)?u:$e("./"+u,p))}function $e(u,p){const b=p.indexOf("#"),A=p.indexOf("?");if(b+A>-2&&(p=p.slice(0,b===-1?A:A===-1||A>b?b:A)),u.indexOf("\\")!==-1&&(u=u.replace(_i,"/")),u[0]==="/"&&u[1]==="/")return p.slice(0,p.indexOf(":")+1)+u;if(u[0]==="."&&(u[1]==="/"||u[1]==="."&&(u[2]==="/"||u.length===2&&(u+="/"))||u.length===1&&(u+="/"))||u[0]==="/"){const k=p.slice(0,p.indexOf(":")+1);let $;if(p[k.length+1]==="/"?k!=="file:"?($=p.slice(k.length+2),$=$.slice($.indexOf("/")+1)):$=p.slice(8):$=p.slice(k.length+(p[k.length]==="/")),u[0]==="/")return p.slice(0,p.length-$.length-1)+u;const x=$.slice(0,$.lastIndexOf("/")+1)+u,O=[];let L=-1;for(let I=0;I<x.length;I++){if(L!==-1){x[I]==="/"&&(O.push(x.slice(L,I+1)),L=-1);continue}else if(x[I]==="."){if(x[I+1]==="."&&(x[I+2]==="/"||I+2===x.length)){O.pop(),I+=2;continue}else if(x[I+1]==="/"||I+1===x.length){I+=1;continue}}for(;x[I]==="/";)I++;L=I}return L!==-1&&O.push(x.slice(L)),p.slice(0,p.length-$.length)+O.join("")}}function An(u,p,b){const A={imports:Object.assign({},b.imports),scopes:Object.assign({},b.scopes)};if(u.imports&&xn(u.imports,A.imports,p,b),u.scopes)for(let k in u.scopes){const $=$n(k,p);xn(u.scopes[k],A.scopes[$]||(A.scopes[$]={}),p,b)}return A}function Ct(u,p){if(p[u])return u;let b=u.length;do{const A=u.slice(0,b+1);if(A in p)return A}while((b=u.lastIndexOf("/",b-1))!==-1)}function Sn(u,p){const b=Ct(u,p);if(b){const A=p[b];return A===null?void 0:A+u.slice(b.length)}}function Lt(u,p,b){let A=b&&Ct(b,u.scopes);for(;A;){const k=Sn(p,u.scopes[A]);if(k)return k;A=Ct(A.slice(0,A.lastIndexOf("/")),u.scopes)}return Sn(p,u.imports)||p.indexOf(":")!==-1&&p}function xn(u,p,b,A){for(let k in u){const $=$e(k,b)||k;if((!o||!_)&&p[$]&&p[$]!==u[$])throw Error(`Rejected map override "${$}" from ${p[$]} to ${u[$]}.`);let x=u[k];if(typeof x!="string")continue;const O=Lt(A,$e(x,b)||x,b);if(O){p[$]=O;continue}console.warn(`Mapping "${k}" -> "${u[k]}" does not resolve`)}}let pe=!e&&(0,eval)("u=>import(u)"),qe;const gi=e&&new Promise(u=>{const p=Object.assign(document.createElement("script"),{src:X("self._d=u=>import(u)"),ep:!0});p.setAttribute("nonce",w),p.addEventListener("load",()=>{if(!(qe=!!(pe=self._d))){let b;window.addEventListener("error",A=>b=A),pe=(A,k)=>new Promise(($,x)=>{const O=Object.assign(document.createElement("script"),{type:"module",src:X(`import*as m from'${A}';self._esmsi=m`)});b=void 0,O.ep=!0,w&&O.setAttribute("nonce",w),O.addEventListener("error",L),O.addEventListener("load",L);function L(I){document.head.removeChild(O),self._esmsi?($(self._esmsi,ae),self._esmsi=void 0):(x(!(I instanceof Event)&&I||b&&b.error||new Error(`Error loading ${k&&k.errUrl||A} (${O.src}).`)),b=void 0)}document.head.appendChild(O)})}document.head.removeChild(p),delete self._d,u()}),document.head.appendChild(p)});let dt=!1,pt=!1;const Pt=e&&HTMLScriptElement.supports;let je=Pt&&Pt.name==="supports"&&Pt("importmap"),vt=qe;const En="import.meta",In='import"x"assert{type:"css"}',wi='import"x"assert{type:"json"}';let ki=Promise.resolve(gi).then(()=>{if(qe)return e?new Promise(u=>{const p=document.createElement("iframe");p.style.display="none",p.setAttribute("nonce",w);function b({data:O}){Array.isArray(O)&&O[0]==="esms"&&(je=O[1],vt=O[2],pt=O[3],dt=O[4],u(),document.head.removeChild(p),window.removeEventListener("message",b,!1))}window.addEventListener("message",b,!1);const A=`<script nonce=${w||""}>b=(s,type='text/javascript')=>URL.createObjectURL(new Blob([s],{type}));document.head.appendChild(Object.assign(document.createElement('script'),{type:'importmap',nonce:"${w}",innerText:\`{"imports":{"x":"\${b('')}"}}\`}));Promise.all([${je?"true,true":`'x',b('${En}')`}, ${H?`b('${In}'.replace('x',b('','text/css')))`:"false"}, ${q?`b('${wi}'.replace('x',b('{}','text/json')))`:"false"}].map(x =>typeof x==='string'?import(x).then(x =>!!x,()=>false):x)).then(a=>parent.postMessage(['esms'].concat(a),'*'))<\/script>`;let k=!1,$=!1;function x(){if(!k){$=!0;return}const O=p.contentDocument;if(O&&O.head.childNodes.length===0){const L=O.createElement("script");w&&L.setAttribute("nonce",w),L.innerHTML=A.slice(15+(w?w.length:0),-9),O.head.appendChild(L)}}p.onload=x,document.head.appendChild(p),k=!0,"srcdoc"in p?p.srcdoc=A:p.contentDocument.write(A),$&&x()}):Promise.all([je||pe(X(En)).then(()=>vt=!0,n),H&&pe(X(In.replace("x",X("","text/css")))).then(()=>pt=!0,n),q&&pe(X(jsonModulescheck.replace("x",X("{}","text/json")))).then(()=>dt=!0,n)])}),B,mt,Mt,Ge=2<<19;const On=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(u,p){const b=u.length;let A=0;for(;A<b;)p[A]=u.charCodeAt(A++)}:function(u,p){const b=u.length;let A=0;for(;A<b;){const k=u.charCodeAt(A);p[A++]=(255&k)<<8|k>>>8}},$i="xportmportlassetaromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";let U,Tn,R;function Ai(u,p="@"){U=u,Tn=p;const b=2*U.length+(2<<18);if(b>Ge||!B){for(;b>Ge;)Ge*=2;mt=new ArrayBuffer(Ge),On($i,new Uint16Array(mt,16,105)),B=function(x,O,L){var I=new x.Int8Array(L),g=new x.Int16Array(L),a=new x.Int32Array(L),ne=new x.Uint8Array(L),ve=new x.Uint16Array(L),te=1024;function Y(){var i=0,l=0,v=0,y=0,m=0,C=0,ge=0;ge=te,te=te+10240|0,I[795]=1,g[395]=0,g[396]=0,a[67]=a[2],I[796]=0,a[66]=0,I[794]=0,a[68]=ge+2048,a[69]=ge,I[797]=0,i=(a[3]|0)+-2|0,a[70]=i,l=i+(a[64]<<1)|0,a[71]=l;e:for(;;){if(v=i+2|0,a[70]=v,i>>>0>=l>>>0){m=18;break}n:do switch(g[v>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(g[396]|0)&&et(v)|0&&!(K(i+4|0,16,10)|0)&&(Se(),(I[795]|0)==0)){m=9;break e}else m=17;break}case 105:{et(v)|0&&!(K(i+4|0,26,10)|0)&&Xe(),m=17;break}case 59:{m=17;break}case 47:switch(g[i+4>>1]|0){case 47:{zt();break n}case 42:{Gt(1);break n}default:{m=16;break e}}default:{m=16;break e}}while(0);(m|0)==17&&(m=0,a[67]=a[70]),i=a[70]|0,l=a[71]|0}(m|0)==9?(i=a[70]|0,a[67]=i,m=19):(m|0)==16?(I[795]=0,a[70]=i,m=19):(m|0)==18&&(I[794]|0?i=0:(i=v,m=19));do if((m|0)==19){e:for(;;){if(l=i+2|0,a[70]=l,y=l,i>>>0>=(a[71]|0)>>>0){m=82;break}n:do switch(g[l>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(g[396]|0)&&et(l)|0&&!(K(i+4|0,16,10)|0)&&Se(),m=81;break}case 105:{et(l)|0&&!(K(i+4|0,26,10)|0)&&Xe(),m=81;break}case 99:{et(l)|0&&!(K(i+4|0,36,8)|0)&&tt(g[i+12>>1]|0)|0&&(I[797]=1),m=81;break}case 40:{y=a[68]|0,l=g[396]|0,m=l&65535,a[y+(m<<3)>>2]=1,v=a[67]|0,g[396]=l+1<<16>>16,a[y+(m<<3)+4>>2]=v,m=81;break}case 41:{if(l=g[396]|0,!(l<<16>>16)){m=36;break e}l=l+-1<<16>>16,g[396]=l,v=g[395]|0,v<<16>>16&&(C=a[(a[69]|0)+((v&65535)+-1<<2)>>2]|0,(a[C+20>>2]|0)==(a[(a[68]|0)+((l&65535)<<3)+4>>2]|0))&&(l=C+4|0,a[l>>2]|0||(a[l>>2]=y),a[C+12>>2]=i+4,g[395]=v+-1<<16>>16),m=81;break}case 123:{m=a[67]|0,y=a[61]|0,i=m;do if((g[m>>1]|0)==41&(y|0)!=0&&(a[y+4>>2]|0)==(m|0))if(l=a[62]|0,a[61]=l,l){a[l+28>>2]=0;break}else{a[57]=0;break}while(0);y=a[68]|0,v=g[396]|0,m=v&65535,a[y+(m<<3)>>2]=I[797]|0?6:2,g[396]=v+1<<16>>16,a[y+(m<<3)+4>>2]=i,I[797]=0,m=81;break}case 125:{if(i=g[396]|0,!(i<<16>>16)){m=49;break e}y=a[68]|0,m=i+-1<<16>>16,g[396]=m,(a[y+((m&65535)<<3)>>2]|0)==4&&Ne(),m=81;break}case 39:{Z(39),m=81;break}case 34:{Z(34),m=81;break}case 47:switch(g[i+4>>1]|0){case 47:{zt();break n}case 42:{Gt(1);break n}default:{i=a[67]|0,y=g[i>>1]|0;t:do if(Ri(y)|0)switch(y<<16>>16){case 46:if(((g[i+-2>>1]|0)+-48&65535)<10){m=66;break t}else{m=69;break t}case 43:if((g[i+-2>>1]|0)==43){m=66;break t}else{m=69;break t}case 45:if((g[i+-2>>1]|0)==45){m=66;break t}else{m=69;break t}default:{m=69;break t}}else{switch(y<<16>>16){case 41:if(Wi(a[(a[68]|0)+(ve[396]<<3)+4>>2]|0)|0){m=69;break t}else{m=66;break t}case 125:break;default:{m=66;break t}}l=a[68]|0,v=ve[396]|0,!(ji(a[l+(v<<3)+4>>2]|0)|0)&&(a[l+(v<<3)>>2]|0)!=6?m=66:m=69}while(0);t:do if((m|0)==66)if(m=0,xe(i)|0)m=69;else{switch(y<<16>>16){case 0:{m=69;break t}case 47:{if(I[796]|0){m=69;break t}break}default:}v=a[3]|0,l=y;do{if(i>>>0<=v>>>0)break;i=i+-2|0,a[67]=i,l=g[i>>1]|0}while(!(Yt(l)|0));if(gt(l)|0){do{if(i>>>0<=v>>>0)break;i=i+-2|0,a[67]=i}while(gt(g[i>>1]|0)|0);if(Fi(i)|0){Zn(),I[796]=0,m=81;break n}else i=1}else i=1}while(0);(m|0)==69&&(Zn(),i=0),I[796]=i,m=81;break n}}case 96:{y=a[68]|0,v=g[396]|0,m=v&65535,a[y+(m<<3)+4>>2]=a[67],g[396]=v+1<<16>>16,a[y+(m<<3)>>2]=3,Ne(),m=81;break}default:m=81}while(0);(m|0)==81&&(m=0,a[67]=a[70]),i=a[70]|0}if((m|0)==36){ee(),i=0;break}else if((m|0)==49){ee(),i=0;break}else if((m|0)==82){i=I[794]|0?0:(g[395]|g[396])<<16>>16==0;break}}while(0);return te=ge,i|0}function Se(){var i=0,l=0,v=0,y=0,m=0,C=0,ge=0,Ie=0,Jt=0,Kt=0,Qt=0,Xt=0,W=0,D=0;Ie=a[70]|0,Jt=a[63]|0,D=Ie+12|0,a[70]=D,v=M(1)|0,i=a[70]|0,(i|0)==(D|0)&&!(_t(v)|0)||(W=3);e:do if((W|0)==3){n:do switch(v<<16>>16){case 123:{for(a[70]=i+2,i=M(1)|0,v=a[70]|0;;){if(nt(i)|0?(Z(i),i=(a[70]|0)+2|0,a[70]=i):(Ee(i)|0,i=a[70]|0),M(1)|0,i=Xn(v,i)|0,i<<16>>16==44&&(a[70]=(a[70]|0)+2,i=M(1)|0),l=v,v=a[70]|0,i<<16>>16==125){W=15;break}if((v|0)==(l|0)){W=12;break}if(v>>>0>(a[71]|0)>>>0){W=14;break}}if((W|0)==12){ee();break e}else if((W|0)==14){ee();break e}else if((W|0)==15){a[70]=v+2;break n}break}case 42:{a[70]=i+2,M(1)|0,D=a[70]|0,Xn(D,D)|0;break}default:{switch(I[795]=0,v<<16>>16){case 100:{switch(Ie=i+14|0,a[70]=Ie,(M(1)|0)<<16>>16){case 97:{l=a[70]|0,!(K(l+2|0,56,8)|0)&&(m=l+10|0,gt(g[m>>1]|0)|0)&&(a[70]=m,M(0)|0,W=22);break}case 102:{W=22;break}case 99:{l=a[70]|0,!(K(l+2|0,36,8)|0)&&(y=l+10|0,D=g[y>>1]|0,tt(D)|0|D<<16>>16==123)&&(a[70]=y,C=M(1)|0,C<<16>>16!=123)&&(Xt=C,W=31);break}default:}t:do if((W|0)==22&&(ge=a[70]|0,(K(ge+2|0,64,14)|0)==0)){if(v=ge+16|0,l=g[v>>1]|0,!(tt(l)|0))switch(l<<16>>16){case 40:case 42:break;default:break t}a[70]=v,l=M(1)|0,l<<16>>16==42&&(a[70]=(a[70]|0)+2,l=M(1)|0),l<<16>>16!=40&&(Xt=l,W=31)}while(0);if((W|0)==31&&(Kt=a[70]|0,Ee(Xt)|0,Qt=a[70]|0,Qt>>>0>Kt>>>0)){Fe(i,Ie,Kt,Qt),a[70]=(a[70]|0)+-2;break e}Fe(i,Ie,0,0),a[70]=i+12;break e}case 97:{a[70]=i+10,M(0)|0,i=a[70]|0,W=35;break}case 102:{W=35;break}case 99:{if(!(K(i+2|0,36,8)|0)&&(l=i+10|0,Yt(g[l>>1]|0)|0)){a[70]=l,D=M(1)|0,W=a[70]|0,Ee(D)|0,D=a[70]|0,Fe(W,D,W,D),a[70]=(a[70]|0)+-2;break e}i=i+4|0,a[70]=i;break}case 108:case 118:break;default:break e}if((W|0)==35){a[70]=i+16,i=M(1)|0,i<<16>>16==42&&(a[70]=(a[70]|0)+2,i=M(1)|0),W=a[70]|0,Ee(i)|0,D=a[70]|0,Fe(W,D,W,D),a[70]=(a[70]|0)+-2;break e}i=i+4|0,a[70]=i,I[795]=0;t:for(;;){switch(a[70]=i+2,D=M(1)|0,i=a[70]|0,(Ee(D)|0)<<16>>16){case 91:case 123:break t;default:}if(l=a[70]|0,(l|0)==(i|0))break e;if(Fe(i,l,i,l),(M(1)|0)<<16>>16!=44)break;i=a[70]|0}a[70]=(a[70]|0)+-2;break e}}while(0);if(D=(M(1)|0)<<16>>16==102,i=a[70]|0,D&&!(K(i+2|0,50,6)|0))for(a[70]=i+8,ce(Ie,M(1)|0),i=Jt|0?Jt+16|0:232;;){if(i=a[i>>2]|0,!i)break e;a[i+12>>2]=0,a[i+8>>2]=0,i=i+16|0}a[70]=i+-2}while(0)}function Xe(){var i=0,l=0,v=0,y=0,m=0,C=0;m=a[70]|0,i=m+12|0,a[70]=i;e:do switch((M(1)|0)<<16>>16){case 40:{if(l=a[68]|0,C=g[396]|0,v=C&65535,a[l+(v<<3)>>2]=5,i=a[70]|0,g[396]=C+1<<16>>16,a[l+(v<<3)+4>>2]=i,(g[a[67]>>1]|0)!=46){switch(a[70]=i+2,C=M(1)|0,qt(m,a[70]|0,0,i),l=a[61]|0,v=a[69]|0,m=g[395]|0,g[395]=m+1<<16>>16,a[v+((m&65535)<<2)>>2]=l,C<<16>>16){case 39:{Z(39);break}case 34:{Z(34);break}default:{a[70]=(a[70]|0)+-2;break e}}switch(i=(a[70]|0)+2|0,a[70]=i,(M(1)|0)<<16>>16){case 44:{a[70]=(a[70]|0)+2,M(1)|0,m=a[61]|0,a[m+4>>2]=i,C=a[70]|0,a[m+16>>2]=C,I[m+24>>0]=1,a[70]=C+-2;break e}case 41:{g[396]=(g[396]|0)+-1<<16>>16,C=a[61]|0,a[C+4>>2]=i,a[C+12>>2]=(a[70]|0)+2,I[C+24>>0]=1,g[395]=(g[395]|0)+-1<<16>>16;break e}default:{a[70]=(a[70]|0)+-2;break e}}}break}case 46:{if(a[70]=(a[70]|0)+2,(M(1)|0)<<16>>16==109&&(l=a[70]|0,(K(l+2|0,44,6)|0)==0)){if(i=a[67]|0,!(tr(i)|0)&&(g[i>>1]|0)==46)break e;qt(m,m,l+8|0,2)}break}case 42:case 39:case 34:{y=18;break}case 123:{if(i=a[70]|0,g[396]|0){a[70]=i+-2;break e}for(;!(i>>>0>=(a[71]|0)>>>0);){if(i=M(1)|0,nt(i)|0)Z(i);else if(i<<16>>16==125){y=33;break}i=(a[70]|0)+2|0,a[70]=i}if((y|0)==33&&(a[70]=(a[70]|0)+2),C=(M(1)|0)<<16>>16==102,i=a[70]|0,C&&K(i+2|0,50,6)|0){ee();break e}if(a[70]=i+8,i=M(1)|0,nt(i)|0){ce(m,i);break e}else{ee();break e}}default:(a[70]|0)==(i|0)?a[70]=m+10:y=18}while(0);do if((y|0)==18){if(g[396]|0){a[70]=(a[70]|0)+-2;break}for(i=a[71]|0,l=a[70]|0;;){if(l>>>0>=i>>>0){y=25;break}if(v=g[l>>1]|0,nt(v)|0){y=23;break}C=l+2|0,a[70]=C,l=C}if((y|0)==23){ce(m,v);break}else if((y|0)==25){ee();break}}while(0)}function ce(i,l){i=i|0,l=l|0;var v=0,y=0;switch(v=(a[70]|0)+2|0,l<<16>>16){case 39:{Z(39),y=5;break}case 34:{Z(34),y=5;break}default:ee()}do if((y|0)==5){if(qt(i,v,a[70]|0,1),a[70]=(a[70]|0)+2,l=M(0)|0,i=l<<16>>16==97,i?(v=a[70]|0,K(v+2|0,78,10)|0&&(y=11)):(v=a[70]|0,l<<16>>16==119&&(g[v+2>>1]|0)==105&&(g[v+4>>1]|0)==116&&(g[v+6>>1]|0)==104||(y=11)),(y|0)==11){a[70]=v+-2;break}if(a[70]=v+((i?6:4)<<1),(M(1)|0)<<16>>16!=123){a[70]=v;break}i=a[70]|0,l=i;e:for(;;){switch(a[70]=l+2,l=M(1)|0,l<<16>>16){case 39:{Z(39),a[70]=(a[70]|0)+2,l=M(1)|0;break}case 34:{Z(34),a[70]=(a[70]|0)+2,l=M(1)|0;break}default:l=Ee(l)|0}if(l<<16>>16!=58){y=20;break}switch(a[70]=(a[70]|0)+2,(M(1)|0)<<16>>16){case 39:{Z(39);break}case 34:{Z(34);break}default:{y=24;break e}}switch(a[70]=(a[70]|0)+2,(M(1)|0)<<16>>16){case 125:{y=29;break e}case 44:break;default:{y=28;break e}}if(a[70]=(a[70]|0)+2,(M(1)|0)<<16>>16==125){y=29;break}l=a[70]|0}if((y|0)==20){a[70]=v;break}else if((y|0)==24){a[70]=v;break}else if((y|0)==28){a[70]=v;break}else if((y|0)==29){y=a[61]|0,a[y+16>>2]=i,a[y+12>>2]=(a[70]|0)+2;break}}while(0)}function xe(i){i=i|0;e:do switch(g[i>>1]|0){case 100:switch(g[i+-2>>1]|0){case 105:{i=G(i+-4|0,88,2)|0;break e}case 108:{i=G(i+-4|0,92,3)|0;break e}default:{i=0;break e}}case 101:switch(g[i+-2>>1]|0){case 115:switch(g[i+-4>>1]|0){case 108:{i=Ze(i+-6|0,101)|0;break e}case 97:{i=Ze(i+-6|0,99)|0;break e}default:{i=0;break e}}case 116:{i=G(i+-4|0,98,4)|0;break e}case 117:{i=G(i+-4|0,106,6)|0;break e}default:{i=0;break e}}case 102:{if((g[i+-2>>1]|0)==111&&(g[i+-4>>1]|0)==101)switch(g[i+-6>>1]|0){case 99:{i=G(i+-8|0,118,6)|0;break e}case 112:{i=G(i+-8|0,130,2)|0;break e}default:{i=0;break e}}else i=0;break}case 107:{i=G(i+-2|0,134,4)|0;break}case 110:{i=i+-2|0,Ze(i,105)|0?i=1:i=G(i,142,5)|0;break}case 111:{i=Ze(i+-2|0,100)|0;break}case 114:{i=G(i+-2|0,152,7)|0;break}case 116:{i=G(i+-2|0,166,4)|0;break}case 119:switch(g[i+-2>>1]|0){case 101:{i=Ze(i+-4|0,110)|0;break e}case 111:{i=G(i+-4|0,174,3)|0;break e}default:{i=0;break e}}default:i=0}while(0);return i|0}function Ne(){var i=0,l=0,v=0,y=0;l=a[71]|0,v=a[70]|0;e:for(;;){if(i=v+2|0,v>>>0>=l>>>0){l=10;break}switch(g[i>>1]|0){case 96:{l=7;break e}case 36:{if((g[v+4>>1]|0)==123){l=6;break e}break}case 92:{i=v+4|0;break}default:}v=i}(l|0)==6?(i=v+4|0,a[70]=i,l=a[68]|0,y=g[396]|0,v=y&65535,a[l+(v<<3)>>2]=4,g[396]=y+1<<16>>16,a[l+(v<<3)+4>>2]=i):(l|0)==7?(a[70]=i,v=a[68]|0,y=(g[396]|0)+-1<<16>>16,g[396]=y,(a[v+((y&65535)<<3)>>2]|0)!=3&&ee()):(l|0)==10&&(a[70]=i,ee())}function M(i){i=i|0;var l=0,v=0,y=0;v=a[70]|0;e:do{l=g[v>>1]|0;n:do if(l<<16>>16!=47)if(i){if(tt(l)|0)break;break e}else{if(gt(l)|0)break;break e}else switch(g[v+2>>1]|0){case 47:{zt();break n}case 42:{Gt(i);break n}default:{l=47;break e}}while(0);y=a[70]|0,v=y+2|0,a[70]=v}while(y>>>0<(a[71]|0)>>>0);return l|0}function Z(i){i=i|0;var l=0,v=0,y=0,m=0;for(m=a[71]|0,l=a[70]|0;;){if(y=l+2|0,l>>>0>=m>>>0){l=9;break}if(v=g[y>>1]|0,v<<16>>16==i<<16>>16){l=10;break}if(v<<16>>16==92)v=l+4|0,(g[v>>1]|0)==13?(l=l+6|0,l=(g[l>>1]|0)==10?l:v):l=v;else if(nr(v)|0){l=9;break}else l=y}(l|0)==9?(a[70]=y,ee()):(l|0)==10&&(a[70]=y)}function Xn(i,l){i=i|0,l=l|0;var v=0,y=0,m=0,C=0;return v=a[70]|0,y=g[v>>1]|0,C=(i|0)==(l|0),m=C?0:i,C=C?0:l,y<<16>>16==97&&(a[70]=v+4,v=M(1)|0,i=a[70]|0,nt(v)|0?(Z(v),l=(a[70]|0)+2|0,a[70]=l):(Ee(v)|0,l=a[70]|0),y=M(1)|0,v=a[70]|0),(v|0)!=(i|0)&&Fe(i,l,m,C),y|0}function qt(i,l,v,y){i=i|0,l=l|0,v=v|0,y=y|0;var m=0,C=0;m=a[65]|0,a[65]=m+32,C=a[61]|0,a[(C|0?C+28|0:228)>>2]=m,a[62]=C,a[61]=m,a[m+8>>2]=i,(y|0)==2?i=v:i=(y|0)==1?v+2|0:0,a[m+12>>2]=i,a[m>>2]=l,a[m+4>>2]=v,a[m+16>>2]=0,a[m+20>>2]=y,I[m+24>>0]=(y|0)==1&1,a[m+28>>2]=0}function Mi(){var i=0,l=0,v=0;v=a[71]|0,l=a[70]|0;e:for(;;){if(i=l+2|0,l>>>0>=v>>>0){l=6;break}switch(g[i>>1]|0){case 13:case 10:{l=6;break e}case 93:{l=7;break e}case 92:{i=l+4|0;break}default:}l=i}return(l|0)==6?(a[70]=i,ee(),i=0):(l|0)==7&&(a[70]=i,i=93),i|0}function Zn(){var i=0,l=0,v=0;e:for(;;){if(i=a[70]|0,l=i+2|0,a[70]=l,i>>>0>=(a[71]|0)>>>0){v=7;break}switch(g[l>>1]|0){case 13:case 10:{v=7;break e}case 47:break e;case 91:{Mi()|0;break}case 92:{a[70]=i+4;break}default:}}(v|0)==7&&ee()}function ji(i){switch(i=i|0,g[i>>1]|0){case 62:{i=(g[i+-2>>1]|0)==61;break}case 41:case 59:{i=1;break}case 104:{i=G(i+-2|0,200,4)|0;break}case 121:{i=G(i+-2|0,208,6)|0;break}case 101:{i=G(i+-2|0,220,3)|0;break}default:i=0}return i|0}function Gt(i){i=i|0;var l=0,v=0,y=0,m=0,C=0;for(m=(a[70]|0)+2|0,a[70]=m,v=a[71]|0;l=m+2|0,!(m>>>0>=v>>>0||(y=g[l>>1]|0,!i&&nr(y)|0));){if(y<<16>>16==42&&(g[m+4>>1]|0)==47){C=8;break}m=l}(C|0)==8&&(a[70]=l,l=m+4|0),a[70]=l}function K(i,l,v){i=i|0,l=l|0,v=v|0;var y=0,m=0;e:do if(!v)i=0;else{for(;y=I[i>>0]|0,m=I[l>>0]|0,y<<24>>24==m<<24>>24;)if(v=v+-1|0,v)i=i+1|0,l=l+1|0;else{i=0;break e}i=(y&255)-(m&255)|0}while(0);return i|0}function _t(i){i=i|0;e:do switch(i<<16>>16){case 38:case 37:case 33:{i=1;break}default:if((i&-8)<<16>>16==40|(i+-58&65535)<6)i=1;else{switch(i<<16>>16){case 91:case 93:case 94:{i=1;break e}default:}i=(i+-123&65535)<4}}while(0);return i|0}function Ri(i){i=i|0;e:do switch(i<<16>>16){case 38:case 37:case 33:break;default:if(!((i+-58&65535)<6|(i+-40&65535)<7&i<<16>>16!=41)){switch(i<<16>>16){case 91:case 94:break e;default:}return i<<16>>16!=125&(i+-123&65535)<4|0}}while(0);return 1}function er(i){i=i|0;var l=0;l=g[i>>1]|0;e:do if((l+-9&65535)>=5){switch(l<<16>>16){case 160:case 32:{l=1;break e}default:}if(_t(l)|0)return l<<16>>16!=46|(tr(i)|0)|0;l=0}else l=1;while(0);return l|0}function Ni(i){i=i|0;var l=0,v=0,y=0,m=0;return v=te,te=te+16|0,y=v,a[y>>2]=0,a[64]=i,l=a[3]|0,m=l+(i<<1)|0,i=m+2|0,g[m>>1]=0,a[y>>2]=i,a[65]=i,a[57]=0,a[61]=0,a[59]=0,a[58]=0,a[63]=0,a[60]=0,te=v,l|0}function G(i,l,v){i=i|0,l=l|0,v=v|0;var y=0,m=0;return y=i+(0-v<<1)|0,m=y+2|0,i=a[3]|0,m>>>0>=i>>>0&&!(K(m,l,v<<1)|0)?(m|0)==(i|0)?i=1:i=er(y)|0:i=0,i|0}function Fe(i,l,v,y){i=i|0,l=l|0,v=v|0,y=y|0;var m=0,C=0;m=a[65]|0,a[65]=m+20,C=a[63]|0,a[(C|0?C+16|0:232)>>2]=m,a[63]=m,a[m>>2]=i,a[m+4>>2]=l,a[m+8>>2]=v,a[m+12>>2]=y,a[m+16>>2]=0}function Fi(i){switch(i=i|0,g[i>>1]|0){case 107:{i=G(i+-2|0,134,4)|0;break}case 101:{(g[i+-2>>1]|0)==117?i=G(i+-4|0,106,6)|0:i=0;break}default:i=0}return i|0}function Ze(i,l){i=i|0,l=l|0;var v=0;return v=a[3]|0,v>>>0<=i>>>0&&(g[i>>1]|0)==l<<16>>16?(v|0)==(i|0)?v=1:v=Yt(g[i+-2>>1]|0)|0:v=0,v|0}function Yt(i){i=i|0;e:do if((i+-9&65535)<5)i=1;else{switch(i<<16>>16){case 32:case 160:{i=1;break e}default:}i=i<<16>>16!=46&(_t(i)|0)}while(0);return i|0}function zt(){var i=0,l=0,v=0;i=a[71]|0,v=a[70]|0;e:for(;l=v+2|0,!(v>>>0>=i>>>0);)switch(g[l>>1]|0){case 13:case 10:break e;default:v=l}a[70]=l}function Ee(i){for(i=i|0;!(tt(i)|0||_t(i)|0);)if(i=(a[70]|0)+2|0,a[70]=i,i=g[i>>1]|0,!(i<<16>>16)){i=0;break}return i|0}function Hi(){var i=0;switch(i=a[(a[59]|0)+20>>2]|0,i|0){case 1:{i=-1;break}case 2:{i=-2;break}default:i=i-(a[3]|0)>>1}return i|0}function Wi(i){return i=i|0,!(G(i,180,5)|0)&&!(G(i,190,3)|0)?i=G(i,196,2)|0:i=1,i|0}function gt(i){switch(i=i|0,i<<16>>16){case 160:case 32:case 12:case 11:case 9:{i=1;break}default:i=0}return i|0}function tr(i){return i=i|0,(g[i>>1]|0)==46&&(g[i+-2>>1]|0)==46?i=(g[i+-4>>1]|0)==46:i=0,i|0}function et(i){return i=i|0,(a[3]|0)==(i|0)?i=1:i=er(i+-2|0)|0,i|0}function Ui(){var i=0;return i=a[(a[60]|0)+12>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Bi(){var i=0;return i=a[(a[59]|0)+12>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Di(){var i=0;return i=a[(a[60]|0)+8>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Vi(){var i=0;return i=a[(a[59]|0)+16>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function qi(){var i=0;return i=a[(a[59]|0)+4>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Gi(){var i=0;return i=a[59]|0,i=a[(i|0?i+28|0:228)>>2]|0,a[59]=i,(i|0)!=0|0}function Yi(){var i=0;return i=a[60]|0,i=a[(i|0?i+16|0:232)>>2]|0,a[60]=i,(i|0)!=0|0}function ee(){I[794]=1,a[66]=(a[70]|0)-(a[3]|0)>>1,a[70]=(a[71]|0)+2}function tt(i){return i=i|0,(i|128)<<16>>16==160|(i+-9&65535)<5|0}function nt(i){return i=i|0,i<<16>>16==39|i<<16>>16==34|0}function zi(){return(a[(a[59]|0)+8>>2]|0)-(a[3]|0)>>1|0}function Ji(){return(a[(a[60]|0)+4>>2]|0)-(a[3]|0)>>1|0}function nr(i){return i=i|0,i<<16>>16==13|i<<16>>16==10|0}function Ki(){return(a[a[59]>>2]|0)-(a[3]|0)>>1|0}function Qi(){return(a[a[60]>>2]|0)-(a[3]|0)>>1|0}function Xi(){return ne[(a[59]|0)+24>>0]|0|0}function Zi(i){i=i|0,a[3]=i}function es(){return(I[795]|0)!=0|0}function ts(){return a[66]|0}function ns(i){return i=i|0,te=i+992+15&-16,992}return{su:ns,ai:Vi,e:ts,ee:Ji,ele:Ui,els:Di,es:Qi,f:es,id:Hi,ie:qi,ip:Xi,is:Ki,p:Y,re:Yi,ri:Gi,sa:Ni,se:Bi,ses:Zi,ss:zi}}(typeof self<"u"?self:ss,{},mt),Mt=B.su(Ge-(2<<17))}const A=U.length+1;B.ses(Mt),B.sa(A-1),On(U,new Uint16Array(mt,Mt,A)),B.p()||(R=B.e(),_e());const k=[],$=[];for(;B.ri();){const x=B.is(),O=B.ie(),L=B.ai(),I=B.id(),g=B.ss(),a=B.se();let ne;B.ip()&&(ne=jt(I===-1?x:x+1,U.charCodeAt(I===-1?x-1:x))),k.push({n:ne,s:x,e:O,ss:g,se:a,d:I,a:L})}for(;B.re();){const x=B.es(),O=B.ee(),L=B.els(),I=B.ele(),g=U.charCodeAt(x),a=L>=0?U.charCodeAt(L):-1;$.push({s:x,e:O,ls:L,le:I,n:g===34||g===39?jt(x+1,g):U.slice(x,O),ln:L<0?void 0:a===34||a===39?jt(L+1,a):U.slice(L,I)})}return[k,$,!!B.f()]}function jt(u,p){R=u;let b="",A=R;for(;;){R>=U.length&&_e();const k=U.charCodeAt(R);if(k===p)break;k===92?(b+=U.slice(A,R),b+=Si(),A=R):(k===8232||k===8233||Cn(k)&&_e(),++R)}return b+=U.slice(A,R++),b}function Si(){let u=U.charCodeAt(++R);switch(++R,u){case 110:return`
|
2
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(Rt(2));case 117:return function(){const p=U.charCodeAt(R);let b;return p===123?(++R,b=Rt(U.indexOf("}",R)-R),++R,b>1114111&&_e()):b=Rt(4),b<=65535?String.fromCharCode(b):(b-=65536,String.fromCharCode(55296+(b>>10),56320+(1023&b)))}();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:U.charCodeAt(R)===10&&++R;case 10:return"";case 56:case 57:_e();default:if(u>=48&&u<=55){let p=U.substr(R-1,3).match(/^[0-7]+/)[0],b=parseInt(p,8);return b>255&&(p=p.slice(0,-1),b=parseInt(p,8)),R+=p.length-1,u=U.charCodeAt(R),p==="0"&&u!==56&&u!==57||_e(),String.fromCharCode(b)}return Cn(u)?"":String.fromCharCode(u)}}function Rt(u){const p=R;let b=0,A=0;for(let k=0;k<u;++k,++R){let $,x=U.charCodeAt(R);if(x!==95){if(x>=97)$=x-97+10;else if(x>=65)$=x-65+10;else{if(!(x>=48&&x<=57))break;$=x-48}if($>=16)break;A=x,b=16*b+$}else A!==95&&k!==0||_e(),A=x}return A!==95&&R-p===u||_e(),b}function Cn(u){return u===13||u===10}function _e(){throw Object.assign(Error(`Parse error ${Tn}:${U.slice(0,R).split(`
|
3
|
-
`).length}:${R-U.lastIndexOf(`
|
4
|
-
`,R-1)}`),{idx:R})}async function Ln(u,p){const b=$e(u,p);return{r:Lt(Ae,b||u,p)||Mn(u,p),b:!b&&!Tt(u)}}const Pn=f?async(u,p)=>{let b=f(u,p,Nt);return b&&b.then&&(b=await b),b?{r:b,b:!$e(u,p)&&!Tt(u)}:Ln(u,p)}:Ln;async function Ye(u,...p){let b=p[p.length-1];return typeof b!="string"&&(b=ae),await Je,c&&await c(u,typeof p[1]!="string"?p[1]:{},b),(Ke||o||!Re)&&(e&&Wt(!0),o||(Ke=!1)),await bt,Fn((await Pn(u,b)).r,{credentials:"same-origin"})}self.importShim=Ye;function Nt(u,p){return Lt(Ae,$e(u,p)||u,p)||Mn(u,p)}function Mn(u,p){throw Error(`Unable to resolve specifier '${u}'${Ve(p)}`)}const jn=(u,p=ae)=>{p=`${p}`;const b=f&&f(u,p,Nt);return b&&!b.then?b:Nt(u,p)};function xi(u,p=this.url){return jn(u,p)}Ye.resolve=jn,Ye.getImportMap=()=>JSON.parse(JSON.stringify(Ae)),Ye.addImportMap=u=>{if(!o)throw new Error("Unsupported in polyfill mode.");Ae=An(u,ae,Ae)};const ze=Ye._r={};async function Rn(u,p){u.b||p[u.u]||(p[u.u]=1,await u.L,await Promise.all(u.d.map(b=>Rn(b,p))),u.n||(u.n=u.d.some(b=>b.n)))}let Ae={imports:{},scopes:{}},Re;const Je=ki.then(()=>{if(Re=s.polyfillEnable!==!0&&qe&&vt&&je&&(!q||dt)&&(!H||pt)&&!ht,e){if(!je){const u=HTMLScriptElement.supports||(p=>p==="classic"||p==="module");HTMLScriptElement.supports=p=>p==="importmap"||u(p)}if(o||!Re)if(new MutationObserver(u=>{for(const p of u)if(p.type==="childList")for(const b of p.addedNodes)b.tagName==="SCRIPT"?(b.type===(o?"module-shim":"module")&&Kn(b,!0),b.type===(o?"importmap-shim":"importmap")&&Jn(b,!0)):b.tagName==="LINK"&&b.rel===(o?"modulepreload-shim":"modulepreload")&&Qn(b)}).observe(document,{childList:!0,subtree:!0}),Wt(),document.readyState==="complete")Dt();else{async function u(){await Je,Wt(),document.readyState==="complete"&&(Dt(),document.removeEventListener("readystatechange",u))}document.addEventListener("readystatechange",u)}}});let bt=Je,Nn=!0,Ke=!0;async function Fn(u,p,b,A,k){if(o||(Ke=!1),await Je,await bt,c&&await c(u,typeof p!="string"?p:{},""),!o&&Re)return A?null:(await k,pe(b?X(b):u,{errUrl:u||b}));const $=Vn(u,p,null,b),x={};if(await Rn($,x),yt=void 0,Wn($,x),await k,b&&!o&&!$.n)return A?void 0:(P&&Hn(Object.keys(x)),await pe(X(b),{errUrl:b}));Nn&&!o&&$.n&&A&&(E(),Nn=!1);const O=await pe(!o&&!$.n&&A?$.u:$.b,{errUrl:$.u});return $.s&&(await pe($.s)).u$_(O),P&&Hn(Object.keys(x)),O}function Hn(u){let p=0;const b=u.length,A=self.requestIdleCallback?self.requestIdleCallback:self.requestAnimationFrame;A(k);function k(){const $=p*100;if(!($>b)){for(const x of u.slice($,$+100)){const O=ze[x];O&&URL.revokeObjectURL(O.b)}p++,A(k)}}}function Ft(u){return`'${u.replace(/'/g,"\\'")}'`}let yt;function Wn(u,p){if(u.b||!p[u.u])return;p[u.u]=0;for(const O of u.d)Wn(O,p);const[b,A]=u.a,k=u.S;let $=ft&&yt?`import '${yt}';`:"";if(!b.length)$+=k;else{let g=function(a){for(;I[I.length-1]<a;){const ne=I.pop();$+=`${k.slice(O,ne)}, ${Ft(u.r)}`,O=ne}$+=k.slice(O,a),O=a},O=0,L=0,I=[];for(const{s:a,ss:ne,se:ve,d:te}of b)if(te===-1){let Y=u.d[L++],Se=Y.b,Xe=!Se;Xe&&((Se=Y.s)||(Se=Y.s=X(`export function u$_(m){${Y.a[1].map(({s:ce,e:xe},Ne)=>{const M=Y.S[ce]==='"'||Y.S[ce]==="'";return`e$_${Ne}=m${M?"[":"."}${Y.S.slice(ce,xe)}${M?"]":""}`}).join(",")}}${Y.a[1].length?`let ${Y.a[1].map((ce,xe)=>`e$_${xe}`).join(",")};`:""}export {${Y.a[1].map(({s:ce,e:xe},Ne)=>`e$_${Ne} as ${Y.S.slice(ce,xe)}`).join(",")}}
|
5
|
-
//# sourceURL=${Y.r}?cycle`))),g(a-1),$+=`/*${k.slice(a-1,ve)}*/${Ft(Se)}`,!Xe&&Y.s&&($+=`;import*as m$_${L} from'${Y.b}';import{u$_ as u$_${L}}from'${Y.s}';u$_${L}(m$_${L})`,Y.s=void 0),O=ve}else te===-2?(u.m={url:u.r,resolve:xi},d(u.m,u.u),g(a),$+=`importShim._r[${Ft(u.u)}].m`,O=ve):(g(ne+6),$+="Shim(",I.push(ve-1),O=a);u.s&&($+=`
|
6
|
-
;import{u$_}from'${u.s}';try{u$_({${A.filter(a=>a.ln).map(({s:a,e:ne,ln:ve})=>`${k.slice(a,ne)}:${ve}`).join(",")}})}catch(_){};
|
7
|
-
`),g(k.length)}let x=!1;$=$.replace(Ei,(O,L,I)=>(x=!L,O.replace(I,()=>new URL(I,u.r)))),x||($+=`
|
8
|
-
//# sourceURL=`+u.r),u.b=yt=X($),u.S=void 0}const Ei=/\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]*)\s*)*$/,Ii=/^(text|application)\/(x-)?javascript(;|$)/,Oi=/^(text|application)\/json(;|$)/,Ti=/^(text|application)\/css(;|$)/,Ci=/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g;let Ht=[],Un=0;function Li(){if(++Un>100)return new Promise(u=>Ht.push(u))}function Pi(){Un--,Ht.length&&Ht.shift()()}async function Bn(u,p,b){if(V&&!p.integrity)throw Error(`No integrity for ${u}${Ve(b)}.`);const A=Li();A&&await A;try{var k=await h(u,p)}catch($){throw $.message=`Unable to fetch ${u}${Ve(b)} - see network log for details.
|
9
|
-
`+$.message,$}finally{Pi()}if(!k.ok)throw Error(`${k.status} ${k.statusText} ${k.url}${Ve(b)}`);return k}async function Dn(u,p,b){const A=await Bn(u,p,b),k=A.headers.get("content-type");if(Ii.test(k))return{r:A.url,s:await A.text(),t:"js"};if(Oi.test(k))return{r:A.url,s:`export default ${await A.text()}`,t:"json"};if(Ti.test(k))return{r:A.url,s:`var s=new CSSStyleSheet();s.replaceSync(${JSON.stringify((await A.text()).replace(Ci,($,x="",O,L)=>`url(${x}${$n(O||L,u)}${x})`))});export default s;`,t:"css"};throw Error(`Unsupported Content-Type "${k}" loading ${u}${Ve(b)}. Modules must be served with a valid MIME type like application/javascript.`)}function Vn(u,p,b,A){let k=ze[u];if(k&&!A)return k;if(k={u,r:A?u:void 0,f:void 0,S:void 0,L:void 0,a:void 0,d:void 0,b:void 0,s:void 0,n:!1,t:null,m:null},ze[u]){let $=0;for(;ze[k.u+ ++$];);k.u+=$}return ze[k.u]=k,k.f=(async()=>{if(!A){let $;if({r:k.r,s:A,t:$}=await(Vt[u]||Dn(u,p,b)),$&&!o){if($==="css"&&!H||$==="json"&&!q)throw Error(`${$}-modules require <script type="esms-options">{ "polyfillEnable": ["${$}-modules"] }<\/script>`);($==="css"&&!pt||$==="json"&&!dt)&&(k.n=!0)}}try{k.a=Ai(A,k.u)}catch($){Ot($),k.a=[[],[],!1]}return k.S=A,k})(),k.L=k.f.then(async()=>{let $=p;k.d=(await Promise.all(k.a[0].map(async({n:x,d:O})=>{if((O>=0&&!qe||O===-2&&!vt)&&(k.n=!0),O!==-1||!x)return;const{r:L,b:I}=await Pn(x,k.r||k.u);if(I&&(!je||ht)&&(k.n=!0),O===-1)return ye&&ye(L)?{b:L}:($.integrity&&($=Object.assign({},$,{integrity:void 0})),Vn(L,$,k.r).f)}))).filter(x=>x)}),k}function Wt(u=!1){if(!u)for(const p of document.querySelectorAll(o?"link[rel=modulepreload-shim]":"link[rel=modulepreload]"))Qn(p);for(const p of document.querySelectorAll(o?"script[type=importmap-shim]":"script[type=importmap]"))Jn(p);if(!u)for(const p of document.querySelectorAll(o?"script[type=module-shim]":"script[type=module]"))Kn(p)}function Ut(u){const p={};return u.integrity&&(p.integrity=u.integrity),u.referrerPolicy&&(p.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?p.credentials="include":u.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}let qn=Promise.resolve(),Bt=1;function Gn(){--Bt===0&&!T&&(o||!Re)&&document.dispatchEvent(new Event("DOMContentLoaded"))}e&&document.addEventListener("DOMContentLoaded",async()=>{await Je,Gn()});let Qe=1;function Dt(){--Qe===0&&!T&&(o||!Re)&&document.dispatchEvent(new Event("readystatechange"))}const Yn=u=>u.nextSibling||u.parentNode&&Yn(u.parentNode),zn=(u,p)=>u.ep||!p&&(!u.src&&!u.innerHTML||!Yn(u))||u.getAttribute("noshim")!==null||!(u.ep=!0);function Jn(u,p=Qe>0){if(!zn(u,p)){if(u.src){if(!o)return;yi()}Ke&&(bt=bt.then(async()=>{Ae=An(u.src?await(await Bn(u.src,Ut(u))).json():JSON.parse(u.innerHTML),u.src||ae,Ae)}).catch(b=>{console.log(b),b instanceof SyntaxError&&(b=new Error(`Unable to parse import map ${b.message} in: ${u.src||u.innerHTML}`)),Ot(b)}),o||(Ke=!1))}}function Kn(u,p=Qe>0){if(zn(u,p))return;const b=u.getAttribute("async")===null&&Qe>0,A=Bt>0;b&&Qe++,A&&Bt++;const k=Fn(u.src||ae,Ut(u),!u.src&&u.innerHTML,!o,b&&qn).then(()=>{o&&u.dispatchEvent(new Event("load"))}).catch(Ot);b&&(qn=k.then(Dt)),A&&k.then(Gn)}const Vt={};function Qn(u){u.ep||(u.ep=!0,!Vt[u.href]&&(Vt[u.href]=Dn(u.href,Ut(u))))}})();var cn=function(t,e){return cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},cn(t,e)};function he(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");cn(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function os(t,e,n,r){function s(o){return o instanceof n?o:new n(function(c){c(o)})}return new(n||(n=Promise))(function(o,c){function f(_){try{d(r.next(_))}catch(w){c(w)}}function h(_){try{d(r.throw(_))}catch(w){c(w)}}function d(_){_.done?o(_.value):s(_.value).then(f,h)}d((r=r.apply(t,e||[])).next())})}function Or(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,s,o,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(d){return function(_){return h([d,_])}}function h(d){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(n=0)),n;)try{if(r=1,s&&(o=d[0]&2?s.return:d[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,d[1])).done)return o;switch(s=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,s=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=e.call(t,n)}catch(_){d=[6,_],s=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Le(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function se(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),s,o=[],c;try{for(;(e===void 0||e-- >0)&&!(s=r.next()).done;)o.push(s.value)}catch(f){c={error:f}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return o}function le(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,o;r<s;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function He(t){return this instanceof He?(this.v=t,this):new He(t)}function as(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),s,o=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(S){r[S]&&(s[S]=function(E){return new Promise(function(P,T){o.push([S,E,P,T])>1||f(S,E)})})}function f(S,E){try{h(r[S](E))}catch(P){w(o[0][3],P)}}function h(S){S.value instanceof He?Promise.resolve(S.value.v).then(d,_):w(o[0][2],S)}function d(S){f("next",S)}function _(S){f("throw",S)}function w(S,E){S(E),o.shift(),o.length&&f(o[0][0],o[0][1])}}function cs(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Le=="function"?Le(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(c){return new Promise(function(f,h){c=t[o](c),s(f,h,c.done,c.value)})}}function s(o,c,f,h){Promise.resolve(h).then(function(d){o({value:d,done:f})},c)}}function N(t){return typeof t=="function"}function vn(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Zt=vn(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
|
10
|
-
`+n.map(function(r,s){return s+1+") "+r.toString()}).join(`
|
11
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function it(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var oe=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,r,s,o;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var f=Le(c),h=f.next();!h.done;h=f.next()){var d=h.value;d.remove(this)}}catch(T){e={error:T}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}else c.remove(this);var _=this.initialTeardown;if(N(_))try{_()}catch(T){o=T instanceof Zt?T.errors:[T]}var w=this._finalizers;if(w){this._finalizers=null;try{for(var S=Le(w),E=S.next();!E.done;E=S.next()){var P=E.value;try{rr(P)}catch(T){o=o??[],T instanceof Zt?o=le(le([],se(o)),se(T.errors)):o.push(T)}}}catch(T){r={error:T}}finally{try{E&&!E.done&&(s=S.return)&&s.call(S)}finally{if(r)throw r.error}}}if(o)throw new Zt(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)rr(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&it(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&it(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Tr=oe.EMPTY;function Cr(t){return t instanceof oe||t&&"closed"in t&&N(t.remove)&&N(t.add)&&N(t.unsubscribe)}function rr(t){N(t)?t():t.unsubscribe()}var Lr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},un={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var s=un.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,le([t,e],se(n))):setTimeout.apply(void 0,le([t,e],se(n)))},clearTimeout:function(t){var e=un.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Pr(t){un.setTimeout(function(){throw t})}function ir(){}function $t(t){t()}var mn=function(t){he(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Cr(n)&&n.add(r)):r.destination=hs,r}return e.create=function(n,r,s){return new At(n,r,s)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(oe),us=Function.prototype.bind;function en(t,e){return us.call(t,e)}var ls=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){wt(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){wt(r)}else wt(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){wt(n)}},t}(),At=function(t){he(e,t);function e(n,r,s){var o=t.call(this)||this,c;if(N(n)||!n)c={next:n??void 0,error:r??void 0,complete:s??void 0};else{var f;o&&Lr.useDeprecatedNextContext?(f=Object.create(n),f.unsubscribe=function(){return o.unsubscribe()},c={next:n.next&&en(n.next,f),error:n.error&&en(n.error,f),complete:n.complete&&en(n.complete,f)}):c=n}return o.destination=new ls(c),o}return e}(mn);function wt(t){Pr(t)}function fs(t){throw t}var hs={closed:!0,next:ir,error:fs,complete:ir},bn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function yn(t){return t}function ds(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Mr(t)}function Mr(t){return t.length===0?yn:t.length===1?t[0]:function(n){return t.reduce(function(r,s){return s(r)},n)}}var Q=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var s=this,o=vs(e)?e:new At(e,n,r);return $t(function(){var c=s,f=c.operator,h=c.source;o.add(f?f.call(o,h):h?s._subscribe(o):s._trySubscribe(o))}),o},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=sr(n),new n(function(s,o){var c=new At({next:function(f){try{e(f)}catch(h){o(h),c.unsubscribe()}},error:o,complete:s});r.subscribe(c)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[bn]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Mr(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=sr(e),new e(function(r,s){var o;n.subscribe(function(c){return o=c},function(c){return s(c)},function(){return r(o)})})},t.create=function(e){return new t(e)},t}();function sr(t){var e;return(e=t??Lr.Promise)!==null&&e!==void 0?e:Promise}function ps(t){return t&&N(t.next)&&N(t.error)&&N(t.complete)}function vs(t){return t&&t instanceof mn||ps(t)&&Cr(t)}function ms(t){return N(t==null?void 0:t.lift)}function de(t){return function(e){if(ms(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function fe(t,e,n,r,s){return new bs(t,e,n,r,s)}var bs=function(t){he(e,t);function e(n,r,s,o,c,f){var h=t.call(this,n)||this;return h.onFinalize=c,h.shouldUnsubscribe=f,h._next=r?function(d){try{r(d)}catch(_){n.error(_)}}:t.prototype._next,h._error=o?function(d){try{o(d)}catch(_){n.error(_)}finally{this.unsubscribe()}}:t.prototype._error,h._complete=s?function(){try{s()}catch(d){n.error(d)}finally{this.unsubscribe()}}:t.prototype._complete,h}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e}(mn),ys=vn(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Et=function(t){he(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var r=new or(this,this);return r.operator=n,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new ys},e.prototype.next=function(n){var r=this;$t(function(){var s,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var c=Le(r.currentObservers),f=c.next();!f.done;f=c.next()){var h=f.value;h.next(n)}}catch(d){s={error:d}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(s)throw s.error}}}})},e.prototype.error=function(n){var r=this;$t(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var s=r.observers;s.length;)s.shift().error(n)}})},e.prototype.complete=function(){var n=this;$t(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var r=this,s=this,o=s.hasError,c=s.isStopped,f=s.observers;return o||c?Tr:(this.currentObservers=null,f.push(n),new oe(function(){r.currentObservers=null,it(f,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,s=r.hasError,o=r.thrownError,c=r.isStopped;s?n.error(o):c&&n.complete()},e.prototype.asObservable=function(){var n=new Q;return n.source=this,n},e.create=function(n,r){return new or(n,r)},e}(Q),or=function(t){he(e,t);function e(n,r){var s=t.call(this)||this;return s.destination=n,s.source=r,s}return e.prototype.next=function(n){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.next)===null||s===void 0||s.call(r,n)},e.prototype.error=function(n){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.error)===null||s===void 0||s.call(r,n)},e.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},e.prototype._subscribe=function(n){var r,s;return(s=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&s!==void 0?s:Tr},e}(Et),ar=function(t){he(e,t);function e(n){var r=t.call(this)||this;return r._value=n,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(n){var r=t.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},e.prototype.getValue=function(){var n=this,r=n.hasError,s=n.thrownError,o=n._value;if(r)throw s;return this._throwIfClosed(),o},e.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},e}(Et),_n={now:function(){return(_n.delegate||Date).now()},delegate:void 0},be=function(t){he(e,t);function e(n,r,s){n===void 0&&(n=1/0),r===void 0&&(r=1/0),s===void 0&&(s=_n);var o=t.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=s,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(n){var r=this,s=r.isStopped,o=r._buffer,c=r._infiniteTimeWindow,f=r._timestampProvider,h=r._windowTime;s||(o.push(n),!c&&o.push(f.now()+h)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),s=this,o=s._infiniteTimeWindow,c=s._buffer,f=c.slice(),h=0;h<f.length&&!n.closed;h+=o?1:2)n.next(f[h]);return this._checkFinalizedStatuses(n),r},e.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,s=n._timestampProvider,o=n._buffer,c=n._infiniteTimeWindow,f=(c?1:2)*r;if(r<1/0&&f<o.length&&o.splice(0,o.length-f),!c){for(var h=s.now(),d=0,_=1;_<o.length&&o[_]<=h;_+=2)d=_;d&&o.splice(0,d+1)}},e}(Et),_s=function(t){he(e,t);function e(n,r){return t.call(this)||this}return e.prototype.schedule=function(n,r){return this},e}(oe),St={setInterval:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var s=St.delegate;return s!=null&&s.setInterval?s.setInterval.apply(s,le([t,e],se(n))):setInterval.apply(void 0,le([t,e],se(n)))},clearInterval:function(t){var e=St.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},gs=function(t){he(e,t);function e(n,r){var s=t.call(this,n,r)||this;return s.scheduler=n,s.work=r,s.pending=!1,s}return e.prototype.schedule=function(n,r){var s;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var o=this.id,c=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(c,o,r)),this.pending=!0,this.delay=r,this.id=(s=this.id)!==null&&s!==void 0?s:this.requestAsyncId(c,this.id,r),this},e.prototype.requestAsyncId=function(n,r,s){return s===void 0&&(s=0),St.setInterval(n.flush.bind(n,this),s)},e.prototype.recycleAsyncId=function(n,r,s){if(s===void 0&&(s=0),s!=null&&this.delay===s&&this.pending===!1)return r;r!=null&&St.clearInterval(r)},e.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var s=this._execute(n,r);if(s)return s;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,r){var s=!1,o;try{this.work(n)}catch(c){s=!0,o=c||new Error("Scheduled action threw falsy error")}if(s)return this.unsubscribe(),o},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,s=n.scheduler,o=s.actions;this.work=this.state=this.scheduler=null,this.pending=!1,it(o,this),r!=null&&(this.id=this.recycleAsyncId(s,r,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(_s),cr=function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(r,n)},t.now=_n.now,t}(),ws=function(t){he(e,t);function e(n,r){r===void 0&&(r=cr.now);var s=t.call(this,n,r)||this;return s.actions=[],s._active=!1,s}return e.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var s;this._active=!0;do if(s=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,s){for(;n=r.shift();)n.unsubscribe();throw s}},e}(cr),gn=new ws(gs),ks=gn,$s=new Q(function(t){return t.complete()});function jr(t){return t&&N(t.schedule)}function Rr(t){return t[t.length-1]}function As(t){return N(Rr(t))?t.pop():void 0}function Nr(t){return jr(Rr(t))?t.pop():void 0}var wn=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Fr(t){return N(t==null?void 0:t.then)}function Hr(t){return N(t[bn])}function Wr(t){return Symbol.asyncIterator&&N(t==null?void 0:t[Symbol.asyncIterator])}function Ur(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ss(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Br=Ss();function Dr(t){return N(t==null?void 0:t[Br])}function Vr(t){return as(this,arguments,function(){var n,r,s,o;return Or(this,function(c){switch(c.label){case 0:n=t.getReader(),c.label=1;case 1:c.trys.push([1,,9,10]),c.label=2;case 2:return[4,He(n.read())];case 3:return r=c.sent(),s=r.value,o=r.done,o?[4,He(void 0)]:[3,5];case 4:return[2,c.sent()];case 5:return[4,He(s)];case 6:return[4,c.sent()];case 7:return c.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function qr(t){return N(t==null?void 0:t.getReader)}function De(t){if(t instanceof Q)return t;if(t!=null){if(Hr(t))return xs(t);if(wn(t))return Es(t);if(Fr(t))return Is(t);if(Wr(t))return Gr(t);if(Dr(t))return Os(t);if(qr(t))return Ts(t)}throw Ur(t)}function xs(t){return new Q(function(e){var n=t[bn]();if(N(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Es(t){return new Q(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function Is(t){return new Q(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,Pr)})}function Os(t){return new Q(function(e){var n,r;try{for(var s=Le(t),o=s.next();!o.done;o=s.next()){var c=o.value;if(e.next(c),e.closed)return}}catch(f){n={error:f}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}e.complete()})}function Gr(t){return new Q(function(e){Cs(t,e).catch(function(n){return e.error(n)})})}function Ts(t){return Gr(Vr(t))}function Cs(t,e){var n,r,s,o;return os(this,void 0,void 0,function(){var c,f;return Or(this,function(h){switch(h.label){case 0:h.trys.push([0,5,6,11]),n=cs(t),h.label=1;case 1:return[4,n.next()];case 2:if(r=h.sent(),!!r.done)return[3,4];if(c=r.value,e.next(c),e.closed)return[2];h.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return f=h.sent(),s={error:f},[3,11];case 6:return h.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:h.sent(),h.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function ie(t,e,n,r,s){r===void 0&&(r=0),s===void 0&&(s=!1);var o=e.schedule(function(){n(),s?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!s)return o}function Yr(t,e){return e===void 0&&(e=0),de(function(n,r){n.subscribe(fe(r,function(s){return ie(r,t,function(){return r.next(s)},e)},function(){return ie(r,t,function(){return r.complete()},e)},function(s){return ie(r,t,function(){return r.error(s)},e)}))})}function zr(t,e){return e===void 0&&(e=0),de(function(n,r){r.add(t.schedule(function(){return n.subscribe(r)},e))})}function Ls(t,e){return De(t).pipe(zr(e),Yr(e))}function Ps(t,e){return De(t).pipe(zr(e),Yr(e))}function Ms(t,e){return new Q(function(n){var r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function js(t,e){return new Q(function(n){var r;return ie(n,e,function(){r=t[Br](),ie(n,e,function(){var s,o,c;try{s=r.next(),o=s.value,c=s.done}catch(f){n.error(f);return}c?n.complete():n.next(o)},0,!0)}),function(){return N(r==null?void 0:r.return)&&r.return()}})}function Jr(t,e){if(!t)throw new Error("Iterable cannot be null");return new Q(function(n){ie(n,e,function(){var r=t[Symbol.asyncIterator]();ie(n,e,function(){r.next().then(function(s){s.done?n.complete():n.next(s.value)})},0,!0)})})}function Rs(t,e){return Jr(Vr(t),e)}function Ns(t,e){if(t!=null){if(Hr(t))return Ls(t,e);if(wn(t))return Ms(t,e);if(Fr(t))return Ps(t,e);if(Wr(t))return Jr(t,e);if(Dr(t))return js(t,e);if(qr(t))return Rs(t,e)}throw Ur(t)}function ut(t,e){return e?Ns(t,e):De(t)}function Fs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Nr(t);return ut(t,n)}var Kr=vn(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function kt(t,e){var n=typeof e=="object";return new Promise(function(r,s){var o=!1,c;t.subscribe({next:function(f){c=f,o=!0},error:s,complete:function(){o?r(c):n?r(e.defaultValue):s(new Kr)}})})}function Hs(t,e){var n=typeof e=="object";return new Promise(function(r,s){var o=new At({next:function(c){r(c),o.unsubscribe()},error:s,complete:function(){n?r(e.defaultValue):s(new Kr)}});t.subscribe(o)})}function Ws(t){return t instanceof Date&&!isNaN(t)}function ue(t,e){return de(function(n,r){var s=0;n.subscribe(fe(r,function(o){r.next(t.call(e,o,s++))}))})}var Us=Array.isArray;function Bs(t,e){return Us(e)?t.apply(void 0,le([],se(e))):t(e)}function Qr(t){return ue(function(e){return Bs(t,e)})}function Ds(t,e,n){return n===void 0&&(n=yn),function(r){ur(e,function(){for(var s=t.length,o=new Array(s),c=s,f=s,h=function(_){ur(e,function(){var w=ut(t[_],e),S=!1;w.subscribe(fe(r,function(E){o[_]=E,S||(S=!0,f--),f||r.next(n(o.slice()))},function(){--c||r.complete()}))},r)},d=0;d<s;d++)h(d)},r)}}function ur(t,e,n){t?ie(n,t,e):e()}function Vs(t,e,n,r,s,o,c,f){var h=[],d=0,_=0,w=!1,S=function(){w&&!h.length&&!d&&e.complete()},E=function(T){return d<r?P(T):h.push(T)},P=function(T){o&&e.next(T),d++;var V=!1;De(n(T,_++)).subscribe(fe(e,function(F){s==null||s(F),o?E(F):e.next(F)},function(){V=!0},void 0,function(){if(V)try{d--;for(var F=function(){var j=h.shift();c?ie(e,c,function(){return P(j)}):P(j)};h.length&&d<r;)F();S()}catch(j){e.error(j)}}))};return t.subscribe(fe(e,E,function(){w=!0,S()})),function(){f==null||f()}}function Pe(t,e,n){return n===void 0&&(n=1/0),N(e)?Pe(function(r,s){return ue(function(o,c){return e(r,o,s,c)})(De(t(r,s)))},n):(typeof e=="number"&&(n=e),de(function(r,s){return Vs(r,s,t,n)}))}var qs=["addListener","removeListener"],Gs=["addEventListener","removeEventListener"],Ys=["on","off"];function ln(t,e,n,r){if(N(n)&&(r=n,n=void 0),r)return ln(t,e,n).pipe(Qr(r));var s=se(Ks(t)?Gs.map(function(f){return function(h){return t[f](e,h,n)}}):zs(t)?qs.map(lr(t,e)):Js(t)?Ys.map(lr(t,e)):[],2),o=s[0],c=s[1];if(!o&&wn(t))return Pe(function(f){return ln(f,e,n)})(De(t));if(!o)throw new TypeError("Invalid event target");return new Q(function(f){var h=function(){for(var d=[],_=0;_<arguments.length;_++)d[_]=arguments[_];return f.next(1<d.length?d:d[0])};return o(h),function(){return c(h)}})}function lr(t,e){return function(n){return function(r){return t[n](e,r)}}}function zs(t){return N(t.addListener)&&N(t.removeListener)}function Js(t){return N(t.on)&&N(t.off)}function Ks(t){return N(t.addEventListener)&&N(t.removeEventListener)}function fn(t,e,n){t===void 0&&(t=0),n===void 0&&(n=ks);var r=-1;return e!=null&&(jr(e)?n=e:r=e),new Q(function(s){var o=Ws(t)?+t-n.now():t;o<0&&(o=0);var c=0;return n.schedule(function(){s.closed||(s.next(c++),0<=r?this.schedule(void 0,r):s.complete())},o)})}function Qs(t,e){return t===void 0&&(t=0),e===void 0&&(e=gn),t<0&&(t=0),fn(t,t,e)}var Xs=Array.isArray;function Zs(t){return t.length===1&&Xs(t[0])?t[0]:t}function J(t,e){return de(function(n,r){var s=0;n.subscribe(fe(r,function(o){return t.call(e,o,s++)&&r.next(o)}))})}function eo(t){for(var e,n,r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var o=(e=Nr(r))!==null&&e!==void 0?e:gn,c=(n=r[0])!==null&&n!==void 0?n:null,f=r[1]||1/0;return de(function(h,d){var _=[],w=!1,S=function(T){var V=T.buffer,F=T.subs;F.unsubscribe(),it(_,T),d.next(V),w&&E()},E=function(){if(_){var T=new oe;d.add(T);var V=[],F={buffer:V,subs:T};_.push(F),ie(T,o,function(){return S(F)},t)}};c!==null&&c>=0?ie(d,o,E,c,!0):w=!0,E();var P=fe(d,function(T){var V,F,j=_.slice();try{for(var H=Le(j),q=H.next();!q.done;q=H.next()){var ft=q.value,ae=ft.buffer;ae.push(T),f<=ae.length&&S(ft)}}catch(X){V={error:X}}finally{try{q&&!q.done&&(F=H.return)&&F.call(H)}finally{if(V)throw V.error}}},function(){for(;_!=null&&_.length;)d.next(_.shift().buffer);P==null||P.unsubscribe(),d.complete(),d.unsubscribe()},void 0,function(){return _=null});h.subscribe(P)})}function Xr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=As(t);return n?ds(Xr.apply(void 0,le([],se(t))),Qr(n)):de(function(r,s){Ds(le([r],se(Zs(t))))(s)})}function to(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Xr.apply(void 0,le([],se(t)))}function no(t,e){return N(e)?Pe(t,e,1):Pe(t,1)}function Te(t){return t<=0?function(){return $s}:de(function(e,n){var r=0;e.subscribe(fe(n,function(s){++r<=t&&(n.next(s),t<=r&&n.complete())}))})}function ro(){return de(function(t,e){var n,r=!1;t.subscribe(fe(e,function(s){var o=n;n=s,r&&e.next([o,s]),r=!0}))})}function io(t,e,n){var r=N(t)||e||n?{next:t,error:e,complete:n}:t;return r?de(function(s,o){var c;(c=r.subscribe)===null||c===void 0||c.call(r);var f=!0;s.subscribe(fe(o,function(h){var d;(d=r.next)===null||d===void 0||d.call(r,h),o.next(h)},function(){var h;f=!1,(h=r.complete)===null||h===void 0||h.call(r),o.complete()},function(h){var d;f=!1,(d=r.error)===null||d===void 0||d.call(r,h),o.error(h)},function(){var h,d;f&&((h=r.unsubscribe)===null||h===void 0||h.call(r)),(d=r.finalize)===null||d===void 0||d.call(r)}))}):yn}const so="en",oo=(t,e=so)=>typeof t=="string"?t:t==null?void 0:t[e];function ao(t){return Object.entries(t).reduce((e,[n,r])=>(e[n]=oo(r),e),{})}const We=(...t)=>{},Zr=t=>Array.isArray(t)?t:[t],ei=({document:{baseURI:t},location:{href:e}})=>n=>new URL(n,new URL(t,e)),ti=(t,e)=>{let n=e;return e instanceof URL||(n=t(typeof e=="string"?e:e.url)),n},co=(t,e)=>{const{href:n,origin:r}=e;return t===r?n.substring(t.length):n},uo=(t,e,n=0)=>{const{selectors:r}=e;return t.querySelector(r[n])};function lo(t){return document.querySelector(t)}const fo=(t,e)=>{const n=e.get(t);if(n){const{css:r,rest:s,subscription:o}=n;s.forEach(c=>{var f;return(f=c.__unfocus_handler)==null?void 0:f.call(c)}),o.unsubscribe(),n.elementToFocus.forEach((c,f)=>{Object.assign(c.style,r[f])})}e.delete(t)},ho=t=>t!==void 0;function po(t,e,n){const r=new Map,s=lo.bind(t),o=e.pipe(ro(),io(([c])=>{var f;if(c!==void 0){const h=uo(t,c);h!==null&&((f=h.__unfocus_handler)==null||f.call(h),fo(h,r))}}),ue(([,c])=>c),J(ho),ue(c=>{const[f,...h]=c.selectors,d=h.reduce((_,w)=>{var S;const E=s(w);if(E){_.push(E);const P=(S=E.__focus_handler)==null?void 0:S.call(E);P&&"then"in P&&P.catch(We)}return _},[]);return{first:f,next:c,otherElements:d}}),ue(c=>({...c,firstElement:s(c.first)})),J(c=>c.firstElement!==null),ue(c=>{var f,h;return{...c,focus:(h=(f=c.firstElement).__focus_handler)==null?void 0:h.call(f)}}),no(({focus:c,...f})=>(c&&"then"in c?c:Promise.resolve(c??f.firstElement)).then(d=>({focus:d,...f})).catch(()=>({focus:void 0,...f})))).subscribe(({otherElements:c,next:f,firstElement:h,focus:d})=>{const _=Object.keys(f.style),w=new oe,S=Zr(d??h).filter(Boolean),E={css:[],elementToFocus:S,rest:c,subscription:w},P=_.reduce((T,V)=>(S.forEach((F,j)=>{var H;T.css[j]=Object.assign((H=T.css[j])!=null?H:{},{[V]:F.style[V]})}),T),E);w.add(n.pipe(J(T=>T==="select"),Te(1)).subscribe(()=>{S.forEach(T=>{Object.assign(T.style,f.style)})})),r.set(h,P)});return()=>o.unsubscribe()}var vo=Object.defineProperty,mo=(t,e,n)=>e in t?vo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,we=(t,e,n)=>(mo(t,typeof e!="symbol"?e+"":e,n),n);let bo=class{constructor(e){we(this,"_input"),we(this,"_length"),we(this,"_idx",0),we(this,"_mode",0),we(this,"_literals",[]),we(this,"_variables",[]),we(this,"_braketCount",0),we(this,"_done",!1),this._input=e,this._length=e.length}concatToLastLiteral(e){this._literals.push(this._literals.pop().concat(e))}concatToLastVariable(e){this._variables.push(this._variables.pop().concat(e))}get(){const e=[...this._literals],n=Object.assign([],e);return Object.defineProperty(n,"raw",{value:e,writable:!1}),{literals:n,variables:this._variables}}run(){for(this._length===0&&this._literals.push("");this._idx<this._length;){const e=this._input.charAt(this._idx);switch(this._mode){case 0:{this._literals.length===0&&this._literals.push(""),e==="{"&&this._idx+1!==this._length&&this._input.charAt(this._idx+1)==="{"?(this._literals.push(""),this._variables.push(""),this._mode=1,this._idx+=1):this.concatToLastLiteral(e);break}case 1:e==="}"&&this._input.charAt(this._idx+1)==="}"?(this._mode=0,this._idx+=1):this.concatToLastVariable(e);break}this._idx+=1}this._mode===1&&(this._literals.pop(),this.concatToLastLiteral(`{{${this._variables.pop()}`)),this._done=!0}};const yo=t=>{const e=t.trim();if(!(e.startsWith("[")&&e.endsWith("]")))return!1;const n=e.slice(1).slice(0,-1).trim();return Number.parseInt(n).toString(10)===n},_o=t=>Number.parseInt(t.trim().slice(1).slice(0,-1).trim());function go(t,e,n){if(!e.trim())return n?`{{${e}}}`:"";const r=e.trim().split(".").reduce((s,o)=>{if(Array.isArray(s)&&yo(o))return s[_o(o)];if(typeof s=="object"&&s!==null&&o in s)return s[o]},{...t});return typeof r=="string"?r:n?`{{${e}}}`:""}function wo(t,e,n=!1){const r=new bo(t);r.run();const s=r.get();let[o]=s.literals;for(let c=0;c<s.variables.length;c++)o=o.concat(go(e,s.variables[c],n)).concat(s.literals[c+1]);return o}const ko=(t,e)=>Object.fromEntries(Object.entries(t).map(([n,r])=>[n,wo(r,e)])),hn="__mia_preview_id",$o=1e6;var tn;const xt=window,Ue=xt.trustedTypes,fr=Ue?Ue.createPolicy("lit-html",{createHTML:t=>t}):void 0,dn="$lit$",ke=`lit$${(Math.random()+"").slice(9)}$`,ni="?"+ke,Ao=`<${ni}>`,Me=document,st=()=>Me.createComment(""),ot=t=>t===null||typeof t!="object"&&typeof t!="function",ri=Array.isArray,So=t=>ri(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",nn=`[
|
12
|
-
\f\r]`,rt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hr=/-->/g,dr=/>/g,Oe=RegExp(`>|${nn}(?:([^\\s"'>=/]+)(${nn}*=${nn}*(?:[^
|
13
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),pr=/'/g,vr=/"/g,ii=/^(?:script|style|textarea|title)$/i,xo=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),Eo=xo(1),at=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),mr=new WeakMap,Ce=Me.createTreeWalker(Me,129,null,!1),Io=(t,e)=>{const n=t.length-1,r=[];let s,o=e===2?"<svg>":"",c=rt;for(let h=0;h<n;h++){const d=t[h];let _,w,S=-1,E=0;for(;E<d.length&&(c.lastIndex=E,w=c.exec(d),w!==null);)E=c.lastIndex,c===rt?w[1]==="!--"?c=hr:w[1]!==void 0?c=dr:w[2]!==void 0?(ii.test(w[2])&&(s=RegExp("</"+w[2],"g")),c=Oe):w[3]!==void 0&&(c=Oe):c===Oe?w[0]===">"?(c=s??rt,S=-1):w[1]===void 0?S=-2:(S=c.lastIndex-w[2].length,_=w[1],c=w[3]===void 0?Oe:w[3]==='"'?vr:pr):c===vr||c===pr?c=Oe:c===hr||c===dr?c=rt:(c=Oe,s=void 0);const P=c===Oe&&t[h+1].startsWith("/>")?" ":"";o+=c===rt?d+Ao:S>=0?(r.push(_),d.slice(0,S)+dn+d.slice(S)+ke+P):d+ke+(S===-2?(r.push(void 0),h):P)}const f=o+(t[n]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[fr!==void 0?fr.createHTML(f):f,r]};class ct{constructor({strings:e,_$litType$:n},r){let s;this.parts=[];let o=0,c=0;const f=e.length-1,h=this.parts,[d,_]=Io(e,n);if(this.el=ct.createElement(d,r),Ce.currentNode=this.el.content,n===2){const w=this.el.content,S=w.firstChild;S.remove(),w.append(...S.childNodes)}for(;(s=Ce.nextNode())!==null&&h.length<f;){if(s.nodeType===1){if(s.hasAttributes()){const w=[];for(const S of s.getAttributeNames())if(S.endsWith(dn)||S.startsWith(ke)){const E=_[c++];if(w.push(S),E!==void 0){const P=s.getAttribute(E.toLowerCase()+dn).split(ke),T=/([.?@])?(.*)/.exec(E);h.push({type:1,index:o,name:T[2],strings:P,ctor:T[1]==="."?To:T[1]==="?"?Lo:T[1]==="@"?Po:It})}else h.push({type:6,index:o})}for(const S of w)s.removeAttribute(S)}if(ii.test(s.tagName)){const w=s.textContent.split(ke),S=w.length-1;if(S>0){s.textContent=Ue?Ue.emptyScript:"";for(let E=0;E<S;E++)s.append(w[E],st()),Ce.nextNode(),h.push({type:2,index:++o});s.append(w[S],st())}}}else if(s.nodeType===8)if(s.data===ni)h.push({type:2,index:o});else{let w=-1;for(;(w=s.data.indexOf(ke,w+1))!==-1;)h.push({type:7,index:o}),w+=ke.length-1}o++}}static createElement(e,n){const r=Me.createElement("template");return r.innerHTML=e,r}}function Be(t,e,n=t,r){var s,o,c,f;if(e===at)return e;let h=r!==void 0?(s=n._$Co)===null||s===void 0?void 0:s[r]:n._$Cl;const d=ot(e)?void 0:e._$litDirective$;return(h==null?void 0:h.constructor)!==d&&((o=h==null?void 0:h._$AO)===null||o===void 0||o.call(h,!1),d===void 0?h=void 0:(h=new d(t),h._$AT(t,n,r)),r!==void 0?((c=(f=n)._$Co)!==null&&c!==void 0?c:f._$Co=[])[r]=h:n._$Cl=h),h!==void 0&&(e=Be(t,h._$AS(t,e.values),h,r)),e}class Oo{constructor(e,n){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var n;const{el:{content:r},parts:s}=this._$AD,o=((n=e==null?void 0:e.creationScope)!==null&&n!==void 0?n:Me).importNode(r,!0);Ce.currentNode=o;let c=Ce.nextNode(),f=0,h=0,d=s[0];for(;d!==void 0;){if(f===d.index){let _;d.type===2?_=new lt(c,c.nextSibling,this,e):d.type===1?_=new d.ctor(c,d.name,d.strings,this,e):d.type===6&&(_=new Mo(c,this,e)),this._$AV.push(_),d=s[++h]}f!==(d==null?void 0:d.index)&&(c=Ce.nextNode(),f++)}return Ce.currentNode=Me,o}v(e){let n=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,n),n+=r.strings.length-2):r._$AI(e[n])),n++}}class lt{constructor(e,n,r,s){var o;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=e,this._$AB=n,this._$AM=r,this.options=s,this._$Cp=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var e,n;return(n=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&n!==void 0?n:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=n.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,n=this){e=Be(this,e,n),ot(e)?e===z||e==null||e===""?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==at&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):So(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==z&&ot(this._$AH)?this._$AA.nextSibling.data=e:this.$(Me.createTextNode(e)),this._$AH=e}g(e){var n;const{values:r,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=ct.createElement(s.h,this.options)),s);if(((n=this._$AH)===null||n===void 0?void 0:n._$AD)===o)this._$AH.v(r);else{const c=new Oo(o,this),f=c.u(this.options);c.v(r),this.$(f),this._$AH=c}}_$AC(e){let n=mr.get(e.strings);return n===void 0&&mr.set(e.strings,n=new ct(e)),n}T(e){ri(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let r,s=0;for(const o of e)s===n.length?n.push(r=new lt(this.k(st()),this.k(st()),this,this.options)):r=n[s],r._$AI(o),s++;s<n.length&&(this._$AR(r&&r._$AB.nextSibling,s),n.length=s)}_$AR(e=this._$AA.nextSibling,n){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,n);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var n;this._$AM===void 0&&(this._$Cp=e,(n=this._$AP)===null||n===void 0||n.call(this,e))}}class It{constructor(e,n,r,s,o){this.type=1,this._$AH=z,this._$AN=void 0,this.element=e,this.name=n,this._$AM=s,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,n=this,r,s){const o=this.strings;let c=!1;if(o===void 0)e=Be(this,e,n,0),c=!ot(e)||e!==this._$AH&&e!==at,c&&(this._$AH=e);else{const f=e;let h,d;for(e=o[0],h=0;h<o.length-1;h++)d=Be(this,f[r+h],n,h),d===at&&(d=this._$AH[h]),c||(c=!ot(d)||d!==this._$AH[h]),d===z?e=z:e!==z&&(e+=(d??"")+o[h+1]),this._$AH[h]=d}c&&!s&&this.j(e)}j(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class To extends It{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===z?void 0:e}}const Co=Ue?Ue.emptyScript:"";class Lo extends It{constructor(){super(...arguments),this.type=4}j(e){e&&e!==z?this.element.setAttribute(this.name,Co):this.element.removeAttribute(this.name)}}class Po extends It{constructor(e,n,r,s,o){super(e,n,r,s,o),this.type=5}_$AI(e,n=this){var r;if((e=(r=Be(this,e,n,0))!==null&&r!==void 0?r:z)===at)return;const s=this._$AH,o=e===z&&s!==z||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,c=e!==z&&(s===z||o);o&&this.element.removeEventListener(this.name,this,s),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var n,r;typeof this._$AH=="function"?this._$AH.call((r=(n=this.options)===null||n===void 0?void 0:n.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}}class Mo{constructor(e,n,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Be(this,e)}}const br=xt.litHtmlPolyfillSupport;br==null||br(ct,lt),((tn=xt.litHtmlVersions)!==null&&tn!==void 0?tn:xt.litHtmlVersions=[]).push("2.7.4");const jo=(t,e,n)=>{var r,s;const o=(r=n==null?void 0:n.renderBefore)!==null&&r!==void 0?r:e;let c=o._$litPart$;if(c===void 0){const f=(s=n==null?void 0:n.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=c=new lt(e.insertBefore(st(),f),f,void 0,n??{})}return c._$AI(t),c};const Ro=t=>{const e=t.charAt(0);return!(e!==t.charAt(t.length-1)||e!=="'"&&e!=='"')};function No(t){const e=t.match(/([^.]+)/g);return n=>e.reduce((r,s)=>{let o=s;if(s.startsWith("[")&&s.endsWith("]")){const c=s.slice(1,-1),f=Number.parseInt(c);!Number.isNaN(f)&&f.toString()===c?o=f:(c.startsWith('"')&&c.endsWith('"')||c.startsWith("'")&&c.endsWith("'"))&&(o=c.slice(1,-1))}if(o==="")throw new TypeError("42",{cause:t});return typeof r=="object"&&r!==null?r[o]:void 0},n)}function Fo(t,e={}){return t.reduce((n,r,s)=>{const o=r.trim(),c=Number.parseInt(o),f=Number.parseFloat(o);if(o==="")n[s]=o;else if(Ro(o))n[s]=o.slice(1,-1);else if(["true","false"].includes(o))n[s]=o==="true";else if(!Number.isNaN(c)&&c.toString()===o)n[s]=c;else if(!Number.isNaN(f)&&f.toString()===o)n[s]=f;else if(o.startsWith("{")||o.startsWith("["))try{n[s]=JSON.parse(o)}catch(h){if(h instanceof SyntaxError)throw new TypeError("43",{cause:h.message})}else n[s]=No(o)(e);return n},[])}function si(t){return Array.isArray(t)?t:[t]}function Ho(t){const e=typeof t=="string"?[t]:t;return Array.isArray(e)?e:si(e.uris)}const Wo=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Uo(t){return Wo.includes(t.tag)}function Bo(t){return Array.isArray(t)?t:[t]}function oi(t,e,n){if(typeof e!="object"){t.push(`${e}`);return}Bo(e).forEach(r=>{if(typeof r!="object"){t.push(`${r}`);return}const{tag:s,attributes:o={},booleanAttributes:c=[],properties:f={}}=r,h=Uo(r),d=`<${s}`,_=h?"/>":">",w=`</${s}>`,S=Object.entries(o).reduce((j,[H,q])=>(j.push(`${H}="${q}"`),j),[]),E=si(c),{override:P,props:T}=Object.entries(f).reduce((j,[H,q])=>(n.has(H)?typeof q=="string"&&(j.override[H]=q):j.props[H]=q,j),{override:{},props:{}}),V=Array.from(n.keys()).map(j=>{var H;return`.${j}=\${${(H=P[j])!=null?H:j}}`}),F=Object.entries(T).reduce((j,[H,q])=>{switch(typeof q){case"object":case"number":case"boolean":j.push(`.${H}=\${${JSON.stringify(q)}}`);break;case"string":j.push(`.${H}=\${"${q}"}`);break}return j},[]);if(t.push([d,S.join(" "),E.join(" "),V.join(" "),F.join(" "),_].join(" ")),!h){const{content:j}=r;j!==void 0&&oi(t,j,n),t.push(w)}})}function Do(t,e=new Set){const n=[];return oi(n,t,e),n.join(" ")}const Vo="modulepreload",qo=function(t,e){return new URL(t,e).href},yr={},Go=function(e,n,r){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=qo(o,r),o in yr)return;yr[o]=!0;const c=o.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let _=s.length-1;_>=0;_--){const w=s[_];if(w.href===o&&(!c||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Vo,c||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),c)return new Promise((_,w)=>{d.addEventListener("load",_),d.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e())};function ai(t,...e){Go(()=>import("./errors-af3a2945.js"),[],import.meta.url).then(({default:n})=>{const r=n[t];r?console.error(r(...e)):console.error(...e)}).catch(n=>{console.error(`[micro-lc][composer]: Dynamic import error while importing logger utils - ${n.message}`)})}function Yo(t){return e=>{ai("0",t,e.message)}}const zo=Object.freeze(Object.defineProperty({__proto__:null,dynamicImportError:Yo,error:ai},Symbol.toStringTag,{value:"Module"}));var _r=zo;var Jo=Object.defineProperty,Ko=(t,e,n)=>e in t?Jo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,me=(t,e,n)=>(Ko(t,typeof e!="symbol"?e+"":e,n),n);class Qo{constructor(e){me(this,"_i",0),me(this,"_s"),me(this,"_l"),me(this,"_d",!1),me(this,"_m",0),me(this,"_st",[]),me(this,"_n",0),me(this,"_li",[]),me(this,"_v",[]),this._s=e,this._l=e.length,e.length===0&&(this._d=!0)}_sw(e){this._m=e}_fst(){this._st=[]}_fn(){this._v.push(this._st.join("")),this._fst()}_fs(){this._li.push(this._st.join("")),this._fst()}_fpn(){this._li.push(this._st.slice(0,-1).join("")),this._fst()}_nx(){const e=this._s.charAt(this._i);switch(this._m){case 1:{e==="{"?(this._n+=1,this._st.push(e)):e==="}"&&this._n===0?(this._fn(),this._sw(0)):e==="}"&&this._n>0?(this._st.push(e),this._n-=1):this._st.push(e);break}case 2:{e==="{"?(this._fpn(),this._sw(1)):(this._sw(0),this._st.push(e));break}case 0:default:{e==="$"&&this._sw(2),this._st.push(e);break}}if(this._i+=1,this._i===this._l){if(this._m===2)this._sw(0);else if(this._m===1)throw new TypeError("41",{cause:`${this._i}`});this._fs(),this._d=!0}}_c(){const e=[...this._li],n=Object.assign([],e);return Object.defineProperty(n,"raw",{value:e,writable:!1}),{literals:n,variables:this._v}}run(){for(;!this._d;)this._nx();return this._c()}}const Xo=async(t,e="SHA-1")=>window.crypto.subtle.digest(e,new TextEncoder().encode(t)),rn=new Map;async function Zo(t){const e=await Xo(t).catch(n=>{_r.error("40",t,n.message)});if(!e||!rn.has(e)){let n;try{n=new Qo(t).run(),e&&rn.set(e,n)}catch(r){r instanceof TypeError&&_r.error(r.message,t,r.cause);const s=[];Object.defineProperty(s,"raw",{value:s,writable:!1}),n={literals:s,variables:[]}}return n}return rn.get(e)}class sn extends be{}function ea(){const t=[],e=new Proxy({},{get(n,r,s){return typeof r=="string"&&!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=new sn),Reflect.get(n,r,s)}});return new Proxy(new sn,{get(n,r,s){if(r==="pool")return e;const o=typeof r=="string"?Number.parseInt(r,10):Number.NaN;return Number.isNaN(o)?Reflect.get(n,r,s):(t.at(o)===void 0&&(t[o]=new sn),t[o])}})}async function ta(t,{extraProperties:e,context:n={}}={}){const r=Array.isArray(e)?new Set(e):e,s=Do(t,r),o=await Zo(s),c=Fo(o.variables,n),f=Eo(o.literals,...c);return(h,d)=>jo(f,h,d)}async function na(t,e=window,n=console.error){var r;let s=[],o,c=Promise.resolve();if(t.sources){const{sources:f}=t;o=!Array.isArray(f)&&typeof f!="string"?(r=f.importmap)!=null?r:{}:{};try{e.importShim.addImportMap(o)}catch(h){n(h)}s=Ho(f),s.length>0&&(c=Promise.all(s.map(h=>e.importShim(h).catch(n))))}return c.then(()=>({...t,sources:{importmap:o,uris:s}}))}async function ra(t,e,n={}){return ta(t.content,{context:n,extraProperties:new Set(Object.keys(n))}).then(s=>(s(e),null))}const ia=t=>{var e;return{data:{message:t.message,name:t.name,stack:(e=t.stack)!=null?e:""},description:"preview.notifications.error.description",message:"preview.notifications.error.message",status:"error"}},ci=(t,e)=>t.send({content:ia(e),type:"notification"}),ui=t=>"clientX"in t&&"clientY"in t;function gr(t,e){return n=>{ui(n)&&t.send({content:{bubbles:!0,cancelable:!1,clientX:n.clientX,clientY:n.clientY},type:e})}}const sa=(t,e)=>t.has(e.tagName)&&e.hasAttribute(hn),oa=(t,e,n)=>{const{document:r}=t;return s=>{let o;if(ui(s)){const{clientX:c,clientY:f}=s;o=r.elementsFromPoint(c,f).reduce((h,d)=>{if(sa(n.uppercaseTags,d)){const _=d.getAttribute(hn);h.ids.push(_),h.selectors.push(`[${hn}="${_}"]`)}return h},{ids:[],selectors:[]})}(n.mode.getValue()==="select"||o===void 0)&&e.send({content:o&&(o.ids.length>0?o:void 0),type:"click-element"})}};var aa=(t,e)=>({postMessage:n=>{t.postMessage(n,(e==null?void 0:e.targetOrigin)??"*",e==null?void 0:e.transfer)}}),li=(t=>(t.Ack="ack",t.Syn="syn",t))(li||{}),ca=Object.values(li),on=t=>t.data,an=t=>e=>e.type===t.toString(),ua=t=>{const e=t.data;return typeof e=="object"&&e!==null&&"type"in e&&typeof e.type=="string"&&"instance"in e&&typeof e.instance=="string"&&"content"in e},la=()=>{let t="#";for(let e=0;e<3;e++)t+=`0${Math.floor(Math.random()*Math.pow(16,2)/2).toString(16)}`.slice(-2);return t},fa=class{constructor(t,e,n,r){re(this,"__generateId");re(this,"__instance");re(this,"__colors");re(this,"__listener");re(this,"__log");re(this,"__receiver");re(this,"__subscription");re(this,"__okToWrite");re(this,"__write$");re(this,"__recv$");this.__generateId=()=>globalThis.crypto.randomUUID();const s=this.__generateId(),o=new be,c=ln(e,"message").pipe(J(ua)).subscribe(o);this.__subscription=new oe,this.__subscription.add(c),this.__okToWrite=new be(1),this.__write$=this.__okToWrite.pipe(Te(1)),this.__recv$=o.asObservable(),this.__listener=t,this.__log=(r==null?void 0:r.log)&&r.log.bind(this),this.__instance=s;const f=la();this.__colors={bg:f,fg:`${f}22`},this.__receiver=n,this.__connect(s,r!=null&&r.period?r.period:10)}__connect(t,e){const n=Qs(e).subscribe(()=>this.__receiver.postMessage({content:t,instance:t,type:"syn".toString()}));this.__subscription.add(n),this.__subscription.add(this.__recv$.pipe(ue(on),J(an("ack")),J(({content:r})=>r===t),Te(1)).subscribe(({instance:r})=>{this.__okToWrite.next(0),this.__subscription.add(this.__recv$.pipe(J(({data:{type:s,instance:o}})=>!ca.includes(s)&&o===r)).subscribe(s=>{this.__listener(s);const{data:o}=s;o._id!==void 0&&this.__receiver.postMessage({...o,content:o,instance:t,type:"ack"})})),n.unsubscribe()})),this.__subscription.add(this.__recv$.pipe(ue(on),J(an("syn")),J(({instance:r})=>r!==t),Te(1)).subscribe(({content:r})=>{this.__receiver.postMessage({content:r,instance:t,type:"ack"})}))}__write(t,e){const n={};e!==void 0&&(n._id=e),this.__subscription.add(this.__write$.subscribe(()=>{var s;const r=Object.assign(t,{instance:this.__instance,...n});this.__receiver.postMessage(r),(s=this.__log)==null||s.call(this,r)}))}disconnect(){this.__subscription.unsubscribe()}send(t){this.__write(t)}ackSend(t){let e;const n=new Promise(s=>{e=s}),r=this.__generateId();return this.__subscription.add(this.__recv$.pipe(ue(on),J(an("ack")),J(({_id:s})=>s===r),Te(1)).subscribe(()=>e())),this.__write(t,r),n}get instance(){return this.__instance}get colors(){return this.__colors}get ready(){return Hs(this.__write$).then(()=>{})}},fi=fa;const ha=()=>({configuration:new be,focus:new ar(void 0),infos:new be,mocks:new be,mode:new ar("select"),notification:new be,setSourceMap:new be(1),swSourceMapAck:new be(1),updated:new Et,uppercaseTags:new Set}),hi=t=>{let e=0;const n=t.getValue();return n==="interact"?e="select":n==="select"&&(e="interact"),t.next(e),e},da=t=>e=>{const{data:n}=e;switch(n.type){}},pa=async(t,e)=>{const{navigator:{serviceWorker:n}}=t;return Promise.all([n.register("./service-worker.js"),n.ready.then(r=>{if(!r.active)throw new TypeError("smth went wrong on sw activation");return new fi(da(),window.navigator.serviceWorker,r.active)})]).then(([,r])=>r)},va=(t,e)=>n=>{const{data:r}=n;switch(r.type){case"options":{const{content:{disableOverlay:s,redirectTo:o,timeout:c,run:f}}=r;f&&e.swSourceMapAck.next(0),s&&(Object.defineProperty(t,"__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__",{value:!0}),e.mode.next("interact")),c!==void 0&&Object.defineProperty(t,"__BACKOFFICE_CONFIGURATOR_PREVIEW_TIMEOUT__",{value:c});const{history:h}=t;o&&h.pushState(h.state,"",o);break}case"ctrl-space":hi(e.mode);break;case"new-configuration":e.configuration.next({...r.content,type:"reset"});break;case"update":e.configuration.next({...r.content,type:"update"});break;case"focus-element":e.focus.next(r.content);break;case"set-source-map":{const{content:s}=r;e.setSourceMap.next(Object.entries(s).reduce((o,[c,f])=>{try{const{href:h}=new URL(c,t.location.href),d=typeof f=="string"?{headers:{},query:{},to:f}:f;o[h]={originalFrom:c,...d}}catch{}return o},{}));break}}},ma=(t,e)=>new fi(va(t,e),t,aa(t.parent)),ba=t=>e=>{e.ctrlKey&&e.key===" "&&(e.preventDefault(),hi(t.mode),t.focus.next(void 0))},ya=([t,e])=>ut(e.then(n=>[t,n])),_a=([t,e])=>{const n={label:t,properties:{},type:"layout"},{__manifest:r=Promise.resolve(n)}=e,s=r.then(o=>[e,{__manifest:{...n,...o},tag:t}]).catch(()=>[e,{__manifest:n,tag:t}]);return ut(s)},ga=(t,e)=>ut(e.map(n=>[n,t.whenDefined(n)])).pipe(Pe(ya),Pe(_a)),wa=500,kn=(t,e)=>{e instanceof Error&&ci(t,e)},ka=(t,e,n)=>e.pipe(Pe(([,{__manifest:{label:r,description:s,...o},tag:c}])=>(delete o.mocks,Fs({info:{...ao({description:s,label:r}),...o},tag:c}))),eo(wa),J(r=>r.length>0)).subscribe({error:r=>kn(t,r),next:r=>n(r)}),$a=(t,e,n)=>n.pipe(ue(([,{__manifest:{mocks:r={}},tag:s}])=>[s,r])).subscribe({error:r=>kn(t,r),next:r=>{e.mocks.next(r)}});async function di(t,e,n,{addInfo:r,tags:s}){const{subscription:o}=this;if(n){const c=ga(this.customElements,s);return na(n,this,f=>kn(t,f)).then(()=>{o.add(ka(t,c,r)),o.add($a(t,e,c))})}}const pi=(t,e)=>{const{document:n}=t;let r=e.firstElementChild;return r===null&&(r=n.createElement("div"),r.style.height="inherit",r.style.display="flex",e.appendChild(r)),r};async function pn(t,e){const n=ea(),{proxyWindow:r=this}=this;return ra({content:t,sources:{importmap:{},uris:[]}},pi(this,e),{eventBus:n,proxyWindow:r})}function vi(t){pi(this,t).remove()}var Aa=Object.defineProperty,Sa=(t,e,n)=>e in t?Aa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,wr=(t,e,n)=>(Sa(t,typeof e!="symbol"?e+"":e,n),n);function kr(t,e,n){const{properties:r,attributes:s,booleanAttributes:o=[]}=t,c=Object.assign(Object.fromEntries(Zr(o).map(h=>[h,!0])),{...s,...r});return e(c).map(({url:h,method:d="GET",notify:_=!1,handler:w=()=>Promise.resolve(new Response)})=>{var S;const E=ko({...h,method:d},c),P=new URL(E.pathname,(S=E.origin)!=null?S:n);return[P.href,d,(T,V)=>w(T,V).finally(()=>{_&&this.notify(mi(d,P))})]})}const xa=(t,e)=>{const{href:n,search:r}=t;return n.replace(/\?$/,"").substring(0,n.length-r.length).match(new RegExp(`^${e}$`))!==null},Ea=(t,e)=>{const{href:n}=t;return n.match(new RegExp(`^${e.replace(/\/$/,"")}/`))!==null};class Ia extends Map{constructor(e){super(),wr(this,"notify"),wr(this,"__urlMap",new Map),this.notify=e}add(e,n){var r,s;const{method:o,url:c}=e,f=(r=this.get(o))!=null?r:new Map,h=(s=this.__urlMap.get(o))!=null?s:[];f.set(c,n),h.push(c),this.set(o,f),this.__urlMap.set(o,h)}match(e){var n;const{method:r,url:s}=e,o=this.__urlMap.get(r);if(o===void 0)return;const c=o.reduce((f,h,d,_)=>{if(xa(s,h)||Ea(s,h)){if(f===void 0)return d;if(_[f].length<h.length)return d}return f},void 0);if(c!==void 0)return(n=this.get(r))==null?void 0:n.get(o[c])}}const Oa=t=>([e,n,r])=>t.add({method:n,url:e},r);async function $r(t,e,n,r){const s=Oa(t);return Array.isArray(e)?Promise.all(e.map(o=>kr.call(t,o,n,r)).flat().map(s)).then(We):Promise.all(kr.call(t,e,n,r).map(s)).then(We)}var Ar;const Sr=(Ar=window.__BACKOFFICE_CONFIGURATOR_PREVIEW_TIMEOUT__)!=null?Ar:5e3,Ta=t=>t.includes("-"),xr=t=>({data:{tag:t},description:"preview.notifications.no-webcomponent-definition.description",message:"preview.notifications.no-webcomponent-definition.message",status:"warning"});async function Ca(t,e,n,r=[]){const{location:{href:s},fetch:o}=this,c=ei(this),f=new Ia(this.notify.bind(this));await Promise.all(r.map(async d=>{var _;let w=()=>[];const S=await Promise.race([kt(fn(Sr)),kt(e.mocks.pipe(J(([P])=>P===d),Te(1)))]);if(S===0)this.notify(xr(d));else{const[,{fetch:P}]=S;P!==void 0&&(w=P)}const E=(_=n.get(d))!=null?_:[];return $r(f,E,w,s)})).catch(d=>d instanceof Error&&ci(t,d));const h=async(d,_)=>{var w;const S=ti(c,d),E=f.match({method:(w=_==null?void 0:_.method)!=null?w:"GET",url:S});return E!==void 0?E(S,_).then(P=>P):o(d,_)};if(this.proxyWindow){const d=Object.assign(h,{update:async _=>{let w=()=>[];if(Ta(_.tag)){const S=await Promise.race([kt(fn(Sr)),kt(e.mocks.pipe(J(([E])=>E===_.tag),Te(1)))]);if(S===0)this.notify(xr(_.tag));else{const[,{fetch:E}]=S;E!==void 0&&(w=E)}}return $r(f,_,w,s)}});this.fetch=d,this.proxyWindow.fetch=d}}function La(t,e){const{href:n,origin:r,pathname:s}=new URL(t??"",this.location.href);let o=n;return r===this.location.origin&&(o=`{ your domain }${s}`),this.notify({data:{nextUrl:o,target:e??"[undefined]"},description:"preview.notifications.navigation-event.description.open",message:"preview.notifications.navigation-event.message",status:"default"}),this}function Pa(t,e,n){const{href:r,origin:s,pathname:o}=new URL(n);let c=r;s===this.location.origin&&(c=`${o}`),this.notify({data:{nextUrl:c},description:"preview.notifications.navigation-event.description.pushState",message:"preview.notifications.navigation-event.message",status:"default"})}function Ma(t,e,n){const{href:r,origin:s,pathname:o,search:c}=new URL(n);let f=r;s===this.location.origin&&(f=`${o}${c}`),this.notify({data:{nextUrl:f},description:"preview.notifications.navigation-event.description.replaceState",message:"preview.notifications.navigation-event.message",status:"info"})}function ja(t){return new Proxy(t,{get:(e,n)=>n==="pushState"?(r,s,o)=>{Pa.call(this,r,s,new URL(o??"",new URL(this.document.baseURI,this.location.href)))}:n==="replaceState"?(r,s,o)=>{Ma.call(this,r,s,new URL(o??"",new URL(this.document.baseURI,this.location.href)))}:e[n]})}class Er extends Map{get length(){return this.size}clear(){super.clear()}getItem(e){var n;return(n=super.get(e))!=null?n:null}key(){return null}removeItem(e){super.delete(e)}setItem(e,n){super.set(e,n)}}const Ra=t=>t.tagName==="A";function Na(t){const{prototype:{createElement:e}}=Document;return Document.prototype.createElement=function(r,s){const o=e.call(this,r,s);if(Ra(o)){const c=()=>{var f;return t.notify({data:{href:co(t.location.origin,new URL(o.href,t.location.href)),target:(f=o.getAttribute("target"))!=null?f:"_self"},description:"preview.notifications.anchor.description",message:"preview.notifications.anchor.message",status:"info"})};Object.defineProperty(o,"click",{get(){return c},set:We})}return o},()=>{Document.prototype.createElement=e}}function Fa(t,e){let n=t.fetch.bind(t);const r={notify:_=>e.next(_)},s=new Er,o=new Er,c=Object.assign(t,r),f=new Proxy(c,{get(_,w,S){if(w==="fetch")return n;if(w==="history")return ja.call(_,_.history);if(w==="open")return La.bind(_);if(w==="localStorage")return s;if(w==="sessionStorage")return o;const E=Reflect.get(_,w);return typeof E!="function"?E:function(...T){return Reflect.apply(E,this===S?t:this,T)}},set(_,w,S){return w==="fetch"?(n=S,!0):Reflect.set(_,w,S)}}),h=Object.assign(c,{proxyWindow:f}),d=Na(h);return{sandbox:h,unpatch:d}}var Ha=Object.defineProperty,Wa=(t,e,n)=>e in t?Ha(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ir=(t,e,n)=>(Wa(t,typeof e!="symbol"?e+"":e,n),n);function Ua(t,e){const{document:n}=t,r=n.createElement("div"),s="";r.style.display=s,r.style.position="fixed",r.style.width="100vw",r.style.height="100%",r.style.backgroundColor="rgba(0, 0, 0, 0.05)",r.style.zIndex=`${$o}`;const o=()=>r.style.display===s,c=()=>o()?r.style.display="none":r.style.display=s,f=e.pipe(J(h=>t.__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__?h==="interact":!0)).subscribe(h=>{switch(h){case"interact":t.dispatchEvent(new Event("mousedown")),r.style.display="none";break;case"select":r.style.display=s;break;case 0:default:c();break}});return n.body.appendChild(r),{cleanup:()=>f.unsubscribe(),overlay:r}}const Ba=t=>{const e=t.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.height="inherit",t.body.appendChild(e),e};function Da(t){const e=t;return Object.assign(t,{bootstrap:di.bind(e),mocks:{fetch:new Map},subscription:new oe,unmount:vi.bind(e),update:pn.bind(e)})}class Va{constructor(){Ir(this,"_results",new Map),Ir(this,"_queue",Promise.resolve())}add(e){const r=[...e].map(s=>{let o,c;const f=new Promise((h,d)=>{o=h,c=d});return this._queue=this._queue.then(()=>s()).then(h=>{o(h)}).catch(h=>c(h)),f});return Promise.allSettled(r)}get(e){return this._results.get(e)}}const qa=t=>e=>{e.forEach(n=>{n.status==="rejected"&&t.next({data:{reason:n.reason},description:"preview.notifications.lifecycle.description",message:"preview.notifications.lifecycle.message",status:"error"})})},Ga=t=>e=>{t.infos.next(e),e.forEach(({tag:n})=>t.uppercaseTags.add(n.toUpperCase()))},Ya=(t,e,n,r)=>{const s=new Va,o=r.configuration.pipe(to(r.swSourceMapAck)).subscribe(([c])=>{const{configuration:f}=c,{content:h}=f;let d;if(c.type==="reset"){const{contexts:_,tags:w}=c;d=s.add([()=>vi.call(t,e),()=>di.call(t,n,r,f,{addInfo:Ga(r),tags:w}),()=>Ca.call(t,n,r,_,c.tags),()=>pn.call(t,h,e).finally(()=>r.updated.next(0))])}else{const{context:_}=c;d=s.add([()=>{var w,S,E;return(E=(w=t.proxyWindow)==null?void 0:(S=w.fetch).update)==null?void 0:E.call(S,_)},()=>pn.call(t,h,e).finally(()=>r.updated.next(0))])}d.then(qa(r.notification)).catch(We)});return()=>o.unsubscribe()},za=t=>{const{body:e}=t;e.style.height="100%",e.style.padding="0",e.style.margin="0"},Ja=(t,e)=>{const{location:{origin:n,port:r,protocol:s}}=t;return!(n!==e.origin||r!==e.port||s!==e.protocol)},mi=(t,e)=>({data:{method:t,url:e.href.substring(e.origin.length)},description:"preview.notifications.fetch-event.description",message:"preview.notifications.fetch-event.message",status:"info"}),Ka=(t,e)=>{const n=ei(t),{document:r,parent:s}=t;if(s===t)return;const o=t.fetch.bind(t);t.fetch=(c,f)=>{var h;const d=ti(n,c);return Ja(r,d)&&e.next(mi((h=f==null?void 0:f.method)!=null?h:"GET",d)),o(c,f)}},Qa=(t,e,n)=>{za(t.document),Ka(t,n.notification);const{cleanup:r}=Ua(t,n.mode.asObservable()),s=po(t.document,n.focus.asObservable(),n.mode.asObservable()),o=Ba(t.document),c=Da(t),{sandbox:f,unpatch:h}=Fa(c,n.notification),d=Ya(f,o,e,n);return{cleanup:()=>{d(),h(),s(),r()},sandboxedWindow:f}};function Xa(t){const e=new oe;return e.add(t.updated.subscribe(()=>this.send({content:{},type:"updated"}))),e.add(t.infos.subscribe(n=>this.send({content:n,type:"tag-info"}))),e.add(t.notification.subscribe(n=>this.send({content:n,type:"notification"}))),e.add(t.mode.subscribe(n=>this.send({content:{mode:n},type:"ctrl-space"}))),()=>e.unsubscribe()}function Za(t){const e=new oe;return e.add(t.setSourceMap.subscribe(n=>{this.ackSend({content:n,type:"set-source-map"}).then(()=>t.swSourceMapAck.next(0)).catch(We)})),()=>e.unsubscribe()}function ec(t,...e){const n=e.map(({type:r,handler:s})=>(t.addEventListener(r,s),()=>t.removeEventListener(r,s)));return()=>{n.forEach(r=>r())}}function tc(t,e){t.addEventListener("unload",()=>{t.subscription.unsubscribe(),e.forEach(n=>n())})}(async t=>{const e=ha(),n=await pa(t),r=ma(t,e),s=Za.call(n,e),o=Xa.call(r,e),c=ec(t,{handler:ba(e),type:"keydown"},{handler:gr(r,"mousemove"),type:"mousemove"},{handler:gr(r,"mousedown"),type:"mousedown"},{handler:oa(t,r,e),type:"mousedown"}),{cleanup:f,sandboxedWindow:h}=Qa(t,r,e);tc(h,[f,c,o,s,()=>r.disconnect(),()=>n.disconnect()])})(window).catch(t=>{throw console.error(`[preview] Error Boundary: ${String(t)}`),t});
|