vendor: 4,341 bytes, lines 1-8
1// @floating-ui/[email protected] â self-contained ESM bundle (all sub-deps inlined). 2// Vendored, not CDN-pinned: this loads on every page (dropdown/tooltip 3// controllers in the layout), so we self-host rather than depend on a CDN 4// at runtime. jsDelivr's /+esm splits sub-deps into root-absolute /npm/ 5// imports that 404 against our origin; esm.sh's ?bundle inlines them. 6// Re-generate on version bump: curl -s 'https://esm.sh/@floating-ui/[email protected]/es2022/dom.bundle.mjs' (prepend this header). 7/* esm.sh - @floating-ui/[email protected] */ 8var xt=["top","right","bottom","left"],Rt=["start","end"],yt=xt.reduce((t,e)=>t.concat(e,e+"-"+Rt[0],e+"-"+Rt[1]),[]),B=Math.min,P=Math.max,st=Math.round,rt=Math.floor,j=t=>({x:t,y:t}),ie={left:"right",right:"left",bottom:"top",top:"bottom"},se={start:"end",end:"start"};function at(t,e,n){return P(t,B(e,n))}function H(t,e){return typeof t=="function"?t(e):t}function D(t){return t.split("-")[0]}function $(t){return t.split("-")[1]}function ft(t){return t==="x"?"y":"x"}function ut(t){return t==="y"?"height":"width"}var re=new Set(["top","bottom"]);function V(t){return re.has(D(t))?"y":"x"}function dt(t){return ft(V(t))}function vt(t,e,n){n===void 0&&(n=!1);let o=$(t),i=dt(t),s=ut(i),r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=it(r)),[r,it(r)]}function Pt(t){let e=it(t);return[ot(t),e,ot(e)]}function ot(t){return t.replace(/start|end/g,e=>se[e])}var Ct=["left","right"],St=["right","left"],ce=["top","bottom"],le=["bottom","top"];function ae(t,e,n){switch(t){case"top":case"bottom":return n?e?St:Ct:e?Ct:St;case"left":case"right":return e?ce:le;default:return[]}}function Tt(t,e,n,o){let i=$(t),s=ae(D(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(ot)))),s}function it(t){return t.replace(/left|right|bottom|top/g,e=>ie[e])}function fe(t){return{top:0,right:0,bottom:0,left:0,...t}}function mt(t){return typeof t!="number"?fe(t):{top:t,right:t,bottom:t,left:t}}function q(t){let{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 Et(t,e,n){let{reference:o,floating:i}=t,s=V(e),r=dt(e),c=ut(r),a=D(e),f=s==="y",d=o.x+o.width/2-i.width/2,l=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2,u;switch(a){case"top":u={x:d,y:o.y-i.height};break;case"bottom":u={x:d,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:l};break;case"left":u={x:o.x-i.width,y:l};break;default:u={x:o.x,y:o.y}}switch($(e)){case"start":u[r]-=m*(n&&f?-1:1);break;case"end":u[r]+=m*(n&&f?-1:1);break}return u}var Ft=async(t,e,n)=>{let{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,c=s.filter(Boolean),a=await(r.isRTL==null?void 0:r.isRTL(e)),f=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:l}=Et(f,o,a),m=o,u={},g=0;for(let h=0;h<c.length;h++){let{name:p,fn:w}=c[h],{x,y,data:A,reset:v}=await w({x:d,y:l,initialPlacement:o,placement:m,strategy:i,middlewareData:u,rects:f,platform:r,elements:{reference:t,floating:e}});d=x??d,l=y??l,u={...u,[p]:{...u[p],...A}},v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(f=v.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:d,y:l}=Et(f,m,a)),h=-1)}return{x:d,y:l,placement:m,strategy:i,middlewareData:u}};async function G(t,e){var n;e===void 0&&(e={});let{x:o,y:i,platform:s,rects:r,elements:c,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:l="floating",altBoundary:m=!1,padding:u=0}=H(e,t),g=mt(u),p=c[m?l==="floating"?"reference":"floating":l],w=q(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(c.floating)),boundary:f,rootBoundary:d,strategy:a})),x=l==="floating"?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.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},v=q(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:y,strategy:a}):x);return{top:(w.top-v.top+g.top)/A.y,bottom:(v.bottom-w.bottom+g.bottom)/A.y,left
8:(w.left-v.left+g.left)/A.x,right:(v.right-w.right+g.right)/A.x}}var Mt=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:o,placement:i,rects:s,platform:r,elements:c,middlewareData:a}=e,{element:f,padding:d=0}=H(t,e)||{};if(f==null)return{};let l=mt(d),m={x:n,y:o},u=dt(i),g=ut(u),h=await r.getDimensions(f),p=u==="y",w=p?"top":"left",x=p?"bottom":"right",y=p?"clientHeight":"clientWidth",A=s.reference[g]+s.reference[u]-m[u]-s.floating[g],v=m[u]-s.reference[u],R=await(r.getOffsetParent==null?void 0:r.getOffsetParent(f)),O=R?R[y]:0;(!O||!await(r.isElement==null?void 0:r.isElement(R)))&&(O=c.floating[y]||s.floating[g]);let N=A/2-v/2,T=O/2-h[g]/2-1,b=B(l[w],T),C=B(l[x],T),E=b,L=O-h[g]-C,S=O/2-h[g]/2+N,I=at(E,S,L),W=!a.arrow&&$(i)!=null&&S!==I&&s.reference[g]/2-(S<E?b:C)-h[g]/2<0,M=W?S<E?S-E:S-L:0;return{[u]:m[u]+M,data:{[u]:I,centerOffset:S-I-M,...W&&{alignmentOffset:M}},reset:W}}});function ue(t,e,n){return(t?[...n.filter(i=>$(i)===t),...n.filter(i=>$(i)!==t)]:n.filter(i=>D(i)===i)).filter(i=>t?$(i)===t||(e?ot(i)!==i:!1):!0)}var kt=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,i;let{rects:s,middlewareData:r,placement:c,platform:a,elements:f}=e,{crossAxis:d=!1,alignment:l,allowedPlacements:m=yt,autoAlignment:u=!0,...g}=H(t,e),h=l!==void 0||m===yt?ue(l||null,u,m):m,p=await G(e,g),w=((n=r.autoPlacement)==null?void 0:n.index)||0,x=h[w];if(x==null)return{};let y=vt(x,s,await(a.isRTL==null?void 0:a.isRTL(f.floating)));if(c!==x)return{reset:{placement:h[0]}};let A=[p[D(x)],p[y[0]],p[y[1]]],v=[...((o=r.autoPlacement)==null?void 0:o.overflows)||[],{placement:x,overflows:A}],R=h[w+1];if(R)return{data:{index:w+1,overflows:v},reset:{placement:R}};let O=v.map(b=>{let C=$(b.placement);return[b.placement,C&&d?b.overflows.slice(0,2).reduce((E,L)=>E+L,0):b.overflows[0],b.overflows]}).sort((b,C)=>b[1]-C[1]),T=((i=O.filter(b=>b[2].slice(0,$(b[0])?2:3).every(C=>C<=0))[0])==null?void 0:i[0])||O[0][0];return T!==c?{data:{index:w+1,overflows:v},reset:{placement:T}}:{}}}},Bt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;let{placement:i,middlewareData:s,rects:r,initialPlacement:c,platform:a,elements:f}=e,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:m,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...p}=H(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};let w=D(i),x=V(c),y=D(c)===c,A=await(a.isRTL==null?void 0:a.isRTL(f.floating)),v=m||(y||!h?[it(c)]:Pt(c)),R=g!=="none";!m&&R&&v.push(...Tt(c,h,g,A));let O=[c,...v],N=await G(e,p),T=[],b=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&T.push(N[w]),l){let S=vt(i,r,A);T.push(N[S[0]],N[S[1]])}if(b=[...b,{placement:i,overflows:T}],!T.every(S=>S<=0)){var C,E;let S=(((C=s.flip)==null?void 0:C.index)||0)+1,I=O[S];if(I&&(!(l==="alignment"?x!==V(I):!1)||b.every(k=>V(k.placement)===x?k.overflows[0]>0:!0)))return{data:{index:S,overflows:b},reset:{placement:I}};let W=(E=b.filter(M=>M.overflows[0]<=0).sort((M,k)=>M.overflows[1]-k.overflows[1])[0])==null?void 0:E.placement;if(!W)switch(u){case"bestFit":{var L;let M=(L=b.filter(k=>{if(R){let U=V(k.placement);return U===x||U==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(U=>U>0).reduce((U,oe)=>U+oe,0)]).sort((k,U)=>k[1]-U[1])[0])==null?void 0:L[0];M&&(W=M);break}case"initialPlacement":W=c;break}if(i!==W)return{reset:{placement:W}}}return{}}}};function Lt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Dt(t){return xt.some(e=>t[e]>=0)}var Nt=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:o="referenceHidden",...i}=H(t,e);switch(o){case"referenceHidden":{let s=await G(e,{...i,elementContext:"reference"}),r=Lt(s,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Dt(r)}}}case"escaped":{let s=await G(e,{...i,altBoundary:!0}),r=Lt(s,n.floating);return{data:{escapedOffsets:r,escaped:Dt(r)}}}default:return{}}}}};function Wt(t){let e=B(...t.map(s=>s.left)),n=B(...t.map(s=>s.top)),o=P(...t.map(s=>s.right)),i=P(...t.map(s=>s.bottom));return{x:e,y:n,width:o-e,height:i-n}}function de(t){let e=t.slice().sort((i,s)=>i.y-s.y),n=[],o=null;for(let i=0;i<e.length;i++){let s=e[i];!o||s.y-o.y>o.height/2?n.push([s]):n[n.length-1].push(s),o=s}return n.map(i=>q(Wt(i)))}var Ht=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){let{placement:n,elements:o,rects:i,platform:s,strategy:r}=e,{padding:c=2,x:a,y:f}=H(t,e),d=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(o.reference))||[]),l=de(d),m=q(Wt(d)),u=mt(c);function g(){if(l.length===2&&l[0].left>l[1].right&&a!=null&&f!=null)return l.find(p=>a>p.left-u.left&&a<p.right+u.right&&f>p.top-u.top&&f<p.bottom+u.bottom)||m;if(l.length>=2){if(V(n)==="y"){let b=l[0],C=l[l.length-1],E=D(n)==="top",L=b.top,S=C.bottom,I=E?b.left:C.left,W=E?b.right:C.right,M=W-I,k=S-L;return{top:L,bottom:S,left:I,right:W,width:M,height:k,x:I,y:L}}let p=D(n)==="left",w=P(...l.map(b=>b.right)),x=B(...l.map(b=>b.left)),y=l.filter(b=>p?b.left===x:b.right===w),A=y[0].top,v=y[y.length-1].bottom,R=x,O=w,N=O-R,T=v-A;return{top:A,bottom:v,left:R,right:O,width:N,height:T,x:R,y:A}}return m}let h=await s.getElementRects({reference:{getBoundingClientRect:g},floating:o.floating,strategy:r});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},$t=new Set(["left","top"]);async function me(t,e){let{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=D(n),c=$(n),a=V(n)==="y",f=$t.has(r)?-1:1,d=s&&a?-1:1,l=H(e,t),{mainAxis:m,crossAxis:u,alignmentAxis:g}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}
vendor: 4,892 bytes, line 8
8:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return c&&typeof g=="number"&&(u=c==="end"?g*-1:g),a?{x:u*d,y:m*f}:{x:m*f,y:u*d}}var Vt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;let{x:i,y:s,placement:r,middlewareData:c}=e,a=await me(e,t);return r===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+a.x,y:s+a.y,data:{...a,placement:r}}}}},zt=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:c={fn:p=>{let{x:w,y:x}=p;return{x:w,y:x}}},...a}=H(t,e),f={x:n,y:o},d=await G(e,a),l=V(D(i)),m=ft(l),u=f[m],g=f[l];if(s){let p=m==="y"?"top":"left",w=m==="y"?"bottom":"right",x=u+d[p],y=u-d[w];u=at(x,u,y)}if(r){let p=l==="y"?"top":"left",w=l==="y"?"bottom":"right",x=g+d[p],y=g-d[w];g=at(x,g,y)}let h=c.fn({...e,[m]:u,[l]:g});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:s,[l]:r}}}}}},_t=function(t){return t===void 0&&(t={}),{options:t,fn(e){let{x:n,y:o,placement:i,rects:s,middlewareData:r}=e,{offset:c=0,mainAxis:a=!0,crossAxis:f=!0}=H(t,e),d={x:n,y:o},l=V(i),m=ft(l),u=d[m],g=d[l],h=H(c,e),p=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){let y=m==="y"?"height":"width",A=s.reference[m]-s.floating[y]+p.mainAxis,v=s.reference[m]+s.reference[y]-p.mainAxis;u<A?u=A:u>v&&(u=v)}if(f){var w,x;let y=m==="y"?"width":"height",A=$t.has(D(i)),v=s.reference[l]-s.floating[y]+(A&&((w=r.offset)==null?void 0:w[l])||0)+(A?0:p.crossAxis),R=s.reference[l]+s.reference[y]+(A?0:((x=r.offset)==null?void 0:x[l])||0)-(A?p.crossAxis:0);g<v?g=v:g>R&&(g=R)}return{[m]:u,[l]:g}}}},It=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;let{placement:i,rects:s,platform:r,elements:c}=e,{apply:a=()=>{},...f}=H(t,e),d=await G(e,f),l=D(i),m=$(i),u=V(i)==="y",{width:g,height:h}=s.floating,p,w;l==="top"||l==="bottom"?(p=l,w=m===(await(r.isRTL==null?void 0:r.isRTL(c.floating))?"start":"end")?"left":"right"):(w=l,p=m==="end"?"top":"bottom");let x=h-d.top-d.bottom,y=g-d.left-d.right,A=B(h-d[p],x),v=B(g-d[w],y),R=!e.middlewareData.shift,O=A,N=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(N=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(O=x),R&&!m){let b=P(d.left,0),C=P(d.right,0),E=P(d.top,0),L=P(d.bottom,0);u?N=g-2*(b!==0||C!==0?b+C:P(d.left,d.right)):O=h-2*(E!==0||L!==0?E+L:P(d.top,d.bottom))}await a({...e,availableWidth:N,availableHeight:O});let T=await r.getDimensions(c.floating);return g!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function gt(){return typeof window<"u"}function Q(t){return Yt(t)?(t.nodeName||"").toLowerCase():"#document"}function F(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Y(t){var e;return(e=(Yt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Yt(t){return gt()?t instanceof Node||t instanceof F(t).Node:!1}function z(t){return gt()?t instanceof Element||t instanceof F(t).Element:!1}function X(t){return gt()?t instanceof HTMLElement||t instanceof F(t).HTMLElement:!1}function jt(t){return!gt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof F(t).ShadowRoot}var ge=new Set(["inline","contents"]);function et(t){let{overflow:e,overflowX:n,overflowY:o,display:i}=_(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!ge.has(i)}var he=new Set(["table","td","th"]);function Xt(t){return he.has(Q(t))}var pe=[":popover-open",":modal"];function ct(t){return pe.some(e=>{try{return t.matches(e)}catch{return!1}})}var we=["transform","translate","scale","rotate","perspective"],xe=["transform","translate","scale","rotate","perspective","filter"],ye=["paint","layout","strict","content"];function ht(t){let e=pt(),n=z(t)?_(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 qt(t){let e=K(t);for(;X(e)&&!Z(e);){if(ht(e))return e;if(ct(e))return null;e=K(e)}return null}function pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var ve=new Set(["html","body","#document"]);function Z(t){return ve.has(Q(t))}function _(t){return F(t).getComputedStyle(t)}function lt(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(Q(t)==="html")return t;let e=t.assignedSlot||t.parentNode||jt(t)&&t.host||Y(t);return jt(e)?e.host:e}function Kt(t){let e=K(t);return Z(e)?t.ownerDocument?t.ownerDocument.body:t.body:X(e)&&et(e)?e:Kt(e)}function J(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);let i=Kt(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=F(i);if(s){let c=wt(r);
vendor: 5,544 bytes, line 8
8return e.concat(r,r.visualViewport||[],et(i)?i:[],c&&n?J(c):[])}return e.concat(i,J(i,[],n))}function wt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Jt(t){let e=_(t),n=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=X(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,c=st(n)!==s||st(o)!==r;return c&&(n=s,o=r),{width:n,height:o,$:c}}function At(t){return z(t)?t:t.contextElement}function nt(t){let e=At(t);if(!X(e))return j(1);let n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Jt(e),r=(s?st(n.width):n.width)/o,c=(s?st(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}var be=j(0);function Qt(t){let e=F(t);return!pt()||!e.visualViewport?be:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ae(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==F(t)?!1:e}function tt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);let i=t.getBoundingClientRect(),s=At(t),r=j(1);e&&(o?z(o)&&(r=nt(o)):r=nt(t));let c=Ae(s,n,o)?Qt(s):j(0),a=(i.left+c.x)/r.x,f=(i.top+c.y)/r.y,d=i.width/r.x,l=i.height/r.y;if(s){let m=F(s),u=o&&z(o)?F(o):o,g=m,h=wt(g);for(;h&&o&&u!==g;){let p=nt(h),w=h.getBoundingClientRect(),x=_(h),y=w.left+(h.clientLeft+parseFloat(x.paddingLeft))*p.x,A=w.top+(h.clientTop+parseFloat(x.paddingTop))*p.y;a*=p.x,f*=p.y,d*=p.x,l*=p.y,a+=y,f+=A,g=F(h),h=wt(g)}}return q({width:d,height:l,x:a,y:f})}function Ot(t,e){let n=lt(t).scrollLeft;return e?e.left+n:tt(Y(t)).left+n}function Zt(t,e,n){n===void 0&&(n=!1);let o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:Ot(t,o)),s=o.top+e.scrollTop;return{x:i,y:s}}function Oe(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t,s=i==="fixed",r=Y(o),c=e?ct(e.floating):!1;if(o===r||c&&s)return n;let a={scrollLeft:0,scrollTop:0},f=j(1),d=j(0),l=X(o);if((l||!l&&!s)&&((Q(o)!=="body"||et(r))&&(a=lt(o)),X(o))){let u=tt(o);f=nt(o),d.x=u.x+o.clientLeft,d.y=u.y+o.clientTop}let m=r&&!l&&!s?Zt(r,a,!0):j(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+d.x+m.x,y:n.y*f.y-a.scrollTop*f.y+d.y+m.y}}function Re(t){return Array.from(t.getClientRects())}function Ce(t){let e=Y(t),n=lt(t),o=t.ownerDocument.body,i=P(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=P(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),r=-n.scrollLeft+Ot(t),c=-n.scrollTop;return _(o).direction==="rtl"&&(r+=P(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:c}}function Se(t,e){let n=F(t),o=Y(t),i=n.visualViewport,s=o.clientWidth,r=o.clientHeight,c=0,a=0;if(i){s=i.width,r=i.height;let f=pt();(!f||f&&e==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:s,height:r,x:c,y:a}}var Pe=new Set(["absolute","fixed"]);function Te(t,e){let n=tt(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=X(t)?nt(t):j(1),r=t.clientWidth*s.x,c=t.clientHeight*s.y,a=i*s.x,f=o*s.y;return{width:r,height:c,x:a,y:f}}function Ut(t,e,n){let o;if(e==="viewport")o=Se(t,n);else if(e==="document")o=Ce(Y(t));else if(z(e))o=Te(e,n);else{let i=Qt(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return q(o)}function te(t,e){let n=K(t);return n===e||!z(n)||Z(n)?!1:_(n).position==="fixed"||te(n,e)}function Ee(t,e){let n=e.get(t);if(n)return n;let o=J(t,[],!1).filter(c=>z(c)&&Q(c)!=="body"),i=null,s=_(t).position==="fixed",r=s?K(t):t;for(;z(r)&&!Z(r);){let c=_(r),a=ht(r);!a&&c.position==="fixed"&&(i=null),(s?!a&&!i:!a&&c.position==="static"&&!!i&&Pe.has(i.position)||et(r)&&!a&&te(t,r))?o=o.filter(d=>d!==r):i=c,r=K(r)}return e.set(t,o),o}function Le(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t,r=[...n==="clippingAncestors"?ct(e)?[]:Ee(e,this._c):[].concat(n),o],c=r[0],a=r.reduce((f,d)=>{let l=Ut(e,d,i);return f.top=P(l.top,f.top),f.right=B(l.right,f.right),f.bottom=B(l.bottom,f.bottom),f.left=P(l.left,f.left),f},Ut(e,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function De(t){let{width:e,height:n}=Jt(t);return{width:e,height:n}}function Fe(t,e,n){let o=X(e),i=Y(e),s=n==="fixed",r=tt(t,!0,s,e),c={scrollLeft:0,scrollTop:0},a=j(0);function f(){a.x=Ot(i)}if(o||!o&&!s)if((Q(e)!=="body"||et(i))&&(c=lt(e)),o){let u=tt(e,!0,s,e);a.x=u.x+e.clientLeft,a.y=u.y+e.clientTop}else i&&f();s&&!o&&i&&f();let d=i&&!o&&!s?Zt(i,c):j(0),l=r.left+c.scrollLeft-a.x-d.x,m=r.top+c.scrollTop-a.y-d.y;return{x:l,y:m,width:r.width,height:r.height}}function bt(t){return _(t).position==="static"}function Gt(t,e){if(!X(t)||_(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Y(t)===n&&(n=n.ownerDocument.body),n}function ee(t,e){let n=F(t);if(ct(t))return n;if(!X(t)){let i=K(t);for(;i&&!Z(i);){if(z(i)&&!bt(i))return i;i=K(i)}return n}let o=Gt(t,e);for(;o&&Xt(o)&&bt(o);)o=Gt(o,e);return o&&Z(o)&&bt(o)&&!ht(o)?n:o||qt(t)||n}var Me=async function(t){let e=this.getOffsetParent||ee,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 _(t).direction==="rtl"}var Be={convertOffsetParentRelativeRectToViewportRelativeRect:Oe,getDocumentElement:Y,getClippingRect:Le,getOffsetParent:ee,getElementRects:Me,getClientRects:Re,getDimensions:De,getScale:nt,isElement:z,isRTL:ke};function ne(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ne(t,e){let n=null,o,i=Y(t);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function r(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),s();let f=t.getBoundingClientRect(),{left:d,top:l,width:m,height:u}=f;
vendor: 1,738 bytes, lines 8-9
8if(c||e(),!m||!u)return;let g=rt(l),h=rt(i.clientWidth-(d+m)),p=rt(i.clientHeight-(l+u)),w=rt(d),y={rootMargin:-g+"px "+-h+"px "+-p+"px "+-w+"px",threshold:P(0,B(1,a))||1},A=!0;function v(R){let O=R[0].intersectionRatio;if(O!==a){if(!A)return r();O?r(!1,O):o=setTimeout(()=>{r(!1,1e-7)},1e3)}O===1&&!ne(f,t.getBoundingClientRect())&&r(),A=!1}try{n=new IntersectionObserver(v,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(v,y)}n.observe(t)}return r(!0),s}function Ye(t,e,n,o){o===void 0&&(o={});let{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,f=At(t),d=i||s?[...f?J(f):[],...J(e)]:[];d.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});let l=f&&c?Ne(f,n):null,m=-1,u=null;r&&(u=new ResizeObserver(w=>{let[x]=w;x&&x.target===f&&u&&(u.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=u)==null||y.observe(e)})),n()}),f&&!a&&u.observe(f),u.observe(e));let g,h=a?tt(t):null;a&&p();function p(){let w=tt(t);h&&!ne(h,w)&&n(),h=w,g=requestAnimationFrame(p)}return n(),()=>{var w;d.forEach(x=>{i&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),l?.(),(w=u)==null||w.disconnect(),u=null,a&&cancelAnimationFrame(g)}}var Xe=G,qe=Vt,Ke=kt,Ue=zt,Ge=Bt,Je=It,Qe=Nt,Ze=Mt,tn=Ht,en=_t,nn=(t,e,n)=>{let o=new Map,i={platform:Be,...n},s={...i.platform,_c:o};return Ft(t,e,{...i,platform:s})};export{Ze as arrow,Ke as autoPlacement,Ye as autoUpdate,nn as computePosition,Xe as detectOverflow,Ge as flip,J as getOverflowAncestors,Qe as hide,tn as inline,en as limitShift,qe as offset,Be as platform,Ue as shift,Je as size}; 9
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.