PageSourceSearch

https://leap-pro.de/static/floating-ui.dom-DSiK-1bJ.js

js leap-pro.de collected 2026-10-08 20:30:07 UTC 20,455 bytes, 1 lines download raw bytes

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

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.