ccxt 4.5.18 → 4.5.19

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 (1007) hide show
  1. package/README.md +7 -6
  2. package/dist/ccxt.browser.min.js +40 -16
  3. package/dist/cjs/_virtual/index.cjs.js +1459 -9
  4. package/dist/cjs/ccxt.js +8 -2
  5. package/dist/cjs/src/abstract/alpaca.js +1 -1
  6. package/dist/cjs/src/abstract/apex.js +1 -1
  7. package/dist/cjs/src/abstract/arkham.js +1 -1
  8. package/dist/cjs/src/abstract/ascendex.js +1 -1
  9. package/dist/cjs/src/abstract/backpack.js +1 -1
  10. package/dist/cjs/src/abstract/bigone.js +1 -1
  11. package/dist/cjs/src/abstract/binance.js +1 -1
  12. package/dist/cjs/src/abstract/bingx.js +1 -1
  13. package/dist/cjs/src/abstract/bit2c.js +1 -1
  14. package/dist/cjs/src/abstract/bitbank.js +1 -1
  15. package/dist/cjs/src/abstract/bitbns.js +1 -1
  16. package/dist/cjs/src/abstract/bitfinex.js +1 -1
  17. package/dist/cjs/src/abstract/bitflyer.js +1 -1
  18. package/dist/cjs/src/abstract/bitget.js +1 -1
  19. package/dist/cjs/src/abstract/bithumb.js +1 -1
  20. package/dist/cjs/src/abstract/bitmart.js +1 -1
  21. package/dist/cjs/src/abstract/bitmex.js +1 -1
  22. package/dist/cjs/src/abstract/bitopro.js +1 -1
  23. package/dist/cjs/src/abstract/bitrue.js +1 -1
  24. package/dist/cjs/src/abstract/bitso.js +1 -1
  25. package/dist/cjs/src/abstract/bitstamp.js +1 -1
  26. package/dist/cjs/src/abstract/bitteam.js +1 -1
  27. package/dist/cjs/src/abstract/bittrade.js +1 -1
  28. package/dist/cjs/src/abstract/bitvavo.js +1 -1
  29. package/dist/cjs/src/abstract/blockchaincom.js +1 -1
  30. package/dist/cjs/src/abstract/blofin.js +1 -1
  31. package/dist/cjs/src/abstract/btcalpha.js +1 -1
  32. package/dist/cjs/src/abstract/btcbox.js +1 -1
  33. package/dist/cjs/src/abstract/btcmarkets.js +1 -1
  34. package/dist/cjs/src/abstract/btcturk.js +1 -1
  35. package/dist/cjs/src/abstract/bybit.js +1 -1
  36. package/dist/cjs/src/abstract/cex.js +1 -1
  37. package/dist/cjs/src/abstract/coinbase.js +1 -1
  38. package/dist/cjs/src/abstract/coinbaseexchange.js +1 -1
  39. package/dist/cjs/src/abstract/coinbaseinternational.js +1 -1
  40. package/dist/cjs/src/abstract/coincatch.js +1 -1
  41. package/dist/cjs/src/abstract/coincheck.js +1 -1
  42. package/dist/cjs/src/abstract/coinex.js +1 -1
  43. package/dist/cjs/src/abstract/coinmate.js +1 -1
  44. package/dist/cjs/src/abstract/coinmetro.js +1 -1
  45. package/dist/cjs/src/abstract/coinone.js +1 -1
  46. package/dist/cjs/src/abstract/coinsph.js +1 -1
  47. package/dist/cjs/src/abstract/coinspot.js +1 -1
  48. package/dist/cjs/src/abstract/cryptocom.js +1 -1
  49. package/dist/cjs/src/abstract/cryptomus.js +1 -1
  50. package/dist/cjs/src/abstract/deepcoin.js +1 -1
  51. package/dist/cjs/src/abstract/defx.js +1 -1
  52. package/dist/cjs/src/abstract/delta.js +1 -1
  53. package/dist/cjs/src/abstract/deribit.js +1 -1
  54. package/dist/cjs/src/abstract/derive.js +1 -1
  55. package/dist/cjs/src/abstract/digifinex.js +1 -1
  56. package/dist/cjs/src/abstract/dydx.js +11 -0
  57. package/dist/cjs/src/abstract/exmo.js +1 -1
  58. package/dist/cjs/src/abstract/foxbit.js +1 -1
  59. package/dist/cjs/src/abstract/gate.js +1 -1
  60. package/dist/cjs/src/abstract/gemini.js +1 -1
  61. package/dist/cjs/src/abstract/hashkey.js +1 -1
  62. package/dist/cjs/src/abstract/hibachi.js +1 -1
  63. package/dist/cjs/src/abstract/hitbtc.js +1 -1
  64. package/dist/cjs/src/abstract/hollaex.js +1 -1
  65. package/dist/cjs/src/abstract/htx.js +1 -1
  66. package/dist/cjs/src/abstract/hyperliquid.js +1 -1
  67. package/dist/cjs/src/abstract/independentreserve.js +1 -1
  68. package/dist/cjs/src/abstract/indodax.js +1 -1
  69. package/dist/cjs/src/abstract/kraken.js +1 -1
  70. package/dist/cjs/src/abstract/krakenfutures.js +1 -1
  71. package/dist/cjs/src/abstract/kucoin.js +1 -1
  72. package/dist/cjs/src/abstract/kucoinfutures.js +1 -1
  73. package/dist/cjs/src/abstract/latoken.js +1 -1
  74. package/dist/cjs/src/abstract/lbank.js +1 -1
  75. package/dist/cjs/src/abstract/luno.js +1 -1
  76. package/dist/cjs/src/abstract/mercado.js +1 -1
  77. package/dist/cjs/src/abstract/mexc.js +1 -1
  78. package/dist/cjs/src/abstract/modetrade.js +1 -1
  79. package/dist/cjs/src/abstract/ndax.js +1 -1
  80. package/dist/cjs/src/abstract/novadax.js +1 -1
  81. package/dist/cjs/src/abstract/oceanex.js +1 -1
  82. package/dist/cjs/src/abstract/okx.js +1 -1
  83. package/dist/cjs/src/abstract/onetrading.js +1 -1
  84. package/dist/cjs/src/abstract/oxfun.js +1 -1
  85. package/dist/cjs/src/abstract/p2b.js +1 -1
  86. package/dist/cjs/src/abstract/paradex.js +1 -1
  87. package/dist/cjs/src/abstract/paymium.js +1 -1
  88. package/dist/cjs/src/abstract/phemex.js +1 -1
  89. package/dist/cjs/src/abstract/poloniex.js +1 -1
  90. package/dist/cjs/src/abstract/probit.js +1 -1
  91. package/dist/cjs/src/abstract/timex.js +1 -1
  92. package/dist/cjs/src/abstract/tokocrypto.js +1 -1
  93. package/dist/cjs/src/abstract/toobit.js +1 -1
  94. package/dist/cjs/src/abstract/upbit.js +1 -1
  95. package/dist/cjs/src/abstract/wavesexchange.js +1 -1
  96. package/dist/cjs/src/abstract/whitebit.js +1 -1
  97. package/dist/cjs/src/abstract/woo.js +1 -1
  98. package/dist/cjs/src/abstract/woofipro.js +1 -1
  99. package/dist/cjs/src/abstract/xt.js +1 -1
  100. package/dist/cjs/src/abstract/yobit.js +1 -1
  101. package/dist/cjs/src/abstract/zaif.js +1 -1
  102. package/dist/cjs/src/abstract/zonda.js +1 -1
  103. package/dist/cjs/src/alpaca.js +1 -1
  104. package/dist/cjs/src/apex.js +1 -1
  105. package/dist/cjs/src/arkham.js +1 -1
  106. package/dist/cjs/src/ascendex.js +1 -1
  107. package/dist/cjs/src/backpack.js +1 -1
  108. package/dist/cjs/src/base/Exchange.js +158 -1
  109. package/dist/cjs/src/base/Precise.js +0 -6
  110. package/dist/cjs/src/base/errors.js +0 -6
  111. package/dist/cjs/src/base/functions/crypto.js +1 -1
  112. package/dist/cjs/src/base/functions/encode.js +1 -1
  113. package/dist/cjs/src/base/functions/misc.js +0 -1
  114. package/dist/cjs/src/base/functions/number.js +0 -6
  115. package/dist/cjs/src/base/functions/platform.js +0 -6
  116. package/dist/cjs/src/base/functions/rsa.js +0 -1
  117. package/dist/cjs/src/base/functions/string.js +0 -6
  118. package/dist/cjs/src/base/functions/throttle.js +1 -1
  119. package/dist/cjs/src/base/functions/time.js +0 -6
  120. package/dist/cjs/src/base/functions/totp.js +0 -1
  121. package/dist/cjs/src/base/functions/type.js +0 -6
  122. package/dist/cjs/src/base/functions.js +1 -1
  123. package/dist/cjs/src/base/ws/Cache.js +0 -6
  124. package/dist/cjs/src/base/ws/Client.js +0 -1
  125. package/dist/cjs/src/base/ws/Future.js +1 -1
  126. package/dist/cjs/src/base/ws/OrderBook.js +1 -1
  127. package/dist/cjs/src/base/ws/OrderBookSide.js +0 -6
  128. package/dist/cjs/src/base/ws/WsClient.js +1 -1
  129. package/dist/cjs/src/bequant.js +1 -1
  130. package/dist/cjs/src/bigone.js +1 -1
  131. package/dist/cjs/src/binance.js +1 -1
  132. package/dist/cjs/src/binancecoinm.js +1 -1
  133. package/dist/cjs/src/binanceus.js +1 -1
  134. package/dist/cjs/src/binanceusdm.js +1 -1
  135. package/dist/cjs/src/bingx.js +21 -1
  136. package/dist/cjs/src/bit2c.js +1 -1
  137. package/dist/cjs/src/bitbank.js +1 -1
  138. package/dist/cjs/src/bitbns.js +1 -1
  139. package/dist/cjs/src/bitfinex.js +1 -1
  140. package/dist/cjs/src/bitflyer.js +1 -1
  141. package/dist/cjs/src/bitget.js +44 -42
  142. package/dist/cjs/src/bithumb.js +1 -1
  143. package/dist/cjs/src/bitmart.js +1 -1
  144. package/dist/cjs/src/bitmex.js +1 -1
  145. package/dist/cjs/src/bitopro.js +1 -1
  146. package/dist/cjs/src/bitrue.js +1 -1
  147. package/dist/cjs/src/bitso.js +1 -1
  148. package/dist/cjs/src/bitstamp.js +1 -1
  149. package/dist/cjs/src/bitteam.js +1 -1
  150. package/dist/cjs/src/bittrade.js +1 -1
  151. package/dist/cjs/src/blockchaincom.js +1 -1
  152. package/dist/cjs/src/blofin.js +1 -1
  153. package/dist/cjs/src/btcalpha.js +1 -1
  154. package/dist/cjs/src/btcbox.js +1 -1
  155. package/dist/cjs/src/btcmarkets.js +1 -1
  156. package/dist/cjs/src/btcturk.js +1 -1
  157. package/dist/cjs/src/bybit.js +1 -1
  158. package/dist/cjs/src/cex.js +1 -1
  159. package/dist/cjs/src/coinbaseadvanced.js +1 -1
  160. package/dist/cjs/src/coincatch.js +1 -1
  161. package/dist/cjs/src/coincheck.js +1 -1
  162. package/dist/cjs/src/coinex.js +1 -1
  163. package/dist/cjs/src/coinmate.js +1 -1
  164. package/dist/cjs/src/coinmetro.js +1 -1
  165. package/dist/cjs/src/coinone.js +1 -1
  166. package/dist/cjs/src/coinsph.js +0 -1
  167. package/dist/cjs/src/coinspot.js +1 -1
  168. package/dist/cjs/src/cryptocom.js +1 -1
  169. package/dist/cjs/src/cryptomus.js +1 -1
  170. package/dist/cjs/src/deepcoin.js +1 -1
  171. package/dist/cjs/src/defx.js +1 -1
  172. package/dist/cjs/src/delta.js +1 -1
  173. package/dist/cjs/src/deribit.js +7 -1
  174. package/dist/cjs/src/derive.js +1 -1
  175. package/dist/cjs/src/digifinex.js +1 -1
  176. package/dist/cjs/src/dydx.js +2453 -0
  177. package/dist/cjs/src/exmo.js +1 -1
  178. package/dist/cjs/src/fmfwio.js +1 -1
  179. package/dist/cjs/src/foxbit.js +1 -1
  180. package/dist/cjs/src/gate.js +1 -1
  181. package/dist/cjs/src/gateio.js +1 -1
  182. package/dist/cjs/src/gemini.js +1 -1
  183. package/dist/cjs/src/hashkey.js +1 -1
  184. package/dist/cjs/src/hibachi.js +2 -2
  185. package/dist/cjs/src/hitbtc.js +0 -1
  186. package/dist/cjs/src/hollaex.js +1 -1
  187. package/dist/cjs/src/htx.js +1 -1
  188. package/dist/cjs/src/huobi.js +1 -1
  189. package/dist/cjs/src/hyperliquid.js +1 -1
  190. package/dist/cjs/src/independentreserve.js +1 -1
  191. package/dist/cjs/src/indodax.js +1 -1
  192. package/dist/cjs/src/kraken.js +1 -1
  193. package/dist/cjs/src/krakenfutures.js +1 -1
  194. package/dist/cjs/src/kucoin.js +712 -110
  195. package/dist/cjs/src/kucoinfutures.js +1 -1
  196. package/dist/cjs/src/latoken.js +1 -1
  197. package/dist/cjs/src/lbank.js +1 -1
  198. package/dist/cjs/src/luno.js +1 -1
  199. package/dist/cjs/src/mercado.js +1 -1
  200. package/dist/cjs/src/mexc.js +1 -1
  201. package/dist/cjs/src/modetrade.js +1 -1
  202. package/dist/cjs/src/myokx.js +1 -1
  203. package/dist/cjs/src/ndax.js +1 -1
  204. package/dist/cjs/src/novadax.js +1 -1
  205. package/dist/cjs/src/oceanex.js +1 -1
  206. package/dist/cjs/src/okx.js +1 -1
  207. package/dist/cjs/src/okxus.js +1 -1
  208. package/dist/cjs/src/onetrading.js +1 -1
  209. package/dist/cjs/src/oxfun.js +1 -1
  210. package/dist/cjs/src/p2b.js +1 -1
  211. package/dist/cjs/src/paradex.js +1 -1
  212. package/dist/cjs/src/paymium.js +1 -1
  213. package/dist/cjs/src/poloniex.js +1 -1
  214. package/dist/cjs/src/pro/alpaca.js +1 -1
  215. package/dist/cjs/src/pro/apex.js +1 -1
  216. package/dist/cjs/src/pro/arkham.js +1 -1
  217. package/dist/cjs/src/pro/ascendex.js +1 -1
  218. package/dist/cjs/src/pro/backpack.js +1 -1
  219. package/dist/cjs/src/pro/bequant.js +1 -1
  220. package/dist/cjs/src/pro/binance.js +59 -144
  221. package/dist/cjs/src/pro/binancecoinm.js +1 -1
  222. package/dist/cjs/src/pro/binanceus.js +1 -1
  223. package/dist/cjs/src/pro/binanceusdm.js +1 -1
  224. package/dist/cjs/src/pro/bingx.js +1 -1
  225. package/dist/cjs/src/pro/bitfinex.js +1 -1
  226. package/dist/cjs/src/pro/bitget.js +1 -1
  227. package/dist/cjs/src/pro/bithumb.js +1 -1
  228. package/dist/cjs/src/pro/bitmart.js +1 -1
  229. package/dist/cjs/src/pro/bitmex.js +1 -1
  230. package/dist/cjs/src/pro/bitrue.js +1 -1
  231. package/dist/cjs/src/pro/bitstamp.js +1 -1
  232. package/dist/cjs/src/pro/bitvavo.js +1 -1
  233. package/dist/cjs/src/pro/blockchaincom.js +1 -1
  234. package/dist/cjs/src/pro/blofin.js +1 -1
  235. package/dist/cjs/src/pro/bybit.js +1 -1
  236. package/dist/cjs/src/pro/cex.js +1 -1
  237. package/dist/cjs/src/pro/coinbase.js +1 -1
  238. package/dist/cjs/src/pro/coinbaseadvanced.js +1 -1
  239. package/dist/cjs/src/pro/coinbaseexchange.js +1 -1
  240. package/dist/cjs/src/pro/coinbaseinternational.js +1 -1
  241. package/dist/cjs/src/pro/coincatch.js +1 -1
  242. package/dist/cjs/src/pro/coincheck.js +1 -1
  243. package/dist/cjs/src/pro/coinex.js +1 -1
  244. package/dist/cjs/src/pro/coinone.js +1 -1
  245. package/dist/cjs/src/pro/cryptocom.js +1 -1
  246. package/dist/cjs/src/pro/deepcoin.js +1 -1
  247. package/dist/cjs/src/pro/defx.js +1 -1
  248. package/dist/cjs/src/pro/deribit.js +1 -1
  249. package/dist/cjs/src/pro/dydx.js +418 -0
  250. package/dist/cjs/src/pro/exmo.js +1 -1
  251. package/dist/cjs/src/pro/gate.js +1 -1
  252. package/dist/cjs/src/pro/gateio.js +1 -1
  253. package/dist/cjs/src/pro/gemini.js +1 -1
  254. package/dist/cjs/src/pro/hashkey.js +1 -1
  255. package/dist/cjs/src/pro/hitbtc.js +1 -1
  256. package/dist/cjs/src/pro/hollaex.js +1 -1
  257. package/dist/cjs/src/pro/htx.js +1 -1
  258. package/dist/cjs/src/pro/huobi.js +1 -1
  259. package/dist/cjs/src/pro/hyperliquid.js +1 -1
  260. package/dist/cjs/src/pro/independentreserve.js +1 -1
  261. package/dist/cjs/src/pro/kraken.js +5 -4
  262. package/dist/cjs/src/pro/krakenfutures.js +1 -1
  263. package/dist/cjs/src/pro/kucoin.js +1 -1
  264. package/dist/cjs/src/pro/kucoinfutures.js +1 -1
  265. package/dist/cjs/src/pro/lbank.js +0 -1
  266. package/dist/cjs/src/pro/luno.js +1 -1
  267. package/dist/cjs/src/pro/mexc.js +1 -1
  268. package/dist/cjs/src/pro/myokx.js +1 -1
  269. package/dist/cjs/src/pro/ndax.js +1 -1
  270. package/dist/cjs/src/pro/okx.js +1 -1
  271. package/dist/cjs/src/pro/okxus.js +1 -1
  272. package/dist/cjs/src/pro/onetrading.js +1 -1
  273. package/dist/cjs/src/pro/oxfun.js +1 -1
  274. package/dist/cjs/src/pro/p2b.js +1 -1
  275. package/dist/cjs/src/pro/paradex.js +1 -1
  276. package/dist/cjs/src/pro/phemex.js +1 -1
  277. package/dist/cjs/src/pro/poloniex.js +1 -1
  278. package/dist/cjs/src/pro/probit.js +1 -1
  279. package/dist/cjs/src/pro/toobit.js +1 -1
  280. package/dist/cjs/src/pro/upbit.js +1 -1
  281. package/dist/cjs/src/pro/whitebit.js +1 -1
  282. package/dist/cjs/src/pro/xt.js +218 -5
  283. package/dist/cjs/src/probit.js +1 -1
  284. package/dist/cjs/src/protobuf/mexc/compiled.cjs.js +2 -0
  285. package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/base/v1beta1/coin.js +55 -0
  286. package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/v1beta1/multisig.js +55 -0
  287. package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/crypto/secp256k1/keys.js +47 -0
  288. package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/tx/signing/v1beta1/signing.js +342 -0
  289. package/dist/cjs/src/static_dependencies/dydx-v4-client/cosmos/tx/v1beta1/tx.js +716 -0
  290. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/accountplus/tx.js +59 -0
  291. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/clob_pair.js +44 -0
  292. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order.js +379 -0
  293. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order_removals.js +71 -0
  294. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/tx.js +210 -0
  295. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/transfer.js +194 -0
  296. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/tx.js +48 -0
  297. package/dist/cjs/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/subaccount.js +56 -0
  298. package/dist/cjs/src/static_dependencies/dydx-v4-client/google/protobuf/any.js +55 -0
  299. package/dist/cjs/src/static_dependencies/dydx-v4-client/helpers.js +37 -0
  300. package/dist/cjs/src/static_dependencies/dydx-v4-client/long/index.cjs.js +9 -0
  301. package/dist/cjs/src/static_dependencies/dydx-v4-client/onboarding.js +58 -0
  302. package/dist/cjs/src/static_dependencies/dydx-v4-client/registry.js +38 -0
  303. package/dist/cjs/src/static_dependencies/ethers/abi-coder.js +0 -6
  304. package/dist/cjs/src/static_dependencies/ethers/address/address.js +1 -1
  305. package/dist/cjs/src/static_dependencies/ethers/coders/abstract-coder.js +0 -6
  306. package/dist/cjs/src/static_dependencies/ethers/coders/address.js +0 -1
  307. package/dist/cjs/src/static_dependencies/ethers/coders/anonymous.js +0 -1
  308. package/dist/cjs/src/static_dependencies/ethers/coders/array.js +0 -1
  309. package/dist/cjs/src/static_dependencies/ethers/coders/boolean.js +0 -1
  310. package/dist/cjs/src/static_dependencies/ethers/coders/bytes.js +0 -1
  311. package/dist/cjs/src/static_dependencies/ethers/coders/fixed-bytes.js +0 -1
  312. package/dist/cjs/src/static_dependencies/ethers/coders/null.js +0 -1
  313. package/dist/cjs/src/static_dependencies/ethers/coders/number.js +0 -1
  314. package/dist/cjs/src/static_dependencies/ethers/coders/string.js +0 -1
  315. package/dist/cjs/src/static_dependencies/ethers/coders/tuple.js +0 -1
  316. package/dist/cjs/src/static_dependencies/ethers/fragments.js +0 -6
  317. package/dist/cjs/src/static_dependencies/ethers/hash/typed-data.js +0 -6
  318. package/dist/cjs/src/static_dependencies/ethers/index.js +10 -1
  319. package/dist/cjs/src/static_dependencies/ethers/interface.js +0 -6
  320. package/dist/cjs/src/static_dependencies/ethers/typed.js +0 -6
  321. package/dist/cjs/src/static_dependencies/ethers/utils/base58.js +13 -1
  322. package/dist/cjs/src/static_dependencies/ethers/utils/data.js +6 -1
  323. package/dist/cjs/src/static_dependencies/ethers/utils/errors.js +9 -1
  324. package/dist/cjs/src/static_dependencies/ethers/utils/events.js +0 -6
  325. package/dist/cjs/src/static_dependencies/ethers/utils/fixednumber.js +0 -6
  326. package/dist/cjs/src/static_dependencies/ethers/utils/index.js +7 -1
  327. package/dist/cjs/src/static_dependencies/ethers/utils/maths.js +5 -1
  328. package/dist/cjs/src/static_dependencies/ethers/utils/properties.js +0 -6
  329. package/dist/cjs/src/static_dependencies/ethers/utils/utf8.js +8 -1
  330. package/dist/cjs/src/static_dependencies/fflake/browser.js +1 -1
  331. package/dist/cjs/src/static_dependencies/jsencrypt/JSEncrypt.js +0 -1
  332. package/dist/cjs/src/static_dependencies/jsencrypt/JSEncryptRSAKey.js +0 -1
  333. package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/asn1.js +1 -1
  334. package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/base64.js +0 -6
  335. package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/hex.js +0 -6
  336. package/dist/cjs/src/static_dependencies/jsencrypt/lib/asn1js/int10.js +0 -6
  337. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/base64.js +0 -1
  338. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.js +1 -1
  339. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/prng4.js +0 -6
  340. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/rng.js +1 -1
  341. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/rsa.js +1 -1
  342. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsbn/util.js +0 -6
  343. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsrsasign/asn1-1.0.js +1 -1
  344. package/dist/cjs/src/static_dependencies/jsencrypt/lib/jsrsasign/yahoo.js +0 -6
  345. package/dist/cjs/src/static_dependencies/messagepack/msgpack.js +0 -6
  346. package/dist/cjs/src/static_dependencies/noble-curves/_shortw_utils.js +1 -1
  347. package/dist/cjs/src/static_dependencies/noble-curves/abstract/curve.js +1 -1
  348. package/dist/cjs/src/static_dependencies/noble-curves/abstract/edwards.js +1 -1
  349. package/dist/cjs/src/static_dependencies/noble-curves/abstract/hash-to-curve.js +0 -1
  350. package/dist/cjs/src/static_dependencies/noble-curves/abstract/modular.js +1 -1
  351. package/dist/cjs/src/static_dependencies/noble-curves/abstract/montgomery.js +1 -1
  352. package/dist/cjs/src/static_dependencies/noble-curves/abstract/poseidon.js +1 -1
  353. package/dist/cjs/src/static_dependencies/noble-curves/abstract/utils.js +0 -6
  354. package/dist/cjs/src/static_dependencies/noble-curves/abstract/weierstrass.js +1 -1
  355. package/dist/cjs/src/static_dependencies/noble-curves/ed25519.js +1 -1
  356. package/dist/cjs/src/static_dependencies/noble-curves/p256.js +1 -1
  357. package/dist/cjs/src/static_dependencies/noble-curves/secp256k1.js +1 -1
  358. package/dist/cjs/src/static_dependencies/noble-hashes/_assert.js +0 -6
  359. package/dist/cjs/src/static_dependencies/noble-hashes/_sha2.js +0 -1
  360. package/dist/cjs/src/static_dependencies/noble-hashes/_u64.js +0 -6
  361. package/dist/cjs/src/static_dependencies/noble-hashes/crypto.js +0 -6
  362. package/dist/cjs/src/static_dependencies/noble-hashes/hmac.js +0 -1
  363. package/dist/cjs/src/static_dependencies/noble-hashes/md5.js +0 -1
  364. package/dist/cjs/src/static_dependencies/noble-hashes/pbkdf2.js +68 -0
  365. package/dist/cjs/src/static_dependencies/noble-hashes/ripemd160.js +107 -0
  366. package/dist/cjs/src/static_dependencies/noble-hashes/sha1.js +0 -1
  367. package/dist/cjs/src/static_dependencies/noble-hashes/sha256.js +0 -1
  368. package/dist/cjs/src/static_dependencies/noble-hashes/sha3.js +0 -1
  369. package/dist/cjs/src/static_dependencies/noble-hashes/sha512.js +0 -1
  370. package/dist/cjs/src/static_dependencies/noble-hashes/utils.js +51 -2
  371. package/dist/cjs/src/static_dependencies/node-fetch/body.js +5 -1
  372. package/dist/cjs/src/static_dependencies/node-fetch/errors/abort-error.js +0 -1
  373. package/dist/cjs/src/static_dependencies/node-fetch/errors/base.js +0 -6
  374. package/dist/cjs/src/static_dependencies/node-fetch/errors/fetch-error.js +0 -1
  375. package/dist/cjs/src/static_dependencies/node-fetch/headers.js +5 -1
  376. package/dist/cjs/src/static_dependencies/node-fetch/index.js +7 -1
  377. package/dist/cjs/src/static_dependencies/node-fetch/request.js +7 -1
  378. package/dist/cjs/src/static_dependencies/node-fetch/response.js +5 -1
  379. package/dist/cjs/src/static_dependencies/node-fetch/utils/get-search.js +0 -6
  380. package/dist/cjs/src/static_dependencies/node-fetch/utils/is-redirect.js +0 -6
  381. package/dist/cjs/src/static_dependencies/node-fetch/utils/is.js +0 -6
  382. package/dist/cjs/src/static_dependencies/node-fetch/utils/referrer.js +0 -1
  383. package/dist/cjs/src/static_dependencies/proxies/agent-base/index.js +0 -1
  384. package/dist/cjs/src/static_dependencies/proxies/http-proxy-agent/index.js +0 -1
  385. package/dist/cjs/src/static_dependencies/proxies/https-proxy-agent/index.js +0 -1
  386. package/dist/cjs/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.js +0 -6
  387. package/dist/cjs/src/static_dependencies/qs/formats.js +0 -6
  388. package/dist/cjs/src/static_dependencies/qs/index.js +0 -1
  389. package/dist/cjs/src/static_dependencies/qs/parse.js +0 -1
  390. package/dist/cjs/src/static_dependencies/qs/stringify.js +0 -1
  391. package/dist/cjs/src/static_dependencies/qs/utils.js +0 -6
  392. package/dist/cjs/src/static_dependencies/scure-base/index.js +29 -6
  393. package/dist/cjs/src/static_dependencies/scure-bip32/index.js +296 -0
  394. package/dist/cjs/src/static_dependencies/scure-bip39/index.js +97 -0
  395. package/dist/cjs/src/static_dependencies/scure-bip39/wordlists/english.js +2054 -0
  396. package/dist/cjs/src/static_dependencies/scure-starknet/index.js +1 -1
  397. package/dist/cjs/src/static_dependencies/starknet/constants.js +1 -1
  398. package/dist/cjs/src/static_dependencies/starknet/types/calldata.js +0 -6
  399. package/dist/cjs/src/static_dependencies/starknet/types/lib/contract/abi.js +0 -6
  400. package/dist/cjs/src/static_dependencies/starknet/types/lib/contract/index.js +0 -6
  401. package/dist/cjs/src/static_dependencies/starknet/types/lib/index.js +0 -6
  402. package/dist/cjs/src/static_dependencies/starknet/types/typedData.js +0 -6
  403. package/dist/cjs/src/static_dependencies/starknet/utils/assert.js +0 -6
  404. package/dist/cjs/src/static_dependencies/starknet/utils/cairoDataTypes/felt.js +1 -1
  405. package/dist/cjs/src/static_dependencies/starknet/utils/cairoDataTypes/uint256.js +1 -1
  406. package/dist/cjs/src/static_dependencies/starknet/utils/cairoDataTypes/uint512.js +1 -1
  407. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/byteArray.js +0 -1
  408. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/cairo.js +0 -1
  409. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/enum/CairoCustomEnum.js +0 -6
  410. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/enum/CairoOption.js +0 -6
  411. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/enum/CairoResult.js +0 -6
  412. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/formatter.js +0 -1
  413. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/index.js +1 -1
  414. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/parser/index.js +0 -1
  415. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/parser/parser-0-1.1.0.js +0 -1
  416. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/parser/parser-2.0.0.js +0 -6
  417. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/propertyOrder.js +0 -1
  418. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/requestParser.js +0 -1
  419. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/responseParser.js +0 -1
  420. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/tuple.js +1 -1
  421. package/dist/cjs/src/static_dependencies/starknet/utils/calldata/validate.js +4 -1
  422. package/dist/cjs/src/static_dependencies/starknet/utils/encode.js +0 -1
  423. package/dist/cjs/src/static_dependencies/starknet/utils/hash/classHash.js +3 -1
  424. package/dist/cjs/src/static_dependencies/starknet/utils/merkle.js +0 -1
  425. package/dist/cjs/src/static_dependencies/starknet/utils/num.js +0 -1
  426. package/dist/cjs/src/static_dependencies/starknet/utils/selector.js +0 -1
  427. package/dist/cjs/src/static_dependencies/starknet/utils/shortString.js +0 -1
  428. package/dist/cjs/src/static_dependencies/starknet/utils/typedData.js +1 -1
  429. package/dist/cjs/src/static_dependencies/watchable/src/unpromise.js +0 -6
  430. package/dist/cjs/src/static_dependencies/zklink/zklink-sdk-web.js +1 -5
  431. package/dist/cjs/src/timex.js +0 -1
  432. package/dist/cjs/src/tokocrypto.js +1 -1
  433. package/dist/cjs/src/toobit.js +3 -2
  434. package/dist/cjs/src/upbit.js +1 -1
  435. package/dist/cjs/src/wavesexchange.js +1 -1
  436. package/dist/cjs/src/whitebit.js +1 -1
  437. package/dist/cjs/src/woo.js +1 -1
  438. package/dist/cjs/src/woofipro.js +1 -1
  439. package/dist/cjs/src/xt.js +1 -1
  440. package/dist/cjs/src/yobit.js +1 -1
  441. package/dist/cjs/src/zaif.js +1 -1
  442. package/dist/cjs/src/zonda.js +1 -1
  443. package/js/ccxt.d.ts +8 -2
  444. package/js/ccxt.js +6 -8
  445. package/js/src/abstract/alpaca.js +0 -6
  446. package/js/src/abstract/apex.js +0 -6
  447. package/js/src/abstract/arkham.js +0 -6
  448. package/js/src/abstract/ascendex.js +0 -6
  449. package/js/src/abstract/backpack.js +0 -6
  450. package/js/src/abstract/bequant.js +0 -6
  451. package/js/src/abstract/bigone.js +0 -6
  452. package/js/src/abstract/binance.js +0 -6
  453. package/js/src/abstract/binancecoinm.js +0 -6
  454. package/js/src/abstract/binanceus.js +0 -6
  455. package/js/src/abstract/binanceusdm.js +0 -6
  456. package/js/src/abstract/bingx.js +0 -6
  457. package/js/src/abstract/bit2c.js +0 -6
  458. package/js/src/abstract/bitbank.js +0 -6
  459. package/js/src/abstract/bitbns.js +0 -6
  460. package/js/src/abstract/bitfinex.js +0 -6
  461. package/js/src/abstract/bitflyer.js +0 -6
  462. package/js/src/abstract/bitget.d.ts +1 -0
  463. package/js/src/abstract/bitget.js +0 -6
  464. package/js/src/abstract/bithumb.js +0 -6
  465. package/js/src/abstract/bitmart.js +0 -6
  466. package/js/src/abstract/bitmex.js +0 -6
  467. package/js/src/abstract/bitopro.js +0 -6
  468. package/js/src/abstract/bitrue.js +0 -6
  469. package/js/src/abstract/bitso.js +0 -6
  470. package/js/src/abstract/bitstamp.js +0 -6
  471. package/js/src/abstract/bitteam.js +0 -6
  472. package/js/src/abstract/bittrade.js +0 -6
  473. package/js/src/abstract/bitvavo.js +0 -6
  474. package/js/src/abstract/blockchaincom.js +0 -6
  475. package/js/src/abstract/blofin.js +0 -6
  476. package/js/src/abstract/btcalpha.js +0 -6
  477. package/js/src/abstract/btcbox.js +0 -6
  478. package/js/src/abstract/btcmarkets.js +0 -6
  479. package/js/src/abstract/btcturk.js +0 -6
  480. package/js/src/abstract/bybit.js +0 -6
  481. package/js/src/abstract/cex.js +0 -6
  482. package/js/src/abstract/coinbase.js +0 -6
  483. package/js/src/abstract/coinbaseadvanced.js +0 -6
  484. package/js/src/abstract/coinbaseexchange.js +0 -6
  485. package/js/src/abstract/coinbaseinternational.js +0 -6
  486. package/js/src/abstract/coincatch.js +0 -6
  487. package/js/src/abstract/coincheck.js +0 -6
  488. package/js/src/abstract/coinex.js +0 -6
  489. package/js/src/abstract/coinmate.js +0 -6
  490. package/js/src/abstract/coinmetro.js +0 -6
  491. package/js/src/abstract/coinone.js +0 -6
  492. package/js/src/abstract/coinsph.js +0 -6
  493. package/js/src/abstract/coinspot.js +0 -6
  494. package/js/src/abstract/cryptocom.js +0 -6
  495. package/js/src/abstract/cryptomus.js +0 -6
  496. package/js/src/abstract/deepcoin.js +0 -6
  497. package/js/src/abstract/defx.js +0 -6
  498. package/js/src/abstract/delta.js +0 -6
  499. package/js/src/abstract/deribit.js +0 -6
  500. package/js/src/abstract/derive.js +0 -6
  501. package/js/src/abstract/digifinex.js +0 -6
  502. package/js/src/abstract/dydx.d.ts +61 -0
  503. package/js/src/abstract/dydx.js +5 -0
  504. package/js/src/abstract/exmo.js +0 -6
  505. package/js/src/abstract/fmfwio.js +0 -6
  506. package/js/src/abstract/foxbit.js +0 -6
  507. package/js/src/abstract/gate.js +0 -6
  508. package/js/src/abstract/gateio.js +0 -6
  509. package/js/src/abstract/gemini.js +0 -6
  510. package/js/src/abstract/hashkey.js +0 -6
  511. package/js/src/abstract/hibachi.js +0 -6
  512. package/js/src/abstract/hitbtc.js +0 -6
  513. package/js/src/abstract/hollaex.js +0 -6
  514. package/js/src/abstract/htx.js +0 -6
  515. package/js/src/abstract/huobi.js +0 -6
  516. package/js/src/abstract/hyperliquid.js +0 -6
  517. package/js/src/abstract/independentreserve.js +0 -6
  518. package/js/src/abstract/indodax.js +0 -6
  519. package/js/src/abstract/kraken.js +0 -6
  520. package/js/src/abstract/krakenfutures.js +0 -6
  521. package/js/src/abstract/kucoin.d.ts +1 -1
  522. package/js/src/abstract/kucoin.js +0 -6
  523. package/js/src/abstract/kucoinfutures.d.ts +1 -1
  524. package/js/src/abstract/kucoinfutures.js +0 -6
  525. package/js/src/abstract/latoken.js +0 -6
  526. package/js/src/abstract/lbank.js +0 -6
  527. package/js/src/abstract/luno.js +0 -6
  528. package/js/src/abstract/mercado.js +0 -6
  529. package/js/src/abstract/mexc.js +0 -6
  530. package/js/src/abstract/modetrade.js +0 -6
  531. package/js/src/abstract/myokx.js +0 -6
  532. package/js/src/abstract/ndax.js +0 -6
  533. package/js/src/abstract/novadax.js +0 -6
  534. package/js/src/abstract/oceanex.js +0 -6
  535. package/js/src/abstract/okx.js +0 -6
  536. package/js/src/abstract/okxus.js +0 -6
  537. package/js/src/abstract/onetrading.js +0 -6
  538. package/js/src/abstract/oxfun.js +0 -6
  539. package/js/src/abstract/p2b.js +0 -6
  540. package/js/src/abstract/paradex.js +0 -6
  541. package/js/src/abstract/paymium.js +0 -6
  542. package/js/src/abstract/phemex.js +0 -6
  543. package/js/src/abstract/poloniex.js +0 -6
  544. package/js/src/abstract/probit.js +0 -6
  545. package/js/src/abstract/timex.js +0 -6
  546. package/js/src/abstract/tokocrypto.js +0 -6
  547. package/js/src/abstract/toobit.js +0 -6
  548. package/js/src/abstract/upbit.js +0 -6
  549. package/js/src/abstract/wavesexchange.js +0 -6
  550. package/js/src/abstract/whitebit.js +0 -6
  551. package/js/src/abstract/woo.js +0 -6
  552. package/js/src/abstract/woofipro.js +0 -6
  553. package/js/src/abstract/xt.js +0 -6
  554. package/js/src/abstract/yobit.js +0 -6
  555. package/js/src/abstract/zaif.js +0 -6
  556. package/js/src/abstract/zonda.js +0 -6
  557. package/js/src/alpaca.js +0 -6
  558. package/js/src/apex.js +0 -6
  559. package/js/src/arkham.js +0 -6
  560. package/js/src/ascendex.js +0 -6
  561. package/js/src/backpack.js +0 -6
  562. package/js/src/base/Exchange.d.ts +7 -0
  563. package/js/src/base/Exchange.js +157 -7
  564. package/js/src/base/Precise.js +0 -6
  565. package/js/src/base/errorHierarchy.js +0 -6
  566. package/js/src/base/errors.js +0 -6
  567. package/js/src/base/functions/crypto.js +0 -6
  568. package/js/src/base/functions/encode.js +0 -6
  569. package/js/src/base/functions/generic.js +0 -6
  570. package/js/src/base/functions/misc.js +0 -6
  571. package/js/src/base/functions/number.js +0 -6
  572. package/js/src/base/functions/platform.js +0 -6
  573. package/js/src/base/functions/rsa.js +0 -6
  574. package/js/src/base/functions/string.js +0 -6
  575. package/js/src/base/functions/throttle.js +0 -6
  576. package/js/src/base/functions/time.js +0 -6
  577. package/js/src/base/functions/totp.js +0 -6
  578. package/js/src/base/functions/type.js +0 -6
  579. package/js/src/base/functions.js +0 -6
  580. package/js/src/base/types.js +0 -6
  581. package/js/src/base/ws/Cache.js +0 -6
  582. package/js/src/base/ws/Client.js +0 -6
  583. package/js/src/base/ws/Future.js +0 -6
  584. package/js/src/base/ws/OrderBook.js +0 -6
  585. package/js/src/base/ws/OrderBookSide.js +0 -6
  586. package/js/src/base/ws/WsClient.js +0 -6
  587. package/js/src/base/ws/functions.js +0 -6
  588. package/js/src/bequant.js +0 -6
  589. package/js/src/bigone.js +0 -6
  590. package/js/src/binance.js +0 -6
  591. package/js/src/binancecoinm.js +0 -6
  592. package/js/src/binanceus.js +0 -6
  593. package/js/src/binanceusdm.js +0 -6
  594. package/js/src/bingx.js +20 -6
  595. package/js/src/bit2c.js +0 -6
  596. package/js/src/bitbank.js +0 -6
  597. package/js/src/bitbns.js +0 -6
  598. package/js/src/bitfinex.js +0 -6
  599. package/js/src/bitflyer.js +0 -6
  600. package/js/src/bitget.d.ts +3 -3
  601. package/js/src/bitget.js +43 -47
  602. package/js/src/bithumb.js +0 -6
  603. package/js/src/bitmart.js +0 -6
  604. package/js/src/bitmex.js +0 -6
  605. package/js/src/bitopro.js +0 -6
  606. package/js/src/bitrue.js +0 -6
  607. package/js/src/bitso.js +0 -6
  608. package/js/src/bitstamp.js +0 -6
  609. package/js/src/bitteam.js +0 -6
  610. package/js/src/bittrade.js +0 -6
  611. package/js/src/bitvavo.js +0 -6
  612. package/js/src/blockchaincom.js +0 -6
  613. package/js/src/blofin.js +0 -6
  614. package/js/src/btcalpha.js +0 -6
  615. package/js/src/btcbox.js +0 -6
  616. package/js/src/btcmarkets.js +0 -6
  617. package/js/src/btcturk.js +0 -6
  618. package/js/src/bybit.js +0 -6
  619. package/js/src/cex.js +0 -6
  620. package/js/src/coinbase.js +0 -6
  621. package/js/src/coinbaseadvanced.js +0 -6
  622. package/js/src/coinbaseexchange.js +0 -6
  623. package/js/src/coinbaseinternational.js +0 -6
  624. package/js/src/coincatch.js +0 -6
  625. package/js/src/coincheck.js +0 -6
  626. package/js/src/coinex.js +0 -6
  627. package/js/src/coinmate.js +0 -6
  628. package/js/src/coinmetro.js +0 -6
  629. package/js/src/coinone.js +0 -6
  630. package/js/src/coinsph.js +0 -6
  631. package/js/src/coinspot.js +0 -6
  632. package/js/src/cryptocom.js +0 -6
  633. package/js/src/cryptomus.js +0 -6
  634. package/js/src/deepcoin.js +0 -6
  635. package/js/src/defx.js +0 -6
  636. package/js/src/delta.js +0 -6
  637. package/js/src/deribit.js +6 -6
  638. package/js/src/derive.js +0 -6
  639. package/js/src/digifinex.js +0 -6
  640. package/js/src/dydx.d.ts +364 -0
  641. package/js/src/dydx.js +2446 -0
  642. package/js/src/exmo.js +0 -6
  643. package/js/src/fmfwio.js +0 -6
  644. package/js/src/foxbit.js +0 -6
  645. package/js/src/gate.js +0 -6
  646. package/js/src/gateio.js +0 -6
  647. package/js/src/gemini.js +0 -6
  648. package/js/src/hashkey.js +0 -6
  649. package/js/src/hibachi.js +1 -7
  650. package/js/src/hitbtc.js +0 -6
  651. package/js/src/hollaex.js +0 -6
  652. package/js/src/htx.js +0 -6
  653. package/js/src/huobi.js +0 -6
  654. package/js/src/hyperliquid.js +0 -6
  655. package/js/src/independentreserve.js +0 -6
  656. package/js/src/indodax.js +0 -6
  657. package/js/src/kraken.js +0 -6
  658. package/js/src/krakenfutures.js +0 -6
  659. package/js/src/kucoin.d.ts +48 -1
  660. package/js/src/kucoin.js +711 -115
  661. package/js/src/kucoinfutures.js +0 -6
  662. package/js/src/latoken.js +0 -6
  663. package/js/src/lbank.js +0 -6
  664. package/js/src/luno.js +0 -6
  665. package/js/src/mercado.js +0 -6
  666. package/js/src/mexc.js +0 -6
  667. package/js/src/modetrade.js +0 -6
  668. package/js/src/myokx.js +0 -6
  669. package/js/src/ndax.js +0 -6
  670. package/js/src/novadax.js +0 -6
  671. package/js/src/oceanex.js +0 -6
  672. package/js/src/okx.js +0 -6
  673. package/js/src/okxus.js +0 -6
  674. package/js/src/onetrading.js +0 -6
  675. package/js/src/oxfun.js +0 -6
  676. package/js/src/p2b.js +0 -6
  677. package/js/src/paradex.js +0 -6
  678. package/js/src/paymium.js +0 -6
  679. package/js/src/phemex.js +0 -6
  680. package/js/src/poloniex.js +0 -6
  681. package/js/src/pro/alpaca.js +0 -6
  682. package/js/src/pro/apex.js +0 -6
  683. package/js/src/pro/arkham.js +0 -6
  684. package/js/src/pro/ascendex.js +0 -6
  685. package/js/src/pro/backpack.js +0 -6
  686. package/js/src/pro/bequant.js +0 -6
  687. package/js/src/pro/binance.d.ts +2 -2
  688. package/js/src/pro/binance.js +59 -150
  689. package/js/src/pro/binancecoinm.js +0 -6
  690. package/js/src/pro/binanceus.js +0 -6
  691. package/js/src/pro/binanceusdm.js +0 -6
  692. package/js/src/pro/bingx.js +0 -6
  693. package/js/src/pro/bitfinex.js +0 -6
  694. package/js/src/pro/bitget.js +0 -6
  695. package/js/src/pro/bithumb.js +0 -6
  696. package/js/src/pro/bitmart.js +0 -6
  697. package/js/src/pro/bitmex.js +0 -6
  698. package/js/src/pro/bitopro.js +0 -6
  699. package/js/src/pro/bitrue.js +0 -6
  700. package/js/src/pro/bitstamp.js +0 -6
  701. package/js/src/pro/bittrade.js +0 -6
  702. package/js/src/pro/bitvavo.js +0 -6
  703. package/js/src/pro/blockchaincom.js +0 -6
  704. package/js/src/pro/blofin.js +0 -6
  705. package/js/src/pro/bybit.js +0 -6
  706. package/js/src/pro/cex.js +0 -6
  707. package/js/src/pro/coinbase.js +0 -6
  708. package/js/src/pro/coinbaseadvanced.js +0 -6
  709. package/js/src/pro/coinbaseexchange.js +0 -6
  710. package/js/src/pro/coinbaseinternational.js +0 -6
  711. package/js/src/pro/coincatch.js +0 -6
  712. package/js/src/pro/coincheck.js +0 -6
  713. package/js/src/pro/coinex.js +0 -6
  714. package/js/src/pro/coinone.js +0 -6
  715. package/js/src/pro/cryptocom.js +0 -6
  716. package/js/src/pro/deepcoin.js +0 -6
  717. package/js/src/pro/defx.js +0 -6
  718. package/js/src/pro/deribit.js +0 -6
  719. package/js/src/pro/derive.js +0 -6
  720. package/js/src/pro/dydx.d.ts +81 -0
  721. package/js/src/pro/dydx.js +411 -0
  722. package/js/src/pro/exmo.js +0 -6
  723. package/js/src/pro/gate.js +0 -6
  724. package/js/src/pro/gateio.js +0 -6
  725. package/js/src/pro/gemini.js +0 -6
  726. package/js/src/pro/hashkey.js +0 -6
  727. package/js/src/pro/hitbtc.js +0 -6
  728. package/js/src/pro/hollaex.js +0 -6
  729. package/js/src/pro/htx.js +0 -6
  730. package/js/src/pro/huobi.js +0 -6
  731. package/js/src/pro/hyperliquid.js +0 -6
  732. package/js/src/pro/independentreserve.js +0 -6
  733. package/js/src/pro/kraken.js +4 -9
  734. package/js/src/pro/krakenfutures.js +0 -6
  735. package/js/src/pro/kucoin.js +0 -6
  736. package/js/src/pro/kucoinfutures.js +0 -6
  737. package/js/src/pro/lbank.js +0 -6
  738. package/js/src/pro/luno.js +0 -6
  739. package/js/src/pro/mexc.js +0 -6
  740. package/js/src/pro/modetrade.js +0 -6
  741. package/js/src/pro/myokx.js +0 -6
  742. package/js/src/pro/ndax.js +0 -6
  743. package/js/src/pro/okx.js +0 -6
  744. package/js/src/pro/okxus.js +0 -6
  745. package/js/src/pro/onetrading.js +0 -6
  746. package/js/src/pro/oxfun.js +0 -6
  747. package/js/src/pro/p2b.js +0 -6
  748. package/js/src/pro/paradex.js +0 -6
  749. package/js/src/pro/phemex.js +0 -6
  750. package/js/src/pro/poloniex.js +0 -6
  751. package/js/src/pro/probit.js +0 -6
  752. package/js/src/pro/toobit.js +0 -6
  753. package/js/src/pro/upbit.js +0 -6
  754. package/js/src/pro/whitebit.js +0 -6
  755. package/js/src/pro/woo.js +0 -6
  756. package/js/src/pro/woofipro.js +0 -6
  757. package/js/src/pro/xt.d.ts +85 -2
  758. package/js/src/pro/xt.js +217 -10
  759. package/js/src/probit.js +0 -6
  760. package/js/src/protobuf/mexc/compiled.cjs +0 -6
  761. package/js/src/static_dependencies/dydx-v4-client/cosmos/base/v1beta1/coin.d.ts +90 -0
  762. package/js/src/static_dependencies/dydx-v4-client/cosmos/base/v1beta1/coin.js +157 -0
  763. package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/keys.d.ts +26 -0
  764. package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/keys.js +45 -0
  765. package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
  766. package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/multisig/v1beta1/multisig.js +79 -0
  767. package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/secp256k1/keys.d.ts +40 -0
  768. package/js/src/static_dependencies/dydx-v4-client/cosmos/crypto/secp256k1/keys.js +71 -0
  769. package/js/src/static_dependencies/dydx-v4-client/cosmos/tx/signing/v1beta1/signing.d.ts +162 -0
  770. package/js/src/static_dependencies/dydx-v4-client/cosmos/tx/signing/v1beta1/signing.js +323 -0
  771. package/js/src/static_dependencies/dydx-v4-client/cosmos/tx/v1beta1/tx.d.ts +460 -0
  772. package/js/src/static_dependencies/dydx-v4-client/cosmos/tx/v1beta1/tx.js +692 -0
  773. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/accountplus/tx.d.ts +127 -0
  774. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/accountplus/tx.js +280 -0
  775. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/block_rate_limit_config.d.ts +66 -0
  776. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/block_rate_limit_config.js +103 -0
  777. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/clob_pair.d.ts +127 -0
  778. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/clob_pair.js +251 -0
  779. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/equity_tier_limit_config.d.ts +48 -0
  780. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/equity_tier_limit_config.js +87 -0
  781. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/finalize_block.d.ts +23 -0
  782. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/finalize_block.js +37 -0
  783. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/liquidations.d.ts +92 -0
  784. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/liquidations.js +158 -0
  785. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/liquidations_config.d.ts +124 -0
  786. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/liquidations_config.js +190 -0
  787. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/matches.d.ts +159 -0
  788. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/matches.js +318 -0
  789. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order.d.ts +546 -0
  790. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order.js +866 -0
  791. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order_removals.d.ts +84 -0
  792. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/order_removals.js +175 -0
  793. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/tx.d.ts +397 -0
  794. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/clob/tx.js +751 -0
  795. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/transfer.d.ts +120 -0
  796. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/transfer.js +240 -0
  797. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/tx.d.ts +79 -0
  798. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/sending/tx.js +141 -0
  799. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/asset_position.d.ts +32 -0
  800. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/asset_position.js +53 -0
  801. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/perpetual_position.d.ts +34 -0
  802. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/perpetual_position.js +60 -0
  803. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/subaccount.d.ts +62 -0
  804. package/js/src/static_dependencies/dydx-v4-client/dydxprotocol/subaccounts/subaccount.js +105 -0
  805. package/js/src/static_dependencies/dydx-v4-client/google/protobuf/any.d.ts +207 -0
  806. package/js/src/static_dependencies/dydx-v4-client/google/protobuf/any.js +44 -0
  807. package/js/src/static_dependencies/dydx-v4-client/helpers.d.ts +82 -0
  808. package/js/src/static_dependencies/dydx-v4-client/helpers.js +144 -0
  809. package/js/src/static_dependencies/dydx-v4-client/long/index.cjs +1467 -0
  810. package/js/src/static_dependencies/dydx-v4-client/long/index.d.cts +2 -0
  811. package/js/src/static_dependencies/dydx-v4-client/onboarding.d.ts +35 -0
  812. package/js/src/static_dependencies/dydx-v4-client/onboarding.js +50 -0
  813. package/js/src/static_dependencies/dydx-v4-client/registry.d.ts +7 -0
  814. package/js/src/static_dependencies/dydx-v4-client/registry.js +30 -0
  815. package/js/src/static_dependencies/ethers/abi-coder.js +0 -6
  816. package/js/src/static_dependencies/ethers/address/address.js +0 -6
  817. package/js/src/static_dependencies/ethers/address/checks.js +0 -6
  818. package/js/src/static_dependencies/ethers/address/contract-address.js +0 -6
  819. package/js/src/static_dependencies/ethers/address/index.js +0 -6
  820. package/js/src/static_dependencies/ethers/bytes32.js +0 -6
  821. package/js/src/static_dependencies/ethers/coders/abstract-coder.js +0 -6
  822. package/js/src/static_dependencies/ethers/coders/address.js +0 -6
  823. package/js/src/static_dependencies/ethers/coders/anonymous.js +0 -6
  824. package/js/src/static_dependencies/ethers/coders/array.js +0 -6
  825. package/js/src/static_dependencies/ethers/coders/boolean.js +0 -6
  826. package/js/src/static_dependencies/ethers/coders/bytes.js +0 -6
  827. package/js/src/static_dependencies/ethers/coders/fixed-bytes.js +0 -6
  828. package/js/src/static_dependencies/ethers/coders/null.js +0 -6
  829. package/js/src/static_dependencies/ethers/coders/number.js +0 -6
  830. package/js/src/static_dependencies/ethers/coders/string.js +0 -6
  831. package/js/src/static_dependencies/ethers/coders/tuple.js +0 -6
  832. package/js/src/static_dependencies/ethers/fragments.js +0 -6
  833. package/js/src/static_dependencies/ethers/hash/index.js +0 -6
  834. package/js/src/static_dependencies/ethers/hash/solidity.js +0 -6
  835. package/js/src/static_dependencies/ethers/hash/typed-data.js +0 -6
  836. package/js/src/static_dependencies/ethers/index.js +0 -6
  837. package/js/src/static_dependencies/ethers/interface.js +0 -6
  838. package/js/src/static_dependencies/ethers/typed.js +0 -6
  839. package/js/src/static_dependencies/ethers/utils/base58.js +0 -6
  840. package/js/src/static_dependencies/ethers/utils/base64-browser.js +0 -6
  841. package/js/src/static_dependencies/ethers/utils/base64.js +0 -6
  842. package/js/src/static_dependencies/ethers/utils/data.js +0 -6
  843. package/js/src/static_dependencies/ethers/utils/errors.js +0 -6
  844. package/js/src/static_dependencies/ethers/utils/events.js +0 -6
  845. package/js/src/static_dependencies/ethers/utils/fixednumber.js +0 -6
  846. package/js/src/static_dependencies/ethers/utils/index.js +0 -6
  847. package/js/src/static_dependencies/ethers/utils/maths.js +0 -6
  848. package/js/src/static_dependencies/ethers/utils/properties.js +0 -6
  849. package/js/src/static_dependencies/ethers/utils/rlp-decode.js +0 -6
  850. package/js/src/static_dependencies/ethers/utils/rlp-encode.js +0 -6
  851. package/js/src/static_dependencies/ethers/utils/rlp.js +0 -6
  852. package/js/src/static_dependencies/ethers/utils/units.js +0 -6
  853. package/js/src/static_dependencies/ethers/utils/utf8.js +0 -6
  854. package/js/src/static_dependencies/ethers/utils/uuid.js +0 -6
  855. package/js/src/static_dependencies/fflake/browser.js +0 -6
  856. package/js/src/static_dependencies/jsencrypt/JSEncrypt.js +0 -6
  857. package/js/src/static_dependencies/jsencrypt/JSEncryptRSAKey.js +0 -6
  858. package/js/src/static_dependencies/jsencrypt/index.js +0 -6
  859. package/js/src/static_dependencies/jsencrypt/lib/asn1js/asn1.js +0 -6
  860. package/js/src/static_dependencies/jsencrypt/lib/asn1js/base64.js +0 -6
  861. package/js/src/static_dependencies/jsencrypt/lib/asn1js/hex.js +0 -6
  862. package/js/src/static_dependencies/jsencrypt/lib/asn1js/int10.js +0 -6
  863. package/js/src/static_dependencies/jsencrypt/lib/asn1js/oids.js +0 -6
  864. package/js/src/static_dependencies/jsencrypt/lib/jsbn/base64.js +0 -6
  865. package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.js +0 -6
  866. package/js/src/static_dependencies/jsencrypt/lib/jsbn/prng4.js +0 -6
  867. package/js/src/static_dependencies/jsencrypt/lib/jsbn/rng.js +0 -6
  868. package/js/src/static_dependencies/jsencrypt/lib/jsbn/rsa.js +0 -6
  869. package/js/src/static_dependencies/jsencrypt/lib/jsbn/util.js +0 -6
  870. package/js/src/static_dependencies/jsencrypt/lib/jsrsasign/asn1-1.0.js +0 -6
  871. package/js/src/static_dependencies/jsencrypt/lib/jsrsasign/yahoo.js +0 -6
  872. package/js/src/static_dependencies/messagepack/msgpack.js +0 -6
  873. package/js/src/static_dependencies/noble-curves/_shortw_utils.js +0 -6
  874. package/js/src/static_dependencies/noble-curves/abstract/curve.js +0 -6
  875. package/js/src/static_dependencies/noble-curves/abstract/edwards.js +0 -6
  876. package/js/src/static_dependencies/noble-curves/abstract/hash-to-curve.js +0 -6
  877. package/js/src/static_dependencies/noble-curves/abstract/modular.js +0 -6
  878. package/js/src/static_dependencies/noble-curves/abstract/montgomery.js +0 -6
  879. package/js/src/static_dependencies/noble-curves/abstract/poseidon.js +0 -6
  880. package/js/src/static_dependencies/noble-curves/abstract/utils.js +0 -6
  881. package/js/src/static_dependencies/noble-curves/abstract/weierstrass.js +0 -6
  882. package/js/src/static_dependencies/noble-curves/bn.js +0 -6
  883. package/js/src/static_dependencies/noble-curves/ed25519.js +0 -6
  884. package/js/src/static_dependencies/noble-curves/ed448.js +0 -6
  885. package/js/src/static_dependencies/noble-curves/index.js +0 -6
  886. package/js/src/static_dependencies/noble-curves/jubjub.js +0 -6
  887. package/js/src/static_dependencies/noble-curves/p256.js +0 -6
  888. package/js/src/static_dependencies/noble-curves/p384.js +0 -6
  889. package/js/src/static_dependencies/noble-curves/p521.js +0 -6
  890. package/js/src/static_dependencies/noble-curves/pasta.js +0 -6
  891. package/js/src/static_dependencies/noble-curves/secp256k1.js +0 -6
  892. package/js/src/static_dependencies/noble-hashes/_assert.js +0 -6
  893. package/js/src/static_dependencies/noble-hashes/_blake2.js +0 -6
  894. package/js/src/static_dependencies/noble-hashes/_sha2.js +0 -6
  895. package/js/src/static_dependencies/noble-hashes/_u64.js +0 -6
  896. package/js/src/static_dependencies/noble-hashes/argon2.js +0 -6
  897. package/js/src/static_dependencies/noble-hashes/blake2b.js +0 -6
  898. package/js/src/static_dependencies/noble-hashes/blake2s.js +0 -6
  899. package/js/src/static_dependencies/noble-hashes/blake3.js +0 -6
  900. package/js/src/static_dependencies/noble-hashes/crypto.js +0 -6
  901. package/js/src/static_dependencies/noble-hashes/cryptoNode.js +0 -6
  902. package/js/src/static_dependencies/noble-hashes/eskdf.js +0 -6
  903. package/js/src/static_dependencies/noble-hashes/hkdf.js +0 -6
  904. package/js/src/static_dependencies/noble-hashes/hmac.js +0 -6
  905. package/js/src/static_dependencies/noble-hashes/index.js +0 -6
  906. package/js/src/static_dependencies/noble-hashes/md5.js +0 -6
  907. package/js/src/static_dependencies/noble-hashes/pbkdf2.js +0 -6
  908. package/js/src/static_dependencies/noble-hashes/ripemd160.js +0 -6
  909. package/js/src/static_dependencies/noble-hashes/scrypt.js +0 -6
  910. package/js/src/static_dependencies/noble-hashes/sha1.js +0 -6
  911. package/js/src/static_dependencies/noble-hashes/sha256.js +0 -6
  912. package/js/src/static_dependencies/noble-hashes/sha3-addons.js +0 -6
  913. package/js/src/static_dependencies/noble-hashes/sha3.js +0 -6
  914. package/js/src/static_dependencies/noble-hashes/sha512.js +0 -6
  915. package/js/src/static_dependencies/noble-hashes/utils.d.ts +1 -0
  916. package/js/src/static_dependencies/noble-hashes/utils.js +4 -6
  917. package/js/src/static_dependencies/node-fetch/body.js +0 -6
  918. package/js/src/static_dependencies/node-fetch/errors/abort-error.js +0 -6
  919. package/js/src/static_dependencies/node-fetch/errors/base.js +0 -6
  920. package/js/src/static_dependencies/node-fetch/errors/fetch-error.js +0 -6
  921. package/js/src/static_dependencies/node-fetch/headers.js +0 -6
  922. package/js/src/static_dependencies/node-fetch/index.js +0 -6
  923. package/js/src/static_dependencies/node-fetch/request.js +0 -6
  924. package/js/src/static_dependencies/node-fetch/response.js +0 -6
  925. package/js/src/static_dependencies/node-fetch/utils/get-search.js +0 -6
  926. package/js/src/static_dependencies/node-fetch/utils/is-redirect.js +0 -6
  927. package/js/src/static_dependencies/node-fetch/utils/is.js +0 -6
  928. package/js/src/static_dependencies/node-fetch/utils/referrer.js +0 -6
  929. package/js/src/static_dependencies/proxies/agent-base/helpers.js +0 -6
  930. package/js/src/static_dependencies/proxies/agent-base/index.js +0 -6
  931. package/js/src/static_dependencies/proxies/http-proxy-agent/index.js +0 -6
  932. package/js/src/static_dependencies/proxies/https-proxy-agent/index.js +0 -6
  933. package/js/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.js +0 -6
  934. package/js/src/static_dependencies/qs/formats.js +0 -6
  935. package/js/src/static_dependencies/qs/index.js +0 -6
  936. package/js/src/static_dependencies/qs/parse.js +0 -6
  937. package/js/src/static_dependencies/qs/stringify.js +0 -6
  938. package/js/src/static_dependencies/qs/utils.js +0 -6
  939. package/js/src/static_dependencies/scure-base/index.js +0 -6
  940. package/js/src/static_dependencies/scure-bip32/index.d.ts +49 -0
  941. package/js/src/static_dependencies/scure-bip32/index.js +289 -0
  942. package/js/src/static_dependencies/scure-bip39/index.d.ts +54 -0
  943. package/js/src/static_dependencies/scure-bip39/index.js +134 -0
  944. package/js/src/static_dependencies/scure-bip39/wordlists/english.d.ts +1 -0
  945. package/js/src/static_dependencies/scure-bip39/wordlists/english.js +2048 -0
  946. package/js/src/static_dependencies/scure-starknet/index.js +0 -6
  947. package/js/src/static_dependencies/starknet/constants.js +0 -6
  948. package/js/src/static_dependencies/starknet/index.js +0 -6
  949. package/js/src/static_dependencies/starknet/types/cairoEnum.js +0 -6
  950. package/js/src/static_dependencies/starknet/types/calldata.js +0 -6
  951. package/js/src/static_dependencies/starknet/types/index.js +0 -6
  952. package/js/src/static_dependencies/starknet/types/lib/contract/abi.js +0 -6
  953. package/js/src/static_dependencies/starknet/types/lib/contract/index.js +0 -6
  954. package/js/src/static_dependencies/starknet/types/lib/contract/legacy.js +0 -6
  955. package/js/src/static_dependencies/starknet/types/lib/contract/sierra.js +0 -6
  956. package/js/src/static_dependencies/starknet/types/lib/index.js +0 -6
  957. package/js/src/static_dependencies/starknet/types/typedData.js +0 -6
  958. package/js/src/static_dependencies/starknet/utils/address.js +0 -6
  959. package/js/src/static_dependencies/starknet/utils/assert.js +0 -6
  960. package/js/src/static_dependencies/starknet/utils/cairoDataTypes/felt.js +0 -6
  961. package/js/src/static_dependencies/starknet/utils/cairoDataTypes/uint256.js +0 -6
  962. package/js/src/static_dependencies/starknet/utils/cairoDataTypes/uint512.js +0 -6
  963. package/js/src/static_dependencies/starknet/utils/calldata/byteArray.js +0 -6
  964. package/js/src/static_dependencies/starknet/utils/calldata/cairo.js +0 -6
  965. package/js/src/static_dependencies/starknet/utils/calldata/enum/CairoCustomEnum.js +0 -6
  966. package/js/src/static_dependencies/starknet/utils/calldata/enum/CairoOption.js +0 -6
  967. package/js/src/static_dependencies/starknet/utils/calldata/enum/CairoResult.js +0 -6
  968. package/js/src/static_dependencies/starknet/utils/calldata/enum/index.js +0 -6
  969. package/js/src/static_dependencies/starknet/utils/calldata/formatter.js +0 -6
  970. package/js/src/static_dependencies/starknet/utils/calldata/index.js +0 -6
  971. package/js/src/static_dependencies/starknet/utils/calldata/parser/index.js +0 -6
  972. package/js/src/static_dependencies/starknet/utils/calldata/parser/interface.js +0 -6
  973. package/js/src/static_dependencies/starknet/utils/calldata/parser/parser-0-1.1.0.js +0 -6
  974. package/js/src/static_dependencies/starknet/utils/calldata/parser/parser-2.0.0.js +0 -6
  975. package/js/src/static_dependencies/starknet/utils/calldata/propertyOrder.js +0 -6
  976. package/js/src/static_dependencies/starknet/utils/calldata/requestParser.js +0 -6
  977. package/js/src/static_dependencies/starknet/utils/calldata/responseParser.js +0 -6
  978. package/js/src/static_dependencies/starknet/utils/calldata/tuple.js +0 -6
  979. package/js/src/static_dependencies/starknet/utils/calldata/validate.js +0 -6
  980. package/js/src/static_dependencies/starknet/utils/encode.js +0 -6
  981. package/js/src/static_dependencies/starknet/utils/hash/classHash.js +0 -6
  982. package/js/src/static_dependencies/starknet/utils/hash/index.js +0 -6
  983. package/js/src/static_dependencies/starknet/utils/merkle.js +0 -6
  984. package/js/src/static_dependencies/starknet/utils/num.js +0 -6
  985. package/js/src/static_dependencies/starknet/utils/selector.js +0 -6
  986. package/js/src/static_dependencies/starknet/utils/shortString.js +0 -6
  987. package/js/src/static_dependencies/starknet/utils/starknetId.js +0 -6
  988. package/js/src/static_dependencies/starknet/utils/typedData.js +0 -6
  989. package/js/src/static_dependencies/starknet/utils/uint256.js +0 -6
  990. package/js/src/static_dependencies/starknet/utils/url.js +0 -6
  991. package/js/src/static_dependencies/watchable/src/index.js +0 -6
  992. package/js/src/static_dependencies/watchable/src/types.js +0 -6
  993. package/js/src/static_dependencies/watchable/src/unpromise.js +0 -6
  994. package/js/src/static_dependencies/zklink/zklink-sdk-web.js +0 -6
  995. package/js/src/timex.js +0 -6
  996. package/js/src/tokocrypto.js +0 -6
  997. package/js/src/toobit.js +2 -7
  998. package/js/src/upbit.js +0 -6
  999. package/js/src/wavesexchange.js +0 -6
  1000. package/js/src/whitebit.js +0 -6
  1001. package/js/src/woo.js +0 -6
  1002. package/js/src/woofipro.js +0 -6
  1003. package/js/src/xt.js +0 -6
  1004. package/js/src/yobit.js +0 -6
  1005. package/js/src/zaif.js +0 -6
  1006. package/js/src/zonda.js +0 -6
  1007. package/package.json +9 -3
