1import{j as e,tt as t,z as n}from"./Bj8i6imW.js";var r=new Map,i=null,a=null,o=null,s=`--td-scrollbar-compensation`;function c(e,t){let n=e.getPropertyValue;return typeof n==`function`?n.call(e,t)||``:String(e[t]||``)}function l(e,t,n){let r=e.setProperty;if(typeof r==`function`){r.call(e,t,n);return}e[t]=n}function u(e,t,n){if(n){l(e,t,n);return}let r=e.removeProperty;if(typeof r==`function`){r.call(e,t);return}delete e[t]}function d(e){return typeof e==`boolean`?{reserveScrollBarGap:e,lockDocumentElement:!1,freezeScrollPosition:!1}:{reserveScrollBarGap:!!e.reserveScrollBarGap,lockDocumentElement:!!e.lockDocumentElement,freezeScrollPosition:!!e.freezeScrollPosition}}function f(){a===null||typeof document>`u`||(document.documentElement.style.overflow=a,a=null)}function p(e){if(!i||typeof window>`u`||typeof document>`u`)return;e.style.overflow=`hidden`;let t=[...r.values()];if(t.some(({reserveScrollBarGap:e})=>e)){let t=i.scrollbarWidth,n=Number.parseFloat(i.paddingRight||`0`)||0;e.style.paddingRight=t>0?`${n+t}px`:i.paddingRight,l(e.style,s,`${t}px`)}else e.style.paddingRight=i.paddingRight,u(e.style,s,i.scrollbarCompensation);t.some(({lockDocumentElement:e})=>e)?(a===null&&(a=document.documentElement.style.overflow),document.documentElement.style.overflow=`hidden`):f(),(o!==null||t.some(({freezeScrollPosition:e})=>e))&&(o===null&&(o=window.scrollY??window.pageYOffset??0),e.style.position=`fixed`,e.style.top=`-${o}px`,e.style.left=`0`,e.style.right=`0`)}function m(e,t=!1){if(typeof document>`u`||typeof window>`u`)return;let n=document.body;n&&(i||={overflow:n.style.overflow,paddingRight:n.style.paddingRight,scrollbarCompensation:c(n.style,s),scrollbarWidth:Math.max(0,window.innerWidth-document.documentElement.clientWidth),position:n.style.position,top:n.style.top,left:n.style.left,right:n.style.right},r.set(e,d(t)),p(n))}function h(e){if(r.delete(e),typeof document>`u`){r.size===0&&(i=null,a=null,o=null);return}let t=document.body;if(r.size>0){t&&p(t);return}let n=o;t&&i&&(t.style.overflow=i.overflow,t.style.paddingRight=i.paddingRight,u(t.style,s,i.scrollbarCompensation),t.style.position=i.position,t.style.top=i.top,t.style.left=i.left,t.style.right=i.right),f(),i=null,o=null,n!==null&&typeof window<`u`&&window.scrollTo(0,n)}function g(r,i={}){let a=d(i),o=Symbol(`body-scroll-lock`),s=!1,c=0,l=null,u=()=>{c+=1,s||m(o,a)},f=()=>{c+=1,h(o)},p=t=>{let n=++c;e(()=>{s||n!==c||(t?m(o,a):h(o))})};return typeof r==`function`?l=t(r,p,{immediate:!0}):p(!!r),n(()=>{s=!0,c+=1,l?.(),l=null,h(o)}),{lock:u,unlock:f}}export{h as n,g as r,m as t};
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.