4 lines
28 KiB
JavaScript
4 lines
28 KiB
JavaScript
/*! third party licenses: js/vendor.LICENSE.txt */
|
|
function Jt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var bt={exports:{}},m=bt.exports={},_,S;function et(){throw new Error("setTimeout has not been defined")}function nt(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_=setTimeout:_=et}catch{_=et}try{typeof clearTimeout=="function"?S=clearTimeout:S=nt}catch{S=nt}})();function mt(s){if(_===setTimeout)return setTimeout(s,0);if((_===et||!_)&&setTimeout)return _=setTimeout,setTimeout(s,0);try{return _(s,0)}catch{try{return _.call(null,s,0)}catch{return _.call(this,s,0)}}}function Wt(s){if(S===clearTimeout)return clearTimeout(s);if((S===nt||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(s);try{return S(s)}catch{try{return S.call(null,s)}catch{return S.call(this,s)}}}var P=[],Y=!1,j,J=-1;function Xt(){!Y||!j||(Y=!1,j.length?P=j.concat(P):J=-1,P.length&&Et())}function Et(){if(!Y){var s=mt(Xt);Y=!0;for(var h=P.length;h;){for(j=P,P=[];++J<h;)j&&j[J].run();J=-1,h=P.length}j=null,Y=!1,Wt(s)}}m.nextTick=function(s){var h=new Array(arguments.length-1);if(arguments.length>1)for(var l=1;l<arguments.length;l++)h[l-1]=arguments[l];P.push(new Bt(s,h)),P.length===1&&!Y&&mt(Et)};function Bt(s,h){this.fun=s,this.array=h}Bt.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={};function N(){}m.on=N,m.addListener=N,m.once=N,m.off=N,m.removeListener=N,m.removeAllListeners=N,m.emit=N,m.prependListener=N,m.prependOnceListener=N,m.listeners=function(s){return[]},m.binding=function(s){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(s){throw new Error("process.chdir is not supported")},m.umask=function(){return 0};var Ht=bt.exports;const re=Jt(Ht);var It={},W={};W.byteLength=Kt,W.toByteArray=te,W.fromByteArray=oe;for(var x=[],O=[],Qt=typeof Uint8Array<"u"?Uint8Array:Array,tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=0,Zt=tt.length;z<Zt;++z)x[z]=tt[z],O[tt.charCodeAt(z)]=z;O[45]=62,O[95]=63;function vt(s){var h=s.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=s.indexOf("=");l===-1&&(l=h);var g=l===h?0:4-l%4;return[l,g]}function Kt(s){var h=vt(s),l=h[0],g=h[1];return(l+g)*3/4-g}function qt(s,h,l){return(h+l)*3/4-l}function te(s){var h,l=vt(s),g=l[0],p=l[1],a=new Qt(qt(s,g,p)),c=0,E=p>0?g-4:g,w;for(w=0;w<E;w+=4)h=O[s.charCodeAt(w)]<<18|O[s.charCodeAt(w+1)]<<12|O[s.charCodeAt(w+2)]<<6|O[s.charCodeAt(w+3)],a[c++]=h>>16&255,a[c++]=h>>8&255,a[c++]=h&255;return p===2&&(h=O[s.charCodeAt(w)]<<2|O[s.charCodeAt(w+1)]>>4,a[c++]=h&255),p===1&&(h=O[s.charCodeAt(w)]<<10|O[s.charCodeAt(w+1)]<<4|O[s.charCodeAt(w+2)]>>2,a[c++]=h>>8&255,a[c++]=h&255),a}function ee(s){return x[s>>18&63]+x[s>>12&63]+x[s>>6&63]+x[s&63]}function ne(s,h,l){for(var g,p=[],a=h;a<l;a+=3)g=(s[a]<<16&16711680)+(s[a+1]<<8&65280)+(s[a+2]&255),p.push(ee(g));return p.join("")}function oe(s){for(var h,l=s.length,g=l%3,p=[],a=16383,c=0,E=l-g;c<E;c+=a)p.push(ne(s,c,c+a>E?E:c+a));return g===1?(h=s[l-1],p.push(x[h>>2]+x[h<<4&63]+"==")):g===2&&(h=(s[l-2]<<8)+s[l-1],p.push(x[h>>10]+x[h>>4&63]+x[h<<2&63]+"=")),p.join("")}var ot={};ot.read=function(s,h,l,g,p){var a,c,E=p*8-g-1,w=(1<<E)-1,v=w>>1,i=-7,A=l?p-1:0,M=l?-1:1,U=s[h+A];for(A+=M,a=U&(1<<-i)-1,U>>=-i,i+=E;i>0;a=a*256+s[h+A],A+=M,i-=8);for(c=a&(1<<-i)-1,a>>=-i,i+=g;i>0;c=c*256+s[h+A],A+=M,i-=8);if(a===0)a=1-v;else{if(a===w)return c?NaN:(U?-1:1)*(1/0);c=c+Math.pow(2,g),a=a-v}return(U?-1:1)*c*Math.pow(2,a-g)},ot.write=function(s,h,l,g,p,a){var c,E,w,v=a*8-p-1,i=(1<<v)-1,A=i>>1,M=p===23?Math.pow(2,-24)-Math.pow(2,-77):0,U=g?0:a-1,k=g?1:-1,X=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(E=isNaN(h)?1:0,c=i):(c=Math.floor(Math.log(h)/Math.LN2),h*(w=Math.pow(2,-c))<1&&(c--,w*=2),c+A>=1?h+=M/w:h+=M*Math.pow(2,1-A),h*w>=2&&(c++,w/=2),c+A>=i?(E=0,c=i):c+A>=1?(E=(h*w-1)*Math.pow(2,p),c=c+A):(E=h*Math.pow(2,A-1)*Math.pow(2,p),c=0));p>=8;s[l+U]=E&255,U+=k,E/=256,p-=8);for(c=c<<p|E,v+=p;v>0;s[l+U]=c&255,U+=k,c/=256,v-=8);s[l+U-k]|=X*128};(function(s){const h=W,l=ot,g=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;s.Buffer=i,s.SlowBuffer=Rt,s.INSPECT_MAX_BYTES=50;const p=2147483647;s.kMaxLength=p;const{Uint8Array:a,ArrayBuffer:c,SharedArrayBuffer:E}=globalThis;i.TYPED_ARRAY_SUPPORT=w(),!i.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function w(){try{const t=new a(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,a.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}});function v(t){if(t>p)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new a(t);return Object.setPrototypeOf(e,i.prototype),e}function i(t,e,n){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return k(t)}return A(t,e,n)}i.poolSize=8192;function A(t,e,n){if(typeof t=="string")return X(t,e);if(c.isView(t))return Tt(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(L(t,c)||t&&L(t.buffer,c)||typeof E<"u"&&(L(t,E)||t&&L(t.buffer,E)))return rt(t,e,n);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const o=t.valueOf&&t.valueOf();if(o!=null&&o!==t)return i.from(o,e,n);const r=At(t);if(r)return r;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return i.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}i.from=function(t,e,n){return A(t,e,n)},Object.setPrototypeOf(i.prototype,a.prototype),Object.setPrototypeOf(i,a);function M(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function U(t,e,n){return M(t),t<=0?v(t):e!==void 0?typeof n=="string"?v(t).fill(e,n):v(t).fill(e):v(t)}i.alloc=function(t,e,n){return U(t,e,n)};function k(t){return M(t),v(t<0?0:Q(t)|0)}i.allocUnsafe=function(t){return k(t)},i.allocUnsafeSlow=function(t){return k(t)};function X(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=it(t,e)|0;let o=v(n);const r=o.write(t,e);return r!==n&&(o=o.slice(0,r)),o}function H(t){const e=t.length<0?0:Q(t.length)|0,n=v(e);for(let o=0;o<e;o+=1)n[o]=t[o]&255;return n}function Tt(t){if(L(t,a)){const e=new a(t);return rt(e.buffer,e.byteOffset,e.byteLength)}return H(t)}function rt(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let o;return e===void 0&&n===void 0?o=new a(t):n===void 0?o=new a(t,e):o=new a(t,e,n),Object.setPrototypeOf(o,i.prototype),o}function At(t){if(i.isBuffer(t)){const e=Q(t.length)|0,n=v(e);return n.length===0||t.copy(n,0,0,e),n}if(t.length!==void 0)return typeof t.length!="number"||q(t.length)?v(0):H(t);if(t.type==="Buffer"&&Array.isArray(t.data))return H(t.data)}function Q(t){if(t>=p)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p.toString(16)+" bytes");return t|0}function Rt(t){return+t!=t&&(t=0),i.alloc(+t)}i.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==i.prototype},i.compare=function(t,e){if(L(t,a)&&(t=i.from(t,t.offset,t.byteLength)),L(e,a)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,o=e.length;for(let r=0,f=Math.min(n,o);r<f;++r)if(t[r]!==e[r]){n=t[r],o=e[r];break}return n<o?-1:o<n?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return i.alloc(0);let n;if(e===void 0)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const o=i.allocUnsafe(e);let r=0;for(n=0;n<t.length;++n){let f=t[n];if(L(f,a))r+f.length>o.length?(i.isBuffer(f)||(f=i.from(f)),f.copy(o,r)):a.prototype.set.call(o,f,r);else if(i.isBuffer(f))f.copy(o,r);else throw new TypeError('"list" argument must be an Array of Buffers');r+=f.length}return o};function it(t,e){if(i.isBuffer(t))return t.length;if(c.isView(t)||L(t,c))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,o=arguments.length>2&&arguments[2]===!0;if(!o&&n===0)return 0;let r=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return wt(t).length;default:if(r)return o?-1:K(t).length;e=(""+e).toLowerCase(),r=!0}}i.byteLength=it;function Ut(t,e,n){let o=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return kt(this,e,n);case"utf8":case"utf-8":return st(this,e,n);case"ascii":return Pt(this,e,n);case"latin1":case"binary":return $t(this,e,n);case"base64":return Mt(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ct(this,e,n);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}i.prototype._isBuffer=!0;function C(t,e,n){const o=t[e];t[e]=t[n],t[n]=o}i.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)C(this,e,e+1);return this},i.prototype.swap32=function(){const t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)C(this,e,e+3),C(this,e+1,e+2);return this},i.prototype.swap64=function(){const t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)C(this,e,e+7),C(this,e+1,e+6),C(this,e+2,e+5),C(this,e+3,e+4);return this},i.prototype.toString=function(){const t=this.length;return t===0?"":arguments.length===0?st(this,0,t):Ut.apply(this,arguments)},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:i.compare(this,t)===0},i.prototype.inspect=function(){let t="";const e=s.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},g&&(i.prototype[g]=i.prototype.inspect),i.prototype.compare=function(t,e,n,o,r){if(L(t,a)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),n===void 0&&(n=t?t.length:0),o===void 0&&(o=0),r===void 0&&(r=this.length),e<0||n>t.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&e>=n)return 0;if(o>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,o>>>=0,r>>>=0,this===t)return 0;let f=r-o,u=n-e;const d=Math.min(f,u),T=this.slice(o,r),b=t.slice(e,n);for(let y=0;y<d;++y)if(T[y]!==b[y]){f=T[y],u=b[y];break}return f<u?-1:u<f?1:0};function ft(t,e,n,o,r){if(t.length===0)return-1;if(typeof n=="string"?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,q(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0)if(r)n=0;else return-1;if(typeof e=="string"&&(e=i.from(e,o)),i.isBuffer(e))return e.length===0?-1:ut(t,e,n,o,r);if(typeof e=="number")return e=e&255,typeof a.prototype.indexOf=="function"?r?a.prototype.indexOf.call(t,e,n):a.prototype.lastIndexOf.call(t,e,n):ut(t,[e],n,o,r);throw new TypeError("val must be string, number or Buffer")}function ut(t,e,n,o,r){let f=1,u=t.length,d=e.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(t.length<2||e.length<2)return-1;f=2,u/=2,d/=2,n/=2}function T(y,B){return f===1?y[B]:y.readUInt16BE(B*f)}let b;if(r){let y=-1;for(b=n;b<u;b++)if(T(t,b)===T(e,y===-1?0:b-y)){if(y===-1&&(y=b),b-y+1===d)return y*f}else y!==-1&&(b-=b-y),y=-1}else for(n+d>u&&(n=u-d),b=n;b>=0;b--){let y=!0;for(let B=0;B<d;B++)if(T(t,b+B)!==T(e,B)){y=!1;break}if(y)return b}return-1}i.prototype.includes=function(t,e,n){return this.indexOf(t,e,n)!==-1},i.prototype.indexOf=function(t,e,n){return ft(this,t,e,n,!0)},i.prototype.lastIndexOf=function(t,e,n){return ft(this,t,e,n,!1)};function Ot(t,e,n,o){n=Number(n)||0;const r=t.length-n;o?(o=Number(o),o>r&&(o=r)):o=r;const f=e.length;o>f/2&&(o=f/2);let u;for(u=0;u<o;++u){const d=parseInt(e.substr(u*2,2),16);if(q(d))return u;t[n+u]=d}return u}function Lt(t,e,n,o){return V(K(e,t.length-n),t,n,o)}function _t(t,e,n,o){return V(zt(e),t,n,o)}function St(t,e,n,o){return V(wt(e),t,n,o)}function xt(t,e,n,o){return V(Yt(e,t.length-n),t,n,o)}i.prototype.write=function(t,e,n,o){if(e===void 0)o="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")o=e,n=this.length,e=0;else if(isFinite(e))e=e>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const r=this.length-e;if((n===void 0||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let f=!1;for(;;)switch(o){case"hex":return Ot(this,t,e,n);case"utf8":case"utf-8":return Lt(this,t,e,n);case"ascii":case"latin1":case"binary":return _t(this,t,e,n);case"base64":return St(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xt(this,t,e,n);default:if(f)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),f=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Mt(t,e,n){return e===0&&n===t.length?h.fromByteArray(t):h.fromByteArray(t.slice(e,n))}function st(t,e,n){n=Math.min(t.length,n);const o=[];let r=e;for(;r<n;){const f=t[r];let u=null,d=f>239?4:f>223?3:f>191?2:1;if(r+d<=n){let T,b,y,B;switch(d){case 1:f<128&&(u=f);break;case 2:T=t[r+1],(T&192)===128&&(B=(f&31)<<6|T&63,B>127&&(u=B));break;case 3:T=t[r+1],b=t[r+2],(T&192)===128&&(b&192)===128&&(B=(f&15)<<12|(T&63)<<6|b&63,B>2047&&(B<55296||B>57343)&&(u=B));break;case 4:T=t[r+1],b=t[r+2],y=t[r+3],(T&192)===128&&(b&192)===128&&(y&192)===128&&(B=(f&15)<<18|(T&63)<<12|(b&63)<<6|y&63,B>65535&&B<1114112&&(u=B))}}u===null?(u=65533,d=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|u&1023),o.push(u),r+=d}return Nt(o)}const ht=4096;function Nt(t){const e=t.length;if(e<=ht)return String.fromCharCode.apply(String,t);let n="",o=0;for(;o<e;)n+=String.fromCharCode.apply(String,t.slice(o,o+=ht));return n}function Pt(t,e,n){let o="";n=Math.min(t.length,n);for(let r=e;r<n;++r)o+=String.fromCharCode(t[r]&127);return o}function $t(t,e,n){let o="";n=Math.min(t.length,n);for(let r=e;r<n;++r)o+=String.fromCharCode(t[r]);return o}function kt(t,e,n){const o=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>o)&&(n=o);let r="";for(let f=e;f<n;++f)r+=Gt[t[f]];return r}function Ct(t,e,n){const o=t.slice(e,n);let r="";for(let f=0;f<o.length-1;f+=2)r+=String.fromCharCode(o[f]+o[f+1]*256);return r}i.prototype.slice=function(t,e){const n=this.length;t=~~t,e=e===void 0?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t);const o=this.subarray(t,e);return Object.setPrototypeOf(o,i.prototype),o};function I(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUintLE=i.prototype.readUIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||I(t,e,this.length);let o=this[t],r=1,f=0;for(;++f<e&&(r*=256);)o+=this[t+f]*r;return o},i.prototype.readUintBE=i.prototype.readUIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||I(t,e,this.length);let o=this[t+--e],r=1;for(;e>0&&(r*=256);)o+=this[t+--e]*r;return o},i.prototype.readUint8=i.prototype.readUInt8=function(t,e){return t=t>>>0,e||I(t,1,this.length),this[t]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||I(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||I(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||I(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readBigUInt64LE=$(function(t){t=t>>>0,D(t,"offset");const e=this[t],n=this[t+7];(e===void 0||n===void 0)&&G(t,this.length-8);const o=e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,r=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(o)+(BigInt(r)<<BigInt(32))}),i.prototype.readBigUInt64BE=$(function(t){t=t>>>0,D(t,"offset");const e=this[t],n=this[t+7];(e===void 0||n===void 0)&&G(t,this.length-8);const o=e*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],r=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(r)}),i.prototype.readIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||I(t,e,this.length);let o=this[t],r=1,f=0;for(;++f<e&&(r*=256);)o+=this[t+f]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},i.prototype.readIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||I(t,e,this.length);let o=e,r=1,f=this[t+--o];for(;o>0&&(r*=256);)f+=this[t+--o]*r;return r*=128,f>=r&&(f-=Math.pow(2,8*e)),f},i.prototype.readInt8=function(t,e){return t=t>>>0,e||I(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},i.prototype.readInt16LE=function(t,e){t=t>>>0,e||I(t,2,this.length);const n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n},i.prototype.readInt16BE=function(t,e){t=t>>>0,e||I(t,2,this.length);const n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n},i.prototype.readInt32LE=function(t,e){return t=t>>>0,e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return t=t>>>0,e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readBigInt64LE=$(function(t){t=t>>>0,D(t,"offset");const e=this[t],n=this[t+7];(e===void 0||n===void 0)&&G(t,this.length-8);const o=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)}),i.prototype.readBigInt64BE=$(function(t){t=t>>>0,D(t,"offset");const e=this[t],n=this[t+7];(e===void 0||n===void 0)&&G(t,this.length-8);const o=(e<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(o)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)}),i.prototype.readFloatLE=function(t,e){return t=t>>>0,e||I(t,4,this.length),l.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return t=t>>>0,e||I(t,4,this.length),l.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||I(t,8,this.length),l.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||I(t,8,this.length),l.read(this,t,!1,52,8)};function R(t,e,n,o,r,f){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<f)throw new RangeError('"value" argument is out of bounds');if(n+o>t.length)throw new RangeError("Index out of range")}i.prototype.writeUintLE=i.prototype.writeUIntLE=function(t,e,n,o){if(t=+t,e=e>>>0,n=n>>>0,!o){const u=Math.pow(2,8*n)-1;R(this,t,e,n,u,0)}let r=1,f=0;for(this[e]=t&255;++f<n&&(r*=256);)this[e+f]=t/r&255;return e+n},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(t,e,n,o){if(t=+t,e=e>>>0,n=n>>>0,!o){const u=Math.pow(2,8*n)-1;R(this,t,e,n,u,0)}let r=n-1,f=1;for(this[e+r]=t&255;--r>=0&&(f*=256);)this[e+r]=t/f&255;return e+n},i.prototype.writeUint8=i.prototype.writeUInt8=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,1,255,0),this[e]=t&255,e+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function at(t,e,n,o,r){dt(e,o,r,t,n,7);let f=Number(e&BigInt(4294967295));t[n++]=f,f=f>>8,t[n++]=f,f=f>>8,t[n++]=f,f=f>>8,t[n++]=f;let u=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=u,u=u>>8,t[n++]=u,u=u>>8,t[n++]=u,u=u>>8,t[n++]=u,n}function ct(t,e,n,o,r){dt(e,o,r,t,n,7);let f=Number(e&BigInt(4294967295));t[n+7]=f,f=f>>8,t[n+6]=f,f=f>>8,t[n+5]=f,f=f>>8,t[n+4]=f;let u=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=u,u=u>>8,t[n+2]=u,u=u>>8,t[n+1]=u,u=u>>8,t[n]=u,n+8}i.prototype.writeBigUInt64LE=$(function(t,e=0){return at(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=$(function(t,e=0){return ct(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(t,e,n,o){if(t=+t,e=e>>>0,!o){const d=Math.pow(2,8*n-1);R(this,t,e,n,d-1,-d)}let r=0,f=1,u=0;for(this[e]=t&255;++r<n&&(f*=256);)t<0&&u===0&&this[e+r-1]!==0&&(u=1),this[e+r]=(t/f>>0)-u&255;return e+n},i.prototype.writeIntBE=function(t,e,n,o){if(t=+t,e=e>>>0,!o){const d=Math.pow(2,8*n-1);R(this,t,e,n,d-1,-d)}let r=n-1,f=1,u=0;for(this[e+r]=t&255;--r>=0&&(f*=256);)t<0&&u===0&&this[e+r+1]!==0&&(u=1),this[e+r]=(t/f>>0)-u&255;return e+n},i.prototype.writeInt8=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1},i.prototype.writeInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2},i.prototype.writeInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2},i.prototype.writeInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},i.prototype.writeInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4},i.prototype.writeBigInt64LE=$(function(t,e=0){return at(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=$(function(t,e=0){return ct(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function lt(t,e,n,o,r,f){if(n+o>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function pt(t,e,n,o,r){return e=+e,n=n>>>0,r||lt(t,e,n,4),l.write(t,e,n,o,23,4),n+4}i.prototype.writeFloatLE=function(t,e,n){return pt(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){return pt(this,t,e,!1,n)};function gt(t,e,n,o,r){return e=+e,n=n>>>0,r||lt(t,e,n,8),l.write(t,e,n,o,52,8),n+8}i.prototype.writeDoubleLE=function(t,e,n){return gt(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){return gt(this,t,e,!1,n)},i.prototype.copy=function(t,e,n,o){if(!i.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o<n&&(o=n),o===n||t.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e<o-n&&(o=t.length-e+n);const r=o-n;return this===t&&typeof a.prototype.copyWithin=="function"?this.copyWithin(e,n,o):a.prototype.set.call(t,this.subarray(n,o),e),r},i.prototype.fill=function(t,e,n,o){if(typeof t=="string"){if(typeof e=="string"?(o=e,e=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!i.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(t.length===1){const f=t.charCodeAt(0);(o==="utf8"&&f<128||o==="latin1")&&(t=f)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let r;if(typeof t=="number")for(r=e;r<n;++r)this[r]=t;else{const f=i.isBuffer(t)?t:i.from(t,o),u=f.length;if(u===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(r=0;r<n-e;++r)this[r+e]=f[r%u]}return this};const F={};function Z(t,e,n){F[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Z("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Z("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),Z("ERR_OUT_OF_RANGE",function(t,e,n){let o=`The value of "${t}" is out of range.`,r=n;return Number.isInteger(n)&&Math.abs(n)>2**32?r=yt(String(n)):typeof n=="bigint"&&(r=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(r=yt(r)),r+="n"),o+=` It must be ${e}. Received ${r}`,o},RangeError);function yt(t){let e="",n=t.length;const o=t[0]==="-"?1:0;for(;n>=o+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function jt(t,e,n){D(e,"offset"),(t[e]===void 0||t[e+n]===void 0)&&G(e,t.length-(n+1))}function dt(t,e,n,o,r,f){if(t>n||t<e){const u=typeof e=="bigint"?"n":"";let d;throw e===0||e===BigInt(0)?d=`>= 0${u} and < 2${u} ** ${(f+1)*8}${u}`:d=`>= -(2${u} ** ${(f+1)*8-1}${u}) and < 2 ** ${(f+1)*8-1}${u}`,new F.ERR_OUT_OF_RANGE("value",d,t)}jt(o,r,f)}function D(t,e){if(typeof t!="number")throw new F.ERR_INVALID_ARG_TYPE(e,"number",t)}function G(t,e,n){throw Math.floor(t)!==t?(D(t,n),new F.ERR_OUT_OF_RANGE("offset","an integer",t)):e<0?new F.ERR_BUFFER_OUT_OF_BOUNDS:new F.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,t)}const Ft=/[^+/0-9A-Za-z-_]/g;function Dt(t){if(t=t.split("=")[0],t=t.trim().replace(Ft,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function K(t,e){e=e||1/0;let n;const o=t.length;let r=null;const f=[];for(let u=0;u<o;++u){if(n=t.charCodeAt(u),n>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&f.push(239,191,189);continue}else if(u+1===o){(e-=3)>-1&&f.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&f.push(239,191,189),r=n;continue}n=(r-55296<<10|n-56320)+65536}else r&&(e-=3)>-1&&f.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;f.push(n)}else if(n<2048){if((e-=2)<0)break;f.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;f.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;f.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return f}function zt(t){const e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n)&255);return e}function Yt(t,e){let n,o,r;const f=[];for(let u=0;u<t.length&&!((e-=2)<0);++u)n=t.charCodeAt(u),o=n>>8,r=n%256,f.push(r),f.push(o);return f}function wt(t){return h.toByteArray(Dt(t))}function V(t,e,n,o){let r;for(r=0;r<o&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function L(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function q(t){return t!==t}const Gt=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const o=n*16;for(let r=0;r<16;++r)e[o+r]=t[n]+t[r]}return e}();function $(t){return typeof BigInt>"u"?Vt:t}function Vt(){throw new Error("BigInt not supported")}})(It);const ie=It.Buffer;export{ie as B,re as p};
|
|
//# sourceMappingURL=index-Bn0s6V7w.chunk.mjs.map
|