1const s=(r,t)=>{if(!r||!t||!Array.isArray(r)||Array.isArray(r)&&!r.length)return{currentDomainUrl:"",canonicalUrl:""};const u=decodeURI(t).split("?")[0],e=u.substring(0,u.length-1),c=e.substring(0,e.lastIndexOf("/")+1),o=r.filter(n=>n.url?.includes(c))[0]?.url||"",i=r.filter(n=>n?.isCanonical===!0)[0]?.url||"";return{currentDomainUrl:o,canonicalUrl:i}};export{s as u};
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.