@ultrade/shared 1.0.26 → 1.0.28

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 (208) hide show
  1. package/dist/browser/common/index.js +1 -7
  2. package/dist/browser/{common/utils/social.js → constants/env.js} +1 -1
  3. package/dist/browser/constants/index.js +1 -1
  4. package/dist/browser/enums/index.js +1 -1
  5. package/dist/browser/helpers/algo.helper.js +1 -1
  6. package/dist/browser/helpers/assert.helper.js +1 -1
  7. package/dist/browser/helpers/atomic.helper.js +1 -1
  8. package/dist/browser/helpers/balance.helper.js +1 -1
  9. package/dist/browser/helpers/codex/common.helper.js +2 -2
  10. package/dist/browser/helpers/codex/index.js +2 -2
  11. package/dist/browser/helpers/codex/mbr.helper.js +1 -1
  12. package/dist/browser/helpers/codex/mna.helper.js +1 -1
  13. package/dist/browser/helpers/codex/order.helper.js +1 -1
  14. package/dist/browser/helpers/codex/setGlobal.helper.js +1 -1
  15. package/dist/browser/{common/mappers/codexBalance.mapper.js → helpers/codex/tokens.js} +1 -1
  16. package/dist/browser/helpers/codex/transfer.helper.js +2 -2
  17. package/dist/browser/helpers/codex/txn.helper.js +1 -1
  18. package/dist/browser/helpers/codex.helper.js +6 -6
  19. package/dist/browser/helpers/eth.helper.js +2 -2
  20. package/dist/browser/helpers/order.helper.js +1 -1
  21. package/dist/browser/helpers/pair.helper.js +1 -1
  22. package/dist/browser/helpers/pointSystem.helper.js +1 -1
  23. package/dist/browser/helpers/withdraw.helper.js +2 -2
  24. package/dist/browser/interfaces/index.js +1 -1
  25. package/dist/browser/services/index.js +11 -0
  26. package/dist/browser/types/index.js +1 -1
  27. package/dist/{src/common → common}/index.d.ts +0 -1
  28. package/dist/{src/common → common}/utils/index.d.ts +3 -0
  29. package/dist/constants/env.d.ts +6 -0
  30. package/dist/{src/constants → constants}/index.d.ts +1 -0
  31. package/dist/constants/social.d.ts +4 -0
  32. package/dist/{src/enums → enums}/db/index.d.ts +1 -0
  33. package/dist/enums/db/pending-actions.enum.d.ts +6 -0
  34. package/dist/{src/enums → enums}/db/relayer.enum.d.ts +1 -0
  35. package/dist/{src/enums → enums}/index.d.ts +2 -0
  36. package/dist/enums/points.enum.d.ts +4 -0
  37. package/dist/enums/socket.enum.d.ts +18 -0
  38. package/dist/{src/helpers → helpers}/codex/common.helper.d.ts +2 -5
  39. package/dist/{src/helpers → helpers}/codex/index.d.ts +2 -0
  40. package/dist/helpers/codex/tokens.d.ts +5 -0
  41. package/dist/{src/helpers → helpers}/codex.helper.d.ts +1 -0
  42. package/dist/{src/common/utils → helpers}/decode.d.ts +1 -1
  43. package/dist/interfaces/algostreamer/index.d.ts +50 -0
  44. package/dist/{src/interfaces → interfaces}/index.d.ts +2 -0
  45. package/dist/{src/interfaces → interfaces}/order.interface.d.ts +1 -0
  46. package/dist/interfaces/socket.interface.d.ts +16 -0
  47. package/dist/node/common/index.js +1 -1
  48. package/dist/node/constants/env.js +1 -0
  49. package/dist/node/constants/index.js +1 -1
  50. package/dist/node/enums/index.js +1 -1
  51. package/dist/node/helpers/assert.helper.js +1 -1
  52. package/dist/node/helpers/atomic.helper.js +1 -1
  53. package/dist/node/helpers/balance.helper.js +1 -1
  54. package/dist/node/helpers/codex/common.helper.js +2 -2
  55. package/dist/node/helpers/codex/index.js +2 -2
  56. package/dist/node/helpers/codex/mbr.helper.js +1 -1
  57. package/dist/node/helpers/codex/mna.helper.js +1 -1
  58. package/dist/node/helpers/codex/order.helper.js +1 -1
  59. package/dist/node/helpers/codex/setGlobal.helper.js +1 -1
  60. package/dist/node/helpers/codex/tokens.js +1 -0
  61. package/dist/node/helpers/codex/transfer.helper.js +2 -2
  62. package/dist/node/helpers/codex/txn.helper.js +1 -1
  63. package/dist/node/helpers/codex.helper.js +6 -6
  64. package/dist/node/helpers/eth.helper.js +2 -2
  65. package/dist/node/helpers/order.helper.js +1 -1
  66. package/dist/node/helpers/pair.helper.js +1 -1
  67. package/dist/node/helpers/withdraw.helper.js +2 -2
  68. package/dist/node/interfaces/index.js +1 -1
  69. package/dist/node/services/index.js +1 -0
  70. package/dist/node/types/index.js +1 -1
  71. package/dist/services/index.d.ts +2 -0
  72. package/dist/services/pairParam.service.d.ts +14 -0
  73. package/dist/services/tmc.service.d.ts +33 -0
  74. package/dist/{src/types → types}/api/request.types.d.ts +10 -10
  75. package/dist/{src/types → types}/settings.type.d.ts +4 -3
  76. package/package.json +39 -5
  77. package/dist/browser/common/big-number.helper.js +0 -11
  78. package/dist/browser/common/mappers/codexAsset.mapper.js +0 -11
  79. package/dist/browser/common/mappers/index.js +0 -11
  80. package/dist/browser/common/mappers/trade.mapper.js +0 -11
  81. package/dist/browser/common/utils/assert.js +0 -11
  82. package/dist/browser/common/utils/index.js +0 -11
  83. package/dist/browser/common/utils/stat.js +0 -11
  84. package/dist/browser/helpers/vaa.helper.js +0 -11
  85. package/dist/node/common/big-number.helper.js +0 -1
  86. package/dist/node/common/mappers/codexAsset.mapper.js +0 -1
  87. package/dist/node/common/mappers/codexBalance.mapper.js +0 -1
  88. package/dist/node/common/mappers/index.js +0 -1
  89. package/dist/node/common/mappers/trade.mapper.js +0 -1
  90. package/dist/node/common/utils/assert.js +0 -1
  91. package/dist/node/common/utils/index.js +0 -1
  92. package/dist/node/common/utils/social.js +0 -1
  93. package/dist/node/common/utils/stat.js +0 -1
  94. package/dist/node/helpers/vaa.helper.js +0 -0
  95. package/dist/src/helpers/vaa.helper.d.ts +0 -0
  96. /package/dist/browser/{common → helpers}/auth.helper.js +0 -0
  97. /package/dist/browser/{common/utils → helpers}/decode.js +0 -0
  98. /package/dist/{src/common → common}/big-number.helper.d.ts +0 -0
  99. /package/dist/{src/common → common}/mappers/codexAsset.mapper.d.ts +0 -0
  100. /package/dist/{src/common → common}/mappers/codexBalance.mapper.d.ts +0 -0
  101. /package/dist/{src/common → common}/mappers/index.d.ts +0 -0
  102. /package/dist/{src/common → common}/mappers/trade.mapper.d.ts +0 -0
  103. /package/dist/{src/common → common}/utils/assert.d.ts +0 -0
  104. /package/dist/{src/common → common}/utils/social.d.ts +0 -0
  105. /package/dist/{src/common → common}/utils/stat.d.ts +0 -0
  106. /package/dist/{src/constants → constants}/auth.d.ts +0 -0
  107. /package/dist/{src/constants → constants}/cctp.d.ts +0 -0
  108. /package/dist/{src/constants → constants}/codex.d.ts +0 -0
  109. /package/dist/{src/constants → constants}/frontend.d.ts +0 -0
  110. /package/dist/{src/constants → constants}/response.d.ts +0 -0
  111. /package/dist/{src/constants → constants}/settings.d.ts +0 -0
  112. /package/dist/{src/constants → constants}/withdrawalWalletsMessage.d.ts +0 -0
  113. /package/dist/{src/enums → enums}/chains.enum.d.ts +0 -0
  114. /package/dist/{src/enums → enums}/db/account/index.d.ts +0 -0
  115. /package/dist/{src/enums → enums}/db/affiliate.enum.d.ts +0 -0
  116. /package/dist/{src/enums → enums}/db/available-pair-settings.enum.d.ts +0 -0
  117. /package/dist/{src/enums → enums}/db/common.enum.d.ts +0 -0
  118. /package/dist/{src/enums → enums}/db/component/index.d.ts +0 -0
  119. /package/dist/{src/enums → enums}/db/market-maker.enum.d.ts +0 -0
  120. /package/dist/{src/enums → enums}/db/notification-center/userNotification.enum.d.ts +0 -0
  121. /package/dist/{src/enums → enums}/db/order-side.enum.d.ts +0 -0
  122. /package/dist/{src/enums → enums}/db/order-status.enum.d.ts +0 -0
  123. /package/dist/{src/enums → enums}/db/order-type.enum.d.ts +0 -0
  124. /package/dist/{src/enums → enums}/db/setting-type.enum.d.ts +0 -0
  125. /package/dist/{src/enums → enums}/db/social-action.enum.d.ts +0 -0
  126. /package/dist/{src/enums → enums}/db/social-prompt.enum.d.ts +0 -0
  127. /package/dist/{src/enums → enums}/db/social.enum.d.ts +0 -0
  128. /package/dist/{src/enums → enums}/db/state-type.enum.d.ts +0 -0
  129. /package/dist/{src/enums → enums}/db/trade.enums.d.ts +0 -0
  130. /package/dist/{src/enums → enums}/db/tradingKeyType.enum.d.ts +0 -0
  131. /package/dist/{src/enums → enums}/db/upgrade.enum.d.ts +0 -0
  132. /package/dist/{src/enums → enums}/db/withdrawal-wallet.enum.d.ts +0 -0
  133. /package/dist/{src/enums → enums}/maintenanceMode.enum.d.ts +0 -0
  134. /package/dist/{src/enums → enums}/notification.enum.d.ts +0 -0
  135. /package/dist/{src/enums → enums}/rabbitMq.d.ts +0 -0
  136. /package/dist/{src/enums → enums}/settings.enum.d.ts +0 -0
  137. /package/dist/{src/enums → enums}/social.enum.d.ts +0 -0
  138. /package/dist/{src/helpers → helpers}/Encoding.d.ts +0 -0
  139. /package/dist/{src/helpers → helpers}/algo.helper.d.ts +0 -0
  140. /package/dist/{src/helpers → helpers}/assert.helper.d.ts +0 -0
  141. /package/dist/{src/helpers → helpers}/atomic.helper.d.ts +0 -0
  142. /package/dist/{src/common → helpers}/auth.helper.d.ts +0 -0
  143. /package/dist/{src/helpers → helpers}/balance.helper.d.ts +0 -0
  144. /package/dist/{src/helpers → helpers}/codex/mbr.helper.d.ts +0 -0
  145. /package/dist/{src/helpers → helpers}/codex/mna.helper.d.ts +0 -0
  146. /package/dist/{src/helpers → helpers}/codex/order.helper.d.ts +0 -0
  147. /package/dist/{src/helpers → helpers}/codex/setGlobal.helper.d.ts +0 -0
  148. /package/dist/{src/helpers → helpers}/codex/transfer.helper.d.ts +0 -0
  149. /package/dist/{src/helpers → helpers}/codex/txn.helper.d.ts +0 -0
  150. /package/dist/{src/helpers → helpers}/eth.helper.d.ts +0 -0
  151. /package/dist/{src/helpers → helpers}/index.d.ts +0 -0
  152. /package/dist/{src/helpers → helpers}/interval.helpers.d.ts +0 -0
  153. /package/dist/{src/helpers → helpers}/liquidity.helper.d.ts +0 -0
  154. /package/dist/{src/helpers → helpers}/order.helper.d.ts +0 -0
  155. /package/dist/{src/helpers → helpers}/pair.helper.d.ts +0 -0
  156. /package/dist/{src/helpers → helpers}/pointSystem.helper.d.ts +0 -0
  157. /package/dist/{src/helpers → helpers}/ticker.helpers.d.ts +0 -0
  158. /package/dist/{src/helpers → helpers}/withdraw.helper.d.ts +0 -0
  159. /package/dist/{src/interfaces → interfaces}/accountInfo.interface.d.ts +0 -0
  160. /package/dist/{src/interfaces → interfaces}/api/affiliate.interface.d.ts +0 -0
  161. /package/dist/{src/interfaces → interfaces}/api/index.d.ts +0 -0
  162. /package/dist/{src/interfaces → interfaces}/cache.interface.d.ts +0 -0
  163. /package/dist/{src/interfaces → interfaces}/db/baseModel.interface.d.ts +0 -0
  164. /package/dist/{src/interfaces → interfaces}/db/hummingbot/index.d.ts +0 -0
  165. /package/dist/{src/interfaces → interfaces}/db/index.d.ts +0 -0
  166. /package/dist/{src/interfaces → interfaces}/db/market/index.d.ts +0 -0
  167. /package/dist/{src/interfaces → interfaces}/db/marketing/index.d.ts +0 -0
  168. /package/dist/{src/interfaces → interfaces}/db/notification_center/index.d.ts +0 -0
  169. /package/dist/{src/interfaces → interfaces}/db/relayer/index.d.ts +0 -0
  170. /package/dist/{src/interfaces → interfaces}/db/social/index.d.ts +0 -0
  171. /package/dist/{src/interfaces → interfaces}/db/softDeleteModel.interface.d.ts +0 -0
  172. /package/dist/{src/interfaces → interfaces}/db/white_label/index.d.ts +0 -0
  173. /package/dist/{src/interfaces → interfaces}/db/withdrawal_wallets/index.d.ts +0 -0
  174. /package/dist/{src/interfaces → interfaces}/dto/index.d.ts +0 -0
  175. /package/dist/{src/interfaces → interfaces}/emailService.interface.d.ts +0 -0
  176. /package/dist/{src/interfaces → interfaces}/kmsService.interface.d.ts +0 -0
  177. /package/dist/{src/interfaces → interfaces}/last-look-trade.interface.d.ts +0 -0
  178. /package/dist/{src/interfaces → interfaces}/market.interface.d.ts +0 -0
  179. /package/dist/{src/interfaces → interfaces}/pagination.interface.d.ts +0 -0
  180. /package/dist/{src/interfaces → interfaces}/pair.interface.d.ts +0 -0
  181. /package/dist/{src/interfaces → interfaces}/query.interface.d.ts +0 -0
  182. /package/dist/{src/interfaces → interfaces}/services/accountCache.interface.d.ts +0 -0
  183. /package/dist/{src/interfaces → interfaces}/services/algod.interface.d.ts +0 -0
  184. /package/dist/{src/interfaces → interfaces}/services/balances.interface.d.ts +0 -0
  185. /package/dist/{src/interfaces → interfaces}/services/coin-market-cap.interface.d.ts +0 -0
  186. /package/dist/{src/interfaces → interfaces}/services/index.d.ts +0 -0
  187. /package/dist/{src/interfaces → interfaces}/services/price-model.interface.d.ts +0 -0
  188. /package/dist/{src/interfaces → interfaces}/services/price-service.interface.d.ts +0 -0
  189. /package/dist/{src/interfaces → interfaces}/services/socialActivity.interface.d.ts +0 -0
  190. /package/dist/{src/interfaces → interfaces}/services/tmc.interface.d.ts +0 -0
  191. /package/dist/{src/interfaces → interfaces}/settings.interface.d.ts +0 -0
  192. /package/dist/{src/interfaces → interfaces}/streaming.interface.d.ts +0 -0
  193. /package/dist/{src/interfaces → interfaces}/timestream.interface.d.ts +0 -0
  194. /package/dist/{src/interfaces → interfaces}/trading.interface.d.ts +0 -0
  195. /package/dist/{src/interfaces → interfaces}/tradingKey.interface.d.ts +0 -0
  196. /package/dist/{src/interfaces → interfaces}/transfer.interface.d.ts +0 -0
  197. /package/dist/{src/interfaces → interfaces}/wallet.interface.d.ts +0 -0
  198. /package/dist/{src/interfaces → interfaces}/withdrawalWallets.interface.d.ts +0 -0
  199. /package/dist/node/{common → helpers}/auth.helper.js +0 -0
  200. /package/dist/node/{common/utils → helpers}/decode.js +0 -0
  201. /package/dist/{src/types → types}/algo-order.type.d.ts +0 -0
  202. /package/dist/{src/types → types}/amm/amm.d.ts +0 -0
  203. /package/dist/{src/types → types}/balance-result.types.d.ts +0 -0
  204. /package/dist/{src/types → types}/codex.types.d.ts +0 -0
  205. /package/dist/{src/types → types}/hummingbots.types.d.ts +0 -0
  206. /package/dist/{src/types → types}/index.d.ts +0 -0
  207. /package/dist/{src/types → types}/notification.type.d.ts +0 -0
  208. /package/dist/{src/types → types}/state.type.d.ts +0 -0
