sibujs 4.10.0 → 4.10.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.
Files changed (58) hide show
  1. package/dist/browser.cjs +1 -1
  2. package/dist/browser.js +4 -4
  3. package/dist/build.cjs +1 -1
  4. package/dist/build.js +10 -10
  5. package/dist/cdn.dev.global.js +1 -1
  6. package/dist/cdn.full.dev.global.js +1 -1
  7. package/dist/cdn.full.global.js +1 -1
  8. package/dist/cdn.global.js +1 -1
  9. package/dist/{chunk-VWPMWV7O.js → chunk-2D47RVVK.js} +4 -4
  10. package/dist/{chunk-EVI4ZQO3.js → chunk-2T73SWKF.js} +2 -2
  11. package/dist/{chunk-GTS35FLA.js → chunk-42REZXE4.js} +2 -2
  12. package/dist/{chunk-7WIHYHWD.js → chunk-6DYRY2NF.js} +1 -1
  13. package/dist/{chunk-GMMDHJJT.js → chunk-ADJEMTRC.js} +4 -4
  14. package/dist/{chunk-FYUEL5IW.js → chunk-BNZDDNBR.js} +1 -1
  15. package/dist/{chunk-BMCR7TXG.js → chunk-CID4BYBF.js} +3 -3
  16. package/dist/{chunk-JCKUWWHU.js → chunk-CYUU3XXG.js} +3 -3
  17. package/dist/{chunk-2NWHJ2UJ.js → chunk-CZINTERN.js} +9 -9
  18. package/dist/{chunk-EVOK663Z.js → chunk-DA2LJXK3.js} +1 -1
  19. package/dist/{chunk-XUQUQJYE.js → chunk-DS6PFIZK.js} +1 -1
  20. package/dist/{chunk-ITEL5KPL.js → chunk-GEQNWNYS.js} +5 -5
  21. package/dist/{chunk-GOL3FU5Q.js → chunk-GVVZPMA5.js} +1 -1
  22. package/dist/{chunk-TOPRMXFY.js → chunk-HZQEL575.js} +1 -1
  23. package/dist/{chunk-54F4TPHK.js → chunk-JZMLRF2G.js} +2 -2
  24. package/dist/{chunk-5PC7OTQW.js → chunk-LK3VK47W.js} +1 -1
  25. package/dist/{chunk-IFRIBZ4O.js → chunk-LYM6TT2R.js} +4 -4
  26. package/dist/{chunk-4DCVJ4YA.js → chunk-MJZUXQHR.js} +4 -4
  27. package/dist/{chunk-D6HYFOWR.js → chunk-NROLUUCO.js} +1 -1
  28. package/dist/{chunk-IL5MMSCL.js → chunk-WHZKRSHQ.js} +3 -3
  29. package/dist/{chunk-N6U4GOIU.js → chunk-YNE4FSVX.js} +1 -1
  30. package/dist/data.cjs +1 -1
  31. package/dist/data.js +5 -5
  32. package/dist/devtools.cjs +1 -1
  33. package/dist/devtools.js +4 -4
  34. package/dist/ecosystem.cjs +1 -1
  35. package/dist/ecosystem.js +7 -7
  36. package/dist/extras.cjs +3 -3
  37. package/dist/extras.js +20 -20
  38. package/dist/index.cjs +1 -1
  39. package/dist/index.d.cts +16 -4
  40. package/dist/index.d.ts +16 -4
  41. package/dist/index.js +10 -10
  42. package/dist/motion.cjs +1 -1
  43. package/dist/motion.js +3 -3
  44. package/dist/patterns.cjs +1 -1
  45. package/dist/patterns.js +5 -5
  46. package/dist/performance.cjs +1 -1
  47. package/dist/performance.js +4 -4
  48. package/dist/plugins.cjs +3 -3
  49. package/dist/plugins.js +7 -7
  50. package/dist/ssr.cjs +1 -1
  51. package/dist/ssr.js +7 -7
  52. package/dist/testing.cjs +1 -1
  53. package/dist/testing.js +2 -2
  54. package/dist/ui.cjs +1 -1
  55. package/dist/ui.js +7 -7
  56. package/dist/widgets.cjs +1 -1
  57. package/dist/widgets.js +6 -6
  58. package/package.json +1 -1
@@ -4,7 +4,7 @@
4
4
  `||o==="\f"){n+=1;continue}if(o==="\r"){n+=e[n+2]===`
5
5
  `?2:1;continue}if(Vn(o)){let i="",s=n+1;for(;s<e.length&&i.length<6&&Vn(e[s]);)i+=e[s],s++;s<e.length&&Qo(e[s])&&(s+=e[s]==="\r"&&e[s+1]===`
6
6
  `?2:1);let a=Number.parseInt(i,16),c=a===0||a>1114111||a>=55296&&a<=57343;t+=c?"\uFFFD":String.fromCodePoint(a),n=s-1;continue}t+=o,n+=1}return t}var jn=["url(","expression(","javascript:","vbscript:","-moz-binding","behavior:","@import","image-set(","filter:progid","image(","src("],ti=4,ni=5,ri=8;function oi(e){if(!e)return"an element";let t=e.tagName.toLowerCase(),n=e.getAttribute("id");n&&(t+=`#${n}`);let r=e.getAttribute("class");return r&&(t+=`.${r.trim().split(/\s+/).slice(0,3).join(".")}`),`<${t}>`}var Ht=new Set,Fn=100,zn=!1;function lt(e,t,n){}function Wn(e){return(e.includes("\\")?ei(e):e).toLowerCase().replace(/\s+/g,"")}function Bt(e){if(!Xo.test(e))return-1;let t=Wn(e);for(let n=0;n<jn.length;n++)if(t.includes(jn[n]))return n;return-1}function ft(e,t,n){let r=Vt(e,t);return r===-1?t:(lt(t,r,{property:e,element:n?.element}),"")}function Vt(e,t){let n=Bt(t);if(n!==-1)return n;let r=ne(e);return r==="behavior"?ni:r==="-moz-binding"?ti:(r==="filter"||r==="-ms-filter")&&Wn(t).includes("progid:")?ri:-1}function ii(e){let t=[],n="",r=0,o="";for(let s=0;s<e.length;s++){let a=e[s];if(o){n+=a,a==="\\"&&s+1<e.length?n+=e[++s]:a===o&&(o="");continue}if(a==="\\"){n+=a,s+1<e.length&&(n+=e[++s]);continue}if(a==="/"&&e[s+1]==="*"){let c=e.indexOf("*/",s+2);if(c===-1)return null;s=c+1;continue}if(a==='"'||a==="'")o=a;else if(a==="("||a==="[")r++;else if(a===")"||a==="]"){if(--r<0)return null}else{if(a==="{"||a==="}")return null;if(a===";"&&r===0){t.push(n),n="";continue}}n+=a}if(o||r!==0)return null;t.push(n);let i=[];for(let s of t){let a=s.indexOf(":");if(a===-1)continue;let c=s.slice(0,a).trim();if(!/^(--[\w-]+|-?[a-zA-Z_][\w-]*)$/.test(c))continue;let u=s.slice(a+1).trim(),d=/!\s*important\s*$/i.exec(u);if(d&&(u=u.slice(0,d.index).trim()),u==="")continue;let g=c.startsWith("--")?c:ne(c);i.push([g,u,d!==null])}return i}function si(e,t){let n=String(e),r=ii(n);if(r===null)return Bt(n)!==-1&&lt(n,Bt(n),t),"";let o=[];for(let[i,s,a]of r){let c=Vt(i,s);if(c!==-1){lt(s,c,{property:i,element:t?.element});continue}o.push(`${i}: ${s}${a?" !important":""}`)}return o.join("; ")}function pt(e,t){let n=String(e);if(n.trim()==="")return"";if(typeof document>"u")return si(n,t);let r=document.createElement("div");try{r.style.cssText=n}catch{return""}let o=[];for(let i=0;i<r.style.length;i++){let s=r.style[i],a=r.style.getPropertyValue(s),c=Vt(s,a);if(c!==-1){lt(a,c,{property:s,element:t?.element});continue}let u=r.style.getPropertyPriority(s);o.push(`${s}: ${a}${u?` !${u}`:""}`)}return o.join("; ")}var jt=new Set(["href","xlink:href","src","action","formaction","formtarget","cite","poster","background","srcset","ping","data","manifest"]),ai=new Set(["srcdoc"]);function tt(e){return ai.has(e.toLowerCase())}function qn(e){return jt.has(e.toLowerCase())}function ci(e){let t=e.toLowerCase();return t==="style"||jt.has(t)}function ui(e,t,n){let r=e.toLowerCase();return r==="srcset"?Zo(t):jt.has(r)?dt(t):r==="style"?pt(t,n):t}function Un(e,t,n){if(!ci(e))return t;let r=ui(e,t,n);return r===""?null:r}function Ne(e){return e===" "||e===" "||e===`
