UNPKG

@opra/client

Version:

Opra Client package

7 lines (6 loc) 143 kB
/**************************************** * All rights reserved Panates® 2022-2026 * http://www.panates.com *****************************************/ var Wi=Object.create;var xt=Object.defineProperty;var $i=Object.getOwnPropertyDescriptor;var ji=Object.getOwnPropertyNames;var qi=Object.getPrototypeOf,Hi=Object.prototype.hasOwnProperty;var Gi=(r,e,t)=>e in r?xt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var i=(r,e)=>xt(r,"name",{value:e,configurable:!0});var et=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}};var Vi=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ji(e))!Hi.call(r,o)&&o!==t&&xt(r,o,{get:()=>e[o],enumerable:!(n=$i(e,o))||n.enumerable});return r};var ft=(r,e,t)=>(t=r!=null?Wi(qi(r)):{},Vi(e||!r||!r.__esModule?xt(t,"default",{value:r,enumerable:!0}):t,r));var we=(r,e,t)=>Gi(r,typeof e!="symbol"?e+"":e,t);var sn=et(At=>{"use strict";At.byteLength=Yi;At.toByteArray=Ji;At.fromByteArray=Zi;var Fe=[],Ce=[],zi=typeof Uint8Array<"u"?Uint8Array:Array,Xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(tt=0,nn=Xt.length;tt<nn;++tt)Fe[tt]=Xt[tt],Ce[Xt.charCodeAt(tt)]=tt;var tt,nn;Ce[45]=62;Ce[95]=63;function on(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}i(on,"getLens");function Yi(r){var e=on(r),t=e[0],n=e[1];return(t+n)*3/4-n}i(Yi,"byteLength");function Ki(r,e,t){return(e+t)*3/4-t}i(Ki,"_byteLength");function Ji(r){var e,t=on(r),n=t[0],o=t[1],s=new zi(Ki(r,n,o)),a=0,y=o>0?n-4:n,d;for(d=0;d<y;d+=4)e=Ce[r.charCodeAt(d)]<<18|Ce[r.charCodeAt(d+1)]<<12|Ce[r.charCodeAt(d+2)]<<6|Ce[r.charCodeAt(d+3)],s[a++]=e>>16&255,s[a++]=e>>8&255,s[a++]=e&255;return o===2&&(e=Ce[r.charCodeAt(d)]<<2|Ce[r.charCodeAt(d+1)]>>4,s[a++]=e&255),o===1&&(e=Ce[r.charCodeAt(d)]<<10|Ce[r.charCodeAt(d+1)]<<4|Ce[r.charCodeAt(d+2)]>>2,s[a++]=e>>8&255,s[a++]=e&255),s}i(Ji,"toByteArray");function Xi(r){return Fe[r>>18&63]+Fe[r>>12&63]+Fe[r>>6&63]+Fe[r&63]}i(Xi,"tripletToBase64");function Qi(r,e,t){for(var n,o=[],s=e;s<t;s+=3)n=(r[s]<<16&16711680)+(r[s+1]<<8&65280)+(r[s+2]&255),o.push(Xi(n));return o.join("")}i(Qi,"encodeChunk");function Zi(r){for(var e,t=r.length,n=t%3,o=[],s=16383,a=0,y=t-n;a<y;a+=s)o.push(Qi(r,a,a+s>y?y:a+s));return n===1?(e=r[t-1],o.push(Fe[e>>2]+Fe[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],o.push(Fe[e>>10]+Fe[e>>4&63]+Fe[e<<2&63]+"=")),o.join("")}i(Zi,"fromByteArray")});var an=et(Qt=>{"use strict";Qt.read=function(r,e,t,n,o){var s,a,y=o*8-n-1,d=(1<<y)-1,h=d>>1,b=-7,m=t?o-1:0,N=t?-1:1,O=r[e+m];for(m+=N,s=O&(1<<-b)-1,O>>=-b,b+=y;b>0;s=s*256+r[e+m],m+=N,b-=8);for(a=s&(1<<-b)-1,s>>=-b,b+=n;b>0;a=a*256+r[e+m],m+=N,b-=8);if(s===0)s=1-h;else{if(s===d)return a?NaN:(O?-1:1)*(1/0);a=a+Math.pow(2,n),s=s-h}return(O?-1:1)*a*Math.pow(2,s-n)};Qt.write=function(r,e,t,n,o,s){var a,y,d,h=s*8-o-1,b=(1<<h)-1,m=b>>1,N=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,O=n?0:s-1,M=n?1:-1,R=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(y=isNaN(e)?1:0,a=b):(a=Math.floor(Math.log(e)/Math.LN2),e*(d=Math.pow(2,-a))<1&&(a--,d*=2),a+m>=1?e+=N/d:e+=N*Math.pow(2,1-m),e*d>=2&&(a++,d/=2),a+m>=b?(y=0,a=b):a+m>=1?(y=(e*d-1)*Math.pow(2,o),a=a+m):(y=e*Math.pow(2,m-1)*Math.pow(2,o),a=0));o>=8;r[t+O]=y&255,O+=M,y/=256,o-=8);for(a=a<<o|y,h+=o;h>0;r[t+O]=a&255,O+=M,a/=256,h-=8);r[t+O-M]|=R*128}});var Bt=et(ht=>{"use strict";var Zt=sn(),ct=an(),ln=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ht.Buffer=x;ht.SlowBuffer=oo;ht.INSPECT_MAX_BYTES=50;var Tt=2147483647;ht.kMaxLength=Tt;x.TYPED_ARRAY_SUPPORT=eo();!x.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 eo(){try{let r=new Uint8Array(1),e={foo:i(function(){return 42},"foo")};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}i(eo,"typedArraySupport");Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:i(function(){if(x.isBuffer(this))return this.buffer},"get")});Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:i(function(){if(x.isBuffer(this))return this.byteOffset},"get")});function $e(r){if(r>Tt)throw new RangeError('The value "'+r+'" is invalid for option "size"');let e=new Uint8Array(r);return Object.setPrototypeOf(e,x.prototype),e}i($e,"createBuffer");function x(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return nr(r)}return dn(r,e,t)}i(x,"Buffer");x.poolSize=8192;function dn(r,e,t){if(typeof r=="string")return ro(r,e);if(ArrayBuffer.isView(r))return no(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(Pe(r,ArrayBuffer)||r&&Pe(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pe(r,SharedArrayBuffer)||r&&Pe(r.buffer,SharedArrayBuffer)))return tr(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return x.from(n,e,t);let o=io(r);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return x.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}i(dn,"from");x.from=function(r,e,t){return dn(r,e,t)};Object.setPrototypeOf(x.prototype,Uint8Array.prototype);Object.setPrototypeOf(x,Uint8Array);function hn(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}i(hn,"assertSize");function to(r,e,t){return hn(r),r<=0?$e(r):e!==void 0?typeof t=="string"?$e(r).fill(e,t):$e(r).fill(e):$e(r)}i(to,"alloc");x.alloc=function(r,e,t){return to(r,e,t)};function nr(r){return hn(r),$e(r<0?0:ir(r)|0)}i(nr,"allocUnsafe");x.allocUnsafe=function(r){return nr(r)};x.allocUnsafeSlow=function(r){return nr(r)};function ro(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let t=pn(r,e)|0,n=$e(t),o=n.write(r,e);return o!==t&&(n=n.slice(0,o)),n}i(ro,"fromString");function er(r){let e=r.length<0?0:ir(r.length)|0,t=$e(e);for(let n=0;n<e;n+=1)t[n]=r[n]&255;return t}i(er,"fromArrayLike");function no(r){if(Pe(r,Uint8Array)){let e=new Uint8Array(r);return tr(e.buffer,e.byteOffset,e.byteLength)}return er(r)}i(no,"fromArrayView");function tr(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&t===void 0?n=new Uint8Array(r):t===void 0?n=new Uint8Array(r,e):n=new Uint8Array(r,e,t),Object.setPrototypeOf(n,x.prototype),n}i(tr,"fromArrayBuffer");function io(r){if(x.isBuffer(r)){let e=ir(r.length)|0,t=$e(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||sr(r.length)?$e(0):er(r);if(r.type==="Buffer"&&Array.isArray(r.data))return er(r.data)}i(io,"fromObject");function ir(r){if(r>=Tt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Tt.toString(16)+" bytes");return r|0}i(ir,"checked");function oo(r){return+r!=r&&(r=0),x.alloc(+r)}i(oo,"SlowBuffer");x.isBuffer=i(function(e){return e!=null&&e._isBuffer===!0&&e!==x.prototype},"isBuffer");x.compare=i(function(e,t){if(Pe(e,Uint8Array)&&(e=x.from(e,e.offset,e.byteLength)),Pe(t,Uint8Array)&&(t=x.from(t,t.offset,t.byteLength)),!x.isBuffer(e)||!x.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,o=t.length;for(let s=0,a=Math.min(n,o);s<a;++s)if(e[s]!==t[s]){n=e[s],o=t[s];break}return n<o?-1:o<n?1:0},"compare");x.isEncoding=i(function(e){switch(String(e).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}},"isEncoding");x.concat=i(function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return x.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let o=x.allocUnsafe(t),s=0;for(n=0;n<e.length;++n){let a=e[n];if(Pe(a,Uint8Array))s+a.length>o.length?(x.isBuffer(a)||(a=x.from(a)),a.copy(o,s)):Uint8Array.prototype.set.call(o,a,s);else if(x.isBuffer(a))a.copy(o,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=a.length}return o},"concat");function pn(r,e){if(x.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||Pe(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return rr(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Rn(r).length;default:if(o)return n?-1:rr(r).length;e=(""+e).toLowerCase(),o=!0}}i(pn,"byteLength");x.byteLength=pn;function so(r,e,t){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return bo(this,e,t);case"utf8":case"utf-8":return wn(this,e,t);case"ascii":return yo(this,e,t);case"latin1":case"binary":return wo(this,e,t);case"base64":return ho(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return go(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}i(so,"slowToString");x.prototype._isBuffer=!0;function rt(r,e,t){let n=r[e];r[e]=r[t],r[t]=n}i(rt,"swap");x.prototype.swap16=i(function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)rt(this,t,t+1);return this},"swap16");x.prototype.swap32=i(function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)rt(this,t,t+3),rt(this,t+1,t+2);return this},"swap32");x.prototype.swap64=i(function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)rt(this,t,t+7),rt(this,t+1,t+6),rt(this,t+2,t+5),rt(this,t+3,t+4);return this},"swap64");x.prototype.toString=i(function(){let e=this.length;return e===0?"":arguments.length===0?wn(this,0,e):so.apply(this,arguments)},"toString");x.prototype.toLocaleString=x.prototype.toString;x.prototype.equals=i(function(e){if(!x.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:x.compare(this,e)===0},"equals");x.prototype.inspect=i(function(){let e="",t=ht.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},"inspect");ln&&(x.prototype[ln]=x.prototype.inspect);x.prototype.compare=i(function(e,t,n,o,s){if(Pe(e,Uint8Array)&&(e=x.from(e,e.offset,e.byteLength)),!x.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),s===void 0&&(s=this.length),t<0||n>e.length||o<0||s>this.length)throw new RangeError("out of range index");if(o>=s&&t>=n)return 0;if(o>=s)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,s>>>=0,this===e)return 0;let a=s-o,y=n-t,d=Math.min(a,y),h=this.slice(o,s),b=e.slice(t,n);for(let m=0;m<d;++m)if(h[m]!==b[m]){a=h[m],y=b[m];break}return a<y?-1:y<a?1:0},"compare");function yn(r,e,t,n,o){if(r.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,sr(t)&&(t=o?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(o)return-1;t=r.length-1}else if(t<0)if(o)t=0;else return-1;if(typeof e=="string"&&(e=x.from(e,n)),x.isBuffer(e))return e.length===0?-1:fn(r,e,t,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):fn(r,[e],t,n,o);throw new TypeError("val must be string, number or Buffer")}i(yn,"bidirectionalIndexOf");function fn(r,e,t,n,o){let s=1,a=r.length,y=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;s=2,a/=2,y/=2,t/=2}function d(b,m){return s===1?b[m]:b.readUInt16BE(m*s)}i(d,"read");let h;if(o){let b=-1;for(h=t;h<a;h++)if(d(r,h)===d(e,b===-1?0:h-b)){if(b===-1&&(b=h),h-b+1===y)return b*s}else b!==-1&&(h-=h-b),b=-1}else for(t+y>a&&(t=a-y),h=t;h>=0;h--){let b=!0;for(let m=0;m<y;m++)if(d(r,h+m)!==d(e,m)){b=!1;break}if(b)return h}return-1}i(fn,"arrayIndexOf");x.prototype.includes=i(function(e,t,n){return this.indexOf(e,t,n)!==-1},"includes");x.prototype.indexOf=i(function(e,t,n){return yn(this,e,t,n,!0)},"indexOf");x.prototype.lastIndexOf=i(function(e,t,n){return yn(this,e,t,n,!1)},"lastIndexOf");function ao(r,e,t,n){t=Number(t)||0;let o=r.length-t;n?(n=Number(n),n>o&&(n=o)):n=o;let s=e.length;n>s/2&&(n=s/2);let a;for(a=0;a<n;++a){let y=parseInt(e.substr(a*2,2),16);if(sr(y))return a;r[t+a]=y}return a}i(ao,"hexWrite");function lo(r,e,t,n){return It(rr(e,r.length-t),r,t,n)}i(lo,"utf8Write");function fo(r,e,t,n){return It(So(e),r,t,n)}i(fo,"asciiWrite");function uo(r,e,t,n){return It(Rn(e),r,t,n)}i(uo,"base64Write");function co(r,e,t,n){return It(Ro(e,r.length-t),r,t,n)}i(co,"ucs2Write");x.prototype.write=i(function(e,t,n,o){if(t===void 0)o="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")o=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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");let s=this.length-t;if((n===void 0||n>s)&&(n=s),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let a=!1;for(;;)switch(o){case"hex":return ao(this,e,t,n);case"utf8":case"utf-8":return lo(this,e,t,n);case"ascii":case"latin1":case"binary":return fo(this,e,t,n);case"base64":return uo(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return co(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),a=!0}},"write");x.prototype.toJSON=i(function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},"toJSON");function ho(r,e,t){return e===0&&t===r.length?Zt.fromByteArray(r):Zt.fromByteArray(r.slice(e,t))}i(ho,"base64Slice");function wn(r,e,t){t=Math.min(r.length,t);let n=[],o=e;for(;o<t;){let s=r[o],a=null,y=s>239?4:s>223?3:s>191?2:1;if(o+y<=t){let d,h,b,m;switch(y){case 1:s<128&&(a=s);break;case 2:d=r[o+1],(d&192)===128&&(m=(s&31)<<6|d&63,m>127&&(a=m));break;case 3:d=r[o+1],h=r[o+2],(d&192)===128&&(h&192)===128&&(m=(s&15)<<12|(d&63)<<6|h&63,m>2047&&(m<55296||m>57343)&&(a=m));break;case 4:d=r[o+1],h=r[o+2],b=r[o+3],(d&192)===128&&(h&192)===128&&(b&192)===128&&(m=(s&15)<<18|(d&63)<<12|(h&63)<<6|b&63,m>65535&&m<1114112&&(a=m))}}a===null?(a=65533,y=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|a&1023),n.push(a),o+=y}return po(n)}i(wn,"utf8Slice");var un=4096;function po(r){let e=r.length;if(e<=un)return String.fromCharCode.apply(String,r);let t="",n=0;for(;n<e;)t+=String.fromCharCode.apply(String,r.slice(n,n+=un));return t}i(po,"decodeCodePointsArray");function yo(r,e,t){let n="";t=Math.min(r.length,t);for(let o=e;o<t;++o)n+=String.fromCharCode(r[o]&127);return n}i(yo,"asciiSlice");function wo(r,e,t){let n="";t=Math.min(r.length,t);for(let o=e;o<t;++o)n+=String.fromCharCode(r[o]);return n}i(wo,"latin1Slice");function bo(r,e,t){let n=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>n)&&(t=n);let o="";for(let s=e;s<t;++s)o+=xo[r[s]];return o}i(bo,"hexSlice");function go(r,e,t){let n=r.slice(e,t),o="";for(let s=0;s<n.length-1;s+=2)o+=String.fromCharCode(n[s]+n[s+1]*256);return o}i(go,"utf16leSlice");x.prototype.slice=i(function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let o=this.subarray(e,t);return Object.setPrototypeOf(o,x.prototype),o},"slice");function me(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}i(me,"checkOffset");x.prototype.readUintLE=x.prototype.readUIntLE=i(function(e,t,n){e=e>>>0,t=t>>>0,n||me(e,t,this.length);let o=this[e],s=1,a=0;for(;++a<t&&(s*=256);)o+=this[e+a]*s;return o},"readUIntLE");x.prototype.readUintBE=x.prototype.readUIntBE=i(function(e,t,n){e=e>>>0,t=t>>>0,n||me(e,t,this.length);let o=this[e+--t],s=1;for(;t>0&&(s*=256);)o+=this[e+--t]*s;return o},"readUIntBE");x.prototype.readUint8=x.prototype.readUInt8=i(function(e,t){return e=e>>>0,t||me(e,1,this.length),this[e]},"readUInt8");x.prototype.readUint16LE=x.prototype.readUInt16LE=i(function(e,t){return e=e>>>0,t||me(e,2,this.length),this[e]|this[e+1]<<8},"readUInt16LE");x.prototype.readUint16BE=x.prototype.readUInt16BE=i(function(e,t){return e=e>>>0,t||me(e,2,this.length),this[e]<<8|this[e+1]},"readUInt16BE");x.prototype.readUint32LE=x.prototype.readUInt32LE=i(function(e,t){return e=e>>>0,t||me(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},"readUInt32LE");x.prototype.readUint32BE=x.prototype.readUInt32BE=i(function(e,t){return e=e>>>0,t||me(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},"readUInt32BE");x.prototype.readBigUInt64LE=Ve(i(function(e){e=e>>>0,dt(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&mt(e,this.length-8);let o=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,s=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(o)+(BigInt(s)<<BigInt(32))},"readBigUInt64LE"));x.prototype.readBigUInt64BE=Ve(i(function(e){e=e>>>0,dt(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&mt(e,this.length-8);let o=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],s=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(s)},"readBigUInt64BE"));x.prototype.readIntLE=i(function(e,t,n){e=e>>>0,t=t>>>0,n||me(e,t,this.length);let o=this[e],s=1,a=0;for(;++a<t&&(s*=256);)o+=this[e+a]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*t)),o},"readIntLE");x.prototype.readIntBE=i(function(e,t,n){e=e>>>0,t=t>>>0,n||me(e,t,this.length);let o=t,s=1,a=this[e+--o];for(;o>0&&(s*=256);)a+=this[e+--o]*s;return s*=128,a>=s&&(a-=Math.pow(2,8*t)),a},"readIntBE");x.prototype.readInt8=i(function(e,t){return e=e>>>0,t||me(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},"readInt8");x.prototype.readInt16LE=i(function(e,t){e=e>>>0,t||me(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},"readInt16LE");x.prototype.readInt16BE=i(function(e,t){e=e>>>0,t||me(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},"readInt16BE");x.prototype.readInt32LE=i(function(e,t){return e=e>>>0,t||me(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},"readInt32LE");x.prototype.readInt32BE=i(function(e,t){return e=e>>>0,t||me(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},"readInt32BE");x.prototype.readBigInt64LE=Ve(i(function(e){e=e>>>0,dt(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&mt(e,this.length-8);let o=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)},"readBigInt64LE"));x.prototype.readBigInt64BE=Ve(i(function(e){e=e>>>0,dt(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&mt(e,this.length-8);let o=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)},"readBigInt64BE"));x.prototype.readFloatLE=i(function(e,t){return e=e>>>0,t||me(e,4,this.length),ct.read(this,e,!0,23,4)},"readFloatLE");x.prototype.readFloatBE=i(function(e,t){return e=e>>>0,t||me(e,4,this.length),ct.read(this,e,!1,23,4)},"readFloatBE");x.prototype.readDoubleLE=i(function(e,t){return e=e>>>0,t||me(e,8,this.length),ct.read(this,e,!0,52,8)},"readDoubleLE");x.prototype.readDoubleBE=i(function(e,t){return e=e>>>0,t||me(e,8,this.length),ct.read(this,e,!1,52,8)},"readDoubleBE");function Le(r,e,t,n,o,s){if(!x.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<s)throw new RangeError('"value" argument is out of bounds');if(t+n>r.length)throw new RangeError("Index out of range")}i(Le,"checkInt");x.prototype.writeUintLE=x.prototype.writeUIntLE=i(function(e,t,n,o){if(e=+e,t=t>>>0,n=n>>>0,!o){let y=Math.pow(2,8*n)-1;Le(this,e,t,n,y,0)}let s=1,a=0;for(this[t]=e&255;++a<n&&(s*=256);)this[t+a]=e/s&255;return t+n},"writeUIntLE");x.prototype.writeUintBE=x.prototype.writeUIntBE=i(function(e,t,n,o){if(e=+e,t=t>>>0,n=n>>>0,!o){let y=Math.pow(2,8*n)-1;Le(this,e,t,n,y,0)}let s=n-1,a=1;for(this[t+s]=e&255;--s>=0&&(a*=256);)this[t+s]=e/a&255;return t+n},"writeUIntBE");x.prototype.writeUint8=x.prototype.writeUInt8=i(function(e,t,n){return e=+e,t=t>>>0,n||Le(this,e,t,1,255,0),this[t]=e&255,t+1},"writeUInt8");x.prototype.writeUint16LE=x.prototype.writeUInt16LE=i(function(e,t,n){return e=+e,t=t>>>0,n||Le(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},"writeUInt16LE");x.prototype.writeUint16BE=x.prototype.writeUInt16BE=i(function(e,t,n){return e=+e,t=t>>>0,n||Le(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},"writeUInt16BE");x.prototype.writeUint32LE=x.prototype.writeUInt32LE=i(function(e,t,n){return e=+e,t=t>>>0,n||Le(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},"writeUInt32LE");x.prototype.writeUint32BE=x.prototype.writeUInt32BE=i(function(e,t,n){return e=+e,t=t>>>0,n||Le(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},"writeUInt32BE");function bn(r,e,t,n,o){Sn(e,n,o,r,t,7);let s=Number(e&BigInt(4294967295));r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s;let a=Number(e>>BigInt(32)&BigInt(4294967295));return r[t++]=a,a=a>>8,r[t++]=a,a=a>>8,r[t++]=a,a=a>>8,r[t++]=a,t}i(bn,"wrtBigUInt64LE");function gn(r,e,t,n,o){Sn(e,n,o,r,t,7);let s=Number(e&BigInt(4294967295));r[t+7]=s,s=s>>8,r[t+6]=s,s=s>>8,r[t+5]=s,s=s>>8,r[t+4]=s;let a=Number(e>>BigInt(32)&BigInt(4294967295));return r[t+3]=a,a=a>>8,r[t+2]=a,a=a>>8,r[t+1]=a,a=a>>8,r[t]=a,t+8}i(gn,"wrtBigUInt64BE");x.prototype.writeBigUInt64LE=Ve(i(function(e,t=0){return bn(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64LE"));x.prototype.writeBigUInt64BE=Ve(i(function(e,t=0){return gn(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))},"writeBigUInt64BE"));x.prototype.writeIntLE=i(function(e,t,n,o){if(e=+e,t=t>>>0,!o){let d=Math.pow(2,8*n-1);Le(this,e,t,n,d-1,-d)}let s=0,a=1,y=0;for(this[t]=e&255;++s<n&&(a*=256);)e<0&&y===0&&this[t+s-1]!==0&&(y=1),this[t+s]=(e/a>>0)-y&255;return t+n},"writeIntLE");x.prototype.writeIntBE=i(function(e,t,n,o){if(e=+e,t=t>>>0,!o){let d=Math.pow(2,8*n-1);Le(this,e,t,n,d-1,-d)}let s=n-1,a=1,y=0;for(this[t+s]=e&255;--s>=0&&(a*=256);)e<0&&y===0&&this[t+s+1]!==0&&(y=1),this[t+s]=(e/a>>0)-y&255;return t+n},"writeIntBE");x.prototype.writeInt8=i(function(e,t,n){return e=+e,t=t>>>0,n||Le(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},"writeInt8");x.prototype.writeInt16LE=i(function(e,t,n){return e=+e,t=t>>>0,n||Le(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},"writeInt16LE");x.prototype.writeInt16BE=i(function(e,t,n){return e=+e,t=t>>>0,n||Le(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},"writeInt16BE");x.prototype.writeInt32LE=i(function(e,t,n){return e=+e,t=t>>>0,n||Le(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},"writeInt32LE");x.prototype.writeInt32BE=i(function(e,t,n){return e=+e,t=t>>>0,n||Le(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},"writeInt32BE");x.prototype.writeBigInt64LE=Ve(i(function(e,t=0){return bn(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64LE"));x.prototype.writeBigInt64BE=Ve(i(function(e,t=0){return gn(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))},"writeBigInt64BE"));function _n(r,e,t,n,o,s){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}i(_n,"checkIEEE754");function mn(r,e,t,n,o){return e=+e,t=t>>>0,o||_n(r,e,t,4,34028234663852886e22,-34028234663852886e22),ct.write(r,e,t,n,23,4),t+4}i(mn,"writeFloat");x.prototype.writeFloatLE=i(function(e,t,n){return mn(this,e,t,!0,n)},"writeFloatLE");x.prototype.writeFloatBE=i(function(e,t,n){return mn(this,e,t,!1,n)},"writeFloatBE");function En(r,e,t,n,o){return e=+e,t=t>>>0,o||_n(r,e,t,8,17976931348623157e292,-17976931348623157e292),ct.write(r,e,t,n,52,8),t+8}i(En,"writeDouble");x.prototype.writeDoubleLE=i(function(e,t,n){return En(this,e,t,!0,n)},"writeDoubleLE");x.prototype.writeDoubleBE=i(function(e,t,n){return En(this,e,t,!1,n)},"writeDoubleBE");x.prototype.copy=i(function(e,t,n,o){if(!x.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(t<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),e.length-t<o-n&&(o=e.length-t+n);let s=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),t),s},"copy");x.prototype.fill=i(function(e,t,n,o){if(typeof e=="string"){if(typeof t=="string"?(o=t,t=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"&&!x.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){let a=e.charCodeAt(0);(o==="utf8"&&a<128||o==="latin1")&&(e=a)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let s;if(typeof e=="number")for(s=t;s<n;++s)this[s]=e;else{let a=x.isBuffer(e)?e:x.from(e,o),y=a.length;if(y===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-t;++s)this[s+t]=a[s%y]}return this},"fill");var ut={};function or(r,e,t){var n;ut[r]=(n=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(s){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:s,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}},i(n,"NodeError"),n)}i(or,"E");or("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);or("ERR_INVALID_ARG_TYPE",function(r,e){return`The "${r}" argument must be of type number. Received type ${typeof e}`},TypeError);or("ERR_OUT_OF_RANGE",function(r,e,t){let n=`The value of "${r}" is out of range.`,o=t;return Number.isInteger(t)&&Math.abs(t)>2**32?o=cn(String(t)):typeof t=="bigint"&&(o=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(o=cn(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);function cn(r){let e="",t=r.length,n=r[0]==="-"?1:0;for(;t>=n+4;t-=3)e=`_${r.slice(t-3,t)}${e}`;return`${r.slice(0,t)}${e}`}i(cn,"addNumericalSeparator");function _o(r,e,t){dt(e,"offset"),(r[e]===void 0||r[e+t]===void 0)&&mt(e,r.length-(t+1))}i(_o,"checkBounds");function Sn(r,e,t,n,o,s){if(r>t||r<e){let a=typeof e=="bigint"?"n":"",y;throw s>3?e===0||e===BigInt(0)?y=`>= 0${a} and < 2${a} ** ${(s+1)*8}${a}`:y=`>= -(2${a} ** ${(s+1)*8-1}${a}) and < 2 ** ${(s+1)*8-1}${a}`:y=`>= ${e}${a} and <= ${t}${a}`,new ut.ERR_OUT_OF_RANGE("value",y,r)}_o(n,o,s)}i(Sn,"checkIntBI");function dt(r,e){if(typeof r!="number")throw new ut.ERR_INVALID_ARG_TYPE(e,"number",r)}i(dt,"validateNumber");function mt(r,e,t){throw Math.floor(r)!==r?(dt(r,t),new ut.ERR_OUT_OF_RANGE(t||"offset","an integer",r)):e<0?new ut.ERR_BUFFER_OUT_OF_BOUNDS:new ut.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,r)}i(mt,"boundsError");var mo=/[^+/0-9A-Za-z-_]/g;function Eo(r){if(r=r.split("=")[0],r=r.trim().replace(mo,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}i(Eo,"base64clean");function rr(r,e){e=e||1/0;let t,n=r.length,o=null,s=[];for(let a=0;a<n;++a){if(t=r.charCodeAt(a),t>55295&&t<57344){if(!o){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(a+1===n){(e-=3)>-1&&s.push(239,191,189);continue}o=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),o=t;continue}t=(o-55296<<10|t-56320)+65536}else o&&(e-=3)>-1&&s.push(239,191,189);if(o=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return s}i(rr,"utf8ToBytes");function So(r){let e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}i(So,"asciiToBytes");function Ro(r,e){let t,n,o,s=[];for(let a=0;a<r.length&&!((e-=2)<0);++a)t=r.charCodeAt(a),n=t>>8,o=t%256,s.push(o),s.push(n);return s}i(Ro,"utf16leToBytes");function Rn(r){return Zt.toByteArray(Eo(r))}i(Rn,"base64ToBytes");function It(r,e,t,n){let o;for(o=0;o<n&&!(o+t>=e.length||o>=r.length);++o)e[o+t]=r[o];return o}i(It,"blitBuffer");function Pe(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}i(Pe,"isInstance");function sr(r){return r!==r}i(sr,"numberIsNaN");var xo=(function(){let r="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let o=0;o<16;++o)e[n+o]=r[t]+r[o]}return e})();function Ve(r){return typeof BigInt>"u"?Ao:r}i(Ve,"defineBigIntMethod");function Ao(){throw new Error("BigInt not supported")}i(Ao,"BufferBigIntNotDefined")});var An=et((ks,Ct)=>{"use strict";var{AbortController:xn,AbortSignal:Co}=typeof self<"u"?self:typeof window<"u"?window:void 0;Ct.exports=xn;Ct.exports.AbortSignal=Co;Ct.exports.default=xn});var Mn=et((Fs,cr)=>{"use strict";var pt=typeof Reflect=="object"?Reflect:null,Tn=pt&&typeof pt.apply=="function"?pt.apply:i(function(e,t,n){return Function.prototype.apply.call(e,t,n)},"ReflectApply"),kt;pt&&typeof pt.ownKeys=="function"?kt=pt.ownKeys:Object.getOwnPropertySymbols?kt=i(function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},"ReflectOwnKeys"):kt=i(function(e){return Object.getOwnPropertyNames(e)},"ReflectOwnKeys");function ko(r){console&&console.warn&&console.warn(r)}i(ko,"ProcessEmitWarning");var Bn=Number.isNaN||i(function(e){return e!==e},"NumberIsNaN");function pe(){pe.init.call(this)}i(pe,"EventEmitter");cr.exports=pe;cr.exports.once=Oo;pe.EventEmitter=pe;pe.prototype._events=void 0;pe.prototype._eventsCount=0;pe.prototype._maxListeners=void 0;var In=10;function Ft(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}i(Ft,"checkListener");Object.defineProperty(pe,"defaultMaxListeners",{enumerable:!0,get:i(function(){return In},"get"),set:i(function(r){if(typeof r!="number"||r<0||Bn(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");In=r},"set")});pe.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};pe.prototype.setMaxListeners=i(function(e){if(typeof e!="number"||e<0||Bn(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},"setMaxListeners");function Ln(r){return r._maxListeners===void 0?pe.defaultMaxListeners:r._maxListeners}i(Ln,"_getMaxListeners");pe.prototype.getMaxListeners=i(function(){return Ln(this)},"getMaxListeners");pe.prototype.emit=i(function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o=e==="error",s=this._events;if(s!==void 0)o=o&&s.error===void 0;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var y=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw y.context=a,y}var d=s[e];if(d===void 0)return!1;if(typeof d=="function")Tn(d,this,t);else for(var h=d.length,b=Fn(d,h),n=0;n<h;++n)Tn(b[n],this,t);return!0},"emit");function vn(r,e,t,n){var o,s,a;if(Ft(t),s=r._events,s===void 0?(s=r._events=Object.create(null),r._eventsCount=0):(s.newListener!==void 0&&(r.emit("newListener",e,t.listener?t.listener:t),s=r._events),a=s[e]),a===void 0)a=s[e]=t,++r._eventsCount;else if(typeof a=="function"?a=s[e]=n?[t,a]:[a,t]:n?a.unshift(t):a.push(t),o=Ln(r),o>0&&a.length>o&&!a.warned){a.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=r,y.type=e,y.count=a.length,ko(y)}return r}i(vn,"_addListener");pe.prototype.addListener=i(function(e,t){return vn(this,e,t,!1)},"addListener");pe.prototype.on=pe.prototype.addListener;pe.prototype.prependListener=i(function(e,t){return vn(this,e,t,!0)},"prependListener");function Fo(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}i(Fo,"onceWrapper");function Nn(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},o=Fo.bind(n);return o.listener=t,n.wrapFn=o,o}i(Nn,"_onceWrap");pe.prototype.once=i(function(e,t){return Ft(t),this.on(e,Nn(this,e,t)),this},"once");pe.prototype.prependOnceListener=i(function(e,t){return Ft(t),this.prependListener(e,Nn(this,e,t)),this},"prependOnceListener");pe.prototype.removeListener=i(function(e,t){var n,o,s,a,y;if(Ft(t),o=this._events,o===void 0)return this;if(n=o[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(s=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){y=n[a].listener,s=a;break}if(s<0)return this;s===0?n.shift():Po(n,s),n.length===1&&(o[e]=n[0]),o.removeListener!==void 0&&this.emit("removeListener",e,y||t)}return this},"removeListener");pe.prototype.off=pe.prototype.removeListener;pe.prototype.removeAllListeners=i(function(e){var t,n,o;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var s=Object.keys(n),a;for(o=0;o<s.length;++o)a=s[o],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t=="function")this.removeListener(e,t);else if(t!==void 0)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},"removeAllListeners");function Cn(r,e,t){var n=r._events;if(n===void 0)return[];var o=n[e];return o===void 0?[]:typeof o=="function"?t?[o.listener||o]:[o]:t?Mo(o):Fn(o,o.length)}i(Cn,"_listeners");pe.prototype.listeners=i(function(e){return Cn(this,e,!0)},"listeners");pe.prototype.rawListeners=i(function(e){return Cn(this,e,!1)},"rawListeners");pe.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):kn.call(r,e)};pe.prototype.listenerCount=kn;function kn(r){var e=this._events;if(e!==void 0){var t=e[r];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}i(kn,"listenerCount");pe.prototype.eventNames=i(function(){return this._eventsCount>0?kt(this._events):[]},"eventNames");function Fn(r,e){for(var t=new Array(e),n=0;n<e;++n)t[n]=r[n];return t}i(Fn,"arrayClone");function Po(r,e){for(;e+1<r.length;e++)r[e]=r[e+1];r.pop()}i(Po,"spliceOne");function Mo(r){for(var e=new Array(r.length),t=0;t<e.length;++t)e[t]=r[t].listener||r[t];return e}i(Mo,"unwrapListeners");function Oo(r,e){return new Promise(function(t,n){function o(a){r.removeListener(e,s),n(a)}i(o,"errorListener");function s(){typeof r.removeListener=="function"&&r.removeListener("error",o),t([].slice.call(arguments))}i(s,"resolver"),Pn(r,e,s,{once:!0}),e!=="error"&&Do(r,o,{once:!0})})}i(Oo,"once");function Do(r,e,t){typeof r.on=="function"&&Pn(r,"error",e,t)}i(Do,"addErrorHandlerIfEventEmitter");function Pn(r,e,t,n){if(typeof r.on=="function")n.once?r.once(e,t):r.on(e,t);else if(typeof r.addEventListener=="function")r.addEventListener(e,i(function o(s){n.once&&r.removeEventListener(e,o),t(s)},"wrapListener"));else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r)}i(Pn,"eventTargetAgnosticAddListener")});var $n=et((Ms,Wn)=>{"use strict";var ge=Wn.exports={},Oe,De;function dr(){throw new Error("setTimeout has not been defined")}i(dr,"defaultSetTimout");function hr(){throw new Error("clearTimeout has not been defined")}i(hr,"defaultClearTimeout");(function(){try{typeof setTimeout=="function"?Oe=setTimeout:Oe=dr}catch{Oe=dr}try{typeof clearTimeout=="function"?De=clearTimeout:De=hr}catch{De=hr}})();function On(r){if(Oe===setTimeout)return setTimeout(r,0);if((Oe===dr||!Oe)&&setTimeout)return Oe=setTimeout,setTimeout(r,0);try{return Oe(r,0)}catch{try{return Oe.call(null,r,0)}catch{return Oe.call(this,r,0)}}}i(On,"runTimeout");function Uo(r){if(De===clearTimeout)return clearTimeout(r);if((De===hr||!De)&&clearTimeout)return De=clearTimeout,clearTimeout(r);try{return De(r)}catch{try{return De.call(null,r)}catch{return De.call(this,r)}}}i(Uo,"runClearTimeout");var je=[],yt=!1,it,Pt=-1;function Wo(){!yt||!it||(yt=!1,it.length?je=it.concat(je):Pt=-1,je.length&&Dn())}i(Wo,"cleanUpNextTick");function Dn(){if(!yt){var r=On(Wo);yt=!0;for(var e=je.length;e;){for(it=je,je=[];++Pt<e;)it&&it[Pt].run();Pt=-1,e=je.length}it=null,yt=!1,Uo(r)}}i(Dn,"drainQueue");ge.nextTick=function(r){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];je.push(new Un(r,e)),je.length===1&&!yt&&On(Dn)};function Un(r,e){this.fun=r,this.array=e}i(Un,"Item");Un.prototype.run=function(){this.fun.apply(null,this.array)};ge.title="browser";ge.browser=!0;ge.env={};ge.argv=[];ge.version="";ge.versions={};function qe(){}i(qe,"noop");ge.on=qe;ge.addListener=qe;ge.once=qe;ge.off=qe;ge.removeListener=qe;ge.removeAllListeners=qe;ge.emit=qe;ge.prependListener=qe;ge.prependOnceListener=qe;ge.listeners=function(r){return[]};ge.binding=function(r){throw new Error("process.binding is not supported")};ge.cwd=function(){return"/"};ge.chdir=function(r){throw new Error("process.chdir is not supported")};ge.umask=function(){return 0}});var Hn=et((pr,qn)=>{"use strict";var Mt=Bt(),Ue=Mt.Buffer;function jn(r,e){for(var t in r)e[t]=r[t]}i(jn,"copyProps");Ue.from&&Ue.alloc&&Ue.allocUnsafe&&Ue.allocUnsafeSlow?qn.exports=Mt:(jn(Mt,pr),pr.Buffer=ot);function ot(r,e,t){return Ue(r,e,t)}i(ot,"SafeBuffer");ot.prototype=Object.create(Ue.prototype);jn(Ue,ot);ot.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return Ue(r,e,t)};ot.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=Ue(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};ot.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Ue(r)};ot.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Mt.SlowBuffer(r)}});var Ni=ft(Bt(),1);var ar=class ar extends Error{constructor(t,n){super(t.message);we(this,"cause");we(this,"issues");we(this,"status");this.cause=n,this.issues=t.issues||[],this.status=t.status,n&&(this.cause=n,n.stack&&(this.stack=n.stack))}};i(ar,"ClientError");var nt=ar;var To=Symbol.for("kClient"),xe=Symbol.for("kBackend"),ye=Symbol.for("kContext");var Me;(function(r){r.ResponseHeader="response-header",r.Response="response",r.Body="body",r.Events="events"})(Me||(Me={}));import fr from"@browsery/type-is";import{omit as Io}from"@jsopen/objects";import{isBlob as Bo,isFormData as Lo}from"@opra/common";import{Observable as vo}from"rxjs";import{isReadableStreamLike as No}from"rxjs/internal/util/isReadableStreamLike";import"rxjs";var lr=class lr{constructor(e,t){we(this,"document");we(this,"serviceUrl");we(this,"interceptors");this.document=t?.document;let n=new URL(e);this.serviceUrl=n.toString().split("?")[0].split("#")[0],this.serviceUrl.endsWith("/")||(this.serviceUrl+="/")}};i(lr,"HttpBackend");var Lt=lr;var vt=class vt{constructor(e){we(this,"headers");we(this,"ok");we(this,"status");we(this,"statusText");we(this,"url");we(this,"body");we(this,"contentType");we(this,"hasBody",!1);this.headers=e?.headers instanceof Headers?e?.headers:new Headers(e?.headers),this.status=e?.status||200,this.statusText=e?.statusText||"OK",this.url=e?.url||null,this.ok=this.status>=200&&this.status<300,this.body=e?.body,this.hasBody=e?.body!=null||!!e?.hasBody,this.contentType=(this.headers.get("content-type")||"").split(";")[0]}clone(e){return new vt({...this,...e})}};i(vt,"HttpResponse");var ze=vt;var Ae;(function(r){r.Sent="Sent",r.UploadProgress="UploadProgress",r.ResponseHeader="ResponseHeader",r.DownloadProgress="DownloadProgress",r.Response="Response",r.User="User"})(Ae||(Ae={}));var ur=class ur extends Lt{constructor(t,n){super(t,n);we(this,"interceptors");we(this,"defaults");this.interceptors=Array.from(new Set([...n?.interceptors||[]])),this.defaults={...n?.defaults,headers:n?.defaults?.headers instanceof Headers?n?.defaults?.headers:new Headers(n?.defaults?.headers),params:n?.defaults?.params instanceof URLSearchParams?n?.defaults?.params:new URLSearchParams(n?.defaults?.params)}}handle(t){return new vo(n=>{(async()=>{let o=this.prepareRequest(t);if(o.body&&t.reportProgress){let b=o.body,m=o.headers.get("content-length")||"0",N=parseInt(m,10)||0,O=0,M=new TransformStream({transform(R,I){I.enqueue(R),O+=R.byteLength,n.next({type:Ae.UploadProgress,request:o,total:N,loaded:O})}});o=new Request(o.url,{cache:o.cache,credentials:o.credentials,headers:o.headers,integrity:o.integrity,keepalive:o.keepalive,method:o.method,mode:o.mode,redirect:o.redirect,referrer:o.referrer,referrerPolicy:o.referrerPolicy,signal:o.signal,body:b.pipeThrough(M),window:t.window,duplex:"half"})}let s=this.send(o);n.next({request:o,type:Ae.Sent});let a=await s,y=this.createResponse({url:a.url,headers:a.headers,status:a.status,statusText:a.statusText,hasBody:!!a.body});n.next({request:o,type:Ae.ResponseHeader,response:y});let d;if(a.body)if(t.reportProgress){let b=a.body,m=a.headers.get("content-length")||"0",N=parseInt(m,10)||0,O=0,M=new Response(new ReadableStream({async start(R){let I=b.getReader();for(;;){let{done:c,value:E}=await I.read();if(c)break;O+=E.byteLength,R.enqueue(E),n.next({type:Ae.DownloadProgress,request:o,total:N,loaded:O})}R.close()}}));d=await this.parseBody(M)}else d=await this.parseBody(a);let h=this.createResponse({url:a.url,headers:a.headers,status:a.status,statusText:a.statusText,body:d});n.next({request:o,type:Ae.Response,response:h}),n.complete()})().catch(o=>n.error(o))})}send(t){return fetch(t)}prepareRequest(t){let n=t.headers||new Headers,o={...t,...Io(this.defaults,["headers","params"]),headers:n};this.defaults.headers.forEach((y,d)=>{n.has(d)||n.set(d,y)});let s=new URL(o.url,this.serviceUrl);this.defaults.params.size&&(this.defaults.params.forEach((y,d)=>{s.searchParams.has(d)||s.searchParams.set(d,y)}),o.url=s.toString());let a=o.body;if(a){let y="";typeof a=="string"||typeof a=="number"||typeof a=="boolean"?(y='text/plain; charset="UTF-8"',o.body=new Blob([String(a)],{type:y}),n.set("Content-Length",String(o.body.size)),delete o.duplex):No(a)?(y="application/octet-stream",o.duplex="half"):Buffer.isBuffer(a)?(y="application/octet-stream",n.set("Content-Length",String(a.length)),delete o.duplex):Bo(a)?(y=a.type||"application/octet-stream",n.set("Content-Length",String(a.size)),delete o.duplex):(Lo(a)||(y='application/json;charset="UTF-8"',o.body=new Blob([JSON.stringify(a)],{type:y}),n.set("Content-Length",String(o.body.size))),delete o.duplex),y&&!n.has("Content-Type")&&n.set("Content-Type",y)}return new Request(s.toString(),o)}createResponse(t){return new ze(t)}async parseBody(t){let n,o=t.headers.get("Content-Type")||"";if(fr.is(o,["json","application/*+json"]))n=await t.json(),typeof n=="string"&&(n=JSON.parse(n));else if(fr.is(o,["text"]))n=await t.text();else if(fr.is(o,["multipart/form-data"]))n=await t.formData();else{let s=await t.arrayBuffer();s.byteLength&&(n=s)}return n}};i(ur,"FetchBackend");var Nt=ur;var Ye=ft(Bt(),1),wt=ft(An(),1),Et=ft(Mn(),1),Ke=ft($n(),1),bi=ft(Hn(),1);var yr={exports:{}},wr={exports:{}},br,Gn;function be(){if(Gn)return br;Gn=1;let e=class e extends Error{constructor(n){if(!Array.isArray(n))throw new TypeError(`Expected input to be an Array, got ${typeof n}`);let o="";for(let s=0;s<n.length;s++)o+=` ${n[s].stack} `;super(o),this.name="AggregateError",this.errors=n}};i(e,"AggregateError");let r=e;return br={AggregateError:r,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,n){return t.includes(n)},ArrayPrototypeIndexOf(t,n){return t.indexOf(n)},ArrayPrototypeJoin(t,n){return t.join(n)},ArrayPrototypeMap(t,n){return t.map(n)},ArrayPrototypePop(t,n){return t.pop(n)},ArrayPrototypePush(t,n){return t.push(n)},ArrayPrototypeSlice(t,n,o){return t.slice(n,o)},Error,FunctionPrototypeCall(t,n,...o){return t.call(n,...o)},FunctionPrototypeSymbolHasInstance(t,n){return Function.prototype[Symbol.hasInstance].call(t,n)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,n){return Object.defineProperties(t,n)},ObjectDefineProperty(t,n,o){return Object.defineProperty(t,n,o)},ObjectGetOwnPropertyDescriptor(t,n){return Object.getOwnPropertyDescriptor(t,n)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,n){return Object.setPrototypeOf(t,n)},Promise,PromisePrototypeCatch(t,n){return t.catch(n)},PromisePrototypeThen(t,n,o){return t.then(n,o)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,n){return t.test(n)},SafeSet:Set,String,StringPrototypeSlice(t,n,o){return t.slice(n,o)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,n,o){return t.set(n,o)},Boolean,Uint8Array},br}i(be,"requirePrimordials");var gr={exports:{}},_r,Vn;function gi(){return Vn||(Vn=1,_r={format(r,...e){return r.replace(/%([sdifj])/g,function(...[t,n]){let o=e.shift();return n==="f"?o.toFixed(6):n==="j"?JSON.stringify(o):n==="s"&&typeof o=="object"?`${o.constructor!==Object?o.constructor.name:""} {}`.trim():o.toString()})},inspect(r){switch(typeof r){case"string":if(r.includes("'"))if(r.includes('"')){if(!r.includes("`")&&!r.includes("${"))return`\`${r}\``}else return`"${r}"`;return`'${r}'`;case"number":return isNaN(r)?"NaN":Object.is(r,-0)?String(r):r;case"bigint":return`${String(r)}n`;case"boolean":case"undefined":return String(r);case"object":return"{}"}}}),_r}i(gi,"requireInspect");var mr,zn;function Te(){if(zn)return mr;zn=1;let{format:r,inspect:e}=gi(),{AggregateError:t}=be(),n=globalThis.AggregateError||t,o=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],a=/^([A-Z][a-z0-9]*)+$/,y="__node_internal_",d={};function h(c,E){if(!c)throw new d.ERR_INTERNAL_ASSERTION(E)}i(h,"assert");function b(c){let E="",g=c.length,L=c[0]==="-"?1:0;for(;g>=L+4;g-=3)E=`_${c.slice(g-3,g)}${E}`;return`${c.slice(0,g)}${E}`}i(b,"addNumericalSeparator");function m(c,E,g){if(typeof E=="function")return h(E.length<=g.length,`Code: ${c}; The provided arguments length (${g.length}) does not match the required ones (${E.length}).`),E(...g);let L=(E.match(/%[dfijoOs]/g)||[]).length;return h(L===g.length,`Code: ${c}; The provided arguments length (${g.length}) does not match the required ones (${L}).`),g.length===0?E:r(E,...g)}i(m,"getMessage");function N(c,E,g){g||(g=Error);let D=class D extends g{constructor(...oe){super(m(c,E,oe))}toString(){return`${this.name} [${c}]: ${this.message}`}};i(D,"NodeError");let L=D;Object.defineProp