sprae 12.4.13 → 12.4.15

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.
@@ -1,4 +1,4 @@
1
- var ae=Object.defineProperty;var Nt=(t,e)=>{for(var r in e)ae(t,r,{get:e[r],enumerable:!0})};var m=Symbol.dispose||(Symbol.dispose=Symbol("dispose")),d=Symbol("state"),Y=Symbol("on"),Z=Symbol("off"),st=Symbol("init"),ft=":",O,J,et,z=t=>t(),C=z,F={},W={},tt=null,at=null,ue=t=>{if(!t?.tagName)return"";let e=t.tagName.toLowerCase();return t.id?e+="#"+t.id:t.className&&(e+="."+t.className.split(" ")[0]),`<${e}>`},nt=(t,e,r=at)=>{let o=`\u2234 ${t}`;if(r&&(o+=`
2
- in ${ue(r)}`),e){let i=e.length>100?e.slice(0,80)+`\u2026 (${e.length} chars)`:e;o+=tt?`
1
+ var fe=Object.defineProperty;var Nt=(t,e)=>{for(var r in e)fe(t,r,{get:e[r],enumerable:!0})};var m=Symbol.dispose||(Symbol.dispose=Symbol("dispose")),d=Symbol("state"),Y=Symbol("on"),O=Symbol("off"),st=Symbol("init"),at=":",A,J,et,z=t=>t(),E=z,F={},M={},tt=null,ft=null,ce=t=>{if(!t?.tagName)return"";let e=t.tagName.toLowerCase();return t.id?e+="#"+t.id:t.className&&(e+="."+t.className.split(" ")[0]),`<${e}>`},nt=(t,e,r=ft)=>{let o=`\u2234 ${t}`;if(r&&(o+=`
2
+ in ${ce(r)}`),e){let i=e.length>100?e.slice(0,80)+`\u2026 (${e.length} chars)`:e;o+=tt?`
3
3
  ${tt}="${i}"`:`
4
- ="${i}"`}console.error(o)},ut=(t=document.body,e)=>{if(t[d])return Object.assign(t[d],e);e=X(e||{});let r=[],o=[];t[Y]=()=>!o&&(o=r.map(n=>n())),t[Z]=()=>(o?.map(n=>n?.()),o=null),t[m]||(t[m]=()=>(t[Z](),t[Z]=t[Y]=t[m]=t[st]=t[d]=null));let i=t[st]=n=>{let s=n.attributes,f;if(s)for(let a=0;a<s.length;){let{name:u,value:h}=s[a];if(u.startsWith(ft)){if(n.removeAttribute(u),tt=u,at=n,r.push(f=At(n,u.slice(ft.length),h,e)),o.push(f()),d in n)return}else a++}if(n.firstChild!==void 0){let a=n.firstChild,u;for(;a;)u=a.nextSibling,a.nodeType==1&&i(a),a=u}else for(let a of n.childNodes)a.nodeType==1&&i(a)};return i(t),tt=at=null,t[d]===void 0&&(t[d]=e),e};ut.version="12.4.13";var At,Tt,v=t=>{let e=Ot[t=t.trim()];if(e)return e;try{e=Tt(t||"undefined")}catch(r){nt(r,t)}return Ot[t]=function(r,o,i){try{let n=e?.call(this,r);return o?n?.then?(n.then(s=>i=o(s)).catch(s=>nt(s,t,this)),()=>typeof i=="function"&&i()):o(n):n}catch(n){nt(n,t,this)}}},Ot={},B=t=>(t.compile&&(Tt=t.compile),t.prefix&&(ft=t.prefix),t.signal&&(O=t.signal),t.effect&&(J=t.effect),t.computed&&(et=t.computed),t.batch&&(z=t.batch),t.untracked&&(C=t.untracked),t.dir&&(At=t.dir)),K=(t,e)=>{for(;e.length;){let[r,...o]=e.pop().split("-"),i=W[r],n;if(i&&(n=i(t,...o))!==t){for(let s in t)n[s]??(n[s]=t[s]);t=n}}return t},I=null,H=t=>{I?.disconnect(),t(),I?.observe(I._root,{childList:!0,subtree:!0})},Ct=(t=document.body,e)=>{let r=X(e);return ut(t,r),I=new MutationObserver(o=>{for(let i of o){for(let n of i.addedNodes)n.nodeType===1&&n[d]===void 0&&t.contains(n)&&t[st](n);for(let n of i.removedNodes)n.nodeType===1&&!t.contains(n)&&n[m]?.()}}),I._root=t,I.observe(t,{childList:!0,subtree:!0}),r},x=t=>{if(!t.nodeType)return t;let e=t.ownerDocument,r=t.content.cloneNode(!0),o=[...t.attributes],i=e.createTextNode(""),n=(r.append(i),[...r.childNodes]);return{ownerDocument:e,childNodes:n,content:r,remove:()=>r.append(...n),replaceWith(s){s!==i&&(i.before(s),r.append(...n))},attributes:o,removeAttribute(s){o.splice(o.findIndex(f=>f.name===s),1)}}},Et=t=>t.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(e,r)=>(r?"-":"")+e.toLowerCase()),A=(t,e,r)=>r==null||r===!1?t.removeAttribute(e):t.setAttribute(e,r===!0?"":r),ct=(t,e=[])=>t?typeof t=="string"?t:(Array.isArray(t)?t.map(ct):Object.entries(t).reduce((r,[o,i])=>i?[...r,o]:r,[])).join(" "):"",M=(t,e)=>{let r=0,o,i=typeof e=="function"?e:e?s=>setTimeout(s,e):queueMicrotask,n=s=>{o=s,r++||(t(o),i((f=r>1)=>(r=0,f&&n(o))))};return n},Dt=(t,e,r)=>{let o=typeof e=="function"?e:e?i=>setTimeout(i,e):queueMicrotask;return r?(i=>n=>!i&&(t(n),i=1,o(()=>i=0)))():((i=0)=>(n,s=++i)=>o(()=>s==i&&t(n)))()},p=ut;var S=Symbol("signals"),E=Symbol("change"),dt=Symbol("set"),lt=!0,T=(t,e)=>{if(!t||t[Symbol.toStringTag]||t[S])return t;if(t.constructor!==Object)return Array.isArray(t)?ce(t):t;let r=Object.keys(t).length,o={},i=new Proxy(Object.assign(o,{[E]:O(r),[S]:o}),{get:(s,f)=>f in o?o.hasOwnProperty(f)&&typeof o[f]=="function"&&!o[f].prototype?o[f].bind(i):o[f]?o[f].valueOf():o[f]:e?e[f]:typeof globalThis[f]=="function"&&!globalThis[f].prototype?globalThis[f].bind(globalThis):globalThis[f],set:(s,f,a)=>f in o?(jt(o,f,a),1):(lt=!1,e&&f in e?e[f]=a:(rt(o,f,a),o[E].value=++r),lt=!0,1),deleteProperty:(s,f)=>(f in o&&(f[0]!="_"&&o[f]?.[Symbol.dispose]?.(),delete o[f],o[E].value=--r),1),ownKeys:()=>(o[E].value,Reflect.ownKeys(o)),has:(s,f)=>f in o?!0:e?f in e:lt}),n=Object.getOwnPropertyDescriptors(t);for(let s in t)n[s]?.get?(o[s]=et(n[s].get.bind(i)))[dt]=n[s].set?.bind(i):rt(o,s,t[s]);return i},ce=(t,e=globalThis)=>{let r=Array(t.length).fill(null),o=!1,i=f=>function(){return o=!0,f.apply(this,arguments)},n=O(t.length),s=new Proxy(Object.assign(r,{[E]:n,[S]:r,push:i(r.push),pop:i(r.pop),shift:i(r.shift),unshift:i(r.unshift),splice:i(r.splice)}),{get(f,a){return a==="length"?o?(o=!1,r.length):n.value:typeof a=="symbol"||isNaN(a)?r[a]?.valueOf()??e[a]:(r[a]??(r[a]=O(T(t[a])))).valueOf()},set(f,a,u){if(a==="length"){for(let h=u;h<r.length;h++)delete s[h];n.value=r.length=u}else a>=r.length?(rt(r,a,u),s.length=+a+1):r[a]?jt(r,a,u):rt(r,a,u);return 1},deleteProperty:(f,a)=>(r[a]?.[Symbol.dispose]?.(),delete r[a],1)});return s},rt=(t,e,r)=>t[e]=e[0]=="_"||r?.peek||typeof r=="function"?r:O(T(r)),jt=(t,e,r,o,i)=>e[0]==="_"||typeof t[e]=="function"?t[e]=r:r!==(i=(o=t[e]).peek?.()??o)&&(o[dt]?o[dt](r):Array.isArray(r)&&Array.isArray(i)?E in i?C(()=>z(()=>{for(let n=0;n<r.length;n++)i[n]=r[n];i.length=r.length})):o.value=r:o.value=T(r)),X=T;var pt={};Nt(pt,{batch:()=>de,computed:()=>le,effect:()=>$t,signal:()=>kt,untracked:()=>pe});var L,Lt=0,R,kt=(t,e,r=new Set,o=()=>e.value)=>e={get value(){return L?.deps.add(r.add(L)),t},set value(i){if(i!==t){t=i;for(let n of r)R?R.add(n):n()}},peek(){return t},toJSON:o,toString:o,valueOf:o},$t=(t,e,r,o)=>(r=i=>{let n=e;if(e=null,n?.call?.(),i=L,L=r,Lt++>50)throw"Cycle detected";try{e=t()}finally{L=i,Lt--}},r.fn=t,o=r.deps=new Set,r(),i=>{e?.call?.(),e=t=r.fn=null;for(i of o)i.delete(r);o.clear()}),le=(t,e=kt(),r,o,i=()=>r.value)=>r={get value(){return o||(o=$t(()=>e.value=t())),e.value},peek:e.peek,toJSON:i,toString:i,valueOf:i},de=(t,e=!R,r)=>{R??(R=new Set);try{t()}finally{if(e){[R,r]=[null,R];for(let o of r)o()}}},pe=(t,e,r)=>(e=L,L=null,r=t(),L=e,r);var Wt=(t,e)=>{var n,s;let r,o,i;return t._holder?p(o=t,e):(t[n=d]??(t[n]=null),o=t.content?x(t):t,o[s=d]??(o[s]=null),H(()=>t.replaceWith(r=t.ownerDocument.createTextNode(""))),o._holder=r._holder=r,r._clauses=[o._clause=[o,!1]],r.update=M(()=>{let f=r._clauses.find(([,a])=>a);f!=i&&H(()=>{i?.[0].remove(),i?.[0][Z]?.(),(i=f)&&(r.before(i[0].content||i[0]),i[0][d]?i[0][Y]?.():(delete i[0][d],p(i[0],e)))})})),f=>{o._clause[1]=f,o._holder.update()}};var Mt=t=>{var o;let e,r=t;for(e=t.content?x(t):t,e[o=d]??(e[o]=null);r&&!(e._holder=r._holder);)r=r.previousSibling;return t.remove(),t[d]=null,e._holder._clauses.push(e._clause=[e,!0]),e._holder.update};var qt=t=>(t.content&&t.replaceWith(t=x(t).childNodes[0]),e=>(e=typeof e=="function"?e(t.textContent):e,t.textContent=e??""));var Pt=(t,e,r,o)=>{let i=new Set,n;return s=>{n=new Set,s&&ct(typeof s=="function"?s(t.className):s).split(" ").map(f=>f&&n.add(f));for(let f of i)n.has(f)||t.classList.remove(f);for(let f of n)i.has(f)||t.classList.add(f);t.classList.length||t.removeAttribute("class"),i=n}};var It=(t,e,r,o)=>{let i;return n=>{if(i===void 0&&(i=t.getAttribute("style")??""),n=typeof n=="function"?n(t.style):n,typeof n=="string")A(t,"style",i?i+"; "+n:n);else{i&&A(t,"style",i);for(let s in n)s[0]=="-"?t.style.setProperty(s,n[s]):s[0]>"A"&&(t.style[s]=n[s])}}};var Kt=()=>t=>typeof t=="function"&&t();var ht=(t,e=v(`${t}=__`))=>(r,o)=>{r.__=o,e(r),delete r.__},Ht=(t,e,r)=>{try{let o=ht(r),i=t.type==="checkbox"?()=>o(e,t.checked):t.type==="select-multiple"?()=>o(e,[...t.selectedOptions].map(n=>n.value)):/^(date|time|month|week)/.test(t.type)?()=>o(e,t.value):()=>o(e,t.selectedIndex<0?null:isNaN(t.valueAsNumber)?t.value:t.valueAsNumber);if(t.oninput=t.onchange=i,t.type?.startsWith("select")){let n=new MutationObserver(()=>i());n.observe(t,{childList:!0,subtree:!0,attributes:!0}),p(t,e);let s=t[m];s&&(t[m]=()=>{n?.disconnect(),n=null,s()})}v(r)(e)??i()}catch{}return t.type==="text"||t.type===""||t.tagName==="TEXTAREA"?(o,i,n)=>(i=t.selectionStart,n=t.selectionEnd,t.setAttribute("value",t.value=o??""),i&&t.setSelectionRange(i,n)):t.type==="checkbox"?o=>(t.checked=o,A(t,"checked",o)):t.type==="radio"?o=>t.value===o&&(t.checked=o,A(t,"checked",o)):t.type==="select-one"?o=>{for(let i of t.options)i.value==o?i.setAttribute("selected",""):i.removeAttribute("selected");t.value=o}:t.type==="select-multiple"?o=>{for(let i of t.options)i.removeAttribute("selected");for(let i of o)t.querySelector(`[value="${i}"]`).setAttribute("selected","")}:o=>t.value=o};var Rt=(t,e,r)=>{let o=v(r)(e);if(typeof o=="function")return{[Symbol.dispose]:o(t)};ht(r)(e,t)};var Ut=(t,e)=>{let r=t[d]=T({},e),o=!1,i,n=t.content&&x(t);return n&&t.replaceWith(i=t.ownerDocument.createTextNode("")),s=>{if(s=typeof s=="function"?s(r):s,s!==r)for(let f in s){let a=typeof s[f]=="function"?s[f].bind(r):s[f];f in r[S]?r[f]=a:r[S][f]=f[0]=="_"||a?.peek?a:O(T(a))}return!o&&(o=!0,!i&&delete t[d],C(()=>(i?.before(n.content||t),p(n||t,r))))}};var Vt=(t,e,r)=>{let[o,i]=r.split(/\bin|of\b/),[n,s="$"]=o.trim().replace(/\(|\)/g,"").split(/\s*,\s*/),f=t.ownerDocument,a=f.createTextNode(""),u,h,w,_=0,D=M(()=>H(()=>{var j,St;let l=0,b=w,y=b.length;if(u&&!u[E]){for(let wt of u[S]||[])wt[Symbol.dispose]();u=null,_=0}if(y<_)u.length=y;else{if(!u)u=b;else for(;l<_;)u[l]=b[l++];let V=y-l>1?f.createDocumentFragment():null,_t=V?[]:null;for(;l<y;l++){u[l]=b[l];let P=l,N=t.content?x(t):t.cloneNode(!0),Q=N.content||N;if(V)V.appendChild(Q),_t.push([N,P]);else{a.before(Q);let fe=T({get[n](){return u[P]},[s]:h?h[P]:P},e);p(N,fe)}let se=((St=u[j=S]||(u[j]=[]))[l]||(St[l]={}))[Symbol.dispose];u[S][l][Symbol.dispose]=()=>{se?.(),N[Symbol.dispose]?.(),N.remove()}}if(V){a.before(V);for(let[P,N]of _t){let Q=T({get[n](){return u[N]},[s]:h?h[N]:N},e);p(P,Q)}}}_=y}));H(()=>t.replaceWith(a)),t[d]=null;let U=()=>{if(u){for(let l of u[S]||[])l[Symbol.dispose]?.();u=null,_=0}};return Object.assign(l=>{h=null,typeof l=="number"?w=Array.from({length:l},(y,j)=>j+1):l?.constructor===Object?(h=Object.keys(l),w=Object.values(l)):w=l||[];let b=J(()=>{w[E]?.value,D()});return()=>{b(),U()}},{eval:v(i)})};var Zt=(t,e,r,o)=>i=>A(t,o,typeof i=="function"?i(t.getAttribute(o)):i);var Jt=t=>e=>{for(let r in e)A(t,Et(r),e[r])};var zt=(t,e,r,o)=>{let[i,...n]=o.slice(2).split("."),s=v(r).bind(t),f=K(Object.assign(a=>s(e,u=>typeof u=="function"?u(a):u),{target:t}),n);return f.target.addEventListener(i,f,f),{[Symbol.dispose](){f.target.removeEventListener(i,f),f[Symbol.dispose]?.()}}};var Ft=(t,e,r,o)=>{let i,n,s=o.split("..").map((f,a,{length:u})=>f.split(":").reduce((h,w)=>{let[_,...D]=w.slice(2).split("."),U=v(r).bind(t),l=(y,j)=>i=typeof y=="function"?y(j):y,b=K(Object.assign(y=>(a?l(i,y):U(e,j=>l(j,y)),n(),n=s[(a+1)%u]()),{target:t}),D);return y=>(y=h?.(),b.target.addEventListener(_,b,b),()=>(y?.(),b.target.removeEventListener(_,b)))},null));return n=s[0](),{[Symbol.dispose](){n?.()}}};var Bt=(t,e)=>{if(t.content){let r,o=t.innerHTML,i=t.ownerDocument,n=t._holder;return n||t.replaceWith(n=i.createTextNode("")),s=>{if(typeof s=="function"&&(s=s(o)),t._holder&&(t.remove(),t.content.replaceChildren()),r?.[m]?.(),r?.remove(),s!=null&&s!=="")return r=x((r=i.createElement("template"),r.innerHTML=o=s,r)),C(()=>p(r,e)),n.before(r.content),t._holder&&t.childNodes.splice(0,1/0,...r.childNodes),r[m];t._holder&&(t.childNodes.length=0,o="")}}return r=>{var o;return r=typeof r=="function"?r(t.innerHTML):r,t.innerHTML=r??"",t[o=d]&&(t[o]=null),C(()=>p(t,e)),t[m]}};var Xt=(t,e,r)=>{let o=t.ownerDocument,i=o.createComment(":portal"),n=null;return t.before(i),s=>{let f=t.getRootNode(),a=typeof s=="string"?f.querySelector?.(s)||o.querySelector(s):s?.nodeType===1?s:s?o.body:null;if(a!==n)return a?a.appendChild(t):i.after(t),n=a,()=>{n&&(i.after(t),n=null)}}};var Gt=t=>e=>t.hidden=!!e;Object.assign(F,{_:Zt,"":Jt,class:Pt,text:qt,html:Bt,style:It,fx:Kt,value:Ht,ref:Rt,scope:Ut,if:Wt,else:Mt,each:Vt,portal:Xt,hidden:Gt});var he=(t,e,r,o)=>{let[i,...n]=e.split("."),s=F[i]||F._;return()=>{let f=O(0),a=K(Object.assign(M(()=>f.value++),{target:t}),n),u=a.target??t,h=s(u,o,r,i);if(!h?.call)return h?.[m];let w=0,_=h.eval??v(r).bind(u),D,U=()=>(typeof D=="function"&&D(),D=null);o=u[d]??o;let l=J(()=>{let y=f.value==w?a():(w=f.value,D=_(o,h));return U});if(!(d in u))return l;let b=0;return()=>{b||(b=1,l(),u[m]?.())}}},me=t=>t?typeof t=="number"?t:(([,e,r]=t.match(/^(\d+)(ms|s|m)?$/)||[])=>(e=+e,r==="s"?e*1e3:r==="m"?e*6e4:e))():0,mt=t=>t==="idle"?requestIdleCallback:t==="raf"?requestAnimationFrame:!t||t==="tick"?queueMicrotask:e=>setTimeout(e,me(t));Object.assign(W,{debounce:(t,e,r)=>Dt(t,mt(e==="immediate"?r:e),e==="immediate"||r==="immediate"),throttle:(t,e)=>M(t,mt(e)),delay:(t,e)=>((r=mt(e))=>o=>r(()=>t(o)))(),tick:t=>e=>queueMicrotask(()=>t(e)),raf:t=>e=>requestAnimationFrame(()=>t(e)),once:(t,e,r)=>(r=o=>!e&&(e=1,t(o)),r.once=!0,r),window:t=>(t.target=t.target.ownerDocument.defaultView,t),document:t=>(t.target=t.target.ownerDocument,t),root:t=>(t.target=t.target.ownerDocument.documentElement,t),body:t=>(t.target=t.target.ownerDocument.body,t),parent:t=>(t.target=t.target.parentNode,t),self:t=>e=>e.target===t.target&&t(e),away:(t,e)=>{let r=t.target.ownerDocument,o=i=>e=i.target;return r.addEventListener("pointerdown",o,!0),Object.assign(i=>!t.target.contains(i.type==="click"?e??i.target:i.target)&&i.target.isConnected&&t(i),{target:r,[m]:()=>r.removeEventListener("pointerdown",o,!0)})},prevent:t=>e=>(e?.preventDefault(),t(e)),stop:(t,e)=>r=>(e?.[0]==="i"?r?.stopImmediatePropagation():r?.stopPropagation(),t(r)),passive:t=>(t.passive=!0,t),capture:t=>(t.capture=!0,t)});W.outside=W.away;var yt={ctrl:t=>t.ctrlKey||t.key==="Control"||t.key==="Ctrl",shift:t=>t.shiftKey||t.key==="Shift",alt:t=>t.altKey||t.key==="Alt",meta:t=>t.metaKey||t.key==="Meta",cmd:t=>t.metaKey||t.key==="Command",arrow:t=>t.key?.startsWith("Arrow"),enter:t=>t.key==="Enter",esc:t=>t.key?.startsWith("Esc"),tab:t=>t.key==="Tab",space:t=>t.key==="\xA0"||t.key==="Space"||t.key===" ",delete:t=>t.key==="Delete"||t.key==="Backspace",digit:t=>/^\d$/.test(t.key),letter:t=>/^\p{L}$/gu.test(t.key),char:t=>/^\S$/.test(t.key)},Qt=(t,e)=>yt[t]?.(e)||e.key?.toLowerCase()===t||e.keyCode==t;for(let t in yt)W[t]=(e,r,o)=>i=>yt[t](i)&&(!r||Qt(r,i))&&(!o||Qt(o,i))&&e(i);var ye=t=>{let e=0,r="",o=0;for(let i of t){if(r){o?o=0:i==="\\"?o=1:i===r&&(r="");continue}if(i===";"&&!e)return!0;i==="{"?e++:i==="}"?e--:(i==='"'||i==="'"||i==="`")&&(r=i)}return!1};B({compile:t=>(/^(if|let|const)\b/.test(t)||ye(t)||(t=`return ${t}`),/\bawait\s/.test(t)&&(t=`return (async()=>{${t}})()`),p.constructor(`with(arguments[0]){${t}}`)),dir:(t,e,r,o)=>e.includes("..")?()=>Ft(t,o,r,e)[m]:e.split(":").reduce((i,n)=>{let s=n.startsWith("on")?()=>zt(t,o,r,n)[m]:he(t,n,r,o);return i?(f,a)=>(f=i(),a=s(),()=>{f(),a()}):s},null),...pt});p.use=B;p.store=X;p.directive=F;p.modifier=W;var Mr=p.dispose=t=>t[m]?.();p.start=Ct;var Yt=p;var xt={};Nt(xt,{Computed:()=>$,Effect:()=>q,Signal:()=>g,batch:()=>be,computed:()=>xe,effect:()=>ne,signal:()=>ve,untracked:()=>bt});var ge=Symbol.for("preact-signals");function it(){if(k>1)k--;else{for(var t,e=!1;G!==void 0;){var r=G;for(G=void 0,gt++;r!==void 0;){var o=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&ee(r))try{r.c()}catch(i){e||(t=i,e=!0)}r=o}}if(gt=0,k--,e)throw t}}function be(t){if(k>0)return t();k++;try{return t()}finally{it()}}var c=void 0;function bt(t){var e=c;c=void 0;try{return t()}finally{c=e}}var G=void 0,k=0,gt=0,ot=0;function te(t){if(c!==void 0){var e=t.n;if(e===void 0||e.t!==c)return e={i:0,S:t,p:c.s,n:void 0,t:c,e:void 0,x:void 0,r:e},c.s!==void 0&&(c.s.n=e),c.s=e,t.n=e,32&c.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=c.s,e.n=void 0,c.s.n=e,c.s=e),e}}function g(t,e){this.v=t,this.i=0,this.n=void 0,this.t=void 0,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}g.prototype.brand=ge;g.prototype.h=function(){return!0};g.prototype.S=function(t){var e=this,r=this.t;r!==t&&t.e===void 0&&(t.x=r,this.t=t,r!==void 0?r.e=t:bt(function(){var o;(o=e.W)==null||o.call(e)}))};g.prototype.U=function(t){var e=this;if(this.t!==void 0){var r=t.e,o=t.x;r!==void 0&&(r.x=o,t.e=void 0),o!==void 0&&(o.e=r,t.x=void 0),t===this.t&&(this.t=o,o===void 0&&bt(function(){var i;(i=e.Z)==null||i.call(e)}))}};g.prototype.subscribe=function(t){var e=this;return ne(function(){var r=e.value,o=c;c=void 0;try{t(r)}finally{c=o}},{name:"sub"})};g.prototype.valueOf=function(){return this.value};g.prototype.toString=function(){return this.value+""};g.prototype.toJSON=function(){return this.value};g.prototype.peek=function(){var t=c;c=void 0;try{return this.value}finally{c=t}};Object.defineProperty(g.prototype,"value",{get:function(){var t=te(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(gt>100)throw new Error("Cycle detected");this.v=t,this.i++,ot++,k++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{it()}}}});function ve(t,e){return new g(t,e)}function ee(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function re(t){for(var e=t.s;e!==void 0;e=e.n){var r=e.S.n;if(r!==void 0&&(e.r=r),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function oe(t){for(var e=t.s,r=void 0;e!==void 0;){var o=e.p;e.i===-1?(e.S.U(e),o!==void 0&&(o.n=e.n),e.n!==void 0&&(e.n.p=o)):r=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=o}t.s=r}function $(t,e){g.call(this,void 0),this.x=t,this.s=void 0,this.g=ot-1,this.f=4,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}$.prototype=new g;$.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ot))return!0;if(this.g=ot,this.f|=1,this.i>0&&!ee(this))return this.f&=-2,!0;var t=c;try{re(this),c=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return c=t,oe(this),this.f&=-2,!0};$.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}g.prototype.S.call(this,t)};$.prototype.U=function(t){if(this.t!==void 0&&(g.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};$.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty($.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=te(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function xe(t,e){return new $(t,e)}function ie(t){var e=t.u;if(t.u=void 0,typeof e=="function"){k++;var r=c;c=void 0;try{e()}catch(o){throw t.f&=-2,t.f|=8,vt(t),o}finally{c=r,it()}}}function vt(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,ie(t)}function Se(t){if(c!==this)throw new Error("Out-of-order effect");oe(this),c=t,this.f&=-2,8&this.f&&vt(this),it()}function q(t,e){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=e?.name}q.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}};q.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ie(this),re(this),k++;var t=c;return c=this,Se.bind(this,t)};q.prototype.N=function(){2&this.f||(this.f|=2,this.o=G,G=this)};q.prototype.d=function(){this.f|=8,1&this.f||vt(this)};q.prototype.dispose=function(){this.d()};function ne(t,e){var r=new q(t,e);try{r.c()}catch(i){throw r.d(),i}var o=r.d.bind(r);return o[Symbol.dispose]=o,o}B(xt);var Ir=Yt;export{z as batch,et as computed,Dt as debounce,Ir as default,Mr as dispose,J as effect,O as signal,p as sprae,Ct as start,X as store,M as throttle,C as untracked,B as use};
4
+ ="${i}"`}console.error(o)},ct=(t=document.body,e)=>{if(t[d])return Object.assign(t[d],e);e=X(e||{});let r=[],o=[];t[Y]=()=>!o&&(o=r.map(n=>n())),t[O]=()=>(o?.map(n=>n?.()),o=null),t[m]||(t[m]=()=>(t[O](),t[O]=t[Y]=t[m]=t[st]=t[d]=null));let i=t[st]=n=>{let s=n.attributes,a;if(s)for(let f=0;f<s.length;){let{name:c,value:h}=s[f];if(c.startsWith(at)){if(n.removeAttribute(c),tt=c,ft=n,r.push(a=At(n,c.slice(at.length),h,e)),o.push(a()),d in n)return}else f++}if(n.firstChild!==void 0){let f=n.firstChild,c;for(;f;)c=f.nextSibling,f.nodeType==1&&i(f),f=c}else for(let f of n.childNodes)f.nodeType==1&&i(f)};return i(t),tt=ft=null,t[d]===void 0&&(t[d]=e),e};ct.version="12.4.15";var At,Tt,v=t=>{let e=Ot[t=t.trim()];if(e)return e;try{e=Tt(t||"undefined")}catch(r){nt(r,t)}return Ot[t]=function(r,o,i){try{let n=e?.call(this,r);return o?n?.then?(n.then(s=>i=o(s)).catch(s=>nt(s,t,this)),()=>typeof i=="function"&&i()):o(n):n}catch(n){nt(n,t,this)}}},Ot={},B=t=>(t.compile&&(Tt=t.compile),t.prefix&&(at=t.prefix),t.signal&&(A=t.signal),t.effect&&(J=t.effect),t.computed&&(et=t.computed),t.batch&&(z=t.batch),t.untracked&&(E=t.untracked),t.dir&&(At=t.dir)),H=(t,e)=>{for(;e.length;){let[r,...o]=e.pop().split("-"),i=M[r],n;if(i&&(n=i(t,...o))!==t){for(let s in t)n[s]??(n[s]=t[s]);t=n}}return t},K=null,R=t=>{K?.disconnect(),t(),K?.observe(K._root,{childList:!0,subtree:!0})},Ct=(t=document.body,e)=>{let r=X(e);return ct(t,r),K=new MutationObserver(o=>{for(let i of o){for(let n of i.addedNodes)n.nodeType===1&&n[d]===void 0&&t.contains(n)&&t[st](n);for(let n of i.removedNodes)n.nodeType===1&&!t.contains(n)&&n[m]?.()}}),K._root=t,K.observe(t,{childList:!0,subtree:!0}),r},x=t=>{if(!t.nodeType)return t;let e=t.ownerDocument,r=t.content.cloneNode(!0),o=[...t.attributes],i=e.createTextNode(""),n=(r.append(i),[...r.childNodes]);return{ownerDocument:e,childNodes:n,content:r,remove:()=>r.append(...n),replaceWith(s){s!==i&&(i.before(s),r.append(...n))},attributes:o,removeAttribute(s){o.splice(o.findIndex(a=>a.name===s),1)}}},Et=t=>t.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(e,r)=>(r?"-":"")+e.toLowerCase()),T=(t,e,r)=>r==null||r===!1?t.removeAttribute(e):t.setAttribute(e,r===!0?"":r),ut=(t,e=[])=>t?typeof t=="string"?t:(Array.isArray(t)?t.map(ut):Object.entries(t).reduce((r,[o,i])=>i?[...r,o]:r,[])).join(" "):"",q=(t,e)=>{let r=0,o,i=typeof e=="function"?e:e?s=>setTimeout(s,e):queueMicrotask,n=s=>{o=s,r++||(t(o),i((a=r>1)=>(r=0,a&&n(o))))};return n},Dt=(t,e,r)=>{let o=typeof e=="function"?e:e?i=>setTimeout(i,e):queueMicrotask;return r?(i=>n=>!i&&(t(n),i=1,o(()=>i=0)))():((i=0)=>(n,s=++i)=>o(()=>s==i&&t(n)))()},p=ct;var _=Symbol("signals"),D=Symbol("change"),dt=Symbol("set"),lt=!0,C=(t,e)=>{if(!t||t[Symbol.toStringTag]||t[_])return t;if(t.constructor!==Object)return Array.isArray(t)?ue(t):t;let r=Object.keys(t).length,o={},i=new Proxy(Object.assign(o,{[D]:A(r),[_]:o}),{get:(s,a)=>a in o?o.hasOwnProperty(a)&&typeof o[a]=="function"&&!o[a].prototype?o[a].bind(i):o[a]?o[a].valueOf():o[a]:e?e[a]:typeof globalThis[a]=="function"&&!globalThis[a].prototype?globalThis[a].bind(globalThis):globalThis[a],set:(s,a,f)=>a in o?(jt(o,a,f),1):(lt=!1,e&&a in e?e[a]=f:(rt(o,a,f),o[D].value=++r),lt=!0,1),deleteProperty:(s,a)=>(a in o&&(a[0]!="_"&&o[a]?.[Symbol.dispose]?.(),delete o[a],o[D].value=--r),1),ownKeys:()=>(o[D].value,Reflect.ownKeys(o)),has:(s,a)=>a in o?!0:e?a in e:lt}),n=Object.getOwnPropertyDescriptors(t);for(let s in t)n[s]?.get?(o[s]=et(n[s].get.bind(i)))[dt]=n[s].set?.bind(i):rt(o,s,t[s]);return i},ue=(t,e=globalThis)=>{let r=Array(t.length).fill(null),o=!1,i=a=>function(){return o=!0,a.apply(this,arguments)},n=A(t.length),s=new Proxy(Object.assign(r,{[D]:n,[_]:r,push:i(r.push),pop:i(r.pop),shift:i(r.shift),unshift:i(r.unshift),splice:i(r.splice)}),{get(a,f){return f==="length"?o?(o=!1,r.length):n.value:typeof f=="symbol"||isNaN(f)?r[f]?.valueOf()??e[f]:(r[f]??(r[f]=A(C(t[f])))).valueOf()},set(a,f,c){if(f==="length"){for(let h=c;h<r.length;h++)delete s[h];n.value=r.length=c}else f>=r.length?(rt(r,f,c),s.length=+f+1):r[f]?jt(r,f,c):rt(r,f,c);return 1},deleteProperty:(a,f)=>(r[f]?.[Symbol.dispose]?.(),delete r[f],1)});return s},rt=(t,e,r)=>t[e]=e[0]=="_"||r?.peek||typeof r=="function"?r:A(C(r)),jt=(t,e,r,o,i)=>e[0]==="_"||typeof t[e]=="function"?t[e]=r:r!==(i=(o=t[e]).peek?.()??o)&&(o[dt]?o[dt](r):Array.isArray(r)&&Array.isArray(i)?D in i?E(()=>z(()=>{for(let n=0;n<r.length;n++)i[n]=r[n];i.length=r.length})):o.value=r:o.value=C(r)),X=C;var pt={};Nt(pt,{batch:()=>de,computed:()=>le,effect:()=>$t,signal:()=>Lt,untracked:()=>pe});var L,kt=0,U,Lt=(t,e,r=new Set,o=()=>e.value)=>e={get value(){return L?.deps.add(r.add(L)),t},set value(i){if(i!==t){t=i;for(let n of r)U?U.add(n):n()}},peek(){return t},toJSON:o,toString:o,valueOf:o},$t=(t,e,r,o)=>(r=i=>{let n=e;if(e=null,n?.call?.(),i=L,L=r,kt++>50)throw"Cycle detected";try{e=t()}finally{L=i,kt--}},r.fn=t,o=r.deps=new Set,r(),i=>{e?.call?.(),e=t=r.fn=null;for(i of o)i.delete(r);o.clear()}),le=(t,e=Lt(),r,o,i=()=>r.value)=>r={get value(){return o||(o=$t(()=>e.value=t())),e.value},peek:e.peek,toJSON:i,toString:i,valueOf:i},de=(t,e=!U,r)=>{U??(U=new Set);try{t()}finally{if(e){[U,r]=[null,U];for(let o of r)o()}}},pe=(t,e,r)=>(e=L,L=null,r=t(),L=e,r);var Wt=(t,e)=>{var n,s;let r,o;t._holder?p(o=t,e):(t[n=d]??(t[n]=null),o=t.content?x(t):t,o[s=d]??(o[s]=null),R(()=>t.replaceWith(r=t.ownerDocument.createTextNode(""))),o._holder=r._holder=r,r._clauses=[o._clause=[o,!1]],r._match=null,r.update=q(()=>{let a=r._clauses.find(([,f])=>f);a!=r._match&&R(()=>{r._match?.[0].remove(),r._match?.[0][O]?.(),(r._match=a)&&(r.before(r._match[0].content||r._match[0]),r._match[0][d]?r._match[0][Y]?.():(delete r._match[0][d],p(r._match[0],e)))})}));let i=a=>{o._clause[1]=a,o._holder.update()};return i[O]=()=>{o._holder._match?.[0][O]?.(),o._holder._match=null},i};var Mt=t=>{var o;let e,r=t;for(e=t.content?x(t):t,e[o=d]??(e[o]=null);r&&!(e._holder=r._holder);)r=r.previousSibling;return t.remove(),t[d]=null,e._holder._clauses.push(e._clause=[e,!0]),e._holder.update};var qt=t=>(t.content&&t.replaceWith(t=x(t).childNodes[0]),e=>(e=typeof e=="function"?e(t.textContent):e,t.textContent=e??""));var Pt=(t,e,r,o)=>{let i=new Set,n;return s=>{n=new Set,s&&ut(typeof s=="function"?s(t.className):s).split(" ").map(a=>a&&n.add(a));for(let a of i)n.has(a)||t.classList.remove(a);for(let a of n)i.has(a)||t.classList.add(a);t.classList.length||t.removeAttribute("class"),i=n}};var It=(t,e,r,o)=>{let i;return n=>{if(i===void 0&&(i=t.getAttribute("style")??""),n=typeof n=="function"?n(t.style):n,typeof n=="string")T(t,"style",i?i+"; "+n:n);else{i&&T(t,"style",i);for(let s in n)s[0]=="-"?t.style.setProperty(s,n[s]):s[0]>"A"&&(t.style[s]=n[s])}}};var Kt=()=>t=>typeof t=="function"&&t();var ht=(t,e=v(`${t}=__`))=>(r,o)=>{r.__=o,e(r),delete r.__},Ht=(t,e,r)=>{try{let o=ht(r),i=t.type==="checkbox"?()=>o(e,t.checked):t.type==="select-multiple"?()=>o(e,[...t.selectedOptions].map(n=>n.value)):/^(date|time|month|week)/.test(t.type)?()=>o(e,t.value):()=>o(e,t.selectedIndex<0?null:isNaN(t.valueAsNumber)?t.value:t.valueAsNumber);if(t.oninput=t.onchange=i,t.type?.startsWith("select")){let n=new MutationObserver(()=>i());n.observe(t,{childList:!0,subtree:!0,attributes:!0}),p(t,e);let s=t[m];s&&(t[m]=()=>{n?.disconnect(),n=null,s()})}v(r)(e)??i()}catch{}return t.type==="text"||t.type===""||t.tagName==="TEXTAREA"?(o,i,n)=>(i=t.selectionStart,n=t.selectionEnd,t.setAttribute("value",t.value=o??""),i&&t.setSelectionRange(i,n)):t.type==="checkbox"?o=>(t.checked=o,T(t,"checked",o)):t.type==="radio"?o=>t.value===o&&(t.checked=o,T(t,"checked",o)):t.type==="select-one"?o=>{for(let i of t.options)i.value==o?i.setAttribute("selected",""):i.removeAttribute("selected");t.value=o}:t.type==="select-multiple"?o=>{for(let i of t.options)i.removeAttribute("selected");for(let i of o)t.querySelector(`[value="${i}"]`).setAttribute("selected","")}:o=>t.value=o};var Rt=(t,e,r)=>{let o=v(r)(e);if(typeof o=="function")return{[Symbol.dispose]:o(t)};ht(r)(e,t)};var Ut=(t,e)=>{let r=t[d]=C({},e),o=!1,i,n=t.content&&x(t);return n&&t.replaceWith(i=t.ownerDocument.createTextNode("")),s=>{if(s=typeof s=="function"?s(r):s,s!==r)for(let a in s){let f=typeof s[a]=="function"?s[a].bind(r):s[a];a in r[_]?r[a]=f:r[_][a]=a[0]=="_"||f?.peek?f:A(C(f))}return!o&&(o=!0,!i&&delete t[d],E(()=>(i?.before(n.content||t),p(n||t,r))))}};var Vt=(t,e,r)=>{let[o,i]=r.split(/\bin|of\b/),[n,s="$"]=o.trim().replace(/\(|\)/g,"").split(/\s*,\s*/),a=t.ownerDocument,f=a.createTextNode(""),c,h,S,w=0,j=q(()=>R(()=>{var k,_t;let l=0,b=S,y=b.length;if(c&&!c[D]){for(let St of c[_]||[])St[Symbol.dispose]();c=null,w=0}if(y<w)c.length=y;else{if(!c)c=b;else for(;l<w;)c[l]=b[l++];let Z=y-l>1?a.createDocumentFragment():null,wt=Z?[]:null;for(;l<y;l++){c[l]=b[l];let I=l,N=t.content?x(t):t.cloneNode(!0),Q=N.content||N;if(Z)Z.appendChild(Q),wt.push([N,I]);else{f.before(Q);let ae=C({get[n](){return c[I]},[s]:h?h[I]:I},e);p(N,ae)}let se=((_t=c[k=_]||(c[k]=[]))[l]||(_t[l]={}))[Symbol.dispose];c[_][l][Symbol.dispose]=()=>{se?.(),N[Symbol.dispose]?.(),N.remove()}}if(Z){f.before(Z);for(let[I,N]of wt){let Q=C({get[n](){return c[N]},[s]:h?h[N]:N},e);p(I,Q)}}}w=y}));R(()=>t.replaceWith(f)),t[d]=null;let V=()=>{if(c){for(let l of c[_]||[])l[Symbol.dispose]?.();c=null,w=0}};return Object.assign(l=>{h=null,typeof l=="number"?S=Array.from({length:l},(y,k)=>k+1):l?.constructor===Object?(h=Object.keys(l),S=Object.values(l)):S=l||[];let b=J(()=>{S[D]?.value,j()});return()=>{b(),V()}},{eval:v(i)})};var Zt=(t,e,r,o)=>i=>T(t,o,typeof i=="function"?i(t.getAttribute(o)):i);var Jt=t=>e=>{for(let r in e)T(t,Et(r),e[r])};var zt=(t,e,r,o)=>{let[i,...n]=o.slice(2).split("."),s=v(r).bind(t),a=H(Object.assign(f=>s(e,c=>typeof c=="function"?c(f):c),{target:t}),n);return a.target.addEventListener(i,a,a),{[Symbol.dispose](){a.target.removeEventListener(i,a),a[Symbol.dispose]?.()}}};var Ft=(t,e,r,o)=>{let i,n,s=o.split("..").map((a,f,{length:c})=>a.split(":").reduce((h,S)=>{let[w,...j]=S.slice(2).split("."),V=v(r).bind(t),l=(y,k)=>i=typeof y=="function"?y(k):y,b=H(Object.assign(y=>(f?l(i,y):V(e,k=>l(k,y)),n(),n=s[(f+1)%c]()),{target:t}),j);return y=>(y=h?.(),b.target.addEventListener(w,b,b),()=>(y?.(),b.target.removeEventListener(w,b)))},null));return n=s[0](),{[Symbol.dispose](){n?.()}}};var Bt=(t,e)=>{if(t.content){let r,o=t.innerHTML,i=t.ownerDocument,n=t._holder;return n||t.replaceWith(n=i.createTextNode("")),s=>{if(typeof s=="function"&&(s=s(o)),t._holder&&(t.remove(),t.content.replaceChildren()),r?.[m]?.(),r?.remove(),s!=null&&s!=="")return r=x((r=i.createElement("template"),r.innerHTML=o=s,r)),E(()=>p(r,e)),n.before(r.content),t._holder&&t.childNodes.splice(0,1/0,...r.childNodes),r[m];t._holder&&(t.childNodes.length=0,o="")}}return r=>{var o;return r=typeof r=="function"?r(t.innerHTML):r,t.innerHTML=r??"",t[o=d]&&(t[o]=null),E(()=>p(t,e)),t[m]}};var Xt=(t,e,r)=>{let o=t.ownerDocument,i=o.createComment(":portal"),n=null;return t.before(i),s=>{let a=t.getRootNode(),f=typeof s=="string"?a.querySelector?.(s)||o.querySelector(s):s?.nodeType===1?s:s?o.body:null;if(f!==n)return f?f.appendChild(t):i.after(t),n=f,()=>{n&&(i.after(t),n=null)}}};var Gt=t=>e=>t.hidden=!!e;Object.assign(F,{_:Zt,"":Jt,class:Pt,text:qt,html:Bt,style:It,fx:Kt,value:Ht,ref:Rt,scope:Ut,if:Wt,else:Mt,each:Vt,portal:Xt,hidden:Gt});var he=(t,e,r,o)=>{let[i,...n]=e.split("."),s=F[i]||F._;return()=>{let a=A(0),f=H(Object.assign(q(()=>a.value++),{target:t}),n),c=f.target??t,h=s(c,o,r,i);if(!h?.call)return h?.[m];let S=0,w=h.eval??v(r).bind(c),j,V=()=>(typeof j=="function"&&j(),j=null);o=c[d]??o;let l=J(()=>{let y=a.value==S?f():(S=a.value,j=w(o,h));return V});if(!(d in c))return l;let b=0;return()=>{b||(b=1,l(),h[O]?h[O]():c[m]?.())}}},me=t=>t?typeof t=="number"?t:(([,e,r]=t.match(/^(\d+)(ms|s|m)?$/)||[])=>(e=+e,r==="s"?e*1e3:r==="m"?e*6e4:e))():0,mt=t=>t==="idle"?requestIdleCallback:t==="raf"?requestAnimationFrame:!t||t==="tick"?queueMicrotask:e=>setTimeout(e,me(t));Object.assign(M,{debounce:(t,e,r)=>Dt(t,mt(e==="immediate"?r:e),e==="immediate"||r==="immediate"),throttle:(t,e)=>q(t,mt(e)),delay:(t,e)=>((r=mt(e))=>o=>r(()=>t(o)))(),tick:t=>e=>queueMicrotask(()=>t(e)),raf:t=>e=>requestAnimationFrame(()=>t(e)),once:(t,e,r)=>(r=o=>!e&&(e=1,t(o)),r.once=!0,r),window:t=>(t.target=t.target.ownerDocument.defaultView,t),document:t=>(t.target=t.target.ownerDocument,t),root:t=>(t.target=t.target.ownerDocument.documentElement,t),body:t=>(t.target=t.target.ownerDocument.body,t),parent:t=>(t.target=t.target.parentNode,t),self:t=>e=>e.target===t.target&&t(e),away:(t,e)=>{let r=t.target.ownerDocument,o=n=>e=n.target,i=r.currentEvent||r.defaultView?.event;return r.addEventListener("pointerdown",o,!0),Object.assign(n=>n!==i&&!t.target.contains(n.type==="click"?e??n.target:n.target)&&n.target.isConnected&&t(n),{target:r,[m]:()=>r.removeEventListener("pointerdown",o,!0)})},prevent:t=>e=>(e?.preventDefault(),t(e)),stop:(t,e)=>r=>(e?.[0]==="i"?r?.stopImmediatePropagation():r?.stopPropagation(),t(r)),passive:t=>(t.passive=!0,t),capture:t=>(t.capture=!0,t)});M.outside=M.away;var yt={ctrl:t=>t.ctrlKey||t.key==="Control"||t.key==="Ctrl",shift:t=>t.shiftKey||t.key==="Shift",alt:t=>t.altKey||t.key==="Alt",meta:t=>t.metaKey||t.key==="Meta",cmd:t=>t.metaKey||t.key==="Command",arrow:t=>t.key?.startsWith("Arrow"),enter:t=>t.key==="Enter",esc:t=>t.key?.startsWith("Esc"),tab:t=>t.key==="Tab",space:t=>t.key==="\xA0"||t.key==="Space"||t.key===" ",delete:t=>t.key==="Delete"||t.key==="Backspace",digit:t=>/^\d$/.test(t.key),letter:t=>/^\p{L}$/gu.test(t.key),char:t=>/^\S$/.test(t.key)},Qt=(t,e)=>yt[t]?.(e)||e.key?.toLowerCase()===t||e.keyCode==t;for(let t in yt)M[t]=(e,r,o)=>i=>yt[t](i)&&(!r||Qt(r,i))&&(!o||Qt(o,i))&&e(i);var ye=t=>{let e=0,r="",o=0;for(let i of t){if(r){o?o=0:i==="\\"?o=1:i===r&&(r="");continue}if(i===";"&&!e)return!0;i==="{"?e++:i==="}"?e--:(i==='"'||i==="'"||i==="`")&&(r=i)}return!1};B({compile:t=>(/^(if|let|const)\b/.test(t)||ye(t)||(t=`return ${t}`),/\bawait\s/.test(t)&&(t=`return (async()=>{${t}})()`),p.constructor(`with(arguments[0]){${t}}`)),dir:(t,e,r,o)=>e.includes("..")?()=>Ft(t,o,r,e)[m]:e.split(":").reduce((i,n)=>{let s=n.startsWith("on")?()=>zt(t,o,r,n)[m]:he(t,n,r,o);return i?(a,f)=>(a=i(),f=s(),()=>{a(),f()}):s},null),...pt});p.use=B;p.store=X;p.directive=F;p.modifier=M;var Wr=p.dispose=t=>t[m]?.();p.start=Ct;var Yt=p;var xt={};Nt(xt,{Computed:()=>W,Effect:()=>P,Signal:()=>g,batch:()=>be,computed:()=>xe,effect:()=>ne,signal:()=>ve,untracked:()=>bt});var ge=Symbol.for("preact-signals");function it(){if($>1)$--;else{for(var t,e=!1;G!==void 0;){var r=G;for(G=void 0,gt++;r!==void 0;){var o=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&ee(r))try{r.c()}catch(i){e||(t=i,e=!0)}r=o}}if(gt=0,$--,e)throw t}}function be(t){if($>0)return t();$++;try{return t()}finally{it()}}var u=void 0;function bt(t){var e=u;u=void 0;try{return t()}finally{u=e}}var G=void 0,$=0,gt=0,ot=0;function te(t){if(u!==void 0){var e=t.n;if(e===void 0||e.t!==u)return e={i:0,S:t,p:u.s,n:void 0,t:u,e:void 0,x:void 0,r:e},u.s!==void 0&&(u.s.n=e),u.s=e,t.n=e,32&u.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=u.s,e.n=void 0,u.s.n=e,u.s=e),e}}function g(t,e){this.v=t,this.i=0,this.n=void 0,this.t=void 0,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}g.prototype.brand=ge;g.prototype.h=function(){return!0};g.prototype.S=function(t){var e=this,r=this.t;r!==t&&t.e===void 0&&(t.x=r,this.t=t,r!==void 0?r.e=t:bt(function(){var o;(o=e.W)==null||o.call(e)}))};g.prototype.U=function(t){var e=this;if(this.t!==void 0){var r=t.e,o=t.x;r!==void 0&&(r.x=o,t.e=void 0),o!==void 0&&(o.e=r,t.x=void 0),t===this.t&&(this.t=o,o===void 0&&bt(function(){var i;(i=e.Z)==null||i.call(e)}))}};g.prototype.subscribe=function(t){var e=this;return ne(function(){var r=e.value,o=u;u=void 0;try{t(r)}finally{u=o}},{name:"sub"})};g.prototype.valueOf=function(){return this.value};g.prototype.toString=function(){return this.value+""};g.prototype.toJSON=function(){return this.value};g.prototype.peek=function(){var t=u;u=void 0;try{return this.value}finally{u=t}};Object.defineProperty(g.prototype,"value",{get:function(){var t=te(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(gt>100)throw new Error("Cycle detected");this.v=t,this.i++,ot++,$++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{it()}}}});function ve(t,e){return new g(t,e)}function ee(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function re(t){for(var e=t.s;e!==void 0;e=e.n){var r=e.S.n;if(r!==void 0&&(e.r=r),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function oe(t){for(var e=t.s,r=void 0;e!==void 0;){var o=e.p;e.i===-1?(e.S.U(e),o!==void 0&&(o.n=e.n),e.n!==void 0&&(e.n.p=o)):r=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=o}t.s=r}function W(t,e){g.call(this,void 0),this.x=t,this.s=void 0,this.g=ot-1,this.f=4,this.W=e?.watched,this.Z=e?.unwatched,this.name=e?.name}W.prototype=new g;W.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ot))return!0;if(this.g=ot,this.f|=1,this.i>0&&!ee(this))return this.f&=-2,!0;var t=u;try{re(this),u=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return u=t,oe(this),this.f&=-2,!0};W.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}g.prototype.S.call(this,t)};W.prototype.U=function(t){if(this.t!==void 0&&(g.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};W.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(W.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=te(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function xe(t,e){return new W(t,e)}function ie(t){var e=t.u;if(t.u=void 0,typeof e=="function"){$++;var r=u;u=void 0;try{e()}catch(o){throw t.f&=-2,t.f|=8,vt(t),o}finally{u=r,it()}}}function vt(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,ie(t)}function _e(t){if(u!==this)throw new Error("Out-of-order effect");oe(this),u=t,this.f&=-2,8&this.f&&vt(this),it()}function P(t,e){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=e?.name}P.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}};P.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ie(this),re(this),$++;var t=u;return u=this,_e.bind(this,t)};P.prototype.N=function(){2&this.f||(this.f|=2,this.o=G,G=this)};P.prototype.d=function(){this.f|=8,1&this.f||vt(this)};P.prototype.dispose=function(){this.d()};function ne(t,e){var r=new P(t,e);try{r.c()}catch(i){throw r.d(),i}var o=r.d.bind(r);return o[Symbol.dispose]=o,o}B(xt);var Pr=Yt;export{z as batch,et as computed,Dt as debounce,Pr as default,Wr as dispose,J as effect,A as signal,p as sprae,Ct as start,X as store,q as throttle,E as untracked,B as use};