7
- `||e==="\r"||e==="\f"}function mt(e){let t=0,n=e.length;for(;t<n&&Ne(e[t]);)t++;for(;n>t&&Ne(e[n-1]);)n--;return e.slice(t,n)}var re=e=>({kind:"forbidden",reason:e});function li(e){let t=mt(Fe(e));if(t==="")return re("");let n=0;for(;n<t.length&&t[n]>="0"&&t[n]<="9";)n++;if(n===0)return re("");let r=Number.parseInt(t.slice(0,n),10);if(!Number.isFinite(r))return re("");for(;n<t.length&&Ne(t[n]);)n++;if(n===t.length)return{kind:"delay-only",delay:r};if(t[n]!==";"&&t[n]!==",")return re("");for(n++;n<t.length&&Ne(t[n]);)n++;let o=n;for(;n<t.length&&!Ne(t[n])&&t[n]!=="=";)n++;let i=t.slice(o,n).toLowerCase();if(i!=="url")return re("");for(;n<t.length&&Ne(t[n]);)n++;if(t[n]!=="=")return re("");for(n++;n<t.length&&Ne(t[n]);)n++;let s,a=t[n];if(a==='"'||a==="'"){let u=t.indexOf(a,n+1);if(u===-1)return re("");if(s=t.slice(n+1,u),mt(t.slice(u+1))!=="")return re("")}else if(s=mt(t.slice(n)),/[;,]/.test(s))return re("");if(s==="")return re("");let c=dt(s);return c===""?re(""):{kind:"allowed",delay:r,destination:s,sanitizedDestination:c}}function Ft(e){let t,n,r,o=new Set;for(let[i,s]of e){let a=ne(i);o.has(a)&&(r=a),o.add(a),a==="http-equiv"?t=s:a==="content"&&(n=s)}return r!==void 0?re(""):typeof t!="string"?{kind:"not-refresh"}:mt(Fe(t)).toLowerCase()!=="refresh"?{kind:"not-refresh"}:typeof n!="string"?{kind:"not-refresh"}:li(n)}var di="http://www.w3.org/1999/xhtml",fi="http://www.w3.org/2000/svg",pi=new Set(["script","iframe","object","embed","frame","frameset"]);function Jn(e){return ne(e)}function Gn(e){return pi.has(Jn(e))}var mi=new Set(["script","style"]);function Yn(e){return mi.has(Jn(e))}var H={None:0,MetaRefreshForbidden:1,MetaRefreshReactive:2,ScriptSource:3,AnimationTarget:4,StylesheetSource:5},gi=new Set(["src","href","xlink:href","type","language"]),bi=new Set(["animate","set","animateMotion","animateTransform","animateColor"]),zt=new WeakSet;function Zn(e){return e.namespaceURI===di||e.namespaceURI===null}function Xn(e,t,n){let r=new Map,o=e.attributes;for(let i=0;i<o.length;i++){let s=o[i];s.name!==t&&r.set(s.name,s.value)}return t!==null&&n!==null&&r.set(t,n),r}function hi(e){zt.has(e)||(zt.add(e),e.getAttribute("content")!==null&&Ft(Xn(e,null,null)).kind!=="not-refresh"&&e.removeAttribute("content"))}function yi(e,t,n,r){if(!Zn(e))return H.None;let o=ne(t);if(o!=="http-equiv"&&o!=="content"||(r==="reactive"&&hi(e),n===null)||o==="content"&&!e.hasAttribute("http-equiv"))return H.None;let i=Ft(Xn(e,o,n));return i.kind==="forbidden"?H.MetaRefreshForbidden:i.kind!=="not-refresh"&&zt.has(e)?H.MetaRefreshReactive:H.None}function vi(e,t){if(t===null||ne(e)!=="attributename")return H.None;let n=Fe(t);return qn(n)||Te(n)||tt(n)?H.AnimationTarget:H.None}var gt=new WeakSet;function Kn(e){if(e===null)return!1;let t=ne(e);if(!t.includes("stylesheet"))return!1;let n=t.split(/[\t\n\f\r ]+/);for(let r=0;r<n.length;r++)if(n[r]==="stylesheet")return!0;return!1}function Si(e,t,n,r){if(!Zn(e))return H.None;let o=ne(t);return o==="href"?r==="static"||n===null?H.None:Kn(e.getAttribute("rel"))?H.StylesheetSource:(gt.add(e),H.None):o==="rel"&&Kn(n)&&gt.has(e)&&e.hasAttribute("href")?H.StylesheetSource:H.None}function Wt(e,t,n,r){let o=e.localName;return o==="meta"?yi(e,t,n,r):o==="link"?Si(e,t,n,r):o==="script"?r==="static"||n===null?H.None:gi.has(ne(t))?H.ScriptSource:H.None:bi.has(o)&&e.namespaceURI===fi?vi(t,n):H.None}function qt(e,t,n){e.localName!=="link"||ne(t)!=="href"||(n!=="static"&&e.hasAttribute("href")?gt.add(e):gt.delete(e))}var xi="http://www.w3.org/1999/xhtml",wi="http://www.w3.org/2000/svg",Ti="http://www.w3.org/1999/xlink",Ei="http://www.w3.org/XML/1998/namespace",ki=new Set(["checked","disabled","selected"]);function Ci(e){return e.namespaceURI===null||e.namespaceURI===xi}function er(e,t,n){}function Qn(e,t,n){e[t]=n}function _i(e,t){if(e.namespaceURI!==wi)return null;let n=t.toLowerCase();return n.startsWith("xlink:")?Ti:n.startsWith("xml:")?Ei:null}function ae(e,t,n,r={}){let o=Ai(e,t,n,r);return e.localName==="link"&&qt(e,t,r.reactive?"reactive":"runtime"),o}function Ai(e,t,n,r){let o=_i(e,t),i=o?t.slice(t.indexOf(":")+1):t;if(Te(t))return!1,o?e.removeAttributeNS(o,i):e.removeAttribute(t),!1;let s=n==null||n===!1?null:n===!0?"":String(n),a=Wt(e,t,s,r.reactive?"reactive":"runtime");if(a!==H.None)return er(r.label??"setSafeAttribute",t,a),o?e.removeAttributeNS(o,i):e.removeAttribute(t),!1;if(n==null)return o?e.removeAttributeNS(o,i):e.removeAttribute(t),!0;if(tt(t))return!1,o?e.removeAttributeNS(o,i):e.removeAttribute(t),!1;let c=Ci(e),u=c?t.toLowerCase():t;if(typeof n=="boolean"){if(t.length>5&&t.slice(0,5).toLowerCase()==="aria-"){let m=n?"true":"false";return(o?e.getAttributeNS(o,i):e.getAttribute(t))!==m&&(o?e.setAttributeNS(o,t,m):e.setAttribute(t,m)),!0}return c&&ki.has(u)&&u in e?Qn(e,u,n):n?o?e.setAttributeNS(o,t,""):e.setAttribute(t,""):o?e.removeAttributeNS(o,i):e.removeAttribute(t),!0}let d=String(n);if(r.syncValueProperty!==!1&&c&&(u==="value"||u==="checked")&&u in e)return Qn(e,u,u==="checked"?!!n:d),!0;let g=d===""?"":Un(t,d,{element:e});return g===null?(o?e.removeAttributeNS(o,i):e.removeAttribute(t),!0):((o?e.getAttributeNS(o,i):e.getAttribute(t))===g||(o?e.setAttributeNS(o,t,g):e.setAttribute(t,g)),!0)}function Ut(e,t,n){if(tt(t))return!1,!1;let r=Wt(e,t,n,"static");return r!==H.None?(er("html (static attribute)",t,r),!1):(e.setAttribute(t,n),e.localName==="link"&&qt(e,t,"static"),!0)}var Ni=4096,Kt=[];function Ri(){return{sig:null,sub:null,epoch:0,depVersion:0,sigPrev:null,sigNext:null,subPrev:null,subNext:null,prevActive:null}}function Li(e,t,n){let r=Kt.pop();if(r)return r.sig=e,r.sub=t,r.epoch=n,r;let o=Ri();return o.sig=e,o.sub=t,o.epoch=n,o}function tr(e){e.sig=null,e.sub=null,e.sigPrev=null,e.sigNext=null,e.subPrev=null,e.subNext=null,e.prevActive=null,Kt.length<Ni&&Kt.push(e)}function Mi(e,t){let n=e.subsHead??null;t.sigPrev=null,t.sigNext=n,n?n.sigPrev=t:e.subsTail=t,e.subsHead=t,e.__sc=(e.__sc??0)+1}function nr(e){let t=e.sig;if(!t)return;let n=e.sigPrev,r=e.sigNext;n?n.sigNext=r:t.subsHead=r,r?r.sigPrev=n:t.subsTail=n,t.__sc=(t.__sc??1)-1,t.__activeNode===e&&(t.__activeNode=e.prevActive),t.__sc===0&&(t.subsHead=null,t.subsTail=null)}function Oi(e,t){let n=e.depsTail??null;t.subPrev=n,t.subNext=null,n?n.subNext=t:e.depsHead=t,e.depsTail=t}function Pi(e){let t=e.sub;if(!t)return;let n=e.subPrev,r=e.subNext;n?n.subNext=r:t.depsHead=r,r?r.subPrev=n:t.depsTail=n}var ue=null,he=null,Ee=0,ke=[],ce=new Set,Di=[];function $i(e){try{e()}catch(t){let n=e;R(t,{phase:n._errorPhase??"effect",name:n.__name,node:n._errorNode})}}function Ii(e){let t=e.depsHead??null;if(t===null)return!0;for(;t!==null;){let n=t.sig;if(n===null)return!0;if(n._d===!0&&n._validate!==void 0)try{n._validate()}catch{return!0}if(t.depVersion!==n.__v)return!0;t=t.subNext}return!1}var ge=0,ye=!1;function Gt(){ge===0&&(he=ue,ue=null,ye=!0),ge++}function Yt(){ge--,ge===0&&(ue=he,he=null,ye=!1)}function rr(){return ye}function or(e){Gt();try{return e()}finally{Yt()}}var oe=null;function Zt(){return oe}function vt(e,t){let n=oe;oe=e;try{return t()}finally{oe=n}}function Xt(e){let t=oe;return t===null?e:(...n)=>vt(t,()=>e(...n))}var Hi=0;function Qt(e,t){let n=ue,r=0,o=null;ye&&(r=ge,o=he,ge=0,he=null,ye=!1),ue=t;let i=t;i._cap===void 0&&(i._cap=Dn());let s=oe;s!==null&&!i._epoch&&i._scope===void 0&&(i._scope=s);let a=i._scope===void 0?null:i._scope;a!==s&&(oe=a);let c=++Hi;i._epoch=c,i._structDirty=!1;for(let u=i.depsHead??null;u!==null;u=u.subNext){let d=u.sig;u.prevActive=d.__activeNode??null,d.__activeNode=u}try{e()}finally{ue=n,oe=s,r!==0&&(ge=r,he=o,ye=!0);let u=i.depsHead??null;for(;u!==null;){let d=u.subNext,g=u.sig;g.__activeNode=u.prevActive,u.prevActive=null,u.epoch!==c&&(Pi(u),nr(u),tr(u)),u=d}}}function ir(e,t){if(!t)return en(e);ze(t);let n=ue,r=0,o=null;ye&&(r=ge,o=he,ge=0,he=null,ye=!1),ue=t;let i=t;i._scope===void 0&&(i._scope=oe);let s=oe;oe=i._scope;try{e()}finally{ue=n,oe=s,r!==0&&(ge=r,he=o,ye=!0);for(let a=i.depsHead??null;a!==null;a=a.subNext){let c=a.sig;c.__activeNode=a.prevActive,a.prevActive=null}}return i._dispose??(i._dispose=()=>ze(t))}function en(e,t){let n=()=>{let o=r;if(!(o._disposed||o._reentrant)){o._reentrant=!0;try{Qt(e,r)}finally{o._reentrant=!1}}},r=n;r.depsHead=null,r.depsTail=null,r._epoch=0,r._structDirty=!1,r._hasComputedDep=!1,r._runEpoch=0,r._runs=0,r._reentrant=!1,r._disposed=!1,r._errorPhase="binding",r._errorNode=t;try{n()}catch(o){throw r._disposed=!0,r._errorNode=void 0,ze(r),o}return r._dispose??(r._dispose=()=>{r._disposed=!0,r._errorNode=void 0,ze(r)})}function sr(e){if(!ue)return;let t=ue,n=e,r=t._epoch??0,o=n.__activeNode??null;if(o!==null&&o.sub===t){o.epoch=r,o.depVersion=n.__v??Number.NaN;return}n._validate!==void 0&&(t._hasComputedDep=!0);let i=Li(e,t,r);i.depVersion=n.__v??Number.NaN,i.prevActive=o,n.__activeNode=i,Oi(t,i),Mi(n,i),t._structDirty=!0}function ze(e){let t=e,n=t.depsHead??null;for(t.depsHead=null,t.depsTail=null;n;){let r=n.subNext;nr(n),tr(n),n=r}}var bt=1e3,ht=1e6,yt=0,Re=new Set;function ar(e){let t=bt;return Number.isFinite(e)&&e>0&&(bt=Math.floor(e)),t}function cr(e){let t=ht;return Number.isFinite(e)&&e>0&&(ht=Math.floor(e)),t}function Bi(e){let t=e;return t._runEpoch!==yt?(t._runEpoch=yt,t._runs=1,!1):(t._runs=(t._runs??0)+1,t._runs>bt)}function Vi(e){let t=e.__name??"<unnamed>";R(new Error(`subscriber "${t}" fired more than ${bt} times \u2014 likely a write-reads-self cycle between effects/signals. This subscriber is quarantined for the rest of this update; other pending work still runs.`),{phase:"scheduler",name:t})}function ji(){R(new Error(`Notification drain exceeded ${ht} iterations \u2014 absolute safety net tripped. Breaking to prevent infinite loop.`),{phase:"scheduler"})}function ur(){let e=0;for(;e<ke.length;){if(e>=ht){ji();break}let t=ke[e++];if(ce.delete(t),Re.size>0&&Re.has(t)||t._hasComputedDep===!0&&!Ii(t))continue;if(Bi(t)){Vi(t),Re.add(t);continue}let n=$n(t._cap??null);try{$i(t)}finally{n&&In()}}}function lr(){if(!(Ee>0)){Ee++,yt++;try{ur()}finally{Ee--,Ee===0&&(ke.length=0,ce.clear(),Re.size>0&&Re.clear())}}}function Jt(e){e();let t=e._sig;if(!t)return;let n=Di,r=n.length;for(n.push(t);n.length>r;){let i=n.pop().subsHead??null;for(;i;){let s=i.sub;if(s)if(s._c){let a=s._sig;a?(!a._d||a._f===!0)&&(a._d=!0,a._f=!1,n.push(a)):s()}else ce.has(s)||(ce.add(s),ke.push(s));i=i.sigNext}}}function dr(e){let n=e.subsHead??null;for(;n;){let r=n.sub;r&&(r._c?Jt(r):ce.has(r)||(ce.add(r),ke.push(r))),n=n.sigNext}}function fr(e){let n=e.subsHead;if(n){if(Ee>0){let r=n;for(;r;){let o=r.sub;o&&(o._c?Jt(o):ce.has(o)||(ce.add(o),ke.push(o))),r=r.sigNext}return}Ee++,yt++;try{let r=n;for(;r;){let o=r.sub;o&&(o._c?Jt(o):ce.has(o)||(ce.add(o),ke.push(o))),r=r.sigNext}ur()}finally{Ee--,Ee===0&&(ke.length=0,ce.clear(),Re.size>0&&Re.clear())}}}function pr(e){return e.__sc??0}function mr(e){let t=e,n=[],r=t.depsHead??null;for(;r;)r.sig&&n.push(r.sig),r=r.subNext;return n}function gr(e,t){let n=e.subsHead??null;for(;n;){let r=n.sub;r&&t(r),n=n.sigNext}}var br="4.10.0",hr=Symbol.for("sibujs.reactive.v1");function zi(){let e=globalThis,t=e[hr];if(t)return!1,t;let n={suspendTracking:Gt,resumeTracking:Yt,isTrackingSuspended:rr,untracked:or,retrack:Qt,track:ir,reactiveBinding:en,recordDependency:sr,cleanup:ze,setMaxSubscriberRepeats:ar,setMaxDrainIterations:cr,drainNotificationQueue:lr,queueSignalNotification:dr,notifySubscribers:fr,getSubscriberCount:pr,getSubscriberDeps:mr,forEachSubscriber:gr,getOwnerScope:Zt,runWithOwnerScope:vt,bindOwnerScope:Xt,version:br};return e[hr]=n,n}var j=zi(),Le=j.suspendTracking,Me=j.resumeTracking,yr=j.isTrackingSuspended,le=j.untracked,Ce=j.retrack,ie=j.track,J=j.reactiveBinding,Oe=j.recordDependency,Pe=j.cleanup,El=j.setMaxSubscriberRepeats,vr=j.setMaxDrainIterations,Sr=j.drainNotificationQueue,xr=j.queueSignalNotification,We=j.notifySubscribers,kl=j.getSubscriberCount,Cl=j.getSubscriberDeps,_l=j.forEachSubscriber,qe=j.getOwnerScope??Zt,St=j.runWithOwnerScope??vt,Y=j.bindOwnerScope??Xt;function nt(e,t,n){if(Te(t))return ae(e,t,"",{label:`bindAttribute("${t}")`}),()=>{};function r(){let o;try{o=n()}catch(i){R(i,{phase:"binding",name:`bindAttribute("${t}")`,node:e});return}ae(e,t,o,{label:`bindAttribute("${t}")`,reactive:!0})}return J(r,e)}function wr(e,t,n){let r=null;function o(){let s;try{s=typeof t=="function"?t():t}catch(c){R(c,{phase:"binding",name:"bindDynamic (name getter)",node:e});return}let a;try{a=typeof n=="function"?n():n}catch(c){R(c,{phase:"binding",name:"bindDynamic (value getter)",node:e});return}r!==null&&r!==s&&(e.removeAttribute(r),r=null),ae(e,s,a,{label:"bindDynamic",reactive:!0})&&(r=s)}let i=J(o,e);return()=>{i(),r!==null&&e.removeAttribute(r)}}var tn=["data-focus-key","id","name"],Wi=new Set(["text","search","url","tel","password",""]);function qi(e){let t=e.tagName;if(!(t==="TEXTAREA"||t==="INPUT"&&Wi.has(e.type.toLowerCase())))return{start:null,end:null,direction:null};let r=e;return{start:r.selectionStart,end:r.selectionEnd,direction:r.selectionDirection}}function rt(e){if(e.length===0||typeof document>"u")return null;let t=document.activeElement;if(!t||t===document.body)return null;let n=!1;for(let i=0;i<e.length;i++){let s=e[i];if(s===t||s.nodeType===1&&s.contains(t)){n=!0;break}}if(!n)return null;let r=null,o=null;for(let i=0;i<tn.length;i++){let s=t.getAttribute(tn[i]);if(s){r=tn[i],o=s;break}}return{el:t,attr:r,value:o,tag:t.tagName,...qi(t)}}function Ui(e){return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ki(e,t){let n=null,r=0;for(let o=0;o<e.length;o++){let i=e[o];if(i.nodeType!==1)continue;let s=i;s.matches(t)&&(r++,n??(n=s));let a=s.querySelectorAll(t);for(let c=0;c<a.length;c++)r++,n??(n=a[c]);if(r>1)return{el:null,count:r}}return r===1?{el:n,count:r}:{el:null,count:r}}function Tr(e,t){if(e.focus(),t.start!==null&&typeof e.setSelectionRange=="function"){let n=e,r=n.value.length,o=Math.min(t.start,r),i=Math.min(t.end??o,r);n.setSelectionRange(o,i,t.direction??"none")}}function Ue(e,t,n){if(!e||typeof document>"u")return;let r=document.activeElement;if(r===e.el||r&&r!==document.body&&r!==document.documentElement)return;if(e.el.isConnected){Tr(e.el,e);return}let o=!1;if(e.attr&&e.value){let{el:i,count:s}=Ki(t,`[${e.attr}=${Ui(e.value)}]`);if(i&&i.tagName===e.tag){Tr(i,e);return}o=s>1}}function ve(e,t){let n=[];function r(){let o;try{o=t()}catch(d){R(d,{phase:"binding",name:"bindChildNode",node:e});return}let i=rt(n);if(o==null||typeof o=="boolean"){for(let d=0;d<n.length;d++){let g=n[d];V(g),g.parentNode&&g.parentNode.removeChild(g)}n.length=0,Ue(i,n,"bindChildNode");return}let s=e.parentNode;if(!s){n.length=0;return}let a;if(Array.isArray(o)){a=[];let d=new Set;for(let g=0;g<o.length;g++){let h=o[g];if(h==null||typeof h=="boolean")continue;let m=h instanceof Node?h:document.createTextNode(String(h));if(d.has(m)){!1;continue}d.add(m),a.push(m)}}else a=[o instanceof Node?o:document.createTextNode(String(o))];let c;if(n.length>0&&a.length>0){let d=new Set(n);c=new Set;for(let g=0;g<a.length;g++)d.has(a[g])&&c.add(a[g])}for(let d=0;d<n.length;d++){let g=n[d];c?.has(g)||(V(g),g.parentNode&&g.parentNode.removeChild(g))}let u=e;for(let d=0;d<a.length;d++){let g=a[d];u.nextSibling!==g&&s.insertBefore(g,u.nextSibling),u=g}n=a,Ue(i,a,"bindChildNode")}return J(r,e)}var I="http://www.w3.org/2000/svg",Ji=new Set(["config","location","history","document","window","navigator","name","top","parent","self","frames"]);var nn=new Set,Er=100,kr=!1,Cr=new Map;function _r(e){let t=Cr.get(e);return t!==void 0||(t=e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`),Cr.set(e,t)),t}function Gi(e,t){if(typeof t=="function"){let r=t,o=[],i=!1,s=J(()=>{let a=r();if(a===null||typeof a!="object"){o=[],i=!0,e.setAttribute("style",pt(String(a),{element:e}));return}let c=e.style;i&&(e.removeAttribute("style"),i=!1);let u=[];for(let d in a){if(!Object.hasOwn(a,d))continue;let g=a[d];if(g==null)continue;let h=_r(d);u.push(h),c.setProperty(h,ft(h,String(g),{element:e}))}for(let d=0;d<o.length;d++)u.indexOf(o[d])===-1&&c.removeProperty(o[d]);o=u},e);_(e,s);return}if(typeof t=="string"){e.setAttribute("style",pt(t,{element:e}));return}let n=e;for(let r in t){if(!Object.hasOwn(t,r))continue;let o=t[r],i=_r(r);if(typeof o=="function"){let s=o,a=J(()=>{n.style.setProperty(i,ft(i,String(s()),{element:e}))},e);_(e,a)}else n.style.setProperty(i,ft(i,String(o),{element:e}))}}function Yi(e,t){if(typeof t=="string"){e.setAttribute("class",t);return}if(typeof t=="function"){let i=J(()=>{let s=t();s==null||s===!1?e.removeAttribute("class"):e.setAttribute("class",s)},e);_(e,i);return}let n=t,r=!1,o="";for(let i in n){if(!Object.hasOwn(n,i))continue;let s=n[i];if(typeof s=="function"){r=!0;break}s&&(o=o?`${o} ${i}`:i)}if(r){let s=J(()=>{let a="";for(let c in n){if(!Object.hasOwn(n,c))continue;let u=n[c];(typeof u=="function"?u():u)&&(a=a?`${a} ${c}`:c)}e.setAttribute("class",a)},e);_(e,s)}else e.setAttribute("class",o)}function rn(e,t){if(typeof t=="string"){e.textContent=t;return}if(typeof t=="number"){e.textContent=String(t);return}if(!(typeof t=="boolean"||t==null)){if(typeof t=="function"){let n=document.createComment("");e.appendChild(n),_(e,ve(n,t));return}if(t instanceof Node){e.appendChild(t);return}if(Array.isArray(t))for(let n=0;n<t.length;n++){let r=t[n];if(typeof r=="function"){let o=document.createComment("");e.appendChild(o),_(e,ve(o,r))}else if(r instanceof Node)e.appendChild(r);else if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];if(typeof i=="function"){let s=document.createComment("");e.appendChild(s),_(e,ve(s,i))}else i instanceof Node?e.appendChild(i):i!=null&&typeof i!="boolean"&&e.appendChild(document.createTextNode(String(i)))}else r!=null&&typeof r!="boolean"&&e.appendChild(document.createTextNode(String(r)))}}}function p(e,t){let n=Gn(e);return(r,o)=>{if(n)throw new Error(`tagFactory: refusing to create <${e}> \u2014 tag is blocked for security reasons.`);let i=t?document.createElementNS(t,e):document.createElement(e);if(r===void 0)return i;if(typeof r=="string")return o!==void 0?(i.setAttribute("class",r),rn(i,o),i):(i.textContent=r,i);if(typeof r=="number")return i.textContent=String(r),i;if(Array.isArray(r)||r instanceof Node||typeof r=="function")return rn(i,r),i;let s=r,a=s.class;a!=null&&Yi(i,a);let c=s.id;typeof c=="function"?_(i,nt(i,"id",c)):c!=null&&(!1,i.id=c);let u=o!==void 0?o:s.nodes;u!=null&&rn(i,u);let d=s.on;if(d)for(let m in d){if(!Object.hasOwn(d,m))continue;let l=d[m];typeof l=="function"?i.addEventListener(m,l):!1}let g=s.style;g!=null&&Gi(i,g);let h=s.ref;h&&(h.current=i);for(let m in s)switch(m){case"class":case"id":case"nodes":case"on":case"style":case"ref":case"onElement":continue;default:{if(!Object.hasOwn(s,m))continue;let l=s[m];if(l==null||Te(m))continue;typeof l=="function"?_(i,nt(i,m,l)):ae(i,m,l,{syncValueProperty:!1,label:"tagFactory"})}}return typeof s.onElement=="function"&&s.onElement(i),i}}var Gl=p("html"),Zi=p("head"),Xi=p("body"),Qi=p("title"),O=p("div"),F=p("span"),es=p("section"),ts=p("article"),ns=p("header"),rs=p("footer"),os=p("nav"),is=p("main"),ss=p("aside"),as=p("address"),on=p("p"),cs=p("h1"),us=p("h2"),sn=p("h3"),ls=p("h4"),ds=p("h5"),fs=p("h6"),ps=p("blockquote"),ms=p("dd"),gs=p("dl"),bs=p("dt"),hs=p("figcaption"),ys=p("figure"),vs=p("hr"),Ss=p("li"),xs=p("ol"),ws=p("ul"),an=p("pre"),Ts=p("a"),Es=p("abbr"),ks=p("b"),Cs=p("bdi"),_s=p("bdo"),As=p("br"),Ns=p("cite"),cn=p("code"),Rs=p("data"),Ls=p("dfn"),Ms=p("em"),Os=p("i"),Ps=p("kbd"),Ds=p("mark"),$s=p("q"),Is=p("rp"),Hs=p("rt"),Bs=p("ruby"),Vs=p("s"),js=p("samp"),Fs=p("small"),zs=p("strong"),Ws=p("sub"),qs=p("sup"),Us=p("time"),Ks=p("u"),Js=p("var"),Gs=p("area"),Ys=p("audio"),Zs=p("img"),Xs=p("map"),Qs=p("track"),ea=p("video"),ta=p("embed"),na=p("iframe"),ra=p("object"),oa=p("param"),ia=p("picture"),sa=p("portal"),aa=p("source"),ca=p("svg",I),ua=p("math"),la=p("canvas"),da=p("noscript"),fa=p("script"),pa=p("del"),ma=p("ins"),ga=p("caption"),ba=p("col"),ha=p("colgroup"),ya=p("table"),va=p("tbody"),Sa=p("td"),xa=p("tfoot"),wa=p("th"),Ta=p("thead"),Ea=p("tr"),ot=p("button"),ka=p("datalist"),Ca=p("fieldset"),_a=p("form"),Aa=p("input"),Na=p("label"),Ra=p("legend"),La=p("meter"),Ma=p("optgroup"),Oa=p("option"),Pa=p("output"),Da=p("progress"),$a=p("select"),Ia=p("textarea"),Ha=p("details"),Ba=p("dialog"),Va=p("menu"),ja=p("summary"),Fa=p("slot"),za=p("template"),Wa=p("base"),qa=p("link"),Ua=p("meta"),De=p("style"),Ka=p("circle",I),Ja=p("ellipse",I),Ga=p("g",I),Ya=p("line",I),Za=p("path",I),Xa=p("polygon",I),Qa=p("polyline",I),ec=p("rect",I),tc=p("text",I),nc=p("tspan",I),rc=p("defs",I),oc=p("clipPath",I),ic=p("mask",I),sc=p("pattern",I),ac=p("linearGradient",I),cc=p("radialGradient",I),uc=p("stop",I),lc=p("use",I),dc=p("symbol",I),fc=p("marker",I),pc=p("center"),mc=p("font"),gc=p("marquee"),bc=e=>p(e);var un="__sibuPendingError";function Ar(e,t){let n=()=>e.parentNode?(R(t,{phase:"render",name:"lazy",node:e}),!0):!1;n()||queueMicrotask(()=>{n()||(e[un]=t)})}function xt(e){let t=e,n=t[un];if(n instanceof Error)return delete t[un],n}function Nr(e){let t=null;return function(){if(t)return t();let r=O({class:"sibu-lazy"}),o=!1;return e().then(Y(i=>{if(o)return;t=i.default;let s=t();Q(r,s)})).catch(i=>{if(o)return;let s=i instanceof Error?i:new Error(String(i));Q(r,O({class:"sibu-lazy-error"},`Failed to load component: ${s.message}`)),Ar(r,s)}),r.appendChild(F("sibu-lazy-loading","Loading...")),_(r,()=>{o=!0}),r}}function Rr({nodes:e,fallback:t}){let n=O({class:"sibu-suspense"}),r=t();n.appendChild(r);let o=!1,i=null,s=null;_(n,()=>{o=!0,i&&(i.disconnect(),i=null),s&&!n.contains(s)&&V(s)});let a=Y(()=>{if(!o)try{let c=e();if(s=c,c.classList.contains("sibu-lazy")){if(!c.querySelector(".sibu-lazy-loading")){Q(n,c);return}i=new MutationObserver(()=>{if(o)return;c.querySelector(".sibu-lazy-loading")||(i?.disconnect(),i=null,Q(n,c))}),i.observe(c,{childList:!0,subtree:!0})}else Q(n,c)}catch(c){let u=c instanceof Error?c:new Error(String(c));Ar(n,u)}});return queueMicrotask(a),n}function pn(e,t){return()=>qe()===e?t():St(e,t)}function Tt(e,t){try{return e()}catch(n){let r=t.toLowerCase().includes("unmount")?"cleanup":"effect";R(n,{phase:r,name:t});return}}function ln(e,t,n,r,o){let i=Tt(e,t);if(typeof i!="function")return;let s=pn(o,i);r()||!n.isConnected?Tt(s,"onUnmount"):Mr(s,n)}var Ke=new WeakMap,$e=new WeakMap,Se=new Set,xe=new Set,Je=null,wt=0,hc=256;function dn(e){let t=Ke.get(e);if(t){Ke.delete(e),Se.delete(e);for(let n of t)try{n()}catch{}}}function fn(e){$e.get(e)&&queueMicrotask(()=>{if(e.isConnected)return;let n=$e.get(e);if(n){$e.delete(e),xe.delete(e);for(let r of n)try{r()}catch{}}})}function yc(e){if(Se.size===0||e.nodeType!==1)return;let t=e;if(Se.has(t)&&t.isConnected&&dn(t),t.firstElementChild)for(let n of Array.from(Se))n!==t&&n.isConnected&&t.contains(n)&&dn(n)}function vc(e){if(xe.size===0||e.nodeType!==1)return;let t=e;if(xe.has(t)&&!t.isConnected&&fn(t),t.firstElementChild)for(let n of Array.from(xe))n!==t&&!n.isConnected&&t.contains(n)&&fn(n)}function Sc(){if(Se.size>0)for(let e of Array.from(Se))e.isConnected&&dn(e);if(xe.size>0)for(let e of Array.from(xe))e.isConnected||fn(e)}function Lr(){Je||typeof document>"u"||(Je=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"){if(t.addedNodes.length>0)for(let n=0;n<t.addedNodes.length;n++)yc(t.addedNodes[n]);if(t.removedNodes.length>0)for(let n=0;n<t.removedNodes.length;n++)vc(t.removedNodes[n])}wt+=e.length,wt>=hc&&(wt=0,Sc()),mn()}),Je.observe(document.body,{childList:!0,subtree:!0}))}function mn(){Je&&Se.size===0&&xe.size===0&&(Je.disconnect(),Je=null,wt=0)}function xc(e,t){let n=Ke.get(e);return n||(n=[],Ke.set(e,n)),n.push(t),Se.add(e),Lr(),()=>{let r=Ke.get(e);if(r){let o=r.indexOf(t);o!==-1&&r.splice(o,1),r.length===0&&(Ke.delete(e),Se.delete(e))}mn()}}function wc(e,t){let n=$e.get(e);return n||(n=[],$e.set(e,n)),n.push(t),xe.add(e),Lr(),()=>{let r=$e.get(e);if(r){let o=r.indexOf(t);o!==-1&&r.splice(o,1),r.length===0&&($e.delete(e),xe.delete(e))}mn()}}function Et(e,t){if(typeof document>"u")return;let n=qe();if(e=pn(n,e),t){let r=!1,o=()=>r;if(_(t,()=>{r=!0}),t.isConnected){queueMicrotask(()=>{r||ln(e,"onMount",t,o,n)});return}queueMicrotask(()=>{if(r)return;if(t.isConnected){ln(e,"onMount",t,o,n);return}let i=xc(t,()=>{r||ln(e,"onMount",t,o,n)});_(t,i)})}else queueMicrotask(()=>{Tt(e,"onMount")})}function Tc(e,t){typeof document>"u"||Mr(pn(qe(),e),t)}function Mr(e,t){let n=!1,r=()=>{n||(n=!0,Tt(e,"onUnmount"))};_(t,r);let o=()=>{if(n)return;let i=wc(t,r);_(t,i)};t.isConnected?o():Et(()=>{o()},t)}function Ec(e,t){_(t,e)}function se(e,t,n){try{e.emit(t,n)}catch{}}var gn=Symbol.for("sibujs.ssr.v1");function kc(){let e=null;try{if(typeof process<"u"&&process.versions&&process.versions.node){let t=null,n=process.getBuiltinModule;typeof n=="function"?t=n("node:async_hooks"):typeof Pt=="function"&&(t=Pt("async_hooks")),t&&(e=new t.AsyncLocalStorage)}}catch{e=null}return{als:e,fallbackStore:{ssr:!1,suspenseIdCounter:0,locale:void 0},fallbackDepth:0}}var _e=globalThis[gn]??(globalThis[gn]=kc()),Ie=_e.als,Z=_e.fallbackStore;_e.fallbackDepth??(_e.fallbackDepth=0);var Or=!1;function Cc(){if(Or||Ie||!(typeof process<"u"&&!!process.versions?.node))return;Or=!0;let t=process.versions.node;`${t}`}function He(){if(Ie){let e=Ie.getStore();if(e)return e}return Z}function Pr(){return Ie?Ie.getStore()??null:_e.fallbackDepth>0?Z:null}function de(){return He().ssr}function Dr(e){if(!de())return null;let t=He(),n=t.caches??(t.caches=new Map),r=n.get(e);return r||(r=new Map,n.set(e,r)),r}function $r(){He().ssr=!0}function Ir(){He().ssr=!1}function Hr(e){let t={ssr:!0,suspenseIdCounter:0,idCounter:0,locale:void 0};if(Ie)return Ie.run(t,e);Cc();let n=Z.ssr,r=Z.suspenseIdCounter,o=Z.idCounter,i=Z.locale;Z.ssr=!0,Z.suspenseIdCounter=0,Z.idCounter=0,Z.locale=void 0,_e.fallbackDepth++;try{return e()}finally{_e.fallbackDepth--,Z.ssr=n,Z.suspenseIdCounter=r,Z.idCounter=o,Z.locale=i}}function Br(e){let t=He(),n=t.ssr;t.ssr=!0;try{return e()}finally{n||(t.ssr=!1)}}var zr=globalThis;function _c(e,t){let n,r=!0;return()=>{let o=e();if(r)r=!1,n=o,le(()=>t(o,void 0));else{let i=n;n=o,le(()=>t(o,i))}}}var Vr=100;function kt(e){let t=e.userCleanups;if(t.length===0)return;e.userCleanups=[];let n=e.subscriber._scope??null;n===qe()?jr(t):St(n,()=>jr(t))}function jr(e){for(let t=e.length-1;t>=0;t--)try{e[t]()}catch(n){R(n,{phase:"cleanup"})}}function Fr(e){let t=1;do e.rerunPending=!1,e.userCleanups.length>0&&kt(e),Ce(e.bodyFn,e.subscriber);while(e.rerunPending&&++t<=Vr);e.rerunPending&&(e.rerunPending=!1,R(new Error(`effect re-requested itself ${Vr}+ times \u2014 likely a write-reads-self cycle. Breaking to prevent infinite loop.`),{phase:"effect"}))}function Ac(e){if(e.disposed)return;e.disposed=!0;let t=zr.__SIBU_DEVTOOLS_GLOBAL_HOOK__;if(t)try{t.emit("effect:destroy",{effectFn:e.fn})}catch{}try{e.userCleanups.length>0&&kt(e)}catch(n){typeof console<"u"&&console.warn("[SibuJS effect] onCleanup threw during dispose:",n)}try{Pe(e.subscriber)}catch(n){typeof console<"u"&&console.warn("[SibuJS effect] dispose threw:",n)}}function X(e,t){if(de())return()=>{};let n={fn:e,onError:t?.onError,userCleanups:[],running:!1,rerunPending:!1,disposed:!1,onCleanup:null,subscriber:null,bodyFn:null};n.onCleanup=s=>{n.userCleanups.push(s)};let r=n.onError;n.bodyFn=r?()=>{try{n.fn(n.onCleanup)}catch(s){r(s)}}:()=>{n.fn(n.onCleanup)};let o=(()=>{if(!n.disposed){if(n.running){n.rerunPending=!0;return}n.running=!0;try{n.rerunPending=!1,n.userCleanups.length>0&&kt(n),Ce(n.bodyFn,o),n.rerunPending&&Fr(n)}finally{n.running=!1,n.rerunPending=!1}}});o.depsHead=null,o.depsTail=null,o._epoch=0,o._structDirty=!1,o._hasComputedDep=!1,o._errorPhase="effect",o._runEpoch=0,o._runs=0,n.subscriber=o,n.running=!0;try{Ce(n.bodyFn,n.subscriber),n.rerunPending&&Fr(n)}catch(s){throw n.disposed=!0,n.userCleanups.length>0&&kt(n),Pe(n.subscriber),s}finally{n.running=!1,n.rerunPending=!1}let i=zr.__SIBU_DEVTOOLS_GLOBAL_HOOK__;return i&&se(i,"effect:create",{effectFn:e}),()=>Ac(n)}var it=0,bn=new Set;function Nc(e){it++;try{return e()}finally{it--,it===0&&Mc()}}function Rc(e){return it===0?!1:(bn.add(e),!0)}function Lc(){return it>0}function Mc(){try{for(let e of bn)xr(e)}finally{bn.clear()}Sr()}var Wr=Symbol.for("sibujs.reactive.batch.v1");function Oc(){let e=globalThis,t=e[Wr];if(t)return t;let n={batch:Nc,enqueueBatchedSignal:Rc,isBatching:Lc};return e[Wr]=n,n}var hn=Oc(),z=hn.batch,Be=hn.enqueueBatchedSignal,Pc=hn.isBatching;var yn=globalThis;function A(e,t){let n={value:e,__v:0,__sc:0,subsHead:null,subsTail:null,__activeNode:null,__name:void 0,_d:!1,_validate:void 0},r=void 0,o=t?.equals;r&&(n.__name=r);function i(){return Oe(n),n.value}i.__signal=n,r&&(i.__name=r);let s;if(o?s=a=>{let c=n.value,u=typeof a=="function"?a(c):a;if(!o(c,u)){if(n.value=u,n.__v++,!1){let d=yn.__SIBU_DEVTOOLS_GLOBAL_HOOK__;d&&se(d,"signal:update",{signal:n,name:r,oldValue:c,newValue:u})}Be(n)||We(n)}}:s=a=>{let c=n.value,u=typeof a=="function"?a(c):a;Object.is(u,c)||(n.value=u,n.__v++,Be(n)||We(n))},!1){let a=yn.__SIBU_DEVTOOLS_GLOBAL_HOOK__;a&&se(a,"signal:create",{signal:n,name:r,getter:i,initial:e})}return[i,s]}function Dc(e){let[t,n]=A(0,e?.name?{name:e.name}:void 0);return{track(){t()},invalidate(){n(r=>r+1)}}}var $c=`
7
+ `||e==="\r"||e==="\f"}function mt(e){let t=0,n=e.length;for(;t<n&&Ne(e[t]);)t++;for(;n>t&&Ne(e[n-1]);)n--;return e.slice(t,n)}var re=e=>({kind:"forbidden",reason:e});function li(e){let t=mt(Fe(e));if(t==="")return re("");let n=0;for(;n<t.length&&t[n]>="0"&&t[n]<="9";)n++;if(n===0)return re("");let r=Number.parseInt(t.slice(0,n),10);if(!Number.isFinite(r))return re("");for(;n<t.length&&Ne(t[n]);)n++;if(n===t.length)return{kind:"delay-only",delay:r};if(t[n]!==";"&&t[n]!==",")return re("");for(n++;n<t.length&&Ne(t[n]);)n++;let o=n;for(;n<t.length&&!Ne(t[n])&&t[n]!=="=";)n++;let i=t.slice(o,n).toLowerCase();if(i!=="url")return re("");for(;n<t.length&&Ne(t[n]);)n++;if(t[n]!=="=")return re("");for(n++;n<t.length&&Ne(t[n]);)n++;let s,a=t[n];if(a==='"'||a==="'"){let u=t.indexOf(a,n+1);if(u===-1)return re("");if(s=t.slice(n+1,u),mt(t.slice(u+1))!=="")return re("")}else if(s=mt(t.slice(n)),/[;,]/.test(s))return re("");if(s==="")return re("");let c=dt(s);return c===""?re(""):{kind:"allowed",delay:r,destination:s,sanitizedDestination:c}}function Ft(e){let t,n,r,o=new Set;for(let[i,s]of e){let a=ne(i);o.has(a)&&(r=a),o.add(a),a==="http-equiv"?t=s:a==="content"&&(n=s)}return r!==void 0?re(""):typeof t!="string"?{kind:"not-refresh"}:mt(Fe(t)).toLowerCase()!=="refresh"?{kind:"not-refresh"}:typeof n!="string"?{kind:"not-refresh"}:li(n)}var di="http://www.w3.org/1999/xhtml",fi="http://www.w3.org/2000/svg",pi=new Set(["script","iframe","object","embed","frame","frameset"]);function Jn(e){return ne(e)}function Gn(e){return pi.has(Jn(e))}var mi=new Set(["script","style"]);function Yn(e){return mi.has(Jn(e))}var H={None:0,MetaRefreshForbidden:1,MetaRefreshReactive:2,ScriptSource:3,AnimationTarget:4,StylesheetSource:5},gi=new Set(["src","href","xlink:href","type","language"]),bi=new Set(["animate","set","animateMotion","animateTransform","animateColor"]),zt=new WeakSet;function Zn(e){return e.namespaceURI===di||e.namespaceURI===null}function Xn(e,t,n){let r=new Map,o=e.attributes;for(let i=0;i<o.length;i++){let s=o[i];s.name!==t&&r.set(s.name,s.value)}return t!==null&&n!==null&&r.set(t,n),r}function hi(e){zt.has(e)||(zt.add(e),e.getAttribute("content")!==null&&Ft(Xn(e,null,null)).kind!=="not-refresh"&&e.removeAttribute("content"))}function yi(e,t,n,r){if(!Zn(e))return H.None;let o=ne(t);if(o!=="http-equiv"&&o!=="content"||(r==="reactive"&&hi(e),n===null)||o==="content"&&!e.hasAttribute("http-equiv"))return H.None;let i=Ft(Xn(e,o,n));return i.kind==="forbidden"?H.MetaRefreshForbidden:i.kind!=="not-refresh"&&zt.has(e)?H.MetaRefreshReactive:H.None}function vi(e,t){if(t===null||ne(e)!=="attributename")return H.None;let n=Fe(t);return qn(n)||Te(n)||tt(n)?H.AnimationTarget:H.None}var gt=new WeakSet;function Kn(e){if(e===null)return!1;let t=ne(e);if(!t.includes("stylesheet"))return!1;let n=t.split(/[\t\n\f\r ]+/);for(let r=0;r<n.length;r++)if(n[r]==="stylesheet")return!0;return!1}function Si(e,t,n,r){if(!Zn(e))return H.None;let o=ne(t);return o==="href"?r==="static"||n===null?H.None:Kn(e.getAttribute("rel"))?H.StylesheetSource:(gt.add(e),H.None):o==="rel"&&Kn(n)&&gt.has(e)&&e.hasAttribute("href")?H.StylesheetSource:H.None}function Wt(e,t,n,r){let o=e.localName;return o==="meta"?yi(e,t,n,r):o==="link"?Si(e,t,n,r):o==="script"?r==="static"||n===null?H.None:gi.has(ne(t))?H.ScriptSource:H.None:bi.has(o)&&e.namespaceURI===fi?vi(t,n):H.None}function qt(e,t,n){e.localName!=="link"||ne(t)!=="href"||(n!=="static"&&e.hasAttribute("href")?gt.add(e):gt.delete(e))}var xi="http://www.w3.org/1999/xhtml",wi="http://www.w3.org/2000/svg",Ti="http://www.w3.org/1999/xlink",Ei="http://www.w3.org/XML/1998/namespace",ki=new Set(["checked","disabled","selected"]);function Ci(e){return e.namespaceURI===null||e.namespaceURI===xi}function er(e,t,n){}function Qn(e,t,n){e[t]=n}function _i(e,t){if(e.namespaceURI!==wi)return null;let n=t.toLowerCase();return n.startsWith("xlink:")?Ti:n.startsWith("xml:")?Ei:null}function ae(e,t,n,r={}){let o=Ai(e,t,n,r);return e.localName==="link"&&qt(e,t,r.reactive?"reactive":"runtime"),o}function Ai(e,t,n,r){let o=_i(e,t),i=o?t.slice(t.indexOf(":")+1):t;if(Te(t))return!1,o?e.removeAttributeNS(o,i):e.removeAttribute(t),!1;let s=n==null||n===!1?null:n===!0?"":String(n),a=Wt(e,t,s,r.reactive?"reactive":"runtime");if(a!==H.None)return er(r.label??"setSafeAttribute",t,a),o?e.removeAttributeNS(o,i):e.removeAttribute(t),!1;if(n==null)return o?e.removeAttributeNS(o,i):e.removeAttribute(t),!0;if(tt(t))return!1,o?e.removeAttributeNS(o,i):e.removeAttribute(t),!1;let c=Ci(e),u=c?t.toLowerCase():t;if(typeof n=="boolean"){if(t.length>5&&t.slice(0,5).toLowerCase()==="aria-"){let m=n?"true":"false";return(o?e.getAttributeNS(o,i):e.getAttribute(t))!==m&&(o?e.setAttributeNS(o,t,m):e.setAttribute(t,m)),!0}return c&&ki.has(u)&&u in e?Qn(e,u,n):n?o?e.setAttributeNS(o,t,""):e.setAttribute(t,""):o?e.removeAttributeNS(o,i):e.removeAttribute(t),!0}let d=String(n);if(r.syncValueProperty!==!1&&c&&(u==="value"||u==="checked")&&u in e)return Qn(e,u,u==="checked"?!!n:d),!0;let g=d===""?"":Un(t,d,{element:e});return g===null?(o?e.removeAttributeNS(o,i):e.removeAttribute(t),!0):((o?e.getAttributeNS(o,i):e.getAttribute(t))===g||(o?e.setAttributeNS(o,t,g):e.setAttribute(t,g)),!0)}function Ut(e,t,n){if(tt(t))return!1,!1;let r=Wt(e,t,n,"static");return r!==H.None?(er("html (static attribute)",t,r),!1):(e.setAttribute(t,n),e.localName==="link"&&qt(e,t,"static"),!0)}var Ni=4096,Kt=[];function Ri(){return{sig:null,sub:null,epoch:0,depVersion:0,sigPrev:null,sigNext:null,subPrev:null,subNext:null,prevActive:null}}function Li(e,t,n){let r=Kt.pop();if(r)return r.sig=e,r.sub=t,r.epoch=n,r;let o=Ri();return o.sig=e,o.sub=t,o.epoch=n,o}function tr(e){e.sig=null,e.sub=null,e.sigPrev=null,e.sigNext=null,e.subPrev=null,e.subNext=null,e.prevActive=null,Kt.length<Ni&&Kt.push(e)}function Mi(e,t){let n=e.subsHead??null;t.sigPrev=null,t.sigNext=n,n?n.sigPrev=t:e.subsTail=t,e.subsHead=t,e.__sc=(e.__sc??0)+1}function nr(e){let t=e.sig;if(!t)return;let n=e.sigPrev,r=e.sigNext;n?n.sigNext=r:t.subsHead=r,r?r.sigPrev=n:t.subsTail=n,t.__sc=(t.__sc??1)-1,t.__activeNode===e&&(t.__activeNode=e.prevActive),t.__sc===0&&(t.subsHead=null,t.subsTail=null)}function Oi(e,t){let n=e.depsTail??null;t.subPrev=n,t.subNext=null,n?n.subNext=t:e.depsHead=t,e.depsTail=t}function Pi(e){let t=e.sub;if(!t)return;let n=e.subPrev,r=e.subNext;n?n.subNext=r:t.depsHead=r,r?r.subPrev=n:t.depsTail=n}var ue=null,he=null,Ee=0,ke=[],ce=new Set,Di=[];function $i(e){try{e()}catch(t){let n=e;R(t,{phase:n._errorPhase??"effect",name:n.__name,node:n._errorNode})}}function Ii(e){let t=e.depsHead??null;if(t===null)return!0;for(;t!==null;){let n=t.sig;if(n===null)return!0;if(n._d===!0&&n._validate!==void 0)try{n._validate()}catch{return!0}if(t.depVersion!==n.__v)return!0;t=t.subNext}return!1}var ge=0,ye=!1;function Gt(){ge===0&&(he=ue,ue=null,ye=!0),ge++}function Yt(){ge--,ge===0&&(ue=he,he=null,ye=!1)}function rr(){return ye}function or(e){Gt();try{return e()}finally{Yt()}}var oe=null;function Zt(){return oe}function vt(e,t){let n=oe;oe=e;try{return t()}finally{oe=n}}function Xt(e){let t=oe;return t===null?e:(...n)=>vt(t,()=>e(...n))}var Hi=0;function Qt(e,t){let n=ue,r=0,o=null;ye&&(r=ge,o=he,ge=0,he=null,ye=!1),ue=t;let i=t;i._cap===void 0&&(i._cap=Dn());let s=oe;s!==null&&!i._epoch&&i._scope===void 0&&(i._scope=s);let a=i._scope===void 0?null:i._scope;a!==s&&(oe=a);let c=++Hi;i._epoch=c,i._structDirty=!1;for(let u=i.depsHead??null;u!==null;u=u.subNext){let d=u.sig;u.prevActive=d.__activeNode??null,d.__activeNode=u}try{e()}finally{ue=n,oe=s,r!==0&&(ge=r,he=o,ye=!0);let u=i.depsHead??null;for(;u!==null;){let d=u.subNext,g=u.sig;g.__activeNode=u.prevActive,u.prevActive=null,u.epoch!==c&&(Pi(u),nr(u),tr(u)),u=d}}}function ir(e,t){if(!t)return en(e);ze(t);let n=ue,r=0,o=null;ye&&(r=ge,o=he,ge=0,he=null,ye=!1),ue=t;let i=t;i._scope===void 0&&(i._scope=oe);let s=oe;oe=i._scope;try{e()}finally{ue=n,oe=s,r!==0&&(ge=r,he=o,ye=!0);for(let a=i.depsHead??null;a!==null;a=a.subNext){let c=a.sig;c.__activeNode=a.prevActive,a.prevActive=null}}return i._dispose??(i._dispose=()=>ze(t))}function en(e,t){let n=()=>{let o=r;if(!(o._disposed||o._reentrant)){o._reentrant=!0;try{Qt(e,r)}finally{o._reentrant=!1}}},r=n;r.depsHead=null,r.depsTail=null,r._epoch=0,r._structDirty=!1,r._hasComputedDep=!1,r._runEpoch=0,r._runs=0,r._reentrant=!1,r._disposed=!1,r._errorPhase="binding",r._errorNode=t;try{n()}catch(o){throw r._disposed=!0,r._errorNode=void 0,ze(r),o}return r._dispose??(r._dispose=()=>{r._disposed=!0,r._errorNode=void 0,ze(r)})}function sr(e){if(!ue)return;let t=ue,n=e,r=t._epoch??0,o=n.__activeNode??null;if(o!==null&&o.sub===t){o.epoch=r,o.depVersion=n.__v??Number.NaN;return}n._validate!==void 0&&(t._hasComputedDep=!0);let i=Li(e,t,r);i.depVersion=n.__v??Number.NaN,i.prevActive=o,n.__activeNode=i,Oi(t,i),Mi(n,i),t._structDirty=!0}function ze(e){let t=e,n=t.depsHead??null;for(t.depsHead=null,t.depsTail=null;n;){let r=n.subNext;nr(n),tr(n),n=r}}var bt=1e3,ht=1e6,yt=0,Re=new Set;function ar(e){let t=bt;return Number.isFinite(e)&&e>0&&(bt=Math.floor(e)),t}function cr(e){let t=ht;return Number.isFinite(e)&&e>0&&(ht=Math.floor(e)),t}function Bi(e){let t=e;return t._runEpoch!==yt?(t._runEpoch=yt,t._runs=1,!1):(t._runs=(t._runs??0)+1,t._runs>bt)}function Vi(e){let t=e.__name??"<unnamed>";R(new Error(`subscriber "${t}" fired more than ${bt} times \u2014 likely a write-reads-self cycle between effects/signals. This subscriber is quarantined for the rest of this update; other pending work still runs.`),{phase:"scheduler",name:t})}function ji(){R(new Error(`Notification drain exceeded ${ht} iterations \u2014 absolute safety net tripped. Breaking to prevent infinite loop.`),{phase:"scheduler"})}function ur(){let e=0;for(;e<ke.length;){if(e>=ht){ji();break}let t=ke[e++];if(ce.delete(t),Re.size>0&&Re.has(t)||t._hasComputedDep===!0&&!Ii(t))continue;if(Bi(t)){Vi(t),Re.add(t);continue}let n=$n(t._cap??null);try{$i(t)}finally{n&&In()}}}function lr(){if(!(Ee>0)){Ee++,yt++;try{ur()}finally{Ee--,Ee===0&&(ke.length=0,ce.clear(),Re.size>0&&Re.clear())}}}function Jt(e){e();let t=e._sig;if(!t)return;let n=Di,r=n.length;for(n.push(t);n.length>r;){let i=n.pop().subsHead??null;for(;i;){let s=i.sub;if(s)if(s._c){let a=s._sig;a?(!a._d||a._f===!0)&&(a._d=!0,a._f=!1,n.push(a)):s()}else ce.has(s)||(ce.add(s),ke.push(s));i=i.sigNext}}}function dr(e){let n=e.subsHead??null;for(;n;){let r=n.sub;r&&(r._c?Jt(r):ce.has(r)||(ce.add(r),ke.push(r))),n=n.sigNext}}function fr(e){let n=e.subsHead;if(n){if(Ee>0){let r=n;for(;r;){let o=r.sub;o&&(o._c?Jt(o):ce.has(o)||(ce.add(o),ke.push(o))),r=r.sigNext}return}Ee++,yt++;try{let r=n;for(;r;){let o=r.sub;o&&(o._c?Jt(o):ce.has(o)||(ce.add(o),ke.push(o))),r=r.sigNext}ur()}finally{Ee--,Ee===0&&(ke.length=0,ce.clear(),Re.size>0&&Re.clear())}}}function pr(e){return e.__sc??0}function mr(e){let t=e,n=[],r=t.depsHead??null;for(;r;)r.sig&&n.push(r.sig),r=r.subNext;return n}function gr(e,t){let n=e.subsHead??null;for(;n;){let r=n.sub;r&&t(r),n=n.sigNext}}var br="4.10.1",hr=Symbol.for("sibujs.reactive.v1");function zi(){let e=globalThis,t=e[hr];if(t)return!1,t;let n={suspendTracking:Gt,resumeTracking:Yt,isTrackingSuspended:rr,untracked:or,retrack:Qt,track:ir,reactiveBinding:en,recordDependency:sr,cleanup:ze,setMaxSubscriberRepeats:ar,setMaxDrainIterations:cr,drainNotificationQueue:lr,queueSignalNotification:dr,notifySubscribers:fr,getSubscriberCount:pr,getSubscriberDeps:mr,forEachSubscriber:gr,getOwnerScope:Zt,runWithOwnerScope:vt,bindOwnerScope:Xt,version:br};return e[hr]=n,n}var j=zi(),Le=j.suspendTracking,Me=j.resumeTracking,yr=j.isTrackingSuspended,le=j.untracked,Ce=j.retrack,ie=j.track,J=j.reactiveBinding,Oe=j.recordDependency,Pe=j.cleanup,El=j.setMaxSubscriberRepeats,vr=j.setMaxDrainIterations,Sr=j.drainNotificationQueue,xr=j.queueSignalNotification,We=j.notifySubscribers,kl=j.getSubscriberCount,Cl=j.getSubscriberDeps,_l=j.forEachSubscriber,qe=j.getOwnerScope??Zt,St=j.runWithOwnerScope??vt,Y=j.bindOwnerScope??Xt;function nt(e,t,n){if(Te(t))return ae(e,t,"",{label:`bindAttribute("${t}")`}),()=>{};function r(){let o;try{o=n()}catch(i){R(i,{phase:"binding",name:`bindAttribute("${t}")`,node:e});return}ae(e,t,o,{label:`bindAttribute("${t}")`,reactive:!0})}return J(r,e)}function wr(e,t,n){let r=null;function o(){let s;try{s=typeof t=="function"?t():t}catch(c){R(c,{phase:"binding",name:"bindDynamic (name getter)",node:e});return}let a;try{a=typeof n=="function"?n():n}catch(c){R(c,{phase:"binding",name:"bindDynamic (value getter)",node:e});return}r!==null&&r!==s&&(e.removeAttribute(r),r=null),ae(e,s,a,{label:"bindDynamic",reactive:!0})&&(r=s)}let i=J(o,e);return()=>{i(),r!==null&&e.removeAttribute(r)}}var tn=["data-focus-key","id","name"],Wi=new Set(["text","search","url","tel","password",""]);function qi(e){let t=e.tagName;if(!(t==="TEXTAREA"||t==="INPUT"&&Wi.has(e.type.toLowerCase())))return{start:null,end:null,direction:null};let r=e;return{start:r.selectionStart,end:r.selectionEnd,direction:r.selectionDirection}}function rt(e){if(e.length===0||typeof document>"u")return null;let t=document.activeElement;if(!t||t===document.body)return null;let n=!1;for(let i=0;i<e.length;i++){let s=e[i];if(s===t||s.nodeType===1&&s.contains(t)){n=!0;break}}if(!n)return null;let r=null,o=null;for(let i=0;i<tn.length;i++){let s=t.getAttribute(tn[i]);if(s){r=tn[i],o=s;break}}return{el:t,attr:r,value:o,tag:t.tagName,...qi(t)}}function Ui(e){return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ki(e,t){let n=null,r=0;for(let o=0;o<e.length;o++){let i=e[o];if(i.nodeType!==1)continue;let s=i;s.matches(t)&&(r++,n??(n=s));let a=s.querySelectorAll(t);for(let c=0;c<a.length;c++)r++,n??(n=a[c]);if(r>1)return{el:null,count:r}}return r===1?{el:n,count:r}:{el:null,count:r}}function Tr(e,t){if(e.focus(),t.start!==null&&typeof e.setSelectionRange=="function"){let n=e,r=n.value.length,o=Math.min(t.start,r),i=Math.min(t.end??o,r);n.setSelectionRange(o,i,t.direction??"none")}}function Ue(e,t,n){if(!e||typeof document>"u")return;let r=document.activeElement;if(r===e.el||r&&r!==document.body&&r!==document.documentElement)return;if(e.el.isConnected){Tr(e.el,e);return}let o=!1;if(e.attr&&e.value){let{el:i,count:s}=Ki(t,`[${e.attr}=${Ui(e.value)}]`);if(i&&i.tagName===e.tag){Tr(i,e);return}o=s>1}}function ve(e,t){let n=[];function r(){let o;try{o=t()}catch(d){R(d,{phase:"binding",name:"bindChildNode",node:e});return}let i=rt(n);if(o==null||typeof o=="boolean"){for(let d=0;d<n.length;d++){let g=n[d];V(g),g.parentNode&&g.parentNode.removeChild(g)}n.length=0,Ue(i,n,"bindChildNode");return}let s=e.parentNode;if(!s){n.length=0;return}let a;if(Array.isArray(o)){a=[];let d=new Set;for(let g=0;g<o.length;g++){let h=o[g];if(h==null||typeof h=="boolean")continue;let m=h instanceof Node?h:document.createTextNode(String(h));if(d.has(m)){!1;continue}d.add(m),a.push(m)}}else a=[o instanceof Node?o:document.createTextNode(String(o))];let c;if(n.length>0&&a.length>0){let d=new Set(n);c=new Set;for(let g=0;g<a.length;g++)d.has(a[g])&&c.add(a[g])}for(let d=0;d<n.length;d++){let g=n[d];c?.has(g)||(V(g),g.parentNode&&g.parentNode.removeChild(g))}let u=e;for(let d=0;d<a.length;d++){let g=a[d];u.nextSibling!==g&&s.insertBefore(g,u.nextSibling),u=g}n=a,Ue(i,a,"bindChildNode")}return J(r,e)}var I="http://www.w3.org/2000/svg",Ji=new Set(["config","location","history","document","window","navigator","name","top","parent","self","frames"]);var nn=new Set,Er=100,kr=!1,Cr=new Map;function _r(e){let t=Cr.get(e);return t!==void 0||(t=e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`),Cr.set(e,t)),t}function Gi(e,t){if(typeof t=="function"){let r=t,o=[],i=!1,s=J(()=>{let a=r();if(a===null||typeof a!="object"){o=[],i=!0,e.setAttribute("style",pt(String(a),{element:e}));return}let c=e.style;i&&(e.removeAttribute("style"),i=!1);let u=[];for(let d in a){if(!Object.hasOwn(a,d))continue;let g=a[d];if(g==null)continue;let h=_r(d);u.push(h),c.setProperty(h,ft(h,String(g),{element:e}))}for(let d=0;d<o.length;d++)u.indexOf(o[d])===-1&&c.removeProperty(o[d]);o=u},e);_(e,s);return}if(typeof t=="string"){e.setAttribute("style",pt(t,{element:e}));return}let n=e;for(let r in t){if(!Object.hasOwn(t,r))continue;let o=t[r],i=_r(r);if(typeof o=="function"){let s=o,a=J(()=>{n.style.setProperty(i,ft(i,String(s()),{element:e}))},e);_(e,a)}else n.style.setProperty(i,ft(i,String(o),{element:e}))}}function Yi(e,t){if(typeof t=="string"){e.setAttribute("class",t);return}if(typeof t=="function"){let i=J(()=>{let s=t();s==null||s===!1?e.removeAttribute("class"):e.setAttribute("class",s)},e);_(e,i);return}let n=t,r=!1,o="";for(let i in n){if(!Object.hasOwn(n,i))continue;let s=n[i];if(typeof s=="function"){r=!0;break}s&&(o=o?`${o} ${i}`:i)}if(r){let s=J(()=>{let a="";for(let c in n){if(!Object.hasOwn(n,c))continue;let u=n[c];(typeof u=="function"?u():u)&&(a=a?`${a} ${c}`:c)}e.setAttribute("class",a)},e);_(e,s)}else e.setAttribute("class",o)}function rn(e,t){if(typeof t=="string"){e.textContent=t;return}if(typeof t=="number"){e.textContent=String(t);return}if(!(typeof t=="boolean"||t==null)){if(typeof t=="function"){let n=document.createComment("");e.appendChild(n),_(e,ve(n,t));return}if(t instanceof Node){e.appendChild(t);return}if(Array.isArray(t))for(let n=0;n<t.length;n++){let r=t[n];if(typeof r=="function"){let o=document.createComment("");e.appendChild(o),_(e,ve(o,r))}else if(r instanceof Node)e.appendChild(r);else if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];if(typeof i=="function"){let s=document.createComment("");e.appendChild(s),_(e,ve(s,i))}else i instanceof Node?e.appendChild(i):i!=null&&typeof i!="boolean"&&e.appendChild(document.createTextNode(String(i)))}else r!=null&&typeof r!="boolean"&&e.appendChild(document.createTextNode(String(r)))}}}function p(e,t){let n=Gn(e);return(r,o)=>{if(n)throw new Error(`tagFactory: refusing to create <${e}> \u2014 tag is blocked for security reasons.`);let i=t?document.createElementNS(t,e):document.createElement(e);if(r===void 0)return i;if(typeof r=="string")return o!==void 0?(i.setAttribute("class",r),rn(i,o),i):(i.textContent=r,i);if(typeof r=="number")return i.textContent=String(r),i;if(Array.isArray(r)||r instanceof Node||typeof r=="function")return rn(i,r),i;let s=r,a=s.class;a!=null&&Yi(i,a);let c=s.id;typeof c=="function"?_(i,nt(i,"id",c)):c!=null&&(!1,i.id=c);let u=o!==void 0?o:s.nodes;u!=null&&rn(i,u);let d=s.on;if(d)for(let m in d){if(!Object.hasOwn(d,m))continue;let l=d[m];typeof l=="function"?i.addEventListener(m,l):!1}let g=s.style;g!=null&&Gi(i,g);let h=s.ref;h&&(h.current=i);for(let m in s)switch(m){case"class":case"id":case"nodes":case"on":case"style":case"ref":case"onElement":continue;default:{if(!Object.hasOwn(s,m))continue;let l=s[m];if(l==null||Te(m))continue;typeof l=="function"?_(i,nt(i,m,l)):ae(i,m,l,{syncValueProperty:!1,label:"tagFactory"})}}return typeof s.onElement=="function"&&s.onElement(i),i}}var Gl=p("html"),Zi=p("head"),Xi=p("body"),Qi=p("title"),O=p("div"),F=p("span"),es=p("section"),ts=p("article"),ns=p("header"),rs=p("footer"),os=p("nav"),is=p("main"),ss=p("aside"),as=p("address"),on=p("p"),cs=p("h1"),us=p("h2"),sn=p("h3"),ls=p("h4"),ds=p("h5"),fs=p("h6"),ps=p("blockquote"),ms=p("dd"),gs=p("dl"),bs=p("dt"),hs=p("figcaption"),ys=p("figure"),vs=p("hr"),Ss=p("li"),xs=p("ol"),ws=p("ul"),an=p("pre"),Ts=p("a"),Es=p("abbr"),ks=p("b"),Cs=p("bdi"),_s=p("bdo"),As=p("br"),Ns=p("cite"),cn=p("code"),Rs=p("data"),Ls=p("dfn"),Ms=p("em"),Os=p("i"),Ps=p("kbd"),Ds=p("mark"),$s=p("q"),Is=p("rp"),Hs=p("rt"),Bs=p("ruby"),Vs=p("s"),js=p("samp"),Fs=p("small"),zs=p("strong"),Ws=p("sub"),qs=p("sup"),Us=p("time"),Ks=p("u"),Js=p("var"),Gs=p("area"),Ys=p("audio"),Zs=p("img"),Xs=p("map"),Qs=p("track"),ea=p("video"),ta=p("embed"),na=p("iframe"),ra=p("object"),oa=p("param"),ia=p("picture"),sa=p("portal"),aa=p("source"),ca=p("svg",I),ua=p("math"),la=p("canvas"),da=p("noscript"),fa=p("script"),pa=p("del"),ma=p("ins"),ga=p("caption"),ba=p("col"),ha=p("colgroup"),ya=p("table"),va=p("tbody"),Sa=p("td"),xa=p("tfoot"),wa=p("th"),Ta=p("thead"),Ea=p("tr"),ot=p("button"),ka=p("datalist"),Ca=p("fieldset"),_a=p("form"),Aa=p("input"),Na=p("label"),Ra=p("legend"),La=p("meter"),Ma=p("optgroup"),Oa=p("option"),Pa=p("output"),Da=p("progress"),$a=p("select"),Ia=p("textarea"),Ha=p("details"),Ba=p("dialog"),Va=p("menu"),ja=p("summary"),Fa=p("slot"),za=p("template"),Wa=p("base"),qa=p("link"),Ua=p("meta"),De=p("style"),Ka=p("circle",I),Ja=p("ellipse",I),Ga=p("g",I),Ya=p("line",I),Za=p("path",I),Xa=p("polygon",I),Qa=p("polyline",I),ec=p("rect",I),tc=p("text",I),nc=p("tspan",I),rc=p("defs",I),oc=p("clipPath",I),ic=p("mask",I),sc=p("pattern",I),ac=p("linearGradient",I),cc=p("radialGradient",I),uc=p("stop",I),lc=p("use",I),dc=p("symbol",I),fc=p("marker",I),pc=p("center"),mc=p("font"),gc=p("marquee"),bc=e=>p(e);var un="__sibuPendingError";function Ar(e,t){let n=()=>e.parentNode?(R(t,{phase:"render",name:"lazy",node:e}),!0):!1;n()||queueMicrotask(()=>{n()||(e[un]=t)})}function xt(e){let t=e,n=t[un];if(n instanceof Error)return delete t[un],n}function Nr(e){let t=null;return function(){if(t)return t();let r=O({class:"sibu-lazy"}),o=!1;return e().then(Y(i=>{if(o)return;t=i.default;let s=t();Q(r,s)})).catch(i=>{if(o)return;let s=i instanceof Error?i:new Error(String(i));Q(r,O({class:"sibu-lazy-error"},`Failed to load component: ${s.message}`)),Ar(r,s)}),r.appendChild(F("sibu-lazy-loading","Loading...")),_(r,()=>{o=!0}),r}}function Rr({nodes:e,fallback:t}){let n=O({class:"sibu-suspense"}),r=t();n.appendChild(r);let o=!1,i=null,s=null;_(n,()=>{o=!0,i&&(i.disconnect(),i=null),s&&!n.contains(s)&&V(s)});let a=Y(()=>{if(!o)try{let c=e();if(s=c,c.classList.contains("sibu-lazy")){if(!c.querySelector(".sibu-lazy-loading")){Q(n,c);return}i=new MutationObserver(()=>{if(o)return;c.querySelector(".sibu-lazy-loading")||(i?.disconnect(),i=null,Q(n,c))}),i.observe(c,{childList:!0,subtree:!0})}else Q(n,c)}catch(c){let u=c instanceof Error?c:new Error(String(c));Ar(n,u)}});return queueMicrotask(a),n}function pn(e,t){return()=>qe()===e?t():St(e,t)}function Tt(e,t){try{return e()}catch(n){let r=t.toLowerCase().includes("unmount")?"cleanup":"effect";R(n,{phase:r,name:t});return}}function ln(e,t,n,r,o){let i=Tt(e,t);if(typeof i!="function")return;let s=pn(o,i);r()||!n.isConnected?Tt(s,"onUnmount"):Mr(s,n)}var Ke=new WeakMap,$e=new WeakMap,Se=new Set,xe=new Set,Je=null,wt=0,hc=256;function dn(e){let t=Ke.get(e);if(t){Ke.delete(e),Se.delete(e);for(let n of t)try{n()}catch{}}}function fn(e){$e.get(e)&&queueMicrotask(()=>{if(e.isConnected)return;let n=$e.get(e);if(n){$e.delete(e),xe.delete(e);for(let r of n)try{r()}catch{}}})}function yc(e){if(Se.size===0||e.nodeType!==1)return;let t=e;if(Se.has(t)&&t.isConnected&&dn(t),t.firstElementChild)for(let n of Array.from(Se))n!==t&&n.isConnected&&t.contains(n)&&dn(n)}function vc(e){if(xe.size===0||e.nodeType!==1)return;let t=e;if(xe.has(t)&&!t.isConnected&&fn(t),t.firstElementChild)for(let n of Array.from(xe))n!==t&&!n.isConnected&&t.contains(n)&&fn(n)}function Sc(){if(Se.size>0)for(let e of Array.from(Se))e.isConnected&&dn(e);if(xe.size>0)for(let e of Array.from(xe))e.isConnected||fn(e)}function Lr(){Je||typeof document>"u"||(Je=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"){if(t.addedNodes.length>0)for(let n=0;n<t.addedNodes.length;n++)yc(t.addedNodes[n]);if(t.removedNodes.length>0)for(let n=0;n<t.removedNodes.length;n++)vc(t.removedNodes[n])}wt+=e.length,wt>=hc&&(wt=0,Sc()),mn()}),Je.observe(document.body,{childList:!0,subtree:!0}))}function mn(){Je&&Se.size===0&&xe.size===0&&(Je.disconnect(),Je=null,wt=0)}function xc(e,t){let n=Ke.get(e);return n||(n=[],Ke.set(e,n)),n.push(t),Se.add(e),Lr(),()=>{let r=Ke.get(e);if(r){let o=r.indexOf(t);o!==-1&&r.splice(o,1),r.length===0&&(Ke.delete(e),Se.delete(e))}mn()}}function wc(e,t){let n=$e.get(e);return n||(n=[],$e.set(e,n)),n.push(t),xe.add(e),Lr(),()=>{let r=$e.get(e);if(r){let o=r.indexOf(t);o!==-1&&r.splice(o,1),r.length===0&&($e.delete(e),xe.delete(e))}mn()}}function Et(e,t){if(typeof document>"u")return;let n=qe();if(e=pn(n,e),t){let r=!1,o=()=>r;if(_(t,()=>{r=!0}),t.isConnected){queueMicrotask(()=>{r||ln(e,"onMount",t,o,n)});return}queueMicrotask(()=>{if(r)return;if(t.isConnected){ln(e,"onMount",t,o,n);return}let i=xc(t,()=>{r||ln(e,"onMount",t,o,n)});_(t,i)})}else queueMicrotask(()=>{Tt(e,"onMount")})}function Tc(e,t){typeof document>"u"||Mr(pn(qe(),e),t)}function Mr(e,t){let n=!1,r=()=>{n||(n=!0,Tt(e,"onUnmount"))};_(t,r);let o=()=>{if(n)return;let i=wc(t,r);_(t,i)};t.isConnected?o():Et(()=>{o()},t)}function Ec(e,t){_(t,e)}function se(e,t,n){try{e.emit(t,n)}catch{}}var gn=Symbol.for("sibujs.ssr.v1");function kc(){let e=null;try{if(typeof process<"u"&&process.versions&&process.versions.node){let t=null,n=process.getBuiltinModule;typeof n=="function"?t=n("node:async_hooks"):typeof Pt=="function"&&(t=Pt("async_hooks")),t&&(e=new t.AsyncLocalStorage)}}catch{e=null}return{als:e,fallbackStore:{ssr:!1,suspenseIdCounter:0,locale:void 0},fallbackDepth:0}}var _e=globalThis[gn]??(globalThis[gn]=kc()),Ie=_e.als,Z=_e.fallbackStore;_e.fallbackDepth??(_e.fallbackDepth=0);var Or=!1;function Cc(){if(Or||Ie||!(typeof process<"u"&&!!process.versions?.node))return;Or=!0;let t=process.versions.node;`${t}`}function He(){if(Ie){let e=Ie.getStore();if(e)return e}return Z}function Pr(){return Ie?Ie.getStore()??null:_e.fallbackDepth>0?Z:null}function de(){return He().ssr}function Dr(e){if(!de())return null;let t=He(),n=t.caches??(t.caches=new Map),r=n.get(e);return r||(r=new Map,n.set(e,r)),r}function $r(){He().ssr=!0}function Ir(){He().ssr=!1}function Hr(e){let t={ssr:!0,suspenseIdCounter:0,idCounter:0,locale:void 0};if(Ie)return Ie.run(t,e);Cc();let n=Z.ssr,r=Z.suspenseIdCounter,o=Z.idCounter,i=Z.locale;Z.ssr=!0,Z.suspenseIdCounter=0,Z.idCounter=0,Z.locale=void 0,_e.fallbackDepth++;try{return e()}finally{_e.fallbackDepth--,Z.ssr=n,Z.suspenseIdCounter=r,Z.idCounter=o,Z.locale=i}}function Br(e){let t=He(),n=t.ssr;t.ssr=!0;try{return e()}finally{n||(t.ssr=!1)}}var zr=globalThis;function _c(e,t){let n,r=!0;return()=>{let o=e();if(r)r=!1,n=o,le(()=>t(o,void 0));else{let i=n;n=o,le(()=>t(o,i))}}}var Vr=100;function kt(e){let t=e.userCleanups;if(t.length===0)return;e.userCleanups=[];let n=e.subscriber._scope??null;n===qe()?jr(t):St(n,()=>jr(t))}function jr(e){for(let t=e.length-1;t>=0;t--)try{e[t]()}catch(n){R(n,{phase:"cleanup"})}}function Fr(e){let t=1;do e.rerunPending=!1,e.userCleanups.length>0&&kt(e),Ce(e.bodyFn,e.subscriber);while(e.rerunPending&&++t<=Vr);e.rerunPending&&(e.rerunPending=!1,R(new Error(`effect re-requested itself ${Vr}+ times \u2014 likely a write-reads-self cycle. Breaking to prevent infinite loop.`),{phase:"effect"}))}function Ac(e){if(e.disposed)return;e.disposed=!0;let t=zr.__SIBU_DEVTOOLS_GLOBAL_HOOK__;if(t)try{t.emit("effect:destroy",{effectFn:e.fn})}catch{}try{e.userCleanups.length>0&&kt(e)}catch(n){typeof console<"u"&&console.warn("[SibuJS effect] onCleanup threw during dispose:",n)}try{Pe(e.subscriber)}catch(n){typeof console<"u"&&console.warn("[SibuJS effect] dispose threw:",n)}}function X(e,t){if(de())return()=>{};let n={fn:e,onError:t?.onError,userCleanups:[],running:!1,rerunPending:!1,disposed:!1,onCleanup:null,subscriber:null,bodyFn:null};n.onCleanup=s=>{n.userCleanups.push(s)};let r=n.onError;n.bodyFn=r?()=>{try{n.fn(n.onCleanup)}catch(s){r(s)}}:()=>{n.fn(n.onCleanup)};let o=(()=>{if(!n.disposed){if(n.running){n.rerunPending=!0;return}n.running=!0;try{n.rerunPending=!1,n.userCleanups.length>0&&kt(n),Ce(n.bodyFn,o),n.rerunPending&&Fr(n)}finally{n.running=!1,n.rerunPending=!1}}});o.depsHead=null,o.depsTail=null,o._epoch=0,o._structDirty=!1,o._hasComputedDep=!1,o._errorPhase="effect",o._runEpoch=0,o._runs=0,n.subscriber=o,n.running=!0;try{Ce(n.bodyFn,n.subscriber),n.rerunPending&&Fr(n)}catch(s){throw n.disposed=!0,n.userCleanups.length>0&&kt(n),Pe(n.subscriber),s}finally{n.running=!1,n.rerunPending=!1}let i=zr.__SIBU_DEVTOOLS_GLOBAL_HOOK__;return i&&se(i,"effect:create",{effectFn:e}),()=>Ac(n)}var it=0,bn=new Set;function Nc(e){it++;try{return e()}finally{it--,it===0&&Mc()}}function Rc(e){return it===0?!1:(bn.add(e),!0)}function Lc(){return it>0}function Mc(){try{for(let e of bn)xr(e)}finally{bn.clear()}Sr()}var Wr=Symbol.for("sibujs.reactive.batch.v1");function Oc(){let e=globalThis,t=e[Wr];if(t)return t;let n={batch:Nc,enqueueBatchedSignal:Rc,isBatching:Lc};return e[Wr]=n,n}var hn=Oc(),z=hn.batch,Be=hn.enqueueBatchedSignal,Pc=hn.isBatching;var yn=globalThis;function A(e,t){let n={value:e,__v:0,__sc:0,subsHead:null,subsTail:null,__activeNode:null,__name:void 0,_d:!1,_validate:void 0},r=void 0,o=t?.equals;r&&(n.__name=r);function i(){return Oe(n),n.value}i.__signal=n,r&&(i.__name=r);let s;if(o?s=a=>{let c=n.value,u=typeof a=="function"?a(c):a;if(!o(c,u)){if(n.value=u,n.__v++,!1){let d=yn.__SIBU_DEVTOOLS_GLOBAL_HOOK__;d&&se(d,"signal:update",{signal:n,name:r,oldValue:c,newValue:u})}Be(n)||We(n)}}:s=a=>{let c=n.value,u=typeof a=="function"?a(c):a;Object.is(u,c)||(n.value=u,n.__v++,Be(n)||We(n))},!1){let a=yn.__SIBU_DEVTOOLS_GLOBAL_HOOK__;a&&se(a,"signal:create",{signal:n,name:r,getter:i,initial:e})}return[i,s]}function Dc(e){let[t,n]=A(0,e?.name?{name:e.name}:void 0);return{track(){t()},invalidate(){n(r=>r+1)}}}var $c=`
8
8
  .sibu-error-display {
9
9
  border: 1px solid var(--sibu-err-border, #e5484d);
10
10
  border-radius: 10px;
@@ -4,7 +4,7 @@
4
4
  `||o==="\f"){n+=1;continue}if(o==="\r"){n+=e[n+2]===`
5
5
  `?2:1;continue}if(Rn(o)){let i="",s=n+1;for(;s<e.length&&i.length<6&&Rn(e[s]);)i+=e[s],s++;s<e.length&&Wo(e[s])&&(s+=e[s]==="\r"&&e[s+1]===`
6
6
  `?2:1);let a=Number.parseInt(i,16),c=a===0||a>1114111||a>=55296&&a<=57343;t+=c?"\uFFFD":String.fromCodePoint(a),n=s-1;continue}t+=o,n+=1}return t}var Ln=["url(","expression(","javascript:","vbscript:","-moz-binding","behavior:","@import","image-set(","filter:progid","image(","src("],Uo=4,Ko=5,Jo=8;function Go(e){if(!e)return"an element";let t=e.tagName.toLowerCase(),n=e.getAttribute("id");n&&(t+=`#${n}`);let r=e.getAttribute("class");return r&&(t+=`.${r.trim().split(/\s+/).slice(0,3).join(".")}`),`<${t}>`}var At=new Set,Mn=100,On=!1;function tt(e,t,n){}function Dn(e){return(e.includes("\\")?qo(e):e).toLowerCase().replace(/\s+/g,"")}function Ct(e){if(!jo.test(e))return-1;let t=Dn(e);for(let n=0;n<Ln.length;n++)if(t.includes(Ln[n]))return n;return-1}function rt(e,t,n){let r=Nt(e,t);return r===-1?t:(tt(t,r,{property:e,element:n?.element}),"")}function Nt(e,t){let n=Ct(t);if(n!==-1)return n;let r=W(e);return r==="behavior"?Ko:r==="-moz-binding"?Uo:(r==="filter"||r==="-ms-filter")&&Dn(t).includes("progid:")?Jo:-1}function Yo(e){let t=[],n="",r=0,o="";for(let s=0;s<e.length;s++){let a=e[s];if(o){n+=a,a==="\\"&&s+1<e.length?n+=e[++s]:a===o&&(o="");continue}if(a==="\\"){n+=a,s+1<e.length&&(n+=e[++s]);continue}if(a==="/"&&e[s+1]==="*"){let c=e.indexOf("*/",s+2);if(c===-1)return null;s=c+1;continue}if(a==='"'||a==="'")o=a;else if(a==="("||a==="[")r++;else if(a===")"||a==="]"){if(--r<0)return null}else{if(a==="{"||a==="}")return null;if(a===";"&&r===0){t.push(n),n="";continue}}n+=a}if(o||r!==0)return null;t.push(n);let i=[];for(let s of t){let a=s.indexOf(":");if(a===-1)continue;let c=s.slice(0,a).trim();if(!/^(--[\w-]+|-?[a-zA-Z_][\w-]*)$/.test(c))continue;let u=s.slice(a+1).trim(),l=/!\s*important\s*$/i.exec(u);if(l&&(u=u.slice(0,l.index).trim()),u==="")continue;let m=c.startsWith("--")?c:W(c);i.push([m,u,l!==null])}return i}function Zo(e,t){let n=String(e),r=Yo(n);if(r===null)return Ct(n)!==-1&&tt(n,Ct(n),t),"";let o=[];for(let[i,s,a]of r){let c=Nt(i,s);if(c!==-1){tt(s,c,{property:i,element:t?.element});continue}o.push(`${i}: ${s}${a?" !important":""}`)}return o.join("; ")}function ot(e,t){let n=String(e);if(n.trim()==="")return"";if(typeof document>"u")return Zo(n,t);let r=document.createElement("div");try{r.style.cssText=n}catch{return""}let o=[];for(let i=0;i<r.style.length;i++){let s=r.style[i],a=r.style.getPropertyValue(s),c=Nt(s,a);if(c!==-1){tt(a,c,{property:s,element:t?.element});continue}let u=r.style.getPropertyPriority(s);o.push(`${s}: ${a}${u?` !${u}`:""}`)}return o.join("; ")}var Rt=new Set(["href","xlink:href","src","action","formaction","formtarget","cite","poster","background","srcset","ping","data","manifest"]),Xo=new Set(["srcdoc"]);function We(e){return Xo.has(e.toLowerCase())}function $n(e){return Rt.has(e.toLowerCase())}function Qo(e){let t=e.toLowerCase();return t==="style"||Rt.has(t)}function ei(e,t,n){let r=e.toLowerCase();return r==="srcset"?Vo(t):Rt.has(r)?nt(t):r==="style"?ot(t,n):t}function Hn(e,t,n){if(!Qo(e))return t;let r=ei(e,t,n);return r===""?null:r}function Se(e){return e===" "||e===" "||e===`
7
- `||e==="\r"||e==="\f"}function it(e){let t=0,n=e.length;for(;t<n&&Se(e[t]);)t++;for(;n>t&&Se(e[n-1]);)n--;return e.slice(t,n)}var q=e=>({kind:"forbidden",reason:e});function ti(e){let t=it(Oe(e));if(t==="")return q("");let n=0;for(;n<t.length&&t[n]>="0"&&t[n]<="9";)n++;if(n===0)return q("");let r=Number.parseInt(t.slice(0,n),10);if(!Number.isFinite(r))return q("");for(;n<t.length&&Se(t[n]);)n++;if(n===t.length)return{kind:"delay-only",delay:r};if(t[n]!==";"&&t[n]!==",")return q("");for(n++;n<t.length&&Se(t[n]);)n++;let o=n;for(;n<t.length&&!Se(t[n])&&t[n]!=="=";)n++;let i=t.slice(o,n).toLowerCase();if(i!=="url")return q("");for(;n<t.length&&Se(t[n]);)n++;if(t[n]!=="=")return q("");for(n++;n<t.length&&Se(t[n]);)n++;let s,a=t[n];if(a==='"'||a==="'"){let u=t.indexOf(a,n+1);if(u===-1)return q("");if(s=t.slice(n+1,u),it(t.slice(u+1))!=="")return q("")}else if(s=it(t.slice(n)),/[;,]/.test(s))return q("");if(s==="")return q("");let c=nt(s);return c===""?q(""):{kind:"allowed",delay:r,destination:s,sanitizedDestination:c}}function Lt(e){let t,n,r,o=new Set;for(let[i,s]of e){let a=W(i);o.has(a)&&(r=a),o.add(a),a==="http-equiv"?t=s:a==="content"&&(n=s)}return r!==void 0?q(""):typeof t!="string"?{kind:"not-refresh"}:it(Oe(t)).toLowerCase()!=="refresh"?{kind:"not-refresh"}:typeof n!="string"?{kind:"not-refresh"}:ti(n)}var ni="http://www.w3.org/1999/xhtml",ri="http://www.w3.org/2000/svg",oi=new Set(["script","iframe","object","embed","frame","frameset"]);function Pn(e){return W(e)}function Bn(e){return oi.has(Pn(e))}var ii=new Set(["script","style"]);function Fn(e){return ii.has(Pn(e))}var L={None:0,MetaRefreshForbidden:1,MetaRefreshReactive:2,ScriptSource:3,AnimationTarget:4,StylesheetSource:5},si=new Set(["src","href","xlink:href","type","language"]),ai=new Set(["animate","set","animateMotion","animateTransform","animateColor"]),Mt=new WeakSet;function zn(e){return e.namespaceURI===ni||e.namespaceURI===null}function Vn(e,t,n){let r=new Map,o=e.attributes;for(let i=0;i<o.length;i++){let s=o[i];s.name!==t&&r.set(s.name,s.value)}return t!==null&&n!==null&&r.set(t,n),r}function ci(e){Mt.has(e)||(Mt.add(e),e.getAttribute("content")!==null&&Lt(Vn(e,null,null)).kind!=="not-refresh"&&e.removeAttribute("content"))}function ui(e,t,n,r){if(!zn(e))return L.None;let o=W(t);if(o!=="http-equiv"&&o!=="content"||(r==="reactive"&&ci(e),n===null)||o==="content"&&!e.hasAttribute("http-equiv"))return L.None;let i=Lt(Vn(e,o,n));return i.kind==="forbidden"?L.MetaRefreshForbidden:i.kind!=="not-refresh"&&Mt.has(e)?L.MetaRefreshReactive:L.None}function li(e,t){if(t===null||W(e)!=="attributename")return L.None;let n=Oe(t);return $n(n)||pe(n)||We(n)?L.AnimationTarget:L.None}var st=new WeakSet;function In(e){if(e===null)return!1;let t=W(e);if(!t.includes("stylesheet"))return!1;let n=t.split(/[\t\n\f\r ]+/);for(let r=0;r<n.length;r++)if(n[r]==="stylesheet")return!0;return!1}function di(e,t,n,r){if(!zn(e))return L.None;let o=W(t);return o==="href"?r==="static"||n===null?L.None:In(e.getAttribute("rel"))?L.StylesheetSource:(st.add(e),L.None):o==="rel"&&In(n)&&st.has(e)&&e.hasAttribute("href")?L.StylesheetSource:L.None}function Ot(e,t,n,r){let o=e.localName;return o==="meta"?ui(e,t,n,r):o==="link"?di(e,t,n,r):o==="script"?r==="static"||n===null?L.None:si.has(W(t))?L.ScriptSource:L.None:ai.has(o)&&e.namespaceURI===ri?li(t,n):L.None}function Dt(e,t,n){e.localName!=="link"||W(t)!=="href"||(n!=="static"&&e.hasAttribute("href")?st.add(e):st.delete(e))}var fi="http://www.w3.org/1999/xhtml",pi="http://www.w3.org/2000/svg",mi="http://www.w3.org/1999/xlink",gi="http://www.w3.org/XML/1998/namespace",bi=new Set(["checked","disabled","selected"]);function hi(e){return e.namespaceURI===null||e.namespaceURI===fi}function Wn(e,t,n){}function jn(e,t,n){e[t]=n}function yi(e,t){if(e.namespaceURI!==pi)return null;let n=t.toLowerCase();return n.startsWith("xlink:")?mi:n.startsWith("xml:")?gi:null}function Y(e,t,n,r={}){let o=vi(e,t,n,r);return e.localName==="link"&&Dt(e,t,r.reactive?"reactive":"runtime"),o}function vi(e,t,n,r){let o=yi(e,t),i=o?t.slice(t.indexOf(":")+1):t;if(pe(t))return!1,o?e.removeAttributeNS(o,i):e.removeAttribute(t),!1;let s=n==null||n===!1?null:n===!0?"":String(n),a=Ot(e,t,s,r.reactive?"reactive":"runtime");if(a!==L.None)return Wn(r.label??"setSafeAttribute",t,a),o?e.removeAttributeNS(o,i):e.removeAttribute(t),!1;if(n==null)return o?e.removeAttributeNS(o,i):e.removeAttribute(t),!0;if(We(t))return!1,o?e.removeAttributeNS(o,i):e.removeAttribute(t),!1;let c=hi(e),u=c?t.toLowerCase():t;if(typeof n=="boolean"){if(t.length>5&&t.slice(0,5).toLowerCase()==="aria-"){let f=n?"true":"false";return(o?e.getAttributeNS(o,i):e.getAttribute(t))!==f&&(o?e.setAttributeNS(o,t,f):e.setAttribute(t,f)),!0}return c&&bi.has(u)&&u in e?jn(e,u,n):n?o?e.setAttributeNS(o,t,""):e.setAttribute(t,""):o?e.removeAttributeNS(o,i):e.removeAttribute(t),!0}let l=String(n);if(r.syncValueProperty!==!1&&c&&(u==="value"||u==="checked")&&u in e)return jn(e,u,u==="checked"?!!n:l),!0;let m=l===""?"":Hn(t,l,{element:e});return m===null?(o?e.removeAttributeNS(o,i):e.removeAttribute(t),!0):((o?e.getAttributeNS(o,i):e.getAttribute(t))===m||(o?e.setAttributeNS(o,t,m):e.setAttribute(t,m)),!0)}function $t(e,t,n){if(We(t))return!1,!1;let r=Ot(e,t,n,"static");return r!==L.None?(Wn("html (static attribute)",t,r),!1):(e.setAttribute(t,n),e.localName==="link"&&Dt(e,t,"static"),!0)}var Si=4096,Ht=[];function xi(){return{sig:null,sub:null,epoch:0,depVersion:0,sigPrev:null,sigNext:null,subPrev:null,subNext:null,prevActive:null}}function Ei(e,t,n){let r=Ht.pop();if(r)return r.sig=e,r.sub=t,r.epoch=n,r;let o=xi();return o.sig=e,o.sub=t,o.epoch=n,o}function qn(e){e.sig=null,e.sub=null,e.sigPrev=null,e.sigNext=null,e.subPrev=null,e.subNext=null,e.prevActive=null,Ht.length<Si&&Ht.push(e)}function Ti(e,t){let n=e.subsHead??null;t.sigPrev=null,t.sigNext=n,n?n.sigPrev=t:e.subsTail=t,e.subsHead=t,e.__sc=(e.__sc??0)+1}function Un(e){let t=e.sig;if(!t)return;let n=e.sigPrev,r=e.sigNext;n?n.sigNext=r:t.subsHead=r,r?r.sigPrev=n:t.subsTail=n,t.__sc=(t.__sc??1)-1,t.__activeNode===e&&(t.__activeNode=e.prevActive),t.__sc===0&&(t.subsHead=null,t.subsTail=null)}function wi(e,t){let n=e.depsTail??null;t.subPrev=n,t.subNext=null,n?n.subNext=t:e.depsHead=t,e.depsTail=t}function ki(e){let t=e.sub;if(!t)return;let n=e.subPrev,r=e.subNext;n?n.subNext=r:t.depsHead=r,r?r.subPrev=n:t.depsTail=n}var X=null,se=null,me=0,ge=[],Z=new Set,_i=[];function Ai(e){try{e()}catch(t){let n=e;w(t,{phase:n._errorPhase??"effect",name:n.__name,node:n._errorNode})}}function Ci(e){let t=e.depsHead??null;if(t===null)return!0;for(;t!==null;){let n=t.sig;if(n===null)return!0;if(n._d===!0&&n._validate!==void 0)try{n._validate()}catch{return!0}if(t.depVersion!==n.__v)return!0;t=t.subNext}return!1}var oe=0,ae=!1;function Pt(){oe===0&&(se=X,X=null,ae=!0),oe++}function Bt(){oe--,oe===0&&(X=se,se=null,ae=!1)}function Kn(){return ae}function Jn(e){Pt();try{return e()}finally{Bt()}}var U=null;function Ft(){return U}function lt(e,t){let n=U;U=e;try{return t()}finally{U=n}}function zt(e){let t=U;return t===null?e:(...n)=>lt(t,()=>e(...n))}var Ni=0;function Vt(e,t){let n=X,r=0,o=null;ae&&(r=oe,o=se,oe=0,se=null,ae=!1),X=t;let i=t;i._cap===void 0&&(i._cap=kn());let s=U;s!==null&&!i._epoch&&i._scope===void 0&&(i._scope=s);let a=i._scope===void 0?null:i._scope;a!==s&&(U=a);let c=++Ni;i._epoch=c,i._structDirty=!1;for(let u=i.depsHead??null;u!==null;u=u.subNext){let l=u.sig;u.prevActive=l.__activeNode??null,l.__activeNode=u}try{e()}finally{X=n,U=s,r!==0&&(oe=r,se=o,ae=!0);let u=i.depsHead??null;for(;u!==null;){let l=u.subNext,m=u.sig;m.__activeNode=u.prevActive,u.prevActive=null,u.epoch!==c&&(ki(u),Un(u),qn(u)),u=l}}}function Gn(e,t){if(!t)return jt(e);De(t);let n=X,r=0,o=null;ae&&(r=oe,o=se,oe=0,se=null,ae=!1),X=t;let i=t;i._scope===void 0&&(i._scope=U);let s=U;U=i._scope;try{e()}finally{X=n,U=s,r!==0&&(oe=r,se=o,ae=!0);for(let a=i.depsHead??null;a!==null;a=a.subNext){let c=a.sig;c.__activeNode=a.prevActive,a.prevActive=null}}return i._dispose??(i._dispose=()=>De(t))}function jt(e,t){let n=()=>{let o=r;if(!(o._disposed||o._reentrant)){o._reentrant=!0;try{Vt(e,r)}finally{o._reentrant=!1}}},r=n;r.depsHead=null,r.depsTail=null,r._epoch=0,r._structDirty=!1,r._hasComputedDep=!1,r._runEpoch=0,r._runs=0,r._reentrant=!1,r._disposed=!1,r._errorPhase="binding",r._errorNode=t;try{n()}catch(o){throw r._disposed=!0,r._errorNode=void 0,De(r),o}return r._dispose??(r._dispose=()=>{r._disposed=!0,r._errorNode=void 0,De(r)})}function Yn(e){if(!X)return;let t=X,n=e,r=t._epoch??0,o=n.__activeNode??null;if(o!==null&&o.sub===t){o.epoch=r,o.depVersion=n.__v??Number.NaN;return}n._validate!==void 0&&(t._hasComputedDep=!0);let i=Ei(e,t,r);i.depVersion=n.__v??Number.NaN,i.prevActive=o,n.__activeNode=i,wi(t,i),Ti(n,i),t._structDirty=!0}function De(e){let t=e,n=t.depsHead??null;for(t.depsHead=null,t.depsTail=null;n;){let r=n.subNext;Un(n),qn(n),n=r}}var at=1e3,ct=1e6,ut=0,xe=new Set;function Zn(e){let t=at;return Number.isFinite(e)&&e>0&&(at=Math.floor(e)),t}function Xn(e){let t=ct;return Number.isFinite(e)&&e>0&&(ct=Math.floor(e)),t}function Ri(e){let t=e;return t._runEpoch!==ut?(t._runEpoch=ut,t._runs=1,!1):(t._runs=(t._runs??0)+1,t._runs>at)}function Li(e){let t=e.__name??"<unnamed>";w(new Error(`subscriber "${t}" fired more than ${at} times \u2014 likely a write-reads-self cycle between effects/signals. This subscriber is quarantined for the rest of this update; other pending work still runs.`),{phase:"scheduler",name:t})}function Mi(){w(new Error(`Notification drain exceeded ${ct} iterations \u2014 absolute safety net tripped. Breaking to prevent infinite loop.`),{phase:"scheduler"})}function Qn(){let e=0;for(;e<ge.length;){if(e>=ct){Mi();break}let t=ge[e++];if(Z.delete(t),xe.size>0&&xe.has(t)||t._hasComputedDep===!0&&!Ci(t))continue;if(Ri(t)){Li(t),xe.add(t);continue}let n=_n(t._cap??null);try{Ai(t)}finally{n&&An()}}}function er(){if(!(me>0)){me++,ut++;try{Qn()}finally{me--,me===0&&(ge.length=0,Z.clear(),xe.size>0&&xe.clear())}}}function It(e){e();let t=e._sig;if(!t)return;let n=_i,r=n.length;for(n.push(t);n.length>r;){let i=n.pop().subsHead??null;for(;i;){let s=i.sub;if(s)if(s._c){let a=s._sig;a?(!a._d||a._f===!0)&&(a._d=!0,a._f=!1,n.push(a)):s()}else Z.has(s)||(Z.add(s),ge.push(s));i=i.sigNext}}}function tr(e){let n=e.subsHead??null;for(;n;){let r=n.sub;r&&(r._c?It(r):Z.has(r)||(Z.add(r),ge.push(r))),n=n.sigNext}}function nr(e){let n=e.subsHead;if(n){if(me>0){let r=n;for(;r;){let o=r.sub;o&&(o._c?It(o):Z.has(o)||(Z.add(o),ge.push(o))),r=r.sigNext}return}me++,ut++;try{let r=n;for(;r;){let o=r.sub;o&&(o._c?It(o):Z.has(o)||(Z.add(o),ge.push(o))),r=r.sigNext}Qn()}finally{me--,me===0&&(ge.length=0,Z.clear(),xe.size>0&&xe.clear())}}}function rr(e){return e.__sc??0}function or(e){let t=e,n=[],r=t.depsHead??null;for(;r;)r.sig&&n.push(r.sig),r=r.subNext;return n}function ir(e,t){let n=e.subsHead??null;for(;n;){let r=n.sub;r&&t(r),n=n.sigNext}}var sr="4.10.0",ar=Symbol.for("sibujs.reactive.v1");function Di(){let e=globalThis,t=e[ar];if(t)return!1,t;let n={suspendTracking:Pt,resumeTracking:Bt,isTrackingSuspended:Kn,untracked:Jn,retrack:Vt,track:Gn,reactiveBinding:jt,recordDependency:Yn,cleanup:De,setMaxSubscriberRepeats:Zn,setMaxDrainIterations:Xn,drainNotificationQueue:er,queueSignalNotification:tr,notifySubscribers:nr,getSubscriberCount:rr,getSubscriberDeps:or,forEachSubscriber:ir,getOwnerScope:Ft,runWithOwnerScope:lt,bindOwnerScope:zt,version:sr};return e[ar]=n,n}var D=Di(),Ee=D.suspendTracking,Te=D.resumeTracking,cr=D.isTrackingSuspended,Q=D.untracked,be=D.retrack,K=D.track,H=D.reactiveBinding,we=D.recordDependency,ke=D.cleanup,Gu=D.setMaxSubscriberRepeats,ur=D.setMaxDrainIterations,lr=D.drainNotificationQueue,dr=D.queueSignalNotification,$e=D.notifySubscribers,Yu=D.getSubscriberCount,Zu=D.getSubscriberDeps,Xu=D.forEachSubscriber,He=D.getOwnerScope??Ft,dt=D.runWithOwnerScope??lt,B=D.bindOwnerScope??zt;function qe(e,t,n){if(pe(t))return Y(e,t,"",{label:`bindAttribute("${t}")`}),()=>{};function r(){let o;try{o=n()}catch(i){w(i,{phase:"binding",name:`bindAttribute("${t}")`,node:e});return}Y(e,t,o,{label:`bindAttribute("${t}")`,reactive:!0})}return H(r,e)}function fr(e,t,n){let r=null;function o(){let s;try{s=typeof t=="function"?t():t}catch(c){w(c,{phase:"binding",name:"bindDynamic (name getter)",node:e});return}let a;try{a=typeof n=="function"?n():n}catch(c){w(c,{phase:"binding",name:"bindDynamic (value getter)",node:e});return}r!==null&&r!==s&&(e.removeAttribute(r),r=null),Y(e,s,a,{label:"bindDynamic",reactive:!0})&&(r=s)}let i=H(o,e);return()=>{i(),r!==null&&e.removeAttribute(r)}}var Wt=["data-focus-key","id","name"],$i=new Set(["text","search","url","tel","password",""]);function Hi(e){let t=e.tagName;if(!(t==="TEXTAREA"||t==="INPUT"&&$i.has(e.type.toLowerCase())))return{start:null,end:null,direction:null};let r=e;return{start:r.selectionStart,end:r.selectionEnd,direction:r.selectionDirection}}function Ue(e){if(e.length===0||typeof document>"u")return null;let t=document.activeElement;if(!t||t===document.body)return null;let n=!1;for(let i=0;i<e.length;i++){let s=e[i];if(s===t||s.nodeType===1&&s.contains(t)){n=!0;break}}if(!n)return null;let r=null,o=null;for(let i=0;i<Wt.length;i++){let s=t.getAttribute(Wt[i]);if(s){r=Wt[i],o=s;break}}return{el:t,attr:r,value:o,tag:t.tagName,...Hi(t)}}function Ii(e){return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Pi(e,t){let n=null,r=0;for(let o=0;o<e.length;o++){let i=e[o];if(i.nodeType!==1)continue;let s=i;s.matches(t)&&(r++,n??(n=s));let a=s.querySelectorAll(t);for(let c=0;c<a.length;c++)r++,n??(n=a[c]);if(r>1)return{el:null,count:r}}return r===1?{el:n,count:r}:{el:null,count:r}}function pr(e,t){if(e.focus(),t.start!==null&&typeof e.setSelectionRange=="function"){let n=e,r=n.value.length,o=Math.min(t.start,r),i=Math.min(t.end??o,r);n.setSelectionRange(o,i,t.direction??"none")}}function Ie(e,t,n){if(!e||typeof document>"u")return;let r=document.activeElement;if(r===e.el||r&&r!==document.body&&r!==document.documentElement)return;if(e.el.isConnected){pr(e.el,e);return}let o=!1;if(e.attr&&e.value){let{el:i,count:s}=Pi(t,`[${e.attr}=${Ii(e.value)}]`);if(i&&i.tagName===e.tag){pr(i,e);return}o=s>1}}function ce(e,t){let n=[];function r(){let o;try{o=t()}catch(l){w(l,{phase:"binding",name:"bindChildNode",node:e});return}let i=Ue(n);if(o==null||typeof o=="boolean"){for(let l=0;l<n.length;l++){let m=n[l];M(m),m.parentNode&&m.parentNode.removeChild(m)}n.length=0,Ie(i,n,"bindChildNode");return}let s=e.parentNode;if(!s){n.length=0;return}let a;if(Array.isArray(o)){a=[];let l=new Set;for(let m=0;m<o.length;m++){let g=o[m];if(g==null||typeof g=="boolean")continue;let f=g instanceof Node?g:document.createTextNode(String(g));if(l.has(f)){!1;continue}l.add(f),a.push(f)}}else a=[o instanceof Node?o:document.createTextNode(String(o))];let c;if(n.length>0&&a.length>0){let l=new Set(n);c=new Set;for(let m=0;m<a.length;m++)l.has(a[m])&&c.add(a[m])}for(let l=0;l<n.length;l++){let m=n[l];c?.has(m)||(M(m),m.parentNode&&m.parentNode.removeChild(m))}let u=e;for(let l=0;l<a.length;l++){let m=a[l];u.nextSibling!==m&&s.insertBefore(m,u.nextSibling),u=m}n=a,Ie(i,a,"bindChildNode")}return H(r,e)}var R="http://www.w3.org/2000/svg",Bi=new Set(["config","location","history","document","window","navigator","name","top","parent","self","frames"]);var qt=new Set,mr=100,gr=!1,br=new Map;function hr(e){let t=br.get(e);return t!==void 0||(t=e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`),br.set(e,t)),t}function Fi(e,t){if(typeof t=="function"){let r=t,o=[],i=!1,s=H(()=>{let a=r();if(a===null||typeof a!="object"){o=[],i=!0,e.setAttribute("style",ot(String(a),{element:e}));return}let c=e.style;i&&(e.removeAttribute("style"),i=!1);let u=[];for(let l in a){if(!Object.hasOwn(a,l))continue;let m=a[l];if(m==null)continue;let g=hr(l);u.push(g),c.setProperty(g,rt(g,String(m),{element:e}))}for(let l=0;l<o.length;l++)u.indexOf(o[l])===-1&&c.removeProperty(o[l]);o=u},e);x(e,s);return}if(typeof t=="string"){e.setAttribute("style",ot(t,{element:e}));return}let n=e;for(let r in t){if(!Object.hasOwn(t,r))continue;let o=t[r],i=hr(r);if(typeof o=="function"){let s=o,a=H(()=>{n.style.setProperty(i,rt(i,String(s()),{element:e}))},e);x(e,a)}else n.style.setProperty(i,rt(i,String(o),{element:e}))}}function zi(e,t){if(typeof t=="string"){e.setAttribute("class",t);return}if(typeof t=="function"){let i=H(()=>{let s=t();s==null||s===!1?e.removeAttribute("class"):e.setAttribute("class",s)},e);x(e,i);return}let n=t,r=!1,o="";for(let i in n){if(!Object.hasOwn(n,i))continue;let s=n[i];if(typeof s=="function"){r=!0;break}s&&(o=o?`${o} ${i}`:i)}if(r){let s=H(()=>{let a="";for(let c in n){if(!Object.hasOwn(n,c))continue;let u=n[c];(typeof u=="function"?u():u)&&(a=a?`${a} ${c}`:c)}e.setAttribute("class",a)},e);x(e,s)}else e.setAttribute("class",o)}function Ut(e,t){if(typeof t=="string"){e.textContent=t;return}if(typeof t=="number"){e.textContent=String(t);return}if(!(typeof t=="boolean"||t==null)){if(typeof t=="function"){let n=document.createComment("");e.appendChild(n),x(e,ce(n,t));return}if(t instanceof Node){e.appendChild(t);return}if(Array.isArray(t))for(let n=0;n<t.length;n++){let r=t[n];if(typeof r=="function"){let o=document.createComment("");e.appendChild(o),x(e,ce(o,r))}else if(r instanceof Node)e.appendChild(r);else if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];if(typeof i=="function"){let s=document.createComment("");e.appendChild(s),x(e,ce(s,i))}else i instanceof Node?e.appendChild(i):i!=null&&typeof i!="boolean"&&e.appendChild(document.createTextNode(String(i)))}else r!=null&&typeof r!="boolean"&&e.appendChild(document.createTextNode(String(r)))}}}function d(e,t){let n=Bn(e);return(r,o)=>{if(n)throw new Error(`tagFactory: refusing to create <${e}> \u2014 tag is blocked for security reasons.`);let i=t?document.createElementNS(t,e):document.createElement(e);if(r===void 0)return i;if(typeof r=="string")return o!==void 0?(i.setAttribute("class",r),Ut(i,o),i):(i.textContent=r,i);if(typeof r=="number")return i.textContent=String(r),i;if(Array.isArray(r)||r instanceof Node||typeof r=="function")return Ut(i,r),i;let s=r,a=s.class;a!=null&&zi(i,a);let c=s.id;typeof c=="function"?x(i,qe(i,"id",c)):c!=null&&(!1,i.id=c);let u=o!==void 0?o:s.nodes;u!=null&&Ut(i,u);let l=s.on;if(l)for(let f in l){if(!Object.hasOwn(l,f))continue;let p=l[f];typeof p=="function"?i.addEventListener(f,p):!1}let m=s.style;m!=null&&Fi(i,m);let g=s.ref;g&&(g.current=i);for(let f in s)switch(f){case"class":case"id":case"nodes":case"on":case"style":case"ref":case"onElement":continue;default:{if(!Object.hasOwn(s,f))continue;let p=s[f];if(p==null||pe(f))continue;typeof p=="function"?x(i,qe(i,f,p)):Y(i,f,p,{syncValueProperty:!1,label:"tagFactory"})}}return typeof s.onElement=="function"&&s.onElement(i),i}}var Sl=d("html"),Vi=d("head"),ji=d("body"),Wi=d("title"),A=d("div"),$=d("span"),qi=d("section"),Ui=d("article"),Ki=d("header"),Ji=d("footer"),Gi=d("nav"),Yi=d("main"),Zi=d("aside"),Xi=d("address"),Kt=d("p"),Qi=d("h1"),es=d("h2"),Jt=d("h3"),ts=d("h4"),ns=d("h5"),rs=d("h6"),os=d("blockquote"),is=d("dd"),ss=d("dl"),as=d("dt"),cs=d("figcaption"),us=d("figure"),ls=d("hr"),ds=d("li"),fs=d("ol"),ps=d("ul"),Gt=d("pre"),ms=d("a"),gs=d("abbr"),bs=d("b"),hs=d("bdi"),ys=d("bdo"),vs=d("br"),Ss=d("cite"),Yt=d("code"),xs=d("data"),Es=d("dfn"),Ts=d("em"),ws=d("i"),ks=d("kbd"),_s=d("mark"),As=d("q"),Cs=d("rp"),Ns=d("rt"),Rs=d("ruby"),Ls=d("s"),Ms=d("samp"),Os=d("small"),Ds=d("strong"),$s=d("sub"),Hs=d("sup"),Is=d("time"),Ps=d("u"),Bs=d("var"),Fs=d("area"),zs=d("audio"),Vs=d("img"),js=d("map"),Ws=d("track"),qs=d("video"),Us=d("embed"),Ks=d("iframe"),Js=d("object"),Gs=d("param"),Ys=d("picture"),Zs=d("portal"),Xs=d("source"),Qs=d("svg",R),ea=d("math"),ta=d("canvas"),na=d("noscript"),ra=d("script"),oa=d("del"),ia=d("ins"),sa=d("caption"),aa=d("col"),ca=d("colgroup"),ua=d("table"),la=d("tbody"),da=d("td"),fa=d("tfoot"),pa=d("th"),ma=d("thead"),ga=d("tr"),Ke=d("button"),ba=d("datalist"),ha=d("fieldset"),ya=d("form"),va=d("input"),Sa=d("label"),xa=d("legend"),Ea=d("meter"),Ta=d("optgroup"),wa=d("option"),ka=d("output"),_a=d("progress"),Aa=d("select"),Ca=d("textarea"),Na=d("details"),Ra=d("dialog"),La=d("menu"),Ma=d("summary"),Oa=d("slot"),Da=d("template"),$a=d("base"),Ha=d("link"),Ia=d("meta"),_e=d("style"),Pa=d("circle",R),Ba=d("ellipse",R),Fa=d("g",R),za=d("line",R),Va=d("path",R),ja=d("polygon",R),Wa=d("polyline",R),qa=d("rect",R),Ua=d("text",R),Ka=d("tspan",R),Ja=d("defs",R),Ga=d("clipPath",R),Ya=d("mask",R),Za=d("pattern",R),Xa=d("linearGradient",R),Qa=d("radialGradient",R),ec=d("stop",R),tc=d("use",R),nc=d("symbol",R),rc=d("marker",R),oc=d("center"),ic=d("font"),sc=d("marquee"),ac=e=>d(e);var Zt="__sibuPendingError";function yr(e,t){let n=()=>e.parentNode?(w(t,{phase:"render",name:"lazy",node:e}),!0):!1;n()||queueMicrotask(()=>{n()||(e[Zt]=t)})}function ft(e){let t=e,n=t[Zt];if(n instanceof Error)return delete t[Zt],n}function vr(e){let t=null;return function(){if(t)return t();let r=A({class:"sibu-lazy"}),o=!1;return e().then(B(i=>{if(o)return;t=i.default;let s=t();z(r,s)})).catch(i=>{if(o)return;let s=i instanceof Error?i:new Error(String(i));z(r,A({class:"sibu-lazy-error"},`Failed to load component: ${s.message}`)),yr(r,s)}),r.appendChild($("sibu-lazy-loading","Loading...")),x(r,()=>{o=!0}),r}}function Sr({nodes:e,fallback:t}){let n=A({class:"sibu-suspense"}),r=t();n.appendChild(r);let o=!1,i=null,s=null;x(n,()=>{o=!0,i&&(i.disconnect(),i=null),s&&!n.contains(s)&&M(s)});let a=B(()=>{if(!o)try{let c=e();if(s=c,c.classList.contains("sibu-lazy")){if(!c.querySelector(".sibu-lazy-loading")){z(n,c);return}i=new MutationObserver(()=>{if(o)return;c.querySelector(".sibu-lazy-loading")||(i?.disconnect(),i=null,z(n,c))}),i.observe(c,{childList:!0,subtree:!0})}else z(n,c)}catch(c){let u=c instanceof Error?c:new Error(String(c));yr(n,u)}});return queueMicrotask(a),n}function tn(e,t){return()=>He()===e?t():dt(e,t)}function mt(e,t){try{return e()}catch(n){let r=t.toLowerCase().includes("unmount")?"cleanup":"effect";w(n,{phase:r,name:t});return}}function Xt(e,t,n,r,o){let i=mt(e,t);if(typeof i!="function")return;let s=tn(o,i);r()||!n.isConnected?mt(s,"onUnmount"):Er(s,n)}var Pe=new WeakMap,Ae=new WeakMap,ue=new Set,le=new Set,Be=null,pt=0,cc=256;function Qt(e){let t=Pe.get(e);if(t){Pe.delete(e),ue.delete(e);for(let n of t)try{n()}catch{}}}function en(e){Ae.get(e)&&queueMicrotask(()=>{if(e.isConnected)return;let n=Ae.get(e);if(n){Ae.delete(e),le.delete(e);for(let r of n)try{r()}catch{}}})}function uc(e){if(ue.size===0||e.nodeType!==1)return;let t=e;if(ue.has(t)&&t.isConnected&&Qt(t),t.firstElementChild)for(let n of Array.from(ue))n!==t&&n.isConnected&&t.contains(n)&&Qt(n)}function lc(e){if(le.size===0||e.nodeType!==1)return;let t=e;if(le.has(t)&&!t.isConnected&&en(t),t.firstElementChild)for(let n of Array.from(le))n!==t&&!n.isConnected&&t.contains(n)&&en(n)}function dc(){if(ue.size>0)for(let e of Array.from(ue))e.isConnected&&Qt(e);if(le.size>0)for(let e of Array.from(le))e.isConnected||en(e)}function xr(){Be||typeof document>"u"||(Be=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"){if(t.addedNodes.length>0)for(let n=0;n<t.addedNodes.length;n++)uc(t.addedNodes[n]);if(t.removedNodes.length>0)for(let n=0;n<t.removedNodes.length;n++)lc(t.removedNodes[n])}pt+=e.length,pt>=cc&&(pt=0,dc()),nn()}),Be.observe(document.body,{childList:!0,subtree:!0}))}function nn(){Be&&ue.size===0&&le.size===0&&(Be.disconnect(),Be=null,pt=0)}function fc(e,t){let n=Pe.get(e);return n||(n=[],Pe.set(e,n)),n.push(t),ue.add(e),xr(),()=>{let r=Pe.get(e);if(r){let o=r.indexOf(t);o!==-1&&r.splice(o,1),r.length===0&&(Pe.delete(e),ue.delete(e))}nn()}}function pc(e,t){let n=Ae.get(e);return n||(n=[],Ae.set(e,n)),n.push(t),le.add(e),xr(),()=>{let r=Ae.get(e);if(r){let o=r.indexOf(t);o!==-1&&r.splice(o,1),r.length===0&&(Ae.delete(e),le.delete(e))}nn()}}function gt(e,t){if(typeof document>"u")return;let n=He();if(e=tn(n,e),t){let r=!1,o=()=>r;if(x(t,()=>{r=!0}),t.isConnected){queueMicrotask(()=>{r||Xt(e,"onMount",t,o,n)});return}queueMicrotask(()=>{if(r)return;if(t.isConnected){Xt(e,"onMount",t,o,n);return}let i=fc(t,()=>{r||Xt(e,"onMount",t,o,n)});x(t,i)})}else queueMicrotask(()=>{mt(e,"onMount")})}function mc(e,t){typeof document>"u"||Er(tn(He(),e),t)}function Er(e,t){let n=!1,r=()=>{n||(n=!0,mt(e,"onUnmount"))};x(t,r);let o=()=>{if(n)return;let i=pc(t,r);x(t,i)};t.isConnected?o():gt(()=>{o()},t)}function gc(e,t){x(t,e)}function J(e,t,n){try{e.emit(t,n)}catch{}}var rn=Symbol.for("sibujs.ssr.v1");function bc(){let e=null;try{if(typeof process<"u"&&process.versions&&process.versions.node){let t=null,n=process.getBuiltinModule;typeof n=="function"?t=n("node:async_hooks"):typeof Tt=="function"&&(t=Tt("async_hooks")),t&&(e=new t.AsyncLocalStorage)}}catch{e=null}return{als:e,fallbackStore:{ssr:!1,suspenseIdCounter:0,locale:void 0},fallbackDepth:0}}var he=globalThis[rn]??(globalThis[rn]=bc()),Ce=he.als,F=he.fallbackStore;he.fallbackDepth??(he.fallbackDepth=0);var Tr=!1;function hc(){if(Tr||Ce||!(typeof process<"u"&&!!process.versions?.node))return;Tr=!0;let t=process.versions.node;`${t}`}function Ne(){if(Ce){let e=Ce.getStore();if(e)return e}return F}function wr(){return Ce?Ce.getStore()??null:he.fallbackDepth>0?F:null}function ee(){return Ne().ssr}function kr(e){if(!ee())return null;let t=Ne(),n=t.caches??(t.caches=new Map),r=n.get(e);return r||(r=new Map,n.set(e,r)),r}function _r(){Ne().ssr=!0}function Ar(){Ne().ssr=!1}function Cr(e){let t={ssr:!0,suspenseIdCounter:0,idCounter:0,locale:void 0};if(Ce)return Ce.run(t,e);hc();let n=F.ssr,r=F.suspenseIdCounter,o=F.idCounter,i=F.locale;F.ssr=!0,F.suspenseIdCounter=0,F.idCounter=0,F.locale=void 0,he.fallbackDepth++;try{return e()}finally{he.fallbackDepth--,F.ssr=n,F.suspenseIdCounter=r,F.idCounter=o,F.locale=i}}function Nr(e){let t=Ne(),n=t.ssr;t.ssr=!0;try{return e()}finally{n||(t.ssr=!1)}}var Or=globalThis;function yc(e,t){let n,r=!0;return()=>{let o=e();if(r)r=!1,n=o,Q(()=>t(o,void 0));else{let i=n;n=o,Q(()=>t(o,i))}}}var Rr=100;function bt(e){let t=e.userCleanups;if(t.length===0)return;e.userCleanups=[];let n=e.subscriber._scope??null;n===He()?Lr(t):dt(n,()=>Lr(t))}function Lr(e){for(let t=e.length-1;t>=0;t--)try{e[t]()}catch(n){w(n,{phase:"cleanup"})}}function Mr(e){let t=1;do e.rerunPending=!1,e.userCleanups.length>0&&bt(e),be(e.bodyFn,e.subscriber);while(e.rerunPending&&++t<=Rr);e.rerunPending&&(e.rerunPending=!1,w(new Error(`effect re-requested itself ${Rr}+ times \u2014 likely a write-reads-self cycle. Breaking to prevent infinite loop.`),{phase:"effect"}))}function vc(e){if(e.disposed)return;e.disposed=!0;let t=Or.__SIBU_DEVTOOLS_GLOBAL_HOOK__;if(t)try{t.emit("effect:destroy",{effectFn:e.fn})}catch{}try{e.userCleanups.length>0&&bt(e)}catch(n){typeof console<"u"&&console.warn("[SibuJS effect] onCleanup threw during dispose:",n)}try{ke(e.subscriber)}catch(n){typeof console<"u"&&console.warn("[SibuJS effect] dispose threw:",n)}}function G(e,t){if(ee())return()=>{};let n={fn:e,onError:t?.onError,userCleanups:[],running:!1,rerunPending:!1,disposed:!1,onCleanup:null,subscriber:null,bodyFn:null};n.onCleanup=s=>{n.userCleanups.push(s)};let r=n.onError;n.bodyFn=r?()=>{try{n.fn(n.onCleanup)}catch(s){r(s)}}:()=>{n.fn(n.onCleanup)};let o=(()=>{if(!n.disposed){if(n.running){n.rerunPending=!0;return}n.running=!0;try{n.rerunPending=!1,n.userCleanups.length>0&&bt(n),be(n.bodyFn,o),n.rerunPending&&Mr(n)}finally{n.running=!1,n.rerunPending=!1}}});o.depsHead=null,o.depsTail=null,o._epoch=0,o._structDirty=!1,o._hasComputedDep=!1,o._errorPhase="effect",o._runEpoch=0,o._runs=0,n.subscriber=o,n.running=!0;try{be(n.bodyFn,n.subscriber),n.rerunPending&&Mr(n)}catch(s){throw n.disposed=!0,n.userCleanups.length>0&&bt(n),ke(n.subscriber),s}finally{n.running=!1,n.rerunPending=!1}let i=Or.__SIBU_DEVTOOLS_GLOBAL_HOOK__;return i&&J(i,"effect:create",{effectFn:e}),()=>vc(n)}var Je=0,on=new Set;function Sc(e){Je++;try{return e()}finally{Je--,Je===0&&Tc()}}function xc(e){return Je===0?!1:(on.add(e),!0)}function Ec(){return Je>0}function Tc(){try{for(let e of on)dr(e)}finally{on.clear()}lr()}var Dr=Symbol.for("sibujs.reactive.batch.v1");function wc(){let e=globalThis,t=e[Dr];if(t)return t;let n={batch:Sc,enqueueBatchedSignal:xc,isBatching:Ec};return e[Dr]=n,n}var sn=wc(),V=sn.batch,Re=sn.enqueueBatchedSignal,kc=sn.isBatching;var an=globalThis;function C(e,t){let n={value:e,__v:0,__sc:0,subsHead:null,subsTail:null,__activeNode:null,__name:void 0,_d:!1,_validate:void 0},r=void 0,o=t?.equals;r&&(n.__name=r);function i(){return we(n),n.value}i.__signal=n,r&&(i.__name=r);let s;if(o?s=a=>{let c=n.value,u=typeof a=="function"?a(c):a;if(!o(c,u)){if(n.value=u,n.__v++,!1){let l=an.__SIBU_DEVTOOLS_GLOBAL_HOOK__;l&&J(l,"signal:update",{signal:n,name:r,oldValue:c,newValue:u})}Re(n)||$e(n)}}:s=a=>{let c=n.value,u=typeof a=="function"?a(c):a;Object.is(u,c)||(n.value=u,n.__v++,Re(n)||$e(n))},!1){let a=an.__SIBU_DEVTOOLS_GLOBAL_HOOK__;a&&J(a,"signal:create",{signal:n,name:r,getter:i,initial:e})}return[i,s]}function _c(e){let[t,n]=C(0,e?.name?{name:e.name}:void 0);return{track(){t()},invalidate(){n(r=>r+1)}}}var Ac=`
7
+ `||e==="\r"||e==="\f"}function it(e){let t=0,n=e.length;for(;t<n&&Se(e[t]);)t++;for(;n>t&&Se(e[n-1]);)n--;return e.slice(t,n)}var q=e=>({kind:"forbidden",reason:e});function ti(e){let t=it(Oe(e));if(t==="")return q("");let n=0;for(;n<t.length&&t[n]>="0"&&t[n]<="9";)n++;if(n===0)return q("");let r=Number.parseInt(t.slice(0,n),10);if(!Number.isFinite(r))return q("");for(;n<t.length&&Se(t[n]);)n++;if(n===t.length)return{kind:"delay-only",delay:r};if(t[n]!==";"&&t[n]!==",")return q("");for(n++;n<t.length&&Se(t[n]);)n++;let o=n;for(;n<t.length&&!Se(t[n])&&t[n]!=="=";)n++;let i=t.slice(o,n).toLowerCase();if(i!=="url")return q("");for(;n<t.length&&Se(t[n]);)n++;if(t[n]!=="=")return q("");for(n++;n<t.length&&Se(t[n]);)n++;let s,a=t[n];if(a==='"'||a==="'"){let u=t.indexOf(a,n+1);if(u===-1)return q("");if(s=t.slice(n+1,u),it(t.slice(u+1))!=="")return q("")}else if(s=it(t.slice(n)),/[;,]/.test(s))return q("");if(s==="")return q("");let c=nt(s);return c===""?q(""):{kind:"allowed",delay:r,destination:s,sanitizedDestination:c}}function Lt(e){let t,n,r,o=new Set;for(let[i,s]of e){let a=W(i);o.has(a)&&(r=a),o.add(a),a==="http-equiv"?t=s:a==="content"&&(n=s)}return r!==void 0?q(""):typeof t!="string"?{kind:"not-refresh"}:it(Oe(t)).toLowerCase()!=="refresh"?{kind:"not-refresh"}:typeof n!="string"?{kind:"not-refresh"}:ti(n)}var ni="http://www.w3.org/1999/xhtml",ri="http://www.w3.org/2000/svg",oi=new Set(["script","iframe","object","embed","frame","frameset"]);function Pn(e){return W(e)}function Bn(e){return oi.has(Pn(e))}var ii=new Set(["script","style"]);function Fn(e){return ii.has(Pn(e))}var L={None:0,MetaRefreshForbidden:1,MetaRefreshReactive:2,ScriptSource:3,AnimationTarget:4,StylesheetSource:5},si=new Set(["src","href","xlink:href","type","language"]),ai=new Set(["animate","set","animateMotion","animateTransform","animateColor"]),Mt=new WeakSet;function zn(e){return e.namespaceURI===ni||e.namespaceURI===null}function Vn(e,t,n){let r=new Map,o=e.attributes;for(let i=0;i<o.length;i++){let s=o[i];s.name!==t&&r.set(s.name,s.value)}return t!==null&&n!==null&&r.set(t,n),r}function ci(e){Mt.has(e)||(Mt.add(e),e.getAttribute("content")!==null&&Lt(Vn(e,null,null)).kind!=="not-refresh"&&e.removeAttribute("content"))}function ui(e,t,n,r){if(!zn(e))return L.None;let o=W(t);if(o!=="http-equiv"&&o!=="content"||(r==="reactive"&&ci(e),n===null)||o==="content"&&!e.hasAttribute("http-equiv"))return L.None;let i=Lt(Vn(e,o,n));return i.kind==="forbidden"?L.MetaRefreshForbidden:i.kind!=="not-refresh"&&Mt.has(e)?L.MetaRefreshReactive:L.None}function li(e,t){if(t===null||W(e)!=="attributename")return L.None;let n=Oe(t);return $n(n)||pe(n)||We(n)?L.AnimationTarget:L.None}var st=new WeakSet;function In(e){if(e===null)return!1;let t=W(e);if(!t.includes("stylesheet"))return!1;let n=t.split(/[\t\n\f\r ]+/);for(let r=0;r<n.length;r++)if(n[r]==="stylesheet")return!0;return!1}function di(e,t,n,r){if(!zn(e))return L.None;let o=W(t);return o==="href"?r==="static"||n===null?L.None:In(e.getAttribute("rel"))?L.StylesheetSource:(st.add(e),L.None):o==="rel"&&In(n)&&st.has(e)&&e.hasAttribute("href")?L.StylesheetSource:L.None}function Ot(e,t,n,r){let o=e.localName;return o==="meta"?ui(e,t,n,r):o==="link"?di(e,t,n,r):o==="script"?r==="static"||n===null?L.None:si.has(W(t))?L.ScriptSource:L.None:ai.has(o)&&e.namespaceURI===ri?li(t,n):L.None}function Dt(e,t,n){e.localName!=="link"||W(t)!=="href"||(n!=="static"&&e.hasAttribute("href")?st.add(e):st.delete(e))}var fi="http://www.w3.org/1999/xhtml",pi="http://www.w3.org/2000/svg",mi="http://www.w3.org/1999/xlink",gi="http://www.w3.org/XML/1998/namespace",bi=new Set(["checked","disabled","selected"]);function hi(e){return e.namespaceURI===null||e.namespaceURI===fi}function Wn(e,t,n){}function jn(e,t,n){e[t]=n}function yi(e,t){if(e.namespaceURI!==pi)return null;let n=t.toLowerCase();return n.startsWith("xlink:")?mi:n.startsWith("xml:")?gi:null}function Y(e,t,n,r={}){let o=vi(e,t,n,r);return e.localName==="link"&&Dt(e,t,r.reactive?"reactive":"runtime"),o}function vi(e,t,n,r){let o=yi(e,t),i=o?t.slice(t.indexOf(":")+1):t;if(pe(t))return!1,o?e.removeAttributeNS(o,i):e.removeAttribute(t),!1;let s=n==null||n===!1?null:n===!0?"":String(n),a=Ot(e,t,s,r.reactive?"reactive":"runtime");if(a!==L.None)return Wn(r.label??"setSafeAttribute",t,a),o?e.removeAttributeNS(o,i):e.removeAttribute(t),!1;if(n==null)return o?e.removeAttributeNS(o,i):e.removeAttribute(t),!0;if(We(t))return!1,o?e.removeAttributeNS(o,i):e.removeAttribute(t),!1;let c=hi(e),u=c?t.toLowerCase():t;if(typeof n=="boolean"){if(t.length>5&&t.slice(0,5).toLowerCase()==="aria-"){let f=n?"true":"false";return(o?e.getAttributeNS(o,i):e.getAttribute(t))!==f&&(o?e.setAttributeNS(o,t,f):e.setAttribute(t,f)),!0}return c&&bi.has(u)&&u in e?jn(e,u,n):n?o?e.setAttributeNS(o,t,""):e.setAttribute(t,""):o?e.removeAttributeNS(o,i):e.removeAttribute(t),!0}let l=String(n);if(r.syncValueProperty!==!1&&c&&(u==="value"||u==="checked")&&u in e)return jn(e,u,u==="checked"?!!n:l),!0;let m=l===""?"":Hn(t,l,{element:e});return m===null?(o?e.removeAttributeNS(o,i):e.removeAttribute(t),!0):((o?e.getAttributeNS(o,i):e.getAttribute(t))===m||(o?e.setAttributeNS(o,t,m):e.setAttribute(t,m)),!0)}function $t(e,t,n){if(We(t))return!1,!1;let r=Ot(e,t,n,"static");return r!==L.None?(Wn("html (static attribute)",t,r),!1):(e.setAttribute(t,n),e.localName==="link"&&Dt(e,t,"static"),!0)}var Si=4096,Ht=[];function xi(){return{sig:null,sub:null,epoch:0,depVersion:0,sigPrev:null,sigNext:null,subPrev:null,subNext:null,prevActive:null}}function Ei(e,t,n){let r=Ht.pop();if(r)return r.sig=e,r.sub=t,r.epoch=n,r;let o=xi();return o.sig=e,o.sub=t,o.epoch=n,o}function qn(e){e.sig=null,e.sub=null,e.sigPrev=null,e.sigNext=null,e.subPrev=null,e.subNext=null,e.prevActive=null,Ht.length<Si&&Ht.push(e)}function Ti(e,t){let n=e.subsHead??null;t.sigPrev=null,t.sigNext=n,n?n.sigPrev=t:e.subsTail=t,e.subsHead=t,e.__sc=(e.__sc??0)+1}function Un(e){let t=e.sig;if(!t)return;let n=e.sigPrev,r=e.sigNext;n?n.sigNext=r:t.subsHead=r,r?r.sigPrev=n:t.subsTail=n,t.__sc=(t.__sc??1)-1,t.__activeNode===e&&(t.__activeNode=e.prevActive),t.__sc===0&&(t.subsHead=null,t.subsTail=null)}function wi(e,t){let n=e.depsTail??null;t.subPrev=n,t.subNext=null,n?n.subNext=t:e.depsHead=t,e.depsTail=t}function ki(e){let t=e.sub;if(!t)return;let n=e.subPrev,r=e.subNext;n?n.subNext=r:t.depsHead=r,r?r.subPrev=n:t.depsTail=n}var X=null,se=null,me=0,ge=[],Z=new Set,_i=[];function Ai(e){try{e()}catch(t){let n=e;w(t,{phase:n._errorPhase??"effect",name:n.__name,node:n._errorNode})}}function Ci(e){let t=e.depsHead??null;if(t===null)return!0;for(;t!==null;){let n=t.sig;if(n===null)return!0;if(n._d===!0&&n._validate!==void 0)try{n._validate()}catch{return!0}if(t.depVersion!==n.__v)return!0;t=t.subNext}return!1}var oe=0,ae=!1;function Pt(){oe===0&&(se=X,X=null,ae=!0),oe++}function Bt(){oe--,oe===0&&(X=se,se=null,ae=!1)}function Kn(){return ae}function Jn(e){Pt();try{return e()}finally{Bt()}}var U=null;function Ft(){return U}function lt(e,t){let n=U;U=e;try{return t()}finally{U=n}}function zt(e){let t=U;return t===null?e:(...n)=>lt(t,()=>e(...n))}var Ni=0;function Vt(e,t){let n=X,r=0,o=null;ae&&(r=oe,o=se,oe=0,se=null,ae=!1),X=t;let i=t;i._cap===void 0&&(i._cap=kn());let s=U;s!==null&&!i._epoch&&i._scope===void 0&&(i._scope=s);let a=i._scope===void 0?null:i._scope;a!==s&&(U=a);let c=++Ni;i._epoch=c,i._structDirty=!1;for(let u=i.depsHead??null;u!==null;u=u.subNext){let l=u.sig;u.prevActive=l.__activeNode??null,l.__activeNode=u}try{e()}finally{X=n,U=s,r!==0&&(oe=r,se=o,ae=!0);let u=i.depsHead??null;for(;u!==null;){let l=u.subNext,m=u.sig;m.__activeNode=u.prevActive,u.prevActive=null,u.epoch!==c&&(ki(u),Un(u),qn(u)),u=l}}}function Gn(e,t){if(!t)return jt(e);De(t);let n=X,r=0,o=null;ae&&(r=oe,o=se,oe=0,se=null,ae=!1),X=t;let i=t;i._scope===void 0&&(i._scope=U);let s=U;U=i._scope;try{e()}finally{X=n,U=s,r!==0&&(oe=r,se=o,ae=!0);for(let a=i.depsHead??null;a!==null;a=a.subNext){let c=a.sig;c.__activeNode=a.prevActive,a.prevActive=null}}return i._dispose??(i._dispose=()=>De(t))}function jt(e,t){let n=()=>{let o=r;if(!(o._disposed||o._reentrant)){o._reentrant=!0;try{Vt(e,r)}finally{o._reentrant=!1}}},r=n;r.depsHead=null,r.depsTail=null,r._epoch=0,r._structDirty=!1,r._hasComputedDep=!1,r._runEpoch=0,r._runs=0,r._reentrant=!1,r._disposed=!1,r._errorPhase="binding",r._errorNode=t;try{n()}catch(o){throw r._disposed=!0,r._errorNode=void 0,De(r),o}return r._dispose??(r._dispose=()=>{r._disposed=!0,r._errorNode=void 0,De(r)})}function Yn(e){if(!X)return;let t=X,n=e,r=t._epoch??0,o=n.__activeNode??null;if(o!==null&&o.sub===t){o.epoch=r,o.depVersion=n.__v??Number.NaN;return}n._validate!==void 0&&(t._hasComputedDep=!0);let i=Ei(e,t,r);i.depVersion=n.__v??Number.NaN,i.prevActive=o,n.__activeNode=i,wi(t,i),Ti(n,i),t._structDirty=!0}function De(e){let t=e,n=t.depsHead??null;for(t.depsHead=null,t.depsTail=null;n;){let r=n.subNext;Un(n),qn(n),n=r}}var at=1e3,ct=1e6,ut=0,xe=new Set;function Zn(e){let t=at;return Number.isFinite(e)&&e>0&&(at=Math.floor(e)),t}function Xn(e){let t=ct;return Number.isFinite(e)&&e>0&&(ct=Math.floor(e)),t}function Ri(e){let t=e;return t._runEpoch!==ut?(t._runEpoch=ut,t._runs=1,!1):(t._runs=(t._runs??0)+1,t._runs>at)}function Li(e){let t=e.__name??"<unnamed>";w(new Error(`subscriber "${t}" fired more than ${at} times \u2014 likely a write-reads-self cycle between effects/signals. This subscriber is quarantined for the rest of this update; other pending work still runs.`),{phase:"scheduler",name:t})}function Mi(){w(new Error(`Notification drain exceeded ${ct} iterations \u2014 absolute safety net tripped. Breaking to prevent infinite loop.`),{phase:"scheduler"})}function Qn(){let e=0;for(;e<ge.length;){if(e>=ct){Mi();break}let t=ge[e++];if(Z.delete(t),xe.size>0&&xe.has(t)||t._hasComputedDep===!0&&!Ci(t))continue;if(Ri(t)){Li(t),xe.add(t);continue}let n=_n(t._cap??null);try{Ai(t)}finally{n&&An()}}}function er(){if(!(me>0)){me++,ut++;try{Qn()}finally{me--,me===0&&(ge.length=0,Z.clear(),xe.size>0&&xe.clear())}}}function It(e){e();let t=e._sig;if(!t)return;let n=_i,r=n.length;for(n.push(t);n.length>r;){let i=n.pop().subsHead??null;for(;i;){let s=i.sub;if(s)if(s._c){let a=s._sig;a?(!a._d||a._f===!0)&&(a._d=!0,a._f=!1,n.push(a)):s()}else Z.has(s)||(Z.add(s),ge.push(s));i=i.sigNext}}}function tr(e){let n=e.subsHead??null;for(;n;){let r=n.sub;r&&(r._c?It(r):Z.has(r)||(Z.add(r),ge.push(r))),n=n.sigNext}}function nr(e){let n=e.subsHead;if(n){if(me>0){let r=n;for(;r;){let o=r.sub;o&&(o._c?It(o):Z.has(o)||(Z.add(o),ge.push(o))),r=r.sigNext}return}me++,ut++;try{let r=n;for(;r;){let o=r.sub;o&&(o._c?It(o):Z.has(o)||(Z.add(o),ge.push(o))),r=r.sigNext}Qn()}finally{me--,me===0&&(ge.length=0,Z.clear(),xe.size>0&&xe.clear())}}}function rr(e){return e.__sc??0}function or(e){let t=e,n=[],r=t.depsHead??null;for(;r;)r.sig&&n.push(r.sig),r=r.subNext;return n}function ir(e,t){let n=e.subsHead??null;for(;n;){let r=n.sub;r&&t(r),n=n.sigNext}}var sr="4.10.1",ar=Symbol.for("sibujs.reactive.v1");function Di(){let e=globalThis,t=e[ar];if(t)return!1,t;let n={suspendTracking:Pt,resumeTracking:Bt,isTrackingSuspended:Kn,untracked:Jn,retrack:Vt,track:Gn,reactiveBinding:jt,recordDependency:Yn,cleanup:De,setMaxSubscriberRepeats:Zn,setMaxDrainIterations:Xn,drainNotificationQueue:er,queueSignalNotification:tr,notifySubscribers:nr,getSubscriberCount:rr,getSubscriberDeps:or,forEachSubscriber:ir,getOwnerScope:Ft,runWithOwnerScope:lt,bindOwnerScope:zt,version:sr};return e[ar]=n,n}var D=Di(),Ee=D.suspendTracking,Te=D.resumeTracking,cr=D.isTrackingSuspended,Q=D.untracked,be=D.retrack,K=D.track,H=D.reactiveBinding,we=D.recordDependency,ke=D.cleanup,Gu=D.setMaxSubscriberRepeats,ur=D.setMaxDrainIterations,lr=D.drainNotificationQueue,dr=D.queueSignalNotification,$e=D.notifySubscribers,Yu=D.getSubscriberCount,Zu=D.getSubscriberDeps,Xu=D.forEachSubscriber,He=D.getOwnerScope??Ft,dt=D.runWithOwnerScope??lt,B=D.bindOwnerScope??zt;function qe(e,t,n){if(pe(t))return Y(e,t,"",{label:`bindAttribute("${t}")`}),()=>{};function r(){let o;try{o=n()}catch(i){w(i,{phase:"binding",name:`bindAttribute("${t}")`,node:e});return}Y(e,t,o,{label:`bindAttribute("${t}")`,reactive:!0})}return H(r,e)}function fr(e,t,n){let r=null;function o(){let s;try{s=typeof t=="function"?t():t}catch(c){w(c,{phase:"binding",name:"bindDynamic (name getter)",node:e});return}let a;try{a=typeof n=="function"?n():n}catch(c){w(c,{phase:"binding",name:"bindDynamic (value getter)",node:e});return}r!==null&&r!==s&&(e.removeAttribute(r),r=null),Y(e,s,a,{label:"bindDynamic",reactive:!0})&&(r=s)}let i=H(o,e);return()=>{i(),r!==null&&e.removeAttribute(r)}}var Wt=["data-focus-key","id","name"],$i=new Set(["text","search","url","tel","password",""]);function Hi(e){let t=e.tagName;if(!(t==="TEXTAREA"||t==="INPUT"&&$i.has(e.type.toLowerCase())))return{start:null,end:null,direction:null};let r=e;return{start:r.selectionStart,end:r.selectionEnd,direction:r.selectionDirection}}function Ue(e){if(e.length===0||typeof document>"u")return null;let t=document.activeElement;if(!t||t===document.body)return null;let n=!1;for(let i=0;i<e.length;i++){let s=e[i];if(s===t||s.nodeType===1&&s.contains(t)){n=!0;break}}if(!n)return null;let r=null,o=null;for(let i=0;i<Wt.length;i++){let s=t.getAttribute(Wt[i]);if(s){r=Wt[i],o=s;break}}return{el:t,attr:r,value:o,tag:t.tagName,...Hi(t)}}function Ii(e){return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Pi(e,t){let n=null,r=0;for(let o=0;o<e.length;o++){let i=e[o];if(i.nodeType!==1)continue;let s=i;s.matches(t)&&(r++,n??(n=s));let a=s.querySelectorAll(t);for(let c=0;c<a.length;c++)r++,n??(n=a[c]);if(r>1)return{el:null,count:r}}return r===1?{el:n,count:r}:{el:null,count:r}}function pr(e,t){if(e.focus(),t.start!==null&&typeof e.setSelectionRange=="function"){let n=e,r=n.value.length,o=Math.min(t.start,r),i=Math.min(t.end??o,r);n.setSelectionRange(o,i,t.direction??"none")}}function Ie(e,t,n){if(!e||typeof document>"u")return;let r=document.activeElement;if(r===e.el||r&&r!==document.body&&r!==document.documentElement)return;if(e.el.isConnected){pr(e.el,e);return}let o=!1;if(e.attr&&e.value){let{el:i,count:s}=Pi(t,`[${e.attr}=${Ii(e.value)}]`);if(i&&i.tagName===e.tag){pr(i,e);return}o=s>1}}function ce(e,t){let n=[];function r(){let o;try{o=t()}catch(l){w(l,{phase:"binding",name:"bindChildNode",node:e});return}let i=Ue(n);if(o==null||typeof o=="boolean"){for(let l=0;l<n.length;l++){let m=n[l];M(m),m.parentNode&&m.parentNode.removeChild(m)}n.length=0,Ie(i,n,"bindChildNode");return}let s=e.parentNode;if(!s){n.length=0;return}let a;if(Array.isArray(o)){a=[];let l=new Set;for(let m=0;m<o.length;m++){let g=o[m];if(g==null||typeof g=="boolean")continue;let f=g instanceof Node?g:document.createTextNode(String(g));if(l.has(f)){!1;continue}l.add(f),a.push(f)}}else a=[o instanceof Node?o:document.createTextNode(String(o))];let c;if(n.length>0&&a.length>0){let l=new Set(n);c=new Set;for(let m=0;m<a.length;m++)l.has(a[m])&&c.add(a[m])}for(let l=0;l<n.length;l++){let m=n[l];c?.has(m)||(M(m),m.parentNode&&m.parentNode.removeChild(m))}let u=e;for(let l=0;l<a.length;l++){let m=a[l];u.nextSibling!==m&&s.insertBefore(m,u.nextSibling),u=m}n=a,Ie(i,a,"bindChildNode")}return H(r,e)}var R="http://www.w3.org/2000/svg",Bi=new Set(["config","location","history","document","window","navigator","name","top","parent","self","frames"]);var qt=new Set,mr=100,gr=!1,br=new Map;function hr(e){let t=br.get(e);return t!==void 0||(t=e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`),br.set(e,t)),t}function Fi(e,t){if(typeof t=="function"){let r=t,o=[],i=!1,s=H(()=>{let a=r();if(a===null||typeof a!="object"){o=[],i=!0,e.setAttribute("style",ot(String(a),{element:e}));return}let c=e.style;i&&(e.removeAttribute("style"),i=!1);let u=[];for(let l in a){if(!Object.hasOwn(a,l))continue;let m=a[l];if(m==null)continue;let g=hr(l);u.push(g),c.setProperty(g,rt(g,String(m),{element:e}))}for(let l=0;l<o.length;l++)u.indexOf(o[l])===-1&&c.removeProperty(o[l]);o=u},e);x(e,s);return}if(typeof t=="string"){e.setAttribute("style",ot(t,{element:e}));return}let n=e;for(let r in t){if(!Object.hasOwn(t,r))continue;let o=t[r],i=hr(r);if(typeof o=="function"){let s=o,a=H(()=>{n.style.setProperty(i,rt(i,String(s()),{element:e}))},e);x(e,a)}else n.style.setProperty(i,rt(i,String(o),{element:e}))}}function zi(e,t){if(typeof t=="string"){e.setAttribute("class",t);return}if(typeof t=="function"){let i=H(()=>{let s=t();s==null||s===!1?e.removeAttribute("class"):e.setAttribute("class",s)},e);x(e,i);return}let n=t,r=!1,o="";for(let i in n){if(!Object.hasOwn(n,i))continue;let s=n[i];if(typeof s=="function"){r=!0;break}s&&(o=o?`${o} ${i}`:i)}if(r){let s=H(()=>{let a="";for(let c in n){if(!Object.hasOwn(n,c))continue;let u=n[c];(typeof u=="function"?u():u)&&(a=a?`${a} ${c}`:c)}e.setAttribute("class",a)},e);x(e,s)}else e.setAttribute("class",o)}function Ut(e,t){if(typeof t=="string"){e.textContent=t;return}if(typeof t=="number"){e.textContent=String(t);return}if(!(typeof t=="boolean"||t==null)){if(typeof t=="function"){let n=document.createComment("");e.appendChild(n),x(e,ce(n,t));return}if(t instanceof Node){e.appendChild(t);return}if(Array.isArray(t))for(let n=0;n<t.length;n++){let r=t[n];if(typeof r=="function"){let o=document.createComment("");e.appendChild(o),x(e,ce(o,r))}else if(r instanceof Node)e.appendChild(r);else if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];if(typeof i=="function"){let s=document.createComment("");e.appendChild(s),x(e,ce(s,i))}else i instanceof Node?e.appendChild(i):i!=null&&typeof i!="boolean"&&e.appendChild(document.createTextNode(String(i)))}else r!=null&&typeof r!="boolean"&&e.appendChild(document.createTextNode(String(r)))}}}function d(e,t){let n=Bn(e);return(r,o)=>{if(n)throw new Error(`tagFactory: refusing to create <${e}> \u2014 tag is blocked for security reasons.`);let i=t?document.createElementNS(t,e):document.createElement(e);if(r===void 0)return i;if(typeof r=="string")return o!==void 0?(i.setAttribute("class",r),Ut(i,o),i):(i.textContent=r,i);if(typeof r=="number")return i.textContent=String(r),i;if(Array.isArray(r)||r instanceof Node||typeof r=="function")return Ut(i,r),i;let s=r,a=s.class;a!=null&&zi(i,a);let c=s.id;typeof c=="function"?x(i,qe(i,"id",c)):c!=null&&(!1,i.id=c);let u=o!==void 0?o:s.nodes;u!=null&&Ut(i,u);let l=s.on;if(l)for(let f in l){if(!Object.hasOwn(l,f))continue;let p=l[f];typeof p=="function"?i.addEventListener(f,p):!1}let m=s.style;m!=null&&Fi(i,m);let g=s.ref;g&&(g.current=i);for(let f in s)switch(f){case"class":case"id":case"nodes":case"on":case"style":case"ref":case"onElement":continue;default:{if(!Object.hasOwn(s,f))continue;let p=s[f];if(p==null||pe(f))continue;typeof p=="function"?x(i,qe(i,f,p)):Y(i,f,p,{syncValueProperty:!1,label:"tagFactory"})}}return typeof s.onElement=="function"&&s.onElement(i),i}}var Sl=d("html"),Vi=d("head"),ji=d("body"),Wi=d("title"),A=d("div"),$=d("span"),qi=d("section"),Ui=d("article"),Ki=d("header"),Ji=d("footer"),Gi=d("nav"),Yi=d("main"),Zi=d("aside"),Xi=d("address"),Kt=d("p"),Qi=d("h1"),es=d("h2"),Jt=d("h3"),ts=d("h4"),ns=d("h5"),rs=d("h6"),os=d("blockquote"),is=d("dd"),ss=d("dl"),as=d("dt"),cs=d("figcaption"),us=d("figure"),ls=d("hr"),ds=d("li"),fs=d("ol"),ps=d("ul"),Gt=d("pre"),ms=d("a"),gs=d("abbr"),bs=d("b"),hs=d("bdi"),ys=d("bdo"),vs=d("br"),Ss=d("cite"),Yt=d("code"),xs=d("data"),Es=d("dfn"),Ts=d("em"),ws=d("i"),ks=d("kbd"),_s=d("mark"),As=d("q"),Cs=d("rp"),Ns=d("rt"),Rs=d("ruby"),Ls=d("s"),Ms=d("samp"),Os=d("small"),Ds=d("strong"),$s=d("sub"),Hs=d("sup"),Is=d("time"),Ps=d("u"),Bs=d("var"),Fs=d("area"),zs=d("audio"),Vs=d("img"),js=d("map"),Ws=d("track"),qs=d("video"),Us=d("embed"),Ks=d("iframe"),Js=d("object"),Gs=d("param"),Ys=d("picture"),Zs=d("portal"),Xs=d("source"),Qs=d("svg",R),ea=d("math"),ta=d("canvas"),na=d("noscript"),ra=d("script"),oa=d("del"),ia=d("ins"),sa=d("caption"),aa=d("col"),ca=d("colgroup"),ua=d("table"),la=d("tbody"),da=d("td"),fa=d("tfoot"),pa=d("th"),ma=d("thead"),ga=d("tr"),Ke=d("button"),ba=d("datalist"),ha=d("fieldset"),ya=d("form"),va=d("input"),Sa=d("label"),xa=d("legend"),Ea=d("meter"),Ta=d("optgroup"),wa=d("option"),ka=d("output"),_a=d("progress"),Aa=d("select"),Ca=d("textarea"),Na=d("details"),Ra=d("dialog"),La=d("menu"),Ma=d("summary"),Oa=d("slot"),Da=d("template"),$a=d("base"),Ha=d("link"),Ia=d("meta"),_e=d("style"),Pa=d("circle",R),Ba=d("ellipse",R),Fa=d("g",R),za=d("line",R),Va=d("path",R),ja=d("polygon",R),Wa=d("polyline",R),qa=d("rect",R),Ua=d("text",R),Ka=d("tspan",R),Ja=d("defs",R),Ga=d("clipPath",R),Ya=d("mask",R),Za=d("pattern",R),Xa=d("linearGradient",R),Qa=d("radialGradient",R),ec=d("stop",R),tc=d("use",R),nc=d("symbol",R),rc=d("marker",R),oc=d("center"),ic=d("font"),sc=d("marquee"),ac=e=>d(e);var Zt="__sibuPendingError";function yr(e,t){let n=()=>e.parentNode?(w(t,{phase:"render",name:"lazy",node:e}),!0):!1;n()||queueMicrotask(()=>{n()||(e[Zt]=t)})}function ft(e){let t=e,n=t[Zt];if(n instanceof Error)return delete t[Zt],n}function vr(e){let t=null;return function(){if(t)return t();let r=A({class:"sibu-lazy"}),o=!1;return e().then(B(i=>{if(o)return;t=i.default;let s=t();z(r,s)})).catch(i=>{if(o)return;let s=i instanceof Error?i:new Error(String(i));z(r,A({class:"sibu-lazy-error"},`Failed to load component: ${s.message}`)),yr(r,s)}),r.appendChild($("sibu-lazy-loading","Loading...")),x(r,()=>{o=!0}),r}}function Sr({nodes:e,fallback:t}){let n=A({class:"sibu-suspense"}),r=t();n.appendChild(r);let o=!1,i=null,s=null;x(n,()=>{o=!0,i&&(i.disconnect(),i=null),s&&!n.contains(s)&&M(s)});let a=B(()=>{if(!o)try{let c=e();if(s=c,c.classList.contains("sibu-lazy")){if(!c.querySelector(".sibu-lazy-loading")){z(n,c);return}i=new MutationObserver(()=>{if(o)return;c.querySelector(".sibu-lazy-loading")||(i?.disconnect(),i=null,z(n,c))}),i.observe(c,{childList:!0,subtree:!0})}else z(n,c)}catch(c){let u=c instanceof Error?c:new Error(String(c));yr(n,u)}});return queueMicrotask(a),n}function tn(e,t){return()=>He()===e?t():dt(e,t)}function mt(e,t){try{return e()}catch(n){let r=t.toLowerCase().includes("unmount")?"cleanup":"effect";w(n,{phase:r,name:t});return}}function Xt(e,t,n,r,o){let i=mt(e,t);if(typeof i!="function")return;let s=tn(o,i);r()||!n.isConnected?mt(s,"onUnmount"):Er(s,n)}var Pe=new WeakMap,Ae=new WeakMap,ue=new Set,le=new Set,Be=null,pt=0,cc=256;function Qt(e){let t=Pe.get(e);if(t){Pe.delete(e),ue.delete(e);for(let n of t)try{n()}catch{}}}function en(e){Ae.get(e)&&queueMicrotask(()=>{if(e.isConnected)return;let n=Ae.get(e);if(n){Ae.delete(e),le.delete(e);for(let r of n)try{r()}catch{}}})}function uc(e){if(ue.size===0||e.nodeType!==1)return;let t=e;if(ue.has(t)&&t.isConnected&&Qt(t),t.firstElementChild)for(let n of Array.from(ue))n!==t&&n.isConnected&&t.contains(n)&&Qt(n)}function lc(e){if(le.size===0||e.nodeType!==1)return;let t=e;if(le.has(t)&&!t.isConnected&&en(t),t.firstElementChild)for(let n of Array.from(le))n!==t&&!n.isConnected&&t.contains(n)&&en(n)}function dc(){if(ue.size>0)for(let e of Array.from(ue))e.isConnected&&Qt(e);if(le.size>0)for(let e of Array.from(le))e.isConnected||en(e)}function xr(){Be||typeof document>"u"||(Be=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"){if(t.addedNodes.length>0)for(let n=0;n<t.addedNodes.length;n++)uc(t.addedNodes[n]);if(t.removedNodes.length>0)for(let n=0;n<t.removedNodes.length;n++)lc(t.removedNodes[n])}pt+=e.length,pt>=cc&&(pt=0,dc()),nn()}),Be.observe(document.body,{childList:!0,subtree:!0}))}function nn(){Be&&ue.size===0&&le.size===0&&(Be.disconnect(),Be=null,pt=0)}function fc(e,t){let n=Pe.get(e);return n||(n=[],Pe.set(e,n)),n.push(t),ue.add(e),xr(),()=>{let r=Pe.get(e);if(r){let o=r.indexOf(t);o!==-1&&r.splice(o,1),r.length===0&&(Pe.delete(e),ue.delete(e))}nn()}}function pc(e,t){let n=Ae.get(e);return n||(n=[],Ae.set(e,n)),n.push(t),le.add(e),xr(),()=>{let r=Ae.get(e);if(r){let o=r.indexOf(t);o!==-1&&r.splice(o,1),r.length===0&&(Ae.delete(e),le.delete(e))}nn()}}function gt(e,t){if(typeof document>"u")return;let n=He();if(e=tn(n,e),t){let r=!1,o=()=>r;if(x(t,()=>{r=!0}),t.isConnected){queueMicrotask(()=>{r||Xt(e,"onMount",t,o,n)});return}queueMicrotask(()=>{if(r)return;if(t.isConnected){Xt(e,"onMount",t,o,n);return}let i=fc(t,()=>{r||Xt(e,"onMount",t,o,n)});x(t,i)})}else queueMicrotask(()=>{mt(e,"onMount")})}function mc(e,t){typeof document>"u"||Er(tn(He(),e),t)}function Er(e,t){let n=!1,r=()=>{n||(n=!0,mt(e,"onUnmount"))};x(t,r);let o=()=>{if(n)return;let i=pc(t,r);x(t,i)};t.isConnected?o():gt(()=>{o()},t)}function gc(e,t){x(t,e)}function J(e,t,n){try{e.emit(t,n)}catch{}}var rn=Symbol.for("sibujs.ssr.v1");function bc(){let e=null;try{if(typeof process<"u"&&process.versions&&process.versions.node){let t=null,n=process.getBuiltinModule;typeof n=="function"?t=n("node:async_hooks"):typeof Tt=="function"&&(t=Tt("async_hooks")),t&&(e=new t.AsyncLocalStorage)}}catch{e=null}return{als:e,fallbackStore:{ssr:!1,suspenseIdCounter:0,locale:void 0},fallbackDepth:0}}var he=globalThis[rn]??(globalThis[rn]=bc()),Ce=he.als,F=he.fallbackStore;he.fallbackDepth??(he.fallbackDepth=0);var Tr=!1;function hc(){if(Tr||Ce||!(typeof process<"u"&&!!process.versions?.node))return;Tr=!0;let t=process.versions.node;`${t}`}function Ne(){if(Ce){let e=Ce.getStore();if(e)return e}return F}function wr(){return Ce?Ce.getStore()??null:he.fallbackDepth>0?F:null}function ee(){return Ne().ssr}function kr(e){if(!ee())return null;let t=Ne(),n=t.caches??(t.caches=new Map),r=n.get(e);return r||(r=new Map,n.set(e,r)),r}function _r(){Ne().ssr=!0}function Ar(){Ne().ssr=!1}function Cr(e){let t={ssr:!0,suspenseIdCounter:0,idCounter:0,locale:void 0};if(Ce)return Ce.run(t,e);hc();let n=F.ssr,r=F.suspenseIdCounter,o=F.idCounter,i=F.locale;F.ssr=!0,F.suspenseIdCounter=0,F.idCounter=0,F.locale=void 0,he.fallbackDepth++;try{return e()}finally{he.fallbackDepth--,F.ssr=n,F.suspenseIdCounter=r,F.idCounter=o,F.locale=i}}function Nr(e){let t=Ne(),n=t.ssr;t.ssr=!0;try{return e()}finally{n||(t.ssr=!1)}}var Or=globalThis;function yc(e,t){let n,r=!0;return()=>{let o=e();if(r)r=!1,n=o,Q(()=>t(o,void 0));else{let i=n;n=o,Q(()=>t(o,i))}}}var Rr=100;function bt(e){let t=e.userCleanups;if(t.length===0)return;e.userCleanups=[];let n=e.subscriber._scope??null;n===He()?Lr(t):dt(n,()=>Lr(t))}function Lr(e){for(let t=e.length-1;t>=0;t--)try{e[t]()}catch(n){w(n,{phase:"cleanup"})}}function Mr(e){let t=1;do e.rerunPending=!1,e.userCleanups.length>0&&bt(e),be(e.bodyFn,e.subscriber);while(e.rerunPending&&++t<=Rr);e.rerunPending&&(e.rerunPending=!1,w(new Error(`effect re-requested itself ${Rr}+ times \u2014 likely a write-reads-self cycle. Breaking to prevent infinite loop.`),{phase:"effect"}))}function vc(e){if(e.disposed)return;e.disposed=!0;let t=Or.__SIBU_DEVTOOLS_GLOBAL_HOOK__;if(t)try{t.emit("effect:destroy",{effectFn:e.fn})}catch{}try{e.userCleanups.length>0&&bt(e)}catch(n){typeof console<"u"&&console.warn("[SibuJS effect] onCleanup threw during dispose:",n)}try{ke(e.subscriber)}catch(n){typeof console<"u"&&console.warn("[SibuJS effect] dispose threw:",n)}}function G(e,t){if(ee())return()=>{};let n={fn:e,onError:t?.onError,userCleanups:[],running:!1,rerunPending:!1,disposed:!1,onCleanup:null,subscriber:null,bodyFn:null};n.onCleanup=s=>{n.userCleanups.push(s)};let r=n.onError;n.bodyFn=r?()=>{try{n.fn(n.onCleanup)}catch(s){r(s)}}:()=>{n.fn(n.onCleanup)};let o=(()=>{if(!n.disposed){if(n.running){n.rerunPending=!0;return}n.running=!0;try{n.rerunPending=!1,n.userCleanups.length>0&&bt(n),be(n.bodyFn,o),n.rerunPending&&Mr(n)}finally{n.running=!1,n.rerunPending=!1}}});o.depsHead=null,o.depsTail=null,o._epoch=0,o._structDirty=!1,o._hasComputedDep=!1,o._errorPhase="effect",o._runEpoch=0,o._runs=0,n.subscriber=o,n.running=!0;try{be(n.bodyFn,n.subscriber),n.rerunPending&&Mr(n)}catch(s){throw n.disposed=!0,n.userCleanups.length>0&&bt(n),ke(n.subscriber),s}finally{n.running=!1,n.rerunPending=!1}let i=Or.__SIBU_DEVTOOLS_GLOBAL_HOOK__;return i&&J(i,"effect:create",{effectFn:e}),()=>vc(n)}var Je=0,on=new Set;function Sc(e){Je++;try{return e()}finally{Je--,Je===0&&Tc()}}function xc(e){return Je===0?!1:(on.add(e),!0)}function Ec(){return Je>0}function Tc(){try{for(let e of on)dr(e)}finally{on.clear()}lr()}var Dr=Symbol.for("sibujs.reactive.batch.v1");function wc(){let e=globalThis,t=e[Dr];if(t)return t;let n={batch:Sc,enqueueBatchedSignal:xc,isBatching:Ec};return e[Dr]=n,n}var sn=wc(),V=sn.batch,Re=sn.enqueueBatchedSignal,kc=sn.isBatching;var an=globalThis;function C(e,t){let n={value:e,__v:0,__sc:0,subsHead:null,subsTail:null,__activeNode:null,__name:void 0,_d:!1,_validate:void 0},r=void 0,o=t?.equals;r&&(n.__name=r);function i(){return we(n),n.value}i.__signal=n,r&&(i.__name=r);let s;if(o?s=a=>{let c=n.value,u=typeof a=="function"?a(c):a;if(!o(c,u)){if(n.value=u,n.__v++,!1){let l=an.__SIBU_DEVTOOLS_GLOBAL_HOOK__;l&&J(l,"signal:update",{signal:n,name:r,oldValue:c,newValue:u})}Re(n)||$e(n)}}:s=a=>{let c=n.value,u=typeof a=="function"?a(c):a;Object.is(u,c)||(n.value=u,n.__v++,Re(n)||$e(n))},!1){let a=an.__SIBU_DEVTOOLS_GLOBAL_HOOK__;a&&J(a,"signal:create",{signal:n,name:r,getter:i,initial:e})}return[i,s]}function _c(e){let[t,n]=C(0,e?.name?{name:e.name}:void 0);return{track(){t()},invalidate(){n(r=>r+1)}}}var Ac=`
8
8
  .sibu-error-display {
9
9
  border: 1px solid var(--sibu-err-border, #e5484d);
10
10
  border-radius: 10px;
@@ -3,23 +3,23 @@ import {
3
3
  } from "./chunk-J6FW5TV6.js";
4
4
  import {
5
5
  tagFactory
6
- } from "./chunk-EVI4ZQO3.js";
6
+ } from "./chunk-2T73SWKF.js";
7
7
  import {
8
8
  derived
9
- } from "./chunk-5PC7OTQW.js";
9
+ } from "./chunk-LK3VK47W.js";
10
10
  import {
11
11
  globalSingleton
12
12
  } from "./chunk-7ZHH77QA.js";
13
13
  import {
14
14
  effect
15
- } from "./chunk-7WIHYHWD.js";
15
+ } from "./chunk-6DYRY2NF.js";
16
16
  import {
17
17
  sanitizeCSSDeclaration
18
18
  } from "./chunk-EXXSN3BW.js";
19
19
  import {
20
20
  batch,
21
21
  signal
22
- } from "./chunk-FYUEL5IW.js";
22
+ } from "./chunk-BNZDDNBR.js";
23
23
 
