@qwik.dev/core 2.0.0-beta.4 → 2.0.0-beta.5

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.
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/build",
3
- "version": "2.0.0-beta.4-dev+9849dcf",
3
+ "version": "2.0.0-beta.5-dev+8887f7e",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
package/dist/cli.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/cli 2.0.0-beta.4-dev+9849dcf
3
+ * @qwik.dev/core/cli 2.0.0-beta.5-dev+8887f7e
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -5536,7 +5536,7 @@ async function printHelp(app) {
5536
5536
  await runCommand2(Object.assign(app, { task: args[0], args }));
5537
5537
  }
5538
5538
  function printVersion() {
5539
- console.log("2.0.0-beta.4-dev+9849dcf");
5539
+ console.log("2.0.0-beta.5-dev+8887f7e");
5540
5540
  }
5541
5541
  // Annotate the CommonJS export names for ESM import in node:
5542
5542
  0 && (module.exports = {
@@ -4338,7 +4338,7 @@ export declare const _VAR_PROPS: unique symbol;
4338
4338
  export declare const _verifySerializable: <T>(value: T, preMessage?: string) => T;
4339
4339
 
4340
4340
  /**
4341
- * 2.0.0-beta.4-dev+9849dcf
4341
+ * 2.0.0-beta.5-dev+8887f7e
4342
4342
  *
4343
4343
  * @public
4344
4344
  */
package/dist/core.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core 2.0.0-beta.4-dev+9849dcf
3
+ * @qwik.dev/core 2.0.0-beta.5-dev+8887f7e
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -1236,7 +1236,7 @@
1236
1236
  *
1237
1237
  * @public
1238
1238
  */
1239
- const version = "2.0.0-beta.4-dev+9849dcf";
1239
+ const version = "2.0.0-beta.5-dev+8887f7e";
1240
1240
 
1241
1241
  /** @internal */
1242
1242
  const EMPTY_ARRAY = [];
package/dist/core.min.mjs CHANGED
@@ -1 +1 @@
1
- import{p as t}from"@qwik.dev/core/preloader";const n=!1,e=!0,r=!1,o=(t,n,...e)=>{const r=n instanceof Error?n:new Error(n);return console.error("%cQWIK ERROR","",r.message,...e,r.stack),t&&setTimeout(()=>{throw r},0),r},s=t=>{const n=Object.getPrototypeOf(t);return n===Object.prototype||n===Array.prototype||null===n},i=t=>"object"==typeof t&&null!==t,l=t=>Array.isArray(t),u=t=>"string"==typeof t,c=t=>"function"==typeof t,f=(t,n=[])=>{const e=(t=>`Code(Q${t}) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L${8+t}`)(t,...n);return((t,...n)=>o(false,t,...n))(e,...n)},a="<sync>",h=t=>"function"==typeof t&&"function"==typeof t.getSymbol,d="q:renderFn",$="⚡️",p="q:slot",y="q:sparent",w="q:s",m="q:style",b="style[q\\:style]",g=b+",style[q\\:sstyle]",v="q:sstyle",S="q:ctx",k="q:brefs",x=(t,n)=>t["qFuncs_"+n]||[],R="q:base",A="q:instance",q="q:container-island",P="/"+q,j="q:ignore",I="/"+j,N="q:container",O="/"+N,C="http://www.w3.org/1999/xhtml",E="http://www.w3.org/2000/svg",M="http://www.w3.org/1998/Math/MathML",_="qRender",F="q:key",L="q:props",T="q:seq",W="q:seqIdx",U=":on",D=":onIdx",V=":onFlags",z="qkssr-f",Q=":",B="dangerouslySetInnerHTML",H=()=>({isServer:n,importSymbol(t,n,e){if(!n)throw f(14,[e]);if(!t)throw f(13,[n,e]);const r=J(t.ownerDocument,t,n).toString(),o=new URL(r);return o.hash="",import(o.href).then(t=>t[e])},raf:t=>new Promise(n=>{requestAnimationFrame(()=>{n(t())})}),nextTick:t=>new Promise(n=>{setTimeout(()=>{n(t())})}),chunkForSymbol:(t,n)=>[t,n??"_"]}),J=(t,n,e)=>{const r=t.baseURI,o=new URL(n.getAttribute(R)??r,r);return new URL(e,o)};let G=/*#__PURE__ */H();const Y=t=>G=t,Z=()=>G,X=t=>t&&"number"==typeof t.nodeType,K=t=>1===t.nodeType,tt=t=>!!t&&"object"==typeof t&&"function"==typeof t.then,nt=(t,n,e)=>{try{const r=t();return tt(r)?r.then(n,e):n(r)}catch(t){return e(t)}},et=(t,n)=>tt(t)?t.then(n,rt):n(t),rt=t=>{(t=>{throw o(!1,t,...[])})(t)},ot=t=>new Promise(n=>{setTimeout(n,t)});function st(t,n=0){const e=e=>{if(tt(e)&&n<100)return e.then(st.bind(null,t,n++));throw e};try{const n=t();return tt(n)?n.catch(t=>e(t)):n}catch(t){return e(t)}}function it(){}function lt(){}let ut;function ct(t){if(void 0===ut){const n=vt();if(n&&n.t)return n.t;if(void 0!==t)return t;throw new Error("Reading `locale` outside of context.")}return ut}function ft(t,n){const e=ut;try{return ut=t,n()}finally{ut=e}}const at=Symbol("invalid"),ht=Symbol("backRef"),dt=Symbol("store.target"),$t=Symbol("store.handler"),pt=Symbol("store.all");class yt{o;l=null;u=null;constructor(t,n){this.u=t,this.o=n}get untrackedValue(){return this.o}set untrackedValue(t){this.o=t}get value(){return wt(this,()=>this.l||=new Set,()=>this.untrackedValue)}set value(t){t!==this.o&&(this.o=t,Jr(this.u,this,this.l))}valueOf(){}toString(){return this.constructor.name}toJSON(){return{value:this.o}}}const wt=(t,n,e)=>{const r=vt();if(r){if(null===t.u){if(!r.u)return e();t.u=r.u}const o=r.h;o&&((t,n,e)=>{Qr(e,n),Br(n,t),Hr(n,t.u)})(t,o,n())}return e()};class mt extends yt{$;p;m;v;k=null;R=!1;[ht]=null;constructor(t,n,e,r,o=3){super(t,at),this.$=e,this.p=n,this.m=r,this.v=o}invalidate(){this.v|=1,this.R=!1,this.u?.q(7,this.k,this,this.l)}force(){this.R=!0,this.u?.q(7,this.k,this,this.l)}get untrackedValue(){const t=this.j();return t&&(this.R=t),this.o}j(){if(!(1&this.v))return!1;const t=Nt(()=>this.p(...this.$),this,".",this.u),n=t!==this.o;return n&&(this.o=t),n}set value(t){throw f(31)}get value(){return super.value}}function bt(t,n,e){t[ht]||(t[ht]=new Map);const r=t[ht];let o=r.get(n);return o||(o=[t,n],r.set(n,o)),e&&(o[3]=e),o}let gt;const vt=()=>{if(!gt){const t="undefined"!=typeof document&&document&&document.__q_context__;if(!t)return;return l(t)?document.__q_context__=qt(t):t}return gt},St=()=>{const t=vt();if(!t)throw f(9);return t},kt=()=>{const t=vt();if(!t||t.N!==_)throw f(10);return t};function xt(t){if(null==t)return t;const n=St();return function(...e){return At.call(this,n,t,e)}}function Rt(t,n,...e){return At.call(this,t,n,e)}function At(t,n,e){const r=gt;let o;try{gt=t,o=n.apply(this,e)}finally{gt=r}return o}const qt=([t,n,e])=>{const r=Lr(t),o=bo(r.rootVNode,t),s=r.t;return s&&function(t){ut=t}(s),Pt(s,o,t,n,e)},Pt=(t,n,e,r,o)=>({O:o,M:0,k:n,_:e,N:r,L:void 0,h:void 0,t:t||(r&&i(r)&&"locale"in r?r.locale:void 0),u:void 0}),jt=t=>Rt(void 0,t),It=/*#__PURE__*/Pt(void 0,void 0,void 0,_),Nt=(t,n,e,r,o)=>{const s=It.h,i=It.u;try{return It.h=bt(n,e,o),It.u=r,Rt(It,t)}finally{It.h=s,It.u=i}},Ot=(t,n,e,r,o)=>(t instanceof mt&&t.k!==n&&n&&(t.k=n),Nt(()=>t.value,n,e,r,o)),Ct=()=>{const t=vt();if(t){const n=t.k;let e=null;return null!=n&&(ro(n)?oo(n)&&(e=ds(n)):e=n),e??t.L?.T(void 0)}},Et=()=>{const t=vt();if(t)return t.N},Mt=()=>{const t=vt();if(t)return t.u},_t=t=>t,Ft=t=>{const n=Wr(t);if(!n)return Promise.resolve();const e=n.qContainer;return e?.renderDone??Promise.resolve()},Lt=()=>{const t=kt(),n=t.k;let e=t.u.getHostProp(n,T);null===e&&(e=[],t.u.setHostProp(n,T,e));let r=t.u.getHostProp(n,W);for(null===r&&(r=0),t.u.setHostProp(n,W,r+1);e.length<=r;)e.push(void 0);return{val:e[r],set:t=>e[r]=t,i:r,iCtx:t}},Tt="$",Wt="DOMContentLoaded",Ut=t=>(t.startsWith("on")||t.startsWith("window:on")||t.startsWith("document:on"))&&t.endsWith(Tt),Dt=t=>t.startsWith("on:")||t.startsWith("on-window:")||t.startsWith("on-document:");function Vt(t){if(t.endsWith(Tt)){const[n,e]=Qt(t);if(-1!==e){const e=zt(t);return n+Gt(e)}}return null}function zt(t){if(t.endsWith(Tt)){const[,n]=Qt(t);if(-1!=n)return function(t,n=0){let e=n;const r=Bt(t.charCodeAt(n));r&&e++;let o="";const s=t.substring(e,t.length-1);return s===Wt?Wt:(o+=r?s:s.toLowerCase(),o)}(t,n)}return null}function Qt(t){let n=null,e=-1;return t.startsWith("on")?(n="on:",e=2):t.startsWith("window:on")?(n="on-window:",e=9):t.startsWith("document:on")&&(n="on-document:",e=11),[n,e]}const Bt=t=>45===t,Ht=t=>{const n=t.indexOf(":");return-1!==n?t.substring(0,n):""};function Jt(t){return t.startsWith("preventdefault:")}const Gt=t=>t.replace(/([A-Z-])/g,"-$1").toLowerCase(),Yt=t=>(/^[\w/.-]+$/.test(t),/*#__PURE__*/Object.freeze({id:Gt(t)})),Zt=(t,n)=>{const{val:e,set:r,iCtx:o}=Lt();void 0===e&&(o.u.setContext(o.k,t,n),r(1))},Xt=(t,n)=>{const{val:e,set:r,iCtx:o}=Lt();if(void 0!==e)return e;const s=o.u.resolveContext(o.k,t);if("function"==typeof n)return r(Rt(void 0,n,s));if(void 0!==s)return r(s);if(void 0!==n)return r(n);throw f(8,[t.id])},Kt=/*#__PURE__*/Yt("qk-error"),tn="2.0.0-beta.4-dev+9849dcf",nn=[],en={};Object.freeze(nn),Object.freeze(en);const rn=(t,n,e=nn)=>{let r=null,o=null;if(c(t))o=t;else{if(!u(t))throw f(7,[t]);r=t}return $i(r,n,null,o,null,e)},on=(t,n,e=nn)=>$i(null,n,t,null,null,e),sn=(t,n=nn)=>$i(null,t,null,null,null,n),ln=(t,n,e=nn)=>{const r=sn(t,e);return r.dev=n,r},un=(t,n,e,r=nn)=>{const o=rn(t,n,r);return o.dev=e,o},cn=(t,n,e,r=nn)=>{const o=on(t,n,r);return o.dev=e,o},fn=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t),an=()=>{const t=St();let n=t.L;return n||(n=Lr(Wr(t._)).parseQRL(decodeURIComponent(String(t.O)))),n.W},hn=(...t)=>{const[n]=an(),e=St(),r=e.k;if(!r)return;const o=Lr(e._).q;if(!o)throw f(1);return o(2,r,n,t)},dn=Symbol("CONST"),$n=Symbol("VAR"),pn=Symbol("IMMUTABLE"),yn=Symbol("UNINITIALIZED"),wn=t=>function(n,...e){return t.call(null,vi(n),...e)};class mn extends yt{U;v;R=!1;[ht]=null;constructor(t,n,e=17){super(t,at),this.U=n,this.v=e}invalidate(){this.v|=1,this.R=!1,this.u?.q(7,null,this,this.l)}force(){this.R=!0,this.u?.q(7,null,this,this.l)}get untrackedValue(){const t=this.j();return t&&(this.R=t),this.o}j(){if(!(1&this.v))return!1;const t=this.U;Vr(t);const n=vt(),e=n?.h;n&&(n.h=bt(this,"."));try{const e=t.getFn(n)();if(tt(e))throw f(29,[t.dev?t.dev.file:"",t.D]);this.v&=-2;const r=e!==this.o;return r&&(this.o=e),r}finally{n&&(n.h=e)}}set value(t){throw f(30)}get value(){return super.value}}class bn extends mn{constructor(t,n){super(t,n,17)}B=!1;j(){if(!(1&this.v))return!1;Vr(this.U);let t=this.U.resolved;"function"==typeof t&&(t=t());const{deserialize:n,initial:e}=t,r=t.update,o=this.o===at?e:this.o,s=Nt(()=>this.B?r?.(o)||o:n(o),this,".",this.u),i=this.B&&"undefined"!==s||s!==this.o;return this.v&=-2,this.B=!0,i&&(this.o=s),i}}const gn=t=>t[$t],vn=t=>t?.[dt]||null,Sn=t=>vn(t)||t,kn=t=>dt in t;function xn(t,n,e){return new Proxy(n,new An(e,t||null))}const Rn=(t,n,e)=>{if(s(t)&&e){let r=e.H.get(t);return r||(r=xn(e,t,n),e.H.set(t,r)),r}return t};class An{v;u;l=null;constructor(t,n){this.v=t,this.u=n}toString(){return"[Store]"}get(t,n){if("symbol"==typeof n)return n===dt?t:n===$t?this:t[n];const e=vt(),r=t[n];if(e){if(null===this.u){if(!e.u)return r;this.u=e.u}const o=e.h;o&&qn(t,Array.isArray(t)?pt:n,this,o)}return"toString"===n&&r===Object.prototype.toString?this.toString:1&this.v&&i(r)&&!Object.isFrozen(r)&&!kn(r)&&!Object.isFrozen(t)?Rn(r,this.v,this.u):r}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const r=1&this.v?Sn(e):e;return n in t?r!==t[n]&&Pn(n,r,t,this):Pn(n,r,t,this),!0}deleteProperty(t,n){return"string"==typeof n&&delete t[n]&&(Jr(this.u,this,jn(t,n,this.l)),!0)}has(t,n){if(n===dt)return!0;if("string"==typeof n){const e=vt();if(e){const r=e.h;r&&qn(t,Array.isArray(t)?pt:n,this,r)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=vt(),e=n?.h;return e&&qn(t,pt,this,e),Reflect.ownKeys(t)}getOwnPropertyDescriptor(t,n){const e=Reflect.getOwnPropertyDescriptor(t,n);return Array.isArray(t)||"symbol"==typeof n||e&&!e.configurable?e:{enumerable:!0,configurable:!0}}}function qn(t,n,e,r){const o=e.l||=new Map;let s=o.get(n);s||(s=new Set,o.set(n,s)),Qr(s,r),Br(r,t),Hr(r,e.u)}function Pn(t,n,e,r){e[t]=n,Jr(r.u,r,jn(e,t,r.l))}function jn(t,n,e){let r;if(e)if(Array.isArray(t))for(const t of e.values()){r||=new Set;for(const n of t)r.add(n)}else r=e.get(n);const o=e?.get(pt);if(o){r||=new Set;for(const t of o)r.add(t)}return r||null}const In=(t,n)=>(e,r)=>{const o=Pt();return o.h=bt(t,":"),o.u=n||void 0,Rt(o,()=>{if(c(e))return e();if(r)return e[r];if(zr(e))return e.value;if(i(e)&&kn(e))return qn(vn(e),pt,gn(e),o.h),e;throw f(2)})},Nn=(t,n)=>{let e=null;return[r=>{"function"==typeof r&&(e||(e=[],t.J=fi(()=>{t.J=null,e.forEach(t=>{try{t()}catch(t){n(t)}})})),e.push(r))},e??[]]};class On extends mn{G=!1;Y=null;Z=null;X=null;J;K=at;[ht]=null;constructor(t,n,e=1){super(t,n,e)}get loading(){return wt(this,()=>this.Z||=new Set,()=>this.untrackedLoading)}set untrackedLoading(t){t!==this.G&&(this.G=t,this.u?.q(7,null,this,this.Z))}get untrackedLoading(){return this.G}get error(){return wt(this,()=>this.X||=new Set,()=>this.untrackedError)}set untrackedError(t){t!==this.Y&&(this.Y=t,this.u?.q(7,null,this,this.X))}get untrackedError(){return this.Y}invalidate(){super.invalidate(),this.K=at}j(){if(!(1&this.v))return!1;const t=this.U;Vr(t);const[n]=Nn(this,t=>this.u?.handleError(t,null)),e=this.K===at?t.getFn()({track:In(this,this.u),cleanup:n}):this.K;if(tt(e))throw this.untrackedLoading=!0,this.untrackedError=null,e.then(t=>{this.K=t,this.untrackedLoading=!1,this.untrackedError=null}).catch(t=>{this.K=t,this.untrackedLoading=!1,this.untrackedError=t});this.K=at,this.v&=-2;const r=e!==this.o;return r&&(this.o=e),r}}const Cn=(t,n)=>new mn(n?.container||null,t,Gr(n?.serializationStrategy||"always")),En=(t,n)=>new On(n?.container||null,t,Gr(n?.serializationStrategy||"never")),Mn=t=>new bn(null,t),_n=t=>new yt(null,t),Fn=/*#__PURE__*/wn(Cn),Ln=/*#__PURE__*/wn(En),Tn=wn(Mn),Wn=t=>t.value,Un=(t,n)=>t[n],Dn=t=>new mt(null,1===t.length?Wn:Un,t,null),Vn=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!i(n))return n[e];if(zr(n))return n instanceof mt&&2&n.flags?n:Dn(t);if(Je(n)){const t=n[dn];if(t&&e in t)return t[e]}else{const r=vn(n);if(r){const n=r[e];return zr(n)?n:Dn(t)}}return n[e]},zn=(t,n)=>{const e=Vn(t,n);return e===pn?t[n]:e};class Qn{data;constructor(t){this.data=t}}function Bn(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}const Hn=(t,n,e)=>new mt(null,t,n,e||null);function Jn(t){return!t.startsWith("q:")&&!t.startsWith(":")}const Gn=(t,n,e={})=>{let r=null;const o=t[dn];if(o)for(const t in o)n.includes(t)||(r||={},r[t]=o[t]);const s=e,i=t[$n];for(const t in i)n.includes(t)||(s[t]=i[t]);return nr(s,r)},Yn=t=>We(Ye,null,{[w]:""},t.children,0,t.name??""),Zn=Symbol("skip render"),Xn=()=>null,Kn=()=>null,te=t=>[Qe(Kn,{data:"qkssr-pu"}),t.children,Qe(Kn,{data:"qkssr-po"})],ne=(t,n)=>Qe(Ze,{children:Qe(ee,t)},n),ee=()=>null,re="q:type",oe={V:"Virtual",F:"Fragment",S:"Signal",A:"Awaited",C:"Component",I:"InlineComponent",P:"Projection"},se=t=>$+t;function ie(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&le(n))return!0;return!1}function le(t){return"class"===t||"className"===t}const ue=t=>{if(t){let n=0;do{t=t.substring(0,n)+se(t.substring(n))}while(0!==(n=t.indexOf(" ",n)+1))}return t||null},ce=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexShrink","gridArea","gridRow","gridRowEnd","gridRowStart","gridColumn","gridColumnEnd","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","scale","tabSize","widows","zIndex","zoom","MozAnimationIterationCount","MozBoxFlex","msFlex","msFlexPositive","WebkitAnimationIterationCount","WebkitBoxFlex","WebkitBoxOrdinalGroup","WebkitColumnCount","WebkitColumns","WebkitFlex","WebkitFlexGrow","WebkitFlexShrink","WebkitLineClamp"]),fe=(t,n=0)=>{for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return Number(Math.abs(n)).toString(36)},ae=t=>{if(!t)return"";if(u(t))return t.trim();const n=[];if(l(t))for(const e of t){const t=ae(e);t&&n.push(t)}else for(const[e,r]of Object.entries(t))r&&n.push(e.trim());return n.join(" ")},he=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase();function de(t,n,e){if(le(t)){const t=ae(n);n=e?e+(t.length?" "+t:t):t}else"style"===t?n=(t=>{if(null==t)return"";if("object"==typeof t){if(l(t))throw f(0,[t,"style"]);{const n=[];for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];null!=r&&"function"!=typeof r&&(e.startsWith("--")?n.push(e+":"+r):n.push(he(e)+":"+$e(e,r)))}return n.join(";")}}return String(t)})(n):function(t){return t.startsWith("aria-")||["spellcheck","draggable","contenteditable"].includes(t)}(t)||"number"==typeof n?n=(t=>null!=t?String(t):null)(n):!1===n||null==n?n=null:!0===n&&Jt(t)&&(n="");return n}const $e=(t,n)=>"number"!=typeof n||0===n||ce.has(t)?n:n+"px";class pe{[ht]=null}function ye(t,n){ro(n)&&oo(n)&&_o(n);const e=n[ht];if(e)for(const[,n]of e){const e=n[2];if(!e)return;for(const r of e)if(r instanceof yt)we(t,r,n);else if(r instanceof On)me(r,n);else if(t.H.has(r)){const e=t.H.get(r);be(gn(e),n)}}}function we(t,n,e){const r=n.l;r&&r.delete(e),n instanceof mt&&(n.k=null,ye(t,n))}function me(t,n){const e=t.l;e&&e.delete(n);const r=t.Z;r&&r.delete(n)}function be(t,n){const e=t?.l;if(e)for(const t of e.values())t.delete(n)}const ge=(t,n,e,r,o)=>{const s=Pt(t.t,e||void 0,void 0,_);let i;e&&(s.h=bt(e,":"),s.u=t),t.ensureProjectionResolved(n);let l=!1;if(null===r&&(r=t.getHostProp(n,d)),h(r))(o=o||t.getHostProp(n,L)||en).children&&delete o.children,i=r.getFn(s);else if(qi(r)){const t=r;i=()=>At(s,t,[o||en,null,0])}else{l=!0;const t=r;i=()=>At(s,t,[o||en])}const u=(e=0)=>nt(()=>(l||(t.setHostProp(n,W,null),t.setHostProp(n,D,null)),ro(n)&&ye(t,n),i(o)),e=>{const r=t.getHostProp(n,U);return r?function(t,n){const e=Se(t);let r=t;return et(e,t=>{let e=!1;t||(e=!0);for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(e){if("onQvisible$"===o){const[t,e]=ke(r);r=e,t&&ve(t,"document:onQinit$",n[o])}else if(o.startsWith("document:")||o.startsWith("window:")){const[t,e]=ke(r);r=e,t&&ve(t,o,n[o])}}else t&&ve(t,o,n[o]);return r})}(e,r):e},t=>{if(tt(t)&&e<100)return t.then(()=>u(++e));if(e>=100)throw new Error("Max retry count of component execution reached");throw t});return u()};function ve(t,n,e){let r=t.props;r===en&&(r=t.props={});let o=r[n];void 0===o?o=[]:Array.isArray(o)||(o=[o]),o.push(...e),r[n]=o}function Se(t){const n=[t];for(;n.length;){const t=n.shift();if(Xe(t)){if("string"==typeof t.type)return t;n.push(t.children)}else if(Array.isArray(t))n.push(...t);else{if(tt(t))return et(t,t=>Se(t));if(zr(t))return Se(jt(()=>t.value))}}return null}function ke(t){if(Xe(t)){const n=new Ge("script",{},{type:"placeholder",hidden:""},null,3);return t.type===Yn?[n,We(Ke,null,null,[t,n],0,null)]:(null==t.children?t.children=n:Array.isArray(t.children)?t.children.push(n):t.children=[t.children,n],[n,t])}if(Array.isArray(t)&&t.length){const[n,e]=ke(t[0]);return[n,t]}return[null,null]}class xe{tt;nt;constructor(t,n){this.tt=t,this.nt=n}}class Re{}async function Ae(t,n,e){const r=[n],o=t=>r.push(t);await(async()=>{for(;r.length;){const n=r.pop();if(n instanceof xe)e.currentStyleScoped=n.tt,e.parentComponentFrame=n.nt;else{if(n===Re){const t=r.pop();await st(()=>r.push(t()));continue}if("function"!=typeof n)qe(t,o,n,{styleScoped:e.currentStyleScoped,parentComponentFrame:e.parentComponentFrame});else{if(n===Promise){r.push(await r.pop());continue}await n.apply(t)}}}})()}function qe(t,n,e,r){if(null==e)t.textNode("");else if("boolean"==typeof e)t.textNode("");else if("number"==typeof e)t.textNode(String(e));else if("string"==typeof e)t.textNode(e);else if("object"==typeof e)if(Array.isArray(e))for(let t=e.length-1;t>=0;t--)n(e[t]);else if(zr(e)){t.openFragment(nn);const r=t.getOrCreateLastNode();n(t.closeFragment),n(()=>Ot(e,r,".",t)),n(Re)}else if(tt(e))t.openFragment(nn),n(t.closeFragment),n(e),n(Promise),n(()=>t.commentNode(z));else if(function(t){return!!t[Symbol.asyncIterator]}(e))n(async()=>{for await(const n of e)await Ae(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(z)});else{const o=e,s=o.type;if("string"==typeof s){!function(t,n){null==rr(t,"class")&&n&&(t.constProps||(t.constProps={}),t.constProps.class="")}(o,r.styleScoped);let e=null;const i=t.openElement(s,Pe(o.varProps,o.constProps,t.serializationCtx,!0,r.styleScoped,o.key),Pe(o.constProps,o.varProps,t.serializationCtx,!1,r.styleScoped),e);i&&t.htmlNode(i),n(t.closeElement),"head"===s?(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),n(t.additionalHeadNodes)):"body"===s?n(t.additionalBodyNodes):t.isHtml||t._didAddQwikLoader||(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),t._didAddQwikLoader=!0);const l=o.children;null!=l&&n(l)}else if(c(s))if(s===Ke){t.openFragment(null!=o.key?[F,o.key]:nn),n(t.closeFragment);const e=o.children;null!=e&&n(e)}else if(s===Yn){const e=r.parentComponentFrame||t.unclaimedProjectionComponentFrameQueue.shift();if(e){const s=[];s.push(y,e.componentNode.id||""),t.openProjection(s);const i=e.componentNode,l=t.getOrCreateLastNode(),u=function(t,n,e){const r=n.constProps;if(r&&"object"==typeof r&&"name"in r){const n=r.name;if(n instanceof mt)return Ot(n,t,":",e)}return rr(n,"name")||""}(i,o,t);s.push(p,u),n(new xe(r.styleScoped,r.parentComponentFrame)),n(t.closeProjection);const c=o.children||null,f=e.consumeChildrenForSlot(l,u)||c;c&&f!==c&&t.addUnclaimedProjection(e,"",c),n(f),n(new xe(e.projectionScopedStyle,e.projectionComponentFrame))}else t.openFragment(nn),t.closeFragment()}else if(s===Kn)t.commentNode(rr(o,"data")||"");else if(s===ne){t.commentNode(z);const e=o.children;let s;s=c(e)?e({async write(n){await Ae(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(z)}}):e,n(s),tt(s)&&n(Promise)}else if(s===Xn)t.htmlNode(rr(o,"data"));else if(qi(s)){t.openComponent([]);const e=t.getOrCreateLastNode(),i=t.getParentComponentFrame();i.distributeChildrenIntoSlots(o.children,r.styleScoped,r.parentComponentFrame);const l=((t,n,e)=>{const r=t.getOrCreateLastNode(),[o]=e[Ai],s=n.props;s&&s.children&&delete s.children;const i=t.q;return r.setProp(d,o),r.setProp(L,s),null!==n.key&&r.setProp(F,n.key),i(6,r,o,s)})(t,o,s),u=ue(e.getProp(v));n(new xe(r.styleScoped,r.parentComponentFrame)),n(t.closeComponent),n(l),tt(l)&&n(Promise),n(new xe(u,i))}else{t.openFragment([F,o.key]),n(t.closeFragment);const e=t.getComponentFrame(0),r=((t,n,e,r)=>{const o=t.getOrCreateLastNode();return ge(t,o,n,e,r.props)})(t,e&&e.componentNode,s,o);n(r),tt(r)&&n(Promise)}}}function Pe(t,n,e,r,o,s){if(null==t)return null;const i=[];for(const s in t){let l=t[s];if(Ut(s)){if(n){const t=Ie(n,s);if(t){if(!r)continue;l=je(l,t)}}const t=Ne(e,s,l);t&&i.push(Vt(s),t);continue}zr(l)?le(s)?i.push(s,[l,o]):i.push(s,l):(Jt(s)&&Ce(e,s),l=de(s,l,o),i.push(s,l))}return null!=s&&i.push(F,s),i}function je(t,n){let e=t;return Array.isArray(t)&&Array.isArray(n)?e=t.concat(n):Array.isArray(e)?e.push(n):Array.isArray(n)?(e=n,e.push(t)):e=[t,n],e}function Ie(t,n){const e=n.toLowerCase();for(const n in t)if(n.toLowerCase()===e)return t[n];return null}function Ne(t,n,e){let r=null;const o=e,s=t=>{r=(null==r?"":r+"\n")+t},i=n=>(n.et.startsWith("_")||!n.W&&!n.rt||(n=$i(null,"_run",hn,null,null,[n])),Vs(t,n));if(Array.isArray(o))for(let e=0;e<=o.length;e++){const r=o[e];if(h(r))s(i(r)),Oe(t,n,r);else if(null!=r){const e=Ne(t,n,r);e&&s(e)}}else h(o)&&(r=i(o),Oe(t,n,o));return r}function Oe(t,n,e){const r=zt(n);r&&(t.ot.add(r),t.st.add(e))}function Ce(t,n){const e=n.substring(15);e&&t.ot.add(e)}const Ee=t=>{const{val:n,set:e,iCtx:r,i:o}=Lt();if(n)return;e(1);const s=new Fe(10,o,r.k,t,void 0,null);e(s);const i=r.u.q(3,s);tt(i)&&i.catch(()=>{})},Me=(t,n,e)=>{t.v&=-9,_e(t);const r=Pt(n.t,e,void 0,"qTask");r.u=n;const o=t.L.getFn(r,()=>ye(n,t)),s=In(t,n),[i]=Nn(t,t=>n.handleError(t,e)),l={track:s,cleanup:i};return nt(()=>o(l),i,r=>{if(tt(r))return r.then(()=>Me(t,n,e));throw r})},_e=t=>{const n=t.J;if(n){t.J=null;try{n()}catch(t){o(!1,t)}}};class Fe extends pe{v;it;lt;L;ut;J;constructor(t,n,e,r,o,s){super(),this.v=t,this.it=n,this.lt=e,this.L=r,this.ut=o,this.J=s}}const Le=t=>t instanceof Fe,Te=(t,n)=>{const[e]=an(),r=1&e.v?32:3;Lr(n).q(r,e)},We=(t,n,e,r,o,s)=>{const i=null==s?null:String(s);return new Ge(t,n||{},e||null,r,o,i)},Ue=(t,n,e,r,o,s,i)=>{let l;return l=n?Object.fromEntries(jt(()=>Object.entries(n)).filter(t=>{const n=t[0];return"children"===n?(r??=t[1],!1):"key"===n?(s=t[1],!1):!e||!(n in e)||/^on[A-Z].*\$$/.test(n)}).sort(([t],[n])=>t<n?-1:1)):"string"==typeof t?en:{},e&&"children"in e&&(r=e.children,e.children=void 0),We(t,l,e,r,o,s,i)},De=(t,n,e,r)=>Qe(t,n,r),Ve=(t,n,e,r,o)=>Qe(t,{...e,...n},o),ze=(t,n,e,r,o,s)=>Qe(t,{...e,...n,children:r},s),Qe=(t,n,e)=>Ue(t,n,null,null,0,e||null),Be=(t,n)=>{n||(n=[]);for(const e of t)l(e)?Be(e,n):n.push(e);return n};function He(t,n,...e){const r={children:arguments.length>2?Be(e):null};let o=null;for(const t in n)"key"==t?o=n[t]:r[t]=n[t];return"string"==typeof t&&!o&&"dangerouslySetInnerHTML"in r&&(o="innerhtml"),Ue(t,n,null,r.children,0,o)}const Je=t=>t&&void 0!==t[$n];class Ge{type;varProps;constProps;children;flags;key;dev;constructor(t,n,e,r,o,s=null){this.type=t,this.varProps=n,this.constProps=e,this.children=r,this.flags=o,this.key=s}_proxy=null;get props(){return this._proxy||(this._proxy=nr(this.varProps,this.constProps,this.children)),this._proxy}}const Ye=t=>t.children,Ze=(t,n)=>new Ge(Ye,en,null,t.children,2,n),Xe=t=>t instanceof Ge,Ke=t=>t.children,tr=(t,n,e,r,o)=>{const s=null==e?null:String(e),i=jt(()=>{const e=n.children;return"string"==typeof t&&delete n.children,e});u(t)&&"className"in n&&(n.class=n.className,delete n.className);const l=new Ge(t,n,null,i,0,s);return l.dev={stack:(new Error).stack,...o},l};function nr(t,n,e){return new Proxy({},new er(t,n,e))}class er{ct;ft;ht;constructor(t,n,e){this.ct=t,this.ft=n,this.ht=e}get(t,n){if(n===dn)return this.ft;if(n===$n)return this.ct;if(null!=this.ht&&"children"===n)return this.ht;const e=this.ft&&n in this.ft?this.ft[n]:this.ct[n];return e instanceof mt&&2&e.v?e.value:e}set(t,n,e){return n===dn?(this.ft=e,!0):n===$n?(this.ct=e,!0):(this.ft&&n in this.ft?this.ft[n]=e:this.ct[n]=e,!0)}deleteProperty(t,n){if("string"!=typeof n)return!1;let e=delete this.ct[n];return this.ft&&(e=delete this.ft[n]||e),null!=this.ht&&"children"===n&&(this.ht=null),e}has(t,n){return"children"===n&&null!=this.ht||n===dn||n===$n||n in this.ct||!!this.ft&&n in this.ft}getOwnPropertyDescriptor(t,n){return{configurable:!0,enumerable:!0,value:"children"===n&&null!=this.ht?this.ht:this.ft&&n in this.ft?this.ft[n]:this.ct[n]}}ownKeys(){const t=Object.keys(this.ct);if(null!=this.ht&&-1===t.indexOf("children")&&t.push("children"),this.ft)for(const n in this.ft)-1===t.indexOf(n)&&t.push(n);return t}}const rr=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],or=(t,n,e)=>{let r=e>>1,o=t.length-2>>1;for(;r<=o;){const e=r+(o-r>>1),s=t[e<<1];if(s===n)return e<<1;s<n?r=e+1:o=e-1}return~(r<<1)},sr=(t,n,e,r)=>{const o=or(t,n,r);o>=0?null==e?t.splice(o,2):t[o+1]=e:null!=e&&t.splice(-1^o,0,n,e)},ir=(t,n,e)=>{const r=or(t,n,e);return r>=0?t[r+1]:null},lr=t=>"foreignObject"===t;function ur(t,n,e){const r=t.ownerDocument.createElementNS(e,n),o=t.attributes;for(const t of o){const n=t.name;n&&n!==Q&&r.setAttribute(n,t.value)}return r}function cr(t,n,e,r){ao(t);let o=t,s=null,i=null,l=null;for(;o;){let u=null,c=null;if(oo(o)){u=o[6];const t=Oo(o),s=hs(o),f=null==i?n:s&&jo(s);if(f){const t=fr(f,Oo(o));e=t.elementNamespace,r=t.elementNamespaceFlag}c=ur(u,t,e),u.remove(),null==i&&(i=c),l&&l.appendChild(c);const a=Mo(o);if(o[6]=c,o[0]&=-193,o[0]|=r,a){o=a,l=c;continue}if(Lo(u)){const t=Tr(u);if(t){const n=Mo(t.rootVNode);if(n){o=n,l=c;continue}}}}if(o===t)return i;const f=os(o);if(f)o=f;else{for(s=hs(o);s;){if(s===t)return i;const n=os(s);if(n)return o=n,i;s=hs(s)}if(null==s)return i}}return i}function fr(t,n){const e=!t||!(!Oo(t)||(r=t,192&r[0]));var r;const o=!e&&lr(Oo(t));let s=C,i=0;const l="string"==typeof n||oo(n);return l&&function(t){return"string"==typeof t?"svg"===(n=t)||lr(n):!!(64&t[0]);var n}(n)?(s=E,i=64):l&&function(t){return"string"==typeof t?"math"===t:!!(128&t[0])}(n)?(s=M,i=128):!t||o||e||(s=64&t[0]?E:128&t[0]?M:C,i=192&t[0]),{elementNamespace:s,elementNamespaceFlag:i}}function ar(t){let n="";const e=t.length;let r=0,o=r;for(;r<e;r++){const e=t.charCodeAt(r);if(60===e)n+=t.substring(o,r)+"&lt;";else if(62===e)n+=t.substring(o,r)+"&gt;";else if(38===e)n+=t.substring(o,r)+"&amp;";else if(34===e)n+=t.substring(o,r)+"&quot;";else{if(39!==e)continue;n+=t.substring(o,r)+"&#39;"}o=r+1}return 0===o?t:n+t.substring(o)}const hr=(t,n,e,r)=>{let o=t.dt;const s=[],i=[];let l=null,u=null,c=null,a=null,h=null,$=null,w=null,m=0,b=0,g=!0;return v(n,e),function t(){for(;i.length;){const n=i.shift(),e=i.shift();if(tt(n))return n.then(n=>(v(n,e),t()));v(n,e)}}();function v(n,e){for(ro(n),ro(e),l=e,c=null,u=Mo(e),P(n,!0);s.length;){for(;m<b;){if(lt(),"string"==typeof w)z(w);else if("number"==typeof w)z(String(w));else if(w&&"object"==typeof w){if(Array.isArray(w))A(w,!1);else if(zr(w))u&&ye(t,u),W("S",null),A(Ot(w,c||u,".",t),!0);else if(tt(w))W("A",null),i.push(w,c||u);else if(Xe(w)){const t=w.type;"string"==typeof t?(E(),M(w,t),A(w.children,!0)):"function"==typeof t&&(t===Ke?(E(),W("F",w.key),A(w.children,!0)):t===Yn?(E(),O()||A(w.children,!0)):t===pr?(I(),A(w.children,!0)):t===Kn||t===Xn?C():(E(),U(t)))}}else w===Zn?o=[]:z("");S()}C(),q()}}function S(){if(g){if(m++,m<b)w=$[m];else if(!1===s[s.length-1])return q();null!==c?c=null:R()}else g=!0}function x(){return u?os(u):null}function R(){u=x()}function A(n,e){null!=n?(P(n,e),e&&(a=null,h=null,l=c||u,u=Mo(l),c=null),g=!1):function(){const n=u&&Mo(u);if(null!==n){let e=n;for(;e;)mr(t,e),e=os(e);No(o,u,n)}}()}function q(){s.pop()&&(a=s.pop(),h=s.pop(),c=s.pop(),u=s.pop(),l=s.pop()),w=s.pop(),b=s.pop(),m=s.pop(),$=s.pop(),S()}function P(t,n){s.push($,m,b,w),n&&s.push(l,u,c,h,a),s.push(n),Array.isArray(t)?(m=0,b=t.length,$=t,w=b>0?t[0]:null):void 0===t?(m=0,w=null,$=null,b=0):(m=0,w=t,$=null,b=1)}function j(){return c?u:x()}function I(){const n=w.key;u=cs(l,n,n=>bo(t.rootVNode,n)),u=u&&32&u[0]?null:u,null==u&&(c=eo(),fs(c,p,n),fs(c,y,l),fs(l,n,c))}function O(){const n=gs(l,t.rootVNode),e=function(n){const e=w,r=e.constProps;if(r&&"object"==typeof r&&"name"in r){const e=r.name;if(n&&e instanceof mt)return Ot(e,n,":",t)}return rr(e,"name")||""}(n),r=n?cs(n,e,null):null;return null==r?(qo(o,l,c=eo(),u&&j()),fs(c,p,e),n&&fs(n,e,c),!1):(r===u||(qo(o,l,c=r,u&&j()),fs(c,p,e),n&&fs(n,e,c)),!0)}function C(){if(null!==u)for(;u;){const n=u;R(),l===hs(n)&&(mr(t,n),Io(o,l,n,!0))}}function E(){for(;null!==u&&io(u);){mr(t,u);const n=u;R(),Io(o,l,n,!0)}}function M(n,e){const s=u&&oo(u)&&e===Oo(u),i=n.key;let a=!1;const h=function(t){if(!t)return null;const n=t.fileName?.replace(/\\/g,"/");return n?`${n}:${t.lineNumber}:${t.columnNumber}`:null}(n.dev);s&&i===dr(u)||(c=T(e,i),null===c?a=function(n,e){const s=function(n){const e=jo(l),{elementNamespace:r,elementNamespaceFlag:o}=fr(e,n),s=t.document.createElementNS(r,n);return c=Kr(s,n),c[0]|=o,s}(e),{constProps:i}=n;let a=!1;if(i)for(const n in i){let l=i[n];if(Ut(n)){const t=zt(n),e=Ht(n);if(t&&(fs(c,vr+":"+e+":"+t,l),_(t)),e){const t=Vt(n);t&&ls(o,c,t,"")}a=!0;continue}if("ref"===n){if(zr(l)){l.value=s;continue}if("function"==typeof l){l(s);continue}if(null==l)continue;throw f(15,[undefined])}if(zr(l)){const e=new Qn({$t:r,yt:!0});l=Ot(l,c,n,t,e)}if(n!==B)if("textarea"!==e||"value"!==n)l=de(n,l,r),null!=l&&s.setAttribute(n,String(l));else{if(l&&"string"!=typeof l)continue;s.value=ar(l||"")}else s.innerHTML=l,s.setAttribute(N,"html")}const h=n.key;return h&&(s.setAttribute(F,h),fs(c,F,h)),!(ie(n.varProps)||n.constProps&&ie(n.constProps))&&r&&s.setAttribute("class",r),qo(o,l,c,u),a}(n,e):(qo(o,l,c,u),u=c,c=null));const d=[],$=n.varProps;for(const t in $){const n=$[t];null!=n&&sr(d,t,n,0)}null!==i&&sr(d,F,i,0);const p=c||u,y=p[6];y.vNode=new WeakRef(p),a=function(n,e,s){$o(n);const i=as(n);let l=0;const u=e.length;let c=0,a=i.length,h=l<u?e[l++]:null,d=c<a?i[c++]:null,$=!1;const p=(e,l)=>{if(e.startsWith(":"))fs(n,e,l);else{if("ref"===e){const t=ds(n);if(zr(l))return void(l.value=t);if("function"==typeof l)return void l(t);throw f(15,[s])}if(zr(l)){const o=new Qn({$t:r,yt:!1});l=Ot(l,n,e,t,o)}ls(o,n,e,null!==l?de(e,l,r):null),null===l&&(a=i.length)}},y=(t,n)=>{const e=zt(t),r=Ht(t);if(e&&(p(":"+r+":"+e,n),_(e)),r){const n=Vt(t);n&&p(n,"")}};for(;null!==h||null!==d;)if(d?.startsWith(vr)||d?.startsWith("q:"))c++,d=c<a?i[c++]:null;else if(null==h)d&&Dt(d)?c++:(p(d,null),c--),d=c<a?i[c++]:null;else if(null==d)Ut(h)?($=!0,y(h,e[l])):p(h,e[l]),l++,h=l<u?e[l++]:null,c++,d=c<a?i[c++]:null;else if(h==d){const t=e[l++];t!==i[c++]&&p(d,t),h=l<u?e[l++]:null,d=c<a?i[c++]:null}else h<d?(Ut(h)?($=!0,y(h,e[l])):p(h,e[l]),l++,h=l<u?e[l++]:null,c++,a=i.length,d=c<a?i[c++]:null):(Dt(d)?($=!0,c++):(p(d,null),c--),d=c<a?i[c++]:null);return $}(p,d,h)||a,a&&(y.qDispatchEvent||(y.qDispatchEvent=(n,e)=>{const r=n.type,o=":"+e.substring(1)+":"+r,s=[cs(p,o,null),cs(p,vr+o,null)];let i=!1;return s.flat(2).forEach(e=>{if(e){const r=t.q(2,p,e,[n,y]);i=i||!0===r}}),i}))}function _(n){const e=t.document.defaultView;e&&(e.qwikevents||=[]).push(n)}function T(n,e){let r=null;if(null===a){a=new Map,h=[];let o=u;for(;o;){const s=oo(o)?Oo(o):null,i=dr(o)||$r(o,t.wt);null===r&&i==e&&s==n?r=o:null===i?h.push(s,o):a.set(s+":"+i,o),o=os(o)}}else if(null===e){for(let t=0;t<h.length;t+=2)if(h[t]===n){r=h[t+1],h.splice(t,2);break}}else{const t=a.get(n+":"+e);t&&(r=t,a.delete(n+":"+e))}return r}function W(t,n){const e="F"===t;u&&lo(u)&&dr(u)===n&&(!e||n)||(null===n||(c=T(null,n),null==c)?(qo(o,l,c=eo(),u&&j()),fs(c,F,n)):qo(o,l,c,u&&j()))}function U(n){const e=n[Ai];let r=c||u;const s=w;if(e){const n=s.props;let i=!1;const[f]=e,a=f.D,h=$r(r,t.wt),$=s.key||a;if($===(dr(r)||h)?a===h&&s.key||(D(r,f,n),r=c,i=!0):(c=T(null,$),c?qo(o,l,c,u):(D(r,f,n),i=!0),r=c),r){let e=cs(r,L,t.wt);const o=function(t,n){const e=yr(t),r=yr(n);if(e&&r)return!1;if(e||r)return!0;let o=wr(Object.keys(t),["children",k]),s=wr(Object.keys(n),["children",k]);if(o.length!==s.length)return!0;o=o.sort(),s=s.sort();for(let e=0;e<o.length;e++){const r=o[e],i=s[e];if(r!==i||t[r]!==n[i])return!0}return!1}(n,e);i=i||o,i&&(o&&(e?(e[dn]=n[dn],e[$n]=n[$n]):n&&(fs(r,L,n),e=n)),fs(r,d,f),r[0]&=-33,t.q(6,r,f,e))}!function(t,n){const e=Array.isArray(t)?t:[t],r=t=>new Ge(pr,en,null,[],0,t),o=[];if(n){const t=as(n);for(let n=0;n<t.length;n+=2){const e=t[n];if(Jn(e)){const t=e;o.push(t),o.push(r(t))}}}if(0!==o.length||null!=t){for(let t=0;t<e.length;t++){const n=e[t],s=String(Xe(n)&&rr(n,p)||""),i=or(o,s,0);let l;i>=0?l=o[i+1]:o.splice(~i,0,s,l=r(s)),!1===n||l.children.push(n)}for(let t=o.length-2;t>=0;t-=2)o.splice(t,1);A(o,!0)}}(s.children,r)}else{const e=s.key,f=e===dr(r),a=$r(r,t.wt);if(f?null!=a&&(V(),r=c):(c=T(null,e),c?qo(o,l,c,u):V(),r=c),r){let e=r;for(;e&&(!lo(e)||null===cs(e,d,null));)e=hs(e);const o=ge(t,r,e||t.rootVNode,n,s.props);i.push(o,r)}}}function D(n,e,r){n&&ye(t,n),qo(o,l,c=eo(),u&&j());const s=w;t.setHostProp(c,d,e),t.setHostProp(c,L,r),t.setHostProp(c,F,s.key)}function V(){qo(o,l,c=eo(),u&&j());const t=w;fs(c,L,t.props),t.key&&fs(c,F,t.key)}function z(n){if(null!==u&&3===ms(u))return n!==Co(u)?void Eo(o,u,n):void 0;qo(o,l,c=no(t.document.createTextNode(n),n),u)}};function dr(t){return null==t?null:cs(t,F,null)}function $r(t,n){if(null==t)return null;const e=cs(t,d,n);return e?e.D:null}function pr(){}function yr(t){return!t||0===Object.keys(t).length}function wr(t,n){for(let e=n.length-1;e>=0;e--){const r=t.indexOf(n[e]);-1!==r&&t.splice(r,1)}return t}function mr(t,n){let e=n;if(io(n))return void gr(e);let r=null;for(;;){const o=e[0];if(3&o){if(ye(t,e),gr(e),2&o){const n=t.getHostProp(e,T);if(n)for(let e=0;e<n.length;e++){const r=n[e];if(Le(r)){const n=r;ye(t,n),1&n.v?t.q(48,n):_e(n)}}}if(2&o&&null!==cs(e,d,null)){const n=as(e);for(let e=0;e<n.length;e+=2)if(Jn(n[e])){const r=n[e+1];if(r){n[e+1]=null;const o="string"==typeof r?bo(t.rootVNode,r):r;let s=Mo(o);for(;s;)mr(t,s),s=os(s);br(t.dt,o)}}}if(uo(e)){if(e===n){const t=Mo(e);if(t)return void po(t)}}else{const t=Mo(e);if(t){e=t;continue}}}else 4&o&&gr(e);if(e===n)return;const s=os(e);if(s)e=s;else{for(r=hs(e);r;){if(r===n)return;const t=os(r);if(t){e=t;break}r=hs(r)}if(null==r)return}}}function br(t,n){const e=hs(n);e&&1&e[0]&&"q:template"===Oo(e)&&Io(t,e,n,!0)}function gr(t){t[0]|=32}const vr=":",Sr=(t,n)=>{const{val:e,set:r,i:o,iCtx:s}=Lt();if(null!=e)return e;const i=s.u,l=xr(i,n),u=new Fe(12,o,s.k,t,l,null);return i.q(3,u),r(l),l},kr=t=>We(Ke,null,null,function(t){const n=t.value;if(Rr(n)){{const e=n._state;if("pending"===e&&t.onPending)return Promise.resolve().then(xt(t.onPending));if("rejected"===e&&t.onRejected)return Promise.resolve(n._error).then(xt(t.onRejected));{const e=jt(()=>n._resolved);if(void 0!==e)return Promise.resolve(e).then(xt(t.onResolved))}}const e=n.value;return e?e.then(xt(t.onResolved),xt(t.onRejected)):Promise.resolve(void 0)}if(tt(n))return n.then(xt(t.onResolved),xt(t.onRejected));if(zr(n)){const e=st(()=>n.value);return(tt(e)?e:Promise.resolve(e)).then(xt(t.onResolved))}return Promise.resolve(n).then(xt(t.onResolved))}(t),0,null),xr=(t,n,e)=>{const r=(t=>({__brand:"resource",value:void 0,loading:!0,_resolved:void 0,_error:void 0,_state:"pending",_timeout:t?.timeout??-1,_cache:0}))(n);return r.value=e,xn(t,r,1)},Rr=t=>i(t)&&"resource"===(vn(t)||t).__brand,Ar=(t,n,e)=>{t.v&=-9,_e(t);const r=Pt(n.t,e,void 0,"qResource");r.u=n;const o=t.L.getFn(r,()=>ye(n,t)),s=t.ut,i=In(t,n),[l,u]=Nn(t,t=>n.handleError(t,e)),c=Sn(s),f={track:i,cleanup:l,cache(t){let n=0;n="immutable"===t?1/0:t,s._cache=n},previous:c._resolved};let a,h,d=!1;const $=(t,n)=>!d&&(d=!0,t?(d=!0,s.loading=!1,s._state="resolved",s._resolved=n,s._error=void 0,a(n)):(d=!0,s.loading=!1,s._state="rejected",s._error=n,h(n)),!0);u.push(()=>{if(!0===jt(()=>s.loading)){const t=jt(()=>s._resolved);$(!0,t)}}),Rt(r,()=>{s._state="pending",s.loading=!0,(s.value=new Promise((t,n)=>{a=t,h=n})).catch(qr)});const p=nt(()=>Promise.resolve(o(f)),t=>{$(!0,t)},r=>{if(tt(r))return r.then(()=>Ar(t,n,e));$(!1,r)}),y=c._timeout;return y>0?Promise.race([p,ot(y).then(()=>{$(!1,new Error("timeout"))&&_e(t)})]):p},qr=()=>{},Pr=[],jr=[],Ir=[],Nr=[],Or=t=>t.bt||=new Promise(n=>{t.gt=n}),Cr=(t,n,e)=>{const r=[],o=[];let s=null,i=!1;return function e(o,s=null,u=null,f=null){const a=!Ur(t),h=255!==o&&!(a&&6===o)&&2!==o,d=3===o||32===o||48===o;if(a&&(16===o||4===o||5===o||1===o||7===o))return;d&&(s.v|=8);let $={vt:o,St:d?s.it:"string"==typeof u?u:0,kt:d?s.lt:s,xt:u,Rt:d?s:f,gt:null,bt:null,At:null,qt:!1};return $=function(t,n,e){const r=function(t,n,e){let r=0,o=t.length;for(;r<o;){const s=r+(o-r>>1),i=c(n,t[s],e);if(i<0)o=s;else{if(!(i>0))return s;r=s+1}}return~r}(t,n,e);if(r<0)return t.splice(~r,0,n),n;const o=t[r];return o.Rt!==n.Rt&&(o.Rt=n.Rt),o.qt&&(o.qt=!1),o}(r,$,t.rootVNode||null),!i&&h&&(i=!0,e(16),n()?.catch?.(()=>{})),h?Or($):l($,a)};function l(n,e){let o=5e3;for(;r.length;){if(o--<0)throw new Error("drainUpTo: max retries reached");if(s)return Or(s).then(()=>l(n,e)).catch(n=>{t.handleError(n,s?.kt)});const i=r[0];if(i.qt){if(r.shift(),i===n)break}else Mr(i)&&48!==i.vt?r.shift():u(i,e)}return n.At}function u(n,r){const l=n.kt;s=n;let u=null;try{switch(n.vt){case 255:r&&(i=!1);break;case 16:u=e(),i=!1;break;case 6:u=nt(()=>ge(t,l,l,n.xt,n.Rt),n=>{if(r)return n;{const e=t.getHostProp(l,v);return st(()=>hr(t,n,l,ue(e)))}},n=>t.handleError(n,l));break;case 2:{const e=n.xt.getFn(),r=st(()=>e(...n.Rt));if(tt(r)){const e=r.finally(()=>{o.splice(o.indexOf(e),1)}).catch(e=>{t.handleError(e,n.kt)});return o.push(e),n.At=e,n.gt?.(e),s=null,void(n.qt=!0)}u=null}break;case 3:case 32:{const e=n.Rt;if(4&e.v){const n=Ar(e,t,l);u=r?n:null}else u=Me(e,t,l)}break;case 48:_e(n.Rt);break;case 4:{const e=n.xt;let r=n.Rt;zr(r)&&(r=r.value),u=st(()=>hr(t,r,e,null))}break;case 5:{const e=n.kt,r=n.Rt;let o=r.Pt;zr(o)&&(o=o.value);const s=r.yt,i=t.dt,l=n.St,u=de(l,o,r.$t);s?i.push(2,e[6],l,u):ls(i,e,l,u)}break;case 1:{const t=n.xt;u=t.resolved?null:t.resolve()}break;case 7:{const e=n.xt,r=n.Rt,o=Pt();if(o.u=t,e instanceof mn||e instanceof mt){const n=e.R;if(e.R=!1,!r?.size&&!n)break;u=et(st(()=>Rt.call(e,o,e.j)),o=>{if(o||n)return st(()=>Jr(t,e,r))})}else u=st(()=>Jr(t,e,r))}}}catch(t){u=Promise.reject(t)}const c=(e,r)=>{s=null,n.qt=!0,r?t.handleError(r,l):(n.At=e,n.gt?.(e))};tt(u)?(n.bt=u.then(c,t=>c(void 0,t)),n.gt?.(n.bt),n.gt=void 0):c(u)}function c(t,n,e){const r=(240&t.vt)-(240&n.vt);if(0!==r)return r;const o=t.kt,i=n.kt;if(o!==i&&null!==o&&null!==i)if(ro(o)&&ro(i)){const t=((t,n,e)=>{if(t===n)return 0;let r=-1,o=-1;for(;t;)t=(Pr[++r]=t)[1]||e&&cs(t,y,t=>bo(e,t));for(;n;)n=(jr[++o]=n)[1]||e&&cs(n,y,t=>bo(e,t));for(;r>=0&&o>=0;){if((t=Pr[r])!==(n=jr[o])){let r=n;do{if(r=os(r),r===t)return 1}while(r);r=n;do{if(r=ss(r),r===t)return-1}while(r);return e&&cs(n,y,t=>bo(e,t))?-1:1}r--,o--}return r<o?-1:1})(o,i,e);if(0!==t)return t}else{ro(o),ro(i),o.toString();const t=((t,n)=>{if(t===n)return 0;let e=-1,r=-1;for(;t;)t=(Ir[++e]=t).parentSsrNode;for(;n;)n=(Nr[++r]=n).parentSsrNode;for(;e>=0&&r>=0;){if((t=Ir[e])!==(n=Nr[r]))return 1;e--,r--}return e<r?-1:1})(o,i);if(0!==t)return t}const l=(15&t.vt)-(15&n.vt);if(0!==l)return l;const u=Er(t.St)-Er(n.St);return 0!==u?u:t.xt!==n.xt?h(t.xt)&&h(n.xt)&&t.xt.D===n.xt.D?0:1:n===s?1:0}},Er=t=>"number"==typeof t?t:-1;function Mr(t){return!!(t.kt&&ro(t.kt)&&32&t.kt[0])}class _r{jt;q;H;t;wt;It;Nt=0;Ot=null;Ct=null;constructor(t,n,e,r){this.It=e,this.t=r,this.jt=tn,this.H=new WeakMap,this.wt=()=>{throw Error("Not implemented")},this.q=Cr(this,t,n)}trackSignalValue(t,n,e,r){return Ot(t,n,e,this,r)}serializationCtxFactory(t,n,e,r){return Ms(t,n,e,this.getHostProp.bind(this),this.setHostProp.bind(this),this.H,r)}}const Fr=124;function Lr(t){const n=Wr(t);if(!n)throw f(24);return Tr(n)}function Tr(t){let n=t.qContainer;return n||(n=new Dr(t)),n}function Wr(t){return(Array.isArray(t)?Po(t):t).closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])")}const Ur=t=>t instanceof Dr;class Dr extends _r{element;qContainer;qManifestHash;rootVNode;document;dt;renderDone=null;Et;H=new WeakMap;Mt;Ot;_t=null;Ft=null;vNodeLocate=t=>bo(this.rootVNode,t);Lt;Tt=null;Wt=0;constructor(t){if(super(()=>this.scheduleRender(),()=>Ao(this.dt),{},t.getAttribute("q:locale")),this.qContainer=t.getAttribute(N),!this.qContainer)throw f(25);this.dt=[3,t.ownerDocument],this.document=t.ownerDocument,this.element=t,this.Ct=t.getAttribute(R),this.Ot=t.getAttribute(A),this.qManifestHash=t.getAttribute("q:manifest-hash"),this.rootVNode=to(this.element),this.Et=[],this.Lt=[];const n=this.element.ownerDocument;n.qVNodeData||function(t){const n="q:container",e="/"+n,r="q:ignore",o="/"+r,s="q:container-island",i="/"+s,l=t.qVNodeData||(t.qVNodeData=new WeakMap),u=t.body,c=u.getAttribute,f=u.hasAttribute,a=((t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}})(u,"nodeType"),h=t=>{Array.from(t.querySelectorAll('script[type="qwik/vnode"]')).forEach(t=>{t.setAttribute("type","x-qwik/vnode");const n=t.closest("[q\\:container]");n.qVnodeData=t.textContent,n.qVNodeRefs=new Map}),t.querySelectorAll("[q\\:shadowroot]").forEach(t=>{const n=t.shadowRoot;n&&h(n)})};h(t);const d=t=>{const l=a.call(t);if(1===l)return null===c.call(t,n)?f.call(t,"q:shadowroot")?6:f.call(t,":")?2:0:3;if(8===l){const l=t.nodeValue||"";if(l.startsWith(s))return 65;if(l.startsWith(r))return 16;if(l.startsWith(n))return 5;if(l.startsWith(i))return 128;if(l.startsWith(o))return 32;if(l.startsWith(e))return 8}return 0},$=t=>33<=t&&t<=46,p=(t,n,e)=>{let r=0;for(;n<e;){const e=t.charCodeAt(n);if(0===r&&$(e))break;123===e?r++:125===e&&r--,n++}return n},y=t=>{for(;t&&(t=t.nextSibling)&&0===d(t););return t},w=t=>{for(;t&&(t=t.firstChild)&&0===d(t););return t},m=(n,e,r,o,s,i)=>{const u=s.length;let c=0,f=-1,a=0,h=0,b=0,g=-1,v=null;const S=()=>{let t=0;for(;$(b=s.charCodeAt(a))&&(t+=1<<b-33,a++,!(a>=u)););return t};do{if(r===o)return;v=null;const $=r==e?2:d(r);if(3===$){const t=r;let e=r;for(;e&&!(v=y(e));)e=e.parentNode;m(n,t,r,v,t.qVnodeData||"",t.qVNodeRefs)}else if(16===$){let t=r;do{if(t=n.nextNode(),!t)throw new Error(`Island inside \x3c!--${r?.nodeValue}--\x3e not found!`)}while(65!==d(t));v=null}else if(128===$){v=r;do{if(v=n.nextNode(),!v)throw new Error("Ignore block not closed!")}while(32!==d(v));v=null}else if(5===$){v=r;do{if(v=y(v),!v)throw new Error(`\x3c!--${r?.nodeValue}--\x3e not closed!`)}while(8!==d(v));m(n,r,r,v,"",null)}else if(6===$){v=y(r);const n=r,e=n?.shadowRoot;e&&m(t.createTreeWalker(e,129),null,w(e),null,"",null)}if(!(2&~$)){if(f<c&&(-1===f&&(f=0),a=h,a<u?(f+=S(),126===b&&(g=f,a++,b=a<u?s.charCodeAt(h):33),h=p(s,a,u)):f=Number.MAX_SAFE_INTEGER),c===f){g===c&&i.set(c,r);const t=s.substring(a,h);l.set(r,t)}c++}}while(r=v||n.nextNode())},b=t.createTreeWalker(t,129);m(b,null,b.firstChild(),null,"",null)}(n),this.Mt=x(n,this.Ot)||nn,this.Ut(),t.setAttribute(N,"resumed"),t.qContainer=this;const e=t.querySelectorAll('script[type="qwik/state"]');0!==e.length&&(this.Et=JSON.parse(e[e.length-1].textContent),Gs(this.Et,this),this.Lt=xs(this,this.Et),this.Dt())}Vt(t,n){this.Lt[t]=n}parseQRL(t){return Cs(this,Os(t))}handleError(t,n){const e=n&&this.resolveContext(n,Kt);if(!e)throw t;e.error=t}setContext(t,n,e){let r=this.getHostProp(t,S);r||this.setHostProp(t,S,r=[]),sr(r,n.id,e,0)}resolveContext(t,n){for(;t;){const e=this.getHostProp(t,S);if(e){const t=ir(e,n.id,0);if(t)return t}t=this.getParentHost(t)}}getParentHost(t){let n=hs(t);for(;n;)if(lo(n)){if(null!==cs(n,d,null))return n;n=hs(n)||cs(n,y,this.vNodeLocate)}else n=hs(n);return null}setHostProp(t,n,e){fs(t,n,e)}getHostProp(t,n){const e=t;let r=null;switch(n){case T:case L:case d:case S:case k:r=this.wt;break;case W:case D:r=parseInt}return cs(e,n,r)}scheduleRender(){return this.Wt++,this.renderDone||=Z().nextTick(()=>this.processChores()),this.renderDone.finally(()=>wi("qrender",{instanceHash:this.Ot,renderCount:this.Wt}))}processChores(){let t=this.Wt;const n=this.q(255);if(tt(n))return n.then(async()=>{for(;t!==this.Wt;)t=this.Wt,await this.q(255);this.renderDone=null});t===this.Wt?this.renderDone=null:this.processChores()}ensureProjectionResolved(t){if(!(16&t[0])){t[0]|=16;const n=as(t);for(let t=0;t<n.length;t+=2)if(Jn(n[t])){const e=n[t+1];"string"==typeof e&&(n[t+1]=this.vNodeLocate(e))}}}wt=t=>Hs(t,this.Lt);getSyncFn(t){return this.Mt[t]}zt(t,n,e,r){if(r){const t=this.getHostProp(e,v),r=new Set(function(t){return t?.split(" ")??null}(t));r.add(n),this.setHostProp(e,v,function(t){return Array.from(t).join(" ")}(r))}if(null==this.Tt&&(this.Tt=new Set,this.element.querySelectorAll(b).forEach(t=>{this.Tt.add(t.getAttribute(m))})),!this.Tt.has(n)){this.Tt.add(n);const e=this.document.createElement("style");e.setAttribute(m,n),e.textContent=t,this.dt.push(5,this.document.head,null,e)}}Ut(){const t={},n=this.element.attributes;if(n)for(let e=0;e<n.length;e++){const r=n[e];r.name!==Q&&(t[r.name]=r.value)}this.It={containerAttributes:t}}Dt(){if(this.Ft){for(const t of this.Ft)this.q(1,null,this.wt(t));this.Ft=null}}}const Vr=t=>{if(!t.resolved)throw t.resolve()},zr=t=>t instanceof yt,Qr=(t,n)=>{t.add(n)},Br=(t,n)=>{t[2]||=new Set,t[2].add(n)},Hr=(t,n)=>{if(n&&!Ur(n)){const e=t[0],r=t[1];let o=null;Le(e)?o=e.L:e instanceof mn?o=e.U:":"===r&&(o=n.getHostProp(e,d)),o&&n.serializationCtx.st.add(o)}},Jr=(t,n,e)=>{const r=Ur(t);if(e){const o=e=>{const o=e[0],s=e[1];if(Le(o)){o.v|=8;let n=3;1&o.v&&(n=32),t.q(n,o)}else if(o instanceof yt)o instanceof mn&&(o.U.resolved||t.q(1,null,o.U)),o.invalidate();else if(":"===s){const n=o,e=t.getHostProp(n,d),r=t.getHostProp(n,L);t.q(6,n,e,r)}else if(r)if("."===s)t.q(4,o,o,n);else{const r=e[3];if(r instanceof Qn){const e={...r.data,Pt:n};t.q(5,o,s,e)}}};for(const t of e)o(t)}},Gr=t=>{let n=1;switch(t){case"never":n|=8;break;case"always":n|=16}return n},Yr=[];function Zr(t){if(null===t)return"null";if(void 0===t)return"undefined";if("string"==typeof t)return'"'+t+'"';if("number"==typeof t||"boolean"==typeof t)return String(t);if(Le(t))return`Task(${Zr(t.L)})`;if(h(t))return`Qrl(${t.et})`;if("object"==typeof t||"function"==typeof t){if(Yr.includes(t))return"*";try{if(Yr.push(t),Array.isArray(t))return ro(t)?"("+cs(t,re,null)+")":t.map(Zr);if(zr(t))return t instanceof mt?"WrappedSignal":t instanceof mn?"ComputedSignal":"Signal";if(kn(t))return"Store";if(Xe(t))return Xr(t)}finally{Yr.pop()}}return t}const Xr=t=>{if(Xe(t)){let n="<"+t.type;if(t.props){for(const[e,r]of Object.entries(t.props))n+=" "+e+"="+Zr(r);const e=t.children;null!=e?(n+=">",Array.isArray(e)?e.forEach(t=>{n+=Xr(t)}):n+=Xr(e),n+="</"+t.type+">"):n+="/>"}return n}return String(t)},Kr=(t,n)=>{Wo(t);const e=vs.createElement(-247,null,null,null,null,null,t,n);return oo(e),io(e),lo(e),t.vNode=new WeakRef(e),e},to=t=>{Wo(t);const n=vs.createElement(-255,null,null,null,void 0,void 0,t,void 0);return oo(n),io(n),lo(n),t.vNode=new WeakRef(n),n},no=(t,n)=>{const e=vs.createText(-244,null,null,null,t,n);return Wo(t),oo(e),io(e),lo(e),e},eo=()=>{const t=vs.createVirtual(-254,null,null,null,null,null);return oo(t),io(t),lo(t),t},ro=t=>t instanceof vs,oo=t=>!(1&~t[0]),so=t=>!(1&~t[0])&&void 0!==t[4]&&void 0!==t[5],io=t=>!(4&~t[0]),lo=t=>!(2&~t[0]),uo=t=>!(2&~t[0])&&null!==cs(t,p,null),co=t=>(io(t),ho(t),t),fo=t=>{ho(t)},ao=t=>(oo(t),ho(t),t),ho=t=>{if(t)switch(7&t[0]){case 1:return"Element";case 2:return"Virtual";case 4:return"Text"}return"<unknown>"},$o=t=>{if(1==(15&t[0])){const n=t;n[0]^=8;const e=n[6],r=e.attributes,o=as(n);for(let t=0;t<r.length;t++){const n=r[t],s=n.name;if(s===Q||!s)break;s.startsWith(N)?"html"===n.value?sr(o,B,e.innerHTML,0):"text"===n.value&&"value"in e&&sr(o,"value",e.value,0):s.startsWith("on:")||sr(o,s,n.value,0)}}};function po(t){let n=t;if(io(t))return;let e=null;for(;;){const r=Mo(n);if(r){n=r;continue}if(n===t)return;const o=os(n);if(o)n=o;else{for(e=hs(n);e;){if(e===t)return;const r=os(e);if(r){n=r;break}e=hs(e)}if(null==e)return}}}function yo(t,n,e=!1,r=[]){if((t=>!!(5&t[0]))(n))return io(n)&&mo(t,n),r.push(e?n:ds(n)),r;let o=Mo(n);for(;o;)oo(o)?r.push(e?o:ds(o)):io(o)?(mo(t,o),r.push(e?o:ds(o))):yo(t,o,!!e,r),o=os(o);return r}const wo=(t,n,e)=>{const r=n?4:5,o=n?3:2;let s=t;for(;e&&s&&lo(s);){const t=s[r];if(!t)break;if(5&t[0])return t;s=t}for(;s;){let t=s[o];if(t&&5&t[0])return t;if(!t){let n=s[1];if(n&&!lo(n))return null;for(;n&&!(t=n[o]);)if(n=n[1],n&&!lo(n))return null;if(!t)return null;if(io(t)&&n&&oo(n))return null}for(;t;){if(s=t,5&s[0]&&ds(s))return s;t=s[r]}}return null},mo=(t,n)=>{const e=co(n);if(!(8&e[0])){const r=Po(n),o=e[4],s=r.ownerDocument;let i=wo(n,!1,!0);const l=o||wo(n,!0,!0)?.[6]||null;let u=l;for(;i&&io(i);){if(!(8&i[0])){const n=s.createTextNode(i[5]);t.push(5,r,u,n),u=n,i[4]=n,i[0]|=8}i=wo(i,!1,!0)}for(i=n;i&&io(i);){const n=wo(i,!0,!0),e=!n||!io(n);if(!(8&i[0])){if(e&&o)t.push(1,o,i[5]);else{const n=s.createTextNode(i[5]);t.push(5,r,l,n),i[4]=n}i[0]|=8}i=n}}},bo=(t,n)=>{ao(t);let e=t;const r=t[6],{qVNodeRefs:o}=r;let s,i=-1;if("string"==typeof n)i=parseInt(n),s=o.get(i);else{s=n;const t=s.vNode?.deref();if(t)return t}if(ro(s))e=s;else{r.contains(s);let t=s;const n=[s];for(;t&&t!==r;)t=t.parentElement,n.push(t);for(let t=n.length-2;t>=0;t--)e=So(e,n[t]);-1!=i&&o.set(i,e)}if("string"==typeof n){const t=n.length;let r=ko(n,t),o=0;for(;r<t;){const t=n.charCodeAt(r);o*=26,t>=97?o+=t-97:(o+=t-65,e=go(e,o),o=0),r++}}return e},go=(t,n)=>{let e=Mo(t);for(;e[0]>>>8!==n;)e=os(e),it();return e},vo=[],So=(t,n)=>{ao(t);let e=Mo(t);for(;e&&e[6]!==n;){if(lo(e)){const t=os(e),n=Mo(e);n?(t&&vo.push(t),e=n):e=t||(vo.length?vo.pop():null)}else{const t=os(e);e=t||t||vo.pop()}it()}for(;vo.length;)vo.pop();return ao(e),e},ko=(t,n)=>{let e=0;for(;e<n;){if(!(t.charCodeAt(e)<=57))return e;e++}return n},xo=t=>"false"!==t&&Boolean(t),Ro=(t,n)=>("allowfullscreen"==n||"async"==n||"autofocus"==n||"autoplay"==n||"checked"==n||"controls"==n||"default"==n||"defer"==n||"disabled"==n||"formnovalidate"==n||"inert"==n||"ismap"==n||"itemscope"==n||"loop"==n||"multiple"==n||"muted"==n||"nomodule"==n||"novalidate"==n||"open"==n||"playsinline"==n||"readonly"==n||"required"==n||"reversed"==n||"selected"==n)&&n in t,Ao=t=>{let n=0;const e=t.length;for(;n<e;)switch(t[n++]){case 1:t[n++].nodeValue=t[n++];break;case 2:const r=t[n++];let o=t[n++];"className"===o&&(o="class");const s=t[n++];Ro(r,o)?r[o]=xo(s):"value"===o&&o in r?r.value=String(s):o===B?(r.innerHTML=s,r.setAttribute(N,"html")):null==s||!1===s?r.removeAttribute(o):r.setAttribute(o,String(s));break;case 3:const i=t[n++],l=i.head,u=i.querySelectorAll(g);for(let t=0;t<u.length;t++)l.appendChild(u[t]);break;case 4:const c=t[n++];let f;for(;n<e&&"number"!=typeof(f=t[n]);)c.removeChild(f),n++;break;case 5:const a=t[n++],h=t[n++];let d;for(;n<e&&"number"!=typeof(d=t[n]);)a.insertBefore(d,h),n++}t.length=0},qo=(t,n,e,r)=>{fo(n),oo(n)&&_o(n);const o=e[1];if(e===r){if(o)return;r=null}const s=jo(n),i=s&&s[6];let l=null;s&&(l=function(t,n,e){const{elementNamespace:r,elementNamespaceFlag:o}=fr(n,e);let s=[];if(r===C)s=yo(t,e);else{const i=yo(t,e,!0);for(let t=0;t<i.length;t++){const e=i[t];if(io(e)){s.push(e[4]);continue}if((192&e[0])==(192&n[0])){s.push(e[6]);continue}const l=cr(e,n,r,o);l&&s.push(l)}}return s}(t,s,e)),o&&(e[2]||e[3]||o!==n)&&Io(t,o,e,!1);let u=null;null==r?lo(n)&&(u=wo(n,!0,!1)):u=lo(r)?wo(r,!0,!0):r,u&&((t,n)=>{io(n)&&mo(t,n)})(t,u),l&&l.length&&t.push(5,i,ds(u),...l);const c=r,f=c?c[2]:n[5];c?c[2]=e:n[5]=e,f?f[3]=e:n[4]=e,e[2]=f,e[3]=c,e[1]=n},Po=t=>(t=jo(t))&&t[6],jo=t=>{for(;t&&!oo(t);)t=t[1];return t},Io=(t,n,e,r)=>{if(hs(e),io(e)&&mo(t,e),r){const r=Po(n);if(us(n,B))return;const o=yo(t,e);r&&o.length&&t.push(4,r,...o)}const o=e[2],s=e[3];o?o[3]=s:n[4]=s,s?s[2]=o:n[5]=o,e[2]=null,e[3]=null},No=(t,n,e)=>{const r=Po(n),o=yo(t,e);r&&o.length&&t.push(4,r,...o);const s=e[2];s?s[3]=null:n[4]=null,n[5]=s},Oo=t=>{const n=ao(t);let e=n[7];if(void 0===e){const t=n[6],r=Xo(t).toLowerCase();e=n[7]=r,n[0]|=(t=>{switch(Yo(t)){case E:return 64;case M:return 128;default:return 0}})(t)}return e},Co=t=>{const n=co(t);let e=n[5];return void 0===e&&(e=n[5]=n[4].nodeValue),e},Eo=(t,n,e)=>{mo(t,n),t.push(1,n[4],n[5]=e)},Mo=t=>{if(io(t))return null;let n=t[4];return void 0===n&&(n=_o(t)),n},_o=t=>{const n=ao(t);let e=n[4];return void 0===e&&(e=n[1]&&Lo(n[6])?n[4]=n[5]=null:(t=>{const n=t[6],e=Jo(n),r=n.ownerDocument?.qVNodeData?.get(n);return((t,n,e,r)=>{if(r){if(r.charCodeAt(0)===Fr){const n=1;let o=1;for(;r.charCodeAt(o)!==Fr;)o++;const s=r.substring(n,o);r=r.substring(o+1);const i=ns(t,e,s);if(!r)return i}return function(t,n,e,r){let o=0,s=null,i=null,l=null;const u=n=>{n[0]=255&n[0]|o<<8,o++,i&&(i[3]=n),n[2]=i,n[1]=t,s||(t[4]=s=n),i=n};let c=0,a=null,h=null;return rs(n,($,w,m,b,g)=>{if(ps($())){for(;!bs(r)||ts(r);)if(!(r=Vo(r)))throw f(27,[n,$(),g]);a=null,l=null;let t=0;for(;ps($());)t*=10,t+=m()-48;for(;t--;)u(to(r)),r=Vo(r)}else if(59===$())ls(null,t,v,w());else if(60===$())ls(null,t,d,w());else if(61===$()){h||(h=Lr(e));const n=w();h.Vt(parseInt(n),t)}else if(62===$())ls(null,t,L,w());else if(64===$()){let n;b(g+1)===Fr?(m(),n=decodeURI(w()),m()):n=w(),ls(null,t,F,n)}else if(91===$())ls(null,t,T,w());else if(94===$())ls(null,t,W,w());else if(96===$())h||(h=Lr(e)),es(t,w(),h);else if(63===$())fs(t,y,w());else if(93===$())ls(null,t,S,w());else if(123===$())m(),u(eo()),ws.push(t,s,i,l,o),o=0,t=i,s=i=null;else if($()===Fr){const n=w(),e=w();ls(null,t,n,e)}else if(125===$())m(),t[5]=i,o=ws.pop(),l=ws.pop(),i=ws.pop(),s=ws.pop(),t=ws.pop();else if(126===$())ls(null,t,p,w());else{for(;ts(r);)r=Vo(r);const t=r&&3===Wo(r)?r:null;null===a&&(a=t?t.nodeValue:null,c=0);let n=0;for(;ys($());)n+=m()-97,n*=26;n+=m()-65;const e=null===a?"":a.substring(c,c+n);u(l=((t,n,e)=>{n&&Wo(n);const r=vs.createText(-252,null,t,null,n,e);return oo(r),io(r),lo(r),r})(l,t,e)),c+=n}}),t[5]=i,s}(t,r,n,e)}return ns(t,e)})(t,n,e,r)})(n)),e};let Fo=null;const Lo=t=>(Fo||(Fo=t.hasAttribute),Fo.call(t,N));let To=null;const Wo=t=>(To||(To=Ko(t,"nodeType")),To.call(t)),Uo=t=>{const n=Wo(t);return 3===n||1===n};let Do=null;const Vo=t=>{for(Do||(Do=Ko(t,"nextSibling")),Ho||(Ho=Ko(t,"firstChild"));t;)if(null!==(t=Do.call(t))){const n=Wo(t);if(3===n||1===n)break;if(8===n){const n=t.nodeValue;if(n?.startsWith(j))return zo(t,q,Do,Ho);if(t.nodeValue?.startsWith(P))return zo(t,I,Do,Ho);if(n?.startsWith(N))for(;t&&(t=Do.call(t))&&(8!==Wo(t)||!t.nodeValue?.startsWith(O)););}}return t};function zo(t,n,e,r){for(;t;){if(t.nodeValue?.startsWith(n))return e.call(t)||null;let o=r.call(t);o||(o=e.call(t)),o||(o=Bo(t),o&&(o=e.call(o))),t=o}return null}let Qo=null;const Bo=t=>(Qo||(Qo=Ko(t,"parentNode")),Qo.call(t));let Ho=null;const Jo=t=>{for(Ho||(Ho=Ko(t,"firstChild")),t=t&&Ho.call(t);t&&!Uo(t);)t=Vo(t);return t};let Go=null;const Yo=t=>(Go||(Go=Ko(t,"namespaceURI")),Go.call(t));let Zo=null;const Xo=t=>(Zo||(Zo=Ko(t,"nodeName")),Zo.call(t)),Ko=(t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}},ts=t=>bs(t)&&"STYLE"===t.nodeName&&(t.hasAttribute(v)||t.hasAttribute(m)),ns=(t,n,e)=>{let r=null;const o=()=>{for(;ts(s);)s=Vo(s)};let s=n;o();let i=null;for(;s;){const n=Wo(s);let e=null;3===n?e=no(s,s.textContent??void 0):1===n&&(e=to(s)),e&&(e[1]=t,i&&(i[3]=e),e[2]=i,i=e),r||(t[4]=r=i),s=Vo(s),o()}if(t[5]=i||null,t[4]=r,e){let n=null;rs(e,(e,r)=>{if(61===e()){n||(n=Lr(t[6]));const e=r();n.Vt(parseInt(e),t)}else 96===e()?(n||(n=Lr(t[6])),es(t,r(),n)):r()})}return r};function es(t,n,e){const r=e.wt(n);t[ht]?((t,n)=>{for(const[e,r]of n)t.set(e,r)})(t[ht],r):Object.defineProperty(t,ht,{value:r})}const rs=(t,n)=>{let e=0,r=0,o=0;const s=n=>n<t.length?t.charCodeAt(n):0,i=()=>0!==o?o:o=s(e),l=()=>(r=i(),o=0,e++,r),u=()=>{l();const n=e;for(;i()<=58&&0!==o||95===o||o>=65&&o<=90||o>=97&&o<=122;)l();return t.substring(n,e)};for(;0!==i();)n(i,u,l,s,e)},os=t=>t[3],ss=t=>t[2],is=t=>{if(3&t[0]){$o(t);const n=[],e=as(t);for(let t=0;t<e.length;t+=2){const r=e[t];r.startsWith(Q)||n.push(r)}return n}return[]},ls=(t,n,e,r)=>{const o=n[0];if(3&o){$o(n);const s=as(n),i=or(s,e,0);i>=0?(s[i+1]!=r&&1&o&&t&&t.push(2,n[6],e,r),null==r?s.splice(i,2):s[i+1]=r):null!=r&&(s.splice(-1^i,0,e,r),1&o)&&t&&t.push(2,n[6],e,r)}},us=(t,n)=>{if(3&t[0]){$o(t);const e=as(t);return ir(e,n,0)}return null},cs=(t,n,e)=>{const r=t[0];if(3&r){1&r&&$o(t);const o=as(t),s=or(o,n,0);if(s>=0){let t=o[s+1];return"string"==typeof t&&e&&(o[s+1]=t=e(t)),t}}return null},fs=(t,n,e)=>{fo(t);const r=as(t),o=or(r,n,0);o>=0?r[o+1]=e:null!=e&&r.splice(-1^o,0,n,e)},as=t=>t[(t=>{const n=7&t[0];if(1===n)return 8;if(2===n)return 6;throw f(26,[n])})(t)],hs=t=>t[1]||null,ds=t=>null===t||lo(t)?null:oo(t)?t[6]:(io(t),t[4]);function $s(t=20,n="",e=!1,r=!1,o=!0){let s=this;if(0===t)return"...";if(null===s)return"null";if(void 0===s)return"undefined";const i=[];do{if(io(s))i.push(Zr(Co(s)));else if(lo(s)){const e=["["+String(s[0]>>>8)+"]"];is(s).forEach(t=>{if(t!==re){const n=us(s,t);e.push(" "+t+"="+Zr(n))}});const r=(o?"":"")+(oe[us(s,re)||"V"]||oe.V)+(o?"":"");i.push("<"+r+e.join("")+">");const l=Mo(s);l&&i.push(" "+$s.call(l,t-1,n+" ",!0,!0,o)),i.push("</"+r+">")}else if(oo(s)){const r=Oo(s),l=[],u=is(s);u.forEach(t=>{const n=us(s,t);l.push(" "+t+"="+Zr(n))});const c=ds(s);if(c){const t=c.ownerDocument.qVNodeData?.get(c);t&&l.push(" q:vnodeData="+Zr(t))}const f=c.attributes;for(let t=0;t<f.length;t++){const n=f[t];-1===u.indexOf(n.name)&&l.push(" "+n.name+(n.value?"="+Zr(n.value):""))}if(i.push("<"+r+l.join("")+">"),so(s)||e){const e=Mo(s);e&&i.push(" "+$s.call(e,t-1,n+" ",!0,!0,o))}else i.push(" \x3c!-- not materialized --!>");i.push("</"+r+">")}s=r&&os(s)||null}while(s);return i.join("\n"+n)}const ps=t=>48<=t&&t<=57,ys=t=>97<=t&&t<=122,ws=[],ms=t=>{const n=t[0];if(1&n)return 1;if(2&n)return 11;if(4&n)return 3;throw f(26,[n])},bs=t=>t&&"object"==typeof t&&1===Wo(t),gs=(t,n)=>{let e=1;for(;e--;){for(;t&&(!lo(t)||null===cs(t,d,null));){const r=cs(t,y,t=>bo(n,t)),o=lo(t)&&r;o&&e++,t=o||hs(t)}e>0&&(t=hs(t))}return t},vs=class t extends Array{static createElement(n,e,r,o,s,i,l,u){return new t(n,e,r,o,s,i,l,u,[])}static createText(n,e,r,o,s,i){return new t(n,e,r,o,s,i)}static createVirtual(n,e,r,o,s,i){return new t(n,e,r,o,s,i,[])}constructor(t,n,e,r,...o){super(t,n,e,r,...o)}},Ss=new WeakMap,ks=Symbol("UNWRAP"),xs=(t,n)=>{if(!Array.isArray(n)||ro(n)||i(e=n)&&ks in e)return n;var e;let r=Ss.get(n);if(!r){const e=Array(n.length/2).fill(void 0);r=new Proxy(e,new Rs(t,n)),Ss.set(n,r)}return r};class Rs{u;Qt;Bt;constructor(t,n){this.u=t,this.Qt=n,this.Bt=this.Qt.length/2}get(t,n,e){if(n===ks)return t;const r="number"==typeof n?n:"string"==typeof n?parseInt(n,10):NaN;if(Number.isNaN(r)||r<0||r>=this.Bt)return Reflect.get(t,n,e);const o=2*r,s=this.Qt[o],i=this.Qt[o+1];if(void 0===s)return i;const l=this.u;let u=Is(l,s,i);return s>=14&&(u=qs(l,u,s,i)),Reflect.set(t,n,u),this.Qt[o]=void 0,this.Qt[o+1]=u,u}has(t,n){return n===ks||Object.prototype.hasOwnProperty.call(t,n)}set(t,n,e,r){if(n===ks)return!1;const o=Reflect.set(t,n,e,r),s="number"==typeof n?n:parseInt(n,10);if(Number.isNaN(s)||s<0||s>=this.Qt.length/2)return o;const i=2*s;return this.Qt[i]=void 0,this.Qt[i+1]=e,!0}}const As=new WeakMap,qs=(t,n,e,r)=>{if(void 0===e)return n;switch(15!==e&&Array.isArray(r)&&(r=((t,n)=>{const e=Array(n.length/2);for(let r=0;r<n.length;r+=2)e[r/2]=Bs(t,n[r],n[r+1]);return e})(t,r)),e){case 15:for(let e=0;e<r.length;e+=4){const o=Bs(t,r[e],r[e+1]),s=r[e+2],i=r[e+3];0===s||s>=14?Object.defineProperty(n,o,{get(){const e=Bs(t,s,i);return n[o]=e,e},set(t){Object.defineProperty(n,o,{value:t,writable:!0,enumerable:!0,configurable:!0})},enumerable:!0,configurable:!0}):n[o]=Bs(t,s,i)}break;case 20:case 21:Cs(t,n);break;case 22:const o=n,s=r;o.L=Cs(t,s[0]),o.v=s[1],o.it=s[2],o.lt=s[3],o[ht]=s[4],o.ut=s[5];break;case 23:const[i,l,u]=r,c=n;i?(c.value=Promise.resolve(l),c._resolved=l,c._state="resolved"):(c.value=Promise.reject(l),c._error=l,c._state="rejected"),gn(n).l=u;break;case 24:n[Ai][0]=r[0];break;case 30:case 31:{const[e,o,s]=r,i=Rn(e,o,t);gn(i).l=s,n=i;break}case 25:{const t=n,e=r;t.o=e[0],t.l=new Set(e.slice(1));break}case 26:{const e=n,o=r;e.p=t.getSyncFn(o[0]),e.$=o[1],e[ht]=o[2],e.o=at,e.v=o[3],e.v|=1,e.k=o[4],e.l=new Set(o.slice(5));break}case 28:{const t=n,e=r;t.U=e[0],t.l=new Set(e[1]),t.Z=new Set(e[2]),t.X=new Set(e[3]),t.G=e[4],t.Y=e[5],e.length>6&&(t.o=e[6]),t.v|=1;break}case 29:case 27:{const o=n,s=r;o.U=s[0],o.l=new Set(s[1]),s.length>2?(o.o=s[2],29===e&&(o.v|=1)):(o.v|=1,o.U.resolve(),t.q?.(1,null,o.U));break}case 14:{const t=r;n.message=t[0];for(let e=1;e<t.length;e+=2)n[t[e]]=t[e+1];break}case 32:{const t=n,e=r;for(let n=0;n<e.length;n++)t.append(e[n++],e[n]);break}case 33:{const t=n,[e,o,s,i,l,u]=r;t.type=e,t.varProps=o,t.constProps=s,t.children=i,t.flags=l,t.key=u;break}case 17:{const t=n,e=r;for(let n=0;n<e.length;n++)t.add(e[n]);break}case 18:{const t=n,e=r;for(let n=0;n<e.length;n++)t.set(e[n++],e[n]);break}case 16:{const t=n,[e,o]=r,[s,i]=As.get(t);e?s(o):i(o);break}case 19:const a=n,h=atob(r);let d=0;for(const t of h)a[d++]=t.charCodeAt(0);break;case 34:const $=n;$[$n]=0===r?{}:r[0],$[dn]=r[1];break;case 35:{const t=n;t.data.$t=r[0],t.data.yt=r[1];break}default:throw f(16,[e])}return n},Ps=[void 0,null,!0,!1,"",nn,en,at,pt,yn,Yn,Ke,NaN,1/0,-1/0,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER-1,Number.MIN_SAFE_INTEGER],js=["undefined","null","true","false","''","EMPTY_ARRAY","EMPTY_OBJ","NEEDS_COMPUTATION","STORE_ALL_PROPS","_UNINITIALIZED","Slot","Fragment","NaN","Infinity","-Infinity","MAX_SAFE_INTEGER","MAX_SAFE_INTEGER-1","MIN_SAFE_INTEGER"],Is=(t,n,e)=>{if(void 0===e)return n;switch(n){case 0:return t.wt(e);case 1:if(!t._t)throw f(18,["forward ref"]);const r=t._t[e];return-1===r?yn:t.wt(r);case 2:case 4:case 5:return e;case 3:return Ps[e];case 6:return xs(t,e);case 15:return{};case 20:case 21:return Os("number"==typeof e?t.wt(e):e);case 22:return new Fe(-1,-1,null,null,null,null);case 23:{const n=xr(t,void 0,void 0);return n.loading=!1,n}case 7:return new URL(e);case 8:return new Date(e);case 9:const o=e.lastIndexOf("/");return new RegExp(e.slice(1,o),e.slice(o+1));case 14:return new Error;case 24:return Ri(null);case 25:return new yt(t,0);case 26:return new mt(t,null,null,null);case 27:return new mn(t,null);case 28:return new On(t,null);case 29:return new bn(t,null);case 30:case 31:return null;case 13:return new URLSearchParams(e);case 32:return new FormData;case 33:return new Ge(null,null,null,null,-1,null);case 12:return BigInt(e);case 17:return new Set;case 18:return new Map;case 16:let s,i;const l=new Promise((t,n)=>{s=t,i=n});return As.set(l,[s,i]),l.catch(()=>{}),l;case 19:const u=e.length,c=3&u;return new Uint8Array(3*(u>>>2)+(c?c-1:0));case 34:return nr(null,null);case 10:return Ns(t,e);case 11:const a=Ns(t,e);if(ro(a))return ds(a);throw f(17,[typeof a]);case 35:return new Qn({});default:throw f(18,[n])}};function Ns(t,n){return n?t.rootVNode?bo(t.rootVNode,n):void 0:t.element?.ownerDocument}function Os(t){const n=t.indexOf("#"),e=t.indexOf("[",n),r=t.indexOf("]",e),o=t.slice(0,n>-1?n:e),s=e>-1?t.slice(n+1,e):t.slice(n+1),i=e>-1&&r>-1?t.slice(e+1,r).split(" ").filter(t=>t.length).map(t=>parseInt(t,10)):null;let l=null;return o===Xs&&(l=globalThis.__qrl_back_channel__.get(s)),$i(o,s,l,null,i,null)}function Cs(t,n){const e=n.rt;return n.W=e?e.map(n=>t.wt(n)):null,t.element&&n.T(t.element),n}let Es=()=>!1;const Ms=(t,n,e,r,o,s,l)=>{if(!l){const t=[];l={write:n=>t.push(n),toString:()=>t.join("")}}const u=new Map,c=new Map,a=new Map,d=[],$=[],p=t=>{const n=c.get(t);if(n)return n;const e=u.get(t);if(!e)throw f(19,[t]);const r=[];let o=e;for(;o&&o.it>=0&&(r.unshift(o.it),"object"==typeof o.Ht&&null!==o.Ht);)o=u.get(o.Ht);const s=r.length>1?r.join(" "):r.length?r[0]:e.it;return c.set(t,s),s},y=t?n=>n instanceof t:()=>!1;return Es=n?t=>t instanceof n:()=>!1,{async Jt(){return await async function(t){const{Gt:n,Yt:e,Zt:r,H:o,Xt:s,Kt:l,tn:u}=t;let c=0,a=0;const d=[];let $=0;const p=new Set,y=new Set,w=new Map;let m=null;const b=(t,e)=>{n.write("[");let r=!1;for(let o=0;o<t.length;o++)r?n.write(","):r=!0,e(t[o],o);n.write("]")},g=(e,r)=>{if(n.write(`${e},`),"number"==typeof r)n.write(r.toString());else if("string"==typeof r){const t=JSON.stringify(r);let e=-1,o=0;for(;-1!==(e=t.indexOf("</",o));)n.write(t.slice(o,e)),n.write("<\\/"),o=e+2;n.write(0===o?t:t.slice(o))}else c++,b(r,(n,e)=>{!function(t,n,e,r){const{tn:o,nn:s,Xt:l}=t;(function(t){return i(t)||"string"==typeof t&&t.length>1}(n)||Ys(n))&&(void 0===o(n)?s(n,e,r):l(n,e))}(t,n,m,e),x(n)}),c--},v=n=>{y.add(n),t.Xt(n)},S=(t,n=0)=>{const e=u(t),r=l.get(t);if(n===c&&e&&null!==e.Ht&&r)return g(0,r),!0;if(c>n&&e&&-1!==e.en)return g(0,e.en),!0;if(w.has(t)){const e=w.get(t);if(n!==c){const n=s(t);return g(0,n),d[e]=n,!0}d[e]=a}return!1},x=n=>{if(ci(n))g(3,0);else if("bigint"==typeof n)g(12,n.toString());else if("boolean"==typeof n)g(3,n?2:3);else if("function"==typeof n)if(n===Yn)g(3,10);else if(n===Ke)g(3,11);else if(h(n)){if(!S(n)){const e=Vs(t,n),r=y.has(n)?21:20;if(0===c)g(r,e);else{const n=t.Xt(e);g(r,n)}}}else{if(!qi(n))throw f(34,[n.toString()]);{const[e]=n[Ai];t.rn.add(e.et),g(24,[e])}}else if("number"==typeof n)Number.isNaN(n)?g(3,12):Number.isFinite(n)?n===Number.MAX_SAFE_INTEGER?g(3,15):n===Number.MAX_SAFE_INTEGER-1?g(3,16):n===Number.MIN_SAFE_INTEGER?g(3,17):g(4,n):g(3,n<0?14:13);else if("object"==typeof n)if(n===nn)g(3,5);else if(n===en)g(3,6);else if(null===n)g(3,1);else{c++;const t=m;m=n,R(n),m=t,c--}else if("string"==typeof n)0===n.length?g(3,4):S(n)||g(5,n);else if(void 0===n)g(3,0);else if(n===at)g(3,7);else if(n===pt)g(3,8);else{if(n!==yn)throw f(20,[typeof n]);g(3,9)}},R=n=>{var l;if(!S(n,1))if(Je(n)){const t=n[$n],e=n[dn],r=e?[t,e]:Object.keys(t).length?[t]:0;g(34,r)}else if(n instanceof Qn)g(35,[n.data.$t,n.data.yt]);else if(kn(n))if(function(t){return"__brand"in t&&"resource"===t.__brand}(n)){t.sn.add(n);const e=A(n.value,s,(t,e)=>new Ls(23,t,e,gn(n).l));g(1,e)}else{const e=gn(n),r=vn(n),s=e.v,i=e.l,l=[];for(const n in r){const e=r[n];if(o.has(e)){const n=o.get(e);l.push(n),t.Xt(n)}}const u=[r,s,i,...l];for(;null==u[u.length-1];)u.pop();g(Array.isArray(r)?31:30,u)}else if(i(l=n)&&"function"==typeof l[hi]){const t=n[hi](n);if(tt(t)){const n=A(t,s,(t,n)=>new Ls(29,t,n,null,null));g(1,n)}else c--,x(t),c++}else if(function(t){const n=Object.getPrototypeOf(t);return null==n||n===Object.prototype||n===Array.prototype}(n))if(Array.isArray(n))g(6,n);else{const t=[];for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&!ci(n[e])&&t.push(e,n[e]);g(15,t)}else if(r(n))n.ln.vnodeData[0]|=16,g(11,n.ln.id);else if(n instanceof yt){if(n instanceof bn){v(n.U);const t=A(function(t,n){return new Promise(e=>{t.U.resolve().then(t=>{let r;t.serialize?r=t.serialize(n):hi in n&&(r=n[hi](n)),void 0===r&&(r=at),e(r)})})}(n,n.o),s,(t,e)=>new Ls(29,t,e,n.l,n.U));return void g(1,t)}if(n instanceof mt)g(26,[...Ds(t,n),Us(n[ht]),n.v,n.k,...n.l||[]]);else if(n instanceof mn){let t=n.o;const e=16&n.v,r=8&n.v,o=1&n.v,s=ci(n.o);e?t=n.o:(r||o||s)&&(t=at),v(n.U);const i=[n.U,n.l],l=n instanceof On;l&&i.push(n.Z,n.X,n.G,n.Y),t!==at&&i.push(t),g(l?28:27,i)}else g(25,[n.o,...n.l||[]])}else if(n instanceof URL)g(7,n.href);else if(n instanceof Date)g(8,Number.isNaN(n.valueOf())?"":n.valueOf());else if(n instanceof RegExp)g(9,n.toString());else if(n instanceof Error){const t=[n.message];t.push(...Object.entries(n).flat()),t.push("stack",n.stack),g(14,t)}else if(e(n)){const e=s(n);t.un(n,"q:id",String(e)),g(10,n.id);const r=n.vnodeData;if(r&&(Fs(r,t=>s(t)),r[0]|=16),n.children)for(const t of n.children){const n=t.vnodeData;if(n){for(const t of n)if(_s(t)){const n=t.findIndex(t=>t===k);-1!==n&&s(t[n+1])}n[0]|=16}}}else if("undefined"!=typeof FormData&&n instanceof FormData){const t=[];n.forEach((n,e)=>{t.push(e,"string"==typeof n?n:n.name)}),g(32,t)}else if(n instanceof URLSearchParams)g(13,n.toString());else if(n instanceof Set)g(17,[...n.values()]);else if(n instanceof Map){const t=[];for(const[e,r]of n.entries())t.push(e,r);g(18,t)}else if(Xe(n))g(33,[n.type,n.varProps,n.constProps,n.children,n.flags,n.key]);else if(n instanceof Fe){const t=[n.L,n.v,n.it,n.lt,n[ht],n.ut];for(;null==t[t.length-1];)t.pop();g(22,t)}else if(tt(n)){const t=A(n,s,(t,n)=>new Ls(16,t,n));g(1,t)}else if(n instanceof Ls)if(23===n.vt)g(23,[n.cn,n.Pt,n.l]);else if(29===n.vt)if(n.L)g(29,[n.L,n.l,n.Pt]);else{if(!n.cn)throw console.error(n.Pt),f(33);x(n.Pt)}else g(16,[n.cn,n.Pt]);else if(n instanceof Uint8Array){let t="";for(const e of n)t+=String.fromCharCode(e);const e=btoa(t).replace(/=+$/,"");g(19,e)}else if(n instanceof Ts){const t=$++;w.set(n.fn,t),d[t]=-1,g(1,t)}else{if(!ro(n))throw f(20,[typeof n]);g(3,0)}};function A(t,n,e){const r=$++;return t.then(o=>{p.delete(t),d[r]=n(e(!0,o))}).catch(o=>{p.delete(t),d[r]=n(e(!1,o))}),p.add(t),r}await(async()=>{n.write("[");let e=t.an.length;for(;a<e||p.size;){0!==a&&n.write(",");let r=!1;for(;a<e;a++)r?n.write(","):r=!0,x(t.an[a]);if(p.size)try{await Promise.race(p)}catch{}e=t.an.length}d.length&&(n.write(","),n.write("2,"),b(d,t=>{n.write(String(t))})),n.write("]")})()}(this)},Yt:y,Zt:Es,hn:e,tn:t=>u.get(t),an:$,nn:(t,n,e)=>u.set(t,{Ht:n,it:e,en:-1}),dn:t=>{const n=u.get(t);return null===n?.Ht?n.it:void 0},Xt:(t,n=null)=>{let e=u.get(t);if(e)-1===e.en&&(e.en=$.length,$.push(t));else{const r=$.length;e={Ht:n,it:r,en:r},u.set(t,e),$.push(t)}return p(t),e.en},$n:p,pn:d,yn:(t,n,e)=>{const r=null==t;r&&(t=e.serialized||e.toString());let o=a.get(t);if(void 0===o)if(o=d.length,a.set(t,o),r)d.push(t);else{let e="(";for(let t=0;t<n;t++)e+=(0==t?"p":",p")+t;d.push(e+=")=>"+t)}return o},Gt:l,st:new Set,ot:new Set,sn:new Set,rn:new Set,H:s,wn:r,un:o,Kt:c}},_s=t=>Array.isArray(t)&&t.length>0,Fs=(t,n)=>{for(const e of t)if(_s(e))for(let t=1;t<e.length;t+=2){const r=e[t];null==r||"string"==typeof r||e[t-1]===L&&0===Object.keys(r).length||n(r)}};class Ls{vt;cn;Pt;l;L;constructor(t,n,e,r=null,o=null){this.vt=t,this.cn=n,this.Pt=e,this.l=r,this.L=o}}class Ts{fn;constructor(t){this.fn=t}}const Ws=t=>new Ts(t);function Us(t){let n=null;if(t)for(const[e,r]of t)r[2]&&(n||=new Map,n.set(e,r));return n}function Ds(t,n){return n.m&&"{"===n.m[0]&&(n.m=`(${n.m})`),[t.yn(n.m,n.$.length,n.p),n.$]}function Vs(t,n){let e=n.et,r=n.mn;const o=Z();if(o){const t=o.chunkForSymbol(e,r,n.dev?.file);t&&(r=t[1],e=t[0])}const s=(t=>h(t)&&t.et==a)(n);if(s)r="",e=String(t.yn(null,0,n.resolved));else{r||(r=t.hn(n.D));{let t=globalThis.__qrl_back_channel__;t||(t=globalThis.__qrl_back_channel__=new Map),t.set(n.et,n._devOnlySymbolRef),r||(r=Xs)}if(!r)throw f(14,[n.et]);r.startsWith("./")&&(r=r.slice(2))}let i=`${r}#${e}`;if(Array.isArray(n.W)&&n.W.length>0){let e="";for(let r=0;r<n.W.length;r++)r>0&&(e+=" "),e+=t.Xt(n.W[r]);i+=`[${e}]`}else n.rt&&n.rt.length>0&&(i+=`[${n.rt.join(" ")}]`);return i}async function zs(t){const n=Ms(null,null,()=>"",()=>"",()=>{},new WeakMap);for(const e of t)n.Xt(e);return await n.Jt(),n.Gt.toString()}function Qs(t,n){if(null==t)return[];const e=JSON.parse(t);if(!Array.isArray(e))return[];let r;r=X(n)&&K(n)?Js(e,n):Js(e);const o=[];for(let t=0;t<e.length;t+=2)o[t/2]=Bs(r,e[t],e[t+1]);return o}function Bs(t,n,e){if(void 0===n)return e;let r=Is(t,n,e);return n>=14&&(r=qs(t,r,n,e)),r}function Hs(t,n){return"string"==typeof t&&(t=parseInt(t,10)),n[t]}function Js(t,n){let e;const r={wt:t=>Hs(t,e),getSyncFn:()=>()=>{},H:new WeakMap,element:null,_t:null,Ft:null,q:null};return Gs(t,r),e=xs(r,t),r.ut=e,n&&(r.element=n),r}function Gs(t,n){const e=(t,n)=>0===t&&"string"==typeof n,r=t=>2===t,o=t=>21===t,s=n=>{const e=t[n+1].split(" ");let r=t,o=0,s=0,i=0,l=null;for(let n=0;n<e.length;n++)if(l=r,s=2*parseInt(e[n],10),i=s+1,o=r[s],r=r[i],0===o){const n=2*r;o=t[n],r=t[n+1]}l&&(l[s]=0,l[i]=n/2),t[n]=o,t[n+1]=r};for(let i=0;i<t.length;i+=2)e(t[i],t[i+1])?s(i):r(t[i])?n._t=t[i+1]:o(t[i])&&(n.Ft||=[],n.Ft.push(i/2))}const Ys=t=>i(t)&&(t instanceof yt||t instanceof Fe||Xe(t))||h(t),Zs=(t,n=new WeakSet)=>{if(null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return!0;if("object"==typeof t){if(n.has(t))return!0;n.add(t);const e=Object.getPrototypeOf(t);if(kn(t)&&(t=vn(t)),e==Object.prototype){for(const e in t)if(!Zs(jt(()=>t[e]),n))return!1;return!0}if(e==Array.prototype){for(let e=0;e<t.length;e++)if(!Zs(t[e],n))return!1;return!0}if(Le(t))return!0;if(Je(t))return!0;if(tt(t))return!0;if(Xe(t))return!0;if(t instanceof Error)return!0;if(t instanceof URL)return!0;if(t instanceof Date)return!0;if(t instanceof RegExp)return!0;if(t instanceof URLSearchParams)return!0;if(t instanceof FormData)return!0;if(t instanceof Set)return!0;if(t instanceof Map)return!0;if(t instanceof Uint8Array)return!0;if(Es?.(t))return!0}else if("function"==typeof t){if(h(t)||qi(t))return!0}else if(t===yn)return!0;return!1},Xs="mock-chunk",Ks=["RootRef","ForwardRef","ForwardRefs","Constant","Number","String","Array","URL","Date","Regex","VNode","RefVNode","BigInt","URLSearchParams","Error","Object","Promise","Set","Map","Uint8Array","QRL","PreloadQRL","Task","Resource","Component","Signal","WrappedSignal","ComputedSignal","AsyncComputedSignal","SerializerSignal","Store","StoreArray","FormData","JSXNode","PropsProxy","SubscriptionData"],ti=(t,n)=>{let e=ro(t)?$s.call(t,1,"",!0).replaceAll(/\n.*/gm,""):"function"==typeof t?String(t):(t=>{const n=new WeakSet;return JSON.stringify(t,(t,e)=>{if(i(e)){if(n.has(e))return`[Circular ${e.constructor.name}]`;n.add(e)}return e},2)})(t);return e.length>500&&(e=e.slice(0,500)+'"...'),e=e.replace(/\n/g,"\n"+n),e.includes("\n")?e=`\n${n}${e}`:e};let ni=!1;const ei=(t,n=!1,e="",r=20)=>{const o=n?"":"",s=n?"":"",l=""===e,u=[];for(let l=0;l<t.length;l++){if(r&&l>2*r){u.push("...");break}const c=t[l];let f=t[++l];void 0===c?(ni=!0,u.push(`${o}[raw${i(f)?` ${f.constructor.name}`:""}]${s} ${ti(f,`${e} `)}`)):(3===c?f=oi(f):"string"==typeof f?(f=JSON.stringify(f),f.length>120&&(f=f.slice(0,120)+'"...')):2===c?f=`[\n${e} ${f.join(`\n${e} `)}\n${e}]`:Array.isArray(f)&&(f=f.length?`[\n${ei(f,n,`${e} `)}\n${e}]`:"[]"),u.push(`${o}${ri(c)}${s} ${f}`))}const c=u.map((t,n)=>`${e}${l?`${n} `:""}${t}`).join("\n");if(l){const n=ni?"":`(${JSON.stringify(t).length} chars)`;return ni=!1,`\n${c}\n${n}`}return c},ri=t=>Ks[t]||`Unknown(${t})`,oi=t=>js[t]||`Unknown(${t})`,si=(t,n)=>{const e=new WeakSet;return ii(t,e,"_",n)},ii=(t,n,e,r)=>{const o=Sn(t);if(null==o)return t;if(ui(o)){if("object"==typeof o){if(n.has(o))return t;n.add(o)}if(zr(o))return t;if(Zs(o))return t;const i=typeof o;switch(i){case"object":if(tt(o))return t;if(X(o))return t;if(l(o)){let r=0;return o.forEach((t,s)=>{if(s!==r)throw f(3,[o]);ii(t,n,e+"["+s+"]"),r=s+1}),t}if(s(o)){for(const[t,r]of Object.entries(o))ii(r,n,e+"."+t);return t}break;case"boolean":case"string":case"number":return t}let u;if(u=r||"Value cannot be serialized","_"!==e&&(u+=` in ${e},`),"object"===i)u+=` because it's an instance of "${t?.constructor.name}". You might need to use 'noSerialize()' or use an object literal instead. Check out https://qwik.dev/docs/advanced/dollar/`;else if("function"===i){const n=t.name;u+=` because it's a function named "${n}". You might need to convert it to a QRL using $(fn):\n\nconst ${n} = $(${String(t)});\n\nPlease check out https://qwik.dev/docs/advanced/qrl/ for more information.`}throw f(3,[u])}return t},li=/*#__PURE__*/new WeakSet,ui=t=>!i(t)&&!c(t)||!li.has(t),ci=t=>t&&(i(t)||"function"==typeof t)&&(ai in t||li.has(t)),fi=t=>((i(t)&&null!==t||"function"==typeof t)&&li.add(t),t),ai=Symbol("noSerialize"),hi=Symbol("serialize"),di=Symbol("resolved"),$i=(n,e,r,o,s,i)=>{let u;const a=async function(...t){const n=d.call(this,vt());return await n(...t)},h=t=>(u||(u=t),u);function d(t,n){const e=(...o)=>{if(!a.resolved)return st(()=>a.resolve()).then(t=>{if(!c(t))throw f(5);return e(...o)});if(n&&!1===n())return;const s=y(t),i=s.L,l=s.N;s.L=a,s.N||=this;try{return Rt.call(this,s,r,...o)}finally{s.L=i,s.N=l}};return e}const $=t=>"function"!=typeof t||!s?.length&&!i?.length?t:function(...n){let e=vt();if(e){if(e.L?.et===a.et)return t.apply(this,n);const r=e.L;e.L=a;try{return t.apply(this,n)}finally{e.L=r}}return e=Pt(),e.L=a,e.N=this,Rt.call(this,e,t,...n)};o&&di in o&&(r=o[di]);const p=r?async()=>r:async s=>{if(null!==r)return r;if(s&&h(s),""===n){const t=u.getAttribute(A),n=x(u.ownerDocument,t);return a.resolved=r=n[Number(e)]}n&&t(n,1);const i=mi(),l=vt();if(null!==o)r=o().then(t=>{const n=$(r=t[e]);return o[di]=n,a.resolved=n,n});else{const t=Z().importSymbol(u,n,e);r=et(t,t=>a.resolved=$(r=t))}return tt(r)&&r.then(()=>yi(e,l?._,i),t=>{console.error(`qrl ${e} failed to load`,t),r=null}),r},y=t=>null==t?Pt():l(t)?qt(t):t,w=(t=>{const n=t.lastIndexOf("_");return n>-1?t.slice(n+1):t})(e);return Object.assign(a,{getSymbol:()=>e,getHash:()=>w,getCaptured:()=>i,resolve:p,T:h,mn:n,et:e,D:w,getFn:d,rt:s,W:i,dev:null,resolved:void 0}),r&&(r=et(r,t=>a.resolved=$(r=t))),e&&t(e,.8),a},pi=/*#__PURE__*/new Set,yi=(t,n,e)=>{pi.has(t)||(pi.add(t),wi("qsymbol",{symbol:t,element:n,reqTime:e}))},wi=(t,n)=>{"object"==typeof document&&document.dispatchEvent(new CustomEvent(t,{bubbles:!1,detail:n}))},mi=()=>"object"==typeof performance?performance.now():0;let bi=0;const gi=t=>$i(null,"s"+bi++,t,null,null,null),vi=gi,Si=t=>t,ki=t=>$i("",a,t,null,null,null),xi=function(t,n){return void 0===n&&(n=t.toString()),t.serialized=n,$i("",a,t,null,null,null)},Ri=t=>{function n(n,e,r=0){const o=t.D.slice(0,4)+":"+(e||""),s=()=>{};return s[Ai]=[t],Ue(s,n,null,n.children,r,o)}return n[Ai]=[t],n},Ai=Symbol("serializable-data"),qi=t=>"function"==typeof t&&void 0!==t[Ai],Pi=t=>Ri(vi(t)),ji=wn(Si),Ii=async(t,n,e={})=>{if(9===t.nodeType){let n=t.firstChild;for(;n&&!K(n);)n=n.nextSibling;t=n}t.setAttribute(N,"resumed");const r=Lr(t);r.It=e.serverData||{};const o=r.rootVNode;return r.q(4,o,o,n),await r.q(255),{cleanup:()=>{mr(r,r.rootVNode)}}},Ni=(t,n)=>{const{val:e,set:r,iCtx:o}=Lt();if(null!=e)return e;const s=c(t)?Rt(void 0,t):t;if(!1===n?.reactive)return r(s),s;{const t=o.u,e=Rn(s,n?.deep??1?1:0,t);return r(e),e}},Oi=()=>{const{val:t,set:n,iCtx:e}=Lt();if(null!=t)return t;const r=e.u.Ct||"",o=r?fe(r).substring(0,3):"",s=e.u.getHostProp(e.k,d);let i=`${o}${s?.getHash().substring(0,3)||""}${(e.u.Nt++).toString(36)||""}`,l=i.charCodeAt(0);return l>=48&&l<=57&&(l+=17,i=String.fromCharCode(l)+i.substring(1)),n(i)};function Ci(t,n){const e=vt();return e?.u?.It[t]??n}const Ei=/*#__PURE__*/new Map,Mi=(t,n)=>{let e=Ei.get(n);return e||Ei.set(n,e=_i(t,n)),e},_i=(t,n)=>{const e=t.length,r=[],o=[];let s=0,i=s,l=Ui,u=0;for(;s<e;){const n=s;let e=t.charCodeAt(s++);e===$l&&(s++,e=al);const r=Sl[l];for(let d=0;d<r.length;d++){const $=r[d],[p,y,w]=$;if((p===u||p===Yi||p===Zi&&Fi(u)||p===Ki&&Wi(u))&&(y===e||y===Yi||y===Zi&&Fi(e)||y===Xi&&!Fi(e)&&e!==ll||y===Ki&&Wi(e))&&(3==$.length||a($))){if($.length>3&&(e=t.charCodeAt(s-1)),w===Ji||w==Gi){w===Gi&&(l!==Di||h()?Li(e)||f(s-(y==Xi?1:y==sl?2:0)):(Li(e)?c(s-2):f(s-2),i++)),y===Xi&&(s--,e=u);do{l=o.pop()||Ui,l===Vi&&(c(s-1),i++)}while(Ti(l))}else o.push(l),l===Vi&&w===Ui?(c(s-8),i=s):w===zi&&f(n),l=w;break}}u=e}return c(s),r.join("");function c(n){r.push(t.substring(i,n)),i=n}function f(t){l===Vi||h()||(c(t),r.push(".",$,n))}function a(n){let e=0;if(t.charCodeAt(s)===il)for(let n=1;n<10;n++)if(t.charCodeAt(s+n)===il){e=n+1;break}t:for(let r=3;r<n.length;r++){const o=n[r];for(let n=0;n<o.length;n++)if((t.charCodeAt(s+n+e)|yl)!==o.charCodeAt(n))continue t;return s+=o.length+e,!0}return!1}function h(){return-1!==o.indexOf(Vi)||-1!==o.indexOf(Qi)}},Fi=t=>t>=ul&&t<=cl||t>=al&&t<=hl||t>=wl&&t<=ml||t>=128||t===pl||t===il,Li=t=>t===fl||t===ll||t===dl||t===ol||Fi(t),Ti=t=>t===Bi||t===Qi||t===Hi||t===Vi,Wi=t=>t===rl||t===tl||t===nl||t===el,Ui=0,Di=2,Vi=5,zi=6,Qi=10,Bi=11,Hi=12,Ji=17,Gi=18,Yi=0,Zi=1,Xi=2,Ki=3,tl=9,nl=10,el=13,rl=32,ol=35,sl=41,il=45,ll=46,ul=48,cl=57,fl=58,al=65,hl=90,dl=91,$l=92,pl=95,yl=32,wl=97,ml=122,bl=123,gl=125,vl=[[Yi,39,14],[Yi,34,15],[Yi,47,16,"*"]],Sl=[[[Yi,42,Di],[Yi,dl,7],[Yi,fl,zi,":","before","after","first-letter","first-line"],[Yi,fl,Vi,"global"],[Yi,fl,3,"has","host-context","not","where","is","matches","any"],[Yi,fl,4],[Yi,Zi,1],[Yi,ll,1],[Yi,ol,1],[Yi,64,Qi,"keyframe"],[Yi,64,Bi,"media","supports","container"],[Yi,64,Hi],[Yi,bl,13],[47,42,16],[Yi,59,Ji],[Yi,gl,Ji],[Yi,sl,Ji],...vl],[[Yi,Xi,Gi]],[[Yi,Xi,Gi]],[[Yi,40,Ui],[Yi,Xi,Gi]],[[Yi,40,8],[Yi,Xi,Gi]],[[Yi,40,Ui],[Yi,Xi,Ji]],[[Yi,Xi,Ji]],[[Yi,93,Gi],[Yi,39,14],[Yi,34,15]],[[Yi,sl,Ji],...vl],[[Yi,gl,Ji],...vl],[[Yi,gl,Ji],[Ki,Zi,1],[Yi,fl,Vi,"global"],[Yi,bl,13],...vl],[[Yi,bl,Ui],[Yi,59,Ji],...vl],[[Yi,59,Ji],[Yi,bl,9],...vl],[[Yi,gl,Ji],[Yi,bl,13],[Yi,40,8],...vl],[[Yi,39,Ji]],[[Yi,34,Ji]],[[42,47,Ji]]],kl=t=>({styleId:ql(t,t=>t,!1)}),xl=/*#__PURE__*/wn(kl),Rl=t=>({scopeId:$+ql(t,Mi,!0)}),Al=/*#__PURE__*/wn(Rl),ql=(t,n,e)=>{const{val:r,set:o,iCtx:s,i}=Lt();if(r)return r;const l=(u=i,`${fe(t.D)}-${u}`);var u;const c=s.k;if(o(l),!t.resolved)throw t.resolve().then(t=>s.u.zt(n(t,l),l,c,e));return s.u.zt(n(t.resolved,l),l,c,e),l},Pl=(t,n)=>{Ol(Nl(t,"on"),n)},jl=(t,n)=>{Ol(Nl(t,"document:on"),n)},Il=(t,n)=>{Ol(Nl(t,"window:on"),n)},Nl=(t,n)=>{const e=t=>{let e=n;return t===Wt&&(e+="-"),function(t,n){return n+(t=t.charAt(0).toUpperCase()+t.substring(1))+Tt}(t,e)};return Array.isArray(t)?t.map(e):e(t)},Ol=(t,n)=>{const{isAdded:e,addEvent:r}=Cl();e||n&&(Array.isArray(t)?t.forEach(t=>r(t,n)):r(t,n))},Cl=()=>{const t=kt(),n=t.k;let e=t.u.getHostProp(n,U);null===e&&(e={},t.u.setHostProp(n,U,e));let r=t.u.getHostProp(n,D);null===r&&(r=0),t.u.setHostProp(n,D,r+1);let o=t.u.getHostProp(n,V);for(null===o&&(o=[],t.u.setHostProp(n,V,o));o.length<=r;)o.push(!1);return{isAdded:o[r],addEvent:(t,n)=>{o[r]=!0;let s=e[t];s||(e[t]=s=[]),s.push(n)}}},El=t=>Ml(()=>{const n=c(t)&&!qi(t)?Rt(void 0,t):t;return _n(n)}),Ml=t=>{const{val:n,set:e}=Lt();return null!=n?n:e(t=c(t)&&!qi(t)?t():t)},_l=(t,n,e)=>{const{val:r,set:o}=Lt();if(r)return r;const s=n(t,e);return o(s),Vr(t),s},Fl=(t,n)=>_l(t,Cn,n),Ll=wn(Fl),Tl=t=>_l(t,Mn),Wl=wn(Tl),Ul=(t,n)=>{const{val:e,set:r,i:o,iCtx:s}=Lt(),i=n?.strategy??"intersection-observer";if(e)return;const l=new Fe(1,o,s.k,t,void 0,null);r(l),Dl(l,i),t.resolve(s._),s.u.q(32,l)},Dl=(t,n)=>{"intersection-observer"===n?Pl("qvisible",Vl(t)):"document-ready"===n?jl("qinit",Vl(t)):"document-idle"===n&&jl("qidle",Vl(t))},Vl=t=>$i(null,"_task",Te,null,null,[t]),zl=(t,n)=>Sr(vi(t),n),Ql=/*#__PURE__*/wn(Ee),Bl=/*#__PURE__*/wn(Ul),Hl=(t,n)=>_l(t,En,n),Jl=wn(Hl),Gl=()=>{const t=Ni({error:void 0});return Zt(Kt,t),t},Yl=t=>{import.meta;const n=import.meta.env.BASE_URL||"/",e={path:"qwik-prefetch-service-worker.js",...t};e.path=t?.path?.startsWith?.("/")?t.path:n+e.path;let r=Zl.replace("'_URL_'",JSON.stringify(e.path));r=r.replaceAll(/\s\s+/gm,"");const o={dangerouslySetInnerHTML:["("+r+")(",["navigator.serviceWorker"].join(","),");"].join(""),nonce:e.nonce};return We("script",null,o,null,0,"prefetch-service-worker")},Zl=/*#__PURE__*/(t=>{"getRegistrations"in t&&t.getRegistrations().then(t=>{t.forEach(t=>{t.active&&t.active.scriptURL.endsWith("_URL_")&&t.unregister().catch(console.error)})})}).toString(),Xl=()=>null;export{gi as $,Ke as Fragment,ai as NoSerializeSymbol,Xl as PrefetchGraph,Yl as PrefetchServiceWorker,Ze as RenderOnce,kr as Resource,Kn as SSRComment,Xn as SSRRaw,ne as SSRStream,te as SSRStreamBlock,hi as SerializerSymbol,Zn as SkipRender,Yn as Slot,dn as _CONST_PROPS,Dr as _DomContainer,ht as _EFFECT_BACK_REF,nn as _EMPTY_ARRAY,pn as _IMMUTABLE,_r as _SharedContainer,Qn as _SubscriptionData,yn as _UNINITIALIZED,$n as _VAR_PROPS,Qs as _deserialize,ei as _dumpState,Hn as _fnSignal,Mt as _getContextContainer,Ct as _getContextElement,Et as _getContextEvent,Lr as _getDomContainer,Wr as _getQContainerElement,Xe as _isJSXNode,Bn as _isStringifiable,_t as _jsxBranch,De as _jsxC,ze as _jsxQ,Ve as _jsxS,We as _jsxSorted,Ue as _jsxSplit,sn as _noopQrl,ln as _noopQrlDEV,Gs as _preprocessState,xi as _qrlSync,fn as _regSymbol,Gn as _restProps,hn as _run,Ws as _serializationWeakRef,zs as _serialize,Te as _task,kt as _useInvokeContext,si as _verifySerializable,$s as _vnode_toString,Ft as _waitUntilRendered,Ae as _walkJSX,Vn as _wrapProp,zn as _wrapSignal,Pi as component$,Ri as componentQrl,Ln as createAsyncComputed$,En as createAsyncComputedQrl,Fn as createComputed$,Cn as createComputedQrl,Yt as createContextId,He as createElement,Tn as createSerializer$,Mn as createSerializerQrl,_n as createSignal,ji as event$,Si as eventQrl,Lr as getDomContainer,ct as getLocale,Z as getPlatform,He as h,wn as implicit$FirstArg,on as inlinedQrl,cn as inlinedQrlDEV,e as isBrowser,r as isDev,n as isServer,zr as isSignal,Qe as jsx,tr as jsxDEV,Qe as jsxs,fi as noSerialize,rn as qrl,un as qrlDEV,Ii as render,Y as setPlatform,ki as sync$,jt as untrack,Sn as unwrapStore,Jl as useAsyncComputed$,Hl as useAsyncComputedQrl,Ll as useComputed$,Fl as useComputedQrl,Ml as useConstant,Xt as useContext,Zt as useContextProvider,Gl as useErrorBoundary,Oi as useId,an as useLexicalScope,Pl as useOn,jl as useOnDocument,Il as useOnWindow,zl as useResource$,Sr as useResourceQrl,Wl as useSerializer$,Tl as useSerializerQrl,Ci as useServerData,El as useSignal,Ni as useStore,xl as useStyles$,kl as useStylesQrl,Al as useStylesScoped$,Rl as useStylesScopedQrl,Ql as useTask$,Ee as useTaskQrl,Bl as useVisibleTask$,Ul as useVisibleTaskQrl,tn as version,ft as withLocale};
1
+ import{p as t}from"@qwik.dev/core/preloader";const n=!1,e=!0,r=!1,o=(t,n,...e)=>{const r=n instanceof Error?n:new Error(n);return console.error("%cQWIK ERROR","",r.message,...e,r.stack),t&&setTimeout(()=>{throw r},0),r},s=t=>{const n=Object.getPrototypeOf(t);return n===Object.prototype||n===Array.prototype||null===n},i=t=>"object"==typeof t&&null!==t,l=t=>Array.isArray(t),u=t=>"string"==typeof t,c=t=>"function"==typeof t,f=(t,n=[])=>{const e=(t=>`Code(Q${t}) https://github.com/QwikDev/qwik/blob/main/packages/qwik/src/core/error/error.ts#L${8+t}`)(t,...n);return((t,...n)=>o(false,t,...n))(e,...n)},a="<sync>",h=t=>"function"==typeof t&&"function"==typeof t.getSymbol,d="q:renderFn",$="⚡️",p="q:slot",y="q:sparent",w="q:s",m="q:style",b="style[q\\:style]",g=b+",style[q\\:sstyle]",v="q:sstyle",S="q:ctx",k="q:brefs",x=(t,n)=>t["qFuncs_"+n]||[],R="q:base",A="q:instance",q="q:container-island",P="/"+q,j="q:ignore",I="/"+j,N="q:container",O="/"+N,C="http://www.w3.org/1999/xhtml",E="http://www.w3.org/2000/svg",M="http://www.w3.org/1998/Math/MathML",_="qRender",F="q:key",L="q:props",T="q:seq",W="q:seqIdx",U=":on",D=":onIdx",V=":onFlags",z="qkssr-f",Q=":",B="dangerouslySetInnerHTML",H=()=>({isServer:n,importSymbol(t,n,e){if(!n)throw f(14,[e]);if(!t)throw f(13,[n,e]);const r=J(t.ownerDocument,t,n).toString(),o=new URL(r);return o.hash="",import(o.href).then(t=>t[e])},raf:t=>new Promise(n=>{requestAnimationFrame(()=>{n(t())})}),nextTick:t=>new Promise(n=>{setTimeout(()=>{n(t())})}),chunkForSymbol:(t,n)=>[t,n??"_"]}),J=(t,n,e)=>{const r=t.baseURI,o=new URL(n.getAttribute(R)??r,r);return new URL(e,o)};let G=/*#__PURE__ */H();const Y=t=>G=t,Z=()=>G,X=t=>t&&"number"==typeof t.nodeType,K=t=>1===t.nodeType,tt=t=>!!t&&"object"==typeof t&&"function"==typeof t.then,nt=(t,n,e)=>{try{const r=t();return tt(r)?r.then(n,e):n(r)}catch(t){return e(t)}},et=(t,n)=>tt(t)?t.then(n,rt):n(t),rt=t=>{(t=>{throw o(!1,t,...[])})(t)},ot=t=>new Promise(n=>{setTimeout(n,t)});function st(t,n=0){const e=e=>{if(tt(e)&&n<100)return e.then(st.bind(null,t,n++));throw e};try{const n=t();return tt(n)?n.catch(t=>e(t)):n}catch(t){return e(t)}}function it(){}function lt(){}let ut;function ct(t){if(void 0===ut){const n=vt();if(n&&n.t)return n.t;if(void 0!==t)return t;throw new Error("Reading `locale` outside of context.")}return ut}function ft(t,n){const e=ut;try{return ut=t,n()}finally{ut=e}}const at=Symbol("invalid"),ht=Symbol("backRef"),dt=Symbol("store.target"),$t=Symbol("store.handler"),pt=Symbol("store.all");class yt{o;l=null;u=null;constructor(t,n){this.u=t,this.o=n}get untrackedValue(){return this.o}set untrackedValue(t){this.o=t}get value(){return wt(this,()=>this.l||=new Set,()=>this.untrackedValue)}set value(t){t!==this.o&&(this.o=t,Jr(this.u,this,this.l))}valueOf(){}toString(){return this.constructor.name}toJSON(){return{value:this.o}}}const wt=(t,n,e)=>{const r=vt();if(r){if(null===t.u){if(!r.u)return e();t.u=r.u}const o=r.h;o&&((t,n,e)=>{Qr(e,n),Br(n,t),Hr(n,t.u)})(t,o,n())}return e()};class mt extends yt{$;p;m;v;k=null;R=!1;[ht]=null;constructor(t,n,e,r,o=3){super(t,at),this.$=e,this.p=n,this.m=r,this.v=o}invalidate(){this.v|=1,this.R=!1,this.u?.q(7,this.k,this,this.l)}force(){this.R=!0,this.u?.q(7,this.k,this,this.l)}get untrackedValue(){const t=this.j();return t&&(this.R=t),this.o}j(){if(!(1&this.v))return!1;const t=Nt(()=>this.p(...this.$),this,".",this.u),n=t!==this.o;return n&&(this.o=t),n}set value(t){throw f(31)}get value(){return super.value}}function bt(t,n,e){t[ht]||(t[ht]=new Map);const r=t[ht];let o=r.get(n);return o||(o=[t,n],r.set(n,o)),e&&(o[3]=e),o}let gt;const vt=()=>{if(!gt){const t="undefined"!=typeof document&&document&&document.__q_context__;if(!t)return;return l(t)?document.__q_context__=qt(t):t}return gt},St=()=>{const t=vt();if(!t)throw f(9);return t},kt=()=>{const t=vt();if(!t||t.N!==_)throw f(10);return t};function xt(t){if(null==t)return t;const n=St();return function(...e){return At.call(this,n,t,e)}}function Rt(t,n,...e){return At.call(this,t,n,e)}function At(t,n,e){const r=gt;let o;try{gt=t,o=n.apply(this,e)}finally{gt=r}return o}const qt=([t,n,e])=>{const r=Lr(t),o=bo(r.rootVNode,t),s=r.t;return s&&function(t){ut=t}(s),Pt(s,o,t,n,e)},Pt=(t,n,e,r,o)=>({O:o,M:0,k:n,_:e,N:r,L:void 0,h:void 0,t:t||(r&&i(r)&&"locale"in r?r.locale:void 0),u:void 0}),jt=t=>Rt(void 0,t),It=/*#__PURE__*/Pt(void 0,void 0,void 0,_),Nt=(t,n,e,r,o)=>{const s=It.h,i=It.u;try{return It.h=bt(n,e,o),It.u=r,Rt(It,t)}finally{It.h=s,It.u=i}},Ot=(t,n,e,r,o)=>(t instanceof mt&&t.k!==n&&n&&(t.k=n),Nt(()=>t.value,n,e,r,o)),Ct=()=>{const t=vt();if(t){const n=t.k;let e=null;return null!=n&&(ro(n)?oo(n)&&(e=ds(n)):e=n),e??t.L?.T(void 0)}},Et=()=>{const t=vt();if(t)return t.N},Mt=()=>{const t=vt();if(t)return t.u},_t=t=>t,Ft=t=>{const n=Wr(t);if(!n)return Promise.resolve();const e=n.qContainer;return e?.renderDone??Promise.resolve()},Lt=()=>{const t=kt(),n=t.k;let e=t.u.getHostProp(n,T);null===e&&(e=[],t.u.setHostProp(n,T,e));let r=t.u.getHostProp(n,W);for(null===r&&(r=0),t.u.setHostProp(n,W,r+1);e.length<=r;)e.push(void 0);return{val:e[r],set:t=>e[r]=t,i:r,iCtx:t}},Tt="$",Wt="DOMContentLoaded",Ut=t=>(t.startsWith("on")||t.startsWith("window:on")||t.startsWith("document:on"))&&t.endsWith(Tt),Dt=t=>t.startsWith("on:")||t.startsWith("on-window:")||t.startsWith("on-document:");function Vt(t){if(t.endsWith(Tt)){const[n,e]=Qt(t);if(-1!==e){const e=zt(t);return n+Gt(e)}}return null}function zt(t){if(t.endsWith(Tt)){const[,n]=Qt(t);if(-1!=n)return function(t,n=0){let e=n;const r=Bt(t.charCodeAt(n));r&&e++;let o="";const s=t.substring(e,t.length-1);return s===Wt?Wt:(o+=r?s:s.toLowerCase(),o)}(t,n)}return null}function Qt(t){let n=null,e=-1;return t.startsWith("on")?(n="on:",e=2):t.startsWith("window:on")?(n="on-window:",e=9):t.startsWith("document:on")&&(n="on-document:",e=11),[n,e]}const Bt=t=>45===t,Ht=t=>{const n=t.indexOf(":");return-1!==n?t.substring(0,n):""};function Jt(t){return t.startsWith("preventdefault:")}const Gt=t=>t.replace(/([A-Z-])/g,"-$1").toLowerCase(),Yt=t=>(/^[\w/.-]+$/.test(t),/*#__PURE__*/Object.freeze({id:Gt(t)})),Zt=(t,n)=>{const{val:e,set:r,iCtx:o}=Lt();void 0===e&&(o.u.setContext(o.k,t,n),r(1))},Xt=(t,n)=>{const{val:e,set:r,iCtx:o}=Lt();if(void 0!==e)return e;const s=o.u.resolveContext(o.k,t);if("function"==typeof n)return r(Rt(void 0,n,s));if(void 0!==s)return r(s);if(void 0!==n)return r(n);throw f(8,[t.id])},Kt=/*#__PURE__*/Yt("qk-error"),tn="2.0.0-beta.5-dev+8887f7e",nn=[],en={};Object.freeze(nn),Object.freeze(en);const rn=(t,n,e=nn)=>{let r=null,o=null;if(c(t))o=t;else{if(!u(t))throw f(7,[t]);r=t}return $i(r,n,null,o,null,e)},on=(t,n,e=nn)=>$i(null,n,t,null,null,e),sn=(t,n=nn)=>$i(null,t,null,null,null,n),ln=(t,n,e=nn)=>{const r=sn(t,e);return r.dev=n,r},un=(t,n,e,r=nn)=>{const o=rn(t,n,r);return o.dev=e,o},cn=(t,n,e,r=nn)=>{const o=on(t,n,r);return o.dev=e,o},fn=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t),an=()=>{const t=St();let n=t.L;return n||(n=Lr(Wr(t._)).parseQRL(decodeURIComponent(String(t.O)))),n.W},hn=(...t)=>{const[n]=an(),e=St(),r=e.k;if(!r)return;const o=Lr(e._).q;if(!o)throw f(1);return o(2,r,n,t)},dn=Symbol("CONST"),$n=Symbol("VAR"),pn=Symbol("IMMUTABLE"),yn=Symbol("UNINITIALIZED"),wn=t=>function(n,...e){return t.call(null,vi(n),...e)};class mn extends yt{U;v;R=!1;[ht]=null;constructor(t,n,e=17){super(t,at),this.U=n,this.v=e}invalidate(){this.v|=1,this.R=!1,this.u?.q(7,null,this,this.l)}force(){this.R=!0,this.u?.q(7,null,this,this.l)}get untrackedValue(){const t=this.j();return t&&(this.R=t),this.o}j(){if(!(1&this.v))return!1;const t=this.U;Vr(t);const n=vt(),e=n?.h;n&&(n.h=bt(this,"."));try{const e=t.getFn(n)();if(tt(e))throw f(29,[t.dev?t.dev.file:"",t.D]);this.v&=-2;const r=e!==this.o;return r&&(this.o=e),r}finally{n&&(n.h=e)}}set value(t){throw f(30)}get value(){return super.value}}class bn extends mn{constructor(t,n){super(t,n,17)}B=!1;j(){if(!(1&this.v))return!1;Vr(this.U);let t=this.U.resolved;"function"==typeof t&&(t=t());const{deserialize:n,initial:e}=t,r=t.update,o=this.o===at?e:this.o,s=Nt(()=>this.B?r?.(o)||o:n(o),this,".",this.u),i=this.B&&"undefined"!==s||s!==this.o;return this.v&=-2,this.B=!0,i&&(this.o=s),i}}const gn=t=>t[$t],vn=t=>t?.[dt]||null,Sn=t=>vn(t)||t,kn=t=>dt in t;function xn(t,n,e){return new Proxy(n,new An(e,t||null))}const Rn=(t,n,e)=>{if(s(t)&&e){let r=e.H.get(t);return r||(r=xn(e,t,n),e.H.set(t,r)),r}return t};class An{v;u;l=null;constructor(t,n){this.v=t,this.u=n}toString(){return"[Store]"}get(t,n){if("symbol"==typeof n)return n===dt?t:n===$t?this:t[n];const e=vt(),r=t[n];if(e){if(null===this.u){if(!e.u)return r;this.u=e.u}const o=e.h;o&&qn(t,Array.isArray(t)?pt:n,this,o)}return"toString"===n&&r===Object.prototype.toString?this.toString:1&this.v&&i(r)&&!Object.isFrozen(r)&&!kn(r)&&!Object.isFrozen(t)?Rn(r,this.v,this.u):r}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const r=1&this.v?Sn(e):e;return n in t?r!==t[n]&&Pn(n,r,t,this):Pn(n,r,t,this),!0}deleteProperty(t,n){return"string"==typeof n&&delete t[n]&&(Jr(this.u,this,jn(t,n,this.l)),!0)}has(t,n){if(n===dt)return!0;if("string"==typeof n){const e=vt();if(e){const r=e.h;r&&qn(t,Array.isArray(t)?pt:n,this,r)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=vt(),e=n?.h;return e&&qn(t,pt,this,e),Reflect.ownKeys(t)}getOwnPropertyDescriptor(t,n){const e=Reflect.getOwnPropertyDescriptor(t,n);return Array.isArray(t)||"symbol"==typeof n||e&&!e.configurable?e:{enumerable:!0,configurable:!0}}}function qn(t,n,e,r){const o=e.l||=new Map;let s=o.get(n);s||(s=new Set,o.set(n,s)),Qr(s,r),Br(r,t),Hr(r,e.u)}function Pn(t,n,e,r){e[t]=n,Jr(r.u,r,jn(e,t,r.l))}function jn(t,n,e){let r;if(e)if(Array.isArray(t))for(const t of e.values()){r||=new Set;for(const n of t)r.add(n)}else r=e.get(n);const o=e?.get(pt);if(o){r||=new Set;for(const t of o)r.add(t)}return r||null}const In=(t,n)=>(e,r)=>{const o=Pt();return o.h=bt(t,":"),o.u=n||void 0,Rt(o,()=>{if(c(e))return e();if(r)return e[r];if(zr(e))return e.value;if(i(e)&&kn(e))return qn(vn(e),pt,gn(e),o.h),e;throw f(2)})},Nn=(t,n)=>{let e=null;return[r=>{"function"==typeof r&&(e||(e=[],t.J=fi(()=>{t.J=null,e.forEach(t=>{try{t()}catch(t){n(t)}})})),e.push(r))},e??[]]};class On extends mn{G=!1;Y=null;Z=null;X=null;J;K=at;[ht]=null;constructor(t,n,e=1){super(t,n,e)}get loading(){return wt(this,()=>this.Z||=new Set,()=>this.untrackedLoading)}set untrackedLoading(t){t!==this.G&&(this.G=t,this.u?.q(7,null,this,this.Z))}get untrackedLoading(){return this.G}get error(){return wt(this,()=>this.X||=new Set,()=>this.untrackedError)}set untrackedError(t){t!==this.Y&&(this.Y=t,this.u?.q(7,null,this,this.X))}get untrackedError(){return this.Y}invalidate(){super.invalidate(),this.K=at}j(){if(!(1&this.v))return!1;const t=this.U;Vr(t);const[n]=Nn(this,t=>this.u?.handleError(t,null)),e=this.K===at?t.getFn()({track:In(this,this.u),cleanup:n}):this.K;if(tt(e))throw this.untrackedLoading=!0,this.untrackedError=null,e.then(t=>{this.K=t,this.untrackedLoading=!1,this.untrackedError=null}).catch(t=>{this.K=t,this.untrackedLoading=!1,this.untrackedError=t});this.K=at,this.v&=-2;const r=e!==this.o;return r&&(this.o=e),r}}const Cn=(t,n)=>new mn(n?.container||null,t,Gr(n?.serializationStrategy||"always")),En=(t,n)=>new On(n?.container||null,t,Gr(n?.serializationStrategy||"never")),Mn=t=>new bn(null,t),_n=t=>new yt(null,t),Fn=/*#__PURE__*/wn(Cn),Ln=/*#__PURE__*/wn(En),Tn=wn(Mn),Wn=t=>t.value,Un=(t,n)=>t[n],Dn=t=>new mt(null,1===t.length?Wn:Un,t,null),Vn=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!i(n))return n[e];if(zr(n))return n instanceof mt&&2&n.flags?n:Dn(t);if(Je(n)){const t=n[dn];if(t&&e in t)return t[e]}else{const r=vn(n);if(r){const n=r[e];return zr(n)?n:Dn(t)}}return n[e]},zn=(t,n)=>{const e=Vn(t,n);return e===pn?t[n]:e};class Qn{data;constructor(t){this.data=t}}function Bn(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}const Hn=(t,n,e)=>new mt(null,t,n,e||null);function Jn(t){return!t.startsWith("q:")&&!t.startsWith(":")}const Gn=(t,n,e={})=>{let r=null;const o=t[dn];if(o)for(const t in o)n.includes(t)||(r||={},r[t]=o[t]);const s=e,i=t[$n];for(const t in i)n.includes(t)||(s[t]=i[t]);return nr(s,r)},Yn=t=>We(Ye,null,{[w]:""},t.children,0,t.name??""),Zn=Symbol("skip render"),Xn=()=>null,Kn=()=>null,te=t=>[Qe(Kn,{data:"qkssr-pu"}),t.children,Qe(Kn,{data:"qkssr-po"})],ne=(t,n)=>Qe(Ze,{children:Qe(ee,t)},n),ee=()=>null,re="q:type",oe={V:"Virtual",F:"Fragment",S:"Signal",A:"Awaited",C:"Component",I:"InlineComponent",P:"Projection"},se=t=>$+t;function ie(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&le(n))return!0;return!1}function le(t){return"class"===t||"className"===t}const ue=t=>{if(t){let n=0;do{t=t.substring(0,n)+se(t.substring(n))}while(0!==(n=t.indexOf(" ",n)+1))}return t||null},ce=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexShrink","gridArea","gridRow","gridRowEnd","gridRowStart","gridColumn","gridColumnEnd","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","scale","tabSize","widows","zIndex","zoom","MozAnimationIterationCount","MozBoxFlex","msFlex","msFlexPositive","WebkitAnimationIterationCount","WebkitBoxFlex","WebkitBoxOrdinalGroup","WebkitColumnCount","WebkitColumns","WebkitFlex","WebkitFlexGrow","WebkitFlexShrink","WebkitLineClamp"]),fe=(t,n=0)=>{for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return Number(Math.abs(n)).toString(36)},ae=t=>{if(!t)return"";if(u(t))return t.trim();const n=[];if(l(t))for(const e of t){const t=ae(e);t&&n.push(t)}else for(const[e,r]of Object.entries(t))r&&n.push(e.trim());return n.join(" ")},he=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase();function de(t,n,e){if(le(t)){const t=ae(n);n=e?e+(t.length?" "+t:t):t}else"style"===t?n=(t=>{if(null==t)return"";if("object"==typeof t){if(l(t))throw f(0,[t,"style"]);{const n=[];for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];null!=r&&"function"!=typeof r&&(e.startsWith("--")?n.push(e+":"+r):n.push(he(e)+":"+$e(e,r)))}return n.join(";")}}return String(t)})(n):function(t){return t.startsWith("aria-")||["spellcheck","draggable","contenteditable"].includes(t)}(t)||"number"==typeof n?n=(t=>null!=t?String(t):null)(n):!1===n||null==n?n=null:!0===n&&Jt(t)&&(n="");return n}const $e=(t,n)=>"number"!=typeof n||0===n||ce.has(t)?n:n+"px";class pe{[ht]=null}function ye(t,n){ro(n)&&oo(n)&&_o(n);const e=n[ht];if(e)for(const[,n]of e){const e=n[2];if(!e)return;for(const r of e)if(r instanceof yt)we(t,r,n);else if(r instanceof On)me(r,n);else if(t.H.has(r)){const e=t.H.get(r);be(gn(e),n)}}}function we(t,n,e){const r=n.l;r&&r.delete(e),n instanceof mt&&(n.k=null,ye(t,n))}function me(t,n){const e=t.l;e&&e.delete(n);const r=t.Z;r&&r.delete(n)}function be(t,n){const e=t?.l;if(e)for(const t of e.values())t.delete(n)}const ge=(t,n,e,r,o)=>{const s=Pt(t.t,e||void 0,void 0,_);let i;e&&(s.h=bt(e,":"),s.u=t),t.ensureProjectionResolved(n);let l=!1;if(null===r&&(r=t.getHostProp(n,d)),h(r))(o=o||t.getHostProp(n,L)||en).children&&delete o.children,i=r.getFn(s);else if(qi(r)){const t=r;i=()=>At(s,t,[o||en,null,0])}else{l=!0;const t=r;i=()=>At(s,t,[o||en])}const u=(e=0)=>nt(()=>(l||(t.setHostProp(n,W,null),t.setHostProp(n,D,null)),ro(n)&&ye(t,n),i(o)),e=>{const r=t.getHostProp(n,U);return r?function(t,n){const e=Se(t);let r=t;return et(e,t=>{let e=!1;t||(e=!0);for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(e){if("onQvisible$"===o){const[t,e]=ke(r);r=e,t&&ve(t,"document:onQinit$",n[o])}else if(o.startsWith("document:")||o.startsWith("window:")){const[t,e]=ke(r);r=e,t&&ve(t,o,n[o])}}else t&&ve(t,o,n[o]);return r})}(e,r):e},t=>{if(tt(t)&&e<100)return t.then(()=>u(++e));if(e>=100)throw new Error("Max retry count of component execution reached");throw t});return u()};function ve(t,n,e){let r=t.props;r===en&&(r=t.props={});let o=r[n];void 0===o?o=[]:Array.isArray(o)||(o=[o]),o.push(...e),r[n]=o}function Se(t){const n=[t];for(;n.length;){const t=n.shift();if(Xe(t)){if("string"==typeof t.type)return t;n.push(t.children)}else if(Array.isArray(t))n.push(...t);else{if(tt(t))return et(t,t=>Se(t));if(zr(t))return Se(jt(()=>t.value))}}return null}function ke(t){if(Xe(t)){const n=new Ge("script",{},{type:"placeholder",hidden:""},null,3);return t.type===Yn?[n,We(Ke,null,null,[t,n],0,null)]:(null==t.children?t.children=n:Array.isArray(t.children)?t.children.push(n):t.children=[t.children,n],[n,t])}if(Array.isArray(t)&&t.length){const[n,e]=ke(t[0]);return[n,t]}return[null,null]}class xe{tt;nt;constructor(t,n){this.tt=t,this.nt=n}}class Re{}async function Ae(t,n,e){const r=[n],o=t=>r.push(t);await(async()=>{for(;r.length;){const n=r.pop();if(n instanceof xe)e.currentStyleScoped=n.tt,e.parentComponentFrame=n.nt;else{if(n===Re){const t=r.pop();await st(()=>r.push(t()));continue}if("function"!=typeof n)qe(t,o,n,{styleScoped:e.currentStyleScoped,parentComponentFrame:e.parentComponentFrame});else{if(n===Promise){r.push(await r.pop());continue}await n.apply(t)}}}})()}function qe(t,n,e,r){if(null==e)t.textNode("");else if("boolean"==typeof e)t.textNode("");else if("number"==typeof e)t.textNode(String(e));else if("string"==typeof e)t.textNode(e);else if("object"==typeof e)if(Array.isArray(e))for(let t=e.length-1;t>=0;t--)n(e[t]);else if(zr(e)){t.openFragment(nn);const r=t.getOrCreateLastNode();n(t.closeFragment),n(()=>Ot(e,r,".",t)),n(Re)}else if(tt(e))t.openFragment(nn),n(t.closeFragment),n(e),n(Promise),n(()=>t.commentNode(z));else if(function(t){return!!t[Symbol.asyncIterator]}(e))n(async()=>{for await(const n of e)await Ae(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(z)});else{const o=e,s=o.type;if("string"==typeof s){!function(t,n){null==rr(t,"class")&&n&&(t.constProps||(t.constProps={}),t.constProps.class="")}(o,r.styleScoped);let e=null;const i=t.openElement(s,Pe(o.varProps,o.constProps,t.serializationCtx,!0,r.styleScoped,o.key),Pe(o.constProps,o.varProps,t.serializationCtx,!1,r.styleScoped),e);i&&t.htmlNode(i),n(t.closeElement),"head"===s?(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),n(t.additionalHeadNodes)):"body"===s?n(t.additionalBodyNodes):t.isHtml||t._didAddQwikLoader||(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),t._didAddQwikLoader=!0);const l=o.children;null!=l&&n(l)}else if(c(s))if(s===Ke){t.openFragment(null!=o.key?[F,o.key]:nn),n(t.closeFragment);const e=o.children;null!=e&&n(e)}else if(s===Yn){const e=r.parentComponentFrame||t.unclaimedProjectionComponentFrameQueue.shift();if(e){const s=[];s.push(y,e.componentNode.id||""),t.openProjection(s);const i=e.componentNode,l=t.getOrCreateLastNode(),u=function(t,n,e){const r=n.constProps;if(r&&"object"==typeof r&&"name"in r){const n=r.name;if(n instanceof mt)return Ot(n,t,":",e)}return rr(n,"name")||""}(i,o,t);s.push(p,u),n(new xe(r.styleScoped,r.parentComponentFrame)),n(t.closeProjection);const c=o.children||null,f=e.consumeChildrenForSlot(l,u)||c;c&&f!==c&&t.addUnclaimedProjection(e,"",c),n(f),n(new xe(e.projectionScopedStyle,e.projectionComponentFrame))}else t.openFragment(nn),t.closeFragment()}else if(s===Kn)t.commentNode(rr(o,"data")||"");else if(s===ne){t.commentNode(z);const e=o.children;let s;s=c(e)?e({async write(n){await Ae(t,n,{currentStyleScoped:r.styleScoped,parentComponentFrame:r.parentComponentFrame}),t.commentNode(z)}}):e,n(s),tt(s)&&n(Promise)}else if(s===Xn)t.htmlNode(rr(o,"data"));else if(qi(s)){t.openComponent([]);const e=t.getOrCreateLastNode(),i=t.getParentComponentFrame();i.distributeChildrenIntoSlots(o.children,r.styleScoped,r.parentComponentFrame);const l=((t,n,e)=>{const r=t.getOrCreateLastNode(),[o]=e[Ai],s=n.props;s&&s.children&&delete s.children;const i=t.q;return r.setProp(d,o),r.setProp(L,s),null!==n.key&&r.setProp(F,n.key),i(6,r,o,s)})(t,o,s),u=ue(e.getProp(v));n(new xe(r.styleScoped,r.parentComponentFrame)),n(t.closeComponent),n(l),tt(l)&&n(Promise),n(new xe(u,i))}else{t.openFragment([F,o.key]),n(t.closeFragment);const e=t.getComponentFrame(0),r=((t,n,e,r)=>{const o=t.getOrCreateLastNode();return ge(t,o,n,e,r.props)})(t,e&&e.componentNode,s,o);n(r),tt(r)&&n(Promise)}}}function Pe(t,n,e,r,o,s){if(null==t)return null;const i=[];for(const s in t){let l=t[s];if(Ut(s)){if(n){const t=Ie(n,s);if(t){if(!r)continue;l=je(l,t)}}const t=Ne(e,s,l);t&&i.push(Vt(s),t);continue}zr(l)?le(s)?i.push(s,[l,o]):i.push(s,l):(Jt(s)&&Ce(e,s),l=de(s,l,o),i.push(s,l))}return null!=s&&i.push(F,s),i}function je(t,n){let e=t;return Array.isArray(t)&&Array.isArray(n)?e=t.concat(n):Array.isArray(e)?e.push(n):Array.isArray(n)?(e=n,e.push(t)):e=[t,n],e}function Ie(t,n){const e=n.toLowerCase();for(const n in t)if(n.toLowerCase()===e)return t[n];return null}function Ne(t,n,e){let r=null;const o=e,s=t=>{r=(null==r?"":r+"\n")+t},i=n=>(n.et.startsWith("_")||!n.W&&!n.rt||(n=$i(null,"_run",hn,null,null,[n])),Vs(t,n));if(Array.isArray(o))for(let e=0;e<=o.length;e++){const r=o[e];if(h(r))s(i(r)),Oe(t,n,r);else if(null!=r){const e=Ne(t,n,r);e&&s(e)}}else h(o)&&(r=i(o),Oe(t,n,o));return r}function Oe(t,n,e){const r=zt(n);r&&(t.ot.add(r),t.st.add(e))}function Ce(t,n){const e=n.substring(15);e&&t.ot.add(e)}const Ee=t=>{const{val:n,set:e,iCtx:r,i:o}=Lt();if(n)return;e(1);const s=new Fe(10,o,r.k,t,void 0,null);e(s);const i=r.u.q(3,s);tt(i)&&i.catch(()=>{})},Me=(t,n,e)=>{t.v&=-9,_e(t);const r=Pt(n.t,e,void 0,"qTask");r.u=n;const o=t.L.getFn(r,()=>ye(n,t)),s=In(t,n),[i]=Nn(t,t=>n.handleError(t,e)),l={track:s,cleanup:i};return nt(()=>o(l),i,r=>{if(tt(r))return r.then(()=>Me(t,n,e));throw r})},_e=t=>{const n=t.J;if(n){t.J=null;try{n()}catch(t){o(!1,t)}}};class Fe extends pe{v;it;lt;L;ut;J;constructor(t,n,e,r,o,s){super(),this.v=t,this.it=n,this.lt=e,this.L=r,this.ut=o,this.J=s}}const Le=t=>t instanceof Fe,Te=(t,n)=>{const[e]=an(),r=1&e.v?32:3;Lr(n).q(r,e)},We=(t,n,e,r,o,s)=>{const i=null==s?null:String(s);return new Ge(t,n||{},e||null,r,o,i)},Ue=(t,n,e,r,o,s,i)=>{let l;return l=n?Object.fromEntries(jt(()=>Object.entries(n)).filter(t=>{const n=t[0];return"children"===n?(r??=t[1],!1):"key"===n?(s=t[1],!1):!e||!(n in e)||/^on[A-Z].*\$$/.test(n)}).sort(([t],[n])=>t<n?-1:1)):"string"==typeof t?en:{},e&&"children"in e&&(r=e.children,e.children=void 0),We(t,l,e,r,o,s,i)},De=(t,n,e,r)=>Qe(t,n,r),Ve=(t,n,e,r,o)=>Qe(t,{...e,...n},o),ze=(t,n,e,r,o,s)=>Qe(t,{...e,...n,children:r},s),Qe=(t,n,e)=>Ue(t,n,null,null,0,e||null),Be=(t,n)=>{n||(n=[]);for(const e of t)l(e)?Be(e,n):n.push(e);return n};function He(t,n,...e){const r={children:arguments.length>2?Be(e):null};let o=null;for(const t in n)"key"==t?o=n[t]:r[t]=n[t];return"string"==typeof t&&!o&&"dangerouslySetInnerHTML"in r&&(o="innerhtml"),Ue(t,n,null,r.children,0,o)}const Je=t=>t&&void 0!==t[$n];class Ge{type;varProps;constProps;children;flags;key;dev;constructor(t,n,e,r,o,s=null){this.type=t,this.varProps=n,this.constProps=e,this.children=r,this.flags=o,this.key=s}_proxy=null;get props(){return this._proxy||(this._proxy=nr(this.varProps,this.constProps,this.children)),this._proxy}}const Ye=t=>t.children,Ze=(t,n)=>new Ge(Ye,en,null,t.children,2,n),Xe=t=>t instanceof Ge,Ke=t=>t.children,tr=(t,n,e,r,o)=>{const s=null==e?null:String(e),i=jt(()=>{const e=n.children;return"string"==typeof t&&delete n.children,e});u(t)&&"className"in n&&(n.class=n.className,delete n.className);const l=new Ge(t,n,null,i,0,s);return l.dev={stack:(new Error).stack,...o},l};function nr(t,n,e){return new Proxy({},new er(t,n,e))}class er{ct;ft;ht;constructor(t,n,e){this.ct=t,this.ft=n,this.ht=e}get(t,n){if(n===dn)return this.ft;if(n===$n)return this.ct;if(null!=this.ht&&"children"===n)return this.ht;const e=this.ft&&n in this.ft?this.ft[n]:this.ct[n];return e instanceof mt&&2&e.v?e.value:e}set(t,n,e){return n===dn?(this.ft=e,!0):n===$n?(this.ct=e,!0):(this.ft&&n in this.ft?this.ft[n]=e:this.ct[n]=e,!0)}deleteProperty(t,n){if("string"!=typeof n)return!1;let e=delete this.ct[n];return this.ft&&(e=delete this.ft[n]||e),null!=this.ht&&"children"===n&&(this.ht=null),e}has(t,n){return"children"===n&&null!=this.ht||n===dn||n===$n||n in this.ct||!!this.ft&&n in this.ft}getOwnPropertyDescriptor(t,n){return{configurable:!0,enumerable:!0,value:"children"===n&&null!=this.ht?this.ht:this.ft&&n in this.ft?this.ft[n]:this.ct[n]}}ownKeys(){const t=Object.keys(this.ct);if(null!=this.ht&&-1===t.indexOf("children")&&t.push("children"),this.ft)for(const n in this.ft)-1===t.indexOf(n)&&t.push(n);return t}}const rr=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],or=(t,n,e)=>{let r=e>>1,o=t.length-2>>1;for(;r<=o;){const e=r+(o-r>>1),s=t[e<<1];if(s===n)return e<<1;s<n?r=e+1:o=e-1}return~(r<<1)},sr=(t,n,e,r)=>{const o=or(t,n,r);o>=0?null==e?t.splice(o,2):t[o+1]=e:null!=e&&t.splice(-1^o,0,n,e)},ir=(t,n,e)=>{const r=or(t,n,e);return r>=0?t[r+1]:null},lr=t=>"foreignObject"===t;function ur(t,n,e){const r=t.ownerDocument.createElementNS(e,n),o=t.attributes;for(const t of o){const n=t.name;n&&n!==Q&&r.setAttribute(n,t.value)}return r}function cr(t,n,e,r){ao(t);let o=t,s=null,i=null,l=null;for(;o;){let u=null,c=null;if(oo(o)){u=o[6];const t=Oo(o),s=hs(o),f=null==i?n:s&&jo(s);if(f){const t=fr(f,Oo(o));e=t.elementNamespace,r=t.elementNamespaceFlag}c=ur(u,t,e),u.remove(),null==i&&(i=c),l&&l.appendChild(c);const a=Mo(o);if(o[6]=c,o[0]&=-193,o[0]|=r,a){o=a,l=c;continue}if(Lo(u)){const t=Tr(u);if(t){const n=Mo(t.rootVNode);if(n){o=n,l=c;continue}}}}if(o===t)return i;const f=os(o);if(f)o=f;else{for(s=hs(o);s;){if(s===t)return i;const n=os(s);if(n)return o=n,i;s=hs(s)}if(null==s)return i}}return i}function fr(t,n){const e=!t||!(!Oo(t)||(r=t,192&r[0]));var r;const o=!e&&lr(Oo(t));let s=C,i=0;const l="string"==typeof n||oo(n);return l&&function(t){return"string"==typeof t?"svg"===(n=t)||lr(n):!!(64&t[0]);var n}(n)?(s=E,i=64):l&&function(t){return"string"==typeof t?"math"===t:!!(128&t[0])}(n)?(s=M,i=128):!t||o||e||(s=64&t[0]?E:128&t[0]?M:C,i=192&t[0]),{elementNamespace:s,elementNamespaceFlag:i}}function ar(t){let n="";const e=t.length;let r=0,o=r;for(;r<e;r++){const e=t.charCodeAt(r);if(60===e)n+=t.substring(o,r)+"&lt;";else if(62===e)n+=t.substring(o,r)+"&gt;";else if(38===e)n+=t.substring(o,r)+"&amp;";else if(34===e)n+=t.substring(o,r)+"&quot;";else{if(39!==e)continue;n+=t.substring(o,r)+"&#39;"}o=r+1}return 0===o?t:n+t.substring(o)}const hr=(t,n,e,r)=>{let o=t.dt;const s=[],i=[];let l=null,u=null,c=null,a=null,h=null,$=null,w=null,m=0,b=0,g=!0;return v(n,e),function t(){for(;i.length;){const n=i.shift(),e=i.shift();if(tt(n))return n.then(n=>(v(n,e),t()));v(n,e)}}();function v(n,e){for(ro(n),ro(e),l=e,c=null,u=Mo(e),P(n,!0);s.length;){for(;m<b;){if(lt(),"string"==typeof w)z(w);else if("number"==typeof w)z(String(w));else if(w&&"object"==typeof w){if(Array.isArray(w))A(w,!1);else if(zr(w))u&&ye(t,u),W("S",null),A(Ot(w,c||u,".",t),!0);else if(tt(w))W("A",null),i.push(w,c||u);else if(Xe(w)){const t=w.type;"string"==typeof t?(E(),M(w,t),A(w.children,!0)):"function"==typeof t&&(t===Ke?(E(),W("F",w.key),A(w.children,!0)):t===Yn?(E(),O()||A(w.children,!0)):t===pr?(I(),A(w.children,!0)):t===Kn||t===Xn?C():(E(),U(t)))}}else w===Zn?o=[]:z("");S()}C(),q()}}function S(){if(g){if(m++,m<b)w=$[m];else if(!1===s[s.length-1])return q();null!==c?c=null:R()}else g=!0}function x(){return u?os(u):null}function R(){u=x()}function A(n,e){null!=n?(P(n,e),e&&(a=null,h=null,l=c||u,u=Mo(l),c=null),g=!1):function(){const n=u&&Mo(u);if(null!==n){let e=n;for(;e;)mr(t,e),e=os(e);No(o,u,n)}}()}function q(){s.pop()&&(a=s.pop(),h=s.pop(),c=s.pop(),u=s.pop(),l=s.pop()),w=s.pop(),b=s.pop(),m=s.pop(),$=s.pop(),S()}function P(t,n){s.push($,m,b,w),n&&s.push(l,u,c,h,a),s.push(n),Array.isArray(t)?(m=0,b=t.length,$=t,w=b>0?t[0]:null):void 0===t?(m=0,w=null,$=null,b=0):(m=0,w=t,$=null,b=1)}function j(){return c?u:x()}function I(){const n=w.key;u=cs(l,n,n=>bo(t.rootVNode,n)),u=u&&32&u[0]?null:u,null==u&&(c=eo(),fs(c,p,n),fs(c,y,l),fs(l,n,c))}function O(){const n=gs(l,t.rootVNode),e=function(n){const e=w,r=e.constProps;if(r&&"object"==typeof r&&"name"in r){const e=r.name;if(n&&e instanceof mt)return Ot(e,n,":",t)}return rr(e,"name")||""}(n),r=n?cs(n,e,null):null;return null==r?(qo(o,l,c=eo(),u&&j()),fs(c,p,e),n&&fs(n,e,c),!1):(r===u||(qo(o,l,c=r,u&&j()),fs(c,p,e),n&&fs(n,e,c)),!0)}function C(){if(null!==u)for(;u;){const n=u;R(),l===hs(n)&&(mr(t,n),Io(o,l,n,!0))}}function E(){for(;null!==u&&io(u);){mr(t,u);const n=u;R(),Io(o,l,n,!0)}}function M(n,e){const s=u&&oo(u)&&e===Oo(u),i=n.key;let a=!1;const h=function(t){if(!t)return null;const n=t.fileName?.replace(/\\/g,"/");return n?`${n}:${t.lineNumber}:${t.columnNumber}`:null}(n.dev);s&&i===dr(u)||(c=T(e,i),null===c?a=function(n,e){const s=function(n){const e=jo(l),{elementNamespace:r,elementNamespaceFlag:o}=fr(e,n),s=t.document.createElementNS(r,n);return c=Kr(s,n),c[0]|=o,s}(e),{constProps:i}=n;let a=!1;if(i)for(const n in i){let l=i[n];if(Ut(n)){const t=zt(n),e=Ht(n);if(t&&(fs(c,vr+":"+e+":"+t,l),_(t)),e){const t=Vt(n);t&&ls(o,c,t,"")}a=!0;continue}if("ref"===n){if(zr(l)){l.value=s;continue}if("function"==typeof l){l(s);continue}if(null==l)continue;throw f(15,[undefined])}if(zr(l)){const e=new Qn({$t:r,yt:!0});l=Ot(l,c,n,t,e)}if(n!==B)if("textarea"!==e||"value"!==n)l=de(n,l,r),null!=l&&s.setAttribute(n,String(l));else{if(l&&"string"!=typeof l)continue;s.value=ar(l||"")}else s.innerHTML=l,s.setAttribute(N,"html")}const h=n.key;return h&&(s.setAttribute(F,h),fs(c,F,h)),!(ie(n.varProps)||n.constProps&&ie(n.constProps))&&r&&s.setAttribute("class",r),qo(o,l,c,u),a}(n,e):(qo(o,l,c,u),u=c,c=null));const d=[],$=n.varProps;for(const t in $){const n=$[t];null!=n&&sr(d,t,n,0)}null!==i&&sr(d,F,i,0);const p=c||u,y=p[6];y.vNode=new WeakRef(p),a=function(n,e,s){$o(n);const i=as(n);let l=0;const u=e.length;let c=0,a=i.length,h=l<u?e[l++]:null,d=c<a?i[c++]:null,$=!1;const p=(e,l)=>{if(e.startsWith(":"))fs(n,e,l);else{if("ref"===e){const t=ds(n);if(zr(l))return void(l.value=t);if("function"==typeof l)return void l(t);throw f(15,[s])}if(zr(l)){const o=new Qn({$t:r,yt:!1});l=Ot(l,n,e,t,o)}ls(o,n,e,null!==l?de(e,l,r):null),null===l&&(a=i.length)}},y=(t,n)=>{const e=zt(t),r=Ht(t);if(e&&(p(":"+r+":"+e,n),_(e)),r){const n=Vt(t);n&&p(n,"")}};for(;null!==h||null!==d;)if(d?.startsWith(vr)||d?.startsWith("q:"))c++,d=c<a?i[c++]:null;else if(null==h)d&&Dt(d)?c++:(p(d,null),c--),d=c<a?i[c++]:null;else if(null==d)Ut(h)?($=!0,y(h,e[l])):p(h,e[l]),l++,h=l<u?e[l++]:null,c++,d=c<a?i[c++]:null;else if(h==d){const t=e[l++];t!==i[c++]&&p(d,t),h=l<u?e[l++]:null,d=c<a?i[c++]:null}else h<d?(Ut(h)?($=!0,y(h,e[l])):p(h,e[l]),l++,h=l<u?e[l++]:null,c++,a=i.length,d=c<a?i[c++]:null):(Dt(d)?($=!0,c++):(p(d,null),c--),d=c<a?i[c++]:null);return $}(p,d,h)||a,a&&(y.qDispatchEvent||(y.qDispatchEvent=(n,e)=>{const r=n.type,o=":"+e.substring(1)+":"+r,s=[cs(p,o,null),cs(p,vr+o,null)];let i=!1;return s.flat(2).forEach(e=>{if(e){const r=t.q(2,p,e,[n,y]);i=i||!0===r}}),i}))}function _(n){const e=t.document.defaultView;e&&(e.qwikevents||=[]).push(n)}function T(n,e){let r=null;if(null===a){a=new Map,h=[];let o=u;for(;o;){const s=oo(o)?Oo(o):null,i=dr(o)||$r(o,t.wt);null===r&&i==e&&s==n?r=o:null===i?h.push(s,o):a.set(s+":"+i,o),o=os(o)}}else if(null===e){for(let t=0;t<h.length;t+=2)if(h[t]===n){r=h[t+1],h.splice(t,2);break}}else{const t=a.get(n+":"+e);t&&(r=t,a.delete(n+":"+e))}return r}function W(t,n){const e="F"===t;u&&lo(u)&&dr(u)===n&&(!e||n)||(null===n||(c=T(null,n),null==c)?(qo(o,l,c=eo(),u&&j()),fs(c,F,n)):qo(o,l,c,u&&j()))}function U(n){const e=n[Ai];let r=c||u;const s=w;if(e){const n=s.props;let i=!1;const[f]=e,a=f.D,h=$r(r,t.wt),$=s.key||a;if($===(dr(r)||h)?a===h&&s.key||(D(r,f,n),r=c,i=!0):(c=T(null,$),c?qo(o,l,c,u):(D(r,f,n),i=!0),r=c),r){let e=cs(r,L,t.wt);const o=function(t,n){const e=yr(t),r=yr(n);if(e&&r)return!1;if(e||r)return!0;let o=wr(Object.keys(t),["children",k]),s=wr(Object.keys(n),["children",k]);if(o.length!==s.length)return!0;o=o.sort(),s=s.sort();for(let e=0;e<o.length;e++){const r=o[e],i=s[e];if(r!==i||t[r]!==n[i])return!0}return!1}(n,e);i=i||o,i&&(o&&(e?(e[dn]=n[dn],e[$n]=n[$n]):n&&(fs(r,L,n),e=n)),fs(r,d,f),r[0]&=-33,t.q(6,r,f,e))}!function(t,n){const e=Array.isArray(t)?t:[t],r=t=>new Ge(pr,en,null,[],0,t),o=[];if(n){const t=as(n);for(let n=0;n<t.length;n+=2){const e=t[n];if(Jn(e)){const t=e;o.push(t),o.push(r(t))}}}if(0!==o.length||null!=t){for(let t=0;t<e.length;t++){const n=e[t],s=String(Xe(n)&&rr(n,p)||""),i=or(o,s,0);let l;i>=0?l=o[i+1]:o.splice(~i,0,s,l=r(s)),!1===n||l.children.push(n)}for(let t=o.length-2;t>=0;t-=2)o.splice(t,1);A(o,!0)}}(s.children,r)}else{const e=s.key,f=e===dr(r),a=$r(r,t.wt);if(f?null!=a&&(V(),r=c):(c=T(null,e),c?qo(o,l,c,u):V(),r=c),r){let e=r;for(;e&&(!lo(e)||null===cs(e,d,null));)e=hs(e);const o=ge(t,r,e||t.rootVNode,n,s.props);i.push(o,r)}}}function D(n,e,r){n&&ye(t,n),qo(o,l,c=eo(),u&&j());const s=w;t.setHostProp(c,d,e),t.setHostProp(c,L,r),t.setHostProp(c,F,s.key)}function V(){qo(o,l,c=eo(),u&&j());const t=w;fs(c,L,t.props),t.key&&fs(c,F,t.key)}function z(n){if(null!==u&&3===ms(u))return n!==Co(u)?void Eo(o,u,n):void 0;qo(o,l,c=no(t.document.createTextNode(n),n),u)}};function dr(t){return null==t?null:cs(t,F,null)}function $r(t,n){if(null==t)return null;const e=cs(t,d,n);return e?e.D:null}function pr(){}function yr(t){return!t||0===Object.keys(t).length}function wr(t,n){for(let e=n.length-1;e>=0;e--){const r=t.indexOf(n[e]);-1!==r&&t.splice(r,1)}return t}function mr(t,n){let e=n;if(io(n))return void gr(e);let r=null;for(;;){const o=e[0];if(3&o){if(ye(t,e),gr(e),2&o){const n=t.getHostProp(e,T);if(n)for(let e=0;e<n.length;e++){const r=n[e];if(Le(r)){const n=r;ye(t,n),1&n.v?t.q(48,n):_e(n)}}}if(2&o&&null!==cs(e,d,null)){const n=as(e);for(let e=0;e<n.length;e+=2)if(Jn(n[e])){const r=n[e+1];if(r){n[e+1]=null;const o="string"==typeof r?bo(t.rootVNode,r):r;let s=Mo(o);for(;s;)mr(t,s),s=os(s);br(t.dt,o)}}}if(uo(e)){if(e===n){const t=Mo(e);if(t)return void po(t)}}else{const t=Mo(e);if(t){e=t;continue}}}else 4&o&&gr(e);if(e===n)return;const s=os(e);if(s)e=s;else{for(r=hs(e);r;){if(r===n)return;const t=os(r);if(t){e=t;break}r=hs(r)}if(null==r)return}}}function br(t,n){const e=hs(n);e&&1&e[0]&&"q:template"===Oo(e)&&Io(t,e,n,!0)}function gr(t){t[0]|=32}const vr=":",Sr=(t,n)=>{const{val:e,set:r,i:o,iCtx:s}=Lt();if(null!=e)return e;const i=s.u,l=xr(i,n),u=new Fe(12,o,s.k,t,l,null);return i.q(3,u),r(l),l},kr=t=>We(Ke,null,null,function(t){const n=t.value;if(Rr(n)){{const e=n._state;if("pending"===e&&t.onPending)return Promise.resolve().then(xt(t.onPending));if("rejected"===e&&t.onRejected)return Promise.resolve(n._error).then(xt(t.onRejected));{const e=jt(()=>n._resolved);if(void 0!==e)return Promise.resolve(e).then(xt(t.onResolved))}}const e=n.value;return e?e.then(xt(t.onResolved),xt(t.onRejected)):Promise.resolve(void 0)}if(tt(n))return n.then(xt(t.onResolved),xt(t.onRejected));if(zr(n)){const e=st(()=>n.value);return(tt(e)?e:Promise.resolve(e)).then(xt(t.onResolved))}return Promise.resolve(n).then(xt(t.onResolved))}(t),0,null),xr=(t,n,e)=>{const r=(t=>({__brand:"resource",value:void 0,loading:!0,_resolved:void 0,_error:void 0,_state:"pending",_timeout:t?.timeout??-1,_cache:0}))(n);return r.value=e,xn(t,r,1)},Rr=t=>i(t)&&"resource"===(vn(t)||t).__brand,Ar=(t,n,e)=>{t.v&=-9,_e(t);const r=Pt(n.t,e,void 0,"qResource");r.u=n;const o=t.L.getFn(r,()=>ye(n,t)),s=t.ut,i=In(t,n),[l,u]=Nn(t,t=>n.handleError(t,e)),c=Sn(s),f={track:i,cleanup:l,cache(t){let n=0;n="immutable"===t?1/0:t,s._cache=n},previous:c._resolved};let a,h,d=!1;const $=(t,n)=>!d&&(d=!0,t?(d=!0,s.loading=!1,s._state="resolved",s._resolved=n,s._error=void 0,a(n)):(d=!0,s.loading=!1,s._state="rejected",s._error=n,h(n)),!0);u.push(()=>{if(!0===jt(()=>s.loading)){const t=jt(()=>s._resolved);$(!0,t)}}),Rt(r,()=>{s._state="pending",s.loading=!0,(s.value=new Promise((t,n)=>{a=t,h=n})).catch(qr)});const p=nt(()=>Promise.resolve(o(f)),t=>{$(!0,t)},r=>{if(tt(r))return r.then(()=>Ar(t,n,e));$(!1,r)}),y=c._timeout;return y>0?Promise.race([p,ot(y).then(()=>{$(!1,new Error("timeout"))&&_e(t)})]):p},qr=()=>{},Pr=[],jr=[],Ir=[],Nr=[],Or=t=>t.bt||=new Promise(n=>{t.gt=n}),Cr=(t,n,e)=>{const r=[],o=[];let s=null,i=!1;return function e(o,s=null,u=null,f=null){const a=!Ur(t),h=255!==o&&!(a&&6===o)&&2!==o,d=3===o||32===o||48===o;if(a&&(16===o||4===o||5===o||1===o||7===o))return;d&&(s.v|=8);let $={vt:o,St:d?s.it:"string"==typeof u?u:0,kt:d?s.lt:s,xt:u,Rt:d?s:f,gt:null,bt:null,At:null,qt:!1};return $=function(t,n,e){const r=function(t,n,e){let r=0,o=t.length;for(;r<o;){const s=r+(o-r>>1),i=c(n,t[s],e);if(i<0)o=s;else{if(!(i>0))return s;r=s+1}}return~r}(t,n,e);if(r<0)return t.splice(~r,0,n),n;const o=t[r];return o.Rt!==n.Rt&&(o.Rt=n.Rt),o.qt&&(o.qt=!1),o}(r,$,t.rootVNode||null),!i&&h&&(i=!0,e(16),n()?.catch?.(()=>{})),h?Or($):l($,a)};function l(n,e){let o=5e3;for(;r.length;){if(o--<0)throw new Error("drainUpTo: max retries reached");if(s)return Or(s).then(()=>l(n,e)).catch(n=>{t.handleError(n,s?.kt)});const i=r[0];if(i.qt){if(r.shift(),i===n)break}else Mr(i)&&48!==i.vt?r.shift():u(i,e)}return n.At}function u(n,r){const l=n.kt;s=n;let u=null;try{switch(n.vt){case 255:r&&(i=!1);break;case 16:u=e(),i=!1;break;case 6:u=nt(()=>ge(t,l,l,n.xt,n.Rt),n=>{if(r)return n;{const e=t.getHostProp(l,v);return st(()=>hr(t,n,l,ue(e)))}},n=>t.handleError(n,l));break;case 2:{const e=n.xt.getFn(),r=st(()=>e(...n.Rt));if(tt(r)){const e=r.finally(()=>{o.splice(o.indexOf(e),1)}).catch(e=>{t.handleError(e,n.kt)});return o.push(e),n.At=e,n.gt?.(e),s=null,void(n.qt=!0)}u=null}break;case 3:case 32:{const e=n.Rt;if(4&e.v){const n=Ar(e,t,l);u=r?n:null}else u=Me(e,t,l)}break;case 48:_e(n.Rt);break;case 4:{const e=n.xt;let r=n.Rt;zr(r)&&(r=r.value),u=st(()=>hr(t,r,e,null))}break;case 5:{const e=n.kt,r=n.Rt;let o=r.Pt;zr(o)&&(o=o.value);const s=r.yt,i=t.dt,l=n.St,u=de(l,o,r.$t);s?i.push(2,e[6],l,u):ls(i,e,l,u)}break;case 1:{const t=n.xt;u=t.resolved?null:t.resolve()}break;case 7:{const e=n.xt,r=n.Rt,o=Pt();if(o.u=t,e instanceof mn||e instanceof mt){const n=e.R;if(e.R=!1,!r?.size&&!n)break;u=et(st(()=>Rt.call(e,o,e.j)),o=>{if(o||n)return st(()=>Jr(t,e,r))})}else u=st(()=>Jr(t,e,r))}}}catch(t){u=Promise.reject(t)}const c=(e,r)=>{s=null,n.qt=!0,r?t.handleError(r,l):(n.At=e,n.gt?.(e))};tt(u)?(n.bt=u.then(c,t=>c(void 0,t)),n.gt?.(n.bt),n.gt=void 0):c(u)}function c(t,n,e){const r=(240&t.vt)-(240&n.vt);if(0!==r)return r;const o=t.kt,i=n.kt;if(o!==i&&null!==o&&null!==i)if(ro(o)&&ro(i)){const t=((t,n,e)=>{if(t===n)return 0;let r=-1,o=-1;for(;t;)t=(Pr[++r]=t)[1]||e&&cs(t,y,t=>bo(e,t));for(;n;)n=(jr[++o]=n)[1]||e&&cs(n,y,t=>bo(e,t));for(;r>=0&&o>=0;){if((t=Pr[r])!==(n=jr[o])){let r=n;do{if(r=os(r),r===t)return 1}while(r);r=n;do{if(r=ss(r),r===t)return-1}while(r);return e&&cs(n,y,t=>bo(e,t))?-1:1}r--,o--}return r<o?-1:1})(o,i,e);if(0!==t)return t}else{ro(o),ro(i),o.toString();const t=((t,n)=>{if(t===n)return 0;let e=-1,r=-1;for(;t;)t=(Ir[++e]=t).parentSsrNode;for(;n;)n=(Nr[++r]=n).parentSsrNode;for(;e>=0&&r>=0;){if((t=Ir[e])!==(n=Nr[r]))return 1;e--,r--}return e<r?-1:1})(o,i);if(0!==t)return t}const l=(15&t.vt)-(15&n.vt);if(0!==l)return l;const u=Er(t.St)-Er(n.St);return 0!==u?u:t.xt!==n.xt?h(t.xt)&&h(n.xt)&&t.xt.D===n.xt.D?0:1:n===s?1:0}},Er=t=>"number"==typeof t?t:-1;function Mr(t){return!!(t.kt&&ro(t.kt)&&32&t.kt[0])}class _r{jt;q;H;t;wt;It;Nt=0;Ot=null;Ct=null;constructor(t,n,e,r){this.It=e,this.t=r,this.jt=tn,this.H=new WeakMap,this.wt=()=>{throw Error("Not implemented")},this.q=Cr(this,t,n)}trackSignalValue(t,n,e,r){return Ot(t,n,e,this,r)}serializationCtxFactory(t,n,e,r){return Ms(t,n,e,this.getHostProp.bind(this),this.setHostProp.bind(this),this.H,r)}}const Fr=124;function Lr(t){const n=Wr(t);if(!n)throw f(24);return Tr(n)}function Tr(t){let n=t.qContainer;return n||(n=new Dr(t)),n}function Wr(t){return(Array.isArray(t)?Po(t):t).closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])")}const Ur=t=>t instanceof Dr;class Dr extends _r{element;qContainer;qManifestHash;rootVNode;document;dt;renderDone=null;Et;H=new WeakMap;Mt;Ot;_t=null;Ft=null;vNodeLocate=t=>bo(this.rootVNode,t);Lt;Tt=null;Wt=0;constructor(t){if(super(()=>this.scheduleRender(),()=>Ao(this.dt),{},t.getAttribute("q:locale")),this.qContainer=t.getAttribute(N),!this.qContainer)throw f(25);this.dt=[3,t.ownerDocument],this.document=t.ownerDocument,this.element=t,this.Ct=t.getAttribute(R),this.Ot=t.getAttribute(A),this.qManifestHash=t.getAttribute("q:manifest-hash"),this.rootVNode=to(this.element),this.Et=[],this.Lt=[];const n=this.element.ownerDocument;n.qVNodeData||function(t){const n="q:container",e="/"+n,r="q:ignore",o="/"+r,s="q:container-island",i="/"+s,l=t.qVNodeData||(t.qVNodeData=new WeakMap),u=t.body,c=u.getAttribute,f=u.hasAttribute,a=((t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}})(u,"nodeType"),h=t=>{Array.from(t.querySelectorAll('script[type="qwik/vnode"]')).forEach(t=>{t.setAttribute("type","x-qwik/vnode");const n=t.closest("[q\\:container]");n.qVnodeData=t.textContent,n.qVNodeRefs=new Map}),t.querySelectorAll("[q\\:shadowroot]").forEach(t=>{const n=t.shadowRoot;n&&h(n)})};h(t);const d=t=>{const l=a.call(t);if(1===l)return null===c.call(t,n)?f.call(t,"q:shadowroot")?6:f.call(t,":")?2:0:3;if(8===l){const l=t.nodeValue||"";if(l.startsWith(s))return 65;if(l.startsWith(r))return 16;if(l.startsWith(n))return 5;if(l.startsWith(i))return 128;if(l.startsWith(o))return 32;if(l.startsWith(e))return 8}return 0},$=t=>33<=t&&t<=46,p=(t,n,e)=>{let r=0;for(;n<e;){const e=t.charCodeAt(n);if(0===r&&$(e))break;123===e?r++:125===e&&r--,n++}return n},y=t=>{for(;t&&(t=t.nextSibling)&&0===d(t););return t},w=t=>{for(;t&&(t=t.firstChild)&&0===d(t););return t},m=(n,e,r,o,s,i)=>{const u=s.length;let c=0,f=-1,a=0,h=0,b=0,g=-1,v=null;const S=()=>{let t=0;for(;$(b=s.charCodeAt(a))&&(t+=1<<b-33,a++,!(a>=u)););return t};do{if(r===o)return;v=null;const $=r==e?2:d(r);if(3===$){const t=r;let e=r;for(;e&&!(v=y(e));)e=e.parentNode;m(n,t,r,v,t.qVnodeData||"",t.qVNodeRefs)}else if(16===$){let t=r;do{if(t=n.nextNode(),!t)throw new Error(`Island inside \x3c!--${r?.nodeValue}--\x3e not found!`)}while(65!==d(t));v=null}else if(128===$){v=r;do{if(v=n.nextNode(),!v)throw new Error("Ignore block not closed!")}while(32!==d(v));v=null}else if(5===$){v=r;do{if(v=y(v),!v)throw new Error(`\x3c!--${r?.nodeValue}--\x3e not closed!`)}while(8!==d(v));m(n,r,r,v,"",null)}else if(6===$){v=y(r);const n=r,e=n?.shadowRoot;e&&m(t.createTreeWalker(e,129),null,w(e),null,"",null)}if(!(2&~$)){if(f<c&&(-1===f&&(f=0),a=h,a<u?(f+=S(),126===b&&(g=f,a++,b=a<u?s.charCodeAt(h):33),h=p(s,a,u)):f=Number.MAX_SAFE_INTEGER),c===f){g===c&&i.set(c,r);const t=s.substring(a,h);l.set(r,t)}c++}}while(r=v||n.nextNode())},b=t.createTreeWalker(t,129);m(b,null,b.firstChild(),null,"",null)}(n),this.Mt=x(n,this.Ot)||nn,this.Ut(),t.setAttribute(N,"resumed"),t.qContainer=this;const e=t.querySelectorAll('script[type="qwik/state"]');0!==e.length&&(this.Et=JSON.parse(e[e.length-1].textContent),Gs(this.Et,this),this.Lt=xs(this,this.Et),this.Dt())}Vt(t,n){this.Lt[t]=n}parseQRL(t){return Cs(this,Os(t))}handleError(t,n){const e=n&&this.resolveContext(n,Kt);if(!e)throw t;e.error=t}setContext(t,n,e){let r=this.getHostProp(t,S);r||this.setHostProp(t,S,r=[]),sr(r,n.id,e,0)}resolveContext(t,n){for(;t;){const e=this.getHostProp(t,S);if(e){const t=ir(e,n.id,0);if(t)return t}t=this.getParentHost(t)}}getParentHost(t){let n=hs(t);for(;n;)if(lo(n)){if(null!==cs(n,d,null))return n;n=hs(n)||cs(n,y,this.vNodeLocate)}else n=hs(n);return null}setHostProp(t,n,e){fs(t,n,e)}getHostProp(t,n){const e=t;let r=null;switch(n){case T:case L:case d:case S:case k:r=this.wt;break;case W:case D:r=parseInt}return cs(e,n,r)}scheduleRender(){return this.Wt++,this.renderDone||=Z().nextTick(()=>this.processChores()),this.renderDone.finally(()=>wi("qrender",{instanceHash:this.Ot,renderCount:this.Wt}))}processChores(){let t=this.Wt;const n=this.q(255);if(tt(n))return n.then(async()=>{for(;t!==this.Wt;)t=this.Wt,await this.q(255);this.renderDone=null});t===this.Wt?this.renderDone=null:this.processChores()}ensureProjectionResolved(t){if(!(16&t[0])){t[0]|=16;const n=as(t);for(let t=0;t<n.length;t+=2)if(Jn(n[t])){const e=n[t+1];"string"==typeof e&&(n[t+1]=this.vNodeLocate(e))}}}wt=t=>Hs(t,this.Lt);getSyncFn(t){return this.Mt[t]}zt(t,n,e,r){if(r){const t=this.getHostProp(e,v),r=new Set(function(t){return t?.split(" ")??null}(t));r.add(n),this.setHostProp(e,v,function(t){return Array.from(t).join(" ")}(r))}if(null==this.Tt&&(this.Tt=new Set,this.element.querySelectorAll(b).forEach(t=>{this.Tt.add(t.getAttribute(m))})),!this.Tt.has(n)){this.Tt.add(n);const e=this.document.createElement("style");e.setAttribute(m,n),e.textContent=t,this.dt.push(5,this.document.head,null,e)}}Ut(){const t={},n=this.element.attributes;if(n)for(let e=0;e<n.length;e++){const r=n[e];r.name!==Q&&(t[r.name]=r.value)}this.It={containerAttributes:t}}Dt(){if(this.Ft){for(const t of this.Ft)this.q(1,null,this.wt(t));this.Ft=null}}}const Vr=t=>{if(!t.resolved)throw t.resolve()},zr=t=>t instanceof yt,Qr=(t,n)=>{t.add(n)},Br=(t,n)=>{t[2]||=new Set,t[2].add(n)},Hr=(t,n)=>{if(n&&!Ur(n)){const e=t[0],r=t[1];let o=null;Le(e)?o=e.L:e instanceof mn?o=e.U:":"===r&&(o=n.getHostProp(e,d)),o&&n.serializationCtx.st.add(o)}},Jr=(t,n,e)=>{const r=Ur(t);if(e){const o=e=>{const o=e[0],s=e[1];if(Le(o)){o.v|=8;let n=3;1&o.v&&(n=32),t.q(n,o)}else if(o instanceof yt)o instanceof mn&&(o.U.resolved||t.q(1,null,o.U)),o.invalidate();else if(":"===s){const n=o,e=t.getHostProp(n,d),r=t.getHostProp(n,L);t.q(6,n,e,r)}else if(r)if("."===s)t.q(4,o,o,n);else{const r=e[3];if(r instanceof Qn){const e={...r.data,Pt:n};t.q(5,o,s,e)}}};for(const t of e)o(t)}},Gr=t=>{let n=1;switch(t){case"never":n|=8;break;case"always":n|=16}return n},Yr=[];function Zr(t){if(null===t)return"null";if(void 0===t)return"undefined";if("string"==typeof t)return'"'+t+'"';if("number"==typeof t||"boolean"==typeof t)return String(t);if(Le(t))return`Task(${Zr(t.L)})`;if(h(t))return`Qrl(${t.et})`;if("object"==typeof t||"function"==typeof t){if(Yr.includes(t))return"*";try{if(Yr.push(t),Array.isArray(t))return ro(t)?"("+cs(t,re,null)+")":t.map(Zr);if(zr(t))return t instanceof mt?"WrappedSignal":t instanceof mn?"ComputedSignal":"Signal";if(kn(t))return"Store";if(Xe(t))return Xr(t)}finally{Yr.pop()}}return t}const Xr=t=>{if(Xe(t)){let n="<"+t.type;if(t.props){for(const[e,r]of Object.entries(t.props))n+=" "+e+"="+Zr(r);const e=t.children;null!=e?(n+=">",Array.isArray(e)?e.forEach(t=>{n+=Xr(t)}):n+=Xr(e),n+="</"+t.type+">"):n+="/>"}return n}return String(t)},Kr=(t,n)=>{Wo(t);const e=vs.createElement(-247,null,null,null,null,null,t,n);return oo(e),io(e),lo(e),t.vNode=new WeakRef(e),e},to=t=>{Wo(t);const n=vs.createElement(-255,null,null,null,void 0,void 0,t,void 0);return oo(n),io(n),lo(n),t.vNode=new WeakRef(n),n},no=(t,n)=>{const e=vs.createText(-244,null,null,null,t,n);return Wo(t),oo(e),io(e),lo(e),e},eo=()=>{const t=vs.createVirtual(-254,null,null,null,null,null);return oo(t),io(t),lo(t),t},ro=t=>t instanceof vs,oo=t=>!(1&~t[0]),so=t=>!(1&~t[0])&&void 0!==t[4]&&void 0!==t[5],io=t=>!(4&~t[0]),lo=t=>!(2&~t[0]),uo=t=>!(2&~t[0])&&null!==cs(t,p,null),co=t=>(io(t),ho(t),t),fo=t=>{ho(t)},ao=t=>(oo(t),ho(t),t),ho=t=>{if(t)switch(7&t[0]){case 1:return"Element";case 2:return"Virtual";case 4:return"Text"}return"<unknown>"},$o=t=>{if(1==(15&t[0])){const n=t;n[0]^=8;const e=n[6],r=e.attributes,o=as(n);for(let t=0;t<r.length;t++){const n=r[t],s=n.name;if(s===Q||!s)break;s.startsWith(N)?"html"===n.value?sr(o,B,e.innerHTML,0):"text"===n.value&&"value"in e&&sr(o,"value",e.value,0):s.startsWith("on:")||sr(o,s,n.value,0)}}};function po(t){let n=t;if(io(t))return;let e=null;for(;;){const r=Mo(n);if(r){n=r;continue}if(n===t)return;const o=os(n);if(o)n=o;else{for(e=hs(n);e;){if(e===t)return;const r=os(e);if(r){n=r;break}e=hs(e)}if(null==e)return}}}function yo(t,n,e=!1,r=[]){if((t=>!!(5&t[0]))(n))return io(n)&&mo(t,n),r.push(e?n:ds(n)),r;let o=Mo(n);for(;o;)oo(o)?r.push(e?o:ds(o)):io(o)?(mo(t,o),r.push(e?o:ds(o))):yo(t,o,!!e,r),o=os(o);return r}const wo=(t,n,e)=>{const r=n?4:5,o=n?3:2;let s=t;for(;e&&s&&lo(s);){const t=s[r];if(!t)break;if(5&t[0])return t;s=t}for(;s;){let t=s[o];if(t&&5&t[0])return t;if(!t){let n=s[1];if(n&&!lo(n))return null;for(;n&&!(t=n[o]);)if(n=n[1],n&&!lo(n))return null;if(!t)return null;if(io(t)&&n&&oo(n))return null}for(;t;){if(s=t,5&s[0]&&ds(s))return s;t=s[r]}}return null},mo=(t,n)=>{const e=co(n);if(!(8&e[0])){const r=Po(n),o=e[4],s=r.ownerDocument;let i=wo(n,!1,!0);const l=o||wo(n,!0,!0)?.[6]||null;let u=l;for(;i&&io(i);){if(!(8&i[0])){const n=s.createTextNode(i[5]);t.push(5,r,u,n),u=n,i[4]=n,i[0]|=8}i=wo(i,!1,!0)}for(i=n;i&&io(i);){const n=wo(i,!0,!0),e=!n||!io(n);if(!(8&i[0])){if(e&&o)t.push(1,o,i[5]);else{const n=s.createTextNode(i[5]);t.push(5,r,l,n),i[4]=n}i[0]|=8}i=n}}},bo=(t,n)=>{ao(t);let e=t;const r=t[6],{qVNodeRefs:o}=r;let s,i=-1;if("string"==typeof n)i=parseInt(n),s=o.get(i);else{s=n;const t=s.vNode?.deref();if(t)return t}if(ro(s))e=s;else{r.contains(s);let t=s;const n=[s];for(;t&&t!==r;)t=t.parentElement,n.push(t);for(let t=n.length-2;t>=0;t--)e=So(e,n[t]);-1!=i&&o.set(i,e)}if("string"==typeof n){const t=n.length;let r=ko(n,t),o=0;for(;r<t;){const t=n.charCodeAt(r);o*=26,t>=97?o+=t-97:(o+=t-65,e=go(e,o),o=0),r++}}return e},go=(t,n)=>{let e=Mo(t);for(;e[0]>>>8!==n;)e=os(e),it();return e},vo=[],So=(t,n)=>{ao(t);let e=Mo(t);for(;e&&e[6]!==n;){if(lo(e)){const t=os(e),n=Mo(e);n?(t&&vo.push(t),e=n):e=t||(vo.length?vo.pop():null)}else{const t=os(e);e=t||t||vo.pop()}it()}for(;vo.length;)vo.pop();return ao(e),e},ko=(t,n)=>{let e=0;for(;e<n;){if(!(t.charCodeAt(e)<=57))return e;e++}return n},xo=t=>"false"!==t&&Boolean(t),Ro=(t,n)=>("allowfullscreen"==n||"async"==n||"autofocus"==n||"autoplay"==n||"checked"==n||"controls"==n||"default"==n||"defer"==n||"disabled"==n||"formnovalidate"==n||"inert"==n||"ismap"==n||"itemscope"==n||"loop"==n||"multiple"==n||"muted"==n||"nomodule"==n||"novalidate"==n||"open"==n||"playsinline"==n||"readonly"==n||"required"==n||"reversed"==n||"selected"==n)&&n in t,Ao=t=>{let n=0;const e=t.length;for(;n<e;)switch(t[n++]){case 1:t[n++].nodeValue=t[n++];break;case 2:const r=t[n++];let o=t[n++];"className"===o&&(o="class");const s=t[n++];Ro(r,o)?r[o]=xo(s):"value"===o&&o in r?r.value=String(s):o===B?(r.innerHTML=s,r.setAttribute(N,"html")):null==s||!1===s?r.removeAttribute(o):r.setAttribute(o,String(s));break;case 3:const i=t[n++],l=i.head,u=i.querySelectorAll(g);for(let t=0;t<u.length;t++)l.appendChild(u[t]);break;case 4:const c=t[n++];let f;for(;n<e&&"number"!=typeof(f=t[n]);)c.removeChild(f),n++;break;case 5:const a=t[n++],h=t[n++];let d;for(;n<e&&"number"!=typeof(d=t[n]);)a.insertBefore(d,h),n++}t.length=0},qo=(t,n,e,r)=>{fo(n),oo(n)&&_o(n);const o=e[1];if(e===r){if(o)return;r=null}const s=jo(n),i=s&&s[6];let l=null;s&&(l=function(t,n,e){const{elementNamespace:r,elementNamespaceFlag:o}=fr(n,e);let s=[];if(r===C)s=yo(t,e);else{const i=yo(t,e,!0);for(let t=0;t<i.length;t++){const e=i[t];if(io(e)){s.push(e[4]);continue}if((192&e[0])==(192&n[0])){s.push(e[6]);continue}const l=cr(e,n,r,o);l&&s.push(l)}}return s}(t,s,e)),o&&(e[2]||e[3]||o!==n)&&Io(t,o,e,!1);let u=null;null==r?lo(n)&&(u=wo(n,!0,!1)):u=lo(r)?wo(r,!0,!0):r,u&&((t,n)=>{io(n)&&mo(t,n)})(t,u),l&&l.length&&t.push(5,i,ds(u),...l);const c=r,f=c?c[2]:n[5];c?c[2]=e:n[5]=e,f?f[3]=e:n[4]=e,e[2]=f,e[3]=c,e[1]=n},Po=t=>(t=jo(t))&&t[6],jo=t=>{for(;t&&!oo(t);)t=t[1];return t},Io=(t,n,e,r)=>{if(hs(e),io(e)&&mo(t,e),r){const r=Po(n);if(us(n,B))return;const o=yo(t,e);r&&o.length&&t.push(4,r,...o)}const o=e[2],s=e[3];o?o[3]=s:n[4]=s,s?s[2]=o:n[5]=o,e[2]=null,e[3]=null},No=(t,n,e)=>{const r=Po(n),o=yo(t,e);r&&o.length&&t.push(4,r,...o);const s=e[2];s?s[3]=null:n[4]=null,n[5]=s},Oo=t=>{const n=ao(t);let e=n[7];if(void 0===e){const t=n[6],r=Xo(t).toLowerCase();e=n[7]=r,n[0]|=(t=>{switch(Yo(t)){case E:return 64;case M:return 128;default:return 0}})(t)}return e},Co=t=>{const n=co(t);let e=n[5];return void 0===e&&(e=n[5]=n[4].nodeValue),e},Eo=(t,n,e)=>{mo(t,n),t.push(1,n[4],n[5]=e)},Mo=t=>{if(io(t))return null;let n=t[4];return void 0===n&&(n=_o(t)),n},_o=t=>{const n=ao(t);let e=n[4];return void 0===e&&(e=n[1]&&Lo(n[6])?n[4]=n[5]=null:(t=>{const n=t[6],e=Jo(n),r=n.ownerDocument?.qVNodeData?.get(n);return((t,n,e,r)=>{if(r){if(r.charCodeAt(0)===Fr){const n=1;let o=1;for(;r.charCodeAt(o)!==Fr;)o++;const s=r.substring(n,o);r=r.substring(o+1);const i=ns(t,e,s);if(!r)return i}return function(t,n,e,r){let o=0,s=null,i=null,l=null;const u=n=>{n[0]=255&n[0]|o<<8,o++,i&&(i[3]=n),n[2]=i,n[1]=t,s||(t[4]=s=n),i=n};let c=0,a=null,h=null;return rs(n,($,w,m,b,g)=>{if(ps($())){for(;!bs(r)||ts(r);)if(!(r=Vo(r)))throw f(27,[n,$(),g]);a=null,l=null;let t=0;for(;ps($());)t*=10,t+=m()-48;for(;t--;)u(to(r)),r=Vo(r)}else if(59===$())ls(null,t,v,w());else if(60===$())ls(null,t,d,w());else if(61===$()){h||(h=Lr(e));const n=w();h.Vt(parseInt(n),t)}else if(62===$())ls(null,t,L,w());else if(64===$()){let n;b(g+1)===Fr?(m(),n=decodeURI(w()),m()):n=w(),ls(null,t,F,n)}else if(91===$())ls(null,t,T,w());else if(94===$())ls(null,t,W,w());else if(96===$())h||(h=Lr(e)),es(t,w(),h);else if(63===$())fs(t,y,w());else if(93===$())ls(null,t,S,w());else if(123===$())m(),u(eo()),ws.push(t,s,i,l,o),o=0,t=i,s=i=null;else if($()===Fr){const n=w(),e=w();ls(null,t,n,e)}else if(125===$())m(),t[5]=i,o=ws.pop(),l=ws.pop(),i=ws.pop(),s=ws.pop(),t=ws.pop();else if(126===$())ls(null,t,p,w());else{for(;ts(r);)r=Vo(r);const t=r&&3===Wo(r)?r:null;null===a&&(a=t?t.nodeValue:null,c=0);let n=0;for(;ys($());)n+=m()-97,n*=26;n+=m()-65;const e=null===a?"":a.substring(c,c+n);u(l=((t,n,e)=>{n&&Wo(n);const r=vs.createText(-252,null,t,null,n,e);return oo(r),io(r),lo(r),r})(l,t,e)),c+=n}}),t[5]=i,s}(t,r,n,e)}return ns(t,e)})(t,n,e,r)})(n)),e};let Fo=null;const Lo=t=>(Fo||(Fo=t.hasAttribute),Fo.call(t,N));let To=null;const Wo=t=>(To||(To=Ko(t,"nodeType")),To.call(t)),Uo=t=>{const n=Wo(t);return 3===n||1===n};let Do=null;const Vo=t=>{for(Do||(Do=Ko(t,"nextSibling")),Ho||(Ho=Ko(t,"firstChild"));t;)if(null!==(t=Do.call(t))){const n=Wo(t);if(3===n||1===n)break;if(8===n){const n=t.nodeValue;if(n?.startsWith(j))return zo(t,q,Do,Ho);if(t.nodeValue?.startsWith(P))return zo(t,I,Do,Ho);if(n?.startsWith(N))for(;t&&(t=Do.call(t))&&(8!==Wo(t)||!t.nodeValue?.startsWith(O)););}}return t};function zo(t,n,e,r){for(;t;){if(t.nodeValue?.startsWith(n))return e.call(t)||null;let o=r.call(t);o||(o=e.call(t)),o||(o=Bo(t),o&&(o=e.call(o))),t=o}return null}let Qo=null;const Bo=t=>(Qo||(Qo=Ko(t,"parentNode")),Qo.call(t));let Ho=null;const Jo=t=>{for(Ho||(Ho=Ko(t,"firstChild")),t=t&&Ho.call(t);t&&!Uo(t);)t=Vo(t);return t};let Go=null;const Yo=t=>(Go||(Go=Ko(t,"namespaceURI")),Go.call(t));let Zo=null;const Xo=t=>(Zo||(Zo=Ko(t,"nodeName")),Zo.call(t)),Ko=(t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}},ts=t=>bs(t)&&"STYLE"===t.nodeName&&(t.hasAttribute(v)||t.hasAttribute(m)),ns=(t,n,e)=>{let r=null;const o=()=>{for(;ts(s);)s=Vo(s)};let s=n;o();let i=null;for(;s;){const n=Wo(s);let e=null;3===n?e=no(s,s.textContent??void 0):1===n&&(e=to(s)),e&&(e[1]=t,i&&(i[3]=e),e[2]=i,i=e),r||(t[4]=r=i),s=Vo(s),o()}if(t[5]=i||null,t[4]=r,e){let n=null;rs(e,(e,r)=>{if(61===e()){n||(n=Lr(t[6]));const e=r();n.Vt(parseInt(e),t)}else 96===e()?(n||(n=Lr(t[6])),es(t,r(),n)):r()})}return r};function es(t,n,e){const r=e.wt(n);t[ht]?((t,n)=>{for(const[e,r]of n)t.set(e,r)})(t[ht],r):Object.defineProperty(t,ht,{value:r})}const rs=(t,n)=>{let e=0,r=0,o=0;const s=n=>n<t.length?t.charCodeAt(n):0,i=()=>0!==o?o:o=s(e),l=()=>(r=i(),o=0,e++,r),u=()=>{l();const n=e;for(;i()<=58&&0!==o||95===o||o>=65&&o<=90||o>=97&&o<=122;)l();return t.substring(n,e)};for(;0!==i();)n(i,u,l,s,e)},os=t=>t[3],ss=t=>t[2],is=t=>{if(3&t[0]){$o(t);const n=[],e=as(t);for(let t=0;t<e.length;t+=2){const r=e[t];r.startsWith(Q)||n.push(r)}return n}return[]},ls=(t,n,e,r)=>{const o=n[0];if(3&o){$o(n);const s=as(n),i=or(s,e,0);i>=0?(s[i+1]!=r&&1&o&&t&&t.push(2,n[6],e,r),null==r?s.splice(i,2):s[i+1]=r):null!=r&&(s.splice(-1^i,0,e,r),1&o)&&t&&t.push(2,n[6],e,r)}},us=(t,n)=>{if(3&t[0]){$o(t);const e=as(t);return ir(e,n,0)}return null},cs=(t,n,e)=>{const r=t[0];if(3&r){1&r&&$o(t);const o=as(t),s=or(o,n,0);if(s>=0){let t=o[s+1];return"string"==typeof t&&e&&(o[s+1]=t=e(t)),t}}return null},fs=(t,n,e)=>{fo(t);const r=as(t),o=or(r,n,0);o>=0?r[o+1]=e:null!=e&&r.splice(-1^o,0,n,e)},as=t=>t[(t=>{const n=7&t[0];if(1===n)return 8;if(2===n)return 6;throw f(26,[n])})(t)],hs=t=>t[1]||null,ds=t=>null===t||lo(t)?null:oo(t)?t[6]:(io(t),t[4]);function $s(t=20,n="",e=!1,r=!1,o=!0){let s=this;if(0===t)return"...";if(null===s)return"null";if(void 0===s)return"undefined";const i=[];do{if(io(s))i.push(Zr(Co(s)));else if(lo(s)){const e=["["+String(s[0]>>>8)+"]"];is(s).forEach(t=>{if(t!==re){const n=us(s,t);e.push(" "+t+"="+Zr(n))}});const r=(o?"":"")+(oe[us(s,re)||"V"]||oe.V)+(o?"":"");i.push("<"+r+e.join("")+">");const l=Mo(s);l&&i.push(" "+$s.call(l,t-1,n+" ",!0,!0,o)),i.push("</"+r+">")}else if(oo(s)){const r=Oo(s),l=[],u=is(s);u.forEach(t=>{const n=us(s,t);l.push(" "+t+"="+Zr(n))});const c=ds(s);if(c){const t=c.ownerDocument.qVNodeData?.get(c);t&&l.push(" q:vnodeData="+Zr(t))}const f=c.attributes;for(let t=0;t<f.length;t++){const n=f[t];-1===u.indexOf(n.name)&&l.push(" "+n.name+(n.value?"="+Zr(n.value):""))}if(i.push("<"+r+l.join("")+">"),so(s)||e){const e=Mo(s);e&&i.push(" "+$s.call(e,t-1,n+" ",!0,!0,o))}else i.push(" \x3c!-- not materialized --!>");i.push("</"+r+">")}s=r&&os(s)||null}while(s);return i.join("\n"+n)}const ps=t=>48<=t&&t<=57,ys=t=>97<=t&&t<=122,ws=[],ms=t=>{const n=t[0];if(1&n)return 1;if(2&n)return 11;if(4&n)return 3;throw f(26,[n])},bs=t=>t&&"object"==typeof t&&1===Wo(t),gs=(t,n)=>{let e=1;for(;e--;){for(;t&&(!lo(t)||null===cs(t,d,null));){const r=cs(t,y,t=>bo(n,t)),o=lo(t)&&r;o&&e++,t=o||hs(t)}e>0&&(t=hs(t))}return t},vs=class t extends Array{static createElement(n,e,r,o,s,i,l,u){return new t(n,e,r,o,s,i,l,u,[])}static createText(n,e,r,o,s,i){return new t(n,e,r,o,s,i)}static createVirtual(n,e,r,o,s,i){return new t(n,e,r,o,s,i,[])}constructor(t,n,e,r,...o){super(t,n,e,r,...o)}},Ss=new WeakMap,ks=Symbol("UNWRAP"),xs=(t,n)=>{if(!Array.isArray(n)||ro(n)||i(e=n)&&ks in e)return n;var e;let r=Ss.get(n);if(!r){const e=Array(n.length/2).fill(void 0);r=new Proxy(e,new Rs(t,n)),Ss.set(n,r)}return r};class Rs{u;Qt;Bt;constructor(t,n){this.u=t,this.Qt=n,this.Bt=this.Qt.length/2}get(t,n,e){if(n===ks)return t;const r="number"==typeof n?n:"string"==typeof n?parseInt(n,10):NaN;if(Number.isNaN(r)||r<0||r>=this.Bt)return Reflect.get(t,n,e);const o=2*r,s=this.Qt[o],i=this.Qt[o+1];if(void 0===s)return i;const l=this.u;let u=Is(l,s,i);return s>=14&&(u=qs(l,u,s,i)),Reflect.set(t,n,u),this.Qt[o]=void 0,this.Qt[o+1]=u,u}has(t,n){return n===ks||Object.prototype.hasOwnProperty.call(t,n)}set(t,n,e,r){if(n===ks)return!1;const o=Reflect.set(t,n,e,r),s="number"==typeof n?n:parseInt(n,10);if(Number.isNaN(s)||s<0||s>=this.Qt.length/2)return o;const i=2*s;return this.Qt[i]=void 0,this.Qt[i+1]=e,!0}}const As=new WeakMap,qs=(t,n,e,r)=>{if(void 0===e)return n;switch(15!==e&&Array.isArray(r)&&(r=((t,n)=>{const e=Array(n.length/2);for(let r=0;r<n.length;r+=2)e[r/2]=Bs(t,n[r],n[r+1]);return e})(t,r)),e){case 15:for(let e=0;e<r.length;e+=4){const o=Bs(t,r[e],r[e+1]),s=r[e+2],i=r[e+3];0===s||s>=14?Object.defineProperty(n,o,{get(){const e=Bs(t,s,i);return n[o]=e,e},set(t){Object.defineProperty(n,o,{value:t,writable:!0,enumerable:!0,configurable:!0})},enumerable:!0,configurable:!0}):n[o]=Bs(t,s,i)}break;case 20:case 21:Cs(t,n);break;case 22:const o=n,s=r;o.L=Cs(t,s[0]),o.v=s[1],o.it=s[2],o.lt=s[3],o[ht]=s[4],o.ut=s[5];break;case 23:const[i,l,u]=r,c=n;i?(c.value=Promise.resolve(l),c._resolved=l,c._state="resolved"):(c.value=Promise.reject(l),c._error=l,c._state="rejected"),gn(n).l=u;break;case 24:n[Ai][0]=r[0];break;case 30:case 31:{const[e,o,s]=r,i=Rn(e,o,t);gn(i).l=s,n=i;break}case 25:{const t=n,e=r;t.o=e[0],t.l=new Set(e.slice(1));break}case 26:{const e=n,o=r;e.p=t.getSyncFn(o[0]),e.$=o[1],e[ht]=o[2],e.o=at,e.v=o[3],e.v|=1,e.k=o[4],e.l=new Set(o.slice(5));break}case 28:{const t=n,e=r;t.U=e[0],t.l=new Set(e[1]),t.Z=new Set(e[2]),t.X=new Set(e[3]),t.G=e[4],t.Y=e[5],e.length>6&&(t.o=e[6]),t.v|=1;break}case 29:case 27:{const o=n,s=r;o.U=s[0],o.l=new Set(s[1]),s.length>2?(o.o=s[2],29===e&&(o.v|=1)):(o.v|=1,o.U.resolve(),t.q?.(1,null,o.U));break}case 14:{const t=r;n.message=t[0];for(let e=1;e<t.length;e+=2)n[t[e]]=t[e+1];break}case 32:{const t=n,e=r;for(let n=0;n<e.length;n++)t.append(e[n++],e[n]);break}case 33:{const t=n,[e,o,s,i,l,u]=r;t.type=e,t.varProps=o,t.constProps=s,t.children=i,t.flags=l,t.key=u;break}case 17:{const t=n,e=r;for(let n=0;n<e.length;n++)t.add(e[n]);break}case 18:{const t=n,e=r;for(let n=0;n<e.length;n++)t.set(e[n++],e[n]);break}case 16:{const t=n,[e,o]=r,[s,i]=As.get(t);e?s(o):i(o);break}case 19:const a=n,h=atob(r);let d=0;for(const t of h)a[d++]=t.charCodeAt(0);break;case 34:const $=n;$[$n]=0===r?{}:r[0],$[dn]=r[1];break;case 35:{const t=n;t.data.$t=r[0],t.data.yt=r[1];break}default:throw f(16,[e])}return n},Ps=[void 0,null,!0,!1,"",nn,en,at,pt,yn,Yn,Ke,NaN,1/0,-1/0,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER-1,Number.MIN_SAFE_INTEGER],js=["undefined","null","true","false","''","EMPTY_ARRAY","EMPTY_OBJ","NEEDS_COMPUTATION","STORE_ALL_PROPS","_UNINITIALIZED","Slot","Fragment","NaN","Infinity","-Infinity","MAX_SAFE_INTEGER","MAX_SAFE_INTEGER-1","MIN_SAFE_INTEGER"],Is=(t,n,e)=>{if(void 0===e)return n;switch(n){case 0:return t.wt(e);case 1:if(!t._t)throw f(18,["forward ref"]);const r=t._t[e];return-1===r?yn:t.wt(r);case 2:case 4:case 5:return e;case 3:return Ps[e];case 6:return xs(t,e);case 15:return{};case 20:case 21:return Os("number"==typeof e?t.wt(e):e);case 22:return new Fe(-1,-1,null,null,null,null);case 23:{const n=xr(t,void 0,void 0);return n.loading=!1,n}case 7:return new URL(e);case 8:return new Date(e);case 9:const o=e.lastIndexOf("/");return new RegExp(e.slice(1,o),e.slice(o+1));case 14:return new Error;case 24:return Ri(null);case 25:return new yt(t,0);case 26:return new mt(t,null,null,null);case 27:return new mn(t,null);case 28:return new On(t,null);case 29:return new bn(t,null);case 30:case 31:return null;case 13:return new URLSearchParams(e);case 32:return new FormData;case 33:return new Ge(null,null,null,null,-1,null);case 12:return BigInt(e);case 17:return new Set;case 18:return new Map;case 16:let s,i;const l=new Promise((t,n)=>{s=t,i=n});return As.set(l,[s,i]),l.catch(()=>{}),l;case 19:const u=e.length,c=3&u;return new Uint8Array(3*(u>>>2)+(c?c-1:0));case 34:return nr(null,null);case 10:return Ns(t,e);case 11:const a=Ns(t,e);if(ro(a))return ds(a);throw f(17,[typeof a]);case 35:return new Qn({});default:throw f(18,[n])}};function Ns(t,n){return n?t.rootVNode?bo(t.rootVNode,n):void 0:t.element?.ownerDocument}function Os(t){const n=t.indexOf("#"),e=t.indexOf("[",n),r=t.indexOf("]",e),o=t.slice(0,n>-1?n:e),s=e>-1?t.slice(n+1,e):t.slice(n+1),i=e>-1&&r>-1?t.slice(e+1,r).split(" ").filter(t=>t.length).map(t=>parseInt(t,10)):null;let l=null;return o===Xs&&(l=globalThis.__qrl_back_channel__.get(s)),$i(o,s,l,null,i,null)}function Cs(t,n){const e=n.rt;return n.W=e?e.map(n=>t.wt(n)):null,t.element&&n.T(t.element),n}let Es=()=>!1;const Ms=(t,n,e,r,o,s,l)=>{if(!l){const t=[];l={write:n=>t.push(n),toString:()=>t.join("")}}const u=new Map,c=new Map,a=new Map,d=[],$=[],p=t=>{const n=c.get(t);if(n)return n;const e=u.get(t);if(!e)throw f(19,[t]);const r=[];let o=e;for(;o&&o.it>=0&&(r.unshift(o.it),"object"==typeof o.Ht&&null!==o.Ht);)o=u.get(o.Ht);const s=r.length>1?r.join(" "):r.length?r[0]:e.it;return c.set(t,s),s},y=t?n=>n instanceof t:()=>!1;return Es=n?t=>t instanceof n:()=>!1,{async Jt(){return await async function(t){const{Gt:n,Yt:e,Zt:r,H:o,Xt:s,Kt:l,tn:u}=t;let c=0,a=0;const d=[];let $=0;const p=new Set,y=new Set,w=new Map;let m=null;const b=(t,e)=>{n.write("[");let r=!1;for(let o=0;o<t.length;o++)r?n.write(","):r=!0,e(t[o],o);n.write("]")},g=(e,r)=>{if(n.write(`${e},`),"number"==typeof r)n.write(r.toString());else if("string"==typeof r){const t=JSON.stringify(r);let e=-1,o=0;for(;-1!==(e=t.indexOf("</",o));)n.write(t.slice(o,e)),n.write("<\\/"),o=e+2;n.write(0===o?t:t.slice(o))}else c++,b(r,(n,e)=>{!function(t,n,e,r){const{tn:o,nn:s,Xt:l}=t;(function(t){return i(t)||"string"==typeof t&&t.length>1}(n)||Ys(n))&&(void 0===o(n)?s(n,e,r):l(n,e))}(t,n,m,e),x(n)}),c--},v=n=>{y.add(n),t.Xt(n)},S=(t,n=0)=>{const e=u(t),r=l.get(t);if(n===c&&e&&null!==e.Ht&&r)return g(0,r),!0;if(c>n&&e&&-1!==e.en)return g(0,e.en),!0;if(w.has(t)){const e=w.get(t);if(n!==c){const n=s(t);return g(0,n),d[e]=n,!0}d[e]=a}return!1},x=n=>{if(ci(n))g(3,0);else if("bigint"==typeof n)g(12,n.toString());else if("boolean"==typeof n)g(3,n?2:3);else if("function"==typeof n)if(n===Yn)g(3,10);else if(n===Ke)g(3,11);else if(h(n)){if(!S(n)){const e=Vs(t,n),r=y.has(n)?21:20;if(0===c)g(r,e);else{const n=t.Xt(e);g(r,n)}}}else{if(!qi(n))throw f(34,[n.toString()]);{const[e]=n[Ai];t.rn.add(e.et),g(24,[e])}}else if("number"==typeof n)Number.isNaN(n)?g(3,12):Number.isFinite(n)?n===Number.MAX_SAFE_INTEGER?g(3,15):n===Number.MAX_SAFE_INTEGER-1?g(3,16):n===Number.MIN_SAFE_INTEGER?g(3,17):g(4,n):g(3,n<0?14:13);else if("object"==typeof n)if(n===nn)g(3,5);else if(n===en)g(3,6);else if(null===n)g(3,1);else{c++;const t=m;m=n,R(n),m=t,c--}else if("string"==typeof n)0===n.length?g(3,4):S(n)||g(5,n);else if(void 0===n)g(3,0);else if(n===at)g(3,7);else if(n===pt)g(3,8);else{if(n!==yn)throw f(20,[typeof n]);g(3,9)}},R=n=>{var l;if(!S(n,1))if(Je(n)){const t=n[$n],e=n[dn],r=e?[t,e]:Object.keys(t).length?[t]:0;g(34,r)}else if(n instanceof Qn)g(35,[n.data.$t,n.data.yt]);else if(kn(n))if(function(t){return"__brand"in t&&"resource"===t.__brand}(n)){t.sn.add(n);const e=A(n.value,s,(t,e)=>new Ls(23,t,e,gn(n).l));g(1,e)}else{const e=gn(n),r=vn(n),s=e.v,i=e.l,l=[];for(const n in r){const e=r[n];if(o.has(e)){const n=o.get(e);l.push(n),t.Xt(n)}}const u=[r,s,i,...l];for(;null==u[u.length-1];)u.pop();g(Array.isArray(r)?31:30,u)}else if(i(l=n)&&"function"==typeof l[hi]){const t=n[hi](n);if(tt(t)){const n=A(t,s,(t,n)=>new Ls(29,t,n,null,null));g(1,n)}else c--,x(t),c++}else if(function(t){const n=Object.getPrototypeOf(t);return null==n||n===Object.prototype||n===Array.prototype}(n))if(Array.isArray(n))g(6,n);else{const t=[];for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&!ci(n[e])&&t.push(e,n[e]);g(15,t)}else if(r(n))n.ln.vnodeData[0]|=16,g(11,n.ln.id);else if(n instanceof yt){if(n instanceof bn){v(n.U);const t=A(function(t,n){return new Promise(e=>{t.U.resolve().then(t=>{let r;t.serialize?r=t.serialize(n):hi in n&&(r=n[hi](n)),void 0===r&&(r=at),e(r)})})}(n,n.o),s,(t,e)=>new Ls(29,t,e,n.l,n.U));return void g(1,t)}if(n instanceof mt)g(26,[...Ds(t,n),Us(n[ht]),n.v,n.k,...n.l||[]]);else if(n instanceof mn){let t=n.o;const e=16&n.v,r=8&n.v,o=1&n.v,s=ci(n.o);e?t=n.o:(r||o||s)&&(t=at),v(n.U);const i=[n.U,n.l],l=n instanceof On;l&&i.push(n.Z,n.X,n.G,n.Y),t!==at&&i.push(t),g(l?28:27,i)}else g(25,[n.o,...n.l||[]])}else if(n instanceof URL)g(7,n.href);else if(n instanceof Date)g(8,Number.isNaN(n.valueOf())?"":n.valueOf());else if(n instanceof RegExp)g(9,n.toString());else if(n instanceof Error){const t=[n.message];t.push(...Object.entries(n).flat()),t.push("stack",n.stack),g(14,t)}else if(e(n)){const e=s(n);t.un(n,"q:id",String(e)),g(10,n.id);const r=n.vnodeData;if(r&&(Fs(r,t=>s(t)),r[0]|=16),n.children)for(const t of n.children){const n=t.vnodeData;if(n){for(const t of n)if(_s(t)){const n=t.findIndex(t=>t===k);-1!==n&&s(t[n+1])}n[0]|=16}}}else if("undefined"!=typeof FormData&&n instanceof FormData){const t=[];n.forEach((n,e)=>{t.push(e,"string"==typeof n?n:n.name)}),g(32,t)}else if(n instanceof URLSearchParams)g(13,n.toString());else if(n instanceof Set)g(17,[...n.values()]);else if(n instanceof Map){const t=[];for(const[e,r]of n.entries())t.push(e,r);g(18,t)}else if(Xe(n))g(33,[n.type,n.varProps,n.constProps,n.children,n.flags,n.key]);else if(n instanceof Fe){const t=[n.L,n.v,n.it,n.lt,n[ht],n.ut];for(;null==t[t.length-1];)t.pop();g(22,t)}else if(tt(n)){const t=A(n,s,(t,n)=>new Ls(16,t,n));g(1,t)}else if(n instanceof Ls)if(23===n.vt)g(23,[n.cn,n.Pt,n.l]);else if(29===n.vt)if(n.L)g(29,[n.L,n.l,n.Pt]);else{if(!n.cn)throw console.error(n.Pt),f(33);x(n.Pt)}else g(16,[n.cn,n.Pt]);else if(n instanceof Uint8Array){let t="";for(const e of n)t+=String.fromCharCode(e);const e=btoa(t).replace(/=+$/,"");g(19,e)}else if(n instanceof Ts){const t=$++;w.set(n.fn,t),d[t]=-1,g(1,t)}else{if(!ro(n))throw f(20,[typeof n]);g(3,0)}};function A(t,n,e){const r=$++;return t.then(o=>{p.delete(t),d[r]=n(e(!0,o))}).catch(o=>{p.delete(t),d[r]=n(e(!1,o))}),p.add(t),r}await(async()=>{n.write("[");let e=t.an.length;for(;a<e||p.size;){0!==a&&n.write(",");let r=!1;for(;a<e;a++)r?n.write(","):r=!0,x(t.an[a]);if(p.size)try{await Promise.race(p)}catch{}e=t.an.length}d.length&&(n.write(","),n.write("2,"),b(d,t=>{n.write(String(t))})),n.write("]")})()}(this)},Yt:y,Zt:Es,hn:e,tn:t=>u.get(t),an:$,nn:(t,n,e)=>u.set(t,{Ht:n,it:e,en:-1}),dn:t=>{const n=u.get(t);return null===n?.Ht?n.it:void 0},Xt:(t,n=null)=>{let e=u.get(t);if(e)-1===e.en&&(e.en=$.length,$.push(t));else{const r=$.length;e={Ht:n,it:r,en:r},u.set(t,e),$.push(t)}return p(t),e.en},$n:p,pn:d,yn:(t,n,e)=>{const r=null==t;r&&(t=e.serialized||e.toString());let o=a.get(t);if(void 0===o)if(o=d.length,a.set(t,o),r)d.push(t);else{let e="(";for(let t=0;t<n;t++)e+=(0==t?"p":",p")+t;d.push(e+=")=>"+t)}return o},Gt:l,st:new Set,ot:new Set,sn:new Set,rn:new Set,H:s,wn:r,un:o,Kt:c}},_s=t=>Array.isArray(t)&&t.length>0,Fs=(t,n)=>{for(const e of t)if(_s(e))for(let t=1;t<e.length;t+=2){const r=e[t];null==r||"string"==typeof r||e[t-1]===L&&0===Object.keys(r).length||n(r)}};class Ls{vt;cn;Pt;l;L;constructor(t,n,e,r=null,o=null){this.vt=t,this.cn=n,this.Pt=e,this.l=r,this.L=o}}class Ts{fn;constructor(t){this.fn=t}}const Ws=t=>new Ts(t);function Us(t){let n=null;if(t)for(const[e,r]of t)r[2]&&(n||=new Map,n.set(e,r));return n}function Ds(t,n){return n.m&&"{"===n.m[0]&&(n.m=`(${n.m})`),[t.yn(n.m,n.$.length,n.p),n.$]}function Vs(t,n){let e=n.et,r=n.mn;const o=Z();if(o){const t=o.chunkForSymbol(e,r,n.dev?.file);t&&(r=t[1],e=t[0])}const s=(t=>h(t)&&t.et==a)(n);if(s)r="",e=String(t.yn(null,0,n.resolved));else{r||(r=t.hn(n.D));{let t=globalThis.__qrl_back_channel__;t||(t=globalThis.__qrl_back_channel__=new Map),t.set(n.et,n._devOnlySymbolRef),r||(r=Xs)}if(!r)throw f(14,[n.et]);r.startsWith("./")&&(r=r.slice(2))}let i=`${r}#${e}`;if(Array.isArray(n.W)&&n.W.length>0){let e="";for(let r=0;r<n.W.length;r++)r>0&&(e+=" "),e+=t.Xt(n.W[r]);i+=`[${e}]`}else n.rt&&n.rt.length>0&&(i+=`[${n.rt.join(" ")}]`);return i}async function zs(t){const n=Ms(null,null,()=>"",()=>"",()=>{},new WeakMap);for(const e of t)n.Xt(e);return await n.Jt(),n.Gt.toString()}function Qs(t,n){if(null==t)return[];const e=JSON.parse(t);if(!Array.isArray(e))return[];let r;r=X(n)&&K(n)?Js(e,n):Js(e);const o=[];for(let t=0;t<e.length;t+=2)o[t/2]=Bs(r,e[t],e[t+1]);return o}function Bs(t,n,e){if(void 0===n)return e;let r=Is(t,n,e);return n>=14&&(r=qs(t,r,n,e)),r}function Hs(t,n){return"string"==typeof t&&(t=parseInt(t,10)),n[t]}function Js(t,n){let e;const r={wt:t=>Hs(t,e),getSyncFn:()=>()=>{},H:new WeakMap,element:null,_t:null,Ft:null,q:null};return Gs(t,r),e=xs(r,t),r.ut=e,n&&(r.element=n),r}function Gs(t,n){const e=(t,n)=>0===t&&"string"==typeof n,r=t=>2===t,o=t=>21===t,s=n=>{const e=t[n+1].split(" ");let r=t,o=0,s=0,i=0,l=null;for(let n=0;n<e.length;n++)if(l=r,s=2*parseInt(e[n],10),i=s+1,o=r[s],r=r[i],0===o){const n=2*r;o=t[n],r=t[n+1]}l&&(l[s]=0,l[i]=n/2),t[n]=o,t[n+1]=r};for(let i=0;i<t.length;i+=2)e(t[i],t[i+1])?s(i):r(t[i])?n._t=t[i+1]:o(t[i])&&(n.Ft||=[],n.Ft.push(i/2))}const Ys=t=>i(t)&&(t instanceof yt||t instanceof Fe||Xe(t))||h(t),Zs=(t,n=new WeakSet)=>{if(null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"bigint"==typeof t)return!0;if("object"==typeof t){if(n.has(t))return!0;n.add(t);const e=Object.getPrototypeOf(t);if(kn(t)&&(t=vn(t)),e==Object.prototype){for(const e in t)if(!Zs(jt(()=>t[e]),n))return!1;return!0}if(e==Array.prototype){for(let e=0;e<t.length;e++)if(!Zs(t[e],n))return!1;return!0}if(Le(t))return!0;if(Je(t))return!0;if(tt(t))return!0;if(Xe(t))return!0;if(t instanceof Error)return!0;if(t instanceof URL)return!0;if(t instanceof Date)return!0;if(t instanceof RegExp)return!0;if(t instanceof URLSearchParams)return!0;if(t instanceof FormData)return!0;if(t instanceof Set)return!0;if(t instanceof Map)return!0;if(t instanceof Uint8Array)return!0;if(Es?.(t))return!0}else if("function"==typeof t){if(h(t)||qi(t))return!0}else if(t===yn)return!0;return!1},Xs="mock-chunk",Ks=["RootRef","ForwardRef","ForwardRefs","Constant","Number","String","Array","URL","Date","Regex","VNode","RefVNode","BigInt","URLSearchParams","Error","Object","Promise","Set","Map","Uint8Array","QRL","PreloadQRL","Task","Resource","Component","Signal","WrappedSignal","ComputedSignal","AsyncComputedSignal","SerializerSignal","Store","StoreArray","FormData","JSXNode","PropsProxy","SubscriptionData"],ti=(t,n)=>{let e=ro(t)?$s.call(t,1,"",!0).replaceAll(/\n.*/gm,""):"function"==typeof t?String(t):(t=>{const n=new WeakSet;return JSON.stringify(t,(t,e)=>{if(i(e)){if(n.has(e))return`[Circular ${e.constructor.name}]`;n.add(e)}return e},2)})(t);return e.length>500&&(e=e.slice(0,500)+'"...'),e=e.replace(/\n/g,"\n"+n),e.includes("\n")?e=`\n${n}${e}`:e};let ni=!1;const ei=(t,n=!1,e="",r=20)=>{const o=n?"":"",s=n?"":"",l=""===e,u=[];for(let l=0;l<t.length;l++){if(r&&l>2*r){u.push("...");break}const c=t[l];let f=t[++l];void 0===c?(ni=!0,u.push(`${o}[raw${i(f)?` ${f.constructor.name}`:""}]${s} ${ti(f,`${e} `)}`)):(3===c?f=oi(f):"string"==typeof f?(f=JSON.stringify(f),f.length>120&&(f=f.slice(0,120)+'"...')):2===c?f=`[\n${e} ${f.join(`\n${e} `)}\n${e}]`:Array.isArray(f)&&(f=f.length?`[\n${ei(f,n,`${e} `)}\n${e}]`:"[]"),u.push(`${o}${ri(c)}${s} ${f}`))}const c=u.map((t,n)=>`${e}${l?`${n} `:""}${t}`).join("\n");if(l){const n=ni?"":`(${JSON.stringify(t).length} chars)`;return ni=!1,`\n${c}\n${n}`}return c},ri=t=>Ks[t]||`Unknown(${t})`,oi=t=>js[t]||`Unknown(${t})`,si=(t,n)=>{const e=new WeakSet;return ii(t,e,"_",n)},ii=(t,n,e,r)=>{const o=Sn(t);if(null==o)return t;if(ui(o)){if("object"==typeof o){if(n.has(o))return t;n.add(o)}if(zr(o))return t;if(Zs(o))return t;const i=typeof o;switch(i){case"object":if(tt(o))return t;if(X(o))return t;if(l(o)){let r=0;return o.forEach((t,s)=>{if(s!==r)throw f(3,[o]);ii(t,n,e+"["+s+"]"),r=s+1}),t}if(s(o)){for(const[t,r]of Object.entries(o))ii(r,n,e+"."+t);return t}break;case"boolean":case"string":case"number":return t}let u;if(u=r||"Value cannot be serialized","_"!==e&&(u+=` in ${e},`),"object"===i)u+=` because it's an instance of "${t?.constructor.name}". You might need to use 'noSerialize()' or use an object literal instead. Check out https://qwik.dev/docs/advanced/dollar/`;else if("function"===i){const n=t.name;u+=` because it's a function named "${n}". You might need to convert it to a QRL using $(fn):\n\nconst ${n} = $(${String(t)});\n\nPlease check out https://qwik.dev/docs/advanced/qrl/ for more information.`}throw f(3,[u])}return t},li=/*#__PURE__*/new WeakSet,ui=t=>!i(t)&&!c(t)||!li.has(t),ci=t=>t&&(i(t)||"function"==typeof t)&&(ai in t||li.has(t)),fi=t=>((i(t)&&null!==t||"function"==typeof t)&&li.add(t),t),ai=Symbol("noSerialize"),hi=Symbol("serialize"),di=Symbol("resolved"),$i=(n,e,r,o,s,i)=>{let u;const a=async function(...t){const n=d.call(this,vt());return await n(...t)},h=t=>(u||(u=t),u);function d(t,n){const e=(...o)=>{if(!a.resolved)return st(()=>a.resolve()).then(t=>{if(!c(t))throw f(5);return e(...o)});if(n&&!1===n())return;const s=y(t),i=s.L,l=s.N;s.L=a,s.N||=this;try{return Rt.call(this,s,r,...o)}finally{s.L=i,s.N=l}};return e}const $=t=>"function"!=typeof t||!s?.length&&!i?.length?t:function(...n){let e=vt();if(e){if(e.L?.et===a.et)return t.apply(this,n);const r=e.L;e.L=a;try{return t.apply(this,n)}finally{e.L=r}}return e=Pt(),e.L=a,e.N=this,Rt.call(this,e,t,...n)};o&&di in o&&(r=o[di]);const p=r?async()=>r:async s=>{if(null!==r)return r;if(s&&h(s),""===n){const t=u.getAttribute(A),n=x(u.ownerDocument,t);return a.resolved=r=n[Number(e)]}n&&t(n,1);const i=mi(),l=vt();if(null!==o)r=o().then(t=>{const n=$(r=t[e]);return o[di]=n,a.resolved=n,n});else{const t=Z().importSymbol(u,n,e);r=et(t,t=>a.resolved=$(r=t))}return tt(r)&&r.then(()=>yi(e,l?._,i),t=>{console.error(`qrl ${e} failed to load`,t),r=null}),r},y=t=>null==t?Pt():l(t)?qt(t):t,w=(t=>{const n=t.lastIndexOf("_");return n>-1?t.slice(n+1):t})(e);return Object.assign(a,{getSymbol:()=>e,getHash:()=>w,getCaptured:()=>i,resolve:p,T:h,mn:n,et:e,D:w,getFn:d,rt:s,W:i,dev:null,resolved:void 0}),r&&(r=et(r,t=>a.resolved=$(r=t))),e&&t(e,.8),a},pi=/*#__PURE__*/new Set,yi=(t,n,e)=>{pi.has(t)||(pi.add(t),wi("qsymbol",{symbol:t,element:n,reqTime:e}))},wi=(t,n)=>{"object"==typeof document&&document.dispatchEvent(new CustomEvent(t,{bubbles:!1,detail:n}))},mi=()=>"object"==typeof performance?performance.now():0;let bi=0;const gi=t=>$i(null,"s"+bi++,t,null,null,null),vi=gi,Si=t=>t,ki=t=>$i("",a,t,null,null,null),xi=function(t,n){return void 0===n&&(n=t.toString()),t.serialized=n,$i("",a,t,null,null,null)},Ri=t=>{function n(n,e,r=0){const o=t.D.slice(0,4)+":"+(e||""),s=()=>{};return s[Ai]=[t],Ue(s,n,null,n.children,r,o)}return n[Ai]=[t],n},Ai=Symbol("serializable-data"),qi=t=>"function"==typeof t&&void 0!==t[Ai],Pi=t=>Ri(vi(t)),ji=wn(Si),Ii=async(t,n,e={})=>{if(9===t.nodeType){let n=t.firstChild;for(;n&&!K(n);)n=n.nextSibling;t=n}t.setAttribute(N,"resumed");const r=Lr(t);r.It=e.serverData||{};const o=r.rootVNode;return r.q(4,o,o,n),await r.q(255),{cleanup:()=>{mr(r,r.rootVNode)}}},Ni=(t,n)=>{const{val:e,set:r,iCtx:o}=Lt();if(null!=e)return e;const s=c(t)?Rt(void 0,t):t;if(!1===n?.reactive)return r(s),s;{const t=o.u,e=Rn(s,n?.deep??1?1:0,t);return r(e),e}},Oi=()=>{const{val:t,set:n,iCtx:e}=Lt();if(null!=t)return t;const r=e.u.Ct||"",o=r?fe(r).substring(0,3):"",s=e.u.getHostProp(e.k,d);let i=`${o}${s?.getHash().substring(0,3)||""}${(e.u.Nt++).toString(36)||""}`,l=i.charCodeAt(0);return l>=48&&l<=57&&(l+=17,i=String.fromCharCode(l)+i.substring(1)),n(i)};function Ci(t,n){const e=vt();return e?.u?.It[t]??n}const Ei=/*#__PURE__*/new Map,Mi=(t,n)=>{let e=Ei.get(n);return e||Ei.set(n,e=_i(t,n)),e},_i=(t,n)=>{const e=t.length,r=[],o=[];let s=0,i=s,l=Ui,u=0;for(;s<e;){const n=s;let e=t.charCodeAt(s++);e===$l&&(s++,e=al);const r=Sl[l];for(let d=0;d<r.length;d++){const $=r[d],[p,y,w]=$;if((p===u||p===Yi||p===Zi&&Fi(u)||p===Ki&&Wi(u))&&(y===e||y===Yi||y===Zi&&Fi(e)||y===Xi&&!Fi(e)&&e!==ll||y===Ki&&Wi(e))&&(3==$.length||a($))){if($.length>3&&(e=t.charCodeAt(s-1)),w===Ji||w==Gi){w===Gi&&(l!==Di||h()?Li(e)||f(s-(y==Xi?1:y==sl?2:0)):(Li(e)?c(s-2):f(s-2),i++)),y===Xi&&(s--,e=u);do{l=o.pop()||Ui,l===Vi&&(c(s-1),i++)}while(Ti(l))}else o.push(l),l===Vi&&w===Ui?(c(s-8),i=s):w===zi&&f(n),l=w;break}}u=e}return c(s),r.join("");function c(n){r.push(t.substring(i,n)),i=n}function f(t){l===Vi||h()||(c(t),r.push(".",$,n))}function a(n){let e=0;if(t.charCodeAt(s)===il)for(let n=1;n<10;n++)if(t.charCodeAt(s+n)===il){e=n+1;break}t:for(let r=3;r<n.length;r++){const o=n[r];for(let n=0;n<o.length;n++)if((t.charCodeAt(s+n+e)|yl)!==o.charCodeAt(n))continue t;return s+=o.length+e,!0}return!1}function h(){return-1!==o.indexOf(Vi)||-1!==o.indexOf(Qi)}},Fi=t=>t>=ul&&t<=cl||t>=al&&t<=hl||t>=wl&&t<=ml||t>=128||t===pl||t===il,Li=t=>t===fl||t===ll||t===dl||t===ol||Fi(t),Ti=t=>t===Bi||t===Qi||t===Hi||t===Vi,Wi=t=>t===rl||t===tl||t===nl||t===el,Ui=0,Di=2,Vi=5,zi=6,Qi=10,Bi=11,Hi=12,Ji=17,Gi=18,Yi=0,Zi=1,Xi=2,Ki=3,tl=9,nl=10,el=13,rl=32,ol=35,sl=41,il=45,ll=46,ul=48,cl=57,fl=58,al=65,hl=90,dl=91,$l=92,pl=95,yl=32,wl=97,ml=122,bl=123,gl=125,vl=[[Yi,39,14],[Yi,34,15],[Yi,47,16,"*"]],Sl=[[[Yi,42,Di],[Yi,dl,7],[Yi,fl,zi,":","before","after","first-letter","first-line"],[Yi,fl,Vi,"global"],[Yi,fl,3,"has","host-context","not","where","is","matches","any"],[Yi,fl,4],[Yi,Zi,1],[Yi,ll,1],[Yi,ol,1],[Yi,64,Qi,"keyframe"],[Yi,64,Bi,"media","supports","container"],[Yi,64,Hi],[Yi,bl,13],[47,42,16],[Yi,59,Ji],[Yi,gl,Ji],[Yi,sl,Ji],...vl],[[Yi,Xi,Gi]],[[Yi,Xi,Gi]],[[Yi,40,Ui],[Yi,Xi,Gi]],[[Yi,40,8],[Yi,Xi,Gi]],[[Yi,40,Ui],[Yi,Xi,Ji]],[[Yi,Xi,Ji]],[[Yi,93,Gi],[Yi,39,14],[Yi,34,15]],[[Yi,sl,Ji],...vl],[[Yi,gl,Ji],...vl],[[Yi,gl,Ji],[Ki,Zi,1],[Yi,fl,Vi,"global"],[Yi,bl,13],...vl],[[Yi,bl,Ui],[Yi,59,Ji],...vl],[[Yi,59,Ji],[Yi,bl,9],...vl],[[Yi,gl,Ji],[Yi,bl,13],[Yi,40,8],...vl],[[Yi,39,Ji]],[[Yi,34,Ji]],[[42,47,Ji]]],kl=t=>({styleId:ql(t,t=>t,!1)}),xl=/*#__PURE__*/wn(kl),Rl=t=>({scopeId:$+ql(t,Mi,!0)}),Al=/*#__PURE__*/wn(Rl),ql=(t,n,e)=>{const{val:r,set:o,iCtx:s,i}=Lt();if(r)return r;const l=(u=i,`${fe(t.D)}-${u}`);var u;const c=s.k;if(o(l),!t.resolved)throw t.resolve().then(t=>s.u.zt(n(t,l),l,c,e));return s.u.zt(n(t.resolved,l),l,c,e),l},Pl=(t,n)=>{Ol(Nl(t,"on"),n)},jl=(t,n)=>{Ol(Nl(t,"document:on"),n)},Il=(t,n)=>{Ol(Nl(t,"window:on"),n)},Nl=(t,n)=>{const e=t=>{let e=n;return t===Wt&&(e+="-"),function(t,n){return n+(t=t.charAt(0).toUpperCase()+t.substring(1))+Tt}(t,e)};return Array.isArray(t)?t.map(e):e(t)},Ol=(t,n)=>{const{isAdded:e,addEvent:r}=Cl();e||n&&(Array.isArray(t)?t.forEach(t=>r(t,n)):r(t,n))},Cl=()=>{const t=kt(),n=t.k;let e=t.u.getHostProp(n,U);null===e&&(e={},t.u.setHostProp(n,U,e));let r=t.u.getHostProp(n,D);null===r&&(r=0),t.u.setHostProp(n,D,r+1);let o=t.u.getHostProp(n,V);for(null===o&&(o=[],t.u.setHostProp(n,V,o));o.length<=r;)o.push(!1);return{isAdded:o[r],addEvent:(t,n)=>{o[r]=!0;let s=e[t];s||(e[t]=s=[]),s.push(n)}}},El=t=>Ml(()=>{const n=c(t)&&!qi(t)?Rt(void 0,t):t;return _n(n)}),Ml=t=>{const{val:n,set:e}=Lt();return null!=n?n:e(t=c(t)&&!qi(t)?t():t)},_l=(t,n,e)=>{const{val:r,set:o}=Lt();if(r)return r;const s=n(t,e);return o(s),Vr(t),s},Fl=(t,n)=>_l(t,Cn,n),Ll=wn(Fl),Tl=t=>_l(t,Mn),Wl=wn(Tl),Ul=(t,n)=>{const{val:e,set:r,i:o,iCtx:s}=Lt(),i=n?.strategy??"intersection-observer";if(e)return;const l=new Fe(1,o,s.k,t,void 0,null);r(l),Dl(l,i),t.resolve(s._),s.u.q(32,l)},Dl=(t,n)=>{"intersection-observer"===n?Pl("qvisible",Vl(t)):"document-ready"===n?jl("qinit",Vl(t)):"document-idle"===n&&jl("qidle",Vl(t))},Vl=t=>$i(null,"_task",Te,null,null,[t]),zl=(t,n)=>Sr(vi(t),n),Ql=/*#__PURE__*/wn(Ee),Bl=/*#__PURE__*/wn(Ul),Hl=(t,n)=>_l(t,En,n),Jl=wn(Hl),Gl=()=>{const t=Ni({error:void 0});return Zt(Kt,t),t},Yl=t=>{import.meta;const n=import.meta.env.BASE_URL||"/",e={path:"qwik-prefetch-service-worker.js",...t};e.path=t?.path?.startsWith?.("/")?t.path:n+e.path;let r=Zl.replace("'_URL_'",JSON.stringify(e.path));r=r.replaceAll(/\s\s+/gm,"");const o={dangerouslySetInnerHTML:["("+r+")(",["navigator.serviceWorker"].join(","),");"].join(""),nonce:e.nonce};return We("script",null,o,null,0,"prefetch-service-worker")},Zl=/*#__PURE__*/(t=>{"getRegistrations"in t&&t.getRegistrations().then(t=>{t.forEach(t=>{t.active&&t.active.scriptURL.endsWith("_URL_")&&t.unregister().catch(console.error)})})}).toString(),Xl=()=>null;export{gi as $,Ke as Fragment,ai as NoSerializeSymbol,Xl as PrefetchGraph,Yl as PrefetchServiceWorker,Ze as RenderOnce,kr as Resource,Kn as SSRComment,Xn as SSRRaw,ne as SSRStream,te as SSRStreamBlock,hi as SerializerSymbol,Zn as SkipRender,Yn as Slot,dn as _CONST_PROPS,Dr as _DomContainer,ht as _EFFECT_BACK_REF,nn as _EMPTY_ARRAY,pn as _IMMUTABLE,_r as _SharedContainer,Qn as _SubscriptionData,yn as _UNINITIALIZED,$n as _VAR_PROPS,Qs as _deserialize,ei as _dumpState,Hn as _fnSignal,Mt as _getContextContainer,Ct as _getContextElement,Et as _getContextEvent,Lr as _getDomContainer,Wr as _getQContainerElement,Xe as _isJSXNode,Bn as _isStringifiable,_t as _jsxBranch,De as _jsxC,ze as _jsxQ,Ve as _jsxS,We as _jsxSorted,Ue as _jsxSplit,sn as _noopQrl,ln as _noopQrlDEV,Gs as _preprocessState,xi as _qrlSync,fn as _regSymbol,Gn as _restProps,hn as _run,Ws as _serializationWeakRef,zs as _serialize,Te as _task,kt as _useInvokeContext,si as _verifySerializable,$s as _vnode_toString,Ft as _waitUntilRendered,Ae as _walkJSX,Vn as _wrapProp,zn as _wrapSignal,Pi as component$,Ri as componentQrl,Ln as createAsyncComputed$,En as createAsyncComputedQrl,Fn as createComputed$,Cn as createComputedQrl,Yt as createContextId,He as createElement,Tn as createSerializer$,Mn as createSerializerQrl,_n as createSignal,ji as event$,Si as eventQrl,Lr as getDomContainer,ct as getLocale,Z as getPlatform,He as h,wn as implicit$FirstArg,on as inlinedQrl,cn as inlinedQrlDEV,e as isBrowser,r as isDev,n as isServer,zr as isSignal,Qe as jsx,tr as jsxDEV,Qe as jsxs,fi as noSerialize,rn as qrl,un as qrlDEV,Ii as render,Y as setPlatform,ki as sync$,jt as untrack,Sn as unwrapStore,Jl as useAsyncComputed$,Hl as useAsyncComputedQrl,Ll as useComputed$,Fl as useComputedQrl,Ml as useConstant,Xt as useContext,Zt as useContextProvider,Gl as useErrorBoundary,Oi as useId,an as useLexicalScope,Pl as useOn,jl as useOnDocument,Il as useOnWindow,zl as useResource$,Sr as useResourceQrl,Wl as useSerializer$,Tl as useSerializerQrl,Ci as useServerData,El as useSignal,Ni as useStore,xl as useStyles$,kl as useStylesQrl,Al as useStylesScoped$,Rl as useStylesScopedQrl,Ql as useTask$,Ee as useTaskQrl,Bl as useVisibleTask$,Ul as useVisibleTaskQrl,tn as version,ft as withLocale};
package/dist/core.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core 2.0.0-beta.4-dev+9849dcf
3
+ * @qwik.dev/core 2.0.0-beta.5-dev+8887f7e
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -1234,7 +1234,7 @@ const isRecoverable = (err) => {
1234
1234
  *
1235
1235
  * @public
1236
1236
  */
1237
- const version = "2.0.0-beta.4-dev+9849dcf";
1237
+ const version = "2.0.0-beta.5-dev+8887f7e";
1238
1238
 
1239
1239
  /** @internal */
1240
1240
  const EMPTY_ARRAY = [];
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core 2.0.0-beta.4-dev+9849dcf
3
+ * @qwik.dev/core 2.0.0-beta.5-dev+8887f7e
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -400,7 +400,7 @@
400
400
  set(1));
