2 lines
64 KiB
JavaScript
2 lines
64 KiB
JavaScript
|
|
import{ef as qn,i as Me,eg as Ht,dH as et,eh as Tn,dG as _e,ei as Mn,ej as Ut,ek as _n,el as Ln,em as Rn,en as pt,eo as yt,ar as tt,ep as nt,eq as qe,er as rt,es as Nn,et as zt,dI as Kt,eu as Vn,ev as Xt,e6 as Dn,e7 as bt,L as it,M as at,p as O,b as ot,m as Yt,f as P,a as ve,u as Le,t as xe,v as Qt,aU as Zt,a7 as fe,c as L,_ as B,b0 as be,aS as Gn,k as Wn,I as Bn,bA as Hn,O as Un,Q as Te,aR as zn,ew as Jt,r as kt,U as ue,dK as Kn,Z as Xn,$ as Yn,bP as Qn,ad as Zn,ae as Jn,a8 as en,aE as re,aF as Be,dx as lt,e3 as kn,a5 as tn,P as ge,Y as nn,dy as er,dr as tr,bC as nr,dE as rr,cZ as He,A as oe,d as ir,ex as rn,av as ar,ey as or,ez as lr,eA as sr,o as Ae,b1 as pe,b2 as $t,aQ as ur,b3 as ce}from"./index-D1Iea9WN.js";import{d as fr,a as an,s as cr,o as dr,i as on,b as st,e as ln,t as ut,h as mr,g as ft,c as sn,f as gr}from"./hasIn-ChYkMuEo.js";import{q as un,s as vr,p as hr,i as pr,m as yr,t as Ce,l as br,k as $r,v as wr,F as xr,u as Fr,w as Ue}from"./index-DzBb_xhR.js";import{u as Sr}from"./useFlexGapSupport-CX7QqZeC.js";function wt(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function xt(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Ve(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return xt(n.overflowY,t)||xt(n.overflowX,t)||function(r){var i=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch(o){return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(e)}return!1}function Ee(e,t,n,r,i,a,o,l){return a<e&&o>t||a>e&&o<t?0:a<=e&&l<=n||o>=t&&l>=n?a-e-r:o>t&&l<n||a<e&&l>n?o-t+i:0}var Ft=function(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,l=t.skipOverflowHiddenElements,f=typeof o=="function"?o:function(jn){return jn!==o};if(!wt(e))throw new TypeError("Invalid target");for(var p,d,v=document.scrollingElement||document.documentElement,h=[],y=e;wt(y)&&f(y);){if((y=(d=(p=y).parentElement)==null?p.getRootNode().host||null:d)===v){h.push(y);break}y!=null&&y===document.body&&Ve(y)&&!Ve(document.documentElement)||y!=null&&Ve(y,l)&&h.push(y)}for(var $=n.visualViewport?n.visualViewport.width:innerWidth,c=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,F=e.getBoundingClientRect(),s=F.height,u=F.width,g=F.top,x=F.right,A=F.bottom,C=F.left,T=i==="start"||i==="nearest"?g:i==="end"?A:g+s/2,q=a==="center"?C+u/2:a==="end"?x:C,R=[],_=0;_<h.length;_++){var E=h[_],H=E.getBoundingClientRect(),Q=H.height,K=H.width,S=H.top,I=H.right,N=H.bottom,U=H.left;if(r==="if-needed"&&g>=0&&C>=0&&A<=c&&x<=$&&g>=S&&A<=N&&C>=U&&x<=I)return R;var X=getComputedStyle(E),J=parseInt(X.borderLeftWidth,10),ie=parseInt(X.borderTopWidth,10),Z=parseInt(X.borderRightWidth,10),w=parseInt(X.borderBottomWidth,10),j=0,V=0,G="offsetWidth"in E?E.offsetWidth-E.clientWidth-J-Z:0,W="offsetHeight"in E?E.offsetHeight-E.clientHeight-ie-w:0,Y="offsetWidth"in E?E.offsetWidth===0?0:K/E.offsetWidth:0,te="offsetHeight"in E?E.offsetHeight===0?0:Q/E.offsetHeight:0;if(v===E)j=i==="start"?T:i==="end"?T-c:i==="nearest"?Ee(m,m+c,c,ie,w,m+T,m+T+s,s):T-c/2,V=a==="start"?q:a==="center"?q-$/2:a==="end"?q-$:Ee(b,b+$,$,J,Z,b+q,b+q+u,u),j=Math.max(0,j+m),V=Math.max(0,V+b);else{j=i==="start"?T-S-ie:i==="end"?T-N+w+W:i==="nearest"?Ee(S,N,Q,ie,w+W,T,T+s,s):T-(S+Q/2)+W/2,V=a==="start"?q-U-J:a==="center"?q-(U+K/2)+G/2:a==="end"?q-I+Z+G:Ee(U,I,K,J,Z+G,q,q+u,u);var ne=E.scrollLeft,he=E.scrollTop;T+=he-(j=Math.max(0,Math.min(he+j/te,E.scrollHeight-Q/te+W))),q+=ne-(V=Math.max(0,Math.min(ne+V/Y,E.scrollWidth-K/Y+G)))}R.push({el:E,top:j,left:V})}return R};function fn(e){return e===Object(e)&&Object.keys(e).length!==0}function Or(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var i=r.el,a=r.top,o=r.left;i.scroll&&n?i.scroll({top:a,left:o,behavior:t}):(i.scrollTop=a,i.scrollLeft=o)})}function Ar(e){return e===!1?{block:"end",inline:"nearest"}:fn(e)?e:{block:"start",inline:"nearest"}}function
|