@estjs/template 0.0.17-beta.7 → 0.0.18-beta.1

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/template.js CHANGED
@@ -1,2 +1,2 @@
1
- import {c,f,h,a,e,g,b}from'./chunk-CBFQJ3PB.js';import {normalizeClassName,SPREAD_NAME,isObject,startsWith,isSpecialBooleanAttr,isBooleanAttr,includeBooleanAttr,isSymbol,isString,isArray,kebabCase,camelCase,capitalize,HYDRATION_ANCHOR_ATTR,isBrowser,warn,isPromise,isFunction,isOn,coerceArray,isNumber}from'@estjs/shared';import {effect,shallowReactive,isSignal,isComputed,isReactive,signal}from'@estjs/signals';var cn="ref",un="key",fn="http://www.w3.org/2000/svg",Oe="http://www.w3.org/2000/xlink",He="http://www.w3.org/2000/xmlns/";var Ve=Symbol(""),ue=Symbol(""),Ke=Symbol(""),dn=Symbol(""),je=Symbol(""),$e=Symbol("");var et=/^data:\s*(?:text\/html|text\/xml|application\/xhtml\+xml|image\/svg\+xml|application\/xml)/;function nt(e){let n=e.replaceAll(/[\u0000-\u0020]+/g,"").toLowerCase();return startsWith(n,"javascript:")||startsWith(n,"vbscript:")?true:et.test(n)}function Z(e,n,t,o){if(n===un){o==null?e.removeAttribute(n):e.setAttribute(n,String(o));return}if(n===SPREAD_NAME){let y=isObject(t)?t:null,T=isObject(o)?o:null;if(y)for(let C in y)C!==SPREAD_NAME&&(!T||!(C in T))&&Z(e,C,y[C],null);if(T)for(let C in T)C!==SPREAD_NAME&&Z(e,C,y==null?void 0:y[C],T[C]);return}let r=(e==null?void 0:e.namespaceURI)===fn,i=r&&startsWith(n,"xlink:"),s=r&&startsWith(n,"xmlns:"),l=isSpecialBooleanAttr(n)||isBooleanAttr(n);if(t===o||n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110)return;let f=n.toLowerCase();if(f==="innerhtml"||f==="srcdoc")return;if(o==null){if(i)e.removeAttributeNS(Oe,n.slice(6));else if(s){let y=n.slice(6);e.removeAttributeNS(He,y);}else e.removeAttribute(n);return}if(l){includeBooleanAttr(o)?e.setAttribute(n,""):e.removeAttribute(n);return}let d=isSymbol(o)?String(o):o;if(!((f==="href"||f==="src"||f==="xlink:href"||f==="action"||f==="formaction"||f==="poster")&&isString(d)&&nt(d))){if(i){e.setAttributeNS(Oe,n,String(d));return}if(s){e.setAttributeNS(He,n,String(d));return}if(r)e.setAttribute(n,String(d));else if(n in e)try{e[n]=d;}catch(y){e.setAttribute(n,String(d));}else e.setAttribute(n,String(d));}}function Ce(e,n,t,o=false){if(n===t)return;let r=Ee(t);if(!r){e.removeAttribute("class");return}(isString(n)?n:Ee(n))!==r&&(o?e.setAttribute("class",r):e.className=r);}var Ee=normalizeClassName;var pn=/\s*!important$/,yn=/(?:^|;)\s*([a-z][a-z\d-]*)\s*:/gi,ct=["Webkit","Moz","ms"],Be={};function Se(e,n,t){let o=e.style;if(t&&isString(t)){n!==t&&(o.cssText=t);return}if(!t){n&&e.removeAttribute("style");return}if(n&&!isString(n)){let r=n;for(let i in r)(!t||t[i]==null)&&ne(o,i,"");}else if(n&&isString(n)){yn.lastIndex=0;let r;for(;(r=yn.exec(n))!==null;){let i=r[1].trim();i&&t&&isObject(t)&&t[i]==null&&ne(o,i,"");}}if(t&&!isString(t)){let r=t;for(let i in r){let s=r[i];(!n||isString(n)||n[i]!==s)&&s!=null&&ne(o,i,s);}}}function ne(e,n,t){if(isArray(t)){for(let i of t)ne(e,n,i);return}(t==null||t==="")&&(t="");let o=isString(t)&&pn.test(t)?"important":"";if(o&&(t=t.replace(pn,"")),startsWith(n,"--")){o?e.setProperty(n,t,o):e.setProperty(n,t);return}let r=ft(e,n);o?e.setProperty(ut(r),t,o):e[r]=t;}function ut(e){let n=kebabCase(e);return startsWith(e,"Webkit")||startsWith(e,"Moz")||startsWith(e,"ms")?`-${n}`:n}function ft(e,n){let t=Be[n];if(t)return t;let o=camelCase(n);if(o!=="filter"&&o in e)return Be[n]=o;o=capitalize(o);for(let r of ct){let i=r+o;if(i in e)return Be[n]=i}return n}var Ue=0;function hn(){return String(Ue++)}function yt(){Ue=0;}var Y=false;function oe(){return Y}var te=new Map;function ht(e){let n=e.querySelectorAll("[data-hk]");for(let t of n){let o=t.dataset.hk;o!=null&&!te.has(o)&&te.set(o,t);}}var be=[],fe=new Map;function gt(){if(typeof document=="undefined")return;let e=document.createNodeIterator(document.body,NodeFilter.SHOW_COMMENT),n;for(;n=e.nextNode();){let t=n.data;if(t==="teleport-anchor")be.push(n);else if(t==="teleport-start"){let o=n.parentElement;if(!o)continue;let r=fe.get(o);r||(r=[],fe.set(o,r)),r.push(n);}}}function Ge(){var e;return (e=be.shift())!=null?e:null}function We(e){let n=fe.get(e),t=n==null?void 0:n.shift();if(!t)return null;let o=[],r=t.nextSibling;for(;r;){if(r.nodeType===Node.COMMENT_NODE&&r.data==="teleport-end")return {start:t,end:r,nodes:o};o.push(r),r=r.nextSibling;}return null}function ze(e){Y=true,Ue=0,te.clear(),be.length=0,fe.clear(),ht(e),gt();}function qe(){Y=false,te.clear(),be.length=0,fe.clear();}function gn(e,n,t){var i,s;if(!Y||t&&t.parentNode!==e)return null;if(n.length===0)return [];let o=new Array(n.length),r=t?t.previousSibling:e.lastChild;for(let l=n.length-1;l>=0;l--){if(!r)return null;let f=n[l],d=f.nodeType;if(d===Node.TEXT_NODE){let c=(i=f.textContent)!=null?i:"";if(!c||r.nodeType!==Node.TEXT_NODE)return null;let y=(s=r.textContent)!=null?s:"";if(y===c){o[l]=r,r=r.previousSibling;continue}if(!y.endsWith(c))return null;let T=y.slice(0,y.length-c.length);if(!T)return null;let C=document.createTextNode(T);e.insertBefore(C,r),r.textContent=c,o[l]=r,r=C;continue}if(r.nodeType!==d)return null;if(d===Node.ELEMENT_NODE){if(r.tagName!==f.tagName)return null}else if(d===Node.COMMENT_NODE&&r.data!==f.data)return null;o[l]=r,r=r.previousSibling;}return o}function vt(e){var t,o,r;return (r=(o=e.dataset.hk)!=null?o:(t=e.closest("[data-hk]"))==null?void 0:t.dataset.hk)!=null?r:null}function vn(e,n){if(Y&&e){let t=vt(e);if(t)return `${t}-${n}`}return String(n)}function Et(e,n){if(!e||n<0)return null;let t=vn(e instanceof Element?e:null,n),o=0,r=e.firstChild;for(;r;){if(r.nodeType===Node.COMMENT_NODE){let i=r;if(i.data===t||!Y&&i.data===""&&o++===n)return i}r=r.nextSibling;}return null}function Ct(e,n){if(!(e instanceof Element)||n<0)return null;let t=vn(e,n),o=e.firstChild;for(;o;){if(o instanceof Element&&o.getAttribute(HYDRATION_ANCHOR_ATTR)===t)return o;o=o.nextSibling;}return null}function Nt(e){if(!isBrowser())return ()=>{throw new Error("[essor] getRenderedElement called in non-browser environment")};let n=null;return ()=>{if(!Y)return n||(n=Te(e)),n();let t=hn(),o=te.get(t);return o?(te.delete(t),o):(warn(`[essor] hydration mismatch: no SSR element for key "${t}"`),n||(n=Te(e)),n())}}function St(e,n,t,o){Y||Ce(e,n,t,o);}function Tt(e,n,t,o){Y||Z(e,n,t,o);}function bt(e,n,t){Y||Se(e,n,t);}function Xe(e,n){return n&&n.parentNode===e?n:null}function En(e,n,t,o){let r=Xe(e,o),i=n.length,s=t.length;if(i===0&&s===0)return t;if(i===0){for(let c=0;c<s;c++)W(e,t[c],r);return t}if(s===0){for(let c=0;c<i;c++)J(n[c]);return []}let l=0,f=i-1,d=s-1;for(;l<=f&&l<=d&&n[l]===t[l];)l++;for(;f>=l&&d>=l&&n[f]===t[d];)f--,d--;if(l>f){if(l<=d){let c=d+1,y=Xe(e,c<s?t[c]:r);for(let T=l;T<=d;T++)W(e,t[T],y);}}else if(l>d)for(let c=l;c<=f;c++)J(n[c]);else wt(e,n,t,l,f,d,r);return t}function wt(e,n,t,o,r,i,s){let l=i-o+1,f=l<=4?x=>{for(let b=o;b<=i;b++)if(t[b]===x)return b}:(()=>{let x=new Map;for(let b=o;b<=i;b++)x.set(t[b],b);return b=>x.get(b)})(),d=new Int32Array(l),c=0,y=false,T=0;for(let x=o;x<=r;x++){let b=n[x];if(c>=l){J(b);continue}let D=f(b);D===void 0?J(b):(d[D-o]=x+1,D>=T?T=D:y=true,c++);}let C=y?Ye(d):[],w=C.length-1;for(let x=l-1;x>=0;x--){let b=o+x,D=t[b],p=Xe(e,b+1<t.length?t[b+1]:s);d[x]===0?W(e,D,p):y&&(w<0||x!==C[w]?W(e,D,p):w--);}}function Ye(e){let n=new Int32Array(e.length),t=[0],o=e.length,r,i,s,l,f;for(r=0;r<o;r++){let d=e[r];if(d!==0){if(i=t[t.length-1],e[i]<d){n[r]=i,t.push(r);continue}for(s=0,l=t.length-1;s<l;)f=s+l>>1,e[t[f]]<d?s=f+1:l=f;d<e[t[s]]&&(s>0&&(n[r]=t[s-1]),t[s]=r);}}for(s=t.length,l=t[s-1];s-- >0;)t[s]=l,l=n[l];return t}function J(e){if(e)if(B(e))e.destroy();else {let n=e;n.parentNode&&n.remove();}}function W(e,n,t){if(!e||!n)return;let o=B(t)?t.firstChild:t;if(B(n)){n.mount(e,o);return}o?e.insertBefore(n,o):e.appendChild(n);}function we(e){if(e instanceof Node||B(e))return e;let n=typeof e;return e==null||n==="string"||n==="number"||n==="boolean"||n==="symbol"?document.createTextNode(e===false||e==null?"":String(e)):document.createTextNode(String(e))}function z(e,n,t){if(!e)return;let o=c(),r=[],i=true,s=f=>{if(f instanceof Node)return [f];if(B(f))return [f];let d=typeof f;return f==null||d==="string"||d==="number"||d==="boolean"?[we(f)]:coerceArray(f).map(c=>isFunction(c)?c():c).flatMap(c=>c).map(we)},l=effect(()=>{let f$1=()=>{let d=isFunction(n)?n():n,c=s(d);if(i&&oe()&&c.every(y=>y instanceof Node&&y.parentNode===e)){r=c,i=false;return}if(i&&oe()){let y=gn(e,c,t);if(y){r=y,i=false;return}}r=En(e,r,c,t),i=false;};o&&!o.isDestroyed?f(o,f$1):f$1();});return h(()=>{l.stop();for(let f of r)J(f);r=[],o=null;}),r}function _t(e){return (e==null?void 0:e.firstChild)||null}function kt(e,n=1){for(;e&&n>0;)e=e.nextSibling,n--;return e||null}function Pt(e,n){if(!e||n<0)return null;let t=e.firstChild;for(;t&&n>0;)t=t.nextSibling,n--;return t||null}function re(e,n,t,o){if(!(o!=null&&o.delegate))return e.addEventListener(n,t,o),()=>e.removeEventListener(n,t,o);let r=o.delegate,i=d=>{let c=d.target;(c.matches(r)||c.closest(r))&&t.call(e,d);},f=o,{delegate:s}=f,l=a(f,["delegate"]);return e.addEventListener(n,i,l),()=>{e.removeEventListener(n,i,l);}}function Je(e,n,t){let o=e[n];o||(o=[],e[n]=o),o.push(t);}function Sn(e,n,t){let o=e.length;if(o===0)return;let r;for(let i=0;i<o;i++)try{let s=e[i]();if(isPromise(s)){let l=s.catch(f=>{});(r||(r=[])).push(l);}}catch(s){}if(r)return Promise.all(r).then(()=>{})}function Q(e){let n=c();if(n){if(n.isMounted){try{let t=e();isPromise(t)&&t.catch(o=>{});}catch(t){}return}Je(n,"onMount",e);}}function Rt(e){let n=c();n&&Je(n,"onUpdate",e);}function Qe(e){let n=c();n&&Je(n,"onDestroy",e);}function Tn(e){if(e.isDestroyed)return;if(!e.onMount||e.onMount.length===0){e.isMounted=true;return}let n=e.onMount,t=f(e,()=>Sn(n,e.id));return n.length=0,e.isMounted=true,t}function bn(e){if(!(e.isDestroyed||!e.onUpdate||e.onUpdate.length===0))return f(e,()=>Sn(e.onUpdate,e.id))}function xe(e,n,t=false){let o=Reflect.ownKeys(n);for(let r of o)Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));if(t){let r=new Set(o);for(let i of Reflect.ownKeys(e))r.has(i)||delete e[i];}}function An(e,n){let t=Object.getOwnPropertyDescriptor(e,n);return t.get?t.get.call(e):t.value}var xn;xn="normal";var ie=class{constructor(n,t={}){this.component=n;this.props=t;this[xn]=true;this.scope=null;this.state=0;this.beforeNode=void 0;this.renderedNodes=[];this.firstChild=void 0;this.parentNode=void 0;this.rootEventCleanups=[];this.parentScope=c();let o=Object.create(null);xe(o,t),this.reactiveProps=shallowReactive(o);}mount(n,t){var i;if(this.parentNode=n,this.beforeNode=t,this.state=1,this.renderedNodes.length>0){for(let s of this.renderedNodes)W(n,s,t);return this.state=2,this.renderedNodes}let o=e((i=this.parentScope)!=null?i:c());this.scope=o;let r=f(o,()=>{var l;let s=this.component(this.reactiveProps);return isFunction(s)&&(s=s(this.reactiveProps)),(isSignal(s)||isComputed(s))&&(s=s.value),(l=z(n,s,t))!=null?l:[]});return this.renderedNodes=r,this.firstChild=r[0],this.syncSpecialProps(this.props),this.state=2,Tn(o),this.renderedNodes}update(n){this.props=n,xe(this.reactiveProps,n!=null?n:{},true);let t=this.scope;!t||t.isDestroyed||(this.syncSpecialProps(n),bn(t));}forceUpdate(){if(!this.parentNode)return;let n=this.parentNode,t=this.beforeNode,o=Object.create(null);xe(o,this.reactiveProps),this.destroy(),xe(this.reactiveProps,o),this.mount(n,t);}destroy(){let n=this.scope;if(!(!n||n.isDestroyed)){this.scope=null,this.releaseSpecialProps(),g(n);for(let t of this.renderedNodes)J(t);this.renderedNodes=[],this.firstChild=void 0,this.parentNode=void 0;for(let t of Reflect.ownKeys(this.reactiveProps))delete this.reactiveProps[t];this.state=0;}}syncSpecialProps(n){if(!n)return;let t=this.firstChild;if(!(!t||!(t instanceof Element))){this.releaseSpecialProps();for(let o of Reflect.ownKeys(n))if(isString(o)){if(o===cn){let r=An(n,o);this.rootRefCleanup=this.bindRootRef(r,t);continue}if(isOn(o)){let r=An(n,o);if(!isFunction(r))continue;let i=o.slice(2).toLowerCase();this.bindRootEvent(t,i,r);}}}}bindRootEvent(n,t,o){let r=`_$${t}`,i=n[r];if(isFunction(i)){n[r]=o,this.rootEventCleanups.push(()=>{n[r]===o&&(n[r]=i);});return}this.rootEventCleanups.push(re(n,t,s=>{n.disabled||o.call(n,s);}));}releaseSpecialProps(){for(let n of this.rootEventCleanups)n();this.rootEventCleanups.length=0,this.rootRefCleanup&&(this.rootRefCleanup(),this.rootRefCleanup=void 0);}bindRootRef(n,t){if(isFunction(n))return n(t),()=>n(null);if(isSignal(n)){let o=n,r=o.value;return o.value=t,()=>{o.value===t&&(o.value=r);}}}};function B(e){return !!e&&!!e.normal}function _e(e,n){return B(e)?e:new ie(e,n)}function Te(e){let n,t=()=>{let o=document.createElement("template");o.innerHTML=e;let r=o.content.firstChild;if(!r)throw new Error("Invalid template: empty content");return r};return ()=>(n||(n=t())).cloneNode(true)}function It(e$1,n){let t=isString(n)?document.querySelector(n):n;if(!t)return;t.innerHTML&&(t.innerHTML="");let r=e(),i;try{f(r,()=>{let s=_e(e$1);B(s)&&(i=s,W(t,s));});}catch(s){throw g(r),s}return {root:i,unmount:()=>{i==null||i.destroy(),g(r);}}}function Ot(e$1,n){let t=isString(n)?document.querySelector(n):n;if(!t)return;ze(t);let o=e(),r;try{f(o,()=>{let i=_e(e$1);B(i)&&(r=i,z(t,i));});}catch(i){throw g(o),i}finally{qe();}return {root:r,unmount:()=>{r==null||r.destroy(),g(o);}}}function Ze(e,n){let t=c();t&&(t.provides||(t.provides=new Map),t.provides.set(e,n));}function de(e,n){let t=c();if(!t)return n;let o=t;for(;o;){if(o.provides&&o.provides.has(e))return o.provides.get(e);o=o.parent;}return n}function en(e,n){Object.defineProperty(e,"target",{configurable:true,value:n});}function Pn(e){let n=e.target,t=e.type,o=e.target,r=e.currentTarget,i=()=>{let l=n[`_$${t}`];if(l&&isFunction(l)&&!n.disabled){let f=n[`${t}Data`];if(f?l.call(n,f,e):l.call(n,e),e.cancelBubble)return false}return n.host&&!isString(n.host)&&!n.host._$host&&isFunction(n.contains)&&n.contains(e.target)&&en(e,n.host),true},s=()=>{for(;i()&&(n=n._$host||n.parentNode||n.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return n||document}}),e.composedPath){let l=e.composedPath();en(e,l[0]);for(let f=0;f<l.length-2&&(n=l[f],!!i());f++){if(n._$host){n=n._$host,s();break}if(n.parentNode===r)break}}else s();en(e,o);}var ke=Symbol("_$EVENTS");function Vt(e,n=globalThis.document){if(!n)return;let t=n,o=t[ke]||(t[ke]=new Set);for(let r of e)o.has(r)||(o.add(r),n.addEventListener(r,Pn));}function Kt(e=globalThis.document){if(!e)return;let n=e,t=n[ke];if(t){for(let o of t.keys())e.removeEventListener(o,Pn);delete n[ke];}}function se(e,n,t,o){let r=re(e,n,t,o);c()&&h(r);}var Ut=e=>e,Gt=typeof DataTransfer!="undefined"?new DataTransfer().files:[];function Dn(e,n){let t=e,o=n==null?"":String(n);t.value!==o&&(t.value=o);}var Wt={event:"change",forceChange:true,checkboxArray:true,read:e=>e.checked,write(e,n){let t=e,o=isArray(n)?n.map(String).includes(t.value):!!n;t.checked!==o&&(t.checked=o);}},zt={event:"change",forceChange:true,read(e){let n=e;return n.checked?n.value:""},write(e,n){let t=e,o=String(n)===t.value;t.checked!==o&&(t.checked=o);}},qt={event:"change",forceChange:true,read:e=>e.files,write(e,n){if(n==null)try{e.files=Gt;}catch(t){}}},Rn={event:"input",ime:true,read:e=>e.value,write:Dn},Xt={event:"change",forceChange:true,read(e){let n=e;return n.multiple?Array.from(n.selectedOptions,t=>t.value):n.value},write(e,n){let t=e;if(!t.multiple)return Dn(e,n);let o=new Set((isArray(n)?n:[]).map(String));for(let r of Array.from(t.options))r.selected=o.has(r.value);}};function Ln(e){return {event:"input",read:n=>n[e],write(n,t){n[e]=t;}}}function Yt(e,n){switch(e.nodeName){case "INPUT":return n==="checked"?e.type==="radio"?zt:Wt:n==="files"?qt:n==="value"?Rn:Ln(n);case "SELECT":return Xt;case "TEXTAREA":return Rn;default:return Ln(n)}}function Jt(e,n,t){if(!isString(e))return e;let o=n?e.trim():e;if(t){let r=n?o:o.trim();if(r!==""){let i=Number(r);if(!Number.isNaN(i))return i}}return o}function Qt(e){let n=e.getRootNode();return (n instanceof Document||n instanceof ShadowRoot)&&n.activeElement===e}function Zt(e,n){if(n!=="value"||e.nodeName!=="INPUT")return false;let t=e.type;return t==="number"||t==="range"}function eo(e,n,t,o,r={}){if(!e)return;let{event:i,read:s,write:l,forceChange:f,ime:d,checkboxArray:c$1}=Yt(e,n),y=r.trim===true,T=r.number===true||Zt(e,n),C=r.lazy===true,w=(y||T)&&n!=="files",x=isFunction(t)?t:()=>t,b=w?E=>Jt(E,y,T):Ut,D=c$1?E=>{let v=x();if(!isArray(v))return b(E);let R=e.value,H=v.filter(a=>String(a)!==R);return E&&H.push(R),H}:b,p=false,u=C||f?"change":i,N=()=>{if(p)return;let E=s(e);if(E===void 0)return;let v=D(E);Object.is(x(),v)||o(v);};se(e,u,N),!C&&w&&u!=="change"&&se(e,"change",()=>l(e,b(s(e)))),d&&(se(e,"compositionstart",()=>{p=true;}),se(e,"compositionend",()=>{p=false,C||N();}));let S=effect(()=>{let E=x();d&&p||d&&!C&&Qt(e)&&Object.is(b(s(e)),E)||l(e,E);});c()&&h(()=>S.stop());}function Fn(e){let n=e;return Array.isArray(n)&&n.length===1&&(n=n[0]),isFunction(n)?n():n}function Mn(e){let n=Object.getOwnPropertyDescriptor(e,"children");return n!=null&&n.get?()=>Fn(n.get.call(e)):()=>Fn(e.children)}function to(e,n){let t=new Set(n);return new Proxy(e,{get(o,r){if(!t.has(r))return Reflect.get(o,r)},ownKeys(o){return Reflect.ownKeys(o).filter(r=>!t.has(r))},getOwnPropertyDescriptor(o,r){if(!t.has(r))return Reflect.getOwnPropertyDescriptor(o,r)},has(o,r){return t.has(r)?false:Reflect.has(o,r)}})}function In(e){var t;if(e&&((t=Object.getOwnPropertyDescriptor(e,"children"))!=null&&t.get||isReactive(e)))return [()=>e.children];let n=e==null?void 0:e.children;return n==null?null:n}In[Ve]=true;function ro(e){return !!e&&!!e[Ve]}function Pe(e){let n=isFunction(e.target)?e.target():e.target;return n==null?null:isString(n)?document.querySelector(n):n}function Re(e){return isFunction(e.disabled)?!!e.disabled():!!e.disabled}function Hn(e$1){if(oe()){let c=lo(e$1);if(c)return c}let n=document.createComment("portal");n[ue]=true;let{children:t}=e$1;if(t==null)return n;let o=c(),r=null,i=(c,y)=>{r=e(o),f(r,()=>{z(c,()=>t,y);});},s=()=>{r&&(g(r),r=null);},l=(c,y)=>{if(s(),c){let T=n.parentNode;if(!T)return;i(T,n);return}y&&i(y);},f$1=false,d=effect(()=>{let c=Re(e$1),y=c?null:Pe(e$1);f$1&&l(c,y);});return Q(()=>{f$1=!0;let c=Re(e$1),y=c?null:Pe(e$1);if(c||y){l(c,y);return}queueMicrotask(()=>{n.parentNode&&l(Re(e$1),Pe(e$1));});}),h(()=>{d.stop(),s();}),n}Hn[ue]=true;function lo(e){if(Re(e))return null;let n=Ge();if(!n)return null;let t=Pe(e);return !t||!We(t)?null:(n[ue]=true,n)}function ao(e){return !!e&&!!e[ue]}function Le(e){let n=e;for(;isFunction(n);)n=n();return isSignal(n)||isComputed(n)?Le(n.value):Array.isArray(n)?n.map(t=>Le(t)):n}var me=Symbol("SuspenseContext");function Kn(e$1){var E;if(!isBrowser())return (E=e$1.fallback)!=null?E:"";let n=c(),t=document.createComment("suspense"),o=document.createComment("/suspense"),r=document.createDocumentFragment();r.append(t,o);let i=true,s=0,l=false,f$1=null,d=null,c$1=null,y=null,T=()=>{let v=document.createDocumentFragment();for(;o.previousSibling&&o.previousSibling!==t;)v.prepend(o.previousSibling);d=v;},C=()=>{var R;if(!d)return;let v=(R=o.parentNode)!=null?R:r;for(;d.firstChild;)v.insertBefore(d.firstChild,o);d=null;},w=()=>{e$1.fallback==null||c$1||(c$1=e(n),f(c$1,()=>{var v;z((v=o.parentNode)!=null?v:r,()=>Le(e$1.fallback),o);}));},x=()=>{c$1&&(g(c$1),c$1=null);},b=v=>{l=true,f$1=e(n),f(f$1,()=>{var R;z((R=o.parentNode)!=null?R:r,()=>Le(v),o);}),l=false,s&&!d&&(T(),w());},D=()=>{d||l||(T(),w());},p=()=>{if(!d)return;let v=e$1.children!=null&&!isPromise(e$1.children);f$1==null&&y==null&&!v||(x(),C(),f$1||(y?b(y):v&&b(e$1.children)));},u=()=>{i&&--s===0&&p();},N={register:v=>{s++,D(),v.then(u).catch(R=>{u();});},increment:()=>{s++,D();},decrement:()=>{s=Math.max(0,s-1),s===0&&p();}};Ze(me,N);let S=e$1.children;return isPromise(S)?(S.then(v=>{y=v;}).catch(()=>{}),N.register(S)):S!=null?b(S):e$1.fallback!=null&&D(),h(()=>{i=false,s=0,y=null,f$1&&g(f$1),c$1&&g(c$1),f$1=c$1=null,d=null,t.remove(),o.remove();}),r}Kn[Ke]=true;function po(e){return !!e&&!!e[Ke]}function yo(e,n){let t=signal(n==null?void 0:n.initialValue),o=signal(true),r=signal(null),i=signal("pending"),s=0,l=null,f=de(me,null),d=()=>b(null,null,function*(){let T=++s;l==null||l.abort(),l=new AbortController,o.value=true,i.value="pending",r.value=null;let C;try{C=Promise.resolve(e(l.signal));}catch(w){r.value=w instanceof Error?w:new Error(String(w)),i.value="errored",o.value=false;return}f==null||f.register(C);try{let w=yield C;T===s&&(t.value=w,i.value="ready",o.value=!1);}catch(w){if(T!==s)return;if(w instanceof DOMException&&w.name==="AbortError"){o.value=false;return}r.value=w instanceof Error?w:new Error(String(w)),i.value="errored",o.value=false;}});d(),h(()=>{s++,l==null||l.abort(),l=null;});let c=(()=>t.value);return c.loading=o,c.error=r,c.state=i,[c,{mutate:T=>{t.value=T,i.value="ready",o.value=false,r.value=null;},refetch:()=>d()}]}function jn(e){return isFunction(e)?e:e.default}function go(e,n){if(n==="client-only"){let s=()=>"";return s.__asyncLoader=e,s.__asyncResolved=()=>null,s}let t=null,o=null,r=()=>o!=null?o:o=e().then(s=>{t=jn(s);}).catch(()=>{});r();let i=s=>t?t(s):"";return i.__asyncLoader=r,i.__asyncResolved=()=>t,i}function vo(e$1,n){let{loading:t,error:o,delay:r=200,timeout:i,onError:s}=n,l=null,f$1=null,d="pending",c$1=null,y=()=>c$1!=null?c$1:c$1=e$1().then(C=>{l=jn(C),d="resolved";}).catch(C=>{f$1=C instanceof Error?C:new Error(String(C)),d="errored",c$1=null;});y();function T(C){var a;let w=c(),x=document.createComment("async"),b=document.createDocumentFragment();b.appendChild(x);let D=true,p=null,u=null,N=null,S=()=>{u!=null&&clearTimeout(u),N!=null&&clearTimeout(N),u=N=null;},E=(h,m)=>{D&&(w&&w.isDestroyed||(p&&(g(p),p=null),h&&(p=e(w),f(p,()=>{var k;z((k=x.parentNode)!=null?k:b,()=>new ie(h,m),x);}))));};Qe(()=>{D=false,S(),p&&(g(p),p=null),x.remove();});let v=h=>()=>{c$1=null,d="pending",f$1=null,t&&E(t),y().then(()=>R(h));},R=h=>{D&&(S(),d==="resolved"&&l?E(l,h):d==="errored"&&f$1&&(o&&E(o,{error:f$1,retry:v(h)}),s&&s(f$1,v(h))));};if(d==="resolved"&&l)return E(l,C),b;if(d==="errored"&&f$1)return o&&E(o,{error:f$1,retry:v(C)}),b;let H=y().then(()=>R(C));return (a=de(me))==null||a.register(H),r>0?u=setTimeout(()=>{D&&d==="pending"&&t&&E(t);},r):t&&E(t),i!=null&&(N=setTimeout(()=>{!D||d!=="pending"||(f$1=new Error(`[defineAsyncComponent] Timeout after ${i}ms`),d="errored",o&&E(o,{error:f$1,retry:v(C)}),s&&s(f$1,v(C)));},i)),b}return T.__asyncLoader=y,T.__asyncResolved=()=>l,T}function Eo(e,n={}){var t;return typeof window=="undefined"?go(e,(t=n.ssr)!=null?t:"blocking"):vo(e,n)}function $n(e$1){let n=document.createDocumentFragment(),t=document.createComment("");n.appendChild(t);let o=[],r=[],i=e$1.key,s=e$1.children,l=Array.isArray(s)&&s.length===1&&isFunction(s[0])?s[0]:e$1.children;if(!isFunction(l))throw new TypeError("<For> requires `children` to be a function (item, index) => Node");let f$1=()=>{var u,N;let p=e$1.each;return isSignal(p)?(u=p.value)!=null?u:[]:isFunction(p)?(N=p())!=null?N:[]:p!=null?p:[]},d=(p,u)=>i?i(p,u):p,c$1=(p,u,N)=>{if(p==null||p===false)return [];if(Array.isArray(p)){let E=[];for(let v of p)E.push(...c$1(v,u,N));return E}if(B(p))return W(u,p,N!=null?N:void 0),p.renderedNodes;let S=we(p);return W(u,S,N!=null?N:void 0),[S]},y=(p,u)=>{if(!e$1.fallback)return;r=c$1(e$1.fallback(),p,u);},T=()=>{for(let p of r)J(p);r=[];},C=c(),w=(p,u,N,S,E=d(p,u))=>{var a;let v=(a=c())!=null?a:C,R=e(v),H=[];try{f(R,()=>{H=c$1(l(p,u),N,S);});}catch(h){throw g(R),h}return {key:E,item:p,nodes:H,scope:R}},x=p=>{g(p.scope);for(let u of p.nodes)u.parentNode&&u.parentNode.removeChild(u);},b=effect(()=>{let p=f$1(),u=t.parentNode;if(!u){if(p.length===0)y(n,t);else {o=new Array(p.length);let N=0;for(let S of p)o[N]=w(S,N,n,t),N++;}return}D(u,p);});function D(p,u){let N=o.length,S=u.length;if(S===0){for(let g=0;g<N;g++)x(o[g]);o=[],e$1.fallback&&r.length===0&&y(p,t);return}if(N===0||r.length>0){r.length>0&&T(),o=new Array(S);let g=document.createDocumentFragment();for(let P=0;P<S;P++)o[P]=w(u[P],P,g,null);p.insertBefore(g,t);return}let E=new Map;for(let g=0;g<N;g++){let P=o[g],K=E.get(P.key),X=[P,g];K?K.push(X):E.set(P.key,[X]);}let v=new Array(S),R=[],H=null,a=new Int32Array(S),h=false,m=0,k=new Array(S);for(let g=0;g<S;g++)k[g]=d(u[g],g);for(let g=0;g<S;g++){let P=u[g],K=k[g],X=E.get(K);if(X&&X.length>0){let[ce,q]=X.shift();Object.is(ce.item,P)?(ce.item=P,v[g]=ce,a[g]=q+1,q<m?h=true:m=q):(H||(H=document.createDocumentFragment()),x(ce),v[g]=w(P,g,H,null,K));}else H||(H=document.createDocumentFragment()),v[g]=w(P,g,H,null,K);}for(let g of E.values())for(let[P]of g)R.push(P);for(let g of R)x(g);let A=h?Ye(a):[],_=A.length-1,F=t;for(let g=S-1;g>=0;g--){let K=v[g].nodes;if(!(a[g]===0)&&h&&_>=0&&g===A[_]){_--;for(let q=K.length-1;q>=0;q--)F=K[q];continue}for(let q=K.length-1;q>=0;q--){let Ie=K[q];Ie.nextSibling!==F&&p.insertBefore(Ie,F),F=Ie;}}o=v;}return h(()=>{b.stop();for(let p of o)x(p);o=[],T(),t.parentNode&&t.parentNode.removeChild(t);}),n}$n[dn]=true;function on(e){var i,s,l,f,d,c,y,T,C,w;let n=(i=e.name)!=null?i:"v",t=(s=e.enterFromClass)!=null?s:`${n}-enter-from`,o=(l=e.enterActiveClass)!=null?l:`${n}-enter-active`,r=(f=e.enterToClass)!=null?f:`${n}-enter-to`;return {enterFrom:t,enterActive:o,enterTo:r,leaveFrom:(d=e.leaveFromClass)!=null?d:`${n}-leave-from`,leaveActive:(c=e.leaveActiveClass)!=null?c:`${n}-leave-active`,leaveTo:(y=e.leaveToClass)!=null?y:`${n}-leave-to`,appearFrom:(T=e.appearFromClass)!=null?T:t,appearActive:(C=e.appearActiveClass)!=null?C:o,appearTo:(w=e.appearToClass)!=null?w:r}}var Bn=e=>e?e.endsWith("ms")?Number(e.slice(0,-2).replace(",",".")):Number(e.slice(0,-1).replace(",","."))*1e3:0;function Un(e,n){let t=e.split(", "),o=n.split(", "),r=0;for(let[i,s]of o.entries()){let l=Bn(s)+Bn(t[i%t.length]||"0s");l>r&&(r=l);}return r}function Wn(e,n){let t=getComputedStyle(e),o=n!=="animation"?Un(t.transitionDelay,t.transitionDuration):0,r=n!=="transition"?Un(t.animationDelay,t.animationDuration):0;return o===0&&r===0?null:o>=r?{event:"transitionend",timeout:o}:{event:"animationend",timeout:r}}function G(e,n){for(let t of n.split(/\s+/))t&&e.classList.add(t);}function $(e,n){for(let t of n.split(/\s+/))t&&e.classList.remove(t);}function ye(e){requestAnimationFrame(()=>requestAnimationFrame(e));}function Me(e){e.offsetHeight;}function le(e,n,t,o){if(t!=null){setTimeout(o,t);return}let r=Wn(e,n);if(!r){o();return}let i=false,s=()=>{i||(i=true,clearTimeout(f),e.removeEventListener(r.event,l),o());},l=()=>s();e.addEventListener(r.event,l);let f=setTimeout(s,r.timeout+1);}function ae(e,n){return e==null?null:isNumber(e)?e:e[n]}function Gn(e){if(e==null||e===false)return null;if(Array.isArray(e))return e[0]instanceof Element?e[0]:null;if(e instanceof Element)return e;if(B(e)){let n=e;if(n.scope==null){let o=document.createDocumentFragment();n.mount(o);}let t=n.firstChild;return t instanceof Element?t:null}return null}var Fe=Symbol("enter_cb"),pe=Symbol("leave_cb");function zn(e){let n=document.createComment(""),t=on(e),o=e.css!==false,r=Mn(e),i="idle",s=null,l=null,f=false,d,c=false,y=false,T=false,C=(u,N)=>{var h;let S=u[pe];S&&S(true),i="entering";let E=N==="appear"?t.appearFrom:t.enterFrom,v=N==="appear"?t.appearActive:t.enterActive,R=N==="appear"?t.appearTo:t.enterTo;(h=e.onBeforeEnter)==null||h.call(e,u),o&&(G(u,E),G(u,v));let H=false,a=m=>{var k,A;H||(H=true,u[Fe]=void 0,o&&($(u,E),$(u,v),$(u,R)),m?(k=e.onEnterCancelled)==null||k.call(e,u):(i="entered",(A=e.onAfterEnter)==null||A.call(e,u)));};u[Fe]=a,ye(()=>{if(!H)if(o&&($(u,E),G(u,R)),e.onEnter)e.onEnter(u,()=>a(false));else if(o){let m=ae(e.duration,"enter");le(u,e.type,m,()=>a(false));}else a(false);});},w=(u,N)=>{var a;let S=u[Fe];S&&(S(true),Me(u)),i="leaving",(a=e.onBeforeLeave)==null||a.call(e,u),o&&(G(u,t.leaveFrom),G(u,t.leaveActive));let E=false,v=h=>{var m,k;E||(E=true,u[pe]=void 0,o&&($(u,t.leaveFrom),$(u,t.leaveActive),$(u,t.leaveTo)),h?(m=e.onLeaveCancelled)==null||m.call(e,u):(i="idle",N(),(k=e.onAfterLeave)==null||k.call(e,u)));};u[pe]=v;let R=ae(e.duration,"leave"),H=o&&!e.onLeave&&R==null?!!Wn(u,e.type):false;if(!e.onLeave&&R==null&&!H){v(false);return}ye(()=>{E||(o&&($(u,t.leaveFrom),G(u,t.leaveTo)),e.onLeave?e.onLeave(u,()=>v(false)):o?le(u,e.type,R,()=>v(false)):v(false));});},x=(u,N)=>{if(u&&i==="leaving"&&l){let E=l,v=E[pe];v&&v(true),l=null,s=E,C(E,"enter");return}if(u===s)return;let S=s;if(s=u,S){l=S;let E=S;w(E,()=>{E.parentNode&&E.parentNode.removeChild(E),l===E&&(l=null);});}u&&n.parentNode?(n.parentNode.insertBefore(u,n),N&&!e.appear?i="entered":C(u,N&&e.appear?"appear":"enter")):!S&&!u&&(i="idle");},b=()=>{if(y=false,T||!c)return;let u=d;c=false,d=void 0;try{x(Gn(u),!1);}catch(N){}},D=u=>{d=u,c=true,!y&&(y=true,queueMicrotask(b));},p=effect(()=>{let u=r();f?D(u):(d=u,c=true);});return Q(()=>{f=!0;let u=c?Gn(d):null;c=!1,d=void 0,x(u,!0);}),h(()=>{T=true,p.stop();for(let u of [s,l]){if(!u)continue;let N=u[Fe],S=u[pe];N==null||N(true),S==null||S(true),u.parentNode&&u.parentNode.removeChild(u);}s=null,l=null,i="idle";}),n}zn[je]=true;function bo(e){return !!e&&!!e[je]}function sn(e,n){if(e==null||e===false)return {el:null,comp:null};if(Array.isArray(e)&&e.length===1)return sn(e[0],n);if(isFunction(e))return sn(e(),n);if(e instanceof HTMLElement)return {el:e,comp:null};if(B(e)){let t=e;t.scope==null&&t.mount(n);let o=t.firstChild;return o instanceof HTMLElement?{el:o,comp:t}:{el:null,comp:t}}return {el:null,comp:null}}function xo(e){return {position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height}}function rn(e,n){e.style.position=n.position,e.style.top=n.top,e.style.left=n.left,e.style.width=n.width,e.style.height=n.height;}function qn(e$1){var v,R,H;let n=(v=e$1.tag)!=null?v:"div",t=document.createElement(n),o=on(e$1),r=e$1.css!==false,i=(H=e$1.moveClass)!=null?H:`${(R=e$1.name)!=null?R:"v"}-move`,s=e$1.key,l=e$1.children,f$1=Array.isArray(l)&&l.length===1&&isFunction(l[0])?l[0]:e$1.children;if(!isFunction(f$1)||!isFunction(s))throw new TypeError("<TransitionGroup> requires `children: (item, index) => Node` and `key: (item, index) => unknown`");let d=()=>{var h,m;let a=e$1.each;return isSignal(a)?(h=a.value)!=null?h:[]:isFunction(a)?(m=a())!=null?m:[]:a!=null?a:[]},c$1=[],y=false,T=(a,h)=>{let m=c(),k=e(m),A;try{f(k,()=>{A=f$1(a,h);});}catch(g$1){throw g(k),g$1}let{el:_,comp:F}=sn(A,t);return _?{key:s(a,h),item:a,el:_,comp:F,scope:k,state:"entering"}:(g(k),null)},C=a=>{if(a.comp){for(let h of a.comp.renderedNodes)h.parentNode===t&&t.removeChild(h);return}a.el.parentNode===t&&t.removeChild(a.el);},w=a=>{var h,m;(h=a.cancelEnter)==null||h.call(a,true),(m=a.cancelLeave)==null||m.call(a,true),a.comp&&a.comp.destroy(),C(a),g(a.scope);},x=a=>{var A,_,F;let h=a.el;if((A=a.cancelLeave)==null||A.call(a,true),!r){a.state="present",(_=e$1.onAfterEnter)==null||_.call(e$1,h);return}(F=e$1.onBeforeEnter)==null||F.call(e$1,h),G(h,o.enterFrom),G(h,o.enterActive);let m=false,k=g=>{var P,K;m||(m=true,a.cancelEnter=void 0,$(h,o.enterFrom),$(h,o.enterActive),$(h,o.enterTo),g?(P=e$1.onEnterCancelled)==null||P.call(e$1,h):(a.state="present",(K=e$1.onAfterEnter)==null||K.call(e$1,h)));};a.cancelEnter=k,a.state="entering",ye(()=>{if(!m)if($(h,o.enterFrom),G(h,o.enterTo),e$1.onEnter)e$1.onEnter(h,()=>k(false));else {let g=ae(e$1.duration,"enter");le(h,e$1.type,g,()=>k(false));}});},b=(a,h)=>{var F,g$1;let m=a.el;a.cancelEnter&&(a.cancelEnter(true),Me(m)),a.state="leaving",a.savedStyles=xo(m);let k=t.getBoundingClientRect();if(m.style.position="absolute",m.style.top=`${h.top-k.top}px`,m.style.left=`${h.left-k.left}px`,m.style.width=`${h.width}px`,m.style.height=`${h.height}px`,!r){a.savedStyles&&rn(m,a.savedStyles),C(a),g(a.scope),a.comp&&a.comp.destroy(),(F=e$1.onAfterLeave)==null||F.call(e$1,m);return}(g$1=e$1.onBeforeLeave)==null||g$1.call(e$1,m),G(m,o.leaveFrom),G(m,o.leaveActive);let A=false,_=P=>{var K,X;if(!A){if(A=true,a.cancelLeave=void 0,$(m,o.leaveFrom),$(m,o.leaveActive),$(m,o.leaveTo),P){a.savedStyles&&rn(m,a.savedStyles),a.savedStyles=void 0,(K=e$1.onLeaveCancelled)==null||K.call(e$1,m);return}a.savedStyles&&rn(m,a.savedStyles),a.savedStyles=void 0,C(a),g(a.scope),a.comp&&a.comp.destroy(),(X=e$1.onAfterLeave)==null||X.call(e$1,m);}};a.cancelLeave=_,ye(()=>{if(!A)if($(m,o.leaveFrom),G(m,o.leaveTo),e$1.onLeave)e$1.onLeave(m,()=>_(false));else {let P=ae(e$1.duration,"leave");le(m,e$1.type,P,()=>_(false));}});},D=(a,h)=>{if(!r||a.state!=="present")return;let m=a.el,k=m.getBoundingClientRect(),A=h.left-k.left,_=h.top-k.top;if(!A&&!_)return;let F=m.style.transform,g=m.style.transitionDuration;m.style.transform=`translate(${A}px, ${_}px)`,m.style.transitionDuration="0s",G(m,i),Me(m),m.style.transform=F,m.style.transitionDuration=g;let P=ae(e$1.duration,"enter");le(m,e$1.type,P,()=>{$(m,i);});},p=()=>{for(let a of c$1)a.state!=="leaving"&&(a.prevRect=a.el.getBoundingClientRect());},u=a=>{let h=new Map;for(let _ of c$1)h.set(_.key,_);let m=[];for(let[_,F]of a.entries()){let g=s(F,_),P=h.get(g);if(P)h.delete(g),P.item=F,m.push(P);else {let K=T(F,_);K&&m.push(K);}}let k=[];for(let _ of h.values())_.state!=="leaving"&&k.push(_);let A=null;for(let _=m.length-1;_>=0;_--){let F=m[_].el;(F.parentNode!==t||F.nextSibling!==A)&&t.insertBefore(F,A),A=F;}return {next:m,leaving:k}},N=(a,h)=>{if(h){let A=[];for(let[_,F]of a.entries()){let g=T(F,_);g&&(g.el.parentNode!==t&&t.appendChild(g.el),g.state="present",A.push(g));}c$1=A;return}p();let{next:m,leaving:k}=u(a);for(let A of m)A.state!=="present"&&x(A);for(let A of k){let _=A.prevRect;_&&b(A,_);}for(let A of m)A.state!=="present"||!A.prevRect||(D(A,A.prevRect),A.prevRect=void 0);c$1=m.concat(k);},S=null,E=effect(()=>{let a=d();if(!y){S=a;return}N(a,false);});return Q(()=>{y=!0,S&&(N(S,!0),S=null);}),h(()=>{E.stop();for(let a of c$1)w(a);c$1=[],t.parentNode&&t.parentNode.removeChild(t);}),t}qn[$e]=true;function _o(e){return !!e&&!!e[$e]}
2
- export{ie as Component,$n as For,In as Fragment,Hn as Portal,Kn as Suspense,zn as Transition,qn as TransitionGroup,re as addEvent,se as addEventListener,ze as beginHydration,eo as bindElement,_t as child,Kt as clearDelegatedEvents,Ge as consumeTeleportAnchor,We as consumeTeleportBlock,It as createApp,_e as createComponent,yo as createResource,Eo as defineAsyncComponent,Vt as delegateEvents,qe as endHydration,hn as getHydrationKey,Nt as getRenderedElement,Ot as hydrate,Ct as hydrationAnchor,Et as hydrationMarker,de as inject,z as insert,B as isComponent,ro as isFragment,oe as isHydrating,ao as isPortal,po as isSuspense,bo as isTransition,_o as isTransitionGroup,kt as next,Ee as normalizeClass,Pt as nthChild,to as omitProps,Qe as onDestroy,Q as onMount,Rt as onUpdate,Z as patchAttr,Tt as patchAttrHydrate,Ce as patchClass,St as patchClassHydrate,Se as patchStyle,bt as patchStyleHydrate,Ze as provide,yt as resetHydrationKey,ne as setStyle,Te as template};
1
+ import {c,f,h,a,e,g,b}from'./chunk-CBFQJ3PB.js';import {normalizeClassName,SPREAD_NAME,isObject,startsWith,isSpecialBooleanAttr,isBooleanAttr,includeBooleanAttr,isSymbol,isString,isArray,kebabCase,camelCase,capitalize,HYDRATION_ANCHOR_ATTR,isBrowser,warn,isPromise,isFunction,isOn,coerceArray,isNumber}from'@estjs/shared';import {effect,shallowReactive,isSignal,isComputed,isReactive,signal,untrack}from'@estjs/signals';var pn="ref",hn="key",Ke="http://www.w3.org/2000/svg",je="http://www.w3.org/2000/xlink",$e="http://www.w3.org/2000/xmlns/";var We=Symbol(""),fe=Symbol(""),Be=Symbol(""),vn=Symbol(""),Ue=Symbol(""),Ge=Symbol("");var lt=/^data:\s*(?:text\/html|text\/xml|application\/xhtml\+xml|image\/svg\+xml|application\/xml)/,at={allowfullscreen:"allowFullscreen",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",novalidate:"noValidate",readonly:"readOnly"};function yn(e,n,t){var r;if(e.namespaceURI===Ke)return;let o=(r=at[n.toLowerCase()])!=null?r:n;if(!(!(o in e)||typeof e[o]!="boolean"))try{e[o]=t;}catch(s){}}function ct(e){let n=e.replaceAll(/[\u0000-\u0020]+/g,"").toLowerCase();return startsWith(n,"javascript:")||startsWith(n,"vbscript:")?true:lt.test(n)}function ne(e,n,t,o){if(n===hn){o==null?e.removeAttribute(n):e.setAttribute(n,String(o));return}if(n===SPREAD_NAME){let h=isObject(t)?t:null,g=isObject(o)?o:null;if(h)for(let y in h)y!==SPREAD_NAME&&(!g||!(y in g))&&ne(e,y,h[y],null);if(g)for(let y in g)y!==SPREAD_NAME&&ne(e,y,h==null?void 0:h[y],g[y]);return}let r=(e==null?void 0:e.namespaceURI)===Ke,s=r&&startsWith(n,"xlink:"),l=r&&startsWith(n,"xmlns:"),a=isSpecialBooleanAttr(n)||isBooleanAttr(n);if(t===o||n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110)return;let c=n.toLowerCase();if(c==="innerhtml"||c==="srcdoc")return;if(o==null){if(s)e.removeAttributeNS(je,n.slice(6));else if(l){let h=n.slice(6);e.removeAttributeNS($e,h);}else e.removeAttribute(n);(a||c==="indeterminate")&&yn(e,n,false);return}if(a){let h=includeBooleanAttr(o);h?e.setAttribute(n,""):e.removeAttribute(n),yn(e,n,h);return}let d=isSymbol(o)?String(o):o;if(!((c==="href"||c==="src"||c==="xlink:href"||c==="action"||c==="formaction"||c==="poster")&&isString(d)&&ct(d))){if(s){e.setAttributeNS(je,n,String(d));return}if(l){e.setAttributeNS($e,n,String(d));return}if(r)e.setAttribute(n,String(d));else if(n in e)try{e[n]=d;}catch(h){e.setAttribute(n,String(d));}else e.setAttribute(n,String(d));}}function Te(e,n,t,o=false){if(n===t)return;let r=Ce(t);if(!r){e.removeAttribute("class");return}(isString(n)?n:Ce(n))!==r&&(o?e.setAttribute("class",r):e.className=r);}var Ce=normalizeClassName;var En=/\s*!important$/,Cn=/(?:^|;)\s*([a-z][a-z\d-]*)\s*:/gi,gt=["Webkit","Moz","ms"],qe={};function Se(e,n,t){let o=e.style;if(t&&isString(t)){n!==t&&(o.cssText=t);return}if(!t){n&&e.removeAttribute("style");return}if(n&&!isString(n)){let r=n;for(let s in r)(!t||t[s]==null)&&oe(o,s,"");}else if(n&&isString(n)){Cn.lastIndex=0;let r;for(;(r=Cn.exec(n))!==null;){let s=r[1].trim();s&&t&&isObject(t)&&t[s]==null&&oe(o,s,"");}}if(t&&!isString(t)){let r=t;for(let s in r){let l=r[s];(!n||isString(n)||n[s]!==l)&&l!=null&&oe(o,s,l);}}}function oe(e,n,t){if(isArray(t)){for(let s of t)oe(e,n,s);return}(t==null||t==="")&&(t="");let o=isString(t)&&En.test(t)?"important":"";if(o&&(t=t.replace(En,"")),startsWith(n,"--")){o?e.setProperty(n,t,o):e.setProperty(n,t);return}let r=Et(e,n);o?e.setProperty(yt(r),t,o):e[r]=t;}function yt(e){let n=kebabCase(e);return startsWith(e,"Webkit")||startsWith(e,"Moz")||startsWith(e,"ms")?`-${n}`:n}function Et(e,n){let t=qe[n];if(t)return t;let o=camelCase(n);if(o!=="filter"&&o in e)return qe[n]=o;o=capitalize(o);for(let r of gt){let s=r+o;if(s in e)return qe[n]=s}return n}var ze=0;function Tn(){return String(ze++)}function St(){ze=0;}var X=false;function ie(){return X}var re=new Map;function bt(e){let n=e.querySelectorAll("[data-hk]");for(let t of n){let o=t.dataset.hk;o!=null&&!re.has(o)&&re.set(o,t);}}var we=[],de=new Map;function wt(){if(typeof document=="undefined")return;let e=document.createNodeIterator(document.body,NodeFilter.SHOW_COMMENT),n;for(;n=e.nextNode();){let t=n.data;if(t==="teleport-anchor")we.push(n);else if(t==="teleport-start"){let o=n.parentElement;if(!o)continue;let r=de.get(o);r||(r=[],de.set(o,r)),r.push(n);}}}function Xe(){var e;return (e=we.shift())!=null?e:null}function Ye(e){let n=de.get(e),t=n==null?void 0:n.shift();if(!t)return null;let o=[],r=t.nextSibling;for(;r;){if(r.nodeType===Node.COMMENT_NODE&&r.data==="teleport-end")return {start:t,end:r,nodes:o};o.push(r),r=r.nextSibling;}return null}function Je(e){X=true,ze=0,re.clear(),we.length=0,de.clear(),bt(e),wt();}function Qe(){X=false,re.clear(),we.length=0,de.clear();}function Nn(e,n,t){var s,l,a;if(!X||t&&t.parentNode!==e)return null;if(n.length===0)return [];let o=new Array(n.length),r=t?t.previousSibling:e.lastChild;for(let c=n.length-1;c>=0;c--){let d=n[c],m=d.nodeType;if(m===Node.TEXT_NODE){let h=(s=d.textContent)!=null?s:"";if(h===""){if((r==null?void 0:r.nodeType)===Node.TEXT_NODE&&((l=r.textContent)!=null?l:"")==="")o[c]=r,r=r.previousSibling;else {let w=document.createTextNode(""),A=c+1<n.length?o[c+1]:t!=null?t:null;e.insertBefore(w,A),o[c]=w;}continue}if(!r||r.nodeType!==Node.TEXT_NODE)return null;let g=(a=r.textContent)!=null?a:"";if(g===h){o[c]=r,r=r.previousSibling;continue}if(!g.endsWith(h))return null;let y=g.slice(0,g.length-h.length);if(!y)return null;let b=document.createTextNode(y);e.insertBefore(b,r),r.textContent=h,o[c]=r,r=b;continue}if(!r||r.nodeType!==m)return null;if(m===Node.ELEMENT_NODE){if(r.tagName!==d.tagName)return null}else if(m===Node.COMMENT_NODE&&r.data!==d.data)return null;o[c]=r,r=r.previousSibling;}return o}function xt(e){var t,o,r;return (r=(o=e.dataset.hk)!=null?o:(t=e.closest("[data-hk]"))==null?void 0:t.dataset.hk)!=null?r:null}function Sn(e,n){if(X&&e){let t=xt(e);if(t)return `${t}-${n}`}return String(n)}function At(e,n){if(!e||n<0)return null;let t=Sn(e instanceof Element?e:null,n),o=0,r=e.firstChild;for(;r;){if(r.nodeType===Node.COMMENT_NODE){let s=r;if(s.data===t||!X&&s.data===""&&o++===n)return s}r=r.nextSibling;}return null}function _t(e,n){if(!(e instanceof Element)||n<0)return null;let t=Sn(e,n),o=e.firstChild;for(;o;){if(o instanceof Element&&o.getAttribute(HYDRATION_ANCHOR_ATTR)===t)return o;o=o.nextSibling;}return null}function kt(e){if(!isBrowser())return ()=>{throw new Error("[essor] getRenderedElement called in non-browser environment")};let n=null;return ()=>{if(!X)return n||(n=be(e)),n();let t=Tn(),o=re.get(t);return o?(re.delete(t),o):(warn(`[essor] hydration mismatch: no SSR element for key "${t}"`),n||(n=be(e)),n())}}function Pt(e,n,t,o){X||Te(e,n,t,o);}function Rt(e,n,t,o){X||ne(e,n,t,o);}function Lt(e,n,t){X||Se(e,n,t);}function Ze(e,n){return n&&n.parentNode===e?n:null}function bn(e,n,t,o){let r=Ze(e,o),s=n.length,l=t.length;if(s===0&&l===0)return t;if(s===0){for(let m=0;m<l;m++)q(e,t[m],r);return t}if(l===0){for(let m=0;m<s;m++)Y(n[m]);return []}let a=0,c=s-1,d=l-1;for(;a<=c&&a<=d&&n[a]===t[a];)a++;for(;c>=a&&d>=a&&n[c]===t[d];)c--,d--;if(a>c){if(a<=d){let m=d+1,h=Ze(e,m<l?t[m]:r);for(let g=a;g<=d;g++)q(e,t[g],h);}}else if(a>d)for(let m=a;m<=c;m++)Y(n[m]);else Dt(e,n,t,a,c,d,r);return t}function Dt(e,n,t,o,r,s,l){let a=s-o+1,c=a<=4?w=>{for(let A=o;A<=s;A++)if(t[A]===w)return A}:(()=>{let w=new Map;for(let A=o;A<=s;A++)w.set(t[A],A);return A=>w.get(A)})(),d=new Int32Array(a),m=0,h=false,g=0;for(let w=o;w<=r;w++){let A=n[w];if(m>=a){Y(A);continue}let L=c(A);L===void 0?Y(A):(d[L-o]=w+1,L>=g?g=L:h=true,m++);}let y=h?en(d):[],b=y.length-1;for(let w=a-1;w>=0;w--){let A=o+w,L=t[A],M=Ze(e,A+1<t.length?t[A+1]:l);d[w]===0?q(e,L,M):h&&(b<0||w!==y[b]?q(e,L,M):b--);}}function en(e){let n=new Int32Array(e.length),t=[0],o=e.length,r,s,l,a,c;for(r=0;r<o;r++){let d=e[r];if(d!==0){if(s=t[t.length-1],e[s]<d){n[r]=s,t.push(r);continue}for(l=0,a=t.length-1;l<a;)c=l+a>>1,e[t[c]]<d?l=c+1:a=c;d<e[t[l]]&&(l>0&&(n[r]=t[l-1]),t[l]=r);}}for(l=t.length,a=t[l-1];l-- >0;)t[l]=a,a=n[a];return t}function Y(e){if(e)if(U(e))e.destroy();else {let n=e;n.parentNode&&n.remove();}}function q(e,n,t){if(!e||!n)return;let o=U(t)?t.firstChild:t;if(U(n)){n.mount(e,o);return}o?e.insertBefore(n,o):e.appendChild(n);}function xe(e){if(e instanceof Node||U(e))return e;let n=typeof e;return e==null||n==="string"||n==="number"||n==="boolean"||n==="symbol"?document.createTextNode(e===false||e==null?"":String(e)):document.createTextNode(String(e))}function z(e,n,t){if(!e)return;let o=c(),r=[],s=true,l=c=>{if(c instanceof Node)return [c];if(U(c))return [c];let d=typeof c;return c==null||d==="string"||d==="number"||d==="boolean"?[xe(c)]:coerceArray(c).map(m=>isFunction(m)?m():m).flatMap(m=>m).map(xe)},a=effect(()=>{let c=()=>{let d=isFunction(n)?n():n,m=typeof d,h=d==null||m==="string"||m==="number"||m==="boolean"||m==="symbol",g=l(d);if(s&&ie()&&g.every(y=>y instanceof Node&&y.parentNode===e)){r=g,s=false;return}if(s&&ie()){let y=Nn(e,g,t);if(y){r=y,s=false;return}}if(h&&r.length===1&&g.length===1&&r[0].nodeType===Node.TEXT_NODE&&g[0].nodeType===Node.TEXT_NODE){let y=r[0],b=g[0].textContent;y.textContent!==b&&(y.textContent=b),s=false;return}r=bn(e,r,g,t),s=false;};o&&!o.isDestroyed?f(o,c):c();});return h(()=>{a.stop();for(let c of r)Y(c);r=[],o=null;}),r}function It(e){return (e==null?void 0:e.firstChild)||null}function Ot(e,n=1){for(;e&&n>0;)e=e.nextSibling,n--;return e||null}function Ht(e,n){if(!e||n<0)return null;let t=e.firstChild;for(;t&&n>0;)t=t.nextSibling,n--;return t||null}function se(e,n,t,o){if(!(o!=null&&o.delegate))return e.addEventListener(n,t,o),()=>e.removeEventListener(n,t,o);let r=o.delegate,s=d=>{d.target.closest(r)&&t.call(e,d);},c=o,{delegate:l}=c,a$1=a(c,["delegate"]);return e.addEventListener(n,s,a$1),()=>{e.removeEventListener(n,s,a$1);}}function nn(e,n,t){let o=e[n];o||(o=[],e[n]=o),o.push(t);}function An(e,n,t){let o=e.length;if(o===0)return;let r;for(let s=0;s<o;s++)try{let l=e[s]();if(isPromise(l)){let a=l.catch(c=>{});(r||(r=[])).push(a);}}catch(l){}if(r)return Promise.all(r).then(()=>{})}function ee(e){let n=c();if(n){if(n.isMounted){try{let t=e();isPromise(t)&&t.catch(o=>{});}catch(t){}return}nn(n,"onMount",e);}}function tn(e){let n=c();n&&nn(n,"onUpdate",e);}function on(e){let n=c();n&&nn(n,"onDestroy",e);}function _n(e){if(e.isDestroyed)return;if(!e.onMount||e.onMount.length===0){e.isMounted=true;return}let n=e.onMount,t=f(e,()=>An(n,e.id));return n.length=0,e.isMounted=true,t}function kn(e){if(!(e.isDestroyed||!e.onUpdate||e.onUpdate.length===0))return f(e,()=>An(e.onUpdate,e.id))}function _e(e,n,t=false){let o=Reflect.ownKeys(n);for(let r of o)Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r));if(t){let r=new Set(o);for(let s of Reflect.ownKeys(e))r.has(s)||delete e[s];}}function Rn(e,n){let t=Object.getOwnPropertyDescriptor(e,n);return t.get?t.get.call(e):t.value}var Ln;Ln="normal";var le=class{constructor(n,t={}){this.component=n;this.props=t;this[Ln]=true;this.scope=null;this.state=0;this.beforeNode=void 0;this.renderedNodes=[];this.firstChild=void 0;this.parentNode=void 0;this.rootEventCleanups=[];this.parentScope=c();let o=Object.create(null);_e(o,t),this.reactiveProps=shallowReactive(o);}mount(n,t){var s;if(this.parentNode=n,this.beforeNode=t,this.state=1,this.renderedNodes.length>0){for(let l of this.renderedNodes)q(n,l,t);return this.state=2,this.renderedNodes}let o=e((s=this.parentScope)!=null?s:c());this.scope=o;let r=f(o,()=>{var a;let l=this.component(this.reactiveProps);return isFunction(l)&&(l=l(this.reactiveProps)),(isSignal(l)||isComputed(l))&&(l=l.value),(a=z(n,l,t))!=null?a:[]});return this.renderedNodes=r,this.firstChild=r[0],this.syncSpecialProps(this.props),this.state=2,_n(o),this.renderedNodes}update(n){this.props=n,_e(this.reactiveProps,n!=null?n:{},true);let t=this.scope;!t||t.isDestroyed||(this.syncSpecialProps(n),kn(t));}forceUpdate(){if(!this.parentNode)return;let n=this.parentNode,t=this.beforeNode,o=Object.create(null);_e(o,this.reactiveProps),this.destroy(),_e(this.reactiveProps,o),this.mount(n,t);}destroy(){let n=this.scope;if(!(!n||n.isDestroyed)){this.scope=null,this.releaseSpecialProps(),g(n);for(let t of this.renderedNodes)Y(t);this.renderedNodes=[],this.firstChild=void 0,this.parentNode=void 0;for(let t of Reflect.ownKeys(this.reactiveProps))delete this.reactiveProps[t];this.state=0;}}syncSpecialProps(n){if(!n)return;let t=this.getRootElements();if(t.length===0)return;let o=t[0];this.releaseSpecialProps();for(let r of Reflect.ownKeys(n))if(isString(r)){if(r===pn){let s=Rn(n,r);this.rootRefCleanup=this.bindRootRef(s,o);continue}if(isOn(r)){let s=Rn(n,r);if(!isFunction(s))continue;let l=r.slice(2).toLowerCase();for(let a of t)this.bindRootEvent(a,l,s);}}}getRootElements(){let n=[];for(let t of this.renderedNodes)t instanceof Element&&n.push(t);return n}bindRootEvent(n,t,o){let r=`_$${t}`,s=n[r];if(isFunction(s)){n[r]=o,this.rootEventCleanups.push(()=>{n[r]===o&&(n[r]=s);});return}this.rootEventCleanups.push(se(n,t,l=>{n.disabled||o.call(n,l);}));}releaseSpecialProps(){for(let n of this.rootEventCleanups)n();this.rootEventCleanups.length=0,this.rootRefCleanup&&(this.rootRefCleanup(),this.rootRefCleanup=void 0);}bindRootRef(n,t){if(isFunction(n))return n(t),()=>n(null);if(isSignal(n)){let o=n,r=o.value;return o.value=t,()=>{o.value===t&&(o.value=r);}}}};function U(e){return !!e&&!!e.normal}function ke(e,n){return U(e)?e:new le(e,n)}function be(e){let n,t=()=>{let o=document.createElement("template");o.innerHTML=e;let r=o.content.firstChild;if(!r)throw new Error("Invalid template: empty content");return r};return ()=>(n||(n=t())).cloneNode(true)}function Wt(e$1,n){let t=isString(n)?document.querySelector(n):n;if(!t)return;t.innerHTML&&(t.innerHTML="");let r=e(),s;try{f(r,()=>{let l=ke(e$1);U(l)&&(s=l,q(t,l));});}catch(l){throw g(r),l}return {root:s,unmount:()=>{s==null||s.destroy(),g(r);}}}function Bt(e$1,n){let t=isString(n)?document.querySelector(n):n;if(!t)return;Je(t);let o=e(),r;try{f(o,()=>{let s=ke(e$1);U(s)&&(r=s,z(t,s));});}catch(s){throw g(o),s}finally{Qe();}return {root:r,unmount:()=>{r==null||r.destroy(),g(o);}}}function rn(e,n){let t=c();t&&(t.provides||(t.provides=new Map),t.provides.set(e,n));}function me(e,n){let t=c();if(!t)return n;let o=t;for(;o;){if(o.provides&&o.provides.has(e))return o.provides.get(e);o=o.parent;}return n}function sn(e,n){Object.defineProperty(e,"target",{configurable:true,value:n});}function Mn(e){let n=e.target,t=e.type,o=e.target,r=e.currentTarget,s=()=>{let a=n[`_$${t}`];if(a&&isFunction(a)&&!n.disabled){let c=n[`${t}Data`];if(c?a.call(n,c,e):a.call(n,e),e.cancelBubble)return false}return n.host&&!isString(n.host)&&!n.host._$host&&isFunction(n.contains)&&n.contains(e.target)&&sn(e,n.host),true},l=()=>{for(;s()&&(n=n._$host||n.parentNode||n.host)&&n!==r;);};Object.defineProperty(e,"currentTarget",{configurable:true,get(){return n||document}});try{if(e.composedPath){let a=e.composedPath();sn(e,a[0]);for(let c=0;c<a.length-2&&(n=a[c],!!s());c++){if(n._$host){n=n._$host,l();break}if(n.parentNode===r)break}}else l();}finally{sn(e,o);}}var Pe=Symbol("_$EVENTS");function Gt(e,n=globalThis.document){if(!n)return;let t=n,o=t[Pe]||(t[Pe]=new Set);for(let r of e)o.has(r)||(o.add(r),n.addEventListener(r,Mn));}function qt(e=globalThis.document){if(!e)return;let n=e,t=n[Pe];if(t){for(let o of t.keys())e.removeEventListener(o,Mn);delete n[Pe];}}function ae(e,n,t,o){let r=se(e,n,t,o);c()&&h(r);}var Jt=e=>e,Qt=typeof DataTransfer!="undefined"?new DataTransfer().files:[],ln=new WeakMap;function Hn(e,n){let t=e,o=n==null?"":String(n);t.value!==o&&(t.value=o);}var Zt={event:"change",forceChange:true,checkboxArray:true,read:e=>e.checked,write(e,n){let t=e,o=isArray(n)?n.map(String).includes(t.value):!!n;t.checked!==o&&(t.checked=o);}},eo={event:"change",forceChange:true,read(e){let n=e;return n.checked?n.value:""},write(e,n){let t=e,o=String(n)===t.value;t.checked!==o&&(t.checked=o);}},no={event:"change",forceChange:true,read:e=>e.files,write(e,n){if(n==null)try{e.files=Qt;}catch(t){}}},In={event:"input",ime:true,read:e=>e.value,write:Hn},to={event:"change",forceChange:true,read(e){let n=e;return n.multiple?Array.from(n.selectedOptions,t=>t.value):n.value},write(e,n){let t=e;if(!t.multiple)return Hn(e,n);let o=new Set((isArray(n)?n:[]).map(String));for(let r of Array.from(t.options))r.selected=o.has(r.value);}};function On(e){return {event:"input",read:n=>n[e],write(n,t){n[e]=t;}}}function oo(e,n){switch(e.nodeName){case "INPUT":return n==="checked"?e.type==="radio"?eo:Zt:n==="files"?no:n==="value"?In:On(n);case "SELECT":return to;case "TEXTAREA":return In;default:return On(n)}}function ro(e,n,t){if(!isString(e))return e;let o=n?e.trim():e;if(t){let r=n?o:o.trim();if(r!==""){let s=Number(r);if(!Number.isNaN(s))return s}}return o}function io(e){let n=e.getRootNode();return (n instanceof Document||n instanceof ShadowRoot)&&n.activeElement===e}function so(e,n){if(n!=="value"||e.nodeName!=="INPUT")return false;let t=e.type;return t==="number"||t==="range"}function lo(e,n,t,o,r={}){if(!e)return;let{event:s,read:l,write:a,forceChange:c$1,ime:d,checkboxArray:m}=oo(e,n),h$1=r.trim===true,g=r.number===true||so(e,n),y=r.lazy===true,b=(h$1||g)&&n!=="files",w=isFunction(t)?t:()=>t,A=b?N=>ro(N,h$1,g):Jt,L=m?N=>{var E;let u=w();if(!isArray(u))return A(N);let x=e.value,i=((E=ln.get(u))!=null?E:u).filter(p=>String(p)!==x);return N&&i.push(x),ln.set(u,i),i}:A,M=false,K=y||c$1?"change":s,j=()=>{if(M)return;let N=l(e);if(N===void 0)return;let u=L(N);Object.is(w(),u)||o(u);};ae(e,K,j),!y&&b&&K!=="change"&&ae(e,"change",()=>a(e,A(l(e)))),d&&(ae(e,"compositionstart",()=>{M=true;}),ae(e,"compositionend",()=>{M=false,y||j();}));let v=effect(()=>{let N=w();m&&isArray(N)&&ln.set(N,[...N]),!(d&&M)&&(d&&!y&&io(e)&&Object.is(A(l(e)),N)||a(e,N));});c()&&h(()=>v.stop());}function Vn(e){let n=e;return isArray(n)&&n.length===1&&(n=n[0]),isFunction(n)?n():n}function Kn(e){let n=Object.getOwnPropertyDescriptor(e,"children");return n!=null&&n.get?()=>Vn(n.get.call(e)):()=>Vn(e.children)}function uo(e,n){let t=new Set(n);return new Proxy(e,{get(o,r){if(!t.has(r))return Reflect.get(o,r)},ownKeys(o){return Reflect.ownKeys(o).filter(r=>!t.has(r))},getOwnPropertyDescriptor(o,r){if(!t.has(r))return Reflect.getOwnPropertyDescriptor(o,r)},has(o,r){return t.has(r)?false:Reflect.has(o,r)}})}function jn(e){var t;if(e&&((t=Object.getOwnPropertyDescriptor(e,"children"))!=null&&t.get||isReactive(e)))return [()=>e.children];let n=e==null?void 0:e.children;return n==null?null:n}jn[We]=true;function mo(e){return !!e&&!!e[We]}function Le(e){let n=isFunction(e.target)?e.target():e.target;return n==null?null:isString(n)?document.querySelector(n):n}function De(e){return isFunction(e.disabled)?!!e.disabled():!!e.disabled}function Wn(e$1){if(ie()){let h=vo(e$1);if(h)return h}let n=document.createComment("portal");n[fe]=true;let{children:t}=e$1;if(t==null)return n;let o=c(),r=null,s=false,l=(h,g)=>{s||o!=null&&o.isDestroyed||(r=e(o),f(r,()=>{z(h,()=>t,g);}));},a=()=>{r&&(g(r),r=null);},c$1=(h,g)=>{if(!s){if(a(),h){let y=n.parentNode;if(!y)return;l(y,n);return}g&&l(g);}},d=false,m=effect(()=>{let h=De(e$1),g=h?null:Le(e$1);d&&c$1(h,g);});return ee(()=>{d=!0;let h=De(e$1),g=h?null:Le(e$1);if(h||g){c$1(h,g);return}queueMicrotask(()=>{s||n.parentNode&&c$1(De(e$1),Le(e$1));});}),h(()=>{s=true,m.stop(),a();}),n}Wn[fe]=true;function vo(e){if(De(e))return null;let n=Xe();if(!n)return null;let t=Le(e);return !t||!Ye(t)?null:(n[fe]=true,n)}function go(e){return !!e&&!!e[fe]}function Fe(e){let n=e;for(;isFunction(n);)n=n();return isSignal(n)||isComputed(n)?Fe(n.value):isArray(n)?n.map(t=>Fe(t)):n}var pe=Symbol("SuspenseContext");function Un(e$1){var _;if(!isBrowser())return (_=e$1.fallback)!=null?_:"";let n=c(),t=document.createComment("suspense"),o=document.createComment("/suspense"),r=document.createDocumentFragment();r.append(t,o);let s=true,l=0,a=false,c$1=0,d=null,m=null,h$1=null,g$1=null,y=null,b=false,w=[],A=()=>{let f=document.createDocumentFragment();for(;o.previousSibling&&o.previousSibling!==t;)f.prepend(o.previousSibling);h$1=f;},L=()=>{var C;if(!h$1)return;let f=(C=o.parentNode)!=null?C:r;for(;h$1.firstChild;)f.insertBefore(h$1.firstChild,o);h$1=null;},M=()=>{e$1.fallback==null||g$1||(g$1=e(n),f(g$1,()=>{var f;z((f=o.parentNode)!=null?f:r,()=>Fe(e$1.fallback),o);}));},K=()=>{g$1&&(g(g$1),g$1=null);},j=()=>{if(m&&(g(m),m=null),h$1){for(;h$1.firstChild;)h$1.firstChild.remove();h$1=null;}},v=f$1=>{let C=e(n);a=true,m=C;try{f(C,()=>{var k;z((k=o.parentNode)!=null?k:r,()=>Fe(f$1),o);});}catch(k){throw m===C&&(m=null),g(C),l=0,w=[],c$1++,k}finally{a=false;}l&&!h$1&&(A(),M());},N=()=>{h$1||a||(A(),M());},u=()=>{if(!h$1)return;let f=d!=null&&!isPromise(d);m==null&&!b&&!f||(K(),L(),m||(b?v(y):f&&v(d)));},x=(f=c$1)=>{l++,N();let C=(()=>{C.active&&(C.active=false,!(!s||f!==c$1)&&--l===0&&u());});return C.active=true,C},T=f=>{s&&f();},i=()=>{for(;w.length>0;){let f=w.shift();if(f.active)return f}},E={register:f=>{let C=x();return f.then(()=>T(C),k=>{T(C);}),C},increment:()=>{let f=x();return w.push(f),f},decrement:()=>{let f=i();f&&T(f);}};rn(pe,E);let p=f=>{let C=++c$1;d=f!=null?f:null,l=0,y=null,b=false,w=[],j(),K(),isPromise(f)?(f.then(k=>{!s||C!==c$1||(y=k,b=true);}).catch(()=>{}),E.register(f)):f!=null?v(f):e$1.fallback!=null&&N();};return p(e$1.children),tn(()=>p(e$1.children)),h(()=>{s=false,l=0,y=null,m&&g(m),g$1&&g(g$1),m=g$1=null,h$1=null,t.remove(),o.remove();}),r}Un[Be]=true;function So(e){return !!e&&!!e[Be]}function bo(e){return !!e&&typeof e=="object"&&e.name==="AbortError"}function wo(e,n){let t=signal(n==null?void 0:n.initialValue),o=signal(true),r=signal(null),s=signal("pending"),l=0,a=null,c=me(pe,null),d=()=>b(null,null,function*(){let g=++l;a==null||a.abort(),a=new AbortController,o.value=true,s.value="pending",r.value=null;let y;try{y=Promise.resolve(e(a.signal));}catch(b){r.value=b instanceof Error?b:new Error(String(b)),s.value="errored",o.value=false;return}c==null||c.register(y);try{let b=yield y;g===l&&(t.value=b,s.value="ready",o.value=!1);}catch(b){if(g!==l)return;if(bo(b)){o.value=false;return}r.value=b instanceof Error?b:new Error(String(b)),s.value="errored",o.value=false;}});d(),h(()=>{l++,a==null||a.abort(),a=null;});let m=(()=>t.value);return m.loading=o,m.error=r,m.state=s,[m,{mutate:g=>{t.value=g,s.value="ready",o.value=false,r.value=null;},refetch:()=>d()}]}function Gn(e){return isFunction(e)?e:e.default}function Ao(e,n){if(n==="client-only"){let l=()=>"";return l.__asyncLoader=e,l.__asyncResolved=()=>null,l}let t=null,o=null,r=()=>o!=null?o:o=e().then(l=>{t=Gn(l);}).catch(()=>{});r();let s=l=>t?t(l):"";return s.__asyncLoader=r,s.__asyncResolved=()=>t,s}function _o(e$1,n){let{loading:t,error:o,delay:r=200,timeout:s,onError:l}=n,a=null,c$1=null,d="pending",m=null,h=0,g$1=w=>w!==h&&m!=null?m:void 0,y=w=>{if(m&&w===void 0)return m;let A=w!=null?w:++h;return m=e$1().then(L=>{if(A!==h)return g$1(A);a=Gn(L),d="resolved";}).catch(L=>{if(A!==h)return g$1(A);c$1=L instanceof Error?L:new Error(String(L)),d="errored",m=null;}),m};y();function b(w){var _;let A=c(),L=document.createComment("async"),M=document.createDocumentFragment();M.appendChild(L);let K=true,j=null,v=null,N=null,u=0,x=()=>{v!=null&&clearTimeout(v),N!=null&&clearTimeout(N),v=N=null;},T=(f$1,C)=>{K&&(A&&A.isDestroyed||(j&&(g(j),j=null),f$1&&(j=e(A),f(j,()=>{var k;z((k=L.parentNode)!=null?k:M,()=>new le(f$1,C),L);}))));};on(()=>{K=false,x(),j&&(g(j),j=null),L.remove();});let i=f=>()=>{if(!K)return;let C=++h;m=null,d="pending",c$1=null,u++;let k=u;t&&T(t),y(C).then(()=>{K&&k===u&&E(f);});},E=f=>{K&&(x(),d==="resolved"&&a?T(a,f):d==="errored"&&c$1&&(o&&T(o,{error:c$1,retry:i(f)}),l&&l(c$1,i(f))));};if(d==="resolved"&&a)return T(a,w),M;if(d==="errored"&&c$1)return o&&T(o,{error:c$1,retry:i(w)}),M;let p=y().then(()=>E(w));return (_=me(pe))==null||_.register(p),r>0?v=setTimeout(()=>{K&&d==="pending"&&t&&T(t);},r):t&&T(t),s!=null&&(N=setTimeout(()=>{if(!K||d!=="pending")return;let f=new Error(`[defineAsyncComponent] Timeout after ${s}ms`);o&&T(o,{error:f,retry:i(w)}),l&&l(f,i(w));},s)),M}return b.__asyncLoader=y,b.__asyncResolved=()=>a,b}function ko(e,n={}){var t;return typeof window=="undefined"?Ao(e,(t=n.ssr)!=null?t:"blocking"):_o(e,n)}function zn(e$1){let n=document.createDocumentFragment(),t=document.createComment("");n.appendChild(t);let o=[],r=[],s=null,l=c(),a=e$1.key,c$1=e$1.children,d=isArray(c$1)&&c$1.length===1&&isFunction(c$1[0])?c$1[0]:e$1.children;if(!isFunction(d))throw new TypeError("<For> requires `children` to be a function (item, index) => Node");let m=()=>{var N,u;let v=e$1.each;return isSignal(v)?(N=v.value)!=null?N:[]:isFunction(v)?(u=v())!=null?u:[]:v!=null?v:[]},h$1=(v,N)=>a?a(v,N):v,y=v=>{let N=new Array(v.length);for(let[u,x]of v.entries())N[u]=h$1(x,u);return N},b=(v,N,u)=>{if(v==null||v===false)return [];if(isArray(v)){let T=[];for(let i of v)T.push(...b(i,N,u));return T}if(U(v))return q(N,v,u!=null?u:void 0),v.renderedNodes;let x=xe(v);return q(N,x,u!=null?u:void 0),[x]},w=(v,N)=>{var u;if(e$1.fallback){s=e((u=c())!=null?u:l);try{f(s,()=>{r=b(e$1.fallback(),v,N);});}catch(x){throw g(s),s=null,r=[],x}}},A=()=>{s&&(g(s),s=null);for(let v of r)Y(v);r=[];},L=(v,N,u,x,T=h$1(v,N))=>{var _;let i=(_=c())!=null?_:l,E=e(i),p=[];try{f(E,()=>{p=b(d(v,N),u,x);});}catch(f){throw g(E),f}return {key:T,item:v,nodes:p,scope:E}},M=v=>{g(v.scope);for(let N of v.nodes)N.parentNode&&N.parentNode.removeChild(N);},K=effect(()=>{let v=m(),N=t.parentNode;if(!N){if(v.length===0)w(n,t);else {o=new Array(v.length);let u=y(v);for(let[x,T]of v.entries())o[x]=L(T,x,n,t,u[x]);}return}j(N,v);});function j(v,N){let u=o.length,x=N.length;if(x===0){for(let S=0;S<u;S++)M(o[S]);o=[],e$1.fallback&&r.length===0&&w(v,t);return}if(u===0||r.length>0){r.length>0&&A(),o=new Array(x);let S=document.createDocumentFragment(),P=y(N);for(let R=0;R<x;R++)o[R]=L(N[R],R,S,null,P[R]);untrack(()=>{v.insertBefore(S,t);});return}let T=new Map;for(let S=0;S<u;S++){let P=o[S],R=T.get(P.key),V=[P,S];R?R.push(V):T.set(P.key,[V]);}let i=new Array(x),E=[],p=null,_=new Int32Array(x),f=false,C=0,k=y(N);for(let S=0;S<x;S++){let P=N[S],R=k[S],V=T.get(R);if(V&&V.length>0){let[J,Q]=V.shift();Object.is(J.item,P)?(J.item=P,i[S]=J,_[S]=Q+1,Q<C?f=true:C=Q):(p||(p=document.createDocumentFragment()),untrack(()=>M(J)),i[S]=L(P,S,p,null,R));}else p||(p=document.createDocumentFragment()),i[S]=L(P,S,p,null,R);}for(let S of T.values())for(let[P]of S)E.push(P);for(let S of E)untrack(()=>M(S));untrack(()=>{let S=f?en(_):[],P=S.length-1,R=t;for(let V=x-1;V>=0;V--){let Q=i[V].nodes;if(!(_[V]===0)&&f&&P>=0&&V===S[P]){P--;for(let Z=Q.length-1;Z>=0;Z--)R=Q[Z];continue}for(let Z=Q.length-1;Z>=0;Z--){let Ve=Q[Z];Ve.nextSibling!==R&&v.insertBefore(Ve,R),R=Ve;}}}),o=i;}return h(()=>{K.stop();for(let v of o)M(v);o=[],A(),t.parentNode&&t.parentNode.removeChild(t);}),n}zn[vn]=true;function cn(e){var s,l,a,c,d,m,h,g,y,b;let n=(s=e.name)!=null?s:"v",t=(l=e.enterFromClass)!=null?l:`${n}-enter-from`,o=(a=e.enterActiveClass)!=null?a:`${n}-enter-active`,r=(c=e.enterToClass)!=null?c:`${n}-enter-to`;return {enterFrom:t,enterActive:o,enterTo:r,leaveFrom:(d=e.leaveFromClass)!=null?d:`${n}-leave-from`,leaveActive:(m=e.leaveActiveClass)!=null?m:`${n}-leave-active`,leaveTo:(h=e.leaveToClass)!=null?h:`${n}-leave-to`,appearFrom:(g=e.appearFromClass)!=null?g:t,appearActive:(y=e.appearActiveClass)!=null?y:o,appearTo:(b=e.appearToClass)!=null?b:r}}var Xn=e=>e?e.endsWith("ms")?Number(e.slice(0,-2).replace(",",".")):Number(e.slice(0,-1).replace(",","."))*1e3:0;function Yn(e,n){let t=e.split(", "),o=n.split(", "),r=0;for(let[s,l]of o.entries()){let a=Xn(l)+Xn(t[s%t.length]||"0s");a>r&&(r=a);}return r}function Qn(e,n){let t=getComputedStyle(e),o=n!=="animation"?Yn(t.transitionDelay,t.transitionDuration):0,r=n!=="transition"?Yn(t.animationDelay,t.animationDuration):0;return o===0&&r===0?null:o>=r?{event:"transitionend",timeout:o}:{event:"animationend",timeout:r}}function G(e,n){for(let t of n.split(/\s+/))t&&e.classList.add(t);}function W(e,n){for(let t of n.split(/\s+/))t&&e.classList.remove(t);}function ve(e){let n=false,t=null,o=requestAnimationFrame(()=>{n||(t=requestAnimationFrame(e));});return ()=>{n=true,cancelAnimationFrame(o),t!=null&&cancelAnimationFrame(t);}}function He(e){e.offsetHeight;}function ce(e,n,t,o){if(t!=null){let d=false,m=setTimeout(()=>{d||(d=true,o());},t);return ()=>{d=true,clearTimeout(m);}}let r=Qn(e,n);if(!r)return o(),()=>{};let s=false,l=()=>{s||(s=true,clearTimeout(c),e.removeEventListener(r.event,a),o());},a=d=>{d.target===e&&l();};e.addEventListener(r.event,a);let c=setTimeout(l,r.timeout+1);return ()=>{s||(s=true,clearTimeout(c),e.removeEventListener(r.event,a));}}function ue(e,n){return e==null?null:isNumber(e)?e:e[n]}function Jn(e){if(e==null||e===false)return null;if(isArray(e))return e[0]instanceof Element?e[0]:null;if(e instanceof Element)return e;if(U(e)){let n=e;if(n.scope==null){let o=document.createDocumentFragment();n.mount(o);}let t=n.firstChild;return t instanceof Element?t:null}return null}var Oe=Symbol("enter_cb"),he=Symbol("leave_cb");function Zn(e){let n=document.createComment(""),t=cn(e),o=e.css!==false,r=Kn(e),s="idle",l=null,a=null,c=false,d,m=false,h$1=false,g=false,y=null,b=null,w=()=>{y==null||y(),y=null;},A=()=>{b==null||b(),b=null;},L=(u,x)=>{var S;w();let T=null,i=()=>{T==null||T(),T=null,y===i&&(y=null);};y=i;let E=u[he];E&&E(true),s="entering";let p=x==="appear"?t.appearFrom:t.enterFrom,_=x==="appear"?t.appearActive:t.enterActive,f=x==="appear"?t.appearTo:t.enterTo;(S=e.onBeforeEnter)==null||S.call(e,u),o&&(G(u,p),G(u,_));let C=false,k=P=>{var R,V;C||(C=true,i(),u[Oe]=void 0,o&&(W(u,p),W(u,_),W(u,f)),P?(R=e.onEnterCancelled)==null||R.call(e,u):(s="entered",(V=e.onAfterEnter)==null||V.call(e,u)));};u[Oe]=k,T=ve(()=>{if(T=null,!C)if(o&&(W(u,p),G(u,f)),e.onEnter)e.onEnter(u,()=>k(false));else if(o){let P=ue(e.duration,"enter");T=ce(u,e.type,P,()=>{T=null,k(false);});}else k(false);});},M=(u,x)=>{var k;A();let T=null,i=()=>{T==null||T(),T=null,b===i&&(b=null);};b=i;let E=u[Oe];E&&(E(true),He(u)),s="leaving",(k=e.onBeforeLeave)==null||k.call(e,u),o&&(G(u,t.leaveFrom),G(u,t.leaveActive));let p=false,_=S=>{var P,R;p||(p=true,i(),u[he]=void 0,o&&(W(u,t.leaveFrom),W(u,t.leaveActive),W(u,t.leaveTo)),S?(P=e.onLeaveCancelled)==null||P.call(e,u):(s="idle",x(),(R=e.onAfterLeave)==null||R.call(e,u)));};u[he]=_;let f=ue(e.duration,"leave"),C=o&&!e.onLeave&&f==null?!!Qn(u,e.type):false;if(!e.onLeave&&f==null&&!C){_(false);return}T=ve(()=>{T=null,!p&&(o&&(W(u,t.leaveFrom),G(u,t.leaveTo)),e.onLeave?e.onLeave(u,()=>_(false)):o?T=ce(u,e.type,f,()=>{T=null,_(false);}):_(false));});},K=(u,x)=>{if(u&&s==="leaving"&&a){let i=a,E=i[he];E&&E(true),a=null,l=i,L(i,"enter");return}if(u===l)return;let T=l;if(l=u,T){a=T;let i=T;M(i,()=>{i.parentNode&&i.parentNode.removeChild(i),a===i&&(a=null);});}u&&n.parentNode?(n.parentNode.insertBefore(u,n),x&&!e.appear?s="entered":L(u,x&&e.appear?"appear":"enter")):!T&&!u&&(s="idle");},j=()=>{if(h$1=false,g||!m)return;let u=d;m=false,d=void 0;try{K(Jn(u),!1);}catch(x){}},v=u=>{d=u,m=true,!h$1&&(h$1=true,queueMicrotask(j));},N=effect(()=>{let u=r();c?v(u):(d=u,m=true);});return ee(()=>{c=!0;let u=m?Jn(d):null;m=!1,d=void 0,K(u,!0);}),h(()=>{g=true,w(),A(),N.stop();for(let u of [l,a]){if(!u)continue;let x=u[Oe],T=u[he];x==null||x(true),T==null||T(true),u.parentNode&&u.parentNode.removeChild(u);}l=null,a=null,s="idle";}),n}Zn[Ue]=true;function Mo(e){return !!e&&!!e[Ue]}function fn(e,n){if(e==null||e===false)return {el:null,comp:null};if(isArray(e)&&e.length===1)return fn(e[0],n);if(isFunction(e))return fn(e(),n);if(e instanceof HTMLElement)return {el:e,comp:null};if(U(e)){let t=e;t.scope==null&&t.mount(n);let o=t.firstChild;return o instanceof HTMLElement?{el:o,comp:t}:{el:null,comp:t}}return {el:null,comp:null}}function Ho(e){return {position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height}}function un(e,n){e.style.position=n.position,e.style.top=n.top,e.style.left=n.left,e.style.width=n.width,e.style.height=n.height;}function nt(e$1){var u,x,T;let n=(u=e$1.tag)!=null?u:"div",t=document.createElement(n),o=cn(e$1),r=e$1.css!==false,s=(T=e$1.moveClass)!=null?T:`${(x=e$1.name)!=null?x:"v"}-move`,l=e$1.key,a=e$1.children,c$1=isArray(a)&&a.length===1&&isFunction(a[0])?a[0]:e$1.children;if(!isFunction(c$1)||!isFunction(l))throw new TypeError("<TransitionGroup> requires `children: (item, index) => Node` and `key: (item, index) => unknown`");let d=()=>{var E,p;let i=e$1.each;return isSignal(i)?(E=i.value)!=null?E:[]:isFunction(i)?(p=i())!=null?p:[]:i!=null?i:[]},m=[],h$1=false,g$1=(i,E)=>{let p=c(),_=e(p),f$1;try{f(_,()=>{f$1=c$1(i,E);});}catch(S){throw g(_),S}let{el:C,comp:k}=fn(f$1,t);return C?{key:l(i,E),item:i,el:C,comp:k,scope:_,state:"entering"}:(g(_),null)},y=i=>{if(i.comp){for(let E of i.comp.renderedNodes)E.parentNode===t&&t.removeChild(E);return}i.el.parentNode===t&&t.removeChild(i.el);},b=i=>{var E,p,_,f,C;(E=i.cancelEnter)==null||E.call(i,true),(p=i.cancelLeave)==null||p.call(i,true),(_=i.cancelEnterWait)==null||_.call(i),(f=i.cancelLeaveWait)==null||f.call(i),(C=i.cancelMoveWait)==null||C.call(i),i.comp&&i.comp.destroy(),y(i),g(i.scope);},w=i=>{var f,C,k;let E=i.el;if((f=i.cancelLeave)==null||f.call(i,true),!r){i.state="present",(C=e$1.onAfterEnter)==null||C.call(e$1,E);return}(k=e$1.onBeforeEnter)==null||k.call(e$1,E),G(E,o.enterFrom),G(E,o.enterActive);let p=false,_=S=>{var P,R,V;p||(p=true,i.cancelEnter=void 0,(P=i.cancelEnterWait)==null||P.call(i),i.cancelEnterWait=void 0,W(E,o.enterFrom),W(E,o.enterActive),W(E,o.enterTo),S?(R=e$1.onEnterCancelled)==null||R.call(e$1,E):(i.state="present",(V=e$1.onAfterEnter)==null||V.call(e$1,E)));};i.cancelEnter=_,i.state="entering",i.cancelEnterWait=ve(()=>{if(i.cancelEnterWait=void 0,!p)if(W(E,o.enterFrom),G(E,o.enterTo),e$1.onEnter)e$1.onEnter(E,()=>_(false));else {let S=ue(e$1.duration,"enter");i.cancelEnterWait=ce(E,e$1.type,S,()=>{i.cancelEnterWait=void 0,_(false);});}});},A=(i,E)=>{var k,S;let p=i.el;i.cancelEnter&&(i.cancelEnter(true),He(p)),i.state="leaving",i.savedStyles=Ho(p);let _=t.getBoundingClientRect();if(p.style.position="absolute",p.style.top=`${E.top-_.top}px`,p.style.left=`${E.left-_.left}px`,p.style.width=`${E.width}px`,p.style.height=`${E.height}px`,!r){i.savedStyles&&un(p,i.savedStyles),y(i),g(i.scope),i.comp&&i.comp.destroy(),(k=e$1.onAfterLeave)==null||k.call(e$1,p);return}(S=e$1.onBeforeLeave)==null||S.call(e$1,p),G(p,o.leaveFrom),G(p,o.leaveActive);let f=false,C=P=>{var R,V,J;if(!f){if(f=true,i.cancelLeave=void 0,(R=i.cancelLeaveWait)==null||R.call(i),i.cancelLeaveWait=void 0,W(p,o.leaveFrom),W(p,o.leaveActive),W(p,o.leaveTo),P){i.savedStyles&&un(p,i.savedStyles),i.savedStyles=void 0,(V=e$1.onLeaveCancelled)==null||V.call(e$1,p);return}i.savedStyles&&un(p,i.savedStyles),i.savedStyles=void 0,y(i),g(i.scope),i.comp&&i.comp.destroy(),(J=e$1.onAfterLeave)==null||J.call(e$1,p);}};i.cancelLeave=C,i.cancelLeaveWait=ve(()=>{if(i.cancelLeaveWait=void 0,!f)if(W(p,o.leaveFrom),G(p,o.leaveTo),e$1.onLeave)e$1.onLeave(p,()=>C(false));else {let P=ue(e$1.duration,"leave");i.cancelLeaveWait=ce(p,e$1.type,P,()=>{i.cancelLeaveWait=void 0,C(false);});}});},L=(i,E)=>{var R;if(!r||i.state!=="present")return;let p=i.el,_=p.getBoundingClientRect(),f=E.left-_.left,C=E.top-_.top;if(!f&&!C)return;let k=p.style.transform,S=p.style.transitionDuration;p.style.transform=`translate(${f}px, ${C}px)`,p.style.transitionDuration="0s",G(p,s),He(p),p.style.transform=k,p.style.transitionDuration=S;let P=ue(e$1.duration,"enter");(R=i.cancelMoveWait)==null||R.call(i),i.cancelMoveWait=ce(p,e$1.type,P,()=>{i.cancelMoveWait=void 0,W(p,s);});},M=()=>{for(let i of m)i.state!=="leaving"&&(i.prevRect=i.el.getBoundingClientRect());},K=i=>{let E=new Map;for(let C of m)E.set(C.key,C);let p=[];for(let[C,k]of i.entries()){let S=l(k,C),P=E.get(S);if(P)E.delete(S),P.item=k,p.push(P);else {let R=g$1(k,C);R&&p.push(R);}}let _=[];for(let C of E.values())C.state!=="leaving"&&_.push(C);let f=null;for(let C=p.length-1;C>=0;C--){let k=p[C].el;(k.parentNode!==t||k.nextSibling!==f)&&t.insertBefore(k,f),f=k;}return {next:p,leaving:_}},j=(i,E)=>{if(E){let f=[];for(let[C,k]of i.entries()){let S=g$1(k,C);S&&(S.el.parentNode!==t&&t.appendChild(S.el),S.state="present",f.push(S));}m=f;return}M();let{next:p,leaving:_}=K(i);for(let f of p)f.state!=="present"&&w(f);for(let f of _){let C=f.prevRect;C&&A(f,C);}for(let f of p)f.state!=="present"||!f.prevRect||(L(f,f.prevRect),f.prevRect=void 0);m=p.concat(_);},v=null,N=effect(()=>{let i=d();if(!h$1){v=i;return}j(i,false);});return ee(()=>{h$1=!0,v&&(j(v,!0),v=null);}),h(()=>{N.stop();for(let i of m)b(i);m=[],t.parentNode&&t.parentNode.removeChild(t);}),t}nt[Ge]=true;function Vo(e){return !!e&&!!e[Ge]}
2
+ export{le as Component,zn as For,jn as Fragment,Wn as Portal,Un as Suspense,Zn as Transition,nt as TransitionGroup,se as addEvent,ae as addEventListener,Je as beginHydration,lo as bindElement,It as child,qt as clearDelegatedEvents,Xe as consumeTeleportAnchor,Ye as consumeTeleportBlock,Wt as createApp,ke as createComponent,wo as createResource,ko as defineAsyncComponent,Gt as delegateEvents,Qe as endHydration,Tn as getHydrationKey,kt as getRenderedElement,Bt as hydrate,_t as hydrationAnchor,At as hydrationMarker,me as inject,z as insert,U as isComponent,mo as isFragment,ie as isHydrating,go as isPortal,So as isSuspense,Mo as isTransition,Vo as isTransitionGroup,Ot as next,Ce as normalizeClass,Ht as nthChild,uo as omitProps,on as onDestroy,ee as onMount,tn as onUpdate,ne as patchAttr,Rt as patchAttrHydrate,Te as patchClass,Pt as patchClassHydrate,Se as patchStyle,Lt as patchStyleHydrate,rn as provide,St as resetHydrationKey,oe as setStyle,be as template};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@estjs/template",
3
- "version": "0.0.17-beta.7",
3
+ "version": "0.0.18-beta.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -63,12 +63,12 @@
63
63
  "unpkg": "dist/template.js",
64
64
  "jsdelivr": "dist/template.js",
65
65
  "dependencies": {
66
- "@estjs/shared": "0.0.17-beta.7",
67
- "@estjs/signals": "0.0.17-beta.7"
66
+ "@estjs/shared": "0.0.18-beta.1",
67
+ "@estjs/signals": "0.0.18-beta.1"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@babel/core": "^8.0.1",
71
- "babel-plugin-essor": "0.0.17-beta.7"
71
+ "babel-plugin-essor": "0.0.18-beta.1"
72
72
  },
73
73
  "scripts": {
74
74
  "build": "tsup && cross-env NODE_ENV=production tsup --clean=false",