401
401
  };
402
402
  const ERROR_CONTEXT = /*#__PURE__*/ createContextId("qk-error");
403
- const version = "2.0.0-beta.4-dev+9849dcf";
403
+ const version = "2.0.0-beta.5-dev+8887f7e";
404
404
  const EMPTY_ARRAY = [];
405
405
  const EMPTY_OBJ = {};
406
406
  Object.freeze(EMPTY_ARRAY), Object.freeze(EMPTY_OBJ);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core 2.0.0-beta.4-dev+9849dcf
3
+ * @qwik.dev/core 2.0.0-beta.5-dev+8887f7e
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -703,7 +703,7 @@ const ERROR_CONTEXT = /*#__PURE__*/ createContextId("qk-error");
703
703
 
704
704
  const isRecoverable = err => !(err && err instanceof Error && "plugin" in err);
705
705
 
706
- const version = "2.0.0-beta.4-dev+9849dcf";
706
+ const version = "2.0.0-beta.5-dev+8887f7e";
707
707
 
708
708
  const EMPTY_ARRAY = [];
709
709
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/loader",
3
- "version": "2.0.0-beta.4-dev+9849dcf",
3
+ "version": "2.0.0-beta.5-dev+8887f7e",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/optimizer 2.0.0-beta.4-dev+9849dcf
3
+ * @qwik.dev/core/optimizer 2.0.0-beta.5-dev+8887f7e
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -1257,7 +1257,7 @@ globalThis.qwikOptimizer = function(module) {
1257
1257
  }
