PageSourceSearch

https://mimitable.com/assets/safe-redirect-uZOEW6DL.js

js mimitable.com collected 2026-10-02 01:36:58 UTC 590 bytes, 1 lines download raw bytes

1const s="http://mimitable.invalid",c=t=>t.split(/[?#]/,1)[0],d=t=>{let r=t;for(let e=0;e<3;e+=1){let n;try{n=decodeURIComponent(r)}catch{return null}if(n===r)return r;r=n}return r},i=t=>{try{const r=new URL(t,s);return r.origin===s&&!r.pathname.startsWith("//")}catch{return!1}},o=t=>t.startsWith("/")&&t[1]!=="/"&&!t.includes("\\")&&!/[\u0000-\u001F\u007F]/.test(t)&&t.trim()===t,h=(t,r="/")=>{if(typeof t!="string"||t==="")return r;const e=c(t),n=d(e);return n===null||!o(e)||!o(n)||!i(t)||!i(n)?r:t},f=(t,r)=>{const e=h(r);return e!=="/"&&t.set("redirectTo",e),t};export{h as s,f as w};

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.