24
24
  // src/ecosystem/adapters/mobx.ts
25
25
  function mobXAdapter(options) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  bindAttribute,
3
3
  setSafeAttribute
4
- } from "./chunk-XUQUQJYE.js";
4
+ } from "./chunk-DS6PFIZK.js";
5
5
  import {
6
6
  isBlockedElement
7
7
  } from "./chunk-3ACAAQIN.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-EXXSN3BW.js";
13
13
  import {
14
14
  reactiveBinding
15
- } from "./chunk-D6HYFOWR.js";
15
+ } from "./chunk-NROLUUCO.js";
16
16
  import {
17
17
  DEV,
18
18
  devWarn,
@@ -9,14 +9,14 @@ import {
9
9
  } from "./chunk-7ZHH77QA.js";
10
10
  import {
11
11
  effect
12
- } from "./chunk-7WIHYHWD.js";
12
+ } from "./chunk-6DYRY2NF.js";
13
13
  import {
14
14
  sanitizeUrl
15
15
  } from "./chunk-EXXSN3BW.js";
16
16
  import {
17
17
  batch,
18
18
  signal
19
- } from "./chunk-FYUEL5IW.js";
19
+ } from "./chunk-BNZDDNBR.js";
20
20
  import {
21
21
  reportError
22
22
  } from "./chunk-NYNYSPK7.js";
