1import{e3 as dt,r as F,bW as Ce,e4 as pt,a as C,v as ht,cH as mt,d as le,bV as Ue,a6 as ae,aZ as me,e5 as Ke,c as Ze,o as te,K as ge,m as O,a_ as Ee,j as ue,C as Le,bc as gt,w as be,e6 as yt,bd as wt,e7 as Q,e8 as vt,e9 as xt,k as Je,ae as Qe}from"./DZ7mik94.js";function Yn(e,t){const n=dt(!1,300),o=F(null),r=pt();function s(){o.value=null,n.value=!1}function i(l,f){const c=l.currentTarget,a={x:l.clientX,y:l.clientY},u=bt(a,c.getBoundingClientRect()),h=At(a,u),d=Ct(f.getBoundingClientRect()),p=St([...h,...d]);o.value=p,n.value=!0}return Ce(l=>{if(e.value&&t.value){const f=a=>i(a,t.value),c=a=>i(a,e.value);e.value.addEventListener("pointerleave",f),t.value.addEventListener("pointerleave",c),l(()=>{e.value?.removeEventListener("pointerleave",f),t.value?.removeEventListener("pointerleave",c)})}}),Ce(l=>{if(o.value){const f=c=>{if(!o.value||!(c.target instanceof Element))return;const a=c.target,u={x:c.clientX,y:c.clientY},h=e.value?.contains(a)||t.value?.contains(a),d=!Ot(u,o.value),p=!!a.closest("[data-grace-area-trigger]");h?s():(d||p)&&(s(),r.trigger())};e.value?.ownerDocument.addEventListener("pointermove",f),l(()=>e.value?.ownerDocument.removeEventListener("pointermove",f))}}),{isPointerInTransit:n,onPointerExit:r.on}}function bt(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function At(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Ct(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}function Ot(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const l=t[s].x,f=t[s].y,c=t[i].x,a=t[i].y;f>o!=a>o&&n<(c-l)*(o-f)/(a-f)+l&&(r=!r)}return r}function St(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Pt(t)}function Pt(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}function Rt(e){const t=F(),n=C(()=>t.value?.width??0),o=C(()=>t.value?.height??0);return ht(()=>{const r=mt(e);if(r){t.value={width:r.offsetWidth,height:r.offsetHeight};const s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let f,c;if("borderBoxSize"in l){const a=l.borderBoxSize,u=Array.isArray(a)?a[0]:a;f=u.inlineSize,c=u.blockSize}else f=r.offsetWidth,c=r.offsetHeight;t.value={width:f,height:c}});return s.observe(r,{box:"border-box"}),()=>s.unobserve(r)}else t.value=void 0}),{width:n,height:o}}const[et,_t]=Ue("PopperRoot");var Et=le({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=F();return _t({anchor:t,onAnchorChange:n=>t.value=n}),(n,o)=>ae(n.$slots,"default")}}),Gn=Et,Lt=le({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:o}=me(),r=et();return Ke(()=>{r.onAnchorChange(t.reference??o.value)}),(s,i)=>(te(),Ze(O(Ee),{ref:O(n),as:s.as,"as-child":s.asChild},{default:ge(()=>[ae(s.$slots,"default")]),_:3},8,["as","as-child"]))}}),Un=Lt;const Dt={key:0,d:"M0 0L6 6L12 0"},Tt={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var kt=le({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return me(),(n,o)=>(te(),Ze(O(Ee),Le(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 12 6",preserveAspectRatio:n.asChild?void 0:"none"}),{default:ge(()=>[ae(n.$slots,"default",{},()=>
vendor: 4,510 bytes, line 1
1[n.rounded?(te(),ue("path",Tt)):(te(),ue("path",Dt))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),Bt=kt;function Mt(e){return e!==null}function $t(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,f=i?0:e.arrowHeight,[c,a]=Oe(n),u={start:"0%",center:"50%",end:"100%"}[a],h=(r.arrow?.x??0)+l/2,d=(r.arrow?.y??0)+f/2;let p="",m="";return c==="bottom"?(p=i?u:`${h}px`,m=`${-f}px`):c==="top"?(p=i?u:`${h}px`,m=`${o.floating.height+f}px`):c==="right"?(p=`${-f}px`,m=i?u:`${d}px`):c==="left"&&(p=`${o.floating.width+f}px`,m=i?u:`${d}px`),{data:{x:p,y:m}}}}}function Oe(e){const[t,n="center"]=e.split("-");return[t,n]}const Ft=["top","right","bottom","left"],U=Math.min,k=Math.max,de=Math.round,fe=Math.floor,N=e=>({x:e,y:e}),Ht={left:"right",right:"left",bottom:"top",top:"bottom"},qt={start:"end",end:"start"};function Se(e,t,n){return k(e,U(t,n))}function X(e,t){return typeof e=="function"?e(t):e}function Y(e){return e.split("-")[0]}function re(e){return e.split("-")[1]}function De(e){return e==="x"?"y":"x"}function Te(e){return e==="y"?"height":"width"}const Wt=new Set(["top","bottom"]);function z(e){return Wt.has(Y(e))?"y":"x"}function ke(e){return De(z(e))}function zt(e,t,n){n===void 0&&(n=!1);const o=re(e),r=ke(e),s=Te(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=pe(i)),[i,pe(i)]}function Nt(e){const t=pe(e);return[Pe(e),t,Pe(t)]}function Pe(e){return e.replace(/start|end/g,t=>qt[t])}const He=["left","right"],qe=["right","left"],Vt=["top","bottom"],It=["bottom","top"];function jt(e,t,n){switch(e){case"top":case"bottom":return n?t?qe:He:t?He:qe;case"left":case"right":return t?Vt:It;default:return[]}}function Xt(e,t,n,o){const r=re(e);let s=jt(Y(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Pe)))),s}function pe(e){return e.replace(/left|right|bottom|top/g,t=>Ht[t])}function Yt(e){return{top:0,right:0,bottom:0,left:0,...e}}function tt(e){return typeof e!="number"?Yt(e):{top:e,right:e,bottom:e,left:e}}function he(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 We(e,t,n){let{reference:o,floating:r}=e;const s=z(t),i=ke(t),l=Te(i),f=Y(t),c=s==="y",a=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,h=o[l]/2-r[l]/2;let d;switch(f){case"top":d={x:a,y:o.y-r.height};break;case"bottom":d={x:a,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(re(t)){case"start":d[i]-=h*(n&&c?-1:1);break;case"end":d[i]+=h*(n&&c?-1:1);break}return d}const Gt=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),f=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:a,y:u}=We(c,o,f),h=o,d={},p=0;for(let m=0;m<l.length;m++){const{name:g,fn:y}=l[m],{x:w,y:v,data:A,reset:x}=await y({x:a,y:u,initialPlacement:o,placement:h,strategy:r,middlewareData:d,rects:c,platform:i,elements:{reference:e,floating:t}});a=w??a,u=v??u,d={...d,[g]:{...d[g],...A}},x&&p<=50&&(p++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(c=x.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):x.rects),{x:a,y:u}=We(c,h,f)),m=-1)}return{x:a,y:u,placement:h,strategy:r,middlewareData:d}};async function ie(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:l,strategy:f}=e,{boundary:c="clippingAncestors",rootBoundary:a="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=X(t,e),p=tt(d),g=l[h?u==="floating"?"reference":"floating":u],y=he(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:c,rootBoundary:a,strategy:f})),w=u==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),A=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},x=he(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:v,strategy:f}):w);return{top:(y.top-x.top+p.top)/A.y,bottom:(x.bottom-y.bottom+p.bottom)/A.y,left
vendor: 13,221 bytes, line 1
1:(y.left-x.left+p.left)/A.x,right:(x.right-y.right+p.right)/A.x}}const Ut=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:l,middlewareData:f}=t,{element:c,padding:a=0}=X(e,t)||{};if(c==null)return{};const u=tt(a),h={x:n,y:o},d=ke(r),p=Te(d),m=await i.getDimensions(c),g=d==="y",y=g?"top":"left",w=g?"bottom":"right",v=g?"clientHeight":"clientWidth",A=s.reference[p]+s.reference[d]-h[d]-s.floating[p],x=h[d]-s.reference[d],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let b=R?R[v]:0;(!b||!await(i.isElement==null?void 0:i.isElement(R)))&&(b=l.floating[v]||s.floating[p]);const S=A/2-x/2,E=b/2-m[p]/2-1,D=U(u[y],E),W=U(u[w],E),P=D,M=b-m[p]-W,_=b/2-m[p]/2+S,j=Se(P,_,M),$=!f.arrow&&re(r)!=null&&_!==j&&s.reference[p]/2-(_<P?D:W)-m[p]/2<0,T=$?_<P?_-P:_-M:0;return{[d]:h[d]+T,data:{[d]:j,centerOffset:_-j-T,...$&&{alignmentOffset:T}},reset:$}}}),Kt=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:f,elements:c}=t,{mainAxis:a=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=X(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Y(r),w=z(l),v=Y(l)===l,A=await(f.isRTL==null?void 0:f.isRTL(c.floating)),x=h||(v||!m?[pe(l)]:Nt(l)),R=p!=="none";!h&&R&&x.push(...Xt(l,m,p,A));const b=[l,...x],S=await ie(t,g),E=[];let D=((o=s.flip)==null?void 0:o.overflows)||[];if(a&&E.push(S[y]),u){const _=zt(r,i,A);E.push(S[_[0]],S[_[1]])}if(D=[...D,{placement:r,overflows:E}],!E.every(_=>_<=0)){var W,P;const _=(((W=s.flip)==null?void 0:W.index)||0)+1,j=b[_];if(j&&(!(u==="alignment"?w!==z(j):!1)||D.every(L=>z(L.placement)===w?L.overflows[0]>0:!0)))return{data:{index:_,overflows:D},reset:{placement:j}};let $=(P=D.filter(T=>T.overflows[0]<=0).sort((T,L)=>T.overflows[1]-L.overflows[1])[0])==null?void 0:P.placement;if(!$)switch(d){case"bestFit":{var M;const T=(M=D.filter(L=>{if(R){const G=z(L.placement);return G===w||G==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(G=>G>0).reduce((G,ut)=>G+ut,0)]).sort((L,G)=>L[1]-G[1])[0])==null?void 0:M[0];T&&($=T);break}case"initialPlacement":$=l;break}if(r!==$)return{reset:{placement:$}}}return{}}}};function ze(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ne(e){return Ft.some(t=>e[t]>=0)}const Zt=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=X(e,t);switch(o){case"referenceHidden":{const s=await ie(t,{...r,elementContext:"reference"}),i=ze(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ne(i)}}}case"escaped":{const s=await ie(t,{...r,altBoundary:!0}),i=ze(s,n.floating);return{data:{escapedOffsets:i,escaped:Ne(i)}}}default:return{}}}}},nt=new Set(["left","top"]);async function Jt(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Y(n),l=re(n),f=z(n)==="y",c=nt.has(i)?-1:1,a=s&&f?-1:1,u=X(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof p=="number"&&(d=l==="end"?p*-1:p),f?{x:d*a,y:h*c}:{x:h*c,y:d*a}}const Qt=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,f=await Jt(t,e);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+f.x,y:s+f.y,data:{...f,placement:i}}}}},en=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:g=>{let{x:y,y:w}=g;return{x:y,y:w}}},...f}=X(e,t),c={x:n,y:o},a=await ie(t,f),u=z(Y(r)),h=De(u);let d=c[h],p=c[u];if(s){const g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",w=d+a[g],v=d-a[y];d=Se(w,d,v)}if(i){const g=u==="y"?"top":"left",y=u==="y"?"bottom":"right",w=p+a[g],v=p-a[y];p=Se(w,p,v)}const m=l.fn({...t,[h]:d,[u]:p});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[h]:s,[u]:i}}}}}},tn=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:l=0,mainAxis:f=!0,crossAxis:c=!0}=X(e,t),a={x:n,y:o},u=z(r),h=De(u);let d=a[h],p=a[u];const m=X(l,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(f){const v=h==="y"?"height":"width",A=s.reference[h]-s.floating[v]+g.mainAxis,x=s.reference[h]+s.reference[v]-g.mainAxis;d<A?d=A:d>x&&(d=x)}if(c){var y,w;const v=h==="y"?"width":"height",A=nt.has(Y(r)),x=s.reference[u]-s.floating[v]+(A&&((y=i.offset)==null?void 0:y[u])||0)+(A?0:g.crossAxis),R=s.reference[u]+s.reference[v]+(A?0:((w=i.offset)==null?void 0:w[u])||0)-(A?g.crossAxis:0);p<x?p=x:p>R&&(p=R)}return{[h]:d,[u]:p}}}},nn=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:l}=t,{apply:f=()=>{},...c}=X(e,t),a=await ie(t,c),u=Y(r),h=re(r),d=z(r)==="y",{width:p,height:m}=s.floating;let g,y;u==="top"||u==="bottom"?(g=u,y=h===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(y=u,g=h==="end"?"top":"bottom");const w=m-a.top-a.bottom,v=p-a.left-a.right,A=U(m-a[g],w),x=U(p-a[y],v),R=!t.middlewareData.shift;let b=A,S=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=v),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(b=w),R&&!h){const D=k(a.left,0),W=k(a.right,0),P=k(a.top,0),M=k(a.bottom,0);d?S=p-2*(D!==0||W!==0?D+W:k(a.left,a.right)):b=m-2*(P!==0||M!==0?P+M:k(a.top,a.bottom))}await f({...t,availableWidth:S,availableHeight:b});const E=await i.getDimensions(l.floating);return p!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function ye(){return typeof window<"u"}function J(e){return Be(e)?(e.nodeName||"").toLowerCase():"#document"}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function I(e){var t;return(t=(Be(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Be(e){return ye()?e instanceof Node||e instanceof B(e).Node:!1}function H(e){return ye()?e instanceof Element||e instanceof B(e).Element:!1}function V(e){return ye()?e instanceof HTMLElement||e instanceof B(e).HTMLElement:!1}function Ve(e){return!ye()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof B(e).ShadowRoot}const on=new Set(["inline","contents"]);function ce(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!on.has(r)}const rn=new Set(["table","td","th"]);function sn(e){return rn.has(J(e))}const ln=[":popover-open",":modal"];function we(e){return ln.some(t=>{try{return e.matches(t)}catch{return!1}})}const an=["transform","translate","scale","rotate","perspective"],cn=["transform","translate","scale","rotate","perspective","filter"],fn=["paint","layout","strict","content"];function Me(e){const t=$e(),n=H(e)?q(e):e;return an.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||cn.some(o=>(n.willChange||"").includes(o))||fn.some(o=>(n.contain||"").includes(o))}function un(e){let t=K(e);for(;V(t)&&!oe(t);){if(Me(t))return t;if(we(t))return null;t=K(t)}return null}function $e(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const dn=new Set(["html","body","#document"]);function oe(e){return dn.has(J(e))}function q(e){return B(e).getComputedStyle(e)}function ve(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function K(e){if(J(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ve(e)&&e.host||I(e);return Ve(t)?t.host:t}function ot(e){const t=K(e);return oe(t)?e.ownerDocument?e.ownerDocument.body:e.body:V(t)&&ce(t)?t:ot(t)}function se(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ot(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=B(r);if(s){const l=Re(i);return t.concat(i,i.visualViewport||[],ce(r)?r:[],l&&n?se(l):[])}return t.concat(r,se(r,[],n))}function Re(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rt(e){const t=q(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=V(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,l=de(n)!==s||de(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function Fe(e){return H(e)?e:e.contextElement}function ne(e){const t=Fe(e);if(!V(t))return N(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=rt(t);let i=(s?de(n.width):n.width)/o,l=(s?de(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const pn=N(0);function it(e){const t=B(e);return!$e()||!t.visualViewport?pn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==B(e)?!1:t}function Z(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Fe(e);let i=N(1);t&&(o?H(o)&&(i=ne(o)):i=ne(e));const l=hn(s,n,o)?it(s):N(0);let f=(r.left+l.x)/i.x,c=(r.top+l.y)/i.y,a=r.width/i.x,u=r.height/i.y;if(s){const h=B(s),d=o&&H(o)?B(o):o;let p=h,m=Re(p);for(;m&&o&&d!==p;){const g=ne(m),y=m.getBoundingClientRect(),w=q(m),v=y.left+(m.clientLeft+parseFloat(w.paddingLeft))*g.x,A=y.top+(m.clientTop+parseFloat(w.paddingTop))*g.y;f*=g.x,c*=g.y,a*=g.x,u*=g.y,f+=v,c+=A,p=B(m),m=Re(p)}}return he({width:a,height:u,x:f,y:c})}function xe(e,t){const n=ve(e).scrollLeft;return t?t.left+n:Z(I(e)).left+n}function st(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-xe(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function mn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=I(o),l=t?we(t.floating):!1;if(o===i||l&&s)return n;let f={scrollLeft:0,scrollTop:0},c=N(1);const a=N(0),u=V(o);if((u||!u&&!s)&&((J(o)!=="body"||ce(i))&&(f=ve(o)),V(o))){const d=Z(o);c=ne(o),a.x=d.x+o.clientLeft,a.y=d.y+o.clientTop}const h=i&&!u&&!s?st(i,f):N(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+a.x+h.x,y:n.y*c.y-f.scrollTop*c.y+a.y+h.y}}function gn(e){return Array.from(e.getClientRects())}function yn(e){const t=I(e),n=ve(e),o=e.ownerDocument.body,r=k(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=k(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+xe(e);const l=-n.scrollTop;return q(o).direction==="rtl"&&(i+=k(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:l}}const Ie=25;function wn(e,t){const n=B(e),o=I(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,l=0,f=0;if(r){s=r.width,i=r.height;const a=$e();(!a||a&&t==="fixed")&&(l=r.offsetLeft,f=r.offsetTop)}const c=xe(o);if(c<=0){const a=o.ownerDocument,u=a.body,h=getComputedStyle(u),d=a.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(o.clientWidth-u.clientWidth-d);p<=Ie&&(s-=p)}else c<=Ie&&(s+=c);return{width:s,height:i,x:l,y:f}}const vn=new Set(["absolute","fixed"]);function xn(e,t){const n=Z(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=V(e)?ne(e):N(1),i=e.clientWidth*s.x,l=e.clientHeight*s.y,f=r*s.x,c=o*s.y;return{width:i,height:l,x:f,y:c}}function je(e,t,n){let o;if(t==="viewport")o=wn(e,n);else if(t==="document")o=yn(I(e));else if(H(t))o=xn(t,n);else{const r=it(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return he(o)}function lt(e,t){const n=K(e);return n===t||!H(n)||oe(n)?!1:q(n).position==="fixed"||lt(n,t)}function bn(e,t){const n=t.get(e);if(n)return n;let o=se(e,[],!1).filter(l=>H(l)&&J(l)!=="body"),r=null;const s=q(e).position==="fixed";let i=s?K(e):e;for(;H(i)&&!oe(i);){const l=q(i),f=Me(i);!f&&l.position==="fixed"&&(r=null),(s?!f&&!r:!f&&l.position==="static"&&!!r&&vn.has(r.position)||ce(i)&&!f&<(e,i))?o=o.filter(a=>a!==i):r=l,i=K(i)}return t.set(e,o),o}function An(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?we(t)?[]:bn(t,this._c):[].concat(n),o],l=i[0],f=i.reduce((c,a)=>{const u=je(t,a,r);return c.top=k(u.top,c.top),c.right=U(u.right,c.right),c.bottom=U(u.bottom,c.bottom),c.left=k(u.left,c.left),c},je(t,l,r));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Cn(e){const{width:t,height:n}=rt(e);return{width:t,height:n}}function On(e,t,n){const o=V(t),r=I(t),s=n==="fixed",i=Z(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const f=N(0);function c(){f.x=xe(r)}if(o||!o&&!s)if((J(t)!=="body"||ce(r))&&(l=ve(t)),o){const d=Z(t,!0,s,t);f.x=d.x+t.clientLeft,f.y=d.y+t.clientTop}else r&&c();s&&!o&&r&&c();const a=r&&!o&&!s?st(r,l):N(0),u=i.left+l.scrollLeft-f.x-a.x,h=i.top+l.scrollTop-f.y-a.y;return{x:u,y:h,width:i.width,height:i.height}}function Ae(e){return q(e).position==="static"}function Xe(e,t){if(!V(e)||q(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return I(e)===n&&(n=n.ownerDocument.body),n}function at(e,t){const n=B(e);if(we(e))return n;if(!V(e)){let r=K(e);for(;r&&!oe(r);){if(H(r)&&!Ae(r))return r;r=K(r)}return n}let o=Xe(e,t);for(;
1o&&sn(o)&&Ae(o);)o=Xe(o,t);return o&&oe(o)&&Ae(o)&&!Me(o)?n:o||un(e)||n}const Sn=async function(e){const t=this.getOffsetParent||at,n=this.getDimensions,o=await n(e.floating);return{reference:On(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Pn(e){return q(e).direction==="rtl"}const Rn={convertOffsetParentRelativeRectToViewportRelativeRect:mn,getDocumentElement:I,getClippingRect:An,getOffsetParent:at,getElementRects:Sn,getClientRects:gn,getDimensions:Cn,getScale:ne,isElement:H,isRTL:Pn};function ct(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _n(e,t){let n=null,o;const r=I(e);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function i(l,f){l===void 0&&(l=!1),f===void 0&&(f=1),s();const c=e.getBoundingClientRect(),{left:a,top:u,width:h,height:d}=c;if(l||t(),!h||!d)return;const p=fe(u),m=fe(r.clientWidth-(a+h)),g=fe(r.clientHeight-(u+d)),y=fe(a),v={rootMargin:-p+"px "+-m+"px "+-g+"px "+-y+"px",threshold:k(0,U(1,f))||1};let A=!0;function x(R){const b=R[0].intersectionRatio;if(b!==f){if(!A)return i();b?i(!1,b):o=setTimeout(()=>{i(!1,1e-7)},1e3)}b===1&&!ct(c,e.getBoundingClientRect())&&i(),A=!1}try{n=new IntersectionObserver(x,{...v,root:r.ownerDocument})}catch{n=new IntersectionObserver(x,v)}n.observe(e)}return i(!0),s}function En(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:f=!1}=o,c=Fe(e),a=r||s?[...c?se(c):[],...se(t)]:[];a.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const u=c&&l?_n(c,n):null;let h=-1,d=null;i&&(d=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(t)})),n()}),c&&!f&&d.observe(c),d.observe(t));let p,m=f?Z(e):null;f&&g();function g(){const y=Z(e);m&&!ct(m,y)&&n(),m=y,p=requestAnimationFrame(g)}return n(),()=>{var y;a.forEach(w=>{r&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),u?.(),(y=d)==null||y.disconnect(),d=null,f&&cancelAnimationFrame(p)}}const Ln=Qt,Dn=en,Ye=Kt,Tn=nn,kn=Zt,Bn=Ut,Mn=tn,$n=(e,t,n)=>{const o=new Map,r={platform:Rn,...n},s={...r.platform,_c:o};return Gt(e,t,{...r,platform:s})};function Fn(e){return e!=null&&typeof e=="object"&&"$el"in e}function _e(e){if(Fn(e)){const t=e.$el;return Be(t)&&J(t)==="#comment"?null:t}return e}function ee(e){return typeof e=="function"?e():O(e)}function Hn(e){return{name:"arrow",options:e,fn(t){const n=_e(ee(e.element));return n==null?{}:Bn({element:n,padding:e.padding}).fn(t)}}}function ft(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ge(e,t){const n=ft(e);return Math.round(t*n)/n}function qn(e,t,n){n===void 0&&(n={});const o=n.whileElementsMounted,r=C(()=>{var b;return(b=ee(n.open))!=null?b:!0}),s=C(()=>ee(n.middleware)),i=C(()=>{var b;return(b=ee(n.placement))!=null?b:"bottom"}),l=C(()=>{var b;return(b=ee(n.strategy))!=null?b:"absolute"}),f=C(()=>{var b;return(b=ee(n.transform))!=null?b:!0}),c=C(()=>_e(e.value)),a=C(()=>_e(t.value)),u=F(0),h=F(0),d=F(l.value),p=F(i.value),m=gt({}),g=F(!1),y=C(()=>{const b={position:d.value,left:"0",top:"0"};if(!a.value)return b;const S=Ge(a.value,u.value),E=Ge(a.value,h.value);return f.value?{...b,transform:"translate("+S+"px, "+E+"px)",...ft(a.value)>=1.5&&{willChange:"transform"}}:{position:d.value,left:S+"px",top:E+"px"}});let w;function v(){if(c.value==null||a.value==null)return;const b=r.value;$n(c.value,a.value,{middleware:s.value,placement:i.value,strategy:l.value}).then(S=>{u.value=S.x,h.value=S.y,d.value=S.strategy,p.value=S.placement,m.value=S.middlewareData,g.value=b!==!1})}function A(){typeof w=="function"&&(w(),w=void 0)}function x(){if(A(),o===void 0){v();return}if(c.value!=null&&a.value!=null){w=o(c.value,a.value,v);return}}function R(){r.value||(g.value=!1)}return be([s,i,l,r],v,{flush:"sync"}),be([c,a],x,{flush:"sync"}),be(r,R,{flush:"sync"}),yt()&&wt(A),{x:Q(u),y:Q(h),strategy:Q(d),placement:Q(p),middlewareData:Q(m),isPositioned:Q(g),floatingStyles:y,update:v}}const Wn={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[zn,Nn]=Ue("PopperContent");var Vn=le({inheritAttrs:!1,__name:"PopperContent",props:vt({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Wn}),emits:["placed"],setup(e,{emit:t}){const n=e,o=t,r=et(),{forwardRef:s,currentElement:i}=me(),l=F(),f=F(),{width:c,height:a}=Rt(f),u=C(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),h=C(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),d=C(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),p=C(()=>({padding:h.value,boundary:d.value.filter(Mt),altBoundary:d.value.length>0})),m=C(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),g=xt(()=>[Ln({mainAxis:n.sideOffset+a.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Ye({...p.value,...m.value}),n.avoidCollisions&&Dn({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Mn():void 0,...p.value}),!n.prioritizePosition&&n.avoidCollisions&&Ye({...p.value,...m.value}
1),Tn({...p.value,apply:({elements:P,rects:M,availableWidth:_,availableHeight:j})=>{const{width:$,height:T}=M.reference,L=P.floating.style;L.setProperty("--reka-popper-available-width",`${_}px`),L.setProperty("--reka-popper-available-height",`${j}px`),L.setProperty("--reka-popper-anchor-width",`${$}px`),L.setProperty("--reka-popper-anchor-height",`${T}px`)}}),f.value&&Hn({element:f.value,padding:n.arrowPadding}),$t({arrowWidth:c.value,arrowHeight:a.value}),n.hideWhenDetached&&kn({strategy:"referenceHidden",...p.value})]),y=C(()=>n.reference??r.anchor.value),{floatingStyles:w,placement:v,isPositioned:A,middlewareData:x}=qn(y,l,{strategy:n.positionStrategy,placement:u,whileElementsMounted:(...P)=>En(...P,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:g}),R=C(()=>Oe(v.value)[0]),b=C(()=>Oe(v.value)[1]);Ke(()=>{A.value&&o("placed")});const S=C(()=>x.value.arrow?.centerOffset!==0),E=F("");Ce(()=>{i.value&&(E.value=window.getComputedStyle(i.value).zIndex)});const D=C(()=>x.value.arrow?.x??0),W=C(()=>x.value.arrow?.y??0);return Nn({placedSide:R,onArrowChange:P=>f.value=P,arrowX:D,arrowY:W,shouldHideArrow:S}),(P,M)=>(te(),ue("div",{ref_key:"floatingRef",ref:l,"data-reka-popper-content-wrapper":"",style:Qe({...O(w),transform:O(A)?O(w).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:E.value,"--reka-popper-transform-origin":[O(x).transformOrigin?.x,O(x).transformOrigin?.y].join(" "),...O(x).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[Je(O(Ee),Le({ref:O(s)},P.$attrs,{"as-child":n.asChild,as:P.as,"data-side":R.value,"data-align":b.value,style:{animation:O(A)?void 0:"none"}}),{default:ge(()=>[ae(P.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),Kn=Vn;const In={top:"bottom",right:"left",bottom:"top",left:"right"};var jn=le({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=me(),n=zn(),o=C(()=>In[n.placedSide.value]);return(r,s)=>(te(),ue("span",{ref:i=>{O(n).onArrowChange(i)},style:Qe({position:"absolute",left:O(n).arrowX?.value?`${O(n).arrowX?.value}px`:void 0,top:O(n).arrowY?.value?`${O(n).arrowY?.value}px`:void 0,[o.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[O(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[O(n).placedSide.value],visibility:O(n).shouldHideArrow.value?"hidden":void 0})},[Je(Bt,Le(r.$attrs,{ref:O(t),style:{display:"block"},as:r.as,"as-child":r.asChild,rounded:r.rounded,width:r.width,height:r.height}),{default:ge(()=>[ae(r.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),Zn=jn;export{Zn as P,Gn as a,Kn as b,Un as c,Wn as d,Yn as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.