1import{Controller}from"@hotwired/stimulus";document.cookie="storage=access;";export default class extends Controller{static targets=["intro","failed"];request(){console.log("Requesting storage access"),document.requestStorageAccess().then((()=>this.complete({type:"storage-access",success:!0})),(e=>this.complete({type:"storage-access",success:!1,error:e})))}complete(e){try{window.opener.postMessage(e,"*"),this.close()}catch(e){window.console?.error?.("Failed to access storage",e),this.introTarget.classList.toggle("hidden",!0),this.failedTarget.classList.toggle("hidden",!1)}}close(){window.close()}}
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.