@@ -8,7 +8,7 @@ import {
8
8
  retrack,
9
9
  runWithOwnerScope,
10
10
  untracked
11
- } from "./chunk-D6HYFOWR.js";
11
+ } from "./chunk-NROLUUCO.js";
12
12
  import {
13
13
  devAssert,
14
14
  reportError
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  derived
3
- } from "./chunk-5PC7OTQW.js";
3
+ } from "./chunk-LK3VK47W.js";
4
4
  import {
5
5
  globalSingleton
6
6
  } from "./chunk-7ZHH77QA.js";
7
7
  import {
8
8
  effect
9
- } from "./chunk-7WIHYHWD.js";
9
+ } from "./chunk-6DYRY2NF.js";
10
10
  import {
11
11
  sanitizeUrl
12
12
  } from "./chunk-EXXSN3BW.js";
@@ -16,10 +16,10 @@ import {
16
16
  import {
17
17
  batch,
18
18
  signal
19
- } from "./chunk-FYUEL5IW.js";
19
+ } from "./chunk-BNZDDNBR.js";
20
20
  import {
21
21
  untracked
22
- } from "./chunk-D6HYFOWR.js";
22
+ } from "./chunk-NROLUUCO.js";
23
23
  import {
24
24
  reportError
25
25
  } from "./chunk-NYNYSPK7.js";
