@micro-lc/preview 0.4.0 → 0.4.1

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