1 line
488 KiB
JavaScript
1 line
488 KiB
JavaScript
|
(()=>{var e={151:function(e,t){(function(e,n){true?n(t):0})(this,(function(e){"use strict";const t=",".charCodeAt(0);const n=";".charCodeAt(0);const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const r=new Uint8Array(64);const o=new Uint8Array(128);for(let e=0;e<i.length;e++){const t=i.charCodeAt(e);o[t]=e;r[e]=t}const a=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(e){const t=Buffer.from(e.buffer,e.byteOffset,e.byteLength);return t.toString()}}:{decode(e){let t="";for(let n=0;n<e.length;n++){t+=String.fromCharCode(e[n])}return t}};function decode(e){const i=new Int32Array(5);const r=[];let o=[];let a=true;let s=0;for(let u=0;u<e.length;){const l=e.charCodeAt(u);if(l===t){u++}else if(l===n){i[0]=s=0;if(!a)sort(o);a=true;r.push(o);o=[];u++}else{u=decodeInteger(e,u,i,0);const t=i[0];if(t<s)a=false;s=t;if(!hasMoreSegments(e,u)){o.push([t]);continue}u=decodeInteger(e,u,i,1);u=decodeInteger(e,u,i,2);u=decodeInteger(e,u,i,3);if(!hasMoreSegments(e,u)){o.push([t,i[1],i[2],i[3]]);continue}u=decodeInteger(e,u,i,4);o.push([t,i[1],i[2],i[3],i[4]])}}if(!a)sort(o);r.push(o);return r}function decodeInteger(e,t,n,i){let r=0;let a=0;let s=0;do{const n=e.charCodeAt(t++);s=o[n];r|=(s&31)<<a;a+=5}while(s&32);const u=r&1;r>>>=1;if(u){r=-2147483648|-r}n[i]+=r;return t}function hasMoreSegments(e,i){if(i>=e.length)return false;const r=e.charCodeAt(i);if(r===t||r===n)return false;return true}function sort(e){e.sort(sortComparator$1)}function sortComparator$1(e,t){return e[0]-t[0]}function encode(e){const i=new Int32Array(5);let r=new Uint8Array(1024);let o=0;for(let a=0;a<e.length;a++){const s=e[a];if(a>0){r=reserve(r,o,1);r[o++]=n}if(s.length===0)continue;i[0]=0;for(let e=0;e<s.length;e++){const n=s[e];r=reserve(r,o,36);if(e>0)r[o++]=t;o=encodeInteger(r,o,i,n,0);if(n.length===1)continue;o=encodeInteger(r,o,i,n,1);o=encodeInteger(r,o,i,n,2);o=encodeInteger(r,o,i,n,3);if(n.length===4)continue;o=encodeInteger(r,o,i,n,4)}}return a.decode(r.subarray(0,o))}function reserve(e,t,n){if(e.length>t+n)return e;const i=new Uint8Array(e.length*2);i.set(e);return i}function encodeInteger(e,t,n,i,o){const a=i[o];let s=a-n[o];n[o]=a;s=s<0?-s<<1|1:s<<1;do{let n=s&31;s>>>=5;if(s>0)n|=32;e[t++]=r[n]}while(s>0);return t}const s=/^[\w+.-]+:\/\//;const u=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?/;const l=/^file:(?:\/\/((?![a-z]:)[^/]*)?)?(\/?.*)/i;function isAbsoluteUrl(e){return s.test(e)}function isSchemeRelativeUrl(e){return e.startsWith("//")}function isAbsolutePath(e){return e.startsWith("/")}function isFileUrl(e){return e.startsWith("file:")}function parseAbsoluteUrl(e){const t=u.exec(e);return makeUrl(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/")}function parseFileUrl(e){const t=l.exec(e);const n=t[2];return makeUrl("file:","",t[1]||"","",isAbsolutePath(n)?n:"/"+n)}function makeUrl(e,t,n,i,r){return{scheme:e,user:t,host:n,port:i,path:r,relativePath:false}}function parseUrl(e){if(isSchemeRelativeUrl(e)){const t=parseAbsoluteUrl("http:"+e);t.scheme="";return t}if(isAbsolutePath(e)){const t=parseAbsoluteUrl("http://foo.com"+e);t.scheme="";t.host="";return t}if(isFileUrl(e))return parseFileUrl(e);if(isAbsoluteUrl(e))return parseAbsoluteUrl(e);const t=parseAbsoluteUrl("http://foo.com/"+e);t.scheme="";t.host="";t.relativePath=true;return t}function stripPathFilename(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function mergePaths(e,t){if(!e.relativePath)return;normalizePath(t);if(e.path==="/"){e.path=t.path}else{e.path=stripPathFilename(t.path)+e.path}e.relativePath=t.relativePath}function normalizePath(e){const{relativePath:t}=e;const n=e.path.split("/");let i=1;let r=0;let o=false;for(let e=1;e<n.length;e++){const a=n[e];if(!a){o=true;continue}o=false;if(a===".")continue;if(a===".."){if(r){o=true;r--;i--}else if(t){n[i++]=a}continue}n[i++]=a;r++}let a="";for(let e=1;e<i;e++){a+="/"+n[e]}if(!a||o&&!a.endsWith("/..")){a+="/"}e.path=a}function resolve$1(e,t){if(!e&&!t)return"";const n=parseUrl(e);if(t&&!n.scheme){const e=parseUrl(t);n.scheme=e.scheme;if(!n.ho
|