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