prlg-ui 1.8.205 → 1.8.207

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