@kynetic-ai/spec 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/dist/agent-runtime/dispatch.d.ts +31 -0
  2. package/dist/agent-runtime/dispatch.d.ts.map +1 -1
  3. package/dist/agent-runtime/dispatch.js +102 -33
  4. package/dist/agent-runtime/dispatch.js.map +1 -1
  5. package/dist/agent-runtime/invocation.js +1 -1
  6. package/dist/agent-runtime/invocation.js.map +1 -1
  7. package/dist/cli/commands/meta.d.ts.map +1 -1
  8. package/dist/cli/commands/meta.js +10 -1
  9. package/dist/cli/commands/meta.js.map +1 -1
  10. package/dist/daemon/routes/agent-dispatch.ts +9 -2
  11. package/dist/daemon/routes/items.ts +22 -0
  12. package/dist/daemon/routes/meta.ts +141 -1
  13. package/dist/daemon/routes/plans.ts +147 -0
  14. package/dist/daemon/routes/sessions.ts +180 -0
  15. package/dist/daemon/routes/tasks.ts +198 -0
  16. package/dist/daemon/routes/validation.ts +1 -1
  17. package/dist/daemon/server.ts +22 -1
  18. package/dist/parser/alignment.d.ts.map +1 -1
  19. package/dist/parser/alignment.js +4 -2
  20. package/dist/parser/alignment.js.map +1 -1
  21. package/dist/schema/meta.d.ts +15 -0
  22. package/dist/schema/meta.d.ts.map +1 -1
  23. package/dist/schema/meta.js +1 -0
  24. package/dist/schema/meta.js.map +1 -1
  25. package/dist/sessions/store.d.ts +14 -0
  26. package/dist/sessions/store.d.ts.map +1 -1
  27. package/dist/sessions/store.js +26 -0
  28. package/dist/sessions/store.js.map +1 -1
  29. package/dist/web-ui/_app/immutable/assets/0.BJaYkGW2.css +1 -0
  30. package/dist/web-ui/_app/immutable/assets/9.SzGLxi4x.css +1 -0
  31. package/dist/web-ui/_app/immutable/chunks/-lc0BifF.js +1 -0
  32. package/dist/web-ui/_app/immutable/chunks/62JVKtnb.js +1 -0
  33. package/dist/web-ui/_app/immutable/chunks/8RBjHMN1.js +1 -0
  34. package/dist/web-ui/_app/immutable/chunks/B5LJFxqa.js +1 -0
  35. package/dist/web-ui/_app/immutable/chunks/B5wTVqxm.js +1 -0
  36. package/dist/web-ui/_app/immutable/chunks/B6VSmczZ.js +1 -0
  37. package/dist/web-ui/_app/immutable/chunks/B8a0xDxR.js +1 -0
  38. package/dist/web-ui/_app/immutable/chunks/BEOQc37C.js +1 -0
  39. package/dist/web-ui/_app/immutable/chunks/BHtYorjv.js +1 -0
  40. package/dist/web-ui/_app/immutable/chunks/BJ0JX3ea.js +1 -0
  41. package/dist/web-ui/_app/immutable/chunks/BMuCqDX8.js +1 -0
  42. package/dist/web-ui/_app/immutable/chunks/{i-XnOIX0.js → BP352uRn.js} +1 -1
  43. package/dist/web-ui/_app/immutable/chunks/BUZujXJ2.js +1 -0
  44. package/dist/web-ui/_app/immutable/chunks/BVA9Exy-.js +1 -0
  45. package/dist/web-ui/_app/immutable/chunks/BWET-efb.js +1 -0
  46. package/dist/web-ui/_app/immutable/chunks/BXkNecpt.js +1 -0
  47. package/dist/web-ui/_app/immutable/chunks/BYzrIfX8.js +1 -0
  48. package/dist/web-ui/_app/immutable/chunks/BkOJ8DkV.js +1 -0
  49. package/dist/web-ui/_app/immutable/chunks/BpuwufMc.js +1 -0
  50. package/dist/web-ui/_app/immutable/chunks/BwMO4RrG.js +1 -0
  51. package/dist/web-ui/_app/immutable/chunks/BysXJlZb.js +1 -0
  52. package/dist/web-ui/_app/immutable/chunks/C076q4JN.js +1 -0
  53. package/dist/web-ui/_app/immutable/chunks/C33JaVbg.js +1 -0
  54. package/dist/web-ui/_app/immutable/chunks/CGtqifKp.js +1 -0
  55. package/dist/web-ui/_app/immutable/chunks/CHDZZ7OG.js +1 -0
  56. package/dist/web-ui/_app/immutable/chunks/CPPfDSei.js +5 -0
  57. package/dist/web-ui/_app/immutable/chunks/CUir3f4J.js +60 -0
  58. package/dist/web-ui/_app/immutable/chunks/Cncwi6fQ.js +1 -0
  59. package/dist/web-ui/_app/immutable/chunks/CrCIbn0C.js +1 -0
  60. package/dist/web-ui/_app/immutable/chunks/CwELQvbx.js +1 -0
  61. package/dist/web-ui/_app/immutable/chunks/D3vxvonu.js +1 -0
  62. package/dist/web-ui/_app/immutable/chunks/D6TVmR9T.js +1 -0
  63. package/dist/web-ui/_app/immutable/chunks/D7LTux4W.js +1 -0
  64. package/dist/web-ui/_app/immutable/chunks/{D28BF5MJ.js → D82RulSH.js} +1 -1
  65. package/dist/web-ui/_app/immutable/chunks/D9QNBZM2.js +2 -0
  66. package/dist/web-ui/_app/immutable/chunks/DAMmvwn4.js +1 -0
  67. package/dist/web-ui/_app/immutable/chunks/DAh4Wfku.js +1 -0
  68. package/dist/web-ui/_app/immutable/chunks/DAx07bEQ.js +1 -0
  69. package/dist/web-ui/_app/immutable/chunks/DBYE9jOd.js +1 -0
  70. package/dist/web-ui/_app/immutable/chunks/DOno4cA2.js +1 -0
  71. package/dist/web-ui/_app/immutable/chunks/DQA8NZIH.js +2 -0
  72. package/dist/web-ui/_app/immutable/chunks/DRfPm2bo.js +1 -0
  73. package/dist/web-ui/_app/immutable/chunks/DhQhksaB.js +1 -0
  74. package/dist/web-ui/_app/immutable/chunks/DjG7s6hm.js +1 -0
  75. package/dist/web-ui/_app/immutable/chunks/DjcCz-PU.js +2 -0
  76. package/dist/web-ui/_app/immutable/chunks/DkltRNvh.js +1 -0
  77. package/dist/web-ui/_app/immutable/chunks/DlaTnPKL.js +1 -0
  78. package/dist/web-ui/_app/immutable/chunks/DvA-KON-.js +1 -0
  79. package/dist/web-ui/_app/immutable/chunks/{D1ArdqNb.js → DxCk-KHc.js} +1 -1
  80. package/dist/web-ui/_app/immutable/chunks/DzO4hlg9.js +1 -0
  81. package/dist/web-ui/_app/immutable/chunks/{BCkp8Hs8.js → Eo4gF7ih.js} +1 -1
  82. package/dist/web-ui/_app/immutable/chunks/ExCq5swK.js +1 -0
  83. package/dist/web-ui/_app/immutable/chunks/T3zZGv51.js +1 -0
  84. package/dist/web-ui/_app/immutable/chunks/XZumBYeP.js +1 -0
  85. package/dist/web-ui/_app/immutable/chunks/_ySfNjkF.js +1 -0
  86. package/dist/web-ui/_app/immutable/chunks/iEtR5cV6.js +1 -0
  87. package/dist/web-ui/_app/immutable/chunks/k_Qegko0.js +1 -0
  88. package/dist/web-ui/_app/immutable/chunks/pE6cYWlS.js +1 -0
  89. package/dist/web-ui/_app/immutable/entry/app.Cgu6uKeS.js +2 -0
  90. package/dist/web-ui/_app/immutable/entry/start.9XifnLoB.js +1 -0
  91. package/dist/web-ui/_app/immutable/nodes/0.DISwcKSK.js +1 -0
  92. package/dist/web-ui/_app/immutable/nodes/1.Cx2Ufqp1.js +1 -0
  93. package/dist/web-ui/_app/immutable/nodes/10.C3z8ijXL.js +1 -0
  94. package/dist/web-ui/_app/immutable/nodes/11.DZdIjZmM.js +1 -0
  95. package/dist/web-ui/_app/immutable/nodes/12.FsIGfAOa.js +1 -0
  96. package/dist/web-ui/_app/immutable/nodes/13.DZoFwagf.js +1 -0
  97. package/dist/web-ui/_app/immutable/nodes/14.DaIzDKbQ.js +1 -0
  98. package/dist/web-ui/_app/immutable/nodes/15.BYyt4XWF.js +2 -0
  99. package/dist/web-ui/_app/immutable/nodes/16.CQkSqpOe.js +1 -0
  100. package/dist/web-ui/_app/immutable/nodes/2.Bkf_j2UJ.js +1 -0
  101. package/dist/web-ui/_app/immutable/nodes/3.kaMCurJG.js +1 -0
  102. package/dist/web-ui/_app/immutable/nodes/4.BSsFPTHG.js +2 -0
  103. package/dist/web-ui/_app/immutable/nodes/5.CpPlcCEZ.js +1 -0
  104. package/dist/web-ui/_app/immutable/nodes/6.BN4FqQmY.js +1 -0
  105. package/dist/web-ui/_app/immutable/nodes/7.9kBYIZik.js +1 -0
  106. package/dist/web-ui/_app/immutable/nodes/8.BuijtZ6B.js +1 -0
  107. package/dist/web-ui/_app/immutable/nodes/9.C-Weba8R.js +1 -0
  108. package/dist/web-ui/_app/version.json +1 -1
  109. package/dist/web-ui/index.html +14 -11
  110. package/package.json +3 -2
  111. package/plugin/.claude-plugin/marketplace.json +1 -1
  112. package/plugin/.claude-plugin/plugin.json +1 -1
  113. package/dist/web-ui/_app/immutable/assets/0.BxCxvrZR.css +0 -1
  114. package/dist/web-ui/_app/immutable/chunks/B-CZR0q8.js +0 -1
  115. package/dist/web-ui/_app/immutable/chunks/B1IR5Su5.js +0 -1
  116. package/dist/web-ui/_app/immutable/chunks/B_Cvvtc4.js +0 -1
  117. package/dist/web-ui/_app/immutable/chunks/BtFaGGII.js +0 -1
  118. package/dist/web-ui/_app/immutable/chunks/Bu8JVsCH.js +0 -1
  119. package/dist/web-ui/_app/immutable/chunks/C87u-CNA.js +0 -1
  120. package/dist/web-ui/_app/immutable/chunks/CrFkBTYp.js +0 -1
  121. package/dist/web-ui/_app/immutable/chunks/D6RtLpzL.js +0 -1
  122. package/dist/web-ui/_app/immutable/chunks/D7FHSgx2.js +0 -1
  123. package/dist/web-ui/_app/immutable/chunks/DBXrsxZQ.js +0 -2
  124. package/dist/web-ui/_app/immutable/chunks/Da_hHMuA.js +0 -1
  125. package/dist/web-ui/_app/immutable/chunks/Do6LchSF.js +0 -1
  126. package/dist/web-ui/_app/immutable/chunks/DoNPtcAw.js +0 -1
  127. package/dist/web-ui/_app/immutable/chunks/DtUbXRZz.js +0 -1
  128. package/dist/web-ui/_app/immutable/chunks/DyFPRlLl.js +0 -1
  129. package/dist/web-ui/_app/immutable/chunks/DzAP8lRM.js +0 -1
  130. package/dist/web-ui/_app/immutable/chunks/DzVXElzN.js +0 -2
  131. package/dist/web-ui/_app/immutable/chunks/aoPBFken.js +0 -1
  132. package/dist/web-ui/_app/immutable/chunks/laxtrUO3.js +0 -1
  133. package/dist/web-ui/_app/immutable/chunks/q1nIWgqB.js +0 -1
  134. package/dist/web-ui/_app/immutable/chunks/sTLbk5Nm.js +0 -1
  135. package/dist/web-ui/_app/immutable/chunks/vwKgQu5P.js +0 -5
  136. package/dist/web-ui/_app/immutable/entry/app.BCwMcqnT.js +0 -2
  137. package/dist/web-ui/_app/immutable/entry/start.wKCQH-tt.js +0 -1
  138. package/dist/web-ui/_app/immutable/nodes/0.CjGVMG74.js +0 -1
  139. package/dist/web-ui/_app/immutable/nodes/1.B6_AIPan.js +0 -1
  140. package/dist/web-ui/_app/immutable/nodes/2.q4oCS7Ws.js +0 -1
  141. package/dist/web-ui/_app/immutable/nodes/3.rTKZf9o2.js +0 -1
  142. package/dist/web-ui/_app/immutable/nodes/4.DVIDRu1d.js +0 -1
  143. package/dist/web-ui/_app/immutable/nodes/5.8PtPXIOd.js +0 -1
  144. package/dist/web-ui/_app/immutable/nodes/6.ZZrTemy_.js +0 -1
  145. package/dist/web-ui/_app/immutable/nodes/7.IP-gxCxi.js +0 -1
