PageSourceSearch

https://mentorsoutreach.org/assets/url-utils-DKJVPoJ9.js

js mentorsoutreach.org collected 2026-10-08 01:46:14 UTC 1,223 bytes, 1 lines download raw bytes

1function e(e,t){return t?e===t||e.startsWith(t+`/`):!1}function t(t,n){return e(t,n)?t.slice(n.length)||`/`:t}function n(e){if(typeof window>`u`)return null;try{let t=e.startsWith(`//`)?new URL(e,window.location.origin):new URL(e);if(t.origin===window.location.origin)return t.pathname+t.search+t.hash}catch{}return null}function r(r,i){let a=n(r);if(a==null||!i)return a;try{let n=new URL(a,`http://vinext.local`);return e(n.pathname,i)?t(n.pathname,i)+n.search+n.hash:null}catch{return a}}function i(e,t){return!t||!e.startsWith(`/`)||e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`//`)?e:t+e}function a(e,n,r=``){let i=n??(typeof window<`u`?window.location.href:void 0);if(!i||e.startsWith(`/`)||e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`//`))return e;try{let n=new URL(e,i);return(r&&n.pathname===r?``:r?t(n.pathname,r):n.pathname)+n.search+n.hash}catch{return e}}function o(e,t,n=``){let r=a(e,t,n);return n?r===``?n:r.startsWith(`?`)||r.startsWith(`#`)?n+r:i(r,n):i(r,n)}function s(e,n,r=``){try{let i=new URL(n),a=new URL(e,n);return t(i.pathname,r)===t(a.pathname,r)&&i.search===a.search&&a.hash!==``}catch{return!1}}export{i as a,r as i,a as n,e as o,o as r,t as s,s 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.