@qwik.dev/core 2.0.0-beta.34 → 2.0.0-beta.36
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/index.mjs +2 -2
- package/dist/backpatch/package.json +1 -1
- package/dist/backpatch-executor.debug.js +2 -1
- package/dist/backpatch-executor.js +1 -1
- package/dist/build/package.json +1 -1
- package/dist/cli.mjs +26 -22
- package/dist/core-internal.d.ts +244 -34
- package/dist/core.min.mjs +8 -2
- package/dist/core.mjs +2309 -1028
- package/dist/core.mjs.map +1 -1
- package/dist/core.prod.mjs +4872 -3877
- package/dist/loader/index.mjs +2 -2
- package/dist/loader/package.json +1 -1
- package/dist/optimizer.d.ts +2 -6
- package/dist/optimizer.mjs +2407 -1580
- package/dist/out-of-order-executor.debug.js +163 -0
- package/dist/out-of-order-executor.js +1 -0
- package/dist/preloader.mjs +1 -268
- package/dist/qwikloader.debug.js +47 -26
- package/dist/qwikloader.js +1 -1
- package/dist/server-modules.d.ts +1 -0
- package/dist/server.d.ts +4 -0
- package/dist/server.mjs +1238 -272
- package/dist/server.prod.mjs +1313 -558
- package/dist/testing/index.d.ts +76 -20
- package/dist/testing/index.mjs +3317 -1408
- package/dist/testing/package.json +1 -1
- package/dist/worker/index.d.mts +21 -0
- package/dist/worker/index.mjs +318 -0
- package/dist/worker/package.json +9 -0
- package/dist/worker/worker.js +13 -0
- package/dist/worker/worker.node.js +15 -0
- package/dist/worker/worker.shared.js +63 -0
- package/handlers.mjs +18 -1
- package/package.json +11 -5
- package/public.d.ts +6 -0
- package/worker.d.ts +2 -0
package/dist/core.min.mjs
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
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(_r(e)+":"+Rr(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(Br||!Xr.length)return;Hr=!1,Br=!0;const t=Yr?performance.now()+Dr:0;let n=!1;for(;Xr.length;){n=!0;const e=Gr();if(Yr&&e&&performance.now()>=t){Hr||(Hr=!0,Qr());break}}Br=!1,n&&Yr&&Vr()}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||!(!nl(t)||(r=t,1536&r.flags));var r;const i=!e&&oi(nl(t));let s=Be,o=0;const l="string"==typeof n||ko(n);return l&&(t=>"string"==typeof t?li(t):!!ko(t)&&(li(nl(t))||!!(512&t.flags)))(n)?(s=Ye,o=512):l&&(t=>"string"==typeof t?ui(t):!!ko(t)&&(ui(nl(t))||!!(1024&t.flags)))(n)?(s=Xe,o=1024):!t||i||e||(s=512&t.flags?Ye:1024&t.flags?Xe:Be,o=1536&t.flags),ci.elementNamespace=s,ci.elementNamespaceFlag=o,ci}function l(t,n){const e=d(n).priority;let r=pi.length;for(let t=0;t<pi.length;t++)if(e<d(pi[t]).priority){r=t;break}pi.splice(r,0,n),t.o++,t.l||=new Promise(n=>t.u=n)}function u(){for(let t=0;t<pi.length;t++){const n=pi[t];let e=!1;for(let t=0;t<$i.length;t++)if(kl(n,$i[t])){e=!0;break}if(!e)return n}return null}function c(t,n){$i.push(t),a(t,n,!0),n.o++}function f(t,n){const e=$i.indexOf(t);if(-1!==e){const t=$i.length-1;e!==t&&($i[e]=$i[t]),$i.pop(),n.o--}l(n,t)}function a(t,n,e){e||(t.flags&=-257);const r=pi.indexOf(t);-1!==r&&(pi.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 mi.get(t)??null}function p(t,n,e){t[ii]||(t[ii]=new Map);const r=t[ii];let i=r.get(n);return i||(i=new Si(t,n),r.set(n,i)),e&&(i.data=e),i}function $(t){return new Proxy({},new Di(t))}function m(t,n){fs(this,n),Vc[0].value="number"===n.type?n.valueAsNumber:n.value}function y(t,n){fs(this,n),Vc[0].value=n.checked}function w(t,n){if(fs(this,n),Vc)for(let t=0;t<Vc.length;t++){const n=Vc[t];n instanceof Ti&&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 xs(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===Fi&&(t.varProps={}),t.varProps[r]=!0}function k(t){const n=[t];for(;n.length;){const t=n.shift();if(ps(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(Fl(t))return k(t.untrackedValue)}}return null}function x(t){if(ps(t)){const n=q();return t.type===js||af(t.type)?(null==t.children?t.children=n:be(t.children)?t.children.push(n):t.children=[t.children,n],[n,t]):[n,ks(js,null,null,[t,n],0,null)]}if("object"!=typeof(n=t)&&"function"!=typeof n||null==n){const n=q();return[n,ks(js,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 hs("script",null,{hidden:""},null,0,null)}function _(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)=>{Ws||(Ws=t.setAttributeNS),Ws.call(t,n,e,r)})(t,r,n,e)}i=t,Us||(Us=i.setAttribute),Us.call(i,n,e)}var i}function R(t){return!t.startsWith("q:")&&!t.startsWith(sr)}function E(t,e,r,i){if(!r.isConnected)return;i||(i=_c(e,r));const s=i.$,o=i.m;Oo(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=Co(o,rr,i);if(null!==u)l=()=>t(e,r,u);else{const n=Co(o,ir,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 C(t,n){if(!n.isConnected)return;const e=_c(t,n);return"string"==typeof this&&Qc(Jc(e.$,this)),E(Vc[0],t,n,e)}function T(t){return t.q===t._?t.R:null}function P(t){return t.T||T(t)}function j(t,n){const e=(t=>t?t.nextSibling:null)(n);return e===T(t)?null:e}function O(t,n,e,r,i,s){import.meta.env.TEST&&i&&To(n,ar,i),To(n,e,s),Zt(t,to(n.node,e,r,i,!!(512&n.flags)))}function A(t,n,e,r){return{$:t,j:n,O:e,M:r,N:[],D:[],L:[],q:null,T:null,U:null,R:null,_:null,W:null,J:null,H:null,B:null,Y:null,X:0,G:0,K:!0,Z:!1,tt:{nt:new cs({M:r,et:!0}),rt:new cs({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.j=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=il(e),i=null,s=!1){I(t,n,e,r,i,s);const o=H(t);if(dr(o))return o.finally(()=>{B(t)});B(t)}function I(t,n,e,r=il(e),i=null,s=!1){const o=t.Z;t.Z=s||o,t.q=e,t.U=null,t.T=r,t.R=i,t._=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(ps(t.Y)){const n=t.Y.type;"string"==typeof n?(G(t),st(t,t.Y,n),t.Y.constProps&&eo.call(t.Y.constProps,fr)||eo.call(t.Y.varProps,fr)?t.U||Y(t,!1):z(t,t.Y.children,!0)):"function"==typeof n&&(n===js?(G(t),ct(t,"F",t.Y.key),z(t,t.Y.children,!0)):n===Ms?(G(t),Q(t)||z(t,t.Y.children,!0)):n===mt?(V(t),z(t,t.Y.children,!0,!1)):n===Fs||n===Is?X(t):(G(t),ft(t,n)))}else if(Array.isArray(t.Y))z(t,t.Y,!1);else if(Fl(t.Y)){ct(t,"S",null);const n=t.Y instanceof us?t.Y.it():t.Y,e=t.T?.[ii]?.get(".")?.backRef;let r=e?.has(n);if(e&&n instanceof us&&(r=kt(e,n)),!r){const e=t.U||t.T;z(t,F(t,()=>Tc(n,e,".",t.$)),!0)}}else dr(t.Y)&&(ct(t,"A",null),t.D.push(t.Y,t.U||t.T));else t.Y===Ns||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.T),null}throw r}}function D(t){if(t.K){if(t.X++,t.X<t.G)t.Y=t.B[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.T=j(t,t.T)}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||!il(t.T);t.Z=n,t.H=null,t.W=null,t.J=null,t.q=t.U||t.T,t.T=il(t.q),t.U=null}t.K=!1}}function L(t){t.N.pop()&&(t.Z=t.N.pop(),t.H=t.N.pop(),t.W=t.N.pop(),t.J=t.N.pop(),t.U=t.N.pop(),t.T=t.N.pop(),t.q=t.N.pop()),t.Y=t.N.pop(),t.G=t.N.pop(),t.X=t.N.pop(),t.B=t.N.pop(),D(t)}function U(t,n,e){t.N.push(t.B,t.X,t.G,t.Y),e&&t.N.push(t.q,t.T,t.U,t.J,t.W,t.H,t.Z),t.N.push(e),Array.isArray(n)?(t.X=0,t.G=n.length,t.B=n,t.Y=t.G>0?n[0]:null):void 0===n?(t.X=0,t.Y=null,t.B=null,t.G=0):(t.X=0,t.Y=n,t.B=null,t.G=1)}function W(t){return t.U?P(t):j(t,t.T)||T(t)}function V(t){const n=t.Y.key;t.T=Co(t.q,n,n=>Io(t.$.rootVNode,n)),t.T=t.T&&32&t.T.flags?null:t.T,null==t.T&&(t.U=go(),To(t.U,Pe,n),t.U.slotParent=t.q,To(t.q,n,t.U))}function Q(t){const n=Pl(t.q),e=((t,n)=>{const e=t.Y,r=e.constProps;if(r&&"object"==typeof r&&eo.call(r,"name")){const e=r.name;if(n&&e instanceof us)return Tc(e,n,":",t.$)}return Ui(e,"name")||""})(t,n),r=n?Co(n,e,null):null;if(null==r)return t.U=go(),To(t.U,Pe,e),n&&To(n,e,t.U),Xo(t.j,t.q,t.U,W(t)),!1;if(r===t.T);else{const i=r.parent;t.U=r,To(t.U,Pe,e),n&&To(n,e,t.U),Yo(t.j,t.U),Xo(t.j,t.q,t.U,W(t)),i&&ko(i)&&!i.firstChild&&nl(i)===He&&Zo(t.j,i.parent,i,!0)}return!0}function J(t){const n=t.H;if(n){for(const e of n.values())32&e.flags||(bt(t.$,t.j,e,t.O),Zo(t.j,t.q,e,!0));n.clear(),t.H=null}t.T=null}function H(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),H(t))).catch(n=>(t.$.handleError(n,e),H(t)));I(t,n,e)}if(t.L.length){const n=t.L.splice(0);return Promise.all(n).then(()=>H(t))}}function B(t){t.j=null,t.O=null}function Y(t,n=!0){const e=t.T&&il(t.T);if(null!==e){let r=e;for(;r;)bt(t.$,t.j,r,t.O),r=r.nextSibling;tl(t.j,t.T,e,n)}}function X(t){const n=T(t);if(null!==t.T&&t.T!==n)for(;t.T&&t.T!==n;){const n=t.T;t.T=j(t,t.T),t.q===n.parent&&(bt(t.$,t.j,n,t.O),Zo(t.j,t.q,n,!0))}}function G(t){if(null!==t.T&&_o(t.T)){const n=t.T;t.T=j(t,t.T),Zo(t.j,t.q,n,!0)}}function K(t,n,e){if(Fl(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(()=>Tc(i,e,r,t,s))}function tt(t,n,e,i,s){const o=t.M,l=i.then(t=>_(n,e,r(e,t,o),s));t.L.push(l)}function nt(t,n){n&&(t.innerHTML=n+"",t.setAttribute(Qe,"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(Ko(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=wo(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)||(Fl(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)||_(s,n,r(n,o,t.M),u):nt(s,o))}const f=n.key;f&&(t.U.key=f),t.M&&(eo.call(n.varProps,"class")||n.constProps&&eo.call(n.constProps,"class")||s.setAttribute("class",t.M)),Vo(t.j,t.q,t.U,P(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)&&Po(i.j,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.T&&ko(t.T),i=r&&e===nl(t.T),s=n.key;i&&s===(r&&t.T.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||Oo(t.$,n);const i=n.props;for(const s in e){const o=e[s];if(i&&eo.call(i,s)){const e=i[s];if(o!==e){if(o instanceof us&&e instanceof us&&St(o,e))continue;so(t,n,s,o,r)}}else null!=o&&so(t,n,s,o,r)}if(i)for(const s in i)eo.call(e,s)||":"===s.charAt(0)||br(s)||so(t,n,s,null,r)})(t,t.U||t.T,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.H?.has(r)||(t.H.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.T;if(i){const r=ko(i)?nl(i):null;if((pt(i)||$t(i,t.$.k))===e&&r===n)return i}t.W=new Map,t.J=[];const s=T(t);let o=t.T;for(;o&&o!==s;){const i=ko(o)?nl(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.T){const n=ko(t.T)?nl(t.T):null,e=pt(t.T)||$t(t.T,t.$.k);if(null!=e){const r=ot(n,e);t.H||=new Map,t.H.set(r,t.T),t.W?.delete(r)}}return}const e=T(t);let r=t.T;for(;r&&r!==n&&r!==e;){const n=ko(r)?nl(r):null,e=pt(r)||$t(r,t.$.k);if(null!=e){const i=ot(n,e);t.H||=new Map,t.H.set(i,r),t.W?.delete(i)}r=r.nextSibling}})(t,r),r})(t,n,e),t.U)return r||Xo(t.j,i,t.U,P(t)),t.T=t.U,t.U=null,!1;if(null!=r){const n=t.H?.get(r)||null;if(n){if(t.H.delete(r),s&&t.T){const n=pt(t.T)||$t(t.T,t.$.k);if(null!=n){const e=ot(ko(t.T)?nl(t.T):null,n);null!=e&&(t.H||=new Map,t.H.set(e,t.T))}}return n!==t.T&&Xo(t.j,i,n,P(t)),t.T=n,t.U=null,!1}}return!0}function ct(t,n,e){const r="F"===n,i=pt(t.T);if(!t.T||!Ro(t.T)||i!==e||r&&!e)return null===e||t.Z?(Qo(t.j,t.q,t.U=go(),W(t)),void(t.U.key=e)):void(ut(t,null,e,ot(null,e),t.q,!0)&&(Qo(t.j,t.q,t.U=go(),W(t)),t.U.key=e));lt(t,null,i)}function ft(t,n){const e=n[ff];let r=t.U||t.T;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.T),r){const e=Co(r,tr,t.$.k);if(!s){const l=((t,n,e,r)=>{let i=!1;if(e){const t=yt(n[Pi],e[Pi],e[Ai],r,!1);i||=t;const s=yt(n[ji],e[ji],e[Ai],r,!0);i||=s,e[Oi]=n[Oi]}else n&&(To(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&&(To(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 hs(mt,null,null,[],0,t),s=[];if(e){const t=e.props;if(t)for(const n in t)R(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=(ps(n)&&Ui(n,Pe)||"")+"",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.T),r){let e=r;for(;e&&(!Ro(e)||null===Co(e,Ee,null));)e=e.parent||Pl(e);const s=As(t.$,r,e||t.$.rootVNode,n,i.props);t.D.push(s,r)}}}function at(t,n,e,r){n&&un(t.$,n),Qo(t.j,t.q,t.U=go(),W(t));const i=t.Y;To(t.U,Ee,e),To(t.U,tr,r),t.U.key=i.key}function ht(t){Qo(t.j,t.q,t.U=go(),W(t));const n=t.Y;To(t.U,tr,n.props),n.key&&(t.U.key=n.key)}function dt(t,n){if(null!==t.T&&3===Cl(t.T))return n!==el(t.T)?void rl(t.j,t.T,n):void 0;Vo(t.j,t.q,t.U=vo((import.meta.env.TEST?t.$.document:document).createTextNode(n),n),P(t))}function pt(t){return null==t||_o(t)?null:t.key}function $t(t,n){if(null==t||_o(t))return null;const e=Co(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]),Li(e,r)||(s=!0)}if(n)for(const r in n)"children"===r||r===Fe||t&&eo.call(t,r)||!i||(delete n[r],Li(e,r)||(s=!0));return s}function wt(t){return!t||ti(t)}function bt(t,n,e,r=null){let i=e;if(_o(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!==Co(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=Nl(s);if(n&&1&s.h){s.h|=16,Kt(t,i,64,r);continue}(s instanceof Ri||Kl(s))&&un(t,s),(n||s instanceof Ti)&&no(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?Io(t.rootVNode,e):e;let l=il(i);for(;l;)bt(t,n,l,r),l=l.nextSibling;vt(n,i)}}}}}if(Eo(i)){if(i===e){const t=il(i);if(t)return void en(t,()=>{})}}else{const t=il(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&&nl(e)===He&&Zo(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 us))return!1;for(let e=0;e<t.length;e++){const r=t[e];if(r instanceof us&&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 _t(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,u=i.length,c=il(e),f=A(l,n,r,null),a=Array(u);if(null===c)return u>0?io(l,n,qt(i,a,s,o,0,u-1),e,null,null,r,null,!0,f):void 0;if(0===u)return void tl(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 io(l,n,qt(i,a,s,o,h,d),e,null,null,r,null,!0,f)}if(h>d)return void tl(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;Zo(n,e,t,!0),t=r}return}if(m===$){const t=y;return io(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)):Zo(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 _=new Uint8Array(w),R=(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<R.length;t++)_[q[R[t]]]=1;let E=d,C=y;const T=()=>{for(;E>=h;){const t=E-h;if(1===_[t]){C=g[k[t]],E--;continue}const s=k[t];if(-1!==s){const t=g[s];(null===C?e.lastChild===t:t.nextSibling===C)||Xo(n,e,t,C),C=t,E--;continue}let u=E;for(;u>h;){const t=u-1-h;if(1===_[t]||-1!==k[t])break;u--}const c=E-u+1,d=io(l,n,qt(i,a,null,o,u,E),e,C,C,r,null,!0,f);return $r(d,()=>{const t=_t(e,C,c);return C=t,E=u-1,T()})}};return T()}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 Ml){const r=o;if(!(4&r.h))continue;if(1&r.h)(e.afterFlushTasks||=[]).push(r);else{const s=!!(8&r.h),o=Al(r,n,t);dr(o)&&(s?i=i?i.then(()=>o):o:(e.extraPromises||=[]).push(o))}}}return i}function Ct(t,n){(t.props||={})[wi]=n}function Tt(t,n){(t.props||={})[bi]=n}function Pt(t,n){t.dirty&=-257;const e=(t=>{const n=t.props;return n?.[bi]??null})(t);if(!e)return;Tt(t,null);const r=t,i=r.parent,s=r.nextSibling,o=Uo(n,document,r,e),l=ko(r)&&i||r;Vo(n,l,o,l===r?null:s),t.dirty&=-33,t.dirtyChildren=null}function jt(t,n,e,r){t.dirty&=-3;const i=t;let s=(t=>{const n=t.props;return n?.[wi]})(t);if(s)return Ct(t,null),Fl(s)&&(s=s.value),ro(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(()=>As(e,s,s,o,l),t=>{const o=e.getHostProp(s,Ne);return n(()=>ro(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(to(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||={})[yi]??null)(t);if(!e||0===e.size)return;const r=t;for(const[t,i]of e.entries()){let e=i.value;Fl(e)&&(e=e.value),At(r,n,t,e,i.isConst,i.scopedStyleIdPrefix)}(t=>{delete(t.props||={})[yi]})(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 Ml&&16&n.h&&(n.h&=-17,no(n))}}function It(t,e){t.dirty&=-17;const r=e.getHostProp(t,vi);if(!r)return;const i=r.ut,s=Xn();return s.$=e,$r(n(()=>Hn.call(r,s,r.p)),()=>{if(2&r.h)return r.h&=-3,Ul(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=Wi(s,"items");Fl(o)&&(o=Rc(o));const l=Wi(s,"key$"),u=Wi(s,"item$"),c=l.resolved,f=u.resolved;return void 0!==c&&void 0!==f?Rt(n,e,i,r,o,c,f):$r(l.resolve(),t=>$r(u.resolve(),s=>Rt(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)lo(n,i[0],e);else{const t=(n.ownerDocument||n).createDocumentFragment();for(let n=0;n<i.length;n++)t.appendChild(i[n]);lo(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 Bs){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}lo(u.parent,u.target,u.beforeTarget)}else if(u instanceof Qs)(s.has(u.target)||e&&u.target===e||n&&u.target===n)&&o(),u.target.remove();else{if(u instanceof Js){(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 Ys){const t=u.target,e=u.attrName,i=u.attrValue,s=null!=i?r(e,i,u.scopedStyleIdPrefix):null,l=null==s||!1===s;uo(t,e)?t[e]=co(s):e===fr?(n===t&&o(),t.innerHTML=s,t.setAttribute(Qe,"html")):l?t.removeAttribute(e):"value"===e&&e in t?t.value=s:_(t,e,s,u.isSvg)}}}o()}function zt(){po||(po=!0,fo())}function Lt(){po||(po=!0,ho())}function Ut(){po=!1;const t=performance.now()+15;let n=null;for(;n=u();)if(Wt(n,t))return void Lt()}function Wt(t,n){const e=import.meta.env.TEST?Or():Zn,r=d(t);if(r.promise)return;const i=r.container;if(!t.dirty)return void Vt(i,t,r,e);const s=r.journal||=[];let o=null;for(;o=r.position;){if(r.promise)return;if(!(511&o.dirty)){h(i,r,Ht(o,t));continue}if(32&o.flags){if(64&o.dirty)Nt(o,i);else if(32&o.dirty){const n=Jt(i,r,o,t);if(null!==n){o=n;continue}}o.dirty&=-512,h(i,r,Ht(o,t));continue}let e;try{if(1&o.dirty)e=Et(o,i,r);else if(2&o.dirty)e=jt(o,i,s,t);else if(4&o.dirty)e=Ot(o,i,s,t);else if(128&o.dirty)e=Ft(o,i,s,t);else if(8&o.dirty)Mt(o,s);else if(16&o.dirty)e=It(o,i);else if(32&o.dirty){const n=Jt(i,r,o,t);if(null!==n){o=n;continue}}else 256&o.dirty&&Pt(o,s)}catch(t){i.handleError(t,o)}if(e&&dr(e)){r.promise=e,c(t,i);const n=o;return void e.catch(t=>{i.handleError(t,n)}).finally(()=>{r.promise=null,f(t,i),zt()})}if(performance.now()>=n)return!0}Vt(i,t,r,e)}function Vt(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=Al(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(()=>{Qt(t)});Qt(t)}}function Qt(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=Ht(i[0],r);return h(t,n,s),s}function Ht(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,Ht(e,n)}function Bt(t,n,e){mi.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(yi);if(e&&0!==e.size)for(const[i,s]of e.entries()){let e=s.value;Fl(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 Ml){const e=s;if(!(4&e.h))continue;const i=Al(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=Wi(e,"items");Fl(r)&&(r=Rc(r));const i=await Wi(e,"key$").resolve(),s=await Wi(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<$o.length;n++){const e=$o[n],r=$o[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)=>{$o.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($o.length=0)}if(i){const n=d(e);n.position!==e&&(n.position=t)}$o.push(e),e=e.slotParent||e.parent}$o.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=>{$o.push(t);let n=t.slotParent||t.parent;for(;n;){if(Yt(n))return Gt(n),$o.length=0,!0;$o.push(n),n=n.slotParent||n.parent}return $o.length=0,!1})(n)||Bt(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=Ao(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=il(n);for(;r;)_o(r)?(No(t,r),e(r,n)):ko(r)?e(r,n):nn(t,r,e),r=r.nextSibling}function en(t,n){let e=t;if(_o(t))return void n?.(t,null);let r=null;for(;;){if(n?.(e,r))return;const i=il(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=pl(t),u);)t=u,u=e.call(u);t=u}return null}function sn(t,n,e){t[ii]?((t,n)=>{for(const[e,r]of n)t.set(e,r)})(t[ii],e.k(n)):Object.defineProperty(t,ii,{get(){const r=e.k(n);return t[ii]=r,r},set(n){Object.defineProperty(t,ii,{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(ko(t)){const n=Vn(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(_o(o))l.push(pn(el(o)));else if(Ro(o)){const e=["["+(o.flags>>>12)+"]"];if(o.dirty&&e.push(" dirty:"+o.dirty),s){const t=Sl(s,o);for(let n=0;n<t.length;n++){const r=t[n];if(r!==qe&&r!==ar){const t=Co(o,r,null);e.push(" "+r+"="+pn(t))}}}const r=(i?"[34m":"")+(_e[Co(o,qe,null)||"V"]||_e.V)+(i?"[0m":"");l.push("<"+r+e.join("")+">");const u=il(o);u&&l.push(" "+on.call(u,t-1,n+" ",!0,!0,i)),l.push("</"+r+">")}else if(ko(o)){const r=nl(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?Sl(s,o):[];for(let t=0;t<c.length;t++){const n=c[t],e=Co(o,n,null);u.push(" "+n+"="+pn(e))}const f=ql(o);if(f){const t=bl(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("")+">"),qo(o)||e){const e=il(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){So(n)&&ko(n)&&sl(n);const e=n[ii];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 Ti)an(r,n);else if(r instanceof Ri)fn(t,r,n);else if(Ji(r))hn(r[Ai],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 us&&!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&&Qc(Jc(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(Nl(t))return`Task(${pn(t.wt)})`;if(xe(t))return`Qrl(${t.bt})`;if("object"==typeof t||"function"==typeof t){if(Ql.includes(t))return"*";try{if(Ql.push(t),Array.isArray(t))return So(t)?"("+(Co(t,qe,null)||"vnode")+")":t.map(pn);if(Fl(t))return t instanceof us?"WrappedSignal":t instanceof Ei?"ComputedSignal":"Signal";if(Kl(t))return"Store";if(ps(t))return Jl(t);if(So(t))return"("+(Co(t,qe,null)||"vnode")+")"}finally{Ql.pop()}}}catch(t){return console.error("ERROR in qwikDebugToString",t),"*error*"}return t}function $n(t,n,e){return new Proxy(n,new tu(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)),Dl(s,r),zl(r,t),(import.meta.env.TEST?!bc(e.$):Zn)&&Ll(r,e.$)}function yn(t,n,e,r){e[t]=n;const i=wn(e,t,r.ut);i&&Ul(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(qi);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=jr();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 Xc(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?Io(t.rootVNode,n):void 0:t.element?.ownerDocument}function qn(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function _n(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;)try{const e=i.pop();if(e===Au){const t=i.pop();await n(()=>i.push(t()));continue}if("function"==typeof e){e===Promise?i.push(await i.pop()):await e.apply(t);continue}En(t,s,e,r)}finally{const n=t.streamHandler.waitForPendingFlush();dr(n)&&await n}})()}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(Fl(e)){((t,n)=>{const e=n instanceof us?n.it():n;e instanceof Ti&&(!e._t||256&e.h||(t.kt(e),t.Rt.add(e)))})(t.serializationCtx,e),t.openFragment(Fi);const r=t.getOrCreateLastNode(),i=e instanceof us?e.it():e;n(t.closeFragment),n(()=>Tc(i,r,".",t)),n(Au)}else if(dr(e))t.openFragment(Fi),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}),await t.streamHandler.flush()});else{const i=e,s=i.type;if("string"==typeof s){((t,n)=>{null==Ui(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===js){t.openFragment(null!=i.key?{[Ze]:i.key}:{}),n(t.closeFragment);const e=i.children;null!=e&&n(e)}else if(s===Ms){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 us)return Tc(n,t,":",e)}return Ui(n,"name")||Ke})(o,i,t);s[Pe]=u,n(_n(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(_n(r,e.projectionScopedStyle,e.projectionComponentFrame))}else t.openFragment(Fi),t.closeFragment()}else if(s===Fs)t.commentNode(Ui(i,"data")||"");else if(s===zs){t.streamHandler.flush();const e=i.children;let s;s=ge(e)?e({async write(n){await Rn(t,n,{currentStyleScoped:r.currentStyleScoped,parentComponentFrame:r.parentComponentFrame}),await t.streamHandler.flush()}}):e,n(s),dr(s)&&n(Promise)}else if(s===Is)t.htmlNode(Ui(i,"data"));else if(s===Ds)t.streamHandler.streamBlockStart(),n(()=>t.streamHandler.streamBlockEnd()),n(i.children);else if(af(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[ff],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),As(t,r,r,i,s)})(t,i,s);if(n(_n(r,r.currentStyleScoped,r.parentComponentFrame)),n(t.closeComponent),dr(l))n(async()=>{const t=await l,i=wr(e.getProp(Ne));n(t),n(_n(r,i,o))});else{n(l);const t=wr(e.getProp(Ne));n(_n(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 As(t,i,n,e,r.props)})(t,e&&e.componentNode,s,i);n(r),dr(r)&&n(Promise)}}}function Cn(t,n,e,r){let i=null;const s=e,o=t=>{i=(null==i?"":i+"|")+t},l=n=>(n.bt.startsWith("_")||!n.Ct?.length&&!r||(n=Xc(null,"_run",C,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)),Tn(t,n,i);else if(null!=i){const e=Cn(t,n,i,r);e&&o(e)}}else xe(s)&&(i=l(s),Tn(t,n,s));return i}function Tn(t,n,e){const r=Sr(n);if(r){const[n,i]=r,s=((t,n)=>t+":"+n)(n,i);t.Tt.add(s),t.Pt.add(e)}}function Pn(){const t=kc();if(!t)return;Ju||=_u(Qu,"_hmr");const n=Ju.w([t.m]);Lu("qHmr",n)}function jn(t,n,e,r,i){const s=go();return To(s,Pe,i),s.parent=n,To(n,i,s),To(s,Ee,e),To(s,tr,r),s.dirty=4,Bt(t,s,1),s}function On(t,n){To(t,Ce,n),t.flags|=2048}function An(t,n,e){To(n,tr,e),Kt(t,n,4)}function Mn(t,n,e,r){To(n,r,null);const i=[];if(bt(t,i,e),Wo(i),2048&e.flags){const t=Co(e,Ce,null);t&&t.replaceChildren(),To(e,Ce,null),e.flags&=-2049}}function Nn(t,n,e){if(0===n)return e;const r=xu(t,n,e);return Ku(n)&&Xu(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=pu(null,null,()=>"",()=>{},new WeakMap);return n.kt(t),await n.jt(),""+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=nc(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=Vn(t);if(!n)throw Se(24);return Wn(n)}function Wn(t){const n=t;return n.qContainer||=new vc(n)}function Vn(t){return t.closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])")}function Qn(t){if(void 0===gc){const n=kc();if(n&&n.Mt)return n.Mt;if(void 0!==t)return t;throw Error("Reading `locale` outside of context.")}return gc}function Jn(t,n){const e=gc;try{return gc=t,n()}finally{gc=e}}function Hn(t,n,...e){return Bn.call(this,t,n,e)}function Bn(t,n,e){const r=Sc;try{return Sc=t,n.apply(this,e)}finally{Sc=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=kc();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",_e={V:"Virtual",F:"Fragment",S:"Signal",A:"Awaited",C:"Component",I:"InlineComponent",P:"Projection"},Re=124,Ee="q:renderFn",Ce="q:targetEl",Te="⚡️",Pe="q:slot",je="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",Ve="/"+We,Qe="q:container",Je="/"+Qe,He="q:template",Be="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=>Te+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(" ")},_r=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Rr=(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=""+Cr(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??"_"]}),Cr=(t,n,e)=>{const r=t.baseURI,i=new URL(n.getAttribute(ze)??r,r);return new URL(e,i)};let Tr=/*#__PURE__ */Er();const Pr=t=>Tr=t,jr=()=>Tr,Or=()=>!!ie&&Tr.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(),Vt:0,Qt:0}))(t,e),Lr.set(t,n)}return n},Lr=new Map;let Ur=0;const Wr=[],Vr=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<25))break;if(Wr.shift(),Kr(e),performance.now()>=t){n=!0;break}}n&&Wr.length&&!Jr&&(Jr=!0,Vr())}),Qr=Ar(i);let Jr=!1,Hr=!1,Br=!1;const Yr=import.meta.env.TEST?!Or():te,Xr=[],Gr=()=>{const t=Xr[Xr.length-1],n=t.Jt;if(t.Lt){const e=t.Ht;if(e>=t.Lt.length)return Xr.pop(),!1;const r=t.Lt[e];t.Ht=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)o=Math.min(.01,1-r.Bt);else{const t=(1-r.Bt*s)/r.Yt;o=Math.max(.02,i.Ut*t),r.Yt=t}return Xr.push({Jt:i,Ut:o,Xt:t.Xt}),!0}if(t.Xt?.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.Xt||new Set;return e.add(n),t.Xt=e,t.Lt=n.Lt,t.Ht=0,!1}return Xr.pop(),!1},Kr=t=>{if(t.At>=2)return;Ur++;const n=performance.now();t.Vt=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.Qt=r-n,t.At=4,e.remove(),Vr()},Nr.head.appendChild(e)},Zr=(t,n)=>{const e=zr(t);e&&((t,n)=>{Xr.unshift({Jt:t,Ut:n,Xt:void 0})})(e,n)};(import.meta.env.TEST?!Or():te)&&document.addEventListener("qsymbol",t=>{const{symbol:n,href:e}=t.detail;e&&(t=>{if(t?.length){if(Array.isArray(t))for(let n=t.length-1;n>=0;n--)Zr(t[n],0);else Zr(t,0);Yr?Qr():i()}})(n.slice(n.lastIndexOf("_")+1))});const ti=t=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0},ni=",",ei="2.0.0-beta.34-dev+8b055bb",ri=t=>1===t.nodeType,ii=Symbol();class si{[ii]=void 0}const oi=t=>"foreignObject"===t,li=t=>"svg"===t||oi(t),ui=t=>"math"===t,ci={elementNamespace:Be,elementNamespaceFlag:0};class fi{flags;parent;previousSibling;nextSibling;props;[ii]=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 ai extends fi{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 hi extends ai{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 di extends fi{node;text;constructor(t,n,e,r,i,s,o){super(t,n,e,r,i),this.node=s,this.text=o}}const pi=[],$i=[],mi=new WeakMap,yi=":nodeProps",wi=":nodeDiff",bi=":errorData",vi=":signal",gi=Symbol();class Si{consumer;property;backRef;data;constructor(t,n,e=null,r=null){this.consumer=t,this.property=n,this.backRef=e,this.data=r}}const ki=Symbol(),xi=Symbol(),qi=Symbol(),_i=(t,n)=>(e,r)=>{const i=Xn();return i.It=p(t,":"),i.$=n||void 0,Hn(i,()=>{if(ge(e))return e();if(r)return e[r];if(Fl(e))return e.value;if(we(e)&&Kl(e))return mn(Bl(e),qi,Hl(e),i.It),e;throw Se(2)})};class Ri{Gt;ut=void 0;$=null;Kt=null;constructor(t,n){this.$=t||kc()?.$||null,this.Gt=n}trigger(){Ul(this.$,this,this.ut)}force(){Ul(this.$,this,this.ut)}get untrackedValue(){return this.Gt}set untrackedValue(t){this.Gt=t}get value(){const t=this.untrackedValue,n=kc();if(!n)return t;null===this.$&&(this.$=n.$);const e=n.It;return e&&(Dl(this.ut||=new Set,e),zl(e,this),(import.meta.env.TEST?!bc(this.$):Zn)&&Ll(e,this.$)),t}set value(t){t!==this.Gt&&(this.Gt=t,Ul(this.$,this,this.ut))}valueOf(){if(re)throw Se(28)}toString(){return this.constructor.name}toJSON(){return{value:this.Gt}}}class Ei extends Ri{Zt;h;[ii]=void 0;constructor(t,n,e=17){super(t||kc()?.$,gi),this.Zt=n,this.h=e}invalidate(){this.h|=1;const t=Xn();t.$=this.$||void 0;const e=n(Bn.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.Gt}set untrackedValue(t){this.Gt=t}p(){if(!(1&this.h))return;const t=this.Zt;Il(t);const n=kc(),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 Ci{tn;nn=null;en=!1;rn=!0;constructor(t,n,e){this.tn=t,void 0!==n&&(this.info=n,this.sn=e)}get track(){return this.ln||=_i(this.tn,this.tn.$)}get abortSignal(){return(this.un||=new AbortController).signal}cache(){}get previous(){const t=this.tn.Gt;if(t!==gi)return t}cleanup(t){"function"==typeof t&&(this.cn||=[]).push(t)}}class Ti extends Ei{fn=!1;an=void 0;hn=null;[ii]=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.Gt=t}const s=r.concurrency;void 0!==s&&s>=0&&1!==s&&(this.dn=s,this.pn=[]);const o=r.timeout;o&&(this.$n=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.hn?.nn){if(this.Gt===gi||(import.meta.env.TEST?Or():Zn))throw this.hn?.nn;return this.Gt}if(this.an)throw this.an;if((import.meta.env.TEST?Or():Zn)&&64&this.h&&this.Gt===gi)throw Se(35);return this.Gt}set untrackedValue(t){this.Gt=t}get value(){return super.value}set value(t){if(this.h&=-2,this.untrackedLoading=!1,this.untrackedError=void 0,this.mn=void 0,this.pn)for(let t=0;t<this.pn.length;t++)this.pn[t].rn=!1;else this.hn&&(this.hn.rn=!1);this.yn(),super.value=t,this.wn()}get loading(){const t=this.untrackedLoading,n=kc();if(n&&(this.$||=n.$||null)){const t=n.It;t&&(Dl(this.dt||=new Set,t),zl(t,this),Ll(t,this.$))}return t}set untrackedLoading(t){t!==this.fn&&(this.fn=t,Ul(this.$,this,this.dt))}get untrackedLoading(){if(this.p(),(import.meta.env.TEST?Or():Zn)&&this.hn?.nn)throw this.hn?.nn;return this.fn}get error(){const t=this.untrackedError,n=kc();if(n&&(this.$||=n.$||null)){const t=n.It;t&&(Dl(this.$t||=new Set,t),zl(t,this),Ll(t,this.$))}return t}set untrackedError(t){t!==this.an&&(this.an=t,Ul(this.$,this,this.$t))}get untrackedError(){return this.an}get expires(){return this._t||0}set expires(t){this.yn(),this._t=t,this._t&&this.bn()&&this.wn()}get poll(){return!(256&this.h)}set poll(t){t?this.h&=-257:this.h|=256,this._t&&this.bn()&&(this.yn(),this.wn())}get interval(){const t=this._t||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.mn=t,this.sn=void 0===this.sn?1:this.sn+1),this.vn(!0,128&this.h)}vn(t,n){this.h|=1,this.yn(),n&&(this.Gt=gi),t&&(this.ut?.size||this.dt?.size||this.$t?.size)&&Promise.resolve().then(()=>this.p())}abort(t){this.hn&&this.gn(this.hn,t)}yt(){32&this.h&&!this.bn()&&(import.meta.env.TEST?!Or():te)&&setTimeout(()=>{this.bn()||this.abort()})}async promise(){for(this.p();this.hn?.nn;)await(this.hn?.nn)}p(){if(!(1&this.h))return;if((import.meta.env.TEST?Or():Zn)&&64&this.h)return this.fn=!0,void this.$?.serializationCtx.Rt.add(this);this.yn(),this.h&=-2;const t=this.hn;if(t&&this.gn(t),this.pn?this.pn.length>=(0===this.dn?1/0:this.dn??1):t?.nn)return void(this.h|=1);const n=new Ci(this,this.mn,this.sn);this.hn=n,this.pn&&this.pn.push(n),n.nn=this.Sn(n)}async Sn(t){let e=this.Zt.resolved;if(e||(this.untrackedLoading=!0,e=await this.Zt.resolve(),!t.un?.signal.aborted)){try{this.$n&&(this.kn=setTimeout(()=>{const n=Error(`timeout ${this.$n}ms`);this.xn(t,n),t.un?.abort(n)},this.$n));const r=n(e.bind(null,t));let i;if(dr(r)?(this.untrackedLoading=!0,i=await r):i=r,t.nn=null,t.rn){const n=this.pn;if(n){let e=!1;for(let r=n.length-1;r>=0;r--)n[r]===t?e=!0:e&&(n[r].rn=!1)}this.untrackedError=void 0,super.value=i}}catch(n){t.nn=null,this.xn(t,n)}(()=>t===this.hn)()&&(clearTimeout(this.kn),t.sn===this.sn&&(this.mn=void 0),1&this.h?this.p():(this.untrackedLoading=!1,this.wn()))}else t.nn=null}xn(t,n){t===this.hn&&t.rn&&(t.rn=!1,n instanceof Error&&"AbortError"===n.name||(this.untrackedError=n,this.untrackedValue=gi))}async qn(){this.yn(),clearTimeout(this.kn);const t=this.hn;t&&this.gn(t),this.pn?await Promise.all(this.pn.map(t=>t.nn)):await(t?.nn)}yn(){void 0!==this._n&&(clearTimeout(this._n),this._n=void 0)}wn(){if((import.meta.env.TEST?Or():Zn)||!this._t)return;this.yn();const t=!(256&this.h),n=128&this.h&&!t;this._n=setTimeout(()=>this.vn(t,n),this._t),this._n?.unref?.()}bn(){return!!(this.ut?.size||this.dt?.size||this.$t?.size)}gn(t,n){t.en||(t.en=!0,t.un?.abort(n),t.nn=$r(t.nn,()=>this.Rn(t)))}Rn(t){const n=t.cn,e=t=>{const n=this.$?.handleError;n?n(t,null):console.error("Error in async signal cleanup",t)},r=()=>{t.nn=null,n&&(n.length=0);const e=this.pn;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 Pi=Symbol(),ji=Symbol(),Oi=Symbol(),Ai=Symbol(),Mi=Symbol(),Ni=Symbol(),Ii=[],Fi={};Object.freeze(Ii),Object.freeze(Fi);class Di{owner;ut=void 0;$=null;constructor(t){this.owner=t}get(t,n){if(n===Pi)return this.owner.constProps;if(n===ji)return this.owner.varProps;if(n===Oi)return this.owner;if(n===Ai)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=Ui(this.owner,n),n in this.owner.varProps&&zi(this,n)}return r instanceof us&&4&r.h?r.value:r}set(t,n,r){if(n===Oi)this.owner=r;else if("children"===n)this.owner.children=r;else if(n===Pi)this.owner.constProps=r;else if(n===ji)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===Fi?this.owner.varProps={}:n in this.owner.varProps||(this.owner.toSort=!0),this.owner.varProps[n]!==r&&(this.owner.varProps[n]=r,Li(this,n))}return!0}deleteProperty(t,n){let e=delete this.owner.varProps[n];return e&&Li(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===Pi||n===ji)return!0;const r=n in this.owner.varProps;if("string"==typeof n&&(r&&zi(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 zi=(t,n)=>{const e=kc();e&&null===t.$&&e.$&&(t.$=e.$);const r=e?.It;r&&mn(t.owner._proxy,n,t,r)},Li=(t,n)=>{const e=((t,n)=>t?.get(n))(t.ut,n);return e&&Ul(t.$,t,e),!!e},Ui=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],Wi=(t,n)=>Vi(t)?.[n]||Qi(t)?.[n]||null,Vi=t=>t?ji in t?"children"in t?{...t[ji],children:t.children}:t[ji]:t:null,Qi=t=>t&&Pi in t?t[Pi]:null,Ji=t=>t&&ji in t,Hi=t=>(n,...e)=>t.call(null,sf(n),...e);class Bi extends Ei{constructor(t,n){super(t,n,17)}En=!1;p(){if(!(1&this.h))return;Il(this.Zt);const t=Rc(this.Zt.resolved),{deserialize:n,initial:e}=t,r=t.update,i=this.Gt===gi?e:this.Gt,s=Cc(()=>this.En?r?.(i)||i:n(i),this,".",this.$);this.En=!0,this.h&=-2,(this.En&&"undefined"!==s||s!==this.Gt)&&(this.Gt=s,Ul(this.$,this,this.ut))}}const Yi=(t,n)=>new Ei(n?.container||null,t,Vl(n?.serializationStrategy||"always")),Xi=(t,n)=>new Ti(n?.container||null,t,Vl(n?.serializationStrategy||"always"),n),Gi=t=>new Bi(null,t),Ki=t=>new Ri(null,t),Zi=/*#__PURE__*/Hi(Yi),ts=/*#__PURE__*/Hi(Xi),ns=Hi(Gi),es=t=>t.value,rs=(t,n)=>t[n],is=t=>1===t.length?Fl(t[0])?t[0].Kt||=new us(null,es,t,null):Kl(t[0])?new us(null,es,t,null):t[0].value:new us(null,rs,t,null),ss=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!we(n))return n[e];if(Fl(n))return n instanceof us&&4&n.h?n:is(t);if(Ji(n)){const r=n[Pi],i=n[ji];if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];if(Object.prototype.hasOwnProperty.call(i,e))return os(i[e],t)}else{const r=Bl(n);if(r)return os(r[e],t)}return n[e]},os=(t,n)=>Fl(t)?t:is(n),ls=(t,n)=>{const e=ss(t,n);return e===Mi?t[n]:e};class us extends Ri{lt;ot;xt;h;m=void 0;[ii]=void 0;constructor(t,n,e,r,i=5){super(t,gi),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,vi,this),Kt(this.$,this.m,16))}2&this.h&&(this.h&=-3,Ul(this.$,this,this.ut))}get untrackedValue(){return this.p(),this.Gt}p(){if(!(1&this.h))return;const t=Cc(()=>this.ot(...this.lt),this,".",this.$);this.h&=-3,t!==this.Gt&&(this.h|=2,this.Gt=t)}it(){return this.ot===es&&Fl(this.lt[0])?this.lt[0]:this}set value(t){throw Se(31)}get value(){return super.value}}class cs{data;constructor(t){this.data=t}}const fs=(t,n)=>{if("string"==typeof t){const e=Un(n);Qc(Jc(e,t))}return null},as=Object.prototype.hasOwnProperty;class hs{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||ti(n)?Fi:n,this.constProps=!e||ti(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 ds=(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]},ps=t=>re?t instanceof hs||!!(we(t)&&as.call(t,"key")&&as.call(t,"props")&&as.call(t,"type"))&&!Ji(t)&&(ae('Duplicate implementations of "JSXNode" found'),!0):t instanceof hs,$s="bind:value",ms="bind:checked",ys="passive:",ws="preventdefault:",bs=Object.prototype.hasOwnProperty,vs=(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},gs=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,Ss=(t,n,r,i,s=!1)=>{let o=t,l=s;for(let t=0;t<n.length;t++){const s=n[t],u=gs(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},ks=(t,n,e,r,i,s,o)=>new hs(t,n,e,r,i,s,!1,o),xs=(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(ys)?(s.push(i),t.add(vr(i.slice(8)))):i.startsWith(ws)?d.push(i):null!==gs(i)?r.push(i):i===ms?a=e[i]:i===$s&&(f=e[i])}if(n){let e=0;for(const r in n)w.set(r,e++),r.startsWith(ys)?(h.push(r),t.add(vr(r.slice(8)))):r.startsWith(ws)?p.push(r):null!==gs(r)?i.push(r):r===ms?a=n[r]:r===$s&&(f=n[r])}if(e){const n=e;e=vs(e,s,d,t,u),u=u||e!==n,e=Ss(e,r,$,t,u),u=u||e!==n}if(n){const e=n;n=vs(n,h,p,t,c),c=c||n!==e,n=Ss(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&&bs.call(n,ms)&&delete n[ms],e&&bs.call(e,ms)&&(u||(e={...e},u=!0),delete e[ms]),n.checked=a;const t=Xc(null,"_chk",y,null,[a]);if(e&&bs.call(e,"q-e:input")){u||(e={...e},u=!0);const t=e["q-e:input"];delete e["q-e:input"],l=ds(n,"q-e:input",t)||l}l=ds(n,"q-e:input",t)||l}else if(f){n&&bs.call(n,$s)&&delete n[$s],e&&bs.call(e,$s)&&(u||(e={...e},u=!0),delete e[$s]),n.value=f;const t=Xc(null,"_val",m,null,[f]);if(e&&bs.call(e,"q-e:input")){u||(e={...e},u=!0);const t=e["q-e:input"];delete e["q-e:input"],l=ds(n,"q-e:input",t)||l}l=ds(n,"q-e:input",t)||l}n&&bs.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&&bs.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 hs(t,n,e,r,i,s,l||!0,o)},qs=(t,n,e,r)=>Cs(t,n,r),_s=(t,n,e,r,i)=>Cs(t,{...e,...n},i),Rs=(t,n,e,r,i,s)=>Cs(t,{...e,...n,children:r},s),Es=t=>t.children,Cs=(t,n,e,r,i)=>xs(t,n,null,null,0,e,i),Ts=Cs,Ps=Cs,js=t=>t.children,Os=(t,n)=>new hs(Es,null,null,t.children,0,n),As=(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)||Fi)&&delete i.children,o=r.getFn(s);else if(af(r)){const t=r;o=()=>Bn(s,t,[i||Fi,null,0])}else{l=!0;const t=r;o=()=>Bn(s,t,[i||Fi])}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&&So(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()},Ms=t=>ks(Es,null,{[je]:""},t.children,0,t.name??""),Ns=Symbol(),Is=()=>null,Fs=()=>null,Ds=t=>t.children,zs=(t,n)=>Cs(Os,{children:Cs(Ls,t)},n),Ls=()=>null;let Us=null,Ws=null;const Vs=(t,n=[],e={})=>{let r=null;const i=t[Pi];if(i)for(const t in i)n.includes(t)||(r||={},r[t]=i[t]);const s=e,o=t[ji];for(const t in o)n.includes(t)||(s[t]=o[t]);return $(new hs(null,s,r,null,0,null))};class Qs{target;constructor(t){this.target=t}}class Js{target;constructor(t){this.target=t}}class Hs{target;text;constructor(t,n){this.target=t,this.text=n}}class Bs{target;parent;beforeTarget;constructor(t,n,e){this.target=t,this.parent=n,this.beforeTarget=e}}class Ys{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 Xs=t=>new Qs(t),Gs=t=>new Js(t),Ks=(t,n)=>new Hs(t,n),Zs=(t,n,e)=>new Bs(t,n,e),to=(t,n,e,r=null,i=!1)=>new Ys(t,n,e,r,i),no=t=>{if(t.qn){try{t.qn()}catch(t){he(!1,t)}t.qn=null}},eo=Object.prototype.hasOwnProperty,ro=(t,n,e,r,i,s,o)=>N(M(o,t,n,i,s),e,r),io=(t,n,e,r,i,s,o,l,u=!1,c)=>N(M(c,t,n,o,l),e,r,i,s,u),so=(t,n,e,r,i)=>{if(br(e))return void it(e,r,n.node,n,t);if(e===rr||e===ir)return To(n,e,r),void(n.flags|=192);const s=r;if("ref"===e&&K(r,n.node,i))return;const o=n[ii]?.get(e);if(Fl(r)){const i=r instanceof us?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.j,i,e,n,t.M,s)});return void t.L.push(o)}O(t.j,n,e,r,t.M,s)};let oo=null;const lo=(t,n,e)=>{oo||(oo=t.insertBefore),oo.call(t,n,e)},uo=(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,co=t=>"false"!==t&&!!t,fo=(ao=Ut,()=>queueMicrotask(ao));var ao;const ho=Ar(Ut);let po=!1;const $o=[],mo=(t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}},yo=t=>{let n=null;return e=>(n||(n=mo(e,t)),n.call(e))},wo=(t,n,e=null)=>{const r=new hi(e,-4087,null,null,null,null,null,null,t,n);return t.vNode=r,r},bo=t=>{const n=new hi(null,-4095,null,null,null,null,void 0,void 0,t,void 0);return t.vNode=n,n},vo=(t,n)=>new di(-4084,null,null,null,null,t,n),go=()=>new ai(null,-4094,null,null,null,null,null,null),So=t=>t instanceof fi,ko=t=>!(1&~t.flags),xo=t=>!!(5&t.flags),qo=t=>!(1&~t.flags)&&void 0!==t.firstChild&&void 0!==t.lastChild,_o=t=>!(4&~t.flags),Ro=t=>!(2&~t.flags),Eo=t=>!(2&~t.flags)&&null!==Co(t,Pe,null),Co=(t,n,e)=>{if(ko(t)||Ro(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},To=(t,n,e)=>{null==e&&t.props?delete t.props[n]:(t.props||={},t.props[n]=e)},Po=(t,n,e,r,i=null)=>{ko(n)&&(import.meta.env.TEST&&i&&To(n,ar,i),To(n,e,r),Zt(t,to(n.node,e,r,i,!!(512&n.flags))))},jo=t=>{if(t.key)return;const n=cl(t.node,cr);n&&(t.key=n)},Oo=(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(Qe)){const t=o.value;"html"===t?To(e,"dangerouslySetInnerHTML",r.innerHTML):"text"===t&&"value"in r&&To(e,"value",r.value)}else To(e,l,o.value);else{const t=o.value;t&&(e.key=t),s=!0}}null===Co(e,rr,null)&&null===Co(e,ir,null)||(n.flags|=64)}},Ao=t=>{if("_run"===t.bt){const n=t.getCaptured()?.[0];if(xe(n))return n}return t},Mo=(t,n,e)=>{let r=t;for(;e&&r&&Ro(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&&!Ro(e))return null;for(;e&&!(t=n?e.nextSibling:e.previousSibling);)if(e=e.parent,e&&!Ro(e))return null;if(!t)return null;if(_o(t)&&e&&ko(e))return null}for(;t;){if(r=t,5&r.flags&&ql(r))return r;t=n?r.firstChild:r.lastChild}}return null},No=(t,n)=>{const e=n;if(!(8&e.flags)){const r=Go(n,!0),i=e.node,s=bl(r);let o=Mo(n,!1,!0);const l=Mo(n,!0,!0),u=i||(l&&ko(l)?l.node:l?.node)||null;let c=u;for(;o&&_o(o);){if(!(8&o.flags)){const n=s.createTextNode(o.text);Zt(t,Zs(n,r,c)),c=n,o.node=n,o.flags|=8}o=Mo(o,!1,!0)}for(o=n;o&&_o(o);){const n=Mo(o,!0,!0),e=!n||!_o(n);if(!(8&o.flags)){if(e&&i)Zt(t,Ks(i,o.text));else{const n=s.createTextNode(o.text);Zt(t,Zs(n,r,u)),o.node=n}o.flags|=8}o=n}}},Io=(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(So(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=zo(e,n[t]);-1!=o&&(s.vNode=e,i.set(o,e))}if("string"==typeof n){const t=n.length;let r=Lo(n,t),i=0;for(;r<t;){const t=n.charCodeAt(r);i*=26,t>=97?i+=t-97:(i+=t-65,e=Fo(e,i),i=0),r++}}return e},Fo=(t,n)=>{let e=il(t);for(;e.flags>>>12!==n;)e=e.nextSibling;return e},Do=[],zo=(t,n)=>{let e=il(t);for(;e&&(!(e instanceof hi)||e.node!==n);)if(Ro(e)){const t=e.nextSibling,n=il(e);n?(t&&Do.push(t),e=n):e=t||(Do.length?Do.pop():null)}else{const t=e.nextSibling;e=t||t||Do.pop()}for(;Do.length;)Do.pop();return e},Lo=(t,n)=>{let e=0;for(;e<n;){if(!(t.charCodeAt(e)<=57))return e;e++}return n},Uo=(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=wo(i,"errored-host");if(xo(e))Xo(t,s,e,null);else{const n=[];nn(t,e,t=>{n.push(t)});for(let e=0;e<n.length;e++)Xo(t,s,n[e],null)}return s},Wo=Dt,Vo=(t,n,e,r)=>{const i=ko(n);i&&sl(n);const s=e.parent;if(e===r){if(s)return;r=null}Bo(t,s,n,e);const o=e.node,l=32&n.flags,u=i?n.node:Go(n,!1);u&&!l&&Zt(t,Zs(o,u,Jo(t,n,r)?.node??null)),Ho(n,e,r),l&&(e.flags|=32)},Qo=(t,n,e,r)=>{const i=ko(n);i&&sl(n);const l=e.parent;if(e===r){if(l)return;r=null}Bo(t,l,n,e);const u=32&n.flags,c=!i&&2048&n.flags?n.props?.[Ce]:null,f=c?null:i?n:Ko(n,!1),a=c||f?.node,h=Jo(t,n,r),d=h?.node??null;if(Eo(e)&&f&&1536&f.flags){const i=Ko(n,!1),l=Jo(t,n,r)?.node??null,{elementNamespace:u,elementNamespaceFlag:c}=o(i,e);nn(t,e,n=>{if(_o(n))Zt(t,Zs(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(ko(i)){f=i.node;const t=nl(i),l=i.parent,h=null==u?n:l&&Ko(l,!0);if(h){const t=o(h,nl(i));e=t.elementNamespace,r=t.elementNamespaceFlag}const d=il(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(ll(f)){const t=Wn(f);if(t){const n=il(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,Zs(n.node,a,l))}})}else a&&!u&&nn(t,e,n=>{Zt(t,Zs(n.node,a,d))});Ho(n,e,r),u&&(e.flags|=32)},Jo=(t,n,e)=>{let r=null;return null==e?Ro(n)&&(r=Mo(n,!0,!1)):r=Ro(e)?Mo(e,!0,!0):e,r&&_o(r)&&No(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},Bo=(t,n,e,r)=>{n&&(r.previousSibling||r.nextSibling||n!==e)&&Zo(t,n,r,!1)},Yo=(t,n)=>{let e=n;for(;e&&Ro(e);)e=e.lastChild;!e||!_o(e)||8&e.flags||No(t,e)},Xo=(t,n,e,r)=>{xo(e)?Vo(t,n,e,r):Qo(t,n,e,r)},Go=(t,n)=>{for(;t&&!ko(t);){if(2048&t.flags)return t.props?.[Ce];t=t.parent||(n?t.slotParent:null)}return t?t.node:null},Ko=(t,n)=>{for(;t&&!ko(t);)t=t.parent||(n?t.slotParent:null);return t},Zo=(t,n,e,r)=>{if(_o(e)&&No(t,e),r){if(null!==Co(n,fr,null))return;xo(e)?Zt(t,Xs(e.node)):nn(t,e,n=>{Zt(t,Xs(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},tl=(t,n,e,r=!0)=>{const i=Go(n,!0);if(i&&r)if(xo(n))Zt(t,Gs(n.node));else{const e=Ko(n,!1);e&&e.firstChild===n&&e.lastChild===n?Zt(t,Gs(i)):nn(t,n,n=>{Zt(t,Xs(n.node))})}const s=e.previousSibling;s?s.nextSibling=null:n.firstChild=null,n.lastChild=s},nl=t=>{const n=t;let e=n.elementName;if(void 0===e){const t=n.node,r=wl(t).toLowerCase();e=n.elementName=r,n.flags|=(t=>{switch(yl(t)){case Ye:return 512;case Xe:return 1024;default:return 0}})(t)}return e},el=t=>{let n=t.text;return void 0===n&&(n=t.text=t.node.nodeValue),n},rl=(t,n,e)=>{No(t,n),n.text=e,Zt(t,Ks(n.node,e))},il=t=>{if(_o(t))return null;let n=t.firstChild;return void 0===n&&(n=sl(t)),n},sl=n=>{const e=n;let r=e.firstChild;return void 0===r&&(r=e.parent&&ll(e.node)?e.firstChild=e.lastChild=null:(n=>{const e=n.node,r=ml(e),i=bl(e)?.qVNodeData?.get(e);return((n,e,r,i)=>{if(jo(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=vl(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=Tl(t);return!n||n&&ln(t)};let p=null;if(gl(e,($,m,y,w,b)=>{if(_l($())){for(;d(i);)if(!(i=dl(i)))throw Se(27,[e,$(),b]);a=null,u=null;let t=0;for(;_l($());)t*=10,t+=y()-48;for(;t--;){const n=bo(i);for(jo(n),c(n),i=dl(i);Tl(i)&&ln(i);)if(!(i=dl(i))&&t>0)throw Se(27,[e,$(),b])}}else if(59===$())To(n,Ne,m());else if(60===$())(p||=[]).push(n),To(n,Ee,m());else if(61===$()){h||(h=Un(r));const t=m();h.Cn(parseInt(t),n)}else if(62===$())To(n,tr,m());else if(64===$()){let e;w(b+1)===Re?(y(),e=decodeURI(t(m())),y()):e=m(),n.key=e}else if(91===$())To(n,nr,m());else if(94===$())To(n,er,m());else if(96===$())h||(h=Un(r)),sn(n,m(),h);else if(63===$())h||(h=Un(r)),n.slotParent=Io(h.rootVNode,m());else if(93===$())To(n,Ie,m());else if(123===$())y(),c(go()),El.push(n,o,l,u,s),s=0,n=l,o=l=null;else if($()===Re){const e=t(m()),r=t(m());To(n,e,r)}else if(125===$())y(),n.lastChild=l,s=El.pop(),u=El.pop(),l=El.pop(),o=El.pop(),n=El.pop();else if(126===$()){const e=t(m());To(n,Pe,e)}else{for(;Tl(i)&&ln(i);)i=dl(i);const t=i&&3===fl(i)?i:null;null===a&&(a=t?t.nodeValue:null,f=0);let n=0;for(;Rl($());)n+=y()-97,n*=26;n+=y()-65;const e=null===a?"":a.substring(f,f+n);c(u=((t,n,e)=>new di(-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 vl(n,r)})(n,e,r,i)})(e)),r};let ol=null;const ll=t=>(ol||(ol=t.hasAttribute),ol.call(t,Qe));let ul=null;const cl=(t,n)=>(ul||(ul=t.getAttribute),ul.call(t,n)),fl=yo("nodeType"),al=t=>{const n=fl(t);return 3===n||1===n};let hl=null;const dl=t=>{for(hl||(hl=mo(t,"nextSibling")),$l||($l=mo(t,"firstChild"));t;)if(null!==(t=hl.call(t))){const n=fl(t);if(3===n||1===n)break;if(8===n){const n=t.nodeValue;if(n?.startsWith(We))return rn(t,Le,hl,$l);if(t.nodeValue?.startsWith(Ue))return rn(t,[Le,Ve],hl,$l);if(n?.startsWith(Qe))for(;t&&(t=hl.call(t))&&(8!==fl(t)||!t.nodeValue?.startsWith(Je)););}}return t},pl=yo("parentNode");let $l=null;const ml=t=>{if($l||($l=mo(t,"firstChild")),(t=t&&$l.call(t))&&8===fl(t)&&t.nodeValue?.startsWith(We))return hl||(hl=mo(t,"nextSibling")),rn(t,Le,hl,$l);for(;t&&!al(t);)t=dl(t);return t},yl=yo("namespaceURI"),wl=yo("nodeName"),bl=yo("ownerDocument"),vl=(t,n,e)=>{let r=null;const i=()=>{for(;Tl(s)&&ln(s);)s=dl(s)};let s=n;i();let o=null;for(;s;){const n=fl(s);let e=null;3===n?e=vo(s,s.textContent??void 0):1===n&&(e=bo(s),jo(e)),e&&(e.parent=t,o&&(o.nextSibling=e),e.previousSibling=o,o=e),r||(t.firstChild=r=o),s=dl(s),i()}if(t.lastChild=o||null,t.firstChild=r,e){let n=null;gl(e,(e,r)=>{if(61===e()){n||(n=Un(t.node));const e=r();n.Cn(parseInt(e),t)}else 96===e()?(n||(n=Un(t.node)),sn(t,r(),n)):r()})}return r},gl=(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)},Sl=(t,n)=>{if(3&n.flags){Oo(t,n);const e=[],r=n.props;if(r)for(const t in r)t.startsWith(cr)||e.push(t);return e}return[]},kl=(t,n)=>{let e=xl(t);for(;e;){if(e===n)return!0;e=xl(e)}return!1},xl=t=>t.parent||t.slotParent,ql=t=>null===t||Ro(t)?null:t.node,_l=t=>48<=t&&t<=57,Rl=t=>97<=t&&t<=122,El=[],Cl=t=>{const n=t.flags;if(1&n)return 1;if(2&n)return 11;if(4&n)return 3;throw Se(26,[n])},Tl=t=>t&&"object"==typeof t&&1===fl(t),Pl=t=>{let n=1;for(;n--;){for(;t&&(!Ro(t)||null===Co(t,Ee,null));){const e=t.slotParent,r=Ro(t)&&e;r&&n++,t=r||t.parent}n>0&&(t=t.parent)}return t},jl=()=>{const t=qc(),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&&rc(t),e[r]=t),i:r,iCtx:t}},Ol=(t,n)=>{const{val:e,set:r,iCtx:i,i:s}=jl();if(e)return;r(1);const o=new Ml(6|(!1===n?.deferUpdates?0:8),s,i.m,t,void 0,null);r(o);const l=i.$,{Ft:u}=i,c=$r(u,()=>Al(o,l,i.m));dr(c)&&(i.Ft=c)},Al=(t,n,e)=>{const r=t.Tn;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(dr(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=Xn(n.Mt,e,"qTask");r.$=n;const o=t.wt.getFn(r,()=>un(n,t)),l=_i(t,n),[u]=((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();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.Tn===s&&(t.Tn=null),Al(t,n,e)));i(r)})});return dr(o)?(s=o.finally(()=>{t.Tn===s&&(t.Tn=null)}),t.Tn=s,s):o};class Ml extends si{h;Ht;ct;wt;At;qn;Pn;Tn=null;constructor(t,n,e,r,i,s){super(),this.h=t,this.Ht=n,this.ct=e,this.wt=r,this.At=i,this.qn=s}}const Nl=t=>t instanceof Ml,Il=t=>{if(!t.resolved)throw t.resolve()},Fl=t=>t instanceof Ri,Dl=(t,n)=>{t.add(n)},zl=(t,n)=>{(t.backRef||=new Set).add(n)},Ll=(t,n)=>{if(n?.serializationCtx){const e=t.consumer,r=t.property;let i=null;Nl(e)?i=e.wt:e instanceof Ei?i=e.Zt:":"===r&&(i=n.getHostProp(e,Ee)),i&&n.serializationCtx.Pt.add(i)}},Ul=(t,n,e)=>{const r=!import.meta.env.TEST||!Or();if(e){const i=e=>{const i=e.consumer,s=e.property;if(Nl(i))i.h|=4,Kt(t,i.ct,1);else if(i instanceof Ri)i.invalidate();else if(":"===s)Kt(t,i,4);else if("."===s)r&&(Ct(i,n),Kt(t,i,2));else{const o=e.data;if(o instanceof cs){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[yi];i||(i=new Map,r[yi]=i),i.set(n,e)})(i,s,l);else{const t=i;let n=t.getProp(yi);n||(n=new Map,t.setProp(yi,n)),n.set(s,l)}Kt(t,i,8)}}},s=Array.from(e);for(let t=0;t<s.length;t++)i(s[t])}},Wl=t=>we(t)&&"function"==typeof t[fc],Vl=t=>{let n=1;switch(t){case"never":n|=8;break;case"always":n|=16}return n},Ql=[],Jl=t=>{if(ps(t)){if("function"==typeof t.type){const n=t.type[ff];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+=Jl(r[t]);else n+=Jl(r);n+="</"+t.type+">"}else n+="/>"}return n}return t+""},Hl=t=>t[xi],Bl=t=>t?.[ki]||null,Yl=(t,n)=>{const e=Hl(t);e&&e.force(n)},Xl=(t,n)=>{const e=Hl(t);return!!e&&(e.ut?.get(n)?.size??0)>0},Gl=t=>Bl(t)||t,Kl=t=>ki in t,Zl=(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 tu{h;$;ut=void 0;constructor(t,n){this.h=t,this.$=n}toString(){return"[Store]"}force(t){const n=Bl(this);Ul(this.$,this,wn(n,t,this.ut))}get(t,n){if("symbol"==typeof n)return n===ki?t:n===xi?this:t[n];const e=kc(),r=t[n];if(e){if(null===this.$){if(!e.$)return r;this.$=e.$}const i=e.It;i&&mn(t,Array.isArray(t)?qi:n,this,i)}return"toString"===n&&r===Object.prototype.toString?this.toString:1&this.h&&we(r)&&!Object.isFrozen(r)&&!Kl(r)&&!Object.isFrozen(t)?Zl(r,this.h,this.$):r}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const r=1&this.h?Gl(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)||Ul(this.$,this,wn(t,n,this.ut)),!0)}has(t,n){if(n===ki)return!0;if("string"==typeof n){const e=kc();if(e){const r=e.It;r&&mn(t,Array.isArray(t)?qi:n,this,r)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=kc(),e=n?.It;return e&&mn(t,qi,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 nu=Symbol(),eu=[void 0,null,!0,!1,"",Ii,Fi,gi,qi,Ni,Ms,js,NaN,1/0,-1/0,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER-1,Number.MIN_SAFE_INTEGER],ru=["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"],iu=["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 su{jn;On=0;qt=[];An=0;Mn=new Set;Nn=new Map;In;Fn=new Map;Ot;Dn="undefined"!=typeof Temporal;constructor(t){this.jn=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(ni):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+ni+n);else if("string"==typeof n){const e=this.stringNeedsJsonEscape$(n)?JSON.stringify(n):'"'+n+'"';this.Ot.write(t+ni);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+ni),this.outputArray(n,!!e,(t,n)=>{this.writeValue(t,n)})}getSeenRefOrOutput(t,n,e){let r=this.jn.getSeenRef(t);const i=!e&&this.Nn.get(t);if(!r){if(e)return!0;if("number"!=typeof i)return this.jn.zn(t,this.In,n);r=this.jn.kt(t,!0)}r.In&&(this.In?this.jn.Ln(r):(this.jn.Ln(r,n),t=this.jn.Un[n])),"number"==typeof i&&(this.qt[i]=r.Ht,this.Nn.delete(t));const s=t instanceof hu?t.Wn:r.Ht;if(!this.In&&s===n)return r;this.output(1,s)}writeValue(t,n){if(lc(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===gi?this.output(3,7):t===qi?this.output(3,8):t===Ni?this.output(3,9):t===nu&&this.output(3,0);break;case"function":if(t===Ms)this.output(3,10);else if(t===js)this.output(3,11);else if(xe(t)){if(this.getSeenRefOrOutput(t,n)){const[n,e,r]=bn(this.jn,t,!0);let i;if(""!==n){i=`${this.jn.kt(n)}#${this.jn.kt(e)}${r?"#"+r:""}`;const s=this.Fn.get(i);if(s){const t=this.jn.kt(s);return void this.output(1,t)}this.Fn.set(i,t)}else i=+e;this.output(9,i)}}else{if(!af(t))throw Se(34,[""+t]);{const[n]=t[ff];this.jn.Vn.add(n.bt),this.output(29,[n])}}break;case"object":if(t===Ii)this.output(3,5);else if(t===Fi)this.output(3,6);else if(null===t)this.output(3,1);else if(t instanceof hu)this.output(1,t.Wn);else{const e=this.getSeenRefOrOutput(t,n);if(e){const n=this.In;this.In=e,this.writeObjectValue(t),this.In=n}}break;default:throw Se(20,[typeof t])}}writeObjectValue(t){if(Ji(t)){const n=t[Oi];this.output(38,[fu(n),n.varProps,n.constProps,t[Ai].ut])}else if(t instanceof cs)this.output(39,[t.data.M,t.data.et]);else if(t instanceof Si)this.output(40,[t.consumer,t.property,t.data]);else if(Kl(t)){const n=Hl(t),e=Bl(t),r=n.h,i=n.ut,s=[];for(const t in e){const n=this.jn.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(Wl(t)){const n=t[fc](t);if(dr(n)){const t=this.resolvePromise(n,(t,n)=>new ou(34,t,n,void 0,void 0));this.output(2,t)}else{const t=this.In.Ht;this.In=this.In.In,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];lc(r)||n.push(this.maybeNumericObjectKey$(e),r)}this.output(5,n.length?n:0)}else if(this.jn.Qn(t))t.Jn.vnodeData[0]|=16,this.output(11,t.Jn.id);else if(t instanceof Ri){if(t instanceof Bi){const n=((t,n)=>n===gi?n:$r(t.Zt.resolved||t.Zt.resolve(),t=>{let e;return"function"==typeof t&&(t=t()),t.serialize?e=t.serialize(n):"object"==typeof n&&fc in n&&(e=n[fc](n)),void 0===e&&(e=gi),e}))(t,t.Gt);if(dr(n)){const e=this.resolvePromise(n,(n,e)=>new ou(34,n,e,t.ut,t.Zt));this.output(2,e)}else this.output(34,[t.Zt,t.ut,n]);return}if(t instanceof us)this.output(31,[...Sn(this.jn,t),t.h,t.m,...t.ut||[]]);else if(t instanceof Ei){let n=t.Gt;const e=16&t.h,r=8&t.h,i=1&t.h,s=lc(t.Gt),o=t instanceof Ti,l=o&&0!==t._t?t._t:void 0,u=o&&1!==t.dn?t.dn:void 0,c=o&&0!==t.$n?t.$n:void 0,f=o&&-25&t.h||void 0;i||s?n=gi:e?n=t.Gt:r&&(n=gi);const a=[t.Zt,t.ut];o&&(a.push(t.dt,t.$t,t.an),a.push(f||void 0)),n===gi&&void 0===l&&void 0===u&&void 0===c||a.push(void 0===n?nu:n),o&&(a.push(l),a.push(u),a.push(c)),this.output(o?33:32,a)}else{const n=t.Gt,e=[void 0===n?nu: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.Dn&&t instanceof Temporal.Duration)this.output(15,t.toJSON());else if(this.Dn&&t instanceof Temporal.Instant)this.output(16,t.toJSON());else if(this.Dn&&t instanceof Temporal.PlainDate)this.output(17,t.toJSON());else if(this.Dn&&t instanceof Temporal.PlainDateTime)this.output(18,t.toJSON());else if(this.Dn&&t instanceof Temporal.PlainMonthDay)this.output(19,t.toJSON());else if(this.Dn&&t instanceof Temporal.PlainTime)this.output(20,t.toJSON());else if(this.Dn&&t instanceof Temporal.PlainYearMonth)this.output(21,t.toJSON());else if(this.Dn&&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.jn.Hn(t)){const n=this.jn.kt(t);this.jn.Bn(t,"q:id",n+""),this.output(10,t.id);const e=t.vnodeData;if(e&&(lu(e,t=>this.jn.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(ps(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 Ml){const n=[t.wt,t.h,t.Ht,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 ou(24,t,n));this.output(2,n)}else if(t instanceof ou)if(34===t.Yn)if(t.wt)this.output(34,[t.wt,t.ut,t.Xn]);else{if(!t.Gn)throw console.error(t.Xn),Se(33);{const n=this.In.Ht;this.In=this.In.In,this.writeValue(t.Xn,n)}}else this.output(24,[t.Gn,t.Xn]);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 cu){const n=t.Kn;if(this.getSeenRefOrOutput(n,this.In.Ht,!0)){let t=this.Nn.get(n);void 0===t&&(t=this.An++,this.Nn.set(n,t),this.qt[t]=-1),this.output(2,t)}}else{if(!So(t))throw Se(20,[typeof t]);this.output(3,0)}}resolvePromise(t,n){const e=this.An++;return t.then(r=>{this.Mn.delete(t),this.qt[e]=this.jn.kt(n(!0,r))}).catch(r=>{this.Mn.delete(t),this.qt[e]=this.jn.kt(n(!1,r))}),this.Mn.add(t),e}async outputRoots(){this.Ot.write("[");const{Un:t}=this.jn;for(;this.On<t.length||this.Mn.size;){0!==this.On&&this.Ot.write(ni);let n=!1;for(;this.On<t.length;this.On++)n?this.Ot.write(ni):n=!0,this.writeValue(t[this.On],this.On);if(this.Mn.size)try{await Promise.race(this.Mn)}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(ni),this.Ot.write(14+ni);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 ou{Yn;Gn;Xn;ut;wt;constructor(t,n,e,r,i){this.Yn=t,this.Gn=n,this.Xn=e,this.ut=r,this.wt=i}}const lu=(t,n)=>{const e=t.length;for(let r=0;r<e;r++){const e=t[r];if(uu(e))for(const t in e){const r=e[t];null==r||"string"==typeof r||t===tr&&ti(r)||n(r)}}},uu=t=>"object"==typeof t&&null!==t&&!ti(t);class cu{Kn;constructor(t){this.Kn=t}}const fu=t=>new cu(t);let au=()=>!1;class hu{Wn;constructor(t){this.Wn=t}}class du{NodeConstructor;DomRefConstructor;St;Bn;ht;Ot;Zn=new Map;te=new Map;ne=[];Un=[];Rt=new Set;Pt=new Set;Tt=new Set;Vn=new Set;ee;constructor(t,n,e,r,i,s){this.NodeConstructor=t,this.DomRefConstructor=n,this.St=e,this.Bn=r,this.ht=i,this.Ot=s,this.ee=new su(this)}async jt(){return await this.ee.serialize()}getSeenRef(t){return this.Zn.get(t)}zn(t,n,e){const r={Ht:e,In:n};return this.Zn.set(t,r),r}re(t){const n=[];for(;t.In;)n.unshift(t.Ht),t=t.In;return n.unshift(t.Ht),n.join(" ")}Ln(t,n){const e=this.re(t);void 0===n&&(n=this.Un.length),this.Un[n]=new hu(e),t.In=null,t.Ht=n}kt(t,n=!1){let e,r=this.Zn.get(t);return r?(r.In&&this.Ln(r),e=r.Ht):(e=this.Un.length,r={Ht:e},this.Zn.set(t,r),this.Un.push(t)),n?r:e}Hn(t){return!!this.NodeConstructor&&t instanceof this.NodeConstructor}Qn(t){return!!this.DomRefConstructor&&t instanceof this.DomRefConstructor}ie(t){const n=this.Zn.get(t);return n&&(n.In?void 0:n.Ht)}gt(t,n,e){const r=null==t;r&&(t=e.serialized||""+e);let i=this.te.get(t);if(void 0===i)if(i=this.ne.length,this.te.set(t,i),r)this.ne.push(t);else{let e="(";for(let t=0;t<n;t++)e+=(0==t?"p":",p")+t;this.ne.push(e+=")=>"+t)}return i}}const pu=(t,n,e,r,i,s)=>{if(!s){const t=[];s={write:n=>{t.push(n)},toString:()=>t.join("")}}return au=n?t=>t instanceof n:()=>!1,new du(t,n,e,r,i,s)},$u=(t,n)=>t[n],mu=(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(Kl(t)&&(t=Bl(t)),r==Object.prototype){for(const e in t)if(!mu(Rc($u,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(!mu(t[e],n))return!1}return!0}if(Nl(t))return!0;if(Ji(t))return!0;if(dr(t))return!0;if(ps(t))return!0;if(Wl(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 cs)return!0;if(au?.(t))return!0}else if("function"==typeof t){if(xe(t)||af(t)||t===Ms||t===js)return!0}else if(t===Ni||t===gi||t===qi)return!0;return!1},yu=(t,n)=>{let e=So(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 wu=!1;const bu=(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&&(wu=!0);const t=`{${we(c)?c.constructor.name:typeof c}}`;l.push(`${i}${t}${s} ${yu(c,e+" ")}`)}else 3===u?c=gu(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${bu(c,n,e+" ")}\n${e}]`:"[]"),l.push(`${i}${vu(u)}${s} ${c}`)}const u=l.map((t,n)=>`${e}${o?n+" ":""}${t}`).join("\n");if(o){const n=wu?"":`(${JSON.stringify(t).length} chars)`;return wu=!1,`\n${u}\n${n}`}return u},vu=t=>iu[t]||`Unknown(${t})`,gu=t=>ru[t]||`Unknown(${t})`,Su=new WeakMap,ku=new Map,xu=(t,n,e)=>{switch(n){case 0:case 14:return e;case 1:return t.k(e);case 2:if(!t.qt)return Ni;const r=t.qt[e];return-1===r||void 0===r?Ni:t.k(r);case 3:return eu[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 Ml(-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 cf(null);case 30:return new Ri(t,0);case 31:return new us(t,null,null,null);case 32:return new Ei(t,null);case 33:return new Ti(t,null,void 0,{});case 34:return new Bi(t,null);case 35:{const n=e,r=n[0],i=n[1],s=xu(t,r,i),o=Zl(s,0,t);return Ku(r)&&ku.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 hs(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 Su.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(So(f))return sl(f),ql(f);throw Se(17,[typeof f]);case 39:return new cs({});case 40:return new Si(null,null,null,null);default:throw Se(18,[n])}},qu=(t,n,e)=>{let r=null,i=null;if(ge(t))i=t;else{if(!ve(t))throw Se(7,[t]);r=t}return Xc(r,n,null,i,e)},_u=(t,n,e)=>Xc(null,n,t,null,e),Ru=(t,n)=>Xc(null,t,null,null,n),Eu=(t,n,e)=>{const r=Ru(t,e);return r.se(n),r},Cu=(t,n,e,r)=>{const i=qu(t,n,r);return i.se(e),i},Tu=(t,n,e,r)=>{const i=_u(t,n,r);return i.se(e),i},Pu=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t),ju=(t,n,e)=>new us(null,t,n,e||null);class Ou{oe;ht;Mt;k;Dt;le=0;ue=null;ce=null;l=null;u=null;o=0;constructor(t,n){this.Dt=t,this.Mt=n,this.oe=ei,this.ht=new WeakMap,this.k=()=>{throw Error("Not implemented")}}trackSignalValue(t,n,e,r){return Tc(t,n,e,this,r)}serializationCtxFactory(t,n,e,r){return pu(t,n,e,this.setHostProp.bind(this),this.ht,r)}ft(){0===this.o&&(this.u?.(),this.l=null)}}class Au{}const Mu=()=>Vc,Nu=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}},Iu=(t,n)=>{const{val:e,set:r,iCtx:i}=jl();if(e)return e;const s=Xc(null,"_rsc",Nu,null,[t,{}],i.$),o=Xi(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},Fu=({value:t,onResolved:n,onPending:e,onRejected:r})=>{if(dr(t))return t.then(n,r);const i=Du(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)},Du=t=>t&&"resource"===t.__brand,zu=(t,n,e)=>{Wu(e?.passive?"q-ep:":"q-e:",t,n,e)},Lu=(t,n,e)=>{Wu(e?.passive?"q-dp:":"q-d:",t,n,e)},Uu=(t,n,e)=>{Wu(e?.passive?"q-wp:":"q-w:",t,n,e)},Wu=(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=qc(),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)}}},Qu=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);Qc(Jc(t,this))}const e=Vc[0];Kt(Un(n),e,4);const r=n.ownerDocument;r.__hmrDone=r.__hmrT};let Ju,Hu=Promise.resolve();const Bu=new Set(["constructor","prototype","toString","valueOf","toJSON","then"]),Yu=(t,n)=>"number"==typeof t||"string"==typeof t&&"__proto__"!==t&&("function"!=typeof n||!Bu.has(t)),Xu=(t,n,e,r)=>{if(0!==e)switch(4!==e&&Array.isArray(r)&&(r=Gu(t,r)),e){case 4:Gu(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];Yu(e,i)&&(n[e]=i)}break;case 28:const i=n,s=r;i.wt=s[0],i.h=s[1],i.Ht=s[2],i.ct=s[3],i.At=s[4];break;case 29:n[ff][0]=r[0];break;case 35:{const e=Gl(n),i=ku.get(e);i&&(ku.delete(e),Xu(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.Gt=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.Gt=gi,e.h=i[2],e.h|=1,e.m=i[3],e.ut=new Set(i.slice(4)),(t=>{if(null!==t.m&&So(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=Co(n,e,null);if(null!==i){t.Gt=i,r=!0;break}}}if(!r){const e=il(n);e&&n.firstChild===n.lastChild&&_o(e)&&(t.Gt=el(e))}}})(e),In(e.ut,e);break}case 33:{const t=n,e=r;t.Zt=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.an=e[4]),t.h=e[5]??0,64&t.h&&(t.fn=!0),e.length>6&&(t.Gt=e[6]),t.Gt===gi&&(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.dn=e[8]??1,t.pn=[]),t.$n=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.Zt=s[0];const o=i.Zt.resolve(t).catch(()=>{});Hu=Hu.finally(()=>o),s[1]&&(i.ut=new Set(s[1])),s.length>2&&(i.Gt=s[2]),34!==e&&i.Gt!==gi&&(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]=Su.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===Ni&&(a=new hs(js,f[1],f[2],null,0,null),a._proxy=c),c[Oi]=a;const h=c[Ai];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[ii]||=new Map,e[ii].set(t.property,t))})(t);break}default:throw Se(16,[e])}},Gu=(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},Ku=t=>t>=23||4===t||5===t,Zu=new WeakMap,tc=Symbol(),nc=(t,n)=>{if(!Array.isArray(n)||So(n)||we(e=n)&&tc in e)return n;var e;let r=Zu.get(n);if(!r){const e=Array(n.length/2).fill(void 0);r=new Proxy(e,new ec(t,n)),Zu.set(n,r)}return r};class ec{$;fe;ae;constructor(t,n){this.$=t,this.fe=n,this.ae=this.fe.length/2}get(t,n,e){if(n===tc)return t;const r="number"==typeof n?n:"string"==typeof n?parseInt(n,10):NaN;if(Number.isNaN(r)||r<0||r>=this.ae)return Reflect.get(t,n,e);const i=2*r,s=this.fe[i],o=this.fe[i+1];if(0===s)return o;const l=this.$,u=xu(l,s,o);return Reflect.set(t,n,u),this.fe[i]=0,this.fe[i+1]=u,Ku(s)&&Xu(l,u,s,o),u}has(t,n){return n===tc||Object.prototype.hasOwnProperty.call(t,n)}set(t,n,e,r){if(n===tc)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.fe.length/2)return i;const o=2*s;return this.fe[o]=0,this.fe[o+1]=e,!0}}const rc=(t,n)=>Rc(ic,t,new WeakSet,"_",n),ic=(t,n,e,r)=>{const i=Gl(t);if(null==i)return t;if(oc(i)){if("object"==typeof i){if(n.has(i))return t;n.add(i)}if(Fl(i))return t;if(mu(i))return t;if(i.__brand||i.__brand__)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]);ic(s,n,e+"["+t+"]"),r=t+1}return t}if(i instanceof fi)return t;if(ye(i)){for(const[t,r]of Object.entries(i))ic(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},sc=/*#__PURE__*/new WeakSet,oc=t=>!we(t)&&!ge(t)||!sc.has(t)&&!(cc in t),lc=t=>!!t&&(we(t)||"function"==typeof t)&&(sc.has(t)||cc in t),uc=t=>((we(t)&&null!==t||"function"==typeof t)&&sc.add(t),t),cc=Symbol(),fc=Symbol(),ac=t=>/*#__PURE__*/Object.freeze({id:gr(t)}),hc=(t,n)=>{const{val:e,set:r,iCtx:i}=jl();void 0===e&&(re&&pc(t),re&&rc(n),i.$.setContext(i.m,t,n),r(1))},dc=(t,n)=>{const{val:e,set:r,iCtx:i}=jl();if(void 0!==e)return e;re&&pc(t);const s=i.$.resolveContext(i.m,t);if("function"==typeof n)return r(Hn(void 0,n,s));if(void 0!==s)return r(s);if(void 0!==n)return r(n);throw Se(8,[t.id])},pc=t=>{if(!we(t)||"string"!=typeof t.id||0===t.id.length)throw Se(11,[t])},$c=t=>{const n=xc(),e=n.m;if(e)return n.$?.resolveContext(e,t)},mc=/*#__PURE__*/ac("qk-error"),yc=t=>33<=t&&t<=46,wc=(t,n,e)=>{let r=0;for(;n<e;){const e=t.charCodeAt(n);if(92===e)n+=2;else{if(0===r&&yc(e))break;123===e?r++:125===e&&r--,n++}}return n},bc=t=>t instanceof vc;class vc extends Ou{element;qContainer;qManifestHash;rootVNode;document;ht=new WeakMap;he;ue;qt=null;vNodeLocate=t=>Io(this.rootVNode,t);de;pe;$e=null;constructor(t){if(super({},t.getAttribute("q:locale")),this.qContainer=t.getAttribute(Qe),!this.qContainer)throw Se(25);this.document=t.ownerDocument,this.element=t,this.ce=t.getAttribute(ze),this.ue=t.getAttribute("q:instance"),this.qManifestHash=t.getAttribute("q:manifest-hash"),this.rootVNode=bo(this.element),this.de=[],this.pe=[];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(;yc(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=wc(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.he=De(n,this.ue)||Ii,this.me(),t.setAttribute(Qe,"resumed"),t.qContainer=this,t.qDestroy=()=>this.qn();const e=t.querySelectorAll('script[type="qwik/state"]');0!==e.length&&(this.de=JSON.parse(e[e.length-1].textContent),kn(this.de,this),this.pe=nc(this,this.de)),this.ye(),!se&&t.isConnected&&t.dispatchEvent(new CustomEvent("qresume",{bubbles:!0}))}qn(){this.vNodeLocate=()=>null,this.de.length=0,this.pe.length=0,this.k=()=>{};const t=this.element;t.qContainer=void 0,t.qVnodeData=void 0,t.qVNodeRefs=void 0,t.removeAttribute(Qe),t.ownerDocument.qVNodeData=void 0}ye(){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)}}Cn(t,n){this.pe[t]=n}parseQRL(t){return gn(t,this)}handleError(t,n){if(re&&n&&("undefined"!=typeof document&&(Tt(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,mc);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(Ro(n)){if(null!==Co(n,Ee,null))return n;n=n.parent||n.slotParent}else n=n.parent;return null}setHostProp(t,n,e){To(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 Co(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.pe);getSyncFn(t){return this.he[t]}we(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)}}me(){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 gc,Sc;const kc=()=>Sc,xc=()=>{const t=kc();if(!t)throw Se(9);return t},qc=()=>{const t=kc();if(!t||t.Nt!==Ge)throw Se(10);return t},_c=(t,n)=>{const e=Un(n),r=Io(e.rootVNode,n),i=e.Mt;i&&(t=>{gc=t})(i);const s=Xn(i,r,t);return s.$=e,s},Rc=(t,...n)=>{if("function"==typeof t){if(!Sc)return t(...n);{const e=Sc.It;try{return Sc.It=void 0,t(...n)}finally{Sc.It=e}}}return Fl(t)?t.untrackedValue:Gl(t)},Ec=/*#__PURE__*/Yn(void 0,void 0,void 0),Cc=(t,n,e,r,i)=>{const s=Ec.It,o=Ec.$;try{return Ec.It=p(n,e,i),Ec.$=r,Bn(Ec,t)}finally{Ec.It=s,Ec.$=o}},Tc=(t,n,e,r,i)=>(t instanceof us&&t.m!==n&&n&&(t.m=n),Cc(()=>t.value,n,e,r,i)),Pc=()=>kc()?.m,jc=()=>{const t=kc();if(t)return t.Nt},Oc=()=>{const t=kc();if(t)return t.$},Ac=t=>t,Mc=t=>t.l||Promise.resolve();let Nc=(t,n,e,r,i)=>new Ic(t,n,e,r,i);class Ic{vt;bt;be;ve;$;constructor(t,n,e,r,i){var s;this.vt=t,this.bt=n,this.be=e,this.ve=r,r&&this.ge(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)}ge(t){this.ve=t,dr(t)&&t.then(t=>this.ve=t,t=>{console.error(`qrl ${this.bt} failed to load`,t),this.ve=null})}Se(){if(null!=this.ve)return this.ve;if(""===this.vt){const t=this.$.ue,n=this.$.element?.ownerDocument||document,e=De(n,t);return this.ve=e[+this.bt]}this.vt&&Kn(this.vt,1);const t=this.bt,n=this.be?this.be().then(n=>n[t]):jr().importSymbol(this.$?.element,this.vt,t);return this.ge(n),this.ve}}import.meta.hot&&(t=>{if(!import.meta.hot)return;const n=new Map;Nc=(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.be?.toString();if(l){const n=l.replace(/import\((['"])(.+?)\1\)/,(t,n,r)=>`import(${n}${e(r,i)}${n})`);if(n!==l)try{t.be=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.ve=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)}}})})(Ic);const Fc=Symbol(),Dc=t=>t?.[Fc]??t;class zc{ke;resolved=void 0;Ct;$;constructor(t,n,e){this.ke=t,re&&((t,n,e)=>{if(n&&"object"==typeof n)for(let t=0;t<n.length;t++)rc(n[t],"Captured variable in the closure can not be serialized");t.qrls&&t.qrls.add(new WeakRef(e))})(t,n,this),n&&(this.Ct=n,"string"==typeof n&&(this.$=e)),null==t.ve||"string"==typeof this.Ct||dr(t.ve)||(this.resolved=Bc(this,t.ve))}}const Lc=function(t,...n){const e=Dc(this);if(e.resolved)return e.resolved.apply(t,n);const r=kc();return Uc.call(e,r?.$).then(()=>Bn.call(t,r,e.resolved,n))},Uc=async function(t){const n=Dc(this);return $r(Yc(n,t),()=>n.resolved)},Wc=Object.create(Function.prototype,{resolved:{get(){return this[Fc].resolved},set(t){this[Fc].resolved=t}},Ct:{get(){return this[Fc].Ct},set(t){this[Fc].Ct=t}},$:{get(){return this[Fc].$},set(t){this[Fc].$=t}},ke:{get(){return this[Fc].ke}},vt:{get(){return this[Fc].ke.vt}},bt:{get(){return this[Fc].ke.bt}},st:{get(){return this[Fc].ke.st}},dev:{get(){return this[Fc].ke.dev}},...re?{se:{value(t){this[Fc].ke.dev=t}}}:void 0,xe:{value:Lc},w:{value:function(t){const n=Dc(this);return Gc(new zc(n.ke,t,n.Ct?n.$:void 0))}},s:{value:function(t){const n=Dc(this);n.ke.ge(t),n.resolved=Bc(n,t)}},resolve:{value:Uc},getSymbol:{value:function(){return Dc(this).ke.bt}},getHash:{value:function(){return Dc(this).ke.st}},getCaptured:{value:function(){const t=Dc(this);return Hc(t),t.Ct}},getFn:{value:function(t,n){const e=Dc(this),r=(...i)=>e.resolved?n&&!1===n()?void 0:Bn(t,e.resolved,i):Uc.call(e).then(t=>{if(re&&!ge(t))throw Se(5);return r(...i)});return r}}});let Vc=null;const Qc=t=>{Vc=t},Jc=(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.Ct;const n=t.$;if("string"==typeof Vc){if(!n)throw Se(13);const e=Hu;if(Vc=t.Ct=Jc(n,Vc),Hu!==e)return Hu}},Bc=(t,n)=>"function"==typeof n&&t.Ct?function(...e){return Hc(t),n.apply(this,e)}:n,Yc=(t,n)=>{const e=t.ke,r="string"==typeof t.Ct;if(r&&!t.$&&(t.$=n||kc()?.$),t.resolved)return;const i=nf(),s=kc(),o=e.Se(),l=$r(o,n=>{t.resolved=Bc(t,n)});l&&Zc(e.bt,s?.m instanceof hi?s?.m.node:void 0,i);const u=r&&t.$&&Hc(t);return u?u.then(()=>l):l},Xc=(t,n,e,r,i,s)=>{const o=Nc(t,n,r,e,s);return Gc(new zc(o,i,s))},Gc=t=>{const n=async function(...t){return Lc.call(n,this,...t)};return n[Fc]=t,Object.setPrototypeOf(n,Wc),n},Kc=/*#__PURE__*/new Set,Zc=(t,n,e)=>{Kc.has(t)||(Kc.add(t),tf("qsymbol",{symbol:t,element:n,reqTime:e}))},tf=(t,n)=>{se||Or()||"object"!=typeof document||document.dispatchEvent(new CustomEvent(t,{bubbles:!1,detail:n}))},nf=()=>se||Or()?0:"object"==typeof performance?performance.now():0;let ef=0;const rf=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 Xc(null,"s"+ef++,t,null,null)},sf=rf,of=t=>t,lf=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)()),Xc("",ke,t,null,null)},uf=(t,n)=>(void 0===n&&(n=""+t),t.serialized=n,Xc("",ke,t,null,null)),cf=t=>{function n(n,e,r=0){const i=(se?"sX":t.st.slice(0,4))+":"+(e||""),s=()=>{};return s[ff]=[t],xs(s,n,null,n.children,r,i)}return n[ff]=[t],n},ff=Symbol(),af=t=>"function"==typeof t&&void 0!==t[ff],hf=t=>cf(sf(t)),df=Hi(of),pf=async(t,n,e={})=>{if(9===t.nodeType){let n=t.firstChild;for(;n&&!ri(n);)n=n.nextSibling;t=n}if(re&&t.hasAttribute(Qe))throw Se(4,[t]);t.setAttribute(Qe,"resumed");const r=Un(t);r.Dt=e.serverData||{};const i=r.rootVNode;return To(i,wi,n),Kt(r,i,2),await r.l,{cleanup:()=>{bt(r,[],r.rootVNode)}}},$f=(t,n)=>{const{val:e,set:r,iCtx:i}=jl();if(null!=e)return e;const s=ge(t)?Hn(void 0,t):t;if(!1===n?.reactive)return r(s),s;{const t=i.$,e=Zl(s,n?.deep??1?1:0,t);return r(e),e}},mf=()=>{const{val:t,set:n,iCtx:e}=jl();if(null!=t)return t;const r=e.$.ce||"",i=r?xr(r).substring(0,3):"",s=e.$.getHostProp(e.m,Ee);let o=`${i}${s?.getHash().substring(0,3)||""}${(e.$.le++).toString(36)||""}`,l=o.charCodeAt(0);return l>=48&&l<=57&&(l+=17,o=String.fromCharCode(l)+o.substring(1)),n(o)},yf=/*#__PURE__*/new Map,wf=(t,n)=>{if(re)return bf(t,n);let e=yf.get(n);return e||yf.set(n,e=bf(t,n)),e},bf=(t,n)=>{function e(n){l.push(t.substring(f,n)),f=n}function r(t){a===_f||s()||(e(t),l.push(".",Te,n))}function i(n){let e=0;if(t.charCodeAt(c)===Wf)for(let n=1;n<10;n++)if(t.charCodeAt(c+n)===Wf){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)|Zf)!==i.charCodeAt(n))continue t;return c+=i.length+e,!0}return!1}function s(){return-1!==u.indexOf(_f)||-1!==u.indexOf(Ef)}const o=t.length,l=[],u=[];let c=0,f=c,a=xf,h=0;for(;c<o;){const n=c;let o=t.charCodeAt(c++);o===Gf&&(c++,o=Bf);const l=sa[a];for(let d=0;d<l.length;d++){const p=l[d],[$,m,y]=p;if(($===h||$===Of||$===Af&&vf(h)||$===Nf&&kf(h))&&(m===o||m===Of||m===Af&&vf(o)||m===Mf&&!vf(o)&&o!==Vf||m===Nf&&kf(o))&&(3==p.length||i(p))){if(p.length>3&&(o=t.charCodeAt(c-1)),y===Pf||y==jf){y===jf&&(a!==qf||s()?gf(o)||r(c-(m==Mf?1:m==Uf?2:0)):(gf(o)?e(c-2):r(c-2),f++)),m===Mf&&(c--,o=h);do{a=u.pop()||xf,a===_f&&(e(c-1),f++)}while(Sf(a))}else u.push(a),a===_f&&y===xf?(e(c-8),f=c):y===Rf&&r(n),a=y;break}}h=o}return e(c),l.join("")},vf=t=>t>=Qf&&t<=Jf||t>=Bf&&t<=Yf||t>=ta&&t<=na||t>=128||t===Kf||t===Wf,gf=t=>t===Hf||t===Vf||t===Xf||t===Lf||vf(t),Sf=t=>t===Cf||t===Ef||t===Tf||t===_f,kf=t=>t===zf||t===If||t===Ff||t===Df,xf=0,qf=2,_f=5,Rf=6,Ef=10,Cf=11,Tf=12,Pf=17,jf=18,Of=0,Af=1,Mf=2,Nf=3,If=9,Ff=10,Df=13,zf=32,Lf=35,Uf=41,Wf=45,Vf=46,Qf=48,Jf=57,Hf=58,Bf=65,Yf=90,Xf=91,Gf=92,Kf=95,Zf=32,ta=97,na=122,ea=123,ra=125,ia=/*@__PURE__*/(()=>[[Of,39,14],[Of,34,15],[Of,47,16,"*"]])(),sa=/*@__PURE__*/(()=>[[[Of,42,qf],[Of,Xf,7],[Of,Hf,Rf,":","before","after","first-letter","first-line"],[Of,Hf,_f,"global"],[Of,Hf,3,"has","host-context","not","where","is","matches","any"],[Of,Hf,4],[Of,Af,1],[Of,Vf,1],[Of,Lf,1],[Of,64,Ef,"keyframe"],[Of,64,Cf,"media","supports","container"],[Of,64,Tf],[Of,ea,13],[47,42,16],[Of,59,Pf],[Of,ra,Pf],[Of,Uf,Pf],...ia],[[Of,Mf,jf]],[[Of,Mf,jf]],[[Of,40,xf],[Of,Mf,jf]],[[Of,40,8],[Of,Mf,jf]],[[Of,40,xf],[Of,Mf,Pf]],[[Of,Mf,Pf]],[[Of,93,jf],[Of,39,14],[Of,34,15]],[[Of,Uf,Pf],...ia],[[Of,ra,Pf],...ia],[[Of,ra,Pf],[Nf,Af,1],[Of,Hf,_f,"global"],[Of,ea,13],...ia],[[Of,ea,xf],[Of,59,Pf],...ia],[[Of,59,Pf],[Of,ea,9],...ia],[[Of,ra,Pf],[Of,ea,13],[Of,40,8],...ia],[[Of,39,Pf]],[[Of,34,Pf]],[[42,47,Pf]]])(),oa=t=>({styleId:fa(t,t=>t,!1)}),la=/*#__PURE__*/Hi(oa),ua=t=>({scopeId:Te+fa(t,wf,!0)}),ca=/*#__PURE__*/Hi(ua),fa=(t,n,e)=>{let{val:r,set:i,iCtx:s,i:o}=jl();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.$.we(n(t,l),l,c,e));return s.$.we(n(t.resolved,l),l,c,e),l},aa=t=>{const n=ge(t)&&!af(t)?Hn(void 0,t):t;return Ki(n)},ha=t=>da(aa,t),da=(t,...n)=>{const{val:e,set:r}=jl();return null!=e?e:r(t=ge(t)&&!af(t)?Rc(t,...n):t)},pa=(t,n)=>(t.resolve(),Yi(t,n)),$a=(t,n)=>da(pa,t,n),ma=Hi($a),ya=t=>(t.resolve(),Gi(t)),wa=t=>da(ya,t),ba=Hi(wa),va=(t,n)=>{const{val:e,set:r,i,iCtx:s}=jl(),o=n?.strategy??"intersection-observer";if(e)return void(32&e.h||Or()||(e.h|=32,ga(e,o)));let l;Or()?l=1:(l=5,t.resolve(),Kt(s.$,s.m,1));const u=new Ml(l,i,s.m,t,void 0,null);r(u),ga(u,o)},ga=(t,n)=>{"intersection-observer"===n?zu("qvisible",Sa(t)):"document-ready"===n?Lu("qinit",Sa(t)):"document-idle"===n&&Lu("qidle",Sa(t))},Sa=t=>Xc(null,"_task",dn,null,[t]),ka=Hi(Iu),xa=/*#__PURE__*/Hi(Ol),qa=/*#__PURE__*/Hi(va),_a=(t,n)=>(t.resolve(),Xi(t,n)),Ra=(t,n)=>da(_a,t,n),Ea=Hi(Ra),Ca=()=>{const t=$f({error:void 0});return hc(mc,t),t},Ta=async({track:t})=>{const n=Vc[0];t(()=>n.items);const e=kc(),r=e.$;Kt(r,e.m,128),(import.meta.env.TEST?Or():Zn)&&await r.l},Pa=t=>{if(!__EXPERIMENTAL__.each)throw Error('Each is experimental and must be enabled with `experimental: ["each"]` in the `qwikVite` plugin.');return Ol(/*#__PURE__*/_u(Ta,"_eaT",[t])),Ns},ja=/*#__PURE__*/cf(
|
|
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=Ms){let e,s=!1;try{e=t(),s=!0}catch(t){e=t}if(!Ps(e))return s?e:n(e);let r=Rs;const i=async e=>{for(;Ps(e);)try{return await e,await t()}catch(t){if(!Ps(t)){e=t;break}if(! --r){e=Error("Exceeded max retry count in retryOnPromise");break}e=t}return n(e)};return s?e.catch(i):i(e)}function e(t,n=!1){if(t.endsWith("$")){const[e,s]=((t,n=!1)=>{let e,s=-1;return t.startsWith("on")?(e=n?"q-ep:":"q-e:",s=2):t.startsWith("window:on")?(e=n?"q-wp:":"q-w:",s=9):t.startsWith("document:on")&&(e=n?"q-dp:":"q-d:",s=11),[e,s]})(t,n);if(-1!==s)return e+Ns(t.slice(s,-1))}return null}function s(t,n,e){if((t=>"class"===t)(t)){const t=Fs(n);n=e?e+(t.length?" "+t:t):t}else"style"===t?n=(t=>{if(null==t)return"";if("object"==typeof t){if(Re(t))throw qe(0,[t,"style"]);{const n=[];for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const s=t[e];null!=s&&"function"!=typeof s&&(e.startsWith("--")?n.push(e+":"+s):n.push(Xs(e)+":"+Ds(e,s)))}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 r(){if(lr||!ur.length)return;or=!1,lr=!0;const t=Js?performance.now()+Ks:0;let n=!1;for(;ur.length;){n=!0;const e=cr();if(Js&&e&&performance.now()>=t){or||(or=!0,rr());break}}lr=!1,n&&Js&&sr()}function i(t,n,e,s=!1){const r=t.ownerDocument.createElementNS(e,n);for(let n=0;n<t.attributes.length;n++){const e=t.attributes[n];e.name!==Es&&r.setAttribute(e.name,e.value)}if(s)for(let n=0;n<t.childNodes.length;n++){const o=t.childNodes[n],l=o.nodeType;3===l?r.appendChild(o.cloneNode()):1===l&&r.appendChild(i(o,o.localName,e,s))}return r}function o(t,n){const e=!t||!(!El(t)||(s=t,1536&s.flags));var s;const r=!e&&gr(El(t));let i=ls,o=0;const l="string"==typeof n||zo(n);if(l&&(t=>"string"==typeof t?Er(t):!!zo(t)&&(Er(El(t))||!!(512&t.flags)))(n))i=us,o=512;else if(l&&(t=>"string"==typeof t?Sr(t):!!zo(t)&&(Sr(El(t))||!!(1024&t.flags)))(n))i=cs,o=1024;else if(t&&!r&&!e){const n=!!(512&t.flags),e=!!(1024&t.flags);i=n?us:e?cs:ls,o=1536&t.flags}return kr.elementNamespace=i,kr.elementNamespaceFlag=o,kr}function l(t,n){const e=y(n).priority;let s=Mr.length;for(let t=0;t<Mr.length;t++)if(e<y(Mr[t]).priority){s=t;break}Mr.splice(s,0,n),t.o++,t.l||=new Promise(n=>t.u=n)}function u(){for(let t=0;t<Mr.length;t++){const n=Mr[t];let e=!1;for(let t=0;t<Ar.length;t++){const s=Ar[t];if(zl(n,s)){e=!0;break}}if(!e)return n}return null}function c(t,n){Ar.push(t),h(t,n,!0),n.o++}function f(t,n){d(t,n),256&t.flags&&l(n,t)}function a(t,n,e){const s=y(e);s&&s!==n&&(h(e,t,!1),d(e,t),$(n,s),s.afterFlushTasks=null,s.extraPromises=null,s.journal=null,s.boundaries=null,s.position=null,s.promise=null)}function h(t,n,e){e||(t.flags&=-257);const s=Mr.indexOf(t);return-1!==s&&(Mr.splice(s,1),n.o--,!0)}function d(t,n){const e=Ar.indexOf(t);if(-1===e)return!1;const s=Ar.length-1;return e!==s&&(Ar[e]=Ar[s]),Ar.pop(),n.o--,!0}function p(t,n,e){n.position=e,e&&cn(e)&&((t,n,e)=>{h(e,t),((t,n)=>{if(n===t)return;const e=n.afterFlushTasks;if(e&&e.length>0){const n=t.afterFlushTasks;n?n.push(...e):t.afterFlushTasks=e}const s=n.extraPromises;if(s&&s.length>0){const n=t.extraPromises;n?n.push(...s):t.extraPromises=s}$(t,n)})(n,y(e))})(t,n,e)}function $(t,n){if(n===t)return;const e=n.journal;if(e&&e.length>0){const n=t.journal;n?n.push(...e):t.journal=e}const s=n.boundaries;if(__EXPERIMENTAL__.suspense&&s&&s.length>0){const n=t.boundaries||=[];for(let t=0;t<s.length;t++){const e=s[t];n.includes(e)||n.push(e)}}}function y(t){return xr.get(t)??null}function m(t,n,e){t[vr]||(t[vr]=new Map);const s=t[vr];let r=s.get(n);return r||(r=new Fr(t,n),s.set(n,r)),e&&(r.data=e),r}function w(t){return new Proxy({},new ei(t))}function b(t,n){Mi(this,n),Sf[0].value="number"===n.type?n.valueAsNumber:n.value}function v(t,n){Mi(this,n),Sf[0].value=n.checked}function _(t,n){if(Mi(this,n),Sf)for(let t=0;t<Sf.length;t++){const n=Sf[t];n instanceof Hr&&64&n.h&&n.p()}}function g(t,n,...e){const s={children:arguments.length>2?e.flat(100):null};let r=null;for(const t in n)"key"==t?r=n[t]:s[t]=n[t];return Xi(t,n,null,s.children,0,r)}function E(t,n,e,s){if(null!=e){if(s){const s=(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(s)return void((t,n,e,s)=>{ro||(ro=t.setAttributeNS),ro.call(t,n,e,s)})(t,s,n,e)}r=t,i=n,o=e,so||(so=r.setAttribute),so.call(r,i,o)}var r,i,o}function S(t){return!t.startsWith("q:")&&!t.startsWith(ws)}function k(t,n,e){const s=n.constProps;if(s&&"object"==typeof s&&io.call(s,"name")){const n=s.name;if(t&&n instanceof ki)return ff(n,t,":",e)}return ii(n,"name")||""}function R(t,n){if(!__EXPERIMENTAL__.suspense)return;const e=q(t.container,n);if(!e)return;const s=t.boundaries||=[];s.includes(e)||(s.push(e),e.pending.value++)}function P(t,n){return __EXPERIMENTAL__.suspense?t.getHostProp(n,rs):null}function T(t){__EXPERIMENTAL__.suspense&&Ko(t,gs,null)}function q(t,n){return __EXPERIMENTAL__.suspense?(t=>__EXPERIMENTAL__.suspense&&Go(t,gs,null)||null)(n)||P(t,n):null}function M(t,n){__EXPERIMENTAL__.suspense&&Ko(t,gs,n)}function A(t,n,e){if(!__EXPERIMENTAL__.suspense)return;M(n,e);const s=n.dirtyChildren;if(s&&0!==s.length)for(let n=0;n<s.length;n++){const r=s[n];A(t,r,P(t,r)||e)}}function x(t,e,s,r){if(!s.isConnected)return;r||(r=of(e,s));const i=r.$,o=r.m;nl(i,o);let l=t;if(64&o.flags){let n;128&o.flags||(n=!0,o.flags|=128);const r=n?i._:null,u=Go(o,ys,r);if(null!==u)l=()=>t(e,s,u);else{const n=Go(o,ms,r);null!==n&&(l=()=>t(e,s,...n))}}return n(()=>{if(!(32&o.flags))return fe(r,l,[e,s])},t=>i.handleError(t,o))}function I(t,n){if(!n.isConnected)return;const e=of(t,n);return"string"==typeof this&&kf(Rf(e.$,this)),x(Sf[0],t,n,e)}function N(t){return t.k===t.R?t.T:null}function C(t){return t.q||N(t)}function O(t,n){const e=(t=>t?t.nextSibling:null)(n);return e===N(t)?null:e}function j(t,n,e,s,r,i){Ko(n,e,i),dn(t,mo(n.node,e,s,r,!!(512&n.flags)))}function L(t,n,e,s){return{$:t,M:n,N:e,O:s,j:[],L:[],X:[],k:null,q:null,D:null,T:null,R:null,W:null,U:null,B:null,H:null,J:null,Y:0,G:0,K:!0,Z:!1,tt:{nt:new Ri({O:s,et:!0}),st:new Ri({O:s,et:!1})}}}function F(t,n,e,s,r){const i=t??L(n,e,s,r);return((t,n,e,s,r)=>{t.$=n,t.M=e,t.N=s,t.O=r,t.tt.nt.data.O=r,t.tt.st.data.O=r,t.L.length=0,t.X.length=0})(i,n,e,s,r),i}function X(t,n,e,s=Rl(e),r=null,i=!1){D(t,n,e,s,r,i);const o=G(t);if(Ps(o))return o.finally(()=>{K(t)});K(t)}function D(t,n,e,s=Rl(e),r=null,i=!1){const o=t.Z;t.Z=i||o,t.k=e,t.D=null,t.q=s,t.T=r,t.R=e,B(t,n,!0);try{if(32&t.k.flags)return;for(;t.j.length;){for(;t.Y<t.G;){if("string"==typeof t.J)mt(t,t.J);else if("number"==typeof t.J)mt(t,t.J+"");else if(t.J&&"object"==typeof t.J)if(qi(t.J)){const n=t.J.type;"string"==typeof n?(nt(t),ct(t,t.J,n),t.J.constProps&&So.call(t.J.constProps,Ss)||So.call(t.J.varProps,Ss)?t.D||Z(t,!1):U(t,t.J.children,!0)):"function"==typeof n&&(n===Ji?(nt(t),dt(t,"F",t.J.key),U(t,t.J.children,!0)):n===Yi?(nt(t),Q(t)||U(t,t.J.children,!0)):n===vt?(J(t),U(t,t.J.children,!0,!1)):n===Zi||n===Ki?tt(t):(nt(t),pt(t,n)))}else if(Array.isArray(t.J))U(t,t.J,!1);else if(iu(t.J)){dt(t,"S",null);const n=t.J instanceof ki?t.J.rt():t.J,e=t.q?.[vr]?.get(".")?.backRef;let s=e?.has(n);if(e&&n instanceof ki&&(s=Tt(e,n)),!s){const e=t.D||t.q;U(t,W(t,()=>ff(n,e,".",t.$)),!0)}}else Ps(t.J)&&(dt(t,"A",null),t.L.push(t.J,t.D||t.q));else t.J===Gi||mt(t,"");V(t)}tt(t),Y(t),z(t)}}finally{t.Z=o}}function W(t,e){try{return e()}catch(s){if(Ps(s)){const r=s.then(()=>n(e));return t.L.push(r,t.D||t.q),null}throw s}}function V(t){if(t.K){if(t.Y++,t.Y<t.G)t.J=t.H[t.Y];else if(t.j.length>0&&!1===t.j[t.j.length-1])return z(t);null!==t.D?t.D=null:t.q=O(t,t.q)}else t.K=!0}function U(t,n,e,s=!0){if(s&&(null==n||e&&Re(n)&&0===n.length))Z(t);else{if(B(t,n,e),e){const n=t.Z||!!t.D||!Rl(t.q);t.Z=n,t.B=null,t.W=null,t.U=null,t.k=t.D||t.q,t.q=Rl(t.k),t.D=null}t.K=!1}}function z(t){t.j.pop()&&(t.Z=t.j.pop(),t.B=t.j.pop(),t.W=t.j.pop(),t.U=t.j.pop(),t.D=t.j.pop(),t.q=t.j.pop(),t.k=t.j.pop()),t.J=t.j.pop(),t.G=t.j.pop(),t.Y=t.j.pop(),t.H=t.j.pop(),V(t)}function B(t,n,e){t.j.push(t.H,t.Y,t.G,t.J),e&&t.j.push(t.k,t.q,t.D,t.U,t.W,t.B,t.Z),t.j.push(e),Array.isArray(n)?(t.Y=0,t.G=n.length,t.H=n,t.J=t.G>0?n[0]:null):void 0===n?(t.Y=0,t.J=null,t.H=null,t.G=0):(t.Y=0,t.J=n,t.H=null,t.G=1)}function H(t){return t.D?C(t):O(t,t.q)||N(t)}function J(t){const n=t.J.key;t.q=Go(t.k,n,n=>il(t.$.rootVNode,n)),t.q=t.q&&32&t.q.flags?null:t.q,null==t.q&&(t.D=Vo(),Ko(t.D,De,n),t.D.slotParent=t.k,Ko(t.k,n,t.D))}function Q(t){const n=t.J,e=Zl(t.k),s=k(e,n,t.$),r=ii(n,rs)||null,i=e?Go(e,s,null):null;if(null==i)return t.D=Vo(),Ko(t.D,De,s),Ko(t.D,rs,r),A(t.$,t.D,r),e&&Ko(e,s,t.D),wl(t.M,t.k,t.D,H(t)),!1;if(i===t.q);else{const n=i.parent;t.D=i,Ko(t.D,De,s),Ko(t.D,rs,r),A(t.$,t.D,r),e&&Ko(e,s,t.D),ml(t.M,t.D),wl(t.M,t.k,t.D,H(t)),n&&zo(n)&&!n.firstChild&&El(n)===is&&_l(t.M,n.parent,n,!0)}return!0}function Y(t){const n=t.B;if(n){for(const e of n.values())32&e.flags||(Et(t.$,t.M,e,t.N),_l(t.M,t.k,e,!0));n.clear(),t.B=null}t.q=null}function G(t){for(;t.L.length;){const n=t.L.shift(),e=t.L.shift();if(Ps(n))return n.then(n=>(D(t,n,e),G(t))).catch(n=>(t.$.handleError(n,e),G(t)));D(t,n,e)}if(t.X.length){const n=t.X.splice(0);return Promise.all(n).then(()=>G(t))}}function K(t){t.M=null,t.N=null}function Z(t,n=!0){const e=t.q&&Rl(t.q);if(null!==e){let s=e;for(;s;)Et(t.$,t.M,s,t.N),s=s.nextSibling;gl(t.M,t.q,e,n)}}function tt(t){const n=N(t);if(null!==t.q&&t.q!==n)for(;t.q&&t.q!==n;){const n=t.q;t.q=O(t,t.q),t.k===n.parent&&(Et(t.$,t.M,n,t.N),_l(t.M,t.k,n,!0))}}function nt(t){if(null!==t.q&&Jo(t.q)){const n=t.q;t.q=O(t,t.q),_l(t.M,t.k,n,!0)}}function et(t,n,e){if(iu(t))return t.value=n,!0;if("function"==typeof t)return t(n),!0;if(null==t)return!0;throw qe(15,[e])}function st(t,e,s,r,i){return n(()=>ff(r,e,s,t,i))}function rt(t,n,e,r,i){const o=t.O,l=r.then(t=>E(n,e,s(e,t,o),i));t.X.push(l)}function it(t,n){n&&(t.innerHTML=n+"",t.setAttribute(es,"html"))}function ot(t,n){return n&&"string"!=typeof n||(t.value=(t=>{let n="";const e=t.length;let s=0,r=s;for(;s<e;s++){const e=t.charCodeAt(s);if(60===e)n+=t.substring(r,s)+"<";else if(62===e)n+=t.substring(r,s)+">";else if(38===e)n+=t.substring(r,s)+"&";else if(34===e)n+=t.substring(r,s)+""";else{if(39!==e)continue;n+=t.substring(r,s)+"'"}r=s+1}return 0===r?t:n+t.substring(r)})(n||"")),!0}function lt(t,n,e,r){const i=((t,n)=>{const e=o(vl(t.k,!0),n),s=document,r=0===e.elementNamespaceFlag?s.createElement(n):s.createElementNS(e.elementNamespace,n);return t.D=Xo(r,n),t.D.flags|=e.elementNamespaceFlag,r})(t,e),l=t.D,u=!!(512&l.flags),{constProps:c}=n;if(c)for(const n in c){let o=c[n];Is(n)?ut(n,o,i,l,t):"ref"===n&&et(o,i,r)||(iu(o)&&(o=st(t.$,t.D,n,o,t.tt.nt)),Ps(o)?rt(t,i,n,o,u):n!==Ss?"textarea"===e&&"value"===n&&ot(i,o)||E(i,n,s(n,o,t.O),u):it(i,o))}const f=n.key;f&&(t.D.key=f),t.O&&(So.call(n.varProps,"class")||n.constProps&&So.call(n.constProps,"class")||i.setAttribute("class",t.O)),hl(t.M,t.k,t.D,C(t))}function ut(t,n,e,s,r){const i=t.slice(2);if(Array.isArray(n)){const t=n,s=[];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&&s.push(x.bind(null,n))}else e&&s.push(x.bind(null,e))}s.length>0&&((e._qDispatch||={})[i]=1===s.length?s[0]:s)}else n&&((e._qDispatch||={})[i]=x.bind(null,n));"e"!==t.charAt(2)&&Zo(r.M,s,t,""),((t,n)=>{const e=window;e&&(e._qwikEv||=[]).push(n)})(0,i)}function ct(t,n,e){if(t.Z)lt(t,n,e,null);else{const s=t.q&&zo(t.q),r=s&&e===El(t.q),i=n.key,o=s&&t.q.key;r&&i===o?at(t,e,i):ht(t,e,i,ft(e,i),t.k)&<(t,n,e,null)}const s=n.varProps,r=t.D||t.q;s&&((t,n,e,s)=>{t.Z||nl(t.$,n);const r=n.props;for(const i in e){const o=e[i];if(r&&So.call(r,i)){const e=r[i];if(o!==e){if(o instanceof ki&&e instanceof ki&&Pt(o,e))continue;Po(t,n,i,o,s)}}else null!=o&&Po(t,n,i,o,s)}if(r)for(const i in r)So.call(e,i)||":"===i.charAt(0)||Is(i)||Po(t,n,i,null,s)})(t,r,s,null)}function ft(t,n){return null==n?null:t?t+":"+n:n}function at(t,n,e){const s=ft(n,e);return!(!s||!t.B?.has(s)||(t.B.delete(s),0))}function ht(t,n,e,s,r,i){if(t.D=((t,n,e)=>{let s=null;if(null===t.W){const r=t.q;if(r){const s=zo(r)?El(r):null;if((wt(r)||bt(r,t.$._))===e&&s===n)return r}t.W=new Map,t.U=[];const i=N(t);let o=t.q;for(;o&&o!==i;){const r=zo(o)?El(o):null,i=wt(o)||bt(o,t.$._);null===s&&i==e&&r==n?s=o:null===i?t.U.push(r,o):t.W.set(ft(r,i),o),o=o.nextSibling}}else if(null===e){for(let e=0;e<t.U.length;e+=2)if(t.U[e]===n){s=t.U[e+1],t.U.splice(e,2);break}}else{const r=ft(n,e),i=t.W.get(r);i&&(s=i,t.W.delete(r))}return((t,n)=>{if(!n){if(t.q){const n=zo(t.q)?El(t.q):null,e=wt(t.q)||bt(t.q,t.$._);if(null!=e){const s=ft(n,e);t.B||=new Map,t.B.set(s,t.q),t.W?.delete(s)}}return}const e=N(t);let s=t.q;for(;s&&s!==n&&s!==e;){const n=zo(s)?El(s):null,e=wt(s)||bt(s,t.$._);if(null!=e){const r=ft(n,e);t.B||=new Map,t.B.set(r,s),t.W?.delete(r)}s=s.nextSibling}})(t,s),s})(t,n,e),t.D)return s||wl(t.M,r,t.D,C(t)),t.q=t.D,t.D=null,!1;if(null!=s){const n=t.B?.get(s)||null;if(n){if(t.B.delete(s),i&&t.q){const n=wt(t.q)||bt(t.q,t.$._);if(null!=n){const e=ft(zo(t.q)?El(t.q):null,n);null!=e&&(t.B||=new Map,t.B.set(e,t.q))}}return n!==t.q&&wl(t.M,r,n,C(t)),t.q=n,t.D=null,!1}}return!0}function dt(t,n,e){const s="F"===n,r=wt(t.q);if(!t.q||!Qo(t.q)||r!==e||s&&!e)return null===e||t.Z?(dl(t.M,t.k,t.D=Vo(),H(t)),void(t.D.key=e)):void(ht(t,null,e,ft(null,e),t.k,!0)&&(dl(t.M,t.k,t.D=Vo(),H(t)),t.D.key=e));at(t,null,r)}function pt(t,n){const e=n[Vf];let s=t.D||t.q;const r=t.J;if(e){const n=r.props;let i=!1;const[o]=e,l=o.it,u=bt(s,t.$._),c=r.key||l;if(c===(wt(s)||u)?l===u?at(t,null,c):($t(t,s,o,n),s=t.D,i=!0):(ht(t,null,c,c,t.k)&&($t(t,s,o,n),i=!0),s=t.D||t.q),s){const e=Go(s,ds,t.$._);if(!i){const l=((t,n,e,s)=>{let r=!1;if(e){const t=_t(n[Jr],e[Jr],e[Gr],s,!1);r||=t;const i=_t(n[Qr],e[Qr],e[Gr],s,!0);r||=i,e[Yr]=n[Yr]}else n&&(Ko(t,ds,n),e=n);return r})(s,n,e,t.$);l&&null==r.key&&($t(t,s,o,n),s=t.D,i=!0),i||=l}i&&(Ko(s,Le,o),s.flags&=-33,hn(t.$,s,4,t.N))}((t,n,e)=>{const s=Array.isArray(n)?n:[n],r=t=>new Pi(vt,null,null,[],0,t),i=[];if(e){const t=e.props;if(t)for(const n in t)S(n)&&_e(i,n,r(n),0)}if(0!==i.length||null!=n){for(let t=0;t<s.length;t++){const n=s[t],e=(qi(n)&&ii(n,De)||"")+"",o=ve(i,e,0);let l;o>=0?l=i[o+1]:i.splice(~o,0,e,l=r(e)),!1===n||l.children.push(n)}for(let t=i.length-2;t>=0;t-=2)i.splice(t,1);U(t,i,!0)}})(t,r.children,s)}else{const e=r.key,c=e===wt(s),f=bt(s,t.$._);if(s&&null!=f||!s?(yt(t),s=t.D):c?at(t,null,e):(ht(t,null,e,e,t.k)&&yt(t),s=t.D||t.q),s){let e=s;for(;e&&(!Qo(e)||null===Go(e,Le,null));)e=e.parent||Zl(e);i=s,o=n,l=e,u=r.props,(i.props||={})[jr]={componentFn:o,subscriptionHost:l,props:u},hn(t.$,s,8,t.N)}}var i,o,l,u}function $t(t,n,e,s){n&&_n(t.$,n),dl(t.M,t.k,t.D=Vo(),H(t));const r=t.J;Ko(t.D,Le,e),Ko(t.D,ds,s),t.D.key=r.key}function yt(t){dl(t.M,t.k,t.D=Vo(),H(t));const n=t.J;Ko(t.D,ds,n.props),n.key&&(t.D.key=n.key)}function mt(t,n){if(null!==t.q&&3===Gl(t.q))return n!==Sl(t.q)?void kl(t.M,t.q,n):void 0;hl(t.M,t.k,t.D=Wo(document.createTextNode(n),n),C(t))}function wt(t){return null==t||Jo(t)?null:t.key}function bt(t,n){if(null==t||Jo(t))return null;const e=Go(t,Le,n);return e?e.it:null}function vt(){}function _t(t,n,e,s,r=!0){if(gt(t)&>(n))return!1;e.$=s;let i=!1;if(t)for(const s in t)if("children"!==s&&s!==Qe&&(!n||t[s]!==n[s])){if(!r)return!0;n&&(n[s]=t[s]),ri(e,s)||(i=!0)}if(n)for(const s in n)"children"===s||s===Qe||t&&So.call(t,s)||!r||(delete n[s],ri(e,s)||(i=!0));return i}function gt(t){return!t||hr(t)}function Et(t,n,e,s=null){let r=e;const i=s&&cn(s)?y(s):null;if(Jo(e))return void Rt(r);let o=null;for(;;){i&&r!==s&&cn(r)&&a(t,i,r);const l=r.flags;if(3&l){if(_n(t,r),Rt(r),2&l&&null!==Go(r,Le,null)){const e=t.getHostProp(r,ps);if(e)for(let n=0;n<e.length;n++){const i=e[n];if(ke(i)){const n=su(i);if(n&&1&i.h){i.h|=16,hn(t,r,128,s);continue}(i instanceof Ur||vu(i))&&_n(t,i),(n||i instanceof Hr)&&Eo(i)}}const i=r.props;if(i){const e=Object.keys(i);for(let r=0;r<e.length;r++){const o=e[r];if(S(o)){const e=i[o];if(e){i[o]=null;const r="string"==typeof e?il(t.rootVNode,e):e;let l=Rl(r);for(;l;)Et(t,n,l,s),l=l.nextSibling;kt(t,n,r)}}}}}if(Yo(r)){if(r===e){const n=Rl(r);if(n)return void yn(n);St(t,r)}}else{const t=Rl(r);if(t){r=t;continue}}}else 4&l&&Rt(r);if(r===e)return;const u=r.nextSibling;if(u)r=u;else{for(o=r.parent;o;){if(o===e)return;const t=o.nextSibling;if(t){r=t;break}o=o.parent}if(null==o)return}}}function St(t,n){if(!n.slotParent)return;const e=t.getHostProp(n,De);null!=e&&t.getHostProp(n.slotParent,e)===n&&Ko(n.slotParent,e,null)}function kt(t,n,e){const s=e.parent;s&&1&s.flags&&El(s)===is&&(St(t,e),_l(n,s,e,!0))}function Rt(t){t.flags|=32}function Pt(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 Tt(t,n){if(!(n instanceof ki))return!1;for(let e=0;e<t.length;e++){const s=t[e];if(s instanceof ki&&Pt(s,n))return!0}return!1}function qt(t,n,e){const s=xt(n);let r=n;const i="q-e:qvisible";return qs(s,n=>{const s=!n;let o=null;for(const l in e)if(Object.prototype.hasOwnProperty.call(e,l)){let u=n,c=l;if(s){if(l!==i&&!l.startsWith("q-d:")&&!l.startsWith("q-w:"))continue;o||(o=Nt(),$e&&t.ut(o)||(r=It(r,o))),u=o}u&&("script"===u.type&&l===i&&(c="q-d:qinit"),Mt(u,c,e[l]))}return r})}function Mt(t,n,e){const s=t.constProps||={},r=s[n],i=e.qrls;null==r?s[n]=i:Array.isArray(r)?r.push(...i):s[n]=[r,...i],t.varProps[n]&&(Array.isArray(r)?r.push(...s[n]):t.varProps[n]=[r,...i],s[n]=void 0);const o=e.capture,l=e.preventdefault,u=e.stoppropagation;if(!o&&!l&&!u)return;const[,c]=Os(n);o&&At(t,c,"capture"),l&&At(t,c,"preventdefault"),u&&At(t,c,"stoppropagation")}function At(t,n,e){const s=`${e}:${n}`;t.varProps===ni&&(t.varProps={}),t.varProps[s]=!0}function xt(t){const n=[t];for(;n.length;){const t=n.shift();if(qi(t)){if("string"==typeof t.type)return t;n.push(t.children)}else if(Re(t))n.push(...t);else{if(Ps(t))return qs(t,t=>xt(t));if(iu(t))return xt(t.untrackedValue)}}return null}function It(t,n){return qi(t)?t.type===Ji||Uf(t.type)?(null==t.children?t.children=n:Re(t.children)?t.children.push(n):t.children=[t.children,n],t):Fi(Ji,null,null,[t,n],0,null):"object"!=typeof(e=t)&&"function"!=typeof e||null==e?Fi(Ji,null,null,[t,n],0,null):Re(t)&&t.length>0?(It(t[0],n),t):t;var e}function Nt(){return new Pi("script",null,{hidden:""},null,0,null)}function Ct(t,n,e,s){const r=s(t,n);return r.key=e,r}function Ot(t,n,e,s,r,i){const o=Array(i-r+1);for(let l=r;l<=i;l++){const i=n[l]??(n[l]=e(t[l],l));o[l-r]=Ct(t[l],l,i,s)}return o}function jt(t,n,e){let s=n?n.previousSibling:t.lastChild;for(let t=1;t<e&&s;t++)s=s.previousSibling;return s}function Lt(t,n,e,s,r,i,o){const l=t,u=r.length,c=Rl(e),f=L(l,n,s,null),a=Array(u);if(null===c)return u>0?Ro(l,n,Ot(r,a,i,o,0,u-1),e,null,null,s,null,!0,f):void 0;if(0===u)return void gl(n,e,c,!0);let h=0,d=u-1,p=c;for(;p&&h<=d&&p.key===(a[h]??=i(r[h],h));)p=p.nextSibling,h++;if(null===p){if(h>d)return;return Ro(l,n,Ot(r,a,i,o,h,d),e,null,null,s,null,!0,f)}if(h>d)return void gl(n,e,p,!0);const $=p.previousSibling;let y=e.lastChild;for(;y!==$&&d>=h&&y.key===(a[d]??=i(r[d],d));)y=y.previousSibling,d--;const m=y?y.nextSibling:p;if(h>d){let t=p;for(;t&&t!==m;){const s=t.nextSibling;_l(n,e,t,!0),t=s}return}if(y===$){const t=m;return Ro(l,n,Ot(r,a,i,o,h,d),e,t,t,s,null,!0,f)}for(let t=h;t<=d;t++)a[t]??=i(r[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 s=t;for(;s&&(e.push(s),s!==n);)s=s.nextSibling;return e})(p,y),_=[],g=new Map;for(let t=0;t<v.length;t++){const s=v[t],r=s.key;b.has(r)?(g.set(r,_.length),_.push(s)):_l(n,e,s,!0)}const E=new Int32Array(w);E.fill(-1);const S=[],k=[];for(let t=0;t<w;t++){const n=g.get(a[h+t]);void 0!==n&&(E[t]=n,k.push(t),S.push(n))}const R=new Uint8Array(w),P=(t=>{const n=t.length;if(0===n)return[];const e=[],s=Array(n).fill(-1);for(let r=0;r<n;r++){const n=t[r];let i=0,o=e.length;for(;i<o;){const s=i+o>>1;t[e[s]]<n?i=s+1:o=s}i>0&&(s[r]=e[i-1]),i===e.length?e.push(r):e[i]=r}const r=[];let i=e[e.length-1];for(;-1!==i;)r.push(i),i=s[i];return r.reverse(),r})(S);for(let t=0;t<P.length;t++)R[k[P[t]]]=1;let T=d,q=m;const M=()=>{for(;T>=h;){const t=T-h;if(1===R[t]){q=_[E[t]],T--;continue}const i=E[t];if(-1!==i){const t=_[i];(null===q?e.lastChild===t:t.nextSibling===q)||wl(n,e,t,q),q=t,T--;continue}let u=T;for(;u>h;){const t=u-1-h;if(1===R[t]||-1!==E[t])break;u--}const c=T-u+1,d=Ro(l,n,Ot(r,a,null,o,u,T),e,q,q,s,null,!0,f);return qs(d,()=>{const t=jt(e,q,c);return q=t,T=u-1,M()})}};return M()}function Ft(t,n,e){t.dirty&=-2;const s=n.getHostProp(t,ps);if(!s||0===s.length)return;let r;for(let i=0;i<s.length;i++){const o=s[i];if(o instanceof eu){const s=o;if(!(4&s.h))continue;if(1&s.h)(e.afterFlushTasks||=[]).push(s);else{const i=!!(8&s.h),o=nu(s,n,t);Ps(o)&&(i?r=r?r.then(()=>o):o:(e.extraPromises||=[]).push(o))}}}return r}function Xt(t,n){(t.props||={})[Nr]=n}function Dt(t,n){t.dirty&=-513;const e=(t=>{const n=t.props;return n?.[Cr]??null})(t);if(!e)return;(t=>{(t.props||={})[Cr]=null})(t);const s=t,r=s.parent,i=s.nextSibling,o=fl(n,document,s,e),l=zo(s)&&r||s;hl(n,l,o,l===s?null:i),t.dirty&=-65,t.dirtyChildren=null}function Wt(t,n,e,s){t.dirty&=-3;const r=t;let i=(t=>{const n=t.props;return n?.[Nr]})(t);if(i)return Xt(t,null),iu(i)&&(i=i.value),ko(n,e,i,r,s,null)}function Vt(t,n,e,s){t.dirty&=-5;const r=t,i=n.getHostProp(r,Le);if(!i)return;const o=n.getHostProp(r,ds)||null;return zt(n,r,r,i,o,e,s)}function Ut(t,n,e,s){t.dirty&=-9;const r=t,i=(t=>{const n=t.props,e=n?.[jr]||null;return e&&delete n[jr],e})(t);if(i)return zt(n,r,i.subscriptionHost||n.rootVNode,i.componentFn,i.props,e,s)}function zt(t,e,s,r,i,o,l){const u=Ts(()=>To(t,e,s,r,i),s=>{const r=t.getHostProp(e,He);return n(()=>ko(t,o,s,e,l,xs(r)))},n=>{t.handleError(n,e)});if(Ps(u))return u}function Bt(t,n,e,s,r,i=null){n.push(mo(t.node,e,s,i,!!(512&t.flags))),r||(t.props&&null==s?delete t.props[e]:(t.props||={})[e]=s)}function Ht(t,n){if(t.dirty&=-17,!(1&t.flags))return;const e=(t=>(t.props||={})[Ir]??null)(t);if(!e||0===e.size)return;const s=t;for(const[t,r]of e.entries()){let e=r.value;iu(e)&&(e=e.value),Bt(s,n,t,e,r.isConst,r.scopedStyleIdPrefix)}(t=>{delete(t.props||={})[Ir]})(t)}function Jt(t,n){t.dirty&=-129;const e=n.getHostProp(t,ps);if(e&&0!==e.length)for(let t=0;t<e.length;t++){const n=e[t];n instanceof eu&&16&n.h&&(n.h&=-17,Eo(n))}}function Qt(t,e){t.dirty&=-33;const s=e.getHostProp(t,Or);if(!s)return;const r=s.ct,i=he();return i.$=e,qs(n(()=>ce.call(s,i,s.p)),()=>{if(2&s.h)return s.h&=-3,fu(e,s,r)})}function Yt(t,n,e,s){t.dirty&=-257;const r=t,i=n.getHostProp(r,ds)||null;if(!i)return;let o=oi(i,"items");iu(o)&&(o=lf(o));const l=oi(i,"key$"),u=oi(i,"item$"),c=l.resolved,f=u.resolved;return void 0!==c&&void 0!==f?Lt(n,e,r,s,o,c,f):qs(l.resolve(),t=>qs(u.resolve(),i=>Lt(n,e,r,s,o,t,i)))}function Gt(t){let n=null,e=null,r=null;const i=new Set,o=()=>{if(r){if(1===r.length)Mo(n,r[0],e);else{const t=(n.ownerDocument||n).createDocumentFragment();for(let n=0;n<r.length;n++)t.appendChild(r[n]);Mo(n,t,e)}r=null,n=null,e=null,i.clear()}};for(let l=0;l<t.length;l++){const u=t[l];if(u instanceof fo){if(n===u.parent&&e===u.beforeTarget){r||(r=[]),r.push(u.target),i.add(u.target);continue}if(!r){n=u.parent,e=u.beforeTarget,r=[u.target],i.add(u.target);continue}if(n===u.parent){o(),n=u.parent,e=u.beforeTarget,r=[u.target],i.add(u.target);continue}if(i.has(u.target)||e&&u.target===e||n&&u.target===n){o(),n=u.parent,e=u.beforeTarget,r=[u.target],i.add(u.target);continue}Mo(u.parent,u.target,u.beforeTarget)}else if(u instanceof lo)(i.has(u.target)||e&&u.target===e||n&&u.target===n)&&o(),u.target.remove();else{if(u instanceof uo){(i.has(u.target)||e&&u.target===e||n&&u.target===n)&&o(),u.target.textContent="";continue}if(u instanceof co)u.target.nodeValue=u.text;else if(u instanceof ao){const t=u.target,e=u.attrName,r=u.attrValue,i=null!=r?s(e,r,u.scopedStyleIdPrefix):null,l=null==i||!1===i;Ao(t,e)?t[e]=xo(i):e===Ss?(n===t&&o(),t.innerHTML=i,t.setAttribute(es,"html")):l?t.removeAttribute(e):"value"===e&&e in t?t.value=i:E(t,e,i,u.isSvg)}}}o()}function Kt(){Oo||(Oo=!0,Io())}function Zt(){Oo||(Oo=!0,Co())}function tn(){Oo=!1;const t=performance.now()+15;let n=null;for(;n=u();)if(nn(n,t))return void Zt()}function nn(t,n){const e=$e,s=y(t);if(s.promise)return;const r=s.container;if(!t.dirty)return void en(r,t,s,e);const i=s.journal||=[];let o=null;for(;o=s.position;){if(s.promise)return;if(!(1023&o.dirty)){__EXPERIMENTAL__.suspense&&T(o),p(r,s,on(o,t,r));continue}if(32&o.flags){if(128&o.dirty)Jt(o,r);else if(64&o.dirty){const n=rn(r,s,o,t);if(null!==n){o=n;continue}}o.dirty&=-1024,p(r,s,on(o,t,r));continue}let e;try{if(1&o.dirty)e=Ft(o,r,s);else if(2&o.dirty)e=Wt(o,r,i,t);else if(4&o.dirty)e=Vt(o,r,i,t);else if(8&o.dirty)e=Ut(o,r,i,t);else if(256&o.dirty)e=Yt(o,r,i,t);else if(16&o.dirty)Ht(o,i);else if(32&o.dirty)e=Qt(o,r);else if(64&o.dirty){const n=rn(r,s,o,t);if(null!==n){o=n;continue}}else 512&o.dirty&&Dt(o,i)}catch(t){r.handleError(t,o)}if(e&&Ps(e)){R(s,o);const n=e;s.promise=n,c(t,r);const i=o;return void n.catch(t=>{s.promise===n&&r.handleError(t,i)}).finally(()=>{s.promise===n&&(s.promise=null,f(t,r),Kt())})}if(performance.now()>=n)return!0}en(r,t,s,e)}function en(t,n,e,s){if(!(1023&n.dirty)){if(h(n,t),s||((t,n)=>{const e=y(t),s=e.journal;s&&s.length>0&&(Gt(s),e.journal=null),((t,n)=>{const e=n.afterFlushTasks;if(e&&0!==e.length){for(let n=0;n<e.length;n++){const s=e[n];nu(s,t,s.ft)}n.afterFlushTasks=null}else n.afterFlushTasks=null})(n,e)})(n,t),(t=>{if(!__EXPERIMENTAL__.suspense)return;const n=t.boundaries;if(n){t.boundaries=null;for(let t=0;t<n.length;t++){const e=n[t];e.pending.value=Math.max(0,e.pending.value-1),e.version.value++}}})(e),e.extraPromises)return void Promise.all(e.extraPromises).then(()=>{sn(t)});sn(t)}}function sn(t){t.ht()}function rn(t,n,e,s){const r=e.dirtyChildren;if(!r||0===r.length)return e.dirty&=-65,T(e),null;((t,n)=>{let e=0;for(let s=0;s<t.length;s++){const r=t[s];if(r.parent===n){if(e!==s){const n=t[e];t[e]=r,t[s]=n}e++}}})(r,e),e.nextDirtyChildIndex=0;const i=on(r[0],s,t);return p(t,n,i),i}function on(t,n,e){if(t===n)return 1023&n.dirty?n:null;let s=null;if(t.slotParent&&64&t.slotParent.dirty?s=t.slotParent:t.parent&&64&t.parent.dirty&&(s=t.parent),!s)return 1023&n.dirty?n:null;const r=s.dirtyChildren;let i=s.nextDirtyChildIndex;const o=r.length;let l=o;for(;l-- >0;){const t=r[i];if(1023&t.dirty){if(e&&ln(e,t)){i++,i===o&&(i=0);continue}return s.nextDirtyChildIndex=(i+1)%o,t}i++,i===o&&(i=0)}return s.dirty&=-65,s.dirtyChildren=null,s.nextDirtyChildIndex=0,__EXPERIMENTAL__.suspense&&T(s),on(s,n,e)}function ln(t,n){return!!__EXPERIMENTAL__.suspense&&!!(n.props&&rs in n.props&&t.getHostProp(n,rs))&&(cn(n)||un(t,n,0),!0)}function un(t,n,e){var s,r;s=n,r={afterFlushTasks:null,extraPromises:null,journal:null,container:t,position:n,priority:e,promise:null,boundaries:null},xr.set(s,r);const i=n;return i.flags|=256,l(t,i),Kt(),i}function cn(t){return!!(256&t.flags)}function fn(t,n){if(!(1&n.flags))return 16&n.dirty&&((t,n)=>{n.dirty&=-17;const e=n.getProp(Ir);if(e&&0!==e.size)for(const[r,i]of e.entries()){let e=i.value;iu(e)&&(e=e.value);const o=s(r,e,i.scopedStyleIdPrefix);t.addBackpatchEntry(n.id,r,o)}})(t,n),32&n.dirty&&Qt(n,t),void(n.dirty&=-1024);let e=null;if(1&n.dirty){const s=((t,n)=>{n.dirty&=-2;const e=n.getProp(ps);if(!e||0===e.length)return null;let s=null;for(let r=0;r<e.length;r++){const i=e[r];if(i instanceof eu){const e=i;if(!(4&e.h))continue;const r=nu(e,t,n);s=s?s.then(()=>r):r}}return s})(t,n);Ps(s)&&(e=s)}if(256&n.dirty){const s=(async(t,n)=>{n.dirty&=-257;const e=n,s=t.getHostProp(e,ds)||null;if(!s)return;let r=oi(s,"items");iu(r)&&(r=lf(r));const i=await oi(s,"key$").resolve(),o=await oi(s,"item$").resolve(),l=[];for(let t=0;t<r.length;t++){const n=r[t],e=o(n,t),s=i(n,t);e.key=s,l.push(e)}await t.renderJSX(l,{currentStyleScoped:null,parentComponentFrame:t.getComponentFrame(0)})})(t,n);e=e?e.then(()=>s):s}return n.dirty&=-1020,e||void 0}function an(t){for(let n=0;n<jo.length;n++){const e=jo[n],s=jo[n+1]||t;s.dirty|=64,s.dirtyChildren||=[],s.dirtyChildren.includes(e)||s.dirtyChildren.push(e)}}function hn(t,n,e,s=null){const r=n.dirty;n.dirty|=e;const i=1023&e;if((i?1023&r:r)||n===s)return;const o=n.slotParent||n.parent;if(s&&i&&o&&!o.dirty)((t,n,e)=>{jo.push(n);let s=P(t,n),r=n.slotParent||n.parent;for(;r;){const i=1023&r.dirty,o=cn(r);if(__EXPERIMENTAL__.suspense&&(s||=P(t,r)||(i?q(t,r):null)),r===e||i){if(M(n,s),an(r),o){const t=y(r);t.position!==r&&(t.position=n)}return void(jo.length=0)}if(o){const t=y(r);t.position!==r&&(t.position=n)}jo.push(r),r=r.slotParent||r.parent}jo.length=0,(()=>{throw be(!1,"Cursor root not found in current path!")})()})(t,n,s);else if(o&&1023&o.dirty){if(M(n,P(t,n)||q(t,o)),i&&(o.dirty|=64),o.dirtyChildren||=[],o.dirtyChildren.includes(n)||o.dirtyChildren.push(n),i&&n.dirtyChildren){const t=(t=>{for(;t;){if(cn(t))return t;t=t.parent||t.slotParent}return null})(n);if(t){const e=y(t);let s=e.position;if(s)for(;s!==t;)if(s=s.slotParent||s.parent,s===n){e.position=n;break}}}}else cn(n)?M(n,P(t,n)):((t,n)=>{jo.push(n);let e=__EXPERIMENTAL__.suspense?P(t,n):null,s=n.slotParent||n.parent;for(;s;){const r=cn(s);if(__EXPERIMENTAL__.suspense&&(e||=P(t,s)||(r?q(t,s):null)),r)return M(n,e),an(s),jo.length=0,!0;jo.push(s),s=s.slotParent||s.parent}return M(n,e),jo.length=0,!1})(t,n)||un(t,n,0)}function dn(t,n){t.push(n)}function pn(t,n,e,s){const r=t.value,i=n.slice(2),o=r.split("|"),l=[];for(let t=0;t<o.length;t++){const n=el(Nn(o[t],e));l.push(x.bind(null,n))}(s._qDispatch||={})[i]=1===l.length?l[0]:l}function $n(t,n,e){let s=Rl(n);for(;s;)Jo(s)?(rl(t,s),e(s,n)):zo(s)?e(s,n):$n(t,s,e),s=s.nextSibling}function yn(t){let n=t;if(Jo(t))return;let e=null;for(;;){const s=Rl(n);if(s){n=s;continue}if(n===t)return;const r=n.nextSibling;if(r)n=r;else{for(e=n.parent;e;){if(e===t)return;const s=e.nextSibling;if(s){n=s;break}e=e.parent}if(null==e)return}}}function mn(t,n,e,s){const r="string"==typeof n,i=n.length;for(;t;){const o=t.nodeValue;let l;if(r)l=o?.startsWith(n);else for(let t=0;t<i;t++)if(o?.startsWith(n[t])){l=!0;break}if(l)return e.call(t)||null;let u=s.call(t);for(u||(u=e.call(t));!u&&(u=Ol(t),u);)t=u,u=e.call(u);t=u}return null}function wn(t,n,e){t[vr]?((t,n)=>{for(const[e,s]of n)t.set(e,s)})(t[vr],e._(n)):Object.defineProperty(t,vr,{get(){const s=e._(n);return t[vr]=s,s},set(n){Object.defineProperty(t,vr,{value:n,writable:!0,enumerable:!0,configurable:!0})},enumerable:!0,configurable:!0})}function bn(t=20,n="",e=!1,s=!1,r=!0,i=null){if(this&&!i)try{i=(()=>{let t=this;for(;t;){if(zo(t)){const n=ie(t.node);return n?re(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(Jo(o))l.push(Pn(Sl(o)));else if(Qo(o)){const e=["["+(o.flags>>>12)+"]"];if(o.dirty&&e.push(" dirty:"+o.dirty),i){const t=Ul(i,o);for(let n=0;n<t.length;n++){const s=t[n];if(s!==xe&&s!==ks){const t=Go(o,s,null);e.push(" "+s+"="+Pn(t))}}o.slotParent&&e.push(" slotParent=(C)")}const s=(r?"[34m":"")+(Ie[Go(o,xe,null)||"V"]||Ie.V)+(r?"[0m":"");l.push("<"+s+e.join("")+">");const u=Rl(o);u&&l.push(" "+bn.call(u,t-1,n+" ",!0,!0,r)),l.push("</"+s+">")}else if(zo(o)){const s=El(o),u=[];cn(o)&&u.push(" cursor"),o.dirty&&u.push(" dirty:"+o.dirty),o.dirtyChildren&&u.push(` dirtyChildren[${o.dirtyChildren.length}]`);const c=i?Ul(i,o):[];for(let t=0;t<c.length;t++){const n=c[t],e=Go(o,n,null);u.push(" "+n+"="+Pn(e))}const f=Hl(o);if(f){const t=Dl(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("<"+s+u.join("")+">"),Ho(o)||e){const e=Rl(o);e&&l.push(" "+bn.call(e,t-1,n+" ",!0,!0,r))}else l.push(" \x3c!-- not materialized --!>");l.push("</"+s+">")}o=s&&o.nextSibling||null}while(o);return l.join("\n"+n)}function vn(t){return!t.hasAttribute(Es)||"STYLE"===t.nodeName&&(t.hasAttribute(He)||t.hasAttribute(Ue))}function _n(t,n){Uo(n)&&zo(n)&&Pl(n);const e=n[vr];if(e){for(const[,n]of e)gn(t,n);e.clear()}}function gn(t,n){const e=n.backRef;if(e){for(const s of e)if(s instanceof Hr)Sn(s,n);else if(s instanceof Ur)En(t,s,n);else if(ci(s))kn(s[Gr],n);else if(t.dt.has(s)){const e=t.dt.get(s);kn($u(e),n)}e.clear()}}function En(t,n,e){const s=n.ct;s&&s.has(e)&&s.delete(e),n instanceof ki&&!s?.size&&(n.m=void 0,_n(t,n))}function Sn(t,n){const e=t.ct;e&&e.has(n)&&e.delete(n);const s=t.$t;s&&s.has(n)&&s.delete(n);const r=t.yt;r&&r.has(n)&&r.delete(n),t.wt()}function kn(t,n){const e=t?.ct;if(e)for(const[t,s]of e.entries())s.has(n)&&(s.delete(n),0===s.size&&e.delete(t))}function Rn(t,n){const e=se(n);"string"==typeof this&&kf(Rf(e,this));const s=Sf[0];s.h|=4,hn(e,s.ft,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(su(t))return`Task(${Pn(t.bt)})`;if(Ae(t))return`Qrl(${t.vt})`;if("object"==typeof t||"function"==typeof t){if(du.includes(t))return"*";du.length;try{if(du.push(t),Array.isArray(t))return Uo(t)?"("+(Go(t,xe,null)||"vnode")+")":t.map(Pn);if(iu(t))return t instanceof ki?"WrappedSignal":t instanceof zr?"ComputedSignal":"Signal";if(vu(t))return"Store";if(qi(t))return pu(t);if(Uo(t))return"("+(Go(t,xe,null)||"vnode")+")"}finally{du.pop()}}}catch(t){return console.error("ERROR in qwikDebugToString",t),"*error*"}return t}function Tn(t,n,e){return new Proxy(n,new gu(e,t||null))}function qn(t,n,e,s){const r=e.ct||=new Map;let i=r.get(n);i||(i=new Set,r.set(n,i)),__EXPERIMENTAL__.suspense,ou(i,s),lu(s,t)}function Mn(t,n,e,s){e[t]=n;const r=An(e,t,s.ct);r&&fu(s.$,s,r)}function An(t,n,e){let s;if(e)if(Array.isArray(t))for(const t of e.values()){s||=new Set;for(const n of t)s.add(n)}else s=e.get(n);const r=e?.get(Wr);if(r){s||=new Set;for(const t of r)s.add(t)}return s}function xn(t,n,e){let s=n.vt,r=n._t;const i=Hs();if(i){const t=i.chunkForSymbol(s,r);t&&(r=t[1],s=t[0])}var o;if(Ae(o=n)&&o.vt==Me){const e=n.resolved;r="",s=t.gt(null,0,e)+""}else{if(r||(r=t.Et(n.it)),!r)throw qe(14,[n.vt]);r.startsWith("./")&&(r=r.slice(2))}const l=n.getCaptured();let u=null;if(l&&l.length>0&&(u=l.map(n=>""+t.St(n)).join(" ")),e)return[r,s,u];let c=`${r}#${s}`;return u&&(c+="#"+u),c}function In(t,n,e,s){return Mf(t,n,null,null,e,s)}function Nn(t,n){const[e,s,r]=t.split("#");return In(e,s,r||null,n)}function Cn(t,n){return n.kt&&"{"===n.kt[0]&&(n.kt=`(${n.kt})`),[t.gt(n.kt,n.lt.length,n.ot),n.lt]}function On(t,n,e,s=0){const r=(t,n)=>1===t&&"string"==typeof n&&-1!==n.indexOf(" "),i=t=>14===t,o=n=>{const e=t[n+1].split(" "),s=parseInt(e[0],10);let r=t,i=1,o=0,l=0,u=null;for(let n=0;n<e.length;n++){u=r,o=2*(0===n?s:parseInt(e[n],10)),l=o+1;const c=r;if(i=c[o],r=c[l],1===i){const n=2*("string"==typeof r?parseInt(r,10):r);i=t[n],r=t[n+1]}}u&&(u[o]=1,u[l]=n/2),t[n]=i,t[n+1]=r};for(let e=s;e<t.length;e+=2)r(t[e],t[e+1])?o(e):i(t[e])&&(n.Rt=t[e+1])}function jn(t,n){return n?t.rootVNode?il(t.rootVNode,n):void 0:t.element?.ownerDocument}function Ln(t){return null===t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function Fn(t,n,e){return()=>{t.currentStyleScoped=n,t.parentComponentFrame=e}}async function Xn(t,e,s){const r=[e],i=t=>r.push(t);await(async()=>{for(;r.length;)try{const e=r.pop();if(e===lc){const t=r.pop();await n(()=>r.push(t()));continue}if("function"==typeof e){if(e===Promise)r.push(await r.pop());else{const n=e.apply(t);Ps(n)&&await n}continue}Dn(t,i,e,s)}finally{const n=t.streamHandler.waitForPendingFlush();Ps(n)&&await n}})()}function Dn(t,n,e,s){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(iu(e)){((t,n)=>{const e=n instanceof ki?n.rt():n;e instanceof Hr&&(!e.Pt||256&e.h||(t.St(e),t.Tt.add(e)))})(t.serializationCtx,e),t.openFragment(ni);const s=t.getOrCreateLastNode(),r=e instanceof ki?e.rt():e;n(t.closeFragment),n(()=>ff(r,s,".",t)),n(lc)}else if(Ps(e))t.openFragment(ni),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 Xn(t,n,{currentStyleScoped:s.currentStyleScoped,parentComponentFrame:s.parentComponentFrame}),await t.streamHandler.flush()});else{const r=e,i=r.type;if("string"==typeof i){((t,n)=>{null==ii(t,"class")&&n&&(t.constProps||(t.constProps={}),t.constProps.class="")})(r,s.currentStyleScoped);let e=null;const o=t.openElement(i,r.key,r.varProps,r.constProps,s.currentStyleScoped,e,!!(4&r.flags));if(o&&t.htmlNode(o),n(t.closeElement),"head"===i)t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),n(t.additionalHeadNodes);else if("body"===i)n(t.additionalBodyNodes);else{const n=t;t.isHtml||n._didAddQwikLoader||t.qt||(t.emitQwikLoaderAtTopIfNeeded(),t.emitPreloaderPre(),n._didAddQwikLoader=!0)}const l=r.children;null!=l&&n(l)}else if(Te(i)){if(__EXPERIMENTAL__.suspense&&(t=>"function"==typeof t&&oc in t)(i))return void n(()=>(t=>t[oc])(i)(t,r,s,n));if(i===Ji){const e=null!=r.key?{[hs]:r.key}:{};t.openFragment(e),n(t.closeFragment);const s=r.children;null!=s&&n(s)}else if(i===Yi){const e=s.parentComponentFrame;if(e){const i=e.componentNode.id||"",o={},l=ii(r,rs);l&&(o[rs]=l),o["q:sparent"]=i,t.openProjection(o);const u=e.componentNode,c=t.getOrCreateLastNode(),f=k(u,r,t);o[De]=f,n(Fn(s,s.currentStyleScoped,s.parentComponentFrame)),n(t.closeProjection);const a=r.children||null,h=e.consumeChildrenForSlot(c,f)||a;a&&h!==a&&t.addUnclaimedProjection(e,"",a),n(h),n(Fn(s,e.projectionScopedStyle,e.projectionComponentFrame))}else{let n=ni;t.openFragment(n),t.closeFragment()}}else if(i===Zi)t.commentNode(ii(r,"data")||"");else if(i===no){t.streamHandler.flush();const e=r.children;let i;i=Te(e)?e({async write(n){await Xn(t,n,{currentStyleScoped:s.currentStyleScoped,parentComponentFrame:s.parentComponentFrame}),await t.streamHandler.flush()}}):e,n(i),Ps(i)&&n(Promise)}else if(i===Ki)t.htmlNode(ii(r,"data"));else if(i===to)t.streamHandler.streamBlockStart(),n(()=>t.streamHandler.streamBlockEnd()),n(r.children);else if(Uf(i)){const e={};t.openComponent(e);const o=t.getOrCreateLastNode(),l=t.getParentComponentFrame();l.distributeChildrenIntoSlots(r.children,s.currentStyleScoped,s.parentComponentFrame);const u=((t,n,e)=>{const s=t.getOrCreateLastNode(),[r]=e[Vf],i=n.props;return i&&i.children&&delete i.children,s.setProp(Le,r),s.setProp(ds,i),null!==n.key&&s.setProp(hs,n.key),To(t,s,s,r,i)})(t,r,i);if(n(Fn(s,s.currentStyleScoped,s.parentComponentFrame)),n(()=>t.closeComponent()),Ps(u))n(async()=>{const t=await u,e=xs(o.getProp(He));n(t),n(Fn(s,e,l))});else{n(u);const t=xs(o.getProp(He));n(Fn(s,t,l))}}else{const e={[hs]:r.key};t.openFragment(e),n(t.closeFragment);const s=t.getParentComponentFrame(),o=((t,n,e,s)=>{const r=t.getOrCreateLastNode();return To(t,r,n,e,s.props)})(t,s&&s.componentNode,i,r);n(o),Ps(o)&&n(Promise)}}}}function Wn(t,n,e,s){let r=null;const i=e,o=t=>{null==r?r=t:"string"==typeof r&&"string"==typeof t?r+="|"+t:r=[..."string"==typeof r?[r]:r,"|",..."string"==typeof t?[t]:t]},l=n=>(n.vt.startsWith("_")||!n.Mt?.length&&!s||(n=Mf(null,"_run",I,null,[n])),((t,n)=>{const[e,s,r]=xn(t,n,!0),i=`${e}#${s}`;if(!r)return i;const o=[i,"#"],l=r.split(" ");for(let t=0;t<l.length;t++)t>0&&o.push(" "),o.push(+l[t]);return o})(t,n));if(Array.isArray(i))for(let e=0;e<i.length;e++){const r=i[e];if(Ae(r))o(l(r)),Vn(t,n,r);else if(null!=r){const e=Wn(t,n,r,s);e&&o(e)}}else Ae(i)&&(r=l(i),Vn(t,n,i));return r}function Vn(t,n,e){const s=Os(n);if(s){const[n,r]=s,i=((t,n)=>t+":"+n)(n,r);t.At.add(i),t.xt.add(e)}}function Un(){const t=ef();if(!t)return;bc||=Qu(wc,"_hmr");const n=t.m,e=bc.w([n]);pc("qHmr",e)}function zn(t,n,e,s,r){const i=Vo();return Ko(i,De,r),i.parent=n,Ko(n,r,i),Ko(i,Le,e),Ko(i,ds,s),i.dirty=4,un(t,i,1),i}function Bn(t,n){Ko(t,Fe,n),t.flags|=2048}function Hn(t,n,e){Ko(n,ds,e),hn(t,n,4)}function Jn(t,n,e,s){Ko(n,s,null);const r=[];if(Et(t,r,e),al(r),2048&e.flags){const t=Go(e,Fe,null);t&&t.replaceChildren(),Ko(e,Fe,null),e.flags&=-2049}}function Qn(t,n,e){if(0===n)return e;const s=Hu(t,n,e);return kc(n)&&Ec(t,s,n,e),s}function Yn(t,n){if(t)for(const e of t)e.backRef||=new Set,e.backRef.add(n)}function Gn(t,n){if(t)for(const[,e]of t)Yn(e,n)}async function Kn(t){const n=ju(null,null,()=>"",()=>{},new WeakMap);return n.St(t),await n.It(),n.Nt.toString()}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");return Qn(ne(n),n[0],n[1])}function te(t,n){return"string"==typeof t?n[t=parseInt(t,10)]:n[t]}function ne(t){let n;const e={_:t=>te(t,n),Ct:t=>e.Rt?.[+t],getSyncFn:()=>()=>{},dt:new WeakMap,element:null,Rt:null};return On(t,e),n=Tc(e,t),e.Ot=n,e}function ee(t,n,e,s,r){const i="q:container",o="/"+i,l="q:ignore",u="/"+l,c="q:container-island",f="/"+c,a="q:rp",h=t,d=h.qVNodeData||=new WeakMap,p=t.body,$=p.getAttribute,y=p.hasAttribute,m=((t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}})(p,"nodeType"),w=t=>{const n=t.querySelectorAll('script[type="qwik/vnode"]');for(let t=0;t<n.length;t++){const e=n[t],s=e.closest("[q\\:container]");if(s.qVNodeRefs||=new Map,e.hasAttribute("q:patch")){h.qProcessVNodeDataPatch?.(e);continue}const r=e.textContent,i=__EXPERIMENTAL__.suspense&&e.getAttribute("q:r");i?(s.qSegmentVnodeData||=new Map).set(i,r):s.qVnodeData=r}const e=t.querySelectorAll("[q\\:shadowroot]");for(let t=0;t<e.length;t++){const n=e[t].shadowRoot;n&&w(n)}},b=t=>{const n=m.call(t);if(1===n)return null!==$.call(t,i)?3:y.call(t,"q:shadowroot")?6:__EXPERIMENTAL__.suspense&&null!==$.call(t,a)?130:y.call(t,":")?2:0;if(8===n){const n=t.nodeValue||"";if(n.startsWith(c))return 65;if(n.startsWith(l))return 16;if(n.startsWith(i))return 9;if(n.startsWith(f))return 64;if(n.startsWith(u))return 32;if(n.startsWith(o))return 8}return 0},v=t=>{for(;t&&(t=t.nextSibling)&&0===b(t););return t},_=(n,e,s,r,i,o,l,u)=>{const c=__EXPERIMENTAL__.suspense&&void 0!==u,f=i.length;let h=0,p=-1,y=0,m=0,w=0,g=-1,S=null;const k=()=>{let t=0;for(;Gc(w=i.charCodeAt(y))&&(t+=1<<w-Ce,y++,!(y>=f)););return t};do{if(s===r)return;S=null;const R=s==e?2:b(s);if(3===R){const t=s;let e=s;for(;e&&!(S=v(e));)e=e.parentNode;_(n,t,s,S,t.qVnodeData||"",t.qVNodeRefs,t)}else if(16===R){let t=s;do{if(t=n.nextNode(),!t)throw Error(`Island inside \x3c!--${s?.nodeValue}--\x3e not found!`)}while(65!==b(t))}else if(64===R){let t;S=s;do{if(S=n.nextNode(),!S)throw Error("Ignore block not closed!");t=b(S)}while(32!==t&&65!==t);S=null}else if(9===R){S=s;do{if(S=v(S),!S)throw Error(`\x3c!--${s?.nodeValue}--\x3e not closed!`)}while(8!==b(S));_(n,s,s,S,"",null,l)}else if(6===R){S=v(s);const n=s,e=n?.shadowRoot;e&&_(t.createTreeWalker(e,129),null,e,null,"",null,null)}if(!(2&~R)){c&&s!==e&&(s._qSegment=u),p<h&&(-1===p&&(p=0),y=m,y<f?(p+=k(),w===Ne&&(g=p,y++,w=y<f?i.charCodeAt(m):Ce),m=Kc(i,y,f)):p=Number.MAX_SAFE_INTEGER);const t=__EXPERIMENTAL__.suspense&&!c&&130===R?$.call(s,a):null;if(h===p){g!==h||c&&s===e||o.set(c?je(u,h):h,s);const t=i.substring(y,m);if(c&&s===e){const n=d.get(s);void 0===n||""===n?d.set(s,t):n.charCodeAt(0)!==Oe||n.charCodeAt(1)!==Oe||n.endsWith(t)||d.set(s,n+t)}else d.set(s,t)}h++,__EXPERIMENTAL__.suspense&&null!==t&&(E(l,s,t),S=v(s),S&&(n.currentNode=S))}}while(s=S||n.nextNode())},g=(n,e,s,r)=>{n.qVNodeRefs||=new Map;const i=t.createTreeWalker(t,129);i.currentNode=e,_(i,e,e,v(e),s,n.qVNodeRefs,n,r)},E=__EXPERIMENTAL__.suspense?(t,n,e,s)=>{s||=t?.qSegmentVnodeData?.get(e),t&&s&&g(t,n,s,e)}:null;if(h.qProcessVNodeDataPatch=t=>{const n=t?.closest("[q\\:container]"),e=t?.getAttribute("q:r"),s=n&&(e?n.querySelector(`[q\\:rp="${e}"]`):n);n&&s&&g(n,s,t.textContent,e||void 0)},__EXPERIMENTAL__.suspense&&void 0!==n)return void(e&&s&&r&&(e.qVNodeRefs||=new Map,E(e,s,n,r)));w(t);const S=t.createTreeWalker(t,129);_(S,null,S.firstChild(),null,"",null,null)}function se(t){const n=ie(t);if(!n)throw qe(24);return re(n)}function re(t){const n=t;return n.qContainer||=new Zc(n)}function ie(t){return t.closest(os)}function oe(t,n){const e=t+"",s=n?.closest(os),r=s?.qContainer;r&&(((t,n,e)=>{if(!__EXPERIMENTAL__.suspense||!e)return;const s=e.closest("[q\\:container]"),r=s?.querySelector(`script[type="qwik/vnode"][q\\:r="${n}"]:not([q\\:patch])`);ee(t,n,s,e,r?.textContent||void 0);const i=s?.querySelectorAll(`script[type="qwik/vnode"][q\\:r="${n}"][q\\:patch]`);for(let n=0;i&&n<i.length;n++)t.qProcessVNodeDataPatch?.(i[n])})(r.element.ownerDocument,e,n),zc(r,e))}function le(t){if(void 0===tf){const n=ef();if(n&&n.jt)return n.jt;if(void 0!==t)return t;throw Error("Reading `locale` outside of context.")}return tf}function ue(t,n){const e=tf;try{return tf=t,n()}finally{tf=e}}function ce(t,n,...e){return fe.call(this,t,n,e)}function fe(t,n,e){const s=nf;try{return nf=t,n.apply(this,e)}finally{nf=s}}function ae(t,n,e){const s={m:n,Lt:fs,Ft:void 0,jt:t,$:e,Xt:void 0};return we(s),s}function he(t,n,e){const s={m:n,Lt:e,Ft:void 0,jt:t||(e&&ke(e)&&"locale"in e?e.locale:void 0),$:void 0};return we(s),s}function de(t,n){const e=ef();return e?.$?.Dt[t]??n}import{p as pe}from"@qwik.dev/core/preloader";const $e=!1,ye=!0,me=!1,we=()=>{},be=(t,n,...e)=>{const s=n instanceof Error?n:Error(n);return console.error("%cQWIK ERROR","",s.message,...e,s.stack),t&&setTimeout(()=>{throw s},0),s},ve=(t,n,e)=>{let s=e>>1,r=t.length-2>>1;for(;s<=r;){const e=s+(r-s>>1),i=t[e<<1];if(i===n)return e<<1;i<n?s=e+1:r=e-1}return~(s<<1)},_e=(t,n,e,s,r=!1)=>{const i=ve(t,n,s);i>=0?null!=e||r?t[i+1]=e:t.splice(i,2):(null!=e||r)&&t.splice(-1^i,0,n,e)},ge=(t,n,e)=>{const s=ve(t,n,e);return s>=0?t[s+1]:null},Ee=(t,n,e)=>ve(t,n,e)>=0,Se=t=>{const n=Object.getPrototypeOf(t);return n===Object.prototype||n===Array.prototype||null===n},ke=t=>"object"==typeof t&&null!==t,Re=t=>Array.isArray(t),Pe=t=>"string"==typeof t,Te=t=>"function"==typeof t,qe=(t,n=[])=>{const e=(t=>`Code(Q${t}) https://qwikdev-build-v2.qwik-8nx.pages.dev/docs/errors/#q${t}`)(t,...n);return((t,...n)=>be(false,t,...n))(e,...n)},Me="<sync>",Ae=t=>"function"==typeof t&&"function"==typeof t.getSymbol,xe="q:type",Ie={V:"Virtual",F:"Fragment",S:"Signal",A:"Awaited",C:"Component",I:"InlineComponent",P:"Projection"},Ne=126,Ce=33,Oe=124,je=(t,n)=>{const e=parseInt(t,10)-1+n;return-(e*(e+1)/2+n+1)},Le="q:renderFn",Fe="q:targetEl",Xe="⚡️",De="q:slot",We="q:s",Ve="[q\\:patch]",Ue="q:style",ze="style[q\\:style]",Be=ze+",style[q\\:sstyle]",He="q:sstyle",Je="q:ctx",Qe="q:brefs",Ye=(t,n)=>t["qFuncs_"+n]||[],Ge="q:base",Ke="q:container-island",Ze="/"+Ke,ts="q:ignore",ns="/"+ts,es="q:container",ss="/"+es,rs="q:cursorBoundary",is="q:template",os="[q\\:container]:not([q\\:container=html]):not([q\\:container=text])",ls="http://www.w3.org/1999/xhtml",us="http://www.w3.org/2000/svg",cs="http://www.w3.org/1998/Math/MathML",fs="qRender",as="q:id",hs="q:key",ds="q:props",ps="q:seq",$s="q:seqIdx",ys="q:p",ms="q:ps",ws=":",bs=":on",vs=":onIdx",_s=":onFlags",gs=":nearestCursorBoundary",Es=":",Ss="dangerouslySetInnerHTML",ks="__scopedStyleIdPrefix__",Rs=100,Ps=t=>!!t&&"object"==typeof t&&"function"==typeof t.then,Ts=(t,n,e)=>{try{const s=t();return Ps(s)?s.then(n,e):n(s)}catch(t){return e(t)}},qs=(t,n)=>Ps(t)?t.then(n):n(t),Ms=t=>{throw t},As=t=>Xe+t,xs=t=>{if(t){let n=0;do{t=t.substring(0,n)+As(t.substring(n))}while(0!==(n=t.indexOf(" ",n)+1))}return t||null},Is=t=>113===t.charCodeAt(0)&&45===t.charCodeAt(1)&&(58===t.charCodeAt(3)||112===t.charCodeAt(3)&&58===t.charCodeAt(4)),Ns=t=>"DOMContentLoaded"===t?"-d-o-m-content-loaded":((t,n="")=>n+Cs(t))("-"===t.charAt(0)?t.slice(1):t.toLowerCase()),Cs=t=>t.replace(/([A-Z-])/g,t=>"-"+t.toLowerCase()),Os=t=>{const n=t.indexOf(":");return[t.slice(2,n),t.slice(n+1)]},js=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"]),Ls=(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)},Fs=t=>{if(!t)return"";if(Pe(t))return t.trim();const n=[];if(Re(t))for(let e=0;e<t.length;e++){const s=t[e],r=Fs(s);r&&n.push(r)}else for(const[e,s]of Object.entries(t))s&&n.push(e.trim());return n.join(" ")},Xs=t=>t.replace(/([A-Z])/g,"-$1").toLowerCase(),Ds=(t,n)=>{return"number"!=typeof n||0===n||(e=t,js.has(e))?n:n+"px";var e},Ws=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},Vs=()=>({isServer:$e,importSymbol(t,n,e){if(!n)throw qe(14,[e]);if(!t)throw qe(13,[n,e]);const s=Us(t.ownerDocument,t,n).toString(),r=new URL(s);r.hash="";const i=r.href;return import(i).then(t=>t[e])},raf:t=>new Promise(n=>{requestAnimationFrame(()=>{n(t())})}),chunkForSymbol:(t,n)=>[t,n??"_"]}),Us=(t,n,e)=>{const s=t.baseURI,r=new URL(n.getAttribute(Ge)??s,s);return new URL(e,r)};let zs=/*#__PURE__ */Vs();const Bs=t=>zs=t,Hs=()=>zs,Js="undefined"!=typeof document,Qs=Js?document:void 0,Ys=Js&&Qs.createElement("link").relList?.supports?.("modulepreload")?"modulePreload":"preload",Gs=/\.[mc]?js$/,Ks=1e3/60,Zs=t=>{let n=tr.get(t);if(!n){let e;n=((t,n)=>({Wt:t,Ot:Gs.test(t)?0:3,Vt:n,Ut:1,zt:performance.now(),Bt:0,Ht:0}))(t,e),tr.set(t,n)}return n},tr=new Map;let nr=0;const er=[],sr=Ws(()=>{if(ir=!1,!er.length)return;const t=performance.now()+Ks;let n=!1;for(;er.length;){const e=er[0];if(!(1-e.Ut>=.99||nr<25))break;if(er.shift(),fr(e),performance.now()>=t){n=!0;break}}n&&er.length&&!ir&&(ir=!0,sr())}),rr=Ws(r);let ir=!1,or=!1,lr=!1;const ur=[],cr=()=>{const t=ur[ur.length-1],n=t.Jt;if(t.Vt){const e=t.Qt;if(e>=t.Vt.length)return ur.pop(),!1;const s=t.Vt[e];t.Qt=e+1;const r=Zs(s.Wt);if(0===r.Ut)return!0;const i=1-n.Ut;let o;if(1===i||i>=.99)o=Math.min(.01,1-s.Yt);else{const t=(1-s.Yt*i)/s.Gt;o=Math.max(.02,r.Ut*t),s.Gt=t}return ur.push({Jt:r,Ut:o,Kt:t.Kt}),!0}if(t.Kt?.has(n))return ur.pop(),!1;const e=n.Ut;if(n.Ut=t.Ut,e-n.Ut<.01)return ur.pop(),!1;if(n.Vt?.length){const e=t.Kt||new Set;return e.add(n),t.Kt=e,t.Vt=n.Vt,t.Qt=0,!1}return ur.pop(),!1},fr=t=>{if(t.Ot>=2)return;nr++;const n=performance.now();t.Bt=n-t.zt,t.Ot=2;const e=Qs.createElement("link");e.href=new URL("undefined"+t.Wt,Qs.baseURI).toString(),e.rel=Ys,e.as="script",e.onload=e.onerror=()=>{nr--;const s=performance.now();t.Ht=s-n,t.Ot=4,e.remove(),sr()},Qs.head.appendChild(e)},ar=(t,n)=>{const e=Zs(t);e&&((t,n)=>{ur.unshift({Jt:t,Ut:n,Kt:void 0})})(e,n)};Js&&document.addEventListener("qsymbol",t=>{const{symbol:n,href:e}=t.detail;e&&(t=>{if(t?.length){if(Array.isArray(t))for(let n=t.length-1;n>=0;n--){const e=t[n];ar(e,0)}else ar(t,0);Js?rr():r()}})(n.slice(n.lastIndexOf("_")+1))});const hr=t=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0},dr=t=>({write:t,writeRootRef(t){return((t,n)=>this.write(n+""))(0,t)},writeRootRefPath(t){return((t,n)=>this.write((t=>{let n=t[0]+"";for(let e=1;e<t.length;e++)n+=" "+t[e];return n})(n)))(0,t)}}),pr='"',$r="[",yr="]",mr=",",wr="2.0.0-beta.36-dev+3268fab",br=t=>1===t.nodeType,vr=Symbol();class _r{[vr]=void 0}const gr=t=>"foreignObject"===t,Er=t=>"svg"===t||gr(t),Sr=t=>"math"===t,kr={elementNamespace:ls,elementNamespaceFlag:0};class Rr{flags;parent;previousSibling;nextSibling;props;[vr]=void 0;slotParent=null;dirty=0;dirtyChildren=null;nextDirtyChildIndex=0;constructor(t,n,e,s,r){this.flags=t,this.parent=n,this.previousSibling=e,this.nextSibling=s,this.props=r}toString(){return Object.prototype.toString.call(this)}}class Pr extends Rr{key;firstChild;lastChild;constructor(t,n,e,s,r,i,o,l){super(n,e,s,r,i),this.key=t,this.firstChild=o,this.lastChild=l}}class Tr extends Pr{node;elementName;constructor(t,n,e,s,r,i,o,l,u,c){super(t,n,e,s,r,i,o,l),this.node=u,this.elementName=c}}class qr extends Rr{node;text;constructor(t,n,e,s,r,i,o){super(t,n,e,s,r),this.node=i,this.text=o}}const Mr=[],Ar=[],xr=new WeakMap,Ir=":nodeProps",Nr=":nodeDiff",Cr=":errorData",Or=":signal",jr=":inlineComponentData",Lr=Symbol();class Fr{consumer;property;backRef;data;constructor(t,n,e=null,s=null){this.consumer=t,this.property=n,this.backRef=e,this.data=s}}const Xr=Symbol(),Dr=Symbol(),Wr=Symbol(),Vr=(t,n)=>(e,s)=>{const r=he();return r.Ft=m(t,":"),r.$=n||void 0,ce(r,()=>{if(Te(e))return e();if(s)return e[s];if(iu(e))return e.value;if(ke(e)&&vu(e))return qn(yu(e),Wr,$u(e),r.Ft),e;throw qe(2)})};class Ur{Zt;ct=void 0;$=null;tn=null;constructor(t,n){this.$=t||ef()?.$||null,this.Zt=n}trigger(){fu(this.$,this,this.ct)}force(){fu(this.$,this,this.ct)}get untrackedValue(){return this.Zt}set untrackedValue(t){this.Zt=t}get value(){const t=this.untrackedValue,n=ef();if(!n)return t;null===this.$&&(this.$=n.$);const e=n.Ft;if(e){const t=$e,s=this.ct||=new Set,r=__EXPERIMENTAL__.suspense&&t;if(ou(s,e),lu(e,this),t){const t=cu(n.$,this.$);r&&t?.nn?.(this,e,null),uu(e,t)}}return t}set value(t){t!==this.Zt&&(this.Zt=t,fu(this.$,this,this.ct))}valueOf(){}toString(){return this.constructor.name}toJSON(){return{value:this.Zt}}}class zr extends Ur{en;h;[vr]=void 0;constructor(t,n,e=17){super(t||ef()?.$,Lr),this.en=n,this.h=e}invalidate(){this.h|=1;const t=he();t.$=this.$||void 0;const e=n(fe.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.en;ru(t);const n=ef(),e=n?.Ft;if(n){const t=m(this,".");gn(this.$,t),n.Ft=t}try{const e=t.getFn(n)();if(Ps(e))throw qe(29,[t.dev?t.dev.file:"",t.it]);this.h&=-2,super.value=e}finally{n&&(n.Ft=e)}}}class Br{sn;rn=null;ln=!1;un=!0;constructor(t,n,e){this.sn=t,void 0!==n&&(this.info=n,this.cn=e)}get track(){return this.fn||=Vr(this.sn,this.sn.$)}get abortSignal(){return(this.an||=new AbortController).signal}cache(){}get previous(){const t=this.sn.Zt;if(t!==Lr)return t}cleanup(t){"function"==typeof t&&(this.hn||=[]).push(t)}}class Hr extends zr{dn=!1;pn=void 0;$n=null;[vr]=void 0;constructor(t,n,e=17,s){if(super(t,n,e),!s)return;const r=s.initial;if(void 0!==r){const t="function"==typeof r?r():r;this.Zt=t}const i=s.concurrency;void 0!==i&&i>=0&&1!==i&&(this.yn=i,this.mn=[]);const o=s.timeout;o&&(this.wn=o),s.eagerCleanup&&(this.h|=32),s.clientOnly&&(this.h|=64),!1===s.allowStale&&(this.h|=128);const l=s.expires??(s.interval?Math.abs(s.interval):void 0);l&&(this.expires=l),(!1===s.poll||void 0!==s.interval&&s.interval<0)&&(this.h|=256)}get untrackedValue(){if(this.p(),this.$n?.rn){if(this.Zt===Lr)throw this.$n?.rn;return this.Zt}if(this.pn)throw this.pn;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.bn=void 0,this.mn)for(let t=0;t<this.mn.length;t++)this.mn[t].un=!1;else this.$n&&(this.$n.un=!1);this.vn(),super.value=t,this._n()}get loading(){const t=this.untrackedLoading,n=ef();if(n&&(this.$||=n.$||null)){const t=n.Ft;t&&(ou(this.$t||=new Set,t),lu(t,this),uu(t,this.$))}return t}set untrackedLoading(t){t!==this.dn&&(this.dn=t,fu(this.$,this,this.$t))}get untrackedLoading(){return this.p(),this.dn}get error(){const t=this.untrackedError,n=ef();if(n&&(this.$||=n.$||null)){const t=n.Ft;t&&(ou(this.yt||=new Set,t),lu(t,this),uu(t,this.$))}return t}set untrackedError(t){t!==this.pn&&(this.pn=t,fu(this.$,this,this.yt))}get untrackedError(){return this.pn}get expires(){return this.Pt||0}set expires(t){this.vn(),this.Pt=t,this.Pt&&this.gn()&&this._n()}get poll(){return!(256&this.h)}set poll(t){t?this.h&=-257:this.h|=256,this.Pt&&this.gn()&&(this.vn(),this._n())}get interval(){const t=this.Pt||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.bn=t,this.cn=void 0===this.cn?1:this.cn+1),this.En(!0,128&this.h)}En(t,n){this.h|=1,this.vn(),n&&(this.Zt=Lr),t&&(this.ct?.size||this.$t?.size||this.yt?.size)&&Promise.resolve().then(()=>this.p())}abort(t){this.$n&&this.Sn(this.$n,t)}wt(){32&this.h&&!this.gn()&&setTimeout(()=>{this.gn()||this.abort()})}async promise(){for(this.p();this.$n?.rn;)await(this.$n?.rn)}p(){if(!(1&this.h))return;this.vn(),this.h&=-2;const t=this.$n;t&&this.Sn(t);const n=0===this.yn?1/0:this.yn??1;if(this.mn?this.mn.length>=n:t?.rn)return void(this.h|=1);const e=this.cn,s=new Br(this,this.bn,e);this.$n=s,this.mn&&this.mn.push(s),s.rn=this.kn(s)}async kn(t){let e=this.en.resolved;if(e||(this.untrackedLoading=!0,e=await this.en.resolve(),!t.an?.signal.aborted)){try{this.wn&&(this.Rn=setTimeout(()=>{const n=Error(`timeout ${this.wn}ms`);this.Pn(t,n),t.an?.abort(n)},this.wn));const s=n(e.bind(null,t));let r;if(Ps(s)?(this.untrackedLoading=!0,r=await s):r=s,t.rn=null,t.un){const n=this.mn;if(n){let e=!1;for(let s=n.length-1;s>=0;s--)n[s]===t?e=!0:e&&(n[s].un=!1)}this.untrackedError=void 0,super.value=r}}catch(n){t.rn=null,this.Pn(t,n)}(()=>t===this.$n)()&&(clearTimeout(this.Rn),t.cn===this.cn&&(this.bn=void 0),1&this.h?this.p():(this.untrackedLoading=!1,this._n()))}else t.rn=null}Pn(t,n){t===this.$n&&t.un&&(t.un=!1,n instanceof Error&&"AbortError"===n.name||(this.untrackedError=n,this.untrackedValue=Lr))}async Tn(){this.vn(),clearTimeout(this.Rn);const t=this.$n;t&&this.Sn(t),this.mn?await Promise.all(this.mn.map(t=>t.rn)):await(t?.rn)}vn(){void 0!==this.qn&&(clearTimeout(this.qn),this.qn=void 0)}_n(){if(!this.Pt)return;this.vn();const t=!(256&this.h),n=128&this.h&&!t;this.qn=setTimeout(()=>this.En(t,n),this.Pt),this.qn?.unref?.()}gn(){return!!(this.ct?.size||this.$t?.size||this.yt?.size)}Sn(t,n){t.ln||(t.ln=!0,t.an?.abort(n),t.rn=qs(t.rn,()=>this.Mn(t)))}Mn(t){const n=t.hn,e=t=>{const n=this.$?.handleError;n?n(t,null):console.error("Error in async signal cleanup",t)},s=()=>{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 r;if(n)for(let t=0;t<n.length;t++)try{const s=n[t]();Ps(s)&&(r=(r?r.then(()=>s):s).catch(e))}catch(t){e(t)}if(r)return r.then(s);s()}}const Jr=Symbol(),Qr=Symbol(),Yr=Symbol(),Gr=Symbol(),Kr=Symbol(),Zr=Symbol(),ti=[],ni={};Object.freeze(ti),Object.freeze(ni);class ei{owner;ct=void 0;$=null;constructor(t){this.owner=t}get(t,n){if(n===Jr)return this.owner.constProps;if(n===Qr)return this.owner.varProps;if(n===Yr)return this.owner;if(n===Gr)return this;let s;if("children"===n)s=this.owner.children;else{if("string"==typeof n&&"string"==typeof this.owner.type){const t=e(n);t&&(n=t)}s=ii(this.owner,n),n in this.owner.varProps&&si(this,n)}return s instanceof ki&&4&s.h?s.value:s}set(t,n,s){if(n===Yr)this.owner=s;else if("children"===n)this.owner.children=s;else if(n===Jr)this.owner.constProps=s;else if(n===Qr)this.owner.varProps=s;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===ni?this.owner.varProps={}:n in this.owner.varProps||(this.owner.toSort=!0),this.owner.varProps[n]!==s&&(this.owner.varProps[n]=s,ri(this,n))}return!0}deleteProperty(t,n){let e=delete this.owner.varProps[n];return e&&ri(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===Jr||n===Qr)return!0;const s=n in this.owner.varProps;if("string"==typeof n&&(s&&si(this,n),"string"==typeof this.owner.type)){const t=e(n);t&&(n=t)}return s||!!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 si=(t,n)=>{const e=ef();e&&null===t.$&&e.$&&(t.$=e.$);const s=e?.Ft;s&&qn(t.owner._proxy,n,t,s)},ri=(t,n)=>{const e=((t,n)=>t?.get(n))(t.ct,n);return e&&fu(t.$,t,e),!!e},ii=(t,n)=>t.constProps&&n in t.constProps?t.constProps[n]:t.varProps[n],oi=(t,n)=>li(t)?.[n]||ui(t)?.[n]||null,li=t=>t?Qr in t?"children"in t?{...t[Qr],children:t.children}:t[Qr]:t:null,ui=t=>t&&Jr in t?t[Jr]:null,ci=t=>t&&Qr in t,fi=t=>(n,...e)=>t.call(null,Lf(n),...e);class ai extends zr{constructor(t,n){super(t,n,17)}An=!1;p(){if(!(1&this.h))return;ru(this.en);const t=lf(this.en.resolved),{deserialize:n,initial:e}=t,s=t.update,r=this.Zt===Lr?e:this.Zt,i=cf(()=>this.An?s?.(r)||r:n(r),this,".",this.$);this.An=!0,this.h&=-2,(this.An&&"undefined"!==i||i!==this.Zt)&&(this.Zt=i,fu(this.$,this,this.ct))}}const hi=(t,n)=>new zr(n?.container||null,t,hu(n?.serializationStrategy||"always")),di=(t,n)=>new Hr(n?.container||null,t,hu(n?.serializationStrategy||"always"),n),pi=t=>new ai(null,t),$i=t=>new Ur(null,t),yi=/*#__PURE__*/fi(hi),mi=/*#__PURE__*/fi(di),wi=fi(pi),bi=t=>t.value,vi=(t,n)=>t[n],_i=t=>1===t.length?iu(t[0])?t[0].tn||=new ki(null,bi,t,null):vu(t[0])?new ki(null,bi,t,null):t[0].value:new ki(null,vi,t,null),gi=(...t)=>{const n=t[0],e=t.length<2?"value":t[1];if(!ke(n))return n[e];if(iu(n))return n instanceof ki&&4&n.h?n:_i(t);if(ci(n)){const s=n[Jr],r=n[Qr];if(s&&Object.prototype.hasOwnProperty.call(s,e))return s[e];if(Object.prototype.hasOwnProperty.call(r,e)){const n=r[e];return Ei(n,t)}}else{const s=yu(n);if(s){const n=s[e];return Ei(n,t)}}return n[e]},Ei=(t,n)=>iu(t)?t:_i(n),Si=(t,n)=>{const e=gi(t,n);return e===Kr?t[n]:e};class ki extends Ur{lt;ot;kt;h;m=void 0;[vr]=void 0;constructor(t,n,e,s,r=5){super(t,Lr),this.lt=e,this.ot=n,this.kt=s,this.h=r}invalidate(){this.h|=1;try{this.p()}catch(t){this.$&&this.m&&(this.$.setHostProp(this.m,Or,this),hn(this.$,this.m,32))}2&this.h&&(this.h&=-3,fu(this.$,this,this.ct))}get untrackedValue(){return this.p(),this.Zt}p(){if(!(1&this.h))return;const t=cf(()=>this.ot(...this.lt),this,".",this.$);this.h&=-3,t!==this.Zt&&(this.h|=2,this.Zt=t)}rt(){return this.ot===bi&&iu(this.lt[0])?this.lt[0]:this}set value(t){throw qe(31)}get value(){return super.value}}class Ri{data;constructor(t){this.data=t}}Object.prototype.hasOwnProperty;class Pi{type;children;flags;toSort;key;varProps;constProps;dev;_proxy=null;constructor(t,n,e,s,r,i,o,l){this.type=t,this.children=s,this.flags=r,this.toSort=!!o,this.key=null==i?null:"string"==typeof i?i:""+i,this.varProps=!n||hr(n)?ni:n,this.constProps=!e||hr(e)?null:e,we()}get props(){return this._proxy||=w(this)}}const Ti=(t,n,e)=>{let s=t[n];if(!s)return t[n]=e,!0;Array.isArray(s)?s.push(e):s=t[n]=[s,e]},qi=t=>t instanceof Pi,Mi=(t,n)=>{if("string"==typeof t){const e=se(n);kf(Rf(e,t))}return null},Ai="bind:value",xi="bind:checked",Ii="passive:",Ni="preventdefault:",Ci=Object.prototype.hasOwnProperty,Oi=(t,n,e,s,r=!1)=>{let i=t,o=r;if(n.length>0){o||(i={...i},o=!0);for(let t=0;t<n.length;t++)delete i[n[t]]}if(e.length>0)for(let t=0;t<e.length;t++){const n=e[t];s.has(Ns(n.slice(15)))&&(o||(i={...i},o=!0),delete i[n])}return i},ji=t=>t.startsWith("on")&&t.endsWith("$")?Ns(t.slice(2,-1)):t.startsWith("window:on")&&t.endsWith("$")?Ns(t.slice(9,-1)):t.startsWith("document:on")&&t.endsWith("$")?Ns(t.slice(11,-1)):null,Li=(t,n,s,r,i=!1)=>{let o=t,l=i;for(let t=0;t<n.length;t++){const i=n[t],u=ji(i),c=e(i,r.has(u));if(c){l||(o={...o},l=!0);const t=s.get(c);(void 0===t||t<s.get(i))&&(o[c]=o[i]),delete o[i]}}return o},Fi=(t,n,e,s,r,i,o)=>new Pi(t,n,e,s,r,i,!1,o),Xi=(t,n,e,s,r,i,o)=>{let l=!1,u=!1,c=!1,f=null,a=null;if("string"==typeof t){const t=new Set,s=[],r=[],i=[],o=[],h=[],d=[],p=new Map,$=new Map;if(e){let n=0;for(const r in e)p.set(r,n++),r.startsWith(Ii)?(i.push(r),t.add(Ns(r.slice(8)))):r.startsWith(Ni)?h.push(r):null!==ji(r)?s.push(r):r===xi?a=e[r]:r===Ai&&(f=e[r])}if(n){let e=0;for(const s in n)$.set(s,e++),s.startsWith(Ii)?(o.push(s),t.add(Ns(s.slice(8)))):s.startsWith(Ni)?d.push(s):null!==ji(s)?r.push(s):s===xi?a=n[s]:s===Ai&&(f=n[s])}if(e){const n=e;e=Oi(e,i,h,t,u),u=u||e!==n,e=Li(e,s,p,t,u),u=u||e!==n}if(n){const e=n;n=Oi(n,o,d,t,c),c=c||n!==e,n=Li(n,r,$,t,c),c=c||n!==e,l=l||r.length>0}if(a||f)if(c||(n={...n},c=!0),n||={},a){n&&Ci.call(n,xi)&&delete n[xi],e&&Ci.call(e,xi)&&(u||(e={...e},u=!0),delete e[xi]),n.checked=a;const t=Mf(null,"_chk",v,null,[a]);if(e&&Ci.call(e,"q-e:input")){u||(e={...e},u=!0);const t=e["q-e:input"];delete e["q-e:input"],l=Ti(n,"q-e:input",t)||l}l=Ti(n,"q-e:input",t)||l}else if(f){n&&Ci.call(n,Ai)&&delete n[Ai],e&&Ci.call(e,Ai)&&(u||(e={...e},u=!0),delete e[Ai]),n.value=f;const t=Mf(null,"_val",b,null,[f]);if(e&&Ci.call(e,"q-e:input")){u||(e={...e},u=!0);const t=e["q-e:input"];delete e["q-e:input"],l=Ti(n,"q-e:input",t)||l}l=Ti(n,"q-e:input",t)||l}n&&Ci.call(n,"className")&&(c||(n={...n},c=!0),n.class=n.className,n.className=void 0,l=!0),e&&Ci.call(e,"className")&&(u||(e={...e},u=!0),e.class=e.className,e.className=void 0)}if(n)for(const t in n)"children"===t?(c||(n={...n},c=!0),s||=n.children,delete n.children):"key"===t?(c||(n={...n},c=!0),i||=n.key,delete n.key):(e&&t in e||null===n[t])&&(c||(n={...n},c=!0),delete n[t]);return new Pi(t,n,e,s,r,i,l||!0,o)},Di=(t,n,e,s)=>zi(t,n,s),Wi=(t,n,e,s,r)=>zi(t,{...e,...n},r),Vi=(t,n,e,s,r,i)=>zi(t,{...e,...n,children:s},i),Ui=t=>t.children,zi=(t,n,e,s,r)=>Xi(t,n,null,null,0,e,r),Bi=zi,Hi=zi,Ji=t=>t.children,Qi=(t,n)=>new Pi(Ui,null,null,t.children,0,n),Yi=t=>Fi(Ui,null,{[We]:""},t.children,0,t.name??""),Gi=Symbol(),Ki=()=>null,Zi=()=>null,to=t=>t.children,no=(t,n)=>zi(Qi,{children:zi(eo,t)},n),eo=()=>null;let so=null,ro=null;const io=Object.prototype.hasOwnProperty,oo=(t,n=[],e={})=>{let s=null;const r=t[Jr];if(r)for(const t in r)n.includes(t)||(s||={},s[t]=r[t]);const i=e,o=t[Qr];for(const t in o)n.includes(t)||(i[t]=o[t]);return w(new Pi(null,i,s,null,0,null))};class lo{target;constructor(t){this.target=t}}class uo{target;constructor(t){this.target=t}}class co{target;text;constructor(t,n){this.target=t,this.text=n}}class fo{target;parent;beforeTarget;constructor(t,n,e){this.target=t,this.parent=n,this.beforeTarget=e}}class ao{target;attrName;attrValue;scopedStyleIdPrefix;isSvg;constructor(t,n,e,s,r){this.target=t,this.attrName=n,this.attrValue=e,this.scopedStyleIdPrefix=s,this.isSvg=r}}const ho=t=>new lo(t),po=t=>new uo(t),$o=(t,n)=>new co(t,n),yo=(t,n,e)=>new fo(t,n,e),mo=(t,n,e,s=null,r=!1)=>new ao(t,n,e,s,r),wo=()=>{const t=rf(),n=t.m;let e=t.$.getHostProp(n,ps);null===e&&(e=[],t.$.setHostProp(n,ps,e));let s=t.$.getHostProp(n,$s);for(null===s&&(s=0),t.$.setHostProp(n,$s,s+1);e.length<=s;)e.push(void 0);return{val:e[s],set:t=>e[s]=t,i:s,iCtx:t}},bo=t=>{const n=Te(t)&&!Uf(t)?ce(void 0,t):t;return $i(n)},vo=t=>_o(bo,t),_o=(t,...n)=>{const{val:e,set:s}=wo();return null!=e?e:s(t=Te(t)&&!Uf(t)?lf(t,...n):t)},go=()=>({pending:$i(0),version:$i(0)}),Eo=t=>{if(t.Tn){try{t.Tn()}catch(t){be(!1,t)}t.Tn=null}},So=Object.prototype.hasOwnProperty,ko=(t,n,e,s,r,i,o)=>X(F(o,t,n,r,i),e,s),Ro=(t,n,e,s,r,i,o,l,u=!1,c)=>X(F(c,t,n,o,l),e,s,r,i,u),Po=(t,n,e,s,r)=>{if(Is(e))return void ut(e,s,n.node,n,t);if(e===ys||e===ms)return Ko(n,e,s),void(n.flags|=192);const i=s;if("ref"===e&&et(s,n.node,r))return;const o=n[vr]?.get(e);if(iu(s)){const r=s instanceof ki?s.rt():s;if(o?.backRef?.has(r))return;o&&gn(t.$,o);const i=n;s=st(t.$,i,e,r,t.tt.st)}else o&&gn(t.$,o);if(Ps(s)){const r=n,o=s.then(n=>{j(t.M,r,e,n,t.O,i)});return void t.X.push(o)}j(t.M,n,e,s,t.O,i)},To=(t,n,e,s,r)=>{const i=ae(t.jt,n,t);let o;e&&(i.Ft=m(e,":"),i.$=t),t.ensureProjectionResolved(n);let l=!1;if(null===s&&(s=t.getHostProp(n,Le)),Ae(s))"children"in(r=r||t.getHostProp(n,ds)||ni)&&delete r.children,o=s.getFn(i);else if(Uf(s)){const t=s;o=()=>fe(i,t,[r||ni,null,0])}else{l=!0;const t=s;o=()=>fe(i,t,[r||ni])}const u=(e=0)=>Ts(()=>(l||(t.setHostProp(n,$s,null),t.setHostProp(n,vs,null)),e>0&&Uo(n)&&_n(t,n),qs(o(r),t=>qs(i.Xt,()=>t))),e=>{const s=t.getHostProp(n,bs);return s?qt(t,e,s):e},t=>{if(Ps(t)&&e<Rs)return t.then(()=>u(++e));if(e>=Rs)throw Error("Max retry count of component execution reached");throw t});return u()};let qo=null;const Mo=(t,n,e)=>{qo||(qo=t.insertBefore),qo.call(t,n,e)},Ao=(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,xo=t=>"false"!==t&&!!t,Io=(No=tn,()=>queueMicrotask(No));var No;const Co=Ws(tn);let Oo=!1;const jo=[],Lo=(t,n)=>{let e;for(;t&&!(e=Object.getOwnPropertyDescriptor(t,n)?.get);)t=Object.getPrototypeOf(t);return e||function(){return this[n]}},Fo=t=>{let n=null;return e=>(n||(n=Lo(e,t)),n.call(e))},Xo=(t,n,e=null)=>{const s=new Tr(e,-4087,null,null,null,null,null,null,t,n);return t.vNode=s,s},Do=t=>{const n=new Tr(null,-4095,null,null,null,null,void 0,void 0,t,void 0);return t.vNode=n,n},Wo=(t,n)=>new qr(-4084,null,null,null,null,t,n),Vo=()=>new Pr(null,-4094,null,null,null,null,null,null),Uo=t=>t instanceof Rr,zo=t=>!(1&~t.flags),Bo=t=>!!(5&t.flags),Ho=t=>!(1&~t.flags)&&void 0!==t.firstChild&&void 0!==t.lastChild,Jo=t=>!(4&~t.flags),Qo=t=>!(2&~t.flags),Yo=t=>!(2&~t.flags)&&null!==Go(t,De,null),Go=(t,n,e)=>{if(zo(t)||Qo(t)){const s=t.props?.[n]??null;if("string"==typeof s&&e){const r=e(s);return t.props[n]=r,r}return s}return null},Ko=(t,n,e)=>{null==e&&t.props?delete t.props[n]:(t.props||={},t.props[n]=e)},Zo=(t,n,e,s,r=null)=>{zo(n)&&(Ko(n,e,s),dn(t,mo(n.node,e,s,r,!!(512&n.flags))))},tl=t=>{if(t.key)return;const n=Al(t.node,Es);n&&(t.key=n)},nl=(t,n)=>{if(1==(15&n.flags)){const e=n;e.flags^=8;const s=e.node,r=s.attributes;let i=!1;for(let n=0;n<r.length;n++){const o=r[n],l=o.name;if(Is(l))pn(o,l,t,s);else if(i);else if(l!==Es&&l)if(l.startsWith(es)){const t=o.value;"html"===t?Ko(e,"dangerouslySetInnerHTML",s.innerHTML):"text"===t&&"value"in s&&Ko(e,"value",s.value)}else{const t=o.value;Ko(e,l,t)}else{const t=o.value;t&&(e.key=t),i=!0}}null===Go(e,ys,null)&&null===Go(e,ms,null)||(n.flags|=64)}},el=t=>{if("_run"===t.vt){const n=t.getCaptured()?.[0];if(Ae(n))return n}return t},sl=(t,n,e)=>{let s=t;for(;e&&s&&Qo(s);){const t=n?s.firstChild:s.lastChild;if(!t)break;if(5&t.flags)return t;s=t}for(;s;){let t=n?s.nextSibling:s.previousSibling;if(t&&5&t.flags)return t;if(!t){let e=s.parent;if(e&&!Qo(e))return null;for(;e&&!(t=n?e.nextSibling:e.previousSibling);)if(e=e.parent,e&&!Qo(e))return null;if(!t)return null;if(Jo(t)&&e&&zo(e))return null}for(;t;){if(s=t,5&s.flags&&Hl(s))return s;t=n?s.firstChild:s.lastChild}}return null},rl=(t,n)=>{const e=n;if(!(8&e.flags)){const s=bl(n,!0),r=e.node,i=Dl(s);let o=sl(n,!1,!0);const l=sl(n,!0,!0),u=r||(l&&zo(l)?l.node:l?.node)||null;let c=u;for(;o&&Jo(o);){if(!(8&o.flags)){const n=i.createTextNode(o.text);dn(t,yo(n,s,c)),c=n,o.node=n,o.flags|=8}o=sl(o,!1,!0)}for(o=n;o&&Jo(o);){const n=sl(o,!0,!0),e=!n||!Jo(n);if(!(8&o.flags)){if(e&&r)dn(t,$o(r,o.text));else{const n=i.createTextNode(o.text);dn(t,yo(n,s,u)),o.node=n}o.flags|=8}o=n}}},il=(t,n)=>{let e=t;const s=t.node,r=s.qVNodeRefs;let i,o=-1;const l="string"==typeof n?n:"";if("string"==typeof n)o=parseInt(l),i=r.get(o);else{i=n;const t=i,s=t.vNode;if(s)return s;if(__EXPERIMENTAL__.suspense&&t._qSegment)return e=Do(i),tl(e),t.vNode=e,e}if(Uo(i))e=i;else{if(__EXPERIMENTAL__.suspense&&i._qSegment)e=i.vNode||Do(i),tl(e);else{let t=i;const n=[i];for(;t&&t!==s&&!t.vNode;)t=t.parentElement,n.push(t);t.vNode&&(e=t.vNode);for(let t=n.length-2;t>=0;t--)e=ul(e,n[t])}-1!=o&&(i.vNode=e,r.set(o,e))}if("string"==typeof n){const t=l.length;let n=cl(l,t),s=0;for(;n<t;){const t=l.charCodeAt(n);s*=26,t>=97?s+=t-97:(s+=t-65,e=ol(e,s),s=0),n++}}return e},ol=(t,n)=>{let e=Rl(t);for(;e.flags>>>12!==n;)e=e.nextSibling;return e},ll=[],ul=(t,n)=>{let e=Rl(t);for(;e&&(!(e instanceof Tr)||e.node!==n);)if(Qo(e)){const t=e.nextSibling,n=Rl(e);n?(t&&ll.push(t),e=n):e=t||(ll.length?ll.pop():null)}else{const t=e.nextSibling;e=t||t||ll.pop()}for(;ll.length;)ll.pop();return e},cl=(t,n)=>{let e=45===t.charCodeAt(0)?1:0;for(;e<n;){const n=t.charCodeAt(e);if(!(n>=48&&n<=57))return e;e++}return n},fl=(t,n,e,s)=>{const r=n.createElement("errored-host");s&&s instanceof Error&&(r.props={error:s}),r.setAttribute("q:key","_error_");const i=Xo(r,"errored-host");if(Bo(e))wl(t,i,e,null);else{const n=[];$n(t,e,t=>{n.push(t)});for(let e=0;e<n.length;e++)wl(t,i,n[e],null)}return i},al=Gt,hl=(t,n,e,s)=>{const r=zo(n);r&&Pl(n);const i=e.parent;if(e===s){if(i)return;s=null}yl(t,i,n,e);const o=e.node,l=32&n.flags,u=r?n.node:bl(n,!1);u&&!l&&dn(t,yo(o,u,pl(t,n,s)?.node??null)),$l(n,e,s),l&&(e.flags|=32)},dl=(t,n,e,s)=>{const r=zo(n);r&&Pl(n);const l=e.parent;if(e===s){if(l)return;s=null}yl(t,l,n,e);const u=32&n.flags,c=!r&&2048&n.flags?n.props?.[Fe]:null,f=c?null:r?n:vl(n,!1),a=c||f?.node,h=pl(t,n,s),d=h?.node??null;if(Yo(e)&&f&&1536&f.flags){const r=vl(n,!1),l=pl(t,n,s)?.node??null,{elementNamespace:u,elementNamespaceFlag:c}=o(r,e);$n(t,e,n=>{if(Jo(n))dn(t,yo(n.node,a,l));else{if((1536&n.flags)!==c){const t=((t,n,e,s)=>{let r=t,l=null,u=null,c=null;for(;r;){let f=null,a=null;if(zo(r)){f=r.node;const t=El(r),l=r.parent,h=null==u?n:l&&vl(l,!0);if(h){const t=o(h,El(r));e=t.elementNamespace,s=t.elementNamespaceFlag}const d=Rl(r);if(a=i(f,t,e,!d),f.remove(),null==u&&(u=a),c&&c.appendChild(a),r.node=a,r.flags&=-1537,r.flags|=s,d){r=d,c=a;continue}if(ql(f)){const t=re(f);if(t){const n=Rl(t.rootVNode);if(n){r=n,c=a;continue}}}}if(r===t)return u;const h=r.nextSibling;if(h)r=h;else{for(l=r.parent;l;){if(l===t)return u;const n=l.nextSibling;if(n)return r=n,u;l=l.parent}if(null==l)return u}}return u})(n,r,u,c);t&&(n.node=t)}dn(t,yo(n.node,a,l))}})}else a&&!u&&$n(t,e,n=>{dn(t,yo(n.node,a,d))});$l(n,e,s),u&&(e.flags|=32)},pl=(t,n,e)=>{let s=null;return null==e?Qo(n)&&(s=sl(n,!0,!1)):s=Qo(e)?sl(e,!0,!0):e,s&&Jo(s)&&rl(t,s),s},$l=(t,n,e)=>{const s=e?e.previousSibling:t.lastChild;e?e.previousSibling=n:t.lastChild=n,s?s.nextSibling=n:t.firstChild=n,n.previousSibling=s,n.nextSibling=e,n.parent=t},yl=(t,n,e,s)=>{n&&(s.previousSibling||s.nextSibling||n!==e)&&_l(t,n,s,!1)},ml=(t,n)=>{let e=n;for(;e&&Qo(e);)e=e.lastChild;!e||!Jo(e)||8&e.flags||rl(t,e)},wl=(t,n,e,s)=>{Bo(e)?hl(t,n,e,s):dl(t,n,e,s)},bl=(t,n)=>{for(;t&&!zo(t);){if(2048&t.flags)return t.props?.[Fe];t=t.parent||(n?t.slotParent:null)}return t?t.node:null},vl=(t,n)=>{for(;t&&!zo(t);)t=t.parent||(n?t.slotParent:null);return t},_l=(t,n,e,s)=>{if(Jo(e)&&rl(t,e),s){if(null!==Go(n,Ss,null))return;Bo(e)?dn(t,ho(e.node)):$n(t,e,n=>{dn(t,ho(n.node))})}const r=e.previousSibling,i=e.nextSibling;r?r.nextSibling=i:n.firstChild=i,i?i.previousSibling=r:n.lastChild=r,e.previousSibling=null,e.nextSibling=null},gl=(t,n,e,s=!0)=>{const r=bl(n,!0);if(r&&s)if(Bo(n))dn(t,po(n.node));else{const e=vl(n,!1);e&&e.firstChild===n&&e.lastChild===n?dn(t,po(r)):$n(t,n,n=>{dn(t,ho(n.node))})}const i=e.previousSibling;i?i.nextSibling=null:n.firstChild=null,n.lastChild=i},El=t=>{const n=t;let e=n.elementName;if(void 0===e){const t=n.node,s=Xl(t).toLowerCase();e=n.elementName=s,n.flags|=(t=>{switch(Fl(t)){case us:return 512;case cs:return 1024;default:return 0}})(t)}return e},Sl=t=>{let n=t.text;return void 0===n&&(n=t.text=t.node.nodeValue),n},kl=(t,n,e)=>{rl(t,n),n.text=e,dn(t,$o(n.node,e))},Rl=t=>{if(Jo(t))return null;let n=t.firstChild;return __EXPERIMENTAL__.suspense&&void 0===n&&zo(t)&&(t=>{const n=t.getAttribute("q:rp");if(null===n)return!1;const e=Ll(t);return Kl(e)&&"template"===e.localName&&e.getAttribute("q:r")===n&&null===Cl(e)})(t.node)?null:(void 0===n&&(n=Pl(t)),n)},Pl=n=>{const e=n;let s=e.firstChild;if(void 0===s){const n=e.node;s=e.parent&&ql(n)?e.firstChild=e.lastChild=null:(n=>{const e=n.node,s=Ll(e),r=Dl(e)?.qVNodeData?.get(e);return((n,e,s,r)=>{if(tl(n),__EXPERIMENTAL__.suspense&&e._qSegment,r){if(r.charCodeAt(0)===Oe&&r.charCodeAt(1)===Oe){const t=(t=>{const n=t.indexOf("||",2);return{elementVNodeData:t.substring(2,n),virtualVNodeData:t.substring(n+2)}})(r),e=t.elementVNodeData;r=t.virtualVNodeData;const i=Wl(n,s,e);if(!r)return i}return((n,e,s,r)=>{let i=0,o=null,l=null,u=null;const c=t=>{t.flags=4095&t.flags|i<<12,i++,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&&vn(t)};let p=null;if(Vl(e,($,y,m,w,b)=>{if(Jl($())){for(;d(r);)if(!(r=Cl(r)))throw qe(27,[e,$(),b]);a=null,u=null;let t=0;for(;Jl($());)t*=10,t+=m()-48;for(;t--;){const n=Do(r);for(tl(n),c(n),r=Cl(r);Kl(r)&&vn(r);)if(!(r=Cl(r))&&t>0)throw qe(27,[e,$(),b])}}else if(59===$())Ko(n,He,y());else if(60===$())(p||=[]).push(n),Ko(n,Le,y());else if(61===$()){h||(h=se(s));const t=y();h.xn(parseInt(t,10),n)}else if(62===$())Ko(n,ds,y());else if(64===$()){let e;w(b+1)===Oe?(m(),e=decodeURIComponent(t(y())),m()):e=y(),n.key=e}else if(91===$())Ko(n,ps,y());else if(94===$())Ko(n,$s,y());else if(96===$())h||(h=se(s)),wn(n,y(),h);else if(63===$())h||(h=se(s)),n.slotParent=il(h.rootVNode,y());else if(93===$())Ko(n,Je,y());else if(123===$())m(),c(Vo()),Yl.push(n,o,l,u,i),i=0,n=l,o=l=null;else if($()===Oe){const e=y(),s=t(e);let r;w(b+e.length+1+1)===Oe?(m(),r=decodeURI(t(y())),m()):r=t(y()),Ko(n,s,r)}else if(125===$())m(),n.lastChild=l,i=Yl.pop(),u=Yl.pop(),l=Yl.pop(),o=Yl.pop(),n=Yl.pop();else if(126===$()){const e=t(y());Ko(n,De,e)}else{for(;Kl(r)&&vn(r);)r=Cl(r);const t=r&&3===xl(r)?r:null;null===a&&(a=t?t.nodeValue:null,f=0);let n=0;for(;Ql($());)n+=m()-97,n*=26;n+=m()-65;const e=null===a?"":a.substring(f,f+n);c(u=((t,n,e)=>new qr(-4092,null,t,null,null,n,e))(u,t,e)),f+=n}}),p){h||(h=se(s));for(let t=0;t<p.length;t++)h.ensureProjectionResolved(p[t]);p=null}return n.lastChild=l,o})(n,r,e,s)}return Wl(n,s,void 0)})(n,e,s,r)})(e)}return s};let Tl=null;const ql=t=>(Tl||(Tl=t.hasAttribute),Tl.call(t,es));let Ml=null;const Al=(t,n)=>(Ml||(Ml=t.getAttribute),Ml.call(t,n)),xl=Fo("nodeType"),Il=t=>{const n=xl(t);return 3===n||1===n};let Nl=null;const Cl=t=>{for(Nl||(Nl=Lo(t,"nextSibling")),jl||(jl=Lo(t,"firstChild"));t;)if(null!==(t=Nl.call(t))){const n=xl(t);if(3===n||1===n)break;if(8===n){const n=t.nodeValue;if(n?.startsWith(ts))return mn(t,Ke,Nl,jl);if(t.nodeValue?.startsWith(Ze))return mn(t,[Ke,ns],Nl,jl);if(n?.startsWith(es))for(;t&&(t=Nl.call(t))&&(8!==xl(t)||!t.nodeValue?.startsWith(ss)););}}return t},Ol=Fo("parentNode");let jl=null;const Ll=t=>{if(jl||(jl=Lo(t,"firstChild")),(t=t&&jl.call(t))&&8===xl(t)&&(Nl||(Nl=Lo(t,"nextSibling")),t.nodeValue?.startsWith(ts)))return mn(t,Ke,Nl,jl);for(;t&&!Il(t);)t=Cl(t);return t},Fl=Fo("namespaceURI"),Xl=Fo("nodeName"),Dl=Fo("ownerDocument"),Wl=(t,n,e)=>{let s=null,r=0;const i=()=>{for(;Kl(o)&&vn(o);)o=Cl(o)};let o=n;i();let l=null;for(;o;){const n=xl(o);let e=null;3===n?e=Wo(o,o.textContent??void 0):1===n&&(e=Do(o),tl(e)),e&&(e.flags=4095&e.flags|r<<12,r++,e.parent=t,l&&(l.nextSibling=e),e.previousSibling=l,l=e),s||(t.firstChild=s=l),o=Cl(o),i()}if(t.lastChild=l||null,t.firstChild=s,e){let n=null;Vl(e,(e,s)=>{if(61===e()){n||(n=se(t.node));const e=s();n.xn(parseInt(e,10),t)}else 96===e()?(n||(n=se(t.node)),wn(t,s(),n)):s()})}return s},Vl=(t,n)=>{let e=0,s=0,r=0;const i=n=>n<t.length?t.charCodeAt(n):0,o=()=>0!==r?r:r=i(e),l=()=>(s=o(),r=0,e++,s),u=()=>{l();const n=e;for(;o()<=58&&0!==r||92===r||95===r||r>=65&&r<=90||r>=97&&r<=122;)l();return t.substring(n,e)};for(;0!==o();)n(o,u,l,i,e)},Ul=(t,n)=>{if(3&n.flags){nl(t,n);const e=[],s=n.props;if(s)for(const t in s)t.startsWith(Es)||e.push(t);return e}return[]},zl=(t,n)=>{let e=Bl(t);for(;e;){if(e===n)return!0;e=Bl(e)}return!1},Bl=t=>t.parent||t.slotParent,Hl=t=>null===t||Qo(t)?null:t.node,Jl=t=>48<=t&&t<=57,Ql=t=>97<=t&&t<=122,Yl=[],Gl=t=>{const n=t.flags;if(1&n)return 1;if(2&n)return 11;if(4&n)return 3;throw qe(26,[n])},Kl=t=>t&&"object"==typeof t&&1===xl(t),Zl=t=>{let n=1;for(;n--;){for(;t&&(!Qo(t)||null===Go(t,Le,null));){const e=t.slotParent,s=Qo(t)&&e;s&&n++,t=s||t.parent}n>0&&(t=t.parent)}return t},tu=(t,n)=>{const{val:e,set:s,iCtx:r,i}=wo();if(e)return;s(1);const o=new eu(6|(!1===n?.deferUpdates?0:8),i,r.m,t,void 0,null);s(o);const l=r.$,{Xt:u}=r,c=qs(u,()=>nu(o,l,r.m));Ps(c)&&(r.Xt=c)},nu=(t,n,e)=>{const s=t.In;if(s)return s;t.h&=-5;const r=t=>n.handleError(t,e);let i=null;const o=qs(((t,n)=>{const e=t.Nn;if(e)return e;const s=t.Tn;if(s){t.Tn=null;try{const e=s();if(Ps(e)){const s=Promise.resolve(e).then(()=>{},t=>{n(t)}).finally(()=>{t.Nn===s&&(t.Nn=void 0)});return t.Nn=s,s}}catch(t){n(t)}}})(t,r),()=>{const s=he(n.jt,e,"qTask");s.$=n;const o=t.bt.getFn(s,()=>_n(n,t)),l=Vr(t,n),[u]=((t,n)=>{let e=null;return[s=>{"function"==typeof s&&(e||(e=[],t.Tn=()=>{t.Tn=null;let s=null;for(let t=0;t<e.length;t++){const r=e[t];try{const t=r();Ps(t)&&(s||=[]).push(t.catch(n))}catch(t){n(t)}}if(e=null,s?.length)return Promise.all(s).then(()=>{})}),e.push(s))},e??[]]})(t,r),c={track:l,cleanup:u};return Ts(()=>o(c),u,s=>{if(Ps(s))return s.then(()=>(t.In===i&&(t.In=null),nu(t,n,e)));r(s)})});return Ps(o)?(i=o.finally(()=>{t.In===i&&(t.In=null)}),t.In=i,i):o};class eu extends _r{h;Qt;ft;bt;Ot;Tn;Nn;In=null;constructor(t,n,e,s,r,i){super(),this.h=t,this.Qt=n,this.ft=e,this.bt=s,this.Ot=r,this.Tn=i}}const su=t=>t instanceof eu,ru=t=>{if(!t.resolved)throw t.resolve()},iu=t=>t instanceof Ur,ou=(t,n)=>{t.add(n)},lu=(t,n)=>{(t.backRef||=new Set).add(n)},uu=(t,n)=>{if(n?.serializationCtx){const e=t.consumer,s=t.property;let r=null;su(e)?r=e.bt:e instanceof zr?r=e.en:":"===s&&(r=n.getHostProp(e,Le)),r&&n.serializationCtx.xt.add(r)}},cu=(t,n)=>!t||n&&t!==n&&!t.Cn?n:t,fu=(t,n,e)=>{if(e){const s=e=>{const s=e.consumer,r=e.property;if(su(s))s.h|=4,hn(t,s.ft,1);else if(s instanceof Ur)s.invalidate();else if(":"===r)hn(t,s,4);else if("."===r)Xt(s,n),hn(t,s,2);else{const i=e.data;if(i instanceof Ri){const e=i.data;((t,n,e)=>{const s=t.props||={};let r=s[Ir];r||(r=new Map,s[Ir]=r),r.set(n,e)})(s,r,{isConst:e.et,scopedStyleIdPrefix:e.O,value:n}),hn(t,s,16)}}},r=Array.from(e);for(let t=0;t<r.length;t++)s(r[t])}},au=t=>ke(t)&&"function"==typeof t[jc],hu=t=>{let n=1;switch(t){case"never":n|=8;break;case"always":n|=16}return n},du=[],pu=t=>{if(qi(t)){if("function"==typeof t.type){const n=t.type[Vf];if(n){const[t]=n;return"Component("+t.vt+")"}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[s,r]=e[t];n+=" "+s+"="+Pn(r)}const s=t.children;if(null!=s){if(n+=">",Array.isArray(s))for(let t=0;t<s.length;t++){const e=s[t];n+=pu(e)}else n+=pu(s);n+="</"+t.type+">"}else n+="/>"}return n}return t+""},$u=t=>t[Dr],yu=t=>t?.[Xr]||null,mu=(t,n)=>{const e=$u(t);e&&e.force(n)},wu=(t,n)=>{const e=$u(t);return!!e&&(e.ct?.get(n)?.size??0)>0},bu=t=>yu(t)||t,vu=t=>Xr in t,_u=(t,n,e)=>{if(Se(t)&&e){let s=e.dt.get(t);return s||(s=Tn(e,t,n),e.dt.set(t,s)),s}return t};class gu{h;$;ct=void 0;constructor(t,n){this.h=t,this.$=n}toString(){return"[Store]"}force(t){const n=yu(this);fu(this.$,this,An(n,t,this.ct))}get(t,n){if("symbol"==typeof n)return n===Xr?t:n===Dr?this:t[n];const e=ef(),s=t[n];if(e){if(null===this.$){if(!e.$)return s;this.$=e.$}const r=e.Ft;r&&qn(t,Array.isArray(t)?Wr:n,this,r,e.$)}return"toString"===n&&s===Object.prototype.toString?this.toString:1&this.h&&ke(s)&&!Object.isFrozen(s)&&!vu(s)&&!Object.isFrozen(t)?_u(s,this.h,this.$):s}set(t,n,e){if("symbol"==typeof n)return t[n]=e,!0;const s=1&this.h?bu(e):e;return n in t?s!==t[n]&&Mn(n,s,t,this):Mn(n,s,t,this),!0}deleteProperty(t,n){return"string"==typeof n&&delete t[n]&&(Array.isArray(t)||fu(this.$,this,An(t,n,this.ct)),!0)}has(t,n){if(n===Xr)return!0;if("string"==typeof n){const e=ef();if(e){const s=e.Ft;s&&qn(t,Array.isArray(t)?Wr:n,this,s,e.$)}}return Object.prototype.hasOwnProperty.call(t,n)}ownKeys(t){const n=ef(),e=n?.Ft;return e&&qn(t,Wr,this,e,n.$),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(),Su=[void 0,null,!0,!1,"",ti,ni,Lr,Wr,Zr,Yi,Ji,NaN,1/0,-1/0,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER-1,Number.MIN_SAFE_INTEGER],ku=["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"],Ru=["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","SubscriptionPatch"];class Pu{rootId;subscriptions;constructor(t=0,n=new Set){this.rootId=t,this.subscriptions=n}}class Tu{On;jn=0;Rt=[];Ln=0;Fn=new Set;Xn=new Map;Dn;Wn=new Map;Vn=0;Nt;Un="undefined"!=typeof Temporal;constructor(t){this.On=t,this.Nt=t.Nt}async serialize(){const t=this.Vn;this.Vn=0;try{await this.outputRoots()}finally{this.Vn=t}}async serializePatch(t,n,e,s=t){const r=this.Vn;this.Vn=s,this.Nt.write($r),this.On.zn=0;try{this.Nt.write(t+""),this.Nt.write(mr),this.Nt.write($r),await this.outputSelectedRoots(n),this.Nt.write(yr);const s=this.getForwardRefsPayload();this.On.zn=s?.length??0,(s||void 0!==e)&&(this.Nt.write(mr),s?this.outputForwardRefsArray(s):this.Nt.write("0")),void 0!==e&&(this.Nt.write(mr),"number"==typeof e?this.writeRootRef(e):"string"==typeof e?this.outputString(e):(this.Nt.write(pr),this.writeRootRefPath(e),this.Nt.write(pr)))}finally{this.Vn=r}this.Nt.write(yr)}Bn(t){this.Nt=t}outputArray(t,n,e){this.Nt.write($r);let s,r=!1;if(n)s=t.length;else{for(s=t.length-1;s>=0&&void 0===t[s];)s--;s++}for(let n=0;n<s;n++)r?this.Nt.write(mr):r=!0,e(t[n],n);this.Nt.write(yr)}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}outputString(t){const n=this.stringNeedsJsonEscape$(t)?JSON.stringify(t):pr+t+pr;let e=-1,s=0;for(;-1!==(e=n.indexOf("</",s));)this.Nt.write(n.slice(s,e)),this.Nt.write("<\\/"),s=e+2;this.Nt.write(0===s?n:n.slice(s))}writeRootRef(t){this.Nt.writeRootRef(t)}writeRootRefPath(t){this.Nt.writeRootRefPath(t)}outputStringChunks(t){this.Nt.write(pr);for(let n=0;n<t.length;n++){const e=t[n];"string"==typeof e?this.Nt.write(e):"number"==typeof e?this.writeRootRef(e):this.writeRootRefPath(e.path)}this.Nt.write(pr)}output(t,n,e){1===t?(this.Nt.write(t+mr),"number"==typeof n?this.writeRootRef(n):"string"==typeof n?this.outputString(n):(this.Nt.write(pr),this.writeRootRefPath(n),this.Nt.write(pr))):9===t&&Array.isArray(n)?(this.Nt.write(t+mr),this.outputStringChunks(n)):"number"==typeof n?this.Nt.write(t+mr+n):"string"==typeof n?(this.Nt.write(t+mr),this.outputString(n)):(this.Nt.write(t+mr),this.outputArray(n,!!e,(t,n)=>{this.writeValue(t,n)}))}getSeenRefOrOutput(t,n,e){let s=this.On.getSeenRef(t);const r=!e&&this.Xn.get(t);if(s)s.Dn&&this.isSeenInStreamedRoot(s)&&(s=this.On.Hn(t));else{if(e)return!0;if("number"!=typeof r)return this.On.Jn(t,this.Dn,n);s=this.On.St(t,!0)}s.Dn&&(this.Dn?this.On.Qn(s,t):(this.On.Qn(s,t,n),t=this.On.Yn[n])),"number"==typeof r&&(this.Rt[r]=s.Qt,this.Xn.delete(t));const i=t instanceof Cu?t.Gn:s.Qt;if(!this.Dn&&i===n)return s;this.output(1,i)}isSeenInStreamedRoot(t){for(;t.Dn;)t=t.Dn;return t.Qt<this.Vn}writeValue(t,n){if(Nc(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.toString());break;case"symbol":t===Lr?this.output(3,7):t===Wr?this.output(3,8):t===Zr?this.output(3,9):t===Eu&&this.output(3,0);break;case"function":if(t===Yi)this.output(3,10);else if(t===Ji)this.output(3,11);else if(Ae(t)){if(this.getSeenRefOrOutput(t,n)){const[n,e,s]=xn(this.On,t,!0);let r;if(""!==n){if(r=[this.On.St(n),"#",this.On.St(e)],s){const t=s.split(" ");r.push("#");for(let n=0;n<t.length;n++)n>0&&r.push(" "),r.push(+t[n])}const i=r.join(""),o=this.Wn.get(i);if(o){const t=this.On.St(o);return void this.output(1,t)}this.Wn.set(i,t)}else r=+e;this.output(9,r)}}else{if(!Uf(t))throw qe(34,[t.toString()]);{const[n]=t[Vf];this.On.Kn.add(n.vt),this.output(29,[n])}}break;case"object":if(t===ti)this.output(3,5);else if(t===ni)this.output(3,6);else if(null===t)this.output(3,1);else if(t instanceof Cu)this.output(1,t.Gn);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 qe(20,[typeof t])}}writeObjectValue(t){if(ci(t)){const n=t[Yr];this.output(38,[Iu(n),n.varProps,n.constProps,t[Gr].ct])}else if(t instanceof Ri)this.output(39,[t.data.O,t.data.et]);else if(t instanceof Fr)this.output(40,[t.consumer,t.property,t.data]);else if(t instanceof Pu)this.output(41,[t.rootId,t.subscriptions]);else if(vu(t)){const n=$u(t),e=yu(t),s=n.h,r=n.ct,i=[];for(const t in e){const n=e[t],s=this.On.dt.get(n);s&&i.push(s)}const o=[e,s,r,...i];for(;void 0===o[o.length-1];)o.pop();this.output(35,o)}else if(au(t)){const n=t[jc](t);if(Ps(n)){const t=this.resolvePromise(n,(t,n)=>new qu(34,t,n,void 0,void 0));this.output(2,t)}else{const t=this.Dn.Qt;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 s=t[e];Nc(s)||n.push(this.maybeNumericObjectKey$(e),s)}this.output(5,n.length?n:0)}else if(this.On.Zn(t))this.On.te(t.ne,16),this.output(11,t.ne.id);else if(t instanceof Ur){if(t instanceof ai){const n=((t,n)=>n===Lr?n:qs(t.en.resolved||t.en.resolve(),t=>{let e;return"function"==typeof t&&(t=t()),t.serialize?e=t.serialize(n):"object"==typeof n&&jc in n&&(e=n[jc](n)),void 0===e&&(e=Lr),e}))(t,t.Zt);if(Ps(n)){const e=this.resolvePromise(n,(n,e)=>new qu(34,n,e,t.ct,t.en));this.output(2,e)}else this.output(34,[t.en,t.ct,n]);return}if(t instanceof ki)this.output(31,[...Cn(this.On,t),t.h,t.m,...t.ct||[]]);else if(t instanceof zr){let n=t.Zt;const e=16&t.h,s=8&t.h,r=1&t.h,i=Nc(t.Zt),o=t instanceof Hr,l=o&&0!==t.Pt?t.Pt:void 0,u=o&&1!==t.yn?t.yn:void 0,c=o&&0!==t.wn?t.wn:void 0,f=o&&-25&t.h||void 0;r||i?n=Lr:e?n=t.Zt:s&&(n=Lr);const a=[t.en,t.ct];o&&(a.push(t.$t,t.yt,t.pn),a.push(f||void 0)),n===Lr&&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.ct&&e.push(...t.ct),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.Un&&t instanceof Temporal.Duration)this.output(15,t.toJSON());else if(this.Un&&t instanceof Temporal.Instant)this.output(16,t.toJSON());else if(this.Un&&t instanceof Temporal.PlainDate)this.output(17,t.toJSON());else if(this.Un&&t instanceof Temporal.PlainDateTime)this.output(18,t.toJSON());else if(this.Un&&t instanceof Temporal.PlainMonthDay)this.output(19,t.toJSON());else if(this.Un&&t instanceof Temporal.PlainTime)this.output(20,t.toJSON());else if(this.Un&&t instanceof Temporal.PlainYearMonth)this.output(21,t.toJSON());else if(this.Un&&t instanceof Temporal.ZonedDateTime)this.output(22,t.toJSON());else if(t instanceof RegExp)this.output(8,t.toString());else if(t instanceof Error){const n=[t.message];n.push(...Object.entries(t).flat()),this.output(23,n)}else if(this.On.ee(t)){const n=this.On.St(t);this.On.se(t,as,n),this.output(10,t.id);const e=t.vnodeData;if(e&&(Mu(e,t=>{this.On.St(t)}),this.On.te(t,16)),t.children){const n=t.children.length;for(let e=0;e<n;e++){const n=t.children[e];this.On.te(n,16)}}}else if("undefined"!=typeof FormData&&t instanceof FormData){const n=[];for(const[e,s]of t.entries())"string"==typeof s&&n.push(e,s);this.output(36,n)}else if(t instanceof URLSearchParams)this.output(13,t.toString());else if(t instanceof Set)this.output(25,[...t.values()]);else if(t instanceof Map){const n=[];for(const[e,s]of t.entries())n.push(e,s);this.output(26,n)}else if(qi(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 eu){const n=[t.bt,t.h,t.Qt,t.ft,t.Ot];for(;void 0===n[n.length-1];)n.pop();this.output(28,n)}else if(Ps(t)){const n=this.resolvePromise(t,(t,n)=>new qu(24,t,n));this.output(2,n)}else if(t instanceof qu)if(34===t.re)if(t.bt)this.output(34,[t.bt,t.ct,t.ie]);else{if(!t.oe)throw console.error(t.ie),qe(33);{const n=this.Dn.Qt;this.Dn=this.Dn.Dn,this.writeValue(t.ie,n)}}else this.output(24,[t.oe,t.ie]);else if(t instanceof Uint8Array){let n="";const e=t.length;for(let s=0;s<e;s++)n+=String.fromCharCode(t[s]);const s=btoa(n).replace(/=+$/,"");this.output(27,s)}else if(t instanceof xu){const n=t.le;if(this.getSeenRefOrOutput(n,this.Dn.Qt,!0)){let t=this.Xn.get(n);void 0===t&&(t=this.Ln++,this.Xn.set(n,t),this.Rt[t]=-1),this.output(2,this.getForwardRefId(t))}}else{if(!Uo(t))throw qe(20,[typeof t]);this.output(3,0)}}resolvePromise(t,n){const e=this.Ln++;return t.then(s=>{this.Fn.delete(t),this.Rt[e]=this.On.St(n(!0,s))}).catch(s=>{this.Fn.delete(t),this.Rt[e]=this.On.St(n(!1,s))}),this.Fn.add(t),this.getForwardRefId(e)}getForwardRefId(t){return this.On.ue+t}async outputPendingRoots(){let t=0;const{Yn:n}=this.On;for(;this.jn<n.length||this.Fn.size;){let e=t>0;for(;this.jn<n.length;this.jn++)e?this.Nt.write(mr):e=!0,this.writeValue(n[this.jn],this.jn),t++;if(this.Fn.size)try{await Promise.race(this.Fn)}catch{}}return t}async outputSelectedRoots(t){let n=!1,e=0;for(;e<t.length||this.Fn.size;){if(e<t.length){n?this.Nt.write(mr):n=!0;const s=t[e++];this.writeValue(this.On.Yn[s],s);continue}try{await Promise.race(this.Fn)}catch{}}}getForwardRefsPayload(){let t=this.Rt.length-1;for(;t>=0&&-1===this.Rt[t];)t--;return t<0?null:t===this.Rt.length-1?this.Rt:this.Rt.slice(0,t+1)}outputForwardRefsArray(t){this.outputArray(t,!0,t=>{"string"==typeof t?this.outputString(t):Array.isArray(t)?(this.Nt.write(pr),this.writeRootRefPath(t),this.Nt.write(pr)):this.writeRootRef(t)})}async outputRoots(){this.Nt.write($r);const t=await this.outputPendingRoots(),n=this.getForwardRefsPayload();this.On.ce=this.On.Yn.length,this.On.fe=!!n;const e=n?.length??0;n&&(t>0&&this.Nt.write(mr),this.Nt.write(14+mr),this.outputForwardRefsArray(n)),this.Nt.write(yr),this.On.ae=this.On.Yn.length+(this.On.fe?1:0),this.On.zn=e}}class qu{re;oe;ie;ct;bt;constructor(t,n,e,s,r){this.re=t,this.oe=n,this.ie=e,this.ct=s,this.bt=r}}const Mu=(t,n)=>{const e=t.length;for(let s=0;s<e;s++){const e=t[s];if(Au(e))for(const t in e){const s=e[t];null==s||"string"==typeof s||"number"==typeof s&&t===as||t===ds&&hr(s)||n(s)}}},Au=t=>"object"==typeof t&&null!==t&&!hr(t);class xu{le;constructor(t){this.le=t}}const Iu=t=>new xu(t);let Nu=()=>!1;class Cu{Gn;constructor(t){this.Gn=t}}class Ou{NodeConstructor;DomRefConstructor;Et;se;dt;Nt;he=new Map;de=new Map;pe=0;$e=[];Yn=[];ye=[];me;ue=0;ae=0;zn=0;ce=0;fe=!1;Tt=new Set;xt=new Set;At=new Set;Kn=new Set;we;te=(t,n)=>{t.vnodeData[0]|=n};constructor(t,n,e,s,r,i){this.NodeConstructor=t,this.DomRefConstructor=n,this.Et=e,this.se=s,this.dt=r,this.Nt=i,this.we=new Tu(this)}async It(){await this.we.serialize()}async be(t,n,e,s){await this.we.serializePatch(t,n,e,s)}Bn(t){this.Nt=t,this.we.Bn(t)}getSeenRef(t){return this.he.get(t)}Jn(t,n,e){const s={Qt:e,Dn:n};return this.he.set(t,s),s}ve(t){const n=[];for(;t.Dn;)n.unshift(t.Qt),t=t.Dn;return n.unshift(t.Qt),n}Qn(t,n,e){const s=this.ve(t),r=void 0===e;void 0===e&&(e=this.Yn.length),this.Yn[e]=new Cu(s),r&&(this.ye[e]=n),t.Dn=null,t.Qt=e,r&&this.me?.(e,this.Yn[e],n)}St(t,n=!1){let e,s=this.he.get(t);return s?(s.Dn&&this.Qn(s,t),e=s.Qt):(e=this.Yn.length,s={Qt:e},this.he.set(t,s),this.Yn.push(t),this.ye.push(t),this.me?.(e,t,t)),n?s:e}Hn(t){const n=this.Yn.length,e={Qt:n};return this.he.set(t,e),this.Yn.push(t),this.ye.push(t),this.me?.(n,t,t),e}_e(t,n){const e=this.Yn.length,s={Qt:e};return this.he.set(n,s),this.Yn.push(t),this.ye.push(n),e}ee(t){return!!this.NodeConstructor&&t instanceof this.NodeConstructor}Zn(t){return!!this.DomRefConstructor&&t instanceof this.DomRefConstructor}ge(t){const n=this.he.get(t);return n&&(n.Dn?void 0:n.Qt)}gt(t,n,e){const s=null==t;s&&(t=e.serialized||e.toString());let r=this.de.get(t);if(void 0===r)if(r=this.pe+this.$e.length,this.de.set(t,r),s)this.$e.push(t);else{let e="(";for(let t=0;t<n;t++)e+=(0==t?"p":",p")+t;this.$e.push(e+=")=>"+t)}return r}Ee(t,n){if(this.pe=t,n){this.de.clear();for(let t=0;t<n.length;t++)this.de.set(n[t],t)}}}const ju=(t,n,e,s,r,i)=>{if(!i){const t=[];i=Object.assign(dr(n=>{t.push(n)}),{toString:()=>t.join("")})}return Nu=n?t=>t instanceof n:()=>!1,new Ou(t,n,e,s,r,i)},Lu=(t,n)=>t[n],Fu=(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 s=Object.getPrototypeOf(t);if(vu(t)&&(t=yu(t)),s==Object.prototype){for(const e in t)if(!Fu(lf(Lu,t,e),n))return!1;return!0}if(s==Array.prototype){for(let e=0;e<t.length;e++){if(!(e in t))return!1;if(!Fu(t[e],n))return!1}return!0}if(su(t))return!0;if(ci(t))return!0;if(Ps(t))return!0;if(qi(t))return!0;if(au(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 Ri)return!0;if(Nu?.(t))return!0}else if("function"==typeof t){if(Ae(t)||Uf(t)||t===Yi||t===Ji)return!0}else if(t===Zr||t===Lr||t===Wr)return!0;return!1},Xu=(t,n)=>{let e=Uo(t)?bn.call(t,1,"",!0).replaceAll(/\n.*/gm,""):"function"==typeof t?t+"":(t=>{const n=new WeakSet;return JSON.stringify(t,(t,e)=>{if(ke(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 Du=!1;const Wu=(t,n=!1,e="",s=20)=>{const r=n?"[31m":"",i=n?"[0m":"",o=""===e,l=[];for(let o=0;o<t.length;o++){if(s&&o>2*s){l.push("...");break}const u=t[o];let c=t[++o];if(0===u){"number"!=typeof c&&"string"!=typeof c&&(Du=!0);const t=`{${ke(c)?c.constructor.name:typeof c}}`;l.push(`${r}${t}${i} ${Xu(c,e+" ")}`)}else 3===u?c=Uu(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${Wu(c,n,e+" ")}\n${e}]`:"[]"),l.push(`${r}${Vu(u)}${i} ${c}`)}const u=l.map((t,n)=>`${e}${o?n+" ":""}${t}`).join("\n");if(o){const n=Du?"":`(${JSON.stringify(t).length} chars)`;return Du=!1,`\n${u}\n${n}`}return u},Vu=t=>Ru[t]||`Unknown(${t})`,Uu=t=>ku[t]||`Unknown(${t})`,zu=new WeakMap,Bu=new Map,Hu=(t,n,e)=>{switch(n){case 0:case 14:return e;case 1:return t._(e);case 2:const s=t.Ct(e);return-1===s||void 0===s?Zr:t._(s);case 3:return Su[e];case 4:return Array(e.length/2);case 5:return{};case 9:{let n;if("string"==typeof e){const[s,r,i]=e.split("#");n=In(t._(s),t._(r),i||null,t)}else n=In("",e+"",null,t);return n}case 28:return new eu(-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 r=e.lastIndexOf("/");return RegExp(e.slice(1,r),e.slice(r+1));case 23:return Error();case 29:return Wf(null);case 30:return new Ur(t,0);case 31:return new ki(t,null,null,null);case 32:return new zr(t,null);case 33:return new Hr(t,null,void 0,{});case 34:return new ai(t,null);case 35:{const n=e,s=n[0],r=n[1],i=Hu(t,s,r),o=_u(i,0,t);return kc(s)&&Bu.set(i,{t:s,v:r}),n[0]=0,n[1]=i,o}case 13:return new URLSearchParams(e);case 36:return new FormData;case 37:return new Pi(null,null,null,null,0,null);case 12:return BigInt(e);case 25:return new Set;case 26:return new Map;case 24:let i,o;const l=new Promise((t,n)=>{i=t,o=n});return zu.set(l,[i,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 w(null);case 10:return jn(t,e);case 11:const f=jn(t,e);if(Uo(f))return Pl(f),Hl(f);throw qe(17,[typeof f]);case 39:return new Ri({});case 40:return new Fr(null,null,null,null);case 41:return new Pu;default:throw qe(18,[n])}},Ju=(t,n,e)=>{let s=null,r=null;if(Te(t))r=t;else{if(!Pe(t))throw qe(7,[t]);s=t}return Mf(s,n,null,r,e)},Qu=(t,n,e)=>Mf(null,n,t,null,e),Yu=(t,n)=>Mf(null,t,null,null,n),Gu=(t,n,e)=>Yu(t,e),Ku=(t,n,e,s)=>Mf(t,e,null,n,s),Zu=(t,n,e,s,r)=>{const i=Ku(t,n,e,r);return i.Se(s),i},tc=(t,n,e,s)=>Ju(t,n,s),nc=(t,n,e,s)=>Qu(t,n,s),ec=(t,n)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(n,t),t),sc=()=>{const t=globalThis.process;return t?.getBuiltinModule?.("node:async_hooks")?.AsyncLocalStorage},rc=(t,n,e)=>new ki(null,t,n,e||null);class ic{ke;dt;Re=null;Cn=!1;jt;_;Dt;Pe=0;Te=null;qe=null;l=null;u=null;o=0;constructor(t,n){this.Dt=t,this.jt=n,this.ke=wr,this.dt=new WeakMap,this._=()=>{throw Error("Not implemented")}}trackSignalValue(t,n,e,s){return ff(t,n,e,this,s)}serializationCtxFactory(t,n,e,s){return ju(t,n,e,this.setHostProp.bind(this),this.dt,s)}ht(){0===this.o&&(this.u?.(),this.l=null)}}const oc=Symbol();class lc{}const uc=()=>Sf,cc=async t=>{const[n,e]=Sf,s=await n(t);return s&&"object"==typeof s?e.r?Object.assign(e.r,s):e.r=Tn(n.$,s,1):e.r=s,{r:e.r}},fc=(t,n)=>{const{val:e,set:s,iCtx:r}=wo();if(e)return e;const i=Mf(null,"_rsc",cc,null,[t,{}],r.$),o=di(i,{timeout:n?.timeout,container:r.$,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 s(l),l},ac=({value:t,onResolved:n,onPending:e,onRejected:s})=>{if(Ps(t))return t.then(n,s);const r=hc(t),i=r?t.signal:t;if(e&&i.loading)return e();if(s&&i.error)return s(i.error);const o=r?i.value?.r:i.value;return Ps(o)?o.then(n,s):n(o)},hc=t=>t&&"resource"===t.__brand,dc=(t,n,e)=>{yc(e?.passive?"q-ep:":"q-e:",t,n,e)},pc=(t,n,e)=>{yc(e?.passive?"q-dp:":"q-d:",t,n,e)},$c=(t,n,e)=>{yc(e?.passive?"q-wp:":"q-w:",t,n,e)},yc=(t,n,e,s)=>{const{isAdded:r,addEvent:i}=mc();if(!r&&e)if(Array.isArray(n))for(let r=0;r<n.length;r++){const o=n[r];i(t+Cs(o),e,s)}else i(t+Cs(n),e,s)},mc=()=>{const t=rf(),n=t.m;let e=t.$.getHostProp(n,bs);null===e&&(e={},t.$.setHostProp(n,bs,e));let s=t.$.getHostProp(n,vs);null===s&&(s=0),t.$.setHostProp(n,vs,s+1);let r=t.$.getHostProp(n,_s);for(null===r&&(r=[],t.$.setHostProp(n,_s,r));r.length<=s;)r.push(!1);return{isAdded:r[s],addEvent:(t,n,i)=>{r[s]=!0;let o=e[t];o||(e[t]=o={qrls:[],capture:!1,preventdefault:!1,stoppropagation:!1}),o.qrls.push(n),i?.capture&&(o.capture=!0),i?.preventdefault&&(o.preventdefault=!0),i?.stoppropagation&&(o.stoppropagation=!0)}}},wc=function(t,n){if(!t.detail.files.some(t=>n.getAttribute("data-qwik-inspector")?.startsWith(t)))return;if("string"==typeof this){const t=se(n);kf(Rf(t,this))}const e=Sf[0];hn(se(n),e,4);const s=n.ownerDocument;s.__hmrDone=s.__hmrT};let bc,vc=Promise.resolve();const _c=new Set(["constructor","prototype","toString","valueOf","toJSON","then"]),gc=(t,n)=>"number"==typeof t||"string"==typeof t&&"__proto__"!==t&&("function"!=typeof n||!_c.has(t)),Ec=(t,n,e,s)=>{if(0!==e)switch(4!==e&&Array.isArray(s)&&(s=Sc(t,s)),e){case 4:Sc(t,s,n);break;case 5:if(0===s)break;for(let t=0;t<s.length;t+=2){const e=s[t],r=s[t+1];gc(e,r)&&(n[e]=r)}break;case 28:const r=n,i=s;r.bt=i[0],r.h=i[1],r.Qt=i[2],r.ft=i[3],r.Ot=i[4];break;case 29:n[Vf][0]=s[0];break;case 35:{const e=bu(n),r=Bu.get(e);r&&(Bu.delete(e),Ec(t,e,r.t,r.v));const[,i,o]=s,l=$u(n);l.h=i,l.ct=o,Gn(l.ct,e);break}case 30:{const t=n,e=s;t.Zt=e[0],t.ct=new Set(e.slice(1)),Yn(t.ct,t);break}case 31:{const e=n,r=s;e.ot=t.getSyncFn(r[0]),e.lt=r[1],e.Zt=Lr,e.h=r[2],e.h|=1,e.m=r[3],e.ct=new Set(r.slice(4)),(t=>{if(null!==t.m&&Uo(t.m)){const n=t.m,e=t.ct;let s=!1;if(e)for(const r of e){const e=r.property;if(Pe(e)){const r=Go(n,e,null);if(null!==r){t.Zt=r,s=!0;break}}}if(!s){const e=Rl(n);e&&n.firstChild===n.lastChild&&Jo(e)&&(t.Zt=Sl(e))}}})(e),Yn(e.ct,e);break}case 33:{const t=n,e=s;t.en=e[0],e[1]&&(t.ct=new Set(e[1])),e[2]&&(t.$t=new Set(e[2])),e[3]&&(t.yt=new Set(e[3])),e[4]&&(t.pn=e[4]),t.h=e[5]??0,64&t.h&&(t.dn=!0),e.length>6&&(t.Zt=e[6]),t.Zt===Lr&&(t.h|=1);const r=e[7]??0;t.expires=Math.abs(r),r<0&&(t.h|=256),void 0!==e[8]&&1!==e[8]&&(t.yn=e[8]??1,t.mn=[]),t.wn=e[9]??0,Yn(t.ct,t),Yn(t.$t,t),Yn(t.yt,t);break}case 34:case 32:{const r=n,i=s;r.en=i[0];const o=r.en.resolve(t).catch(()=>{});vc=vc.finally(()=>o),i[1]&&(r.ct=new Set(i[1])),i.length>2&&(r.Zt=i[2]),34!==e&&r.Zt!==Lr&&(r.h&=-2),Yn(r.ct,r);break}case 23:{const t=s;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=s;for(let n=0;n<e.length;n++)t.append(e[n++],e[n]);break}case 37:{const t=n,[e,r,i,o,l,u]=s;t.type=e,t.key=r,t.varProps=i,t.constProps=o||null,t.children=l,t.toSort=!!u;break}case 25:{const t=n,e=s;for(let n=0;n<e.length;n++)t.add(e[n]);break}case 26:{const t=n,e=s;for(let n=0;n<e.length;n++)t.set(e[n++],e[n]);break}case 24:{const t=n,[e,r]=s,[i,o]=zu.get(t);e?i(r):o(r);break}case 27:const o=n,l=atob(s);let u=0;for(let t=0;t<l.length;t++){const n=l[t];o[u++]=n.charCodeAt(0)}break;case 38:const c=n,f=s;let a=f[0];a===Zr&&(a=new Pi(Ji,f[1],f[2],null,0,null),a._proxy=c),c[Yr]=a;const h=c[Gr];h.ct=f[3],Gn(h.ct,c);break;case 39:{const t=n;t.data.O=s[0],t.data.et=s[1];break}case 40:{const t=n,e=s;t.consumer=e[0],t.property=e[1],t.data=e[2],(t=>{const n=t.consumer;n[vr]||=new Map,n[vr].set(t.property,t)})(t);break}case 41:{const t=n,e=s;t.rootId=e[0],t.subscriptions=e[1];break}default:throw qe(16,[e])}},Sc=(t,n,e=Array(n.length/2))=>{for(let s=0;s<n.length;s+=2)e[s/2]=Qn(t,n[s],n[s+1]);return e},kc=t=>t>=23||4===t||5===t,Rc=new WeakMap,Pc=Symbol(),Tc=(t,n)=>{if(!Array.isArray(n)||Uo(n)||ke(e=n)&&Pc in e)return n;var e;let s=Rc.get(n);if(!s){const e=Array(n.length/2).fill(void 0);s=new Proxy(e,new qc(t,n)),Rc.set(n,s)}return s};class qc{$;Me;constructor(t,n){this.$=t,this.Me=n}get(t,n,e){if(n===Pc)return t;const s="number"==typeof n?n:"string"==typeof n?parseInt(n,10):NaN;if(Number.isNaN(s)||s<0||s>=this.Me.length/2)return Reflect.get(t,n,e);const r=2*s,i=this.Me[r],o=this.Me[r+1];if(0===i)return o;const l=this.$,u=Hu(l,i,o);return Reflect.set(t,n,u),this.Me[r]=0,this.Me[r+1]=u,kc(i)&&Ec(l,u,i,o),u}has(t,n){return n===Pc||Object.prototype.hasOwnProperty.call(t,n)}set(t,n,e,s){if(n===Pc)return!1;const r=Reflect.set(t,n,e,s),i="number"==typeof n?n:parseInt(n,10);if(Number.isNaN(i)||i<0||i>=this.Me.length/2)return r;const o=2*i;return this.Me[o]=0,this.Me[o+1]=e,!0}}const Mc=(t,n)=>lf(Ac,t,new WeakSet,"_",n),Ac=(t,n,e,s)=>{const r=bu(t);if(null==r)return t;if(Ic(r)){if("object"==typeof r){if(n.has(r))return t;n.add(r)}if(iu(r))return t;if(Fu(r))return t;if(r.__brand||r.__brand__)return t;const i=typeof r;if("object"===i){if(Ps(r))return t;if((t=>t&&"number"==typeof t.nodeType)(r))return t;if(Re(r)){let s=0;for(let t=0;t<r.length;t++){if(!(t in r))throw qe(3,[r]);const i=r[t];if(t!==s)throw qe(3,[r]);Ac(i,n,e+"["+t+"]"),s=t+1}return t}if(r instanceof Rr)return t;if(Se(r)){for(const[t,s]of Object.entries(r))Ac(s,n,e+"."+t);return t}}let o;if(o=s||"Value cannot be serialized","_"!==e&&(o+=` in ${e},`),"object"===i)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"===i){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 qe(3,[o])}return t},xc=/*#__PURE__*/new WeakSet,Ic=t=>!ke(t)&&!Te(t)||!xc.has(t)&&!(Oc in t),Nc=t=>!!t&&(ke(t)||"function"==typeof t)&&(xc.has(t)||Oc in t),Cc=t=>((ke(t)&&null!==t||"function"==typeof t)&&xc.add(t),t),Oc=Symbol(),jc=Symbol(),Lc=t=>/*#__PURE__*/Object.freeze({id:Cs(t)}),Fc=(t,n)=>{const{val:e,set:s,iCtx:r}=wo();void 0===e&&(r.$.setContext(r.m,t,n),s(1))},Xc=(t,n)=>{const{val:e,set:s,iCtx:r}=wo();if(void 0!==e)return e;const i=r.$.resolveContext(r.m,t);if("function"==typeof n)return s(ce(void 0,n,i));if(void 0!==i)return s(i);if(void 0!==n)return s(n);throw qe(8,[t.id])},Dc=t=>{const n=sf(),e=n.m;if(e)return n.$?.resolveContext(e,t)},Wc=/*#__PURE__*/Lc("qk-error"),Vc=(t,n,e,s,r)=>{let i;for(const t of r)s.has(t)||(s.add(t),(i||=new Set).add(t)),(t.backRef||=new Set).add(e);i&&fu(t,n,i)},Uc=new WeakMap,zc=(t,n)=>{if(!__EXPERIMENTAL__.suspense)return;const e=t,s=e.element.querySelectorAll(`${Hc(e.Te)}${Ve}`),r=Bc(t);for(let i=0;i<s.length;i++){const o=s[i];void 0!==n&&o.getAttribute("q:r")!==n||r.has(o)||(r.add(o),Jc(t,e,o.textContent))}},Bc=t=>{let n=Uc.get(t);return n||(n=new WeakSet,Uc.set(t,n)),n},Hc=t=>`script[type="qwik/state"][q\\:instance="${t}"]`,Jc=(t,n,e)=>{if(e){const[s,r,i,o]=JSON.parse(e);Qc(t,n,s,r),Yc(n,i||void 0),((t,n)=>{if(__EXPERIMENTAL__.suspense&&n)for(let e=0;e<n.length;e++){const s=n[e],r=t._(s.rootId),i=s.subscriptions;if(r instanceof Ur)i instanceof Set&&Vc(t,r,r,r.ct||=new Set,i);else{if(!(i instanceof Map))continue;const n=$u(r),e=yu(r);if(!n||!e)continue;const s=n.ct||=new Map;for(const[r,o]of i){let i=s.get(r);i||(i=new Set,s.set(r,i)),Vc(t,n,e,i,o)}}}})(t,void 0===o?void 0:n._(o))}},Qc=(t,n,e,s)=>{if(e===n.Ae.length/2){for(let t=0;t<s.length;t++)n.Ae[2*e+t]=s[t];On(n.Ae,t,0,2*e),n.xe=Tc(t,n.Ae),n.xe.length=n.Ae.length/2,n.Ie=n.Rt}},Yc=(t,n)=>{if(!n)return;const e=t.Ie||=[];for(let t=0;t<n.length;t++){const s=n[t];void 0!==s&&e.push(s)}t.Rt=e},Gc=t=>Ce<=t&&t<=46,Kc=(t,n,e)=>{let s=0;for(;n<e;){const e=t.charCodeAt(n);if(92===e)n+=2;else{if(0===s&&Gc(e))break;123===e?s++:125===e&&s--,n++}}return n};class Zc extends ic{element;qContainer;qManifestHash;rootVNode;document;dt=new WeakMap;Ne;Te;Rt=null;vNodeLocate=t=>il(this.rootVNode,t);Ae;xe;Ie=null;Ce=null;constructor(t){if(super({},t.getAttribute("q:locale")),this.qContainer=t.getAttribute(es),!this.qContainer)throw qe(25);this.document=t.ownerDocument,this.element=t,this.qe=t.getAttribute(Ge),this.Te=t.getAttribute("q:instance"),this.qManifestHash=t.getAttribute("q:manifest-hash"),this.rootVNode=Do(this.element),this.Ae=[],this.xe=[];const n=this.element.ownerDocument;n.qVNodeDataProcessed||(t=>{ee(t),t.qVNodeDataProcessed=!0})(n),__EXPERIMENTAL__.suspense&&n.querySelector("template[q\\:r]")&&(n.qProcessOOOS||=oe),this.Ne=Ye(n,this.Te)||ti,this.Oe(),t.setAttribute(es,"resumed"),t.qContainer=this,t.qDestroy=()=>this.Tn(),this.je(),__EXPERIMENTAL__.suspense&&zc(this),this.Le(),t.isConnected&&t.dispatchEvent(new CustomEvent("qresume",{bubbles:!0}))}Tn(){this.vNodeLocate=()=>null,this.Ae.length=0,this.xe.length=0,this._=()=>{};const t=this.element;t.qContainer=void 0,t.qVnodeData=void 0,t.qVNodeRefs=void 0,__EXPERIMENTAL__.suspense&&(t.qSegmentVnodeData=void 0),t.removeAttribute(es);const n=t.ownerDocument,e=null!==n.querySelector(os);e||(n.qVNodeData=void 0,n.qVNodeDataProcessed=void 0,n.qProcessVNodeDataPatch=void 0),__EXPERIMENTAL__.suspense&&(e||(n.qProcessOOOS=void 0))}je(){const t=this.element.querySelector(`${this.Fe()}:not(${Ve})`);t&&(this.Ae=JSON.parse(t.textContent),On(this.Ae,this),this.Ie=this.Rt,this.xe=Tc(this,this.Ae))}Fe(){return`script[type="qwik/state"][q\\:instance="${this.Te}"]`}Le(){const t=this.element.ownerDocument,n=t.head,e=t.body.querySelectorAll(Be),s=e.length;if(s){const r=t.createDocumentFragment();for(let t=0;t<s;t++)r.appendChild(e[t]);n.appendChild(r)}}xn(t,n){this.xe[t]=n}parseQRL(t){return Nn(t,this)}handleError(t,n){const e=n&&this.resolveContext(n,Wc);if(!e)throw t;e.error=t}setContext(t,n,e){let s=this.getHostProp(t,Je);null==s&&this.setHostProp(t,Je,s=[]),_e(s,n.id,e,0,!0)}resolveContext(t,n){for(;t;){const e=this.getHostProp(t,Je);if(null!=e&&Ee(e,n.id,0))return ge(e,n.id,0);t=this.getParentHost(t)}}getParentHost(t){let n=t.parent;for(;n;)if(Qo(n)){if(null!==Go(n,Le,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 s=null;switch(n){case ps:case ds:case Le:case Je:case Qe:case rs:s=this._;break;case $s:case vs:s=parseInt}return Go(e,n,s)}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 s=t[e];if(S(s)){const t=n[s];if("string"==typeof t){const e=this.vNodeLocate(t);n[s]=e}}}}}}_=t=>te(t,this.xe);Ct(t){return this.Ie?.[t]}getSyncFn(t){return this.Ne[t]}Xe(t,n,e,s){if(s){const t=this.getHostProp(e,He),s=new Set((t=>t?.split(" ")??null)(t));s.add(n),this.setHostProp(e,He,(t=>Array.from(t).join(" "))(s))}if(null==this.Ce){this.Ce=new Set;const t=this.document.querySelectorAll(ze);for(let n=0;n<t.length;n++){const e=t[n];this.Ce.add(e.getAttribute(Ue))}}if(!this.Ce.has(n)){this.Ce.add(n);const e=this.document.createElement("style");e.setAttribute(Ue,n),e.textContent=t,this.document.head.appendChild(e)}}Oe(){const t={},n=this.element.attributes;if(n)for(let e=0;e<n.length;e++){const s=n[e];s.name!==Es&&(t[s.name]=s.value)}this.Dt={containerAttributes:t}}}let tf,nf;const ef=()=>nf,sf=()=>{const t=ef();if(!t)throw qe(9);return t},rf=()=>{const t=ef();if(!t||t.Lt!==fs)throw qe(10);return t},of=(t,n)=>{const e=se(n),s=il(e.rootVNode,n),r=e.jt;r&&(t=>{tf=t})(r);const i=he(r,s,t);return i.$=e,i},lf=(t,...n)=>{if("function"==typeof t){if(!nf)return t(...n);{const e=nf.Ft;try{return nf.Ft=void 0,t(...n)}finally{nf.Ft=e}}}return iu(t)?t.untrackedValue:bu(t)},uf=/*#__PURE__*/ae(void 0,void 0,void 0),cf=(t,n,e,s,r)=>{const i=uf.Ft,o=uf.$;try{return uf.Ft=m(n,e,r),uf.$=s,fe(uf,t)}finally{uf.Ft=i,uf.$=o}},ff=(t,n,e,s,r)=>(t instanceof ki&&t.m!==n&&n&&(t.m=n),cf(()=>t.value,n,e,s,r)),af=()=>ef()?.m,hf=()=>{const t=ef();if(t)return t.Lt},df=()=>{const t=ef();if(t)return t.$},pf=t=>t,$f=t=>t.l||Promise.resolve();let yf=(t,n,e,s,r)=>new mf(t,n,e,s,r);class mf{_t;vt;De;We;$;constructor(t,n,e,s,r){this._t=t,this.vt=n,this.De=e,this.We=s,s&&this.Ve(s),!r||s||"string"!=typeof t||e||(this.$=r),t&&pe(t,.8)}get it(){return(t=>{const n=t.lastIndexOf("_")+1;return t.slice(n)})(this.vt)}Ve(t){this.We=t,Ps(t)&&t.then(t=>this.We=t,t=>{console.error(`qrl ${this.vt} failed to load`,t),this.We=null})}Ue(){if(null!=this.We)return this.We;if(""===this._t){const t=this.$.Te,n=this.$.element?.ownerDocument||document,e=Ye(n,t);return this.We=e[+this.vt]}this._t&&pe(this._t,1);const t=this.vt,n=this.De?this.De().then(n=>n[t]):Hs().importSymbol(this.$?.element,this._t,t);return this.Ve(n),this.We}}import.meta.hot&&(t=>{if(!import.meta.hot)return;const n=new Map;yf=(e,s,r,i,o)=>{let l=n.get(s);return l||(l=new t(e,s,r,i,o),""!==e&&n.set(s,l)),l};const e=(t,n)=>{const[e,s]=t.split("?",2);if(!s)return`${e}?t=${n}`;const r=s.split("&").filter(t=>!t.startsWith("t="));return r.push("t="+n),`${e}?${r.join("&")}`};document.addEventListener("qHmr",t=>{const s=t.detail.files,r=t.detail.t||document.__hmrT||Date.now();let i=!1;for(const t of n.values()){const n=t.dev?.file||t._t;if(!n||!s.some(t=>n.startsWith(t)))continue;const o=t._t;o&&(t._t=e(o,r),i=!0);const l=t.De?.toString();if(l){const n=l.replace(/import\((['"])(.+?)\1\)/,(t,n,s)=>`import(${n}${e(s,r)}${n})`);if(n!==l)try{t.De=Function(`return (${n})`)(),i=!0}catch(n){console.error("Failed to update symbolFn for "+t.vt,n)}else console.warn(`Couldn't find import() in symbolFn for ${t.vt}, cannot update it for HMR`,l)}if(i&&(t.We=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)}}})})(mf);const wf=Symbol(),bf=t=>t?.[wf]??t;class vf{ze;resolved=void 0;Mt;$;constructor(t,n,e){this.ze=t,n&&(this.Mt=n,"string"==typeof n&&(this.$=e)),null==t.We||"string"==typeof this.Mt||Ps(t.We)||(this.resolved=Tf(this,t.We))}}const _f=function(t,...n){const e=bf(this);if(e.resolved)return e.resolved.apply(t,n);const s=ef();return gf.call(e,s?.$).then(()=>fe.call(t,s,e.resolved,n))},gf=async function(t){const n=bf(this);return qs(qf(n,t),()=>n.resolved)},Ef=Object.create(Function.prototype,{resolved:{get(){return this[wf].resolved},set(t){this[wf].resolved=t}},Mt:{get(){return this[wf].Mt},set(t){this[wf].Mt=t}},$:{get(){return this[wf].$},set(t){this[wf].$=t}},ze:{get(){return this[wf].ze}},_t:{get(){return this[wf].ze._t}},vt:{get(){return this[wf].ze.vt}},it:{get(){return this[wf].ze.it}},dev:{get(){return this[wf].ze.dev}},Be:{value:_f},w:{value:function(t){const n=bf(this),e=new vf(n.ze,t,n.Mt?n.$:void 0);return Af(e)}},s:{value:function(t){const n=bf(this);n.ze.Ve(t),n.resolved=Tf(n,t)}},resolve:{value:gf},getSymbol:{value:function(){return bf(this).ze.vt}},getHash:{value:function(){return bf(this).ze.it}},getCaptured:{value:function(){const t=bf(this);return Pf(t),t.Mt}},getFn:{value:function(t,n){const e=bf(this),s=(...r)=>e.resolved?n&&!1===n()?void 0:fe(t,e.resolved,r):gf.call(e).then(()=>s(...r));return s}}});let Sf=null;const kf=t=>{Sf=t},Rf=(t,n)=>{const e=[],s=n.split(" ");for(let n=0;n<s.length;n++){const r=s[n];e.push(t._(r))}return e},Pf=t=>{Sf=t.Mt;const n=t.$;if("string"==typeof Sf){if(!n)throw qe(13);const e=vc;if(Sf=t.Mt=Rf(n,Sf),vc!==e)return vc}},Tf=(t,n)=>"function"==typeof n&&t.Mt?function(...e){return Pf(t),n.apply(this,e)}:n,qf=(t,n)=>{const e=t.ze,s="string"==typeof t.Mt;if(s&&!t.$&&(t.$=n||ef()?.$),t.resolved)return;const r=Cf(),i=ef(),o=e.Ue(),l=qs(o,n=>{t.resolved=Tf(t,n)});if(l){const t=e.vt;If(t,i?.m instanceof Tr?i?.m.node:void 0,r)}const u=s&&t.$&&Pf(t);return u?u.then(()=>l):l},Mf=(t,n,e,s,r,i)=>{const o=yf(t,n,s,e,i);return Af(new vf(o,r,i))},Af=t=>{const n=async function(...t){return _f.call(n,this,...t)};return n[wf]=t,Object.setPrototypeOf(n,Ef),n},xf=/*#__PURE__*/new Set,If=(t,n,e)=>{xf.has(t)||(xf.add(t),Nf("qsymbol",{symbol:t,element:n,reqTime:e}))},Nf=(t,n)=>{"object"==typeof document&&document.dispatchEvent(new CustomEvent(t,{bubbles:!1,detail:n}))},Cf=()=>"object"==typeof performance?performance.now():0;let Of=0;const jf=t=>Mf(null,"s"+Of++,t,null,null),Lf=jf,Ff=t=>t,Xf=t=>Mf("",Me,t,null,null),Df=(t,n)=>(void 0===n&&(n=t.toString()),t.serialized=n,Mf("",Me,t,null,null)),Wf=t=>{function n(n,e,s=0){const r=t.it.slice(0,4)+":"+(e||""),i=()=>{};return i[Vf]=[t],Xi(i,n,null,n.children,s,r)}return n[Vf]=[t],n},Vf=Symbol(),Uf=t=>"function"==typeof t&&void 0!==t[Vf],zf=t=>Wf(Lf(t)),Bf=fi(Ff),Hf=()=>{const t=globalThis.__QWIK_MANIFEST__;if(!globalThis.__QWIK_MANIFEST__)throw Error("Client manifest is not available. It should have been automatically injected during the build process. Make sure that @qwik.dev/core is internal to the build.");return t},Jf=async(t,n,e={})=>{if(9===t.nodeType){let n=t.firstChild;for(;n&&!br(n);)n=n.nextSibling;t=n}t.setAttribute(es,"resumed");const s=se(t);s.Dt=e.serverData||{};const r=s.rootVNode;return Ko(r,Nr,n),hn(s,r,2),await s.l,{cleanup:()=>{Et(s,[],s.rootVNode)}}},Qf=(t,n)=>{const{val:e,set:s,iCtx:r}=wo();if(null!=e)return e;const i=Te(t)?ce(void 0,t):t;if(!1===n?.reactive)return s(i),i;{const t=r.$,e=_u(i,n?.deep??1?1:0,t);return s(e),e}},Yf=()=>{const{val:t,set:n,iCtx:e}=wo();if(null!=t)return t;const s=e.$.qe||"",r=s?Ls(s).substring(0,3):"",i=e.$.getHostProp(e.m,Le);let o=`${r}${i?.getHash().substring(0,3)||""}${((u=e.$,u.Re||u).Pe++).toString(36)||""}`,l=o.charCodeAt(0);var u;return l>=48&&l<=57&&(l+=17,o=String.fromCharCode(l)+o.substring(1)),n(o)},Gf=/*#__PURE__*/new Map,Kf=(t,n)=>{let e=Gf.get(n);return e||Gf.set(n,e=Zf(t,n)),e},Zf=(t,n)=>{function e(n){l.push(t.substring(f,n)),f=n}function s(t){a===oa||i()||(e(t),l.push(".",Xe,n))}function r(n){let e=0;if(t.charCodeAt(c)===Ea)for(let n=1;n<10;n++)if(t.charCodeAt(c+n)===Ea){e=n+1;break}t:for(let s=3;s<n.length;s++){const r=n[s];for(let n=0;n<r.length;n++)if((t.charCodeAt(c+n+e)|Ia)!==r.charCodeAt(n))continue t;return c+=r.length+e,!0}return!1}function i(){return-1!==u.indexOf(oa)||-1!==u.indexOf(ua)}const o=t.length,l=[],u=[];let c=0,f=c,a=ra,h=0;for(;c<o;){const n=c;let o=t.charCodeAt(c++);o===Aa&&(c++,o=Ta);const l=Fa[a];for(let d=0;d<l.length;d++){const p=l[d],[$,y,m]=p;if(($===h||$===da||$===pa&&ta(h)||$===ya&&sa(h))&&(y===o||y===da||y===pa&&ta(o)||y===$a&&!ta(o)&&o!==Sa||y===ya&&sa(o))&&(3==p.length||r(p))){if(p.length>3&&(o=t.charCodeAt(c-1)),m===aa||m==ha){m===ha&&(a!==ia||i()?na(o)||s(c-(y==$a?1:y==ga?2:0)):(na(o)?e(c-2):s(c-2),f++)),y===$a&&(c--,o=h);do{a=u.pop()||ra,a===oa&&(e(c-1),f++)}while(ea(a))}else u.push(a),a===oa&&m===ra?(e(c-8),f=c):m===la&&s(n),a=m;break}}h=o}return e(c),l.join("")},ta=t=>t>=ka&&t<=Ra||t>=Ta&&t<=qa||t>=Na&&t<=Ca||t>=128||t===xa||t===Ea,na=t=>t===Pa||t===Sa||t===Ma||t===_a||ta(t),ea=t=>t===ca||t===ua||t===fa||t===oa,sa=t=>t===va||t===ma||t===wa||t===ba,ra=0,ia=2,oa=5,la=6,ua=10,ca=11,fa=12,aa=17,ha=18,da=0,pa=1,$a=2,ya=3,ma=9,wa=10,ba=13,va=32,_a=35,ga=41,Ea=45,Sa=46,ka=48,Ra=57,Pa=58,Ta=65,qa=90,Ma=91,Aa=92,xa=95,Ia=32,Na=97,Ca=122,Oa=123,ja=125,La=/*@__PURE__*/(()=>[[da,39,14],[da,34,15],[da,47,16,"*"]])(),Fa=/*@__PURE__*/(()=>[[[da,42,ia],[da,Ma,7],[da,Pa,la,":","before","after","first-letter","first-line"],[da,Pa,oa,"global"],[da,Pa,3,"has","host-context","not","where","is","matches","any"],[da,Pa,4],[da,pa,1],[da,Sa,1],[da,_a,1],[da,64,ua,"keyframe"],[da,64,ca,"media","supports","container"],[da,64,fa],[da,Oa,13],[47,42,16],[da,59,aa],[da,ja,aa],[da,ga,aa],...La],[[da,$a,ha]],[[da,$a,ha]],[[da,40,ra],[da,$a,ha]],[[da,40,8],[da,$a,ha]],[[da,40,ra],[da,$a,aa]],[[da,$a,aa]],[[da,93,ha],[da,39,14],[da,34,15]],[[da,ga,aa],...La],[[da,ja,aa],...La],[[da,ja,aa],[ya,pa,1],[da,Pa,oa,"global"],[da,Oa,13],...La],[[da,Oa,ra],[da,59,aa],...La],[[da,59,aa],[da,Oa,9],...La],[[da,ja,aa],[da,Oa,13],[da,40,8],...La],[[da,39,aa]],[[da,34,aa]],[[42,47,aa]]])(),Xa=t=>({styleId:Ua(t,t=>t,!1)}),Da=/*#__PURE__*/fi(Xa),Wa=t=>({scopeId:Xe+Ua(t,Kf,!0)}),Va=/*#__PURE__*/fi(Wa),Ua=(t,n,e)=>{let{val:s,set:r,iCtx:i,i:o}=wo();if(s)return s;const l=(u=o,`${Ls(t.it)}-${u}`);var u;const c=i.m;if(r(l),!t.resolved)throw t.resolve().then(t=>i.$.Xe(n(t,l),l,c,e));return i.$.Xe(n(t.resolved,l),l,c,e),l},za=(t,n)=>(t.resolve(),hi(t,n)),Ba=(t,n)=>_o(za,t,n),Ha=fi(Ba),Ja=t=>(t.resolve(),pi(t)),Qa=t=>_o(Ja,t),Ya=fi(Qa),Ga=(t,n)=>{const{val:e,set:s,i:r,iCtx:i}=wo(),o=n?.strategy??"intersection-observer";if(e)return void(32&e.h||(e.h|=32,Ka(e,o)));let l;l=5,t.resolve(),hn(i.$,i.m,1);const u=new eu(5,r,i.m,t,void 0,null);s(u),Ka(u,o)},Ka=(t,n)=>{"intersection-observer"===n?dc("qvisible",Za(t)):"document-ready"===n?pc("qinit",Za(t)):"document-idle"===n&&pc("qidle",Za(t))},Za=t=>Mf(null,"_task",Rn,null,[t]),th=fi(fc),nh=/*#__PURE__*/fi(tu),eh=/*#__PURE__*/fi(Ga),sh=(t,n)=>(t.resolve(),di(t,n)),rh=(t,n)=>_o(sh,t,n),ih=fi(rh),oh=()=>{const t=Qf({error:void 0});return Fc(Wc,t),t},lh=async({track:t})=>{const n=Sf[0];t(()=>n.items);const e=ef(),s=e.m;hn(e.$,s,256)},uh=t=>{if(!__EXPERIMENTAL__.each)throw Error('Each is experimental and must be enabled with `experimental: ["each"]` in the `qwikVite` plugin.');return tu(/*#__PURE__*/Qu(lh,"_eaT",[t])),Gi},ch=/*#__PURE__*/Wf(
|
|
2
|
+
/*#__PURE__*/Qu(uh,"_eaC")),fh=/*#__PURE__*/Lc("qk-reveal"),ah=t=>({order:t.order??"parallel",collapsed:!0===t.collapsed,items:[],version:$i(0)}),hh=()=>{const t=Sf[0];return!(null!==t&&t.reveal.version.value<0)&&((t,n=t=>t.boundary.pending.untrackedValue>0)=>{if(null===t)return!0;const e=t.reveal,s=t.item,r=e.items;switch(e.order){case"together":for(let t=0;t<r.length;t++)if(n(r[t]))return!1;return!0;case"sequential":for(let t=0;t<r.length;t++){const e=r[t];if(e===s)return!0;if(n(e))return!1}return!0;case"reverse":for(let t=r.length-1;t>=0;t--){const e=r[t];if(e===s)return!0;if(n(e))return!1}return!0;default:return!0}})(t)},dh=({cleanup:t})=>{const n=Sf[0];t(()=>{const t=n.reveal.items,e=t.indexOf(n.item);-1!==e&&(t.splice(e,1),n.reveal.version.value++)})},ph=t=>{if(!__EXPERIMENTAL__.suspense)throw Error('Reveal is experimental and must be enabled with `experimental: ["suspense"]` in the `qwikVite` plugin.');const n=_o(ah,t);return Fc(fh,n),__EXPERIMENTAL__.suspense,/*#__PURE__*/Fi(Yi,null,null,null,0,"u7_0")},$h=/*#__PURE__*/Wf(
|
|
3
|
+
/*#__PURE__*/Qu(ph,"_reC")),yh=(__EXPERIMENTAL__.suspense,(t,n,e,s)=>({display:"fallback"!==n.value||null==t.fallback||!1===t.fallback||null!==e&&!e.value&&s.reveal.collapsed?"none":"contents"})),mh=(t,n,e)=>({display:"content"!==n.value&&!t.showStale||null!==e&&!e.value?"none":"contents"}),wh=({track:t,cleanup:n})=>{const e=Sf[0],s=Sf[1],r=Sf[2],i=Sf[3],o=t(e.pending);if(null!==i&&i.reveal.version.value++,0===o)return void(r.value="content");const l=setTimeout(()=>{e.pending.value>0&&(r.value="fallback")},s.delay??0);n(()=>clearTimeout(l))},bh=t=>{if(!__EXPERIMENTAL__.suspense)throw Error('Suspense is experimental and must be enabled with `experimental: ["suspense"]` in the `qwikVite` plugin.');const n=vo("content"),e=(()=>{if(!__EXPERIMENTAL__.suspense)throw Error('useCursorBoundary is experimental and must be enabled with `experimental: ["suspense"]` in the `qwikVite` plugin.');return _o(go)})(),s=(t=>{const n=Xc(fh,null),e=_o(()=>{if(null===n)return null;const e={boundary:t};return n.items.push(e),{reveal:n,item:e}});return null!==e&&tu(/*#__PURE__*/Qu(dh,"_reT",[e]),{deferUpdates:!1}),e})(e),r=Ba(
|
|
4
|
+
/*#__PURE__*/Qu(hh,"_reR",[s]));tu(
|
|
5
|
+
/*#__PURE__*/Qu(wh,"_suT",[e,t,n,s]));const i=/*#__PURE__*/rc(mh,[t,n,r],'{display:(p1.value==="content"||p0.showStale)&&(p2===null||p2.value)?"contents":"none"}');return[/*#__PURE__*/Fi("div",{style:rc(yh,[t,n,r,s],'{display:p1.value==="fallback"&&p0.fallback!=null&&p0.fallback!==false&&(p2===null||p2.value||!p3.reveal.collapsed)?"contents":"none"}')},null,gi(t,"fallback"),1,null),
|
|
6
|
+
/*#__PURE__*/Fi("div",null,{style:i},
|
|
7
|
+
/*#__PURE__*/Fi(Yi,{[rs]:e},null,null,3,"u6_0"),1,null)]},vh=/*#__PURE__*/Wf(
|
|
8
|
+
/*#__PURE__*/Qu(bh,"_suC")),_h=(__EXPERIMENTAL__.suspense,__EXPERIMENTAL__.suspense,t=>{const n=import.meta.env?.BASE_URL||"/",e={path:"qwik-prefetch-service-worker.js",...t};t?.path?.startsWith?.("/")?e.path=t.path:e.path=n+e.path;let s=gh.replace('"_URL_"',JSON.stringify(e.path.split("/").pop()));s=s.replaceAll(/\s\s+/gm,"");const r={dangerouslySetInnerHTML:"("+s+")(navigator.serviceWorker);",nonce:e.nonce};return Fi("script",null,r,null,0,"prefetch-service-worker")}),gh=/*#__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)}),Eh=()=>null;globalThis.__qwik&&qe(30,[globalThis.__qwik,wr]),globalThis.__qwik=wr,import.meta.hot&&import.meta.hot.dispose(()=>{globalThis.__qwik=void 0});export{jf as $,ch as Each,Ji as Fragment,Oc as NoSerializeSymbol,Eh as PrefetchGraph,_h as PrefetchServiceWorker,Qi as RenderOnce,ac as Resource,$h as Reveal,Zi as SSRComment,Ki as SSRRaw,no as SSRStream,to as SSRStreamBlock,jc as SerializerSymbol,Gi as SkipRender,Yi as Slot,vh as Suspense,Jr as _CONST_PROPS,Zc as _DomContainer,vr as _EFFECT_BACK_REF,ti as _EMPTY_ARRAY,ni as _EMPTY_OBJ,Kr as _IMMUTABLE,ic as _SharedContainer,Ri as _SubscriptionData,Pu as _SubscriptionPatch,Zr as _UNINITIALIZED,Qr as _VAR_PROPS,zn as _addProjection,Sf as _captures,v as _chk,ne as _createDeserializeContainer,Mf as _createQRL,Zn as _deserialize,Wu as _dumpState,uh as _eaC,lh as _eaT,fn as _executeSsrChores,rc as _fnSignal,sc as _getAsyncLocalStorage,ui as _getConstProps,df as _getContextContainer,hf as _getContextEvent,af as _getContextHostElement,se as _getDomContainer,ie as _getQContainerElement,li as _getVarProps,wu as _hasStoreEffects,wc as _hmr,qi as _isJSXNode,vu as _isStore,Ln as _isStringifiable,su as _isTask,pf as _jsxBranch,Di as _jsxC,Vi as _jsxQ,Wi as _jsxS,Fi as _jsxSorted,Xi as _jsxSplit,ve as _mapApp_findIndx,ge as _mapArray_get,_e as _mapArray_set,Yu as _noopQrl,Gu as _noopQrlDEV,On as _preprocessState,Df as _qrlSync,xn as _qrlToString,Ku as _qrlWithChunk,Zu as _qrlWithChunkDEV,ph as _reC,hh as _reR,dh as _reT,ec as _regSymbol,Jn as _removeProjection,_ as _res,Dc as _resolveContextWithoutSequentialScope,oo as _restProps,cc as _rsc,I as _run,Kn as _serialize,Wn as _setEvent,Bn as _setProjectionTarget,bh as _suC,wh as _suT,Rn as _task,Hn as _updateProjectionProps,Un as _useHmr,b as _val,Mc as _verifySerializable,nl as _vnode_ensureElementInflated,Ul as _vnode_getAttrKeys,El as _vnode_getElementName,Rl as _vnode_getFirstChild,Go as _vnode_getProp,ul as _vnode_getVNodeForChildNode,wl as _vnode_insertBefore,zo as _vnode_isElementVNode,Ho as _vnode_isMaterialized,Jo as _vnode_isTextVNode,Qo as _vnode_isVirtualVNode,Vo as _vnode_newVirtual,_l as _vnode_remove,Ko as _vnode_setProp,bn as _vnode_toString,$f as _waitUntilRendered,Xn as _walkJSX,gi as _wrapProp,Si as _wrapSignal,zf as component$,Wf as componentQrl,mi as createAsync$,di as createAsyncQrl,yi as createComputed$,hi as createComputedQrl,Lc as createContextId,g as createElement,wi as createSerializer$,pi as createSerializerQrl,$i as createSignal,Bf as event$,Ff as eventQrl,mu as forceStoreEffects,Hf as getClientManifest,se as getDomContainer,le as getLocale,Hs as getPlatform,g as h,fi as implicit$FirstArg,Qu as inlinedQrl,nc as inlinedQrlDEV,ye as isBrowser,me as isDev,$e as isServer,iu as isSignal,zi as jsx,Bi as jsxDEV,Hi as jsxs,Cc as noSerialize,Ju as qrl,tc as qrlDEV,Jf as render,Bs as setPlatform,Xf as sync$,lf as untrack,bu as unwrapStore,ih as useAsync$,rh as useAsyncQrl,Ha as useComputed$,Ba as useComputedQrl,_o as useConstant,Xc as useContext,Fc as useContextProvider,oh as useErrorBoundary,Yf as useId,uc as useLexicalScope,dc as useOn,pc as useOnDocument,$c as useOnWindow,th as useResource$,fc as useResourceQrl,Ya as useSerializer$,Qa as useSerializerQrl,de as useServerData,vo as useSignal,Qf as useStore,Da as useStyles$,Xa as useStylesQrl,Va as useStylesScoped$,Wa as useStylesScopedQrl,nh as useTask$,tu as useTaskQrl,eh as useVisibleTask$,Ga as useVisibleTaskQrl,wr as version,ue as withLocale};
|