1import{onIdle}from"@theme/global-utilities";export class Component extends HTMLElement{refs={};#e=new MutationObserver(e=>{e.some(e=>"attributes"===e.type&&this.#t(e.target)||"childList"===e.type&&[...e.addedNodes,...e.removedNodes].some(e=>e instanceof Element&&this.#t(e)))&&this.#s()});connectedCallback(){this.#s(),onIdle(()=>{this.#e.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["ref"]})})}disconnectedCallback(){this.#e.disconnect()}#t(e){let t=e.parentElement;for(;t&&t!==this;){if(t instanceof Component)return!1;t=t.parentElement}return t===this}#s(){const e={};for(const t of this.querySelectorAll("[ref]")){if(!this.#t(t))continue;const s=t.getAttribute("ref")??"",i=s.endsWith("[]"),n=i?s.slice(0,-2):s;if(i){const s=Array.isArray(e[n])?e[n]:[];s.push(t),e[n]=s}else e[n]=t}this.refs=e}}
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.