1(function(){function I(){var d=document.querySelector(".toc-box__content"),E=document.querySelector(".post-article__content");if(!d||!E)return;function B(){var e=document.querySelector(".site-header");if(!e)return 0;var t=e.getBoundingClientRect(),r=Math.ceil(t.height||0);return Math.max(0,r+8)}var c=B();function v(e,t){if(e){var r=window.scrollY||window.pageYOffset||0,n=e.getBoundingClientRect(),i=n.top+r-c;i<0&&(i=0),window.scrollTo({top:i,behavior:t||"auto"})}}function l(e){if(!e||typeof e!="string"||document.getElementById(e))return e;var t=e.match(/^(.*)--([0-9a-f]{2}(?:-[0-9a-f]{2})+)$/i);if(t){var r=t[1],n=t[2].split("-"),i=n.map(function(w){return"%"+w.toLowerCase()}).join(""),u=r+i;if(document.getElementById(u))return u}return e}var h=Array.prototype.slice.call(d.querySelectorAll('a[href^="#"]'));if(h.length===0)return;var g=new Map;h.forEach(function(e){try{var t=e.getAttribute("href").slice(1),r=decodeURIComponent(t);r=l(r),g.set(r,e)}catch(n){}});var o=[];if(g.forEach(function(e,t){var r=document.getElementById(t);r&&o.push(r)}),o.length===0&&(o=Array.prototype.slice.call(E.querySelectorAll("h2, h3, h4"))),o.length===0)return;function a(e){h.forEach(function(n){n.classList.remove("is-active");var i=n.closest(".toc-item");i&&i.classList.remove("is-active")});var t=g.get(e);if(t){t.classList.add("is-active");var r=t.closest(".toc-item");r&&r.classList.add("is-active")}}var b=(location.hash||"").replace(/^#/,""),s=l(b);s&&document.getElementById(s)?(a(s),v(document.getElementById(s),"auto")):o[0]&&o[0].id&&a(o[0].id);var m=!1;function p(){m||(m=!0,requestAnimationFrame(function(){for(var e=window.scrollY||window.pageYOffset||0,t=null,r=c||0,n=0;n<o.length;n++){var i=o[n],u=i.getBoundingClientRect(),w=u.top+e;if(w-r<=e+1)t=i.id;else break}t&&a(t),m=!1}))}var f=null;function L(){if("IntersectionObserver"in window){f&&f.disconnect();var e=null;f=new IntersectionObserver(function(t){t.forEach(function(r){r.isIntersecting&&(e=r.target.id)}),e&&a(e)},{rootMargin:"-"+String(c||0)+"px 0px -60% 0px",threshold:[0,1]}),o.forEach(function(t){t.id&&f.observe(t)})}}L(),window.addEventListener("scroll",p,{passive:!0}),p(),window.addEventListener("hashchange",function(){var e=(location.hash||"").replace(/^#/,""),t=l(e);if(t){a(t);var r=document.getElementById(t);r&&v(r,"auto")}});var y=!1;window.addEventListener("resize",function(){y||(y=!0,requestAnimationFrame(function(){y=!1,c=B(),L(),p()}))}),d.addEventListener("click",function(e){var t=e.target.closest('a[href^="#"]');if(t){var r=decodeURIComponent(t.getAttribute("href").slice(1));r=l(r);var n=document.getElementById(r);n&&(e.preventDefault(),v(n,"smooth"),a(r),history.replaceState(null,"","#"+encodeURIComponent(r)))}})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",I):I()})();
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.