1class a extends HTMLElement{constructor(){super();const c=this.getAttribute("open-default")==="true";this.querySelectorAll("[data-accordion-item]").forEach((e,t)=>{if(e.querySelector("button").addEventListener("click",this.handleOnClick.bind(this)),t===0&&c){const i=e.querySelector("[content]");e.classList.add("active"),i.style.maxHeight=`${i.scrollHeight}px`}})}handleOnClick(c){const e=c.target.closest("[data-accordion-item]"),t=e.querySelector("[content]");this.querySelector("[data-accordion-item].active")&&this.querySelector("[data-accordion-item].active")===e?(e.classList.remove("active"),t.style.maxHeight="0px"):this.querySelector("[data-accordion-item].active")?(this.querySelector("[data-accordion-item].active").classList.remove("active"),e.classList.add("active"),t.style.maxHeight=`${t.scrollHeight}px`):(e.classList.add("active"),t.style.maxHeight=`${t.scrollHeight}px`)}closeAll(){this.querySelectorAll("[data-accordion-item]").forEach(c=>{c.classList.remove("active"),c.querySelector("[content]").style.maxHeight="0px"})}}customElements.define("accordion-items",a);
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.