1String.fromCharCode;var t=/#/g,e=/&/g,n=/\//g,r=/=/g,c=/\?/g,s=/\+/g,o=/%5e/gi,a=/%60/gi,i=/%7c/gi,u=/%20/gi,l=/%2f/gi,f=/%252f/gi;function h(t){return encodeURI(""+t).replace(i,"|")}function p(r){return h("string"==typeof r?r:JSON.stringify(r)).replace(s,"%2B").replace(u,"+").replace(t,"%23").replace(e,"%26").replace(a,"`").replace(o,"^").replace(n,"%2F")}function g(t){return p(t).replace(r,"%3D")}function d(n){return h(n).replace(t,"%23").replace(c,"%3F").replace(f,"%2F").replace(e,"%26").replace(s,"%2B")}function m(t){return d(t).replace(n,"%2F")}function v(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function W(t){return v(t.replace(l,"%252F"))}function y(t){return v(t.replace(s," "))}function b(t){return v(t.replace(s," "))}function j(t=""){const e=Object.create(null);"?"===t[0]&&(t=t.slice(1));for(const n of t.split("&")){const t=n.match(/([^=]+)=?(.*)/)||[];if(t.length<2)continue;const r=y(t[1]);if("__proto__"===r||"constructor"===r)continue;const c=b(t[2]||"");void 0===e[r]?e[r]=c:Array.isArray(e[r])?e[r].push(c):e[r]=[e[r],c]}return e}function $(t){return Object.keys(t).filter(e=>void 0!==t[e]).map(e=>{return n=e,"number"!=typeof(r=t[e])&&"boolean"!=typeof r||(r=String(r)),r?Array.isArray(r)?r.map(t=>`${g(n)}=${p(t)}`).join("&"):`${g(n)}=${p(r)}`:g(n);var n,r}).filter(Boolean).join("&")}var R=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,S=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,w=/^([/\\]\s*){2,}[^/\\]/,A=/^[\s\0]*(blob|data|javascript|vbscript):$/i,C=/\/$|\/\?|\/#/,F=/^\.?\//;function O(t,e={}){return"boolean"==typeof e&&(e={acceptRelative:e}),e.strict?R.test(t):S.test(t)||!!e.acceptRelative&&w.test(t)}function _(t){return!!t&&A.test(t)}function x(t="",e){return e?C.test(t):t.endsWith("/")}function B(t="",e){if(!e)return(x(t)?t.slice(0,-1):t)||"/";if(!x(t,!0))return t||"/";let n=t,r="";const c=t.indexOf("#");-1!==c&&(n=t.slice(0,c),r=t.slice(c));const[s,...o]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function I(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(x(t,!0))return t||"/";let n=t,r="";const c=t.indexOf("#");if(-1!==c&&(n=t.slice(0,c),r=t.slice(c),!n))return r;const[s,...o]=n.split("?");return s+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function L(t=""){return function(t=""){return t.startsWith("/")}(t)?t:"/"+t}function U(t,e){if(D(e)||O(t))return t;const n=B(e);if(t.startsWith(n)){const e=t[n.length];if(!e||"/"===e||"?"===e)return t}return J(n,t)}function k(t,e){if(D(e))return t;const n=B(e);if(!t.startsWith(n))return t;const r=t[n.length];return r&&"/"!==r&&"?"!==r?t:"/"+t.slice(n.length).replace(/^\/+/,"")}function z(t,e){const n=G(t);return n.search=$({...j(n.search),...e}),K(n)}function D(t){return!t||"/"===t}function J(t,...e){let n=t||"";for(const r of e.filter(t=>function(t){return t&&"/"!==t}(t)))if(n){const t=r.replace(F,"");n=I(n)+t}else n=r;return n}function M(...t){const e=/\/(?!\/)/,n=t.filter(Boolean),r=[];let c=0;for(const o of n)if(o&&"/"!==o)for(const[t,n]of o.split(e).entries())if(n&&"."!==n)if(".."!==n)1===t&&r[r.length-1]?.endsWith(":/")?r[r.length-1]+="/"+n:(r.push(n),c++);else{if(1===r.length&&O(r[0]))continue;r.pop(),c--}let s=r.join("/");return c>=0?n[0]?.startsWith("/")&&!s.startsWith("/")?s="/"+s:n[0]?.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*c)+s,n[n.length-1]?.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function N(t,e){return v(B(t))===v(B(e))}function Z(t,e,n={}){return n.trailingSlash||(t=I(t),e=I(e)),n.leadingSlash||(t=L(t),e=L(e)),n.encoding||(t=v(t),e=v(e)),t===e}function q(t){return K({...G(t),hash:""})}var E=Symbol.for("ufo:protocolRelative");function G(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,t,e=""]=n;return{protocol:t.toLowerCase(),pathname:e,href:t+e,auth:"",host:"",search:"",hash:""}}if(!O(t,{acceptRelative:!0}))return e?G(e+t):H(t);const[,r="",c,s=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];"file:"===r&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:i,search:u,hash:l}=H(a);return{protocol:r.toLowerCase(),auth:c?c.slice(0,Math.max(0,c.length-1)):"",host:o,pathname:i,search:u,hash:l,[E]:!r}}function H(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function K(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?""
1:"?")+t.search:"",r=t.hash||"",c=t.auth?t.auth+"@":"",s=t.host||"";return(t.protocol||t[E]?(t.protocol||"")+"//":"")+c+s+e+n+r}export{k as _,Z as a,M as c,j as d,G as f,I as g,z as h,O as i,J as l,L as m,m as n,N as o,U as p,d as r,_ as s,W as t,H as u,q as v,B as y};
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.