@@ -3,14 +3,1464 @@
3
3
  var _commonjsHelpers = require('./_commonjsHelpers.js');
4
4
 
5
5
  const commonjsRegister = _commonjsHelpers.commonjsRegister;
6
- commonjsRegister("/$$rollup_base$$/js/src/static_dependencies/qs/index.cjs", function (module, exports) {
7
- var stringify = _commonjsHelpers.commonjsRequire("./stringify.cjs", "/$$rollup_base$$/js/src/static_dependencies/qs");
8
- var parse = _commonjsHelpers.commonjsRequire("./parse.cjs", "/$$rollup_base$$/js/src/static_dependencies/qs");
9
- var formats = _commonjsHelpers.commonjsRequire("./formats.cjs", "/$$rollup_base$$/js/src/static_dependencies/qs");
10
- module.exports = {
11
- formats: formats,
12
- parse: parse,
13
- stringify: stringify
14
- };
6
+ commonjsRegister("/$$rollup_base$$/js/src/static_dependencies/dydx-v4-client/long/index.cjs", function (module, exports) {
7
+ // GENERATED FILE. DO NOT EDIT.
8
+ (function (global, factory) {
9
+ function preferDefault(exports) {
10
+ return exports.default || exports;
11
+ }
12
+ if (typeof exports === "object") {
13
+ factory(exports);
14
+ if (typeof module === "object")
15
+ module.exports = preferDefault(exports);
16
+ }
17
+ else {
18
+ (function () {
19
+ var exports = {};
20
+ factory(exports);
21
+ global.Long = preferDefault(exports);
22
+ })();
23
+ }
24
+ })(typeof globalThis !== "undefined"
25
+ ? globalThis
26
+ : typeof self !== "undefined"
27
+ ? self
28
+ : this, function (_exports) {
29
+ Object.defineProperty(_exports, "__esModule", {
30
+ value: true,
31
+ });
32
+ _exports.default = void 0;
33
+ /**
34
+ * @license
35
+ * Copyright 2009 The Closure Library Authors
36
+ * Copyright 2020 Daniel Wirtz / The long.js Authors.
37
+ *
38
+ * Licensed under the Apache License, Version 2.0 (the "License");
39
+ * you may not use this file except in compliance with the License.
40
+ * You may obtain a copy of the License at
41
+ *
42
+ * http://www.apache.org/licenses/LICENSE-2.0
43
+ *
44
+ * Unless required by applicable law or agreed to in writing, software
45
+ * distributed under the License is distributed on an "AS IS" BASIS,
46
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
47
+ * See the License for the specific language governing permissions and
48
+ * limitations under the License.
49
+ *
50
+ * SPDX-License-Identifier: Apache-2.0
51
+ */
52
+ // WebAssembly optimizations to do native i64 multiplication and divide
53
+ var wasm = null;
54
+ try {
55
+ wasm = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
56
+ // \0asm
57
+ 0, 97, 115, 109,
58
+ // version 1
59
+ 1, 0, 0, 0,
60
+ // section "type"
61
+ 1, 13, 2,
62
+ // 0, () => i32
63
+ 96, 0, 1, 127,
64
+ // 1, (i32, i32, i32, i32) => i32
65
+ 96, 4, 127, 127, 127, 127, 1, 127,
66
+ // section "function"
67
+ 3, 7, 6,
68
+ // 0, type 0
69
+ 0,
70
+ // 1, type 1
71
+ 1,
72
+ // 2, type 1
73
+ 1,
74
+ // 3, type 1
75
+ 1,
76
+ // 4, type 1
77
+ 1,
78
+ // 5, type 1
79
+ 1,
80
+ // section "global"
81
+ 6, 6, 1,
82
+ // 0, "high", mutable i32
83
+ 127, 1, 65, 0, 11,
84
+ // section "export"
85
+ 7, 50, 6,
86
+ // 0, "mul"
87
+ 3, 109, 117, 108, 0, 1,
88
+ // 1, "div_s"
89
+ 5, 100, 105, 118, 95, 115, 0, 2,
90
+ // 2, "div_u"
91
+ 5, 100, 105, 118, 95, 117, 0, 3,
92
+ // 3, "rem_s"
93
+ 5, 114, 101, 109, 95, 115, 0, 4,
94
+ // 4, "rem_u"
95
+ 5, 114, 101, 109, 95, 117, 0, 5,
96
+ // 5, "get_high"
97
+ 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0,
98
+ // section "code"
99
+ 10, 191, 1, 6,
100
+ // 0, "get_high"
101
+ 4, 0, 35, 0, 11,
102
+ // 1, "mul"
103
+ 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173,
104
+ 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0,
105
+ 32, 4, 167, 11,
106
+ // 2, "div_s"
107
+ 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173,
108
+ 32, 3, 173, 66, 32, 134, 132, 127, 34, 4, 66, 32, 135, 167, 36, 0,
109
+ 32, 4, 167, 11,
110
+ // 3, "div_u"
111
+ 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173,
112
+ 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, 36, 0,
113
+ 32, 4, 167, 11,
114
+ // 4, "rem_s"
115
+ 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173,
116
+ 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0,
117
+ 32, 4, 167, 11,
118
+ // 5, "rem_u"
119
+ 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173,
120
+ 32, 3, 173, 66, 32, 134, 132, 130, 34, 4, 66, 32, 135, 167, 36, 0,
121
+ 32, 4, 167, 11,
122
+ ])), {}).exports;
123
+ }
124
+ catch {
125
+ // no wasm support :(
126
+ }
127
+ /**
128
+ * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as *signed* integers.
129
+ * See the from* functions below for more convenient ways of constructing Longs.
130
+ * @exports Long
131
+ * @class A Long class for representing a 64 bit two's-complement integer value.
132
+ * @param {number} low The low (signed) 32 bits of the long
133
+ * @param {number} high The high (signed) 32 bits of the long
134
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
135
+ * @constructor
136
+ */
137
+ function Long(low, high, unsigned) {
138
+ /**
139
+ * The low 32 bits as a signed value.
140
+ * @type {number}
141
+ */
142
+ this.low = low | 0;
143
+ /**
144
+ * The high 32 bits as a signed value.
145
+ * @type {number}
146
+ */
147
+ this.high = high | 0;
148
+ /**
149
+ * Whether unsigned or not.
150
+ * @type {boolean}
151
+ */
152
+ this.unsigned = !!unsigned;
153
+ }
154
+ // The internal representation of a long is the two given signed, 32-bit values.
155
+ // We use 32-bit pieces because these are the size of integers on which
156
+ // Javascript performs bit-operations. For operations like addition and
157
+ // multiplication, we split each number into 16 bit pieces, which can easily be
158
+ // multiplied within Javascript's floating-point representation without overflow
159
+ // or change in sign.
160
+ //
161
+ // In the algorithms below, we frequently reduce the negative case to the
162
+ // positive case by negating the input(s) and then post-processing the result.
163
+ // Note that we must ALWAYS check specially whether those values are MIN_VALUE
164
+ // (-2^63) because -MIN_VALUE == MIN_VALUE (since 2^63 cannot be represented as
165
+ // a positive number, it overflows back into a negative). Not handling this
166
+ // case would often result in infinite recursion.
167
+ //
168
+ // Common constant values ZERO, ONE, NEG_ONE, etc. are defined below the from*
169
+ // methods on which they depend.
170
+ /**
171
+ * An indicator used to reliably determine if an object is a Long or not.
172
+ * @type {boolean}
173
+ * @const
174
+ * @private
175
+ */
176
+ Long.prototype.__isLong__;
177
+ Object.defineProperty(Long.prototype, "__isLong__", {
178
+ value: true,
179
+ });
180
+ /**
181
+ * @function
182
+ * @param {*} obj Object
183
+ * @returns {boolean}
184
+ * @inner
185
+ */
186
+ function isLong(obj) {
187
+ return (obj && obj["__isLong__"]) === true;
188
+ }
189
+ /**
190
+ * @function
191
+ * @param {*} value number
192
+ * @returns {number}
193
+ * @inner
194
+ */
195
+ function ctz32(value) {
196
+ var c = Math.clz32(value & -value);
197
+ return value ? 31 - c : c;
198
+ }
199
+ /**
200
+ * Tests if the specified object is a Long.
201
+ * @function
202
+ * @param {*} obj Object
203
+ * @returns {boolean}
204
+ */
205
+ Long.isLong = isLong;
206
+ /**
207
+ * A cache of the Long representations of small integer values.
208
+ * @type {!Object}
209
+ * @inner
210
+ */
211
+ var INT_CACHE = {};
212
+ /**
213
+ * A cache of the Long representations of small unsigned integer values.
214
+ * @type {!Object}
215
+ * @inner
216
+ */
217
+ var UINT_CACHE = {};
218
+ /**
219
+ * @param {number} value
220
+ * @param {boolean=} unsigned
221
+ * @returns {!Long}
222
+ * @inner
223
+ */
224
+ function fromInt(value, unsigned) {
225
+ var obj, cachedObj, cache;
226
+ if (unsigned) {
227
+ value >>>= 0;
228
+ if ((cache = 0 <= value && value < 256)) {
229
+ cachedObj = UINT_CACHE[value];
230
+ if (cachedObj)
231
+ return cachedObj;
232
+ }
233
+ obj = fromBits(value, 0, true);
234
+ if (cache)
235
+ UINT_CACHE[value] = obj;
236
+ return obj;
237
+ }
238
+ else {
239
+ value |= 0;
240
+ if ((cache = -128 <= value && value < 128)) {
241
+ cachedObj = INT_CACHE[value];
242
+ if (cachedObj)
243
+ return cachedObj;
244
+ }
245
+ obj = fromBits(value, value < 0 ? -1 : 0, false);
246
+ if (cache)
247
+ INT_CACHE[value] = obj;
248
+ return obj;
249
+ }
250
+ }
251
+ /**
252
+ * Returns a Long representing the given 32 bit integer value.
253
+ * @function
254
+ * @param {number} value The 32 bit integer in question
255
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
256
+ * @returns {!Long} The corresponding Long value
257
+ */
258
+ Long.fromInt = fromInt;
259
+ /**
260
+ * @param {number} value
261
+ * @param {boolean=} unsigned
262
+ * @returns {!Long}
263
+ * @inner
264
+ */
265
+ function fromNumber(value, unsigned) {
266
+ if (isNaN(value))
267
+ return unsigned ? UZERO : ZERO;
268
+ if (unsigned) {
269
+ if (value < 0)
270
+ return UZERO;
271
+ if (value >= TWO_PWR_64_DBL)
272
+ return MAX_UNSIGNED_VALUE;
273
+ }
274
+ else {
275
+ if (value <= -TWO_PWR_63_DBL)
276
+ return MIN_VALUE;
277
+ if (value + 1 >= TWO_PWR_63_DBL)
278
+ return MAX_VALUE;
279
+ }
280
+ if (value < 0)
281
+ return fromNumber(-value, unsigned).neg();
282
+ return fromBits(value % TWO_PWR_32_DBL | 0, (value / TWO_PWR_32_DBL) | 0, unsigned);
283
+ }
284
+ /**
285
+ * Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.
286
+ * @function
287
+ * @param {number} value The number in question
288
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
289
+ * @returns {!Long} The corresponding Long value
290
+ */
291
+ Long.fromNumber = fromNumber;
292
+ /**
293
+ * @param {number} lowBits
294
+ * @param {number} highBits
295
+ * @param {boolean=} unsigned
296
+ * @returns {!Long}
297
+ * @inner
298
+ */
299
+ function fromBits(lowBits, highBits, unsigned) {
300
+ return new Long(lowBits, highBits, unsigned);
301
+ }
302
+ /**
303
+ * Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is
304
+ * assumed to use 32 bits.
305
+ * @function
306
+ * @param {number} lowBits The low 32 bits
307
+ * @param {number} highBits The high 32 bits
308
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
309
+ * @returns {!Long} The corresponding Long value
310
+ */
311
+ Long.fromBits = fromBits;
312
+ /**
313
+ * @function
314
+ * @param {number} base
315
+ * @param {number} exponent
316
+ * @returns {number}
317
+ * @inner
318
+ */
319
+ var pow_dbl = Math.pow; // Used 4 times (4*8 to 15+4)
320
+ /**
321
+ * @param {string} str
322
+ * @param {(boolean|number)=} unsigned
323
+ * @param {number=} radix
324
+ * @returns {!Long}
325
+ * @inner
326
+ */
327
+ function fromString(str, unsigned, radix) {
328
+ if (str.length === 0)
329
+ throw Error("empty string");
330
+ if (typeof unsigned === "number") {
331
+ // For goog.math.long compatibility
332
+ radix = unsigned;
333
+ unsigned = false;
334
+ }
335
+ else {
336
+ unsigned = !!unsigned;
337
+ }
338
+ if (str === "NaN" ||
339
+ str === "Infinity" ||
340
+ str === "+Infinity" ||
341
+ str === "-Infinity")
342
+ return unsigned ? UZERO : ZERO;
343
+ radix = radix || 10;
344
+ if (radix < 2 || 36 < radix)
345
+ throw RangeError("radix");
346
+ var p;
347
+ if ((p = str.indexOf("-")) > 0)
348
+ throw Error("interior hyphen");
349
+ else if (p === 0) {
350
+ return fromString(str.substring(1), unsigned, radix).neg();
351
+ }
352
+ // Do several (8) digits each time through the loop, so as to
353
+ // minimize the calls to the very expensive emulated div.
354
+ var radixToPower = fromNumber(pow_dbl(radix, 8));
355
+ var result = ZERO;
356
+ for (var i = 0; i < str.length; i += 8) {
357
+ var size = Math.min(8, str.length - i), value = parseInt(str.substring(i, i + size), radix);
358
+ if (size < 8) {
359
+ var power = fromNumber(pow_dbl(radix, size));
360
+ result = result.mul(power).add(fromNumber(value));
361
+ }
362
+ else {
363
+ result = result.mul(radixToPower);
364
+ result = result.add(fromNumber(value));
365
+ }
366
+ }
367
+ result.unsigned = unsigned;
368
+ return result;
369
+ }
370
+ /**
371
+ * Returns a Long representation of the given string, written using the specified radix.
372
+ * @function
373
+ * @param {string} str The textual representation of the Long
374
+ * @param {(boolean|number)=} unsigned Whether unsigned or not, defaults to signed
375
+ * @param {number=} radix The radix in which the text is written (2-36), defaults to 10
376
+ * @returns {!Long} The corresponding Long value
377
+ */
378
+ Long.fromString = fromString;
379
+ /**
380
+ * @function
381
+ * @param {!Long|number|string|!{low: number, high: number, unsigned: boolean}} val
382
+ * @param {boolean=} unsigned
383
+ * @returns {!Long}
384
+ * @inner
385
+ */
386
+ function fromValue(val, unsigned) {
387
+ if (typeof val === "number")
388
+ return fromNumber(val, unsigned);
389
+ if (typeof val === "string")
390
+ return fromString(val, unsigned);
391
+ // Throws for non-objects, converts non-instanceof Long:
392
+ return fromBits(val.low, val.high, typeof unsigned === "boolean" ? unsigned : val.unsigned);
393
+ }
394
+ /**
395
+ * Converts the specified value to a Long using the appropriate from* function for its type.
396
+ * @function
397
+ * @param {!Long|number|bigint|string|!{low: number, high: number, unsigned: boolean}} val Value
398
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
399
+ * @returns {!Long}
400
+ */
401
+ Long.fromValue = fromValue;
402
+ // NOTE: the compiler should inline these constant values below and then remove these variables, so there should be
403
+ // no runtime penalty for these.
404
+ /**
405
+ * @type {number}
406
+ * @const
407
+ * @inner
408
+ */
409
+ var TWO_PWR_16_DBL = 1 << 16;
410
+ /**
411
+ * @type {number}
412
+ * @const
413
+ * @inner
414
+ */
415
+ var TWO_PWR_24_DBL = 1 << 24;
416
+ /**
417
+ * @type {number}
418
+ * @const
419
+ * @inner
420
+ */
421
+ var TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL;
422
+ /**
423
+ * @type {number}
424
+ * @const
425
+ * @inner
426
+ */
427
+ var TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL;
428
+ /**
429
+ * @type {number}
430
+ * @const
431
+ * @inner
432
+ */
433
+ var TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2;
434
+ /**
435
+ * @type {!Long}
436
+ * @const
437
+ * @inner
438
+ */
439
+ var TWO_PWR_24 = fromInt(TWO_PWR_24_DBL);
440
+ /**
441
+ * @type {!Long}
442
+ * @inner
443
+ */
444
+ var ZERO = fromInt(0);
445
+ /**
446
+ * Signed zero.
447
+ * @type {!Long}
448
+ */
449
+ Long.ZERO = ZERO;
450
+ /**
451
+ * @type {!Long}
452
+ * @inner
453
+ */
454
+ var UZERO = fromInt(0, true);
455
+ /**
456
+ * Unsigned zero.
457
+ * @type {!Long}
458
+ */
459
+ Long.UZERO = UZERO;
460
+ /**
461
+ * @type {!Long}
462
+ * @inner
463
+ */
464
+ var ONE = fromInt(1);
465
+ /**
466
+ * Signed one.
467
+ * @type {!Long}
468
+ */
469
+ Long.ONE = ONE;
470
+ /**
471
+ * @type {!Long}
472
+ * @inner
473
+ */
474
+ var UONE = fromInt(1, true);
475
+ /**
476
+ * Unsigned one.
477
+ * @type {!Long}
478
+ */
479
+ Long.UONE = UONE;
480
+ /**
481
+ * @type {!Long}
482
+ * @inner
483
+ */
484
+ var NEG_ONE = fromInt(-1);
485
+ /**
486
+ * Signed negative one.
487
+ * @type {!Long}
488
+ */
489
+ Long.NEG_ONE = NEG_ONE;
490
+ /**
491
+ * @type {!Long}
492
+ * @inner
493
+ */
494
+ var MAX_VALUE = fromBits(0xffffffff | 0, 0x7fffffff | 0, false);
495
+ /**
496
+ * Maximum signed value.
497
+ * @type {!Long}
498
+ */
499
+ Long.MAX_VALUE = MAX_VALUE;
500
+ /**
501
+ * @type {!Long}
502
+ * @inner
503
+ */
504
+ var MAX_UNSIGNED_VALUE = fromBits(0xffffffff | 0, 0xffffffff | 0, true);
505
+ /**
506
+ * Maximum unsigned value.
507
+ * @type {!Long}
508
+ */
509
+ Long.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE;
510
+ /**
511
+ * @type {!Long}
512
+ * @inner
513
+ */
514
+ var MIN_VALUE = fromBits(0, 0x80000000 | 0, false);
515
+ /**
516
+ * Minimum signed value.
517
+ * @type {!Long}
518
+ */
519
+ Long.MIN_VALUE = MIN_VALUE;
520
+ /**
521
+ * @alias Long.prototype
522
+ * @inner
523
+ */
524
+ var LongPrototype = Long.prototype;
525
+ /**
526
+ * Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.
527
+ * @this {!Long}
528
+ * @returns {number}
529
+ */
530
+ LongPrototype.toInt = function toInt() {
531
+ return this.unsigned ? this.low >>> 0 : this.low;
532
+ };
533
+ /**
534
+ * Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).
535
+ * @this {!Long}
536
+ * @returns {number}
537
+ */
538
+ LongPrototype.toNumber = function toNumber() {
539
+ if (this.unsigned)
540
+ return (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0);
541
+ return this.high * TWO_PWR_32_DBL + (this.low >>> 0);
542
+ };
543
+ /**
544
+ * Converts the Long to a string written in the specified radix.
545
+ * @this {!Long}
546
+ * @param {number=} radix Radix (2-36), defaults to 10
547
+ * @returns {string}
548
+ * @override
549
+ * @throws {RangeError} If `radix` is out of range
550
+ */
551
+ LongPrototype.toString = function toString(radix) {
552
+ radix = radix || 10;
553
+ if (radix < 2 || 36 < radix)
554
+ throw RangeError("radix");
555
+ if (this.isZero())
556
+ return "0";
557
+ if (this.isNegative()) {
558
+ // Unsigned Longs are never negative
559
+ if (this.eq(MIN_VALUE)) {
560
+ // We need to change the Long value before it can be negated, so we remove
561
+ // the bottom-most digit in this base and then recurse to do the rest.
562
+ var radixLong = fromNumber(radix), div = this.div(radixLong), rem1 = div.mul(radixLong).sub(this);
563
+ return div.toString(radix) + rem1.toInt().toString(radix);
564
+ }
565
+ else
566
+ return "-" + this.neg().toString(radix);
567
+ }
568
+ // Do several (6) digits each time through the loop, so as to
569
+ // minimize the calls to the very expensive emulated div.
570
+ var radixToPower = fromNumber(pow_dbl(radix, 6), this.unsigned), rem = this;
571
+ var result = "";
572
+ while (true) {
573
+ var remDiv = rem.div(radixToPower), intval = rem.sub(remDiv.mul(radixToPower)).toInt() >>> 0, digits = intval.toString(radix);
574
+ rem = remDiv;
575
+ if (rem.isZero())
576
+ return digits + result;
577
+ else {
578
+ while (digits.length < 6)
579
+ digits = "0" + digits;
580
+ result = "" + digits + result;
581
+ }
582
+ }
583
+ };
584
+ /**
585
+ * Gets the high 32 bits as a signed integer.
586
+ * @this {!Long}
587
+ * @returns {number} Signed high bits
588
+ */
589
+ LongPrototype.getHighBits = function getHighBits() {
590
+ return this.high;
591
+ };
592
+ /**
593
+ * Gets the high 32 bits as an unsigned integer.
594
+ * @this {!Long}
595
+ * @returns {number} Unsigned high bits
596
+ */
597
+ LongPrototype.getHighBitsUnsigned = function getHighBitsUnsigned() {
598
+ return this.high >>> 0;
599
+ };
600
+ /**
601
+ * Gets the low 32 bits as a signed integer.
602
+ * @this {!Long}
603
+ * @returns {number} Signed low bits
604
+ */
605
+ LongPrototype.getLowBits = function getLowBits() {
606
+ return this.low;
607
+ };
608
+ /**
609
+ * Gets the low 32 bits as an unsigned integer.
610
+ * @this {!Long}
611
+ * @returns {number} Unsigned low bits
612
+ */
613
+ LongPrototype.getLowBitsUnsigned = function getLowBitsUnsigned() {
614
+ return this.low >>> 0;
615
+ };
616
+ /**
617
+ * Gets the number of bits needed to represent the absolute value of this Long.
618
+ * @this {!Long}
619
+ * @returns {number}
620
+ */
621
+ LongPrototype.getNumBitsAbs = function getNumBitsAbs() {
622
+ if (this.isNegative())
623
+ // Unsigned Longs are never negative
624
+ return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs();
625
+ var val = this.high != 0 ? this.high : this.low;
626
+ for (var bit = 31; bit > 0; bit--)
627
+ if ((val & (1 << bit)) != 0)
628
+ break;
629
+ return this.high != 0 ? bit + 33 : bit + 1;
630
+ };
631
+ /**
632
+ * Tests if this Long can be safely represented as a JavaScript number.
633
+ * @this {!Long}
634
+ * @returns {boolean}
635
+ */
636
+ LongPrototype.isSafeInteger = function isSafeInteger() {
637
+ // 2^53-1 is the maximum safe value
638
+ var top11Bits = this.high >> 21;
639
+ // [0, 2^53-1]
640
+ if (!top11Bits)
641
+ return true;
642
+ // > 2^53-1
643
+ if (this.unsigned)
644
+ return false;
645
+ // [-2^53, -1] except -2^53
646
+ return top11Bits === -1 && !(this.low === 0 && this.high === -0x200000);
647
+ };
648
+ /**
649
+ * Tests if this Long's value equals zero.
650
+ * @this {!Long}
651
+ * @returns {boolean}
652
+ */
653
+ LongPrototype.isZero = function isZero() {
654
+ return this.high === 0 && this.low === 0;
655
+ };
656
+ /**
657
+ * Tests if this Long's value equals zero. This is an alias of {@link Long#isZero}.
658
+ * @returns {boolean}
659
+ */
660
+ LongPrototype.eqz = LongPrototype.isZero;
661
+ /**
662
+ * Tests if this Long's value is negative.
663
+ * @this {!Long}
664
+ * @returns {boolean}
665
+ */
666
+ LongPrototype.isNegative = function isNegative() {
667
+ return !this.unsigned && this.high < 0;
668
+ };
669
+ /**
670
+ * Tests if this Long's value is positive or zero.
671
+ * @this {!Long}
672
+ * @returns {boolean}
673
+ */
674
+ LongPrototype.isPositive = function isPositive() {
675
+ return this.unsigned || this.high >= 0;
676
+ };
677
+ /**
678
+ * Tests if this Long's value is odd.
679
+ * @this {!Long}
680
+ * @returns {boolean}
681
+ */
682
+ LongPrototype.isOdd = function isOdd() {
683
+ return (this.low & 1) === 1;
684
+ };
685
+ /**
686
+ * Tests if this Long's value is even.
687
+ * @this {!Long}
688
+ * @returns {boolean}
689
+ */
690
+ LongPrototype.isEven = function isEven() {
691
+ return (this.low & 1) === 0;
692
+ };
693
+ /**
694
+ * Tests if this Long's value equals the specified's.
695
+ * @this {!Long}
696
+ * @param {!Long|number|bigint|string} other Other value
697
+ * @returns {boolean}
698
+ */
699
+ LongPrototype.equals = function equals(other) {
700
+ if (!isLong(other))
701
+ other = fromValue(other);
702
+ if (this.unsigned !== other.unsigned &&
703
+ this.high >>> 31 === 1 &&
704
+ other.high >>> 31 === 1)
705
+ return false;
706
+ return this.high === other.high && this.low === other.low;
707
+ };
708
+ /**
709
+ * Tests if this Long's value equals the specified's. This is an alias of {@link Long#equals}.
710
+ * @function
711
+ * @param {!Long|number|bigint|string} other Other value
712
+ * @returns {boolean}
713
+ */
714
+ LongPrototype.eq = LongPrototype.equals;
715
+ /**
716
+ * Tests if this Long's value differs from the specified's.
717
+ * @this {!Long}
718
+ * @param {!Long|number|bigint|string} other Other value
719
+ * @returns {boolean}
720
+ */
721
+ LongPrototype.notEquals = function notEquals(other) {
722
+ return !this.eq(/* validates */ other);
723
+ };
724
+ /**
725
+ * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.
726
+ * @function
727
+ * @param {!Long|number|bigint|string} other Other value
728
+ * @returns {boolean}
729
+ */
730
+ LongPrototype.neq = LongPrototype.notEquals;
731
+ /**
732
+ * Tests if this Long's value differs from the specified's. This is an alias of {@link Long#notEquals}.
733
+ * @function
734
+ * @param {!Long|number|bigint|string} other Other value
735
+ * @returns {boolean}
736
+ */
737
+ LongPrototype.ne = LongPrototype.notEquals;
738
+ /**
739
+ * Tests if this Long's value is less than the specified's.
740
+ * @this {!Long}
741
+ * @param {!Long|number|bigint|string} other Other value
742
+ * @returns {boolean}
743
+ */
744
+ LongPrototype.lessThan = function lessThan(other) {
745
+ return this.comp(/* validates */ other) < 0;
746
+ };
747
+ /**
748
+ * Tests if this Long's value is less than the specified's. This is an alias of {@link Long#lessThan}.
749
+ * @function
750
+ * @param {!Long|number|bigint|string} other Other value
751
+ * @returns {boolean}
752
+ */
753
+ LongPrototype.lt = LongPrototype.lessThan;
754
+ /**
755
+ * Tests if this Long's value is less than or equal the specified's.
756
+ * @this {!Long}
757
+ * @param {!Long|number|bigint|string} other Other value
758
+ * @returns {boolean}
759
+ */
760
+ LongPrototype.lessThanOrEqual = function lessThanOrEqual(other) {
761
+ return this.comp(/* validates */ other) <= 0;
762
+ };
763
+ /**
764
+ * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.
765
+ * @function
766
+ * @param {!Long|number|bigint|string} other Other value
767
+ * @returns {boolean}
768
+ */
769
+ LongPrototype.lte = LongPrototype.lessThanOrEqual;
770
+ /**
771
+ * Tests if this Long's value is less than or equal the specified's. This is an alias of {@link Long#lessThanOrEqual}.
772
+ * @function
773
+ * @param {!Long|number|bigint|string} other Other value
774
+ * @returns {boolean}
775
+ */
776
+ LongPrototype.le = LongPrototype.lessThanOrEqual;
777
+ /**
778
+ * Tests if this Long's value is greater than the specified's.
779
+ * @this {!Long}
780
+ * @param {!Long|number|bigint|string} other Other value
781
+ * @returns {boolean}
782
+ */
783
+ LongPrototype.greaterThan = function greaterThan(other) {
784
+ return this.comp(/* validates */ other) > 0;
785
+ };
786
+ /**
787
+ * Tests if this Long's value is greater than the specified's. This is an alias of {@link Long#greaterThan}.
788
+ * @function
789
+ * @param {!Long|number|bigint|string} other Other value
790
+ * @returns {boolean}
791
+ */
792
+ LongPrototype.gt = LongPrototype.greaterThan;
793
+ /**
794
+ * Tests if this Long's value is greater than or equal the specified's.
795
+ * @this {!Long}
796
+ * @param {!Long|number|bigint|string} other Other value
797
+ * @returns {boolean}
798
+ */
799
+ LongPrototype.greaterThanOrEqual = function greaterThanOrEqual(other) {
800
+ return this.comp(/* validates */ other) >= 0;
801
+ };
802
+ /**
803
+ * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.
804
+ * @function
805
+ * @param {!Long|number|bigint|string} other Other value
806
+ * @returns {boolean}
807
+ */
808
+ LongPrototype.gte = LongPrototype.greaterThanOrEqual;
809
+ /**
810
+ * Tests if this Long's value is greater than or equal the specified's. This is an alias of {@link Long#greaterThanOrEqual}.
811
+ * @function
812
+ * @param {!Long|number|bigint|string} other Other value
813
+ * @returns {boolean}
814
+ */
815
+ LongPrototype.ge = LongPrototype.greaterThanOrEqual;
816
+ /**
817
+ * Compares this Long's value with the specified's.
818
+ * @this {!Long}
819
+ * @param {!Long|number|bigint|string} other Other value
820
+ * @returns {number} 0 if they are the same, 1 if the this is greater and -1
821
+ * if the given one is greater
822
+ */
823
+ LongPrototype.compare = function compare(other) {
824
+ if (!isLong(other))
825
+ other = fromValue(other);
826
+ if (this.eq(other))
827
+ return 0;
828
+ var thisNeg = this.isNegative(), otherNeg = other.isNegative();
829
+ if (thisNeg && !otherNeg)
830
+ return -1;
831
+ if (!thisNeg && otherNeg)
832
+ return 1;
833
+ // At this point the sign bits are the same
834
+ if (!this.unsigned)
835
+ return this.sub(other).isNegative() ? -1 : 1;
836
+ // Both are positive if at least one is unsigned
837
+ return other.high >>> 0 > this.high >>> 0 ||
838
+ (other.high === this.high && other.low >>> 0 > this.low >>> 0)
839
+ ? -1
840
+ : 1;
841
+ };
842
+ /**
843
+ * Compares this Long's value with the specified's. This is an alias of {@link Long#compare}.
844
+ * @function
845
+ * @param {!Long|number|bigint|string} other Other value
846
+ * @returns {number} 0 if they are the same, 1 if the this is greater and -1
847
+ * if the given one is greater
848
+ */
849
+ LongPrototype.comp = LongPrototype.compare;
850
+ /**
851
+ * Negates this Long's value.
852
+ * @this {!Long}
853
+ * @returns {!Long} Negated Long
854
+ */
855
+ LongPrototype.negate = function negate() {
856
+ if (!this.unsigned && this.eq(MIN_VALUE))
857
+ return MIN_VALUE;
858
+ return this.not().add(ONE);
859
+ };
860
+ /**
861
+ * Negates this Long's value. This is an alias of {@link Long#negate}.
862
+ * @function
863
+ * @returns {!Long} Negated Long
864
+ */
865
+ LongPrototype.neg = LongPrototype.negate;
866
+ /**
867
+ * Returns the sum of this and the specified Long.
868
+ * @this {!Long}
869
+ * @param {!Long|number|bigint|string} addend Addend
870
+ * @returns {!Long} Sum
871
+ */
872
+ LongPrototype.add = function add(addend) {
873
+ if (!isLong(addend))
874
+ addend = fromValue(addend);
875
+ // Divide each number into 4 chunks of 16 bits, and then sum the chunks.
876
+ var a48 = this.high >>> 16;
877
+ var a32 = this.high & 0xffff;
878
+ var a16 = this.low >>> 16;
879
+ var a00 = this.low & 0xffff;
880
+ var b48 = addend.high >>> 16;
881
+ var b32 = addend.high & 0xffff;
882
+ var b16 = addend.low >>> 16;
883
+ var b00 = addend.low & 0xffff;
884
+ var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
885
+ c00 += a00 + b00;
886
+ c16 += c00 >>> 16;
887
+ c00 &= 0xffff;
888
+ c16 += a16 + b16;
889
+ c32 += c16 >>> 16;
890
+ c16 &= 0xffff;
891
+ c32 += a32 + b32;
892
+ c48 += c32 >>> 16;
893
+ c32 &= 0xffff;
894
+ c48 += a48 + b48;
895
+ c48 &= 0xffff;
896
+ return fromBits((c16 << 16) | c00, (c48 << 16) | c32, this.unsigned);
897
+ };
898
+ /**
899
+ * Returns the difference of this and the specified Long.
900
+ * @this {!Long}
901
+ * @param {!Long|number|bigint|string} subtrahend Subtrahend
902
+ * @returns {!Long} Difference
903
+ */
904
+ LongPrototype.subtract = function subtract(subtrahend) {
905
+ if (!isLong(subtrahend))
906
+ subtrahend = fromValue(subtrahend);
907
+ return this.add(subtrahend.neg());
908
+ };
909
+ /**
910
+ * Returns the difference of this and the specified Long. This is an alias of {@link Long#subtract}.
911
+ * @function
912
+ * @param {!Long|number|bigint|string} subtrahend Subtrahend
913
+ * @returns {!Long} Difference
914
+ */
915
+ LongPrototype.sub = LongPrototype.subtract;
916
+ /**
917
+ * Returns the product of this and the specified Long.
918
+ * @this {!Long}
919
+ * @param {!Long|number|bigint|string} multiplier Multiplier
920
+ * @returns {!Long} Product
921
+ */
922
+ LongPrototype.multiply = function multiply(multiplier) {
923
+ if (this.isZero())
924
+ return this;
925
+ if (!isLong(multiplier))
926
+ multiplier = fromValue(multiplier);
927
+ // use wasm support if present
928
+ if (wasm) {
929
+ var low = wasm["mul"](this.low, this.high, multiplier.low, multiplier.high);
930
+ return fromBits(low, wasm["get_high"](), this.unsigned);
931
+ }
932
+ if (multiplier.isZero())
933
+ return this.unsigned ? UZERO : ZERO;
934
+ if (this.eq(MIN_VALUE))
935
+ return multiplier.isOdd() ? MIN_VALUE : ZERO;
936
+ if (multiplier.eq(MIN_VALUE))
937
+ return this.isOdd() ? MIN_VALUE : ZERO;
938
+ if (this.isNegative()) {
939
+ if (multiplier.isNegative())
940
+ return this.neg().mul(multiplier.neg());
941
+ else
942
+ return this.neg().mul(multiplier).neg();
943
+ }
944
+ else if (multiplier.isNegative())
945
+ return this.mul(multiplier.neg()).neg();
946
+ // If both longs are small, use float multiplication
947
+ if (this.lt(TWO_PWR_24) && multiplier.lt(TWO_PWR_24))
948
+ return fromNumber(this.toNumber() * multiplier.toNumber(), this.unsigned);
949
+ // Divide each long into 4 chunks of 16 bits, and then add up 4x4 products.
950
+ // We can skip products that would overflow.
951
+ var a48 = this.high >>> 16;
952
+ var a32 = this.high & 0xffff;
953
+ var a16 = this.low >>> 16;
954
+ var a00 = this.low & 0xffff;
955
+ var b48 = multiplier.high >>> 16;
956
+ var b32 = multiplier.high & 0xffff;
957
+ var b16 = multiplier.low >>> 16;
958
+ var b00 = multiplier.low & 0xffff;
959
+ var c48 = 0, c32 = 0, c16 = 0, c00 = 0;
960
+ c00 += a00 * b00;
961
+ c16 += c00 >>> 16;
962
+ c00 &= 0xffff;
963
+ c16 += a16 * b00;
964
+ c32 += c16 >>> 16;
965
+ c16 &= 0xffff;
966
+ c16 += a00 * b16;
967
+ c32 += c16 >>> 16;
968
+ c16 &= 0xffff;
969
+ c32 += a32 * b00;
970
+ c48 += c32 >>> 16;
971
+ c32 &= 0xffff;
972
+ c32 += a16 * b16;
973
+ c48 += c32 >>> 16;
974
+ c32 &= 0xffff;
975
+ c32 += a00 * b32;
976
+ c48 += c32 >>> 16;
977
+ c32 &= 0xffff;
978
+ c48 += a48 * b00 + a32 * b16 + a16 * b32 + a00 * b48;
979
+ c48 &= 0xffff;
980
+ return fromBits((c16 << 16) | c00, (c48 << 16) | c32, this.unsigned);
981
+ };
982
+ /**
983
+ * Returns the product of this and the specified Long. This is an alias of {@link Long#multiply}.
984
+ * @function
985
+ * @param {!Long|number|bigint|string} multiplier Multiplier
986
+ * @returns {!Long} Product
987
+ */
988
+ LongPrototype.mul = LongPrototype.multiply;
989
+ /**
990
+ * Returns this Long divided by the specified. The result is signed if this Long is signed or
991
+ * unsigned if this Long is unsigned.
992
+ * @this {!Long}
993
+ * @param {!Long|number|bigint|string} divisor Divisor
994
+ * @returns {!Long} Quotient
995
+ */
996
+ LongPrototype.divide = function divide(divisor) {
997
+ if (!isLong(divisor))
998
+ divisor = fromValue(divisor);
999
+ if (divisor.isZero())
1000
+ throw Error("division by zero");
1001
+ // use wasm support if present
1002
+ if (wasm) {
1003
+ // guard against signed division overflow: the largest
1004
+ // negative number / -1 would be 1 larger than the largest
1005
+ // positive number, due to two's complement.
1006
+ if (!this.unsigned &&
1007
+ this.high === -0x80000000 &&
1008
+ divisor.low === -1 &&
1009
+ divisor.high === -1) {
1010
+ // be consistent with non-wasm code path
1011
+ return this;
1012
+ }
1013
+ var low = (this.unsigned ? wasm["div_u"] : wasm["div_s"])(this.low, this.high, divisor.low, divisor.high);
1014
+ return fromBits(low, wasm["get_high"](), this.unsigned);
1015
+ }
1016
+ if (this.isZero())
1017
+ return this.unsigned ? UZERO : ZERO;
1018
+ var approx, rem, res;
1019
+ if (!this.unsigned) {
1020
+ // This section is only relevant for signed longs and is derived from the
1021
+ // closure library as a whole.
1022
+ if (this.eq(MIN_VALUE)) {
1023
+ if (divisor.eq(ONE) || divisor.eq(NEG_ONE))
1024
+ return MIN_VALUE; // recall that -MIN_VALUE == MIN_VALUE
1025
+ else if (divisor.eq(MIN_VALUE))
1026
+ return ONE;
1027
+ else {
1028
+ // At this point, we have |other| >= 2, so |this/other| < |MIN_VALUE|.
1029
+ var halfThis = this.shr(1);
1030
+ approx = halfThis.div(divisor).shl(1);
1031
+ if (approx.eq(ZERO)) {
1032
+ return divisor.isNegative() ? ONE : NEG_ONE;
1033
+ }
1034
+ else {
1035
+ rem = this.sub(divisor.mul(approx));
1036
+ res = approx.add(rem.div(divisor));
1037
+ return res;
1038
+ }
1039
+ }
1040
+ }
1041
+ else if (divisor.eq(MIN_VALUE))
1042
+ return this.unsigned ? UZERO : ZERO;
1043
+ if (this.isNegative()) {
1044
+ if (divisor.isNegative())
1045
+ return this.neg().div(divisor.neg());
1046
+ return this.neg().div(divisor).neg();
1047
+ }
1048
+ else if (divisor.isNegative())
1049
+ return this.div(divisor.neg()).neg();
1050
+ res = ZERO;
1051
+ }
1052
+ else {
1053
+ // The algorithm below has not been made for unsigned longs. It's therefore
1054
+ // required to take special care of the MSB prior to running it.
1055
+ if (!divisor.unsigned)
1056
+ divisor = divisor.toUnsigned();
1057
+ if (divisor.gt(this))
1058
+ return UZERO;
1059
+ if (divisor.gt(this.shru(1)))
1060
+ // 15 >>> 1 = 7 ; with divisor = 8 ; true
1061
+ return UONE;
1062
+ res = UZERO;
1063
+ }
1064
+ // Repeat the following until the remainder is less than other: find a
1065
+ // floating-point that approximates remainder / other *from below*, add this
1066
+ // into the result, and subtract it from the remainder. It is critical that
1067
+ // the approximate value is less than or equal to the real value so that the
1068
+ // remainder never becomes negative.
1069
+ rem = this;
1070
+ while (rem.gte(divisor)) {
1071
+ // Approximate the result of division. This may be a little greater or
1072
+ // smaller than the actual value.
1073
+ approx = Math.max(1, Math.floor(rem.toNumber() / divisor.toNumber()));
1074
+ // We will tweak the approximate result by changing it in the 48-th digit or
1075
+ // the smallest non-fractional digit, whichever is larger.
1076
+ var log2 = Math.ceil(Math.log(approx) / Math.LN2), delta = log2 <= 48 ? 1 : pow_dbl(2, log2 - 48),
1077
+ // Decrease the approximation until it is smaller than the remainder. Note
1078
+ // that if it is too large, the product overflows and is negative.
1079
+ approxRes = fromNumber(approx), approxRem = approxRes.mul(divisor);
1080
+ while (approxRem.isNegative() || approxRem.gt(rem)) {
1081
+ approx -= delta;
1082
+ approxRes = fromNumber(approx, this.unsigned);
1083
+ approxRem = approxRes.mul(divisor);
1084
+ }
1085
+ // We know the answer can't be zero... and actually, zero would cause
1086
+ // infinite recursion since we would make no progress.
1087
+ if (approxRes.isZero())
1088
+ approxRes = ONE;
1089
+ res = res.add(approxRes);
1090
+ rem = rem.sub(approxRem);
1091
+ }
1092
+ return res;
1093
+ };
1094
+ /**
1095
+ * Returns this Long divided by the specified. This is an alias of {@link Long#divide}.
1096
+ * @function
1097
+ * @param {!Long|number|bigint|string} divisor Divisor
1098
+ * @returns {!Long} Quotient
1099
+ */
1100
+ LongPrototype.div = LongPrototype.divide;
1101
+ /**
1102
+ * Returns this Long modulo the specified.
1103
+ * @this {!Long}
1104
+ * @param {!Long|number|bigint|string} divisor Divisor
1105
+ * @returns {!Long} Remainder
1106
+ */
1107
+ LongPrototype.modulo = function modulo(divisor) {
1108
+ if (!isLong(divisor))
1109
+ divisor = fromValue(divisor);
1110
+ // use wasm support if present
1111
+ if (wasm) {
1112
+ var low = (this.unsigned ? wasm["rem_u"] : wasm["rem_s"])(this.low, this.high, divisor.low, divisor.high);
1113
+ return fromBits(low, wasm["get_high"](), this.unsigned);
1114
+ }
1115
+ return this.sub(this.div(divisor).mul(divisor));
1116
+ };
1117
+ /**
1118
+ * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.
1119
+ * @function
1120
+ * @param {!Long|number|bigint|string} divisor Divisor
1121
+ * @returns {!Long} Remainder
1122
+ */
1123
+ LongPrototype.mod = LongPrototype.modulo;
1124
+ /**
1125
+ * Returns this Long modulo the specified. This is an alias of {@link Long#modulo}.
1126
+ * @function
1127
+ * @param {!Long|number|bigint|string} divisor Divisor
1128
+ * @returns {!Long} Remainder
1129
+ */
1130
+ LongPrototype.rem = LongPrototype.modulo;
1131
+ /**
1132
+ * Returns the bitwise NOT of this Long.
1133
+ * @this {!Long}
1134
+ * @returns {!Long}
1135
+ */
1136
+ LongPrototype.not = function not() {
1137
+ return fromBits(~this.low, ~this.high, this.unsigned);
1138
+ };
1139
+ /**
1140
+ * Returns count leading zeros of this Long.
1141
+ * @this {!Long}
1142
+ * @returns {!number}
1143
+ */
1144
+ LongPrototype.countLeadingZeros = function countLeadingZeros() {
1145
+ return this.high ? Math.clz32(this.high) : Math.clz32(this.low) + 32;
1146
+ };
1147
+ /**
1148
+ * Returns count leading zeros. This is an alias of {@link Long#countLeadingZeros}.
1149
+ * @function
1150
+ * @param {!Long}
1151
+ * @returns {!number}
1152
+ */
1153
+ LongPrototype.clz = LongPrototype.countLeadingZeros;
1154
+ /**
1155
+ * Returns count trailing zeros of this Long.
1156
+ * @this {!Long}
1157
+ * @returns {!number}
1158
+ */
1159
+ LongPrototype.countTrailingZeros = function countTrailingZeros() {
1160
+ return this.low ? ctz32(this.low) : ctz32(this.high) + 32;
1161
+ };
1162
+ /**
1163
+ * Returns count trailing zeros. This is an alias of {@link Long#countTrailingZeros}.
1164
+ * @function
1165
+ * @param {!Long}
1166
+ * @returns {!number}
1167
+ */
1168
+ LongPrototype.ctz = LongPrototype.countTrailingZeros;
1169
+ /**
1170
+ * Returns the bitwise AND of this Long and the specified.
1171
+ * @this {!Long}
1172
+ * @param {!Long|number|bigint|string} other Other Long
1173
+ * @returns {!Long}
1174
+ */
1175
+ LongPrototype.and = function and(other) {
1176
+ if (!isLong(other))
1177
+ other = fromValue(other);
1178
+ return fromBits(this.low & other.low, this.high & other.high, this.unsigned);
1179
+ };
1180
+ /**
1181
+ * Returns the bitwise OR of this Long and the specified.
1182
+ * @this {!Long}
1183
+ * @param {!Long|number|bigint|string} other Other Long
1184
+ * @returns {!Long}
1185
+ */
1186
+ LongPrototype.or = function or(other) {
1187
+ if (!isLong(other))
1188
+ other = fromValue(other);
1189
+ return fromBits(this.low | other.low, this.high | other.high, this.unsigned);
1190
+ };
1191
+ /**
1192
+ * Returns the bitwise XOR of this Long and the given one.
1193
+ * @this {!Long}
1194
+ * @param {!Long|number|bigint|string} other Other Long
1195
+ * @returns {!Long}
1196
+ */
1197
+ LongPrototype.xor = function xor(other) {
1198
+ if (!isLong(other))
1199
+ other = fromValue(other);
1200
+ return fromBits(this.low ^ other.low, this.high ^ other.high, this.unsigned);
1201
+ };
1202
+ /**
1203
+ * Returns this Long with bits shifted to the left by the given amount.
1204
+ * @this {!Long}
1205
+ * @param {number|!Long} numBits Number of bits
1206
+ * @returns {!Long} Shifted Long
1207
+ */
1208
+ LongPrototype.shiftLeft = function shiftLeft(numBits) {
1209
+ if (isLong(numBits))
1210
+ numBits = numBits.toInt();
1211
+ if ((numBits &= 63) === 0)
1212
+ return this;
1213
+ else if (numBits < 32)
1214
+ return fromBits(this.low << numBits, (this.high << numBits) | (this.low >>> (32 - numBits)), this.unsigned);
1215
+ else
1216
+ return fromBits(0, this.low << (numBits - 32), this.unsigned);
1217
+ };
1218
+ /**
1219
+ * Returns this Long with bits shifted to the left by the given amount. This is an alias of {@link Long#shiftLeft}.
1220
+ * @function
1221
+ * @param {number|!Long} numBits Number of bits
1222
+ * @returns {!Long} Shifted Long
1223
+ */
1224
+ LongPrototype.shl = LongPrototype.shiftLeft;
1225
+ /**
1226
+ * Returns this Long with bits arithmetically shifted to the right by the given amount.
1227
+ * @this {!Long}
1228
+ * @param {number|!Long} numBits Number of bits
1229
+ * @returns {!Long} Shifted Long
1230
+ */
1231
+ LongPrototype.shiftRight = function shiftRight(numBits) {
1232
+ if (isLong(numBits))
1233
+ numBits = numBits.toInt();
1234
+ if ((numBits &= 63) === 0)
1235
+ return this;
1236
+ else if (numBits < 32)
1237
+ return fromBits((this.low >>> numBits) | (this.high << (32 - numBits)), this.high >> numBits, this.unsigned);
1238
+ else
1239
+ return fromBits(this.high >> (numBits - 32), this.high >= 0 ? 0 : -1, this.unsigned);
1240
+ };
1241
+ /**
1242
+ * Returns this Long with bits arithmetically shifted to the right by the given amount. This is an alias of {@link Long#shiftRight}.
1243
+ * @function
1244
+ * @param {number|!Long} numBits Number of bits
1245
+ * @returns {!Long} Shifted Long
1246
+ */
1247
+ LongPrototype.shr = LongPrototype.shiftRight;
1248
+ /**
1249
+ * Returns this Long with bits logically shifted to the right by the given amount.
1250
+ * @this {!Long}
1251
+ * @param {number|!Long} numBits Number of bits
1252
+ * @returns {!Long} Shifted Long
1253
+ */
1254
+ LongPrototype.shiftRightUnsigned = function shiftRightUnsigned(numBits) {
1255
+ if (isLong(numBits))
1256
+ numBits = numBits.toInt();
1257
+ if ((numBits &= 63) === 0)
1258
+ return this;
1259
+ if (numBits < 32)
1260
+ return fromBits((this.low >>> numBits) | (this.high << (32 - numBits)), this.high >>> numBits, this.unsigned);
1261
+ if (numBits === 32)
1262
+ return fromBits(this.high, 0, this.unsigned);
1263
+ return fromBits(this.high >>> (numBits - 32), 0, this.unsigned);
1264
+ };
1265
+ /**
1266
+ * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.
1267
+ * @function
1268
+ * @param {number|!Long} numBits Number of bits
1269
+ * @returns {!Long} Shifted Long
1270
+ */
1271
+ LongPrototype.shru = LongPrototype.shiftRightUnsigned;
1272
+ /**
1273
+ * Returns this Long with bits logically shifted to the right by the given amount. This is an alias of {@link Long#shiftRightUnsigned}.
1274
+ * @function
1275
+ * @param {number|!Long} numBits Number of bits
1276
+ * @returns {!Long} Shifted Long
1277
+ */
1278
+ LongPrototype.shr_u = LongPrototype.shiftRightUnsigned;
1279
+ /**
1280
+ * Returns this Long with bits rotated to the left by the given amount.
1281
+ * @this {!Long}
1282
+ * @param {number|!Long} numBits Number of bits
1283
+ * @returns {!Long} Rotated Long
1284
+ */
1285
+ LongPrototype.rotateLeft = function rotateLeft(numBits) {
1286
+ var b;
1287
+ if (isLong(numBits))
1288
+ numBits = numBits.toInt();
1289
+ if ((numBits &= 63) === 0)
1290
+ return this;
1291
+ if (numBits === 32)
1292
+ return fromBits(this.high, this.low, this.unsigned);
1293
+ if (numBits < 32) {
1294
+ b = 32 - numBits;
1295
+ return fromBits((this.low << numBits) | (this.high >>> b), (this.high << numBits) | (this.low >>> b), this.unsigned);
1296
+ }
1297
+ numBits -= 32;
1298
+ b = 32 - numBits;
1299
+ return fromBits((this.high << numBits) | (this.low >>> b), (this.low << numBits) | (this.high >>> b), this.unsigned);
1300
+ };
1301
+ /**
1302
+ * Returns this Long with bits rotated to the left by the given amount. This is an alias of {@link Long#rotateLeft}.
1303
+ * @function
1304
+ * @param {number|!Long} numBits Number of bits
1305
+ * @returns {!Long} Rotated Long
1306
+ */
1307
+ LongPrototype.rotl = LongPrototype.rotateLeft;
1308
+ /**
1309
+ * Returns this Long with bits rotated to the right by the given amount.
1310
+ * @this {!Long}
1311
+ * @param {number|!Long} numBits Number of bits
1312
+ * @returns {!Long} Rotated Long
1313
+ */
1314
+ LongPrototype.rotateRight = function rotateRight(numBits) {
1315
+ var b;
1316
+ if (isLong(numBits))
1317
+ numBits = numBits.toInt();
1318
+ if ((numBits &= 63) === 0)
1319
+ return this;
1320
+ if (numBits === 32)
1321
+ return fromBits(this.high, this.low, this.unsigned);
1322
+ if (numBits < 32) {
1323
+ b = 32 - numBits;
1324
+ return fromBits((this.high << b) | (this.low >>> numBits), (this.low << b) | (this.high >>> numBits), this.unsigned);
1325
+ }
1326
+ numBits -= 32;
1327
+ b = 32 - numBits;
1328
+ return fromBits((this.low << b) | (this.high >>> numBits), (this.high << b) | (this.low >>> numBits), this.unsigned);
1329
+ };
1330
+ /**
1331
+ * Returns this Long with bits rotated to the right by the given amount. This is an alias of {@link Long#rotateRight}.
1332
+ * @function
1333
+ * @param {number|!Long} numBits Number of bits
1334
+ * @returns {!Long} Rotated Long
1335
+ */
1336
+ LongPrototype.rotr = LongPrototype.rotateRight;
1337
+ /**
1338
+ * Converts this Long to signed.
1339
+ * @this {!Long}
1340
+ * @returns {!Long} Signed long
1341
+ */
1342
+ LongPrototype.toSigned = function toSigned() {
1343
+ if (!this.unsigned)
1344
+ return this;
1345
+ return fromBits(this.low, this.high, false);
1346
+ };
1347
+ /**
1348
+ * Converts this Long to unsigned.
1349
+ * @this {!Long}
1350
+ * @returns {!Long} Unsigned long
1351
+ */
1352
+ LongPrototype.toUnsigned = function toUnsigned() {
1353
+ if (this.unsigned)
1354
+ return this;
1355
+ return fromBits(this.low, this.high, true);
1356
+ };
1357
+ /**
1358
+ * Converts this Long to its byte representation.
1359
+ * @param {boolean=} le Whether little or big endian, defaults to big endian
1360
+ * @this {!Long}
1361
+ * @returns {!Array.<number>} Byte representation
1362
+ */
1363
+ LongPrototype.toBytes = function toBytes(le) {
1364
+ return le ? this.toBytesLE() : this.toBytesBE();
1365
+ };
1366
+ /**
1367
+ * Converts this Long to its little endian byte representation.
1368
+ * @this {!Long}
1369
+ * @returns {!Array.<number>} Little endian byte representation
1370
+ */
1371
+ LongPrototype.toBytesLE = function toBytesLE() {
1372
+ var hi = this.high, lo = this.low;
1373
+ return [
1374
+ lo & 0xff,
1375
+ (lo >>> 8) & 0xff,
1376
+ (lo >>> 16) & 0xff,
1377
+ lo >>> 24,
1378
+ hi & 0xff,
1379
+ (hi >>> 8) & 0xff,
1380
+ (hi >>> 16) & 0xff,
1381
+ hi >>> 24,
1382
+ ];
1383
+ };
1384
+ /**
1385
+ * Converts this Long to its big endian byte representation.
1386
+ * @this {!Long}
1387
+ * @returns {!Array.<number>} Big endian byte representation
1388
+ */
1389
+ LongPrototype.toBytesBE = function toBytesBE() {
1390
+ var hi = this.high, lo = this.low;
1391
+ return [
1392
+ hi >>> 24,
1393
+ (hi >>> 16) & 0xff,
1394
+ (hi >>> 8) & 0xff,
1395
+ hi & 0xff,
1396
+ lo >>> 24,
1397
+ (lo >>> 16) & 0xff,
1398
+ (lo >>> 8) & 0xff,
1399
+ lo & 0xff,
1400
+ ];
1401
+ };
1402
+ /**
1403
+ * Creates a Long from its byte representation.
1404
+ * @param {!Array.<number>} bytes Byte representation
1405
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
1406
+ * @param {boolean=} le Whether little or big endian, defaults to big endian
1407
+ * @returns {Long} The corresponding Long value
1408
+ */
1409
+ Long.fromBytes = function fromBytes(bytes, unsigned, le) {
1410
+ return le
1411
+ ? Long.fromBytesLE(bytes, unsigned)
1412
+ : Long.fromBytesBE(bytes, unsigned);
1413
+ };
1414
+ /**
1415
+ * Creates a Long from its little endian byte representation.
1416
+ * @param {!Array.<number>} bytes Little endian byte representation
1417
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
1418
+ * @returns {Long} The corresponding Long value
1419
+ */
1420
+ Long.fromBytesLE = function fromBytesLE(bytes, unsigned) {
1421
+ return new Long(bytes[0] | (bytes[1] << 8) | (bytes[2] << 16) | (bytes[3] << 24), bytes[4] | (bytes[5] << 8) | (bytes[6] << 16) | (bytes[7] << 24), unsigned);
1422
+ };
1423
+ /**
1424
+ * Creates a Long from its big endian byte representation.
1425
+ * @param {!Array.<number>} bytes Big endian byte representation
1426
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
1427
+ * @returns {Long} The corresponding Long value
1428
+ */
1429
+ Long.fromBytesBE = function fromBytesBE(bytes, unsigned) {
1430
+ return new Long((bytes[4] << 24) | (bytes[5] << 16) | (bytes[6] << 8) | bytes[7], (bytes[0] << 24) | (bytes[1] << 16) | (bytes[2] << 8) | bytes[3], unsigned);
1431
+ };
1432
+ // Support conversion to/from BigInt where available
1433
+ if (typeof BigInt === "function") {
1434
+ /**
1435
+ * Returns a Long representing the given big integer.
1436
+ * @function
1437
+ * @param {number} value The big integer value
1438
+ * @param {boolean=} unsigned Whether unsigned or not, defaults to signed
1439
+ * @returns {!Long} The corresponding Long value
1440
+ */
1441
+ Long.fromBigInt = function fromBigInt(value, unsigned) {
1442
+ var lowBits = Number(BigInt.asIntN(32, value));
1443
+ var highBits = Number(BigInt.asIntN(32, value >> BigInt(32)));
1444
+ return fromBits(lowBits, highBits, unsigned);
1445
+ };
1446
+ // Override
1447
+ Long.fromValue = function fromValueWithBigInt(value, unsigned) {
1448
+ if (typeof value === "bigint")
1449
+ return Long.fromBigInt(value, unsigned);
1450
+ return fromValue(value, unsigned);
1451
+ };
1452
+ /**
1453
+ * Converts the Long to its big integer representation.
1454
+ * @this {!Long}
1455
+ * @returns {bigint}
1456
+ */
1457
+ LongPrototype.toBigInt = function toBigInt() {
1458
+ var lowBigInt = BigInt(this.low >>> 0);
1459
+ var highBigInt = BigInt(this.unsigned ? this.high >>> 0 : this.high);
1460
+ return (highBigInt << BigInt(32)) | lowBigInt;
1461
+ };
1462
+ }
1463
+ (_exports.default = Long);
1464
+ });
15
1465
 
16
1466
  });