1import{$ as e,$n as t,Bn as n,Cn as r,Ft as i,Jn as a,Nt as o,On as s,Tn as c,Ut as l,Yt as u,Z as d,ct as f,jn as p,lr as m,mr as h,nn as g,nr as _,qt as v,tr as y,tt as b,ut as x,wn as S}from"./dist-DAh4MArN.js";import{C,S as w}from"./Link-dv8AjnAW.js";import{s as T}from"./dist-BSnVaRhB.js";import{a as E,c as D}from"./tv-CLNKPhdu.js";import{n as ee}from"./usePrimitiveElement-QndL1JH8.js";import{t as O}from"./useForwardExpose-Dhh6RTe0.js";function k(e,t){let n=w(e),r=t?C(t):{};return d(()=>({...n.value,...r}))}function te(e){let n=t(),r=d(()=>n.value?.width??0),i=d(()=>n.value?.height??0),a;return l(()=>{let t=T(e);t?(n.value={width:t.offsetWidth,height:t.offsetHeight},a=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=t.offsetWidth,a=t.offsetHeight;n.value={width:i,height:a}}),a.observe(t,{box:`border-box`})):n.value=void 0}),v(()=>{a?.disconnect(),a=void 0}),{width:r,height:i}}var[ne,A]=D(`PopperRoot`),re=x({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let n=t();return A({anchor:n,onAnchorChange:e=>n.value=e}),(e,t)=>g(e.$slots,`default`)}}),ie=x({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){let n=t,{forwardRef:r,currentElement:i}=O(),a=ne();return c(()=>{a.onAnchorChange(n.reference??i.value)}),(t,n)=>(u(),e(m(E),{ref:m(r),as:t.as,"as-child":t.asChild},{default:s(()=>[g(t.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}}),ae={key:0,d:`M0 0L6 6L12 0`},oe={key:1,d:`M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0`},j=x({__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(t){let n=t;return O(),(t,r)=>(u(),e(m(E),i(n,{width:t.width,height:t.height,viewBox:t.asChild?void 0:`0 0 12 6`,preserveAspectRatio:t.asChild?void 0:`none`}),{default:s(()=>[g(t.$slots,`default`,{},()=>[t.rounded?(u(),b(`path`,oe)):(u(),b(`path`,ae))])]),_:3},16,[`width`,`height`,`viewBox`,`preserveAspectRatio`]))}});function se(e){return e!==null}function ce(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=le(n),u={start:e.dir===`rtl`?`100%`:`0%`,center:`50%`,end:e.dir===`rtl`?`0%`:`100%`}[l],d={start:`0%`,center:`50%`,end:`100%`}[l],f=(i.arrow?.x??0)+o/2,p=(i.arrow?.y??0)+s/2,m=``,h=``;return c===`bottom`?(m=a?u:`${f}px`,h=`${-s}px`):c===`top`?(m=a?u:`${f}px`,h=`${r.floating.height+s}px`):c===`right`?(m=`${-s}px`,h=a?d:`${p}px`):c===`left`&&(m=`${r.floating.width+s}px`,h=a?d:`${p}px`),{data:{x:m,y:h}}}}}function le(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var M=[`top`,`right`,`bottom`,`left`],N=Math.min,P=Math.max,F=Math.round,I=Math.floor,L=e=>({x:e,y:e}),ue={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function de(e,t,n){return P(e,N(t,n))}function R(e,t){return typeof e==`function`?e(t):e}function z(e){return e.split(`-`)[0]}function B(e){return e.split(`-`)[1]}function fe(e){return e===`x`?`y`:`x`}function pe(e){return e===`y`?`height`:`width`}function V(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function me(e){return fe(V(e))}function he(e,t,n){n===void 0&&(n=!1);let r=B(e),i=me(e),a=pe(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=we(o)),[o,we(o)]}function ge(e){let t=we(e);return[_e(e),t,_e(t)]}function _e(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ve=[`left`,`right`],ye=[`right`,`left`],be=[`top`,`bottom`],xe=[`bottom`,`top`];function Se(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ye:ve:t?ve:ye;case`left`:case`right`:return t?be:xe;default:return[]}}function Ce(e,t,n,r){let i=B(e),a=Se(z(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(_e)))),a}function we(e){let t=z(e);return ue[t]+e.slice(t.length)}function Te(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Ee(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Te(e)}function De(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Oe(e,t,n){let{reference:r,floating:i}=e,a=V(t),o=me(t),s=pe(o),c=z(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=B(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function ke(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=R(t,e),p=Ee(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=De(await i.getClippingRect
vendor: 4,607 bytes, line 1
1({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=De(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ae=50,je=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ke},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Oe(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ae&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Oe(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Me=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=R(e,t)||{};if(l==null)return{};let d=Ee(u),f={x:n,y:r},p=me(i),m=pe(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=N(d[_],T),D=N(d[v],T),ee=C-h[m]-D,O=C/2-h[m]/2+w,k=de(E,O,ee),te=!c.arrow&&B(i)!=null&&O!==k&&a.reference[m]/2-(O<E?E:D)-h[m]/2<0,ne=te?O<E?O-E:O-ee:0;return{[p]:f[p]+ne,data:{[p]:k,centerOffset:O-k-ne,...te&&{alignmentOffset:ne}},reset:te}}}),Ne=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=R(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=z(r),_=V(o),v=z(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[we(o)]:ge(o)),x=p!==`none`;!d&&x&&b.push(...Ce(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=he(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===V(t)||T.every(e=>V(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=V(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Pe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fe(e){return M.some(t=>e[t]>=0)}var Ie=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=R(e,t);switch(i){case`referenceHidden`:{let e=Pe(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Fe(e)}}}case`escaped`:{let e=Pe(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Fe(e)}}}default:return{}}}}},Le=new Set([`left`,`top`]);async function Re(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=z(n),s=B(n),c=V(n)===`y`,l=Le.has(o)?-1:1,u=a&&c?-1:1,d=R(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ze=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Re(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Be=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=R(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=V(i),p=fe(f),m=u[p],h=u[f],g=(e,t)=>de(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Ve=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=R(e,t),u={x:n,y:r},d=V(i),f=fe(d),p=u[f],m=u[d],h=R(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Le.has(z(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},He=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=R(e,t),c=await i.detectOverflow(t,s),l=z(n),u=B(n),d=V(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=N(p-c[m],g),y=N(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*P(c.left,c.right):S=p-2*P(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Ue(){return typeof window<`u`}function H(e){return We(e)?(e.nodeName||``).toLowerCase():`#document`}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){return((We(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function We(e){return Ue()?e instanceof Node||e instanceof U(e).Node:!1}function G(e){return Ue()?e instanceof Element||e instanceof U(e).Element:!1}function K(e){return Ue()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function Ge(e){return!Ue()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function Ke(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function qe(e){return/^(table|td|th)$/.test(H(e))}function Je(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ye=/transform|translate|scale|rotate|perspective|filter/,Xe=/paint|layout|strict|content/,q=e=>!!e&&e!==`none`,Ze;function Qe(e){let t=G(e)?Y(e):e;return q(t.transform)||q(t.translate)||q(t.scale)||q(t.rotate)||q(t.perspective)||!et()&&(q(t.backdropFilter)||q(t.filter))||Ye.test(t.willChange||``)||Xe.test(t.contain||``)}function $e(e){let t=X(e);for(;K(t)&&!J(t);){if(Qe(t))return t;if(Je(t))return null;t=X(t)}return null}function et(){return Ze??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ze}function J(e){return/^(html|body|#document)$/.test(H(e))}function Y(e){return U(e).getComputedStyle(e)}function tt(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(H(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ge(e)&&e.host||W(e);return Ge(t)?t.host:t}function nt(e){let t=X(e);return J(t)?(e.ownerDocument||e).body:K(t)&&Ke(t)?t:nt(t)}
vendor: 4,301 bytes, line 1
1function rt(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=nt(e),i=r===e.ownerDocument?.body,a=U(r);if(i){let e=it(a);return t.concat(a,a.visualViewport||[],Ke(r)?r:[],e&&n?rt(e):[])}return t.concat(r,rt(r,[],n))}function it(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function at(e){let t=Y(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=K(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=F(n)!==a||F(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ot(e){return G(e)?e:e.contextElement}function Z(e){let t=ot(e);if(!K(t))return L(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=at(t),o=(a?F(n.width):n.width)/r,s=(a?F(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var st=L(0);function ct(e){let t=U(e);return!et()||!t.visualViewport?st:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lt(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function Q(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ot(e),o=L(1);t&&(r?G(r)&&(o=Z(r)):o=Z(e));let s=lt(a,n,r)?ct(a):L(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=U(a),t=G(r)?U(r):r,n=e,i=it(n);for(;i&&t!==n;){let e=Z(i),t=i.getBoundingClientRect(),r=Y(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=U(i),i=it(n)}}return De({width:u,height:d,x:c,y:l})}function ut(e,t){let n=tt(e).scrollLeft;return t?t.left+n:Q(W(e)).left+n}function dt(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ut(e,n),y:n.top+t.scrollTop}}function ft(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=W(r),s=t?Je(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=L(1),u=L(0),d=K(r);if((d||!a)&&((H(r)!==`body`||Ke(o))&&(c=tt(r)),d)){let e=Q(r);l=Z(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?dt(o,c):L(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function pt(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function mt(e){let t=tt(e),n=e.ownerDocument.body,r=P(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=P(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+ut(e),o=-t.scrollTop;return Y(n).direction===`rtl`&&(a+=P(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var ht=25;function gt(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=U(e),a=W(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!et()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(ut(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=ht&&(s-=o)}return{width:s,height:c,x:l,y:u}}function _t(e,t){let n=Q(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Z(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function vt(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=gt(e,n,t);else if(t===`document`)r=mt(W(e));else if(G(t))r=_t(t,n);else{let n=ct(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return De(r)}function yt(e,t){let n=t.get(e);if(n)return n;let r=rt(e,[],!1).filter(e=>G(e)&&H(e)!==`body`),i=null,a=Y(e).position===`fixed`,o=a?X(e):e;for(;G(o)&&!J(o);){let e=Y(o),t=Qe(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=X(o)}return t.set(e,r),r}function bt(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Je(t)?[]:yt(t,this._c):[].concat(n),r],o=vt(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=vt(t,a[e],i);s=P(n.top,s),c=N(n.right,c),l=N(n.bottom,l),u=P(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function xt(e){let{width:t,height:n}=at(e);return{width:t,height:n}}function St(e,t,n){let r=K(t),i=W(t),a=n===`fixed`,o=Q(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=L(0);
1if((r||!a)&&((H(t)!==`body`||Ke(i))&&(s=tt(t)),r)){let e=Q(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=ut(i));let l=i&&!r&&!a?dt(i,s):L(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Ct(e){return Y(e).position===`static`}function wt(e,t){if(!K(e)||Y(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return W(e)===n&&(n=n.ownerDocument.body),n}function Tt(e,t){let n=U(e);if(Je(e))return n;if(!K(e)){let t=X(e);for(;t&&!J(t);){if(G(t)&&!Ct(t))return t;t=X(t)}return n}let r=wt(e,t);for(;r&&qe(r)&&Ct(r);)r=wt(r,t);return r&&J(r)&&Ct(r)&&!Qe(r)?n:r||$e(e)||n}var Et=async function(e){let t=this.getOffsetParent||Tt,n=this.getDimensions,r=await n(e.floating);return{reference:St(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Dt(e){return Y(e).direction===`rtl`}var Ot={convertOffsetParentRelativeRectToViewportRelativeRect:ft,getDocumentElement:W,getClippingRect:bt,getOffsetParent:Tt,getElementRects:Et,getClientRects:pt,getDimensions:xt,getScale:Z,isElement:G,isRTL:Dt};function kt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function At(e,t,n){let r=null,i,a=W(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=I(d),h=I(a.clientWidth-(u+f)),g=I(a.clientHeight-(d+p)),_=I(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:P(0,N(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!kt(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=U(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function jt(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ot(e),u=i||a?[...l?rt(l):[],...t?rt(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?At(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Q(e):null;c&&g();function g(){let t=Q(e);h&&!kt(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Mt=ze,Nt=Be,Pt=Ne,Ft=He,It=Ie,Lt=Me,Rt=Ve,zt=(e,t,n)=>{let r=new Map,i=n??{},a={...Ot,...i.platform,_c:r};return je(e,t,{...i,platform:a})};function Bt(e){return typeof e==`object`&&!!e&&`$el`in e}function Vt(e){if(Bt(e)){let t=e.$el;return We(t)&&H(t)===`#comment`?null:t}return e}function $(e){return typeof e==`function`?e():m(e)}function Ht(e){return{name:`arrow`,options:e,fn(t){let n=Vt($(e.element));return n==null?{}:Lt({element:n,padding:e.padding}).fn(t)}}}function Ut(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wt(e,t){let n=Ut(e);return Math.round(t*n)/n}function Gt(e,i,o){o===void 0&&(o={});let s=o.whileElementsMounted,c=d(()=>$(o.open)??!0),l=d(()=>$(o.middleware)),u=d(()=>$(o.placement)??`bottom`),f=d(()=>$(o.strategy)??`absolute`),p=d(()=>$(o.transform)??!0),m=d(()=>Vt(e.value)),h=d(()=>Vt(i.value)),g=t(0),v=t(0),b=t(f.value),x=t(u.value),S=_({}),C=t(!1),w=d(()=>{let e={position:b.value,left:`0`,top:`0`};if(!h.value)return e;let t=Wt(h.value,g.value),n=Wt(h.value,v.value);return p.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...Ut(h.value)>=1.5&&{willChange:`transform`}}:{position:b.value,left:t+`px`,top:n+`px`}}),T;
1function E(){if(m.value==null||h.value==null)return;let e=c.value;zt(m.value,h.value,{middleware:l.value,placement:u.value,strategy:f.value}).then(t=>{g.value=t.x,v.value=t.y,b.value=t.strategy,x.value=t.placement,S.value=t.middlewareData,C.value=e!==!1})}function D(){typeof T==`function`&&(T(),T=void 0)}function ee(){if(D(),s===void 0){E();return}if(m.value!=null&&h.value!=null){T=s(m.value,h.value,E);return}}function O(){c.value||(C.value=!1)}return r([l,u,f,c],E,{flush:`sync`}),r([m,h],ee,{flush:`sync`}),r(c,O,{flush:`sync`}),n()&&a(D),{x:y(g),y:y(v),strategy:y(b),placement:y(x),middlewareData:y(S),isPositioned:y(C),floatingStyles:w,update:E}}var Kt=[`dir`],qt={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[Jt,Yt]=D(`PopperContent`),Xt=x({inheritAttrs:!1,__name:`PopperContent`,props:o({memoDependencies:{type:Array,required:!1},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},hideShiftedArrow:{type:Boolean,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},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...qt}),emits:[`placed`],setup(n,{emit:r}){let a=n,o=r,l=ne(),{forwardRef:f,currentElement:_}=O(),v=ee(d(()=>a.dir)),y=t(),x=t(),{width:C,height:w}=te(x),T=d(()=>a.side+(a.align===`center`?``:`-${a.align}`)),D=d(()=>typeof a.collisionPadding==`number`?a.collisionPadding:{top:0,right:0,bottom:0,left:0,...a.collisionPadding}),k=d(()=>Array.isArray(a.collisionBoundary)?a.collisionBoundary:[a.collisionBoundary]),A=d(()=>({padding:D.value,boundary:k.value.filter(se),altBoundary:k.value.length>0})),re=d(()=>({mainAxis:a.sideFlip,crossAxis:a.alignFlip})),ie=d(()=>[Mt({mainAxis:a.sideOffset+w.value,alignmentAxis:a.alignOffset}),a.prioritizePosition&&a.avoidCollisions&&Pt({...A.value,...re.value}),a.avoidCollisions&&Nt({mainAxis:!0,crossAxis:!!a.prioritizePosition,limiter:a.sticky===`partial`?Rt():void 0,...A.value}),!a.prioritizePosition&&a.avoidCollisions&&Pt({...A.value,...re.value}),Ft({...A.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}}),x.value&&Ht({element:x.value,padding:a.arrowPadding}),ce({arrowWidth:C.value,arrowHeight:w.value,dir:v.value}),a.hideWhenDetached&&It({strategy:`referenceHidden`,...A.value})]),{floatingStyles:ae,placement:oe,isPositioned:j,middlewareData:M,update:N}=Gt(d(()=>a.reference??l.anchor.value),y,{strategy:a.positionStrategy,placement:T,whileElementsMounted:(...e)=>jt(...e,{layoutShift:!a.disableUpdateOnLayoutShift,animationFrame:a.updatePositionStrategy===`always`}),middleware:ie}),P=d(()=>le(oe.value)[0]),F=d(()=>le(oe.value)[1]);c(()=>{j.value&&o(`placed`)});let I=d(()=>{let e=M.value.arrow?.centerOffset!==0;return a.hideShiftedArrow&&e}),L=t(``);return S(()=>{_.value&&(L.value=window.getComputedStyle(_.value).zIndex)}),Yt({placedSide:P,onArrowChange:e=>x.value=e,arrowX:d(()=>M.value.arrow?.x??0),arrowY:d(()=>M.value.arrow?.y??0),shouldHideArrow:I}),(t,n)=>(u(),b(`div`,{ref_key:`floatingRef`,ref:y,"data-reka-popper-content-wrapper":``,dir:m(v),style:h({...m(ae),transform:m(j)?m(ae).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:L.value,"--reka-popper-transform-origin":[m(M).transformOrigin?.x,m(M).transformOrigin?.y].join(` `),...m(M).hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}})},[a.memoDependencies?p([a.asChild,a.as,P.value,F.value,m(j),...Object.values(t.$attrs),...a.memoDependencies],()=>(u(),e(m(E),i({key:0,ref:m(f)},t.$attrs,{"as-child":a.asChild,as:a.as,"data-side":P.value,"data-align":F.value,style:{animation:m(j)?void 0:`none`}}),{default:s(()=>[g(t.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])),n,0):(u(),e(m(E),i({key:1,ref:m(f)},t.$attrs,{"as-child":a.asChild,as:a.as,"data-side":P.value,"data-align":F.value,dir:m(v),style:{animation:m(j)?void 0:`none`}}),{default:s(()=>[g(t.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`dir`,`style`]))],12,Kt))}}),Zt={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Qt=x({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){let{forwardRef:t}=O(),n=Jt(),r=d(()=>Zt[n.placedSide.value]);return(e,a)=>(u(),b(`span`,{ref:e=>{m(n).onArrowChange(e??void 0)},style:h({position:`absolute`,left:m(n).arrowX?.value?`${m(n).arrowX?.value}px`:void 0,top:m(n).arrowY?.value?`${m(n).arrowY?.value}px`:void 0,[r.value]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[m(n).placedSide.value],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[m(n).placedSide.value],visibility:m(n).shouldHideArrow.value?`hidden`:void 0})},[f(j,i(e.$attrs,{ref:m(t),style:{display:`block`},as:e.as,"as-child":e.asChild,rounded:e.rounded,width:e.width,height:e.height}),{default:s(()=>[g(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`rounded`,`width`,`height`])],4))}});
1export{re as a,ie as i,qt as n,te as o,Xt as r,k as s,Qt as t};
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.