@@ -1,11 +0,0 @@
1
- function q(){throw new Error("setTimeout has not been defined")}function X(){throw new Error("clearTimeout has not been defined")}var R=q,_=X;typeof globalThis.setTimeout=="function"&&(R=setTimeout);typeof globalThis.clearTimeout=="function"&&(_=clearTimeout);function Z(i){if(R===setTimeout)return setTimeout(i,0);if((R===q||!R)&&setTimeout)return R=setTimeout,setTimeout(i,0);try{return R(i,0)}catch{try{return R.call(null,i,0)}catch{return R.call(this,i,0)}}}function mr(i){if(_===clearTimeout)return clearTimeout(i);if((_===X||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(i);try{return _(i)}catch{try{return _.call(null,i)}catch{return _.call(this,i)}}}var T=[],B=!1,d,b=-1;function Er(){!B||!d||(B=!1,d.length?T=d.concat(T):b=-1,T.length&&z())}function z(){if(!B){var i=Z(Er);B=!0;for(var r=T.length;r;){for(d=T,T=[];++b<r;)d&&d[b].run();b=-1,r=T.length}d=null,B=!1,mr(i)}}function Ar(i){var r=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)r[n-1]=arguments[n];T.push(new J(i,r)),T.length===1&&!B&&Z(z)}function J(i,r){this.fun=i,this.array=r}J.prototype.run=function(){this.fun.apply(null,this.array)};var Tr="browser",yr="browser",Rr=!0,_r={},dr=[],Ur="",Ir={},vr={},Sr={};function U(){}var Br=U,br=U,Pr=U,Nr=U,Mr=U,Dr=U,Yr=U;function Lr(i){throw new Error("process.binding is not supported")}function Cr(){return"/"}function kr(i){throw new Error("process.chdir is not supported")}function Fr(){return 0}var S=globalThis.performance||{},Or=S.now||S.mozNow||S.msNow||S.oNow||S.webkitNow||function(){return new Date().getTime()};function Hr(i){var r=Or.call(S)*.001,n=Math.floor(r),e=Math.floor(r%1*1e9);return i&&(n=n-i[0],e=e-i[1],e<0&&(n--,e+=1e9)),[n,e]}var Gr=new Date;function Qr(){var i=new Date,r=i-Gr;return r/1e3}var P={nextTick:Ar,title:Tr,browser:Rr,env:_r,argv:dr,version:Ur,versions:Ir,on:Br,addListener:br,once:Pr,off:Nr,removeListener:Mr,removeAllListeners:Dr,emit:Yr,binding:Lr,cwd:Cr,chdir:kr,umask:Fr,hrtime:Hr,platform:yr,release:vr,config:Sr,uptime:Qr},W={};Object.keys(W).forEach(i=>{let r=i.split("."),n=P;for(let e=0;e<r.length;e++){let t=r[e];e===r.length-1?n[t]=W[i]:n=n[t]||(n[t]={})}});var E=[],g=[],Vr=typeof Uint8Array<"u"?Uint8Array:Array,O=!1;function rr(){O=!0;for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,n=i.length;r<n;++r)E[r]=i[r],g[i.charCodeAt(r)]=r;g[45]=62,g[95]=63}function Wr(i){O||rr();var r,n,e,t,o,u,a=i.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=i[a-2]==="="?2:i[a-1]==="="?1:0,u=new Vr(a*3/4-o),e=o>0?a-4:a;var c=0;for(r=0,n=0;r<e;r+=4,n+=3)t=g[i.charCodeAt(r)]<<18|g[i.charCodeAt(r+1)]<<12|g[i.charCodeAt(r+2)]<<6|g[i.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=t&255;return o===2?(t=g[i.charCodeAt(r)]<<2|g[i.charCodeAt(r+1)]>>4,u[c++]=t&255):o===1&&(t=g[i.charCodeAt(r)]<<10|g[i.charCodeAt(r+1)]<<4|g[i.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=t&255),u}function qr(i){return E[i>>18&63]+E[i>>12&63]+E[i>>6&63]+E[i&63]}function Xr(i,r,n){for(var e,t=[],o=r;o<n;o+=3)e=(i[o]<<16)+(i[o+1]<<8)+i[o+2],t.push(qr(e));return t.join("")}function $(i){O||rr();for(var r,n=i.length,e=n%3,t="",o=[],u=16383,a=0,c=n-e;a<c;a+=u)o.push(Xr(i,a,a+u>c?c:a+u));return e===1?(r=i[n-1],t+=E[r>>2],t+=E[r<<4&63],t+="=="):e===2&&(r=(i[n-2]<<8)+i[n-1],t+=E[r>>10],t+=E[r>>4&63],t+=E[r<<2&63],t+="="),o.push(t),o.join("")}f.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function N(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function y(i,r){if(N()<r)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(i=new Uint8Array(r),i.__proto__=f.prototype):(i===null&&(i=new f(r)),i.length=r),i}function f(i,r,n){if(!f.TYPED_ARRAY_SUPPORT&&!(this instanceof f))return new f(i,r,n);if(typeof i=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return H(this,i)}return nr(this,i,r,n)}f.poolSize=8192;f._augment=function(i){return i.__proto__=f.prototype,i};function nr(i,r,n,e){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?Jr(i,r,n,e):typeof r=="string"?zr(i,r,n):$r(i,r)}f.from=function(i,r,n){return nr(null,i,r,n)};f.kMaxLength=N();f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&f[Symbol.species]);function ir(i){if(typeof i!="number")throw new TypeError('"size" argument must be a number');if(i<0)throw new RangeError('"size" argument must not be negative')}function Zr(i,r,n,e){return ir(r),r<=0?y(i,r):n!==void 0?typeof e=="string"?y(i,r).fill(n,e):y(i,r).fill(n):y(i,r)}f.alloc=function(i,r,n){return Zr(null,i,r,n)};function H(i,r){if(ir(r),i=y(i,r<0?0:G(r)|0),!f.TYPED_ARRAY_SUPPORT)for(var n=0;n<r;++n)i[n]=0;return i}f.allocUnsafe=function(i){return H(null,i)};f.allocUnsafeSlow=function(i){return H(null,i)};function zr(i,r,n){if((typeof n!="string"||n==="")&&(n="utf8"),!f.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var e=er(r,n)|0;i=y(i,e);var t=i.write(r,n);return t!==e&&(i=i.slice(0,t)),i}function F(i,r){var n=r.length<0?0:G(r.length)|0;i=y(i,n);for(var e=0;e<n;e+=1)i[e]=r[e]&255;return i}function Jr(i,r,n,e){if(r.byteLength,n<0||r.byteLength<n)throw new RangeError("'offset' is out of bounds");if(r.byteLength<n+(e||0))throw new RangeError("'length' is out of bounds");return n===void 0&&e===void 0?r=new Uint8Array(r):e===void 0?r=new Uint8Array(r,n):r=new Uint8Array(r,n,e),f.TYPED_ARRAY_SUPPORT?(i=r,i.__proto__=f.prototype):i=F(i,r),i}function $r(i,r){if(A(r)){var n=G(r.length)|0;return i=y(i,n),i.length===0||r.copy(i,0,0,n),i}if(r){if(typeof ArrayBuffer<"u"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||mn(r.length)?y(i,0):F(i,r);if(r.type==="Buffer"&&Array.isArray(r.data))return F(i,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function G(i){if(i>=N())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N().toString(16)+" bytes");return i|0}f.isBuffer=En;function A(i){return!!(i!=null&&i._isBuffer)}f.compare=function(r,n){if(!A(r)||!A(n))throw new TypeError("Arguments must be Buffers");if(r===n)return 0;for(var e=r.length,t=n.length,o=0,u=Math.min(e,t);o<u;++o)if(r[o]!==n[o]){e=r[o],t=n[o];break}return e<t?-1:t<e?1:0};f.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}};f.concat=function(r,n){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return f.alloc(0);var e;if(n===void 0)for(n=0,e=0;e<r.length;++e)n+=r[e].length;var t=f.allocUnsafe(n),o=0;for(e=0;e<r.length;++e){var u=r[e];if(!A(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(t,o),o+=u.length}return t};function er(i,r){if(A(i))return i.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(i)||i instanceof ArrayBuffer))return i.byteLength;typeof i!="string"&&(i=""+i);var n=i.length;if(n===0)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return M(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return hr(i).length;default:if(e)return M(i).length;r=(""+r).toLowerCase(),e=!0}}f.byteLength=er;function Kr(i,r,n){var e=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,r>>>=0,n<=r))return"";for(i||(i="utf8");;)switch(i){case"hex":return cn(this,r,n);case"utf8":case"utf-8":return ur(this,r,n);case"ascii":return fn(this,r,n);case"latin1":case"binary":return an(this,r,n);case"base64":return on(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hn(this,r,n);default:if(e)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),e=!0}}f.prototype._isBuffer=!0;function I(i,r,n){var e=i[r];i[r]=i[n],i[n]=e}f.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 n=0;n<r;n+=2)I(this,n,n+1);return this};f.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 n=0;n<r;n+=4)I(this,n,n+3),I(this,n+1,n+2);return this};f.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 n=0;n<r;n+=8)I(this,n,n+7),I(this,n+1,n+6),I(this,n+2,n+5),I(this,n+3,n+4);return this};f.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?ur(this,0,r):Kr.apply(this,arguments)};f.prototype.equals=function(r){if(!A(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:f.compare(this,r)===0};f.prototype.compare=function(r,n,e,t,o){if(!A(r))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),e===void 0&&(e=r?r.length:0),t===void 0&&(t=0),o===void 0&&(o=this.length),n<0||e>r.length||t<0||o>this.length)throw new RangeError("out of range index");if(t>=o&&n>=e)return 0;if(t>=o)return-1;if(n>=e)return 1;if(n>>>=0,e>>>=0,t>>>=0,o>>>=0,this===r)return 0;for(var u=o-t,a=e-n,c=Math.min(u,a),s=this.slice(t,o),l=r.slice(n,e),h=0;h<c;++h)if(s[h]!==l[h]){u=s[h],a=l[h];break}return u<a?-1:a<u?1:0};function tr(i,r,n,e,t){if(i.length===0)return-1;if(typeof n=="string"?(e=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=t?0:i.length-1),n<0&&(n=i.length+n),n>=i.length){if(t)return-1;n=i.length-1}else if(n<0)if(t)n=0;else return-1;if(typeof r=="string"&&(r=f.from(r,e)),A(r))return r.length===0?-1:K(i,r,n,e,t);if(typeof r=="number")return r=r&255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?t?Uint8Array.prototype.indexOf.call(i,r,n):Uint8Array.prototype.lastIndexOf.call(i,r,n):K(i,[r],n,e,t);throw new TypeError("val must be string, number or Buffer")}function K(i,r,n,e,t){var o=1,u=i.length,a=r.length;if(e!==void 0&&(e=String(e).toLowerCase(),e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le")){if(i.length<2||r.length<2)return-1;o=2,u/=2,a/=2,n/=2}function c(w,v){return o===1?w[v]:w.readUInt16BE(v*o)}var s;if(t){var l=-1;for(s=n;s<u;s++)if(c(i,s)===c(r,l===-1?0:s-l)){if(l===-1&&(l=s),s-l+1===a)return l*o}else l!==-1&&(s-=s-l),l=-1}else for(n+a>u&&(n=u-a),s=n;s>=0;s--){for(var h=!0,m=0;m<a;m++)if(c(i,s+m)!==c(r,m)){h=!1;break}if(h)return s}return-1}f.prototype.includes=function(r,n,e){return this.indexOf(r,n,e)!==-1};f.prototype.indexOf=function(r,n,e){return tr(this,r,n,e,!0)};f.prototype.lastIndexOf=function(r,n,e){return tr(this,r,n,e,!1)};function jr(i,r,n,e){n=Number(n)||0;var t=i.length-n;e?(e=Number(e),e>t&&(e=t)):e=t;var o=r.length;if(o%2!==0)throw new TypeError("Invalid hex string");e>o/2&&(e=o/2);for(var u=0;u<e;++u){var a=parseInt(r.substr(u*2,2),16);if(isNaN(a))return u;i[n+u]=a}return u}function rn(i,r,n,e){return L(M(r,i.length-n),i,n,e)}function or(i,r,n,e){return L(wn(r),i,n,e)}function nn(i,r,n,e){return or(i,r,n,e)}function en(i,r,n,e){return L(hr(r),i,n,e)}function tn(i,r,n,e){return L(gn(r,i.length-n),i,n,e)}f.prototype.write=function(r,n,e,t){if(n===void 0)t="utf8",e=this.length,n=0;else if(e===void 0&&typeof n=="string")t=n,e=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(e)?(e=e|0,t===void 0&&(t="utf8")):(t=e,e=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-n;if((e===void 0||e>o)&&(e=o),r.length>0&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var u=!1;;)switch(t){case"hex":return jr(this,r,n,e);case"utf8":case"utf-8":return rn(this,r,n,e);case"ascii":return or(this,r,n,e);case"latin1":case"binary":return nn(this,r,n,e);case"base64":return en(this,r,n,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tn(this,r,n,e);default:if(u)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),u=!0}};f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function on(i,r,n){return r===0&&n===i.length?$(i):$(i.slice(r,n))}function ur(i,r,n){n=Math.min(i.length,n);for(var e=[],t=r;t<n;){var o=i[t],u=null,a=o>239?4:o>223?3:o>191?2:1;if(t+a<=n){var c,s,l,h;switch(a){case 1:o<128&&(u=o);break;case 2:c=i[t+1],(c&192)===128&&(h=(o&31)<<6|c&63,h>127&&(u=h));break;case 3:c=i[t+1],s=i[t+2],(c&192)===128&&(s&192)===128&&(h=(o&15)<<12|(c&63)<<6|s&63,h>2047&&(h<55296||h>57343)&&(u=h));break;case 4:c=i[t+1],s=i[t+2],l=i[t+3],(c&192)===128&&(s&192)===128&&(l&192)===128&&(h=(o&15)<<18|(c&63)<<12|(s&63)<<6|l&63,h>65535&&h<1114112&&(u=h))}}u===null?(u=65533,a=1):u>65535&&(u-=65536,e.push(u>>>10&1023|55296),u=56320|u&1023),e.push(u),t+=a}return un(e)}var j=4096;function un(i){var r=i.length;if(r<=j)return String.fromCharCode.apply(String,i);for(var n="",e=0;e<r;)n+=String.fromCharCode.apply(String,i.slice(e,e+=j));return n}function fn(i,r,n){var e="";n=Math.min(i.length,n);for(var t=r;t<n;++t)e+=String.fromCharCode(i[t]&127);return e}function an(i,r,n){var e="";n=Math.min(i.length,n);for(var t=r;t<n;++t)e+=String.fromCharCode(i[t]);return e}function cn(i,r,n){var e=i.length;(!r||r<0)&&(r=0),(!n||n<0||n>e)&&(n=e);for(var t="",o=r;o<n;++o)t+=xn(i[o]);return t}function hn(i,r,n){for(var e=i.slice(r,n),t="",o=0;o<e.length;o+=2)t+=String.fromCharCode(e[o]+e[o+1]*256);return t}f.prototype.slice=function(r,n){var e=this.length;r=~~r,n=n===void 0?e:~~n,r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),n<0?(n+=e,n<0&&(n=0)):n>e&&(n=e),n<r&&(n=r);var t;if(f.TYPED_ARRAY_SUPPORT)t=this.subarray(r,n),t.__proto__=f.prototype;else{var o=n-r;t=new f(o,void 0);for(var u=0;u<o;++u)t[u]=this[u+r]}return t};function p(i,r,n){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+r>n)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUIntLE=function(r,n,e){r=r|0,n=n|0,e||p(r,n,this.length);for(var t=this[r],o=1,u=0;++u<n&&(o*=256);)t+=this[r+u]*o;return t};f.prototype.readUIntBE=function(r,n,e){r=r|0,n=n|0,e||p(r,n,this.length);for(var t=this[r+--n],o=1;n>0&&(o*=256);)t+=this[r+--n]*o;return t};f.prototype.readUInt8=function(r,n){return n||p(r,1,this.length),this[r]};f.prototype.readUInt16LE=function(r,n){return n||p(r,2,this.length),this[r]|this[r+1]<<8};f.prototype.readUInt16BE=function(r,n){return n||p(r,2,this.length),this[r]<<8|this[r+1]};f.prototype.readUInt32LE=function(r,n){return n||p(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};f.prototype.readUInt32BE=function(r,n){return n||p(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};f.prototype.readIntLE=function(r,n,e){r=r|0,n=n|0,e||p(r,n,this.length);for(var t=this[r],o=1,u=0;++u<n&&(o*=256);)t+=this[r+u]*o;return o*=128,t>=o&&(t-=Math.pow(2,8*n)),t};f.prototype.readIntBE=function(r,n,e){r=r|0,n=n|0,e||p(r,n,this.length);for(var t=n,o=1,u=this[r+--t];t>0&&(o*=256);)u+=this[r+--t]*o;return o*=128,u>=o&&(u-=Math.pow(2,8*n)),u};f.prototype.readInt8=function(r,n){return n||p(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};f.prototype.readInt16LE=function(r,n){n||p(r,2,this.length);var e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e};f.prototype.readInt16BE=function(r,n){n||p(r,2,this.length);var e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e};f.prototype.readInt32LE=function(r,n){return n||p(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};f.prototype.readInt32BE=function(r,n){return n||p(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};f.prototype.readFloatLE=function(r,n){return n||p(r,4,this.length),C(this,r,!0,23,4)};f.prototype.readFloatBE=function(r,n){return n||p(r,4,this.length),C(this,r,!1,23,4)};f.prototype.readDoubleLE=function(r,n){return n||p(r,8,this.length),C(this,r,!0,52,8)};f.prototype.readDoubleBE=function(r,n){return n||p(r,8,this.length),C(this,r,!1,52,8)};function x(i,r,n,e,t,o){if(!A(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>t||r<o)throw new RangeError('"value" argument is out of bounds');if(n+e>i.length)throw new RangeError("Index out of range")}f.prototype.writeUIntLE=function(r,n,e,t){if(r=+r,n=n|0,e=e|0,!t){var o=Math.pow(2,8*e)-1;x(this,r,n,e,o,0)}var u=1,a=0;for(this[n]=r&255;++a<e&&(u*=256);)this[n+a]=r/u&255;return n+e};f.prototype.writeUIntBE=function(r,n,e,t){if(r=+r,n=n|0,e=e|0,!t){var o=Math.pow(2,8*e)-1;x(this,r,n,e,o,0)}var u=e-1,a=1;for(this[n+u]=r&255;--u>=0&&(a*=256);)this[n+u]=r/a&255;return n+e};f.prototype.writeUInt8=function(r,n,e){return r=+r,n=n|0,e||x(this,r,n,1,255,0),f.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[n]=r&255,n+1};function D(i,r,n,e){r<0&&(r=65535+r+1);for(var t=0,o=Math.min(i.length-n,2);t<o;++t)i[n+t]=(r&255<<8*(e?t:1-t))>>>(e?t:1-t)*8}f.prototype.writeUInt16LE=function(r,n,e){return r=+r,n=n|0,e||x(this,r,n,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[n]=r&255,this[n+1]=r>>>8):D(this,r,n,!0),n+2};f.prototype.writeUInt16BE=function(r,n,e){return r=+r,n=n|0,e||x(this,r,n,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[n]=r>>>8,this[n+1]=r&255):D(this,r,n,!1),n+2};function Y(i,r,n,e){r<0&&(r=4294967295+r+1);for(var t=0,o=Math.min(i.length-n,4);t<o;++t)i[n+t]=r>>>(e?t:3-t)*8&255}f.prototype.writeUInt32LE=function(r,n,e){return r=+r,n=n|0,e||x(this,r,n,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[n+3]=r>>>24,this[n+2]=r>>>16,this[n+1]=r>>>8,this[n]=r&255):Y(this,r,n,!0),n+4};f.prototype.writeUInt32BE=function(r,n,e){return r=+r,n=n|0,e||x(this,r,n,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255):Y(this,r,n,!1),n+4};f.prototype.writeIntLE=function(r,n,e,t){if(r=+r,n=n|0,!t){var o=Math.pow(2,8*e-1);x(this,r,n,e,o-1,-o)}var u=0,a=1,c=0;for(this[n]=r&255;++u<e&&(a*=256);)r<0&&c===0&&this[n+u-1]!==0&&(c=1),this[n+u]=(r/a>>0)-c&255;return n+e};f.prototype.writeIntBE=function(r,n,e,t){if(r=+r,n=n|0,!t){var o=Math.pow(2,8*e-1);x(this,r,n,e,o-1,-o)}var u=e-1,a=1,c=0;for(this[n+u]=r&255;--u>=0&&(a*=256);)r<0&&c===0&&this[n+u+1]!==0&&(c=1),this[n+u]=(r/a>>0)-c&255;return n+e};f.prototype.writeInt8=function(r,n,e){return r=+r,n=n|0,e||x(this,r,n,1,127,-128),f.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[n]=r&255,n+1};f.prototype.writeInt16LE=function(r,n,e){return r=+r,n=n|0,e||x(this,r,n,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[n]=r&255,this[n+1]=r>>>8):D(this,r,n,!0),n+2};f.prototype.writeInt16BE=function(r,n,e){return r=+r,n=n|0,e||x(this,r,n,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[n]=r>>>8,this[n+1]=r&255):D(this,r,n,!1),n+2};f.prototype.writeInt32LE=function(r,n,e){return r=+r,n=n|0,e||x(this,r,n,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[n]=r&255,this[n+1]=r>>>8,this[n+2]=r>>>16,this[n+3]=r>>>24):Y(this,r,n,!0),n+4};f.prototype.writeInt32BE=function(r,n,e){return r=+r,n=n|0,e||x(this,r,n,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),f.TYPED_ARRAY_SUPPORT?(this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255):Y(this,r,n,!1),n+4};function fr(i,r,n,e,t,o){if(n+e>i.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ar(i,r,n,e,t){return t||fr(i,r,n,4,34028234663852886e22,-34028234663852886e22),lr(i,r,n,e,23,4),n+4}f.prototype.writeFloatLE=function(r,n,e){return ar(this,r,n,!0,e)};f.prototype.writeFloatBE=function(r,n,e){return ar(this,r,n,!1,e)};function cr(i,r,n,e,t){return t||fr(i,r,n,8,17976931348623157e292,-17976931348623157e292),lr(i,r,n,e,52,8),n+8}f.prototype.writeDoubleLE=function(r,n,e){return cr(this,r,n,!0,e)};f.prototype.writeDoubleBE=function(r,n,e){return cr(this,r,n,!1,e)};f.prototype.copy=function(r,n,e,t){if(e||(e=0),!t&&t!==0&&(t=this.length),n>=r.length&&(n=r.length),n||(n=0),t>0&&t<e&&(t=e),t===e||r.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),r.length-n<t-e&&(t=r.length-n+e);var o=t-e,u;if(this===r&&e<n&&n<t)for(u=o-1;u>=0;--u)r[u+n]=this[u+e];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(u=0;u<o;++u)r[u+n]=this[u+e];else Uint8Array.prototype.set.call(r,this.subarray(e,e+o),n);return o};f.prototype.fill=function(r,n,e,t){if(typeof r=="string"){if(typeof n=="string"?(t=n,n=0,e=this.length):typeof e=="string"&&(t=e,e=this.length),r.length===1){var o=r.charCodeAt(0);o<256&&(r=o)}if(t!==void 0&&typeof t!="string")throw new TypeError("encoding must be a string");if(typeof t=="string"&&!f.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}else typeof r=="number"&&(r=r&255);if(n<0||this.length<n||this.length<e)throw new RangeError("Out of range index");if(e<=n)return this;n=n>>>0,e=e===void 0?this.length:e>>>0,r||(r=0);var u;if(typeof r=="number")for(u=n;u<e;++u)this[u]=r;else{var a=A(r)?r:M(new f(r,t).toString()),c=a.length;for(u=0;u<e-n;++u)this[u+n]=a[u%c]}return this};var sn=/[^+\/0-9A-Za-z-_]/g;function ln(i){if(i=pn(i).replace(sn,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function pn(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function xn(i){return i<16?"0"+i.toString(16):i.toString(16)}function M(i,r){r=r||1/0;for(var n,e=i.length,t=null,o=[],u=0;u<e;++u){if(n=i.charCodeAt(u),n>55295&&n<57344){if(!t){if(n>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(u+1===e){(r-=3)>-1&&o.push(239,191,189);continue}t=n;continue}if(n<56320){(r-=3)>-1&&o.push(239,191,189),t=n;continue}n=(t-55296<<10|n-56320)+65536}else t&&(r-=3)>-1&&o.push(239,191,189);if(t=null,n<128){if((r-=1)<0)break;o.push(n)}else if(n<2048){if((r-=2)<0)break;o.push(n>>6|192,n&63|128)}else if(n<65536){if((r-=3)<0)break;o.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((r-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return o}function wn(i){for(var r=[],n=0;n<i.length;++n)r.push(i.charCodeAt(n)&255);return r}function gn(i,r){for(var n,e,t,o=[],u=0;u<i.length&&!((r-=2)<0);++u)n=i.charCodeAt(u),e=n>>8,t=n%256,o.push(t),o.push(e);return o}function hr(i){return Wr(ln(i))}function L(i,r,n,e){for(var t=0;t<e&&!(t+n>=r.length||t>=i.length);++t)r[t+n]=i[t];return t}function mn(i){return i!==i}function En(i){return i!=null&&(!!i._isBuffer||sr(i)||An(i))}function sr(i){return!!i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function An(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&sr(i.slice(0,0))}function C(i,r,n,e,t){var o,u,a=t*8-e-1,c=(1<<a)-1,s=c>>1,l=-7,h=n?t-1:0,m=n?-1:1,w=i[r+h];for(h+=m,o=w&(1<<-l)-1,w>>=-l,l+=a;l>0;o=o*256+i[r+h],h+=m,l-=8);for(u=o&(1<<-l)-1,o>>=-l,l+=e;l>0;u=u*256+i[r+h],h+=m,l-=8);if(o===0)o=1-s;else{if(o===c)return u?NaN:(w?-1:1)*(1/0);u=u+Math.pow(2,e),o=o-s}return(w?-1:1)*u*Math.pow(2,o-e)}function lr(i,r,n,e,t,o){var u,a,c,s=o*8-t-1,l=(1<<s)-1,h=l>>1,m=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=e?0:o-1,v=e?1:-1,gr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(a=isNaN(r)?1:0,u=l):(u=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-u))<1&&(u--,c*=2),u+h>=1?r+=m/c:r+=m*Math.pow(2,1-h),r*c>=2&&(u++,c/=2),u+h>=l?(a=0,u=l):u+h>=1?(a=(r*c-1)*Math.pow(2,t),u=u+h):(a=r*Math.pow(2,h-1)*Math.pow(2,t),u=0));t>=8;i[n+w]=a&255,w+=v,a/=256,t-=8);for(u=u<<t|a,s+=t;s>0;i[n+w]=u&255,w+=v,u/=256,s-=8);i[n+w-v]|=gr*128}import Q from"bignumber.js";Q.config({DECIMAL_PLACES:40,EXPONENTIAL_AT:45});function pr(i,r){return k(i,r,"-")}function xr(i,r){return k(i,r,"*")}function wr(i,r){return k(i,r,"/")}function V(i,r){return!!k(i,r,">")}function k(i,r,n){switch(i=new Q(String(i)),r=new Q(String(r)),n.toLowerCase()){case"-":return i.minus(r).toString();case"+":return i.plus(r).toString();case"*":case"x":return i.multipliedBy(r).toString();case"\xF7":case"/":return i.dividedBy(r).toString();case">=":return i.isGreaterThanOrEqualTo(r);case">":return i.isGreaterThan(r);case"<=":return i.isLessThanOrEqualTo(r);case"<":return i.isLessThan(r);case"==":return i.isEqualTo(r);case"mod":return i.modulo(r);default:break}}var Pn=(i,r)=>V(r,0)&&V(i,0)?xr(wr(pr(i,r),r),100):"0";export{Pn as changes24H};
2
- /*! Bundled license information:
3
-
4
- @esbuild-plugins/node-globals-polyfill/Buffer.js:
5
- (*!
6
- * The buffer module from node.js, for the browser.
7
- *
8
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
9
- * @license MIT
10
- *)
11
- */
@@ -1,11 +0,0 @@
1
- function G(){throw new Error("setTimeout has not been defined")}function J(){throw new Error("clearTimeout has not been defined")}var R=G,_=J;typeof globalThis.setTimeout=="function"&&(R=setTimeout);typeof globalThis.clearTimeout=="function"&&(_=clearTimeout);function O(n){if(R===setTimeout)return setTimeout(n,0);if((R===G||!R)&&setTimeout)return R=setTimeout,setTimeout(n,0);try{return R(n,0)}catch{try{return R.call(null,n,0)}catch{return R.call(this,n,0)}}}function lr(n){if(_===clearTimeout)return clearTimeout(n);if((_===J||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(n);try{return _(n)}catch{try{return _.call(null,n)}catch{return _.call(this,n)}}}var y=[],Y=!1,I,S=-1;function pr(){!Y||!I||(Y=!1,I.length?y=I.concat(y):S=-1,y.length&&Q())}function Q(){if(!Y){var n=O(pr);Y=!0;for(var r=y.length;r;){for(I=y,y=[];++S<r;)I&&I[S].run();S=-1,r=y.length}I=null,Y=!1,lr(n)}}function sr(n){var r=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)r[i-1]=arguments[i];y.push(new X(n,r)),y.length===1&&!Y&&O(Q)}function X(n,r){this.fun=n,this.array=r}X.prototype.run=function(){this.fun.apply(null,this.array)};var wr="browser",xr="browser",Er=!0,mr={},Ar=[],gr="",yr={},Tr={},Rr={};function v(){}var _r=v,Ir=v,vr=v,Ur=v,Br=v,dr=v,Yr=v;function Sr(n){throw new Error("process.binding is not supported")}function Pr(){return"/"}function Mr(n){throw new Error("process.chdir is not supported")}function Dr(){return 0}var d=globalThis.performance||{},Cr=d.now||d.mozNow||d.msNow||d.oNow||d.webkitNow||function(){return new Date().getTime()};function kr(n){var r=Cr.call(d)*.001,i=Math.floor(r),e=Math.floor(r%1*1e9);return n&&(i=i-n[0],e=e-n[1],e<0&&(i--,e+=1e9)),[i,e]}var Nr=new Date;function Lr(){var n=new Date,r=n-Nr;return r/1e3}var L={nextTick:sr,title:wr,browser:Er,env:mr,argv:Ar,version:gr,versions:yr,on:_r,addListener:Ir,once:vr,off:Ur,removeListener:Br,removeAllListeners:dr,emit:Yr,binding:Sr,cwd:Pr,chdir:Mr,umask:Dr,hrtime:kr,platform:xr,release:Tr,config:Rr,uptime:Lr},z={};Object.keys(z).forEach(n=>{let r=n.split("."),i=L;for(let e=0;e<r.length;e++){let t=r[e];e===r.length-1?i[t]=z[n]:i=i[t]||(i[t]={})}});var A=[],E=[],Fr=typeof Uint8Array<"u"?Uint8Array:Array,W=!1;function $(){W=!0;for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,i=n.length;r<i;++r)A[r]=n[r],E[n.charCodeAt(r)]=r;E[45]=62,E[95]=63}function Wr(n){W||$();var r,i,e,t,f,u,h=n.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");f=n[h-2]==="="?2:n[h-1]==="="?1:0,u=new Fr(h*3/4-f),e=f>0?h-4:h;var a=0;for(r=0,i=0;r<e;r+=4,i+=3)t=E[n.charCodeAt(r)]<<18|E[n.charCodeAt(r+1)]<<12|E[n.charCodeAt(r+2)]<<6|E[n.charCodeAt(r+3)],u[a++]=t>>16&255,u[a++]=t>>8&255,u[a++]=t&255;return f===2?(t=E[n.charCodeAt(r)]<<2|E[n.charCodeAt(r+1)]>>4,u[a++]=t&255):f===1&&(t=E[n.charCodeAt(r)]<<10|E[n.charCodeAt(r+1)]<<4|E[n.charCodeAt(r+2)]>>2,u[a++]=t>>8&255,u[a++]=t&255),u}function Hr(n){return A[n>>18&63]+A[n>>12&63]+A[n>>6&63]+A[n&63]}function Vr(n,r,i){for(var e,t=[],f=r;f<i;f+=3)e=(n[f]<<16)+(n[f+1]<<8)+n[f+2],t.push(Hr(e));return t.join("")}function q(n){W||$();for(var r,i=n.length,e=i%3,t="",f=[],u=16383,h=0,a=i-e;h<a;h+=u)f.push(Vr(n,h,h+u>a?a:h+u));return e===1?(r=n[i-1],t+=A[r>>2],t+=A[r<<4&63],t+="=="):e===2&&(r=(n[i-2]<<8)+n[i-1],t+=A[r>>10],t+=A[r>>4&63],t+=A[r<<2&63],t+="="),f.push(t),f.join("")}o.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;function P(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function T(n,r){if(P()<r)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(r),n.__proto__=o.prototype):(n===null&&(n=new o(r)),n.length=r),n}function o(n,r,i){if(!o.TYPED_ARRAY_SUPPORT&&!(this instanceof o))return new o(n,r,i);if(typeof n=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return H(this,n)}return b(this,n,r,i)}o.poolSize=8192;o._augment=function(n){return n.__proto__=o.prototype,n};function b(n,r,i,e){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer?Jr(n,r,i,e):typeof r=="string"?Gr(n,r,i):Or(n,r)}o.from=function(n,r,i){return b(null,n,r,i)};o.kMaxLength=P();o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&o[Symbol.species]);function j(n){if(typeof n!="number")throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function zr(n,r,i,e){return j(r),r<=0?T(n,r):i!==void 0?typeof e=="string"?T(n,r).fill(i,e):T(n,r).fill(i):T(n,r)}o.alloc=function(n,r,i){return zr(null,n,r,i)};function H(n,r){if(j(r),n=T(n,r<0?0:V(r)|0),!o.TYPED_ARRAY_SUPPORT)for(var i=0;i<r;++i)n[i]=0;return n}o.allocUnsafe=function(n){return H(null,n)};o.allocUnsafeSlow=function(n){return H(null,n)};function Gr(n,r,i){if((typeof i!="string"||i==="")&&(i="utf8"),!o.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var e=rr(r,i)|0;n=T(n,e);var t=n.write(r,i);return t!==e&&(n=n.slice(0,t)),n}function F(n,r){var i=r.length<0?0:V(r.length)|0;n=T(n,i);for(var e=0;e<i;e+=1)n[e]=r[e]&255;return n}function Jr(n,r,i,e){if(r.byteLength,i<0||r.byteLength<i)throw new RangeError("'offset' is out of bounds");if(r.byteLength<i+(e||0))throw new RangeError("'length' is out of bounds");return i===void 0&&e===void 0?r=new Uint8Array(r):e===void 0?r=new Uint8Array(r,i):r=new Uint8Array(r,i,e),o.TYPED_ARRAY_SUPPORT?(n=r,n.__proto__=o.prototype):n=F(n,r),n}function Or(n,r){if(g(r)){var i=V(r.length)|0;return n=T(n,i),n.length===0||r.copy(n,0,0,i),n}if(r){if(typeof ArrayBuffer<"u"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||ci(r.length)?T(n,0):F(n,r);if(r.type==="Buffer"&&Array.isArray(r.data))return F(n,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function V(n){if(n>=P())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+P().toString(16)+" bytes");return n|0}o.isBuffer=li;function g(n){return!!(n!=null&&n._isBuffer)}o.compare=function(r,i){if(!g(r)||!g(i))throw new TypeError("Arguments must be Buffers");if(r===i)return 0;for(var e=r.length,t=i.length,f=0,u=Math.min(e,t);f<u;++f)if(r[f]!==i[f]){e=r[f],t=i[f];break}return e<t?-1:t<e?1:0};o.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}};o.concat=function(r,i){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return o.alloc(0);var e;if(i===void 0)for(i=0,e=0;e<r.length;++e)i+=r[e].length;var t=o.allocUnsafe(i),f=0;for(e=0;e<r.length;++e){var u=r[e];if(!g(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(t,f),f+=u.length}return t};function rr(n,r){if(g(n))return n.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;typeof n!="string"&&(n=""+n);var i=n.length;if(i===0)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return M(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return or(n).length;default:if(e)return M(n).length;r=(""+r).toLowerCase(),e=!0}}o.byteLength=rr;function Qr(n,r,i){var e=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,r>>>=0,i<=r))return"";for(n||(n="utf8");;)switch(n){case"hex":return ni(this,r,i);case"utf8":case"utf-8":return er(this,r,i);case"ascii":return ri(this,r,i);case"latin1":case"binary":return ii(this,r,i);case"base64":return br(this,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ei(this,r,i);default:if(e)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),e=!0}}o.prototype._isBuffer=!0;function U(n,r,i){var e=n[r];n[r]=n[i],n[i]=e}o.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 i=0;i<r;i+=2)U(this,i,i+1);return this};o.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 i=0;i<r;i+=4)U(this,i,i+3),U(this,i+1,i+2);return this};o.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 i=0;i<r;i+=8)U(this,i,i+7),U(this,i+1,i+6),U(this,i+2,i+5),U(this,i+3,i+4);return this};o.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?er(this,0,r):Qr.apply(this,arguments)};o.prototype.equals=function(r){if(!g(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:o.compare(this,r)===0};o.prototype.compare=function(r,i,e,t,f){if(!g(r))throw new TypeError("Argument must be a Buffer");if(i===void 0&&(i=0),e===void 0&&(e=r?r.length:0),t===void 0&&(t=0),f===void 0&&(f=this.length),i<0||e>r.length||t<0||f>this.length)throw new RangeError("out of range index");if(t>=f&&i>=e)return 0;if(t>=f)return-1;if(i>=e)return 1;if(i>>>=0,e>>>=0,t>>>=0,f>>>=0,this===r)return 0;for(var u=f-t,h=e-i,a=Math.min(u,h),l=this.slice(t,f),p=r.slice(i,e),c=0;c<a;++c)if(l[c]!==p[c]){u=l[c],h=p[c];break}return u<h?-1:h<u?1:0};function ir(n,r,i,e,t){if(n.length===0)return-1;if(typeof i=="string"?(e=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=t?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(t)return-1;i=n.length-1}else if(i<0)if(t)i=0;else return-1;if(typeof r=="string"&&(r=o.from(r,e)),g(r))return r.length===0?-1:Z(n,r,i,e,t);if(typeof r=="number")return r=r&255,o.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?t?Uint8Array.prototype.indexOf.call(n,r,i):Uint8Array.prototype.lastIndexOf.call(n,r,i):Z(n,[r],i,e,t);throw new TypeError("val must be string, number or Buffer")}function Z(n,r,i,e,t){var f=1,u=n.length,h=r.length;if(e!==void 0&&(e=String(e).toLowerCase(),e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le")){if(n.length<2||r.length<2)return-1;f=2,u/=2,h/=2,i/=2}function a(x,B){return f===1?x[B]:x.readUInt16BE(B*f)}var l;if(t){var p=-1;for(l=i;l<u;l++)if(a(n,l)===a(r,p===-1?0:l-p)){if(p===-1&&(p=l),l-p+1===h)return p*f}else p!==-1&&(l-=l-p),p=-1}else for(i+h>u&&(i=u-h),l=i;l>=0;l--){for(var c=!0,m=0;m<h;m++)if(a(n,l+m)!==a(r,m)){c=!1;break}if(c)return l}return-1}o.prototype.includes=function(r,i,e){return this.indexOf(r,i,e)!==-1};o.prototype.indexOf=function(r,i,e){return ir(this,r,i,e,!0)};o.prototype.lastIndexOf=function(r,i,e){return ir(this,r,i,e,!1)};function Xr(n,r,i,e){i=Number(i)||0;var t=n.length-i;e?(e=Number(e),e>t&&(e=t)):e=t;var f=r.length;if(f%2!==0)throw new TypeError("Invalid hex string");e>f/2&&(e=f/2);for(var u=0;u<e;++u){var h=parseInt(r.substr(u*2,2),16);if(isNaN(h))return u;n[i+u]=h}return u}function qr(n,r,i,e){return k(M(r,n.length-i),n,i,e)}function nr(n,r,i,e){return k(hi(r),n,i,e)}function Zr(n,r,i,e){return nr(n,r,i,e)}function Kr(n,r,i,e){return k(or(r),n,i,e)}function $r(n,r,i,e){return k(ai(r,n.length-i),n,i,e)}o.prototype.write=function(r,i,e,t){if(i===void 0)t="utf8",e=this.length,i=0;else if(e===void 0&&typeof i=="string")t=i,e=this.length,i=0;else if(isFinite(i))i=i|0,isFinite(e)?(e=e|0,t===void 0&&(t="utf8")):(t=e,e=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var f=this.length-i;if((e===void 0||e>f)&&(e=f),r.length>0&&(e<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var u=!1;;)switch(t){case"hex":return Xr(this,r,i,e);case"utf8":case"utf-8":return qr(this,r,i,e);case"ascii":return nr(this,r,i,e);case"latin1":case"binary":return Zr(this,r,i,e);case"base64":return Kr(this,r,i,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $r(this,r,i,e);default:if(u)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),u=!0}};o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function br(n,r,i){return r===0&&i===n.length?q(n):q(n.slice(r,i))}function er(n,r,i){i=Math.min(n.length,i);for(var e=[],t=r;t<i;){var f=n[t],u=null,h=f>239?4:f>223?3:f>191?2:1;if(t+h<=i){var a,l,p,c;switch(h){case 1:f<128&&(u=f);break;case 2:a=n[t+1],(a&192)===128&&(c=(f&31)<<6|a&63,c>127&&(u=c));break;case 3:a=n[t+1],l=n[t+2],(a&192)===128&&(l&192)===128&&(c=(f&15)<<12|(a&63)<<6|l&63,c>2047&&(c<55296||c>57343)&&(u=c));break;case 4:a=n[t+1],l=n[t+2],p=n[t+3],(a&192)===128&&(l&192)===128&&(p&192)===128&&(c=(f&15)<<18|(a&63)<<12|(l&63)<<6|p&63,c>65535&&c<1114112&&(u=c))}}u===null?(u=65533,h=1):u>65535&&(u-=65536,e.push(u>>>10&1023|55296),u=56320|u&1023),e.push(u),t+=h}return jr(e)}var K=4096;function jr(n){var r=n.length;if(r<=K)return String.fromCharCode.apply(String,n);for(var i="",e=0;e<r;)i+=String.fromCharCode.apply(String,n.slice(e,e+=K));return i}function ri(n,r,i){var e="";i=Math.min(n.length,i);for(var t=r;t<i;++t)e+=String.fromCharCode(n[t]&127);return e}function ii(n,r,i){var e="";i=Math.min(n.length,i);for(var t=r;t<i;++t)e+=String.fromCharCode(n[t]);return e}function ni(n,r,i){var e=n.length;(!r||r<0)&&(r=0),(!i||i<0||i>e)&&(i=e);for(var t="",f=r;f<i;++f)t+=oi(n[f]);return t}function ei(n,r,i){for(var e=n.slice(r,i),t="",f=0;f<e.length;f+=2)t+=String.fromCharCode(e[f]+e[f+1]*256);return t}o.prototype.slice=function(r,i){var e=this.length;r=~~r,i=i===void 0?e:~~i,r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),i<0?(i+=e,i<0&&(i=0)):i>e&&(i=e),i<r&&(i=r);var t;if(o.TYPED_ARRAY_SUPPORT)t=this.subarray(r,i),t.__proto__=o.prototype;else{var f=i-r;t=new o(f,void 0);for(var u=0;u<f;++u)t[u]=this[u+r]}return t};function s(n,r,i){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+r>i)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(r,i,e){r=r|0,i=i|0,e||s(r,i,this.length);for(var t=this[r],f=1,u=0;++u<i&&(f*=256);)t+=this[r+u]*f;return t};o.prototype.readUIntBE=function(r,i,e){r=r|0,i=i|0,e||s(r,i,this.length);for(var t=this[r+--i],f=1;i>0&&(f*=256);)t+=this[r+--i]*f;return t};o.prototype.readUInt8=function(r,i){return i||s(r,1,this.length),this[r]};o.prototype.readUInt16LE=function(r,i){return i||s(r,2,this.length),this[r]|this[r+1]<<8};o.prototype.readUInt16BE=function(r,i){return i||s(r,2,this.length),this[r]<<8|this[r+1]};o.prototype.readUInt32LE=function(r,i){return i||s(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};o.prototype.readUInt32BE=function(r,i){return i||s(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};o.prototype.readIntLE=function(r,i,e){r=r|0,i=i|0,e||s(r,i,this.length);for(var t=this[r],f=1,u=0;++u<i&&(f*=256);)t+=this[r+u]*f;return f*=128,t>=f&&(t-=Math.pow(2,8*i)),t};o.prototype.readIntBE=function(r,i,e){r=r|0,i=i|0,e||s(r,i,this.length);for(var t=i,f=1,u=this[r+--t];t>0&&(f*=256);)u+=this[r+--t]*f;return f*=128,u>=f&&(u-=Math.pow(2,8*i)),u};o.prototype.readInt8=function(r,i){return i||s(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};o.prototype.readInt16LE=function(r,i){i||s(r,2,this.length);var e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e};o.prototype.readInt16BE=function(r,i){i||s(r,2,this.length);var e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e};o.prototype.readInt32LE=function(r,i){return i||s(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};o.prototype.readInt32BE=function(r,i){return i||s(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};o.prototype.readFloatLE=function(r,i){return i||s(r,4,this.length),N(this,r,!0,23,4)};o.prototype.readFloatBE=function(r,i){return i||s(r,4,this.length),N(this,r,!1,23,4)};o.prototype.readDoubleLE=function(r,i){return i||s(r,8,this.length),N(this,r,!0,52,8)};o.prototype.readDoubleBE=function(r,i){return i||s(r,8,this.length),N(this,r,!1,52,8)};function w(n,r,i,e,t,f){if(!g(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>t||r<f)throw new RangeError('"value" argument is out of bounds');if(i+e>n.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(r,i,e,t){if(r=+r,i=i|0,e=e|0,!t){var f=Math.pow(2,8*e)-1;w(this,r,i,e,f,0)}var u=1,h=0;for(this[i]=r&255;++h<e&&(u*=256);)this[i+h]=r/u&255;return i+e};o.prototype.writeUIntBE=function(r,i,e,t){if(r=+r,i=i|0,e=e|0,!t){var f=Math.pow(2,8*e)-1;w(this,r,i,e,f,0)}var u=e-1,h=1;for(this[i+u]=r&255;--u>=0&&(h*=256);)this[i+u]=r/h&255;return i+e};o.prototype.writeUInt8=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,1,255,0),o.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[i]=r&255,i+1};function D(n,r,i,e){r<0&&(r=65535+r+1);for(var t=0,f=Math.min(n.length-i,2);t<f;++t)n[i+t]=(r&255<<8*(e?t:1-t))>>>(e?t:1-t)*8}o.prototype.writeUInt16LE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[i]=r&255,this[i+1]=r>>>8):D(this,r,i,!0),i+2};o.prototype.writeUInt16BE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[i]=r>>>8,this[i+1]=r&255):D(this,r,i,!1),i+2};function C(n,r,i,e){r<0&&(r=4294967295+r+1);for(var t=0,f=Math.min(n.length-i,4);t<f;++t)n[i+t]=r>>>(e?t:3-t)*8&255}o.prototype.writeUInt32LE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=r&255):C(this,r,i,!0),i+4};o.prototype.writeUInt32BE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255):C(this,r,i,!1),i+4};o.prototype.writeIntLE=function(r,i,e,t){if(r=+r,i=i|0,!t){var f=Math.pow(2,8*e-1);w(this,r,i,e,f-1,-f)}var u=0,h=1,a=0;for(this[i]=r&255;++u<e&&(h*=256);)r<0&&a===0&&this[i+u-1]!==0&&(a=1),this[i+u]=(r/h>>0)-a&255;return i+e};o.prototype.writeIntBE=function(r,i,e,t){if(r=+r,i=i|0,!t){var f=Math.pow(2,8*e-1);w(this,r,i,e,f-1,-f)}var u=e-1,h=1,a=0;for(this[i+u]=r&255;--u>=0&&(h*=256);)r<0&&a===0&&this[i+u+1]!==0&&(a=1),this[i+u]=(r/h>>0)-a&255;return i+e};o.prototype.writeInt8=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,1,127,-128),o.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[i]=r&255,i+1};o.prototype.writeInt16LE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[i]=r&255,this[i+1]=r>>>8):D(this,r,i,!0),i+2};o.prototype.writeInt16BE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[i]=r>>>8,this[i+1]=r&255):D(this,r,i,!1),i+2};o.prototype.writeInt32LE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[i]=r&255,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24):C(this,r,i,!0),i+4};o.prototype.writeInt32BE=function(r,i,e){return r=+r,i=i|0,e||w(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),o.TYPED_ARRAY_SUPPORT?(this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255):C(this,r,i,!1),i+4};function tr(n,r,i,e,t,f){if(i+e>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function fr(n,r,i,e,t){return t||tr(n,r,i,4,34028234663852886e22,-34028234663852886e22),ar(n,r,i,e,23,4),i+4}o.prototype.writeFloatLE=function(r,i,e){return fr(this,r,i,!0,e)};o.prototype.writeFloatBE=function(r,i,e){return fr(this,r,i,!1,e)};function ur(n,r,i,e,t){return t||tr(n,r,i,8,17976931348623157e292,-17976931348623157e292),ar(n,r,i,e,52,8),i+8}o.prototype.writeDoubleLE=function(r,i,e){return ur(this,r,i,!0,e)};o.prototype.writeDoubleBE=function(r,i,e){return ur(this,r,i,!1,e)};o.prototype.copy=function(r,i,e,t){if(e||(e=0),!t&&t!==0&&(t=this.length),i>=r.length&&(i=r.length),i||(i=0),t>0&&t<e&&(t=e),t===e||r.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),r.length-i<t-e&&(t=r.length-i+e);var f=t-e,u;if(this===r&&e<i&&i<t)for(u=f-1;u>=0;--u)r[u+i]=this[u+e];else if(f<1e3||!o.TYPED_ARRAY_SUPPORT)for(u=0;u<f;++u)r[u+i]=this[u+e];else Uint8Array.prototype.set.call(r,this.subarray(e,e+f),i);return f};o.prototype.fill=function(r,i,e,t){if(typeof r=="string"){if(typeof i=="string"?(t=i,i=0,e=this.length):typeof e=="string"&&(t=e,e=this.length),r.length===1){var f=r.charCodeAt(0);f<256&&(r=f)}if(t!==void 0&&typeof t!="string")throw new TypeError("encoding must be a string");if(typeof t=="string"&&!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}else typeof r=="number"&&(r=r&255);if(i<0||this.length<i||this.length<e)throw new RangeError("Out of range index");if(e<=i)return this;i=i>>>0,e=e===void 0?this.length:e>>>0,r||(r=0);var u;if(typeof r=="number")for(u=i;u<e;++u)this[u]=r;else{var h=g(r)?r:M(new o(r,t).toString()),a=h.length;for(u=0;u<e-i;++u)this[u+i]=h[u%a]}return this};var ti=/[^+\/0-9A-Za-z-_]/g;function fi(n){if(n=ui(n).replace(ti,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function ui(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function oi(n){return n<16?"0"+n.toString(16):n.toString(16)}function M(n,r){r=r||1/0;for(var i,e=n.length,t=null,f=[],u=0;u<e;++u){if(i=n.charCodeAt(u),i>55295&&i<57344){if(!t){if(i>56319){(r-=3)>-1&&f.push(239,191,189);continue}else if(u+1===e){(r-=3)>-1&&f.push(239,191,189);continue}t=i;continue}if(i<56320){(r-=3)>-1&&f.push(239,191,189),t=i;continue}i=(t-55296<<10|i-56320)+65536}else t&&(r-=3)>-1&&f.push(239,191,189);if(t=null,i<128){if((r-=1)<0)break;f.push(i)}else if(i<2048){if((r-=2)<0)break;f.push(i>>6|192,i&63|128)}else if(i<65536){if((r-=3)<0)break;f.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((r-=4)<0)break;f.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return f}function hi(n){for(var r=[],i=0;i<n.length;++i)r.push(n.charCodeAt(i)&255);return r}function ai(n,r){for(var i,e,t,f=[],u=0;u<n.length&&!((r-=2)<0);++u)i=n.charCodeAt(u),e=i>>8,t=i%256,f.push(t),f.push(e);return f}function or(n){return Wr(fi(n))}function k(n,r,i,e){for(var t=0;t<e&&!(t+i>=r.length||t>=n.length);++t)r[t+i]=n[t];return t}function ci(n){return n!==n}function li(n){return n!=null&&(!!n._isBuffer||hr(n)||pi(n))}function hr(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function pi(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&hr(n.slice(0,0))}function N(n,r,i,e,t){var f,u,h=t*8-e-1,a=(1<<h)-1,l=a>>1,p=-7,c=i?t-1:0,m=i?-1:1,x=n[r+c];for(c+=m,f=x&(1<<-p)-1,x>>=-p,p+=h;p>0;f=f*256+n[r+c],c+=m,p-=8);for(u=f&(1<<-p)-1,f>>=-p,p+=e;p>0;u=u*256+n[r+c],c+=m,p-=8);if(f===0)f=1-l;else{if(f===a)return u?NaN:(x?-1:1)*(1/0);u=u+Math.pow(2,e),f=f-l}return(x?-1:1)*u*Math.pow(2,f-e)}function ar(n,r,i,e,t,f){var u,h,a,l=f*8-t-1,p=(1<<l)-1,c=p>>1,m=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=e?0:f-1,B=e?1:-1,cr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,u=p):(u=Math.floor(Math.log(r)/Math.LN2),r*(a=Math.pow(2,-u))<1&&(u--,a*=2),u+c>=1?r+=m/a:r+=m*Math.pow(2,1-c),r*a>=2&&(u++,a/=2),u+c>=p?(h=0,u=p):u+c>=1?(h=(r*a-1)*Math.pow(2,t),u=u+c):(h=r*Math.pow(2,c-1)*Math.pow(2,t),u=0));t>=8;n[i+x]=h&255,x+=B,h/=256,t-=8);for(u=u<<t|h,l+=t;l>0;n[i+x]=u&255,x+=B,u/=256,l-=8);n[i+x-B]|=cr*128}
2
- /*! Bundled license information:
3
-
4
- @esbuild-plugins/node-globals-polyfill/Buffer.js:
5
- (*!
6
- * The buffer module from node.js, for the browser.
7
- *
8
- * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
9
- * @license MIT
10
- *)
11
- */
@@ -1 +0,0 @@
1
- var L=Object.create;var b=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var _=Object.getOwnPropertyNames;var U=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty;var R=(n,r)=>{for(var t in r)b(n,t,{get:r[t],enumerable:!0})},p=(n,r,t,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of _(r))!O.call(n,e)&&e!==t&&b(n,e,{get:()=>r[e],enumerable:!(s=A(r,e))||s.enumerable});return n};var h=(n,r,t)=>(t=n!=null?L(U(n)):{},p(r||!n||!n.__esModule?b(t,"default",{value:n,enumerable:!0}):t,n)),F=n=>p(b({},"__esModule",{value:!0}),n);var Z={};R(Z,{Operations:()=>d,absolute:()=>D,bn_operation:()=>u,ceil:()=>I,convertFromBaseUnits:()=>k,convertToBaseUnits:()=>Y,divide:()=>q,equal:()=>a,floor:()=>w,greaterThan:()=>Q,greaterThanOrEqual:()=>G,lessThan:()=>V,lessThanOrEqual:()=>y,minus:()=>H,mod:()=>S,modZero:()=>v,multiply:()=>E,plus:()=>B,round:()=>M,roundNumber:()=>l,toFixed:()=>P,toUsd:()=>C});module.exports=F(Z);var i=h(require("bignumber.js"));i.default.config({DECIMAL_PLACES:40,EXPONENTIAL_AT:45});var d=(o=>(o.MINUS="-",o.PLUS="+",o.MULTIPLY="*",o.DIVIDE="/",o.GREATER_THAN_OR_EQUAL=">=",o.GREATER_THAN=">",o.LESS_THAN_OR_EQUAL="<=",o.LESS_THAN="<",o.EQUAL="==",o.MOD="mod",o))(d||{});function D(n){return new i.default(n).abs().toString()}function I(n){let t=new i.default(String(n)).integerValue(i.default.ROUND_CEIL).toString();return a(n,t)||console.log("Ceil value",{value:n,res:t}),t}function P(n,r,t=!1){let s=new i.default(String(n)),e;if(t){let g=s.toFixed(),m=g.indexOf(".");if(m>=0){let T=g.slice(m+1),c=0;for(let o of T)if(o==="0")c++;else break;let N=c+1;e=s.toFixed(N,i.default.ROUND_UP)}else e=s.toFixed(0)}else e=s.toFixed(r);return console.log("Fixed value",{value:n,res:e}),e}function w(n){let t=new i.default(String(n)).integerValue(i.default.ROUND_FLOOR).toString();return console.log("Floor value",{value:n,res:t}),t}function M(n){let t=new i.default(String(n)).integerValue(i.default.ROUND_HALF_UP).toString();return console.log("Round value",{value:n,res:t}),t}function B(n,r){return u(n,r,"+")}function H(n,r){return u(n,r,"-")}function E(n,r){return u(n,r,"*")}function C(n,r){return E(n,r||0)}function q(n,r){return u(n,r,"/")}function G(n,r){return!!u(n,r,">=")}function Q(n,r){return!!u(n,r,">")}function y(n,r){return!!u(n,r,"<=")}function V(n,r){return!!u(n,r,"<")}function a(n,r){return!!u(n,r,"==")}function S(n,r){return u(n,r,"mod")}function v(n,r){return a(S(n,r),0)}function u(n,r,t){switch(n=new i.default(String(n)),r=new i.default(String(r)),t.toLowerCase()){case"-":return n.minus(r).toString();case"+":return n.plus(r).toString();case"*":case"x":return n.multipliedBy(r).toString();case"\xF7":case"/":return n.dividedBy(r).toString();case">=":return n.isGreaterThanOrEqualTo(r);case">":return n.isGreaterThan(r);case"<=":return n.isLessThanOrEqualTo(r);case"<":return n.isLessThan(r);case"==":return n.isEqualTo(r);case"mod":return n.modulo(r);default:break}}function x(n){if(n.toString().includes("e")){let r=n.toString().split("e");return[parseFloat(r[0]),parseFloat(r[1])]}return[n,0]}function f(n,r){return n+(r<0?`e${r}`:`e+${r}`)}function l({decimalPlaces:n=0},r){if(n>0){let[t,s]=x(r),[e,g]=x(Math.round(Number(f(t,s+n))));return Number(f(e,g-n))}return Math.round(r)}function k(n,r){let t=Number(n);return l({decimalPlaces:t},Math.pow(10,-t)*Number(r))}function Y(n,r){let t=Math.pow(10,Number(n))*Number(r);return l({decimalPlaces:0},t)}0&&(module.exports={Operations,absolute,bn_operation,ceil,convertFromBaseUnits,convertToBaseUnits,divide,equal,floor,greaterThan,greaterThanOrEqual,lessThan,lessThanOrEqual,minus,mod,modZero,multiply,plus,round,roundNumber,toFixed,toUsd});
@@ -1 +0,0 @@
1
- var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var o=(e,s)=>{for(var d in s)i(e,d,{get:s[d],enumerable:!0})},r=(e,s,d,t)=>{if(s&&typeof s=="object"||typeof s=="function")for(let a of n(s))!c.call(e,a)&&a!==d&&i(e,a,{get:()=>s[a],enumerable:!(t=m(s,a))||t.enumerable});return e};var x=e=>r(i({},"__esModule",{value:!0}),e);var A={};o(A,{mapToCodexAssetDto:()=>I});module.exports=x(A);function I(e,s){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:s?s(e):!1}}0&&(module.exports={mapToCodexAssetDto});
@@ -1 +0,0 @@
1
- var a=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var C=(n,e)=>{for(var d in e)a(n,d,{get:e[d],enumerable:!0})},c=(n,e,d,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of l(e))!I.call(n,o)&&o!==d&&a(n,o,{get:()=>e[o],enumerable:!(t=i(e,o))||t.enumerable});return n};var h=n=>c(a({},"__esModule",{value:!0}),n);var r={};C(r,{mapToCodexBalanceDto:()=>k});module.exports=h(r);function k(n){return{hash:n.hash,loginAddress:n.loginAddress,loginChainId:n.loginChainId,tokenId:n.token?.id,tokenAddress:n.tokenId,tokenChainId:n.tokenChainId,amount:n.amount,lockedAmount:n.lockedAmount}}0&&(module.exports={mapToCodexBalanceDto});
@@ -1 +0,0 @@
1
- var _=Object.create;var i=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var C=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},a=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of N(t))!R.call(e,p)&&p!==r&&i(e,p,{get:()=>t[p],enumerable:!(o=T(t,p))||o.enumerable});return e};var x=(e,t,r)=>(r=e!=null?_(O(e)):{},a(t||!e||!e.__esModule?i(r,"default",{value:e,enumerable:!0}):r,e)),g=e=>a(i({},"__esModule",{value:!0}),e);var y={};C(y,{isMaker:()=>A,mapToCodexAssetDto:()=>D,mapToCodexBalanceDto:()=>L,mapToOrderTradeDto:()=>P,mapToUserTradeDto:()=>F});module.exports=g(y);function D(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 L(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 c=(r=>(r[r.Buy=0]="Buy",r[r.Sell=1]="Sell",r))(c||{}),n=c;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||{}),m=(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))(m||{}),re={...l,...m};function E(e){switch(e){case n.Buy:return"B";case n.Sell:return"S";default:throw new Error("Unknown order side type: "+e)}}var d=(e,t)=>String(e).toLowerCase()===String(t).toLowerCase();var s=x(require("bignumber.js"));s.default.config({DECIMAL_PLACES:40,EXPONENTIAL_AT:45});function h(e,t){return S(e,t,"+")}function S(e,t,r){switch(e=new s.default(String(e)),t=new s.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,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&&E(o.side),...u(t,r),...b(e,o)}}function P(e,t,r,o,p){return{id:e.id,pairId:e.pairId,pair:r||e.pair?.pairKey,...u(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(I=>b(I,e))}}function u(e,t){return{baseTokenId:e?.id,baseTokenDecimal:e?.decimals,quoteTokenId:t?.id,quoteTokenDecimal:t?.decimals}}function b(e,t){return{tradeId:e.tradeId,status:e.txStatus,amount:e.amount,total:e.total,price:e.price,fee:t&&e.tradeFees.filter(r=>d(r.address,t.userId)).reduce((r,o)=>h(r,o.fee),"0"),createdAt:e.createdAt?.getTime(),updatedAt:e.updatedAt?.getTime(),isBuyer:t&&t.side===n.Buy,isMaker:t&&A(t.side,e.tradeSide)}}function A(e,t){return e===n.Buy&&t===n.Sell||e===n.Sell&&t===n.Buy}0&&(module.exports={isMaker,mapToCodexAssetDto,mapToCodexBalanceDto,mapToOrderTradeDto,mapToUserTradeDto});
@@ -1 +0,0 @@
1
- var T=Object.create;var i=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var O=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var C=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},a=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of N(t))!R.call(e,p)&&p!==r&&i(e,p,{get:()=>t[p],enumerable:!(o=I(t,p))||o.enumerable});return e};var x=(e,t,r)=>(r=e!=null?T(O(e)):{},a(t||!e||!e.__esModule?i(r,"default",{value:e,enumerable:!0}):r,e)),g=e=>a(i({},"__esModule",{value:!0}),e);var F={};C(F,{isMaker:()=>A,mapToOrderTradeDto:()=>S,mapToUserTradeDto:()=>f});module.exports=g(F);var c=(r=>(r[r.Buy=0]="Buy",r[r.Sell=1]="Sell",r))(c||{}),n=c;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||{}),m=(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))(m||{}),$={...l,...m};function E(e){switch(e){case n.Buy:return"B";case n.Sell:return"S";default:throw new Error("Unknown order side type: "+e)}}var d=(e,t)=>String(e).toLowerCase()===String(t).toLowerCase();var s=x(require("bignumber.js"));s.default.config({DECIMAL_PLACES:40,EXPONENTIAL_AT:45});function h(e,t){return L(e,t,"+")}function L(e,t,r){switch(e=new s.default(String(e)),t=new s.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,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&&E(o.side),...u(t,r),...b(e,o)}}function S(e,t,r,o,p){return{id:e.id,pairId:e.pairId,pair:r||e.pair?.pairKey,...u(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(_=>b(_,e))}}function u(e,t){return{baseTokenId:e?.id,baseTokenDecimal:e?.decimals,quoteTokenId:t?.id,quoteTokenDecimal:t?.decimals}}function b(e,t){return{tradeId:e.tradeId,status:e.txStatus,amount:e.amount,total:e.total,price:e.price,fee:t&&e.tradeFees.filter(r=>d(r.address,t.userId)).reduce((r,o)=>h(r,o.fee),"0"),createdAt:e.createdAt?.getTime(),updatedAt:e.updatedAt?.getTime(),isBuyer:t&&t.side===n.Buy,isMaker:t&&A(t.side,e.tradeSide)}}function A(e,t){return e===n.Buy&&t===n.Sell||e===n.Sell&&t===n.Buy}0&&(module.exports={isMaker,mapToOrderTradeDto,mapToUserTradeDto});
@@ -1 +0,0 @@
1
- var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var w=Object.prototype.hasOwnProperty;var b=(o,r)=>{for(var s in r)t(o,s,{get:r[s],enumerable:!0})},c=(o,r,s,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of a(r))!w.call(o,e)&&e!==s&&t(o,e,{get:()=>r[e],enumerable:!(n=i(r,e))||n.enumerable});return o};var d=o=>c(t({},"__esModule",{value:!0}),o);var g={};b(g,{assert:()=>f});module.exports=d(g);var f=(o,r)=>{if(!o)throw new Error(`Assertion error: ${r}`)};0&&(module.exports={assert});
@@ -1 +0,0 @@
1
- var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var g=(e,r)=>{for(var t in r)s(e,t,{get:r[t],enumerable:!0})},l=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of h(r))!c.call(e,o)&&o!==t&&s(e,o,{get:()=>r[o],enumerable:!(n=u(r,o))||n.enumerable});return e};var m=e=>l(s({},"__esModule",{value:!0}),e);var A={};g(A,{cutEvent:()=>X,equalIgnoreCase:()=>f,getDomains:()=>w,getRandomInt:()=>y,listDateFormat:()=>p,maskingString:()=>i,removeField:()=>d});module.exports=m(A);var p=e=>{let r=new Date(e),t=r.toLocaleDateString("default",{year:"numeric",month:"numeric",day:"numeric"}),n=r.toLocaleTimeString("en-US",{hour12:!0,hour:"2-digit",minute:"2-digit"});return t+" "+n},f=(e,r)=>String(e).toLowerCase()===String(r).toLowerCase();function y(e,r){return e=Math.ceil(e),r=Math.floor(r),Math.floor(Math.random()*(r-e+1))+e}function w(e){let r=[],t=e.split(".");for(let n=0;n<t.length-1;n++)r.push(t.slice(n).join("."));return r}function X(e){let r=e.headers&&a({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":i(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:i(e.headers.accessToken),companyId:e.headers.companyId,seasonId:e.headers.seasonId}),t=e.requestContext&&a({identity:e.requestContext.identity&&a({userAgent:e.requestContext.identity.userAgent,sourceIp:e.requestContext.identity.sourceIp}),domainName:e.requestContext.domainName});return a({manage:e.manage,path:e.path,httpMethod:e.httpMethod,headers:r,requestContext:t})}function i(e){if(!e?.length)return e;let r=Math.round(e.length/3),t=r,n=e.length-r;return e.substring(0,t)+"*".repeat(r)+e.substring(n)}function d(e,r){return Array.isArray(e)?e.map(t=>d(t,r)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).filter(([t])=>t!==r).map(([t,n])=>[t,d(n,r)])):e}function a(e){return Object.fromEntries(Object.entries(e).filter(([,r])=>r!==void 0))}0&&(module.exports={cutEvent,equalIgnoreCase,getDomains,getRandomInt,listDateFormat,maskingString,removeField});
@@ -1 +0,0 @@
1
- var r=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var c=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},d=(e,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of a(t))!b.call(e,o)&&o!==n&&r(e,o,{get:()=>t[o],enumerable:!(l=s(t,o))||l.enumerable});return e};var g=e=>d(r({},"__esModule",{value:!0}),e);var m={};c(m,{getGlobalPointSystemId:()=>i});module.exports=g(m);var i=()=>1;0&&(module.exports={getGlobalPointSystemId});
@@ -1 +0,0 @@
1
- var c=Object.create;var i=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;var E=(n,r)=>{for(var t in r)i(n,t,{get:r[t],enumerable:!0})},a=(n,r,t,g)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of x(r))!d.call(n,e)&&e!==t&&i(n,e,{get:()=>r[e],enumerable:!(g=p(r,e))||g.enumerable});return n};var S=(n,r,t)=>(t=n!=null?c(f(n)):{},a(r||!n||!n.__esModule?i(t,"default",{value:n,enumerable:!0}):t,n)),T=n=>a(i({},"__esModule",{value:!0}),n);var L={};E(L,{changes24H:()=>N});module.exports=T(L);var o=S(require("bignumber.js"));o.default.config({DECIMAL_PLACES:40,EXPONENTIAL_AT:45});function b(n,r){return u(n,r,"-")}function l(n,r){return u(n,r,"*")}function m(n,r){return u(n,r,"/")}function s(n,r){return!!u(n,r,">")}function u(n,r,t){switch(n=new o.default(String(n)),r=new o.default(String(r)),t.toLowerCase()){case"-":return n.minus(r).toString();case"+":return n.plus(r).toString();case"*":case"x":return n.multipliedBy(r).toString();case"\xF7":case"/":return n.dividedBy(r).toString();case">=":return n.isGreaterThanOrEqualTo(r);case">":return n.isGreaterThan(r);case"<=":return n.isLessThanOrEqualTo(r);case"<":return n.isLessThan(r);case"==":return n.isEqualTo(r);case"mod":return n.modulo(r);default:break}}var N=(n,r)=>s(r,0)&&s(n,0)?l(m(b(n,r),r),100):"0";0&&(module.exports={changes24H});
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes