@paperkite/plugin-runtime-console 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/public/_app/immutable/assets/0.8e19Eas9.css +1 -0
- package/public/_app/immutable/chunks/0P6E5PgQ.js +1 -0
- package/public/_app/immutable/chunks/473aTmYL.js +1 -0
- package/public/_app/immutable/chunks/{DVEB1r5D.js → 8TLgZ-vL.js} +1 -1
- package/public/_app/immutable/chunks/AUu53b1K.js +2 -0
- package/public/_app/immutable/chunks/BKJ0Y2X2.js +1 -0
- package/public/_app/immutable/chunks/Bkcwen-N.js +1 -0
- package/public/_app/immutable/chunks/BwDU-fss.js +1 -0
- package/public/_app/immutable/chunks/{BpJGvxOD.js → C7x1AckM.js} +1 -1
- package/public/_app/immutable/chunks/{C1_V7OdN.js → CES7FAnl.js} +1 -1
- package/public/_app/immutable/chunks/CK68nzZP.js +1 -0
- package/public/_app/immutable/chunks/CTs8zH2A.js +1 -0
- package/public/_app/immutable/chunks/CVQRPBHI.js +1 -0
- package/public/_app/immutable/chunks/{-MWhb9c-.js → CYrhPW18.js} +1 -1
- package/public/_app/immutable/chunks/{B1VSXVja.js → CjpBsztx.js} +1 -1
- package/public/_app/immutable/chunks/CpCbeTkV.js +2 -0
- package/public/_app/immutable/chunks/D1JMNvQG.js +1 -0
- package/public/_app/immutable/chunks/{Dk_FALGi.js → D5ygbMy_.js} +1 -1
- package/public/_app/immutable/chunks/{JYomMW8A.js → DHgbx_fZ.js} +1 -1
- package/public/_app/immutable/chunks/{BM-d1iyU.js → DYakwjaq.js} +1 -1
- package/public/_app/immutable/chunks/{CBkgBsl2.js → Dk8UGBZ2.js} +1 -1
- package/public/_app/immutable/chunks/{u9x_yOz5.js → Dnszd-a_.js} +2 -2
- package/public/_app/immutable/chunks/KZaYLgoS.js +1 -0
- package/public/_app/immutable/chunks/NLo5Zh3E.js +1 -0
- package/public/_app/immutable/chunks/{D4TYZfw1.js → XK2XwNCE.js} +2 -2
- package/public/_app/immutable/chunks/{DwNr-XJb.js → Xaflb_xi.js} +1 -1
- package/public/_app/immutable/chunks/{BHsjJ8bF.js → bzYZcIpo.js} +1 -1
- package/public/_app/immutable/chunks/{DLXc3MsS.js → rz89OrhQ.js} +1 -1
- package/public/_app/immutable/chunks/{BKgPCz3n.js → vGOpwVvV.js} +1 -1
- package/public/_app/immutable/entry/{app.xGcxUCtq.js → app.BRhmEJql.js} +2 -2
- package/public/_app/immutable/entry/{start.BfgCqfOg.js → start.BkvLfThy.js} +1 -1
- package/public/_app/immutable/nodes/0.0pNZvtKd.js +1 -0
- package/public/_app/immutable/nodes/1.B81L6iLG.js +1 -0
- package/public/_app/immutable/nodes/2.osjLQP-7.js +1 -0
- package/public/_app/immutable/nodes/{3.Bkc35OBN.js → 3.5Qv8DQzq.js} +2 -2
- package/public/_app/immutable/nodes/4.C6R1dt1K.js +1 -0
- package/public/_app/immutable/nodes/5.DZHiidRm.js +2 -0
- package/public/_app/immutable/nodes/6.Dpfuh3uG.js +2 -0
- package/public/_app/immutable/nodes/7.DKyaWWa3.js +1 -0
- package/public/_app/immutable/nodes/8.De3ko3u7.js +1 -0
- package/public/_app/version.json +1 -1
- package/public/index.html +26 -25
- package/public/_app/immutable/assets/0.DtIwIIdd.css +0 -1
- package/public/_app/immutable/chunks/1mqgODEB.js +0 -1
- package/public/_app/immutable/chunks/4FxxAFXN.js +0 -1
- package/public/_app/immutable/chunks/B36KvkWl.js +0 -1
- package/public/_app/immutable/chunks/B8_hs9R4.js +0 -1
- package/public/_app/immutable/chunks/BkeJCmZR.js +0 -1
- package/public/_app/immutable/chunks/C1dm7snI.js +0 -2
- package/public/_app/immutable/chunks/C3IMQzMn.js +0 -1
- package/public/_app/immutable/chunks/C59Htmoo.js +0 -1
- package/public/_app/immutable/chunks/CXE75xOj.js +0 -1
- package/public/_app/immutable/chunks/Cl3lhUWL.js +0 -1
- package/public/_app/immutable/chunks/D3H57P1T.js +0 -1
- package/public/_app/immutable/chunks/DpIbH5kQ.js +0 -1
- package/public/_app/immutable/chunks/ywqHnl7S.js +0 -2
- package/public/_app/immutable/nodes/0.6NyaEHme.js +0 -1
- package/public/_app/immutable/nodes/1.BuZaC350.js +0 -1
- package/public/_app/immutable/nodes/2.B86h23eK.js +0 -1
- package/public/_app/immutable/nodes/4.DTipQFjn.js +0 -1
- package/public/_app/immutable/nodes/5.CcLKuLYX.js +0 -1
- package/public/_app/immutable/nodes/6.DPrxF31w.js +0 -2
- package/public/_app/immutable/nodes/7.HhYOLA1h.js +0 -1
- package/public/_app/immutable/nodes/8.b5y1XVkv.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as F,a as C,e as Fn,f as j,o as de,p as At,t as te,s as kt}from"./ywqHnl7S.js";import{N as Bn,O as Et,t as Hn,P as en,Q as Mn,v as Vn,c as R,k as S,g as a,b as J,p as X,h as Y,i as M,F as ee,a as O,I as G,u as kn,e as ot,j as rt,r as it,l as Wt,D as Wn}from"./DLXc3MsS.js";import{l as ue,s as ft,p as m,i as z,r as et}from"./B36KvkWl.js";import{I as he,s as fe,i as $,a as L,e as nn,c as Be}from"./C1dm7snI.js";import{y as on,z as Ln,m as tt,A as mt,C as Ht,B as zn,f as ct,G as rn,H as Kn,I as Un,w as q,J as Xn,K as Yn,L as jn,N as ge,O as qn,Q as _t,U as Dt,E as He,S as ne,V as Me,W as sn,X as ln,Y as an,Z as cn,_ as Zn,$ as Gn,a0 as Qn,a1 as Jn,s as $n,n as dt,a2 as dn,r as to,b as A,k as eo,i as un,t as hn,h as no,u as oo,a3 as ro,q as io,g as Ve,a4 as so,F as lo,p as ke,l as ao,o as co,T as uo,c as Ct,P as ho}from"./u9x_yOz5.js";import{o as fo}from"./D3H57P1T.js";import{c as go}from"./Cl3lhUWL.js";function po(e,t,n=t){var o=new WeakSet;Bn(e,"input",async r=>{var s=r?e.defaultValue:e.value;if(s=oe(e)?re(s):s,n(s),Et!==null&&o.add(Et),await Hn(),s!==(s=t())){var i=e.selectionStart,l=e.selectionEnd,c=e.value.length;if(e.value=s??"",l!==null){var d=e.value.length;i===l&&l===c&&d>c?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=i,e.selectionEnd=Math.min(l,d))}}}),(Vn&&e.defaultValue!==e.value||en(t)==null&&e.value)&&(n(oe(e)?re(e.value):e.value),Et!==null&&o.add(Et)),Mn(()=>{var r=t();if(e===document.activeElement){var s=Et;if(o.has(s))return}oe(e)&&r===re(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function oe(e){var t=e.type;return t==="number"||t==="range"}function re(e){return e===""?null:+e}function mo(e,t){const n=ue(t,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"M20 6 9 17l-5-5"}]];he(e,ft({name:"check"},()=>n,{get iconNode(){return o},children:(r,s)=>{var i=F(),l=R(i);fe(l,t,"default",{}),C(r,i)},$$slots:{default:!0}}))}function We(e,t){const n=ue(t,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"m6 9 6 6 6-6"}]];he(e,ft({name:"chevron-down"},()=>n,{get iconNode(){return o},children:(r,s)=>{var i=F(),l=R(i);fe(l,t,"default",{}),C(r,i)},$$slots:{default:!0}}))}function vo(e,t){const n=ue(t,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"m18 15-6-6-6 6"}]];he(e,ft({name:"chevron-up"},()=>n,{get iconNode(){return o},children:(r,s)=>{var i=F(),l=R(i);fe(l,t,"default",{}),C(r,i)},$$slots:{default:!0}}))}const fn={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%)"};on(fn);function wo(e){return typeof e=="function"}function Le(e){return wo(e)?e():e}class yo{#t={width:0,height:0};#e=!1;#n;#o;#r;#i=S(()=>(a(this.#s)?.(),this.getSize().width));#l=S(()=>(a(this.#s)?.(),this.getSize().height));#s=S(()=>{const t=Le(this.#o);if(t)return Fn(n=>{if(!this.#r)return;const o=new this.#r.ResizeObserver(r=>{this.#e=!0;for(const s of r){const i=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(i)?i:[i];this.#t.width=l.reduce((c,d)=>Math.max(c,d.inlineSize),0),this.#t.height=l.reduce((c,d)=>Math.max(c,d.blockSize),0)}n()});return o.observe(t),()=>{this.#e=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#r=n.window??Ln,this.#n=n,this.#o=t,this.#t={width:0,height:0}}calculateSize(){const t=Le(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),s=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),l=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),c=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),d=n-s-l,f=o-i-c;return{width:d,height:f}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return a(this.#s)?.(),this.getSize()}get width(){return a(this.#i)}get height(){return a(this.#l)}}class bo{#t=()=>{};#e=S(()=>this.#t());constructor(t,n){let o;n!==void 0&&(o=n),this.#t=()=>{try{return o}finally{o=t()}}}get current(){return a(this.#e)}}function xo(e){J(()=>en(()=>e()))}var So=new Set(["$$slots","$$events","$$legacy","value"]),ze=j("<input/>");function Po(e,t){X(t,!0);let n=m(t,"value",15),o=et(t,So);const r=S(()=>tt(o,{"aria-hidden":"true",tabindex:-1,style:{...fn,position:"absolute",top:"0",left:"0"}}));var s=F(),i=R(s);{var l=d=>{var f=ze();$(f,()=>({...a(r),value:n()}),void 0,void 0,void 0,void 0,!0),C(d,f)},c=d=>{var f=ze();$(f,()=>({...a(r)}),void 0,void 0,void 0,void 0,!0),po(f,n),C(d,f)};z(i,d=>{a(r).type==="checkbox"?d(l):d(c,-1)})}C(e,s),Y()}const Oo=["top","right","bottom","left"],vt=Math.min,ut=Math.max,Lt=Math.round,Vt=Math.floor,ht=e=>({x:e,y:e}),Ao={left:"right",right:"left",bottom:"top",top:"bottom"};function gn(e,t,n){return ut(e,vt(t,n))}function gt(e,t){return typeof e=="function"?e(t):e}function wt(e){return e.split("-")[0]}function Tt(e){return e.split("-")[1]}function pe(e){return e==="x"?"y":"x"}function me(e){return e==="y"?"height":"width"}function st(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ve(e){return pe(st(e))}function Co(e,t,n){n===void 0&&(n=!1);const o=Tt(e),r=ve(e),s=me(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=zt(i)),[i,zt(i)]}function _o(e){const t=zt(e);return[ae(e),t,ae(t)]}function ae(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ke=["left","right"],Ue=["right","left"],No=["top","bottom"],To=["bottom","top"];function Ro(e,t,n){switch(e){case"top":case"bottom":return n?t?Ue:Ke:t?Ke:Ue;case"left":case"right":return t?No:To;default:return[]}}function Io(e,t,n,o){const r=Tt(e);let s=Ro(wt(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(ae)))),s}function zt(e){const t=wt(e);return Ao[t]+e.slice(t.length)}function Eo(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function pn(e){return typeof e!="number"?Eo(e):{top:e,right:e,bottom:e,left:e}}function Kt(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 Xe(e,t,n){let{reference:o,floating:r}=e;const s=st(t),i=ve(t),l=me(i),c=wt(t),d=s==="y",f=o.x+o.width/2-r.width/2,g=o.y+o.height/2-r.height/2,u=o[l]/2-r[l]/2;let h;switch(c){case"top":h={x:f,y:o.y-r.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:g};break;case"left":h={x:o.x-r.width,y:g};break;default:h={x:o.x,y:o.y}}const p=Tt(t);return p&&(h[i]+=u*(p==="end"?1:-1)*(n&&d?-1:1)),h}async function Do(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:g="floating",altBoundary:u=!1,padding:h=0}=gt(t,e),p=pn(h),P=l[u?g==="floating"?"reference":"floating":g],v=Kt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(P)))==null||n?P:P.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),b=g==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),x=await(s.isElement==null?void 0:s.isElement(w))&&await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1},T=Kt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:w,strategy:c}):b);return{top:(v.top-T.top+p.top)/x.y,bottom:(T.bottom-v.bottom+p.bottom)/x.y,left:(v.left-T.left+p.left)/x.x,right:(T.right-v.right+p.right)/x.x}}const Fo=50,Bo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:Do},c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:g}=Xe(d,o,c),u=o,h=0;const p={};for(let y=0;y<s.length;y++){const P=s[y];if(!P)continue;const{name:v,fn:b}=P,{x:w,y:x,data:T,reset:_}=await b({x:f,y:g,initialPlacement:o,placement:u,strategy:r,middlewareData:p,rects:d,platform:l,elements:{reference:e,floating:t}});f=w??f,g=x??g,p[v]={...p[v],...T},_&&h<Fo&&(h++,typeof _=="object"&&(_.placement&&(u=_.placement),_.rects&&(d=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):_.rects),{x:f,y:g}=Xe(d,u,c)),y=-1)}return{x:f,y:g,placement:u,strategy:r,middlewareData:p}},Ho=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:l,middlewareData:c}=t,{element:d,padding:f=0}=gt(e,t)||{};if(d==null)return{};const g=pn(f),u={x:n,y:o},h=ve(r),p=me(h),y=await i.getDimensions(d),P=h==="y",v=P?"top":"left",b=P?"bottom":"right",w=P?"clientHeight":"clientWidth",x=s.reference[p]+s.reference[h]-u[h]-s.floating[p],T=u[h]-s.reference[h],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let N=_?_[w]:0;(!N||!await(i.isElement==null?void 0:i.isElement(_)))&&(N=l.floating[w]||s.floating[p]);const B=x/2-T/2,V=N/2-y[p]/2-1,E=vt(g[v],V),W=vt(g[b],V),D=N-y[p]-W,I=N/2-y[p]/2+B,H=gn(E,I,D),k=!c.arrow&&Tt(r)!=null&&I!==H&&s.reference[p]/2-(I<E?E:W)-y[p]/2<0,K=k?I<E?I-E:I-D:0;return{[h]:u[h]+K,data:{[h]:H,centerOffset:I-H-K,...k&&{alignmentOffset:K}},reset:k}}}),Mo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:g=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...P}=gt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=wt(r),b=st(l),w=wt(l)===l,x=await(c.isRTL==null?void 0:c.isRTL(d.floating)),T=u||(w||!y?[zt(l)]:_o(l)),_=p!=="none";!u&&_&&T.push(...Io(l,y,p,x));const N=[l,...T],B=await c.detectOverflow(t,P),V=[];let E=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&V.push(B[v]),g){const H=Co(r,i,x);V.push(B[H[0]],B[H[1]])}if(E=[...E,{placement:r,overflows:V}],!V.every(H=>H<=0)){var W,D;const H=(((W=s.flip)==null?void 0:W.index)||0)+1,k=N[H];if(k&&(!(g==="alignment"?b!==st(k):!1)||E.every(U=>st(U.placement)===b?U.overflows[0]>0:!0)))return{data:{index:H,overflows:E},reset:{placement:k}};let K=(D=E.filter(nt=>nt.overflows[0]<=0).sort((nt,U)=>nt.overflows[1]-U.overflows[1])[0])==null?void 0:D.placement;if(!K)switch(h){case"bestFit":{var I;const nt=(I=E.filter(U=>{if(_){const Q=st(U.placement);return Q===b||Q==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(Q=>Q>0).reduce((Q,bt)=>Q+bt,0)]).sort((U,Q)=>U[1]-Q[1])[0])==null?void 0:I[0];nt&&(K=nt);break}case"initialPlacement":K=l;break}if(r!==K)return{reset:{placement:K}}}return{}}}};function Ye(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function je(e){return Oo.some(t=>e[t]>=0)}const Vo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=gt(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...s,elementContext:"reference"}),l=Ye(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:je(l)}}}case"escaped":{const i=await o.detectOverflow(t,{...s,altBoundary:!0}),l=Ye(i,n.floating);return{data:{escapedOffsets:l,escaped:je(l)}}}default:return{}}}}},mn=new Set(["left","top"]);async function ko(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=wt(n),l=Tt(n),c=st(n)==="y",d=mn.has(i)?-1:1,f=s&&c?-1:1,g=gt(t,e);let{mainAxis:u,crossAxis:h,alignmentAxis:p}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof p=="number"&&(h=l==="end"?p*-1:p),c?{x:h*f,y:u*d}:{x:u*d,y:h*f}}const Wo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:l}=t,c=await ko(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:s+c.y,data:{...c,placement:i}}}}},Lo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:b=>{let{x:w,y:x}=b;return{x:w,y:x}}},...d}=gt(e,t),f={x:n,y:o},g=await s.detectOverflow(t,d),u=st(r),h=pe(u);let p=f[h],y=f[u];const P=(b,w)=>gn(w+g[b==="y"?"top":"left"],w,w-g[b==="y"?"bottom":"right"]);i&&(p=P(h,p)),l&&(y=P(u,y));const v=c.fn({...t,[h]:p,[u]:y});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[h]:i,[u]:l}}}}}},zo=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:s,placement:i,rects:l,middlewareData:c}=t,{offset:d=0,mainAxis:f=!0,crossAxis:g=!0}=gt(e,t),u={x:r,y:s},h=st(i),p=pe(h);let y=u[p],P=u[h];const v=gt(d,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:(n=v.mainAxis)!=null?n:0,crossAxis:(o=v.crossAxis)!=null?o:0};if(f){const T=p==="y"?"height":"width",_=l.reference[p]-l.floating[T]+b.mainAxis,N=l.reference[p]+l.reference[T]-b.mainAxis;y<_?y=_:y>N&&(y=N)}if(g){var w,x;const T=p==="y"?"width":"height",_=mn.has(wt(i)),N=l.reference[h]-l.floating[T]+(_&&((w=c.offset)==null?void 0:w[h])||0)+(_?0:b.crossAxis),B=l.reference[h]+l.reference[T]+(_?0:((x=c.offset)==null?void 0:x[h])||0)-(_?b.crossAxis:0);P<N?P=N:P>B&&(P=B)}return{[p]:y,[h]:P}}}},Ko=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:i=()=>{},...l}=gt(e,t),c=await r.detectOverflow(t,l),d=wt(n),f=Tt(n),g=st(n)==="y",{width:u,height:h}=o.floating;let p,y;d==="top"||d==="bottom"?(p=d,y=f===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,p=f==="end"?"top":"bottom");const P=h-c.top-c.bottom,v=u-c.left-c.right,b=vt(h-c[p],P),w=vt(u-c[y],v),x=t.middlewareData.shift,T=!x;let _=b,N=w;x!=null&&x.enabled.x&&(N=v),x!=null&&x.enabled.y&&(_=P),T&&!f&&(g?N=u-2*ut(c.left,c.right):_=h-2*ut(c.top,c.bottom)),await i({...t,availableWidth:N,availableHeight:_});const B=await r.getDimensions(s.floating);return u!==B.width||h!==B.height?{reset:{rects:!0}}:{}}}};function jt(){return typeof window<"u"}function Rt(e){return vn(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pt(e){var t;return(t=(vn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vn(e){return jt()?e instanceof Node||e instanceof Z(e).Node:!1}function lt(e){return jt()?e instanceof Element||e instanceof Z(e).Element:!1}function yt(e){return jt()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function qe(e){return!jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function qt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Uo(e){return/^(table|td|th)$/.test(Rt(e))}function Zt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Xo=/transform|translate|scale|rotate|perspective|filter/,Yo=/paint|layout|strict|content/,xt=e=>!!e&&e!=="none";let ie;function we(e){const t=lt(e)?at(e):e;return xt(t.transform)||xt(t.translate)||xt(t.scale)||xt(t.rotate)||xt(t.perspective)||!ye()&&(xt(t.backdropFilter)||xt(t.filter))||Xo.test(t.willChange||"")||Yo.test(t.contain||"")}function jo(e){let t=Pt(e);for(;yt(t)&&!Ft(t);){if(we(t))return t;if(Zt(t))return null;t=Pt(t)}return null}function ye(){return ie==null&&(ie=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ie}function Ft(e){return/^(html|body|#document)$/.test(Rt(e))}function at(e){return Z(e).getComputedStyle(e)}function Gt(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pt(e){if(Rt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qe(e)&&e.host||pt(e);return qe(t)?t.host:t}function wn(e){const t=Pt(e);return Ft(t)?(e.ownerDocument||e).body:yt(t)&&qt(t)?t:wn(t)}function Bt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=wn(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=Z(r);if(s){const l=ce(i);return t.concat(i,i.visualViewport||[],qt(r)?r:[],l&&n?Bt(l):[])}else return t.concat(r,Bt(r,[],n))}function ce(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yn(e){const t=at(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=yt(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,l=Lt(n)!==s||Lt(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function be(e){return lt(e)?e:e.contextElement}function Nt(e){const t=be(e);if(!yt(t))return ht(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=yn(t);let i=(s?Lt(n.width):n.width)/o,l=(s?Lt(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const qo=ht(0);function bn(e){const t=Z(e);return!ye()||!t.visualViewport?qo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Z(e)}function Ot(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=be(e);let i=ht(1);t&&(o?lt(o)&&(i=Nt(o)):i=Nt(e));const l=Zo(s,n,o)?bn(s):ht(0);let c=(r.left+l.x)/i.x,d=(r.top+l.y)/i.y,f=r.width/i.x,g=r.height/i.y;if(s&&o){const u=Z(s),h=lt(o)?Z(o):o;let p=u,y=ce(p);for(;y&&h!==p;){const P=Nt(y),v=y.getBoundingClientRect(),b=at(y),w=v.left+(y.clientLeft+parseFloat(b.paddingLeft))*P.x,x=v.top+(y.clientTop+parseFloat(b.paddingTop))*P.y;c*=P.x,d*=P.y,f*=P.x,g*=P.y,c+=w,d+=x,p=Z(y),y=ce(p)}}return Kt({width:f,height:g,x:c,y:d})}function Qt(e,t){const n=Gt(e).scrollLeft;return t?t.left+n:Ot(pt(e)).left+n}function xn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Qt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Go(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=pt(o),l=t?Zt(t.floating):!1;if(o===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},d=ht(1);const f=ht(0),g=yt(o);if((g||!s)&&((Rt(o)!=="body"||qt(i))&&(c=Gt(o)),g)){const h=Ot(o);d=Nt(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}const u=i&&!g&&!s?xn(i,c):ht(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+u.x,y:n.y*d.y-c.scrollTop*d.y+f.y+u.y}}function Qo(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Jo(e){const t=Gt(e),n=e.ownerDocument.body,o=ut(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=ut(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+Qt(e);const i=-t.scrollTop;return at(n).direction==="rtl"&&(s+=ut(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:s,y:i}}const $o=25;function tr(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=Z(e),s=pt(e),i=r.visualViewport;let l=s.clientWidth,c=s.clientHeight,d=0,f=0;if(i){const u=!ye()||t==="fixed";o?u||(d=-i.offsetLeft,f=-i.offsetTop):(l=i.width,c=i.height,u&&(d=i.offsetLeft,f=i.offsetTop))}if(Qt(s)<=0){const u=s.ownerDocument,h=u.body,p=getComputedStyle(h),y=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,P=Math.abs(s.clientWidth-h.clientWidth-y),v=getComputedStyle(s).scrollbarGutter==="stable both-edges"?P/2:P;v<=$o&&(l-=v)}return{width:l,height:c,x:d,y:f}}function er(e,t){const n=Ot(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Nt(e),i=e.clientWidth*s.x,l=e.clientHeight*s.y,c=r*s.x,d=o*s.y;return{width:i,height:l,x:c,y:d}}function Ze(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=tr(e,n,t);else if(t==="document")o=Jo(pt(e));else if(lt(t))o=er(t,n);else{const r=bn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Kt(o)}function nr(e,t){const n=t.get(e);if(n)return n;let o=Bt(e,[],!1).filter(l=>lt(l)&&Rt(l)!=="body"),r=null;const s=at(e).position==="fixed";let i=s?Pt(e):e;for(;lt(i)&&!Ft(i);){const l=at(i),c=we(i),d=r?r.position:s?"fixed":"";!c&&(d==="fixed"||d==="absolute"&&l.position==="static")?o=o.filter(g=>g!==i):r=l,i=Pt(i)}return t.set(e,o),o}function or(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Zt(t)?[]:nr(t,this._c):[].concat(n),o],l=Ze(t,i[0],r);let c=l.top,d=l.right,f=l.bottom,g=l.left;for(let u=1;u<i.length;u++){const h=Ze(t,i[u],r);c=ut(h.top,c),d=vt(h.right,d),f=vt(h.bottom,f),g=ut(h.left,g)}return{width:d-g,height:f-c,x:g,y:c}}function rr(e){const{width:t,height:n}=yn(e);return{width:t,height:n}}function ir(e,t,n){const o=yt(t),r=pt(t),s=n==="fixed",i=Ot(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=ht(0);if((o||!s)&&((Rt(t)!=="body"||qt(r))&&(l=Gt(t)),o)){const u=Ot(t,!0,s,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}!o&&r&&(c.x=Qt(r));const d=r&&!o&&!s?xn(r,l):ht(0),f=i.left+l.scrollLeft-c.x-d.x,g=i.top+l.scrollTop-c.y-d.y;return{x:f,y:g,width:i.width,height:i.height}}function se(e){return at(e).position==="static"}function Ge(e,t){if(!yt(e)||at(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pt(e)===n&&(n=n.ownerDocument.body),n}function Sn(e,t){const n=Z(e);if(Zt(e))return n;if(!yt(e)){let r=Pt(e);for(;r&&!Ft(r);){if(lt(r)&&!se(r))return r;r=Pt(r)}return n}let o=Ge(e,t);for(;o&&Uo(o)&&se(o);)o=Ge(o,t);return o&&Ft(o)&&se(o)&&!we(o)?n:o||jo(e)||n}const sr=async function(e){const t=this.getOffsetParent||Sn,n=this.getDimensions,o=await n(e.floating);return{reference:ir(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function lr(e){return at(e).direction==="rtl"}const ar={convertOffsetParentRelativeRectToViewportRelativeRect:Go,getDocumentElement:pt,getClippingRect:or,getOffsetParent:Sn,getElementRects:sr,getClientRects:Qo,getDimensions:rr,getScale:Nt,isElement:lt,isRTL:lr};function Pn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cr(e,t,n){let o=null,r;const s=pt(e);function i(){var f;clearTimeout(r),(f=o)==null||f.disconnect(),o=null}function l(f,g){f===void 0&&(f=!1),g===void 0&&(g=1),i();const u=e.getBoundingClientRect(),{left:h,top:p,width:y,height:P}=u;if(f||t(),!y||!P)return;const v=Vt(p),b=Vt(s.clientWidth-(h+y)),w=Vt(s.clientHeight-(p+P)),x=Vt(h),_={rootMargin:-v+"px "+-b+"px "+-w+"px "+-x+"px",threshold:ut(0,vt(1,g))||1};let N=!0;function B(V){const E=V[0].intersectionRatio;if(!Pn(u,e.getBoundingClientRect()))return l();if(E!==g){if(!N)return l();E?l(!1,E):r=setTimeout(()=>{l(!1,1e-7)},1e3)}N=!1}try{o=new IntersectionObserver(B,{..._,root:s.ownerDocument})}catch{o=new IntersectionObserver(B,_)}o.observe(e)}const c=Z(e),d=()=>l(n);return c.addEventListener("resize",d),l(!0),()=>{c.removeEventListener("resize",d),i()}}function dr(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,d=be(e),f=r||s?[...d?Bt(d):[],...t?Bt(t):[]]:[];f.forEach(v=>{r&&v.addEventListener("scroll",n),s&&v.addEventListener("resize",n)});const g=d&&l?cr(d,n,s):null;let u=-1,h=null;i&&(h=new ResizeObserver(v=>{let[b]=v;b&&b.target===d&&h&&t&&(h.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),d&&!c&&h.observe(d),t&&h.observe(t));let p,y=c?Ot(e):null;c&&P();function P(){const v=Ot(e);y&&!Pn(y,v)&&n(),y=v,p=requestAnimationFrame(P)}return n(),()=>{var v;f.forEach(b=>{r&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),g?.(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const ur=Wo,hr=Lo,fr=Mo,gr=Ko,pr=Vo,mr=Ho,vr=zo,wr=(e,t,n)=>{const o=new Map,r=n??{},s={...ar,...r.platform,_c:o};return Bo(e,t,{...r,platform:s})};function St(e){return typeof e=="function"?e():e}function On(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qe(e,t){const n=On(e);return Math.round(t*n)/n}function yr(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 br(e){const t=e.whileElementsMounted,n=S(()=>St(e.open)??!0),o=S(()=>St(e.middleware)),r=S(()=>St(e.transform)??!0),s=S(()=>St(e.placement)??"bottom"),i=S(()=>St(e.strategy)??"absolute"),l=S(()=>St(e.sideOffset)??0),c=S(()=>St(e.alignOffset)??0),d=e.reference;let f=M(0),g=M(0);const u=mt(null);let h=M(ee(a(i))),p=M(ee(a(s))),y=M(ee({})),P=M(!1),v=!1,b=0;const w=S(()=>{const E=u.current?Qe(u.current,a(f)):a(f),W=u.current?Qe(u.current,a(g)):a(g);return a(r)?{position:a(h),left:"0",top:"0",transform:`translate(${E}px, ${W}px)`,...u.current&&On(u.current)>=1.5&&{willChange:"transform"}}:{position:a(h),left:`${E}px`,top:`${W}px`}});let x;function T(){if(d.current===null||u.current===null)return;const E=d.current,W=u.current,D=++b;wr(E,W,{middleware:a(o),placement:a(s),strategy:a(i)}).then(I=>{if(D!==b||d.current!==E||u.current!==W)return;if(xr(E)){O(y,{...a(y),hide:{...a(y).hide,referenceHidden:!0}},!0);return}if(!a(n)&&a(f)!==0&&a(g)!==0){const k=Math.max(Math.abs(a(l)),Math.abs(a(c)),15);if(I.x<=k&&I.y<=k)return}O(f,I.x,!0),O(g,I.y,!0),O(h,I.strategy,!0),O(p,I.placement,!0),O(y,I.middlewareData,!0),O(P,!0)})}function _(){typeof x=="function"&&(x(),x=void 0),b++}function N(){if(_(),t===void 0){T();return}a(n)&&(d.current===null||u.current===null||(x=t(d.current,u.current,T)))}function B(){!a(n)&&u.current===null&&O(P,!1)}function V(){return[a(o),a(s),a(i),a(l),a(c),a(n)]}return J(()=>{t===void 0&&a(n)&&T()}),J(N),J(()=>{if(t!==void 0){if(V(),!a(n)){v=!1;return}if(!a(P)){v=!1;return}if(!v){v=!0;return}T()}}),J(B),J(()=>_),{floating:u,reference:d,get strategy(){return a(h)},get placement(){return a(p)},get middlewareData(){return a(y)},get isPositioned(){return a(P)},get floatingStyles(){return a(w)},get update(){return T}}}function xr(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const Sr={top:"bottom",right:"left",bottom:"top",left:"right"},xe=new Ht("Floating.Root"),Je=new Ht("Floating.Content"),Se=new Ht("Floating.Root");class Ut{static create(t=!1){return t?Se.set(new Ut):xe.set(new Ut)}anchorNode=mt(null);customAnchorNode=mt(null);triggerNode=mt(null);constructor(){J(()=>{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 Xt{static create(t,n=!1){return n?Je.set(new Xt(t,Se.get())):Je.set(new Xt(t,xe.get()))}opts;root;contentRef=mt(null);wrapperRef=mt(null);arrowRef=mt(null);contentAttachment=ct(this.contentRef);wrapperAttachment=ct(this.wrapperRef);arrowAttachment=ct(this.arrowRef);arrowId=mt(rn());#t=S(()=>{if(typeof this.opts.style=="string")return Kn(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new yo(()=>this.arrowRef.current??void 0);#o=S(()=>this.#n?.width??0);#r=S(()=>this.#n?.height??0);#i=S(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#l=S(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=S(()=>a(this.#l).length>0);get hasExplicitBoundaries(){return a(this.#s)}set hasExplicitBoundaries(t){O(this.#s,t)}#a=S(()=>({padding:this.opts.collisionPadding.current,boundary:a(this.#l).filter(Un),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return a(this.#a)}set detectOverflowOptions(t){O(this.#a,t)}#c=M(void 0);#d=M(void 0);#u=M(void 0);#h=M(void 0);#f=S(()=>[ur({mainAxis:this.opts.sideOffset.current+a(this.#r),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&hr({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?vr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&fr({...this.detectOverflowOptions}),gr({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:s}=t.reference;O(this.#c,n,!0),O(this.#d,o,!0),O(this.#u,r,!0),O(this.#h,s,!0)}}),this.arrowRef.current&&mr({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Pr({arrowWidth:a(this.#o),arrowHeight:a(this.#r)}),this.opts.hideWhenDetached.current&&pr({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return a(this.#f)}set middleware(t){O(this.#f,t)}floating;#g=S(()=>Or(this.floating.placement));get placedSide(){return a(this.#g)}set placedSide(t){O(this.#g,t)}#p=S(()=>Ar(this.floating.placement));get placedAlign(){return a(this.#p)}set placedAlign(t){O(this.#p,t)}#m=S(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return a(this.#m)}set arrowX(t){O(this.#m,t)}#v=S(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return a(this.#v)}set arrowY(t){O(this.#v,t)}#w=S(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return a(this.#w)}set cannotCenterArrow(t){O(this.#w,t)}#y=M();get contentZIndex(){return a(this.#y)}set contentZIndex(t){O(this.#y,t,!0)}#b=S(()=>Sr[this.placedSide]);get arrowBaseSide(){return a(this.#b)}set arrowBaseSide(t){O(this.#b,t)}#x=S(()=>({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":`${a(this.#c)}px`,"--bits-floating-available-height":`${a(this.#d)}px`,"--bits-floating-anchor-width":`${a(this.#u)}px`,"--bits-floating-anchor-height":`${a(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...a(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return a(this.#x)}set wrapperProps(t){O(this.#x,t)}#S=S(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:on({...a(this.#t)}),...this.contentAttachment}));get props(){return a(this.#S)}set props(t){O(this.#S,t)}#P=S(()=>({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 a(this.#P)}set arrowStyle(t){O(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#e=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),q(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=br({strategy:()=>this.opts.strategy.current,placement:()=>a(this.#i),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>dr(...o,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),J(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),q(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=Xn(o),s=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const i=r.getComputedStyle(o).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{r.cancelAnimationFrame(s)}}),J(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Yt{static create(t,n=!1){return n?new Yt(t,Se.get()):new Yt(t,xe.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=zn(t.virtualEl.current):n.triggerNode=t.ref}}function Pr(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=r.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=Pe(n),g={start:"0%",center:"50%",end:"100%"}[f],u=(r.arrow?.x??0)+l/2,h=(r.arrow?.y??0)+c/2;let p="",y="";return d==="bottom"?(p=i?g:`${u}px`,y=`${-c}px`):d==="top"?(p=i?g:`${u}px`,y=`${o.floating.height+c}px`):d==="right"?(p=`${-c}px`,y=i?g:`${h}px`):d==="left"&&(p=`${o.floating.width+c}px`,y=i?g:`${h}px`),{data:{x:p,y}}}}}function Pe(e){const[t,n="center"]=e.split("-");return[t,n]}function Or(e){return Pe(e)[0]}function Ar(e){return Pe(e)[1]}function Cr(e,t){X(t,!0);let n=m(t,"tooltip",3,!1);Ut.create(n());var o=F(),r=R(o);L(r,()=>t.children??G),C(e,o),Y()}class _r{#t;#e=S(()=>this.#t.candidateValues());#n;constructor(t){this.#t=t,this.#n=Yn("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!a(this.#e).length)return;this.#n.current=this.#n.current+t;const n=this.#t.getCurrentItem(),o=a(this.#e).find(l=>l===n)??"",r=a(this.#e).map(l=>l??""),s=jn(r,this.#n.current,o),i=a(this.#e).find(l=>l===s);return i&&this.#t.onMatch(i),i}resetTypeahead(){this.#n.current=""}}const Nr=[Dt,sn,ln],Tr=[_t,an,cn],Rr=[...Nr,...Tr],Ir=eo({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),It=new Ht("Select.Root | Combobox.Root"),Jt=new Ht("Select.Content | Combobox.Content");class An{opts;#t=M(!1);get touchedInput(){return a(this.#t)}set touchedInput(t){O(this.#t,t,!0)}#e=M(null);get inputNode(){return a(this.#e)}set inputNode(t){O(this.#e,t,!0)}#n=M(null);get contentNode(){return a(this.#n)}set contentNode(t){O(this.#n,t,!0)}contentPresence;#o=M(null);get viewportNode(){return a(this.#o)}set viewportNode(t){O(this.#o,t,!0)}#r=M(null);get triggerNode(){return a(this.#r)}set triggerNode(t){O(this.#r,t,!0)}#i=M(null);get valueNode(){return a(this.#i)}set valueNode(t){O(this.#i,t,!0)}#l=M("");get valueId(){return a(this.#l)}set valueId(t){O(this.#l,t,!0)}#s=M(null);get highlightedNode(){return a(this.#s)}set highlightedNode(t){O(this.#s,t,!0)}#a=S(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return a(this.#a)}set highlightedValue(t){O(this.#a,t)}#c=S(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return a(this.#c)}set highlightedId(t){O(this.#c,t)}#d=S(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return a(this.#d)}set highlightedLabel(t){O(this.#d,t)}#u=M(!1);get contentIsPositioned(){return a(this.#u)}set contentIsPositioned(t){O(this.#u,t,!0)}isUsingKeyboard=!1;isCombobox=!1;domContext=new ge(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new to({ref:A(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),kn(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,n=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||n)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||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 s=r.getBoundingClientRect();return s.right<=o.right&&s.left>=o.left&&s.bottom<=o.bottom&&s.top>=o.top})}this.setHighlightedNode(n[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}getLabelForValue(t){if(t==="")return"";const n=this.opts.items.current.find(r=>r.value===t)?.label;if(n!==void 0)return n;const o=this.getNodeByValue(t);if(o){const r=o.getAttribute("data-label");return r!==null&&r!==""?r:o.textContent?.trim()??t}return t}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=>Ir.getAttr(t,this.isCombobox?"combobox":void 0)}class Er extends An{opts;isMulti=!1;#t=S(()=>this.opts.value.current!=="");get hasValue(){return a(this.#t)}set hasValue(t){O(this.#t,t)}#e=S(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return a(this.#e)}set currentLabel(t){O(this.#e,t)}#n=S(()=>this.opts.items.current.length?this.opts.items.current.filter(n=>!n.disabled).map(n=>n.label):[]);get candidateLabels(){return a(this.#n)}set candidateLabels(t){O(this.#n,t)}#o=S(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return a(this.#o)}set dataTypeaheadEnabled(t){O(this.#o,t)}constructor(t){super(t),this.opts=t,J(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),q(()=>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(){dn(()=>{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 Dr extends An{opts;isMulti=!0;#t=S(()=>this.opts.value.current.length>0);get hasValue(){return a(this.#t)}set hasValue(t){O(this.#t,t)}constructor(t){super(t),this.opts=t,J(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),q(()=>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(){dn(()=>{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 Fr{static create(t){const{type:n,...o}=t,r=n==="single"?new Er(o):new Dr(o);return It.set(r)}}class Oe{static create(t){return new Oe(t,It.get())}root;opts;attachment;constructor(t,n){this.root=n,this.opts=t,this.attachment=ct(t.ref,o=>this.root.valueNode=o),this.setValue=this.setValue.bind(this)}setValue(t){this.root.isMulti&&!Array.isArray(t)||!this.root.isMulti&&typeof t!="string"||(this.root.opts.value.current=t)}#t=S(()=>{if(this.root.isMulti)return{selection:{type:"multiple",selected:this.root.opts.value.current.length>0?this.root.opts.value.current.map(n=>({value:n,label:this.root.getLabelForValue(n)})):[],setValue:this.setValue},placeholder:this.opts.placeholder.current??null,disabled:this.root.opts.disabled.current};const t=this.root.opts.value.current;return{selection:{type:"single",selected:t!==""?{value:t,label:t===""?"":this.root.getLabelForValue(t)}:void 0,setValue:this.setValue},placeholder:this.opts.placeholder.current??null,disabled:this.root.opts.disabled.current}});get snippetProps(){return a(this.#t)}set snippetProps(t){O(this.#t,t)}#e=S(()=>({id:this.opts.id.current,"data-placeholder":this.root.hasValue?void 0:"","data-select-value":"",...this.attachment}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Ae{static create(t){return new Ae(t,It.get())}opts;root;attachment;#t;#e;constructor(t,n){this.opts=t,this.root=n,this.attachment=ct(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new ge(t.ref),this.#t=new qn({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new _r({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(s=>s.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===_t||t.key===Dt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===He||t.key===ne||t.key===Dt||t.key===_t)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 i=this.root.getCandidateNodes();if(!i.length)return;if(t.key===Dt){const l=i[0];this.root.setHighlightedNode(l)}else if(t.key===_t){const l=i[i.length-1];this.root.setHighlightedNode(l)}return}if(t.key===Me){this.root.handleClose();return}if((t.key===He||t.key===ne&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#r()))return;if(t.key===_t&&t.altKey&&this.root.handleClose(),Rr.includes(t.key)){t.preventDefault();const i=this.root.getCandidateNodes(),l=this.root.highlightedNode,c=l?i.indexOf(l):-1,d=this.root.opts.loop.current;let f;if(t.key===Dt?f=Zn(i,c,d):t.key===_t?f=Gn(i,c,d):t.key===an?f=Qn(i,c,10,d):t.key===sn?f=Jn(i,c,10,d):t.key===ln?f=i[0]:t.key===cn&&(f=i[i.length-1]),!f)return;this.root.setHighlightedNode(f);return}const n=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,r=t.key===ne,s=this.root.getCandidateNodes();if(t.key!==Me){if(!n&&(o||r)){!this.#t.handleTypeaheadSearch(t.key,s)&&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()))}#i=S(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":no(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":hn(this.root.opts.open.current),"data-disabled":un(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 a(this.#i)}set props(t){O(this.#i,t)}}class Ce{static create(t){return Jt.set(new Ce(t,It.get()))}opts;root;attachment;#t=M(!1);get isPositioned(){return a(this.#t)}set isPositioned(t){O(this.#t,t,!0)}domContext;constructor(t,n){this.opts=t,this.root=n,this.attachment=ct(t.ref,o=>this.root.contentNode=o),this.domContext=new ge(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),$n(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),q(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),q([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=S(()=>yr(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=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#n)}set snippetProps(t){O(this.#n,t)}#o=S(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":hn(this.root.opts.open.current),...oo(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...a(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return a(this.#o)}set props(t){O(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.root.contentIsPositioned=!0,this.isPositioned=!0)}}}class _e{static create(t){return new _e(t,It.get())}opts;root;attachment;#t=S(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return a(this.#t)}set isSelected(t){O(this.#t,t)}#e=S(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return a(this.#e)}set isHighlighted(t){O(this.#e,t)}prevHighlighted=new bo(()=>this.isHighlighted);#n=M(!1);get mounted(){return a(this.#n)}set mounted(t){O(this.#n,t,!0)}constructor(t,n){this.opts=t,this.root=n,this.attachment=ct(t.ref),q([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),q(()=>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=S(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return a(this.#o)}set snippetProps(t){O(this.#o,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!so){de(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=S(()=>({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":un(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 a(this.#r)}set props(t){O(this.#r,t)}}class Ne{static create(t){return new Ne(t,It.get())}opts;root;#t=S(()=>this.root.opts.name.current!=="");get shouldRender(){return a(this.#t)}set shouldRender(t){O(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=S(()=>({disabled:Ve(this.root.opts.disabled.current),required:Ve(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Te{static create(t){return new Te(t,Jt.get())}opts;content;root;attachment;#t=M(0);get prevScrollTop(){return a(this.#t)}set prevScrollTop(t){O(this.#t,t,!0)}constructor(t,n){this.opts=t,this.content=n,this.root=n.root,this.attachment=ct(t.ref,o=>{this.root.viewportNode=o})}#e=S(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Cn{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=dt;#t=M(!1);get mounted(){return a(this.#t)}set mounted(t){O(this.#t,t,!0)}constructor(t,n){this.opts=t,this.content=n,this.root=n.root,this.attachment=ct(t.ref),q([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),J(()=>{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=S(()=>({id:this.opts.id.current,"aria-hidden":ro(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Re{static create(t){return new Re(new Cn(t,Jt.get()))}scrollButtonState;content;root;#t=M(!1);get canScrollDown(){return a(this.#t)}set canScrollDown(t){O(this.#t,t,!0)}scrollIntoViewTimer=null;constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,q([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),de(this.root.viewportNode,"scroll",()=>this.handleScroll())}),q([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),q(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=io(5,()=>{const n=this.root.highlightedNode;n&&this.root.scrollHighlightedNodeIntoView(n)}))})}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=S(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Ie{static create(t){return new Ie(new Cn(t,Jt.get()))}scrollButtonState;content;root;#t=M(!1);get canScrollUp(){return a(this.#t)}set canScrollUp(t){O(this.#t,t,!0)}constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,q([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),de(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=S(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}function le(e,t){X(t,!0);let n=m(t,"value",15);const o=Ne.create({value:A(()=>n())});var r=F(),s=R(r);{var i=l=>{Po(l,ft(()=>o.props,{get autocomplete(){return t.autocomplete},get value(){return n()},set value(c){n(c)}}))};z(s,l=>{o.shouldRender&&l(i)})}C(e,r),Y()}function Br(e,t){X(t,!0);let n=m(t,"tooltip",3,!1);Yt.create({id:A(()=>t.id),virtualEl:A(()=>t.virtualEl),ref:t.ref},n());var o=F(),r=R(o);L(r,()=>t.children??G),C(e,o),Y()}function Hr(e,t){X(t,!0);let n=m(t,"side",3,"bottom"),o=m(t,"sideOffset",3,0),r=m(t,"align",3,"center"),s=m(t,"alignOffset",3,0),i=m(t,"arrowPadding",3,0),l=m(t,"avoidCollisions",3,!0),c=m(t,"collisionBoundary",19,()=>[]),d=m(t,"collisionPadding",3,0),f=m(t,"hideWhenDetached",3,!1),g=m(t,"onPlaced",3,()=>{}),u=m(t,"sticky",3,"partial"),h=m(t,"updatePositionStrategy",3,"optimized"),p=m(t,"strategy",3,"fixed"),y=m(t,"dir",3,"ltr"),P=m(t,"style",19,()=>({})),v=m(t,"wrapperId",19,rn),b=m(t,"customAnchor",3,null),w=m(t,"tooltip",3,!1);const x=Xt.create({side:A(()=>n()),sideOffset:A(()=>o()),align:A(()=>r()),alignOffset:A(()=>s()),id:A(()=>t.id),arrowPadding:A(()=>i()),avoidCollisions:A(()=>l()),collisionBoundary:A(()=>c()),collisionPadding:A(()=>d()),hideWhenDetached:A(()=>f()),onPlaced:A(()=>g()),sticky:A(()=>u()),updatePositionStrategy:A(()=>h()),strategy:A(()=>p()),dir:A(()=>y()),style:A(()=>P()),enabled:A(()=>t.enabled),wrapperId:A(()=>v()),customAnchor:A(()=>b())},w()),T=S(()=>tt(x.wrapperProps,{style:{pointerEvents:"auto"}}));var _=F(),N=R(_);L(N,()=>t.content??G,()=>({props:x.props,wrapperProps:a(T)})),C(e,_),Y()}function Mr(e,t){X(t,!0),fo(()=>{t.onPlaced?.()});var n=F(),o=R(n);L(o,()=>t.content??G,()=>({props:{},wrapperProps:{}})),C(e,n),Y()}var Vr=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function kr(e,t){let n=m(t,"isStatic",3,!1),o=et(t,Vr);var r=F(),s=R(r);{var i=c=>{Mr(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=c=>{Hr(c,ft({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};z(s,c=>{n()?c(i):c(l,-1)})}C(e,r)}var Wr=new Set(["$$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"]),Lr=j("<!> <!>",1);function _n(e,t){X(t,!0);let n=m(t,"interactOutsideBehavior",3,"close"),o=m(t,"trapFocus",3,!0),r=m(t,"isValidEvent",3,()=>!1),s=m(t,"customAnchor",3,null),i=m(t,"isStatic",3,!1),l=m(t,"tooltip",3,!1),c=m(t,"contentPointerEvents",3,"auto"),d=et(t,Wr);const f=S(()=>t.preventScroll??!0),g=S(()=>t.strategy??(a(f)?"fixed":"absolute"));kr(e,{get isStatic(){return i()},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 a(g)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return l()},content:(h,p)=>{let y=()=>(p?.()).props,P=()=>(p?.()).wrapperProps;var v=Lr(),b=R(v);{var w=_=>{ke(_,{get preventScroll(){return a(f)}})},x=_=>{ke(_,{get preventScroll(){return a(f)}})};z(b,_=>{t.forceMount&&t.enabled?_(w):t.forceMount||_(x,1)})}var T=ot(b,2);lo(T,{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:(N,B)=>{let V=()=>(B?.()).props;ao(N,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(E,W)=>{co(E,{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:(I,H)=>{let k=()=>(H?.()).props;uo(I,{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:(K,nt)=>{var U=F(),Q=R(U);{let bt=S(()=>({props:tt(d,y(),k(),V(),{style:{pointerEvents:c()}}),wrapperProps:P()}));L(Q,()=>t.popper??G,()=>a(bt))}C(K,U)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),C(h,v)},$$slots:{content:!0}}),Y()}var zr=new Set(["$$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"]);function Kr(e,t){let n=m(t,"interactOutsideBehavior",3,"close"),o=m(t,"trapFocus",3,!0),r=m(t,"isValidEvent",3,()=>!1),s=m(t,"customAnchor",3,null),i=m(t,"isStatic",3,!1),l=et(t,zr);var c=F(),d=R(c);{var f=g=>{_n(g,ft({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 s()},get isStatic(){return i()},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))};z(d,g=>{t.shouldRender&&g(f)})}C(e,c)}var Ur=new Set(["$$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"]);function Xr(e,t){let n=m(t,"interactOutsideBehavior",3,"close"),o=m(t,"trapFocus",3,!0),r=m(t,"isValidEvent",3,()=>!1),s=m(t,"customAnchor",3,null),i=m(t,"isStatic",3,!1),l=et(t,Ur);_n(e,ft({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 s()},get isStatic(){return i()},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 Yr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),$e=j("<div><div><!></div></div>");function jr(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"forceMount",3,!1),i=m(t,"side",3,"bottom"),l=m(t,"onInteractOutside",3,dt),c=m(t,"onEscapeKeydown",3,dt),d=m(t,"preventScroll",3,!1),f=et(t,Yr);const g=Ce.create({id:A(()=>o()),ref:A(()=>r(),v=>r(v)),onInteractOutside:A(()=>l()),onEscapeKeydown:A(()=>c())}),u=S(()=>tt(f,g.props));var h=F(),p=R(h);{var y=v=>{Xr(v,ft(()=>a(u),()=>g.popperProps,{get ref(){return g.opts.ref},get side(){return i()},get enabled(){return g.root.opts.open.current},get id(){return o()},get preventScroll(){return d()},forceMount:!0,get shouldRender(){return g.shouldRender},popper:(w,x)=>{let T=()=>(x?.()).props,_=()=>(x?.()).wrapperProps;const N=S(()=>tt(T(),{style:g.props.style},{style:t.style}));var B=F(),V=R(B);{var E=D=>{var I=F(),H=R(I);{let k=S(()=>({props:a(N),wrapperProps:_(),...g.snippetProps}));L(H,()=>t.child,()=>a(k))}C(D,I)},W=D=>{var I=$e();$(I,()=>({..._()}));var H=rt(I);$(H,()=>({...a(N)}));var k=rt(H);L(k,()=>t.children??G),it(H),it(I),C(D,I)};z(V,D=>{t.child?D(E):D(W,-1)})}C(w,B)},$$slots:{popper:!0}}))},P=v=>{Kr(v,ft(()=>a(u),()=>g.popperProps,{get ref(){return g.opts.ref},get side(){return i()},get open(){return g.root.opts.open.current},get id(){return o()},get preventScroll(){return d()},forceMount:!1,get shouldRender(){return g.shouldRender},popper:(w,x)=>{let T=()=>(x?.()).props,_=()=>(x?.()).wrapperProps;const N=S(()=>tt(T(),{style:g.props.style},{style:t.style}));var B=F(),V=R(B);{var E=D=>{var I=F(),H=R(I);{let k=S(()=>({props:a(N),wrapperProps:_(),...g.snippetProps}));L(H,()=>t.child,()=>a(k))}C(D,I)},W=D=>{var I=$e();$(I,()=>({..._()}));var H=rt(I);$(H,()=>({...a(N)}));var k=rt(H);L(k,()=>t.children??G),it(H),it(I),C(D,I)};z(V,D=>{t.child?D(E):D(W,-1)})}C(w,B)},$$slots:{popper:!0}}))};z(p,v=>{s()?v(y):s()||v(P,1)})}C(e,h),Y()}function Ee(e,t){X(t,!0);let n=m(t,"mounted",15,!1),o=m(t,"onMountedChange",3,dt);xo(()=>(n(!0),o()(!0),()=>{n(!1),o()(!1)})),Y()}var qr=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),Zr=j("<div><!></div>"),Gr=j("<!> <!>",1);function Qr(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"label",19,()=>t.value),i=m(t,"disabled",3,!1),l=m(t,"onHighlight",3,dt),c=m(t,"onUnhighlight",3,dt),d=et(t,qr);const f=_e.create({id:A(()=>o()),ref:A(()=>r(),v=>r(v)),value:A(()=>t.value),disabled:A(()=>i()),label:A(()=>s()),onHighlight:A(()=>l()),onUnhighlight:A(()=>c())}),g=S(()=>tt(d,f.props));var u=Gr(),h=R(u);{var p=v=>{var b=F(),w=R(b);{let x=S(()=>({props:a(g),...f.snippetProps}));L(w,()=>t.child,()=>a(x))}C(v,b)},y=v=>{var b=Zr();$(b,()=>({...a(g)}));var w=rt(b);L(w,()=>t.children??G,()=>f.snippetProps),it(b),C(v,b)};z(h,v=>{t.child?v(p):v(y,-1)})}var P=ot(h,2);Ee(P,{get mounted(){return f.mounted},set mounted(v){f.mounted=v}}),C(e,u),Y()}var Jr=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),$r=j("<div><!></div>");function ti(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=et(t,Jr);const i=Te.create({id:A(()=>o()),ref:A(()=>r(),u=>r(u))}),l=S(()=>tt(s,i.props));var c=F(),d=R(c);{var f=u=>{var h=F(),p=R(h);L(p,()=>t.child,()=>({props:a(l)})),C(u,h)},g=u=>{var h=$r();$(h,()=>({...a(l)}));var p=rt(h);L(p,()=>t.children??G),it(h),C(u,h)};z(d,u=>{t.child?u(f):u(g,-1)})}C(e,c),Y()}var ei=new Set(["$$slots","$$events","$$legacy","id","ref","delay","child","children"]),ni=j("<div><!></div>"),oi=j("<!> <!>",1);function ri(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"delay",3,()=>50),i=et(t,ei);const l=Re.create({id:A(()=>o()),ref:A(()=>r(),u=>r(u)),delay:A(()=>s())}),c=S(()=>tt(i,l.props));var d=F(),f=R(d);{var g=u=>{var h=oi(),p=R(h);Ee(p,{get mounted(){return l.scrollButtonState.mounted},set mounted(b){l.scrollButtonState.mounted=b}});var y=ot(p,2);{var P=b=>{var w=F(),x=R(w);L(x,()=>t.child,()=>({props:i})),C(b,w)},v=b=>{var w=ni();$(w,()=>({...a(c)}));var x=rt(w);L(x,()=>t.children??G),it(w),C(b,w)};z(y,b=>{t.child?b(P):b(v,-1)})}C(u,h)};z(f,u=>{l.canScrollDown&&u(g)})}C(e,d),Y()}var ii=new Set(["$$slots","$$events","$$legacy","id","ref","delay","child","children"]),si=j("<div><!></div>"),li=j("<!> <!>",1);function ai(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"delay",3,()=>50),i=et(t,ii);const l=Ie.create({id:A(()=>o()),ref:A(()=>r(),u=>r(u)),delay:A(()=>s())}),c=S(()=>tt(i,l.props));var d=F(),f=R(d);{var g=u=>{var h=li(),p=R(h);Ee(p,{get mounted(){return l.scrollButtonState.mounted},set mounted(b){l.scrollButtonState.mounted=b}});var y=ot(p,2);{var P=b=>{var w=F(),x=R(w);L(x,()=>t.child,()=>({props:i})),C(b,w)},v=b=>{var w=si();$(w,()=>({...a(c)}));var x=rt(w);L(x,()=>t.children??G),it(w),C(b,w)};z(y,b=>{t.child?b(P):b(v,-1)})}C(u,h)};z(f,u=>{l.canScrollUp&&u(g)})}C(e,d),Y()}var ci=j("<!> <!>",1);function di(e,t){X(t,!0);let n=m(t,"value",15),o=m(t,"onValueChange",3,dt),r=m(t,"name",3,""),s=m(t,"disabled",3,!1),i=m(t,"open",15,!1),l=m(t,"onOpenChange",3,dt),c=m(t,"onOpenChangeComplete",3,dt),d=m(t,"loop",3,!1),f=m(t,"scrollAlignment",3,"nearest"),g=m(t,"required",3,!1),u=m(t,"items",19,()=>[]),h=m(t,"allowDeselect",3,!1);function p(){n()===void 0&&n(t.type==="single"?"":[])}p(),q.pre(()=>n(),()=>{p()});let y=M("");const P=Fr.create({type:t.type,value:A(()=>n(),N=>{n(N),o()(N)}),disabled:A(()=>s()),required:A(()=>g()),open:A(()=>i(),N=>{i(N),l()(N)}),loop:A(()=>d()),scrollAlignment:A(()=>f()),name:A(()=>r()),isCombobox:!1,items:A(()=>u()),allowDeselect:A(()=>h()),inputValue:A(()=>a(y),N=>O(y,N,!0)),onOpenChangeComplete:A(()=>c())});var v=ci(),b=R(v);Cr(b,{children:(N,B)=>{var V=F(),E=R(V);L(E,()=>t.children??G),C(N,V)},$$slots:{default:!0}});var w=ot(b,2);{var x=N=>{var B=F(),V=R(B);{var E=D=>{le(D,{get autocomplete(){return t.autocomplete}})},W=D=>{var I=F(),H=R(I);nn(H,16,()=>P.opts.value.current,k=>k,(k,K)=>{le(k,{get value(){return K},get autocomplete(){return t.autocomplete}})}),C(D,I)};z(V,D=>{P.opts.value.current.length===0?D(E):D(W,-1)})}C(N,B)},T=S(()=>Array.isArray(P.opts.value.current)),_=N=>{le(N,{get autocomplete(){return t.autocomplete},get value(){return P.opts.value.current},set value(B){P.opts.value.current=B}})};z(w,N=>{a(T)?N(x):N(_,-1)})}C(e,v),Y()}var ui=new Set(["$$slots","$$events","$$legacy","ref","id","placeholder","child","children"]),hi=j("<span><!></span>");function fi(e,t){const n=At();X(t,!0);let o=m(t,"ref",15,null),r=m(t,"id",19,()=>Ct(n)),s=et(t,ui);const i=Oe.create({id:A(()=>r()),ref:A(()=>o(),u=>o(u)),placeholder:A(()=>t.placeholder)}),l=S(()=>tt(s,i.props));var c=F(),d=R(c);{var f=u=>{var h=F(),p=R(h);{let y=S(()=>({props:a(l),...i.snippetProps}));L(p,()=>t.child,()=>a(y))}C(u,h)},g=u=>{var h=hi();$(h,()=>({...a(l)}));var p=rt(h);{var y=w=>{var x=F(),T=R(x);L(T,()=>t.children??G,()=>i.snippetProps),C(w,x)},P=w=>{var x=te();Wt(()=>kt(x,i.snippetProps.selection.selected?.label??t.placeholder)),C(w,x)},v=w=>{var x=te();Wt(T=>kt(x,T),[()=>i.snippetProps.selection.selected.length>0?i.snippetProps.selection.selected.map(T=>T.label).join(", "):t.placeholder]),C(w,x)},b=w=>{var x=te();Wt(()=>kt(x,t.placeholder)),C(w,x)};z(p,w=>{t.children?w(y):i.snippetProps.selection.type==="single"?w(P,1):i.snippetProps.selection.type==="multiple"&&i.snippetProps.selection.selected?w(v,2):w(b,-1)})}it(h),C(u,h)};z(d,u=>{t.child?u(f):u(g,-1)})}C(e,c),Y()}var gi=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),pi=j("<button><!></button>");function mi(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"type",3,"button"),i=et(t,gi);const l=Ae.create({id:A(()=>o()),ref:A(()=>r(),g=>r(g))}),c=S(()=>tt(i,l.props,{type:s()}));var d=F(),f=R(d);go(f,()=>Br,(g,u)=>{u(g,{get id(){return o()},get ref(){return l.opts.ref},children:(h,p)=>{var y=F(),P=R(y);{var v=w=>{var x=F(),T=R(x);L(T,()=>t.child,()=>({props:a(c)})),C(w,x)},b=w=>{var x=pi();$(x,()=>({...a(c)}));var T=rt(x);L(T,()=>t.children??G),it(x),C(w,x)};z(P,w=>{t.child?w(v):w(b,-1)})}C(h,y)},$$slots:{default:!0}})}),C(e,d),Y()}const vi=Object.freeze(Object.defineProperty({__proto__:null,Content:jr,Item:Qr,Portal:ho,Root:di,ScrollDownButton:ri,ScrollUpButton:ai,Trigger:mi,Value:fi,Viewport:ti},Symbol.toStringTag,{value:"Module"}));var tn=j("<!> <!>",1),wi=j('<span class="truncate"> </span> <!>',1),yi=j("<!> <!> <!>",1);function Ni(e,t){X(t,!0);const{Root:n,Trigger:o,Value:r,Portal:s,Content:i,Viewport:l,Item:c,ScrollUpButton:d,ScrollDownButton:f}=vi;let g=m(t,"value",15,""),u=m(t,"placeholder",3,"请选择"),h=m(t,"disabled",3,!1),p=m(t,"options",19,()=>[]),y=m(t,"triggerClass",3,""),P=m(t,"contentClass",3,""),v=m(t,"class",3,"");n(e,{get items(){return p()},get disabled(){return h()},type:"single",get value(){return g()},set value(b){g(b)},children:(b,w)=>{var x=tn(),T=R(x);{let N=S(()=>Be("inline-flex h-9 w-full touch-none items-center justify-between gap-2 rounded-md border border-input bg-background px-3 text-sm shadow-sm outline-none transition-colors placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&[data-state=open]>svg]:rotate-180",y(),v()));o(T,{get id(){return t.id},get"aria-label"(){return t["aria-label"]},get class(){return a(N)},children:(B,V)=>{var E=tn(),W=R(E);r(W,{get placeholder(){return u()},class:"truncate"});var D=ot(W,2);We(D,{class:"ml-auto size-4 shrink-0 opacity-50 transition-transform duration-200","aria-hidden":"true"}),C(B,E)},$$slots:{default:!0}})}var _=ot(T,2);s(_,{children:(N,B)=>{{let V=S(()=>Be("z-50 w-[var(--bits-select-anchor-width)] min-w-[var(--bits-select-anchor-width)] max-h-[var(--bits-select-content-available-height)] select-none overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-none 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-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",P()));i(N,{get class(){return a(V)},sideOffset:4,children:(E,W)=>{var D=yi(),I=R(D);d(I,{class:"flex w-full items-center justify-center py-0.5 text-muted-foreground","aria-label":"向上滚动",children:(K,nt)=>{vo(K,{class:"size-3.5","aria-hidden":"true"})},$$slots:{default:!0}});var H=ot(I,2);l(H,{class:"max-h-[var(--bits-select-content-available-height)] overflow-y-auto p-1",children:(K,nt)=>{var U=F(),Q=R(U);nn(Q,17,p,bt=>bt.value,(bt,Mt)=>{c(bt,{get value(){return a(Mt).value},get label(){return a(Mt).label},get disabled(){return a(Mt).disabled},class:"relative flex h-9 w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none transition-colors data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",children:(Nn,Tn)=>{let Rn=()=>(Tn?.()).selected;var De=wi(),Fe=R(De),In=Wn(Fe,!0),En=ot(Fe,2);{var Dn=$t=>{mo($t,{class:"ml-auto size-4 shrink-0","aria-hidden":"true"})};z(En,$t=>{Rn()&&$t(Dn)})}Wt(()=>kt(In,a(Mt).label)),C(Nn,De)},$$slots:{default:!0}})}),C(K,U)},$$slots:{default:!0}});var k=ot(H,2);f(k,{class:"flex w-full items-center justify-center py-0.5 text-muted-foreground","aria-label":"向下滚动",children:(K,nt)=>{We(K,{class:"size-3.5","aria-hidden":"true"})},$$slots:{default:!0}}),C(E,D)},$$slots:{default:!0}})}},$$slots:{default:!0}}),C(b,x)},$$slots:{default:!0}}),Y()}export{mo as C,Cr as F,Po as H,Xr as P,Ni as S,Kr as a,po as b,Br as c,yr as g};
|
|
1
|
+
import{c as F,a as C,e as Fn,f as j,o as de,p as At,t as te,s as kt}from"./CpCbeTkV.js";import{N as Bn,O as Et,t as Hn,P as en,Q as Mn,v as Vn,c as R,k as S,g as a,b as J,p as X,h as Y,i as M,F as ee,a as O,I as G,u as kn,e as ot,j as rt,r as it,l as Wt,D as Wn}from"./rz89OrhQ.js";import{l as ue,s as ft,p as m,i as z,r as et}from"./BwDU-fss.js";import{I as he,s as fe,n as $,a as L,e as nn,c as Be}from"./AUu53b1K.js";import{y as on,z as Ln,m as tt,A as mt,C as Ht,B as zn,f as ct,G as rn,H as Kn,I as Un,w as q,J as Xn,K as Yn,L as jn,N as ge,O as qn,Q as _t,U as Dt,E as He,S as ne,V as Me,W as sn,X as ln,Y as an,Z as cn,_ as Zn,$ as Gn,a0 as Qn,a1 as Jn,s as $n,n as dt,a2 as dn,r as to,b as A,k as eo,i as un,t as hn,h as no,u as oo,a3 as ro,q as io,g as Ve,a4 as so,F as lo,p as ke,l as ao,o as co,T as uo,c as Ct,P as ho}from"./Dnszd-a_.js";import{o as fo}from"./BKJ0Y2X2.js";import{c as go}from"./CK68nzZP.js";function po(e,t,n=t){var o=new WeakSet;Bn(e,"input",async r=>{var s=r?e.defaultValue:e.value;if(s=oe(e)?re(s):s,n(s),Et!==null&&o.add(Et),await Hn(),s!==(s=t())){var i=e.selectionStart,l=e.selectionEnd,c=e.value.length;if(e.value=s??"",l!==null){var d=e.value.length;i===l&&l===c&&d>c?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=i,e.selectionEnd=Math.min(l,d))}}}),(Vn&&e.defaultValue!==e.value||en(t)==null&&e.value)&&(n(oe(e)?re(e.value):e.value),Et!==null&&o.add(Et)),Mn(()=>{var r=t();if(e===document.activeElement){var s=Et;if(o.has(s))return}oe(e)&&r===re(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function oe(e){var t=e.type;return t==="number"||t==="range"}function re(e){return e===""?null:+e}function mo(e,t){const n=ue(t,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"M20 6 9 17l-5-5"}]];he(e,ft({name:"check"},()=>n,{get iconNode(){return o},children:(r,s)=>{var i=F(),l=R(i);fe(l,t,"default",{}),C(r,i)},$$slots:{default:!0}}))}function We(e,t){const n=ue(t,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"m6 9 6 6 6-6"}]];he(e,ft({name:"chevron-down"},()=>n,{get iconNode(){return o},children:(r,s)=>{var i=F(),l=R(i);fe(l,t,"default",{}),C(r,i)},$$slots:{default:!0}}))}function vo(e,t){const n=ue(t,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"m18 15-6-6-6 6"}]];he(e,ft({name:"chevron-up"},()=>n,{get iconNode(){return o},children:(r,s)=>{var i=F(),l=R(i);fe(l,t,"default",{}),C(r,i)},$$slots:{default:!0}}))}const fn={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%)"};on(fn);function wo(e){return typeof e=="function"}function Le(e){return wo(e)?e():e}class yo{#t={width:0,height:0};#e=!1;#n;#o;#r;#i=S(()=>(a(this.#s)?.(),this.getSize().width));#l=S(()=>(a(this.#s)?.(),this.getSize().height));#s=S(()=>{const t=Le(this.#o);if(t)return Fn(n=>{if(!this.#r)return;const o=new this.#r.ResizeObserver(r=>{this.#e=!0;for(const s of r){const i=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(i)?i:[i];this.#t.width=l.reduce((c,d)=>Math.max(c,d.inlineSize),0),this.#t.height=l.reduce((c,d)=>Math.max(c,d.blockSize),0)}n()});return o.observe(t),()=>{this.#e=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#r=n.window??Ln,this.#n=n,this.#o=t,this.#t={width:0,height:0}}calculateSize(){const t=Le(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),s=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),l=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),c=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),d=n-s-l,f=o-i-c;return{width:d,height:f}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return a(this.#s)?.(),this.getSize()}get width(){return a(this.#i)}get height(){return a(this.#l)}}class bo{#t=()=>{};#e=S(()=>this.#t());constructor(t,n){let o;n!==void 0&&(o=n),this.#t=()=>{try{return o}finally{o=t()}}}get current(){return a(this.#e)}}function xo(e){J(()=>en(()=>e()))}var So=new Set(["$$slots","$$events","$$legacy","value"]),ze=j("<input/>");function Po(e,t){X(t,!0);let n=m(t,"value",15),o=et(t,So);const r=S(()=>tt(o,{"aria-hidden":"true",tabindex:-1,style:{...fn,position:"absolute",top:"0",left:"0"}}));var s=F(),i=R(s);{var l=d=>{var f=ze();$(f,()=>({...a(r),value:n()}),void 0,void 0,void 0,void 0,!0),C(d,f)},c=d=>{var f=ze();$(f,()=>({...a(r)}),void 0,void 0,void 0,void 0,!0),po(f,n),C(d,f)};z(i,d=>{a(r).type==="checkbox"?d(l):d(c,-1)})}C(e,s),Y()}const Oo=["top","right","bottom","left"],vt=Math.min,ut=Math.max,Lt=Math.round,Vt=Math.floor,ht=e=>({x:e,y:e}),Ao={left:"right",right:"left",bottom:"top",top:"bottom"};function gn(e,t,n){return ut(e,vt(t,n))}function gt(e,t){return typeof e=="function"?e(t):e}function wt(e){return e.split("-")[0]}function Tt(e){return e.split("-")[1]}function pe(e){return e==="x"?"y":"x"}function me(e){return e==="y"?"height":"width"}function st(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ve(e){return pe(st(e))}function Co(e,t,n){n===void 0&&(n=!1);const o=Tt(e),r=ve(e),s=me(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=zt(i)),[i,zt(i)]}function _o(e){const t=zt(e);return[ae(e),t,ae(t)]}function ae(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ke=["left","right"],Ue=["right","left"],No=["top","bottom"],To=["bottom","top"];function Ro(e,t,n){switch(e){case"top":case"bottom":return n?t?Ue:Ke:t?Ke:Ue;case"left":case"right":return t?No:To;default:return[]}}function Io(e,t,n,o){const r=Tt(e);let s=Ro(wt(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(ae)))),s}function zt(e){const t=wt(e);return Ao[t]+e.slice(t.length)}function Eo(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function pn(e){return typeof e!="number"?Eo(e):{top:e,right:e,bottom:e,left:e}}function Kt(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 Xe(e,t,n){let{reference:o,floating:r}=e;const s=st(t),i=ve(t),l=me(i),c=wt(t),d=s==="y",f=o.x+o.width/2-r.width/2,g=o.y+o.height/2-r.height/2,u=o[l]/2-r[l]/2;let h;switch(c){case"top":h={x:f,y:o.y-r.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:g};break;case"left":h={x:o.x-r.width,y:g};break;default:h={x:o.x,y:o.y}}const p=Tt(t);return p&&(h[i]+=u*(p==="end"?1:-1)*(n&&d?-1:1)),h}async function Do(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:g="floating",altBoundary:u=!1,padding:h=0}=gt(t,e),p=pn(h),P=l[u?g==="floating"?"reference":"floating":g],v=Kt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(P)))==null||n?P:P.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:c})),b=g==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),x=await(s.isElement==null?void 0:s.isElement(w))&&await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1},T=Kt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:w,strategy:c}):b);return{top:(v.top-T.top+p.top)/x.y,bottom:(T.bottom-v.bottom+p.bottom)/x.y,left:(v.left-T.left+p.left)/x.x,right:(T.right-v.right+p.right)/x.x}}const Fo=50,Bo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,l=i.detectOverflow?i:{...i,detectOverflow:Do},c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:g}=Xe(d,o,c),u=o,h=0;const p={};for(let y=0;y<s.length;y++){const P=s[y];if(!P)continue;const{name:v,fn:b}=P,{x:w,y:x,data:T,reset:_}=await b({x:f,y:g,initialPlacement:o,placement:u,strategy:r,middlewareData:p,rects:d,platform:l,elements:{reference:e,floating:t}});f=w??f,g=x??g,p[v]={...p[v],...T},_&&h<Fo&&(h++,typeof _=="object"&&(_.placement&&(u=_.placement),_.rects&&(d=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):_.rects),{x:f,y:g}=Xe(d,u,c)),y=-1)}return{x:f,y:g,placement:u,strategy:r,middlewareData:p}},Ho=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:l,middlewareData:c}=t,{element:d,padding:f=0}=gt(e,t)||{};if(d==null)return{};const g=pn(f),u={x:n,y:o},h=ve(r),p=me(h),y=await i.getDimensions(d),P=h==="y",v=P?"top":"left",b=P?"bottom":"right",w=P?"clientHeight":"clientWidth",x=s.reference[p]+s.reference[h]-u[h]-s.floating[p],T=u[h]-s.reference[h],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let N=_?_[w]:0;(!N||!await(i.isElement==null?void 0:i.isElement(_)))&&(N=l.floating[w]||s.floating[p]);const B=x/2-T/2,V=N/2-y[p]/2-1,E=vt(g[v],V),W=vt(g[b],V),D=N-y[p]-W,I=N/2-y[p]/2+B,H=gn(E,I,D),k=!c.arrow&&Tt(r)!=null&&I!==H&&s.reference[p]/2-(I<E?E:W)-y[p]/2<0,K=k?I<E?I-E:I-D:0;return{[h]:u[h]+K,data:{[h]:H,centerOffset:I-H-K,...k&&{alignmentOffset:K}},reset:k}}}),Mo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:g=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...P}=gt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=wt(r),b=st(l),w=wt(l)===l,x=await(c.isRTL==null?void 0:c.isRTL(d.floating)),T=u||(w||!y?[zt(l)]:_o(l)),_=p!=="none";!u&&_&&T.push(...Io(l,y,p,x));const N=[l,...T],B=await c.detectOverflow(t,P),V=[];let E=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&V.push(B[v]),g){const H=Co(r,i,x);V.push(B[H[0]],B[H[1]])}if(E=[...E,{placement:r,overflows:V}],!V.every(H=>H<=0)){var W,D;const H=(((W=s.flip)==null?void 0:W.index)||0)+1,k=N[H];if(k&&(!(g==="alignment"?b!==st(k):!1)||E.every(U=>st(U.placement)===b?U.overflows[0]>0:!0)))return{data:{index:H,overflows:E},reset:{placement:k}};let K=(D=E.filter(nt=>nt.overflows[0]<=0).sort((nt,U)=>nt.overflows[1]-U.overflows[1])[0])==null?void 0:D.placement;if(!K)switch(h){case"bestFit":{var I;const nt=(I=E.filter(U=>{if(_){const Q=st(U.placement);return Q===b||Q==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(Q=>Q>0).reduce((Q,bt)=>Q+bt,0)]).sort((U,Q)=>U[1]-Q[1])[0])==null?void 0:I[0];nt&&(K=nt);break}case"initialPlacement":K=l;break}if(r!==K)return{reset:{placement:K}}}return{}}}};function Ye(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function je(e){return Oo.some(t=>e[t]>=0)}const Vo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=gt(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...s,elementContext:"reference"}),l=Ye(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:je(l)}}}case"escaped":{const i=await o.detectOverflow(t,{...s,altBoundary:!0}),l=Ye(i,n.floating);return{data:{escapedOffsets:l,escaped:je(l)}}}default:return{}}}}},mn=new Set(["left","top"]);async function ko(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=wt(n),l=Tt(n),c=st(n)==="y",d=mn.has(i)?-1:1,f=s&&c?-1:1,g=gt(t,e);let{mainAxis:u,crossAxis:h,alignmentAxis:p}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof p=="number"&&(h=l==="end"?p*-1:p),c?{x:h*f,y:u*d}:{x:u*d,y:h*f}}const Wo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:l}=t,c=await ko(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:s+c.y,data:{...c,placement:i}}}}},Lo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:b=>{let{x:w,y:x}=b;return{x:w,y:x}}},...d}=gt(e,t),f={x:n,y:o},g=await s.detectOverflow(t,d),u=st(r),h=pe(u);let p=f[h],y=f[u];const P=(b,w)=>gn(w+g[b==="y"?"top":"left"],w,w-g[b==="y"?"bottom":"right"]);i&&(p=P(h,p)),l&&(y=P(u,y));const v=c.fn({...t,[h]:p,[u]:y});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[h]:i,[u]:l}}}}}},zo=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:s,placement:i,rects:l,middlewareData:c}=t,{offset:d=0,mainAxis:f=!0,crossAxis:g=!0}=gt(e,t),u={x:r,y:s},h=st(i),p=pe(h);let y=u[p],P=u[h];const v=gt(d,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:(n=v.mainAxis)!=null?n:0,crossAxis:(o=v.crossAxis)!=null?o:0};if(f){const T=p==="y"?"height":"width",_=l.reference[p]-l.floating[T]+b.mainAxis,N=l.reference[p]+l.reference[T]-b.mainAxis;y<_?y=_:y>N&&(y=N)}if(g){var w,x;const T=p==="y"?"width":"height",_=mn.has(wt(i)),N=l.reference[h]-l.floating[T]+(_&&((w=c.offset)==null?void 0:w[h])||0)+(_?0:b.crossAxis),B=l.reference[h]+l.reference[T]+(_?0:((x=c.offset)==null?void 0:x[h])||0)-(_?b.crossAxis:0);P<N?P=N:P>B&&(P=B)}return{[p]:y,[h]:P}}}},Ko=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:i=()=>{},...l}=gt(e,t),c=await r.detectOverflow(t,l),d=wt(n),f=Tt(n),g=st(n)==="y",{width:u,height:h}=o.floating;let p,y;d==="top"||d==="bottom"?(p=d,y=f===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,p=f==="end"?"top":"bottom");const P=h-c.top-c.bottom,v=u-c.left-c.right,b=vt(h-c[p],P),w=vt(u-c[y],v),x=t.middlewareData.shift,T=!x;let _=b,N=w;x!=null&&x.enabled.x&&(N=v),x!=null&&x.enabled.y&&(_=P),T&&!f&&(g?N=u-2*ut(c.left,c.right):_=h-2*ut(c.top,c.bottom)),await i({...t,availableWidth:N,availableHeight:_});const B=await r.getDimensions(s.floating);return u!==B.width||h!==B.height?{reset:{rects:!0}}:{}}}};function jt(){return typeof window<"u"}function Rt(e){return vn(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pt(e){var t;return(t=(vn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vn(e){return jt()?e instanceof Node||e instanceof Z(e).Node:!1}function lt(e){return jt()?e instanceof Element||e instanceof Z(e).Element:!1}function yt(e){return jt()?e instanceof HTMLElement||e instanceof Z(e).HTMLElement:!1}function qe(e){return!jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot}function qt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Uo(e){return/^(table|td|th)$/.test(Rt(e))}function Zt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Xo=/transform|translate|scale|rotate|perspective|filter/,Yo=/paint|layout|strict|content/,xt=e=>!!e&&e!=="none";let ie;function we(e){const t=lt(e)?at(e):e;return xt(t.transform)||xt(t.translate)||xt(t.scale)||xt(t.rotate)||xt(t.perspective)||!ye()&&(xt(t.backdropFilter)||xt(t.filter))||Xo.test(t.willChange||"")||Yo.test(t.contain||"")}function jo(e){let t=Pt(e);for(;yt(t)&&!Ft(t);){if(we(t))return t;if(Zt(t))return null;t=Pt(t)}return null}function ye(){return ie==null&&(ie=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ie}function Ft(e){return/^(html|body|#document)$/.test(Rt(e))}function at(e){return Z(e).getComputedStyle(e)}function Gt(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pt(e){if(Rt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qe(e)&&e.host||pt(e);return qe(t)?t.host:t}function wn(e){const t=Pt(e);return Ft(t)?(e.ownerDocument||e).body:yt(t)&&qt(t)?t:wn(t)}function Bt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=wn(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=Z(r);if(s){const l=ce(i);return t.concat(i,i.visualViewport||[],qt(r)?r:[],l&&n?Bt(l):[])}else return t.concat(r,Bt(r,[],n))}function ce(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yn(e){const t=at(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=yt(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,l=Lt(n)!==s||Lt(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function be(e){return lt(e)?e:e.contextElement}function Nt(e){const t=be(e);if(!yt(t))return ht(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=yn(t);let i=(s?Lt(n.width):n.width)/o,l=(s?Lt(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const qo=ht(0);function bn(e){const t=Z(e);return!ye()||!t.visualViewport?qo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Z(e)}function Ot(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=be(e);let i=ht(1);t&&(o?lt(o)&&(i=Nt(o)):i=Nt(e));const l=Zo(s,n,o)?bn(s):ht(0);let c=(r.left+l.x)/i.x,d=(r.top+l.y)/i.y,f=r.width/i.x,g=r.height/i.y;if(s&&o){const u=Z(s),h=lt(o)?Z(o):o;let p=u,y=ce(p);for(;y&&h!==p;){const P=Nt(y),v=y.getBoundingClientRect(),b=at(y),w=v.left+(y.clientLeft+parseFloat(b.paddingLeft))*P.x,x=v.top+(y.clientTop+parseFloat(b.paddingTop))*P.y;c*=P.x,d*=P.y,f*=P.x,g*=P.y,c+=w,d+=x,p=Z(y),y=ce(p)}}return Kt({width:f,height:g,x:c,y:d})}function Qt(e,t){const n=Gt(e).scrollLeft;return t?t.left+n:Ot(pt(e)).left+n}function xn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Qt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Go(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=pt(o),l=t?Zt(t.floating):!1;if(o===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},d=ht(1);const f=ht(0),g=yt(o);if((g||!s)&&((Rt(o)!=="body"||qt(i))&&(c=Gt(o)),g)){const h=Ot(o);d=Nt(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}const u=i&&!g&&!s?xn(i,c):ht(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+u.x,y:n.y*d.y-c.scrollTop*d.y+f.y+u.y}}function Qo(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Jo(e){const t=Gt(e),n=e.ownerDocument.body,o=ut(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=ut(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+Qt(e);const i=-t.scrollTop;return at(n).direction==="rtl"&&(s+=ut(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:s,y:i}}const $o=25;function tr(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=Z(e),s=pt(e),i=r.visualViewport;let l=s.clientWidth,c=s.clientHeight,d=0,f=0;if(i){const u=!ye()||t==="fixed";o?u||(d=-i.offsetLeft,f=-i.offsetTop):(l=i.width,c=i.height,u&&(d=i.offsetLeft,f=i.offsetTop))}if(Qt(s)<=0){const u=s.ownerDocument,h=u.body,p=getComputedStyle(h),y=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,P=Math.abs(s.clientWidth-h.clientWidth-y),v=getComputedStyle(s).scrollbarGutter==="stable both-edges"?P/2:P;v<=$o&&(l-=v)}return{width:l,height:c,x:d,y:f}}function er(e,t){const n=Ot(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Nt(e),i=e.clientWidth*s.x,l=e.clientHeight*s.y,c=r*s.x,d=o*s.y;return{width:i,height:l,x:c,y:d}}function Ze(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=tr(e,n,t);else if(t==="document")o=Jo(pt(e));else if(lt(t))o=er(t,n);else{const r=bn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Kt(o)}function nr(e,t){const n=t.get(e);if(n)return n;let o=Bt(e,[],!1).filter(l=>lt(l)&&Rt(l)!=="body"),r=null;const s=at(e).position==="fixed";let i=s?Pt(e):e;for(;lt(i)&&!Ft(i);){const l=at(i),c=we(i),d=r?r.position:s?"fixed":"";!c&&(d==="fixed"||d==="absolute"&&l.position==="static")?o=o.filter(g=>g!==i):r=l,i=Pt(i)}return t.set(e,o),o}function or(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Zt(t)?[]:nr(t,this._c):[].concat(n),o],l=Ze(t,i[0],r);let c=l.top,d=l.right,f=l.bottom,g=l.left;for(let u=1;u<i.length;u++){const h=Ze(t,i[u],r);c=ut(h.top,c),d=vt(h.right,d),f=vt(h.bottom,f),g=ut(h.left,g)}return{width:d-g,height:f-c,x:g,y:c}}function rr(e){const{width:t,height:n}=yn(e);return{width:t,height:n}}function ir(e,t,n){const o=yt(t),r=pt(t),s=n==="fixed",i=Ot(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=ht(0);if((o||!s)&&((Rt(t)!=="body"||qt(r))&&(l=Gt(t)),o)){const u=Ot(t,!0,s,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}!o&&r&&(c.x=Qt(r));const d=r&&!o&&!s?xn(r,l):ht(0),f=i.left+l.scrollLeft-c.x-d.x,g=i.top+l.scrollTop-c.y-d.y;return{x:f,y:g,width:i.width,height:i.height}}function se(e){return at(e).position==="static"}function Ge(e,t){if(!yt(e)||at(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pt(e)===n&&(n=n.ownerDocument.body),n}function Sn(e,t){const n=Z(e);if(Zt(e))return n;if(!yt(e)){let r=Pt(e);for(;r&&!Ft(r);){if(lt(r)&&!se(r))return r;r=Pt(r)}return n}let o=Ge(e,t);for(;o&&Uo(o)&&se(o);)o=Ge(o,t);return o&&Ft(o)&&se(o)&&!we(o)?n:o||jo(e)||n}const sr=async function(e){const t=this.getOffsetParent||Sn,n=this.getDimensions,o=await n(e.floating);return{reference:ir(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function lr(e){return at(e).direction==="rtl"}const ar={convertOffsetParentRelativeRectToViewportRelativeRect:Go,getDocumentElement:pt,getClippingRect:or,getOffsetParent:Sn,getElementRects:sr,getClientRects:Qo,getDimensions:rr,getScale:Nt,isElement:lt,isRTL:lr};function Pn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cr(e,t,n){let o=null,r;const s=pt(e);function i(){var f;clearTimeout(r),(f=o)==null||f.disconnect(),o=null}function l(f,g){f===void 0&&(f=!1),g===void 0&&(g=1),i();const u=e.getBoundingClientRect(),{left:h,top:p,width:y,height:P}=u;if(f||t(),!y||!P)return;const v=Vt(p),b=Vt(s.clientWidth-(h+y)),w=Vt(s.clientHeight-(p+P)),x=Vt(h),_={rootMargin:-v+"px "+-b+"px "+-w+"px "+-x+"px",threshold:ut(0,vt(1,g))||1};let N=!0;function B(V){const E=V[0].intersectionRatio;if(!Pn(u,e.getBoundingClientRect()))return l();if(E!==g){if(!N)return l();E?l(!1,E):r=setTimeout(()=>{l(!1,1e-7)},1e3)}N=!1}try{o=new IntersectionObserver(B,{..._,root:s.ownerDocument})}catch{o=new IntersectionObserver(B,_)}o.observe(e)}const c=Z(e),d=()=>l(n);return c.addEventListener("resize",d),l(!0),()=>{c.removeEventListener("resize",d),i()}}function dr(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,d=be(e),f=r||s?[...d?Bt(d):[],...t?Bt(t):[]]:[];f.forEach(v=>{r&&v.addEventListener("scroll",n),s&&v.addEventListener("resize",n)});const g=d&&l?cr(d,n,s):null;let u=-1,h=null;i&&(h=new ResizeObserver(v=>{let[b]=v;b&&b.target===d&&h&&t&&(h.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),d&&!c&&h.observe(d),t&&h.observe(t));let p,y=c?Ot(e):null;c&&P();function P(){const v=Ot(e);y&&!Pn(y,v)&&n(),y=v,p=requestAnimationFrame(P)}return n(),()=>{var v;f.forEach(b=>{r&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),g?.(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const ur=Wo,hr=Lo,fr=Mo,gr=Ko,pr=Vo,mr=Ho,vr=zo,wr=(e,t,n)=>{const o=new Map,r=n??{},s={...ar,...r.platform,_c:o};return Bo(e,t,{...r,platform:s})};function St(e){return typeof e=="function"?e():e}function On(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qe(e,t){const n=On(e);return Math.round(t*n)/n}function yr(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 br(e){const t=e.whileElementsMounted,n=S(()=>St(e.open)??!0),o=S(()=>St(e.middleware)),r=S(()=>St(e.transform)??!0),s=S(()=>St(e.placement)??"bottom"),i=S(()=>St(e.strategy)??"absolute"),l=S(()=>St(e.sideOffset)??0),c=S(()=>St(e.alignOffset)??0),d=e.reference;let f=M(0),g=M(0);const u=mt(null);let h=M(ee(a(i))),p=M(ee(a(s))),y=M(ee({})),P=M(!1),v=!1,b=0;const w=S(()=>{const E=u.current?Qe(u.current,a(f)):a(f),W=u.current?Qe(u.current,a(g)):a(g);return a(r)?{position:a(h),left:"0",top:"0",transform:`translate(${E}px, ${W}px)`,...u.current&&On(u.current)>=1.5&&{willChange:"transform"}}:{position:a(h),left:`${E}px`,top:`${W}px`}});let x;function T(){if(d.current===null||u.current===null)return;const E=d.current,W=u.current,D=++b;wr(E,W,{middleware:a(o),placement:a(s),strategy:a(i)}).then(I=>{if(D!==b||d.current!==E||u.current!==W)return;if(xr(E)){O(y,{...a(y),hide:{...a(y).hide,referenceHidden:!0}},!0);return}if(!a(n)&&a(f)!==0&&a(g)!==0){const k=Math.max(Math.abs(a(l)),Math.abs(a(c)),15);if(I.x<=k&&I.y<=k)return}O(f,I.x,!0),O(g,I.y,!0),O(h,I.strategy,!0),O(p,I.placement,!0),O(y,I.middlewareData,!0),O(P,!0)})}function _(){typeof x=="function"&&(x(),x=void 0),b++}function N(){if(_(),t===void 0){T();return}a(n)&&(d.current===null||u.current===null||(x=t(d.current,u.current,T)))}function B(){!a(n)&&u.current===null&&O(P,!1)}function V(){return[a(o),a(s),a(i),a(l),a(c),a(n)]}return J(()=>{t===void 0&&a(n)&&T()}),J(N),J(()=>{if(t!==void 0){if(V(),!a(n)){v=!1;return}if(!a(P)){v=!1;return}if(!v){v=!0;return}T()}}),J(B),J(()=>_),{floating:u,reference:d,get strategy(){return a(h)},get placement(){return a(p)},get middlewareData(){return a(y)},get isPositioned(){return a(P)},get floatingStyles(){return a(w)},get update(){return T}}}function xr(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const Sr={top:"bottom",right:"left",bottom:"top",left:"right"},xe=new Ht("Floating.Root"),Je=new Ht("Floating.Content"),Se=new Ht("Floating.Root");class Ut{static create(t=!1){return t?Se.set(new Ut):xe.set(new Ut)}anchorNode=mt(null);customAnchorNode=mt(null);triggerNode=mt(null);constructor(){J(()=>{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 Xt{static create(t,n=!1){return n?Je.set(new Xt(t,Se.get())):Je.set(new Xt(t,xe.get()))}opts;root;contentRef=mt(null);wrapperRef=mt(null);arrowRef=mt(null);contentAttachment=ct(this.contentRef);wrapperAttachment=ct(this.wrapperRef);arrowAttachment=ct(this.arrowRef);arrowId=mt(rn());#t=S(()=>{if(typeof this.opts.style=="string")return Kn(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new yo(()=>this.arrowRef.current??void 0);#o=S(()=>this.#n?.width??0);#r=S(()=>this.#n?.height??0);#i=S(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#l=S(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=S(()=>a(this.#l).length>0);get hasExplicitBoundaries(){return a(this.#s)}set hasExplicitBoundaries(t){O(this.#s,t)}#a=S(()=>({padding:this.opts.collisionPadding.current,boundary:a(this.#l).filter(Un),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return a(this.#a)}set detectOverflowOptions(t){O(this.#a,t)}#c=M(void 0);#d=M(void 0);#u=M(void 0);#h=M(void 0);#f=S(()=>[ur({mainAxis:this.opts.sideOffset.current+a(this.#r),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&hr({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?vr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&fr({...this.detectOverflowOptions}),gr({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:s}=t.reference;O(this.#c,n,!0),O(this.#d,o,!0),O(this.#u,r,!0),O(this.#h,s,!0)}}),this.arrowRef.current&&mr({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Pr({arrowWidth:a(this.#o),arrowHeight:a(this.#r)}),this.opts.hideWhenDetached.current&&pr({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return a(this.#f)}set middleware(t){O(this.#f,t)}floating;#g=S(()=>Or(this.floating.placement));get placedSide(){return a(this.#g)}set placedSide(t){O(this.#g,t)}#p=S(()=>Ar(this.floating.placement));get placedAlign(){return a(this.#p)}set placedAlign(t){O(this.#p,t)}#m=S(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return a(this.#m)}set arrowX(t){O(this.#m,t)}#v=S(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return a(this.#v)}set arrowY(t){O(this.#v,t)}#w=S(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return a(this.#w)}set cannotCenterArrow(t){O(this.#w,t)}#y=M();get contentZIndex(){return a(this.#y)}set contentZIndex(t){O(this.#y,t,!0)}#b=S(()=>Sr[this.placedSide]);get arrowBaseSide(){return a(this.#b)}set arrowBaseSide(t){O(this.#b,t)}#x=S(()=>({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":`${a(this.#c)}px`,"--bits-floating-available-height":`${a(this.#d)}px`,"--bits-floating-anchor-width":`${a(this.#u)}px`,"--bits-floating-anchor-height":`${a(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...a(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return a(this.#x)}set wrapperProps(t){O(this.#x,t)}#S=S(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:on({...a(this.#t)}),...this.contentAttachment}));get props(){return a(this.#S)}set props(t){O(this.#S,t)}#P=S(()=>({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 a(this.#P)}set arrowStyle(t){O(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#e=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),q(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=br({strategy:()=>this.opts.strategy.current,placement:()=>a(this.#i),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>dr(...o,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),J(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),q(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=Xn(o),s=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const i=r.getComputedStyle(o).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{r.cancelAnimationFrame(s)}}),J(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Yt{static create(t,n=!1){return n?new Yt(t,Se.get()):new Yt(t,xe.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=zn(t.virtualEl.current):n.triggerNode=t.ref}}function Pr(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=r.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=Pe(n),g={start:"0%",center:"50%",end:"100%"}[f],u=(r.arrow?.x??0)+l/2,h=(r.arrow?.y??0)+c/2;let p="",y="";return d==="bottom"?(p=i?g:`${u}px`,y=`${-c}px`):d==="top"?(p=i?g:`${u}px`,y=`${o.floating.height+c}px`):d==="right"?(p=`${-c}px`,y=i?g:`${h}px`):d==="left"&&(p=`${o.floating.width+c}px`,y=i?g:`${h}px`),{data:{x:p,y}}}}}function Pe(e){const[t,n="center"]=e.split("-");return[t,n]}function Or(e){return Pe(e)[0]}function Ar(e){return Pe(e)[1]}function Cr(e,t){X(t,!0);let n=m(t,"tooltip",3,!1);Ut.create(n());var o=F(),r=R(o);L(r,()=>t.children??G),C(e,o),Y()}class _r{#t;#e=S(()=>this.#t.candidateValues());#n;constructor(t){this.#t=t,this.#n=Yn("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!a(this.#e).length)return;this.#n.current=this.#n.current+t;const n=this.#t.getCurrentItem(),o=a(this.#e).find(l=>l===n)??"",r=a(this.#e).map(l=>l??""),s=jn(r,this.#n.current,o),i=a(this.#e).find(l=>l===s);return i&&this.#t.onMatch(i),i}resetTypeahead(){this.#n.current=""}}const Nr=[Dt,sn,ln],Tr=[_t,an,cn],Rr=[...Nr,...Tr],Ir=eo({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),It=new Ht("Select.Root | Combobox.Root"),Jt=new Ht("Select.Content | Combobox.Content");class An{opts;#t=M(!1);get touchedInput(){return a(this.#t)}set touchedInput(t){O(this.#t,t,!0)}#e=M(null);get inputNode(){return a(this.#e)}set inputNode(t){O(this.#e,t,!0)}#n=M(null);get contentNode(){return a(this.#n)}set contentNode(t){O(this.#n,t,!0)}contentPresence;#o=M(null);get viewportNode(){return a(this.#o)}set viewportNode(t){O(this.#o,t,!0)}#r=M(null);get triggerNode(){return a(this.#r)}set triggerNode(t){O(this.#r,t,!0)}#i=M(null);get valueNode(){return a(this.#i)}set valueNode(t){O(this.#i,t,!0)}#l=M("");get valueId(){return a(this.#l)}set valueId(t){O(this.#l,t,!0)}#s=M(null);get highlightedNode(){return a(this.#s)}set highlightedNode(t){O(this.#s,t,!0)}#a=S(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return a(this.#a)}set highlightedValue(t){O(this.#a,t)}#c=S(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return a(this.#c)}set highlightedId(t){O(this.#c,t)}#d=S(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return a(this.#d)}set highlightedLabel(t){O(this.#d,t)}#u=M(!1);get contentIsPositioned(){return a(this.#u)}set contentIsPositioned(t){O(this.#u,t,!0)}isUsingKeyboard=!1;isCombobox=!1;domContext=new ge(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new to({ref:A(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),kn(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,n=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||n)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||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 s=r.getBoundingClientRect();return s.right<=o.right&&s.left>=o.left&&s.bottom<=o.bottom&&s.top>=o.top})}this.setHighlightedNode(n[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}getLabelForValue(t){if(t==="")return"";const n=this.opts.items.current.find(r=>r.value===t)?.label;if(n!==void 0)return n;const o=this.getNodeByValue(t);if(o){const r=o.getAttribute("data-label");return r!==null&&r!==""?r:o.textContent?.trim()??t}return t}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=>Ir.getAttr(t,this.isCombobox?"combobox":void 0)}class Er extends An{opts;isMulti=!1;#t=S(()=>this.opts.value.current!=="");get hasValue(){return a(this.#t)}set hasValue(t){O(this.#t,t)}#e=S(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return a(this.#e)}set currentLabel(t){O(this.#e,t)}#n=S(()=>this.opts.items.current.length?this.opts.items.current.filter(n=>!n.disabled).map(n=>n.label):[]);get candidateLabels(){return a(this.#n)}set candidateLabels(t){O(this.#n,t)}#o=S(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return a(this.#o)}set dataTypeaheadEnabled(t){O(this.#o,t)}constructor(t){super(t),this.opts=t,J(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),q(()=>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(){dn(()=>{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 Dr extends An{opts;isMulti=!0;#t=S(()=>this.opts.value.current.length>0);get hasValue(){return a(this.#t)}set hasValue(t){O(this.#t,t)}constructor(t){super(t),this.opts=t,J(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),q(()=>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(){dn(()=>{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 Fr{static create(t){const{type:n,...o}=t,r=n==="single"?new Er(o):new Dr(o);return It.set(r)}}class Oe{static create(t){return new Oe(t,It.get())}root;opts;attachment;constructor(t,n){this.root=n,this.opts=t,this.attachment=ct(t.ref,o=>this.root.valueNode=o),this.setValue=this.setValue.bind(this)}setValue(t){this.root.isMulti&&!Array.isArray(t)||!this.root.isMulti&&typeof t!="string"||(this.root.opts.value.current=t)}#t=S(()=>{if(this.root.isMulti)return{selection:{type:"multiple",selected:this.root.opts.value.current.length>0?this.root.opts.value.current.map(n=>({value:n,label:this.root.getLabelForValue(n)})):[],setValue:this.setValue},placeholder:this.opts.placeholder.current??null,disabled:this.root.opts.disabled.current};const t=this.root.opts.value.current;return{selection:{type:"single",selected:t!==""?{value:t,label:t===""?"":this.root.getLabelForValue(t)}:void 0,setValue:this.setValue},placeholder:this.opts.placeholder.current??null,disabled:this.root.opts.disabled.current}});get snippetProps(){return a(this.#t)}set snippetProps(t){O(this.#t,t)}#e=S(()=>({id:this.opts.id.current,"data-placeholder":this.root.hasValue?void 0:"","data-select-value":"",...this.attachment}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Ae{static create(t){return new Ae(t,It.get())}opts;root;attachment;#t;#e;constructor(t,n){this.opts=t,this.root=n,this.attachment=ct(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new ge(t.ref),this.#t=new qn({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new _r({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(s=>s.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===_t||t.key===Dt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===He||t.key===ne||t.key===Dt||t.key===_t)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 i=this.root.getCandidateNodes();if(!i.length)return;if(t.key===Dt){const l=i[0];this.root.setHighlightedNode(l)}else if(t.key===_t){const l=i[i.length-1];this.root.setHighlightedNode(l)}return}if(t.key===Me){this.root.handleClose();return}if((t.key===He||t.key===ne&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#r()))return;if(t.key===_t&&t.altKey&&this.root.handleClose(),Rr.includes(t.key)){t.preventDefault();const i=this.root.getCandidateNodes(),l=this.root.highlightedNode,c=l?i.indexOf(l):-1,d=this.root.opts.loop.current;let f;if(t.key===Dt?f=Zn(i,c,d):t.key===_t?f=Gn(i,c,d):t.key===an?f=Qn(i,c,10,d):t.key===sn?f=Jn(i,c,10,d):t.key===ln?f=i[0]:t.key===cn&&(f=i[i.length-1]),!f)return;this.root.setHighlightedNode(f);return}const n=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,r=t.key===ne,s=this.root.getCandidateNodes();if(t.key!==Me){if(!n&&(o||r)){!this.#t.handleTypeaheadSearch(t.key,s)&&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()))}#i=S(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":no(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":hn(this.root.opts.open.current),"data-disabled":un(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 a(this.#i)}set props(t){O(this.#i,t)}}class Ce{static create(t){return Jt.set(new Ce(t,It.get()))}opts;root;attachment;#t=M(!1);get isPositioned(){return a(this.#t)}set isPositioned(t){O(this.#t,t,!0)}domContext;constructor(t,n){this.opts=t,this.root=n,this.attachment=ct(t.ref,o=>this.root.contentNode=o),this.domContext=new ge(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),$n(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),q(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),q([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=S(()=>yr(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=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#n)}set snippetProps(t){O(this.#n,t)}#o=S(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":hn(this.root.opts.open.current),...oo(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...a(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return a(this.#o)}set props(t){O(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.root.contentIsPositioned=!0,this.isPositioned=!0)}}}class _e{static create(t){return new _e(t,It.get())}opts;root;attachment;#t=S(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return a(this.#t)}set isSelected(t){O(this.#t,t)}#e=S(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return a(this.#e)}set isHighlighted(t){O(this.#e,t)}prevHighlighted=new bo(()=>this.isHighlighted);#n=M(!1);get mounted(){return a(this.#n)}set mounted(t){O(this.#n,t,!0)}constructor(t,n){this.opts=t,this.root=n,this.attachment=ct(t.ref),q([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),q(()=>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=S(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return a(this.#o)}set snippetProps(t){O(this.#o,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!so){de(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=S(()=>({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":un(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 a(this.#r)}set props(t){O(this.#r,t)}}class Ne{static create(t){return new Ne(t,It.get())}opts;root;#t=S(()=>this.root.opts.name.current!=="");get shouldRender(){return a(this.#t)}set shouldRender(t){O(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=S(()=>({disabled:Ve(this.root.opts.disabled.current),required:Ve(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Te{static create(t){return new Te(t,Jt.get())}opts;content;root;attachment;#t=M(0);get prevScrollTop(){return a(this.#t)}set prevScrollTop(t){O(this.#t,t,!0)}constructor(t,n){this.opts=t,this.content=n,this.root=n.root,this.attachment=ct(t.ref,o=>{this.root.viewportNode=o})}#e=S(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Cn{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=dt;#t=M(!1);get mounted(){return a(this.#t)}set mounted(t){O(this.#t,t,!0)}constructor(t,n){this.opts=t,this.content=n,this.root=n.root,this.attachment=ct(t.ref),q([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),J(()=>{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=S(()=>({id:this.opts.id.current,"aria-hidden":ro(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Re{static create(t){return new Re(new Cn(t,Jt.get()))}scrollButtonState;content;root;#t=M(!1);get canScrollDown(){return a(this.#t)}set canScrollDown(t){O(this.#t,t,!0)}scrollIntoViewTimer=null;constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,q([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),de(this.root.viewportNode,"scroll",()=>this.handleScroll())}),q([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),q(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=io(5,()=>{const n=this.root.highlightedNode;n&&this.root.scrollHighlightedNodeIntoView(n)}))})}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=S(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}class Ie{static create(t){return new Ie(new Cn(t,Jt.get()))}scrollButtonState;content;root;#t=M(!1);get canScrollUp(){return a(this.#t)}set canScrollUp(t){O(this.#t,t,!0)}constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,q([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),de(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=S(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return a(this.#e)}set props(t){O(this.#e,t)}}function le(e,t){X(t,!0);let n=m(t,"value",15);const o=Ne.create({value:A(()=>n())});var r=F(),s=R(r);{var i=l=>{Po(l,ft(()=>o.props,{get autocomplete(){return t.autocomplete},get value(){return n()},set value(c){n(c)}}))};z(s,l=>{o.shouldRender&&l(i)})}C(e,r),Y()}function Br(e,t){X(t,!0);let n=m(t,"tooltip",3,!1);Yt.create({id:A(()=>t.id),virtualEl:A(()=>t.virtualEl),ref:t.ref},n());var o=F(),r=R(o);L(r,()=>t.children??G),C(e,o),Y()}function Hr(e,t){X(t,!0);let n=m(t,"side",3,"bottom"),o=m(t,"sideOffset",3,0),r=m(t,"align",3,"center"),s=m(t,"alignOffset",3,0),i=m(t,"arrowPadding",3,0),l=m(t,"avoidCollisions",3,!0),c=m(t,"collisionBoundary",19,()=>[]),d=m(t,"collisionPadding",3,0),f=m(t,"hideWhenDetached",3,!1),g=m(t,"onPlaced",3,()=>{}),u=m(t,"sticky",3,"partial"),h=m(t,"updatePositionStrategy",3,"optimized"),p=m(t,"strategy",3,"fixed"),y=m(t,"dir",3,"ltr"),P=m(t,"style",19,()=>({})),v=m(t,"wrapperId",19,rn),b=m(t,"customAnchor",3,null),w=m(t,"tooltip",3,!1);const x=Xt.create({side:A(()=>n()),sideOffset:A(()=>o()),align:A(()=>r()),alignOffset:A(()=>s()),id:A(()=>t.id),arrowPadding:A(()=>i()),avoidCollisions:A(()=>l()),collisionBoundary:A(()=>c()),collisionPadding:A(()=>d()),hideWhenDetached:A(()=>f()),onPlaced:A(()=>g()),sticky:A(()=>u()),updatePositionStrategy:A(()=>h()),strategy:A(()=>p()),dir:A(()=>y()),style:A(()=>P()),enabled:A(()=>t.enabled),wrapperId:A(()=>v()),customAnchor:A(()=>b())},w()),T=S(()=>tt(x.wrapperProps,{style:{pointerEvents:"auto"}}));var _=F(),N=R(_);L(N,()=>t.content??G,()=>({props:x.props,wrapperProps:a(T)})),C(e,_),Y()}function Mr(e,t){X(t,!0),fo(()=>{t.onPlaced?.()});var n=F(),o=R(n);L(o,()=>t.content??G,()=>({props:{},wrapperProps:{}})),C(e,n),Y()}var Vr=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function kr(e,t){let n=m(t,"isStatic",3,!1),o=et(t,Vr);var r=F(),s=R(r);{var i=c=>{Mr(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=c=>{Hr(c,ft({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};z(s,c=>{n()?c(i):c(l,-1)})}C(e,r)}var Wr=new Set(["$$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"]),Lr=j("<!> <!>",1);function _n(e,t){X(t,!0);let n=m(t,"interactOutsideBehavior",3,"close"),o=m(t,"trapFocus",3,!0),r=m(t,"isValidEvent",3,()=>!1),s=m(t,"customAnchor",3,null),i=m(t,"isStatic",3,!1),l=m(t,"tooltip",3,!1),c=m(t,"contentPointerEvents",3,"auto"),d=et(t,Wr);const f=S(()=>t.preventScroll??!0),g=S(()=>t.strategy??(a(f)?"fixed":"absolute"));kr(e,{get isStatic(){return i()},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 a(g)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return l()},content:(h,p)=>{let y=()=>(p?.()).props,P=()=>(p?.()).wrapperProps;var v=Lr(),b=R(v);{var w=_=>{ke(_,{get preventScroll(){return a(f)}})},x=_=>{ke(_,{get preventScroll(){return a(f)}})};z(b,_=>{t.forceMount&&t.enabled?_(w):t.forceMount||_(x,1)})}var T=ot(b,2);lo(T,{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:(N,B)=>{let V=()=>(B?.()).props;ao(N,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(E,W)=>{co(E,{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:(I,H)=>{let k=()=>(H?.()).props;uo(I,{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:(K,nt)=>{var U=F(),Q=R(U);{let bt=S(()=>({props:tt(d,y(),k(),V(),{style:{pointerEvents:c()}}),wrapperProps:P()}));L(Q,()=>t.popper??G,()=>a(bt))}C(K,U)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),C(h,v)},$$slots:{content:!0}}),Y()}var zr=new Set(["$$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"]);function Kr(e,t){let n=m(t,"interactOutsideBehavior",3,"close"),o=m(t,"trapFocus",3,!0),r=m(t,"isValidEvent",3,()=>!1),s=m(t,"customAnchor",3,null),i=m(t,"isStatic",3,!1),l=et(t,zr);var c=F(),d=R(c);{var f=g=>{_n(g,ft({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 s()},get isStatic(){return i()},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))};z(d,g=>{t.shouldRender&&g(f)})}C(e,c)}var Ur=new Set(["$$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"]);function Xr(e,t){let n=m(t,"interactOutsideBehavior",3,"close"),o=m(t,"trapFocus",3,!0),r=m(t,"isValidEvent",3,()=>!1),s=m(t,"customAnchor",3,null),i=m(t,"isStatic",3,!1),l=et(t,Ur);_n(e,ft({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 s()},get isStatic(){return i()},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 Yr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),$e=j("<div><div><!></div></div>");function jr(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"forceMount",3,!1),i=m(t,"side",3,"bottom"),l=m(t,"onInteractOutside",3,dt),c=m(t,"onEscapeKeydown",3,dt),d=m(t,"preventScroll",3,!1),f=et(t,Yr);const g=Ce.create({id:A(()=>o()),ref:A(()=>r(),v=>r(v)),onInteractOutside:A(()=>l()),onEscapeKeydown:A(()=>c())}),u=S(()=>tt(f,g.props));var h=F(),p=R(h);{var y=v=>{Xr(v,ft(()=>a(u),()=>g.popperProps,{get ref(){return g.opts.ref},get side(){return i()},get enabled(){return g.root.opts.open.current},get id(){return o()},get preventScroll(){return d()},forceMount:!0,get shouldRender(){return g.shouldRender},popper:(w,x)=>{let T=()=>(x?.()).props,_=()=>(x?.()).wrapperProps;const N=S(()=>tt(T(),{style:g.props.style},{style:t.style}));var B=F(),V=R(B);{var E=D=>{var I=F(),H=R(I);{let k=S(()=>({props:a(N),wrapperProps:_(),...g.snippetProps}));L(H,()=>t.child,()=>a(k))}C(D,I)},W=D=>{var I=$e();$(I,()=>({..._()}));var H=rt(I);$(H,()=>({...a(N)}));var k=rt(H);L(k,()=>t.children??G),it(H),it(I),C(D,I)};z(V,D=>{t.child?D(E):D(W,-1)})}C(w,B)},$$slots:{popper:!0}}))},P=v=>{Kr(v,ft(()=>a(u),()=>g.popperProps,{get ref(){return g.opts.ref},get side(){return i()},get open(){return g.root.opts.open.current},get id(){return o()},get preventScroll(){return d()},forceMount:!1,get shouldRender(){return g.shouldRender},popper:(w,x)=>{let T=()=>(x?.()).props,_=()=>(x?.()).wrapperProps;const N=S(()=>tt(T(),{style:g.props.style},{style:t.style}));var B=F(),V=R(B);{var E=D=>{var I=F(),H=R(I);{let k=S(()=>({props:a(N),wrapperProps:_(),...g.snippetProps}));L(H,()=>t.child,()=>a(k))}C(D,I)},W=D=>{var I=$e();$(I,()=>({..._()}));var H=rt(I);$(H,()=>({...a(N)}));var k=rt(H);L(k,()=>t.children??G),it(H),it(I),C(D,I)};z(V,D=>{t.child?D(E):D(W,-1)})}C(w,B)},$$slots:{popper:!0}}))};z(p,v=>{s()?v(y):s()||v(P,1)})}C(e,h),Y()}function Ee(e,t){X(t,!0);let n=m(t,"mounted",15,!1),o=m(t,"onMountedChange",3,dt);xo(()=>(n(!0),o()(!0),()=>{n(!1),o()(!1)})),Y()}var qr=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),Zr=j("<div><!></div>"),Gr=j("<!> <!>",1);function Qr(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"label",19,()=>t.value),i=m(t,"disabled",3,!1),l=m(t,"onHighlight",3,dt),c=m(t,"onUnhighlight",3,dt),d=et(t,qr);const f=_e.create({id:A(()=>o()),ref:A(()=>r(),v=>r(v)),value:A(()=>t.value),disabled:A(()=>i()),label:A(()=>s()),onHighlight:A(()=>l()),onUnhighlight:A(()=>c())}),g=S(()=>tt(d,f.props));var u=Gr(),h=R(u);{var p=v=>{var b=F(),w=R(b);{let x=S(()=>({props:a(g),...f.snippetProps}));L(w,()=>t.child,()=>a(x))}C(v,b)},y=v=>{var b=Zr();$(b,()=>({...a(g)}));var w=rt(b);L(w,()=>t.children??G,()=>f.snippetProps),it(b),C(v,b)};z(h,v=>{t.child?v(p):v(y,-1)})}var P=ot(h,2);Ee(P,{get mounted(){return f.mounted},set mounted(v){f.mounted=v}}),C(e,u),Y()}var Jr=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),$r=j("<div><!></div>");function ti(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=et(t,Jr);const i=Te.create({id:A(()=>o()),ref:A(()=>r(),u=>r(u))}),l=S(()=>tt(s,i.props));var c=F(),d=R(c);{var f=u=>{var h=F(),p=R(h);L(p,()=>t.child,()=>({props:a(l)})),C(u,h)},g=u=>{var h=$r();$(h,()=>({...a(l)}));var p=rt(h);L(p,()=>t.children??G),it(h),C(u,h)};z(d,u=>{t.child?u(f):u(g,-1)})}C(e,c),Y()}var ei=new Set(["$$slots","$$events","$$legacy","id","ref","delay","child","children"]),ni=j("<div><!></div>"),oi=j("<!> <!>",1);function ri(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"delay",3,()=>50),i=et(t,ei);const l=Re.create({id:A(()=>o()),ref:A(()=>r(),u=>r(u)),delay:A(()=>s())}),c=S(()=>tt(i,l.props));var d=F(),f=R(d);{var g=u=>{var h=oi(),p=R(h);Ee(p,{get mounted(){return l.scrollButtonState.mounted},set mounted(b){l.scrollButtonState.mounted=b}});var y=ot(p,2);{var P=b=>{var w=F(),x=R(w);L(x,()=>t.child,()=>({props:i})),C(b,w)},v=b=>{var w=ni();$(w,()=>({...a(c)}));var x=rt(w);L(x,()=>t.children??G),it(w),C(b,w)};z(y,b=>{t.child?b(P):b(v,-1)})}C(u,h)};z(f,u=>{l.canScrollDown&&u(g)})}C(e,d),Y()}var ii=new Set(["$$slots","$$events","$$legacy","id","ref","delay","child","children"]),si=j("<div><!></div>"),li=j("<!> <!>",1);function ai(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"delay",3,()=>50),i=et(t,ii);const l=Ie.create({id:A(()=>o()),ref:A(()=>r(),u=>r(u)),delay:A(()=>s())}),c=S(()=>tt(i,l.props));var d=F(),f=R(d);{var g=u=>{var h=li(),p=R(h);Ee(p,{get mounted(){return l.scrollButtonState.mounted},set mounted(b){l.scrollButtonState.mounted=b}});var y=ot(p,2);{var P=b=>{var w=F(),x=R(w);L(x,()=>t.child,()=>({props:i})),C(b,w)},v=b=>{var w=si();$(w,()=>({...a(c)}));var x=rt(w);L(x,()=>t.children??G),it(w),C(b,w)};z(y,b=>{t.child?b(P):b(v,-1)})}C(u,h)};z(f,u=>{l.canScrollUp&&u(g)})}C(e,d),Y()}var ci=j("<!> <!>",1);function di(e,t){X(t,!0);let n=m(t,"value",15),o=m(t,"onValueChange",3,dt),r=m(t,"name",3,""),s=m(t,"disabled",3,!1),i=m(t,"open",15,!1),l=m(t,"onOpenChange",3,dt),c=m(t,"onOpenChangeComplete",3,dt),d=m(t,"loop",3,!1),f=m(t,"scrollAlignment",3,"nearest"),g=m(t,"required",3,!1),u=m(t,"items",19,()=>[]),h=m(t,"allowDeselect",3,!1);function p(){n()===void 0&&n(t.type==="single"?"":[])}p(),q.pre(()=>n(),()=>{p()});let y=M("");const P=Fr.create({type:t.type,value:A(()=>n(),N=>{n(N),o()(N)}),disabled:A(()=>s()),required:A(()=>g()),open:A(()=>i(),N=>{i(N),l()(N)}),loop:A(()=>d()),scrollAlignment:A(()=>f()),name:A(()=>r()),isCombobox:!1,items:A(()=>u()),allowDeselect:A(()=>h()),inputValue:A(()=>a(y),N=>O(y,N,!0)),onOpenChangeComplete:A(()=>c())});var v=ci(),b=R(v);Cr(b,{children:(N,B)=>{var V=F(),E=R(V);L(E,()=>t.children??G),C(N,V)},$$slots:{default:!0}});var w=ot(b,2);{var x=N=>{var B=F(),V=R(B);{var E=D=>{le(D,{get autocomplete(){return t.autocomplete}})},W=D=>{var I=F(),H=R(I);nn(H,16,()=>P.opts.value.current,k=>k,(k,K)=>{le(k,{get value(){return K},get autocomplete(){return t.autocomplete}})}),C(D,I)};z(V,D=>{P.opts.value.current.length===0?D(E):D(W,-1)})}C(N,B)},T=S(()=>Array.isArray(P.opts.value.current)),_=N=>{le(N,{get autocomplete(){return t.autocomplete},get value(){return P.opts.value.current},set value(B){P.opts.value.current=B}})};z(w,N=>{a(T)?N(x):N(_,-1)})}C(e,v),Y()}var ui=new Set(["$$slots","$$events","$$legacy","ref","id","placeholder","child","children"]),hi=j("<span><!></span>");function fi(e,t){const n=At();X(t,!0);let o=m(t,"ref",15,null),r=m(t,"id",19,()=>Ct(n)),s=et(t,ui);const i=Oe.create({id:A(()=>r()),ref:A(()=>o(),u=>o(u)),placeholder:A(()=>t.placeholder)}),l=S(()=>tt(s,i.props));var c=F(),d=R(c);{var f=u=>{var h=F(),p=R(h);{let y=S(()=>({props:a(l),...i.snippetProps}));L(p,()=>t.child,()=>a(y))}C(u,h)},g=u=>{var h=hi();$(h,()=>({...a(l)}));var p=rt(h);{var y=w=>{var x=F(),T=R(x);L(T,()=>t.children??G,()=>i.snippetProps),C(w,x)},P=w=>{var x=te();Wt(()=>kt(x,i.snippetProps.selection.selected?.label??t.placeholder)),C(w,x)},v=w=>{var x=te();Wt(T=>kt(x,T),[()=>i.snippetProps.selection.selected.length>0?i.snippetProps.selection.selected.map(T=>T.label).join(", "):t.placeholder]),C(w,x)},b=w=>{var x=te();Wt(()=>kt(x,t.placeholder)),C(w,x)};z(p,w=>{t.children?w(y):i.snippetProps.selection.type==="single"?w(P,1):i.snippetProps.selection.type==="multiple"&&i.snippetProps.selection.selected?w(v,2):w(b,-1)})}it(h),C(u,h)};z(d,u=>{t.child?u(f):u(g,-1)})}C(e,c),Y()}var gi=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","type"]),pi=j("<button><!></button>");function mi(e,t){const n=At();X(t,!0);let o=m(t,"id",19,()=>Ct(n)),r=m(t,"ref",15,null),s=m(t,"type",3,"button"),i=et(t,gi);const l=Ae.create({id:A(()=>o()),ref:A(()=>r(),g=>r(g))}),c=S(()=>tt(i,l.props,{type:s()}));var d=F(),f=R(d);go(f,()=>Br,(g,u)=>{u(g,{get id(){return o()},get ref(){return l.opts.ref},children:(h,p)=>{var y=F(),P=R(y);{var v=w=>{var x=F(),T=R(x);L(T,()=>t.child,()=>({props:a(c)})),C(w,x)},b=w=>{var x=pi();$(x,()=>({...a(c)}));var T=rt(x);L(T,()=>t.children??G),it(x),C(w,x)};z(P,w=>{t.child?w(v):w(b,-1)})}C(h,y)},$$slots:{default:!0}})}),C(e,d),Y()}const vi=Object.freeze(Object.defineProperty({__proto__:null,Content:jr,Item:Qr,Portal:ho,Root:di,ScrollDownButton:ri,ScrollUpButton:ai,Trigger:mi,Value:fi,Viewport:ti},Symbol.toStringTag,{value:"Module"}));var tn=j("<!> <!>",1),wi=j('<span class="truncate"> </span> <!>',1),yi=j("<!> <!> <!>",1);function Ni(e,t){X(t,!0);const{Root:n,Trigger:o,Value:r,Portal:s,Content:i,Viewport:l,Item:c,ScrollUpButton:d,ScrollDownButton:f}=vi;let g=m(t,"value",15,""),u=m(t,"placeholder",3,"请选择"),h=m(t,"disabled",3,!1),p=m(t,"options",19,()=>[]),y=m(t,"triggerClass",3,""),P=m(t,"contentClass",3,""),v=m(t,"class",3,"");n(e,{get items(){return p()},get disabled(){return h()},type:"single",get value(){return g()},set value(b){g(b)},children:(b,w)=>{var x=tn(),T=R(x);{let N=S(()=>Be("inline-flex h-9 w-full touch-none items-center justify-between gap-2 rounded-md border border-input bg-background px-3 text-sm shadow-sm outline-none transition-colors placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&[data-state=open]>svg]:rotate-180",y(),v()));o(T,{get id(){return t.id},get"aria-label"(){return t["aria-label"]},get class(){return a(N)},children:(B,V)=>{var E=tn(),W=R(E);r(W,{get placeholder(){return u()},class:"truncate"});var D=ot(W,2);We(D,{class:"ml-auto size-4 shrink-0 opacity-50 transition-transform duration-200","aria-hidden":"true"}),C(B,E)},$$slots:{default:!0}})}var _=ot(T,2);s(_,{children:(N,B)=>{{let V=S(()=>Be("z-50 w-[var(--bits-select-anchor-width)] min-w-[var(--bits-select-anchor-width)] max-h-[var(--bits-select-content-available-height)] select-none overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-none 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-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",P()));i(N,{get class(){return a(V)},sideOffset:4,children:(E,W)=>{var D=yi(),I=R(D);d(I,{class:"flex w-full items-center justify-center py-0.5 text-muted-foreground","aria-label":"向上滚动",children:(K,nt)=>{vo(K,{class:"size-3.5","aria-hidden":"true"})},$$slots:{default:!0}});var H=ot(I,2);l(H,{class:"max-h-[var(--bits-select-content-available-height)] overflow-y-auto p-1",children:(K,nt)=>{var U=F(),Q=R(U);nn(Q,17,p,bt=>bt.value,(bt,Mt)=>{c(bt,{get value(){return a(Mt).value},get label(){return a(Mt).label},get disabled(){return a(Mt).disabled},class:"relative flex h-9 w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none transition-colors data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",children:(Nn,Tn)=>{let Rn=()=>(Tn?.()).selected;var De=wi(),Fe=R(De),In=Wn(Fe,!0),En=ot(Fe,2);{var Dn=$t=>{mo($t,{class:"ml-auto size-4 shrink-0","aria-hidden":"true"})};z(En,$t=>{Rn()&&$t(Dn)})}Wt(()=>kt(In,a(Mt).label)),C(Nn,De)},$$slots:{default:!0}})}),C(K,U)},$$slots:{default:!0}});var k=ot(H,2);f(k,{class:"flex w-full items-center justify-center py-0.5 text-muted-foreground","aria-label":"向下滚动",children:(K,nt)=>{We(K,{class:"size-3.5","aria-hidden":"true"})},$$slots:{default:!0}}),C(E,D)},$$slots:{default:!0}})}},$$slots:{default:!0}}),C(b,x)},$$slots:{default:!0}}),Y()}export{mo as C,Cr as F,Po as H,Xr as P,Ni as S,Kr as a,po as b,Br as c,yr as g};
|