1var t,e,s,i,a,n,h,r,l,o,c,d,p,m,u,w,f=t=>{throw TypeError(t)},v=(t,e,s)=>e.has(t)||f("Cannot "+s),y=(t,e,s)=>(v(t,e,"read from private field"),s?s.call(t):e.get(t)),b=(t,e,s)=>e.has(t)?f("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),k=(t,e,s,i)=>(v(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),W=(t,e,s)=>(v(t,e,"access private method"),s);import{B as g}from"./BaseElement.wji90fuE.min.js";import"./vendor-lit.2u3dzq2T.min.js";class E extends g{constructor(){super(...arguments),b(this,l),b(this,t,new ResizeObserver(()=>W(this,l,o).call(this))),b(this,e,0),b(this,s,10),b(this,i,100),b(this,a,!1),b(this,n,!1),b(this,h,()=>W(this,l,d).call(this)),b(this,r,0)}firstUpdated(s){super.firstUpdated(s),W(this,l,o).call(this),this.style.transition="transform 0.3s ease-in-out",this.style.transformStyle="preserve-3d",this.style.backfaceVisibility="hidden",this.style.willChange="transform",y(this,t).observe(this),k(this,e,window.scrollY),W(this,l,p).call(this,window.scrollY<y(this,i)),window.addEventListener("scroll",y(this,h),{passive:!0})}disconnectedCallback(){y(this,t).disconnect(),window.removeEventListener("scroll",y(this,h)),super.disconnectedCallback()}}t=new WeakMap,e=new WeakMap,s=new WeakMap,i=new WeakMap,a=new WeakMap,n=new WeakMap,h=new WeakMap,r=new WeakMap,l=new WeakSet,o=function(){k(this,r,this.clientHeight),document.documentElement.style.setProperty("--header-height",`${y(this,r)}px`),y(this,n)||W(this,l,c).call(this,!0)},c=function(t){const e=t?y(this,r):0;document.documentElement.style.setProperty("--header-visible-height",`${e}px`),this.setAttribute("data-header-visible",String(t))},d=function(){y(this,a)||(k(this,a,!0),requestAnimationFrame(()=>{const t=window.scrollY;if(W(this,l,m).call(this))return W(this,l,w).call(this),void k(this,a,!1);W(this,l,p).call(this,t<y(this,i));const n=Math.abs(t-y(this,e)),h=t>y(this,e),r=t<y(this,i);n<y(this,s)||(r?W(this,l,w).call(this):h?W(this,l,u).call(this):W(this,l,w).call(this),k(this,e,t)),
1k(this,a,!1)}))},p=function(t){const e=String(t);this.getAttribute("data-at-top")!==e&&this.setAttribute("data-at-top",e)},m=function(){return!!document.querySelector('dialog[open], details[open][data-search], [aria-expanded="true"]')},u=function(){y(this,n)||(k(this,n,!0),this.style.transform=`translate3d(0, -${y(this,r)}px, 0)`,this.style.pointerEvents="none",W(this,l,c).call(this,!1))},w=function(){y(this,n)&&(k(this,n,!1),this.style.transform="translate3d(0, 0, 0)",this.style.pointerEvents="",W(this,l,c).call(this,!0))},window.customElements.define("main-header",E);export{E as MainHeader};
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.