@micro-lc/preview 0.5.2 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -0
- package/package.json +11 -11
- package/website/.vite/manifest.json +15 -0
- package/website/assets/errors-xGUFKyGs.js +1 -0
- package/website/assets/index-eRjzhw12.js +25 -0
- package/website/development/.vite/manifest.json +15 -0
- package/website/development/assets/errors-PsWGnPGW.js +23 -0
- package/website/development/assets/{index-d2f4fff8.js → index-Im8nnmAE.js} +492 -443
- package/website/development/index.html +1 -2
- package/website/development/service-worker.js +54 -54
- package/website/index.html +1 -2
- package/website/service-worker.js +2 -2
- package/website/assets/errors-af3a2945.js +0 -1
- package/website/assets/index-51922652.js +0 -19
- package/website/development/assets/errors-5a0ccde7.js +0 -23
- package/website/development/manifest.json +0 -15
- package/website/manifest.json +0 -15
@@ -1,19 +0,0 @@
|
|
1
|
-
var as=Object.defineProperty;var cs=(t,e,n)=>e in t?as(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var se=(t,e,n)=>(cs(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 us=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,y=s.mapOverrides;let k=s.nonce;if(!k&&e){const u=document.querySelector("script[nonce]");u&&(k=u.nonce||u.getAttribute("nonce"))}const E=F(s.onerror||n),x=s.onpolyfill?F(s.onpolyfill):()=>{console.log("%c^^ Module TypeError above is polyfilled and can be ignored ^^","font-weight:900;color:#391")},{revokeBlobURLs:M,noLoadEventRetriggers:C,enforceIntegrity:U}=s;function F(u){return typeof u=="string"?self[u]:u}const j=Array.isArray(s.polyfillEnable)?s.polyfillEnable:[],H=j.includes("css-modules"),G=j.includes("json-modules"),ft=!navigator.userAgentData&&!!navigator.userAgent.match(/Edge\/\d+\.\d+/),ue=e?document.baseURI:`${location.protocol}//${location.host}${location.pathname.includes("/")?location.pathname.slice(0,location.pathname.lastIndexOf("/")+1):location.pathname}`,te=(u,p="text/javascript")=>URL.createObjectURL(new Blob([u],{type:p}));let{skip:_e}=s;if(Array.isArray(_e)){const u=_e.map(p=>new URL(p,ue).href);_e=p=>u.some(b=>b[b.length-1]==="/"&&p.startsWith(b)||p===b)}else if(typeof _e=="string"){const u=new RegExp(_e);_e=p=>u.test(p)}const wi=u=>setTimeout(()=>{throw u}),Lt=u=>{(self.reportError||t&&window.safari&&console.error||wi)(u),E(u)};function qe(u){return u?` imported from ${u}`:""}let ht=!1;function ki(){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 Ai=/\\/g;function Tt(u){if(u.indexOf(":")===-1)return!1;try{return new URL(u),!0}catch{return!1}}function Sn(u,p){return Ee(u,p)||(Tt(u)?u:Ee("./"+u,p))}function Ee(u,p){const b=p.indexOf("#"),$=p.indexOf("?");if(b+$>-2&&(p=p.slice(0,b===-1?$:$===-1||$>b?b:$)),u.indexOf("\\")!==-1&&(u=u.replace(Ai,"/")),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 g=p.slice(0,p.indexOf(":")+1);let A;if(p[g.length+1]==="/"?g!=="file:"?(A=p.slice(g.length+2),A=A.slice(A.indexOf("/")+1)):A=p.slice(8):A=p.slice(g.length+(p[g.length]==="/")),u[0]==="/")return p.slice(0,p.length-A.length-1)+u;const S=A.slice(0,A.lastIndexOf("/")+1)+u,I=[];let T=-1;for(let O=0;O<S.length;O++){if(T!==-1){S[O]==="/"&&(I.push(S.slice(T,O+1)),T=-1);continue}else if(S[O]==="."){if(S[O+1]==="."&&(S[O+2]==="/"||O+2===S.length)){I.pop(),O+=2;continue}else if(S[O+1]==="/"||O+1===S.length){O+=1;continue}}for(;S[O]==="/";)O++;T=O}return T!==-1&&I.push(S.slice(T)),p.slice(0,p.length-A.length)+I.join("")}}function En(u,p,b){const $={imports:Object.assign({},b.imports),scopes:Object.assign({},b.scopes)};if(u.imports&&On(u.imports,$.imports,p,b),u.scopes)for(let g in u.scopes){const A=Sn(g,p);On(u.scopes[g],$.scopes[A]||($.scopes[A]={}),p,b)}return $}function Pt(u,p){if(p[u])return u;let b=u.length;do{const $=u.slice(0,b+1);if($ in p)return $}while((b=u.lastIndexOf("/",b-1))!==-1)}function xn(u,p){const b=Pt(u,p);if(b){const $=p[b];return $===null?void 0:$+u.slice(b.length)}}function Mt(u,p,b){let $=b&&Pt(b,u.scopes);for(;$;){const g=xn(p,u.scopes[$]);if(g)return g;$=Pt($.slice(0,$.lastIndexOf("/")),u.scopes)}return xn(p,u.imports)||p.indexOf(":")!==-1&&p}function On(u,p,b,$){for(let g in u){const A=Ee(g,b)||g;if((!o||!y)&&p[A]&&p[A]!==u[A])throw Error(`Rejected map override "${A}" from ${p[A]} to ${u[A]}.`);let S=u[g];if(typeof S!="string")continue;const I=Mt($,Ee(S,b)||S,b);if(I){p[A]=I;continue}console.warn(`Mapping "${g}" -> "${u[g]}" does not resolve`)}}let me=!e&&(0,eval)("u=>import(u)"),Ge;const $i=e&&new Promise(u=>{const p=Object.assign(document.createElement("script"),{src:te("self._d=u=>import(u)"),ep:!0});p.setAttribute("nonce",k),p.addEventListener("load",()=>{if(!(Ge=!!(me=self._d))){let b;window.addEventListener("error",$=>b=$),me=($,g)=>new Promise((A,S)=>{const I=Object.assign(document.createElement("script"),{type:"module",src:te(`import*as m from'${$}';self._esmsi=m`)});b=void 0,I.ep=!0,k&&I.setAttribute("nonce",k),I.addEventListener("error",T),I.addEventListener("load",T);function T(O){document.head.removeChild(I),self._esmsi?(A(self._esmsi,ue),self._esmsi=void 0):(S(!(O instanceof Event)&&O||b&&b.error||new Error(`Error loading ${g&&g.errUrl||$} (${I.src}).`)),b=void 0)}document.head.appendChild(I)})}document.head.removeChild(p),delete self._d,u()}),document.head.appendChild(p)});let dt=!1,pt=!1;const jt=e&&HTMLScriptElement.supports;let Ne=jt&&jt.name==="supports"&&jt("importmap"),mt=Ge;const In="import.meta",Cn='import"x"assert{type:"css"}',Si='import"x"assert{type:"json"}';let Ei=Promise.resolve($i).then(()=>{if(Ge)return e?new Promise(u=>{const p=document.createElement("iframe");p.style.display="none",p.setAttribute("nonce",k);function b({data:I}){Array.isArray(I)&&I[0]==="esms"&&(Ne=I[1],mt=I[2],pt=I[3],dt=I[4],u(),document.head.removeChild(p),window.removeEventListener("message",b,!1))}window.addEventListener("message",b,!1);const $=`<script nonce=${k||""}>b=(s,type='text/javascript')=>URL.createObjectURL(new Blob([s],{type}));document.head.appendChild(Object.assign(document.createElement('script'),{type:'importmap',nonce:"${k}",innerText:\`{"imports":{"x":"\${b('')}"}}\`}));Promise.all([${Ne?"true,true":`'x',b('${In}')`}, ${H?`b('${Cn}'.replace('x',b('','text/css')))`:"false"}, ${G?`b('${Si}'.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 g=!1,A=!1;function S(){if(!g){A=!0;return}const I=p.contentDocument;if(I&&I.head.childNodes.length===0){const T=I.createElement("script");k&&T.setAttribute("nonce",k),T.innerHTML=$.slice(15+(k?k.length:0),-9),I.head.appendChild(T)}}p.onload=S,document.head.appendChild(p),g=!0,"srcdoc"in p?p.srcdoc=$:p.contentDocument.write($),A&&S()}):Promise.all([Ne||me(te(In)).then(()=>mt=!0,n),H&&me(te(Cn.replace("x",te("","text/css")))).then(()=>pt=!0,n),G&&me(te(jsonModulescheck.replace("x",te("{}","text/json")))).then(()=>dt=!0,n)])}),V,vt,Rt,Ye=2<<19;const Ln=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(u,p){const b=u.length;let $=0;for(;$<b;)p[$]=u.charCodeAt($++)}:function(u,p){const b=u.length;let $=0;for(;$<b;){const g=u.charCodeAt($);p[$++]=(255&g)<<8|g>>>8}},xi="xportmportlassetaromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";let B,Tn,R;function Oi(u,p="@"){B=u,Tn=p;const b=2*B.length+(2<<18);if(b>Ye||!V){for(;b>Ye;)Ye*=2;vt=new ArrayBuffer(Ye),Ln(xi,new Uint16Array(vt,16,105)),V=function(S,I,T){var O=new S.Int8Array(T),w=new S.Int16Array(T),a=new S.Int32Array(T),re=new S.Uint8Array(T),Y=new S.Uint16Array(T),J=1024;function ie(){var i=0,l=0,m=0,_=0,v=0,L=0,Ae=0;Ae=J,J=J+10240|0,O[795]=1,w[395]=0,w[396]=0,a[67]=a[2],O[796]=0,a[66]=0,O[794]=0,a[68]=Ae+2048,a[69]=Ae,O[797]=0,i=(a[3]|0)+-2|0,a[70]=i,l=i+(a[64]<<1)|0,a[71]=l;e:for(;;){if(m=i+2|0,a[70]=m,i>>>0>=l>>>0){v=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)&&et(m)|0&&!(Z(i+4|0,16,10)|0)&&(we(),(O[795]|0)==0)){v=9;break e}else v=17;break}case 105:{et(m)|0&&!(Z(i+4|0,26,10)|0)&&D(),v=17;break}case 59:{v=17;break}case 47:switch(w[i+4>>1]|0){case 47:{Kt();break n}case 42:{zt(1);break n}default:{v=16;break e}}default:{v=16;break e}}while(0);(v|0)==17&&(v=0,a[67]=a[70]),i=a[70]|0,l=a[71]|0}(v|0)==9?(i=a[70]|0,a[67]=i,v=19):(v|0)==16?(O[795]=0,a[70]=i,v=19):(v|0)==18&&(O[794]|0?i=0:(i=m,v=19));do if((v|0)==19){e:for(;;){if(l=i+2|0,a[70]=l,_=l,i>>>0>=(a[71]|0)>>>0){v=82;break}n:do switch(w[l>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(w[396]|0)&&et(l)|0&&!(Z(i+4|0,16,10)|0)&&we(),v=81;break}case 105:{et(l)|0&&!(Z(i+4|0,26,10)|0)&&D(),v=81;break}case 99:{et(l)|0&&!(Z(i+4|0,36,8)|0)&&tt(w[i+12>>1]|0)|0&&(O[797]=1),v=81;break}case 40:{_=a[68]|0,l=w[396]|0,v=l&65535,a[_+(v<<3)>>2]=1,m=a[67]|0,w[396]=l+1<<16>>16,a[_+(v<<3)+4>>2]=m,v=81;break}case 41:{if(l=w[396]|0,!(l<<16>>16)){v=36;break e}l=l+-1<<16>>16,w[396]=l,m=w[395]|0,m<<16>>16&&(L=a[(a[69]|0)+((m&65535)+-1<<2)>>2]|0,(a[L+20>>2]|0)==(a[(a[68]|0)+((l&65535)<<3)+4>>2]|0))&&(l=L+4|0,a[l>>2]|0||(a[l>>2]=_),a[L+12>>2]=i+4,w[395]=m+-1<<16>>16),v=81;break}case 123:{v=a[67]|0,_=a[61]|0,i=v;do if((w[v>>1]|0)==41&(_|0)!=0&&(a[_+4>>2]|0)==(v|0))if(l=a[62]|0,a[61]=l,l){a[l+28>>2]=0;break}else{a[57]=0;break}while(0);_=a[68]|0,m=w[396]|0,v=m&65535,a[_+(v<<3)>>2]=O[797]|0?6:2,w[396]=m+1<<16>>16,a[_+(v<<3)+4>>2]=i,O[797]=0,v=81;break}case 125:{if(i=w[396]|0,!(i<<16>>16)){v=49;break e}_=a[68]|0,v=i+-1<<16>>16,w[396]=v,(a[_+((v&65535)<<3)>>2]|0)==4&&ve(),v=81;break}case 39:{Q(39),v=81;break}case 34:{Q(34),v=81;break}case 47:switch(w[i+4>>1]|0){case 47:{Kt();break n}case 42:{zt(1);break n}default:{i=a[67]|0,_=w[i>>1]|0;t:do if(Wi(_)|0)switch(_<<16>>16){case 46:if(((w[i+-2>>1]|0)+-48&65535)<10){v=66;break t}else{v=69;break t}case 43:if((w[i+-2>>1]|0)==43){v=66;break t}else{v=69;break t}case 45:if((w[i+-2>>1]|0)==45){v=66;break t}else{v=69;break t}default:{v=69;break t}}else{switch(_<<16>>16){case 41:if(Vi(a[(a[68]|0)+(Y[396]<<3)+4>>2]|0)|0){v=69;break t}else{v=66;break t}case 125:break;default:{v=66;break t}}l=a[68]|0,m=Y[396]|0,!(Hi(a[l+(m<<3)+4>>2]|0)|0)&&(a[l+(m<<3)>>2]|0)!=6?v=66:v=69}while(0);t:do if((v|0)==66)if(v=0,gt(i)|0)v=69;else{switch(_<<16>>16){case 0:{v=69;break t}case 47:{if(O[796]|0){v=69;break t}break}default:}m=a[3]|0,l=_;do{if(i>>>0<=m>>>0)break;i=i+-2|0,a[67]=i,l=w[i>>1]|0}while(!(Jt(l)|0));if(kt(l)|0){do{if(i>>>0<=m>>>0)break;i=i+-2|0,a[67]=i}while(kt(w[i>>1]|0)|0);if(Bi(i)|0){tr(),O[796]=0,v=81;break n}else i=1}else i=1}while(0);(v|0)==69&&(tr(),i=0),O[796]=i,v=81;break n}}case 96:{_=a[68]|0,m=w[396]|0,v=m&65535,a[_+(v<<3)+4>>2]=a[67],w[396]=m+1<<16>>16,a[_+(v<<3)>>2]=3,ve(),v=81;break}default:v=81}while(0);(v|0)==81&&(v=0,a[67]=a[70]),i=a[70]|0}if((v|0)==36){ne(),i=0;break}else if((v|0)==49){ne(),i=0;break}else if((v|0)==82){i=O[794]|0?0:(w[395]|w[396])<<16>>16==0;break}}while(0);return J=Ae,i|0}function we(){var i=0,l=0,m=0,_=0,v=0,L=0,Ae=0,Ce=0,Qt=0,Xt=0,Zt=0,en=0,W=0,q=0;Ce=a[70]|0,Qt=a[63]|0,q=Ce+12|0,a[70]=q,m=P(1)|0,i=a[70]|0,(i|0)==(q|0)&&!(wt(m)|0)||(W=3);e:do if((W|0)==3){n:do switch(m<<16>>16){case 123:{for(a[70]=i+2,i=P(1)|0,m=a[70]|0;;){if(nt(i)|0?(Q(i),i=(a[70]|0)+2|0,a[70]=i):(Ie(i)|0,i=a[70]|0),P(1)|0,i=Xe(m,i)|0,i<<16>>16==44&&(a[70]=(a[70]|0)+2,i=P(1)|0),l=m,m=a[70]|0,i<<16>>16==125){W=15;break}if((m|0)==(l|0)){W=12;break}if(m>>>0>(a[71]|0)>>>0){W=14;break}}if((W|0)==12){ne();break e}else if((W|0)==14){ne();break e}else if((W|0)==15){a[70]=m+2;break n}break}case 42:{a[70]=i+2,P(1)|0,q=a[70]|0,Xe(q,q)|0;break}default:{switch(O[795]=0,m<<16>>16){case 100:{switch(Ce=i+14|0,a[70]=Ce,(P(1)|0)<<16>>16){case 97:{l=a[70]|0,!(Z(l+2|0,56,8)|0)&&(v=l+10|0,kt(w[v>>1]|0)|0)&&(a[70]=v,P(0)|0,W=22);break}case 102:{W=22;break}case 99:{l=a[70]|0,!(Z(l+2|0,36,8)|0)&&(_=l+10|0,q=w[_>>1]|0,tt(q)|0|q<<16>>16==123)&&(a[70]=_,L=P(1)|0,L<<16>>16!=123)&&(en=L,W=31);break}default:}t:do if((W|0)==22&&(Ae=a[70]|0,(Z(Ae+2|0,64,14)|0)==0)){if(m=Ae+16|0,l=w[m>>1]|0,!(tt(l)|0))switch(l<<16>>16){case 40:case 42:break;default:break t}a[70]=m,l=P(1)|0,l<<16>>16==42&&(a[70]=(a[70]|0)+2,l=P(1)|0),l<<16>>16!=40&&(en=l,W=31)}while(0);if((W|0)==31&&(Xt=a[70]|0,Ie(en)|0,Zt=a[70]|0,Zt>>>0>Xt>>>0)){He(i,Ce,Xt,Zt),a[70]=(a[70]|0)+-2;break e}He(i,Ce,0,0),a[70]=i+12;break e}case 97:{a[70]=i+10,P(0)|0,i=a[70]|0,W=35;break}case 102:{W=35;break}case 99:{if(!(Z(i+2|0,36,8)|0)&&(l=i+10|0,Jt(w[l>>1]|0)|0)){a[70]=l,q=P(1)|0,W=a[70]|0,Ie(q)|0,q=a[70]|0,He(W,q,W,q),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=P(1)|0,i<<16>>16==42&&(a[70]=(a[70]|0)+2,i=P(1)|0),W=a[70]|0,Ie(i)|0,q=a[70]|0,He(W,q,W,q),a[70]=(a[70]|0)+-2;break e}i=i+4|0,a[70]=i,O[795]=0;t:for(;;){switch(a[70]=i+2,q=P(1)|0,i=a[70]|0,(Ie(q)|0)<<16>>16){case 91:case 123:break t;default:}if(l=a[70]|0,(l|0)==(i|0))break e;if(He(i,l,i,l),(P(1)|0)<<16>>16!=44)break;i=a[70]|0}a[70]=(a[70]|0)+-2;break e}}while(0);if(q=(P(1)|0)<<16>>16==102,i=a[70]|0,q&&!(Z(i+2|0,50,6)|0))for(a[70]=i+8,ke(Ce,P(1)|0),i=Qt|0?Qt+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 D(){var i=0,l=0,m=0,_=0,v=0,L=0;v=a[70]|0,i=v+12|0,a[70]=i;e:do switch((P(1)|0)<<16>>16){case 40:{if(l=a[68]|0,L=w[396]|0,m=L&65535,a[l+(m<<3)>>2]=5,i=a[70]|0,w[396]=L+1<<16>>16,a[l+(m<<3)+4>>2]=i,(w[a[67]>>1]|0)!=46){switch(a[70]=i+2,L=P(1)|0,Yt(v,a[70]|0,0,i),l=a[61]|0,m=a[69]|0,v=w[395]|0,w[395]=v+1<<16>>16,a[m+((v&65535)<<2)>>2]=l,L<<16>>16){case 39:{Q(39);break}case 34:{Q(34);break}default:{a[70]=(a[70]|0)+-2;break e}}switch(i=(a[70]|0)+2|0,a[70]=i,(P(1)|0)<<16>>16){case 44:{a[70]=(a[70]|0)+2,P(1)|0,v=a[61]|0,a[v+4>>2]=i,L=a[70]|0,a[v+16>>2]=L,O[v+24>>0]=1,a[70]=L+-2;break e}case 41:{w[396]=(w[396]|0)+-1<<16>>16,L=a[61]|0,a[L+4>>2]=i,a[L+12>>2]=(a[70]|0)+2,O[L+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,(P(1)|0)<<16>>16==109&&(l=a[70]|0,(Z(l+2|0,44,6)|0)==0)){if(i=a[67]|0,!(rr(i)|0)&&(w[i>>1]|0)==46)break e;Yt(v,v,l+8|0,2)}break}case 42:case 39:case 34:{_=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=P(1)|0,nt(i)|0)Q(i);else if(i<<16>>16==125){_=33;break}i=(a[70]|0)+2|0,a[70]=i}if((_|0)==33&&(a[70]=(a[70]|0)+2),L=(P(1)|0)<<16>>16==102,i=a[70]|0,L&&Z(i+2|0,50,6)|0){ne();break e}if(a[70]=i+8,i=P(1)|0,nt(i)|0){ke(v,i);break e}else{ne();break e}}default:(a[70]|0)==(i|0)?a[70]=v+10:_=18}while(0);do if((_|0)==18){if(w[396]|0){a[70]=(a[70]|0)+-2;break}for(i=a[71]|0,l=a[70]|0;;){if(l>>>0>=i>>>0){_=25;break}if(m=w[l>>1]|0,nt(m)|0){_=23;break}L=l+2|0,a[70]=L,l=L}if((_|0)==23){ke(v,m);break}else if((_|0)==25){ne();break}}while(0)}function ke(i,l){i=i|0,l=l|0;var m=0,_=0;switch(m=(a[70]|0)+2|0,l<<16>>16){case 39:{Q(39),_=5;break}case 34:{Q(34),_=5;break}default:ne()}do if((_|0)==5){if(Yt(i,m,a[70]|0,1),a[70]=(a[70]|0)+2,l=P(0)|0,i=l<<16>>16==97,i?(m=a[70]|0,Z(m+2|0,78,10)|0&&(_=11)):(m=a[70]|0,l<<16>>16==119&&(w[m+2>>1]|0)==105&&(w[m+4>>1]|0)==116&&(w[m+6>>1]|0)==104||(_=11)),(_|0)==11){a[70]=m+-2;break}if(a[70]=m+((i?6:4)<<1),(P(1)|0)<<16>>16!=123){a[70]=m;break}i=a[70]|0,l=i;e:for(;;){switch(a[70]=l+2,l=P(1)|0,l<<16>>16){case 39:{Q(39),a[70]=(a[70]|0)+2,l=P(1)|0;break}case 34:{Q(34),a[70]=(a[70]|0)+2,l=P(1)|0;break}default:l=Ie(l)|0}if(l<<16>>16!=58){_=20;break}switch(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16){case 39:{Q(39);break}case 34:{Q(34);break}default:{_=24;break e}}switch(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16){case 125:{_=29;break e}case 44:break;default:{_=28;break e}}if(a[70]=(a[70]|0)+2,(P(1)|0)<<16>>16==125){_=29;break}l=a[70]|0}if((_|0)==20){a[70]=m;break}else if((_|0)==24){a[70]=m;break}else if((_|0)==28){a[70]=m;break}else if((_|0)==29){_=a[61]|0,a[_+16>>2]=i,a[_+12>>2]=(a[70]|0)+2;break}}while(0)}function gt(i){i=i|0;e:do switch(w[i>>1]|0){case 100:switch(w[i+-2>>1]|0){case 105:{i=z(i+-4|0,88,2)|0;break e}case 108:{i=z(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=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=z(i+-4|0,98,4)|0;break e}case 117:{i=z(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=z(i+-8|0,118,6)|0;break e}case 112:{i=z(i+-8|0,130,2)|0;break e}default:{i=0;break e}}else i=0;break}case 107:{i=z(i+-2|0,134,4)|0;break}case 110:{i=i+-2|0,Ze(i,105)|0?i=1:i=z(i,142,5)|0;break}case 111:{i=Ze(i+-2|0,100)|0;break}case 114:{i=z(i+-2|0,152,7)|0;break}case 116:{i=z(i+-2|0,166,4)|0;break}case 119:switch(w[i+-2>>1]|0){case 101:{i=Ze(i+-4|0,110)|0;break e}case 111:{i=z(i+-4|0,174,3)|0;break e}default:{i=0;break e}}default:i=0}while(0);return i|0}function ve(){var i=0,l=0,m=0,_=0;l=a[71]|0,m=a[70]|0;e:for(;;){if(i=m+2|0,m>>>0>=l>>>0){l=10;break}switch(w[i>>1]|0){case 96:{l=7;break e}case 36:{if((w[m+4>>1]|0)==123){l=6;break e}break}case 92:{i=m+4|0;break}default:}m=i}(l|0)==6?(i=m+4|0,a[70]=i,l=a[68]|0,_=w[396]|0,m=_&65535,a[l+(m<<3)>>2]=4,w[396]=_+1<<16>>16,a[l+(m<<3)+4>>2]=i):(l|0)==7?(a[70]=i,m=a[68]|0,_=(w[396]|0)+-1<<16>>16,w[396]=_,(a[m+((_&65535)<<3)>>2]|0)!=3&&ne()):(l|0)==10&&(a[70]=i,ne())}function P(i){i=i|0;var l=0,m=0,_=0;m=a[70]|0;e:do{l=w[m>>1]|0;n:do if(l<<16>>16!=47)if(i){if(tt(l)|0)break;break e}else{if(kt(l)|0)break;break e}else switch(w[m+2>>1]|0){case 47:{Kt();break n}case 42:{zt(i);break n}default:{l=47;break e}}while(0);_=a[70]|0,m=_+2|0,a[70]=m}while(_>>>0<(a[71]|0)>>>0);return l|0}function Q(i){i=i|0;var l=0,m=0,_=0,v=0;for(v=a[71]|0,l=a[70]|0;;){if(_=l+2|0,l>>>0>=v>>>0){l=9;break}if(m=w[_>>1]|0,m<<16>>16==i<<16>>16){l=10;break}if(m<<16>>16==92)m=l+4|0,(w[m>>1]|0)==13?(l=l+6|0,l=(w[l>>1]|0)==10?l:m):l=m;else if(ir(m)|0){l=9;break}else l=_}(l|0)==9?(a[70]=_,ne()):(l|0)==10&&(a[70]=_)}function Xe(i,l){i=i|0,l=l|0;var m=0,_=0,v=0,L=0;return m=a[70]|0,_=w[m>>1]|0,L=(i|0)==(l|0),v=L?0:i,L=L?0:l,_<<16>>16==97&&(a[70]=m+4,m=P(1)|0,i=a[70]|0,nt(m)|0?(Q(m),l=(a[70]|0)+2|0,a[70]=l):(Ie(m)|0,l=a[70]|0),_=P(1)|0,m=a[70]|0),(m|0)!=(i|0)&&He(i,l,v,L),_|0}function Yt(i,l,m,_){i=i|0,l=l|0,m=m|0,_=_|0;var v=0,L=0;v=a[65]|0,a[65]=v+32,L=a[61]|0,a[(L|0?L+28|0:228)>>2]=v,a[62]=L,a[61]=v,a[v+8>>2]=i,(_|0)==2?i=m:i=(_|0)==1?m+2|0:0,a[v+12>>2]=i,a[v>>2]=l,a[v+4>>2]=m,a[v+16>>2]=0,a[v+20>>2]=_,O[v+24>>0]=(_|0)==1&1,a[v+28>>2]=0}function Fi(){var i=0,l=0,m=0;m=a[71]|0,l=a[70]|0;e:for(;;){if(i=l+2|0,l>>>0>=m>>>0){l=6;break}switch(w[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,ne(),i=0):(l|0)==7&&(a[70]=i,i=93),i|0}function tr(){var i=0,l=0,m=0;e:for(;;){if(i=a[70]|0,l=i+2|0,a[70]=l,i>>>0>=(a[71]|0)>>>0){m=7;break}switch(w[l>>1]|0){case 13:case 10:{m=7;break e}case 47:break e;case 91:{Fi()|0;break}case 92:{a[70]=i+4;break}default:}}(m|0)==7&&ne()}function Hi(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=z(i+-2|0,200,4)|0;break}case 121:{i=z(i+-2|0,208,6)|0;break}case 101:{i=z(i+-2|0,220,3)|0;break}default:i=0}return i|0}function zt(i){i=i|0;var l=0,m=0,_=0,v=0,L=0;for(v=(a[70]|0)+2|0,a[70]=v,m=a[71]|0;l=v+2|0,!(v>>>0>=m>>>0||(_=w[l>>1]|0,!i&&ir(_)|0));){if(_<<16>>16==42&&(w[v+4>>1]|0)==47){L=8;break}v=l}(L|0)==8&&(a[70]=l,l=v+4|0),a[70]=l}function Z(i,l,m){i=i|0,l=l|0,m=m|0;var _=0,v=0;e:do if(!m)i=0;else{for(;_=O[i>>0]|0,v=O[l>>0]|0,_<<24>>24==v<<24>>24;)if(m=m+-1|0,m)i=i+1|0,l=l+1|0;else{i=0;break e}i=(_&255)-(v&255)|0}while(0);return i|0}function wt(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 Wi(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 nr(i){i=i|0;var l=0;l=w[i>>1]|0;e:do if((l+-9&65535)>=5){switch(l<<16>>16){case 160:case 32:{l=1;break e}default:}if(wt(l)|0)return l<<16>>16!=46|(rr(i)|0)|0;l=0}else l=1;while(0);return l|0}function Ui(i){i=i|0;var l=0,m=0,_=0,v=0;return m=J,J=J+16|0,_=m,a[_>>2]=0,a[64]=i,l=a[3]|0,v=l+(i<<1)|0,i=v+2|0,w[v>>1]=0,a[_>>2]=i,a[65]=i,a[57]=0,a[61]=0,a[59]=0,a[58]=0,a[63]=0,a[60]=0,J=m,l|0}function z(i,l,m){i=i|0,l=l|0,m=m|0;var _=0,v=0;return _=i+(0-m<<1)|0,v=_+2|0,i=a[3]|0,v>>>0>=i>>>0&&!(Z(v,l,m<<1)|0)?(v|0)==(i|0)?i=1:i=nr(_)|0:i=0,i|0}function He(i,l,m,_){i=i|0,l=l|0,m=m|0,_=_|0;var v=0,L=0;v=a[65]|0,a[65]=v+20,L=a[63]|0,a[(L|0?L+16|0:232)>>2]=v,a[63]=v,a[v>>2]=i,a[v+4>>2]=l,a[v+8>>2]=m,a[v+12>>2]=_,a[v+16>>2]=0}function Bi(i){switch(i=i|0,w[i>>1]|0){case 107:{i=z(i+-2|0,134,4)|0;break}case 101:{(w[i+-2>>1]|0)==117?i=z(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 m=0;return m=a[3]|0,m>>>0<=i>>>0&&(w[i>>1]|0)==l<<16>>16?(m|0)==(i|0)?m=1:m=Jt(w[i+-2>>1]|0)|0:m=0,m|0}function Jt(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&(wt(i)|0)}while(0);return i|0}function Kt(){var i=0,l=0,m=0;i=a[71]|0,m=a[70]|0;e:for(;l=m+2|0,!(m>>>0>=i>>>0);)switch(w[l>>1]|0){case 13:case 10:break e;default:m=l}a[70]=l}function Ie(i){for(i=i|0;!(tt(i)|0||wt(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 Di(){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 Vi(i){return i=i|0,!(z(i,180,5)|0)&&!(z(i,190,3)|0)?i=z(i,196,2)|0:i=1,i|0}function kt(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 rr(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 et(i){return i=i|0,(a[3]|0)==(i|0)?i=1:i=nr(i+-2|0)|0,i|0}function qi(){var i=0;return i=a[(a[60]|0)+12>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Gi(){var i=0;return i=a[(a[59]|0)+12>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Yi(){var i=0;return i=a[(a[60]|0)+8>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function zi(){var i=0;return i=a[(a[59]|0)+16>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Ji(){var i=0;return i=a[(a[59]|0)+4>>2]|0,i?i=i-(a[3]|0)>>1:i=-1,i|0}function Ki(){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 Qi(){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 ne(){O[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 Xi(){return(a[(a[59]|0)+8>>2]|0)-(a[3]|0)>>1|0}function Zi(){return(a[(a[60]|0)+4>>2]|0)-(a[3]|0)>>1|0}function ir(i){return i=i|0,i<<16>>16==13|i<<16>>16==10|0}function es(){return(a[a[59]>>2]|0)-(a[3]|0)>>1|0}function ts(){return(a[a[60]>>2]|0)-(a[3]|0)>>1|0}function ns(){return re[(a[59]|0)+24>>0]|0|0}function rs(i){i=i|0,a[3]=i}function is(){return(O[795]|0)!=0|0}function ss(){return a[66]|0}function os(i){return i=i|0,J=i+992+15&-16,992}return{su:os,ai:zi,e:ss,ee:Zi,ele:qi,els:Yi,es:ts,f:is,id:Di,ie:Ji,ip:ns,is:es,p:ie,re:Qi,ri:Ki,sa:Ui,se:Gi,ses:rs,ss:Xi}}(typeof self<"u"?self:us,{},vt),Rt=V.su(Ye-(2<<17))}const $=B.length+1;V.ses(Rt),V.sa($-1),Ln(B,new Uint16Array(vt,Rt,$)),V.p()||(R=V.e(),ge());const g=[],A=[];for(;V.ri();){const S=V.is(),I=V.ie(),T=V.ai(),O=V.id(),w=V.ss(),a=V.se();let re;V.ip()&&(re=Nt(O===-1?S:S+1,B.charCodeAt(O===-1?S-1:S))),g.push({n:re,s:S,e:I,ss:w,se:a,d:O,a:T})}for(;V.re();){const S=V.es(),I=V.ee(),T=V.els(),O=V.ele(),w=B.charCodeAt(S),a=T>=0?B.charCodeAt(T):-1;A.push({s:S,e:I,ls:T,le:O,n:w===34||w===39?Nt(S+1,w):B.slice(S,I),ln:T<0?void 0:a===34||a===39?Nt(T+1,a):B.slice(T,O)})}return[g,A,!!V.f()]}function Nt(u,p){R=u;let b="",$=R;for(;;){R>=B.length&&ge();const g=B.charCodeAt(R);if(g===p)break;g===92?(b+=B.slice($,R),b+=Ii(),$=R):(g===8232||g===8233||Pn(g)&&ge(),++R)}return b+=B.slice($,R++),b}function Ii(){let u=B.charCodeAt(++R);switch(++R,u){case 110:return`
|
2
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(Ft(2));case 117:return function(){const p=B.charCodeAt(R);let b;return p===123?(++R,b=Ft(B.indexOf("}",R)-R),++R,b>1114111&&ge()):b=Ft(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:B.charCodeAt(R)===10&&++R;case 10:return"";case 56:case 57:ge();default:if(u>=48&&u<=55){let p=B.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=B.charCodeAt(R),p==="0"&&u!==56&&u!==57||ge(),String.fromCharCode(b)}return Pn(u)?"":String.fromCharCode(u)}}function Ft(u){const p=R;let b=0,$=0;for(let g=0;g<u;++g,++R){let A,S=B.charCodeAt(R);if(S!==95){if(S>=97)A=S-97+10;else if(S>=65)A=S-65+10;else{if(!(S>=48&&S<=57))break;A=S-48}if(A>=16)break;$=S,b=16*b+A}else $!==95&&g!==0||ge(),$=S}return $!==95&&R-p===u||ge(),b}function Pn(u){return u===13||u===10}function ge(){throw Object.assign(Error(`Parse error ${Tn}:${B.slice(0,R).split(`
|
3
|
-
`).length}:${R-B.lastIndexOf(`
|
4
|
-
`,R-1)}`),{idx:R})}async function Mn(u,p){const b=Ee(u,p);return{r:Mt(Oe,b||u,p)||Rn(u,p),b:!b&&!Tt(u)}}const jn=f?async(u,p)=>{let b=f(u,p,Ht);return b&&b.then&&(b=await b),b?{r:b,b:!Ee(u,p)&&!Tt(u)}:Mn(u,p)}:Mn;async function xe(u,...p){let b=p[p.length-1];return typeof b!="string"&&(b=ue),await Je,c&&await c(u,typeof p[1]!="string"?p[1]:{},b),(Ke||o||!Fe)&&(e&&Bt(!0),o||(Ke=!1)),await bt,Wn((await jn(u,b)).r,{credentials:"same-origin"})}self.importShim=xe;function Ht(u,p){return Mt(Oe,Ee(u,p)||u,p)||Rn(u,p)}function Rn(u,p){throw Error(`Unable to resolve specifier '${u}'${qe(p)}`)}const Nn=(u,p=ue)=>{p=`${p}`;const b=f&&f(u,p,Ht);return b&&!b.then?b:Ht(u,p)};function Ci(u,p=this.url){return Nn(u,p)}xe.resolve=Nn,xe.getImportMap=()=>JSON.parse(JSON.stringify(Oe)),xe.addImportMap=u=>{if(!o)throw new Error("Unsupported in polyfill mode.");Oe=En(u,ue,Oe)};const ze=xe._r={};xe._w={};async function Fn(u,p){u.b||p[u.u]||(p[u.u]=1,await u.L,await Promise.all(u.d.map(b=>Fn(b,p))),u.n||(u.n=u.d.some(b=>b.n)))}let Oe={imports:{},scopes:{}},Fe;const Je=Ei.then(()=>{if(Fe=s.polyfillEnable!==!0&&Ge&&mt&&Ne&&(!G||dt)&&(!H||pt)&&!ht,e){if(!Ne){const u=HTMLScriptElement.supports||(p=>p==="classic"||p==="module");HTMLScriptElement.supports=p=>p==="importmap"||u(p)}if(o||!Fe)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")&&Zn(b,!0),b.type===(o?"importmap-shim":"importmap")&&Xn(b,!0)):b.tagName==="LINK"&&b.rel===(o?"modulepreload-shim":"modulepreload")&&er(b)}).observe(document,{childList:!0,subtree:!0}),Bt(),document.readyState==="complete")qt();else{async function u(){await Je,Bt(),document.readyState==="complete"&&(qt(),document.removeEventListener("readystatechange",u))}document.addEventListener("readystatechange",u)}}});let bt=Je,Hn=!0,Ke=!0;async function Wn(u,p,b,$,g){if(o||(Ke=!1),await Je,await bt,c&&await c(u,typeof p!="string"?p:{},""),!o&&Fe)return $?null:(await g,me(b?te(b):u,{errUrl:u||b}));const A=Yn(u,p,null,b),S={};if(await Fn(A,S),yt=void 0,Bn(A,S),await g,b&&!o&&!A.n)return $?void 0:(M&&Un(Object.keys(S)),await me(te(b),{errUrl:b}));Hn&&!o&&A.n&&$&&(x(),Hn=!1);const I=await me(!o&&!A.n&&$?A.u:A.b,{errUrl:A.u});return A.s&&(await me(A.s)).u$_(I),M&&Un(Object.keys(S)),I}function Un(u){let p=0;const b=u.length,$=self.requestIdleCallback?self.requestIdleCallback:self.requestAnimationFrame;$(g);function g(){const A=p*100;if(!(A>b)){for(const S of u.slice(A,A+100)){const I=ze[S];I&&URL.revokeObjectURL(I.b)}p++,$(g)}}}function Wt(u){return`'${u.replace(/'/g,"\\'")}'`}let yt;function Bn(u,p){if(u.b||!p[u.u])return;p[u.u]=0;for(const Y of u.d)Bn(Y,p);const[b,$]=u.a,g=u.S;let A=ft&&yt?`import '${yt}';`:"",S=0,I=0,T=[];function O(Y){for(;T[T.length-1]<Y;){const J=T.pop();A+=`${g.slice(S,J)}, ${Wt(u.r)}`,S=J}A+=g.slice(S,Y),S=Y}for(const{s:Y,ss:J,se:ie,d:we}of b)if(we===-1){let D=u.d[I++],ke=D.b,gt=!ke;gt&&((ke=D.s)||(ke=D.s=te(`export function u$_(m){${D.a[1].map(({s:ve,e:P},Q)=>{const Xe=D.S[ve]==='"'||D.S[ve]==="'";return`e$_${Q}=m${Xe?"[":"."}${D.S.slice(ve,P)}${Xe?"]":""}`}).join(",")}}${D.a[1].length?`let ${D.a[1].map((ve,P)=>`e$_${P}`).join(",")};`:""}export {${D.a[1].map(({s:ve,e:P},Q)=>`e$_${Q} as ${D.S.slice(ve,P)}`).join(",")}}
|
5
|
-
//# sourceURL=${D.r}?cycle`))),O(Y-1),A+=`/*${g.slice(Y-1,ie)}*/${Wt(ke)}`,!gt&&D.s&&(A+=`;import*as m$_${I} from'${D.b}';import{u$_ as u$_${I}}from'${D.s}';u$_${I}(m$_${I})`,D.s=void 0),S=ie}else we===-2?(u.m={url:u.r,resolve:Ci},d(u.m,u.u),O(Y),A+=`importShim._r[${Wt(u.u)}].m`,S=ie):(O(J+6),A+="Shim(",T.push(ie-1),S=Y);u.s&&(A+=`
|
6
|
-
;import{u$_}from'${u.s}';try{u$_({${$.filter(Y=>Y.ln).map(({s:Y,e:J,ln:ie})=>`${g.slice(Y,J)}:${ie}`).join(",")}})}catch(_){};
|
7
|
-
`);function w(Y,J){const ie=J+Y.length,we=g.indexOf(`
|
8
|
-
`,ie),D=we!==-1?we:g.length;O(ie),A+=new URL(g.slice(ie,D),u.r).href,S=D}let a=g.lastIndexOf(_t),re=g.lastIndexOf(Dn);a<S&&(a=-1),re<S&&(re=-1),a!==-1&&(re===-1||re>a)&&w(_t,a),re!==-1&&(w(Dn,re),a!==-1&&a>re&&w(_t,a)),O(g.length),a===-1&&(A+=_t+u.r),u.b=yt=te(A),u.S=void 0}const _t=`
|
9
|
-
//# sourceURL=`,Dn=`
|
10
|
-
//# sourceMappingURL=`,Li=/^(text|application)\/(x-)?javascript(;|$)/,Ti=/^(application)\/wasm(;|$)/,Pi=/^(text|application)\/json(;|$)/,Mi=/^(text|application)\/css(;|$)/,ji=/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g;let Ut=[],Vn=0;function Ri(){if(++Vn>100)return new Promise(u=>Ut.push(u))}function Ni(){Vn--,Ut.length&&Ut.shift()()}async function qn(u,p,b){if(U&&!p.integrity)throw Error(`No integrity for ${u}${qe(b)}.`);const $=Ri();$&&await $;try{var g=await h(u,p)}catch(A){throw A.message=`Unable to fetch ${u}${qe(b)} - see network log for details.
|
11
|
-
`+A.message,A}finally{Ni()}if(!g.ok)throw Error(`${g.status} ${g.statusText} ${g.url}${qe(b)}`);return g}async function Gn(u,p,b){const $=await qn(u,p,b),g=$.headers.get("content-type");if(Li.test(g))return{r:$.url,s:await $.text(),t:"js"};if(Ti.test(g)){const A=xe._w[u]=await WebAssembly.compileStreaming($);let S="",I=0,T="";for(const O of WebAssembly.Module.imports(A))S+=`import * as impt${I} from '${O.module}';
|
12
|
-
`,T+=`'${O.module}':impt${I++},`;I=0,S+=`const instance = await WebAssembly.instantiate(importShim._w['${u}'], {${T}});
|
13
|
-
`;for(const O of WebAssembly.Module.exports(A))S+=`const expt${I} = instance['${O.name}'];
|
14
|
-
`,S+=`export { expt${I++} as "${O.name}" };
|
15
|
-
`;return{r:$.url,s:S,t:"wasm"}}else{if(Pi.test(g))return{r:$.url,s:`export default ${await $.text()}`,t:"json"};if(Mi.test(g))return{r:$.url,s:`var s=new CSSStyleSheet();s.replaceSync(${JSON.stringify((await $.text()).replace(ji,(A,S="",I,T)=>`url(${S}${Sn(I||T,u)}${S})`))});export default s;`,t:"css"};throw Error(`Unsupported Content-Type "${g}" loading ${u}${qe(b)}. Modules must be served with a valid MIME type like application/javascript.`)}}function Yn(u,p,b,$){let g=ze[u];if(g&&!$)return g;if(g={u,r:$?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 A=0;for(;ze[g.u+ ++A];);g.u+=A}return ze[g.u]=g,g.f=(async()=>{if(!$){let A;if({r:g.r,s:$,t:A}=await(Gt[u]||Gn(u,p,b)),A&&!o){if(A==="css"&&!H||A==="json"&&!G)throw Error(`${A}-modules require <script type="esms-options">{ "polyfillEnable": ["${A}-modules"] }<\/script>`);(A==="css"&&!pt||A==="json"&&!dt)&&(g.n=!0)}}try{g.a=Oi($,g.u)}catch(A){Lt(A),g.a=[[],[],!1]}return g.S=$,g})(),g.L=g.f.then(async()=>{let A=p;g.d=(await Promise.all(g.a[0].map(async({n:S,d:I})=>{if((I>=0&&!Ge||I===-2&&!mt)&&(g.n=!0),I!==-1||!S)return;const{r:T,b:O}=await jn(S,g.r||g.u);if(O&&(!Ne||ht)&&(g.n=!0),I===-1)return _e&&_e(T)?{b:T}:(A.integrity&&(A=Object.assign({},A,{integrity:void 0})),Yn(T,A,g.r).f)}))).filter(S=>S)}),g}function Bt(u=!1){if(!u)for(const p of document.querySelectorAll(o?"link[rel=modulepreload-shim]":"link[rel=modulepreload]"))er(p);for(const p of document.querySelectorAll(o?"script[type=importmap-shim]":"script[type=importmap]"))Xn(p);if(!u)for(const p of document.querySelectorAll(o?"script[type=module-shim]":"script[type=module]"))Zn(p)}function Dt(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 zn=Promise.resolve(),Vt=1;function Jn(){--Vt===0&&!C&&(o||!Fe)&&document.dispatchEvent(new Event("DOMContentLoaded"))}e&&document.addEventListener("DOMContentLoaded",async()=>{await Je,Jn()});let Qe=1;function qt(){--Qe===0&&!C&&(o||!Fe)&&document.dispatchEvent(new Event("readystatechange"))}const Kn=u=>u.nextSibling||u.parentNode&&Kn(u.parentNode),Qn=(u,p)=>u.ep||!p&&(!u.src&&!u.innerHTML||!Kn(u))||u.getAttribute("noshim")!==null||!(u.ep=!0);function Xn(u,p=Qe>0){if(!Qn(u,p)){if(u.src){if(!o)return;ki()}Ke&&(bt=bt.then(async()=>{Oe=En(u.src?await(await qn(u.src,Dt(u))).json():JSON.parse(u.innerHTML),u.src||ue,Oe)}).catch(b=>{console.log(b),b instanceof SyntaxError&&(b=new Error(`Unable to parse import map ${b.message} in: ${u.src||u.innerHTML}`)),Lt(b)}),o||(Ke=!1))}}function Zn(u,p=Qe>0){if(Qn(u,p))return;const b=u.getAttribute("async")===null&&Qe>0,$=Vt>0;b&&Qe++,$&&Vt++;const g=Wn(u.src||ue,Dt(u),!u.src&&u.innerHTML,!o,b&&zn).then(()=>{o&&u.dispatchEvent(new Event("load"))}).catch(Lt);b&&(zn=g.then(qt)),$&&g.then(Jn)}const Gt={};function er(u){u.ep||(u.ep=!0,!Gt[u.href]&&(Gt[u.href]=Gn(u.href,Dt(u))))}})();var ln=function(t,e){return ln=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])},ln(t,e)};function de(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ln(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function ls(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(y){try{d(r.next(y))}catch(k){c(k)}}function h(y){try{d(r.throw(y))}catch(k){c(k)}}function d(y){y.done?o(y.value):s(y.value).then(f,h)}d((r=r.apply(t,e||[])).next())})}function Lr(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(y){return h([d,y])}}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(y){d=[6,y],s=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Me(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 ae(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 fe(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 We(t){return this instanceof We?(this.v=t,this):new We(t)}function fs(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(E){r[E]&&(s[E]=function(x){return new Promise(function(M,C){o.push([E,x,M,C])>1||f(E,x)})})}function f(E,x){try{h(r[E](x))}catch(M){k(o[0][3],M)}}function h(E){E.value instanceof We?Promise.resolve(E.value.v).then(d,y):k(o[0][2],E)}function d(E){f("next",E)}function y(E){f("throw",E)}function k(E,x){E(x),o.shift(),o.length&&f(o[0][0],o[0][1])}}function hs(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 Me=="function"?Me(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 bn(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 tn=bn(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
|
16
|
-
`+n.map(function(r,s){return s+1+") "+r.toString()}).join(`
|
17
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function it(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var ce=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=Me(c),h=f.next();!h.done;h=f.next()){var d=h.value;d.remove(this)}}catch(C){e={error:C}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}else c.remove(this);var y=this.initialTeardown;if(N(y))try{y()}catch(C){o=C instanceof tn?C.errors:[C]}var k=this._finalizers;if(k){this._finalizers=null;try{for(var E=Me(k),x=E.next();!x.done;x=E.next()){var M=x.value;try{sr(M)}catch(C){o=o??[],C instanceof tn?o=fe(fe([],ae(o)),ae(C.errors)):o.push(C)}}}catch(C){r={error:C}}finally{try{x&&!x.done&&(s=E.return)&&s.call(E)}finally{if(r)throw r.error}}}if(o)throw new tn(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)sr(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=ce.EMPTY;function Pr(t){return t instanceof ce||t&&"closed"in t&&N(t.remove)&&N(t.add)&&N(t.unsubscribe)}function sr(t){N(t)?t():t.unsubscribe()}var Mr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},fn={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var s=fn.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,fe([t,e],ae(n))):setTimeout.apply(void 0,fe([t,e],ae(n)))},clearTimeout:function(t){var e=fn.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function jr(t){fn.setTimeout(function(){throw t})}function or(){}function St(t){t()}var yn=function(t){de(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Pr(n)&&n.add(r)):r.destination=vs,r}return e.create=function(n,r,s){return new Et(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}(ce),ds=Function.prototype.bind;function nn(t,e){return ds.call(t,e)}var ps=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){At(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){At(r)}else At(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){At(n)}},t}(),Et=function(t){de(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&&Mr.useDeprecatedNextContext?(f=Object.create(n),f.unsubscribe=function(){return o.unsubscribe()},c={next:n.next&&nn(n.next,f),error:n.error&&nn(n.error,f),complete:n.complete&&nn(n.complete,f)}):c=n}return o.destination=new ps(c),o}return e}(yn);function At(t){jr(t)}function ms(t){throw t}var vs={closed:!0,next:or,error:ms,complete:or},_n=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function gn(t){return t}function bs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Rr(t)}function Rr(t){return t.length===0?gn:t.length===1?t[0]:function(n){return t.reduce(function(r,s){return s(r)},n)}}var ee=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=_s(e)?e:new Et(e,n,r);return St(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=ar(n),new n(function(s,o){var c=new Et({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[_n]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Rr(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=ar(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 ar(t){var e;return(e=t??Mr.Promise)!==null&&e!==void 0?e:Promise}function ys(t){return t&&N(t.next)&&N(t.error)&&N(t.complete)}function _s(t){return t&&t instanceof yn||ys(t)&&Pr(t)}function gs(t){return N(t==null?void 0:t.lift)}function pe(t){return function(e){if(gs(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 he(t,e,n,r,s){return new ws(t,e,n,r,s)}var ws=function(t){de(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(y){n.error(y)}}:t.prototype._next,h._error=o?function(d){try{o(d)}catch(y){n.error(y)}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}(yn),ks=bn(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),It=function(t){de(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 cr(this,this);return r.operator=n,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new ks},e.prototype.next=function(n){var r=this;St(function(){var s,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var c=Me(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;St(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;St(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 ce(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 ee;return n.source=this,n},e.create=function(n,r){return new cr(n,r)},e}(ee),cr=function(t){de(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}(It),ur=function(t){de(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}(It),wn={now:function(){return(wn.delegate||Date).now()},delegate:void 0},ye=function(t){de(e,t);function e(n,r,s){n===void 0&&(n=1/0),r===void 0&&(r=1/0),s===void 0&&(s=wn);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,y=1;y<o.length&&o[y]<=h;y+=2)d=y;d&&o.splice(0,d+1)}},e}(It),As=function(t){de(e,t);function e(n,r){return t.call(this)||this}return e.prototype.schedule=function(n,r){return this},e}(ce),xt={setInterval:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var s=xt.delegate;return s!=null&&s.setInterval?s.setInterval.apply(s,fe([t,e],ae(n))):setInterval.apply(void 0,fe([t,e],ae(n)))},clearInterval:function(t){var e=xt.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},$s=function(t){de(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),xt.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&&xt.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}(As),lr=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=wn.now,t}(),Ss=function(t){de(e,t);function e(n,r){r===void 0&&(r=lr.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}(lr),kn=new Ss($s),Es=kn,xs=new ee(function(t){return t.complete()});function Nr(t){return t&&N(t.schedule)}function Fr(t){return t[t.length-1]}function Os(t){return N(Fr(t))?t.pop():void 0}function Hr(t){return Nr(Fr(t))?t.pop():void 0}var An=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Wr(t){return N(t==null?void 0:t.then)}function Ur(t){return N(t[_n])}function Br(t){return Symbol.asyncIterator&&N(t==null?void 0:t[Symbol.asyncIterator])}function Dr(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 Is(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Vr=Is();function qr(t){return N(t==null?void 0:t[Vr])}function Gr(t){return fs(this,arguments,function(){var n,r,s,o;return Lr(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,We(n.read())];case 3:return r=c.sent(),s=r.value,o=r.done,o?[4,We(void 0)]:[3,5];case 4:return[2,c.sent()];case 5:return[4,We(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 Yr(t){return N(t==null?void 0:t.getReader)}function Ve(t){if(t instanceof ee)return t;if(t!=null){if(Ur(t))return Cs(t);if(An(t))return Ls(t);if(Wr(t))return Ts(t);if(Br(t))return zr(t);if(qr(t))return Ps(t);if(Yr(t))return Ms(t)}throw Dr(t)}function Cs(t){return new ee(function(e){var n=t[_n]();if(N(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ls(t){return new ee(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function Ts(t){return new ee(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,jr)})}function Ps(t){return new ee(function(e){var n,r;try{for(var s=Me(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 zr(t){return new ee(function(e){js(t,e).catch(function(n){return e.error(n)})})}function Ms(t){return zr(Gr(t))}function js(t,e){var n,r,s,o;return ls(this,void 0,void 0,function(){var c,f;return Lr(this,function(h){switch(h.label){case 0:h.trys.push([0,5,6,11]),n=hs(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 oe(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 Jr(t,e){return e===void 0&&(e=0),pe(function(n,r){n.subscribe(he(r,function(s){return oe(r,t,function(){return r.next(s)},e)},function(){return oe(r,t,function(){return r.complete()},e)},function(s){return oe(r,t,function(){return r.error(s)},e)}))})}function Kr(t,e){return e===void 0&&(e=0),pe(function(n,r){r.add(t.schedule(function(){return n.subscribe(r)},e))})}function Rs(t,e){return Ve(t).pipe(Kr(e),Jr(e))}function Ns(t,e){return Ve(t).pipe(Kr(e),Jr(e))}function Fs(t,e){return new ee(function(n){var r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function Hs(t,e){return new ee(function(n){var r;return oe(n,e,function(){r=t[Vr](),oe(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 Qr(t,e){if(!t)throw new Error("Iterable cannot be null");return new ee(function(n){oe(n,e,function(){var r=t[Symbol.asyncIterator]();oe(n,e,function(){r.next().then(function(s){s.done?n.complete():n.next(s.value)})},0,!0)})})}function Ws(t,e){return Qr(Gr(t),e)}function Us(t,e){if(t!=null){if(Ur(t))return Rs(t,e);if(An(t))return Fs(t,e);if(Wr(t))return Ns(t,e);if(Br(t))return Qr(t,e);if(qr(t))return Hs(t,e);if(Yr(t))return Ws(t,e)}throw Dr(t)}function ut(t,e){return e?Us(t,e):Ve(t)}function Bs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Hr(t);return ut(t,n)}var Xr=bn(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function $t(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 Xr)}})})}function Ds(t,e){var n=typeof e=="object";return new Promise(function(r,s){var o=new Et({next:function(c){r(c),o.unsubscribe()},error:s,complete:function(){n?r(e.defaultValue):s(new Xr)}});t.subscribe(o)})}function Vs(t){return t instanceof Date&&!isNaN(t)}function le(t,e){return pe(function(n,r){var s=0;n.subscribe(he(r,function(o){r.next(t.call(e,o,s++))}))})}var qs=Array.isArray;function Gs(t,e){return qs(e)?t.apply(void 0,fe([],ae(e))):t(e)}function Zr(t){return le(function(e){return Gs(t,e)})}function Ys(t,e,n){return n===void 0&&(n=gn),function(r){fr(e,function(){for(var s=t.length,o=new Array(s),c=s,f=s,h=function(y){fr(e,function(){var k=ut(t[y],e),E=!1;k.subscribe(he(r,function(x){o[y]=x,E||(E=!0,f--),f||r.next(n(o.slice()))},function(){--c||r.complete()}))},r)},d=0;d<s;d++)h(d)},r)}}function fr(t,e,n){t?oe(n,t,e):e()}function zs(t,e,n,r,s,o,c,f){var h=[],d=0,y=0,k=!1,E=function(){k&&!h.length&&!d&&e.complete()},x=function(C){return d<r?M(C):h.push(C)},M=function(C){o&&e.next(C),d++;var U=!1;Ve(n(C,y++)).subscribe(he(e,function(F){s==null||s(F),o?x(F):e.next(F)},function(){U=!0},void 0,function(){if(U)try{d--;for(var F=function(){var j=h.shift();c?oe(e,c,function(){return M(j)}):M(j)};h.length&&d<r;)F();E()}catch(j){e.error(j)}}))};return t.subscribe(he(e,x,function(){k=!0,E()})),function(){f==null||f()}}function je(t,e,n){return n===void 0&&(n=1/0),N(e)?je(function(r,s){return le(function(o,c){return e(r,o,s,c)})(Ve(t(r,s)))},n):(typeof e=="number"&&(n=e),pe(function(r,s){return zs(r,s,t,n)}))}var Js=["addListener","removeListener"],Ks=["addEventListener","removeEventListener"],Qs=["on","off"];function hn(t,e,n,r){if(N(n)&&(r=n,n=void 0),r)return hn(t,e,n).pipe(Zr(r));var s=ae(eo(t)?Ks.map(function(f){return function(h){return t[f](e,h,n)}}):Xs(t)?Js.map(hr(t,e)):Zs(t)?Qs.map(hr(t,e)):[],2),o=s[0],c=s[1];if(!o&&An(t))return je(function(f){return hn(f,e,n)})(Ve(t));if(!o)throw new TypeError("Invalid event target");return new ee(function(f){var h=function(){for(var d=[],y=0;y<arguments.length;y++)d[y]=arguments[y];return f.next(1<d.length?d:d[0])};return o(h),function(){return c(h)}})}function hr(t,e){return function(n){return function(r){return t[n](e,r)}}}function Xs(t){return N(t.addListener)&&N(t.removeListener)}function Zs(t){return N(t.on)&&N(t.off)}function eo(t){return N(t.addEventListener)&&N(t.removeEventListener)}function dn(t,e,n){t===void 0&&(t=0),n===void 0&&(n=Es);var r=-1;return e!=null&&(Nr(e)?n=e:r=e),new ee(function(s){var o=Vs(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 to(t,e){return t===void 0&&(t=0),e===void 0&&(e=kn),t<0&&(t=0),dn(t,t,e)}var no=Array.isArray;function ro(t){return t.length===1&&no(t[0])?t[0]:t}function X(t,e){return pe(function(n,r){var s=0;n.subscribe(he(r,function(o){return t.call(e,o,s++)&&r.next(o)}))})}function io(t){for(var e,n,r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var o=(e=Hr(r))!==null&&e!==void 0?e:kn,c=(n=r[0])!==null&&n!==void 0?n:null,f=r[1]||1/0;return pe(function(h,d){var y=[],k=!1,E=function(C){var U=C.buffer,F=C.subs;F.unsubscribe(),it(y,C),d.next(U),k&&x()},x=function(){if(y){var C=new ce;d.add(C);var U=[],F={buffer:U,subs:C};y.push(F),oe(C,o,function(){return E(F)},t)}};c!==null&&c>=0?oe(d,o,x,c,!0):k=!0,x();var M=he(d,function(C){var U,F,j=y.slice();try{for(var H=Me(j),G=H.next();!G.done;G=H.next()){var ft=G.value,ue=ft.buffer;ue.push(C),f<=ue.length&&E(ft)}}catch(te){U={error:te}}finally{try{G&&!G.done&&(F=H.return)&&F.call(H)}finally{if(U)throw U.error}}},function(){for(;y!=null&&y.length;)d.next(y.shift().buffer);M==null||M.unsubscribe(),d.complete(),d.unsubscribe()},void 0,function(){return y=null});h.subscribe(M)})}function ei(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Os(t);return n?bs(ei.apply(void 0,fe([],ae(t))),Zr(n)):pe(function(r,s){Ys(fe([r],ae(ro(t))))(s)})}function so(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ei.apply(void 0,fe([],ae(t)))}function oo(t,e){return N(e)?je(t,e,1):je(t,1)}function Te(t){return t<=0?function(){return xs}:pe(function(e,n){var r=0;e.subscribe(he(n,function(s){++r<=t&&(n.next(s),t<=r&&n.complete())}))})}function ao(){return pe(function(t,e){var n,r=!1;t.subscribe(he(e,function(s){var o=n;n=s,r&&e.next([o,s]),r=!0}))})}function co(t,e,n){var r=N(t)||e||n?{next:t,error:e,complete:n}:t;return r?pe(function(s,o){var c;(c=r.subscribe)===null||c===void 0||c.call(r);var f=!0;s.subscribe(he(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)}))}):gn}const uo="en",lo=(t,e=uo)=>typeof t=="string"?t:t==null?void 0:t[e];function fo(t){return Object.entries(t).reduce((e,[n,r])=>(e[n]=lo(r),e),{})}const Ue=(...t)=>{},ti=t=>Array.isArray(t)?t:[t],ni=({document:{baseURI:t},location:{href:e}})=>n=>new URL(n,new URL(t,e)),ri=(t,e)=>{let n=e;return e instanceof URL||(n=t(typeof e=="string"?e:e.url)),n},ho=(t,e)=>{const{href:n,origin:r}=e;return t===r?n.substring(t.length):n},po=(t,e,n=0)=>{const{selectors:r}=e;return t.querySelector(r[n])};function mo(t){return document.querySelector(t)}const vo=(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)},bo=t=>t!==void 0;function yo(t,e,n){const r=new Map,s=mo.bind(t),o=e.pipe(ao(),co(([c])=>{var f;if(c!==void 0){const h=po(t,c);h!==null&&((f=h.__unfocus_handler)==null||f.call(h),vo(h,r))}}),le(([,c])=>c),X(bo),le(c=>{const[f,...h]=c.selectors,d=h.reduce((y,k)=>{var E;const x=s(k);if(x){y.push(x);const M=(E=x.__focus_handler)==null?void 0:E.call(x);M&&"then"in M&&M.catch(Ue)}return y},[]);return{first:f,next:c,otherElements:d}}),le(c=>({...c,firstElement:s(c.first)})),X(c=>c.firstElement!==null),le(c=>{var f,h;return{...c,focus:(h=(f=c.firstElement).__focus_handler)==null?void 0:h.call(f)}}),oo(({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 y=Object.keys(f.style),k=new ce,E=ti(d??h).filter(Boolean),x={css:[],elementToFocus:E,rest:c,subscription:k},M=y.reduce((C,U)=>(E.forEach((F,j)=>{var H;C.css[j]=Object.assign((H=C.css[j])!=null?H:{},{[U]:F.style[U]})}),C),x);k.add(n.pipe(X(C=>C==="select"),Te(1)).subscribe(()=>{E.forEach(C=>{Object.assign(C.style,f.style)})})),r.set(h,M)});return()=>o.unsubscribe()}var _o=Object.defineProperty,go=(t,e,n)=>e in t?_o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$e=(t,e,n)=>(go(t,typeof e!="symbol"?e+"":e,n),n);let wo=class{constructor(e){$e(this,"_input"),$e(this,"_length"),$e(this,"_idx",0),$e(this,"_mode",0),$e(this,"_literals",[]),$e(this,"_variables",[]),$e(this,"_braketCount",0),$e(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("{{".concat(this._variables.pop()))),this._done=!0}};const ko=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},Ao=t=>Number.parseInt(t.trim().slice(1).slice(0,-1).trim());function $o(t,e,n){if(!e.trim())return n?"{{".concat(e,"}}"):"";const r=e.trim().split(".").reduce((s,o)=>{if(Array.isArray(s)&&ko(o))return s[Ao(o)];if(typeof s=="object"&&s!==null&&o in s)return s[o]},{...t});return typeof r=="string"?r:n?"{{".concat(e,"}}"):""}function So(t,e,n=!1){const r=new wo(t);r.run();const s=r.get();let[o]=s.literals;for(let c=0;c<s.variables.length;c++)o=o.concat($o(e,s.variables[c],n)).concat(s.literals[c+1]);return o}const Eo=(t,e)=>Object.fromEntries(Object.entries(t).map(([n,r])=>[n,So(r,e)]));var ii=(t=>(t[t.Default=0]="Default",t[t.Skip=1]="Skip",t))(ii||{});const pn="__mia_preview_id",xo=1e6,Oo={"click-element":0,"ctrl-space":0,"focus-element":0,mousedown:0,mousemove:1,"new-configuration":0,notification:0,options:0,"request-resource":0,"set-source-map":0,"tag-info":0,update:0,updated:0};var rn;const Ot=window,Be=Ot.trustedTypes,dr=Be?Be.createPolicy("lit-html",{createHTML:t=>t}):void 0,mn="$lit$",Se=`lit$${(Math.random()+"").slice(9)}$`,si="?"+Se,Io=`<${si}>`,Re=document,st=()=>Re.createComment(""),ot=t=>t===null||typeof t!="object"&&typeof t!="function",oi=Array.isArray,Co=t=>oi(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",sn=`[
|
18
|
-
\f\r]`,rt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pr=/-->/g,mr=/>/g,Le=RegExp(`>|${sn}(?:([^\\s"'>=/]+)(${sn}*=${sn}*(?:[^
|
19
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),vr=/'/g,br=/"/g,ai=/^(?:script|style|textarea|title)$/i,Lo=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),To=Lo(1),at=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),yr=new WeakMap,Pe=Re.createTreeWalker(Re,129,null,!1);function ci(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return dr!==void 0?dr.createHTML(e):e}const Po=(t,e)=>{const n=t.length-1,r=[];let s,o=e===2?"<svg>":"",c=rt;for(let f=0;f<n;f++){const h=t[f];let d,y,k=-1,E=0;for(;E<h.length&&(c.lastIndex=E,y=c.exec(h),y!==null);)E=c.lastIndex,c===rt?y[1]==="!--"?c=pr:y[1]!==void 0?c=mr:y[2]!==void 0?(ai.test(y[2])&&(s=RegExp("</"+y[2],"g")),c=Le):y[3]!==void 0&&(c=Le):c===Le?y[0]===">"?(c=s??rt,k=-1):y[1]===void 0?k=-2:(k=c.lastIndex-y[2].length,d=y[1],c=y[3]===void 0?Le:y[3]==='"'?br:vr):c===br||c===vr?c=Le:c===pr||c===mr?c=rt:(c=Le,s=void 0);const x=c===Le&&t[f+1].startsWith("/>")?" ":"";o+=c===rt?h+Io:k>=0?(r.push(d),h.slice(0,k)+mn+h.slice(k)+Se+x):h+Se+(k===-2?(r.push(void 0),f):x)}return[ci(t,o+(t[n]||"<?>")+(e===2?"</svg>":"")),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,y]=Po(e,n);if(this.el=ct.createElement(d,r),Pe.currentNode=this.el.content,n===2){const k=this.el.content,E=k.firstChild;E.remove(),k.append(...E.childNodes)}for(;(s=Pe.nextNode())!==null&&h.length<f;){if(s.nodeType===1){if(s.hasAttributes()){const k=[];for(const E of s.getAttributeNames())if(E.endsWith(mn)||E.startsWith(Se)){const x=y[c++];if(k.push(E),x!==void 0){const M=s.getAttribute(x.toLowerCase()+mn).split(Se),C=/([.?@])?(.*)/.exec(x);h.push({type:1,index:o,name:C[2],strings:M,ctor:C[1]==="."?jo:C[1]==="?"?No:C[1]==="@"?Fo:Ct})}else h.push({type:6,index:o})}for(const E of k)s.removeAttribute(E)}if(ai.test(s.tagName)){const k=s.textContent.split(Se),E=k.length-1;if(E>0){s.textContent=Be?Be.emptyScript:"";for(let x=0;x<E;x++)s.append(k[x],st()),Pe.nextNode(),h.push({type:2,index:++o});s.append(k[E],st())}}}else if(s.nodeType===8)if(s.data===si)h.push({type:2,index:o});else{let k=-1;for(;(k=s.data.indexOf(Se,k+1))!==-1;)h.push({type:7,index:o}),k+=Se.length-1}o++}}static createElement(e,n){const r=Re.createElement("template");return r.innerHTML=e,r}}function De(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=De(t,h._$AS(t,e.values),h,r)),e}class Mo{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:Re).importNode(r,!0);Pe.currentNode=o;let c=Pe.nextNode(),f=0,h=0,d=s[0];for(;d!==void 0;){if(f===d.index){let y;d.type===2?y=new lt(c,c.nextSibling,this,e):d.type===1?y=new d.ctor(c,d.name,d.strings,this,e):d.type===6&&(y=new Ho(c,this,e)),this._$AV.push(y),d=s[++h]}f!==(d==null?void 0:d.index)&&(c=Pe.nextNode(),f++)}return Pe.currentNode=Re,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=K,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=De(this,e,n),ot(e)?e===K||e==null||e===""?(this._$AH!==K&&this._$AR(),this._$AH=K):e!==this._$AH&&e!==at&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Co(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!==K&&ot(this._$AH)?this._$AA.nextSibling.data=e:this.$(Re.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(ci(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)===null||n===void 0?void 0:n._$AD)===o)this._$AH.v(r);else{const c=new Mo(o,this),f=c.u(this.options);c.v(r),this.$(f),this._$AH=c}}_$AC(e){let n=yr.get(e.strings);return n===void 0&&yr.set(e.strings,n=new ct(e)),n}T(e){oi(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 Ct{constructor(e,n,r,s,o){this.type=1,this._$AH=K,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=K}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=De(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=De(this,f[r+h],n,h),d===at&&(d=this._$AH[h]),c||(c=!ot(d)||d!==this._$AH[h]),d===K?e=K:e!==K&&(e+=(d??"")+o[h+1]),this._$AH[h]=d}c&&!s&&this.j(e)}j(e){e===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class jo extends Ct{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===K?void 0:e}}const Ro=Be?Be.emptyScript:"";class No extends Ct{constructor(){super(...arguments),this.type=4}j(e){e&&e!==K?this.element.setAttribute(this.name,Ro):this.element.removeAttribute(this.name)}}class Fo extends Ct{constructor(e,n,r,s,o){super(e,n,r,s,o),this.type=5}_$AI(e,n=this){var r;if((e=(r=De(this,e,n,0))!==null&&r!==void 0?r:K)===at)return;const s=this._$AH,o=e===K&&s!==K||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,c=e!==K&&(s===K||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 Ho{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){De(this,e)}}const _r=Ot.litHtmlPolyfillSupport;_r==null||_r(ct,lt),((rn=Ot.litHtmlVersions)!==null&&rn!==void 0?rn:Ot.litHtmlVersions=[]).push("2.8.0");const Wo=(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 Uo=t=>{const e=t.charAt(0);return!(e!==t.charAt(t.length-1)||e!=="'"&&e!=='"')};function Bo(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 Do(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(Uo(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]=Bo(o)(e);return n},[])}function ui(t){return Array.isArray(t)?t:[t]}function Vo(t){const e=typeof t=="string"?[t]:t;return Array.isArray(e)?e:ui(e.uris)}const qo=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Go(t){return qo.includes(t.tag)}function Yo(t){return Array.isArray(t)?t:[t]}function li(t,e,n){if(typeof e!="object"){t.push(`${e}`);return}Yo(e).forEach(r=>{if(typeof r!="object"){t.push(`${r}`);return}const{tag:s,attributes:o={},booleanAttributes:c=[],properties:f={}}=r,h=Go(r),d=`<${s}`,y=h?"/>":">",k=`</${s}>`,E=Object.entries(o).reduce((j,[H,G])=>(j.push(`${H}="${G}"`),j),[]),x=ui(c),{override:M,props:C}=Object.entries(f).reduce((j,[H,G])=>(n.has(H)?typeof G=="string"&&(j.override[H]=G):j.props[H]=G,j),{override:{},props:{}}),U=Array.from(n.keys()).map(j=>{var H;return`.${j}=\${${(H=M[j])!=null?H:j}}`}),F=Object.entries(C).reduce((j,[H,G])=>{switch(typeof G){case"object":case"number":case"boolean":j.push(`.${H}=\${${JSON.stringify(G)}}`);break;case"string":j.push(`.${H}=\${"${G}"}`);break}return j},[]);if(t.push([d,E.join(" "),x.join(" "),U.join(" "),F.join(" "),y].join(" ")),!h){const{content:j}=r;j!==void 0&&li(t,j,n),t.push(k)}})}function zo(t,e=new Set){const n=[];return li(n,t,e),n.join(" ")}const Jo="modulepreload",Ko=function(t,e){return new URL(t,e).href},gr={},Qo=function(e,n,r){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=Ko(o,r),o in gr)return;gr[o]=!0;const c=o.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let y=s.length-1;y>=0;y--){const k=s[y];if(k.href===o&&(!c||k.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Jo,c||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),c)return new Promise((y,k)=>{d.addEventListener("load",y),d.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e()).catch(o=>{const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=o,window.dispatchEvent(c),!c.defaultPrevented)throw o})};function fi(t,...e){Qo(()=>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 Xo(t){return e=>{fi("0",t,e.message)}}const Zo=Object.freeze(Object.defineProperty({__proto__:null,dynamicImportError:Xo,error:fi},Symbol.toStringTag,{value:"Module"}));var wr=Zo;var ea=Object.defineProperty,ta=(t,e,n)=>e in t?ea(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,be=(t,e,n)=>(ta(t,typeof e!="symbol"?e+"":e,n),n);class na{constructor(e){be(this,"_i",0),be(this,"_s"),be(this,"_l"),be(this,"_d",!1),be(this,"_m",0),be(this,"_st",[]),be(this,"_n",0),be(this,"_li",[]),be(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 ra=async(t,e="SHA-1")=>window.crypto.subtle.digest(e,new TextEncoder().encode(t)),on=new Map;async function ia(t){const e=await ra(t).catch(n=>{wr.error("40",t,n.message)});if(!e||!on.has(e)){let n;try{n=new na(t).run(),e&&on.set(e,n)}catch(r){r instanceof TypeError&&wr.error(r.message,t,r.cause);const s=[];Object.defineProperty(s,"raw",{value:s,writable:!1}),n={literals:s,variables:[]}}return n}return on.get(e)}class an extends ye{}function sa(){const t=[],e=new Proxy({},{get(n,r,s){return typeof r=="string"&&!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=new an),Reflect.get(n,r,s)}});return new Proxy(new an,{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 an),t[o])}})}async function oa(t,{extraProperties:e,context:n={}}={}){const r=Array.isArray(e)?new Set(e):e,s=zo(t,r),o=await ia(s),c=Do(o.variables,n),f=To(o.literals,...c);return(h,d)=>Wo(f,h,d)}async function aa(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=Vo(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 ca(t,e,n={}){return oa(t.content,{context:n,extraProperties:new Set(Object.keys(n))}).then(s=>(s(e),null))}const ua=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"}},hi=(t,e)=>t.send({content:ua(e),type:"notification"}),di=t=>"clientX"in t&&"clientY"in t;function kr(t,e){return n=>{di(n)&&t.send({content:{bubbles:!0,cancelable:!1,clientX:n.clientX,clientY:n.clientY},type:e})}}const la=(t,e)=>t.has(e.tagName)&&e.hasAttribute(pn),fa=(t,e,n)=>{const{document:r}=t;return s=>{let o;if(di(s)){const{clientX:c,clientY:f}=s;o=r.elementsFromPoint(c,f).reduce((h,d)=>{if(la(n.uppercaseTags,d)){const y=d.getAttribute(pn);h.ids.push(y),h.selectors.push("[".concat(pn,'="').concat(y,'"]'))}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 ha=(t,e)=>({postMessage:n=>{t.postMessage(n,(e==null?void 0:e.targetOrigin)??"*",e==null?void 0:e.transfer)}}),pi=(t=>(t.Ack="ack",t.Syn="syn",t))(pi||{}),da=Object.values(pi),cn=t=>t.data,un=t=>e=>e.type===t.toString(),pa=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},ma=()=>{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},va=class{constructor(t,e,n,r){se(this,"__generateId");se(this,"__instance");se(this,"__colors");se(this,"__listener");se(this,"__log");se(this,"__receiver");se(this,"__subscription");se(this,"__okToWrite");se(this,"__write$");se(this,"__recv$");this.__generateId=()=>globalThis.crypto.randomUUID();const s=this.__generateId(),o=new ye,c=hn(e,"message").pipe(X(pa)).subscribe(o);this.__subscription=new ce,this.__subscription.add(c),this.__okToWrite=new ye(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=ma();this.__colors={bg:`${f}22`,fg:f},this.__receiver=n,this.__connect(s,r!=null&&r.period?r.period:10)}__connect(t,e){const n=to(e).subscribe(()=>this.__receiver.postMessage({content:t,instance:t,type:"syn".toString()}));this.__subscription.add(n),this.__subscription.add(this.__recv$.pipe(le(cn),X(un("ack")),X(({content:r})=>r===t),Te(1)).subscribe(({instance:r})=>{this.__okToWrite.next(0),this.__subscription.add(this.__recv$.pipe(X(({data:{type:s,instance:o}})=>!da.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(le(cn),X(un("syn")),X(({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(le(cn),X(un("ack")),X(({_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 Ds(this.__write$).then(()=>{})}},mi=va;const ba=()=>({configuration:new ye,focus:new ur(void 0),infos:new ye,mocks:new ye,mode:new ur("select"),notification:new ye,setSourceMap:new ye(1),swSourceMapAck:new ye(1),updated:new It,uppercaseTags:new Set}),vi=t=>{let e=0;const n=t.getValue();return n==="interact"?e="select":n==="select"&&(e="interact"),t.next(e),e},ya=t=>e=>{const{data:n}=e;switch(n.type){}},_a=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 mi(ya(),window.navigator.serviceWorker,r.active)})]).then(([,r])=>r)},ga=(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":vi(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}}},wa=(t,e)=>new mi(ga(t,e),t,ha(t.parent),{log(n){if(t.__BACKOFFICE_CONFIGURATOR_LOG_LEVEL__==="debug"&&console.assert(t.parent!==t),t.__BACKOFFICE_CONFIGURATOR_LOG_LEVEL__==="debug"&&Oo[n.type]!==ii.Skip){const r={background:this.colors.bg,color:this.colors.fg};console.groupCollapsed("%c Msg from ".concat(t.origin," (inner) "),Object.entries(r).map(([s,o])=>"".concat(s,": ").concat(o)).join("; ")),console.info("window '".concat(t.origin,"' is sending a message of type %c ").concat(n.type," "),"background: lightgreen; color: darkgreen"),console.log(n.content),console.groupEnd()}}}),ka=t=>e=>{e.ctrlKey&&e.key===" "&&(e.preventDefault(),vi(t.mode),t.focus.next(void 0))},Aa=([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)},Sa=(t,e)=>ut(e.map(n=>[n,t.whenDefined(n)])).pipe(je(Aa),je($a)),Ea=500,$n=(t,e)=>{e instanceof Error&&hi(t,e)},xa=(t,e,n)=>e.pipe(je(([,{__manifest:{label:r,description:s,...o},tag:c}])=>(delete o.mocks,Bs({info:{...fo({description:s,label:r}),...o},tag:c}))),io(Ea),X(r=>r.length>0)).subscribe({error:r=>$n(t,r),next:r=>n(r)}),Oa=(t,e,n)=>n.pipe(le(([,{__manifest:{mocks:r={}},tag:s}])=>[s,r])).subscribe({error:r=>$n(t,r),next:r=>{e.mocks.next(r)}});async function bi(t,e,n,{addInfo:r,tags:s}){const{subscription:o}=this;if(n){const c=Sa(this.customElements,s);return aa(n,this,f=>{$n(t,f),r([])}).then(()=>{o.add(xa(t,c,r)),o.add(Oa(t,e,c))})}}const yi=(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 vn(t,e){const n=sa(),{proxyWindow:r=this}=this;return ca({content:t,sources:{importmap:{},uris:[]}},yi(this,e),{eventBus:n,proxyWindow:r})}function _i(t){yi(this,t).remove()}var Ia=Object.defineProperty,Ca=(t,e,n)=>e in t?Ia(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ar=(t,e,n)=>(Ca(t,typeof e!="symbol"?e+"":e,n),n);function $r(t,e,n){const{properties:r,attributes:s,booleanAttributes:o=[]}=t,c=Object.assign(Object.fromEntries(ti(o).map(h=>[h,!0])),{...s,...r});return e(c).map(({url:h,method:d="GET",notify:y=!1,handler:k=()=>Promise.resolve(new Response)})=>{var E;const x=Eo({...h,method:d},c),M=new URL(x.pathname,(E=x.origin)!=null?E:n);return[M.href,d,(C,U)=>k(C,U).finally(()=>{y&&this.notify(gi(d,M))})]})}const La=(t,e)=>{const{href:n,search:r}=t;return n.replace(/\?$/,"").substring(0,n.length-r.length).match(new RegExp("^".concat(e,"$")))!==null},Ta=(t,e)=>{const{href:n}=t;return n.match(new RegExp("^".concat(e.replace(/\/$/,""),"/")))!==null};class Pa extends Map{constructor(e){super(),Ar(this,"notify"),Ar(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,y)=>{if(La(s,h)||Ta(s,h)){if(f===void 0)return d;if(y[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 Ma=t=>([e,n,r])=>t.add({method:n,url:e},r);async function Sr(t,e,n,r){const s=Ma(t);return Array.isArray(e)?Promise.all(e.map(o=>$r.call(t,o,n,r)).flat().map(s)).then(Ue):Promise.all($r.call(t,e,n,r).map(s)).then(Ue)}var Er;const xr=(Er=window.__BACKOFFICE_CONFIGURATOR_PREVIEW_TIMEOUT__)!=null?Er:5e3,ja=t=>t.includes("-"),Or=t=>({data:{tag:t},description:"preview.notifications.no-webcomponent-definition.description",message:"preview.notifications.no-webcomponent-definition.message",status:"warning"});async function Ra(t,e,n,r=[]){const{location:{href:s},fetch:o}=this,c=ni(this),f=new Pa(this.notify.bind(this));await Promise.all(r.map(async d=>{var y;let k=()=>[];const E=await Promise.race([$t(dn(xr)),$t(e.mocks.pipe(X(([M])=>M===d),Te(1)))]);if(E===0)this.notify(Or(d));else{const[,{fetch:M}]=E;M!==void 0&&(k=M)}const x=(y=n.get(d))!=null?y:[];return Sr(f,x,k,s)})).catch(d=>d instanceof Error&&hi(t,d));const h=async(d,y)=>{var k;const E=ri(c,d),x=f.match({method:(k=y==null?void 0:y.method)!=null?k:"GET",url:E});return x!==void 0?x(E,y).then(M=>M):o(d,y)};if(this.proxyWindow){const d=Object.assign(h,{update:async y=>{let k=()=>[];if(ja(y.tag)){const E=await Promise.race([$t(dn(xr)),$t(e.mocks.pipe(X(([x])=>x===y.tag),Te(1)))]);if(E===0)this.notify(Or(y.tag));else{const[,{fetch:x}]=E;x!==void 0&&(k=x)}}return Sr(f,y,k,s)}});this.fetch=d,this.proxyWindow.fetch=d}}function Na(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 }".concat(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 Fa(t,e,n){const{href:r,origin:s,pathname:o}=new URL(n);let c=r;s===this.location.origin&&(c="".concat(o)),this.notify({data:{nextUrl:c},description:"preview.notifications.navigation-event.description.pushState",message:"preview.notifications.navigation-event.message",status:"default"})}function Ha(t,e,n){const{href:r,origin:s,pathname:o,search:c}=new URL(n);let f=r;s===this.location.origin&&(f="".concat(o).concat(c)),this.notify({data:{nextUrl:f},description:"preview.notifications.navigation-event.description.replaceState",message:"preview.notifications.navigation-event.message",status:"info"})}function Wa(t){return new Proxy(t,{get:(e,n)=>n==="pushState"?(r,s,o)=>{Fa.call(this,r,s,new URL(o??"",new URL(this.document.baseURI,this.location.href)))}:n==="replaceState"?(r,s,o)=>{Ha.call(this,r,s,new URL(o??"",new URL(this.document.baseURI,this.location.href)))}:e[n]})}class Ir 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 Ua=t=>t.tagName==="A";function Ba(t){const{prototype:{createElement:e}}=Document;return Document.prototype.createElement=function(r,s){const o=e.call(this,r,s);if(Ua(o)){const c=()=>{var f;return t.notify({data:{href:ho(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:Ue})}return o},()=>{Document.prototype.createElement=e}}function Da(t,e){let n=t.fetch.bind(t);const r={notify:y=>e.next(y)},s=new Ir,o=new Ir,c=Object.assign(t,r),f=new Proxy(c,{get(y,k,E){if(k==="fetch")return n;if(k==="history")return Wa.call(y,y.history);if(k==="location")return Object.entries(window.location).reduce((M,[C,U])=>(Object.defineProperty(M,C,{get:()=>U,set:F=>{C==="href"&&typeof F=="string"&&y.notify({data:{nextUrl:F,target:"_self"},description:"preview.notifications.navigation-event.description.location.href",message:"preview.notifications.navigation-event.message",status:"info"})}}),M),{});if(k==="open")return Na.bind(y);if(k==="localStorage")return s;if(k==="sessionStorage")return o;const x=Reflect.get(y,k);return typeof x!="function"?x:function(...C){return Reflect.apply(x,this===E?t:this,C)}},set(y,k,E){return k==="fetch"?(n=E,!0):Reflect.set(y,k,E)}}),h=Object.assign(c,{proxyWindow:f}),d=Ba(h);return{sandbox:h,unpatch:d}}var Va=Object.defineProperty,qa=(t,e,n)=>e in t?Va(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Cr=(t,e,n)=>(qa(t,typeof e!="symbol"?e+"":e,n),n);function Ga(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="".concat(xo);const o=()=>r.style.display===s,c=()=>o()?r.style.display="none":r.style.display=s,f=e.pipe(X(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 Ya=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 za(t,e){const n=t;return Object.assign(t,{bootstrap:bi.bind(n),mocks:{fetch:new Map},postChannel:e,subscription:new ce,unmount:_i.bind(n),update:vn.bind(n)})}class Ja{constructor(){Cr(this,"_results",new Map),Cr(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 Ka=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"})})},Qa=t=>e=>{t.infos.next(e),e.forEach(({tag:n})=>t.uppercaseTags.add(n.toUpperCase()))},Xa=(t,e,n,r)=>{const s=new Ja,o=r.configuration.pipe(so(r.swSourceMapAck)).subscribe(([c])=>{const{configuration:f}=c,{content:h}=f;let d;if(c.type==="reset"){const{contexts:y,tags:k}=c;d=s.add([()=>_i.call(t,e),()=>bi.call(t,n,r,f,{addInfo:Qa(r),tags:k}),()=>Ra.call(t,n,r,y,c.tags),()=>vn.call(t,h,e).finally(()=>r.updated.next(0))])}else{const{context:y}=c;d=s.add([()=>{var k,E,x;return(x=(k=t.proxyWindow)==null?void 0:(E=k.fetch).update)==null?void 0:x.call(E,y)},()=>vn.call(t,h,e).finally(()=>r.updated.next(0))])}d.then(Ka(r.notification)).catch(Ue)});return()=>o.unsubscribe()},Za=t=>{const{body:e}=t;e.style.height="100%",e.style.padding="0",e.style.margin="0"},ec=(t,e)=>{const{location:{origin:n,port:r,protocol:s}}=t;return!(n!==e.origin||r!==e.port||s!==e.protocol)},gi=(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"}),tc=(t,e)=>{const n=ni(t),{document:r,parent:s}=t;if(s===t)return;const o=t.fetch.bind(t);t.fetch=(c,f)=>{var h;const d=ri(n,c);return ec(r,d)&&e.next(gi((h=f==null?void 0:f.method)!=null?h:"GET",d)),o(c,f)}},nc=(t,e,n)=>{Za(t.document),tc(t,n.notification);const{cleanup:r}=Ga(t,n.mode.asObservable()),s=yo(t.document,n.focus.asObservable(),n.mode.asObservable()),o=Ya(t.document),c=za(t,e),{sandbox:f,unpatch:h}=Da(c,n.notification),d=Xa(f,o,e,n);return{cleanup:()=>{d(),h(),s(),r()},sandboxedWindow:f}};function rc(t){const e=new ce;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 ic(t){const e=new ce;return e.add(t.setSourceMap.subscribe(n=>{this.ackSend({content:n,type:"set-source-map"}).then(()=>t.swSourceMapAck.next(0)).catch(Ue)})),()=>e.unsubscribe()}function sc(t,...e){const n=e.map(({type:r,handler:s})=>(t.addEventListener(r,s),()=>t.removeEventListener(r,s)));return()=>{n.forEach(r=>r())}}function oc(t,e){t.addEventListener("unload",()=>{t.subscription.unsubscribe(),e.forEach(n=>n())})}(async t=>{const e=ba(),n=await _a(t),r=wa(t,e),s=ic.call(n,e),o=rc.call(r,e),c=sc(t,{handler:ka(e),type:"keydown"},{handler:kr(r,"mousemove"),type:"mousemove"},{handler:kr(r,"mousedown"),type:"mousedown"},{handler:fa(t,r,e),type:"mousedown"}),{cleanup:f,sandboxedWindow:h}=nc(t,r,e);oc(h,[f,c,o,s,()=>r.disconnect(),()=>n.send({content:{},type:"unload-client"}),()=>n.disconnect()])})(window).catch(t=>{throw console.error("[preview] Error Boundary: ".concat(String(t))),t});
|
@@ -1,23 +0,0 @@
|
|
1
|
-
var ErrorCodes = /* @__PURE__ */ ((ErrorCodes2) => {
|
2
|
-
ErrorCodes2["DynamicImportError"] = "0";
|
3
|
-
ErrorCodes2["InvalidJSONError"] = "20";
|
4
|
-
ErrorCodes2["DigestError"] = "40";
|
5
|
-
ErrorCodes2["LexerAnalysisEndedInNormalMode"] = "41";
|
6
|
-
ErrorCodes2["InterpolationContextError"] = "42";
|
7
|
-
ErrorCodes2["InterpolationJSONError"] = "43";
|
8
|
-
return ErrorCodes2;
|
9
|
-
})(ErrorCodes || {});
|
10
|
-
const COMPOSER = `[micro-lc][composer]`;
|
11
|
-
const errorMap = {
|
12
|
-
0: (name, err) => `${COMPOSER}: Dynamic import error while importing ${name} - ${err}`,
|
13
|
-
20: (file) => `${COMPOSER}: Provided JSON is invalid / Wrong 'Content-Type' was provided - ${file}`,
|
14
|
-
40: (content, err) => `${COMPOSER}: Something went wrong while hashing content ${content} - ${err}`,
|
15
|
-
41: (content, index) => `${COMPOSER}: Lexer could not parse content ${content} due to unexpected char "}" at position ${index}`,
|
16
|
-
42: (input) => `${COMPOSER}: Invalid interpolation sequence of keys on input ${input}`,
|
17
|
-
43: (err) => `${COMPOSER}: Invalid interpolation sequence while parsing a JSON input - ${err}`
|
18
|
-
};
|
19
|
-
var errors_default = errorMap;
|
20
|
-
export {
|
21
|
-
ErrorCodes,
|
22
|
-
errors_default as default
|
23
|
-
};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"../../.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": {
|
3
|
-
"file": "assets/errors-5a0ccde7.js",
|
4
|
-
"isDynamicEntry": true,
|
5
|
-
"src": "../../.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"
|
6
|
-
},
|
7
|
-
"index.html": {
|
8
|
-
"dynamicImports": [
|
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
|
-
],
|
11
|
-
"file": "assets/index-d2f4fff8.js",
|
12
|
-
"isEntry": true,
|
13
|
-
"src": "index.html"
|
14
|
-
}
|
15
|
-
}
|
package/website/manifest.json
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"../../.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": {
|
3
|
-
"file": "assets/errors-af3a2945.js",
|
4
|
-
"isDynamicEntry": true,
|
5
|
-
"src": "../../.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"
|
6
|
-
},
|
7
|
-
"index.html": {
|
8
|
-
"dynamicImports": [
|
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
|
-
],
|
11
|
-
"file": "assets/index-51922652.js",
|
12
|
-
"isEntry": true,
|
13
|
-
"src": "index.html"
|
14
|
-
}
|
15
|
-
}
|