MCPcopy
hub / github.com/QwikDev/qwik / cn

Class cn

packages/docs/public/builder/qwik-0.100.0.js:8–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6 * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
7 */
8const e=e=>function(t,...n){return e.call(null,Hi(t),...n)},t=!1,n=e=>{t&&Object.seal(e)},o=e=>e&&"number"==typeof e.nodeType,r=e=>e&&9===e.nodeType,s=e=>1===e.nodeType,i=e=>1===e.nodeType||111===e.nodeType,c=e=>{const t=e.nodeType;return 1===t||111===t||3===t},l=e=>111===e.nodeType,u=e=>3===e.nodeType,a=e=>8===e.nodeType;function f(e){if(t&&!i(e))throw console.error("Not a Qwik Element, got",e),new Error("Not a Qwik Element")}function d(e){if(t&&!s(e))throw console.error("Not a Element, got",e),new Error("Not an Element")}const h=t?"background: #564CE0; color: white; padding: 2px 3px; border-radius: 2px; font-size: 0.8em;":"",p=(e,...t)=>{const n=e instanceof Error?e:m(e),o=n.stack||n.message;return console.error("%cQWIK ERROR",h,o,...g(t)),n},m=e=>new Error(e),$=(e,...t)=>p(e,...t),b=/*@__PURE__*/new Set,v=(e,...n)=>{if(t){const t="warn"+String(e);b.has(t)||(b.add(t),w(e,...n))}},w=(e,...n)=>{t&&console.warn("%cQWIK WARN",h,e,...g(n))},y=(e,...n)=>{t&&console.debug("%cQWIK",h,e,...g(n))},g=e=>t?e.map((e=>o(e)&&s(e)?S(e):e)):e,S=e=>{const t=e._qc_,n=/*#__PURE__*/(()=>"undefined"!=typeof process&&!!process.versions&&!!process.versions.node)();return{tagName:e.tagName,renderQRL:t?.t?.getSymbol(),element:n?void 0:e,ctx:n?void 0:t}},x=(e,...t)=>{const n=k(e);return $(n,...t)},k=e=>t?`Code(${e}): ${["Error while serializing class attribute","Can not serialize a HTML Node that is not an Element","Runtime but no instance found on element.","Only primitive and object literals can be serialized","Crash while rendering","You can render over a existing q:container. Skipping render().","Set property","Only function's and 'string's are supported.","Only objects can be wrapped in 'QObject'","Only objects literals can be wrapped in 'QObject'","QRL is not a function","Dynamic import not found","Unknown type argument","Actual value for useContext() can not be found, make sure some ancestor component has set a value using useContextProvider()","Invoking 'use*()' method outside of invocation context.","Cant access renderCtx for existing context","Cant access document for existing context","props are immutable","<div> component can only be used at the root of a Qwik component$()","Props are immutable by default.","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.\nFor more information see: https://qwik.builder.io/docs/core/tasks/#use-method-rules","Container is already paused. Skipping",'Components using useServerMount() can only be mounted in the server, if you need your component to be mounted in the client, use "useMount$()" instead',"When rendering directly on top of Document, the root node must be a <html>","A <html> node must have 2 children. The first one <head> and the second one a <body>","Invalid JSXNode type. It must be either a function or a string. Found:","Tracking value changes can only be done to useStore() objects and component props","Missing Object ID for captured object","The provided Context reference is not a valid context created by createContextId()","<html> is the root container, it can not be rendered inside a component","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","The JSX ref attribute must be a Signal"][e]??""}`:`Code(${e})`,q=e=>{const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t},j=e=>e&&"object"==typeof e,C=e=>Array.isArray(e),O=e=>"string"==typeof e,T=e=>"function"==typeof e,E=()=>({isServer:!1,importSymbol(e,t,n){if(!t)throw x(31,n);if(!e)throw x(30,t,n);const o=P(e.ownerDocument,e,t).toString(),r=new URL(o);r.hash="",r.search="";const s=r.href;return import(s).then((e=>M(e,n)))},raf:e=>new Promise((t=>{requestAnimationFrame((()=>{t(e())}))})),nextTick:e=>new Promise((t=>{setTimeout((()=>{t(e())}))})),chunkForSymbol:(e,t)=>[e,t??"_"]}),M=(e,t)=>{if(t in e)return e[t];for(const n of Object.values(e))if(j(n)&&t in n)return n[t]},P=(e,t,n)=>{const o=e.baseURI,r=new URL(t.getAttribute("q:base")??o,o);return new URL(n,r)};let L=/* @__PURE__ */E();const I=e=>L=e,R=()=>L;function N(e,n,...o){if(t){if(null!=e)return;throw $(n,...o)}}function z(e,n,o,...r){if(t){if(e===n)return;throw $(o,...r)}}function A(e,n,...o){if(t){if(!0===e)return;throw $(n,...o)}}function _(e,n,...o){if(t){if("number"==typeof e)return;throw $(n,...o)}}const Q=e=>e instanceof Promise,H=(e,t,n)=>{try{const o=e();return Q(o)?o.then(t,n):t(o)}catch(e){return n(e)}},J=(e,t)=>Q(e)?e.then(t):t(e),D=e=>e.some(Q)?Promise.all(e):e,U=e=>e.length>0?Promise.all(e):e,X=e=>null!=e,W=e=>new Promise((t=>{setTimeout(t,e)})),F=[],V={};Object.freeze(F),Object.freeze(V);const K=/*@__PURE__*/new Set,B=(e,t,n=F,o=0)=>{let r=null,s=null;if(T(e))s=e;else{if(!O(e))throw x(12,e);r=e}return K.has(t)&&(K.add(t),_i("qprefetch",{symbols:[Ri(t)]})),Ii(r,t,null,s,null,n,null)},G=(e,t,n=F)=>Ii(null,t,e,null,null,n,null),Y=(e,t=F)=>Ii(null,e,null,null,null,t,null),Z=(e,t,n,o=F)=>{const r=B(e,t,o,1);return r.dev=n,r},ee=(e,t,n,o=F)=>{const r=G(e,t,o);return r.dev=n,r},te=(e,t={})=>{A(!1,"In order to serialize a QRL, qSerialize must be true"),Ni(e);let n=e.o,o=e.l;const r=e.m??n,s=R();if(s){const t=s.chunkForSymbol(r,o);t&&(o=t[1],e.m||(n=t[0]))}if(!o)throw x(31,e.o);o.startsWith("./")&&(o=o.slice(2));const i=[o,"#",n],c=e.$,l=e.v;if(l&&l.length){if(t.g){const e=l.map(t.g);i.push(`[${e.join(" ")}]`)}else if(t.S){const e=l.map(t.S);i.push(`[${e.join(" ")}]`)}}else c&&c.length>0&&i.push(`[${c.join(" ")}]`);return i.join("")},ne=(e,t)=>{d(t.k);const n={S:e=>se(t.j,e)};return e.map((e=>te(e,n))).join("\n")},oe=(e,t)=>{const n=e.length,o=re(e,0,"#"),r=re(e,o,"["),s=Math.min(o,r),i=e.substring(0,s),c=o==n?o:o+1,l=r,u=c==l?"default":e.substring(c,l),a=r,f=n,d=a===f?F:e.substring(a+1,f-1).split(" "),h=Ii(i,u,null,null,d,null,null);return t&&h.C(t),h},re=(e,t,n)=>{const o=e.length,r=e.indexOf(n,t==o?0:t);return-1==r?o:r},se=(e,t)=>{const n=e.indexOf(t);return-1===n?(e.push(t),e.length-1):n},ie=(e,t)=>(N(e.$,"invoke: qrl capture must be defined inside useLexicalScope()",e),e.v=e.$.map((e=>{const n=parseInt(e,10),o=t.j[n];return A(t.j.length>n,"out of bounds inflate access",e),o}))),ce=(e,t)=>(void 0===globalThis.__qwik_reg_symbols&&(globalThis.__qwik_reg_symbols=new Map),globalThis.__qwik_reg_symbols.set(t,e),e),le=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),ue="q:renderFn",ae="⭐️",fe="q:slot",de="q:sref",he="q:s",pe="q:style",me="q:sstyle",$e="q:container",be="[q\\:container]",ve="qRender",we="q:id",ye="#",ge=(e,t,n)=>e.setAttribute(t,n),Se=(e,t)=>e.getAttribute(t),xe=(e,t)=>e.removeAttribute(t),ke=Symbol("ContainerState"),qe=e=>{let t=e[ke];return t||(e[ke]=t=je(e,Se(e,"q:base")??"/")),t},je=(e,t)=>{const o={O:e,T:0,M:new WeakMap,P:new Set,L:new Set,I:new Set,R:new Set,N:new Set,A:new Set,H:new Set,J:{},D:t,U:void 0,X:void 0,W:void 0,F:null};return n(o),o.F=Ei(o),o},Ce=(e,t)=>{if(T(e))return e(t);if(j(e)&&"value"in e)return e.value=t;throw x(32,e)},Oe=(e,t)=>{var n;const o=Me(e);try{((n=globalThis).qwikevents||(n.qwikevents=[])).push(o)}catch(e){w(e)}},Te=e=>e.toString(36),Ee=e=>parseInt(e,36),Me=e=>{const t=e.indexOf(":");return e?e.slice(t+1).replace(/-./g,(e=>e[1].toUpperCase())):e},Pe=/^(on|window:|document:)/,Le="preventdefault:",Ie=e=>e.endsWith("$")&&Pe.test(e),Re=e=>{if(0===e.length)return F;if(1===e.length){const t=e[0];return[[t[0],[t[1]]]]}const t=[];for(let n=0;n<e.length;n++){const o=e[n][0];t.includes(o)||t.push(o)}return t.map((t=>[t,e.filter((e=>e[0]===t)).map((e=>e[1]))]))},Ne=(e,t,n,o)=>{if(A(t.endsWith("$"),"render: event property does not end with $",t),t=_e(t.slice(0,-1)),n)if(C(n)){const r=n.flat(1/0).filter((e=>null!=e)).map((e=>[t,Qe(e,o)]));e.push(...r)}else e.push([t,Qe(n,o)]);return t},ze=["on","window:on","document:on"],Ae=["on","on-window","on-document"],_e=e=>{let t="on";for(let n=0;n<ze.length;n++){const o=ze[n];if(e.startsWith(o)){t=Ae[n],e=e.slice(o.length);break}}return t+":"+(e.startsWith("-")?le(e.slice(1)):e.toLowerCase())},Qe=(e,t)=>{const n=Li(e)?e:Hi(e);return n.C(t),n};function He(e){return function(e){return e&&"number"==typeof e.nodeType}(e)&&1===e.nodeType}const Je=Symbol("proxy target"),De=Symbol("proxy flags"),Ue=Symbol("proxy manager"),Xe=Symbol("IMMUTABLE"),We="$$",Fe=(e,t,n)=>new et(e,t,n);var Ve;const Ke=(e,t,n,o)=>{const r=t.F.K(o);return new Ze(e,r,n)},Be=Symbol("proxy manager"),Ge=Symbol("unassigned signal");class Ye{}class Ze extends Ye{constructor(e,t,n){super(),this[Ve]=0,this.untrackedValue=e,this[Ue]=t,this[Be]=n}valueOf(){throw new TypeError("Cannot coerce a Signal, use `.value` instead")}toString(){return`[Signal ${String(this.value)}]`}toJSON(){return{value:this.value}}get value(){if(2&this[Be])throw Ge;const e=yt()?.B;return e&&this[Ue].G(e),this.untrackedValue}set value(e){if(t){if(1&this[Be])throw new Error("Cannot mutate immutable signal");pi(e);const t=yt();t&&(t.Y===ve&&w("State mutation inside render function. Use useTask$() instead.",t.Z),"ComputedEvent"===t.Y&&w("State mutation inside useComputed$() is an antipattern. Use useTask$() instead",t.Z))}const n=this[Ue],o=this.untrackedValue;n&&o!==e&&(this.untrackedValue=e,n.ee())}}Ve=Be;class et extends Ye{constructor(e,t,n){super(),this.te=e,this.ne=t,this.oe=n}get value(){return this.te.apply(void 0,this.ne)}}class tt extends Ye{constructor(e,t){super(),this.ref=e,this.prop=t}get[Ue](){return ji(this.ref)}get value(){return this.ref[this.prop]}set value(e){this.ref[this.prop]=e}}const nt=e=>e instanceof Ye,ot=(e,t)=>{if(!j(e))return e[t];if(e instanceof Ze)return z(t,"value","Left side is a signal, prop must be value"),e;if(e instanceof tt)return z(t,"value","Left side is a signal, prop must be value"),e;const n=qi(e);if(n){const o=n[We+t];if(o)return A(nt(o),`${We} has to be a signal kind`),o;if(!0!==n[Xe]?.[t])return new tt(e,t)}const o=e[Xe]?.[t];return nt(o)?o:Xe},rt=(e,t)=>{const n=ot(e,t);return n===Xe?e[t]:n},st=(e,t,n=0)=>t.M.get(e)||(0!==n&&lt(e,n),it(e,t,void 0)),it=(e,t,n)=>{z(ki(e),e,"Unexpected proxy at this location",e),A(!t.M.has(e),"Proxy was already created",e),A(j(e),"Target must be an object"),A(q(e)||C(e),"Target must be a serializable object");const o=t.F.K(n),r=new Proxy(e,new at(t,o));return t.M.set(e,r),r},ct=()=>{const e={};return lt(e,2),e},lt=(e,t)=>{Object.defineProperty(e,De,{value:t,enumerable:!1})},ut=(e,t)=>{const n={};for(const o in e)t.includes(o)||(n[o]=e[o]);return n};class at{constructor(e,t){this.re=e,this.se=t}deleteProperty(e,t){if(2&e[De])throw x(17);return"string"==typeof t&&delete e[t]&&(this.se.ee(C(e)?void 0:t),!0)}get(e,t){if("symbol"==typeof t)return t===Je?e:t===Ue?this.se:e[t];let n;const o=e[De]??0;_(o,"flags must be an number");const r=yt(),s=0!=(1&o),i=0!=(2&o);let c=e[t];if(r&&(n=r.B),i){const o=e[We+t],r=e[Xe]?.[t];(!(t in e)||o||nt(r)||r===Xe)&&(n=null),o&&(A(nt(o),"$$ prop must be a signal"),c=o.value)}if(n){const o=C(e);this.se.G(n,o?void 0:t)}return s?ft(c,this.re):c}set(e,n,o){if("symbol"==typeof n)return e[n]=o,!0;const r=e[De]??0;if(_(r,"flags must be an number"),0!=(2&r))throw x(17);const s=0!=(1&r)?ki(o):o;if(t){pi(s);const e=yt();e&&e.Y===ve&&p("State mutation inside render function. Move mutation to useTask$() or useVisibleTask$()",n)}return C(e)?(e[n]=s,this.se.ee(),!0):(e[n]!==s&&(e[n]=s,this.se.ee(n)),!0)}has(e,t){if(t===Je)return!0;const n=Object.prototype.hasOwnProperty;return!!n.call(e,t)||!("string"!=typeof t||!n.call(e,We+t))}ownKeys(e){const t=e[De]??0;if(_(t,"flags must be an number"),0==(2&t)){let e=null;const t=yt();t&&(e=t.B),e&&this.se.G(e)}return C(e)?Reflect.ownKeys(e):Reflect.ownKeys(e).map((e=>"string"==typeof e&&e.startsWith(We)?e.slice(We.length):e))}getOwnPropertyDescriptor(e,t){return C(e)||"symbol"==typeof t?Object.getOwnPropertyDescriptor(e,t):{enumerable:!0,configurable:!0}}}const ft=(e,t)=>{if(j(e)){if(Object.isFrozen(e))return e;const n=ki(e);if(n!==e)return e;if(wi(n))return e;if(q(n)||C(n))return t.M.get(n)||st(n,t,1)}return e},dt="_qc_",ht=e=>e[dt],pt=(e,t)=>{f(e);const n=ht(e);if(n)return n;const o=mt(e),r=Se(e,"q:id");if(r){const n=t.W;if(o.ie=r,n){const{getObject:s,meta:i,refs:c}=n;if(He(e)){const n=c[r];n&&(A(He(e),"el must be an actual DOM element"),o.j=n.split(" ").map(s),o.li=((e,t)=>{const n=e.k.attributes,o=[];for(let r=0;r<n.length;r++){const{name:s,value:i}=n.item(r);if(s.startsWith("on:")||s.startsWith("on-window:")||s.startsWith("on-document:")){const n=i.split("\n");for(const r of n){const n=oe(r,t);n.$&&ie(n,e),o.push([s,n])}}}return o})(o,t.O))}else{const n=e.getAttribute(me);o.ce=n?n.split("|"):null;const c=i[r];if(c){const e=c.s,n=c.h,r=c.c,i=c.w;if(e&&(o.le=e.split(" ").map(s)),i&&(o.ue=i.split(" ").map(s)),r){o.ae=new Map;for(const e of r.split(" ")){const[t,n]=e.split("=");o.ae.set(t,s(n))}}if(n){const[e,r]=n.split(" ");o.fe=4,e&&(o.t=s(e)),o.de=r?s(r):it(ct(),t)}}}}}return o},mt=e=>{const t={fe:0,ie:"",k:e,j:[],li:[],ue:null,le:null,he:null,ce:null,pe:null,de:null,me:null,t:null,ae:null,$e:null,be:null,ve:null};return n(t),e[dt]=t,t};let $t,bt;function vt(e){if(void 0===$t){const t=yt();if(t&&t.we)return t.we;if(void 0!==e)return e;throw new Error("Reading `locale` outside of context.")}return $t}function wt(e,t){const n=$t;try{return $t=e,t()}finally{$t=n}}const yt=()=>{if(!bt){const e="undefined"!=typeof document&&document&&document.__q_context__;if(!e)return;return C(e)?document.__q_context__=jt(e):e}return bt},gt=()=>{const e=yt();if(!e)throw x(14);return e},St=()=>{const e=yt();if(!e||e.Y!==ve)throw x(20);return N(e.Z,"invoke: $hostElement$ must be defined",e),N(e.ye,"invoke: $waitOn$ must be defined",e),N(e.ge,"invoke: $renderCtx$ must be defined",e),N(e.B,"invoke: $subscriber$ must be defined",e),e},xt=e=>{if(null==e)return e;const t=gt();return(...n)=>kt(t,e.bind(void 0,...n))};function kt(e,t,...n){const o=bt;let r;try{bt=e,r=t.apply(this,n)}finally{bt=o}return r}const qt=(e,t)=>{const n=e.ye;if(0===n.length){const e=t();Q(e)&&n.push(e)}else n.push(Promise.all(n).then(t))},jt=e=>{const t=e[0],n=t.closest(be),o=n?.getAttribute("q:locale")||void 0;return o&&function(e){$t=e}(o),Ct(o,void 0,t,e[1],e[2])},Ct=(e,t,o,r,s)=>{const i={le:0,Z:t,k:o,Y:r,Se:s,xe:void 0,de:void 0,ge:void 0,B:void 0,ye:void 0,we:e};return n(i),i},Ot=e=>e.closest(be),Tt=e=>kt(void 0,e),Et=Ct(void 0,void 0,void 0,ve),Mt=(e,t)=>(Et.B=t,kt(Et,(()=>e.value))),Pt=()=>{const e=yt();if(e)return e.k??e.Z??e.xe?.C(void 0)},Lt=e=>{const t=yt();if(t&&t.Z&&t.ge){const e=t.Z;pt(e,t.ge.ke.re).fe|=8}return e},It=(e,t)=>zt(`on-${e}`,t),Rt=(e,t)=>zt(`document:on-${e}`,t),Nt=(e,t)=>zt(`window:on-${e}`,t),zt=(e,t)=>{const n=St(),o=pt(n.Z,n.ge.ke.re);Ni(t),"string"==typeof e?o.li.push([_e(e),t]):o.li.push(...e.map((e=>[_e(e),t]))),o.fe|=2},At=()=>{const e=St(),n=e.le,o=e.Z,r=pt(o,e.ge.ke.re),s=r.le?r.le:r.le=[];return e.le++,{get:s[n],set:e=>(t&&pi(e),s[n]=e),i:n,iCtx:e,elCtx:r}},_t=e=>document,Qt=(e,t,n,o)=>{e?e.qe.push({je:Ht,ne:[t,n,o]}):Ht(t,n,o)},Ht=(e,t,n)=>{if(null==n||!1===n)e.removeAttribute(t);else{const o=!0===n?"":String(n);ge(e,t,o)}},Jt=(e,t,n,o)=>{e?e.qe.push({je:Dt,ne:[t,n,o]}):Dt(t,n,o)},Dt=(e,t,n)=>{try{e[t]=n??"",null==n&&o(e)&&s(e)&&e.removeAttribute(t)}catch(o){p(k(6),{node:e,key:t,value:n},o)}},Ut=(e,t,n)=>n?e.createElementNS(qr,t):e.createElement(t),Xt=(e,t,n,o)=>(e.qe.push({je:rs,ne:[t,n,o||null]}),n),Wt=(e,t,n,o)=>(e.qe.push({je:os,ne:[t,n,o||null]}),n),Ft=(e,t,n)=>(e.qe.push({je:ts,ne:[t,n]}),n),Vt=(e,t)=>{e.re.A.add(t.styleId),e.Ce.push({je:Kt,ne:[e.re.O,t]})},Kt=(e,t)=>{const n=_t(),o=n.documentElement===e,r=n.head,s=n.createElement("style");o&&!r&&w("document.head is undefined"),ge(s,pe,t.styleId),ge(s,"hidden",""),s.textContent=t.content,o&&r?ts(r,s):rs(e,s,e.firstChild)},Bt=(e,t)=>{rs(e,t,e.firstChild)},Gt=(e,t)=>{if(1===t.nodeType||111===t.nodeType){const n=e.re.F;es(t,e,n,!0)}e.qe.push({je:Yt,ne:[t,e]})},Yt=(e,n)=>{const o=e.parentElement;o?ns(o,e):t&&w("Trying to remove component already removed",e)},Zt=(e,t)=>{const n=Ut(e,"q:template",!1);return ge(n,fe,t),ge(n,"hidden",""),ge(n,"aria-hidden","true"),n},en=e=>{for(const t of e.qe)t.je.apply(void 0,t.ne);nn(e)},tn=e=>Se(e,"q:key"),nn=e=>{const t=e.re.F;for(const n of e.Oe){const o=tn(n);N(o,"slots must have a key");const r=Mr(n,"root");if(r.length>0){const s=n.getAttribute(de),i=e.Te.find((e=>e.ie===s));if(i){const s=i.k;if(s.isConnected)if(Array.from(s.childNodes).some((e=>Nr(e)&&Se(e,fe)===o)))es(n,e,t,!1);else{const t=Zt(e.Ee,o);for(const e of r)ts(t,e);rs(s,t,s.firstChild)}else es(n,e,t,!1)}else es(n,e,t,!1)}}for(const[t,n]of e.Me){const e=tn(t);N(e,"slots must have a key");const o=Array.from(n.childNodes).find((t=>Nr(t)&&t.getAttribute(fe)===e));o&&(Mr(o,"root").forEach((e=>{ts(t,e)})),o.remove())}},on=e=>{if(t&&"undefined"!=typeof window&&null!=window.document){const t={};for(const n of e.qe)t[n.je.name]=(t[n.je.name]??0)+1;const n={byOp:t,roots:e.Te.map((e=>e.k)),hostElements:Array.from(e.Pe),operations:e.qe.map((e=>[e.je.name,...e.ne]))},o=0===e.qe.length;y("Render stats.",o?"No operations":"",n)}},rn="__virtual",sn=":virtual";class cn{constructor(e,t){this.open=e,this.close=t,this._qc_=null,this.nodeType=111,this.localName=sn,this.nodeName=sn;const o=this.ownerDocument=e.ownerDocument;this.template=Ut(o,"template",!1),this.attributes=(e=>{if(!e)return new Map;const t=e.split(" ");return new Map(t.map((e=>{const t=e.indexOf("=");return t>=0?[e.slice(0,t),(n=e.slice(t+1),n.replace(/\+/g," "))]:[e,""];var n})))})(e.data.slice(3)),A(e.data.startsWith("qv "),"comment is not a qv"),e[rn]=this,n(this)}insertBefore(e,t){const n=this.parentElement;if(n){const o=t||this.close;n.insertBefore(e,o)}else this.template.insertBefore(e,t);return e}remove(){const e=this.parentElement;if(e){const t=Array.from(this.childNodes);z(this.template.childElementCount,0,"children should be empty"),e.removeChild(this.open),this.template.append(...t),e.removeChild(this.close)}}appendChild(e){return this.insertBefore(e,null)}insertBeforeTo(e,t){const n=Array.from(this.childNodes);e.insertBefore(this.open,t);for(const o of n)e.insertBefore(o,t);e.insertBefore(this.close,t),z(this.template.childElementCount,0,"children should be empty")}appendTo(e){this.insertBeforeTo(e,null)}get namespaceURI(){return this.parentElement?.namespaceURI??""}removeChild(e){this.parentElement?this.parentElement.removeChild(e):this.template.removeChild(e)}getAttribute(e){return this.attributes.get(e)??null}hasAttribute(e){return this.attributes.has(e)}setAttribute(e,t){this.attributes.set(e,t)}removeAttribute(e){this.attributes.delete(e)}matches(e){return!1}compareDocumentPosition(e){return this.open.compareDocumentPosition(e)}closest(e){const t=this.parentElement;return t?t.closest(e):null}querySelectorAll(e){const t=[];return Mr(this,"elements").forEach((n=>{i(n)&&(n.matches(e)&&t.push(n),t.concat(Array.from(n.querySelectorAll(e))))})),t}querySelector(e){for(const t of this.childNodes)if(s(t)){if(t.matches(e))return t;const n=t.querySelector(e);if(null!==n)return n}return null}get firstChild(){if(this.parentElement){const e=this.open.nextSibling;return e===this.close?null:e}return this.template.firstChild}get nextSibling(){return this.close.nextSibling}get previousSibling(){return this.open.previousSibling}get childNodes(){if(!this.parentElement)return this.template.childNodes;const e=[];let t=this.open;for(;(t=t.nextSibling)&&t!==this.close;)e.push(t);return e}get isConnected(){return this.open.isConnected}get parentElement(){return this.open.parentElement}}const ln=e=>{if(null==e)return null;if(a(e)){const t=un(e);if(t)return t}return e},un=e=>{const t=e[rn];if(t)return t;if(e.data.startsWith("qv ")){const t=an(e);return new cn(e,t)}return null},an=e=>{let t=e.nextSibling,n=1;for(;t;){if(a(t))if(t.data.startsWith("qv "))n++;else if("/qv"===t.data&&(n--,0===n))return t;t=t.nextSibling}throw new Error("close not found")},fn=e=>null==e?null:l(e)?e.open:e,dn=e=>(A(/^[\w/.-]+$/.test(e),"Context name must only contain A-Z,a-z,0-9, _",e),/*#__PURE__*/Object.freeze({id:le(e)})),hn=(e,n)=>{const{get:o,set:r,elCtx:s}=At();if(void 0!==o)return;t&&vn(e);let i=s.ae;i||(s.ae=i=new Map),t&&pi(n),i.set(e.id,n),r(!0)},pn=(e,n)=>{const{get:o,set:r,iCtx:s,elCtx:i}=At();if(void 0!==o)return o;t&&vn(e);const c=mn(e,i,s.ge.ke.re);if("function"==typeof n)return r(kt(void 0,n,c));if(void 0!==c)return r(c);if(void 0!==n)return r(n);throw x(13,e.id)},mn=(e,t,n)=>{const o=e.id;if(t){let e=t.k,r=t.ve??t.be;for(;r;){if(e=r.k,r.ae){const e=r.ae.get(o);if(e)return e;if(!0===r.ae.get("_"))break}r=r.ve??r.be}if(e.closest){const t=$n(e,n,o);if(void 0!==t)return t}}},$n=(e,t,n)=>{let o=e;for(;o;){let e,r=o;for(;r&&(e=bn(r));){const o=pt(e,t)?.ae;if(o&&o.has(n))return o.get(n);r=e}o=o.parentElement}},bn=e=>{let t=e,n=1;for(;t=t.previousSibling;)if(a(t))if("/qv"===t.data)n++;else if(t.data.startsWith("qv ")&&(n--,0===n))return un(t);return null},vn=e=>{if(!j(e)||"string"!=typeof e.id||0===e.id.length)throw x(28,e)},wn=/*#__PURE__*/dn("qk-error"),yn=(e,n,o)=>{const r=ht(n);if(t){if("undefined"!=typeof document&&l(n)){r.me=null;const t=document.createElement("errored-host");e&&e instanceof Error&&(t.props={error:e}),t.setAttribute("q:key","_error_"),t.append(...n.childNodes),n.appendChild(t)}if(e&&e instanceof Error&&("hostElement"in e||(e.hostElement=n)),!gn(e))throw e}{const t=mn(wn,r,o.ke.re);if(void 0===t)throw e;t.error=e}},gn=e=>!(e&&e instanceof Error&&"plugin"in e),Sn=(e,t)=>{t.fe&=-2,t.fe|=4,t.he=[],t.li.length=0;const n=t.k,o=t.t,r=t.de,s=kn(e),i=Ct(e.ke.we,n,void 0,ve),c=i.ye=[];N(o,"render: host element to render must has a $renderQrl$:",t),N(r,"render: host element to render must has defined props",t),s.Le=t,s.Ie=null,i.B=[0,n],i.ge=e,o.C(e.ke.re.O);const l=o.getFn(i);return H((()=>l(r)),(n=>c.length>0?Promise.all(c).then((()=>1&t.fe?Sn(e,t):{node:n,rCtx:s})):1&t.fe?Sn(e,t):{node:n,rCtx:s}),(o=>o===Ge?Promise.all(c).then((()=>Sn(e,t))):(yn(o,n,e),{node:Ln,rCtx:s})))},xn=(e,t)=>{const o={ke:{Ee:e,we:t.J.locale,re:t,Pe:new Set,qe:[],Ce:[],Te:[],Me:[],Oe:[],Re:[]},Le:null,Ie:null};return n(o),n(o.ke),o},kn=e=>({ke:e.ke,Le:e.Le,Ie:e.Ie}),qn=(e,t)=>t&&t.ce?t.ce.join(" ")+" "+jn(e):jn(e),jn=e=>e?O(e)?e.trim():C(e)?e.reduce(((e,t)=>{const n=jn(t);return n?e?`${e} ${n}`:n:e}),""):Object.entries(e).reduce(((e,[t,n])=>n?e?`${e} ${t.trim()}`:t.trim():e),""):"",Cn=e=>{if(null==e)return"";if("object"==typeof e){if(C(e))throw x(0,e,"style");{const t=[];for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];if(null!=o){const e=n.startsWith("--")?n:le(n);t.push(e+":"+o)}}return t.join(";")}}return String(e)},On=e=>Te(e.ke.re.T++),Tn=(e,t)=>{const n=On(e);t.ie=n},En=e=>nt(e)?En(e.value):null==e||"boolean"==typeof e?"":String(e);function Mn(e){return e.startsWith("aria-")}const Pn=(e,t)=>!!t.key&&(!vr(e)||!T(e.type)&&e.key!=t.key),Ln=Symbol("skip render"),In=(e,t)=>fr(zn,null,null,e.children,2,t),Rn=()=>null,Nn=e=>hr(Rn,{data:`\x3c!--${e.data}--\x3e`},null),zn=e=>e.children,An=e=>[hr(Nn,{data:"qkssr-pu"}),e.children,hr(Nn,{data:"qkssr-po"})],_n=(e,t)=>hr(In,{children:hr(Hn,e)},t),Qn=()=>null,Hn=()=>null,Jn=(e,t=0)=>{if(0===e.length)return t;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return Number(Math.abs(t)).toString(36)},Dn=e=>{const t=e.join("|");if(t.length>0)return t},Un=async(e,t)=>{const n={},o=Fn(n);let r;for(to(e,o,!1);(r=o.Ne).length>0;)o.Ne=[],await Promise.all(r);const s=Array.from(o.ze.keys());let i=0;const c=new Map;for(const e of s)c.set(e,Te(i)),i++;if(o.Ae.length>0){const e=c.get(void 0);N(e,"undefined ID must be defined");for(const t of o.Ae)c.set(t,e)}const l=e=>{let t="";if(Q(e)){const n=eo(e);if(!n)throw x(27,e);e=n.value,n.resolved?t+="~":t+="_"}if(j(e)){const n=qi(e);n&&(t+="!",e=n)}const n=c.get(e);if(void 0===n)throw x(27,e);return n+t},u=s.map((e=>{if(null===e)return null;const t=typeof e;switch(t){case"undefined":return Ks;case"number":if(!Number.isFinite(e))break;return e;case"string":case"boolean":return e}const r=ui(e,l,o,n);if(void 0!==r)return r;if("object"===t){if(C(e))return e.map(l);if(q(e)){const t={};for(const n of Object.keys(e))t[n]=l(e[n]);return t}}throw x(3,e)}));return JSON.stringify({_entry:l(e),_objs:u})},Xn=async(e,n,r)=>{const c=Fn(n);let u,a=!1;for(const n of e)if(n.ue)for(const e of n.ue)t&&(e.fe&ks&&w("Serializing dirty watch. Looks like an internal error."),xi(e)||w("Serializing disconnected watch. Looks like an internal error.")),Ms(e)&&c._e.push(e.Qe),zs(e);for(const t of e){const e=t.k,n=t.li;for(const t of n)if(s(e)){const e=t[1],n=e.v;if(n)for(const e of n)to(e,c,!0);c.He.push(e),a=!0}}if(!a)return{state:{refs:{},ctx:{},objs:[],subs:[]},objs:[],funcs:[],qrls:[],resources:c._e,mode:"static"};for(;(u=c.Ne).length>0;)c.Ne=[],await Promise.all(u);const f=c.Je.length>0;if(f){for(const e of c.De)Bn(e,c,e.k);for(const t of e)Wn(t,c)}for(;(u=c.Ne).length>0;)c.Ne=[],await Promise.all(u);const h=new Map,p=Array.from(c.ze.keys()),m=new Map,$=e=>{let t="";if(Q(e)){const n=eo(e);if(!n)return null;e=n.value,n.resolved?t+="~":t+="_"}if(j(e)){const n=qi(e);if(n)t+="!",e=n;else if(i(e)){const n=(e=>{let t=h.get(e);return void 0===t&&(t=ro(e),t||console.warn("Missing ID",e),h.set(e,t)),t})(e);return n?ye+n+t:null}}const n=m.get(e);return n?n+t:r?r(e):null},b=e=>{const t=$(e);if(null===t)throw x(27,e);return t},v=new Map;p.forEach((e=>{const t=oo(e,n)?.Ue;if(!t)return null;const r=Ci(e)??0,s=[];r>0&&s.push(r);for(const e of t){const t=e[1];0===e[0]&&o(t)&&l(t)&&!c.Je.includes(ht(t))||s.push(e)}s.length>0&&v.set(e,s)})),p.sort(((e,t)=>(v.has(e)?0:1)-(v.has(t)?0:1)));let y=0;for(const e of p)m.set(e,Te(y)),y++;if(c.Ae.length>0){const e=m.get(void 0);N(e,"undefined ID must be defined");for(const t of c.Ae)m.set(t,e)}const g=[];for(const e of p){const t=v.get(e);if(null==t)break;g.push(t.map((e=>"number"==typeof e?`_${e}`:Oi(e,$))).filter(X))}z(g.length,v.size,"missing subscriptions to serialize",g,v);const S=p.map((e=>{if(null===e)return null;const t=typeof e;switch(t){case"undefined":return Ks;case"number":if(!Number.isFinite(e))break;return e;case"string":case"boolean":return e}const o=ui(e,b,c,n);if(void 0!==o)return o;if("object"===t){if(C(e))return e.map(b);if(q(e)){const t={};for(const n of Object.keys(e)){const o=$(e[n]);null!==o&&(t[n]=o)}return t}}throw x(3,e)})),k={},O={};return e.forEach((e=>{const t=e.k,n=e.ie,o=e.j,r=e.de,s=e.ae,i=e.ue,u=e.t,a=e.le,h={},p=l(t)&&c.Je.includes(e);if(N(n,"pause: can not generate ID for dom node",t),o.length>0){d(t);const e=o.map(b).join(" ");e&&(O[n]=e)}else if(f){let e=!1;if(p){N(u,"renderQrl must be defined");const t=$(r);h.h=b(u)+(t?" "+t:""),e=!0}else{const t=$(r);t&&(h.h=" "+t,e=!0)}if(i&&i.length>0){const t=i.map($).filter(X).join(" ");t&&(h.w=t,e=!0)}if(p&&a&&a.length>0){const t=a.map(b).join(" ");h.s=t,e=!0}if(s){const t=[];s.forEach(((e,n)=>{const o=$(e);o&&t.push(`${n}=${o}`)}));const n=t.join(" ");n&&(h.c=n,e=!0)}e&&(k[n]=h)}})),t&&h.forEach(((e,t)=>{e||w("unconnected element",t.nodeName,"\n")})),{state:{refs:O,ctx:k,objs:S,subs:g},objs:p,funcs:c.Xe,resources:c._e,qrls:c.He,mode:f?"render":"listeners"}},Wn=(e,t)=>{const n=e.be,o=e.de;if(n&&o&&!so(o)&&t.Je.includes(n)){const n=ji(o)?.Ue,r=e.k;if(n)for(const e of n){if(0===e[0]&&e[1]===r)return void Kn(r,t);to(o,t,!1)}}},Fn=e=>({re:e,We:new Set,ze:new Set,Fe:0,Ae:[],Xe:[],_e:[],Je:[],He:[],De:[],Ne:[]}),Vn=(e,t)=>{const n=ht(e);t.Je.includes(n)||(t.Je.push(n),t.Fe++,8&n.fe?Bn(n,t,!0):t.De.push(n),t.Fe--)},Kn=(e,t)=>{const n=ht(e);if(n){if(t.Je.includes(n))return;t.Je.push(n),Bn(n,t,e)}},Bn=(e,t,n)=>{if(e.de&&!so(e.de)&&to(e.de,t,n),e.t&&to(e.t,t,n),e.le)for(const o of e.le)to(o,t,n);if(e.ue){const o=t.re.F.Ve;for(const r of e.ue)o.has(r)&&to(r,t,n)}if(n&&(Gn(e,t),e.$e))for(const n of e.$e)Gn(n,t)},Gn=(e,t)=>{for(;e;){if(e.ae){for(const n of e.ae.values())to(n,t,!0);if(!0===e.ae.get("_"))break}e=e.ve??e.be}},Yn=(e,t,n)=>{if(t.We.has(e))return;t.We.add(e);const r=e.Ue;N(r,"subs must be defined");for(const e of r){const r=e[0];if(r>0&&to(e[2],t,!0),!0===n){const n=e[1];o(n)&&l(n)?0===r&&Vn(n,t):to(n,t,!0)}}},Zn=Symbol(),eo=e=>e[Zn],to=(e,t,n)=>{if(null!==e){const s=typeof e;switch(s){case"function":case"object":{const i=t.We;if(i.has(e))return;if(i.add(e),wi(e))return t.ze.add(void 0),void t.Ae.push(e);const c=e,l=qi(e);if(l){if(e=l,i.has(e))return;if(i.add(e),Yn(ji(c),t,n),yi(c))return void t.ze.add(e)}if(li(e,t,n))return void t.ze.add(e);if(Q(e))return void t.Ne.push((r=e,r.then((e=>{const t={resolved:!0,value:e};return r[Zn]=t,e}),(e=>{const t={resolved:!1,value:e};return r[Zn]=t,e}))).then((e=>{to(e,t,n)})));if("object"===s){if(o(e))return;if(C(e))for(let o=0;o<e.length;o++)to(c[o],t,n);else if(q(e))for(const o of Object.keys(e))to(c[o],t,n)}break}}}var r;t.ze.add(e)},no=e=>{const t=ln(e);if(i(t)){const e=ht(t);if(e&&e.ie)return e}},oo=(e,t)=>{if(!j(e))return;if(e instanceof Ze)return ji(e);const n=t.M.get(e);return n?ji(n):void 0},ro=e=>{const t=ht(e);return t?t.ie:null},so=e=>0===Object.keys(e).length,io="0.100.0";var co;const lo="\x3c!--qkssr-f--\x3e";class uo{constructor(e){this.nodeType=e,this[co]=null,n(this)}}co=dt;const ao=async(e,o)=>{const r=o.containerTagName,s=yo(1).k,i=je(s,o.base??"/");i.J.locale=o.serverData?.locale;const c=new uo(9),l=xn(c,i),u=o.beforeContent??[],a={ke:{ae:[],Ke:!1,Be:"html"===r?u:[],we:o.serverData?.locale},Ge:void 0,Ye:void 0,Ze:void 0};n(a);let f=t?"ssr-dev":"ssr";o.containerAttributes["q:render"]&&(f=`${o.containerAttributes["q:render"]}-${f}`);const d={...o.containerAttributes,"q:container":"paused","q:version":io,"q:render":f,"q:base":o.base,"q:locale":o.serverData?.locale,children:"html"===r?[e]:[u,e]};"html"!==r&&(d.class="qc📦"+(d.class?" "+d.class:"")),i.J={url:o.url,...o.serverData},e=hr(r,d),i.X=new Set,await Promise.resolve().then((()=>fo(e,l,a,o.stream,i,o)))},fo=async(e,n,o,r,s,i)=>{const c=i.beforeClose;return await go(e,n,o,r,0,c?e=>{const t=c(o.ke.ae,s,o.ke.Ke);return So(t,n,o,e,0,void 0)}:void 0),t&&o.ke.Be.length>0&&p("Missing <head>. Global styles could not be rendered. Please render a <head> element at the root of the app"),n},ho=(e,t,n,o,r,s,i,c)=>{const l=e.props,u=l[ue];if(u)return t.t=u,bo(o,r,s,t,e,i,c);let a="\x3c!--qv"+mo(l);const f=he in l,d=null!=e.key?String(e.key):null;if(f&&(N(o.Le?.ie,"hostId must be defined for a slot"),a+=" q:sref="+o.Le.ie),null!=d&&(a+=" q:key="+d),a+="--\x3e",s.write(a),n)for(const e of n)$o(e.type,e.props,s);const h=xo(e.children,o,r,s,i);return J(h,(()=>{if(!f&&!c)return void s.write(po);let e;if(f){N(d,"key must be defined for a slot");const n=r.Ge?.[d];if(n){const[o,c]=r.Ye,l=kn(o);l.Ie=t,r.Ge[d]=void 0,e=So(n,l,c,s,i)}}return c&&(e=J(e,(()=>c(s)))),J(e,(()=>{s.write(po)}))}))},po="\x3c!--/qv--\x3e",mo=e=>{let t="";for(const n of Object.keys(e)){if("children"===n)continue;const o=e[n];null!=o&&(t+=" "+(""===o?n:n+"="+o))}return t},$o=(e,t,n)=>{if(n.write("<"+e+(e=>{let t="";for(const n of Object.keys(e)){if("dangerouslySetInnerHTML"===n)continue;const o=e[n];null!=o&&(t+=" "+(""===o?n:n+'="'+o+'"'))}return t})(t)+">"),Mo[e])return;const o=t.dangerouslySetInnerHTML;null!=o&&n.write(o),n.write(`</${e}>`)},bo=(e,t,n,o,r,s,i)=>{const c=r.props;return jo(e,o,c.props),J(Sn(e,o),(c=>{const l=o.k,u=c.rCtx,a=Ct(t.ke.we,l,void 0);a.B=[0,l],a.ge=u;const f={...t,Ge:wo(r.children,t),Ye:[e,t],Ze:a},d=[];if(o.pe){const e=4&s?t.ke.Be:d;for(const t of o.pe)e.push(hr("style",{[pe]:t.styleId,hidden:"",dangerouslySetInnerHTML:t.content}))}const h=On(e),p=o.ce?Dn(o.ce):void 0,m=hr(r.type,{[me]:p,[we]:h,children:c.node},r.key);return o.ie=h,t.ke.ae.push(o),ho(m,o,d,u,f,n,s,(n=>{if(2&o.fe){const r=yo(1),s=r.li;s.push(...o.li),o.fe&=-3,r.ie=On(e);const i={type:"placeholder",hidden:"","q:id":r.ie};t.ke.ae.push(r);const c=Re(s);for(const t of c){const n=Xo(t[0]);i[n]=ne(t[1],r),Oe(n,e.ke.re)}$o("script",i,n)}return i?J(vo(e,f,n),(()=>i(n))):vo(e,f,n)}))}))},vo=(e,t,n)=>{const o=t.Ge;if(o){const r=Object.keys(o).map((e=>{const t=o[e];if(t)return hr("q:template",{[fe]:e,hidden:"","aria-hidden":"true",children:t})}));return So(r,e,t,n,0,void 0)}},wo=(e,t)=>{const n=ko(e,t);if(null===n)return;const o={};for(const e of n){let t="";vr(e)&&(t=e.props[fe]??"");let n=o[t];n||(o[t]=n=[]),n.push(e)}return o},yo=e=>{const t=new uo(e);return mt(t)},go=(e,n,o,r,s,i)=>{const c=e.type,l=n.Le;if("string"==typeof c){const u=e.key,a=e.props,f=e.immutableProps,h=yo(1),m=h.k,$="head"===c;let b="<"+c,v=!1,w=!1,y="",g=null;if(d(m),t&&a.class&&a.className)throw new TypeError("Can only have one of class or className");if(f)for(const e of Object.keys(f)){let o=f[e];if(Ie(e)){Ne(h.li,e,o,void 0);continue}const r=Co(e);if(nt(o)&&(N(l,"Signals can not be used outside the root"),o=Mt(o,[1,m,o,l.k,r]),v=!0),"dangerouslySetInnerHTML"===e){g=o;continue}e.startsWith(Le)&&Oe(e.slice(Le.length),n.ke.re);const s=Oo(r,o);null!=s&&("class"===r?y=s:"value"===r&&"textarea"===c?g=_o(s):Jo(r)?t&&p("Attribute value is unsafe for SSR"):b+=" "+(""===o?r:r+'="'+Qo(s)+'"'))}for(const e of Object.keys(a)){let o=a[e];if("ref"===e){Ce(o,m),w=!0;continue}if(Ie(e)){Ne(h.li,e,o,void 0);continue}const r=Co(e);if(nt(o)&&(N(l,"Signals can not be used outside the root"),o=Mt(o,[2,l.k,o,m,r]),v=!0),"dangerouslySetInnerHTML"===e){g=o;continue}e.startsWith(Le)&&Oe(e.slice(Le.length),n.ke.re);const s=Oo(r,o);null!=s&&("class"===r?y=s:"value"===r&&"textarea"===c?g=_o(s):Jo(r)?t&&p("Attribute value is unsafe for SSR"):b+=" "+(""===o?r:r+'="'+Qo(s)+'"'))}const S=h.li;if(l){if(t&&"html"===c)throw x(29);if(l.ce?.length){const e=l.ce.join(" ");y=y?`${e} ${y}`:e}2&l.fe&&(S.push(...l.li),l.fe&=-3)}if(t){if(32&s&&!(512&s)&&!No[c])throw xr(`<${c}> can not be rendered because one of its ancestor is a <p> or a <pre>.\n\nThis goes against the HTML spec: https://html.spec.whatwg.org/multipage/dom.html#phrasing-content-2`,e);if("table"===c)s|=256;else{if(256&s&&!Io[c])throw xr(`The <table> element requires that its direct children to be '<tbody>', '<thead>', '<tfoot>' or '<caption>' instead, '<${c}>' was rendered.`,e);s&=-257}if("button"===c){if(128&s)throw xr(`<${c}> can not be rendered because one of its ancestor is already a <button>.\n\nThis goes against the HTML spec: https://html.spec.whatwg.org/multipage/dom.html#interactive-content`,e);s|=128}if("a"===c){if(64&s)throw xr(`<${c}> can not be rendered because one of its ancestor is already a <a>.\n\nThis goes against the HTML spec: https://html.spec.whatwg.org/multipage/dom.html#interactive-content`,e);s|=64}if("svg"!==c&&"math"!==c||(s|=512),1&s&&!Ro[c])throw xr(`<${c}> can not be rendered because it's not a valid children of the <head> element. https://html.spec.whatwg.org/multipage/dom.html#metadata-content`,e);if(4&s&&!Lo[c])throw xr(`<${c}> can not be rendered because it's not a valid direct children of the <html> element, only <head> and <body> are allowed.`,e);Po[c]&&(s|=32)}if($&&(s|=1),To[c]&&(s|=16),Eo[c]&&(s|=8),y&&(b+=' class="'+Qo(y)+'"'),S.length>0){const e=Re(S),t=0!=(16&s);for(const o of e){const e=t?Xo(o[0]):o[0];b+=" "+e+'="'+ne(o[1],h)+'"',Oe(e,n.ke.re)}}if(null!=u&&(b+=' q:key="'+Qo(u)+'"'),w||v||S.length>0){if(w||v||Do(S)){const e=On(n);b+=' q:id="'+e+'"',h.ie=e}o.ke.ae.push(h)}if(1&s&&(b+=" q:head"),b+=">",r.write(b),Mo[c])return;if(null!=g)return r.write(String(g)),void r.write(`</${c}>`);"html"===c?s|=4:s&=-5,2&e.flags&&(s|=1024);const k=So(e.children,n,o,r,s);return J(k,(()=>{if($){for(const e of o.ke.Be)$o(e.type,e.props,r);o.ke.Be.length=0}if(i)return J(i(r),(()=>{r.write(`</${c}>`)}));r.write(`</${c}>`)}))}if(c===zn){const t=yo(111);return t.be=n.Le,t.ve=n.Ie,l&&8&l.fe&&Uo(l,t),ho(e,t,void 0,n,o,r,s,i)}if(c===Rn)return void r.write(e.props.data);if(c===Hn)return(async(e,t,n,o,r)=>{o.write(lo);const s=e.props.children;let i;if(T(s)){const e=s({write(e){o.write(e),o.write(lo)}});if(Q(e))return e;i=e}else i=s;for await(const e of i)await So(e,t,n,o,r,void 0),o.write(lo)})(e,n,o,r,s);if(c===Qn&&!0===e.props.dynamic)return void(o.ke.Ke=!0);const u=kt(o.Ze,c,e.props,e.key,e.flags);return Pn(u,e)?go(hr(zn,{children:u},e.key),n,o,r,s,i):So(u,n,o,r,s,i)},So=(e,t,n,o,r,s)=>{if(null!=e&&"boolean"!=typeof e){if(!O(e)&&"number"!=typeof e){if(vr(e))return go(e,t,n,o,r,s);if(C(e))return xo(e,t,n,o,r);if(nt(e)){const s=8&r,i=t.Le?.k;let c;if(i){if(!s){const n=On(t);return c=Mt(e,1024&r?[3,"#"+n,e,"#"+n]:[4,i,e,"#"+n]),void o.write(`\x3c!--t=${n}--\x3e${_o(En(c))}\x3c!----\x3e`)}c=kt(n.Ze,(()=>e.value))}return void o.write(_o(En(c)))}return Q(e)?(o.write(lo),e.then((e=>So(e,t,n,o,r,s)))):void w("A unsupported value was passed to the JSX, skipping render. Value:",e)}o.write(_o(String(e)))}},xo=(e,t,n,o,r)=>{if(null==e)return;if(!C(e))return So(e,t,n,o,r);if(1===e.length)return So(e[0],t,n,o,r);if(0===e.length)return;let s=0;const i=[];return e.reduce(((e,c,l)=>{const u=[];i.push(u);const a=So(c,t,n,e?{write(e){s===l?o.write(e):u.push(e)}}:o,r),f=()=>{s++,i.length>s&&i[s].forEach((e=>o.write(e)))};return Q(a)&&e?Promise.all([a,e]).then(f):Q(a)?a.then(f):e?e.then(f):void s++}),void 0)},ko=(e,t)=>{if(null==e)return null;const n=qo(e,t),o=C(n)?n:[n];return 0===o.length?null:o},qo=(e,t)=>{if(null==e)return null;if(C(e))return e.flatMap((e=>qo(e,t)));if(vr(e)&&T(e.type)&&e.type!==Rn&&e.type!==Hn&&e.type!==zn){const n=kt(t.Ze,e.type,e.props,e.key,e.flags);return ko(n,t)}return e},jo=(e,t,n)=>{const o=Object.keys(n),r=ct();if(t.de=it(r,e.ke.re),0===o.length)return;const s=r[Xe]=n[Xe]??V;for(const e of o)"children"!==e&&e!==fe&&(nt(s[e])?r[We+e]=s[e]:r[e]=n[e])},Co=e=>"htmlFor"===e?"for":e,Oo=(e,t)=>"class"===e?jn(t):"style"===e?Cn(t):Mn(e)||"draggable"===e||"spellcheck"===e?null!=t?String(t):t:!1===t||null==t?null:!0===t?"":String(t),To={head:!0,style:!0,script:!0,link:!0,meta:!0},Eo={title:!0,style:!0,script:!0,noframes:!0,textarea:!0},Mo={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Po={p:!0,pre:!0},Lo={head:!0,body:!0},Io={tbody:!0,thead:!0,tfoot:!0,caption:!0,colgroup:!0},Ro={meta:!0,title:!0,link:!0,style:!0,script:!0,noscript:!0,template:!0,base:!0},No={a:!0,abbr:!0,area:!0,audio:!0,b:!0,bdi:!0,bdo:!0,br:!0,button:!0,canvas:!0,cite:!0,code:!0,command:!0,data:!0,datalist:!0,del:!0,dfn:!0,em:!0,embed:!0,i:!0,iframe:!0,img:!0,input:!0,ins:!0,itemprop:!0,kbd:!0,keygen:!0,label:!0,link:!0,map:!0,mark:!0,math:!0,meta:!0,meter:!0,noscript:!0,object:!0,option:!0,output:!0,picture:!0,progress:!0,q:!0,ruby:!0,s:!0,samp:!0,script:!0,select:!0,slot:!0,small:!0,span:!0,strong:!0,sub:!0,sup:!0,svg:!0,template:!0,textarea:!0,time:!0,u:!0,var:!0,video:!0,wbr:!0},zo=/[&<>]/g,Ao=/[&"]/g,_o=e=>e.replace(zo,(e=>{switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";default:return""}})),Qo=e=>e.replace(Ao,(e=>{switch(e){case"&":return"&amp;";case'"':return"&quot;";default:return""}})),Ho=/[>/="'\u0009\u000a\u000c\u0020]/,Jo=e=>Ho.test(e),Do=e=>e.some((e=>e[1].v&&e[1].v.length>0)),Uo=(e,t)=>{let n=e.$e;n||(e.$e=n=[]),n.includes(t)||n.push(t)},Xo=e=>"on:qvisible"===e?"on-document:qinit":e,Wo=(e,t,n)=>{const o=!(4&t.fe),r=t.k,s=e.ke.re;return s.N.delete(t),s.F.et(r),J(Sn(e,t),(s=>{const i=e.ke,c=s.rCtx,l=Ct(e.ke.we,r);if(i.Pe.add(r),l.B=[0,r],l.ge=c,o&&t.pe)for(const e of t.pe)Vt(i,e);const u=Go(s.node,l);return J(u,(e=>{const o=Bo(r,e),s=Fo(t);return J(Cr(c,s,o,"root",n),(()=>{t.me=o}))}))}))},Fo=e=>(e.me||(e.me=Ir(e.k)),e.me);class Vo{constructor(e,t,o,r,s,i){this.tt=e,this.de=t,this.nt=o,this.ot=r,this.fe=s,this.rt=i,this.st=null,this.it="",this.ct=null,this.ie=e+(i?":"+i:""),n(this)}}const Ko=(e,t)=>{const{key:n,type:o,props:r,children:s,flags:i,immutableProps:c}=e;let l="";if(O(o))l=o;else{if(o!==zn){if(T(o)){const s=kt(t,o,r,n,i);return Pn(s,e)?Ko(dr(zn,{children:s},0,n),t):Go(s,t)}throw x(25,o)}l=sn}let u=F;return null!=s?J(Go(s,t),(e=>(void 0!==e&&(u=C(e)?e:[e]),new Vo(l,r,c,u,i,n)))):new Vo(l,r,c,u,i,n)},Bo=(e,t)=>{const n=void 0===t?F:C(t)?t:[t],o=new Vo(":virtual",{},null,n,0,null);return o.st=e,o},Go=(e,t)=>{if(null!=e&&"boolean"!=typeof e){if(Yo(e)){const t=new Vo("#text",V,null,F,0,null);return t.it=String(e),t}if(vr(e))return Ko(e,t);if(nt(e)){const t=new Vo("#text",V,null,F,0,null);return t.ct=e,t}if(C(e)){const n=D(e.flatMap((e=>Go(e,t))));return J(n,(e=>e.flat(100).filter(X)))}return Q(e)?e.then((e=>Go(e,t))):e===Ln?new Vo(pr,V,null,F,0,null):void w("A unsupported value was passed to the JSX, skipping render. Value:",e)}},Yo=e=>O(e)||"number"==typeof e,Zo=e=>{"paused"===Se(e,$e)&&tr(e)},er=(e,t)=>{const n=JSON.parse(e);if("object"!=typeof n)return null;const{_objs:r,_entry:s}=n;if(void 0===r||void 0===s)return null;let c={},l={};if(o(t)&&i(t)){const e=Ot(t);e&&(l=qe(e),c=e.ownerDocument)}const u=ai(l,c);for(let e=0;e<r.length;e++){const t=r[e];O(t)&&(r[e]=t===Ks?void 0:u.prepare(t))}const a=e=>r[Ee(e)];for(const e of r)or(e,a,u);return a(s)},tr=e=>{if(!s(n=e)||!n.hasAttribute($e))return void w("Skipping hydration because parent element is not q:container");var n;const o=e._qwikjson_??(e=>{const t=_t(),n=e===t.documentElement?t.body:e,o=cr(n,"type");if(o){const e=o.firstChild.data;return JSON.parse(sr(e)||"{}")}})(e);if(e._qwikjson_=null,!o)return void w("Skipping hydration qwik/json metadata was not found.");const r=_t(),i=e===r.documentElement?r.body:e;if(t&&!cr(i,"type"))return void w("Skipping hydration qwik/json metadata was not found.");const c=ir(i),l=qe(e);rr(e,l);const u=new Map;let f=null,d=0;const h=r.createTreeWalker(e,128);for(;f=h.nextNode();){const e=f.data;if(0===d)if(e.startsWith("qv ")){const t=ar(e);t>=0&&u.set(t,f)}else if(e.startsWith("t=")){const t=e.slice(2),n=Ee(t);u.set(n,lr(f))}"cq"===e?d++:"/cq"===e&&d--}const p=0!==e.getElementsByClassName("qc📦").length;e.querySelectorAll("[q\\:id]").forEach((t=>{if(p&&t.closest("[q\\:container]")!==e)return;const n=Se(t,we);N(n,"resume: element missed q:id",t);const o=Ee(n);u.set(o,t)}));const m=ai(l,r),$=new Map,b=new Set,v=e=>(A("string"==typeof e&&e.length>0,"resume: id must be an non-empty string, got:",e),$.has(e)?$.get(e):g(e)),g=e=>{if(e.startsWith(ye)){const t=e.slice(ye.length),n=Ee(t);A(u.has(n),"missing element for id:",t);const o=u.get(n);if(N(o,"missing element for id:",t),a(o)){if(!o.isConnected)return void $.set(e,void 0);const t=an(o),n=new cn(o,t);return $.set(e,n),pt(n,l),n}return s(o)?($.set(e,o),pt(o,l),o):($.set(e,o),o)}if(e.startsWith("@")){const t=e.slice("@".length),n=Ee(t),o=c[n];return N(o,"missing inlined function for id:",t),o}const t=Ee(e),n=o.objs;A(n.length>t,"resume: index is out of bounds",e);let r=n[t];O(r)&&(r=r===Ks?void 0:m.prepare(r));let i=r;for(let t=e.length-1;t>=0;t--){const n=e[t],o=fi[n];if(!o)break;i=o(i,l)}return $.set(e,i),Yo(r)||b.has(t)||(b.add(t),nr(r,t,o.subs,v,l,m),or(r,v,m)),i};l.T=1e5,l.W={getObject:v,meta:o.ctx,refs:o.refs},ge(e,$e,"resumed"),y("Container resumed"),((e,t,n,o)=>{e&&"function"==typeof CustomEvent&&e.dispatchEvent(new CustomEvent("qresume",{detail:void 0,bubbles:!0,composed:!0}))})(e)},nr=(e,t,n,o,r,s)=>{const i=n[t];if(i){const t=[];let n=0;for(const e of i)if(e.startsWith("_"))n=parseInt(e.slice(1),10);else{const n=Ti(e,o);n&&t.push(n)}if(n>0&&lt(e,n),!s.subs(e,t)){const n=r.M.get(e);n?ji(n).lt(t):it(e,r,t)}}},or=(e,t,n)=>{if(!n.fill(e,t)&&e&&"object"==typeof e)if(C(e))for(let n=0;n<e.length;n++)e[n]=t(e[n]);else if(q(e))for(const n of Object.keys(e))e[n]=t(e[n])},rr=(e,t)=>{const n=e.ownerDocument.head;e.querySelectorAll("style[q\\:style]").forEach((e=>{t.A.add(Se(e,pe)),n.appendChild(e)}))},sr=e=>e.replace(/\\x3C(\/?script)/g,"<$1"),ir=e=>{const t=cr(e,"q:func");return t?.qFuncs??F},cr=(e,t)=>{let n=e.lastElementChild;for(;n;){if("SCRIPT"===n.tagName&&"qwik/json"===Se(n,t))return n;n=n.previousElementSibling}},lr=e=>{const t=e.nextSibling;if(u(t))return t;{const t=e.ownerDocument.createTextNode("");return e.parentElement.insertBefore(t,e),t}},ur=e=>{e.qwik={pause:()=>(async(e,n)=>{const i=_t(),c=i.documentElement,l=r(e)?c:e;if("paused"===Se(l,$e))throw x(21);const f=l===i.documentElement?i.body:l,d=qe(l),h=((e,t)=>{const n=[],o=t(e);void 0!==o&&n.push(o);const r=e.ownerDocument.createTreeWalker(e,129,{acceptNode(e){if(s(o=e)&&o.hasAttribute($e))return 2;var o;const r=t(e);return void 0!==r&&n.push(r),3}});for(;r.nextNode(););return n})(l,no);ge(l,$e,"paused");for(const e of h){const t=e.k,n=e.li;if(e.ce){const n=Dn(e.ce);n&&t.setAttribute(me,n)}if(e.ie&&t.setAttribute(we,e.ie),s(t)&&n.length>0){const o=Re(n);for(const n of o)t.setAttribute(n[0],ne(n[1],e))}}const p=await Xn(h,d,(e=>o(e)&&u(e)?((e,t)=>{const n=e.previousSibling;if(n&&a(n)&&n.data.startsWith("t="))return ye+n.data.slice(2);const o=e.ownerDocument,r=Te(t.T++),s=o.createComment(`t=${r}`),i=o.createComment(""),c=e.parentElement;return c.insertBefore(s,e),c.insertBefore(i,e.nextSibling),ye+r})(e,d):null)),m=i.createElement("script");ge(m,"type","qwik/json"),m.textContent=JSON.stringify(p.state,void 0,t?" ":void 0).replace(/<(\/?script)/g,"\\x3C$1"),f.appendChild(m);const $=Array.from(d.H,(e=>JSON.stringify(e))),b=i.createElement("script");return b.textContent=`window.qwikevents||=[];window.qwikevents.push(${$.join(", ")})`,f.appendChild(b),p})(e),state:qe(e)}},ar=e=>{const t=e.indexOf("q:id=");return t>0?Ee(e.slice(t+5)):-1},fr=(e,o,r,s,i,c,l)=>{const u=null==c?null:String(c),a=new mr(e,o??V,r,s,i,u);return t&&l&&(a.dev={stack:(new Error).stack,...l}),$r(a),n(a),a},dr=(e,o,r,s,i)=>{const c=null==s?null:String(s),l=o??V,u=new mr(e,l,null,l.children,r,c);return"string"==typeof e&&o&&delete o.children,t&&i&&(u.dev={stack:(new Error).stack,...i}),$r(u),n(u),u},hr=(e,o,r)=>{const s=null==r?null:String(r),i=Tt((()=>{const t=o.children;return"string"==typeof e&&delete o.children,t}));O(e)&&"className"in o&&(o.class=o.className,delete o.className,t&&v("jsx: `className` is deprecated. Use `class` instead."));const c=new mr(e,o,null,i,0,s);return $r(c),n(c),c},pr=":skipRender";class mr{constructor(e,t,n,o,r,s=null){this.type=e,this.props=t,this.immutableProps=n,this.children=o,this.flags=r,this.key=s}}const $r=e=>{const{type:n,props:o,immutableProps:r,children:s}=e;t&&kt(void 0,(()=>{if(o&&r){const e=Object.keys(o),t=Object.keys(r),n=e.filter((e=>t.includes(e)));n.length>0&&v(`JSX is receiving duplicate props (${n.join(", ")}). This is likely because you are spreading {...props}, make sure the props you are spreading are not already defined in the JSX.`)}const t=Xi(n);if(!O(n)&&!T(n))throw xr(`The <Type> of the JSX element must be either a string or a function. Instead, it's a "${typeof n}": ${String(n)}.`,e);if(s){const o=C(s)?s.flat():[s];if((O(n)||t)&&o.forEach((t=>{if(!wr(t)){const o=typeof t;let r="";throw"object"===o?r=t?.constructor?`it's an instance of "${t?.constructor.name}".`:`it's a object literal: ${br(t)} `:"function"===o?r+=`it's a function named "${t.name}".`:r=`it's a "${o}": ${String(t)}.`,xr(`One of the children of <${n}> is not an accepted value. JSX children must be either: string, boolean, number, <element>, Array, undefined/null, or a Promise/Signal. Instead, ${r}\n`,e)}})),T(n)||r){const e={};o.forEach((t=>{if(vr(t)&&null!=t.key){const n=String(t.type)+":"+t.key;if(e[n]){const e=xr("Multiple JSX sibling nodes with the same key.\nThis is likely caused by missing a custom key in a for loop",t);e&&(O(t.type),v(e))}else e[n]=!0}}))}}if(o)for(const n of Object.keys(o)){const r=o[n];if(n.endsWith("$")&&r&&!Li(r)&&!Array.isArray(r))throw xr(`The value passed in ${n}={...}> must be a QRL, instead you passed a "${typeof r}". Make sure your ${typeof r} is wrapped with $(...), so it can be serialized. Like this:\n$(${String(r)})`,e);"children"!==n&&t&&r&&pi(r,`The value of the JSX attribute "${n}" can not be serialized`)}O(n)&&("style"===n&&s&&v("jsx: Using <style>{content}</style> will escape the content, effectively breaking the CSS.\nIn order to disable content escaping use '<style dangerouslySetInnerHTML={content}/>'\n\nHowever, if the use case is to inject component styleContent, use 'useStyles$()' instead, it will be a lot more efficient.\nSee https://qwik.builder.io/docs/core/styles/#usestyles for more information."),"script"===n&&s&&v("jsx: Using <script>{content}<\/script> will escape the content, effectively breaking the inlined JS.\nIn order to disable content escaping use '<script dangerouslySetInnerHTML={content}/>'"))}))},br=e=>`{ ${Object.keys(e).map((e=>`"${e}"`)).join(", ")} }`,vr=e=>t?e instanceof mr||!!(j(e)&&"key"in e&&"props"in e&&"type"in e)&&(w('Duplicate implementations of "JSXNode" found'),!0):e instanceof mr,wr=e=>!e||e===Ln||!(!O(e)&&"number"!=typeof e&&"boolean"!=typeof e)||!!vr(e)||(C(e)?e.every(wr):nt(e)?wr(e.value):!!Q(e)),yr=e=>e.children,gr=(e,o,r,s,i,c)=>{const l=null==r?null:String(r),u=Tt((()=>{const t=o.children;return"string"==typeof e&&delete o.children,t}));O(e)&&"className"in o&&(o.class=o.className,delete o.className,t&&v("jsx: `className` is deprecated. Use `class` instead."));const a=new mr(e,o,null,u,0,l);return a.dev={stack:(new Error).stack,...i},$r(a),n(a),a},Sr=new Set,xr=(e,t)=>{const n=new Error(e);if(!t.dev)return n;const o=t.dev.fileName,r=`${e}${o}:${t.dev.lineNumber}:${t.dev.columnNumber}`;return Sr.has(r)?void 0:(Object.assign(n,{id:o,loc:{file:o,column:t.dev.columnNumber,line:t.dev.lineNumber}}),n.stack=`JSXError: ${e}\n${kr(t.dev.stack,1)}`,Sr.add(r),n)},kr=(e,t=0)=>e.split("\n").slice(t).filter((e=>!e.includes("/node_modules/@builder.io/qwik")&&!e.includes("(node:"))).join("\n"),qr="http://www.w3.org/2000/svg",jr=[],Cr=(e,t,n,o,r)=>{f(t.st);const s=n.ot;if(1===s.length&&s[0].tt===pr)return;const i=t.st;t.ot===jr&&"HEAD"===i.nodeName&&(o="head",r|=2);const c=Or(t,o);return c.length>0&&s.length>0?Tr(e,i,c,s,r):c.length>0&&0===s.length?Hr(e.ke,c,0,c.length-1):s.length>0?Qr(e,i,null,s,0,s.length-1,r):void 0},Or=(e,t)=>{const n=e.ot,o=e.st;return n===jr?e.ot=Pr(o,t):n},Tr=(e,t,n,o,r)=>{let s,i,c,l=0,u=0,a=n.length-1,f=n[0],d=n[a],h=o.length-1,p=o[0],m=o[h];const $=[],b=e.ke;for(;l<=a&&u<=h;)if(null==f)f=n[++l];else if(null==d)d=n[--a];else if(null==p)p=o[++u];else if(null==m)m=o[--h];else if(f.ie===p.ie)$.push(Ar(e,f,p,r)),f=n[++l],p=o[++u];else if(d.ie===m.ie)$.push(Ar(e,d,m,r)),d=n[--a],m=o[--h];else if(f.rt&&f.ie===m.ie)N(f.st,"oldStartVnode $elm$ must be defined"),N(d.st,"oldEndVnode $elm$ must be defined"),$.push(Ar(e,f,m,r)),Wt(b,t,f.st,d.st),f=n[++l],m=o[--h];else if(d.rt&&d.ie===p.ie)N(f.st,"oldStartVnode $elm$ must be defined"),N(d.st,"oldEndVnode $elm$ must be defined"),$.push(Ar(e,d,p,r)),Xt(b,t,d.st,f.st),d=n[--a],p=o[++u];else{if(void 0===s&&(s=ss(n,l,a)),i=s[p.rt],void 0===i){const n=Ur(e,p,r,$);Xt(b,t,n,f?.st)}else if(c=n[i],c.tt!==p.tt){const n=Ur(e,p,r,$);J(n,(e=>{Xt(b,t,e,f?.st)}))}else $.push(Ar(e,c,p,r)),n[i]=void 0,N(c.st,"elmToMove $elm$ must be defined"),Xt(b,t,c.st,f.st);p=o[++u]}if(u<=h){const n=null==o[h+1]?null:o[h+1].st;$.push(Qr(e,t,n,o,u,h,r))}let v=D($);return l<=a&&(v=J(v,(()=>{Hr(b,n,l,a)}))),v},Er=(e,t)=>{const n=l(e)?e.close:null,o=[];let r=e.firstChild;for(;(r=ln(r))&&(t(r)&&o.push(r),r=r.nextSibling,r!==n););return o},Mr=(e,t)=>{switch(t){case"root":return Er(e,zr);case"head":return Er(e,Rr);case"elements":return Er(e,c)}},Pr=(e,t)=>Mr(e,t).map(Lr),Lr=e=>s(e)?ht(e)?.me??Ir(e):Ir(e),Ir=e=>{if(i(e)){const t=new Vo(e.localName,{},null,jr,0,tn(e));return t.st=e,t}if(u(e)){const t=new Vo(e.nodeName,V,null,jr,0,null);return t.it=e.data,t.st=e,t}throw new Error("invalid node")},Rr=e=>{const t=e.nodeType;return 1===t?e.hasAttribute("q:head"):111===t},Nr=e=>"Q:TEMPLATE"===e.nodeName,zr=e=>{const t=e.nodeType;if(3===t||111===t)return!0;if(1!==t)return!1;const n=e.nodeName;return"Q:TEMPLATE"!==n&&("HEAD"!==n||e.hasAttribute("q:head"))},Ar=(e,n,o,r)=>{z(n.tt,o.tt,"old and new vnodes type must be the same"),z(n.rt,o.rt,"old and new vnodes key must be the same"),z(n.ie,o.ie,"old and new vnodes key must be the same");const s=n.st,i=o.tt,c=e.ke,l=e.Le;if(N(s,"while patching element must be defined"),N(l,"while patching current component must be defined"),o.st=s,"#text"===i){e.ke.Re.push(s);const t=o.ct;return t&&(o.it=En(Mt(t,[4,l.k,t,s]))),void Jt(c,s,"data",o.it)}f(s);const u=o.de,a=o.fe,h=pt(s,e.ke.re);if(i!==sn){let f=0!=(1&r);if(f||"svg"!==i||(r|=1,f=!0),u!==V){0==(1&a)&&(h.li.length=0);const e=n.de;o.de=e;const t=Object.keys(u);for(const n of t){let t=u[n];"ref"!==n?Ie(n)?is(c,h,n,t):(nt(t)&&(t=Mt(t,[1,l.k,t,s,n])),"class"===n?t=qn(t,l):"style"===n&&(t=Cn(t)),e[n]!==t&&(e[n]=t,Gr(c,s,n,t,f))):(d(s),Ce(t,s))}}if(2&a)return;if(f&&"foreignObject"===i&&(r&=-2),void 0!==u[Kr])return void(t&&o.ot.length>0&&w("Node can not have children when innerHTML is set"));if("textarea"===i)return;return Cr(e,n,o,"root",r)}if(ue in u){const t=u.props;Zr(h,e,t);let n=!!(1&h.fe);return n||h.t||h.k.hasAttribute(we)||(Tn(e,h),h.t=t[ue],Ni(h.t),n=!0),n?J(Wo(e,h,r),(()=>_r(e,h,o,r))):_r(e,h,o,r)}return he in u?(N(l.he,"current component slots must be a defined array"),void l.he.push(o)):2&a?void 0:Cr(e,n,o,"root",r)},_r=(e,t,n,o)=>{if(2&n.fe)return;const r=n.ot,s=e.ke,i=(e=>{const t={};for(const n of e){const e=Dr(n);(t[e]??(t[e]=new Vo(sn,{[he]:""},null,[],0,e))).ot.push(n)}return t})(r),c=Xr(t);for(const e of Object.keys(c.slots))if(!i[e]){const t=c.slots[e],n=Pr(t,"root");if(n.length>0){const e=ht(t);e&&e.me&&(e.me.ot=[]),Hr(s,n,0,n.length-1)}}for(const e of Object.keys(c.templates)){const t=c.templates[e];t&&!i[e]&&(c.templates[e]=void 0,Gt(s,t))}return D(Object.keys(i).map((n=>{const r=i[n],l=Jr(s,c,t,n,e.ke.re),u=Fo(l),a=kn(e);a.Ie=l,l.me=r,r.st=l.k;const f=s.Me.findIndex((e=>e[0]===l.k));return f>=0&&s.Me.splice(f,1),Cr(a,u,r,"root",o)})))},Qr=(e,t,n,o,r,s,i)=>{const c=[];for(;r<=s;++r){const s=o[r];N(s,"render: node must be defined at index",r,o);const l=Ur(e,s,i,c);Xt(e.ke,t,l,n)}return U(c)},Hr=(e,t,n,o)=>{for(;n<=o;++n){const o=t[n];o&&(N(o.st,"vnode elm must be defined"),Gt(e,o.st))}},Jr=(e,t,n,o,r)=>{const s=t.slots[o];if(s)return pt(s,r);const i=t.templates[o];if(i)return pt(i,r);const c=Zt(e.Ee,o),l=mt(c);return l.be=n,((e,t,n)=>{e.qe.push({je:Bt,ne:[t,n]})})(e,n.k,c),t.templates[o]=c,l},Dr=e=>e.de[fe]??"",Ur=(e,n,o,r)=>{const s=n.tt,i=e.ke.Ee,c=e.Le;if("#text"===s){const e=n.ct,t=i.createTextNode(n.it);if(e){N(c,"signals can not be used outside components");const r=4&o?[3,t,e,t]:[4,c.k,e,t];t.data=n.it=En(Mt(e,r))}return n.st=t}let l,u=!!(1&o);u||"svg"!==s||(o|=1,u=!0);const a=s===sn,f=n.de,d=e.ke;a?l=(e=>{const t=e.createComment("qv "),n=e.createComment("/qv");return new cn(t,n)})(i):"head"===s?(l=i.head,o|=2):(l=Ut(i,s,u),o&=-3),2&n.fe&&(o|=4),n.st=l;const h=mt(l);if(h.be=e.Le,h.ve=e.Ie,a){if(ue in f){const s=f[ue];Ni(s);const i=e.ke.re,c=ct(),u=i.F.K(),a=new Proxy(c,new at(i,u)),p=f.props;if(i.M.set(c,a),h.de=a,p!==V){const e=Object.keys(p),t=c[Xe]=p[Xe]??V;for(const n of e)if("children"!==n&&n!==fe){const e=t[n];nt(e)?c[We+n]=e:c[n]=p[n]}}if(Tn(e,h),t){const e=s.o;e&&ge(l,"data-qrl",e)}h.t=s;const m=J(Wo(e,h,o),(()=>{let t=n.ot;if(0===t.length)return;1===t.length&&t[0].tt===pr&&(t=t[0].ot);const r=Xr(h),s=[];for(const n of t){const t=Jr(d,r,h,Dr(n),d.re),i=kn(e);i.Ie=t;const c=Ur(i,n,o,s);N(n.st,"vnode elm must be defined"),z(c,n.st,"vnode elm must be defined"),Ft(d,t.k,c)}return U(s)}));return Q(m)&&r.push(m),l}he in f&&(N(c,"slot can only be used inside component"),N(c.he,"current component slots must be a defined array"),p=l,null!==(m=n.rt)&&ge(p,"q:key",m),ge(l,de,c.ie),ge(l,he,""),c.he.push(n),d.Me.push([l,c.k]))}else{if(n.nt&&Yr(d,h,c,n.nt,u,!0),f!==V&&(h.me=n,n.de=Yr(d,h,c,f,u,!1)),u&&"foreignObject"===s&&(u=!1,o&=-2),c){const e=c.ce;e&&e.forEach((e=>{l.classList.add(e)})),2&c.fe&&(h.li.push(...c.li),c.fe&=-3)}if(void 0!==f[Kr])return t&&n.ot.length>0&&w("Node can not have children when innerHTML is set"),l;u&&"foreignObject"===s&&(u=!1,o&=-2)}var p,m;let $=n.ot;if(0===$.length)return l;1===$.length&&$[0].tt===pr&&($=$[0].ot);const b=$.map((t=>Ur(e,t,o,r)));for(const e of b)ts(l,e);return l},Xr=e=>{const t=(e=>e.he||(N(e.k.parentElement,"component should be already attached to the dom"),e.he=Wr(e)))(e),n={},o={},r=Array.from(e.k.childNodes).filter(Nr);for(const e of t)f(e.st),n[e.rt??""]=e.st;for(const e of r)o[Se(e,fe)??""]=e;return{slots:n,templates:o}},Wr=e=>{const t=e.k.parentElement;return N(t,"component should be already attached to the dom"),((e,t,n)=>{const o=((e,t,n)=>e.ownerDocument.createTreeWalker(e,128,{acceptNode(e){const o=un(e);return o&&Se(o,t)===n?1:2}}))(e,t,n),r=[];let s=null;for(;s=o.nextNode();)r.push(un(s));return r})(t,de,e.ie).map(Ir)},Fr=(e,t,n,o)=>(n in t&&t[n]!==o&&Jt(e,t,n,o),!0),Vr=(e,t,n,o)=>(Qt(e,t,n.toLowerCase(),o),!0),Kr="dangerouslySetInnerHTML",Br={style:(e,t,n,o)=>(Jt(e,t.style,"cssText",o),!0),class:(e,t,n,o)=>(A(null==o||"string"==typeof o,"class newValue must be either nullish or string",o),t.namespaceURI===qr?Qt(e,t,"class",o):Jt(e,t,"className",o),!0),value:Fr,checked:Fr,href:Vr,list:Vr,form:Vr,tabIndex:Vr,download:Vr,[Kr]:(e,t,n,o)=>(Kr in t?Jt(e,t,Kr,o):"innerHTML"in t&&Jt(e,t,"innerHTML",o),!0),innerHTML:()=>!0},Gr=(e,t,n,o,r)=>{if(Mn(n))return void Qt(e,t,n,null!=o?String(o):o);const s=Br[n];s&&s(e,t,n,o)||(r||!(n in t)?(n.startsWith(Le)&&Oe(n.slice(Le.length),e.re),Qt(e,t,n,o)):Jt(e,t,n,o))},Yr=(e,n,o,r,s,i)=>{const c={},l=n.k,u=Object.keys(r);for(const a of u){let u=r[a];if("ref"!==a)if(Ie(a))is(e,n,a,u);else{if(nt(u)&&(N(o,"Signals can only be used in components"),u=Mt(u,i?[1,l,u,o.k,a]:[2,o.k,u,l,a])),"class"===a){if(t&&c.class)throw new TypeError("Can only provide one of class or className");if(u=qn(u,o),!u)continue}else"style"===a&&(u=Cn(u));c[a]=u,Gr(e,l,a,u,s)}else d(l),Ce(u,l)}return c},Zr=(e,t,n)=>{let o=e.de;if(o||(e.de=o=it(ct(),t.ke.re)),n===V)return;const r=Object.keys(n),s=ji(o);N(s,"props have to be a proxy, but it is not",o);const i=qi(o);N(i,"props have to be a proxy, but it is not",o);const c=i[Xe]=n[Xe]??V;for(const e of r)if("children"!==e&&e!==fe&&!c[e]){const t=n[e];i[e]!==t&&(i[e]=t,s.ee(e))}},es=(e,t,n,o)=>{if(n.et(e),i(e)){if(o&&e.hasAttribute(he))return void t.Oe.push(e);const r=ht(e);r&&((e,t)=>{e.ue?.forEach((e=>{t.et(e),zs(e)})),e.t=null,e.le=null,e.ue=null})(r,n);const s=l(e)?e.close:null;let i=e.firstChild;for(;(i=ln(i))&&(es(i,t,n,!0),i=i.nextSibling,i!==s););}},ts=(e,t)=>{l(t)?t.appendTo(e):e.appendChild(t)},ns=(e,t)=>{l(t)?t.remove():e.removeChild(t)},os=(e,t,n)=>{l(t)?t.insertBeforeTo(e,fn(n)?.nextSibling):e.insertBefore(t,fn(n)?.nextSibling)},rs=(e,t,n)=>{l(t)?t.insertBeforeTo(e,fn(n)):e.insertBefore(t,fn(n))},ss=(e,t,n)=>{const o={};for(let r=t;r<=n;++r){const t=e[r].rt;null!=t&&(o[t]=r)}return o},is=(e,t,n,o)=>{const r=e.re,s=Ne(t.li,n,o,r.O);n.startsWith("on")||Qt(e,t.k,s,""),Oe(s)},cs=()=>{const e=gt();let t=e.xe;if(t)Ni(t),N(t.v,"invoke: qrl $captureRef$ must be defined inside useLexicalScope()",t);else{const n=e.k;N(n,"invoke: element must be defined inside useLexicalScope()",e);const o=Ot(n);N(o,"invoke: cant find parent q:container of",n),t=oe(decodeURIComponent(String(e.Se)),o),Ni(t),Zo(o);const r=pt(n,qe(o));ie(t,r)}return t.v},ls=(e,t)=>{if(0===e[0]){const n=e[1];Qs(n)?fs(n,t):us(n,t)}else as(e,t)},us=(e,t)=>{Zo(t.O);const n=pt(e,t);N(n.t,"render: notified host element must have a defined $renderQrl$",n),1&n.fe||(n.fe|=1,void 0!==t.X?t.N.add(n):(t.R.add(n),ds(t)))},as=(e,t)=>{const n=void 0!==t.X;t.P.add(e),n||ds(t)},fs=(e,t)=>{e.fe&ks||(e.fe|=ks,void 0!==t.X?t.I.add(e):(t.L.add(e),ds(t)))},ds=e=>(void 0===e.U&&(e.U=R().nextTick((()=>ps(e)))),e.U),hs=()=>{const[e]=cs();fs(e,qe(Ot(e.ut)))},ps=async e=>{const n=_t(e.O);try{const o=xn(n,e),r=o.ke,s=e.X=new Set(e.R);e.R.clear(),await bs(e,o),e.N.forEach((e=>{s.add(e)})),e.N.clear();const i=Array.from(e.P);e.P.clear();const c=Array.from(s);ws(c);for(const e of c){const n=e.k;if(!r.Pe.has(n)&&e.t){A(n.isConnected,"element must be connected to the dom"),r.Te.push(e);try{await Wo(o,e,ms(n.parentElement))}catch(e){if(t)throw e;p(e)}}}return i.forEach((e=>{((e,t)=>{try{const n=t[0];switch(n){case 1:case 2:{let o,r;1===n?(o=t[1],r=t[3]):(o=t[3],r=t[1]);const s=ht(o);if(null==s)return;const i=t[4],c=o.namespaceURI===qr;let l=t[2].value;"class"===i?l=qn(l,ht(r)):"style"===i&&(l=Cn(l));const u=Fo(s);if(u.de[i]===l)return;return u.de[i]=l,Gr(e,o,i,l,c)}case 3:case 4:{const n=t[3];if(!e.Re.includes(n)){const o=t[2].value;return Jt(e,n,"data",En(o))}}}}catch(e){}})(r,e)})),r.qe.push(...r.Ce),0===r.qe.length?(on(r),void await $s(e,o)):((({ke:e})=>{en(e)})(o),on(r),$s(e,o))}catch(e){p(e)}},ms=e=>{let t=0;return e&&(e.namespaceURI===qr&&(t|=1),"HEAD"===e.tagName&&(t|=2)),t},$s=async(e,t)=>{const n=t.ke.Pe;await vs(e,t,((e,t)=>0!=(e.fe&gs)&&(!t||n.has(e.ut)))),e.N.forEach((t=>{e.R.add(t)})),e.N.clear(),e.X=void 0,e.U=void 0,e.R.size+e.L.size+e.P.size>0&&(e.U=ps(e))},bs=async(e,t)=>{const n=e.O,o=[],r=[],s=e=>0!=(e.fe&Ss),i=e=>0!=(e.fe&xs);e.L.forEach((t=>{s(t)&&(r.push(J(t.xe.ft(n),(()=>t))),e.L.delete(t)),i(t)&&(o.push(J(t.xe.ft(n),(()=>t))),e.L.delete(t))}));do{if(e.I.forEach((t=>{s(t)?r.push(J(t.xe.ft(n),(()=>t))):i(t)?o.push(J(t.xe.ft(n),(()=>t))):e.L.add(t)})),e.I.clear(),r.length>0){const n=await Promise.all(r);ys(n),await Promise.all(n.map((n=>Ps(n,e,t)))),r.length=0}}while(e.I.size>0);if(o.length>0){const n=await Promise.all(o);ys(n),n.forEach((n=>Ps(n,e,t)))}},vs=async(e,t,n)=>{const o=[],r=e.O;e.L.forEach((t=>{n(t,!1)&&(o.push(J(t.xe.ft(r),(()=>t))),e.L.delete(t))}));do{if(e.I.forEach((t=>{n(t,!0)?o.push(J(t.xe.ft(r),(()=>t))):e.L.add(t)})),e.I.clear(),o.length>0){const n=await Promise.all(o);ys(n);for(const o of n)await Ps(o,e,t);o.length=0}}while(e.I.size>0)},ws=e=>{e.sort(((e,t)=>2&e.k.compareDocumentPosition(fn(t.k))?1:-1))},ys=e=>{e.sort(((e,t)=>e.ut===t.ut?e.dt<t.dt?-1:1:0!=(2&e.ut.compareDocumentPosition(fn(t.ut)))?1:-1))},gs=1,Ss=2,xs=4,ks=16,qs=(e,t)=>{const{get:n,set:o,iCtx:r,i:s,elCtx:i}=At();if(n)return;Ni(e);const c=r.ge.ke.re,l=new Hs(ks|Ss,s,i.k,e,void 0);o(!0),e.ft(c.O),i.ue||(i.ue=[]),i.ue.push(l),qt(r,(()=>Is(l,c,r.ge)))},js=e=>{const{get:t,set:n,iCtx:o,i:r,elCtx:s}=At();if(t)return t;Ni(e);const i=o.ge.ke.re,c=Ke(void 0,i,3,void 0),l=new Hs(ks|Ss|8,r,s.k,e,c);return e.ft(i.O),s.ue||(s.ue=[]),s.ue.push(l),qt(o,(()=>Rs(l,i,o.ge))),n(c)},Cs=e(js),Os=/*#__PURE__*/e(qs),Ts=(e,t)=>{const{get:n,set:o,i:r,iCtx:s,elCtx:i}=At(),c=t?.strategy??"intersection-observer";if(n)return;Ni(e);const l=new Hs(gs,r,i.k,e,void 0),u=s.ge.ke.re;i.ue||(i.ue=[]),i.ue.push(l),o(l),As(l,c),e.ft(u.O),fs(l,u)},Es=/*#__PURE__*/e(Ts),Ms=e=>0!=(e.fe&xs),Ps=async(e,t,n)=>(z(!!(e.fe&ks),!0,"Resource is not dirty",e),Ms(e)?Ls(e,t,n):(e=>0!=(8&e.fe))(e)?Rs(e,t,n):Is(e,t,n)),Ls=(e,t,n,o)=>{e.fe&=~ks,Ns(e);const r=e.ut,s=Ct(n.ke.we,r,void 0,"WatchEvent"),{F:i}=t,c=e.xe.getFn(s,(()=>{i.et(e)})),l=[],u=e.Qe;N(u,'useResource: when running a resource, "watch.r" must be a defined.',e);const a=ki(u),f={track:(t,n)=>{if(T(t)){const n=Ct();return n.B=[0,e],kt(n,t)}const o=ji(t);return o?o.G([0,e],n):$(k(26),t),n?t[n]:nt(t)?t.value:t},cleanup(e){l.push(e)},cache(e){let t=0;t="immutable"===e?1/0:e,u._cache=t},previous:a._resolved};let d,h,p=!1;const m=(e,t)=>!p&&(p=!0,e?(p=!0,u.loading=!1,u._state="resolved",u._resolved=t,u._error=void 0,d(t)):(p=!0,u.loading=!1,u._state="rejected",u._error=t,h(t)),!0);kt(s,(()=>{u._state="pending",u.loading=!0,u.value=new Promise(((e,t)=>{d=e,h=t}))})),e.ht=gi((()=>{p=!0,l.forEach((e=>e()))}));const b=H((()=>J(o,(()=>c(f)))),(e=>{m(!0,e)}),(e=>{m(!1,e)})),v=a._timeout;return v>0?Promise.race([b,W(v).then((()=>{m(!1,new Error("timeout"))&&Ns(e)}))]):b},Is=(e,t,n)=>{e.fe&=~ks,Ns(e);const o=e.ut,r=Ct(n.ke.we,o,void 0,"WatchEvent"),{F:s}=t,i=e.xe.getFn(r,(()=>{s.et(e)})),c=[];e.ht=gi((()=>{c.forEach((e=>e()))}));const l={track:(t,n)=>{if(T(t)){const n=Ct();return n.B=[0,e],kt(n,t)}const o=ji(t);return o?o.G([0,e],n):$(k(26),t),n?t[n]:t},cleanup(e){c.push(e)}};return H((()=>i(l)),(e=>{T(e)&&c.push(e)}),(e=>{yn(e,o,n)}))},Rs=(e,n,o)=>{!function(e){if(t&&!nt(e))throw new Error("Not a Signal")}(e.Qe),e.fe&=~ks,Ns(e);const r=e.ut,s=Ct(o.ke.we,r,void 0,"ComputedEvent");s.B=[0,e];const{F:i}=n,c=e.xe.getFn(s,(()=>{i.et(e)}));return H(c,(t=>Tt((()=>{const n=e.Qe;n[Be]&=-3,n.untrackedValue=t,n[Ue].ee()}))),(e=>{yn(e,r,o)}))},Ns=e=>{const t=e.ht;if(t){e.ht=void 0;try{t()}catch(e){p(e)}}},zs=e=>{32&e.fe?(e.fe&=-33,(0,e.xe)()):Ns(e)},As=(e,t)=>{"visible"===t||"intersection-observer"===t?It("qvisible",_s(e)):"load"===t||"document-ready"===t?Rt("qinit",_s(e)):"idle"!==t&&"document-idle"!==t||Rt("qidle",_s(e))},_s=e=>{const t=e.xe;return Ii(t.l,"_hW",hs,null,null,[e],t.o)},Qs=e=>j(e)&&e instanceof Hs;class Hs{constructor(e,t,n,o,r){this.fe=e,this.dt=t,this.ut=n,this.xe=o,this.Qe=r}}const Js=(e,t)=>{const{get:n,set:o,i:r,iCtx:s,elCtx:i}=At();if(null!=n)return n;Ni(e);const c=s.ge.ke.re,l=Ws(c,t),u=i.k,a=new Hs(ks|xs,r,u,e,l),f=Promise.all(s.ye.slice());return Ls(a,c,s.ge,f),i.ue||(i.ue=[]),i.ue.push(a),o(l),l},Ds=(e,t)=>Js(Hi(e),t),Us=e=>{const t=e.value;let n;if(Fs(t)){if(e.onRejected&&(t.value.catch((()=>{})),"rejected"===t._state))return e.onRejected(t._error);if(e.onPending){const n=t._state;if("resolved"===n)return e.onResolved(t._resolved);if("pending"===n)return e.onPending();if("rejected"===n)throw t._error}if(void 0!==Tt((()=>t._resolved)))return e.onResolved(t._resolved);n=t.value}else if(t instanceof Promise)n=t;else{if(!nt(t))return e.onResolved(t);n=Promise.resolve(t.value)}return hr(yr,{children:n.then(xt(e.onResolved),xt(e.onRejected))})},Xs=e=>({__brand:"resource",value:void 0,loading:!0,_resolved:void 0,_error:void 0,_state:"pending",_timeout:e?.timeout??-1,_cache:0}),Ws=(e,t,n)=>{const o=Xs(t);return o.value=n,it(o,e,void 0)},Fs=e=>j(e)&&"resource"===e.__brand,Vs=e=>dr(zn,{[he]:""},0,e.name??""),Ks="",Bs={prefix:"",test:e=>Li(e),collect:(e,t,n)=>{if(e.v)for(const o of e.v)to(o,t,n);0===t.Fe&&t.He.push(e)},serialize:(e,t)=>te(e,{g:t}),prepare:(e,t)=>oe(e,t.O),fill:(e,t)=>{e.$&&e.$.length>0&&(e.v=e.$.map(t),e.$=null)}},Gs={prefix:"",test:e=>Qs(e),collect:(e,t,n)=>{to(e.xe,t,n),e.Qe&&to(e.Qe,t,n)},serialize:(e,t)=>((e,t)=>{let n=`${Te(e.fe)} ${Te(e.dt)} ${t(e.xe)} ${t(e.ut)}`;return e.Qe&&(n+=` ${t(e.Qe)}`),n})(e,t),prepare:e=>(e=>{const[t,n,o,r,s]=e.split(" ");return new Hs(Ee(t),Ee(n),r,o,s)})(e),fill:(e,t)=>{e.ut=t(e.ut),e.xe=t(e.xe),e.Qe&&(e.Qe=t(e.Qe))}},Ys={prefix:"",test:e=>Fs(e),collect:(e,t,n)=>{to(e.value,t,n),to(e._resolved,t,n)},serialize:(e,t)=>((e,t)=>{const n=e._state;return"resolved"===n?`0 ${t(e._resolved)}`:"pending"===n?"1":`2 ${t(e._error)}`})(e,t),prepare:e=>(e=>{const[t,n]=e.split(" "),o=Xs(void 0);return o.value=Promise.resolve(),"0"===t?(o._state="resolved",o._resolved=n,o.loading=!1):"1"===t?(o._state="pending",o.value=new Promise((()=>{})),o.loading=!0):"2"===t&&(o._state="rejected",o._error=n,o.loading=!1),o})(e),fill:(e,t)=>{if("resolved"===e._state)e._resolved=t(e._resolved),e.value=Promise.resolve(e._resolved);else if("rejected"===e._state){const n=Promise.reject(e._error);n.catch((()=>null)),e._error=t(e._error),e.value=n}}},Zs={prefix:"",test:e=>e instanceof URL,serialize:e=>e.href,prepare:e=>new URL(e),fill:void 0},ei={prefix:"",test:e=>e instanceof Date,serialize:e=>e.toISOString(),prepare:e=>new Date(e),fill:void 0},ti={prefix:"",test:e=>e instanceof RegExp,serialize:e=>`${e.flags} ${e.source}`,prepare:e=>{const t=e.indexOf(" "),n=e.slice(t+1),o=e.slice(0,t);return new RegExp(n,o)},fill:void 0},ni={prefix:"",test:e=>e instanceof Error,serialize:e=>e.message,prepare:e=>{const t=new Error(e);return t.stack=void 0,t},fill:void 0},oi={prefix:"",test:e=>r(e),serialize:void 0,prepare:(e,t,n)=>n,fill:void 0},ri=Symbol("serializable-data"),si={prefix:"",test:e=>Xi(e),serialize:(e,t)=>{const[n]=e[ri];return te(n,{g:t})},prepare:(e,t)=>{const n=oe(e,t.O);return Ui(n)},fill:(e,t)=>{const[n]=e[ri];n.$&&n.$.length>0&&(n.v=n.$.map(t),n.$=null)}},ii=[Bs,{prefix:"",test:e=>e instanceof Ze,collect:(e,t,n)=>(to(e.untrackedValue,t,n),!0===n&&Yn(e[Ue],t,n),e),serialize:(e,t)=>t(e.untrackedValue),prepare:(e,t)=>new Ze(e,t?.F?.K(),0),subs:(e,t)=>{e[Ue].lt(t)},fill:(e,t)=>{e.untrackedValue=t(e.untrackedValue)}},{prefix:"",test:e=>e instanceof tt,collect(e,t,n){if(to(e.ref,t,n),yi(e.ref)){const o=ji(e.ref);di(t.re.F,o,n)&&to(e.ref[e.prop],t,n)}return e},serialize:(e,t)=>`${t(e.ref)} ${e.prop}`,prepare:e=>{const[t,n]=e.split(" ");return new tt(t,n)},fill:(e,t)=>{e.ref=t(e.ref)}},Gs,Ys,Zs,ei,ti,ni,oi,si,{prefix:"",test:e=>e instanceof et,collect:(e,t,n)=>{if(e.ne)for(const o of e.ne)to(o,t,n)},serialize:(e,t,n)=>{const o=(e=>{const t="null";return N(t,"If qSerialize is true then fnStr must be provided."),`(${e.ne.map(((e,t)=>`p${t}`)).join(",")})=>(${t})`})(e);let r=n.Xe.indexOf(o);return r<0&&(n.Xe.push(o),r=n.Xe.length-1),e.ne.map(t).join(" ")+" @"+Te(r)},prepare:e=>{const t=e.split(" "),n=t.slice(0,-1),o=t[t.length-1];return new et(o,n,o)},fill:(e,n)=>{!function(e,n,...o){if(t){if("string"==typeof e)return;throw $("fn.$func$ should be a string",...o)}}(e.te),e.te=n(e.te),e.ne=e.ne.map(n)}},{prefix:"",test:e=>"number"==typeof e,serialize:e=>String(e),prepare:e=>Number(e),fill:void 0},{prefix:"",test:e=>e instanceof URLSearchParams,serialize:e=>e.toString(),prepare:e=>new URLSearchParams(e),fill:void 0},{prefix:"",test:e=>"undefined"!=typeof FormData&&e instanceof globalThis.FormData,serialize:e=>{const t=[];return e.forEach(((e,n)=>{"string"==typeof e?t.push([n,e]):t.push([n,e.name])})),JSON.stringify(t)},prepare:e=>{const t=JSON.parse(e),n=new FormData;for(const[e,o]of t)n.append(e,o);return n},fill:void 0},{prefix:"",test:e=>vr(e),collect:(e,t,n)=>{to(e.children,t,n),to(e.props,t,n),to(e.immutableProps,t,n);let o=e.type;o===Vs?o=":slot":o===yr&&(o=":fragment"),to(o,t,n)},serialize:(e,t)=>{let n=e.type;return n===Vs?n=":slot":n===yr&&(n=":fragment"),`${t(n)} ${t(e.props)} ${t(e.immutableProps)} ${t(e.children)} ${e.flags}`},prepare:e=>{const[t,n,o,r,s]=e.split(" ");return new mr(t,n,o,r,parseInt(s,10))},fill:(e,t)=>{e.type=hi(t(e.type)),e.props=t(e.props),e.immutableProps=t(e.immutableProps),e.children=t(e.children)}}],ci=/*#__PURE__*/ii.filter((e=>e.collect)),li=(e,t,n)=>{for(const o of ci)if(o.test(e))return o.collect(e,t,n),!0;return!1},ui=(e,t,n,o)=>{for(const r of ii)if(r.test(e)){let s=r.prefix;return r.serialize&&(s+=r.serialize(e,t,n,o)),s}},ai=(e,t)=>{const n=new Map,o=new Map;return{prepare(r){for(const s of ii){const i=s.prefix;if(r.startsWith(i)){const c=s.prepare(r.slice(i.length),e,t);return s.fill&&n.set(c,s),s.subs&&o.set(c,s),c}}return r},subs(t,n){const r=o.get(t);return!!r&&(r.subs(t,n,e),!0)},fill(t,o){const r=n.get(t);return!!r&&(r.fill(t,o,e),!0)}}},fi={"!":(e,t)=>t.M.get(e)??st(e,t),"~":e=>Promise.resolve(e),_:e=>Promise.reject(e)},di=(e,t,n)=>{if("boolean"==typeof n)return n;const o=e.Ve.get(n);return!!(o&&o.length>0)&&(1!==o.length||o[0]!==t)},hi=e=>":slot"===e?Vs:":fragment"===e?yr:e,pi=(e,t)=>{const n=new Set;return mi(e,n,"_",t)},mi=(e,t,n,r)=>{const s=ki(e);if(null==s)return e;if(vi(s)){if(t.has(s))return e;if(t.add(s),(e=>{for(const t of ii)if(t.test(e))return!0;return!1})(s))return e;const i=typeof s;switch(i){case"object":if(Q(s))return e;if(o(s))return e;if(C(s)){let o=0;return s.forEach(((e,r)=>{if(r!==o)throw x(3,s);mi(e,t,n+"["+r+"]"),o=r+1})),e}if(q(s)){for(const[e,o]of Object.entries(s))mi(o,t,n+"."+e);return e}break;case"boolean":case"string":case"number":return e}let c="";if(c=r||"Value cannot be serialized","_"!==n&&(c+=` in ${n},`),"object"===i)c+=` because it's an instance of "${e?.constructor.name}". You might need to use 'noSerialize()' or use an object literal instead. Check out https://qwik.builder.io/docs/advanced/dollar/`;else if("function"===i){const t=e.name;c+=` because it's a function named "${t}". You might need to convert it to a QRL using $(fn):\n\nconst ${t} = $(${String(e)});\n\nPlease check out https://qwik.builder.io/docs/advanced/qrl/ for more information.`}throw console.error("Trying to serialize",e),m(c)}return e},$i=/*#__PURE__*/new WeakSet,bi=/*#__PURE__*/new WeakSet,vi=e=>!j(e)&&!T(e)||!$i.has(e),wi=e=>$i.has(e),yi=e=>bi.has(e),gi=e=>(null!=e&&$i.add(e),e),Si=e=>(bi.add(e),e),xi=e=>Qs(e)?xi(e.ut):!!ht(e)||e.isConnected,ki=e=>j(e)?qi(e)??e:e,qi=e=>e[Je],ji=e=>e[Ue],Ci=e=>e[De],Oi=(e,t)=>{const n=e[0],o="string"==typeof e[1]?e[1]:t(e[1]);if(!o)return;let r=n+" "+o;if(0===n)e[2]&&(r+=" "+e[2]);else if(n<=2)r+=` ${Pi(t(e[2]))} ${Pi(t(e[3]))} ${e[4]}`;else if(n<=4){const n="string"==typeof e[3]?e[3]:Pi(t(e[3]));r+=` ${Pi(t(e[2]))} ${n}`}return r},Ti=(e,t)=>{const n=e.split(" "),o=parseInt(n[0],10);A(n.length>=2,"At least 2 parts");const r=t(n[1]);if(!r)return;if(Qs(r)&&!r.ut)return;const s=[o,r];return 0===o?(A(n.length<=3,"Max 3 parts"),s.push(n[2])):o<=2?(A(5===n.length,"Type 1 has 5"),s.push(t(n[2]),t(n[3]),n[4],n[5])):o<=4&&(A(4===n.length,"Type 2 has 4"),s.push(t(n[2]),t(n[3]),n[4])),s},Ei=e=>{const t=new Map,o={Ve:t,K:n=>new Mi(t,e,n),et:e=>{const n=t.get(e);if(n){for(const t of n)t.$t(e);t.delete(e),n.length=0}}};return n(o),o};class Mi{constructor(e,t,o){this.Ve=e,this.re=t,this.Ue=[],o&&this.lt(o),n(this)}lt(e){this.Ue.push(...e);for(const e of this.Ue)this.bt(e[1],this)}bt(e,t){let n=this.Ve.get(e);n||this.Ve.set(e,n=[]),n.includes(t)||n.push(t)}$t(e){const t=this.Ue;for(let n=0;n<t.length;n++)t[n][1]===e&&(t.splice(n,1),n--)}G(e,t){const n=this.Ue,o=e[1];0===e[0]&&n.some((([e,n,r])=>0===e&&n===o&&r===t))||(n.push([...e,t]),this.bt(o,this))}ee(e){const t=this.Ue;for(const n of t){const t=n[n.length-1];e&&t&&t!==e||ls(n,this.re)}}}const Pi=e=>{if(null==e)throw p("must be non null",e);return e},Li=e=>"function"==typeof e&&"function"==typeof e.getSymbol,Ii=(e,o,r,s,i,c,l)=>{if(t&&c)for(const e of c)pi(e,"Captured variable in the closure can not be serialized");let u;const a=e=>(u||(u=e),u),f=async t=>{if(t&&a(t),null!==r)return r;if(null!==s)return r=s().then((e=>r=e[o]));{const t=R().importSymbol(u,e,o);return r=J(t,(e=>r=e))}},d=e=>null!==r?r:f(e);function h(e,t){return(...n)=>{const r=Qi(),s=d();return J(s,(s=>{if(T(s)){if(t&&!1===t())return;const i={...p(e),xe:v};return Ai(o,i.k,r),kt.call(this,i,s,...n)}throw x(10)}))}}const p=e=>null==e?Ct():C(e)?jt(e):e,m=async function(...e){const t=h.call(this);return await t(...e)},$=l??o,b=Ri($),v=m,w={getSymbol:()=>$,getHash:()=>b,getCaptured:()=>c,resolve:f,ft:d,C:a,l:e,o,m:l,vt:b,getFn:h,$:i,v:c,dev:null},y=Object.assign(m,w);return n(y),y},Ri=e=>{const t=e.lastIndexOf("_");return t>-1?e.slice(t+1):e};function Ni(e){if(t&&!Li(e))throw new Error("Not a QRL")}const zi=/*@__PURE__*/new Set,Ai=(e,t,n)=>{zi.has(e)||(zi.add(e),_i("qsymbol",{symbol:e,element:t,reqTime:n}))},_i=(e,t)=>{"object"==typeof document&&document.dispatchEvent(new CustomEvent(e,{bubbles:!1,detail:t}))},Qi=()=>"object"==typeof performance?performance.now():0,Hi=e=>{throw new Error("Optimizer should replace all usages of $() with some special syntax. If you need to create a QRL manually, use inlinedQrl() instead.")},Ji=e=>e,Di=e(Ji),Ui=e=>{function t(t,n,o){Ni(e),_(o,"The Qwik Component was not invocated correctly");const r=e.vt.slice(0,4)+":"+(n||"");return dr(zn,{[ue]:e,[fe]:t[fe],[Xe]:t[Xe],children:t.children,props:t},o,r)}return t[ri]=[e],t},Xi=e=>"function"==typeof e&&void 0!==e[ri],Wi=e=>Ui(Hi(e)),Fi=(e,t)=>{t||(t=[]);for(const n of e)C(n)?Fi(n,t):t.push(n);return t};function Vi(e,t,...n){const o={children:arguments.length>2?Fi(n):F};let r,s;for(s in t)"key"==s?r=t[s]:o[s]=t[s];return hr(e,o,r)}const Ki=async(e,n,o)=>{vr(n)||(n=hr(n,null));const r=_t(),s=Gi(e);if(t&&s.hasAttribute($e))throw x(5,s);Yi(s);const i=qe(s),c=o?.serverData;c&&Object.assign(i.J,c);const l=xn(r,i);return i.X=new Set,await Bi(l,s,n,r,i,s),await $s(i,l),{cleanup(){!function(e,t){const n=e.ke.re.F;es(t,e.ke,n,!0),(e=>{delete e[ke]})(t),xe(t,"q:version"),xe(t,$e),xe(t,"q:render"),t.replaceChildren()}(l,s)}}},Bi=async(e,n,o,r,s,i)=>{const c=e.ke;try{const t=await Go(o),r=Ir(n);await Cr(e,r,Bo(n,t),"root",0)}catch(e){p(e)}c.qe.push(...c.Ce),en(c),t&&ur(i),on(c)},Gi=e=>r(e)?e.documentElement:e,Yi=e=>{ge(e,"q:version",io),ge(e,$e,"resumed"),ge(e,"q:render",t?"dom-dev":"dom")},Zi=(e,t)=>{const{get:n,set:o,iCtx:r}=At();if(null!=n)return n;const s=T(e)?kt(void 0,e):e;if(!1===t?.reactive)return o(s),s;{const e=r.ge.ke.re,n=st(s,e,t?.deep?1:0);return o(n),n}},ec=()=>{const{get:e,set:t,elCtx:n,iCtx:o}=At();if(null!=e)return e;const r=o.ge?.ke?.re?.D||"";return t(`${r?Jn(r):""}-${n.t?.getHash()||""}-${On(o.ge)||""}`)};function tc(e,t){return St().ge.ke.re.J[e]??t}const nc=new Map,oc=(e,n)=>{if(t)return rc(e,n);let o=nc.get(n);return o||nc.set(n,o=rc(e,n)),o},rc=(e,t)=>{const n=e.length,o=[],r=[];let s=0,i=s,c=uc,l=0;for(;s<n;){const t=s;let n=e.charCodeAt(s++);n===Nc&&(s++,n=Lc);const o=Uc[c];for(let h=0;h<o.length;h++){const p=o[h],[m,$,b]=p;if((m===l||m===vc||m===wc&&sc(l)||m===gc&&lc(l))&&($===n||$===vc||$===wc&&sc(n)||$===yc&&!sc(n)&&n!==Tc||$===gc&&lc(n))&&(3==p.length||f(p))){if(p.length>3&&(n=e.charCodeAt(s-1)),b===$c||b==bc){b===bc&&(c!==ac||d()?ic(n)||a(s-($==yc?1:$==Cc?2:0)):(ic(n)?u(s-2):a(s-2),i++)),$===yc&&(s--,n=l);do{c=r.pop()||uc,c===fc&&(u(s-1),i++)}while(cc(c))}else r.push(c),c===fc&&b===uc?(u(s-8),i=s):b===dc&&a(t),c=b;break}}l=n}return u(s),o.join("");function u(t){o.push(e.substring(i,t)),i=t}function a(e){c===fc||d()||(u(e),o.push(".",ae,t))}function f(t){let n=0;if(e.charCodeAt(s)===Oc)for(let t=1;t<10;t++)if(e.charCodeAt(s+t)===Oc){n=t+1;break}e:for(let o=3;o<t.length;o++){const r=t[o];for(let t=0;t<r.length;t++)if((e.charCodeAt(s+t+n)|Ac)!==r.charCodeAt(t))continue e;return s+=r.length+n,!0}return!1}function d(){return-1!==r.indexOf(fc)||-1!==r.indexOf(hc)}},sc=e=>e>=Ec&&e<=Mc||e>=Lc&&e<=Ic||e>=_c&&e<=Qc||e>=128||e===zc||e===Oc,ic=e=>e===Pc||e===Tc||e===Rc||e===jc||sc(e),cc=e=>e===pc||e===hc||e===mc||e===fc,lc=e=>e===qc||e===Sc||e===xc||e===kc,uc=0,ac=2,fc=5,dc=6,hc=10,pc=11,mc=12,$c=17,bc=18,vc=0,wc=1,yc=2,gc=3,Sc=9,xc=10,kc=13,qc=32,jc=35,Cc=41,Oc=45,Tc=46,Ec=48,Mc=57,Pc=58,Lc=65,Ic=90,Rc=91,Nc=92,zc=95,Ac=32,_c=97,Qc=122,Hc=123,Jc=125,Dc=[[vc,39,14],[vc,34,15],[vc,47,16,"*"]],Uc=[[[vc,42,ac],[vc,Rc,7],[vc,Pc,dc,":","before","after","first-letter","first-line"],[vc,Pc,fc,"global"],[vc,Pc,3,"has","host-context","not","where","is","matches","any"],[vc,Pc,4],[vc,wc,1],[vc,Tc,1],[vc,jc,1],[vc,64,hc,"keyframe"],[vc,64,pc,"media","supports"],[vc,64,mc],[vc,Hc,13],[47,42,16],[vc,59,$c],[vc,Jc,$c],[vc,Cc,$c],...Dc],[[vc,yc,bc]],[[vc,yc,bc]],[[vc,40,uc],[vc,yc,bc]],[[vc,40,8],[vc,yc,bc]],[[vc,40,uc],[vc,yc,$c]],[[vc,yc,$c]],[[vc,93,bc],[vc,39,14],[vc,34,15]],[[vc,Cc,$c],...Dc],[[vc,Jc,$c],...Dc],[[vc,Jc,$c],[gc,wc,1],[vc,Pc,fc,"global"],[vc,Hc,13],...Dc],[[vc,Hc,uc],[vc,59,$c],...Dc],[[vc,59,$c],[vc,Hc,9],...Dc],[[vc,Jc,$c],[vc,Hc,13],[vc,40,8],...Dc],[[vc,39,$c]],[[vc,34,$c]],[[42,47,$c]]],Xc=e=>{Kc(e,(e=>e),!1)},Wc=/*#__PURE__*/e(Xc),Fc=e=>({scopeId:ae+Kc(e,oc,!0)}),Vc=/*#__PURE__*/e(Fc),Kc=(e,t,n)=>{Ni(e);const{get:o,set:r,iCtx:s,i,elCtx:c}=At();if(o)return o;const l=(a=i,Ni(u=e),`${Jn(u.vt)}-${a}`);var u,a;const f=s.ge.ke.re;if(r(l),c.pe||(c.pe=[]),c.ce||(c.ce=[]),n&&c.ce.push((e=>ae+e)(l)),((e,t)=>e.A.has(t))(f,l))return l;f.A.add(l);const d=e.ft(f.O),h=e=>{N(c.pe,"appendStyles must be defined"),c.pe.push({styleId:l,content:t(e,l)})};return Q(d)?s.ye.push(d.then(h)):h(d),l},Bc=e=>{const{get:t,set:n,iCtx:o}=At();if(null!=t)return t;const r=o.ge.ke.re,s=T(e)?kt(void 0,e):e;return n(Ke(s,r,0,void 0))},Gc=()=>{const e=Zi({error:void 0});return It("error-boundary",B("/runtime","error",[e])),hn(wn,e),e};export{Hi as $,yr as Fragment,In as RenderOnce,Us as Resource,Nn as SSRComment,Qn as SSRHint,Rn as SSRRaw,_n as SSRStream,An as SSRStreamBlock,Ln as SkipRender,Vs as Slot,Xe as _IMMUTABLE,er as _deserializeData,Fe as _fnSignal,Pt as _getContextElement,hs as _hW,Lt as _jsxBranch,dr as _jsxC,fr as _jsxQ,Y as _noopQrl,Xn as _pauseFromContexts,ce as _regSymbol,ao as _renderSSR,ut as _restProps,Un as _serializeData,pi as _verifySerializable,Si as _weakSerialize,ot as _wrapProp,rt as _wrapSignal,Wi as component$,Ui as componentQrl,dn as createContextId,Vi as createElement,Di as event$,Ji as eventQrl,vt as getLocale,R as getPlatform,Vi as h,e as implicit$FirstArg,G as inlinedQrl,ee as inlinedQrlDEV,hr as jsx,gr as jsxDEV,hr as jsxs,gi as noSerialize,B as qrl,Z as qrlDEV,Ki as render,I as setPlatform,Tt as untrack,Cs as useComputed$,js as useComputedQrl,pn as useContext,hn as useContextProvider,Gc as useErrorBoundary,ec as useId,cs as useLexicalScope,It as useOn,Rt as useOnDocument,Nt as useOnWindow,Ds as useResource$,Js as useResourceQrl,tc as useServerData,Bc as useSignal,Zi as useStore,Wc as useStyles$,Xc as useStylesQrl,Vc as useStylesScoped$,Fc as useStylesScopedQrl,Os as useTask$,qs as useTaskQrl,Es as useVisibleTask$,Ts as useVisibleTaskQrl,io as version,wt as withLocale};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected