1const e=({url:o,options:n})=>({url:o,isLoading:!1,error:null,fetchOptions:n,abortController:null,async init(){await this.fetchContent()},async fetchContent(){if(!this.url){this.handleError(new Error("Missing URL for fetchContent"));return}this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isLoading=!0,this.error=null;try{const t=await fetch(this.url,{...this.fetchOptions,signal:this.abortController.signal});if(!t.ok)throw new Error(`Request failed with status ${t.status}`);const r=await t.text();this.setHtml(r)}catch(t){this.handleError(t)}finally{this.isLoading=!1,this.abortController=null}},setHtml(t){this.$el instanceof HTMLElement&&(this.$el.innerHTML=t)},handleError(t){if(t instanceof DOMException&&t.name==="AbortError")return;const r=t instanceof Error?t.message:"Unknown error fetching content";this.error=r,console.error("[fetchContent] Failed to fetch content:",r)},destroy(){this.abortController&&this.abortController.abort()}});export{e 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.