@ultrade/shared 1.0.28 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/constants/index.js +1 -1
- package/dist/browser/enums/index.js +1 -1
- package/dist/browser/helpers/codex/common.helper.js +1 -1
- package/dist/browser/helpers/codex/index.js +2 -2
- package/dist/browser/helpers/codex/mbr.helper.js +1 -1
- package/dist/browser/helpers/codex/mna.helper.js +1 -1
- package/dist/browser/helpers/codex/order.helper.js +1 -1
- package/dist/browser/helpers/codex/setGlobal.helper.js +1 -1
- package/dist/browser/helpers/codex/transfer.helper.js +2 -2
- package/dist/browser/helpers/codex/txn.helper.js +1 -1
- package/dist/browser/helpers/codex.helper.js +6 -6
- package/dist/browser/helpers/eth.helper.js +1 -1
- package/dist/browser/helpers/order.helper.js +1 -1
- package/dist/enums/db/relayer.enum.d.ts +0 -1
- package/dist/helpers/codex.helper.d.ts +0 -1
- package/dist/interfaces/algostreamer/index.d.ts +1 -2
- package/dist/node/common/index.js +1 -1
- package/dist/node/constants/index.js +1 -1
- package/dist/node/enums/index.js +1 -1
- package/dist/node/helpers/atomic.helper.js +1 -1
- package/dist/node/helpers/codex.helper.js +5 -5
- package/dist/node/helpers/pair.helper.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function W(){throw new Error("setTimeout has not been defined")}function H(){throw new Error("clearTimeout has not been defined")}var x=W,N=H;typeof globalThis.setTimeout=="function"&&(x=setTimeout);typeof globalThis.clearTimeout=="function"&&(N=clearTimeout);function V(t){if(x===setTimeout)return setTimeout(t,0);if((x===W||!x)&&setTimeout)return x=setTimeout,setTimeout(t,0);try{return x(t,0)}catch{try{return x.call(null,t,0)}catch{return x.call(this,t,0)}}}function _r(t){if(N===clearTimeout)return clearTimeout(t);if((N===H||!N)&&clearTimeout)return N=clearTimeout,clearTimeout(t);try{return N(t)}catch{try{return N.call(null,t)}catch{return N.call(this,t)}}}var I=[],w=!1,g,P=-1;function hr(){!w||!g||(w=!1,g.length?I=g.concat(I):P=-1,I.length&&X())}function X(){if(!w){var t=V(hr);w=!0;for(var r=I.length;r;){for(g=I,I=[];++P<r;)g&&g[P].run();P=-1,r=I.length}g=null,w=!1,_r(t)}}function Tr(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];I.push(new q(t,r)),I.length===1&&!w&&V(X)}function q(t,r){this.fun=t,this.array=r}q.prototype.run=function(){this.fun.apply(null,this.array)};var fr="browser",Ar="browser",mr=!0,br={},Rr=[],Ir="",dr={},xr={},Nr={};function O(){}var gr=O,Or=O,Dr=O,Cr=O,Lr=O,wr=O,Pr=O;function yr(t){throw new Error("process.binding is not supported")}function vr(){return"/"}function Sr(t){throw new Error("process.chdir is not supported")}function Ur(){return 0}var L=globalThis.performance||{},Mr=L.now||L.mozNow||L.msNow||L.oNow||L.webkitNow||function(){return new Date().getTime()};function kr(t){var r=Mr.call(L)*.001,e=Math.floor(r),o=Math.floor(r%1*1e9);return t&&(e=e-t[0],o=o-t[1],o<0&&(e--,o+=1e9)),[e,o]}var Br=new Date;function Fr(){var t=new Date,r=t-Br;return r/1e3}var c={nextTick:Tr,title:fr,browser:mr,env:br,argv:Rr,version:Ir,versions:dr,on:gr,addListener:Or,once:Dr,off:Cr,removeListener:Lr,removeAllListeners:wr,emit:Pr,binding:yr,cwd:vr,chdir:Sr,umask:Ur,hrtime:kr,platform:Ar,release:xr,config:Nr,uptime:Fr},K={};Object.keys(K).forEach(t=>{let r=t.split("."),e=c;for(let o=0;o<r.length;o++){let n=r[o];o===r.length-1?e[n]=K[t]:e=e[n]||(e[n]={})}});var b=[],A=[],Yr=typeof Uint8Array<"u"?Uint8Array:Array,F=!1;function $(){F=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)b[r]=t[r],A[t.charCodeAt(r)]=r;A[45]=62,A[95]=63}function Gr(t){F||$();var r,e,o,n,a,p,E=t.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[E-2]==="="?2:t[E-1]==="="?1:0,p=new Yr(E*3/4-a),o=a>0?E-4:E;var s=0;for(r=0,e=0;r<o;r+=4,e+=3)n=A[t.charCodeAt(r)]<<18|A[t.charCodeAt(r+1)]<<12|A[t.charCodeAt(r+2)]<<6|A[t.charCodeAt(r+3)],p[s++]=n>>16&255,p[s++]=n>>8&255,p[s++]=n&255;return a===2?(n=A[t.charCodeAt(r)]<<2|A[t.charCodeAt(r+1)]>>4,p[s++]=n&255):a===1&&(n=A[t.charCodeAt(r)]<<10|A[t.charCodeAt(r+1)]<<4|A[t.charCodeAt(r+2)]>>2,p[s++]=n>>8&255,p[s++]=n&255),p}function Kr(t){return b[t>>18&63]+b[t>>12&63]+b[t>>6&63]+b[t&63]}function Wr(t,r,e){for(var o,n=[],a=r;a<e;a+=3)o=(t[a]<<16)+(t[a+1]<<8)+t[a+2],n.push(Kr(o));return n.join("")}function z(t){F||$();for(var r,e=t.length,o=e%3,n="",a=[],p=16383,E=0,s=e-o;E<s;E+=p)a.push(Wr(t,E,E+p>s?s:E+p));return o===1?(r=t[e-1],n+=b[r>>2],n+=b[r<<4&63],n+="=="):o===2&&(r=(t[e-2]<<8)+t[e-1],n+=b[r>>10],n+=b[r>>4&63],n+=b[r<<2&63],n+="="),a.push(n),a.join("")}i.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function y(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(t,r){if(y()<r)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=i.prototype):(t===null&&(t=new i(r)),t.length=r),t}function i(t,r,e){if(!i.TYPED_ARRAY_SUPPORT&&!(this instanceof i))return new i(t,r,e);if(typeof t=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return Y(this,t)}return Z(this,t,r,e)}i.poolSize=8192;i._augment=function(t){return t.__proto__=i.prototype,t};function Z(t,r,e,o){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?Xr(t,r,e,o):typeof r=="string"?Vr(t,r,e):qr(t,r)}i.from=function(t,r,e){return Z(null,t,r,e)};i.kMaxLength=y();i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&i[Symbol.species]);function j(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Hr(t,r,e,o){return j(r),r<=0?d(t,r):e!==void 0?typeof o=="string"?d(t,r).fill(e,o):d(t,r).fill(e):d(t,r)}i.alloc=function(t,r,e){return Hr(null,t,r,e)};function Y(t,r){if(j(r),t=d(t,r<0?0:G(r)|0),!i.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}i.allocUnsafe=function(t){return Y(null,t)};i.allocUnsafeSlow=function(t){return Y(null,t)};function Vr(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var o=rr(r,e)|0;t=d(t,o);var n=t.write(r,e);return n!==o&&(t=t.slice(0,n)),t}function B(t,r){var e=r.length<0?0:G(r.length)|0;t=d(t,e);for(var o=0;o<e;o+=1)t[o]=r[o]&255;return t}function Xr(t,r,e,o){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(o||0))throw new RangeError("'length' is out of bounds");return e===void 0&&o===void 0?r=new Uint8Array(r):o===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,o),i.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=i.prototype):t=B(t,r),t}function qr(t,r){if(R(r)){var e=G(r.length)|0;return t=d(t,e),t.length===0||r.copy(t,0,0,e),t}if(r){if(typeof ArrayBuffer<"u"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||le(r.length)?d(t,0):B(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return B(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function G(t){if(t>=y())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y().toString(16)+" bytes");return t|0}i.isBuffer=_e;function R(t){return!!(t!=null&&t._isBuffer)}i.compare=function(r,e){if(!R(r)||!R(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var o=r.length,n=e.length,a=0,p=Math.min(o,n);a<p;++a)if(r[a]!==e[a]){o=r[a],n=e[a];break}return o<n?-1:n<o?1:0};i.isEncoding=function(r){switch(String(r).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(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return i.alloc(0);var o;if(e===void 0)for(e=0,o=0;o<r.length;++o)e+=r[o].length;var n=i.allocUnsafe(e),a=0;for(o=0;o<r.length;++o){var p=r[o];if(!R(p))throw new TypeError('"list" argument must be an Array of Buffers');p.copy(n,a),a+=p.length}return n};function rr(t,r){if(R(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;if(e===0)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return v(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return pr(t).length;default:if(o)return v(t).length;r=(""+r).toLowerCase(),o=!0}}i.byteLength=rr;function zr(t,r,e){var o=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ne(this,r,e);case"utf8":case"utf-8":return or(this,r,e);case"ascii":return te(this,r,e);case"latin1":case"binary":return oe(this,r,e);case"base64":return re(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,r,e);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}i.prototype._isBuffer=!0;function D(t,r,e){var o=t[r];t[r]=t[e],t[e]=o}i.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)D(this,e,e+1);return this};i.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)D(this,e,e+3),D(this,e+1,e+2);return this};i.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)D(this,e,e+7),D(this,e+1,e+6),D(this,e+2,e+5),D(this,e+3,e+4);return this};i.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?or(this,0,r):zr.apply(this,arguments)};i.prototype.equals=function(r){if(!R(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:i.compare(this,r)===0};i.prototype.compare=function(r,e,o,n,a){if(!R(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),o===void 0&&(o=r?r.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),e<0||o>r.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&e>=o)return 0;if(n>=a)return-1;if(e>=o)return 1;if(e>>>=0,o>>>=0,n>>>=0,a>>>=0,this===r)return 0;for(var p=a-n,E=o-e,s=Math.min(p,E),l=this.slice(n,a),_=r.slice(e,o),u=0;u<s;++u)if(l[u]!==_[u]){p=l[u],E=_[u];break}return p<E?-1:E<p?1:0};function er(t,r,e,o,n){if(t.length===0)return-1;if(typeof e=="string"?(o=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=n?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(n)return-1;e=t.length-1}else if(e<0)if(n)e=0;else return-1;if(typeof r=="string"&&(r=i.from(r,o)),R(r))return r.length===0?-1:J(t,r,e,o,n);if(typeof r=="number")return r=r&255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):J(t,[r],e,o,n);throw new TypeError("val must be string, number or Buffer")}function J(t,r,e,o,n){var a=1,p=t.length,E=r.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,p/=2,E/=2,e/=2}function s(f,C){return a===1?f[C]:f.readUInt16BE(C*a)}var l;if(n){var _=-1;for(l=e;l<p;l++)if(s(t,l)===s(r,_===-1?0:l-_)){if(_===-1&&(_=l),l-_+1===E)return _*a}else _!==-1&&(l-=l-_),_=-1}else for(e+E>p&&(e=p-E),l=e;l>=0;l--){for(var u=!0,m=0;m<E;m++)if(s(t,l+m)!==s(r,m)){u=!1;break}if(u)return l}return-1}i.prototype.includes=function(r,e,o){return this.indexOf(r,e,o)!==-1};i.prototype.indexOf=function(r,e,o){return er(this,r,e,o,!0)};i.prototype.lastIndexOf=function(r,e,o){return er(this,r,e,o,!1)};function Jr(t,r,e,o){e=Number(e)||0;var n=t.length-e;o?(o=Number(o),o>n&&(o=n)):o=n;var a=r.length;if(a%2!==0)throw new TypeError("Invalid hex string");o>a/2&&(o=a/2);for(var p=0;p<o;++p){var E=parseInt(r.substr(p*2,2),16);if(isNaN(E))return p;t[e+p]=E}return p}function Qr(t,r,e,o){return M(v(r,t.length-e),t,e,o)}function tr(t,r,e,o){return M(se(r),t,e,o)}function $r(t,r,e,o){return tr(t,r,e,o)}function Zr(t,r,e,o){return M(pr(r),t,e,o)}function jr(t,r,e,o){return M(ue(r,t.length-e),t,e,o)}i.prototype.write=function(r,e,o,n){if(e===void 0)n="utf8",o=this.length,e=0;else if(o===void 0&&typeof e=="string")n=e,o=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(o)?(o=o|0,n===void 0&&(n="utf8")):(n=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((o===void 0||o>a)&&(o=a),r.length>0&&(o<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return Jr(this,r,e,o);case"utf8":case"utf-8":return Qr(this,r,e,o);case"ascii":return tr(this,r,e,o);case"latin1":case"binary":return $r(this,r,e,o);case"base64":return Zr(this,r,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jr(this,r,e,o);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}};i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(t,r,e){return r===0&&e===t.length?z(t):z(t.slice(r,e))}function or(t,r,e){e=Math.min(t.length,e);for(var o=[],n=r;n<e;){var a=t[n],p=null,E=a>239?4:a>223?3:a>191?2:1;if(n+E<=e){var s,l,_,u;switch(E){case 1:a<128&&(p=a);break;case 2:s=t[n+1],(s&192)===128&&(u=(a&31)<<6|s&63,u>127&&(p=u));break;case 3:s=t[n+1],l=t[n+2],(s&192)===128&&(l&192)===128&&(u=(a&15)<<12|(s&63)<<6|l&63,u>2047&&(u<55296||u>57343)&&(p=u));break;case 4:s=t[n+1],l=t[n+2],_=t[n+3],(s&192)===128&&(l&192)===128&&(_&192)===128&&(u=(a&15)<<18|(s&63)<<12|(l&63)<<6|_&63,u>65535&&u<1114112&&(p=u))}}p===null?(p=65533,E=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),n+=E}return ee(o)}var Q=4096;function ee(t){var r=t.length;if(r<=Q)return String.fromCharCode.apply(String,t);for(var e="",o=0;o<r;)e+=String.fromCharCode.apply(String,t.slice(o,o+=Q));return e}function te(t,r,e){var o="";e=Math.min(t.length,e);for(var n=r;n<e;++n)o+=String.fromCharCode(t[n]&127);return o}function oe(t,r,e){var o="";e=Math.min(t.length,e);for(var n=r;n<e;++n)o+=String.fromCharCode(t[n]);return o}function ne(t,r,e){var o=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>o)&&(e=o);for(var n="",a=r;a<e;++a)n+=Ee(t[a]);return n}function ie(t,r,e){for(var o=t.slice(r,e),n="",a=0;a<o.length;a+=2)n+=String.fromCharCode(o[a]+o[a+1]*256);return n}i.prototype.slice=function(r,e){var o=this.length;r=~~r,e=e===void 0?o:~~e,r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),e<r&&(e=r);var n;if(i.TYPED_ARRAY_SUPPORT)n=this.subarray(r,e),n.__proto__=i.prototype;else{var a=e-r;n=new i(a,void 0);for(var p=0;p<a;++p)n[p]=this[p+r]}return n};function h(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUIntLE=function(r,e,o){r=r|0,e=e|0,o||h(r,e,this.length);for(var n=this[r],a=1,p=0;++p<e&&(a*=256);)n+=this[r+p]*a;return n};i.prototype.readUIntBE=function(r,e,o){r=r|0,e=e|0,o||h(r,e,this.length);for(var n=this[r+--e],a=1;e>0&&(a*=256);)n+=this[r+--e]*a;return n};i.prototype.readUInt8=function(r,e){return e||h(r,1,this.length),this[r]};i.prototype.readUInt16LE=function(r,e){return e||h(r,2,this.length),this[r]|this[r+1]<<8};i.prototype.readUInt16BE=function(r,e){return e||h(r,2,this.length),this[r]<<8|this[r+1]};i.prototype.readUInt32LE=function(r,e){return e||h(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};i.prototype.readUInt32BE=function(r,e){return e||h(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};i.prototype.readIntLE=function(r,e,o){r=r|0,e=e|0,o||h(r,e,this.length);for(var n=this[r],a=1,p=0;++p<e&&(a*=256);)n+=this[r+p]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*e)),n};i.prototype.readIntBE=function(r,e,o){r=r|0,e=e|0,o||h(r,e,this.length);for(var n=e,a=1,p=this[r+--n];n>0&&(a*=256);)p+=this[r+--n]*a;return a*=128,p>=a&&(p-=Math.pow(2,8*e)),p};i.prototype.readInt8=function(r,e){return e||h(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};i.prototype.readInt16LE=function(r,e){e||h(r,2,this.length);var o=this[r]|this[r+1]<<8;return o&32768?o|4294901760:o};i.prototype.readInt16BE=function(r,e){e||h(r,2,this.length);var o=this[r+1]|this[r]<<8;return o&32768?o|4294901760:o};i.prototype.readInt32LE=function(r,e){return e||h(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};i.prototype.readInt32BE=function(r,e){return e||h(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};i.prototype.readFloatLE=function(r,e){return e||h(r,4,this.length),k(this,r,!0,23,4)};i.prototype.readFloatBE=function(r,e){return e||h(r,4,this.length),k(this,r,!1,23,4)};i.prototype.readDoubleLE=function(r,e){return e||h(r,8,this.length),k(this,r,!0,52,8)};i.prototype.readDoubleBE=function(r,e){return e||h(r,8,this.length),k(this,r,!1,52,8)};function T(t,r,e,o,n,a){if(!R(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<a)throw new RangeError('"value" argument is out of bounds');if(e+o>t.length)throw new RangeError("Index out of range")}i.prototype.writeUIntLE=function(r,e,o,n){if(r=+r,e=e|0,o=o|0,!n){var a=Math.pow(2,8*o)-1;T(this,r,e,o,a,0)}var p=1,E=0;for(this[e]=r&255;++E<o&&(p*=256);)this[e+E]=r/p&255;return e+o};i.prototype.writeUIntBE=function(r,e,o,n){if(r=+r,e=e|0,o=o|0,!n){var a=Math.pow(2,8*o)-1;T(this,r,e,o,a,0)}var p=o-1,E=1;for(this[e+p]=r&255;--p>=0&&(E*=256);)this[e+p]=r/E&255;return e+o};i.prototype.writeUInt8=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function S(t,r,e,o){r<0&&(r=65535+r+1);for(var n=0,a=Math.min(t.length-e,2);n<a;++n)t[e+n]=(r&255<<8*(o?n:1-n))>>>(o?n:1-n)*8}i.prototype.writeUInt16LE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):S(this,r,e,!0),e+2};i.prototype.writeUInt16BE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):S(this,r,e,!1),e+2};function U(t,r,e,o){r<0&&(r=4294967295+r+1);for(var n=0,a=Math.min(t.length-e,4);n<a;++n)t[e+n]=r>>>(o?n:3-n)*8&255}i.prototype.writeUInt32LE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):U(this,r,e,!0),e+4};i.prototype.writeUInt32BE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):U(this,r,e,!1),e+4};i.prototype.writeIntLE=function(r,e,o,n){if(r=+r,e=e|0,!n){var a=Math.pow(2,8*o-1);T(this,r,e,o,a-1,-a)}var p=0,E=1,s=0;for(this[e]=r&255;++p<o&&(E*=256);)r<0&&s===0&&this[e+p-1]!==0&&(s=1),this[e+p]=(r/E>>0)-s&255;return e+o};i.prototype.writeIntBE=function(r,e,o,n){if(r=+r,e=e|0,!n){var a=Math.pow(2,8*o-1);T(this,r,e,o,a-1,-a)}var p=o-1,E=1,s=0;for(this[e+p]=r&255;--p>=0&&(E*=256);)r<0&&s===0&&this[e+p+1]!==0&&(s=1),this[e+p]=(r/E>>0)-s&255;return e+o};i.prototype.writeInt8=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};i.prototype.writeInt16LE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):S(this,r,e,!0),e+2};i.prototype.writeInt16BE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):S(this,r,e,!1),e+2};i.prototype.writeInt32LE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):U(this,r,e,!0),e+4};i.prototype.writeInt32BE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),i.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):U(this,r,e,!1),e+4};function nr(t,r,e,o,n,a){if(e+o>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function ir(t,r,e,o,n){return n||nr(t,r,e,4,34028234663852886e22,-34028234663852886e22),Er(t,r,e,o,23,4),e+4}i.prototype.writeFloatLE=function(r,e,o){return ir(this,r,e,!0,o)};i.prototype.writeFloatBE=function(r,e,o){return ir(this,r,e,!1,o)};function ar(t,r,e,o,n){return n||nr(t,r,e,8,17976931348623157e292,-17976931348623157e292),Er(t,r,e,o,52,8),e+8}i.prototype.writeDoubleLE=function(r,e,o){return ar(this,r,e,!0,o)};i.prototype.writeDoubleBE=function(r,e,o){return ar(this,r,e,!1,o)};i.prototype.copy=function(r,e,o,n){if(o||(o=0),!n&&n!==0&&(n=this.length),e>=r.length&&(e=r.length),e||(e=0),n>0&&n<o&&(n=o),n===o||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-e<n-o&&(n=r.length-e+o);var a=n-o,p;if(this===r&&o<e&&e<n)for(p=a-1;p>=0;--p)r[p+e]=this[p+o];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(p=0;p<a;++p)r[p+e]=this[p+o];else Uint8Array.prototype.set.call(r,this.subarray(o,o+a),e);return a};i.prototype.fill=function(r,e,o,n){if(typeof r=="string"){if(typeof e=="string"?(n=e,e=0,o=this.length):typeof o=="string"&&(n=o,o=this.length),r.length===1){var a=r.charCodeAt(0);a<256&&(r=a)}if(n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<o)throw new RangeError("Out of range index");if(o<=e)return this;e=e>>>0,o=o===void 0?this.length:o>>>0,r||(r=0);var p;if(typeof r=="number")for(p=e;p<o;++p)this[p]=r;else{var E=R(r)?r:v(new i(r,n).toString()),s=E.length;for(p=0;p<o-e;++p)this[p+e]=E[p%s]}return this};var ae=/[^+\/0-9A-Za-z-_]/g;function pe(t){if(t=ce(t).replace(ae,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ce(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Ee(t){return t<16?"0"+t.toString(16):t.toString(16)}function v(t,r){r=r||1/0;for(var e,o=t.length,n=null,a=[],p=0;p<o;++p){if(e=t.charCodeAt(p),e>55295&&e<57344){if(!n){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(p+1===o){(r-=3)>-1&&a.push(239,191,189);continue}n=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),n=e;continue}e=(n-55296<<10|e-56320)+65536}else n&&(r-=3)>-1&&a.push(239,191,189);if(n=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function se(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ue(t,r){for(var e,o,n,a=[],p=0;p<t.length&&!((r-=2)<0);++p)e=t.charCodeAt(p),o=e>>8,n=e%256,a.push(n),a.push(o);return a}function pr(t){return Gr(pe(t))}function M(t,r,e,o){for(var n=0;n<o&&!(n+e>=r.length||n>=t.length);++n)r[n+e]=t[n];return n}function le(t){return t!==t}function _e(t){return t!=null&&(!!t._isBuffer||cr(t)||he(t))}function cr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function he(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&cr(t.slice(0,0))}function k(t,r,e,o,n){var a,p,E=n*8-o-1,s=(1<<E)-1,l=s>>1,_=-7,u=e?n-1:0,m=e?-1:1,f=t[r+u];for(u+=m,a=f&(1<<-_)-1,f>>=-_,_+=E;_>0;a=a*256+t[r+u],u+=m,_-=8);for(p=a&(1<<-_)-1,a>>=-_,_+=o;_>0;p=p*256+t[r+u],u+=m,_-=8);if(a===0)a=1-l;else{if(a===s)return p?NaN:(f?-1:1)*(1/0);p=p+Math.pow(2,o),a=a-l}return(f?-1:1)*p*Math.pow(2,a-o)}function Er(t,r,e,o,n,a){var p,E,s,l=a*8-n-1,_=(1<<l)-1,u=_>>1,m=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:a-1,C=o?1:-1,lr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(E=isNaN(r)?1:0,p=_):(p=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-p))<1&&(p--,s*=2),p+u>=1?r+=m/s:r+=m*Math.pow(2,1-u),r*s>=2&&(p++,s/=2),p+u>=_?(E=0,p=_):p+u>=1?(E=(r*s-1)*Math.pow(2,n),p=p+u):(E=r*Math.pow(2,u-1)*Math.pow(2,n),p=0));n>=8;t[e+f]=E&255,f+=C,E/=256,n-=8);for(p=p<<n|E,l+=n;l>0;t[e+f]=p&255,f+=C,p/=256,l-=8);t[e+f-C]|=lr*128}var Ne=864e5,ge=30;var Le=18,we=1e5,Pe=1e3,ye=9e4,ve=30,Se=60,Ue=328,Me=1,ke=18,Be=36,Fe=248;var We={"0x4343545055534443000000000000000000000000000000000000000000000000":65537};var qe={SUCCESS:200,CREATED:201,ACCEPTED:202,NOCONTENT:204,BADREQUEST:400,FORBIDDEN:403,NOTFOUND:404,TIMEOUT:408,TOOMANYREQ:429,INTERNALSERVER:500,BADGATEWAYS:502,SERVICEUNAVILABLE:503,GATEWAYTIMEOUT:504},ze={INSERT:"Data has been saved successfully.",ERROR:"Some error has been occured. Please try again.",SUCCESS:"Your request is executed successfully!",REQUIRED:"coin_type or price param is required",CAPTCHATEXTNOTFOUND:"Captcha text not found.",CAPTCHA_VERIFICATION_FAILED:"Captcha is not verified.",NOTEMPTY:"coin_type or price should not be empty",PAIR_LIST:"Pair list",PAIR_STATUS:"Pair status has been changed",ACTIVE_USERS:"Active Users",SETTINGS_NOT_FOUND:"No settings found in DB.",TRADE_IS_HALT:"Trading is disabled.",KYC_REQUIRED:"KYC is required for this action.",EMAIL_NOT_VERIFIED:"Your email is not verified.Please verify first.",NOT_BETA_USER:"Trade only works for beta user.",WRONG_PAIR_KEY:"Pair key not found.",PAIRDISABLED:"Temporarily order placement has been disabled for this pair. Please try again later.",BALANCE_NOT_SUFFICIENT:"You have insufficient balance.",MIN_TRADE_NOT_MATCHED:"Minimum trade limit does not matched.",ORDER_PLACED_SUCCESSFULLY:"Order has been placed successfully.",ORDER_NOT_FOUND:"Sorry this order id does not found.",ORDER_ALREADY_MATCHED:"Order already matched.",ORDER_ALREADY_CANCELED:"Order already cancelled.",ORDER_CANCELED_SUCCESSFULLY:"order successfully cancelled",ORDER_LIST:"Order list fetched successfully.",ORDER_EXIT:"Successfully exited from the position.",PAIRERR:"please provide pair param",ORDERSIDE:"side param is required",ORDERTYPE:"type param is required",ORDERIDREQ:"order_id param is required",ORDERDETAIL:"order detail",COMMODITYORICE:"commodity price",COMMODITYSPOT:"commodity spot updated",TOKEN_INSERTED:"ERC token has been added",PARAMREQ:"Parameter missing",EXIST:"Token Already Exist",BREACHEDTOKENS:"List of breached tokens",API_EXPOSE:{TOKEN_NOT_FOUND:"Token not found, Please get token and set to header.",ERROR:"Something went wrong, Please try again later"},LIMITED_UNITS:"ONLY {{units}} units are available. You can place your order with this amount",UNITS_UNAVAIL:"Amount unavailable",ORDER:{ERROR:"An error has been occured",UNITS_UNAVAIL:"Amount unavailable",LIMITED_UNITS:"ONLY {{units}} units are available. You can place your order with this amount",PLACED:"Order has been placed",NOPARAMS:"empty body params",ORDER_NOT_FOUND:"Sorry this order id not found.",ORDER_ALREADY_MATCHED:"Order already matched.",ORDER_ALREADY_CANCELED:"Order already cancelled.",ORDER_CANCELED_SUCCESSFULLY:"Order cancelled successfully"},DOMAIN_NOT_FOUND:"domain not found"},Je={SMALLESTUNIT:c.env.SMALLEST_UNIT},Qe={SMALLEST_UNITS:c.env.SMALLEST_UNIT},$e={AVAILABLE_ASSETS_PER_USER:1,AVAILABLE_ASSETS_PER_IP:3};var et=`{"theme1":{"value":"${c.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${c.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${c.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;var pt=["point-system.discordEnabled","point-system.telegramBotName","point-system.telegramBotId","point-system.telegramEnabled","point-system.telegramGroupId","point-system.telegramGroupName","point-system.twitterAccountId","point-system.twitterAccountName","point-system.twitterEnabled","point-system.twitterJobEnabled","point-system.guideLink"],ct=["obdex","kycTradeRequirementEnabled","newTab","reportButtons"],Et=["geoblock","pinnedPairs","customMenuItems","chartInt"];var _t=t=>`By signing this message, you confirm that the wallet is a trusted one ${t}; Data: `;var At=c.env.REACT_APP_API_URL,mt=c.env.REACT_APP_SOCKET_URL,bt=c.env.REACT_APP_ALGO_SERVER,Rt=c.env.REACT_APP_ALGO_SERVER_PORT||"",It=c.env.REACT_APP_ALGOD_TOKEN||"",dt=c.env.REACT_APP_DISPENSER_LINK,Te=c.env.REACT_APP_FRONTEND_LINK||"",xt=c.env.REACT_APP_ALGO_EXPLORER_LINK,Nt=c.env.REACT_APP_ALGO_EXPLORER_ASSETS_URL,gt=(c.env.REACT_APP_REQUIRE_ACCESS_CODE||"").toLowerCase()==="true",Ot=c.env.REACT_APP_USERBACK_ACCESS_TOKEN,Dt=(c.env.REACT_APP_EXT_ORDER_TYPES||"").toLowerCase()==="true",Ct=4,Lt=100,wt=50,Pt=50,yt=.001*10**6,vt=.002*10**6,St="Ultrade",Ut=["theme1","theme2","theme3"],Mt=c.env.REACT_APP_MASTER_APP_ID||"406",kt=c.env.REACT_APP_AGG_APP_ID||"408",Bt=Number(c.env.REACT_APP_CODEX_APP_ID||"467960617"),Ft=3e3,fe=c.env.REACT_APP_ALGO_NETWORK||"",Yt=.3,Gt=1,Kt=Te==="https://dev.ultradedev.net",Wt="00:00",Ht=1e6,Ae=fe.toLowerCase()==="mainnet"?"mainnet":"testnet",Vt=/[^\p{L}\p{N} .,!?:@$%()_-]/gui,Xt=Ae==="mainnet"?416001:416002;var sr=(n=>(n.GLOBAL_PAIR_DELISTING="GLOBAL_PAIR_DELISTING",n.GLOBAL_NEW_PAIR_LISTING="GLOBAL_NEW_PAIR_LISTING",n.GLOBAL_SYSTEM_MAINTENANCE="GLOBAL_SYSTEM_MAINTENANCE",n.GLOBAL_SMART_CONTRACT_UPDATE="GLOBAL_SMART_CONTRACT_UPDATE",n))(sr||{}),ur=(o=>(o.ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT="ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT",o.ACCOUNT_KYC_STATUS_CHANGED="ACCOUNT_KYC_STATUS_CHANGED",o.ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED="ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED",o))(ur||{}),rn={...sr,...ur};var di={1:"canFollowAccounts",4:"canLikeTweets",2:"canCreateTweets",3:"canCreateTweets"},xi=99999999;export{kt as AGG_APP_ID,It as ALGOD_TOKEN,Nt as ALGO_EXPLORER_ASSETS_URL,xt as ALGO_EXPLORER_LINK,fe as ALGO_NETWORK,bt as ALGO_SERVER,Rt as ALGO_SERVER_PORT,At as API_HOST,vt as APP_CLOSEOUT_FEE,Je as BIGNUMBER,ct as BOOLEAN_SETTINGS,Qe as CALCULATIONS,We as CCTP_UNIFIED_ASSETS,Bt as CODEX_APP_ID,Ne as DAY_MILLISECONDS,Yt as DEFAULT_AGG_FEE,ye as DEFAULT_FEE_SHARE,ve as DEFAULT_ORDER_EXPIRATION_DAYS,dt as DISPENSER_LINK,St as EXCHANGE_NAME,ge as EXPIRE_DAYS,Dt as EXT_ORDER_TYPES,Le as FACTOR_PRICE_DECIMAL,we as FEE_SCALE,Pe as FRONTEND_FEE_SCALE,Te as FRONTEND_LINK,Ht as GASLIMIT,Ct as GLOWL_DECIMAL,Kt as IS_DEV,Et as JSON_ARRAY_SETTINGS,Pt as MARKET_TRADES_SIZE,Mt as MASTER_APP_ID,ke as MAX_TOKEN_DECIMAL,Se as MIN_ORDER_EXPIRATION_MINS,Ae as NETWORK,wt as ORDER_BOOK_BUFFER,Lt as ORDER_BOOK_SIZE,Ue as ORDER_DATA_BYTES_LENGTH,Me as ORDER_MSG_VERSION,Ft as PLATFORM_FEE,xi as POINTS_MAX_VALUE,Xt as PeraChainId,pt as PointSystemSettingsIds,gt as REACT_APP_REQUIRE_ACCESS_CODE,qe as RESPONSES,ze as RES_MSG,$e as SERVER,Be as SHARE_DATA_LENGTH,mt as SOCKET_URL,Ut as THEMES,Gt as ULTRADE_ID,Ot as USERBACK_ACCESS_TOKEN,Fe as WITHDRAW_DATA_BYTES_LENGTH,yt as WITHDRAW_FEE,Wt as ZERO_TIMER,_t as messageForSigning,Vt as sanitizeRegex,di as twitterActionToPermissionMap};
|
|
1
|
+
function W(){throw new Error("setTimeout has not been defined")}function H(){throw new Error("clearTimeout has not been defined")}var x=W,N=H;typeof globalThis.setTimeout=="function"&&(x=setTimeout);typeof globalThis.clearTimeout=="function"&&(N=clearTimeout);function V(t){if(x===setTimeout)return setTimeout(t,0);if((x===W||!x)&&setTimeout)return x=setTimeout,setTimeout(t,0);try{return x(t,0)}catch{try{return x.call(null,t,0)}catch{return x.call(this,t,0)}}}function _r(t){if(N===clearTimeout)return clearTimeout(t);if((N===H||!N)&&clearTimeout)return N=clearTimeout,clearTimeout(t);try{return N(t)}catch{try{return N.call(null,t)}catch{return N.call(this,t)}}}var I=[],w=!1,g,P=-1;function hr(){!w||!g||(w=!1,g.length?I=g.concat(I):P=-1,I.length&&X())}function X(){if(!w){var t=V(hr);w=!0;for(var r=I.length;r;){for(g=I,I=[];++P<r;)g&&g[P].run();P=-1,r=I.length}g=null,w=!1,_r(t)}}function Tr(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];I.push(new q(t,r)),I.length===1&&!w&&V(X)}function q(t,r){this.fun=t,this.array=r}q.prototype.run=function(){this.fun.apply(null,this.array)};var fr="browser",Ar="browser",mr=!0,br={},Rr=[],Ir="",dr={},xr={},Nr={};function O(){}var gr=O,Or=O,Cr=O,Dr=O,Lr=O,wr=O,Pr=O;function yr(t){throw new Error("process.binding is not supported")}function vr(){return"/"}function Sr(t){throw new Error("process.chdir is not supported")}function Ur(){return 0}var L=globalThis.performance||{},Mr=L.now||L.mozNow||L.msNow||L.oNow||L.webkitNow||function(){return new Date().getTime()};function kr(t){var r=Mr.call(L)*.001,e=Math.floor(r),o=Math.floor(r%1*1e9);return t&&(e=e-t[0],o=o-t[1],o<0&&(e--,o+=1e9)),[e,o]}var Br=new Date;function Fr(){var t=new Date,r=t-Br;return r/1e3}var c={nextTick:Tr,title:fr,browser:mr,env:br,argv:Rr,version:Ir,versions:dr,on:gr,addListener:Or,once:Cr,off:Dr,removeListener:Lr,removeAllListeners:wr,emit:Pr,binding:yr,cwd:vr,chdir:Sr,umask:Ur,hrtime:kr,platform:Ar,release:xr,config:Nr,uptime:Fr},K={};Object.keys(K).forEach(t=>{let r=t.split("."),e=c;for(let o=0;o<r.length;o++){let n=r[o];o===r.length-1?e[n]=K[t]:e=e[n]||(e[n]={})}});var b=[],A=[],Yr=typeof Uint8Array<"u"?Uint8Array:Array,F=!1;function $(){F=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)b[r]=t[r],A[t.charCodeAt(r)]=r;A[45]=62,A[95]=63}function Gr(t){F||$();var r,e,o,n,a,p,E=t.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[E-2]==="="?2:t[E-1]==="="?1:0,p=new Yr(E*3/4-a),o=a>0?E-4:E;var s=0;for(r=0,e=0;r<o;r+=4,e+=3)n=A[t.charCodeAt(r)]<<18|A[t.charCodeAt(r+1)]<<12|A[t.charCodeAt(r+2)]<<6|A[t.charCodeAt(r+3)],p[s++]=n>>16&255,p[s++]=n>>8&255,p[s++]=n&255;return a===2?(n=A[t.charCodeAt(r)]<<2|A[t.charCodeAt(r+1)]>>4,p[s++]=n&255):a===1&&(n=A[t.charCodeAt(r)]<<10|A[t.charCodeAt(r+1)]<<4|A[t.charCodeAt(r+2)]>>2,p[s++]=n>>8&255,p[s++]=n&255),p}function Kr(t){return b[t>>18&63]+b[t>>12&63]+b[t>>6&63]+b[t&63]}function Wr(t,r,e){for(var o,n=[],a=r;a<e;a+=3)o=(t[a]<<16)+(t[a+1]<<8)+t[a+2],n.push(Kr(o));return n.join("")}function z(t){F||$();for(var r,e=t.length,o=e%3,n="",a=[],p=16383,E=0,s=e-o;E<s;E+=p)a.push(Wr(t,E,E+p>s?s:E+p));return o===1?(r=t[e-1],n+=b[r>>2],n+=b[r<<4&63],n+="=="):o===2&&(r=(t[e-2]<<8)+t[e-1],n+=b[r>>10],n+=b[r>>4&63],n+=b[r<<2&63],n+="="),a.push(n),a.join("")}i.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function y(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(t,r){if(y()<r)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=i.prototype):(t===null&&(t=new i(r)),t.length=r),t}function i(t,r,e){if(!i.TYPED_ARRAY_SUPPORT&&!(this instanceof i))return new i(t,r,e);if(typeof t=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return Y(this,t)}return Z(this,t,r,e)}i.poolSize=8192;i._augment=function(t){return t.__proto__=i.prototype,t};function Z(t,r,e,o){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?Xr(t,r,e,o):typeof r=="string"?Vr(t,r,e):qr(t,r)}i.from=function(t,r,e){return Z(null,t,r,e)};i.kMaxLength=y();i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&i[Symbol.species]);function j(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Hr(t,r,e,o){return j(r),r<=0?d(t,r):e!==void 0?typeof o=="string"?d(t,r).fill(e,o):d(t,r).fill(e):d(t,r)}i.alloc=function(t,r,e){return Hr(null,t,r,e)};function Y(t,r){if(j(r),t=d(t,r<0?0:G(r)|0),!i.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}i.allocUnsafe=function(t){return Y(null,t)};i.allocUnsafeSlow=function(t){return Y(null,t)};function Vr(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!i.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var o=rr(r,e)|0;t=d(t,o);var n=t.write(r,e);return n!==o&&(t=t.slice(0,n)),t}function B(t,r){var e=r.length<0?0:G(r.length)|0;t=d(t,e);for(var o=0;o<e;o+=1)t[o]=r[o]&255;return t}function Xr(t,r,e,o){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(o||0))throw new RangeError("'length' is out of bounds");return e===void 0&&o===void 0?r=new Uint8Array(r):o===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,o),i.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=i.prototype):t=B(t,r),t}function qr(t,r){if(R(r)){var e=G(r.length)|0;return t=d(t,e),t.length===0||r.copy(t,0,0,e),t}if(r){if(typeof ArrayBuffer<"u"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||le(r.length)?d(t,0):B(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return B(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function G(t){if(t>=y())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y().toString(16)+" bytes");return t|0}i.isBuffer=_e;function R(t){return!!(t!=null&&t._isBuffer)}i.compare=function(r,e){if(!R(r)||!R(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var o=r.length,n=e.length,a=0,p=Math.min(o,n);a<p;++a)if(r[a]!==e[a]){o=r[a],n=e[a];break}return o<n?-1:n<o?1:0};i.isEncoding=function(r){switch(String(r).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(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return i.alloc(0);var o;if(e===void 0)for(e=0,o=0;o<r.length;++o)e+=r[o].length;var n=i.allocUnsafe(e),a=0;for(o=0;o<r.length;++o){var p=r[o];if(!R(p))throw new TypeError('"list" argument must be an Array of Buffers');p.copy(n,a),a+=p.length}return n};function rr(t,r){if(R(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;if(e===0)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return v(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return pr(t).length;default:if(o)return v(t).length;r=(""+r).toLowerCase(),o=!0}}i.byteLength=rr;function zr(t,r,e){var o=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return ne(this,r,e);case"utf8":case"utf-8":return or(this,r,e);case"ascii":return te(this,r,e);case"latin1":case"binary":return oe(this,r,e);case"base64":return re(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,r,e);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}i.prototype._isBuffer=!0;function C(t,r,e){var o=t[r];t[r]=t[e],t[e]=o}i.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)C(this,e,e+1);return this};i.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)C(this,e,e+3),C(this,e+1,e+2);return this};i.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;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(){var r=this.length|0;return r===0?"":arguments.length===0?or(this,0,r):zr.apply(this,arguments)};i.prototype.equals=function(r){if(!R(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:i.compare(this,r)===0};i.prototype.compare=function(r,e,o,n,a){if(!R(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),o===void 0&&(o=r?r.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),e<0||o>r.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&e>=o)return 0;if(n>=a)return-1;if(e>=o)return 1;if(e>>>=0,o>>>=0,n>>>=0,a>>>=0,this===r)return 0;for(var p=a-n,E=o-e,s=Math.min(p,E),l=this.slice(n,a),_=r.slice(e,o),u=0;u<s;++u)if(l[u]!==_[u]){p=l[u],E=_[u];break}return p<E?-1:E<p?1:0};function er(t,r,e,o,n){if(t.length===0)return-1;if(typeof e=="string"?(o=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=n?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(n)return-1;e=t.length-1}else if(e<0)if(n)e=0;else return-1;if(typeof r=="string"&&(r=i.from(r,o)),R(r))return r.length===0?-1:J(t,r,e,o,n);if(typeof r=="number")return r=r&255,i.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):J(t,[r],e,o,n);throw new TypeError("val must be string, number or Buffer")}function J(t,r,e,o,n){var a=1,p=t.length,E=r.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,p/=2,E/=2,e/=2}function s(f,D){return a===1?f[D]:f.readUInt16BE(D*a)}var l;if(n){var _=-1;for(l=e;l<p;l++)if(s(t,l)===s(r,_===-1?0:l-_)){if(_===-1&&(_=l),l-_+1===E)return _*a}else _!==-1&&(l-=l-_),_=-1}else for(e+E>p&&(e=p-E),l=e;l>=0;l--){for(var u=!0,m=0;m<E;m++)if(s(t,l+m)!==s(r,m)){u=!1;break}if(u)return l}return-1}i.prototype.includes=function(r,e,o){return this.indexOf(r,e,o)!==-1};i.prototype.indexOf=function(r,e,o){return er(this,r,e,o,!0)};i.prototype.lastIndexOf=function(r,e,o){return er(this,r,e,o,!1)};function Jr(t,r,e,o){e=Number(e)||0;var n=t.length-e;o?(o=Number(o),o>n&&(o=n)):o=n;var a=r.length;if(a%2!==0)throw new TypeError("Invalid hex string");o>a/2&&(o=a/2);for(var p=0;p<o;++p){var E=parseInt(r.substr(p*2,2),16);if(isNaN(E))return p;t[e+p]=E}return p}function Qr(t,r,e,o){return M(v(r,t.length-e),t,e,o)}function tr(t,r,e,o){return M(se(r),t,e,o)}function $r(t,r,e,o){return tr(t,r,e,o)}function Zr(t,r,e,o){return M(pr(r),t,e,o)}function jr(t,r,e,o){return M(ue(r,t.length-e),t,e,o)}i.prototype.write=function(r,e,o,n){if(e===void 0)n="utf8",o=this.length,e=0;else if(o===void 0&&typeof e=="string")n=e,o=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(o)?(o=o|0,n===void 0&&(n="utf8")):(n=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((o===void 0||o>a)&&(o=a),r.length>0&&(o<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return Jr(this,r,e,o);case"utf8":case"utf-8":return Qr(this,r,e,o);case"ascii":return tr(this,r,e,o);case"latin1":case"binary":return $r(this,r,e,o);case"base64":return Zr(this,r,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jr(this,r,e,o);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}};i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function re(t,r,e){return r===0&&e===t.length?z(t):z(t.slice(r,e))}function or(t,r,e){e=Math.min(t.length,e);for(var o=[],n=r;n<e;){var a=t[n],p=null,E=a>239?4:a>223?3:a>191?2:1;if(n+E<=e){var s,l,_,u;switch(E){case 1:a<128&&(p=a);break;case 2:s=t[n+1],(s&192)===128&&(u=(a&31)<<6|s&63,u>127&&(p=u));break;case 3:s=t[n+1],l=t[n+2],(s&192)===128&&(l&192)===128&&(u=(a&15)<<12|(s&63)<<6|l&63,u>2047&&(u<55296||u>57343)&&(p=u));break;case 4:s=t[n+1],l=t[n+2],_=t[n+3],(s&192)===128&&(l&192)===128&&(_&192)===128&&(u=(a&15)<<18|(s&63)<<12|(l&63)<<6|_&63,u>65535&&u<1114112&&(p=u))}}p===null?(p=65533,E=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),n+=E}return ee(o)}var Q=4096;function ee(t){var r=t.length;if(r<=Q)return String.fromCharCode.apply(String,t);for(var e="",o=0;o<r;)e+=String.fromCharCode.apply(String,t.slice(o,o+=Q));return e}function te(t,r,e){var o="";e=Math.min(t.length,e);for(var n=r;n<e;++n)o+=String.fromCharCode(t[n]&127);return o}function oe(t,r,e){var o="";e=Math.min(t.length,e);for(var n=r;n<e;++n)o+=String.fromCharCode(t[n]);return o}function ne(t,r,e){var o=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>o)&&(e=o);for(var n="",a=r;a<e;++a)n+=Ee(t[a]);return n}function ie(t,r,e){for(var o=t.slice(r,e),n="",a=0;a<o.length;a+=2)n+=String.fromCharCode(o[a]+o[a+1]*256);return n}i.prototype.slice=function(r,e){var o=this.length;r=~~r,e=e===void 0?o:~~e,r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),e<r&&(e=r);var n;if(i.TYPED_ARRAY_SUPPORT)n=this.subarray(r,e),n.__proto__=i.prototype;else{var a=e-r;n=new i(a,void 0);for(var p=0;p<a;++p)n[p]=this[p+r]}return n};function h(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}i.prototype.readUIntLE=function(r,e,o){r=r|0,e=e|0,o||h(r,e,this.length);for(var n=this[r],a=1,p=0;++p<e&&(a*=256);)n+=this[r+p]*a;return n};i.prototype.readUIntBE=function(r,e,o){r=r|0,e=e|0,o||h(r,e,this.length);for(var n=this[r+--e],a=1;e>0&&(a*=256);)n+=this[r+--e]*a;return n};i.prototype.readUInt8=function(r,e){return e||h(r,1,this.length),this[r]};i.prototype.readUInt16LE=function(r,e){return e||h(r,2,this.length),this[r]|this[r+1]<<8};i.prototype.readUInt16BE=function(r,e){return e||h(r,2,this.length),this[r]<<8|this[r+1]};i.prototype.readUInt32LE=function(r,e){return e||h(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};i.prototype.readUInt32BE=function(r,e){return e||h(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};i.prototype.readIntLE=function(r,e,o){r=r|0,e=e|0,o||h(r,e,this.length);for(var n=this[r],a=1,p=0;++p<e&&(a*=256);)n+=this[r+p]*a;return a*=128,n>=a&&(n-=Math.pow(2,8*e)),n};i.prototype.readIntBE=function(r,e,o){r=r|0,e=e|0,o||h(r,e,this.length);for(var n=e,a=1,p=this[r+--n];n>0&&(a*=256);)p+=this[r+--n]*a;return a*=128,p>=a&&(p-=Math.pow(2,8*e)),p};i.prototype.readInt8=function(r,e){return e||h(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};i.prototype.readInt16LE=function(r,e){e||h(r,2,this.length);var o=this[r]|this[r+1]<<8;return o&32768?o|4294901760:o};i.prototype.readInt16BE=function(r,e){e||h(r,2,this.length);var o=this[r+1]|this[r]<<8;return o&32768?o|4294901760:o};i.prototype.readInt32LE=function(r,e){return e||h(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};i.prototype.readInt32BE=function(r,e){return e||h(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};i.prototype.readFloatLE=function(r,e){return e||h(r,4,this.length),k(this,r,!0,23,4)};i.prototype.readFloatBE=function(r,e){return e||h(r,4,this.length),k(this,r,!1,23,4)};i.prototype.readDoubleLE=function(r,e){return e||h(r,8,this.length),k(this,r,!0,52,8)};i.prototype.readDoubleBE=function(r,e){return e||h(r,8,this.length),k(this,r,!1,52,8)};function T(t,r,e,o,n,a){if(!R(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<a)throw new RangeError('"value" argument is out of bounds');if(e+o>t.length)throw new RangeError("Index out of range")}i.prototype.writeUIntLE=function(r,e,o,n){if(r=+r,e=e|0,o=o|0,!n){var a=Math.pow(2,8*o)-1;T(this,r,e,o,a,0)}var p=1,E=0;for(this[e]=r&255;++E<o&&(p*=256);)this[e+E]=r/p&255;return e+o};i.prototype.writeUIntBE=function(r,e,o,n){if(r=+r,e=e|0,o=o|0,!n){var a=Math.pow(2,8*o)-1;T(this,r,e,o,a,0)}var p=o-1,E=1;for(this[e+p]=r&255;--p>=0&&(E*=256);)this[e+p]=r/E&255;return e+o};i.prototype.writeUInt8=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function S(t,r,e,o){r<0&&(r=65535+r+1);for(var n=0,a=Math.min(t.length-e,2);n<a;++n)t[e+n]=(r&255<<8*(o?n:1-n))>>>(o?n:1-n)*8}i.prototype.writeUInt16LE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):S(this,r,e,!0),e+2};i.prototype.writeUInt16BE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):S(this,r,e,!1),e+2};function U(t,r,e,o){r<0&&(r=4294967295+r+1);for(var n=0,a=Math.min(t.length-e,4);n<a;++n)t[e+n]=r>>>(o?n:3-n)*8&255}i.prototype.writeUInt32LE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):U(this,r,e,!0),e+4};i.prototype.writeUInt32BE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):U(this,r,e,!1),e+4};i.prototype.writeIntLE=function(r,e,o,n){if(r=+r,e=e|0,!n){var a=Math.pow(2,8*o-1);T(this,r,e,o,a-1,-a)}var p=0,E=1,s=0;for(this[e]=r&255;++p<o&&(E*=256);)r<0&&s===0&&this[e+p-1]!==0&&(s=1),this[e+p]=(r/E>>0)-s&255;return e+o};i.prototype.writeIntBE=function(r,e,o,n){if(r=+r,e=e|0,!n){var a=Math.pow(2,8*o-1);T(this,r,e,o,a-1,-a)}var p=o-1,E=1,s=0;for(this[e+p]=r&255;--p>=0&&(E*=256);)r<0&&s===0&&this[e+p+1]!==0&&(s=1),this[e+p]=(r/E>>0)-s&255;return e+o};i.prototype.writeInt8=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};i.prototype.writeInt16LE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):S(this,r,e,!0),e+2};i.prototype.writeInt16BE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):S(this,r,e,!1),e+2};i.prototype.writeInt32LE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):U(this,r,e,!0),e+4};i.prototype.writeInt32BE=function(r,e,o){return r=+r,e=e|0,o||T(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),i.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):U(this,r,e,!1),e+4};function nr(t,r,e,o,n,a){if(e+o>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function ir(t,r,e,o,n){return n||nr(t,r,e,4,34028234663852886e22,-34028234663852886e22),Er(t,r,e,o,23,4),e+4}i.prototype.writeFloatLE=function(r,e,o){return ir(this,r,e,!0,o)};i.prototype.writeFloatBE=function(r,e,o){return ir(this,r,e,!1,o)};function ar(t,r,e,o,n){return n||nr(t,r,e,8,17976931348623157e292,-17976931348623157e292),Er(t,r,e,o,52,8),e+8}i.prototype.writeDoubleLE=function(r,e,o){return ar(this,r,e,!0,o)};i.prototype.writeDoubleBE=function(r,e,o){return ar(this,r,e,!1,o)};i.prototype.copy=function(r,e,o,n){if(o||(o=0),!n&&n!==0&&(n=this.length),e>=r.length&&(e=r.length),e||(e=0),n>0&&n<o&&(n=o),n===o||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-e<n-o&&(n=r.length-e+o);var a=n-o,p;if(this===r&&o<e&&e<n)for(p=a-1;p>=0;--p)r[p+e]=this[p+o];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(p=0;p<a;++p)r[p+e]=this[p+o];else Uint8Array.prototype.set.call(r,this.subarray(o,o+a),e);return a};i.prototype.fill=function(r,e,o,n){if(typeof r=="string"){if(typeof e=="string"?(n=e,e=0,o=this.length):typeof o=="string"&&(n=o,o=this.length),r.length===1){var a=r.charCodeAt(0);a<256&&(r=a)}if(n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<o)throw new RangeError("Out of range index");if(o<=e)return this;e=e>>>0,o=o===void 0?this.length:o>>>0,r||(r=0);var p;if(typeof r=="number")for(p=e;p<o;++p)this[p]=r;else{var E=R(r)?r:v(new i(r,n).toString()),s=E.length;for(p=0;p<o-e;++p)this[p+e]=E[p%s]}return this};var ae=/[^+\/0-9A-Za-z-_]/g;function pe(t){if(t=ce(t).replace(ae,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ce(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Ee(t){return t<16?"0"+t.toString(16):t.toString(16)}function v(t,r){r=r||1/0;for(var e,o=t.length,n=null,a=[],p=0;p<o;++p){if(e=t.charCodeAt(p),e>55295&&e<57344){if(!n){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(p+1===o){(r-=3)>-1&&a.push(239,191,189);continue}n=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),n=e;continue}e=(n-55296<<10|e-56320)+65536}else n&&(r-=3)>-1&&a.push(239,191,189);if(n=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function se(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ue(t,r){for(var e,o,n,a=[],p=0;p<t.length&&!((r-=2)<0);++p)e=t.charCodeAt(p),o=e>>8,n=e%256,a.push(n),a.push(o);return a}function pr(t){return Gr(pe(t))}function M(t,r,e,o){for(var n=0;n<o&&!(n+e>=r.length||n>=t.length);++n)r[n+e]=t[n];return n}function le(t){return t!==t}function _e(t){return t!=null&&(!!t._isBuffer||cr(t)||he(t))}function cr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function he(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&cr(t.slice(0,0))}function k(t,r,e,o,n){var a,p,E=n*8-o-1,s=(1<<E)-1,l=s>>1,_=-7,u=e?n-1:0,m=e?-1:1,f=t[r+u];for(u+=m,a=f&(1<<-_)-1,f>>=-_,_+=E;_>0;a=a*256+t[r+u],u+=m,_-=8);for(p=a&(1<<-_)-1,a>>=-_,_+=o;_>0;p=p*256+t[r+u],u+=m,_-=8);if(a===0)a=1-l;else{if(a===s)return p?NaN:(f?-1:1)*(1/0);p=p+Math.pow(2,o),a=a-l}return(f?-1:1)*p*Math.pow(2,a-o)}function Er(t,r,e,o,n,a){var p,E,s,l=a*8-n-1,_=(1<<l)-1,u=_>>1,m=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:a-1,D=o?1:-1,lr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(E=isNaN(r)?1:0,p=_):(p=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-p))<1&&(p--,s*=2),p+u>=1?r+=m/s:r+=m*Math.pow(2,1-u),r*s>=2&&(p++,s/=2),p+u>=_?(E=0,p=_):p+u>=1?(E=(r*s-1)*Math.pow(2,n),p=p+u):(E=r*Math.pow(2,u-1)*Math.pow(2,n),p=0));n>=8;t[e+f]=E&255,f+=D,E/=256,n-=8);for(p=p<<n|E,l+=n;l>0;t[e+f]=p&255,f+=D,p/=256,l-=8);t[e+f-D]|=lr*128}var Ne=864e5,ge=30;var Le=18,we=1e5,Pe=1e3,ye=9e4,ve=30,Se=60,Ue=328,Me=1,ke=18,Be=36,Fe=248;var We={"0x4343545055534443000000000000000000000000000000000000000000000000":65537};var qe={SUCCESS:200,CREATED:201,ACCEPTED:202,NOCONTENT:204,BADREQUEST:400,FORBIDDEN:403,NOTFOUND:404,TIMEOUT:408,TOOMANYREQ:429,INTERNALSERVER:500,BADGATEWAYS:502,SERVICEUNAVILABLE:503,GATEWAYTIMEOUT:504},ze={INSERT:"Data has been saved successfully.",ERROR:"Some error has been occured. Please try again.",SUCCESS:"Your request is executed successfully!",REQUIRED:"coin_type or price param is required",CAPTCHATEXTNOTFOUND:"Captcha text not found.",CAPTCHA_VERIFICATION_FAILED:"Captcha is not verified.",NOTEMPTY:"coin_type or price should not be empty",PAIR_LIST:"Pair list",PAIR_STATUS:"Pair status has been changed",ACTIVE_USERS:"Active Users",SETTINGS_NOT_FOUND:"No settings found in DB.",TRADE_IS_HALT:"Trading is disabled.",KYC_REQUIRED:"KYC is required for this action.",EMAIL_NOT_VERIFIED:"Your email is not verified.Please verify first.",NOT_BETA_USER:"Trade only works for beta user.",WRONG_PAIR_KEY:"Pair key not found.",PAIRDISABLED:"Temporarily order placement has been disabled for this pair. Please try again later.",BALANCE_NOT_SUFFICIENT:"You have insufficient balance.",MIN_TRADE_NOT_MATCHED:"Minimum trade limit does not matched.",ORDER_PLACED_SUCCESSFULLY:"Order has been placed successfully.",ORDER_NOT_FOUND:"Sorry this order id does not found.",ORDER_ALREADY_MATCHED:"Order already matched.",ORDER_ALREADY_CANCELED:"Order already cancelled.",ORDER_CANCELED_SUCCESSFULLY:"order successfully cancelled",ORDER_LIST:"Order list fetched successfully.",ORDER_EXIT:"Successfully exited from the position.",PAIRERR:"please provide pair param",ORDERSIDE:"side param is required",ORDERTYPE:"type param is required",ORDERIDREQ:"order_id param is required",ORDERDETAIL:"order detail",COMMODITYORICE:"commodity price",COMMODITYSPOT:"commodity spot updated",TOKEN_INSERTED:"ERC token has been added",PARAMREQ:"Parameter missing",EXIST:"Token Already Exist",BREACHEDTOKENS:"List of breached tokens",API_EXPOSE:{TOKEN_NOT_FOUND:"Token not found, Please get token and set to header.",ERROR:"Something went wrong, Please try again later"},LIMITED_UNITS:"ONLY {{units}} units are available. You can place your order with this amount",UNITS_UNAVAIL:"Amount unavailable",ORDER:{ERROR:"An error has been occured",UNITS_UNAVAIL:"Amount unavailable",LIMITED_UNITS:"ONLY {{units}} units are available. You can place your order with this amount",PLACED:"Order has been placed",NOPARAMS:"empty body params",ORDER_NOT_FOUND:"Sorry this order id not found.",ORDER_ALREADY_MATCHED:"Order already matched.",ORDER_ALREADY_CANCELED:"Order already cancelled.",ORDER_CANCELED_SUCCESSFULLY:"Order cancelled successfully"},DOMAIN_NOT_FOUND:"domain not found"},Je={SMALLESTUNIT:c.env.SMALLEST_UNIT},Qe={SMALLEST_UNITS:c.env.SMALLEST_UNIT},$e={AVAILABLE_ASSETS_PER_USER:1,AVAILABLE_ASSETS_PER_IP:3};var et=`{"theme1":{"value":"${c.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${c.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${c.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;var pt=["point-system.discordEnabled","point-system.telegramBotName","point-system.telegramBotId","point-system.telegramEnabled","point-system.telegramGroupId","point-system.telegramGroupName","point-system.twitterAccountId","point-system.twitterAccountName","point-system.twitterEnabled","point-system.twitterJobEnabled","point-system.guideLink"],ct=["obdex","kycTradeRequirementEnabled","newTab","reportButtons"],Et=["geoblock","pinnedPairs","customMenuItems","chartInt"];var _t=t=>`By signing this message, you confirm that the wallet is a trusted one ${t}; Data: `;var At=c.env.REACT_APP_API_URL,mt=c.env.REACT_APP_SOCKET_URL,bt=c.env.REACT_APP_ALGO_SERVER,Rt=c.env.REACT_APP_ALGO_SERVER_PORT||"",It=c.env.REACT_APP_ALGOD_TOKEN||"",dt=c.env.REACT_APP_DISPENSER_LINK,Te=c.env.REACT_APP_FRONTEND_LINK||"",xt=c.env.REACT_APP_ALGO_EXPLORER_LINK,Nt=c.env.REACT_APP_ALGO_EXPLORER_ASSETS_URL,gt=(c.env.REACT_APP_REQUIRE_ACCESS_CODE||"").toLowerCase()==="true",Ot=c.env.REACT_APP_USERBACK_ACCESS_TOKEN,Ct=(c.env.REACT_APP_EXT_ORDER_TYPES||"").toLowerCase()==="true",Dt=4,Lt=100,wt=50,Pt=50,yt=.001*10**6,vt=.002*10**6,St="Ultrade",Ut=["theme1","theme2","theme3"],Mt=c.env.REACT_APP_MASTER_APP_ID||"406",kt=c.env.REACT_APP_AGG_APP_ID||"408",Bt=Number(c.env.REACT_APP_CODEX_APP_ID||"467960617"),Ft=3e3,fe=c.env.REACT_APP_ALGO_NETWORK||"",Yt=.3,Gt=1,Kt=Te==="https://dev.ultradedev.net",Wt="00:00",Ht=1e6,Ae=fe.toLowerCase()==="mainnet"?"mainnet":"testnet",Vt=/[^\p{L}\p{N} .,!?:@$%()_-]/gui,Xt=Ae==="mainnet"?416001:416002;var sr=(n=>(n.GLOBAL_PAIR_DELISTING="GLOBAL_PAIR_DELISTING",n.GLOBAL_NEW_PAIR_LISTING="GLOBAL_NEW_PAIR_LISTING",n.GLOBAL_SYSTEM_MAINTENANCE="GLOBAL_SYSTEM_MAINTENANCE",n.GLOBAL_SMART_CONTRACT_UPDATE="GLOBAL_SMART_CONTRACT_UPDATE",n))(sr||{}),ur=(o=>(o.ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT="ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT",o.ACCOUNT_KYC_STATUS_CHANGED="ACCOUNT_KYC_STATUS_CHANGED",o.ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED="ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED",o))(ur||{}),rn={...sr,...ur};var di={1:"canFollowAccounts",4:"canLikeTweets",2:"canCreateTweets",3:"canCreateTweets"},xi=99999999;export{kt as AGG_APP_ID,It as ALGOD_TOKEN,Nt as ALGO_EXPLORER_ASSETS_URL,xt as ALGO_EXPLORER_LINK,fe as ALGO_NETWORK,bt as ALGO_SERVER,Rt as ALGO_SERVER_PORT,At as API_HOST,vt as APP_CLOSEOUT_FEE,Je as BIGNUMBER,ct as BOOLEAN_SETTINGS,Qe as CALCULATIONS,We as CCTP_UNIFIED_ASSETS,Bt as CODEX_APP_ID,Ne as DAY_MILLISECONDS,Yt as DEFAULT_AGG_FEE,ye as DEFAULT_FEE_SHARE,ve as DEFAULT_ORDER_EXPIRATION_DAYS,dt as DISPENSER_LINK,St as EXCHANGE_NAME,ge as EXPIRE_DAYS,Ct as EXT_ORDER_TYPES,Le as FACTOR_PRICE_DECIMAL,we as FEE_SCALE,Pe as FRONTEND_FEE_SCALE,Te as FRONTEND_LINK,Ht as GASLIMIT,Dt as GLOWL_DECIMAL,Kt as IS_DEV,Et as JSON_ARRAY_SETTINGS,Pt as MARKET_TRADES_SIZE,Mt as MASTER_APP_ID,ke as MAX_TOKEN_DECIMAL,Se as MIN_ORDER_EXPIRATION_MINS,Ae as NETWORK,wt as ORDER_BOOK_BUFFER,Lt as ORDER_BOOK_SIZE,Ue as ORDER_DATA_BYTES_LENGTH,Me as ORDER_MSG_VERSION,Ft as PLATFORM_FEE,xi as POINTS_MAX_VALUE,Xt as PeraChainId,pt as PointSystemSettingsIds,gt as REACT_APP_REQUIRE_ACCESS_CODE,qe as RESPONSES,ze as RES_MSG,$e as SERVER,Be as SHARE_DATA_LENGTH,mt as SOCKET_URL,Ut as THEMES,Gt as ULTRADE_ID,Ot as USERBACK_ACCESS_TOKEN,Fe as WITHDRAW_DATA_BYTES_LENGTH,yt as WITHDRAW_FEE,Wt as ZERO_TIMER,_t as messageForSigning,Vt as sanitizeRegex,di as twitterActionToPermissionMap};
|
|
2
2
|
/*! Bundled license information:
|
|
3
3
|
|
|
4
4
|
@esbuild-plugins/node-globals-polyfill/Buffer.js:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function K(){throw new Error("setTimeout has not been defined")}function z(){throw new Error("clearTimeout has not been defined")}var b=K,O=z;typeof globalThis.setTimeout=="function"&&(b=setTimeout);typeof globalThis.clearTimeout=="function"&&(O=clearTimeout);function J(t){if(b===setTimeout)return setTimeout(t,0);if((b===K||!b)&&setTimeout)return b=setTimeout,setTimeout(t,0);try{return b(t,0)}catch{try{return b.call(null,t,0)}catch{return b.call(this,t,0)}}}function Tr(t){if(O===clearTimeout)return clearTimeout(t);if((O===z||!O)&&clearTimeout)return O=clearTimeout,clearTimeout(t);try{return O(t)}catch{try{return O.call(null,t)}catch{return O.call(this,t)}}}var C=[],g=!1,L,U=-1;function Ir(){!g||!L||(g=!1,L.length?C=L.concat(C):U=-1,C.length&&X())}function X(){if(!g){var t=J(Ir);g=!0;for(var r=C.length;r;){for(L=C,C=[];++U<r;)L&&L[U].run();U=-1,r=C.length}L=null,g=!1,Tr(t)}}function wr(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];C.push(new q(t,r)),C.length===1&&!g&&J(X)}function q(t,r){this.fun=t,this.array=r}q.prototype.run=function(){this.fun.apply(null,this.array)};var Rr="browser",Nr="browser",Cr=!0,Dr={},br=[],Or="",Lr={},dr={},vr={};function d(){}var yr=d,gr=d,Ur=d,Pr=d,Br=d,Fr=d,Yr=d;function kr(t){throw new Error("process.binding is not supported")}function Gr(){return"/"}function Mr(t){throw new Error("process.chdir is not supported")}function Wr(){return 0}var y=globalThis.performance||{},Hr=y.now||y.mozNow||y.msNow||y.oNow||y.webkitNow||function(){return new Date().getTime()};function Sr(t){var r=Hr.call(y)*.001,e=Math.floor(r),i=Math.floor(r%1*1e9);return t&&(e=e-t[0],i=i-t[1],i<0&&(e--,i+=1e9)),[e,i]}var Vr=new Date;function Kr(){var t=new Date,r=t-Vr;return r/1e3}var E={nextTick:wr,title:Rr,browser:Cr,env:Dr,argv:br,version:Or,versions:Lr,on:yr,addListener:gr,once:Ur,off:Pr,removeListener:Br,removeAllListeners:Fr,emit:Yr,binding:kr,cwd:Gr,chdir:Mr,umask:Wr,hrtime:Sr,platform:Nr,release:dr,config:vr,uptime:Kr},V={};Object.keys(V).forEach(t=>{let r=t.split("."),e=E;for(let i=0;i<r.length;i++){let n=r[i];i===r.length-1?e[n]=V[t]:e=e[n]||(e[n]={})}});var R=[],I=[],zr=typeof Uint8Array<"u"?Uint8Array:Array,W=!1;function j(){W=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)R[r]=t[r],I[t.charCodeAt(r)]=r;I[45]=62,I[95]=63}function Jr(t){W||j();var r,e,i,n,o,p,c=t.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=t[c-2]==="="?2:t[c-1]==="="?1:0,p=new zr(c*3/4-o),i=o>0?c-4:c;var f=0;for(r=0,e=0;r<i;r+=4,e+=3)n=I[t.charCodeAt(r)]<<18|I[t.charCodeAt(r+1)]<<12|I[t.charCodeAt(r+2)]<<6|I[t.charCodeAt(r+3)],p[f++]=n>>16&255,p[f++]=n>>8&255,p[f++]=n&255;return o===2?(n=I[t.charCodeAt(r)]<<2|I[t.charCodeAt(r+1)]>>4,p[f++]=n&255):o===1&&(n=I[t.charCodeAt(r)]<<10|I[t.charCodeAt(r+1)]<<4|I[t.charCodeAt(r+2)]>>2,p[f++]=n>>8&255,p[f++]=n&255),p}function Xr(t){return R[t>>18&63]+R[t>>12&63]+R[t>>6&63]+R[t&63]}function qr(t,r,e){for(var i,n=[],o=r;o<e;o+=3)i=(t[o]<<16)+(t[o+1]<<8)+t[o+2],n.push(Xr(i));return n.join("")}function Q(t){W||j();for(var r,e=t.length,i=e%3,n="",o=[],p=16383,c=0,f=e-i;c<f;c+=p)o.push(qr(t,c,c+p>f?f:c+p));return i===1?(r=t[e-1],n+=R[r>>2],n+=R[r<<4&63],n+="=="):i===2&&(r=(t[e-2]<<8)+t[e-1],n+=R[r>>10],n+=R[r>>4&63],n+=R[r<<2&63],n+="="),o.push(n),o.join("")}a.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function P(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function D(t,r){if(P()<r)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=a.prototype):(t===null&&(t=new a(r)),t.length=r),t}function a(t,r,e){if(!a.TYPED_ARRAY_SUPPORT&&!(this instanceof a))return new a(t,r,e);if(typeof t=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return H(this,t)}return rr(this,t,r,e)}a.poolSize=8192;a._augment=function(t){return t.__proto__=a.prototype,t};function rr(t,r,e,i){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?$r(t,r,e,i):typeof r=="string"?Zr(t,r,e):jr(t,r)}a.from=function(t,r,e){return rr(null,t,r,e)};a.kMaxLength=P();a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&a[Symbol.species]);function er(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Qr(t,r,e,i){return er(r),r<=0?D(t,r):e!==void 0?typeof i=="string"?D(t,r).fill(e,i):D(t,r).fill(e):D(t,r)}a.alloc=function(t,r,e){return Qr(null,t,r,e)};function H(t,r){if(er(r),t=D(t,r<0?0:S(r)|0),!a.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}a.allocUnsafe=function(t){return H(null,t)};a.allocUnsafeSlow=function(t){return H(null,t)};function Zr(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!a.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var i=tr(r,e)|0;t=D(t,i);var n=t.write(r,e);return n!==i&&(t=t.slice(0,n)),t}function M(t,r){var e=r.length<0?0:S(r.length)|0;t=D(t,e);for(var i=0;i<e;i+=1)t[i]=r[i]&255;return t}function $r(t,r,e,i){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(i||0))throw new RangeError("'length' is out of bounds");return e===void 0&&i===void 0?r=new Uint8Array(r):i===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,i),a.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=a.prototype):t=M(t,r),t}function jr(t,r){if(N(r)){var e=S(r.length)|0;return t=D(t,e),t.length===0||r.copy(t,0,0,e),t}if(r){if(typeof ArrayBuffer<"u"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||xe(r.length)?D(t,0):M(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return M(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function S(t){if(t>=P())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+P().toString(16)+" bytes");return t|0}a.isBuffer=Te;function N(t){return!!(t!=null&&t._isBuffer)}a.compare=function(r,e){if(!N(r)||!N(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var i=r.length,n=e.length,o=0,p=Math.min(i,n);o<p;++o)if(r[o]!==e[o]){i=r[o],n=e[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).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}};a.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(e===void 0)for(e=0,i=0;i<r.length;++i)e+=r[i].length;var n=a.allocUnsafe(e),o=0;for(i=0;i<r.length;++i){var p=r[i];if(!N(p))throw new TypeError('"list" argument must be an Array of Buffers');p.copy(n,o),o+=p.length}return n};function tr(t,r){if(N(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;if(e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return hr(t).length;default:if(i)return B(t).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=tr;function re(t,r,e){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return fe(this,r,e);case"utf8":case"utf-8":return or(this,r,e);case"ascii":return ce(this,r,e);case"latin1":case"binary":return he(this,r,e);case"base64":return pe(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,r,e);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function v(t,r,e){var i=t[r];t[r]=t[e],t[e]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)v(this,e,e+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this};a.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?or(this,0,r):re.apply(this,arguments)};a.prototype.equals=function(r){if(!N(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.compare=function(r,e,i,n,o){if(!N(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),e<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=i)return 0;if(n>=o)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var p=o-n,c=i-e,f=Math.min(p,c),s=this.slice(n,o),m=r.slice(e,i),h=0;h<f;++h)if(s[h]!==m[h]){p=s[h],c=m[h];break}return p<c?-1:c<p?1:0};function ir(t,r,e,i,n){if(t.length===0)return-1;if(typeof e=="string"?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=n?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(n)return-1;e=t.length-1}else if(e<0)if(n)e=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),N(r))return r.length===0?-1:Z(t,r,e,i,n);if(typeof r=="number")return r=r&255,a.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):Z(t,[r],e,i,n);throw new TypeError("val must be string, number or Buffer")}function Z(t,r,e,i,n){var o=1,p=t.length,c=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,p/=2,c/=2,e/=2}function f(T,u){return o===1?T[u]:T.readUInt16BE(u*o)}var s;if(n){var m=-1;for(s=e;s<p;s++)if(f(t,s)===f(r,m===-1?0:s-m)){if(m===-1&&(m=s),s-m+1===c)return m*o}else m!==-1&&(s-=s-m),m=-1}else for(e+c>p&&(e=p-c),s=e;s>=0;s--){for(var h=!0,w=0;w<c;w++)if(f(t,s+w)!==f(r,w)){h=!1;break}if(h)return s}return-1}a.prototype.includes=function(r,e,i){return this.indexOf(r,e,i)!==-1};a.prototype.indexOf=function(r,e,i){return ir(this,r,e,i,!0)};a.prototype.lastIndexOf=function(r,e,i){return ir(this,r,e,i,!1)};function ee(t,r,e,i){e=Number(e)||0;var n=t.length-e;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var p=0;p<i;++p){var c=parseInt(r.substr(p*2,2),16);if(isNaN(c))return p;t[e+p]=c}return p}function te(t,r,e,i){return k(B(r,t.length-e),t,e,i)}function nr(t,r,e,i){return k(_e(r),t,e,i)}function ie(t,r,e,i){return nr(t,r,e,i)}function ne(t,r,e,i){return k(hr(r),t,e,i)}function oe(t,r,e,i){return k(Ae(r,t.length-e),t,e,i)}a.prototype.write=function(r,e,i,n){if(e===void 0)n="utf8",i=this.length,e=0;else if(i===void 0&&typeof e=="string")n=e,i=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(i)?(i=i|0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-e;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return ee(this,r,e,i);case"utf8":case"utf-8":return te(this,r,e,i);case"ascii":return nr(this,r,e,i);case"latin1":case"binary":return ie(this,r,e,i);case"base64":return ne(this,r,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,r,e,i);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pe(t,r,e){return r===0&&e===t.length?Q(t):Q(t.slice(r,e))}function or(t,r,e){e=Math.min(t.length,e);for(var i=[],n=r;n<e;){var o=t[n],p=null,c=o>239?4:o>223?3:o>191?2:1;if(n+c<=e){var f,s,m,h;switch(c){case 1:o<128&&(p=o);break;case 2:f=t[n+1],(f&192)===128&&(h=(o&31)<<6|f&63,h>127&&(p=h));break;case 3:f=t[n+1],s=t[n+2],(f&192)===128&&(s&192)===128&&(h=(o&15)<<12|(f&63)<<6|s&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:f=t[n+1],s=t[n+2],m=t[n+3],(f&192)===128&&(s&192)===128&&(m&192)===128&&(h=(o&15)<<18|(f&63)<<12|(s&63)<<6|m&63,h>65535&&h<1114112&&(p=h))}}p===null?(p=65533,c=1):p>65535&&(p-=65536,i.push(p>>>10&1023|55296),p=56320|p&1023),i.push(p),n+=c}return ae(i)}var $=4096;function ae(t){var r=t.length;if(r<=$)return String.fromCharCode.apply(String,t);for(var e="",i=0;i<r;)e+=String.fromCharCode.apply(String,t.slice(i,i+=$));return e}function ce(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]&127);return i}function he(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]);return i}function fe(t,r,e){var i=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>i)&&(e=i);for(var n="",o=r;o<e;++o)n+=me(t[o]);return n}function se(t,r,e){for(var i=t.slice(r,e),n="",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,e){var i=this.length;r=~~r,e=e===void 0?i:~~e,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<r&&(e=r);var n;if(a.TYPED_ARRAY_SUPPORT)n=this.subarray(r,e),n.__proto__=a.prototype;else{var o=e-r;n=new a(o,void 0);for(var p=0;p<o;++p)n[p]=this[p+r]}return n};function A(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUIntLE=function(r,e,i){r=r|0,e=e|0,i||A(r,e,this.length);for(var n=this[r],o=1,p=0;++p<e&&(o*=256);)n+=this[r+p]*o;return n};a.prototype.readUIntBE=function(r,e,i){r=r|0,e=e|0,i||A(r,e,this.length);for(var n=this[r+--e],o=1;e>0&&(o*=256);)n+=this[r+--e]*o;return n};a.prototype.readUInt8=function(r,e){return e||A(r,1,this.length),this[r]};a.prototype.readUInt16LE=function(r,e){return e||A(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUInt16BE=function(r,e){return e||A(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUInt32LE=function(r,e){return e||A(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUInt32BE=function(r,e){return e||A(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,e,i){r=r|0,e=e|0,i||A(r,e,this.length);for(var n=this[r],o=1,p=0;++p<e&&(o*=256);)n+=this[r+p]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n};a.prototype.readIntBE=function(r,e,i){r=r|0,e=e|0,i||A(r,e,this.length);for(var n=e,o=1,p=this[r+--n];n>0&&(o*=256);)p+=this[r+--n]*o;return o*=128,p>=o&&(p-=Math.pow(2,8*e)),p};a.prototype.readInt8=function(r,e){return e||A(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,e){e||A(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,e){e||A(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,e){return e||A(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,e){return e||A(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,e){return e||A(r,4,this.length),G(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,e){return e||A(r,4,this.length),G(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,e){return e||A(r,8,this.length),G(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,e){return e||A(r,8,this.length),G(this,r,!1,52,8)};function x(t,r,e,i,n,o){if(!N(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(e+i>t.length)throw new RangeError("Index out of range")}a.prototype.writeUIntLE=function(r,e,i,n){if(r=+r,e=e|0,i=i|0,!n){var o=Math.pow(2,8*i)-1;x(this,r,e,i,o,0)}var p=1,c=0;for(this[e]=r&255;++c<i&&(p*=256);)this[e+c]=r/p&255;return e+i};a.prototype.writeUIntBE=function(r,e,i,n){if(r=+r,e=e|0,i=i|0,!n){var o=Math.pow(2,8*i)-1;x(this,r,e,i,o,0)}var p=i-1,c=1;for(this[e+p]=r&255;--p>=0&&(c*=256);)this[e+p]=r/c&255;return e+i};a.prototype.writeUInt8=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,1,255,0),a.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function F(t,r,e,i){r<0&&(r=65535+r+1);for(var n=0,o=Math.min(t.length-e,2);n<o;++n)t[e+n]=(r&255<<8*(i?n:1-n))>>>(i?n:1-n)*8}a.prototype.writeUInt16LE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):F(this,r,e,!0),e+2};a.prototype.writeUInt16BE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):F(this,r,e,!1),e+2};function Y(t,r,e,i){r<0&&(r=4294967295+r+1);for(var n=0,o=Math.min(t.length-e,4);n<o;++n)t[e+n]=r>>>(i?n:3-n)*8&255}a.prototype.writeUInt32LE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):Y(this,r,e,!0),e+4};a.prototype.writeUInt32BE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):Y(this,r,e,!1),e+4};a.prototype.writeIntLE=function(r,e,i,n){if(r=+r,e=e|0,!n){var o=Math.pow(2,8*i-1);x(this,r,e,i,o-1,-o)}var p=0,c=1,f=0;for(this[e]=r&255;++p<i&&(c*=256);)r<0&&f===0&&this[e+p-1]!==0&&(f=1),this[e+p]=(r/c>>0)-f&255;return e+i};a.prototype.writeIntBE=function(r,e,i,n){if(r=+r,e=e|0,!n){var o=Math.pow(2,8*i-1);x(this,r,e,i,o-1,-o)}var p=i-1,c=1,f=0;for(this[e+p]=r&255;--p>=0&&(c*=256);)r<0&&f===0&&this[e+p+1]!==0&&(f=1),this[e+p]=(r/c>>0)-f&255;return e+i};a.prototype.writeInt8=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,1,127,-128),a.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};a.prototype.writeInt16LE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):F(this,r,e,!0),e+2};a.prototype.writeInt16BE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):F(this,r,e,!1),e+2};a.prototype.writeInt32LE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):Y(this,r,e,!0),e+4};a.prototype.writeInt32BE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),a.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):Y(this,r,e,!1),e+4};function pr(t,r,e,i,n,o){if(e+i>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function ar(t,r,e,i,n){return n||pr(t,r,e,4,34028234663852886e22,-34028234663852886e22),sr(t,r,e,i,23,4),e+4}a.prototype.writeFloatLE=function(r,e,i){return ar(this,r,e,!0,i)};a.prototype.writeFloatBE=function(r,e,i){return ar(this,r,e,!1,i)};function cr(t,r,e,i,n){return n||pr(t,r,e,8,17976931348623157e292,-17976931348623157e292),sr(t,r,e,i,52,8),e+8}a.prototype.writeDoubleLE=function(r,e,i){return cr(this,r,e,!0,i)};a.prototype.writeDoubleBE=function(r,e,i){return cr(this,r,e,!1,i)};a.prototype.copy=function(r,e,i,n){if(i||(i=0),!n&&n!==0&&(n=this.length),e>=r.length&&(e=r.length),e||(e=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-e<n-i&&(n=r.length-e+i);var o=n-i,p;if(this===r&&i<e&&e<n)for(p=o-1;p>=0;--p)r[p+e]=this[p+i];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(p=0;p<o;++p)r[p+e]=this[p+i];else Uint8Array.prototype.set.call(r,this.subarray(i,i+o),e);return o};a.prototype.fill=function(r,e,i,n){if(typeof r=="string"){if(typeof e=="string"?(n=e,e=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),r.length===1){var o=r.charCodeAt(0);o<256&&(r=o)}if(n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e=e>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var p;if(typeof r=="number")for(p=e;p<i;++p)this[p]=r;else{var c=N(r)?r:B(new a(r,n).toString()),f=c.length;for(p=0;p<i-e;++p)this[p+e]=c[p%f]}return this};var ue=/[^+\/0-9A-Za-z-_]/g;function le(t){if(t=Ee(t).replace(ue,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Ee(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function me(t){return t<16?"0"+t.toString(16):t.toString(16)}function B(t,r){r=r||1/0;for(var e,i=t.length,n=null,o=[],p=0;p<i;++p){if(e=t.charCodeAt(p),e>55295&&e<57344){if(!n){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(p+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),n=e;continue}e=(n-55296<<10|e-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function _e(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function Ae(t,r){for(var e,i,n,o=[],p=0;p<t.length&&!((r-=2)<0);++p)e=t.charCodeAt(p),i=e>>8,n=e%256,o.push(n),o.push(i);return o}function hr(t){return Jr(le(t))}function k(t,r,e,i){for(var n=0;n<i&&!(n+e>=r.length||n>=t.length);++n)r[n+e]=t[n];return n}function xe(t){return t!==t}function Te(t){return t!=null&&(!!t._isBuffer||fr(t)||Ie(t))}function fr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Ie(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&fr(t.slice(0,0))}function G(t,r,e,i,n){var o,p,c=n*8-i-1,f=(1<<c)-1,s=f>>1,m=-7,h=e?n-1:0,w=e?-1:1,T=t[r+h];for(h+=w,o=T&(1<<-m)-1,T>>=-m,m+=c;m>0;o=o*256+t[r+h],h+=w,m-=8);for(p=o&(1<<-m)-1,o>>=-m,m+=i;m>0;p=p*256+t[r+h],h+=w,m-=8);if(o===0)o=1-s;else{if(o===f)return p?NaN:(T?-1:1)*(1/0);p=p+Math.pow(2,i),o=o-s}return(T?-1:1)*p*Math.pow(2,o-i)}function sr(t,r,e,i,n,o){var p,c,f,s=o*8-n-1,m=(1<<s)-1,h=m>>1,w=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=i?0:o-1,u=i?1:-1,_=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,p=m):(p=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-p))<1&&(p--,f*=2),p+h>=1?r+=w/f:r+=w*Math.pow(2,1-h),r*f>=2&&(p++,f/=2),p+h>=m?(c=0,p=m):p+h>=1?(c=(r*f-1)*Math.pow(2,n),p=p+h):(c=r*Math.pow(2,h-1)*Math.pow(2,n),p=0));n>=8;t[e+T]=c&255,T+=u,c/=256,n-=8);for(p=p<<n|c,s+=n;s>0;t[e+T]=p&255,T+=u,p/=256,s-=8);t[e+T-u]|=_*128}var we=(u=>(u[u.Solana=1]="Solana",u[u.Algorand=8]="Algorand",u[u.Polygon=5]="Polygon",u[u.Bsc=4]="Bsc",u[u.Avalanche=6]="Avalanche",u[u.Arbitrum=23]="Arbitrum",u[u.Optimism=24]="Optimism",u[u.Base=30]="Base",u[u.Ethereum=2]="Ethereum",u[u.Sepolia=10002]="Sepolia",u[u.ArbitrumSepolia=10003]="ArbitrumSepolia",u[u.BaseSepolia=10004]="BaseSepolia",u[u.OptimismSepolia=10005]="OptimismSepolia",u[u.PolygonAmoy=10007]="PolygonAmoy",u))(we||{}),Et={1:"Solana",2:"Ethereum",5:"Polygon",4:"BNB Chain",6:"Avalanche",8:"Algorand",23:"Arbitrum",24:"Optimism",30:"Base",10002:"Ethereum Sepolia",10003:"Arbitrum Sepolia",10004:"Base Sepolia",10005:"Optimism Sepolia",10007:"Polygon Amoy"},mt={4:["","https://bsc-testnet.public.blastapi.io","https://bsc-testnet.blockpi.network/v1/rpc/private","https://bsc-testnet-rpc.publicnode.com","https://api.zan.top/bsc-testnet","https://data-seed-prebsc-2-s1.bnbchain.org:8545","https://data-seed-prebsc-2-s2.bnbchain.org:8545","https://data-seed-prebsc-2-s3.bnbchain.org:8545","https://data-seed-prebsc-1-s1.bnbchain.org:8545","https://data-seed-prebsc-1-s2.bnbchain.org:8545","https://data-seed-prebsc-1-s3.bnbchain.org:8545","https://endpoints.omniatech.io/v1/bsc/testnet/public"],6:["","https://rpc.ankr.com/avalanche_fuji","https://rpc.ankr.com/avalanche_fuji-c","https://api.avax-test.network/ext/bc/C/rpc","https://ava-testnet.public.blastapi.io/ext/bc/C/rpc","https://endpoints.omniatech.io/v1/avax/fuji/public","https://avalanche-fuji.blockpi.network/v1/rpc/private","https://avalanche-fuji-c-chain-rpc.publicnode.com","https://avalanche-fuji.blockpi.network/v1/rpc/private"],10002:["https://ethereum-sepolia-rpc.publicnode.com","https://sepolia.gateway.tenderly.co","https://eth-sepolia.public.blastapi.io","https://ethereum-sepolia.blockpi.network/v1/rpc/private","https://sepolia.drpc.org","https://endpoints.omniatech.io/v1/eth/sepolia/public","https://1rpc.io/sepolia","https://gateway.tenderly.co/public/sepolia","https://sepolia.gateway.tenderly.co","https://api.zan.top/eth-sepolia","https://ethereum-sepolia.rpc.subquery.network/public"],10003:["","https://arbitrum-sepolia.blockpi.network/v1/rpc/private ","https://arbitrum-sepolia.gateway.tenderly.co","https://endpoints.omniatech.io/v1/arbitrum/sepolia/public","https://api.zan.top/arb-sepolia","https://sepolia-rollup.arbitrum.io/rpc"],10004:["","https://sepolia.base.org","https://base-sepolia-rpc.publicnode.com","https://base-sepolia.gateway.tenderly.co","https://base-sepolia.blockpi.network/v1/rpc/private","https://node.histori.xyz/base-sepolia/8ry9f6t9dct1se2hlagxnd9n2a"],10005:["","https://optimism-sepolia.blockpi.network/v1/rpc/private","https://sepolia.optimism.io","https://api.zan.top/opt-sepolia","https://optimism-sepolia.gateway.tenderly.co","https://optimism-sepolia.drpc.org","https://endpoints.omniatech.io/v1/op/sepolia/public"],10007:["https://rpc-amoy.polygon.technology","https://polygon-amoy-bor-rpc.publicnode.com","https://rpc.ankr.com/polygon_amoy","https://polygon-amoy.drpc.org","https://api.zan.top/polygon-amoy","https://polygon-amoy.gateway.tenderly.co"]},_t={2:["","https://eth.llamarpc.com","https://ethereum.blockpi.network/v1/rpc/public","https://eth-mainnet.nodereal.io/v1/1659dfb40aa24bbb8153a677b98064d7","https://uk.rpc.blxrbdn.com","https://singapore.rpc.blxrbdn.com","https://virginia.rpc.blxrbdn.com","https://eth-mainnet.public.blastapi.io","https://api.securerpc.com/v1","https://mainnet.gateway.tenderly.co","https://eth-pokt.nodies.app","https://eth.blockrazor.xyz","https://eth.merkle.io","https://gateway.tenderly.co/public/mainnet","https://eth.rpc.blxrbdn.com"],4:["","https://bsc.blockrazor.xyz","https://bscrpc.com","https://bsc-mainnet.public.blastapi.io","https://binance.llamarpc.com","https://go.getblock.io/cc778cdbdf5c4b028ec9456e0e6c0cf3","https://bsc-pokt.nodies.app","https://56.rpc.thirdweb.com","https://bsc.blockpi.network/v1/rpc/private","https://bsc.rpc.blxrbdn.com","https://bsc-dataseed.bnbchain.org","https://endpoints.omniatech.io/v1/bsc/mainnet/public","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed2.ninicoin.io","https://0.48.club","https://bsc-dataseed3.defibit.io"],5:["","https://polygon.llamarpc.com","https://polygon-rpc.com","https://rpc-mainnet.matic.quiknode.pro","https://endpoints.omniatech.io/v1/matic/mainnet/public","https://polygon-pokt.nodies.app","https://polygon-bor-rpc.publicnode.com","https://polygon.rpc.subquery.network/public","https://polygon-bor-rpc.publicnode.com","https://polygon.blockpi.network/v1/rpc/private","https://polygon.api.onfinality.io/public","https://polygon.lava.build","https://api.zan.top/polygon-mainnet","https://polygon.meowrpc.com"],6:["","https://avalanche-c-chain-rpc.publicnode.com","https://ava-mainnet.public.blastapi.io/ext/bc/C/rpc","https://endpoints.omniatech.io/v1/avax/mainnet/public","https://avalanche-c-chain-rpc.publicnode.com","https://avalanche.blockpi.network/v1/rpc/private","https://avalanche.public-rpc.com","https://avalanche.drpc.org","https://avax.meowrpc.com","https://endpoints.omniatech.io/v1/avax/mainnet/public","https://api.avax.network/ext/bc/C/rpc","https://1rpc.io/avax/c","https://avax-pokt.nodies.app/ext/bc/C/rpc","https://endpoints.omniatech.io/v1/avax/mainnet/public","https://api.zan.top/avax-mainnet/ext/bc/C/rpc"],23:["","https://arbitrum.llamarpc.com","https://arbitrum.rpc.subquery.network/public","https://endpoints.omniatech.io/v1/arbitrum/one/public","https://arbitrum.meowrpc.com","https://arbitrum.gateway.tenderly.co","https://arbitrum-one.public.blastapi.io","https://arb1.lava.build","https://arbitrum-one.publicnode.com","https://arbitrum.blockpi.network/v1/rpc/public","https://arb-pokt.nodies.app","https://api.zan.top/arb-one","https://arb1.arbitrum.io/rpc","https://arbitrum.drpc.org","https://1rpc.io/arb"],24:["","https://optimism.llamarpc.com","https://op-pokt.nodies.app","https://optimism-mainnet.public.blastapi.io","https://optimism.blockpi.network/v1/rpc/public","https://endpoints.omniatech.io/v1/op/mainnet/public","https://optimism-rpc.publicnode.com","https://optimism.drpc.org","https://1rpc.io/op","https://optimism.gateway.tenderly.co","https://optimism.lava.build","https://optimism.rpc.subquery.network/public","https://mainnet.optimism.io","https://optimism-rpc.publicnode.com","https://gateway.tenderly.co/public/optimism"],30:["","https://base.llamarpc.com","https://base-mainnet.public.blastapi.io","https://base-rpc.publicnode.com","https://base.blockpi.network/v1/rpc/public","https://base.drpc.org","https://mainnet.base.org","https://base.api.onfinality.io/public","https://base-pokt.nodies.app","https://1rpc.io/base","https://developer-access-mainnet.base.org","https://endpoints.omniatech.io/v1/base/mainnet/public","https://base.rpc.subquery.network/public","https://base.api.onfinality.io/public","https://base.meowrpc.com","https://base.gateway.tenderly.co"]};var Re=(n=>(n[n.Off=0]="Off",n[n.Full=1]="Full",n[n.Partial=2]="Partial",n[n.Scheduled=3]="Scheduled",n))(Re||{});var Ne=(o=>(o[o.SELF_TRADE=1]="SELF_TRADE",o[o.FULL_FILLED=2]="FULL_FILLED",o[o.FULL_CANCELLED=3]="FULL_CANCELLED",o[o.PARTIALLY_CANCELLED=4]="PARTIALLY_CANCELLED",o[o.CREATED=5]="CREATED",o))(Ne||{});var Ce=(f=>(f.USERS_READ="users.read",f.FOLLOWS_READ="follows.read",f.FOLLOWS_WRITE="follows.write",f.TWEET_READ="tweet.read",f.TWEET_WRITE="tweet.write",f.OFFLINE_ACCESS="offline.access",f.LIKE_READ="like.read",f.LIKE_WRITE="like.write",f))(Ce||{});var ur=(s=>(s.MFT_AUDIO_LINK="mft.audioLink",s.MFT_TITLE="mft.title",s.MODE_PRE_SALE="mode.preSale",s.MAKER_FEE="makerFee",s.TAKER_FEE="takerFee",s.VIEW_BASE_COIN_ICON_LINK="view.baseCoinIconLink",s.VIEW_BASE_COIN_MARKET_LINK="view.baseCoinMarketLink",s.VIEW_PRICE_COIN_ICON_LINK="view.priceCoinIconLink",s.VIEW_PRICE_COIN_MARKET_LINK="view.priceCoinMarketLink",s))(ur||{}),De=ur;var lr=(e=>(e[e.Buy=0]="Buy",e[e.Sell=1]="Sell",e))(lr||{}),be=lr;var Er=(o=>(o[o.Open=1]="Open",o[o.Canceled=2]="Canceled",o[o.Matched=3]="Matched",o[o.SelfMatched=4]="SelfMatched",o[o.Expired=5]="Expired",o))(Er||{}),Oe=Er;var mr=(n=>(n[n.Limit=0]="Limit",n[n.IOC=1]="IOC",n[n.POST=2]="POST",n[n.Market=3]="Market",n))(mr||{}),Le=mr;var _r=(e=>(e.User="User",e.Api="API",e))(_r||{});var de=(n=>(n.COMPANY="COMPANY",n.TWITTER="TWITTER",n.DISCORD="DISCORD",n.TELEGRAM="TELEGRAM",n))(de||{}),ve=(h=>(h[h.TWITTER_FOLLOW=1]="TWITTER_FOLLOW",h[h.TWITTER_REPLY=2]="TWITTER_REPLY",h[h.TWITTER_RETWEET=3]="TWITTER_RETWEET",h[h.TWITTER_LIKE=4]="TWITTER_LIKE",h[h.COMPANY_FIRST_LOGIN=5]="COMPANY_FIRST_LOGIN",h[h.COMPANY_CONFIRM_EMAIL=6]="COMPANY_CONFIRM_EMAIL",h[h.COMPANY_DEPOSIT=7]="COMPANY_DEPOSIT",h[h.COMPANY_TRADE=8]="COMPANY_TRADE",h[h.TELEGRAM_JOIN_GROUP=9]="TELEGRAM_JOIN_GROUP",h[h.DISCORD_JOIN_SERVER=10]="DISCORD_JOIN_SERVER",h[h.AFFILIATE_POINTS_REWARD=11]="AFFILIATE_POINTS_REWARD",h))(ve||{}),Vt=[1,9,10,6,5];var ye=(n=>(n.CREATED="created",n.STARTED="started",n.PAUSED="paused",n.CLOSED="closed",n))(ye||{}),ge=(e=>(e.Post="POST",e.Comment="COMMENT",e))(ge||{});var Ue=(p=>(p.INSTRUCTIONS="INSTRUCTIONS",p.TEXT_STYLE="TEXT_STYLE",p.TEXT_TONE="TEXT_TONE",p.REACTION_TYPE="REACTION_TYPE",p.COMMENT_LENGTH="COMMENT_LENGTH",p.CONTEXT="CONTEXT",p))(Ue||{});var Pe=(p=>(p[p.FEE_TIER_1=1]="FEE_TIER_1",p[p.FEE_TIER_2=2]="FEE_TIER_2",p[p.FEE_TIER_3=3]="FEE_TIER_3",p[p.FEE_TIER_4=4]="FEE_TIER_4",p[p.FEE_TIER_5=5]="FEE_TIER_5",p[p.FEE_TIER_6=6]="FEE_TIER_6",p))(Pe||{}),Be=(e=>(e[e.Approve=1]="Approve",e[e.Reject=0]="Reject",e))(Be||{}),Fe=(o=>(o.INITIATED="INITIATED",o.CREATED="CREATED",o.PROCESSING="PROCESSING",o.APPROVED="APPROVED",o.REJECTED="REJECTED",o))(Fe||{});var Ye=(o=>(o.INVITED_ACCOUNTS_COUNT="invitedAccountsCount",o.CREATED_AT="createdAt",o.FEE_SHARE="feeShare",o.ADDRESS="address",o.REFERRAL_TRADING_VOLUME="referralTradingVolume",o))(Ye||{});var ke=(p=>(p.ACTIVE="ACTIVE",p.FAILED="FAILED",p.STARTING="STARTING",p.DRAINING="DRAINING",p.TERMINATING="TERMINATING",p.TERMINATED="TERMINATED",p))(ke||{}),Ge=(o=>(o.MATCHING_ENGINE="me",o.ORDER_SERVICE="ors",o.API="api",o.SOCKET_SERVICE="ws",o.TRANSACTION_SERVICE="tns",o))(Ge||{}),Me=(o=>(o.ACTIVE="ACTIVE",o.FAILED="FAILED",o.UNASSIGNED="UNASSIGNED",o.ASSIGNED="ASSIGNED",o.STARTING="STARTING",o))(Me||{});var We=(n=>(n.Pending="pending",n.Completed="completed",n.Failed="failed",n.Received="received",n))(We||{}),He=(n=>(n.Deposit="deposit",n.FastDeposit="fast_deposit",n.Withdraw="withdraw",n.Rebalance="rebalance",n))(He||{}),Se=(i=>(i.PENDING="pending",i.COMPLETED="completed",i.FAILED="failed",i))(Se||{}),Ve=(o=>(o.USER_TO_TMC="user_to_tmc",o.TMC_TO_USER="tmc_to_user",o.RELAYER_TO_TMC="relayer_to_tmc",o.RELAYER_TO_CODEX="relayer_to_codex",o.RELAYER_TO_CIRCLE="relayer_to_circle",o))(Ve||{});var Ke=(i=>(i.Unconfirmed="UNCONFIRMED",i.Confirmed="CONFIRMED",i.Rejected="REJECTED",i))(Ke||{}),ze=(i=>(i.RESUBMITTED="RESUBMITTED",i.PROCESSED="PROCESSED",i.REMATCHED="REMATCHED",i))(ze||{});var Je=(n=>(n[n.FIRST=1]="FIRST",n[n.SECOND=2]="SECOND",n[n.THIRD=3]="THIRD",n[n.FOURTH=4]="FOURTH",n))(Je||{}),Xe=(c=>(c.REBATE_TIER="rebateTier",c.CREATED_AT="createdAt",c.NAME="name",c.TAKER_FEE="takerFee",c.ENABLED="enabled",c.ADDRESS="address",c.CHAIN="chainId",c))(Xe||{});var qe=(e=>(e.ASCENDING="ASC",e.DESCENDING="DESC",e))(qe||{});var Ar=(n=>(n.GLOBAL_PAIR_DELISTING="GLOBAL_PAIR_DELISTING",n.GLOBAL_NEW_PAIR_LISTING="GLOBAL_NEW_PAIR_LISTING",n.GLOBAL_SYSTEM_MAINTENANCE="GLOBAL_SYSTEM_MAINTENANCE",n.GLOBAL_SMART_CONTRACT_UPDATE="GLOBAL_SMART_CONTRACT_UPDATE",n))(Ar||{}),xr=(i=>(i.ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT="ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT",i.ACCOUNT_KYC_STATUS_CHANGED="ACCOUNT_KYC_STATUS_CHANGED",i.ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED="ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED",i))(xr||{}),wi={...Ar,...xr},Qe=(i=>(i.CRITICAL="CRITICAL",i.IMPORTANT="IMPORTANT",i.INFO="INFO",i))(Qe||{}),Ze=(e=>(e.UNREAD="UNREAD",e.READ="READ",e))(Ze||{}),$e=(i=>(i.PENDING="PENDING",i.PROCESSED="PROCESSED",i.FAILED="FAILED",i))($e||{});var je=(p=>(p.STRING="string",p.BOOLEAN="boolean",p.INT="int",p.FLOAT="float",p.SINGLE_CHOICE="single-choice",p.MULTI_CHOICE="multi-choice",p))(je||{});var rt=(c=>(c.VERSION="version",c.LAST_ALGO_BLOCK="last_algo_block",c.PRICES_PROVIDER_API_KEY="prices_provider_api_key",c.DEFAULT_API_DOMAIN="default_api_domain",c.NONCE_ACCOUNTS_SOLANA="nonce_accounts_solana",c.ARCHIVE_DATA_BATCH_SIZE="archive_data_batch_size",c.ARCHIVE_TASK_LOCK="archive_task_lock",c))(rt||{});var et=(i=>(i.SUCCESS="success",i.FAILED="failed",i.PENDING="pending",i))(et||{});var tt=(i=>(i.SOLANA="SOLANA",i.ALGORAND="ALGORAND",i.EVM="EVM",i))(tt||{});var it=(n=>(n.TIMESTAMP="timestamp",n.TYPE="action_type",n.CHAIN="login_chain_id",n.STATUS="status",n))(it||{});var nt=(o=>(o.CONNECTED="CONNECTED",o.CONNECTING="CONNECTING",o.DISCONNECTED="DISCONNECTED",o.DISCONNECTING="DISCONNECTING",o.PENDING="PENDING",o))(nt||{});var ot=(e=>(e.NAME="name",e.POINTS="points",e))(ot||{});var pt=(l=>(l.ENABLED="company.enabled",l.APP_TITLE="company.appTitle",l.DOMAIN="company.domain",l.DIRECT_SETTLE="company.directSettlement",l.KYC="markets.kycTradeRequirementEnabled",l.GEOBLOCK="company.geoblock",l.LOGO="appearance.logo",l.THEMES="appearance.themes",l.NEW_TAB="appearance.newTab",l.TARGET="appearance.target",l.REPORT_BUTTONS="appearance.reportButtons",l.CUSTOM_MENU_ITEMS="appearance.customMenuItems",l.APPEARANCE_CHART_TYPE="appearance.chartType",l.APPEARANCE_CHART_INT="appearance.chartInt",l.AMM="product.amm",l.OBDEX="product.obdex",l.POINTS="product.pointSystem",l.AFFILIATE_DASHBOARD_THRESHOLD="product.affiliateDashboardThreshold",l.AFFILIATE_DEFAULT_FEE_SHARE="product.affiliateDefaultFeeShare",l.AFFILIATE_DASHBOARD_VISIBILITY="product.affiliateDashboardVisibility",l.AMM_FEE="company.ammFee",l.FEE_SHARE="company.feeShare",l.MIN_FEE="company.minFee",l.MAKER_FEE="company.makerFee",l.TAKER_FEE="company.takerFee",l.PINNED_PAIRS="markets.pinnedPairs",l.TWITTER_ENABLED="point-system.twitterEnabled",l.TWITTER_JOB_ENABLED="point-system.twitterJobEnabled",l.TWITTER_HASHTAGS="point-system.twitterHashtags",l.TWITTER_ACCOUNT_NAME="point-system.twitterAccountName",l.DISCORD_ENABLED="point-system.discordEnabled",l.TELEGRAM_ENABLED="point-system.telegramEnabled",l.TELEGRAM_GROUP_NAME="point-system.telegramGroupName",l.TELEGRAM_BOT_NAME="point-system.telegramBotName",l.GUIDE_LINK="point-system.guideLink",l))(pt||{});var at=(_=>(_[_.QUOTE=1]="QUOTE",_[_.LAST_PRICE=2]="LAST_PRICE",_[_.DEPTH=3]="DEPTH",_[_.LAST_CANDLESTICK=4]="LAST_CANDLESTICK",_[_.ORDERS=5]="ORDERS",_[_.TRADES=6]="TRADES",_[_.SYSTEM=7]="SYSTEM",_[_.WALLET_TRANSACTIONS=8]="WALLET_TRANSACTIONS",_[_.ALL_STAT=9]="ALL_STAT",_[_.CODEX_ASSETS=12]="CODEX_ASSETS",_[_.CODEX_BALANCES=10]="CODEX_BALANCES",_[_.LAST_LOOK=11]="LAST_LOOK",_[_.SETTINGS_UPDATE=13]="SETTINGS_UPDATE",_[_.NEW_NOTIFICATION=14]="NEW_NOTIFICATION",_[_.POINT_SYSTEM_SETTINGS_UPDATE=15]="POINT_SYSTEM_SETTINGS_UPDATE",_))(at||{}),In=[5,8,10,11];export{xr as AccountNotificationEnum,ve as ActionEnum,de as ActionSource,He as ActionTypeEnum,Ye as AffiliateSortByEnum,De as AvailablePairSettings,Se as CCTPStatus,Et as ChainNames,we as Chains,wi as CombinedNotificationEnum,ke as ComponentStatusType,Ge as ComponentType,Pe as FeeTier,Ar as GlobalNotificationEnum,_t as HTTPSRPC_MAINNET,mt as HTTPSRPC_TESTNET,Fe as KYCAuthenticationStatus,Be as LastLookAction,Re as MaintenanceMode,Je as MarketMakerRebateTier,Xe as MarketMakerSortByEnum,Vt as NON_REPEATABLE_ACTIONS,Ne as Notification,Qe as NotificationPriorityEnum,Ze as NotificationStatusEnum,We as OperationStatusEnum,be as OrderSide,Oe as OrderStatus,Le as OrderType,In as PRIVATE_STREAMS,Me as PairComponentStatusType,it as PendingActionsSortByEnum,ot as PointsSortByEnum,Ue as PromptTypeEnum,nt as RabbitConnectionStatus,at as STREAMS,$e as ScheduledNotificationStatusEnum,ye as SeasonStatusEnum,pt as SettingIds,je as SettingTypeColumn,qe as SortDirectionEnum,rt as StateType,Ke as TradeStatus,ze as TradeSubStatus,_r as TradingKeyType,Ve as TransactionType,ge as TweetType,Ce as TwitterAccessScopeEnum,et as UpgradeStatus,tt as WithdrawalWalletType};
|
|
1
|
+
function K(){throw new Error("setTimeout has not been defined")}function z(){throw new Error("clearTimeout has not been defined")}var b=K,O=z;typeof globalThis.setTimeout=="function"&&(b=setTimeout);typeof globalThis.clearTimeout=="function"&&(O=clearTimeout);function J(t){if(b===setTimeout)return setTimeout(t,0);if((b===K||!b)&&setTimeout)return b=setTimeout,setTimeout(t,0);try{return b(t,0)}catch{try{return b.call(null,t,0)}catch{return b.call(this,t,0)}}}function Tr(t){if(O===clearTimeout)return clearTimeout(t);if((O===z||!O)&&clearTimeout)return O=clearTimeout,clearTimeout(t);try{return O(t)}catch{try{return O.call(null,t)}catch{return O.call(this,t)}}}var C=[],g=!1,L,U=-1;function Ir(){!g||!L||(g=!1,L.length?C=L.concat(C):U=-1,C.length&&X())}function X(){if(!g){var t=J(Ir);g=!0;for(var r=C.length;r;){for(L=C,C=[];++U<r;)L&&L[U].run();U=-1,r=C.length}L=null,g=!1,Tr(t)}}function wr(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];C.push(new q(t,r)),C.length===1&&!g&&J(X)}function q(t,r){this.fun=t,this.array=r}q.prototype.run=function(){this.fun.apply(null,this.array)};var Rr="browser",Nr="browser",Cr=!0,Dr={},br=[],Or="",Lr={},dr={},vr={};function d(){}var yr=d,gr=d,Ur=d,Pr=d,Br=d,Fr=d,Yr=d;function kr(t){throw new Error("process.binding is not supported")}function Gr(){return"/"}function Mr(t){throw new Error("process.chdir is not supported")}function Wr(){return 0}var y=globalThis.performance||{},Hr=y.now||y.mozNow||y.msNow||y.oNow||y.webkitNow||function(){return new Date().getTime()};function Sr(t){var r=Hr.call(y)*.001,e=Math.floor(r),i=Math.floor(r%1*1e9);return t&&(e=e-t[0],i=i-t[1],i<0&&(e--,i+=1e9)),[e,i]}var Vr=new Date;function Kr(){var t=new Date,r=t-Vr;return r/1e3}var E={nextTick:wr,title:Rr,browser:Cr,env:Dr,argv:br,version:Or,versions:Lr,on:yr,addListener:gr,once:Ur,off:Pr,removeListener:Br,removeAllListeners:Fr,emit:Yr,binding:kr,cwd:Gr,chdir:Mr,umask:Wr,hrtime:Sr,platform:Nr,release:dr,config:vr,uptime:Kr},V={};Object.keys(V).forEach(t=>{let r=t.split("."),e=E;for(let i=0;i<r.length;i++){let n=r[i];i===r.length-1?e[n]=V[t]:e=e[n]||(e[n]={})}});var R=[],I=[],zr=typeof Uint8Array<"u"?Uint8Array:Array,W=!1;function j(){W=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)R[r]=t[r],I[t.charCodeAt(r)]=r;I[45]=62,I[95]=63}function Jr(t){W||j();var r,e,i,n,o,p,c=t.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=t[c-2]==="="?2:t[c-1]==="="?1:0,p=new zr(c*3/4-o),i=o>0?c-4:c;var f=0;for(r=0,e=0;r<i;r+=4,e+=3)n=I[t.charCodeAt(r)]<<18|I[t.charCodeAt(r+1)]<<12|I[t.charCodeAt(r+2)]<<6|I[t.charCodeAt(r+3)],p[f++]=n>>16&255,p[f++]=n>>8&255,p[f++]=n&255;return o===2?(n=I[t.charCodeAt(r)]<<2|I[t.charCodeAt(r+1)]>>4,p[f++]=n&255):o===1&&(n=I[t.charCodeAt(r)]<<10|I[t.charCodeAt(r+1)]<<4|I[t.charCodeAt(r+2)]>>2,p[f++]=n>>8&255,p[f++]=n&255),p}function Xr(t){return R[t>>18&63]+R[t>>12&63]+R[t>>6&63]+R[t&63]}function qr(t,r,e){for(var i,n=[],o=r;o<e;o+=3)i=(t[o]<<16)+(t[o+1]<<8)+t[o+2],n.push(Xr(i));return n.join("")}function Q(t){W||j();for(var r,e=t.length,i=e%3,n="",o=[],p=16383,c=0,f=e-i;c<f;c+=p)o.push(qr(t,c,c+p>f?f:c+p));return i===1?(r=t[e-1],n+=R[r>>2],n+=R[r<<4&63],n+="=="):i===2&&(r=(t[e-2]<<8)+t[e-1],n+=R[r>>10],n+=R[r>>4&63],n+=R[r<<2&63],n+="="),o.push(n),o.join("")}a.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function P(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function D(t,r){if(P()<r)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=a.prototype):(t===null&&(t=new a(r)),t.length=r),t}function a(t,r,e){if(!a.TYPED_ARRAY_SUPPORT&&!(this instanceof a))return new a(t,r,e);if(typeof t=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return H(this,t)}return rr(this,t,r,e)}a.poolSize=8192;a._augment=function(t){return t.__proto__=a.prototype,t};function rr(t,r,e,i){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?$r(t,r,e,i):typeof r=="string"?Zr(t,r,e):jr(t,r)}a.from=function(t,r,e){return rr(null,t,r,e)};a.kMaxLength=P();a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&a[Symbol.species]);function er(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Qr(t,r,e,i){return er(r),r<=0?D(t,r):e!==void 0?typeof i=="string"?D(t,r).fill(e,i):D(t,r).fill(e):D(t,r)}a.alloc=function(t,r,e){return Qr(null,t,r,e)};function H(t,r){if(er(r),t=D(t,r<0?0:S(r)|0),!a.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}a.allocUnsafe=function(t){return H(null,t)};a.allocUnsafeSlow=function(t){return H(null,t)};function Zr(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!a.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var i=tr(r,e)|0;t=D(t,i);var n=t.write(r,e);return n!==i&&(t=t.slice(0,n)),t}function M(t,r){var e=r.length<0?0:S(r.length)|0;t=D(t,e);for(var i=0;i<e;i+=1)t[i]=r[i]&255;return t}function $r(t,r,e,i){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(i||0))throw new RangeError("'length' is out of bounds");return e===void 0&&i===void 0?r=new Uint8Array(r):i===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,i),a.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=a.prototype):t=M(t,r),t}function jr(t,r){if(N(r)){var e=S(r.length)|0;return t=D(t,e),t.length===0||r.copy(t,0,0,e),t}if(r){if(typeof ArrayBuffer<"u"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||xe(r.length)?D(t,0):M(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return M(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function S(t){if(t>=P())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+P().toString(16)+" bytes");return t|0}a.isBuffer=Te;function N(t){return!!(t!=null&&t._isBuffer)}a.compare=function(r,e){if(!N(r)||!N(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var i=r.length,n=e.length,o=0,p=Math.min(i,n);o<p;++o)if(r[o]!==e[o]){i=r[o],n=e[o];break}return i<n?-1:n<i?1:0};a.isEncoding=function(r){switch(String(r).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}};a.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return a.alloc(0);var i;if(e===void 0)for(e=0,i=0;i<r.length;++i)e+=r[i].length;var n=a.allocUnsafe(e),o=0;for(i=0;i<r.length;++i){var p=r[i];if(!N(p))throw new TypeError('"list" argument must be an Array of Buffers');p.copy(n,o),o+=p.length}return n};function tr(t,r){if(N(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;if(e===0)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return hr(t).length;default:if(i)return B(t).length;r=(""+r).toLowerCase(),i=!0}}a.byteLength=tr;function re(t,r,e){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return fe(this,r,e);case"utf8":case"utf-8":return or(this,r,e);case"ascii":return ce(this,r,e);case"latin1":case"binary":return he(this,r,e);case"base64":return pe(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,r,e);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}a.prototype._isBuffer=!0;function v(t,r,e){var i=t[r];t[r]=t[e],t[e]=i}a.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)v(this,e,e+1);return this};a.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this};a.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this};a.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?or(this,0,r):re.apply(this,arguments)};a.prototype.equals=function(r){if(!N(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:a.compare(this,r)===0};a.prototype.compare=function(r,e,i,n,o){if(!N(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),e<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=i)return 0;if(n>=o)return-1;if(e>=i)return 1;if(e>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var p=o-n,c=i-e,f=Math.min(p,c),s=this.slice(n,o),m=r.slice(e,i),h=0;h<f;++h)if(s[h]!==m[h]){p=s[h],c=m[h];break}return p<c?-1:c<p?1:0};function ir(t,r,e,i,n){if(t.length===0)return-1;if(typeof e=="string"?(i=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=n?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(n)return-1;e=t.length-1}else if(e<0)if(n)e=0;else return-1;if(typeof r=="string"&&(r=a.from(r,i)),N(r))return r.length===0?-1:Z(t,r,e,i,n);if(typeof r=="number")return r=r&255,a.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):Z(t,[r],e,i,n);throw new TypeError("val must be string, number or Buffer")}function Z(t,r,e,i,n){var o=1,p=t.length,c=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||r.length<2)return-1;o=2,p/=2,c/=2,e/=2}function f(T,u){return o===1?T[u]:T.readUInt16BE(u*o)}var s;if(n){var m=-1;for(s=e;s<p;s++)if(f(t,s)===f(r,m===-1?0:s-m)){if(m===-1&&(m=s),s-m+1===c)return m*o}else m!==-1&&(s-=s-m),m=-1}else for(e+c>p&&(e=p-c),s=e;s>=0;s--){for(var h=!0,w=0;w<c;w++)if(f(t,s+w)!==f(r,w)){h=!1;break}if(h)return s}return-1}a.prototype.includes=function(r,e,i){return this.indexOf(r,e,i)!==-1};a.prototype.indexOf=function(r,e,i){return ir(this,r,e,i,!0)};a.prototype.lastIndexOf=function(r,e,i){return ir(this,r,e,i,!1)};function ee(t,r,e,i){e=Number(e)||0;var n=t.length-e;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var p=0;p<i;++p){var c=parseInt(r.substr(p*2,2),16);if(isNaN(c))return p;t[e+p]=c}return p}function te(t,r,e,i){return k(B(r,t.length-e),t,e,i)}function nr(t,r,e,i){return k(_e(r),t,e,i)}function ie(t,r,e,i){return nr(t,r,e,i)}function ne(t,r,e,i){return k(hr(r),t,e,i)}function oe(t,r,e,i){return k(Ae(r,t.length-e),t,e,i)}a.prototype.write=function(r,e,i,n){if(e===void 0)n="utf8",i=this.length,e=0;else if(i===void 0&&typeof e=="string")n=e,i=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(i)?(i=i|0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-e;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return ee(this,r,e,i);case"utf8":case"utf-8":return te(this,r,e,i);case"ascii":return nr(this,r,e,i);case"latin1":case"binary":return ie(this,r,e,i);case"base64":return ne(this,r,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,r,e,i);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}};a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pe(t,r,e){return r===0&&e===t.length?Q(t):Q(t.slice(r,e))}function or(t,r,e){e=Math.min(t.length,e);for(var i=[],n=r;n<e;){var o=t[n],p=null,c=o>239?4:o>223?3:o>191?2:1;if(n+c<=e){var f,s,m,h;switch(c){case 1:o<128&&(p=o);break;case 2:f=t[n+1],(f&192)===128&&(h=(o&31)<<6|f&63,h>127&&(p=h));break;case 3:f=t[n+1],s=t[n+2],(f&192)===128&&(s&192)===128&&(h=(o&15)<<12|(f&63)<<6|s&63,h>2047&&(h<55296||h>57343)&&(p=h));break;case 4:f=t[n+1],s=t[n+2],m=t[n+3],(f&192)===128&&(s&192)===128&&(m&192)===128&&(h=(o&15)<<18|(f&63)<<12|(s&63)<<6|m&63,h>65535&&h<1114112&&(p=h))}}p===null?(p=65533,c=1):p>65535&&(p-=65536,i.push(p>>>10&1023|55296),p=56320|p&1023),i.push(p),n+=c}return ae(i)}var $=4096;function ae(t){var r=t.length;if(r<=$)return String.fromCharCode.apply(String,t);for(var e="",i=0;i<r;)e+=String.fromCharCode.apply(String,t.slice(i,i+=$));return e}function ce(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]&127);return i}function he(t,r,e){var i="";e=Math.min(t.length,e);for(var n=r;n<e;++n)i+=String.fromCharCode(t[n]);return i}function fe(t,r,e){var i=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>i)&&(e=i);for(var n="",o=r;o<e;++o)n+=me(t[o]);return n}function se(t,r,e){for(var i=t.slice(r,e),n="",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}a.prototype.slice=function(r,e){var i=this.length;r=~~r,e=e===void 0?i:~~e,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<r&&(e=r);var n;if(a.TYPED_ARRAY_SUPPORT)n=this.subarray(r,e),n.__proto__=a.prototype;else{var o=e-r;n=new a(o,void 0);for(var p=0;p<o;++p)n[p]=this[p+r]}return n};function A(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUIntLE=function(r,e,i){r=r|0,e=e|0,i||A(r,e,this.length);for(var n=this[r],o=1,p=0;++p<e&&(o*=256);)n+=this[r+p]*o;return n};a.prototype.readUIntBE=function(r,e,i){r=r|0,e=e|0,i||A(r,e,this.length);for(var n=this[r+--e],o=1;e>0&&(o*=256);)n+=this[r+--e]*o;return n};a.prototype.readUInt8=function(r,e){return e||A(r,1,this.length),this[r]};a.prototype.readUInt16LE=function(r,e){return e||A(r,2,this.length),this[r]|this[r+1]<<8};a.prototype.readUInt16BE=function(r,e){return e||A(r,2,this.length),this[r]<<8|this[r+1]};a.prototype.readUInt32LE=function(r,e){return e||A(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};a.prototype.readUInt32BE=function(r,e){return e||A(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};a.prototype.readIntLE=function(r,e,i){r=r|0,e=e|0,i||A(r,e,this.length);for(var n=this[r],o=1,p=0;++p<e&&(o*=256);)n+=this[r+p]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n};a.prototype.readIntBE=function(r,e,i){r=r|0,e=e|0,i||A(r,e,this.length);for(var n=e,o=1,p=this[r+--n];n>0&&(o*=256);)p+=this[r+--n]*o;return o*=128,p>=o&&(p-=Math.pow(2,8*e)),p};a.prototype.readInt8=function(r,e){return e||A(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};a.prototype.readInt16LE=function(r,e){e||A(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};a.prototype.readInt16BE=function(r,e){e||A(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};a.prototype.readInt32LE=function(r,e){return e||A(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};a.prototype.readInt32BE=function(r,e){return e||A(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};a.prototype.readFloatLE=function(r,e){return e||A(r,4,this.length),G(this,r,!0,23,4)};a.prototype.readFloatBE=function(r,e){return e||A(r,4,this.length),G(this,r,!1,23,4)};a.prototype.readDoubleLE=function(r,e){return e||A(r,8,this.length),G(this,r,!0,52,8)};a.prototype.readDoubleBE=function(r,e){return e||A(r,8,this.length),G(this,r,!1,52,8)};function x(t,r,e,i,n,o){if(!N(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(e+i>t.length)throw new RangeError("Index out of range")}a.prototype.writeUIntLE=function(r,e,i,n){if(r=+r,e=e|0,i=i|0,!n){var o=Math.pow(2,8*i)-1;x(this,r,e,i,o,0)}var p=1,c=0;for(this[e]=r&255;++c<i&&(p*=256);)this[e+c]=r/p&255;return e+i};a.prototype.writeUIntBE=function(r,e,i,n){if(r=+r,e=e|0,i=i|0,!n){var o=Math.pow(2,8*i)-1;x(this,r,e,i,o,0)}var p=i-1,c=1;for(this[e+p]=r&255;--p>=0&&(c*=256);)this[e+p]=r/c&255;return e+i};a.prototype.writeUInt8=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,1,255,0),a.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function F(t,r,e,i){r<0&&(r=65535+r+1);for(var n=0,o=Math.min(t.length-e,2);n<o;++n)t[e+n]=(r&255<<8*(i?n:1-n))>>>(i?n:1-n)*8}a.prototype.writeUInt16LE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):F(this,r,e,!0),e+2};a.prototype.writeUInt16BE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):F(this,r,e,!1),e+2};function Y(t,r,e,i){r<0&&(r=4294967295+r+1);for(var n=0,o=Math.min(t.length-e,4);n<o;++n)t[e+n]=r>>>(i?n:3-n)*8&255}a.prototype.writeUInt32LE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):Y(this,r,e,!0),e+4};a.prototype.writeUInt32BE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):Y(this,r,e,!1),e+4};a.prototype.writeIntLE=function(r,e,i,n){if(r=+r,e=e|0,!n){var o=Math.pow(2,8*i-1);x(this,r,e,i,o-1,-o)}var p=0,c=1,f=0;for(this[e]=r&255;++p<i&&(c*=256);)r<0&&f===0&&this[e+p-1]!==0&&(f=1),this[e+p]=(r/c>>0)-f&255;return e+i};a.prototype.writeIntBE=function(r,e,i,n){if(r=+r,e=e|0,!n){var o=Math.pow(2,8*i-1);x(this,r,e,i,o-1,-o)}var p=i-1,c=1,f=0;for(this[e+p]=r&255;--p>=0&&(c*=256);)r<0&&f===0&&this[e+p+1]!==0&&(f=1),this[e+p]=(r/c>>0)-f&255;return e+i};a.prototype.writeInt8=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,1,127,-128),a.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};a.prototype.writeInt16LE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):F(this,r,e,!0),e+2};a.prototype.writeInt16BE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):F(this,r,e,!1),e+2};a.prototype.writeInt32LE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):Y(this,r,e,!0),e+4};a.prototype.writeInt32BE=function(r,e,i){return r=+r,e=e|0,i||x(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),a.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):Y(this,r,e,!1),e+4};function pr(t,r,e,i,n,o){if(e+i>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function ar(t,r,e,i,n){return n||pr(t,r,e,4,34028234663852886e22,-34028234663852886e22),sr(t,r,e,i,23,4),e+4}a.prototype.writeFloatLE=function(r,e,i){return ar(this,r,e,!0,i)};a.prototype.writeFloatBE=function(r,e,i){return ar(this,r,e,!1,i)};function cr(t,r,e,i,n){return n||pr(t,r,e,8,17976931348623157e292,-17976931348623157e292),sr(t,r,e,i,52,8),e+8}a.prototype.writeDoubleLE=function(r,e,i){return cr(this,r,e,!0,i)};a.prototype.writeDoubleBE=function(r,e,i){return cr(this,r,e,!1,i)};a.prototype.copy=function(r,e,i,n){if(i||(i=0),!n&&n!==0&&(n=this.length),e>=r.length&&(e=r.length),e||(e=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-e<n-i&&(n=r.length-e+i);var o=n-i,p;if(this===r&&i<e&&e<n)for(p=o-1;p>=0;--p)r[p+e]=this[p+i];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(p=0;p<o;++p)r[p+e]=this[p+i];else Uint8Array.prototype.set.call(r,this.subarray(i,i+o),e);return o};a.prototype.fill=function(r,e,i,n){if(typeof r=="string"){if(typeof e=="string"?(n=e,e=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),r.length===1){var o=r.charCodeAt(0);o<256&&(r=o)}if(n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;e=e>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var p;if(typeof r=="number")for(p=e;p<i;++p)this[p]=r;else{var c=N(r)?r:B(new a(r,n).toString()),f=c.length;for(p=0;p<i-e;++p)this[p+e]=c[p%f]}return this};var ue=/[^+\/0-9A-Za-z-_]/g;function le(t){if(t=Ee(t).replace(ue,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Ee(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function me(t){return t<16?"0"+t.toString(16):t.toString(16)}function B(t,r){r=r||1/0;for(var e,i=t.length,n=null,o=[],p=0;p<i;++p){if(e=t.charCodeAt(p),e>55295&&e<57344){if(!n){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(p+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),n=e;continue}e=(n-55296<<10|e-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function _e(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function Ae(t,r){for(var e,i,n,o=[],p=0;p<t.length&&!((r-=2)<0);++p)e=t.charCodeAt(p),i=e>>8,n=e%256,o.push(n),o.push(i);return o}function hr(t){return Jr(le(t))}function k(t,r,e,i){for(var n=0;n<i&&!(n+e>=r.length||n>=t.length);++n)r[n+e]=t[n];return n}function xe(t){return t!==t}function Te(t){return t!=null&&(!!t._isBuffer||fr(t)||Ie(t))}function fr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Ie(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&fr(t.slice(0,0))}function G(t,r,e,i,n){var o,p,c=n*8-i-1,f=(1<<c)-1,s=f>>1,m=-7,h=e?n-1:0,w=e?-1:1,T=t[r+h];for(h+=w,o=T&(1<<-m)-1,T>>=-m,m+=c;m>0;o=o*256+t[r+h],h+=w,m-=8);for(p=o&(1<<-m)-1,o>>=-m,m+=i;m>0;p=p*256+t[r+h],h+=w,m-=8);if(o===0)o=1-s;else{if(o===f)return p?NaN:(T?-1:1)*(1/0);p=p+Math.pow(2,i),o=o-s}return(T?-1:1)*p*Math.pow(2,o-i)}function sr(t,r,e,i,n,o){var p,c,f,s=o*8-n-1,m=(1<<s)-1,h=m>>1,w=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=i?0:o-1,u=i?1:-1,_=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,p=m):(p=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-p))<1&&(p--,f*=2),p+h>=1?r+=w/f:r+=w*Math.pow(2,1-h),r*f>=2&&(p++,f/=2),p+h>=m?(c=0,p=m):p+h>=1?(c=(r*f-1)*Math.pow(2,n),p=p+h):(c=r*Math.pow(2,h-1)*Math.pow(2,n),p=0));n>=8;t[e+T]=c&255,T+=u,c/=256,n-=8);for(p=p<<n|c,s+=n;s>0;t[e+T]=p&255,T+=u,p/=256,s-=8);t[e+T-u]|=_*128}var we=(u=>(u[u.Solana=1]="Solana",u[u.Algorand=8]="Algorand",u[u.Polygon=5]="Polygon",u[u.Bsc=4]="Bsc",u[u.Avalanche=6]="Avalanche",u[u.Arbitrum=23]="Arbitrum",u[u.Optimism=24]="Optimism",u[u.Base=30]="Base",u[u.Ethereum=2]="Ethereum",u[u.Sepolia=10002]="Sepolia",u[u.ArbitrumSepolia=10003]="ArbitrumSepolia",u[u.BaseSepolia=10004]="BaseSepolia",u[u.OptimismSepolia=10005]="OptimismSepolia",u[u.PolygonAmoy=10007]="PolygonAmoy",u))(we||{}),Et={1:"Solana",2:"Ethereum",5:"Polygon",4:"BNB Chain",6:"Avalanche",8:"Algorand",23:"Arbitrum",24:"Optimism",30:"Base",10002:"Ethereum Sepolia",10003:"Arbitrum Sepolia",10004:"Base Sepolia",10005:"Optimism Sepolia",10007:"Polygon Amoy"},mt={4:["","https://bsc-testnet.public.blastapi.io","https://bsc-testnet.blockpi.network/v1/rpc/private","https://bsc-testnet-rpc.publicnode.com","https://api.zan.top/bsc-testnet","https://data-seed-prebsc-2-s1.bnbchain.org:8545","https://data-seed-prebsc-2-s2.bnbchain.org:8545","https://data-seed-prebsc-2-s3.bnbchain.org:8545","https://data-seed-prebsc-1-s1.bnbchain.org:8545","https://data-seed-prebsc-1-s2.bnbchain.org:8545","https://data-seed-prebsc-1-s3.bnbchain.org:8545","https://endpoints.omniatech.io/v1/bsc/testnet/public"],6:["","https://rpc.ankr.com/avalanche_fuji","https://rpc.ankr.com/avalanche_fuji-c","https://api.avax-test.network/ext/bc/C/rpc","https://ava-testnet.public.blastapi.io/ext/bc/C/rpc","https://endpoints.omniatech.io/v1/avax/fuji/public","https://avalanche-fuji.blockpi.network/v1/rpc/private","https://avalanche-fuji-c-chain-rpc.publicnode.com","https://avalanche-fuji.blockpi.network/v1/rpc/private"],10002:["https://ethereum-sepolia-rpc.publicnode.com","https://sepolia.gateway.tenderly.co","https://eth-sepolia.public.blastapi.io","https://ethereum-sepolia.blockpi.network/v1/rpc/private","https://sepolia.drpc.org","https://endpoints.omniatech.io/v1/eth/sepolia/public","https://1rpc.io/sepolia","https://gateway.tenderly.co/public/sepolia","https://sepolia.gateway.tenderly.co","https://api.zan.top/eth-sepolia","https://ethereum-sepolia.rpc.subquery.network/public"],10003:["","https://arbitrum-sepolia.blockpi.network/v1/rpc/private ","https://arbitrum-sepolia.gateway.tenderly.co","https://endpoints.omniatech.io/v1/arbitrum/sepolia/public","https://api.zan.top/arb-sepolia","https://sepolia-rollup.arbitrum.io/rpc"],10004:["","https://sepolia.base.org","https://base-sepolia-rpc.publicnode.com","https://base-sepolia.gateway.tenderly.co","https://base-sepolia.blockpi.network/v1/rpc/private","https://node.histori.xyz/base-sepolia/8ry9f6t9dct1se2hlagxnd9n2a"],10005:["","https://optimism-sepolia.blockpi.network/v1/rpc/private","https://sepolia.optimism.io","https://api.zan.top/opt-sepolia","https://optimism-sepolia.gateway.tenderly.co","https://optimism-sepolia.drpc.org","https://endpoints.omniatech.io/v1/op/sepolia/public"],10007:["https://rpc-amoy.polygon.technology","https://polygon-amoy-bor-rpc.publicnode.com","https://rpc.ankr.com/polygon_amoy","https://polygon-amoy.drpc.org","https://api.zan.top/polygon-amoy","https://polygon-amoy.gateway.tenderly.co"]},_t={2:["","https://eth.llamarpc.com","https://ethereum.blockpi.network/v1/rpc/public","https://eth-mainnet.nodereal.io/v1/1659dfb40aa24bbb8153a677b98064d7","https://uk.rpc.blxrbdn.com","https://singapore.rpc.blxrbdn.com","https://virginia.rpc.blxrbdn.com","https://eth-mainnet.public.blastapi.io","https://api.securerpc.com/v1","https://mainnet.gateway.tenderly.co","https://eth-pokt.nodies.app","https://eth.blockrazor.xyz","https://eth.merkle.io","https://gateway.tenderly.co/public/mainnet","https://eth.rpc.blxrbdn.com"],4:["","https://bsc.blockrazor.xyz","https://bscrpc.com","https://bsc-mainnet.public.blastapi.io","https://binance.llamarpc.com","https://go.getblock.io/cc778cdbdf5c4b028ec9456e0e6c0cf3","https://bsc-pokt.nodies.app","https://56.rpc.thirdweb.com","https://bsc.blockpi.network/v1/rpc/private","https://bsc.rpc.blxrbdn.com","https://bsc-dataseed.bnbchain.org","https://endpoints.omniatech.io/v1/bsc/mainnet/public","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed2.ninicoin.io","https://0.48.club","https://bsc-dataseed3.defibit.io"],5:["","https://polygon.llamarpc.com","https://polygon-rpc.com","https://rpc-mainnet.matic.quiknode.pro","https://endpoints.omniatech.io/v1/matic/mainnet/public","https://polygon-pokt.nodies.app","https://polygon-bor-rpc.publicnode.com","https://polygon.rpc.subquery.network/public","https://polygon-bor-rpc.publicnode.com","https://polygon.blockpi.network/v1/rpc/private","https://polygon.api.onfinality.io/public","https://polygon.lava.build","https://api.zan.top/polygon-mainnet","https://polygon.meowrpc.com"],6:["","https://avalanche-c-chain-rpc.publicnode.com","https://ava-mainnet.public.blastapi.io/ext/bc/C/rpc","https://endpoints.omniatech.io/v1/avax/mainnet/public","https://avalanche-c-chain-rpc.publicnode.com","https://avalanche.blockpi.network/v1/rpc/private","https://avalanche.public-rpc.com","https://avalanche.drpc.org","https://avax.meowrpc.com","https://endpoints.omniatech.io/v1/avax/mainnet/public","https://api.avax.network/ext/bc/C/rpc","https://1rpc.io/avax/c","https://avax-pokt.nodies.app/ext/bc/C/rpc","https://endpoints.omniatech.io/v1/avax/mainnet/public","https://api.zan.top/avax-mainnet/ext/bc/C/rpc"],23:["","https://arbitrum.llamarpc.com","https://arbitrum.rpc.subquery.network/public","https://endpoints.omniatech.io/v1/arbitrum/one/public","https://arbitrum.meowrpc.com","https://arbitrum.gateway.tenderly.co","https://arbitrum-one.public.blastapi.io","https://arb1.lava.build","https://arbitrum-one.publicnode.com","https://arbitrum.blockpi.network/v1/rpc/public","https://arb-pokt.nodies.app","https://api.zan.top/arb-one","https://arb1.arbitrum.io/rpc","https://arbitrum.drpc.org","https://1rpc.io/arb"],24:["","https://optimism.llamarpc.com","https://op-pokt.nodies.app","https://optimism-mainnet.public.blastapi.io","https://optimism.blockpi.network/v1/rpc/public","https://endpoints.omniatech.io/v1/op/mainnet/public","https://optimism-rpc.publicnode.com","https://optimism.drpc.org","https://1rpc.io/op","https://optimism.gateway.tenderly.co","https://optimism.lava.build","https://optimism.rpc.subquery.network/public","https://mainnet.optimism.io","https://optimism-rpc.publicnode.com","https://gateway.tenderly.co/public/optimism"],30:["","https://base.llamarpc.com","https://base-mainnet.public.blastapi.io","https://base-rpc.publicnode.com","https://base.blockpi.network/v1/rpc/public","https://base.drpc.org","https://mainnet.base.org","https://base.api.onfinality.io/public","https://base-pokt.nodies.app","https://1rpc.io/base","https://developer-access-mainnet.base.org","https://endpoints.omniatech.io/v1/base/mainnet/public","https://base.rpc.subquery.network/public","https://base.api.onfinality.io/public","https://base.meowrpc.com","https://base.gateway.tenderly.co"]};var Re=(n=>(n[n.Off=0]="Off",n[n.Full=1]="Full",n[n.Partial=2]="Partial",n[n.Scheduled=3]="Scheduled",n))(Re||{});var Ne=(o=>(o[o.SELF_TRADE=1]="SELF_TRADE",o[o.FULL_FILLED=2]="FULL_FILLED",o[o.FULL_CANCELLED=3]="FULL_CANCELLED",o[o.PARTIALLY_CANCELLED=4]="PARTIALLY_CANCELLED",o[o.CREATED=5]="CREATED",o))(Ne||{});var Ce=(f=>(f.USERS_READ="users.read",f.FOLLOWS_READ="follows.read",f.FOLLOWS_WRITE="follows.write",f.TWEET_READ="tweet.read",f.TWEET_WRITE="tweet.write",f.OFFLINE_ACCESS="offline.access",f.LIKE_READ="like.read",f.LIKE_WRITE="like.write",f))(Ce||{});var ur=(s=>(s.MFT_AUDIO_LINK="mft.audioLink",s.MFT_TITLE="mft.title",s.MODE_PRE_SALE="mode.preSale",s.MAKER_FEE="makerFee",s.TAKER_FEE="takerFee",s.VIEW_BASE_COIN_ICON_LINK="view.baseCoinIconLink",s.VIEW_BASE_COIN_MARKET_LINK="view.baseCoinMarketLink",s.VIEW_PRICE_COIN_ICON_LINK="view.priceCoinIconLink",s.VIEW_PRICE_COIN_MARKET_LINK="view.priceCoinMarketLink",s))(ur||{}),De=ur;var lr=(e=>(e[e.Buy=0]="Buy",e[e.Sell=1]="Sell",e))(lr||{}),be=lr;var Er=(o=>(o[o.Open=1]="Open",o[o.Canceled=2]="Canceled",o[o.Matched=3]="Matched",o[o.SelfMatched=4]="SelfMatched",o[o.Expired=5]="Expired",o))(Er||{}),Oe=Er;var mr=(n=>(n[n.Limit=0]="Limit",n[n.IOC=1]="IOC",n[n.POST=2]="POST",n[n.Market=3]="Market",n))(mr||{}),Le=mr;var _r=(e=>(e.User="User",e.Api="API",e))(_r||{});var de=(n=>(n.COMPANY="COMPANY",n.TWITTER="TWITTER",n.DISCORD="DISCORD",n.TELEGRAM="TELEGRAM",n))(de||{}),ve=(h=>(h[h.TWITTER_FOLLOW=1]="TWITTER_FOLLOW",h[h.TWITTER_REPLY=2]="TWITTER_REPLY",h[h.TWITTER_RETWEET=3]="TWITTER_RETWEET",h[h.TWITTER_LIKE=4]="TWITTER_LIKE",h[h.COMPANY_FIRST_LOGIN=5]="COMPANY_FIRST_LOGIN",h[h.COMPANY_CONFIRM_EMAIL=6]="COMPANY_CONFIRM_EMAIL",h[h.COMPANY_DEPOSIT=7]="COMPANY_DEPOSIT",h[h.COMPANY_TRADE=8]="COMPANY_TRADE",h[h.TELEGRAM_JOIN_GROUP=9]="TELEGRAM_JOIN_GROUP",h[h.DISCORD_JOIN_SERVER=10]="DISCORD_JOIN_SERVER",h[h.AFFILIATE_POINTS_REWARD=11]="AFFILIATE_POINTS_REWARD",h))(ve||{}),Vt=[1,9,10,6,5];var ye=(n=>(n.CREATED="created",n.STARTED="started",n.PAUSED="paused",n.CLOSED="closed",n))(ye||{}),ge=(e=>(e.Post="POST",e.Comment="COMMENT",e))(ge||{});var Ue=(p=>(p.INSTRUCTIONS="INSTRUCTIONS",p.TEXT_STYLE="TEXT_STYLE",p.TEXT_TONE="TEXT_TONE",p.REACTION_TYPE="REACTION_TYPE",p.COMMENT_LENGTH="COMMENT_LENGTH",p.CONTEXT="CONTEXT",p))(Ue||{});var Pe=(p=>(p[p.FEE_TIER_1=1]="FEE_TIER_1",p[p.FEE_TIER_2=2]="FEE_TIER_2",p[p.FEE_TIER_3=3]="FEE_TIER_3",p[p.FEE_TIER_4=4]="FEE_TIER_4",p[p.FEE_TIER_5=5]="FEE_TIER_5",p[p.FEE_TIER_6=6]="FEE_TIER_6",p))(Pe||{}),Be=(e=>(e[e.Approve=1]="Approve",e[e.Reject=0]="Reject",e))(Be||{}),Fe=(o=>(o.INITIATED="INITIATED",o.CREATED="CREATED",o.PROCESSING="PROCESSING",o.APPROVED="APPROVED",o.REJECTED="REJECTED",o))(Fe||{});var Ye=(o=>(o.INVITED_ACCOUNTS_COUNT="invitedAccountsCount",o.CREATED_AT="createdAt",o.FEE_SHARE="feeShare",o.ADDRESS="address",o.REFERRAL_TRADING_VOLUME="referralTradingVolume",o))(Ye||{});var ke=(p=>(p.ACTIVE="ACTIVE",p.FAILED="FAILED",p.STARTING="STARTING",p.DRAINING="DRAINING",p.TERMINATING="TERMINATING",p.TERMINATED="TERMINATED",p))(ke||{}),Ge=(o=>(o.MATCHING_ENGINE="me",o.ORDER_SERVICE="ors",o.API="api",o.SOCKET_SERVICE="ws",o.TRANSACTION_SERVICE="tns",o))(Ge||{}),Me=(o=>(o.ACTIVE="ACTIVE",o.FAILED="FAILED",o.UNASSIGNED="UNASSIGNED",o.ASSIGNED="ASSIGNED",o.STARTING="STARTING",o))(Me||{});var We=(n=>(n.Pending="pending",n.Completed="completed",n.Failed="failed",n.Received="received",n))(We||{}),He=(i=>(i.Deposit="deposit",i.Withdraw="withdraw",i.Rebalance="rebalance",i))(He||{}),Se=(i=>(i.PENDING="pending",i.COMPLETED="completed",i.FAILED="failed",i))(Se||{}),Ve=(o=>(o.USER_TO_TMC="user_to_tmc",o.TMC_TO_USER="tmc_to_user",o.RELAYER_TO_TMC="relayer_to_tmc",o.RELAYER_TO_CODEX="relayer_to_codex",o.RELAYER_TO_CIRCLE="relayer_to_circle",o))(Ve||{});var Ke=(i=>(i.Unconfirmed="UNCONFIRMED",i.Confirmed="CONFIRMED",i.Rejected="REJECTED",i))(Ke||{}),ze=(i=>(i.RESUBMITTED="RESUBMITTED",i.PROCESSED="PROCESSED",i.REMATCHED="REMATCHED",i))(ze||{});var Je=(n=>(n[n.FIRST=1]="FIRST",n[n.SECOND=2]="SECOND",n[n.THIRD=3]="THIRD",n[n.FOURTH=4]="FOURTH",n))(Je||{}),Xe=(c=>(c.REBATE_TIER="rebateTier",c.CREATED_AT="createdAt",c.NAME="name",c.TAKER_FEE="takerFee",c.ENABLED="enabled",c.ADDRESS="address",c.CHAIN="chainId",c))(Xe||{});var qe=(e=>(e.ASCENDING="ASC",e.DESCENDING="DESC",e))(qe||{});var Ar=(n=>(n.GLOBAL_PAIR_DELISTING="GLOBAL_PAIR_DELISTING",n.GLOBAL_NEW_PAIR_LISTING="GLOBAL_NEW_PAIR_LISTING",n.GLOBAL_SYSTEM_MAINTENANCE="GLOBAL_SYSTEM_MAINTENANCE",n.GLOBAL_SMART_CONTRACT_UPDATE="GLOBAL_SMART_CONTRACT_UPDATE",n))(Ar||{}),xr=(i=>(i.ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT="ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT",i.ACCOUNT_KYC_STATUS_CHANGED="ACCOUNT_KYC_STATUS_CHANGED",i.ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED="ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED",i))(xr||{}),wi={...Ar,...xr},Qe=(i=>(i.CRITICAL="CRITICAL",i.IMPORTANT="IMPORTANT",i.INFO="INFO",i))(Qe||{}),Ze=(e=>(e.UNREAD="UNREAD",e.READ="READ",e))(Ze||{}),$e=(i=>(i.PENDING="PENDING",i.PROCESSED="PROCESSED",i.FAILED="FAILED",i))($e||{});var je=(p=>(p.STRING="string",p.BOOLEAN="boolean",p.INT="int",p.FLOAT="float",p.SINGLE_CHOICE="single-choice",p.MULTI_CHOICE="multi-choice",p))(je||{});var rt=(c=>(c.VERSION="version",c.LAST_ALGO_BLOCK="last_algo_block",c.PRICES_PROVIDER_API_KEY="prices_provider_api_key",c.DEFAULT_API_DOMAIN="default_api_domain",c.NONCE_ACCOUNTS_SOLANA="nonce_accounts_solana",c.ARCHIVE_DATA_BATCH_SIZE="archive_data_batch_size",c.ARCHIVE_TASK_LOCK="archive_task_lock",c))(rt||{});var et=(i=>(i.SUCCESS="success",i.FAILED="failed",i.PENDING="pending",i))(et||{});var tt=(i=>(i.SOLANA="SOLANA",i.ALGORAND="ALGORAND",i.EVM="EVM",i))(tt||{});var it=(n=>(n.TIMESTAMP="timestamp",n.TYPE="action_type",n.CHAIN="login_chain_id",n.STATUS="status",n))(it||{});var nt=(o=>(o.CONNECTED="CONNECTED",o.CONNECTING="CONNECTING",o.DISCONNECTED="DISCONNECTED",o.DISCONNECTING="DISCONNECTING",o.PENDING="PENDING",o))(nt||{});var ot=(e=>(e.NAME="name",e.POINTS="points",e))(ot||{});var pt=(l=>(l.ENABLED="company.enabled",l.APP_TITLE="company.appTitle",l.DOMAIN="company.domain",l.DIRECT_SETTLE="company.directSettlement",l.KYC="markets.kycTradeRequirementEnabled",l.GEOBLOCK="company.geoblock",l.LOGO="appearance.logo",l.THEMES="appearance.themes",l.NEW_TAB="appearance.newTab",l.TARGET="appearance.target",l.REPORT_BUTTONS="appearance.reportButtons",l.CUSTOM_MENU_ITEMS="appearance.customMenuItems",l.APPEARANCE_CHART_TYPE="appearance.chartType",l.APPEARANCE_CHART_INT="appearance.chartInt",l.AMM="product.amm",l.OBDEX="product.obdex",l.POINTS="product.pointSystem",l.AFFILIATE_DASHBOARD_THRESHOLD="product.affiliateDashboardThreshold",l.AFFILIATE_DEFAULT_FEE_SHARE="product.affiliateDefaultFeeShare",l.AFFILIATE_DASHBOARD_VISIBILITY="product.affiliateDashboardVisibility",l.AMM_FEE="company.ammFee",l.FEE_SHARE="company.feeShare",l.MIN_FEE="company.minFee",l.MAKER_FEE="company.makerFee",l.TAKER_FEE="company.takerFee",l.PINNED_PAIRS="markets.pinnedPairs",l.TWITTER_ENABLED="point-system.twitterEnabled",l.TWITTER_JOB_ENABLED="point-system.twitterJobEnabled",l.TWITTER_HASHTAGS="point-system.twitterHashtags",l.TWITTER_ACCOUNT_NAME="point-system.twitterAccountName",l.DISCORD_ENABLED="point-system.discordEnabled",l.TELEGRAM_ENABLED="point-system.telegramEnabled",l.TELEGRAM_GROUP_NAME="point-system.telegramGroupName",l.TELEGRAM_BOT_NAME="point-system.telegramBotName",l.GUIDE_LINK="point-system.guideLink",l))(pt||{});var at=(_=>(_[_.QUOTE=1]="QUOTE",_[_.LAST_PRICE=2]="LAST_PRICE",_[_.DEPTH=3]="DEPTH",_[_.LAST_CANDLESTICK=4]="LAST_CANDLESTICK",_[_.ORDERS=5]="ORDERS",_[_.TRADES=6]="TRADES",_[_.SYSTEM=7]="SYSTEM",_[_.WALLET_TRANSACTIONS=8]="WALLET_TRANSACTIONS",_[_.ALL_STAT=9]="ALL_STAT",_[_.CODEX_ASSETS=12]="CODEX_ASSETS",_[_.CODEX_BALANCES=10]="CODEX_BALANCES",_[_.LAST_LOOK=11]="LAST_LOOK",_[_.SETTINGS_UPDATE=13]="SETTINGS_UPDATE",_[_.NEW_NOTIFICATION=14]="NEW_NOTIFICATION",_[_.POINT_SYSTEM_SETTINGS_UPDATE=15]="POINT_SYSTEM_SETTINGS_UPDATE",_))(at||{}),In=[5,8,10,11];export{xr as AccountNotificationEnum,ve as ActionEnum,de as ActionSource,He as ActionTypeEnum,Ye as AffiliateSortByEnum,De as AvailablePairSettings,Se as CCTPStatus,Et as ChainNames,we as Chains,wi as CombinedNotificationEnum,ke as ComponentStatusType,Ge as ComponentType,Pe as FeeTier,Ar as GlobalNotificationEnum,_t as HTTPSRPC_MAINNET,mt as HTTPSRPC_TESTNET,Fe as KYCAuthenticationStatus,Be as LastLookAction,Re as MaintenanceMode,Je as MarketMakerRebateTier,Xe as MarketMakerSortByEnum,Vt as NON_REPEATABLE_ACTIONS,Ne as Notification,Qe as NotificationPriorityEnum,Ze as NotificationStatusEnum,We as OperationStatusEnum,be as OrderSide,Oe as OrderStatus,Le as OrderType,In as PRIVATE_STREAMS,Me as PairComponentStatusType,it as PendingActionsSortByEnum,ot as PointsSortByEnum,Ue as PromptTypeEnum,nt as RabbitConnectionStatus,at as STREAMS,$e as ScheduledNotificationStatusEnum,ye as SeasonStatusEnum,pt as SettingIds,je as SettingTypeColumn,qe as SortDirectionEnum,rt as StateType,Ke as TradeStatus,ze as TradeSubStatus,_r as TradingKeyType,Ve as TransactionType,ge as TweetType,Ce as TwitterAccessScopeEnum,et as UpgradeStatus,tt as WithdrawalWalletType};
|
|
2
2
|
/*! Bundled license information:
|
|
3
3
|
|
|
4
4
|
@esbuild-plugins/node-globals-polyfill/Buffer.js:
|