regor 1.6.8 → 1.7.0
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/regor.d.ts +8 -2
- package/dist/regor.es2015.cjs.js +32 -0
- package/dist/regor.es2015.cjs.prod.js +3 -3
- package/dist/regor.es2015.esm.js +32 -0
- package/dist/regor.es2015.esm.prod.js +3 -3
- package/dist/regor.es2015.iife.js +32 -0
- package/dist/regor.es2015.iife.prod.js +3 -3
- package/dist/regor.es2019.cjs.js +32 -0
- package/dist/regor.es2019.cjs.prod.js +3 -3
- package/dist/regor.es2019.esm.js +32 -0
- package/dist/regor.es2019.esm.prod.js +3 -3
- package/dist/regor.es2019.iife.js +32 -0
- package/dist/regor.es2019.iife.prod.js +3 -3
- package/dist/regor.es2022.cjs.js +31 -0
- package/dist/regor.es2022.cjs.prod.js +3 -3
- package/dist/regor.es2022.esm.js +31 -0
- package/dist/regor.es2022.esm.prod.js +3 -3
- package/dist/regor.es2022.iife.js +31 -0
- package/dist/regor.es2022.iife.prod.js +3 -3
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var Er=Object.defineProperty,Rr=Object.defineProperties;var wr=Object.getOwnPropertyDescriptors;var Yn=Object.getOwnPropertySymbols;var vr=Object.prototype.hasOwnProperty,Sr=Object.prototype.propertyIsEnumerable;var xt=Math.pow,ln=(t,e,n)=>e in t?Er(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ct=(t,e)=>{for(var n in e||(e={}))vr.call(e,n)&&ln(t,n,e[n]);if(Yn)for(var n of Yn(e))Sr.call(e,n)&&ln(t,n,e[n]);return t},Zn=(t,e)=>Rr(t,wr(e));var p=(t,e,n)=>ln(t,typeof e!="symbol"?e+"":e,n);var eo=(t,e,n)=>new Promise((o,r)=>{var s=c=>{try{a(n.next(c))}catch(l){r(l)}},i=c=>{try{a(n.throw(c))}catch(l){r(l)}},a=c=>c.done?o(c.value):Promise.resolve(c.value).then(s,i);a((n=n.apply(t,e)).next())});var qe=Symbol(":regor");var Ee=t=>{let e=[t];for(let n=0;n<e.length;++n){let o=e[n];Ar(o);for(let r=o.lastChild;r!=null;r=r.previousSibling)e.push(r)}},Ar=t=>{let e=t[qe];if(!e)return;let n=e.unbinders;for(let o=0;o<n.length;++o)n[o]();n.length=0,t[qe]=void 0};var ze=[],Et=!1,Rt,to=()=>{if(Et=!1,Rt=void 0,ze.length!==0){for(let t=0;t<ze.length;++t)Ee(ze[t]);ze.length=0}},ee=t=>{t.remove(),ze.push(t),Et||(Et=!0,Rt=setTimeout(to,1))},Nr=()=>eo(null,null,function*(){ze.length===0&&!Et||(Rt&&clearTimeout(Rt),to())});var W=t=>typeof t=="function",G=t=>typeof t=="string",no=t=>typeof t=="undefined",pe=t=>t==null||typeof t=="undefined",j=t=>typeof t!="string"||!(t!=null&&t.trim()),Mr=Object.prototype.toString,fn=t=>Mr.call(t),Oe=t=>fn(t)==="[object Map]",fe=t=>fn(t)==="[object Set]",pn=t=>fn(t)==="[object Date]",rt=t=>typeof t=="symbol",v=Array.isArray,P=t=>t!==null&&typeof t=="object";var oo={0:"createApp can't find root element. You must define either a valid `selector` or an `element`. Example: createApp({}, {selector: '#app', html: '...'})",1:t=>`Component template cannot be found. selector: ${t} .`,2:"Use composables in scope. usage: useScope(() => new MyApp()).",3:t=>`${t} requires ref source argument`,4:"computed is readonly.",5:"persist requires a string key."},q=(t,...e)=>{let n=oo[t];return new Error(W(n)?n.call(oo,...e):n)};var wt=[],ro=()=>{let t={onMounted:[],onUnmounted:[]};return wt.push(t),t},Ue=t=>{let e=wt[wt.length-1];if(!e&&!t)throw q(2);return e},so=t=>{let e=Ue();return t&&dn(t),wt.pop(),e},mn=Symbol("csp"),dn=t=>{let e=t,n=e[mn];if(n){let o=Ue();if(n===o)return;o.onMounted.length>0&&n.onMounted.push(...o.onMounted),o.onUnmounted.length>0&&n.onUnmounted.push(...o.onUnmounted);return}e[mn]=Ue()},vt=t=>t[mn];var Le=t=>{var n,o;let e=(n=vt(t))==null?void 0:n.onUnmounted;e==null||e.forEach(r=>{r()}),(o=t.unmounted)==null||o.call(t)};var io={8:t=>`Model binding requires a ref at ${t.outerHTML}`,7:t=>`Model binding is not supported on ${t.tagName} element at ${t.outerHTML}`,0:(t,e)=>`${t} binding expression is missing at ${e.outerHTML}`,1:(t,e,n)=>`invalid ${t} expression: ${e} at ${n.outerHTML}`,2:(t,e)=>`${t} requires object expression at ${e.outerHTML}`,3:(t,e)=>`${t} binder: key is empty on ${e.outerHTML}.`,4:(t,e,n,o)=>({msg:`Failed setting prop "${t}" on <${e.toLowerCase()}>: value ${n} is invalid.`,args:[o]}),5:(t,e)=>`${t} binding missing event type at ${e.outerHTML}`,6:(t,e)=>({msg:t,args:[e]})},_=(t,...e)=>{let n=io[t],o=W(n)?n.call(io,...e):n,r=Ke.warning;r&&(G(o)?r(o):r(o,...o.args))},Ke={warning:console.warn};var St=Symbol("ref"),J=Symbol("sref"),At=Symbol("raw");var E=t=>t!=null&&t[J]>0;var Ie=class extends Error{constructor(n,o){super(o);p(this,"propPath");p(this,"detail");this.name="PropValidationError",this.propPath=n,this.detail=o}},ge=(t,e)=>{throw new Ie(t,`${e}.`)},Nt=t=>{var n;if(t===null)return"null";if(t===void 0)return"undefined";if(E(t))return`ref<${Nt(t())}>`;if(typeof t=="string")return"string";if(typeof t=="number")return"number";if(typeof t=="boolean")return"boolean";if(typeof t=="bigint")return"bigint";if(typeof t=="symbol")return"symbol";if(typeof t=="function")return"function";if(v(t))return"array";if(t instanceof Date)return"Date";if(t instanceof RegExp)return"RegExp";if(t instanceof Map)return"Map";if(t instanceof Set)return"Set";let e=(n=t==null?void 0:t.constructor)==null?void 0:n.name;return e&&e!=="Object"?e:"object"},kr=t=>t.length>60?`${t.slice(0,57)}...`:t,st=(t,e=0)=>{if(e>1)return"unknown";if(E(t)){let s=t();return`ref(${st(s,e+1)})`}if(typeof t=="string")return kr(JSON.stringify(t));if(typeof t=="number"||typeof t=="boolean"||typeof t=="bigint"||typeof t=="symbol")return String(t);if(t===null)return"null";if(t===void 0)return"undefined";if(t instanceof Date)return t.toISOString();if(t instanceof RegExp)return String(t);if(v(t)){let s=t.slice(0,5).map(i=>st(i,e+1)).join(", ");return t.length>5?`[${s}, ...]`:`[${s}]`}if(P(t)){let s=Object.entries(t).slice(0,5);if(s.length===0)return"{}";let i=s.map(([a,c])=>{let l=st(c,e+1);return`${a}: ${l}`}).join(", ");return Object.keys(t).length>5?`{ ${i}, ... }`:`{ ${i} }`}return"unknown"},ue=t=>{if(E(t))return`got ${Nt(t)}(${st(t())})`;let e=Nt(t),n=st(t);return`got ${e} (${n})`},Or=t=>t instanceof Ie?t.detail:t instanceof Error?t.message:String(t),ao=(t,e)=>{let n=`, ${ue(e)}.`;return t.endsWith(n)?t.slice(0,-n.length):t},Lr=(t,e,n)=>{if(e instanceof Ie){if(e.propPath===t)return ao(e.detail,n);if(e.propPath===`${t}.value`&&E(n)){let o=ao(e.detail,n());return o.startsWith("expected ")?`expected ref<${o.slice(9)}>`:`expected ref where ${o}`}}return Or(e)},Ir=(t,e,n)=>{let o=[];for(let r of e){let s=Lr(t,r,n);o.includes(s)||o.push(s)}return o.length===0?ue(n):o.length===1?`${o[0]}, ${ue(n)}`:`${o.join(" or ")}, ${ue(n)}`},Vr=t=>typeof t=="string"?`"${t}"`:typeof t=="number"||typeof t=="boolean"?String(t):t===null?"null":t===void 0?"undefined":Nt(t),Pr=(t,e)=>{typeof t!="string"&&ge(e,`expected string, ${ue(t)}`)},Dr=(t,e)=>{typeof t!="number"&&ge(e,`expected number, ${ue(t)}`)},Ur=(t,e)=>{typeof t!="boolean"&&ge(e,`expected boolean, ${ue(t)}`)},Hr=t=>(e,n)=>{e instanceof t||ge(n,`expected instance of ${t.name||"provided class"}, ${ue(e)}`)},Br=t=>(e,n,o)=>{e!==void 0&&t(e,n,o)},$r=t=>(e,n,o)=>{e!==null&&t(e,n,o)},jr=(...t)=>(e,n,o)=>{let r=[];for(let s of t)try{s(e,n,o);return}catch(i){r.push(i)}ge(n,Ir(n,r,e))},_r=t=>(e,n)=>{t.includes(e)||ge(n,`expected one of ${t.map(o=>Vr(o)).join(", ")}, ${ue(e)}`)},Fr=t=>(e,n,o)=>{v(e)||ge(n,`expected array, ${ue(e)}`);let r=e;for(let s=0;s<r.length;++s)t(r[s],`${n}[${s}]`,o)};function qr(t){return(e,n,o)=>{P(e)||ge(n,`expected object, ${ue(e)}`);let r=e;for(let s in t){let i=t[s];if(!i)continue;i(r[s],`${n}.${s}`,o)}}}var zr=t=>(e,n,o)=>{if(E(e)){t(e(),`${n}.value`,o);return}ge(n,`expected ref, ${ue(e)}`)},Kr={fail:ge,describe:ue,isString:Pr,isNumber:Dr,isBoolean:Ur,isClass:Hr,optional:Br,nullable:$r,or:jr,oneOf:_r,arrayOf:Fr,shape:qr,refOf:zr};var Wr=(t,e,n)=>{var i,a;let o=((a=(i=t.tagName)==null?void 0:i.toLowerCase)==null?void 0:a.call(i))||"unknown",r=n instanceof Ie?n.propPath:e,s=n instanceof Ie?n.detail:n instanceof Error?n.message:String(n);return n instanceof Error?new Error(`Invalid prop "${r}" on <${o}>: ${s}`,{cause:n}):new Error(`Invalid prop "${r}" on <${o}>: ${s}`,{cause:n})},it=class{constructor(e,n,o,r,s,i){p(this,"props");p(this,"start");p(this,"end");p(this,"ctx");p(this,"autoProps",!0);p(this,"entangle",!0);p(this,"enableSwitch",!1);p(this,"onAutoPropsAssigned");p(this,"J");p(this,"Q");p(this,"emit",(e,n)=>{this.J.dispatchEvent(new CustomEvent(e,{detail:n}))});this.props=e,this.J=n,this.ctx=o,this.start=r,this.end=s,this.Q=i}findContext(e,n=0){var r;if(n<0)return;let o=0;for(let s of(r=this.ctx)!=null?r:[])if(s instanceof e){if(o===n)return s;++o}}requireContext(e,n=0){let o=this.findContext(e,n);if(o!==void 0)return o;throw new Error(`${e} was not found in the context stack at occurrence ${n}.`)}validateProps(e){if(this.Q==="off")return;let n=this.props;for(let o in e){let r=e[o];if(!r)continue;let s=r;try{s(n[o],o,this)}catch(i){let a=Wr(this.J,o,i);if(this.Q==="warn"){Ke.warning(a.message,a);continue}throw a}}}unmount(){let e=this.start.nextSibling,n=this.end;for(;e&&e!==n;)ee(e),e=e.nextSibling;for(let o of this.ctx)Le(o)}};var He=t=>{let e=t,n=e[qe];if(n)return n;let o={unbinders:[],data:{}};return e[qe]=o,o};var Q=(t,e)=>{He(t).unbinders.push(e)};var at=t=>{if(typeof t=="string"){let e=t.trim().toLowerCase();if(e===""||e==="0"||e==="false")return!1;if(e==="true")return!0}return!!t};var kt={},Mt={},co=1,uo=t=>{let e=(co++).toString();return kt[e]=t,Mt[e]=0,e},hn=t=>{Mt[t]+=1},yn=t=>{--Mt[t]===0&&(delete kt[t],delete Mt[t])},lo=t=>kt[t],gn=()=>co!==1&&Object.keys(kt).length>0,ct="r-switch",Gr=t=>{let e=t.filter(o=>Re(o)).map(o=>[...o.querySelectorAll("[r-switch]")].map(r=>r.getAttribute(ct))),n=new Set;return e.forEach(o=>{o.forEach(r=>r&&n.add(r))}),[...n]},We=(t,e)=>{if(!gn())return;let n=Gr(e);n.length!==0&&(n.forEach(hn),Q(t,()=>{n.forEach(yn)}))};var Ot=()=>{},bn=(t,e,n,o)=>{let r=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,o),r.push(i)}Ve(e,r)},Tn=Symbol("r-if"),fo=Symbol("r-else"),po=t=>t[fo]===1,Lt=class{constructor(e){p(this,"r");p(this,"M");p(this,"xe");p(this,"X");p(this,"Y");p(this,"T");p(this,"R");this.r=e,this.M=e.o.u.if,this.xe=Vt(e.o.u.if),this.X=e.o.u.else,this.Y=e.o.u.elseif,this.T=e.o.u.for,this.R=e.o.u.pre}ot(e,n){let o=e.parentElement;for(;o!==null&&o!==document.documentElement;){if(o.hasAttribute(n))return!0;o=o.parentElement}return!1}V(e){let n=e.hasAttribute(this.M);return n&&this.y(e),e.hasAttribute(this.r.o.u.is)||e.hasAttribute("is")||this.r.E.Z(e)||this.r.E.j(e,r=>{r.hasAttribute(this.M)&&this.y(r)}),n}ee(e){return e[Tn]?!0:(e[Tn]=!0,It(e,this.xe).forEach(n=>n[Tn]=!0),!1)}y(e){if(e.hasAttribute(this.R)||this.ee(e)||this.ot(e,this.T))return;let n=e.getAttribute(this.M);if(!n){_(0,this.M,e);return}e.removeAttribute(this.M),this.N(e,n)}U(e,n,o){let r=Ge(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${o!=null?o:""}`);s.insertBefore(i,e),We(i,r),r.forEach(c=>{ee(c)}),e.remove(),n!=="if"&&(e[fo]=1);let a=document.createComment(`__end__ :${n}${o!=null?o:""}`);return s.insertBefore(a,i.nextSibling),{nodes:r,parent:s,commentBegin:i,commentEnd:a}}Re(e,n){if(!e)return[];let o=e.nextElementSibling;if(e.hasAttribute(this.X)){e.removeAttribute(this.X);let{nodes:r,parent:s,commentBegin:i,commentEnd:a}=this.U(e,"else");return[{mount:()=>{bn(r,this.r,s,a)},unmount:()=>{we(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let r=e.getAttribute(this.Y);if(!r)return[];e.removeAttribute(this.Y);let{nodes:s,parent:i,commentBegin:a,commentEnd:c}=this.U(e,"elseif",` => ${r} `),l=this.r.m.O(r),u=l.value,f=this.Re(o,n),m=Ot;return Q(a,()=>{l.stop(),m(),m=Ot}),m=l.subscribe(n),[{mount:()=>{bn(s,this.r,i,c)},unmount:()=>{we(a,c)},isTrue:()=>at(u()[0]),isMounted:!1},...f]}}N(e,n){let o=e.nextElementSibling,{nodes:r,parent:s,commentBegin:i,commentEnd:a}=this.U(e,"if",` => ${n} `),c=this.r.m.O(n),l=c.value,u=!1,f=this.r.m,m=f.L(),y=()=>{f.C(m,()=>{if(at(l()[0]))u||(bn(r,this.r,s,a),u=!0),x.forEach(C=>{C.unmount(),C.isMounted=!1});else{we(i,a),u=!1;let C=!1;for(let b of x)!C&&b.isTrue()?(b.isMounted||(b.mount(),b.isMounted=!0),C=!0):(b.unmount(),b.isMounted=!1)}})},x=this.Re(o,y),d=Ot;Q(i,()=>{c.stop(),d(),d=Ot}),y(),d=c.subscribe(y)}};var Ge=t=>{let e=me(t)?t.content.childNodes:[t],n=[];for(let o=0;o<e.length;++o){let r=e[o];if(r.nodeType===1){let s=r==null?void 0:r.tagName;if(s==="SCRIPT"||s==="STYLE")continue}n.push(r)}return n},Ve=(t,e)=>{for(let n=0;n<e.length;++n){let o=e[n];o.nodeType===Node.ELEMENT_NODE&&(po(o)||t.$(o))}},It=(t,e)=>{var o;let n=t.querySelectorAll(e);return(o=t.matches)!=null&&o.call(t,e)?[t,...n]:n},me=t=>t instanceof HTMLTemplateElement,Re=t=>t.nodeType===Node.ELEMENT_NODE,ut=t=>t.nodeType===Node.ELEMENT_NODE,mo=t=>t instanceof HTMLSlotElement,ve=t=>me(t)?t.content.childNodes:t.childNodes,we=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let o=n.nextSibling;ee(n),n=o}},ho=function(){return this()},Jr=function(t){return this(t)},Qr=()=>{throw new Error("value is readonly.")},Xr={get:ho,set:Jr,enumerable:!0,configurable:!1},Yr={get:ho,set:Qr,enumerable:!0,configurable:!1},Pe=(t,e)=>{t[J]=e?2:1,Object.defineProperty(t,"value",e?Yr:Xr)},yo=(t,e)=>{if(!t)return!1;if(t.startsWith("["))return t.substring(1,t.length-1);let n=e.length;return t.startsWith(e)?t.substring(n,t.length-n):!1},Vt=t=>`[${CSS.escape(t)}]`,Pt=(t,e)=>(t.startsWith("@")&&(t=e.u.on+":"+t.slice(1)),t.includes("[")&&(t=t.replace(/[[\]]/g,e.u.dynamic)),t),xn=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Zr=/-(\w)/g,z=xn(t=>t&&t.replace(Zr,(e,n)=>n?n.toUpperCase():"")),es=/\B([A-Z])/g,Je=xn(t=>t&&t.replace(es,"-$1").toLowerCase()),lt=xn(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var Dt={mount:()=>{}};var Qe=t=>{let e=t.trim();return e?e.split(/\s+/):[]};var Ut=t=>{var n,o;let e=(n=vt(t))==null?void 0:n.onMounted;e==null||e.forEach(r=>{r()}),(o=t.mounted)==null||o.call(t)};var Cn=Symbol("scope"),En=t=>{try{ro();let e=t();dn(e);let n={context:e,unmount:()=>Le(e),[Cn]:1};return n[Cn]=1,n}finally{so()}},go=t=>P(t)?Cn in t:!1;var Rn={collectRefObj:!0,mount:({parseResult:t})=>({update:({values:e})=>{let n=t.context,o=e[0];if(P(o))for(let r of Object.entries(o)){let s=r[0],i=r[1],a=n[s];a!==i&&(E(a)?a(i):n[s]=i)}}})};var ce=(t,e)=>{var n;(n=Ue(e))==null||n.onUnmounted.push(t)};var se=(t,e,n,o=!0)=>{if(!E(t))throw q(3,"observe");n&&e(t());let s=t(void 0,void 0,0,e);return o&&ce(s,!0),s};var bo=t=>t[J]===2,ft=(t,e)=>{if(t===e)return()=>{};let n=bo(t),o=bo(e);if(n&&o)return()=>{};if(n){let i=se(t,()=>e(t()));return e(t()),i}if(o){let i=se(e,()=>t(e()));return t(e()),i}let r=se(t,i=>e(i)),s=se(e,i=>t(i));return e(t()),()=>{r(),s()}};var de=[],To=t=>{var e;de.length!==0&&((e=de[de.length-1])==null||e.add(t))},Xe=t=>{if(!t)return()=>{};let e={stop:()=>{}};return ts(t,e),ce(()=>e.stop(),!0),e.stop},ts=(t,e)=>{if(!t)return;let n=[],o=!1,r=()=>{for(let s of n)s();n=[],o=!0};e.stop=r;try{let s=new Set;if(de.push(s),t(i=>n.push(i)),o)return;for(let i of[...s]){let a=se(i,()=>{r(),Xe(t)});n.push(a)}}finally{de.pop()}},wn=t=>{let e=de.length,n=e>0&&de[e-1];try{return n&&de.push(null),t()}finally{n&&de.pop()}},vn=t=>{try{let e=new Set;return de.push(e),{value:t(),refs:[...e]}}finally{de.pop()}};var pt=t=>!!t&&t[At]===1;var te=(t,e,n)=>{if(!E(t))return;let o=t;if(o(void 0,e,1),!n)return;let r=o();if(r){if(v(r)||fe(r))for(let s of r)te(s,e,!0);else if(Oe(r))for(let s of r)te(s[0],e,!0),te(s[1],e,!0);if(P(r))for(let s in r)te(r[s],e,!0)}};function ns(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var Ye=(t,e,n)=>{n.forEach(function(o){let r=t[o];ns(e,o,function(...i){let a=r.apply(this,i),c=this[J];for(let l of c)te(l);return a})})},Ht=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var xo=Array.prototype,Sn=Object.create(xo),os=["push","pop","shift","unshift","splice","sort","reverse"];Ye(xo,Sn,os);var Co=Map.prototype,Bt=Object.create(Co),rs=["set","clear","delete"];Ht(Bt,"Map");Ye(Co,Bt,rs);var Eo=Set.prototype,$t=Object.create(Eo),ss=["add","clear","delete"];Ht($t,"Set");Ye(Eo,$t,ss);var be={},ie=t=>{if(E(t)||pt(t))return t;let e={auto:!0,_value:t},n=c=>P(c)?J in c?!0:v(c)?(Object.setPrototypeOf(c,Sn),!0):fe(c)?(Object.setPrototypeOf(c,$t),!0):Oe(c)?(Object.setPrototypeOf(c,Bt),!0):!1:!1,o=n(t),r=new Set,s=(c,l)=>{if(be.stack&&be.stack.length){be.stack[be.stack.length-1].add(a);return}r.size!==0&&wn(()=>{for(let u of[...r.keys()])r.has(u)&&u(c,l)})},i=c=>{let l=c[J];l||(c[J]=l=new Set),l.add(a)},a=(...c)=>{if(!(2 in c)){let u=c[0],f=c[1];return 0 in c?e._value===u||E(u)&&(u=u(),e._value===u)?u:(n(u)&&i(u),e._value=u,e.auto&&s(u,f),e._value):(To(a),e._value)}switch(c[2]){case 0:{let u=c[3];if(!u)return()=>{};let f=m=>{r.delete(m)};return r.add(u),()=>{f(u)}}case 1:{let u=c[1],f=e._value;s(f,u);break}case 2:return r.size;case 3:{e.auto=!1;break}case 4:e.auto=!0}return e._value};return Pe(a,!1),o&&i(t),a};var Ro=Symbol("modelBridge"),jt=()=>{},is=t=>!!(t!=null&&t[Ro]),as=t=>{t[Ro]=1},cs=t=>{let e=ie(t());return as(e),e},wo={collectRefObj:!0,mount:({parseResult:t,option:e})=>{if(typeof e!="string"||!e)return jt;let n=z(e),o,r,s=jt,i=()=>{s(),s=jt,o=void 0,r=void 0},a=()=>{s(),s=jt},c=(u,f)=>{o!==u&&(a(),s=ft(u,f),o=u)},l=()=>{var y;let u=(y=t.refs[0])!=null?y:t.value()[0],f=t.context,m=f[n];if(!E(u)){if(r&&m===r){r(u);return}if(i(),E(m)){m(u);return}f[n]=ie(u);return}if(is(u)){if(m===u)return;E(m)?c(u,m):f[n]=u;return}r||(r=cs(u)),f[n]=r,c(u,r)};return{update:()=>{l()},unmount:()=>{s()}}}};var _t=class{constructor(e){p(this,"r");p(this,"_");p(this,"Ee","");p(this,"Ce",-1);this.r=e,this._=e.o.u.inherit}V(e){this.st(e)}it(e){if(this.Ce!==e.size){let n=[...e.keys()];this.Ee=[...n,...n.map(Je)].join(","),this.Ce=e.size}return this.Ee}ct(e){var n;for(let o=0;o<e.length;++o){let r=(n=e[o])==null?void 0:n.components;if(r)for(let s in r)return!0}return!1}ut(e){if(!me(e))return!1;let n=e.getAttributeNames();return e.hasAttribute("name")?!0:n.some(o=>o.startsWith("#"))}pt(e){return me(e)&&e.getAttributeNames().length===0}st(e){var l,u;let n=this.r,o=n.m,r=n.o.te,s=n.o.F;if(r.size===0&&!this.ct(o.l))return;let i=o.ne(),a=this.re();if(j(a))return;let c=this.lt(e,a);for(let f of c){if(f.hasAttribute(n.R))continue;let m=f.parentNode;if(!m)continue;let y=f.nextSibling,x=z(f.tagName).toUpperCase(),d=i[x],w=d!=null?d:s.get(x);if(!w)continue;let C=w.template;if(!C)continue;let b=f.parentElement;if(!b)continue;let M=new Comment(" begin component: "+f.tagName),D=new Comment(" end component: "+f.tagName);b.insertBefore(M,f),f.remove();let U=n.o.u.context,I=n.o.u.contextAlias,ne=n.o.u.bind,K=(u=(l=w.props)==null?void 0:l.map(z))!=null?u:[],S=[],T=h=>h==="class"||h==="style",V=(h,O,A=!1)=>{let Y={},$=h.hasAttribute(U);return o.C(O,()=>{if(o.v(Y),$?n.y(Rn,h,U):h.hasAttribute(I)&&n.y(Rn,h,I),K.length===0)return;let Z=new Map(K.map(g=>[g.toLowerCase(),g]));for(let g of[...K,...K.map(Je)]){let L=h.getAttribute(g);if(L===null)continue;let B=z(g);Y[B]=L,A&&w.inheritAttrs===!0&&T(B)&&S.push({name:g,value:L}),h.removeAttribute(g)}let R=n.q.we(h,!1);for(let[g,L]of R.entries()){let[B,re]=L.oe;if(!re)continue;let Ce=Z.get(z(re).toLowerCase());if(Ce&&!(B!=="."&&B!==":"&&B!==ne)){if(A&&B!=="."&&w.inheritAttrs===!0&&T(Ce)){let Xn=h.getAttribute(g);Xn!==null&&S.push({name:g,value:Xn})}n.y(wo,h,g,!0,Ce,L.se)}}}),Y},F=[...o.L()],Fe=()=>{var Y;let h=V(f,F,!0),O=new it(h,f,F,M,D,n.o.propValidationMode),A=En(()=>{var $;return($=w.context(O))!=null?$:{}}).context;if(O.autoProps){for(let[$,Z]of Object.entries(h))if($ in A){let R=A[$];if(R===Z)continue;if(E(R)){E(Z)?O.entangle?Q(M,ft(Z,R)):R(Z()):R(Z);continue}}else A[$]=Z;for(let $ of K)$ in A||(A[$]=void 0);(Y=O.onAutoPropsAssigned)==null||Y.call(O)}return{componentCtx:A,head:O}},{componentCtx:Te,head:bt}=Fe(),k=[...ve(C)],Tt=k.length,H=f.childNodes.length===0,X=h=>{var Z;let O=h.parentElement,A=h.name;if(j(A)&&(A=h.getAttributeNames().filter(R=>R.startsWith("#"))[0],j(A)?A="default":A=A.substring(1)),H){if(A==="default"){let R=n.o.u.text,g=f.getAttribute(R);if(!j(g)){let L=document.createElement("span");L.setAttribute(R,g),O.insertBefore(L,h),f.removeAttribute(R);return}}for(let R of[...h.childNodes])O.insertBefore(R,h);return}let Y=f.querySelector(`template[name='${A}'], template[\\#${A}]`);!Y&&A==="default"&&(Y=(Z=[...f.querySelectorAll("template:not([name])")].find(g=>this.pt(g)))!=null?Z:null);let $=R=>{bt.enableSwitch&&o.C(F,()=>{o.v(Te);let g=V(h,o.L());o.C(F,()=>{o.v(g);let L=o.L(),B=uo(L);for(let re of R)Re(re)&&(re.setAttribute(ct,B),hn(B),Q(re,()=>{yn(B)}))})})};if(Y){let R=[...ve(Y)];for(let g of R)O.insertBefore(g,h);$(R)}else{if(A!=="default"){for(let g of[...ve(h)])O.insertBefore(g,h);return}let R=[...ve(f)].filter(g=>!this.ut(g));for(let g of R)O.insertBefore(g,h);$(R)}},oe=h=>{if(!Re(h))return;let O=h.querySelectorAll("slot");if(mo(h)){X(h),h.remove();return}for(let A of O)X(A),A.remove()};(()=>{for(let h=0;h<Tt;++h)k[h]=k[h].cloneNode(!0),m.insertBefore(k[h],y),oe(k[h])})(),b.insertBefore(D,y);let xe=()=>{if(!w.inheritAttrs)return;let h=k.filter(g=>g.nodeType===Node.ELEMENT_NODE),O=h.flatMap(g=>[...g.hasAttribute(this._)?[g]:[],...g.querySelectorAll(`[${this._}]`)]).at(0),A=O!=null?O:h.length===1?h[0]:void 0;if(!A)return;A.removeAttribute(this._);let Y=`${ne}:class`,$=`${ne}:style`,Z=(g,L,B)=>{let re=A.hasAttribute(g)?g:A.hasAttribute(L)?L:g,Ce=A.getAttribute(re);A.setAttribute(re,j(Ce)?B:`${Ce}, ${B}`)},R=(g,L)=>{if(g==="class"){let B=Qe(L);B.length>0&&A.classList.add(...B)}else if(g===":class"||g===Y)Z(":class",Y,L);else if(g==="style"){let B=A.style,re=f.style;for(let Ce of re)B.setProperty(Ce,re.getPropertyValue(Ce))}else g===":style"||g===$?Z(":style",$,L):A.setAttribute(Pt(g,n.o),L)};for(let{name:g,value:L}of S)f.setAttribute(g,L);for(let g of f.getAttributeNames())g===U||g===I||R(g,f.getAttribute(g))},Me=()=>{for(let h of f.getAttributeNames())!h.startsWith("@")&&!h.startsWith(n.o.u.on)&&f.removeAttribute(h)},ke=()=>{xe(),Me(),o.v(Te),n.ve(f,!1),Te.$emit=bt.emit,Ve(n,k),Q(f,()=>{Le(Te)}),Q(M,()=>{Ee(f)}),Ut(Te)};o.C(F,ke)}}re(){let e=this.r,n=e.m,o=e.o.te,r=n.ft(),s=this.it(o);return[...s?[s]:[],...r,...r.map(Je)].join(",")}Z(e){var o;let n=this.re();return!j(n)&&((o=e.matches)==null?void 0:o.call(e,n))}lt(e,n){var s;let o=[];if(j(n))return o;if((s=e.matches)!=null&&s.call(e,n))return[e];let r=this.K(e).reverse();for(;r.length>0;){let i=r.pop();if(i.matches(n)){o.push(i);continue}r.push(...this.K(i).reverse())}return o}j(e,n){let o=this.r,r=this.re(),s=o.o.u.is,i=this.K(e).reverse();for(;i.length>0;){let a=i.pop();n(a),!(!j(r)&&a.matches(r))&&(a.hasAttribute(s)||a.hasAttribute("is")||i.push(...this.K(a).reverse()))}}K(e){let n=e==null?void 0:e.children;if((n==null?void 0:n.length)!=null){let r=[];for(let s=0;s<n.length;++s){let i=n[s];Re(i)&&r.push(i)}return r}let o=e==null?void 0:e.childNodes;if((o==null?void 0:o.length)!=null){let r=[];for(let s=0;s<o.length;++s){let i=o[s];Re(i)&&r.push(i)}return r}return[]}};var An=class{constructor(e,n){p(this,"oe");p(this,"se");p(this,"Se",[]);this.oe=e,this.se=n}},Ft=class{constructor(e){p(this,"r");p(this,"Ae");p(this,"ke");p(this,"ie");var o;this.r=e,this.Ae=e.o.dt(),this.ie=new Map;let n=new Map;for(let r of this.Ae){let s=(o=r[0])!=null?o:"",i=n.get(s);i?i.push(r):n.set(s,[r])}this.ke=n}Ve(e){let n=this.ie.get(e);if(n)return n;let o=e,r=o.startsWith(".");r&&(o=":"+o.slice(1));let s=o.indexOf("."),a=(s<0?o:o.substring(0,s)).split(/[:@]/);j(a[0])&&(a[0]=r?".":o[0]);let c=s>=0?o.slice(s+1).split("."):[],l=!1,u=!1;for(let m=0;m<c.length;++m){let y=c[m];if(!l&&y==="camel"?l=!0:!u&&y==="prop"&&(u=!0),l&&u)break}l&&(a[a.length-1]=z(a[a.length-1])),u&&(a[0]=".");let f={terms:a,flags:c};return this.ie.set(e,f),f}we(e,n){let o=new Map;if(!ut(e))return o;let r=this.ke,s=(a,c)=>{var u;let l=r.get((u=c[0])!=null?u:"");if(l)for(let f=0;f<l.length;++f){if(!c.startsWith(l[f]))continue;let m=o.get(c);if(!m){let y=this.Ve(c);m=new An(y.terms,y.flags),o.set(c,m)}m.Se.push(a);return}},i=a=>{var l;let c=a.attributes;if(!(!c||c.length===0))for(let u=0;u<c.length;++u){let f=(l=c.item(u))==null?void 0:l.name;f&&s(a,f)}};return i(e),!n||!e.firstElementChild||this.r.E.j(e,i),o}};var vo=()=>{},us=(t,e)=>{for(let n of t){let o=n.cloneNode(!0);e.appendChild(o)}},qt=class{constructor(e){p(this,"r");p(this,"I");this.r=e,this.I=e.o.u.is}V(e){let n=e.hasAttribute(this.I);return(n||e.hasAttribute("is"))&&this.y(e),this.r.E.Z(e)||this.r.E.j(e,o=>{(o.hasAttribute(this.I)||o.hasAttribute("is"))&&this.y(o)}),n}y(e){let n=e.getAttribute(this.I);if(!n){if(n=e.getAttribute("is"),!n)return;if(!n.startsWith("regor:")){if(!n.startsWith("r-"))return;let o=n.slice(2).trim().toLowerCase();if(!o)return;let r=e.parentNode;if(!r)return;let s=document.createElement(o);for(let i of e.getAttributeNames())i!=="is"&&s.setAttribute(i,e.getAttribute(i));for(;e.firstChild;)s.appendChild(e.firstChild);r.insertBefore(s,e),e.remove(),this.r.$(s);return}n=`'${n.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.I),this.N(e,n)}U(e,n){let o=Ge(e),r=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);r.insertBefore(s,e),We(s,o),o.forEach(a=>{ee(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${n!=null?n:""}`);return r.insertBefore(i,s.nextSibling),{nodes:o,parent:r,commentBegin:s,commentEnd:i}}N(e,n){let{nodes:o,commentBegin:r,commentEnd:s}=this.U(e,` => ${n} `),i=this.r.m.O(n),a=i.value,c=this.r.m,l=c.L(),u={name:""},f=me(e)?o:[...o[0].childNodes],m=()=>{c.C(l,()=>{var b,M;let d=a()[0];if(P(d)&&(d.name?d=d.name:d=(b=Object.entries(c.ne()).filter(D=>D[1]===d)[0])==null?void 0:b[0]),!G(d)||j(d)){we(r,s);return}if(u.name===d)return;we(r,s);let w=(M=s.parentNode)!=null?M:r.parentNode;if(!w)return;let C=document.createElement(d);for(let D of e.getAttributeNames())D!==this.I&&C.setAttribute(D,e.getAttribute(D));us(f,C),w.insertBefore(C,s),this.r.$(C),u.name=d})},y=vo;Q(r,()=>{i.stop(),y(),y=vo}),m(),y=i.subscribe(m)}};var N=t=>{let e=t;return e!=null&&e[J]>0?e():e};var ls=(t,e)=>{let[n,o]=e;W(o)?o(t,n):t.innerHTML=n==null?void 0:n.toString()},zt={mount:()=>({update:({el:t,values:e})=>{ls(t,e)}})};var Kt=class t{constructor(e){p(this,"ae");this.ae=e}static mt(e,n){var y,x;let o=e.m,r=e.o,s=r.u,i=new Set([s.for,s.if,s.else,s.elseif,s.pre]),a=r.B,c=o.ne();if(Object.keys(c).length>0||r.F.size>0)return;let l=e.q,u=[],f=0,m=[];for(let d=n.length-1;d>=0;--d)m.push(n[d]);for(;m.length>0;){let d=m.pop();if(d.nodeType===Node.ELEMENT_NODE){let C=d;if(C.tagName==="TEMPLATE"||C.tagName.includes("-"))return;let b=z(C.tagName).toUpperCase();if(r.F.has(b)||c[b])return;let M=C.attributes;for(let D=0;D<M.length;++D){let U=(y=M.item(D))==null?void 0:y.name;if(!U)continue;if(i.has(U))return;let{terms:I,flags:ne}=l.Ve(U),[K,S]=I,T=(x=a[U])!=null?x:a[K];if(T){if(T===zt)return;u.push({nodeIndex:f,attrName:U,directive:T,option:S,flags:ne})}}++f}let w=d.childNodes;for(let C=w.length-1;C>=0;--C)m.push(w[C])}if(u.length!==0)return new t(u)}y(e,n){let o=[],r=[];for(let s=n.length-1;s>=0;--s)r.push(n[s]);for(;r.length>0;){let s=r.pop();s.nodeType===Node.ELEMENT_NODE&&o.push(s);let i=s.childNodes;for(let a=i.length-1;a>=0;--a)r.push(i[a])}for(let s=0;s<this.ae.length;++s){let i=this.ae[s],a=o[i.nodeIndex];a&&e.y(i.directive,a,i.attrName,!1,i.option,i.flags)}}};var fs=(t,e)=>{let n=e.parentNode;if(n)for(let o=0;o<t.items.length;++o)n.insertBefore(t.items[o],e)},ps=t=>{var a;let e=t.length,n=t.slice(),o=[],r,s,i;for(let c=0;c<e;++c){let l=t[c];if(l===0)continue;let u=o[o.length-1];if(u===void 0||t[u]<l){n[c]=u!=null?u:-1,o.push(c);continue}for(r=0,s=o.length-1;r<s;)i=r+s>>1,t[o[i]]<l?r=i+1:s=i;l<t[o[r]]&&(r>0&&(n[c]=o[r-1]),o[r]=c)}for(r=o.length,s=(a=o[r-1])!=null?a:-1;r-- >0;)o[r]=s,s=n[s];return o},Wt=class{static yt(e){let{oldItems:n,newValues:o,getKey:r,isSameValue:s,mountNewValue:i,removeMountItem:a,endAnchor:c}=e,l=n.length,u=o.length,f=new Array(u),m=new Set;for(let T=0;T<u;++T){let V=r(o[T]);if(V===void 0||m.has(V))return;m.add(V),f[T]=V}let y=new Array(u),x=0,d=l-1,w=u-1;for(;x<=d&&x<=w;){let T=n[x];if(r(T.value)!==f[x]||!s(T.value,o[x]))break;T.value=o[x],y[x]=T,++x}for(;x<=d&&x<=w;){let T=n[d];if(r(T.value)!==f[w]||!s(T.value,o[w]))break;T.value=o[w],y[w]=T,--d,--w}if(x>d){for(let T=w;T>=x;--T){let V=T+1<u?y[T+1].items[0]:c;y[T]=i(T,o[T],V)}return y}if(x>w){for(let T=x;T<=d;++T)a(n[T]);return y}let C=x,b=x,M=w-b+1,D=new Array(M).fill(0),U=new Map;for(let T=b;T<=w;++T)U.set(f[T],T);let I=!1,ne=0;for(let T=C;T<=d;++T){let V=n[T],F=U.get(r(V.value));if(F===void 0){a(V);continue}if(!s(V.value,o[F])){a(V);continue}V.value=o[F],y[F]=V,D[F-b]=T+1,F>=ne?ne=F:I=!0}let K=I?ps(D):[],S=K.length-1;for(let T=M-1;T>=0;--T){let V=b+T,F=V+1<u?y[V+1].items[0]:c;if(D[T]===0){y[V]=i(V,o[V],F);continue}let Fe=y[V];I&&(S>=0&&K[S]===T?--S:Fe&&fs(Fe,F))}return y}};var mt=class{constructor(e){p(this,"x",[]);p(this,"P",new Map);p(this,"ce");this.ce=e}get S(){return this.x.length}ue(e){let n=this.ce(e.value);n!==void 0&&this.P.set(n,e)}pe(e){var o;let n=this.ce((o=this.x[e])==null?void 0:o.value);n!==void 0&&this.P.delete(n)}static ht(e,n){return{items:[],index:e,value:n,order:-1}}v(e){e.order=this.S,this.x.push(e),this.ue(e)}gt(e,n){let o=this.S;for(let r=e;r<o;++r)this.x[r].order=r+1;n.order=e,this.x.splice(e,0,n),this.ue(n)}D(e){return this.x[e]}le(e,n){this.pe(e),this.x[e]=n,this.ue(n),n.order=e}Me(e){this.pe(e),this.x.splice(e,1);let n=this.S;for(let o=e;o<n;++o)this.x[o].order=o}Ne(e){let n=this.S;for(let o=e;o<n;++o)this.pe(o);this.x.splice(e)}nn(e){return this.P.has(e)}bt(e){var o;let n=this.P.get(e);return(o=n==null?void 0:n.order)!=null?o:-1}};var Nn=Symbol("r-for"),ms=t=>-1,So=()=>{},Jt=class Jt{constructor(e){p(this,"r");p(this,"T");p(this,"Oe");p(this,"R");this.r=e,this.T=e.o.u.for,this.Oe=Vt(this.T),this.R=e.o.u.pre}V(e){let n=e.hasAttribute(this.T);return n&&this.Le(e),e.hasAttribute(this.r.o.u.is)||e.hasAttribute("is")||this.r.E.Z(e)||this.r.E.j(e,r=>{r.hasAttribute(this.T)&&this.Le(r)}),n}ee(e){return e[Nn]?!0:(e[Nn]=!0,It(e,this.Oe).forEach(n=>n[Nn]=!0),!1)}Le(e){if(e.hasAttribute(this.R)||this.ee(e))return;let n=e.getAttribute(this.T);if(!n){_(0,this.T,e);return}e.removeAttribute(this.T),this.Tt(e,n)}Ie(e){return pe(e)?[]:(W(e)&&(e=e()),Symbol.iterator in Object(e)?e:typeof e=="number"?(o=>({*[Symbol.iterator](){for(let r=1;r<=o;r++)yield r}}))(e):Object.entries(e))}Tt(e,n){var Tt;let o=this.xt(n);if(!(o!=null&&o.list)){_(1,this.T,n,e);return}let r=this.r.o.u.key,s=this.r.o.u.keyBind,i=(Tt=e.getAttribute(r))!=null?Tt:e.getAttribute(s);e.removeAttribute(r),e.removeAttribute(s);let a=Ge(e),c=Kt.mt(this.r,a),l=e.parentNode;if(!l)return;let u=`${this.T} => ${n}`,f=new Comment(`__begin__ ${u}`);l.insertBefore(f,e),We(f,a),a.forEach(H=>{ee(H)}),e.remove();let m=new Comment(`__end__ ${u}`);l.insertBefore(m,f.nextSibling);let y=this.r,x=y.m,d=x.L(),C=d.length===1?[void 0,d[0]]:void 0,b=this.Rt(i),M=(H,X)=>b(H)===b(X),D=(H,X)=>H===X,U=(H,X,oe)=>{let ae=o.createContext(X,H),xe=mt.ht(ae.index,X),Me=()=>{var A,Y;let ke=(Y=(A=m.parentNode)!=null?A:f.parentNode)!=null?Y:l,h=oe.previousSibling,O=[];for(let $=0;$<a.length;++$){let Z=a[$].cloneNode(!0);ke.insertBefore(Z,oe),O.push(Z)}for(c?c.y(y,O):Ve(y,O),h=h.nextSibling;h!==oe;)xe.items.push(h),h=h.nextSibling};return C?(C[0]=ae.ctx,x.C(C,Me)):x.C(d,()=>{x.v(ae.ctx),Me()}),xe},I=(H,X)=>{let oe=k.D(H).items,ae=oe[oe.length-1].nextSibling;for(let xe of oe)ee(xe);k.le(H,U(H,X,ae))},ne=(H,X)=>{k.v(U(H,X,m))},K=H=>{for(let X of k.D(H).items)ee(X)},S=H=>{let X=k.S;for(let oe=H;oe<X;++oe)k.D(oe).index(oe)},T=H=>{let X=f.parentNode,oe=m.parentNode;if(!X||!oe)return;let ae=k.S;W(H)&&(H=H());let xe=N(H[0]);if(v(xe)&&xe.length===0){we(f,m),k.Ne(0);return}let Me=[];for(let R of this.Ie(H[0]))Me.push(R);let ke=Wt.yt({oldItems:k.x,newValues:Me,getKey:b,isSameValue:D,mountNewValue:(R,g,L)=>U(R,g,L),removeMountItem:R=>{for(let g=0;g<R.items.length;++g)ee(R.items[g])},endAnchor:m});if(ke){k.x=ke,k.P.clear();for(let R=0;R<ke.length;++R){let g=ke[R];g.order=R,g.index(R);let L=b(g.value);L!==void 0&&k.P.set(L,g)}return}let h=0,O=Number.MAX_SAFE_INTEGER,A=ae,Y=this.r.o.forGrowThreshold,$=()=>k.S<A+Y;for(let R of Me){let g=()=>{if(h<ae){let L=k.D(h++);if(M(L.value,R)){if(D(L.value,R))return;I(h-1,R);return}let B=k.bt(b(R));if(B>=h&&B-h<10){if(--h,O=Math.min(O,h),K(h),k.Me(h),--ae,B>h+1)for(let re=h;re<B-1&&re<ae&&!M(k.D(h).value,R);)++re,K(h),k.Me(h),--ae;g();return}$()?(k.gt(h-1,U(h,R,k.D(h-1).items[0])),O=Math.min(O,h-1),++ae):I(h-1,R)}else ne(h++,R)};g()}let Z=h;for(ae=k.S;h<ae;)K(h++);k.Ne(Z),S(O)},V=()=>{F.stop(),Te(),Te=So},F=x.O(o.list),Fe=F.value,Te=So,bt=0,k=new mt(b);for(let H of this.Ie(Fe()[0]))k.v(U(bt++,H,m));Q(f,V),Te=F.subscribe(T)}xt(e){var c,l;let n=Jt.Et.exec(e);if(!n)return;let o=(n[1]+((c=n[2])!=null?c:"")).split(",").map(u=>u.trim()),r=o.length>1?o.length-1:-1,s=r!==-1&&(o[r]==="index"||(l=o[r])!=null&&l.startsWith("#"))?o[r]:"";s&&o.splice(r,1);let i=n[3];if(!i||o.length===0)return;let a=/[{[]/.test(e);return{list:i,createContext:(u,f)=>{let m={},y=N(u);if(!a&&o.length===1)m[o[0]]=u;else if(v(y)){let d=0;for(let w of o)m[w]=y[d++]}else for(let d of o)m[d]=y[d];let x={ctx:m,index:ms};return s&&(x.index=m[s.startsWith("#")?s.substring(1):s]=ie(f)),x}}}Rt(e){if(!e)return o=>o;let n=e.trim();if(!n)return o=>o;if(n.includes(".")){let o=this.Ct(n),r=o.length>1?o.slice(1):void 0;return s=>{let i=N(s),a=this.Pe(i,o);return a!==void 0||!r?a:this.Pe(i,r)}}return o=>{var r;return N((r=N(o))==null?void 0:r[n])}}Ct(e){return e.split(".").filter(n=>n.length>0)}Pe(e,n){var r;let o=e;for(let s of n)o=(r=N(o))==null?void 0:r[s];return N(o)}};p(Jt,"Et",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var Gt=Jt;var Qt=class{constructor(e){p(this,"fe",0);p(this,"de",new Map);p(this,"m");p(this,"De");p(this,"Ue");p(this,"Be");p(this,"E");p(this,"q");p(this,"o");p(this,"R");p(this,"He");this.m=e,this.o=e.o,this.Ue=new Gt(this),this.De=new Lt(this),this.Be=new qt(this),this.E=new _t(this),this.q=new Ft(this),this.R=this.o.u.pre,this.He=this.o.u.dynamic}wt(e){let n=me(e)?[e]:e.querySelectorAll("template");for(let o of n){if(o.hasAttribute(this.R))continue;let r=o.parentNode;if(!r)continue;let s=o.nextSibling;if(o.remove(),!o.content)continue;let i=[...o.content.childNodes];for(let a of i)r.insertBefore(a,s);Ve(this,i)}}$(e){++this.fe;try{if(e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.R)||this.De.V(e)||this.Ue.V(e)||this.Be.V(e))return;this.E.V(e),this.wt(e),this.ve(e,!0)}finally{--this.fe,this.fe===0&&this.vt()}}St(e,n){let o=document;if(!o){let r=e.parentNode;for(;r!=null&&r.parentNode;)r=r.parentNode;if(!r)return null;o=r}return o.querySelector(n)}je(e,n){let o=this.St(e,n);if(!o)return!1;let r=e.parentElement;if(!r)return!1;let s=new Comment(`teleported => '${n}'`);return r.insertBefore(s,e),e.teleportedFrom=s,s.teleportedTo=e,Q(s,()=>{ee(e)}),o.appendChild(e),!0}At(e,n){this.de.set(e,n)}vt(){let e=this.de;if(e.size!==0){this.de=new Map;for(let[n,o]of e.entries())this.je(n,o)}}ve(e,n){var s;let o=this.q.we(e,n),r=this.o.B;for(let[i,a]of o.entries()){let[c,l]=a.oe,u=(s=r[i])!=null?s:r[c];if(!u){console.error("directive not found:",c);continue}let f=a.Se;for(let m=0;m<f.length;++m){let y=f[m];this.y(u,y,i,!1,l,a.se)}}}y(e,n,o,r,s,i){if(n.hasAttribute(this.R))return;let a=n.getAttribute(o);n.removeAttribute(o);let c=l=>{let u=l;for(;u;){let f=u.getAttribute(ct);if(f)return f;u=u.parentElement}return null};if(gn()){let l=c(n);if(l){this.m.C(lo(l),()=>{this.N(e,n,a,s,i)});return}}this.N(e,n,a,s,i)}kt(e,n,o){return e!==Dt?!1:(j(o)||this.je(n,o)||this.At(n,o),!0)}N(e,n,o,r,s){if(n.nodeType!==Node.ELEMENT_NODE||o==null||this.kt(e,n,o))return;let i=this.Vt(r,e.once),a=this.Mt(e,o),c=this.Nt(a,i);Q(n,c.stop);let l=this.Ot(n,o,a,i,r,s),u=this.Lt(e,l,c);if(!u)return;let f=this.It(l,a,i,r,u);f(),e.once||(c.result=a.subscribe(f),i&&(c.dynamic=i.subscribe(f)))}Vt(e,n){let o=yo(e,this.He);if(o)return this.m.O(z(o),void 0,void 0,void 0,n)}Mt(e,n){return this.m.O(n,e.isLazy,e.isLazyKey,e.collectRefObj,e.once)}Nt(e,n){let o={stop:()=>{var r,s,i;e.stop(),n==null||n.stop(),(r=o.result)==null||r.call(o),(s=o.dynamic)==null||s.call(o),(i=o.mounted)==null||i.call(o),o.result=void 0,o.dynamic=void 0,o.mounted=void 0}};return o}Ot(e,n,o,r,s,i){return{el:e,expr:n,values:o.value(),previousValues:void 0,option:r?r.value()[0]:s,previousOption:void 0,flags:i,parseResult:o,dynamicOption:r}}Lt(e,n,o){let r=e.mount(n);if(typeof r=="function"){o.mounted=r;return}return r!=null&&r.unmount&&(o.mounted=r.unmount),r==null?void 0:r.update}It(e,n,o,r,s){let i,a;return()=>{let c=n.value(),l=o?o.value()[0]:r;e.values=c,e.previousValues=i,e.option=l,e.previousOption=a,i=c,a=l,s(e)}}};var Ao="http://www.w3.org/1999/xlink",ds={itemscope:2,allowfullscreen:2,formnovalidate:2,ismap:2,nomodule:2,novalidate:2,readonly:2,async:1,autofocus:1,autoplay:1,controls:1,default:1,defer:1,disabled:1,hidden:1,inert:1,loop:1,open:1,required:1,reversed:1,scoped:1,seamless:1,checked:1,muted:1,multiple:1,selected:1};function hs(t){return!!t||t===""}var ys=(t,e,n,o,r,s)=>{var a;if(o){s&&s.includes("camel")&&(o=z(o)),Xt(t,o,e[0],r);return}let i=e.length;for(let c=0;c<i;++c){let l=e[c];if(v(l)){let u=(a=n==null?void 0:n[c])==null?void 0:a[0],f=l[0],m=l[1];Xt(t,f,m,u)}else if(P(l))for(let u of Object.entries(l)){let f=u[0],m=u[1],y=n==null?void 0:n[c],x=y&&f in y?f:void 0;Xt(t,f,m,x)}else{let u=n==null?void 0:n[c],f=e[c++],m=e[c];Xt(t,f,m,u)}}},Mn={mount:()=>({update:({el:t,values:e,previousValues:n,option:o,previousOption:r,flags:s})=>{ys(t,e,n,o,r,s)}})},Xt=(t,e,n,o)=>{if(o&&o!==e&&t.removeAttribute(o),pe(e)){_(3,"r-bind",t);return}if(!G(e)){_(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){pe(n)?t.removeAttributeNS(Ao,e.slice(6,e.length)):t.setAttributeNS(Ao,e,n);return}let r=e in ds;pe(n)||r&&!hs(n)?t.removeAttribute(e):t.setAttribute(e,r?"":n)};var gs=(t,e,n)=>{let o=e.length;for(let r=0;r<o;++r){let s=e[r],i=n==null?void 0:n[r];if(v(s)){let a=s.length;for(let c=0;c<a;++c)No(t,s[c],i==null?void 0:i[c])}else No(t,s,i)}},kn={mount:()=>({update:({el:t,values:e,previousValues:n})=>{gs(t,e,n)}})},No=(t,e,n)=>{let o=N(e),r=N(n),s=t.classList,i=G(o),a=G(r);if(o&&!i){let c=o;if(r&&!a){let l=r;for(let u in l)(!(u in c)||!N(c[u]))&&s.remove(u)}for(let l in c)N(c[l])&&s.add(l)}else if(i){if(r!==o){let c=a?Qe(r):[],l=Qe(o);c.length>0&&s.remove(...c),l.length>0&&s.add(...l)}}else if(r){let c=a?Qe(r):[];c.length>0&&s.remove(...c)}};function bs(t,e){if(t.length!==e.length)return!1;let n=!0;for(let o=0;n&&o<t.length;o++)n=Se(t[o],e[o]);return n}function Se(t,e){if(t===e)return!0;let n=pn(t),o=pn(e);if(n||o)return n&&o?t.getTime()===e.getTime():!1;if(n=rt(t),o=rt(e),n||o)return t===e;if(n=v(t),o=v(e),n||o)return n&&o?bs(t,e):!1;if(n=P(t),o=P(e),n||o){if(!n||!o)return!1;let r=Object.keys(t).length,s=Object.keys(e).length;if(r!==s)return!1;for(let i in t){let a=Object.prototype.hasOwnProperty.call(t,i),c=Object.prototype.hasOwnProperty.call(e,i);if(a&&!c||!Se(t[i],e[i]))return!1}return!0}return String(t)===String(e)}function Yt(t,e){return t.findIndex(n=>Se(n,e))}var Mo=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var On=t=>{if(!E(t))throw q(3,"pause");t(void 0,void 0,3)};var Ln=t=>{if(!E(t))throw q(3,"resume");t(void 0,void 0,4)};var Oo={mount:({el:t,parseResult:e,flags:n})=>({update:({values:o})=>{Ts(t,o[0])},unmount:xs(t,e,n)})},Ts=(t,e)=>{let n=Po(t);if(n&&Lo(t))v(e)?e=Yt(e,Ae(t))>-1:fe(e)?e=e.has(Ae(t)):e=Ss(t,e),t.checked=e;else if(n&&Io(t))t.checked=Se(e,Ae(t));else if(n||Do(t))Vo(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(Uo(t)){let o=t.options,r=o.length,s=t.multiple;for(let i=0;i<r;i++){let a=o[i],c=Ae(a);if(s)v(e)?a.selected=Yt(e,c)>-1:a.selected=e.has(c);else if(Se(Ae(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else _(7,t)},dt=t=>(E(t)&&(t=t()),W(t)&&(t=t()),t?G(t)?{trim:t.includes("trim"),lazy:t.includes("lazy"),number:t.includes("number"),int:t.includes("int")}:{trim:!!t.trim,lazy:!!t.lazy,number:!!t.number,int:!!t.int}:{trim:!1,lazy:!1,number:!1,int:!1}),Lo=t=>t.type==="checkbox",Io=t=>t.type==="radio",Vo=t=>t.type==="number"||t.type==="range",Po=t=>t.tagName==="INPUT",Do=t=>t.tagName==="TEXTAREA",Uo=t=>t.tagName==="SELECT",xs=(t,e,n)=>{let o=e.value,r=dt(n==null?void 0:n.join(",")),s=dt(o()[1]),i={int:r.int||s.int,lazy:r.lazy||s.lazy,number:r.number||s.number,trim:r.trim||s.trim};if(!e.refs[0])return _(8,t),()=>{};let a=()=>e.refs[0],c=Po(t);return c&&Lo(t)?Es(t,a):c&&Io(t)?As(t,a):c||Do(t)?Cs(t,i,a,o):Uo(t)?Ns(t,a,o):(_(7,t),()=>{})},ko=/[.,' ·٫]/,Cs=(t,e,n,o)=>{let s=e.lazy?"change":"input",i=Vo(t),a=()=>{!e.trim&&!dt(o()[1]).trim||(t.value=t.value.trim())},c=m=>{let y=m.target;y.composing=1},l=m=>{let y=m.target;y.composing&&(y.composing=0,y.dispatchEvent(new Event(s)))},u=()=>{t.removeEventListener(s,f),t.removeEventListener("change",a),t.removeEventListener("compositionstart",c),t.removeEventListener("compositionend",l),t.removeEventListener("change",l)},f=m=>{let y=n();if(!y)return;let x=m.target;if(!x||x.composing)return;let d=x.value,w=dt(o()[1]);if(i||w.number||w.int){if(w.int)d=parseInt(d);else{if(ko.test(d[d.length-1])&&d.split(ko).length===2){if(d+="0",d=parseFloat(d),isNaN(d))d="";else if(y()===d)return}d=parseFloat(d)}isNaN(d)&&(d=""),t.value=d}else w.trim&&(d=d.trim());y(d)};return t.addEventListener(s,f),t.addEventListener("change",a),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",l),t.addEventListener("change",l),u},Es=(t,e)=>{let n="change",o=()=>{t.removeEventListener(n,r)},r=()=>{let s=e();if(!s)return;let i=Ae(t),a=t.checked,c=s();if(v(c)){let l=Yt(c,i),u=l!==-1;a&&!u?c.push(i):!a&&u&&c.splice(l,1)}else fe(c)?a?c.add(i):c.delete(i):s(vs(t,a))};return t.addEventListener(n,r),o},Ae=t=>"_value"in t?t._value:t.value,Ho="trueValue",Rs="falseValue",Bo="true-value",ws="false-value",vs=(t,e)=>{let n=e?Ho:Rs;if(n in t)return t[n];let o=e?Bo:ws;return t.hasAttribute(o)?t.getAttribute(o):e},Ss=(t,e)=>{if(Ho in t)return Se(e,t.trueValue);let o=Bo;return t.hasAttribute(o)?Se(e,t.getAttribute(o)):Se(e,!0)},As=(t,e)=>{let n="change",o=()=>{t.removeEventListener(n,r)},r=()=>{let s=e();if(!s)return;let i=Ae(t);s(i)};return t.addEventListener(n,r),o},Ns=(t,e,n)=>{let o="change",r=()=>{t.removeEventListener(o,s)},s=()=>{let i=e();if(!i)return;let c=dt(n()[1]).number,l=Array.prototype.filter.call(t.options,u=>u.selected).map(u=>c?Mo(Ae(u)):Ae(u));if(t.multiple){let u=i();try{if(On(i),fe(u)){u.clear();for(let f of l)u.add(f)}else v(u)?(u.splice(0),u.push(...l)):i(l)}finally{Ln(i),te(i)}}else i(l[0])};return t.addEventListener(o,s),r};var Ms=["stop","prevent","capture","self","once","left","right","middle","passive"],ks=t=>{let e={};if(j(t))return;let n=t.split(",");for(let o of Ms)e[o]=n.includes(o);return e},Os=(t,e,n,o,r)=>{var l,u;if(o){let f=e.value(),m=N(o.value()[0]);return G(m)?In(t,z(m),()=>e.value()[0],(l=r==null?void 0:r.join(","))!=null?l:f[1]):()=>{}}else if(n){let f=e.value();return In(t,z(n),()=>e.value()[0],(u=r==null?void 0:r.join(","))!=null?u:f[1])}let s=[],i=()=>{s.forEach(f=>f())},a=e.value(),c=a.length;for(let f=0;f<c;++f){let m=a[f];if(W(m)&&(m=m()),P(m))for(let y of Object.entries(m)){let x=y[0],d=()=>{let C=e.value()[f];return W(C)&&(C=C()),C=C[x],W(C)&&(C=C()),C},w=m[x+"_flags"];s.push(In(t,x,d,w))}else _(2,"r-on",t)}return i},Vn={isLazy:(t,e)=>e===-1&&t%2===0,isLazyKey:(t,e)=>e===0&&!t.endsWith("_flags"),once:!1,collectRefObj:!0,mount:({el:t,parseResult:e,option:n,dynamicOption:o,flags:r})=>Os(t,e,n,o,r)},Ls=(t,e)=>{if(t.startsWith("keydown")||t.startsWith("keyup")||t.startsWith("keypress")){e!=null||(e="");let n=[...t.split("."),...e.split(",")];t=n[0];let o=n[1],r=n.includes("ctrl"),s=n.includes("shift"),i=n.includes("alt"),a=n.includes("meta"),c=l=>!(r&&!l.ctrlKey||s&&!l.shiftKey||i&&!l.altKey||a&&!l.metaKey);return o?[t,l=>c(l)?l.key.toUpperCase()===o.toUpperCase():!1]:[t,c]}return[t,n=>!0]},In=(t,e,n,o)=>{if(j(e))return _(5,"r-on",t),()=>{};let r=ks(o),s=r?{capture:r.capture,passive:r.passive,once:r.once}:void 0,i;[e,i]=Ls(e,o);let a=u=>{if(!i(u)||!n&&e==="submit"&&(r!=null&&r.prevent))return;let f=n(u);W(f)&&(f=f(u)),W(f)&&f(u)},c=()=>{t.removeEventListener(e,l,s)},l=u=>{if(!r){a(u);return}try{if(r.left&&u.button!==0||r.middle&&u.button!==1||r.right&&u.button!==2||r.self&&u.target!==t)return;r.stop&&u.stopPropagation(),r.prevent&&u.preventDefault(),a(u)}finally{r.once&&c()}};return t.addEventListener(e,l,s),c};var Is=(t,e,n,o)=>{if(n){o&&o.includes("camel")&&(n=z(n)),Ze(t,n,e[0]);return}let r=e.length;for(let s=0;s<r;++s){let i=e[s];if(v(i)){let a=i[0],c=i[1];Ze(t,a,c)}else if(P(i))for(let a of Object.entries(i)){let c=a[0],l=a[1];Ze(t,c,l)}else{let a=e[s++],c=e[s];Ze(t,a,c)}}},$o={mount:()=>({update:({el:t,values:e,option:n,flags:o})=>{Is(t,e,n,o)}})};function Vs(t){return!!t||t===""}var Ze=(t,e,n)=>{if(pe(e)){_(3,":prop",t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(Ee),1),t[e]=n!=null?n:"";return}let o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){t._value=n;let s=o==="OPTION"?t.getAttribute("value"):t.value,i=n!=null?n:"";s!==i&&(t.value=i),n==null&&t.removeAttribute(e);return}let r=!1;if(n===""||n==null){let s=typeof t[e];s==="boolean"?n=Vs(n):n==null&&s==="string"?(n="",r=!0):s==="number"&&(n=0,r=!0)}try{t[e]=n}catch(s){r||_(4,e,o,n,s)}r&&t.removeAttribute(e)};var jo={once:!0,mount:({el:t,parseResult:e,expr:n})=>{let o=e,r=o.value()[0],s=v(r),i=o.refs[0];return s?r.push(t):i?i==null||i(t):o.context[n]=t,()=>{if(s){let a=r.indexOf(t);a!==-1&&r.splice(a,1)}else i==null||i(null)}}};var Ps=(t,e)=>{let n=He(t).data,o=n._ord;no(o)&&(o=n._ord=t.style.display),at(e[0])?t.style.display=o:t.style.display="none"},_o={mount:()=>({update:({el:t,values:e})=>{Ps(t,e)}})};var Ds=(t,e,n)=>{let o=e.length;for(let r=0;r<o;++r){let s=e[r],i=n==null?void 0:n[r];if(v(s)){let a=s.length;for(let c=0;c<a;++c)Fo(t,s[c],i==null?void 0:i[c])}else Fo(t,s,i)}},Zt={mount:()=>({update:({el:t,values:e,previousValues:n})=>{Ds(t,e,n)}})},Fo=(t,e,n)=>{let o=N(e),r=N(n),s=t.style,i=G(o);if(o&&!i){let a=o;if(r&&!G(r)){let c=r;for(let l in c)N(a[l])==null&&Dn(s,l,"")}for(let c in a)Dn(s,c,a[c])}else{let a=s.display;if(i?r!==o&&(s.cssText=o):r&&t.removeAttribute("style"),"_ord"in He(t).data)return;s.display=a}},qo=/\s*!important$/;function Dn(t,e,n){let o=N(n);if(v(o))o.forEach(r=>{Dn(t,e,r)});else{let r=o==null?"":String(o);if(e.startsWith("--"))t.setProperty(e,r);else{let s=Us(t,e);qo.test(r)?t.setProperty(Je(s),r.replace(qo,""),"important"):t[s]=r}}}var zo=["Webkit","Moz","ms"],Pn={};function Us(t,e){let n=Pn[e];if(n)return n;let o=z(e);if(o!=="filter"&&o in t)return Pn[e]=o;o=lt(o);for(let r=0;r<zo.length;r++){let s=zo[r]+o;if(s in t)return Pn[e]=s}return e}var le=t=>Ko(N(t)),Ko=(t,e=new WeakMap)=>{if(!t||!P(t))return t;if(v(t))return t.map(le);if(fe(t)){let o=new Set;for(let r of t.keys())o.add(le(r));return o}if(Oe(t)){let o=new Map;for(let r of t)o.set(le(r[0]),le(r[1]));return o}if(e.has(t))return N(e.get(t));let n=Ct({},t);e.set(t,n);for(let o of Object.entries(n))n[o[0]]=Ko(N(o[1]),e);return n};var Hs=(t,e)=>{var o;let n=e[0];t.textContent=fe(n)?JSON.stringify(le([...n])):Oe(n)?JSON.stringify(le([...n])):P(n)?JSON.stringify(le(n)):(o=n==null?void 0:n.toString())!=null?o:""},Wo={mount:()=>({update:({el:t,values:e})=>{Hs(t,e)}})};var Go={mount:()=>({update:({el:t,values:e})=>{Ze(t,"value",e[0])}})};var et=t=>(t==null?void 0:t[St])===1;function $e(t){if(pt(t))return t;let e;if(E(t)?(e=t,t=e()):e=ie(t),t instanceof Node||t instanceof Date||t instanceof RegExp||t instanceof Promise||t instanceof Error)return e;if(e[St]=1,v(t)){let n=t.length;for(let o=0;o<n;++o){let r=t[o];et(r)||(t[o]=$e(r))}return e}if(!P(t))return e;for(let n of Object.entries(t)){let o=n[1];if(et(o))continue;let r=n[0];rt(r)||(t[r]=null,t[r]=$e(o))}return e}var De=class De{constructor(e){p(this,"B",{});p(this,"u",{});p(this,"dt",()=>Object.keys(this.B).filter(e=>e.length===1||!e.startsWith(":")));p(this,"te",new Map);p(this,"F",new Map);p(this,"forGrowThreshold",10);p(this,"globalContext");p(this,"useInterpolation",!0);p(this,"propValidationMode","throw");if(this.setDirectives("r-"),e){this.globalContext=e;return}this.globalContext=this.Dt()}static getDefault(){var e;return(e=De.$e)!=null?e:De.$e=new De}Dt(){let e={},n=globalThis;for(let o of De.Pt.split(","))e[o]=n[o];return e.ref=$e,e.sref=ie,e.flatten=le,e}addComponent(...e){for(let n of e){if(!n.defaultName){Ke.warning("Registered component's default name is not defined",n);continue}this.te.set(lt(n.defaultName),n),this.F.set(lt(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this.B={".":$o,":":Mn,"@":Vn,[`${e}on`]:Vn,[`${e}bind`]:Mn,[`${e}html`]:zt,[`${e}text`]:Wo,[`${e}show`]:_o,[`${e}model`]:Oo,":style":Zt,[`${e}style`]:Zt,[`${e}bind:style`]:Zt,":class":kn,[`${e}bind:class`]:kn,":ref":jo,":value":Go,[`${e}teleport`]:Dt},this.u={for:`${e}for`,if:`${e}if`,else:`${e}else`,elseif:`${e}else-if`,pre:`${e}pre`,inherit:`${e}inherit`,text:`${e}text`,context:":context",contextAlias:`${e}context`,bind:`${e}bind`,on:`${e}on`,keyBind:":key",key:"key",is:":is",teleport:`${e}teleport`,dynamic:"_d_"}}updateDirectives(e){e(this.B,this.u)}};p(De,"$e"),p(De,"Pt","Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");var he=De;var en=(t,e)=>{if(!t)return;let o=(e!=null?e:he.getDefault()).u,r=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of $s(t,o.pre,s))Bs(i,o.text,r,s)},Bs=(t,e,n,o)=>{var c;let r=t.textContent;if(!r)return;let s=n,i=r.split(s);if(i.length<=1)return;if(((c=t.parentElement)==null?void 0:c.childNodes.length)===1&&i.length===3){let l=i[1],u=Jo(l,o);if(u&&j(i[0])&&j(i[2])){let f=t.parentElement;f.setAttribute(e,l.substring(u.start.length,l.length-u.end.length)),f.innerText="";return}}let a=document.createDocumentFragment();for(let l of i){let u=Jo(l,o);if(u){let f=document.createElement("span");f.setAttribute(e,l.substring(u.start.length,l.length-u.end.length)),a.appendChild(f)}else a.appendChild(document.createTextNode(l))}t.replaceWith(a)},$s=(t,e,n)=>{let o=[],r=s=>{var i;if(s.nodeType===Node.TEXT_NODE)n.some(a=>{var c;return(c=s.textContent)==null?void 0:c.includes(a.start)})&&o.push(s);else{if((i=s==null?void 0:s.hasAttribute)!=null&&i.call(s,e))return;for(let a of ve(s))r(a)}};return r(t),o},Jo=(t,e)=>e.find(n=>t.startsWith(n.start)&&t.endsWith(n.end));var js=9,_s=10,Fs=13,qs=32,Ne=46,tn=44,zs=39,Ks=34,nn=40,tt=41,on=91,Un=93,Hn=63,Ws=59,Qo=58,Xo=123,rn=125,je=43,sn=45,Bn=96,Yo=47,$n=92,Zo=new Set([2,3]),sr={"=":2.5,"*=":2.5,"**=":2.5,"/=":2.5,"%=":2.5,"+=":2.5,"-=":2.5,"<<=":2.5,">>=":2.5,">>>=":2.5,"&=":2.5,"^=":2.5,"|=":2.5},Gs=Zn(Ct({"=>":2},sr),{"||":3,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"/":12,"%":12,"**":13}),ir=Object.keys(sr),Js=new Set(ir),_n=new Set(["=>"]);ir.forEach(t=>_n.add(t));var er={true:!0,false:!1,null:null},Qs="this",nt="Expected ",_e="Unexpected ",qn="Unclosed ",Xs=nt+":",tr=nt+"expression",Ys="missing }",Zs=_e+"object property",ei=qn+"(",nr=nt+"comma",or=_e+"token ",ti=_e+"period",jn=nt+"expression after ",ni="missing unaryOp argument",oi=qn+"[",ri=nt+"exponent (",si="Variable names cannot start with a number (",ii=qn+'quote after "',ht=t=>t>=48&&t<=57,rr=t=>Gs[t],Fn=class{constructor(e){p(this,"p");p(this,"e");this.p=e,this.e=0}get H(){return this.p.charAt(this.e)}get h(){return this.p.charCodeAt(this.e)}f(e){return this.p.charCodeAt(this.e)===e}z(e){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>=128}me(e){return this.z(e)||ht(e)}i(e){return new Error(`${e} at character ${this.e}`)}g(){let e=this.h,n=this.p,o=this.e;for(;e===qs||e===js||e===_s||e===Fs;)e=n.charCodeAt(++o);this.e=o}parse(){let e=this.ye();return e.length===1?e[0]:{type:0,body:e}}ye(e){let n=[];for(;this.e<this.p.length;){let o=this.h;if(o===Ws||o===tn)this.e++;else{let r=this.A();if(r)n.push(r);else if(this.e<this.p.length){if(o===e)break;throw this.i(_e+'"'+this.H+'"')}}}return n}A(){var n;let e=(n=this.Ut())!=null?n:this._e();return this.g(),this.Bt(e)}he(){this.g();let e=this.p,n=this.e,o=e.charCodeAt(n),r=e.charCodeAt(n+1),s=e.charCodeAt(n+2),i=e.charCodeAt(n+3);if(isNaN(o))return!1;let a=!1,c=0;return o===62&&r===62&&s===62&&i===61?(a=">>>=",c=4):o===61&&r===61&&s===61?(a="===",c=3):o===33&&r===61&&s===61?(a="!==",c=3):o===62&&r===62&&s===62?(a=">>>",c=3):o===60&&r===60&&s===61?(a="<<=",c=3):o===62&&r===62&&s===61?(a=">>=",c=3):o===42&&r===42&&s===61?(a="**=",c=3):o===61&&r===62?(a="=>",c=2):o===124&&r===124?(a="||",c=2):o===63&&r===63?(a="??",c=2):o===38&&r===38?(a="&&",c=2):o===61&&r===61?(a="==",c=2):o===33&&r===61?(a="!=",c=2):o===60&&r===61?(a="<=",c=2):o===62&&r===61?(a=">=",c=2):o===60&&r===60?(a="<<",c=2):o===62&&r===62?(a=">>",c=2):o===43&&r===61?(a="+=",c=2):o===45&&r===61?(a="-=",c=2):o===42&&r===61?(a="*=",c=2):o===47&&r===61?(a="/=",c=2):o===37&&r===61?(a="%=",c=2):o===38&&r===61?(a="&=",c=2):o===94&&r===61?(a="^=",c=2):o===124&&r===61?(a="|=",c=2):o===42&&r===42?(a="**",c=2):o===105&&r===110?this.me(e.charCodeAt(n+2))||(a="in",c=2):o===61?(a="=",c=1):o===124?(a="|",c=1):o===94?(a="^",c=1):o===38?(a="&",c=1):o===60?(a="<",c=1):o===62?(a=">",c=1):o===43?(a="+",c=1):o===45?(a="-",c=1):o===42?(a="*",c=1):o===47?(a="/",c=1):o===37&&(a="%",c=1),a?(this.e+=c,a):!1}_e(){let e,n,o,r,s,i,a,c;if(s=this.W(),!s||(n=this.he(),!n))return s;if(r={value:n,prec:rr(n),right_a:_n.has(n)},i=this.W(),!i)throw this.i(jn+n);let l=[s,r,i];for(;n=this.he();){o=rr(n),r={value:n,prec:o,right_a:_n.has(n)},c=n;let u=f=>r.right_a&&f.right_a?o>f.prec:o<=f.prec;for(;l.length>2&&u(l[l.length-2]);)i=l.pop(),n=l.pop().value,s=l.pop(),e=this.Fe(n,s,i),l.push(e);if(e=this.W(),!e)throw this.i(jn+c);l.push(r,e)}for(a=l.length-1,e=l[a];a>1;)e=this.Fe(l[a-1].value,l[a-2],e),a-=2;return e}W(){let e;if(this.g(),e=this.Ht(),e)return this.ge(e);let n=this.h;if(ht(n)||n===Ne)return this.jt();if(n===zs||n===Ks)e=this.$t();else if(n===on)e=this._t();else{let o=this.Ft();if(o){let r=this.W();if(!r)throw this.i(ni);return this.ge({type:7,operator:o,argument:r})}this.z(n)?(e=this.be(),e.name in er?e={type:4,value:er[e.name],raw:e.name}:e.name===Qs&&(e={type:5})):n===nn&&(e=this.qt())}return e?(e=this.G(e),this.ge(e)):!1}Fe(e,n,o){if(e==="=>"){let r=n.type===1?n.expressions:[n];return{type:15,params:r,body:o}}return Js.has(e)?{type:16,operator:e,left:n,right:o}:{type:8,operator:e,left:n,right:o}}Ht(){let e={node:!1};return this.Kt(e),e.node||(this.zt(e),e.node)||(this.Wt(e),e.node)||(this.qe(e),e.node)||this.Gt(e),e.node}ge(e){let n={node:e};return this.Jt(n),this.Qt(n),this.Xt(n),n.node}Ft(){let e=this.p,n=this.e,o=e.charCodeAt(n),r=e.charCodeAt(n+1),s=e.charCodeAt(n+2),i=e.charCodeAt(n+3);return o===sn?(this.e++,"-"):o===33?(this.e++,"!"):o===126?(this.e++,"~"):o===je?(this.e++,"+"):o===110&&r===101&&s===119&&!this.me(i)?(this.e+=3,"new"):!1}Ut(){let e={};return this.Yt(e),e.node}Bt(e){let n={node:e};return this.Zt(n),n.node}G(e){this.g();let n=this.h;for(;n===Ne||n===on||n===nn||n===Hn;){let o;if(n===Hn){if(this.p.charCodeAt(this.e+1)!==Ne)break;o=!0,this.e+=2,this.g(),n=this.h}if(this.e++,n===on){if(e={type:3,computed:!0,object:e,property:this.A()},this.g(),n=this.h,n!==Un)throw this.i(oi);this.e++}else n===nn?e={type:6,arguments:this.Ke(tt),callee:e}:(o&&this.e--,this.g(),e={type:3,computed:!1,object:e,property:this.be()});o&&(e.optional=!0),this.g(),n=this.h}return e}jt(){let e=this.p,n=this.e,o=n;for(;ht(e.charCodeAt(o));)o++;if(e.charCodeAt(o)===Ne)for(o++;ht(e.charCodeAt(o));)o++;let r=e.charCodeAt(o);if(r===101||r===69){o++;let a=e.charCodeAt(o);(a===je||a===sn)&&o++;let c=o;for(;ht(e.charCodeAt(o));)o++;if(c===o){this.e=o;let l=e.slice(n,o);throw this.i(ri+l+this.H+")")}}this.e=o;let s=e.slice(n,o),i=e.charCodeAt(o);if(this.z(i))throw this.i(si+s+this.H+")");if(i===Ne||s.length===1&&s.charCodeAt(0)===Ne)throw this.i(ti);return{type:4,value:parseFloat(s),raw:s}}$t(){let e=this.p,n=e.length,o=this.e,r=e.charCodeAt(this.e++),s=this.e,i=s,a=[],c=!1,l=!1;for(;s<n;){let f=e.charCodeAt(s);if(f===r){l=!0,this.e=s+1;break}if(f===$n){c||(c=!0),a.push(e.slice(i,s));let m=e.charCodeAt(s+1);a.push(this.ze(m)),s+=2,i=s}else s++}let u=c?a.join("")+e.slice(i,l?s:n):e.slice(i,l?s:n);if(!l)throw this.e=s,this.i(ii+u+'"');return{type:4,value:u,raw:e.substring(o,this.e)}}ze(e){switch(e){case 110:return`
|
|
2
|
-
`;case 114:return"\r";case 116:return" ";case 98:return"\b";case 102:return"\f";case 118:return"\v";default:return isNaN(e)?"":String.fromCharCode(e)}}be(){let e=this.h,n=this.e;if(this.z(e))this.e++;else throw this.i(_e+this.H);for(;this.e<this.p.length&&(e=this.h,this.me(e));)this.e++;return{type:2,name:this.p.slice(n,this.e)}}Ke(e){let n=[],o=!1,r=0;for(;this.e<this.p.length;){this.g();let s=this.h;if(s===e){if(o=!0,this.e++,e===tt&&r&&r>=n.length)throw this.i(or+String.fromCharCode(e));break}else if(s===tn){if(this.e++,r++,r!==n.length){if(e===tt)throw this.i(or+",");for(let i=n.length;i<r;i++)n.push(null)}}else{if(n.length!==r&&r!==0)throw this.i(nr);{let i=this.A();if(!i||i.type===0)throw this.i(nr);n.push(i)}}}if(!o)throw this.i(nt+String.fromCharCode(e));return n}qt(){this.e++;let e=this.ye(tt);if(this.f(tt))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.i(ei)}_t(){return this.e++,{type:9,elements:this.Ke(Un)}}Kt(e){if(this.f(Xo)){this.e++;let n=[];for(;!isNaN(this.h);){if(this.g(),this.f(rn)){this.e++,e.node=this.G({type:10,properties:n});return}let o=this.A();if(!o)break;if(this.g(),o.type===2&&(this.f(tn)||this.f(rn)))n.push({type:12,computed:!1,key:o,value:o,shorthand:!0});else if(this.f(Qo)){this.e++;let r=this.A();if(!r)throw this.i(Zs);let s=o.type===9;n.push({type:12,computed:s,key:s?o.elements[0]:o,value:r,shorthand:!1}),this.g()}else n.push(o);this.f(tn)&&this.e++}throw this.i(Ys)}}zt(e){let n=this.h;if((n===je||n===sn)&&n===this.p.charCodeAt(this.e+1)){this.e+=2;let o=e.node={type:13,operator:n===je?"++":"--",argument:this.G(this.be()),prefix:!0};if(!o.argument||!Zo.has(o.argument.type))throw this.i(_e+o.operator)}}Qt(e){let n=e.node,o=this.h;if((o===je||o===sn)&&o===this.p.charCodeAt(this.e+1)){if(!Zo.has(n.type))throw this.i(_e+(o===je?"++":"--"));this.e+=2,e.node={type:13,operator:o===je?"++":"--",argument:n,prefix:!1}}}Wt(e){this.p.charCodeAt(this.e)===Ne&&this.p.charCodeAt(this.e+1)===Ne&&this.p.charCodeAt(this.e+2)===Ne&&(this.e+=3,e.node={type:14,argument:this.A()})}Zt(e){if(e.node&&this.f(Hn)){this.e++;let n=e.node,o=this.A();if(!o)throw this.i(tr);if(this.g(),this.f(Qo)){this.e++;let r=this.A();if(!r)throw this.i(tr);e.node={type:11,test:n,consequent:o,alternate:r}}else throw this.i(Xs)}}Yt(e){if(this.g(),this.f(nn)){let n=this.e;if(this.e++,this.g(),this.f(tt)){this.e++;let o=this.he();if(o==="=>"){let r=this._e();if(!r)throw this.i(jn+o);e.node={type:15,params:null,body:r};return}}this.e=n}}Xt(e){let n=e.node,o=n.type;(o===2||o===3)&&this.f(Bn)&&(e.node={type:17,tag:n,quasi:this.qe(e)})}qe(e){if(!this.f(Bn))return;let n=this.p,o=n.length,r={type:19,quasis:[],expressions:[]},s=++this.e,i=[],a=[],c=!1,l=u=>{if(!c){let y=n.slice(s,this.e);return r.quasis.push({type:18,value:{raw:y,cooked:y},tail:u})}i.push(n.slice(s,this.e)),a.push(n.slice(s,this.e));let f=i.join(""),m=a.join("");return i.length=0,a.length=0,c=!1,r.quasis.push({type:18,value:{raw:f,cooked:m},tail:u})};for(;this.e<o;){let u=n.charCodeAt(this.e);if(u===Bn)return l(!0),this.e+=1,e.node=r,r;if(u===36&&n.charCodeAt(this.e+1)===Xo){if(l(!1),this.e+=2,r.expressions.push(...this.ye(rn)),!this.f(rn))throw this.i("unclosed ${");this.e+=1,s=this.e}else if(u===$n){c||(c=!0),i.push(n.slice(s,this.e)),a.push(n.slice(s,this.e));let f=n.charCodeAt(this.e+1);i.push(n.slice(this.e,this.e+2)),a.push(this.ze(f)),this.e+=2,s=this.e}else this.e+=1}throw this.i("Unclosed `")}Jt(e){let n=e.node;if(!n||n.operator!=="new"||!n.argument)return;if(!n.argument||![6,3].includes(n.argument.type))throw this.i("Expected new function()");e.node=n.argument;let o=e.node;for(;o.type===3||o.type===6&&o.callee.type===3;)o=o.type===3?o.object:o.callee.object;o.type=20}Gt(e){if(!this.f(Yo))return;let n=++this.e,o=!1;for(;this.e<this.p.length;){if(this.h===Yo&&!o){let r=this.p.slice(n,this.e),s="";for(;++this.e<this.p.length;){let a=this.h;if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)s+=this.H;else break}let i;try{i=new RegExp(r,s)}catch(a){throw this.i(a.message)}return e.node={type:4,value:i,raw:this.p.slice(n-1,this.e)},e.node=this.G(e.node),e.node}this.f(on)?o=!0:o&&this.f(Un)&&(o=!1),this.e+=this.f($n)?2:1}throw this.i("Unclosed Regex")}},ar=t=>new Fn(t).parse();var ai={"=>":(t,e)=>{},"=":(t,e)=>{},"*=":(t,e)=>{},"**=":(t,e)=>{},"/=":(t,e)=>{},"%=":(t,e)=>{},"+=":(t,e)=>{},"-=":(t,e)=>{},"<<=":(t,e)=>{},">>=":(t,e)=>{},">>>=":(t,e)=>{},"&=":(t,e)=>{},"^=":(t,e)=>{},"|=":(t,e)=>{},"||":(t,e)=>t()||e(),"??":(t,e)=>{var n;return(n=t())!=null?n:e()},"&&":(t,e)=>t()&&e(),"|":(t,e)=>t|e,"^":(t,e)=>t^e,"&":(t,e)=>t&e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,in:(t,e)=>t in e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"**":(t,e)=>xt(t,e)},ci={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},fr=t=>{if(!(t!=null&&t.some(lr)))return t;let e=[];return t.forEach(n=>lr(n)?e.push(...n):e.push(n)),e},cr=(...t)=>fr(t),zn=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},ui={"++":(t,e)=>{let n=t[e];if(E(n)){let o=n();return n(++o),o}return++t[e]},"--":(t,e)=>{let n=t[e];if(E(n)){let o=n();return n(--o),o}return--t[e]}},li={"++":(t,e)=>{let n=t[e];if(E(n)){let o=n();return n(o+1),o}return t[e]++},"--":(t,e)=>{let n=t[e];if(E(n)){let o=n();return n(o-1),o}return t[e]--}},ur={"=":(t,e,n)=>{let o=t[e];return E(o)?o(n):t[e]=n},"+=":(t,e,n)=>{let o=t[e];return E(o)?o(o()+n):t[e]+=n},"-=":(t,e,n)=>{let o=t[e];return E(o)?o(o()-n):t[e]-=n},"*=":(t,e,n)=>{let o=t[e];return E(o)?o(o()*n):t[e]*=n},"/=":(t,e,n)=>{let o=t[e];return E(o)?o(o()/n):t[e]/=n},"%=":(t,e,n)=>{let o=t[e];return E(o)?o(o()%n):t[e]%=n},"**=":(t,e,n)=>{let o=t[e];return E(o)?o(xt(o(),n)):t[e]=xt(t[e],n)},"<<=":(t,e,n)=>{let o=t[e];return E(o)?o(o()<<n):t[e]<<=n},">>=":(t,e,n)=>{let o=t[e];return E(o)?o(o()>>n):t[e]>>=n},">>>=":(t,e,n)=>{let o=t[e];return E(o)?o(o()>>>n):t[e]>>>=n},"|=":(t,e,n)=>{let o=t[e];return E(o)?o(o()|n):t[e]|=n},"&=":(t,e,n)=>{let o=t[e];return E(o)?o(o()&n):t[e]&=n},"^=":(t,e,n)=>{let o=t[e];return E(o)?o(o()^n):t[e]^=n}},an=(t,e)=>W(t)?t.bind(e):t,Kn=class{constructor(e,n,o,r,s){p(this,"l");p(this,"We");p(this,"Ge");p(this,"Je");p(this,"k");p(this,"Qe");p(this,"Xe");this.l=v(e)?e:[e],this.We=n,this.Ge=o,this.Je=r,this.Xe=!!s}Ye(e,n){if(n&&e in n)return n;for(let o of this.l)if(e in o)return o}2(e,n,o){let r=e.name;if(r==="$root")return this.l[this.l.length-1];if(r==="$parent")return this.l[1];if(r==="$ctx")return[...this.l];if(o&&r in o)return this.k=o[r],an(N(o[r]),o);for(let i of this.l)if(r in i)return this.k=i[r],an(N(i[r]),i);let s=this.We;if(s&&r in s)return this.k=s[r],an(N(s[r]),s)}5(e,n,o){return this.l[0]}0(e,n,o){return this.Ze(n,o,cr,...e.body)}1(e,n,o){return this.w(n,o,(...r)=>r.pop(),...e.expressions)}3(e,n,o){let{obj:r,key:s}=this.Te(e,n,o),i=r==null?void 0:r[s];return this.k=i,an(N(i),r)}4(e,n,o){return e.value}6(e,n,o){let r=(i,...a)=>W(i)?i(...fr(a)):i,s=this.w(++n,o,r,e.callee,...e.arguments);return this.k=s,s}7(e,n,o){return this.w(n,o,ci[e.operator],e.argument)}8(e,n,o){let r=ai[e.operator];switch(e.operator){case"||":case"&&":case"??":return r(()=>this.b(e.left,n,o),()=>this.b(e.right,n,o))}return this.w(n,o,r,e.left,e.right)}9(e,n,o){return this.Ze(++n,o,cr,...e.elements)}10(e,n,o){let r={},s=(...i)=>{i.forEach(a=>{Object.assign(r,a)})};return this.w(++n,o,s,...e.properties),r}11(e,n,o){return this.w(n,o,r=>this.b(r?e.consequent:e.alternate,n,o),e.test)}12(e,n,o){var u;let r={},s=f=>(f==null?void 0:f.type)!==15,i=(u=this.Je)!=null?u:()=>!1,a=n===0&&this.Xe,c=f=>this.et(a,e.key,n,zn(f,o)),l=f=>this.et(a,e.value,n,zn(f,o));if(e.shorthand){let f=e.key.name;r[f]=s(e.key)&&i(f,n)?c:c()}else if(e.computed){let f=N(c());r[f]=s(e.value)&&i(f,n)?l:l()}else{let f=e.key.type===4?e.key.value:e.key.name;r[f]=s(e.value)&&i(f,n)?()=>l:l()}return r}Te(e,n,o){let r=this.b(e.object,n,o),s=e.computed?this.b(e.property,n,o):e.property.name;return{obj:r,key:s}}13(e,n,o){let r=e.argument,s=e.operator,i=e.prefix?ui:li;if(r.type===2){let a=r.name,c=this.Ye(a,o);return pe(c)?void 0:i[s](c,a)}if(r.type===3){let{obj:a,key:c}=this.Te(r,n,o);return i[s](a,c)}}16(e,n,o){let r=e.left,s=e.operator;if(r.type===2){let i=r.name,a=this.Ye(i,o);if(pe(a))return;let c=this.b(e.right,n,o);return ur[s](a,i,c)}if(r.type===3){let{obj:i,key:a}=this.Te(r,n,o),c=this.b(e.right,n,o);return ur[s](i,a,c)}}14(e,n,o){let r=this.b(e.argument,n,o);return v(r)&&(r.s=pr),r}17(e,n,o){return this[6]({type:6,callee:e.tag,arguments:[{type:9,elements:e.quasi.quasis},...e.quasi.expressions]},n,o)}19(e,n,o){let r=(...s)=>s.reduce((i,a,c)=>i+=a+e.quasis[c+1].value.cooked,e.quasis[0].value.cooked);return this.w(n,o,r,...e.expressions)}18(e,n,o){return e.value.cooked}20(e,n,o){let r=(s,...i)=>new s(...i);return this.w(n,o,r,e.callee,...e.arguments)}15(e,n,o){return(...r)=>{let s=Object.create(o!=null?o:{}),i=e.params;if(i){let a=0;for(let c of i)s[c.name]=r[a++]}return this.b(e.body,n,s)}}b(e,n,o){let r=N(this[e.type](e,n,o));return this.Qe=e.type,r}et(e,n,o,r){let s=this.b(n,o,r);return e&&this.tt()?this.k:s}tt(){let e=this.Qe;return(e===2||e===3||e===6)&&E(this.k)}eval(e,n){let{value:o,refs:r}=vn(()=>this.b(e,-1,n)),s={value:o,refs:r};return this.tt()&&(s.ref=this.k),s}w(e,n,o,...r){let s=r.map(i=>i&&this.b(i,e,n));return o(...s)}Ze(e,n,o,...r){let s=this.Ge;if(!s)return this.w(e,n,o,...r);let i=r.map((a,c)=>a&&(a.type!==15&&s(c,e)?l=>this.b(a,e,zn(l,n)):this.b(a,e,n)));return o(...i)}},pr=Symbol("s"),lr=t=>(t==null?void 0:t.s)===pr,mr=(t,e,n,o,r,s,i)=>new Kn(e,n,o,r,i).eval(t,s);var dr={},hr=t=>!!t,cn=class{constructor(e,n){p(this,"l");p(this,"o");p(this,"nt",[]);this.l=e,this.o=n}v(e){this.l=[e,...this.l]}ne(){return this.l.map(n=>n.components).filter(hr).reverse().reduce((n,o)=>{for(let[r,s]of Object.entries(o))n[r.toUpperCase()]=s;return n},{})}ft(){let e=[],n=new Set,o=this.l.map(r=>r.components).filter(hr).reverse();for(let r of o)for(let s of Object.keys(r))n.has(s)||(n.add(s),e.push(s));return e}O(e,n,o,r,s){var C;let i=[],a=[],c=new Set,l=()=>{for(let b=0;b<a.length;++b)a[b]();a.length=0},m={value:()=>i,stop:()=>{l(),c.clear()},subscribe:(b,M)=>(c.add(b),M&&b(i),()=>{c.delete(b)}),refs:[],context:this.l[0]};if(j(e))return m;let y=this.o.globalContext,x=[],d=new Set,w=(b,M,D,U)=>{try{let I=mr(b,M,y,n,o,U,r);return D&&I.refs.length>0&&x.push(...I.refs),{value:I.value,refs:I.refs,ref:I.ref}}catch(I){_(6,`evaluation error: ${e}`,I)}return{value:void 0,refs:[]}};try{let b=(C=dr[e])!=null?C:ar("["+e+"]");dr[e]=b;let M=this.l.slice(),D=b.elements,U=D.length,I=new Array(U);m.refs=I;let ne=()=>{x.length=0,s||(d.clear(),l());let K=new Array(U);for(let S=0;S<U;++S){let T=D[S];if(n!=null&&n(S,-1)){K[S]=F=>w(T,M,!1,{$event:F}).value;continue}let V=w(T,M,!0);K[S]=V.value,I[S]=V.ref}if(!s)for(let S of x)d.has(S)||(d.add(S),a.push(se(S,ne)));if(i=K,c.size!==0)for(let S of c)c.has(S)&&S(i)};ne()}catch(b){_(6,`parse error: ${e}`,b)}return m}L(){return this.l.slice()}le(e){this.nt.push(this.l),this.l=e}C(e,n){try{this.le(e),n()}finally{this.en()}}en(){var e;this.l=(e=this.nt.pop())!=null?e:[]}};var yr=t=>{let e=t.charCodeAt(0);return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||t==="-"||t==="_"||t===":"},fi=(t,e)=>{let n="";for(let o=e;o<t.length;++o){let r=t[o];if(n){r===n&&(n="");continue}if(r==='"'||r==="'"){n=r;continue}if(r===">")return o}return-1},pi=(t,e)=>{let n=e?2:1;for(;n<t.length&&(t[n]===" "||t[n]===`
|
|
3
|
-
`);)++n;if(n>=t.length||!
|
|
1
|
+
var Rr=Object.defineProperty,wr=Object.defineProperties;var vr=Object.getOwnPropertyDescriptors;var Yn=Object.getOwnPropertySymbols;var Sr=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable;var xt=Math.pow,ln=(t,e,n)=>e in t?Rr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ct=(t,e)=>{for(var n in e||(e={}))Sr.call(e,n)&&ln(t,n,e[n]);if(Yn)for(var n of Yn(e))Ar.call(e,n)&&ln(t,n,e[n]);return t},Zn=(t,e)=>wr(t,vr(e));var p=(t,e,n)=>ln(t,typeof e!="symbol"?e+"":e,n);var eo=(t,e,n)=>new Promise((o,r)=>{var s=c=>{try{a(n.next(c))}catch(f){r(f)}},i=c=>{try{a(n.throw(c))}catch(f){r(f)}},a=c=>c.done?o(c.value):Promise.resolve(c.value).then(s,i);a((n=n.apply(t,e)).next())});var qe=Symbol(":regor");var Ee=t=>{let e=[t];for(let n=0;n<e.length;++n){let o=e[n];Nr(o);for(let r=o.lastChild;r!=null;r=r.previousSibling)e.push(r)}},Nr=t=>{let e=t[qe];if(!e)return;let n=e.unbinders;for(let o=0;o<n.length;++o)n[o]();n.length=0,t[qe]=void 0};var ze=[],Et=!1,Rt,to=()=>{if(Et=!1,Rt=void 0,ze.length!==0){for(let t=0;t<ze.length;++t)Ee(ze[t]);ze.length=0}},ee=t=>{t.remove(),ze.push(t),Et||(Et=!0,Rt=setTimeout(to,1))},Mr=()=>eo(null,null,function*(){ze.length===0&&!Et||(Rt&&clearTimeout(Rt),to())});var W=t=>typeof t=="function",G=t=>typeof t=="string",no=t=>typeof t=="undefined",pe=t=>t==null||typeof t=="undefined",j=t=>typeof t!="string"||!(t!=null&&t.trim()),Or=Object.prototype.toString,fn=t=>Or.call(t),ke=t=>fn(t)==="[object Map]",fe=t=>fn(t)==="[object Set]",pn=t=>fn(t)==="[object Date]",rt=t=>typeof t=="symbol",v=Array.isArray,P=t=>t!==null&&typeof t=="object";var oo={0:"createApp can't find root element. You must define either a valid `selector` or an `element`. Example: createApp({}, {selector: '#app', html: '...'})",1:t=>`Component template cannot be found. selector: ${t} .`,2:"Use composables in scope. usage: useScope(() => new MyApp()).",3:t=>`${t} requires ref source argument`,4:"computed is readonly.",5:"persist requires a string key."},q=(t,...e)=>{let n=oo[t];return new Error(W(n)?n.call(oo,...e):n)};var wt=[],ro=()=>{let t={onMounted:[],onUnmounted:[]};return wt.push(t),t},Ue=t=>{let e=wt[wt.length-1];if(!e&&!t)throw q(2);return e},so=t=>{let e=Ue();return t&&dn(t),wt.pop(),e},mn=Symbol("csp"),dn=t=>{let e=t,n=e[mn];if(n){let o=Ue();if(n===o)return;o.onMounted.length>0&&n.onMounted.push(...o.onMounted),o.onUnmounted.length>0&&n.onUnmounted.push(...o.onUnmounted);return}e[mn]=Ue()},vt=t=>t[mn];var Le=t=>{var n,o;let e=(n=vt(t))==null?void 0:n.onUnmounted;e==null||e.forEach(r=>{r()}),(o=t.unmounted)==null||o.call(t)};var io={8:t=>`Model binding requires a ref at ${t.outerHTML}`,7:t=>`Model binding is not supported on ${t.tagName} element at ${t.outerHTML}`,0:(t,e)=>`${t} binding expression is missing at ${e.outerHTML}`,1:(t,e,n)=>`invalid ${t} expression: ${e} at ${n.outerHTML}`,2:(t,e)=>`${t} requires object expression at ${e.outerHTML}`,3:(t,e)=>`${t} binder: key is empty on ${e.outerHTML}.`,4:(t,e,n,o)=>({msg:`Failed setting prop "${t}" on <${e.toLowerCase()}>: value ${n} is invalid.`,args:[o]}),5:(t,e)=>`${t} binding missing event type at ${e.outerHTML}`,6:(t,e)=>({msg:t,args:[e]})},_=(t,...e)=>{let n=io[t],o=W(n)?n.call(io,...e):n,r=Ke.warning;r&&(G(o)?r(o):r(o,...o.args))},Ke={warning:console.warn};var St=Symbol("ref"),J=Symbol("sref"),At=Symbol("raw");var E=t=>t!=null&&t[J]>0;var Ie=class extends Error{constructor(n,o){super(o);p(this,"propPath");p(this,"detail");this.name="PropValidationError",this.propPath=n,this.detail=o}},ge=(t,e)=>{throw new Ie(t,`${e}.`)},Nt=t=>{var n;if(t===null)return"null";if(t===void 0)return"undefined";if(E(t))return`ref<${Nt(t())}>`;if(typeof t=="string")return"string";if(typeof t=="number")return"number";if(typeof t=="boolean")return"boolean";if(typeof t=="bigint")return"bigint";if(typeof t=="symbol")return"symbol";if(typeof t=="function")return"function";if(v(t))return"array";if(t instanceof Date)return"Date";if(t instanceof RegExp)return"RegExp";if(t instanceof Map)return"Map";if(t instanceof Set)return"Set";let e=(n=t==null?void 0:t.constructor)==null?void 0:n.name;return e&&e!=="Object"?e:"object"},kr=t=>t.length>60?`${t.slice(0,57)}...`:t,st=(t,e=0)=>{if(e>1)return"unknown";if(E(t)){let s=t();return`ref(${st(s,e+1)})`}if(typeof t=="string")return kr(JSON.stringify(t));if(typeof t=="number"||typeof t=="boolean"||typeof t=="bigint"||typeof t=="symbol")return String(t);if(t===null)return"null";if(t===void 0)return"undefined";if(t instanceof Date)return t.toISOString();if(t instanceof RegExp)return String(t);if(v(t)){let s=t.slice(0,5).map(i=>st(i,e+1)).join(", ");return t.length>5?`[${s}, ...]`:`[${s}]`}if(P(t)){let s=Object.entries(t).slice(0,5);if(s.length===0)return"{}";let i=s.map(([a,c])=>{let f=st(c,e+1);return`${a}: ${f}`}).join(", ");return Object.keys(t).length>5?`{ ${i}, ... }`:`{ ${i} }`}return"unknown"},ue=t=>{if(E(t))return`got ${Nt(t)}(${st(t())})`;let e=Nt(t),n=st(t);return`got ${e} (${n})`},Lr=t=>t instanceof Ie?t.detail:t instanceof Error?t.message:String(t),ao=(t,e)=>{let n=`, ${ue(e)}.`;return t.endsWith(n)?t.slice(0,-n.length):t},Ir=(t,e,n)=>{if(e instanceof Ie){if(e.propPath===t)return ao(e.detail,n);if(e.propPath===`${t}.value`&&E(n)){let o=ao(e.detail,n());return o.startsWith("expected ")?`expected ref<${o.slice(9)}>`:`expected ref where ${o}`}}return Lr(e)},Vr=(t,e,n)=>{let o=[];for(let r of e){let s=Ir(t,r,n);o.includes(s)||o.push(s)}return o.length===0?ue(n):o.length===1?`${o[0]}, ${ue(n)}`:`${o.join(" or ")}, ${ue(n)}`},Pr=t=>typeof t=="string"?`"${t}"`:typeof t=="number"||typeof t=="boolean"?String(t):t===null?"null":t===void 0?"undefined":Nt(t),Dr=(t,e)=>{typeof t!="string"&&ge(e,`expected string, ${ue(t)}`)},Ur=(t,e)=>{typeof t!="number"&&ge(e,`expected number, ${ue(t)}`)},Hr=(t,e)=>{typeof t!="boolean"&&ge(e,`expected boolean, ${ue(t)}`)},Br=t=>(e,n)=>{e instanceof t||ge(n,`expected instance of ${t.name||"provided class"}, ${ue(e)}`)},$r=t=>(e,n,o)=>{e!==void 0&&t(e,n,o)},jr=t=>(e,n,o)=>{e!==null&&t(e,n,o)},_r=(...t)=>(e,n,o)=>{let r=[];for(let s of t)try{s(e,n,o);return}catch(i){r.push(i)}ge(n,Vr(n,r,e))},Fr=t=>(e,n)=>{t.includes(e)||ge(n,`expected one of ${t.map(o=>Pr(o)).join(", ")}, ${ue(e)}`)},qr=t=>(e,n,o)=>{v(e)||ge(n,`expected array, ${ue(e)}`);let r=e;for(let s=0;s<r.length;++s)t(r[s],`${n}[${s}]`,o)};function zr(t){return(e,n,o)=>{P(e)||ge(n,`expected object, ${ue(e)}`);let r=e;for(let s in t){let i=t[s];if(!i)continue;i(r[s],`${n}.${s}`,o)}}}var Kr=t=>(e,n,o)=>{if(E(e)){t(e(),`${n}.value`,o);return}ge(n,`expected ref, ${ue(e)}`)},Wr={fail:ge,describe:ue,isString:Dr,isNumber:Ur,isBoolean:Hr,isClass:Br,optional:$r,nullable:jr,or:_r,oneOf:Fr,arrayOf:qr,shape:zr,refOf:Kr};var Gr=(t,e,n)=>{var i,a;let o=((a=(i=t.tagName)==null?void 0:i.toLowerCase)==null?void 0:a.call(i))||"unknown",r=n instanceof Ie?n.propPath:e,s=n instanceof Ie?n.detail:n instanceof Error?n.message:String(n);return n instanceof Error?new Error(`Invalid prop "${r}" on <${o}>: ${s}`,{cause:n}):new Error(`Invalid prop "${r}" on <${o}>: ${s}`,{cause:n})},it=class{constructor(e,n,o,r,s,i){p(this,"props");p(this,"start");p(this,"end");p(this,"ctx");p(this,"autoProps",!0);p(this,"entangle",!0);p(this,"enableSwitch",!1);p(this,"onAutoPropsAssigned");p(this,"J");p(this,"Q");p(this,"emit",(e,n)=>{this.J.dispatchEvent(new CustomEvent(e,{detail:n}))});this.props=e,this.J=n,this.ctx=o,this.start=r,this.end=s,this.Q=i}findContext(e,n=0){var r;if(n<0)return;let o=0;for(let s of(r=this.ctx)!=null?r:[])if(s instanceof e){if(o===n)return s;++o}}requireContext(e,n=0){let o=this.findContext(e,n);if(o!==void 0)return o;throw new Error(`${e} was not found in the context stack at occurrence ${n}.`)}validateProps(e){if(this.Q==="off")return;let n=this.props;for(let o in e){let r=e[o];if(!r)continue;let s=r;try{s(n[o],o,this)}catch(i){let a=Gr(this.J,o,i);if(this.Q==="warn"){Ke.warning(a.message,a);continue}throw a}}}unmount(){let e=this.start.nextSibling,n=this.end;for(;e&&e!==n;)ee(e),e=e.nextSibling;for(let o of this.ctx)Le(o)}};var He=t=>{let e=t,n=e[qe];if(n)return n;let o={unbinders:[],data:{}};return e[qe]=o,o};var Q=(t,e)=>{He(t).unbinders.push(e)};var at=t=>{if(typeof t=="string"){let e=t.trim().toLowerCase();if(e===""||e==="0"||e==="false")return!1;if(e==="true")return!0}return!!t};var Ot={},Mt={},co=1,uo=t=>{let e=(co++).toString();return Ot[e]=t,Mt[e]=0,e},hn=t=>{Mt[t]+=1},yn=t=>{--Mt[t]===0&&(delete Ot[t],delete Mt[t])},lo=t=>Ot[t],gn=()=>co!==1&&Object.keys(Ot).length>0,ct="r-switch",Jr=t=>{let e=t.filter(o=>Re(o)).map(o=>[...o.querySelectorAll("[r-switch]")].map(r=>r.getAttribute(ct))),n=new Set;return e.forEach(o=>{o.forEach(r=>r&&n.add(r))}),[...n]},We=(t,e)=>{if(!gn())return;let n=Jr(e);n.length!==0&&(n.forEach(hn),Q(t,()=>{n.forEach(yn)}))};var kt=()=>{},bn=(t,e,n,o)=>{let r=[];for(let s of t){let i=s.cloneNode(!0);n.insertBefore(i,o),r.push(i)}Ve(e,r)},Tn=Symbol("r-if"),fo=Symbol("r-else"),po=t=>t[fo]===1,Lt=class{constructor(e){p(this,"r");p(this,"M");p(this,"xe");p(this,"X");p(this,"Y");p(this,"T");p(this,"R");this.r=e,this.M=e.o.u.if,this.xe=Vt(e.o.u.if),this.X=e.o.u.else,this.Y=e.o.u.elseif,this.T=e.o.u.for,this.R=e.o.u.pre}ot(e,n){let o=e.parentElement;for(;o!==null&&o!==document.documentElement;){if(o.hasAttribute(n))return!0;o=o.parentElement}return!1}k(e){let n=e.hasAttribute(this.M);return n&&this.y(e),e.hasAttribute(this.r.o.u.is)||e.hasAttribute("is")||this.r.E.Z(e)||this.r.E.j(e,r=>{r.hasAttribute(this.M)&&this.y(r)}),n}ee(e){return e[Tn]?!0:(e[Tn]=!0,It(e,this.xe).forEach(n=>n[Tn]=!0),!1)}y(e){if(e.hasAttribute(this.R)||this.ee(e)||this.ot(e,this.T))return;let n=e.getAttribute(this.M);if(!n){_(0,this.M,e);return}e.removeAttribute(this.M),this.N(e,n)}U(e,n,o){let r=Ge(e),s=e.parentNode,i=document.createComment(`__begin__ :${n}${o!=null?o:""}`);s.insertBefore(i,e),We(i,r),r.forEach(c=>{ee(c)}),e.remove(),n!=="if"&&(e[fo]=1);let a=document.createComment(`__end__ :${n}${o!=null?o:""}`);return s.insertBefore(a,i.nextSibling),{nodes:r,parent:s,commentBegin:i,commentEnd:a}}Re(e,n){if(!e)return[];let o=e.nextElementSibling;if(e.hasAttribute(this.X)){e.removeAttribute(this.X);let{nodes:r,parent:s,commentBegin:i,commentEnd:a}=this.U(e,"else");return[{mount:()=>{bn(r,this.r,s,a)},unmount:()=>{we(i,a)},isTrue:()=>!0,isMounted:!1}]}else{let r=e.getAttribute(this.Y);if(!r)return[];e.removeAttribute(this.Y);let{nodes:s,parent:i,commentBegin:a,commentEnd:c}=this.U(e,"elseif",` => ${r} `),f=this.r.m.O(r),u=f.value,l=this.Re(o,n),m=kt;return Q(a,()=>{f.stop(),m(),m=kt}),m=f.subscribe(n),[{mount:()=>{bn(s,this.r,i,c)},unmount:()=>{we(a,c)},isTrue:()=>at(u()[0]),isMounted:!1},...l]}}N(e,n){let o=e.nextElementSibling,{nodes:r,parent:s,commentBegin:i,commentEnd:a}=this.U(e,"if",` => ${n} `),c=this.r.m.O(n),f=c.value,u=!1,l=this.r.m,m=l.L(),y=()=>{l.C(m,()=>{if(at(f()[0]))u||(bn(r,this.r,s,a),u=!0),x.forEach(C=>{C.unmount(),C.isMounted=!1});else{we(i,a),u=!1;let C=!1;for(let b of x)!C&&b.isTrue()?(b.isMounted||(b.mount(),b.isMounted=!0),C=!0):(b.unmount(),b.isMounted=!1)}})},x=this.Re(o,y),d=kt;Q(i,()=>{c.stop(),d(),d=kt}),y(),d=c.subscribe(y)}};var Ge=t=>{let e=me(t)?t.content.childNodes:[t],n=[];for(let o=0;o<e.length;++o){let r=e[o];if(r.nodeType===1){let s=r==null?void 0:r.tagName;if(s==="SCRIPT"||s==="STYLE")continue}n.push(r)}return n},Ve=(t,e)=>{for(let n=0;n<e.length;++n){let o=e[n];o.nodeType===Node.ELEMENT_NODE&&(po(o)||t.$(o))}},It=(t,e)=>{var o;let n=t.querySelectorAll(e);return(o=t.matches)!=null&&o.call(t,e)?[t,...n]:n},me=t=>t instanceof HTMLTemplateElement,Re=t=>t.nodeType===Node.ELEMENT_NODE,ut=t=>t.nodeType===Node.ELEMENT_NODE,mo=t=>t instanceof HTMLSlotElement,ve=t=>me(t)?t.content.childNodes:t.childNodes,we=(t,e)=>{let n=t.nextSibling;for(;n!=null&&n!==e;){let o=n.nextSibling;ee(n),n=o}},ho=function(){return this()},Qr=function(t){return this(t)},Xr=()=>{throw new Error("value is readonly.")},Yr={get:ho,set:Qr,enumerable:!0,configurable:!1},Zr={get:ho,set:Xr,enumerable:!0,configurable:!1},Pe=(t,e)=>{t[J]=e?2:1,Object.defineProperty(t,"value",e?Zr:Yr)},yo=(t,e)=>{if(!t)return!1;if(t.startsWith("["))return t.substring(1,t.length-1);let n=e.length;return t.startsWith(e)?t.substring(n,t.length-n):!1},Vt=t=>`[${CSS.escape(t)}]`,Pt=(t,e)=>(t.startsWith("@")&&(t=e.u.on+":"+t.slice(1)),t.includes("[")&&(t=t.replace(/[[\]]/g,e.u.dynamic)),t),xn=t=>{let e=Object.create(null);return n=>e[n]||(e[n]=t(n))},es=/-(\w)/g,z=xn(t=>t&&t.replace(es,(e,n)=>n?n.toUpperCase():"")),ts=/\B([A-Z])/g,Je=xn(t=>t&&t.replace(ts,"-$1").toLowerCase()),lt=xn(t=>t&&t.charAt(0).toUpperCase()+t.slice(1));var Dt={mount:()=>{}};var Qe=t=>{let e=t.trim();return e?e.split(/\s+/):[]};var Ut=t=>{var n,o;let e=(n=vt(t))==null?void 0:n.onMounted;e==null||e.forEach(r=>{r()}),(o=t.mounted)==null||o.call(t)};var Cn=Symbol("scope"),En=t=>{try{ro();let e=t();dn(e);let n={context:e,unmount:()=>Le(e),[Cn]:1};return n[Cn]=1,n}finally{so()}},go=t=>P(t)?Cn in t:!1;var Rn={collectRefObj:!0,mount:({parseResult:t})=>({update:({values:e})=>{let n=t.context,o=e[0];if(P(o))for(let r of Object.entries(o)){let s=r[0],i=r[1],a=n[s];a!==i&&(E(a)?a(i):n[s]=i)}}})};var ce=(t,e)=>{var n;(n=Ue(e))==null||n.onUnmounted.push(t)};var se=(t,e,n,o=!0)=>{if(!E(t))throw q(3,"observe");n&&e(t());let s=t(void 0,void 0,0,e);return o&&ce(s,!0),s};var bo=t=>t[J]===2,ft=(t,e)=>{if(t===e)return()=>{};let n=bo(t),o=bo(e);if(n&&o)return()=>{};if(n){let i=se(t,()=>e(t()));return e(t()),i}if(o){let i=se(e,()=>t(e()));return t(e()),i}let r=se(t,i=>e(i)),s=se(e,i=>t(i));return e(t()),()=>{r(),s()}};var de=[],To=t=>{var e;de.length!==0&&((e=de[de.length-1])==null||e.add(t))},Xe=t=>{if(!t)return()=>{};let e={stop:()=>{}};return ns(t,e),ce(()=>e.stop(),!0),e.stop},ns=(t,e)=>{if(!t)return;let n=[],o=!1,r=()=>{for(let s of n)s();n=[],o=!0};e.stop=r;try{let s=new Set;if(de.push(s),t(i=>n.push(i)),o)return;for(let i of[...s]){let a=se(i,()=>{r(),Xe(t)});n.push(a)}}finally{de.pop()}},wn=t=>{let e=de.length,n=e>0&&de[e-1];try{return n&&de.push(null),t()}finally{n&&de.pop()}},vn=t=>{try{let e=new Set;return de.push(e),{value:t(),refs:[...e]}}finally{de.pop()}};var pt=t=>!!t&&t[At]===1;var te=(t,e,n)=>{if(!E(t))return;let o=t;if(o(void 0,e,1),!n)return;let r=o();if(r){if(v(r)||fe(r))for(let s of r)te(s,e,!0);else if(ke(r))for(let s of r)te(s[0],e,!0),te(s[1],e,!0);if(P(r))for(let s in r)te(r[s],e,!0)}};function os(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0,configurable:!0})}var Ye=(t,e,n)=>{n.forEach(function(o){let r=t[o];os(e,o,function(...i){let a=r.apply(this,i),c=this[J];for(let f of c)te(f);return a})})},Ht=(t,e)=>{Object.defineProperty(t,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})};var xo=Array.prototype,Sn=Object.create(xo),rs=["push","pop","shift","unshift","splice","sort","reverse"];Ye(xo,Sn,rs);var Co=Map.prototype,Bt=Object.create(Co),ss=["set","clear","delete"];Ht(Bt,"Map");Ye(Co,Bt,ss);var Eo=Set.prototype,$t=Object.create(Eo),is=["add","clear","delete"];Ht($t,"Set");Ye(Eo,$t,is);var be={},ie=t=>{if(E(t)||pt(t))return t;let e={auto:!0,_value:t},n=c=>P(c)?J in c?!0:v(c)?(Object.setPrototypeOf(c,Sn),!0):fe(c)?(Object.setPrototypeOf(c,$t),!0):ke(c)?(Object.setPrototypeOf(c,Bt),!0):!1:!1,o=n(t),r=new Set,s=(c,f)=>{if(be.stack&&be.stack.length){be.stack[be.stack.length-1].add(a);return}r.size!==0&&wn(()=>{for(let u of[...r.keys()])r.has(u)&&u(c,f)})},i=c=>{let f=c[J];f||(c[J]=f=new Set),f.add(a)},a=(...c)=>{if(!(2 in c)){let u=c[0],l=c[1];return 0 in c?e._value===u||E(u)&&(u=u(),e._value===u)?u:(n(u)&&i(u),e._value=u,e.auto&&s(u,l),e._value):(To(a),e._value)}switch(c[2]){case 0:{let u=c[3];if(!u)return()=>{};let l=m=>{r.delete(m)};return r.add(u),()=>{l(u)}}case 1:{let u=c[1],l=e._value;s(l,u);break}case 2:return r.size;case 3:{e.auto=!1;break}case 4:e.auto=!0}return e._value};return Pe(a,!1),o&&i(t),a};var Ro=Symbol("modelBridge"),jt=()=>{},as=t=>!!(t!=null&&t[Ro]),cs=t=>{t[Ro]=1},us=t=>{let e=ie(t());return cs(e),e},wo={collectRefObj:!0,mount:({parseResult:t,option:e})=>{if(typeof e!="string"||!e)return jt;let n=z(e),o,r,s=jt,i=()=>{s(),s=jt,o=void 0,r=void 0},a=()=>{s(),s=jt},c=(u,l)=>{o!==u&&(a(),s=ft(u,l),o=u)},f=()=>{var y;let u=(y=t.refs[0])!=null?y:t.value()[0],l=t.context,m=l[n];if(!E(u)){if(r&&m===r){r(u);return}if(i(),E(m)){m(u);return}l[n]=ie(u);return}if(as(u)){if(m===u)return;E(m)?c(u,m):l[n]=u;return}r||(r=us(u)),l[n]=r,c(u,r)};return{update:()=>{f()},unmount:()=>{s()}}}};var _t=class{constructor(e){p(this,"r");p(this,"_");p(this,"Ee","");p(this,"Ce",-1);this.r=e,this._=e.o.u.inherit}k(e){this.st(e)}it(e){if(this.Ce!==e.size){let n=[...e.keys()];this.Ee=[...n,...n.map(Je)].join(","),this.Ce=e.size}return this.Ee}ct(e){var n;for(let o=0;o<e.length;++o){let r=(n=e[o])==null?void 0:n.components;if(r)for(let s in r)return!0}return!1}ut(e){if(!me(e))return!1;let n=e.getAttributeNames();return e.hasAttribute("name")?!0:n.some(o=>o.startsWith("#"))}pt(e){return me(e)&&e.getAttributeNames().length===0}st(e){var f,u;let n=this.r,o=n.m,r=n.o.te,s=n.o.F;if(r.size===0&&!this.ct(o.l))return;let i=o.ne(),a=this.re();if(j(a))return;let c=this.lt(e,a);for(let l of c){if(l.hasAttribute(n.R))continue;let m=l.parentNode;if(!m)continue;let y=l.nextSibling,x=z(l.tagName).toUpperCase(),d=i[x],w=d!=null?d:s.get(x);if(!w)continue;let C=w.template;if(!C)continue;let b=l.parentElement;if(!b)continue;let M=new Comment(" begin component: "+l.tagName),D=new Comment(" end component: "+l.tagName);b.insertBefore(M,l),l.remove();let U=n.o.u.context,I=n.o.u.contextAlias,ne=n.o.u.bind,K=(u=(f=w.props)==null?void 0:f.map(z))!=null?u:[],S=[],T=h=>h==="class"||h==="style",V=(h,k,A=!1)=>{let Y={},$=h.hasAttribute(U);return o.C(k,()=>{if(o.v(Y),$?n.y(Rn,h,U):h.hasAttribute(I)&&n.y(Rn,h,I),K.length===0)return;let Z=new Map(K.map(g=>[g.toLowerCase(),g]));for(let g of[...K,...K.map(Je)]){let L=h.getAttribute(g);if(L===null)continue;let B=z(g);Y[B]=L,A&&w.inheritAttrs===!0&&T(B)&&S.push({name:g,value:L}),h.removeAttribute(g)}let R=n.q.we(h,!1);for(let[g,L]of R.entries()){let[B,re]=L.oe;if(!re)continue;let Ce=Z.get(z(re).toLowerCase());if(Ce&&!(B!=="."&&B!==":"&&B!==ne)){if(A&&B!=="."&&w.inheritAttrs===!0&&T(Ce)){let Xn=h.getAttribute(g);Xn!==null&&S.push({name:g,value:Xn})}n.y(wo,h,g,!0,Ce,L.se)}}}),Y},F=[...o.L()],Fe=()=>{var Y;let h=V(l,F,!0),k=new it(h,l,F,M,D,n.o.propValidationMode),A=En(()=>{var $;return($=w.context(k))!=null?$:{}}).context;if(k.autoProps){for(let[$,Z]of Object.entries(h))if($ in A){let R=A[$];if(R===Z)continue;if(E(R)){E(Z)?k.entangle?Q(M,ft(Z,R)):R(Z()):R(Z);continue}}else A[$]=Z;for(let $ of K)$ in A||(A[$]=void 0);(Y=k.onAutoPropsAssigned)==null||Y.call(k)}return{componentCtx:A,head:k}},{componentCtx:Te,head:bt}=Fe(),O=[...ve(C)],Tt=O.length,H=l.childNodes.length===0,X=h=>{var Z;let k=h.parentElement,A=h.name;if(j(A)&&(A=h.getAttributeNames().filter(R=>R.startsWith("#"))[0],j(A)?A="default":A=A.substring(1)),H){if(A==="default"){let R=n.o.u.text,g=l.getAttribute(R);if(!j(g)){let L=document.createElement("span");L.setAttribute(R,g),k.insertBefore(L,h),l.removeAttribute(R);return}}for(let R of[...h.childNodes])k.insertBefore(R,h);return}let Y=l.querySelector(`template[name='${A}'], template[\\#${A}]`);!Y&&A==="default"&&(Y=(Z=[...l.querySelectorAll("template:not([name])")].find(g=>this.pt(g)))!=null?Z:null);let $=R=>{bt.enableSwitch&&o.C(F,()=>{o.v(Te);let g=V(h,o.L());o.C(F,()=>{o.v(g);let L=o.L(),B=uo(L);for(let re of R)Re(re)&&(re.setAttribute(ct,B),hn(B),Q(re,()=>{yn(B)}))})})};if(Y){let R=[...ve(Y)];for(let g of R)k.insertBefore(g,h);$(R)}else{if(A!=="default"){for(let g of[...ve(h)])k.insertBefore(g,h);return}let R=[...ve(l)].filter(g=>!this.ut(g));for(let g of R)k.insertBefore(g,h);$(R)}},oe=h=>{if(!Re(h))return;let k=h.querySelectorAll("slot");if(mo(h)){X(h),h.remove();return}for(let A of k)X(A),A.remove()};(()=>{for(let h=0;h<Tt;++h)O[h]=O[h].cloneNode(!0),m.insertBefore(O[h],y),oe(O[h])})(),b.insertBefore(D,y);let xe=()=>{if(!w.inheritAttrs)return;let h=O.filter(g=>g.nodeType===Node.ELEMENT_NODE),k=h.flatMap(g=>[...g.hasAttribute(this._)?[g]:[],...g.querySelectorAll(`[${this._}]`)]).at(0),A=k!=null?k:h.length===1?h[0]:void 0;if(!A)return;A.removeAttribute(this._);let Y=`${ne}:class`,$=`${ne}:style`,Z=(g,L,B)=>{let re=A.hasAttribute(g)?g:A.hasAttribute(L)?L:g,Ce=A.getAttribute(re);A.setAttribute(re,j(Ce)?B:`${Ce}, ${B}`)},R=(g,L)=>{if(g==="class"){let B=Qe(L);B.length>0&&A.classList.add(...B)}else if(g===":class"||g===Y)Z(":class",Y,L);else if(g==="style"){let B=A.style,re=l.style;for(let Ce of re)B.setProperty(Ce,re.getPropertyValue(Ce))}else g===":style"||g===$?Z(":style",$,L):A.setAttribute(Pt(g,n.o),L)};for(let{name:g,value:L}of S)l.setAttribute(g,L);for(let g of l.getAttributeNames())g===U||g===I||R(g,l.getAttribute(g))},Me=()=>{for(let h of l.getAttributeNames())!h.startsWith("@")&&!h.startsWith(n.o.u.on)&&l.removeAttribute(h)},Oe=()=>{xe(),Me(),o.v(Te),n.ve(l,!1),Te.$emit=bt.emit,Ve(n,O),Q(l,()=>{Le(Te)}),Q(M,()=>{Ee(l)}),Ut(Te)};o.C(F,Oe)}}re(){let e=this.r,n=e.m,o=e.o.te,r=n.ft(),s=this.it(o);return[...s?[s]:[],...r,...r.map(Je)].join(",")}Z(e){var o;let n=this.re();return!j(n)&&((o=e.matches)==null?void 0:o.call(e,n))}lt(e,n){var s;let o=[];if(j(n))return o;if((s=e.matches)!=null&&s.call(e,n))return[e];let r=this.K(e).reverse();for(;r.length>0;){let i=r.pop();if(i.matches(n)){o.push(i);continue}r.push(...this.K(i).reverse())}return o}j(e,n){let o=this.r,r=this.re(),s=o.o.u.is,i=this.K(e).reverse();for(;i.length>0;){let a=i.pop();n(a),!(!j(r)&&a.matches(r))&&(a.hasAttribute(s)||a.hasAttribute("is")||i.push(...this.K(a).reverse()))}}K(e){let n=e==null?void 0:e.children;if((n==null?void 0:n.length)!=null){let r=[];for(let s=0;s<n.length;++s){let i=n[s];Re(i)&&r.push(i)}return r}let o=e==null?void 0:e.childNodes;if((o==null?void 0:o.length)!=null){let r=[];for(let s=0;s<o.length;++s){let i=o[s];Re(i)&&r.push(i)}return r}return[]}};var An=class{constructor(e,n){p(this,"oe");p(this,"se");p(this,"Se",[]);this.oe=e,this.se=n}},Ft=class{constructor(e){p(this,"r");p(this,"Ae");p(this,"Ve");p(this,"ie");var o;this.r=e,this.Ae=e.o.dt(),this.ie=new Map;let n=new Map;for(let r of this.Ae){let s=(o=r[0])!=null?o:"",i=n.get(s);i?i.push(r):n.set(s,[r])}this.Ve=n}ke(e){let n=this.ie.get(e);if(n)return n;let o=e,r=o.startsWith(".");r&&(o=":"+o.slice(1));let s=o.indexOf("."),a=(s<0?o:o.substring(0,s)).split(/[:@]/);j(a[0])&&(a[0]=r?".":o[0]);let c=s>=0?o.slice(s+1).split("."):[],f=!1,u=!1;for(let m=0;m<c.length;++m){let y=c[m];if(!f&&y==="camel"?f=!0:!u&&y==="prop"&&(u=!0),f&&u)break}f&&(a[a.length-1]=z(a[a.length-1])),u&&(a[0]=".");let l={terms:a,flags:c};return this.ie.set(e,l),l}we(e,n){let o=new Map;if(!ut(e))return o;let r=this.Ve,s=(a,c)=>{var u;let f=r.get((u=c[0])!=null?u:"");if(f)for(let l=0;l<f.length;++l){if(!c.startsWith(f[l]))continue;let m=o.get(c);if(!m){let y=this.ke(c);m=new An(y.terms,y.flags),o.set(c,m)}m.Se.push(a);return}},i=a=>{var f;let c=a.attributes;if(!(!c||c.length===0))for(let u=0;u<c.length;++u){let l=(f=c.item(u))==null?void 0:f.name;l&&s(a,l)}};return i(e),!n||!e.firstElementChild||this.r.E.j(e,i),o}};var vo=()=>{},ls=(t,e)=>{for(let n of t){let o=n.cloneNode(!0);e.appendChild(o)}},qt=class{constructor(e){p(this,"r");p(this,"I");this.r=e,this.I=e.o.u.is}k(e){let n=e.hasAttribute(this.I);return(n||e.hasAttribute("is"))&&this.y(e),this.r.E.Z(e)||this.r.E.j(e,o=>{(o.hasAttribute(this.I)||o.hasAttribute("is"))&&this.y(o)}),n}y(e){let n=e.getAttribute(this.I);if(!n){if(n=e.getAttribute("is"),!n)return;if(!n.startsWith("regor:")){if(!n.startsWith("r-"))return;let o=n.slice(2).trim().toLowerCase();if(!o)return;let r=e.parentNode;if(!r)return;let s=document.createElement(o);for(let i of e.getAttributeNames())i!=="is"&&s.setAttribute(i,e.getAttribute(i));for(;e.firstChild;)s.appendChild(e.firstChild);r.insertBefore(s,e),e.remove(),this.r.$(s);return}n=`'${n.slice(6)}'`,e.removeAttribute("is")}e.removeAttribute(this.I),this.N(e,n)}U(e,n){let o=Ge(e),r=e.parentNode,s=document.createComment(`__begin__ dynamic ${n!=null?n:""}`);r.insertBefore(s,e),We(s,o),o.forEach(a=>{ee(a)}),e.remove();let i=document.createComment(`__end__ dynamic ${n!=null?n:""}`);return r.insertBefore(i,s.nextSibling),{nodes:o,parent:r,commentBegin:s,commentEnd:i}}N(e,n){let{nodes:o,commentBegin:r,commentEnd:s}=this.U(e,` => ${n} `),i=this.r.m.O(n),a=i.value,c=this.r.m,f=c.L(),u={name:""},l=me(e)?o:[...o[0].childNodes],m=()=>{c.C(f,()=>{var b,M;let d=a()[0];if(P(d)&&(d.name?d=d.name:d=(b=Object.entries(c.ne()).filter(D=>D[1]===d)[0])==null?void 0:b[0]),!G(d)||j(d)){we(r,s);return}if(u.name===d)return;we(r,s);let w=(M=s.parentNode)!=null?M:r.parentNode;if(!w)return;let C=document.createElement(d);for(let D of e.getAttributeNames())D!==this.I&&C.setAttribute(D,e.getAttribute(D));ls(l,C),w.insertBefore(C,s),this.r.$(C),u.name=d})},y=vo;Q(r,()=>{i.stop(),y(),y=vo}),m(),y=i.subscribe(m)}};var N=t=>{let e=t;return e!=null&&e[J]>0?e():e};var fs=(t,e)=>{let[n,o]=e;W(o)?o(t,n):t.innerHTML=n==null?void 0:n.toString()},zt={mount:()=>({update:({el:t,values:e})=>{fs(t,e)}})};var Kt=class t{constructor(e){p(this,"ae");this.ae=e}static mt(e,n){var y,x;let o=e.m,r=e.o,s=r.u,i=new Set([s.for,s.if,s.else,s.elseif,s.pre]),a=r.B,c=o.ne();if(Object.keys(c).length>0||r.F.size>0)return;let f=e.q,u=[],l=0,m=[];for(let d=n.length-1;d>=0;--d)m.push(n[d]);for(;m.length>0;){let d=m.pop();if(d.nodeType===Node.ELEMENT_NODE){let C=d;if(C.tagName==="TEMPLATE"||C.tagName.includes("-"))return;let b=z(C.tagName).toUpperCase();if(r.F.has(b)||c[b])return;let M=C.attributes;for(let D=0;D<M.length;++D){let U=(y=M.item(D))==null?void 0:y.name;if(!U)continue;if(i.has(U))return;let{terms:I,flags:ne}=f.ke(U),[K,S]=I,T=(x=a[U])!=null?x:a[K];if(T){if(T===zt)return;u.push({nodeIndex:l,attrName:U,directive:T,option:S,flags:ne})}}++l}let w=d.childNodes;for(let C=w.length-1;C>=0;--C)m.push(w[C])}if(u.length!==0)return new t(u)}y(e,n){let o=[],r=[];for(let s=n.length-1;s>=0;--s)r.push(n[s]);for(;r.length>0;){let s=r.pop();s.nodeType===Node.ELEMENT_NODE&&o.push(s);let i=s.childNodes;for(let a=i.length-1;a>=0;--a)r.push(i[a])}for(let s=0;s<this.ae.length;++s){let i=this.ae[s],a=o[i.nodeIndex];a&&e.y(i.directive,a,i.attrName,!1,i.option,i.flags)}}};var ps=(t,e)=>{let n=e.parentNode;if(n)for(let o=0;o<t.items.length;++o)n.insertBefore(t.items[o],e)},ms=t=>{var a;let e=t.length,n=t.slice(),o=[],r,s,i;for(let c=0;c<e;++c){let f=t[c];if(f===0)continue;let u=o[o.length-1];if(u===void 0||t[u]<f){n[c]=u!=null?u:-1,o.push(c);continue}for(r=0,s=o.length-1;r<s;)i=r+s>>1,t[o[i]]<f?r=i+1:s=i;f<t[o[r]]&&(r>0&&(n[c]=o[r-1]),o[r]=c)}for(r=o.length,s=(a=o[r-1])!=null?a:-1;r-- >0;)o[r]=s,s=n[s];return o},Wt=class{static yt(e){let{oldItems:n,newValues:o,getKey:r,isSameValue:s,mountNewValue:i,removeMountItem:a,endAnchor:c}=e,f=n.length,u=o.length,l=new Array(u),m=new Set;for(let T=0;T<u;++T){let V=r(o[T]);if(V===void 0||m.has(V))return;m.add(V),l[T]=V}let y=new Array(u),x=0,d=f-1,w=u-1;for(;x<=d&&x<=w;){let T=n[x];if(r(T.value)!==l[x]||!s(T.value,o[x]))break;T.value=o[x],y[x]=T,++x}for(;x<=d&&x<=w;){let T=n[d];if(r(T.value)!==l[w]||!s(T.value,o[w]))break;T.value=o[w],y[w]=T,--d,--w}if(x>d){for(let T=w;T>=x;--T){let V=T+1<u?y[T+1].items[0]:c;y[T]=i(T,o[T],V)}return y}if(x>w){for(let T=x;T<=d;++T)a(n[T]);return y}let C=x,b=x,M=w-b+1,D=new Array(M).fill(0),U=new Map;for(let T=b;T<=w;++T)U.set(l[T],T);let I=!1,ne=0;for(let T=C;T<=d;++T){let V=n[T],F=U.get(r(V.value));if(F===void 0){a(V);continue}if(!s(V.value,o[F])){a(V);continue}V.value=o[F],y[F]=V,D[F-b]=T+1,F>=ne?ne=F:I=!0}let K=I?ms(D):[],S=K.length-1;for(let T=M-1;T>=0;--T){let V=b+T,F=V+1<u?y[V+1].items[0]:c;if(D[T]===0){y[V]=i(V,o[V],F);continue}let Fe=y[V];I&&(S>=0&&K[S]===T?--S:Fe&&ps(Fe,F))}return y}};var mt=class{constructor(e){p(this,"x",[]);p(this,"P",new Map);p(this,"ce");this.ce=e}get S(){return this.x.length}ue(e){let n=this.ce(e.value);n!==void 0&&this.P.set(n,e)}pe(e){var o;let n=this.ce((o=this.x[e])==null?void 0:o.value);n!==void 0&&this.P.delete(n)}static ht(e,n){return{items:[],index:e,value:n,order:-1}}v(e){e.order=this.S,this.x.push(e),this.ue(e)}gt(e,n){let o=this.S;for(let r=e;r<o;++r)this.x[r].order=r+1;n.order=e,this.x.splice(e,0,n),this.ue(n)}D(e){return this.x[e]}le(e,n){this.pe(e),this.x[e]=n,this.ue(n),n.order=e}Me(e){this.pe(e),this.x.splice(e,1);let n=this.S;for(let o=e;o<n;++o)this.x[o].order=o}Ne(e){let n=this.S;for(let o=e;o<n;++o)this.pe(o);this.x.splice(e)}nn(e){return this.P.has(e)}bt(e){var o;let n=this.P.get(e);return(o=n==null?void 0:n.order)!=null?o:-1}};var Nn=Symbol("r-for"),ds=t=>-1,So=()=>{},Jt=class Jt{constructor(e){p(this,"r");p(this,"T");p(this,"Oe");p(this,"R");this.r=e,this.T=e.o.u.for,this.Oe=Vt(this.T),this.R=e.o.u.pre}k(e){let n=e.hasAttribute(this.T);return n&&this.Le(e),e.hasAttribute(this.r.o.u.is)||e.hasAttribute("is")||this.r.E.Z(e)||this.r.E.j(e,r=>{r.hasAttribute(this.T)&&this.Le(r)}),n}ee(e){return e[Nn]?!0:(e[Nn]=!0,It(e,this.Oe).forEach(n=>n[Nn]=!0),!1)}Le(e){if(e.hasAttribute(this.R)||this.ee(e))return;let n=e.getAttribute(this.T);if(!n){_(0,this.T,e);return}e.removeAttribute(this.T),this.Tt(e,n)}Ie(e){return pe(e)?[]:(W(e)&&(e=e()),Symbol.iterator in Object(e)?e:typeof e=="number"?(o=>({*[Symbol.iterator](){for(let r=1;r<=o;r++)yield r}}))(e):Object.entries(e))}Tt(e,n){var Tt;let o=this.xt(n);if(!(o!=null&&o.list)){_(1,this.T,n,e);return}let r=this.r.o.u.key,s=this.r.o.u.keyBind,i=(Tt=e.getAttribute(r))!=null?Tt:e.getAttribute(s);e.removeAttribute(r),e.removeAttribute(s);let a=Ge(e),c=Kt.mt(this.r,a),f=e.parentNode;if(!f)return;let u=`${this.T} => ${n}`,l=new Comment(`__begin__ ${u}`);f.insertBefore(l,e),We(l,a),a.forEach(H=>{ee(H)}),e.remove();let m=new Comment(`__end__ ${u}`);f.insertBefore(m,l.nextSibling);let y=this.r,x=y.m,d=x.L(),C=d.length===1?[void 0,d[0]]:void 0,b=this.Rt(i),M=(H,X)=>b(H)===b(X),D=(H,X)=>H===X,U=(H,X,oe)=>{let ae=o.createContext(X,H),xe=mt.ht(ae.index,X),Me=()=>{var A,Y;let Oe=(Y=(A=m.parentNode)!=null?A:l.parentNode)!=null?Y:f,h=oe.previousSibling,k=[];for(let $=0;$<a.length;++$){let Z=a[$].cloneNode(!0);Oe.insertBefore(Z,oe),k.push(Z)}for(c?c.y(y,k):Ve(y,k),h=h.nextSibling;h!==oe;)xe.items.push(h),h=h.nextSibling};return C?(C[0]=ae.ctx,x.C(C,Me)):x.C(d,()=>{x.v(ae.ctx),Me()}),xe},I=(H,X)=>{let oe=O.D(H).items,ae=oe[oe.length-1].nextSibling;for(let xe of oe)ee(xe);O.le(H,U(H,X,ae))},ne=(H,X)=>{O.v(U(H,X,m))},K=H=>{for(let X of O.D(H).items)ee(X)},S=H=>{let X=O.S;for(let oe=H;oe<X;++oe)O.D(oe).index(oe)},T=H=>{let X=l.parentNode,oe=m.parentNode;if(!X||!oe)return;let ae=O.S;W(H)&&(H=H());let xe=N(H[0]);if(v(xe)&&xe.length===0){we(l,m),O.Ne(0);return}let Me=[];for(let R of this.Ie(H[0]))Me.push(R);let Oe=Wt.yt({oldItems:O.x,newValues:Me,getKey:b,isSameValue:D,mountNewValue:(R,g,L)=>U(R,g,L),removeMountItem:R=>{for(let g=0;g<R.items.length;++g)ee(R.items[g])},endAnchor:m});if(Oe){O.x=Oe,O.P.clear();for(let R=0;R<Oe.length;++R){let g=Oe[R];g.order=R,g.index(R);let L=b(g.value);L!==void 0&&O.P.set(L,g)}return}let h=0,k=Number.MAX_SAFE_INTEGER,A=ae,Y=this.r.o.forGrowThreshold,$=()=>O.S<A+Y;for(let R of Me){let g=()=>{if(h<ae){let L=O.D(h++);if(M(L.value,R)){if(D(L.value,R))return;I(h-1,R);return}let B=O.bt(b(R));if(B>=h&&B-h<10){if(--h,k=Math.min(k,h),K(h),O.Me(h),--ae,B>h+1)for(let re=h;re<B-1&&re<ae&&!M(O.D(h).value,R);)++re,K(h),O.Me(h),--ae;g();return}$()?(O.gt(h-1,U(h,R,O.D(h-1).items[0])),k=Math.min(k,h-1),++ae):I(h-1,R)}else ne(h++,R)};g()}let Z=h;for(ae=O.S;h<ae;)K(h++);O.Ne(Z),S(k)},V=()=>{F.stop(),Te(),Te=So},F=x.O(o.list),Fe=F.value,Te=So,bt=0,O=new mt(b);for(let H of this.Ie(Fe()[0]))O.v(U(bt++,H,m));Q(l,V),Te=F.subscribe(T)}xt(e){var c,f;let n=Jt.Et.exec(e);if(!n)return;let o=(n[1]+((c=n[2])!=null?c:"")).split(",").map(u=>u.trim()),r=o.length>1?o.length-1:-1,s=r!==-1&&(o[r]==="index"||(f=o[r])!=null&&f.startsWith("#"))?o[r]:"";s&&o.splice(r,1);let i=n[3];if(!i||o.length===0)return;let a=/[{[]/.test(e);return{list:i,createContext:(u,l)=>{let m={},y=N(u);if(!a&&o.length===1)m[o[0]]=u;else if(v(y)){let d=0;for(let w of o)m[w]=y[d++]}else for(let d of o)m[d]=y[d];let x={ctx:m,index:ds};return s&&(x.index=m[s.startsWith("#")?s.substring(1):s]=ie(l)),x}}}Rt(e){if(!e)return o=>o;let n=e.trim();if(!n)return o=>o;if(n.includes(".")){let o=this.Ct(n),r=o.length>1?o.slice(1):void 0;return s=>{let i=N(s),a=this.Pe(i,o);return a!==void 0||!r?a:this.Pe(i,r)}}return o=>{var r;return N((r=N(o))==null?void 0:r[n])}}Ct(e){return e.split(".").filter(n=>n.length>0)}Pe(e,n){var r;let o=e;for(let s of n)o=(r=N(o))==null?void 0:r[s];return N(o)}};p(Jt,"Et",/\{?\[?\(?([^)}\]]+)\)?\]?\}?([^)]+)?\s+\b(?:in|of)\b\s+(.*)\s*$/);var Gt=Jt;var Qt=class{constructor(e){p(this,"fe",0);p(this,"de",new Map);p(this,"m");p(this,"De");p(this,"Ue");p(this,"Be");p(this,"E");p(this,"q");p(this,"o");p(this,"R");p(this,"He");this.m=e,this.o=e.o,this.Ue=new Gt(this),this.De=new Lt(this),this.Be=new qt(this),this.E=new _t(this),this.q=new Ft(this),this.R=this.o.u.pre,this.He=this.o.u.dynamic}wt(e){let n=me(e)?[e]:e.querySelectorAll("template");for(let o of n){if(o.hasAttribute(this.R))continue;let r=o.parentNode;if(!r)continue;let s=o.nextSibling;if(o.remove(),!o.content)continue;let i=[...o.content.childNodes];for(let a of i)r.insertBefore(a,s);Ve(this,i)}}$(e){++this.fe;try{if(e.nodeType!==Node.ELEMENT_NODE||e.hasAttribute(this.R)||this.De.k(e)||this.Ue.k(e)||this.Be.k(e))return;this.E.k(e),this.wt(e),this.ve(e,!0)}finally{--this.fe,this.fe===0&&this.vt()}}St(e,n){let o=document;if(!o){let r=e.parentNode;for(;r!=null&&r.parentNode;)r=r.parentNode;if(!r)return null;o=r}return o.querySelector(n)}je(e,n){let o=this.St(e,n);if(!o)return!1;let r=e.parentElement;if(!r)return!1;let s=new Comment(`teleported => '${n}'`);return r.insertBefore(s,e),e.teleportedFrom=s,s.teleportedTo=e,Q(s,()=>{ee(e)}),o.appendChild(e),!0}At(e,n){this.de.set(e,n)}vt(){let e=this.de;if(e.size!==0){this.de=new Map;for(let[n,o]of e.entries())this.je(n,o)}}ve(e,n){var s;let o=this.q.we(e,n),r=this.o.B;for(let[i,a]of o.entries()){let[c,f]=a.oe,u=(s=r[i])!=null?s:r[c];if(!u){console.error("directive not found:",c);continue}let l=a.Se;for(let m=0;m<l.length;++m){let y=l[m];this.y(u,y,i,!1,f,a.se)}}}y(e,n,o,r,s,i){if(n.hasAttribute(this.R))return;let a=n.getAttribute(o);n.removeAttribute(o);let c=f=>{let u=f;for(;u;){let l=u.getAttribute(ct);if(l)return l;u=u.parentElement}return null};if(gn()){let f=c(n);if(f){this.m.C(lo(f),()=>{this.N(e,n,a,s,i)});return}}this.N(e,n,a,s,i)}Vt(e,n,o){return e!==Dt?!1:(j(o)||this.je(n,o)||this.At(n,o),!0)}N(e,n,o,r,s){if(n.nodeType!==Node.ELEMENT_NODE||o==null||this.Vt(e,n,o))return;let i=this.kt(r,e.once),a=this.Mt(e,o),c=this.Nt(a,i);Q(n,c.stop);let f=this.Ot(n,o,a,i,r,s),u=this.Lt(e,f,c);if(!u)return;let l=this.It(f,a,i,r,u);l(),e.once||(c.result=a.subscribe(l),i&&(c.dynamic=i.subscribe(l)))}kt(e,n){let o=yo(e,this.He);if(o)return this.m.O(z(o),void 0,void 0,void 0,n)}Mt(e,n){return this.m.O(n,e.isLazy,e.isLazyKey,e.collectRefObj,e.once)}Nt(e,n){let o={stop:()=>{var r,s,i;e.stop(),n==null||n.stop(),(r=o.result)==null||r.call(o),(s=o.dynamic)==null||s.call(o),(i=o.mounted)==null||i.call(o),o.result=void 0,o.dynamic=void 0,o.mounted=void 0}};return o}Ot(e,n,o,r,s,i){return{el:e,expr:n,values:o.value(),previousValues:void 0,option:r?r.value()[0]:s,previousOption:void 0,flags:i,parseResult:o,dynamicOption:r}}Lt(e,n,o){let r=e.mount(n);if(typeof r=="function"){o.mounted=r;return}return r!=null&&r.unmount&&(o.mounted=r.unmount),r==null?void 0:r.update}It(e,n,o,r,s){let i,a;return()=>{let c=n.value(),f=o?o.value()[0]:r;e.values=c,e.previousValues=i,e.option=f,e.previousOption=a,i=c,a=f,s(e)}}};var Ao="http://www.w3.org/1999/xlink",hs={itemscope:2,allowfullscreen:2,formnovalidate:2,ismap:2,nomodule:2,novalidate:2,readonly:2,async:1,autofocus:1,autoplay:1,controls:1,default:1,defer:1,disabled:1,hidden:1,inert:1,loop:1,open:1,required:1,reversed:1,scoped:1,seamless:1,checked:1,muted:1,multiple:1,selected:1};function ys(t){return!!t||t===""}var gs=(t,e,n,o,r,s)=>{var a;if(o){s&&s.includes("camel")&&(o=z(o)),Xt(t,o,e[0],r);return}let i=e.length;for(let c=0;c<i;++c){let f=e[c];if(v(f)){let u=(a=n==null?void 0:n[c])==null?void 0:a[0],l=f[0],m=f[1];Xt(t,l,m,u)}else if(P(f))for(let u of Object.entries(f)){let l=u[0],m=u[1],y=n==null?void 0:n[c],x=y&&l in y?l:void 0;Xt(t,l,m,x)}else{let u=n==null?void 0:n[c],l=e[c++],m=e[c];Xt(t,l,m,u)}}},Mn={mount:()=>({update:({el:t,values:e,previousValues:n,option:o,previousOption:r,flags:s})=>{gs(t,e,n,o,r,s)}})},Xt=(t,e,n,o)=>{if(o&&o!==e&&t.removeAttribute(o),pe(e)){_(3,"r-bind",t);return}if(!G(e)){_(6,`Attribute key is not string at ${t.outerHTML}`,e);return}if(e.startsWith("xlink:")){pe(n)?t.removeAttributeNS(Ao,e.slice(6,e.length)):t.setAttributeNS(Ao,e,n);return}let r=e in hs;pe(n)||r&&!ys(n)?t.removeAttribute(e):t.setAttribute(e,r?"":n)};var bs=(t,e,n)=>{let o=e.length;for(let r=0;r<o;++r){let s=e[r],i=n==null?void 0:n[r];if(v(s)){let a=s.length;for(let c=0;c<a;++c)No(t,s[c],i==null?void 0:i[c])}else No(t,s,i)}},On={mount:()=>({update:({el:t,values:e,previousValues:n})=>{bs(t,e,n)}})},No=(t,e,n)=>{let o=N(e),r=N(n),s=t.classList,i=G(o),a=G(r);if(o&&!i){let c=o;if(r&&!a){let f=r;for(let u in f)(!(u in c)||!N(c[u]))&&s.remove(u)}for(let f in c)N(c[f])&&s.add(f)}else if(i){if(r!==o){let c=a?Qe(r):[],f=Qe(o);c.length>0&&s.remove(...c),f.length>0&&s.add(...f)}}else if(r){let c=a?Qe(r):[];c.length>0&&s.remove(...c)}};function Ts(t,e){if(t.length!==e.length)return!1;let n=!0;for(let o=0;n&&o<t.length;o++)n=Se(t[o],e[o]);return n}function Se(t,e){if(t===e)return!0;let n=pn(t),o=pn(e);if(n||o)return n&&o?t.getTime()===e.getTime():!1;if(n=rt(t),o=rt(e),n||o)return t===e;if(n=v(t),o=v(e),n||o)return n&&o?Ts(t,e):!1;if(n=P(t),o=P(e),n||o){if(!n||!o)return!1;let r=Object.keys(t).length,s=Object.keys(e).length;if(r!==s)return!1;for(let i in t){let a=Object.prototype.hasOwnProperty.call(t,i),c=Object.prototype.hasOwnProperty.call(e,i);if(a&&!c||!Se(t[i],e[i]))return!1}return!0}return String(t)===String(e)}function Yt(t,e){return t.findIndex(n=>Se(n,e))}var Mo=t=>{let e=parseFloat(t);return isNaN(e)?t:e};var kn=t=>{if(!E(t))throw q(3,"pause");t(void 0,void 0,3)};var Ln=t=>{if(!E(t))throw q(3,"resume");t(void 0,void 0,4)};var ko={mount:({el:t,parseResult:e,flags:n})=>({update:({values:o})=>{Lo(t,o[0])},unmount:xs(t,e,n)})},Lo=(t,e)=>{let n=Do(t);if(n&&Io(t))v(e)?e=Yt(e,Ae(t))>-1:fe(e)?e=e.has(Ae(t)):e=Ss(t,e),t.checked=e;else if(n&&Vo(t))t.checked=Se(e,Ae(t));else if(n||Uo(t))Po(t)?t.value!==(e==null?void 0:e.toString())&&(t.value=e):t.value!==e&&(t.value=e);else if(Ho(t)){let o=t.options,r=o.length,s=t.multiple;for(let i=0;i<r;i++){let a=o[i],c=Ae(a);if(s)v(e)?a.selected=Yt(e,c)>-1:a.selected=e.has(c);else if(Se(Ae(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}else _(7,t)},dt=t=>(E(t)&&(t=t()),W(t)&&(t=t()),t?G(t)?{trim:t.includes("trim"),lazy:t.includes("lazy"),number:t.includes("number"),int:t.includes("int")}:{trim:!!t.trim,lazy:!!t.lazy,number:!!t.number,int:!!t.int}:{trim:!1,lazy:!1,number:!1,int:!1}),Io=t=>t.type==="checkbox",Vo=t=>t.type==="radio",Po=t=>t.type==="number"||t.type==="range",Do=t=>t.tagName==="INPUT",Uo=t=>t.tagName==="TEXTAREA",Ho=t=>t.tagName==="SELECT",xs=(t,e,n)=>{let o=e.value,r=dt(n==null?void 0:n.join(",")),s=dt(o()[1]),i={int:r.int||s.int,lazy:r.lazy||s.lazy,number:r.number||s.number,trim:r.trim||s.trim};if(!e.refs[0])return _(8,t),()=>{};let a=()=>e.refs[0],c=Do(t);return c&&Io(t)?Es(t,a):c&&Vo(t)?As(t,a):c||Uo(t)?Cs(t,i,a,o):Ho(t)?Ns(t,a,o):(_(7,t),()=>{})},Oo=/[.,' ·٫]/,Cs=(t,e,n,o)=>{let s=e.lazy?"change":"input",i=Po(t),a=()=>{!e.trim&&!dt(o()[1]).trim||(t.value=t.value.trim())},c=m=>{let y=m.target;y.composing=1},f=m=>{let y=m.target;y.composing&&(y.composing=0,y.dispatchEvent(new Event(s)))},u=()=>{t.removeEventListener(s,l),t.removeEventListener("change",a),t.removeEventListener("compositionstart",c),t.removeEventListener("compositionend",f),t.removeEventListener("change",f)},l=m=>{let y=n();if(!y)return;let x=m.target;if(!x||x.composing)return;let d=x.value,w=dt(o()[1]);if(i||w.number||w.int){if(w.int)d=parseInt(d);else{if(Oo.test(d[d.length-1])&&d.split(Oo).length===2){if(d+="0",d=parseFloat(d),isNaN(d))d="";else if(y()===d)return}d=parseFloat(d)}isNaN(d)&&(d=""),t.value=d}else w.trim&&(d=d.trim());y(d)};return t.addEventListener(s,l),t.addEventListener("change",a),t.addEventListener("compositionstart",c),t.addEventListener("compositionend",f),t.addEventListener("change",f),u},Es=(t,e)=>{let n="change",o=()=>{t.removeEventListener(n,r)},r=()=>{let s=e();if(!s)return;let i=Ae(t),a=t.checked,c=s();if(v(c)){let f=Yt(c,i),u=f!==-1;a&&!u?c.push(i):!a&&u&&c.splice(f,1)}else fe(c)?a?c.add(i):c.delete(i):s(vs(t,a))};return t.addEventListener(n,r),o},Ae=t=>"_value"in t?t._value:t.value,Bo="trueValue",Rs="falseValue",$o="true-value",ws="false-value",vs=(t,e)=>{let n=e?Bo:Rs;if(n in t)return t[n];let o=e?$o:ws;return t.hasAttribute(o)?t.getAttribute(o):e},Ss=(t,e)=>{if(Bo in t)return Se(e,t.trueValue);let o=$o;return t.hasAttribute(o)?Se(e,t.getAttribute(o)):Se(e,!0)},As=(t,e)=>{let n="change",o=()=>{t.removeEventListener(n,r)},r=()=>{let s=e();if(!s)return;let i=Ae(t);s(i)};return t.addEventListener(n,r),o},Ns=(t,e,n)=>{let o="change",r=Ms(t,n),s=()=>{t.removeEventListener(o,i),r()},i=()=>{let a=e();if(!a)return;let f=dt(n()[1]).number,u=Array.prototype.filter.call(t.options,l=>l.selected).map(l=>f?Mo(Ae(l)):Ae(l));if(t.multiple){let l=a();try{if(kn(a),fe(l)){l.clear();for(let m of u)l.add(m)}else v(l)?(l.splice(0),l.push(...u)):a(u)}finally{Ln(a),te(a)}}else a(u[0])};return t.addEventListener(o,i),s},Ms=(t,e)=>{var c,f;let n=(f=globalThis.MutationObserver)!=null?f:(c=globalThis.window)==null?void 0:c.MutationObserver;if(!n)return()=>{};let o=!1,r=!1,s=()=>{o=!1,!r&&Lo(t,e()[0])},i=()=>{o||(o=!0,typeof queueMicrotask=="function"?queueMicrotask(s):Promise.resolve().then(s))},a=new n(i);return a.observe(t,{attributes:!0,attributeFilter:["value"],childList:!0,subtree:!0}),()=>{r=!0,a.disconnect()}};var Os=["stop","prevent","capture","self","once","left","right","middle","passive"],ks=t=>{let e={};if(j(t))return;let n=t.split(",");for(let o of Os)e[o]=n.includes(o);return e},Ls=(t,e,n,o,r)=>{var f,u;if(o){let l=e.value(),m=N(o.value()[0]);return G(m)?In(t,z(m),()=>e.value()[0],(f=r==null?void 0:r.join(","))!=null?f:l[1]):()=>{}}else if(n){let l=e.value();return In(t,z(n),()=>e.value()[0],(u=r==null?void 0:r.join(","))!=null?u:l[1])}let s=[],i=()=>{s.forEach(l=>l())},a=e.value(),c=a.length;for(let l=0;l<c;++l){let m=a[l];if(W(m)&&(m=m()),P(m))for(let y of Object.entries(m)){let x=y[0],d=()=>{let C=e.value()[l];return W(C)&&(C=C()),C=C[x],W(C)&&(C=C()),C},w=m[x+"_flags"];s.push(In(t,x,d,w))}else _(2,"r-on",t)}return i},Vn={isLazy:(t,e)=>e===-1&&t%2===0,isLazyKey:(t,e)=>e===0&&!t.endsWith("_flags"),once:!1,collectRefObj:!0,mount:({el:t,parseResult:e,option:n,dynamicOption:o,flags:r})=>Ls(t,e,n,o,r)},Is=(t,e)=>{if(t.startsWith("keydown")||t.startsWith("keyup")||t.startsWith("keypress")){e!=null||(e="");let n=[...t.split("."),...e.split(",")];t=n[0];let o=n[1],r=n.includes("ctrl"),s=n.includes("shift"),i=n.includes("alt"),a=n.includes("meta"),c=f=>!(r&&!f.ctrlKey||s&&!f.shiftKey||i&&!f.altKey||a&&!f.metaKey);return o?[t,f=>c(f)?f.key.toUpperCase()===o.toUpperCase():!1]:[t,c]}return[t,n=>!0]},In=(t,e,n,o)=>{if(j(e))return _(5,"r-on",t),()=>{};let r=ks(o),s=r?{capture:r.capture,passive:r.passive,once:r.once}:void 0,i;[e,i]=Is(e,o);let a=u=>{if(!i(u)||!n&&e==="submit"&&(r!=null&&r.prevent))return;let l=n(u);W(l)&&(l=l(u)),W(l)&&l(u)},c=()=>{t.removeEventListener(e,f,s)},f=u=>{if(!r){a(u);return}try{if(r.left&&u.button!==0||r.middle&&u.button!==1||r.right&&u.button!==2||r.self&&u.target!==t)return;r.stop&&u.stopPropagation(),r.prevent&&u.preventDefault(),a(u)}finally{r.once&&c()}};return t.addEventListener(e,f,s),c};var Vs=(t,e,n,o)=>{if(n){o&&o.includes("camel")&&(n=z(n)),Ze(t,n,e[0]);return}let r=e.length;for(let s=0;s<r;++s){let i=e[s];if(v(i)){let a=i[0],c=i[1];Ze(t,a,c)}else if(P(i))for(let a of Object.entries(i)){let c=a[0],f=a[1];Ze(t,c,f)}else{let a=e[s++],c=e[s];Ze(t,a,c)}}},jo={mount:()=>({update:({el:t,values:e,option:n,flags:o})=>{Vs(t,e,n,o)}})};function Ps(t){return!!t||t===""}var Ze=(t,e,n)=>{if(pe(e)){_(3,":prop",t);return}if(e==="innerHTML"||e==="textContent"){let s=[...t.childNodes];setTimeout(()=>s.forEach(Ee),1),t[e]=n!=null?n:"";return}let o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){t._value=n;let s=o==="OPTION"?t.getAttribute("value"):t.value,i=n!=null?n:"";s!==i&&(t.value=i),n==null&&t.removeAttribute(e);return}let r=!1;if(n===""||n==null){let s=typeof t[e];s==="boolean"?n=Ps(n):n==null&&s==="string"?(n="",r=!0):s==="number"&&(n=0,r=!0)}try{t[e]=n}catch(s){r||_(4,e,o,n,s)}r&&t.removeAttribute(e)};var _o={once:!0,mount:({el:t,parseResult:e,expr:n})=>{let o=e,r=o.value()[0],s=v(r),i=o.refs[0];return s?r.push(t):i?i==null||i(t):o.context[n]=t,()=>{if(s){let a=r.indexOf(t);a!==-1&&r.splice(a,1)}else i==null||i(null)}}};var Ds=(t,e)=>{let n=He(t).data,o=n._ord;no(o)&&(o=n._ord=t.style.display),at(e[0])?t.style.display=o:t.style.display="none"},Fo={mount:()=>({update:({el:t,values:e})=>{Ds(t,e)}})};var Us=(t,e,n)=>{let o=e.length;for(let r=0;r<o;++r){let s=e[r],i=n==null?void 0:n[r];if(v(s)){let a=s.length;for(let c=0;c<a;++c)qo(t,s[c],i==null?void 0:i[c])}else qo(t,s,i)}},Zt={mount:()=>({update:({el:t,values:e,previousValues:n})=>{Us(t,e,n)}})},qo=(t,e,n)=>{let o=N(e),r=N(n),s=t.style,i=G(o);if(o&&!i){let a=o;if(r&&!G(r)){let c=r;for(let f in c)N(a[f])==null&&Dn(s,f,"")}for(let c in a)Dn(s,c,a[c])}else{let a=s.display;if(i?r!==o&&(s.cssText=o):r&&t.removeAttribute("style"),"_ord"in He(t).data)return;s.display=a}},zo=/\s*!important$/;function Dn(t,e,n){let o=N(n);if(v(o))o.forEach(r=>{Dn(t,e,r)});else{let r=o==null?"":String(o);if(e.startsWith("--"))t.setProperty(e,r);else{let s=Hs(t,e);zo.test(r)?t.setProperty(Je(s),r.replace(zo,""),"important"):t[s]=r}}}var Ko=["Webkit","Moz","ms"],Pn={};function Hs(t,e){let n=Pn[e];if(n)return n;let o=z(e);if(o!=="filter"&&o in t)return Pn[e]=o;o=lt(o);for(let r=0;r<Ko.length;r++){let s=Ko[r]+o;if(s in t)return Pn[e]=s}return e}var le=t=>Wo(N(t)),Wo=(t,e=new WeakMap)=>{if(!t||!P(t))return t;if(v(t))return t.map(le);if(fe(t)){let o=new Set;for(let r of t.keys())o.add(le(r));return o}if(ke(t)){let o=new Map;for(let r of t)o.set(le(r[0]),le(r[1]));return o}if(e.has(t))return N(e.get(t));let n=Ct({},t);e.set(t,n);for(let o of Object.entries(n))n[o[0]]=Wo(N(o[1]),e);return n};var Bs=(t,e)=>{var o;let n=e[0];t.textContent=fe(n)?JSON.stringify(le([...n])):ke(n)?JSON.stringify(le([...n])):P(n)?JSON.stringify(le(n)):(o=n==null?void 0:n.toString())!=null?o:""},Go={mount:()=>({update:({el:t,values:e})=>{Bs(t,e)}})};var Jo={mount:()=>({update:({el:t,values:e})=>{Ze(t,"value",e[0])}})};var et=t=>(t==null?void 0:t[St])===1;function $e(t){if(pt(t))return t;let e;if(E(t)?(e=t,t=e()):e=ie(t),t instanceof Node||t instanceof Date||t instanceof RegExp||t instanceof Promise||t instanceof Error)return e;if(e[St]=1,v(t)){let n=t.length;for(let o=0;o<n;++o){let r=t[o];et(r)||(t[o]=$e(r))}return e}if(!P(t))return e;for(let n of Object.entries(t)){let o=n[1];if(et(o))continue;let r=n[0];rt(r)||(t[r]=null,t[r]=$e(o))}return e}var De=class De{constructor(e){p(this,"B",{});p(this,"u",{});p(this,"dt",()=>Object.keys(this.B).filter(e=>e.length===1||!e.startsWith(":")));p(this,"te",new Map);p(this,"F",new Map);p(this,"forGrowThreshold",10);p(this,"globalContext");p(this,"useInterpolation",!0);p(this,"propValidationMode","throw");if(this.setDirectives("r-"),e){this.globalContext=e;return}this.globalContext=this.Dt()}static getDefault(){var e;return(e=De.$e)!=null?e:De.$e=new De}Dt(){let e={},n=globalThis;for(let o of De.Pt.split(","))e[o]=n[o];return e.ref=$e,e.sref=ie,e.flatten=le,e}addComponent(...e){for(let n of e){if(!n.defaultName){Ke.warning("Registered component's default name is not defined",n);continue}this.te.set(lt(n.defaultName),n),this.F.set(lt(n.defaultName).toLocaleUpperCase(),n)}}setDirectives(e){this.B={".":jo,":":Mn,"@":Vn,[`${e}on`]:Vn,[`${e}bind`]:Mn,[`${e}html`]:zt,[`${e}text`]:Go,[`${e}show`]:Fo,[`${e}model`]:ko,":style":Zt,[`${e}style`]:Zt,[`${e}bind:style`]:Zt,":class":On,[`${e}bind:class`]:On,":ref":_o,":value":Jo,[`${e}teleport`]:Dt},this.u={for:`${e}for`,if:`${e}if`,else:`${e}else`,elseif:`${e}else-if`,pre:`${e}pre`,inherit:`${e}inherit`,text:`${e}text`,context:":context",contextAlias:`${e}context`,bind:`${e}bind`,on:`${e}on`,keyBind:":key",key:"key",is:":is",teleport:`${e}teleport`,dynamic:"_d_"}}updateDirectives(e){e(this.B,this.u)}};p(De,"$e"),p(De,"Pt","Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console");var he=De;var en=(t,e)=>{if(!t)return;let o=(e!=null?e:he.getDefault()).u,r=/(\{\{[^]*?\}\}|\[\[[^]*?\]\])/g,s=[{start:"{{",end:"}}"},{start:"[[",end:"]]"}];for(let i of js(t,o.pre,s))$s(i,o.text,r,s)},$s=(t,e,n,o)=>{var c;let r=t.textContent;if(!r)return;let s=n,i=r.split(s);if(i.length<=1)return;if(((c=t.parentElement)==null?void 0:c.childNodes.length)===1&&i.length===3){let f=i[1],u=Qo(f,o);if(u&&j(i[0])&&j(i[2])){let l=t.parentElement;l.setAttribute(e,f.substring(u.start.length,f.length-u.end.length)),l.innerText="";return}}let a=document.createDocumentFragment();for(let f of i){let u=Qo(f,o);if(u){let l=document.createElement("span");l.setAttribute(e,f.substring(u.start.length,f.length-u.end.length)),a.appendChild(l)}else a.appendChild(document.createTextNode(f))}t.replaceWith(a)},js=(t,e,n)=>{let o=[],r=s=>{var i;if(s.nodeType===Node.TEXT_NODE)n.some(a=>{var c;return(c=s.textContent)==null?void 0:c.includes(a.start)})&&o.push(s);else{if((i=s==null?void 0:s.hasAttribute)!=null&&i.call(s,e))return;for(let a of ve(s))r(a)}};return r(t),o},Qo=(t,e)=>e.find(n=>t.startsWith(n.start)&&t.endsWith(n.end));var _s=9,Fs=10,qs=13,zs=32,Ne=46,tn=44,Ks=39,Ws=34,nn=40,tt=41,on=91,Un=93,Hn=63,Gs=59,Xo=58,Yo=123,rn=125,je=43,sn=45,Bn=96,Zo=47,$n=92,er=new Set([2,3]),ir={"=":2.5,"*=":2.5,"**=":2.5,"/=":2.5,"%=":2.5,"+=":2.5,"-=":2.5,"<<=":2.5,">>=":2.5,">>>=":2.5,"&=":2.5,"^=":2.5,"|=":2.5},Js=Zn(Ct({"=>":2},ir),{"||":3,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"/":12,"%":12,"**":13}),ar=Object.keys(ir),Qs=new Set(ar),_n=new Set(["=>"]);ar.forEach(t=>_n.add(t));var tr={true:!0,false:!1,null:null},Xs="this",nt="Expected ",_e="Unexpected ",qn="Unclosed ",Ys=nt+":",nr=nt+"expression",Zs="missing }",ei=_e+"object property",ti=qn+"(",or=nt+"comma",rr=_e+"token ",ni=_e+"period",jn=nt+"expression after ",oi="missing unaryOp argument",ri=qn+"[",si=nt+"exponent (",ii="Variable names cannot start with a number (",ai=qn+'quote after "',ht=t=>t>=48&&t<=57,sr=t=>Js[t],Fn=class{constructor(e){p(this,"p");p(this,"e");this.p=e,this.e=0}get H(){return this.p.charAt(this.e)}get h(){return this.p.charCodeAt(this.e)}f(e){return this.p.charCodeAt(this.e)===e}z(e){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>=128}me(e){return this.z(e)||ht(e)}i(e){return new Error(`${e} at character ${this.e}`)}g(){let e=this.h,n=this.p,o=this.e;for(;e===zs||e===_s||e===Fs||e===qs;)e=n.charCodeAt(++o);this.e=o}parse(){let e=this.ye();return e.length===1?e[0]:{type:0,body:e}}ye(e){let n=[];for(;this.e<this.p.length;){let o=this.h;if(o===Gs||o===tn)this.e++;else{let r=this.A();if(r)n.push(r);else if(this.e<this.p.length){if(o===e)break;throw this.i(_e+'"'+this.H+'"')}}}return n}A(){var n;let e=(n=this.Ut())!=null?n:this._e();return this.g(),this.Bt(e)}he(){this.g();let e=this.p,n=this.e,o=e.charCodeAt(n),r=e.charCodeAt(n+1),s=e.charCodeAt(n+2),i=e.charCodeAt(n+3);if(isNaN(o))return!1;let a=!1,c=0;return o===62&&r===62&&s===62&&i===61?(a=">>>=",c=4):o===61&&r===61&&s===61?(a="===",c=3):o===33&&r===61&&s===61?(a="!==",c=3):o===62&&r===62&&s===62?(a=">>>",c=3):o===60&&r===60&&s===61?(a="<<=",c=3):o===62&&r===62&&s===61?(a=">>=",c=3):o===42&&r===42&&s===61?(a="**=",c=3):o===61&&r===62?(a="=>",c=2):o===124&&r===124?(a="||",c=2):o===63&&r===63?(a="??",c=2):o===38&&r===38?(a="&&",c=2):o===61&&r===61?(a="==",c=2):o===33&&r===61?(a="!=",c=2):o===60&&r===61?(a="<=",c=2):o===62&&r===61?(a=">=",c=2):o===60&&r===60?(a="<<",c=2):o===62&&r===62?(a=">>",c=2):o===43&&r===61?(a="+=",c=2):o===45&&r===61?(a="-=",c=2):o===42&&r===61?(a="*=",c=2):o===47&&r===61?(a="/=",c=2):o===37&&r===61?(a="%=",c=2):o===38&&r===61?(a="&=",c=2):o===94&&r===61?(a="^=",c=2):o===124&&r===61?(a="|=",c=2):o===42&&r===42?(a="**",c=2):o===105&&r===110?this.me(e.charCodeAt(n+2))||(a="in",c=2):o===61?(a="=",c=1):o===124?(a="|",c=1):o===94?(a="^",c=1):o===38?(a="&",c=1):o===60?(a="<",c=1):o===62?(a=">",c=1):o===43?(a="+",c=1):o===45?(a="-",c=1):o===42?(a="*",c=1):o===47?(a="/",c=1):o===37&&(a="%",c=1),a?(this.e+=c,a):!1}_e(){let e,n,o,r,s,i,a,c;if(s=this.W(),!s||(n=this.he(),!n))return s;if(r={value:n,prec:sr(n),right_a:_n.has(n)},i=this.W(),!i)throw this.i(jn+n);let f=[s,r,i];for(;n=this.he();){o=sr(n),r={value:n,prec:o,right_a:_n.has(n)},c=n;let u=l=>r.right_a&&l.right_a?o>l.prec:o<=l.prec;for(;f.length>2&&u(f[f.length-2]);)i=f.pop(),n=f.pop().value,s=f.pop(),e=this.Fe(n,s,i),f.push(e);if(e=this.W(),!e)throw this.i(jn+c);f.push(r,e)}for(a=f.length-1,e=f[a];a>1;)e=this.Fe(f[a-1].value,f[a-2],e),a-=2;return e}W(){let e;if(this.g(),e=this.Ht(),e)return this.ge(e);let n=this.h;if(ht(n)||n===Ne)return this.jt();if(n===Ks||n===Ws)e=this.$t();else if(n===on)e=this._t();else{let o=this.Ft();if(o){let r=this.W();if(!r)throw this.i(oi);return this.ge({type:7,operator:o,argument:r})}this.z(n)?(e=this.be(),e.name in tr?e={type:4,value:tr[e.name],raw:e.name}:e.name===Xs&&(e={type:5})):n===nn&&(e=this.qt())}return e?(e=this.G(e),this.ge(e)):!1}Fe(e,n,o){if(e==="=>"){let r=n.type===1?n.expressions:[n];return{type:15,params:r,body:o}}return Qs.has(e)?{type:16,operator:e,left:n,right:o}:{type:8,operator:e,left:n,right:o}}Ht(){let e={node:!1};return this.Kt(e),e.node||(this.zt(e),e.node)||(this.Wt(e),e.node)||(this.qe(e),e.node)||this.Gt(e),e.node}ge(e){let n={node:e};return this.Jt(n),this.Qt(n),this.Xt(n),n.node}Ft(){let e=this.p,n=this.e,o=e.charCodeAt(n),r=e.charCodeAt(n+1),s=e.charCodeAt(n+2),i=e.charCodeAt(n+3);return o===sn?(this.e++,"-"):o===33?(this.e++,"!"):o===126?(this.e++,"~"):o===je?(this.e++,"+"):o===110&&r===101&&s===119&&!this.me(i)?(this.e+=3,"new"):!1}Ut(){let e={};return this.Yt(e),e.node}Bt(e){let n={node:e};return this.Zt(n),n.node}G(e){this.g();let n=this.h;for(;n===Ne||n===on||n===nn||n===Hn;){let o;if(n===Hn){if(this.p.charCodeAt(this.e+1)!==Ne)break;o=!0,this.e+=2,this.g(),n=this.h}if(this.e++,n===on){if(e={type:3,computed:!0,object:e,property:this.A()},this.g(),n=this.h,n!==Un)throw this.i(ri);this.e++}else n===nn?e={type:6,arguments:this.Ke(tt),callee:e}:(o&&this.e--,this.g(),e={type:3,computed:!1,object:e,property:this.be()});o&&(e.optional=!0),this.g(),n=this.h}return e}jt(){let e=this.p,n=this.e,o=n;for(;ht(e.charCodeAt(o));)o++;if(e.charCodeAt(o)===Ne)for(o++;ht(e.charCodeAt(o));)o++;let r=e.charCodeAt(o);if(r===101||r===69){o++;let a=e.charCodeAt(o);(a===je||a===sn)&&o++;let c=o;for(;ht(e.charCodeAt(o));)o++;if(c===o){this.e=o;let f=e.slice(n,o);throw this.i(si+f+this.H+")")}}this.e=o;let s=e.slice(n,o),i=e.charCodeAt(o);if(this.z(i))throw this.i(ii+s+this.H+")");if(i===Ne||s.length===1&&s.charCodeAt(0)===Ne)throw this.i(ni);return{type:4,value:parseFloat(s),raw:s}}$t(){let e=this.p,n=e.length,o=this.e,r=e.charCodeAt(this.e++),s=this.e,i=s,a=[],c=!1,f=!1;for(;s<n;){let l=e.charCodeAt(s);if(l===r){f=!0,this.e=s+1;break}if(l===$n){c||(c=!0),a.push(e.slice(i,s));let m=e.charCodeAt(s+1);a.push(this.ze(m)),s+=2,i=s}else s++}let u=c?a.join("")+e.slice(i,f?s:n):e.slice(i,f?s:n);if(!f)throw this.e=s,this.i(ai+u+'"');return{type:4,value:u,raw:e.substring(o,this.e)}}ze(e){switch(e){case 110:return`
|
|
2
|
+
`;case 114:return"\r";case 116:return" ";case 98:return"\b";case 102:return"\f";case 118:return"\v";default:return isNaN(e)?"":String.fromCharCode(e)}}be(){let e=this.h,n=this.e;if(this.z(e))this.e++;else throw this.i(_e+this.H);for(;this.e<this.p.length&&(e=this.h,this.me(e));)this.e++;return{type:2,name:this.p.slice(n,this.e)}}Ke(e){let n=[],o=!1,r=0;for(;this.e<this.p.length;){this.g();let s=this.h;if(s===e){if(o=!0,this.e++,e===tt&&r&&r>=n.length)throw this.i(rr+String.fromCharCode(e));break}else if(s===tn){if(this.e++,r++,r!==n.length){if(e===tt)throw this.i(rr+",");for(let i=n.length;i<r;i++)n.push(null)}}else{if(n.length!==r&&r!==0)throw this.i(or);{let i=this.A();if(!i||i.type===0)throw this.i(or);n.push(i)}}}if(!o)throw this.i(nt+String.fromCharCode(e));return n}qt(){this.e++;let e=this.ye(tt);if(this.f(tt))return this.e++,e.length===1?e[0]:e.length?{type:1,expressions:e}:!1;throw this.i(ti)}_t(){return this.e++,{type:9,elements:this.Ke(Un)}}Kt(e){if(this.f(Yo)){this.e++;let n=[];for(;!isNaN(this.h);){if(this.g(),this.f(rn)){this.e++,e.node=this.G({type:10,properties:n});return}let o=this.A();if(!o)break;if(this.g(),o.type===2&&(this.f(tn)||this.f(rn)))n.push({type:12,computed:!1,key:o,value:o,shorthand:!0});else if(this.f(Xo)){this.e++;let r=this.A();if(!r)throw this.i(ei);let s=o.type===9;n.push({type:12,computed:s,key:s?o.elements[0]:o,value:r,shorthand:!1}),this.g()}else n.push(o);this.f(tn)&&this.e++}throw this.i(Zs)}}zt(e){let n=this.h;if((n===je||n===sn)&&n===this.p.charCodeAt(this.e+1)){this.e+=2;let o=e.node={type:13,operator:n===je?"++":"--",argument:this.G(this.be()),prefix:!0};if(!o.argument||!er.has(o.argument.type))throw this.i(_e+o.operator)}}Qt(e){let n=e.node,o=this.h;if((o===je||o===sn)&&o===this.p.charCodeAt(this.e+1)){if(!er.has(n.type))throw this.i(_e+(o===je?"++":"--"));this.e+=2,e.node={type:13,operator:o===je?"++":"--",argument:n,prefix:!1}}}Wt(e){this.p.charCodeAt(this.e)===Ne&&this.p.charCodeAt(this.e+1)===Ne&&this.p.charCodeAt(this.e+2)===Ne&&(this.e+=3,e.node={type:14,argument:this.A()})}Zt(e){if(e.node&&this.f(Hn)){this.e++;let n=e.node,o=this.A();if(!o)throw this.i(nr);if(this.g(),this.f(Xo)){this.e++;let r=this.A();if(!r)throw this.i(nr);e.node={type:11,test:n,consequent:o,alternate:r}}else throw this.i(Ys)}}Yt(e){if(this.g(),this.f(nn)){let n=this.e;if(this.e++,this.g(),this.f(tt)){this.e++;let o=this.he();if(o==="=>"){let r=this._e();if(!r)throw this.i(jn+o);e.node={type:15,params:null,body:r};return}}this.e=n}}Xt(e){let n=e.node,o=n.type;(o===2||o===3)&&this.f(Bn)&&(e.node={type:17,tag:n,quasi:this.qe(e)})}qe(e){if(!this.f(Bn))return;let n=this.p,o=n.length,r={type:19,quasis:[],expressions:[]},s=++this.e,i=[],a=[],c=!1,f=u=>{if(!c){let y=n.slice(s,this.e);return r.quasis.push({type:18,value:{raw:y,cooked:y},tail:u})}i.push(n.slice(s,this.e)),a.push(n.slice(s,this.e));let l=i.join(""),m=a.join("");return i.length=0,a.length=0,c=!1,r.quasis.push({type:18,value:{raw:l,cooked:m},tail:u})};for(;this.e<o;){let u=n.charCodeAt(this.e);if(u===Bn)return f(!0),this.e+=1,e.node=r,r;if(u===36&&n.charCodeAt(this.e+1)===Yo){if(f(!1),this.e+=2,r.expressions.push(...this.ye(rn)),!this.f(rn))throw this.i("unclosed ${");this.e+=1,s=this.e}else if(u===$n){c||(c=!0),i.push(n.slice(s,this.e)),a.push(n.slice(s,this.e));let l=n.charCodeAt(this.e+1);i.push(n.slice(this.e,this.e+2)),a.push(this.ze(l)),this.e+=2,s=this.e}else this.e+=1}throw this.i("Unclosed `")}Jt(e){let n=e.node;if(!n||n.operator!=="new"||!n.argument)return;if(!n.argument||![6,3].includes(n.argument.type))throw this.i("Expected new function()");e.node=n.argument;let o=e.node;for(;o.type===3||o.type===6&&o.callee.type===3;)o=o.type===3?o.object:o.callee.object;o.type=20}Gt(e){if(!this.f(Zo))return;let n=++this.e,o=!1;for(;this.e<this.p.length;){if(this.h===Zo&&!o){let r=this.p.slice(n,this.e),s="";for(;++this.e<this.p.length;){let a=this.h;if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)s+=this.H;else break}let i;try{i=new RegExp(r,s)}catch(a){throw this.i(a.message)}return e.node={type:4,value:i,raw:this.p.slice(n-1,this.e)},e.node=this.G(e.node),e.node}this.f(on)?o=!0:o&&this.f(Un)&&(o=!1),this.e+=this.f($n)?2:1}throw this.i("Unclosed Regex")}},cr=t=>new Fn(t).parse();var ci={"=>":(t,e)=>{},"=":(t,e)=>{},"*=":(t,e)=>{},"**=":(t,e)=>{},"/=":(t,e)=>{},"%=":(t,e)=>{},"+=":(t,e)=>{},"-=":(t,e)=>{},"<<=":(t,e)=>{},">>=":(t,e)=>{},">>>=":(t,e)=>{},"&=":(t,e)=>{},"^=":(t,e)=>{},"|=":(t,e)=>{},"||":(t,e)=>t()||e(),"??":(t,e)=>{var n;return(n=t())!=null?n:e()},"&&":(t,e)=>t()&&e(),"|":(t,e)=>t|e,"^":(t,e)=>t^e,"&":(t,e)=>t&e,"==":(t,e)=>t==e,"!=":(t,e)=>t!=e,"===":(t,e)=>t===e,"!==":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>t>e,"<=":(t,e)=>t<=e,">=":(t,e)=>t>=e,in:(t,e)=>t in e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"**":(t,e)=>xt(t,e)},ui={"-":t=>-t,"+":t=>+t,"!":t=>!t,"~":t=>~t,new:t=>t},pr=t=>{if(!(t!=null&&t.some(fr)))return t;let e=[];return t.forEach(n=>fr(n)?e.push(...n):e.push(n)),e},ur=(...t)=>pr(t),zn=(t,e)=>{if(!t)return e;let n=Object.create(e!=null?e:{});return n.$event=t,n},li={"++":(t,e)=>{let n=t[e];if(E(n)){let o=n();return n(++o),o}return++t[e]},"--":(t,e)=>{let n=t[e];if(E(n)){let o=n();return n(--o),o}return--t[e]}},fi={"++":(t,e)=>{let n=t[e];if(E(n)){let o=n();return n(o+1),o}return t[e]++},"--":(t,e)=>{let n=t[e];if(E(n)){let o=n();return n(o-1),o}return t[e]--}},lr={"=":(t,e,n)=>{let o=t[e];return E(o)?o(n):t[e]=n},"+=":(t,e,n)=>{let o=t[e];return E(o)?o(o()+n):t[e]+=n},"-=":(t,e,n)=>{let o=t[e];return E(o)?o(o()-n):t[e]-=n},"*=":(t,e,n)=>{let o=t[e];return E(o)?o(o()*n):t[e]*=n},"/=":(t,e,n)=>{let o=t[e];return E(o)?o(o()/n):t[e]/=n},"%=":(t,e,n)=>{let o=t[e];return E(o)?o(o()%n):t[e]%=n},"**=":(t,e,n)=>{let o=t[e];return E(o)?o(xt(o(),n)):t[e]=xt(t[e],n)},"<<=":(t,e,n)=>{let o=t[e];return E(o)?o(o()<<n):t[e]<<=n},">>=":(t,e,n)=>{let o=t[e];return E(o)?o(o()>>n):t[e]>>=n},">>>=":(t,e,n)=>{let o=t[e];return E(o)?o(o()>>>n):t[e]>>>=n},"|=":(t,e,n)=>{let o=t[e];return E(o)?o(o()|n):t[e]|=n},"&=":(t,e,n)=>{let o=t[e];return E(o)?o(o()&n):t[e]&=n},"^=":(t,e,n)=>{let o=t[e];return E(o)?o(o()^n):t[e]^=n}},an=(t,e)=>W(t)?t.bind(e):t,Kn=class{constructor(e,n,o,r,s){p(this,"l");p(this,"We");p(this,"Ge");p(this,"Je");p(this,"V");p(this,"Qe");p(this,"Xe");this.l=v(e)?e:[e],this.We=n,this.Ge=o,this.Je=r,this.Xe=!!s}Ye(e,n){if(n&&e in n)return n;for(let o of this.l)if(e in o)return o}2(e,n,o){let r=e.name;if(r==="$root")return this.l[this.l.length-1];if(r==="$parent")return this.l[1];if(r==="$ctx")return[...this.l];if(o&&r in o)return this.V=o[r],an(N(o[r]),o);for(let i of this.l)if(r in i)return this.V=i[r],an(N(i[r]),i);let s=this.We;if(s&&r in s)return this.V=s[r],an(N(s[r]),s)}5(e,n,o){return this.l[0]}0(e,n,o){return this.Ze(n,o,ur,...e.body)}1(e,n,o){return this.w(n,o,(...r)=>r.pop(),...e.expressions)}3(e,n,o){let{obj:r,key:s}=this.Te(e,n,o),i=r==null?void 0:r[s];return this.V=i,an(N(i),r)}4(e,n,o){return e.value}6(e,n,o){let r=(i,...a)=>W(i)?i(...pr(a)):i,s=this.w(++n,o,r,e.callee,...e.arguments);return this.V=s,s}7(e,n,o){return this.w(n,o,ui[e.operator],e.argument)}8(e,n,o){let r=ci[e.operator];switch(e.operator){case"||":case"&&":case"??":return r(()=>this.b(e.left,n,o),()=>this.b(e.right,n,o))}return this.w(n,o,r,e.left,e.right)}9(e,n,o){return this.Ze(++n,o,ur,...e.elements)}10(e,n,o){let r={},s=(...i)=>{i.forEach(a=>{Object.assign(r,a)})};return this.w(++n,o,s,...e.properties),r}11(e,n,o){return this.w(n,o,r=>this.b(r?e.consequent:e.alternate,n,o),e.test)}12(e,n,o){var u;let r={},s=l=>(l==null?void 0:l.type)!==15,i=(u=this.Je)!=null?u:()=>!1,a=n===0&&this.Xe,c=l=>this.et(a,e.key,n,zn(l,o)),f=l=>this.et(a,e.value,n,zn(l,o));if(e.shorthand){let l=e.key.name;r[l]=s(e.key)&&i(l,n)?c:c()}else if(e.computed){let l=N(c());r[l]=s(e.value)&&i(l,n)?f:f()}else{let l=e.key.type===4?e.key.value:e.key.name;r[l]=s(e.value)&&i(l,n)?()=>f:f()}return r}Te(e,n,o){let r=this.b(e.object,n,o),s=e.computed?this.b(e.property,n,o):e.property.name;return{obj:r,key:s}}13(e,n,o){let r=e.argument,s=e.operator,i=e.prefix?li:fi;if(r.type===2){let a=r.name,c=this.Ye(a,o);return pe(c)?void 0:i[s](c,a)}if(r.type===3){let{obj:a,key:c}=this.Te(r,n,o);return i[s](a,c)}}16(e,n,o){let r=e.left,s=e.operator;if(r.type===2){let i=r.name,a=this.Ye(i,o);if(pe(a))return;let c=this.b(e.right,n,o);return lr[s](a,i,c)}if(r.type===3){let{obj:i,key:a}=this.Te(r,n,o),c=this.b(e.right,n,o);return lr[s](i,a,c)}}14(e,n,o){let r=this.b(e.argument,n,o);return v(r)&&(r.s=mr),r}17(e,n,o){return this[6]({type:6,callee:e.tag,arguments:[{type:9,elements:e.quasi.quasis},...e.quasi.expressions]},n,o)}19(e,n,o){let r=(...s)=>s.reduce((i,a,c)=>i+=a+e.quasis[c+1].value.cooked,e.quasis[0].value.cooked);return this.w(n,o,r,...e.expressions)}18(e,n,o){return e.value.cooked}20(e,n,o){let r=(s,...i)=>new s(...i);return this.w(n,o,r,e.callee,...e.arguments)}15(e,n,o){return(...r)=>{let s=Object.create(o!=null?o:{}),i=e.params;if(i){let a=0;for(let c of i)s[c.name]=r[a++]}return this.b(e.body,n,s)}}b(e,n,o){let r=N(this[e.type](e,n,o));return this.Qe=e.type,r}et(e,n,o,r){let s=this.b(n,o,r);return e&&this.tt()?this.V:s}tt(){let e=this.Qe;return(e===2||e===3||e===6)&&E(this.V)}eval(e,n){let{value:o,refs:r}=vn(()=>this.b(e,-1,n)),s={value:o,refs:r};return this.tt()&&(s.ref=this.V),s}w(e,n,o,...r){let s=r.map(i=>i&&this.b(i,e,n));return o(...s)}Ze(e,n,o,...r){let s=this.Ge;if(!s)return this.w(e,n,o,...r);let i=r.map((a,c)=>a&&(a.type!==15&&s(c,e)?f=>this.b(a,e,zn(f,n)):this.b(a,e,n)));return o(...i)}},mr=Symbol("s"),fr=t=>(t==null?void 0:t.s)===mr,dr=(t,e,n,o,r,s,i)=>new Kn(e,n,o,r,i).eval(t,s);var hr={},yr=t=>!!t,cn=class{constructor(e,n){p(this,"l");p(this,"o");p(this,"nt",[]);this.l=e,this.o=n}v(e){this.l=[e,...this.l]}ne(){return this.l.map(n=>n.components).filter(yr).reverse().reduce((n,o)=>{for(let[r,s]of Object.entries(o))n[r.toUpperCase()]=s;return n},{})}ft(){let e=[],n=new Set,o=this.l.map(r=>r.components).filter(yr).reverse();for(let r of o)for(let s of Object.keys(r))n.has(s)||(n.add(s),e.push(s));return e}O(e,n,o,r,s){var C;let i=[],a=[],c=new Set,f=()=>{for(let b=0;b<a.length;++b)a[b]();a.length=0},m={value:()=>i,stop:()=>{f(),c.clear()},subscribe:(b,M)=>(c.add(b),M&&b(i),()=>{c.delete(b)}),refs:[],context:this.l[0]};if(j(e))return m;let y=this.o.globalContext,x=[],d=new Set,w=(b,M,D,U)=>{try{let I=dr(b,M,y,n,o,U,r);return D&&I.refs.length>0&&x.push(...I.refs),{value:I.value,refs:I.refs,ref:I.ref}}catch(I){_(6,`evaluation error: ${e}`,I)}return{value:void 0,refs:[]}};try{let b=(C=hr[e])!=null?C:cr("["+e+"]");hr[e]=b;let M=this.l.slice(),D=b.elements,U=D.length,I=new Array(U);m.refs=I;let ne=()=>{x.length=0,s||(d.clear(),f());let K=new Array(U);for(let S=0;S<U;++S){let T=D[S];if(n!=null&&n(S,-1)){K[S]=F=>w(T,M,!1,{$event:F}).value;continue}let V=w(T,M,!0);K[S]=V.value,I[S]=V.ref}if(!s)for(let S of x)d.has(S)||(d.add(S),a.push(se(S,ne)));if(i=K,c.size!==0)for(let S of c)c.has(S)&&S(i)};ne()}catch(b){_(6,`parse error: ${e}`,b)}return m}L(){return this.l.slice()}le(e){this.nt.push(this.l),this.l=e}C(e,n){try{this.le(e),n()}finally{this.en()}}en(){var e;this.l=(e=this.nt.pop())!=null?e:[]}};var gr=t=>{let e=t.charCodeAt(0);return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||t==="-"||t==="_"||t===":"},pi=(t,e)=>{let n="";for(let o=e;o<t.length;++o){let r=t[o];if(n){r===n&&(n="");continue}if(r==='"'||r==="'"){n=r;continue}if(r===">")return o}return-1},mi=(t,e)=>{let n=e?2:1;for(;n<t.length&&(t[n]===" "||t[n]===`
|
|
3
|
+
`);)++n;if(n>=t.length||!gr(t[n]))return null;let o=n,r=!1;for(;n<t.length&&gr(t[n]);){let s=t.charCodeAt(n);s>=65&&s<=90&&(r=!0),++n}return{start:o,end:n,hasUppercase:r}},br=t=>{switch(t){case"table":case"thead":case"tbody":case"tfoot":return!0;default:return!1}},di=t=>{switch(t){case"thead":case"tbody":case"tfoot":return!0;default:return!1}},hi=t=>{switch(t){case"caption":case"colgroup":case"thead":case"tbody":case"tfoot":case"tr":return!0;default:return!1}},yt=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),yi=t=>{switch(t){case"caption":return"captionx";case"thead":return"theadx";case"tbody":return"tbodyx";case"tfoot":return"tfootx";case"tr":return"trx";case"td":return"tdx";case"th":return"thx";case"colgroup":return"colgroupx";case"col":return"colx";default:return null}},gi=t=>{switch(t){case"captionx":return"caption";case"theadx":return"thead";case"tbodyx":return"tbody";case"tfootx":return"tfoot";case"trx":return"tr";case"tdx":return"td";case"thx":return"th";case"colgroupx":return"colgroup";case"colx":return"col";default:return}},bi=(t,e)=>`${t}</${e}>`,Tr=(t,e)=>`${t.slice(0,t.length-2)}></${e}>`,un=t=>{var i,a;let e=0,n=[],o=[],r=[],s=0;for(;e<t.length;){let c=t.indexOf("<",e);if(c===-1){n.push(t.slice(e));break}if(n.push(t.slice(e,c)),t.startsWith("<!--",c)){let S=t.indexOf("-->",c+4);if(S===-1){n.push(t.slice(c));break}n.push(t.slice(c,S+3)),e=S+3;continue}let f=pi(t,c);if(f===-1){n.push(t.slice(c));break}let u=t.slice(c,f+1),l=u.startsWith("</");if(u.startsWith("<!")||u.startsWith("<?")){n.push(u),e=f+1;continue}let y=mi(u,l);if(!y){n.push(u),e=f+1;continue}let x=u.slice(y.start,y.end),d=y.hasUppercase?"":x;if(l){let S=r[r.length-1];if((S==null?void 0:S.tagName)===x){r.pop(),S.emit&&n.push(u),e=f+1;continue}let T=o[o.length-1];T?(o.pop(),n.push(T.replacementHost?`</${T.replacementHost}>`:u),!T.isTableAlias&&br(T.effectiveTag)&&--s):n.push(u),e=f+1;continue}let w=u.charCodeAt(u.length-2)===47,C=o[o.length-1],b=null;s===0?b=yi(d):di((i=C==null?void 0:C.effectiveTag)!=null?i:"")?b=d==="tr"?null:"tr":(C==null?void 0:C.effectiveTag)==="table"?b=hi(d)?null:"tr":(C==null?void 0:C.effectiveTag)==="tr"?b=d==="td"||d==="th"?null:"td":(C==null?void 0:C.effectiveTag)==="colgroup"&&(b=d==="col"?null:"col");let M=gi(b),D=M!==void 0,U=w&&!yt.has(b||d),I=!!b&&M===d&&yt.has(d),ne=!w&&!!b&&yt.has(b)&&!I,K=!w&&!b&&yt.has(d);if(b){let S=`${u.slice(0,y.start)}${b} is="${M?`r-${M}`:`regor:${x}`}"${u.slice(y.end)}`;n.push(U?Tr(S,b):I?bi(S,b):S)}else n.push(U?Tr(u,x):u);if(ne?r.push({tagName:x,emit:!1}):I&&!w?r.push({tagName:x,emit:!1}):K&&r.push({tagName:x,emit:!0}),!w&&!I&&!ne&&!K&&!yt.has(b!=null?b:d)){let S=(a=M!=null?M:b)!=null?a:d||x;o.push({replacementHost:b,effectiveTag:S,isTableAlias:D}),!D&&br(S)&&++s}e=f+1}return n.join("")};var Ti="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",xi=new Set(Ti.toUpperCase().split(",")),Ci="http://www.w3.org/2000/svg",xr=(t,e)=>{me(t)?t.content.appendChild(e):t.appendChild(e)},Wn=(t,e,n,o)=>{var i;let r=t.t;if(r){let a=n&&xi.has(r.toUpperCase())?document.createElementNS(Ci,r.toLowerCase()):document.createElement(r),c=t.a;if(c)for(let u of Object.entries(c)){let l=u[0],m=u[1];l.startsWith("#")&&(m=l.substring(1),l="name"),a.setAttribute(Pt(l,o),m)}let f=t.c;if(f)for(let u of f)Wn(u,a,n,o);xr(e,a);return}let s=t.d;if(s){let a;switch((i=t.n)!=null?i:Node.TEXT_NODE){case Node.COMMENT_NODE:a=document.createComment(s);break;case Node.TEXT_NODE:a=document.createTextNode(s);break}if(a)xr(e,a);else throw new Error("unsupported node type.")}},ot=(t,e,n)=>{n!=null||(n=he.getDefault());let o=document.createDocumentFragment();if(!v(t))return Wn(t,o,!!e,n),o;for(let r of t)Wn(r,o,!!e,n);return o};var Ei=(t,e={selector:"#app"},n)=>{G(e)&&(e={selector:"#app",template:e}),go(t)&&(t=t.context);let o=e.element?e.element:e.selector?document.querySelector(e.selector):null;if(!o||!Re(o))throw q(0);n||(n=he.getDefault());let r=()=>{for(let a of[...o.childNodes])ee(a)},s=a=>{for(;a.length>0;)o.appendChild(a[0])};if(e.template){let a=document.createRange().createContextualFragment(un(e.template));r(),s(a.childNodes),e.element=a}else if(e.json){let a=ot(e.json,e.isSVG,n);r(),s(a.childNodes)}return n.useInterpolation&&en(o,n),new Gn(t,o,n).y(),Q(o,()=>{Le(t)}),Ut(t),{context:t,unmount:()=>{ee(o)},unbind:()=>{Ee(o)}}},Gn=class{constructor(e,n,o){p(this,"tn");p(this,"rt");p(this,"o");p(this,"m");p(this,"r");this.tn=e,this.rt=n,this.o=o,this.m=new cn([e],o),this.r=new Qt(this.m)}y(){this.r.$(this.rt)}};var gt=t=>{if(v(t))return t.map(r=>gt(r));let e={};if(t.tagName)e.t=t.tagName;else return t.nodeType===Node.COMMENT_NODE&&(e.n=Node.COMMENT_NODE),t.textContent&&(e.d=t.textContent),e;let n=t.getAttributeNames();n.length>0&&(e.a=Object.fromEntries(n.map(r=>{var s;return[r,(s=t.getAttribute(r))!=null?s:""]})));let o=ve(t);return o.length>0&&(e.c=[...o].map(r=>gt(r))),e};var Ri=(t,e={})=>{var s,i,a,c,f,u;v(e)&&(e={props:e}),G(t)&&(t={template:t});let n=(s=e.context)!=null?s:()=>({}),o=!1;if(t.element){let l=t.element;l.remove(),t.element=l}else if(t.selector){let l=document.querySelector(t.selector);if(!l)throw q(1,t.selector);l.remove(),t.element=l}else if(t.template){let l=document.createRange().createContextualFragment(un(t.template));t.element=l}else t.json&&(t.element=ot(t.json,t.isSVG,e.config),o=!0);t.element||(t.element=document.createDocumentFragment()),((i=e.useInterpolation)==null||i)&&en(t.element,(a=e.config)!=null?a:he.getDefault());let r=t.element;if(!o&&(((f=t.isSVG)!=null?f:ut(r)&&((c=r.hasAttribute)!=null&&c.call(r,"isSVG")))||ut(r)&&r.querySelector("[isSVG]"))){let l=r.content,m=l?[...l.childNodes]:[...r.childNodes],y=gt(m);t.element=ot(y,!0,e.config)}return{context:n,template:t.element,inheritAttrs:(u=e.inheritAttrs)!=null?u:!0,props:e.props,defaultName:e.defaultName}};var Jn=class{constructor(){p(this,"byConstructor",new Map)}register(e){this.byConstructor.set(e.constructor,e)}unregisterByClass(e){this.byConstructor.delete(e)}unregister(e){let n=e.constructor;this.byConstructor.get(n)===e&&this.byConstructor.delete(n)}find(e){for(let n of this.byConstructor.values())if(n instanceof e)return n}require(e){let n=this.find(e);if(n)return n;throw new Error(`${e.name} is not registered in ContextRegistry.`)}};var wi=t=>{var e;(e=Ue())==null||e.onMounted.push(t)};var vi=t=>{let e,n={},o=(...r)=>{if(r.length<=2&&0 in r)throw q(4);return e&&!n.isStopped?e(...r):(e=Si(t,n),e(...r))};return o[J]=1,Pe(o,!0),o.stop=()=>{var r,s;return(s=(r=n.ref)==null?void 0:r.stop)==null?void 0:s.call(r)},ce(()=>o.stop(),!0),o},Si=(t,e)=>{var s;let n=(s=e.ref)!=null?s:ie(null);e.ref=n,e.isStopped=!1;let o=0,r=Xe(()=>{if(o>0){r(),e.isStopped=!0,te(n);return}n(t()),++o});return n.stop=r,n};var Ai=(t,e)=>{let n={},o,r=(...s)=>{if(s.length<=2&&0 in s)throw q(4);return o&&!n.isStopped?o(...s):(o=Ni(t,e,n),o(...s))};return r[J]=1,Pe(r,!0),r.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},ce(()=>r.stop(),!0),r},Ni=(t,e,n)=>{var a;let o=(a=n.ref)!=null?a:ie(null);n.ref=o,n.isStopped=!1;let r=0,s=c=>{if(r>0){o.stop(),n.isStopped=!0,te(o);return}let f=t.map(u=>u());o(e(...f)),++r},i=[];for(let c of t){let f=se(c,s);i.push(f)}return s(null),o.stop=()=>{i.forEach(c=>{c()})},o};var Mi=(t,e)=>{let n={},o,r=(...s)=>{if(s.length<=2&&0 in s)throw q(4);return o&&!n.isStopped?o(...s):(o=Oi(t,e,n),o(...s))};return r[J]=1,Pe(r,!0),r.stop=()=>{var s,i;return(i=(s=n.ref)==null?void 0:s.stop)==null?void 0:i.call(s)},ce(()=>r.stop(),!0),r},Oi=(t,e,n)=>{var s;let o=(s=n.ref)!=null?s:ie(null);n.ref=o,n.isStopped=!1;let r=0;return o.stop=se(t,i=>{if(r>0){o.stop(),n.isStopped=!0,te(o);return}o(e(i)),++r},!0),o};var ki=t=>(t[At]=1,t);var Li=(t,e)=>{if(!e)throw q(5);let o=et(t)?$e:a=>a,r=()=>localStorage.setItem(e,JSON.stringify(le(t()))),s=localStorage.getItem(e);if(s!=null)try{t(o(JSON.parse(s)))}catch(a){_(6,`persist: failed to parse data for key ${e}`,a),r()}else r();let i=Xe(r);return ce(i,!0),t};var Qn=(t,...e)=>{let n="",o=t,r=e,s=o.length,i=r.length;for(let a=0;a<s;++a)n+=o[a],a<i&&(n+=r[a]);return n},Ii=Qn,Vi=Qn;var Pi=(t,e,n)=>{let o=[],r=()=>{e(t.map(i=>i()))};for(let i of t)o.push(se(i,r));n&&r();let s=()=>{for(let i of o)i()};return ce(s,!0),s};var Di=t=>{if(!E(t))throw q(3,"observerCount");return t(void 0,void 0,2)};var Ui=t=>{Cr();try{t()}finally{Er()}},Cr=()=>{be.stack||(be.stack=[]),be.stack.push(new Set)},Er=()=>{let t=be.stack;if(!t||t.length===0)return;let e=t.pop();if(t.length){let n=t[t.length-1];for(let o of e)n.add(o);return}delete be.stack;for(let n of e)try{te(n)}catch(o){console.error(o)}};export{it as ComponentHead,Jn as ContextRegistry,he as RegorConfig,Q as addUnbinder,Ui as batch,vn as collectRefs,Ai as computeMany,Mi as computeRef,vi as computed,Ei as createApp,Ri as defineComponent,Mr as drainUnbind,Er as endBatch,ft as entangle,le as flatten,He as getBindData,Qn as html,et as isDeepRef,pt as isRaw,E as isRef,ki as markRaw,se as observe,Pi as observeMany,Di as observerCount,wi as onMounted,ce as onUnmounted,kn as pause,Li as persist,Wr as pval,Ii as raw,$e as ref,ee as removeNode,Ln as resume,wn as silence,ie as sref,Cr as startBatch,Vi as svg,ot as toFragment,gt as toJsonTemplate,te as trigger,Ee as unbind,N as unref,En as useScope,Ke as warningHandler,Xe as watchEffect};
|
|
@@ -3759,8 +3759,10 @@ var Regor = (() => {
|
|
|
3759
3759
|
};
|
|
3760
3760
|
var handleSelect = (el, getModelRef, parsedValue) => {
|
|
3761
3761
|
const eventType = "change";
|
|
3762
|
+
const stopObservingOptions = observeSelectOptions(el, parsedValue);
|
|
3762
3763
|
const unbinder = () => {
|
|
3763
3764
|
el.removeEventListener(eventType, listener);
|
|
3765
|
+
stopObservingOptions();
|
|
3764
3766
|
};
|
|
3765
3767
|
const listener = () => {
|
|
3766
3768
|
const modelRef = getModelRef();
|
|
@@ -3794,6 +3796,36 @@ var Regor = (() => {
|
|
|
3794
3796
|
el.addEventListener(eventType, listener);
|
|
3795
3797
|
return unbinder;
|
|
3796
3798
|
};
|
|
3799
|
+
var observeSelectOptions = (el, parsedValue) => {
|
|
3800
|
+
var _a, _b;
|
|
3801
|
+
const MutationObserverCtor = (_b = globalThis.MutationObserver) != null ? _b : (_a = globalThis.window) == null ? void 0 : _a.MutationObserver;
|
|
3802
|
+
if (!MutationObserverCtor) return () => {
|
|
3803
|
+
};
|
|
3804
|
+
let pending = false;
|
|
3805
|
+
let stopped = false;
|
|
3806
|
+
const flush = () => {
|
|
3807
|
+
pending = false;
|
|
3808
|
+
if (stopped) return;
|
|
3809
|
+
updateDomElementValue(el, parsedValue()[0]);
|
|
3810
|
+
};
|
|
3811
|
+
const scheduleFlush = () => {
|
|
3812
|
+
if (pending) return;
|
|
3813
|
+
pending = true;
|
|
3814
|
+
if (typeof queueMicrotask === "function") queueMicrotask(flush);
|
|
3815
|
+
else Promise.resolve().then(flush);
|
|
3816
|
+
};
|
|
3817
|
+
const observer = new MutationObserverCtor(scheduleFlush);
|
|
3818
|
+
observer.observe(el, {
|
|
3819
|
+
attributes: true,
|
|
3820
|
+
attributeFilter: ["value"],
|
|
3821
|
+
childList: true,
|
|
3822
|
+
subtree: true
|
|
3823
|
+
});
|
|
3824
|
+
return () => {
|
|
3825
|
+
stopped = true;
|
|
3826
|
+
observer.disconnect();
|
|
3827
|
+
};
|
|
3828
|
+
};
|
|
3797
3829
|
|
|
3798
3830
|
// src/directives/on.ts
|
|
3799
3831
|
var availableFlags = [
|