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