1function e(e){return e.toLowerCase().trim().replace(/\s+/g,` `)}function t(t){return e(t).replace(/[^a-z0-9]+/g,``)}function n(t){return e(t).replace(/^https?:\/\//,``).replace(/^www\./,``).split(/[/?#]/)[0]??``}function r(e){let r=n(e);if(!r)return[];let i=new Set([r]),a=t(r);if(a&&i.add(a),r.includes(`.`)){let e=r.split(`.`)[0];if(e){i.add(e);let n=t(e);n&&i.add(n)}}return[...i]}function i(t,n={}){let r=Math.max(0,n.max??3),i=n.siteUrl?c(n.siteUrl):null,a=[],o=new Set;for(let n of t??[]){let t=e(n);if(t&&!o.has(t)&&!(i&&c(t)===i)&&(o.add(t),a.push(t),a.length>=r))break}return a}function a(t){return e(t).replace(/[^a-z0-9]+/g,` `).trim()}function o(e,n){let a=new Set(r(e??``).map(t).filter(Boolean));if(!a.size)return!1;let o=new Set(i(n).flatMap(r).map(t).filter(Boolean));return[...a].some(e=>o.has(e))}function s(e,n){if(!e)return!1;if(o(e,n))return!0;let s=` ${a(e)} `,c=t(e);return i(n).flatMap(r).some(e=>{let n=a(e),r=t(e);return!!n&&s.includes(` ${n} `)||!!r&&r.length>=4&&c.includes(r)})}function c(e){let t=e.trim();if(!t)return null;try{let e=new URL(t.includes(`://`)?t:`https://${t}`).hostname.replace(/^www\./,``).toLowerCase();return e.includes(`xn--`)?p(e)??l(t)??e:e}catch{return n(t).replace(/^www\./,``)||null}}function l(e){return((e.replace(/^[a-z][\w+.-]*:\/\//i,``).split(/[/?#]/)[0]??``).split(`@`).at(-1)??``).replace(/:\d+$/,``).replace(/^www\./i,``).toLowerCase()||null}function u(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:36}function d(e,t,n){e=Math.floor(n?e/700:e/2),e+=Math.floor(e/t);let r=0;for(;e>455;)e=Math.floor(e/35),r+=36;return r+Math.floor(36*e/(e+38))}function f(e){let t=[],n=e.lastIndexOf(`-`),r=n===-1?0:n;for(let n=0;n<r;n++){let r=e.charCodeAt(n);if(r>127)return null;t.push(r)}let i=n+1,a=128,o=0,s=72;for(;i<e.length;){let n=o,r=1;for(let t=36;;t+=36){if(i>=e.length)return null;let n=u(e.charCodeAt(i++));if(n>=36)return null;o+=n*r;let a=t<=s?1:t>=s+26?26:t-s;if(n<a)break;r*=36-a}s=d(o-n,t.length+1,n===0),a+=Math.floor(o/(t.length+1)),o%=t.length+1,t.splice(o,0,a),o++}return String.fromCodePoint(...t)}function p(e){let t=[];for(let n of e.split(`.`)){if(!n.startsWith(`xn--`)){t.push(n);continue}let e=f(n.slice(4));if(!e)return null;t.push(e)}return t.join(`.`)}export{i,t as n,s as r,r 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.