|
|
import{n as e}from"./chunk-jRWAZmH_.js";import{Bt as t,Vt as n,zt as r}from"./axios-DOscJEDN.js";function i(e){var r=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,i=document.createElement(`div`);i.id=r;var a=i.style;a.position=`absolute`,a.left=`0`,a.top=`0`,a.width=`100px`,a.height=`100px`,a.overflow=`scroll`;var o,s;if(e){var c=getComputedStyle(e);a.scrollbarColor=c.scrollbarColor,a.scrollbarWidth=c.scrollbarWidth;var l=getComputedStyle(e,`::-webkit-scrollbar`),u=parseInt(l.width,10),d=parseInt(l.height,10);try{n(`
|
|
|
#${r}::-webkit-scrollbar {
|
|
|
${u?`width: ${l.width};`:``}
|
|
|
${d?`height: ${l.height};`:``}
|
|
|
}`,r)}catch(e){console.error(e),o=u,s=d}}document.body.appendChild(i);var f=e&&o&&!isNaN(o)?o:i.offsetWidth-i.clientWidth,p=e&&s&&!isNaN(s)?s:i.offsetHeight-i.clientHeight;return document.body.removeChild(i),t(r),{width:f,height:p}}function a(e){return typeof document>`u`?0:((e||s===void 0)&&(s=i()),s.width)}function o(e){return typeof document>`u`||!e||!(e instanceof Element)?{width:0,height:0}:i(e)}var s,c=e((()=>{r()}));export{o as n,c as r,a as t};
|