@kynetic-ai/spec 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/acp/client.d.ts +13 -1
- package/dist/acp/client.d.ts.map +1 -1
- package/dist/acp/client.js +17 -2
- package/dist/acp/client.js.map +1 -1
- package/dist/acp/framing.d.ts +12 -1
- package/dist/acp/framing.d.ts.map +1 -1
- package/dist/acp/framing.js +27 -4
- package/dist/acp/framing.js.map +1 -1
- package/dist/agent-runtime/dispatch.d.ts +261 -0
- package/dist/agent-runtime/dispatch.d.ts.map +1 -0
- package/dist/agent-runtime/dispatch.js +791 -0
- package/dist/agent-runtime/dispatch.js.map +1 -0
- package/dist/agent-runtime/index.d.ts +11 -0
- package/dist/agent-runtime/index.d.ts.map +1 -0
- package/dist/agent-runtime/index.js +11 -0
- package/dist/agent-runtime/index.js.map +1 -0
- package/dist/agent-runtime/invocation.d.ts +86 -0
- package/dist/agent-runtime/invocation.d.ts.map +1 -0
- package/dist/agent-runtime/invocation.js +442 -0
- package/dist/agent-runtime/invocation.js.map +1 -0
- package/dist/agent-runtime/prompts.d.ts +50 -0
- package/dist/agent-runtime/prompts.d.ts.map +1 -0
- package/dist/agent-runtime/prompts.js +108 -0
- package/dist/agent-runtime/prompts.js.map +1 -0
- package/dist/agents/spawner.d.ts.map +1 -1
- package/dist/agents/spawner.js +60 -4
- package/dist/agents/spawner.js.map +1 -1
- package/dist/cli/batch-exec.d.ts.map +1 -1
- package/dist/cli/batch-exec.js +183 -81
- package/dist/cli/batch-exec.js.map +1 -1
- package/dist/cli/batch-write-buffer.d.ts +141 -0
- package/dist/cli/batch-write-buffer.d.ts.map +1 -0
- package/dist/cli/batch-write-buffer.js +400 -0
- package/dist/cli/batch-write-buffer.js.map +1 -0
- package/dist/cli/commands/agent.d.ts +20 -0
- package/dist/cli/commands/agent.d.ts.map +1 -0
- package/dist/cli/commands/agent.js +831 -0
- package/dist/cli/commands/agent.js.map +1 -0
- package/dist/cli/commands/agents.d.ts +1 -1
- package/dist/cli/commands/agents.d.ts.map +1 -1
- package/dist/cli/commands/agents.js +2 -1
- package/dist/cli/commands/agents.js.map +1 -1
- package/dist/cli/commands/batch.js +1 -1
- package/dist/cli/commands/batch.js.map +1 -1
- package/dist/cli/commands/inbox.d.ts.map +1 -1
- package/dist/cli/commands/inbox.js +46 -22
- package/dist/cli/commands/inbox.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -0
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +1 -0
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +4 -6
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/item.d.ts.map +1 -1
- package/dist/cli/commands/item.js +34 -17
- package/dist/cli/commands/item.js.map +1 -1
- package/dist/cli/commands/log.js +1 -1
- package/dist/cli/commands/log.js.map +1 -1
- package/dist/cli/commands/merge-driver.d.ts.map +1 -1
- package/dist/cli/commands/merge-driver.js +8 -3
- package/dist/cli/commands/merge-driver.js.map +1 -1
- package/dist/cli/commands/meta.d.ts.map +1 -1
- package/dist/cli/commands/meta.js +159 -6
- package/dist/cli/commands/meta.js.map +1 -1
- package/dist/cli/commands/module.d.ts.map +1 -1
- package/dist/cli/commands/module.js +2 -1
- package/dist/cli/commands/module.js.map +1 -1
- package/dist/cli/commands/plan-import.js +19 -3
- package/dist/cli/commands/plan-import.js.map +1 -1
- package/dist/cli/commands/plan.d.ts.map +1 -1
- package/dist/cli/commands/plan.js +87 -43
- package/dist/cli/commands/plan.js.map +1 -1
- package/dist/cli/commands/ralph.d.ts +5 -51
- package/dist/cli/commands/ralph.d.ts.map +1 -1
- package/dist/cli/commands/ralph.js +52 -1462
- package/dist/cli/commands/ralph.js.map +1 -1
- package/dist/cli/commands/search.d.ts.map +1 -1
- package/dist/cli/commands/search.js +22 -13
- package/dist/cli/commands/search.js.map +1 -1
- package/dist/cli/commands/serve.d.ts.map +1 -1
- package/dist/cli/commands/serve.js +70 -11
- package/dist/cli/commands/serve.js.map +1 -1
- package/dist/cli/commands/session/checkpoint.d.ts.map +1 -1
- package/dist/cli/commands/session/checkpoint.js +7 -2
- package/dist/cli/commands/session/checkpoint.js.map +1 -1
- package/dist/cli/commands/session/commands.d.ts.map +1 -1
- package/dist/cli/commands/session/commands.js +15 -0
- package/dist/cli/commands/session/commands.js.map +1 -1
- package/dist/cli/commands/session/context.d.ts.map +1 -1
- package/dist/cli/commands/session/context.js +10 -5
- package/dist/cli/commands/session/context.js.map +1 -1
- package/dist/cli/commands/session/log.d.ts +1 -0
- package/dist/cli/commands/session/log.d.ts.map +1 -1
- package/dist/cli/commands/session/log.js +124 -8
- package/dist/cli/commands/session/log.js.map +1 -1
- package/dist/cli/commands/session/stale-close.d.ts +17 -0
- package/dist/cli/commands/session/stale-close.d.ts.map +1 -0
- package/dist/cli/commands/session/stale-close.js +378 -0
- package/dist/cli/commands/session/stale-close.js.map +1 -0
- package/dist/cli/commands/setup.d.ts +4 -0
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +150 -6
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/commands/skill-crud.d.ts.map +1 -1
- package/dist/cli/commands/skill-crud.js +4 -3
- package/dist/cli/commands/skill-crud.js.map +1 -1
- package/dist/cli/commands/skill-diff.d.ts.map +1 -1
- package/dist/cli/commands/skill-diff.js +15 -0
- package/dist/cli/commands/skill-diff.js.map +1 -1
- package/dist/cli/commands/skill-install.d.ts.map +1 -1
- package/dist/cli/commands/skill-install.js +50 -18
- package/dist/cli/commands/skill-install.js.map +1 -1
- package/dist/cli/commands/task.d.ts.map +1 -1
- package/dist/cli/commands/task.js +552 -323
- package/dist/cli/commands/task.js.map +1 -1
- package/dist/cli/commands/tasks.js +1 -1
- package/dist/cli/commands/tasks.js.map +1 -1
- package/dist/cli/commands/triage.d.ts.map +1 -1
- package/dist/cli/commands/triage.js +37 -13
- package/dist/cli/commands/triage.js.map +1 -1
- package/dist/cli/commands/validate.d.ts.map +1 -1
- package/dist/cli/commands/validate.js +99 -50
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/help/content.d.ts.map +1 -1
- package/dist/cli/help/content.js +5 -0
- package/dist/cli/help/content.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +5 -1
- package/dist/cli/output.js.map +1 -1
- package/dist/cli/validators.d.ts +4 -0
- package/dist/cli/validators.d.ts.map +1 -1
- package/dist/cli/validators.js +12 -0
- package/dist/cli/validators.js.map +1 -1
- package/dist/daemon/project-context.ts +22 -0
- package/dist/daemon/routes/agent-dispatch.ts +272 -0
- package/dist/daemon/server.ts +55 -20
- package/dist/daemon/websocket/handler.ts +67 -6
- package/dist/daemon/websocket/lifecycle.ts +19 -0
- package/dist/daemon/websocket/pubsub.ts +74 -3
- package/dist/export/html.d.ts.map +1 -1
- package/dist/export/html.js +5 -2
- package/dist/export/html.js.map +1 -1
- package/dist/export/triage.d.ts +1 -1
- package/dist/export/triage.d.ts.map +1 -1
- package/dist/export/triage.js +5 -3
- package/dist/export/triage.js.map +1 -1
- package/dist/parser/alignment.d.ts.map +1 -1
- package/dist/parser/alignment.js +6 -3
- package/dist/parser/alignment.js.map +1 -1
- package/dist/parser/assess.js +1 -1
- package/dist/parser/assess.js.map +1 -1
- package/dist/parser/config.d.ts +6 -6
- package/dist/parser/meta.d.ts.map +1 -1
- package/dist/parser/meta.js +9 -8
- package/dist/parser/meta.js.map +1 -1
- package/dist/parser/plan-document.d.ts +12 -12
- package/dist/parser/plans.d.ts +7 -0
- package/dist/parser/plans.d.ts.map +1 -1
- package/dist/parser/plans.js +100 -15
- package/dist/parser/plans.js.map +1 -1
- package/dist/parser/refs.d.ts +5 -0
- package/dist/parser/refs.d.ts.map +1 -1
- package/dist/parser/refs.js +17 -12
- package/dist/parser/refs.js.map +1 -1
- package/dist/parser/shadow.d.ts +1 -1
- package/dist/parser/shadow.d.ts.map +1 -1
- package/dist/parser/shadow.js +241 -76
- package/dist/parser/shadow.js.map +1 -1
- package/dist/parser/skill-render.d.ts.map +1 -1
- package/dist/parser/skill-render.js +6 -3
- package/dist/parser/skill-render.js.map +1 -1
- package/dist/parser/validate.d.ts.map +1 -1
- package/dist/parser/validate.js +70 -108
- package/dist/parser/validate.js.map +1 -1
- package/dist/parser/yaml.d.ts +24 -5
- package/dist/parser/yaml.d.ts.map +1 -1
- package/dist/parser/yaml.js +228 -66
- package/dist/parser/yaml.js.map +1 -1
- package/dist/schema/meta.d.ts +442 -119
- package/dist/schema/meta.d.ts.map +1 -1
- package/dist/schema/meta.js +55 -0
- package/dist/schema/meta.js.map +1 -1
- package/dist/schema/plan.d.ts +22 -22
- package/dist/schema/spec.d.ts +39 -39
- package/dist/schema/task.d.ts +43 -32
- package/dist/schema/task.d.ts.map +1 -1
- package/dist/schema/task.js +5 -0
- package/dist/schema/task.js.map +1 -1
- package/dist/sessions/store.d.ts +112 -0
- package/dist/sessions/store.d.ts.map +1 -1
- package/dist/sessions/store.js +414 -22
- package/dist/sessions/store.js.map +1 -1
- package/dist/sessions/types.d.ts +75 -17
- package/dist/sessions/types.d.ts.map +1 -1
- package/dist/sessions/types.js +51 -1
- package/dist/sessions/types.js.map +1 -1
- package/dist/triage/actions.d.ts +1 -0
- package/dist/triage/actions.d.ts.map +1 -1
- package/dist/triage/actions.js +34 -7
- package/dist/triage/actions.js.map +1 -1
- package/dist/utils/commit.js +1 -1
- package/dist/utils/commit.js.map +1 -1
- package/dist/web-ui/_app/env.js +1 -0
- package/dist/web-ui/_app/immutable/assets/0.BxCxvrZR.css +1 -0
- package/dist/web-ui/_app/immutable/assets/select-trigger.CV-KWLNP.css +1 -0
- package/dist/web-ui/_app/immutable/chunks/B-CZR0q8.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/B1IR5Su5.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/BCkp8Hs8.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/B_Cvvtc4.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/BtFaGGII.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/Bu8JVsCH.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/C87u-CNA.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/CrFkBTYp.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/D1ArdqNb.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/D28BF5MJ.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/D6RtLpzL.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/D7FHSgx2.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/DBXrsxZQ.js +2 -0
- package/dist/web-ui/_app/immutable/chunks/Da_hHMuA.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/Do6LchSF.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/DoNPtcAw.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/DtUbXRZz.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/DyFPRlLl.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/DzAP8lRM.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/DzVXElzN.js +2 -0
- package/dist/web-ui/_app/immutable/chunks/aoPBFken.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/i-XnOIX0.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/laxtrUO3.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/q1nIWgqB.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/sTLbk5Nm.js +1 -0
- package/dist/web-ui/_app/immutable/chunks/vwKgQu5P.js +5 -0
- package/dist/web-ui/_app/immutable/entry/app.BCwMcqnT.js +2 -0
- package/dist/web-ui/_app/immutable/entry/start.wKCQH-tt.js +1 -0
- package/dist/web-ui/_app/immutable/nodes/0.CjGVMG74.js +1 -0
- package/dist/web-ui/_app/immutable/nodes/1.B6_AIPan.js +1 -0
- package/dist/web-ui/_app/immutable/nodes/2.q4oCS7Ws.js +1 -0
- package/dist/web-ui/_app/immutable/nodes/3.rTKZf9o2.js +1 -0
- package/dist/web-ui/_app/immutable/nodes/4.DVIDRu1d.js +1 -0
- package/dist/web-ui/_app/immutable/nodes/5.8PtPXIOd.js +1 -0
- package/dist/web-ui/_app/immutable/nodes/6.ZZrTemy_.js +1 -0
- package/dist/web-ui/_app/immutable/nodes/7.IP-gxCxi.js +1 -0
- package/dist/web-ui/_app/version.json +1 -0
- package/dist/web-ui/index.html +36 -0
- package/dist/web-ui/robots.txt +3 -0
- package/package.json +3 -2
- package/plugin/.claude-plugin/marketplace.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugins/kspec/skills/create-workflow/SKILL.md +1 -1
- package/plugin/plugins/kspec/skills/{observations → observe}/SKILL.md +1 -1
- package/plugin/plugins/kspec/skills/plan/SKILL.md +1 -1
- package/plugin/plugins/kspec/skills/task-work/SKILL.md +26 -3
- package/plugin/plugins/kspec/skills/triage-inbox/SKILL.md +1 -1
- package/plugin/plugins/kspec/skills/writing-specs/SKILL.md +1 -1
- package/templates/agents-sections/01-quick-start.md +1 -0
- package/templates/agents-sections/06-ralph-loop.md +64 -11
- package/templates/skills/create-workflow/SKILL.md +1 -1
- package/templates/skills/manifest.yaml +1 -1
- package/templates/skills/plan/SKILL.md +1 -1
- package/templates/skills/task-work/SKILL.md +26 -3
- package/templates/skills/triage-inbox/SKILL.md +1 -1
- package/templates/skills/writing-specs/SKILL.md +1 -1
- package/dist/ralph/cli-renderer.d.ts +0 -27
- package/dist/ralph/cli-renderer.d.ts.map +0 -1
- package/dist/ralph/cli-renderer.js +0 -250
- package/dist/ralph/cli-renderer.js.map +0 -1
- package/dist/ralph/events.d.ts +0 -65
- package/dist/ralph/events.d.ts.map +0 -1
- package/dist/ralph/events.js +0 -600
- package/dist/ralph/events.js.map +0 -1
- package/dist/ralph/index.d.ts +0 -11
- package/dist/ralph/index.d.ts.map +0 -1
- package/dist/ralph/index.js +0 -16
- package/dist/ralph/index.js.map +0 -1
- package/dist/ralph/loop-errors.d.ts +0 -83
- package/dist/ralph/loop-errors.d.ts.map +0 -1
- package/dist/ralph/loop-errors.js +0 -150
- package/dist/ralph/loop-errors.js.map +0 -1
- package/dist/ralph/subagent.d.ts +0 -96
- package/dist/ralph/subagent.d.ts.map +0 -1
- package/dist/ralph/subagent.js +0 -195
- package/dist/ralph/subagent.js.map +0 -1
- package/dist/ralph/wrap-up.d.ts +0 -127
- package/dist/ralph/wrap-up.d.ts.map +0 -1
- package/dist/ralph/wrap-up.js +0 -271
- package/dist/ralph/wrap-up.js.map +0 -1
- /package/templates/skills/{observations → observe}/SKILL.md +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{O as Oe,w as ot,a_ as Et,W as me,k as j,aG as Mt,x as Ye,g as F,a8 as ur,T as dr,U as pr,V as ut,X as ue,Q as ce,ao as gr,aU as mr,az as dt,i as Re,a$ as re,P as _e,S as hr,aj as pt,a0 as br,aS as st,b0 as It,b1 as vr,b2 as yr,b3 as wr,L as Pt,N as Nt,b4 as Be,Z as Ot,aO as kr,b5 as xr,aR as Sr,M as ze,E as Rt,a3 as jt,b6 as _r,b7 as Cr,aa as Ar,b8 as zt,Y as nt,l as Tr,b9 as Er,ba as Mr,v as Ir,bb as Pr,aZ as Nr,bc as Or,bd as Rr,be as jr,bf as zr,bg as Vr,bh as Lr,bi as Gr,p as $r,f as gt,c as Fr,h as Ur,s as oe,a as Br,b as q,I as Dr}from"./B1IR5Su5.js";import{g as Wr,i as qr,j as Hr,k as Yr,d as Kr,n as Jr,l as Xr,c as mt,a as ht}from"./DzVXElzN.js";import{B as Vt,p as bt,b as Qr,r as Zr}from"./sTLbk5Nm.js";import{b as eo}from"./D6RtLpzL.js";function Us(e,t){return t}function to(e,t,r){for(var o=[],s=t.length,n,a=t.length,l=0;l<s;l++){let v=t[l];Nt(v,()=>{if(n){if(n.pending.delete(v),n.done.add(v),n.pending.size===0){var g=e.outrogroups;Ke(st(n.done)),g.delete(n),g.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var i=o.length===0&&r!==null;if(i){var c=r,f=c.parentNode;Sr(f),f.append(c),e.items.clear()}Ke(t,!i)}else n={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(n)}function Ke(e,t=!0){for(var r=0;r<e.length;r++)ze(e[r],t)}var vt;function Bs(e,t,r,o,s,n=null){var a=e,l=new Map,i=(t&Et)!==0;if(i){var c=e;a=j?me(Mt(c)):c.appendChild(Oe())}j&&Ye();var f=null,v=ur(()=>{var b=r();return It(b)?b:b==null?[]:st(b)}),g,y=!0;function E(){u.fallback=f,ro(u,g,a,t,o),f!==null&&(g.length===0?(f.f&re)===0?Pt(f):(f.f^=re,ke(f,null,a)):Nt(f,()=>{f=null}))}var M=ot(()=>{g=F(v);var b=g.length;let V=!1;if(j){var N=dr(a)===pr;N!==(b===0)&&(a=ut(),me(a),ue(!1),V=!0)}for(var C=new Set,P=Re,k=hr(),w=0;w<b;w+=1){j&&ce.nodeType===gr&&ce.data===mr&&(a=ce,V=!0,ue(!1));var p=g[w],O=o(p,w),S=y?null:l.get(O);S?(S.v&&dt(S.v,p),S.i&&dt(S.i,w),k&&P.skipped_effects.delete(S.e)):(S=oo(l,y?a:vt??=Oe(),p,O,w,s,t,r),y||(S.e.f|=re),l.set(O,S)),C.add(O)}if(b===0&&n&&!f&&(y?f=_e(()=>n(a)):(f=_e(()=>n(vt??=Oe())),f.f|=re)),j&&b>0&&me(ut()),!y)if(k){for(const[Z,Q]of l)C.has(Z)||P.skipped_effects.add(Q.e);P.oncommit(E),P.ondiscard(()=>{})}else E();V&&ue(!0),F(v)}),u={effect:M,items:l,outrogroups:null,fallback:f};y=!1,j&&(a=ce)}function ro(e,t,r,o,s){var n=(o&xr)!==0,a=t.length,l=e.items,i=e.effect.first,c,f=null,v,g=[],y=[],E,M,u,b;if(n)for(b=0;b<a;b+=1)E=t[b],M=s(E,b),u=l.get(M).e,(u.f&re)===0&&(u.nodes?.a?.measure(),(v??=new Set).add(u));for(b=0;b<a;b+=1){if(E=t[b],M=s(E,b),u=l.get(M).e,e.outrogroups!==null)for(const S of e.outrogroups)S.pending.delete(u),S.done.delete(u);if((u.f&re)!==0)if(u.f^=re,u===i)ke(u,null,r);else{var V=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),ne(e,f,u),ne(e,u,V),ke(u,V,r),f=u,g=[],y=[],i=f.next;continue}if((u.f&Be)!==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<y.length){var N=y[0],C;f=N.prev;var P=g[0],k=g[g.length-1];for(C=0;C<g.length;C+=1)ke(g[C],N,r);for(C=0;C<y.length;C+=1)c.delete(y[C]);ne(e,P.prev,k.next),ne(e,f,P),ne(e,k,N),i=N,f=k,b-=1,g=[],y=[]}else c.delete(u),ke(u,i,r),ne(e,u.prev,u.next),ne(e,u,f===null?e.effect.first:f.next),ne(e,f,u),f=u;continue}for(g=[],y=[];i!==null&&i!==u;)(c??=new Set).add(i),y.push(i),i=i.next;if(i===null)continue}(u.f&re)===0&&g.push(u),f=u,i=u.next}if(e.outrogroups!==null){for(const S of e.outrogroups)S.pending.size===0&&(Ke(st(S.done)),e.outrogroups?.delete(S));e.outrogroups.size===0&&(e.outrogroups=null)}if(i!==null||c!==void 0){var w=[];if(c!==void 0)for(u of c)(u.f&Be)===0&&w.push(u);for(;i!==null;)(i.f&Be)===0&&i!==e.fallback&&w.push(i),i=i.next;var p=w.length;if(p>0){var O=(o&Et)!==0&&a===0?r:null;if(n){for(b=0;b<p;b+=1)w[b].nodes?.a?.measure();for(b=0;b<p;b+=1)w[b].nodes?.a?.fix()}to(e,w,O)}}n&&Ot(()=>{if(v!==void 0)for(u of v)u.nodes?.a?.apply()})}function oo(e,t,r,o,s,n,a,l){var i=(a&vr)!==0?(a&yr)===0?br(r,!1,!1):pt(r):null,c=(a&wr)!==0?pt(s):null;return{v:i,i:c,e:_e(()=>(n(t,i??r,c??s,l),()=>{e.delete(o)}))}}function ke(e,t,r){if(e.nodes)for(var o=e.nodes.start,s=e.nodes.end,n=t&&(t.f&re)===0?t.nodes.start:r;o!==null;){var a=kr(o);if(n.before(o),o===s)return;o=a}}function ne(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function so(e,t,...r){var o=new Vt(e);ot(()=>{const s=t()??null;o.ensure(s,s&&(n=>s(n,...r)))},Rt)}function no(e,t,r,o,s,n){let a=j;j&&Ye();var l=null;j&&ce.nodeType===_r&&(l=ce,Ye());var i=j?ce:e,c=new Vt(i,!1);ot(()=>{const f=t()||null;var v=r||f==="svg"?Cr:null;if(f===null){c.ensure(null,null);return}return c.ensure(f,g=>{if(f){if(l=j?l:v?document.createElementNS(v,f):document.createElement(f),Wr(l,l),o){j&&qr(f)&&l.append(document.createComment(""));var y=j?Mt(l):l.appendChild(Oe());j&&(y===null?ue(!1):me(y)),o(l,y)}Ar.nodes.end=l,g.before(l)}j&&me(g)}),()=>{}},Rt),jt(()=>{}),a&&(ue(!0),me(i))}function ao(e,t){var r=void 0,o;zt(()=>{r!==(r=t())&&(o&&(ze(o),o=null),r&&(o=_e(()=>{nt(()=>r(e))})))})}function Lt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Lt(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Gt(){for(var e,t,r=0,o="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Lt(e))&&(o&&(o+=" "),o+=t);return o}function io(e){return typeof e=="object"?Gt(e):e??""}const yt=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function lo(e,t,r){var o=e==null?"":""+e;if(t&&(o=o?o+" "+t:t),r){for(var s in r)if(r[s])o=o?o+" "+s:s;else if(o.length)for(var n=s.length,a=0;(a=o.indexOf(s,a))>=0;){var l=a+n;(a===0||yt.includes(o[a-1]))&&(l===o.length||yt.includes(o[l]))?o=(a===0?"":o.substring(0,a))+o.substring(l+1):a=l}}return o===""?null:o}function wt(e,t=!1){var r=t?" !important;":";",o="";for(var s in e){var n=e[s];n!=null&&n!==""&&(o+=" "+s+": "+n+r)}return o}function De(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function co(e,t){if(t){var r="",o,s;if(Array.isArray(t)?(o=t[0],s=t[1]):o=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,a=0,l=!1,i=[];o&&i.push(...Object.keys(o).map(De)),s&&i.push(...Object.keys(s).map(De));var c=0,f=-1;const M=e.length;for(var v=0;v<M;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===M-1){if(f!==-1){var y=De(e.substring(c,f).trim());if(!i.includes(y)){g!==";"&&v++;var E=e.substring(c,v).trim();r+=" "+E+";"}}c=v+1,f=-1}}}}return o&&(r+=wt(o)),s&&(r+=wt(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function fo(e,t,r,o,s,n){var a=e.__className;if(j||a!==r||a===void 0){var l=lo(r,o,n);(!j||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=r}else if(n&&s!==n)for(var i in n){var c=!!n[i];(s==null||c!==!!s[i])&&e.classList.toggle(i,c)}return n}function We(e,t={},r,o){for(var s in r){var n=r[s];t[s]!==n&&(r[s]==null?e.style.removeProperty(s):e.style.setProperty(s,n,o))}}function uo(e,t,r,o){var s=e.__style;if(j||s!==t){var n=co(t,o);(!j||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}else o&&(Array.isArray(o)?(We(e,r?.[0],o[0]),We(e,r?.[1],o[1],"important")):We(e,r,o));return o}function Ve(e,t,r=!1){if(e.multiple){if(t==null)return;if(!It(t))return Er();for(var o of e.options)o.selected=t.includes(Se(o));return}for(o of e.options){var s=Se(o);if(Mr(s,t)){o.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function $t(e){var t=new MutationObserver(()=>{Ve(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),jt(()=>{t.disconnect()})}function Ds(e,t,r=t){var o=new WeakSet,s=!0;Tr(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),Re!==null&&o.add(Re)}),nt(()=>{var n=t();if(e===document.activeElement){var a=Ir??Re;if(o.has(a))return}if(Ve(e,n,s),s&&n===void 0){var l=e.querySelector(":checked");l!==null&&(n=Se(l),r(n))}e.__value=n,s=!1}),$t(e)}function Se(e){return"__value"in e?e.__value:e.value}const ve=Symbol("class"),ye=Symbol("style"),Ft=Symbol("is custom element"),Ut=Symbol("is html");function po(e){if(j){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var o=e.value;Le(e,"value",null),e.value=o}if(e.hasAttribute("checked")){var s=e.checked;Le(e,"checked",null),e.checked=s}}};e.__on_r=r,Ot(r),jr()}}function go(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Le(e,t,r,o){var s=Bt(e);j&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Lr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Dt(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function mo(e,t,r,o,s=!1,n=!1){if(j&&s&&e.tagName==="INPUT"){var a=e,l=a.type==="checkbox"?"defaultChecked":"defaultValue";l in r||po(a)}var i=Bt(e),c=i[Ft],f=!i[Ut];let v=j&&c;v&&ue(!1);var g=t||{},y=e.tagName==="OPTION";for(var E in t)E in r||(r[E]=null);r.class?r.class=io(r.class):r[ve]&&(r.class=null),r[ye]&&(r.style??=null);var M=Dt(e);for(const k in r){let w=r[k];if(y&&k==="value"&&w==null){e.value=e.__value="",g[k]=w;continue}if(k==="class"){var u=e.namespaceURI==="http://www.w3.org/1999/xhtml";fo(e,u,w,o,t?.[ve],r[ve]),g[k]=w,g[ve]=r[ve];continue}if(k==="style"){uo(e,w,t?.[ye],r[ye]),g[k]=w,g[ye]=r[ye];continue}var b=g[k];if(!(w===b&&!(w===void 0&&e.hasAttribute(k)))){g[k]=w;var V=k[0]+k[1];if(V!=="$$")if(V==="on"){const p={},O="$$"+k;let S=k.slice(2);var N=Xr(S);if(Hr(S)&&(S=S.slice(0,-7),p.capture=!0),!N&&b){if(w!=null)continue;e.removeEventListener(S,g[O],p),g[O]=null}if(w!=null)if(N)e[`__${S}`]=w,Kr([S]);else{let Z=function(Q){g[k].call(this,Q)};g[O]=Yr(S,e,Z,p)}else N&&(e[`__${S}`]=void 0)}else if(k==="style")Le(e,k,w);else if(k==="autofocus")Or(e,!!w);else if(!c&&(k==="__value"||k==="value"&&w!=null))e.value=e.__value=w;else if(k==="selected"&&y)go(e,w);else{var C=k;f||(C=Jr(C));var P=C==="defaultValue"||C==="defaultChecked";if(w==null&&!c&&!P)if(i[k]=null,C==="value"||C==="checked"){let p=e;const O=t===void 0;if(C==="value"){let S=p.defaultValue;p.removeAttribute(C),p.defaultValue=S,p.value=p.__value=O?S:null}else{let S=p.defaultChecked;p.removeAttribute(C),p.defaultChecked=S,p.checked=O?S:!1}}else e.removeAttribute(k);else P||M.includes(C)&&(c||typeof w!="string")?(e[C]=w,C in i&&(i[C]=Rr)):typeof w!="function"&&Le(e,C,w)}}}return v&&ue(!0),g}function ho(e,t,r=[],o=[],s=[],n,a=!1,l=!1){Pr(s,r,o,i=>{var c=void 0,f={},v=e.nodeName==="SELECT",g=!1;if(zt(()=>{var E=t(...i.map(F)),M=mo(e,c,E,n,a,l);g&&v&&"value"in E&&Ve(e,E.value);for(let b of Object.getOwnPropertySymbols(f))E[b]||ze(f[b]);for(let b of Object.getOwnPropertySymbols(E)){var u=E[b];b.description===Nr&&(!c||u!==c[b])&&(f[b]&&ze(f[b]),f[b]=_e(()=>ao(e,()=>u))),M[b]=u}c=M}),v){var y=e;nt(()=>{Ve(y,c.value,!0),$t(y)})}g=!0})}function Bt(e){return e.__attributes??={[Ft]:e.nodeName.includes("-"),[Ut]:e.namespaceURI===zr}}var kt=new Map;function Dt(e){var t=e.getAttribute("is")||e.nodeName,r=kt.get(t);if(r)return r;kt.set(t,r=[]);for(var o,s=e,n=Element.prototype;n!==s;){o=Gr(s);for(var a in o)o[a].set&&r.push(a);s=Vr(s)}return r}const bo=(e,t)=>{const r=new Array(e.length+t.length);for(let o=0;o<e.length;o++)r[o]=e[o];for(let o=0;o<t.length;o++)r[e.length+o]=t[o];return r},vo=(e,t)=>({classGroupId:e,validator:t}),Wt=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ge="-",xt=[],yo="arbitrary..",wo=e=>{const t=xo(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return ko(a);const l=a.split(Ge),i=l[0]===""&&l.length>1?1:0;return qt(l,i,t)},getConflictingClassGroupIds:(a,l)=>{if(l){const i=o[a],c=r[a];return i?c?bo(c,i):i:c||xt}return r[a]||xt}}},qt=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const s=e[t],n=r.nextPart.get(s);if(n){const c=qt(e,t+1,n);if(c)return c}const a=r.validators;if(a===null)return;const l=t===0?e.join(Ge):e.slice(t).join(Ge),i=a.length;for(let c=0;c<i;c++){const f=a[c];if(f.validator(l))return f.classGroupId}},ko=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),o=t.slice(0,r);return o?yo+o:void 0})(),xo=e=>{const{theme:t,classGroups:r}=e;return So(r,t)},So=(e,t)=>{const r=Wt();for(const o in e){const s=e[o];at(s,r,o,t)}return r},at=(e,t,r,o)=>{const s=e.length;for(let n=0;n<s;n++){const a=e[n];_o(a,t,r,o)}},_o=(e,t,r,o)=>{if(typeof e=="string"){Co(e,t,r);return}if(typeof e=="function"){Ao(e,t,r,o);return}To(e,t,r,o)},Co=(e,t,r)=>{const o=e===""?t:Ht(t,e);o.classGroupId=r},Ao=(e,t,r,o)=>{if(Eo(e)){at(e(o),t,r,o);return}t.validators===null&&(t.validators=[]),t.validators.push(vo(r,e))},To=(e,t,r,o)=>{const s=Object.entries(e),n=s.length;for(let a=0;a<n;a++){const[l,i]=s[a];at(i,Ht(t,l),r,o)}},Ht=(e,t)=>{let r=e;const o=t.split(Ge),s=o.length;for(let n=0;n<s;n++){const a=o[n];let l=r.nextPart.get(a);l||(l=Wt(),r.nextPart.set(a,l)),r=l}return r},Eo=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Mo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null);const s=(n,a)=>{r[n]=a,t++,t>e&&(t=0,o=r,r=Object.create(null))};return{get(n){let a=r[n];if(a!==void 0)return a;if((a=o[n])!==void 0)return s(n,a),a},set(n,a){n in r?r[n]=a:s(n,a)}}},Je="!",St=":",Io=[],_t=(e,t,r,o,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:s}),Po=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=s=>{const n=[];let a=0,l=0,i=0,c;const f=s.length;for(let M=0;M<f;M++){const u=s[M];if(a===0&&l===0){if(u===St){n.push(s.slice(i,M)),i=M+1;continue}if(u==="/"){c=M;continue}}u==="["?a++:u==="]"?a--:u==="("?l++:u===")"&&l--}const v=n.length===0?s:s.slice(i);let g=v,y=!1;v.endsWith(Je)?(g=v.slice(0,-1),y=!0):v.startsWith(Je)&&(g=v.slice(1),y=!0);const E=c&&c>i?c-i:void 0;return _t(n,y,g,E)};if(t){const s=t+St,n=o;o=a=>a.startsWith(s)?n(a.slice(s.length)):_t(Io,!1,a,void 0,!0)}if(r){const s=o;o=n=>r({className:n,parseClassName:s})}return o},No=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{t.set(r,1e6+o)}),r=>{const o=[];let s=[];for(let n=0;n<r.length;n++){const a=r[n],l=a[0]==="[",i=t.has(a);l||i?(s.length>0&&(s.sort(),o.push(...s),s=[]),o.push(a)):s.push(a)}return s.length>0&&(s.sort(),o.push(...s)),o}},Oo=e=>({cache:Mo(e.cacheSize),parseClassName:Po(e),sortModifiers:No(e),...wo(e)}),Ro=/\s+/,jo=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:n}=t,a=[],l=e.trim().split(Ro);let i="";for(let c=l.length-1;c>=0;c-=1){const f=l[c],{isExternal:v,modifiers:g,hasImportantModifier:y,baseClassName:E,maybePostfixModifierPosition:M}=r(f);if(v){i=f+(i.length>0?" "+i:i);continue}let u=!!M,b=o(u?E.substring(0,M):E);if(!b){if(!u){i=f+(i.length>0?" "+i:i);continue}if(b=o(E),!b){i=f+(i.length>0?" "+i:i);continue}u=!1}const V=g.length===0?"":g.length===1?g[0]:n(g).join(":"),N=y?V+Je:V,C=N+b;if(a.indexOf(C)>-1)continue;a.push(C);const P=s(b,u);for(let k=0;k<P.length;++k){const w=P[k];a.push(N+w)}i=f+(i.length>0?" "+i:i)}return i},zo=(...e)=>{let t=0,r,o,s="";for(;t<e.length;)(r=e[t++])&&(o=Yt(r))&&(s&&(s+=" "),s+=o);return s},Yt=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Yt(e[o]))&&(r&&(r+=" "),r+=t);return r},Xe=(e,...t)=>{let r,o,s,n;const a=i=>{const c=t.reduce((f,v)=>v(f),e());return r=Oo(c),o=r.cache.get,s=r.cache.set,n=l,l(i)},l=i=>{const c=o(i);if(c)return c;const f=jo(i,r);return s(i,f),f};return n=a,(...i)=>n(zo(...i))},Vo=[],G=e=>{const t=r=>r[e]||Vo;return t.isThemeGetter=!0,t},Kt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lo=/^\d+\/\d+$/,Go=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$o=/\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$/,Fo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Uo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ge=e=>Lo.test(e),x=e=>!!e&&!Number.isNaN(Number(e)),ae=e=>!!e&&Number.isInteger(Number(e)),qe=e=>e.endsWith("%")&&x(e.slice(0,-1)),ee=e=>Go.test(e),Do=()=>!0,Wo=e=>$o.test(e)&&!Fo.test(e),Xt=()=>!1,qo=e=>Uo.test(e),Ho=e=>Bo.test(e),Yo=e=>!m(e)&&!h(e),Ko=e=>he(e,er,Xt),m=e=>Kt.test(e),le=e=>he(e,tr,Wo),He=e=>he(e,es,x),Ct=e=>he(e,Qt,Xt),Jo=e=>he(e,Zt,Ho),Me=e=>he(e,rr,qo),h=e=>Jt.test(e),we=e=>be(e,tr),Xo=e=>be(e,ts),At=e=>be(e,Qt),Qo=e=>be(e,er),Zo=e=>be(e,Zt),Ie=e=>be(e,rr,!0),he=(e,t,r)=>{const o=Kt.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},be=(e,t,r=!1)=>{const o=Jt.exec(e);return o?o[1]?t(o[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",es=e=>e==="number",ts=e=>e==="family-name",rr=e=>e==="shadow",Qe=()=>{const e=G("color"),t=G("font"),r=G("text"),o=G("font-weight"),s=G("tracking"),n=G("leading"),a=G("breakpoint"),l=G("container"),i=G("spacing"),c=G("radius"),f=G("shadow"),v=G("inset-shadow"),g=G("text-shadow"),y=G("drop-shadow"),E=G("blur"),M=G("perspective"),u=G("aspect"),b=G("ease"),V=G("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...C(),h,m],k=()=>["auto","hidden","clip","visible","scroll"],w=()=>["auto","contain","none"],p=()=>[h,m,i],O=()=>[ge,"full","auto",...p()],S=()=>[ae,"none","subgrid",h,m],Z=()=>["auto",{span:["full",ae,h,m]},ae,h,m],Q=()=>[ae,"auto",h,m],Ce=()=>["auto","min","max","fr",h,m],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...p()],I=()=>[ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],d=()=>[e,h,m],z=()=>[...C(),At,Ct,{position:[h,m]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",Qo,Ko,{size:[h,m]}],W=()=>[qe,we,le],R=()=>["","none","full",c,h,m],L=()=>["",x,we,le],Y=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[x,qe,At,Ct],ft=()=>["","none",E,h,m],Ae=()=>["none",x,h,m],Te=()=>["none",x,h,m],Ue=()=>[x,h,m],Ee=()=>[ge,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ee],breakpoint:[ee],color:[Do],container:[ee],"drop-shadow":[ee],ease:["in","out","in-out"],font:[Yo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ee],shadow:[ee],spacing:["px",x],text:[ee],"text-shadow":[ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ge,m,h,u]}],container:["container"],columns:[{columns:[x,m,h,l]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:P()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:w()}],"overscroll-x":[{"overscroll-x":w()}],"overscroll-y":[{"overscroll-y":w()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[ae,"auto",h,m]}],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",m]}],grow:[{grow:["",x,h,m]}],shrink:[{shrink:["",x,h,m]}],order:[{order:[ae,"first","last","none",h,m]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"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:[...A(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],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:I()}],w:[{w:[l,"screen",...I()]}],"min-w":[{"min-w":[l,"screen","none",...I()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",r,we,le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,h,He]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qe,m]}],"font-family":[{font:[Xo,m,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:[s,h,m]}],"line-clamp":[{"line-clamp":[x,"none",h,He]}],leading:[{leading:[n,...p()]}],"list-image":[{"list-image":["none",h,m]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",h,m]}],"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:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[x,"from-font","auto",h,le]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[x,"auto",h,m]}],"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",h,m]}],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",h,m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ae,h,m],radial:["",h,m],conic:[ae,h,m]},Zo,Jo]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"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:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[x,h,m]}],"outline-w":[{outline:["",x,we,le]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",f,Ie,Me]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",v,Ie,Me]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[x,le]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",g,Ie,Me]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[x,h,m]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"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":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"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":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"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":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"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":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"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":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"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":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[h,m]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"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":C()}],"mask-image-conic-pos":[{"mask-conic":[x]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"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:z()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",h,m]}],filter:[{filter:["","none",h,m]}],blur:[{blur:ft()}],brightness:[{brightness:[x,h,m]}],contrast:[{contrast:[x,h,m]}],"drop-shadow":[{"drop-shadow":["","none",y,Ie,Me]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",x,h,m]}],"hue-rotate":[{"hue-rotate":[x,h,m]}],invert:[{invert:["",x,h,m]}],saturate:[{saturate:[x,h,m]}],sepia:[{sepia:["",x,h,m]}],"backdrop-filter":[{"backdrop-filter":["","none",h,m]}],"backdrop-blur":[{"backdrop-blur":ft()}],"backdrop-brightness":[{"backdrop-brightness":[x,h,m]}],"backdrop-contrast":[{"backdrop-contrast":[x,h,m]}],"backdrop-grayscale":[{"backdrop-grayscale":["",x,h,m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x,h,m]}],"backdrop-invert":[{"backdrop-invert":["",x,h,m]}],"backdrop-opacity":[{"backdrop-opacity":[x,h,m]}],"backdrop-saturate":[{"backdrop-saturate":[x,h,m]}],"backdrop-sepia":[{"backdrop-sepia":["",x,h,m]}],"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",h,m]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[x,"initial",h,m]}],ease:[{ease:["linear","initial",b,h,m]}],delay:[{delay:[x,h,m]}],animate:[{animate:["none",V,h,m]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,h,m]}],"perspective-origin":[{"perspective-origin":P()}],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:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[h,m,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"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",h,m]}],"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",h,m]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[x,we,le,He]}],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"]}},rs=(e,{cacheSize:t,prefix:r,experimentalParseClassName:o,extend:s={},override:n={}})=>(xe(e,"cacheSize",t),xe(e,"prefix",r),xe(e,"experimentalParseClassName",o),Pe(e.theme,n.theme),Pe(e.classGroups,n.classGroups),Pe(e.conflictingClassGroups,n.conflictingClassGroups),Pe(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),xe(e,"orderSensitiveModifiers",n.orderSensitiveModifiers),Ne(e.theme,s.theme),Ne(e.classGroups,s.classGroups),Ne(e.conflictingClassGroups,s.conflictingClassGroups),Ne(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),or(e,s,"orderSensitiveModifiers"),e),xe=(e,t,r)=>{r!==void 0&&(e[t]=r)},Pe=(e,t)=>{if(t)for(const r in t)xe(e,r,t[r])},Ne=(e,t)=>{if(t)for(const r in t)or(e,t,r)},or=(e,t,r)=>{const o=t[r];o!==void 0&&(e[r]=e[r]?e[r].concat(o):o)},os=(e,...t)=>typeof e=="function"?Xe(Qe,e,...t):Xe(()=>rs(Qe(),e),...t),sr=Xe(Qe);function ss(...e){return sr(Gt(e))}var ns=/\s+/g,as=e=>typeof e!="string"||!e?e:e.replace(ns," ").trim(),$e=(...e)=>{const t=[],r=o=>{if(!o&&o!==0&&o!==0n)return;if(Array.isArray(o)){for(let n=0,a=o.length;n<a;n++)r(o[n]);return}const s=typeof o;if(s==="string"||s==="number"||s==="bigint"){if(s==="number"&&o!==o)return;t.push(String(o))}else if(s==="object"){const n=Object.keys(o);for(let a=0,l=n.length;a<l;a++){const i=n[a];o[i]&&t.push(i)}}};for(let o=0,s=e.length;o<s;o++){const n=e[o];n!=null&&r(n)}return t.length>0?as(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},is=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let s=0;s<r.length;s++){const n=r[s];if(!o.includes(n)||e[n]!==t[n])return!1}return!0},ls=(e,t)=>{for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const o=t[r];r in e?e[r]=$e(e[r],o):e[r]=o}return e},nr=(e,t)=>{for(let r=0;r<e.length;r++){const o=e[r];Array.isArray(o)?nr(o,t):o&&t.push(o)}},ar=(...e)=>{const t=[];nr(e,t);const r=[];for(let o=0;o<t.length;o++)t[o]&&r.push(t[o]);return r},Ze=(e,t)=>{const r={};for(const o in e){const s=e[o];if(o in t){const n=t[o];Array.isArray(s)||Array.isArray(n)?r[o]=ar(n,s):typeof s=="object"&&typeof n=="object"&&s&&n?r[o]=Ze(s,n):r[o]=n+" "+s}else r[o]=s}for(const o in t)o in e||(r[o]=t[o]);return r},cs={twMerge:!0,twMergeConfig:{}};function fs(){let e=null,t={},r=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(o){e=o},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(o){t=o},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(o){r=o},reset(){e=null,t={},r=!1}}}var te=fs(),us=e=>{const t=(o,s)=>{const{extend:n=null,slots:a={},variants:l={},compoundVariants:i=[],compoundSlots:c=[],defaultVariants:f={}}=o,v={...cs,...s},g=n?.base?$e(n.base,o?.base):o?.base,y=n?.variants&&!K(n.variants)?Ze(l,n.variants):l,E=n?.defaultVariants&&!K(n.defaultVariants)?{...n.defaultVariants,...f}:f;!K(v.twMergeConfig)&&!is(v.twMergeConfig,te.cachedTwMergeConfig)&&(te.didTwMergeConfigChange=!0,te.cachedTwMergeConfig=v.twMergeConfig);const M=K(n?.slots),u=K(a)?{}:{base:$e(o?.base,M&&n?.base),...a},b=M?u:ls({...n?.slots},K(u)?{base:o?.base}:u),V=K(n?.compoundVariants)?i:ar(n?.compoundVariants,i),N=P=>{if(K(y)&&K(a)&&M)return e(g,P?.class,P?.className)(v);if(V&&!Array.isArray(V))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof V}`);if(c&&!Array.isArray(c))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);const k=(A,T=y,_=null,I=null)=>{const d=T[A];if(!d||K(d))return null;const z=I?.[A]??P?.[A];if(z===null)return null;const H=Tt(z);if(typeof H=="object")return null;const J=E?.[A],W=H??Tt(J);return d[W||"false"]},w=()=>{if(!y)return null;const A=Object.keys(y),T=[];for(let _=0;_<A.length;_++){const I=k(A[_],y);I&&T.push(I)}return T},p=(A,T)=>{if(!y||typeof y!="object")return null;const _=[];for(const I in y){const d=k(I,y,A,T),z=A==="base"&&typeof d=="string"?d:d&&d[A];z&&_.push(z)}return _},O={};for(const A in P){const T=P[A];T!==void 0&&(O[A]=T)}const S=(A,T)=>{const _=typeof P?.[A]=="object"?{[A]:P[A]?.initial}:{};return{...E,...O,..._,...T}},Z=(A=[],T)=>{const _=[],I=A.length;for(let d=0;d<I;d++){const{class:z,className:H,...J}=A[d];let W=!0;const R=S(null,T);for(const L in J){const Y=J[L],ie=R[L];if(Array.isArray(Y)){if(!Y.includes(ie)){W=!1;break}}else{if((Y==null||Y===!1)&&(ie==null||ie===!1))continue;if(ie!==Y){W=!1;break}}}W&&(z&&_.push(z),H&&_.push(H))}return _},Q=A=>{const T=Z(V,A);if(!Array.isArray(T))return T;const _={},I=e;for(let d=0;d<T.length;d++){const z=T[d];if(typeof z=="string")_.base=I(_.base,z)(v);else if(typeof z=="object")for(const H in z)_[H]=I(_[H],z[H])(v)}return _},Ce=A=>{if(c.length<1)return null;const T={},_=S(null,A);for(let I=0;I<c.length;I++){const{slots:d=[],class:z,className:H,...J}=c[I];if(!K(J)){let W=!0;for(const R in J){const L=_[R],Y=J[R];if(L===void 0||(Array.isArray(Y)?!Y.includes(L):Y!==L)){W=!1;break}}if(!W)continue}for(let W=0;W<d.length;W++){const R=d[W];T[R]||(T[R]=[]),T[R].push([z,H])}}return T};if(!K(a)||!M){const A={};if(typeof b=="object"&&!K(b)){const T=e;for(const _ in b)A[_]=I=>{const d=Q(I),z=Ce(I);return T(b[_],p(_,I),d?d[_]:void 0,z?z[_]:void 0,I?.class,I?.className)(v)}}return A}return e(g,w(),Z(V),P?.class,P?.className)(v)},C=()=>{if(!(!y||typeof y!="object"))return Object.keys(y)};return N.variantKeys=C(),N.extend=n,N.base=g,N.slots=b,N.variants=y,N.defaultVariants=E,N.compoundSlots=c,N.compoundVariants=V,N};return{tv:t,createTV:o=>(s,n)=>t(s,n?Ze(o,n):o)}},ds=e=>K(e)?sr:os({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),ps=(e,t)=>{const r=$e(e);return!r||!(t?.twMerge??!0)?r:((!te.cachedTwMerge||te.didTwMergeConfigChange)&&(te.didTwMergeConfigChange=!1,te.cachedTwMerge=ds(te.cachedTwMergeConfig)),te.cachedTwMerge(r)||void 0)},gs=(...e)=>t=>ps(e,t),{tv:ms}=us(gs);const hs=ms({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 Ws(e,t){$r(t,!0);let r=bt(t,"ref",15,null),o=bt(t,"variant",3,"default"),s=Zr(t,["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);var n=mt(),a=gt(n);no(a,()=>t.href?"a":"span",!1,(l,i)=>{Qr(l,v=>r(v),()=>r()),ho(l,v=>({"data-slot":"badge",href:t.href,class:v,...s}),[()=>ss(hs({variant:o()}),t.class)]);var c=mt(),f=gt(c);so(f,()=>t.children??Ur),ht(i,c)}),ht(e,n),Fr()}const ir=3456,it=`http://localhost:${ir}`,qs=`ws://localhost:${ir}`,et="kspec-selected-project";let fe=oe(Br([])),de=oe(null),lr=oe(0),tt=oe(!1),rt=oe(null),bs=oe(!1);function vs(){try{return localStorage.getItem(et)}catch{return null}}function lt(e){try{e?localStorage.setItem(et,e):localStorage.removeItem(et)}catch{}}async function Hs(){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(fe,t.projects||[],!0);const r=vs();r&&F(fe).some(o=>o.path===r)?q(de,r,!0):F(fe).length>0&&(q(de,F(fe)[0].path,!0),lt(F(de))),q(bs,!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 Ys(e){if(e===F(de))return;if(!F(fe).some(r=>r.path===e)){console.warn("[ProjectStore] Attempted to select unknown project:",e);return}q(de,e,!0),lt(e),Dr(lr)}function ys(){return F(de)}function Ks(){return F(fe).length>1}function Js(){return F(lr)}function Xs(){return F(fe)}function Qs(){return F(tt)}function ws(){q(de,null),lt(null),q(rt,"Selected project is no longer valid. Please select a project.")}function ks(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 je=oe("loading"),Fe=oe(null),xs=oe(null);async function Zs(){try{if((await fetch(`${it}/health`,{signal:AbortSignal.timeout(2e3)})).ok){q(je,"daemon");return}}catch{}try{const e=await fetch(`${eo}/kspec-snapshot.json`,{signal:AbortSignal.timeout(5e3)});if(e.ok){q(Fe,await e.json(),!0),q(je,"static");return}}catch{}q(je,"daemon"),q(xs,"Unable to connect to daemon and no static snapshot available")}function X(){return F(je)==="static"}function se(){return F(Fe)}function en(){return F(Fe)?.exported_at??null}function tn(){return F(Fe)?.validation??null}class Ss extends Error{constructor(t){super(`Cannot ${t} in read-only mode. Use the kspec CLI to make changes.`),this.name="ReadOnlyModeError"}}function pe(e){if(X())throw new Ss(e)}function cr(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,notes_count:e.notes?.length??0,todos_count:e.todos?.length??0}}function _s(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 Cs(e,t){let r=e;return t?.status&&(r=r.filter(o=>o.status===t.status)),t?.type&&(r=r.filter(o=>o.type===t.type)),t?.tag&&(r=r.filter(o=>o.tags.includes(t.tag))),t?.assignee&&(r=r.filter(o=>o.assignee===t.assignee)),t?.automation&&(r=r.filter(o=>o.automation===t.automation)),r}function As(e,t){return e}function ct(e,t){const r=t?.limit??50,o=t?.offset??0;return{items:e.slice(o,o+r),total:e.length,offset:o,limit:r}}function Ts(e,t){const r=t.startsWith("@")?t.slice(1):t,o=e.find(n=>n.slugs.includes(r));if(o)return o;const s=e.find(n=>n._ulid.startsWith(r.toUpperCase()));return s||null}function fr(e,t){const r=t.startsWith("@")?t.slice(1):t,o=e.find(n=>n.slugs.includes(r));if(o)return o;const s=e.find(n=>n._ulid.startsWith(r.toUpperCase()));return s||null}function Es(e){const t=se();if(!t)return{items:[],total:0,offset:0,limit:50};const r=Cs(t.tasks,e),o=ct(r,e);return{...o,items:o.items.map(cr)}}function Ms(e){const t=se();if(!t)return null;const r=Ts(t.tasks,e);return r||null}function Is(e){const t=se();if(!t)return{items:[],total:0,offset:0,limit:50};const r=As(t.items),o=ct(r,e);return{...o,items:o.items.map(_s)}}function Ps(e){const t=se();if(!t)return null;const r=fr(t.items,e);return r||null}function Ns(e){const t=se();if(!t)return{items:[],total:0,offset:0,limit:50};const r=fr(t.items,e);if(!r)return{items:[],total:0,offset:0,limit:50};const o=t.tasks.filter(s=>{if(!s.spec_ref)return!1;const n=s.spec_ref.startsWith("@")?s.spec_ref.slice(1):s.spec_ref;return r.slugs.includes(n)||r._ulid.startsWith(n.toUpperCase())});return{items:o.map(cr),total:o.length,offset:0,limit:o.length}}function Os(e){const t=se();return t?ct(t.inbox,e):{items:[],total:0,offset:0,limit:50}}function Rs(){return se()?.session??null}function js(e){const t=se();if(!t)return{items:[],total:0,offset:0,limit:50};let r=t.observations;return e?.type&&(r=r.filter(o=>o.type===e.type)),e?.resolved!==void 0&&(r=r.filter(o=>o.resolved===e.resolved)),{items:r,total:r.length,offset:0,limit:r.length}}function zs(e){const t=se();if(!t)return{results:[],total:0,showing:0};const r=e.toLowerCase(),o=[];for(const s of t.tasks)(s.title.toLowerCase().includes(r)||s.slugs.some(n=>n.includes(r)))&&o.push({type:"task",ulid:s._ulid,title:s.title,matchedFields:["title"]});for(const s of t.items)(s.title.toLowerCase().includes(r)||s.slugs.some(n=>n.includes(r)))&&o.push({type:"item",ulid:s._ulid,title:s.title,matchedFields:["title"]});for(const s of t.inbox)s.text.toLowerCase().includes(r)&&o.push({type:"inbox",ulid:s._ulid,title:s.text.slice(0,50),matchedFields:["text"]});return{results:o.slice(0,20),total:o.length,showing:Math.min(o.length,20)}}function Vs(e){return{items:[],total:0,offset:e?.offset??0,limit:e?.limit??50}}const U=it;function B(){const e=ys();return e?{"X-Kspec-Dir":e}:{}}async function D(e){const t=await e.json(),r=t.message||t.error;throw ks(e,r)&&ws(),new Error(r)}async function rn(e){if(X())return Es(e);const t=new URL(`${U}/api/tasks`);e&&Object.entries(e).forEach(([o,s])=>{s!==void 0&&s!==""&&t.searchParams.set(o,String(s))});const r=await fetch(t.toString(),{headers:B()});return r.ok||await D(r),r.json()}async function on(e){if(X()){const r=Ms(e);if(!r)throw new Error(`Task not found: ${e}`);return r}const t=await fetch(`${U}/api/tasks/${e}`,{headers:B()});return t.ok||await D(t),t.json()}async function sn(e){pe("start task");const t=await fetch(`${U}/api/tasks/${e}/start`,{method:"POST",headers:B()});t.ok||await D(t)}async function nn(e,t){pe("add note");const r=await fetch(`${U}/api/tasks/${e}/note`,{method:"POST",headers:{"Content-Type":"application/json",...B()},body:JSON.stringify({content:t})});r.ok||await D(r)}async function an(e){if(X())return Is(e);const t=new URL(`${U}/api/items`),r=await fetch(t.toString(),{headers:B()});return r.ok||await D(r),r.json()}async function ln(e){if(X()){const r=Ps(e);if(!r)throw new Error(`Item not found: ${e}`);return r}const t=await fetch(`${U}/api/items/${e}`,{headers:B()});return t.ok||await D(t),t.json()}async function cn(e){if(X())return Ns(e);const t=await fetch(`${U}/api/items/${e}/tasks`,{headers:B()});return t.ok||await D(t),t.json()}async function fn(e){if(X())return Os(e);const t=new URL(`${U}/api/inbox`);e&&Object.entries(e).forEach(([o,s])=>{s!==void 0&&s!==""&&t.searchParams.set(o,String(s))});const r=await fetch(t.toString(),{headers:B()});return r.ok||await D(r),r.json()}async function un(e,t){pe("add inbox item");const r=await fetch(`${U}/api/inbox`,{method:"POST",headers:{"Content-Type":"application/json",...B()},body:JSON.stringify({text:e,tags:t})});return r.ok||await D(r),(await r.json()).item}async function dn(e){pe("delete inbox item");const t=await fetch(`${U}/api/inbox/${e}`,{method:"DELETE",headers:B()});t.ok||await D(t)}async function pn(){if(X()){const t=Rs();return t||{focus:null,threads:[],open_questions:[],updated_at:new Date().toISOString()}}const e=await fetch(`${U}/api/meta/session`,{headers:B()});return e.ok||await D(e),e.json()}async function gn(e){if(X())return js(e);const t=new URL(`${U}/api/meta/observations`);e&&Object.entries(e).forEach(([o,s])=>{s!==void 0&&s!==""&&t.searchParams.set(o,String(s))});const r=await fetch(t.toString(),{headers:B()});return r.ok||await D(r),r.json()}async function mn(e){if(X())return zs(e);const t=new URL(`${U}/api/search`);t.searchParams.set("q",e);const r=await fetch(t.toString(),{headers:B()});return r.ok||await D(r),r.json()}async function hn(e){if(X())return Vs(e);const t=new URL(`${U}/api/triage`);e&&Object.entries(e).forEach(([o,s])=>{s!==void 0&&s!==""&&t.searchParams.set(o,String(s))});const r=await fetch(t.toString(),{headers:B()});return r.ok||await D(r),r.json()}async function bn(e){pe("create triage record");const t=await fetch(`${U}/api/triage`,{method:"POST",headers:{"Content-Type":"application/json",...B()},body:JSON.stringify(e)});return t.ok||await D(t),t.json()}async function vn(e,t){pe("override triage record");const r=await fetch(`${U}/api/triage/${e}/override`,{method:"POST",headers:{"Content-Type":"application/json",...B()},body:JSON.stringify(t)});return r.ok||await D(r),r.json()}async function yn(e){pe("execute triage action");const t=await fetch(`${U}/api/triage/${e}/act`,{method:"POST",headers:B()});return t.ok||await D(t),t.json()}export{ln as A,Ws as B,cn as C,qs as D,an as E,Gt as F,Qs as G,Ys as H,ys as I,Xs as J,pn as K,Ks as L,mn as M,tn as N,en as O,Zs as P,Hs as Q,Ss as R,ho as a,so as b,ss as c,fn as d,Bs as e,rn as f,Js as g,X as h,Us as i,dn as j,un as k,hn as l,Ds as m,uo as n,vn as o,bn as p,yn as q,gn as r,Le as s,fo as t,no as u,ms as v,on as w,nn as x,sn as y,io as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as v,a as i,f as b}from"./DzVXElzN.js";import{p,f as c,c as _,g as y,y as x,d as w,h as z,n as F,e as G,r as H}from"./B1IR5Su5.js";import{c as g}from"./CrFkBTYp.js";import{p as m,s as f,r as h,b as J,l as C}from"./sTLbk5Nm.js";import{D as K,b as O,d as Q,c as R,a as T,e as U}from"./DzAP8lRM.js";import{c as $,v as W,b as N,a as Y}from"./DBXrsxZQ.js";import{P as Z,X as ee}from"./DtUbXRZz.js";import"./B_Cvvtc4.js";import{I,s as V}from"./q1nIWgqB.js";function $e(o,e){p(e,!0);let a=m(e,"open",15,!1),r=h(e,["$$slots","$$events","$$legacy","open"]);var t=v(),n=c(t);g(n,()=>K,(s,l)=>{l(s,f(()=>r,{get open(){return a()},set open(d){a(d)}}))}),i(o,t),_()}function te(o,e){let a=h(e,["$$slots","$$events","$$legacy"]);var r=v(),t=c(r);g(t,()=>Z,(n,s)=>{s(n,f(()=>a))}),i(o,r)}function ae(o,e){p(e,!0);let a=m(e,"ref",15,null),r=h(e,["$$slots","$$events","$$legacy","ref","class"]);var t=v(),n=c(t);{let s=x(()=>$("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));g(n,()=>O,(l,d)=>{d(l,f({"data-slot":"sheet-overlay",get class(){return y(s)}},()=>r,{get ref(){return a()},set ref(u){a(u)}}))})}i(o,t),_()}const se=W({base:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",variants:{side:{top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",left:"data-[state=closed]:slide-out-to-start data-[state=open]:slide-in-from-start inset-y-0 start-0 h-full w-3/4 border-e sm:max-w-sm",right:"data-[state=closed]:slide-out-to-end data-[state=open]:slide-in-from-end inset-y-0 end-0 h-full w-3/4 border-s sm:max-w-sm"}},defaultVariants:{side:"right"}});var re=b('<!> <span class="sr-only">Close</span>',1),oe=b("<!> <!>",1),ne=b("<!> <!>",1);function be(o,e){p(e,!0);let a=m(e,"ref",15,null),r=m(e,"side",3,"right"),t=h(e,["$$slots","$$events","$$legacy","ref","class","side","portalProps","children"]);te(o,f(()=>e.portalProps,{children:(n,s)=>{var l=ne(),d=c(l);ae(d,{});var u=w(d,2);{let A=x(()=>$(se({side:r()}),e.class));g(u,()=>R,(L,M)=>{M(L,f({"data-slot":"sheet-content",get class(){return y(A)}},()=>t,{get ref(){return a()},set ref(P){a(P)},children:(P,ie)=>{var S=oe(),D=c(S);N(D,()=>e.children??z);var X=w(D,2);g(X,()=>Q,(j,q)=>{q(j,{class:"ring-offset-background focus-visible:ring-ring absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none",children:(B,de)=>{var k=re(),E=c(k);ee(E,{class:"size-4"}),F(2),i(B,k)},$$slots:{default:!0}})}),i(P,S)},$$slots:{default:!0}}))})}i(n,l)},$$slots:{default:!0}})),_()}var le=b("<div><!></div>");function ye(o,e){p(e,!0);let a=m(e,"ref",15,null),r=h(e,["$$slots","$$events","$$legacy","ref","class","children"]);var t=le();Y(t,s=>({"data-slot":"sheet-header",class:s,...r}),[()=>$("flex flex-col gap-1.5 p-4",e.class)]);var n=G(t);N(n,()=>e.children??z),H(t),J(t,s=>a(s),()=>a()),i(o,t),_()}function xe(o,e){p(e,!0);let a=m(e,"ref",15,null),r=h(e,["$$slots","$$events","$$legacy","ref","class"]);var t=v(),n=c(t);{let s=x(()=>$("text-foreground font-semibold",e.class));g(n,()=>T,(l,d)=>{d(l,f({"data-slot":"sheet-title",get class(){return y(s)}},()=>r,{get ref(){return a()},set ref(u){a(u)}}))})}i(o,t),_()}function Pe(o,e){p(e,!0);let a=m(e,"ref",15,null),r=h(e,["$$slots","$$events","$$legacy","ref","class"]);var t=v(),n=c(t);{let s=x(()=>$("text-muted-foreground text-sm",e.class));g(n,()=>U,(l,d)=>{d(l,f({"data-slot":"sheet-description",get class(){return y(s)}},()=>r,{get ref(){return a()},set ref(u){a(u)}}))})}i(o,t),_()}function Se(o,e){const a=C(e,["children","$$slots","$$events","$$legacy"]);const r=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335"}],["path",{d:"m9 11 3 3L22 4"}]];I(o,f({name:"circle-check-big"},()=>a,{get iconNode(){return r},children:(t,n)=>{var s=v(),l=c(s);V(l,e,"default",{}),i(t,s)},$$slots:{default:!0}}))}function De(o,e){const a=C(e,["children","$$slots","$$events","$$legacy"]);const r=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]];I(o,f({name:"circle-x"},()=>a,{get iconNode(){return r},children:(t,n)=>{var s=v(),l=c(s);V(l,e,"default",{}),i(t,s)},$$slots:{default:!0}}))}export{Se as C,$e as S,be as a,ye as b,xe as c,Pe as d,De as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{q as Yn,c as N,a as C,f as G,o as bt,b as Xn,p as At,t as jn,s as qn}from"./DzVXElzN.js";import{y as w,g as c,u as at,m as Zn,s as B,a as jt,b as P,p as H,f as _,c as W,h as Z,A as Gn,e as et,r as nt,t as an,o as Jn,d as mt}from"./B1IR5Su5.js";import{c as it}from"./CrFkBTYp.js";import{p,i as V,r as L,s as X}from"./sTLbk5Nm.js";import{a as Q,b as F,s as Ke,e as Qn,c as Pt}from"./DBXrsxZQ.js";import{v as $n,n as rt,C as It,u as te,x as to,w as ot,y as eo,h as cn,z as ee,a as dn,A as Mt,f as zt,E as Re,S as ce,B as Ue,G as un,H as hn,I as fn,g as gn,o as pn,J as no,s as oo,F as ro,c as Ye,b as io,D as so,T as lo,K as ao,L as he,M as co,P as mn}from"./DtUbXRZz.js";import{u as vn,e as A,m as tt,s as ht,j as uo,a as gt,v as ho,w as Xe,c as wn,f as ne,g as yn,o as fo,b as go,d as _t,I as bn}from"./vwKgQu5P.js";import{a as po}from"./aoPBFken.js";import{C as xn}from"./Bu8JVsCH.js";const mo={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},vo=vn(mo);function wo(e){return typeof e=="function"}function je(e){return wo(e)?e():e}class yo{#t={width:0,height:0};#e=!1;#n;#o;#r;#s=w(()=>(c(this.#i)?.(),this.getSize().width));#a=w(()=>(c(this.#i)?.(),this.getSize().height));#i=w(()=>{const t=je(this.#o);if(t)return Yn(n=>{if(!this.#r)return;const o=new this.#r.ResizeObserver(r=>{this.#e=!0;for(const i of r){const s=this.#n.box==="content-box"?i.contentBoxSize:i.borderBoxSize,l=Array.isArray(s)?s:[s];this.#t.width=l.reduce((a,d)=>Math.max(a,d.inlineSize),0),this.#t.height=l.reduce((a,d)=>Math.max(a,d.blockSize),0)}n()});return o.observe(t),()=>{this.#e=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#r=n.window??$n,this.#n=n,this.#o=t,this.#t={width:0,height:0}}calculateSize(){const t=je(this.#o);if(!t||!this.#r)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:o};const r=this.#r.getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),l=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),a=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),d=n-i-l,h=o-s-a;return{width:d,height:h}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return c(this.#i)?.(),this.getSize()}get width(){return c(this.#s)}get height(){return c(this.#a)}}class bo{#t=()=>{};#e=w(()=>this.#t());constructor(t,n){let o;n!==void 0&&(o=n),this.#t=()=>{try{return o}finally{o=t()}}}get current(){return c(this.#e)}}function Sn(e){at(()=>Zn(()=>e()))}function xo(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function So(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function Po(e,t,n,o=!0){if(e.length===0||t<0||t>=e.length)return;let r=t+n;return o?r=(r%e.length+e.length)%e.length:r=Math.max(0,Math.min(r,e.length-1)),e[r]}function Co(e,t,n,o=!0){if(e.length===0||t<0||t>=e.length)return;let r=t-n;return o?r=(r%e.length+e.length)%e.length:r=Math.max(0,Math.min(r,e.length-1)),e[r]}function ye(e,t,n){const o=t.toLowerCase();if(o.endsWith(" ")){const u=o.slice(0,-1);if(e.filter(x=>x.toLowerCase().startsWith(u)).length<=1)return ye(e,u,n);const g=n?.toLowerCase();if(g&&g.startsWith(u)&&g.charAt(u.length)===" "&&t.trim()===u)return n;const v=e.filter(x=>x.toLowerCase().startsWith(o));if(v.length>0){const x=n?e.indexOf(n):-1;return qe(v,Math.max(x,0)).find(b=>b!==n)||n}}const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=i.toLowerCase(),l=n?e.indexOf(n):-1;let a=qe(e,Math.max(l,0));i.length===1&&(a=a.filter(u=>u!==n));const h=a.find(u=>u?.toLowerCase().startsWith(s));return h!==n?h:void 0}function qe(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const Oo={afterMs:1e4,onChange:rt};function Pn(e,t){const{afterMs:n,onChange:o,getWindow:r}={...Oo,...t};let i=null,s=B(jt(e));function l(){return r().setTimeout(()=>{P(s,e,!0),o?.(e)},n)}return at(()=>()=>{i&&r().clearTimeout(i)}),A(()=>c(s),a=>{P(s,a,!0),o?.(a),i&&r().clearTimeout(i),i=l()})}class Ao{#t;#e;#n=w(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#o=w(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=Pn("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){if(!n.length)return;this.#e.current=this.#e.current+t;const o=c(this.#o)(),r=n.find(a=>a===o)?.textContent?.trim()??"",i=n.map(a=>a.textContent?.trim()??""),s=ye(i,this.#e.current,r),l=n.find(a=>a.textContent?.trim()===s);return l&&c(this.#n)(l),l}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}var _o=G("<input/>"),To=G("<input/>");function No(e,t){H(t,!0);let n=p(t,"value",15),o=L(t,["$$slots","$$events","$$legacy","value"]);const r=w(()=>tt(o,{"aria-hidden":"true",tabindex:-1,style:vo}));var i=N(),s=_(i);{var l=d=>{var h=_o();Q(h,()=>({...c(r),value:n()}),void 0,void 0,void 0,void 0,!0),C(d,h)},a=d=>{var h=To();Q(h,()=>({...c(r)}),void 0,void 0,void 0,void 0,!0),po(h,n),C(d,h)};V(s,d=>{c(r).type==="checkbox"?d(l):d(a,!1)})}C(e,i),W()}const Do=["top","right","bottom","left"],Ct=Math.min,st=Math.max,qt=Math.round,Xt=Math.floor,pt=e=>({x:e,y:e}),Eo={left:"right",right:"left",bottom:"top",top:"bottom"},Io={start:"end",end:"start"};function fe(e,t,n){return st(e,Ct(t,n))}function xt(e,t){return typeof e=="function"?e(t):e}function St(e){return e.split("-")[0]}function Ht(e){return e.split("-")[1]}function be(e){return e==="x"?"y":"x"}function xe(e){return e==="y"?"height":"width"}const Fo=new Set(["top","bottom"]);function ft(e){return Fo.has(St(e))?"y":"x"}function Se(e){return be(ft(e))}function Mo(e,t,n){n===void 0&&(n=!1);const o=Ht(e),r=Se(e),i=xe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Zt(s)),[s,Zt(s)]}function ko(e){const t=Zt(e);return[ge(e),t,ge(t)]}function ge(e){return e.replace(/start|end/g,t=>Io[t])}const Ze=["left","right"],Ge=["right","left"],Bo=["top","bottom"],Ho=["bottom","top"];function Wo(e,t,n){switch(e){case"top":case"bottom":return n?t?Ge:Ze:t?Ze:Ge;case"left":case"right":return t?Bo:Ho;default:return[]}}function Lo(e,t,n,o){const r=Ht(e);let i=Wo(St(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(ge)))),i}function Zt(e){return e.replace(/left|right|bottom|top/g,t=>Eo[t])}function Vo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cn(e){return typeof e!="number"?Vo(e):{top:e,right:e,bottom:e,left:e}}function Gt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Je(e,t,n){let{reference:o,floating:r}=e;const i=ft(t),s=Se(t),l=xe(s),a=St(t),d=i==="y",h=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,f=o[l]/2-r[l]/2;let g;switch(a){case"top":g={x:h,y:o.y-r.height};break;case"bottom":g={x:h,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:u};break;case"left":g={x:o.x-r.width,y:u};break;default:g={x:o.x,y:o.y}}switch(Ht(t)){case"start":g[s]-=f*(n&&d?-1:1);break;case"end":g[s]+=f*(n&&d?-1:1);break}return g}const zo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:u}=Je(d,o,a),f=o,g={},v=0;for(let x=0;x<l.length;x++){const{name:S,fn:m}=l[x],{x:b,y,data:O,reset:T}=await m({x:h,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:g,rects:d,platform:s,elements:{reference:e,floating:t}});h=b??h,u=y??u,g={...g,[S]:{...g[S],...O}},T&&v<=50&&(v++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(d=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):T.rects),{x:h,y:u}=Je(d,f,a)),x=-1)}return{x:h,y:u,placement:f,strategy:r,middlewareData:g}};async function Kt(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:l,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:f=!1,padding:g=0}=xt(t,e),v=Cn(g),S=l[f?u==="floating"?"reference":"floating":u],m=Gt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:h,strategy:a})),b=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),O=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},T=Gt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:y,strategy:a}):b);return{top:(m.top-T.top+v.top)/O.y,bottom:(T.bottom-m.bottom+v.bottom)/O.y,left:(m.left-T.left+v.left)/O.x,right:(T.right-m.right+v.right)/O.x}}const Ko=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:d,padding:h=0}=xt(e,t)||{};if(d==null)return{};const u=Cn(h),f={x:n,y:o},g=Se(r),v=xe(g),x=await s.getDimensions(d),S=g==="y",m=S?"top":"left",b=S?"bottom":"right",y=S?"clientHeight":"clientWidth",O=i.reference[v]+i.reference[g]-f[g]-i.floating[v],T=f[g]-i.reference[g],D=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let E=D?D[y]:0;(!E||!await(s.isElement==null?void 0:s.isElement(D)))&&(E=l.floating[y]||i.floating[v]);const I=O/2-T/2,z=E/2-x[v]/2-1,j=Ct(u[m],z),K=Ct(u[b],z),k=j,R=E-x[v]-K,M=E/2-x[v]/2+I,J=fe(k,M,R),U=!a.arrow&&Ht(r)!=null&&M!==J&&i.reference[v]/2-(M<k?j:K)-x[v]/2<0,Y=U?M<k?M-k:M-R:0;return{[g]:f[g]+Y,data:{[g]:J,centerOffset:M-J-Y,...U&&{alignmentOffset:Y}},reset:U}}}),Ro=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:d}=t,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,...S}=xt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=St(r),b=ft(l),y=St(l)===l,O=await(a.isRTL==null?void 0:a.isRTL(d.floating)),T=f||(y||!x?[Zt(l)]:ko(l)),D=v!=="none";!f&&D&&T.push(...Lo(l,x,v,O));const E=[l,...T],I=await Kt(t,S),z=[];let j=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&z.push(I[m]),u){const M=Mo(r,s,O);z.push(I[M[0]],I[M[1]])}if(j=[...j,{placement:r,overflows:z}],!z.every(M=>M<=0)){var K,k;const M=(((K=i.flip)==null?void 0:K.index)||0)+1,J=E[M];if(J&&(!(u==="alignment"?b!==ft(J):!1)||j.every(q=>ft(q.placement)===b?q.overflows[0]>0:!0)))return{data:{index:M,overflows:j},reset:{placement:J}};let U=(k=j.filter(Y=>Y.overflows[0]<=0).sort((Y,q)=>Y.overflows[1]-q.overflows[1])[0])==null?void 0:k.placement;if(!U)switch(g){case"bestFit":{var R;const Y=(R=j.filter(q=>{if(D){const $=ft(q.placement);return $===b||$==="y"}return!0}).map(q=>[q.placement,q.overflows.filter($=>$>0).reduce(($,ct)=>$+ct,0)]).sort((q,$)=>q[1]-$[1])[0])==null?void 0:R[0];Y&&(U=Y);break}case"initialPlacement":U=l;break}if(r!==U)return{reset:{placement:U}}}return{}}}};function Qe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $e(e){return Do.some(t=>e[t]>=0)}const Uo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=xt(e,t);switch(o){case"referenceHidden":{const i=await Kt(t,{...r,elementContext:"reference"}),s=Qe(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:$e(s)}}}case"escaped":{const i=await Kt(t,{...r,altBoundary:!0}),s=Qe(i,n.floating);return{data:{escapedOffsets:s,escaped:$e(s)}}}default:return{}}}}},On=new Set(["left","top"]);async function Yo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=St(n),l=Ht(n),a=ft(n)==="y",d=On.has(s)?-1:1,h=i&&a?-1:1,u=xt(t,e);let{mainAxis:f,crossAxis:g,alignmentAxis:v}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof v=="number"&&(g=l==="end"?v*-1:v),a?{x:g*h,y:f*d}:{x:f*d,y:g*h}}const Xo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:l}=t,a=await Yo(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:s}}}}},jo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:S=>{let{x:m,y:b}=S;return{x:m,y:b}}},...a}=xt(e,t),d={x:n,y:o},h=await Kt(t,a),u=ft(St(r)),f=be(u);let g=d[f],v=d[u];if(i){const S=f==="y"?"top":"left",m=f==="y"?"bottom":"right",b=g+h[S],y=g-h[m];g=fe(b,g,y)}if(s){const S=u==="y"?"top":"left",m=u==="y"?"bottom":"right",b=v+h[S],y=v-h[m];v=fe(b,v,y)}const x=l.fn({...t,[f]:g,[u]:v});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[f]:i,[u]:s}}}}}},qo=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:d=!0}=xt(e,t),h={x:n,y:o},u=ft(r),f=be(u);let g=h[f],v=h[u];const x=xt(l,t),S=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(a){const y=f==="y"?"height":"width",O=i.reference[f]-i.floating[y]+S.mainAxis,T=i.reference[f]+i.reference[y]-S.mainAxis;g<O?g=O:g>T&&(g=T)}if(d){var m,b;const y=f==="y"?"width":"height",O=On.has(St(r)),T=i.reference[u]-i.floating[y]+(O&&((m=s.offset)==null?void 0:m[u])||0)+(O?0:S.crossAxis),D=i.reference[u]+i.reference[y]+(O?0:((b=s.offset)==null?void 0:b[u])||0)-(O?S.crossAxis:0);v<T?v=T:v>D&&(v=D)}return{[f]:g,[u]:v}}}},Zo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...d}=xt(e,t),h=await Kt(t,d),u=St(r),f=Ht(r),g=ft(r)==="y",{width:v,height:x}=i.floating;let S,m;u==="top"||u==="bottom"?(S=u,m=f===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(m=u,S=f==="end"?"top":"bottom");const b=x-h.top-h.bottom,y=v-h.left-h.right,O=Ct(x-h[S],b),T=Ct(v-h[m],y),D=!t.middlewareData.shift;let E=O,I=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=y),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=b),D&&!f){const j=st(h.left,0),K=st(h.right,0),k=st(h.top,0),R=st(h.bottom,0);g?I=v-2*(j!==0||K!==0?j+K:st(h.left,h.right)):E=x-2*(k!==0||R!==0?k+R:st(h.top,h.bottom))}await a({...t,availableWidth:I,availableHeight:E});const z=await s.getDimensions(l.floating);return v!==z.width||x!==z.height?{reset:{rects:!0}}:{}}}};function oe(){return typeof window<"u"}function Wt(e){return An(e)?(e.nodeName||"").toLowerCase():"#document"}function lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wt(e){var t;return(t=(An(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function An(e){return oe()?e instanceof Node||e instanceof lt(e).Node:!1}function dt(e){return oe()?e instanceof Element||e instanceof lt(e).Element:!1}function vt(e){return oe()?e instanceof HTMLElement||e instanceof lt(e).HTMLElement:!1}function tn(e){return!oe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof lt(e).ShadowRoot}const Go=new Set(["inline","contents"]);function Ut(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Go.has(r)}const Jo=new Set(["table","td","th"]);function Qo(e){return Jo.has(Wt(e))}const $o=[":popover-open",":modal"];function re(e){return $o.some(t=>{try{return e.matches(t)}catch{return!1}})}const tr=["transform","translate","scale","rotate","perspective"],er=["transform","translate","scale","rotate","perspective","filter"],nr=["paint","layout","strict","content"];function Pe(e){const t=Ce(),n=dt(e)?ut(e):e;return tr.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||er.some(o=>(n.willChange||"").includes(o))||nr.some(o=>(n.contain||"").includes(o))}function or(e){let t=Ot(e);for(;vt(t)&&!Bt(t);){if(Pe(t))return t;if(re(t))return null;t=Ot(t)}return null}function Ce(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const rr=new Set(["html","body","#document"]);function Bt(e){return rr.has(Wt(e))}function ut(e){return lt(e).getComputedStyle(e)}function ie(e){return dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ot(e){if(Wt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tn(e)&&e.host||wt(e);return tn(t)?t.host:t}function _n(e){const t=Ot(e);return Bt(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&Ut(t)?t:_n(t)}function Rt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=_n(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=lt(r);if(i){const l=pe(s);return t.concat(s,s.visualViewport||[],Ut(r)?r:[],l&&n?Rt(l):[])}return t.concat(r,Rt(r,[],n))}function pe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tn(e){const t=ut(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=vt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,l=qt(n)!==i||qt(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function Oe(e){return dt(e)?e:e.contextElement}function kt(e){const t=Oe(e);if(!vt(t))return pt(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Tn(t);let s=(i?qt(n.width):n.width)/o,l=(i?qt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const ir=pt(0);function Nn(e){const t=lt(e);return!Ce()||!t.visualViewport?ir:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==lt(e)?!1:t}function Et(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Oe(e);let s=pt(1);t&&(o?dt(o)&&(s=kt(o)):s=kt(e));const l=sr(i,n,o)?Nn(i):pt(0);let a=(r.left+l.x)/s.x,d=(r.top+l.y)/s.y,h=r.width/s.x,u=r.height/s.y;if(i){const f=lt(i),g=o&&dt(o)?lt(o):o;let v=f,x=pe(v);for(;x&&o&&g!==v;){const S=kt(x),m=x.getBoundingClientRect(),b=ut(x),y=m.left+(x.clientLeft+parseFloat(b.paddingLeft))*S.x,O=m.top+(x.clientTop+parseFloat(b.paddingTop))*S.y;a*=S.x,d*=S.y,h*=S.x,u*=S.y,a+=y,d+=O,v=lt(x),x=pe(v)}}return Gt({width:h,height:u,x:a,y:d})}function se(e,t){const n=ie(e).scrollLeft;return t?t.left+n:Et(wt(e)).left+n}function Dn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-se(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function lr(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=wt(o),l=t?re(t.floating):!1;if(o===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},d=pt(1);const h=pt(0),u=vt(o);if((u||!u&&!i)&&((Wt(o)!=="body"||Ut(s))&&(a=ie(o)),vt(o))){const g=Et(o);d=kt(o),h.x=g.x+o.clientLeft,h.y=g.y+o.clientTop}const f=s&&!u&&!i?Dn(s,a):pt(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-a.scrollLeft*d.x+h.x+f.x,y:n.y*d.y-a.scrollTop*d.y+h.y+f.y}}function ar(e){return Array.from(e.getClientRects())}function cr(e){const t=wt(e),n=ie(e),o=e.ownerDocument.body,r=st(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=st(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+se(e);const l=-n.scrollTop;return ut(o).direction==="rtl"&&(s+=st(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}const en=25;function dr(e,t){const n=lt(e),o=wt(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,a=0;if(r){i=r.width,s=r.height;const h=Ce();(!h||h&&t==="fixed")&&(l=r.offsetLeft,a=r.offsetTop)}const d=se(o);if(d<=0){const h=o.ownerDocument,u=h.body,f=getComputedStyle(u),g=h.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(o.clientWidth-u.clientWidth-g);v<=en&&(i-=v)}else d<=en&&(i+=d);return{width:i,height:s,x:l,y:a}}const ur=new Set(["absolute","fixed"]);function hr(e,t){const n=Et(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=vt(e)?kt(e):pt(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=r*i.x,d=o*i.y;return{width:s,height:l,x:a,y:d}}function nn(e,t,n){let o;if(t==="viewport")o=dr(e,n);else if(t==="document")o=cr(wt(e));else if(dt(t))o=hr(t,n);else{const r=Nn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Gt(o)}function En(e,t){const n=Ot(e);return n===t||!dt(n)||Bt(n)?!1:ut(n).position==="fixed"||En(n,t)}function fr(e,t){const n=t.get(e);if(n)return n;let o=Rt(e,[],!1).filter(l=>dt(l)&&Wt(l)!=="body"),r=null;const i=ut(e).position==="fixed";let s=i?Ot(e):e;for(;dt(s)&&!Bt(s);){const l=ut(s),a=Pe(s);!a&&l.position==="fixed"&&(r=null),(i?!a&&!r:!a&&l.position==="static"&&!!r&&ur.has(r.position)||Ut(s)&&!a&&En(e,s))?o=o.filter(h=>h!==s):r=l,s=Ot(s)}return t.set(e,o),o}function gr(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?re(t)?[]:fr(t,this._c):[].concat(n),o],l=s[0],a=s.reduce((d,h)=>{const u=nn(t,h,r);return d.top=st(u.top,d.top),d.right=Ct(u.right,d.right),d.bottom=Ct(u.bottom,d.bottom),d.left=st(u.left,d.left),d},nn(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function pr(e){const{width:t,height:n}=Tn(e);return{width:t,height:n}}function mr(e,t,n){const o=vt(t),r=wt(t),i=n==="fixed",s=Et(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=pt(0);function d(){a.x=se(r)}if(o||!o&&!i)if((Wt(t)!=="body"||Ut(r))&&(l=ie(t)),o){const g=Et(t,!0,i,t);a.x=g.x+t.clientLeft,a.y=g.y+t.clientTop}else r&&d();i&&!o&&r&&d();const h=r&&!o&&!i?Dn(r,l):pt(0),u=s.left+l.scrollLeft-a.x-h.x,f=s.top+l.scrollTop-a.y-h.y;return{x:u,y:f,width:s.width,height:s.height}}function de(e){return ut(e).position==="static"}function on(e,t){if(!vt(e)||ut(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return wt(e)===n&&(n=n.ownerDocument.body),n}function In(e,t){const n=lt(e);if(re(e))return n;if(!vt(e)){let r=Ot(e);for(;r&&!Bt(r);){if(dt(r)&&!de(r))return r;r=Ot(r)}return n}let o=on(e,t);for(;o&&Qo(o)&&de(o);)o=on(o,t);return o&&Bt(o)&&de(o)&&!Pe(o)?n:o||or(e)||n}const vr=async function(e){const t=this.getOffsetParent||In,n=this.getDimensions,o=await n(e.floating);return{reference:mr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function wr(e){return ut(e).direction==="rtl"}const yr={convertOffsetParentRelativeRectToViewportRelativeRect:lr,getDocumentElement:wt,getClippingRect:gr,getOffsetParent:In,getElementRects:vr,getClientRects:ar,getDimensions:pr,getScale:kt,isElement:dt,isRTL:wr};function Fn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function br(e,t){let n=null,o;const r=wt(e);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const d=e.getBoundingClientRect(),{left:h,top:u,width:f,height:g}=d;if(l||t(),!f||!g)return;const v=Xt(u),x=Xt(r.clientWidth-(h+f)),S=Xt(r.clientHeight-(u+g)),m=Xt(h),y={rootMargin:-v+"px "+-x+"px "+-S+"px "+-m+"px",threshold:st(0,Ct(1,a))||1};let O=!0;function T(D){const E=D[0].intersectionRatio;if(E!==a){if(!O)return s();E?s(!1,E):o=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!Fn(d,e.getBoundingClientRect())&&s(),O=!1}try{n=new IntersectionObserver(T,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(T,y)}n.observe(e)}return s(!0),i}function xr(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,d=Oe(e),h=r||i?[...d?Rt(d):[],...Rt(t)]:[];h.forEach(m=>{r&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const u=d&&l?br(d,n):null;let f=-1,g=null;s&&(g=new ResizeObserver(m=>{let[b]=m;b&&b.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=g)==null||y.observe(t)})),n()}),d&&!a&&g.observe(d),g.observe(t));let v,x=a?Et(e):null;a&&S();function S(){const m=Et(e);x&&!Fn(x,m)&&n(),x=m,v=requestAnimationFrame(S)}return n(),()=>{var m;h.forEach(b=>{r&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),u?.(),(m=g)==null||m.disconnect(),g=null,a&&cancelAnimationFrame(v)}}const Sr=Xo,Pr=jo,Cr=Ro,Or=Zo,Ar=Uo,_r=Ko,Tr=qo,Nr=(e,t,n)=>{const o=new Map,r={platform:yr,...n},i={...r.platform,_c:o};return zo(e,t,{...r,platform:i})};function Dt(e){return typeof e=="function"?e():e}function Mn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rn(e,t){const n=Mn(e);return Math.round(t*n)/n}function me(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 Dr(e){const t=e.whileElementsMounted,n=w(()=>Dt(e.open)??!0),o=w(()=>Dt(e.middleware)),r=w(()=>Dt(e.transform)??!0),i=w(()=>Dt(e.placement)??"bottom"),s=w(()=>Dt(e.strategy)??"absolute"),l=w(()=>Dt(e.sideOffset)??0),a=w(()=>Dt(e.alignOffset)??0),d=e.reference;let h=B(0),u=B(0);const f=ht(null);let g=B(jt(c(s))),v=B(jt(c(i))),x=B(jt({})),S=B(!1);const m=w(()=>{const E=f.current?rn(f.current,c(h)):c(h),I=f.current?rn(f.current,c(u)):c(u);return c(r)?{position:c(g),left:"0",top:"0",transform:`translate(${E}px, ${I}px)`,...f.current&&Mn(f.current)>=1.5&&{willChange:"transform"}}:{position:c(g),left:`${E}px`,top:`${I}px`}});let b;function y(){d.current===null||f.current===null||Nr(d.current,f.current,{middleware:c(o),placement:c(i),strategy:c(s)}).then(E=>{if(!c(n)&&c(h)!==0&&c(u)!==0){const I=Math.max(Math.abs(c(l)),Math.abs(c(a)),15);if(E.x<=I&&E.y<=I)return}P(h,E.x,!0),P(u,E.y,!0),P(g,E.strategy,!0),P(v,E.placement,!0),P(x,E.middlewareData,!0),P(S,!0)})}function O(){typeof b=="function"&&(b(),b=void 0)}function T(){if(O(),t===void 0){y();return}d.current===null||f.current===null||(b=t(d.current,f.current,y))}function D(){c(n)||P(S,!1)}return at(y),at(T),at(D),at(()=>O),{floating:f,reference:d,get strategy(){return c(g)},get placement(){return c(v)},get middlewareData(){return c(x)},get isPositioned(){return c(S)},get floatingStyles(){return c(m)},get update(){return y}}}const Er={top:"bottom",right:"left",bottom:"top",left:"right"},Ae=new It("Floating.Root"),ve=new It("Floating.Content"),_e=new It("Floating.Root");class Jt{static create(t=!1){return t?_e.set(new Jt):Ae.set(new Jt)}anchorNode=ht(null);customAnchorNode=ht(null);triggerNode=ht(null);constructor(){at(()=>{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 Qt{static create(t,n=!1){return n?ve.set(new Qt(t,_e.get())):ve.set(new Qt(t,Ae.get()))}opts;root;contentRef=ht(null);wrapperRef=ht(null);arrowRef=ht(null);contentAttachment=gt(this.contentRef);wrapperAttachment=gt(this.wrapperRef);arrowAttachment=gt(this.arrowRef);arrowId=ht(te());#t=w(()=>{if(typeof this.opts.style=="string")return ho(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new yo(()=>this.arrowRef.current??void 0);#o=w(()=>this.#n?.width??0);#r=w(()=>this.#n?.height??0);#s=w(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=w(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#i=w(()=>c(this.#a).length>0);get hasExplicitBoundaries(){return c(this.#i)}set hasExplicitBoundaries(t){P(this.#i,t)}#l=w(()=>({padding:this.opts.collisionPadding.current,boundary:c(this.#a).filter(to),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return c(this.#l)}set detectOverflowOptions(t){P(this.#l,t)}#c=B(void 0);#d=B(void 0);#h=B(void 0);#f=B(void 0);#u=w(()=>[Sr({mainAxis:this.opts.sideOffset.current+c(this.#r),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Pr({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Tr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Cr({...this.detectOverflowOptions}),Or({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;P(this.#c,n,!0),P(this.#d,o,!0),P(this.#h,r,!0),P(this.#f,i,!0)}}),this.arrowRef.current&&_r({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Ir({arrowWidth:c(this.#o),arrowHeight:c(this.#r)}),this.opts.hideWhenDetached.current&&Ar({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return c(this.#u)}set middleware(t){P(this.#u,t)}floating;#g=w(()=>Fr(this.floating.placement));get placedSide(){return c(this.#g)}set placedSide(t){P(this.#g,t)}#p=w(()=>Mr(this.floating.placement));get placedAlign(){return c(this.#p)}set placedAlign(t){P(this.#p,t)}#m=w(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return c(this.#m)}set arrowX(t){P(this.#m,t)}#v=w(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return c(this.#v)}set arrowY(t){P(this.#v,t)}#w=w(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return c(this.#w)}set cannotCenterArrow(t){P(this.#w,t)}#y=B();get contentZIndex(){return c(this.#y)}set contentZIndex(t){P(this.#y,t,!0)}#b=w(()=>Er[this.placedSide]);get arrowBaseSide(){return c(this.#b)}set arrowBaseSide(t){P(this.#b,t)}#x=w(()=>({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":`${c(this.#c)}px`,"--bits-floating-available-height":`${c(this.#d)}px`,"--bits-floating-anchor-width":`${c(this.#h)}px`,"--bits-floating-anchor-height":`${c(this.#f)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...c(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return c(this.#x)}set wrapperProps(t){P(this.#x,t)}#S=w(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:vn({...c(this.#t)}),...this.contentAttachment}));get props(){return c(this.#S)}set props(t){P(this.#S,t)}#P=w(()=>({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 c(this.#P)}set arrowStyle(t){P(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),ot(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=Dr({strategy:()=>this.opts.strategy.current,placement:()=>c(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>xr(...o,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),at(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),ot(()=>this.contentRef.current,o=>{if(!o)return;const r=eo(o);this.contentZIndex=r.getComputedStyle(o).zIndex}),at(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Te{static create(t){return new Te(t,ve.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=w(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return c(this.#t)}set props(t){P(this.#t,t)}}class $t{static create(t,n=!1){return n?new $t(t,_e.get()):new $t(t,Ae.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=uo(t.virtualEl.current):n.triggerNode=t.ref}}function Ir(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[d,h]=Ne(n),u={start:"0%",center:"50%",end:"100%"}[h],f=(r.arrow?.x??0)+l/2,g=(r.arrow?.y??0)+a/2;let v="",x="";return d==="bottom"?(v=s?u:`${f}px`,x=`${-a}px`):d==="top"?(v=s?u:`${f}px`,x=`${o.floating.height+a}px`):d==="right"?(v=`${-a}px`,x=s?u:`${g}px`):d==="left"&&(v=`${o.floating.width+a}px`,x=s?u:`${g}px`),{data:{x:v,y:x}}}}}function Ne(e){const[t,n="center"]=e.split("-");return[t,n]}function Fr(e){return Ne(e)[0]}function Mr(e){return Ne(e)[1]}function kn(e,t){H(t,!0);let n=p(t,"tooltip",3,!1);Jt.create(n());var o=N(),r=_(o);F(r,()=>t.children??Z),C(e,o),W()}class kr{#t;#e=w(()=>this.#t.candidateValues());#n;constructor(t){this.#t=t,this.#n=Pn("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!c(this.#e).length)return;this.#n.current=this.#n.current+t;const n=this.#t.getCurrentItem(),o=c(this.#e).find(l=>l===n)??"",r=c(this.#e).map(l=>l??""),i=ye(r,this.#n.current,o),s=c(this.#e).find(l=>l===i);return s&&this.#t.onMatch(s),s}resetTypeahead(){this.#n.current=""}}const Br=[zt,un,hn],Hr=[Mt,fn,gn],Wr=[...Br,...Hr],Lr=wn({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Yt=new It("Select.Root | Combobox.Root"),le=new It("Select.Content | Combobox.Content");class Bn{opts;#t=B(!1);get touchedInput(){return c(this.#t)}set touchedInput(t){P(this.#t,t,!0)}#e=B(null);get inputNode(){return c(this.#e)}set inputNode(t){P(this.#e,t,!0)}#n=B(null);get contentNode(){return c(this.#n)}set contentNode(t){P(this.#n,t,!0)}contentPresence;#o=B(null);get viewportNode(){return c(this.#o)}set viewportNode(t){P(this.#o,t,!0)}#r=B(null);get triggerNode(){return c(this.#r)}set triggerNode(t){P(this.#r,t,!0)}#s=B("");get valueId(){return c(this.#s)}set valueId(t){P(this.#s,t,!0)}#a=B(null);get highlightedNode(){return c(this.#a)}set highlightedNode(t){P(this.#a,t,!0)}#i=w(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return c(this.#i)}set highlightedValue(t){P(this.#i,t)}#l=w(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return c(this.#l)}set highlightedId(t){P(this.#l,t)}#c=w(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return c(this.#c)}set highlightedLabel(t){P(this.#c,t)}isUsingKeyboard=!1;isCombobox=!1;domContext=new ee(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new dn({ref:A(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Gn(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,n=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||n)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let n=this.getCandidateNodes();if(n.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();n=n.filter(r=>{if(!this.viewportNode)return!1;const i=r.getBoundingClientRect();return i.right<o.right&&i.left>o.left&&i.bottom<o.bottom&&i.top>o.top})}this.setHighlightedNode(n[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=t=>Lr.getAttr(t,this.isCombobox?"combobox":void 0)}class Vr extends Bn{opts;isMulti=!1;#t=w(()=>this.opts.value.current!=="");get hasValue(){return c(this.#t)}set hasValue(t){P(this.#t,t)}#e=w(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return c(this.#e)}set currentLabel(t){P(this.#e,t)}#n=w(()=>this.opts.items.current.length?this.opts.items.current.filter(n=>!n.disabled).map(n=>n.label):[]);get candidateLabels(){return c(this.#n)}set candidateLabels(t){P(this.#n,t)}#o=w(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return c(this.#o)}set dataTypeaheadEnabled(t){P(this.#o,t)}constructor(t){super(t),this.opts=t,at(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),ot(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current===t}toggleItem(t,n=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=n)}setInitialHighlightedNode(){cn(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class zr extends Bn{opts;isMulti=!0;#t=w(()=>this.opts.value.current.length>0);get hasValue(){return c(this.#t)}set hasValue(t){P(this.#t,t)}constructor(t){super(t),this.opts=t,at(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),ot(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,n=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=n}setInitialHighlightedNode(){cn(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Kr{static create(t){const{type:n,...o}=t,r=n==="single"?new Vr(o):new zr(o);return Yt.set(r)}}class De{static create(t){return new De(t,Yt.get())}opts;root;attachment;#t;#e;constructor(t,n){this.opts=t,this.root=n,this.attachment=gt(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new ee(t.ref),this.#t=new Ao({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new kr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const r=this.root.opts.items.current.find(i=>i.label===o);r&&(this.root.opts.value.current=r.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#n(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#o(t){this.#n()}#r(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===Mt||t.key===zt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===Re||t.key===ce||t.key===zt||t.key===Mt)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#e.handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const s=this.root.getCandidateNodes();if(!s.length)return;if(t.key===zt){const l=s[0];this.root.setHighlightedNode(l)}else if(t.key===Mt){const l=s[s.length-1];this.root.setHighlightedNode(l)}return}if(t.key===Ue){this.root.handleClose();return}if((t.key===Re||t.key===ce&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#r()))return;if(t.key===Mt&&t.altKey&&this.root.handleClose(),Wr.includes(t.key)){t.preventDefault();const s=this.root.getCandidateNodes(),l=this.root.highlightedNode,a=l?s.indexOf(l):-1,d=this.root.opts.loop.current;let h;if(t.key===zt?h=xo(s,a,d):t.key===Mt?h=So(s,a,d):t.key===fn?h=Po(s,a,10,d):t.key===un?h=Co(s,a,10,d):t.key===hn?h=s[0]:t.key===gn&&(h=s[s.length-1]),!h)return;this.root.setHighlightedNode(h);return}const n=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,r=t.key===ce,i=this.root.getCandidateNodes();if(t.key!==Ue){if(!n&&(o||r)){!this.#t.handleTypeaheadSearch(t.key,i)&&r&&(t.preventDefault(),this.#r());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const n=t.target;n?.hasPointerCapture(t.pointerId)&&n?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#o(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#o(t):this.root.handleClose()))}#s=w(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":fo(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":yn(this.root.opts.open.current),"data-disabled":ne(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return c(this.#s)}set props(t){P(this.#s,t)}}class Ee{static create(t){return le.set(new Ee(t,Yt.get()))}opts;root;attachment;#t=B(!1);get isPositioned(){return c(this.#t)}set isPositioned(t){P(this.#t,t,!0)}domContext;constructor(t,n){this.opts=t,this.root=n,this.attachment=gt(t.ref,o=>this.root.contentNode=o),this.domContext=new ee(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),pn(()=>{this.root.contentNode=null,this.isPositioned=!1}),ot(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=w(()=>me(this.root.isCombobox?"combobox":"select"));onInteractOutside=t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){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=w(()=>({open:this.root.opts.open.current}));get snippetProps(){return c(this.#n)}set snippetProps(t){P(this.#n,t)}#o=w(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":yn(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...c(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return c(this.#o)}set props(t){P(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}}class Ie{static create(t){return new Ie(t,Yt.get())}opts;root;attachment;#t=w(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return c(this.#t)}set isSelected(t){P(this.#t,t)}#e=w(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return c(this.#e)}set isHighlighted(t){P(this.#e,t)}prevHighlighted=new bo(()=>this.isHighlighted);#n=B(!1);get mounted(){return c(this.#n)}set mounted(t){P(this.#n,t,!0)}constructor(t,n){this.opts=t,this.root=n,this.attachment=gt(t.ref),ot([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),ot(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}#o=w(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return c(this.#o)}set snippetProps(t){P(this.#o,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!no){bt(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#r=w(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":ne(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return c(this.#r)}set props(t){P(this.#r,t)}}class Fe{static create(t){return new Fe(t,Yt.get())}opts;root;#t=w(()=>this.root.opts.name.current!=="");get shouldRender(){return c(this.#t)}set shouldRender(t){P(this.#t,t)}constructor(t,n){this.opts=t,this.root=n,this.onfocus=this.onfocus.bind(this)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#e=w(()=>({disabled:Xe(this.root.opts.disabled.current),required:Xe(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return c(this.#e)}set props(t){P(this.#e,t)}}class Me{static create(t){return new Me(t,le.get())}opts;content;root;attachment;#t=B(0);get prevScrollTop(){return c(this.#t)}set prevScrollTop(t){P(this.#t,t,!0)}constructor(t,n){this.opts=t,this.content=n,this.root=n.root,this.attachment=gt(t.ref,o=>{this.root.viewportNode=o})}#e=w(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return c(this.#e)}set props(t){P(this.#e,t)}}class Hn{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=rt;#t=B(!1);get mounted(){return c(this.#t)}set mounted(t){P(this.#t,t,!0)}constructor(t,n){this.opts=t,this.content=n,this.root=n.root,this.attachment=gt(t.ref),ot([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),at(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(t){if(this.autoScrollTimer!==null)return;const n=o=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>n(o+1),this.opts.delay.current(o))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>n(1),this.opts.delay.current(0))}onpointermove(t){this.onpointerdown(t)}onpointerleave(t){this.clearAutoScrollInterval()}#e=w(()=>({id:this.opts.id.current,"aria-hidden":go(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return c(this.#e)}set props(t){P(this.#e,t)}}class ke{static create(t){return new ke(new Hn(t,le.get()))}scrollButtonState;content;root;#t=B(!1);get canScrollDown(){return c(this.#t)}set canScrollDown(t){P(this.#t,t,!0)}scrollIntoViewTimer=null;constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,ot([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),bt(this.root.viewportNode,"scroll",()=>this.handleScroll())}),ot([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),ot(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=oo(5,()=>{this.root.highlightedNode?.scrollIntoView({block:this.root.opts.scrollAlignment.current})}))})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const n=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,o=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<n-o};handleAutoScroll=()=>{const t=this.root.viewportNode,n=this.root.highlightedNode;!t||!n||(t.scrollTop=t.scrollTop+n.offsetHeight)};#e=w(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return c(this.#e)}set props(t){P(this.#e,t)}}class Be{static create(t){return new Be(new Hn(t,le.get()))}scrollButtonState;content;root;#t=B(!1);get canScrollUp(){return c(this.#t)}set canScrollUp(t){P(this.#t,t,!0)}constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,ot([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),bt(this.root.viewportNode,"scroll",()=>this.handleScroll())})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const n=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-n>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#e=w(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return c(this.#e)}set props(t){P(this.#e,t)}}function ue(e,t){H(t,!0);let n=p(t,"value",15);const o=Fe.create({value:A(()=>n())});var r=N(),i=_(r);{var s=l=>{No(l,X(()=>o.props,{get autocomplete(){return t.autocomplete},get value(){return n()},set value(a){n(a)}}))};V(i,l=>{o.shouldRender&&l(s)})}C(e,r),W()}function Wn(e,t){H(t,!0);let n=p(t,"tooltip",3,!1);$t.create({id:A(()=>t.id),virtualEl:A(()=>t.virtualEl),ref:t.ref},n());var o=N(),r=_(o);F(r,()=>t.children??Z),C(e,o),W()}var Rr=Xn('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),Ur=G("<span><!></span>");function Yr(e,t){H(t,!0);let n=p(t,"id",19,te),o=p(t,"width",3,10),r=p(t,"height",3,5),i=L(t,["$$slots","$$events","$$legacy","id","children","child","width","height"]);const s=w(()=>tt(i,{id:n()}));var l=N(),a=_(l);{var d=u=>{var f=N(),g=_(f);F(g,()=>t.child,()=>({props:c(s)})),C(u,f)},h=u=>{var f=Ur();Q(f,()=>({...c(s)}));var g=et(f);{var v=S=>{var m=N(),b=_(m);F(b,()=>t.children??Z),C(S,m)},x=S=>{var m=Rr();an(()=>{Ke(m,"width",o()),Ke(m,"height",r())}),C(S,m)};V(g,S=>{t.children?S(v):S(x,!1)})}nt(f),C(u,f)};V(a,u=>{t.child?u(d):u(h,!1)})}C(e,l),W()}function Xr(e,t){H(t,!0);let n=p(t,"id",19,te),o=p(t,"ref",15,null),r=L(t,["$$slots","$$events","$$legacy","id","ref"]);const i=Te.create({id:A(()=>n()),ref:A(()=>o(),l=>o(l))}),s=w(()=>tt(r,i.props));Yr(e,X(()=>c(s))),W()}function jr(e,t){H(t,!0);let n=p(t,"side",3,"bottom"),o=p(t,"sideOffset",3,0),r=p(t,"align",3,"center"),i=p(t,"alignOffset",3,0),s=p(t,"arrowPadding",3,0),l=p(t,"avoidCollisions",3,!0),a=p(t,"collisionBoundary",19,()=>[]),d=p(t,"collisionPadding",3,0),h=p(t,"hideWhenDetached",3,!1),u=p(t,"onPlaced",3,()=>{}),f=p(t,"sticky",3,"partial"),g=p(t,"updatePositionStrategy",3,"optimized"),v=p(t,"strategy",3,"fixed"),x=p(t,"dir",3,"ltr"),S=p(t,"style",19,()=>({})),m=p(t,"wrapperId",19,te),b=p(t,"customAnchor",3,null),y=p(t,"tooltip",3,!1);const O=Qt.create({side:A(()=>n()),sideOffset:A(()=>o()),align:A(()=>r()),alignOffset:A(()=>i()),id:A(()=>t.id),arrowPadding:A(()=>s()),avoidCollisions:A(()=>l()),collisionBoundary:A(()=>a()),collisionPadding:A(()=>d()),hideWhenDetached:A(()=>h()),onPlaced:A(()=>u()),sticky:A(()=>f()),updatePositionStrategy:A(()=>g()),strategy:A(()=>v()),dir:A(()=>x()),style:A(()=>S()),enabled:A(()=>t.enabled),wrapperId:A(()=>m()),customAnchor:A(()=>b())},y()),T=w(()=>tt(O.wrapperProps,{style:{pointerEvents:"auto"}}));var D=N(),E=_(D);F(E,()=>t.content??Z,()=>({props:O.props,wrapperProps:c(T)})),C(e,D),W()}function qr(e,t){H(t,!0),Jn(()=>{t.onPlaced?.()});var n=N(),o=_(n);F(o,()=>t.content??Z,()=>({props:{},wrapperProps:{}})),C(e,n),W()}function Zr(e,t){let n=p(t,"isStatic",3,!1),o=L(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var r=N(),i=_(r);{var s=a=>{qr(a,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=a=>{jr(a,X({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};V(i,a=>{n()?a(s):a(l,!1)})}C(e,r)}var Gr=G("<!> <!>",1);function Ln(e,t){H(t,!0);let n=p(t,"interactOutsideBehavior",3,"close"),o=p(t,"trapFocus",3,!0),r=p(t,"isValidEvent",3,()=>!1),i=p(t,"customAnchor",3,null),s=p(t,"isStatic",3,!1),l=p(t,"tooltip",3,!1),a=p(t,"contentPointerEvents",3,"auto"),d=L(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"]);Zr(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 i()},get enabled(){return t.enabled},get tooltip(){return l()},content:(u,f)=>{let g=()=>f?.().props,v=()=>f?.().wrapperProps;var x=Gr(),S=_(x);{var m=O=>{Ye(O,{get preventScroll(){return t.preventScroll}})},b=O=>{var T=N(),D=_(T);{var E=I=>{Ye(I,{get preventScroll(){return t.preventScroll}})};V(D,I=>{t.forceMount||I(E)},!0)}C(O,T)};V(S,O=>{t.forceMount&&t.enabled?O(m):O(b,!1)})}var y=mt(S,2);ro(y,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(T,D)=>{let E=()=>D?.().props;io(T,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,z)=>{so(I,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(K,k)=>{let R=()=>k?.().props;lo(K,{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,J)=>{var U=N(),Y=_(U);{let q=w(()=>({props:tt(d,g(),R(),E(),{style:{pointerEvents:a()}}),wrapperProps:v()}));F(Y,()=>t.popper??Z,()=>c(q))}C(M,U)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),C(u,x)},$$slots:{content:!0}}),W()}function Vn(e,t){let n=p(t,"interactOutsideBehavior",3,"close"),o=p(t,"trapFocus",3,!0),r=p(t,"isValidEvent",3,()=>!1),i=p(t,"customAnchor",3,null),s=p(t,"isStatic",3,!1),l=L(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 a=N(),d=_(a);{var h=u=>{Ln(u,X({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 i()},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 o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};V(d,u=>{t.shouldRender&&u(h)})}C(e,a)}function zn(e,t){let n=p(t,"interactOutsideBehavior",3,"close"),o=p(t,"trapFocus",3,!0),r=p(t,"isValidEvent",3,()=>!1),i=p(t,"customAnchor",3,null),s=p(t,"isStatic",3,!1),l=L(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"]);Ln(e,X({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 i()},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 o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}var Jr=G("<div><div><!></div></div>"),Qr=G("<div><div><!></div></div>");function $r(e,t){const n=At();H(t,!0);let o=p(t,"id",19,()=>_t(n)),r=p(t,"ref",15,null),i=p(t,"forceMount",3,!1),s=p(t,"side",3,"bottom"),l=p(t,"onInteractOutside",3,rt),a=p(t,"onEscapeKeydown",3,rt),d=p(t,"preventScroll",3,!1),h=L(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll"]);const u=Ee.create({id:A(()=>o()),ref:A(()=>r(),m=>r(m)),onInteractOutside:A(()=>l()),onEscapeKeydown:A(()=>a())}),f=w(()=>tt(h,u.props));var g=N(),v=_(g);{var x=m=>{zn(m,X(()=>c(f),()=>u.popperProps,{get ref(){return u.opts.ref},get side(){return s()},get enabled(){return u.root.opts.open.current},get id(){return o()},get preventScroll(){return d()},forceMount:!0,get shouldRender(){return u.shouldRender},popper:(y,O)=>{let T=()=>O?.().props,D=()=>O?.().wrapperProps;const E=w(()=>tt(T(),{style:u.props.style}));var I=N(),z=_(I);{var j=k=>{var R=N(),M=_(R);{let J=w(()=>({props:c(E),wrapperProps:D(),...u.snippetProps}));F(M,()=>t.child,()=>c(J))}C(k,R)},K=k=>{var R=Jr();Q(R,()=>({...D()}));var M=et(R);Q(M,()=>({...c(E)}));var J=et(M);F(J,()=>t.children??Z),nt(M),nt(R),C(k,R)};V(z,k=>{t.child?k(j):k(K,!1)})}C(y,I)},$$slots:{popper:!0}}))},S=m=>{var b=N(),y=_(b);{var O=T=>{Vn(T,X(()=>c(f),()=>u.popperProps,{get ref(){return u.opts.ref},get side(){return s()},get open(){return u.root.opts.open.current},get id(){return o()},get preventScroll(){return d()},forceMount:!1,get shouldRender(){return u.shouldRender},popper:(E,I)=>{let z=()=>I?.().props,j=()=>I?.().wrapperProps;const K=w(()=>tt(z(),{style:u.props.style}));var k=N(),R=_(k);{var M=U=>{var Y=N(),q=_(Y);{let $=w(()=>({props:c(K),wrapperProps:j(),...u.snippetProps}));F(q,()=>t.child,()=>c($))}C(U,Y)},J=U=>{var Y=Qr();Q(Y,()=>({...j()}));var q=et(Y);Q(q,()=>({...c(K)}));var $=et(q);F($,()=>t.children??Z),nt(q),nt(Y),C(U,Y)};V(R,U=>{t.child?U(M):U(J,!1)})}C(E,k)},$$slots:{popper:!0}}))};V(y,T=>{i()||T(O)},!0)}C(m,b)};V(v,m=>{i()?m(x):m(S,!1)})}C(e,g),W()}function He(e,t){H(t,!0);let n=p(t,"mounted",15,!1),o=p(t,"onMountedChange",3,rt);Sn(()=>(n(!0),o()(!0),()=>{n(!1),o()(!1)})),W()}var ti=G("<div><!></div>"),ei=G("<!> <!>",1);function ni(e,t){const n=At();H(t,!0);let o=p(t,"id",19,()=>_t(n)),r=p(t,"ref",15,null),i=p(t,"label",19,()=>t.value),s=p(t,"disabled",3,!1),l=p(t,"onHighlight",3,rt),a=p(t,"onUnhighlight",3,rt),d=L(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const h=Ie.create({id:A(()=>o()),ref:A(()=>r(),m=>r(m)),value:A(()=>t.value),disabled:A(()=>s()),label:A(()=>i()),onHighlight:A(()=>l()),onUnhighlight:A(()=>a())}),u=w(()=>tt(d,h.props));var f=ei(),g=_(f);{var v=m=>{var b=N(),y=_(b);{let O=w(()=>({props:c(u),...h.snippetProps}));F(y,()=>t.child,()=>c(O))}C(m,b)},x=m=>{var b=ti();Q(b,()=>({...c(u)}));var y=et(b);F(y,()=>t.children??Z,()=>h.snippetProps),nt(b),C(m,b)};V(g,m=>{t.child?m(v):m(x,!1)})}var S=mt(g,2);He(S,{get mounted(){return h.mounted},set mounted(m){h.mounted=m}}),C(e,f),W()}var oi=G("<div><!></div>");function ri(e,t){const n=At();H(t,!0);let o=p(t,"id",19,()=>_t(n)),r=p(t,"ref",15,null),i=L(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const s=Me.create({id:A(()=>o()),ref:A(()=>r(),f=>r(f))}),l=w(()=>tt(i,s.props));var a=N(),d=_(a);{var h=f=>{var g=N(),v=_(g);F(v,()=>t.child,()=>({props:c(l)})),C(f,g)},u=f=>{var g=oi();Q(g,()=>({...c(l)}));var v=et(g);F(v,()=>t.children??Z),nt(g),C(f,g)};V(d,f=>{t.child?f(h):f(u,!1)})}C(e,a),W()}var ii=G("<div><!></div>"),si=G("<!> <!>",1);function li(e,t){const n=At();H(t,!0);let o=p(t,"id",19,()=>_t(n)),r=p(t,"ref",15,null),i=p(t,"delay",3,()=>50),s=L(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const l=ke.create({id:A(()=>o()),ref:A(()=>r(),f=>r(f)),delay:A(()=>i())}),a=w(()=>tt(s,l.props));var d=N(),h=_(d);{var u=f=>{var g=si(),v=_(g);He(v,{get mounted(){return l.scrollButtonState.mounted},set mounted(b){l.scrollButtonState.mounted=b}});var x=mt(v,2);{var S=b=>{var y=N(),O=_(y);F(O,()=>t.child,()=>({props:s})),C(b,y)},m=b=>{var y=ii();Q(y,()=>({...c(a)}));var O=et(y);F(O,()=>t.children??Z),nt(y),C(b,y)};V(x,b=>{t.child?b(S):b(m,!1)})}C(f,g)};V(h,f=>{l.canScrollDown&&f(u)})}C(e,d),W()}var ai=G("<div><!></div>"),ci=G("<!> <!>",1);function di(e,t){const n=At();H(t,!0);let o=p(t,"id",19,()=>_t(n)),r=p(t,"ref",15,null),i=p(t,"delay",3,()=>50),s=L(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const l=Be.create({id:A(()=>o()),ref:A(()=>r(),f=>r(f)),delay:A(()=>i())}),a=w(()=>tt(s,l.props));var d=N(),h=_(d);{var u=f=>{var g=ci(),v=_(g);He(v,{get mounted(){return l.scrollButtonState.mounted},set mounted(b){l.scrollButtonState.mounted=b}});var x=mt(v,2);{var S=b=>{var y=N(),O=_(y);F(O,()=>t.child,()=>({props:s})),C(b,y)},m=b=>{var y=ai();Q(y,()=>({...c(a)}));var O=et(y);F(O,()=>t.children??Z),nt(y),C(b,y)};V(x,b=>{t.child?b(S):b(m,!1)})}C(f,g)};V(h,f=>{l.canScrollUp&&f(u)})}C(e,d),W()}function sn(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let s=0,l=i-1;s<i;l=s++){const[a,d]=t[s]??[0,0],[h,u]=t[l]??[0,0];d>=o!=u>=o&&n<=(h-a)*(o-d)/(u-d)+a&&(r=!r)}return r}function ln(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function ui(e,t){const n=e.left+e.width/2,o=e.top+e.height/2,r=t.left+t.width/2,i=t.top+t.height/2,s=r-n,l=i-o;return Math.abs(s)>Math.abs(l)?s>0?"right":"left":l>0?"bottom":"top"}class hi{#t;#e;#n=null;#o=null;constructor(t){this.#t=t,this.#e=t.buffer??1,ot([t.triggerNode,t.contentNode,t.enabled],([n,o,r])=>{if(!n||!o||!r){this.#n=null,this.#o=null;return}const i=ao(n),s=u=>{this.#r(u,n,o)},l=u=>{const f=u.relatedTarget;he(f)&&o.contains(f)||(this.#n=[u.clientX,u.clientY],this.#o="content")},a=()=>{this.#n=null,this.#o=null},d=()=>{this.#n=null,this.#o=null},h=u=>{const f=u.relatedTarget;he(f)&&n.contains(f)||(this.#n=[u.clientX,u.clientY],this.#o="trigger")};return[bt(i,"pointermove",s),bt(n,"pointerleave",l),bt(n,"pointerenter",a),bt(o,"pointerenter",d),bt(o,"pointerleave",h)].reduce((u,f)=>()=>{u(),f()},()=>{})})}#r(t,n,o){if(!this.#n||!this.#o)return;const r=[t.clientX,t.clientY],i=n.getBoundingClientRect(),s=o.getBoundingClientRect();if(this.#o==="content"&&ln(r,s)){this.#n=null,this.#o=null;return}if(this.#o==="trigger"&&ln(r,i)){this.#n=null,this.#o=null;return}const l=ui(i,s),a=this.#s(i,s,l);if(a&&sn(r,a))return;const d=this.#o==="content"?s:i,h=this.#a(this.#n,d,l,this.#o);sn(r,h)||(this.#n=null,this.#o=null,this.#t.onPointerExit())}#s(t,n,o){const r=this.#e;switch(o){case"top":return[[Math.min(t.left,n.left)-r,t.top],[Math.min(t.left,n.left)-r,n.bottom],[Math.max(t.right,n.right)+r,n.bottom],[Math.max(t.right,n.right)+r,t.top]];case"bottom":return[[Math.min(t.left,n.left)-r,t.bottom],[Math.min(t.left,n.left)-r,n.top],[Math.max(t.right,n.right)+r,n.top],[Math.max(t.right,n.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-r],[n.right,Math.min(t.top,n.top)-r],[n.right,Math.max(t.bottom,n.bottom)+r],[t.left,Math.max(t.bottom,n.bottom)+r]];case"right":return[[t.right,Math.min(t.top,n.top)-r],[n.left,Math.min(t.top,n.top)-r],[n.left,Math.max(t.bottom,n.bottom)+r],[t.right,Math.max(t.bottom,n.bottom)+r]]}}#a(t,n,o,r){const i=this.#e*4,[s,l]=t;switch(r==="trigger"?this.#i(o):o){case"top":return[[s-i,l+i],[s+i,l+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,l-i],[s+i,l-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,l-i],[s+i,l+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,l-i],[s-i,l+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}}#i(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}var fi=G("<!> <!>",1);function gi(e,t){H(t,!0);let n=p(t,"value",15),o=p(t,"onValueChange",3,rt),r=p(t,"name",3,""),i=p(t,"disabled",3,!1),s=p(t,"open",15,!1),l=p(t,"onOpenChange",3,rt),a=p(t,"onOpenChangeComplete",3,rt),d=p(t,"loop",3,!1),h=p(t,"scrollAlignment",3,"nearest"),u=p(t,"required",3,!1),f=p(t,"items",19,()=>[]),g=p(t,"allowDeselect",3,!1);function v(){n()===void 0&&n(t.type==="single"?"":[])}v(),ot.pre(()=>n(),()=>{v()});let x=B("");const S=Kr.create({type:t.type,value:A(()=>n(),D=>{n(D),o()(D)}),disabled:A(()=>i()),required:A(()=>u()),open:A(()=>s(),D=>{s(D),l()(D)}),loop:A(()=>d()),scrollAlignment:A(()=>h()),name:A(()=>r()),isCombobox:!1,items:A(()=>f()),allowDeselect:A(()=>g()),inputValue:A(()=>c(x),D=>P(x,D,!0)),onOpenChangeComplete:A(()=>a())});var m=fi(),b=_(m);kn(b,{children:(D,E)=>{var I=N(),z=_(I);F(z,()=>t.children??Z),C(D,I)},$$slots:{default:!0}});var y=mt(b,2);{var O=D=>{var E=N(),I=_(E);{var z=K=>{ue(K,{get autocomplete(){return t.autocomplete}})},j=K=>{var k=N(),R=_(k);Qn(R,16,()=>S.opts.value.current,M=>M,(M,J)=>{ue(M,{get value(){return J},get autocomplete(){return t.autocomplete}})}),C(K,k)};V(I,K=>{S.opts.value.current.length===0?K(z):K(j,!1)})}C(D,E)},T=D=>{ue(D,{get autocomplete(){return t.autocomplete},get value(){return S.opts.value.current},set value(E){S.opts.value.current=E}})};V(y,D=>{Array.isArray(S.opts.value.current)?D(O):D(T,!1)})}C(e,m),W()}var pi=G("<button><!></button>");function mi(e,t){const n=At();H(t,!0);let o=p(t,"id",19,()=>_t(n)),r=p(t,"ref",15,null),i=p(t,"type",3,"button"),s=L(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const l=De.create({id:A(()=>o()),ref:A(()=>r(),u=>r(u))}),a=w(()=>tt(s,l.props,{type:i()}));var d=N(),h=_(d);it(h,()=>Wn,(u,f)=>{f(u,{get id(){return o()},get ref(){return l.opts.ref},children:(g,v)=>{var x=N(),S=_(x);{var m=y=>{var O=N(),T=_(O);F(T,()=>t.child,()=>({props:c(a)})),C(y,O)},b=y=>{var O=pi();Q(O,()=>({...c(a)}));var T=et(O);F(T,()=>t.children??Z),nt(O),C(y,O)};V(S,y=>{t.child?y(m):y(b,!1)})}C(g,x)},$$slots:{default:!0}})}),C(e,d),W()}class we{#t;#e;#n=null;constructor(t,n){this.#e=t,this.#t=n,this.stop=this.stop.bind(this),this.start=this.start.bind(this),pn(this.stop)}#o(){this.#n!==null&&(window.clearTimeout(this.#n),this.#n=null)}stop(){this.#o()}start(...t){this.#o(),this.#n=window.setTimeout(()=>{this.#n=null,this.#e(...t)},this.#t)}}const Kn=wn({component:"tooltip",parts:["content","trigger"]}),Rn=new It("Tooltip.Provider"),We=new It("Tooltip.Root");class Un{static create(t){return Rn.set(new Un(t))}opts;#t=B(!0);get isOpenDelayed(){return c(this.#t)}set isOpenDelayed(t){P(this.#t,t,!0)}isPointerInTransit=ht(!1);#e;#n=B(null);constructor(t){this.opts=t,this.#e=new we(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current)}#o=()=>{this.opts.skipDelayDuration.current!==0&&this.#e.start()};#r=()=>{this.#e.stop()};onOpen=t=>{c(this.#n)&&c(this.#n)!==t&&c(this.#n).handleClose(),this.#r(),this.isOpenDelayed=!1,P(this.#n,t,!0)};onClose=t=>{c(this.#n)===t&&P(this.#n,null),this.#o()};isTooltipOpen=t=>c(this.#n)===t}class Le{static create(t){return We.set(new Le(t,Rn.get()))}opts;provider;#t=w(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return c(this.#t)}set delayDuration(t){P(this.#t,t)}#e=w(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return c(this.#e)}set disableHoverableContent(t){P(this.#e,t)}#n=w(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return c(this.#n)}set disableCloseOnTriggerClick(t){P(this.#n,t)}#o=w(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return c(this.#o)}set disabled(t){P(this.#o,t)}#r=w(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return c(this.#r)}set ignoreNonKeyboardFocus(t){P(this.#r,t)}#s=B(null);get contentNode(){return c(this.#s)}set contentNode(t){P(this.#s,t,!0)}contentPresence;#a=B(null);get triggerNode(){return c(this.#a)}set triggerNode(t){P(this.#a,t,!0)}#i=B(!1);#l;#c=w(()=>this.opts.open.current?c(this.#i)?"delayed-open":"instant-open":"closed");get stateAttr(){return c(this.#c)}set stateAttr(t){P(this.#c,t)}constructor(t,n){this.opts=t,this.provider=n,this.#l=new we(()=>{P(this.#i,!0),this.opts.open.current=!0},this.delayDuration??0),this.contentPresence=new dn({open:this.opts.open,ref:A(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),ot(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#l=new we(()=>{P(this.#i,!0),this.opts.open.current=!0},this.delayDuration))}),ot(()=>this.opts.open.current,o=>{o?this.provider.onOpen(this):this.provider.onClose(this)},{lazy:!0})}handleOpen=()=>{this.#l.stop(),P(this.#i,!1),this.opts.open.current=!0};handleClose=()=>{this.#l.stop(),this.opts.open.current=!1};#d=()=>{this.#l.stop();const t=!this.provider.isOpenDelayed,n=this.delayDuration??0;t||n===0?(P(this.#i,n>0&&t,!0),this.opts.open.current=!0):this.#l.start()};onTriggerEnter=()=>{this.#d()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#l.stop()}}class Ve{static create(t){return new Ve(t,We.get())}opts;root;attachment;#t=ht(!1);#e=B(!1);#n=w(()=>this.opts.disabled.current||this.root.disabled);domContext;#o=null;constructor(t,n){this.opts=t,this.root=n,this.domContext=new ee(t.ref),this.attachment=gt(this.opts.ref,o=>this.root.triggerNode=o)}#r=()=>{this.#o!==null&&(clearTimeout(this.#o),this.#o=null)};handlePointerUp=()=>{this.#t.current=!1};#s=()=>{c(this.#n)||(this.#t.current=!1)};#a=()=>{c(this.#n)||(this.#t.current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))};#i=t=>{if(!c(this.#n)&&t.pointerType!=="touch"){if(this.root.provider.isPointerInTransit.current){this.#r(),this.#o=window.setTimeout(()=>{this.root.provider.isPointerInTransit.current&&(this.root.provider.isPointerInTransit.current=!1,this.root.onTriggerEnter(),P(this.#e,!0))},250);return}this.root.onTriggerEnter(),P(this.#e,!0)}};#l=t=>{c(this.#n)||t.pointerType!=="touch"&&(c(this.#e)||(this.#r(),this.root.provider.isPointerInTransit.current=!1,this.root.onTriggerEnter(),P(this.#e,!0)))};#c=()=>{c(this.#n)||(this.#r(),this.root.onTriggerLeave(),P(this.#e,!1))};#d=t=>{this.#t.current||c(this.#n)||this.root.ignoreNonKeyboardFocus&&!co(t.currentTarget)||this.root.handleOpen()};#h=()=>{c(this.#n)||this.root.handleClose()};#f=()=>{this.root.disableCloseOnTriggerClick||c(this.#n)||this.root.handleClose()};#u=w(()=>({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":ne(c(this.#n)),"data-delay-duration":`${this.root.delayDuration}`,[Kn.trigger]:"",tabindex:c(this.#n)?void 0:0,disabled:this.opts.disabled.current,onpointerup:this.#s,onpointerdown:this.#a,onpointerenter:this.#i,onpointermove:this.#l,onpointerleave:this.#c,onfocus:this.#d,onblur:this.#h,onclick:this.#f,...this.attachment}));get props(){return c(this.#u)}set props(t){P(this.#u,t)}}class ze{static create(t){return new ze(t,We.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=gt(this.opts.ref,o=>this.root.contentNode=o),new hi({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()}}),Sn(()=>bt(window,"scroll",o=>{const r=o.target;r&&r.contains(this.root.triggerNode)&&this.root.handleClose()}))}onInteractOutside=t=>{if(he(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}#t=w(()=>({open:this.root.opts.open.current}));get snippetProps(){return c(this.#t)}set snippetProps(t){P(this.#t,t)}#e=w(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":ne(this.root.disabled),style:{outline:"none"},[Kn.content]:"",...this.attachment}));get props(){return c(this.#e)}set props(t){P(this.#e,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}function vi(e,t){H(t,!0);let n=p(t,"open",15,!1),o=p(t,"onOpenChange",3,rt),r=p(t,"onOpenChangeComplete",3,rt);Le.create({open:A(()=>n(),i=>{n(i),o()(i)}),delayDuration:A(()=>t.delayDuration),disableCloseOnTriggerClick:A(()=>t.disableCloseOnTriggerClick),disableHoverableContent:A(()=>t.disableHoverableContent),ignoreNonKeyboardFocus:A(()=>t.ignoreNonKeyboardFocus),disabled:A(()=>t.disabled),onOpenChangeComplete:A(()=>r())}),kn(e,{tooltip:!0,children:(i,s)=>{var l=N(),a=_(l);F(a,()=>t.children??Z),C(i,l)},$$slots:{default:!0}}),W()}var wi=G("<div><div><!></div></div>"),yi=G("<div><div><!></div></div>");function bi(e,t){const n=At();H(t,!0);let o=p(t,"id",19,()=>_t(n)),r=p(t,"ref",15,null),i=p(t,"side",3,"top"),s=p(t,"sideOffset",3,0),l=p(t,"align",3,"center"),a=p(t,"avoidCollisions",3,!0),d=p(t,"arrowPadding",3,0),h=p(t,"sticky",3,"partial"),u=p(t,"hideWhenDetached",3,!1),f=p(t,"collisionPadding",3,0),g=p(t,"onInteractOutside",3,rt),v=p(t,"onEscapeKeydown",3,rt),x=p(t,"forceMount",3,!1),S=L(t,["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount"]);const m=ze.create({id:A(()=>o()),ref:A(()=>r(),I=>r(I)),onInteractOutside:A(()=>g()),onEscapeKeydown:A(()=>v())}),b=w(()=>({side:i(),sideOffset:s(),align:l(),avoidCollisions:a(),arrowPadding:d(),sticky:h(),hideWhenDetached:u(),collisionPadding:f(),strategy:t.strategy})),y=w(()=>tt(S,c(b),m.props));var O=N(),T=_(O);{var D=I=>{{const z=(K,k)=>{let R=()=>k?.().props,M=()=>k?.().wrapperProps;const J=w(()=>tt(R(),{style:me("tooltip")}));var U=N(),Y=_(U);{var q=ct=>{var yt=N(),Tt=_(yt);{let Lt=w(()=>({props:c(J),wrapperProps:M(),...m.snippetProps}));F(Tt,()=>t.child,()=>c(Lt))}C(ct,yt)},$=ct=>{var yt=wi();Q(yt,()=>({...M()}));var Tt=et(yt);Q(Tt,()=>({...c(J)}));var Lt=et(Tt);F(Lt,()=>t.children??Z),nt(Tt),nt(yt),C(ct,yt)};V(Y,ct=>{t.child?ct(q):ct($,!1)})}C(K,U)};let j=w(()=>m.root.disableHoverableContent?"none":"auto");zn(I,X(()=>c(y),()=>m.popperProps,{get enabled(){return m.root.opts.open.current},get id(){return o()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return m.opts.ref},tooltip:!0,get shouldRender(){return m.shouldRender},get contentPointerEvents(){return c(j)},popper:z,$$slots:{popper:!0}}))}},E=I=>{var z=N(),j=_(z);{var K=k=>{{const R=(J,U)=>{let Y=()=>U?.().props,q=()=>U?.().wrapperProps;const $=w(()=>tt(Y(),{style:me("tooltip")}));var ct=N(),yt=_(ct);{var Tt=Ft=>{var Nt=N(),Vt=_(Nt);{let ae=w(()=>({props:c($),wrapperProps:q(),...m.snippetProps}));F(Vt,()=>t.child,()=>c(ae))}C(Ft,Nt)},Lt=Ft=>{var Nt=yi();Q(Nt,()=>({...q()}));var Vt=et(Nt);Q(Vt,()=>({...c($)}));var ae=et(Vt);F(ae,()=>t.children??Z),nt(Vt),nt(Nt),C(Ft,Nt)};V(yt,Ft=>{t.child?Ft(Tt):Ft(Lt,!1)})}C(J,ct)};let M=w(()=>m.root.disableHoverableContent?"none":"auto");Vn(k,X(()=>c(y),()=>m.popperProps,{get open(){return m.root.opts.open.current},get id(){return o()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return m.opts.ref},tooltip:!0,get shouldRender(){return m.shouldRender},get contentPointerEvents(){return c(M)},popper:R,$$slots:{popper:!0}}))}};V(j,k=>{x()||k(K)},!0)}C(I,z)};V(T,I=>{x()?I(D):I(E,!1)})}C(e,O),W()}var xi=G("<button><!></button>");function Si(e,t){const n=At();H(t,!0);let o=p(t,"id",19,()=>_t(n)),r=p(t,"disabled",3,!1),i=p(t,"type",3,"button"),s=p(t,"ref",15,null),l=L(t,["$$slots","$$events","$$legacy","children","child","id","disabled","type","ref"]);const a=Ve.create({id:A(()=>o()),disabled:A(()=>r()??!1),ref:A(()=>s(),h=>s(h))}),d=w(()=>tt(l,a.props,{type:i()}));Wn(e,{get id(){return o()},get ref(){return a.opts.ref},tooltip:!0,children:(h,u)=>{var f=N(),g=_(f);{var v=S=>{var m=N(),b=_(m);F(b,()=>t.child,()=>({props:c(d)})),C(S,m)},x=S=>{var m=xi();Q(m,()=>({...c(d)}));var b=et(m);F(b,()=>t.children??Z),nt(m),C(S,m)};V(g,S=>{t.child?S(v):S(x,!1)})}C(h,f)},$$slots:{default:!0}}),W()}function Pi(e,t){H(t,!0);let n=p(t,"ref",15,null),o=L(t,["$$slots","$$events","$$legacy","ref"]);Xr(e,X(()=>o,{get ref(){return n()},set ref(r){n(r)}})),W()}function Ui(e,t){H(t,!0);let n=p(t,"open",15,!1),o=L(t,["$$slots","$$events","$$legacy","open"]);var r=N(),i=_(r);it(i,()=>vi,(s,l)=>{l(s,X(()=>o,{get open(){return n()},set open(a){n(a)}}))}),C(e,r),W()}function Yi(e,t){H(t,!0);let n=p(t,"ref",15,null),o=L(t,["$$slots","$$events","$$legacy","ref"]);var r=N(),i=_(r);it(i,()=>Si,(s,l)=>{l(s,X({"data-slot":"tooltip-trigger"},()=>o,{get ref(){return n()},set ref(a){n(a)}}))}),C(e,r),W()}function Ci(e,t){let n=L(t,["$$slots","$$events","$$legacy"]);var o=N(),r=_(o);it(r,()=>mn,(i,s)=>{s(i,X(()=>n))}),C(e,o)}var Oi=G("<div></div>"),Ai=G("<!> <!>",1);function Xi(e,t){H(t,!0);let n=p(t,"ref",15,null),o=p(t,"sideOffset",3,0),r=p(t,"side",3,"top"),i=L(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","side","children","arrowClasses","portalProps"]);Ci(e,X(()=>t.portalProps,{children:(s,l)=>{var a=N(),d=_(a);{let h=w(()=>Pt("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));it(d,()=>bi,(u,f)=>{f(u,X({"data-slot":"tooltip-content",get sideOffset(){return o()},get side(){return r()},get class(){return c(h)}},()=>i,{get ref(){return n()},set ref(g){n(g)},children:(g,v)=>{var x=Ai(),S=_(x);F(S,()=>t.children??Z);var m=mt(S,2);{const b=(y,O)=>{let T=()=>O?.().props;var D=Oi();Q(D,E=>({class:E,...T()}),[()=>Pt("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)]),C(y,D)};it(m,()=>Pi,(y,O)=>{O(y,{child:b,$$slots:{child:!0}})})}C(g,x)},$$slots:{default:!0}}))})}C(s,a)},$$slots:{default:!0}})),W()}function ji(e,t){H(t,!0);let n=p(t,"open",15,!1),o=p(t,"value",15),r=L(t,["$$slots","$$events","$$legacy","open","value"]);var i=N(),s=_(i);it(s,()=>gi,(l,a)=>{a(l,X(()=>r,{get open(){return n()},set open(d){n(d)},get value(){return o()},set value(d){o(d)}}))}),C(e,i),W()}function _i(e,t){H(t,!0);let n=L(t,["$$slots","$$events","$$legacy"]);const o=[["path",{d:"M20 6 9 17l-5-5"}]];bn(e,X({name:"check"},()=>n,{get iconNode(){return o},children:(r,i)=>{var s=N(),l=_(s);F(l,()=>t.children??Z),C(r,s)},$$slots:{default:!0}})),W()}var Ti=G('<span class="absolute end-2 flex size-3.5 items-center justify-center"><!></span> <!>',1);function qi(e,t){H(t,!0);let n=p(t,"ref",15,null),o=L(t,["$$slots","$$events","$$legacy","ref","class","value","label","children"]);var r=N(),i=_(r);{const s=(a,d)=>{let h=()=>d?.().selected,u=()=>d?.().highlighted;var f=Ti(),g=_(f),v=et(g);{var x=y=>{_i(y,{class:"size-4"})};V(v,y=>{h()&&y(x)})}nt(g);var S=mt(g,2);{var m=y=>{var O=N(),T=_(O);F(T,()=>t.children,()=>({selected:h(),highlighted:u()})),C(y,O)},b=y=>{var O=jn();an(()=>qn(O,t.label||t.value)),C(y,O)};V(S,y=>{t.children?y(m):y(b,!1)})}C(a,f)};let l=w(()=>Pt("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t.class));it(i,()=>ni,(a,d)=>{d(a,X({get value(){return t.value},"data-slot":"select-item",get class(){return c(l)}},()=>o,{get ref(){return n()},set ref(h){n(h)},children:s,$$slots:{default:!0}}))})}C(e,r),W()}function Ni(e,t){let n=L(t,["$$slots","$$events","$$legacy"]);var o=N(),r=_(o);it(r,()=>mn,(i,s)=>{s(i,X(()=>n))}),C(e,o)}function Di(e,t){H(t,!0);let n=L(t,["$$slots","$$events","$$legacy"]);const o=[["path",{d:"m18 15-6-6-6 6"}]];bn(e,X({name:"chevron-up"},()=>n,{get iconNode(){return o},children:(r,i)=>{var s=N(),l=_(s);F(l,()=>t.children??Z),C(r,s)},$$slots:{default:!0}})),W()}function Ei(e,t){H(t,!0);let n=p(t,"ref",15,null),o=L(t,["$$slots","$$events","$$legacy","ref","class"]);var r=N(),i=_(r);{let s=w(()=>Pt("flex cursor-default items-center justify-center py-1",t.class));it(i,()=>di,(l,a)=>{a(l,X({"data-slot":"select-scroll-up-button",get class(){return c(s)}},()=>o,{get ref(){return n()},set ref(d){n(d)},children:(d,h)=>{Di(d,{class:"size-4"})},$$slots:{default:!0}}))})}C(e,r),W()}function Ii(e,t){H(t,!0);let n=p(t,"ref",15,null),o=L(t,["$$slots","$$events","$$legacy","ref","class"]);var r=N(),i=_(r);{let s=w(()=>Pt("flex cursor-default items-center justify-center py-1",t.class));it(i,()=>li,(l,a)=>{a(l,X({"data-slot":"select-scroll-down-button",get class(){return c(s)}},()=>o,{get ref(){return n()},set ref(d){n(d)},children:(d,h)=>{xn(d,{class:"size-4"})},$$slots:{default:!0}}))})}C(e,r),W()}var Fi=G("<!> <!> <!>",1);function Zi(e,t){H(t,!0);let n=p(t,"ref",15,null),o=p(t,"sideOffset",3,4),r=p(t,"preventScroll",3,!0),i=L(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","portalProps","children","preventScroll"]);Ni(e,X(()=>t.portalProps,{children:(s,l)=>{var a=N(),d=_(a);{let h=w(()=>Pt("bg-popover text-popover-foreground 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 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 relative z-50 max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t.class));it(d,()=>$r,(u,f)=>{f(u,X({get sideOffset(){return o()},get preventScroll(){return r()},"data-slot":"select-content",get class(){return c(h)}},()=>i,{get ref(){return n()},set ref(g){n(g)},children:(g,v)=>{var x=Fi(),S=_(x);Ei(S,{});var m=mt(S,2);{let y=w(()=>Pt("h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1 p-1"));it(m,()=>ri,(O,T)=>{T(O,{get class(){return c(y)},children:(D,E)=>{var I=N(),z=_(I);F(z,()=>t.children??Z),C(D,I)},$$slots:{default:!0}})})}var b=mt(m,2);Ii(b,{}),C(g,x)},$$slots:{default:!0}}))})}C(s,a)},$$slots:{default:!0}})),W()}var Mi=G("<!> <!>",1);function Gi(e,t){H(t,!0);let n=p(t,"ref",15,null),o=p(t,"size",3,"default"),r=L(t,["$$slots","$$events","$$legacy","ref","class","children","size"]);var i=N(),s=_(i);{let l=w(()=>Pt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t.class));it(s,()=>mi,(a,d)=>{d(a,X({"data-slot":"select-trigger",get"data-size"(){return o()},get class(){return c(l)}},()=>r,{get ref(){return n()},set ref(h){n(h)},children:(h,u)=>{var f=Mi(),g=_(f);F(g,()=>t.children??Z);var v=mt(g,2);xn(v,{class:"size-4 opacity-50"}),C(h,f)},$$slots:{default:!0}}))})}C(e,i),W()}export{ji as S,Yi as T,Gi as a,Zi as b,qi as c,Xi as d,Ui as e,Un as f,mo as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as l,a as n}from"./DzVXElzN.js";import{p as d,e as c,h as f,r as p,c as m}from"./B1IR5Su5.js";import{a as h,c as v,b}from"./DBXrsxZQ.js";import{p as u,r as _,b as g}from"./sTLbk5Nm.js";var C=l("<div><!></div>");function k(r,a){d(a,!0);let e=u(a,"ref",15,null),o=_(a,["$$slots","$$events","$$legacy","ref","class","children"]);var s=C();h(s,t=>({"data-slot":"card-title",class:t,...o}),[()=>v("leading-none font-semibold",a.class)]);var i=c(s);b(i,()=>a.children??f),p(s),g(s,t=>e(t),()=>e()),n(r,s),m()}export{k as C};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as xt,x as It,bj as Ot,w as Ft,s as I,bk as tt,aj as Dt,g as v,b,an as F,bl as Nt,bm as et,bn as Rt,A as kt,u as q,m as Pt,j as Mt,y as lt,f as m,h as T,p as A,bo as Lt,c as C,bp as Bt}from"./B1IR5Su5.js";import{q as _t,o as p,c as y,a as w,m as Vt,u as Wt}from"./DzVXElzN.js";import{b as x}from"./DBXrsxZQ.js";import{B as Ut,i as qt,p as d,s as Kt,r as Gt}from"./sTLbk5Nm.js";import{p as K,e as l,c as jt,q as L,s as zt,r as Ht,I as Xt}from"./vwKgQu5P.js";function Yt(n,t,e){xt&&It();var r=new Ut(n),s=!Ot();Ft(()=>{var o=t();s&&o!==null&&typeof o=="object"&&(o={}),r.ensure(o,e)})}class Zt extends Map{#t=new Map;#e=I(0);#n=I(0);#r=tt||-1;constructor(t){if(super(),t){for(var[e,r]of t)super.set(e,r);this.#n.v=super.size}}#s(t){return tt===this.#r?I(t):Dt(t)}has(t){var e=this.#t,r=e.get(t);if(r===void 0){var s=super.get(t);if(s!==void 0)r=this.#s(0),e.set(t,r);else return v(this.#e),!1}return v(r),!0}forEach(t,e){this.#i(),super.forEach(t,e)}get(t){var e=this.#t,r=e.get(t);if(r===void 0){var s=super.get(t);if(s!==void 0)r=this.#s(0),e.set(t,r);else{v(this.#e);return}}return v(r),super.get(t)}set(t,e){var r=this.#t,s=r.get(t),o=super.get(t),i=super.set(t,e),a=this.#e;if(s===void 0)s=this.#s(0),r.set(t,s),b(this.#n,super.size),F(a);else if(o!==e){F(s);var c=a.reactions===null?null:new Set(a.reactions),u=c===null||!s.reactions?.every(h=>c.has(h));u&&F(a)}return i}delete(t){var e=this.#t,r=e.get(t),s=super.delete(t);return r!==void 0&&(e.delete(t),b(this.#n,super.size),b(r,-1),F(this.#e)),s}clear(){if(super.size!==0){super.clear();var t=this.#t;b(this.#n,0);for(var e of t.values())b(e,-1);F(this.#e),t.clear()}}#i(){v(this.#e);var t=this.#t;if(this.#n.v!==t.size){for(var e of super.keys())if(!t.has(e)){var r=this.#s(0);t.set(e,r)}}for([,r]of this.#t)v(r)}keys(){return v(this.#e),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return v(this.#n),super.size}}const Jt=typeof window<"u"?window:void 0;function Qt(n){let t=n.activeElement;for(;t?.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}class $t{#t;#e;constructor(t={}){const{window:e=Jt,document:r=e?.document}=t;e!==void 0&&(this.#t=r,this.#e=_t(s=>{const o=p(e,"focusin",s),i=p(e,"focusout",s);return()=>{o(),i()}}))}get current(){return this.#e?.(),this.#t?Qt(this.#t):null}}new $t;class te{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return Nt(this.#e)}get(){const t=et(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const e=et(this.#e);return e===void 0?t:e}set(t){return Rt(this.#e,t)}}function ee(n,t){switch(n){case"post":q(t);break;case"pre":kt(t);break}}function ft(n,t,e,r={}){const{lazy:s=!1}=r;let o=!s,i=Array.isArray(n)?[]:void 0;ee(t,()=>{const a=Array.isArray(n)?n.map(u=>u()):n();if(!o){o=!0,i=a;return}const c=Pt(()=>e(a,i));return i=a,c})}function E(n,t,e){ft(n,"post",t,e)}function ne(n,t,e){ft(n,"pre",t,e)}E.pre=ne;function R(n){q(()=>()=>{n()})}function re(n,t){return setTimeout(t,n)}function X(n){Mt().then(n)}const se=1,ie=9,oe=11;function z(n){return K(n)&&n.nodeType===se&&typeof n.nodeName=="string"}function ht(n){return K(n)&&n.nodeType===ie}function ae(n){return K(n)&&n.constructor?.name==="VisualViewport"}function ue(n){return K(n)&&n.nodeType!==void 0}function dt(n){return ue(n)&&n.nodeType===oe&&"host"in n}function ce(n,t){if(!n||!t||!z(n)||!z(t))return!1;const e=t.getRootNode?.();if(n===t||n.contains(t))return!0;if(e&&dt(e)){let r=t;for(;r;){if(n===r)return!0;r=r.parentNode||r.host}}return!1}function le(n){return ht(n)?n:ae(n)?n.document:n?.ownerDocument??document}function fe(n){return dt(n)?fe(n.host):ht(n)?n.defaultView??window:z(n)?n.ownerDocument?.defaultView??window:window}function he(n){let t=n.activeElement;for(;t?.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}class vt{element;#t=lt(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return v(this.#t)}set root(t){b(this.#t,t)}constructor(t){typeof t=="function"?this.element=l(t):this.element=t}getDocument=()=>le(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>he(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,e)=>this.getWindow().setTimeout(t,e);clearTimeout=t=>this.getWindow().clearTimeout(t)}const on="ArrowDown",an="ArrowLeft",un="ArrowRight",cn="ArrowUp",ln="End",fn="Enter",de="Escape",hn="Home",dn="PageDown",vn="PageUp",bn=" ",gn="Tab",pn="p",mn="n",yn="j",wn="k",En="h",Sn="l",bt=typeof document<"u",nt=ve();function ve(){return bt&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function rt(n){return n instanceof HTMLElement}function Tn(n){return n instanceof Element}function be(n){return n instanceof Element||n instanceof SVGElement}function An(n){return n.matches(":focus-visible")}function Cn(n){return n!==null}class ge{#t;#e=null;constructor(t){this.#t=t,R(()=>this.#n())}#n(){this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null)}run(t){this.#n();const e=this.#t.ref.current;if(e){if(typeof e.getAnimations!="function"){this.#r(t);return}this.#e=window.requestAnimationFrame(()=>{const r=e.getAnimations();if(r.length===0){this.#r(t);return}Promise.allSettled(r.map(s=>s.finished)).then(()=>{this.#r(t)})})}}#r(t){const e=()=>{t()};this.#t.afterTick?X(e):e()}}class xn{#t;#e;#n;#r=I(!1);constructor(t){this.#t=t,b(this.#r,t.open.current,!0),this.#e=t.enabled??!0,this.#n=new ge({ref:this.#t.ref,afterTick:this.#t.open}),E(()=>this.#t.open.current,e=>{e&&b(this.#r,!0),this.#e&&this.#n.run(()=>{e===this.#t.open.current&&(this.#t.open.current||b(this.#r,!1),this.#t.onComplete?.())})})}get shouldRender(){return v(this.#r)}}function g(){}function pe(n,t){var e=y(),r=m(e);Yt(r,()=>t.children,s=>{var o=y(),i=m(o);x(i,()=>t.children??T),w(s,o)}),w(n,e)}const me=new te("BitsConfig");function ye(){const n=new we(null,{});return me.getOr(n).opts}class we{opts;constructor(t,e){const r=Ee(t,e);this.opts={defaultPortalTo:r(s=>s.defaultPortalTo),defaultLocale:r(s=>s.defaultLocale)}}}function Ee(n,t){return e=>l(()=>{const s=e(t)?.current;if(s!==void 0)return s;if(n!==null)return e(n.opts)?.current})}function Se(n,t){return e=>{const r=ye();return l(()=>{const s=e();if(s!==void 0)return s;const o=n(r).current;return o!==void 0?o:t})}}const Te=Se(n=>n.defaultPortalTo,"body");function In(n,t){A(t,!0);const e=Te(()=>t.to),r=Lt();let s=lt(o);function o(){if(!bt||t.disabled)return null;let f=null;return typeof e.current=="string"?f=document.querySelector(e.current):f=e.current,f}let i;function a(){i&&(Wt(i),i=null)}E([()=>v(s),()=>t.disabled],([f,S])=>{if(!f||S){a();return}return i=Vt(pe,{target:f,props:{children:t.children},context:r}),()=>{a()}});var c=y(),u=m(c);{var h=f=>{var S=y(),k=m(S);x(k,()=>t.children??T),w(f,S)};qt(u,f=>{t.disabled&&f(h)})}w(n,c),C()}function st(n,t=500){let e=null;const r=(...s)=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{n(...s)},t)};return r.destroy=()=>{e!==null&&(clearTimeout(e),e=null)},r}function gt(n,t){return n===t||n.contains(t)}function pt(n){return n?.ownerDocument??document}function On(n){if(!n)return null;for(const t of n.childNodes)if(t.nodeType!==Node.COMMENT_NODE)return t;return null}function Ae(n,t){const{clientX:e,clientY:r}=n,s=t.getBoundingClientRect();return e<s.left||e>s.right||r<s.top||r>s.bottom}var mt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],H=mt.join(","),yt=typeof Element>"u",O=yt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_=!yt&&Element.prototype.getRootNode?function(n){var t;return n==null||(t=n.getRootNode)===null||t===void 0?void 0:t.call(n)}:function(n){return n?.ownerDocument},V=function(t,e){var r;e===void 0&&(e=!0);var s=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=s===""||s==="true",i=o||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):V(t.parentNode));return i},Ce=function(t){var e,r=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return r===""||r==="true"},wt=function(t,e,r){if(V(t))return[];var s=Array.prototype.slice.apply(t.querySelectorAll(H));return e&&O.call(t,H)&&s.unshift(t),s=s.filter(r),s},W=function(t,e,r){for(var s=[],o=Array.from(t);o.length;){var i=o.shift();if(!V(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,u=W(c,!0,r);r.flatten?s.push.apply(s,u):s.push({scopeParent:i,candidates:u})}else{var h=O.call(i,H);h&&r.filter(i)&&(e||!t.includes(i))&&s.push(i);var f=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),S=!V(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(f&&S){var k=W(f===!0?i.children:f.children,!0,r);r.flatten?s.push.apply(s,k):s.push({scopeParent:i,candidates:k})}else o.unshift.apply(o,i.children)}}return s},Et=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},St=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Ce(t))&&!Et(t)?0:t.tabIndex},xe=function(t,e){var r=St(t);return r<0&&e&&!Et(t)?0:r},Ie=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Tt=function(t){return t.tagName==="INPUT"},Oe=function(t){return Tt(t)&&t.type==="hidden"},Fe=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return e},De=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},Ne=function(t){if(!t.name)return!0;var e=t.form||_(t),r=function(a){return e.querySelectorAll('input[type="radio"][name="'+a+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(t.name));else try{s=r(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=De(s,t.form);return!o||o===t},Re=function(t){return Tt(t)&&t.type==="radio"},ke=function(t){return Re(t)&&!Ne(t)},Pe=function(t){var e,r=t&&_(t),s=(e=r)===null||e===void 0?void 0:e.host,o=!1;if(r&&r!==t){var i,a,c;for(o=!!((i=s)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(s)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!o&&s;){var u,h,f;r=_(s),s=(u=r)===null||u===void 0?void 0:u.host,o=!!((h=s)!==null&&h!==void 0&&(f=h.ownerDocument)!==null&&f!==void 0&&f.contains(s))}}return o},it=function(t){var e=t.getBoundingClientRect(),r=e.width,s=e.height;return r===0&&s===0},Me=function(t,e){var r=e.displayCheck,s=e.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var o=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!o}if(getComputedStyle(t).visibility==="hidden")return!0;var i=O.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(O.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof s=="function"){for(var c=t;t;){var u=t.parentElement,h=_(t);if(u&&!u.shadowRoot&&s(u)===!0)return it(t);t.assignedSlot?t=t.assignedSlot:!u&&h!==t.ownerDocument?t=h.host:t=u}t=c}if(Pe(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return it(t);return!1},Le=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var r=0;r<e.children.length;r++){var s=e.children.item(r);if(s.tagName==="LEGEND")return O.call(e,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}e=e.parentElement}return!1},U=function(t,e){return!(e.disabled||Oe(e)||Me(e,t)||Fe(e)||Le(e))},ot=function(t,e){return!(ke(e)||St(e)<0||!U(t,e))},Be=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},At=function(t){var e=[],r=[];return t.forEach(function(s,o){var i=!!s.scopeParent,a=i?s.scopeParent:s,c=xe(a,i),u=i?At(s.candidates):a;c===0?i?e.push.apply(e,u):e.push(a):r.push({documentOrder:o,tabIndex:c,item:s,isScope:i,content:u})}),r.sort(Ie).reduce(function(s,o){return o.isScope?s.push.apply(s,o.content):s.push(o.content),s},[]).concat(e)},_e=function(t,e){e=e||{};var r;return e.getShadowRoot?r=W([t],e.includeContainer,{filter:ot.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Be}):r=wt(t,e.includeContainer,ot.bind(null,e)),At(r)},Ve=function(t,e){e=e||{};var r;return e.getShadowRoot?r=W([t],e.includeContainer,{filter:U.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):r=wt(t,e.includeContainer,U.bind(null,e)),r},We=mt.concat("iframe:not([inert]):not([inert] *)").join(","),Ue=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return O.call(t,We)===!1?!1:U(e,t)};const qe="data-context-menu-trigger",Ke="data-context-menu-content";jt({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});globalThis.bitsDismissableLayers??=new Map;class Y{static create(t){return new Y(t)}opts;#t;#e;#n={pointerdown:!1};#r=!1;#s=!1;#i=void 0;#c;#o=g;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#c=t.onFocusOutside,q(()=>{this.#i=pt(this.opts.ref.current)});let e=g;const r=()=>{this.#h(),globalThis.bitsDismissableLayers.delete(this),this.#a.destroy(),e()};E([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return re(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),e(),e=this.#l())}),r}),R(()=>{this.#h.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#a.destroy(),this.#o(),e()})}#f=t=>{t.defaultPrevented||this.opts.ref.current&&X(()=>{!this.opts.ref.current||this.#g(t.target)||t.target&&!this.#s&&this.#c.current?.(t)})};#l(){return L(p(this.#i,"pointerdown",L(this.#d,this.#b),{capture:!0}),p(this.#i,"pointerdown",L(this.#v,this.#a)),p(this.#i,"focusin",this.#f))}#u=t=>{let e=t;e.defaultPrevented&&(e=at(t)),this.#t.current(t)};#a=st(t=>{if(!this.opts.ref.current){this.#o();return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||ze(t,this.opts.ref.current);if(!this.#r||this.#p()||!e){this.#o();return}let r=t;if(r.defaultPrevented&&(r=at(r)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#o();return}t.pointerType==="touch"?(this.#o(),this.#o=p(this.#i,"click",this.#u,{once:!0})):this.#t.current(r)},10);#d=t=>{this.#n[t.type]=!0};#v=t=>{this.#n[t.type]=!1};#b=()=>{this.opts.ref.current&&(this.#r=je(this.opts.ref.current))};#g=t=>this.opts.ref.current?gt(this.opts.ref.current,t):!1;#h=st(()=>{for(const t in this.#n)this.#n[t]=!1;this.#r=!1},20);#p(){return Object.values(this.#n).some(Boolean)}#m=()=>{this.#s=!0};#y=()=>{this.#s=!1};props={onfocuscapture:this.#m,onblurcapture:this.#y}}function Ge(n=[...globalThis.bitsDismissableLayers]){return n.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function je(n){const t=[...globalThis.bitsDismissableLayers],e=Ge(t);if(e)return e[0].opts.ref.current===n;const[r]=t[0];return r.opts.ref.current===n}function ze(n,t){const e=n.target;if(!be(e))return!1;const r=!!e.closest(`[${qe}]`);if("button"in n&&n.button>0&&!r)return!1;if("button"in n&&n.button===0&&r)return!0;const s=!!t.closest(`[${Ke}]`);return r&&s?!1:pt(e).documentElement.contains(e)&&!gt(t,e)&&Ae(n,t)}function at(n){const t=n.currentTarget,e=n.target;let r;n instanceof PointerEvent?r=new PointerEvent(n.type,n):r=new PointerEvent("pointerdown",n);let s=!1;return new Proxy(r,{get:(i,a)=>a==="currentTarget"?t:a==="target"?e:a==="preventDefault"?()=>{s=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?s:a in i?i[a]:n[a]})}function Fn(n,t){A(t,!0);let e=d(t,"interactOutsideBehavior",3,"close"),r=d(t,"onInteractOutside",3,g),s=d(t,"onFocusOutside",3,g),o=d(t,"isValidEvent",3,()=>!1);const i=Y.create({id:l(()=>t.id),interactOutsideBehavior:l(()=>e()),onInteractOutside:l(()=>r()),enabled:l(()=>t.enabled),onFocusOutside:l(()=>s()),isValidEvent:l(()=>o()),ref:t.ref});var a=y(),c=m(a);x(c,()=>t.children??T,()=>({props:i.props})),w(n,a),C()}globalThis.bitsEscapeLayers??=new Map;class Z{static create(t){return new Z(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new vt(this.opts.ref);let e=g;E(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=this.#t()),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>p(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==de||!He(this))return;const e=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(e)}}function He(n){const t=[...globalThis.bitsEscapeLayers],e=t.findLast(([s,{current:o}])=>o==="close"||o==="ignore");if(e)return e[0]===n;const[r]=t[0];return r===n}function Dn(n,t){A(t,!0);let e=d(t,"escapeKeydownBehavior",3,"close"),r=d(t,"onEscapeKeydown",3,g);Z.create({escapeKeydownBehavior:l(()=>e()),onEscapeKeydown:l(()=>r()),enabled:l(()=>t.enabled),ref:t.ref});var s=y(),o=m(s);x(o,()=>t.children??T),w(n,s),C()}class J{static instance;#t=zt([]);#e=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new J),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const r=document.activeElement;r&&r!==document.body&&this.#n.set(t,r),this.#t.current=this.#t.current.filter(s=>s!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(r=>r!==t);const e=this.getActive();e&&e.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,e){this.#e.set(t,e)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){this.#n.set(t,e)}getPreFocusMemory(t){return this.#n.get(t)}clearPreFocusMemory(t){this.#n.delete(t)}}class Q{#t=!1;#e=null;#n=J.getInstance();#r=[];#s;constructor(t){this.#s=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#i(){for(const t of this.#r)t();this.#r=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#n.register(this),this.#f(),this.#c()}unmount(){this.#e&&(this.#i(),this.#o(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#e=null)}#c(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#s.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const e=this.#u();e?(e.focus(),this.#n.setFocusMemory(this,e)):this.#e.focus()})}#o(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#s.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const e=this.#n.getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}#f(){if(!this.#e||!this.#s.trap.current)return;const t=this.#e,e=t.ownerDocument,r=i=>{if(this.#t||!this.#n.isActiveScope(this))return;const a=i.target;if(!a)return;if(t.contains(a))this.#n.setFocusMemory(this,a);else{const u=this.#n.getFocusMemory(this);if(u&&t.contains(u)&&Ue(u))i.preventDefault(),u.focus();else{const h=this.#u(),f=this.#a()[0];(h||f||t).focus()}}},s=i=>{if(!this.#s.loop||this.#t||i.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#l();if(a.length<2)return;const c=a[0],u=a[a.length-1];!i.shiftKey&&e.activeElement===u?(i.preventDefault(),c.focus()):i.shiftKey&&e.activeElement===c&&(i.preventDefault(),u.focus())};this.#r.push(p(e,"focusin",r,{capture:!0}),p(t,"keydown",s));const o=new MutationObserver(()=>{const i=this.#n.getFocusMemory(this);if(i&&!t.contains(i)){const a=this.#u(),c=this.#a()[0],u=a||c;u?(u.focus(),this.#n.setFocusMemory(this,u)):t.focus()}});o.observe(t,{childList:!0,subtree:!0}),this.#r.push(()=>o.disconnect())}#l(){return this.#e?_e(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#a(){return this.#e?Ve(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let e=null;return E([()=>t.ref.current,()=>t.enabled.current],([r,s])=>{r&&s?(e||(e=new Q(t)),e.mount(r)):e&&(e.unmount(),e=null)}),R(()=>{e?.unmount()}),{get props(){return{tabindex:-1}}}}}function Nn(n,t){A(t,!0);let e=d(t,"enabled",3,!1),r=d(t,"trapFocus",3,!1),s=d(t,"loop",3,!1),o=d(t,"onCloseAutoFocus",3,g),i=d(t,"onOpenAutoFocus",3,g);const a=Q.use({enabled:l(()=>e()),trap:l(()=>r()),loop:s(),onCloseAutoFocus:l(()=>o()),onOpenAutoFocus:l(()=>i()),ref:t.ref});var c=y(),u=m(c);x(u,()=>t.focusScope??T,()=>({props:a.props})),w(n,c),C()}globalThis.bitsTextSelectionLayers??=new Map;class ${static create(t){return new $(t)}opts;domContext;#t=g;constructor(t){this.opts=t,this.domContext=new vt(t.ref);let e=g;E(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=this.#e()),()=>{e(),this.#r(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return L(p(this.domContext.getDocument(),"pointerdown",this.#n),p(this.domContext.getDocument(),"pointerup",Ht(this.#r,this.opts.onPointerUp.current)))}#n=t=>{const e=this.opts.ref.current,r=t.target;!rt(e)||!rt(r)||!this.opts.enabled.current||!Ye(this)||!ce(e,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=Xe(e,this.domContext.getDocument().body)))};#r=()=>{this.#t(),this.#t=g}}const ut=n=>n.style.userSelect||n.style.webkitUserSelect;function Xe(n,t){const e=ut(t),r=ut(n);return P(t,"none"),P(n,"text"),()=>{P(t,e),P(n,r)}}function P(n,t){n.style.userSelect=t,n.style.webkitUserSelect=t}function Ye(n){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const e=t.at(-1);return e?e[0]===n:!1}function Rn(n,t){A(t,!0);let e=d(t,"preventOverflowTextSelection",3,!0),r=d(t,"onPointerDown",3,g),s=d(t,"onPointerUp",3,g);$.create({id:l(()=>t.id),onPointerDown:l(()=>r()),onPointerUp:l(()=>s()),enabled:l(()=>t.enabled&&e()),ref:t.ref});var o=y(),i=m(o);x(i,()=>t.children??T),w(n,o),C()}globalThis.bitsIdCounter??={current:0};function Ze(n="bits"){return globalThis.bitsIdCounter.current++,`${n}-${globalThis.bitsIdCounter.current}`}class Je{#t;#e=0;#n=I();#r;constructor(t){this.#t=t}#s(){this.#e-=1,this.#r&&this.#e<=0&&(this.#r(),b(this.#n,void 0),this.#r=void 0)}get(...t){return this.#e+=1,v(this.#n)===void 0&&(this.#r=Bt(()=>{b(this.#n,this.#t(...t),!0)})),q(()=>()=>{this.#s()}),v(this.#n)}}const B=new Zt;let M=I(null),G=null,D=null,N=!1;const ct=l(()=>{for(const n of B.values())if(n)return!0;return!1});let j=null;const Qe=new Je(()=>{function n(){document.body.setAttribute("style",v(M)??""),document.body.style.removeProperty("--scrollbar-width"),nt&&G?.(),b(M,null)}function t(){D!==null&&(window.clearTimeout(D),D=null)}function e(s,o){t(),N=!0,j=Date.now();const i=j,a=()=>{D=null,j===i&&(Ct(B)?N=!1:(N=!1,o()))},c=s===null?24:s;D=window.setTimeout(a,c)}function r(){v(M)===null&&B.size===0&&!N&&b(M,document.body.getAttribute("style"),!0)}return E(()=>ct.current,()=>{if(!ct.current)return;r(),N=!1;const s=getComputedStyle(document.documentElement),o=getComputedStyle(document.body),i=s.scrollbarGutter?.includes("stable")||o.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(o.paddingRight??"0",10)+a,margin:Number.parseInt(o.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",nt&&(G=p(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),X(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),R(()=>()=>{G?.()}),{get lockMap(){return B},resetBodyStyle:n,scheduleCleanupIfNoNewLocks:e,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});class $e{#t=Ze();#e;#n=()=>null;#r;locked;constructor(t,e=()=>null){this.#e=t,this.#n=e,this.#r=Qe.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#t,this.#e??!1),this.locked=l(()=>this.#r.lockMap.get(this.#t)??!1,r=>this.#r.lockMap.set(this.#t,r)),R(()=>{if(this.#r.lockMap.delete(this.#t),Ct(this.#r.lockMap))return;const r=this.#n();this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle()})}))}}function Ct(n){for(const[t,e]of n)if(e)return!0;return!1}function kn(n,t){A(t,!0);let e=d(t,"preventScroll",3,!0),r=d(t,"restoreScrollDelay",3,null);e()&&new $e(e(),()=>r()),C()}function Pn(n,t){A(t,!0);let e=Gt(t,["$$slots","$$events","$$legacy"]);const r=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];Xt(n,Kt({name:"x"},()=>e,{get iconNode(){return r},children:(s,o)=>{var i=y(),a=m(i);x(a,()=>t.children??T),w(s,i)},$$slots:{default:!0}})),C()}export{cn as A,gn as B,te as C,Fn as D,fn as E,Nn as F,vn as G,hn as H,dn as I,nt as J,le as K,Tn as L,An as M,In as P,bn as S,Rn as T,Pn as X,xn as a,Dn as b,kn as c,un as d,an as e,on as f,ln as g,X as h,rt as i,On as j,En as k,wn as l,Sn as m,g as n,R as o,pn as p,yn as q,mn as r,re as s,Yt as t,Ze as u,Jt as v,E as w,Cn as x,fe as y,vt as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as l,a as c}from"./DzVXElzN.js";import{p as i,e as n,h as f,r as h,c as u}from"./B1IR5Su5.js";import{a as v,c as m,b as p}from"./DBXrsxZQ.js";import{p as b,r as g,b as _}from"./sTLbk5Nm.js";var x=l("<div><!></div>");function k(t,a){i(a,!0);let s=b(a,"ref",15,null),d=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=x();v(r,e=>({"data-slot":"card",class:e,...d}),[()=>m("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a.class)]);var o=n(r);p(o,()=>a.children??f),h(r),_(r,e=>s(e),()=>s()),c(t,r),u()}var w=l("<div><!></div>");function q(t,a){i(a,!0);let s=b(a,"ref",15,null),d=g(a,["$$slots","$$events","$$legacy","ref","class","children"]);var r=w();v(r,e=>({"data-slot":"card-header",class:e,...d}),[()=>m("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a.class)]);var o=n(r);p(o,()=>a.children??f),h(r),_(r,e=>s(e),()=>s()),c(t,r),u()}export{k as C,q as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as j,c as b,a as c,f as x}from"./DzVXElzN.js";import{s as N,g as r,b as d,y as f,p as M,f as g,c as K,e as q,h as T,r as G,d as ht}from"./B1IR5Su5.js";import{b as C,a as H}from"./DBXrsxZQ.js";import{p as i,i as k,r as J,s as et}from"./sTLbk5Nm.js";import{e as l,c as Pt,g as _t,a as L,f as $,d as Q,m as A}from"./vwKgQu5P.js";import{C as Ct,a as ut,w as rt,o as Ot,S as Nt,E as It,n as B,F as St,b as wt,D as At,T as Dt,c as pt}from"./DtUbXRZz.js";const kt=Pt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),E=new Ct("Dialog.Root | AlertDialog.Root");class ot{static create(t){const s=E.getOr(null);return E.set(new ot(t,s))}opts;#t=N(null);get triggerNode(){return r(this.#t)}set triggerNode(t){d(this.#t,t,!0)}#e=N(null);get contentNode(){return r(this.#e)}set contentNode(t){d(this.#e,t,!0)}#r=N(null);get overlayNode(){return r(this.#r)}set overlayNode(t){d(this.#r,t,!0)}#o=N(null);get descriptionNode(){return r(this.#o)}set descriptionNode(t){d(this.#o,t,!0)}#s=N(void 0);get contentId(){return r(this.#s)}set contentId(t){d(this.#s,t,!0)}#n=N(void 0);get titleId(){return r(this.#n)}set titleId(t){d(this.#n,t,!0)}#i=N(void 0);get triggerId(){return r(this.#i)}set triggerId(t){d(this.#i,t,!0)}#a=N(void 0);get descriptionId(){return r(this.#a)}set descriptionId(t){d(this.#a,t,!0)}#d=N(null);get cancelNode(){return r(this.#d)}set cancelNode(t){d(this.#d,t,!0)}#c=N(0);get nestedOpenCount(){return r(this.#c)}set nestedOpenCount(t){d(this.#c,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,s){this.opts=t,this.parent=s,this.depth=s?s.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new ut({ref:l(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ut({ref:l(()=>this.overlayNode),open:this.opts.open,enabled:!0}),rt(()=>this.opts.open.current,n=>{this.parent&&(n?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Ot(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>kt.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#l=f(()=>({"data-state":_t(this.opts.open.current)}));get sharedProps(){return r(this.#l)}set sharedProps(t){d(this.#l,t)}}class st{static create(t){return new st(t,E.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.attachment=L(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===Nt||t.key===It)&&(t.preventDefault(),this.root.handleClose())}#t=f(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return r(this.#t)}set props(t){d(this.#t,t)}}class nt{static create(t){return new nt(t,E.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.root.titleId=this.opts.id.current,this.attachment=L(this.opts.ref),rt.pre(()=>this.opts.id.current,n=>{this.root.titleId=n})}#t=f(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return r(this.#t)}set props(t){d(this.#t,t)}}class it{static create(t){return new it(t,E.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.root.descriptionId=this.opts.id.current,this.attachment=L(this.opts.ref,n=>{this.root.descriptionNode=n}),rt.pre(()=>this.opts.id.current,n=>{this.root.descriptionId=n})}#t=f(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return r(this.#t)}set props(t){d(this.#t,t)}}class at{static create(t){return new at(t,E.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.attachment=L(this.opts.ref,n=>{this.root.contentNode=n,this.root.contentId=n?.id})}#t=f(()=>({open:this.root.opts.open.current}));get snippetProps(){return r(this.#t)}set snippetProps(t){d(this.#t,t)}#e=f(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":$(this.root.nestedOpenCount>0),"data-nested":$(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return r(this.#e)}set props(t){d(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class dt{static create(t){return new dt(t,E.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.attachment=L(this.opts.ref,n=>this.root.overlayNode=n)}#t=f(()=>({open:this.root.opts.open.current}));get snippetProps(){return r(this.#t)}set snippetProps(t){d(this.#t,t)}#e=f(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":$(this.root.nestedOpenCount>0),"data-nested":$(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return r(this.#e)}set props(t){d(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}var Ft=x("<div><!></div>");function Jt(P,t){const s=j();M(t,!0);let n=i(t,"id",19,()=>Q(s)),u=i(t,"ref",15,null),v=i(t,"level",3,2),_=J(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const h=nt.create({id:l(()=>n()),level:l(()=>v()),ref:l(()=>u(),o=>u(o))}),m=f(()=>A(_,h.props));var y=b(),I=g(y);{var O=o=>{var e=b(),p=g(e);C(p,()=>t.child,()=>({props:r(m)})),c(o,e)},a=o=>{var e=Ft();H(e,()=>({...r(m)}));var p=q(e);C(p,()=>t.children??T),G(e),c(o,e)};k(I,o=>{t.child?o(O):o(a,!1)})}c(P,y),K()}var Et=x("<div><!></div>");function Lt(P,t){const s=j();M(t,!0);let n=i(t,"id",19,()=>Q(s)),u=i(t,"forceMount",3,!1),v=i(t,"ref",15,null),_=J(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const h=dt.create({id:l(()=>n()),ref:l(()=>v(),a=>v(a))}),m=f(()=>A(_,h.props));var y=b(),I=g(y);{var O=a=>{var o=b(),e=g(o);{var p=D=>{var S=b(),w=g(S);{let X=f(()=>({props:A(r(m)),...h.snippetProps}));C(w,()=>t.child,()=>r(X))}c(D,S)},V=D=>{var S=Et();H(S,X=>({...X}),[()=>A(r(m))]);var w=q(S);C(w,()=>t.children??T,()=>h.snippetProps),G(S),c(D,S)};k(e,D=>{t.child?D(p):D(V,!1)})}c(a,o)};k(I,a=>{(h.shouldRender||u())&&a(O)})}c(P,y),K()}var Rt=x("<div><!></div>");function Qt(P,t){const s=j();M(t,!0);let n=i(t,"id",19,()=>Q(s)),u=i(t,"ref",15,null),v=J(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const _=it.create({id:l(()=>n()),ref:l(()=>u(),a=>u(a))}),h=f(()=>A(v,_.props));var m=b(),y=g(m);{var I=a=>{var o=b(),e=g(o);C(e,()=>t.child,()=>({props:r(h)})),c(a,o)},O=a=>{var o=Rt();H(o,()=>({...r(h)}));var e=q(o);C(e,()=>t.children??T),G(o),c(a,o)};k(y,a=>{t.child?a(I):a(O,!1)})}c(P,m),K()}function Vt(P,t){M(t,!0);let s=i(t,"open",15,!1),n=i(t,"onOpenChange",3,B),u=i(t,"onOpenChangeComplete",3,B);ot.create({variant:l(()=>"dialog"),open:l(()=>s(),h=>{s(h),n()(h)}),onOpenChangeComplete:l(()=>u())});var v=b(),_=g(v);C(_,()=>t.children??T),c(P,v),K()}var Bt=x("<button><!></button>");function Xt(P,t){const s=j();M(t,!0);let n=i(t,"id",19,()=>Q(s)),u=i(t,"ref",15,null),v=i(t,"disabled",3,!1),_=J(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const h=st.create({variant:l(()=>"close"),id:l(()=>n()),ref:l(()=>u(),o=>u(o)),disabled:l(()=>!!v())}),m=f(()=>A(_,h.props));var y=b(),I=g(y);{var O=o=>{var e=b(),p=g(e);C(p,()=>t.child,()=>({props:r(m)})),c(o,e)},a=o=>{var e=Bt();H(e,()=>({...r(m)}));var p=q(e);C(p,()=>t.children??T),G(e),c(o,e)};k(I,o=>{t.child?o(O):o(a,!1)})}c(P,y),K()}var xt=x("<!> <!>",1),Mt=x("<!> <div><!></div>",1);function Yt(P,t){const s=j();M(t,!0);let n=i(t,"id",19,()=>Q(s)),u=i(t,"ref",15,null),v=i(t,"forceMount",3,!1),_=i(t,"onCloseAutoFocus",3,B),h=i(t,"onOpenAutoFocus",3,B),m=i(t,"onEscapeKeydown",3,B),y=i(t,"onInteractOutside",3,B),I=i(t,"trapFocus",3,!0),O=i(t,"preventScroll",3,!0),a=i(t,"restoreScrollDelay",3,null),o=J(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const e=at.create({id:l(()=>n()),ref:l(()=>u(),w=>u(w))}),p=f(()=>A(o,e.props));var V=b(),D=g(V);{var S=w=>{St(w,{get ref(){return e.opts.ref},loop:!0,get trapFocus(){return I()},get enabled(){return e.root.opts.open.current},get onOpenAutoFocus(){return h()},get onCloseAutoFocus(){return _()},focusScope:(ft,gt)=>{let ct=()=>gt?.().props;wt(ft,et(()=>r(p),{get enabled(){return e.root.opts.open.current},get ref(){return e.opts.ref},onEscapeKeydown:Y=>{m()(Y),!Y.defaultPrevented&&e.root.handleClose()},children:(Y,Kt)=>{At(Y,et(()=>r(p),{get ref(){return e.opts.ref},get enabled(){return e.root.opts.open.current},onInteractOutside:Z=>{y()(Z),!Z.defaultPrevented&&e.root.handleClose()},children:(Z,Tt)=>{Dt(Z,et(()=>r(p),{get ref(){return e.opts.ref},get enabled(){return e.root.opts.open.current},children:(vt,zt)=>{var lt=b(),mt=g(lt);{var yt=R=>{var z=xt(),U=g(z);{var W=F=>{pt(F,{get preventScroll(){return O()},get restoreScrollDelay(){return a()}})};k(U,F=>{e.root.opts.open.current&&F(W)})}var tt=ht(U,2);{let F=f(()=>({props:A(r(p),ct()),...e.snippetProps}));C(tt,()=>t.child,()=>r(F))}c(R,z)},bt=R=>{var z=Mt(),U=g(z);pt(U,{get preventScroll(){return O()}});var W=ht(U,2);H(W,F=>({...F}),[()=>A(r(p),ct())]);var tt=q(W);C(tt,()=>t.children??T),G(W),c(R,z)};k(mt,R=>{t.child?R(yt):R(bt,!1)})}c(vt,lt)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};k(D,w=>{(e.shouldRender||v())&&w(S)})}c(P,V),K()}export{Vt as D,Jt as a,Lt as b,Yt as c,Xt as d,Qt as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{am as ee,g as z,aj as G,q as te,m as re,an as Y,Z as W,Q as o,k as d,aa as v,w as ne,x as B,ao as D,U as se,P as p,ap as A,N as O,O as b,aq as ie,ak as L,ar as E,as as H,at as ae,au as C,z as X,R as oe,av as $,aw as ue,ax as q,ay as le,az as fe,M as x,W as N,n as ce,V as de,aA as U,aB as he,E as _e,aC as pe,aD as ve,aE as ge,a3 as me,aF as ye,a4 as Ee,aG as R,aH as we,aI as Te,aJ as be,aK as Ne,aL as Re,aM as I,aN as Se,aO as Ae,aP as F,X as k,aQ as ke,aR as Le,aS as De,aT as Me,p as Oe,aU as xe,aV as Ce,c as Ie}from"./B1IR5Su5.js";function Fe(t){let e=0,r=G(0),i;return()=>{ee()&&(z(r),te(()=>(e===0&&(i=re(()=>t(()=>Y(r)))),e+=1,()=>{W(()=>{e-=1,e===0&&(i?.(),i=void 0,Y(r))})})))}}var Pe=_e|pe|ve;function Ve(t,e,r){new We(t,e,r)}class We{parent;is_pending=!1;#t;#g=d?o:null;#n;#f;#s;#r=null;#e=null;#i=null;#a=null;#u=null;#c=0;#o=0;#d=!1;#h=new Set;#_=new Set;#l=null;#E=Fe(()=>(this.#l=G(this.#c),()=>{this.#l=null}));constructor(e,r,i){this.#t=e,this.#n=r,this.#f=i,this.parent=v.b,this.is_pending=!!this.#n.pending,this.#s=ne(()=>{if(v.b=this,d){const n=this.#g;B(),n.nodeType===D&&n.data===se?this.#T():(this.#w(),this.#o===0&&(this.is_pending=!1))}else{var s=this.#m();try{this.#r=p(()=>i(s))}catch(n){this.error(n)}this.#o>0?this.#v():this.is_pending=!1}return()=>{this.#u?.remove()}},Pe),d&&(this.#t=o)}#w(){try{this.#r=p(()=>this.#f(this.#t))}catch(e){this.error(e)}}#T(){const e=this.#n.pending;e&&(this.#e=p(()=>e(this.#t)),A.enqueue(()=>{var r=this.#m();this.#r=this.#p(()=>(A.ensure(),p(()=>this.#f(r)))),this.#o>0?this.#v():(O(this.#e,()=>{this.#e=null}),this.is_pending=!1)}))}#m(){var e=this.#t;return this.is_pending&&(this.#u=b(),this.#t.before(this.#u),e=this.#u),e}defer_effect(e){ie(e,this.#h,this.#_)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#p(e){var r=v,i=C,s=X;L(this.#s),E(this.#s),H(this.#s.ctx);try{return e()}catch(n){return ae(n),null}finally{L(r),E(i),H(s)}}#v(){const e=this.#n.pending;this.#r!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#u),oe(this.#r,this.#a)),this.#e===null&&(this.#e=p(()=>e(this.#t)))}#y(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e);return}if(this.#o+=e,this.#o===0){this.is_pending=!1;for(const r of this.#h)$(r,ue),q(r);for(const r of this.#_)$(r,le),q(r);this.#h.clear(),this.#_.clear(),this.#e&&O(this.#e,()=>{this.#e=null}),this.#a&&(this.#t.before(this.#a),this.#a=null)}}update_pending_count(e){this.#y(e),this.#c+=e,this.#l&&fe(this.#l,this.#c)}get_effect_pending(){return this.#E(),z(this.#l)}error(e){var r=this.#n.onerror;let i=this.#n.failed;if(this.#d||!r&&!i)throw e;this.#r&&(x(this.#r),this.#r=null),this.#e&&(x(this.#e),this.#e=null),this.#i&&(x(this.#i),this.#i=null),d&&(N(this.#g),ce(),N(de()));var s=!1,n=!1;const a=()=>{if(s){ge();return}s=!0,n&&he(),A.ensure(),this.#c=0,this.#i!==null&&O(this.#i,()=>{this.#i=null}),this.is_pending=this.has_pending_snippet(),this.#r=this.#p(()=>(this.#d=!1,p(()=>this.#f(this.#t)))),this.#o>0?this.#v():this.is_pending=!1};var c=C;try{E(null),n=!0,r?.(e,a),n=!1}catch(u){U(u,this.#s&&this.#s.parent)}finally{E(c)}i&&W(()=>{this.#i=this.#p(()=>{A.ensure(),this.#d=!0;try{return p(()=>{i(this.#t,()=>e,()=>a)})}catch(u){return U(u,this.#s.parent),null}finally{this.#d=!1}})})}}function Xe(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Be=["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 Be.includes(t)}const Ye={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(),Ye[t]??t}const He=["touchstart","touchmove"];function $e(t){return He.includes(t)}const qe=["textarea","script","style","title"];function Ke(t){return qe.includes(t)}const Q=new Set,P=new Set;function J(t,e,r,i={}){function s(n){if(i.capture||T.call(e,n),!n.cancelBubble)return ye(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?W(()=>{e.addEventListener(t,s,i)}):e.addEventListener(t,s,i),s}function Ze(t,e,r,i={}){var s=J(e,t,r,i);return()=>{t.removeEventListener(e,s,i)}}function et(t,e,r,i,s){var n={capture:i,passive:s},a=J(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&me(()=>{e.removeEventListener(t,a,n)})}function tt(t){for(var e=0;e<t.length;e++)Q.add(t[e]);for(var r of P)r(t)}let j=null;function T(t){var e=this,r=e.ownerDocument,i=t.type,s=t.composedPath?.()||[],n=s[0]||t.target;j=t;var a=0,c=j===t&&t.__root;if(c){var u=s.indexOf(c);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var g=s.indexOf(e);if(g===-1)return;u<=g&&(a=u)}if(n=s[a]||t.target,n!==e){Ee(t,"currentTarget",{configurable:!0,get(){return n||r}});var M=C,_=v;E(null),L(null);try{for(var l,f=[];n!==null;){var m=n.assignedSlot||n.parentNode||n.host||null;try{var w=n["__"+i];w!=null&&(!n.disabled||t.target===n)&&w.call(n,t)}catch(S){l?f.push(S):l=S}if(t.cancelBubble||m===e||m===null)break;n=m}if(l){for(let S of f)queueMicrotask(()=>{throw S});throw l}}finally{t.__root=e,delete t.currentTarget,E(M),L(_)}}}function K(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function h(t,e){var r=v;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function rt(t,e){var r=(e&Te)!==0,i=(e&be)!==0,s,n=!t.startsWith("<!>");return()=>{if(d)return h(o,null),o;s===void 0&&(s=K(n?t:"<!>"+t),r||(s=R(s)));var a=i||we?document.importNode(s,!0):s.cloneNode(!0);if(r){var c=R(a),u=a.lastChild;h(c,u)}else h(a,a);return a}}function Ue(t,e,r="svg"){var i=!t.startsWith("<!>"),s=`<${r}>${i?t:"<!>"+t}</${r}>`,n;return()=>{if(d)return h(o,null),o;if(!n){var a=K(s),c=R(a);n=R(c)}var u=n.cloneNode(!0);return h(u,u),u}}function nt(t,e){return Ue(t,e,"svg")}function st(t=""){if(!d){var e=b(t+"");return h(e,e),e}var r=o;return r.nodeType!==Re&&(r.before(r=b()),N(r)),h(r,r),r}function it(){if(d)return h(o,null),o;var t=document.createDocumentFragment(),e=document.createComment(""),r=b();return t.append(e,r),h(e,r),t}function at(t,e){if(d){var r=v;((r.f&Ne)===0||r.nodes.end===null)&&(r.nodes.end=o),B();return}t!==null&&t.before(e)}function ot(){if(d&&o&&o.nodeType===D&&o.textContent?.startsWith("$")){const t=o.textContent.substring(1);return B(),t}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function ut(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function je(t,e){return Z(t,e)}function lt(t,e){I(),e.intro=e.intro??!1;const r=e.target,i=d,s=o;try{for(var n=R(r);n&&(n.nodeType!==D||n.data!==Se);)n=Ae(n);if(!n)throw F;k(!0),N(n);const a=Z(t,{...e,anchor:n});return k(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(c=>c.startsWith("https://svelte.dev/e/")))throw a;return a!==F&&console.warn("Failed to hydrate: ",a),e.recover===!1&&ke(),I(),Le(r),k(!1),je(t,e)}finally{k(i),N(s)}}const y=new Map;function Z(t,{target:e,anchor:r,props:i={},events:s,context:n,intro:a=!0}){I();var c=new Set,u=_=>{for(var l=0;l<_.length;l++){var f=_[l];if(!c.has(f)){c.add(f);var m=$e(f);e.addEventListener(f,T,{passive:m});var w=y.get(f);w===void 0?(document.addEventListener(f,T,{passive:m}),y.set(f,1)):y.set(f,w+1)}}};u(De(Q)),P.add(u);var g=void 0,M=Me(()=>{var _=r??e.appendChild(b());return Ve(_,{pending:()=>{}},l=>{if(n){Oe({});var f=X;f.c=n}if(s&&(i.$$events=s),d&&h(l,null),g=t(l,i)||{},d&&(v.nodes.end=o,o===null||o.nodeType!==D||o.data!==xe))throw Ce(),F;n&&Ie()}),()=>{for(var l of c){e.removeEventListener(l,T);var f=y.get(l);--f===0?(document.removeEventListener(l,T),y.delete(l)):y.set(l,f)}P.delete(u),_!==r&&_.parentNode?.removeChild(_)}});return V.set(g,M),g}let V=new WeakMap;function ft(t,e){const r=V.get(t);return r?(V.delete(t),r(e)):Promise.resolve()}const ze="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ze);export{at as a,nt as b,it as c,tt as d,et as e,rt as f,h as g,lt as h,Ke as i,Xe as j,J as k,Qe as l,je as m,Je as n,Ze as o,ot as p,Fe as q,ut as s,st as t,ft as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as u,i as f,j as m,k as _,m as h,q as b,v as k}from"./B1IR5Su5.js";function E(e,a,v=a){var o=new WeakSet;u(e,"input",async r=>{var l=r?e.defaultValue:e.value;if(l=d(e)?i(l):l,v(l),f!==null&&o.add(f),await m(),l!==(l=a())){var n=e.selectionStart,s=e.selectionEnd,t=e.value.length;if(e.value=l??"",s!==null){var c=e.value.length;n===s&&s===t&&c>t?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=n,e.selectionEnd=Math.min(s,c))}}}),(_&&e.defaultValue!==e.value||h(a)==null&&e.value)&&(v(d(e)?i(e.value):e.value),f!==null&&o.add(f)),b(()=>{var r=a();if(e===document.activeElement){var l=k??f;if(o.has(l))return}d(e)&&r===i(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function d(e){var a=e.type;return a==="number"||a==="range"}function i(e){return e===""?null:+e}function S(e,a,v=a){u(e,"change",()=>{v(e.files)}),_&&e.files&&v(e.files),b(()=>{e.files=a()})}export{E as a,S as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as i,s as h,g as l}from"./B1IR5Su5.js";import{D as S}from"./DBXrsxZQ.js";const g=`${S}/ws`,m=3e4,r=1e4,a=10;class b{ws=null;baseUrl;projectPath;state="disconnected";intentionalDisconnect=!1;subscriptions=new Map;eventHandlers=new Map;stateChangeHandlers=new Set;lastSeqProcessed=-1;reconnectAttempts=0;reconnectTimer=null;connectionLostTimer=null;stats={connect_count:0,reconnect_count:0,last_connected_at:null,last_disconnected_at:null};constructor(t={}){typeof t=="string"?(this.baseUrl=t,this.projectPath=null):(this.baseUrl=t.url||g,this.projectPath=t.projectPath||null)}getUrl(){if(!this.projectPath)return this.baseUrl;const t=new URL(this.baseUrl);return t.searchParams.set("project",this.projectPath),t.toString()}setProjectPath(t){this.projectPath!==t&&(this.projectPath=t,this.isConnected()&&(this.reconnectAttempts=0,this.disconnect(),this.connect()))}getProjectPath(){return this.projectPath}getState(){return this.state}isConnected(){return this.state==="connected"}isConnectionLost(){return this.state==="connected"||!this.stats.last_disconnected_at?!1:Date.now()-this.stats.last_disconnected_at.getTime()>r}connect(){if(this.ws&&(this.state==="connected"||this.state==="connecting")){console.warn("[WebSocketManager] Already connected or connecting");return}this.intentionalDisconnect=!1,this.setState("connecting");const t=this.getUrl();console.log("[WebSocketManager] Connecting to:",t);const e=new WebSocket(t);this.ws=e,e.onopen=()=>{this.ws===e&&(console.log("[WebSocketManager] Connected"),this.setState("connected"),this.reconnectAttempts=0,this.stats.connect_count++,this.stats.last_connected_at=new Date,this.clearConnectionLostTimer())},e.onmessage=n=>{if(this.ws===e)try{const c=JSON.parse(n.data);this.handleMessage(c)}catch(c){console.error("[WebSocketManager] Failed to parse message:",c)}},e.onerror=n=>{this.ws===e&&console.error("[WebSocketManager] WebSocket error:",n)},e.onclose=n=>{if(this.ws===e){if(console.log("[WebSocketManager] Disconnected:",n.code,n.reason),this.setState("disconnected"),this.stats.last_disconnected_at=new Date,this.ws=null,this.intentionalDisconnect){this.intentionalDisconnect=!1;return}this.startConnectionLostTimer(),this.scheduleReconnect()}}}disconnect(){if(this.clearReconnectTimer(),this.clearConnectionLostTimer(),this.intentionalDisconnect=!0,this.ws){const t=this.ws;this.ws=null,t.close(1e3,"Client disconnect")}this.setState("disconnected")}subscribe(t){for(const e of t)this.subscriptions.has(e)||this.subscriptions.set(e,{topic:e,subscribed_at:new Date});this.isConnected()&&this.sendCommand({action:"subscribe",request_id:crypto.randomUUID(),payload:{topics:t}})}unsubscribe(t){for(const e of t)this.subscriptions.delete(e);this.isConnected()&&this.sendCommand({action:"unsubscribe",request_id:crypto.randomUUID(),payload:{topics:t}})}on(t,e){this.eventHandlers.has(t)||this.eventHandlers.set(t,new Set),this.eventHandlers.get(t).add(e)}off(t,e){const n=this.eventHandlers.get(t);n&&(n.delete(e),n.size===0&&this.eventHandlers.delete(t))}onStateChange(t){this.stateChangeHandlers.add(t)}offStateChange(t){this.stateChangeHandlers.delete(t)}handleMessage(t){if("event"in t&&t.event==="connected"){if(console.log("[WebSocketManager] Session ID:",t.data.session_id),this.lastSeqProcessed=-1,this.subscriptions.size>0){const n=Array.from(this.subscriptions.keys());this.sendCommand({action:"subscribe",request_id:crypto.randomUUID(),payload:{topics:n}})}return}if("ack"in t){const e=t;e.success||console.error("[WebSocketManager] Command failed:",e.error);return}if("msg_id"in t&&"seq"in t){const e=t;if(e.seq<=this.lastSeqProcessed){console.debug("[WebSocketManager] Skipping duplicate event:",e.seq);return}this.lastSeqProcessed=e.seq;const n=this.eventHandlers.get(e.topic);if(n)for(const c of n)try{c(e)}catch(f){console.error("[WebSocketManager] Event handler error:",f)}}}sendCommand(t){if(!this.ws||this.ws.readyState!==WebSocket.OPEN){console.warn("[WebSocketManager] Cannot send command: not connected");return}try{this.ws.send(JSON.stringify(t))}catch(e){console.error("[WebSocketManager] Failed to send command:",e)}}scheduleReconnect(){if(this.reconnectAttempts>=a){console.error("[WebSocketManager] Max reconnect attempts reached");return}this.clearReconnectTimer(),this.reconnectAttempts++,this.stats.reconnect_count++;const t=Math.min(Math.pow(2,this.reconnectAttempts-1)*1e3,m);console.log(`[WebSocketManager] Reconnecting in ${t}ms (attempt ${this.reconnectAttempts}/${a})`),this.reconnectTimer=setTimeout(()=>{this.setState("reconnecting"),this.connect()},t)}clearReconnectTimer(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}startConnectionLostTimer(){this.clearConnectionLostTimer(),this.connectionLostTimer=setTimeout(()=>{this.notifyConnectionLostChange()},r)}clearConnectionLostTimer(){this.connectionLostTimer&&(clearTimeout(this.connectionLostTimer),this.connectionLostTimer=null)}setState(t){this.state!==t&&(this.state=t,this.notifyStateChange())}notifyStateChange(){for(const t of this.stateChangeHandlers)try{t(this.state)}catch(e){console.error("[WebSocketManager] State change handler error:",e)}}notifyConnectionLostChange(){this.notifyStateChange()}getStats(){return{...this.stats}}getSubscriptions(){return Array.from(this.subscriptions.keys())}}let s=null,d=h("disconnected"),u=h(!1);function w(o){if(s){console.warn("[ConnectionStore] Already initialized");return}s=new b(o),s.onStateChange(t=>{i(d,t,!0),i(u,s.isConnectionLost(),!0)}),s.connect()}function T(o){if(!s){console.warn("[ConnectionStore] Not initialized, cannot reconnect with project");return}s.setProjectPath(o)}function _(){return l(d)}function M(){return l(u)}function k(o){s&&s.subscribe(o)}function y(o){s&&s.unsubscribe(o)}function P(o,t){s&&s.on(o,t)}function L(o,t){s&&s.off(o,t)}export{L as a,w as b,_ as g,M as i,P as o,T as r,k as s,y as u};
|