1import{Controller}from"@hotwired/stimulus";export default class extends Controller{connect(){this.syncTarget=this.syncTarget.bind(this),this.element.addEventListener("click",this.syncTarget,!0),this.element.addEventListener("auxclick",this.syncTarget,!0),this.element.addEventListener("contextmenu",this.syncTarget,!0)}disconnect(){this.element.removeEventListener("click",this.syncTarget,!0),this.element.removeEventListener("auxclick",this.syncTarget,!0),this.element.removeEventListener("contextmenu",this.syncTarget,!0)}syncTarget(e){const t=e.target.closest("a[href]");if(t===null||this.element.contains(t)===!1)return;const n=new URL(t.getAttribute("href"),window.location.origin);n.search=window.location.search,t.setAttribute("href",n.pathname+n.search+n.hash)}}
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.