PageSourceSearch

https://tsn.ua/static/build/js/chunks/NavOverflow.DNHy0wWq.js

js tsn.ua collected 2026-09-24 07:01:52 UTC 1,803 bytes, 1 lines download raw bytes

1var g=e=>{throw TypeError(e)};var q=(e,i,s)=>i.has(e)||g("Cannot "+s);var t=(e,i,s)=>(q(e,i,"read from private field"),s?s.call(e):i.get(e)),r=(e,i,s)=>i.has(e)?g("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),o=(e,i,s,a)=>(q(e,i,"write to private field"),a?a.call(e,s):i.set(e,s),s);var d,p,l,u,h,c,n,w,v;class T{constructor(){r(this,d,[]);r(this,p,0);r(this,l);r(this,u,null);r(this,h,null);r(this,c,null);r(this,n,document.querySelectorAll("[data-nav-link]"));r(this,w,()=>{this.update(),t(this,l)!==void 0&&clearTimeout(t(this,l))});r(this,v,()=>{t(this,l)!==void 0&&clearTimeout(t(this,l)),o(this,l,window.setTimeout(t(this,w),60))});o(this,u,document.querySelector("[data-nav]")),t(this,u)&&(o(this,h,t(this,u).querySelector("[data-nav-list]")),o(this,c,t(this,u).querySelector("[data-nav-more]")),!(!t(this,h)||!t(this,c))&&(o(this,n,t(this,h).querySelectorAll("[data-nav-link]")),this.init()))}init(){t(this,n).forEach(i=>{t(this,d).push({el:i,width:i.getBoundingClientRect().width})}),this.update(),window.addEventListener("resize",t(this,v))}update(){if(!t(this,h)||!t(this,c))return;o(this,p,t(this,h).offsetWidth);const i=[],s=[];let a=0,E=!1;t(this,d).forEach(f=>{a+f.width<=t(this,p)&&!E?(i.push(f),a+=f.width):(s.push(f),E=!0)}
1),i.forEach((f,m)=>{m>=t(this,h).children.length&&t(this,h).append(t(this,n)[m])}),s.forEach((f,m)=>{const y=t(this,d).length-1-m;m<s.length&&t(this,c).prepend(t(this,n)[y])})}kill(){o(this,d,[]),t(this,n).forEach((i,s)=>{var a;(a=t(this,h))==null||a.append(t(this,n)[s])}),t(this,l)!==void 0&&clearTimeout(t(this,l)),window.removeEventListener("resize",t(this,v))}}d=new WeakMap,p=new WeakMap,l=new WeakMap,u=new WeakMap,h=new WeakMap,c=new WeakMap,n=new WeakMap,w=new WeakMap,v=new WeakMap;export{T as default};

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.