@@ -4,7 +4,7 @@ import {
4
4
  notifySubscribers,
5
5
  queueSignalNotification,
6
6
  recordDependency
7
- } from "./chunk-D6HYFOWR.js";
7
+ } from "./chunk-NROLUUCO.js";
8
8
  import {
9
9
  DEV
10
10
  } from "./chunk-NYNYSPK7.js";
@@ -3,18 +3,18 @@ import {
3
3
  } from "./chunk-7ZHH77QA.js";
4
4
  import {
5
5
  effect
6
- } from "./chunk-7WIHYHWD.js";
6
+ } from "./chunk-6DYRY2NF.js";
7
7
  import {
8
8
  stripHtml
9
9
  } from "./chunk-EXXSN3BW.js";
10
10
  import {
11
11
  signal
12
- } from "./chunk-FYUEL5IW.js";
12
+ } from "./chunk-BNZDDNBR.js";
13
13
  import {
14
14
  forEachSubscriber,
15
15
  getSubscriberCount,
16
16
  getSubscriberDeps
17
- } from "./chunk-D6HYFOWR.js";
17
+ } from "./chunk-NROLUUCO.js";
18
18
  import {
19
19
  dispose,
20
20
  isDev
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-62BDYGAG.js";
5
5
  import {
6
6
  derived
7
- } from "./chunk-5PC7OTQW.js";
7
+ } from "./chunk-LK3VK47W.js";
8
8
  import {
9
9
  effect
10
- } from "./chunk-7WIHYHWD.js";
10
+ } from "./chunk-6DYRY2NF.js";
11
11
  import {
12
12
  batch,
13
13
  signal
14
- } from "./chunk-FYUEL5IW.js";
14
+ } from "./chunk-BNZDDNBR.js";
15
15
  import {
16
16
  DEV,
17
17
  devWarn,
@@ -135,44 +135,44 @@ import {
135
135
  use,
136
136
  var_,
137
137
  video
138
- } from "./chunk-N6U4GOIU.js";
138
+ } from "./chunk-YNE4FSVX.js";
139
139
  import {
140
140
  trustHTML
141
141
  } from "./chunk-FC6KCJSA.js";
