@ultrade/shared 1.0.29 → 1.0.31

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.
Files changed (42) hide show
  1. package/dist/browser/constants/index.js +1 -1
  2. package/dist/browser/enums/index.js +1 -1
  3. package/dist/browser/helpers/algo.helper.js +1 -1
  4. package/dist/browser/helpers/assert.helper.js +1 -1
  5. package/dist/browser/helpers/atomic.helper.js +1 -1
  6. package/dist/browser/helpers/balance.helper.js +1 -1
  7. package/dist/browser/helpers/codex/common.helper.js +1 -1
  8. package/dist/browser/helpers/codex/index.js +2 -2
  9. package/dist/browser/helpers/codex/mbr.helper.js +1 -1
  10. package/dist/browser/helpers/codex/mna.helper.js +1 -1
  11. package/dist/browser/helpers/codex/order.helper.js +1 -1
  12. package/dist/browser/helpers/codex/setGlobal.helper.js +1 -1
  13. package/dist/browser/helpers/codex/transfer.helper.js +2 -2
  14. package/dist/browser/helpers/codex/txn.helper.js +1 -1
  15. package/dist/browser/helpers/codex.helper.js +6 -6
  16. package/dist/browser/helpers/eth.helper.js +1 -1
  17. package/dist/browser/helpers/order.helper.js +1 -1
  18. package/dist/browser/helpers/pair.helper.js +1 -1
  19. package/dist/browser/helpers/pointSystem.helper.js +1 -1
  20. package/dist/browser/types/index.js +1 -1
  21. package/dist/constants/settings.d.ts +1 -0
  22. package/dist/enums/db/relayer.enum.d.ts +4 -1
  23. package/dist/helpers/balance.helper.d.ts +2 -13
  24. package/dist/helpers/codex.helper.d.ts +1 -0
  25. package/dist/interfaces/algostreamer/index.d.ts +3 -1
  26. package/dist/node/common/index.js +1 -1
  27. package/dist/node/constants/index.js +1 -1
  28. package/dist/node/enums/index.js +1 -1
  29. package/dist/node/helpers/algo.helper.js +1 -1
  30. package/dist/node/helpers/assert.helper.js +1 -1
  31. package/dist/node/helpers/atomic.helper.js +1 -1
  32. package/dist/node/helpers/balance.helper.js +1 -1
  33. package/dist/node/helpers/codex.helper.js +5 -5
  34. package/dist/node/helpers/index.js +1 -1
  35. package/dist/node/helpers/order.helper.js +1 -1
  36. package/dist/node/helpers/pair.helper.js +1 -1
  37. package/dist/node/helpers/pointSystem.helper.js +1 -1
  38. package/dist/node/helpers/withdraw.helper.js +2 -2
  39. package/dist/node/interfaces/index.js +1 -1
  40. package/dist/node/types/index.js +1 -1
  41. package/dist/types/settings.type.d.ts +7 -0
  42. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- function K(){throw new Error("setTimeout has not been defined")}function V(){throw new Error("clearTimeout has not been defined")}var w=K,A=V;typeof globalThis.setTimeout=="function"&&(w=setTimeout);typeof globalThis.clearTimeout=="function"&&(A=clearTimeout);function H(t){if(w===setTimeout)return setTimeout(t,0);if((w===K||!w)&&setTimeout)return w=setTimeout,setTimeout(t,0);try{return w(t,0)}catch{try{return w.call(null,t,0)}catch{return w.call(this,t,0)}}}function fr(t){if(A===clearTimeout)return clearTimeout(t);if((A===V||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch{try{return A.call(null,t)}catch{return A.call(this,t)}}}var x=[],k=!1,I,P=-1;function mr(){!k||!I||(k=!1,I.length?x=I.concat(x):P=-1,x.length&&z())}function z(){if(!k){var t=H(mr);k=!0;for(var r=x.length;r;){for(I=x,x=[];++P<r;)I&&I[P].run();P=-1,r=x.length}I=null,k=!1,fr(t)}}function gr(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];x.push(new J(t,r)),x.length===1&&!k&&H(z)}function J(t,r){this.fun=t,this.array=r}J.prototype.run=function(){this.fun.apply(null,this.array)};var hr="browser",br="browser",dr=!0,Er={},_r=[],Tr="",xr={},yr={},wr={};function R(){}var Ar=R,Ir=R,Rr=R,Sr=R,Nr=R,vr=R,kr=R;function Pr(t){throw new Error("process.binding is not supported")}function Cr(){return"/"}function Or(t){throw new Error("process.chdir is not supported")}function Br(){return 0}var v=globalThis.performance||{},Dr=v.now||v.mozNow||v.msNow||v.oNow||v.webkitNow||function(){return new Date().getTime()};function Mr(t){var r=Dr.call(v)*.001,e=Math.floor(r),n=Math.floor(r%1*1e9);return t&&(e=e-t[0],n=n-t[1],n<0&&(e--,n+=1e9)),[e,n]}var Lr=new Date;function Ur(){var t=new Date,r=t-Lr;return r/1e3}var g={nextTick:gr,title:hr,browser:dr,env:Er,argv:_r,version:Tr,versions:xr,on:Ar,addListener:Ir,once:Rr,off:Sr,removeListener:Nr,removeAllListeners:vr,emit:kr,binding:Pr,cwd:Cr,chdir:Or,umask:Br,hrtime:Mr,platform:br,release:yr,config:wr,uptime:Ur},G={};Object.keys(G).forEach(t=>{let r=t.split("."),e=g;for(let n=0;n<r.length;n++){let i=r[n];n===r.length-1?e[i]=G[t]:e=e[i]||(e[i]={})}});var _=[],d=[],Yr=typeof Uint8Array<"u"?Uint8Array:Array,Y=!1;function Z(){Y=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)_[r]=t[r],d[t.charCodeAt(r)]=r;d[45]=62,d[95]=63}function Fr(t){Y||Z();var r,e,n,i,a,o,s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[s-2]==="="?2:t[s-1]==="="?1:0,o=new Yr(s*3/4-a),n=a>0?s-4:s;var l=0;for(r=0,e=0;r<n;r+=4,e+=3)i=d[t.charCodeAt(r)]<<18|d[t.charCodeAt(r+1)]<<12|d[t.charCodeAt(r+2)]<<6|d[t.charCodeAt(r+3)],o[l++]=i>>16&255,o[l++]=i>>8&255,o[l++]=i&255;return a===2?(i=d[t.charCodeAt(r)]<<2|d[t.charCodeAt(r+1)]>>4,o[l++]=i&255):a===1&&(i=d[t.charCodeAt(r)]<<10|d[t.charCodeAt(r+1)]<<4|d[t.charCodeAt(r+2)]>>2,o[l++]=i>>8&255,o[l++]=i&255),o}function Wr(t){return _[t>>18&63]+_[t>>12&63]+_[t>>6&63]+_[t&63]}function Gr(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(Wr(n));return i.join("")}function X(t){Y||Z();for(var r,e=t.length,n=e%3,i="",a=[],o=16383,s=0,l=e-n;s<l;s+=o)a.push(Gr(t,s,s+o>l?l:s+o));return n===1?(r=t[e-1],i+=_[r>>2],i+=_[r<<4&63],i+="=="):n===2&&(r=(t[e-2]<<8)+t[e-1],i+=_[r>>10],i+=_[r>>4&63],i+=_[r<<2&63],i+="="),a.push(i),a.join("")}u.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function C(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function y(t,r){if(C()<r)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=u.prototype):(t===null&&(t=new u(r)),t.length=r),t}function u(t,r,e){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(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 F(this,t)}return Q(this,t,r,e)}u.poolSize=8192;u._augment=function(t){return t.__proto__=u.prototype,t};function Q(t,r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?Hr(t,r,e,n):typeof r=="string"?Vr(t,r,e):zr(t,r)}u.from=function(t,r,e){return Q(null,t,r,e)};u.kMaxLength=C();u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[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 Kr(t,r,e,n){return j(r),r<=0?y(t,r):e!==void 0?typeof n=="string"?y(t,r).fill(e,n):y(t,r).fill(e):y(t,r)}u.alloc=function(t,r,e){return Kr(null,t,r,e)};function F(t,r){if(j(r),t=y(t,r<0?0:W(r)|0),!u.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}u.allocUnsafe=function(t){return F(null,t)};u.allocUnsafeSlow=function(t){return F(null,t)};function Vr(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!u.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=rr(r,e)|0;t=y(t,n);var i=t.write(r,e);return i!==n&&(t=t.slice(0,i)),t}function U(t,r){var e=r.length<0?0:W(r.length)|0;t=y(t,e);for(var n=0;n<e;n+=1)t[n]=r[n]&255;return t}function Hr(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return e===void 0&&n===void 0?r=new Uint8Array(r):n===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,n),u.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=u.prototype):t=U(t,r),t}function zr(t,r){if(T(r)){var e=W(r.length)|0;return t=y(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"||pe(r.length)?y(t,0):U(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return U(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function W(t){if(t>=C())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C().toString(16)+" bytes");return t|0}u.isBuffer=fe;function T(t){return!!(t!=null&&t._isBuffer)}u.compare=function(r,e){if(!T(r)||!T(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};u.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}};u.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=u.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(!T(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};function rr(t,r){if(T(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 n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return O(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return ur(t).length;default:if(n)return O(t).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=rr;function Jr(t,r,e){var n=!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 nr(this,r,e);case"ascii":return ee(this,r,e);case"latin1":case"binary":return te(this,r,e);case"base64":return jr(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function S(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}u.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)S(this,e,e+1);return this};u.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)S(this,e,e+3),S(this,e+1,e+2);return this};u.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)S(this,e,e+7),S(this,e+1,e+6),S(this,e+2,e+5),S(this,e+3,e+4);return this};u.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?nr(this,0,r):Jr.apply(this,arguments)};u.prototype.equals=function(r){if(!T(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.compare=function(r,e,n,i,a){if(!T(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,s=n-e,l=Math.min(o,s),p=this.slice(i,a),f=r.slice(e,n),c=0;c<l;++c)if(p[c]!==f[c]){o=p[c],s=f[c];break}return o<s?-1:s<o?1:0};function er(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=u.from(r,n)),T(r))return r.length===0?-1:q(t,r,e,n,i);if(typeof r=="number")return r=r&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):q(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function q(t,r,e,n,i){var a=1,o=t.length,s=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,s/=2,e/=2}function l(b,N){return a===1?b[N]:b.readUInt16BE(N*a)}var p;if(i){var f=-1;for(p=e;p<o;p++)if(l(t,p)===l(r,f===-1?0:p-f)){if(f===-1&&(f=p),p-f+1===s)return f*a}else f!==-1&&(p-=p-f),f=-1}else for(e+s>o&&(e=o-s),p=e;p>=0;p--){for(var c=!0,E=0;E<s;E++)if(l(t,p+E)!==l(r,E)){c=!1;break}if(c)return p}return-1}u.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};u.prototype.indexOf=function(r,e,n){return er(this,r,e,n,!0)};u.prototype.lastIndexOf=function(r,e,n){return er(this,r,e,n,!1)};function Xr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(r.substr(o*2,2),16);if(isNaN(s))return o;t[e+o]=s}return o}function qr(t,r,e,n){return M(O(r,t.length-e),t,e,n)}function tr(t,r,e,n){return M(le(r),t,e,n)}function $r(t,r,e,n){return tr(t,r,e,n)}function Zr(t,r,e,n){return M(ur(r),t,e,n)}function Qr(t,r,e,n){return M(ce(r,t.length-e),t,e,n)}u.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Xr(this,r,e,n);case"utf8":case"utf-8":return qr(this,r,e,n);case"ascii":return tr(this,r,e,n);case"latin1":case"binary":return $r(this,r,e,n);case"base64":return Zr(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qr(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function jr(t,r,e){return r===0&&e===t.length?X(t):X(t.slice(r,e))}function nr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=e){var l,p,f,c;switch(s){case 1:a<128&&(o=a);break;case 2:l=t[i+1],(l&192)===128&&(c=(a&31)<<6|l&63,c>127&&(o=c));break;case 3:l=t[i+1],p=t[i+2],(l&192)===128&&(p&192)===128&&(c=(a&15)<<12|(l&63)<<6|p&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:l=t[i+1],p=t[i+2],f=t[i+3],(l&192)===128&&(p&192)===128&&(f&192)===128&&(c=(a&15)<<18|(l&63)<<12|(p&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return re(n)}var $=4096;function re(t){var r=t.length;if(r<=$)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=$));return e}function ee(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function te(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ne(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=se(t[a]);return i}function ie(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}u.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i;if(u.TYPED_ARRAY_SUPPORT)i=this.subarray(r,e),i.__proto__=u.prototype;else{var a=e-r;i=new u(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+r]}return i};function m(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")}u.prototype.readUIntLE=function(r,e,n){r=r|0,e=e|0,n||m(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};u.prototype.readUIntBE=function(r,e,n){r=r|0,e=e|0,n||m(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};u.prototype.readUInt8=function(r,e){return e||m(r,1,this.length),this[r]};u.prototype.readUInt16LE=function(r,e){return e||m(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUInt16BE=function(r,e){return e||m(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUInt32LE=function(r,e){return e||m(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUInt32BE=function(r,e){return e||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,e,n){r=r|0,e=e|0,n||m(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};u.prototype.readIntBE=function(r,e,n){r=r|0,e=e|0,n||m(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};u.prototype.readInt8=function(r,e){return e||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,e){e||m(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(r,e){e||m(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(r,e){return e||m(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,e){return e||m(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,e){return e||m(r,4,this.length),L(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,e){return e||m(r,4,this.length),L(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,e){return e||m(r,8,this.length),L(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,e){return e||m(r,8,this.length),L(this,r,!1,52,8)};function h(t,r,e,n,i,a){if(!T(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;h(this,r,e,n,a,0)}var o=1,s=0;for(this[e]=r&255;++s<n&&(o*=256);)this[e+s]=r/o&255;return e+n};u.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;h(this,r,e,n,a,0)}var o=n-1,s=1;for(this[e+o]=r&255;--o>=0&&(s*=256);)this[e+o]=r/s&255;return e+n};u.prototype.writeUInt8=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function B(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,a=Math.min(t.length-e,2);i<a;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}u.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):B(this,r,e,!0),e+2};u.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):B(this,r,e,!1),e+2};function D(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,a=Math.min(t.length-e,4);i<a;++i)t[e+i]=r>>>(n?i:3-i)*8&255}u.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):D(this,r,e,!0),e+4};u.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):D(this,r,e,!1),e+4};u.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e|0,!i){var a=Math.pow(2,8*n-1);h(this,r,e,n,a-1,-a)}var o=0,s=1,l=0;for(this[e]=r&255;++o<n&&(s*=256);)r<0&&l===0&&this[e+o-1]!==0&&(l=1),this[e+o]=(r/s>>0)-l&255;return e+n};u.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e|0,!i){var a=Math.pow(2,8*n-1);h(this,r,e,n,a-1,-a)}var o=n-1,s=1,l=0;for(this[e+o]=r&255;--o>=0&&(s*=256);)r<0&&l===0&&this[e+o+1]!==0&&(l=1),this[e+o]=(r/s>>0)-l&255;return e+n};u.prototype.writeInt8=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};u.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):B(this,r,e,!0),e+2};u.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):B(this,r,e,!1),e+2};u.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):D(this,r,e,!0),e+4};u.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):D(this,r,e,!1),e+4};function ir(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function ar(t,r,e,n,i){return i||ir(t,r,e,4,34028234663852886e22,-34028234663852886e22),lr(t,r,e,n,23,4),e+4}u.prototype.writeFloatLE=function(r,e,n){return ar(this,r,e,!0,n)};u.prototype.writeFloatBE=function(r,e,n){return ar(this,r,e,!1,n)};function or(t,r,e,n,i){return i||ir(t,r,e,8,17976931348623157e292,-17976931348623157e292),lr(t,r,e,n,52,8),e+8}u.prototype.writeDoubleLE=function(r,e,n){return or(this,r,e,!0,n)};u.prototype.writeDoubleBE=function(r,e,n){return or(this,r,e,!1,n)};u.prototype.copy=function(r,e,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n,o;if(this===r&&n<e&&e<i)for(o=a-1;o>=0;--o)r[o+e]=this[o+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)r[o+e]=this[o+n];else Uint8Array.prototype.set.call(r,this.subarray(n,n+a),e);return a};u.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),r.length===1){var a=r.charCodeAt(0);a<256&&(r=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var s=T(r)?r:O(new u(r,i).toString()),l=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%l]}return this};var ae=/[^+\/0-9A-Za-z-_]/g;function oe(t){if(t=ue(t).replace(ae,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ue(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function se(t){return t<16?"0"+t.toString(16):t.toString(16)}function O(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=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 le(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ce(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function ur(t){return Fr(oe(t))}function M(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function pe(t){return t!==t}function fe(t){return t!=null&&(!!t._isBuffer||sr(t)||me(t))}function sr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function me(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&sr(t.slice(0,0))}function L(t,r,e,n,i){var a,o,s=i*8-n-1,l=(1<<s)-1,p=l>>1,f=-7,c=e?i-1:0,E=e?-1:1,b=t[r+c];for(c+=E,a=b&(1<<-f)-1,b>>=-f,f+=s;f>0;a=a*256+t[r+c],c+=E,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+t[r+c],c+=E,f-=8);if(a===0)a=1-p;else{if(a===l)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-p}return(b?-1:1)*o*Math.pow(2,a-n)}function lr(t,r,e,n,i,a){var o,s,l,p=a*8-i-1,f=(1<<p)-1,c=f>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,N=n?1:-1,pr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?r+=E/l:r+=E*Math.pow(2,1-c),r*l>=2&&(o++,l/=2),o+c>=f?(s=0,o=f):o+c>=1?(s=(r*l-1)*Math.pow(2,i),o=o+c):(s=r*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[e+b]=s&255,b+=N,s/=256,i-=8);for(o=o<<i|s,p+=i;p>0;t[e+b]=o&255,b+=N,o/=256,p-=8);t[e+b-N]|=pr*128}var Re=`{"theme1":{"value":"${g.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${g.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${g.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;var cr={V1_1:"v1_1",V2:"v2"},ke={[cr.V1_1]:{testnet:62368684,mainnet:552635992},[cr.V2]:{testnet:148607e3,mainnet:1002541853}};var it=t=>{let r={};return t.forEach(({settingId:e,value:n,setting:i})=>{i.type==="boolean"?r[e]=n==="true":r[e]=n}),{discordEnabled:r["point-system.discordEnabled"],telegramBotName:r["point-system.telegramBotName"],telegramBotId:r["point-system.telegramBotId"],telegramEnabled:r["point-system.telegramEnabled"],telegramGroupId:r["point-system.telegramGroupId"],telegramGroupName:r["point-system.telegramGroupName"],twitterAccountId:r["point-system.twitterAccountId"],twitterAccountName:r["point-system.twitterAccountName"],twitterEnabled:r["point-system.twitterEnabled"],twitterJobEnabled:r["point-system.twitterJobEnabled"],guideLink:r["point-system.guideLink"]}};export{it as transformPointSystemSettings};
1
+ function V(){throw new Error("setTimeout has not been defined")}function K(){throw new Error("clearTimeout has not been defined")}var w=V,A=K;typeof globalThis.setTimeout=="function"&&(w=setTimeout);typeof globalThis.clearTimeout=="function"&&(A=clearTimeout);function H(t){if(w===setTimeout)return setTimeout(t,0);if((w===V||!w)&&setTimeout)return w=setTimeout,setTimeout(t,0);try{return w(t,0)}catch{try{return w.call(null,t,0)}catch{return w.call(this,t,0)}}}function fr(t){if(A===clearTimeout)return clearTimeout(t);if((A===K||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(t);try{return A(t)}catch{try{return A.call(null,t)}catch{return A.call(this,t)}}}var x=[],k=!1,I,P=-1;function mr(){!k||!I||(k=!1,I.length?x=I.concat(x):P=-1,x.length&&z())}function z(){if(!k){var t=H(mr);k=!0;for(var r=x.length;r;){for(I=x,x=[];++P<r;)I&&I[P].run();P=-1,r=x.length}I=null,k=!1,fr(t)}}function gr(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];x.push(new J(t,r)),x.length===1&&!k&&H(z)}function J(t,r){this.fun=t,this.array=r}J.prototype.run=function(){this.fun.apply(null,this.array)};var hr="browser",br="browser",dr=!0,Er={},_r=[],Tr="",xr={},yr={},wr={};function R(){}var Ar=R,Ir=R,Rr=R,Sr=R,Nr=R,vr=R,kr=R;function Pr(t){throw new Error("process.binding is not supported")}function Cr(){return"/"}function Or(t){throw new Error("process.chdir is not supported")}function Br(){return 0}var v=globalThis.performance||{},Dr=v.now||v.mozNow||v.msNow||v.oNow||v.webkitNow||function(){return new Date().getTime()};function Mr(t){var r=Dr.call(v)*.001,e=Math.floor(r),n=Math.floor(r%1*1e9);return t&&(e=e-t[0],n=n-t[1],n<0&&(e--,n+=1e9)),[e,n]}var Lr=new Date;function Ur(){var t=new Date,r=t-Lr;return r/1e3}var g={nextTick:gr,title:hr,browser:dr,env:Er,argv:_r,version:Tr,versions:xr,on:Ar,addListener:Ir,once:Rr,off:Sr,removeListener:Nr,removeAllListeners:vr,emit:kr,binding:Pr,cwd:Cr,chdir:Or,umask:Br,hrtime:Mr,platform:br,release:yr,config:wr,uptime:Ur},G={};Object.keys(G).forEach(t=>{let r=t.split("."),e=g;for(let n=0;n<r.length;n++){let i=r[n];n===r.length-1?e[i]=G[t]:e=e[i]||(e[i]={})}});var _=[],d=[],Yr=typeof Uint8Array<"u"?Uint8Array:Array,Y=!1;function Z(){Y=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)_[r]=t[r],d[t.charCodeAt(r)]=r;d[45]=62,d[95]=63}function Fr(t){Y||Z();var r,e,n,i,a,o,s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[s-2]==="="?2:t[s-1]==="="?1:0,o=new Yr(s*3/4-a),n=a>0?s-4:s;var l=0;for(r=0,e=0;r<n;r+=4,e+=3)i=d[t.charCodeAt(r)]<<18|d[t.charCodeAt(r+1)]<<12|d[t.charCodeAt(r+2)]<<6|d[t.charCodeAt(r+3)],o[l++]=i>>16&255,o[l++]=i>>8&255,o[l++]=i&255;return a===2?(i=d[t.charCodeAt(r)]<<2|d[t.charCodeAt(r+1)]>>4,o[l++]=i&255):a===1&&(i=d[t.charCodeAt(r)]<<10|d[t.charCodeAt(r+1)]<<4|d[t.charCodeAt(r+2)]>>2,o[l++]=i>>8&255,o[l++]=i&255),o}function Wr(t){return _[t>>18&63]+_[t>>12&63]+_[t>>6&63]+_[t&63]}function Gr(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(Wr(n));return i.join("")}function X(t){Y||Z();for(var r,e=t.length,n=e%3,i="",a=[],o=16383,s=0,l=e-n;s<l;s+=o)a.push(Gr(t,s,s+o>l?l:s+o));return n===1?(r=t[e-1],i+=_[r>>2],i+=_[r<<4&63],i+="=="):n===2&&(r=(t[e-2]<<8)+t[e-1],i+=_[r>>10],i+=_[r>>4&63],i+=_[r<<2&63],i+="="),a.push(i),a.join("")}u.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function C(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function y(t,r){if(C()<r)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=u.prototype):(t===null&&(t=new u(r)),t.length=r),t}function u(t,r,e){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(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 F(this,t)}return Q(this,t,r,e)}u.poolSize=8192;u._augment=function(t){return t.__proto__=u.prototype,t};function Q(t,r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?Hr(t,r,e,n):typeof r=="string"?Kr(t,r,e):zr(t,r)}u.from=function(t,r,e){return Q(null,t,r,e)};u.kMaxLength=C();u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[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 Vr(t,r,e,n){return j(r),r<=0?y(t,r):e!==void 0?typeof n=="string"?y(t,r).fill(e,n):y(t,r).fill(e):y(t,r)}u.alloc=function(t,r,e){return Vr(null,t,r,e)};function F(t,r){if(j(r),t=y(t,r<0?0:W(r)|0),!u.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}u.allocUnsafe=function(t){return F(null,t)};u.allocUnsafeSlow=function(t){return F(null,t)};function Kr(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!u.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=rr(r,e)|0;t=y(t,n);var i=t.write(r,e);return i!==n&&(t=t.slice(0,i)),t}function U(t,r){var e=r.length<0?0:W(r.length)|0;t=y(t,e);for(var n=0;n<e;n+=1)t[n]=r[n]&255;return t}function Hr(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return e===void 0&&n===void 0?r=new Uint8Array(r):n===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,n),u.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=u.prototype):t=U(t,r),t}function zr(t,r){if(T(r)){var e=W(r.length)|0;return t=y(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"||pe(r.length)?y(t,0):U(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return U(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function W(t){if(t>=C())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C().toString(16)+" bytes");return t|0}u.isBuffer=fe;function T(t){return!!(t!=null&&t._isBuffer)}u.compare=function(r,e){if(!T(r)||!T(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};u.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}};u.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=u.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(!T(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};function rr(t,r){if(T(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 n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return O(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return ur(t).length;default:if(n)return O(t).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=rr;function Jr(t,r,e){var n=!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 nr(this,r,e);case"ascii":return ee(this,r,e);case"latin1":case"binary":return te(this,r,e);case"base64":return jr(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function S(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}u.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)S(this,e,e+1);return this};u.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)S(this,e,e+3),S(this,e+1,e+2);return this};u.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)S(this,e,e+7),S(this,e+1,e+6),S(this,e+2,e+5),S(this,e+3,e+4);return this};u.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?nr(this,0,r):Jr.apply(this,arguments)};u.prototype.equals=function(r){if(!T(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.compare=function(r,e,n,i,a){if(!T(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,s=n-e,l=Math.min(o,s),p=this.slice(i,a),f=r.slice(e,n),c=0;c<l;++c)if(p[c]!==f[c]){o=p[c],s=f[c];break}return o<s?-1:s<o?1:0};function er(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=u.from(r,n)),T(r))return r.length===0?-1:q(t,r,e,n,i);if(typeof r=="number")return r=r&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):q(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function q(t,r,e,n,i){var a=1,o=t.length,s=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,s/=2,e/=2}function l(b,N){return a===1?b[N]:b.readUInt16BE(N*a)}var p;if(i){var f=-1;for(p=e;p<o;p++)if(l(t,p)===l(r,f===-1?0:p-f)){if(f===-1&&(f=p),p-f+1===s)return f*a}else f!==-1&&(p-=p-f),f=-1}else for(e+s>o&&(e=o-s),p=e;p>=0;p--){for(var c=!0,E=0;E<s;E++)if(l(t,p+E)!==l(r,E)){c=!1;break}if(c)return p}return-1}u.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};u.prototype.indexOf=function(r,e,n){return er(this,r,e,n,!0)};u.prototype.lastIndexOf=function(r,e,n){return er(this,r,e,n,!1)};function Xr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(r.substr(o*2,2),16);if(isNaN(s))return o;t[e+o]=s}return o}function qr(t,r,e,n){return M(O(r,t.length-e),t,e,n)}function tr(t,r,e,n){return M(le(r),t,e,n)}function $r(t,r,e,n){return tr(t,r,e,n)}function Zr(t,r,e,n){return M(ur(r),t,e,n)}function Qr(t,r,e,n){return M(ce(r,t.length-e),t,e,n)}u.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Xr(this,r,e,n);case"utf8":case"utf-8":return qr(this,r,e,n);case"ascii":return tr(this,r,e,n);case"latin1":case"binary":return $r(this,r,e,n);case"base64":return Zr(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qr(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function jr(t,r,e){return r===0&&e===t.length?X(t):X(t.slice(r,e))}function nr(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=e){var l,p,f,c;switch(s){case 1:a<128&&(o=a);break;case 2:l=t[i+1],(l&192)===128&&(c=(a&31)<<6|l&63,c>127&&(o=c));break;case 3:l=t[i+1],p=t[i+2],(l&192)===128&&(p&192)===128&&(c=(a&15)<<12|(l&63)<<6|p&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:l=t[i+1],p=t[i+2],f=t[i+3],(l&192)===128&&(p&192)===128&&(f&192)===128&&(c=(a&15)<<18|(l&63)<<12|(p&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return re(n)}var $=4096;function re(t){var r=t.length;if(r<=$)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=$));return e}function ee(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function te(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ne(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=se(t[a]);return i}function ie(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}u.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i;if(u.TYPED_ARRAY_SUPPORT)i=this.subarray(r,e),i.__proto__=u.prototype;else{var a=e-r;i=new u(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+r]}return i};function m(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")}u.prototype.readUIntLE=function(r,e,n){r=r|0,e=e|0,n||m(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};u.prototype.readUIntBE=function(r,e,n){r=r|0,e=e|0,n||m(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};u.prototype.readUInt8=function(r,e){return e||m(r,1,this.length),this[r]};u.prototype.readUInt16LE=function(r,e){return e||m(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUInt16BE=function(r,e){return e||m(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUInt32LE=function(r,e){return e||m(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUInt32BE=function(r,e){return e||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,e,n){r=r|0,e=e|0,n||m(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};u.prototype.readIntBE=function(r,e,n){r=r|0,e=e|0,n||m(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};u.prototype.readInt8=function(r,e){return e||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,e){e||m(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(r,e){e||m(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(r,e){return e||m(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,e){return e||m(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,e){return e||m(r,4,this.length),L(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,e){return e||m(r,4,this.length),L(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,e){return e||m(r,8,this.length),L(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,e){return e||m(r,8,this.length),L(this,r,!1,52,8)};function h(t,r,e,n,i,a){if(!T(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;h(this,r,e,n,a,0)}var o=1,s=0;for(this[e]=r&255;++s<n&&(o*=256);)this[e+s]=r/o&255;return e+n};u.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;h(this,r,e,n,a,0)}var o=n-1,s=1;for(this[e+o]=r&255;--o>=0&&(s*=256);)this[e+o]=r/s&255;return e+n};u.prototype.writeUInt8=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function B(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,a=Math.min(t.length-e,2);i<a;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}u.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):B(this,r,e,!0),e+2};u.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):B(this,r,e,!1),e+2};function D(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,a=Math.min(t.length-e,4);i<a;++i)t[e+i]=r>>>(n?i:3-i)*8&255}u.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):D(this,r,e,!0),e+4};u.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):D(this,r,e,!1),e+4};u.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e|0,!i){var a=Math.pow(2,8*n-1);h(this,r,e,n,a-1,-a)}var o=0,s=1,l=0;for(this[e]=r&255;++o<n&&(s*=256);)r<0&&l===0&&this[e+o-1]!==0&&(l=1),this[e+o]=(r/s>>0)-l&255;return e+n};u.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e|0,!i){var a=Math.pow(2,8*n-1);h(this,r,e,n,a-1,-a)}var o=n-1,s=1,l=0;for(this[e+o]=r&255;--o>=0&&(s*=256);)r<0&&l===0&&this[e+o+1]!==0&&(l=1),this[e+o]=(r/s>>0)-l&255;return e+n};u.prototype.writeInt8=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};u.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):B(this,r,e,!0),e+2};u.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):B(this,r,e,!1),e+2};u.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):D(this,r,e,!0),e+4};u.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e|0,n||h(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):D(this,r,e,!1),e+4};function ir(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function ar(t,r,e,n,i){return i||ir(t,r,e,4,34028234663852886e22,-34028234663852886e22),lr(t,r,e,n,23,4),e+4}u.prototype.writeFloatLE=function(r,e,n){return ar(this,r,e,!0,n)};u.prototype.writeFloatBE=function(r,e,n){return ar(this,r,e,!1,n)};function or(t,r,e,n,i){return i||ir(t,r,e,8,17976931348623157e292,-17976931348623157e292),lr(t,r,e,n,52,8),e+8}u.prototype.writeDoubleLE=function(r,e,n){return or(this,r,e,!0,n)};u.prototype.writeDoubleBE=function(r,e,n){return or(this,r,e,!1,n)};u.prototype.copy=function(r,e,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n,o;if(this===r&&n<e&&e<i)for(o=a-1;o>=0;--o)r[o+e]=this[o+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)r[o+e]=this[o+n];else Uint8Array.prototype.set.call(r,this.subarray(n,n+a),e);return a};u.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),r.length===1){var a=r.charCodeAt(0);a<256&&(r=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var s=T(r)?r:O(new u(r,i).toString()),l=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%l]}return this};var ae=/[^+\/0-9A-Za-z-_]/g;function oe(t){if(t=ue(t).replace(ae,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ue(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function se(t){return t<16?"0"+t.toString(16):t.toString(16)}function O(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=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 le(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ce(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function ur(t){return Fr(oe(t))}function M(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function pe(t){return t!==t}function fe(t){return t!=null&&(!!t._isBuffer||sr(t)||me(t))}function sr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function me(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&sr(t.slice(0,0))}function L(t,r,e,n,i){var a,o,s=i*8-n-1,l=(1<<s)-1,p=l>>1,f=-7,c=e?i-1:0,E=e?-1:1,b=t[r+c];for(c+=E,a=b&(1<<-f)-1,b>>=-f,f+=s;f>0;a=a*256+t[r+c],c+=E,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=o*256+t[r+c],c+=E,f-=8);if(a===0)a=1-p;else{if(a===l)return o?NaN:(b?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-p}return(b?-1:1)*o*Math.pow(2,a-n)}function lr(t,r,e,n,i,a){var o,s,l,p=a*8-i-1,f=(1<<p)-1,c=f>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:a-1,N=n?1:-1,pr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?r+=E/l:r+=E*Math.pow(2,1-c),r*l>=2&&(o++,l/=2),o+c>=f?(s=0,o=f):o+c>=1?(s=(r*l-1)*Math.pow(2,i),o=o+c):(s=r*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[e+b]=s&255,b+=N,s/=256,i-=8);for(o=o<<i|s,p+=i;p>0;t[e+b]=o&255,b+=N,o/=256,p-=8);t[e+b-N]|=pr*128}var Re=`{"theme1":{"value":"${g.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${g.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${g.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;var cr={V1_1:"v1_1",V2:"v2"},ke={[cr.V1_1]:{testnet:62368684,mainnet:552635992},[cr.V2]:{testnet:148607e3,mainnet:1002541853}};var it=t=>{let r={};return t.forEach(({settingId:e,value:n,setting:i})=>{i.type==="boolean"?r[e]=n==="true":r[e]=n}),{discordEnabled:r["point-system.discordEnabled"],telegramBotName:r["point-system.telegramBotName"],telegramBotId:r["point-system.telegramBotId"],telegramEnabled:r["point-system.telegramEnabled"],telegramGroupId:r["point-system.telegramGroupId"],telegramGroupName:r["point-system.telegramGroupName"],twitterAccountId:r["point-system.twitterAccountId"],twitterAccountName:r["point-system.twitterAccountName"],twitterEnabled:r["point-system.twitterEnabled"],twitterJobEnabled:r["point-system.twitterJobEnabled"],guideLink:r["point-system.guideLink"]}};export{it as transformPointSystemSettings};
2
2
  /*! Bundled license information:
3
3
 
4
4
  @esbuild-plugins/node-globals-polyfill/Buffer.js:
@@ -1,4 +1,4 @@
1
- function G(){throw new Error("setTimeout has not been defined")}function H(){throw new Error("clearTimeout has not been defined")}var A=G,R=H;typeof globalThis.setTimeout=="function"&&(A=setTimeout);typeof globalThis.clearTimeout=="function"&&(R=clearTimeout);function z(t){if(A===setTimeout)return setTimeout(t,0);if((A===G||!A)&&setTimeout)return A=setTimeout,setTimeout(t,0);try{return A(t,0)}catch{try{return A.call(null,t,0)}catch{return A.call(this,t,0)}}}function br(t){if(R===clearTimeout)return clearTimeout(t);if((R===H||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch{try{return R.call(null,t)}catch{return R.call(this,t)}}}var y=[],S=!1,I,C=-1;function dr(){!S||!I||(S=!1,I.length?y=I.concat(y):C=-1,y.length&&X())}function X(){if(!S){var t=z(dr);S=!0;for(var r=y.length;r;){for(I=y,y=[];++C<r;)I&&I[C].run();C=-1,r=y.length}I=null,S=!1,br(t)}}function xr(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];y.push(new J(t,r)),y.length===1&&!S&&z(X)}function J(t,r){this.fun=t,this.array=r}J.prototype.run=function(){this.fun.apply(null,this.array)};var Er="browser",_r="browser",Tr=!0,yr={},wr=[],Ar="",Rr={},Ir={},vr={};function v(){}var kr=v,Nr=v,Pr=v,Sr=v,Cr=v,Br=v,Dr=v;function Or(t){throw new Error("process.binding is not supported")}function Mr(){return"/"}function Ur(t){throw new Error("process.chdir is not supported")}function Lr(){return 0}var P=globalThis.performance||{},Yr=P.now||P.mozNow||P.msNow||P.oNow||P.webkitNow||function(){return new Date().getTime()};function Fr(t){var r=Yr.call(P)*.001,e=Math.floor(r),n=Math.floor(r%1*1e9);return t&&(e=e-t[0],n=n-t[1],n<0&&(e--,n+=1e9)),[e,n]}var Wr=new Date;function Vr(){var t=new Date,r=t-Wr;return r/1e3}var h={nextTick:xr,title:Er,browser:Tr,env:yr,argv:wr,version:Ar,versions:Rr,on:kr,addListener:Nr,once:Pr,off:Sr,removeListener:Cr,removeAllListeners:Br,emit:Dr,binding:Or,cwd:Mr,chdir:Ur,umask:Lr,hrtime:Fr,platform:_r,release:Ir,config:vr,uptime:Vr},K={};Object.keys(K).forEach(t=>{let r=t.split("."),e=h;for(let n=0;n<r.length;n++){let i=r[n];n===r.length-1?e[i]=K[t]:e=e[i]||(e[i]={})}});var _=[],x=[],Kr=typeof Uint8Array<"u"?Uint8Array:Array,F=!1;function Q(){F=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)_[r]=t[r],x[t.charCodeAt(r)]=r;x[45]=62,x[95]=63}function Gr(t){F||Q();var r,e,n,i,a,o,s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[s-2]==="="?2:t[s-1]==="="?1:0,o=new Kr(s*3/4-a),n=a>0?s-4:s;var c=0;for(r=0,e=0;r<n;r+=4,e+=3)i=x[t.charCodeAt(r)]<<18|x[t.charCodeAt(r+1)]<<12|x[t.charCodeAt(r+2)]<<6|x[t.charCodeAt(r+3)],o[c++]=i>>16&255,o[c++]=i>>8&255,o[c++]=i&255;return a===2?(i=x[t.charCodeAt(r)]<<2|x[t.charCodeAt(r+1)]>>4,o[c++]=i&255):a===1&&(i=x[t.charCodeAt(r)]<<10|x[t.charCodeAt(r+1)]<<4|x[t.charCodeAt(r+2)]>>2,o[c++]=i>>8&255,o[c++]=i&255),o}function Hr(t){return _[t>>18&63]+_[t>>12&63]+_[t>>6&63]+_[t&63]}function zr(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(Hr(n));return i.join("")}function q(t){F||Q();for(var r,e=t.length,n=e%3,i="",a=[],o=16383,s=0,c=e-n;s<c;s+=o)a.push(zr(t,s,s+o>c?c:s+o));return n===1?(r=t[e-1],i+=_[r>>2],i+=_[r<<4&63],i+="=="):n===2&&(r=(t[e-2]<<8)+t[e-1],i+=_[r>>10],i+=_[r>>4&63],i+=_[r<<2&63],i+="="),a.push(i),a.join("")}u.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function B(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function w(t,r){if(B()<r)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=u.prototype):(t===null&&(t=new u(r)),t.length=r),t}function u(t,r,e){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(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 W(this,t)}return j(this,t,r,e)}u.poolSize=8192;u._augment=function(t){return t.__proto__=u.prototype,t};function j(t,r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?qr(t,r,e,n):typeof r=="string"?Jr(t,r,e):$r(t,r)}u.from=function(t,r,e){return j(null,t,r,e)};u.kMaxLength=B();u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[Symbol.species]);function rr(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 Xr(t,r,e,n){return rr(r),r<=0?w(t,r):e!==void 0?typeof n=="string"?w(t,r).fill(e,n):w(t,r).fill(e):w(t,r)}u.alloc=function(t,r,e){return Xr(null,t,r,e)};function W(t,r){if(rr(r),t=w(t,r<0?0:V(r)|0),!u.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}u.allocUnsafe=function(t){return W(null,t)};u.allocUnsafeSlow=function(t){return W(null,t)};function Jr(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!u.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=er(r,e)|0;t=w(t,n);var i=t.write(r,e);return i!==n&&(t=t.slice(0,i)),t}function Y(t,r){var e=r.length<0?0:V(r.length)|0;t=w(t,e);for(var n=0;n<e;n+=1)t[n]=r[n]&255;return t}function qr(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return e===void 0&&n===void 0?r=new Uint8Array(r):n===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,n),u.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=u.prototype):t=Y(t,r),t}function $r(t,r){if(T(r)){var e=V(r.length)|0;return t=w(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"||he(r.length)?w(t,0):Y(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return Y(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function V(t){if(t>=B())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+B().toString(16)+" bytes");return t|0}u.isBuffer=be;function T(t){return!!(t!=null&&t._isBuffer)}u.compare=function(r,e){if(!T(r)||!T(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};u.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}};u.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=u.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(!T(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};function er(t,r){if(T(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 n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return sr(t).length;default:if(n)return D(t).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=er;function Zr(t,r,e){var n=!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 ue(this,r,e);case"utf8":case"utf-8":return ir(this,r,e);case"ascii":return ae(this,r,e);case"latin1":case"binary":return oe(this,r,e);case"base64":return ne(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function k(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}u.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)k(this,e,e+1);return this};u.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)k(this,e,e+3),k(this,e+1,e+2);return this};u.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)k(this,e,e+7),k(this,e+1,e+6),k(this,e+2,e+5),k(this,e+3,e+4);return this};u.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?ir(this,0,r):Zr.apply(this,arguments)};u.prototype.equals=function(r){if(!T(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.compare=function(r,e,n,i,a){if(!T(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,s=n-e,c=Math.min(o,s),f=this.slice(i,a),m=r.slice(e,n),p=0;p<c;++p)if(f[p]!==m[p]){o=f[p],s=m[p];break}return o<s?-1:s<o?1:0};function tr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=u.from(r,n)),T(r))return r.length===0?-1:$(t,r,e,n,i);if(typeof r=="number")return r=r&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):$(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function $(t,r,e,n,i){var a=1,o=t.length,s=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,s/=2,e/=2}function c(d,N){return a===1?d[N]:d.readUInt16BE(N*a)}var f;if(i){var m=-1;for(f=e;f<o;f++)if(c(t,f)===c(r,m===-1?0:f-m)){if(m===-1&&(m=f),f-m+1===s)return m*a}else m!==-1&&(f-=f-m),m=-1}else for(e+s>o&&(e=o-s),f=e;f>=0;f--){for(var p=!0,E=0;E<s;E++)if(c(t,f+E)!==c(r,E)){p=!1;break}if(p)return f}return-1}u.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};u.prototype.indexOf=function(r,e,n){return tr(this,r,e,n,!0)};u.prototype.lastIndexOf=function(r,e,n){return tr(this,r,e,n,!1)};function Qr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(r.substr(o*2,2),16);if(isNaN(s))return o;t[e+o]=s}return o}function jr(t,r,e,n){return U(D(r,t.length-e),t,e,n)}function nr(t,r,e,n){return U(me(r),t,e,n)}function re(t,r,e,n){return nr(t,r,e,n)}function ee(t,r,e,n){return U(sr(r),t,e,n)}function te(t,r,e,n){return U(ge(r,t.length-e),t,e,n)}u.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Qr(this,r,e,n);case"utf8":case"utf-8":return jr(this,r,e,n);case"ascii":return nr(this,r,e,n);case"latin1":case"binary":return re(this,r,e,n);case"base64":return ee(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(t,r,e){return r===0&&e===t.length?q(t):q(t.slice(r,e))}function ir(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=e){var c,f,m,p;switch(s){case 1:a<128&&(o=a);break;case 2:c=t[i+1],(c&192)===128&&(p=(a&31)<<6|c&63,p>127&&(o=p));break;case 3:c=t[i+1],f=t[i+2],(c&192)===128&&(f&192)===128&&(p=(a&15)<<12|(c&63)<<6|f&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:c=t[i+1],f=t[i+2],m=t[i+3],(c&192)===128&&(f&192)===128&&(m&192)===128&&(p=(a&15)<<18|(c&63)<<12|(f&63)<<6|m&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return ie(n)}var Z=4096;function ie(t){var r=t.length;if(r<=Z)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=Z));return e}function ae(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function oe(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ue(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=fe(t[a]);return i}function se(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}u.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i;if(u.TYPED_ARRAY_SUPPORT)i=this.subarray(r,e),i.__proto__=u.prototype;else{var a=e-r;i=new u(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+r]}return i};function g(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")}u.prototype.readUIntLE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};u.prototype.readUIntBE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};u.prototype.readUInt8=function(r,e){return e||g(r,1,this.length),this[r]};u.prototype.readUInt16LE=function(r,e){return e||g(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUInt16BE=function(r,e){return e||g(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUInt32LE=function(r,e){return e||g(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUInt32BE=function(r,e){return e||g(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};u.prototype.readIntBE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};u.prototype.readInt8=function(r,e){return e||g(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,e){e||g(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(r,e){e||g(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(r,e){return e||g(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,e){return e||g(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,e){return e||g(r,4,this.length),L(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,e){return e||g(r,4,this.length),L(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,e){return e||g(r,8,this.length),L(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,e){return e||g(r,8,this.length),L(this,r,!1,52,8)};function b(t,r,e,n,i,a){if(!T(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;b(this,r,e,n,a,0)}var o=1,s=0;for(this[e]=r&255;++s<n&&(o*=256);)this[e+s]=r/o&255;return e+n};u.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;b(this,r,e,n,a,0)}var o=n-1,s=1;for(this[e+o]=r&255;--o>=0&&(s*=256);)this[e+o]=r/s&255;return e+n};u.prototype.writeUInt8=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function O(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,a=Math.min(t.length-e,2);i<a;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}u.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):O(this,r,e,!0),e+2};u.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):O(this,r,e,!1),e+2};function M(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,a=Math.min(t.length-e,4);i<a;++i)t[e+i]=r>>>(n?i:3-i)*8&255}u.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):M(this,r,e,!0),e+4};u.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):M(this,r,e,!1),e+4};u.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e|0,!i){var a=Math.pow(2,8*n-1);b(this,r,e,n,a-1,-a)}var o=0,s=1,c=0;for(this[e]=r&255;++o<n&&(s*=256);)r<0&&c===0&&this[e+o-1]!==0&&(c=1),this[e+o]=(r/s>>0)-c&255;return e+n};u.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e|0,!i){var a=Math.pow(2,8*n-1);b(this,r,e,n,a-1,-a)}var o=n-1,s=1,c=0;for(this[e+o]=r&255;--o>=0&&(s*=256);)r<0&&c===0&&this[e+o+1]!==0&&(c=1),this[e+o]=(r/s>>0)-c&255;return e+n};u.prototype.writeInt8=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};u.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):O(this,r,e,!0),e+2};u.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):O(this,r,e,!1),e+2};u.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):M(this,r,e,!0),e+4};u.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):M(this,r,e,!1),e+4};function ar(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function or(t,r,e,n,i){return i||ar(t,r,e,4,34028234663852886e22,-34028234663852886e22),cr(t,r,e,n,23,4),e+4}u.prototype.writeFloatLE=function(r,e,n){return or(this,r,e,!0,n)};u.prototype.writeFloatBE=function(r,e,n){return or(this,r,e,!1,n)};function ur(t,r,e,n,i){return i||ar(t,r,e,8,17976931348623157e292,-17976931348623157e292),cr(t,r,e,n,52,8),e+8}u.prototype.writeDoubleLE=function(r,e,n){return ur(this,r,e,!0,n)};u.prototype.writeDoubleBE=function(r,e,n){return ur(this,r,e,!1,n)};u.prototype.copy=function(r,e,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n,o;if(this===r&&n<e&&e<i)for(o=a-1;o>=0;--o)r[o+e]=this[o+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)r[o+e]=this[o+n];else Uint8Array.prototype.set.call(r,this.subarray(n,n+a),e);return a};u.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),r.length===1){var a=r.charCodeAt(0);a<256&&(r=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var s=T(r)?r:D(new u(r,i).toString()),c=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%c]}return this};var le=/[^+\/0-9A-Za-z-_]/g;function ce(t){if(t=pe(t).replace(le,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function pe(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function fe(t){return t<16?"0"+t.toString(16):t.toString(16)}function D(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=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 me(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ge(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function sr(t){return Gr(ce(t))}function U(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function he(t){return t!==t}function be(t){return t!=null&&(!!t._isBuffer||lr(t)||de(t))}function lr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function de(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&lr(t.slice(0,0))}function L(t,r,e,n,i){var a,o,s=i*8-n-1,c=(1<<s)-1,f=c>>1,m=-7,p=e?i-1:0,E=e?-1:1,d=t[r+p];for(p+=E,a=d&(1<<-m)-1,d>>=-m,m+=s;m>0;a=a*256+t[r+p],p+=E,m-=8);for(o=a&(1<<-m)-1,a>>=-m,m+=n;m>0;o=o*256+t[r+p],p+=E,m-=8);if(a===0)a=1-f;else{if(a===c)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-f}return(d?-1:1)*o*Math.pow(2,a-n)}function cr(t,r,e,n,i,a){var o,s,c,f=a*8-i-1,m=(1<<f)-1,p=m>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,N=n?1:-1,hr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,o=m):(o=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+p>=1?r+=E/c:r+=E*Math.pow(2,1-p),r*c>=2&&(o++,c/=2),o+p>=m?(s=0,o=m):o+p>=1?(s=(r*c-1)*Math.pow(2,i),o=o+p):(s=r*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[e+d]=s&255,d+=N,s/=256,i-=8);for(o=o<<i|s,f+=i;f>0;t[e+d]=o&255,d+=N,o/=256,f-=8);t[e+d-N]|=hr*128}var xe=(l=>(l.ENABLED="company.enabled",l.APP_TITLE="company.appTitle",l.DOMAIN="company.domain",l.LOGO="appearance.logo",l.AMM="product.amm",l.OBDEX="product.obdex",l.THEMES="appearance.themes",l.DIRECT_SETTLE="company.directSettlement",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.GEOBLOCK="company.geoblock",l.EMBEDDED_APP_URL="company.embeddedAppUrl",l.PRODUCT_OBDEX="product.obdex",l.PRODUCT_AMM="product.amm",l.NEW_TAB="appearance.newTab",l.APPEARANCE_TARGET="appearance.target",l.CUSTOM_MENU_ITEMS="appearance.customMenuItems",l.REPORT_BUTTONS="appearance.reportButtons",l.APPEARANCE_CHART_TYPE="appearance.chartType",l.APPEARANCE_CHART_INT="appearance.chartInt",l.PINNED_PAIRS="markets.pinnedPairs",l.KYC_TRADE_REQUIREMENT_ENABLED="markets.kycTradeRequirementEnabled",l.FORCE_SETTING_FLAG="company.forceSetting",l.AFFILIATE_DASHBOARD_VISIBILITY="product.affiliateDashboardVisibility",l.AFFILIATE_DASHBOARD_THRESHOLD="product.affiliateDashboardThreshold",l.AFFILIATE_DEFAULT_FEE_SHARE="product.affiliateDefaultFeeShare",l.AFFILIATE_POINTS_REWARD="product.affiliatePointsReward",l.POINT_SYSTEM_MODE="product.pointSystem",l.POINT_SYSTEM_TELEGRAM_API_TOKEN="point-system.telegramApiToken",l.POINT_SYSTEM_TELEGRAM_ENABLED="point-system.telegramEnabled",l.POINT_SYSTEM_TELEGRAM_GROUP_ID="point-system.telegramGroupId",l.POINT_SYSTEM_TELEGRAM_BOT_NAME="point-system.telegramBotName",l.POINT_SYSTEM_TELEGRAM_BOT_ID="point-system.telegramBotId",l.POINT_SYSTEM_TELEGRAM_GROUP_NAME="point-system.telegramGroupName",l.POINT_SYSTEM_TELEGRAM_WEBHOOK_TOKEN="point-system.telegramWebhookToken",l.POINT_SYSTEM_DISCORD_CLIENT_ID="point-system.discordClientId",l.POINT_SYSTEM_DISCORD_CLIENT_SECRET="point-system.discordClientSecret",l.POINT_SYSTEM_DISCORD_SERVER_ID="point-system.discordServerId",l.POINT_SYSTEM_DISCORD_ENABLED="point-system.discordEnabled",l.POINT_SYSTEM_TWITTER_CLIENT_ID="point-system.twitterClientId",l.POINT_SYSTEM_TWITTER_CLIENT_SECRET="point-system.twitterClientSecret",l.POINT_SYSTEM_TWITTER_BEARER_TOKEN="point-system.twitterBearerToken",l.POINT_SYSTEM_TWITTER_REFRESH_TOKEN="point-system.twitterRefreshToken",l.POINT_SYSTEM_TWITTER_ENABLED="point-system.twitterEnabled",l.POINT_SYSTEM_TWITTER_JOB_ENABLED="point-system.twitterJobEnabled",l.POINT_SYSTEM_TWITTER_HASHTAGS="point-system.twitterHashtags",l.POINT_SYSTEM_TWITTER_TWEET_EXP_TIME="point-system.twitterPostDefaultExpirationTime",l.POINT_SYSTEM_TWITTER_ACCOUNT_NAME="point-system.twitterAccountName",l.POINT_SYSTEM_TWITTER_ACCOUNT_ID="point-system.twitterAccountId",l.POINT_SYSTEM_TWITTER_WEBHOOK_TOKEN="point-system.twitterWebhookToken",l.POINT_SYSTEM_GUIDE_LINK="point-system.guideLink",l))(xe||{}),Ee=(n=>(n.DISABLED="disabled",n.ENABLED_FOR_ALL="enabled for all",n.ENABLED_FOR_AFFILIATES="enabled for affiliates",n))(Ee||{}),_e=(o=>(o.API_TOKEN="apiToken",o.CLIENT_ID="clientId",o.CLIENT_SECRET="clientSecret",o.BEARER_TOKEN="bearerToken",o.REFRESH_TOKEN="refreshToken",o.ACCESS_TOKEN="accessToken",o))(_e||{}),Ve={"point-system.telegramApiToken":"apiToken","point-system.discordClientId":"clientId","point-system.discordClientSecret":"clientSecret","point-system.twitterClientSecret":"clientSecret","point-system.twitterClientId":"clientId","point-system.twitterBearerToken":"bearerToken","point-system.twitterRefreshToken":"refreshToken"},Ke=["primary-1","primary-2","main-background","primary-text","module-background","buy-text","buy-background","sell-text","sell-background","secondary-text","input-background-default","input-background-hover","input-background-disabled","input-border-default","module-border","button-disabled","button-border","input-border-active","active-element-default","hover-element-default","dropdown-shadow","button-text","pair-active-row"],Ge=`{"theme1":{"value":"${h.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${h.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${h.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`,He='{"theme1":{"name":"dark","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}},"theme2":{"name":"light","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}},"theme3":{"name":"purple","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}}',Te=(n=>(n.theme1='{"name":"dark","id":"theme1","active":true, "chartColors":{"bullish_candle_color": "rgba(2, 199, 122, 0.25)","bearish_candle_color": "rgba(221, 94, 86, 1)","bullish_wick_color": "rgba(2, 199, 122, 0.25)","bearish_wick_color": "rgba(221, 94, 86, 1)","bullish_outline_color": "rgba(2, 199, 122, 0.25)","bearish_outline_color": "rgba(221, 94, 86, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(19, 23, 34, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}}',n.theme2='{"name":"light","id":"theme2","active":true, "chartColors":{"bullish_candle_color": "rgba(0, 112, 98, 1)","bearish_candle_color": "rgba(195, 12, 1, 1)","bullish_wick_color": "rgba(0, 112, 98, 1)","bearish_wick_color": "rgba(195, 12, 1, 1)","bullish_outline_color": "rgba(0, 112, 98, 1)","bearish_outline_color": "rgba(195, 12, 1, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(255, 255, 255, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}',n.theme3='{"name":"purple","id":"theme3","active":true, "chartColors":{"bullish_candle_color": "rgba(0, 112, 98, 1)","bearish_candle_color": "rgba(195, 12, 1, 1)","bullish_wick_color": "rgba(0, 112, 98, 1)","bearish_wick_color": "rgba(195, 12, 1, 1)","bullish_outline_color": "rgba(0, 112, 98, 1)","bearish_outline_color": "rgba(195, 12, 1, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(254, 250, 255, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}',n))(Te||{});var ye=(a=>(a.STABLE="stable",a.CPMM="constant_product",a.LEND="lending",a.NANO="nano",a.MVNANO="mvnano",a))(ye||{}),we=(a=>(a[a.ultrade=0]="ultrade",a[a.tinyman=1]="tinyman",a[a.pactfi=2]="pactfi",a[a.humble=3]="humble",a[a.algofi=4]="algofi",a))(we||{}),Ae=(a=>(a.ultrade="U",a.tinyman="T",a.pactfi="P",a.humble="H",a.algofi="A",a))(Ae||{}),Re=(a=>(a[a.ultrade=1]="ultrade",a[a.tinyman=2]="tinyman",a[a.pactfi=1]="pactfi",a[a.humble=1]="humble",a[a.algofi=2]="algofi",a))(Re||{}),pr={V1_1:"v1_1",V2:"v2"},qe={[pr.V1_1]:{testnet:62368684,mainnet:552635992},[pr.V2]:{testnet:148607e3,mainnet:1002541853}},Ie=(e=>(e.ASSETS="assets.json",e.TOP_ASSETS="topAssets.json",e))(Ie||{});var ve=(i=>(i.last_7_days="last_7_days",i.last_30_days="last_30_days",i.last_90_days="last_90_days",i.last_year="last_year",i))(ve||{}),fr=class{constructor(){this.timeRange="last_30_days";this.sortBy="volume_usd";this.order="desc";this.limit=20;this.page=1}},mr=class{constructor(){this.timeRange="last_30_days";this.sortBy="volume_usd";this.order="desc";this.limit=20;this.page=1}},ke=(i=>(i.volume="volume",i.fees="fees",i.orders="orders",i.dau="dau",i))(ke||{}),gr=class{constructor(){this.type="volume";this.timeRange="last_7_days"}};var Ne=(a=>(a.PREPARING="provisioning",a.STOPPING="stopping",a.RUNNING="running",a.STOPPED="stopped",a.FAILED="failed",a))(Ne||{});export{Ee as AffDashboardVisibilitySettingEnum,Ie as AmmBucketKeys,Ae as AmmChars,Re as AmmForeignResources,we as AmmIds,pr as CONTRACT_VERSION,gr as ChartQueryDto,_e as CredentialNameEnum,Ne as HummingbotInstanceStatus,fr as PairsQueryDto,ye as PoolType,xe as SettingIds,ve as SmallTimeframeEnum,ke as StatisticTypeQuery,mr as UsersQueryDto,qe as VALIDATOR_APP_ID,Ge as defaultLogoSettingValue,He as defaultThemeSettingValue,Te as defaultThemesValue,Ke as requiredColors,Ve as settingIdToSecretType};
1
+ function K(){throw new Error("setTimeout has not been defined")}function G(){throw new Error("clearTimeout has not been defined")}var A=K,R=G;typeof globalThis.setTimeout=="function"&&(A=setTimeout);typeof globalThis.clearTimeout=="function"&&(R=clearTimeout);function z(t){if(A===setTimeout)return setTimeout(t,0);if((A===K||!A)&&setTimeout)return A=setTimeout,setTimeout(t,0);try{return A(t,0)}catch{try{return A.call(null,t,0)}catch{return A.call(this,t,0)}}}function br(t){if(R===clearTimeout)return clearTimeout(t);if((R===G||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(t);try{return R(t)}catch{try{return R.call(null,t)}catch{return R.call(this,t)}}}var y=[],P=!1,I,C=-1;function dr(){!P||!I||(P=!1,I.length?y=I.concat(y):C=-1,y.length&&X())}function X(){if(!P){var t=z(dr);P=!0;for(var r=y.length;r;){for(I=y,y=[];++C<r;)I&&I[C].run();C=-1,r=y.length}I=null,P=!1,br(t)}}function xr(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];y.push(new J(t,r)),y.length===1&&!P&&z(X)}function J(t,r){this.fun=t,this.array=r}J.prototype.run=function(){this.fun.apply(null,this.array)};var Er="browser",_r="browser",Tr=!0,yr={},wr=[],Ar="",Rr={},Ir={},vr={};function v(){}var kr=v,Nr=v,Sr=v,Pr=v,Cr=v,Br=v,Dr=v;function Or(t){throw new Error("process.binding is not supported")}function Mr(){return"/"}function Ur(t){throw new Error("process.chdir is not supported")}function Lr(){return 0}var S=globalThis.performance||{},Yr=S.now||S.mozNow||S.msNow||S.oNow||S.webkitNow||function(){return new Date().getTime()};function Fr(t){var r=Yr.call(S)*.001,e=Math.floor(r),n=Math.floor(r%1*1e9);return t&&(e=e-t[0],n=n-t[1],n<0&&(e--,n+=1e9)),[e,n]}var Wr=new Date;function Vr(){var t=new Date,r=t-Wr;return r/1e3}var h={nextTick:xr,title:Er,browser:Tr,env:yr,argv:wr,version:Ar,versions:Rr,on:kr,addListener:Nr,once:Sr,off:Pr,removeListener:Cr,removeAllListeners:Br,emit:Dr,binding:Or,cwd:Mr,chdir:Ur,umask:Lr,hrtime:Fr,platform:_r,release:Ir,config:vr,uptime:Vr},H={};Object.keys(H).forEach(t=>{let r=t.split("."),e=h;for(let n=0;n<r.length;n++){let i=r[n];n===r.length-1?e[i]=H[t]:e=e[i]||(e[i]={})}});var _=[],x=[],Hr=typeof Uint8Array<"u"?Uint8Array:Array,F=!1;function Q(){F=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)_[r]=t[r],x[t.charCodeAt(r)]=r;x[45]=62,x[95]=63}function Kr(t){F||Q();var r,e,n,i,a,o,s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[s-2]==="="?2:t[s-1]==="="?1:0,o=new Hr(s*3/4-a),n=a>0?s-4:s;var c=0;for(r=0,e=0;r<n;r+=4,e+=3)i=x[t.charCodeAt(r)]<<18|x[t.charCodeAt(r+1)]<<12|x[t.charCodeAt(r+2)]<<6|x[t.charCodeAt(r+3)],o[c++]=i>>16&255,o[c++]=i>>8&255,o[c++]=i&255;return a===2?(i=x[t.charCodeAt(r)]<<2|x[t.charCodeAt(r+1)]>>4,o[c++]=i&255):a===1&&(i=x[t.charCodeAt(r)]<<10|x[t.charCodeAt(r+1)]<<4|x[t.charCodeAt(r+2)]>>2,o[c++]=i>>8&255,o[c++]=i&255),o}function Gr(t){return _[t>>18&63]+_[t>>12&63]+_[t>>6&63]+_[t&63]}function zr(t,r,e){for(var n,i=[],a=r;a<e;a+=3)n=(t[a]<<16)+(t[a+1]<<8)+t[a+2],i.push(Gr(n));return i.join("")}function q(t){F||Q();for(var r,e=t.length,n=e%3,i="",a=[],o=16383,s=0,c=e-n;s<c;s+=o)a.push(zr(t,s,s+o>c?c:s+o));return n===1?(r=t[e-1],i+=_[r>>2],i+=_[r<<4&63],i+="=="):n===2&&(r=(t[e-2]<<8)+t[e-1],i+=_[r>>10],i+=_[r>>4&63],i+=_[r<<2&63],i+="="),a.push(i),a.join("")}u.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function B(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function w(t,r){if(B()<r)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=u.prototype):(t===null&&(t=new u(r)),t.length=r),t}function u(t,r,e){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(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 W(this,t)}return j(this,t,r,e)}u.poolSize=8192;u._augment=function(t){return t.__proto__=u.prototype,t};function j(t,r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?qr(t,r,e,n):typeof r=="string"?Jr(t,r,e):$r(t,r)}u.from=function(t,r,e){return j(null,t,r,e)};u.kMaxLength=B();u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[Symbol.species]);function rr(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 Xr(t,r,e,n){return rr(r),r<=0?w(t,r):e!==void 0?typeof n=="string"?w(t,r).fill(e,n):w(t,r).fill(e):w(t,r)}u.alloc=function(t,r,e){return Xr(null,t,r,e)};function W(t,r){if(rr(r),t=w(t,r<0?0:V(r)|0),!u.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}u.allocUnsafe=function(t){return W(null,t)};u.allocUnsafeSlow=function(t){return W(null,t)};function Jr(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!u.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=er(r,e)|0;t=w(t,n);var i=t.write(r,e);return i!==n&&(t=t.slice(0,i)),t}function Y(t,r){var e=r.length<0?0:V(r.length)|0;t=w(t,e);for(var n=0;n<e;n+=1)t[n]=r[n]&255;return t}function qr(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return e===void 0&&n===void 0?r=new Uint8Array(r):n===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,n),u.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=u.prototype):t=Y(t,r),t}function $r(t,r){if(T(r)){var e=V(r.length)|0;return t=w(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"||he(r.length)?w(t,0):Y(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return Y(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function V(t){if(t>=B())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+B().toString(16)+" bytes");return t|0}u.isBuffer=be;function T(t){return!!(t!=null&&t._isBuffer)}u.compare=function(r,e){if(!T(r)||!T(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var n=r.length,i=e.length,a=0,o=Math.min(n,i);a<o;++a)if(r[a]!==e[a]){n=r[a],i=e[a];break}return n<i?-1:i<n?1:0};u.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}};u.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var n;if(e===void 0)for(e=0,n=0;n<r.length;++n)e+=r[n].length;var i=u.allocUnsafe(e),a=0;for(n=0;n<r.length;++n){var o=r[n];if(!T(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,a),a+=o.length}return i};function er(t,r){if(T(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 n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return sr(t).length;default:if(n)return D(t).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=er;function Zr(t,r,e){var n=!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 ue(this,r,e);case"utf8":case"utf-8":return ir(this,r,e);case"ascii":return ae(this,r,e);case"latin1":case"binary":return oe(this,r,e);case"base64":return ne(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}u.prototype._isBuffer=!0;function k(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}u.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)k(this,e,e+1);return this};u.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)k(this,e,e+3),k(this,e+1,e+2);return this};u.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)k(this,e,e+7),k(this,e+1,e+6),k(this,e+2,e+5),k(this,e+3,e+4);return this};u.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?ir(this,0,r):Zr.apply(this,arguments)};u.prototype.equals=function(r){if(!T(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.compare=function(r,e,n,i,a){if(!T(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),e<0||n>r.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,a>>>=0,this===r)return 0;for(var o=a-i,s=n-e,c=Math.min(o,s),f=this.slice(i,a),m=r.slice(e,n),p=0;p<c;++p)if(f[p]!==m[p]){o=f[p],s=m[p];break}return o<s?-1:s<o?1:0};function tr(t,r,e,n,i){if(t.length===0)return-1;if(typeof e=="string"?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof r=="string"&&(r=u.from(r,n)),T(r))return r.length===0?-1:$(t,r,e,n,i);if(typeof r=="number")return r=r&255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):$(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function $(t,r,e,n,i){var a=1,o=t.length,s=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,o/=2,s/=2,e/=2}function c(d,N){return a===1?d[N]:d.readUInt16BE(N*a)}var f;if(i){var m=-1;for(f=e;f<o;f++)if(c(t,f)===c(r,m===-1?0:f-m)){if(m===-1&&(m=f),f-m+1===s)return m*a}else m!==-1&&(f-=f-m),m=-1}else for(e+s>o&&(e=o-s),f=e;f>=0;f--){for(var p=!0,E=0;E<s;E++)if(c(t,f+E)!==c(r,E)){p=!1;break}if(p)return f}return-1}u.prototype.includes=function(r,e,n){return this.indexOf(r,e,n)!==-1};u.prototype.indexOf=function(r,e,n){return tr(this,r,e,n,!0)};u.prototype.lastIndexOf=function(r,e,n){return tr(this,r,e,n,!1)};function Qr(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n),n>i&&(n=i)):n=i;var a=r.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(r.substr(o*2,2),16);if(isNaN(s))return o;t[e+o]=s}return o}function jr(t,r,e,n){return U(D(r,t.length-e),t,e,n)}function nr(t,r,e,n){return U(me(r),t,e,n)}function re(t,r,e,n){return nr(t,r,e,n)}function ee(t,r,e,n){return U(sr(r),t,e,n)}function te(t,r,e,n){return U(ge(r,t.length-e),t,e,n)}u.prototype.write=function(r,e,n,i){if(e===void 0)i="utf8",n=this.length,e=0;else if(n===void 0&&typeof e=="string")i=e,n=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(n)?(n=n|0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((n===void 0||n>a)&&(n=a),r.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return Qr(this,r,e,n);case"utf8":case"utf-8":return jr(this,r,e,n);case"ascii":return nr(this,r,e,n);case"latin1":case"binary":return re(this,r,e,n);case"base64":return ee(this,r,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,r,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(t,r,e){return r===0&&e===t.length?q(t):q(t.slice(r,e))}function ir(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var a=t[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=e){var c,f,m,p;switch(s){case 1:a<128&&(o=a);break;case 2:c=t[i+1],(c&192)===128&&(p=(a&31)<<6|c&63,p>127&&(o=p));break;case 3:c=t[i+1],f=t[i+2],(c&192)===128&&(f&192)===128&&(p=(a&15)<<12|(c&63)<<6|f&63,p>2047&&(p<55296||p>57343)&&(o=p));break;case 4:c=t[i+1],f=t[i+2],m=t[i+3],(c&192)===128&&(f&192)===128&&(m&192)===128&&(p=(a&15)<<18|(c&63)<<12|(f&63)<<6|m&63,p>65535&&p<1114112&&(o=p))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return ie(n)}var Z=4096;function ie(t){var r=t.length;if(r<=Z)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=Z));return e}function ae(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]&127);return n}function oe(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function ue(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",a=r;a<e;++a)i+=fe(t[a]);return i}function se(t,r,e){for(var n=t.slice(r,e),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}u.prototype.slice=function(r,e){var n=this.length;r=~~r,e=e===void 0?n:~~e,r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<r&&(e=r);var i;if(u.TYPED_ARRAY_SUPPORT)i=this.subarray(r,e),i.__proto__=u.prototype;else{var a=e-r;i=new u(a,void 0);for(var o=0;o<a;++o)i[o]=this[o+r]}return i};function g(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")}u.prototype.readUIntLE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return i};u.prototype.readUIntBE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=this[r+--e],a=1;e>0&&(a*=256);)i+=this[r+--e]*a;return i};u.prototype.readUInt8=function(r,e){return e||g(r,1,this.length),this[r]};u.prototype.readUInt16LE=function(r,e){return e||g(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUInt16BE=function(r,e){return e||g(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUInt32LE=function(r,e){return e||g(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUInt32BE=function(r,e){return e||g(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=this[r],a=1,o=0;++o<e&&(a*=256);)i+=this[r+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};u.prototype.readIntBE=function(r,e,n){r=r|0,e=e|0,n||g(r,e,this.length);for(var i=e,a=1,o=this[r+--i];i>0&&(a*=256);)o+=this[r+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*e)),o};u.prototype.readInt8=function(r,e){return e||g(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,e){e||g(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};u.prototype.readInt16BE=function(r,e){e||g(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};u.prototype.readInt32LE=function(r,e){return e||g(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,e){return e||g(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,e){return e||g(r,4,this.length),L(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,e){return e||g(r,4,this.length),L(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,e){return e||g(r,8,this.length),L(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,e){return e||g(r,8,this.length),L(this,r,!1,52,8)};function b(t,r,e,n,i,a){if(!T(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}u.prototype.writeUIntLE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;b(this,r,e,n,a,0)}var o=1,s=0;for(this[e]=r&255;++s<n&&(o*=256);)this[e+s]=r/o&255;return e+n};u.prototype.writeUIntBE=function(r,e,n,i){if(r=+r,e=e|0,n=n|0,!i){var a=Math.pow(2,8*n)-1;b(this,r,e,n,a,0)}var o=n-1,s=1;for(this[e+o]=r&255;--o>=0&&(s*=256);)this[e+o]=r/s&255;return e+n};u.prototype.writeUInt8=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};function O(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,a=Math.min(t.length-e,2);i<a;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}u.prototype.writeUInt16LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):O(this,r,e,!0),e+2};u.prototype.writeUInt16BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):O(this,r,e,!1),e+2};function M(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,a=Math.min(t.length-e,4);i<a;++i)t[e+i]=r>>>(n?i:3-i)*8&255}u.prototype.writeUInt32LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):M(this,r,e,!0),e+4};u.prototype.writeUInt32BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):M(this,r,e,!1),e+4};u.prototype.writeIntLE=function(r,e,n,i){if(r=+r,e=e|0,!i){var a=Math.pow(2,8*n-1);b(this,r,e,n,a-1,-a)}var o=0,s=1,c=0;for(this[e]=r&255;++o<n&&(s*=256);)r<0&&c===0&&this[e+o-1]!==0&&(c=1),this[e+o]=(r/s>>0)-c&255;return e+n};u.prototype.writeIntBE=function(r,e,n,i){if(r=+r,e=e|0,!i){var a=Math.pow(2,8*n-1);b(this,r,e,n,a-1,-a)}var o=n-1,s=1,c=0;for(this[e+o]=r&255;--o>=0&&(s*=256);)r<0&&c===0&&this[e+o+1]!==0&&(c=1),this[e+o]=(r/s>>0)-c&255;return e+n};u.prototype.writeInt8=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};u.prototype.writeInt16LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):O(this,r,e,!0),e+2};u.prototype.writeInt16BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):O(this,r,e,!1),e+2};u.prototype.writeInt32LE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):M(this,r,e,!0),e+4};u.prototype.writeInt32BE=function(r,e,n){return r=+r,e=e|0,n||b(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),u.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):M(this,r,e,!1),e+4};function ar(t,r,e,n,i,a){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function or(t,r,e,n,i){return i||ar(t,r,e,4,34028234663852886e22,-34028234663852886e22),cr(t,r,e,n,23,4),e+4}u.prototype.writeFloatLE=function(r,e,n){return or(this,r,e,!0,n)};u.prototype.writeFloatBE=function(r,e,n){return or(this,r,e,!1,n)};function ur(t,r,e,n,i){return i||ar(t,r,e,8,17976931348623157e292,-17976931348623157e292),cr(t,r,e,n,52,8),e+8}u.prototype.writeDoubleLE=function(r,e,n){return ur(this,r,e,!0,n)};u.prototype.writeDoubleBE=function(r,e,n){return ur(this,r,e,!1,n)};u.prototype.copy=function(r,e,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),e>=r.length&&(e=r.length),e||(e=0),i>0&&i<n&&(i=n),i===n||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-e<i-n&&(i=r.length-e+n);var a=i-n,o;if(this===r&&n<e&&e<i)for(o=a-1;o>=0;--o)r[o+e]=this[o+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)r[o+e]=this[o+n];else Uint8Array.prototype.set.call(r,this.subarray(n,n+a),e);return a};u.prototype.fill=function(r,e,n,i){if(typeof r=="string"){if(typeof e=="string"?(i=e,e=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),r.length===1){var a=r.charCodeAt(0);a<256&&(r=a)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e=e>>>0,n=n===void 0?this.length:n>>>0,r||(r=0);var o;if(typeof r=="number")for(o=e;o<n;++o)this[o]=r;else{var s=T(r)?r:D(new u(r,i).toString()),c=s.length;for(o=0;o<n-e;++o)this[o+e]=s[o%c]}return this};var le=/[^+\/0-9A-Za-z-_]/g;function ce(t){if(t=pe(t).replace(le,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function pe(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function fe(t){return t<16?"0"+t.toString(16):t.toString(16)}function D(t,r){r=r||1/0;for(var e,n=t.length,i=null,a=[],o=0;o<n;++o){if(e=t.charCodeAt(o),e>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(r-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&a.push(239,191,189);if(i=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 me(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function ge(t,r){for(var e,n,i,a=[],o=0;o<t.length&&!((r-=2)<0);++o)e=t.charCodeAt(o),n=e>>8,i=e%256,a.push(i),a.push(n);return a}function sr(t){return Kr(ce(t))}function U(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function he(t){return t!==t}function be(t){return t!=null&&(!!t._isBuffer||lr(t)||de(t))}function lr(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function de(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&lr(t.slice(0,0))}function L(t,r,e,n,i){var a,o,s=i*8-n-1,c=(1<<s)-1,f=c>>1,m=-7,p=e?i-1:0,E=e?-1:1,d=t[r+p];for(p+=E,a=d&(1<<-m)-1,d>>=-m,m+=s;m>0;a=a*256+t[r+p],p+=E,m-=8);for(o=a&(1<<-m)-1,a>>=-m,m+=n;m>0;o=o*256+t[r+p],p+=E,m-=8);if(a===0)a=1-f;else{if(a===c)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-f}return(d?-1:1)*o*Math.pow(2,a-n)}function cr(t,r,e,n,i,a){var o,s,c,f=a*8-i-1,m=(1<<f)-1,p=m>>1,E=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,N=n?1:-1,hr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,o=m):(o=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+p>=1?r+=E/c:r+=E*Math.pow(2,1-p),r*c>=2&&(o++,c/=2),o+p>=m?(s=0,o=m):o+p>=1?(s=(r*c-1)*Math.pow(2,i),o=o+p):(s=r*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;t[e+d]=s&255,d+=N,s/=256,i-=8);for(o=o<<i|s,f+=i;f>0;t[e+d]=o&255,d+=N,o/=256,f-=8);t[e+d-N]|=hr*128}var xe=(l=>(l.ENABLED="company.enabled",l.APP_TITLE="company.appTitle",l.DOMAIN="company.domain",l.LOGO="appearance.logo",l.AMM="product.amm",l.OBDEX="product.obdex",l.THEMES="appearance.themes",l.DIRECT_SETTLE="company.directSettlement",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.GEOBLOCK="company.geoblock",l.EMBEDDED_APP_URL="company.embeddedAppUrl",l.PRODUCT_OBDEX="product.obdex",l.PRODUCT_AMM="product.amm",l.NEW_TAB="appearance.newTab",l.APPEARANCE_TARGET="appearance.target",l.CUSTOM_MENU_ITEMS="appearance.customMenuItems",l.REPORT_BUTTONS="appearance.reportButtons",l.APPEARANCE_CHART_TYPE="appearance.chartType",l.APPEARANCE_CHART_INT="appearance.chartInt",l.PINNED_PAIRS="markets.pinnedPairs",l.KYC_TRADE_REQUIREMENT_ENABLED="markets.kycTradeRequirementEnabled",l.FORCE_SETTING_FLAG="company.forceSetting",l.AFFILIATE_DASHBOARD_VISIBILITY="product.affiliateDashboardVisibility",l.AFFILIATE_DASHBOARD_THRESHOLD="product.affiliateDashboardThreshold",l.AFFILIATE_DEFAULT_FEE_SHARE="product.affiliateDefaultFeeShare",l.AFFILIATE_POINTS_REWARD="product.affiliatePointsReward",l.POINT_SYSTEM_MODE="product.pointSystem",l.POINT_SYSTEM_TELEGRAM_API_TOKEN="point-system.telegramApiToken",l.POINT_SYSTEM_TELEGRAM_ENABLED="point-system.telegramEnabled",l.POINT_SYSTEM_TELEGRAM_GROUP_ID="point-system.telegramGroupId",l.POINT_SYSTEM_TELEGRAM_BOT_NAME="point-system.telegramBotName",l.POINT_SYSTEM_TELEGRAM_BOT_ID="point-system.telegramBotId",l.POINT_SYSTEM_TELEGRAM_GROUP_NAME="point-system.telegramGroupName",l.POINT_SYSTEM_TELEGRAM_WEBHOOK_TOKEN="point-system.telegramWebhookToken",l.POINT_SYSTEM_DISCORD_CLIENT_ID="point-system.discordClientId",l.POINT_SYSTEM_DISCORD_CLIENT_SECRET="point-system.discordClientSecret",l.POINT_SYSTEM_DISCORD_SERVER_ID="point-system.discordServerId",l.POINT_SYSTEM_DISCORD_ENABLED="point-system.discordEnabled",l.POINT_SYSTEM_TWITTER_CLIENT_ID="point-system.twitterClientId",l.POINT_SYSTEM_TWITTER_CLIENT_SECRET="point-system.twitterClientSecret",l.POINT_SYSTEM_TWITTER_BEARER_TOKEN="point-system.twitterBearerToken",l.POINT_SYSTEM_TWITTER_REFRESH_TOKEN="point-system.twitterRefreshToken",l.POINT_SYSTEM_TWITTER_ENABLED="point-system.twitterEnabled",l.POINT_SYSTEM_TWITTER_JOB_ENABLED="point-system.twitterJobEnabled",l.POINT_SYSTEM_TWITTER_HASHTAGS="point-system.twitterHashtags",l.POINT_SYSTEM_TWITTER_TWEET_EXP_TIME="point-system.twitterPostDefaultExpirationTime",l.POINT_SYSTEM_TWITTER_ACCOUNT_NAME="point-system.twitterAccountName",l.POINT_SYSTEM_TWITTER_ACCOUNT_ID="point-system.twitterAccountId",l.POINT_SYSTEM_TWITTER_WEBHOOK_TOKEN="point-system.twitterWebhookToken",l.POINT_SYSTEM_GUIDE_LINK="point-system.guideLink",l))(xe||{}),Ee=(n=>(n.DISABLED="disabled",n.ENABLED_FOR_ALL="enabled for all",n.ENABLED_FOR_AFFILIATES="enabled for affiliates",n))(Ee||{}),_e=(o=>(o.API_TOKEN="apiToken",o.CLIENT_ID="clientId",o.CLIENT_SECRET="clientSecret",o.BEARER_TOKEN="bearerToken",o.REFRESH_TOKEN="refreshToken",o.ACCESS_TOKEN="accessToken",o))(_e||{}),Ve={"point-system.telegramApiToken":"apiToken","point-system.discordClientId":"clientId","point-system.discordClientSecret":"clientSecret","point-system.twitterClientSecret":"clientSecret","point-system.twitterClientId":"clientId","point-system.twitterBearerToken":"bearerToken","point-system.twitterRefreshToken":"refreshToken"},He=["primary-1","primary-2","main-background","primary-text","module-background","buy-text","buy-background","sell-text","sell-background","secondary-text","input-background-default","input-background-hover","input-background-disabled","input-border-default","module-border","button-disabled","button-border","input-border-active","active-element-default","hover-element-default","dropdown-shadow","button-text","pair-active-row"],Ke=`{"theme1":{"value":"${h.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${h.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${h.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`,Ge='{"theme1":{"name":"dark","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}},"theme2":{"name":"light","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}},"theme3":{"name":"purple","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}}',Te=(n=>(n.theme1='{"name":"dark","id":"theme1","active":true, "chartColors":{"bullish_candle_color": "rgba(2, 199, 122, 0.25)","bearish_candle_color": "rgba(221, 94, 86, 1)","bullish_wick_color": "rgba(2, 199, 122, 0.25)","bearish_wick_color": "rgba(221, 94, 86, 1)","bullish_outline_color": "rgba(2, 199, 122, 0.25)","bearish_outline_color": "rgba(221, 94, 86, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(19, 23, 34, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}}',n.theme2='{"name":"light","id":"theme2","active":true, "chartColors":{"bullish_candle_color": "rgba(0, 112, 98, 1)","bearish_candle_color": "rgba(195, 12, 1, 1)","bullish_wick_color": "rgba(0, 112, 98, 1)","bearish_wick_color": "rgba(195, 12, 1, 1)","bullish_outline_color": "rgba(0, 112, 98, 1)","bearish_outline_color": "rgba(195, 12, 1, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(255, 255, 255, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}',n.theme3='{"name":"purple","id":"theme3","active":true, "chartColors":{"bullish_candle_color": "rgba(0, 112, 98, 1)","bearish_candle_color": "rgba(195, 12, 1, 1)","bullish_wick_color": "rgba(0, 112, 98, 1)","bearish_wick_color": "rgba(195, 12, 1, 1)","bullish_outline_color": "rgba(0, 112, 98, 1)","bearish_outline_color": "rgba(195, 12, 1, 1)","line_color": "rgba(41, 98, 255, 1)","chart_background": "rgba(254, 250, 255, 1)","chart_text": "rgba(127, 127, 127, 1)"}, "colors":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}',n))(Te||{});var ye=(a=>(a.STABLE="stable",a.CPMM="constant_product",a.LEND="lending",a.NANO="nano",a.MVNANO="mvnano",a))(ye||{}),we=(a=>(a[a.ultrade=0]="ultrade",a[a.tinyman=1]="tinyman",a[a.pactfi=2]="pactfi",a[a.humble=3]="humble",a[a.algofi=4]="algofi",a))(we||{}),Ae=(a=>(a.ultrade="U",a.tinyman="T",a.pactfi="P",a.humble="H",a.algofi="A",a))(Ae||{}),Re=(a=>(a[a.ultrade=1]="ultrade",a[a.tinyman=2]="tinyman",a[a.pactfi=1]="pactfi",a[a.humble=1]="humble",a[a.algofi=2]="algofi",a))(Re||{}),pr={V1_1:"v1_1",V2:"v2"},qe={[pr.V1_1]:{testnet:62368684,mainnet:552635992},[pr.V2]:{testnet:148607e3,mainnet:1002541853}},Ie=(e=>(e.ASSETS="assets.json",e.TOP_ASSETS="topAssets.json",e))(Ie||{});var ve=(i=>(i.last_7_days="last_7_days",i.last_30_days="last_30_days",i.last_90_days="last_90_days",i.last_year="last_year",i))(ve||{}),fr=class{constructor(){this.timeRange="last_30_days";this.sortBy="volume_usd";this.order="desc";this.limit=20;this.page=1}},mr=class{constructor(){this.timeRange="last_30_days";this.sortBy="volume_usd";this.order="desc";this.limit=20;this.page=1}},ke=(i=>(i.volume="volume",i.fees="fees",i.orders="orders",i.dau="dau",i))(ke||{}),gr=class{constructor(){this.type="volume";this.timeRange="last_7_days"}};var Ne=(a=>(a.PREPARING="provisioning",a.STOPPING="stopping",a.RUNNING="running",a.STOPPED="stopped",a.FAILED="failed",a))(Ne||{});export{Ee as AffDashboardVisibilitySettingEnum,Ie as AmmBucketKeys,Ae as AmmChars,Re as AmmForeignResources,we as AmmIds,pr as CONTRACT_VERSION,gr as ChartQueryDto,_e as CredentialNameEnum,Ne as HummingbotInstanceStatus,fr as PairsQueryDto,ye as PoolType,xe as SettingIds,ve as SmallTimeframeEnum,ke as StatisticTypeQuery,mr as UsersQueryDto,qe as VALIDATOR_APP_ID,Ke as defaultLogoSettingValue,Ge as defaultThemeSettingValue,Te as defaultThemesValue,He as requiredColors,Ve as settingIdToSecretType};
2
2
  /*! Bundled license information:
3
3
 
4
4
  @esbuild-plugins/node-globals-polyfill/Buffer.js:
@@ -2,3 +2,4 @@ import { SettingIds } from '../types/settings.type';
2
2
  export declare const PointSystemSettingsIds: SettingIds[];
3
3
  export declare const BOOLEAN_SETTINGS: string[];
4
4
  export declare const JSON_ARRAY_SETTINGS: string[];
5
+ export declare const MIN_CUSTOM_FEE_INCREMENT = 0.001;
@@ -6,8 +6,11 @@ export declare enum OperationStatusEnum {
6
6
  }
7
7
  export declare enum ActionTypeEnum {
8
8
  Deposit = "deposit",
9
+ FastDeposit = "fast_deposit",
9
10
  Withdraw = "withdraw",
10
- Rebalance = "rebalance"
11
+ Rebalance = "rebalance",
12
+ Upgrade = "upgrade",
13
+ SetCCTP = "set_cctp"
11
14
  }
12
15
  export declare enum CCTPStatus {
13
16
  PENDING = "pending",
@@ -1,13 +1,2 @@
1
- import { AddressChain, PairToken } from "../interfaces/index.ts";
2
- import { ICancelingOrder, IPairInfo } from "../interfaces/index.ts";
3
- import { IBalanceInfo } from "../interfaces/index.ts";
4
- export declare const mapToBalanceInfo: (pairInfo: IPairInfo, { userId, chainId, price, side, type, amount, total, id }: Partial<ICancelingOrder>) => IBalanceInfo;
5
- export declare const mapToCodexBalance: (account: AddressChain, token: PairToken, amount: string, lockedAmount?: string) => {
6
- hash: string;
7
- loginAddress: string;
8
- loginChainId: number;
9
- tokenId: string;
10
- tokenChainId: number;
11
- amount: string;
12
- lockedAmount: string;
13
- };
1
+ import { AddressChain, ICodexBalance, PairToken } from "../interfaces/index.ts";
2
+ export declare const mapToCodexBalance: (account: AddressChain, token: PairToken, amount: string, lockedAmount?: string) => ICodexBalance;
@@ -104,3 +104,4 @@ export declare const makeSetCompanyFeeTxn: (algoClient: algosdk.Algodv2, { fee,
104
104
  export declare const makeUpdateTokenInfoTxns: (appId: number, superId: number, sender: string, params: algosdk.SuggestedParams, balances: Record<string, number>, token: PairTokenInfo) => algosdk.Transaction[];
105
105
  export declare const makeUpdatePairInfoTxn: (appId: number, superId: number, sender: string, params: algosdk.SuggestedParams, baseToken: PairToken, priceToken: PairToken, minSize: string, minPriceIncrement: string, minSizeIncrement: string) => algosdk.Transaction;
106
106
  export declare const getUpgradeImpMsg: (chainId: number, implementationAddress: string) => Uint8Array<ArrayBufferLike>;
107
+ export declare const getSetCCTPContractsMsg: (chainId: number, tokenMessengerAddress: string, messageTransmitterAddress: string) => Uint8Array<ArrayBufferLike>;
@@ -8,6 +8,8 @@ interface ICodexBalanceLog {
8
8
  export interface ICodexDepositLog extends ICodexBalanceLog {
9
9
  sender: string;
10
10
  senderChainID: string;
11
+ fee?: string;
12
+ txnId?: string;
11
13
  }
12
14
  export interface ICodexWithdrawal extends ICodexBalanceLog {
13
15
  destAddr: string;
@@ -41,7 +43,7 @@ export interface StreamerVaa {
41
43
  tokenAddr: string;
42
44
  tokenChainID: string;
43
45
  sequence: string;
44
- vaaType: 'withdraw' | 'deposit';
46
+ vaaType: 'withdraw' | 'deposit' | 'fast_deposit';
45
47
  txnId: string;
46
48
  fee: string;
47
49
  msgHash?: string;
@@ -1 +1 @@
1
- var B=Object.create;var m=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty;var W=(e,t)=>{for(var r in t)m(e,r,{get:t[r],enumerable:!0})},x=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of M(t))!V.call(e,p)&&p!==r&&m(e,p,{get:()=>t[p],enumerable:!(o=v(t,p))||o.enumerable});return e};var K=(e,t,r)=>(r=e!=null?B(H(e)):{},x(t||!e||!e.__esModule?m(r,"default",{value:e,enumerable:!0}):r,e)),Y=e=>x(m({},"__esModule",{value:!0}),e);var be={};W(be,{Operations:()=>F,absolute:()=>Q,assert:()=>J,bn_operation:()=>s,ceil:()=>$,changes24H:()=>ce,convertFromBaseUnits:()=>se,convertToBaseUnits:()=>ae,cutEvent:()=>de,divide:()=>b,equal:()=>I,equalIgnoreCase:()=>N,floor:()=>ee,getDomains:()=>Ee,getGlobalPointSystemId:()=>j,getRandomInt:()=>le,greaterThan:()=>E,greaterThanOrEqual:()=>oe,isMaker:()=>G,lessThan:()=>ne,lessThanOrEqual:()=>pe,listDateFormat:()=>me,mapToCodexAssetDto:()=>X,mapToCodexBalanceDto:()=>q,mapToOrderTradeDto:()=>he,mapToUserTradeDto:()=>ue,maskingString:()=>A,minus:()=>h,mod:()=>w,modZero:()=>ie,multiply:()=>l,plus:()=>u,removeField:()=>T,round:()=>te,roundNumber:()=>_,toFixed:()=>Z,toUsd:()=>re});module.exports=Y(be);function X(e,t){return{id:e.id,address:e.address,chainId:e.chainId,name:e.name,unitName:e.unitName,decimals:e.decimals,isGas:e.isGas,img:e.img,cmcLink:e.cmcLink,isArchived:t?t(e):!1}}function q(e){return{hash:e.hash,loginAddress:e.loginAddress,loginChainId:e.loginChainId,tokenId:e.token?.id,tokenAddress:e.tokenId,tokenChainId:e.tokenChainId,amount:e.amount,lockedAmount:e.lockedAmount}}var L=(r=>(r[r.Buy=0]="Buy",r[r.Sell=1]="Sell",r))(L||{}),a=L;var D=(p=>(p.GLOBAL_PAIR_DELISTING="GLOBAL_PAIR_DELISTING",p.GLOBAL_NEW_PAIR_LISTING="GLOBAL_NEW_PAIR_LISTING",p.GLOBAL_SYSTEM_MAINTENANCE="GLOBAL_SYSTEM_MAINTENANCE",p.GLOBAL_SMART_CONTRACT_UPDATE="GLOBAL_SMART_CONTRACT_UPDATE",p))(D||{}),R=(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))(R||{}),ve={...D,...R};function g(e){switch(e){case a.Buy:return"B";case a.Sell:return"S";default:throw new Error("Unknown order side type: "+e)}}var J=(e,t)=>{if(!e)throw new Error(`Assertion error: ${t}`)};var j=()=>1;var n=K(require("bignumber.js"));n.default.config({DECIMAL_PLACES:40,EXPONENTIAL_AT:45});var F=(i=>(i.MINUS="-",i.PLUS="+",i.MULTIPLY="*",i.DIVIDE="/",i.GREATER_THAN_OR_EQUAL=">=",i.GREATER_THAN=">",i.LESS_THAN_OR_EQUAL="<=",i.LESS_THAN="<",i.EQUAL="==",i.MOD="mod",i))(F||{});function Q(e){return new n.default(e).abs().toString()}function $(e){let r=new n.default(String(e)).integerValue(n.default.ROUND_CEIL).toString();return I(e,r)||console.log("Ceil value",{value:e,res:r}),r}function Z(e,t,r=!1){let o=new n.default(String(e)),p;if(r){let c=o.toFixed(),O=c.indexOf(".");if(O>=0){let k=c.slice(O+1),C=0;for(let i of k)if(i==="0")C++;else break;let S=C+1;p=o.toFixed(S,n.default.ROUND_UP)}else p=o.toFixed(0)}else p=o.toFixed(t);return console.log("Fixed value",{value:e,res:p}),p}function ee(e){let r=new n.default(String(e)).integerValue(n.default.ROUND_FLOOR).toString();return console.log("Floor value",{value:e,res:r}),r}function te(e){let r=new n.default(String(e)).integerValue(n.default.ROUND_HALF_UP).toString();return console.log("Round value",{value:e,res:r}),r}function u(e,t){return s(e,t,"+")}function h(e,t){return s(e,t,"-")}function l(e,t){return s(e,t,"*")}function re(e,t){return l(e,t||0)}function b(e,t){return s(e,t,"/")}function oe(e,t){return!!s(e,t,">=")}function E(e,t){return!!s(e,t,">")}function pe(e,t){return!!s(e,t,"<=")}function ne(e,t){return!!s(e,t,"<")}function I(e,t){return!!s(e,t,"==")}function w(e,t){return s(e,t,"mod")}function ie(e,t){return I(w(e,t),0)}function s(e,t,r){switch(e=new n.default(String(e)),t=new n.default(String(t)),r.toLowerCase()){case"-":return e.minus(t).toString();case"+":return e.plus(t).toString();case"*":case"x":return e.multipliedBy(t).toString();case"\xF7":case"/":return e.dividedBy(t).toString();case">=":return e.isGreaterThanOrEqualTo(t);case">":return e.isGreaterThan(t);case"<=":return e.isLessThanOrEqualTo(t);case"<":return e.isLessThan(t);case"==":return e.isEqualTo(t);case"mod":return e.modulo(t);default:break}}function f(e){if(e.toString().includes("e")){let t=e.toString().split("e");return[parseFloat(t[0]),parseFloat(t[1])]}return[e,0]}function P(e,t){return e+(t<0?`e${t}`:`e+${t}`)}function _({decimalPlaces:e=0},t){if(e>0){let[r,o]=f(t),[p,c]=f(Math.round(Number(P(r,o+e))));return Number(P(p,c-e))}return Math.round(t)}function se(e,t){let r=Number(e);return _({decimalPlaces:r},Math.pow(10,-r)*Number(t))}function ae(e,t){let r=Math.pow(10,Number(e))*Number(t);return _({decimalPlaces:0},r)}var ce=(e,t)=>E(t,0)&&E(e,0)?l(b(h(e,t),t),100):"0";var me=e=>{let t=new Date(e),r=t.toLocaleDateString("default",{year:"numeric",month:"numeric",day:"numeric"}),o=t.toLocaleTimeString("en-US",{hour12:!0,hour:"2-digit",minute:"2-digit"});return r+" "+o},N=(e,t)=>String(e).toLowerCase()===String(t).toLowerCase();function le(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e}function Ee(e){let t=[],r=e.split(".");for(let o=0;o<r.length-1;o++)t.push(r.slice(o).join("."));return t}function de(e){let t=e.headers&&d({Authorization:e.headers.Authorization?.substring(0,200),"CloudFront-Viewer-Country":e.headers["CloudFront-Viewer-Country"],Host:e.headers.Host,origin:e.headers.origin,Referer:e.headers.Referer,"User-Agent":e.headers["User-Agent"],"wl-domain":e.headers["wl-domain"],"X-API-Key":A(e.headers["X-API-Key"]),"X-Forwarded-For":e.headers["X-Forwarded-For"],"X-Forwarded-Port":e.headers["X-Forwarded-Port"],"X-Forwarded-Proto":e.headers["X-Forwarded-Proto"],"X-Trading-Key":e.headers["X-Trading-Key"],"X-Wallet-Address":e.headers["X-Wallet-Address"],"X-Wallet-Token":e.headers["X-Wallet-Token"],accessToken:A(e.headers.accessToken),companyId:e.headers.companyId,seasonId:e.headers.seasonId}),r=e.requestContext&&d({identity:e.requestContext.identity&&d({userAgent:e.requestContext.identity.userAgent,sourceIp:e.requestContext.identity.sourceIp}),domainName:e.requestContext.domainName});return d({manage:e.manage,path:e.path,httpMethod:e.httpMethod,headers:t,requestContext:r})}function A(e){if(!e?.length)return e;let t=Math.round(e.length/3),r=t,o=e.length-t;return e.substring(0,r)+"*".repeat(t)+e.substring(o)}function T(e,t){return Array.isArray(e)?e.map(r=>T(r,t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).filter(([r])=>r!==t).map(([r,o])=>[r,T(o,t)])):e}function d(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}function ue(e,t,r){let o=e.buyOrder&&e.sellOrder?e.buyOrderId>e.sellOrderId?e.buyOrder:e.sellOrder:e.buyOrder||e.sellOrder;return{pairId:e.pairId,orderId:o?.id,orderSide:o&&g(o.side),...y(t,r),...U(e,o)}}function he(e,t,r,o,p){return{id:e.id,pairId:e.pairId,pair:r||e.pair?.pairKey,...y(o,p),amount:e.amount,price:e.price,total:e.total,filledAmount:e.filledAmount,filledTotal:e.filledTotal,avgPrice:e.excutedPrice,status:e.status,side:e.side,type:e.type,userId:e.userId,createdAt:e.createdAt?.getTime(),completedAt:e.completedAt?.getTime()||null,updatedAt:e.updatedAt?.getTime(),trades:t&&t.map(c=>U(c,e))}}function y(e,t){return{baseTokenId:e?.id,baseTokenDecimal:e?.decimals,quoteTokenId:t?.id,quoteTokenDecimal:t?.decimals}}function U(e,t){return{tradeId:e.tradeId,status:e.txStatus,amount:e.amount,total:e.total,price:e.price,fee:t&&e.tradeFees.filter(r=>N(r.address,t.userId)).reduce((r,o)=>u(r,o.fee),"0"),createdAt:e.createdAt?.getTime(),updatedAt:e.updatedAt?.getTime(),isBuyer:t&&t.side===a.Buy,isMaker:t&&G(t.side,e.tradeSide)}}function G(e,t){return e===a.Buy&&t===a.Sell||e===a.Sell&&t===a.Buy}0&&(module.exports={Operations,absolute,assert,bn_operation,ceil,changes24H,convertFromBaseUnits,convertToBaseUnits,cutEvent,divide,equal,equalIgnoreCase,floor,getDomains,getGlobalPointSystemId,getRandomInt,greaterThan,greaterThanOrEqual,isMaker,lessThan,lessThanOrEqual,listDateFormat,mapToCodexAssetDto,mapToCodexBalanceDto,mapToOrderTradeDto,mapToUserTradeDto,maskingString,minus,mod,modZero,multiply,plus,removeField,round,roundNumber,toFixed,toUsd});
1
+ var B=Object.create;var m=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty;var W=(e,t)=>{for(var r in t)m(e,r,{get:t[r],enumerable:!0})},x=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of M(t))!V.call(e,p)&&p!==r&&m(e,p,{get:()=>t[p],enumerable:!(o=v(t,p))||o.enumerable});return e};var K=(e,t,r)=>(r=e!=null?B(H(e)):{},x(t||!e||!e.__esModule?m(r,"default",{value:e,enumerable:!0}):r,e)),Y=e=>x(m({},"__esModule",{value:!0}),e);var be={};W(be,{Operations:()=>F,absolute:()=>Q,assert:()=>J,bn_operation:()=>s,ceil:()=>$,changes24H:()=>ce,convertFromBaseUnits:()=>se,convertToBaseUnits:()=>ae,cutEvent:()=>Ee,divide:()=>b,equal:()=>I,equalIgnoreCase:()=>N,floor:()=>ee,getDomains:()=>de,getGlobalPointSystemId:()=>j,getRandomInt:()=>le,greaterThan:()=>d,greaterThanOrEqual:()=>oe,isMaker:()=>G,lessThan:()=>ne,lessThanOrEqual:()=>pe,listDateFormat:()=>me,mapToCodexAssetDto:()=>X,mapToCodexBalanceDto:()=>q,mapToOrderTradeDto:()=>ue,mapToUserTradeDto:()=>he,maskingString:()=>A,minus:()=>u,mod:()=>w,modZero:()=>ie,multiply:()=>l,plus:()=>h,removeField:()=>T,round:()=>te,roundNumber:()=>_,toFixed:()=>Z,toUsd:()=>re});module.exports=Y(be);function X(e,t){return{id:e.id,address:e.address,chainId:e.chainId,name:e.name,unitName:e.unitName,decimals:e.decimals,isGas:e.isGas,img:e.img,cmcLink:e.cmcLink,isArchived:t?t(e):!1}}function q(e){return{hash:e.hash,loginAddress:e.loginAddress,loginChainId:e.loginChainId,tokenId:e.token?.id,tokenAddress:e.tokenId,tokenChainId:e.tokenChainId,amount:e.amount,lockedAmount:e.lockedAmount}}var D=(r=>(r[r.Buy=0]="Buy",r[r.Sell=1]="Sell",r))(D||{}),a=D;var L=(p=>(p.GLOBAL_PAIR_DELISTING="GLOBAL_PAIR_DELISTING",p.GLOBAL_NEW_PAIR_LISTING="GLOBAL_NEW_PAIR_LISTING",p.GLOBAL_SYSTEM_MAINTENANCE="GLOBAL_SYSTEM_MAINTENANCE",p.GLOBAL_SMART_CONTRACT_UPDATE="GLOBAL_SMART_CONTRACT_UPDATE",p))(L||{}),R=(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))(R||{}),ve={...L,...R};function g(e){switch(e){case a.Buy:return"B";case a.Sell:return"S";default:throw new Error("Unknown order side type: "+e)}}var J=(e,t)=>{if(!e)throw new Error(`Assertion error: ${t}`)};var j=()=>1;var n=K(require("bignumber.js"));n.default.config({DECIMAL_PLACES:40,EXPONENTIAL_AT:45});var F=(i=>(i.MINUS="-",i.PLUS="+",i.MULTIPLY="*",i.DIVIDE="/",i.GREATER_THAN_OR_EQUAL=">=",i.GREATER_THAN=">",i.LESS_THAN_OR_EQUAL="<=",i.LESS_THAN="<",i.EQUAL="==",i.MOD="mod",i))(F||{});function Q(e){return new n.default(e).abs().toString()}function $(e){let r=new n.default(String(e)).integerValue(n.default.ROUND_CEIL).toString();return I(e,r)||console.log("Ceil value",{value:e,res:r}),r}function Z(e,t,r=!1){let o=new n.default(String(e)),p;if(r){let c=o.toFixed(),O=c.indexOf(".");if(O>=0){let k=c.slice(O+1),C=0;for(let i of k)if(i==="0")C++;else break;let S=C+1;p=o.toFixed(S,n.default.ROUND_UP)}else p=o.toFixed(0)}else p=o.toFixed(t);return console.log("Fixed value",{value:e,res:p}),p}function ee(e){let r=new n.default(String(e)).integerValue(n.default.ROUND_FLOOR).toString();return console.log("Floor value",{value:e,res:r}),r}function te(e){let r=new n.default(String(e)).integerValue(n.default.ROUND_HALF_UP).toString();return console.log("Round value",{value:e,res:r}),r}function h(e,t){return s(e,t,"+")}function u(e,t){return s(e,t,"-")}function l(e,t){return s(e,t,"*")}function re(e,t){return l(e,t||0)}function b(e,t){return s(e,t,"/")}function oe(e,t){return!!s(e,t,">=")}function d(e,t){return!!s(e,t,">")}function pe(e,t){return!!s(e,t,"<=")}function ne(e,t){return!!s(e,t,"<")}function I(e,t){return!!s(e,t,"==")}function w(e,t){return s(e,t,"mod")}function ie(e,t){return I(w(e,t),0)}function s(e,t,r){switch(e=new n.default(String(e)),t=new n.default(String(t)),r.toLowerCase()){case"-":return e.minus(t).toString();case"+":return e.plus(t).toString();case"*":case"x":return e.multipliedBy(t).toString();case"\xF7":case"/":return e.dividedBy(t).toString();case">=":return e.isGreaterThanOrEqualTo(t);case">":return e.isGreaterThan(t);case"<=":return e.isLessThanOrEqualTo(t);case"<":return e.isLessThan(t);case"==":return e.isEqualTo(t);case"mod":return e.modulo(t);default:break}}function f(e){if(e.toString().includes("e")){let t=e.toString().split("e");return[parseFloat(t[0]),parseFloat(t[1])]}return[e,0]}function P(e,t){return e+(t<0?`e${t}`:`e+${t}`)}function _({decimalPlaces:e=0},t){if(e>0){let[r,o]=f(t),[p,c]=f(Math.round(Number(P(r,o+e))));return Number(P(p,c-e))}return Math.round(t)}function se(e,t){let r=Number(e);return _({decimalPlaces:r},Math.pow(10,-r)*Number(t))}function ae(e,t){let r=Math.pow(10,Number(e))*Number(t);return _({decimalPlaces:0},r)}var ce=(e,t)=>d(t,0)&&d(e,0)?l(b(u(e,t),t),100):"0";var me=e=>{let t=new Date(e),r=t.toLocaleDateString("default",{year:"numeric",month:"numeric",day:"numeric"}),o=t.toLocaleTimeString("en-US",{hour12:!0,hour:"2-digit",minute:"2-digit"});return r+" "+o},N=(e,t)=>String(e).toLowerCase()===String(t).toLowerCase();function le(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e}function de(e){let t=[],r=e.split(".");for(let o=0;o<r.length-1;o++)t.push(r.slice(o).join("."));return t}function Ee(e){let t=e.headers&&E({Authorization:e.headers.Authorization?.substring(0,200),"CloudFront-Viewer-Country":e.headers["CloudFront-Viewer-Country"],Host:e.headers.Host,origin:e.headers.origin,Referer:e.headers.Referer,"User-Agent":e.headers["User-Agent"],"wl-domain":e.headers["wl-domain"],"X-API-Key":A(e.headers["X-API-Key"]),"X-Forwarded-For":e.headers["X-Forwarded-For"],"X-Forwarded-Port":e.headers["X-Forwarded-Port"],"X-Forwarded-Proto":e.headers["X-Forwarded-Proto"],"X-Trading-Key":e.headers["X-Trading-Key"],"X-Wallet-Address":e.headers["X-Wallet-Address"],"X-Wallet-Token":e.headers["X-Wallet-Token"],accessToken:A(e.headers.accessToken),companyId:e.headers.companyId,seasonId:e.headers.seasonId}),r=e.requestContext&&E({identity:e.requestContext.identity&&E({userAgent:e.requestContext.identity.userAgent,sourceIp:e.requestContext.identity.sourceIp}),domainName:e.requestContext.domainName});return E({manage:e.manage,path:e.path,httpMethod:e.httpMethod,headers:t,requestContext:r})}function A(e){if(!e?.length)return e;let t=Math.round(e.length/3),r=t,o=e.length-t;return e.substring(0,r)+"*".repeat(t)+e.substring(o)}function T(e,t){return Array.isArray(e)?e.map(r=>T(r,t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).filter(([r])=>r!==t).map(([r,o])=>[r,T(o,t)])):e}function E(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}function he(e,t,r){let o=e.buyOrder&&e.sellOrder?e.buyOrderId>e.sellOrderId?e.buyOrder:e.sellOrder:e.buyOrder||e.sellOrder;return{pairId:e.pairId,orderId:o?.id,orderSide:o&&g(o.side),...y(t,r),...U(e,o)}}function ue(e,t,r,o,p){return{id:e.id,pairId:e.pairId,pair:r||e.pair?.pairKey,...y(o,p),amount:e.amount,price:e.price,total:e.total,filledAmount:e.filledAmount,filledTotal:e.filledTotal,avgPrice:e.excutedPrice,status:e.status,side:e.side,type:e.type,userId:e.userId,createdAt:e.createdAt?.getTime(),completedAt:e.completedAt?.getTime()||null,updatedAt:e.updatedAt?.getTime(),trades:t&&t.map(c=>U(c,e))}}function y(e,t){return{baseTokenId:e?.id,baseTokenDecimal:e?.decimals,quoteTokenId:t?.id,quoteTokenDecimal:t?.decimals}}function U(e,t){return{tradeId:e.tradeId,status:e.txStatus,amount:e.amount,total:e.total,price:e.price,fee:t&&e.tradeFees.filter(r=>N(r.address,t.userId)).reduce((r,o)=>h(r,o.fee),"0"),createdAt:e.createdAt?.getTime(),updatedAt:e.updatedAt?.getTime(),isBuyer:t&&t.side===a.Buy,isMaker:t&&G(t.side,e.tradeSide)}}function G(e,t){return e===a.Buy&&t===a.Sell||e===a.Sell&&t===a.Buy}0&&(module.exports={Operations,absolute,assert,bn_operation,ceil,changes24H,convertFromBaseUnits,convertToBaseUnits,cutEvent,divide,equal,equalIgnoreCase,floor,getDomains,getGlobalPointSystemId,getRandomInt,greaterThan,greaterThanOrEqual,isMaker,lessThan,lessThanOrEqual,listDateFormat,mapToCodexAssetDto,mapToCodexBalanceDto,mapToOrderTradeDto,mapToUserTradeDto,maskingString,minus,mod,modZero,multiply,plus,removeField,round,roundNumber,toFixed,toUsd});
@@ -1 +1 @@
1
- var p=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var l=(r,t)=>{for(var a in t)p(r,a,{get:t[a],enumerable:!0})},A=(r,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of T(t))!b.call(r,e)&&e!==a&&p(r,e,{get:()=>t[e],enumerable:!(o=i(t,e))||o.enumerable});return r};var m=r=>A(p({},"__esModule",{value:!0}),r);var pe={};l(pe,{AGG_APP_ID:()=>q,ALGOD_TOKEN:()=>v,ALGO_EXPLORER_ASSETS_URL:()=>M,ALGO_EXPLORER_LINK:()=>k,ALGO_NETWORK:()=>_,ALGO_SERVER:()=>P,ALGO_SERVER_PORT:()=>S,API_HOST:()=>g,APP_CLOSEOUT_FEE:()=>H,BIGNUMBER:()=>I,BOOLEAN_SETTINGS:()=>C,CALCULATIONS:()=>O,CCTP_UNIFIED_ASSETS:()=>R,CODEX_APP_ID:()=>z,DAY_MILLISECONDS:()=>_e,DEFAULT_AGG_FEE:()=>j,DEFAULT_FEE_SHARE:()=>be,DEFAULT_ORDER_EXPIRATION_DAYS:()=>le,DISPENSER_LINK:()=>y,EXCHANGE_NAME:()=>W,EXPIRE_DAYS:()=>ne,EXT_ORDER_TYPES:()=>G,FACTOR_PRICE_DECIMAL:()=>ce,FEE_SCALE:()=>ie,FRONTEND_FEE_SCALE:()=>Te,FRONTEND_LINK:()=>E,GASLIMIT:()=>ee,GLOWL_DECIMAL:()=>U,IS_DEV:()=>$,JSON_ARRAY_SETTINGS:()=>D,MARKET_TRADES_SIZE:()=>B,MASTER_APP_ID:()=>X,MAX_TOKEN_DECIMAL:()=>de,MIN_ORDER_EXPIRATION_MINS:()=>Ae,NETWORK:()=>n,ORDER_BOOK_BUFFER:()=>Y,ORDER_BOOK_SIZE:()=>w,ORDER_DATA_BYTES_LENGTH:()=>me,ORDER_MSG_VERSION:()=>Re,PLATFORM_FEE:()=>J,POINTS_MAX_VALUE:()=>ae,PeraChainId:()=>te,PointSystemSettingsIds:()=>h,REACT_APP_REQUIRE_ACCESS_CODE:()=>f,RESPONSES:()=>d,RES_MSG:()=>N,SERVER:()=>u,SHARE_DATA_LENGTH:()=>Ne,SOCKET_URL:()=>x,THEMES:()=>V,ULTRADE_ID:()=>Q,USERBACK_ACCESS_TOKEN:()=>F,WITHDRAW_DATA_BYTES_LENGTH:()=>Ie,WITHDRAW_FEE:()=>K,ZERO_TIMER:()=>Z,messageForSigning:()=>L,sanitizeRegex:()=>re,twitterActionToPermissionMap:()=>oe});module.exports=m(pe);var _e=864e5,ne=30;var ce=18,ie=1e5,Te=1e3,be=9e4,le=30,Ae=60,me=328,Re=1,de=18,Ne=36,Ie=248;var R={"0x4343545055534443000000000000000000000000000000000000000000000000":65537};var d={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},N={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"},I={SMALLESTUNIT:process.env.SMALLEST_UNIT},O={SMALLEST_UNITS:process.env.SMALLEST_UNIT},u={AVAILABLE_ASSETS_PER_USER:1,AVAILABLE_ASSETS_PER_IP:3};var Ce=`{"theme1":{"value":"${process.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;var h=["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"],C=["obdex","kycTradeRequirementEnabled","newTab","reportButtons"],D=["geoblock","pinnedPairs","customMenuItems","chartInt"];var L=r=>`By signing this message, you confirm that the wallet is a trusted one ${r}; Data: `;var g=process.env.REACT_APP_API_URL,x=process.env.REACT_APP_SOCKET_URL,P=process.env.REACT_APP_ALGO_SERVER,S=process.env.REACT_APP_ALGO_SERVER_PORT||"",v=process.env.REACT_APP_ALGOD_TOKEN||"",y=process.env.REACT_APP_DISPENSER_LINK,E=process.env.REACT_APP_FRONTEND_LINK||"",k=process.env.REACT_APP_ALGO_EXPLORER_LINK,M=process.env.REACT_APP_ALGO_EXPLORER_ASSETS_URL,f=(process.env.REACT_APP_REQUIRE_ACCESS_CODE||"").toLowerCase()==="true",F=process.env.REACT_APP_USERBACK_ACCESS_TOKEN,G=(process.env.REACT_APP_EXT_ORDER_TYPES||"").toLowerCase()==="true",U=4,w=100,Y=50,B=50,K=.001*10**6,H=.002*10**6,W="Ultrade",V=["theme1","theme2","theme3"],X=process.env.REACT_APP_MASTER_APP_ID||"406",q=process.env.REACT_APP_AGG_APP_ID||"408",z=Number(process.env.REACT_APP_CODEX_APP_ID||"467960617"),J=3e3,_=process.env.REACT_APP_ALGO_NETWORK||"",j=.3,Q=1,$=E==="https://dev.ultradedev.net",Z="00:00",ee=1e6,n=_.toLowerCase()==="mainnet"?"mainnet":"testnet",re=/[^\p{L}\p{N} .,!?:@$%()_-]/gui,te=n==="mainnet"?416001:416002;var s=(e=>(e.GLOBAL_PAIR_DELISTING="GLOBAL_PAIR_DELISTING",e.GLOBAL_NEW_PAIR_LISTING="GLOBAL_NEW_PAIR_LISTING",e.GLOBAL_SYSTEM_MAINTENANCE="GLOBAL_SYSTEM_MAINTENANCE",e.GLOBAL_SMART_CONTRACT_UPDATE="GLOBAL_SMART_CONTRACT_UPDATE",e))(s||{}),c=(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))(c||{}),je={...s,...c};var oe={1:"canFollowAccounts",4:"canLikeTweets",2:"canCreateTweets",3:"canCreateTweets"},ae=99999999;0&&(module.exports={AGG_APP_ID,ALGOD_TOKEN,ALGO_EXPLORER_ASSETS_URL,ALGO_EXPLORER_LINK,ALGO_NETWORK,ALGO_SERVER,ALGO_SERVER_PORT,API_HOST,APP_CLOSEOUT_FEE,BIGNUMBER,BOOLEAN_SETTINGS,CALCULATIONS,CCTP_UNIFIED_ASSETS,CODEX_APP_ID,DAY_MILLISECONDS,DEFAULT_AGG_FEE,DEFAULT_FEE_SHARE,DEFAULT_ORDER_EXPIRATION_DAYS,DISPENSER_LINK,EXCHANGE_NAME,EXPIRE_DAYS,EXT_ORDER_TYPES,FACTOR_PRICE_DECIMAL,FEE_SCALE,FRONTEND_FEE_SCALE,FRONTEND_LINK,GASLIMIT,GLOWL_DECIMAL,IS_DEV,JSON_ARRAY_SETTINGS,MARKET_TRADES_SIZE,MASTER_APP_ID,MAX_TOKEN_DECIMAL,MIN_ORDER_EXPIRATION_MINS,NETWORK,ORDER_BOOK_BUFFER,ORDER_BOOK_SIZE,ORDER_DATA_BYTES_LENGTH,ORDER_MSG_VERSION,PLATFORM_FEE,POINTS_MAX_VALUE,PeraChainId,PointSystemSettingsIds,REACT_APP_REQUIRE_ACCESS_CODE,RESPONSES,RES_MSG,SERVER,SHARE_DATA_LENGTH,SOCKET_URL,THEMES,ULTRADE_ID,USERBACK_ACCESS_TOKEN,WITHDRAW_DATA_BYTES_LENGTH,WITHDRAW_FEE,ZERO_TIMER,messageForSigning,sanitizeRegex,twitterActionToPermissionMap});
1
+ var p=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var l=(t,r)=>{for(var a in r)p(t,a,{get:r[a],enumerable:!0})},A=(t,r,a,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of T(r))!b.call(t,e)&&e!==a&&p(t,e,{get:()=>r[e],enumerable:!(o=i(r,e))||o.enumerable});return t};var m=t=>A(p({},"__esModule",{value:!0}),t);var Ee={};l(Ee,{AGG_APP_ID:()=>z,ALGOD_TOKEN:()=>y,ALGO_EXPLORER_ASSETS_URL:()=>f,ALGO_EXPLORER_LINK:()=>k,ALGO_NETWORK:()=>_,ALGO_SERVER:()=>S,ALGO_SERVER_PORT:()=>v,API_HOST:()=>x,APP_CLOSEOUT_FEE:()=>W,BIGNUMBER:()=>I,BOOLEAN_SETTINGS:()=>C,CALCULATIONS:()=>O,CCTP_UNIFIED_ASSETS:()=>R,CODEX_APP_ID:()=>J,DAY_MILLISECONDS:()=>ne,DEFAULT_AGG_FEE:()=>Q,DEFAULT_FEE_SHARE:()=>le,DEFAULT_ORDER_EXPIRATION_DAYS:()=>Ae,DISPENSER_LINK:()=>M,EXCHANGE_NAME:()=>V,EXPIRE_DAYS:()=>se,EXT_ORDER_TYPES:()=>G,FACTOR_PRICE_DECIMAL:()=>ie,FEE_SCALE:()=>Te,FRONTEND_FEE_SCALE:()=>be,FRONTEND_LINK:()=>E,GASLIMIT:()=>te,GLOWL_DECIMAL:()=>w,IS_DEV:()=>Z,JSON_ARRAY_SETTINGS:()=>D,MARKET_TRADES_SIZE:()=>K,MASTER_APP_ID:()=>q,MAX_TOKEN_DECIMAL:()=>Ne,MIN_CUSTOM_FEE_INCREMENT:()=>g,MIN_ORDER_EXPIRATION_MINS:()=>me,NETWORK:()=>n,ORDER_BOOK_BUFFER:()=>B,ORDER_BOOK_SIZE:()=>Y,ORDER_DATA_BYTES_LENGTH:()=>Re,ORDER_MSG_VERSION:()=>de,PLATFORM_FEE:()=>j,POINTS_MAX_VALUE:()=>pe,PeraChainId:()=>oe,PointSystemSettingsIds:()=>h,REACT_APP_REQUIRE_ACCESS_CODE:()=>F,RESPONSES:()=>d,RES_MSG:()=>N,SERVER:()=>u,SHARE_DATA_LENGTH:()=>Ie,SOCKET_URL:()=>P,THEMES:()=>X,ULTRADE_ID:()=>$,USERBACK_ACCESS_TOKEN:()=>U,WITHDRAW_DATA_BYTES_LENGTH:()=>Oe,WITHDRAW_FEE:()=>H,ZERO_TIMER:()=>ee,messageForSigning:()=>L,sanitizeRegex:()=>re,twitterActionToPermissionMap:()=>ae});module.exports=m(Ee);var ne=864e5,se=30;var ie=18,Te=1e5,be=1e3,le=9e4,Ae=30,me=60,Re=328,de=1,Ne=18,Ie=36,Oe=248;var R={"0x4343545055534443000000000000000000000000000000000000000000000000":65537};var d={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},N={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"},I={SMALLESTUNIT:process.env.SMALLEST_UNIT},O={SMALLEST_UNITS:process.env.SMALLEST_UNIT},u={AVAILABLE_ASSETS_PER_USER:1,AVAILABLE_ASSETS_PER_IP:3};var De=`{"theme1":{"value":"${process.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;var h=["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"],C=["obdex","kycTradeRequirementEnabled","newTab","reportButtons"],D=["geoblock","pinnedPairs","customMenuItems","chartInt"],g=.001;var L=t=>`By signing this message, you confirm that the wallet is a trusted one ${t}; Data: `;var x=process.env.REACT_APP_API_URL,P=process.env.REACT_APP_SOCKET_URL,S=process.env.REACT_APP_ALGO_SERVER,v=process.env.REACT_APP_ALGO_SERVER_PORT||"",y=process.env.REACT_APP_ALGOD_TOKEN||"",M=process.env.REACT_APP_DISPENSER_LINK,E=process.env.REACT_APP_FRONTEND_LINK||"",k=process.env.REACT_APP_ALGO_EXPLORER_LINK,f=process.env.REACT_APP_ALGO_EXPLORER_ASSETS_URL,F=(process.env.REACT_APP_REQUIRE_ACCESS_CODE||"").toLowerCase()==="true",U=process.env.REACT_APP_USERBACK_ACCESS_TOKEN,G=(process.env.REACT_APP_EXT_ORDER_TYPES||"").toLowerCase()==="true",w=4,Y=100,B=50,K=50,H=.001*10**6,W=.002*10**6,V="Ultrade",X=["theme1","theme2","theme3"],q=process.env.REACT_APP_MASTER_APP_ID||"406",z=process.env.REACT_APP_AGG_APP_ID||"408",J=Number(process.env.REACT_APP_CODEX_APP_ID||"467960617"),j=3e3,_=process.env.REACT_APP_ALGO_NETWORK||"",Q=.3,$=1,Z=E==="https://dev.ultradedev.net",ee="00:00",te=1e6,n=_.toLowerCase()==="mainnet"?"mainnet":"testnet",re=/[^\p{L}\p{N} .,!?:@$%()_-]/gui,oe=n==="mainnet"?416001:416002;var s=(e=>(e.GLOBAL_PAIR_DELISTING="GLOBAL_PAIR_DELISTING",e.GLOBAL_NEW_PAIR_LISTING="GLOBAL_NEW_PAIR_LISTING",e.GLOBAL_SYSTEM_MAINTENANCE="GLOBAL_SYSTEM_MAINTENANCE",e.GLOBAL_SMART_CONTRACT_UPDATE="GLOBAL_SMART_CONTRACT_UPDATE",e))(s||{}),c=(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))(c||{}),Qe={...s,...c};var ae={1:"canFollowAccounts",4:"canLikeTweets",2:"canCreateTweets",3:"canCreateTweets"},pe=99999999;0&&(module.exports={AGG_APP_ID,ALGOD_TOKEN,ALGO_EXPLORER_ASSETS_URL,ALGO_EXPLORER_LINK,ALGO_NETWORK,ALGO_SERVER,ALGO_SERVER_PORT,API_HOST,APP_CLOSEOUT_FEE,BIGNUMBER,BOOLEAN_SETTINGS,CALCULATIONS,CCTP_UNIFIED_ASSETS,CODEX_APP_ID,DAY_MILLISECONDS,DEFAULT_AGG_FEE,DEFAULT_FEE_SHARE,DEFAULT_ORDER_EXPIRATION_DAYS,DISPENSER_LINK,EXCHANGE_NAME,EXPIRE_DAYS,EXT_ORDER_TYPES,FACTOR_PRICE_DECIMAL,FEE_SCALE,FRONTEND_FEE_SCALE,FRONTEND_LINK,GASLIMIT,GLOWL_DECIMAL,IS_DEV,JSON_ARRAY_SETTINGS,MARKET_TRADES_SIZE,MASTER_APP_ID,MAX_TOKEN_DECIMAL,MIN_CUSTOM_FEE_INCREMENT,MIN_ORDER_EXPIRATION_MINS,NETWORK,ORDER_BOOK_BUFFER,ORDER_BOOK_SIZE,ORDER_DATA_BYTES_LENGTH,ORDER_MSG_VERSION,PLATFORM_FEE,POINTS_MAX_VALUE,PeraChainId,PointSystemSettingsIds,REACT_APP_REQUIRE_ACCESS_CODE,RESPONSES,RES_MSG,SERVER,SHARE_DATA_LENGTH,SOCKET_URL,THEMES,ULTRADE_ID,USERBACK_ACCESS_TOKEN,WITHDRAW_DATA_BYTES_LENGTH,WITHDRAW_FEE,ZERO_TIMER,messageForSigning,sanitizeRegex,twitterActionToPermissionMap});