1import{l as e}from"./kEQmWXa8.js";import{g as t}from"./BXbynMP6.js";import{h as n}from"./Bu1hKs-s.js";import{d as r,l as i}from"./BZlo7zbs.js";import{t as a}from"./CgPUCQld.js";var o=new Set([`blackroll.com`,`www.blackroll.com`,`stg.blackroll.com`,`test-www.blackroll.com`,`acc-www.blackroll.com`,`prd-www.blackroll.com`,`acc-proxy-www.blackroll.com`,`prd-proxy-www.blackroll.com`,`local.blackroll.com`,`localhost`]),s=(e,t)=>{if(!e||typeof e!=`string`)return!1;let n=e.toLowerCase();return t&&n===String(t).toLowerCase()?!0:o.has(n)},c=new Set([`http:`,`https:`,`mailto:`,`tel:`]),l=/^[/#?][^\s"'<>]*$/,u=/^\/[/\\]/,d=(e,t)=>{if(!e)return;let n=String(e).trim();if(!n||u.test(n))return;if(l.test(n))return{path:n};let r;try{r=new URL(n)}catch{return}if(c.has(r.protocol))return(r.protocol===`http:`||r.protocol===`https:`)&&s(r.hostname,t)?{path:r.pathname+r.search+r.hash}:{href:r.href}};function f({route:o=n()}={}){let{$localeRootPath:s}=e(),c=a(),l=t(()=>r(o.fullPath));function u(e){let t=Array.isArray(e)?e[0]:e;if(!t)return;let n=d(t.url??t.element?.url,c.hostname);if(n?.href)return n.href;if(n?.path)return i(n.path,l.value);let r=t.element?.uri??t.uri;return r?s(r):void 0}return{resolveHref:u}}export{f as t};
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.