@@ -0,0 +1 @@
1
+ import{c as n,a as m}from"./DvA-KON-.js";import{p as i,f as c,i as d,a as l}from"./D3vxvonu.js";import{k as f}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function k(s,o){i(o,!0);let t=u(o,["$$slots","$$events","$$legacy"]);const a=[["path",{d:"M12 19h8"}],["path",{d:"m4 17 6-6-6-6"}]];$(s,h({name:"terminal"},()=>t,{get iconNode(){return a},children:(e,_)=>{var r=n(),p=c(r);f(p,()=>o.children??d),m(e,r)},$$slots:{default:!0}})),l()}export{k as T};
@@ -0,0 +1 @@
1
+ import{H as a,u as i,z as t,I as _,q as l,J as m}from"./D3vxvonu.js";function p(e){t===null&&a(),_&&t.l!==null?d(t).m.push(e):i(()=>{const n=l(e);if(typeof n=="function")return n})}function y(e){t===null&&a(),p(()=>()=>l(e))}function v(e,n,{bubbles:o=!1,cancelable:s=!1}={}){return new CustomEvent(e,{detail:n,bubbles:o,cancelable:s})}function b(){const e=t;return e===null&&a(),(n,o,s)=>{const c=e.s.$$events?.[n];if(c){const r=m(c)?c.slice():[c],u=v(n,o,s);for(const f of r)f.call(e.x,u);return!u.defaultPrevented}return!0}}function d(e){var n=e.l;return n.u??={a:[],b:[],m:[]}}export{y as a,b as c,p as o};
@@ -0,0 +1 @@
1
+ var Gt=Array.isArray,Kt=Array.prototype.indexOf,Mn=Array.from,Fn=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,$t=Object.getOwnPropertyDescriptors,zt=Object.prototype,Xt=Array.prototype,at=Object.getPrototypeOf,Qe=Object.isExtensible;function jn(e){return typeof e=="function"}const Ee=()=>{};function Ln(e){return e()}function Zt(e){for(var t=0;t<e.length;t++)e[t]()}function lt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function qn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const g=2,ge=4,pe=8,He=1<<24,F=16,j=32,z=64,ut=128,N=512,E=1024,S=2048,L=4096,P=8192,H=16384,Ue=32768,me=65536,et=1<<17,ot=1<<18,oe=1<<19,ct=1<<20,Yn=1<<25,te=32768,Fe=1<<21,Ve=1<<22,U=1<<23,J=Symbol("$state"),Hn=Symbol("legacy props"),Un=Symbol(""),fe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Bn=1,Be=3,_t=8;function Wt(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Jt(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Qt(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function en(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function tn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function nn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Gn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function rn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function fn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function $n(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const zn=1,Xn=2,Zn=4,Wn=8,Jn=16,Qn=1,er=2,tr=4,nr=8,rr=16,sr=1,fr=2,an="[",ln="[!",un="]",Ge={},b=Symbol(),ir="http://www.w3.org/1999/xhtml",ar="http://www.w3.org/2000/svg",lr="@attach";function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ur(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function or(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let B=!1;function cr(e){B=e}let x;function ae(e){if(e===null)throw Ke(),Ge;return x=e}function _r(){return ae(X(x))}function vr(e){if(B){if(X(x)!==null)throw Ke(),Ge;x=e}}function dr(e=1){if(B){for(var t=e,n=x;t--;)n=X(n);x=n}}function pr(e=!0){for(var t=0,n=x;;){if(n.nodeType===_t){var r=n.data;if(r===un){if(t===0)return n;t-=1}else(r===an||r===ln)&&(t+=1)}var s=X(n);e&&n.remove(),n=s}}function hr(e){if(!e||e.nodeType!==_t)throw Ke(),Ge;return e.data}function vt(e){return e===this.v}function dt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function pt(e){return!dt(e,this.v)}let Ce=!1;function yr(){Ce=!0}let y=null;function Te(e){y=e}function wr(e){return De().get(e)}function br(e,t){return De().set(e,t),t}function Er(e){return De().has(e)}function gr(){return De()}function mr(e,t=!1,n){y={p:y,i:!1,c:null,e:null,s:e,x:null,l:Ce&&!t?{s:null,u:null,$:[]}:null}}function Tr(e){var t=y,n=t.e;if(n!==null){t.e=null;for(var r of n)Ct(r)}return e!==void 0&&(t.x=e),t.i=!0,y=t.p,e??{}}function he(){return!Ce||y!==null&&y.l===null}function De(e){return y===null&&Wt(),y.c??=new Map(on(y)||void 0)}function on(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let Z=[];function ht(){var e=Z;Z=[],Zt(e)}function yt(e){if(Z.length===0&&!de){var t=Z;queueMicrotask(()=>{t===Z&&ht()})}Z.push(e)}function cn(){for(;Z.length>0;)ht()}function _n(e){var t=p;if(t===null)return _.f|=U,e;if((t.f&Ue)===0){if((t.f&ut)===0)throw e;t.b.error(e)}else Ae(e,t)}function Ae(e,t){for(;t!==null;){if((t.f&ut)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const vn=-7169;function m(e,t){e.f=e.f&vn|t}function $e(e){(e.f&N)!==0||e.deps===null?m(e,E):m(e,L)}function wt(e){if(e!==null)for(const t of e)(t.f&g)===0||(t.f&te)===0||(t.f^=te,wt(t.deps))}function dn(e,t,n){(e.f&S)!==0?t.add(e):(e.f&L)!==0&&n.add(e),wt(e.deps),m(e,E)}const be=new Set;let h=null,Ie=null,D=null,O=[],ke=null,je=!1,de=!1;class G{committed=!1;current=new Map;previous=new Map;#n=new Set;#r=new Set;#e=0;#t=0;#i=null;#s=new Set;#f=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#t>0}process(t){O=[],Ie=null,this.apply();var n=[],r=[];for(const s of t)this.#a(s,n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#l(r),this.#l(n)):(Ie=this,h=null,tt(r),tt(n),Ie=null,this.#i?.resolve()),D=null}#a(t,n,r){t.f^=E;for(var s=t.first,f=null;s!==null;){var u=s.f,a=(u&(j|z))!==0,l=a&&(u&E)!==0,i=l||(u&P)!==0||this.skipped_effects.has(s);if(!i&&s.fn!==null){a?s.f^=E:f!==null&&(u&(ge|pe|He))!==0?f.b.defer_effect(s):(u&ge)!==0?n.push(s):ce(s)&&((u&F)!==0&&this.#s.add(s),ue(s));var o=s.first;if(o!==null){s=o;continue}}var c=s.parent;for(s=s.next;s===null&&c!==null;)c===f&&(f=null),s=c.next,c=c.parent}}#l(t){for(var n=0;n<t.length;n+=1)dn(t[n],this.#s,this.#f)}capture(t,n){n!==b&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&U)===0&&(this.current.set(t,t.v),D?.set(t,t.v))}activate(){h=this,this.apply()}deactivate(){h===this&&(h=null,D=null)}flush(){if(this.activate(),O.length>0){if(bt(),h!==null&&h!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#r)t(this);this.#r.clear()}#u(){if(this.#t===0){for(const t of this.#n)t();this.#n.clear()}this.#e===0&&this.#o()}#o(){if(be.size>1){this.previous.clear();var t=D,n=!0;for(const s of be){if(s===this){n=!1;continue}const f=[];for(const[a,l]of this.current){if(s.current.has(a))if(n&&l!==s.current.get(a))s.current.set(a,l);else continue;f.push(a)}if(f.length===0)continue;const u=[...s.current.keys()].filter(a=>!this.current.has(a));if(u.length>0){var r=O;O=[];const a=new Set,l=new Map;for(const i of f)Et(i,u,a,l);if(O.length>0){h=s,s.apply();for(const i of O)s.#a(i,[],[]);s.deactivate()}O=r}}h=null,D=t}this.committed=!0,be.delete(this)}increment(t){this.#e+=1,t&&(this.#t+=1)}decrement(t){this.#e-=1,t&&(this.#t-=1),this.revive()}revive(){for(const t of this.#s)this.#f.delete(t),m(t,S),ne(t);for(const t of this.#f)m(t,L),ne(t);this.flush()}oncommit(t){this.#n.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#i??=lt()).promise}static ensure(){if(h===null){const t=h=new G;be.add(h),de||G.enqueue(()=>{h===t&&t.flush()})}return h}static enqueue(t){yt(t)}apply(){}}function pn(e){var t=de;de=!0;try{for(var n;;){if(cn(),O.length===0&&(h?.flush(),O.length===0))return ke=null,n;bt()}}finally{de=t}}function bt(){var e=Q;je=!0;var t=null;try{var n=0;for(Oe(!0);O.length>0;){var r=G.ensure();if(n++>1e3){var s,f;hn()}r.process(O),V.clear()}}finally{je=!1,Oe(e),ke=null}}function hn(){try{nn()}catch(e){Ae(e,ke)}}let I=null;function tt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(H|P))===0&&ce(r)&&(I=new Set,ue(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?It(r):r.fn=null),I?.size>0)){V.clear();for(const s of I){if((s.f&(H|P))!==0)continue;const f=[s];let u=s.parent;for(;u!==null;)I.has(u)&&(I.delete(u),f.push(u)),u=u.parent;for(let a=f.length-1;a>=0;a--){const l=f[a];(l.f&(H|P))===0&&ue(l)}}I.clear()}}I=null}}function Et(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&g)!==0?Et(s,t,n,r):(f&(Ve|F))!==0&&(f&S)===0&&gt(s,t,r)&&(m(s,S),ne(s))}}function gt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&g)!==0&&gt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ne(e){for(var t=ke=e;t.parent!==null;){t=t.parent;var n=t.f;if(je&&t===p&&(n&F)!==0&&(n&ot)===0)return;if((n&(z|j))!==0){if((n&E)===0)return;t.f^=E}}O.push(t)}function yn(e,t,n,r){const s=he()?ze:En;if(n.length===0&&e.length===0){r(t.map(s));return}var f=h,u=p,a=wn();function l(){Promise.all(n.map(i=>bn(i))).then(i=>{a();try{r([...t.map(s),...i])}catch(o){(u.f&H)===0&&Ae(o,u)}f?.deactivate(),xe()}).catch(i=>{Ae(i,u)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{f?.deactivate(),xe()}}):l()}function wn(){var e=p,t=_,n=y,r=h;return function(f=!0){le(e),$(t),Te(n),f&&r?.activate()}}function xe(){le(null),$(null),Te(null)}function ze(e){var t=g|S,n=_!==null&&(_.f&g)!==0?_:null;return p!==null&&(p.f|=oe),{ctx:y,deps:null,effects:null,equals:vt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??p,ac:null}}function bn(e,t,n){let r=p;r===null&&Jt();var s=r.b,f=void 0,u=Ze(b),a=!_,l=new Map;return On(()=>{var i=lt();f=i.promise;try{Promise.resolve(e()).then(i.resolve,i.reject).then(()=>{o===h&&o.committed&&o.deactivate(),xe()})}catch(d){i.reject(d),xe()}var o=h;if(a){var c=s.is_rendered();s.update_pending_count(1),o.increment(c),l.get(o)?.reject(fe),l.delete(o),l.set(o,i)}const v=(d,w=void 0)=>{if(o.activate(),w)w!==fe&&(u.f|=U,qe(u,w));else{(u.f&U)!==0&&(u.f^=U),qe(u,d);for(const[ye,we]of l){if(l.delete(ye),ye===o)break;we.reject(fe)}}a&&(s.update_pending_count(-1),o.decrement(c))};i.promise.then(v,d=>v(null,d||"unknown"))}),Rn(()=>{for(const i of l.values())i.reject(fe)}),new Promise(i=>{function o(c){function v(){c===f?i(u):o(f)}c.then(v,v)}o(f)})}function Ar(e){const t=ze(e);return jt(t),t}function En(e){const t=ze(e);return t.equals=pt,t}function mt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)K(t[n])}}function gn(e){for(var t=e.parent;t!==null;){if((t.f&g)===0)return(t.f&H)===0?t:null;t=t.parent}return null}function Xe(e){var t,n=p;le(gn(e));try{e.f&=~te,mt(e),t=Ht(e)}finally{le(n)}return t}function Tt(e){var t=Xe(e);if(!e.equals(t)&&(e.wv=qt(),(!h?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){m(e,E);return}re||(D!==null?(Nt()||h?.is_fork)&&D.set(e,t):$e(e))}let Le=new Set;const V=new Map;let At=!1;function Ze(e,t){var n={f:0,v:e,reactions:null,equals:vt,rv:0,wv:0};return n}function q(e,t){const n=Ze(e);return jt(n),n}function xr(e,t=!1,n=!0){const r=Ze(e);return t||(r.equals=pt),Ce&&n&&y!==null&&y.l!==null&&(y.l.s??=[]).push(r),r}function Y(e,t,n=!1){_!==null&&(!k||(_.f&et)!==0)&&he()&&(_.f&(g|F|Ve|et))!==0&&!M?.includes(e)&&fn();let r=n?_e(t):t;return qe(e,r)}function qe(e,t){if(!e.equals(t)){var n=e.v;re?V.set(e,t):V.set(e,n),e.v=t;var r=G.ensure();if(r.capture(e,n),(e.f&g)!==0){const s=e;(e.f&S)!==0&&Xe(s),$e(s)}e.wv=qt(),xt(e,S),he()&&p!==null&&(p.f&E)!==0&&(p.f&(j|z))===0&&(R===null?kn([e]):R.push(e)),!r.is_fork&&Le.size>0&&!At&&mn()}return t}function mn(){At=!1;var e=Q;Oe(!0);const t=Array.from(Le);try{for(const n of t)(n.f&E)!==0&&m(n,L),ce(n)&&ue(n)}finally{Oe(e)}Le.clear()}function Sr(e,t=1){var n=ie(e),r=t===1?n++:n--;return Y(e,n),r}function Me(e){Y(e,e.v+1)}function xt(e,t){var n=e.reactions;if(n!==null)for(var r=he(),s=n.length,f=0;f<s;f++){var u=n[f],a=u.f;if(!(!r&&u===p)){var l=(a&S)===0;if(l&&m(u,t),(a&g)!==0){var i=u;D?.delete(i),(a&te)===0&&(a&N&&(u.f|=te),xt(i,L))}else l&&((a&F)!==0&&I!==null&&I.add(u),ne(u))}}}function _e(e){if(typeof e!="object"||e===null||J in e)return e;const t=at(e);if(t!==zt&&t!==Xt)return e;var n=new Map,r=Gt(e),s=q(0),f=ee,u=a=>{if(ee===f)return a();var l=_,i=ee;$(null),it(f);var o=a();return $(l),it(i),o};return r&&n.set("length",q(e.length)),new Proxy(e,{defineProperty(a,l,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&rn();var o=n.get(l);return o===void 0?o=u(()=>{var c=q(i.value);return n.set(l,c),c}):Y(o,i.value,!0),!0},deleteProperty(a,l){var i=n.get(l);if(i===void 0){if(l in a){const o=u(()=>q(b));n.set(l,o),Me(s)}}else Y(i,b),Me(s);return!0},get(a,l,i){if(l===J)return e;var o=n.get(l),c=l in a;if(o===void 0&&(!c||ve(a,l)?.writable)&&(o=u(()=>{var d=_e(c?a[l]:b),w=q(d);return w}),n.set(l,o)),o!==void 0){var v=ie(o);return v===b?void 0:v}return Reflect.get(a,l,i)},getOwnPropertyDescriptor(a,l){var i=Reflect.getOwnPropertyDescriptor(a,l);if(i&&"value"in i){var o=n.get(l);o&&(i.value=ie(o))}else if(i===void 0){var c=n.get(l),v=c?.v;if(c!==void 0&&v!==b)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return i},has(a,l){if(l===J)return!0;var i=n.get(l),o=i!==void 0&&i.v!==b||Reflect.has(a,l);if(i!==void 0||p!==null&&(!o||ve(a,l)?.writable)){i===void 0&&(i=u(()=>{var v=o?_e(a[l]):b,d=q(v);return d}),n.set(l,i));var c=ie(i);if(c===b)return!1}return o},set(a,l,i,o){var c=n.get(l),v=l in a;if(r&&l==="length")for(var d=i;d<c.v;d+=1){var w=n.get(d+"");w!==void 0?Y(w,b):d in a&&(w=u(()=>q(b)),n.set(d+"",w))}if(c===void 0)(!v||ve(a,l)?.writable)&&(c=u(()=>q(void 0)),Y(c,_e(i)),n.set(l,c));else{v=c.v!==b;var ye=u(()=>_e(i));Y(c,ye)}var we=Reflect.getOwnPropertyDescriptor(a,l);if(we?.set&&we.set.call(o,i),!v){if(r&&typeof l=="string"){var Je=n.get("length"),Pe=Number(l);Number.isInteger(Pe)&&Pe>=Je.v&&Y(Je,Pe+1)}Me(s)}return!0},ownKeys(a){ie(s);var l=Reflect.ownKeys(a).filter(c=>{var v=n.get(c);return v===void 0||v.v!==b});for(var[i,o]of n)o.v!==b&&!(i in a)&&l.push(i);return l},setPrototypeOf(){sn()}})}function nt(e){try{if(e!==null&&typeof e=="object"&&J in e)return e[J]}catch{}return e}function Rr(e,t){return Object.is(nt(e),nt(t))}var rt,Tn,St,Rt;function Or(){if(rt===void 0){rt=window,Tn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;St=ve(t,"firstChild").get,Rt=ve(t,"nextSibling").get,Qe(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Qe(n)&&(n.__t=void 0)}}function Se(e=""){return document.createTextNode(e)}function Re(e){return St.call(e)}function X(e){return Rt.call(e)}function Nr(e,t){if(!B)return Re(e);var n=Re(x);if(n===null)n=x.appendChild(Se());else if(t&&n.nodeType!==Be){var r=Se();return n?.before(r),ae(r),r}return ae(n),n}function Cr(e,t=!1){if(!B){var n=Re(e);return n instanceof Comment&&n.data===""?X(n):n}if(t&&x?.nodeType!==Be){var r=Se();return x?.before(r),ae(r),r}return x}function Dr(e,t=1,n=!1){let r=B?x:e;for(var s;t--;)s=r,r=X(r);if(!B)return r;if(n&&r?.nodeType!==Be){var f=Se();return r===null?s?.after(f):r.before(f),ae(f),f}return ae(r),r}function An(e){e.textContent=""}function kr(){return!1}function Pr(e,t){if(t){const n=document.body;e.autofocus=!0,yt(()=>{document.activeElement===n&&e.focus()})}}function Ir(e){B&&Re(e)!==null&&An(e)}let st=!1;function xn(){st||(st=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function We(e){var t=_,n=p;$(null),le(null);try{return e()}finally{$(t),le(n)}}function Mr(e,t,n,r=n){e.addEventListener(t,()=>We(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),xn()}function Ot(e){p===null&&(_===null&&tn(),en()),re&&Qt()}function Sn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function C(e,t,n){var r=p;r!==null&&(r.f&P)!==0&&(e|=P);var s={ctx:y,deps:null,nodes:null,f:e|S|N,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{ue(s),s.f|=Ue}catch(a){throw K(s),a}else t!==null&&ne(s);var f=s;if(n&&f.deps===null&&f.teardown===null&&f.nodes===null&&f.first===f.last&&(f.f&oe)===0&&(f=f.first,(e&F)!==0&&(e&me)!==0&&f!==null&&(f.f|=me)),f!==null&&(f.parent=r,r!==null&&Sn(f,r),_!==null&&(_.f&g)!==0&&(e&z)===0)){var u=_;(u.effects??=[]).push(f)}return s}function Nt(){return _!==null&&!k}function Rn(e){const t=C(pe,null,!1);return m(t,E),t.teardown=e,t}function Fr(e){Ot();var t=p.f,n=!_&&(t&j)!==0&&(t&Ue)===0;if(n){var r=y;(r.e??=[]).push(e)}else return Ct(e)}function Ct(e){return C(ge|ct,e,!1)}function jr(e){return Ot(),C(pe|ct,e,!0)}function Lr(e){G.ensure();const t=C(z|oe,e,!0);return()=>{K(t)}}function qr(e){G.ensure();const t=C(z|oe,e,!0);return(n={})=>new Promise(r=>{n.outro?Dn(t,()=>{K(t),r(void 0)}):(K(t),r(void 0))})}function Yr(e){return C(ge,e,!1)}function Hr(e,t){var n=y,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=Dt(()=>{e(),!r.ran&&(r.ran=!0,Bt(t))})}function Ur(){var e=y;Dt(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&E)!==0&&n.deps!==null&&m(n,L),ce(n)&&ue(n),t.ran=!1}})}function On(e){return C(Ve|oe,e,!0)}function Dt(e,t=0){return C(pe|t,e,!0)}function Vr(e,t=[],n=[],r=[]){yn(r,t,n,s=>{C(pe,()=>e(...s.map(ie)),!0)})}function Br(e,t=0){var n=C(F|t,e,!0);return n}function Gr(e,t=0){var n=C(He|t,e,!0);return n}function Kr(e){return C(j|oe,e,!0)}function kt(e){var t=e.teardown;if(t!==null){const n=re,r=_;ft(!0),$(null);try{t.call(null)}finally{ft(n),$(r)}}}function Pt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&We(()=>{s.abort(fe)});var r=n.next;(n.f&z)!==0?n.parent=null:K(n,t),n=r}}function Nn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&j)===0&&K(t),t=n}}function K(e,t=!0){var n=!1;(t||(e.f&ot)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Cn(e.nodes.start,e.nodes.end),n=!0),Pt(e,t&&!n),Ne(e,0),m(e,H);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();kt(e);var s=e.parent;s!==null&&s.first!==null&&It(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Cn(e,t){for(;e!==null;){var n=e===t?null:X(e);e.remove(),e=n}}function It(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Dn(e,t,n=!0){var r=[];Mt(e,r,!0);var s=()=>{n&&K(e),t&&t()},f=r.length;if(f>0){var u=()=>--f||s();for(var a of r)a.out(u)}else s()}function Mt(e,t,n){if((e.f&P)===0){e.f^=P;var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&t.push(a);for(var s=e.first;s!==null;){var f=s.next,u=(s.f&me)!==0||(s.f&j)!==0&&(e.f&F)!==0;Mt(s,t,u?n:!1),s=f}}}function $r(e){Ft(e,!0)}function Ft(e,t){if((e.f&P)!==0){e.f^=P,(e.f&E)===0&&(m(e,S),ne(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&me)!==0||(n.f&j)!==0;Ft(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const u of f)(u.is_global||t)&&u.in()}}function zr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:X(n);t.append(n),n=s}}let Q=!1;function Oe(e){Q=e}let re=!1;function ft(e){re=e}let _=null,k=!1;function $(e){_=e}let p=null;function le(e){p=e}let M=null;function jt(e){_!==null&&(M===null?M=[e]:M.push(e))}let T=null,A=0,R=null;function kn(e){R=e}let Lt=1,W=0,ee=W;function it(e){ee=e}function qt(){return++Lt}function ce(e){var t=e.f;if((t&S)!==0)return!0;if(t&g&&(e.f&=~te),(t&L)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var f=n[s];if(ce(f)&&Tt(f),f.wv>e.wv)return!0}(t&N)!==0&&D===null&&m(e,E)}return!1}function Yt(e,t,n=!0){var r=e.reactions;if(r!==null&&!M?.includes(e))for(var s=0;s<r.length;s++){var f=r[s];(f.f&g)!==0?Yt(f,t,!1):t===f&&(n?m(f,S):(f.f&E)!==0&&m(f,L),ne(f))}}function Ht(e){var t=T,n=A,r=R,s=_,f=M,u=y,a=k,l=ee,i=e.f;T=null,A=0,R=null,_=(i&(j|z))===0?e:null,M=null,Te(e.ctx),k=!1,ee=++W,e.ac!==null&&(We(()=>{e.ac.abort(fe)}),e.ac=null);try{e.f|=Fe;var o=e.fn,c=o(),v=e.deps;if(T!==null){var d;if(Ne(e,A),v!==null&&A>0)for(v.length=A+T.length,d=0;d<T.length;d++)v[A+d]=T[d];else e.deps=v=T;if(Nt()&&(e.f&N)!==0)for(d=A;d<v.length;d++)(v[d].reactions??=[]).push(e)}else v!==null&&A<v.length&&(Ne(e,A),v.length=A);if(he()&&R!==null&&!k&&v!==null&&(e.f&(g|L|S))===0)for(d=0;d<R.length;d++)Yt(R[d],e);if(s!==null&&s!==e){if(W++,s.deps!==null)for(let w=0;w<n;w+=1)s.deps[w].rv=W;if(t!==null)for(const w of t)w.rv=W;R!==null&&(r===null?r=R:r.push(...R))}return(e.f&U)!==0&&(e.f^=U),c}catch(w){return _n(w)}finally{e.f^=Fe,T=t,A=n,R=r,_=s,M=f,Te(u),k=a,ee=l}}function Pn(e,t){let n=t.reactions;if(n!==null){var r=Kt.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&g)!==0&&(T===null||!T.includes(t))){var f=t;(f.f&N)!==0&&(f.f^=N,f.f&=~te),$e(f),mt(f),Ne(f,0)}}function Ne(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Pn(e,n[r])}function ue(e){var t=e.f;if((t&H)===0){m(e,E);var n=p,r=Q;p=e,Q=!0;try{(t&(F|He))!==0?Nn(e):Pt(e),kt(e);var s=Ht(e);e.teardown=typeof s=="function"?s:null,e.wv=Lt;var f}finally{Q=r,p=n}}}async function Xr(){await Promise.resolve(),pn()}function Zr(){return G.ensure().settled()}function ie(e){var t=e.f,n=(t&g)!==0;if(_!==null&&!k){var r=p!==null&&(p.f&H)!==0;if(!r&&!M?.includes(e)){var s=_.deps;if((_.f&Fe)!==0)e.rv<W&&(e.rv=W,T===null&&s!==null&&s[A]===e?A++:T===null?T=[e]:T.push(e));else{(_.deps??=[]).push(e);var f=e.reactions;f===null?e.reactions=[_]:f.includes(_)||f.push(_)}}}if(re&&V.has(e))return V.get(e);if(n){var u=e;if(re){var a=u.v;return((u.f&E)===0&&u.reactions!==null||Vt(u))&&(a=Xe(u)),V.set(u,a),a}var l=(u.f&N)===0&&!k&&_!==null&&(Q||(_.f&N)!==0),i=u.deps===null;ce(u)&&(l&&(u.f|=N),Tt(u)),l&&!i&&Ut(u)}if(D?.has(e))return D.get(e);if((e.f&U)!==0)throw e.v;return e.v}function Ut(e){if(e.deps!==null){e.f|=N;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&g)!==0&&(t.f&N)===0&&Ut(t)}}function Vt(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(V.has(t)||(t.f&g)!==0&&Vt(t))return!0;return!1}function Bt(e){var t=k;try{return k=!0,e()}finally{k=t}}function Wr(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(J in e)Ye(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&J in n&&Ye(n)}}}function Ye(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ye(e[r],t)}catch{}const n=at(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=$t(n);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}function In(e,t,n){if(e==null)return t(void 0),Ee;const r=Bt(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const se=[];function Jr(e,t=Ee){let n=null;const r=new Set;function s(a){if(dt(e,a)&&(e=a,n)){const l=!se.length;for(const i of r)i[1](),se.push(i,e);if(l){for(let i=0;i<se.length;i+=2)se[i][0](se[i+1]);se.length=0}}}function f(a){s(a(e))}function u(a,l=Ee){const i=[a,l];return r.add(i),r.size===1&&(n=t(s,f)||Ee),a(e),()=>{r.delete(i),r.size===0&&n&&(n(),n=null)}}return{set:s,update:f,subscribe:u}}function Qr(e){let t;return In(e,n=>t=n)(),t}export{rt as $,jr as A,Zt as B,Ln as C,Wr as D,me as E,ze as F,yr as G,Wt as H,Ce as I,Gt as J,xr as K,In as L,Qr as M,Rn as N,Fn as O,Sr as P,qn as Q,$r as R,K as S,Dn as T,Se as U,Kr as V,x as W,zr as X,kr as Y,hr as Z,ln as _,Tr as a,zn as a$,pr as a0,ae as a1,cr as a2,Yr as a3,yt as a4,J as a5,ve as a6,Kn as a7,tr as a8,En as a9,m as aA,S as aB,ne as aC,L as aD,qe as aE,Ae as aF,$n as aG,oe as aH,ut as aI,or as aJ,We as aK,Or as aL,an as aM,X as aN,Ge as aO,Gn as aP,An as aQ,Mn as aR,qr as aS,un as aT,Ke as aU,pn as aV,Cn as aW,lr as aX,Hr as aY,Ur as aZ,Yn as a_,re as aa,p as ab,H as ac,nr as ad,er as ae,Qn as af,jn as ag,Hn as ah,rr as ai,Ze as aj,le as ak,Re as al,Tn as am,sr as an,fr as ao,Ue as ap,_t as aq,Be as ar,Nt as as,Me as at,G as au,dn as av,$ as aw,Te as ax,_n as ay,_ as az,q as b,Jn as b0,Xn as b1,P as b2,Zn as b3,Wn as b4,Bn as b5,ar as b6,Gr as b7,ur as b8,Rr as b9,yn as ba,Pr as bb,b as bc,xn as bd,ir as be,at as bf,Un as bg,$t as bh,he as bi,ee as bj,Er as bk,wr as bl,br as bm,gr as bn,Lr as bo,zt as bp,ot as bq,Jr as br,Zr as bs,Nr as c,_e as d,Y as e,Cr as f,ie as g,Ar as h,Ee as i,Ir as j,h as k,Mr as l,Xr as m,dr as n,B as o,mr as p,Bt as q,vr as r,Dr as s,Vr as t,Fr as u,Dt as v,Ie as w,Br as x,_r as y,y as z};
@@ -0,0 +1 @@
1
+ import{c as n,a as c}from"./DvA-KON-.js";import{p as i,f as m,i as d,a as f}from"./D3vxvonu.js";import{k as l}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function N(s,o){i(o,!0);let e=u(o,["$$slots","$$events","$$legacy"]);const t=[["path",{d:"M20 6 9 17l-5-5"}]];$(s,h({name:"check"},()=>e,{get iconNode(){return t},children:(a,_)=>{var r=n(),p=m(r);l(p,()=>o.children??d),c(a,r)},$$slots:{default:!0}})),f()}export{N as C};
@@ -0,0 +1 @@
1
+ const s=globalThis.__sveltekit_1t47v30?.base??"",t=globalThis.__sveltekit_1t47v30?.assets??s??"";export{t as a,s as b};
@@ -1 +1 @@
1
- import{s as e}from"./BtFaGGII.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
1
+ import{s as e}from"./B8a0xDxR.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
@@ -0,0 +1,2 @@
1
+ import{as as J,g as q,aj as j,v as K,q as Q,at as C,a4 as F,W as d,o as _,ab as m,x as Z,y as ee,aq as V,_ as te,V as f,au as T,T as A,U,av as se,ak as R,aw as y,ax as P,ay as ie,az as L,z,X as re,aA as B,aB as ne,aC as Y,aD as ae,aE as oe,S as D,a1 as k,n as le,a0 as ue,aF as W,aG as ce,E as he,aH as fe,aI as de,aJ as _e,N as pe,aK as ge,O as ve,aL as O,al as ye,aM as Ee,aN as be,aO as x,a2 as S,aP as me,aQ as we,aR as Te,aS as Se,p as Re,aT as ke,aU as Ne,a as Ae}from"./D3vxvonu.js";import{d as De}from"./DvA-KON-.js";function Le(t){let e=0,s=j(0),r;return()=>{J()&&(q(s),K(()=>(e===0&&(r=Q(()=>t(()=>C(s)))),e+=1,()=>{F(()=>{e-=1,e===0&&(r?.(),r=void 0,C(s))})})))}}var Oe=he|fe|de;function xe(t,e,s){new Ie(t,e,s)}class Ie{parent;is_pending=!1;#t;#v=_?d:null;#i;#c;#r;#s=null;#e=null;#n=null;#a=null;#l=null;#h=0;#o=0;#f=!1;#d=new Set;#_=new Set;#u=null;#b=Le(()=>(this.#u=j(this.#h),()=>{this.#u=null}));constructor(e,s,r){this.#t=e,this.#i=s,this.#c=r,this.parent=m.b,this.is_pending=!!this.#i.pending,this.#r=Z(()=>{if(m.b=this,_){const i=this.#v;ee(),i.nodeType===V&&i.data===te?this.#w():(this.#m(),this.#o===0&&(this.is_pending=!1))}else{var n=this.#y();try{this.#s=f(()=>r(n))}catch(i){this.error(i)}this.#o>0?this.#g():this.is_pending=!1}return()=>{this.#l?.remove()}},Oe),_&&(this.#t=d)}#m(){try{this.#s=f(()=>this.#c(this.#t))}catch(e){this.error(e)}}#w(){const e=this.#i.pending;e&&(this.#e=f(()=>e(this.#t)),T.enqueue(()=>{var s=this.#y();this.#s=this.#p(()=>(T.ensure(),f(()=>this.#c(s)))),this.#o>0?this.#g():(A(this.#e,()=>{this.#e=null}),this.is_pending=!1)}))}#y(){var e=this.#t;return this.is_pending&&(this.#l=U(),this.#t.before(this.#l),e=this.#l),e}defer_effect(e){se(e,this.#d,this.#_)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#p(e){var s=m,r=L,n=z;R(this.#r),y(this.#r),P(this.#r.ctx);try{return e()}catch(i){return ie(i),null}finally{R(s),y(r),P(n)}}#g(){const e=this.#i.pending;this.#s!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#l),re(this.#s,this.#a)),this.#e===null&&(this.#e=f(()=>e(this.#t)))}#E(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#E(e);return}if(this.#o+=e,this.#o===0){this.is_pending=!1;for(const s of this.#d)B(s,ne),Y(s);for(const s of this.#_)B(s,ae),Y(s);this.#d.clear(),this.#_.clear(),this.#e&&A(this.#e,()=>{this.#e=null}),this.#a&&(this.#t.before(this.#a),this.#a=null)}}update_pending_count(e){this.#E(e),this.#h+=e,this.#u&&oe(this.#u,this.#h)}get_effect_pending(){return this.#b(),q(this.#u)}error(e){var s=this.#i.onerror;let r=this.#i.failed;if(this.#f||!s&&!r)throw e;this.#s&&(D(this.#s),this.#s=null),this.#e&&(D(this.#e),this.#e=null),this.#n&&(D(this.#n),this.#n=null),_&&(k(this.#v),le(),k(ue()));var n=!1,i=!1;const a=()=>{if(n){_e();return}n=!0,i&&ce(),T.ensure(),this.#h=0,this.#n!==null&&A(this.#n,()=>{this.#n=null}),this.is_pending=this.has_pending_snippet(),this.#s=this.#p(()=>(this.#f=!1,f(()=>this.#c(this.#t)))),this.#o>0?this.#g():this.is_pending=!1};var c=L;try{y(null),i=!0,s?.(e,a),i=!1}catch(u){W(u,this.#r&&this.#r.parent)}finally{y(c)}r&&F(()=>{this.#n=this.#p(()=>{T.ensure(),this.#f=!0;try{return f(()=>{r(this.#t,()=>e,()=>a)})}catch(u){return W(u,this.#r.parent),null}finally{this.#f=!1}})})}}function He(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Me=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function qe(t){return Me.includes(t)}const Fe={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function je(t){return t=t.toLowerCase(),Fe[t]??t}const Ve=["touchstart","touchmove"];function Ce(t){return Ve.includes(t)}const Pe=["textarea","script","style","title"];function Ue(t){return Pe.includes(t)}const G=new Set,I=new Set;function X(t,e,s,r={}){function n(i){if(r.capture||b.call(e,i),!i.cancelBubble)return ge(()=>s?.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?F(()=>{e.addEventListener(t,n,r)}):e.addEventListener(t,n,r),n}function ze(t,e,s,r={}){var n=X(e,t,s,r);return()=>{t.removeEventListener(e,n,r)}}function Ge(t,e,s,r,n){var i={capture:r,passive:n},a=X(t,e,s,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&pe(()=>{e.removeEventListener(t,a,i)})}function Xe(t){for(var e=0;e<t.length;e++)G.add(t[e]);for(var s of I)s(t)}let H=null;function b(t){var e=this,s=e.ownerDocument,r=t.type,n=t.composedPath?.()||[],i=n[0]||t.target;H=t;var a=0,c=H===t&&t.__root;if(c){var u=n.indexOf(c);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;u<=p&&(a=u)}if(i=n[a]||t.target,i!==e){ve(t,"currentTarget",{configurable:!0,get(){return i||s}});var N=L,h=m;y(null),R(null);try{for(var o,l=[];i!==null;){var g=i.assignedSlot||i.parentNode||i.host||null;try{var E=i["__"+r];E!=null&&(!i.disabled||t.target===i)&&E.call(i,t)}catch(w){o?l.push(w):o=w}if(t.cancelBubble||g===e||g===null)break;i=g}if(o){for(let w of l)queueMicrotask(()=>{throw w});throw o}}finally{t.__root=e,delete t.currentTarget,y(N),R(h)}}}function $e(t,e){var s=e==null?"":typeof e=="object"?e+"":e;s!==(t.__t??=t.nodeValue)&&(t.__t=s,t.nodeValue=s+"")}function Be(t,e){return $(t,e)}function Je(t,e){O(),e.intro=e.intro??!1;const s=e.target,r=_,n=d;try{for(var i=ye(s);i&&(i.nodeType!==V||i.data!==Ee);)i=be(i);if(!i)throw x;S(!0),k(i);const a=$(t,{...e,anchor:i});return S(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(c=>c.startsWith("https://svelte.dev/e/")))throw a;return a!==x&&console.warn("Failed to hydrate: ",a),e.recover===!1&&me(),O(),we(s),S(!1),Be(t,e)}finally{S(r),k(n)}}const v=new Map;function $(t,{target:e,anchor:s,props:r={},events:n,context:i,intro:a=!0}){O();var c=new Set,u=h=>{for(var o=0;o<h.length;o++){var l=h[o];if(!c.has(l)){c.add(l);var g=Ce(l);e.addEventListener(l,b,{passive:g});var E=v.get(l);E===void 0?(document.addEventListener(l,b,{passive:g}),v.set(l,1)):v.set(l,E+1)}}};u(Te(G)),I.add(u);var p=void 0,N=Se(()=>{var h=s??e.appendChild(U());return xe(h,{pending:()=>{}},o=>{if(i){Re({});var l=z;l.c=i}if(n&&(r.$$events=n),_&&De(o,null),p=t(o,r)||{},_&&(m.nodes.end=d,d===null||d.nodeType!==V||d.data!==ke))throw Ne(),x;i&&Ae()}),()=>{for(var o of c){e.removeEventListener(o,b);var l=v.get(o);--l===0?(document.removeEventListener(o,b),v.delete(o)):v.set(o,l)}I.delete(u),h!==s&&h.parentNode?.removeChild(h)}});return M.set(p,N),p}let M=new WeakMap;function Ke(t,e){const s=M.get(t);return s?(M.delete(t),s(e)):Promise.resolve()}export{He as a,qe as b,X as c,Xe as d,Ge as e,Le as f,Je as h,Ue as i,Be as m,je as n,ze as o,$e as s,Ke as u};
@@ -0,0 +1 @@
1
+ import{f as l,a as m}from"./DvA-KON-.js";import{p as f,a as i}from"./D3vxvonu.js";import{l as n,m as p}from"./DQA8NZIH.js";import{p as c,r as d,b as u}from"./BysXJlZb.js";var v=l("<div></div>");function k(r,a){f(a,!0);let e=c(a,"ref",15,null),o=d(a,["$$slots","$$events","$$legacy","ref","class"]);var s=v();n(s,t=>({"data-slot":"skeleton",class:t,...o}),[()=>p("bg-accent animate-pulse rounded-md",a.class)]),u(s,t=>e(t),()=>e()),m(r,s),i()}export{k as S};
@@ -0,0 +1 @@
1
+ import{c as n,a as m}from"./DvA-KON-.js";import{p as i,f as c,i as d,a as f}from"./D3vxvonu.js";import{k as l}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function k(s,o){i(o,!0);let t=u(o,["$$slots","$$events","$$legacy"]);const a=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];$(s,h({name:"x"},()=>t,{get iconNode(){return a},children:(e,_)=>{var r=n(),p=c(r);l(p,()=>o.children??d),m(e,r)},$$slots:{default:!0}})),f()}export{k as X};
@@ -0,0 +1 @@
1
+ import{x as s,o as c,y as m,E as i}from"./D3vxvonu.js";import{B as p}from"./BysXJlZb.js";function E(n,r,o){c&&m();var e=new p(n);s(()=>{var a=r()??null;e.ensure(a,a&&(t=>o(t,a)))},i)}export{E as c};
@@ -0,0 +1 @@
1
+ import{c as i,a as n}from"./DvA-KON-.js";import{p as m,f as c,i as l,a as d}from"./D3vxvonu.js";import{k as f}from"./DQA8NZIH.js";import{s as h,r as u}from"./BysXJlZb.js";import{I as $}from"./B5wTVqxm.js";function N(a,o){m(o,!0);let r=u(o,["$$slots","$$events","$$legacy"]);const s=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]];$(a,h({name:"activity"},()=>r,{get iconNode(){return s},children:(e,v)=>{var t=i(),p=c(t);f(p,()=>o.children??l),n(e,t)},$$slots:{default:!0}})),d()}export{N as A};
@@ -0,0 +1 @@
1
+ import{c as U,a as s,f as u,t as I}from"./DvA-KON-.js";import{p as It,u as $e,e as R,f as S,a as zt,b as ut,c as v,s as d,r as i,t as B,g as l,h as et,n as $,i as Yt}from"./D3vxvonu.js";import{s as z}from"./D9QNBZM2.js";import{i as p,s as at,r as Zt}from"./BysXJlZb.js";import{B as ct,c as Ae,e as rt,h as ot,q as Le,p as Ee,R as We,G as Ge,H as Ue,I as je,J as Fe,K as He,k as te}from"./DQA8NZIH.js";import{c as G}from"./DAx07bEQ.js";import{B as F}from"./BkOJ8DkV.js";import{T as Xt}from"./k_Qegko0.js";import{I as Oe}from"./Eo4gF7ih.js";import{S as Mt}from"./8RBjHMN1.js";import{S as V}from"./DAMmvwn4.js";import{R as ft}from"./Cncwi6fQ.js";import{T as _t,a as mt,b as gt}from"./DRfPm2bo.js";import{G as Ve}from"./BYzrIfX8.js";import{E as qe}from"./B6VSmczZ.js";import{I as ee}from"./B5wTVqxm.js";function Je(k){return{pending:{bg:"bg-status-pending",fg:"text-status-pending-fg",label:"Pending"},in_progress:{bg:"bg-status-in-progress",fg:"text-status-in-progress-fg",label:"In Progress"},pending_review:{bg:"bg-status-pending-review",fg:"text-status-pending-review-fg",label:"Review"},needs_work:{bg:"bg-status-needs-work",fg:"text-status-needs-work-fg",label:"Needs Work"},completed:{bg:"bg-status-completed",fg:"text-status-completed-fg",label:"Completed"},blocked:{bg:"bg-status-blocked",fg:"text-status-blocked-fg",label:"Blocked"},cancelled:{bg:"bg-status-cancelled",fg:"text-status-cancelled-fg",label:"Cancelled"}}[k]||{bg:"bg-muted",fg:"text-muted-foreground",label:k}}function Qa(k){const e=[],C=[],b=[],M=[],P=[];for(const A of k)switch(A.status){case"pending":{A.automation==="eligible"?C.push(A):e.push(A);break}case"in_progress":case"needs_work":b.push(A);break;case"pending_review":M.push(A);break;case"completed":P.push(A);break;case"blocked":b.push(A);break;case"cancelled":P.push(A);break}const T=(A,K)=>A.priority-K.priority;e.sort(T),C.sort(T),b.sort(T),M.sort(T),P.sort((A,K)=>{const yt=new Date(A.started_at||A.created_at).getTime();return new Date(K.started_at||K.created_at).getTime()-yt});const H=P.slice(0,20);return[{id:"backlog",label:"Backlog",tasks:e},{id:"ready",label:"Ready",tasks:C},{id:"in_progress",label:"In Progress",tasks:b},{id:"review",label:"Review",tasks:M},{id:"done",label:"Done",tasks:H}]}function Xa(k){const e=Date.now(),C=new Date(k).getTime(),b=e-C,M=Math.floor(b/6e4),P=Math.floor(M/60),T=Math.floor(P/24);return M<1?"just now":M<60?`${M}m`:P<24?`${P}h`:T<30?`${T}d`:`${Math.floor(T/30)}mo`}function Ya(k){const e=Math.floor(k/1e3),C=Math.floor(e/60),b=Math.floor(C/60);return b>0?`${b}h ${C%60}m`:C>0?`${C}m ${e%60}s`:`${e}s`}function Ke(k){if(k.startsWith("branch:"))return{label:k.slice(7),url:null};if(k.startsWith("pr:")){const e=k.slice(3);return e.startsWith("http")?{label:`PR ${e.split("/").pop()}`,url:e}:{label:`PR #${e}`,url:null}}if(k.startsWith("http")){const e=k.match(/\/pull\/(\d+)/);return e?{label:`PR #${e[1]}`,url:k}:{label:k.split("/").slice(-1)[0]||k,url:k}}return{label:k,url:null}}var Qe=u('<div class="flex flex-col gap-4 py-4" data-testid="task-detail-skeleton"><!> <!> <div class="flex gap-2"><!> <!></div> <div><!> <!></div> <div class="flex gap-1"><!> <!></div> <!> <div><!> <!></div></div>'),Xe=u('<div class="bg-destructive/10 text-destructive p-4 rounded-lg" role="alert"> </div>'),Ye=u('<p class="text-sm text-muted-foreground" data-testid="task-description"> </p>'),Ze=u('<div data-testid="task-spec-ref"><p class="text-xs font-medium text-muted-foreground mb-0.5">Spec</p> <!></div>'),ta=u('<div data-testid="task-tags"><p class="text-xs font-medium text-muted-foreground mb-1">Tags</p> <div class="flex flex-wrap gap-1"></div></div>'),ea=u("<li><!></li>"),aa=u('<p class="text-xs font-medium text-muted-foreground mb-1">Dependencies</p> <ul class="text-sm space-y-0.5"></ul>',1),sa=u('<p class="text-sm text-muted-foreground">No dependencies</p>'),ra=u("<li><!></li>"),oa=u('<div data-testid="task-blocked-by"><p class="text-xs font-medium text-destructive mb-1">Blocked By</p> <ul class="text-sm space-y-0.5"></ul></div>'),da=u('<a target="_blank" rel="noopener noreferrer" class="text-xs text-primary hover:underline font-mono inline-flex items-center gap-1"> <!></a>'),la=u('<span class="text-muted-foreground font-mono text-xs"> </span>'),na=u('<li class="flex items-center gap-1.5"><!> <!></li>'),ia=u('<div data-testid="task-vcs"><p class="text-xs font-medium text-muted-foreground mb-1">VCS</p> <ul class="text-sm space-y-1"></ul></div>'),va=u('<div data-testid="task-plan-ref"><p class="text-xs font-medium text-muted-foreground mb-0.5">Plan</p> <!></div>'),ua=u('<div data-testid="task-derivation"><p class="text-xs font-medium text-muted-foreground mb-0.5">Derivation</p> <p class="text-sm text-muted-foreground"> </p></div>'),ca=u('<div data-testid="task-session-ref"><p class="text-xs font-medium text-muted-foreground mb-0.5">Session</p> <!></div>'),fa=u("<p>Read-only mode — use CLI to start task</p>"),_a=u("<!> <!>",1),ma=u("<p>Read-only mode — use CLI to submit task</p>"),ga=u("<!> <!>",1),pa=u("<p>Read-only mode — use CLI to complete task</p>"),ha=u("<!> <!>",1),xa=u("<p>Read-only mode — use CLI to block task</p>"),ka=u("<!> <!>",1),ba=u('<div class="flex gap-2" data-testid="reason-input"><!> <!> <!></div>'),ya=u('<p class="text-sm text-destructive" data-testid="action-error"> </p>'),wa=u('<li class="flex items-start gap-2 text-sm"><span class="mt-0.5 text-xs"><!></span> <span> </span></li>'),Pa=u('<p class="text-xs font-medium text-muted-foreground mb-1"> </p> <ul class="space-y-1"></ul>',1),Ta=u('<p class="text-sm text-muted-foreground">No todos</p>'),Ra=u("<p>Read-only mode — use CLI to add notes</p>"),Sa=u("<!> <!>",1),Ca=u('<div class="mb-3 space-y-2" data-testid="task-add-note"><!> <!></div>'),Ma=u('<div class="mb-3 space-y-2" data-testid="task-add-note"><!> <!></div>'),Ia=u('No notes recorded. Use <code class="bg-muted px-1 rounded">kspec task note</code> to add context.',1),za=u('<div class="text-center py-4 text-muted-foreground text-xs" data-testid="notes-empty"><!></div>'),Da=u('<div class="border rounded-md p-2.5" data-testid="note-item"><div class="flex justify-between items-start mb-1"><span class="text-[10px] text-muted-foreground"> </span> <span class="text-[10px] text-muted-foreground" data-testid="note-timestamp"> </span></div> <p class="text-sm whitespace-pre-wrap"> </p></div>'),Na=u('<div class="flex flex-col gap-4"><!> <div class="flex flex-wrap gap-2 items-center"><!> <!> <!> <!></div> <!> <!> <div data-testid="task-dependencies"><!></div> <!> <!> <!> <!> <!> <div class="flex flex-wrap gap-2" data-testid="task-actions"><!> <!> <!> <!></div> <!> <!> <!> <div data-testid="task-todos"><!></div> <!> <div data-testid="task-notes"><p class="text-xs font-medium text-muted-foreground mb-2"> </p> <!> <div class="space-y-3"><!></div></div></div>');function Za(k,e){It(e,!0);let C=ut(""),b=ut(!1),M=ut(""),P=ut(""),T=ut(null);$e(()=>{e.task&&(R(C,""),R(M,""),R(P,""),R(T,null))});async function H(L){if(e.task){R(b,!0),R(C,"");try{await L(),e.onTaskUpdated?.(e.task)}catch(O){O instanceof We?R(C,O.message,!0):R(C,O instanceof Error?O.message:"Action failed",!0)}finally{R(b,!1)}}}function A(){e.task&&H(()=>Fe(e.task._ulid))}function K(){e.task&&H(()=>He(e.task._ulid))}function yt(){if(!e.task||!l(P).trim())return;const L=l(P).trim();H(async()=>{await Ge(e.task._ulid,L),R(P,""),R(T,null)})}function Dt(){if(!e.task||!l(P).trim())return;const L=l(P).trim();H(async()=>{await Ue(e.task._ulid,L),R(P,""),R(T,null)})}function ae(){if(!e.task||!l(M).trim())return;const L=l(M).trim();H(async()=>{await je(e.task._ulid,L),R(M,"")})}function se(L){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(new Date(L))}let pt=et(()=>e.task?Je(e.task.status):null),Q=et(Ae);var Nt=U(),re=S(Nt);{var oe=L=>{var O=Qe(),ht=v(O);V(ht,{class:"h-6 w-3/4 ds-shimmer"});var xt=d(ht,2);V(xt,{class:"h-3 w-24 ds-shimmer"});var dt=d(xt,2),q=v(dt);V(q,{class:"h-5 w-20 rounded-full ds-shimmer"});var J=d(q,2);V(J,{class:"h-5 w-24 rounded-full ds-shimmer"}),i(dt);var X=d(dt,2),kt=v(X);V(kt,{class:"h-3 w-10 mb-1 ds-shimmer"});var lt=d(kt,2);V(lt,{class:"h-4 w-32 ds-shimmer"}),i(X);var Y=d(X,2),nt=v(Y);V(nt,{class:"h-5 w-12 rounded-full ds-shimmer"});var wt=d(nt,2);V(wt,{class:"h-5 w-16 rounded-full ds-shimmer"}),i(Y);var st=d(Y,2);V(st,{class:"h-px w-full ds-shimmer"});var it=d(st,2),vt=v(it);V(vt,{class:"h-3 w-16 mb-2 ds-shimmer"});var bt=d(vt,2);V(bt,{class:"h-16 w-full rounded-md ds-shimmer"}),i(it),i(O),s(L,O)},de=L=>{var O=U(),ht=S(O);{var xt=q=>{var J=Xe(),X=v(J,!0);i(J),B(()=>z(X,e.error)),s(q,J)},dt=q=>{var J=U(),X=S(J);{var kt=lt=>{var Y=Na(),nt=v(Y);{var wt=t=>{var a=Ye(),o=v(a,!0);i(a),B(()=>z(o,e.task.description)),s(t,a)};p(nt,t=>{e.task.description&&t(wt)})}var st=d(nt,2),it=v(st);ct(it,{get class(){return`${l(pt).bg??""} ${l(pt).fg??""}`},"data-testid":"task-status-badge",children:(t,a)=>{$();var o=I();B(()=>z(o,l(pt).label)),s(t,o)},$$slots:{default:!0}});var vt=d(it,2);ct(vt,{variant:"outline","data-testid":"task-priority",children:(t,a)=>{$();var o=I();B(()=>z(o,`Priority ${e.task.priority??""}`)),s(t,o)},$$slots:{default:!0}});var bt=d(vt,2);ct(bt,{variant:"outline","data-testid":"task-type",children:(t,a)=>{$();var o=I();B(()=>z(o,e.task.type)),s(t,o)},$$slots:{default:!0}});var le=d(bt,2);{var ne=t=>{ct(t,{variant:"secondary","data-testid":"task-automation",children:(a,o)=>{$();var _=I();B(()=>z(_,e.task.automation)),s(a,_)},$$slots:{default:!0}})};p(le,t=>{e.task.automation&&t(ne)})}i(st);var Bt=d(st,2);{var ie=t=>{var a=Ze(),o=d(v(a),2);ft(o,{get ref(){return e.task.spec_ref},type:"spec"}),i(a),s(t,a)};p(Bt,t=>{e.task.spec_ref&&t(ie)})}var $t=d(Bt,2);{var ve=t=>{var a=ta(),o=d(v(a),2);rt(o,21,()=>e.task.tags,ot,(_,c)=>{ct(_,{variant:"secondary",children:(r,n)=>{$();var f=I();B(()=>z(f,l(c))),s(r,f)},$$slots:{default:!0}})}),i(o),i(a),s(t,a)};p($t,t=>{e.task.tags?.length>0&&t(ve)})}var Pt=d($t,2),ue=v(Pt);{var ce=t=>{var a=aa(),o=d(S(a),2);rt(o,21,()=>e.task.depends_on,ot,(_,c)=>{var r=ea(),n=v(r);ft(n,{get ref(){return l(c)},type:"task",class:"text-xs"}),i(r),s(_,r)}),i(o),s(t,a)},fe=t=>{var a=sa();s(t,a)};p(ue,t=>{e.task.depends_on?.length>0?t(ce):t(fe,!1)})}i(Pt);var At=d(Pt,2);{var _e=t=>{var a=oa(),o=d(v(a),2);rt(o,21,()=>e.task.blocked_by,ot,(_,c)=>{var r=ra(),n=v(r);ft(n,{get ref(){return l(c)},type:"task",class:"text-xs"}),i(r),s(_,r)}),i(o),i(a),s(t,a)};p(At,t=>{e.task.blocked_by?.length>0&&t(_e)})}var Lt=d(At,2);{var me=t=>{var a=ia(),o=d(v(a),2);rt(o,21,()=>e.task.vcs_refs,ot,(_,c)=>{const r=et(()=>Ke(l(c)));var n=na(),f=v(n);Ve(f,{class:"size-3 text-muted-foreground flex-shrink-0"});var g=d(f,2);{var D=N=>{var m=da(),x=v(m),j=d(x);qe(j,{class:"size-3"}),i(m),B(()=>{Le(m,"href",l(r).url),z(x,`${l(r).label??""} `)}),s(N,m)},E=N=>{var m=la(),x=v(m,!0);i(m),B(()=>z(x,l(r).label)),s(N,m)};p(g,N=>{l(r).url?N(D):N(E,!1)})}i(n),s(_,n)}),i(o),i(a),s(t,a)};p(Lt,t=>{e.task.vcs_refs?.length>0&&t(me)})}var Et=d(Lt,2);{var ge=t=>{var a=va(),o=d(v(a),2);ft(o,{get ref(){return e.task.plan_ref},type:"plan"}),i(a),s(t,a)},pe=t=>{var a=U(),o=S(a);{var _=c=>{var r=ua(),n=d(v(r),2),f=v(n,!0);i(n),i(r),B(()=>z(f,e.task.derivation)),s(c,r)};p(o,c=>{e.task.derivation&&c(_)},!0)}s(t,a)};p(Et,t=>{e.task.plan_ref?t(ge):t(pe,!1)})}var Wt=d(Et,2);{var he=t=>{var a=ca(),o=d(v(a),2);ft(o,{get ref(){return e.task.session_ref},type:"session"}),i(a),s(t,a)};p(Wt,t=>{e.task.session_ref&&t(he)})}var Gt=d(Wt,2);Mt(Gt,{});var Tt=d(Gt,2),Ut=v(Tt);{var xe=t=>{var a=U(),o=S(a);{var _=r=>{var n=U(),f=S(n);G(f,()=>gt,(g,D)=>{D(g,{children:(E,N)=>{var m=_a(),x=S(m);{const y=(h,w)=>{F(h,at(()=>w?.().props,{size:"sm",disabled:!0,"data-testid":"action-start",children:(W,Ct)=>{$();var tt=I("Start");s(W,tt)},$$slots:{default:!0}}))};G(x,()=>_t,(h,w)=>{w(h,{child:y,$$slots:{child:!0}})})}var j=d(x,2);G(j,()=>mt,(y,h)=>{h(y,{children:(w,Z)=>{var W=fa();s(w,W)},$$slots:{default:!0}})}),s(E,m)},$$slots:{default:!0}})}),s(r,n)},c=r=>{F(r,{size:"sm",onclick:A,get disabled(){return l(b)},"data-testid":"action-start",children:(n,f)=>{$();var g=I();B(()=>z(g,l(b)?"Starting...":"Start")),s(n,g)},$$slots:{default:!0}})};p(o,r=>{l(Q)?r(_):r(c,!1)})}s(t,a)};p(Ut,t=>{e.task.status==="pending"&&t(xe)})}var jt=d(Ut,2);{var ke=t=>{var a=U(),o=S(a);{var _=r=>{var n=U(),f=S(n);G(f,()=>gt,(g,D)=>{D(g,{children:(E,N)=>{var m=ga(),x=S(m);{const y=(h,w)=>{F(h,at(()=>w?.().props,{size:"sm",disabled:!0,"data-testid":"action-submit",children:(W,Ct)=>{$();var tt=I("Submit for Review");s(W,tt)},$$slots:{default:!0}}))};G(x,()=>_t,(h,w)=>{w(h,{child:y,$$slots:{child:!0}})})}var j=d(x,2);G(j,()=>mt,(y,h)=>{h(y,{children:(w,Z)=>{var W=ma();s(w,W)},$$slots:{default:!0}})}),s(E,m)},$$slots:{default:!0}})}),s(r,n)},c=r=>{F(r,{size:"sm",onclick:K,get disabled(){return l(b)},"data-testid":"action-submit",children:(n,f)=>{$();var g=I();B(()=>z(g,l(b)?"Submitting...":"Submit for Review")),s(n,g)},$$slots:{default:!0}})};p(o,r=>{l(Q)?r(_):r(c,!1)})}s(t,a)};p(jt,t=>{(e.task.status==="in_progress"||e.task.status==="needs_work")&&t(ke)})}var Ft=d(jt,2);{var be=t=>{var a=U(),o=S(a);{var _=r=>{var n=U(),f=S(n);G(f,()=>gt,(g,D)=>{D(g,{children:(E,N)=>{var m=ha(),x=S(m);{const y=(h,w)=>{F(h,at(()=>w?.().props,{size:"sm",variant:"outline",disabled:!0,"data-testid":"action-complete-toggle",children:(W,Ct)=>{$();var tt=I("Complete");s(W,tt)},$$slots:{default:!0}}))};G(x,()=>_t,(h,w)=>{w(h,{child:y,$$slots:{child:!0}})})}var j=d(x,2);G(j,()=>mt,(y,h)=>{h(y,{children:(w,Z)=>{var W=pa();s(w,W)},$$slots:{default:!0}})}),s(E,m)},$$slots:{default:!0}})}),s(r,n)},c=r=>{F(r,{size:"sm",variant:"outline",onclick:()=>{R(T,"complete"),R(P,"")},get disabled(){return l(b)},"data-testid":"action-complete-toggle",children:(n,f)=>{$();var g=I("Complete");s(n,g)},$$slots:{default:!0}})};p(o,r=>{l(Q)?r(_):r(c,!1)})}s(t,a)};p(Ft,t=>{(e.task.status==="in_progress"||e.task.status==="pending_review")&&t(be)})}var ye=d(Ft,2);{var we=t=>{var a=U(),o=S(a);{var _=r=>{var n=U(),f=S(n);G(f,()=>gt,(g,D)=>{D(g,{children:(E,N)=>{var m=ka(),x=S(m);{const y=(h,w)=>{F(h,at(()=>w?.().props,{size:"sm",variant:"destructive",disabled:!0,"data-testid":"action-block-toggle",children:(W,Ct)=>{$();var tt=I("Block");s(W,tt)},$$slots:{default:!0}}))};G(x,()=>_t,(h,w)=>{w(h,{child:y,$$slots:{child:!0}})})}var j=d(x,2);G(j,()=>mt,(y,h)=>{h(y,{children:(w,Z)=>{var W=xa();s(w,W)},$$slots:{default:!0}})}),s(E,m)},$$slots:{default:!0}})}),s(r,n)},c=r=>{F(r,{size:"sm",variant:"destructive",onclick:()=>{R(T,"block"),R(P,"")},get disabled(){return l(b)},"data-testid":"action-block-toggle",children:(n,f)=>{$();var g=I("Block");s(n,g)},$$slots:{default:!0}})};p(o,r=>{l(Q)?r(_):r(c,!1)})}s(t,a)};p(ye,t=>{e.task.status!=="blocked"&&e.task.status!=="completed"&&e.task.status!=="cancelled"&&t(we)})}i(Tt);var Ht=d(Tt,2);{var Pe=t=>{var a=ba(),o=v(a);{let r=et(()=>l(T)==="block"?"Block":"Completion");Oe(o,{get placeholder(){return`${l(r)??""} reason...`},class:"flex-1",get value(){return l(P)},set value(n){R(P,n,!0)}})}var _=d(o,2);{let r=et(()=>l(T)==="block"?Dt:yt),n=et(()=>l(b)||!l(P).trim());F(_,{size:"sm",get onclick(){return l(r)},get disabled(){return l(n)},children:(f,g)=>{$();var D=I("Confirm");s(f,D)},$$slots:{default:!0}})}var c=d(_,2);F(c,{size:"sm",variant:"ghost",onclick:()=>{R(T,null),R(P,"")},children:(r,n)=>{$();var f=I("Cancel");s(r,f)},$$slots:{default:!0}}),i(a),s(t,a)};p(Ht,t=>{!l(Q)&&l(T)&&t(Pe)})}var Ot=d(Ht,2);{var Te=t=>{var a=ya(),o=v(a,!0);i(a),B(()=>z(o,l(C))),s(t,a)};p(Ot,t=>{l(C)&&t(Te)})}var Vt=d(Ot,2);Mt(Vt,{});var Rt=d(Vt,2),Re=v(Rt);{var Se=t=>{var a=Pa(),o=S(a),_=v(o);i(o);var c=d(o,2);rt(c,21,()=>e.task.todos,ot,(r,n)=>{var f=wa(),g=v(f),D=v(g);{var E=y=>{var h=I("✅");s(y,h)},N=y=>{var h=I("⏸️");s(y,h)};p(D,y=>{l(n).done?y(E):y(N,!1)})}i(g);var m=d(g,2);let x;var j=v(m,!0);i(m),i(f),B(()=>{x=Ee(m,1,"",null,x,{"line-through":l(n).done}),z(j,l(n).text)}),s(r,f)}),i(c),B(()=>z(_,`Todos (${e.task.todos.length??""})`)),s(t,a)},Ce=t=>{var a=Ta();s(t,a)};p(Re,t=>{e.task.todos&&e.task.todos.length>0?t(Se):t(Ce,!1)})}i(Rt);var qt=d(Rt,2);Mt(qt,{});var Jt=d(qt,2),St=v(Jt),Me=v(St);i(St);var Kt=d(St,2);{var Ie=t=>{var a=Ca(),o=v(a);Xt(o,{placeholder:"Add a note...",disabled:!0,rows:2});var _=d(o,2);G(_,()=>gt,(c,r)=>{r(c,{children:(n,f)=>{var g=Sa(),D=S(g);{const N=(m,x)=>{F(m,at(()=>x?.().props,{size:"sm",disabled:!0,"data-testid":"action-add-note",children:(y,h)=>{$();var w=I("Add Note");s(y,w)},$$slots:{default:!0}}))};G(D,()=>_t,(m,x)=>{x(m,{child:N,$$slots:{child:!0}})})}var E=d(D,2);G(E,()=>mt,(N,m)=>{m(N,{children:(x,j)=>{var y=Ra();s(x,y)},$$slots:{default:!0}})}),s(n,g)},$$slots:{default:!0}})}),i(a),s(t,a)},ze=t=>{var a=Ma(),o=v(a);Xt(o,{placeholder:"Add a note...",get disabled(){return l(b)},rows:2,get value(){return l(M)},set value(c){R(M,c,!0)}});var _=d(o,2);{let c=et(()=>l(b)||!l(M).trim());F(_,{size:"sm",onclick:ae,get disabled(){return l(c)},"data-testid":"action-add-note",children:(r,n)=>{$();var f=I();B(()=>z(f,l(b)?"Adding...":"Add Note")),s(r,f)},$$slots:{default:!0}})}i(a),s(t,a)};p(Kt,t=>{l(Q)?t(Ie):t(ze,!1)})}var Qt=d(Kt,2),De=v(Qt);{var Ne=t=>{var a=za(),o=v(a);{var _=r=>{var n=Ia();$(2),s(r,n)},c=r=>{var n=I("Add a note above to document decisions, progress, or findings.");s(r,n)};p(o,r=>{l(Q)?r(_):r(c,!1)})}i(a),s(t,a)},Be=t=>{var a=U(),o=S(a);rt(o,17,()=>e.task.notes??[],ot,(_,c)=>{var r=Da(),n=v(r),f=v(n),g=v(f,!0);i(f);var D=d(f,2),E=v(D,!0);i(D),i(n);var N=d(n,2),m=v(N,!0);i(N),i(r),B(x=>{z(g,l(c).author),z(E,x),z(m,l(c).content)},[()=>se(l(c).created_at)]),s(_,r)}),s(t,a)};p(De,t=>{(e.task.notes??[]).length===0?t(Ne):t(Be,!1)})}i(Qt),i(Jt),i(Y),B(()=>z(Me,`Notes (${e.task.notes?.length??0??""})`)),s(lt,Y)};p(X,lt=>{e.task&&l(pt)&&lt(kt)},!0)}s(q,J)};p(ht,q=>{e.error?q(xt):q(dt,!1)},!0)}s(L,O)};p(re,L=>{e.loading?L(oe):L(de,!1)})}s(k,Nt),zt()}function ts(k,e){It(e,!0);let C=Zt(e,["$$slots","$$events","$$legacy"]);const b=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}]];ee(k,at({name:"layout-grid"},()=>C,{get iconNode(){return b},children:(M,P)=>{var T=U(),H=S(T);te(H,()=>e.children??Yt),s(M,T)},$$slots:{default:!0}})),zt()}function es(k,e){It(e,!0);let C=Zt(e,["$$slots","$$events","$$legacy"]);const b=[["path",{d:"M3 5h.01"}],["path",{d:"M3 12h.01"}],["path",{d:"M3 19h.01"}],["path",{d:"M8 5h13"}],["path",{d:"M8 12h13"}],["path",{d:"M8 19h13"}]];ee(k,at({name:"list"},()=>C,{get iconNode(){return b},children:(M,P)=>{var T=U(),H=S(T);te(H,()=>e.children??Yt),s(M,T)},$$slots:{default:!0}})),zt()}export{ts as L,Za as T,Ya as a,es as b,Qa as d,Xa as f,Je as g};
@@ -0,0 +1,2 @@
1
+ import{x as st,o as V,y as Ye,g as F,a9 as dr,Z as pr,_ as gr,a0 as ut,a1 as he,a2 as de,W as fe,aq as hr,aT as mr,aE as dt,k as Ne,U as Oe,a_ as oe,V as _e,Y as br,aj as pt,K as vr,aR as ot,J as Et,a$ as wr,b0 as yr,b1 as kr,R as Pt,T as Mt,b2 as Fe,aN as xr,aQ as Sr,S as ze,al as jt,a4 as It,b3 as Nt,b4 as _r,E as Ot,N as Rt,b5 as Cr,b6 as Ar,ab as Tr,b7 as zt,a3 as nt,l as Er,b8 as Pr,b9 as Mr,w as jr,ba as Ir,aX as Nr,bb as Or,bc as Rr,bd as zr,be as $r,bf as Vr,bg as Lr,bh as Gr,p as Wr,f as gt,a as Dr,i as Fr,b as ne,d as Ur,e as q,P as Br}from"./D3vxvonu.js";import{d as Hr,c as ht,a as mt}from"./DvA-KON-.js";import{B as $t,p as bt,b as qr,r as Yr}from"./BysXJlZb.js";import{i as Jr,a as Kr,c as Xr,d as Qr,n as Zr,b as es}from"./D9QNBZM2.js";import{b as ts}from"./D7LTux4W.js";function qo(e,t){return t}function rs(e,t,r){for(var s=[],o=t.length,n,a=t.length,l=0;l<o;l++){let v=t[l];Mt(v,()=>{if(n){if(n.pending.delete(v),n.done.add(v),n.pending.size===0){var g=e.outrogroups;Je(ot(n.done)),g.delete(n),g.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var i=s.length===0&&r!==null;if(i){var c=r,f=c.parentNode;Sr(f),f.append(c),e.items.clear()}Je(t,!i)}else n={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(n)}function Je(e,t=!0){for(var r=0;r<e.length;r++)ze(e[r],t)}var vt;function Yo(e,t,r,s,o,n=null){var a=e,l=new Map,i=(t&Nt)!==0;if(i){var c=e;a=V?he(jt(c)):c.appendChild(Oe())}V&&Ye();var f=null,v=dr(()=>{var b=r();return Et(b)?b:b==null?[]:ot(b)}),g,w=!0;function j(){u.fallback=f,ss(u,g,a,t,s),f!==null&&(g.length===0?(f.f&oe)===0?Pt(f):(f.f^=oe,ke(f,null,a)):Mt(f,()=>{f=null}))}var I=st(()=>{g=F(v);var b=g.length;let G=!1;if(V){var R=pr(a)===gr;R!==(b===0)&&(a=ut(),he(a),de(!1),G=!0)}for(var T=new Set,O=Ne,k=br(),y=0;y<b;y+=1){V&&fe.nodeType===hr&&fe.data===mr&&(a=fe,G=!0,de(!1));var p=g[y],z=s(p,y),S=w?null:l.get(z);S?(S.v&&dt(S.v,p),S.i&&dt(S.i,y),k&&O.skipped_effects.delete(S.e)):(S=os(l,w?a:vt??=Oe(),p,z,y,o,t,r),w||(S.e.f|=oe),l.set(z,S)),T.add(z)}if(b===0&&n&&!f&&(w?f=_e(()=>n(a)):(f=_e(()=>n(vt??=Oe())),f.f|=oe)),V&&b>0&&he(ut()),!w)if(k){for(const[te,Z]of l)T.has(te)||O.skipped_effects.add(Z.e);O.oncommit(j),O.ondiscard(()=>{})}else j();G&&de(!0),F(v)}),u={effect:I,items:l,outrogroups:null,fallback:f};w=!1,V&&(a=fe)}function ss(e,t,r,s,o){var n=(s&_r)!==0,a=t.length,l=e.items,i=e.effect.first,c,f=null,v,g=[],w=[],j,I,u,b;if(n)for(b=0;b<a;b+=1)j=t[b],I=o(j,b),u=l.get(I).e,(u.f&oe)===0&&(u.nodes?.a?.measure(),(v??=new Set).add(u));for(b=0;b<a;b+=1){if(j=t[b],I=o(j,b),u=l.get(I).e,e.outrogroups!==null)for(const S of e.outrogroups)S.pending.delete(u),S.done.delete(u);if((u.f&oe)!==0)if(u.f^=oe,u===i)ke(u,null,r);else{var G=f?f.next:i;u===e.effect.last&&(e.effect.last=u.prev),u.prev&&(u.prev.next=u.next),u.next&&(u.next.prev=u.prev),ae(e,f,u),ae(e,u,G),ke(u,G,r),f=u,g=[],w=[],i=f.next;continue}if((u.f&Fe)!==0&&(Pt(u),n&&(u.nodes?.a?.unfix(),(v??=new Set).delete(u))),u!==i){if(c!==void 0&&c.has(u)){if(g.length<w.length){var R=w[0],T;f=R.prev;var O=g[0],k=g[g.length-1];for(T=0;T<g.length;T+=1)ke(g[T],R,r);for(T=0;T<w.length;T+=1)c.delete(w[T]);ae(e,O.prev,k.next),ae(e,f,O),ae(e,k,R),i=R,f=k,b-=1,g=[],w=[]}else c.delete(u),ke(u,i,r),ae(e,u.prev,u.next),ae(e,u,f===null?e.effect.first:f.next),ae(e,f,u),f=u;continue}for(g=[],w=[];i!==null&&i!==u;)(c??=new Set).add(i),w.push(i),i=i.next;if(i===null)continue}(u.f&oe)===0&&g.push(u),f=u,i=u.next}if(e.outrogroups!==null){for(const S of e.outrogroups)S.pending.size===0&&(Je(ot(S.done)),e.outrogroups?.delete(S));e.outrogroups.size===0&&(e.outrogroups=null)}if(i!==null||c!==void 0){var y=[];if(c!==void 0)for(u of c)(u.f&Fe)===0&&y.push(u);for(;i!==null;)(i.f&Fe)===0&&i!==e.fallback&&y.push(i),i=i.next;var p=y.length;if(p>0){var z=(s&Nt)!==0&&a===0?r:null;if(n){for(b=0;b<p;b+=1)y[b].nodes?.a?.measure();for(b=0;b<p;b+=1)y[b].nodes?.a?.fix()}rs(e,y,z)}}n&&It(()=>{if(v!==void 0)for(u of v)u.nodes?.a?.apply()})}function os(e,t,r,s,o,n,a,l){var i=(a&wr)!==0?(a&yr)===0?vr(r,!1,!1):pt(r):null,c=(a&kr)!==0?pt(o):null;return{v:i,i:c,e:_e(()=>(n(t,i??r,c??o,l),()=>{e.delete(s)}))}}function ke(e,t,r){if(e.nodes)for(var s=e.nodes.start,o=e.nodes.end,n=t&&(t.f&oe)===0?t.nodes.start:r;s!==null;){var a=xr(s);if(n.before(s),s===o)return;s=a}}function ae(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function ns(e,t,...r){var s=new $t(e);st(()=>{const o=t()??null;s.ensure(o,o&&(n=>o(n,...r)))},Ot)}function as(e,t,r,s,o,n){let a=V;V&&Ye();var l=null;V&&fe.nodeType===Cr&&(l=fe,Ye());var i=V?fe:e,c=new $t(i,!1);st(()=>{const f=t()||null;var v=r||f==="svg"?Ar:null;if(f===null){c.ensure(null,null);return}return c.ensure(f,g=>{if(f){if(l=V?l:v?document.createElementNS(v,f):document.createElement(f),Hr(l,l),s){V&&Jr(f)&&l.append(document.createComment(""));var w=V?jt(l):l.appendChild(Oe());V&&(w===null?de(!1):he(w)),s(l,w)}Tr.nodes.end=l,g.before(l)}V&&he(g)}),()=>{}},Ot),Rt(()=>{}),a&&(de(!0),he(i))}function is(e,t){var r=void 0,s;zt(()=>{r!==(r=t())&&(s&&(ze(s),s=null),r&&(s=_e(()=>{nt(()=>r(e))})))})}function Vt(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Vt(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Lt(){for(var e,t,r=0,s="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Vt(e))&&(s&&(s+=" "),s+=t);return s}function ls(e){return typeof e=="object"?Lt(e):e??""}const wt=[...`
2
+ \r\f \v\uFEFF`];function cs(e,t,r){var s=e==null?"":""+e;if(t&&(s=s?s+" "+t:t),r){for(var o in r)if(r[o])s=s?s+" "+o:o;else if(s.length)for(var n=o.length,a=0;(a=s.indexOf(o,a))>=0;){var l=a+n;(a===0||wt.includes(s[a-1]))&&(l===s.length||wt.includes(s[l]))?s=(a===0?"":s.substring(0,a))+s.substring(l+1):a=l}}return s===""?null:s}function yt(e,t=!1){var r=t?" !important;":";",s="";for(var o in e){var n=e[o];n!=null&&n!==""&&(s+=" "+o+": "+n+r)}return s}function Ue(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function fs(e,t){if(t){var r="",s,o;if(Array.isArray(t)?(s=t[0],o=t[1]):s=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,a=0,l=!1,i=[];s&&i.push(...Object.keys(s).map(Ue)),o&&i.push(...Object.keys(o).map(Ue));var c=0,f=-1;const I=e.length;for(var v=0;v<I;v++){var g=e[v];if(l?g==="/"&&e[v-1]==="*"&&(l=!1):n?n===g&&(n=!1):g==="/"&&e[v+1]==="*"?l=!0:g==='"'||g==="'"?n=g:g==="("?a++:g===")"&&a--,!l&&n===!1&&a===0){if(g===":"&&f===-1)f=v;else if(g===";"||v===I-1){if(f!==-1){var w=Ue(e.substring(c,f).trim());if(!i.includes(w)){g!==";"&&v++;var j=e.substring(c,v).trim();r+=" "+j+";"}}c=v+1,f=-1}}}}return s&&(r+=yt(s)),o&&(r+=yt(o,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function us(e,t,r,s,o,n){var a=e.__className;if(V||a!==r||a===void 0){var l=cs(r,s,n);(!V||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=r}else if(n&&o!==n)for(var i in n){var c=!!n[i];(o==null||c!==!!o[i])&&e.classList.toggle(i,c)}return n}function Be(e,t={},r,s){for(var o in r){var n=r[o];t[o]!==n&&(r[o]==null?e.style.removeProperty(o):e.style.setProperty(o,n,s))}}function ds(e,t,r,s){var o=e.__style;if(V||o!==t){var n=fs(t,s);(!V||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}else s&&(Array.isArray(s)?(Be(e,r?.[0],s[0]),Be(e,r?.[1],s[1],"important")):Be(e,r,s));return s}function $e(e,t,r=!1){if(e.multiple){if(t==null)return;if(!Et(t))return Pr();for(var s of e.options)s.selected=t.includes(Se(s));return}for(s of e.options){var o=Se(s);if(Mr(o,t)){s.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Gt(e){var t=new MutationObserver(()=>{$e(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Rt(()=>{t.disconnect()})}function Jo(e,t,r=t){var s=new WeakSet,o=!0;Er(e,"change",n=>{var a=n?"[selected]":":checked",l;if(e.multiple)l=[].map.call(e.querySelectorAll(a),Se);else{var i=e.querySelector(a)??e.querySelector("option:not([disabled])");l=i&&Se(i)}r(l),Ne!==null&&s.add(Ne)}),nt(()=>{var n=t();if(e===document.activeElement){var a=jr??Ne;if(s.has(a))return}if($e(e,n,o),o&&n===void 0){var l=e.querySelector(":checked");l!==null&&(n=Se(l),r(n))}e.__value=n,o=!1}),Gt(e)}function Se(e){return"__value"in e?e.__value:e.value}const ve=Symbol("class"),we=Symbol("style"),Wt=Symbol("is custom element"),Dt=Symbol("is html");function ps(e){if(V){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var s=e.value;Ve(e,"value",null),e.value=s}if(e.hasAttribute("checked")){var o=e.checked;Ve(e,"checked",null),e.checked=o}}};e.__on_r=r,It(r),zr()}}function gs(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Ve(e,t,r,s){var o=Ft(e);V&&(o[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||o[t]!==(o[t]=r)&&(t==="loading"&&(e[Lr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ut(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function hs(e,t,r,s,o=!1,n=!1){if(V&&o&&e.tagName==="INPUT"){var a=e,l=a.type==="checkbox"?"defaultChecked":"defaultValue";l in r||ps(a)}var i=Ft(e),c=i[Wt],f=!i[Dt];let v=V&&c;v&&de(!1);var g=t||{},w=e.tagName==="OPTION";for(var j in t)j in r||(r[j]=null);r.class?r.class=ls(r.class):r[ve]&&(r.class=null),r[we]&&(r.style??=null);var I=Ut(e);for(const k in r){let y=r[k];if(w&&k==="value"&&y==null){e.value=e.__value="",g[k]=y;continue}if(k==="class"){var u=e.namespaceURI==="http://www.w3.org/1999/xhtml";us(e,u,y,s,t?.[ve],r[ve]),g[k]=y,g[ve]=r[ve];continue}if(k==="style"){ds(e,y,t?.[we],r[we]),g[k]=y,g[we]=r[we];continue}var b=g[k];if(!(y===b&&!(y===void 0&&e.hasAttribute(k)))){g[k]=y;var G=k[0]+k[1];if(G!=="$$")if(G==="on"){const p={},z="$$"+k;let S=k.slice(2);var R=es(S);if(Kr(S)&&(S=S.slice(0,-7),p.capture=!0),!R&&b){if(y!=null)continue;e.removeEventListener(S,g[z],p),g[z]=null}if(y!=null)if(R)e[`__${S}`]=y,Qr([S]);else{let te=function(Z){g[k].call(this,Z)};g[z]=Xr(S,e,te,p)}else R&&(e[`__${S}`]=void 0)}else if(k==="style")Ve(e,k,y);else if(k==="autofocus")Or(e,!!y);else if(!c&&(k==="__value"||k==="value"&&y!=null))e.value=e.__value=y;else if(k==="selected"&&w)gs(e,y);else{var T=k;f||(T=Zr(T));var O=T==="defaultValue"||T==="defaultChecked";if(y==null&&!c&&!O)if(i[k]=null,T==="value"||T==="checked"){let p=e;const z=t===void 0;if(T==="value"){let S=p.defaultValue;p.removeAttribute(T),p.defaultValue=S,p.value=p.__value=z?S:null}else{let S=p.defaultChecked;p.removeAttribute(T),p.defaultChecked=S,p.checked=z?S:!1}}else e.removeAttribute(k);else O||I.includes(T)&&(c||typeof y!="string")?(e[T]=y,T in i&&(i[T]=Rr)):typeof y!="function"&&Ve(e,T,y)}}}return v&&de(!0),g}function ms(e,t,r=[],s=[],o=[],n,a=!1,l=!1){Ir(o,r,s,i=>{var c=void 0,f={},v=e.nodeName==="SELECT",g=!1;if(zt(()=>{var j=t(...i.map(F)),I=hs(e,c,j,n,a,l);g&&v&&"value"in j&&$e(e,j.value);for(let b of Object.getOwnPropertySymbols(f))j[b]||ze(f[b]);for(let b of Object.getOwnPropertySymbols(j)){var u=j[b];b.description===Nr&&(!c||u!==c[b])&&(f[b]&&ze(f[b]),f[b]=_e(()=>is(e,()=>u))),I[b]=u}c=I}),v){var w=e;nt(()=>{$e(w,c.value,!0),Gt(w)})}g=!0})}function Ft(e){return e.__attributes??={[Wt]:e.nodeName.includes("-"),[Dt]:e.namespaceURI===$r}}var kt=new Map;function Ut(e){var t=e.getAttribute("is")||e.nodeName,r=kt.get(t);if(r)return r;kt.set(t,r=[]);for(var s,o=e,n=Element.prototype;n!==o;){s=Gr(o);for(var a in s)s[a].set&&r.push(a);o=Vr(o)}return r}const bs=(e,t)=>{const r=new Array(e.length+t.length);for(let s=0;s<e.length;s++)r[s]=e[s];for(let s=0;s<t.length;s++)r[e.length+s]=t[s];return r},vs=(e,t)=>({classGroupId:e,validator:t}),Bt=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Le="-",xt=[],ws="arbitrary..",ys=e=>{const t=xs(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return ks(a);const l=a.split(Le),i=l[0]===""&&l.length>1?1:0;return Ht(l,i,t)},getConflictingClassGroupIds:(a,l)=>{if(l){const i=s[a],c=r[a];return i?c?bs(c,i):i:c||xt}return r[a]||xt}}},Ht=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],n=r.nextPart.get(o);if(n){const c=Ht(e,t+1,n);if(c)return c}const a=r.validators;if(a===null)return;const l=t===0?e.join(Le):e.slice(t).join(Le),i=a.length;for(let c=0;c<i;c++){const f=a[c];if(f.validator(l))return f.classGroupId}},ks=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),s=t.slice(0,r);return s?ws+s:void 0})(),xs=e=>{const{theme:t,classGroups:r}=e;return Ss(r,t)},Ss=(e,t)=>{const r=Bt();for(const s in e){const o=e[s];at(o,r,s,t)}return r},at=(e,t,r,s)=>{const o=e.length;for(let n=0;n<o;n++){const a=e[n];_s(a,t,r,s)}},_s=(e,t,r,s)=>{if(typeof e=="string"){Cs(e,t,r);return}if(typeof e=="function"){As(e,t,r,s);return}Ts(e,t,r,s)},Cs=(e,t,r)=>{const s=e===""?t:qt(t,e);s.classGroupId=r},As=(e,t,r,s)=>{if(Es(e)){at(e(s),t,r,s);return}t.validators===null&&(t.validators=[]),t.validators.push(vs(r,e))},Ts=(e,t,r,s)=>{const o=Object.entries(e),n=o.length;for(let a=0;a<n;a++){const[l,i]=o[a];at(i,qt(t,l),r,s)}},qt=(e,t)=>{let r=e;const s=t.split(Le),o=s.length;for(let n=0;n<o;n++){const a=s[n];let l=r.nextPart.get(a);l||(l=Bt(),r.nextPart.set(a,l)),r=l}return r},Es=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ps=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),s=Object.create(null);const o=(n,a)=>{r[n]=a,t++,t>e&&(t=0,s=r,r=Object.create(null))};return{get(n){let a=r[n];if(a!==void 0)return a;if((a=s[n])!==void 0)return o(n,a),a},set(n,a){n in r?r[n]=a:o(n,a)}}},Ke="!",St=":",Ms=[],_t=(e,t,r,s,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:s,isExternal:o}),js=e=>{const{prefix:t,experimentalParseClassName:r}=e;let s=o=>{const n=[];let a=0,l=0,i=0,c;const f=o.length;for(let I=0;I<f;I++){const u=o[I];if(a===0&&l===0){if(u===St){n.push(o.slice(i,I)),i=I+1;continue}if(u==="/"){c=I;continue}}u==="["?a++:u==="]"?a--:u==="("?l++:u===")"&&l--}const v=n.length===0?o:o.slice(i);let g=v,w=!1;v.endsWith(Ke)?(g=v.slice(0,-1),w=!0):v.startsWith(Ke)&&(g=v.slice(1),w=!0);const j=c&&c>i?c-i:void 0;return _t(n,w,g,j)};if(t){const o=t+St,n=s;s=a=>a.startsWith(o)?n(a.slice(o.length)):_t(Ms,!1,a,void 0,!0)}if(r){const o=s;s=n=>r({className:n,parseClassName:o})}return s},Is=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,s)=>{t.set(r,1e6+s)}),r=>{const s=[];let o=[];for(let n=0;n<r.length;n++){const a=r[n],l=a[0]==="[",i=t.has(a);l||i?(o.length>0&&(o.sort(),s.push(...o),o=[]),s.push(a)):o.push(a)}return o.length>0&&(o.sort(),s.push(...o)),s}},Ns=e=>({cache:Ps(e.cacheSize),parseClassName:js(e),sortModifiers:Is(e),...ys(e)}),Os=/\s+/,Rs=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:n}=t,a=[],l=e.trim().split(Os);let i="";for(let c=l.length-1;c>=0;c-=1){const f=l[c],{isExternal:v,modifiers:g,hasImportantModifier:w,baseClassName:j,maybePostfixModifierPosition:I}=r(f);if(v){i=f+(i.length>0?" "+i:i);continue}let u=!!I,b=s(u?j.substring(0,I):j);if(!b){if(!u){i=f+(i.length>0?" "+i:i);continue}if(b=s(j),!b){i=f+(i.length>0?" "+i:i);continue}u=!1}const G=g.length===0?"":g.length===1?g[0]:n(g).join(":"),R=w?G+Ke:G,T=R+b;if(a.indexOf(T)>-1)continue;a.push(T);const O=o(b,u);for(let k=0;k<O.length;++k){const y=O[k];a.push(R+y)}i=f+(i.length>0?" "+i:i)}return i},zs=(...e)=>{let t=0,r,s,o="";for(;t<e.length;)(r=e[t++])&&(s=Yt(r))&&(o&&(o+=" "),o+=s);return o},Yt=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=Yt(e[s]))&&(r&&(r+=" "),r+=t);return r},Xe=(e,...t)=>{let r,s,o,n;const a=i=>{const c=t.reduce((f,v)=>v(f),e());return r=Ns(c),s=r.cache.get,o=r.cache.set,n=l,l(i)},l=i=>{const c=s(i);if(c)return c;const f=Rs(i,r);return o(i,f),f};return n=a,(...i)=>n(zs(...i))},$s=[],D=e=>{const t=r=>r[e]||$s;return t.isThemeGetter=!0,t},Jt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Kt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vs=/^\d+\/\d+$/,Ls=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gs=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ws=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ds=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ge=e=>Vs.test(e),x=e=>!!e&&!Number.isNaN(Number(e)),ie=e=>!!e&&Number.isInteger(Number(e)),He=e=>e.endsWith("%")&&x(e.slice(0,-1)),re=e=>Ls.test(e),Us=()=>!0,Bs=e=>Gs.test(e)&&!Ws.test(e),Xt=()=>!1,Hs=e=>Ds.test(e),qs=e=>Fs.test(e),Ys=e=>!h(e)&&!m(e),Js=e=>me(e,er,Xt),h=e=>Jt.test(e),ce=e=>me(e,tr,Bs),qe=e=>me(e,eo,x),Ct=e=>me(e,Qt,Xt),Ks=e=>me(e,Zt,qs),Pe=e=>me(e,rr,Hs),m=e=>Kt.test(e),ye=e=>be(e,tr),Xs=e=>be(e,to),At=e=>be(e,Qt),Qs=e=>be(e,er),Zs=e=>be(e,Zt),Me=e=>be(e,rr,!0),me=(e,t,r)=>{const s=Jt.exec(e);return s?s[1]?t(s[1]):r(s[2]):!1},be=(e,t,r=!1)=>{const s=Kt.exec(e);return s?s[1]?t(s[1]):r:!1},Qt=e=>e==="position"||e==="percentage",Zt=e=>e==="image"||e==="url",er=e=>e==="length"||e==="size"||e==="bg-size",tr=e=>e==="length",eo=e=>e==="number",to=e=>e==="family-name",rr=e=>e==="shadow",Qe=()=>{const e=D("color"),t=D("font"),r=D("text"),s=D("font-weight"),o=D("tracking"),n=D("leading"),a=D("breakpoint"),l=D("container"),i=D("spacing"),c=D("radius"),f=D("shadow"),v=D("inset-shadow"),g=D("text-shadow"),w=D("drop-shadow"),j=D("blur"),I=D("perspective"),u=D("aspect"),b=D("ease"),G=D("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...T(),m,h],k=()=>["auto","hidden","clip","visible","scroll"],y=()=>["auto","contain","none"],p=()=>[m,h,i],z=()=>[ge,"full","auto",...p()],S=()=>[ie,"none","subgrid",m,h],te=()=>["auto",{span:["full",ie,m,h]},ie,m,h],Z=()=>[ie,"auto",m,h],Ce=()=>["auto","min","max","fr",m,h],P=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...p()],N=()=>[ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],d=()=>[e,m,h],L=()=>[...T(),At,Ct,{position:[m,h]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",Qs,Js,{size:[m,h]}],H=()=>[He,ye,ce],$=()=>["","none","full",c,m,h],W=()=>["",x,ye,ce],J=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[x,He,At,Ct],ft=()=>["","none",j,m,h],Ae=()=>["none",x,m,h],Te=()=>["none",x,m,h],De=()=>[x,m,h],Ee=()=>[ge,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[re],breakpoint:[re],color:[Us],container:[re],"drop-shadow":[re],ease:["in","out","in-out"],font:[Ys],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[re],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[re],shadow:[re],spacing:["px",x],text:[re],"text-shadow":[re],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ge,h,m,u]}],container:["container"],columns:[{columns:[x,h,m,l]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:y()}],"overscroll-x":[{"overscroll-x":y()}],"overscroll-y":[{"overscroll-y":y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[ie,"auto",m,h]}],basis:[{basis:[ge,"full","auto",l,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[x,ge,"auto","initial","none",h]}],grow:[{grow:["",x,m,h]}],shrink:[{shrink:["",x,m,h]}],order:[{order:[ie,"first","last","none",m,h]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ce()}],"auto-rows":[{"auto-rows":Ce()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],w:[{w:[l,"screen",...N()]}],"min-w":[{"min-w":[l,"screen","none",...N()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",r,ye,ce]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,m,qe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",He,h]}],"font-family":[{font:[Xs,h,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,m,h]}],"line-clamp":[{"line-clamp":[x,"none",m,qe]}],leading:[{leading:[n,...p()]}],"list-image":[{"list-image":["none",m,h]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",m,h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[x,"from-font","auto",m,ce]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[x,"auto",m,h]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m,h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",m,h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ie,m,h],radial:["",m,h],conic:[ie,m,h]},Zs,Ks]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[x,m,h]}],"outline-w":[{outline:["",x,ye,ce]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",f,Me,Pe]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",v,Me,Pe]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[x,ce]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",g,Me,Pe]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[x,m,h]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[x]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[m,h]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[x]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",m,h]}],filter:[{filter:["","none",m,h]}],blur:[{blur:ft()}],brightness:[{brightness:[x,m,h]}],contrast:[{contrast:[x,m,h]}],"drop-shadow":[{"drop-shadow":["","none",w,Me,Pe]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",x,m,h]}],"hue-rotate":[{"hue-rotate":[x,m,h]}],invert:[{invert:["",x,m,h]}],saturate:[{saturate:[x,m,h]}],sepia:[{sepia:["",x,m,h]}],"backdrop-filter":[{"backdrop-filter":["","none",m,h]}],"backdrop-blur":[{"backdrop-blur":ft()}],"backdrop-brightness":[{"backdrop-brightness":[x,m,h]}],"backdrop-contrast":[{"backdrop-contrast":[x,m,h]}],"backdrop-grayscale":[{"backdrop-grayscale":["",x,m,h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x,m,h]}],"backdrop-invert":[{"backdrop-invert":["",x,m,h]}],"backdrop-opacity":[{"backdrop-opacity":[x,m,h]}],"backdrop-saturate":[{"backdrop-saturate":[x,m,h]}],"backdrop-sepia":[{"backdrop-sepia":["",x,m,h]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",m,h]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[x,"initial",m,h]}],ease:[{ease:["linear","initial",b,m,h]}],delay:[{delay:[x,m,h]}],animate:[{animate:["none",G,m,h]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[I,m,h]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:Ae()}],"rotate-x":[{"rotate-x":Ae()}],"rotate-y":[{"rotate-y":Ae()}],"rotate-z":[{"rotate-z":Ae()}],scale:[{scale:Te()}],"scale-x":[{"scale-x":Te()}],"scale-y":[{"scale-y":Te()}],"scale-z":[{"scale-z":Te()}],"scale-3d":["scale-3d"],skew:[{skew:De()}],"skew-x":[{"skew-x":De()}],"skew-y":[{"skew-y":De()}],transform:[{transform:[m,h,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":["translate-none"],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m,h]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m,h]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[x,ye,ce,qe]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ro=(e,{cacheSize:t,prefix:r,experimentalParseClassName:s,extend:o={},override:n={}})=>(xe(e,"cacheSize",t),xe(e,"prefix",r),xe(e,"experimentalParseClassName",s),je(e.theme,n.theme),je(e.classGroups,n.classGroups),je(e.conflictingClassGroups,n.conflictingClassGroups),je(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),xe(e,"orderSensitiveModifiers",n.orderSensitiveModifiers),Ie(e.theme,o.theme),Ie(e.classGroups,o.classGroups),Ie(e.conflictingClassGroups,o.conflictingClassGroups),Ie(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),sr(e,o,"orderSensitiveModifiers"),e),xe=(e,t,r)=>{r!==void 0&&(e[t]=r)},je=(e,t)=>{if(t)for(const r in t)xe(e,r,t[r])},Ie=(e,t)=>{if(t)for(const r in t)sr(e,t,r)},sr=(e,t,r)=>{const s=t[r];s!==void 0&&(e[r]=e[r]?e[r].concat(s):s)},so=(e,...t)=>typeof e=="function"?Xe(Qe,e,...t):Xe(()=>ro(Qe(),e),...t),or=Xe(Qe);function oo(...e){return or(Lt(e))}var no=/\s+/g,ao=e=>typeof e!="string"||!e?e:e.replace(no," ").trim(),Ge=(...e)=>{const t=[],r=s=>{if(!s&&s!==0&&s!==0n)return;if(Array.isArray(s)){for(let n=0,a=s.length;n<a;n++)r(s[n]);return}const o=typeof s;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&s!==s)return;t.push(String(s))}else if(o==="object"){const n=Object.keys(s);for(let a=0,l=n.length;a<l;a++){const i=n[a];s[i]&&t.push(i)}}};for(let s=0,o=e.length;s<o;s++){const n=e[s];n!=null&&r(n)}return t.length>0?ao(t.join(" ")):void 0},Tt=e=>e===!1?"false":e===!0?"true":e===0?"0":e,K=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},io=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(let o=0;o<r.length;o++){const n=r[o];if(!s.includes(n)||e[n]!==t[n])return!1}return!0},lo=(e,t)=>{for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const s=t[r];r in e?e[r]=Ge(e[r],s):e[r]=s}return e},nr=(e,t)=>{for(let r=0;r<e.length;r++){const s=e[r];Array.isArray(s)?nr(s,t):s&&t.push(s)}},ar=(...e)=>{const t=[];nr(e,t);const r=[];for(let s=0;s<t.length;s++)t[s]&&r.push(t[s]);return r},Ze=(e,t)=>{const r={};for(const s in e){const o=e[s];if(s in t){const n=t[s];Array.isArray(o)||Array.isArray(n)?r[s]=ar(n,o):typeof o=="object"&&typeof n=="object"&&o&&n?r[s]=Ze(o,n):r[s]=n+" "+o}else r[s]=o}for(const s in t)s in e||(r[s]=t[s]);return r},co={twMerge:!0,twMergeConfig:{}};function fo(){let e=null,t={},r=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(s){e=s},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(s){t=s},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(s){r=s},reset(){e=null,t={},r=!1}}}var se=fo(),uo=e=>{const t=(s,o)=>{const{extend:n=null,slots:a={},variants:l={},compoundVariants:i=[],compoundSlots:c=[],defaultVariants:f={}}=s,v={...co,...o},g=n?.base?Ge(n.base,s?.base):s?.base,w=n?.variants&&!K(n.variants)?Ze(l,n.variants):l,j=n?.defaultVariants&&!K(n.defaultVariants)?{...n.defaultVariants,...f}:f;!K(v.twMergeConfig)&&!io(v.twMergeConfig,se.cachedTwMergeConfig)&&(se.didTwMergeConfigChange=!0,se.cachedTwMergeConfig=v.twMergeConfig);const I=K(n?.slots),u=K(a)?{}:{base:Ge(s?.base,I&&n?.base),...a},b=I?u:lo({...n?.slots},K(u)?{base:s?.base}:u),G=K(n?.compoundVariants)?i:ar(n?.compoundVariants,i),R=O=>{if(K(w)&&K(a)&&I)return e(g,O?.class,O?.className)(v);if(G&&!Array.isArray(G))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof G}`);if(c&&!Array.isArray(c))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);const k=(P,M=w,_=null,N=null)=>{const d=M[P];if(!d||K(d))return null;const L=N?.[P]??O?.[P];if(L===null)return null;const Y=Tt(L);if(typeof Y=="object")return null;const Q=j?.[P],H=Y??Tt(Q);return d[H||"false"]},y=()=>{if(!w)return null;const P=Object.keys(w),M=[];for(let _=0;_<P.length;_++){const N=k(P[_],w);N&&M.push(N)}return M},p=(P,M)=>{if(!w||typeof w!="object")return null;const _=[];for(const N in w){const d=k(N,w,P,M),L=P==="base"&&typeof d=="string"?d:d&&d[P];L&&_.push(L)}return _},z={};for(const P in O){const M=O[P];M!==void 0&&(z[P]=M)}const S=(P,M)=>{const _=typeof O?.[P]=="object"?{[P]:O[P]?.initial}:{};return{...j,...z,..._,...M}},te=(P=[],M)=>{const _=[],N=P.length;for(let d=0;d<N;d++){const{class:L,className:Y,...Q}=P[d];let H=!0;const $=S(null,M);for(const W in Q){const J=Q[W],le=$[W];if(Array.isArray(J)){if(!J.includes(le)){H=!1;break}}else{if((J==null||J===!1)&&(le==null||le===!1))continue;if(le!==J){H=!1;break}}}H&&(L&&_.push(L),Y&&_.push(Y))}return _},Z=P=>{const M=te(G,P);if(!Array.isArray(M))return M;const _={},N=e;for(let d=0;d<M.length;d++){const L=M[d];if(typeof L=="string")_.base=N(_.base,L)(v);else if(typeof L=="object")for(const Y in L)_[Y]=N(_[Y],L[Y])(v)}return _},Ce=P=>{if(c.length<1)return null;const M={},_=S(null,P);for(let N=0;N<c.length;N++){const{slots:d=[],class:L,className:Y,...Q}=c[N];if(!K(Q)){let H=!0;for(const $ in Q){const W=_[$],J=Q[$];if(W===void 0||(Array.isArray(J)?!J.includes(W):J!==W)){H=!1;break}}if(!H)continue}for(let H=0;H<d.length;H++){const $=d[H];M[$]||(M[$]=[]),M[$].push([L,Y])}}return M};if(!K(a)||!I){const P={};if(typeof b=="object"&&!K(b)){const M=e;for(const _ in b)P[_]=N=>{const d=Z(N),L=Ce(N);return M(b[_],p(_,N),d?d[_]:void 0,L?L[_]:void 0,N?.class,N?.className)(v)}}return P}return e(g,y(),te(G),O?.class,O?.className)(v)},T=()=>{if(!(!w||typeof w!="object"))return Object.keys(w)};return R.variantKeys=T(),R.extend=n,R.base=g,R.slots=b,R.variants=w,R.defaultVariants=j,R.compoundSlots=c,R.compoundVariants=G,R};return{tv:t,createTV:s=>(o,n)=>t(o,n?Ze(s,n):s)}},po=e=>K(e)?or:so({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),go=(e,t)=>{const r=Ge(e);return!r||!(t?.twMerge??!0)?r:((!se.cachedTwMerge||se.didTwMergeConfigChange)&&(se.didTwMergeConfigChange=!1,se.cachedTwMerge=po(se.cachedTwMergeConfig)),se.cachedTwMerge(r)||void 0)},ho=(...e)=>t=>go(e,t),{tv:mo}=uo(ho);const bo=mo({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ko(e,t){Wr(t,!0);let r=bt(t,"ref",15,null),s=bt(t,"variant",3,"default"),o=Yr(t,["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);var n=ht(),a=gt(n);as(a,()=>t.href?"a":"span",!1,(l,i)=>{qr(l,v=>r(v),()=>r()),ms(l,v=>({"data-slot":"badge",href:t.href,class:v,...o}),[()=>oo(bo({variant:s()}),t.class)]);var c=ht(),f=gt(c);ns(f,()=>t.children??Fr),mt(i,c)}),mt(e,n),Dr()}const ir=3456;function vo(){return typeof window>"u"?`http://localhost:${ir}`:window.location.origin}function wo(){return typeof window>"u"?`ws://localhost:${ir}`:`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}`}const it=vo(),Xo=wo(),et="kspec-selected-project";let ue=ne(Ur([])),pe=ne(null),lr=ne(0),tt=ne(!1),rt=ne(null),cr=ne(!1);function yo(){try{return localStorage.getItem(et)}catch{return null}}function lt(e){try{e?localStorage.setItem(et,e):localStorage.removeItem(et)}catch{}}async function Qo(){q(tt,!0),q(rt,null);try{const e=await fetch(`${it}/api/projects`);if(!e.ok)throw new Error("Failed to load projects");const t=await e.json();q(ue,t.projects||[],!0);const r=yo();r&&F(ue).some(s=>s.path===r)?q(pe,r,!0):F(ue).length>0&&(q(pe,F(ue)[0].path,!0),lt(F(pe))),q(cr,!0)}catch(e){q(rt,e instanceof Error?e.message:"Failed to load projects",!0),console.error("[ProjectStore] Failed to load projects:",e)}finally{q(tt,!1)}}function Zo(e){if(e===F(pe))return;if(!F(ue).some(r=>r.path===e)){console.warn("[ProjectStore] Attempted to select unknown project:",e);return}q(pe,e,!0),lt(e),Br(lr)}function ko(){return F(pe)}function en(){return F(ue).length>1}function tn(){return F(lr)}function rn(){return F(ue)}function sn(){return F(tt)}function on(){return F(cr)}function xo(){q(pe,null),lt(null),q(rt,"Selected project is no longer valid. Please select a project.")}function So(e,t){return e.status!==400&&e.status!==404||!t?!1:t.includes("Invalid kspec project")||t.includes("No default project configured")||t.includes("Default project no longer valid")}let Re=ne("loading"),We=ne(null),_o=ne(null);async function nn(){try{if((await fetch(`${it}/health`,{signal:AbortSignal.timeout(2e3)})).ok){q(Re,"daemon");return}}catch{}try{const e=await fetch(`${ts}/kspec-snapshot.json`,{signal:AbortSignal.timeout(5e3)});if(e.ok){q(We,await e.json(),!0),q(Re,"static");return}}catch{}q(Re,"daemon"),q(_o,"Unable to connect to daemon and no static snapshot available")}function U(){return F(Re)==="static"}function ee(){return F(We)}function an(){return F(We)?.exported_at??null}function ln(){return F(We)?.validation??null}class Co extends Error{constructor(t){super(`Cannot ${t} in read-only mode. Use the kspec CLI to make changes.`),this.name="ReadOnlyModeError"}}function X(e){if(U())throw new Co(e)}function fr(e){return{_ulid:e._ulid,slugs:e.slugs,title:e.title,type:e.type,status:e.status,priority:e.priority,spec_ref:e.spec_ref??void 0,tags:e.tags,depends_on:e.depends_on,created_at:e.created_at,started_at:e.started_at??void 0,automation:e.automation,notes_count:e.notes?.length??0,todos_count:e.todos?.length??0}}function Ao(e){return{_ulid:e._ulid,slugs:e.slugs,title:e.title,type:e.type,status:e.status,tags:e.tags,created_at:e.created_at??new Date().toISOString()}}function To(e,t){let r=e;return t?.status&&(r=r.filter(s=>s.status===t.status)),t?.tag&&(r=r.filter(s=>s.tags.includes(t.tag))),t?.assignee&&(r=r.filter(s=>s.assignee===t.assignee)),t?.automation&&(r=r.filter(s=>s.automation===t.automation)),r}function Eo(e,t){let r=e;if(t?.type){const s=Array.isArray(t.type)?t.type:[t.type];r=r.filter(o=>s.includes(o.type))}return t?.tag&&(r=r.filter(s=>s.tags.includes(t.tag))),r}function ct(e,t){const r=t?.limit??50,s=t?.offset??0;return{items:e.slice(s,s+r),total:e.length,offset:s,limit:r}}function Po(e,t){const r=t.startsWith("@")?t.slice(1):t,s=e.find(n=>n.slugs.includes(r));if(s)return s;const o=e.find(n=>n._ulid.startsWith(r.toUpperCase()));return o||null}function ur(e,t){const r=t.startsWith("@")?t.slice(1):t,s=e.find(n=>n.slugs.includes(r));if(s)return s;const o=e.find(n=>n._ulid.startsWith(r.toUpperCase()));return o||null}function Mo(e){const t=ee();if(!t)return{items:[],total:0,offset:0,limit:50};const r=To(t.tasks,e),s=ct(r,e);return{...s,items:s.items.map(fr)}}function jo(e){const t=ee();if(!t)return null;const r=Po(t.tasks,e);return r||null}function Io(e){const t=ee();if(!t)return{items:[],total:0,offset:0,limit:50};const r=Eo(t.items,e),s=ct(r,e);return{...s,items:s.items.map(Ao)}}function No(e){const t=ee();if(!t)return null;const r=ur(t.items,e);return r||null}function Oo(e){const t=ee();if(!t)return{items:[],total:0,offset:0,limit:50};const r=ur(t.items,e);if(!r)return{items:[],total:0,offset:0,limit:50};const s=t.tasks.filter(o=>{if(!o.spec_ref)return!1;const n=o.spec_ref.startsWith("@")?o.spec_ref.slice(1):o.spec_ref;return r.slugs.includes(n)||r._ulid.startsWith(n.toUpperCase())});return{items:s.map(fr),total:s.length,offset:0,limit:s.length}}function Ro(e){const t=ee();return t?ct(t.inbox,e):{items:[],total:0,offset:0,limit:50}}function zo(){return ee()?.session??null}function $o(e){const t=ee();if(!t)return{items:[],total:0,offset:0,limit:50};let r=t.observations;return e?.type&&(r=r.filter(s=>s.type===e.type)),e?.resolved!==void 0&&(r=r.filter(s=>s.resolved===e.resolved)),{items:r,total:r.length,offset:0,limit:r.length}}function Vo(e){const t=ee();if(!t)return{results:[],total:0,showing:0};const r=e.toLowerCase(),s=[];for(const o of t.tasks)(o.title.toLowerCase().includes(r)||o.slugs.some(n=>n.includes(r)))&&s.push({type:"task",ulid:o._ulid,title:o.title,matchedFields:["title"]});for(const o of t.items)(o.title.toLowerCase().includes(r)||o.slugs.some(n=>n.includes(r)))&&s.push({type:"item",ulid:o._ulid,title:o.title,matchedFields:["title"]});for(const o of t.inbox)o.text.toLowerCase().includes(r)&&s.push({type:"inbox",ulid:o._ulid,title:o.text.slice(0,50),matchedFields:["text"]});return{results:s.slice(0,20),total:s.length,showing:Math.min(s.length,20)}}function Lo(e){return{items:[],total:0,offset:e?.offset??0,limit:e?.limit??50}}function Go(){const e=ee();return e?{items:e.workflows??[],total:(e.workflows??[]).length}:{items:[],total:0}}function Wo(e){return{items:[],total:0}}const C=it;function E(){const e=ko();return e?{"X-Kspec-Dir":e}:{}}async function A(e){const t=await e.json(),r=t.message||t.error;throw So(e,r)&&xo(),new Error(r)}async function cn(e){if(U())return Mo(e);const t=new URL(`${C}/api/tasks`);e&&Object.entries(e).forEach(([s,o])=>{o!==void 0&&o!==""&&t.searchParams.set(s,String(o))});const r=await fetch(t.toString(),{headers:E()});return r.ok||await A(r),r.json()}async function fn(e){if(U()){const r=jo(e);if(!r)throw new Error(`Task not found: ${e}`);return r}const t=await fetch(`${C}/api/tasks/${e}`,{headers:E()});return t.ok||await A(t),t.json()}async function un(e){X("start task");const t=await fetch(`${C}/api/tasks/${e}/start`,{method:"POST",headers:E()});t.ok||await A(t)}async function dn(e,t){X("add note");const r=await fetch(`${C}/api/tasks/${e}/note`,{method:"POST",headers:{"Content-Type":"application/json",...E()},body:JSON.stringify({content:t})});r.ok||await A(r)}async function pn(e){X("submit task");const t=await fetch(`${C}/api/tasks/${e}/submit`,{method:"POST",headers:E()});t.ok||await A(t)}async function gn(e,t){X("complete task");const r=await fetch(`${C}/api/tasks/${e}/complete`,{method:"POST",headers:{"Content-Type":"application/json",...E()},body:JSON.stringify({reason:t})});r.ok||await A(r)}async function hn(e,t){X("block task");const r=await fetch(`${C}/api/tasks/${e}/block`,{method:"POST",headers:{"Content-Type":"application/json",...E()},body:JSON.stringify({reason:t})});r.ok||await A(r)}async function mn(e){if(U())return Io(e);const t=new URL(`${C}/api/items`);e&&Object.entries(e).forEach(([s,o])=>{o!==void 0&&o!==""&&(Array.isArray(o)?o.forEach(n=>t.searchParams.append(s,String(n))):t.searchParams.set(s,String(o)))});const r=await fetch(t.toString(),{headers:E()});return r.ok||await A(r),r.json()}async function bn(e){if(U()){const r=No(e);if(!r)throw new Error(`Item not found: ${e}`);return r}const t=await fetch(`${C}/api/items/${e}`,{headers:E()});return t.ok||await A(t),t.json()}async function vn(e){if(U())return Oo(e);const t=await fetch(`${C}/api/items/${e}/tasks`,{headers:E()});return t.ok||await A(t),t.json()}async function wn(e){if(U())return Ro(e);const t=new URL(`${C}/api/inbox`);e&&Object.entries(e).forEach(([s,o])=>{o!==void 0&&o!==""&&t.searchParams.set(s,String(o))});const r=await fetch(t.toString(),{headers:E()});return r.ok||await A(r),r.json()}async function yn(e,t){X("add inbox item");const r=await fetch(`${C}/api/inbox`,{method:"POST",headers:{"Content-Type":"application/json",...E()},body:JSON.stringify({text:e,tags:t})});return r.ok||await A(r),(await r.json()).item}async function kn(e){X("delete inbox item");const t=await fetch(`${C}/api/inbox/${e}`,{method:"DELETE",headers:E()});t.ok||await A(t)}async function xn(){if(U()){const t=zo();return t||{focus:null,threads:[],open_questions:[],updated_at:new Date().toISOString()}}const e=await fetch(`${C}/api/meta/session`,{headers:E()});return e.ok||await A(e),e.json()}async function Sn(e){if(U())return $o(e);const t=new URL(`${C}/api/meta/observations`);e&&Object.entries(e).forEach(([s,o])=>{o!==void 0&&o!==""&&t.searchParams.set(s,String(o))});const r=await fetch(t.toString(),{headers:E()});return r.ok||await A(r),r.json()}async function _n(e){if(U())return Vo(e);const t=new URL(`${C}/api/search`);t.searchParams.set("q",e);const r=await fetch(t.toString(),{headers:E()});return r.ok||await A(r),r.json()}async function Cn(e){if(U())return Lo(e);const t=new URL(`${C}/api/triage`);e&&Object.entries(e).forEach(([s,o])=>{o!==void 0&&o!==""&&t.searchParams.set(s,String(o))});const r=await fetch(t.toString(),{headers:E()});return r.ok||await A(r),r.json()}async function An(e){X("create triage record");const t=await fetch(`${C}/api/triage`,{method:"POST",headers:{"Content-Type":"application/json",...E()},body:JSON.stringify(e)});return t.ok||await A(t),t.json()}async function Tn(e,t){X("override triage record");const r=await fetch(`${C}/api/triage/${e}/override`,{method:"POST",headers:{"Content-Type":"application/json",...E()},body:JSON.stringify(t)});return r.ok||await A(r),r.json()}async function En(){const e=await fetch(`${C}/api/agent/status`,{headers:E()});return e.ok||await A(e),e.json()}async function Pn(){const e=await fetch(`${C}/api/meta/agents`,{headers:E()});return e.ok||await A(e),e.json()}async function Mn(e){X("control dispatch");const t=await fetch(`${C}/api/agent/dispatch`,{method:"POST",headers:{"Content-Type":"application/json",...E()},body:JSON.stringify({action:e})});return t.ok||await A(t),t.json()}async function jn(e,t){X("update agent definition");const r=await fetch(`${C}/api/meta/agents/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json",...E()},body:JSON.stringify(t)});return r.ok||await A(r),r.json()}async function In(e){X("execute triage action");const t=await fetch(`${C}/api/triage/${e}/act`,{method:"POST",headers:E()});return t.ok||await A(t),t.json()}async function Nn(e){if(U())return Wo();const t=new URL(`${C}/api/plans`),r=await fetch(t.toString(),{headers:E()});return r.ok||await A(r),r.json()}async function On(e){if(U())throw new Error("Plan content not available in static mode");const t=await fetch(`${C}/api/plans/${e}`,{headers:E()});return t.ok||await A(t),t.json()}async function Rn(){if(U())return Go();const e=await fetch(`${C}/api/meta/workflows`,{headers:E()});return e.ok||await A(e),e.json()}async function zn(){if(U())return{items:[],total:0};const e=await fetch(`${C}/api/sessions`,{headers:E()});return e.ok||await A(e),e.json()}async function $n(e){if(U())throw new Error("Session data not available in static mode");const t=await fetch(`${C}/api/sessions/${e}`,{headers:E()});return t.ok||await A(t),t.json()}async function Vn(e,t){if(U())return{events:[],total:0};const r=new URL(`${C}/api/sessions/${e}/events`);t!==void 0&&r.searchParams.set("since_seq",String(t));const s=await fetch(r.toString(),{headers:E()});return s.ok||await A(s),s.json()}async function Ln(){if(U())return{valid:!0,schemaErrors:[],refErrors:[],refWarnings:[],orphans:[],completenessWarnings:[],traitCycles:[]};const e=await fetch(`${C}/api/validate`,{headers:E()});e.ok||await A(e);const t=await e.json();return{valid:t.valid??!0,schemaErrors:t.schemaErrors??[],refErrors:t.refErrors??[],refWarnings:t.refWarnings??[],orphans:t.orphans??[],completenessWarnings:t.completenessWarnings??[],traitCycles:t.traitCycles??[]}}async function Gn(){if(U())return{stats:{totalSpecs:0,specsWithTasks:0,alignedSpecs:0,orphanedSpecs:0},warnings:[]};const e=await fetch(`${C}/api/alignment`,{headers:E()});return e.ok||await A(e),e.json()}async function Wn(){const e=await fetch(`${C}/api/health`);return e.ok||await A(e),e.json()}async function Dn(){const e=await fetch(`${C}/api/meta/config`,{headers:E()});return e.ok||await A(e),e.json()}async function Fn(){const e=await fetch(`${C}/api/meta/shadow`,{headers:E()});return e.ok||await A(e),e.json()}async function Un(){const e=await fetch(`${C}/api/meta/conventions`,{headers:E()});return e.ok||await A(e),e.json()}export{vn as $,En as A,Ko as B,Nn as C,Xo as D,Jo as E,On as F,gn as G,hn as H,dn as I,un as J,pn as K,Dn as L,Wn as M,Fn as N,Un as O,Gn as P,mn as Q,Co as R,Rn as S,fn as T,ps as U,jn as V,Pn as W,Mn as X,Lt as Y,ls as Z,bn as _,Cn as a,$n as a0,Vn as a1,sn as a2,Zo as a3,ko as a4,rn as a5,xn as a6,en as a7,_n as a8,ln as a9,an as aa,nn as ab,Qo as ac,Gt as b,U as c,kn as d,Yo as e,wn as f,tn as g,qo as h,on as i,yn as j,ns as k,ms as l,oo as m,zn as n,cn as o,us as p,Ve as q,ds as r,$e as s,mo as t,Tn as u,An as v,In as w,as as x,Sn as y,Ln as z};
@@ -0,0 +1 @@
1
+ import{c as B,a as T,f as bt,b as nn,p as Le}from"./DvA-KON-.js";import{h as b,g as u,u as ut,q as on,b as H,d as Gt,e as C,p as Y,f as _,i as tt,a as R,c as Pt,r as Ct,t as rn,s as Ne}from"./D3vxvonu.js";import{c as Bt}from"./DAx07bEQ.js";import{p as w,i as $,r as J,s as Q}from"./BysXJlZb.js";import{k as K,l as vt,q as be,m as xe}from"./DQA8NZIH.js";import{t as sn,C as It,u as Ut,v as an,w as Mt,x as ln,F as cn,y as Oe,z as dn,B as un,G as fn,I as hn,J as te,q as gn,m as mn,K as pn,j as wn,n as Ht,P as vn}from"./BMuCqDX8.js";import{p as it,f as yn,a as _t,q as bn,s as xn,e as S,m as ft,c as On,k as He,d as ze}from"./CPPfDSei.js";import{f as Pn,o as Ot}from"./D9QNBZM2.js";import{o as Cn}from"./CwELQvbx.js";function An(e){return typeof e=="function"}function Pe(e){return An(e)?e():e}class Sn{#n={width:0,height:0};#i=!1;#t;#e;#o;#l=b(()=>(u(this.#r)?.(),this.getSize().width));#a=b(()=>(u(this.#r)?.(),this.getSize().height));#r=b(()=>{const t=Pe(this.#e);if(t)return Pn(n=>{if(!this.#o)return;const i=new this.#o.ResizeObserver(o=>{this.#i=!0;for(const r of o){const s=this.#t.box==="content-box"?r.contentBoxSize:r.borderBoxSize,a=Array.isArray(s)?s:[s];this.#n.width=a.reduce((l,d)=>Math.max(l,d.inlineSize),0),this.#n.height=a.reduce((l,d)=>Math.max(l,d.blockSize),0)}n()});return i.observe(t),()=>{this.#i=!1,i.disconnect()}})});constructor(t,n={box:"border-box"}){this.#o=n.window??sn,this.#t=n,this.#e=t,this.#n={width:0,height:0}}calculateSize(){const t=Pe(this.#e);if(!t||!this.#o)return;const n=t.offsetWidth,i=t.offsetHeight;if(this.#t.box==="border-box")return{width:n,height:i};const o=this.#o.getComputedStyle(t),r=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),s=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),l=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),d=n-r-a,f=i-s-l;return{width:d,height:f}}getSize(){return this.#i?this.#n:this.calculateSize()??this.#n}get current(){return u(this.#r)?.(),this.getSize()}get width(){return u(this.#l)}get height(){return u(this.#a)}}function Dn(e){ut(()=>on(()=>e()))}const Tn=["top","right","bottom","left"],ht=Math.min,q=Math.max,zt=Math.round,Nt=Math.floor,rt=e=>({x:e,y:e}),Fn={left:"right",right:"left",bottom:"top",top:"bottom"},En={start:"end",end:"start"};function ee(e,t,n){return q(e,ht(t,n))}function ct(e,t){return typeof e=="function"?e(t):e}function dt(e){return e.split("-")[0]}function Dt(e){return e.split("-")[1]}function se(e){return e==="x"?"y":"x"}function ae(e){return e==="y"?"height":"width"}const _n=new Set(["top","bottom"]);function ot(e){return _n.has(dt(e))?"y":"x"}function le(e){return se(ot(e))}function Bn(e,t,n){n===void 0&&(n=!1);const i=Dt(e),o=le(e),r=ae(o);let s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Kt(s)),[s,Kt(s)]}function Mn(e){const t=Kt(e);return[ne(e),t,ne(t)]}function ne(e){return e.replace(/start|end/g,t=>En[t])}const Ce=["left","right"],Ae=["right","left"],kn=["top","bottom"],Wn=["bottom","top"];function In(e,t,n){switch(e){case"top":case"bottom":return n?t?Ae:Ce:t?Ce:Ae;case"left":case"right":return t?kn:Wn;default:return[]}}function Ln(e,t,n,i){const o=Dt(e);let r=In(dt(e),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),t&&(r=r.concat(r.map(ne)))),r}function Kt(e){return e.replace(/left|right|bottom|top/g,t=>Fn[t])}function Nn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ke(e){return typeof e!="number"?Nn(e):{top:e,right:e,bottom:e,left:e}}function Vt(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function Se(e,t,n){let{reference:i,floating:o}=e;const r=ot(t),s=le(t),a=ae(s),l=dt(t),d=r==="y",f=i.x+i.width/2-o.width/2,c=i.y+i.height/2-o.height/2,h=i[a]/2-o[a]/2;let g;switch(l){case"top":g={x:f,y:i.y-o.height};break;case"bottom":g={x:f,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:c};break;case"left":g={x:i.x-o.width,y:c};break;default:g={x:i.x,y:i.y}}switch(Dt(t)){case"start":g[s]-=h*(n&&d?-1:1);break;case"end":g[s]+=h*(n&&d?-1:1);break}return g}const Hn=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,a=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=Se(d,i,l),h=i,g={},p=0;for(let y=0;y<a.length;y++){const{name:v,fn:m}=a[y],{x,y:O,data:P,reset:A}=await m({x:f,y:c,initialPlacement:i,placement:h,strategy:o,middlewareData:g,rects:d,platform:s,elements:{reference:e,floating:t}});f=x??f,c=O??c,g={...g,[v]:{...g[v],...P}},A&&p<=50&&(p++,typeof A=="object"&&(A.placement&&(h=A.placement),A.rects&&(d=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:f,y:c}=Se(d,h,l)),y=-1)}return{x:f,y:c,placement:h,strategy:o,middlewareData:g}};async function kt(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:r,rects:s,elements:a,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:h=!1,padding:g=0}=ct(t,e),p=Ke(g),v=a[h?c==="floating"?"reference":"floating":c],m=Vt(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:d,rootBoundary:f,strategy:l})),x=c==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,O=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),P=await(r.isElement==null?void 0:r.isElement(O))?await(r.getScale==null?void 0:r.getScale(O))||{x:1,y:1}:{x:1,y:1},A=Vt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:O,strategy:l}):x);return{top:(m.top-A.top+p.top)/P.y,bottom:(A.bottom-m.bottom+p.bottom)/P.y,left:(m.left-A.left+p.left)/P.x,right:(A.right-m.right+p.right)/P.x}}const zn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:r,platform:s,elements:a,middlewareData:l}=t,{element:d,padding:f=0}=ct(e,t)||{};if(d==null)return{};const c=Ke(f),h={x:n,y:i},g=le(o),p=ae(g),y=await s.getDimensions(d),v=g==="y",m=v?"top":"left",x=v?"bottom":"right",O=v?"clientHeight":"clientWidth",P=r.reference[p]+r.reference[g]-h[g]-r.floating[p],A=h[g]-r.reference[g],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let D=E?E[O]:0;(!D||!await(s.isElement==null?void 0:s.isElement(E)))&&(D=a.floating[O]||r.floating[p]);const F=P/2-A/2,z=D/2-y[p]/2-1,L=ht(c[m],z),V=ht(c[x],z),k=L,X=D-y[p]-V,M=D/2-y[p]/2+F,U=ee(k,M,X),W=!l.arrow&&Dt(o)!=null&&M!==U&&r.reference[p]/2-(M<k?L:V)-y[p]/2<0,N=W?M<k?M-k:M-X:0;return{[g]:h[g]+N,data:{[g]:U,centerOffset:M-U-N,...W&&{alignmentOffset:N}},reset:W}}}),Kn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:r,rects:s,initialPlacement:a,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...v}=ct(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const m=dt(o),x=ot(a),O=dt(a)===a,P=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=h||(O||!y?[Kt(a)]:Mn(a)),E=p!=="none";!h&&E&&A.push(...Ln(a,y,p,P));const D=[a,...A],F=await kt(t,v),z=[];let L=((i=r.flip)==null?void 0:i.overflows)||[];if(f&&z.push(F[m]),c){const M=Bn(o,s,P);z.push(F[M[0]],F[M[1]])}if(L=[...L,{placement:o,overflows:z}],!z.every(M=>M<=0)){var V,k;const M=(((V=r.flip)==null?void 0:V.index)||0)+1,U=D[M];if(U&&(!(c==="alignment"?x!==ot(U):!1)||L.every(I=>ot(I.placement)===x?I.overflows[0]>0:!0)))return{data:{index:M,overflows:L},reset:{placement:U}};let W=(k=L.filter(N=>N.overflows[0]<=0).sort((N,I)=>N.overflows[1]-I.overflows[1])[0])==null?void 0:k.placement;if(!W)switch(g){case"bestFit":{var X;const N=(X=L.filter(I=>{if(E){const j=ot(I.placement);return j===x||j==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(j=>j>0).reduce((j,G)=>j+G,0)]).sort((I,j)=>I[1]-j[1])[0])==null?void 0:X[0];N&&(W=N);break}case"initialPlacement":W=a;break}if(o!==W)return{reset:{placement:W}}}return{}}}};function De(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Te(e){return Tn.some(t=>e[t]>=0)}const Vn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...o}=ct(e,t);switch(i){case"referenceHidden":{const r=await kt(t,{...o,elementContext:"reference"}),s=De(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Te(s)}}}case"escaped":{const r=await kt(t,{...o,altBoundary:!0}),s=De(r,n.floating);return{data:{escapedOffsets:s,escaped:Te(s)}}}default:return{}}}}},Ve=new Set(["left","top"]);async function Xn(e,t){const{placement:n,platform:i,elements:o}=e,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=dt(n),a=Dt(n),l=ot(n)==="y",d=Ve.has(s)?-1:1,f=r&&l?-1:1,c=ct(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof p=="number"&&(g=a==="end"?p*-1:p),l?{x:g*f,y:h*d}:{x:h*d,y:g*f}}const Yn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:r,placement:s,middlewareData:a}=t,l=await Xn(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}},Rn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:m,y:x}=v;return{x:m,y:x}}},...l}=ct(e,t),d={x:n,y:i},f=await kt(t,l),c=ot(dt(o)),h=se(c);let g=d[h],p=d[c];if(r){const v=h==="y"?"top":"left",m=h==="y"?"bottom":"right",x=g+f[v],O=g-f[m];g=ee(x,g,O)}if(s){const v=c==="y"?"top":"left",m=c==="y"?"bottom":"right",x=p+f[v],O=p-f[m];p=ee(x,p,O)}const y=a.fn({...t,[h]:g,[c]:p});return{...y,data:{x:y.x-n,y:y.y-i,enabled:{[h]:r,[c]:s}}}}}},Un=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:r,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:d=!0}=ct(e,t),f={x:n,y:i},c=ot(o),h=se(c);let g=f[h],p=f[c];const y=ct(a,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const O=h==="y"?"height":"width",P=r.reference[h]-r.floating[O]+v.mainAxis,A=r.reference[h]+r.reference[O]-v.mainAxis;g<P?g=P:g>A&&(g=A)}if(d){var m,x;const O=h==="y"?"width":"height",P=Ve.has(dt(o)),A=r.reference[c]-r.floating[O]+(P&&((m=s.offset)==null?void 0:m[c])||0)+(P?0:v.crossAxis),E=r.reference[c]+r.reference[O]+(P?0:((x=s.offset)==null?void 0:x[c])||0)-(P?v.crossAxis:0);p<A?p=A:p>E&&(p=E)}return{[h]:g,[c]:p}}}},jn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:r,platform:s,elements:a}=t,{apply:l=()=>{},...d}=ct(e,t),f=await kt(t,d),c=dt(o),h=Dt(o),g=ot(o)==="y",{width:p,height:y}=r.floating;let v,m;c==="top"||c==="bottom"?(v=c,m=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=c,v=h==="end"?"top":"bottom");const x=y-f.top-f.bottom,O=p-f.left-f.right,P=ht(y-f[v],x),A=ht(p-f[m],O),E=!t.middlewareData.shift;let D=P,F=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=O),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(D=x),E&&!h){const L=q(f.left,0),V=q(f.right,0),k=q(f.top,0),X=q(f.bottom,0);g?F=p-2*(L!==0||V!==0?L+V:q(f.left,f.right)):D=y-2*(k!==0||X!==0?k+X:q(f.top,f.bottom))}await l({...t,availableWidth:F,availableHeight:D});const z=await s.getDimensions(a.floating);return p!==z.width||y!==z.height?{reset:{rects:!0}}:{}}}};function jt(){return typeof window<"u"}function Tt(e){return Xe(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function at(e){var t;return(t=(Xe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xe(e){return jt()?e instanceof Node||e instanceof Z(e).Node:!1}function et(e){return jt()?e instanceof Element||e instanceof Z(e).Element:!1}function st(e){return jt()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function Fe(e){return!jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}const qn=new Set(["inline","contents"]);function Lt(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=nt(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!qn.has(o)}const Zn=new Set(["table","td","th"]);function Jn(e){return Zn.has(Tt(e))}const Qn=[":popover-open",":modal"];function qt(e){return Qn.some(t=>{try{return e.matches(t)}catch{return!1}})}const Gn=["transform","translate","scale","rotate","perspective"],$n=["transform","translate","scale","rotate","perspective","filter"],ti=["paint","layout","strict","content"];function ce(e){const t=de(),n=et(e)?nt(e):e;return Gn.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||$n.some(i=>(n.willChange||"").includes(i))||ti.some(i=>(n.contain||"").includes(i))}function ei(e){let t=gt(e);for(;st(t)&&!St(t);){if(ce(t))return t;if(qt(t))return null;t=gt(t)}return null}function de(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ni=new Set(["html","body","#document"]);function St(e){return ni.has(Tt(e))}function nt(e){return Z(e).getComputedStyle(e)}function Zt(e){return et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gt(e){if(Tt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fe(e)&&e.host||at(e);return Fe(t)?t.host:t}function Ye(e){const t=gt(e);return St(t)?e.ownerDocument?e.ownerDocument.body:e.body:st(t)&&Lt(t)?t:Ye(t)}function Wt(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ye(e),r=o===((i=e.ownerDocument)==null?void 0:i.body),s=Z(o);if(r){const a=ie(s);return t.concat(s,s.visualViewport||[],Lt(o)?o:[],a&&n?Wt(a):[])}return t.concat(o,Wt(o,[],n))}function ie(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Re(e){const t=nt(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=st(e),r=o?e.offsetWidth:n,s=o?e.offsetHeight:i,a=zt(n)!==r||zt(i)!==s;return a&&(n=r,i=s),{width:n,height:i,$:a}}function ue(e){return et(e)?e:e.contextElement}function At(e){const t=ue(e);if(!st(t))return rt(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:r}=Re(t);let s=(r?zt(n.width):n.width)/i,a=(r?zt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const ii=rt(0);function Ue(e){const t=Z(e);return!de()||!t.visualViewport?ii:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Z(e)?!1:t}function yt(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=ue(e);let s=rt(1);t&&(i?et(i)&&(s=At(i)):s=At(e));const a=oi(r,n,i)?Ue(r):rt(0);let l=(o.left+a.x)/s.x,d=(o.top+a.y)/s.y,f=o.width/s.x,c=o.height/s.y;if(r){const h=Z(r),g=i&&et(i)?Z(i):i;let p=h,y=ie(p);for(;y&&i&&g!==p;){const v=At(y),m=y.getBoundingClientRect(),x=nt(y),O=m.left+(y.clientLeft+parseFloat(x.paddingLeft))*v.x,P=m.top+(y.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,d*=v.y,f*=v.x,c*=v.y,l+=O,d+=P,p=Z(y),y=ie(p)}}return Vt({width:f,height:c,x:l,y:d})}function Jt(e,t){const n=Zt(e).scrollLeft;return t?t.left+n:yt(at(e)).left+n}function je(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-Jt(e,n),o=n.top+t.scrollTop;return{x:i,y:o}}function ri(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const r=o==="fixed",s=at(i),a=t?qt(t.floating):!1;if(i===s||a&&r)return n;let l={scrollLeft:0,scrollTop:0},d=rt(1);const f=rt(0),c=st(i);if((c||!c&&!r)&&((Tt(i)!=="body"||Lt(s))&&(l=Zt(i)),st(i))){const g=yt(i);d=At(i),f.x=g.x+i.clientLeft,f.y=g.y+i.clientTop}const h=s&&!c&&!r?je(s,l):rt(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x+h.x,y:n.y*d.y-l.scrollTop*d.y+f.y+h.y}}function si(e){return Array.from(e.getClientRects())}function ai(e){const t=at(e),n=Zt(e),i=e.ownerDocument.body,o=q(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=q(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+Jt(e);const a=-n.scrollTop;return nt(i).direction==="rtl"&&(s+=q(t.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:a}}const Ee=25;function li(e,t){const n=Z(e),i=at(e),o=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;const f=de();(!f||f&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const d=Jt(i);if(d<=0){const f=i.ownerDocument,c=f.body,h=getComputedStyle(c),g=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(i.clientWidth-c.clientWidth-g);p<=Ee&&(r-=p)}else d<=Ee&&(r+=d);return{width:r,height:s,x:a,y:l}}const ci=new Set(["absolute","fixed"]);function di(e,t){const n=yt(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,r=st(e)?At(e):rt(1),s=e.clientWidth*r.x,a=e.clientHeight*r.y,l=o*r.x,d=i*r.y;return{width:s,height:a,x:l,y:d}}function _e(e,t,n){let i;if(t==="viewport")i=li(e,n);else if(t==="document")i=ai(at(e));else if(et(t))i=di(t,n);else{const o=Ue(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Vt(i)}function qe(e,t){const n=gt(e);return n===t||!et(n)||St(n)?!1:nt(n).position==="fixed"||qe(n,t)}function ui(e,t){const n=t.get(e);if(n)return n;let i=Wt(e,[],!1).filter(a=>et(a)&&Tt(a)!=="body"),o=null;const r=nt(e).position==="fixed";let s=r?gt(e):e;for(;et(s)&&!St(s);){const a=nt(s),l=ce(s);!l&&a.position==="fixed"&&(o=null),(r?!l&&!o:!l&&a.position==="static"&&!!o&&ci.has(o.position)||Lt(s)&&!l&&qe(e,s))?i=i.filter(f=>f!==s):o=a,s=gt(s)}return t.set(e,i),i}function fi(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const s=[...n==="clippingAncestors"?qt(t)?[]:ui(t,this._c):[].concat(n),i],a=s[0],l=s.reduce((d,f)=>{const c=_e(t,f,o);return d.top=q(c.top,d.top),d.right=ht(c.right,d.right),d.bottom=ht(c.bottom,d.bottom),d.left=q(c.left,d.left),d},_e(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function hi(e){const{width:t,height:n}=Re(e);return{width:t,height:n}}function gi(e,t,n){const i=st(t),o=at(t),r=n==="fixed",s=yt(e,!0,r,t);let a={scrollLeft:0,scrollTop:0};const l=rt(0);function d(){l.x=Jt(o)}if(i||!i&&!r)if((Tt(t)!=="body"||Lt(o))&&(a=Zt(t)),i){const g=yt(t,!0,r,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else o&&d();r&&!i&&o&&d();const f=o&&!i&&!r?je(o,a):rt(0),c=s.left+a.scrollLeft-l.x-f.x,h=s.top+a.scrollTop-l.y-f.y;return{x:c,y:h,width:s.width,height:s.height}}function $t(e){return nt(e).position==="static"}function Be(e,t){if(!st(e)||nt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return at(e)===n&&(n=n.ownerDocument.body),n}function Ze(e,t){const n=Z(e);if(qt(e))return n;if(!st(e)){let o=gt(e);for(;o&&!St(o);){if(et(o)&&!$t(o))return o;o=gt(o)}return n}let i=Be(e,t);for(;i&&Jn(i)&&$t(i);)i=Be(i,t);return i&&St(i)&&$t(i)&&!ce(i)?n:i||ei(e)||n}const mi=async function(e){const t=this.getOffsetParent||Ze,n=this.getDimensions,i=await n(e.floating);return{reference:gi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function pi(e){return nt(e).direction==="rtl"}const wi={convertOffsetParentRelativeRectToViewportRelativeRect:ri,getDocumentElement:at,getClippingRect:fi,getOffsetParent:Ze,getElementRects:mi,getClientRects:si,getDimensions:hi,getScale:At,isElement:et,isRTL:pi};function Je(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vi(e,t){let n=null,i;const o=at(e);function r(){var a;clearTimeout(i),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),r();const d=e.getBoundingClientRect(),{left:f,top:c,width:h,height:g}=d;if(a||t(),!h||!g)return;const p=Nt(c),y=Nt(o.clientWidth-(f+h)),v=Nt(o.clientHeight-(c+g)),m=Nt(f),O={rootMargin:-p+"px "+-y+"px "+-v+"px "+-m+"px",threshold:q(0,ht(1,l))||1};let P=!0;function A(E){const D=E[0].intersectionRatio;if(D!==l){if(!P)return s();D?s(!1,D):i=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!Je(d,e.getBoundingClientRect())&&s(),P=!1}try{n=new IntersectionObserver(A,{...O,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,O)}n.observe(e)}return s(!0),r}function yi(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,d=ue(e),f=o||r?[...d?Wt(d):[],...Wt(t)]:[];f.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),r&&m.addEventListener("resize",n)});const c=d&&a?vi(d,n):null;let h=-1,g=null;s&&(g=new ResizeObserver(m=>{let[x]=m;x&&x.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var O;(O=g)==null||O.observe(t)})),n()}),d&&!l&&g.observe(d),g.observe(t));let p,y=l?yt(e):null;l&&v();function v(){const m=yt(e);y&&!Je(y,m)&&n(),y=m,p=requestAnimationFrame(v)}return n(),()=>{var m;f.forEach(x=>{o&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),c?.(),(m=g)==null||m.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const bi=Yn,xi=Rn,Oi=Kn,Pi=jn,Ci=Vn,Ai=zn,Si=Un,Di=(e,t,n)=>{const i=new Map,o={platform:wi,...n},r={...o.platform,_c:i};return Hn(e,t,{...o,platform:r})};function wt(e){return typeof e=="function"?e():e}function Qe(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Me(e,t){const n=Qe(e);return Math.round(t*n)/n}function ke(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Ti(e){const t=e.whileElementsMounted,n=b(()=>wt(e.open)??!0),i=b(()=>wt(e.middleware)),o=b(()=>wt(e.transform)??!0),r=b(()=>wt(e.placement)??"bottom"),s=b(()=>wt(e.strategy)??"absolute"),a=b(()=>wt(e.sideOffset)??0),l=b(()=>wt(e.alignOffset)??0),d=e.reference;let f=H(0),c=H(0);const h=it(null);let g=H(Gt(u(s))),p=H(Gt(u(r))),y=H(Gt({})),v=H(!1);const m=b(()=>{const D=h.current?Me(h.current,u(f)):u(f),F=h.current?Me(h.current,u(c)):u(c);return u(o)?{position:u(g),left:"0",top:"0",transform:`translate(${D}px, ${F}px)`,...h.current&&Qe(h.current)>=1.5&&{willChange:"transform"}}:{position:u(g),left:`${D}px`,top:`${F}px`}});let x;function O(){d.current===null||h.current===null||Di(d.current,h.current,{middleware:u(i),placement:u(r),strategy:u(s)}).then(D=>{if(!u(n)&&u(f)!==0&&u(c)!==0){const F=Math.max(Math.abs(u(a)),Math.abs(u(l)),15);if(D.x<=F&&D.y<=F)return}C(f,D.x,!0),C(c,D.y,!0),C(g,D.strategy,!0),C(p,D.placement,!0),C(y,D.middlewareData,!0),C(v,!0)})}function P(){typeof x=="function"&&(x(),x=void 0)}function A(){if(P(),t===void 0){O();return}d.current===null||h.current===null||(x=t(d.current,h.current,O))}function E(){u(n)||C(v,!1)}return ut(O),ut(A),ut(E),ut(()=>P),{floating:h,reference:d,get strategy(){return u(g)},get placement(){return u(p)},get middlewareData(){return u(y)},get isPositioned(){return u(v)},get floatingStyles(){return u(m)},get update(){return O}}}const Fi={top:"bottom",right:"left",bottom:"top",left:"right"},fe=new It("Floating.Root"),oe=new It("Floating.Content"),he=new It("Floating.Root");class Xt{static create(t=!1){return t?he.set(new Xt):fe.set(new Xt)}anchorNode=it(null);customAnchorNode=it(null);triggerNode=it(null);constructor(){ut(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Yt{static create(t,n=!1){return n?oe.set(new Yt(t,he.get())):oe.set(new Yt(t,fe.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=_t(this.contentRef);wrapperAttachment=_t(this.wrapperRef);arrowAttachment=_t(this.arrowRef);arrowId=it(Ut());#n=b(()=>{if(typeof this.opts.style=="string")return bn(this.opts.style);if(!this.opts.style)return{}});#i=void 0;#t=new Sn(()=>this.arrowRef.current??void 0);#e=b(()=>this.#t?.width??0);#o=b(()=>this.#t?.height??0);#l=b(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=b(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#r=b(()=>u(this.#a).length>0);get hasExplicitBoundaries(){return u(this.#r)}set hasExplicitBoundaries(t){C(this.#r,t)}#s=b(()=>({padding:this.opts.collisionPadding.current,boundary:u(this.#a).filter(an),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return u(this.#s)}set detectOverflowOptions(t){C(this.#s,t)}#c=H(void 0);#d=H(void 0);#f=H(void 0);#h=H(void 0);#u=b(()=>[bi({mainAxis:this.opts.sideOffset.current+u(this.#o),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&xi({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Si():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Oi({...this.detectOverflowOptions}),Pi({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:i})=>{const{width:o,height:r}=t.reference;C(this.#c,n,!0),C(this.#d,i,!0),C(this.#f,o,!0),C(this.#h,r,!0)}}),this.arrowRef.current&&Ai({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Ei({arrowWidth:u(this.#e),arrowHeight:u(this.#o)}),this.opts.hideWhenDetached.current&&Ci({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return u(this.#u)}set middleware(t){C(this.#u,t)}floating;#g=b(()=>_i(this.floating.placement));get placedSide(){return u(this.#g)}set placedSide(t){C(this.#g,t)}#m=b(()=>Bi(this.floating.placement));get placedAlign(){return u(this.#m)}set placedAlign(t){C(this.#m,t)}#p=b(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return u(this.#p)}set arrowX(t){C(this.#p,t)}#w=b(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return u(this.#w)}set arrowY(t){C(this.#w,t)}#v=b(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return u(this.#v)}set cannotCenterArrow(t){C(this.#v,t)}#y=H();get contentZIndex(){return u(this.#y)}set contentZIndex(t){C(this.#y,t,!0)}#b=b(()=>Fi[this.placedSide]);get arrowBaseSide(){return u(this.#b)}set arrowBaseSide(t){C(this.#b,t)}#x=b(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${u(this.#c)}px`,"--bits-floating-available-height":`${u(this.#d)}px`,"--bits-floating-anchor-width":`${u(this.#f)}px`,"--bits-floating-anchor-height":`${u(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...u(this.#n)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return u(this.#x)}set wrapperProps(t){C(this.#x,t)}#O=b(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:xn({...u(this.#n)}),...this.contentAttachment}));get props(){return u(this.#O)}set props(t){C(this.#O,t)}#P=b(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return u(this.#P)}set arrowStyle(t){C(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),Mt(()=>t.customAnchor.current,i=>{this.root.customAnchorNode.current=i}),this.floating=Ti({strategy:()=>this.opts.strategy.current,placement:()=>u(this.#l),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...i)=>yi(...i,{animationFrame:this.#i?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),ut(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),Mt(()=>this.contentRef.current,i=>{if(!i)return;const o=ln(i);this.contentZIndex=o.getComputedStyle(i).zIndex}),ut(()=>{this.floating.floating.current=this.wrapperRef.current})}}class ge{static create(t){return new ge(t,oe.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#n=b(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return u(this.#n)}set props(t){C(this.#n,t)}}class Rt{static create(t,n=!1){return n?new Rt(t,he.get()):new Rt(t,fe.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=yn(t.virtualEl.current):n.triggerNode=t.ref}}function Ei(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:i,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[d,f]=me(n),c={start:"0%",center:"50%",end:"100%"}[f],h=(o.arrow?.x??0)+a/2,g=(o.arrow?.y??0)+l/2;let p="",y="";return d==="bottom"?(p=s?c:`${h}px`,y=`${-l}px`):d==="top"?(p=s?c:`${h}px`,y=`${i.floating.height+l}px`):d==="right"?(p=`${-l}px`,y=s?c:`${g}px`):d==="left"&&(p=`${i.floating.width+l}px`,y=s?c:`${g}px`),{data:{x:p,y}}}}}function me(e){const[t,n="center"]=e.split("-");return[t,n]}function _i(e){return me(e)[0]}function Bi(e){return me(e)[1]}function Mi(e,t){Y(t,!0);let n=w(t,"tooltip",3,!1);Xt.create(n());var i=B(),o=_(i);K(o,()=>t.children??tt),T(e,i),R()}function ki(e,t){Y(t,!0);let n=w(t,"tooltip",3,!1);Rt.create({id:S(()=>t.id),virtualEl:S(()=>t.virtualEl),ref:t.ref},n());var i=B(),o=_(i);K(o,()=>t.children??tt),T(e,i),R()}var Wi=nn('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),Ii=bt("<span><!></span>");function Li(e,t){Y(t,!0);let n=w(t,"id",19,Ut),i=w(t,"width",3,10),o=w(t,"height",3,5),r=J(t,["$$slots","$$events","$$legacy","id","children","child","width","height"]);const s=b(()=>ft(r,{id:n()}));var a=B(),l=_(a);{var d=c=>{var h=B(),g=_(h);K(g,()=>t.child,()=>({props:u(s)})),T(c,h)},f=c=>{var h=Ii();vt(h,()=>({...u(s)}));var g=Pt(h);{var p=v=>{var m=B(),x=_(m);K(x,()=>t.children??tt),T(v,m)},y=v=>{var m=Wi();rn(()=>{be(m,"width",i()),be(m,"height",o())}),T(v,m)};$(g,v=>{t.children?v(p):v(y,!1)})}Ct(h),T(c,h)};$(l,c=>{t.child?c(d):c(f,!1)})}T(e,a),R()}function Ni(e,t){Y(t,!0);let n=w(t,"id",19,Ut),i=w(t,"ref",15,null),o=J(t,["$$slots","$$events","$$legacy","id","ref"]);const r=ge.create({id:S(()=>n()),ref:S(()=>i(),a=>i(a))}),s=b(()=>ft(o,r.props));Li(e,Q(()=>u(s))),R()}function Hi(e,t){Y(t,!0);let n=w(t,"side",3,"bottom"),i=w(t,"sideOffset",3,0),o=w(t,"align",3,"center"),r=w(t,"alignOffset",3,0),s=w(t,"arrowPadding",3,0),a=w(t,"avoidCollisions",3,!0),l=w(t,"collisionBoundary",19,()=>[]),d=w(t,"collisionPadding",3,0),f=w(t,"hideWhenDetached",3,!1),c=w(t,"onPlaced",3,()=>{}),h=w(t,"sticky",3,"partial"),g=w(t,"updatePositionStrategy",3,"optimized"),p=w(t,"strategy",3,"fixed"),y=w(t,"dir",3,"ltr"),v=w(t,"style",19,()=>({})),m=w(t,"wrapperId",19,Ut),x=w(t,"customAnchor",3,null),O=w(t,"tooltip",3,!1);const P=Yt.create({side:S(()=>n()),sideOffset:S(()=>i()),align:S(()=>o()),alignOffset:S(()=>r()),id:S(()=>t.id),arrowPadding:S(()=>s()),avoidCollisions:S(()=>a()),collisionBoundary:S(()=>l()),collisionPadding:S(()=>d()),hideWhenDetached:S(()=>f()),onPlaced:S(()=>c()),sticky:S(()=>h()),updatePositionStrategy:S(()=>g()),strategy:S(()=>p()),dir:S(()=>y()),style:S(()=>v()),enabled:S(()=>t.enabled),wrapperId:S(()=>m()),customAnchor:S(()=>x())},O()),A=b(()=>ft(P.wrapperProps,{style:{pointerEvents:"auto"}}));var E=B(),D=_(E);K(D,()=>t.content??tt,()=>({props:P.props,wrapperProps:u(A)})),T(e,E),R()}function zi(e,t){Y(t,!0),Cn(()=>{t.onPlaced?.()});var n=B(),i=_(n);K(i,()=>t.content??tt,()=>({props:{},wrapperProps:{}})),T(e,n),R()}function Ki(e,t){let n=w(t,"isStatic",3,!1),i=J(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=B(),r=_(o);{var s=l=>{zi(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{Hi(l,Q({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>i))};$(r,l=>{n()?l(s):l(a,!1)})}T(e,o)}var Vi=bt("<!> <!>",1);function Ge(e,t){Y(t,!0);let n=w(t,"interactOutsideBehavior",3,"close"),i=w(t,"trapFocus",3,!0),o=w(t,"isValidEvent",3,()=>!1),r=w(t,"customAnchor",3,null),s=w(t,"isStatic",3,!1),a=w(t,"tooltip",3,!1),l=w(t,"contentPointerEvents",3,"auto"),d=J(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);Ki(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return r()},get enabled(){return t.enabled},get tooltip(){return a()},content:(c,h)=>{let g=()=>h?.().props,p=()=>h?.().wrapperProps;var y=Vi(),v=_(y);{var m=P=>{Oe(P,{get preventScroll(){return t.preventScroll}})},x=P=>{var A=B(),E=_(A);{var D=F=>{Oe(F,{get preventScroll(){return t.preventScroll}})};$(E,F=>{t.forceMount||F(D)},!0)}T(P,A)};$(v,P=>{t.forceMount&&t.enabled?P(m):P(x,!1)})}var O=Ne(v,2);cn(O,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return i()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(A,E)=>{let D=()=>E?.().props;dn(A,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(F,z)=>{un(F,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return t.enabled},get ref(){return t.ref},children:(V,k)=>{let X=()=>k?.().props;fn(V,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,U)=>{var W=B(),N=_(W);{let I=b(()=>({props:ft(d,g(),X(),D(),{style:{pointerEvents:l()}}),wrapperProps:p()}));K(N,()=>t.popper??tt,()=>u(I))}T(M,W)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),T(c,y)},$$slots:{content:!0}}),R()}function Xi(e,t){let n=w(t,"interactOutsideBehavior",3,"close"),i=w(t,"trapFocus",3,!0),o=w(t,"isValidEvent",3,()=>!1),r=w(t,"customAnchor",3,null),s=w(t,"isStatic",3,!1),a=J(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var l=B(),d=_(l);{var f=c=>{Ge(c,Q({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return r()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return i()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};$(d,c=>{t.shouldRender&&c(f)})}T(e,l)}function Yi(e,t){let n=w(t,"interactOutsideBehavior",3,"close"),i=w(t,"trapFocus",3,!0),o=w(t,"isValidEvent",3,()=>!1),r=w(t,"customAnchor",3,null),s=w(t,"isStatic",3,!1),a=J(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);Ge(e,Q({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return r()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return i()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function We(e,t){const[n,i]=e;let o=!1;const r=t.length;for(let s=0,a=r-1;s<r;a=s++){const[l,d]=t[s]??[0,0],[f,c]=t[a]??[0,0];d>=i!=c>=i&&n<=(f-l)*(i-d)/(c-d)+l&&(o=!o)}return o}function Ie(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function Ri(e,t){const n=e.left+e.width/2,i=e.top+e.height/2,o=t.left+t.width/2,r=t.top+t.height/2,s=o-n,a=r-i;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class Ui{#n;#i;#t=null;#e=null;constructor(t){this.#n=t,this.#i=t.buffer??1,Mt([t.triggerNode,t.contentNode,t.enabled],([n,i,o])=>{if(!n||!i||!o){this.#t=null,this.#e=null;return}const r=hn(n),s=c=>{this.#o(c,n,i)},a=c=>{const h=c.relatedTarget;te(h)&&i.contains(h)||(this.#t=[c.clientX,c.clientY],this.#e="content")},l=()=>{this.#t=null,this.#e=null},d=()=>{this.#t=null,this.#e=null},f=c=>{const h=c.relatedTarget;te(h)&&n.contains(h)||(this.#t=[c.clientX,c.clientY],this.#e="trigger")};return[Ot(r,"pointermove",s),Ot(n,"pointerleave",a),Ot(n,"pointerenter",l),Ot(i,"pointerenter",d),Ot(i,"pointerleave",f)].reduce((c,h)=>()=>{c(),h()},()=>{})})}#o(t,n,i){if(!this.#t||!this.#e)return;const o=[t.clientX,t.clientY],r=n.getBoundingClientRect(),s=i.getBoundingClientRect();if(this.#e==="content"&&Ie(o,s)){this.#t=null,this.#e=null;return}if(this.#e==="trigger"&&Ie(o,r)){this.#t=null,this.#e=null;return}const a=Ri(r,s),l=this.#l(r,s,a);if(l&&We(o,l))return;const d=this.#e==="content"?s:r,f=this.#a(this.#t,d,a,this.#e);We(o,f)||(this.#t=null,this.#e=null,this.#n.onPointerExit())}#l(t,n,i){const o=this.#i;switch(i){case"top":return[[Math.min(t.left,n.left)-o,t.top],[Math.min(t.left,n.left)-o,n.bottom],[Math.max(t.right,n.right)+o,n.bottom],[Math.max(t.right,n.right)+o,t.top]];case"bottom":return[[Math.min(t.left,n.left)-o,t.bottom],[Math.min(t.left,n.left)-o,n.top],[Math.max(t.right,n.right)+o,n.top],[Math.max(t.right,n.right)+o,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-o],[n.right,Math.min(t.top,n.top)-o],[n.right,Math.max(t.bottom,n.bottom)+o],[t.left,Math.max(t.bottom,n.bottom)+o]];case"right":return[[t.right,Math.min(t.top,n.top)-o],[n.left,Math.min(t.top,n.top)-o],[n.left,Math.max(t.bottom,n.bottom)+o],[t.right,Math.max(t.bottom,n.bottom)+o]]}}#a(t,n,i,o){const r=this.#i*4,[s,a]=t;switch(o==="trigger"?this.#r(i):i){case"top":return[[s-r,a+r],[s+r,a+r],[n.right+r,n.bottom],[n.right+r,n.top],[n.left-r,n.top],[n.left-r,n.bottom]];case"bottom":return[[s-r,a-r],[s+r,a-r],[n.right+r,n.top],[n.right+r,n.bottom],[n.left-r,n.bottom],[n.left-r,n.top]];case"left":return[[s+r,a-r],[s+r,a+r],[n.right,n.bottom+r],[n.left,n.bottom+r],[n.left,n.top-r],[n.right,n.top-r]];case"right":return[[s-r,a-r],[s-r,a+r],[n.left,n.bottom+r],[n.right,n.bottom+r],[n.right,n.top-r],[n.left,n.top-r]]}}#r(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}class re{#n;#i;#t=null;constructor(t,n){this.#i=t,this.#n=n,this.stop=this.stop.bind(this),this.start=this.start.bind(this),gn(this.stop)}#e(){this.#t!==null&&(window.clearTimeout(this.#t),this.#t=null)}stop(){this.#e()}start(...t){this.#e(),this.#t=window.setTimeout(()=>{this.#t=null,this.#i(...t)},this.#n)}}const $e=On({component:"tooltip",parts:["content","trigger"]}),tn=new It("Tooltip.Provider"),pe=new It("Tooltip.Root");class en{static create(t){return tn.set(new en(t))}opts;#n=H(!0);get isOpenDelayed(){return u(this.#n)}set isOpenDelayed(t){C(this.#n,t,!0)}isPointerInTransit=it(!1);#i;#t=H(null);constructor(t){this.opts=t,this.#i=new re(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current)}#e=()=>{this.opts.skipDelayDuration.current!==0&&this.#i.start()};#o=()=>{this.#i.stop()};onOpen=t=>{u(this.#t)&&u(this.#t)!==t&&u(this.#t).handleClose(),this.#o(),this.isOpenDelayed=!1,C(this.#t,t,!0)};onClose=t=>{u(this.#t)===t&&C(this.#t,null),this.#e()};isTooltipOpen=t=>u(this.#t)===t}class we{static create(t){return pe.set(new we(t,tn.get()))}opts;provider;#n=b(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return u(this.#n)}set delayDuration(t){C(this.#n,t)}#i=b(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return u(this.#i)}set disableHoverableContent(t){C(this.#i,t)}#t=b(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return u(this.#t)}set disableCloseOnTriggerClick(t){C(this.#t,t)}#e=b(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return u(this.#e)}set disabled(t){C(this.#e,t)}#o=b(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return u(this.#o)}set ignoreNonKeyboardFocus(t){C(this.#o,t)}#l=H(null);get contentNode(){return u(this.#l)}set contentNode(t){C(this.#l,t,!0)}contentPresence;#a=H(null);get triggerNode(){return u(this.#a)}set triggerNode(t){C(this.#a,t,!0)}#r=H(!1);#s;#c=b(()=>this.opts.open.current?u(this.#r)?"delayed-open":"instant-open":"closed");get stateAttr(){return u(this.#c)}set stateAttr(t){C(this.#c,t)}constructor(t,n){this.opts=t,this.provider=n,this.#s=new re(()=>{C(this.#r,!0),this.opts.open.current=!0},this.delayDuration??0),this.contentPresence=new wn({open:this.opts.open,ref:S(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Mt(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#s=new re(()=>{C(this.#r,!0),this.opts.open.current=!0},this.delayDuration))}),Mt(()=>this.opts.open.current,i=>{i?this.provider.onOpen(this):this.provider.onClose(this)},{lazy:!0})}handleOpen=()=>{this.#s.stop(),C(this.#r,!1),this.opts.open.current=!0};handleClose=()=>{this.#s.stop(),this.opts.open.current=!1};#d=()=>{this.#s.stop();const t=!this.provider.isOpenDelayed,n=this.delayDuration??0;t||n===0?(C(this.#r,n>0&&t,!0),this.opts.open.current=!0):this.#s.start()};onTriggerEnter=()=>{this.#d()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#s.stop()}}class ve{static create(t){return new ve(t,pe.get())}opts;root;attachment;#n=it(!1);#i=H(!1);#t=b(()=>this.opts.disabled.current||this.root.disabled);domContext;#e=null;constructor(t,n){this.opts=t,this.root=n,this.domContext=new mn(t.ref),this.attachment=_t(this.opts.ref,i=>this.root.triggerNode=i)}#o=()=>{this.#e!==null&&(clearTimeout(this.#e),this.#e=null)};handlePointerUp=()=>{this.#n.current=!1};#l=()=>{u(this.#t)||(this.#n.current=!1)};#a=()=>{u(this.#t)||(this.#n.current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))};#r=t=>{if(!u(this.#t)&&t.pointerType!=="touch"){if(this.root.provider.isPointerInTransit.current){this.#o(),this.#e=window.setTimeout(()=>{this.root.provider.isPointerInTransit.current&&(this.root.provider.isPointerInTransit.current=!1,this.root.onTriggerEnter(),C(this.#i,!0))},250);return}this.root.onTriggerEnter(),C(this.#i,!0)}};#s=t=>{u(this.#t)||t.pointerType!=="touch"&&(u(this.#i)||(this.#o(),this.root.provider.isPointerInTransit.current=!1,this.root.onTriggerEnter(),C(this.#i,!0)))};#c=()=>{u(this.#t)||(this.#o(),this.root.onTriggerLeave(),C(this.#i,!1))};#d=t=>{this.#n.current||u(this.#t)||this.root.ignoreNonKeyboardFocus&&!pn(t.currentTarget)||this.root.handleOpen()};#f=()=>{u(this.#t)||this.root.handleClose()};#h=()=>{this.root.disableCloseOnTriggerClick||u(this.#t)||this.root.handleClose()};#u=b(()=>({id:this.opts.id.current,"aria-describedby":this.root.opts.open.current?this.root.contentNode?.id:void 0,"data-state":this.root.stateAttr,"data-disabled":He(u(this.#t)),"data-delay-duration":`${this.root.delayDuration}`,[$e.trigger]:"",tabindex:u(this.#t)?void 0:0,disabled:this.opts.disabled.current,onpointerup:this.#l,onpointerdown:this.#a,onpointerenter:this.#r,onpointermove:this.#s,onpointerleave:this.#c,onfocus:this.#d,onblur:this.#f,onclick:this.#h,...this.attachment}));get props(){return u(this.#u)}set props(t){C(this.#u,t)}}class ye{static create(t){return new ye(t,pe.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=_t(this.opts.ref,i=>this.root.contentNode=i),new Ui({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}}),Dn(()=>Ot(window,"scroll",i=>{const o=i.target;o&&o.contains(this.root.triggerNode)&&this.root.handleClose()}))}onInteractOutside=t=>{if(te(t.target)&&this.root.triggerNode?.contains(t.target)&&this.root.disableCloseOnTriggerClick){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current?.(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#n=b(()=>({open:this.root.opts.open.current}));get snippetProps(){return u(this.#n)}set snippetProps(t){C(this.#n,t)}#i=b(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":He(this.root.disabled),style:{outline:"none"},[$e.content]:"",...this.attachment}));get props(){return u(this.#i)}set props(t){C(this.#i,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}function ji(e,t){Y(t,!0);let n=w(t,"open",15,!1),i=w(t,"onOpenChange",3,Ht),o=w(t,"onOpenChangeComplete",3,Ht);we.create({open:S(()=>n(),r=>{n(r),i()(r)}),delayDuration:S(()=>t.delayDuration),disableCloseOnTriggerClick:S(()=>t.disableCloseOnTriggerClick),disableHoverableContent:S(()=>t.disableHoverableContent),ignoreNonKeyboardFocus:S(()=>t.ignoreNonKeyboardFocus),disabled:S(()=>t.disabled),onOpenChangeComplete:S(()=>o())}),Mi(e,{tooltip:!0,children:(r,s)=>{var a=B(),l=_(a);K(l,()=>t.children??tt),T(r,a)},$$slots:{default:!0}}),R()}var qi=bt("<div><div><!></div></div>"),Zi=bt("<div><div><!></div></div>");function Ji(e,t){const n=Le();Y(t,!0);let i=w(t,"id",19,()=>ze(n)),o=w(t,"ref",15,null),r=w(t,"side",3,"top"),s=w(t,"sideOffset",3,0),a=w(t,"align",3,"center"),l=w(t,"avoidCollisions",3,!0),d=w(t,"arrowPadding",3,0),f=w(t,"sticky",3,"partial"),c=w(t,"hideWhenDetached",3,!1),h=w(t,"collisionPadding",3,0),g=w(t,"onInteractOutside",3,Ht),p=w(t,"onEscapeKeydown",3,Ht),y=w(t,"forceMount",3,!1),v=J(t,["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount"]);const m=ye.create({id:S(()=>i()),ref:S(()=>o(),F=>o(F)),onInteractOutside:S(()=>g()),onEscapeKeydown:S(()=>p())}),x=b(()=>({side:r(),sideOffset:s(),align:a(),avoidCollisions:l(),arrowPadding:d(),sticky:f(),hideWhenDetached:c(),collisionPadding:h(),strategy:t.strategy})),O=b(()=>ft(v,u(x),m.props));var P=B(),A=_(P);{var E=F=>{{const z=(V,k)=>{let X=()=>k?.().props,M=()=>k?.().wrapperProps;const U=b(()=>ft(X(),{style:ke("tooltip")}));var W=B(),N=_(W);{var I=G=>{var lt=B(),mt=_(lt);{let Ft=b(()=>({props:u(U),wrapperProps:M(),...m.snippetProps}));K(mt,()=>t.child,()=>u(Ft))}T(G,lt)},j=G=>{var lt=qi();vt(lt,()=>({...M()}));var mt=Pt(lt);vt(mt,()=>({...u(U)}));var Ft=Pt(mt);K(Ft,()=>t.children??tt),Ct(mt),Ct(lt),T(G,lt)};$(N,G=>{t.child?G(I):G(j,!1)})}T(V,W)};let L=b(()=>m.root.disableHoverableContent?"none":"auto");Yi(F,Q(()=>u(O),()=>m.popperProps,{get enabled(){return m.root.opts.open.current},get id(){return i()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return m.opts.ref},tooltip:!0,get shouldRender(){return m.shouldRender},get contentPointerEvents(){return u(L)},popper:z,$$slots:{popper:!0}}))}},D=F=>{var z=B(),L=_(z);{var V=k=>{{const X=(U,W)=>{let N=()=>W?.().props,I=()=>W?.().wrapperProps;const j=b(()=>ft(N(),{style:ke("tooltip")}));var G=B(),lt=_(G);{var mt=xt=>{var pt=B(),Et=_(pt);{let Qt=b(()=>({props:u(j),wrapperProps:I(),...m.snippetProps}));K(Et,()=>t.child,()=>u(Qt))}T(xt,pt)},Ft=xt=>{var pt=Zi();vt(pt,()=>({...I()}));var Et=Pt(pt);vt(Et,()=>({...u(j)}));var Qt=Pt(Et);K(Qt,()=>t.children??tt),Ct(Et),Ct(pt),T(xt,pt)};$(lt,xt=>{t.child?xt(mt):xt(Ft,!1)})}T(U,G)};let M=b(()=>m.root.disableHoverableContent?"none":"auto");Xi(k,Q(()=>u(O),()=>m.popperProps,{get open(){return m.root.opts.open.current},get id(){return i()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return m.opts.ref},tooltip:!0,get shouldRender(){return m.shouldRender},get contentPointerEvents(){return u(M)},popper:X,$$slots:{popper:!0}}))}};$(L,k=>{y()||k(V)},!0)}T(F,z)};$(A,F=>{y()?F(E):F(D,!1)})}T(e,P),R()}var Qi=bt("<button><!></button>");function Gi(e,t){const n=Le();Y(t,!0);let i=w(t,"id",19,()=>ze(n)),o=w(t,"disabled",3,!1),r=w(t,"type",3,"button"),s=w(t,"ref",15,null),a=J(t,["$$slots","$$events","$$legacy","children","child","id","disabled","type","ref"]);const l=ve.create({id:S(()=>i()),disabled:S(()=>o()??!1),ref:S(()=>s(),f=>s(f))}),d=b(()=>ft(a,l.props,{type:r()}));ki(e,{get id(){return i()},get ref(){return l.opts.ref},tooltip:!0,children:(f,c)=>{var h=B(),g=_(h);{var p=v=>{var m=B(),x=_(m);K(x,()=>t.child,()=>({props:u(d)})),T(v,m)},y=v=>{var m=Qi();vt(m,()=>({...u(d)}));var x=Pt(m);K(x,()=>t.children??tt),Ct(m),T(v,m)};$(g,v=>{t.child?v(p):v(y,!1)})}T(f,h)},$$slots:{default:!0}}),R()}function $i(e,t){Y(t,!0);let n=w(t,"ref",15,null),i=J(t,["$$slots","$$events","$$legacy","ref"]);Ni(e,Q(()=>i,{get ref(){return n()},set ref(o){n(o)}})),R()}function ho(e,t){Y(t,!0);let n=w(t,"open",15,!1),i=J(t,["$$slots","$$events","$$legacy","open"]);var o=B(),r=_(o);Bt(r,()=>ji,(s,a)=>{a(s,Q(()=>i,{get open(){return n()},set open(l){n(l)}}))}),T(e,o),R()}function go(e,t){Y(t,!0);let n=w(t,"ref",15,null),i=J(t,["$$slots","$$events","$$legacy","ref"]);var o=B(),r=_(o);Bt(r,()=>Gi,(s,a)=>{a(s,Q({"data-slot":"tooltip-trigger"},()=>i,{get ref(){return n()},set ref(l){n(l)}}))}),T(e,o),R()}function to(e,t){let n=J(t,["$$slots","$$events","$$legacy"]);var i=B(),o=_(i);Bt(o,()=>vn,(r,s)=>{s(r,Q(()=>n))}),T(e,i)}var eo=bt("<div></div>"),no=bt("<!> <!>",1);function mo(e,t){Y(t,!0);let n=w(t,"ref",15,null),i=w(t,"sideOffset",3,0),o=w(t,"side",3,"top"),r=J(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","side","children","arrowClasses","portalProps"]);to(e,Q(()=>t.portalProps,{children:(s,a)=>{var l=B(),d=_(l);{let f=b(()=>xe("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--bits-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t.class));Bt(d,()=>Ji,(c,h)=>{h(c,Q({"data-slot":"tooltip-content",get sideOffset(){return i()},get side(){return o()},get class(){return u(f)}},()=>r,{get ref(){return n()},set ref(g){n(g)},children:(g,p)=>{var y=no(),v=_(y);K(v,()=>t.children??tt);var m=Ne(v,2);{const x=(O,P)=>{let A=()=>P?.().props;var E=eo();vt(E,D=>({class:D,...A()}),[()=>xe("bg-foreground z-50 size-2.5 rotate-45 rounded-[2px]","data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_2px)]","data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(-50%_+_1px)]","data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2","data-[side=left]:-translate-y-[calc(50%_-_3px)]",t.arrowClasses)]),T(O,E)};Bt(m,()=>$i,(O,P)=>{P(O,{child:x,$$slots:{child:!0}})})}T(g,y)},$$slots:{default:!0}}))})}T(s,l)},$$slots:{default:!0}})),R()}export{Mi as F,Yi as P,go as T,mo as a,ho as b,Xi as c,ki as d,en as e,ke as g,Dn as o};
@@ -0,0 +1 @@
1
+ import{f as l,a as n}from"./DvA-KON-.js";import{p as d,c as f,i as c,r as m,a as p}from"./D3vxvonu.js";import{l as v,m as h,k as u}from"./DQA8NZIH.js";import{p as _,r as b,b as g}from"./BysXJlZb.js";var C=l("<div><!></div>");function j(e,a){d(a,!0);let r=_(a,"ref",15,null),o=b(a,["$$slots","$$events","$$legacy","ref","class","children"]);var s=C();v(s,t=>({"data-slot":"card-title",class:t,...o}),[()=>h("leading-none font-semibold",a.class)]);var i=f(s);u(i,()=>a.children??c),m(s),g(s,t=>r(t),()=>r()),n(e,s),p()}export{j as C};
@@ -0,0 +1 @@
1
+ import{f as n,a as c}from"./DvA-KON-.js";import{p as l,c as p,i as d,r as f,a as m}from"./D3vxvonu.js";import{l as v,m as h,k as u}from"./DQA8NZIH.js";import{p as _,r as b,b as x}from"./BysXJlZb.js";var C=n("<div><!></div>");function j(e,a){l(a,!0);let t=_(a,"ref",15,null),o=b(a,["$$slots","$$events","$$legacy","ref","class","children"]);var s=C();v(s,r=>({"data-slot":"card-content",class:r,...o}),[()=>h("px-6",a.class)]);var i=p(s);u(i,()=>a.children??d),f(s),x(s,r=>t(r),()=>t()),c(e,s),m()}export{j as C};
@@ -0,0 +1,2 @@
1
+ import{c as l,a as p}from"./DvA-KON-.js";import{p as f,f as d,i as m,a as u}from"./D3vxvonu.js";import{k as h}from"./DQA8NZIH.js";import{s as $,r as g}from"./BysXJlZb.js";import{I as v}from"./B5wTVqxm.js";function M(){return{buffer:"",lines:[]}}function T(n,e){const r=(n.buffer+e).split(`
2
+ `),o=r.pop()??"",c=[];for(const s of r){const i=s.trim();i.length>0&&c.push(i)}const t=[...n.lines,...c].slice(-3);return{buffer:o,lines:t}}function k(n,e){f(e,!0);let a=g(e,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]];v(n,$({name:"triangle-alert"},()=>a,{get iconNode(){return r},children:(o,c)=>{var t=l(),s=d(t);h(s,()=>e.children??m),p(o,t)},$$slots:{default:!0}})),u()}function B(n,e){f(e,!0);let a=g(e,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"M4.929 4.929 19.07 19.071"}],["circle",{cx:"12",cy:"12",r:"10"}]];v(n,$({name:"ban"},()=>a,{get iconNode(){return r},children:(o,c)=>{var t=l(),s=d(t);h(s,()=>e.children??m),p(o,t)},$$slots:{default:!0}})),u()}export{B,k as T,M as c,T as p};
@@ -0,0 +1 @@
1
+ import{c as _,a as d,f as b}from"./DvA-KON-.js";import{p,f,a as h,g as x,h as y,c as M,i as q,r as N,s as j,n as O}from"./D3vxvonu.js";import{c}from"./DAx07bEQ.js";import{p as u,s as v,r as m,b as Q,i as R}from"./BysXJlZb.js";import{D as S,P as T,d as U,a as V,c as W,b as Y,e as Z}from"./BMuCqDX8.js";import{m as $,l as ee,k as A}from"./DQA8NZIH.js";import{X as te}from"./DAh4Wfku.js";function pe(r,e){p(e,!0);let a=u(e,"open",15,!1),s=m(e,["$$slots","$$events","$$legacy","open"]);var t=_(),n=f(t);c(n,()=>S,(o,l)=>{l(o,v(()=>s,{get open(){return a()},set open(i){a(i)}}))}),d(r,t),h()}function ae(r,e){let a=m(e,["$$slots","$$events","$$legacy"]);var s=_(),t=f(s);c(t,()=>T,(n,o)=>{o(n,v(()=>a))}),d(r,s)}function he(r,e){p(e,!0);let a=u(e,"ref",15,null),s=m(e,["$$slots","$$events","$$legacy","ref","class"]);var t=_(),n=f(t);{let o=y(()=>$("text-lg leading-none font-semibold",e.class));c(n,()=>U,(l,i)=>{i(l,v({"data-slot":"dialog-title",get class(){return x(o)}},()=>s,{get ref(){return a()},set ref(g){a(g)}}))})}d(r,t),h()}var se=b("<div><!></div>");function $e(r,e){p(e,!0);let a=u(e,"ref",15,null),s=m(e,["$$slots","$$events","$$legacy","ref","class","children"]);var t=se();ee(t,o=>({"data-slot":"dialog-header",class:o,...s}),[()=>$("flex flex-col gap-2 text-center sm:text-start",e.class)]);var n=M(t);A(n,()=>e.children??q),N(t),Q(t,o=>a(o),()=>a()),d(r,t),h()}function oe(r,e){p(e,!0);let a=u(e,"ref",15,null),s=m(e,["$$slots","$$events","$$legacy","ref","class"]);var t=_(),n=f(t);{let o=y(()=>$("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e.class));c(n,()=>V,(l,i)=>{i(l,v({"data-slot":"dialog-overlay",get class(){return x(o)}},()=>s,{get ref(){return a()},set ref(g){a(g)}}))})}d(r,t),h()}var re=b('<!> <span class="sr-only">Close</span>',1),ne=b("<!> <!>",1),le=b("<!> <!>",1);function be(r,e){p(e,!0);let a=u(e,"ref",15,null),s=u(e,"showCloseButton",3,!0),t=m(e,["$$slots","$$events","$$legacy","ref","class","portalProps","children","showCloseButton"]);ae(r,v(()=>e.portalProps,{children:(n,o)=>{var l=le(),i=f(l);c(i,()=>oe,(D,P)=>{P(D,{})});var g=j(i,2);{let D=y(()=>$("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e.class));c(g,()=>W,(P,E)=>{E(P,v({"data-slot":"dialog-content",get class(){return x(D)}},()=>t,{get ref(){return a()},set ref(w){a(w)},children:(w,ie)=>{var z=ne(),C=f(z);A(C,()=>e.children??q);var F=j(C,2);{var G=k=>{var B=_(),H=f(B);c(H,()=>Y,(I,J)=>{J(I,{class:"ring-offset-background focus:ring-ring absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:(K,de)=>{var X=re(),L=f(X);te(L,{}),O(2),d(K,X)},$$slots:{default:!0}})}),d(k,B)};R(F,k=>{s()&&k(G)})}d(w,z)},$$slots:{default:!0}}))})}d(n,l)},$$slots:{default:!0}})),h()}function xe(r,e){p(e,!0);let a=u(e,"ref",15,null),s=m(e,["$$slots","$$events","$$legacy","ref","class"]);var t=_(),n=f(t);{let o=y(()=>$("text-muted-foreground text-sm",e.class));c(n,()=>Z,(l,i)=>{i(l,v({"data-slot":"dialog-description",get class(){return x(o)}},()=>s,{get ref(){return a()},set ref(g){a(g)}}))})}d(r,t),h()}export{pe as D,be as a,$e as b,he as c,xe as d};
@@ -0,0 +1 @@
1
+ import{c,a as n}from"./DvA-KON-.js";import{p as i,f as m,i as l,a as d}from"./D3vxvonu.js";import{k as f}from"./DQA8NZIH.js";import{s as u,r as $}from"./BysXJlZb.js";import{I as h}from"./B5wTVqxm.js";function C(s,o){i(o,!0);let t=$(o,["$$slots","$$events","$$legacy"]);const e=[["path",{d:"M12 6v6l4 2"}],["circle",{cx:"12",cy:"12",r:"10"}]];h(s,u({name:"clock"},()=>t,{get iconNode(){return e},children:(a,v)=>{var r=c(),p=m(r);f(p,()=>o.children??l),n(a,r)},$$slots:{default:!0}})),d()}export{C};
@@ -0,0 +1 @@
1
+ import{al as f,am as E,U as c,an as h,ao as T,ab as v,o as i,W as n,ap as g,y as m,aq as w,ar as N,a1 as y}from"./D3vxvonu.js";function p(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function a(e,t){var r=v;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function O(e,t){var r=(t&h)!==0,l=(t&T)!==0,o,u=!e.startsWith("<!>");return()=>{if(i)return a(n,null),n;o===void 0&&(o=p(u?e:"<!>"+e),r||(o=f(o)));var s=l||E?document.importNode(o,!0):o.cloneNode(!0);if(r){var _=f(s),d=s.lastChild;a(_,d)}else a(s,s);return s}}function x(e,t,r="svg"){var l=!e.startsWith("<!>"),o=`<${r}>${l?e:"<!>"+e}</${r}>`,u;return()=>{if(i)return a(n,null),n;if(!u){var s=p(o),_=f(s);u=f(_)}var d=u.cloneNode(!0);return a(d,d),d}}function b(e,t){return x(e,t,"svg")}function A(e=""){if(!i){var t=c(e+"");return a(t,t),t}var r=n;return r.nodeType!==N&&(r.before(r=c()),y(r)),a(r,r),r}function $(){if(i)return a(n,null),n;var e=document.createDocumentFragment(),t=document.createComment(""),r=c();return e.append(t,r),a(t,r),e}function D(e,t){if(i){var r=v;((r.f&g)===0||r.nodes.end===null)&&(r.nodes.end=n),m();return}e!==null&&e.before(t)}function F(){if(i&&n&&n.nodeType===w&&n.textContent?.startsWith("$")){const e=n.textContent.substring(1);return m(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}const C="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(C);export{D as a,b,$ as c,a as d,p as e,O as f,F as p,A as t};
@@ -1 +1 @@
1
- import{c as i,a as n}from"./DzVXElzN.js";import"./B_Cvvtc4.js";import{f as p}from"./B1IR5Su5.js";import{I as l,s as m}from"./q1nIWgqB.js";import{l as d,s as f}from"./sTLbk5Nm.js";function y(s,r){const t=d(r,["children","$$slots","$$events","$$legacy"]);const e=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]];l(s,f({name:"circle-question-mark"},()=>t,{get iconNode(){return e},children:(a,$)=>{var o=i(),c=p(o);m(c,r,"default",{}),n(a,o)},$$slots:{default:!0}}))}export{y as C};
1
+ import{c as i,a as n}from"./DvA-KON-.js";import"./BUZujXJ2.js";import{f as p}from"./D3vxvonu.js";import{I as l,s as m}from"./BHtYorjv.js";import{l as d,s as f}from"./BysXJlZb.js";function y(s,r){const t=d(r,["children","$$slots","$$events","$$legacy"]);const e=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]];l(s,f({name:"circle-question-mark"},()=>t,{get iconNode(){return e},children:(a,$)=>{var o=i(),c=p(o);m(c,r,"default",{}),n(a,o)},$$slots:{default:!0}}))}export{y as C};