142
142
  import {
143
143
  watch
144
- } from "./chunk-EVOK663Z.js";
144
+ } from "./chunk-DA2LJXK3.js";
145
145
  import {
146
146
  __resetIdCounter,
147
147
  createId,
148
148
  domBinding
149
- } from "./chunk-GOL3FU5Q.js";
149
+ } from "./chunk-GVVZPMA5.js";
150
150
  import {
151
151
  SVG_NS,
152
152
  bindChildNode,
153
153
  captureFocusWithin,
154
154
  restoreFocusWithin,
155
155
  tagFactory
156
- } from "./chunk-EVI4ZQO3.js";
156
+ } from "./chunk-2T73SWKF.js";
157
157
  import {
158
158
  bindAttribute,
159
159
  bindDynamic,
160
160
  setSafeAttribute,
161
161
  setTrustedAttribute
162
- } from "./chunk-XUQUQJYE.js";
162
+ } from "./chunk-DS6PFIZK.js";
163
163
  import {
164
164
  isCodeTextElement
165
165
  } from "./chunk-3ACAAQIN.js";
166
166
  import {
167
167
  derived
168
- } from "./chunk-5PC7OTQW.js";
168
+ } from "./chunk-LK3VK47W.js";
169
169
  import {
170
170
  globalSingleton
171
171
  } from "./chunk-7ZHH77QA.js";
