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