vendor: 6,532 bytes, line 1
1import{c as $,Q as tt,w as gt,ar as Xt,ap as jt,d9 as q,as as Yt,t as K}from"./DUququmF.js";const G=Math.min,I=Math.max,st=Math.round,rt=Math.floor,M=t=>({x:t,y:t}),qt={left:"right",right:"left",bottom:"top",top:"bottom"};function Ft(t,e,n){return I(t,G(e,n))}function ot(t,e){return typeof t=="function"?t(e):t}function Q(t){return t.split("-")[0]}function it(t){return t.split("-")[1]}function Mt(t){return t==="x"?"y":"x"}function xt(t){return t==="y"?"height":"width"}function N(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function bt(t){return Mt(N(t))}function Kt(t,e,n){n===void 0&&(n=!1);const o=it(t),i=bt(t),r=xt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=ct(s)),[s,ct(s)]}function Ut(t){const e=ct(t);return[wt(t),e,wt(e)]}function wt(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Et=["left","right"],Lt=["right","left"],Gt=["top","bottom"],Qt=["bottom","top"];function Jt(t,e,n){switch(t){case"top":case"bottom":return n?e?Lt:Et:e?Et:Lt;case"left":case"right":return e?Gt:Qt;default:return[]}}function Zt(t,e,n,o){const i=it(t);let r=Jt(Q(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(wt)))),r}function ct(t){const e=Q(t);return qt[e]+t.slice(e.length)}function te(t){var e,n,o,i;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(o=t.bottom)!=null?o:0,left:(i=t.left)!=null?i:0}}function Wt(t){return typeof t!="number"?te(t):{top:t,right:t,bottom:t,left:t}}function lt(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 St(t,e,n){let{reference:o,floating:i}=t;const r=N(e),s=bt(e),c=xt(s),f=Q(e),l=r==="y",u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2;let a;switch(f){case"top":a={x:u,y:o.y-i.height};break;case"bottom":a={x:u,y:o.y+o.height};break;case"right":a={x:o.x+o.width,y:d};break;case"left":a={x:o.x-i.width,y:d};break;default:a={x:o.x,y:o.y}}const g=it(e);return g&&(a[s]+=m*(g==="end"?1:-1)*(n&&l?-1:1)),a}async function ee(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:f}=t,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:a=0}=ot(e,t),g=Wt(a),w=c[m?d==="floating"?"reference":"floating":d],p=lt(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:l,rootBoundary:u,strategy:f})),y=d==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(v))&&await(r.getScale==null?void 0:r.getScale(v))||{x:1,y:1},A=lt(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:v,strategy:f}):y);return{top:(p.top-A.top+g.top)/b.y,bottom:(A.bottom-p.bottom+g.bottom)/b.y,left:(p.left-A.left+g.left)/b.x,right:(A.right-p.right+g.right)/b.x}}const ne=50,oe=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=s.detectOverflow?s:{...s,detectOverflow:ee},f=await(s.isRTL==null?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=St(l,o,f),m=o,a=0;const g={};for(let h=0;h<r.length;h++){const w=r[h];if(!w)continue;const{name:p,fn:y}=w,{x:v,y:b,data:A,reset:R}=await y({x:u,y:d,initialPlacement:o,placement:m,strategy:i,middlewareData:g,rects:l,platform:c,elements:{reference:t,floating:e}});u=v??u,d=b??d,g[p]={...g[p],...A},R&&a<ne&&(a++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(l=R.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):R.rects),{x:u,y:d}=St(l,m,f)),h=-1)}return{x:u,y:d,placement:m,strategy:i,middlewareData:g}},ie=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:f}=e,{element:l,padding:u=0}=ot(t,e)||{};if(l==null)return{};const d=Wt(u),m={x:n,y:o},a=bt(i),g=xt(a),h=await s.getDimensions(l),w=a==="y",p=w?"top":"left",y=w?"bottom":"right",v=w?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[a]-m[a]-r.floating[g],A=m[a]-r.reference[a],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let x=R?R[v]:0;(!x||!await(s.isElement==null?void 0:s.isElement(R)))&&(x=c.floating[v]||r.floating[g]);const O=b/2-A/2,L=x/2-h[g]/2-1,C=G(d[p],L),J=G(d[y],L),Z=x-h[g]-J,T=x/2-h[g]/2+O,S=Ft(C,T,Z),B=!f.arrow&&it(i)!=null&&T!==S&&r.reference[g]/2-(T<C?C:J)-h[g]/2<0,F=B?T<C?T-C:T-Z:0;return{[a]:m[a]+F,data:{[a]:S,centerOffset:T-S-F,...B&&{alignmentOffset:F}},reset:B}}}),re=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:f,elements:l}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:a="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...w}=ot(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const p=Q(i),y=N(c),v=Q(c)===c,b=await(f.isRTL==null?void 0:f.isRTL(l.floating)),A=m||(v||!h?[ct(c)]:Ut(c)),R=g!=="none";!m&&R&&A.push(...Zt(c,h,g,b));const x=[c,...A],O=await f.detectOverflow(e,w),L=[];let C=((o=r.flip)==null?void 0:o.overflows)||[];if(u&&L.push(O[p]),d){const S=Kt(i,s,b);L.push(O[S[0]],O[S[1]])}if(C=[...C,{placement:i,overflows:L}],!L.every(S=>S<=0)){var J,Z;const S=(((J=r.flip)==null?void 0:J.index)||0)+1,B=x[S];if(B&&(!(d==="alignment"?y!==N(B):!1)||C.every(P=>N(P.placement)===y?P.overflows[0]>0:!0)))return{data:{index:S,overflows:C},reset:{placement:B}};let F=(Z=C.filter(H=>H.overflows[0]<=0).sort((H,P)=>H.overflows[1]-P.overflows[1])[0])==null?void 0:Z.placement;if(!F)switch(a){case"bestFit":{var T;const H=(T=C.filter(P=>{if(R){const _=N(P.placement);return _===y||_==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(_=>_>0).reduce((_,It)=>_+It,0)]).sort((P,_)=>P[1]-_[1])[0])==null?void 0:T[0];H&&(F=H);break}case"initialPlacement":F=c;break}if(i!==F)return{reset:{placement:F}}}return{}}}},se=new Set(["left","top"]);async function ce(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=Q(n),c=it(n),f=N(n)==="y",l=se.has(s)?-1:1,u=r&&f?-1:1,d=ot(e,t);let{mainAxis:m,crossAxis:a,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof g=="number"&&(a=c==="end"?g*-1:g),f?{x:a*u,y:m*l}:{x:m*l,y:a*u}}const le=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,f=await ce(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+f.x,y:r+f.y,data:{...f,placement:s}}}}},ae=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:r}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:y=>{let{x:v,y:b}=y;return{x:v,y:b}}},...l}=ot(t,e),u={x:n,y:o},d=await r.detectOverflow(e,l),m=N(i),a=Mt(m);let g=u[a],h=u[m];const w=(y,v)=>Ft(v+d[y==="y"?"top":"left"],v,v-d[y==="y"?"bottom":"right"]);s&&(g=w(a,g)),c&&(h=w(m,h));const p=f.fn({...e,[a]:g,[m]:h});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[a]:s,[m]:c}}}}}};function at(){return typeof window<"u"}function Y(t){return Rt(t)?(t.nodeName||"").toLowerCase():"#document"}function E(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function W(t){var e;return(e=(Rt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Rt(t){return at()?t instanceof Node||t instanceof E(t).Node:!1}function D(t){return at()?t instanceof Element||t instanceof E(t).Element:!1}function k(t){return at()?t instanceof HTMLElement||t instanceof E(t).HTMLElement:!1}function Pt(t){return!at()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof E(t).ShadowRoot}function ft(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=V(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&i!=="inline"&&i!=="contents"}function fe(t){return/^(table|td|th)$/.test(Y(t))}function ut(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const ue=/transform|translate|scale|rotate|perspective|filter/,de=/paint|layout|strict|content/,z=t=>!!t&&t!=="none";let ht;function Ot(t){const e=D(t)?V(t):t;return z(e.transform)||z(e.translate)||z(e.scale)||z(e.rotate)||z(e.perspective)||!Ct()&&(z(e.backdropFilter)||z(e.filter))||ue.test(e.willChange||"")||de.test(e.contain||"")}function me(t){let e=X(t);for(;k(e)&&!et(e);){if(Ot(e))return e;if(ut(e))return null;e=X(e)}return null}function Ct(){return ht==null&&(ht=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ht}function et(t){return/^(html|body|#document)$/.test(Y(t))}function V(t){return E(t).getComputedStyle(t)}function dt(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function X(t){if(Y(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Pt(t)&&t.host||W(t);return Pt(e)?e.host:e}function _t(t){const e=X(t);return et(e)?(t.ownerDocument||t).body:k(e)&&ft(e)?e:_t(e)}function nt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=_t(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=E(i);if(r){const c=yt(s);return e.concat(s,s.visualViewport||[],ft(i)?i:[],c&&n?nt(c):[])}else return e.concat(i,nt(i,[],n))}function yt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function $t(t){const e=V(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=k(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=st(n)!==r||st(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function At(t){return D(t)?t:t.contextElement}function U(t){const e=At(t);if(!k(e))return M(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=$t(e);let s=(r?st(n.width):n.width)/o,c=(r?st(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ge=M(0);function Nt(t){const e=E(t);
1return!Ct()||!e.visualViewport?ge:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function he(t,e,n){return e===void 0&&(e=!1),!!n&&e&&n===E(t)}function j(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=At(t);let s=M(1);e&&(o?D(o)&&(s=U(o)):s=U(t));const c=he(r,n,o)?Nt(r):M(0);let f=(i.left+c.x)/s.x,l=(i.top+c.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(r&&o){const m=E(r),a=D(o)?E(o):o;let g=m,h=yt(g);for(;h&&a!==g;){const w=U(h),p=h.getBoundingClientRect(),y=V(h),v=p.left+(h.clientLeft+parseFloat(y.paddingLeft))*w.x,b=p.top+(h.clientTop+parseFloat(y.paddingTop))*w.y;f*=w.x,l*=w.y,u*=w.x,d*=w.y,f+=v,l+=b,g=E(h),h=yt(g)}}return lt({width:u,height:d,x:f,y:l})}function mt(t,e){const n=dt(t).scrollLeft;return e?e.left+n:j(W(t)).left+n}function kt(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-mt(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function pe(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=W(o),c=e?ut(e.floating):!1;if(o===s||c&&r)return n;let f={scrollLeft:0,scrollTop:0},l=M(1);const u=M(0),d=k(o);if((d||!r)&&((Y(o)!=="body"||ft(s))&&(f=dt(o)),d)){const a=j(o);l=U(o),u.x=a.x+o.clientLeft,u.y=a.y+o.clientTop}const m=s&&!d&&!r?kt(s,f):M(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-f.scrollLeft*l.x+u.x+m.x,y:n.y*l.y-f.scrollTop*l.y+u.y+m.y}}function we(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function ye(t){const e=dt(t),n=t.ownerDocument.body,o=I(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=I(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let r=-e.scrollLeft+mt(t);const s=-e.scrollTop;return V(n).direction==="rtl"&&(r+=I(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:r,y:s}}const ve=25;function xe(t,e,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",i=E(t),r=W(t),s=i.visualViewport;let c=r.clientWidth,f=r.clientHeight,l=0,u=0;if(s){const m=!Ct()||e==="fixed";o?m||(l=-s.offsetLeft,u=-s.offsetTop):(c=s.width,f=s.height,m&&(l=s.offsetLeft,u=s.offsetTop))}if(mt(r)<=0){const m=r.ownerDocument,a=m.body,g=getComputedStyle(a),h=m.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-a.clientWidth-h),p=getComputedStyle(r).scrollbarGutter==="stable both-edges"?w/2:w;p<=ve&&(c-=p)}return{width:c,height:f,x:l,y:u}}function be(t,e){const n=j(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=U(t),s=t.clientWidth*r.x,c=t.clientHeight*r.y,f=i*r.x,l=o*r.y;return{width:s,height:c,x:f,y:l}}function Tt(t,e,n){let o;if(e==="viewport"||e==="layoutViewport")o=xe(t,n,e);else if(e==="document")o=ye(W(t));else if(D(e))o=be(e,n);else{const i=Nt(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return lt(o)}function Re(t,e){const n=e.get(t);if(n)return n;let o=nt(t,[],!1).filter(c=>D(c)&&Y(c)!=="body"),i=null;const r=V(t).position==="fixed";let s=r?X(t):t;for(;D(s)&&!et(s);){const c=V(s),f=Ot(s),l=i?i.position:r?"fixed":"";!f&&(l==="fixed"||l==="absolute"&&c.position==="static")?o=o.filter(d=>d!==s):i=c,s=X(s)}return e.set(t,o),o}function Oe(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?ut(e)?[]:Re(e,this._c):[].concat(n),o],c=Tt(e,s[0],i);let f=c.top,l=c.right,u=c.bottom,d=c.left;for(let m=1;m<s.length;m++){const a=Tt(e,s[m],i);f=I(a.top,f),l=G(a.right,l),u=G(a.bottom,u),d=I(a.left,d)}return{width:l-d,height:u-f,x:d,y:f}}function Ce(t){const{width:e,height:n}=$t(t);return{width:e,height:n}}function Ae(t,e,n){const o=k(e),i=W(e),r=n==="fixed",s=j(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const f=M(0);if((o||!r)&&((Y(e)!=="body"||ft(i))&&(c=dt(e)),o)){const m=j(e,!0,r,e);f.x=m.x+e.clientLeft,f.y=m.y+e.clientTop}!o&&i&&(f.x=mt(i));const l=i&&!o&&!r?kt(i,c):M(0),u=s.left+c.scrollLeft-f.x-l.x,d=s.top+c.scrollTop-f.y-l.y;return{x:u,y:d,width:s.width,height:s.height}}function pt(t){return V(t).position==="static"}function Dt(t,e){if(!k(t)||V(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return W(t)===n&&(n=n.ownerDocument.body),n}function Bt(t,e){const n=E(t);if(ut(t))return n;if(!k(t)){let i=X(t);for(;i&&!et(i);){if(D(i)&&!pt(i))return i;i=X(i)}return n}let o=Dt(t,e);for(;o&&fe(o)&&pt(o);)o=Dt(o,e);return o&&et(o)&&pt(o)&&!Ot(o)?n:o||me(t)||n}const Ee=async function(t){const e=this.getOffsetParent||Bt,n=this.getDimensions,o=await n(t.floating);return{reference:Ae(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Le(t){return V(t).direction==="rtl"}const Se={convertOffsetParentRelativeRectToViewportRelativeRect:pe,getDocumentElement:W,getClippingRect:Oe,getOffsetParent:Bt,getElementRects:Ee,getClientRects:we,getDimensions:Ce,getScale:U,isElement:D,isRTL:Le};function Ht(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Pe(t,e,n){let o=null,i;const r=W(t);function s(){var u;clearTimeout(i),(u=o)==null||u.disconnect(),o=null}function c(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),s();const m=t.getBoundingClientRect(),{left:a,top:g,width:h,height:w}=m;if(u||e(),!h||!w)return;const p=rt(g),y=rt(r.clientWidth-(a+h)),v=rt(r.clientHeight-(g+w)),b=rt(a),R={rootMargin:-p+"px "+-y+"px "+-v+"px "+-b+"px",threshold:I(0,G(1,d))||1};let x=!0;function O(L){const C=L[0].intersectionRatio;if(!Ht(m,t.getBoundingClientRect()))return c();if(C!==d){if(!x)return c();C?c(!1,C):i=setTimeout(()=>{c(!1,1e-7)},1e3)}x=!1}try{o=new IntersectionObserver(O,{...R,root:r.ownerDocument})}catch{o=new IntersectionObserver(O,R)}o.observe(t)}const f=E(t),l=()=>c(n);return f.addEventListener("resize",l),c(!0),()=>{f.removeEventListener("resize",l),s()}}function Me(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=o,l=At(t),u=i||r?[...l?nt(l):[],...e?nt(e):[]]:[];u.forEach(p=>{i&&p.addEventListener("scroll",n),r&&p.addEventListener("resize",n)});const d=l&&c?Pe(l,n,r):null;let m=-1,a=null;s&&(a=new ResizeObserver(p=>{let[y]=p;y&&y.target===l&&a&&e&&(a.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=a)==null||v.observe(e)})),n()}),l&&!f&&a.observe(l),e&&a.observe(e));let g,h=f?j(t):null;f&&w();function w(){const p=j(t);h&&!Ht(h,p)&&n(),h=p,g=requestAnimationFrame(w)}return n(),()=>{var p;u.forEach(y=>{i&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),d?.(),(p=a)==null||p.disconnect(),a=null,f&&cancelAnimationFrame(g)}}const We=le,_e=ae,$e=re,Te=ie,De=(t,e,n)=>{const o=new Map,i=n??{},r={...Se,...i.platform,_c:o};return oe(t,e,{...i,platform:r})};function Ve(t){return t!=null&&typeof t=="object"&&"$el"in t}function vt(t){if(Ve(t)){const e=t.$el;return Rt(e)&&Y(e)==="#comment"?null:e}return t}function Ne(t){return{name:"arrow",options:t,fn(e){const n=vt(K(t.element));return n==null?{}:Te({element:n,padding:t.padding}).fn(e)}}}function zt(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Vt(t,e){const n=zt(t);return Math.round(e*n)/n}function ke(t,e,n){n===void 0&&(n={});const o=n.whileElementsMounted,i=$(()=>{var x;return(x=K(n.open))!=null?x:!0}),r=$(()=>K(n.middleware)),s=$(()=>{var x;return(x=K(n.placement))!=null?x:"bottom"}),c=$(()=>{var x;return(x=K(n.strategy))!=null?x:"absolute"}),f=$(()=>{var x;return(x=K(n.transform))!=null?x:!0}),l=$(()=>vt(t.value)),u=$(()=>vt(e.value)),d=tt(0),m=tt(0),a=tt(c.value),g=tt(s.value),h=Yt({}),w=tt(!1),p=$(()=>{const x={position:a.value,left:"0",top:"0"};if(!u.value)return x;const O=Vt(u.value,d.value),L=Vt(u.value,m.value);return f.value?{...x,transform:"translate("+O+"px, "+L+"px)",...zt(u.value)>=1.5&&{willChange:"transform"}}
1:{position:a.value,left:O+"px",top:L+"px"}});let y;function v(){if(l.value==null||u.value==null)return;const x=i.value;De(l.value,u.value,{middleware:r.value,placement:s.value,strategy:c.value}).then(O=>{d.value=O.x,m.value=O.y,a.value=O.strategy,g.value=O.placement,h.value=O.middlewareData,w.value=x!==!1})}function b(){typeof y=="function"&&(y(),y=void 0)}function A(){if(b(),o===void 0){v();return}if(l.value!=null&&u.value!=null){y=o(l.value,u.value,v);return}}function R(){i.value||(w.value=!1)}return gt([r,s,c,i],v,{flush:"sync"}),gt([l,u],A,{flush:"sync"}),gt(i,R,{flush:"sync"}),Xt()&&jt(b),{x:q(d),y:q(m),strategy:q(a),placement:q(g),middlewareData:q(h),isPositioned:q(w),floatingStyles:p,update:v}}export{Me as a,Ne as b,$e as f,We as o,_e as s,ke 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.