@qwik.dev/core 2.0.0-beta.31 → 2.0.0-beta.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backpatch/package.json +1 -1
- package/dist/build/package.json +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/core-internal.d.ts +112 -34
- package/dist/core.min.mjs +2 -2
- package/dist/core.mjs +696 -347
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.mjs +3269 -3020
- package/dist/loader/index.mjs +2 -2
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.mjs +4 -4
- package/dist/qwikloader.debug.js +237 -90
- package/dist/qwikloader.js +1 -1
- package/dist/server.mjs +10 -7
- package/dist/server.prod.mjs +694 -690
- package/dist/starters/adapters/bun/src/entry.bun.ts +2 -8
- package/dist/starters/adapters/cloud-run/src/entry.cloud-run.tsx +2 -4
- package/dist/starters/adapters/deno/src/entry.deno.ts +2 -8
- package/dist/starters/adapters/express/src/entry.express.tsx +1 -4
- package/dist/starters/adapters/fastify/src/plugins/fastify-qwik.ts +1 -2
- package/dist/starters/adapters/node-server/src/entry.node-server.tsx +2 -4
- package/dist/testing/index.d.ts +5 -3
- package/dist/testing/index.mjs +717 -281
- package/dist/testing/package.json +1 -1
- package/package.json +3 -3
package/dist/core.min.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function t(t){let n="";for(let e=0;e<t.length;e++)"\\"===t.charAt(e)&&e+1<t.length?(n+=t.charAt(e+1),e++):n+=t.charAt(e);return n}function n(t,n=pr){let e,r=!1;try{e=t(),r=!0}catch(t){e=t}if(!hr(e))return r?e:n(e);let i=ar;const s=async e=>{for(;hr(e);)try{return await e,await t()}catch(t){if(!hr(t)){e=t;break}if(! --i){e=Error("Exceeded max retry count in retryOnPromise");break}e=t}return n(e)};return r?e.catch(s):s(e)}function e(t){if(t.endsWith("$")){const[n,e]=(t=>{let n,e=-1;return t.startsWith("on")?(n="q-e:",e=2):t.startsWith("window:on")?(n="q-w:",e=9):t.startsWith("document:on")&&(n="q-d:",e=11),[n,e]})(t);if(-1!==e){const r=t.slice(e,-1);return"DOMContentLoaded"===r?n+"-d-o-m-content-loaded":((t,n)=>n+br(t))("-"===r.charAt(0)?r.slice(1):r.toLowerCase(),n)}}return null}function r(t,n,e){if((t=>"class"===t)(t)){const t=Sr(n);n=e?e+(t.length?" "+t:t):t}else"style"===t?n=(t=>{if(null==t)return"";if("object"==typeof t){if(we(t))throw ge(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(kr(e)+":"+xr(e,r)))}return n.join(";")}}return t+""})(n):(t=>t.startsWith("aria-")||["spellcheck","draggable","contenteditable"].includes(t))(t)||"number"==typeof n?n=(t=>null!=t?t+"":null)(n):!1===n||null==n?n=null:!0===n&&(t=>t.startsWith("preventdefault:"))(t)&&(n="");return n}function i(){if(Qr||!Br.length)return;Vr=!1,Qr=!0;const t=Jr?performance.now()+Ir:0;let n=!1;for(;Br.length;){n=!0;const e=Yr();if(Jr&&e&&performance.now()>=t){Vr||(Vr=!0,Wr());break}}Qr=!1,n&&Jr&&Dr()}function s(t,n,e,r=!1){const i=t.ownerDocument.createElementNS(e,n);for(let n=0;n<t.attributes.length;n++){const e=t.attributes[n];e.name!==cr&&i.setAttribute(e.name,e.value)}if(r)for(let n=0;n<t.childNodes.length;n++){const o=t.childNodes[n],l=o.nodeType;3===l?i.appendChild(o.cloneNode()):1===l&&i.appendChild(s(o,o.localName,e,r))}return i}function o(t,n){const e=!t||!(!Ho(t)||(r=t,1536&r.flags));var r;const i=!e&&ii(Ho(t));let s=Be,o=0;const l="string"==typeof n||mo(n);return l&&(t=>"string"==typeof t?si(t):!!mo(t)&&(si(Ho(t))||!!(512&t.flags)))(n)?(s=He,o=512):l&&(t=>"string"==typeof t?oi(t):!!mo(t)&&(oi(Ho(t))||!!(1024&t.flags)))(n)?(s=Ye,o=1024):!t||i||e||(s=512&t.flags?He:1024&t.flags?Ye:Be,o=1536&t.flags),li.elementNamespace=s,li.elementNamespaceFlag=o,li}function l(t,n){const e=d(n).priority;let r=hi.length;for(let t=0;t<hi.length;t++)if(e<d(hi[t]).priority){r=t;break}hi.splice(r,0,n),t.o++,t.l||=new Promise(n=>t.u=n)}function c(){for(let t=0;t<hi.length;t++){const n=hi[t];let e=!1;for(let t=0;t<di.length;t++)if(ml(n,di[t])){e=!0;break}if(!e)return n}return null}function u(t,n){di.push(t),a(t,n,!0),n.o++}function f(t,n){const e=di.indexOf(t);if(-1!==e){const t=di.length-1;e!==t&&(di[e]=di[t]),di.pop(),n.o--}l(n,t)}function a(t,n,e){e||(t.flags&=-257);const r=hi.indexOf(t);-1!==r&&(hi.splice(r,1),n.o--)}function h(t,n,e){n.position=e,e&&Ht(e)&&((t,n,e)=>{a(e,t);const r=d(e);if(r===n)return;const i=r.afterFlushTasks;if(i&&i.length>0){const t=n.afterFlushTasks;t?t.push(...i):n.afterFlushTasks=i}const s=r.extraPromises;if(s&&s.length>0){const t=n.extraPromises;t?t.push(...s):n.extraPromises=s}const o=r.journal;if(o&&o.length>0){const t=n.journal;t?t.push(...o):n.journal=o}})(t,n,e)}function d(t){return $i.get(t)??null}function $(t,n,e){t[ei]||(t[ei]=new Map);const r=t[ei];let i=r.get(n);return i||(i=new vi(t,n),r.set(n,i)),e&&(i.data=e),i}function p(t){return new Proxy({},new Ti(t))}function m(t,n){cs(this,n),Iu[0].value="number"===n.type?n.valueAsNumber:n.value}function y(t,n){cs(this,n),Iu[0].value=n.checked}function w(t,n){if(cs(this,n),Iu)for(let t=0;t<Iu.length;t++){const n=Iu[t];n instanceof Ei&&64&n.h&&n.$()}}function b(t,n,...e){const r={children:arguments.length>2?e.flat(100):null};let i=null;for(const t in n)"key"==t?i=n[t]:r[t]=n[t];return ys(t,n,null,r.children,0,i)}function v(t,n){const e=S(t);let r=t;const i="q-e:qvisible";return $r(e,t=>{const e=!t;let s=null;for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)){let l=t,c=o;if(e){if(o!==i&&!o.startsWith("q-d:")&&!o.startsWith("q-w:"))continue;if(!s){const[t,n]=k(r);r=n,s=t}l=s}l&&("script"===l.type&&o===i&&(c="q-d:qinit"),g(l,c,n[o]))}return r})}function g(t,n,e){const r=t.constProps||={},i=r[n];null==i?r[n]=e:Array.isArray(i)?i.push(...e):r[n]=[i,...e],t.varProps[n]&&(Array.isArray(i)?i.push(...r[n]):t.varProps[n]=[i,...e],r[n]=void 0)}function S(t){const n=[t];for(;n.length;){const t=n.shift();if(hs(t)){if("string"==typeof t.type)return t;n.push(t.children)}else if(we(t))n.push(...t);else{if(hr(t))return $r(t,t=>S(t));if(Pl(t))return S(t.untrackedValue)}}return null}function k(t){if(hs(t)){const n=x();return t.type===qs||ef(t.type)?(null==t.children?t.children=n:we(t.children)?t.children.push(n):t.children=[t.children,n],[n,t]):[n,ms(qs,null,null,[t,n],0,null)]}if("object"!=typeof(n=t)&&"function"!=typeof n||null==n){const n=x();return[n,ms(qs,null,null,[t,n],0,null)]}var n;if(we(t)&&t.length>0){const[n,e]=k(t[0]);return[n,t]}return[null,t]}function x(){return new fs("script",null,{hidden:""},null,0,null)}function q(t,n,e,r){if(null!=e){if(r){const r=(t=>{switch(t){case"xlink:href":case"xlink:actuate":case"xlink:arcrole":case"xlink:role":case"xlink:show":case"xlink:title":case"xlink:type":return"http://www.w3.org/1999/xlink";case"xml:base":case"xml:lang":case"xml:space":return"http://www.w3.org/XML/1998/namespace";default:return null}})(n);if(r)return void((t,n,e,r)=>{Is||(Is=t.setAttributeNS),Is.call(t,n,e,r)})(t,r,n,e)}i=t,Ns||(Ns=i.setAttribute),Ns.call(i,n,e)}var i}function R(t){return!t.startsWith("q:")&&!t.startsWith(ir)}function C(t,e,r,i){if(!r.isConnected)return;i||(i=wu(e,r));const s=i.p,o=i.m;Ro(s,o);let l=t;if(64&o.flags){let n;128&o.flags||(n=!0,o.flags|=128);const i=n?s.k:null,c=So(o,er,i);if(null!==c)l=()=>t(e,r,c);else{const n=So(o,rr,i);null!==n&&(l=()=>t(e,r,...n))}}return n(()=>{if(!(32&o.flags))return Bn(i,l,[e,r])},t=>s.handleError(t,o))}function E(t,n){if(!n.isConnected)return;const e=wu(t,n);return"string"==typeof this&&Tu(Fu(e.p,this)),C(Iu[0],t,n,e)}function j(t){return t.q===t.R?t.j:null}function _(t){return t._||j(t)}function P(t,n){const e=(t=>t?t.nextSibling:null)(n);return e===j(t)?null:e}function O(t,n,e,r,i,s){import.meta.env.TEST&&i&&ko(n,fr,i),ko(n,e,s),Kt(t,Bs(n.node,e,r,i,!!(512&n.flags)))}function A(t,n,e,r){return{p:t,O:n,M:e,N:r,T:[],L:[],D:[],q:null,_:null,W:null,j:null,R:null,U:null,J:null,B:null,H:null,Y:null,X:0,G:0,K:!0,Z:!1,tt:{nt:new ls({N:r,et:!0}),rt:new ls({N:r,et:!1})}}}function M(t,n,e,r,i){const s=t??A(n,e,r,i);return((t,n,e,r,i)=>{t.p=n,t.O=e,t.M=r,t.N=i,t.tt.nt.data.N=i,t.tt.rt.data.N=i,t.L.length=0,t.D.length=0})(s,n,e,r,i),s}function N(t,n,e,r=Go(e),i=null,s=!1){I(t,n,e,r,i,s);const o=J(t);if(hr(o))return o.finally(()=>{B(t)});B(t)}function I(t,n,e,r=Go(e),i=null,s=!1){const o=t.Z;t.Z=s||o,t.q=e,t.W=null,t._=r,t.j=i,t.R=e,D(t,n,!0);try{if(32&t.q.flags)return;for(;t.T.length;){for(;t.X<t.G;){if("string"==typeof t.Y)ht(t,t.Y);else if("number"==typeof t.Y)ht(t,t.Y+"");else if(t.Y&&"object"==typeof t.Y)if(hs(t.Y)){const n=t.Y.type;"string"==typeof n?(X(t),it(t,t.Y,n),t.Y.constProps&&Ys.call(t.Y.constProps,ur)||Ys.call(t.Y.varProps,ur)?t.W||H(t,!1):z(t,t.Y.children,!0)):"function"==typeof n&&(n===qs?(X(t),ct(t,"F",t.Y.key),z(t,t.Y.children,!0)):n===Es?(X(t),V(t)||z(t,t.Y.children,!0)):n===pt?(U(t),z(t,t.Y.children,!0,!1)):n===Ps||n===_s?Y(t):(X(t),ut(t,n)))}else if(Array.isArray(t.Y))z(t,t.Y,!1);else if(Pl(t.Y)){ct(t,"S",null);const n=t.Y instanceof os?t.Y.it():t.Y,e=t._?.[ei]?.get(".")?.backRef;let r=e?.has(n);if(e&&n instanceof os&&(r=St(e,n)),!r){const e=t.W||t._;z(t,T(t,()=>Su(n,e,".",t.p)),!0)}}else hr(t.Y)&&(ct(t,"A",null),t.L.push(t.Y,t.W||t._));else t.Y===js||ht(t,"");F(t)}Y(t),Q(t),L(t)}}finally{t.Z=o}}function T(t,e){try{return e()}catch(r){if(hr(r)){const i=r.then(()=>n(e));return t.L.push(i,t.W||t._),null}throw r}}function F(t){if(t.K){if(t.X++,t.X<t.G)t.Y=t.H[t.X];else if(t.T.length>0&&!1===t.T[t.T.length-1])return L(t);null!==t.W?t.W=null:t._=P(t,t._)}else t.K=!0}function z(t,n,e,r=!0){if(r&&(null==n||e&&we(n)&&0===n.length))H(t);else{if(D(t,n,e),e){const n=t.Z||!!t.W||!Go(t._);t.Z=n,t.B=null,t.U=null,t.J=null,t.q=t.W||t._,t._=Go(t.q),t.W=null}t.K=!1}}function L(t){t.T.pop()&&(t.Z=t.T.pop(),t.B=t.T.pop(),t.U=t.T.pop(),t.J=t.T.pop(),t.W=t.T.pop(),t._=t.T.pop(),t.q=t.T.pop()),t.Y=t.T.pop(),t.G=t.T.pop(),t.X=t.T.pop(),t.H=t.T.pop(),F(t)}function D(t,n,e){t.T.push(t.H,t.X,t.G,t.Y),e&&t.T.push(t.q,t._,t.W,t.J,t.U,t.B,t.Z),t.T.push(e),Array.isArray(n)?(t.X=0,t.G=n.length,t.H=n,t.Y=t.G>0?n[0]:null):void 0===n?(t.X=0,t.Y=null,t.H=null,t.G=0):(t.X=0,t.Y=n,t.H=null,t.G=1)}function W(t){return t.W?_(t):P(t,t._)||j(t)}function U(t){const n=t.Y.key;t._=So(t.q,n,n=>_o(t.p.rootVNode,n)),t._=t._&&32&t._.flags?null:t._,null==t._&&(t.W=$o(),ko(t.W,_e,n),t.W.slotParent=t.q,ko(t.q,n,t.W))}function V(t){const n=xl(t.q),e=((t,n)=>{const e=t.Y,r=e.constProps;if(r&&"object"==typeof r&&Ys.call(r,"name")){const e=r.name;if(n&&e instanceof os)return Su(e,n,":",t.p)}return Li(e,"name")||""})(t,n),r=n?So(n,e,null):null;if(null==r)return t.W=$o(),ko(t.W,_e,e),n&&ko(n,e,t.W),Uo(t.O,t.q,t.W,W(t)),!1;if(r===t._);else{const i=r.parent;t.W=r,ko(t.W,_e,e),n&&ko(n,e,t.W),Wo(t.O,t.W),Uo(t.O,t.q,t.W,W(t)),i&&mo(i)&&!i.firstChild&&Ho(i)===Je&&Jo(t.O,i.parent,i,!0)}return!0}function Q(t){const n=t.B;if(n){for(const e of n.values())32&e.flags||(wt(t.p,t.O,e,t.M),Jo(t.O,t.q,e,!0));n.clear(),t.B=null}t._=null}function J(t){for(;t.L.length;){const n=t.L.shift(),e=t.L.shift();if(hr(n))return n.then(n=>(I(t,n,e),J(t))).catch(n=>(t.p.handleError(n,e),J(t)));I(t,n,e)}if(t.D.length){const n=t.D.splice(0);return Promise.all(n).then(()=>J(t))}}function B(t){t.O=null,t.M=null}function H(t,n=!0){const e=t._&&Go(t._);if(null!==e){let r=e;for(;r;)wt(t.p,t.O,r,t.M),r=r.nextSibling;Bo(t.O,t._,e,n)}}function Y(t){const n=j(t);if(null!==t._&&t._!==n)for(;t._&&t._!==n;){const n=t._;t._=P(t,t._),t.q===n.parent&&(wt(t.p,t.O,n,t.M),Jo(t.O,t.q,n,!0))}}function X(t){if(null!==t._&&bo(t._)){const n=t._;t._=P(t,t._),Jo(t.O,t.q,n,!0)}}function G(t,n,e){if(Pl(t))return t.value=n,!0;if("function"==typeof t)return t(n),!0;if(null==t)return!0;throw ge(15,[e])}function K(t,e,r,i,s){return n(()=>Su(i,e,r,t,s))}function Z(t,n,e,i,s){const o=t.N,l=i.then(t=>q(n,e,r(e,t,o),s));t.D.push(l)}function tt(t,n){n&&(t.innerHTML=n+"",t.setAttribute(Ve,"html"))}function nt(t,n){return n&&"string"!=typeof n||(t.value=(t=>{let n="";const e=t.length;let r=0,i=r;for(;r<e;r++){const e=t.charCodeAt(r);if(60===e)n+=t.substring(i,r)+"<";else if(62===e)n+=t.substring(i,r)+">";else if(38===e)n+=t.substring(i,r)+"&";else if(34===e)n+=t.substring(i,r)+""";else{if(39!==e)continue;n+=t.substring(i,r)+"'"}i=r+1}return 0===i?t:n+t.substring(i)})(n||"")),!0}function et(t,n,e,i){const s=((t,n)=>{const e=o(Qo(t.q,!0),n),r=import.meta.env.TEST?t.p.document:document,i=0===e.elementNamespaceFlag?r.createElement(n):r.createElementNS(e.elementNamespace,n);return t.W=fo(i,n),t.W.flags|=e.elementNamespaceFlag,i})(t,e),l=t.W,c=!!(512&l.flags),{constProps:u}=n;if(u)for(const n in u){let o=u[n];wr(n)?rt(n,o,s,l,t):"ref"===n&&G(o,s,i)||(Pl(o)&&(o=K(t.p,t.W,n,o,t.tt.nt)),hr(o)?Z(t,s,n,o,c):n!==ur?"textarea"===e&&"value"===n&&nt(s,o)||q(s,n,r(n,o,t.N),c):tt(s,o))}const f=n.key;f&&(t.W.key=f),t.N&&(Ys.call(n.varProps,"class")||n.constProps&&Ys.call(n.constProps,"class")||s.setAttribute("class",t.N)),To(t.O,t.q,t.W,_(t))}function rt(t,n,e,r,i){const s=t.slice(2);if(Array.isArray(n)){const t=n,r=[];for(let n=0;n<t.length;n++){const e=t[n];if(Array.isArray(e))for(let t=0;t<e.length;t++){const n=e[t];n&&r.push(C.bind(null,n))}else e&&r.push(C.bind(null,e))}r.length>0&&((e._qDispatch||={})[s]=1===r.length?r[0]:r)}else n&&((e._qDispatch||={})[s]=C.bind(null,n));"e"!==t.charAt(2)&&xo(i.O,r,t,""),((t,n)=>{const e=import.meta.env.TEST?t.p.document.defaultView:window;e&&(e._qwikEv||=[]).push(n)})(i,s)}function it(t,n,e){if(t.Z)et(t,n,e,null);else{const r=t._&&mo(t._),i=r&&e===Ho(t._),s=n.key;i&&s===(r&&t._.key)?ot(t,e,s):lt(t,e,s,st(e,s),t.q)&&et(t,n,e,null)}const r=n.varProps;r&&((t,n,e,r)=>{t.Z||Ro(t.p,n);const i=n.props;for(const s in e){const o=e[s];if(i&&Ys.call(i,s)){const e=i[s];if(o!==e){if(o instanceof os&&e instanceof os&>(o,e))continue;Ks(t,n,s,o,r)}}else null!=o&&Ks(t,n,s,o,r)}if(i)for(const s in i)Ys.call(e,s)||":"===s.charAt(0)||wr(s)||Ks(t,n,s,null,r)})(t,t.W||t._,r,null)}function st(t,n){return null==n?null:t?t+":"+n:n}function ot(t,n,e){const r=st(n,e);return!(!r||!t.B?.has(r)||(t.B.delete(r),0))}function lt(t,n,e,r,i,s){if(t.W=((t,n,e)=>{let r=null;if(null===t.U){const i=t._;if(i){const r=mo(i)?Ho(i):null;if((dt(i)||$t(i,t.p.k))===e&&r===n)return i}t.U=new Map,t.J=[];const s=j(t);let o=t._;for(;o&&o!==s;){const i=mo(o)?Ho(o):null,s=dt(o)||$t(o,t.p.k);null===r&&s==e&&i==n?r=o:null===s?t.J.push(i,o):t.U.set(st(i,s),o),o=o.nextSibling}}else if(null===e){for(let e=0;e<t.J.length;e+=2)if(t.J[e]===n){r=t.J[e+1],t.J.splice(e,2);break}}else{const i=st(n,e),s=t.U.get(i);s&&(r=s,t.U.delete(i))}return((t,n)=>{if(!n){if(t._){const n=mo(t._)?Ho(t._):null,e=dt(t._)||$t(t._,t.p.k);if(null!=e){const r=st(n,e);t.B||=new Map,t.B.set(r,t._),t.U?.delete(r)}}return}const e=j(t);let r=t._;for(;r&&r!==n&&r!==e;){const n=mo(r)?Ho(r):null,e=dt(r)||$t(r,t.p.k);if(null!=e){const i=st(n,e);t.B||=new Map,t.B.set(i,r),t.U?.delete(i)}r=r.nextSibling}})(t,r),r})(t,n,e),t.W)return r||Uo(t.O,i,t.W,_(t)),t._=t.W,t.W=null,!1;if(null!=r){const n=t.B?.get(r)||null;if(n){if(t.B.delete(r),s&&t._){const n=dt(t._)||$t(t._,t.p.k);if(null!=n){const e=st(mo(t._)?Ho(t._):null,n);null!=e&&(t.B||=new Map,t.B.set(e,t._))}}return n!==t._&&Uo(t.O,i,n,_(t)),t._=n,t.W=null,!1}}return!0}function ct(t,n,e){const r="F"===n,i=dt(t._);if(!t._||!vo(t._)||i!==e||r&&!e)return null===e||t.Z?(Fo(t.O,t.q,t.W=$o(),W(t)),void(t.W.key=e)):void(lt(t,null,e,st(null,e),t.q,!0)&&(Fo(t.O,t.q,t.W=$o(),W(t)),t.W.key=e));ot(t,null,i)}function ut(t,n){const e=n[nf];let r=t.W||t._;const i=t.Y;if(e){const n=i.props;let s=!1;const[o]=e,l=o.st,c=$t(r,t.p.k),u=i.key||l;if(u===(dt(r)||c)?l===c?ot(t,null,u):(ft(t,r,o,n),r=t.W,s=!0):(lt(t,null,u,u,t.q)&&(ft(t,r,o,n),s=!0),r=t.W||t._),r){const e=So(r,Ze,t.p.k);if(!s){const l=((t,n,e,r)=>{let i=!1;if(e){const t=mt(n[ji],e[ji],e[Oi],r,!1);i||=t;const s=mt(n[_i],e[_i],e[Oi],r,!0);i||=s,e[Pi]=n[Pi]}else n&&(ko(t,Ze,n),e=n);return i})(r,n,e,t.p);l&&null==i.key&&(ft(t,r,o,n),r=t.W,s=!0),s||=l}s&&(ko(r,Ce,o),r.flags&=-33,Gt(t.p,r,4,t.M))}((t,n,e)=>{const r=Array.isArray(n)?n:[n],i=t=>new fs(pt,null,null,[],0,t),s=[];if(e){const t=e.props;if(t)for(const n in t)R(n)&&de(s,n,i(n),0)}if(0!==s.length||null!=n){for(let t=0;t<r.length;t++){const n=r[t],e=(hs(n)&&Li(n,_e)||"")+"",o=he(s,e,0);let l;o>=0?l=s[o+1]:s.splice(~o,0,e,l=i(e)),!1===n||l.children.push(n)}for(let t=s.length-2;t>=0;t-=2)s.splice(t,1);z(t,s,!0)}})(t,i.children,r)}else{const e=i.key,s=e===dt(r),o=$t(r,t.p.k);if(r&&null!=o||!r?(at(t),r=t.W):s?ot(t,null,e):(lt(t,null,e,e,t.q)&&at(t),r=t.W||t._),r){let e=r;for(;e&&(!vo(e)||null===So(e,Ce,null));)e=e.parent||xl(e);const s=Cs(t.p,r,e||t.p.rootVNode,n,i.props);t.L.push(s,r)}}}function ft(t,n,e,r){n&&ln(t.p,n),Fo(t.O,t.q,t.W=$o(),W(t));const i=t.Y;ko(t.W,Ce,e),ko(t.W,Ze,r),t.W.key=i.key}function at(t){Fo(t.O,t.q,t.W=$o(),W(t));const n=t.Y;ko(t.W,Ze,n.props),n.key&&(t.W.key=n.key)}function ht(t,n){if(null!==t._&&3===Sl(t._))return n!==Yo(t._)?void Xo(t.O,t._,n):void 0;To(t.O,t.q,t.W=ho((import.meta.env.TEST?t.p.document:document).createTextNode(n),n),_(t))}function dt(t){return null==t||bo(t)?null:t.key}function $t(t,n){if(null==t||bo(t))return null;const e=So(t,Ce,n);return e?e.st:null}function pt(){}function mt(t,n,e,r,i=!0){if(yt(t)&&yt(n))return!1;e.p=r;let s=!1;if(t)for(const r in t)if("children"!==r&&r!==Te&&(!n||t[r]!==n[r])){if(!i)return!0;n&&(n[r]=t[r]),zi(e,r)||(s=!0)}if(n)for(const r in n)"children"===r||r===Te||t&&Ys.call(t,r)||!i||(delete n[r],zi(e,r)||(s=!0));return s}function yt(t){return!t||Kr(t)}function wt(t,n,e,r=null){let i=e;if(bo(e))return void vt(i);let s=null;for(;;){const o=i.flags;if(3&o){if(ln(t,i),vt(i),2&o&&null!==So(i,Ce,null)){const e=t.getHostProp(i,tr);if(e)for(let n=0;n<e.length;n++){const s=e[n];if(ye(s)){const n=jl(s);if(n&&1&s.h){s.h|=16,Gt(t,i,64,r);continue}(s instanceof qi||Ql(s))&&ln(t,s),(n||s instanceof Ei)&&Hs(s)}}const s=i.props;if(s){const e=Object.keys(s);for(let i=0;i<e.length;i++){const o=e[i];if(R(o)){const e=s[o];if(e){s[o]=null;const i="string"==typeof e?_o(t.rootVNode,e):e;let l=Go(i);for(;l;)wt(t,n,l,r),l=l.nextSibling;bt(n,i)}}}}}if(go(i)){if(i===e){const t=Go(i);if(t)return void nn(t,()=>{})}}else{const t=Go(i);if(t){i=t;continue}}}else 4&o&&vt(i);if(i===e)return;const l=i.nextSibling;if(l)i=l;else{for(s=i.parent;s;){if(s===e)return;const t=s.nextSibling;if(t){i=t;break}s=s.parent}if(null==s)return}}}function bt(t,n){const e=n.parent;e&&1&e.flags&&Ho(e)===Je&&Jo(t,e,n,!0)}function vt(t){t.flags|=32}function gt(t,n){return t===n||n.ot===t.ot&&((t,n)=>{if(t===n)return!0;if(!t||!n||t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0})(n.lt,t.lt)}function St(t,n){if(!(n instanceof os))return!1;for(let e=0;e<t.length;e++){const r=t[e];if(r instanceof os&>(r,n))return!0}return!1}function kt(t,n,e,r){const i=r(t,n);return i.key=e,i}function xt(t,n,e,r,i,s){const o=Array(s-i+1);for(let l=i;l<=s;l++){const s=n[l]??(n[l]=e(t[l],l));o[l-i]=kt(t[l],l,s,r)}return o}function qt(t,n,e){let r=n?n.previousSibling:t.lastChild;for(let t=1;t<e&&r;t++)r=r.previousSibling;return r}function Rt(t,n,e,r,i,s,o){const l=t,c=i.length,u=Go(e),f=A(l,n,r,null),a=Array(c);if(null===u)return c>0?Gs(l,n,xt(i,a,s,o,0,c-1),e,null,null,r,null,!0,f):void 0;if(0===c)return void Bo(n,e,u,!0);let h=0,d=c-1,$=u;for(;$&&h<=d&&$.key===(a[h]??=s(i[h],h));)$=$.nextSibling,h++;if(null===$){if(h>d)return;return Gs(l,n,xt(i,a,s,o,h,d),e,null,null,r,null,!0,f)}if(h>d)return void Bo(n,e,$,!0);const p=$.previousSibling;let m=e.lastChild;for(;m!==p&&d>=h&&m.key===(a[d]??=s(i[d],d));)m=m.previousSibling,d--;const y=m?m.nextSibling:$;if(h>d){let t=$;for(;t&&t!==y;){const r=t.nextSibling;Jo(n,e,t,!0),t=r}return}if(m===p){const t=y;return Gs(l,n,xt(i,a,s,o,h,d),e,t,t,r,null,!0,f)}for(let t=h;t<=d;t++)a[t]??=s(i[t],t);const w=d-h+1,b=new Map;for(let t=h;t<=d;t++)b.set(a[t],t-h);const v=((t,n=null)=>{const e=[];let r=t;for(;r&&(e.push(r),r!==n);)r=r.nextSibling;return e})($,m),g=[],S=new Map;for(let t=0;t<v.length;t++){const r=v[t],i=r.key;b.has(i)?(S.set(i,g.length),g.push(r)):Jo(n,e,r,!0)}const k=new Int32Array(w);k.fill(-1);const x=[],q=[];for(let t=0;t<w;t++){const n=S.get(a[h+t]);void 0!==n&&(k[t]=n,q.push(t),x.push(n))}const R=new Uint8Array(w),C=(t=>{const n=t.length;if(0===n)return[];const e=[],r=Array(n).fill(-1);for(let i=0;i<n;i++){const n=t[i];let s=0,o=e.length;for(;s<o;){const r=s+o>>1;t[e[r]]<n?s=r+1:o=r}s>0&&(r[i]=e[s-1]),s===e.length?e.push(i):e[s]=i}const i=[];let s=e[e.length-1];for(;-1!==s;)i.push(s),s=r[s];return i.reverse(),i})(x);for(let t=0;t<C.length;t++)R[q[C[t]]]=1;let E=d,j=y;const _=()=>{for(;E>=h;){const t=E-h;if(1===R[t]){j=g[k[t]],E--;continue}const s=k[t];if(-1!==s){const t=g[s];(null===j?e.lastChild===t:t.nextSibling===j)||Uo(n,e,t,j),j=t,E--;continue}let c=E;for(;c>h;){const t=c-1-h;if(1===R[t]||-1!==k[t])break;c--}const u=E-c+1,d=Gs(l,n,xt(i,a,null,o,c,E),e,j,j,r,null,!0,f);return $r(d,()=>{const t=qt(e,j,u);return j=t,E=c-1,_()})}};return _()}function Ct(t,n,e){t.dirty&=-2;const r=n.getHostProp(t,tr);if(!r||0===r.length)return;let i;for(let s=0;s<r.length;s++){const o=r[s];if(o instanceof El){const r=o;if(!(4&r.h))continue;if(1&r.h)(e.afterFlushTasks||=[]).push(r);else{const s=!!(8&r.h),o=Cl(r,n,t);hr(o)&&(s?i=i?i.then(()=>o):o:(e.extraPromises||=[]).push(o))}}}return i}function Et(t,n){(t.props||={})[mi]=n}function jt(t,n){(t.props||={})[yi]=n}function _t(t,n){t.dirty&=-257;const e=(t=>{const n=t.props;return n?.[yi]??null})(t);if(!e)return;jt(t,null);const r=t,i=r.parent,s=r.nextSibling,o=No(n,document,r,e),l=mo(r)&&i||r;To(n,l,o,l===r?null:s),t.dirty&=-33,t.dirtyChildren=null}function Pt(t,n,e,r){t.dirty&=-3;const i=t;let s=(t=>{const n=t.props;return n?.[mi]})(t);if(s)return Et(t,null),Pl(s)&&(s=s.value),Xs(n,e,s,i,r,null)}function Ot(t,e,r,i){t.dirty&=-5;const s=t,o=e.getHostProp(s,Ce);if(!o)return;const l=e.getHostProp(s,Ze)||null,c=dr(()=>Cs(e,s,s,o,l),t=>{const o=e.getHostProp(s,Ne);return n(()=>Xs(e,r,t,s,i,yr(o)))},t=>{e.handleError(t,s)});return hr(c)?c:void 0}function At(t,n,e,r,i,s=null){n.push(Bs(t.node,e,r,s,!!(512&t.flags))),i||(t.props&&null==r?delete t.props[e]:(t.props||={})[e]=r)}function Mt(t,n){if(t.dirty&=-9,!(1&t.flags))return;const e=(t=>(t.props||={})[pi]??null)(t);if(!e||0===e.size)return;const r=t;for(const[t,i]of e.entries()){let e=i.value;Pl(e)&&(e=e.value),At(r,n,t,e,i.isConst,i.scopedStyleIdPrefix)}(t=>{delete(t.props||={})[pi]})(t)}function Nt(t,n){t.dirty&=-65;const e=n.getHostProp(t,tr);if(e&&0!==e.length)for(let t=0;t<e.length;t++){const n=e[t];n instanceof El&&16&n.h&&(n.h&=-17,Hs(n))}}function It(t,e){t.dirty&=-17;const r=e.getHostProp(t,wi);if(!r)return;const i=r.ct,s=Yn();return s.p=e,$r(n(()=>Jn.call(r,s,r.$)),()=>{if(2&r.h)return r.h&=-3,Nl(e,r,i)})}function Tt(t,n,e,r){t.dirty&=-129;const i=t,s=n.getHostProp(i,Ze)||null;if(!s)return;let o=Di(s,"items");Pl(o)&&(o=bu(o));const l=Di(s,"key$"),c=Di(s,"item$"),u=l.resolved,f=c.resolved;return void 0!==u&&void 0!==f?Rt(n,e,i,r,o,u,f):$r(l.resolve(),t=>$r(c.resolve(),s=>Rt(n,e,i,r,o,t,s)))}function Ft(t){let n=null,e=null,i=null;const s=new Set,o=()=>{if(i){if(1===i.length)to(n,i[0],e);else{const t=(n.ownerDocument||n).createDocumentFragment();for(let n=0;n<i.length;n++)t.appendChild(i[n]);to(n,t,e)}i=null,n=null,e=null,s.clear()}};for(let l=0;l<t.length;l++){const c=t[l];if(c instanceof Ds){if(n===c.parent&&e===c.beforeTarget){i||(i=[]),i.push(c.target),s.add(c.target);continue}if(!i){n=c.parent,e=c.beforeTarget,i=[c.target],s.add(c.target);continue}if(n===c.parent){o(),n=c.parent,e=c.beforeTarget,i=[c.target],s.add(c.target);continue}if(s.has(c.target)||e&&c.target===e||n&&c.target===n){o(),n=c.parent,e=c.beforeTarget,i=[c.target],s.add(c.target);continue}to(c.parent,c.target,c.beforeTarget)}else if(c instanceof Fs)(s.has(c.target)||e&&c.target===e||n&&c.target===n)&&o(),c.target.remove();else{if(c instanceof zs){(s.has(c.target)||e&&c.target===e||n&&c.target===n)&&o(),c.target.textContent="";continue}if(c instanceof Ls)c.target.nodeValue=c.text;else if(c instanceof Ws){const t=c.target,e=c.attrName,i=c.attrValue,s=null!=i?r(e,i,c.scopedStyleIdPrefix):null,l=null==s||!1===s;no(t,e)?t[e]=eo(s):e===ur?(n===t&&o(),t.innerHTML=s,t.setAttribute(Ve,"html")):l?t.removeAttribute(e):"value"===e&&e in t?t.value=s:q(t,e,s,c.isSvg)}}}o()}function zt(){oo||(oo=!0,ro())}function Lt(){oo||(oo=!0,so())}function Dt(t={timeBudget:1e3/60}){oo=!1;let n=null;for(;n=c();)Wt(n,t)}function Wt(t,n){const{timeBudget:e}=n,r=import.meta.env.TEST?_r():Kn,i=performance.now(),s=d(t);if(s.promise)return;const o=s.container;if(!t.dirty)return void Ut(o,t,s,r);const l=s.journal||=[];let c=null;for(;c=s.position;){if(s.promise)return;if(!(511&c.dirty)){h(o,s,Jt(c,t));continue}if(32&c.flags){if(64&c.dirty)Nt(c,o);else if(32&c.dirty){const n=Qt(o,s,c,t);if(null!==n){c=n;continue}}c.dirty&=-512,h(o,s,Jt(c,t));continue}let n;try{if(1&c.dirty)n=Ct(c,o,s);else if(2&c.dirty)n=Pt(c,o,l,t);else if(4&c.dirty)n=Ot(c,o,l,t);else if(128&c.dirty)n=Tt(c,o,l,t);else if(8&c.dirty)Mt(c,l);else if(16&c.dirty)n=It(c,o);else if(32&c.dirty){const n=Qt(o,s,c,t);if(null!==n){c=n;continue}}else 256&c.dirty&&_t(c,l)}catch(t){o.handleError(t,c)}if(n&&hr(n)){s.promise=n,u(t,o);const e=c;return void n.catch(t=>{o.handleError(t,e)}).finally(()=>{s.promise=null,f(t,o),zt()})}if(performance.now()-i>=e)return void Lt()}Ut(o,t,s,r)}function Ut(t,n,e,r){if(!(511&n.dirty)){if(a(n,t),r||((t,n)=>{const e=d(t),r=e.journal;r&&r.length>0&&(Ft(r),e.journal=null),((t,n)=>{const e=n.afterFlushTasks;if(!e||0===e.length)return void(n.afterFlushTasks=null);let r;for(let n=0;n<e.length;n++){const i=e[n],s=Cl(i,t,i.ut);hr(s)&&(r=r?r.then(()=>s):s)}r&&(n.extraPromises||=[]).push(r),n.afterFlushTasks=null})(n,e)})(n,t),e.extraPromises)return void Promise.all(e.extraPromises).then(()=>{Vt(t)});Vt(t)}}function Vt(t){t.ft()}function Qt(t,n,e,r){const i=e.dirtyChildren;if(!i||0===i.length)return e.dirty&=-33,null;((t,n)=>{let e=0;for(let r=0;r<t.length;r++){const i=t[r];if(i.parent===n){if(e!==r){const n=t[e];t[e]=i,t[r]=n}e++}}})(i,e),e.nextDirtyChildIndex=0;const s=Jt(i[0],r);return h(t,n,s),s}function Jt(t,n){if(t===n)return 511&n.dirty?n:null;let e=null;if(t.slotParent&&32&t.slotParent.dirty?e=t.slotParent:t.parent&&32&t.parent.dirty&&(e=t.parent),!e)return 511&n.dirty?n:null;const r=e.dirtyChildren;let i=e.nextDirtyChildIndex;const s=r.length;let o=s;for(;o-- >0;){const t=r[i];if(511&t.dirty)return e.nextDirtyChildIndex=(i+1)%s,t;i++,i===s&&(i=0)}return e.dirty&=-33,e.dirtyChildren=null,e.nextDirtyChildIndex=0,Jt(e,n)}function Bt(t,n,e){$i.set(n,{afterFlushTasks:null,extraPromises:null,journal:null,container:t,position:n,priority:e,promise:null});const r=n;return r.flags|=256,l(t,r),zt(),r}function Ht(t){return!!(256&t.flags)}function Yt(t,n){if(!(1&n.flags))return 8&n.dirty&&((t,n)=>{n.dirty&=-9;const e=n.getProp(pi);if(e&&0!==e.size)for(const[i,s]of e.entries()){let e=s.value;Pl(e)&&(e=e.value);const o=r(i,e,s.scopedStyleIdPrefix);t.addBackpatchEntry(n.id,i,o)}})(t,n),16&n.dirty&&It(n,t),511&n.dirty&&fe(`A chore was scheduled on a host element that has already been streamed to the client.\n This can lead to inconsistencies between Server-Side Rendering (SSR) and Client-Side Rendering (CSR).\n \n Problematic chore:\n - Host: ${""+n}\n - Nearest element location: ${n.currentFile}\n \n This is often caused by modifying a signal in an already rendered component during SSR.`),void(n.dirty&=-512);let e=null;if(1&n.dirty){const r=((t,n)=>{n.dirty&=-2;const e=n.getProp(tr);if(!e||0===e.length)return null;let r=null;for(let i=0;i<e.length;i++){const s=e[i];if(s instanceof El){const e=s;if(!(4&e.h))continue;const i=Cl(e,t,n);r=r?r.then(()=>i):i}}return r})(t,n);hr(r)&&(e=r)}if(128&n.dirty){const r=(async(t,n)=>{n.dirty&=-129;const e=t.getHostProp(n,Ze)||null;if(!e)return;let r=Di(e,"items");Pl(r)&&(r=bu(r));const i=await Di(e,"key$").resolve(),s=await Di(e,"item$").resolve(),o=[];for(let t=0;t<r.length;t++){const n=r[t],e=s(n,t),l=i(n,t);e.key=l,o.push(e)}await t.renderJSX(o,{currentStyleScoped:null,parentComponentFrame:t.getComponentFrame(0)})})(t,n);e=e?e.then(()=>r):r}return n.dirty&=-508,e||void 0}function Xt(t){for(let n=0;n<lo.length;n++){const e=lo[n],r=lo[n+1]||t;r.dirty|=32,r.dirtyChildren||=[],r.dirtyChildren.includes(e)||r.dirtyChildren.push(e)}}function Gt(t,n,e,r=null){const i=n.dirty;if(n.dirty|=e,import.meta.env.TEST?_r():Kn){const e=Yt(t,n);return void(hr(e)&&(t.l=t.l?t.l.then(()=>e):e))}const s=511&e;if((s?511&i:i)||n===r)return;const o=n.slotParent||n.parent;if(r&&s&&o&&!o.dirty)((t,n)=>{lo.push(t);let e=t.slotParent||t.parent;for(;e;){const r=511&e.dirty,i=Ht(e);if(e===n||r){if(Xt(e),i){const n=d(e);n.position!==e&&(n.position=t)}return void(lo.length=0)}if(i){const n=d(e);n.position!==e&&(n.position=t)}lo.push(e),e=e.slotParent||e.parent}lo.length=0,(()=>{throw ae(!1,"Cursor root not found in current path!")})()})(n,r);else if(o&&511&o.dirty){if(s&&(o.dirty|=32),o.dirtyChildren||=[],o.dirtyChildren.includes(n)||o.dirtyChildren.push(n),s&&n.dirtyChildren){const t=(t=>{for(;t;){if(Ht(t))return t;t=t.parent||t.slotParent}return null})(n);if(t){const e=d(t);let r=e.position;if(r)for(;r!==t;)if(r=r.slotParent||r.parent,r===n){e.position=n;break}}}}else Ht(n)||(t=>{lo.push(t);let n=t.slotParent||t.parent;for(;n;){if(Ht(n))return Xt(n),lo.length=0,!0;lo.push(n),n=n.slotParent||n.parent}return lo.length=0,!1})(n)||Bt(t,n,0)}function Kt(t,n){t.push(n)}function Zt(t,n,e,r){const i=t.value,s=n.slice(2),o=i.split("|"),l=[];for(let t=0;t<o.length;t++){const n=Co(vn(o[t],e));l.push(C.bind(null,n))}(r._qDispatch||={})[s]=1===l.length?l[0]:l}function tn(t,n,e){let r=Go(n);for(;r;)bo(r)?(jo(t,r),e(r,n)):mo(r)?e(r,n):tn(t,r,e),r=r.nextSibling}function nn(t,n){let e=t;if(bo(t))return void n?.(t,null);let r=null;for(;;){if(n?.(e,r))return;const i=Go(e);if(i){e=i;continue}if(e===t)return;const s=e.nextSibling;if(s)e=s;else{for(r=e.parent;r;){if(r===t)return;const n=r.nextSibling;if(n){e=n;break}r=r.parent}if(null==r)return}}}function en(t,n,e,r){const i="string"==typeof n,s=n.length;for(;t;){const o=t.nodeValue;let l;if(i)l=o?.startsWith(n);else for(let t=0;t<s;t++)if(o?.startsWith(n[t])){l=!0;break}if(l)return e.call(t)||null;let c=r.call(t);for(c||(c=e.call(t));!c&&(c=ll(t),c);)t=c,c=e.call(c);t=c}return null}function rn(t,n,e){t[ei]?((t,n)=>{for(const[e,r]of n)t.set(e,r)})(t[ei],e.k(n)):Object.defineProperty(t,ei,{get(){const r=e.k(n);return t[ei]=r,r},set(n){Object.defineProperty(t,ei,{value:n,writable:!0,enumerable:!0,configurable:!0})},enumerable:!0,configurable:!0})}function sn(t=20,n="",e=!1,r=!1,i=!0,s=null){if(this&&!s)try{s=(()=>{let t=this;for(;t;){if(mo(t)){const n=Un(t.node);return n?Wn(n):null}t=t.parent}return null})()}catch{}let o=this;if(0===t)return"...";if(null===o)return"null";if(void 0===o)return"undefined";const l=[];do{if(bo(o))l.push(dn(Yo(o)));else if(vo(o)){const e=["["+(o.flags>>>12)+"]"];if(o.dirty&&e.push(" dirty:"+o.dirty),s){const t=pl(s,o);for(let n=0;n<t.length;n++){const r=t[n];if(r!==xe&&r!==fr){const t=So(o,r,null);e.push(" "+r+"="+dn(t))}}}const r=(i?"[34m":"")+(qe[So(o,xe,null)||"V"]||qe.V)+(i?"[0m":"");l.push("<"+r+e.join("")+">");const c=Go(o);c&&l.push(" "+sn.call(c,t-1,n+" ",!0,!0,i)),l.push("</"+r+">")}else if(mo(o)){const r=Ho(o),c=[];Ht(o)&&c.push(" cursor"),o.dirty&&c.push(" dirty:"+o.dirty),o.dirtyChildren&&c.push(` dirtyChildren[${o.dirtyChildren.length}]`);const u=s?pl(s,o):[];for(let t=0;t<u.length;t++){const n=u[t],e=So(o,n,null);c.push(" "+n+"="+dn(e))}const f=wl(o);if(f){const t=hl(f).qVNodeData?.get(f);t&&c.push(" q:vnodeData="+dn(t))}const a=f.attributes;for(let t=0;t<a.length;t++){const n=a[t];-1===u.indexOf(n.name)&&c.push(" "+n.name+(n.value?"="+dn(n.value):""))}if(l.push("<"+r+c.join("")+">"),wo(o)||e){const e=Go(o);e&&l.push(" "+sn.call(e,t-1,n+" ",!0,!0,i))}else l.push(" \x3c!-- not materialized --!>");l.push("</"+r+">")}o=r&&o.nextSibling||null}while(o);return l.join("\n"+n)}function on(t){return!t.hasAttribute(cr)||"STYLE"===t.nodeName&&(t.hasAttribute(Ne)||t.hasAttribute(Oe))}function ln(t,n){po(n)&&mo(n)&&Ko(n);const e=n[ei];if(e){for(const[,n]of e)cn(t,n);e.clear()}}function cn(t,n){const e=n.backRef;if(e){for(const r of e)if(r instanceof Ei)fn(r,n);else if(r instanceof qi)un(t,r,n);else if(Vi(r))an(r[Oi],n);else if(t.ht.has(r)){const e=t.ht.get(r);an(Ll(e),n)}e.clear()}}function un(t,n,e){const r=n.ct;r&&r.has(e)&&r.delete(e),n instanceof os&&!r?.size&&(n.m=void 0,ln(t,n))}function fn(t,n){const e=t.ct;e&&e.has(n)&&e.delete(n);const r=t.dt;r&&r.has(n)&&r.delete(n);const i=t.$t;i&&i.has(n)&&i.delete(n),t.yt()}function an(t,n){const e=t?.ct;if(e)for(const[t,r]of e.entries())r.has(n)&&(r.delete(n),0===r.size&&e.delete(t))}function hn(t,n){const e=Dn(n);"string"==typeof this&&Tu(Fu(e,this));const r=Iu[0];r.h|=4,Gt(e,r.ut,1)}function dn(t){try{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 t+"";if(jl(t))return`Task(${dn(t.wt)})`;if(ke(t))return`Qrl(${t.bt})`;if("object"==typeof t||"function"==typeof t){if(Fl.includes(t))return"*";try{if(Fl.push(t),Array.isArray(t))return po(t)?"("+(So(t,xe,null)||"vnode")+")":t.map(dn);if(Pl(t))return t instanceof os?"WrappedSignal":t instanceof Ri?"ComputedSignal":"Signal";if(Ql(t))return"Store";if(hs(t))return zl(t);if(po(t))return"("+(So(t,xe,null)||"vnode")+")"}finally{Fl.pop()}}}catch(t){return console.error("ERROR in qwikDebugToString",t),"*error*"}return t}function $n(t,n,e){return new Proxy(n,new Bl(e,t||null))}function pn(t,n,e,r){const i=e.ct||=new Map;let s=i.get(n);s||(s=new Set,i.set(n,s)),Ol(s,r),Al(r,t),(import.meta.env.TEST?!au(e.p):Kn)&&Ml(r,e.p)}function mn(t,n,e,r){e[t]=n;const i=yn(e,t,r.ct);i&&Nl(r.p,r,i)}function yn(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 i=e?.get(ki);if(i){r||=new Set;for(const t of i)r.add(t)}return r}function wn(t,n,e){let r=n.bt,i=n.vt;const s=jr();if(s){const t=s.chunkForSymbol(r,i);t&&(i=t[1],r=t[0])}var o;if(ke(o=n)&&o.bt==Se)i="",r=t.gt(null,0,n.resolved)+"";else{if(i||(i=t.St(n.st)),!i)throw ge(14,[n.bt]);i.startsWith("./")&&(i=i.slice(2))}const l=n.getCaptured();let c=null;if(l&&l.length>0&&(c=l.map(n=>""+t.kt(n)).join(" ")),e)return[i,r,c];let u=`${i}#${r}`;return c&&(u+="#"+c),u}function bn(t,n,e,r){return Wu(t,n,null,null,e,r)}function vn(t,n){const[e,r,i]=t.split("#");return bn(e,r,i||null,n)}function gn(t,n){return n.xt&&"{"===n.xt[0]&&(n.xt=`(${n.xt})`),[t.gt(n.xt,n.lt.length,n.ot),n.lt]}function Sn(t,n){const e=(t,n)=>1===t&&"string"==typeof n,r=t=>14===t,i=n=>{const e=t[n+1].split(" ");let r=t,i=1,s=0,o=0,l=null;for(let n=0;n<e.length;n++)if(l=r,s=2*parseInt(e[n],10),o=s+1,i=r[s],r=r[o],1===i){const n=2*r;i=t[n],r=t[n+1]}l&&(l[s]=1,l[o]=n/2),t[n]=i,t[n+1]=r};for(let s=0;s<t.length;s+=2)e(t[s],t[s+1])?i(s):r(t[s])&&(n.qt=t[s+1])}function kn(t,n){return n?t.rootVNode?_o(t.rootVNode,n):void 0:t.element?.ownerDocument}function xn(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function qn(t,n,e){return()=>{t.currentStyleScoped=n,t.parentComponentFrame=e}}async function Rn(t,e,r){const i=[e],s=t=>i.push(t);await(async()=>{for(;i.length;){const e=i.pop();if(e===Rc){const t=i.pop();await n(()=>i.push(t()));continue}"function"!=typeof e?Cn(t,s,e,r):e===Promise?i.push(await i.pop()):await e.apply(t)}})()}function Cn(t,n,e,r){if(null==e)t.textNode("");else if("boolean"==typeof e)t.textNode("");else if("number"==typeof e)t.textNode(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(Pl(e)){((t,n)=>{const e=n instanceof os?n.it():n;e instanceof Ei&&e.Rt>0&&(t.kt(e),t.Ct.add(e))})(t.serializationCtx,e),t.openFragment(Ii);const r=t.getOrCreateLastNode(),i=e instanceof os?e.it():e;n(t.closeFragment),n(()=>Su(i,r,".",t)),n(Rc)}else if(hr(e))t.openFragment(Ii),n(t.closeFragment),n(e),n(Promise),n(()=>t.streamHandler.flush());else if((t=>!!t[Symbol.asyncIterator])(e))n(async()=>{for await(const n of e)await Rn(t,n,{currentStyleScoped:r.currentStyleScoped,parentComponentFrame:r.parentComponentFrame}),t.streamHandler.flush()});else{const i=e,s=i.type;if("string"==typeof s){((t,n)=>{null==Li(t,"class")&&n&&(t.constProps||(t.constProps={}),t.constProps.class="")})(i,r.currentStyleScoped);const e=t.openElement(s,i.key,i.varProps,i.constProps,r.currentStyleScoped,null,!!(4&i.flags));e&&t.htmlNode(e),n(t.closeElement),"head"===s?(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),n(t.additionalHeadNodes)):"body"===s?n(t.additionalBodyNodes):t.isHtml||t._didAddQwikLoader||t.Et||(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),t._didAddQwikLoader=!0);const o=i.children;null!=o&&n(o)}else if(ve(s))if(s===qs){t.openFragment(null!=i.key?{[Ke]:i.key}:{}),n(t.closeFragment);const e=i.children;null!=e&&n(e)}else if(s===Es){const e=r.parentComponentFrame;if(e){const s={};s["q:sparent"]=e.componentNode.id||"",t.openProjection(s);const o=e.componentNode,l=t.getOrCreateLastNode(),c=((t,n,e)=>{const r=n.constProps;if(r&&"object"==typeof r&&"name"in r){const n=r.name;if(n instanceof os)return Su(n,t,":",e)}return Li(n,"name")||Ge})(o,i,t);s[_e]=c,n(qn(r,r.currentStyleScoped,r.parentComponentFrame)),n(t.closeProjection);const u=i.children||null,f=e.consumeChildrenForSlot(l,c)||u;u&&f!==u&&t.addUnclaimedProjection(e,Ge,u),n(f),n(qn(r,e.projectionScopedStyle,e.projectionComponentFrame))}else t.openFragment(Ii),t.closeFragment()}else if(s===Ps)t.commentNode(Li(i,"data")||"");else if(s===As){t.streamHandler.flush();const e=i.children;let s;s=ve(e)?e({async write(n){await Rn(t,n,{currentStyleScoped:r.currentStyleScoped,parentComponentFrame:r.parentComponentFrame}),t.streamHandler.flush()}}):e,n(s),hr(s)&&n(Promise)}else if(s===_s)t.htmlNode(Li(i,"data"));else if(s===Os)t.streamHandler.streamBlockStart(),n(()=>t.streamHandler.streamBlockEnd()),n(i.children);else if(ef(s)){t.openComponent({});const e=t.getOrCreateLastNode(),o=t.getParentComponentFrame();o.distributeChildrenIntoSlots(i.children,r.currentStyleScoped,r.parentComponentFrame);const l=((t,n,e)=>{const r=t.getOrCreateLastNode(),[i]=e[nf],s=n.props;return s&&s.children&&delete s.children,r.setProp(Ce,i),r.setProp(Ze,s),null!==n.key&&r.setProp(Ke,n.key),Cs(t,r,r,i,s)})(t,i,s);if(n(qn(r,r.currentStyleScoped,r.parentComponentFrame)),n(t.closeComponent),hr(l))n(async()=>{const t=await l,i=yr(e.getProp(Ne));n(t),n(qn(r,i,o))});else{n(l);const t=yr(e.getProp(Ne));n(qn(r,t,o))}}else{t.openFragment({[Ke]:i.key}),n(t.closeFragment);const e=t.getParentComponentFrame(),r=((t,n,e,r)=>{const i=t.getOrCreateLastNode();return Cs(t,i,n,e,r.props)})(t,e&&e.componentNode,s,i);n(r),hr(r)&&n(Promise)}}}function En(t,n,e,r){let i=null;const s=e,o=t=>{i=(null==i?"":i+"|")+t},l=n=>(n.bt.startsWith("_")||!n.jt?.length&&!r||(n=Wu(null,"_run",E,null,[n])),wn(t,n));if(Array.isArray(s))for(let e=0;e<s.length;e++){const i=s[e];if(ke(i))o(l(i)),jn(t,n,i);else if(null!=i){const e=En(t,n,i,r);e&&o(e)}}else ke(s)&&(i=l(s),jn(t,n,s));return i}function jn(t,n,e){const r=[(i=n).charAt(2),i.substring(4)];var i;if(r){const[n,i]=r,s=((t,n)=>t+":"+n)(n,i);t._t.add(s),t.Pt.add(e)}}function _n(){const t=pu();if(!t)return;Fc||=wc(Tc,"_hmr");const n=Fc.w([t.m]);Ac("qHmr",n)}function Pn(t,n,e,r,i){const s=$o();return ko(s,_e,i),s.parent=n,ko(n,i,s),ko(s,Ce,e),ko(s,Ze,r),s.dirty=4,Bt(t,s,1),s}function On(t,n){ko(t,Ee,n),t.flags|=2048}function An(t,n,e){ko(n,Ze,e),Gt(t,n,4)}function Mn(t,n,e,r){ko(n,r,null);const i=[];if(wt(t,i,e),Io(i),2048&e.flags){const t=So(e,Ee,null);t&&t.replaceChildren(),ko(e,Ee,null),e.flags&=-2049}}function Nn(t,n,e){if(0===n)return e;const r=mc(t,n,e);return Vc(n)&&Wc(t,r,n,e),r}function In(t,n){if(t)for(const e of t)e.backRef||=new Set,e.backRef.add(n)}function Tn(t,n){if(t)for(const[,e]of t)In(e,n)}async function Fn(t){const n=rc(null,null,()=>"",()=>{},new WeakMap);return n.kt(t),await n.Ot(),""+n.At}function zn(t){if(null==t)throw Error("No state data to deserialize");const n=JSON.parse(t);if(!Array.isArray(n)||n.length<2||"number"!=typeof n[0])throw Error("Invalid state data");const e=(t=>{let n;const e={k:t=>Ln(t,n),getSyncFn:()=>()=>{},ht:new WeakMap,element:null,qt:null};return Sn(t,e),n=Bc(e,t),e.Mt=n,e})(n);return Nn(e,n[0],n[1])}function Ln(t,n){return"string"==typeof t?n[t=parseInt(t,10)]:n[t]}function Dn(t){const n=Un(t);if(!n)throw ge(24);return Wn(n)}function Wn(t){const n=t;return n.qContainer||=new hu(n)}function Un(t){return t.closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])")}function Vn(t){if(void 0===du){const n=pu();if(n&&n.Nt)return n.Nt;if(void 0!==t)return t;throw Error("Reading `locale` outside of context.")}return du}function Qn(t,n){const e=du;try{return du=t,n()}finally{du=e}}function Jn(t,n,...e){return Bn.call(this,t,n,e)}function Bn(t,n,e){const r=$u;try{return $u=t,n.apply(this,e)}finally{$u=r}}function Hn(t,n,e){const r={m:n,It:Xe,Tt:void 0,Nt:t,p:e,Ft:void 0};return oe(r),r}function Yn(t,n,e){const r={m:n,It:e,Tt:void 0,Nt:t||(e&&ye(e)&&"locale"in e?e.locale:void 0),p:void 0};return oe(r),r}function Xn(t,n){const e=pu();return e?.p?.zt[t]??n}import{p as Gn}from"@qwik.dev/core/preloader";const Kn=!1,Zn=!0,te=!1,ne=globalThis,ee=!1!==ne.qDev,re=!1!==ne.qDynamicPlatform,ie=!0===ne.qTest,se=!0===ne.qRuntimeQrl,oe=t=>{ee&&Object.seal(t)},le=ee?"background: #564CE0; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;":"",ce=/*#__PURE__*/new Set,ue=(t,...n)=>{if(ee){const e="warn"+t;ce.has(e)||(ce.add(e),fe(t,...n))}},fe=(t,...n)=>{ee&&console.warn("%cQWIK WARN",le,t,...n)},ae=(t,n,...e)=>{const r=n instanceof Error?n:Error(n);return!ie&&console.error("%cQWIK ERROR",le,r.message,...e,r.stack),t&&!ie&&setTimeout(()=>{throw r},0),r},he=(t,n,e)=>{let r=e>>1,i=t.length-2>>1;for(;r<=i;){const e=r+(i-r>>1),s=t[e<<1];if(s===n)return e<<1;s<n?r=e+1:i=e-1}return~(r<<1)},de=(t,n,e,r,i=!1)=>{const s=he(t,n,r);s>=0?null!=e||i?t[s+1]=e:t.splice(s,2):(null!=e||i)&&t.splice(-1^s,0,n,e)},$e=(t,n,e)=>{const r=he(t,n,e);return r>=0?t[r+1]:null},pe=(t,n,e)=>he(t,n,e)>=0,me=t=>{const n=Object.getPrototypeOf(t);return n===Object.prototype||n===Array.prototype||null===n},ye=t=>"object"==typeof t&&null!==t,we=t=>Array.isArray(t),be=t=>"string"==typeof t,ve=t=>"function"==typeof t,ge=(t,n=[])=>{const e=((t,...n)=>{if(ee){let e=["Error while serializing class or style attributes","Scheduler not found","track() received object, without prop to track","Only primitive and object literals can be serialized. {{0}}","You can render over a existing q:container. Skipping render().","QRL is not a function","Dynamic import {{0}} not found","Unknown type argument","Actual value for useContext({{0}}) can not be found, make sure some ancestor component has set a value using useContextProvider(). In the browser make sure that the context was used during SSR so its state was serialized.","Invoking 'use*()' method outside of invocation context.","Calling a 'use*()' method outside 'component$(() => { HERE })' is not allowed. 'use*()' methods provide hooks to the 'component$' state and lifecycle, ie 'use' hooks can only be called synchronously within the 'component$' function or another 'use' method.\nSee https://qwik.dev/docs/core/tasks/#use-method-rules",'The provided Context reference "{{0}}" is not a valid context created by createContextId()',"SsrError(tag): {{0}}","QRLs can not be resolved because it does not have an attached container. This means that the QRL does not know where it belongs inside the DOM, so it cant dynamically import() from a relative path.","QRLs can not be dynamically resolved, because it does not have a chunk path","{{0}}\nThe JSX ref attribute must be a Signal","Serialization Error: Deserialization of data type {{0}} is not implemented","Serialization Error: Expected vnode for ref prop, but got {{0}}","Serialization Error: Cannot allocate data type {{0}}","Serialization Error: Missing root id for {{0}}","Serialization Error: Serialization of data type {{0}} is not implemented","Serialization Error: Unvisited {{0}}","Serialization Error: Missing QRL chunk for {{0}}","{{0}}\nThe value of the textarea must be a string found {{1}}","Unable to find q:container","Element must have 'q:container' attribute.","Unknown vnode type {{0}}.","Materialize error: missing element: {{0}} {{1}} {{2}}","Cannot coerce a Signal, use `.value` instead","useComputed$ QRL {{0}} {{1}} cannot return a Promise",'===\nQwik version {{0}} already imported while importing {{1}}.\nThis can lead to issues due to duplicated shared structures.\nVerify that the Qwik libraries you\'re using are in "resolve.noExternal[]" and in "optimizeDeps.exclude".\n===\n',"WrappedSignal is read-only","Attribute value is unsafe for SSR {{0}}","SerializerSymbol function returned rejected promise","Serialization Error: Cannot serialize function: {{0}}"][t]??"";return n.length&&(e=e.replaceAll(/{{(\d+)}}/g,(t,e)=>{let r=n[e];return r&&ye(r)&&r.constructor===Object&&(r=JSON.stringify(r).slice(0,50)),r})),`Code(Q${t}): ${e}`}return`Code(Q${t}) https://github.com/QwikDev/qwik/blob/build/v2/packages/qwik/src/core/shared/error/error.ts#${n.join()}L${9+t}`})(t,...n);return((t,...n)=>ae(ee,t,...n))(e,...n)},Se="<sync>",ke=t=>"function"==typeof t&&"function"==typeof t.getSymbol,xe="q:type",qe={V:"Virtual",F:"Fragment",S:"Signal",A:"Awaited",C:"Component",I:"InlineComponent",P:"Projection"},Re=124,Ce="q:renderFn",Ee="q:targetEl",je="⚡️",_e="q:slot",Pe="q:s",Oe="q:style",Ae="style[q\\:style]",Me=Ae+",style[q\\:sstyle]",Ne="q:sstyle",Ie="q:ctx",Te="q:brefs",Fe=(t,n)=>t["qFuncs_"+n]||[],ze="q:base",Le="q:container-island",De="/"+Le,We="q:ignore",Ue="/"+We,Ve="q:container",Qe="/"+Ve,Je="q:template",Be="http://www.w3.org/1999/xhtml",He="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1998/Math/MathML",Xe="qRender",Ge="",Ke="q:key",Ze="q:props",tr="q:seq",nr="q:seqIdx",er="q:p",rr="q:ps",ir=":",sr=":on",or=":onIdx",lr=":onFlags",cr=":",ur="dangerouslySetInnerHTML",fr="__scopedStyleIdPrefix__",ar=100,hr=t=>!!t&&"object"==typeof t&&"function"==typeof t.then,dr=(t,n,e)=>{try{const r=t();return hr(r)?r.then(n,e):n(r)}catch(t){return e(t)}},$r=(t,n)=>hr(t)?t.then(n):n(t),pr=t=>{throw t},mr=t=>je+t,yr=t=>{if(t){let n=0;do{t=t.substring(0,n)+mr(t.substring(n))}while(0!==(n=t.indexOf(" ",n)+1))}return t||null},wr=t=>113===t.charCodeAt(0)&&45===t.charCodeAt(1)&&58===t.charCodeAt(3),br=t=>t.replace(/([A-Z-])/g,t=>"-"+t.toLowerCase()),vr=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"]),gr=(t,n=0)=>{for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return(+Math.abs(n)).toString(36)},Sr=t=>{if(!t)return"";if(be(t))return t.trim();const n=[];if(we(t))for(let e=0;e<t.length;e++){const r=Sr(t[e]);r&&n.push(r)}else for(const[e,r]of Object.entries(t))r&&n.push(e.trim());return n.join(" ")},kr=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),xr=(t,n)=>"number"!=typeof n||0===n||vr.has(t)?n:n+"px",qr=()=>({isServer:Kn,importSymbol(t,n,e){if(!n)throw ge(14,[e]);if(!t)throw ge(13,[n,e]);const r=""+Rr(t.ownerDocument,t,n),i=new URL(r);return i.hash="",import(i.href).then(t=>t[e])},raf:t=>new Promise(n=>{requestAnimationFrame(()=>{n(t())})}),chunkForSymbol:(t,n)=>[t,n??"_"]}),Rr=(t,n,e)=>{const r=t.baseURI,i=new URL(n.getAttribute(ze)??r,r);return new URL(e,i)};let Cr=/*#__PURE__ */qr();const Er=t=>Cr=t,jr=()=>Cr,_r=()=>!!re&&Cr.isServer,Pr=t=>{let n;if("undefined"!=typeof MessageChannel){const e=new MessageChannel;e.port1.onmessage=()=>t(),n=()=>e.port2.postMessage(null)}else n=()=>setTimeout(t);return n},Or=!import.meta.env.TEST||!_r(),Ar=Or?document:void 0,Mr=Or&&Ar.createElement("link").relList?.supports?.("modulepreload")?"modulePreload":"preload";performance.now();const Nr=/\.[mc]?js$/,Ir=1e3/60;!import.meta.env.TEST||_r();const Tr=t=>{let n=Fr.get(t);if(!n){let e;n=((t,n)=>({Lt:t,Mt:Nr.test(t)?0:3,Dt:n,Wt:1,Ut:performance.now(),Vt:0,Qt:0}))(t,e),Fr.set(t,n)}return n},Fr=new Map;let zr=0;const Lr=[],Dr=Pr(()=>{if(Ur=!1,!Lr.length)return;const t=performance.now()+Ir;let n=!1;for(;Lr.length;){const e=Lr[0];if(!(1-e.Wt>=.99||zr<5))break;if(Lr.shift(),Xr(e),performance.now()>=t){n=!0;break}}n&&Lr.length&&!Ur&&(Ur=!0,Dr())}),Wr=Pr(i);let Ur=!1,Vr=!1,Qr=!1;const Jr=import.meta.env.TEST?!_r():Zn,Br=[],Hr=(t,n,e,r)=>{Br.unshift({Jt:t,Wt:n,Bt:r,Ht:e})},Yr=()=>{const t=Br[Br.length-1],n=t.Jt;if(t.Dt){const e=t.Yt;if(e>=t.Dt.length)return Br.pop(),!1;const r=t.Dt[e];t.Yt=e+1;const i=Tr(r.Lt);if(0===i.Wt)return!0;const s=1-n.Wt;let o;if(1===s||s>=.99&&t.Ht.Xt<100)t.Ht.Xt++,o=Math.min(.01,1-r.Gt);else{const t=(1-r.Gt*s)/r.Kt;o=Math.max(.02,i.Wt*t),r.Kt=t}return Br.push({Jt:i,Wt:o,Bt:t.Bt,Ht:t.Ht}),!0}if(t.Bt?.has(n))return Br.pop(),!1;const e=n.Wt;if(n.Wt=t.Wt,e-n.Wt<.01)return Br.pop(),!1;if(n.Dt?.length){const e=t.Bt||new Set;return e.add(n),t.Bt=e,t.Dt=n.Dt,t.Yt=0,!1}return Br.pop(),!1},Xr=t=>{if(t.Mt>=2)return;zr++;const n=performance.now();t.Vt=n-t.Ut,t.Mt=2;const e=Ar.createElement("link");e.href=""+new URL("undefined"+t.Lt,Ar.baseURI),e.rel=Mr,e.as="script",e.onload=e.onerror=()=>{zr--;const r=performance.now();t.Qt=r-n,t.Mt=4,e.remove(),Dr()},Ar.head.appendChild(e)},Gr=(t,n,e)=>{const r=Tr(t);r&&r.Wt>n&&(e?Hr(r,n,e):((t,n)=>{Hr(t,n,{Xt:0},void 0),Jr?Wr():i()})(r,n))};(import.meta.env.TEST?!_r():Zn)&&document.addEventListener("qsymbol",t=>{const{symbol:n,href:e}=t.detail;e&&(t=>{if(!t?.length)return;let n=0;const e={Xt:0};if(Array.isArray(t))for(let r=t.length-1;r>=0;r--){const i=t[r];"number"==typeof i?n=1-i/10:Gr(i,n,e)}else Gr(t,n,e);Jr?Wr():i()})(n.slice(n.lastIndexOf("_")+1))});const Kr=t=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0},Zr=",",ti="2.0.0-beta.31-dev+906321a",ni=t=>1===t.nodeType,ei=Symbol();class ri{[ei]=void 0}const ii=t=>"foreignObject"===t,si=t=>"svg"===t||ii(t),oi=t=>"math"===t,li={elementNamespace:Be,elementNamespaceFlag:0};class ci{flags;parent;previousSibling;nextSibling;props;[ei]=void 0;slotParent=null;dirty=0;dirtyChildren=null;nextDirtyChildIndex=0;constructor(t,n,e,r,i){this.flags=t,this.parent=n,this.previousSibling=e,this.nextSibling=r,this.props=i}toString(){return Object.prototype.toString.call(this)}}class ui extends ci{key;firstChild;lastChild;constructor(t,n,e,r,i,s,o,l){super(n,e,r,i,s),this.key=t,this.firstChild=o,this.lastChild=l}}class fi extends ui{node;elementName;constructor(t,n,e,r,i,s,o,l,c,u){super(t,n,e,r,i,s,o,l),this.node=c,this.elementName=u}}class ai extends ci{node;text;constructor(t,n,e,r,i,s,o){super(t,n,e,r,i),this.node=s,this.text=o}}const hi=[],di=[],$i=new WeakMap,pi=":nodeProps",mi=":nodeDiff",yi=":errorData",wi=":signal",bi=Symbol();class vi{consumer;property;backRef;data;constructor(t,n,e=null,r=null){this.consumer=t,this.property=n,this.backRef=e,this.data=r}}const gi=Symbol(),Si=Symbol(),ki=Symbol(),xi=(t,n)=>(e,r)=>{const i=Yn();return i.Tt=$(t,":"),i.p=n||void 0,Jn(i,()=>{if(ve(e))return e();if(r)return e[r];if(Pl(e))return e.value;if(ye(e)&&Ql(e))return pn(Dl(e),ki,Ll(e),i.Tt),e;throw ge(2)})};class qi{Zt;ct=void 0;p=null;tn=null;constructor(t,n){this.p=t||pu()?.p||null,this.Zt=n}trigger(){Nl(this.p,this,this.ct)}force(){Nl(this.p,this,this.ct)}get untrackedValue(){return this.Zt}set untrackedValue(t){this.Zt=t}get value(){const t=this.untrackedValue,n=pu();if(!n)return t;null===this.p&&(this.p=n.p);const e=n.Tt;return e&&(Ol(this.ct||=new Set,e),Al(e,this),(import.meta.env.TEST?!au(this.p):Kn)&&Ml(e,this.p)),t}set value(t){t!==this.Zt&&(this.Zt=t,Nl(this.p,this,this.ct))}valueOf(){if(ee)throw ge(28)}toString(){return this.constructor.name}toJSON(){return{value:this.Zt}}}class Ri extends qi{nn;h;[ei]=void 0;constructor(t,n,e=17){super(t||pu()?.p,bi),this.nn=n,this.h=e}invalidate(){this.h|=1;const t=Yn();t.p=this.p||void 0;const e=n(Bn.bind(this,t,this.$));e&&e.catch(t=>{this.p?this.p.handleError(t,null):console.error("Error during computation",t)})}get untrackedValue(){return this.$(),this.Zt}set untrackedValue(t){this.Zt=t}$(){if(!(1&this.h))return;const t=this.nn;_l(t);const n=pu(),e=n?.Tt;if(n){const t=$(this,".");cn(this.p,t),n.Tt=t}try{const e=t.getFn(n)();if(hr(e))throw ge(29,[t.dev?t.dev.file:"",t.st]);this.h&=-2,super.value=e}finally{n&&(n.Tt=e)}}}class Ci{en;info;rn;sn=null;ln=!1;cn=!0;un;fn;an;constructor(t,n,e){this.en=t,this.info=n,this.rn=e}get track(){return this.un||=xi(this.en,this.en.p)}get abortSignal(){return(this.an||=new AbortController).signal}cache(){}get previous(){const t=this.en.Zt;if(t!==bi)return t}cleanup(t){"function"==typeof t&&(this.fn||=[]).push(t)}}class Ei extends Ri{hn=!1;dn=void 0;dt=void 0;$t=void 0;$n=null;pn=[];mn=1;Rt=0;yn;wn=void 0;rn=0;[ei]=void 0;constructor(t,n,e=17,r){super(t,n,e);const i=r?.interval,s=r?.concurrency??1,o=r?.initial,l=r?.timeout,c=r?.eagerCleanup,u=r?.clientOnly;if(void 0!==o){const t="function"==typeof o?o():o;this.Zt=t}this.mn=s,l&&(this.yn=l),c&&(this.h|=32),u&&(this.h|=64),i&&(this.interval=i)}get untrackedValue(){if(this.$(),this.$n?.sn){if(this.Zt===bi||(import.meta.env.TEST?_r():Kn))throw this.$n?.sn;return this.Zt}if(this.dn)throw this.dn;if((import.meta.env.TEST?_r():Kn)&&64&this.h&&this.Zt===bi)throw Error("Cannot read .value from clientOnly");return this.Zt}set untrackedValue(t){this.Zt=t}get value(){return super.value}set value(t){this.h&=-2,this.untrackedLoading=!1,this.untrackedError=void 0,this.wn=void 0;for(let t=0;t<this.pn.length;t++)this.pn[t].cn=!1;this.bn(),super.value=t,this.vn()}get loading(){const t=this.untrackedLoading,n=pu();if(n&&(this.p||=n.p||null)){const t=n.Tt;t&&(Ol(this.dt||=new Set,t),Al(t,this),Ml(t,this.p))}return t}set untrackedLoading(t){t!==this.hn&&(this.hn=t,Nl(this.p,this,this.dt))}get untrackedLoading(){if(this.$(),(import.meta.env.TEST?_r():Kn)&&this.$n?.sn)throw this.$n?.sn;return this.hn}get error(){const t=this.untrackedError,n=pu();if(n&&(this.p||=n.p||null)){const t=n.Tt;t&&(Ol(this.$t||=new Set,t),Al(t,this),Ml(t,this.p))}return t}set untrackedError(t){t!==this.dn&&(this.dn=t,Nl(this.p,this,this.$t))}get untrackedError(){return this.dn}get interval(){return this.Rt}set interval(t){this.bn(),this.Rt=t,0!==this.Rt&&this.gn()&&this.vn()}async invalidate(t){this.h|=1,this.bn(),arguments.length>0&&(this.wn=t,this.rn++),(this.ct?.size||this.dt?.size||this.$t?.size)&&(await!0,this.$())}abort(t){this.$n&&this.Sn(this.$n,t)}yt(){32&this.h&&!this.gn()&&(import.meta.env.TEST?!_r():Zn)&&setTimeout(()=>{this.gn()||this.abort()})}async promise(){for(this.$();this.$n?.sn;)await(this.$n?.sn)}$(){if(!(1&this.h))return;if((import.meta.env.TEST?_r():Kn)&&64&this.h)return this.hn=!0,void this.p?.serializationCtx.Ct.add(this);if(this.bn(),this.$n&&this.Sn(this.$n),this.pn.length>=(0===this.mn?1/0:this.mn))return;this.h&=-2;const t=new Ci(this,this.wn,this.rn);this.$n=t,this.pn.push(t),t.sn=this.kn(t)}async kn(t){const e=()=>t===this.$n;this.untrackedLoading=!0;const r=this.nn.resolved||await this.nn.resolve();try{this.yn&&(this.xn=setTimeout(()=>{t.an?.abort();const n=Error("timeout");e()&&(this.untrackedError=n,t.cn=!1)},this.yn));const i=n(r.bind(null,t)),s=hr(i)?await i:i;if(t.sn=null,t.cn){const n=this.pn.indexOf(t);if(-1!==n)for(let t=0;t<n;t++)this.pn[t].cn=!1;this.untrackedError=void 0,super.value=s}}catch(n){t.sn=null,e()&&(this.untrackedError=n)}e()&&(clearTimeout(this.xn),t.rn===this.rn&&(this.wn=void 0),1&this.h?this.$():(this.untrackedLoading=!1,this.vn()))}async qn(){this.bn(),clearTimeout(this.xn),this.$n&&await this.Sn(this.$n),await Promise.all(this.pn.map(t=>t.sn))}bn(){void 0!==this.Rn&&(clearTimeout(this.Rn),this.Rn=void 0)}vn(){(import.meta.env.TEST?!_r():Zn)&&0!==this.Rt&&(this.bn(),this.Rn=this.Rt<0?setTimeout(()=>{this.Rn=void 0,this.h|=1},-this.Rt):setTimeout(this.invalidate.bind(this),this.Rt),this.Rn?.unref?.())}gn(){return!!(this.ct?.size||this.dt?.size||this.$t?.size)}async Sn(t,n){if(t.ln)return t.sn;t.ln=!0,t.an?.abort(n),t.sn=Promise.resolve(t.sn).then(()=>t.sn=this.Cn(t))}async Cn(t){const n=t.fn;if(n?.length){const t=t=>{const n=this.p?.handleError;n?n(t,null):console.error("Error in async signal cleanup",t)};await Promise.all(n.map(n=>{try{const e=n();if(hr(e))return e.catch(t)}catch(n){t(n)}})),n.length=0}const e=this.pn,r=e.indexOf(t);-1!==r&&e.splice(r,1),this.$()}}const ji=Symbol(),_i=Symbol(),Pi=Symbol(),Oi=Symbol(),Ai=Symbol(),Mi=Symbol(),Ni=[],Ii={};Object.freeze(Ni),Object.freeze(Ii);class Ti{owner;ct=void 0;p=null;constructor(t){this.owner=t}get(t,n){if(n===ji)return this.owner.constProps;if(n===_i)return this.owner.varProps;if(n===Pi)return this.owner;if(n===Oi)return this;let r;if("children"===n)r=this.owner.children;else{if("string"==typeof n&&"string"==typeof this.owner.type){const t=e(n);t&&(n=t)}r=Li(this.owner,n),n in this.owner.varProps&&Fi(this,n)}return r instanceof os&&4&r.h?r.value:r}set(t,n,r){if(n===Pi)this.owner=r;else if("children"===n)this.owner.children=r;else if(n===ji)this.owner.constProps=r;else if(n===_i)this.owner.varProps=r;else{if("string"==typeof n&&"string"==typeof this.owner.type){const t=e(n);t&&(n=t)}this.owner.constProps&&n in this.owner.constProps&&delete this.owner.constProps[n],this.owner.varProps===Ii?this.owner.varProps={}:n in this.owner.varProps||(this.owner.toSort=!0),this.owner.varProps[n]!==r&&(this.owner.varProps[n]=r,zi(this,n))}return!0}deleteProperty(t,n){let e=delete this.owner.varProps[n];return e&&zi(this,n),this.owner.constProps&&(e=delete this.owner.constProps[n]||e),null!=this.owner.children&&"children"===n&&(this.owner.children=null,e=!0),e}has(t,n){if("children"===n)return null!=this.owner.children;if(n===ji||n===_i)return!0;const r=n in this.owner.varProps;if("string"==typeof n&&(r&&Fi(this,n),"string"==typeof this.owner.type)){const t=e(n);t&&(n=t)}return r||!!this.owner.constProps&&n in this.owner.constProps}getOwnPropertyDescriptor(t,n){return{configurable:!0,enumerable:!0,value:"children"===n?this.owner.children:this.owner.constProps&&n in this.owner.constProps?this.owner.constProps[n]:this.owner.varProps[n]}}ownKeys(){const t=Object.keys(this.owner.varProps);if(null!=this.owner.children&&t.push("children"),this.owner.constProps)for(const n in this.owner.constProps)-1===t.indexOf(n)&&t.push(n);return t}}const Fi=(t,n)=>{const e=pu();e&&null===t.p&&e.p&&(t.p=e.p);const r=e?.Tt;r&&pn(t.owner._proxy,n,t,r)},zi=(t,n)=>{const e=((t,n)=>t?.get(n))(t.ct,n);return e&&Nl(t.p,t,e),!!e},Li=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],Di=(t,n)=>Wi(t)?.[n]||Ui(t)?.[n]||null,Wi=t=>t?_i in t?"children"in t?{...t[_i],children:t.children}:t[_i]:t:null,Ui=t=>t&&ji in t?t[ji]:null,Vi=t=>t&&_i in t,Qi=t=>(n,...e)=>t.call(null,Xu(n),...e);class Ji extends Ri{constructor(t,n){super(t,n,17)}En=!1;$(){if(!(1&this.h))return;_l(this.nn);const t=bu(this.nn.resolved),{deserialize:n,initial:e}=t,r=t.update,i=this.Zt===bi?e:this.Zt,s=gu(()=>this.En?r?.(i)||i:n(i),this,".",this.p);this.En=!0,this.h&=-2,(this.En&&"undefined"!==s||s!==this.Zt)&&(this.Zt=s,Nl(this.p,this,this.ct))}}const Bi=(t,n)=>new Ri(n?.container||null,t,Tl(n?.serializationStrategy||"always")),Hi=(t,n)=>new Ei(n?.container||null,t,Tl(n?.serializationStrategy||"always"),n),Yi=t=>new Ji(null,t),Xi=t=>new qi(null,t),Gi=/*#__PURE__*/Qi(Bi),Ki=/*#__PURE__*/Qi(Hi),Zi=Qi(Yi),ts=t=>t.value,ns=(t,n)=>t[n],es=t=>1===t.length?Pl(t[0])?t[0].tn||=new os(null,ts,t,null):Ql(t[0])?new os(null,ts,t,null):t[0].value:new os(null,ns,t,null),rs=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!ye(n))return n[e];if(Pl(n))return n instanceof os&&4&n.h?n:es(t);if(Vi(n)){const r=n[ji],i=n[_i];if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];if(Object.prototype.hasOwnProperty.call(i,e))return is(i[e],t)}else{const r=Dl(n);if(r)return is(r[e],t)}return n[e]},is=(t,n)=>Pl(t)?t:es(n),ss=(t,n)=>{const e=rs(t,n);return e===Ai?t[n]:e};class os extends qi{lt;ot;xt;h;m=void 0;[ei]=void 0;constructor(t,n,e,r,i=5){super(t,bi),this.lt=e,this.ot=n,this.xt=r,this.h=i}invalidate(){this.h|=1;try{this.$()}catch(t){this.p&&this.m&&(this.p.setHostProp(this.m,wi,this),Gt(this.p,this.m,16))}2&this.h&&(this.h&=-3,Nl(this.p,this,this.ct))}get untrackedValue(){return this.$(),this.Zt}$(){if(!(1&this.h))return;const t=gu(()=>this.ot(...this.lt),this,".",this.p);this.h&=-3,t!==this.Zt&&(this.h|=2,this.Zt=t)}it(){return this.ot===ts&&Pl(this.lt[0])?this.lt[0]:this}set value(t){throw ge(31)}get value(){return super.value}}class ls{data;constructor(t){this.data=t}}const cs=(t,n)=>{if("string"==typeof t){const e=Dn(n);Tu(Fu(e,t))}return null},us=Object.prototype.hasOwnProperty;class fs{type;children;flags;toSort;key;varProps;constProps;dev;_proxy=null;constructor(t,n,e,r,i,s,o,l){this.type=t,this.children=r,this.flags=i,this.toSort=!!o,this.key=null==s?null:"string"==typeof s?s:""+s,this.varProps=!n||Kr(n)?Ii:n,this.constProps=!e||Kr(e)?null:e,ee&&l&&(this.dev={...l,stack:Error().stack?.split("\n").slice(2).join("\n")}),oe(this)}get props(){return this._proxy||=p(this)}}const as=(t,n,e)=>{let r=t[n];if(!r)return t[n]=e,!0;Array.isArray(r)?r.push(e):r=t[n]=[r,e]},hs=t=>ee?t instanceof fs||!!(ye(t)&&us.call(t,"key")&&us.call(t,"props")&&us.call(t,"type"))&&!Vi(t)&&(fe('Duplicate implementations of "JSXNode" found'),!0):t instanceof fs,ds="bind:value",$s="bind:checked",ps=Object.prototype.hasOwnProperty,ms=(t,n,e,r,i,s,o)=>new fs(t,n,e,r,i,s,!1,o),ys=(t,n,r,i,s,o,l)=>{let c=!1,u=!1,f=!1,a=null,h=null;if("string"==typeof t){if(r){const t=new Set;for(const n in r){const i=e(n);i?(u||(r={...r},u=!0),ps.call(r,i)&&!t.has(i)||(r[i]=r[n]),delete r[n]):n===$s?h=r[n]:n===ds&&(a=r[n]),t.add(n)}}if(n){const t=new Set;for(const r in n){const i=e(r);i?(f||(n={...n},f=!0),ps.call(n,i)&&!t.has(i)||(n[i]=n[r]),delete n[r],c=!0):r===$s?h=n[r]:r===ds&&(a=n[r]),t.add(r)}}if(h||a)if(f||(n={...n},f=!0),n||={},h){n&&ps.call(n,$s)&&delete n[$s],r&&ps.call(r,$s)&&(u||(r={...r},u=!0),delete r[$s]),n.checked=h;const t=Wu(null,"_chk",y,null,[h]);if(r&&ps.call(r,"q-e:input")){u||(r={...r},u=!0);const t=r["q-e:input"];delete r["q-e:input"],c=as(n,"q-e:input",t)||c}c=as(n,"q-e:input",t)||c}else if(a){n&&ps.call(n,ds)&&delete n[ds],r&&ps.call(r,ds)&&(u||(r={...r},u=!0),delete r[ds]),n.value=a;const t=Wu(null,"_val",m,null,[a]);if(r&&ps.call(r,"q-e:input")){u||(r={...r},u=!0);const t=r["q-e:input"];delete r["q-e:input"],c=as(n,"q-e:input",t)||c}c=as(n,"q-e:input",t)||c}n&&ps.call(n,"className")&&(f||(n={...n},f=!0),n.class=n.className,n.className=void 0,c=!0,ee&&ue(`jsx${l?` ${l.fileName}${l?.lineNumber?":"+l.lineNumber:""}`:""}: \`className\` is deprecated. Use \`class\` instead.`)),r&&ps.call(r,"className")&&(u||(r={...r},u=!0),r.class=r.className,r.className=void 0,ee&&ue(`jsx${l?` ${l.fileName}${l?.lineNumber?":"+l.lineNumber:""}`:""}: \`className\` is deprecated. Use \`class\` instead.`))}if(n)for(const t in n)"children"===t?(f||(n={...n},f=!0),i||=n.children,delete n.children):"key"===t?(f||(n={...n},f=!0),o||=n.key,delete n.key):(r&&t in r||null===n[t])&&(f||(n={...n},f=!0),delete n[t]);return new fs(t,n,r,i,s,o,c||!0,l)},ws=(t,n,e,r)=>Ss(t,n,r),bs=(t,n,e,r,i)=>Ss(t,{...e,...n},i),vs=(t,n,e,r,i,s)=>Ss(t,{...e,...n,children:r},s),gs=t=>t.children,Ss=(t,n,e,r,i)=>ys(t,n,null,null,0,e,i),ks=Ss,xs=Ss,qs=t=>t.children,Rs=(t,n)=>new fs(gs,null,null,t.children,0,n),Cs=(t,n,e,r,i)=>{const s=Hn(t.Nt,e||n,t);let o;e&&(s.Tt=$(e,":"),s.p=t),t.ensureProjectionResolved(n);let l=!1;if(null===r&&(r=t.getHostProp(n,Ce)),ke(r))"children"in(i=i||t.getHostProp(n,Ze)||Ii)&&delete i.children,o=r.getFn(s);else if(ef(r)){const t=r;o=()=>Bn(s,t,[i||Ii,null,0])}else{l=!0;const t=r;o=()=>Bn(s,t,[i||Ii])}const c=import.meta.env.TEST?_r():Kn,u=(e=0)=>dr(()=>(l||(t.setHostProp(n,nr,null),t.setHostProp(n,or,null)),e>0&&po(n)&&ln(t,n),$r(o(i),t=>$r(s.Ft,()=>t))),r=>{if(c&&!l&&4&n.dirty&&(n.dirty&=-5,e<ar))return u(e+1);const i=t.getHostProp(n,sr);return i?v(r,i):r},t=>{if(hr(t)&&e<ar)return t.then(()=>u(++e));if(e>=ar)throw Error("Max retry count of component execution reached");throw t});return u()},Es=t=>ms(gs,null,{[Pe]:""},t.children,0,t.name??""),js=Symbol(),_s=()=>null,Ps=()=>null,Os=t=>t.children,As=(t,n)=>Ss(Rs,{children:Ss(Ms,t)},n),Ms=()=>null;let Ns=null,Is=null;const Ts=(t,n=[],e={})=>{let r=null;const i=t[ji];if(i)for(const t in i)n.includes(t)||(r||={},r[t]=i[t]);const s=e,o=t[_i];for(const t in o)n.includes(t)||(s[t]=o[t]);return p(new fs(null,s,r,null,0,null))};class Fs{target;constructor(t){this.target=t}}class zs{target;constructor(t){this.target=t}}class Ls{target;text;constructor(t,n){this.target=t,this.text=n}}class Ds{target;parent;beforeTarget;constructor(t,n,e){this.target=t,this.parent=n,this.beforeTarget=e}}class Ws{target;attrName;attrValue;scopedStyleIdPrefix;isSvg;constructor(t,n,e,r,i){this.target=t,this.attrName=n,this.attrValue=e,this.scopedStyleIdPrefix=r,this.isSvg=i}}const Us=t=>new Fs(t),Vs=t=>new zs(t),Qs=(t,n)=>new Ls(t,n),Js=(t,n,e)=>new Ds(t,n,e),Bs=(t,n,e,r=null,i=!1)=>new Ws(t,n,e,r,i),Hs=t=>{if(t.qn){try{t.qn()}catch(t){ae(!1,t)}t.qn=null}},Ys=Object.prototype.hasOwnProperty,Xs=(t,n,e,r,i,s,o)=>N(M(o,t,n,i,s),e,r),Gs=(t,n,e,r,i,s,o,l,c=!1,u)=>N(M(u,t,n,o,l),e,r,i,s,c),Ks=(t,n,e,r,i)=>{if(wr(e))return void rt(e,r,n.node,n,t);if(e===er||e===rr)return ko(n,e,r),void(n.flags|=192);const s=r;if("ref"===e&&G(r,n.node,i))return;const o=n[ei]?.get(e);if(Pl(r)){const i=r instanceof os?r.it():r;if(o?.backRef?.has(i))return;o&&cn(t.p,o),r=K(t.p,n,e,i,t.tt.rt)}else o&&cn(t.p,o);if(hr(r)){const i=n,o=r.then(n=>{O(t.O,i,e,n,t.N,s)});return void t.D.push(o)}O(t.O,n,e,r,t.N,s)};let Zs=null;const to=(t,n,e)=>{Zs||(Zs=t.insertBefore),Zs.call(t,n,e)},no=(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,eo=t=>"false"!==t&&!!t,ro=(io=Dt,()=>queueMicrotask(io));var io;const so=Pr(Dt);let oo=!1;const lo=[],co=(t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}},uo=t=>{let n=null;return e=>(n||(n=co(e,t)),n.call(e))},fo=(t,n,e=null)=>{const r=new fi(e,-4087,null,null,null,null,null,null,t,n);return t.vNode=r,r},ao=t=>{const n=new fi(null,-4095,null,null,null,null,void 0,void 0,t,void 0);return t.vNode=n,n},ho=(t,n)=>new ai(-4084,null,null,null,null,t,n),$o=()=>new ui(null,-4094,null,null,null,null,null,null),po=t=>t instanceof ci,mo=t=>!(1&~t.flags),yo=t=>!!(5&t.flags),wo=t=>!(1&~t.flags)&&void 0!==t.firstChild&&void 0!==t.lastChild,bo=t=>!(4&~t.flags),vo=t=>!(2&~t.flags),go=t=>!(2&~t.flags)&&null!==So(t,_e,null),So=(t,n,e)=>{if(mo(t)||vo(t)){const r=t.props?.[n]??null;if("string"==typeof r&&e){const i=e(r);return t.props[n]=i,i}return r}return null},ko=(t,n,e)=>{null==e&&t.props?delete t.props[n]:(t.props||={},t.props[n]=e)},xo=(t,n,e,r,i=null)=>{mo(n)&&(import.meta.env.TEST&&i&&ko(n,fr,i),ko(n,e,r),Kt(t,Bs(n.node,e,r,i,!!(512&n.flags))))},qo=t=>{if(t.key)return;const n=el(t.node,cr);n&&(t.key=n)},Ro=(t,n)=>{if(1==(15&n.flags)){const e=n;e.flags^=8;const r=e.node,i=r.attributes;let s=!1;for(let n=0;n<i.length;n++){const o=i[n],l=o.name;if(wr(l))Zt(o,l,t,r);else if(s);else if(l!==cr&&l)if(l.startsWith(Ve)){const t=o.value;"html"===t?ko(e,"dangerouslySetInnerHTML",r.innerHTML):"text"===t&&"value"in r&&ko(e,"value",r.value)}else ko(e,l,o.value);else{const t=o.value;t&&(e.key=t),s=!0}}null===So(e,er,null)&&null===So(e,rr,null)||(n.flags|=64)}},Co=t=>{if("_run"===t.bt){const n=t.getCaptured()?.[0];if(ke(n))return n}return t},Eo=(t,n,e)=>{let r=t;for(;e&&r&&vo(r);){const t=n?r.firstChild:r.lastChild;if(!t)break;if(5&t.flags)return t;r=t}for(;r;){let t=n?r.nextSibling:r.previousSibling;if(t&&5&t.flags)return t;if(!t){let e=r.parent;if(e&&!vo(e))return null;for(;e&&!(t=n?e.nextSibling:e.previousSibling);)if(e=e.parent,e&&!vo(e))return null;if(!t)return null;if(bo(t)&&e&&mo(e))return null}for(;t;){if(r=t,5&r.flags&&wl(r))return r;t=n?r.firstChild:r.lastChild}}return null},jo=(t,n)=>{const e=n;if(!(8&e.flags)){const r=Vo(n,!0),i=e.node,s=hl(r);let o=Eo(n,!1,!0);const l=Eo(n,!0,!0),c=i||(l&&mo(l)?l.node:l?.node)||null;let u=c;for(;o&&bo(o);){if(!(8&o.flags)){const n=s.createTextNode(o.text);Kt(t,Js(n,r,u)),u=n,o.node=n,o.flags|=8}o=Eo(o,!1,!0)}for(o=n;o&&bo(o);){const n=Eo(o,!0,!0),e=!n||!bo(n);if(!(8&o.flags)){if(e&&i)Kt(t,Qs(i,o.text));else{const n=s.createTextNode(o.text);Kt(t,Js(n,r,c)),o.node=n}o.flags|=8}o=n}}},_o=(t,n)=>{let e=t;const r=t.node,{qVNodeRefs:i}=r;let s,o=-1;if("string"==typeof n)o=parseInt(n),s=i.get(o);else{s=n;const t=s.vNode;if(t)return t}if(po(s))e=s;else{let t=s;const n=[s];for(;t&&t!==r&&!t.vNode;)t=t.parentElement,n.push(t);t.vNode&&(e=t.vNode);for(let t=n.length-2;t>=0;t--)e=Ao(e,n[t]);-1!=o&&(s.vNode=e,i.set(o,e))}if("string"==typeof n){const t=n.length;let r=Mo(n,t),i=0;for(;r<t;){const t=n.charCodeAt(r);i*=26,t>=97?i+=t-97:(i+=t-65,e=Po(e,i),i=0),r++}}return e},Po=(t,n)=>{let e=Go(t);for(;e.flags>>>12!==n;)e=e.nextSibling;return e},Oo=[],Ao=(t,n)=>{let e=Go(t);for(;e&&(!(e instanceof fi)||e.node!==n);)if(vo(e)){const t=e.nextSibling,n=Go(e);n?(t&&Oo.push(t),e=n):e=t||(Oo.length?Oo.pop():null)}else{const t=e.nextSibling;e=t||t||Oo.pop()}for(;Oo.length;)Oo.pop();return e},Mo=(t,n)=>{let e=0;for(;e<n;){if(!(t.charCodeAt(e)<=57))return e;e++}return n},No=(t,n,e,r)=>{const i=n.createElement("errored-host");r&&r instanceof Error&&(i.props={error:r}),i.setAttribute("q:key","_error_");const s=fo(i,"errored-host");if(yo(e))Uo(t,s,e,null);else{const n=[];tn(t,e,t=>{n.push(t)});for(let e=0;e<n.length;e++)Uo(t,s,n[e],null)}return s},Io=Ft,To=(t,n,e,r)=>{const i=mo(n);i&&Ko(n);const s=e.parent;if(e===r){if(s)return;r=null}Do(t,s,n,e);const o=e.node,l=32&n.flags,c=i?n.node:Vo(n,!1);c&&!l&&Kt(t,Js(o,c,zo(t,n,r)?.node??null)),Lo(n,e,r),l&&(e.flags|=32)},Fo=(t,n,e,r)=>{const i=mo(n);i&&Ko(n);const l=e.parent;if(e===r){if(l)return;r=null}Do(t,l,n,e);const c=32&n.flags,u=!i&&2048&n.flags?n.props?.[Ee]:null,f=u?null:i?n:Qo(n,!1),a=u||f?.node,h=zo(t,n,r),d=h?.node??null;if(go(e)&&f&&1536&f.flags){const i=Qo(n,!1),l=zo(t,n,r)?.node??null,{elementNamespace:c,elementNamespaceFlag:u}=o(i,e);tn(t,e,n=>{if(bo(n))Kt(t,Js(n.node,a,l));else{if((1536&n.flags)!==u){const t=((t,n,e,r)=>{let i=t,l=null,c=null,u=null;for(;i;){let f=null,a=null;if(mo(i)){f=i.node;const t=Ho(i),l=i.parent,h=null==c?n:l&&Qo(l,!0);if(h){const t=o(h,Ho(i));e=t.elementNamespace,r=t.elementNamespaceFlag}const d=Go(i);if(a=s(f,t,e,!d),f.remove(),null==c&&(c=a),u&&u.appendChild(a),i.node=a,i.flags&=-1537,i.flags|=r,d){i=d,u=a;continue}if(tl(f)){const t=Wn(f);if(t){const n=Go(t.rootVNode);if(n){i=n,u=a;continue}}}}if(i===t)return c;const h=i.nextSibling;if(h)i=h;else{for(l=i.parent;l;){if(l===t)return c;const n=l.nextSibling;if(n)return i=n,c;l=l.parent}if(null==l)return c}}return c})(n,i,c,u);t&&(n.node=t)}Kt(t,Js(n.node,a,l))}})}else a&&!c&&tn(t,e,n=>{Kt(t,Js(n.node,a,d))});Lo(n,e,r),c&&(e.flags|=32)},zo=(t,n,e)=>{let r=null;return null==e?vo(n)&&(r=Eo(n,!0,!1)):r=vo(e)?Eo(e,!0,!0):e,r&&bo(r)&&jo(t,r),r},Lo=(t,n,e)=>{const r=e?e.previousSibling:t.lastChild;e?e.previousSibling=n:t.lastChild=n,r?r.nextSibling=n:t.firstChild=n,n.previousSibling=r,n.nextSibling=e,n.parent=t},Do=(t,n,e,r)=>{n&&(r.previousSibling||r.nextSibling||n!==e)&&Jo(t,n,r,!1)},Wo=(t,n)=>{let e=n;for(;e&&vo(e);)e=e.lastChild;!e||!bo(e)||8&e.flags||jo(t,e)},Uo=(t,n,e,r)=>{yo(e)?To(t,n,e,r):Fo(t,n,e,r)},Vo=(t,n)=>{for(;t&&!mo(t);){if(2048&t.flags)return t.props?.[Ee];t=t.parent||(n?t.slotParent:null)}return t?t.node:null},Qo=(t,n)=>{for(;t&&!mo(t);)t=t.parent||(n?t.slotParent:null);return t},Jo=(t,n,e,r)=>{if(bo(e)&&jo(t,e),r){if(null!==So(n,ur,null))return;yo(e)?Kt(t,Us(e.node)):tn(t,e,n=>{Kt(t,Us(n.node))})}const i=e.previousSibling,s=e.nextSibling;i?i.nextSibling=s:n.firstChild=s,s?s.previousSibling=i:n.lastChild=i,e.previousSibling=null,e.nextSibling=null},Bo=(t,n,e,r=!0)=>{const i=Vo(n,!0);if(i&&r)if(yo(n))Kt(t,Vs(n.node));else{const e=Qo(n,!1);e&&e.firstChild===n&&e.lastChild===n?Kt(t,Vs(i)):tn(t,n,n=>{Kt(t,Us(n.node))})}const s=e.previousSibling;s?s.nextSibling=null:n.firstChild=null,n.lastChild=s},Ho=t=>{const n=t;let e=n.elementName;if(void 0===e){const t=n.node,r=al(t).toLowerCase();e=n.elementName=r,n.flags|=(t=>{switch(fl(t)){case He:return 512;case Ye:return 1024;default:return 0}})(t)}return e},Yo=t=>{let n=t.text;return void 0===n&&(n=t.text=t.node.nodeValue),n},Xo=(t,n,e)=>{jo(t,n),n.text=e,Kt(t,Qs(n.node,e))},Go=t=>{if(bo(t))return null;let n=t.firstChild;return void 0===n&&(n=Ko(t)),n},Ko=n=>{const e=n;let r=e.firstChild;return void 0===r&&(r=e.parent&&tl(e.node)?e.firstChild=e.lastChild=null:(n=>{const e=n.node,r=ul(e),i=hl(e)?.qVNodeData?.get(e);return((n,e,r,i)=>{if(qo(n),i){if(i.charCodeAt(0)===Re&&i.charCodeAt(1)===Re){const t=(t=>{const n=t.indexOf("||",2);return{elementVNodeData:t.substring(2,n),virtualVNodeData:t.substring(n+2)}})(i);i=t.virtualVNodeData;const e=dl(n,r,t.elementVNodeData);if(!i)return e}return((n,e,r,i)=>{let s=0,o=null,l=null,c=null;const u=t=>{t.flags=4095&t.flags|s<<12,s++,l&&(l.nextSibling=t),t.previousSibling=l,t.parent=n,o||(n.firstChild=o=t),l=t};let f=0,a=null,h=null;const d=t=>{const n=kl(t);return!n||n&&on(t)};let $=null;if($l(e,(p,m,y,w,b)=>{if(bl(p())){for(;d(i);)if(!(i=ol(i)))throw ge(27,[e,p(),b]);a=null,c=null;let t=0;for(;bl(p());)t*=10,t+=y()-48;for(;t--;){const n=ao(i);for(qo(n),u(n),i=ol(i);kl(i)&&on(i);)if(!(i=ol(i))&&t>0)throw ge(27,[e,p(),b])}}else if(59===p())ko(n,Ne,m());else if(60===p())($||=[]).push(n),ko(n,Ce,m());else if(61===p()){h||(h=Dn(r));const t=m();h.jn(parseInt(t),n)}else if(62===p())ko(n,Ze,m());else if(64===p()){let e;w(b+1)===Re?(y(),e=decodeURI(t(m())),y()):e=m(),n.key=e}else if(91===p())ko(n,tr,m());else if(94===p())ko(n,nr,m());else if(96===p())h||(h=Dn(r)),rn(n,m(),h);else if(63===p())h||(h=Dn(r)),n.slotParent=_o(h.rootVNode,m());else if(93===p())ko(n,Ie,m());else if(123===p())y(),u($o()),gl.push(n,o,l,c,s),s=0,n=l,o=l=null;else if(p()===Re){const e=t(m()),r=t(m());ko(n,e,r)}else if(125===p())y(),n.lastChild=l,s=gl.pop(),c=gl.pop(),l=gl.pop(),o=gl.pop(),n=gl.pop();else if(126===p()){const e=t(m());ko(n,_e,e)}else{for(;kl(i)&&on(i);)i=ol(i);const t=i&&3===rl(i)?i:null;null===a&&(a=t?t.nodeValue:null,f=0);let n=0;for(;vl(p());)n+=y()-97,n*=26;n+=y()-65;const e=null===a?"":a.substring(f,f+n);u(c=((t,n,e)=>new ai(-4092,null,t,null,null,n,e))(c,t,e)),f+=n}}),$){h||(h=Dn(r));for(let t=0;t<$.length;t++)h.ensureProjectionResolved($[t]);$=null}return n.lastChild=l,o})(n,i,e,r)}return dl(n,r)})(n,e,r,i)})(e)),r};let Zo=null;const tl=t=>(Zo||(Zo=t.hasAttribute),Zo.call(t,Ve));let nl=null;const el=(t,n)=>(nl||(nl=t.getAttribute),nl.call(t,n)),rl=uo("nodeType"),il=t=>{const n=rl(t);return 3===n||1===n};let sl=null;const ol=t=>{for(sl||(sl=co(t,"nextSibling")),cl||(cl=co(t,"firstChild"));t;)if(null!==(t=sl.call(t))){const n=rl(t);if(3===n||1===n)break;if(8===n){const n=t.nodeValue;if(n?.startsWith(We))return en(t,Le,sl,cl);if(t.nodeValue?.startsWith(De))return en(t,[Le,Ue],sl,cl);if(n?.startsWith(Ve))for(;t&&(t=sl.call(t))&&(8!==rl(t)||!t.nodeValue?.startsWith(Qe)););}}return t},ll=uo("parentNode");let cl=null;const ul=t=>{if(cl||(cl=co(t,"firstChild")),(t=t&&cl.call(t))&&8===rl(t)&&t.nodeValue?.startsWith(We))return sl||(sl=co(t,"nextSibling")),en(t,Le,sl,cl);for(;t&&!il(t);)t=ol(t);return t},fl=uo("namespaceURI"),al=uo("nodeName"),hl=uo("ownerDocument"),dl=(t,n,e)=>{let r=null;const i=()=>{for(;kl(s)&&on(s);)s=ol(s)};let s=n;i();let o=null;for(;s;){const n=rl(s);let e=null;3===n?e=ho(s,s.textContent??void 0):1===n&&(e=ao(s),qo(e)),e&&(e.parent=t,o&&(o.nextSibling=e),e.previousSibling=o,o=e),r||(t.firstChild=r=o),s=ol(s),i()}if(t.lastChild=o||null,t.firstChild=r,e){let n=null;$l(e,(e,r)=>{if(61===e()){n||(n=Dn(t.node));const e=r();n.jn(parseInt(e),t)}else 96===e()?(n||(n=Dn(t.node)),rn(t,r(),n)):r()})}return r},$l=(t,n)=>{let e=0,r=0,i=0;const s=n=>n<t.length?t.charCodeAt(n):0,o=()=>0!==i?i:i=s(e),l=()=>(r=o(),i=0,e++,r),c=()=>{l();const n=e;for(;o()<=58&&0!==i||92===i||95===i||i>=65&&i<=90||i>=97&&i<=122;)l();return t.substring(n,e)};for(;0!==o();)n(o,c,l,s,e)},pl=(t,n)=>{if(3&n.flags){Ro(t,n);const e=[],r=n.props;if(r)for(const t in r)t.startsWith(cr)||e.push(t);return e}return[]},ml=(t,n)=>{let e=yl(t);for(;e;){if(e===n)return!0;e=yl(e)}return!1},yl=t=>t.parent||t.slotParent,wl=t=>null===t||vo(t)?null:t.node,bl=t=>48<=t&&t<=57,vl=t=>97<=t&&t<=122,gl=[],Sl=t=>{const n=t.flags;if(1&n)return 1;if(2&n)return 11;if(4&n)return 3;throw ge(26,[n])},kl=t=>t&&"object"==typeof t&&1===rl(t),xl=t=>{let n=1;for(;n--;){for(;t&&(!vo(t)||null===So(t,Ce,null));){const e=t.slotParent,r=vo(t)&&e;r&&n++,t=r||t.parent}n>0&&(t=t.parent)}return t},ql=()=>{const t=yu(),n=t.m;let e=t.p.getHostProp(n,tr);null===e&&(e=[],t.p.setHostProp(n,tr,e));let r=t.p.getHostProp(n,nr);for(null===r&&(r=0),t.p.setHostProp(n,nr,r+1);e.length<=r;)e.push(void 0);return{val:e[r],set:t=>(ee&&Yc(t),e[r]=t),i:r,iCtx:t}},Rl=(t,n)=>{const{val:e,set:r,iCtx:i,i:s}=ql();if(e)return;r(1);const o=new El(6|(!1===n?.deferUpdates?0:8),s,i.m,t,void 0,null);r(o);const l=i.p,{Ft:c}=i,u=$r(c,()=>Cl(o,l,i.m));hr(u)&&(i.Ft=u)},Cl=(t,n,e)=>{const r=t._n;if(r)return r;t.h&=-5;const i=t=>n.handleError(t,e);let s=null;const o=$r(((t,n)=>{const e=t.Pn;if(e)return e;const r=t.qn;if(r){t.qn=null;try{const e=r();if(hr(e)){const r=Promise.resolve(e).then(()=>{},t=>{n(t)}).finally(()=>{t.Pn===r&&(t.Pn=void 0)});return t.Pn=r,r}}catch(t){n(t)}}})(t,i),()=>{const r=Yn(n.Nt,e,"qTask");r.p=n;const o=t.wt.getFn(r,()=>ln(n,t)),l=xi(t,n),[c]=((t,n)=>{let e=null;return[r=>{"function"==typeof r&&(e||(e=[],t.qn=()=>{t.qn=null;let r=null;for(let t=0;t<e.length;t++){const i=e[t];try{const t=i();hr(t)&&(r||=[]).push(t.catch(n))}catch(t){n(t)}}if(e=null,r?.length)return Promise.all(r).then(()=>{})}),e.push(r))},e??[]]})(t,i),u={track:l,cleanup:c};return dr(()=>o(u),c,r=>{if(hr(r))return r.then(()=>(t._n===s&&(t._n=null),Cl(t,n,e)));i(r)})});return hr(o)?(s=o.finally(()=>{t._n===s&&(t._n=null)}),t._n=s,s):o};class El extends ri{h;Yt;ut;wt;Mt;qn;Pn;_n=null;constructor(t,n,e,r,i,s){super(),this.h=t,this.Yt=n,this.ut=e,this.wt=r,this.Mt=i,this.qn=s}}const jl=t=>t instanceof El,_l=t=>{if(!t.resolved)throw t.resolve()},Pl=t=>t instanceof qi,Ol=(t,n)=>{t.add(n)},Al=(t,n)=>{(t.backRef||=new Set).add(n)},Ml=(t,n)=>{if(n?.serializationCtx){const e=t.consumer,r=t.property;let i=null;jl(e)?i=e.wt:e instanceof Ri?i=e.nn:":"===r&&(i=n.getHostProp(e,Ce)),i&&n.serializationCtx.Pt.add(i)}},Nl=(t,n,e)=>{const r=!import.meta.env.TEST||!_r();if(e){const i=e=>{const i=e.consumer,s=e.property;if(jl(i))i.h|=4,Gt(t,i.ut,1);else if(i instanceof qi)i.invalidate();else if(":"===s)Gt(t,i,4);else if("."===s)r&&(Et(i,n),Gt(t,i,2));else{const o=e.data;if(o instanceof ls){const e=o.data,l={isConst:e.et,scopedStyleIdPrefix:e.N,value:n};if(r)((t,n,e)=>{const r=t.props||={};let i=r[pi];i||(i=new Map,r[pi]=i),i.set(n,e)})(i,s,l);else{const t=i;let n=t.getProp(pi);n||(n=new Map,t.setProp(pi,n)),n.set(s,l)}Gt(t,i,8)}}},s=Array.from(e);for(let t=0;t<s.length;t++)i(s[t])}},Il=t=>ye(t)&&"function"==typeof t[eu],Tl=t=>{let n=1;switch(t){case"never":n|=8;break;case"always":n|=16}return n},Fl=[],zl=t=>{if(hs(t)){if("function"==typeof t.type){const n=t.type[nf];if(n){const[t]=n;return"Component("+t.bt+")"}return"Function("+t.type.name+")"}let n="<"+t.type;if(t.props){const e=Object.entries(t.props);for(let t=0;t<e.length;t++){const[r,i]=e[t];n+=" "+r+"="+dn(i)}const r=t.children;if(null!=r){if(n+=">",Array.isArray(r))for(let t=0;t<r.length;t++)n+=zl(r[t]);else n+=zl(r);n+="</"+t.type+">"}else n+="/>"}return n}return t+""},Ll=t=>t[Si],Dl=t=>t?.[gi]||null,Wl=(t,n)=>{const e=Ll(t);e&&e.force(n)},Ul=(t,n)=>{const e=Ll(t);return!!e&&(e.ct?.get(n)?.size??0)>0},Vl=t=>Dl(t)||t,Ql=t=>gi in t,Jl=(t,n,e)=>{if(me(t)&&e){let r=e.ht.get(t);return r||(r=$n(e,t,n),e.ht.set(t,r)),r}return t};class Bl{h;p;ct=void 0;constructor(t,n){this.h=t,this.p=n}toString(){return"[Store]"}force(t){const n=Dl(this);Nl(this.p,this,yn(n,t,this.ct))}get(t,n){if("symbol"==typeof n)return n===gi?t:n===Si?this:t[n];const e=pu(),r=t[n];if(e){if(null===this.p){if(!e.p)return r;this.p=e.p}const i=e.Tt;i&&pn(t,Array.isArray(t)?ki:n,this,i)}return"toString"===n&&r===Object.prototype.toString?this.toString:1&this.h&&ye(r)&&!Object.isFrozen(r)&&!Ql(r)&&!Object.isFrozen(t)?Jl(r,this.h,this.p):r}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const r=1&this.h?Vl(e):e;return n in t?r!==t[n]&&mn(n,r,t,this):mn(n,r,t,this),!0}deleteProperty(t,n){return"string"==typeof n&&delete t[n]&&(Array.isArray(t)||Nl(this.p,this,yn(t,n,this.ct)),!0)}has(t,n){if(n===gi)return!0;if("string"==typeof n){const e=pu();if(e){const r=e.Tt;r&&pn(t,Array.isArray(t)?ki:n,this,r)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=pu(),e=n?.Tt;return e&&pn(t,ki,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}}}class Hl{On;An=0;qt=[];Mn=0;Nn=new Set;In=new Map;Tn;Fn=new Map;At;constructor(t){this.On=t,this.At=t.At}async serialize(){await this.outputRoots()}outputArray(t,n,e){this.At.write("[");let r,i=!1;if(n)r=t.length;else{for(r=t.length-1;r>=0&&void 0===t[r];)r--;r++}for(let n=0;n<r;n++)i?this.At.write(Zr):i=!0,e(t[n],n);this.At.write("]")}stringNeedsJsonEscape$(t){for(let n=0;n<t.length;n++){const e=t.charCodeAt(n);if(e<32||34===e||92===e)return!0}return!1}output(t,n,e){if("number"==typeof n)this.At.write(t+Zr+n);else if("string"==typeof n){const e=this.stringNeedsJsonEscape$(n)?JSON.stringify(n):'"'+n+'"';this.At.write(t+Zr);let r=-1,i=0;for(;-1!==(r=e.indexOf("</",i));)this.At.write(e.slice(i,r)),this.At.write("<\\/"),i=r+2;this.At.write(0===i?e:e.slice(i))}else this.At.write(t+Zr),this.outputArray(n,!!e,(t,n)=>{this.writeValue(t,n)})}getSeenRefOrOutput(t,n,e){let r=this.On.getSeenRef(t);const i=!e&&this.In.get(t);if(!r){if(e)return!0;if("number"!=typeof i)return this.On.zn(t,this.Tn,n);r=this.On.kt(t,!0)}r.Tn&&(this.Tn?this.On.Ln(r):(this.On.Ln(r,n),t=this.On.Dn[n])),"number"==typeof i&&(this.qt[i]=r.Yt,this.In.delete(t));const s=t instanceof nc?t.Wn:r.Yt;if(!this.Tn&&s===n)return r;this.output(1,s)}writeValue(t,n){if(Zc(t))this.output(3,0);else switch(typeof t){case"undefined":this.output(3,0);break;case"boolean":this.output(3,t?2:3);break;case"number":Number.isNaN(t)?this.output(3,12):Number.isFinite(t)?t===Number.MAX_SAFE_INTEGER?this.output(3,15):t===Number.MAX_SAFE_INTEGER-1?this.output(3,16):t===Number.MIN_SAFE_INTEGER?this.output(3,17):this.output(0,t):this.output(3,t<0?14:13);break;case"string":0===t.length?this.output(3,4):(t.length<4||this.getSeenRefOrOutput(t,n))&&this.output(0,t);break;case"bigint":(t<1e4&&t>-1e3||this.getSeenRefOrOutput(t,n))&&this.output(12,""+t);break;case"symbol":t===bi?this.output(3,7):t===ki?this.output(3,8):t===Mi&&this.output(3,9);break;case"function":if(t===Es)this.output(3,10);else if(t===qs)this.output(3,11);else if(ke(t)){if(this.getSeenRefOrOutput(t,n)){const[n,e,r]=wn(this.On,t,!0);let i;if(""!==n){i=`${this.On.kt(n)}#${this.On.kt(e)}${r?"#"+r:""}`;const s=this.Fn.get(i);if(s){const t=this.On.kt(s);return void this.output(1,t)}this.Fn.set(i,t)}else i=+e;this.output(9,i)}}else{if(!ef(t))throw ge(34,[""+t]);{const[n]=t[nf];this.On.Un.add(n.bt),this.output(21,[n])}}break;case"object":if(t===Ni)this.output(3,5);else if(t===Ii)this.output(3,6);else if(null===t)this.output(3,1);else if(t instanceof nc)this.output(1,t.Wn);else{const e=this.getSeenRefOrOutput(t,n);if(e){const n=this.Tn;this.Tn=e,this.writeObjectValue(t),this.Tn=n}}break;default:throw ge(20,[typeof t])}}writeObjectValue(t){if(Vi(t)){const n=t[Pi];this.output(30,[Zl(n),n.varProps,n.constProps,t[Oi].ct])}else if(t instanceof ls)this.output(31,[t.data.N,t.data.et]);else if(t instanceof vi)this.output(32,[t.consumer,t.property,t.data]);else if(Ql(t)){const n=Ll(t),e=Dl(t),r=n.h,i=n.ct,s=[];for(const t in e){const n=this.On.ht.get(e[t]);n&&s.push(n)}const o=[e,r,i,...s];for(;void 0===o[o.length-1];)o.pop();this.output(27,o)}else if(Il(t)){const n=t[eu](t);if(hr(n)){const t=this.resolvePromise(n,(t,n)=>new Yl(26,t,n,void 0,void 0));this.output(2,t)}else{const t=this.Tn.Yt;this.Tn=this.Tn.Tn,this.writeValue(n,t)}}else if((t=>{const n=Object.getPrototypeOf(t);return null==n||n===Object.prototype||n===Array.prototype})(t))if(Array.isArray(t))this.output(4,t);else{const n=[];for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];Zc(r)||n.push(e,r)}this.output(5,n.length?n:0)}else if(this.On.Vn(t))t.Qn.vnodeData[0]|=16,this.output(11,t.Qn.id);else if(t instanceof qi){if(t instanceof Ji){const n=((t,n)=>n===bi?n:$r(t.nn.resolved||t.nn.resolve(),t=>{let e;return"function"==typeof t&&(t=t()),t.serialize?e=t.serialize(n):"object"==typeof n&&eu in n&&(e=n[eu](n)),void 0===e&&(e=bi),e}))(t,t.Zt);if(hr(n)){const e=this.resolvePromise(n,(n,e)=>new Yl(26,n,e,t.ct,t.nn));this.output(2,e)}else this.output(26,[t.nn,t.ct,n]);return}if(t instanceof os)this.output(23,[...gn(this.On,t),t.h,t.m,...t.ct||[]]);else if(t instanceof Ri){let n=t.Zt;const e=16&t.h,r=8&t.h,i=1&t.h,s=Zc(t.Zt),o=t instanceof Ei,l=o&&0!==t.Rt?t.Rt:void 0,c=o&&1!==t.mn?t.mn:void 0,u=o&&0!==t.yn?t.yn:void 0,f=o&&-25&t.h||void 0;i||s?n=bi:e?n=t.Zt:r&&(n=bi);const a=[t.nn,t.ct];o&&(a.push(t.dt,t.$t,t.dn),a.push(f||void 0));let h=!1;n===bi&&void 0===l&&void 0===c&&void 0===u||(a.push(n),void 0===n&&(h=!0)),o&&(a.push(l),a.push(c),a.push(u)),this.output(o?25:24,a,h)}else{const n=t.Zt,e=void 0===n,r=[n];t.ct&&r.push(...t.ct),this.output(22,r,e)}}else if(t instanceof URL)this.output(6,t.href);else if(t instanceof Date)this.output(7,Number.isNaN(t.valueOf())?"":t.valueOf());else if(t instanceof RegExp)this.output(8,""+t);else if(t instanceof Error){const n=[t.message];n.push(...Object.entries(t).flat()),this.output(15,n)}else if(this.On.Jn(t)){const n=this.On.kt(t);this.On.Bn(t,"q:id",n+""),this.output(10,t.id);const e=t.vnodeData;if(e&&(Xl(e,t=>this.On.kt(t)),e[0]|=16),t.children){const n=t.children.length;for(let e=0;e<n;e++){const n=t.children[e].vnodeData;n&&(n[0]|=16)}}}else if("undefined"!=typeof FormData&&t instanceof FormData){const n=[];for(const[e,r]of t.entries())"string"==typeof r&&n.push(e,r);this.output(28,n)}else if(t instanceof URLSearchParams)this.output(13,""+t);else if(t instanceof Set)this.output(17,[...t.values()]);else if(t instanceof Map){const n=[];for(const[e,r]of t.entries())n.push(e,r);this.output(18,n)}else if(hs(t)){const n=[t.type,t.key,t.varProps,t.constProps,t.children,t.toSort||void 0];for(;void 0===n[n.length-1];)n.pop();this.output(29,n)}else if(t instanceof El){const n=[t.wt,t.h,t.Yt,t.ut,t.Mt];for(;void 0===n[n.length-1];)n.pop();this.output(20,n)}else if(hr(t)){const n=this.resolvePromise(t,(t,n)=>new Yl(16,t,n));this.output(2,n)}else if(t instanceof Yl)if(26===t.Hn)if(t.wt)this.output(26,[t.wt,t.ct,t.Yn]);else{if(!t.Xn)throw console.error(t.Yn),ge(33);{const n=this.Tn.Yt;this.Tn=this.Tn.Tn,this.writeValue(t.Yn,n)}}else this.output(16,[t.Xn,t.Yn]);else if(t instanceof Uint8Array){let n="";const e=t.length;for(let r=0;r<e;r++)n+=String.fromCharCode(t[r]);const r=btoa(n).replace(/=+$/,"");this.output(19,r)}else if(t instanceof Kl){const n=t.Gn;if(this.getSeenRefOrOutput(n,this.Tn.Yt,!0)){let t=this.In.get(n);void 0===t&&(t=this.Mn++,this.In.set(n,t),this.qt[t]=-1),this.output(2,t)}}else{if(!po(t))throw ge(20,[typeof t]);this.output(3,0)}}resolvePromise(t,n){const e=this.Mn++;return t.then(r=>{this.Nn.delete(t),this.qt[e]=this.On.kt(n(!0,r))}).catch(r=>{this.Nn.delete(t),this.qt[e]=this.On.kt(n(!1,r))}),this.Nn.add(t),e}async outputRoots(){this.At.write("[");const{Dn:t}=this.On;for(;this.An<t.length||this.Nn.size;){0!==this.An&&this.At.write(Zr);let n=!1;for(;this.An<t.length;this.An++)n?this.At.write(Zr):n=!0,this.writeValue(t[this.An],this.An);if(this.Nn.size)try{await Promise.race(this.Nn)}catch{}}if(this.qt.length){let t=this.qt.length-1;for(;t>=0&&-1===this.qt[t];)t--;if(t>=0){this.At.write(Zr),this.At.write(14+Zr);const n=t===this.qt.length-1?this.qt:this.qt.slice(0,t+1);this.outputArray(n,!0,t=>{this.At.write(t+"")})}}this.At.write("]")}}class Yl{Hn;Xn;Yn;ct;wt;constructor(t,n,e,r,i){this.Hn=t,this.Xn=n,this.Yn=e,this.ct=r,this.wt=i}}const Xl=(t,n)=>{const e=t.length;for(let r=0;r<e;r++){const e=t[r];if(Gl(e))for(const t in e){const r=e[t];null==r||"string"==typeof r||t===Ze&&Kr(r)||n(r)}}},Gl=t=>"object"==typeof t&&null!==t&&!Kr(t);class Kl{Gn;constructor(t){this.Gn=t}}const Zl=t=>new Kl(t);let tc=()=>!1;class nc{Wn;constructor(t){this.Wn=t}}class ec{NodeConstructor;DomRefConstructor;St;Bn;ht;At;Kn=new Map;Zn=new Map;te=[];Dn=[];Ct=new Set;Pt=new Set;_t=new Set;Un=new Set;ne;constructor(t,n,e,r,i,s){this.NodeConstructor=t,this.DomRefConstructor=n,this.St=e,this.Bn=r,this.ht=i,this.At=s,this.ne=new Hl(this)}async Ot(){return await this.ne.serialize()}getSeenRef(t){return this.Kn.get(t)}zn(t,n,e){const r={Yt:e,Tn:n};return this.Kn.set(t,r),r}ee(t){const n=[];for(;t.Tn;)n.unshift(t.Yt),t=t.Tn;return n.unshift(t.Yt),n.join(" ")}Ln(t,n){const e=this.ee(t);void 0===n&&(n=this.Dn.length),this.Dn[n]=new nc(e),t.Tn=null,t.Yt=n}kt(t,n=!1){let e,r=this.Kn.get(t);return r?(r.Tn&&this.Ln(r),e=r.Yt):(e=this.Dn.length,r={Yt:e},this.Kn.set(t,r),this.Dn.push(t)),n?r:e}Jn(t){return!!this.NodeConstructor&&t instanceof this.NodeConstructor}Vn(t){return!!this.DomRefConstructor&&t instanceof this.DomRefConstructor}re(t){const n=this.Kn.get(t);return n&&(n.Tn?void 0:n.Yt)}gt(t,n,e){const r=null==t;r&&(t=e.serialized||""+e);let i=this.Zn.get(t);if(void 0===i)if(i=this.te.length,this.Zn.set(t,i),r)this.te.push(t);else{let e="(";for(let t=0;t<n;t++)e+=(0==t?"p":",p")+t;this.te.push(e+=")=>"+t)}return i}}const rc=(t,n,e,r,i,s)=>{if(!s){const t=[];s={write:n=>t.push(n),toString:()=>t.join("")}}return tc=n?t=>t instanceof n:()=>!1,new ec(t,n,e,r,i,s)},ic=(t,n)=>t[n],sc=(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(Ql(t)&&(t=Dl(t)),e==Object.prototype){for(const e in t)if(!sc(bu(ic,t,e),n))return!1;return!0}if(e==Array.prototype){for(let e=0;e<t.length;e++){if(!(e in t))return!1;if(!sc(t[e],n))return!1}return!0}if(jl(t))return!0;if(Vi(t))return!0;if(hr(t))return!0;if(hs(t))return!0;if(Il(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(t instanceof ls)return!0;if(tc?.(t))return!0}else if("function"==typeof t){if(ke(t)||ef(t)||t===Es||t===qs)return!0}else if(t===Mi||t===bi||t===ki)return!0;return!1},oc=[void 0,null,!0,!1,"",Ni,Ii,bi,ki,Mi,Es,qs,NaN,1/0,-1/0,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER-1,Number.MIN_SAFE_INTEGER],lc=["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"],cc=["Plain","RootRef","ForwardRef","Constant","Array","Object","URL","Date","Regex","QRL","VNode","RefVNode","BigInt","URLSearchParams","ForwardRefs","Error","Promise","Set","Map","Uint8Array","Task","Component","Signal","WrappedSignal","ComputedSignal","AsyncSignal","SerializerSignal","Store","FormData","JSXNode","PropsProxy","SubscriptionData","EffectSubscription"],uc=(t,n)=>{let e=po(t)?sn.call(t,1,"",!0).replaceAll(/\n.*/gm,""):"function"==typeof t?t+"":(t=>{const n=new WeakSet;return JSON.stringify(t,(t,e)=>{if(ye(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 fc=!1;const ac=(t,n=!1,e="",r=20)=>{const i=n?"[31m":"",s=n?"[0m":"",o=""===e,l=[];for(let o=0;o<t.length;o++){if(r&&o>2*r){l.push("...");break}const c=t[o];let u=t[++o];if(0===c){"number"!=typeof u&&"string"!=typeof u&&(fc=!0);const t=`{${ye(u)?u.constructor.name:typeof u}}`;l.push(`${i}${t}${s} ${uc(u,e+" ")}`)}else 3===c?u=dc(u):"string"==typeof u?(u=JSON.stringify(u),u.length>120&&(u=u.slice(0,120)+'"...')):14===c?u=`[\n${e} ${u.join(`\n${e} `)}\n${e}]`:Array.isArray(u)&&(u=u.length?`[\n${ac(u,n,e+" ")}\n${e}]`:"[]"),l.push(`${i}${hc(c)}${s} ${u}`)}const c=l.map((t,n)=>`${e}${o?n+" ":""}${t}`).join("\n");if(o){const n=fc?"":`(${JSON.stringify(t).length} chars)`;return fc=!1,`\n${c}\n${n}`}return c},hc=t=>cc[t]||`Unknown(${t})`,dc=t=>lc[t]||`Unknown(${t})`,$c=new WeakMap,pc=new Map,mc=(t,n,e)=>{switch(n){case 0:case 14:return e;case 1:return t.k(e);case 2:if(!t.qt)return Mi;const r=t.qt[e];return-1===r||void 0===r?Mi:t.k(r);case 3:return oc[e];case 4:return Array(e.length/2);case 5:return{};case 9:{let n;if("string"==typeof e){const[r,i,s]=e.split("#");n=bn(t.k(r),t.k(i),s||null,t)}else n=bn("",e+"",null,t);return n}case 20:return new El(-1,-1,null,null,null,null);case 6:return new URL(e);case 7:return new Date(e);case 8:const i=e.lastIndexOf("/");return RegExp(e.slice(1,i),e.slice(i+1));case 15:return Error();case 21:return tf(null);case 22:return new qi(t,0);case 23:return new os(t,null,null,null);case 24:return new Ri(t,null);case 25:return new Ei(t,null,void 0,{interval:0});case 26:return new Ji(t,null);case 27:{const n=e,r=n[0],i=n[1],s=mc(t,r,i),o=Jl(s,0,t);return Vc(r)&&pc.set(s,{t:r,v:i}),n[0]=0,n[1]=s,o}case 13:return new URLSearchParams(e);case 28:return new FormData;case 29:return new fs(null,null,null,null,0,null);case 12:return BigInt(e);case 17:return new Set;case 18:return new Map;case 16:let s,o;const l=new Promise((t,n)=>{s=t,o=n});return $c.set(l,[s,o]),l.catch(()=>{}),l;case 19:const c=e.length,u=3&c;return new Uint8Array(3*(c>>>2)+(u?u-1:0));case 30:return p(null);case 10:return kn(t,e);case 11:const f=kn(t,e);if(po(f))return Ko(f),wl(f);throw ge(17,[typeof f]);case 31:return new ls({});case 32:return new vi(null,null,null,null);default:throw ge(18,[n])}},yc=(t,n,e)=>{let r=null,i=null;if(ve(t))i=t;else{if(!be(t))throw ge(7,[t]);r=t}return Wu(r,n,null,i,e)},wc=(t,n,e)=>Wu(null,n,t,null,e),bc=(t,n)=>Wu(null,t,null,null,n),vc=(t,n,e)=>{const r=bc(t,e);return r.ie(n),r},gc=(t,n,e,r)=>{const i=yc(t,n,r);return i.ie(e),i},Sc=(t,n,e,r)=>{const i=wc(t,n,r);return i.ie(e),i},kc=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t),xc=(t,n,e)=>new os(null,t,n,e||null);class qc{se;ht;Nt;k;zt;oe=0;le=null;ce=null;l=null;u=null;o=0;constructor(t,n){this.zt=t,this.Nt=n,this.se=ti,this.ht=new WeakMap,this.k=()=>{throw Error("Not implemented")}}trackSignalValue(t,n,e,r){return Su(t,n,e,this,r)}serializationCtxFactory(t,n,e,r){return rc(t,n,e,this.setHostProp.bind(this),this.ht,r)}ft(){0===this.o&&(this.u?.(),this.l=null)}}class Rc{}const Cc=()=>Iu,Ec=async t=>{const[n,e]=Iu,r=await n(t);return r&&"object"==typeof r?e.r?Object.assign(e.r,r):e.r=$n(n.p,r,1):e.r=r,{r:e.r}},jc=(t,n)=>{const{val:e,set:r,iCtx:i}=ql();if(e)return e;const s=Wu(null,"_rsc",Ec,null,[t,{}],i.p),o=Hi(s,{timeout:n?.timeout,container:i.p,concurrency:0});o.$();const l={__brand:"resource",signal:o,get value(){return o.promise().then(()=>o.error?Promise.reject(o.error):o.value.r)},get loading(){return o.loading}};return r(l),l},_c=({value:t,onResolved:n,onPending:e,onRejected:r})=>{if(hr(t))return t.then(n,r);const i=Pc(t),s=i?t.signal:t;if(e&&s.loading)return e();if(r&&s.error)return r(s.error);const o=i?s.value?.r:s.value;return hr(o)?o.then(n,r):n(o)},Pc=t=>t&&"resource"===t.__brand,Oc=(t,n)=>{Nc("q-e:",t,n)},Ac=(t,n)=>{Nc("q-d:",t,n)},Mc=(t,n)=>{Nc("q-w:",t,n)},Nc=(t,n,e)=>{const{isAdded:r,addEvent:i}=Ic();if(!r&&e)if(Array.isArray(n))for(let r=0;r<n.length;r++)i(t+br(n[r]),e);else i(t+br(n),e)},Ic=()=>{const t=yu(),n=t.m;let e=t.p.getHostProp(n,sr);null===e&&(e={},t.p.setHostProp(n,sr,e));let r=t.p.getHostProp(n,or);null===r&&(r=0),t.p.setHostProp(n,or,r+1);let i=t.p.getHostProp(n,lr);for(null===i&&(i=[],t.p.setHostProp(n,lr,i));i.length<=r;)i.push(!1);return{isAdded:i[r],addEvent:(t,n)=>{i[r]=!0;let s=e[t];s||(e[t]=s=[]),s.push(n)}}},Tc=function(t,n){if(!t.detail.files.some(t=>n.getAttribute("data-qwik-inspector")?.startsWith(t)))return;if("string"==typeof this){const t=Dn(n);Tu(Fu(t,this))}const e=Iu[0];Gt(Dn(n),e,4);const r=n.ownerDocument;r.__hmrDone=r.__hmrT};let Fc,zc=Promise.resolve();const Lc=new Set(["constructor","prototype","toString","valueOf","toJSON","then"]),Dc=(t,n)=>"string"==typeof t&&"__proto__"!==t&&("function"!=typeof n||!Lc.has(t)),Wc=(t,n,e,r)=>{if(0!==e)switch(4!==e&&Array.isArray(r)&&(r=Uc(t,r)),e){case 4:Uc(t,r,n);break;case 5:if(0===r)break;for(let t=0;t<r.length;t+=2){const e=r[t],i=r[t+1];Dc(e,i)&&(n[e]=i)}break;case 20:const i=n,s=r;i.wt=s[0],i.h=s[1],i.Yt=s[2],i.ut=s[3],i.Mt=s[4];break;case 21:n[nf][0]=r[0];break;case 27:{const e=Vl(n),i=pc.get(e);i&&(pc.delete(e),Wc(t,e,i.t,i.v));const[,s,o]=r,l=Ll(n);l.h=s,l.ct=o,Tn(l.ct,e);break}case 22:{const t=n,e=r;t.Zt=e[0],t.ct=new Set(e.slice(1)),In(t.ct,t);break}case 23:{const e=n,i=r;e.ot=t.getSyncFn(i[0]),e.lt=i[1],e.Zt=bi,e.h=i[2],e.h|=1,e.m=i[3],e.ct=new Set(i.slice(4)),(t=>{if(null!==t.m&&po(t.m)){const n=t.m,e=t.ct;let r=!1;if(e)for(const i of e){const e=i.property;if(be(e)){const i=So(n,e,null);if(null!==i){t.Zt=i,r=!0;break}}}if(!r){const e=Go(n);e&&n.firstChild===n.lastChild&&bo(e)&&(t.Zt=Yo(e))}}})(e),In(e.ct,e);break}case 25:{const t=n,e=r;t.nn=e[0],t.ct=new Set(e[1]),t.dt=new Set(e[2]),t.$t=new Set(e[3]),t.dn=e[4],t.h=e[5]??0,64&t.h&&(t.hn=!0),e.length>6&&(t.Zt=e[6]),t.Zt===bi&&(t.h|=1),t.interval=e[7]??0,t.mn=e[8]??1,t.yn=e[9]??0,In(t.ct,t),In(t.dt,t),In(t.$t,t);break}case 26:case 24:{const i=n,s=r;i.nn=s[0];const o=i.nn.resolve(t).catch(()=>{});zc=zc.finally(()=>o),s[1]&&(i.ct=new Set(s[1])),s.length>2&&(i.Zt=s[2]),26!==e&&i.Zt!==bi&&(i.h&=-2),In(i.ct,i);break}case 15:{const t=r;n.message=t[0];for(let e=1;e<t.length;e+=2)n[t[e]]=t[e+1];break}case 28:{const t=n,e=r;for(let n=0;n<e.length;n++)t.append(e[n++],e[n]);break}case 29:{const t=n,[e,i,s,o,l,c]=r;t.type=e,t.key=i,t.varProps=s,t.constProps=o||null,t.children=l,t.toSort=!!c;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,i]=r,[s,o]=$c.get(t);e?s(i):o(i);break}case 19:const o=n,l=atob(r);let c=0;for(let t=0;t<l.length;t++)o[c++]=l[t].charCodeAt(0);break;case 30:const u=n,f=r;let a=f[0];a===Mi&&(a=new fs(qs,f[1],f[2],null,0,null),a._proxy=u),u[Pi]=a;const h=u[Oi];h.ct=f[3],Tn(h.ct,u);break;case 31:{const t=n;t.data.N=r[0],t.data.et=r[1];break}case 32:{const t=n,e=r;t.consumer=e[0],t.property=e[1],t.data=e[2],(t=>{const n=import.meta.env.TEST?_r():Kn,e=t.consumer;n&&!e||(e[ei]||=new Map,e[ei].set(t.property,t))})(t);break}default:throw ge(16,[e])}},Uc=(t,n,e=Array(n.length/2))=>{for(let r=0;r<n.length;r+=2)e[r/2]=Nn(t,n[r],n[r+1]);return e},Vc=t=>t>=15||4===t||5===t,Qc=new WeakMap,Jc=Symbol(),Bc=(t,n)=>{if(!Array.isArray(n)||po(n)||ye(e=n)&&Jc in e)return n;var e;let r=Qc.get(n);if(!r){const e=Array(n.length/2).fill(void 0);r=new Proxy(e,new Hc(t,n)),Qc.set(n,r)}return r};class Hc{p;ue;fe;constructor(t,n){this.p=t,this.ue=n,this.fe=this.ue.length/2}get(t,n,e){if(n===Jc)return t;const r="number"==typeof n?n:"string"==typeof n?parseInt(n,10):NaN;if(Number.isNaN(r)||r<0||r>=this.fe)return Reflect.get(t,n,e);const i=2*r,s=this.ue[i],o=this.ue[i+1];if(0===s)return o;const l=this.p,c=mc(l,s,o);return Reflect.set(t,n,c),this.ue[i]=0,this.ue[i+1]=c,Vc(s)&&Wc(l,c,s,o),c}has(t,n){return n===Jc||Object.prototype.hasOwnProperty.call(t,n)}set(t,n,e,r){if(n===Jc)return!1;const i=Reflect.set(t,n,e,r),s="number"==typeof n?n:parseInt(n,10);if(Number.isNaN(s)||s<0||s>=this.ue.length/2)return i;const o=2*s;return this.ue[o]=0,this.ue[o+1]=e,!0}}const Yc=(t,n)=>bu(Xc,t,new WeakSet,"_",n),Xc=(t,n,e,r)=>{const i=Vl(t);if(null==i)return t;if(Kc(i)){if("object"==typeof i){if(n.has(i))return t;n.add(i)}if(Pl(i))return t;if(sc(i))return t;const s=typeof i;if("object"===s){if(hr(i))return t;if((t=>t&&"number"==typeof t.nodeType)(i))return t;if(we(i)){let r=0;for(let t=0;t<i.length;t++){if(!(t in i))throw ge(3,[i]);const s=i[t];if(t!==r)throw ge(3,[i]);Xc(s,n,e+"["+t+"]"),r=t+1}return t}if(i instanceof ci)return t;if(i.__brand||i.__brand__)return t;if(me(i)){for(const[t,r]of Object.entries(i))Xc(r,n,e+"."+t);return t}}let o;if(o=r||"Value cannot be serialized","_"!==e&&(o+=` in ${e},`),"object"===s)o+=` 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"===s){const n=t.name;o+=` because it's a function named "${n}". You might need to convert it to a QRL using $(fn):\n\nconst ${n} = $(${t+""});\n\nPlease check out https://qwik.dev/docs/advanced/qrl/ for more information.`}throw ge(3,[o])}return t},Gc=/*#__PURE__*/new WeakSet,Kc=t=>!ye(t)&&!ve(t)||!Gc.has(t)&&!(nu in t),Zc=t=>!!t&&(ye(t)||"function"==typeof t)&&(Gc.has(t)||nu in t),tu=t=>((ye(t)&&null!==t||"function"==typeof t)&&Gc.add(t),t),nu=Symbol(),eu=Symbol(),ru=t=>/*#__PURE__*/Object.freeze({id:br(t)}),iu=(t,n)=>{const{val:e,set:r,iCtx:i}=ql();void 0===e&&(ee&&ou(t),ee&&Yc(n),i.p.setContext(i.m,t,n),r(1))},su=(t,n)=>{const{val:e,set:r,iCtx:i}=ql();if(void 0!==e)return e;ee&&ou(t);const s=i.p.resolveContext(i.m,t);if("function"==typeof n)return r(Jn(void 0,n,s));if(void 0!==s)return r(s);if(void 0!==n)return r(n);throw ge(8,[t.id])},ou=t=>{if(!ye(t)||"string"!=typeof t.id||0===t.id.length)throw ge(11,[t])},lu=t=>{const n=mu(),e=n.m;if(e)return n.p?.resolveContext(e,t)},cu=/*#__PURE__*/ru("qk-error"),uu=t=>33<=t&&t<=46,fu=(t,n,e)=>{let r=0;for(;n<e;){const e=t.charCodeAt(n);if(92===e)n+=2;else{if(0===r&&uu(e))break;123===e?r++:125===e&&r--,n++}}return n},au=t=>t instanceof hu;class hu extends qc{element;qContainer;qManifestHash;rootVNode;document;ht=new WeakMap;ae;le;qt=null;vNodeLocate=t=>_o(this.rootVNode,t);he;de;$e=null;constructor(t){if(super({},t.getAttribute("q:locale")),this.qContainer=t.getAttribute(Ve),!this.qContainer)throw ge(25);this.document=t.ownerDocument,this.element=t,this.ce=t.getAttribute(ze),this.le=t.getAttribute("q:instance"),this.qManifestHash=t.getAttribute("q:manifest-hash"),this.rootVNode=ao(this.element),this.he=[],this.de=[];const n=this.element.ownerDocument;n.qVNodeData||function(t){const n="q:container",e="/"+n,r="q:ignore",i="/"+r,s="q:container-island",o="/"+s,l=t.qVNodeData||(t.qVNodeData=new WeakMap),c=t.body,u=c.getAttribute,f=c.hasAttribute,a=((t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}})(c,"nodeType"),h=t=>{const n=t.querySelectorAll('script[type="qwik/vnode"]');for(let t=0;t<n.length;t++){const e=n[t],r=e.closest("[q\\:container]");r.qVnodeData=e.textContent,r.qVNodeRefs=new Map}const e=t.querySelectorAll("[q\\:shadowroot]");for(let t=0;t<e.length;t++){const n=e[t].shadowRoot;n&&h(n)}};h(t);const d=t=>{const l=a.call(t);if(1===l)return null===u.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 9;if(l.startsWith(o))return 64;if(l.startsWith(i))return 32;if(l.startsWith(e))return 8}return 0},$=t=>{for(;t&&(t=t.nextSibling)&&0===d(t););return t},p=(n,e,r,i,s,o)=>{const c=s.length;let u=0,f=-1,a=0,h=0,m=0,y=-1,w=null;const b=()=>{let t=0;for(;uu(m=s.charCodeAt(a))&&(t+=1<<m-33,a++,!(a>=c)););return t};do{if(r===i)return;w=null;const v=r==e?2:d(r);if(3===v){const t=r;let e=r;for(;e&&!(w=$(e));)e=e.parentNode;p(n,t,r,w,t.qVnodeData||"",t.qVNodeRefs)}else if(16===v){let t=r;do{if(t=n.nextNode(),!t)throw Error(`Island inside \x3c!--${r?.nodeValue}--\x3e not found!`)}while(65!==d(t));w=null}else if(64===v){let t;w=r;do{if(w=n.nextNode(),!w)throw Error("Ignore block not closed!");t=d(w)}while(32!==t&&65!==t);w=null}else if(9===v){w=r;do{if(w=$(w),!w)throw Error(`\x3c!--${r?.nodeValue}--\x3e not closed!`)}while(8!==d(w));p(n,r,r,w,"",null)}else if(6===v){w=$(r);const n=r,e=n?.shadowRoot;e&&p(t.createTreeWalker(e,129),null,e,null,"",null)}if(!(2&~v)){if(f<u&&(-1===f&&(f=0),a=h,a<c?(f+=b(),126===m&&(y=f,a++,m=a<c?s.charCodeAt(h):33),h=fu(s,a,c)):f=Number.MAX_SAFE_INTEGER),u===f){y===u&&o.set(u,r);const t=s.substring(a,h);l.set(r,t)}u++}}while(r=w||n.nextNode())},m=t.createTreeWalker(t,129);p(m,null,m.firstChild(),null,"",null)}(n),this.ae=Fe(n,this.le)||Ni,this.pe(),t.setAttribute(Ve,"resumed"),t.qContainer=this,t.qDestroy=()=>this.qn();const e=t.querySelectorAll('script[type="qwik/state"]');0!==e.length&&(this.he=JSON.parse(e[e.length-1].textContent),Sn(this.he,this),this.de=Bc(this,this.he)),this.me(),!ie&&t.isConnected&&t.dispatchEvent(new CustomEvent("qresume",{bubbles:!0}))}qn(){this.vNodeLocate=()=>null,this.he.length=0,this.de.length=0,this.k=()=>{};const t=this.element;t.qContainer=void 0,t.qVnodeData=void 0,t.qVNodeRefs=void 0,t.removeAttribute(Ve),t.ownerDocument.qVNodeData=void 0}me(){const t=this.element.ownerDocument,n=t.head,e=t.body.querySelectorAll(Me),r=e.length;if(r){const i=t.createDocumentFragment();for(let t=0;t<r;t++)i.appendChild(e[t]);n.appendChild(i)}}jn(t,n){this.de[t]=n}parseQRL(t){return vn(t,this)}handleError(t,n){if(ee&&n&&("undefined"!=typeof document&&(jt(n,t),Gt(this,n,256)),t&&t instanceof Error&&("hostElement"in t||(t.hostElement=n+"")),!(t=>!(t&&t instanceof Error&&"plugin"in t))(t)))throw t;const e=n&&this.resolveContext(n,cu);if(!e)throw t;e.error=t}setContext(t,n,e){let r=this.getHostProp(t,Ie);null==r&&this.setHostProp(t,Ie,r=[]),de(r,n.id,e,0,!0)}resolveContext(t,n){for(;t;){const e=this.getHostProp(t,Ie);if(null!=e&&pe(e,n.id,0))return $e(e,n.id,0);t=this.getParentHost(t)}}getParentHost(t){let n=t.parent;for(;n;)if(vo(n)){if(null!==So(n,Ce,null))return n;n=n.parent||n.slotParent}else n=n.parent;return null}setHostProp(t,n,e){ko(t,n,e)}getHostProp(t,n){const e=t;let r=null;switch(n){case tr:case Ze:case Ce:case Ie:case Te:r=this.k;break;case nr:case or:r=parseInt}return So(e,n,r)}ensureProjectionResolved(t){if(!(16&t.flags)){t.flags|=16;const n=t.props;if(n){const t=Object.keys(n);for(let e=0;e<t.length;e++){const r=t[e];if(R(r)){const t=n[r];if("string"==typeof t){const e=this.vNodeLocate(t);n[r]=e}}}}}}k=t=>Ln(t,this.de);getSyncFn(t){return this.ae[t]}ye(t,n,e,r){if(r){const t=this.getHostProp(e,Ne),r=new Set((t=>t?.split(" ")??null)(t));r.add(n),this.setHostProp(e,Ne,(t=>Array.from(t).join(" "))(r))}if(null==this.$e){this.$e=new Set;const t=this.document.querySelectorAll(Ae);for(let n=0;n<t.length;n++)this.$e.add(t[n].getAttribute(Oe))}if(!this.$e.has(n)){this.$e.add(n);const e=this.document.createElement("style");e.setAttribute(Oe,n),e.textContent=t,this.document.head.appendChild(e)}}pe(){const t={},n=this.element.attributes;if(n)for(let e=0;e<n.length;e++){const r=n[e];r.name!==cr&&(t[r.name]=r.value)}this.zt={containerAttributes:t}}}let du,$u;const pu=()=>$u,mu=()=>{const t=pu();if(!t)throw ge(9);return t},yu=()=>{const t=pu();if(!t||t.It!==Xe)throw ge(10);return t},wu=(t,n)=>{const e=Dn(n),r=_o(e.rootVNode,n),i=e.Nt;i&&(t=>{du=t})(i);const s=Yn(i,r,t);return s.p=e,s},bu=(t,...n)=>{if("function"==typeof t){if(!$u)return t(...n);{const e=$u.Tt;try{return $u.Tt=void 0,t(...n)}finally{$u.Tt=e}}}return Pl(t)?t.untrackedValue:Vl(t)},vu=/*#__PURE__*/Hn(void 0,void 0,void 0),gu=(t,n,e,r,i)=>{const s=vu.Tt,o=vu.p;try{return vu.Tt=$(n,e,i),vu.p=r,Bn(vu,t)}finally{vu.Tt=s,vu.p=o}},Su=(t,n,e,r,i)=>(t instanceof os&&t.m!==n&&n&&(t.m=n),gu(()=>t.value,n,e,r,i)),ku=()=>pu()?.m,xu=()=>{const t=pu();if(t)return t.It},qu=()=>{const t=pu();if(t)return t.p},Ru=t=>t,Cu=t=>t.l||Promise.resolve();let Eu=(t,n,e,r,i)=>new ju(t,n,e,r,i);class ju{vt;bt;we;be;p;constructor(t,n,e,r,i){var s;this.vt=t,this.bt=n,this.we=e,this.be=r,r&&this.ve(r),!i||r||"string"!=typeof t||e||(this.p=i),ee&&((s=this).dev=null,"undefined"!=typeof document&&(s.qrls=new Set)),t&&Gn(t,.8)}get st(){return(t=>{const n=t.lastIndexOf("_")+1;return t.slice(n)})(this.bt)}ve(t){this.be=t,hr(t)&&t.then(t=>this.be=t,t=>{console.error(`qrl ${this.bt} failed to load`,t),this.be=null})}ge(){if(null!=this.be)return this.be;if(""===this.vt){const t=this.p.le,n=this.p.element?.ownerDocument||document,e=Fe(n,t);return this.be=e[+this.bt]}this.vt&&Gn(this.vt,1);const t=this.bt,n=this.we?this.we().then(n=>n[t]):jr().importSymbol(this.p?.element,this.vt,t);return this.ve(n),this.be}}import.meta.hot&&(t=>{if(!import.meta.hot)return;const n=new Map;Eu=(e,r,i,s,o)=>{let l=n.get(r);return l||(l=new t(e,r,i,s,o),""!==e&&n.set(r,l)),l};const e=(t,n)=>{const[e,r]=t.split("?",2);if(!r)return`${e}?t=${n}`;const i=r.split("&").filter(t=>!t.startsWith("t="));return i.push("t="+n),`${e}?${i.join("&")}`};document.addEventListener("qHmr",t=>{const r=t.detail.files,i=t.detail.t||document.__hmrT||Date.now();let s=!1;for(const t of n.values()){const n=t.dev?.file||t.vt;if(!n||!r.some(t=>n.startsWith(t)))continue;const o=t.vt;o&&(t.vt=e(o,i),s=!0);const l=t.we?.toString();if(l){const n=l.replace(/import\((['"])(.+?)\1\)/,(t,n,r)=>`import(${n}${e(r,i)}${n})`);if(n!==l)try{t.we=Function(`return (${n})`)(),s=!0}catch(n){console.error("Failed to update symbolFn for "+t.bt,n)}else console.warn(`Couldn't find import() in symbolFn for ${t.bt}, cannot update it for HMR`,l)}if(s&&(t.be=void 0,document.__hmrDone=document.__hmrT,t.qrls))for(const n of t.qrls){const e=n.deref();e?e.resolved&&(e.resolved=void 0):t.qrls.delete(n)}}})})(ju);const _u=Symbol(),Pu=t=>t?.[_u]??t;class Ou{Se;resolved=void 0;jt;p;constructor(t,n,e){this.Se=t,n&&(this.jt=n,"string"==typeof n&&(this.p=e),ee&&((t,n,e)=>{if(n&&"object"==typeof n)for(let t=0;t<n.length;t++)Yc(n[t],"Captured variable in the closure can not be serialized");t.qrls&&t.qrls.add(new WeakRef(e))})(t,n,this)),null==t.be||"string"==typeof this.jt||hr(t.be)||(this.resolved=Lu(this,t.be))}}const Au=function(t,...n){const e=Pu(this);if(e.resolved)return e.resolved.apply(t,n);const r=pu();return Mu.call(e,r?.p).then(()=>Bn.call(t,r,e.resolved,n))},Mu=async function(t){const n=Pu(this);return $r(Du(n,t),()=>n.resolved)},Nu=Object.create(Function.prototype,{resolved:{get(){return this[_u].resolved},set(t){this[_u].resolved=t}},jt:{get(){return this[_u].jt},set(t){this[_u].jt=t}},p:{get(){return this[_u].p},set(t){this[_u].p=t}},Se:{get(){return this[_u].Se}},vt:{get(){return this[_u].Se.vt}},bt:{get(){return this[_u].Se.bt}},st:{get(){return this[_u].Se.st}},dev:{get(){return this[_u].Se.dev}},...ee?{ie:{value(t){this[_u].Se.dev=t}}}:void 0,ke:{value:Au},w:{value:function(t){const n=Pu(this);return Uu(new Ou(n.Se,t,n.jt?n.p:void 0))}},s:{value:function(t){const n=Pu(this);n.Se.ve(t),n.resolved=Lu(n,t)}},resolve:{value:Mu},getSymbol:{value:function(){return Pu(this).Se.bt}},getHash:{value:function(){return Pu(this).Se.st}},getCaptured:{value:function(){const t=Pu(this);return zu(t),t.jt}},getFn:{value:function(t,n){const e=Pu(this),r=(...i)=>e.resolved?n&&!1===n()?void 0:Bn(t,e.resolved,i):Mu.call(e).then(t=>{if(ee&&!ve(t))throw ge(5);return r(...i)});return r}}});let Iu=null;const Tu=t=>{Iu=t},Fu=(t,n)=>{const e=[],r=n.split(" ");for(let n=0;n<r.length;n++)e.push(t.k(r[n]));return e},zu=t=>{Iu=t.jt;const n=t.p;if("string"==typeof Iu){if(!n)throw ge(13);const e=zc;if(Iu=t.jt=Fu(n,Iu),zc!==e)return zc}},Lu=(t,n)=>"function"==typeof n&&t.jt?function(...e){return zu(t),n.apply(this,e)}:n,Du=(t,n)=>{const e=t.Se,r="string"==typeof t.jt;if(r&&!t.p&&(t.p=n||pu()?.p),t.resolved)return;const i=Bu(),s=pu(),o=e.ge(),l=$r(o,n=>{t.resolved=Lu(t,n)});l&&Qu(e.bt,s?.m instanceof fi?s?.m.node:void 0,i);const c=r&&t.p&&zu(t);return c?c.then(()=>l):l},Wu=(t,n,e,r,i,s)=>{const o=Eu(t,n,r,e,s);return Uu(new Ou(o,i,s))},Uu=t=>{const n=async function(...t){return Au.call(n,this,...t)};return n[_u]=t,Object.setPrototypeOf(n,Nu),n},Vu=/*#__PURE__*/new Set,Qu=(t,n,e)=>{Vu.has(t)||(Vu.add(t),Ju("qsymbol",{symbol:t,element:n,reqTime:e}))},Ju=(t,n)=>{ie||_r()||"object"!=typeof document||document.dispatchEvent(new CustomEvent(t,{bubbles:!1,detail:n}))},Bu=()=>ie||_r()?0:"object"==typeof performance?performance.now():0;let Hu=0;const Yu=t=>{if(!se&&ee)throw Error("Optimizer should replace all usages of $() with some special syntax. If you need to create a QRL manually, use inlinedQrl() instead.");return Wu(null,"s"+Hu++,t,null,null)},Xu=Yu,Gu=t=>t,Ku=t=>{if(!se&&ee)throw Error("Optimizer should replace all usages of sync$() with some special syntax. If you need to create a QRL manually, use inlinedSyncQrl() instead.");return ee&&(t=Function("return "+t)()),Wu("",Se,t,null,null)},Zu=(t,n)=>(void 0===n&&(n=""+t),t.serialized=n,Wu("",Se,t,null,null)),tf=t=>{function n(n,e,r=0){const i=(ie?"sX":t.st.slice(0,4))+":"+(e||""),s=()=>{};return s[nf]=[t],ys(s,n,null,n.children,r,i)}return n[nf]=[t],n},nf=Symbol(),ef=t=>"function"==typeof t&&void 0!==t[nf],rf=t=>tf(Xu(t)),sf=Qi(Gu),of=async(t,n,e={})=>{if(9===t.nodeType){let n=t.firstChild;for(;n&&!ni(n);)n=n.nextSibling;t=n}if(ee&&t.hasAttribute(Ve))throw ge(4,[t]);t.setAttribute(Ve,"resumed");const r=Dn(t);r.zt=e.serverData||{};const i=r.rootVNode;return ko(i,mi,n),Gt(r,i,2),await r.l,{cleanup:()=>{wt(r,[],r.rootVNode)}}},lf=(t,n)=>{const{val:e,set:r,iCtx:i}=ql();if(null!=e)return e;const s=ve(t)?Jn(void 0,t):t;if(!1===n?.reactive)return r(s),s;{const t=i.p,e=Jl(s,n?.deep??1?1:0,t);return r(e),e}},cf=()=>{const{val:t,set:n,iCtx:e}=ql();if(null!=t)return t;const r=e.p.ce||"",i=r?gr(r).substring(0,3):"",s=e.p.getHostProp(e.m,Ce);let o=`${i}${s?.getHash().substring(0,3)||""}${(e.p.oe++).toString(36)||""}`,l=o.charCodeAt(0);return l>=48&&l<=57&&(l+=17,o=String.fromCharCode(l)+o.substring(1)),n(o)},uf=/*#__PURE__*/new Map,ff=(t,n)=>{if(ee)return af(t,n);let e=uf.get(n);return e||uf.set(n,e=af(t,n)),e},af=(t,n)=>{function e(n){l.push(t.substring(f,n)),f=n}function r(t){a===wf||s()||(e(t),l.push(".",je,n))}function i(n){let e=0;if(t.charCodeAt(u)===Nf)for(let n=1;n<10;n++)if(t.charCodeAt(u+n)===Nf){e=n+1;break}t:for(let r=3;r<n.length;r++){const i=n[r];for(let n=0;n<i.length;n++)if((t.charCodeAt(u+n+e)|Qf)!==i.charCodeAt(n))continue t;return u+=i.length+e,!0}return!1}function s(){return-1!==c.indexOf(wf)||-1!==c.indexOf(vf)}const o=t.length,l=[],c=[];let u=0,f=u,a=mf,h=0;for(;u<o;){const n=u;let o=t.charCodeAt(u++);o===Uf&&(u++,o=Lf);const l=Gf[a];for(let d=0;d<l.length;d++){const $=l[d],[p,m,y]=$;if((p===h||p===qf||p===Rf&&hf(h)||p===Ef&&pf(h))&&(m===o||m===qf||m===Rf&&hf(o)||m===Cf&&!hf(o)&&o!==If||m===Ef&&pf(o))&&(3==$.length||i($))){if($.length>3&&(o=t.charCodeAt(u-1)),y===kf||y==xf){y===xf&&(a!==yf||s()?df(o)||r(u-(m==Cf?1:m==Mf?2:0)):(df(o)?e(u-2):r(u-2),f++)),m===Cf&&(u--,o=h);do{a=c.pop()||mf,a===wf&&(e(u-1),f++)}while($f(a))}else c.push(a),a===wf&&y===mf?(e(u-8),f=u):y===bf&&r(n),a=y;break}}h=o}return e(u),l.join("")},hf=t=>t>=Tf&&t<=Ff||t>=Lf&&t<=Df||t>=Jf&&t<=Bf||t>=128||t===Vf||t===Nf,df=t=>t===zf||t===If||t===Wf||t===Af||hf(t),$f=t=>t===gf||t===vf||t===Sf||t===wf,pf=t=>t===Of||t===jf||t===_f||t===Pf,mf=0,yf=2,wf=5,bf=6,vf=10,gf=11,Sf=12,kf=17,xf=18,qf=0,Rf=1,Cf=2,Ef=3,jf=9,_f=10,Pf=13,Of=32,Af=35,Mf=41,Nf=45,If=46,Tf=48,Ff=57,zf=58,Lf=65,Df=90,Wf=91,Uf=92,Vf=95,Qf=32,Jf=97,Bf=122,Hf=123,Yf=125,Xf=/*@__PURE__*/(()=>[[qf,39,14],[qf,34,15],[qf,47,16,"*"]])(),Gf=/*@__PURE__*/(()=>[[[qf,42,yf],[qf,Wf,7],[qf,zf,bf,":","before","after","first-letter","first-line"],[qf,zf,wf,"global"],[qf,zf,3,"has","host-context","not","where","is","matches","any"],[qf,zf,4],[qf,Rf,1],[qf,If,1],[qf,Af,1],[qf,64,vf,"keyframe"],[qf,64,gf,"media","supports","container"],[qf,64,Sf],[qf,Hf,13],[47,42,16],[qf,59,kf],[qf,Yf,kf],[qf,Mf,kf],...Xf],[[qf,Cf,xf]],[[qf,Cf,xf]],[[qf,40,mf],[qf,Cf,xf]],[[qf,40,8],[qf,Cf,xf]],[[qf,40,mf],[qf,Cf,kf]],[[qf,Cf,kf]],[[qf,93,xf],[qf,39,14],[qf,34,15]],[[qf,Mf,kf],...Xf],[[qf,Yf,kf],...Xf],[[qf,Yf,kf],[Ef,Rf,1],[qf,zf,wf,"global"],[qf,Hf,13],...Xf],[[qf,Hf,mf],[qf,59,kf],...Xf],[[qf,59,kf],[qf,Hf,9],...Xf],[[qf,Yf,kf],[qf,Hf,13],[qf,40,8],...Xf],[[qf,39,kf]],[[qf,34,kf]],[[42,47,kf]]])(),Kf=t=>({styleId:ea(t,t=>t,!1)}),Zf=/*#__PURE__*/Qi(Kf),ta=t=>({scopeId:je+ea(t,ff,!0)}),na=/*#__PURE__*/Qi(ta),ea=(t,n,e)=>{let{val:r,set:i,iCtx:s,i:o}=ql();if(r)return r;const l=(c=o,`${gr(t.st)}-${c}`);var c;const u=s.m;if(i(l),!t.resolved)throw t.resolve().then(t=>s.p.ye(n(t,l),l,u,e));return s.p.ye(n(t.resolved,l),l,u,e),l},ra=t=>{const n=ve(t)&&!ef(t)?Jn(void 0,t):t;return Xi(n)},ia=t=>sa(ra,t),sa=(t,...n)=>{const{val:e,set:r}=ql();return null!=e?e:r(t=ve(t)&&!ef(t)?bu(t,...n):t)},oa=(t,n)=>(t.resolve(),Bi(t,n)),la=(t,n)=>sa(oa,t,n),ca=Qi(la),ua=t=>(t.resolve(),Yi(t)),fa=t=>sa(ua,t),aa=Qi(fa),ha=(t,n)=>{const{val:e,set:r,i,iCtx:s}=ql(),o=n?.strategy??"intersection-observer";if(e)return void(32&e.h||_r()||(e.h|=32,da(e,o)));let l;_r()?l=1:(l=5,t.resolve(),Gt(s.p,s.m,1));const c=new El(l,i,s.m,t,void 0,null);r(c),da(c,o)},da=(t,n)=>{"intersection-observer"===n?Oc("qvisible",$a(t)):"document-ready"===n?Ac("qinit",$a(t)):"document-idle"===n&&Ac("qidle",$a(t))},$a=t=>Wu(null,"_task",hn,null,[t]),pa=Qi(jc),ma=/*#__PURE__*/Qi(Rl),ya=/*#__PURE__*/Qi(ha),wa=(t,n)=>(t.resolve(),Hi(t,n)),ba=(t,n)=>sa(wa,t,n),va=Qi(ba),ga=()=>{const t=lf({error:void 0});return iu(cu,t),t},Sa=async({track:t})=>{const n=Iu[0];t(()=>n.items);const e=pu(),r=e.p;Gt(r,e.m,128),(import.meta.env.TEST?_r():Kn)&&await r.l},ka=t=>{if(!__EXPERIMENTAL__.each)throw Error('Each is experimental and must be enabled with `experimental: ["each"]` in the `qwikVite` plugin.');return Rl(/*#__PURE__*/wc(Sa,"_eaT",[t])),js},xa=/*#__PURE__*/tf(
|
|
2
|
-
/*#__PURE__*/
|
|
1
|
+
function t(t){let n="";for(let e=0;e<t.length;e++)"\\"===t.charAt(e)&&e+1<t.length?(n+=t.charAt(e+1),e++):n+=t.charAt(e);return n}function n(t,n=mr){let e,r=!1;try{e=t(),r=!0}catch(t){e=t}if(!dr(e))return r?e:n(e);let i=hr;const s=async e=>{for(;dr(e);)try{return await e,await t()}catch(t){if(!dr(t)){e=t;break}if(! --i){e=Error("Exceeded max retry count in retryOnPromise");break}e=t}return n(e)};return r?e.catch(s):s(e)}function e(t,n=!1){if(t.endsWith("$")){const[e,r]=((t,n=!1)=>{let e,r=-1;return t.startsWith("on")?(e=n?"q-ep:":"q-e:",r=2):t.startsWith("window:on")?(e=n?"q-wp:":"q-w:",r=9):t.startsWith("document:on")&&(e=n?"q-dp:":"q-d:",r=11),[e,r]})(t,n);if(-1!==r)return e+vr(t.slice(r,-1))}return null}function r(t,n,e){if((t=>"class"===t)(t)){const t=qr(n);n=e?e+(t.length?" "+t:t):t}else"style"===t?n=(t=>{if(null==t)return"";if("object"==typeof t){if(be(t))throw Se(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(Rr(e)+":"+Cr(e,r)))}return n.join(";")}}return t+""})(n):(t=>t.startsWith("aria-")||["spellcheck","draggable","contenteditable"].includes(t))(t)||"number"==typeof n?n=(t=>null!=t?t+"":null)(n):!1===n||null==n?n=null:!0===n&&(t=>t.startsWith("preventdefault:"))(t)&&(n="");return n}function i(){if(Hr||!Xr.length)return;Br=!1,Hr=!0;const t=Yr?performance.now()+Dr:0;let n=!1;for(;Xr.length;){n=!0;const e=Kr();if(Yr&&e&&performance.now()>=t){Br||(Br=!0,Vr());break}}Hr=!1,n&&Yr&&Qr()}function s(t,n,e,r=!1){const i=t.ownerDocument.createElementNS(e,n);for(let n=0;n<t.attributes.length;n++){const e=t.attributes[n];e.name!==cr&&i.setAttribute(e.name,e.value)}if(r)for(let n=0;n<t.childNodes.length;n++){const o=t.childNodes[n],l=o.nodeType;3===l?i.appendChild(o.cloneNode()):1===l&&i.appendChild(s(o,o.localName,e,r))}return i}function o(t,n){const e=!t||!(!el(t)||(r=t,1536&r.flags));var r;const i=!e&&li(el(t));let s=He,o=0;const l="string"==typeof n||xo(n);return l&&(t=>"string"==typeof t?ui(t):!!xo(t)&&(ui(el(t))||!!(512&t.flags)))(n)?(s=Ye,o=512):l&&(t=>"string"==typeof t?ci(t):!!xo(t)&&(ci(el(t))||!!(1024&t.flags)))(n)?(s=Xe,o=1024):!t||i||e||(s=512&t.flags?Ye:1024&t.flags?Xe:He,o=1536&t.flags),fi.elementNamespace=s,fi.elementNamespaceFlag=o,fi}function l(t,n){const e=d(n).priority;let r=$i.length;for(let t=0;t<$i.length;t++)if(e<d($i[t]).priority){r=t;break}$i.splice(r,0,n),t.o++,t.l||=new Promise(n=>t.u=n)}function u(){for(let t=0;t<$i.length;t++){const n=$i[t];let e=!1;for(let t=0;t<mi.length;t++)if(xl(n,mi[t])){e=!0;break}if(!e)return n}return null}function c(t,n){mi.push(t),a(t,n,!0),n.o++}function f(t,n){const e=mi.indexOf(t);if(-1!==e){const t=mi.length-1;e!==t&&(mi[e]=mi[t]),mi.pop(),n.o--}l(n,t)}function a(t,n,e){e||(t.flags&=-257);const r=$i.indexOf(t);-1!==r&&($i.splice(r,1),n.o--)}function h(t,n,e){n.position=e,e&&Yt(e)&&((t,n,e)=>{a(e,t);const r=d(e);if(r===n)return;const i=r.afterFlushTasks;if(i&&i.length>0){const t=n.afterFlushTasks;t?t.push(...i):n.afterFlushTasks=i}const s=r.extraPromises;if(s&&s.length>0){const t=n.extraPromises;t?t.push(...s):n.extraPromises=s}const o=r.journal;if(o&&o.length>0){const t=n.journal;t?t.push(...o):n.journal=o}})(t,n,e)}function d(t){return yi.get(t)??null}function p(t,n,e){t[si]||(t[si]=new Map);const r=t[si];let i=r.get(n);return i||(i=new ki(t,n),r.set(n,i)),e&&(i.data=e),i}function $(t){return new Proxy({},new zi(t))}function m(t,n){as(this,n),Vc[0].value="number"===n.type?n.valueAsNumber:n.value}function y(t,n){as(this,n),Vc[0].value=n.checked}function w(t,n){if(as(this,n),Vc)for(let t=0;t<Vc.length;t++){const n=Vc[t];n instanceof ji&&64&n.h&&n.p()}}function b(t,n,...e){const r={children:arguments.length>2?e.flat(100):null};let i=null;for(const t in n)"key"==t?i=n[t]:r[t]=n[t];return qs(t,n,null,r.children,0,i)}function v(t,n){const e=k(t);let r=t;const i="q-e:qvisible";return $r(e,t=>{const e=!t;let s=null;for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)){let l=t,u=o;if(e){if(o!==i&&!o.startsWith("q-d:")&&!o.startsWith("q-w:"))continue;if(!s){const[t,n]=x(r);r=n,s=t}l=s}l&&("script"===l.type&&o===i&&(u="q-d:qinit"),g(l,u,n[o]))}return r})}function g(t,n,e){const r=t.constProps||={},i=r[n],s=e.qrls;null==i?r[n]=s:Array.isArray(i)?i.push(...s):r[n]=[i,...s],t.varProps[n]&&(Array.isArray(i)?i.push(...r[n]):t.varProps[n]=[i,...s],r[n]=void 0);const o=e.capture,l=e.preventdefault,u=e.stoppropagation;if(!o&&!l&&!u)return;const[,c]=Sr(n);o&&S(t,c,"capture"),l&&S(t,c,"preventdefault"),u&&S(t,c,"stoppropagation")}function S(t,n,e){const r=`${e}:${n}`;t.varProps===Di&&(t.varProps={}),t.varProps[r]=!0}function k(t){const n=[t];for(;n.length;){const t=n.shift();if($s(t)){if("string"==typeof t.type)return t;n.push(t.children)}else if(be(t))n.push(...t);else{if(dr(t))return $r(t,t=>k(t));if(Dl(t))return k(t.untrackedValue)}}return null}function x(t){if($s(t)){const n=q();return t.type===Os||hf(t.type)?(null==t.children?t.children=n:be(t.children)?t.children.push(n):t.children=[t.children,n],[n,t]):[n,xs(Os,null,null,[t,n],0,null)]}if("object"!=typeof(n=t)&&"function"!=typeof n||null==n){const n=q();return[n,xs(Os,null,null,[t,n],0,null)]}var n;if(be(t)&&t.length>0){const[n,e]=x(t[0]);return[n,t]}return[null,t]}function q(){return new ds("script",null,{hidden:""},null,0,null)}function R(t,n,e,r){if(null!=e){if(r){const r=(t=>{switch(t){case"xlink:href":case"xlink:actuate":case"xlink:arcrole":case"xlink:role":case"xlink:show":case"xlink:title":case"xlink:type":return"http://www.w3.org/1999/xlink";case"xml:base":case"xml:lang":case"xml:space":return"http://www.w3.org/XML/1998/namespace";default:return null}})(n);if(r)return void((t,n,e,r)=>{Qs||(Qs=t.setAttributeNS),Qs.call(t,n,e,r)})(t,r,n,e)}i=t,Ws||(Ws=i.setAttribute),Ws.call(i,n,e)}var i}function C(t){return!t.startsWith("q:")&&!t.startsWith(sr)}function E(t,e,r,i){if(!r.isConnected)return;i||(i=Cc(e,r));const s=i.$,o=i.m;Ao(s,o);let l=t;if(64&o.flags){let n;128&o.flags||(n=!0,o.flags|=128);const i=n?s.k:null,u=Po(o,rr,i);if(null!==u)l=()=>t(e,r,u);else{const n=Po(o,ir,i);null!==n&&(l=()=>t(e,r,...n))}}return n(()=>{if(!(32&o.flags))return Hn(i,l,[e,r])},t=>s.handleError(t,o))}function T(t,n){if(!n.isConnected)return;const e=Cc(t,n);return"string"==typeof this&&Jc(Bc(e.$,this)),E(Vc[0],t,n,e)}function P(t){return t.q===t.R?t.T:null}function j(t){return t.j||P(t)}function _(t,n){const e=(t=>t?t.nextSibling:null)(n);return e===P(t)?null:e}function O(t,n,e,r,i,s){import.meta.env.TEST&&i&&jo(n,ar,i),jo(n,e,s),Zt(t,no(n.node,e,r,i,!!(512&n.flags)))}function A(t,n,e,r){return{$:t,_:n,O:e,M:r,N:[],D:[],L:[],q:null,j:null,U:null,T:null,R:null,W:null,J:null,B:null,H:null,Y:null,X:0,G:0,K:!0,Z:!1,tt:{nt:new fs({M:r,et:!0}),rt:new fs({M:r,et:!1})}}}function M(t,n,e,r,i){const s=t??A(n,e,r,i);return((t,n,e,r,i)=>{t.$=n,t._=e,t.O=r,t.M=i,t.tt.nt.data.M=i,t.tt.rt.data.M=i,t.D.length=0,t.L.length=0})(s,n,e,r,i),s}function N(t,n,e,r=sl(e),i=null,s=!1){I(t,n,e,r,i,s);const o=B(t);if(dr(o))return o.finally(()=>{H(t)});H(t)}function I(t,n,e,r=sl(e),i=null,s=!1){const o=t.Z;t.Z=s||o,t.q=e,t.U=null,t.j=r,t.T=i,t.R=e,U(t,n,!0);try{if(32&t.q.flags)return;for(;t.N.length;){for(;t.X<t.G;){if("string"==typeof t.Y)dt(t,t.Y);else if("number"==typeof t.Y)dt(t,t.Y+"");else if(t.Y&&"object"==typeof t.Y)if($s(t.Y)){const n=t.Y.type;"string"==typeof n?(G(t),st(t,t.Y,n),t.Y.constProps&&ro.call(t.Y.constProps,fr)||ro.call(t.Y.varProps,fr)?t.U||Y(t,!1):z(t,t.Y.children,!0)):"function"==typeof n&&(n===Os?(G(t),ct(t,"F",t.Y.key),z(t,t.Y.children,!0)):n===Ns?(G(t),V(t)||z(t,t.Y.children,!0)):n===mt?(Q(t),z(t,t.Y.children,!0,!1)):n===Ds||n===Fs?X(t):(G(t),ft(t,n)))}else if(Array.isArray(t.Y))z(t,t.Y,!1);else if(Dl(t.Y)){ct(t,"S",null);const n=t.Y instanceof cs?t.Y.it():t.Y,e=t.j?.[si]?.get(".")?.backRef;let r=e?.has(n);if(e&&n instanceof cs&&(r=kt(e,n)),!r){const e=t.U||t.j;z(t,F(t,()=>jc(n,e,".",t.$)),!0)}}else dr(t.Y)&&(ct(t,"A",null),t.D.push(t.Y,t.U||t.j));else t.Y===Is||dt(t,"");D(t)}X(t),J(t),L(t)}}finally{t.Z=o}}function F(t,e){try{return e()}catch(r){if(dr(r)){const i=r.then(()=>n(e));return t.D.push(i,t.U||t.j),null}throw r}}function D(t){if(t.K){if(t.X++,t.X<t.G)t.Y=t.H[t.X];else if(t.N.length>0&&!1===t.N[t.N.length-1])return L(t);null!==t.U?t.U=null:t.j=_(t,t.j)}else t.K=!0}function z(t,n,e,r=!0){if(r&&(null==n||e&&be(n)&&0===n.length))Y(t);else{if(U(t,n,e),e){const n=t.Z||!!t.U||!sl(t.j);t.Z=n,t.B=null,t.W=null,t.J=null,t.q=t.U||t.j,t.j=sl(t.q),t.U=null}t.K=!1}}function L(t){t.N.pop()&&(t.Z=t.N.pop(),t.B=t.N.pop(),t.W=t.N.pop(),t.J=t.N.pop(),t.U=t.N.pop(),t.j=t.N.pop(),t.q=t.N.pop()),t.Y=t.N.pop(),t.G=t.N.pop(),t.X=t.N.pop(),t.H=t.N.pop(),D(t)}function U(t,n,e){t.N.push(t.H,t.X,t.G,t.Y),e&&t.N.push(t.q,t.j,t.U,t.J,t.W,t.B,t.Z),t.N.push(e),Array.isArray(n)?(t.X=0,t.G=n.length,t.H=n,t.Y=t.G>0?n[0]:null):void 0===n?(t.X=0,t.Y=null,t.H=null,t.G=0):(t.X=0,t.Y=n,t.H=null,t.G=1)}function W(t){return t.U?j(t):_(t,t.j)||P(t)}function Q(t){const n=t.Y.key;t.j=Po(t.q,n,n=>Fo(t.$.rootVNode,n)),t.j=t.j&&32&t.j.flags?null:t.j,null==t.j&&(t.U=So(),jo(t.U,je,n),t.U.slotParent=t.q,jo(t.q,n,t.U))}function V(t){const n=_l(t.q),e=((t,n)=>{const e=t.Y,r=e.constProps;if(r&&"object"==typeof r&&ro.call(r,"name")){const e=r.name;if(n&&e instanceof cs)return jc(e,n,":",t.$)}return Wi(e,"name")||""})(t,n),r=n?Po(n,e,null):null;if(null==r)return t.U=So(),jo(t.U,je,e),n&&jo(n,e,t.U),Go(t._,t.q,t.U,W(t)),!1;if(r===t.j);else{const i=r.parent;t.U=r,jo(t.U,je,e),n&&jo(n,e,t.U),Xo(t._,t.U),Go(t._,t.q,t.U,W(t)),i&&xo(i)&&!i.firstChild&&el(i)===Be&&tl(t._,i.parent,i,!0)}return!0}function J(t){const n=t.B;if(n){for(const e of n.values())32&e.flags||(bt(t.$,t._,e,t.O),tl(t._,t.q,e,!0));n.clear(),t.B=null}t.j=null}function B(t){for(;t.D.length;){const n=t.D.shift(),e=t.D.shift();if(dr(n))return n.then(n=>(I(t,n,e),B(t))).catch(n=>(t.$.handleError(n,e),B(t)));I(t,n,e)}if(t.L.length){const n=t.L.splice(0);return Promise.all(n).then(()=>B(t))}}function H(t){t._=null,t.O=null}function Y(t,n=!0){const e=t.j&&sl(t.j);if(null!==e){let r=e;for(;r;)bt(t.$,t._,r,t.O),r=r.nextSibling;nl(t._,t.j,e,n)}}function X(t){const n=P(t);if(null!==t.j&&t.j!==n)for(;t.j&&t.j!==n;){const n=t.j;t.j=_(t,t.j),t.q===n.parent&&(bt(t.$,t._,n,t.O),tl(t._,t.q,n,!0))}}function G(t){if(null!==t.j&&Co(t.j)){const n=t.j;t.j=_(t,t.j),tl(t._,t.q,n,!0)}}function K(t,n,e){if(Dl(t))return t.value=n,!0;if("function"==typeof t)return t(n),!0;if(null==t)return!0;throw Se(15,[e])}function Z(t,e,r,i,s){return n(()=>jc(i,e,r,t,s))}function tt(t,n,e,i,s){const o=t.M,l=i.then(t=>R(n,e,r(e,t,o),s));t.L.push(l)}function nt(t,n){n&&(t.innerHTML=n+"",t.setAttribute(Ve,"html"))}function et(t,n){return n&&"string"!=typeof n||(t.value=(t=>{let n="";const e=t.length;let r=0,i=r;for(;r<e;r++){const e=t.charCodeAt(r);if(60===e)n+=t.substring(i,r)+"<";else if(62===e)n+=t.substring(i,r)+">";else if(38===e)n+=t.substring(i,r)+"&";else if(34===e)n+=t.substring(i,r)+""";else{if(39!==e)continue;n+=t.substring(i,r)+"'"}i=r+1}return 0===i?t:n+t.substring(i)})(n||"")),!0}function rt(t,n,e,i){const s=((t,n)=>{const e=o(Zo(t.q,!0),n),r=import.meta.env.TEST?t.$.document:document,i=0===e.elementNamespaceFlag?r.createElement(n):r.createElementNS(e.elementNamespace,n);return t.U=bo(i,n),t.U.flags|=e.elementNamespaceFlag,i})(t,e),l=t.U,u=!!(512&l.flags),{constProps:c}=n;if(c)for(const n in c){let o=c[n];br(n)?it(n,o,s,l,t):"ref"===n&&K(o,s,i)||(Dl(o)&&(o=Z(t.$,t.U,n,o,t.tt.nt)),dr(o)?tt(t,s,n,o,u):n!==fr?"textarea"===e&&"value"===n&&et(s,o)||R(s,n,r(n,o,t.M),u):nt(s,o))}const f=n.key;f&&(t.U.key=f),t.M&&(ro.call(n.varProps,"class")||n.constProps&&ro.call(n.constProps,"class")||s.setAttribute("class",t.M)),Vo(t._,t.q,t.U,j(t))}function it(t,n,e,r,i){const s=t.slice(2);if(Array.isArray(n)){const t=n,r=[];for(let n=0;n<t.length;n++){const e=t[n];if(Array.isArray(e))for(let t=0;t<e.length;t++){const n=e[t];n&&r.push(E.bind(null,n))}else e&&r.push(E.bind(null,e))}r.length>0&&((e._qDispatch||={})[s]=1===r.length?r[0]:r)}else n&&((e._qDispatch||={})[s]=E.bind(null,n));"e"!==t.charAt(2)&&_o(i._,r,t,""),((t,n)=>{const e=import.meta.env.TEST?t.$.document.defaultView:window;e&&(e._qwikEv||=[]).push(n)})(i,s)}function st(t,n,e){if(t.Z)rt(t,n,e,null);else{const r=t.j&&xo(t.j),i=r&&e===el(t.j),s=n.key;i&&s===(r&&t.j.key)?lt(t,e,s):ut(t,e,s,ot(e,s),t.q)&&rt(t,n,e,null)}const r=n.varProps;r&&((t,n,e,r)=>{t.Z||Ao(t.$,n);const i=n.props;for(const s in e){const o=e[s];if(i&&ro.call(i,s)){const e=i[s];if(o!==e){if(o instanceof cs&&e instanceof cs&&St(o,e))continue;oo(t,n,s,o,r)}}else null!=o&&oo(t,n,s,o,r)}if(i)for(const s in i)ro.call(e,s)||":"===s.charAt(0)||br(s)||oo(t,n,s,null,r)})(t,t.U||t.j,r,null)}function ot(t,n){return null==n?null:t?t+":"+n:n}function lt(t,n,e){const r=ot(n,e);return!(!r||!t.B?.has(r)||(t.B.delete(r),0))}function ut(t,n,e,r,i,s){if(t.U=((t,n,e)=>{let r=null;if(null===t.W){const i=t.j;if(i){const r=xo(i)?el(i):null;if((pt(i)||$t(i,t.$.k))===e&&r===n)return i}t.W=new Map,t.J=[];const s=P(t);let o=t.j;for(;o&&o!==s;){const i=xo(o)?el(o):null,s=pt(o)||$t(o,t.$.k);null===r&&s==e&&i==n?r=o:null===s?t.J.push(i,o):t.W.set(ot(i,s),o),o=o.nextSibling}}else if(null===e){for(let e=0;e<t.J.length;e+=2)if(t.J[e]===n){r=t.J[e+1],t.J.splice(e,2);break}}else{const i=ot(n,e),s=t.W.get(i);s&&(r=s,t.W.delete(i))}return((t,n)=>{if(!n){if(t.j){const n=xo(t.j)?el(t.j):null,e=pt(t.j)||$t(t.j,t.$.k);if(null!=e){const r=ot(n,e);t.B||=new Map,t.B.set(r,t.j),t.W?.delete(r)}}return}const e=P(t);let r=t.j;for(;r&&r!==n&&r!==e;){const n=xo(r)?el(r):null,e=pt(r)||$t(r,t.$.k);if(null!=e){const i=ot(n,e);t.B||=new Map,t.B.set(i,r),t.W?.delete(i)}r=r.nextSibling}})(t,r),r})(t,n,e),t.U)return r||Go(t._,i,t.U,j(t)),t.j=t.U,t.U=null,!1;if(null!=r){const n=t.B?.get(r)||null;if(n){if(t.B.delete(r),s&&t.j){const n=pt(t.j)||$t(t.j,t.$.k);if(null!=n){const e=ot(xo(t.j)?el(t.j):null,n);null!=e&&(t.B||=new Map,t.B.set(e,t.j))}}return n!==t.j&&Go(t._,i,n,j(t)),t.j=n,t.U=null,!1}}return!0}function ct(t,n,e){const r="F"===n,i=pt(t.j);if(!t.j||!Eo(t.j)||i!==e||r&&!e)return null===e||t.Z?(Jo(t._,t.q,t.U=So(),W(t)),void(t.U.key=e)):void(ut(t,null,e,ot(null,e),t.q,!0)&&(Jo(t._,t.q,t.U=So(),W(t)),t.U.key=e));lt(t,null,i)}function ft(t,n){const e=n[af];let r=t.U||t.j;const i=t.Y;if(e){const n=i.props;let s=!1;const[o]=e,l=o.st,u=$t(r,t.$.k),c=i.key||l;if(c===(pt(r)||u)?l===u?lt(t,null,c):(at(t,r,o,n),r=t.U,s=!0):(ut(t,null,c,c,t.q)&&(at(t,r,o,n),s=!0),r=t.U||t.j),r){const e=Po(r,tr,t.$.k);if(!s){const l=((t,n,e,r)=>{let i=!1;if(e){const t=yt(n[_i],e[_i],e[Mi],r,!1);i||=t;const s=yt(n[Oi],e[Oi],e[Mi],r,!0);i||=s,e[Ai]=n[Ai]}else n&&(jo(t,tr,n),e=n);return i})(r,n,e,t.$);l&&null==i.key&&(at(t,r,o,n),r=t.U,s=!0),s||=l}s&&(jo(r,Ee,o),r.flags&=-33,Kt(t.$,r,4,t.O))}((t,n,e)=>{const r=Array.isArray(n)?n:[n],i=t=>new ds(mt,null,null,[],0,t),s=[];if(e){const t=e.props;if(t)for(const n in t)C(n)&&pe(s,n,i(n),0)}if(0!==s.length||null!=n){for(let t=0;t<r.length;t++){const n=r[t],e=($s(n)&&Wi(n,je)||"")+"",o=de(s,e,0);let l;o>=0?l=s[o+1]:s.splice(~o,0,e,l=i(e)),!1===n||l.children.push(n)}for(let t=s.length-2;t>=0;t-=2)s.splice(t,1);z(t,s,!0)}})(t,i.children,r)}else{const e=i.key,s=e===pt(r),o=$t(r,t.$.k);if(r&&null!=o||!r?(ht(t),r=t.U):s?lt(t,null,e):(ut(t,null,e,e,t.q)&&ht(t),r=t.U||t.j),r){let e=r;for(;e&&(!Eo(e)||null===Po(e,Ee,null));)e=e.parent||_l(e);const s=Ms(t.$,r,e||t.$.rootVNode,n,i.props);t.D.push(s,r)}}}function at(t,n,e,r){n&&un(t.$,n),Jo(t._,t.q,t.U=So(),W(t));const i=t.Y;jo(t.U,Ee,e),jo(t.U,tr,r),t.U.key=i.key}function ht(t){Jo(t._,t.q,t.U=So(),W(t));const n=t.Y;jo(t.U,tr,n.props),n.key&&(t.U.key=n.key)}function dt(t,n){if(null!==t.j&&3===Pl(t.j))return n!==rl(t.j)?void il(t._,t.j,n):void 0;Vo(t._,t.q,t.U=go((import.meta.env.TEST?t.$.document:document).createTextNode(n),n),j(t))}function pt(t){return null==t||Co(t)?null:t.key}function $t(t,n){if(null==t||Co(t))return null;const e=Po(t,Ee,n);return e?e.st:null}function mt(){}function yt(t,n,e,r,i=!0){if(wt(t)&&wt(n))return!1;e.$=r;let s=!1;if(t)for(const r in t)if("children"!==r&&r!==Fe&&(!n||t[r]!==n[r])){if(!i)return!0;n&&(n[r]=t[r]),Ui(e,r)||(s=!0)}if(n)for(const r in n)"children"===r||r===Fe||t&&ro.call(t,r)||!i||(delete n[r],Ui(e,r)||(s=!0));return s}function wt(t){return!t||ni(t)}function bt(t,n,e,r=null){let i=e;if(Co(e))return void gt(i);let s=null;for(;;){const o=i.flags;if(3&o){if(un(t,i),gt(i),2&o&&null!==Po(i,Ee,null)){const e=t.getHostProp(i,nr);if(e)for(let n=0;n<e.length;n++){const s=e[n];if(we(s)){const n=Il(s);if(n&&1&s.h){s.h|=16,Kt(t,i,64,r);continue}(s instanceof Ei||Zl(s))&&un(t,s),(n||s instanceof ji)&&eo(s)}}const s=i.props;if(s){const e=Object.keys(s);for(let i=0;i<e.length;i++){const o=e[i];if(C(o)){const e=s[o];if(e){s[o]=null;const i="string"==typeof e?Fo(t.rootVNode,e):e;let l=sl(i);for(;l;)bt(t,n,l,r),l=l.nextSibling;vt(n,i)}}}}}if(To(i)){if(i===e){const t=sl(i);if(t)return void en(t,()=>{})}}else{const t=sl(i);if(t){i=t;continue}}}else 4&o&>(i);if(i===e)return;const l=i.nextSibling;if(l)i=l;else{for(s=i.parent;s;){if(s===e)return;const t=s.nextSibling;if(t){i=t;break}s=s.parent}if(null==s)return}}}function vt(t,n){const e=n.parent;e&&1&e.flags&&el(e)===Be&&tl(t,e,n,!0)}function gt(t){t.flags|=32}function St(t,n){return t===n||n.ot===t.ot&&((t,n)=>{if(t===n)return!0;if(!t||!n||t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0})(n.lt,t.lt)}function kt(t,n){if(!(n instanceof cs))return!1;for(let e=0;e<t.length;e++){const r=t[e];if(r instanceof cs&&St(r,n))return!0}return!1}function xt(t,n,e,r){const i=r(t,n);return i.key=e,i}function qt(t,n,e,r,i,s){const o=Array(s-i+1);for(let l=i;l<=s;l++){const s=n[l]??(n[l]=e(t[l],l));o[l-i]=xt(t[l],l,s,r)}return o}function Rt(t,n,e){let r=n?n.previousSibling:t.lastChild;for(let t=1;t<e&&r;t++)r=r.previousSibling;return r}function Ct(t,n,e,r,i,s,o){const l=t,u=i.length,c=sl(e),f=A(l,n,r,null),a=Array(u);if(null===c)return u>0?so(l,n,qt(i,a,s,o,0,u-1),e,null,null,r,null,!0,f):void 0;if(0===u)return void nl(n,e,c,!0);let h=0,d=u-1,p=c;for(;p&&h<=d&&p.key===(a[h]??=s(i[h],h));)p=p.nextSibling,h++;if(null===p){if(h>d)return;return so(l,n,qt(i,a,s,o,h,d),e,null,null,r,null,!0,f)}if(h>d)return void nl(n,e,p,!0);const $=p.previousSibling;let m=e.lastChild;for(;m!==$&&d>=h&&m.key===(a[d]??=s(i[d],d));)m=m.previousSibling,d--;const y=m?m.nextSibling:p;if(h>d){let t=p;for(;t&&t!==y;){const r=t.nextSibling;tl(n,e,t,!0),t=r}return}if(m===$){const t=y;return so(l,n,qt(i,a,s,o,h,d),e,t,t,r,null,!0,f)}for(let t=h;t<=d;t++)a[t]??=s(i[t],t);const w=d-h+1,b=new Map;for(let t=h;t<=d;t++)b.set(a[t],t-h);const v=((t,n=null)=>{const e=[];let r=t;for(;r&&(e.push(r),r!==n);)r=r.nextSibling;return e})(p,m),g=[],S=new Map;for(let t=0;t<v.length;t++){const r=v[t],i=r.key;b.has(i)?(S.set(i,g.length),g.push(r)):tl(n,e,r,!0)}const k=new Int32Array(w);k.fill(-1);const x=[],q=[];for(let t=0;t<w;t++){const n=S.get(a[h+t]);void 0!==n&&(k[t]=n,q.push(t),x.push(n))}const R=new Uint8Array(w),C=(t=>{const n=t.length;if(0===n)return[];const e=[],r=Array(n).fill(-1);for(let i=0;i<n;i++){const n=t[i];let s=0,o=e.length;for(;s<o;){const r=s+o>>1;t[e[r]]<n?s=r+1:o=r}s>0&&(r[i]=e[s-1]),s===e.length?e.push(i):e[s]=i}const i=[];let s=e[e.length-1];for(;-1!==s;)i.push(s),s=r[s];return i.reverse(),i})(x);for(let t=0;t<C.length;t++)R[q[C[t]]]=1;let E=d,T=y;const P=()=>{for(;E>=h;){const t=E-h;if(1===R[t]){T=g[k[t]],E--;continue}const s=k[t];if(-1!==s){const t=g[s];(null===T?e.lastChild===t:t.nextSibling===T)||Go(n,e,t,T),T=t,E--;continue}let u=E;for(;u>h;){const t=u-1-h;if(1===R[t]||-1!==k[t])break;u--}const c=E-u+1,d=so(l,n,qt(i,a,null,o,u,E),e,T,T,r,null,!0,f);return $r(d,()=>{const t=Rt(e,T,c);return T=t,E=u-1,P()})}};return P()}function Et(t,n,e){t.dirty&=-2;const r=n.getHostProp(t,nr);if(!r||0===r.length)return;let i;for(let s=0;s<r.length;s++){const o=r[s];if(o instanceof Nl){const r=o;if(!(4&r.h))continue;if(1&r.h)(e.afterFlushTasks||=[]).push(r);else{const s=!!(8&r.h),o=Ml(r,n,t);dr(o)&&(s?i=i?i.then(()=>o):o:(e.extraPromises||=[]).push(o))}}}return i}function Tt(t,n){(t.props||={})[bi]=n}function Pt(t,n){(t.props||={})[vi]=n}function jt(t,n){t.dirty&=-257;const e=(t=>{const n=t.props;return n?.[vi]??null})(t);if(!e)return;Pt(t,null);const r=t,i=r.parent,s=r.nextSibling,o=Wo(n,document,r,e),l=xo(r)&&i||r;Vo(n,l,o,l===r?null:s),t.dirty&=-33,t.dirtyChildren=null}function _t(t,n,e,r){t.dirty&=-3;const i=t;let s=(t=>{const n=t.props;return n?.[bi]})(t);if(s)return Tt(t,null),Dl(s)&&(s=s.value),io(n,e,s,i,r,null)}function Ot(t,e,r,i){t.dirty&=-5;const s=t,o=e.getHostProp(s,Ee);if(!o)return;const l=e.getHostProp(s,tr)||null,u=pr(()=>Ms(e,s,s,o,l),t=>{const o=e.getHostProp(s,Ne);return n(()=>io(e,r,t,s,i,wr(o)))},t=>{e.handleError(t,s)});return dr(u)?u:void 0}function At(t,n,e,r,i,s=null){n.push(no(t.node,e,r,s,!!(512&t.flags))),i||(t.props&&null==r?delete t.props[e]:(t.props||={})[e]=r)}function Mt(t,n){if(t.dirty&=-9,!(1&t.flags))return;const e=(t=>(t.props||={})[wi]??null)(t);if(!e||0===e.size)return;const r=t;for(const[t,i]of e.entries()){let e=i.value;Dl(e)&&(e=e.value),At(r,n,t,e,i.isConst,i.scopedStyleIdPrefix)}(t=>{delete(t.props||={})[wi]})(t)}function Nt(t,n){t.dirty&=-65;const e=n.getHostProp(t,nr);if(e&&0!==e.length)for(let t=0;t<e.length;t++){const n=e[t];n instanceof Nl&&16&n.h&&(n.h&=-17,eo(n))}}function It(t,e){t.dirty&=-17;const r=e.getHostProp(t,gi);if(!r)return;const i=r.ut,s=Xn();return s.$=e,$r(n(()=>Bn.call(r,s,r.p)),()=>{if(2&r.h)return r.h&=-3,Wl(e,r,i)})}function Ft(t,n,e,r){t.dirty&=-129;const i=t,s=n.getHostProp(i,tr)||null;if(!s)return;let o=Qi(s,"items");Dl(o)&&(o=Ec(o));const l=Qi(s,"key$"),u=Qi(s,"item$"),c=l.resolved,f=u.resolved;return void 0!==c&&void 0!==f?Ct(n,e,i,r,o,c,f):$r(l.resolve(),t=>$r(u.resolve(),s=>Ct(n,e,i,r,o,t,s)))}function Dt(t){let n=null,e=null,i=null;const s=new Set,o=()=>{if(i){if(1===i.length)uo(n,i[0],e);else{const t=(n.ownerDocument||n).createDocumentFragment();for(let n=0;n<i.length;n++)t.appendChild(i[n]);uo(n,t,e)}i=null,n=null,e=null,s.clear()}};for(let l=0;l<t.length;l++){const u=t[l];if(u instanceof Ys){if(n===u.parent&&e===u.beforeTarget){i||(i=[]),i.push(u.target),s.add(u.target);continue}if(!i){n=u.parent,e=u.beforeTarget,i=[u.target],s.add(u.target);continue}if(n===u.parent){o(),n=u.parent,e=u.beforeTarget,i=[u.target],s.add(u.target);continue}if(s.has(u.target)||e&&u.target===e||n&&u.target===n){o(),n=u.parent,e=u.beforeTarget,i=[u.target],s.add(u.target);continue}uo(u.parent,u.target,u.beforeTarget)}else if(u instanceof Js)(s.has(u.target)||e&&u.target===e||n&&u.target===n)&&o(),u.target.remove();else{if(u instanceof Bs){(s.has(u.target)||e&&u.target===e||n&&u.target===n)&&o(),u.target.textContent="";continue}if(u instanceof Hs)u.target.nodeValue=u.text;else if(u instanceof Xs){const t=u.target,e=u.attrName,i=u.attrValue,s=null!=i?r(e,i,u.scopedStyleIdPrefix):null,l=null==s||!1===s;co(t,e)?t[e]=fo(s):e===fr?(n===t&&o(),t.innerHTML=s,t.setAttribute(Ve,"html")):l?t.removeAttribute(e):"value"===e&&e in t?t.value=s:R(t,e,s,u.isSvg)}}}o()}function zt(){$o||($o=!0,ao())}function Lt(){$o||($o=!0,po())}function Ut(t={timeBudget:1e3/60}){$o=!1;let n=null;for(;n=u();)Wt(n,t)}function Wt(t,n){const{timeBudget:e}=n,r=import.meta.env.TEST?Or():Zn,i=performance.now(),s=d(t);if(s.promise)return;const o=s.container;if(!t.dirty)return void Qt(o,t,s,r);const l=s.journal||=[];let u=null;for(;u=s.position;){if(s.promise)return;if(!(511&u.dirty)){h(o,s,Bt(u,t));continue}if(32&u.flags){if(64&u.dirty)Nt(u,o);else if(32&u.dirty){const n=Jt(o,s,u,t);if(null!==n){u=n;continue}}u.dirty&=-512,h(o,s,Bt(u,t));continue}let n;try{if(1&u.dirty)n=Et(u,o,s);else if(2&u.dirty)n=_t(u,o,l,t);else if(4&u.dirty)n=Ot(u,o,l,t);else if(128&u.dirty)n=Ft(u,o,l,t);else if(8&u.dirty)Mt(u,l);else if(16&u.dirty)n=It(u,o);else if(32&u.dirty){const n=Jt(o,s,u,t);if(null!==n){u=n;continue}}else 256&u.dirty&&jt(u,l)}catch(t){o.handleError(t,u)}if(n&&dr(n)){s.promise=n,c(t,o);const e=u;return void n.catch(t=>{o.handleError(t,e)}).finally(()=>{s.promise=null,f(t,o),zt()})}if(performance.now()-i>=e)return void Lt()}Qt(o,t,s,r)}function Qt(t,n,e,r){if(!(511&n.dirty)){if(a(n,t),r||((t,n)=>{const e=d(t),r=e.journal;r&&r.length>0&&(Dt(r),e.journal=null),((t,n)=>{const e=n.afterFlushTasks;if(!e||0===e.length)return void(n.afterFlushTasks=null);let r;for(let n=0;n<e.length;n++){const i=e[n],s=Ml(i,t,i.ct);dr(s)&&(r=r?r.then(()=>s):s)}r&&(n.extraPromises||=[]).push(r),n.afterFlushTasks=null})(n,e)})(n,t),e.extraPromises)return void Promise.all(e.extraPromises).then(()=>{Vt(t)});Vt(t)}}function Vt(t){t.ft()}function Jt(t,n,e,r){const i=e.dirtyChildren;if(!i||0===i.length)return e.dirty&=-33,null;((t,n)=>{let e=0;for(let r=0;r<t.length;r++){const i=t[r];if(i.parent===n){if(e!==r){const n=t[e];t[e]=i,t[r]=n}e++}}})(i,e),e.nextDirtyChildIndex=0;const s=Bt(i[0],r);return h(t,n,s),s}function Bt(t,n){if(t===n)return 511&n.dirty?n:null;let e=null;if(t.slotParent&&32&t.slotParent.dirty?e=t.slotParent:t.parent&&32&t.parent.dirty&&(e=t.parent),!e)return 511&n.dirty?n:null;const r=e.dirtyChildren;let i=e.nextDirtyChildIndex;const s=r.length;let o=s;for(;o-- >0;){const t=r[i];if(511&t.dirty)return e.nextDirtyChildIndex=(i+1)%s,t;i++,i===s&&(i=0)}return e.dirty&=-33,e.dirtyChildren=null,e.nextDirtyChildIndex=0,Bt(e,n)}function Ht(t,n,e){yi.set(n,{afterFlushTasks:null,extraPromises:null,journal:null,container:t,position:n,priority:e,promise:null});const r=n;return r.flags|=256,l(t,r),zt(),r}function Yt(t){return!!(256&t.flags)}function Xt(t,n){if(!(1&n.flags))return 8&n.dirty&&((t,n)=>{n.dirty&=-9;const e=n.getProp(wi);if(e&&0!==e.size)for(const[i,s]of e.entries()){let e=s.value;Dl(e)&&(e=e.value);const o=r(i,e,s.scopedStyleIdPrefix);t.addBackpatchEntry(n.id,i,o)}})(t,n),16&n.dirty&&It(n,t),511&n.dirty&&ae(`A chore was scheduled on a host element that has already been streamed to the client.\n This can lead to inconsistencies between Server-Side Rendering (SSR) and Client-Side Rendering (CSR).\n \n Problematic chore:\n - Host: ${""+n}\n - Nearest element location: ${n.currentFile}\n \n This is often caused by modifying a signal in an already rendered component during SSR.`),void(n.dirty&=-512);let e=null;if(1&n.dirty){const r=((t,n)=>{n.dirty&=-2;const e=n.getProp(nr);if(!e||0===e.length)return null;let r=null;for(let i=0;i<e.length;i++){const s=e[i];if(s instanceof Nl){const e=s;if(!(4&e.h))continue;const i=Ml(e,t,n);r=r?r.then(()=>i):i}}return r})(t,n);dr(r)&&(e=r)}if(128&n.dirty){const r=(async(t,n)=>{n.dirty&=-129;const e=t.getHostProp(n,tr)||null;if(!e)return;let r=Qi(e,"items");Dl(r)&&(r=Ec(r));const i=await Qi(e,"key$").resolve(),s=await Qi(e,"item$").resolve(),o=[];for(let t=0;t<r.length;t++){const n=r[t],e=s(n,t),l=i(n,t);e.key=l,o.push(e)}await t.renderJSX(o,{currentStyleScoped:null,parentComponentFrame:t.getComponentFrame(0)})})(t,n);e=e?e.then(()=>r):r}return n.dirty&=-508,e||void 0}function Gt(t){for(let n=0;n<mo.length;n++){const e=mo[n],r=mo[n+1]||t;r.dirty|=32,r.dirtyChildren||=[],r.dirtyChildren.includes(e)||r.dirtyChildren.push(e)}}function Kt(t,n,e,r=null){const i=n.dirty;if(n.dirty|=e,import.meta.env.TEST?Or():Zn){const e=Xt(t,n);return void(dr(e)&&(t.l=t.l?t.l.then(()=>e):e))}const s=511&e;if((s?511&i:i)||n===r)return;const o=n.slotParent||n.parent;if(r&&s&&o&&!o.dirty)((t,n)=>{mo.push(t);let e=t.slotParent||t.parent;for(;e;){const r=511&e.dirty,i=Yt(e);if(e===n||r){if(Gt(e),i){const n=d(e);n.position!==e&&(n.position=t)}return void(mo.length=0)}if(i){const n=d(e);n.position!==e&&(n.position=t)}mo.push(e),e=e.slotParent||e.parent}mo.length=0,(()=>{throw he(!1,"Cursor root not found in current path!")})()})(n,r);else if(o&&511&o.dirty){if(s&&(o.dirty|=32),o.dirtyChildren||=[],o.dirtyChildren.includes(n)||o.dirtyChildren.push(n),s&&n.dirtyChildren){const t=(t=>{for(;t;){if(Yt(t))return t;t=t.parent||t.slotParent}return null})(n);if(t){const e=d(t);let r=e.position;if(r)for(;r!==t;)if(r=r.slotParent||r.parent,r===n){e.position=n;break}}}}else Yt(n)||(t=>{mo.push(t);let n=t.slotParent||t.parent;for(;n;){if(Yt(n))return Gt(n),mo.length=0,!0;mo.push(n),n=n.slotParent||n.parent}return mo.length=0,!1})(n)||Ht(t,n,0)}function Zt(t,n){t.push(n)}function tn(t,n,e,r){const i=t.value,s=n.slice(2),o=i.split("|"),l=[];for(let t=0;t<o.length;t++){const n=Mo(gn(o[t],e));l.push(E.bind(null,n))}(r._qDispatch||={})[s]=1===l.length?l[0]:l}function nn(t,n,e){let r=sl(n);for(;r;)Co(r)?(Io(t,r),e(r,n)):xo(r)?e(r,n):nn(t,r,e),r=r.nextSibling}function en(t,n){let e=t;if(Co(t))return void n?.(t,null);let r=null;for(;;){if(n?.(e,r))return;const i=sl(e);if(i){e=i;continue}if(e===t)return;const s=e.nextSibling;if(s)e=s;else{for(r=e.parent;r;){if(r===t)return;const n=r.nextSibling;if(n){e=n;break}r=r.parent}if(null==r)return}}}function rn(t,n,e,r){const i="string"==typeof n,s=n.length;for(;t;){const o=t.nodeValue;let l;if(i)l=o?.startsWith(n);else for(let t=0;t<s;t++)if(o?.startsWith(n[t])){l=!0;break}if(l)return e.call(t)||null;let u=r.call(t);for(u||(u=e.call(t));!u&&(u=$l(t),u);)t=u,u=e.call(u);t=u}return null}function sn(t,n,e){t[si]?((t,n)=>{for(const[e,r]of n)t.set(e,r)})(t[si],e.k(n)):Object.defineProperty(t,si,{get(){const r=e.k(n);return t[si]=r,r},set(n){Object.defineProperty(t,si,{value:n,writable:!0,enumerable:!0,configurable:!0})},enumerable:!0,configurable:!0})}function on(t=20,n="",e=!1,r=!1,i=!0,s=null){if(this&&!s)try{s=(()=>{let t=this;for(;t;){if(xo(t)){const n=Qn(t.node);return n?Wn(n):null}t=t.parent}return null})()}catch{}let o=this;if(0===t)return"...";if(null===o)return"null";if(void 0===o)return"undefined";const l=[];do{if(Co(o))l.push(pn(rl(o)));else if(Eo(o)){const e=["["+(o.flags>>>12)+"]"];if(o.dirty&&e.push(" dirty:"+o.dirty),s){const t=kl(s,o);for(let n=0;n<t.length;n++){const r=t[n];if(r!==qe&&r!==ar){const t=Po(o,r,null);e.push(" "+r+"="+pn(t))}}}const r=(i?"[34m":"")+(Re[Po(o,qe,null)||"V"]||Re.V)+(i?"[0m":"");l.push("<"+r+e.join("")+">");const u=sl(o);u&&l.push(" "+on.call(u,t-1,n+" ",!0,!0,i)),l.push("</"+r+">")}else if(xo(o)){const r=el(o),u=[];Yt(o)&&u.push(" cursor"),o.dirty&&u.push(" dirty:"+o.dirty),o.dirtyChildren&&u.push(` dirtyChildren[${o.dirtyChildren.length}]`);const c=s?kl(s,o):[];for(let t=0;t<c.length;t++){const n=c[t],e=Po(o,n,null);u.push(" "+n+"="+pn(e))}const f=Rl(o);if(f){const t=vl(f).qVNodeData?.get(f);t&&u.push(" q:vnodeData="+pn(t))}const a=f.attributes;for(let t=0;t<a.length;t++){const n=a[t];-1===c.indexOf(n.name)&&u.push(" "+n.name+(n.value?"="+pn(n.value):""))}if(l.push("<"+r+u.join("")+">"),Ro(o)||e){const e=sl(o);e&&l.push(" "+on.call(e,t-1,n+" ",!0,!0,i))}else l.push(" \x3c!-- not materialized --!>");l.push("</"+r+">")}o=r&&o.nextSibling||null}while(o);return l.join("\n"+n)}function ln(t){return!t.hasAttribute(cr)||"STYLE"===t.nodeName&&(t.hasAttribute(Ne)||t.hasAttribute(Oe))}function un(t,n){ko(n)&&xo(n)&&ol(n);const e=n[si];if(e){for(const[,n]of e)cn(t,n);e.clear()}}function cn(t,n){const e=n.backRef;if(e){for(const r of e)if(r instanceof ji)an(r,n);else if(r instanceof Ei)fn(t,r,n);else if(Bi(r))hn(r[Mi],n);else if(t.ht.has(r)){const e=t.ht.get(r);hn(Hl(e),n)}e.clear()}}function fn(t,n,e){const r=n.ut;r&&r.has(e)&&r.delete(e),n instanceof cs&&!r?.size&&(n.m=void 0,un(t,n))}function an(t,n){const e=t.ut;e&&e.has(n)&&e.delete(n);const r=t.dt;r&&r.has(n)&&r.delete(n);const i=t.$t;i&&i.has(n)&&i.delete(n),t.yt()}function hn(t,n){const e=t?.ut;if(e)for(const[t,r]of e.entries())r.has(n)&&(r.delete(n),0===r.size&&e.delete(t))}function dn(t,n){const e=Un(n);"string"==typeof this&&Jc(Bc(e,this));const r=Vc[0];r.h|=4,Kt(e,r.ct,1)}function pn(t){try{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 t+"";if(Il(t))return`Task(${pn(t.wt)})`;if(xe(t))return`Qrl(${t.bt})`;if("object"==typeof t||"function"==typeof t){if(Jl.includes(t))return"*";try{if(Jl.push(t),Array.isArray(t))return ko(t)?"("+(Po(t,qe,null)||"vnode")+")":t.map(pn);if(Dl(t))return t instanceof cs?"WrappedSignal":t instanceof Ti?"ComputedSignal":"Signal";if(Zl(t))return"Store";if($s(t))return Bl(t);if(ko(t))return"("+(Po(t,qe,null)||"vnode")+")"}finally{Jl.pop()}}}catch(t){return console.error("ERROR in qwikDebugToString",t),"*error*"}return t}function $n(t,n,e){return new Proxy(n,new nu(e,t||null))}function mn(t,n,e,r){const i=e.ut||=new Map;let s=i.get(n);s||(s=new Set,i.set(n,s)),zl(s,r),Ll(r,t),(import.meta.env.TEST?!vc(e.$):Zn)&&Ul(r,e.$)}function yn(t,n,e,r){e[t]=n;const i=wn(e,t,r.ut);i&&Wl(r.$,r,i)}function wn(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 i=e?.get(Ri);if(i){r||=new Set;for(const t of i)r.add(t)}return r}function bn(t,n,e){let r=n.bt,i=n.vt;const s=_r();if(s){const t=s.chunkForSymbol(r,i);t&&(i=t[1],r=t[0])}var o;if(xe(o=n)&&o.bt==ke)i="",r=t.gt(null,0,n.resolved)+"";else{if(i||(i=t.St(n.st)),!i)throw Se(14,[n.bt]);i.startsWith("./")&&(i=i.slice(2))}const l=n.getCaptured();let u=null;if(l&&l.length>0&&(u=l.map(n=>""+t.kt(n)).join(" ")),e)return[i,r,u];let c=`${i}#${r}`;return u&&(c+="#"+u),c}function vn(t,n,e,r){return Gc(t,n,null,null,e,r)}function gn(t,n){const[e,r,i]=t.split("#");return vn(e,r,i||null,n)}function Sn(t,n){return n.xt&&"{"===n.xt[0]&&(n.xt=`(${n.xt})`),[t.gt(n.xt,n.lt.length,n.ot),n.lt]}function kn(t,n){const e=(t,n)=>1===t&&"string"==typeof n,r=t=>14===t,i=n=>{const e=t[n+1].split(" ");let r=t,i=1,s=0,o=0,l=null;for(let n=0;n<e.length;n++)if(l=r,s=2*parseInt(e[n],10),o=s+1,i=r[s],r=r[o],1===i){const n=2*r;i=t[n],r=t[n+1]}l&&(l[s]=1,l[o]=n/2),t[n]=i,t[n+1]=r};for(let s=0;s<t.length;s+=2)e(t[s],t[s+1])?i(s):r(t[s])&&(n.qt=t[s+1])}function xn(t,n){return n?t.rootVNode?Fo(t.rootVNode,n):void 0:t.element?.ownerDocument}function qn(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function Rn(t,n,e){return()=>{t.currentStyleScoped=n,t.parentComponentFrame=e}}async function Cn(t,e,r){const i=[e],s=t=>i.push(t);await(async()=>{for(;i.length;){const e=i.pop();if(e===Mu){const t=i.pop();await n(()=>i.push(t()));continue}"function"!=typeof e?En(t,s,e,r):e===Promise?i.push(await i.pop()):await e.apply(t)}})()}function En(t,n,e,r){if(null==e)t.textNode("");else if("boolean"==typeof e)t.textNode("");else if("number"==typeof e)t.textNode(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(Dl(e)){((t,n)=>{const e=n instanceof cs?n.it():n;e instanceof ji&&(!e.Rt||256&e.h||(t.kt(e),t.Ct.add(e)))})(t.serializationCtx,e),t.openFragment(Di);const r=t.getOrCreateLastNode(),i=e instanceof cs?e.it():e;n(t.closeFragment),n(()=>jc(i,r,".",t)),n(Mu)}else if(dr(e))t.openFragment(Di),n(t.closeFragment),n(e),n(Promise),n(()=>t.streamHandler.flush());else if((t=>!!t[Symbol.asyncIterator])(e))n(async()=>{for await(const n of e)await Cn(t,n,{currentStyleScoped:r.currentStyleScoped,parentComponentFrame:r.parentComponentFrame}),t.streamHandler.flush()});else{const i=e,s=i.type;if("string"==typeof s){((t,n)=>{null==Wi(t,"class")&&n&&(t.constProps||(t.constProps={}),t.constProps.class="")})(i,r.currentStyleScoped);const e=t.openElement(s,i.key,i.varProps,i.constProps,r.currentStyleScoped,null,!!(4&i.flags));e&&t.htmlNode(e),n(t.closeElement),"head"===s?(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),n(t.additionalHeadNodes)):"body"===s?n(t.additionalBodyNodes):t.isHtml||t._didAddQwikLoader||t.Et||(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),t._didAddQwikLoader=!0);const o=i.children;null!=o&&n(o)}else if(ge(s))if(s===Os){t.openFragment(null!=i.key?{[Ze]:i.key}:{}),n(t.closeFragment);const e=i.children;null!=e&&n(e)}else if(s===Ns){const e=r.parentComponentFrame;if(e){const s={};s["q:sparent"]=e.componentNode.id||"",t.openProjection(s);const o=e.componentNode,l=t.getOrCreateLastNode(),u=((t,n,e)=>{const r=n.constProps;if(r&&"object"==typeof r&&"name"in r){const n=r.name;if(n instanceof cs)return jc(n,t,":",e)}return Wi(n,"name")||Ke})(o,i,t);s[je]=u,n(Rn(r,r.currentStyleScoped,r.parentComponentFrame)),n(t.closeProjection);const c=i.children||null,f=e.consumeChildrenForSlot(l,u)||c;c&&f!==c&&t.addUnclaimedProjection(e,Ke,c),n(f),n(Rn(r,e.projectionScopedStyle,e.projectionComponentFrame))}else t.openFragment(Di),t.closeFragment()}else if(s===Ds)t.commentNode(Wi(i,"data")||"");else if(s===Ls){t.streamHandler.flush();const e=i.children;let s;s=ge(e)?e({async write(n){await Cn(t,n,{currentStyleScoped:r.currentStyleScoped,parentComponentFrame:r.parentComponentFrame}),t.streamHandler.flush()}}):e,n(s),dr(s)&&n(Promise)}else if(s===Fs)t.htmlNode(Wi(i,"data"));else if(s===zs)t.streamHandler.streamBlockStart(),n(()=>t.streamHandler.streamBlockEnd()),n(i.children);else if(hf(s)){t.openComponent({});const e=t.getOrCreateLastNode(),o=t.getParentComponentFrame();o.distributeChildrenIntoSlots(i.children,r.currentStyleScoped,r.parentComponentFrame);const l=((t,n,e)=>{const r=t.getOrCreateLastNode(),[i]=e[af],s=n.props;return s&&s.children&&delete s.children,r.setProp(Ee,i),r.setProp(tr,s),null!==n.key&&r.setProp(Ze,n.key),Ms(t,r,r,i,s)})(t,i,s);if(n(Rn(r,r.currentStyleScoped,r.parentComponentFrame)),n(t.closeComponent),dr(l))n(async()=>{const t=await l,i=wr(e.getProp(Ne));n(t),n(Rn(r,i,o))});else{n(l);const t=wr(e.getProp(Ne));n(Rn(r,t,o))}}else{t.openFragment({[Ze]:i.key}),n(t.closeFragment);const e=t.getParentComponentFrame(),r=((t,n,e,r)=>{const i=t.getOrCreateLastNode();return Ms(t,i,n,e,r.props)})(t,e&&e.componentNode,s,i);n(r),dr(r)&&n(Promise)}}}function Tn(t,n,e,r){let i=null;const s=e,o=t=>{i=(null==i?"":i+"|")+t},l=n=>(n.bt.startsWith("_")||!n.Tt?.length&&!r||(n=Gc(null,"_run",T,null,[n])),bn(t,n));if(Array.isArray(s))for(let e=0;e<s.length;e++){const i=s[e];if(xe(i))o(l(i)),Pn(t,n,i);else if(null!=i){const e=Tn(t,n,i,r);e&&o(e)}}else xe(s)&&(i=l(s),Pn(t,n,s));return i}function Pn(t,n,e){const r=Sr(n);if(r){const[n,i]=r,s=((t,n)=>t+":"+n)(n,i);t.Pt.add(s),t.jt.add(e)}}function jn(){const t=xc();if(!t)return;Bu||=Cu(Ju,"_hmr");const n=Bu.w([t.m]);Uu("qHmr",n)}function _n(t,n,e,r,i){const s=So();return jo(s,je,i),s.parent=n,jo(n,i,s),jo(s,Ee,e),jo(s,tr,r),s.dirty=4,Ht(t,s,1),s}function On(t,n){jo(t,Te,n),t.flags|=2048}function An(t,n,e){jo(n,tr,e),Kt(t,n,4)}function Mn(t,n,e,r){jo(n,r,null);const i=[];if(bt(t,i,e),Qo(i),2048&e.flags){const t=Po(e,Te,null);t&&t.replaceChildren(),jo(e,Te,null),e.flags&=-2049}}function Nn(t,n,e){if(0===n)return e;const r=qu(t,n,e);return Zu(n)&&Gu(t,r,n,e),r}function In(t,n){if(t)for(const e of t)e.backRef||=new Set,e.backRef.add(n)}function Fn(t,n){if(t)for(const[,e]of t)In(e,n)}async function Dn(t){const n=$u(null,null,()=>"",()=>{},new WeakMap);return n.kt(t),await n._t(),""+n.Ot}function zn(t){if(null==t)throw Error("No state data to deserialize");const n=JSON.parse(t);if(!Array.isArray(n)||n.length<2||"number"!=typeof n[0])throw Error("Invalid state data");const e=(t=>{let n;const e={k:t=>Ln(t,n),getSyncFn:()=>()=>{},ht:new WeakMap,element:null,qt:null};return kn(t,e),n=ec(e,t),e.At=n,e})(n);return Nn(e,n[0],n[1])}function Ln(t,n){return"string"==typeof t?n[t=parseInt(t,10)]:n[t]}function Un(t){const n=Qn(t);if(!n)throw Se(24);return Wn(n)}function Wn(t){const n=t;return n.qContainer||=new gc(n)}function Qn(t){return t.closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])")}function Vn(t){if(void 0===Sc){const n=xc();if(n&&n.Mt)return n.Mt;if(void 0!==t)return t;throw Error("Reading `locale` outside of context.")}return Sc}function Jn(t,n){const e=Sc;try{return Sc=t,n()}finally{Sc=e}}function Bn(t,n,...e){return Hn.call(this,t,n,e)}function Hn(t,n,e){const r=kc;try{return kc=t,n.apply(this,e)}finally{kc=r}}function Yn(t,n,e){const r={m:n,Nt:Ge,It:void 0,Mt:t,$:e,Ft:void 0};return le(r),r}function Xn(t,n,e){const r={m:n,Nt:e,It:void 0,Mt:t||(e&&we(e)&&"locale"in e?e.locale:void 0),$:void 0};return le(r),r}function Gn(t,n){const e=xc();return e?.$?.Dt[t]??n}import{p as Kn}from"@qwik.dev/core/preloader";const Zn=!1,te=!0,ne=!1,ee=globalThis,re=!1!==ee.qDev,ie=!1!==ee.qDynamicPlatform,se=!0===ee.qTest,oe=!0===ee.qRuntimeQrl,le=t=>{re&&Object.seal(t)},ue=re?"background: #564CE0; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;":"",ce=/*#__PURE__*/new Set,fe=(t,...n)=>{if(re){const e="warn"+t;ce.has(e)||(ce.add(e),ae(t,...n))}},ae=(t,...n)=>{re&&console.warn("%cQWIK WARN",ue,t,...n)},he=(t,n,...e)=>{const r=n instanceof Error?n:Error(n);return!se&&console.error("%cQWIK ERROR",ue,r.message,...e,r.stack),t&&!se&&setTimeout(()=>{throw r},0),r},de=(t,n,e)=>{let r=e>>1,i=t.length-2>>1;for(;r<=i;){const e=r+(i-r>>1),s=t[e<<1];if(s===n)return e<<1;s<n?r=e+1:i=e-1}return~(r<<1)},pe=(t,n,e,r,i=!1)=>{const s=de(t,n,r);s>=0?null!=e||i?t[s+1]=e:t.splice(s,2):(null!=e||i)&&t.splice(-1^s,0,n,e)},$e=(t,n,e)=>{const r=de(t,n,e);return r>=0?t[r+1]:null},me=(t,n,e)=>de(t,n,e)>=0,ye=t=>{const n=Object.getPrototypeOf(t);return n===Object.prototype||n===Array.prototype||null===n},we=t=>"object"==typeof t&&null!==t,be=t=>Array.isArray(t),ve=t=>"string"==typeof t,ge=t=>"function"==typeof t,Se=(t,n=[])=>{const e=((t,...n)=>{if(re){let e=["Error while serializing class or style attributes","Scheduler not found","track() received object, without prop to track","Only primitive and object literals can be serialized. {{0}}","You can render over a existing q:container. Skipping render().","QRL is not a function","Dynamic import {{0}} not found","Unknown type argument","Actual value for useContext({{0}}) can not be found, make sure some ancestor component has set a value using useContextProvider(). In the browser make sure that the context was used during SSR so its state was serialized.","Invoking 'use*()' method outside of invocation context.","Calling a 'use*()' method outside 'component$(() => { HERE })' is not allowed. 'use*()' methods provide hooks to the 'component$' state and lifecycle, ie 'use' hooks can only be called synchronously within the 'component$' function or another 'use' method.\nSee https://qwik.dev/docs/core/tasks/#use-method-rules",'The provided Context reference "{{0}}" is not a valid context created by createContextId()',"SsrError(tag): {{0}}","QRLs can not be resolved because it does not have an attached container. This means that the QRL does not know where it belongs inside the DOM, so it cant dynamically import() from a relative path.","QRLs can not be dynamically resolved, because it does not have a chunk path","{{0}}\nThe JSX ref attribute must be a Signal","Serialization Error: Deserialization of data type {{0}} is not implemented","Serialization Error: Expected vnode for ref prop, but got {{0}}","Serialization Error: Cannot allocate data type {{0}}","Serialization Error: Missing root id for {{0}}","Serialization Error: Serialization of data type {{0}} is not implemented","Serialization Error: Unvisited {{0}}","Serialization Error: Missing QRL chunk for {{0}}","{{0}}\nThe value of the textarea must be a string found {{1}}","Unable to find q:container","Element must have 'q:container' attribute.","Unknown vnode type {{0}}.","Materialize error: missing element: {{0}} {{1}} {{2}}","Cannot coerce a Signal, use `.value` instead","useComputed$ QRL {{0}} {{1}} cannot return a Promise",'===\nQwik version {{0}} already imported while importing {{1}}.\nThis can lead to issues due to duplicated shared structures.\nVerify that the Qwik libraries you\'re using are in "resolve.noExternal[]" and in "optimizeDeps.exclude".\n===\n',"WrappedSignal is read-only","Attribute value is unsafe for SSR {{0}}","SerializerSymbol function returned rejected promise","Serialization Error: Cannot serialize function: {{0}}","Cannot read .value of a clientOnly async signal during SSR. Use .loading to check state, or provide an initial value."][t]??"";return n.length&&(e=e.replaceAll(/{{(\d+)}}/g,(t,e)=>{let r=n[e];return r&&we(r)&&r.constructor===Object&&(r=JSON.stringify(r).slice(0,50)),r})),`Code(Q${t}): ${e}`}return`Code(Q${t}) https://qwikdev-build-v2.qwik-8nx.pages.dev/docs/errors/#Q${t}`})(t,...n);return((t,...n)=>he(re,t,...n))(e,...n)},ke="<sync>",xe=t=>"function"==typeof t&&"function"==typeof t.getSymbol,qe="q:type",Re={V:"Virtual",F:"Fragment",S:"Signal",A:"Awaited",C:"Component",I:"InlineComponent",P:"Projection"},Ce=124,Ee="q:renderFn",Te="q:targetEl",Pe="⚡️",je="q:slot",_e="q:s",Oe="q:style",Ae="style[q\\:style]",Me=Ae+",style[q\\:sstyle]",Ne="q:sstyle",Ie="q:ctx",Fe="q:brefs",De=(t,n)=>t["qFuncs_"+n]||[],ze="q:base",Le="q:container-island",Ue="/"+Le,We="q:ignore",Qe="/"+We,Ve="q:container",Je="/"+Ve,Be="q:template",He="http://www.w3.org/1999/xhtml",Ye="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1998/Math/MathML",Ge="qRender",Ke="",Ze="q:key",tr="q:props",nr="q:seq",er="q:seqIdx",rr="q:p",ir="q:ps",sr=":",or=":on",lr=":onIdx",ur=":onFlags",cr=":",fr="dangerouslySetInnerHTML",ar="__scopedStyleIdPrefix__",hr=100,dr=t=>!!t&&"object"==typeof t&&"function"==typeof t.then,pr=(t,n,e)=>{try{const r=t();return dr(r)?r.then(n,e):n(r)}catch(t){return e(t)}},$r=(t,n)=>dr(t)?t.then(n):n(t),mr=t=>{throw t},yr=t=>Pe+t,wr=t=>{if(t){let n=0;do{t=t.substring(0,n)+yr(t.substring(n))}while(0!==(n=t.indexOf(" ",n)+1))}return t||null},br=t=>113===t.charCodeAt(0)&&45===t.charCodeAt(1)&&(58===t.charCodeAt(3)||112===t.charCodeAt(3)&&58===t.charCodeAt(4)),vr=t=>"DOMContentLoaded"===t?"-d-o-m-content-loaded":((t,n="")=>n+gr(t))("-"===t.charAt(0)?t.slice(1):t.toLowerCase()),gr=t=>t.replace(/([A-Z-])/g,t=>"-"+t.toLowerCase()),Sr=t=>{const n=t.indexOf(":");return[t.slice(2,n),t.slice(n+1)]},kr=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"]),xr=(t,n=0)=>{for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return(+Math.abs(n)).toString(36)},qr=t=>{if(!t)return"";if(ve(t))return t.trim();const n=[];if(be(t))for(let e=0;e<t.length;e++){const r=qr(t[e]);r&&n.push(r)}else for(const[e,r]of Object.entries(t))r&&n.push(e.trim());return n.join(" ")},Rr=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Cr=(t,n)=>"number"!=typeof n||0===n||kr.has(t)?n:n+"px",Er=()=>({isServer:Zn,importSymbol(t,n,e){if(!n)throw Se(14,[e]);if(!t)throw Se(13,[n,e]);const r=""+Tr(t.ownerDocument,t,n),i=new URL(r);return i.hash="",import(i.href).then(t=>t[e])},raf:t=>new Promise(n=>{requestAnimationFrame(()=>{n(t())})}),chunkForSymbol:(t,n)=>[t,n??"_"]}),Tr=(t,n,e)=>{const r=t.baseURI,i=new URL(n.getAttribute(ze)??r,r);return new URL(e,i)};let Pr=/*#__PURE__ */Er();const jr=t=>Pr=t,_r=()=>Pr,Or=()=>!!ie&&Pr.isServer,Ar=t=>{let n;if("undefined"!=typeof MessageChannel){const e=new MessageChannel;e.port1.onmessage=()=>t(),n=()=>e.port2.postMessage(null)}else n=()=>setTimeout(t);return n},Mr=!import.meta.env.TEST||!Or(),Nr=Mr?document:void 0,Ir=Mr&&Nr.createElement("link").relList?.supports?.("modulepreload")?"modulePreload":"preload";performance.now();const Fr=/\.[mc]?js$/,Dr=1e3/60;!import.meta.env.TEST||Or();const zr=t=>{let n=Lr.get(t);if(!n){let e;n=((t,n)=>({zt:t,At:Fr.test(t)?0:3,Lt:n,Ut:1,Wt:performance.now(),Qt:0,Vt:0}))(t,e),Lr.set(t,n)}return n},Lr=new Map;let Ur=0;const Wr=[],Qr=Ar(()=>{if(Jr=!1,!Wr.length)return;const t=performance.now()+Dr;let n=!1;for(;Wr.length;){const e=Wr[0];if(!(1-e.Ut>=.99||Ur<5))break;if(Wr.shift(),Zr(e),performance.now()>=t){n=!0;break}}n&&Wr.length&&!Jr&&(Jr=!0,Qr())}),Vr=Ar(i);let Jr=!1,Br=!1,Hr=!1;const Yr=import.meta.env.TEST?!Or():te,Xr=[],Gr=(t,n,e,r)=>{Xr.unshift({Jt:t,Ut:n,Bt:r,Ht:e})},Kr=()=>{const t=Xr[Xr.length-1],n=t.Jt;if(t.Lt){const e=t.Yt;if(e>=t.Lt.length)return Xr.pop(),!1;const r=t.Lt[e];t.Yt=e+1;const i=zr(r.zt);if(0===i.Ut)return!0;const s=1-n.Ut;let o;if(1===s||s>=.99&&t.Ht.Xt<100)t.Ht.Xt++,o=Math.min(.01,1-r.Gt);else{const t=(1-r.Gt*s)/r.Kt;o=Math.max(.02,i.Ut*t),r.Kt=t}return Xr.push({Jt:i,Ut:o,Bt:t.Bt,Ht:t.Ht}),!0}if(t.Bt?.has(n))return Xr.pop(),!1;const e=n.Ut;if(n.Ut=t.Ut,e-n.Ut<.01)return Xr.pop(),!1;if(n.Lt?.length){const e=t.Bt||new Set;return e.add(n),t.Bt=e,t.Lt=n.Lt,t.Yt=0,!1}return Xr.pop(),!1},Zr=t=>{if(t.At>=2)return;Ur++;const n=performance.now();t.Qt=n-t.Wt,t.At=2;const e=Nr.createElement("link");e.href=""+new URL("undefined"+t.zt,Nr.baseURI),e.rel=Ir,e.as="script",e.onload=e.onerror=()=>{Ur--;const r=performance.now();t.Vt=r-n,t.At=4,e.remove(),Qr()},Nr.head.appendChild(e)},ti=(t,n,e)=>{const r=zr(t);r&&r.Ut>n&&(e?Gr(r,n,e):((t,n)=>{Gr(t,n,{Xt:0},void 0),Yr?Vr():i()})(r,n))};(import.meta.env.TEST?!Or():te)&&document.addEventListener("qsymbol",t=>{const{symbol:n,href:e}=t.detail;e&&(t=>{if(!t?.length)return;let n=0;const e={Xt:0};if(Array.isArray(t))for(let r=t.length-1;r>=0;r--){const i=t[r];"number"==typeof i?n=1-i/10:ti(i,n,e)}else ti(t,n,e);Yr?Vr():i()})(n.slice(n.lastIndexOf("_")+1))});const ni=t=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0},ei=",",ri="2.0.0-beta.32-dev+0e29f8a",ii=t=>1===t.nodeType,si=Symbol();class oi{[si]=void 0}const li=t=>"foreignObject"===t,ui=t=>"svg"===t||li(t),ci=t=>"math"===t,fi={elementNamespace:He,elementNamespaceFlag:0};class ai{flags;parent;previousSibling;nextSibling;props;[si]=void 0;slotParent=null;dirty=0;dirtyChildren=null;nextDirtyChildIndex=0;constructor(t,n,e,r,i){this.flags=t,this.parent=n,this.previousSibling=e,this.nextSibling=r,this.props=i}toString(){return Object.prototype.toString.call(this)}}class hi extends ai{key;firstChild;lastChild;constructor(t,n,e,r,i,s,o,l){super(n,e,r,i,s),this.key=t,this.firstChild=o,this.lastChild=l}}class di extends hi{node;elementName;constructor(t,n,e,r,i,s,o,l,u,c){super(t,n,e,r,i,s,o,l),this.node=u,this.elementName=c}}class pi extends ai{node;text;constructor(t,n,e,r,i,s,o){super(t,n,e,r,i),this.node=s,this.text=o}}const $i=[],mi=[],yi=new WeakMap,wi=":nodeProps",bi=":nodeDiff",vi=":errorData",gi=":signal",Si=Symbol();class ki{consumer;property;backRef;data;constructor(t,n,e=null,r=null){this.consumer=t,this.property=n,this.backRef=e,this.data=r}}const xi=Symbol(),qi=Symbol(),Ri=Symbol(),Ci=(t,n)=>(e,r)=>{const i=Xn();return i.It=p(t,":"),i.$=n||void 0,Bn(i,()=>{if(ge(e))return e();if(r)return e[r];if(Dl(e))return e.value;if(we(e)&&Zl(e))return mn(Yl(e),Ri,Hl(e),i.It),e;throw Se(2)})};class Ei{Zt;ut=void 0;$=null;tn=null;constructor(t,n){this.$=t||xc()?.$||null,this.Zt=n}trigger(){Wl(this.$,this,this.ut)}force(){Wl(this.$,this,this.ut)}get untrackedValue(){return this.Zt}set untrackedValue(t){this.Zt=t}get value(){const t=this.untrackedValue,n=xc();if(!n)return t;null===this.$&&(this.$=n.$);const e=n.It;return e&&(zl(this.ut||=new Set,e),Ll(e,this),(import.meta.env.TEST?!vc(this.$):Zn)&&Ul(e,this.$)),t}set value(t){t!==this.Zt&&(this.Zt=t,Wl(this.$,this,this.ut))}valueOf(){if(re)throw Se(28)}toString(){return this.constructor.name}toJSON(){return{value:this.Zt}}}class Ti extends Ei{nn;h;[si]=void 0;constructor(t,n,e=17){super(t||xc()?.$,Si),this.nn=n,this.h=e}invalidate(){this.h|=1;const t=Xn();t.$=this.$||void 0;const e=n(Hn.bind(this,t,this.p));e&&e.catch(t=>{this.$?this.$.handleError(t,null):console.error("Error during computation",t)})}get untrackedValue(){return this.p(),this.Zt}set untrackedValue(t){this.Zt=t}p(){if(!(1&this.h))return;const t=this.nn;Fl(t);const n=xc(),e=n?.It;if(n){const t=p(this,".");cn(this.$,t),n.It=t}try{const e=t.getFn(n)();if(dr(e))throw Se(29,[t.dev?t.dev.file:"",t.st]);this.h&=-2,super.value=e}finally{n&&(n.It=e)}}}class Pi{en;rn=null;sn=!1;ln=!0;constructor(t,n,e){this.en=t,void 0!==n&&(this.info=n,this.un=e)}get track(){return this.cn||=Ci(this.en,this.en.$)}get abortSignal(){return(this.fn||=new AbortController).signal}cache(){}get previous(){const t=this.en.Zt;if(t!==Si)return t}cleanup(t){"function"==typeof t&&(this.an||=[]).push(t)}}class ji extends Ti{hn=!1;dn=void 0;pn=null;[si]=void 0;constructor(t,n,e=17,r){if(super(t,n,e),!r)return;const i=r.initial;if(void 0!==i){const t="function"==typeof i?i():i;this.Zt=t}const s=r.concurrency;void 0!==s&&s>=0&&1!==s&&(this.$n=s,this.mn=[]);const o=r.timeout;o&&(this.yn=o),r.eagerCleanup&&(this.h|=32),r.clientOnly&&(this.h|=64),!1===r.allowStale&&(this.h|=128);const l=r.expires??(r.interval?Math.abs(r.interval):void 0);l&&(this.expires=l),(!1===r.poll||void 0!==r.interval&&r.interval<0)&&(this.h|=256)}get untrackedValue(){if(this.p(),this.pn?.rn){if(this.Zt===Si||(import.meta.env.TEST?Or():Zn))throw this.pn?.rn;return this.Zt}if(this.dn)throw this.dn;if((import.meta.env.TEST?Or():Zn)&&64&this.h&&this.Zt===Si)throw Se(35);return this.Zt}set untrackedValue(t){this.Zt=t}get value(){return super.value}set value(t){if(this.h&=-2,this.untrackedLoading=!1,this.untrackedError=void 0,this.wn=void 0,this.mn)for(let t=0;t<this.mn.length;t++)this.mn[t].ln=!1;else this.pn&&(this.pn.ln=!1);this.bn(),super.value=t,this.vn()}get loading(){const t=this.untrackedLoading,n=xc();if(n&&(this.$||=n.$||null)){const t=n.It;t&&(zl(this.dt||=new Set,t),Ll(t,this),Ul(t,this.$))}return t}set untrackedLoading(t){t!==this.hn&&(this.hn=t,Wl(this.$,this,this.dt))}get untrackedLoading(){if(this.p(),(import.meta.env.TEST?Or():Zn)&&this.pn?.rn)throw this.pn?.rn;return this.hn}get error(){const t=this.untrackedError,n=xc();if(n&&(this.$||=n.$||null)){const t=n.It;t&&(zl(this.$t||=new Set,t),Ll(t,this),Ul(t,this.$))}return t}set untrackedError(t){t!==this.dn&&(this.dn=t,Wl(this.$,this,this.$t))}get untrackedError(){return this.dn}get expires(){return this.Rt||0}set expires(t){this.bn(),this.Rt=t,this.Rt&&this.gn()&&this.vn()}get poll(){return!(256&this.h)}set poll(t){t?this.h&=-257:this.h|=256,this.Rt&&this.gn()&&(this.bn(),this.vn())}get interval(){const t=this.Rt||0;return 256&this.h?-t:t}set interval(t){t<0?this.h|=256:this.h&=-257,this.expires=Math.abs(t)}async invalidate(t){arguments.length>0&&(this.wn=t,this.un=void 0===this.un?1:this.un+1),this.Sn(!0,128&this.h)}Sn(t,n){this.h|=1,this.bn(),n&&(this.Zt=Si),t&&(this.ut?.size||this.dt?.size||this.$t?.size)&&Promise.resolve().then(()=>this.p())}abort(t){this.pn&&this.kn(this.pn,t)}yt(){32&this.h&&!this.gn()&&(import.meta.env.TEST?!Or():te)&&setTimeout(()=>{this.gn()||this.abort()})}async promise(){for(this.p();this.pn?.rn;)await(this.pn?.rn)}p(){if(!(1&this.h))return;if((import.meta.env.TEST?Or():Zn)&&64&this.h)return this.hn=!0,void this.$?.serializationCtx.Ct.add(this);this.bn(),this.h&=-2;const t=this.pn;if(t&&this.kn(t),this.mn?this.mn.length>=(0===this.$n?1/0:this.$n??1):t?.rn)return void(this.h|=1);const n=new Pi(this,this.wn,this.un);this.pn=n,this.mn&&this.mn.push(n),n.rn=this.xn(n)}async xn(t){this.untrackedLoading=!0;let e=this.nn.resolved;if(e||(e=await this.nn.resolve(),!t.fn?.signal.aborted)){try{this.yn&&(this.qn=setTimeout(()=>{const n=Error(`timeout ${this.yn}ms`);this.Rn(t,n),t.fn?.abort(n)},this.yn));const r=n(e.bind(null,t)),i=dr(r)?await r:r;if(t.rn=null,t.ln){const n=this.mn;if(n){let e=!1;for(let r=n.length-1;r>=0;r--)n[r]===t?e=!0:e&&(n[r].ln=!1)}this.untrackedError=void 0,super.value=i}}catch(n){t.rn=null,this.Rn(t,n)}(()=>t===this.pn)()&&(clearTimeout(this.qn),t.un===this.un&&(this.wn=void 0),1&this.h?this.p():(this.untrackedLoading=!1,this.vn()))}else t.rn=null}Rn(t,n){t===this.pn&&t.ln&&(t.ln=!1,n instanceof Error&&"AbortError"===n.name||(this.untrackedError=n,this.untrackedValue=Si))}async Cn(){this.bn(),clearTimeout(this.qn);const t=this.pn;t&&this.kn(t),this.mn?await Promise.all(this.mn.map(t=>t.rn)):await(t?.rn)}bn(){void 0!==this.En&&(clearTimeout(this.En),this.En=void 0)}vn(){if((import.meta.env.TEST?Or():Zn)||!this.Rt)return;this.bn();const t=!(256&this.h),n=128&this.h&&!t;this.En=setTimeout(()=>this.Sn(t,n),this.Rt),this.En?.unref?.()}gn(){return!!(this.ut?.size||this.dt?.size||this.$t?.size)}kn(t,n){t.sn||(t.sn=!0,t.fn?.abort(n),t.rn=$r(t.rn,()=>this.Tn(t)))}Tn(t){const n=t.an,e=t=>{const n=this.$?.handleError;n?n(t,null):console.error("Error in async signal cleanup",t)},r=()=>{t.rn=null,n&&(n.length=0);const e=this.mn;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}this.p()};let i;if(n)for(let t=0;t<n.length;t++)try{const r=n[t]();dr(r)&&(i=(i?i.then(()=>r):r).catch(e))}catch(t){e(t)}if(i)return i.then(r);r()}}const _i=Symbol(),Oi=Symbol(),Ai=Symbol(),Mi=Symbol(),Ni=Symbol(),Ii=Symbol(),Fi=[],Di={};Object.freeze(Fi),Object.freeze(Di);class zi{owner;ut=void 0;$=null;constructor(t){this.owner=t}get(t,n){if(n===_i)return this.owner.constProps;if(n===Oi)return this.owner.varProps;if(n===Ai)return this.owner;if(n===Mi)return this;let r;if("children"===n)r=this.owner.children;else{if("string"==typeof n&&"string"==typeof this.owner.type){const t=e(n);t&&(n=t)}r=Wi(this.owner,n),n in this.owner.varProps&&Li(this,n)}return r instanceof cs&&4&r.h?r.value:r}set(t,n,r){if(n===Ai)this.owner=r;else if("children"===n)this.owner.children=r;else if(n===_i)this.owner.constProps=r;else if(n===Oi)this.owner.varProps=r;else{if("string"==typeof n&&"string"==typeof this.owner.type){const t=e(n);t&&(n=t)}this.owner.constProps&&n in this.owner.constProps&&delete this.owner.constProps[n],this.owner.varProps===Di?this.owner.varProps={}:n in this.owner.varProps||(this.owner.toSort=!0),this.owner.varProps[n]!==r&&(this.owner.varProps[n]=r,Ui(this,n))}return!0}deleteProperty(t,n){let e=delete this.owner.varProps[n];return e&&Ui(this,n),this.owner.constProps&&(e=delete this.owner.constProps[n]||e),null!=this.owner.children&&"children"===n&&(this.owner.children=null,e=!0),e}has(t,n){if("children"===n)return null!=this.owner.children;if(n===_i||n===Oi)return!0;const r=n in this.owner.varProps;if("string"==typeof n&&(r&&Li(this,n),"string"==typeof this.owner.type)){const t=e(n);t&&(n=t)}return r||!!this.owner.constProps&&n in this.owner.constProps}getOwnPropertyDescriptor(t,n){return{configurable:!0,enumerable:!0,value:"children"===n?this.owner.children:this.owner.constProps&&n in this.owner.constProps?this.owner.constProps[n]:this.owner.varProps[n]}}ownKeys(){const t=Object.keys(this.owner.varProps);if(null!=this.owner.children&&t.push("children"),this.owner.constProps)for(const n in this.owner.constProps)-1===t.indexOf(n)&&t.push(n);return t}}const Li=(t,n)=>{const e=xc();e&&null===t.$&&e.$&&(t.$=e.$);const r=e?.It;r&&mn(t.owner._proxy,n,t,r)},Ui=(t,n)=>{const e=((t,n)=>t?.get(n))(t.ut,n);return e&&Wl(t.$,t,e),!!e},Wi=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],Qi=(t,n)=>Vi(t)?.[n]||Ji(t)?.[n]||null,Vi=t=>t?Oi in t?"children"in t?{...t[Oi],children:t.children}:t[Oi]:t:null,Ji=t=>t&&_i in t?t[_i]:null,Bi=t=>t&&Oi in t,Hi=t=>(n,...e)=>t.call(null,of(n),...e);class Yi extends Ti{constructor(t,n){super(t,n,17)}Pn=!1;p(){if(!(1&this.h))return;Fl(this.nn);const t=Ec(this.nn.resolved),{deserialize:n,initial:e}=t,r=t.update,i=this.Zt===Si?e:this.Zt,s=Pc(()=>this.Pn?r?.(i)||i:n(i),this,".",this.$);this.Pn=!0,this.h&=-2,(this.Pn&&"undefined"!==s||s!==this.Zt)&&(this.Zt=s,Wl(this.$,this,this.ut))}}const Xi=(t,n)=>new Ti(n?.container||null,t,Vl(n?.serializationStrategy||"always")),Gi=(t,n)=>new ji(n?.container||null,t,Vl(n?.serializationStrategy||"always"),n),Ki=t=>new Yi(null,t),Zi=t=>new Ei(null,t),ts=/*#__PURE__*/Hi(Xi),ns=/*#__PURE__*/Hi(Gi),es=Hi(Ki),rs=t=>t.value,is=(t,n)=>t[n],ss=t=>1===t.length?Dl(t[0])?t[0].tn||=new cs(null,rs,t,null):Zl(t[0])?new cs(null,rs,t,null):t[0].value:new cs(null,is,t,null),os=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!we(n))return n[e];if(Dl(n))return n instanceof cs&&4&n.h?n:ss(t);if(Bi(n)){const r=n[_i],i=n[Oi];if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];if(Object.prototype.hasOwnProperty.call(i,e))return ls(i[e],t)}else{const r=Yl(n);if(r)return ls(r[e],t)}return n[e]},ls=(t,n)=>Dl(t)?t:ss(n),us=(t,n)=>{const e=os(t,n);return e===Ni?t[n]:e};class cs extends Ei{lt;ot;xt;h;m=void 0;[si]=void 0;constructor(t,n,e,r,i=5){super(t,Si),this.lt=e,this.ot=n,this.xt=r,this.h=i}invalidate(){this.h|=1;try{this.p()}catch(t){this.$&&this.m&&(this.$.setHostProp(this.m,gi,this),Kt(this.$,this.m,16))}2&this.h&&(this.h&=-3,Wl(this.$,this,this.ut))}get untrackedValue(){return this.p(),this.Zt}p(){if(!(1&this.h))return;const t=Pc(()=>this.ot(...this.lt),this,".",this.$);this.h&=-3,t!==this.Zt&&(this.h|=2,this.Zt=t)}it(){return this.ot===rs&&Dl(this.lt[0])?this.lt[0]:this}set value(t){throw Se(31)}get value(){return super.value}}class fs{data;constructor(t){this.data=t}}const as=(t,n)=>{if("string"==typeof t){const e=Un(n);Jc(Bc(e,t))}return null},hs=Object.prototype.hasOwnProperty;class ds{type;children;flags;toSort;key;varProps;constProps;dev;_proxy=null;constructor(t,n,e,r,i,s,o,l){this.type=t,this.children=r,this.flags=i,this.toSort=!!o,this.key=null==s?null:"string"==typeof s?s:""+s,this.varProps=!n||ni(n)?Di:n,this.constProps=!e||ni(e)?null:e,re&&l&&(this.dev={...l,stack:Error().stack?.split("\n").slice(2).join("\n")}),le(this)}get props(){return this._proxy||=$(this)}}const ps=(t,n,e)=>{let r=t[n];if(!r)return t[n]=e,!0;Array.isArray(r)?r.push(e):r=t[n]=[r,e]},$s=t=>re?t instanceof ds||!!(we(t)&&hs.call(t,"key")&&hs.call(t,"props")&&hs.call(t,"type"))&&!Bi(t)&&(ae('Duplicate implementations of "JSXNode" found'),!0):t instanceof ds,ms="bind:value",ys="bind:checked",ws="passive:",bs="preventdefault:",vs=Object.prototype.hasOwnProperty,gs=(t,n,e,r,i=!1)=>{let s=t,o=i;if(n.length>0){o||(s={...s},o=!0);for(let t=0;t<n.length;t++)delete s[n[t]]}if(e.length>0)for(let t=0;t<e.length;t++){const n=e[t];r.has(vr(n.slice(15)))&&(o||(s={...s},o=!0),delete s[n])}return s},Ss=t=>t.startsWith("on")&&t.endsWith("$")?vr(t.slice(2,-1)):t.startsWith("window:on")&&t.endsWith("$")?vr(t.slice(9,-1)):t.startsWith("document:on")&&t.endsWith("$")?vr(t.slice(11,-1)):null,ks=(t,n,r,i,s=!1)=>{let o=t,l=s;for(let t=0;t<n.length;t++){const s=n[t],u=Ss(s),c=e(s,i.has(u));if(c){l||(o={...o},l=!0);const t=r.get(c);(void 0===t||t<r.get(s))&&(o[c]=o[s]),delete o[s]}}return o},xs=(t,n,e,r,i,s,o)=>new ds(t,n,e,r,i,s,!1,o),qs=(t,n,e,r,i,s,o)=>{let l=!1,u=!1,c=!1,f=null,a=null;if("string"==typeof t){const t=new Set,r=[],i=[],s=[],h=[],d=[],p=[],$=new Map,w=new Map;if(e){let n=0;for(const i in e)$.set(i,n++),i.startsWith(ws)?(s.push(i),t.add(vr(i.slice(8)))):i.startsWith(bs)?d.push(i):null!==Ss(i)?r.push(i):i===ys?a=e[i]:i===ms&&(f=e[i])}if(n){let e=0;for(const r in n)w.set(r,e++),r.startsWith(ws)?(h.push(r),t.add(vr(r.slice(8)))):r.startsWith(bs)?p.push(r):null!==Ss(r)?i.push(r):r===ys?a=n[r]:r===ms&&(f=n[r])}if(e){const n=e;e=gs(e,s,d,t,u),u=u||e!==n,e=ks(e,r,$,t,u),u=u||e!==n}if(n){const e=n;n=gs(n,h,p,t,c),c=c||n!==e,n=ks(n,i,w,t,c),c=c||n!==e,l=l||i.length>0}if(a||f)if(c||(n={...n},c=!0),n||={},a){n&&vs.call(n,ys)&&delete n[ys],e&&vs.call(e,ys)&&(u||(e={...e},u=!0),delete e[ys]),n.checked=a;const t=Gc(null,"_chk",y,null,[a]);if(e&&vs.call(e,"q-e:input")){u||(e={...e},u=!0);const t=e["q-e:input"];delete e["q-e:input"],l=ps(n,"q-e:input",t)||l}l=ps(n,"q-e:input",t)||l}else if(f){n&&vs.call(n,ms)&&delete n[ms],e&&vs.call(e,ms)&&(u||(e={...e},u=!0),delete e[ms]),n.value=f;const t=Gc(null,"_val",m,null,[f]);if(e&&vs.call(e,"q-e:input")){u||(e={...e},u=!0);const t=e["q-e:input"];delete e["q-e:input"],l=ps(n,"q-e:input",t)||l}l=ps(n,"q-e:input",t)||l}n&&vs.call(n,"className")&&(c||(n={...n},c=!0),n.class=n.className,n.className=void 0,l=!0,re&&fe(`jsx${o?` ${o.fileName}${o?.lineNumber?":"+o.lineNumber:""}`:""}: \`className\` is deprecated. Use \`class\` instead.`)),e&&vs.call(e,"className")&&(u||(e={...e},u=!0),e.class=e.className,e.className=void 0,re&&fe(`jsx${o?` ${o.fileName}${o?.lineNumber?":"+o.lineNumber:""}`:""}: \`className\` is deprecated. Use \`class\` instead.`))}if(n)for(const t in n)"children"===t?(c||(n={...n},c=!0),r||=n.children,delete n.children):"key"===t?(c||(n={...n},c=!0),s||=n.key,delete n.key):(e&&t in e||null===n[t])&&(c||(n={...n},c=!0),delete n[t]);return new ds(t,n,e,r,i,s,l||!0,o)},Rs=(t,n,e,r)=>Ps(t,n,r),Cs=(t,n,e,r,i)=>Ps(t,{...e,...n},i),Es=(t,n,e,r,i,s)=>Ps(t,{...e,...n,children:r},s),Ts=t=>t.children,Ps=(t,n,e,r,i)=>qs(t,n,null,null,0,e,i),js=Ps,_s=Ps,Os=t=>t.children,As=(t,n)=>new ds(Ts,null,null,t.children,0,n),Ms=(t,n,e,r,i)=>{const s=Yn(t.Mt,e||n,t);let o;e&&(s.It=p(e,":"),s.$=t),t.ensureProjectionResolved(n);let l=!1;if(null===r&&(r=t.getHostProp(n,Ee)),xe(r))"children"in(i=i||t.getHostProp(n,tr)||Di)&&delete i.children,o=r.getFn(s);else if(hf(r)){const t=r;o=()=>Hn(s,t,[i||Di,null,0])}else{l=!0;const t=r;o=()=>Hn(s,t,[i||Di])}const u=import.meta.env.TEST?Or():Zn,c=(e=0)=>pr(()=>(l||(t.setHostProp(n,er,null),t.setHostProp(n,lr,null)),e>0&&ko(n)&&un(t,n),$r(o(i),t=>$r(s.Ft,()=>t))),r=>{if(u&&!l&&4&n.dirty&&(n.dirty&=-5,e<hr))return c(e+1);const i=t.getHostProp(n,or);return i?v(r,i):r},t=>{if(dr(t)&&e<hr)return t.then(()=>c(++e));if(e>=hr)throw Error("Max retry count of component execution reached");throw t});return c()},Ns=t=>xs(Ts,null,{[_e]:""},t.children,0,t.name??""),Is=Symbol(),Fs=()=>null,Ds=()=>null,zs=t=>t.children,Ls=(t,n)=>Ps(As,{children:Ps(Us,t)},n),Us=()=>null;let Ws=null,Qs=null;const Vs=(t,n=[],e={})=>{let r=null;const i=t[_i];if(i)for(const t in i)n.includes(t)||(r||={},r[t]=i[t]);const s=e,o=t[Oi];for(const t in o)n.includes(t)||(s[t]=o[t]);return $(new ds(null,s,r,null,0,null))};class Js{target;constructor(t){this.target=t}}class Bs{target;constructor(t){this.target=t}}class Hs{target;text;constructor(t,n){this.target=t,this.text=n}}class Ys{target;parent;beforeTarget;constructor(t,n,e){this.target=t,this.parent=n,this.beforeTarget=e}}class Xs{target;attrName;attrValue;scopedStyleIdPrefix;isSvg;constructor(t,n,e,r,i){this.target=t,this.attrName=n,this.attrValue=e,this.scopedStyleIdPrefix=r,this.isSvg=i}}const Gs=t=>new Js(t),Ks=t=>new Bs(t),Zs=(t,n)=>new Hs(t,n),to=(t,n,e)=>new Ys(t,n,e),no=(t,n,e,r=null,i=!1)=>new Xs(t,n,e,r,i),eo=t=>{if(t.Cn){try{t.Cn()}catch(t){he(!1,t)}t.Cn=null}},ro=Object.prototype.hasOwnProperty,io=(t,n,e,r,i,s,o)=>N(M(o,t,n,i,s),e,r),so=(t,n,e,r,i,s,o,l,u=!1,c)=>N(M(c,t,n,o,l),e,r,i,s,u),oo=(t,n,e,r,i)=>{if(br(e))return void it(e,r,n.node,n,t);if(e===rr||e===ir)return jo(n,e,r),void(n.flags|=192);const s=r;if("ref"===e&&K(r,n.node,i))return;const o=n[si]?.get(e);if(Dl(r)){const i=r instanceof cs?r.it():r;if(o?.backRef?.has(i))return;o&&cn(t.$,o),r=Z(t.$,n,e,i,t.tt.rt)}else o&&cn(t.$,o);if(dr(r)){const i=n,o=r.then(n=>{O(t._,i,e,n,t.M,s)});return void t.L.push(o)}O(t._,n,e,r,t.M,s)};let lo=null;const uo=(t,n,e)=>{lo||(lo=t.insertBefore),lo.call(t,n,e)},co=(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,fo=t=>"false"!==t&&!!t,ao=(ho=Ut,()=>queueMicrotask(ho));var ho;const po=Ar(Ut);let $o=!1;const mo=[],yo=(t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}},wo=t=>{let n=null;return e=>(n||(n=yo(e,t)),n.call(e))},bo=(t,n,e=null)=>{const r=new di(e,-4087,null,null,null,null,null,null,t,n);return t.vNode=r,r},vo=t=>{const n=new di(null,-4095,null,null,null,null,void 0,void 0,t,void 0);return t.vNode=n,n},go=(t,n)=>new pi(-4084,null,null,null,null,t,n),So=()=>new hi(null,-4094,null,null,null,null,null,null),ko=t=>t instanceof ai,xo=t=>!(1&~t.flags),qo=t=>!!(5&t.flags),Ro=t=>!(1&~t.flags)&&void 0!==t.firstChild&&void 0!==t.lastChild,Co=t=>!(4&~t.flags),Eo=t=>!(2&~t.flags),To=t=>!(2&~t.flags)&&null!==Po(t,je,null),Po=(t,n,e)=>{if(xo(t)||Eo(t)){const r=t.props?.[n]??null;if("string"==typeof r&&e){const i=e(r);return t.props[n]=i,i}return r}return null},jo=(t,n,e)=>{null==e&&t.props?delete t.props[n]:(t.props||={},t.props[n]=e)},_o=(t,n,e,r,i=null)=>{xo(n)&&(import.meta.env.TEST&&i&&jo(n,ar,i),jo(n,e,r),Zt(t,no(n.node,e,r,i,!!(512&n.flags))))},Oo=t=>{if(t.key)return;const n=fl(t.node,cr);n&&(t.key=n)},Ao=(t,n)=>{if(1==(15&n.flags)){const e=n;e.flags^=8;const r=e.node,i=r.attributes;let s=!1;for(let n=0;n<i.length;n++){const o=i[n],l=o.name;if(br(l))tn(o,l,t,r);else if(s);else if(l!==cr&&l)if(l.startsWith(Ve)){const t=o.value;"html"===t?jo(e,"dangerouslySetInnerHTML",r.innerHTML):"text"===t&&"value"in r&&jo(e,"value",r.value)}else jo(e,l,o.value);else{const t=o.value;t&&(e.key=t),s=!0}}null===Po(e,rr,null)&&null===Po(e,ir,null)||(n.flags|=64)}},Mo=t=>{if("_run"===t.bt){const n=t.getCaptured()?.[0];if(xe(n))return n}return t},No=(t,n,e)=>{let r=t;for(;e&&r&&Eo(r);){const t=n?r.firstChild:r.lastChild;if(!t)break;if(5&t.flags)return t;r=t}for(;r;){let t=n?r.nextSibling:r.previousSibling;if(t&&5&t.flags)return t;if(!t){let e=r.parent;if(e&&!Eo(e))return null;for(;e&&!(t=n?e.nextSibling:e.previousSibling);)if(e=e.parent,e&&!Eo(e))return null;if(!t)return null;if(Co(t)&&e&&xo(e))return null}for(;t;){if(r=t,5&r.flags&&Rl(r))return r;t=n?r.firstChild:r.lastChild}}return null},Io=(t,n)=>{const e=n;if(!(8&e.flags)){const r=Ko(n,!0),i=e.node,s=vl(r);let o=No(n,!1,!0);const l=No(n,!0,!0),u=i||(l&&xo(l)?l.node:l?.node)||null;let c=u;for(;o&&Co(o);){if(!(8&o.flags)){const n=s.createTextNode(o.text);Zt(t,to(n,r,c)),c=n,o.node=n,o.flags|=8}o=No(o,!1,!0)}for(o=n;o&&Co(o);){const n=No(o,!0,!0),e=!n||!Co(n);if(!(8&o.flags)){if(e&&i)Zt(t,Zs(i,o.text));else{const n=s.createTextNode(o.text);Zt(t,to(n,r,u)),o.node=n}o.flags|=8}o=n}}},Fo=(t,n)=>{let e=t;const r=t.node,{qVNodeRefs:i}=r;let s,o=-1;if("string"==typeof n)o=parseInt(n),s=i.get(o);else{s=n;const t=s.vNode;if(t)return t}if(ko(s))e=s;else{let t=s;const n=[s];for(;t&&t!==r&&!t.vNode;)t=t.parentElement,n.push(t);t.vNode&&(e=t.vNode);for(let t=n.length-2;t>=0;t--)e=Lo(e,n[t]);-1!=o&&(s.vNode=e,i.set(o,e))}if("string"==typeof n){const t=n.length;let r=Uo(n,t),i=0;for(;r<t;){const t=n.charCodeAt(r);i*=26,t>=97?i+=t-97:(i+=t-65,e=Do(e,i),i=0),r++}}return e},Do=(t,n)=>{let e=sl(t);for(;e.flags>>>12!==n;)e=e.nextSibling;return e},zo=[],Lo=(t,n)=>{let e=sl(t);for(;e&&(!(e instanceof di)||e.node!==n);)if(Eo(e)){const t=e.nextSibling,n=sl(e);n?(t&&zo.push(t),e=n):e=t||(zo.length?zo.pop():null)}else{const t=e.nextSibling;e=t||t||zo.pop()}for(;zo.length;)zo.pop();return e},Uo=(t,n)=>{let e=0;for(;e<n;){if(!(t.charCodeAt(e)<=57))return e;e++}return n},Wo=(t,n,e,r)=>{const i=n.createElement("errored-host");r&&r instanceof Error&&(i.props={error:r}),i.setAttribute("q:key","_error_");const s=bo(i,"errored-host");if(qo(e))Go(t,s,e,null);else{const n=[];nn(t,e,t=>{n.push(t)});for(let e=0;e<n.length;e++)Go(t,s,n[e],null)}return s},Qo=Dt,Vo=(t,n,e,r)=>{const i=xo(n);i&&ol(n);const s=e.parent;if(e===r){if(s)return;r=null}Yo(t,s,n,e);const o=e.node,l=32&n.flags,u=i?n.node:Ko(n,!1);u&&!l&&Zt(t,to(o,u,Bo(t,n,r)?.node??null)),Ho(n,e,r),l&&(e.flags|=32)},Jo=(t,n,e,r)=>{const i=xo(n);i&&ol(n);const l=e.parent;if(e===r){if(l)return;r=null}Yo(t,l,n,e);const u=32&n.flags,c=!i&&2048&n.flags?n.props?.[Te]:null,f=c?null:i?n:Zo(n,!1),a=c||f?.node,h=Bo(t,n,r),d=h?.node??null;if(To(e)&&f&&1536&f.flags){const i=Zo(n,!1),l=Bo(t,n,r)?.node??null,{elementNamespace:u,elementNamespaceFlag:c}=o(i,e);nn(t,e,n=>{if(Co(n))Zt(t,to(n.node,a,l));else{if((1536&n.flags)!==c){const t=((t,n,e,r)=>{let i=t,l=null,u=null,c=null;for(;i;){let f=null,a=null;if(xo(i)){f=i.node;const t=el(i),l=i.parent,h=null==u?n:l&&Zo(l,!0);if(h){const t=o(h,el(i));e=t.elementNamespace,r=t.elementNamespaceFlag}const d=sl(i);if(a=s(f,t,e,!d),f.remove(),null==u&&(u=a),c&&c.appendChild(a),i.node=a,i.flags&=-1537,i.flags|=r,d){i=d,c=a;continue}if(ul(f)){const t=Wn(f);if(t){const n=sl(t.rootVNode);if(n){i=n,c=a;continue}}}}if(i===t)return u;const h=i.nextSibling;if(h)i=h;else{for(l=i.parent;l;){if(l===t)return u;const n=l.nextSibling;if(n)return i=n,u;l=l.parent}if(null==l)return u}}return u})(n,i,u,c);t&&(n.node=t)}Zt(t,to(n.node,a,l))}})}else a&&!u&&nn(t,e,n=>{Zt(t,to(n.node,a,d))});Ho(n,e,r),u&&(e.flags|=32)},Bo=(t,n,e)=>{let r=null;return null==e?Eo(n)&&(r=No(n,!0,!1)):r=Eo(e)?No(e,!0,!0):e,r&&Co(r)&&Io(t,r),r},Ho=(t,n,e)=>{const r=e?e.previousSibling:t.lastChild;e?e.previousSibling=n:t.lastChild=n,r?r.nextSibling=n:t.firstChild=n,n.previousSibling=r,n.nextSibling=e,n.parent=t},Yo=(t,n,e,r)=>{n&&(r.previousSibling||r.nextSibling||n!==e)&&tl(t,n,r,!1)},Xo=(t,n)=>{let e=n;for(;e&&Eo(e);)e=e.lastChild;!e||!Co(e)||8&e.flags||Io(t,e)},Go=(t,n,e,r)=>{qo(e)?Vo(t,n,e,r):Jo(t,n,e,r)},Ko=(t,n)=>{for(;t&&!xo(t);){if(2048&t.flags)return t.props?.[Te];t=t.parent||(n?t.slotParent:null)}return t?t.node:null},Zo=(t,n)=>{for(;t&&!xo(t);)t=t.parent||(n?t.slotParent:null);return t},tl=(t,n,e,r)=>{if(Co(e)&&Io(t,e),r){if(null!==Po(n,fr,null))return;qo(e)?Zt(t,Gs(e.node)):nn(t,e,n=>{Zt(t,Gs(n.node))})}const i=e.previousSibling,s=e.nextSibling;i?i.nextSibling=s:n.firstChild=s,s?s.previousSibling=i:n.lastChild=i,e.previousSibling=null,e.nextSibling=null},nl=(t,n,e,r=!0)=>{const i=Ko(n,!0);if(i&&r)if(qo(n))Zt(t,Ks(n.node));else{const e=Zo(n,!1);e&&e.firstChild===n&&e.lastChild===n?Zt(t,Ks(i)):nn(t,n,n=>{Zt(t,Gs(n.node))})}const s=e.previousSibling;s?s.nextSibling=null:n.firstChild=null,n.lastChild=s},el=t=>{const n=t;let e=n.elementName;if(void 0===e){const t=n.node,r=bl(t).toLowerCase();e=n.elementName=r,n.flags|=(t=>{switch(wl(t)){case Ye:return 512;case Xe:return 1024;default:return 0}})(t)}return e},rl=t=>{let n=t.text;return void 0===n&&(n=t.text=t.node.nodeValue),n},il=(t,n,e)=>{Io(t,n),n.text=e,Zt(t,Zs(n.node,e))},sl=t=>{if(Co(t))return null;let n=t.firstChild;return void 0===n&&(n=ol(t)),n},ol=n=>{const e=n;let r=e.firstChild;return void 0===r&&(r=e.parent&&ul(e.node)?e.firstChild=e.lastChild=null:(n=>{const e=n.node,r=yl(e),i=vl(e)?.qVNodeData?.get(e);return((n,e,r,i)=>{if(Oo(n),i){if(i.charCodeAt(0)===Ce&&i.charCodeAt(1)===Ce){const t=(t=>{const n=t.indexOf("||",2);return{elementVNodeData:t.substring(2,n),virtualVNodeData:t.substring(n+2)}})(i);i=t.virtualVNodeData;const e=gl(n,r,t.elementVNodeData);if(!i)return e}return((n,e,r,i)=>{let s=0,o=null,l=null,u=null;const c=t=>{t.flags=4095&t.flags|s<<12,s++,l&&(l.nextSibling=t),t.previousSibling=l,t.parent=n,o||(n.firstChild=o=t),l=t};let f=0,a=null,h=null;const d=t=>{const n=jl(t);return!n||n&&ln(t)};let p=null;if(Sl(e,($,m,y,w,b)=>{if(Cl($())){for(;d(i);)if(!(i=pl(i)))throw Se(27,[e,$(),b]);a=null,u=null;let t=0;for(;Cl($());)t*=10,t+=y()-48;for(;t--;){const n=vo(i);for(Oo(n),c(n),i=pl(i);jl(i)&&ln(i);)if(!(i=pl(i))&&t>0)throw Se(27,[e,$(),b])}}else if(59===$())jo(n,Ne,m());else if(60===$())(p||=[]).push(n),jo(n,Ee,m());else if(61===$()){h||(h=Un(r));const t=m();h.jn(parseInt(t),n)}else if(62===$())jo(n,tr,m());else if(64===$()){let e;w(b+1)===Ce?(y(),e=decodeURI(t(m())),y()):e=m(),n.key=e}else if(91===$())jo(n,nr,m());else if(94===$())jo(n,er,m());else if(96===$())h||(h=Un(r)),sn(n,m(),h);else if(63===$())h||(h=Un(r)),n.slotParent=Fo(h.rootVNode,m());else if(93===$())jo(n,Ie,m());else if(123===$())y(),c(So()),Tl.push(n,o,l,u,s),s=0,n=l,o=l=null;else if($()===Ce){const e=t(m()),r=t(m());jo(n,e,r)}else if(125===$())y(),n.lastChild=l,s=Tl.pop(),u=Tl.pop(),l=Tl.pop(),o=Tl.pop(),n=Tl.pop();else if(126===$()){const e=t(m());jo(n,je,e)}else{for(;jl(i)&&ln(i);)i=pl(i);const t=i&&3===al(i)?i:null;null===a&&(a=t?t.nodeValue:null,f=0);let n=0;for(;El($());)n+=y()-97,n*=26;n+=y()-65;const e=null===a?"":a.substring(f,f+n);c(u=((t,n,e)=>new pi(-4092,null,t,null,null,n,e))(u,t,e)),f+=n}}),p){h||(h=Un(r));for(let t=0;t<p.length;t++)h.ensureProjectionResolved(p[t]);p=null}return n.lastChild=l,o})(n,i,e,r)}return gl(n,r)})(n,e,r,i)})(e)),r};let ll=null;const ul=t=>(ll||(ll=t.hasAttribute),ll.call(t,Ve));let cl=null;const fl=(t,n)=>(cl||(cl=t.getAttribute),cl.call(t,n)),al=wo("nodeType"),hl=t=>{const n=al(t);return 3===n||1===n};let dl=null;const pl=t=>{for(dl||(dl=yo(t,"nextSibling")),ml||(ml=yo(t,"firstChild"));t;)if(null!==(t=dl.call(t))){const n=al(t);if(3===n||1===n)break;if(8===n){const n=t.nodeValue;if(n?.startsWith(We))return rn(t,Le,dl,ml);if(t.nodeValue?.startsWith(Ue))return rn(t,[Le,Qe],dl,ml);if(n?.startsWith(Ve))for(;t&&(t=dl.call(t))&&(8!==al(t)||!t.nodeValue?.startsWith(Je)););}}return t},$l=wo("parentNode");let ml=null;const yl=t=>{if(ml||(ml=yo(t,"firstChild")),(t=t&&ml.call(t))&&8===al(t)&&t.nodeValue?.startsWith(We))return dl||(dl=yo(t,"nextSibling")),rn(t,Le,dl,ml);for(;t&&!hl(t);)t=pl(t);return t},wl=wo("namespaceURI"),bl=wo("nodeName"),vl=wo("ownerDocument"),gl=(t,n,e)=>{let r=null;const i=()=>{for(;jl(s)&&ln(s);)s=pl(s)};let s=n;i();let o=null;for(;s;){const n=al(s);let e=null;3===n?e=go(s,s.textContent??void 0):1===n&&(e=vo(s),Oo(e)),e&&(e.parent=t,o&&(o.nextSibling=e),e.previousSibling=o,o=e),r||(t.firstChild=r=o),s=pl(s),i()}if(t.lastChild=o||null,t.firstChild=r,e){let n=null;Sl(e,(e,r)=>{if(61===e()){n||(n=Un(t.node));const e=r();n.jn(parseInt(e),t)}else 96===e()?(n||(n=Un(t.node)),sn(t,r(),n)):r()})}return r},Sl=(t,n)=>{let e=0,r=0,i=0;const s=n=>n<t.length?t.charCodeAt(n):0,o=()=>0!==i?i:i=s(e),l=()=>(r=o(),i=0,e++,r),u=()=>{l();const n=e;for(;o()<=58&&0!==i||92===i||95===i||i>=65&&i<=90||i>=97&&i<=122;)l();return t.substring(n,e)};for(;0!==o();)n(o,u,l,s,e)},kl=(t,n)=>{if(3&n.flags){Ao(t,n);const e=[],r=n.props;if(r)for(const t in r)t.startsWith(cr)||e.push(t);return e}return[]},xl=(t,n)=>{let e=ql(t);for(;e;){if(e===n)return!0;e=ql(e)}return!1},ql=t=>t.parent||t.slotParent,Rl=t=>null===t||Eo(t)?null:t.node,Cl=t=>48<=t&&t<=57,El=t=>97<=t&&t<=122,Tl=[],Pl=t=>{const n=t.flags;if(1&n)return 1;if(2&n)return 11;if(4&n)return 3;throw Se(26,[n])},jl=t=>t&&"object"==typeof t&&1===al(t),_l=t=>{let n=1;for(;n--;){for(;t&&(!Eo(t)||null===Po(t,Ee,null));){const e=t.slotParent,r=Eo(t)&&e;r&&n++,t=r||t.parent}n>0&&(t=t.parent)}return t},Ol=()=>{const t=Rc(),n=t.m;let e=t.$.getHostProp(n,nr);null===e&&(e=[],t.$.setHostProp(n,nr,e));let r=t.$.getHostProp(n,er);for(null===r&&(r=0),t.$.setHostProp(n,er,r+1);e.length<=r;)e.push(void 0);return{val:e[r],set:t=>(re&&ic(t),e[r]=t),i:r,iCtx:t}},Al=(t,n)=>{const{val:e,set:r,iCtx:i,i:s}=Ol();if(e)return;r(1);const o=new Nl(6|(!1===n?.deferUpdates?0:8),s,i.m,t,void 0,null);r(o);const l=i.$,{Ft:u}=i,c=$r(u,()=>Ml(o,l,i.m));dr(c)&&(i.Ft=c)},Ml=(t,n,e)=>{const r=t._n;if(r)return r;t.h&=-5;const i=t=>n.handleError(t,e);let s=null;const o=$r(((t,n)=>{const e=t.On;if(e)return e;const r=t.Cn;if(r){t.Cn=null;try{const e=r();if(dr(e)){const r=Promise.resolve(e).then(()=>{},t=>{n(t)}).finally(()=>{t.On===r&&(t.On=void 0)});return t.On=r,r}}catch(t){n(t)}}})(t,i),()=>{const r=Xn(n.Mt,e,"qTask");r.$=n;const o=t.wt.getFn(r,()=>un(n,t)),l=Ci(t,n),[u]=((t,n)=>{let e=null;return[r=>{"function"==typeof r&&(e||(e=[],t.Cn=()=>{t.Cn=null;let r=null;for(let t=0;t<e.length;t++){const i=e[t];try{const t=i();dr(t)&&(r||=[]).push(t.catch(n))}catch(t){n(t)}}if(e=null,r?.length)return Promise.all(r).then(()=>{})}),e.push(r))},e??[]]})(t,i),c={track:l,cleanup:u};return pr(()=>o(c),u,r=>{if(dr(r))return r.then(()=>(t._n===s&&(t._n=null),Ml(t,n,e)));i(r)})});return dr(o)?(s=o.finally(()=>{t._n===s&&(t._n=null)}),t._n=s,s):o};class Nl extends oi{h;Yt;ct;wt;At;Cn;On;_n=null;constructor(t,n,e,r,i,s){super(),this.h=t,this.Yt=n,this.ct=e,this.wt=r,this.At=i,this.Cn=s}}const Il=t=>t instanceof Nl,Fl=t=>{if(!t.resolved)throw t.resolve()},Dl=t=>t instanceof Ei,zl=(t,n)=>{t.add(n)},Ll=(t,n)=>{(t.backRef||=new Set).add(n)},Ul=(t,n)=>{if(n?.serializationCtx){const e=t.consumer,r=t.property;let i=null;Il(e)?i=e.wt:e instanceof Ti?i=e.nn:":"===r&&(i=n.getHostProp(e,Ee)),i&&n.serializationCtx.jt.add(i)}},Wl=(t,n,e)=>{const r=!import.meta.env.TEST||!Or();if(e){const i=e=>{const i=e.consumer,s=e.property;if(Il(i))i.h|=4,Kt(t,i.ct,1);else if(i instanceof Ei)i.invalidate();else if(":"===s)Kt(t,i,4);else if("."===s)r&&(Tt(i,n),Kt(t,i,2));else{const o=e.data;if(o instanceof fs){const e=o.data,l={isConst:e.et,scopedStyleIdPrefix:e.M,value:n};if(r)((t,n,e)=>{const r=t.props||={};let i=r[wi];i||(i=new Map,r[wi]=i),i.set(n,e)})(i,s,l);else{const t=i;let n=t.getProp(wi);n||(n=new Map,t.setProp(wi,n)),n.set(s,l)}Kt(t,i,8)}}},s=Array.from(e);for(let t=0;t<s.length;t++)i(s[t])}},Ql=t=>we(t)&&"function"==typeof t[ac],Vl=t=>{let n=1;switch(t){case"never":n|=8;break;case"always":n|=16}return n},Jl=[],Bl=t=>{if($s(t)){if("function"==typeof t.type){const n=t.type[af];if(n){const[t]=n;return"Component("+t.bt+")"}return"Function("+t.type.name+")"}let n="<"+t.type;if(t.props){const e=Object.entries(t.props);for(let t=0;t<e.length;t++){const[r,i]=e[t];n+=" "+r+"="+pn(i)}const r=t.children;if(null!=r){if(n+=">",Array.isArray(r))for(let t=0;t<r.length;t++)n+=Bl(r[t]);else n+=Bl(r);n+="</"+t.type+">"}else n+="/>"}return n}return t+""},Hl=t=>t[qi],Yl=t=>t?.[xi]||null,Xl=(t,n)=>{const e=Hl(t);e&&e.force(n)},Gl=(t,n)=>{const e=Hl(t);return!!e&&(e.ut?.get(n)?.size??0)>0},Kl=t=>Yl(t)||t,Zl=t=>xi in t,tu=(t,n,e)=>{if(ye(t)&&e){let r=e.ht.get(t);return r||(r=$n(e,t,n),e.ht.set(t,r)),r}return t};class nu{h;$;ut=void 0;constructor(t,n){this.h=t,this.$=n}toString(){return"[Store]"}force(t){const n=Yl(this);Wl(this.$,this,wn(n,t,this.ut))}get(t,n){if("symbol"==typeof n)return n===xi?t:n===qi?this:t[n];const e=xc(),r=t[n];if(e){if(null===this.$){if(!e.$)return r;this.$=e.$}const i=e.It;i&&mn(t,Array.isArray(t)?Ri:n,this,i)}return"toString"===n&&r===Object.prototype.toString?this.toString:1&this.h&&we(r)&&!Object.isFrozen(r)&&!Zl(r)&&!Object.isFrozen(t)?tu(r,this.h,this.$):r}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const r=1&this.h?Kl(e):e;return n in t?r!==t[n]&&yn(n,r,t,this):yn(n,r,t,this),!0}deleteProperty(t,n){return"string"==typeof n&&delete t[n]&&(Array.isArray(t)||Wl(this.$,this,wn(t,n,this.ut)),!0)}has(t,n){if(n===xi)return!0;if("string"==typeof n){const e=xc();if(e){const r=e.It;r&&mn(t,Array.isArray(t)?Ri:n,this,r)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=xc(),e=n?.It;return e&&mn(t,Ri,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}}}const eu=Symbol(),ru=[void 0,null,!0,!1,"",Fi,Di,Si,Ri,Ii,Ns,Os,NaN,1/0,-1/0,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER-1,Number.MIN_SAFE_INTEGER],iu=["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"],su=["Plain","RootRef","ForwardRef","Constant","Array","Object","URL","Date","Regex","QRL","VNode","RefVNode","BigInt","URLSearchParams","ForwardRefs","TemporalDuration","TemporalInstant","TemporalPlainDate","TemporalPlainDateTime","TemporalPlainMonthDay","TemporalPlainTime","TemporalPlainYearMonth","TemporalZonedDateTime","Error","Promise","Set","Map","Uint8Array","Task","Component","Signal","WrappedSignal","ComputedSignal","AsyncSignal","SerializerSignal","Store","FormData","JSXNode","PropsProxy","SubscriptionData","EffectSubscription"];class ou{An;Mn=0;qt=[];Nn=0;In=new Set;Fn=new Map;Dn;zn=new Map;Ot;Ln="undefined"!=typeof Temporal;constructor(t){this.An=t,this.Ot=t.Ot}async serialize(){await this.outputRoots()}outputArray(t,n,e){this.Ot.write("[");let r,i=!1;if(n)r=t.length;else{for(r=t.length-1;r>=0&&void 0===t[r];)r--;r++}for(let n=0;n<r;n++)i?this.Ot.write(ei):i=!0,e(t[n],n);this.Ot.write("]")}stringNeedsJsonEscape$(t){for(let n=0;n<t.length;n++){const e=t.charCodeAt(n);if(e<32||34===e||92===e)return!0}return!1}maybeNumericObjectKey$(t){if(0===t.length||t.length>=8)return t;let n=0;if(45===t.charCodeAt(0)){if(1===t.length)return t;n=1}const e=t.charCodeAt(n);if(e<49||e>57)return t;for(n++;n<t.length;n++){const e=t.charCodeAt(n);if(e<48||e>57)return t}return+t}output(t,n,e){if("number"==typeof n)this.Ot.write(t+ei+n);else if("string"==typeof n){const e=this.stringNeedsJsonEscape$(n)?JSON.stringify(n):'"'+n+'"';this.Ot.write(t+ei);let r=-1,i=0;for(;-1!==(r=e.indexOf("</",i));)this.Ot.write(e.slice(i,r)),this.Ot.write("<\\/"),i=r+2;this.Ot.write(0===i?e:e.slice(i))}else this.Ot.write(t+ei),this.outputArray(n,!!e,(t,n)=>{this.writeValue(t,n)})}getSeenRefOrOutput(t,n,e){let r=this.An.getSeenRef(t);const i=!e&&this.Fn.get(t);if(!r){if(e)return!0;if("number"!=typeof i)return this.An.Un(t,this.Dn,n);r=this.An.kt(t,!0)}r.Dn&&(this.Dn?this.An.Wn(r):(this.An.Wn(r,n),t=this.An.Qn[n])),"number"==typeof i&&(this.qt[i]=r.Yt,this.Fn.delete(t));const s=t instanceof du?t.Vn:r.Yt;if(!this.Dn&&s===n)return r;this.output(1,s)}writeValue(t,n){if(uc(t))this.output(3,0);else switch(typeof t){case"undefined":this.output(3,0);break;case"boolean":this.output(3,t?2:3);break;case"number":Number.isNaN(t)?this.output(3,12):Number.isFinite(t)?t===Number.MAX_SAFE_INTEGER?this.output(3,15):t===Number.MAX_SAFE_INTEGER-1?this.output(3,16):t===Number.MIN_SAFE_INTEGER?this.output(3,17):this.output(0,t):this.output(3,t<0?14:13);break;case"string":0===t.length?this.output(3,4):(t.length<4||this.getSeenRefOrOutput(t,n))&&this.output(0,t);break;case"bigint":(t<1e4&&t>-1e3||this.getSeenRefOrOutput(t,n))&&this.output(12,""+t);break;case"symbol":t===Si?this.output(3,7):t===Ri?this.output(3,8):t===Ii?this.output(3,9):t===eu&&this.output(3,0);break;case"function":if(t===Ns)this.output(3,10);else if(t===Os)this.output(3,11);else if(xe(t)){if(this.getSeenRefOrOutput(t,n)){const[n,e,r]=bn(this.An,t,!0);let i;if(""!==n){i=`${this.An.kt(n)}#${this.An.kt(e)}${r?"#"+r:""}`;const s=this.zn.get(i);if(s){const t=this.An.kt(s);return void this.output(1,t)}this.zn.set(i,t)}else i=+e;this.output(9,i)}}else{if(!hf(t))throw Se(34,[""+t]);{const[n]=t[af];this.An.Jn.add(n.bt),this.output(29,[n])}}break;case"object":if(t===Fi)this.output(3,5);else if(t===Di)this.output(3,6);else if(null===t)this.output(3,1);else if(t instanceof du)this.output(1,t.Vn);else{const e=this.getSeenRefOrOutput(t,n);if(e){const n=this.Dn;this.Dn=e,this.writeObjectValue(t),this.Dn=n}}break;default:throw Se(20,[typeof t])}}writeObjectValue(t){if(Bi(t)){const n=t[Ai];this.output(38,[au(n),n.varProps,n.constProps,t[Mi].ut])}else if(t instanceof fs)this.output(39,[t.data.M,t.data.et]);else if(t instanceof ki)this.output(40,[t.consumer,t.property,t.data]);else if(Zl(t)){const n=Hl(t),e=Yl(t),r=n.h,i=n.ut,s=[];for(const t in e){const n=this.An.ht.get(e[t]);n&&s.push(n)}const o=[e,r,i,...s];for(;void 0===o[o.length-1];)o.pop();this.output(35,o)}else if(Ql(t)){const n=t[ac](t);if(dr(n)){const t=this.resolvePromise(n,(t,n)=>new lu(34,t,n,void 0,void 0));this.output(2,t)}else{const t=this.Dn.Yt;this.Dn=this.Dn.Dn,this.writeValue(n,t)}}else if((t=>{const n=Object.getPrototypeOf(t);return null==n||n===Object.prototype||n===Array.prototype})(t))if(Array.isArray(t))this.output(4,t);else{const n=[];for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];uc(r)||n.push(this.maybeNumericObjectKey$(e),r)}this.output(5,n.length?n:0)}else if(this.An.Bn(t))t.Hn.vnodeData[0]|=16,this.output(11,t.Hn.id);else if(t instanceof Ei){if(t instanceof Yi){const n=((t,n)=>n===Si?n:$r(t.nn.resolved||t.nn.resolve(),t=>{let e;return"function"==typeof t&&(t=t()),t.serialize?e=t.serialize(n):"object"==typeof n&&ac in n&&(e=n[ac](n)),void 0===e&&(e=Si),e}))(t,t.Zt);if(dr(n)){const e=this.resolvePromise(n,(n,e)=>new lu(34,n,e,t.ut,t.nn));this.output(2,e)}else this.output(34,[t.nn,t.ut,n]);return}if(t instanceof cs)this.output(31,[...Sn(this.An,t),t.h,t.m,...t.ut||[]]);else if(t instanceof Ti){let n=t.Zt;const e=16&t.h,r=8&t.h,i=1&t.h,s=uc(t.Zt),o=t instanceof ji,l=o&&0!==t.Rt?t.Rt:void 0,u=o&&1!==t.$n?t.$n:void 0,c=o&&0!==t.yn?t.yn:void 0,f=o&&-25&t.h||void 0;i||s?n=Si:e?n=t.Zt:r&&(n=Si);const a=[t.nn,t.ut];o&&(a.push(t.dt,t.$t,t.dn),a.push(f||void 0)),n===Si&&void 0===l&&void 0===u&&void 0===c||a.push(void 0===n?eu:n),o&&(a.push(l),a.push(u),a.push(c)),this.output(o?33:32,a)}else{const n=t.Zt,e=[void 0===n?eu:n];t.ut&&e.push(...t.ut),this.output(30,e)}}else if(t instanceof URL)this.output(6,t.href);else if(t instanceof Date)this.output(7,Number.isNaN(t.valueOf())?"":t.valueOf());else if(this.Ln&&t instanceof Temporal.Duration)this.output(15,t.toJSON());else if(this.Ln&&t instanceof Temporal.Instant)this.output(16,t.toJSON());else if(this.Ln&&t instanceof Temporal.PlainDate)this.output(17,t.toJSON());else if(this.Ln&&t instanceof Temporal.PlainDateTime)this.output(18,t.toJSON());else if(this.Ln&&t instanceof Temporal.PlainMonthDay)this.output(19,t.toJSON());else if(this.Ln&&t instanceof Temporal.PlainTime)this.output(20,t.toJSON());else if(this.Ln&&t instanceof Temporal.PlainYearMonth)this.output(21,t.toJSON());else if(this.Ln&&t instanceof Temporal.ZonedDateTime)this.output(22,t.toJSON());else if(t instanceof RegExp)this.output(8,""+t);else if(t instanceof Error){const n=[t.message];n.push(...Object.entries(t).flat()),this.output(23,n)}else if(this.An.Yn(t)){const n=this.An.kt(t);this.An.Xn(t,"q:id",n+""),this.output(10,t.id);const e=t.vnodeData;if(e&&(uu(e,t=>this.An.kt(t)),e[0]|=16),t.children){const n=t.children.length;for(let e=0;e<n;e++){const n=t.children[e].vnodeData;n&&(n[0]|=16)}}}else if("undefined"!=typeof FormData&&t instanceof FormData){const n=[];for(const[e,r]of t.entries())"string"==typeof r&&n.push(e,r);this.output(36,n)}else if(t instanceof URLSearchParams)this.output(13,""+t);else if(t instanceof Set)this.output(25,[...t.values()]);else if(t instanceof Map){const n=[];for(const[e,r]of t.entries())n.push(e,r);this.output(26,n)}else if($s(t)){const n=[t.type,t.key,t.varProps,t.constProps,t.children,t.toSort||void 0];for(;void 0===n[n.length-1];)n.pop();this.output(37,n)}else if(t instanceof Nl){const n=[t.wt,t.h,t.Yt,t.ct,t.At];for(;void 0===n[n.length-1];)n.pop();this.output(28,n)}else if(dr(t)){const n=this.resolvePromise(t,(t,n)=>new lu(24,t,n));this.output(2,n)}else if(t instanceof lu)if(34===t.Gn)if(t.wt)this.output(34,[t.wt,t.ut,t.Kn]);else{if(!t.Zn)throw console.error(t.Kn),Se(33);{const n=this.Dn.Yt;this.Dn=this.Dn.Dn,this.writeValue(t.Kn,n)}}else this.output(24,[t.Zn,t.Kn]);else if(t instanceof Uint8Array){let n="";const e=t.length;for(let r=0;r<e;r++)n+=String.fromCharCode(t[r]);const r=btoa(n).replace(/=+$/,"");this.output(27,r)}else if(t instanceof fu){const n=t.te;if(this.getSeenRefOrOutput(n,this.Dn.Yt,!0)){let t=this.Fn.get(n);void 0===t&&(t=this.Nn++,this.Fn.set(n,t),this.qt[t]=-1),this.output(2,t)}}else{if(!ko(t))throw Se(20,[typeof t]);this.output(3,0)}}resolvePromise(t,n){const e=this.Nn++;return t.then(r=>{this.In.delete(t),this.qt[e]=this.An.kt(n(!0,r))}).catch(r=>{this.In.delete(t),this.qt[e]=this.An.kt(n(!1,r))}),this.In.add(t),e}async outputRoots(){this.Ot.write("[");const{Qn:t}=this.An;for(;this.Mn<t.length||this.In.size;){0!==this.Mn&&this.Ot.write(ei);let n=!1;for(;this.Mn<t.length;this.Mn++)n?this.Ot.write(ei):n=!0,this.writeValue(t[this.Mn],this.Mn);if(this.In.size)try{await Promise.race(this.In)}catch{}}if(this.qt.length){let t=this.qt.length-1;for(;t>=0&&-1===this.qt[t];)t--;if(t>=0){this.Ot.write(ei),this.Ot.write(14+ei);const n=t===this.qt.length-1?this.qt:this.qt.slice(0,t+1);this.outputArray(n,!0,t=>{this.Ot.write(t+"")})}}this.Ot.write("]")}}class lu{Gn;Zn;Kn;ut;wt;constructor(t,n,e,r,i){this.Gn=t,this.Zn=n,this.Kn=e,this.ut=r,this.wt=i}}const uu=(t,n)=>{const e=t.length;for(let r=0;r<e;r++){const e=t[r];if(cu(e))for(const t in e){const r=e[t];null==r||"string"==typeof r||t===tr&&ni(r)||n(r)}}},cu=t=>"object"==typeof t&&null!==t&&!ni(t);class fu{te;constructor(t){this.te=t}}const au=t=>new fu(t);let hu=()=>!1;class du{Vn;constructor(t){this.Vn=t}}class pu{NodeConstructor;DomRefConstructor;St;Xn;ht;Ot;ne=new Map;ee=new Map;re=[];Qn=[];Ct=new Set;jt=new Set;Pt=new Set;Jn=new Set;ie;constructor(t,n,e,r,i,s){this.NodeConstructor=t,this.DomRefConstructor=n,this.St=e,this.Xn=r,this.ht=i,this.Ot=s,this.ie=new ou(this)}async _t(){return await this.ie.serialize()}getSeenRef(t){return this.ne.get(t)}Un(t,n,e){const r={Yt:e,Dn:n};return this.ne.set(t,r),r}se(t){const n=[];for(;t.Dn;)n.unshift(t.Yt),t=t.Dn;return n.unshift(t.Yt),n.join(" ")}Wn(t,n){const e=this.se(t);void 0===n&&(n=this.Qn.length),this.Qn[n]=new du(e),t.Dn=null,t.Yt=n}kt(t,n=!1){let e,r=this.ne.get(t);return r?(r.Dn&&this.Wn(r),e=r.Yt):(e=this.Qn.length,r={Yt:e},this.ne.set(t,r),this.Qn.push(t)),n?r:e}Yn(t){return!!this.NodeConstructor&&t instanceof this.NodeConstructor}Bn(t){return!!this.DomRefConstructor&&t instanceof this.DomRefConstructor}oe(t){const n=this.ne.get(t);return n&&(n.Dn?void 0:n.Yt)}gt(t,n,e){const r=null==t;r&&(t=e.serialized||""+e);let i=this.ee.get(t);if(void 0===i)if(i=this.re.length,this.ee.set(t,i),r)this.re.push(t);else{let e="(";for(let t=0;t<n;t++)e+=(0==t?"p":",p")+t;this.re.push(e+=")=>"+t)}return i}}const $u=(t,n,e,r,i,s)=>{if(!s){const t=[];s={write:n=>t.push(n),toString:()=>t.join("")}}return hu=n?t=>t instanceof n:()=>!1,new pu(t,n,e,r,i,s)},mu=(t,n)=>t[n],yu=(t,n=new WeakSet)=>{const e="undefined"!=typeof Temporal;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 r=Object.getPrototypeOf(t);if(Zl(t)&&(t=Yl(t)),r==Object.prototype){for(const e in t)if(!yu(Ec(mu,t,e),n))return!1;return!0}if(r==Array.prototype){for(let e=0;e<t.length;e++){if(!(e in t))return!1;if(!yu(t[e],n))return!1}return!0}if(Il(t))return!0;if(Bi(t))return!0;if(dr(t))return!0;if($s(t))return!0;if(Ql(t))return!0;if(t instanceof Error)return!0;if(t instanceof URL)return!0;if(t instanceof Date)return!0;if(e&&t instanceof Temporal.Duration)return!0;if(e&&t instanceof Temporal.Instant)return!0;if(e&&t instanceof Temporal.PlainDate)return!0;if(e&&t instanceof Temporal.PlainDateTime)return!0;if(e&&t instanceof Temporal.PlainMonthDay)return!0;if(e&&t instanceof Temporal.PlainTime)return!0;if(e&&t instanceof Temporal.PlainYearMonth)return!0;if(e&&t instanceof Temporal.ZonedDateTime)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(t instanceof fs)return!0;if(hu?.(t))return!0}else if("function"==typeof t){if(xe(t)||hf(t)||t===Ns||t===Os)return!0}else if(t===Ii||t===Si||t===Ri)return!0;return!1},wu=(t,n)=>{let e=ko(t)?on.call(t,1,"",!0).replaceAll(/\n.*/gm,""):"function"==typeof t?t+"":(t=>{const n=new WeakSet;return JSON.stringify(t,(t,e)=>{if(we(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 bu=!1;const vu=(t,n=!1,e="",r=20)=>{const i=n?"[31m":"",s=n?"[0m":"",o=""===e,l=[];for(let o=0;o<t.length;o++){if(r&&o>2*r){l.push("...");break}const u=t[o];let c=t[++o];if(0===u){"number"!=typeof c&&"string"!=typeof c&&(bu=!0);const t=`{${we(c)?c.constructor.name:typeof c}}`;l.push(`${i}${t}${s} ${wu(c,e+" ")}`)}else 3===u?c=Su(c):"string"==typeof c?(c=JSON.stringify(c),c.length>120&&(c=c.slice(0,120)+'"...')):14===u?c=`[\n${e} ${c.join(`\n${e} `)}\n${e}]`:Array.isArray(c)&&(c=c.length?`[\n${vu(c,n,e+" ")}\n${e}]`:"[]"),l.push(`${i}${gu(u)}${s} ${c}`)}const u=l.map((t,n)=>`${e}${o?n+" ":""}${t}`).join("\n");if(o){const n=bu?"":`(${JSON.stringify(t).length} chars)`;return bu=!1,`\n${u}\n${n}`}return u},gu=t=>su[t]||`Unknown(${t})`,Su=t=>iu[t]||`Unknown(${t})`,ku=new WeakMap,xu=new Map,qu=(t,n,e)=>{switch(n){case 0:case 14:return e;case 1:return t.k(e);case 2:if(!t.qt)return Ii;const r=t.qt[e];return-1===r||void 0===r?Ii:t.k(r);case 3:return ru[e];case 4:return Array(e.length/2);case 5:return{};case 9:{let n;if("string"==typeof e){const[r,i,s]=e.split("#");n=vn(t.k(r),t.k(i),s||null,t)}else n=vn("",e+"",null,t);return n}case 28:return new Nl(-1,-1,null,null,null,null);case 6:return new URL(e);case 7:return new Date(e);case 15:return Temporal.Duration.from(e);case 16:return Temporal.Instant.from(e);case 17:return Temporal.PlainDate.from(e);case 18:return Temporal.PlainDateTime.from(e);case 19:return Temporal.PlainMonthDay.from(e);case 20:return Temporal.PlainTime.from(e);case 21:return Temporal.PlainYearMonth.from(e);case 22:return Temporal.ZonedDateTime.from(e);case 8:const i=e.lastIndexOf("/");return RegExp(e.slice(1,i),e.slice(i+1));case 23:return Error();case 29:return ff(null);case 30:return new Ei(t,0);case 31:return new cs(t,null,null,null);case 32:return new Ti(t,null);case 33:return new ji(t,null,void 0,{});case 34:return new Yi(t,null);case 35:{const n=e,r=n[0],i=n[1],s=qu(t,r,i),o=tu(s,0,t);return Zu(r)&&xu.set(s,{t:r,v:i}),n[0]=0,n[1]=s,o}case 13:return new URLSearchParams(e);case 36:return new FormData;case 37:return new ds(null,null,null,null,0,null);case 12:return BigInt(e);case 25:return new Set;case 26:return new Map;case 24:let s,o;const l=new Promise((t,n)=>{s=t,o=n});return ku.set(l,[s,o]),l.catch(()=>{}),l;case 27:const u=e.length,c=3&u;return new Uint8Array(3*(u>>>2)+(c?c-1:0));case 38:return $(null);case 10:return xn(t,e);case 11:const f=xn(t,e);if(ko(f))return ol(f),Rl(f);throw Se(17,[typeof f]);case 39:return new fs({});case 40:return new ki(null,null,null,null);default:throw Se(18,[n])}},Ru=(t,n,e)=>{let r=null,i=null;if(ge(t))i=t;else{if(!ve(t))throw Se(7,[t]);r=t}return Gc(r,n,null,i,e)},Cu=(t,n,e)=>Gc(null,n,t,null,e),Eu=(t,n)=>Gc(null,t,null,null,n),Tu=(t,n,e)=>{const r=Eu(t,e);return r.le(n),r},Pu=(t,n,e,r)=>{const i=Ru(t,n,r);return i.le(e),i},ju=(t,n,e,r)=>{const i=Cu(t,n,r);return i.le(e),i},_u=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t),Ou=(t,n,e)=>new cs(null,t,n,e||null);class Au{ue;ht;Mt;k;Dt;ce=0;fe=null;ae=null;l=null;u=null;o=0;constructor(t,n){this.Dt=t,this.Mt=n,this.ue=ri,this.ht=new WeakMap,this.k=()=>{throw Error("Not implemented")}}trackSignalValue(t,n,e,r){return jc(t,n,e,this,r)}serializationCtxFactory(t,n,e,r){return $u(t,n,e,this.setHostProp.bind(this),this.ht,r)}ft(){0===this.o&&(this.u?.(),this.l=null)}}class Mu{}const Nu=()=>Vc,Iu=async t=>{const[n,e]=Vc,r=await n(t);return r&&"object"==typeof r?e.r?Object.assign(e.r,r):e.r=$n(n.$,r,1):e.r=r,{r:e.r}},Fu=(t,n)=>{const{val:e,set:r,iCtx:i}=Ol();if(e)return e;const s=Gc(null,"_rsc",Iu,null,[t,{}],i.$),o=Gi(s,{timeout:n?.timeout,container:i.$,concurrency:0});o.p();const l={__brand:"resource",signal:o,get value(){return o.promise().then(()=>o.error?Promise.reject(o.error):o.value.r)},get loading(){return o.loading}};return r(l),l},Du=({value:t,onResolved:n,onPending:e,onRejected:r})=>{if(dr(t))return t.then(n,r);const i=zu(t),s=i?t.signal:t;if(e&&s.loading)return e();if(r&&s.error)return r(s.error);const o=i?s.value?.r:s.value;return dr(o)?o.then(n,r):n(o)},zu=t=>t&&"resource"===t.__brand,Lu=(t,n,e)=>{Qu(e?.passive?"q-ep:":"q-e:",t,n,e)},Uu=(t,n,e)=>{Qu(e?.passive?"q-dp:":"q-d:",t,n,e)},Wu=(t,n,e)=>{Qu(e?.passive?"q-wp:":"q-w:",t,n,e)},Qu=(t,n,e,r)=>{const{isAdded:i,addEvent:s}=Vu();if(!i&&e)if(Array.isArray(n))for(let i=0;i<n.length;i++)s(t+gr(n[i]),e,r);else s(t+gr(n),e,r)},Vu=()=>{const t=Rc(),n=t.m;let e=t.$.getHostProp(n,or);null===e&&(e={},t.$.setHostProp(n,or,e));let r=t.$.getHostProp(n,lr);null===r&&(r=0),t.$.setHostProp(n,lr,r+1);let i=t.$.getHostProp(n,ur);for(null===i&&(i=[],t.$.setHostProp(n,ur,i));i.length<=r;)i.push(!1);return{isAdded:i[r],addEvent:(t,n,s)=>{i[r]=!0;let o=e[t];o||(e[t]=o={qrls:[],capture:!1,preventdefault:!1,stoppropagation:!1}),o.qrls.push(n),s?.capture&&(o.capture=!0),s?.preventdefault&&(o.preventdefault=!0),s?.stoppropagation&&(o.stoppropagation=!0)}}},Ju=function(t,n){if(!t.detail.files.some(t=>n.getAttribute("data-qwik-inspector")?.startsWith(t)))return;if("string"==typeof this){const t=Un(n);Jc(Bc(t,this))}const e=Vc[0];Kt(Un(n),e,4);const r=n.ownerDocument;r.__hmrDone=r.__hmrT};let Bu,Hu=Promise.resolve();const Yu=new Set(["constructor","prototype","toString","valueOf","toJSON","then"]),Xu=(t,n)=>"number"==typeof t||"string"==typeof t&&"__proto__"!==t&&("function"!=typeof n||!Yu.has(t)),Gu=(t,n,e,r)=>{if(0!==e)switch(4!==e&&Array.isArray(r)&&(r=Ku(t,r)),e){case 4:Ku(t,r,n);break;case 5:if(0===r)break;for(let t=0;t<r.length;t+=2){const e=r[t],i=r[t+1];Xu(e,i)&&(n[e]=i)}break;case 28:const i=n,s=r;i.wt=s[0],i.h=s[1],i.Yt=s[2],i.ct=s[3],i.At=s[4];break;case 29:n[af][0]=r[0];break;case 35:{const e=Kl(n),i=xu.get(e);i&&(xu.delete(e),Gu(t,e,i.t,i.v));const[,s,o]=r,l=Hl(n);l.h=s,l.ut=o,Fn(l.ut,e);break}case 30:{const t=n,e=r;t.Zt=e[0],t.ut=new Set(e.slice(1)),In(t.ut,t);break}case 31:{const e=n,i=r;e.ot=t.getSyncFn(i[0]),e.lt=i[1],e.Zt=Si,e.h=i[2],e.h|=1,e.m=i[3],e.ut=new Set(i.slice(4)),(t=>{if(null!==t.m&&ko(t.m)){const n=t.m,e=t.ut;let r=!1;if(e)for(const i of e){const e=i.property;if(ve(e)){const i=Po(n,e,null);if(null!==i){t.Zt=i,r=!0;break}}}if(!r){const e=sl(n);e&&n.firstChild===n.lastChild&&Co(e)&&(t.Zt=rl(e))}}})(e),In(e.ut,e);break}case 33:{const t=n,e=r;t.nn=e[0],e[1]&&(t.ut=new Set(e[1])),e[2]&&(t.dt=new Set(e[2])),e[3]&&(t.$t=new Set(e[3])),e[4]&&(t.dn=e[4]),t.h=e[5]??0,64&t.h&&(t.hn=!0),e.length>6&&(t.Zt=e[6]),t.Zt===Si&&(t.h|=1);const i=e[7]??0;t.expires=Math.abs(i),i<0&&(t.h|=256),void 0!==e[8]&&1!==e[8]&&(t.$n=e[8]??1,t.mn=[]),t.yn=e[9]??0,In(t.ut,t),In(t.dt,t),In(t.$t,t);break}case 34:case 32:{const i=n,s=r;i.nn=s[0];const o=i.nn.resolve(t).catch(()=>{});Hu=Hu.finally(()=>o),s[1]&&(i.ut=new Set(s[1])),s.length>2&&(i.Zt=s[2]),34!==e&&i.Zt!==Si&&(i.h&=-2),In(i.ut,i);break}case 23:{const t=r;n.message=t[0];for(let e=1;e<t.length;e+=2)n[t[e]]=t[e+1];break}case 36:{const t=n,e=r;for(let n=0;n<e.length;n++)t.append(e[n++],e[n]);break}case 37:{const t=n,[e,i,s,o,l,u]=r;t.type=e,t.key=i,t.varProps=s,t.constProps=o||null,t.children=l,t.toSort=!!u;break}case 25:{const t=n,e=r;for(let n=0;n<e.length;n++)t.add(e[n]);break}case 26:{const t=n,e=r;for(let n=0;n<e.length;n++)t.set(e[n++],e[n]);break}case 24:{const t=n,[e,i]=r,[s,o]=ku.get(t);e?s(i):o(i);break}case 27:const o=n,l=atob(r);let u=0;for(let t=0;t<l.length;t++)o[u++]=l[t].charCodeAt(0);break;case 38:const c=n,f=r;let a=f[0];a===Ii&&(a=new ds(Os,f[1],f[2],null,0,null),a._proxy=c),c[Ai]=a;const h=c[Mi];h.ut=f[3],Fn(h.ut,c);break;case 39:{const t=n;t.data.M=r[0],t.data.et=r[1];break}case 40:{const t=n,e=r;t.consumer=e[0],t.property=e[1],t.data=e[2],(t=>{const n=import.meta.env.TEST?Or():Zn,e=t.consumer;n&&!e||(e[si]||=new Map,e[si].set(t.property,t))})(t);break}default:throw Se(16,[e])}},Ku=(t,n,e=Array(n.length/2))=>{for(let r=0;r<n.length;r+=2)e[r/2]=Nn(t,n[r],n[r+1]);return e},Zu=t=>t>=23||4===t||5===t,tc=new WeakMap,nc=Symbol(),ec=(t,n)=>{if(!Array.isArray(n)||ko(n)||we(e=n)&&nc in e)return n;var e;let r=tc.get(n);if(!r){const e=Array(n.length/2).fill(void 0);r=new Proxy(e,new rc(t,n)),tc.set(n,r)}return r};class rc{$;he;de;constructor(t,n){this.$=t,this.he=n,this.de=this.he.length/2}get(t,n,e){if(n===nc)return t;const r="number"==typeof n?n:"string"==typeof n?parseInt(n,10):NaN;if(Number.isNaN(r)||r<0||r>=this.de)return Reflect.get(t,n,e);const i=2*r,s=this.he[i],o=this.he[i+1];if(0===s)return o;const l=this.$,u=qu(l,s,o);return Reflect.set(t,n,u),this.he[i]=0,this.he[i+1]=u,Zu(s)&&Gu(l,u,s,o),u}has(t,n){return n===nc||Object.prototype.hasOwnProperty.call(t,n)}set(t,n,e,r){if(n===nc)return!1;const i=Reflect.set(t,n,e,r),s="number"==typeof n?n:parseInt(n,10);if(Number.isNaN(s)||s<0||s>=this.he.length/2)return i;const o=2*s;return this.he[o]=0,this.he[o+1]=e,!0}}const ic=(t,n)=>Ec(sc,t,new WeakSet,"_",n),sc=(t,n,e,r)=>{const i=Kl(t);if(null==i)return t;if(lc(i)){if("object"==typeof i){if(n.has(i))return t;n.add(i)}if(Dl(i))return t;if(yu(i))return t;const s=typeof i;if("object"===s){if(dr(i))return t;if((t=>t&&"number"==typeof t.nodeType)(i))return t;if(be(i)){let r=0;for(let t=0;t<i.length;t++){if(!(t in i))throw Se(3,[i]);const s=i[t];if(t!==r)throw Se(3,[i]);sc(s,n,e+"["+t+"]"),r=t+1}return t}if(i instanceof ai)return t;if(i.__brand||i.__brand__)return t;if(ye(i)){for(const[t,r]of Object.entries(i))sc(r,n,e+"."+t);return t}}let o;if(o=r||"Value cannot be serialized","_"!==e&&(o+=` in ${e},`),"object"===s)o+=` 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"===s){const n=t.name;o+=` because it's a function named "${n}". You might need to convert it to a QRL using $(fn):\n\nconst ${n} = $(${t+""});\n\nPlease check out https://qwik.dev/docs/advanced/qrl/ for more information.`}throw Se(3,[o])}return t},oc=/*#__PURE__*/new WeakSet,lc=t=>!we(t)&&!ge(t)||!oc.has(t)&&!(fc in t),uc=t=>!!t&&(we(t)||"function"==typeof t)&&(oc.has(t)||fc in t),cc=t=>((we(t)&&null!==t||"function"==typeof t)&&oc.add(t),t),fc=Symbol(),ac=Symbol(),hc=t=>/*#__PURE__*/Object.freeze({id:gr(t)}),dc=(t,n)=>{const{val:e,set:r,iCtx:i}=Ol();void 0===e&&(re&&$c(t),re&&ic(n),i.$.setContext(i.m,t,n),r(1))},pc=(t,n)=>{const{val:e,set:r,iCtx:i}=Ol();if(void 0!==e)return e;re&&$c(t);const s=i.$.resolveContext(i.m,t);if("function"==typeof n)return r(Bn(void 0,n,s));if(void 0!==s)return r(s);if(void 0!==n)return r(n);throw Se(8,[t.id])},$c=t=>{if(!we(t)||"string"!=typeof t.id||0===t.id.length)throw Se(11,[t])},mc=t=>{const n=qc(),e=n.m;if(e)return n.$?.resolveContext(e,t)},yc=/*#__PURE__*/hc("qk-error"),wc=t=>33<=t&&t<=46,bc=(t,n,e)=>{let r=0;for(;n<e;){const e=t.charCodeAt(n);if(92===e)n+=2;else{if(0===r&&wc(e))break;123===e?r++:125===e&&r--,n++}}return n},vc=t=>t instanceof gc;class gc extends Au{element;qContainer;qManifestHash;rootVNode;document;ht=new WeakMap;pe;fe;qt=null;vNodeLocate=t=>Fo(this.rootVNode,t);$e;me;ye=null;constructor(t){if(super({},t.getAttribute("q:locale")),this.qContainer=t.getAttribute(Ve),!this.qContainer)throw Se(25);this.document=t.ownerDocument,this.element=t,this.ae=t.getAttribute(ze),this.fe=t.getAttribute("q:instance"),this.qManifestHash=t.getAttribute("q:manifest-hash"),this.rootVNode=vo(this.element),this.$e=[],this.me=[];const n=this.element.ownerDocument;n.qVNodeData||function(t){const n="q:container",e="/"+n,r="q:ignore",i="/"+r,s="q:container-island",o="/"+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=>{const n=t.querySelectorAll('script[type="qwik/vnode"]');for(let t=0;t<n.length;t++){const e=n[t],r=e.closest("[q\\:container]");r.qVnodeData=e.textContent,r.qVNodeRefs=new Map}const e=t.querySelectorAll("[q\\:shadowroot]");for(let t=0;t<e.length;t++){const n=e[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 9;if(l.startsWith(o))return 64;if(l.startsWith(i))return 32;if(l.startsWith(e))return 8}return 0},p=t=>{for(;t&&(t=t.nextSibling)&&0===d(t););return t},$=(n,e,r,i,s,o)=>{const u=s.length;let c=0,f=-1,a=0,h=0,m=0,y=-1,w=null;const b=()=>{let t=0;for(;wc(m=s.charCodeAt(a))&&(t+=1<<m-33,a++,!(a>=u)););return t};do{if(r===i)return;w=null;const v=r==e?2:d(r);if(3===v){const t=r;let e=r;for(;e&&!(w=p(e));)e=e.parentNode;$(n,t,r,w,t.qVnodeData||"",t.qVNodeRefs)}else if(16===v){let t=r;do{if(t=n.nextNode(),!t)throw Error(`Island inside \x3c!--${r?.nodeValue}--\x3e not found!`)}while(65!==d(t));w=null}else if(64===v){let t;w=r;do{if(w=n.nextNode(),!w)throw Error("Ignore block not closed!");t=d(w)}while(32!==t&&65!==t);w=null}else if(9===v){w=r;do{if(w=p(w),!w)throw Error(`\x3c!--${r?.nodeValue}--\x3e not closed!`)}while(8!==d(w));$(n,r,r,w,"",null)}else if(6===v){w=p(r);const n=r,e=n?.shadowRoot;e&&$(t.createTreeWalker(e,129),null,e,null,"",null)}if(!(2&~v)){if(f<c&&(-1===f&&(f=0),a=h,a<u?(f+=b(),126===m&&(y=f,a++,m=a<u?s.charCodeAt(h):33),h=bc(s,a,u)):f=Number.MAX_SAFE_INTEGER),c===f){y===c&&o.set(c,r);const t=s.substring(a,h);l.set(r,t)}c++}}while(r=w||n.nextNode())},m=t.createTreeWalker(t,129);$(m,null,m.firstChild(),null,"",null)}(n),this.pe=De(n,this.fe)||Fi,this.we(),t.setAttribute(Ve,"resumed"),t.qContainer=this,t.qDestroy=()=>this.Cn();const e=t.querySelectorAll('script[type="qwik/state"]');0!==e.length&&(this.$e=JSON.parse(e[e.length-1].textContent),kn(this.$e,this),this.me=ec(this,this.$e)),this.be(),!se&&t.isConnected&&t.dispatchEvent(new CustomEvent("qresume",{bubbles:!0}))}Cn(){this.vNodeLocate=()=>null,this.$e.length=0,this.me.length=0,this.k=()=>{};const t=this.element;t.qContainer=void 0,t.qVnodeData=void 0,t.qVNodeRefs=void 0,t.removeAttribute(Ve),t.ownerDocument.qVNodeData=void 0}be(){const t=this.element.ownerDocument,n=t.head,e=t.body.querySelectorAll(Me),r=e.length;if(r){const i=t.createDocumentFragment();for(let t=0;t<r;t++)i.appendChild(e[t]);n.appendChild(i)}}jn(t,n){this.me[t]=n}parseQRL(t){return gn(t,this)}handleError(t,n){if(re&&n&&("undefined"!=typeof document&&(Pt(n,t),Kt(this,n,256)),t&&t instanceof Error&&("hostElement"in t||(t.hostElement=n+"")),!(t=>!(t&&t instanceof Error&&"plugin"in t))(t)))throw t;const e=n&&this.resolveContext(n,yc);if(!e)throw t;e.error=t}setContext(t,n,e){let r=this.getHostProp(t,Ie);null==r&&this.setHostProp(t,Ie,r=[]),pe(r,n.id,e,0,!0)}resolveContext(t,n){for(;t;){const e=this.getHostProp(t,Ie);if(null!=e&&me(e,n.id,0))return $e(e,n.id,0);t=this.getParentHost(t)}}getParentHost(t){let n=t.parent;for(;n;)if(Eo(n)){if(null!==Po(n,Ee,null))return n;n=n.parent||n.slotParent}else n=n.parent;return null}setHostProp(t,n,e){jo(t,n,e)}getHostProp(t,n){const e=t;let r=null;switch(n){case nr:case tr:case Ee:case Ie:case Fe:r=this.k;break;case er:case lr:r=parseInt}return Po(e,n,r)}ensureProjectionResolved(t){if(!(16&t.flags)){t.flags|=16;const n=t.props;if(n){const t=Object.keys(n);for(let e=0;e<t.length;e++){const r=t[e];if(C(r)){const t=n[r];if("string"==typeof t){const e=this.vNodeLocate(t);n[r]=e}}}}}}k=t=>Ln(t,this.me);getSyncFn(t){return this.pe[t]}ve(t,n,e,r){if(r){const t=this.getHostProp(e,Ne),r=new Set((t=>t?.split(" ")??null)(t));r.add(n),this.setHostProp(e,Ne,(t=>Array.from(t).join(" "))(r))}if(null==this.ye){this.ye=new Set;const t=this.document.querySelectorAll(Ae);for(let n=0;n<t.length;n++)this.ye.add(t[n].getAttribute(Oe))}if(!this.ye.has(n)){this.ye.add(n);const e=this.document.createElement("style");e.setAttribute(Oe,n),e.textContent=t,this.document.head.appendChild(e)}}we(){const t={},n=this.element.attributes;if(n)for(let e=0;e<n.length;e++){const r=n[e];r.name!==cr&&(t[r.name]=r.value)}this.Dt={containerAttributes:t}}}let Sc,kc;const xc=()=>kc,qc=()=>{const t=xc();if(!t)throw Se(9);return t},Rc=()=>{const t=xc();if(!t||t.Nt!==Ge)throw Se(10);return t},Cc=(t,n)=>{const e=Un(n),r=Fo(e.rootVNode,n),i=e.Mt;i&&(t=>{Sc=t})(i);const s=Xn(i,r,t);return s.$=e,s},Ec=(t,...n)=>{if("function"==typeof t){if(!kc)return t(...n);{const e=kc.It;try{return kc.It=void 0,t(...n)}finally{kc.It=e}}}return Dl(t)?t.untrackedValue:Kl(t)},Tc=/*#__PURE__*/Yn(void 0,void 0,void 0),Pc=(t,n,e,r,i)=>{const s=Tc.It,o=Tc.$;try{return Tc.It=p(n,e,i),Tc.$=r,Hn(Tc,t)}finally{Tc.It=s,Tc.$=o}},jc=(t,n,e,r,i)=>(t instanceof cs&&t.m!==n&&n&&(t.m=n),Pc(()=>t.value,n,e,r,i)),_c=()=>xc()?.m,Oc=()=>{const t=xc();if(t)return t.Nt},Ac=()=>{const t=xc();if(t)return t.$},Mc=t=>t,Nc=t=>t.l||Promise.resolve();let Ic=(t,n,e,r,i)=>new Fc(t,n,e,r,i);class Fc{vt;bt;ge;Se;$;constructor(t,n,e,r,i){var s;this.vt=t,this.bt=n,this.ge=e,this.Se=r,r&&this.ke(r),!i||r||"string"!=typeof t||e||(this.$=i),re&&((s=this).dev=null,"undefined"!=typeof document&&(s.qrls=new Set)),t&&Kn(t,.8)}get st(){return(t=>{const n=t.lastIndexOf("_")+1;return t.slice(n)})(this.bt)}ke(t){this.Se=t,dr(t)&&t.then(t=>this.Se=t,t=>{console.error(`qrl ${this.bt} failed to load`,t),this.Se=null})}xe(){if(null!=this.Se)return this.Se;if(""===this.vt){const t=this.$.fe,n=this.$.element?.ownerDocument||document,e=De(n,t);return this.Se=e[+this.bt]}this.vt&&Kn(this.vt,1);const t=this.bt,n=this.ge?this.ge().then(n=>n[t]):_r().importSymbol(this.$?.element,this.vt,t);return this.ke(n),this.Se}}import.meta.hot&&(t=>{if(!import.meta.hot)return;const n=new Map;Ic=(e,r,i,s,o)=>{let l=n.get(r);return l||(l=new t(e,r,i,s,o),""!==e&&n.set(r,l)),l};const e=(t,n)=>{const[e,r]=t.split("?",2);if(!r)return`${e}?t=${n}`;const i=r.split("&").filter(t=>!t.startsWith("t="));return i.push("t="+n),`${e}?${i.join("&")}`};document.addEventListener("qHmr",t=>{const r=t.detail.files,i=t.detail.t||document.__hmrT||Date.now();let s=!1;for(const t of n.values()){const n=t.dev?.file||t.vt;if(!n||!r.some(t=>n.startsWith(t)))continue;const o=t.vt;o&&(t.vt=e(o,i),s=!0);const l=t.ge?.toString();if(l){const n=l.replace(/import\((['"])(.+?)\1\)/,(t,n,r)=>`import(${n}${e(r,i)}${n})`);if(n!==l)try{t.ge=Function(`return (${n})`)(),s=!0}catch(n){console.error("Failed to update symbolFn for "+t.bt,n)}else console.warn(`Couldn't find import() in symbolFn for ${t.bt}, cannot update it for HMR`,l)}if(s&&(t.Se=void 0,document.__hmrDone=document.__hmrT,t.qrls))for(const n of t.qrls){const e=n.deref();e?e.resolved&&(e.resolved=void 0):t.qrls.delete(n)}}})})(Fc);const Dc=Symbol(),zc=t=>t?.[Dc]??t;class Lc{qe;resolved=void 0;Tt;$;constructor(t,n,e){this.qe=t,re&&((t,n,e)=>{if(n&&"object"==typeof n)for(let t=0;t<n.length;t++)ic(n[t],"Captured variable in the closure can not be serialized");t.qrls&&t.qrls.add(new WeakRef(e))})(t,n,this),n&&(this.Tt=n,"string"==typeof n&&(this.$=e)),null==t.Se||"string"==typeof this.Tt||dr(t.Se)||(this.resolved=Yc(this,t.Se))}}const Uc=function(t,...n){const e=zc(this);if(e.resolved)return e.resolved.apply(t,n);const r=xc();return Wc.call(e,r?.$).then(()=>Hn.call(t,r,e.resolved,n))},Wc=async function(t){const n=zc(this);return $r(Xc(n,t),()=>n.resolved)},Qc=Object.create(Function.prototype,{resolved:{get(){return this[Dc].resolved},set(t){this[Dc].resolved=t}},Tt:{get(){return this[Dc].Tt},set(t){this[Dc].Tt=t}},$:{get(){return this[Dc].$},set(t){this[Dc].$=t}},qe:{get(){return this[Dc].qe}},vt:{get(){return this[Dc].qe.vt}},bt:{get(){return this[Dc].qe.bt}},st:{get(){return this[Dc].qe.st}},dev:{get(){return this[Dc].qe.dev}},...re?{le:{value(t){this[Dc].qe.dev=t}}}:void 0,Re:{value:Uc},w:{value:function(t){const n=zc(this);return Kc(new Lc(n.qe,t,n.Tt?n.$:void 0))}},s:{value:function(t){const n=zc(this);n.qe.ke(t),n.resolved=Yc(n,t)}},resolve:{value:Wc},getSymbol:{value:function(){return zc(this).qe.bt}},getHash:{value:function(){return zc(this).qe.st}},getCaptured:{value:function(){const t=zc(this);return Hc(t),t.Tt}},getFn:{value:function(t,n){const e=zc(this),r=(...i)=>e.resolved?n&&!1===n()?void 0:Hn(t,e.resolved,i):Wc.call(e).then(t=>{if(re&&!ge(t))throw Se(5);return r(...i)});return r}}});let Vc=null;const Jc=t=>{Vc=t},Bc=(t,n)=>{const e=[],r=n.split(" ");for(let n=0;n<r.length;n++)e.push(t.k(r[n]));return e},Hc=t=>{Vc=t.Tt;const n=t.$;if("string"==typeof Vc){if(!n)throw Se(13);const e=Hu;if(Vc=t.Tt=Bc(n,Vc),Hu!==e)return Hu}},Yc=(t,n)=>"function"==typeof n&&t.Tt?function(...e){return Hc(t),n.apply(this,e)}:n,Xc=(t,n)=>{const e=t.qe,r="string"==typeof t.Tt;if(r&&!t.$&&(t.$=n||xc()?.$),t.resolved)return;const i=ef(),s=xc(),o=e.xe(),l=$r(o,n=>{t.resolved=Yc(t,n)});l&&tf(e.bt,s?.m instanceof di?s?.m.node:void 0,i);const u=r&&t.$&&Hc(t);return u?u.then(()=>l):l},Gc=(t,n,e,r,i,s)=>{const o=Ic(t,n,r,e,s);return Kc(new Lc(o,i,s))},Kc=t=>{const n=async function(...t){return Uc.call(n,this,...t)};return n[Dc]=t,Object.setPrototypeOf(n,Qc),n},Zc=/*#__PURE__*/new Set,tf=(t,n,e)=>{Zc.has(t)||(Zc.add(t),nf("qsymbol",{symbol:t,element:n,reqTime:e}))},nf=(t,n)=>{se||Or()||"object"!=typeof document||document.dispatchEvent(new CustomEvent(t,{bubbles:!1,detail:n}))},ef=()=>se||Or()?0:"object"==typeof performance?performance.now():0;let rf=0;const sf=t=>{if(!oe&&re)throw Error("Optimizer should replace all usages of $() with some special syntax. If you need to create a QRL manually, use inlinedQrl() instead.");return Gc(null,"s"+rf++,t,null,null)},of=sf,lf=t=>t,uf=t=>{if(!oe&&re)throw Error("Optimizer should replace all usages of sync$() with some special syntax. If you need to create a QRL manually, use inlinedSyncQrl() instead.");return re&&(t=Function("return "+t)()),Gc("",ke,t,null,null)},cf=(t,n)=>(void 0===n&&(n=""+t),t.serialized=n,Gc("",ke,t,null,null)),ff=t=>{function n(n,e,r=0){const i=(se?"sX":t.st.slice(0,4))+":"+(e||""),s=()=>{};return s[af]=[t],qs(s,n,null,n.children,r,i)}return n[af]=[t],n},af=Symbol(),hf=t=>"function"==typeof t&&void 0!==t[af],df=t=>ff(of(t)),pf=Hi(lf),$f=async(t,n,e={})=>{if(9===t.nodeType){let n=t.firstChild;for(;n&&!ii(n);)n=n.nextSibling;t=n}if(re&&t.hasAttribute(Ve))throw Se(4,[t]);t.setAttribute(Ve,"resumed");const r=Un(t);r.Dt=e.serverData||{};const i=r.rootVNode;return jo(i,bi,n),Kt(r,i,2),await r.l,{cleanup:()=>{bt(r,[],r.rootVNode)}}},mf=(t,n)=>{const{val:e,set:r,iCtx:i}=Ol();if(null!=e)return e;const s=ge(t)?Bn(void 0,t):t;if(!1===n?.reactive)return r(s),s;{const t=i.$,e=tu(s,n?.deep??1?1:0,t);return r(e),e}},yf=()=>{const{val:t,set:n,iCtx:e}=Ol();if(null!=t)return t;const r=e.$.ae||"",i=r?xr(r).substring(0,3):"",s=e.$.getHostProp(e.m,Ee);let o=`${i}${s?.getHash().substring(0,3)||""}${(e.$.ce++).toString(36)||""}`,l=o.charCodeAt(0);return l>=48&&l<=57&&(l+=17,o=String.fromCharCode(l)+o.substring(1)),n(o)},wf=/*#__PURE__*/new Map,bf=(t,n)=>{if(re)return vf(t,n);let e=wf.get(n);return e||wf.set(n,e=vf(t,n)),e},vf=(t,n)=>{function e(n){l.push(t.substring(f,n)),f=n}function r(t){a===Cf||s()||(e(t),l.push(".",Pe,n))}function i(n){let e=0;if(t.charCodeAt(c)===Qf)for(let n=1;n<10;n++)if(t.charCodeAt(c+n)===Qf){e=n+1;break}t:for(let r=3;r<n.length;r++){const i=n[r];for(let n=0;n<i.length;n++)if((t.charCodeAt(c+n+e)|ta)!==i.charCodeAt(n))continue t;return c+=i.length+e,!0}return!1}function s(){return-1!==u.indexOf(Cf)||-1!==u.indexOf(Tf)}const o=t.length,l=[],u=[];let c=0,f=c,a=qf,h=0;for(;c<o;){const n=c;let o=t.charCodeAt(c++);o===Kf&&(c++,o=Yf);const l=oa[a];for(let d=0;d<l.length;d++){const p=l[d],[$,m,y]=p;if(($===h||$===Af||$===Mf&&gf(h)||$===If&&xf(h))&&(m===o||m===Af||m===Mf&&gf(o)||m===Nf&&!gf(o)&&o!==Vf||m===If&&xf(o))&&(3==p.length||i(p))){if(p.length>3&&(o=t.charCodeAt(c-1)),y===_f||y==Of){y===Of&&(a!==Rf||s()?Sf(o)||r(c-(m==Nf?1:m==Wf?2:0)):(Sf(o)?e(c-2):r(c-2),f++)),m===Nf&&(c--,o=h);do{a=u.pop()||qf,a===Cf&&(e(c-1),f++)}while(kf(a))}else u.push(a),a===Cf&&y===qf?(e(c-8),f=c):y===Ef&&r(n),a=y;break}}h=o}return e(c),l.join("")},gf=t=>t>=Jf&&t<=Bf||t>=Yf&&t<=Xf||t>=na&&t<=ea||t>=128||t===Zf||t===Qf,Sf=t=>t===Hf||t===Vf||t===Gf||t===Uf||gf(t),kf=t=>t===Pf||t===Tf||t===jf||t===Cf,xf=t=>t===Lf||t===Ff||t===Df||t===zf,qf=0,Rf=2,Cf=5,Ef=6,Tf=10,Pf=11,jf=12,_f=17,Of=18,Af=0,Mf=1,Nf=2,If=3,Ff=9,Df=10,zf=13,Lf=32,Uf=35,Wf=41,Qf=45,Vf=46,Jf=48,Bf=57,Hf=58,Yf=65,Xf=90,Gf=91,Kf=92,Zf=95,ta=32,na=97,ea=122,ra=123,ia=125,sa=/*@__PURE__*/(()=>[[Af,39,14],[Af,34,15],[Af,47,16,"*"]])(),oa=/*@__PURE__*/(()=>[[[Af,42,Rf],[Af,Gf,7],[Af,Hf,Ef,":","before","after","first-letter","first-line"],[Af,Hf,Cf,"global"],[Af,Hf,3,"has","host-context","not","where","is","matches","any"],[Af,Hf,4],[Af,Mf,1],[Af,Vf,1],[Af,Uf,1],[Af,64,Tf,"keyframe"],[Af,64,Pf,"media","supports","container"],[Af,64,jf],[Af,ra,13],[47,42,16],[Af,59,_f],[Af,ia,_f],[Af,Wf,_f],...sa],[[Af,Nf,Of]],[[Af,Nf,Of]],[[Af,40,qf],[Af,Nf,Of]],[[Af,40,8],[Af,Nf,Of]],[[Af,40,qf],[Af,Nf,_f]],[[Af,Nf,_f]],[[Af,93,Of],[Af,39,14],[Af,34,15]],[[Af,Wf,_f],...sa],[[Af,ia,_f],...sa],[[Af,ia,_f],[If,Mf,1],[Af,Hf,Cf,"global"],[Af,ra,13],...sa],[[Af,ra,qf],[Af,59,_f],...sa],[[Af,59,_f],[Af,ra,9],...sa],[[Af,ia,_f],[Af,ra,13],[Af,40,8],...sa],[[Af,39,_f]],[[Af,34,_f]],[[42,47,_f]]])(),la=t=>({styleId:aa(t,t=>t,!1)}),ua=/*#__PURE__*/Hi(la),ca=t=>({scopeId:Pe+aa(t,bf,!0)}),fa=/*#__PURE__*/Hi(ca),aa=(t,n,e)=>{let{val:r,set:i,iCtx:s,i:o}=Ol();if(r)return r;const l=(u=o,`${xr(t.st)}-${u}`);var u;const c=s.m;if(i(l),!t.resolved)throw t.resolve().then(t=>s.$.ve(n(t,l),l,c,e));return s.$.ve(n(t.resolved,l),l,c,e),l},ha=t=>{const n=ge(t)&&!hf(t)?Bn(void 0,t):t;return Zi(n)},da=t=>pa(ha,t),pa=(t,...n)=>{const{val:e,set:r}=Ol();return null!=e?e:r(t=ge(t)&&!hf(t)?Ec(t,...n):t)},$a=(t,n)=>(t.resolve(),Xi(t,n)),ma=(t,n)=>pa($a,t,n),ya=Hi(ma),wa=t=>(t.resolve(),Ki(t)),ba=t=>pa(wa,t),va=Hi(ba),ga=(t,n)=>{const{val:e,set:r,i,iCtx:s}=Ol(),o=n?.strategy??"intersection-observer";if(e)return void(32&e.h||Or()||(e.h|=32,Sa(e,o)));let l;Or()?l=1:(l=5,t.resolve(),Kt(s.$,s.m,1));const u=new Nl(l,i,s.m,t,void 0,null);r(u),Sa(u,o)},Sa=(t,n)=>{"intersection-observer"===n?Lu("qvisible",ka(t)):"document-ready"===n?Uu("qinit",ka(t)):"document-idle"===n&&Uu("qidle",ka(t))},ka=t=>Gc(null,"_task",dn,null,[t]),xa=Hi(Fu),qa=/*#__PURE__*/Hi(Al),Ra=/*#__PURE__*/Hi(ga),Ca=(t,n)=>(t.resolve(),Gi(t,n)),Ea=(t,n)=>pa(Ca,t,n),Ta=Hi(Ea),Pa=()=>{const t=mf({error:void 0});return dc(yc,t),t},ja=async({track:t})=>{const n=Vc[0];t(()=>n.items);const e=xc(),r=e.$;Kt(r,e.m,128),(import.meta.env.TEST?Or():Zn)&&await r.l},_a=t=>{if(!__EXPERIMENTAL__.each)throw Error('Each is experimental and must be enabled with `experimental: ["each"]` in the `qwikVite` plugin.');return Al(/*#__PURE__*/Cu(ja,"_eaT",[t])),Is},Oa=/*#__PURE__*/ff(
|
|
2
|
+
/*#__PURE__*/Cu(_a,"_eaC")),Aa=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=Ma.replace('"_URL_"',JSON.stringify(e.path.split("/").pop()));return r=r.replaceAll(/\s\s+/gm,""),xs("script",null,{dangerouslySetInnerHTML:"("+r+")(navigator.serviceWorker);",nonce:e.nonce},null,0,"prefetch-service-worker")},Ma=/*#__PURE__*/""+(t=>{"getRegistrations"in t&&t.getRegistrations().then(t=>{for(let n=0;n<t.length;n++){const e=t[n];e.active&&e.active.scriptURL.endsWith("_URL_")&&e.unregister().catch(console.error)}}),"caches"in window&&caches.keys().then(t=>{const n=t.find(t=>t.startsWith("QwikBundles"));n&&caches.delete(n).catch(console.error)}).catch(console.error)}),Na=()=>null;globalThis.__qwik&&Se(30,[globalThis.__qwik,ri]),globalThis.__qwik=ri,import.meta.hot&&import.meta.hot.dispose(()=>{globalThis.__qwik=void 0});export{sf as $,Oa as Each,Os as Fragment,fc as NoSerializeSymbol,Na as PrefetchGraph,Aa as PrefetchServiceWorker,As as RenderOnce,Du as Resource,Ds as SSRComment,Fs as SSRRaw,Ls as SSRStream,zs as SSRStreamBlock,ac as SerializerSymbol,Is as SkipRender,Ns as Slot,_i as _CONST_PROPS,gc as _DomContainer,si as _EFFECT_BACK_REF,Fi as _EMPTY_ARRAY,Di as _EMPTY_OBJ,Ni as _IMMUTABLE,Au as _SharedContainer,fs as _SubscriptionData,Ii as _UNINITIALIZED,Oi as _VAR_PROPS,_n as _addProjection,Vc as _captures,y as _chk,Gc as _createQRL,zn as _deserialize,vu as _dumpState,_a as _eaC,ja as _eaT,Xt as _executeSsrChores,Ou as _fnSignal,Ji as _getConstProps,Ac as _getContextContainer,Oc as _getContextEvent,_c as _getContextHostElement,Un as _getDomContainer,Qn as _getQContainerElement,Vi as _getVarProps,Gl as _hasStoreEffects,Ju as _hmr,$s as _isJSXNode,Zl as _isStore,qn as _isStringifiable,Il as _isTask,Mc as _jsxBranch,Rs as _jsxC,Es as _jsxQ,Cs as _jsxS,xs as _jsxSorted,qs as _jsxSplit,de as _mapApp_findIndx,$e as _mapArray_get,pe as _mapArray_set,Eu as _noopQrl,Tu as _noopQrlDEV,kn as _preprocessState,cf as _qrlSync,bn as _qrlToString,_u as _regSymbol,Mn as _removeProjection,w as _res,mc as _resolveContextWithoutSequentialScope,Vs as _restProps,Iu as _rsc,T as _run,Dn as _serialize,Tn as _setEvent,On as _setProjectionTarget,dn as _task,An as _updateProjectionProps,jn as _useHmr,m as _val,ic as _verifySerializable,Ao as _vnode_ensureElementInflated,kl as _vnode_getAttrKeys,sl as _vnode_getFirstChild,Ro as _vnode_isMaterialized,Co as _vnode_isTextVNode,Eo as _vnode_isVirtualVNode,on as _vnode_toString,Nc as _waitUntilRendered,Cn as _walkJSX,os as _wrapProp,us as _wrapSignal,df as component$,ff as componentQrl,ns as createAsync$,Gi as createAsyncQrl,ts as createComputed$,Xi as createComputedQrl,hc as createContextId,b as createElement,es as createSerializer$,Ki as createSerializerQrl,Zi as createSignal,pf as event$,lf as eventQrl,Xl as forceStoreEffects,Un as getDomContainer,Vn as getLocale,_r as getPlatform,b as h,Hi as implicit$FirstArg,Cu as inlinedQrl,ju as inlinedQrlDEV,te as isBrowser,ne as isDev,Zn as isServer,Dl as isSignal,Ps as jsx,js as jsxDEV,_s as jsxs,cc as noSerialize,Ru as qrl,Pu as qrlDEV,$f as render,jr as setPlatform,uf as sync$,Ec as untrack,Kl as unwrapStore,Ta as useAsync$,Ea as useAsyncQrl,ya as useComputed$,ma as useComputedQrl,pa as useConstant,pc as useContext,dc as useContextProvider,Pa as useErrorBoundary,yf as useId,Nu as useLexicalScope,Lu as useOn,Uu as useOnDocument,Wu as useOnWindow,xa as useResource$,Fu as useResourceQrl,va as useSerializer$,ba as useSerializerQrl,Gn as useServerData,da as useSignal,mf as useStore,ua as useStyles$,la as useStylesQrl,fa as useStylesScoped$,ca as useStylesScopedQrl,qa as useTask$,Al as useTaskQrl,Ra as useVisibleTask$,ga as useVisibleTaskQrl,ri as version,Jn as withLocale};
|