Files

2 lines
48 KiB
JavaScript

var pn=Object.defineProperty;var ze=e=>{throw TypeError(e)};var yn=(e,t,n)=>t in e?pn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var X=(e,t,n)=>yn(e,typeof t!="symbol"?t+"":t,n),Ne=(e,t,n)=>t.has(e)||ze("Cannot "+n);var x=(e,t,n)=>(Ne(e,t,"read from private field"),n?n.call(e):t.get(e)),E=(e,t,n)=>t.has(e)?ze("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),wt=(e,t,n,r)=>(Ne(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);import"./Bzak7iHL.js";import{k as A,g as v,y as G,a6 as xe,a as pt,q as M,p as Z,h as I,i as T,as as ot,j as D,m as J,s as xn,l as ee,br as Fe,o as bt,v as Ot}from"./DScGFiBY.js";import{c as ne}from"./B5gxx3nr.js";import{p,b as $,r as Q}from"./DoRZqEmo.js";import{d as U,b as Pt,c as nn}from"./BPc-JNDc.js";import{e as bn,C as Ee,u as rn,i as On,w as He,g as Pn,F as Sn,c as Ve,a as An,b as Cn,T as Fn,n as St,f as En,h as Rn,j as _n,k as Dn,l as Bn,d as Mn}from"./CaCQx3BS.js";import{n as ft,o as Tn,b as be,p as Wn,s as In,f as C,m as yt,d as Re}from"./B3aNbgJc.js";import{i as ht}from"./BlbL38UD.js";import{o as Ln}from"./DzJWa70M.js";import{c as kn}from"./B7h8GtFa.js";function zn(e){return typeof e=="function"}function Ke(e){return zn(e)?e():e}var dt,Ct,Ft,Et,ut,de,ue,Rt;class Nn{constructor(t,n={box:"border-box"}){E(this,dt,{width:0,height:0});E(this,Ct,!1);E(this,Ft);E(this,Et);E(this,ut);E(this,de,A(()=>{var t;return(t=v(x(this,Rt)))==null||t(),this.getSize().width}));E(this,ue,A(()=>{var t;return(t=v(x(this,Rt)))==null||t(),this.getSize().height}));E(this,Rt,A(()=>{const t=Ke(x(this,Et));if(t)return kn(n=>{if(!x(this,ut))return;const r=new(x(this,ut)).ResizeObserver(o=>{wt(this,Ct,!0);for(const i of o){const s=x(this,Ft).box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];x(this,dt).width=a.reduce((l,c)=>Math.max(l,c.inlineSize),0),x(this,dt).height=a.reduce((l,c)=>Math.max(l,c.blockSize),0)}n()});return r.observe(t),()=>{wt(this,Ct,!1),r.disconnect()}})}));wt(this,ut,n.window??bn),wt(this,Ft,n),wt(this,Et,t),wt(this,dt,{width:0,height:0})}calculateSize(){const t=Ke(x(this,Et));if(!t||!x(this,ut))return;const n=t.offsetWidth,r=t.offsetHeight;if(x(this,Ft).box==="border-box")return{width:n,height:r};const o=x(this,ut).getComputedStyle(t),i=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),s=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),l=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),c=n-i-a,u=r-s-l;return{width:c,height:u}}getSize(){return x(this,Ct)?x(this,dt):this.calculateSize()??x(this,dt)}get current(){var t;return(t=v(x(this,Rt)))==null||t(),this.getSize()}get width(){return v(x(this,de))}get height(){return v(x(this,ue))}}dt=new WeakMap,Ct=new WeakMap,Ft=new WeakMap,Et=new WeakMap,ut=new WeakMap,de=new WeakMap,ue=new WeakMap,Rt=new WeakMap;const Hn=["top","right","bottom","left"],gt=Math.min,j=Math.max,ie=Math.round,oe=Math.floor,rt=e=>({x:e,y:e}),Vn={left:"right",right:"left",bottom:"top",top:"bottom"},Kn={start:"end",end:"start"};function Pe(e,t,n){return j(e,gt(t,n))}function at(e,t){return typeof e=="function"?e(t):e}function lt(e){return e.split("-")[0]}function Dt(e){return e.split("-")[1]}function _e(e){return e==="x"?"y":"x"}function De(e){return e==="y"?"height":"width"}const Xn=new Set(["top","bottom"]);function nt(e){return Xn.has(lt(e))?"y":"x"}function Be(e){return _e(nt(e))}function Yn(e,t,n){n===void 0&&(n=!1);const r=Dt(e),o=Be(e),i=De(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=se(s)),[s,se(s)]}function Un(e){const t=se(e);return[Se(e),t,Se(t)]}function Se(e){return e.replace(/start|end/g,t=>Kn[t])}const Xe=["left","right"],Ye=["right","left"],jn=["top","bottom"],qn=["bottom","top"];function Zn(e,t,n){switch(e){case"top":case"bottom":return n?t?Ye:Xe:t?Xe:Ye;case"left":case"right":return t?jn:qn;default:return[]}}function Jn(e,t,n,r){const o=Dt(e);let i=Zn(lt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Se)))),i}function se(e){return e.replace(/left|right|bottom|top/g,t=>Vn[t])}function Qn(e){return{top:0,right:0,bottom:0,left:0,...e}}function on(e){return typeof e!="number"?Qn(e):{top:e,right:e,bottom:e,left:e}}function ae(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ue(e,t,n){let{reference:r,floating:o}=e;const i=nt(t),s=Be(t),a=De(s),l=lt(t),c=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Dt(t)){case"start":h[s]-=d*(n&&c?-1:1);break;case"end":h[s]+=d*(n&&c?-1:1);break}return h}async function Gn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=at(t,e),g=on(h),w=a[d?f==="floating"?"reference":"floating":f],b=ae(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),O=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),y=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},R=ae(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:P,strategy:l}):O);return{top:(b.top-R.top+g.top)/y.y,bottom:(R.bottom-b.bottom+g.bottom)/y.y,left:(b.left-R.left+g.left)/y.x,right:(R.right-b.right+g.right)/y.x}}const $n=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Ue(c,r,l),d=r,h={},g=0;for(let w=0;w<a.length;w++){var m;const{name:b,fn:O}=a[w],{x:P,y,data:R,reset:F}=await O({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:c,platform:{...s,detectOverflow:(m=s.detectOverflow)!=null?m:Gn},elements:{reference:e,floating:t}});u=P??u,f=y??f,h={...h,[b]:{...h[b],...R}},F&&g<=50&&(g++,typeof F=="object"&&(F.placement&&(d=F.placement),F.rects&&(c=F.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):F.rects),{x:u,y:f}=Ue(c,d,l)),w=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:h}},tr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=at(e,t)||{};if(c==null)return{};const f=on(u),d={x:n,y:r},h=Be(o),g=De(h),m=await s.getDimensions(c),w=h==="y",b=w?"top":"left",O=w?"bottom":"right",P=w?"clientHeight":"clientWidth",y=i.reference[g]+i.reference[h]-d[h]-i.floating[g],R=d[h]-i.reference[h],F=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let S=F?F[P]:0;(!S||!await(s.isElement==null?void 0:s.isElement(F)))&&(S=a.floating[P]||i.floating[g]);const L=y/2-R/2,V=S/2-m[g]/2-1,N=gt(f[b],V),K=gt(f[O],V),H=N,Y=S-m[g]-K,k=S/2-m[g]/2+L,W=Pe(H,k,Y),_=!l.arrow&&Dt(o)!=null&&k!==W&&i.reference[g]/2-(k<H?N:K)-m[g]/2<0,B=_?k<H?k-H:k-Y:0;return{[h]:d[h]+B,data:{[h]:W,centerOffset:k-W-B,..._&&{alignmentOffset:B}},reset:_}}}),er=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...w}=at(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=lt(o),O=nt(a),P=lt(a)===a,y=await(l.isRTL==null?void 0:l.isRTL(c.floating)),R=d||(P||!m?[se(a)]:Un(a)),F=g!=="none";!d&&F&&R.push(...Jn(a,m,g,y));const S=[a,...R],L=await l.detectOverflow(t,w),V=[];let N=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&V.push(L[b]),f){const k=Yn(o,s,y);V.push(L[k[0]],L[k[1]])}if(N=[...N,{placement:o,overflows:V}],!V.every(k=>k<=0)){var K,H;const k=(((K=i.flip)==null?void 0:K.index)||0)+1,W=S[k];if(W&&(!(f==="alignment"?O!==nt(W):!1)||N.every(z=>nt(z.placement)===O?z.overflows[0]>0:!0)))return{data:{index:k,overflows:N},reset:{placement:W}};let _=(H=N.filter(B=>B.overflows[0]<=0).sort((B,z)=>B.overflows[1]-z.overflows[1])[0])==null?void 0:H.placement;if(!_)switch(h){case"bestFit":{var Y;const B=(Y=N.filter(z=>{if(F){const ct=nt(z.placement);return ct===O||ct==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(ct=>ct>0).reduce((ct,vn)=>ct+vn,0)]).sort((z,ct)=>z[1]-ct[1])[0])==null?void 0:Y[0];B&&(_=B);break}case"initialPlacement":_=a;break}if(o!==_)return{reset:{placement:_}}}return{}}}};function je(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qe(e){return Hn.some(t=>e[t]>=0)}const nr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=at(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=je(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:qe(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=je(s,n.floating);return{data:{escapedOffsets:a,escaped:qe(a)}}}default:return{}}}}},sn=new Set(["left","top"]);async function rr(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=lt(n),a=Dt(n),l=nt(n)==="y",c=sn.has(s)?-1:1,u=i&&l?-1:1,f=at(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*u,y:d*c}:{x:d*c,y:h*u}}const or=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await rr(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},ir=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:O,y:P}=b;return{x:O,y:P}}},...c}=at(e,t),u={x:n,y:r},f=await i.detectOverflow(t,c),d=nt(lt(o)),h=_e(d);let g=u[h],m=u[d];if(s){const b=h==="y"?"top":"left",O=h==="y"?"bottom":"right",P=g+f[b],y=g-f[O];g=Pe(P,g,y)}if(a){const b=d==="y"?"top":"left",O=d==="y"?"bottom":"right",P=m+f[b],y=m-f[O];m=Pe(P,m,y)}const w=l.fn({...t,[h]:g,[d]:m});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[h]:s,[d]:a}}}}}},sr=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=at(e,t),u={x:n,y:r},f=nt(o),d=_e(f);let h=u[d],g=u[f];const m=at(a,t),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const P=d==="y"?"height":"width",y=i.reference[d]-i.floating[P]+w.mainAxis,R=i.reference[d]+i.reference[P]-w.mainAxis;h<y?h=y:h>R&&(h=R)}if(c){var b,O;const P=d==="y"?"width":"height",y=sn.has(lt(o)),R=i.reference[f]-i.floating[P]+(y&&((b=s.offset)==null?void 0:b[f])||0)+(y?0:w.crossAxis),F=i.reference[f]+i.reference[P]+(y?0:((O=s.offset)==null?void 0:O[f])||0)-(y?w.crossAxis:0);g<R?g=R:g>F&&(g=F)}return{[d]:h,[f]:g}}}},ar=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=at(e,t),u=await s.detectOverflow(t,c),f=lt(o),d=Dt(o),h=nt(o)==="y",{width:g,height:m}=i.floating;let w,b;f==="top"||f==="bottom"?(w=f,b=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,w=d==="end"?"top":"bottom");const O=m-u.top-u.bottom,P=g-u.left-u.right,y=gt(m-u[w],O),R=gt(g-u[b],P),F=!t.middlewareData.shift;let S=y,L=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=O),F&&!d){const N=j(u.left,0),K=j(u.right,0),H=j(u.top,0),Y=j(u.bottom,0);h?L=g-2*(N!==0||K!==0?N+K:j(u.left,u.right)):S=m-2*(H!==0||Y!==0?H+Y:j(u.top,u.bottom))}await l({...t,availableWidth:L,availableHeight:S});const V=await s.getDimensions(a.floating);return g!==V.width||m!==V.height?{reset:{rects:!0}}:{}}}};function we(){return typeof window<"u"}function Bt(e){return an(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function st(e){var t;return(t=(an(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function an(e){return we()?e instanceof Node||e instanceof q(e).Node:!1}function tt(e){return we()?e instanceof Element||e instanceof q(e).Element:!1}function it(e){return we()?e instanceof HTMLElement||e instanceof q(e).HTMLElement:!1}function Ze(e){return!we()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}const lr=new Set(["inline","contents"]);function re(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!lr.has(o)}const cr=new Set(["table","td","th"]);function dr(e){return cr.has(Bt(e))}const ur=[":popover-open",":modal"];function ve(e){return ur.some(t=>{try{return e.matches(t)}catch{return!1}})}const fr=["transform","translate","scale","rotate","perspective"],hr=["transform","translate","scale","rotate","perspective","filter"],gr=["paint","layout","strict","content"];function Me(e){const t=Te(),n=tt(e)?et(e):e;return fr.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||hr.some(r=>(n.willChange||"").includes(r))||gr.some(r=>(n.contain||"").includes(r))}function mr(e){let t=mt(e);for(;it(t)&&!_t(t);){if(Me(t))return t;if(ve(t))return null;t=mt(t)}return null}function Te(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wr=new Set(["html","body","#document"]);function _t(e){return wr.has(Bt(e))}function et(e){return q(e).getComputedStyle(e)}function pe(e){return tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mt(e){if(Bt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ze(e)&&e.host||st(e);return Ze(t)?t.host:t}function ln(e){const t=mt(e);return _t(t)?e.ownerDocument?e.ownerDocument.body:e.body:it(t)&&re(t)?t:ln(t)}function Mt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ln(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=q(o);if(i){const a=Ae(s);return t.concat(s,s.visualViewport||[],re(o)?o:[],a&&n?Mt(a):[])}return t.concat(o,Mt(o,[],n))}function Ae(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cn(e){const t=et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=it(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ie(n)!==i||ie(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function We(e){return tt(e)?e:e.contextElement}function At(e){const t=We(e);if(!it(t))return rt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=cn(t);let s=(i?ie(n.width):n.width)/r,a=(i?ie(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const vr=rt(0);function dn(e){const t=q(e);return!Te()||!t.visualViewport?vr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==q(e)?!1:t}function xt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=We(e);let s=rt(1);t&&(r?tt(r)&&(s=At(r)):s=At(e));const a=pr(i,n,r)?dn(i):rt(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const d=q(i),h=r&&tt(r)?q(r):r;let g=d,m=Ae(g);for(;m&&r&&h!==g;){const w=At(m),b=m.getBoundingClientRect(),O=et(m),P=b.left+(m.clientLeft+parseFloat(O.paddingLeft))*w.x,y=b.top+(m.clientTop+parseFloat(O.paddingTop))*w.y;l*=w.x,c*=w.y,u*=w.x,f*=w.y,l+=P,c+=y,g=q(m),m=Ae(g)}}return ae({width:u,height:f,x:l,y:c})}function ye(e,t){const n=pe(e).scrollLeft;return t?t.left+n:xt(st(e)).left+n}function un(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-ye(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function yr(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=st(r),a=t?ve(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=rt(1);const u=rt(0),f=it(r);if((f||!f&&!i)&&((Bt(r)!=="body"||re(s))&&(l=pe(r)),it(r))){const h=xt(r);c=At(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}const d=s&&!f&&!i?un(s,l):rt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}}function xr(e){return Array.from(e.getClientRects())}function br(e){const t=st(e),n=pe(e),r=e.ownerDocument.body,o=j(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=j(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ye(e);const a=-n.scrollTop;return et(r).direction==="rtl"&&(s+=j(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Je=25;function Or(e,t){const n=q(e),r=st(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Te();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=ye(r);if(c<=0){const u=r.ownerDocument,f=u.body,d=getComputedStyle(f),h=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(r.clientWidth-f.clientWidth-h);g<=Je&&(i-=g)}else c<=Je&&(i+=c);return{width:i,height:s,x:a,y:l}}const Pr=new Set(["absolute","fixed"]);function Sr(e,t){const n=xt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=it(e)?At(e):rt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function Qe(e,t,n){let r;if(t==="viewport")r=Or(e,n);else if(t==="document")r=br(st(e));else if(tt(t))r=Sr(t,n);else{const o=dn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ae(r)}function fn(e,t){const n=mt(e);return n===t||!tt(n)||_t(n)?!1:et(n).position==="fixed"||fn(n,t)}function Ar(e,t){const n=t.get(e);if(n)return n;let r=Mt(e,[],!1).filter(a=>tt(a)&&Bt(a)!=="body"),o=null;const i=et(e).position==="fixed";let s=i?mt(e):e;for(;tt(s)&&!_t(s);){const a=et(s),l=Me(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&Pr.has(o.position)||re(s)&&!l&&fn(e,s))?r=r.filter(u=>u!==s):o=a,s=mt(s)}return t.set(e,r),r}function Cr(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?ve(t)?[]:Ar(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const f=Qe(t,u,o);return c.top=j(f.top,c.top),c.right=gt(f.right,c.right),c.bottom=gt(f.bottom,c.bottom),c.left=j(f.left,c.left),c},Qe(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Fr(e){const{width:t,height:n}=cn(e);return{width:t,height:n}}function Er(e,t,n){const r=it(t),o=st(t),i=n==="fixed",s=xt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=rt(0);function c(){l.x=ye(o)}if(r||!r&&!i)if((Bt(t)!=="body"||re(o))&&(a=pe(t)),r){const h=xt(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?un(o,a):rt(0),f=s.left+a.scrollLeft-l.x-u.x,d=s.top+a.scrollTop-l.y-u.y;return{x:f,y:d,width:s.width,height:s.height}}function Oe(e){return et(e).position==="static"}function Ge(e,t){if(!it(e)||et(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return st(e)===n&&(n=n.ownerDocument.body),n}function hn(e,t){const n=q(e);if(ve(e))return n;if(!it(e)){let o=mt(e);for(;o&&!_t(o);){if(tt(o)&&!Oe(o))return o;o=mt(o)}return n}let r=Ge(e,t);for(;r&&dr(r)&&Oe(r);)r=Ge(r,t);return r&&_t(r)&&Oe(r)&&!Me(r)?n:r||mr(e)||n}const Rr=async function(e){const t=this.getOffsetParent||hn,n=this.getDimensions,r=await n(e.floating);return{reference:Er(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _r(e){return et(e).direction==="rtl"}const Dr={convertOffsetParentRelativeRectToViewportRelativeRect:yr,getDocumentElement:st,getClippingRect:Cr,getOffsetParent:hn,getElementRects:Rr,getClientRects:xr,getDimensions:Fr,getScale:At,isElement:tt,isRTL:_r};function gn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Br(e,t){let n=null,r;const o=st(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:h}=c;if(a||t(),!d||!h)return;const g=oe(f),m=oe(o.clientWidth-(u+d)),w=oe(o.clientHeight-(f+h)),b=oe(u),P={rootMargin:-g+"px "+-m+"px "+-w+"px "+-b+"px",threshold:j(0,gt(1,l))||1};let y=!0;function R(F){const S=F[0].intersectionRatio;if(S!==l){if(!y)return s();S?s(!1,S):r=setTimeout(()=>{s(!1,1e-7)},1e3)}S===1&&!gn(c,e.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(R,{...P,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,P)}n.observe(e)}return s(!0),i}function Mr(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=We(e),u=o||i?[...c?Mt(c):[],...Mt(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=c&&a?Br(c,n):null;let d=-1,h=null;s&&(h=new ResizeObserver(b=>{let[O]=b;O&&O.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var P;(P=h)==null||P.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let g,m=l?xt(e):null;l&&w();function w(){const b=xt(e);m&&!gn(m,b)&&n(),m=b,g=requestAnimationFrame(w)}return n(),()=>{var b;u.forEach(O=>{o&&O.removeEventListener("scroll",n),i&&O.removeEventListener("resize",n)}),f==null||f(),(b=h)==null||b.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const Tr=or,Wr=ir,Ir=er,Lr=ar,kr=nr,zr=tr,Nr=sr,Hr=(e,t,n)=>{const r=new Map,o={platform:Dr,...n},i={...o.platform,_c:r};return $n(e,t,{...o,platform:i})};function vt(e){return typeof e=="function"?e():e}function mn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $e(e,t){const n=mn(e);return Math.round(t*n)/n}function tn(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 Vr(e){const t=e.whileElementsMounted,n=A(()=>vt(e.open)??!0),r=A(()=>vt(e.middleware)),o=A(()=>vt(e.transform)??!0),i=A(()=>vt(e.placement)??"bottom"),s=A(()=>vt(e.strategy)??"absolute"),a=A(()=>vt(e.sideOffset)??0),l=A(()=>vt(e.alignOffset)??0),c=e.reference;let u=G(0),f=G(0);const d=ft(null);let h=G(xe(v(s))),g=G(xe(v(i))),m=G(xe({})),w=G(!1);const b=A(()=>{const S=d.current?$e(d.current,v(u)):v(u),L=d.current?$e(d.current,v(f)):v(f);return v(o)?{position:v(h),left:"0",top:"0",transform:`translate(${S}px, ${L}px)`,...d.current&&mn(d.current)>=1.5&&{willChange:"transform"}}:{position:v(h),left:`${S}px`,top:`${L}px`}});let O;function P(){c.current===null||d.current===null||Hr(c.current,d.current,{middleware:v(r),placement:v(i),strategy:v(s)}).then(S=>{if(!v(n)&&v(u)!==0&&v(f)!==0){const L=Math.max(Math.abs(v(a)),Math.abs(v(l)),15);if(S.x<=L&&S.y<=L)return}M(u,S.x,!0),M(f,S.y,!0),M(h,S.strategy,!0),M(g,S.placement,!0),M(m,S.middlewareData,!0),M(w,!0)})}function y(){typeof O=="function"&&(O(),O=void 0)}function R(){if(y(),t===void 0){P();return}c.current===null||d.current===null||(O=t(c.current,d.current,P))}function F(){v(n)||M(w,!1)}return pt(P),pt(R),pt(F),pt(()=>y),{floating:d,reference:c,get strategy(){return v(h)},get placement(){return v(g)},get middlewareData(){return v(m)},get isPositioned(){return v(w)},get floatingStyles(){return v(b)},get update(){return P}}}const Kr={top:"bottom",right:"left",bottom:"top",left:"right"},Ie=new Ee("Floating.Root"),en=new Ee("Floating.Content"),Le=new Ee("Floating.Root");class le{constructor(){X(this,"anchorNode",ft(null));X(this,"customAnchorNode",ft(null));X(this,"triggerNode",ft(null));pt(()=>{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})}static create(t=!1){return t?Le.set(new le):Ie.set(new le)}}var Tt,fe,Wt,he,It,ge,Lt,kt,zt,Nt,Ht,Vt,Kt,Xt,Yt,Ut,jt,qt,Zt,Jt,Qt,Gt,$t,te;const me=class me{constructor(t,n){X(this,"opts");X(this,"root");X(this,"contentRef",ft(null));X(this,"wrapperRef",ft(null));X(this,"arrowRef",ft(null));X(this,"contentAttachment",be(this.contentRef));X(this,"wrapperAttachment",be(this.wrapperRef));X(this,"arrowAttachment",be(this.arrowRef));X(this,"arrowId",ft(rn()));E(this,Tt,A(()=>{if(typeof this.opts.style=="string")return Wn(this.opts.style);if(!this.opts.style)return{}}));E(this,fe);E(this,Wt,new Nn(()=>this.arrowRef.current??void 0));E(this,he,A(()=>{var t;return((t=x(this,Wt))==null?void 0:t.width)??0}));E(this,It,A(()=>{var t;return((t=x(this,Wt))==null?void 0:t.height)??0}));E(this,ge,A(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));E(this,Lt,A(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));E(this,kt,A(()=>v(x(this,Lt)).length>0));E(this,zt,A(()=>({padding:this.opts.collisionPadding.current,boundary:v(x(this,Lt)).filter(On),altBoundary:this.hasExplicitBoundaries})));E(this,Nt,G(void 0));E(this,Ht,G(void 0));E(this,Vt,G(void 0));E(this,Kt,G(void 0));E(this,Xt,A(()=>[Tr({mainAxis:this.opts.sideOffset.current+v(x(this,It)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Wr({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Nr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Ir({...this.detectOverflowOptions}),Lr({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference;M(x(this,Nt),n,!0),M(x(this,Ht),r,!0),M(x(this,Vt),o,!0),M(x(this,Kt),i,!0)}}),this.arrowRef.current&&zr({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Xr({arrowWidth:v(x(this,he)),arrowHeight:v(x(this,It))}),this.opts.hideWhenDetached.current&&kr({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));X(this,"floating");E(this,Yt,A(()=>Yr(this.floating.placement)));E(this,Ut,A(()=>Ur(this.floating.placement)));E(this,jt,A(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));E(this,qt,A(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));E(this,Zt,A(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));E(this,Jt,G());E(this,Qt,A(()=>Kr[this.placedSide]));E(this,Gt,A(()=>{var t,n,r;return{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":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${v(x(this,Nt))}px`,"--bits-floating-available-height":`${v(x(this,Ht))}px`,"--bits-floating-anchor-width":`${v(x(this,Vt))}px`,"--bits-floating-anchor-height":`${v(x(this,Kt))}px`,...((r=this.floating.middlewareData.hide)==null?void 0:r.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...v(x(this,Tt))},dir:this.opts.dir.current,...this.wrapperAttachment}}));E(this,$t,A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:In({...v(x(this,Tt))}),...this.contentAttachment})));E(this,te,A(()=>({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})));this.opts=t,this.root=n,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),He(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=Vr({strategy:()=>this.opts.strategy.current,placement:()=>v(x(this,ge)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>{var i;return Mr(...r,{animationFrame:((i=x(this,fe))==null?void 0:i.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),pt(()=>{var r;this.floating.isPositioned&&((r=this.opts.onPlaced)==null||r.current())}),He(()=>this.contentRef.current,r=>{if(!r)return;const o=Pn(r);this.contentZIndex=o.getComputedStyle(r).zIndex}),pt(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?en.set(new me(t,Le.get())):en.set(new me(t,Ie.get()))}get hasExplicitBoundaries(){return v(x(this,kt))}set hasExplicitBoundaries(t){M(x(this,kt),t)}get detectOverflowOptions(){return v(x(this,zt))}set detectOverflowOptions(t){M(x(this,zt),t)}get middleware(){return v(x(this,Xt))}set middleware(t){M(x(this,Xt),t)}get placedSide(){return v(x(this,Yt))}set placedSide(t){M(x(this,Yt),t)}get placedAlign(){return v(x(this,Ut))}set placedAlign(t){M(x(this,Ut),t)}get arrowX(){return v(x(this,jt))}set arrowX(t){M(x(this,jt),t)}get arrowY(){return v(x(this,qt))}set arrowY(t){M(x(this,qt),t)}get cannotCenterArrow(){return v(x(this,Zt))}set cannotCenterArrow(t){M(x(this,Zt),t)}get contentZIndex(){return v(x(this,Jt))}set contentZIndex(t){M(x(this,Jt),t,!0)}get arrowBaseSide(){return v(x(this,Qt))}set arrowBaseSide(t){M(x(this,Qt),t)}get wrapperProps(){return v(x(this,Gt))}set wrapperProps(t){M(x(this,Gt),t)}get props(){return v(x(this,$t))}set props(t){M(x(this,$t),t)}get arrowStyle(){return v(x(this,te))}set arrowStyle(t){M(x(this,te),t)}};Tt=new WeakMap,fe=new WeakMap,Wt=new WeakMap,he=new WeakMap,It=new WeakMap,ge=new WeakMap,Lt=new WeakMap,kt=new WeakMap,zt=new WeakMap,Nt=new WeakMap,Ht=new WeakMap,Vt=new WeakMap,Kt=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Ut=new WeakMap,jt=new WeakMap,qt=new WeakMap,Zt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Gt=new WeakMap,$t=new WeakMap,te=new WeakMap;let Ce=me;class ce{constructor(t,n){X(this,"opts");X(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Tn(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new ce(t,Le.get()):new ce(t,Ie.get())}}function Xr(e){return{name:"transformOrigin",options:e,fn(t){var w,b,O;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,u]=ke(n),f={start:"0%",center:"50%",end:"100%"}[u],d=(((b=o.arrow)==null?void 0:b.x)??0)+a/2,h=(((O=o.arrow)==null?void 0:O.y)??0)+l/2;let g="",m="";return c==="bottom"?(g=s?f:`${d}px`,m=`${-l}px`):c==="top"?(g=s?f:`${d}px`,m=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,m=s?f:`${h}px`):c==="left"&&(g=`${r.floating.width+l}px`,m=s?f:`${h}px`),{data:{x:g,y:m}}}}}function ke(e){const[t,n="center"]=e.split("-");return[t,n]}function Yr(e){return ke(e)[0]}function Ur(e){return ke(e)[1]}function jr(e,t){Z(t,!0);let n=p(t,"tooltip",3,!1);le.create(n());var r=I(),o=T(r);U(o,()=>t.children??ot),D(e,r),J()}function qr(e,t){Z(t,!0);let n=p(t,"tooltip",3,!1);ce.create({id:C(()=>t.id),virtualEl:C(()=>t.virtualEl),ref:t.ref},n());var r=I(),o=T(r);U(o,()=>t.children??ot),D(e,r),J()}function Zr(e,t){Z(t,!0);let n=p(t,"side",3,"bottom"),r=p(t,"sideOffset",3,0),o=p(t,"align",3,"center"),i=p(t,"alignOffset",3,0),s=p(t,"arrowPadding",3,0),a=p(t,"avoidCollisions",3,!0),l=p(t,"collisionBoundary",19,()=>[]),c=p(t,"collisionPadding",3,0),u=p(t,"hideWhenDetached",3,!1),f=p(t,"onPlaced",3,()=>{}),d=p(t,"sticky",3,"partial"),h=p(t,"updatePositionStrategy",3,"optimized"),g=p(t,"strategy",3,"fixed"),m=p(t,"dir",3,"ltr"),w=p(t,"style",19,()=>({})),b=p(t,"wrapperId",19,rn),O=p(t,"customAnchor",3,null),P=p(t,"tooltip",3,!1);const y=Ce.create({side:C(()=>n()),sideOffset:C(()=>r()),align:C(()=>o()),alignOffset:C(()=>i()),id:C(()=>t.id),arrowPadding:C(()=>s()),avoidCollisions:C(()=>a()),collisionBoundary:C(()=>l()),collisionPadding:C(()=>c()),hideWhenDetached:C(()=>u()),onPlaced:C(()=>f()),sticky:C(()=>d()),updatePositionStrategy:C(()=>h()),strategy:C(()=>g()),dir:C(()=>m()),style:C(()=>w()),enabled:C(()=>t.enabled),wrapperId:C(()=>b()),customAnchor:C(()=>O())},P()),R=A(()=>yt(y.wrapperProps,{style:{pointerEvents:"auto"}}));var F=I(),S=T(F);U(S,()=>t.content??ot,()=>({props:y.props,wrapperProps:v(R)})),D(e,F),J()}function Jr(e,t){Z(t,!0),Ln(()=>{var o;(o=t.onPlaced)==null||o.call(t)});var n=I(),r=T(n);U(r,()=>t.content??ot,()=>({props:{},wrapperProps:{}})),D(e,n),J()}function Qr(e,t){let n=p(t,"isStatic",3,!1),r=Q(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=I(),i=T(o);{var s=l=>{Jr(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{Zr(l,$({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};ht(i,l=>{n()?l(s):l(a,!1)})}D(e,o)}var Gr=ee("<!> <!>",1);function wn(e,t){Z(t,!0);let n=p(t,"interactOutsideBehavior",3,"close"),r=p(t,"trapFocus",3,!0),o=p(t,"isValidEvent",3,()=>!1),i=p(t,"customAnchor",3,null),s=p(t,"isStatic",3,!1),a=p(t,"tooltip",3,!1),l=p(t,"contentPointerEvents",3,"auto"),c=Q(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);Qr(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(f,d)=>{let h=()=>d==null?void 0:d().props,g=()=>d==null?void 0:d().wrapperProps;var m=Gr(),w=T(m);{var b=y=>{Ve(y,{get preventScroll(){return t.preventScroll}})},O=y=>{Ve(y,{get preventScroll(){return t.preventScroll}})};ht(w,y=>{t.forceMount&&t.enabled?y(b):t.forceMount||y(O,1)})}var P=xn(w,2);Sn(P,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(R,F)=>{let S=()=>F==null?void 0:F().props;An(R,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(L,V)=>{Cn(L,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return t.enabled},get ref(){return t.ref},children:(K,H)=>{let Y=()=>H==null?void 0:H().props;Fn(K,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(k,W)=>{var _=I(),B=T(_);{let z=A(()=>({props:yt(c,h(),Y(),S(),{style:{pointerEvents:l()}}),wrapperProps:g()}));U(B,()=>t.popper??ot,()=>v(z))}D(k,_)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),D(f,m)},$$slots:{content:!0}}),J()}function $r(e,t){let n=p(t,"interactOutsideBehavior",3,"close"),r=p(t,"trapFocus",3,!0),o=p(t,"isValidEvent",3,()=>!1),i=p(t,"customAnchor",3,null),s=p(t,"isStatic",3,!1),a=Q(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var l=I(),c=T(l);{var u=f=>{wn(f,$({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};ht(c,f=>{t.shouldRender&&f(u)})}D(e,l)}function to(e,t){let n=p(t,"interactOutsideBehavior",3,"close"),r=p(t,"trapFocus",3,!0),o=p(t,"isValidEvent",3,()=>!1),i=p(t,"customAnchor",3,null),s=p(t,"isStatic",3,!1),a=Q(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);wn(e,$({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}var eo=ee("<div><!></div>");function no(e,t){const n=Fe();Z(t,!0);let r=p(t,"ref",15,null),o=p(t,"id",19,()=>Re(n)),i=p(t,"disabled",3,!1),s=p(t,"onSelect",3,St),a=p(t,"closeOnSelect",3,!0),l=Q(t,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]);const c=En.create({id:C(()=>o()),disabled:C(()=>i()),onSelect:C(()=>s()),ref:C(()=>r(),m=>r(m)),closeOnSelect:C(()=>a())}),u=A(()=>yt(l,c.props));var f=I(),d=T(f);{var h=m=>{var w=I(),b=T(w);U(b,()=>t.child,()=>({props:v(u)})),D(m,w)},g=m=>{var w=eo();Pt(w,()=>({...v(u)}));var b=bt(w);U(b,()=>t.children??ot),Ot(w),D(m,w)};ht(d,m=>{t.child?m(h):m(g,!1)})}D(e,f),J()}function ro(e,t){Z(t,!0);let n=p(t,"open",15,!1),r=p(t,"dir",3,"ltr"),o=p(t,"onOpenChange",3,St),i=p(t,"onOpenChangeComplete",3,St),s=p(t,"_internal_variant",3,"dropdown-menu");const a=Rn.create({variant:C(()=>s()),dir:C(()=>r()),onClose:()=>{n(!1),o()(!1)}});_n.create({open:C(()=>n(),l=>{n(l),o()(l)}),onOpenChangeComplete:C(()=>i())},a),jr(e,{children:(l,c)=>{var u=I(),f=T(u);U(f,()=>t.children??ot),D(l,u)},$$slots:{default:!0}}),J()}var oo=ee("<div><div><!></div></div>"),io=ee("<div><div><!></div></div>");function so(e,t){const n=Fe();Z(t,!0);let r=p(t,"id",19,()=>Re(n)),o=p(t,"ref",15,null),i=p(t,"loop",3,!0),s=p(t,"onInteractOutside",3,St),a=p(t,"onEscapeKeydown",3,St),l=p(t,"onCloseAutoFocus",3,St),c=p(t,"forceMount",3,!1),u=p(t,"trapFocus",3,!1),f=Q(t,["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]);const d=Dn.create({id:C(()=>r()),loop:C(()=>i()),ref:C(()=>o(),y=>o(y)),onCloseAutoFocus:C(()=>l())}),h=A(()=>yt(f,d.props));function g(y){if(d.handleInteractOutside(y),!y.defaultPrevented&&(s()(y),!y.defaultPrevented)){if(y.target&&y.target instanceof Element){const R=`[${d.parentMenu.root.getBitsAttr("sub-content")}]`;if(y.target.closest(R))return}d.parentMenu.onClose()}}function m(y){a()(y),!y.defaultPrevented&&d.parentMenu.onClose()}var w=I(),b=T(w);{var O=y=>{to(y,$(()=>v(h),()=>d.popperProps,{get ref(){return d.opts.ref},get enabled(){return d.parentMenu.opts.open.current},onInteractOutside:g,onEscapeKeydown:m,get trapFocus(){return u()},get loop(){return i()},forceMount:!0,get id(){return r()},get shouldRender(){return d.shouldRender},popper:(F,S)=>{let L=()=>S==null?void 0:S().props,V=()=>S==null?void 0:S().wrapperProps;const N=A(()=>yt(L(),{style:tn("dropdown-menu")},{style:t.style}));var K=I(),H=T(K);{var Y=W=>{var _=I(),B=T(_);{let z=A(()=>({props:v(N),wrapperProps:V(),...d.snippetProps}));U(B,()=>t.child,()=>v(z))}D(W,_)},k=W=>{var _=oo();Pt(_,()=>({...V()}));var B=bt(_);Pt(B,()=>({...v(N)}));var z=bt(B);U(z,()=>t.children??ot),Ot(B),Ot(_),D(W,_)};ht(H,W=>{t.child?W(Y):W(k,!1)})}D(F,K)},$$slots:{popper:!0}}))},P=y=>{$r(y,$(()=>v(h),()=>d.popperProps,{get ref(){return d.opts.ref},get open(){return d.parentMenu.opts.open.current},onInteractOutside:g,onEscapeKeydown:m,get trapFocus(){return u()},get loop(){return i()},forceMount:!1,get id(){return r()},get shouldRender(){return d.shouldRender},popper:(F,S)=>{let L=()=>S==null?void 0:S().props,V=()=>S==null?void 0:S().wrapperProps;const N=A(()=>yt(L(),{style:tn("dropdown-menu")},{style:t.style}));var K=I(),H=T(K);{var Y=W=>{var _=I(),B=T(_);{let z=A(()=>({props:v(N),wrapperProps:V(),...d.snippetProps}));U(B,()=>t.child,()=>v(z))}D(W,_)},k=W=>{var _=io();Pt(_,()=>({...V()}));var B=bt(_);Pt(B,()=>({...v(N)}));var z=bt(B);U(z,()=>t.children??ot),Ot(B),Ot(_),D(W,_)};ht(H,W=>{t.child?W(Y):W(k,!1)})}D(F,K)},$$slots:{popper:!0}}))};ht(b,y=>{c()?y(O):c()||y(P,1)})}D(e,w),J()}var ao=ee("<button><!></button>");function lo(e,t){const n=Fe();Z(t,!0);let r=p(t,"id",19,()=>Re(n)),o=p(t,"ref",15,null),i=p(t,"disabled",3,!1),s=p(t,"type",3,"button"),a=Q(t,["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]);const l=Bn.create({id:C(()=>r()),disabled:C(()=>i()??!1),ref:C(()=>o(),u=>o(u))}),c=A(()=>yt(a,l.props,{type:s()}));qr(e,{get id(){return r()},get ref(){return l.opts.ref},children:(u,f)=>{var d=I(),h=T(d);{var g=w=>{var b=I(),O=T(b);U(O,()=>t.child,()=>({props:v(c)})),D(w,b)},m=w=>{var b=ao();Pt(b,()=>({...v(c)}));var O=bt(b);U(O,()=>t.children??ot),Ot(b),D(w,b)};ht(h,w=>{t.child?w(g):w(m,!1)})}D(u,d)},$$slots:{default:!0}}),J()}function Oo(e,t){Z(t,!0);let n=p(t,"open",15,!1),r=Q(t,["$$slots","$$events","$$legacy","open"]);var o=I(),i=T(o);ne(i,()=>ro,(s,a)=>{a(s,$(()=>r,{get open(){return n()},set open(l){n(l)}}))}),D(e,o),J()}function co(e,t){let n=Q(t,["$$slots","$$events","$$legacy"]);var r=I(),o=T(r);ne(o,()=>Mn,(i,s)=>{s(i,$(()=>n))}),D(e,r)}function Po(e,t){Z(t,!0);let n=p(t,"ref",15,null),r=p(t,"sideOffset",3,4),o=Q(t,["$$slots","$$events","$$legacy","ref","sideOffset","portalProps","class"]);co(e,$(()=>t.portalProps,{children:(i,s)=>{var a=I(),l=T(a);{let c=A(()=>nn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--bits-dropdown-menu-content-available-height) min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md outline-none",t.class));ne(l,()=>so,(u,f)=>{f(u,$({"data-slot":"dropdown-menu-content",get sideOffset(){return r()},get class(){return v(c)}},()=>o,{get ref(){return n()},set ref(d){n(d)}}))})}D(i,a)},$$slots:{default:!0}})),J()}function So(e,t){Z(t,!0);let n=p(t,"ref",15,null),r=p(t,"variant",3,"default"),o=Q(t,["$$slots","$$events","$$legacy","ref","class","inset","variant"]);var i=I(),s=T(i);{let a=A(()=>nn("data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-[variant=destructive]:data-highlighted:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t.class));ne(s,()=>no,(l,c)=>{c(l,$({"data-slot":"dropdown-menu-item",get"data-inset"(){return t.inset},get"data-variant"(){return r()},get class(){return v(a)}},()=>o,{get ref(){return n()},set ref(u){n(u)}}))})}D(e,i),J()}function Ao(e,t){Z(t,!0);let n=p(t,"ref",15,null),r=Q(t,["$$slots","$$events","$$legacy","ref"]);var o=I(),i=T(o);ne(i,()=>lo,(s,a)=>{a(s,$({"data-slot":"dropdown-menu-trigger"},()=>r,{get ref(){return n()},set ref(l){n(l)}}))}),D(e,o),J()}export{Ao as D,co as a,Po as b,So as c,Oo as d};