1258
1258
  };
1259
1259
  var versions = {
1260
- qwik: "2.0.0-beta.4-dev+9849dcf"
1260
+ qwik: "2.0.0-beta.5-dev+8887f7e"
1261
1261
  };
1262
1262
  async function getSystem() {
1263
1263
  const sysEnv = getEnv();
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/optimizer 2.0.0-beta.4-dev+9849dcf
3
+ * @qwik.dev/core/optimizer 2.0.0-beta.5-dev+8887f7e
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -1282,7 +1282,7 @@ var QWIK_BINDING_MAP = {
1282
1282
  };
1283
1283
 
1284
1284
  var versions = {
1285
- qwik: "2.0.0-beta.4-dev+9849dcf"
1285
+ qwik: "2.0.0-beta.5-dev+8887f7e"
1286
1286
  };
1287
1287
 
1288
1288
  async function getSystem() {
package/dist/server.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/server 2.0.0-beta.4-dev+9849dcf
3
+ * @qwik.dev/core/server 2.0.0-beta.5-dev+8887f7e
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -1170,7 +1170,7 @@ function getBuildBase(opts) {
1170
1170
  return `${globalThis.BASE_URL || "/"}build/`;
1171
1171
  }
1172
1172
  var versions = {
1173
- qwik: "2.0.0-beta.4-dev+9849dcf",
1173
+ qwik: "2.0.0-beta.5-dev+8887f7e",
1174
1174
  qwikDom: "2.1.19"
1175
1175
  };
1176
1176
 
@@ -2566,7 +2566,7 @@ var SSRContainer = class extends import_core4._SharedContainer {
2566
2566
  const qwikLoaderScript = getQwikLoaderScript({
2567
2567
  debug: this.renderOptions.debug
2568
2568
  });
2569
- const scriptAttrs = ["id", "qwikloader", "async", true];
2569
+ const scriptAttrs = ["id", "qwikloader", "async", true, "type", "module"];
2570
2570
  const nonce = (_a = this.renderOptions.serverData) == null ? void 0 : _a.nonce;
2571
2571
  if (nonce) {
2572
2572
  scriptAttrs.push("nonce", nonce);
package/dist/server.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/server 2.0.0-beta.4-dev+9849dcf
3
+ * @qwik.dev/core/server 2.0.0-beta.5-dev+8887f7e
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -1125,7 +1125,7 @@ function getBuildBase(opts) {
1125
1125
  return `${import.meta.env.BASE_URL || "/"}build/`;
1126
1126
  }
1127
1127
  var versions = {
1128
- qwik: "2.0.0-beta.4-dev+9849dcf",
1128
+ qwik: "2.0.0-beta.5-dev+8887f7e",
1129
1129
  qwikDom: "2.1.19"
1130
1130
  };
1131
1131
 
@@ -2523,7 +2523,7 @@ var SSRContainer = class extends _SharedContainer {
2523
2523
  const qwikLoaderScript = getQwikLoaderScript({
2524
2524
  debug: this.renderOptions.debug
2525
2525
  });
2526
- const scriptAttrs = ["id", "qwikloader", "async", true];
2526
+ const scriptAttrs = ["id", "qwikloader", "async", true, "type", "module"];
2527
2527
  const nonce = this.renderOptions.serverData?.nonce;
2528
2528
  if (nonce) {
2529
2529
  scriptAttrs.push("nonce", nonce);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/testing 2.0.0-beta.4-dev+9849dcf
3
+ * @qwik.dev/core/testing 2.0.0-beta.5-dev+8887f7e
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -32711,7 +32711,7 @@ var SSRContainer = class extends import_core6._SharedContainer {
32711
32711
  const qwikLoaderScript = getQwikLoaderScript({
32712
32712
  debug: this.renderOptions.debug
32713
32713
  });
32714
- const scriptAttrs = ["id", "qwikloader", "async", true];
32714
+ const scriptAttrs = ["id", "qwikloader", "async", true, "type", "module"];
32715
32715
  const nonce = (_a = this.renderOptions.serverData) == null ? void 0 : _a.nonce;
32716
32716
  if (nonce) {
32717
32717
  scriptAttrs.push("nonce", nonce);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/testing 2.0.0-beta.4-dev+9849dcf
3
+ * @qwik.dev/core/testing 2.0.0-beta.5-dev+8887f7e
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -32677,7 +32677,7 @@ var SSRContainer = class extends _SharedContainer2 {
32677
32677
  const qwikLoaderScript = getQwikLoaderScript({
32678
32678
  debug: this.renderOptions.debug
32679
32679
  });
32680
- const scriptAttrs = ["id", "qwikloader", "async", true];
32680
+ const scriptAttrs = ["id", "qwikloader", "async", true, "type", "module"];
32681
32681
  const nonce = this.renderOptions.serverData?.nonce;
32682
32682
  if (nonce) {
32683
32683
  scriptAttrs.push("nonce", nonce);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/testing",
3
- "version": "2.0.0-beta.4-dev+9849dcf",
3
+ "version": "2.0.0-beta.5-dev+8887f7e",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qwik.dev/core",
3
3
  "description": "An open source framework for building instant loading web apps at any scale, without the extra effort.",
4
- "version": "2.0.0-beta.4",
4
+ "version": "2.0.0-beta.5",
5
5
  "author": "Qwik Team",
6
6
  "bin": {
7
7
  "qwik": "./qwik-cli.cjs"
@@ -18,7 +18,7 @@
18
18
  "prettier": "3.5.3",
19
19
  "ts-morph": "23.0.0",
20
20
  "vitest": "3.2.4",
21
- "@qwik.dev/core": "2.0.0-beta.4",
21
+ "@qwik.dev/core": "2.0.0-beta.5",
22
22
  "@qwik.dev/dom": "2.1.19"
23
23
  },
24
24
  "engines": {