Benign Download

path-m0dFCAHb.js

Exactly one line exceeds 1000 bytesURL-encodes data via encodeURIComponent
SHA-2563494a22338d4993b7e01a48034f2f0e5ed12f08f2f5375bd208f2311dbd79acb
MaleculeH(Db)Md

Evidence

URL-encodes data via encodeURIComponent lines 1–2
1function e(e){if(!e)return``;let t=e.replace(/[/\\]+$/,``),n=Math.max(t.lastIndexOf(`/`),t.lastIndexOf(`\\`));return t.slice(n+1)}function t(e){if(!e)return``;let t=e.replace(/[/\\]+$/,``).split(/[/\\]/);return t.slice(0,t.length-1).join(`/`)+`/`}function n(t,n=20){let r=e(t);if(r.length<=n)return r;let i=r.lastIndexOf(`.`),a=i<=0?``:r.slice(i),o=n-a.length-1;return o<=0?r.slice(0,n-1)+`…`:r.slice(0,o)+`…`+a}var r=e=>{if(e.length!==2)return!1;let t=e.charCodeAt(0);return e[1]===`:`&&(t>=65&&t<=90||t>=97&&t<=122)},i=e=>{for(let t=e.length-1;t>=0;t--)if(e[t]!==`/`)return e.slice(0,t+1);return``},a=e=>e[1]===`:`||e.startsWith(`\\\\`);function o(e){let t=a(e)?e.replaceAll(`\\`,`/`):e,n=i(t);return!n&&t.startsWith(`/`)?`/`:r(n)?`${n}/`:n}function s(e,t){let n=e=>{let t=o(e);return/^[a-z]:\//i.test(t)||t.startsWith(`//`)?t.toLowerCase():t},r=n(e),i=n(t);return i===r||i.startsWith(r.endsWith(`/`)?r:`${r}/`)}function c(e,t){return s(e,t)&&s(t,e)}function l(e){let t=e.replace(/\\/g,`/`);return(/^[A-Za-z]:/.test(t)?`/`+t:t).split(`/`).map((e,t)=>t===1&&/^[A-Za-z]:$/.test(e)?e:encodeURIComponent(e)).join(`/`)}var u=1e6,d=/^#L(\d+)(?:C\d+)?(?:-L?(\d+)(?:C\d+)?)?$/i,f=/^(.*?)#L(\d+)(?:C\d+)?(?:-L?(\d+)(?:C\d+)?)?$/i,p=/^(.*?):(\d+)(?::\d+)?(?:-(\d+)(?::\d+)?)?:?$/;function m(e,t){if(!(!Number.isSafeInteger(e)||!Number.isSafeInteger(t)||e<1||t<1||e>u||t>u))return{start:Math.min(e,t),end:Math.max(e,t)}}function h(e){return d.test(e)}function g(e){let t=e.match(f);if(t){let e=Number(t[2]),n=t[3]?Number(t[3]):e;return{path:t[1]??``,selection:m(e,n)}}let n=e.match(p);if(n&&!/^[a-z]:?$/i.test(n[1]??``)){let e=Number(n[2]),t=n[3]?Number(n[3]):e;return{path:n[1]??``,selection:m(e,t)}}return{path:e,selection:void 0}}export{e as a,g as c,t as i,c as l,s as n,n as o,l as r,h as s,o as t};
2//# sourceMappingURL=path-m0dFCAHb.js.map

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.