172
172
  import {
173
173
  effect,
174
174
  on
175
- } from "./chunk-7WIHYHWD.js";
175
+ } from "./chunk-6DYRY2NF.js";
176
176
  import {
177
177
  disableSSR,
178
178
  enableSSR,
@@ -191,7 +191,7 @@ import {
191
191
  external,
192
192
  isBatching,
193
193
  signal
194
- } from "./chunk-FYUEL5IW.js";
194
+ } from "./chunk-BNZDDNBR.js";
195
195
  import {
196
196
  bindOwnerScope,
197
197
  emitDevtools,
@@ -206,7 +206,7 @@ import {
206
206
  suspendTracking,
207
207
  track,
208
208
  untracked
209
- } from "./chunk-D6HYFOWR.js";
209
+ } from "./chunk-NROLUUCO.js";
210
210
  import {
211
211
  DEV,
212
212
  MAX_DRAIN_TEARDOWNS,
@@ -5,7 +5,7 @@ import {
5
5
  resumeTracking,
6
6
  suspendTracking,
7
7
  track
8
- } from "./chunk-D6HYFOWR.js";
8
+ } from "./chunk-NROLUUCO.js";
9
9
  import {
10
10
  devAssert
11
11
  } from "./chunk-NYNYSPK7.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-EXXSN3BW.js";
11
11
  import {
12
12
  reactiveBinding
13
- } from "./chunk-D6HYFOWR.js";
13
+ } from "./chunk-NROLUUCO.js";
14
14
  import {
15
15
  DEV,
16
16
  devWarn,