xrpl 4.3.0 → 4.4.0-smartescrow.0

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 (310) hide show
  1. package/build/xrpl-latest-min.js +1 -1
  2. package/build/xrpl-latest-min.js.map +1 -1
  3. package/build/xrpl-latest.js +1293 -1596
  4. package/build/xrpl-latest.js.map +1 -1
  5. package/dist/npm/Wallet/defaultFaucets.d.ts +2 -1
  6. package/dist/npm/Wallet/defaultFaucets.d.ts.map +1 -1
  7. package/dist/npm/Wallet/defaultFaucets.js +3 -0
  8. package/dist/npm/Wallet/defaultFaucets.js.map +1 -1
  9. package/dist/npm/client/index.d.ts +3 -3
  10. package/dist/npm/client/index.d.ts.map +1 -1
  11. package/dist/npm/client/index.js +10 -7
  12. package/dist/npm/client/index.js.map +1 -1
  13. package/dist/npm/client/partialPayment.d.ts.map +1 -1
  14. package/dist/npm/client/partialPayment.js +2 -2
  15. package/dist/npm/client/partialPayment.js.map +1 -1
  16. package/dist/npm/models/common/index.d.ts +1 -0
  17. package/dist/npm/models/common/index.d.ts.map +1 -1
  18. package/dist/npm/models/ledger/AccountRoot.d.ts +1 -1
  19. package/dist/npm/models/ledger/AccountRoot.d.ts.map +1 -1
  20. package/dist/npm/models/ledger/Escrow.d.ts +2 -0
  21. package/dist/npm/models/ledger/Escrow.d.ts.map +1 -1
  22. package/dist/npm/models/ledger/FeeSettings.d.ts +2 -0
  23. package/dist/npm/models/ledger/FeeSettings.d.ts.map +1 -1
  24. package/dist/npm/models/ledger/LedgerEntry.d.ts +3 -2
  25. package/dist/npm/models/ledger/LedgerEntry.d.ts.map +1 -1
  26. package/dist/npm/models/ledger/Vault.d.ts +21 -0
  27. package/dist/npm/models/ledger/Vault.d.ts.map +1 -0
  28. package/dist/npm/models/ledger/Vault.js +3 -0
  29. package/dist/npm/models/ledger/Vault.js.map +1 -0
  30. package/dist/npm/models/ledger/index.d.ts +2 -1
  31. package/dist/npm/models/ledger/index.d.ts.map +1 -1
  32. package/dist/npm/models/ledger/index.js.map +1 -1
  33. package/dist/npm/models/methods/index.d.ts +5 -4
  34. package/dist/npm/models/methods/index.d.ts.map +1 -1
  35. package/dist/npm/models/methods/serverInfo.d.ts +6 -0
  36. package/dist/npm/models/methods/serverInfo.d.ts.map +1 -1
  37. package/dist/npm/models/methods/serverState.d.ts +6 -0
  38. package/dist/npm/models/methods/serverState.d.ts.map +1 -1
  39. package/dist/npm/models/methods/vaultInfo.d.ts +46 -0
  40. package/dist/npm/models/methods/vaultInfo.d.ts.map +1 -0
  41. package/dist/npm/models/methods/vaultInfo.js +3 -0
  42. package/dist/npm/models/methods/vaultInfo.js.map +1 -0
  43. package/dist/npm/models/transactions/AMMBid.d.ts.map +1 -1
  44. package/dist/npm/models/transactions/AMMBid.js +7 -5
  45. package/dist/npm/models/transactions/AMMBid.js.map +1 -1
  46. package/dist/npm/models/transactions/AMMClawback.d.ts.map +1 -1
  47. package/dist/npm/models/transactions/AMMClawback.js +5 -6
  48. package/dist/npm/models/transactions/AMMClawback.js.map +1 -1
  49. package/dist/npm/models/transactions/AMMDelete.d.ts.map +1 -1
  50. package/dist/npm/models/transactions/AMMDelete.js +2 -2
  51. package/dist/npm/models/transactions/AMMDelete.js.map +1 -1
  52. package/dist/npm/models/transactions/AMMDeposit.js +3 -3
  53. package/dist/npm/models/transactions/AMMDeposit.js.map +1 -1
  54. package/dist/npm/models/transactions/AMMVote.d.ts.map +1 -1
  55. package/dist/npm/models/transactions/AMMVote.js +2 -2
  56. package/dist/npm/models/transactions/AMMVote.js.map +1 -1
  57. package/dist/npm/models/transactions/AMMWithdraw.js +3 -3
  58. package/dist/npm/models/transactions/AMMWithdraw.js.map +1 -1
  59. package/dist/npm/models/transactions/MPTokenIssuanceCreate.d.ts.map +1 -1
  60. package/dist/npm/models/transactions/MPTokenIssuanceCreate.js +3 -3
  61. package/dist/npm/models/transactions/MPTokenIssuanceCreate.js.map +1 -1
  62. package/dist/npm/models/transactions/MPTokenIssuanceSet.js +4 -4
  63. package/dist/npm/models/transactions/MPTokenIssuanceSet.js.map +1 -1
  64. package/dist/npm/models/transactions/NFTokenCancelOffer.d.ts.map +1 -1
  65. package/dist/npm/models/transactions/NFTokenCancelOffer.js +1 -1
  66. package/dist/npm/models/transactions/NFTokenCancelOffer.js.map +1 -1
  67. package/dist/npm/models/transactions/NFTokenCreateOffer.d.ts.map +1 -1
  68. package/dist/npm/models/transactions/NFTokenCreateOffer.js +6 -2
  69. package/dist/npm/models/transactions/NFTokenCreateOffer.js.map +1 -1
  70. package/dist/npm/models/transactions/checkCreate.d.ts.map +1 -1
  71. package/dist/npm/models/transactions/checkCreate.js +1 -2
  72. package/dist/npm/models/transactions/checkCreate.js.map +1 -1
  73. package/dist/npm/models/transactions/clawback.d.ts +2 -2
  74. package/dist/npm/models/transactions/clawback.d.ts.map +1 -1
  75. package/dist/npm/models/transactions/clawback.js +4 -6
  76. package/dist/npm/models/transactions/clawback.js.map +1 -1
  77. package/dist/npm/models/transactions/common.d.ts +9 -4
  78. package/dist/npm/models/transactions/common.d.ts.map +1 -1
  79. package/dist/npm/models/transactions/common.js +51 -28
  80. package/dist/npm/models/transactions/common.js.map +1 -1
  81. package/dist/npm/models/transactions/escrowCreate.d.ts +2 -0
  82. package/dist/npm/models/transactions/escrowCreate.d.ts.map +1 -1
  83. package/dist/npm/models/transactions/escrowCreate.js +4 -2
  84. package/dist/npm/models/transactions/escrowCreate.js.map +1 -1
  85. package/dist/npm/models/transactions/escrowFinish.d.ts +1 -0
  86. package/dist/npm/models/transactions/escrowFinish.d.ts.map +1 -1
  87. package/dist/npm/models/transactions/escrowFinish.js.map +1 -1
  88. package/dist/npm/models/transactions/index.d.ts +8 -2
  89. package/dist/npm/models/transactions/index.d.ts.map +1 -1
  90. package/dist/npm/models/transactions/index.js +4 -1
  91. package/dist/npm/models/transactions/index.js.map +1 -1
  92. package/dist/npm/models/transactions/oracleSet.d.ts.map +1 -1
  93. package/dist/npm/models/transactions/oracleSet.js +22 -21
  94. package/dist/npm/models/transactions/oracleSet.js.map +1 -1
  95. package/dist/npm/models/transactions/payment.d.ts +1 -0
  96. package/dist/npm/models/transactions/payment.d.ts.map +1 -1
  97. package/dist/npm/models/transactions/payment.js +6 -4
  98. package/dist/npm/models/transactions/payment.js.map +1 -1
  99. package/dist/npm/models/transactions/signerListSet.d.ts.map +1 -1
  100. package/dist/npm/models/transactions/signerListSet.js +10 -16
  101. package/dist/npm/models/transactions/signerListSet.js.map +1 -1
  102. package/dist/npm/models/transactions/transaction.d.ts +7 -1
  103. package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
  104. package/dist/npm/models/transactions/transaction.js +28 -35
  105. package/dist/npm/models/transactions/transaction.js.map +1 -1
  106. package/dist/npm/models/transactions/vaultClawback.d.ts +10 -0
  107. package/dist/npm/models/transactions/vaultClawback.d.ts.map +1 -0
  108. package/dist/npm/models/transactions/vaultClawback.js +12 -0
  109. package/dist/npm/models/transactions/vaultClawback.js.map +1 -0
  110. package/dist/npm/models/transactions/vaultCreate.d.ts +24 -0
  111. package/dist/npm/models/transactions/vaultCreate.d.ts.map +1 -0
  112. package/dist/npm/models/transactions/vaultCreate.js +51 -0
  113. package/dist/npm/models/transactions/vaultCreate.js.map +1 -0
  114. package/dist/npm/models/transactions/vaultDelete.d.ts +7 -0
  115. package/dist/npm/models/transactions/vaultDelete.d.ts.map +1 -0
  116. package/dist/npm/models/transactions/vaultDelete.js +10 -0
  117. package/dist/npm/models/transactions/vaultDelete.js.map +1 -0
  118. package/dist/npm/models/transactions/vaultDeposit.d.ts +9 -0
  119. package/dist/npm/models/transactions/vaultDeposit.d.ts.map +1 -0
  120. package/dist/npm/models/transactions/vaultDeposit.js +11 -0
  121. package/dist/npm/models/transactions/vaultDeposit.js.map +1 -0
  122. package/dist/npm/models/transactions/vaultSet.d.ts +10 -0
  123. package/dist/npm/models/transactions/vaultSet.d.ts.map +1 -0
  124. package/dist/npm/models/transactions/vaultSet.js +25 -0
  125. package/dist/npm/models/transactions/vaultSet.js.map +1 -0
  126. package/dist/npm/models/transactions/vaultWithdraw.d.ts +10 -0
  127. package/dist/npm/models/transactions/vaultWithdraw.d.ts.map +1 -0
  128. package/dist/npm/models/transactions/vaultWithdraw.js +12 -0
  129. package/dist/npm/models/transactions/vaultWithdraw.js.map +1 -0
  130. package/dist/npm/models/utils/flags.d.ts.map +1 -1
  131. package/dist/npm/models/utils/flags.js +2 -0
  132. package/dist/npm/models/utils/flags.js.map +1 -1
  133. package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
  134. package/dist/npm/src/Wallet/defaultFaucets.d.ts +2 -1
  135. package/dist/npm/src/Wallet/defaultFaucets.d.ts.map +1 -1
  136. package/dist/npm/src/Wallet/defaultFaucets.js +3 -0
  137. package/dist/npm/src/Wallet/defaultFaucets.js.map +1 -1
  138. package/dist/npm/src/client/index.d.ts +3 -3
  139. package/dist/npm/src/client/index.d.ts.map +1 -1
  140. package/dist/npm/src/client/index.js +10 -7
  141. package/dist/npm/src/client/index.js.map +1 -1
  142. package/dist/npm/src/client/partialPayment.d.ts.map +1 -1
  143. package/dist/npm/src/client/partialPayment.js +2 -2
  144. package/dist/npm/src/client/partialPayment.js.map +1 -1
  145. package/dist/npm/src/models/common/index.d.ts +1 -0
  146. package/dist/npm/src/models/common/index.d.ts.map +1 -1
  147. package/dist/npm/src/models/ledger/AccountRoot.d.ts +1 -1
  148. package/dist/npm/src/models/ledger/AccountRoot.d.ts.map +1 -1
  149. package/dist/npm/src/models/ledger/Escrow.d.ts +2 -0
  150. package/dist/npm/src/models/ledger/Escrow.d.ts.map +1 -1
  151. package/dist/npm/src/models/ledger/FeeSettings.d.ts +2 -0
  152. package/dist/npm/src/models/ledger/FeeSettings.d.ts.map +1 -1
  153. package/dist/npm/src/models/ledger/LedgerEntry.d.ts +3 -2
  154. package/dist/npm/src/models/ledger/LedgerEntry.d.ts.map +1 -1
  155. package/dist/npm/src/models/ledger/Vault.d.ts +21 -0
  156. package/dist/npm/src/models/ledger/Vault.d.ts.map +1 -0
  157. package/dist/npm/src/models/ledger/Vault.js +3 -0
  158. package/dist/npm/src/models/ledger/Vault.js.map +1 -0
  159. package/dist/npm/src/models/ledger/index.d.ts +2 -1
  160. package/dist/npm/src/models/ledger/index.d.ts.map +1 -1
  161. package/dist/npm/src/models/ledger/index.js.map +1 -1
  162. package/dist/npm/src/models/methods/index.d.ts +5 -4
  163. package/dist/npm/src/models/methods/index.d.ts.map +1 -1
  164. package/dist/npm/src/models/methods/serverInfo.d.ts +6 -0
  165. package/dist/npm/src/models/methods/serverInfo.d.ts.map +1 -1
  166. package/dist/npm/src/models/methods/serverState.d.ts +6 -0
  167. package/dist/npm/src/models/methods/serverState.d.ts.map +1 -1
  168. package/dist/npm/src/models/methods/vaultInfo.d.ts +46 -0
  169. package/dist/npm/src/models/methods/vaultInfo.d.ts.map +1 -0
  170. package/dist/npm/src/models/methods/vaultInfo.js +3 -0
  171. package/dist/npm/src/models/methods/vaultInfo.js.map +1 -0
  172. package/dist/npm/src/models/transactions/AMMBid.d.ts.map +1 -1
  173. package/dist/npm/src/models/transactions/AMMBid.js +7 -5
  174. package/dist/npm/src/models/transactions/AMMBid.js.map +1 -1
  175. package/dist/npm/src/models/transactions/AMMClawback.d.ts.map +1 -1
  176. package/dist/npm/src/models/transactions/AMMClawback.js +5 -6
  177. package/dist/npm/src/models/transactions/AMMClawback.js.map +1 -1
  178. package/dist/npm/src/models/transactions/AMMDelete.d.ts.map +1 -1
  179. package/dist/npm/src/models/transactions/AMMDelete.js +2 -2
  180. package/dist/npm/src/models/transactions/AMMDelete.js.map +1 -1
  181. package/dist/npm/src/models/transactions/AMMDeposit.js +3 -3
  182. package/dist/npm/src/models/transactions/AMMDeposit.js.map +1 -1
  183. package/dist/npm/src/models/transactions/AMMVote.d.ts.map +1 -1
  184. package/dist/npm/src/models/transactions/AMMVote.js +2 -2
  185. package/dist/npm/src/models/transactions/AMMVote.js.map +1 -1
  186. package/dist/npm/src/models/transactions/AMMWithdraw.js +3 -3
  187. package/dist/npm/src/models/transactions/AMMWithdraw.js.map +1 -1
  188. package/dist/npm/src/models/transactions/MPTokenIssuanceCreate.d.ts.map +1 -1
  189. package/dist/npm/src/models/transactions/MPTokenIssuanceCreate.js +3 -3
  190. package/dist/npm/src/models/transactions/MPTokenIssuanceCreate.js.map +1 -1
  191. package/dist/npm/src/models/transactions/MPTokenIssuanceSet.js +4 -4
  192. package/dist/npm/src/models/transactions/MPTokenIssuanceSet.js.map +1 -1
  193. package/dist/npm/src/models/transactions/NFTokenCancelOffer.d.ts.map +1 -1
  194. package/dist/npm/src/models/transactions/NFTokenCancelOffer.js +1 -1
  195. package/dist/npm/src/models/transactions/NFTokenCancelOffer.js.map +1 -1
  196. package/dist/npm/src/models/transactions/NFTokenCreateOffer.d.ts.map +1 -1
  197. package/dist/npm/src/models/transactions/NFTokenCreateOffer.js +6 -2
  198. package/dist/npm/src/models/transactions/NFTokenCreateOffer.js.map +1 -1
  199. package/dist/npm/src/models/transactions/checkCreate.d.ts.map +1 -1
  200. package/dist/npm/src/models/transactions/checkCreate.js +1 -2
  201. package/dist/npm/src/models/transactions/checkCreate.js.map +1 -1
  202. package/dist/npm/src/models/transactions/clawback.d.ts +2 -2
  203. package/dist/npm/src/models/transactions/clawback.d.ts.map +1 -1
  204. package/dist/npm/src/models/transactions/clawback.js +4 -6
  205. package/dist/npm/src/models/transactions/clawback.js.map +1 -1
  206. package/dist/npm/src/models/transactions/common.d.ts +9 -4
  207. package/dist/npm/src/models/transactions/common.d.ts.map +1 -1
  208. package/dist/npm/src/models/transactions/common.js +51 -28
  209. package/dist/npm/src/models/transactions/common.js.map +1 -1
  210. package/dist/npm/src/models/transactions/escrowCreate.d.ts +2 -0
  211. package/dist/npm/src/models/transactions/escrowCreate.d.ts.map +1 -1
  212. package/dist/npm/src/models/transactions/escrowCreate.js +4 -2
  213. package/dist/npm/src/models/transactions/escrowCreate.js.map +1 -1
  214. package/dist/npm/src/models/transactions/escrowFinish.d.ts +1 -0
  215. package/dist/npm/src/models/transactions/escrowFinish.d.ts.map +1 -1
  216. package/dist/npm/src/models/transactions/escrowFinish.js.map +1 -1
  217. package/dist/npm/src/models/transactions/index.d.ts +8 -2
  218. package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
  219. package/dist/npm/src/models/transactions/index.js +4 -1
  220. package/dist/npm/src/models/transactions/index.js.map +1 -1
  221. package/dist/npm/src/models/transactions/oracleSet.d.ts.map +1 -1
  222. package/dist/npm/src/models/transactions/oracleSet.js +22 -21
  223. package/dist/npm/src/models/transactions/oracleSet.js.map +1 -1
  224. package/dist/npm/src/models/transactions/payment.d.ts +1 -0
  225. package/dist/npm/src/models/transactions/payment.d.ts.map +1 -1
  226. package/dist/npm/src/models/transactions/payment.js +6 -4
  227. package/dist/npm/src/models/transactions/payment.js.map +1 -1
  228. package/dist/npm/src/models/transactions/signerListSet.d.ts.map +1 -1
  229. package/dist/npm/src/models/transactions/signerListSet.js +10 -16
  230. package/dist/npm/src/models/transactions/signerListSet.js.map +1 -1
  231. package/dist/npm/src/models/transactions/transaction.d.ts +7 -1
  232. package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
  233. package/dist/npm/src/models/transactions/transaction.js +28 -35
  234. package/dist/npm/src/models/transactions/transaction.js.map +1 -1
  235. package/dist/npm/src/models/transactions/vaultClawback.d.ts +10 -0
  236. package/dist/npm/src/models/transactions/vaultClawback.d.ts.map +1 -0
  237. package/dist/npm/src/models/transactions/vaultClawback.js +12 -0
  238. package/dist/npm/src/models/transactions/vaultClawback.js.map +1 -0
  239. package/dist/npm/src/models/transactions/vaultCreate.d.ts +24 -0
  240. package/dist/npm/src/models/transactions/vaultCreate.d.ts.map +1 -0
  241. package/dist/npm/src/models/transactions/vaultCreate.js +51 -0
  242. package/dist/npm/src/models/transactions/vaultCreate.js.map +1 -0
  243. package/dist/npm/src/models/transactions/vaultDelete.d.ts +7 -0
  244. package/dist/npm/src/models/transactions/vaultDelete.d.ts.map +1 -0
  245. package/dist/npm/src/models/transactions/vaultDelete.js +10 -0
  246. package/dist/npm/src/models/transactions/vaultDelete.js.map +1 -0
  247. package/dist/npm/src/models/transactions/vaultDeposit.d.ts +9 -0
  248. package/dist/npm/src/models/transactions/vaultDeposit.d.ts.map +1 -0
  249. package/dist/npm/src/models/transactions/vaultDeposit.js +11 -0
  250. package/dist/npm/src/models/transactions/vaultDeposit.js.map +1 -0
  251. package/dist/npm/src/models/transactions/vaultSet.d.ts +10 -0
  252. package/dist/npm/src/models/transactions/vaultSet.d.ts.map +1 -0
  253. package/dist/npm/src/models/transactions/vaultSet.js +25 -0
  254. package/dist/npm/src/models/transactions/vaultSet.js.map +1 -0
  255. package/dist/npm/src/models/transactions/vaultWithdraw.d.ts +10 -0
  256. package/dist/npm/src/models/transactions/vaultWithdraw.d.ts.map +1 -0
  257. package/dist/npm/src/models/transactions/vaultWithdraw.js +12 -0
  258. package/dist/npm/src/models/transactions/vaultWithdraw.js.map +1 -0
  259. package/dist/npm/src/models/utils/flags.d.ts.map +1 -1
  260. package/dist/npm/src/models/utils/flags.js +2 -0
  261. package/dist/npm/src/models/utils/flags.js.map +1 -1
  262. package/dist/npm/src/sugar/autofill.d.ts.map +1 -1
  263. package/dist/npm/src/sugar/autofill.js +32 -11
  264. package/dist/npm/src/sugar/autofill.js.map +1 -1
  265. package/dist/npm/sugar/autofill.d.ts.map +1 -1
  266. package/dist/npm/sugar/autofill.js +32 -11
  267. package/dist/npm/sugar/autofill.js.map +1 -1
  268. package/package.json +5 -4
  269. package/src/Wallet/defaultFaucets.ts +5 -0
  270. package/src/client/index.ts +43 -38
  271. package/src/client/partialPayment.ts +1 -2
  272. package/src/models/common/index.ts +2 -0
  273. package/src/models/ledger/AccountRoot.ts +1 -1
  274. package/src/models/ledger/Escrow.ts +4 -0
  275. package/src/models/ledger/FeeSettings.ts +4 -0
  276. package/src/models/ledger/LedgerEntry.ts +3 -0
  277. package/src/models/ledger/Vault.ts +83 -0
  278. package/src/models/ledger/index.ts +3 -1
  279. package/src/models/methods/index.ts +10 -0
  280. package/src/models/methods/serverInfo.ts +9 -0
  281. package/src/models/methods/serverState.ts +10 -0
  282. package/src/models/methods/vaultInfo.ts +193 -0
  283. package/src/models/transactions/AMMBid.ts +12 -20
  284. package/src/models/transactions/AMMClawback.ts +8 -11
  285. package/src/models/transactions/AMMDelete.ts +7 -3
  286. package/src/models/transactions/AMMDeposit.ts +4 -4
  287. package/src/models/transactions/AMMVote.ts +7 -3
  288. package/src/models/transactions/AMMWithdraw.ts +4 -4
  289. package/src/models/transactions/MPTokenIssuanceCreate.ts +3 -1
  290. package/src/models/transactions/MPTokenIssuanceSet.ts +1 -1
  291. package/src/models/transactions/NFTokenCancelOffer.ts +2 -2
  292. package/src/models/transactions/NFTokenCreateOffer.ts +8 -4
  293. package/src/models/transactions/checkCreate.ts +2 -6
  294. package/src/models/transactions/clawback.ts +9 -10
  295. package/src/models/transactions/common.ts +114 -41
  296. package/src/models/transactions/escrowCreate.ts +10 -2
  297. package/src/models/transactions/escrowFinish.ts +2 -0
  298. package/src/models/transactions/index.ts +13 -2
  299. package/src/models/transactions/oracleSet.ts +32 -39
  300. package/src/models/transactions/payment.ts +13 -7
  301. package/src/models/transactions/signerListSet.ts +21 -21
  302. package/src/models/transactions/transaction.ts +46 -43
  303. package/src/models/transactions/vaultClawback.ts +55 -0
  304. package/src/models/transactions/vaultCreate.ts +142 -0
  305. package/src/models/transactions/vaultDelete.ts +32 -0
  306. package/src/models/transactions/vaultDeposit.ts +41 -0
  307. package/src/models/transactions/vaultSet.ts +71 -0
  308. package/src/models/transactions/vaultWithdraw.ts +50 -0
  309. package/src/models/utils/flags.ts +2 -0
  310. package/src/sugar/autofill.ts +44 -31
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see xrpl-latest-min.js.LICENSE.txt */
2
- var xrpl;(()=>{var e={54373:(e,t)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function n(e){if("boolean"!=typeof e)throw new Error(`Expected boolean, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new TypeError(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){i(e);const r=t.outputLen;if(e.length<r)throw new Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=r,t.bool=n,t.bytes=i,t.hash=o,t.exists=a,t.output=s;const u={number:r,bool:n,bytes:i,hash:o,exists:a,output:s};t.default=u},74826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const n=r(54373),i=r(56266);class o extends i.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){n.default.exists(this);const{view:t,buffer:r,blockLen:o}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;n<a;){const s=Math.min(o-this.pos,a-n);if(s!==o)r.set(e.subarray(n,n+s),this.pos),this.pos+=s,n+=s,this.pos===o&&(this.process(t,0),this.pos=0);else{const t=(0,i.createView)(e);for(;o<=a-n;n+=o)this.process(t,n)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){n.default.exists(this),n.default.output(e,this),this.finished=!0;const{buffer:t,view:r,blockLen:o,isLE:a}=this;let{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>o-s&&(this.process(r,0),s=0);for(let e=s;e<o;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);const i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),s=Number(r&o),u=n?4:0,c=n?0:4;e.setUint32(t+u,a,n),e.setUint32(t+c,s,n)}(r,o-8,BigInt(8*this.length),a),this.process(r,0);const u=(0,i.createView)(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const f=c/4,l=this.get();if(f>l.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<f;e++)u.setUint32(4*e,l[e],a)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:a}=this;return e.length=n,e.pos=a,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}t.SHA2=o},35117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add=t.toBig=t.split=t.fromBig=void 0;const r=BigInt(2**32-1),n=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>n&r)}:{h:0|Number(e>>n&r),l:0|Number(e&r)}}function o(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){const{h:a,l:s}=i(e[o],t);[r[o],n[o]]=[a,s]}return[r,n]}function a(e,t,r,n){const i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:0|i}}t.fromBig=i,t.split=o,t.toBig=(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0),t.add=a;const s={fromBig:i,split:o,toBig:t.toBig,shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<<r|t>>>32-r,rotlSL:(e,t,r)=>t<<r|e>>>32-r,rotlBH:(e,t,r)=>t<<r-32|e>>>64-r,rotlBL:(e,t,r)=>e<<r-32|t>>>64-r,add:a,add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/2**32|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};t.default=s},22235:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;const n=r(54373),i=r(56266);class o extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,n.default.hash(e);const r=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,a=new Uint8Array(o);a.set(r.length>o?e.create().update(r).digest():r);for(let e=0;e<a.length;e++)a[e]^=54;this.iHash.update(a),this.oHash=e.create();for(let e=0;e<a.length;e++)a[e]^=106;this.oHash.update(a),a.fill(0)}update(e){return n.default.exists(this),this.iHash.update(e),this}digestInto(e){n.default.exists(this),n.default.bytes(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.hmac=(e,t,r)=>new o(e,t).update(r).digest(),t.hmac.create=(e,t)=>new o(e,t)},35e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const n=r(54373),i=r(5070),o=r(56266);function a(e,t,r,a){n.default.hash(e);const s=(0,o.checkOpts)({dkLen:32,asyncTick:10},a),{c:u,dkLen:c,asyncTick:f}=s;if(n.default.number(u),n.default.number(c),n.default.number(f),u<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const l=(0,o.toBytes)(t),d=(0,o.toBytes)(r),h=new Uint8Array(c),p=i.hmac.create(e,l),y=p._cloneInto().update(d);return{c:u,dkLen:c,asyncTick:f,DK:h,PRF:p,PRFSalt:y}}function s(e,t,r,n,i){return e.destroy(),t.destroy(),n&&n.destroy(),i.fill(0),r}t.pbkdf2=function(e,t,r,n){const{c:i,dkLen:u,DK:c,PRF:f,PRFSalt:l}=a(e,t,r,n);let d;const h=new Uint8Array(4),p=(0,o.createView)(h),y=new Uint8Array(f.outputLen);for(let e=1,t=0;t<u;e++,t+=f.outputLen){const r=c.subarray(t,t+f.outputLen);p.setInt32(0,e,!1),(d=l._cloneInto(d)).update(h).digestInto(y),r.set(y.subarray(0,r.length));for(let e=1;e<i;e++){f._cloneInto(d).update(y).digestInto(y);for(let e=0;e<r.length;e++)r[e]^=y[e]}}return s(f,l,c,d,y)},t.pbkdf2Async=async function(e,t,r,n){const{c:i,dkLen:u,asyncTick:c,DK:f,PRF:l,PRFSalt:d}=a(e,t,r,n);let h;const p=new Uint8Array(4),y=(0,o.createView)(p),g=new Uint8Array(l.outputLen);for(let e=1,t=0;t<u;e++,t+=l.outputLen){const r=f.subarray(t,t+l.outputLen);y.setInt32(0,e,!1),(h=d._cloneInto(h)).update(p).digestInto(g),r.set(g.subarray(0,r.length)),await(0,o.asyncLoop)(i-1,c,(e=>{l._cloneInto(h).update(g).digestInto(g);for(let e=0;e<r.length;e++)r[e]^=g[e]}))}return s(l,d,f,h,g)}},37789:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const n=r(74826),i=r(56266),o=(e,t,r)=>e&t^e&r^t&r,a=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint32Array(64);class c extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)u[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=u[e-15],r=u[e-2],n=(0,i.rotr)(t,7)^(0,i.rotr)(t,18)^t>>>3,o=(0,i.rotr)(r,17)^(0,i.rotr)(r,19)^r>>>10;u[e]=o+u[e-7]+n+u[e-16]|0}let{A:r,B:n,C:s,D:c,E:f,F:l,G:d,H:h}=this;for(let e=0;e<64;e++){const t=h+((0,i.rotr)(f,6)^(0,i.rotr)(f,11)^(0,i.rotr)(f,25))+((p=f)&l^~p&d)+a[e]+u[e]|0,y=((0,i.rotr)(r,2)^(0,i.rotr)(r,13)^(0,i.rotr)(r,22))+o(r,n,s)|0;h=d,d=l,l=f,f=c+t|0,c=s,s=n,n=r,r=t+y|0}var p;r=r+this.A|0,n=n+this.B|0,s=s+this.C|0,c=c+this.D|0,f=f+this.E|0,l=l+this.F|0,d=d+this.G|0,h=h+this.H|0,this.set(r,n,s,c,f,l,d,h)}roundClean(){u.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class f extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)((()=>new c)),t.sha224=(0,i.wrapConstructor)((()=>new f))},94391:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const n=r(74826),i=r(35117),o=r(56266),[a,s]=i.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))),u=new Uint32Array(80),c=new Uint32Array(80);class f extends n.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:a,Dl:s,Eh:u,El:c,Fh:f,Fl:l,Gh:d,Gl:h,Hh:p,Hl:y}=this;return[e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,y]}set(e,t,r,n,i,o,a,s,u,c,f,l,d,h,p,y){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|u,this.El=0|c,this.Fh=0|f,this.Fl=0|l,this.Gh=0|d,this.Gl=0|h,this.Hh=0|p,this.Hl=0|y}process(e,t){for(let r=0;r<16;r++,t+=4)u[r]=e.getUint32(t),c[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|u[e-15],r=0|c[e-15],n=i.default.rotrSH(t,r,1)^i.default.rotrSH(t,r,8)^i.default.shrSH(t,r,7),o=i.default.rotrSL(t,r,1)^i.default.rotrSL(t,r,8)^i.default.shrSL(t,r,7),a=0|u[e-2],s=0|c[e-2],f=i.default.rotrSH(a,s,19)^i.default.rotrBH(a,s,61)^i.default.shrSH(a,s,6),l=i.default.rotrSL(a,s,19)^i.default.rotrBL(a,s,61)^i.default.shrSL(a,s,6),d=i.default.add4L(o,l,c[e-7],c[e-16]),h=i.default.add4H(d,n,f,u[e-7],u[e-16]);u[e]=0|h,c[e]=0|d}let{Ah:r,Al:n,Bh:o,Bl:f,Ch:l,Cl:d,Dh:h,Dl:p,Eh:y,El:g,Fh:b,Fl:m,Gh:v,Gl:w,Hh:_,Hl:S}=this;for(let e=0;e<80;e++){const t=i.default.rotrSH(y,g,14)^i.default.rotrSH(y,g,18)^i.default.rotrBH(y,g,41),E=i.default.rotrSL(y,g,14)^i.default.rotrSL(y,g,18)^i.default.rotrBL(y,g,41),A=y&b^~y&v,O=g&m^~g&w,M=i.default.add5L(S,E,O,s[e],c[e]),T=i.default.add5H(M,_,t,A,a[e],u[e]),I=0|M,N=i.default.rotrSH(r,n,28)^i.default.rotrBH(r,n,34)^i.default.rotrBH(r,n,39),C=i.default.rotrSL(r,n,28)^i.default.rotrBL(r,n,34)^i.default.rotrBL(r,n,39),L=r&o^r&l^o&l,x=n&f^n&d^f&d;_=0|v,S=0|w,v=0|b,w=0|m,b=0|y,m=0|g,({h:y,l:g}=i.default.add(0|h,0|p,0|T,0|I)),h=0|l,p=0|d,l=0|o,d=0|f,o=0|r,f=0|n;const R=i.default.add3L(I,C,x);r=i.default.add3H(R,T,N,L),n=0|R}({h:r,l:n}=i.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:o,l:f}=i.default.add(0|this.Bh,0|this.Bl,0|o,0|f)),({h:l,l:d}=i.default.add(0|this.Ch,0|this.Cl,0|l,0|d)),({h,l:p}=i.default.add(0|this.Dh,0|this.Dl,0|h,0|p)),({h:y,l:g}=i.default.add(0|this.Eh,0|this.El,0|y,0|g)),({h:b,l:m}=i.default.add(0|this.Fh,0|this.Fl,0|b,0|m)),({h:v,l:w}=i.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:_,l:S}=i.default.add(0|this.Hh,0|this.Hl,0|_,0|S)),this.set(r,n,o,f,l,d,h,p,y,g,b,m,v,w,_,S)}roundClean(){u.fill(0),c.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=f;class l extends f{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class d extends f{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class h extends f{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,o.wrapConstructor)((()=>new f)),t.sha512_224=(0,o.wrapConstructor)((()=>new l)),t.sha512_256=(0,o.wrapConstructor)((()=>new d)),t.sha384=(0,o.wrapConstructor)((()=>new h))},56266:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const n=r(22235);if(t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function o(e){if("string"!=typeof e)throw new TypeError("utf8ToBytes expected string, got "+typeof e);return(new TextEncoder).encode(e)}function a(e){if("string"==typeof e&&(e=o(e)),!(e instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof e})`);return e}t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=i[e[r]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r,i=e.slice(n,n+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");t[r]=o}return t},t.nextTick=async()=>{},t.asyncLoop=async function(e,r,n){let i=Date.now();for(let o=0;o<e;o++){n(o);const e=Date.now()-i;e>=0&&e<r||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=o,t.toBytes=a,t.concatBytes=function(...e){if(!e.every((e=>e instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const i=e[t];r.set(i,n),n+=i.length}return r},t.Hash=class{clone(){return this._cloneInto()}},t.checkOpts=function(e,t){if(void 0!==t&&("object"!=typeof t||(r=t,"[object Object]"!==Object.prototype.toString.call(r)||r.constructor!==Object)))throw new TypeError("Options should be object or undefined");var r;return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(a(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(a(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},65975:(e,t,r)=>{"use strict";const n=t;n.bignum=r(10660),n.define=r(36944).define,n.base=r(64581),n.constants=r(47961),n.decoders=r(39605),n.encoders=r(52408)},36944:(e,t,r)=>{"use strict";const n=r(52408),i=r(39605),o=r(19105);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){const t=this.name;function r(e){this._initNamed(e,t)}return o(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},a.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},a.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},3961:(e,t,r)=>{"use strict";const n=r(19105),i=r(98147).b,o=r(95848).Buffer;function a(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return s.isEncoderBuffer(e)||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.C=a,a.isDecoderBuffer=function(e){return e instanceof a||"object"==typeof e&&o.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){const t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=s,s.isEncoderBuffer=function(e){return e instanceof s||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},s.prototype.join=function(e,t){return e||(e=o.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},64581:(e,t,r)=>{"use strict";const n=t;n.Reporter=r(98147).b,n.DecoderBuffer=r(3961).C,n.EncoderBuffer=r(3961).R,n.Node=r(7412)},7412:(e,t,r)=>{"use strict";const n=r(98147).b,i=r(3961).R,o=r(3961).C,a=r(44647),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=c;const f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};f.forEach((function(r){t[r]=e[r]}));const r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){const e=this._baseState;u.forEach((function(t){this[t]=function(){const r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},c.prototype._init=function(e){const t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);const n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){c.prototype[e]=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}})),c.prototype.use=function(e){a(e);const t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){const t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));let n,i=r.default,a=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){let n=null;if(null!==r.explicit?n=r.explicit:null!==r.implicit?n=r.implicit:null!==r.tag&&(n=r.tag),null!==n||r.any){if(a=this._peekTag(e,n,r.any),e.isError(a))return a}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(n)}}if(r.obj&&a&&(n=e.enterObject()),a){if(null!==r.explicit){const t=this._decodeTag(e,r.explicit);if(e.isError(t))return t;e=t}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?i=e.raw(t):e=n}if(t&&t.track&&null!==r.tag&&t.track(e.path(),n,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(n,t)}}return r.obj&&a&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},c.prototype._decodeGeneric=function(e,t,r){const n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){const r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){const r=this._baseState;let n=null,i=!1;return Object.keys(r.choice).some((function(o){const a=e.save(),s=r.choice[o];try{const r=s._decode(e,t);if(e.isError(r))return!1;n={type:o,value:r},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,r){const n=this._baseState;if(null!==n.default&&n.default===e)return;const i=this._encodeValue(e,t,r);return void 0===i||this._skipDefault(i,t,r)?void 0:i},c.prototype._encodeValue=function(e,t,r){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);let o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,r)._encode(e,t),s=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");const n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const r=this.clone();r._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(r){const n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),r))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){const e=null!==i.implicit?i.implicit:i.tag,r=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(e,s,r,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){const r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){const r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},98147:(e,t,r)=>{"use strict";const n=r(19105);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.b=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){const n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){let t;const r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},95543:(e,t)=>{"use strict";function r(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);const n=e[r];t[n]=r})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r(t.tag)},47961:(e,t,r)=>{"use strict";const n=t;n._reverse=function(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);const n=e[r];t[n]=r})),t},n.der=r(95543)},6660:(e,t,r)=>{"use strict";const n=r(19105),i=r(10660),o=r(3961).C,a=r(7412),s=r(95543);function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,"der",e)}function f(e,t){let r=e.readUInt8(t);if(e.isError(r))return r;const n=s.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){let n=r;for(r=0;128==(128&n);){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function l(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;const i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(let t=0;t<i;t++){n<<=8;const t=e.readUInt8(r);if(e.isError(t))return t;n|=t}return n}e.exports=u,u.prototype.decode=function(e,t){return o.isDecoderBuffer(e)||(e=new o(e,t)),this.tree._decode(e,t)},n(c,a),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;const n=e.save(),i=f(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){const n=f(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;let i=l(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');const o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){const r=f(e,t);if(e.isError(r))return r;const n=l(e,r.primitive,t);if(e.isError(n))return n;let i;if(i=r.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){const i=[];for(;!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;const o=r.decode(e,"der",n);if(e.isError(o)&&t)break;i.push(o)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let r="";for(let e=0;e<t.length/2;e++)r+=String.fromCharCode(t.readUInt16BE(2*e));return r}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){let n;const i=[];let o=0,a=0;for(;!e.isEmpty();)a=e.readUInt8(),o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0);128&a&&i.push(o);const s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),t){let e=t[n.join(" ")];void 0===e&&(e=t[n.join(".")]),void 0!==e&&(n=e)}return n},c.prototype._decodeTime=function(e,t){const r=e.raw().toString();let n,i,o,a,s,u;if("gentime"===t)n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,u,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){const r=e.raw();let n=new i(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},39605:(e,t,r)=>{"use strict";const n=t;n.der=r(6660),n.pem=r(95087)},95087:(e,t,r)=>{"use strict";const n=r(19105),i=r(95848).Buffer,o=r(6660);function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){const r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,u=-1;for(let e=0;e<r.length;e++){const t=r[e].match(a);if(null!==t&&t[2]===n){if(-1!==s){if("END"!==t[1])break;u=e;break}if("BEGIN"!==t[1])break;s=e}}if(-1===s||-1===u)throw new Error("PEM section not found for: "+n);const c=r.slice(s+1,u).join("");c.replace(/[^a-z0-9+/=]+/gi,"");const f=i.from(c,"base64");return o.prototype.decode.call(this,f,t)}},3814:(e,t,r)=>{"use strict";const n=r(19105),i=r(95848).Buffer,o=r(7412),a=r(95543);function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.call(this,"der",e)}function c(e){return e<10?"0"+e:e}e.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,o),u.prototype._encodeComposite=function(e,t,r,n){const o=function(e,t,r,n){let i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),a.tagByName.hasOwnProperty(e))i=a.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=a.tagClassByName[r||"universal"]<<6,i)}(e,t,r,this.reporter);if(n.length<128){const e=i.alloc(2);return e[0]=o,e[1]=n.length,this._createEncoderBuffer([e,n])}let s=1;for(let e=n.length;e>=256;e>>=8)s++;const u=i.alloc(2+s);u[0]=o,u[1]=128|s;for(let e=1+s,t=n.length;t>0;e--,t>>=8)u[e]=255&t;return this._createEncoderBuffer([u,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=i.alloc(2*e.length);for(let r=0;r<e.length;r++)t.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(t)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},u.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let t=0;t<e.length;t++){let r=e[t];for(n++;r>=128;r>>=7)n++}const o=i.alloc(n);let a=o.length-1;for(let t=e.length-1;t>=0;t--){let r=e[t];for(o[a--]=127&r;(r>>=7)>0;)o[a--]=128|127&r}return this._createEncoderBuffer(o)},u.prototype._encodeTime=function(e,t){let r;const n=new Date(e);return"gentime"===t?r=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;const r=i.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let t=e;t>=256;t>>=8)r++;const n=new Array(r);for(let t=n.length-1;t>=0;t--)n[t]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(i.from(n))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){const n=this._baseState;let i;if(null===n.default)return!1;const o=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i<o.length;i++)if(o[i]!==n.defaultBuffer[i])return!1;return!0}},52408:(e,t,r)=>{"use strict";const n=t;n.der=r(3814),n.pem=r(33687)},33687:(e,t,r)=>{"use strict";const n=r(19105),i=r(3814);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){const r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"];for(let e=0;e<r.length;e+=64)n.push(r.slice(e,e+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},32037:(e,t,r)=>{"use strict";var n=r(48494);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===i(o)?o:String(o)),n)}var o}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var s,u,c=r(47665).codes,f=c.ERR_AMBIGUOUS_ARGUMENT,l=c.ERR_INVALID_ARG_TYPE,d=c.ERR_INVALID_ARG_VALUE,h=c.ERR_INVALID_RETURN_VALUE,p=c.ERR_MISSING_ARGS,y=r(56625),g=r(75786).inspect,b=r(75786).types,m=b.isPromise,v=b.isRegExp,w=r(90540)(),_=r(97179)(),S=r(34537)("RegExp.prototype.test");function E(){var e=r(86214);s=e.isDeepEqual,u=e.isDeepStrictEqual}new Map;var A=!1,O=e.exports=N,M={};function T(e){if(e.message instanceof Error)throw e.message;throw new y(e)}function I(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new y({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];I.apply(void 0,[N,t.length].concat(t))}O.fail=function e(t,r,i,o,a){var s,u=arguments.length;if(0===u?s="Failed":1===u?(i=t,t=void 0):(!1===A&&(A=!0,(n.emitWarning?n.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===u&&(o="!=")),i instanceof Error)throw i;var c={actual:t,expected:r,operator:void 0===o?"fail":o,stackStartFn:a||e};void 0!==i&&(c.message=i);var f=new y(c);throw s&&(f.message=s,f.generatedMessage=!0),f},O.AssertionError=y,O.ok=N,O.equal=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t!=r&&T({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},O.notEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t==r&&T({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},O.deepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===s&&E(),s(t,r)||T({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},O.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===s&&E(),s(t,r)&&T({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},O.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===s&&E(),u(t,r)||T({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},O.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===s&&E(),u(t,r)&&T({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},O.strictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");_(t,r)||T({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},O.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");_(t,r)&&T({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var C=a((function e(t,r,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&v(t[e])&&S(t[e],n[e])?i[e]=n[e]:i[e]=t[e])}))}));function L(e,t,r,n){if("function"!=typeof t){if(v(t))return S(t,e);if(2===arguments.length)throw new l("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var o=new y({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:n});throw o.operator=n.name,o}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new d("error",t,"may not be an empty object");return void 0===s&&E(),a.forEach((function(i){"string"==typeof e[i]&&v(t[i])&&S(t[i],e[i])||function(e,t,r,n,i,o){if(!(r in e)||!u(e[r],t[r])){if(!n){var a=new C(e,i),s=new C(t,i,e),c=new y({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=e,c.expected=t,c.operator=o.name,c}T({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}(e,t,i,r,a,n)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function x(e){if("function"!=typeof e)throw new l("fn","Function",e);try{e()}catch(e){return e}return M}function R(e){return m(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function k(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!R(t=e()))throw new h("instance of Promise","promiseFn",t)}else{if(!R(e))throw new l("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return M})).catch((function(e){return e}))}))}function B(e,t,r,n){if("string"==typeof r){if(4===arguments.length)throw new l("error",["Object","Error","Function","RegExp"],r);if("object"===i(t)&&null!==t){if(t.message===r)throw new f("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new f("error/message",'The error "'.concat(t,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new l("error",["Object","Error","Function","RegExp"],r);if(t===M){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===e.name?"rejection":"exception";T({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(r&&!L(t,r,n,e))throw t}function P(e,t,r,n){if(t!==M){if("string"==typeof r&&(n=r,r=void 0),!r||L(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";T({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function D(e,t,r,n,o){if(!v(t))throw new l("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||S(t,e)!==a){if(r instanceof Error)throw r;var s=!r;r=r||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(g(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(g(t),". Input:\n\n").concat(g(e),"\n"));var u=new y({actual:e,expected:t,message:r,operator:o,stackStartFn:n});throw u.generatedMessage=s,u}}function j(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];I.apply(void 0,[j,t.length].concat(t))}O.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];B.apply(void 0,[e,x(t)].concat(n))},O.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return k(t).then((function(t){return B.apply(void 0,[e,t].concat(n))}))},O.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];P.apply(void 0,[e,x(t)].concat(n))},O.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return k(t).then((function(t){return P.apply(void 0,[e,t].concat(n))}))},O.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=g(t);var n=new y({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=n.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},O.match=function e(t,r,n){D(t,r,n,e,"match")},O.doesNotMatch=function e(t,r,n){D(t,r,n,e,"doesNotMatch")},O.strict=w(j,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict},56625:(e,t,r)=>{"use strict";var n=r(48494);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){var n,i,o;n=e,i=t,o=r[t],(i=s(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}function u(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){var t="function"==typeof Map?new Map:void 0;return f=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return l(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,e)},f(e)}function l(e,t,r){return l=d()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&h(i,r.prototype),i},l.apply(null,arguments)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}var g=r(75786).inspect,b=r(47665).codes.ERR_INVALID_ARG_TYPE;function m(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var v="",w="",_="",S="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function A(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function O(e){return g(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var M=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(M,e);var r,i,s,f,l=(r=M,i=d(),function(){var e,t=p(r);if(i){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function M(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,M),"object"!==y(e)||null===e)throw new b("options","Object",e);var r=e.message,i=e.operator,o=e.stackStartFn,a=e.actual,s=e.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=l.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(v="",w="",S="",_=""):(v="",w="",S="",_="")),"object"===y(a)&&null!==a&&"object"===y(s)&&null!==s&&"stack"in a&&a instanceof Error&&"stack"in s&&s instanceof Error&&(a=A(a),s=A(s)),"deepStrictEqual"===i||"strictEqual"===i)t=l.call(this,function(e,t,r){var i="",o="",a=0,s="",u=!1,c=O(e),f=c.split("\n"),l=O(t).split("\n"),d=0,h="";if("strictEqual"===r&&"object"===y(e)&&"object"===y(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===f.length&&1===l.length&&f[0]!==l[0]){var p=f[0].length+l[0].length;if(p<=10){if(!("object"===y(e)&&null!==e||"object"===y(t)&&null!==t||0===e&&0===t))return"".concat(E[r],"\n\n")+"".concat(f[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r&&p<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;f[0][d]===l[0][d];)d++;d>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",d),"^"),d=0)}}for(var g=f[f.length-1],b=l[l.length-1];g===b&&(d++<2?s="\n ".concat(g).concat(s):i=g,f.pop(),l.pop(),0!==f.length&&0!==l.length);)g=f[f.length-1],b=l[l.length-1];var A=Math.max(f.length,l.length);if(0===A){var M=c.split("\n");if(M.length>30)for(M[26]="".concat(v,"...").concat(S);M.length>27;)M.pop();return"".concat(E.notIdentical,"\n\n").concat(M.join("\n"),"\n")}d>3&&(s="\n".concat(v,"...").concat(S).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var T=0,I=E[r]+"\n".concat(w,"+ actual").concat(S," ").concat(_,"- expected").concat(S),N=" ".concat(v,"...").concat(S," Lines skipped");for(d=0;d<A;d++){var C=d-a;if(f.length<d+1)C>1&&d>2&&(C>4?(o+="\n".concat(v,"...").concat(S),u=!0):C>3&&(o+="\n ".concat(l[d-2]),T++),o+="\n ".concat(l[d-1]),T++),a=d,i+="\n".concat(_,"-").concat(S," ").concat(l[d]),T++;else if(l.length<d+1)C>1&&d>2&&(C>4?(o+="\n".concat(v,"...").concat(S),u=!0):C>3&&(o+="\n ".concat(f[d-2]),T++),o+="\n ".concat(f[d-1]),T++),a=d,o+="\n".concat(w,"+").concat(S," ").concat(f[d]),T++;else{var L=l[d],x=f[d],R=x!==L&&(!m(x,",")||x.slice(0,-1)!==L);R&&m(L,",")&&L.slice(0,-1)===x&&(R=!1,x+=","),R?(C>1&&d>2&&(C>4?(o+="\n".concat(v,"...").concat(S),u=!0):C>3&&(o+="\n ".concat(f[d-2]),T++),o+="\n ".concat(f[d-1]),T++),a=d,o+="\n".concat(w,"+").concat(S," ").concat(x),i+="\n".concat(_,"-").concat(S," ").concat(L),T+=2):(o+=i,i="",1!==C&&0!==d||(o+="\n ".concat(x),T++))}if(T>20&&d<A-2)return"".concat(I).concat(N,"\n").concat(o,"\n").concat(v,"...").concat(S).concat(i,"\n")+"".concat(v,"...").concat(S)}return"".concat(I).concat(u?N:"","\n").concat(o).concat(i).concat(s).concat(h)}(a,s,i));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var d=E[i],h=O(a).split("\n");if("notStrictEqual"===i&&"object"===y(a)&&null!==a&&(d=E.notStrictEqualObject),h.length>30)for(h[26]="".concat(v,"...").concat(S);h.length>27;)h.pop();t=1===h.length?l.call(this,"".concat(d," ").concat(h[0])):l.call(this,"".concat(d,"\n\n").concat(h.join("\n"),"\n"))}else{var p=O(a),g="",T=E[i];"notDeepEqual"===i||"notEqual"===i?(p="".concat(E[i],"\n\n").concat(p)).length>1024&&(p="".concat(p.slice(0,1021),"...")):(g="".concat(O(s)),p.length>512&&(p="".concat(p.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===i||"equal"===i?p="".concat(T,"\n\n").concat(p,"\n\nshould equal\n\n"):g=" ".concat(i," ").concat(g)),t=l.call(this,"".concat(p).concat(g))}return Error.stackTraceLimit=f,t.generatedMessage=!r,Object.defineProperty(c(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=s,t.operator=i,Error.captureStackTrace&&Error.captureStackTrace(c(t),o),t.stack,t.name="AssertionError",u(t)}return s=M,(f=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return g(this,o(o({},t),{},{customInspect:!1,depth:0}))}}])&&a(s.prototype,f),Object.defineProperty(s,"prototype",{writable:!1}),M}(f(Error),g.custom);e.exports=M},47665:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var a,s,u={};function c(e,t,r){r||(r=Error);var a=function(r){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(f,r);var a,s,u,c=(s=f,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=o(s);if(u){var r=o(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(r,n,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),o=c.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i)),o.code=e,o}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(r);u[e]=a}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,s,u,c,l;if(void 0===a&&(a=r(32037)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,4)===s)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))u="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var d=("number"!=typeof l&&(l=0),l+1>(c=e).length||-1===c.indexOf(".",l)?"argument":"property");u='The "'.concat(e,'" ').concat(d," ").concat(o," ").concat(f(t,"type"))}return u+". Received type ".concat(n(i))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(75786));var i=s.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===a&&(a=r(32037)),a(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=u},86214:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},u=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},c=Object.is?Object.is:r(81044),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(34124);function d(e){return e.call.bind(e)}var h=d(Object.prototype.hasOwnProperty),p=d(Object.prototype.propertyIsEnumerable),y=d(Object.prototype.toString),g=r(75786).types,b=g.isAnyArrayBuffer,m=g.isArrayBufferView,v=g.isDate,w=g.isMap,_=g.isRegExp,S=g.isSet,E=g.isNativeError,A=g.isBoxedPrimitive,O=g.isNumberObject,M=g.isStringObject,T=g.isBooleanObject,I=g.isBigIntObject,N=g.isSymbolObject,C=g.isFloat32Array,L=g.isFloat64Array;function x(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function R(e){return Object.keys(e).filter(x).concat(f(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function k(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}var B=0,P=1,D=2,j=3;function F(e,t,r,n){if(e===t)return 0!==e||!r||c(e,t);if(r){if("object"!==o(e))return"number"==typeof e&&l(e)&&l(t);if("object"!==o(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==o(e))return(null===t||"object"!==o(t))&&e==t;if(null===t||"object"!==o(t))return!1}var i,s,u,f,d=y(e);if(d!==y(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var h=R(e),p=R(t);return h.length===p.length&&H(e,t,r,n,P,h)}if("[object Object]"===d&&(!w(e)&&w(t)||!S(e)&&S(t)))return!1;if(v(e)){if(!v(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(_(e)){if(!_(t)||(u=e,f=t,!(a?u.source===f.source&&u.flags===f.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(f))))return!1}else if(E(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(m(e)){if(r||!C(e)&&!L(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===k(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e,t))return!1;var g=R(e),x=R(t);return g.length===x.length&&H(e,t,r,n,B,g)}if(S(e))return!(!S(t)||e.size!==t.size)&&H(e,t,r,n,D);if(w(e))return!(!w(t)||e.size!==t.size)&&H(e,t,r,n,j);if(b(e)){if(s=t,(i=e).byteLength!==s.byteLength||0!==k(new Uint8Array(i),new Uint8Array(s)))return!1}else if(A(e)&&!function(e,t){return O(e)?O(t)&&c(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):M(e)?M(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):T(e)?T(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):I(e)?I(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):N(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return H(e,t,r,n,B)}function U(e,t){return t.filter((function(t){return p(e,t)}))}function H(e,t,r,i,a,c){if(5===arguments.length){c=Object.keys(e);var l=Object.keys(t);if(c.length!==l.length)return!1}for(var d=0;d<c.length;d++)if(!h(t,c[d]))return!1;if(r&&5===arguments.length){var y=f(e);if(0!==y.length){var g=0;for(d=0;d<y.length;d++){var b=y[d];if(p(e,b)){if(!p(t,b))return!1;c.push(b),g++}else if(p(t,b))return!1}var m=f(t);if(y.length!==m.length&&U(t,m).length!==g)return!1}else{var v=f(t);if(0!==v.length&&0!==U(t,v).length)return!1}}if(0===c.length&&(a===B||a===P&&0===e.length||0===e.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var w=i.val1.get(e);if(void 0!==w){var _=i.val2.get(t);if(void 0!==_)return w===_}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var S=function(e,t,r,i,a,c){var f=0;if(c===D){if(!function(e,t,r,n){for(var i=null,a=s(e),u=0;u<a.length;u++){var c=a[u];if("object"===o(c)&&null!==c)null===i&&(i=new Set),i.add(c);else if(!t.has(c)){if(r)return!1;if(!q(e,t,c))return!1;null===i&&(i=new Set),i.add(c)}}if(null!==i){for(var f=s(t),l=0;l<f.length;l++){var d=f[l];if("object"===o(d)&&null!==d){if(!V(i,d,r,n))return!1}else if(!r&&!e.has(d)&&!V(i,d,r,n))return!1}return 0===i.size}return!0}(e,t,r,a))return!1}else if(c===j){if(!function(e,t,r,i){for(var a=null,s=u(e),c=0;c<s.length;c++){var f=n(s[c],2),l=f[0],d=f[1];if("object"===o(l)&&null!==l)null===a&&(a=new Set),a.add(l);else{var h=t.get(l);if(void 0===h&&!t.has(l)||!F(d,h,r,i)){if(r)return!1;if(!K(e,t,l,d,i))return!1;null===a&&(a=new Set),a.add(l)}}}if(null!==a){for(var p=u(t),y=0;y<p.length;y++){var g=n(p[y],2),b=g[0],m=g[1];if("object"===o(b)&&null!==b){if(!W(a,e,b,m,r,i))return!1}else if(!(r||e.has(b)&&F(e.get(b),m,!1,i)||W(a,e,b,m,!1,i)))return!1}return 0===a.size}return!0}(e,t,r,a))return!1}else if(c===P)for(;f<e.length;f++){if(!h(e,f)){if(h(t,f))return!1;for(var l=Object.keys(e);f<l.length;f++){var d=l[f];if(!h(t,d)||!F(e[d],t[d],r,a))return!1}return l.length===Object.keys(t).length}if(!h(t,f)||!F(e[f],t[f],r,a))return!1}for(f=0;f<i.length;f++){var p=i[f];if(!F(e[p],t[p],r,a))return!1}return!0}(e,t,r,c,i,a);return i.val1.delete(e),i.val2.delete(t),S}function V(e,t,r,n){for(var i=s(e),o=0;o<i.length;o++){var a=i[o];if(F(t,a,r,n))return e.delete(a),!0}return!1}function z(e){switch(o(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(l(e))return!1}return!0}function q(e,t,r){var n=z(r);return null!=n?n:t.has(n)&&!e.has(n)}function K(e,t,r,n,i){var o=z(r);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!F(n,a,!1,i))&&!e.has(o)&&F(n,a,!1,i)}function W(e,t,r,n,i,o){for(var a=s(e),u=0;u<a.length;u++){var c=a[u];if(F(r,c,i,o)&&F(n,t.get(c),i,o))return e.delete(c),!0}return!1}e.exports={isDeepEqual:function(e,t){return F(e,t,!1)},isDeepStrictEqual:function(e,t){return F(e,t,!0)}}},90638:(e,t,r)=>{"use strict";var n=r(59105).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==t[a])throw new TypeError(o+" is ambiguous");t[a]=i}var s=e.length,u=e.charAt(0),c=Math.log(s)/Math.log(256),f=Math.log(256)/Math.log(s);function l(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return n.alloc(0);for(var r=0,i=0,o=0;e[r]===u;)i++,r++;for(var a=(e.length-r)*c+1>>>0,f=new Uint8Array(a);e[r];){var l=t[e.charCodeAt(r)];if(255===l)return;for(var d=0,h=a-1;(0!==l||d<o)&&-1!==h;h--,d++)l+=s*f[h]>>>0,f[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");o=d,r++}for(var p=a-o;p!==a&&0===f[p];)p++;var y=n.allocUnsafe(i+(a-p));y.fill(0,0,i);for(var g=i;p!==a;)y[g++]=f[p++];return y}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,a=t.length;o!==a&&0===t[o];)o++,r++;for(var c=(a-o)*f+1>>>0,l=new Uint8Array(c);o!==a;){for(var d=t[o],h=0,p=c-1;(0!==d||h<i)&&-1!==p;p--,h++)d+=256*l[p]>>>0,l[p]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");i=h,o++}for(var y=c-i;y!==c&&0===l[y];)y++;for(var g=u.repeat(r);y<c;++y)g+=e.charAt(l[y]);return g},decodeUnsafe:l,decode:function(e){var t=l(e);if(t)return t;throw new Error("Non-base"+s+" character")}}}},17086:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],u=o[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,u)),f=0,l=u>0?a-4:a;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===u&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[f++]=255&t),1===u&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,c=n-i;s<c;s+=a)o.push(u(e,s,s+a>c?c:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},32548:(e,t,r)=>{var n;e=r.nmd(e);var i=function(e){"use strict";var t=1e7,r=7,n=9007199254740992,o=h(n),a="0123456789abcdefghijklmnopqrstuvwxyz",s="function"==typeof BigInt;function u(e,t,r,n){return void 0===e?u[0]:void 0===t||10==+t&&!r?J(e):W(e,t,r,n)}function c(e,t){this.value=e,this.sign=t,this.isSmall=!1}function f(e){this.value=e,this.sign=e<0,this.isSmall=!0}function l(e){this.value=e}function d(e){return-n<e&&e<n}function h(e){return e<1e7?[e]:e<1e14?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function p(e){y(e);var r=e.length;if(r<4&&L(e,o)<0)switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}return e}function y(e){for(var t=e.length;0===e[--t];);e.length=t+1}function g(e){for(var t=new Array(e),r=-1;++r<e;)t[r]=0;return t}function b(e){return e>0?Math.floor(e):Math.ceil(e)}function m(e,r){var n,i,o=e.length,a=r.length,s=new Array(o),u=0,c=t;for(i=0;i<a;i++)u=(n=e[i]+r[i]+u)>=c?1:0,s[i]=n-u*c;for(;i<o;)u=(n=e[i]+u)===c?1:0,s[i++]=n-u*c;return u>0&&s.push(u),s}function v(e,t){return e.length>=t.length?m(e,t):m(t,e)}function w(e,r){var n,i,o=e.length,a=new Array(o),s=t;for(i=0;i<o;i++)n=e[i]-s+r,r=Math.floor(n/s),a[i]=n-r*s,r+=1;for(;r>0;)a[i++]=r%s,r=Math.floor(r/s);return a}function _(e,r){var n,i,o=e.length,a=r.length,s=new Array(o),u=0,c=t;for(n=0;n<a;n++)(i=e[n]-u-r[n])<0?(i+=c,u=1):u=0,s[n]=i;for(n=a;n<o;n++){if(!((i=e[n]-u)<0)){s[n++]=i;break}i+=c,s[n]=i}for(;n<o;n++)s[n]=e[n];return y(s),s}function S(e,r,n){var i,o,a=e.length,s=new Array(a),u=-r,l=t;for(i=0;i<a;i++)o=e[i]+u,u=Math.floor(o/l),o%=l,s[i]=o<0?o+l:o;return"number"==typeof(s=p(s))?(n&&(s=-s),new f(s)):new c(s,n)}function E(e,r){var n,i,o,a,s=e.length,u=r.length,c=g(s+u),f=t;for(o=0;o<s;++o){a=e[o];for(var l=0;l<u;++l)n=a*r[l]+c[o+l],i=Math.floor(n/f),c[o+l]=n-i*f,c[o+l+1]+=i}return y(c),c}function A(e,r){var n,i,o=e.length,a=new Array(o),s=t,u=0;for(i=0;i<o;i++)n=e[i]*r+u,u=Math.floor(n/s),a[i]=n-u*s;for(;u>0;)a[i++]=u%s,u=Math.floor(u/s);return a}function O(e,t){for(var r=[];t-- >0;)r.push(0);return r.concat(e)}function M(e,t){var r=Math.max(e.length,t.length);if(r<=30)return E(e,t);r=Math.ceil(r/2);var n=e.slice(r),i=e.slice(0,r),o=t.slice(r),a=t.slice(0,r),s=M(i,a),u=M(n,o),c=M(v(i,n),v(a,o)),f=v(v(s,O(_(_(c,s),u),r)),O(u,2*r));return y(f),f}function T(e,r,n){return new c(e<t?A(r,e):E(r,h(e)),n)}function I(e){var r,n,i,o,a=e.length,s=g(a+a),u=t;for(i=0;i<a;i++){n=0-(o=e[i])*o;for(var c=i;c<a;c++)r=o*e[c]*2+s[i+c]+n,n=Math.floor(r/u),s[i+c]=r-n*u;s[i+a]=n}return y(s),s}function N(e,r){var n,i,o,a,s=e.length,u=g(s),c=t;for(o=0,n=s-1;n>=0;--n)o=(a=o*c+e[n])-(i=b(a/r))*r,u[n]=0|i;return[u,0|o]}function C(e,r){var n,i=J(r);if(s)return[new l(e.value/i.value),new l(e.value%i.value)];var o,a=e.value,d=i.value;if(0===d)throw new Error("Cannot divide by zero");if(e.isSmall)return i.isSmall?[new f(b(a/d)),new f(a%d)]:[u[0],e];if(i.isSmall){if(1===d)return[e,u[0]];if(-1==d)return[e.negate(),u[0]];var m=Math.abs(d);if(m<t){o=p((n=N(a,m))[0]);var v=n[1];return e.sign&&(v=-v),"number"==typeof o?(e.sign!==i.sign&&(o=-o),[new f(o),new f(v)]):[new c(o,e.sign!==i.sign),new f(v)]}d=h(m)}var w=L(a,d);if(-1===w)return[u[0],e];if(0===w)return[u[e.sign===i.sign?1:-1],u[0]];n=a.length+d.length<=200?function(e,r){var n,i,o,a,s,u,c,f=e.length,l=r.length,d=t,h=g(r.length),y=r[l-1],b=Math.ceil(d/(2*y)),m=A(e,b),v=A(r,b);for(m.length<=f&&m.push(0),v.push(0),y=v[l-1],i=f-l;i>=0;i--){for(n=d-1,m[i+l]!==y&&(n=Math.floor((m[i+l]*d+m[i+l-1])/y)),o=0,a=0,u=v.length,s=0;s<u;s++)o+=n*v[s],c=Math.floor(o/d),a+=m[i+s]-(o-c*d),o=c,a<0?(m[i+s]=a+d,a=-1):(m[i+s]=a,a=0);for(;0!==a;){for(n-=1,o=0,s=0;s<u;s++)(o+=m[i+s]-d+v[s])<0?(m[i+s]=o+d,o=0):(m[i+s]=o,o=1);a+=o}h[i]=n}return m=N(m,b)[0],[p(h),p(m)]}(a,d):function(e,r){for(var n,i,o,a,s,u=e.length,c=r.length,f=[],l=[],d=t;u;)if(l.unshift(e[--u]),y(l),L(l,r)<0)f.push(0);else{o=l[(i=l.length)-1]*d+l[i-2],a=r[c-1]*d+r[c-2],i>c&&(o=(o+1)*d),n=Math.ceil(o/a);do{if(L(s=A(r,n),l)<=0)break;n--}while(n);f.push(n),l=_(l,s)}return f.reverse(),[p(f),p(l)]}(a,d),o=n[0];var S=e.sign!==i.sign,E=n[1],O=e.sign;return"number"==typeof o?(S&&(o=-o),o=new f(o)):o=new c(o,S),"number"==typeof E?(O&&(E=-E),E=new f(E)):E=new c(E,O),[o,E]}function L(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var r=e.length-1;r>=0;r--)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return 0}function x(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function R(e,t){for(var r,n,o,a=e.prev(),s=a,u=0;s.isEven();)s=s.divide(2),u++;e:for(n=0;n<t.length;n++)if(!e.lesser(t[n])&&!(o=i(t[n]).modPow(s,e)).isUnit()&&!o.equals(a)){for(r=u-1;0!=r;r--){if((o=o.square().mod(e)).isUnit())return!1;if(o.equals(a))continue e}return!1}return!0}c.prototype=Object.create(u.prototype),f.prototype=Object.create(u.prototype),l.prototype=Object.create(u.prototype),c.prototype.add=function(e){var t=J(e);if(this.sign!==t.sign)return this.subtract(t.negate());var r=this.value,n=t.value;return t.isSmall?new c(w(r,Math.abs(n)),this.sign):new c(v(r,n),this.sign)},c.prototype.plus=c.prototype.add,f.prototype.add=function(e){var t=J(e),r=this.value;if(r<0!==t.sign)return this.subtract(t.negate());var n=t.value;if(t.isSmall){if(d(r+n))return new f(r+n);n=h(Math.abs(n))}return new c(w(n,Math.abs(r)),r<0)},f.prototype.plus=f.prototype.add,l.prototype.add=function(e){return new l(this.value+J(e).value)},l.prototype.plus=l.prototype.add,c.prototype.subtract=function(e){var t=J(e);if(this.sign!==t.sign)return this.add(t.negate());var r=this.value,n=t.value;return t.isSmall?S(r,Math.abs(n),this.sign):function(e,t,r){var n;return L(e,t)>=0?n=_(e,t):(n=_(t,e),r=!r),"number"==typeof(n=p(n))?(r&&(n=-n),new f(n)):new c(n,r)}(r,n,this.sign)},c.prototype.minus=c.prototype.subtract,f.prototype.subtract=function(e){var t=J(e),r=this.value;if(r<0!==t.sign)return this.add(t.negate());var n=t.value;return t.isSmall?new f(r-n):S(n,Math.abs(r),r>=0)},f.prototype.minus=f.prototype.subtract,l.prototype.subtract=function(e){return new l(this.value-J(e).value)},l.prototype.minus=l.prototype.subtract,c.prototype.negate=function(){return new c(this.value,!this.sign)},f.prototype.negate=function(){var e=this.sign,t=new f(-this.value);return t.sign=!e,t},l.prototype.negate=function(){return new l(-this.value)},c.prototype.abs=function(){return new c(this.value,!1)},f.prototype.abs=function(){return new f(Math.abs(this.value))},l.prototype.abs=function(){return new l(this.value>=0?this.value:-this.value)},c.prototype.multiply=function(e){var r,n,i,o=J(e),a=this.value,s=o.value,f=this.sign!==o.sign;if(o.isSmall){if(0===s)return u[0];if(1===s)return this;if(-1===s)return this.negate();if((r=Math.abs(s))<t)return new c(A(a,r),f);s=h(r)}return new c(-.012*(n=a.length)-.012*(i=s.length)+15e-6*n*i>0?M(a,s):E(a,s),f)},c.prototype.times=c.prototype.multiply,f.prototype._multiplyBySmall=function(e){return d(e.value*this.value)?new f(e.value*this.value):T(Math.abs(e.value),h(Math.abs(this.value)),this.sign!==e.sign)},c.prototype._multiplyBySmall=function(e){return 0===e.value?u[0]:1===e.value?this:-1===e.value?this.negate():T(Math.abs(e.value),this.value,this.sign!==e.sign)},f.prototype.multiply=function(e){return J(e)._multiplyBySmall(this)},f.prototype.times=f.prototype.multiply,l.prototype.multiply=function(e){return new l(this.value*J(e).value)},l.prototype.times=l.prototype.multiply,c.prototype.square=function(){return new c(I(this.value),!1)},f.prototype.square=function(){var e=this.value*this.value;return d(e)?new f(e):new c(I(h(Math.abs(this.value))),!1)},l.prototype.square=function(e){return new l(this.value*this.value)},c.prototype.divmod=function(e){var t=C(this,e);return{quotient:t[0],remainder:t[1]}},l.prototype.divmod=f.prototype.divmod=c.prototype.divmod,c.prototype.divide=function(e){return C(this,e)[0]},l.prototype.over=l.prototype.divide=function(e){return new l(this.value/J(e).value)},f.prototype.over=f.prototype.divide=c.prototype.over=c.prototype.divide,c.prototype.mod=function(e){return C(this,e)[1]},l.prototype.mod=l.prototype.remainder=function(e){return new l(this.value%J(e).value)},f.prototype.remainder=f.prototype.mod=c.prototype.remainder=c.prototype.mod,c.prototype.pow=function(e){var t,r,n,i=J(e),o=this.value,a=i.value;if(0===a)return u[1];if(0===o)return u[0];if(1===o)return u[1];if(-1===o)return i.isEven()?u[1]:u[-1];if(i.sign)return u[0];if(!i.isSmall)throw new Error("The exponent "+i.toString()+" is too large.");if(this.isSmall&&d(t=Math.pow(o,a)))return new f(b(t));for(r=this,n=u[1];!0&a&&(n=n.times(r),--a),0!==a;)a/=2,r=r.square();return n},f.prototype.pow=c.prototype.pow,l.prototype.pow=function(e){var t=J(e),r=this.value,n=t.value,i=BigInt(0),o=BigInt(1),a=BigInt(2);if(n===i)return u[1];if(r===i)return u[0];if(r===o)return u[1];if(r===BigInt(-1))return t.isEven()?u[1]:u[-1];if(t.isNegative())return new l(i);for(var s=this,c=u[1];(n&o)===o&&(c=c.times(s),--n),n!==i;)n/=a,s=s.square();return c},c.prototype.modPow=function(e,t){if(e=J(e),(t=J(t)).isZero())throw new Error("Cannot take modPow with modulus 0");var r=u[1],n=this.mod(t);for(e.isNegative()&&(e=e.multiply(u[-1]),n=n.modInv(t));e.isPositive();){if(n.isZero())return u[0];e.isOdd()&&(r=r.multiply(n).mod(t)),e=e.divide(2),n=n.square().mod(t)}return r},l.prototype.modPow=f.prototype.modPow=c.prototype.modPow,c.prototype.compareAbs=function(e){var t=J(e),r=this.value,n=t.value;return t.isSmall?1:L(r,n)},f.prototype.compareAbs=function(e){var t=J(e),r=Math.abs(this.value),n=t.value;return t.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},l.prototype.compareAbs=function(e){var t=this.value,r=J(e).value;return(t=t>=0?t:-t)===(r=r>=0?r:-r)?0:t>r?1:-1},c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=J(e),r=this.value,n=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:L(r,n)*(this.sign?-1:1)},c.prototype.compareTo=c.prototype.compare,f.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=J(e),r=this.value,n=t.value;return t.isSmall?r==n?0:r>n?1:-1:r<0!==t.sign?r<0?-1:1:r<0?1:-1},f.prototype.compareTo=f.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,r=J(e).value;return t===r?0:t>r?1:-1},l.prototype.compareTo=l.prototype.compare,c.prototype.equals=function(e){return 0===this.compare(e)},l.prototype.eq=l.prototype.equals=f.prototype.eq=f.prototype.equals=c.prototype.eq=c.prototype.equals,c.prototype.notEquals=function(e){return 0!==this.compare(e)},l.prototype.neq=l.prototype.notEquals=f.prototype.neq=f.prototype.notEquals=c.prototype.neq=c.prototype.notEquals,c.prototype.greater=function(e){return this.compare(e)>0},l.prototype.gt=l.prototype.greater=f.prototype.gt=f.prototype.greater=c.prototype.gt=c.prototype.greater,c.prototype.lesser=function(e){return this.compare(e)<0},l.prototype.lt=l.prototype.lesser=f.prototype.lt=f.prototype.lesser=c.prototype.lt=c.prototype.lesser,c.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},l.prototype.geq=l.prototype.greaterOrEquals=f.prototype.geq=f.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals,c.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},l.prototype.leq=l.prototype.lesserOrEquals=f.prototype.leq=f.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals,c.prototype.isEven=function(){return 0==(1&this.value[0])},f.prototype.isEven=function(){return 0==(1&this.value)},l.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},c.prototype.isOdd=function(){return 1==(1&this.value[0])},f.prototype.isOdd=function(){return 1==(1&this.value)},l.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},c.prototype.isPositive=function(){return!this.sign},f.prototype.isPositive=function(){return this.value>0},l.prototype.isPositive=f.prototype.isPositive,c.prototype.isNegative=function(){return this.sign},f.prototype.isNegative=function(){return this.value<0},l.prototype.isNegative=f.prototype.isNegative,c.prototype.isUnit=function(){return!1},f.prototype.isUnit=function(){return 1===Math.abs(this.value)},l.prototype.isUnit=function(){return this.abs().value===BigInt(1)},c.prototype.isZero=function(){return!1},f.prototype.isZero=function(){return 0===this.value},l.prototype.isZero=function(){return this.value===BigInt(0)},c.prototype.isDivisibleBy=function(e){var t=J(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},l.prototype.isDivisibleBy=f.prototype.isDivisibleBy=c.prototype.isDivisibleBy,c.prototype.isPrime=function(t){var r=x(this);if(r!==e)return r;var n=this.abs(),o=n.bitLength();if(o<=64)return R(n,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var a=Math.log(2)*o.toJSNumber(),s=Math.ceil(!0===t?2*Math.pow(a,2):a),u=[],c=0;c<s;c++)u.push(i(c+2));return R(n,u)},l.prototype.isPrime=f.prototype.isPrime=c.prototype.isPrime,c.prototype.isProbablePrime=function(t,r){var n=x(this);if(n!==e)return n;for(var o=this.abs(),a=t===e?5:t,s=[],u=0;u<a;u++)s.push(i.randBetween(2,o.minus(2),r));return R(o,s)},l.prototype.isProbablePrime=f.prototype.isProbablePrime=c.prototype.isProbablePrime,c.prototype.modInv=function(e){for(var t,r,n,o=i.zero,a=i.one,s=J(e),u=this.abs();!u.isZero();)t=s.divide(u),r=o,n=s,o=a,s=u,a=r.subtract(t.multiply(a)),u=n.subtract(t.multiply(u));if(!s.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");return-1===o.compare(0)&&(o=o.add(e)),this.isNegative()?o.negate():o},l.prototype.modInv=f.prototype.modInv=c.prototype.modInv,c.prototype.next=function(){var e=this.value;return this.sign?S(e,1,this.sign):new c(w(e,1),this.sign)},f.prototype.next=function(){var e=this.value;return e+1<n?new f(e+1):new c(o,!1)},l.prototype.next=function(){return new l(this.value+BigInt(1))},c.prototype.prev=function(){var e=this.value;return this.sign?new c(w(e,1),!0):S(e,1,this.sign)},f.prototype.prev=function(){var e=this.value;return e-1>-n?new f(e-1):new c(o,!0)},l.prototype.prev=function(){return new l(this.value-BigInt(1))};for(var k=[1];2*k[k.length-1]<=t;)k.push(2*k[k.length-1]);var B=k.length,P=k[B-1];function D(e){return Math.abs(e)<=t}function j(e,t,r){t=J(t);for(var n=e.isNegative(),o=t.isNegative(),a=n?e.not():e,s=o?t.not():t,u=0,c=0,f=null,l=null,d=[];!a.isZero()||!s.isZero();)u=(f=C(a,P))[1].toJSNumber(),n&&(u=P-1-u),c=(l=C(s,P))[1].toJSNumber(),o&&(c=P-1-c),a=f[0],s=l[0],d.push(r(u,c));for(var h=0!==r(n?1:0,o?1:0)?i(-1):i(0),p=d.length-1;p>=0;p-=1)h=h.multiply(P).add(i(d[p]));return h}c.prototype.shiftLeft=function(e){var t=J(e).toJSNumber();if(!D(t))throw new Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;for(;t>=B;)r=r.multiply(P),t-=B-1;return r.multiply(k[t])},l.prototype.shiftLeft=f.prototype.shiftLeft=c.prototype.shiftLeft,c.prototype.shiftRight=function(e){var t,r=J(e).toJSNumber();if(!D(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var n=this;r>=B;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;n=(t=C(n,P))[1].isNegative()?t[0].prev():t[0],r-=B-1}return(t=C(n,k[r]))[1].isNegative()?t[0].prev():t[0]},l.prototype.shiftRight=f.prototype.shiftRight=c.prototype.shiftRight,c.prototype.not=function(){return this.negate().prev()},l.prototype.not=f.prototype.not=c.prototype.not,c.prototype.and=function(e){return j(this,e,(function(e,t){return e&t}))},l.prototype.and=f.prototype.and=c.prototype.and,c.prototype.or=function(e){return j(this,e,(function(e,t){return e|t}))},l.prototype.or=f.prototype.or=c.prototype.or,c.prototype.xor=function(e){return j(this,e,(function(e,t){return e^t}))},l.prototype.xor=f.prototype.xor=c.prototype.xor;var F=1<<30,U=(t&-t)*(t&-t)|F;function H(e){var r=e.value,n="number"==typeof r?r|F:"bigint"==typeof r?r|BigInt(F):r[0]+r[1]*t|U;return n&-n}function V(e,t){if(t.compareTo(e)<=0){var r=V(e,t.square(t)),n=r.p,o=r.e,a=n.multiply(t);return a.compareTo(e)<=0?{p:a,e:2*o+1}:{p:n,e:2*o}}return{p:i(1),e:0}}function z(e,t){return e=J(e),t=J(t),e.greater(t)?e:t}function q(e,t){return e=J(e),t=J(t),e.lesser(t)?e:t}function K(e,t){if(e=J(e).abs(),t=J(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var r,n,i=u[1];e.isEven()&&t.isEven();)r=q(H(e),H(t)),e=e.divide(r),t=t.divide(r),i=i.multiply(r);for(;e.isEven();)e=e.divide(H(e));do{for(;t.isEven();)t=t.divide(H(t));e.greater(t)&&(n=t,t=e,e=n),t=t.subtract(e)}while(!t.isZero());return i.isUnit()?e:e.multiply(i)}c.prototype.bitLength=function(){var e=this;return e.compareTo(i(0))<0&&(e=e.negate().subtract(i(1))),0===e.compareTo(i(0))?i(0):i(V(e,i(2)).e).add(i(1))},l.prototype.bitLength=f.prototype.bitLength=c.prototype.bitLength;var W=function(e,t,r,n){r=r||a,e=String(e),n||(e=e.toLowerCase(),r=r.toLowerCase());var i,o=e.length,s=Math.abs(t),u={};for(i=0;i<r.length;i++)u[r[i]]=i;for(i=0;i<o;i++)if("-"!==(l=e[i])&&l in u&&u[l]>=s){if("1"===l&&1===s)continue;throw new Error(l+" is not a valid digit in base "+t+".")}t=J(t);var c=[],f="-"===e[0];for(i=f?1:0;i<e.length;i++){var l;if((l=e[i])in u)c.push(J(u[l]));else{if("<"!==l)throw new Error(l+" is not a valid character");var d=i;do{i++}while(">"!==e[i]&&i<e.length);c.push(J(e.slice(d+1,i)))}}return G(c,t,f)};function G(e,t,r){var n,i=u[0],o=u[1];for(n=e.length-1;n>=0;n--)i=i.add(e[n].times(o)),o=o.times(t);return r?i.negate():i}function X(e,t){if((t=i(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var n=!1;if(e.isNegative()&&t.isPositive()&&(n=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n};for(var o,a=[],s=e;s.isNegative()||s.compareAbs(t)>=0;){o=s.divmod(t),s=o.quotient;var u=o.remainder;u.isNegative()&&(u=t.minus(u).abs(),s=s.next()),a.push(u.toJSNumber())}return a.push(s.toJSNumber()),{value:a.reverse(),isNegative:n}}function Y(e,t,r){var n=X(e,t);return(n.isNegative?"-":"")+n.value.map((function(e){return function(e,t){return e<(t=t||a).length?t[e]:"<"+e+">"}(e,r)})).join("")}function $(e){if(d(+e)){var t=+e;if(t===b(t))return s?new l(BigInt(t)):new f(t);throw new Error("Invalid integer: "+e)}var n="-"===e[0];n&&(e=e.slice(1));var i=e.split(/e/i);if(i.length>2)throw new Error("Invalid integer: "+i.join("e"));if(2===i.length){var o=i[1];if("+"===o[0]&&(o=o.slice(1)),(o=+o)!==b(o)||!d(o))throw new Error("Invalid integer: "+o+" is not a valid exponent.");var a=i[0],u=a.indexOf(".");if(u>=0&&(o-=a.length-u-1,a=a.slice(0,u)+a.slice(u+1)),o<0)throw new Error("Cannot include negative exponent part for integers");e=a+=new Array(o+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);if(s)return new l(BigInt(n?"-"+e:e));for(var h=[],p=e.length,g=r,m=p-g;p>0;)h.push(+e.slice(m,p)),(m-=g)<0&&(m=0),p-=g;return y(h),new c(h,n)}function J(e){return"number"==typeof e?function(e){if(s)return new l(BigInt(e));if(d(e)){if(e!==b(e))throw new Error(e+" is not an integer.");return new f(e)}return $(e.toString())}(e):"string"==typeof e?$(e):"bigint"==typeof e?new l(e):e}c.prototype.toArray=function(e){return X(this,e)},f.prototype.toArray=function(e){return X(this,e)},l.prototype.toArray=function(e){return X(this,e)},c.prototype.toString=function(t,r){if(t===e&&(t=10),10!==t)return Y(this,t,r);for(var n,i=this.value,o=i.length,a=String(i[--o]);--o>=0;)n=String(i[o]),a+="0000000".slice(n.length)+n;return(this.sign?"-":"")+a},f.prototype.toString=function(t,r){return t===e&&(t=10),10!=t?Y(this,t,r):String(this.value)},l.prototype.toString=f.prototype.toString,l.prototype.toJSON=c.prototype.toJSON=f.prototype.toJSON=function(){return this.toString()},c.prototype.valueOf=function(){return parseInt(this.toString(),10)},c.prototype.toJSNumber=c.prototype.valueOf,f.prototype.valueOf=function(){return this.value},f.prototype.toJSNumber=f.prototype.valueOf,l.prototype.valueOf=l.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var Z=0;Z<1e3;Z++)u[Z]=J(Z),Z>0&&(u[-Z]=J(-Z));return u.one=u[1],u.zero=u[0],u.minusOne=u[-1],u.max=z,u.min=q,u.gcd=K,u.lcm=function(e,t){return e=J(e).abs(),t=J(t).abs(),e.divide(K(e,t)).multiply(t)},u.isInstance=function(e){return e instanceof c||e instanceof f||e instanceof l},u.randBetween=function(e,r,n){e=J(e),r=J(r);var i=n||Math.random,o=q(e,r),a=z(e,r).subtract(o).add(1);if(a.isSmall)return o.add(Math.floor(i()*a));for(var s=X(a,t).value,c=[],f=!0,l=0;l<s.length;l++){var d=f?s[l]+(l+1<s.length?s[l+1]/t:0):t,h=b(i()*d);c.push(h),h<s[l]&&(f=!1)}return o.add(u.fromArray(c,t,!1))},u.fromArray=function(e,t,r){return G(e.map(J),J(t||10),r)},u}();e.hasOwnProperty("exports")&&(e.exports=i),void 0===(n=function(){return i}.call(t,r,t,e))||(e.exports=n)},83753:function(e,t,r){var n;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,u=Math.floor,c="[BigNumber Error] ",f=c+"Number primitive has more than 15 significant digits: ",l=1e14,d=14,h=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],y=1e7,g=1e9;function b(e){var t=0|e;return e>0||e===t?t:t-1}function m(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=d-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function v(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,u=e.e,c=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=u==c,!i||!o)return n?0:!i^r?1:-1;if(!n)return u>c^r?1:-1;for(s=(u=i.length)<(c=o.length)?u:c,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return u==c?0:u>c^r?1:-1}function w(e,t,r,n){if(e<t||e>r||e!==u(e))throw Error(c+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function _(e){var t=e.c.length-1;return b(e.e/d)==t&&e.c[t]%2!=0}function S(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function E(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}o=function e(t){var r,n,i,o,A,O,M,T,I,N,C=q.prototype={constructor:q,toString:null,valueOf:null},L=new q(1),x=20,R=4,k=-7,B=21,P=-1e7,D=1e7,j=!1,F=1,U=0,H={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},V="0123456789abcdefghijklmnopqrstuvwxyz",z=!0;function q(e,t){var r,o,s,c,l,p,y,g,b=this;if(!(b instanceof q))return new q(e,t);if(null==t){if(e&&!0===e._isBigNumber)return b.s=e.s,void(!e.c||e.e>D?b.c=b.e=null:e.e<P?b.c=[b.e=0]:(b.e=e.e,b.c=e.c.slice()));if((p="number"==typeof e)&&0*e==0){if(b.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,l=e;l>=10;l/=10,c++);return void(c>D?b.c=b.e=null:(b.e=c,b.c=[e]))}g=String(e)}else{if(!a.test(g=String(e)))return i(b,g,p);b.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(c=g.indexOf("."))>-1&&(g=g.replace(".","")),(l=g.search(/e/i))>0?(c<0&&(c=l),c+=+g.slice(l+1),g=g.substring(0,l)):c<0&&(c=g.length)}else{if(w(t,2,V.length,"Base"),10==t&&z)return X(b=new q(e),x+b.e+1,R);if(g=String(e),p="number"==typeof e){if(0*e!=0)return i(b,g,p,t);if(b.s=1/e<0?(g=g.slice(1),-1):1,q.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(f+e)}else b.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(r=V.slice(0,t),c=l=0,y=g.length;l<y;l++)if(r.indexOf(o=g.charAt(l))<0){if("."==o){if(l>c){c=y;continue}}else if(!s&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){s=!0,l=-1,c=0;continue}return i(b,String(e),p,t)}p=!1,(c=(g=n(g,t,10,b.s)).indexOf("."))>-1?g=g.replace(".",""):c=g.length}for(l=0;48===g.charCodeAt(l);l++);for(y=g.length;48===g.charCodeAt(--y););if(g=g.slice(l,++y)){if(y-=l,p&&q.DEBUG&&y>15&&(e>h||e!==u(e)))throw Error(f+b.s*e);if((c=c-l-1)>D)b.c=b.e=null;else if(c<P)b.c=[b.e=0];else{if(b.e=c,b.c=[],l=(c+1)%d,c<0&&(l+=d),l<y){for(l&&b.c.push(+g.slice(0,l)),y-=d;l<y;)b.c.push(+g.slice(l,l+=d));l=d-(g=g.slice(l)).length}else l-=y;for(;l--;g+="0");b.c.push(+g)}}else b.c=[b.e=0]}function K(e,t,r,n){var i,o,a,s,u;if(null==r?r=R:w(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)u=m(e.c),u=1==n||2==n&&(a<=k||a>=B)?S(u,a):E(u,a,"0");else if(o=(e=X(new q(e),t,r)).e,s=(u=m(e.c)).length,1==n||2==n&&(t<=o||o<=k)){for(;s<t;u+="0",s++);u=S(u,o)}else if(t-=a,u=E(u,o,"0"),o+1>s){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=o-s)>0)for(o+1==s&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function W(e,t){for(var r,n,i=1,o=new q(e[0]);i<e.length;i++)(!(n=new q(e[i])).s||(r=v(o,n))===t||0===r&&o.s===t)&&(o=n);return o}function G(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*d-1)>D?e.c=e.e=null:r<P?e.c=[e.e=0]:(e.e=r,e.c=t),e}function X(e,t,r,n){var i,o,a,c,f,h,y,g=e.c,b=p;if(g){e:{for(i=1,c=g[0];c>=10;c/=10,i++);if((o=t-i)<0)o+=d,a=t,f=g[h=0],y=u(f/b[i-a-1]%10);else if((h=s((o+1)/d))>=g.length){if(!n)break e;for(;g.length<=h;g.push(0));f=y=0,i=1,a=(o%=d)-d+1}else{for(f=c=g[h],i=1;c>=10;c/=10,i++);y=(a=(o%=d)-d+i)<0?0:u(f/b[i-a-1]%10)}if(n=n||t<0||null!=g[h+1]||(a<0?f:f%b[i-a-1]),n=r<4?(y||n)&&(0==r||r==(e.s<0?3:2)):y>5||5==y&&(4==r||n||6==r&&(o>0?a>0?f/b[i-a]:0:g[h-1])%10&1||r==(e.s<0?8:7)),t<1||!g[0])return g.length=0,n?(t-=e.e+1,g[0]=b[(d-t%d)%d],e.e=-t||0):g[0]=e.e=0,e;if(0==o?(g.length=h,c=1,h--):(g.length=h+1,c=b[d-o],g[h]=a>0?u(f/b[i-a]%b[a])*c:0),n)for(;;){if(0==h){for(o=1,a=g[0];a>=10;a/=10,o++);for(a=g[0]+=c,c=1;a>=10;a/=10,c++);o!=c&&(e.e++,g[0]==l&&(g[0]=1));break}if(g[h]+=c,g[h]!=l)break;g[h--]=0,c=1}for(o=g.length;0===g[--o];g.pop());}e.e>D?e.c=e.e=null:e.e<P&&(e.c=[e.e=0])}return e}function Y(e){var t,r=e.e;return null===r?e.toString():(t=m(e.c),t=r<=k||r>=B?S(t,r):E(t,r,"0"),e.s<0?"-"+t:t)}return q.clone=e,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(c+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(w(r=e[t],0,g,t),x=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(w(r=e[t],0,8,t),R=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(w(r[0],-g,0,t),w(r[1],0,g,t),k=r[0],B=r[1]):(w(r,-g,g,t),k=-(B=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)w(r[0],-g,-1,t),w(r[1],1,g,t),P=r[0],D=r[1];else{if(w(r,-g,g,t),!r)throw Error(c+t+" cannot be zero: "+r);P=-(D=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(c+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw j=!r,Error(c+"crypto unavailable");j=r}else j=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(w(r=e[t],0,9,t),F=r),e.hasOwnProperty(t="POW_PRECISION")&&(w(r=e[t],0,g,t),U=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(c+t+" not an object: "+r);H=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(c+t+" invalid: "+r);z="0123456789"==r.slice(0,10),V=r}}return{DECIMAL_PLACES:x,ROUNDING_MODE:R,EXPONENTIAL_AT:[k,B],RANGE:[P,D],CRYPTO:j,MODULO_MODE:F,POW_PRECISION:U,FORMAT:H,ALPHABET:V}},q.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!q.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===o||-1===o)&&i>=-g&&i<=g&&i===u(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%d)<1&&(t+=d),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=l||r!==u(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(c+"Invalid BigNumber: "+e)},q.maximum=q.max=function(){return W(arguments,-1)},q.minimum=q.min=function(){return W(arguments,1)},q.random=(o=9007199254740992,A=Math.random()*o&2097151?function(){return u(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,i,o,a=0,f=[],l=new q(L);if(null==e?e=x:w(e,0,g),i=s(e/d),j)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));a<i;)(o=131072*t[a]+(t[a+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[a]=r[0],t[a+1]=r[1]):(f.push(o%1e14),a+=2);a=i/2}else{if(!crypto.randomBytes)throw j=!1,Error(c+"crypto unavailable");for(t=crypto.randomBytes(i*=7);a<i;)(o=281474976710656*(31&t[a])+1099511627776*t[a+1]+4294967296*t[a+2]+16777216*t[a+3]+(t[a+4]<<16)+(t[a+5]<<8)+t[a+6])>=9e15?crypto.randomBytes(7).copy(t,a):(f.push(o%1e14),a+=7);a=i/7}if(!j)for(;a<i;)(o=A())<9e15&&(f[a++]=o%1e14);for(i=f[--a],e%=d,i&&e&&(o=p[d-e],f[a]=u(i/o)*o);0===f[a];f.pop(),a--);if(a<0)f=[n=0];else{for(n=-1;0===f[0];f.splice(0,1),n-=d);for(a=1,o=f[0];o>=10;o/=10,a++);a<d&&(n-=d-a)}return l.e=n,l.c=f,l}),q.sum=function(){for(var e=1,t=arguments,r=new q(t[0]);e<t.length;)r=r.plus(t[e++]);return r},n=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,u=e.length;s<u;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(n,i,o,a,s){var u,c,f,l,d,h,p,y,g=n.indexOf("."),b=x,v=R;for(g>=0&&(l=U,U=0,n=n.replace(".",""),h=(y=new q(i)).pow(n.length-g),U=l,y.c=t(E(m(h.c),h.e,"0"),10,o,e),y.e=y.c.length),f=l=(p=t(n,i,o,s?(u=V,e):(u=e,V))).length;0==p[--l];p.pop());if(!p[0])return u.charAt(0);if(g<0?--f:(h.c=p,h.e=f,h.s=a,p=(h=r(h,y,b,v,o)).c,d=h.r,f=h.e),g=p[c=f+b+1],l=o/2,d=d||c<0||null!=p[c+1],d=v<4?(null!=g||d)&&(0==v||v==(h.s<0?3:2)):g>l||g==l&&(4==v||d||6==v&&1&p[c-1]||v==(h.s<0?8:7)),c<1||!p[0])n=d?E(u.charAt(1),-b,u.charAt(0)):u.charAt(0);else{if(p.length=c,d)for(--o;++p[--c]>o;)p[c]=0,c||(++f,p=[1].concat(p));for(l=p.length;!p[--l];);for(g=0,n="";g<=l;n+=u.charAt(p[g++]));n=E(n,f,u.charAt(0))}return n}}(),r=function(){function e(e,t,r){var n,i,o,a,s=0,u=e.length,c=t%y,f=t/y|0;for(e=e.slice();u--;)s=((i=c*(o=e[u]%y)+(n=f*o+(a=e[u]/y|0)*c)%y*y+s)/r|0)+(n/y|0)+f*a,e[u]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var c,f,h,p,y,g,m,v,w,_,S,E,A,O,M,T,I,N=n.s==i.s?1:-1,C=n.c,L=i.c;if(!(C&&C[0]&&L&&L[0]))return new q(n.s&&i.s&&(C?!L||C[0]!=L[0]:L)?C&&0==C[0]||!L?0*N:N/0:NaN);for(w=(v=new q(N)).c=[],N=o+(f=n.e-i.e)+1,s||(s=l,f=b(n.e/d)-b(i.e/d),N=N/d|0),h=0;L[h]==(C[h]||0);h++);if(L[h]>(C[h]||0)&&f--,N<0)w.push(1),p=!0;else{for(O=C.length,T=L.length,h=0,N+=2,(y=u(s/(L[0]+1)))>1&&(L=e(L,y,s),C=e(C,y,s),T=L.length,O=C.length),A=T,S=(_=C.slice(0,T)).length;S<T;_[S++]=0);I=L.slice(),I=[0].concat(I),M=L[0],L[1]>=s/2&&M++;do{if(y=0,(c=t(L,_,T,S))<0){if(E=_[0],T!=S&&(E=E*s+(_[1]||0)),(y=u(E/M))>1)for(y>=s&&(y=s-1),m=(g=e(L,y,s)).length,S=_.length;1==t(g,_,m,S);)y--,r(g,T<m?I:L,m,s),m=g.length,c=1;else 0==y&&(c=y=1),m=(g=L.slice()).length;if(m<S&&(g=[0].concat(g)),r(_,g,S,s),S=_.length,-1==c)for(;t(L,_,T,S)<1;)y++,r(_,T<S?I:L,S,s),S=_.length}else 0===c&&(y++,_=[0]);w[h++]=y,_[0]?_[S++]=C[A]||0:(_=[C[A]],S=1)}while((A++<O||null!=_[0])&&N--);p=null!=_[0],w[0]||w.splice(0,1)}if(s==l){for(h=1,N=w[0];N>=10;N/=10,h++);X(v,o+(v.e=h+f*d-1)+1,a,p)}else v.e=f,v.r=+p;return v}}(),O=/^(-?)0([xbo])(?=\w[\w.]*$)/i,M=/^([^.]+)\.$/,T=/^\.([^.]+)$/,I=/^-?(Infinity|NaN)$/,N=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(e,t,r,n){var i,o=r?t:t.replace(N,"");if(I.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(O,(function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t})),n&&(i=n,o=o.replace(M,"$1").replace(T,"0.$1")),t!=o))return new q(o,i);if(q.DEBUG)throw Error(c+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},C.absoluteValue=C.abs=function(){var e=new q(this);return e.s<0&&(e.s=1),e},C.comparedTo=function(e,t){return v(this,new q(e,t))},C.decimalPlaces=C.dp=function(e,t){var r,n,i,o=this;if(null!=e)return w(e,0,g),null==t?t=R:w(t,0,8),X(new q(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-b(this.e/d))*d,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},C.dividedBy=C.div=function(e,t){return r(this,new q(e,t),x,R)},C.dividedToIntegerBy=C.idiv=function(e,t){return r(this,new q(e,t),0,1)},C.exponentiatedBy=C.pow=function(e,t){var r,n,i,o,a,f,l,h,p=this;if((e=new q(e)).c&&!e.isInteger())throw Error(c+"Exponent not an integer: "+Y(e));if(null!=t&&(t=new q(t)),a=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new q(Math.pow(+Y(p),a?e.s*(2-_(e)):+Y(e))),t?h.mod(t):h;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new q(NaN);(n=!f&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||a&&p.c[1]>=24e7:p.c[0]<8e13||a&&p.c[0]<=9999975e7)))return o=p.s<0&&_(e)?-0:0,p.e>-1&&(o=1/o),new q(f?1/o:o);U&&(o=s(U/d+2))}for(a?(r=new q(.5),f&&(e.s=1),l=_(e)):l=(i=Math.abs(+Y(e)))%2,h=new q(L);;){if(l){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):n&&(h=h.mod(t))}if(i){if(0===(i=u(i/2)))break;l=i%2}else if(X(e=e.times(r),e.e+1,1),e.e>14)l=_(e);else{if(0==(i=+Y(e)))break;l=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?h:(f&&(h=L.div(h)),t?h.mod(t):o?X(h,U,R,void 0):h)},C.integerValue=function(e){var t=new q(this);return null==e?e=R:w(e,0,8),X(t,t.e+1,e)},C.isEqualTo=C.eq=function(e,t){return 0===v(this,new q(e,t))},C.isFinite=function(){return!!this.c},C.isGreaterThan=C.gt=function(e,t){return v(this,new q(e,t))>0},C.isGreaterThanOrEqualTo=C.gte=function(e,t){return 1===(t=v(this,new q(e,t)))||0===t},C.isInteger=function(){return!!this.c&&b(this.e/d)>this.c.length-2},C.isLessThan=C.lt=function(e,t){return v(this,new q(e,t))<0},C.isLessThanOrEqualTo=C.lte=function(e,t){return-1===(t=v(this,new q(e,t)))||0===t},C.isNaN=function(){return!this.s},C.isNegative=function(){return this.s<0},C.isPositive=function(){return this.s>0},C.isZero=function(){return!!this.c&&0==this.c[0]},C.minus=function(e,t){var r,n,i,o,a=this,s=a.s;if(t=(e=new q(e,t)).s,!s||!t)return new q(NaN);if(s!=t)return e.s=-t,a.plus(e);var u=a.e/d,c=e.e/d,f=a.c,h=e.c;if(!u||!c){if(!f||!h)return f?(e.s=-t,e):new q(h?a:NaN);if(!f[0]||!h[0])return h[0]?(e.s=-t,e):new q(f[0]?a:3==R?-0:0)}if(u=b(u),c=b(c),f=f.slice(),s=u-c){for((o=s<0)?(s=-s,i=f):(c=u,i=h),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(o=(s=f.length)<(t=h.length))?s:t,s=t=0;t<n;t++)if(f[t]!=h[t]){o=f[t]<h[t];break}if(o&&(i=f,f=h,h=i,e.s=-e.s),(t=(n=h.length)-(r=f.length))>0)for(;t--;f[r++]=0);for(t=l-1;n>s;){if(f[--n]<h[n]){for(r=n;r&&!f[--r];f[r]=t);--f[r],f[n]+=l}f[n]-=h[n]}for(;0==f[0];f.splice(0,1),--c);return f[0]?G(e,f,c):(e.s=3==R?-1:1,e.c=[e.e=0],e)},C.modulo=C.mod=function(e,t){var n,i,o=this;return e=new q(e,t),!o.c||!e.s||e.c&&!e.c[0]?new q(NaN):!e.c||o.c&&!o.c[0]?new q(o):(9==F?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,F),(e=o.minus(n.times(e))).c[0]||1!=F||(e.s=o.s),e)},C.multipliedBy=C.times=function(e,t){var r,n,i,o,a,s,u,c,f,h,p,g,m,v,w,_=this,S=_.c,E=(e=new q(e,t)).c;if(!(S&&E&&S[0]&&E[0]))return!_.s||!e.s||S&&!S[0]&&!E||E&&!E[0]&&!S?e.c=e.e=e.s=null:(e.s*=_.s,S&&E?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=b(_.e/d)+b(e.e/d),e.s*=_.s,(u=S.length)<(h=E.length)&&(m=S,S=E,E=m,i=u,u=h,h=i),i=u+h,m=[];i--;m.push(0));for(v=l,w=y,i=h;--i>=0;){for(r=0,p=E[i]%w,g=E[i]/w|0,o=i+(a=u);o>i;)r=((c=p*(c=S[--a]%w)+(s=g*c+(f=S[a]/w|0)*p)%w*w+m[o]+r)/v|0)+(s/w|0)+g*f,m[o--]=c%v;m[o]=r}return r?++n:m.splice(0,1),G(e,m,n)},C.negated=function(){var e=new q(this);return e.s=-e.s||null,e},C.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new q(e,t)).s,!i||!t)return new q(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/d,a=e.e/d,s=n.c,u=e.c;if(!o||!a){if(!s||!u)return new q(i/0);if(!s[0]||!u[0])return u[0]?e:new q(s[0]?n:0*i)}if(o=b(o),a=b(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=u):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=u.length)<0&&(r=u,u=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+u[t]+i)/l|0,s[t]=l===s[t]?0:s[t]%l;return i&&(s=[i].concat(s),++a),G(e,s,a)},C.precision=C.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return w(e,1,g),null==t?t=R:w(t,0,8),X(new q(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*d+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},C.shiftedBy=function(e){return w(e,-9007199254740991,h),this.times("1e"+e)},C.squareRoot=C.sqrt=function(){var e,t,n,i,o,a=this,s=a.c,u=a.s,c=a.e,f=x+4,l=new q("0.5");if(1!==u||!s||!s[0])return new q(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(u=Math.sqrt(+Y(a)))||u==1/0?(((t=m(s)).length+c)%2==0&&(t+="0"),u=Math.sqrt(+t),c=b((c+1)/2)-(c<0||c%2),n=new q(t=u==1/0?"5e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new q(u+""),n.c[0])for((u=(c=n.e)+f)<3&&(u=0);;)if(o=n,n=l.times(o.plus(r(a,o,f,1))),m(o.c).slice(0,u)===(t=m(n.c)).slice(0,u)){if(n.e<c&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(X(n,n.e+x+2,1),e=!n.times(n).eq(a));break}if(!i&&(X(o,o.e+x+2,0),o.times(o).eq(a))){n=o;break}f+=4,u+=4,i=1}return X(n,n.e+x+1,R,e)},C.toExponential=function(e,t){return null!=e&&(w(e,0,g),e++),K(this,e,t,1)},C.toFixed=function(e,t){return null!=e&&(w(e,0,g),e=e+this.e+1),K(this,e,t)},C.toFormat=function(e,t,r){var n,i=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=H;else if("object"!=typeof r)throw Error(c+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var o,a=n.split("."),s=+r.groupSize,u=+r.secondaryGroupSize,f=r.groupSeparator||"",l=a[0],d=a[1],h=i.s<0,p=h?l.slice(1):l,y=p.length;if(u&&(o=s,s=u,u=o,y-=o),s>0&&y>0){for(o=y%s||s,l=p.substr(0,o);o<y;o+=s)l+=f+p.substr(o,s);u>0&&(l+=f+p.slice(o)),h&&(l="-"+l)}n=d?l+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?d.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):l}return(r.prefix||"")+n+(r.suffix||"")},C.toFraction=function(e){var t,n,i,o,a,s,u,f,l,h,y,g,b=this,v=b.c;if(null!=e&&(!(u=new q(e)).isInteger()&&(u.c||1!==u.s)||u.lt(L)))throw Error(c+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+Y(u));if(!v)return new q(b);for(t=new q(L),l=n=new q(L),i=f=new q(L),g=m(v),a=t.e=g.length-b.e-1,t.c[0]=p[(s=a%d)<0?d+s:s],e=!e||u.comparedTo(t)>0?a>0?t:l:u,s=D,D=1/0,u=new q(g),f.c[0]=0;h=r(u,t,0,1),1!=(o=n.plus(h.times(i))).comparedTo(e);)n=i,i=o,l=f.plus(h.times(o=l)),f=o,t=u.minus(h.times(o=t)),u=o;return o=r(e.minus(n),i,0,1),f=f.plus(o.times(l)),n=n.plus(o.times(i)),f.s=l.s=b.s,y=r(l,i,a*=2,R).minus(b).abs().comparedTo(r(f,n,a,R).minus(b).abs())<1?[l,i]:[f,n],D=s,y},C.toNumber=function(){return+Y(this)},C.toPrecision=function(e,t){return null!=e&&w(e,1,g),K(this,e,t,2)},C.toString=function(e){var t,r=this,i=r.s,o=r.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=k||o>=B?S(m(r.c),o):E(m(r.c),o,"0"):10===e&&z?t=E(m((r=X(new q(r),x+o+1,R)).c),r.e,"0"):(w(e,2,V.length,"Base"),t=n(E(m(r.c),o,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},C.valueOf=C.toJSON=function(){return Y(this)},C._isBigNumber=!0,null!=t&&q.set(t),q}(),o.default=o.BigNumber=o,void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},47932:(e,t,r)=>{"use strict";var n=r(18390).Buffer;Object.defineProperty(t,"__esModule",{value:!0});const i=r(68482),o=r(84948),a=r(41058),s=r(22420),u=r(71150),c=s.BufferN(32),f=s.compile({wif:s.UInt8,bip32:{public:s.UInt32,private:s.UInt32}}),l={messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},d=2147483648,h=Math.pow(2,31)-1;function p(e){return s.String(e)&&null!==e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function y(e){return s.UInt32(e)&&e<=h}class g{constructor(e,t,r,n,i=0,o=0,a=0){this.__D=e,this.__Q=t,this.chainCode=r,this.network=n,this.__DEPTH=i,this.__INDEX=o,this.__PARENT_FINGERPRINT=a,s(f,n),this.lowR=!1}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){return void 0===this.__Q&&(this.__Q=a.pointFromScalar(this.__D,!0)),this.__Q}get privateKey(){return this.__D}get identifier(){return i.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}get compressed(){return!0}isNeutered(){return void 0===this.__D}neutered(){return v(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){const e=this.network,t=this.isNeutered()?e.bip32.public:e.bip32.private,r=n.allocUnsafe(78);return r.writeUInt32BE(t,0),r.writeUInt8(this.depth,4),r.writeUInt32BE(this.parentFingerprint,5),r.writeUInt32BE(this.index,9),this.chainCode.copy(r,13),this.isNeutered()?this.publicKey.copy(r,45):(r.writeUInt8(0,45),this.privateKey.copy(r,46)),o.encode(r)}toWIF(){if(!this.privateKey)throw new TypeError("Missing private key");return u.encode(this.network.wif,this.privateKey,!0)}derive(e){s(s.UInt32,e);const t=e>=d,r=n.allocUnsafe(37);if(t){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");r[0]=0,this.privateKey.copy(r,1),r.writeUInt32BE(e,33)}else this.publicKey.copy(r,0),r.writeUInt32BE(e,33);const o=i.hmacSHA512(this.chainCode,r),u=o.slice(0,32),c=o.slice(32);if(!a.isPrivate(u))return this.derive(e+1);let f;if(this.isNeutered()){const t=a.pointAddScalar(this.publicKey,u,!0);if(null===t)return this.derive(e+1);f=v(t,c,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}else{const t=a.privateAdd(this.privateKey,u);if(null==t)return this.derive(e+1);f=m(t,c,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}return f}deriveHardened(e){return s(y,e),this.derive(e+d)}derivePath(e){s(p,e);let t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new TypeError("Expected master, got child");t=t.slice(1)}return t.reduce(((e,t)=>{let r;return"'"===t.slice(-1)?(r=parseInt(t.slice(0,-1),10),e.deriveHardened(r)):(r=parseInt(t,10),e.derive(r))}),this)}sign(e,t){if(!this.privateKey)throw new Error("Missing private key");if(void 0===t&&(t=this.lowR),!1===t)return a.sign(e,this.privateKey);{let t=a.sign(e,this.privateKey);const r=n.alloc(32,0);let i=0;for(;t[0]>127;)i++,r.writeUIntLE(i,0,6),t=a.signWithEntropy(e,this.privateKey,r);return t}}verify(e,t){return a.verify(e,this.publicKey,t)}}function b(e,t,r){return m(e,t,r)}function m(e,t,r,n,i,o){if(s({privateKey:c,chainCode:c},{privateKey:e,chainCode:t}),r=r||l,!a.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return new g(e,void 0,t,r,n,i,o)}function v(e,t,r,n,i,o){if(s({publicKey:s.BufferN(33),chainCode:c},{publicKey:e,chainCode:t}),r=r||l,!a.isPoint(e))throw new TypeError("Point is not on the curve");return new g(void 0,e,t,r,n,i,o)}t.fromBase58=function(e,t){const r=o.decode(e);if(78!==r.length)throw new TypeError("Invalid buffer length");t=t||l;const n=r.readUInt32BE(0);if(n!==t.bip32.private&&n!==t.bip32.public)throw new TypeError("Invalid network version");const i=r[4],a=r.readUInt32BE(5);if(0===i&&0!==a)throw new TypeError("Invalid parent fingerprint");const s=r.readUInt32BE(9);if(0===i&&0!==s)throw new TypeError("Invalid index");const u=r.slice(13,45);let c;if(n===t.bip32.private){if(0!==r.readUInt8(45))throw new TypeError("Invalid private key");c=m(r.slice(46,78),u,t,i,s,a)}else c=v(r.slice(45,78),u,t,i,s,a);return c},t.fromPrivateKey=b,t.fromPublicKey=function(e,t,r){return v(e,t,r)},t.fromSeed=function(e,t){if(s(s.Buffer,e),e.length<16)throw new TypeError("Seed should be at least 128 bits");if(e.length>64)throw new TypeError("Seed should be at most 512 bits");t=t||l;const r=i.hmacSHA512(n.from("Bitcoin seed","utf8"),e);return b(r.slice(0,32),r.slice(32),t)}},68482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(50637),i=r(18451);t.hash160=function(e){const t=n("sha256").update(e).digest();try{return n("rmd160").update(t).digest()}catch(e){return n("ripemd160").update(t).digest()}},t.hmacSHA512=function(e,t){return i("sha512",e).update(t).digest()}},84973:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(47932);t.fromSeed=n.fromSeed,t.fromBase58=n.fromBase58,t.fromPublicKey=n.fromPublicKey,t.fromPrivateKey=n.fromPrivateKey},7042:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={};let i;t.wordlists=n,t._default=i;try{t._default=i=r(Object(function(){var e=new Error("Cannot find module './wordlists/czech.json'");throw e.code="MODULE_NOT_FOUND",e}())),n.czech=i}catch(e){}try{t._default=i=r(Object(function(){var e=new Error("Cannot find module './wordlists/chinese_simplified.json'");throw e.code="MODULE_NOT_FOUND",e}())),n.chinese_simplified=i}catch(e){}try{t._default=i=r(Object(function(){var e=new Error("Cannot find module './wordlists/chinese_traditional.json'");throw e.code="MODULE_NOT_FOUND",e}())),n.chinese_traditional=i}catch(e){}try{t._default=i=r(Object(function(){var e=new Error("Cannot find module './wordlists/korean.json'");throw e.code="MODULE_NOT_FOUND",e}())),n.korean=i}catch(e){}try{t._default=i=r(Object(function(){var e=new Error("Cannot find module './wordlists/french.json'");throw e.code="MODULE_NOT_FOUND",e}())),n.french=i}catch(e){}try{t._default=i=r(Object(function(){var e=new Error("Cannot find module './wordlists/italian.json'");throw e.code="MODULE_NOT_FOUND",e}())),n.italian=i}catch(e){}try{t._default=i=r(Object(function(){var e=new Error("Cannot find module './wordlists/spanish.json'");throw e.code="MODULE_NOT_FOUND",e}())),n.spanish=i}catch(e){}try{t._default=i=r(Object(function(){var e=new Error("Cannot find module './wordlists/japanese.json'");throw e.code="MODULE_NOT_FOUND",e}())),n.japanese=i,n.JA=i}catch(e){}try{t._default=i=r(Object(function(){var e=new Error("Cannot find module './wordlists/portuguese.json'");throw e.code="MODULE_NOT_FOUND",e}())),n.portuguese=i}catch(e){}try{t._default=i=r(32308),n.english=i,n.EN=i}catch(e){}},63399:(e,t,r)=>{"use strict";var n=r(18390).Buffer;Object.defineProperty(t,"__esModule",{value:!0});const i=r(37789),o=r(94391),a=r(35e3),s=r(56266),u=r(7042);let c=u._default;const f="Invalid mnemonic",l="Invalid entropy",d="A wordlist is required but a default could not be found.\nPlease pass a 2048 word array explicitly.";function h(e){return(e||"").normalize("NFKD")}function p(e,t,r){for(;e.length<r;)e=t+e;return e}function y(e){return parseInt(e,2)}function g(e){return e.map((e=>p(e.toString(2),"0",8))).join("")}function b(e){const t=8*e.length/32,r=i.sha256(Uint8Array.from(e));return g(Array.from(r)).slice(0,t)}function m(e){return"mnemonic"+(e||"")}function v(e,t){if(!(t=t||c))throw new Error(d);const r=h(e).split(" ");if(r.length%3!=0)throw new Error(f);const i=r.map((e=>{const r=t.indexOf(e);if(-1===r)throw new Error(f);return p(r.toString(2),"0",11)})).join(""),o=32*Math.floor(i.length/33),a=i.slice(0,o),s=i.slice(o),u=a.match(/(.{1,8})/g).map(y);if(u.length<16)throw new Error(l);if(u.length>32)throw new Error(l);if(u.length%4!=0)throw new Error(l);const g=n.from(u);if(b(g)!==s)throw new Error("Invalid mnemonic checksum");return g.toString("hex")}function w(e,t){if(n.isBuffer(e)||(e=n.from(e,"hex")),!(t=t||c))throw new Error(d);if(e.length<16)throw new TypeError(l);if(e.length>32)throw new TypeError(l);if(e.length%4!=0)throw new TypeError(l);const r=(g(Array.from(e))+b(e)).match(/(.{1,11})/g).map((e=>{const r=y(e);return t[r]}));return"あいこくしん"===t[0]?r.join(" "):r.join(" ")}t.mnemonicToSeedSync=function(e,t){const r=Uint8Array.from(n.from(h(e),"utf8")),i=Uint8Array.from(n.from(m(h(t)),"utf8")),s=a.pbkdf2(o.sha512,r,i,{c:2048,dkLen:64});return n.from(s)},t.mnemonicToSeed=function(e,t){const r=Uint8Array.from(n.from(h(e),"utf8")),i=Uint8Array.from(n.from(m(h(t)),"utf8"));return a.pbkdf2Async(o.sha512,r,i,{c:2048,dkLen:64}).then((e=>n.from(e)))},t.mnemonicToEntropy=v,t.entropyToMnemonic=w,t.generateMnemonic=function(e,t,r){if((e=e||128)%32!=0)throw new TypeError(l);return w((t=t||(e=>n.from(s.randomBytes(e))))(e/8),r)},t.validateMnemonic=function(e,t){try{v(e,t)}catch(e){return!1}return!0},t.setDefaultWordlist=function(e){const t=u.wordlists[e];if(!t)throw new Error('Could not find wordlist for language "'+e+'"');c=t},t.getDefaultWordlist=function(){if(!c)throw new Error("No Default Wordlist set");return Object.keys(u.wordlists).filter((e=>"JA"!==e&&"EN"!==e&&u.wordlists[e].every(((e,t)=>e===c[t]))))[0]};var _=r(7042);t.wordlists=_.wordlists},69999:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(33196).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function u(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u<s;u++){var c=e.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<i,"Invalid character"),o+=a}return o}function f(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=c(e,f,f+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var l=1;for(u=c(e,f,e.length,t),f=0;f<a;f++)l*=t;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){f(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,l=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[h])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],f=p[e];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var y=l.modrn(f).toString(e);r=(l=l.idivn(f)).isZero()?y+r:d[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,f=0|a[0],l=8191&f,d=f>>>13,h=0|a[1],p=8191&h,y=h>>>13,g=0|a[2],b=8191&g,m=g>>>13,v=0|a[3],w=8191&v,_=v>>>13,S=0|a[4],E=8191&S,A=S>>>13,O=0|a[5],M=8191&O,T=O>>>13,I=0|a[6],N=8191&I,C=I>>>13,L=0|a[7],x=8191&L,R=L>>>13,k=0|a[8],B=8191&k,P=k>>>13,D=0|a[9],j=8191&D,F=D>>>13,U=0|s[0],H=8191&U,V=U>>>13,z=0|s[1],q=8191&z,K=z>>>13,W=0|s[2],G=8191&W,X=W>>>13,Y=0|s[3],$=8191&Y,J=Y>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,fe=0|s[8],le=8191&fe,de=fe>>>13,he=0|s[9],pe=8191&he,ye=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(c+(n=Math.imul(l,H))|0)+((8191&(i=(i=Math.imul(l,V))+Math.imul(d,H)|0))<<13)|0;c=((o=Math.imul(d,V))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,H),i=(i=Math.imul(p,V))+Math.imul(y,H)|0,o=Math.imul(y,V);var be=(c+(n=n+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,H),i=(i=Math.imul(b,V))+Math.imul(m,H)|0,o=Math.imul(m,V),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,K)|0;var me=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,X)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(w,H),i=(i=Math.imul(w,V))+Math.imul(_,H)|0,o=Math.imul(_,V),n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,X)|0;var ve=(c+(n=n+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,J)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,H),i=(i=Math.imul(E,V))+Math.imul(A,H)|0,o=Math.imul(A,V),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,J)|0;var we=(c+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(M,H),i=(i=Math.imul(M,V))+Math.imul(T,H)|0,o=Math.imul(T,V),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,ee)|0;var _e=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(d,re)|0))<<13)|0;c=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(N,H),i=(i=Math.imul(N,V))+Math.imul(C,H)|0,o=Math.imul(C,V),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,K)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0;var Se=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(x,H),i=(i=Math.imul(x,V))+Math.imul(R,H)|0,o=Math.imul(R,V),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(b,re)|0,i=(i=i+Math.imul(b,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,V))+Math.imul(P,H)|0,o=Math.imul(P,V),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,X)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Ae=(c+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,de)|0)+Math.imul(d,le)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,H),i=(i=Math.imul(j,V))+Math.imul(F,H)|0,o=Math.imul(F,V),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(P,q)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(b,ue)|0,i=(i=i+Math.imul(b,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,de)|0;var Oe=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ye)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,ye)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,K))+Math.imul(F,q)|0,o=Math.imul(F,K),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(b,le)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,de)|0;var Me=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ye)|0)+Math.imul(y,pe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,X))+Math.imul(F,G)|0,o=Math.imul(F,X),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,n=n+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,de)|0;var Te=(c+(n=n+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,ye)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,ye)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,J))+Math.imul(F,$)|0,o=Math.imul(F,J),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(T,ue)|0,o=o+Math.imul(T,ce)|0,n=n+Math.imul(E,le)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(A,le)|0,o=o+Math.imul(A,de)|0;var Ie=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,ee))+Math.imul(F,Q)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(T,le)|0,o=o+Math.imul(T,de)|0;var Ne=(c+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,ye)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,ce)|0,n=n+Math.imul(N,le)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,de)|0;var Ce=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,ye)|0)+Math.imul(T,pe)|0))<<13)|0;c=((o=o+Math.imul(T,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ue)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(x,le)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(R,le)|0,o=o+Math.imul(R,de)|0;var Le=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,ye)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(j,ue),i=(i=Math.imul(j,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(B,le)|0,i=(i=i+Math.imul(B,de)|0)+Math.imul(P,le)|0,o=o+Math.imul(P,de)|0;var xe=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(R,pe)|0))<<13)|0;c=((o=o+Math.imul(R,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,le),i=(i=Math.imul(j,de))+Math.imul(F,le)|0,o=Math.imul(F,de);var Re=(c+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ye)|0)+Math.imul(P,pe)|0))<<13)|0;c=((o=o+Math.imul(P,ye)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var ke=(c+(n=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,ye))+Math.imul(F,pe)|0))<<13)|0;return c=((o=Math.imul(F,ye))+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,u[0]=ge,u[1]=be,u[2]=me,u[3]=ve,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=Ae,u[9]=Oe,u[10]=Me,u[11]=Te,u[12]=Ie,u[13]=Ne,u[14]=Ce,u[15]=Le,u[16]=xe,u[17]=Re,u[18]=ke,0!==c&&(u[19]=c,r.length++),r};function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var f=o-c,l=(0|e.words[f])*(0|t.words[c]),d=67108863&l;s=67108863&(d=d+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function m(e,t,r){return b(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(g=y),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?y(this,e,t):r<1024?b(this,e,t):m(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},v.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},v.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,d=c,h=0;h<a;h++){var p=r[f+h],y=n[f+h],g=r[f+h+a],b=n[f+h+a],m=l*g-d*b;b=l*b+d*g,g=m,r[f+h]=p+g,n[f+h]=y+b,r[f+h+a]=p-g,n[f+h+a]=y-b,h!==s&&(m=u*l-c*d,d=u*d+c*l,l=m)}},v.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},v.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},v.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},v.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},v.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},v.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),l=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,l,n,i);for(var h=0;h<n;h++){var p=s[h]*f[h]-u[h]*l[h];u[h]=s[h]*l[h]+u[h]*f[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),m(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var l=0|this.words[c];this.words[c]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var l=u-1;l>=0;l--){var d=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,l);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=d)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),l=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0==(t.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var l=0,d=1;0==(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(r.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new M(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function O(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(S,_),S.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(E,_),i(A,_),i(O,_),O.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new S;else if("p224"===e)t=new E;else if("p192"===e)t=new A;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new O}return w[e]=t,t},M.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var l=this.pow(f,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var y=h,g=0;0!==y.cmp(s);g++)y=y.redSqr();n(g<p);var b=this.pow(l,new o(1).iushln(p-g-1));d=d.redMul(b),l=b.redSqr(),h=h.redMul(l),p=g}return d},M.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},M.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],f=u-1;f>=0;f--){var l=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,(4==++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new T(e)},i(T,M),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},72486:(e,t,r)=>{var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(38087);if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},4692:(e,t,r)=>{var n=r(59105).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(;0<e.length;e++)e[0]=0}function a(e,t,r,n,i){for(var o,a,s,u,c=r[0],f=r[1],l=r[2],d=r[3],h=e[0]^t[0],p=e[1]^t[1],y=e[2]^t[2],g=e[3]^t[3],b=4,m=1;m<i;m++)o=c[h>>>24]^f[p>>>16&255]^l[y>>>8&255]^d[255&g]^t[b++],a=c[p>>>24]^f[y>>>16&255]^l[g>>>8&255]^d[255&h]^t[b++],s=c[y>>>24]^f[g>>>16&255]^l[h>>>8&255]^d[255&p]^t[b++],u=c[g>>>24]^f[h>>>16&255]^l[p>>>8&255]^d[255&y]^t[b++],h=o,p=a,y=s,g=u;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[y>>>8&255]<<8|n[255&g])^t[b++],a=(n[p>>>24]<<24|n[y>>>16&255]<<16|n[g>>>8&255]<<8|n[255&h])^t[b++],s=(n[y>>>24]<<24|n[g>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[b++],u=(n[g>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&y])^t[b++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var f=e[a],l=e[f],d=e[l],h=257*e[c]^16843008*c;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*d^65537*l^257*f^16843008*a,o[0][c]=h<<24|h>>>8,o[1][c]=h<<16|h>>>16,o[2][c]=h<<8|h>>>24,o[3][c]=h,0===a?a=s=1:(a=f^e[e[e[d^f]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var c=[],f=0;f<n;f++){var l=n-f,d=i[l-(f%4?0:4)];c[f]=f<4||l<=4?d:u.INV_SUB_MIX[0][u.SBOX[d>>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},16843:(e,t,r)=>{var n=r(4692),i=r(59105).Buffer,o=r(95108),a=r(19105),s=r(87215),u=r(23698),c=r(23536);function f(e,t,r,a){o.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(t);var f=this._cipher.encryptBlock(u);this._ghash=new s(f),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var u=8*o,f=i.alloc(8);f.writeUIntBE(u,0,8),n.update(f),e._finID=n.state;var l=i.from(e._finID);return c(l),l}(this,r,f),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(f,o),f.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},f.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=f},43773:(e,t,r)=>{var n=r(25527),i=r(16122),o=r(49234);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},16122:(e,t,r)=>{var n=r(16843),i=r(59105).Buffer,o=r(60569),a=r(15476),s=r(95108),u=r(4692),c=r(94428);function f(e,t,r){s.call(this),this._cache=new l,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function l(){this.cache=i.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new f(s.module,t,r)}r(19105)(f,s),f.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=i.concat([this.cache,e])},l.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return d(e,n.key,n.iv)},t.createDecipheriv=d},25527:(e,t,r)=>{var n=r(60569),i=r(16843),o=r(59105).Buffer,a=r(15476),s=r(95108),u=r(4692),c=r(94428);function f(e,t,r){s.call(this),this._cache=new d,this._cipher=new u.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(19105)(f,s),f.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var l=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new f(s.module,t,r)}f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=c(t,!1,r.key,r.iv);return h(e,i.key,i.iv)}},87215:(e,t,r)=>{var n=r(59105).Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!=(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},23536:e=>{e.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},73846:(e,t,r)=>{var n=r(23698);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},71662:(e,t,r)=>{var n=r(59105).Buffer,i=r(23698);function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){a=n.concat([a,o(e,t,r)]);break}i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i)}return a}},7778:(e,t,r)=>{var n=r(59105).Buffer;function i(e,t,r){for(var n,i,a=-1,s=0;++a<8;)n=t&1<<7-a?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},69828:(e,t,r)=>{var n=r(59105).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},14855:(e,t,r)=>{var n=r(23698),i=r(59105).Buffer,o=r(23536);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var s=0;s<r;s++){var u=a(e),c=o+16*s;e._cache.writeUInt32BE(u[0],c+0),e._cache.writeUInt32BE(u[1],c+4),e._cache.writeUInt32BE(u[2],c+8),e._cache.writeUInt32BE(u[3],c+12)}var f=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,f)}},38943:(e,t)=>{t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},60569:(e,t,r)=>{var n={ECB:r(38943),CBC:r(73846),CFB:r(71662),CFB8:r(69828),CFB1:r(7778),OFB:r(12327),CTR:r(14855),GCM:r(14855)},i=r(49234);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},12327:(e,t,r)=>{var n=r(18390).Buffer,i=r(23698);function o(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=n.concat([e._cache,o(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),i(t,r)}},15476:(e,t,r)=>{var n=r(4692),i=r(59105).Buffer,o=r(95108);function a(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}r(19105)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},57797:(e,t,r)=>{var n=r(90122),i=r(43773),o=r(60569),a=r(65624),s=r(94428);function u(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return u(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=u,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return c(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},90122:(e,t,r)=>{var n=r(95108),i=r(99417),o=r(19105),a=r(59105).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var u=e.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:o,iv:u,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=u,o(u,n),u.prototype._update=function(e){return a.from(this._des.update(e))},u.prototype._final=function(){return a.from(this._des.final())}},65624:(e,t)=>{t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},4621:(e,t,r)=>{var n=r(18390).Buffer,i=r(69999),o=r(83638);function a(e){var t,r=e.modulus.byteLength();do{t=new i(o(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e,t){var r=function(e){var t=a(e);return{blinder:t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),o=t.modulus.byteLength(),s=new i(e).mul(r.blinder).umod(t.modulus),u=s.toRed(i.mont(t.prime1)),c=s.toRed(i.mont(t.prime2)),f=t.coefficient,l=t.prime1,d=t.prime2,h=u.redPow(t.exponent1).fromRed(),p=c.redPow(t.exponent2).fromRed(),y=h.isub(p).imul(f).umod(l).imul(d);return p.iadd(y).imul(r.unblinder).umod(t.modulus).toArrayLike(n,"be",o)}s.getr=a,e.exports=s},54301:(e,t,r)=>{"use strict";e.exports=r(40026)},93564:(e,t,r)=>{"use strict";var n=r(59105).Buffer,i=r(50637),o=r(8542),a=r(19105),s=r(66119),u=r(35760),c=r(40026);function f(e){o.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){o.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new f(e)}function h(e){return new l(e)}Object.keys(c).forEach((function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),a(f,o.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},f.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=s(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},a(l,o.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return this._hash.update("string"==typeof e?n.from(e,t):e),this},l.prototype.verify=function(e,t,r){var i="string"==typeof t?n.from(t,r):t;this.end();var o=this._hash.digest();return u(i,o,e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},66119:(e,t,r)=>{"use strict";var n=r(59105).Buffer,i=r(18451),o=r(4621),a=r(42870).ec,s=r(69999),u=r(58155),c=r(39167);function f(e,t,r,o){if((e=n.from(e.toArray())).length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=r.length,u=function(e,t){e=(e=l(e,t)).mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}(r,t),c=n.alloc(s);c.fill(1);var f=n.alloc(s);return f=i(o,f).update(c).update(n.from([0])).update(e).update(u).digest(),c=i(o,f).update(c).digest(),{k:f=i(o,f).update(c).update(n.from([1])).update(e).update(u).digest(),v:c=i(o,f).update(c).digest()}}function l(e,t){var r=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function d(e,t,r){var o,a;do{for(o=n.alloc(0);8*o.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),o=n.concat([o,t.v]);a=l(o,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function h(e,t,r,n){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,t,r,i,p){var y=u(t);if(y.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var r=c[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var i=new a(r).keyFromPrivate(t.privateKey).sign(e);return n.from(i.toDER())}(e,y)}if("dsa"===y.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,r){for(var i,o=t.params.priv_key,a=t.params.p,u=t.params.q,c=t.params.g,p=new s(0),y=l(e,u).mod(u),g=!1,b=f(o,u,e,r);!1===g;)p=h(c,i=d(u,b,r),a,u),0===(g=i.invm(u).imul(y.add(o.mul(p))).mod(u)).cmpn(0)&&(g=!1,p=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}(p,g)}(e,y,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");if(void 0!==t.padding&&1!==t.padding)throw new Error("illegal or unsupported padding mode");e=n.concat([p,e]);for(var g=y.modulus.byteLength(),b=[0,1];e.length+b.length+1<g;)b.push(255);b.push(0);for(var m=-1;++m<e.length;)b.push(e[m]);return o(b,y)},e.exports.getKey=f,e.exports.makeKey=d},35760:(e,t,r)=>{"use strict";var n=r(59105).Buffer,i=r(69999),o=r(42870).ec,a=r(58155),s=r(39167);function u(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}e.exports=function(e,t,r,c,f){var l=a(r);if("ec"===l.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}(e,t,l)}if("dsa"===l.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,o=r.data.q,s=r.data.g,c=r.data.pub_key,f=a.signature.decode(e,"der"),l=f.s,d=f.r;u(l,o),u(d,o);var h=i.mont(n),p=l.invm(o);return 0===s.toRed(h).redPow(new i(t).mul(p).mod(o)).fromRed().mul(c.toRed(h).redPow(d.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(d)}(e,t,l)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=n.concat([f,t]);for(var d=l.modulus.byteLength(),h=[1],p=0;t.length+h.length+2<d;)h.push(255),p+=1;h.push(0);for(var y=-1;++y<t.length;)h.push(t[y]);h=n.from(h);var g=i.mont(l.modulus);e=(e=new i(e).toRed(g)).redPow(new i(l.publicExponent)),e=n.from(e.fromRed().toArray());var b=p<8?1:0;for(d=Math.min(e.length,h.length),e.length!==h.length&&(b=1),y=-1;++y<d;)b|=e[y]^h[y];return 0===b}},55973:(e,t,r)=>{var n=r(90638);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},6632:(e,t,r)=>{"use strict";var n=r(55973),i=r(59105).Buffer;e.exports=function(e){function t(t){var r=t.slice(0,-4),n=t.slice(-4),i=e(r);if(!(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3]))return r}return{encode:function(t){var r=e(t);return n.encode(i.concat([t,r],t.length+4))},decode:function(e){var r=t(n.decode(e));if(!r)throw new Error("Invalid checksum");return r},decodeUnsafe:function(e){var r=n.decodeUnsafe(e);if(r)return t(r)}}}},84948:(e,t,r)=>{"use strict";var n=r(50637),i=r(6632);e.exports=i((function(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()}))},23698:(e,t,r)=>{var n=r(18390).Buffer;e.exports=function(e,t){for(var r=Math.min(e.length,t.length),i=new n(r),o=0;o<r;++o)i[o]=e[o]^t[o];return i}},18390:(e,t,r)=>{"use strict";const n=r(17086),i=r(98329),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|y(e,t);let n=s(r);const i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return h(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);const i=function(e){if(u.isBuffer(e)){const t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||$(e.length)?s(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return f(e),s(e<0?0:0|p(e))}function d(e){const t=e.length<0?0:0|p(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,u.prototype),n}function p(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function y(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(i)return n?-1:W(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r);case"utf8":case"utf-8":return M(this,t,r);case"ascii":return I(this,t,r);case"latin1":case"binary":return N(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function b(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),$(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){let o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*a}else-1!==n&&(o-=o-n),n=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(c(e,o+n)!==c(t,n)){r=!1;break}if(r)return o}return-1}function w(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let a;for(n>o/2&&(n=o/2),a=0;a<n;++a){const n=parseInt(t.substr(2*a,2),16);if($(n))return a;e[r+a]=n}return a}function _(e,t,r,n){return X(W(t,e.length-r),e,r,n)}function S(e,t,r,n){return X(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function E(e,t,r,n){return X(G(t),e,r,n)}function A(e,t,r,n){return X(function(e,t){let r,n,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function O(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function M(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(u=(31&t)<<6|63&r,u>127&&(o=u));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(u=(15&t)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(u=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=T));return r}(n)}t.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return function(e,t,r){return f(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},u.allocUnsafe=function(e){return l(e)},u.allocUnsafeSlow=function(e){return l(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(Y(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=u.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(Y(t,Uint8Array))i+t.length>n.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)b(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?M(this,0,e):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(Y(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(n,i),f=e.slice(t,r);for(let e=0;e<s;++e)if(c[e]!==f[e]){o=c[e],a=f[e];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function I(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function N(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function C(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=J[e[n]];return i}function L(e,t,r){const n=e.slice(t,r);let i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function x(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function k(e,t,r,n,i){V(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function B(e,t,r,n,i){V(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function P(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function j(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=Z((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=Z((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||x(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=Z((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),u.prototype.readBigInt64BE=Z((function(e){z(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||R(this,e,t,r,Math.pow(2,8*r)-1,0);let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||R(this,e,t,r,Math.pow(2,8*r)-1,0);let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=Z((function(e,t=0){return k(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Z((function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);R(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);R(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=Z((function(e,t=0){return k(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Z((function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=u.isBuffer(e)?e:u.from(e,n),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};const F={};function U(e,t,r){F[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function H(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function V(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new F.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||q(t,e.length-(r+1))}(n,i,o)}function z(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,r){if(Math.floor(e)!==e)throw z(e,r),new F.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=H(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=H(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const K=/[^+/0-9A-Za-z-_]/g;function W(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function $(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function Z(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},77124:e=>{e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},34537:(e,t,r)=>{"use strict";var n=r(65205),i=r(47208),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},47208:(e,t,r)=>{"use strict";var n=r(85395),i=r(65205),o=r(40985),a=i("%TypeError%"),s=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||n.call(u,s),f=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(f)try{f({},"a",{value:1})}catch(e){f=null}e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(n,u,arguments);return o(t,1+l(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(n,s,arguments)};f?f(e.exports,"apply",{value:d}):e.exports.apply=d},95108:(e,t,r)=>{var n=r(59105).Buffer,i=r(98672).Transform,o=r(18842).s;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(19105)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=a},99220:(e,t,r)=>{var n=r(18390).Buffer,i=r(42870),o=r(10660);e.exports=function(e){return new s(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function u(e,t,r){Array.isArray(e)||(e=e.toArray());var i=new n(e);if(r&&i.length<r){var o=new n(r-i.length);o.fill(0),i=n.concat([o,i])}return t?i.toString(t):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,t,r){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),u(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),u(r,e)},s.prototype.getPrivateKey=function(e){return u(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,t){t=t||"utf8",n.isBuffer(e)||(e=new n(e,t));var r=new o(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}},50637:(e,t,r)=>{"use strict";var n=r(19105),i=r(54659),o=r(92027),a=r(55695),s=r(95108);function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},22944:(e,t,r)=>{var n=r(54659);e.exports=function(e){return(new n).update(e).digest()}},18451:(e,t,r)=>{"use strict";var n=r(19105),i=r(6880),o=r(95108),a=r(59105).Buffer,s=r(22944),u=r(92027),c=r(55695),f=a.alloc(128);function l(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new u:c(e)).update(t).digest():t.length<r&&(t=a.concat([t,f],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new u:c(e),this._hash.update(n)}n(l,o),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:c(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new l("rmd160",t):"md5"===e?new i(s,t):new l(e,t)}},6880:(e,t,r)=>{"use strict";var n=r(19105),i=r(59105).Buffer,o=r(95108),a=i.alloc(128),s=64;function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=i.concat([t,a],s));for(var r=this._ipad=i.allocUnsafe(s),n=this._opad=i.allocUnsafe(s),u=0;u<s;u++)r[u]=54^t[u],n[u]=92^t[u];this._hash=[r]}n(u,o),u.prototype._update=function(e){this._hash.push(e)},u.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=u},54795:(e,t,r)=>{"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r(83638),t.createHash=t.Hash=r(50637),t.createHmac=t.Hmac=r(18451);var n=r(54301),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return o};var a=r(14321);t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var s=r(57797);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var u=r(3947);t.DiffieHellmanGroup=u.DiffieHellmanGroup,t.createDiffieHellmanGroup=u.createDiffieHellmanGroup,t.getDiffieHellman=u.getDiffieHellman,t.createDiffieHellman=u.createDiffieHellman,t.DiffieHellman=u.DiffieHellman;var c=r(93564);t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=r(99220);var f=r(92518);t.publicEncrypt=f.publicEncrypt,t.privateEncrypt=f.privateEncrypt,t.publicDecrypt=f.publicDecrypt,t.privateDecrypt=f.privateDecrypt;var l=r(91538);t.randomFill=l.randomFill,t.randomFillSync=l.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},16856:function(e,t,r){var n;!function(i){"use strict";var o,a,s,u=9e15,c=1e9,f="0123456789abcdef",l="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",d="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",h={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-u,maxE:u,crypto:!1},p=!0,y="[DecimalError] ",g=y+"Invalid argument: ",b=y+"Precision limit exceeded",m=y+"crypto unavailable",v="[object Decimal]",w=Math.floor,_=Math.pow,S=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,E=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,A=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,O=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,M=1e7,T=7,I=l.length-1,N=d.length-1,C={toStringTag:v};function L(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)n=e[t]+"",(r=T-n.length)&&(o+=V(r)),o+=n;a=e[t],(r=T-(n=a+"").length)&&(o+=V(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function x(e,t,r){if(e!==~~e||e<t||e>r)throw Error(g+e)}function R(e,t,r,n){var i,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=T,i=0):(i=Math.ceil((t+1)/T),t%=T),o=_(10,T-t),s=e[i]%o|0,null==n?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):a=(r<4&&s+1==o||r>3&&s+1==o/2)&&(e[i+1]/o/100|0)==_(10,t-2)-1||(s==o/2||0==s)&&0==(e[i+1]/o/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(n||r<4)&&9999==s||!n&&r>3&&4999==s):a=((n||r<4)&&s+1==o||!n&&r>3&&s+1==o/2)&&(e[i+1]/o/1e3|0)==_(10,t-3)-1,a}function k(e,t,r){for(var n,i,o=[0],a=0,s=e.length;a<s;){for(i=o.length;i--;)o[i]*=t;for(o[0]+=f.indexOf(e.charAt(a++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}C.absoluteValue=C.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),P(e)},C.ceil=function(){return P(new this.constructor(this),this.e+1,2)},C.clampedTo=C.clamp=function(e,t){var r=this,n=r.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(g+t);return r.cmp(e)<0?e:r.cmp(t)>0?t:new n(r)},C.comparedTo=C.cmp=function(e){var t,r,n,i,o=this,a=o.d,s=(e=new o.constructor(e)).d,u=o.s,c=e.s;if(!a||!s)return u&&c?u!==c?u:a===s?0:!a^u<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?u:s[0]?-c:0;if(u!==c)return u;if(o.e!==e.e)return o.e>e.e^u<0?1:-1;for(t=0,r=(n=a.length)<(i=s.length)?n:i;t<r;++t)if(a[t]!==s[t])return a[t]>s[t]^u<0?1:-1;return n===i?0:n>i^u<0?1:-1},C.cosine=C.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+T,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;(n=t.d.length)<32?i=(1/Z(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=J(e,1,t.times(i),new e(1));for(var o=r;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=r,t}(n,Q(n,r)),n.precision=e,n.rounding=t,P(2==s||3==s?r.neg():r,e,t,!0)):new n(1):new n(NaN)},C.cubeRoot=C.cbrt=function(){var e,t,r,n,i,o,a,s,u,c,f=this,l=f.constructor;if(!f.isFinite()||f.isZero())return new l(f);for(p=!1,(o=f.s*_(f.s*f,1/3))&&Math.abs(o)!=1/0?n=new l(o.toString()):(r=L(f.d),(o=((e=f.e)-r.length+1)%3)&&(r+=1==o||-2==o?"0":"00"),o=_(r,1/3),e=w((e+1)/3)-(e%3==(e<0?-1:2)),(n=new l(r=o==1/0?"5e"+e:(r=o.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=f.s),a=(e=l.precision)+3;;)if(c=(u=(s=n).times(s).times(s)).plus(f),n=B(c.plus(f).times(s),c.plus(u),a+2,1),L(s.d).slice(0,a)===(r=L(n.d)).slice(0,a)){if("9999"!=(r=r.slice(a-3,a+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(P(n,e+1,1),t=!n.times(n).times(n).eq(f));break}if(!i&&(P(s,e+1,0),s.times(s).times(s).eq(f))){n=s;break}a+=4,i=1}return p=!0,P(n,e,l.rounding,t)},C.decimalPlaces=C.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=((e=t.length-1)-w(this.e/T))*T,e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},C.dividedBy=C.div=function(e){return B(this,new this.constructor(e))},C.dividedToIntegerBy=C.divToInt=function(e){var t=this.constructor;return P(B(this,new t(e),0,1,1),t.precision,t.rounding)},C.equals=C.eq=function(e){return 0===this.cmp(e)},C.floor=function(){return P(new this.constructor(this),this.e+1,3)},C.greaterThan=C.gt=function(e){return this.cmp(e)>0},C.greaterThanOrEqualTo=C.gte=function(e){var t=this.cmp(e);return 1==t||0===t},C.hyperbolicCosine=C.cosh=function(){var e,t,r,n,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/Z(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=J(a,1,o.times(t),new a(1),!0);for(var u,c=e,f=new a(8);c--;)u=o.times(o),o=s.minus(u.times(f.minus(u.times(f))));return P(o,a.precision=r,a.rounding=n,!0)},C.hyperbolicSine=C.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=J(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=J(o,2,i=i.times(1/Z(5,e)),i,!0);for(var a,s=new o(5),u=new o(16),c=new o(20);e--;)a=i.times(i),i=i.times(s.plus(a.times(u.times(a).plus(c))))}return o.precision=t,o.rounding=r,P(i,t,r,!0)},C.hyperbolicTangent=C.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,B(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)},C.inverseCosine=C.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,o=r.rounding;return-1!==n?0===n?t.isNeg()?U(r,i,o):new r(0):new r(NaN):t.isZero()?U(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=U(r,i+4,o).times(.5),r.precision=i,r.rounding=o,e.minus(t))},C.inverseHyperbolicCosine=C.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,p=!1,r=r.times(r).minus(1).sqrt().plus(r),p=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},C.inverseHyperbolicSine=C.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,p=!1,r=r.times(r).plus(1).sqrt().plus(r),p=!0,n.precision=e,n.rounding=t,r.ln())},C.inverseHyperbolicTangent=C.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?P(new o(i),e,t,!0):(o.precision=r=n-i.e,i=B(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)},C.inverseSine=C.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==t?0===t?((e=U(o,r+4,n).times(.5)).s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))},C.inverseTangent=C.atan=function(){var e,t,r,n,i,o,a,s,u,c=this,f=c.constructor,l=f.precision,d=f.rounding;if(c.isFinite()){if(c.isZero())return new f(c);if(c.abs().eq(1)&&l+4<=N)return(a=U(f,l+4,d).times(.25)).s=c.s,a}else{if(!c.s)return new f(NaN);if(l+4<=N)return(a=U(f,l+4,d).times(.5)).s=c.s,a}for(f.precision=s=l+10,f.rounding=1,e=r=Math.min(28,s/T+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(p=!1,t=Math.ceil(s/T),n=1,u=c.times(c),a=new f(c),i=c;-1!==e;)if(i=i.times(u),o=a.minus(i.div(n+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(n+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return r&&(a=a.times(2<<r-1)),p=!0,P(a,f.precision=l,f.rounding=d,!0)},C.isFinite=function(){return!!this.d},C.isInteger=C.isInt=function(){return!!this.d&&w(this.e/T)>this.d.length-2},C.isNaN=function(){return!this.s},C.isNegative=C.isNeg=function(){return this.s<0},C.isPositive=C.isPos=function(){return this.s>0},C.isZero=function(){return!!this.d&&0===this.d[0]},C.lessThan=C.lt=function(e){return this.cmp(e)<0},C.lessThanOrEqualTo=C.lte=function(e){return this.cmp(e)<1},C.logarithm=C.log=function(e){var t,r,n,i,o,a,s,u,c=this,f=c.constructor,l=f.precision,d=f.rounding;if(null==e)e=new f(10),t=!0;else{if(r=(e=new f(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new f(NaN);t=e.eq(10)}if(r=c.d,c.s<0||!r||!r[0]||c.eq(1))return new f(r&&!r[0]?-1/0:1!=c.s?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10==0;)i/=10;o=1!==i}if(p=!1,a=G(c,s=l+5),n=t?F(f,s+10):G(e,s),R((u=B(a,n,s,1)).d,i=l,d))do{if(a=G(c,s+=10),n=t?F(f,s+10):G(e,s),u=B(a,n,s,1),!o){+L(u.d).slice(i+1,i+15)+1==1e14&&(u=P(u,l+1,0));break}}while(R(u.d,i+=10,d));return p=!0,P(u,l,d)},C.minus=C.sub=function(e){var t,r,n,i,o,a,s,u,c,f,l,d,h=this,y=h.constructor;if(e=new y(e),!h.d||!e.d)return h.s&&e.s?h.d?e.s=-e.s:e=new y(e.d||h.s!==e.s?h:NaN):e=new y(NaN),e;if(h.s!=e.s)return e.s=-e.s,h.plus(e);if(c=h.d,d=e.d,s=y.precision,u=y.rounding,!c[0]||!d[0]){if(d[0])e.s=-e.s;else{if(!c[0])return new y(3===u?-0:0);e=new y(h)}return p?P(e,s,u):e}if(r=w(e.e/T),f=w(h.e/T),c=c.slice(),o=f-r){for((l=o<0)?(t=c,o=-o,a=d.length):(t=d,r=f,a=c.length),o>(n=Math.max(Math.ceil(s/T),a)+2)&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for((l=(n=c.length)<(a=d.length))&&(a=n),n=0;n<a;n++)if(c[n]!=d[n]){l=c[n]<d[n];break}o=0}for(l&&(t=c,c=d,d=t,e.s=-e.s),a=c.length,n=d.length-a;n>0;--n)c[a++]=0;for(n=d.length;n>o;){if(c[--n]<d[n]){for(i=n;i&&0===c[--i];)c[i]=M-1;--c[i],c[n]+=M}c[n]-=d[n]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=j(c,r),p?P(e,s,u):e):new y(3===u?-0:0)},C.modulo=C.mod=function(e){var t,r=this,n=r.constructor;return e=new n(e),!r.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||r.d&&!r.d[0]?P(new n(r),n.precision,n.rounding):(p=!1,9==n.modulo?(t=B(r,e.abs(),0,3,1)).s*=e.s:t=B(r,e,0,n.modulo,1),t=t.times(e),p=!0,r.minus(t))},C.naturalExponential=C.exp=function(){return W(this)},C.naturalLogarithm=C.ln=function(){return G(this)},C.negated=C.neg=function(){var e=new this.constructor(this);return e.s=-e.s,P(e)},C.plus=C.add=function(e){var t,r,n,i,o,a,s,u,c,f,l=this,d=l.constructor;if(e=new d(e),!l.d||!e.d)return l.s&&e.s?l.d||(e=new d(e.d||l.s===e.s?l:NaN)):e=new d(NaN),e;if(l.s!=e.s)return e.s=-e.s,l.minus(e);if(c=l.d,f=e.d,s=d.precision,u=d.rounding,!c[0]||!f[0])return f[0]||(e=new d(l)),p?P(e,s,u):e;if(o=w(l.e/T),n=w(e.e/T),c=c.slice(),i=o-n){for(i<0?(r=c,i=-i,a=f.length):(r=f,n=o,a=c.length),i>(a=(o=Math.ceil(s/T))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=c.length)-(i=f.length)<0&&(i=a,r=f,f=c,c=r),t=0;i;)t=(c[--i]=c[i]+f[i]+t)/M|0,c[i]%=M;for(t&&(c.unshift(t),++n),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=j(c,n),p?P(e,s,u):e},C.precision=C.sd=function(e){var t,r=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(g+e);return r.d?(t=H(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t},C.round=function(){var e=this,t=e.constructor;return P(new t(e),e.e+1,t.rounding)},C.sine=C.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+T,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:J(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=J(e,2,t=t.times(1/Z(5,r)),t);for(var i,o=new e(5),a=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(n,Q(n,r)),n.precision=e,n.rounding=t,P(s>2?r.neg():r,e,t,!0)):new n(NaN)},C.squareRoot=C.sqrt=function(){var e,t,r,n,i,o,a=this,s=a.d,u=a.e,c=a.s,f=a.constructor;if(1!==c||!s||!s[0])return new f(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(p=!1,0==(c=Math.sqrt(+a))||c==1/0?(((t=L(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(t),u=w((u+1)/2)-(u<0||u%2),n=new f(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):n=new f(c.toString()),r=(u=f.precision)+3;;)if(n=(o=n).plus(B(a,o,r+2,1)).times(.5),L(o.d).slice(0,r)===(t=L(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(P(n,u+1,1),e=!n.times(n).eq(a));break}if(!i&&(P(o,u+1,0),o.times(o).eq(a))){n=o;break}r+=4,i=1}return p=!0,P(n,u,f.rounding,e)},C.tangent=C.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=B(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,P(2==s||4==s?r.neg():r,e,t,!0)):new n(NaN)},C.times=C.mul=function(e){var t,r,n,i,o,a,s,u,c,f=this,l=f.constructor,d=f.d,h=(e=new l(e)).d;if(e.s*=f.s,!(d&&d[0]&&h&&h[0]))return new l(!e.s||d&&!d[0]&&!h||h&&!h[0]&&!d?NaN:d&&h?0*e.s:e.s/0);for(r=w(f.e/T)+w(e.e/T),(u=d.length)<(c=h.length)&&(o=d,d=h,h=o,a=u,u=c,c=a),o=[],n=a=u+c;n--;)o.push(0);for(n=c;--n>=0;){for(t=0,i=u+n;i>n;)s=o[i]+h[n]*d[i-n-1]+t,o[i--]=s%M|0,t=s/M|0;o[i]=(o[i]+t)%M|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=j(o,r),p?P(e,l.precision,l.rounding):e},C.toBinary=function(e,t){return ee(this,2,e,t)},C.toDecimalPlaces=C.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(x(e,0,c),void 0===t?t=n.rounding:x(t,0,8),P(r,e+r.e+1,t))},C.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=D(n,!0):(x(e,0,c),void 0===t?t=i.rounding:x(t,0,8),r=D(n=P(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},C.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?r=D(i):(x(e,0,c),void 0===t?t=o.rounding:x(t,0,8),r=D(n=P(new o(i),e+i.e+1,t),!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},C.toFraction=function(e){var t,r,n,i,o,a,s,u,c,f,l,d,h=this,y=h.d,b=h.constructor;if(!y)return new b(h);if(c=r=new b(1),n=u=new b(0),a=(o=(t=new b(n)).e=H(y)-h.e-1)%T,t.d[0]=_(10,a<0?T+a:a),null==e)e=o>0?t:c;else{if(!(s=new b(e)).isInt()||s.lt(c))throw Error(g+s);e=s.gt(t)?o>0?t:c:s}for(p=!1,s=new b(L(y)),f=b.precision,b.precision=o=y.length*T*2;l=B(s,t,0,1,1),1!=(i=r.plus(l.times(n))).cmp(e);)r=n,n=i,i=c,c=u.plus(l.times(i)),u=i,i=t,t=s.minus(l.times(i)),s=i;return i=B(e.minus(r),n,0,1,1),u=u.plus(i.times(c)),r=r.plus(i.times(n)),u.s=c.s=h.s,d=B(c,n,o,1).minus(h).abs().cmp(B(u,r,o,1).minus(h).abs())<1?[c,n]:[u,r],b.precision=f,p=!0,d},C.toHexadecimal=C.toHex=function(e,t){return ee(this,16,e,t)},C.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:x(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(p=!1,r=B(r,e,0,t,1).times(e),p=!0,P(r)):(e.s=r.s,r=e),r},C.toNumber=function(){return+this},C.toOctal=function(e,t){return ee(this,8,e,t)},C.toPower=C.pow=function(e){var t,r,n,i,o,a,s=this,u=s.constructor,c=+(e=new u(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new u(_(+s,c));if((s=new u(s)).eq(1))return s;if(n=u.precision,o=u.rounding,e.eq(1))return P(s,n,o);if((t=w(e.e/T))>=e.d.length-1&&(r=c<0?-c:c)<=9007199254740991)return i=z(u,s,r,n),e.s<0?new u(1).div(i):P(i,n,o);if((a=s.s)<0){if(t<e.d.length-1)return new u(NaN);if(0==(1&e.d[t])&&(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(r=_(+s,c))&&isFinite(r)?new u(r+"").e:w(c*(Math.log("0."+L(s.d))/Math.LN10+s.e+1)))>u.maxE+1||t<u.minE-1?new u(t>0?a/0:0):(p=!1,u.rounding=s.s=1,r=Math.min(12,(t+"").length),(i=W(e.times(G(s,n+r)),n)).d&&R((i=P(i,n+5,1)).d,n,o)&&(t=n+10,+L((i=P(W(e.times(G(s,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=P(i,n+1,0))),i.s=a,p=!0,u.rounding=o,P(i,n,o))},C.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=D(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(x(e,1,c),void 0===t?t=i.rounding:x(t,0,8),r=D(n=P(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},C.toSignificantDigits=C.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(x(e,1,c),void 0===t?t=r.rounding:x(t,0,8)),P(new r(this),e,t)},C.toString=function(){var e=this,t=e.constructor,r=D(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r},C.truncated=C.trunc=function(){return P(new this.constructor(this),this.e+1,1)},C.valueOf=C.toJSON=function(){var e=this,t=e.constructor,r=D(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};var B=function(){function e(e,t,r){var n,i=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+i,e[o]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,s,u,c){var f,l,d,h,p,y,g,b,m,v,_,S,E,A,O,I,N,C,L,x,R=n.constructor,k=n.s==i.s?1:-1,B=n.d,D=i.d;if(!(B&&B[0]&&D&&D[0]))return new R(n.s&&i.s&&(B?!D||B[0]!=D[0]:D)?B&&0==B[0]||!D?0*k:k/0:NaN);for(c?(p=1,l=n.e-i.e):(c=M,p=T,l=w(n.e/p)-w(i.e/p)),L=D.length,N=B.length,v=(m=new R(k)).d=[],d=0;D[d]==(B[d]||0);d++);if(D[d]>(B[d]||0)&&l--,null==o?(A=o=R.precision,s=R.rounding):A=u?o+(n.e-i.e)+1:o,A<0)v.push(1),y=!0;else{if(A=A/p+2|0,d=0,1==L){for(h=0,D=D[0],A++;(d<N||h)&&A--;d++)O=h*c+(B[d]||0),v[d]=O/D|0,h=O%D|0;y=h||d<N}else{for((h=c/(D[0]+1)|0)>1&&(D=e(D,h,c),B=e(B,h,c),L=D.length,N=B.length),I=L,S=(_=B.slice(0,L)).length;S<L;)_[S++]=0;(x=D.slice()).unshift(0),C=D[0],D[1]>=c/2&&++C;do{h=0,(f=t(D,_,L,S))<0?(E=_[0],L!=S&&(E=E*c+(_[1]||0)),(h=E/C|0)>1?(h>=c&&(h=c-1),1==(f=t(g=e(D,h,c),_,b=g.length,S=_.length))&&(h--,r(g,L<b?x:D,b,c))):(0==h&&(f=h=1),g=D.slice()),(b=g.length)<S&&g.unshift(0),r(_,g,S,c),-1==f&&(f=t(D,_,L,S=_.length))<1&&(h++,r(_,L<S?x:D,S,c)),S=_.length):0===f&&(h++,_=[0]),v[d++]=h,f&&_[0]?_[S++]=B[I]||0:(_=[B[I]],S=1)}while((I++<N||void 0!==_[0])&&A--);y=void 0!==_[0]}v[0]||v.shift()}if(1==p)m.e=l,a=y;else{for(d=1,h=v[0];h>=10;h/=10)d++;m.e=d+l*p-1,P(m,u?o+m.e+1:o,s,y)}return m}}();function P(e,t,r,n){var i,o,a,s,u,c,f,l,d,h=e.constructor;e:if(null!=t){if(!(l=e.d))return e;for(i=1,s=l[0];s>=10;s/=10)i++;if((o=t-i)<0)o+=T,a=t,u=(f=l[d=0])/_(10,i-a-1)%10|0;else if((d=Math.ceil((o+1)/T))>=(s=l.length)){if(!n)break e;for(;s++<=d;)l.push(0);f=u=0,i=1,a=(o%=T)-T+1}else{for(f=s=l[d],i=1;s>=10;s/=10)i++;u=(a=(o%=T)-T+i)<0?0:f/_(10,i-a-1)%10|0}if(n=n||t<0||void 0!==l[d+1]||(a<0?f:f%_(10,i-a-1)),c=r<4?(u||n)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(o>0?a>0?f/_(10,i-a):0:l[d-1])%10&1||r==(e.s<0?8:7)),t<1||!l[0])return l.length=0,c?(t-=e.e+1,l[0]=_(10,(T-t%T)%T),e.e=-t||0):l[0]=e.e=0,e;if(0==o?(l.length=d,s=1,d--):(l.length=d+1,s=_(10,T-o),l[d]=a>0?(f/_(10,i-a)%_(10,a)|0)*s:0),c)for(;;){if(0==d){for(o=1,a=l[0];a>=10;a/=10)o++;for(a=l[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,l[0]==M&&(l[0]=1));break}if(l[d]+=s,l[d]!=M)break;l[d--]=0,s=1}for(o=l.length;0===l[--o];)l.pop()}return p&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function D(e,t,r){if(!e.isFinite())return X(e);var n,i=e.e,o=L(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+V(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+V(-i-1)+o,r&&(n=r-a)>0&&(o+=V(n))):i>=a?(o+=V(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+V(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=V(n))),o}function j(e,t){var r=e[0];for(t*=T;r>=10;r/=10)t++;return t}function F(e,t,r){if(t>I)throw p=!0,r&&(e.precision=r),Error(b);return P(new e(l),t,1,!0)}function U(e,t,r){if(t>N)throw Error(b);return P(new e(d),t,r,!0)}function H(e){var t=e.length-1,r=t*T+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function V(e){for(var t="";e--;)t+="0";return t}function z(e,t,r,n){var i,o=new e(1),a=Math.ceil(n/T+4);for(p=!1;;){if(r%2&&te((o=o.times(t)).d,a)&&(i=!0),0===(r=w(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}te((t=t.times(t)).d,a)}return p=!0,o}function q(e){return 1&e.d[e.d.length-1]}function K(e,t,r){for(var n,i=new e(t[0]),o=0;++o<t.length;){if(!(n=new e(t[o])).s){i=n;break}i[r](n)&&(i=n)}return i}function W(e,t){var r,n,i,o,a,s,u,c=0,f=0,l=0,d=e.constructor,h=d.rounding,y=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(p=!1,u=y):u=t,s=new d(.03125);e.e>-2;)e=e.times(s),l+=5;for(u+=n=Math.log(_(2,l))/Math.LN10*2+5|0,r=o=a=new d(1),d.precision=u;;){if(o=P(o.times(e),u,1),r=r.times(++f),L((s=a.plus(B(o,r,u,1))).d).slice(0,u)===L(a.d).slice(0,u)){for(i=l;i--;)a=P(a.times(a),u,1);if(null!=t)return d.precision=y,a;if(!(c<3&&R(a.d,u-n,h,c)))return P(a,d.precision=y,h,p=!0);d.precision=u+=10,r=o=s=new d(1),f=0,c++}a=s}}function G(e,t){var r,n,i,o,a,s,u,c,f,l,d,h=1,y=e,g=y.d,b=y.constructor,m=b.rounding,v=b.precision;if(y.s<0||!g||!g[0]||!y.e&&1==g[0]&&1==g.length)return new b(g&&!g[0]?-1/0:1!=y.s?NaN:g?0:y);if(null==t?(p=!1,f=v):f=t,b.precision=f+=10,n=(r=L(g)).charAt(0),!(Math.abs(o=y.e)<15e14))return c=F(b,f+2,v).times(o+""),y=G(new b(n+"."+r.slice(1)),f-10).plus(c),b.precision=v,null==t?P(y,v,m,p=!0):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=L((y=y.times(e)).d)).charAt(0),h++;for(o=y.e,n>1?(y=new b("0."+r),o++):y=new b(n+"."+r.slice(1)),l=y,u=a=y=B(y.minus(1),y.plus(1),f,1),d=P(y.times(y),f,1),i=3;;){if(a=P(a.times(d),f,1),L((c=u.plus(B(a,new b(i),f,1))).d).slice(0,f)===L(u.d).slice(0,f)){if(u=u.times(2),0!==o&&(u=u.plus(F(b,f+2,v).times(o+""))),u=B(u,new b(h),f,1),null!=t)return b.precision=v,u;if(!R(u.d,f-10,m,s))return P(u,b.precision=v,m,p=!0);b.precision=f+=10,c=a=y=B(l.minus(1),l.plus(1),f,1),d=P(y.times(y),f,1),i=s=1}u=c,i+=2}}function X(e){return String(e.s*e.s/0)}function Y(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%T,r<0&&(n+=T),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=T;n<i;)e.d.push(+t.slice(n,n+=T));t=t.slice(n),n=T-t.length}else n-=i;for(;n--;)t+="0";e.d.push(+t),p&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function $(e,t){var r,n,i,a,s,u,c,f,l;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),O.test(t))return Y(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(E.test(t))r=16,t=t.toLowerCase();else if(S.test(t))r=2;else{if(!A.test(t))throw Error(g+t);r=8}for((a=t.search(/p/i))>0?(c=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),s=(a=t.indexOf("."))>=0,n=e.constructor,s&&(a=(u=(t=t.replace(".","")).length)-a,i=z(n,new n(r),a,2*a)),a=l=(f=k(t,r,M)).length-1;0===f[a];--a)f.pop();return a<0?new n(0*e.s):(e.e=j(f,l),e.d=f,p=!1,s&&(e=B(e,i,4*u)),c&&(e=e.times(Math.abs(c)<54?_(2,c):o.pow(2,c))),p=!0,e)}function J(e,t,r,n,i){var o,a,s,u,c=e.precision,f=Math.ceil(c/T);for(p=!1,u=r.times(r),s=new e(n);;){if(a=B(s.times(u),new e(t++*t++),c,1),s=i?n.plus(a):n.minus(a),n=B(a.times(u),new e(t++*t++),c,1),void 0!==(a=s.plus(n)).d[f]){for(o=f;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=n,n=a,a=o}return p=!0,a.d.length=f+1,a}function Z(e,t){for(var r=e;--t;)r*=e;return r}function Q(e,t){var r,n=t.s<0,i=U(e,e.precision,1),o=i.times(.5);if((t=t.abs()).lte(o))return s=n?4:1,t;if((r=t.divToInt(i)).isZero())s=n?3:2;else{if((t=t.minus(r.times(i))).lte(o))return s=q(r)?n?2:3:n?4:1,t;s=q(r)?n?1:4:n?3:2}return t.minus(i).abs()}function ee(e,t,r,n){var i,o,s,u,l,d,h,p,y,g=e.constructor,b=void 0!==r;if(b?(x(r,1,c),void 0===n?n=g.rounding:x(n,0,8)):(r=g.precision,n=g.rounding),e.isFinite()){for(b?(i=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):i=t,(s=(h=D(e)).indexOf("."))>=0&&(h=h.replace(".",""),(y=new g(1)).e=h.length-s,y.d=k(D(y),10,i),y.e=y.d.length),o=l=(p=k(h,10,i)).length;0==p[--l];)p.pop();if(p[0]){if(s<0?o--:((e=new g(e)).d=p,e.e=o,p=(e=B(e,y,r,n,0,i)).d,o=e.e,d=a),s=p[r],u=i/2,d=d||void 0!==p[r+1],d=n<4?(void 0!==s||d)&&(0===n||n===(e.s<0?3:2)):s>u||s===u&&(4===n||d||6===n&&1&p[r-1]||n===(e.s<0?8:7)),p.length=r,d)for(;++p[--r]>i-1;)p[r]=0,r||(++o,p.unshift(1));for(l=p.length;!p[l-1];--l);for(s=0,h="";s<l;s++)h+=f.charAt(p[s]);if(b){if(l>1)if(16==t||8==t){for(s=16==t?4:3,--l;l%s;l++)h+="0";for(l=(p=k(h,i,t)).length;!p[l-1];--l);for(s=1,h="1.";s<l;s++)h+=f.charAt(p[s])}else h=h.charAt(0)+"."+h.slice(1);h=h+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)h="0"+h;h="0."+h}else if(++o>l)for(o-=l;o--;)h+="0";else o<l&&(h=h.slice(0,o)+"."+h.slice(o))}else h=b?"0p+0":"0";h=(16==t?"0x":2==t?"0b":8==t?"0o":"")+h}else h=X(e);return e.s<0?"-"+h:h}function te(e,t){if(e.length>t)return e.length=t,!0}function re(e){return new this(e).abs()}function ne(e){return new this(e).acos()}function ie(e){return new this(e).acosh()}function oe(e,t){return new this(e).plus(t)}function ae(e){return new this(e).asin()}function se(e){return new this(e).asinh()}function ue(e){return new this(e).atan()}function ce(e){return new this(e).atanh()}function fe(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?U(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=U(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,r=this.atan(B(e,t,o,1)),t=U(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(B(e,t,o,1)):(r=U(this,o,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function le(e){return new this(e).cbrt()}function de(e){return P(e=new this(e),e.e+1,2)}function he(e,t,r){return new this(e).clamp(t,r)}function pe(e){if(!e||"object"!=typeof e)throw Error(y+"Object expected");var t,r,n,i=!0===e.defaults,o=["precision",1,c,"rounding",0,8,"toExpNeg",-u,0,"toExpPos",0,u,"maxE",0,u,"minE",-u,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(r=o[t],i&&(this[r]=h[r]),void 0!==(n=e[r])){if(!(w(n)===n&&n>=o[t+1]&&n<=o[t+2]))throw Error(g+r+": "+n);this[r]=n}if(r="crypto",i&&(this[r]=h[r]),void 0!==(n=e[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(g+r+": "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(m);this[r]=!0}else this[r]=!1}return this}function ye(e){return new this(e).cos()}function ge(e){return new this(e).cosh()}function be(e,t){return new this(e).div(t)}function me(e){return new this(e).exp()}function ve(e){return P(e=new this(e),e.e+1,3)}function we(){var e,t,r=new this(0);for(p=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return p=!0,new this(1/0);r=t}return p=!0,r.sqrt()}function _e(e){return e instanceof o||e&&e.toStringTag===v||!1}function Se(e){return new this(e).ln()}function Ee(e,t){return new this(e).log(t)}function Ae(e){return new this(e).log(2)}function Oe(e){return new this(e).log(10)}function Me(){return K(this,arguments,"lt")}function Te(){return K(this,arguments,"gt")}function Ie(e,t){return new this(e).mod(t)}function Ne(e,t){return new this(e).mul(t)}function Ce(e,t){return new this(e).pow(t)}function Le(e){var t,r,n,i,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:x(e,1,c),n=Math.ceil(e/T),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(m);for(t=crypto.randomBytes(n*=4);o<n;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(i%1e7),o+=4);o=n/4}else for(;o<n;)s[o++]=1e7*Math.random()|0;for(n=s[--o],e%=T,n&&e&&(i=_(10,T-e),s[o]=(n/i|0)*i);0===s[o];o--)s.pop();if(o<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=T)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<T&&(r-=T-n)}return a.e=r,a.d=s,a}function xe(e){return P(e=new this(e),e.e+1,this.rounding)}function Re(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function ke(e){return new this(e).sin()}function Be(e){return new this(e).sinh()}function Pe(e){return new this(e).sqrt()}function De(e,t){return new this(e).sub(t)}function je(){var e=0,t=arguments,r=new this(t[e]);for(p=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return p=!0,P(r,this.precision,this.rounding)}function Fe(e){return new this(e).tan()}function Ue(e){return new this(e).tanh()}function He(e){return P(e=new this(e),e.e+1,1)}(o=function e(t){var r,n,i;function o(e){var t,r,n,i=this;if(!(i instanceof o))return new o(e);if(i.constructor=o,_e(e))return i.s=e.s,void(p?!e.d||e.e>o.maxE?(i.e=NaN,i.d=null):e.e<o.minE?(i.e=0,i.d=[0]):(i.e=e.e,i.d=e.d.slice()):(i.e=e.e,i.d=e.d?e.d.slice():e.d));if("number"==(n=typeof e)){if(0===e)return i.s=1/e<0?-1:1,i.e=0,void(i.d=[0]);if(e<0?(e=-e,i.s=-1):i.s=1,e===~~e&&e<1e7){for(t=0,r=e;r>=10;r/=10)t++;return void(p?t>o.maxE?(i.e=NaN,i.d=null):t<o.minE?(i.e=0,i.d=[0]):(i.e=t,i.d=[e]):(i.e=t,i.d=[e]))}return 0*e!=0?(e||(i.s=NaN),i.e=NaN,void(i.d=null)):Y(i,e.toString())}if("string"!==n)throw Error(g+e);return 45===(r=e.charCodeAt(0))?(e=e.slice(1),i.s=-1):(43===r&&(e=e.slice(1)),i.s=1),O.test(e)?Y(i,e):$(i,e)}if(o.prototype=C,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=pe,o.clone=e,o.isDecimal=_e,o.abs=re,o.acos=ne,o.acosh=ie,o.add=oe,o.asin=ae,o.asinh=se,o.atan=ue,o.atanh=ce,o.atan2=fe,o.cbrt=le,o.ceil=de,o.clamp=he,o.cos=ye,o.cosh=ge,o.div=be,o.exp=me,o.floor=ve,o.hypot=we,o.ln=Se,o.log=Ee,o.log10=Oe,o.log2=Ae,o.max=Me,o.min=Te,o.mod=Ie,o.mul=Ne,o.pow=Ce,o.random=Le,o.round=xe,o.sign=Re,o.sin=ke,o.sinh=Be,o.sqrt=Pe,o.sub=De,o.sum=je,o.tan=Fe,o.tanh=Ue,o.trunc=He,void 0===t&&(t={}),t&&!0!==t.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return o.config(t),o}(h)).prototype.constructor=o,o.default=o.Decimal=o,l=new o(l),d=new o(d),void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},40823:(e,t,r)=>{"use strict";var n=r(23280)(),i=r(65205),o=n&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(e){o=!1}var a=i("%SyntaxError%"),s=i("%TypeError%"),u=r(558);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],l=!!u&&u(e,t);if(o)o(e,t,{configurable:null===c&&l?l.configurable:!c,enumerable:null===n&&l?l.enumerable:!n,value:r,writable:null===i&&l?l.writable:!i});else{if(!f&&(n||i||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},31907:(e,t,r)=>{"use strict";var n=r(33025),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=r(23280)(),c=s&&u,f=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;c?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},l=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)f(e,o[s],t[o[s]],r[o[s]])};l.supportsDescriptors=!!c,e.exports=l},99417:(e,t,r)=>{"use strict";t.utils=r(68559),t.Cipher=r(47094),t.DES=r(30349),t.CBC=r(86768),t.EDE=r(87118)},86768:(e,t,r)=>{"use strict";var n=r(44647),i=r(19105),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];for(o._update.call(this,a,0,r,n),s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{for(o._update.call(this,e,t,r,n),s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},47094:(e,t,r)=>{"use strict";var n=r(44647);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},30349:(e,t,r)=>{"use strict";var n=r(44647),i=r(19105),o=r(68559),a=r(47094);function s(){this.tmp=new Array(2),this.keys=null}function u(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(u,a),e.exports=u,u.create=function(e){return new u(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=c[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},u.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,n,i){for(var a=t,s=r,u=0;u<e.keys.length;u+=2){var c=e.keys[u],f=e.keys[u+1];o.expand(s,e.tmp,0),c^=e.tmp[0],f^=e.tmp[1];var l=o.substitute(c,f),d=s;s=(a^o.permute(l))>>>0,a=d}o.rip(s,a,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,u=e.keys.length-2;u>=0;u-=2){var c=e.keys[u],f=e.keys[u+1];o.expand(a,e.tmp,0),c^=e.tmp[0],f^=e.tmp[1];var l=o.substitute(c,f),d=a;a=(s^o.permute(l))>>>0,s=d}o.rip(a,s,n,i)}},87118:(e,t,r)=>{"use strict";var n=r(44647),i=r(19105),o=r(47094),a=r(30349);function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function u(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(u,o),e.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},68559:(e,t)=>{"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,n,i){for(var o=0,a=0,s=r.length>>>1,u=0;u<s;u++)o<<=1,o|=e>>>r[u]&1;for(u=s;u<r.length;u++)a<<=1,a|=t>>>r[u]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,i=0;i<4;i++)r<<=4,r|=n[64*i+(e>>>18-6*i&63)];for(i=0;i<4;i++)r<<=4,r|=n[256+64*i+(t>>>18-6*i&63)];return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<i.length;r++)t<<=1,t|=e>>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},3947:(e,t,r)=>{var n=r(18390).Buffer,i=r(2711),o=r(23418),a=r(21478),s={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){var t=new n(o[e].prime,"hex"),r=new n(o[e].gen,"hex");return new a(t,r)},t.createDiffieHellman=t.DiffieHellman=function e(t,r,o,u){return n.isBuffer(r)||void 0===s[r]?e(t,"binary",r,o):(r=r||"binary",u=u||"binary",o=o||new n([2]),n.isBuffer(o)||(o=new n(o,u)),"number"==typeof t?new a(i(t,o),o,!0):(n.isBuffer(t)||(t=new n(t,r)),new a(t,o,!0)))}},21478:(e,t,r)=>{var n=r(18390).Buffer,i=r(10660),o=new(r(85501)),a=new i(24),s=new i(11),u=new i(10),c=new i(3),f=new i(7),l=r(2711),d=r(83638);function h(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._pub=new i(e),this}function p(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this._priv=new i(e),this}e.exports=g;var y={};function g(e,t,r){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function b(e,t){var r=new n(e.toArray());return t?r.toString(t):r}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in y)return y[n];var i,d=0;if(e.isEven()||!l.simpleSieve||!l.fermatTest(e)||!o.test(e))return d+=1,d+="02"===r||"05"===r?8:4,y[n]=d,d;switch(o.test(e.shrn(1))||(d+=2),r){case"02":e.mod(a).cmp(s)&&(d+=8);break;case"05":(i=e.mod(u)).cmp(c)&&i.cmp(f)&&(d+=8);break;default:d+=4}return y[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new i(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(e){var t=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new n(t.toArray()),o=this.getPrime();if(r.length<o.length){var a=new n(o.length-r.length);a.fill(0),r=n.concat([a,r])}return r},g.prototype.getPublicKey=function(e){return b(this._pub,e)},g.prototype.getPrivateKey=function(e){return b(this._priv,e)},g.prototype.getPrime=function(e){return b(this.__prime,e)},g.prototype.getGenerator=function(e){return b(this._gen,e)},g.prototype.setGenerator=function(e,t){return t=t||"utf8",n.isBuffer(e)||(e=new n(e,t)),this.__gen=e,this._gen=new i(e),this}},2711:(e,t,r)=>{var n=r(83638);e.exports=m,m.simpleSieve=g,m.fermatTest=b;var i=r(10660),o=new i(24),a=new(r(85501)),s=new i(1),u=new i(2),c=new i(5),f=(new i(16),new i(8),new i(10)),l=new i(3),d=(new i(7),new i(11)),h=new i(4),p=(new i(12),null);function y(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return p=e,e}function g(e){for(var t=y(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function b(e){var t=i.mont(e);return 0===u.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function m(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var r,p;for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(c))for(;r.mod(f).cmp(l);)r.iadd(h)}else for(;r.mod(o).cmp(d);)r.iadd(h);if(g(p=r.shrn(1))&&g(r)&&b(p)&&b(r)&&a.test(p)&&a.test(r))return r}}},10660:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(20395).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=c(e,f,f+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var l=1;for(u=c(e,f,e.length,t),f=0;f<a;f++)l*=t;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,l=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;f+=(a=(i=0|e.words[p])*(o=0|t.words[h])+l)/67108864|0,l=67108863&a}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=l[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?y+r:f[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,f=0|a[0],l=8191&f,d=f>>>13,h=0|a[1],p=8191&h,y=h>>>13,g=0|a[2],b=8191&g,m=g>>>13,v=0|a[3],w=8191&v,_=v>>>13,S=0|a[4],E=8191&S,A=S>>>13,O=0|a[5],M=8191&O,T=O>>>13,I=0|a[6],N=8191&I,C=I>>>13,L=0|a[7],x=8191&L,R=L>>>13,k=0|a[8],B=8191&k,P=k>>>13,D=0|a[9],j=8191&D,F=D>>>13,U=0|s[0],H=8191&U,V=U>>>13,z=0|s[1],q=8191&z,K=z>>>13,W=0|s[2],G=8191&W,X=W>>>13,Y=0|s[3],$=8191&Y,J=Y>>>13,Z=0|s[4],Q=8191&Z,ee=Z>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,fe=0|s[8],le=8191&fe,de=fe>>>13,he=0|s[9],pe=8191&he,ye=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(c+(n=Math.imul(l,H))|0)+((8191&(i=(i=Math.imul(l,V))+Math.imul(d,H)|0))<<13)|0;c=((o=Math.imul(d,V))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,H),i=(i=Math.imul(p,V))+Math.imul(y,H)|0,o=Math.imul(y,V);var be=(c+(n=n+Math.imul(l,q)|0)|0)+((8191&(i=(i=i+Math.imul(l,K)|0)+Math.imul(d,q)|0))<<13)|0;c=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,H),i=(i=Math.imul(b,V))+Math.imul(m,H)|0,o=Math.imul(m,V),n=n+Math.imul(p,q)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(y,q)|0,o=o+Math.imul(y,K)|0;var me=(c+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,X)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(w,H),i=(i=Math.imul(w,V))+Math.imul(_,H)|0,o=Math.imul(_,V),n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(m,q)|0,o=o+Math.imul(m,K)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,X)|0;var ve=(c+(n=n+Math.imul(l,$)|0)|0)+((8191&(i=(i=i+Math.imul(l,J)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,H),i=(i=Math.imul(E,V))+Math.imul(A,H)|0,o=Math.imul(A,V),n=n+Math.imul(w,q)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,q)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,X)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,J)|0;var we=(c+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(M,H),i=(i=Math.imul(M,V))+Math.imul(T,H)|0,o=Math.imul(T,V),n=n+Math.imul(E,q)|0,i=(i=i+Math.imul(E,K)|0)+Math.imul(A,q)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,X)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,X)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,ee)|0;var _e=(c+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(d,re)|0))<<13)|0;c=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(N,H),i=(i=Math.imul(N,V))+Math.imul(C,H)|0,o=Math.imul(C,V),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(T,q)|0,o=o+Math.imul(T,K)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,X)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,X)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0;var Se=(c+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(x,H),i=(i=Math.imul(x,V))+Math.imul(R,H)|0,o=Math.imul(R,V),n=n+Math.imul(N,q)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(C,q)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,X)|0,n=n+Math.imul(E,$)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(b,re)|0,i=(i=i+Math.imul(b,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0;var Ee=(c+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,V))+Math.imul(P,H)|0,o=Math.imul(P,V),n=n+Math.imul(x,q)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(R,q)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,X)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Ae=(c+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,de)|0)+Math.imul(d,le)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(j,H),i=(i=Math.imul(j,V))+Math.imul(F,H)|0,o=Math.imul(F,V),n=n+Math.imul(B,q)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(P,q)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(b,ue)|0,i=(i=i+Math.imul(b,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,de)|0;var Oe=(c+(n=n+Math.imul(l,pe)|0)|0)+((8191&(i=(i=i+Math.imul(l,ye)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,ye)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,q),i=(i=Math.imul(j,K))+Math.imul(F,q)|0,o=Math.imul(F,K),n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,X)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,X)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,J)|0,n=n+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ne)|0,n=n+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(b,le)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,de)|0;var Me=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ye)|0)+Math.imul(y,pe)|0))<<13)|0;c=((o=o+Math.imul(y,ye)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,X))+Math.imul(F,G)|0,o=Math.imul(F,X),n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,n=n+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(w,le)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,de)|0;var Te=(c+(n=n+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,ye)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,ye)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,J))+Math.imul(F,$)|0,o=Math.imul(F,J),n=n+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(T,ue)|0,o=o+Math.imul(T,ce)|0,n=n+Math.imul(E,le)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(A,le)|0,o=o+Math.imul(A,de)|0;var Ie=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ye)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,ye)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(j,Q),i=(i=Math.imul(j,ee))+Math.imul(F,Q)|0,o=Math.imul(F,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(T,le)|0,o=o+Math.imul(T,de)|0;var Ne=(c+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ye)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,ye)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,ce)|0,n=n+Math.imul(N,le)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,de)|0;var Ce=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,ye)|0)+Math.imul(T,pe)|0))<<13)|0;c=((o=o+Math.imul(T,ye)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,oe),i=(i=Math.imul(j,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(B,ue)|0,i=(i=i+Math.imul(B,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(x,le)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(R,le)|0,o=o+Math.imul(R,de)|0;var Le=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,ye)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,ye)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(j,ue),i=(i=Math.imul(j,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(B,le)|0,i=(i=i+Math.imul(B,de)|0)+Math.imul(P,le)|0,o=o+Math.imul(P,de)|0;var xe=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,ye)|0)+Math.imul(R,pe)|0))<<13)|0;c=((o=o+Math.imul(R,ye)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,le),i=(i=Math.imul(j,de))+Math.imul(F,le)|0,o=Math.imul(F,de);var Re=(c+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,ye)|0)+Math.imul(P,pe)|0))<<13)|0;c=((o=o+Math.imul(P,ye)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var ke=(c+(n=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,ye))+Math.imul(F,pe)|0))<<13)|0;return c=((o=Math.imul(F,ye))+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,u[0]=ge,u[1]=be,u[2]=me,u[3]=ve,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=Ae,u[9]=Oe,u[10]=Me,u[11]=Te,u[12]=Ie,u[13]=Ne,u[14]=Ce,u[15]=Le,u[16]=xe,u[17]=Re,u[18]=ke,0!==c&&(u[19]=c,r.length++),r};function y(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var f=o-c,l=(0|e.words[f])*(0|t.words[c]),d=67108863&l;s=67108863&(d=d+s|0),i+=(a=(a=a+(l/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):y(this,e,t),r},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},g.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},g.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},g.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,d=c,h=0;h<a;h++){var p=r[f+h],y=n[f+h],g=r[f+h+a],b=n[f+h+a],m=l*g-d*b;b=l*b+d*g,g=m,r[f+h]=p+g,n[f+h]=y+b,r[f+h+a]=p-g,n[f+h+a]=y-b,h!==s&&(m=u*l-c*d,d=u*d+c*l,l=m)}},g.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},g.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},g.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},g.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),l=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,l,n,i);for(var h=0;h<n;h++){var p=s[h]*f[h]-u[h]*l[h];u[h]=s[h]*l[h]+u[h]*f[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),y(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var l=0|this.words[c];this.words[c]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=n.clone()._ishlnsubmul(i,1,u);0===f.negative&&(n=f,s&&(s.words[u]=1));for(var l=u-1;l>=0;l--){var d=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,l);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);s&&(s.words[l]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var f=r.clone(),l=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,f=1;0==(t.words[0]&f)&&c<26;++c,f<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var l=0,d=1;0==(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(r.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(v,m),v.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&r,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&r)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,m),i(_,m),i(S,m),S.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return b[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,c).cmp(u);)f.redIAdd(u);for(var l=this.pow(f,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var y=h,g=0;0!==y.cmp(s);g++)y=y.redSqr();n(g<p);var b=this.pow(l,new o(1).iushln(p-g-1));d=d.redMul(b),l=b.redSqr(),h=h.redMul(l),p=g}return d},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],f=u-1;f>=0;f--){var l=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,(4==++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new A(e)},i(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},42870:(e,t,r)=>{"use strict";var n=t;n.version=r(40763).i8,n.utils=r(60218),n.rand=r(72486),n.curve=r(89751),n.curves=r(51736),n.ec=r(68252),n.eddsa=r(97751)},77975:(e,t,r)=>{"use strict";var n=r(10660),i=r(60218),o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var a,u,c=[];for(a=0;a<n.length;a+=r.step){u=0;for(var f=a+r.step-1;f>=a;f--)u=(u<<1)+n[f];c.push(u)}for(var l=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(a=0;a<c.length;a++)(u=c[a])===h?d=d.mixedAdd(r.points[a]):u===-h&&(d=d.mixedAdd(r.points[a].neg()));l=l.add(d)}return l.toP()},u.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),u=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var f=0;c>=0&&0===a[c];c--)f++;if(c>=0&&f++,u=u.dblp(f),c<0)break;var l=a[c];s(0!==l),u="affine"===e.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){var s,u,c,f=this._wnafT1,l=this._wnafT2,d=this._wnafT3,h=0;for(s=0;s<n;s++){var p=(c=t[s])._getNAFPoints(e);f[s]=p.wnd,l[s]=p.points}for(s=n-1;s>=1;s-=2){var y=s-1,g=s;if(1===f[y]&&1===f[g]){var b=[t[y],null,null,t[g]];0===t[y].y.cmp(t[g].y)?(b[1]=t[y].add(t[g]),b[2]=t[y].toJ().mixedAdd(t[g].neg())):0===t[y].y.cmp(t[g].y.redNeg())?(b[1]=t[y].toJ().mixedAdd(t[g]),b[2]=t[y].add(t[g].neg())):(b[1]=t[y].toJ().mixedAdd(t[g]),b[2]=t[y].toJ().mixedAdd(t[g].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[y],r[g]);for(h=Math.max(v[0].length,h),d[y]=new Array(h),d[g]=new Array(h),u=0;u<h;u++){var w=0|v[0][u],_=0|v[1][u];d[y][u]=m[3*(w+1)+(_+1)],d[g][u]=0,l[y]=b}}else d[y]=o(r[y],f[y],this._bitLength),d[g]=o(r[g],f[g],this._bitLength),h=Math.max(d[y].length,h),h=Math.max(d[g].length,h)}var S=this.jpoint(null,null,null),E=this._wnafT4;for(s=h;s>=0;s--){for(var A=0;s>=0;){var O=!0;for(u=0;u<n;u++)E[u]=0|d[u][s],0!==E[u]&&(O=!1);if(!O)break;A++,s--}if(s>=0&&A++,S=S.dblp(A),s<0)break;for(u=0;u<n;u++){var M=E[u];0!==M&&(M>0?c=l[u][M-1>>1]:M<0&&(c=l[u][-M-1>>1].neg()),S="affine"===c.type?S.mixedAdd(c):S.add(c))}}for(s=0;s<n;s++)l[s]=null;return i?S:S.toP()},u.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},66964:(e,t,r)=>{"use strict";var n=r(60218),i=r(10660),o=r(19105),a=r(77975),s=n.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),f=i.redMul(s),l=a.redMul(o);return this.curve.point(u,c,l,f)},c.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(u);this.zOne?(e=a.redSub(s).redSub(u).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(u)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),e=a.redSub(s).redISub(u).redMul(o),t=c.redMul(n.redSub(u)),r=c.redMul(o))}else n=s.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(u)),r=n.redMul(o);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),f=s.redMul(u),l=o.redMul(u),d=a.redMul(s);return this.curve.point(c,f,d,l)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),l=n.redMul(u).redMul(f);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(l,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},89751:(e,t,r)=>{"use strict";var n=t;n.base=r(77975),n.short=r(20911),n.mont=r(76777),n.edwards=r(66964)},76777:(e,t,r)=>{"use strict";var n=r(10660),i=r(19105),o=r(77975),a=r(60218);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},20911:(e,t,r)=>{"use strict";var n=r(60218),i=r(10660),o=r(19105),a=r(77975),s=n.assert;function u(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,u,c,f,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),y=new i(0),g=new i(0),b=new i(1),m=0;0!==d.cmpn(0);){var v=h.div(d);c=h.sub(v.mul(d)),f=g.sub(v.mul(p));var w=b.sub(v.mul(y));if(!n&&c.cmp(l)<0)t=u.neg(),r=p,n=c.neg(),o=f;else if(n&&2==++m)break;u=c,h=d,d=c,g=p,p=f,b=y,y=w}a=c.neg(),s=f;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},o(c,a.BasePoint),u.prototype.point=function(e,t,r){return new c(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,a.BasePoint),u.prototype.jpoint=function(e,t,r){return new f(this,e,t,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),l=n.redMul(c),d=u.redSqr().redIAdd(f).redISub(l).redISub(l),h=u.redMul(l.redISub(d)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),l=s.redSqr().redIAdd(c).redISub(f).redISub(f),d=s.redMul(f.redISub(l)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(l,d,h)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var f=o.redSqr(),l=c.redSqr(),d=l.redSqr(),h=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(l),y=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(y),b=h.redMul(g);b=b.redIAdd(b).redISub(d);var m=c.redMul(s);t+1<e&&(u=u.redMul(d)),o=y,s=m,c=b}return this.curve.jpoint(o,c.redMul(i),s)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),d=l.redSqr(),h=this.x.redAdd(l).redSqr().redISub(f).redISub(d);h=h.redIAdd(h);var p=f.redAdd(f).redIAdd(f),y=p.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),e=y.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},f.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),d=this.x.redMul(l),h=this.x.redSub(f).redMul(this.x.redAdd(f));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),y=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(y),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var g=l.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},f.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),f=s.redSqr().redISub(c.redAdd(c)),l=c.redISub(f),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(l).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,h,p)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=t.redMul(c);f=(f=f.redIAdd(f)).redIAdd(f);var l=this.x.redMul(s).redISub(f);l=(l=l.redIAdd(l)).redIAdd(l);var d=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,d,h)},f.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},f.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},f.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},51736:(e,t,r)=>{"use strict";var n,i=t,o=r(58925),a=r(89751),s=r(60218).assert;function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(61960)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},68252:(e,t,r)=>{"use strict";var n=r(10660),i=r(26941),o=r(60218),a=r(51736),s=r(72486),u=o.assert,c=r(33257),f=r(25296);function l(e){if(!(this instanceof l))return new l(e);"string"==typeof e&&(u(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=l,l.prototype.keyPair=function(e){return new c(this,e)},l.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},l.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},l.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},l.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},l.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),l=this.n.sub(new n(1)),d=0;;d++){var h=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(l)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var y=p.getX(),g=y.umod(this.n);if(0!==g.cmpn(0)){var b=h.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var m=(p.getY().isOdd()?1:0)|(0!==y.cmp(g)?2:0);return o.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),m^=1),new f({r:g,s:b,recoveryParam:m})}}}}}},l.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),l=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),l)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},l.prototype.recoverPubKey=function(e,t,r,i){u((3&r)===r,"The recovery param is more than two bits"),t=new f(t,i);var o=this.n,a=new n(e),s=t.r,c=t.s,l=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),y=c.mul(h).umod(o);return this.g.mulAdd(p,s,y)},l.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new f(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},33257:(e,t,r)=>{"use strict";var n=r(10660),i=r(60218).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},25296:(e,t,r)=>{"use strict";var n=r(10660),i=r(60218),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function f(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=u(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=u(e,r);if(!1===a)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var f=u(e,r);if(!1===f)return!1;if(e.length!==f+r.place)return!1;var l=e.slice(r.place,f+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new n(c),this.s=new n(l),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];f(n,t.length),(n=n.concat(t)).push(2),f(n,r.length);var o=n.concat(r),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,e)}},97751:(e,t,r)=>{"use strict";var n=r(58925),i=r(51736),o=r(60218),a=o.assert,s=o.parseBytes,u=r(94830),c=r(2676);function f(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=f,f.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},f.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},f.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},f.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},f.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},f.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(e){return o.intFromLE(e)},f.prototype.isPoint=function(e){return e instanceof this.pointClass}},94830:(e,t,r)=>{"use strict";var n=r(60218),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},2676:(e,t,r)=>{"use strict";var n=r(10660),i=r(60218),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function u(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},61960:e=>{e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},60218:(e,t,r)=>{"use strict";var n=t,i=r(10660),o=r(44647),a=r(91349);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!=(n=e.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0==(1&c)?0:3!=(n=t.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},67725:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}y(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,a,c;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=a.length,c=f,console&&console.warn&&console.warn(c)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function d(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else{var c=u.length,f=p(u,c);for(r=0;r<c;++r)n(f[r],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,l(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},94428:(e,t,r)=>{var n=r(59105).Buffer,i=r(54659);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),u=n.alloc(o||0),c=n.alloc(0);a>0||o>0;){var f=new i;f.update(c),f.update(e),t&&f.update(t),c=f.digest();var l=0;if(a>0){var d=s.length-a;l=Math.min(a,c.length),c.copy(s,d,0,l),a-=l}if(l<c.length&&o>0){var h=u.length-o,p=Math.min(o,c.length-l);c.copy(u,h,l,l+p),o-=p}}return c.fill(0),{key:s,iv:u}}},15583:(e,t,r)=>{"use strict";var n=r(68416),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===i.call(e)?function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a):"string"==typeof e?function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,a):function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a)}},3843:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var r=[],n=1,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r}(arguments),s=r(0,i.length-a.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(o=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=",");return r}(u)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,n(a,arguments));return Object(t)===t?t:this}return i.apply(e,n(a,arguments))})),i.prototype){var f=function(){};f.prototype=i.prototype,o.prototype=new f,f.prototype=null}return o}},85395:(e,t,r)=>{"use strict";var n=r(3843);e.exports=Function.prototype.bind||n},65205:(e,t,r)=>{"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},f=u?function(){try{return c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,l=r(89191)(),d=r(18757)(),h=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),p={},y="undefined"!=typeof Uint8Array&&h?h(Uint8Array):n,g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":l&&h?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l&&h?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l&&h?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l&&h?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l&&h?h(""[Symbol.iterator]()):n,"%Symbol%":l?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":f,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(h)try{null.error}catch(e){var b=h(h(e));g["%Error.prototype%"]=b}var m=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&h&&(r=h(i.prototype))}return g[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=r(85395),_=r(65912),S=w.call(Function.call,Array.prototype.concat),E=w.call(Function.apply,Array.prototype.splice),A=w.call(Function.call,String.prototype.replace),O=w.call(Function.call,String.prototype.slice),M=w.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,N=function(e,t){var r,n=e;if(_(v,n)&&(n="%"+(r=v[n])[0]+"%"),_(g,n)){var o=g[n];if(o===p&&(o=m(n)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=O(e,0,1),r=O(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return A(e,T,(function(e,t,r,i){n[n.length]=r?A(i,I,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=N("%"+n+"%",t),s=o.name,c=o.value,f=!1,l=o.alias;l&&(n=l[0],E(r,S([0,1],l)));for(var d=1,h=!0;d<r.length;d+=1){var p=r[d],y=O(p,0,1),b=O(p,-1);if(('"'===y||"'"===y||"`"===y||'"'===b||"'"===b||"`"===b)&&y!==b)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&h||(f=!0),_(g,s="%"+(n+="."+p)+"%"))c=g[s];else if(null!=c){if(!(p in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=r.length){var m=u(c,p);c=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:c[p]}else h=_(c,p),c=c[p];h&&!f&&(g[s]=c)}}return c}},558:(e,t,r)=>{"use strict";var n=r(65205)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},23280:(e,t,r)=>{"use strict";var n=r(65205)("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},18757:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},89191:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(62267);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},62267:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},16697:(e,t,r)=>{"use strict";var n=r(62267);e.exports=function(){return n()&&!!Symbol.toStringTag}},35921:(e,t,r)=>{"use strict";var n=r(59105).Buffer,i=r(8542).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(19105)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},58925:(e,t,r)=>{var n=t;n.utils=r(34554),n.common=r(73390),n.sha=r(88534),n.ripemd=r(75487),n.hmac=r(55691),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},73390:(e,t,r)=>{"use strict";var n=r(34554),i=r(44647);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},55691:(e,t,r)=>{"use strict";var n=r(34554),i=r(44647);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},75487:(e,t,r)=>{"use strict";var n=r(34554),i=r(73390),o=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,c=i.BlockHash;function f(){if(!(this instanceof f))return new f;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(f,c),t.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],f=this.h[4],m=r,v=n,w=i,_=c,S=f,E=0;E<80;E++){var A=a(o(u(r,l(E,n,i,c),e[p[E]+t],d(E)),g[E]),f);r=f,f=c,c=o(i,10),i=n,n=A,A=a(o(u(m,l(79-E,v,w,_),e[y[E]+t],h(E)),b[E]),S),m=S,S=_,_=o(w,10),w=v,v=A}A=s(this.h[1],i,_),this.h[1]=s(this.h[2],c,S),this.h[2]=s(this.h[3],f,m),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,w),this.h[0]=A},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],y=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},88534:(e,t,r)=>{"use strict";t.sha1=r(99750),t.sha224=r(39381),t.sha256=r(80207),t.sha384=r(63939),t.sha512=r(73796)},99750:(e,t,r)=>{"use strict";var n=r(34554),i=r(73390),o=r(1965),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,f=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,f),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],f=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),y=u(a(i,5),c(p,o,f,d),h,r[n],l[p]);h=d,d=f,f=a(o,30),o=i,i=y}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],f),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},39381:(e,t,r)=>{"use strict";var n=r(34554),i=r(80207);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},80207:(e,t,r)=>{"use strict";var n=r(34554),i=r(73390),o=r(1965),a=r(44647),s=n.sum32,u=n.sum32_4,c=n.sum32_5,f=o.ch32,l=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,y=o.g1_256,g=i.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}n.inherits(m,g),e.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(y(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],g=this.h[2],b=this.h[3],m=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var S=c(_,h(m),f(m,v,w),this.k[n],r[n]),E=s(d(i),l(i,o,g));_=w,w=v,v=m,m=s(b,S),b=g,g=o,o=i,i=s(S,E)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],b),this.h[4]=s(this.h[4],m),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},m.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},63939:(e,t,r)=>{"use strict";var n=r(34554),i=r(73796);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},73796:(e,t,r)=>{"use strict";var n=r(34554),i=r(73390),o=r(44647),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,c=n.shr64_lo,f=n.sum64,l=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,y=n.sum64_5_hi,g=n.sum64_5_lo,b=i.BlockHash,m=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=m,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function _(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function S(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function E(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function A(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function O(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function T(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function I(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function N(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,b),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=(g=r[n-4],b=r[n-3],m=void 0,(m=a(g,b,19)^a(b,g,29)^u(g,b,6))<0&&(m+=4294967296),m),o=N(r[n-4],r[n-3]),s=r[n-14],c=r[n-13],f=T(r[n-30],r[n-29]),l=I(r[n-30],r[n-29]),d=r[n-32],y=r[n-31];r[n]=h(i,o,s,c,f,l,d,y),r[n+1]=p(i,o,s,c,f,l,d,y)}var g,b,m},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r,n,i,s=this.W,u=this.h[0],c=this.h[1],h=this.h[2],p=this.h[3],b=this.h[4],m=this.h[5],v=this.h[6],T=this.h[7],I=this.h[8],N=this.h[9],C=this.h[10],L=this.h[11],x=this.h[12],R=this.h[13],k=this.h[14],B=this.h[15];o(this.k.length===s.length);for(var P=0;P<s.length;P+=2){var D=k,j=B,F=(i=void 0,(i=a(r=I,n=N,14)^a(r,n,18)^a(n,r,9))<0&&(i+=4294967296),i),U=M(I,N),H=w(I,0,C,0,x),V=_(0,N,0,L,0,R),z=this.k[P],q=this.k[P+1],K=s[P],W=s[P+1],G=y(D,j,F,U,H,V,z,q,K,W),X=g(D,j,F,U,H,V,z,q,K,W);D=A(u,c),j=O(u,c),F=S(u,0,h,0,b),U=E(0,c,0,p,0,m);var Y=l(D,j,F,U),$=d(D,j,F,U);k=x,B=R,x=C,R=L,C=I,L=N,I=l(v,T,G,X),N=d(T,T,G,X),v=b,T=m,b=h,m=p,h=u,p=c,u=l(G,X,Y,$),c=d(G,X,Y,$)}f(this.h,0,u,c),f(this.h,2,h,p),f(this.h,4,b,m),f(this.h,6,v,T),f(this.h,8,I,N),f(this.h,10,C,L),f(this.h,12,x,R),f(this.h,14,k,B)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},1965:(e,t,r)=>{"use strict";var n=r(34554).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},34554:(e,t,r)=>{"use strict";var n=r(44647),i=r(19105);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=u(i.toString(16))}return r},t.zero2=s,t.zero8=u,t.join32=function(e,t,r,i){var o=r-t;n(o%4==0);for(var a=new Array(o/4),s=0,u=t;s<a.length;s++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[s]=c>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t;return u+=(c=c+n>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+r+i+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var f=0,l=t;return f+=(l=l+n>>>0)<t?1:0,f+=(l=l+o>>>0)<o?1:0,f+=(l=l+s>>>0)<s?1:0,e+r+i+a+u+(f+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},65912:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(85395);e.exports=o.call(n,i)},26941:(e,t,r)=>{"use strict";var n=r(58925),i=r(91349),o=r(44647);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},41178:(e,t,r)=>{var n=r(4254),i=r(85192),o=e.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},98329:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,d=r?-1:1,h=e[t+l];for(l+=d,o=h&(1<<-f)-1,h>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=d,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,l=f>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?d/u:d*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*y}},19105:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},1025:(e,t,r)=>{"use strict";var n=r(16697)(),i=r(34537)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},68416:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var d=document.all;u.call(d)===u.call(document.all)&&(l=function(e){if((f||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(l(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(l(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},99958:(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(16697)(),u=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&u(t)}return u(e)===n}},52160:e=>{"use strict";e.exports=function(e){return e!=e}},34124:(e,t,r)=>{"use strict";var n=r(47208),i=r(31907),o=r(52160),a=r(46226),s=r(28728),u=n(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},46226:(e,t,r)=>{"use strict";var n=r(52160);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},28728:(e,t,r)=>{"use strict";var n=r(31907),i=r(46226);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},44406:(e,t,r)=>{"use strict";var n=r(90194);e.exports=function(e){return!!n(e)}},26056:(e,t,r)=>{var n=r(72221)(r(9649),"DataView");e.exports=n},21102:(e,t,r)=>{var n=r(1637),i=r(16380),o=r(17408),a=r(53997),s=r(34642);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},36491:(e,t,r)=>{var n=r(76073),i=r(23390),o=r(42461),a=r(18190),s=r(95670);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},95651:(e,t,r)=>{var n=r(72221)(r(9649),"Map");e.exports=n},52290:(e,t,r)=>{var n=r(6881),i=r(25089),o=r(67548),a=r(72151),s=r(51476);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},36561:(e,t,r)=>{var n=r(72221)(r(9649),"Promise");e.exports=n},89018:(e,t,r)=>{var n=r(72221)(r(9649),"Set");e.exports=n},88212:(e,t,r)=>{var n=r(52290),i=r(94636),o=r(49810);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},47649:(e,t,r)=>{var n=r(36491),i=r(38023),o=r(39611),a=r(6138),s=r(96961),u=r(32631);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},20997:(e,t,r)=>{var n=r(9649).Symbol;e.exports=n},37830:(e,t,r)=>{var n=r(9649).Uint8Array;e.exports=n},43895:(e,t,r)=>{var n=r(72221)(r(9649),"WeakMap");e.exports=n},65757:e=>{e.exports=function(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}},41155:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}},17296:(e,t,r)=>{var n=r(4830),i=r(27987),o=r(69546),a=r(80758),s=r(95824),u=r(65739),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),f=!r&&i(e),l=!r&&!f&&a(e),d=!r&&!f&&!l&&u(e),h=r||f||l||d,p=h?n(e.length,String):[],y=p.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||l&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,y))||p.push(g);return p}},81078:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},35276:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},22289:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},88902:(e,t,r)=>{var n=r(32618),i=r(17689),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},28627:(e,t,r)=>{var n=r(17689);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},78959:(e,t,r)=>{var n=r(60836);e.exports=function(e,t,r,i){return n(e,(function(e,n,o){t(i,e,r(e),o)})),i}},32618:(e,t,r)=>{var n=r(80026);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},60836:(e,t,r)=>{var n=r(17623),i=r(68804)(n);e.exports=i},33169:(e,t,r)=>{var n=r(35276),i=r(54788);e.exports=function e(t,r,o,a,s){var u=-1,c=t.length;for(o||(o=i),s||(s=[]);++u<c;){var f=t[u];r>0&&o(f)?r>1?e(f,r-1,o,a,s):n(s,f):a||(s[s.length]=f)}return s}},11453:(e,t,r)=>{var n=r(55517)();e.exports=n},17623:(e,t,r)=>{var n=r(11453),i=r(25961);e.exports=function(e,t){return e&&n(e,t,i)}},28829:(e,t,r)=>{var n=r(6927),i=r(49558);e.exports=function(e,t){for(var r=0,o=(t=n(t,e)).length;null!=e&&r<o;)e=e[i(t[r++])];return r&&r==o?e:void 0}},12506:(e,t,r)=>{var n=r(35276),i=r(69546);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},28247:(e,t,r)=>{var n=r(20997),i=r(37386),o=r(4591),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},13233:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},70621:(e,t,r)=>{var n=r(28247),i=r(17734);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},89107:(e,t,r)=>{var n=r(49739),i=r(17734);e.exports=function e(t,r,o,a,s){return t===r||(null==t||null==r||!i(t)&&!i(r)?t!=t&&r!=r:n(t,r,o,a,e,s))}},49739:(e,t,r)=>{var n=r(47649),i=r(79327),o=r(21550),a=r(98761),s=r(11970),u=r(69546),c=r(80758),f=r(65739),l="[object Arguments]",d="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,y,g,b){var m=u(e),v=u(t),w=m?d:s(e),_=v?d:s(t),S=(w=w==l?h:w)==h,E=(_=_==l?h:_)==h,A=w==_;if(A&&c(e)){if(!c(t))return!1;m=!0,S=!1}if(A&&!S)return b||(b=new n),m||f(e)?i(e,t,r,y,g,b):o(e,t,w,r,y,g,b);if(!(1&r)){var O=S&&p.call(e,"__wrapped__"),M=E&&p.call(t,"__wrapped__");if(O||M){var T=O?e.value():e,I=M?t.value():t;return b||(b=new n),g(T,I,r,y,b)}}return!!A&&(b||(b=new n),a(e,t,r,y,g,b))}},24283:(e,t,r)=>{var n=r(47649),i=r(89107);e.exports=function(e,t,r,o){var a=r.length,s=a,u=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=r[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var f=(c=r[a])[0],l=e[f],d=c[1];if(u&&c[2]){if(void 0===l&&!(f in e))return!1}else{var h=new n;if(o)var p=o(l,d,f,e,t,h);if(!(void 0===p?i(d,l,3,o,h):p))return!1}}return!0}},50291:(e,t,r)=>{var n=r(93331),i=r(37114),o=r(12289),a=r(77606),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,l=c.hasOwnProperty,d=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?d:s).test(a(e))}},89278:(e,t,r)=>{var n=r(28247),i=r(80459),o=r(17734),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},55615:(e,t,r)=>{var n=r(68835),i=r(95010),o=r(19568),a=r(69546),s=r(96730);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):n(e):s(e)}},59011:(e,t,r)=>{var n=r(46358),i=r(95513),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},56827:(e,t,r)=>{var n=r(12289),i=r(46358),o=r(34040),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},91996:(e,t,r)=>{var n=r(60836),i=r(46387);e.exports=function(e,t){var r=-1,o=i(e)?Array(e.length):[];return n(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}},68835:(e,t,r)=>{var n=r(24283),i=r(96256),o=r(85447);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},95010:(e,t,r)=>{var n=r(89107),i=r(9229),o=r(86717),a=r(65677),s=r(34834),u=r(85447),c=r(49558);e.exports=function(e,t){return a(e)&&s(t)?u(c(e),t):function(r){var a=i(r,e);return void 0===a&&a===t?o(r,e):n(t,a,3)}}},33092:(e,t,r)=>{var n=r(28829),i=r(17338),o=r(6927);e.exports=function(e,t,r){for(var a=-1,s=t.length,u={};++a<s;){var c=t[a],f=n(e,c);r(f,c)&&i(u,o(c,e),f)}return u}},74430:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},12257:(e,t,r)=>{var n=r(28829);e.exports=function(e){return function(t){return n(t,e)}}},17338:(e,t,r)=>{var n=r(88902),i=r(6927),o=r(95824),a=r(12289),s=r(49558);e.exports=function(e,t,r,u){if(!a(e))return e;for(var c=-1,f=(t=i(t,e)).length,l=f-1,d=e;null!=d&&++c<f;){var h=s(t[c]),p=r;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(c!=l){var y=d[h];void 0===(p=u?u(y,h,d):void 0)&&(p=a(y)?y:o(t[c+1])?[]:{})}n(d,h,p),d=d[h]}return e}},4830:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7874:(e,t,r)=>{var n=r(20997),i=r(81078),o=r(69546),a=r(42008),s=n?n.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},99199:e=>{e.exports=function(e){return function(t){return e(t)}}},48138:e=>{e.exports=function(e,t){return e.has(t)}},6927:(e,t,r)=>{var n=r(69546),i=r(65677),o=r(91503),a=r(39244);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(a(e))}},48976:(e,t,r)=>{var n=r(9649)["__core-js_shared__"];e.exports=n},97147:(e,t,r)=>{var n=r(65757),i=r(78959),o=r(55615),a=r(69546);e.exports=function(e,t){return function(r,s){var u=a(r)?n:i,c=t?t():{};return u(r,e,o(s,2),c)}}},68804:(e,t,r)=>{var n=r(46387);e.exports=function(e,t){return function(r,i){if(null==r)return r;if(!n(r))return e(r,i);for(var o=r.length,a=t?o:-1,s=Object(r);(t?a--:++a<o)&&!1!==i(s[a],a,s););return r}}},55517:e=>{e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===r(o[u],u,o))break}return t}}},80026:(e,t,r)=>{var n=r(72221),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},79327:(e,t,r)=>{var n=r(88212),i=r(22289),o=r(48138);e.exports=function(e,t,r,a,s,u){var c=1&r,f=e.length,l=t.length;if(f!=l&&!(c&&l>f))return!1;var d=u.get(e),h=u.get(t);if(d&&h)return d==t&&h==e;var p=-1,y=!0,g=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++p<f;){var b=e[p],m=t[p];if(a)var v=c?a(m,b,p,t,e,u):a(b,m,p,e,t,u);if(void 0!==v){if(v)continue;y=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(b===e||s(b,e,r,a,u)))return g.push(t)}))){y=!1;break}}else if(b!==m&&!s(b,m,r,a,u)){y=!1;break}}return u.delete(e),u.delete(t),y}},21550:(e,t,r)=>{var n=r(20997),i=r(37830),o=r(17689),a=r(79327),s=r(46498),u=r(56783),c=n?n.prototype:void 0,f=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,l,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!l(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&n;if(h||(h=u),e.size!=t.size&&!p)return!1;var y=d.get(e);if(y)return y==t;n|=2,d.set(e,t);var g=a(h(e),h(t),n,c,l,d);return d.delete(e),g;case"[object Symbol]":if(f)return f.call(e)==f.call(t)}return!1}},98761:(e,t,r)=>{var n=r(28616),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,a,s){var u=1&r,c=n(e),f=c.length;if(f!=n(t).length&&!u)return!1;for(var l=f;l--;){var d=c[l];if(!(u?d in t:i.call(t,d)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var y=!0;s.set(e,t),s.set(t,e);for(var g=u;++l<f;){var b=e[d=c[l]],m=t[d];if(o)var v=u?o(m,b,d,t,e,s):o(b,m,d,e,t,s);if(!(void 0===v?b===m||a(b,m,r,o,s):v)){y=!1;break}g||(g="constructor"==d)}if(y&&!g){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(y=!1)}return s.delete(e),s.delete(t),y}},46954:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},28616:(e,t,r)=>{var n=r(12506),i=r(4918),o=r(25961);e.exports=function(e){return n(e,o,i)}},10478:(e,t,r)=>{var n=r(12506),i=r(2659),o=r(14399);e.exports=function(e){return n(e,o,i)}},55502:(e,t,r)=>{var n=r(89983);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},96256:(e,t,r)=>{var n=r(34834),i=r(25961);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,n(a)]}return t}},72221:(e,t,r)=>{var n=r(50291),i=r(85779);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},65506:(e,t,r)=>{var n=r(78892)(Object.getPrototypeOf,Object);e.exports=n},37386:(e,t,r)=>{var n=r(20997),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},4918:(e,t,r)=>{var n=r(41155),i=r(41258),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},2659:(e,t,r)=>{var n=r(35276),i=r(65506),o=r(4918),a=r(41258),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=i(e);return t}:a;e.exports=s},11970:(e,t,r)=>{var n=r(26056),i=r(95651),o=r(36561),a=r(89018),s=r(43895),u=r(28247),c=r(77606),f="[object Map]",l="[object Promise]",d="[object Set]",h="[object WeakMap]",p="[object DataView]",y=c(n),g=c(i),b=c(o),m=c(a),v=c(s),w=u;(n&&w(new n(new ArrayBuffer(1)))!=p||i&&w(new i)!=f||o&&w(o.resolve())!=l||a&&w(new a)!=d||s&&w(new s)!=h)&&(w=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case y:return p;case g:return f;case b:return l;case m:return d;case v:return h}return t}),e.exports=w},85779:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},32889:(e,t,r)=>{var n=r(6927),i=r(27987),o=r(69546),a=r(95824),s=r(80459),u=r(49558);e.exports=function(e,t,r){for(var c=-1,f=(t=n(t,e)).length,l=!1;++c<f;){var d=u(t[c]);if(!(l=null!=e&&r(e,d)))break;e=e[d]}return l||++c!=f?l:!!(f=null==e?0:e.length)&&s(f)&&a(d,f)&&(o(e)||i(e))}},1637:(e,t,r)=>{var n=r(55586);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},16380:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},17408:(e,t,r)=>{var n=r(55586),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},53997:(e,t,r)=>{var n=r(55586),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},34642:(e,t,r)=>{var n=r(55586);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},54788:(e,t,r)=>{var n=r(20997),i=r(27987),o=r(69546),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},95824:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},65677:(e,t,r)=>{var n=r(69546),i=r(42008),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},89983:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},37114:(e,t,r)=>{var n,i=r(48976),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},46358:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},34834:(e,t,r)=>{var n=r(12289);e.exports=function(e){return e==e&&!n(e)}},76073:e=>{e.exports=function(){this.__data__=[],this.size=0}},23390:(e,t,r)=>{var n=r(28627),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():i.call(t,r,1),--this.size,0))}},42461:(e,t,r)=>{var n=r(28627);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},18190:(e,t,r)=>{var n=r(28627);e.exports=function(e){return n(this.__data__,e)>-1}},95670:(e,t,r)=>{var n=r(28627);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},6881:(e,t,r)=>{var n=r(21102),i=r(36491),o=r(95651);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},25089:(e,t,r)=>{var n=r(55502);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},67548:(e,t,r)=>{var n=r(55502);e.exports=function(e){return n(this,e).get(e)}},72151:(e,t,r)=>{var n=r(55502);e.exports=function(e){return n(this,e).has(e)}},51476:(e,t,r)=>{var n=r(55502);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},46498:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},85447:e=>{e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},72984:(e,t,r)=>{var n=r(2520);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},55586:(e,t,r)=>{var n=r(72221)(Object,"create");e.exports=n},95513:(e,t,r)=>{var n=r(78892)(Object.keys,Object);e.exports=n},34040:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},59214:(e,t,r)=>{e=r.nmd(e);var n=r(46954),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},4591:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},78892:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},9649:(e,t,r)=>{var n=r(46954),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},94636:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},49810:e=>{e.exports=function(e){return this.__data__.has(e)}},56783:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},38023:(e,t,r)=>{var n=r(36491);e.exports=function(){this.__data__=new n,this.size=0}},39611:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},6138:e=>{e.exports=function(e){return this.__data__.get(e)}},96961:e=>{e.exports=function(e){return this.__data__.has(e)}},32631:(e,t,r)=>{var n=r(36491),i=r(95651),o=r(52290);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},91503:(e,t,r)=>{var n=r(72984),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)})),t}));e.exports=a},49558:(e,t,r)=>{var n=r(42008);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},77606:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},17689:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},96372:(e,t,r)=>{var n=r(33169),i=r(82856);e.exports=function(e,t){return n(i(e,t),1)}},60567:(e,t,r)=>{var n=r(33169);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},9229:(e,t,r)=>{var n=r(28829);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},24865:(e,t,r)=>{var n=r(32618),i=r(97147),o=Object.prototype.hasOwnProperty,a=i((function(e,t,r){o.call(e,r)?e[r].push(t):n(e,r,[t])}));e.exports=a},86717:(e,t,r)=>{var n=r(13233),i=r(32889);e.exports=function(e,t){return null!=e&&i(e,t,n)}},19568:e=>{e.exports=function(e){return e}},27987:(e,t,r)=>{var n=r(70621),i=r(17734),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},69546:e=>{var t=Array.isArray;e.exports=t},46387:(e,t,r)=>{var n=r(93331),i=r(80459);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},80758:(e,t,r)=>{e=r.nmd(e);var n=r(9649),i=r(68854),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u},93331:(e,t,r)=>{var n=r(28247),i=r(12289);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},80459:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},12289:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},17734:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},42008:(e,t,r)=>{var n=r(28247),i=r(17734);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},65739:(e,t,r)=>{var n=r(89278),i=r(99199),o=r(59214),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},25961:(e,t,r)=>{var n=r(17296),i=r(59011),o=r(46387);e.exports=function(e){return o(e)?n(e):i(e)}},14399:(e,t,r)=>{var n=r(17296),i=r(56827),o=r(46387);e.exports=function(e){return o(e)?n(e,!0):i(e)}},40180:function(e,t,r){var n;e=r.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,c=128,f=1/0,l=9007199254740991,d=NaN,h=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],y="[object Arguments]",g="[object Array]",b="[object Boolean]",m="[object Date]",v="[object Error]",w="[object Function]",_="[object GeneratorFunction]",S="[object Map]",E="[object Number]",A="[object Object]",O="[object Promise]",M="[object RegExp]",T="[object Set]",I="[object String]",N="[object Symbol]",C="[object WeakMap]",L="[object ArrayBuffer]",x="[object DataView]",R="[object Float32Array]",k="[object Float64Array]",B="[object Int8Array]",P="[object Int16Array]",D="[object Int32Array]",j="[object Uint8Array]",F="[object Uint8ClampedArray]",U="[object Uint16Array]",H="[object Uint32Array]",V=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,G=RegExp(K.source),X=RegExp(W.source),Y=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Me="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ie="["+_e+"]",Ne="["+Te+"]",Ce="["+Se+"]",Le="\\d+",xe="["+Ee+"]",Re="["+Ae+"]",ke="[^"+_e+Te+Le+Ee+Ae+Oe+"]",Be="\\ud83c[\\udffb-\\udfff]",Pe="[^"+_e+"]",De="(?:\\ud83c[\\udde6-\\uddff]){2}",je="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Oe+"]",Ue="\\u200d",He="(?:"+Re+"|"+ke+")",Ve="(?:"+Fe+"|"+ke+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Ce+"|"+Be+")?",We="["+Me+"]?",Ge=We+Ke+"(?:"+Ue+"(?:"+[Pe,De,je].join("|")+")"+We+Ke+")*",Xe="(?:"+[xe,De,je].join("|")+")"+Ge,Ye="(?:"+[Pe+Ce+"?",Ce,De,je,Ie].join("|")+")",$e=RegExp("['’]","g"),Je=RegExp(Ce,"g"),Ze=RegExp(Be+"(?="+Be+")|"+Ye+Ge,"g"),Qe=RegExp([Fe+"?"+Re+"+"+ze+"(?="+[Ne,Fe,"$"].join("|")+")",Ve+"+"+qe+"(?="+[Ne,Fe+He,"$"].join("|")+")",Fe+"?"+He+"+"+ze,Fe+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Xe].join("|"),"g"),et=RegExp("["+Ue+_e+Se+Me+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,it={};it[R]=it[k]=it[B]=it[P]=it[D]=it[j]=it[F]=it[U]=it[H]=!0,it[y]=it[g]=it[L]=it[b]=it[x]=it[m]=it[v]=it[w]=it[S]=it[E]=it[A]=it[M]=it[T]=it[I]=it[C]=!1;var ot={};ot[y]=ot[g]=ot[L]=ot[x]=ot[b]=ot[m]=ot[R]=ot[k]=ot[B]=ot[P]=ot[D]=ot[S]=ot[E]=ot[A]=ot[M]=ot[T]=ot[I]=ot[N]=ot[j]=ot[F]=ot[U]=ot[H]=!0,ot[v]=ot[w]=ot[C]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ut=parseInt,ct="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ft="object"==typeof self&&self&&self.Object===Object&&self,lt=ct||ft||Function("return this")(),dt=t&&!t.nodeType&&t,ht=dt&&e&&!e.nodeType&&e,pt=ht&&ht.exports===dt,yt=pt&&ct.process,gt=function(){try{return ht&&ht.require&&ht.require("util").types||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),bt=gt&&gt.isArrayBuffer,mt=gt&&gt.isDate,vt=gt&&gt.isMap,wt=gt&&gt.isRegExp,_t=gt&&gt.isSet,St=gt&&gt.isTypedArray;function Et(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function At(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}function Ot(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Mt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Tt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function It(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function Nt(e,t){return!(null==e||!e.length)&&Ft(e,t,0)>-1}function Ct(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function Lt(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function xt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Rt(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function kt(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function Bt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Pt=zt("length");function Dt(e,t,r){var n;return r(e,(function(e,r,i){if(t(e,r,i))return n=r,!1})),n}function jt(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ft(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):jt(e,Ht,r)}function Ut(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}function Ht(e){return e!=e}function Vt(e,t){var r=null==e?0:e.length;return r?Wt(e,t)/r:d}function zt(e){return function(t){return null==t?i:t[e]}}function qt(e){return function(t){return null==e?i:e[t]}}function Kt(e,t,r,n,i){return i(e,(function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)})),r}function Wt(e,t){for(var r,n=-1,o=e.length;++n<o;){var a=t(e[n]);a!==i&&(r=r===i?a:r+a)}return r}function Gt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Xt(e){return e?e.slice(0,lr(e)+1).replace(ne,""):e}function Yt(e){return function(t){return e(t)}}function $t(e,t){return Lt(t,(function(t){return e[t]}))}function Jt(e,t){return e.has(t)}function Zt(e,t){for(var r=-1,n=e.length;++r<n&&Ft(t,e[r],0)>-1;);return r}function Qt(e,t){for(var r=e.length;r--&&Ft(t,e[r],0)>-1;);return r}var er=qt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tr=qt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rr(e){return"\\"+at[e]}function nr(e){return et.test(e)}function ir(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function or(e,t){return function(r){return e(t(r))}}function ar(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r];a!==t&&a!==s||(e[r]=s,o[i++]=r)}return o}function sr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function ur(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function cr(e){return nr(e)?function(e){for(var t=Ze.lastIndex=0;Ze.test(e);)++t;return t}(e):Pt(e)}function fr(e){return nr(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.split("")}(e)}function lr(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var dr=qt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hr=function e(t){var r,n=(t=null==t?lt:hr.defaults(lt.Object(),t,hr.pick(lt,rt))).Array,ie=t.Date,_e=t.Error,Se=t.Function,Ee=t.Math,Ae=t.Object,Oe=t.RegExp,Me=t.String,Te=t.TypeError,Ie=n.prototype,Ne=Se.prototype,Ce=Ae.prototype,Le=t["__core-js_shared__"],xe=Ne.toString,Re=Ce.hasOwnProperty,ke=0,Be=(r=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Pe=Ce.toString,De=xe.call(Ae),je=lt._,Fe=Oe("^"+xe.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=pt?t.Buffer:i,He=t.Symbol,Ve=t.Uint8Array,ze=Ue?Ue.allocUnsafe:i,qe=or(Ae.getPrototypeOf,Ae),Ke=Ae.create,We=Ce.propertyIsEnumerable,Ge=Ie.splice,Xe=He?He.isConcatSpreadable:i,Ye=He?He.iterator:i,Ze=He?He.toStringTag:i,et=function(){try{var e=uo(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==lt.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==lt.Date.now&&ie.now,ft=t.setTimeout!==lt.setTimeout&&t.setTimeout,dt=Ee.ceil,ht=Ee.floor,yt=Ae.getOwnPropertySymbols,gt=Ue?Ue.isBuffer:i,Pt=t.isFinite,qt=Ie.join,pr=or(Ae.keys,Ae),yr=Ee.max,gr=Ee.min,br=ie.now,mr=t.parseInt,vr=Ee.random,wr=Ie.reverse,_r=uo(t,"DataView"),Sr=uo(t,"Map"),Er=uo(t,"Promise"),Ar=uo(t,"Set"),Or=uo(t,"WeakMap"),Mr=uo(Ae,"create"),Tr=Or&&new Or,Ir={},Nr=Do(_r),Cr=Do(Sr),Lr=Do(Er),xr=Do(Ar),Rr=Do(Or),kr=He?He.prototype:i,Br=kr?kr.valueOf:i,Pr=kr?kr.toString:i;function Dr(e){if(es(e)&&!za(e)&&!(e instanceof Hr)){if(e instanceof Ur)return e;if(Re.call(e,"__wrapped__"))return jo(e)}return new Ur(e)}var jr=function(){function e(){}return function(t){if(!Qa(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Fr(){}function Ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Hr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Vr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function zr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Kr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new qr;++t<r;)this.add(e[t])}function Wr(e){var t=this.__data__=new zr(e);this.size=t.size}function Gr(e,t){var r=za(e),n=!r&&Va(e),i=!r&&!n&&Ga(e),o=!r&&!n&&!i&&us(e),a=r||n||i||o,s=a?Gt(e.length,Me):[],u=s.length;for(var c in e)!t&&!Re.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||go(c,u))||s.push(c);return s}function Xr(e){var t=e.length;return t?e[Kn(0,t-1)]:i}function Yr(e,t){return xo(Mi(e),on(t,0,e.length))}function $r(e){return xo(Mi(e))}function Jr(e,t,r){(r!==i&&!Fa(e[t],r)||r===i&&!(t in e))&&rn(e,t,r)}function Zr(e,t,r){var n=e[t];Re.call(e,t)&&Fa(n,r)&&(r!==i||t in e)||rn(e,t,r)}function Qr(e,t){for(var r=e.length;r--;)if(Fa(e[r][0],t))return r;return-1}function en(e,t,r,n){return fn(e,(function(e,i,o){t(n,e,r(e),o)})),n}function tn(e,t){return e&&Ti(t,Cs(t),e)}function rn(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function nn(e,t){for(var r=-1,o=t.length,a=n(o),s=null==e;++r<o;)a[r]=s?i:Os(e,t[r]);return a}function on(e,t,r){return e==e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function an(e,t,r,n,o,a){var s,u=1&t,c=2&t,f=4&t;if(r&&(s=o?r(e,n,o,a):r(e)),s!==i)return s;if(!Qa(e))return e;var l=za(e);if(l){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return Mi(e,s)}else{var d=lo(e),h=d==w||d==_;if(Ga(e))return wi(e,u);if(d==A||d==y||h&&!o){if(s=c||h?{}:po(e),!u)return c?function(e,t){return Ti(e,fo(e),t)}(e,function(e,t){return e&&Ti(t,Ls(t),e)}(s,e)):function(e,t){return Ti(e,co(e),t)}(e,tn(s,e))}else{if(!ot[d])return o?e:{};s=function(e,t,r){var n,i=e.constructor;switch(t){case L:return _i(e);case b:case m:return new i(+e);case x:return function(e,t){var r=t?_i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case R:case k:case B:case P:case D:case j:case F:case U:case H:return Si(e,r);case S:return new i;case E:case I:return new i(e);case M:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new i;case N:return n=e,Br?Ae(Br.call(n)):{}}}(e,d,u)}}a||(a=new Wr);var p=a.get(e);if(p)return p;a.set(e,s),os(e)?e.forEach((function(n){s.add(an(n,t,r,n,e,a))})):ts(e)&&e.forEach((function(n,i){s.set(i,an(n,t,r,i,e,a))}));var g=l?i:(f?c?to:eo:c?Ls:Cs)(e);return Ot(g||e,(function(n,i){g&&(n=e[i=n]),Zr(s,i,an(n,t,r,i,e,a))})),s}function sn(e,t,r){var n=r.length;if(null==e)return!n;for(e=Ae(e);n--;){var o=r[n],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function un(e,t,r){if("function"!=typeof e)throw new Te(o);return Io((function(){e.apply(i,r)}),t)}function cn(e,t,r,n){var i=-1,o=Nt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;r&&(t=Lt(t,Yt(r))),n?(o=Ct,a=!1):t.length>=200&&(o=Jt,a=!1,t=new Kr(t));e:for(;++i<s;){var f=e[i],l=null==r?f:r(f);if(f=n||0!==f?f:0,a&&l==l){for(var d=c;d--;)if(t[d]===l)continue e;u.push(f)}else o(t,l,n)||u.push(f)}return u}Dr.templateSettings={escape:Y,evaluate:$,interpolate:J,variable:"",imports:{_:Dr}},Dr.prototype=Fr.prototype,Dr.prototype.constructor=Dr,Ur.prototype=jr(Fr.prototype),Ur.prototype.constructor=Ur,Hr.prototype=jr(Fr.prototype),Hr.prototype.constructor=Hr,Vr.prototype.clear=function(){this.__data__=Mr?Mr(null):{},this.size=0},Vr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vr.prototype.get=function(e){var t=this.__data__;if(Mr){var r=t[e];return r===a?i:r}return Re.call(t,e)?t[e]:i},Vr.prototype.has=function(e){var t=this.__data__;return Mr?t[e]!==i:Re.call(t,e)},Vr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Mr&&t===i?a:t,this},zr.prototype.clear=function(){this.__data__=[],this.size=0},zr.prototype.delete=function(e){var t=this.__data__,r=Qr(t,e);return!(r<0||(r==t.length-1?t.pop():Ge.call(t,r,1),--this.size,0))},zr.prototype.get=function(e){var t=this.__data__,r=Qr(t,e);return r<0?i:t[r][1]},zr.prototype.has=function(e){return Qr(this.__data__,e)>-1},zr.prototype.set=function(e,t){var r=this.__data__,n=Qr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},qr.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(Sr||zr),string:new Vr}},qr.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},qr.prototype.get=function(e){return ao(this,e).get(e)},qr.prototype.has=function(e){return ao(this,e).has(e)},qr.prototype.set=function(e,t){var r=ao(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Kr.prototype.add=Kr.prototype.push=function(e){return this.__data__.set(e,a),this},Kr.prototype.has=function(e){return this.__data__.has(e)},Wr.prototype.clear=function(){this.__data__=new zr,this.size=0},Wr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Wr.prototype.get=function(e){return this.__data__.get(e)},Wr.prototype.has=function(e){return this.__data__.has(e)},Wr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof zr){var n=r.__data__;if(!Sr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new qr(n)}return r.set(e,t),this.size=r.size,this};var fn=Ci(mn),ln=Ci(vn,!0);function dn(e,t){var r=!0;return fn(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function hn(e,t,r){for(var n=-1,o=e.length;++n<o;){var a=e[n],s=t(a);if(null!=s&&(u===i?s==s&&!ss(s):r(s,u)))var u=s,c=a}return c}function pn(e,t){var r=[];return fn(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function yn(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=yo),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?yn(s,t-1,r,n,i):xt(i,s):n||(i[i.length]=s)}return i}var gn=Li(),bn=Li(!0);function mn(e,t){return e&&gn(e,t,Cs)}function vn(e,t){return e&&bn(e,t,Cs)}function wn(e,t){return It(t,(function(t){return $a(e[t])}))}function _n(e,t){for(var r=0,n=(t=gi(t,e)).length;null!=e&&r<n;)e=e[Po(t[r++])];return r&&r==n?e:i}function Sn(e,t,r){var n=t(e);return za(e)?n:xt(n,r(e))}function En(e){return null==e?e===i?"[object Undefined]":"[object Null]":Ze&&Ze in Ae(e)?function(e){var t=Re.call(e,Ze),r=e[Ze];try{e[Ze]=i;var n=!0}catch(e){}var o=Pe.call(e);return n&&(t?e[Ze]=r:delete e[Ze]),o}(e):function(e){return Pe.call(e)}(e)}function An(e,t){return e>t}function On(e,t){return null!=e&&Re.call(e,t)}function Mn(e,t){return null!=e&&t in Ae(e)}function Tn(e,t,r){for(var o=r?Ct:Nt,a=e[0].length,s=e.length,u=s,c=n(s),f=1/0,l=[];u--;){var d=e[u];u&&t&&(d=Lt(d,Yt(t))),f=gr(d.length,f),c[u]=!r&&(t||a>=120&&d.length>=120)?new Kr(u&&d):i}d=e[0];var h=-1,p=c[0];e:for(;++h<a&&l.length<f;){var y=d[h],g=t?t(y):y;if(y=r||0!==y?y:0,!(p?Jt(p,g):o(l,g,r))){for(u=s;--u;){var b=c[u];if(!(b?Jt(b,g):o(e[u],g,r)))continue e}p&&p.push(g),l.push(y)}}return l}function In(e,t,r){var n=null==(e=Oo(e,t=gi(t,e)))?e:e[Po(Yo(t))];return null==n?i:Et(n,e,r)}function Nn(e){return es(e)&&En(e)==y}function Cn(e,t,r,n,o){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,r,n,o,a){var s=za(e),u=za(t),c=s?g:lo(e),f=u?g:lo(t),l=(c=c==y?A:c)==A,d=(f=f==y?A:f)==A,h=c==f;if(h&&Ga(e)){if(!Ga(t))return!1;s=!0,l=!1}if(h&&!l)return a||(a=new Wr),s||us(e)?Zi(e,t,r,n,o,a):function(e,t,r,n,i,o,a){switch(r){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!o(new Ve(e),new Ve(t)));case b:case m:case E:return Fa(+e,+t);case v:return e.name==t.name&&e.message==t.message;case M:case I:return e==t+"";case S:var s=ir;case T:var u=1&n;if(s||(s=sr),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var f=Zi(s(e),s(t),n,i,o,a);return a.delete(e),f;case N:if(Br)return Br.call(e)==Br.call(t)}return!1}(e,t,c,r,n,o,a);if(!(1&r)){var p=l&&Re.call(e,"__wrapped__"),w=d&&Re.call(t,"__wrapped__");if(p||w){var _=p?e.value():e,O=w?t.value():t;return a||(a=new Wr),o(_,O,r,n,a)}}return!!h&&(a||(a=new Wr),function(e,t,r,n,o,a){var s=1&r,u=eo(e),c=u.length;if(c!=eo(t).length&&!s)return!1;for(var f=c;f--;){var l=u[f];if(!(s?l in t:Re.call(t,l)))return!1}var d=a.get(e),h=a.get(t);if(d&&h)return d==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var y=s;++f<c;){var g=e[l=u[f]],b=t[l];if(n)var m=s?n(b,g,l,t,e,a):n(g,b,l,e,t,a);if(!(m===i?g===b||o(g,b,r,n,a):m)){p=!1;break}y||(y="constructor"==l)}if(p&&!y){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,r,n,o,a))}(e,t,r,n,Cn,o))}function Ln(e,t,r,n){var o=r.length,a=o,s=!n;if(null==e)return!a;for(e=Ae(e);o--;){var u=r[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=r[o])[0],f=e[c],l=u[1];if(s&&u[2]){if(f===i&&!(c in e))return!1}else{var d=new Wr;if(n)var h=n(f,l,c,e,t,d);if(!(h===i?Cn(l,f,3,n,d):h))return!1}}return!0}function xn(e){return!(!Qa(e)||(t=e,Be&&Be in t))&&($a(e)?Fe:ye).test(Do(e));var t}function Rn(e){return"function"==typeof e?e:null==e?ru:"object"==typeof e?za(e)?jn(e[0],e[1]):Dn(e):lu(e)}function kn(e){if(!_o(e))return pr(e);var t=[];for(var r in Ae(e))Re.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Bn(e,t){return e<t}function Pn(e,t){var r=-1,i=Ka(e)?n(e.length):[];return fn(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Dn(e){var t=so(e);return 1==t.length&&t[0][2]?Eo(t[0][0],t[0][1]):function(r){return r===e||Ln(r,e,t)}}function jn(e,t){return mo(e)&&So(t)?Eo(Po(e),t):function(r){var n=Os(r,e);return n===i&&n===t?Ms(r,e):Cn(t,n,3)}}function Fn(e,t,r,n,o){e!==t&&gn(t,(function(a,s){if(o||(o=new Wr),Qa(a))!function(e,t,r,n,o,a,s){var u=Mo(e,r),c=Mo(t,r),f=s.get(c);if(f)Jr(e,r,f);else{var l=a?a(u,c,r+"",e,t,s):i,d=l===i;if(d){var h=za(c),p=!h&&Ga(c),y=!h&&!p&&us(c);l=c,h||p||y?za(u)?l=u:Wa(u)?l=Mi(u):p?(d=!1,l=wi(c,!0)):y?(d=!1,l=Si(c,!0)):l=[]:ns(c)||Va(c)?(l=u,Va(u)?l=gs(u):Qa(u)&&!$a(u)||(l=po(c))):d=!1}d&&(s.set(c,l),o(l,c,n,a,s),s.delete(c)),Jr(e,r,l)}}(e,t,s,r,Fn,n,o);else{var u=n?n(Mo(e,s),a,s+"",e,t,o):i;u===i&&(u=a),Jr(e,s,u)}}),Ls)}function Un(e,t){var r=e.length;if(r)return go(t+=t<0?r:0,r)?e[t]:i}function Hn(e,t,r){t=t.length?Lt(t,(function(e){return za(e)?function(t){return _n(t,1===e.length?e[0]:e)}:e})):[ru];var n=-1;t=Lt(t,Yt(oo()));var i=Pn(e,(function(e,r,i){var o=Lt(t,(function(t){return t(e)}));return{criteria:o,index:++n,value:e}}));return function(e,t){var n=e.length;for(e.sort((function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var u=Ei(i[n],o[n]);if(u)return n>=s?u:u*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));n--;)e[n]=e[n].value;return e}(i)}function Vn(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],s=_n(e,a);r(s,a)&&$n(o,gi(a,e),s)}return o}function zn(e,t,r,n){var i=n?Ut:Ft,o=-1,a=t.length,s=e;for(e===t&&(t=Mi(t)),r&&(s=Lt(e,Yt(r)));++o<a;)for(var u=0,c=t[o],f=r?r(c):c;(u=i(s,f,u,n))>-1;)s!==e&&Ge.call(s,u,1),Ge.call(e,u,1);return e}function qn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;go(i)?Ge.call(e,i,1):ui(e,i)}}return e}function Kn(e,t){return e+ht(vr()*(t-e+1))}function Wn(e,t){var r="";if(!e||t<1||t>l)return r;do{t%2&&(r+=e),(t=ht(t/2))&&(e+=e)}while(t);return r}function Gn(e,t){return No(Ao(e,t,ru),e+"")}function Xn(e){return Xr(Fs(e))}function Yn(e,t){var r=Fs(e);return xo(r,on(t,0,r.length))}function $n(e,t,r,n){if(!Qa(e))return e;for(var o=-1,a=(t=gi(t,e)).length,s=a-1,u=e;null!=u&&++o<a;){var c=Po(t[o]),f=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var l=u[c];(f=n?n(l,c,u):i)===i&&(f=Qa(l)?l:go(t[o+1])?[]:{})}Zr(u,c,f),u=u[c]}return e}var Jn=Tr?function(e,t){return Tr.set(e,t),e}:ru,Zn=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Qs(t),writable:!0})}:ru;function Qn(e){return xo(Fs(e))}function ei(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function ti(e,t){var r;return fn(e,(function(e,n,i){return!(r=t(e,n,i))})),!!r}function ri(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=e[o];null!==a&&!ss(a)&&(r?a<=t:a<t)?n=o+1:i=o}return i}return ni(e,t,ru,r)}function ni(e,t,r,n){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,u=null===t,c=ss(t),f=t===i;o<a;){var l=ht((o+a)/2),d=r(e[l]),h=d!==i,p=null===d,y=d==d,g=ss(d);if(s)var b=n||y;else b=f?y&&(n||h):u?y&&h&&(n||!p):c?y&&h&&!p&&(n||!g):!p&&!g&&(n?d<=t:d<t);b?o=l+1:a=l}return gr(a,4294967294)}function ii(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!Fa(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function oi(e){return"number"==typeof e?e:ss(e)?d:+e}function ai(e){if("string"==typeof e)return e;if(za(e))return Lt(e,ai)+"";if(ss(e))return Pr?Pr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function si(e,t,r){var n=-1,i=Nt,o=e.length,a=!0,s=[],u=s;if(r)a=!1,i=Ct;else if(o>=200){var c=t?null:Wi(e);if(c)return sr(c);a=!1,i=Jt,u=new Kr}else u=t?[]:s;e:for(;++n<o;){var f=e[n],l=t?t(f):f;if(f=r||0!==f?f:0,a&&l==l){for(var d=u.length;d--;)if(u[d]===l)continue e;t&&u.push(l),s.push(f)}else i(u,l,r)||(u!==s&&u.push(l),s.push(f))}return s}function ui(e,t){return null==(e=Oo(e,t=gi(t,e)))||delete e[Po(Yo(t))]}function ci(e,t,r,n){return $n(e,t,r(_n(e,t)),n)}function fi(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?ei(e,n?0:o,n?o+1:i):ei(e,n?o+1:0,n?i:o)}function li(e,t){var r=e;return r instanceof Hr&&(r=r.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,xt([e],t.args))}),r)}function di(e,t,r){var i=e.length;if(i<2)return i?si(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=cn(a[o]||s,e[u],t,r));return si(yn(a,1),t,r)}function hi(e,t,r){for(var n=-1,o=e.length,a=t.length,s={};++n<o;){var u=n<a?t[n]:i;r(s,e[n],u)}return s}function pi(e){return Wa(e)?e:[]}function yi(e){return"function"==typeof e?e:ru}function gi(e,t){return za(e)?e:mo(e,t)?[e]:Bo(bs(e))}var bi=Gn;function mi(e,t,r){var n=e.length;return r=r===i?n:r,!t&&r>=n?e:ei(e,t,r)}var vi=at||function(e){return lt.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var r=e.length,n=ze?ze(r):new e.constructor(r);return e.copy(n),n}function _i(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Si(e,t){var r=t?_i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var r=e!==i,n=null===e,o=e==e,a=ss(e),s=t!==i,u=null===t,c=t==t,f=ss(t);if(!u&&!f&&!a&&e>t||a&&s&&c&&!u&&!f||n&&s&&c||!r&&c||!o)return 1;if(!n&&!a&&!f&&e<t||f&&r&&o&&!n&&!a||u&&r&&o||!s&&o||!c)return-1}return 0}function Ai(e,t,r,i){for(var o=-1,a=e.length,s=r.length,u=-1,c=t.length,f=yr(a-s,0),l=n(c+f),d=!i;++u<c;)l[u]=t[u];for(;++o<s;)(d||o<a)&&(l[r[o]]=e[o]);for(;f--;)l[u++]=e[o++];return l}function Oi(e,t,r,i){for(var o=-1,a=e.length,s=-1,u=r.length,c=-1,f=t.length,l=yr(a-u,0),d=n(l+f),h=!i;++o<l;)d[o]=e[o];for(var p=o;++c<f;)d[p+c]=t[c];for(;++s<u;)(h||o<a)&&(d[p+r[s]]=e[o++]);return d}function Mi(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Ti(e,t,r,n){var o=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=n?n(r[u],e[u],u,r,e):i;c===i&&(c=e[u]),o?rn(r,u,c):Zr(r,u,c)}return r}function Ii(e,t){return function(r,n){var i=za(r)?At:en,o=t?t():{};return i(r,e,oo(n,2),o)}}function Ni(e){return Gn((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:i,s=o>2?r[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&bo(r[0],r[1],s)&&(a=o<3?i:a,o=1),t=Ae(t);++n<o;){var u=r[n];u&&e(t,u,n,a)}return t}))}function Ci(e,t){return function(r,n){if(null==r)return r;if(!Ka(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Ae(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function Li(e){return function(t,r,n){for(var i=-1,o=Ae(t),a=n(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===r(o[u],u,o))break}return t}}function xi(e){return function(t){var r=nr(t=bs(t))?fr(t):i,n=r?r[0]:t.charAt(0),o=r?mi(r,1).join(""):t.slice(1);return n[e]()+o}}function Ri(e){return function(t){return Rt($s(Vs(t).replace($e,"")),e,"")}}function ki(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=jr(e.prototype),n=e.apply(r,t);return Qa(n)?n:r}}function Bi(e){return function(t,r,n){var o=Ae(t);if(!Ka(t)){var a=oo(r,3);t=Cs(t),r=function(e){return a(o[e],e,o)}}var s=e(t,r,n);return s>-1?o[a?t[s]:s]:i}}function Pi(e){return Qi((function(t){var r=t.length,n=r,a=Ur.prototype.thru;for(e&&t.reverse();n--;){var s=t[n];if("function"!=typeof s)throw new Te(o);if(a&&!u&&"wrapper"==no(s))var u=new Ur([],!0)}for(n=u?n:r;++n<r;){var c=no(s=t[n]),f="wrapper"==c?ro(s):i;u=f&&vo(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?u[no(f[0])].apply(u,f[3]):1==s.length&&vo(s)?u[c]():u.thru(s)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&za(n))return u.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function Di(e,t,r,o,a,s,u,f,l,d){var h=t&c,p=1&t,y=2&t,g=24&t,b=512&t,m=y?i:ki(e);return function c(){for(var v=arguments.length,w=n(v),_=v;_--;)w[_]=arguments[_];if(g)var S=io(c),E=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(w,S);if(o&&(w=Ai(w,o,a,g)),s&&(w=Oi(w,s,u,g)),v-=E,g&&v<d){var A=ar(w,S);return qi(e,t,Di,c.placeholder,r,w,A,f,l,d-v)}var O=p?r:this,M=y?O[e]:e;return v=w.length,f?w=function(e,t){for(var r=e.length,n=gr(t.length,r),o=Mi(e);n--;){var a=t[n];e[n]=go(a,r)?o[a]:i}return e}(w,f):b&&v>1&&w.reverse(),h&&l<v&&(w.length=l),this&&this!==lt&&this instanceof c&&(M=m||ki(M)),M.apply(O,w)}}function ji(e,t){return function(r,n){return function(e,t,r,n){return mn(e,(function(e,i,o){t(n,r(e),i,o)})),n}(r,e,t(n),{})}}function Fi(e,t){return function(r,n){var o;if(r===i&&n===i)return t;if(r!==i&&(o=r),n!==i){if(o===i)return n;"string"==typeof r||"string"==typeof n?(r=ai(r),n=ai(n)):(r=oi(r),n=oi(n)),o=e(r,n)}return o}}function Ui(e){return Qi((function(t){return t=Lt(t,Yt(oo())),Gn((function(r){var n=this;return e(t,(function(e){return Et(e,n,r)}))}))}))}function Hi(e,t){var r=(t=t===i?" ":ai(t)).length;if(r<2)return r?Wn(t,e):t;var n=Wn(t,dt(e/cr(t)));return nr(t)?mi(fr(n),0,e).join(""):n.slice(0,e)}function Vi(e){return function(t,r,o){return o&&"number"!=typeof o&&bo(t,r,o)&&(r=o=i),t=ds(t),r===i?(r=t,t=0):r=ds(r),function(e,t,r,i){for(var o=-1,a=yr(dt((t-e)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=e,e+=r;return s}(t,r,o=o===i?t<r?1:-1:ds(o),e)}}function zi(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=ys(t),r=ys(r)),e(t,r)}}function qi(e,t,r,n,o,a,s,c,f,l){var d=8&t;t|=d?u:64,4&(t&=~(d?64:u))||(t&=-4);var h=[e,t,o,d?a:i,d?s:i,d?i:a,d?i:s,c,f,l],p=r.apply(i,h);return vo(e)&&To(p,h),p.placeholder=n,Co(p,e,t)}function Ki(e){var t=Ee[e];return function(e,r){if(e=ys(e),(r=null==r?0:gr(hs(r),292))&&Pt(e)){var n=(bs(e)+"e").split("e");return+((n=(bs(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Wi=Ar&&1/sr(new Ar([,-0]))[1]==f?function(e){return new Ar(e)}:su;function Gi(e){return function(t){var r=lo(t);return r==S?ir(t):r==T?ur(t):function(e,t){return Lt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xi(e,t,r,a,f,l,d,h){var p=2&t;if(!p&&"function"!=typeof e)throw new Te(o);var y=a?a.length:0;if(y||(t&=-97,a=f=i),d=d===i?d:yr(hs(d),0),h=h===i?h:hs(h),y-=f?f.length:0,64&t){var g=a,b=f;a=f=i}var m=p?i:ro(e),v=[e,t,r,a,f,g,b,l,d,h];if(m&&function(e,t){var r=e[1],n=t[1],i=r|n,o=i<131,a=n==c&&8==r||n==c&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!o&&!a)return e;1&n&&(e[2]=t[2],i|=1&r?0:4);var u=t[3];if(u){var f=e[3];e[3]=f?Ai(f,u,t[4]):u,e[4]=f?ar(e[3],s):t[4]}(u=t[5])&&(f=e[5],e[5]=f?Oi(f,u,t[6]):u,e[6]=f?ar(e[5],s):t[6]),(u=t[7])&&(e[7]=u),n&c&&(e[8]=null==e[8]?t[8]:gr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(v,m),e=v[0],t=v[1],r=v[2],a=v[3],f=v[4],!(h=v[9]=v[9]===i?p?0:e.length:yr(v[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,r){var o=ki(e);return function a(){for(var s=arguments.length,u=n(s),c=s,f=io(a);c--;)u[c]=arguments[c];var l=s<3&&u[0]!==f&&u[s-1]!==f?[]:ar(u,f);return(s-=l.length)<r?qi(e,t,Di,a.placeholder,i,u,l,i,i,r-s):Et(this&&this!==lt&&this instanceof a?o:e,this,u)}}(e,t,h):t!=u&&33!=t||f.length?Di.apply(i,v):function(e,t,r,i){var o=1&t,a=ki(e);return function t(){for(var s=-1,u=arguments.length,c=-1,f=i.length,l=n(f+u),d=this&&this!==lt&&this instanceof t?a:e;++c<f;)l[c]=i[c];for(;u--;)l[c++]=arguments[++s];return Et(d,o?r:this,l)}}(e,t,r,a);else var w=function(e,t,r){var n=1&t,i=ki(e);return function t(){return(this&&this!==lt&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,r);return Co((m?Jn:To)(w,v),e,t)}function Yi(e,t,r,n){return e===i||Fa(e,Ce[r])&&!Re.call(n,r)?t:e}function $i(e,t,r,n,o,a){return Qa(e)&&Qa(t)&&(a.set(t,e),Fn(e,t,i,$i,a),a.delete(t)),e}function Ji(e){return ns(e)?i:e}function Zi(e,t,r,n,o,a){var s=1&r,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var f=a.get(e),l=a.get(t);if(f&&l)return f==t&&l==e;var d=-1,h=!0,p=2&r?new Kr:i;for(a.set(e,t),a.set(t,e);++d<u;){var y=e[d],g=t[d];if(n)var b=s?n(g,y,d,t,e,a):n(y,g,d,e,t,a);if(b!==i){if(b)continue;h=!1;break}if(p){if(!Bt(t,(function(e,t){if(!Jt(p,t)&&(y===e||o(y,e,r,n,a)))return p.push(t)}))){h=!1;break}}else if(y!==g&&!o(y,g,r,n,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function Qi(e){return No(Ao(e,i,qo),e+"")}function eo(e){return Sn(e,Cs,co)}function to(e){return Sn(e,Ls,fo)}var ro=Tr?function(e){return Tr.get(e)}:su;function no(e){for(var t=e.name+"",r=Ir[t],n=Re.call(Ir,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function io(e){return(Re.call(Dr,"placeholder")?Dr:e).placeholder}function oo(){var e=Dr.iteratee||nu;return e=e===nu?Rn:e,arguments.length?e(arguments[0],arguments[1]):e}function ao(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function so(e){for(var t=Cs(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,So(i)]}return t}function uo(e,t){var r=function(e,t){return null==e?i:e[t]}(e,t);return xn(r)?r:i}var co=yt?function(e){return null==e?[]:(e=Ae(e),It(yt(e),(function(t){return We.call(e,t)})))}:pu,fo=yt?function(e){for(var t=[];e;)xt(t,co(e)),e=qe(e);return t}:pu,lo=En;function ho(e,t,r){for(var n=-1,i=(t=gi(t,e)).length,o=!1;++n<i;){var a=Po(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Za(i)&&go(a,i)&&(za(e)||Va(e))}function po(e){return"function"!=typeof e.constructor||_o(e)?{}:jr(qe(e))}function yo(e){return za(e)||Va(e)||!!(Xe&&e&&e[Xe])}function go(e,t){var r=typeof e;return!!(t=null==t?l:t)&&("number"==r||"symbol"!=r&&be.test(e))&&e>-1&&e%1==0&&e<t}function bo(e,t,r){if(!Qa(r))return!1;var n=typeof t;return!!("number"==n?Ka(r)&&go(t,r.length):"string"==n&&t in r)&&Fa(r[t],e)}function mo(e,t){if(za(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ss(e))||Q.test(e)||!Z.test(e)||null!=t&&e in Ae(t)}function vo(e){var t=no(e),r=Dr[t];if("function"!=typeof r||!(t in Hr.prototype))return!1;if(e===r)return!0;var n=ro(r);return!!n&&e===n[0]}(_r&&lo(new _r(new ArrayBuffer(1)))!=x||Sr&&lo(new Sr)!=S||Er&&lo(Er.resolve())!=O||Ar&&lo(new Ar)!=T||Or&&lo(new Or)!=C)&&(lo=function(e){var t=En(e),r=t==A?e.constructor:i,n=r?Do(r):"";if(n)switch(n){case Nr:return x;case Cr:return S;case Lr:return O;case xr:return T;case Rr:return C}return t});var wo=Le?$a:yu;function _o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ce)}function So(e){return e==e&&!Qa(e)}function Eo(e,t){return function(r){return null!=r&&r[e]===t&&(t!==i||e in Ae(r))}}function Ao(e,t,r){return t=yr(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=yr(i.length-t,0),s=n(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=n(t+1);++o<t;)u[o]=i[o];return u[t]=r(s),Et(e,this,u)}}function Oo(e,t){return t.length<2?e:_n(e,ei(t,0,-1))}function Mo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var To=Lo(Jn),Io=ft||function(e,t){return lt.setTimeout(e,t)},No=Lo(Zn);function Co(e,t,r){var n=t+"";return No(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ot(p,(function(r){var n="_."+r[0];t&r[1]&&!Nt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(n),r)))}function Lo(e){var t=0,r=0;return function(){var n=br(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function xo(e,t){var r=-1,n=e.length,o=n-1;for(t=t===i?n:t;++r<t;){var a=Kn(r,o),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Ro,ko,Bo=(Ro=Ra((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,r,n,i){t.push(n?i.replace(fe,"$1"):r||e)})),t}),(function(e){return 500===ko.size&&ko.clear(),e})),ko=Ro.cache,Ro);function Po(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Do(e){if(null!=e){try{return xe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function jo(e){if(e instanceof Hr)return e.clone();var t=new Ur(e.__wrapped__,e.__chain__);return t.__actions__=Mi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Fo=Gn((function(e,t){return Wa(e)?cn(e,yn(t,1,Wa,!0)):[]})),Uo=Gn((function(e,t){var r=Yo(t);return Wa(r)&&(r=i),Wa(e)?cn(e,yn(t,1,Wa,!0),oo(r,2)):[]})),Ho=Gn((function(e,t){var r=Yo(t);return Wa(r)&&(r=i),Wa(e)?cn(e,yn(t,1,Wa,!0),i,r):[]}));function Vo(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:hs(r);return i<0&&(i=yr(n+i,0)),jt(e,oo(t,3),i)}function zo(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n-1;return r!==i&&(o=hs(r),o=r<0?yr(n+o,0):gr(o,n-1)),jt(e,oo(t,3),o,!0)}function qo(e){return null!=e&&e.length?yn(e,1):[]}function Ko(e){return e&&e.length?e[0]:i}var Wo=Gn((function(e){var t=Lt(e,pi);return t.length&&t[0]===e[0]?Tn(t):[]})),Go=Gn((function(e){var t=Yo(e),r=Lt(e,pi);return t===Yo(r)?t=i:r.pop(),r.length&&r[0]===e[0]?Tn(r,oo(t,2)):[]})),Xo=Gn((function(e){var t=Yo(e),r=Lt(e,pi);return(t="function"==typeof t?t:i)&&r.pop(),r.length&&r[0]===e[0]?Tn(r,i,t):[]}));function Yo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var $o=Gn(Jo);function Jo(e,t){return e&&e.length&&t&&t.length?zn(e,t):e}var Zo=Qi((function(e,t){var r=null==e?0:e.length,n=nn(e,t);return qn(e,Lt(t,(function(e){return go(e,r)?+e:e})).sort(Ei)),n}));function Qo(e){return null==e?e:wr.call(e)}var ea=Gn((function(e){return si(yn(e,1,Wa,!0))})),ta=Gn((function(e){var t=Yo(e);return Wa(t)&&(t=i),si(yn(e,1,Wa,!0),oo(t,2))})),ra=Gn((function(e){var t=Yo(e);return t="function"==typeof t?t:i,si(yn(e,1,Wa,!0),i,t)}));function na(e){if(!e||!e.length)return[];var t=0;return e=It(e,(function(e){if(Wa(e))return t=yr(e.length,t),!0})),Gt(t,(function(t){return Lt(e,zt(t))}))}function ia(e,t){if(!e||!e.length)return[];var r=na(e);return null==t?r:Lt(r,(function(e){return Et(t,i,e)}))}var oa=Gn((function(e,t){return Wa(e)?cn(e,t):[]})),aa=Gn((function(e){return di(It(e,Wa))})),sa=Gn((function(e){var t=Yo(e);return Wa(t)&&(t=i),di(It(e,Wa),oo(t,2))})),ua=Gn((function(e){var t=Yo(e);return t="function"==typeof t?t:i,di(It(e,Wa),i,t)})),ca=Gn(na),fa=Gn((function(e){var t=e.length,r=t>1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,ia(e,r)}));function la(e){var t=Dr(e);return t.__chain__=!0,t}function da(e,t){return t(e)}var ha=Qi((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Hr&&go(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:da,args:[o],thisArg:i}),new Ur(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),pa=Ii((function(e,t,r){Re.call(e,r)?++e[r]:rn(e,r,1)})),ya=Bi(Vo),ga=Bi(zo);function ba(e,t){return(za(e)?Ot:fn)(e,oo(t,3))}function ma(e,t){return(za(e)?Mt:ln)(e,oo(t,3))}var va=Ii((function(e,t,r){Re.call(e,r)?e[r].push(t):rn(e,r,[t])})),wa=Gn((function(e,t,r){var i=-1,o="function"==typeof t,a=Ka(e)?n(e.length):[];return fn(e,(function(e){a[++i]=o?Et(t,e,r):In(e,t,r)})),a})),_a=Ii((function(e,t,r){rn(e,r,t)}));function Sa(e,t){return(za(e)?Lt:Pn)(e,oo(t,3))}var Ea=Ii((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),Aa=Gn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&bo(e,t[0],t[1])?t=[]:r>2&&bo(t[0],t[1],t[2])&&(t=[t[0]]),Hn(e,yn(t,1),[])})),Oa=ct||function(){return lt.Date.now()};function Ma(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,Xi(e,c,i,i,i,i,t)}function Ta(e,t){var r;if("function"!=typeof t)throw new Te(o);return e=hs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var Ia=Gn((function(e,t,r){var n=1;if(r.length){var i=ar(r,io(Ia));n|=u}return Xi(e,n,t,r,i)})),Na=Gn((function(e,t,r){var n=3;if(r.length){var i=ar(r,io(Na));n|=u}return Xi(t,n,e,r,i)}));function Ca(e,t,r){var n,a,s,u,c,f,l=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new Te(o);function y(t){var r=n,o=a;return n=a=i,l=t,u=e.apply(o,r)}function g(e){var r=e-f;return f===i||r>=t||r<0||h&&e-l>=s}function b(){var e=Oa();if(g(e))return m(e);c=Io(b,function(e){var r=t-(e-f);return h?gr(r,s-(e-l)):r}(e))}function m(e){return c=i,p&&n?y(e):(n=a=i,u)}function v(){var e=Oa(),r=g(e);if(n=arguments,a=this,f=e,r){if(c===i)return function(e){return l=e,c=Io(b,t),d?y(e):u}(f);if(h)return vi(c),c=Io(b,t),y(f)}return c===i&&(c=Io(b,t)),u}return t=ys(t)||0,Qa(r)&&(d=!!r.leading,s=(h="maxWait"in r)?yr(ys(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p),v.cancel=function(){c!==i&&vi(c),l=0,n=f=a=c=i},v.flush=function(){return c===i?u:m(Oa())},v}var La=Gn((function(e,t){return un(e,1,t)})),xa=Gn((function(e,t,r){return un(e,ys(t)||0,r)}));function Ra(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(o);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Ra.Cache||qr),r}function ka(e){if("function"!=typeof e)throw new Te(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ra.Cache=qr;var Ba=bi((function(e,t){var r=(t=1==t.length&&za(t[0])?Lt(t[0],Yt(oo())):Lt(yn(t,1),Yt(oo()))).length;return Gn((function(n){for(var i=-1,o=gr(n.length,r);++i<o;)n[i]=t[i].call(this,n[i]);return Et(e,this,n)}))})),Pa=Gn((function(e,t){var r=ar(t,io(Pa));return Xi(e,u,i,t,r)})),Da=Gn((function(e,t){var r=ar(t,io(Da));return Xi(e,64,i,t,r)})),ja=Qi((function(e,t){return Xi(e,256,i,i,i,t)}));function Fa(e,t){return e===t||e!=e&&t!=t}var Ua=zi(An),Ha=zi((function(e,t){return e>=t})),Va=Nn(function(){return arguments}())?Nn:function(e){return es(e)&&Re.call(e,"callee")&&!We.call(e,"callee")},za=n.isArray,qa=bt?Yt(bt):function(e){return es(e)&&En(e)==L};function Ka(e){return null!=e&&Za(e.length)&&!$a(e)}function Wa(e){return es(e)&&Ka(e)}var Ga=gt||yu,Xa=mt?Yt(mt):function(e){return es(e)&&En(e)==m};function Ya(e){if(!es(e))return!1;var t=En(e);return t==v||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ns(e)}function $a(e){if(!Qa(e))return!1;var t=En(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==hs(e)}function Za(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function Qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=vt?Yt(vt):function(e){return es(e)&&lo(e)==S};function rs(e){return"number"==typeof e||es(e)&&En(e)==E}function ns(e){if(!es(e)||En(e)!=A)return!1;var t=qe(e);if(null===t)return!0;var r=Re.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&xe.call(r)==De}var is=wt?Yt(wt):function(e){return es(e)&&En(e)==M},os=_t?Yt(_t):function(e){return es(e)&&lo(e)==T};function as(e){return"string"==typeof e||!za(e)&&es(e)&&En(e)==I}function ss(e){return"symbol"==typeof e||es(e)&&En(e)==N}var us=St?Yt(St):function(e){return es(e)&&Za(e.length)&&!!it[En(e)]},cs=zi(Bn),fs=zi((function(e,t){return e<=t}));function ls(e){if(!e)return[];if(Ka(e))return as(e)?fr(e):Mi(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=lo(e);return(t==S?ir:t==T?sr:Fs)(e)}function ds(e){return e?(e=ys(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=ds(e),r=t%1;return t==t?r?t-r:t:0}function ps(e){return e?on(hs(e),0,h):0}function ys(e){if("number"==typeof e)return e;if(ss(e))return d;if(Qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var r=pe.test(e);return r||ge.test(e)?ut(e.slice(2),r?2:8):he.test(e)?d:+e}function gs(e){return Ti(e,Ls(e))}function bs(e){return null==e?"":ai(e)}var ms=Ni((function(e,t){if(_o(t)||Ka(t))Ti(t,Cs(t),e);else for(var r in t)Re.call(t,r)&&Zr(e,r,t[r])})),vs=Ni((function(e,t){Ti(t,Ls(t),e)})),ws=Ni((function(e,t,r,n){Ti(t,Ls(t),e,n)})),_s=Ni((function(e,t,r,n){Ti(t,Cs(t),e,n)})),Ss=Qi(nn),Es=Gn((function(e,t){e=Ae(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&bo(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],s=Ls(a),u=-1,c=s.length;++u<c;){var f=s[u],l=e[f];(l===i||Fa(l,Ce[f])&&!Re.call(e,f))&&(e[f]=a[f])}return e})),As=Gn((function(e){return e.push(i,$i),Et(Rs,i,e)}));function Os(e,t,r){var n=null==e?i:_n(e,t);return n===i?r:n}function Ms(e,t){return null!=e&&ho(e,t,Mn)}var Ts=ji((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),e[t]=r}),Qs(ru)),Is=ji((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),Re.call(e,t)?e[t].push(r):e[t]=[r]}),oo),Ns=Gn(In);function Cs(e){return Ka(e)?Gr(e):kn(e)}function Ls(e){return Ka(e)?Gr(e,!0):function(e){if(!Qa(e))return function(e){var t=[];if(null!=e)for(var r in Ae(e))t.push(r);return t}(e);var t=_o(e),r=[];for(var n in e)("constructor"!=n||!t&&Re.call(e,n))&&r.push(n);return r}(e)}var xs=Ni((function(e,t,r){Fn(e,t,r)})),Rs=Ni((function(e,t,r,n){Fn(e,t,r,n)})),ks=Qi((function(e,t){var r={};if(null==e)return r;var n=!1;t=Lt(t,(function(t){return t=gi(t,e),n||(n=t.length>1),t})),Ti(e,to(e),r),n&&(r=an(r,7,Ji));for(var i=t.length;i--;)ui(r,t[i]);return r})),Bs=Qi((function(e,t){return null==e?{}:function(e,t){return Vn(e,t,(function(t,r){return Ms(e,r)}))}(e,t)}));function Ps(e,t){if(null==e)return{};var r=Lt(to(e),(function(e){return[e]}));return t=oo(t),Vn(e,r,(function(e,r){return t(e,r[0])}))}var Ds=Gi(Cs),js=Gi(Ls);function Fs(e){return null==e?[]:$t(e,Cs(e))}var Us=Ri((function(e,t,r){return t=t.toLowerCase(),e+(r?Hs(t):t)}));function Hs(e){return Ys(bs(e).toLowerCase())}function Vs(e){return(e=bs(e))&&e.replace(me,er).replace(Je,"")}var zs=Ri((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),qs=Ri((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ks=xi("toLowerCase"),Ws=Ri((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Gs=Ri((function(e,t,r){return e+(r?" ":"")+Ys(t)})),Xs=Ri((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ys=xi("toUpperCase");function $s(e,t,r){return e=bs(e),(t=r?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Js=Gn((function(e,t){try{return Et(e,i,t)}catch(e){return Ya(e)?e:new _e(e)}})),Zs=Qi((function(e,t){return Ot(t,(function(t){t=Po(t),rn(e,t,Ia(e[t],e))})),e}));function Qs(e){return function(){return e}}var eu=Pi(),tu=Pi(!0);function ru(e){return e}function nu(e){return Rn("function"==typeof e?e:an(e,1))}var iu=Gn((function(e,t){return function(r){return In(r,e,t)}})),ou=Gn((function(e,t){return function(r){return In(e,r,t)}}));function au(e,t,r){var n=Cs(t),i=wn(t,n);null!=r||Qa(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=wn(t,Cs(t)));var o=!(Qa(r)&&"chain"in r&&!r.chain),a=$a(e);return Ot(i,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=Mi(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,xt([this.value()],arguments))})})),e}function su(){}var uu=Ui(Lt),cu=Ui(Tt),fu=Ui(Bt);function lu(e){return mo(e)?zt(Po(e)):function(e){return function(t){return _n(t,e)}}(e)}var du=Vi(),hu=Vi(!0);function pu(){return[]}function yu(){return!1}var gu,bu=Fi((function(e,t){return e+t}),0),mu=Ki("ceil"),vu=Fi((function(e,t){return e/t}),1),wu=Ki("floor"),_u=Fi((function(e,t){return e*t}),1),Su=Ki("round"),Eu=Fi((function(e,t){return e-t}),0);return Dr.after=function(e,t){if("function"!=typeof t)throw new Te(o);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Dr.ary=Ma,Dr.assign=ms,Dr.assignIn=vs,Dr.assignInWith=ws,Dr.assignWith=_s,Dr.at=Ss,Dr.before=Ta,Dr.bind=Ia,Dr.bindAll=Zs,Dr.bindKey=Na,Dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return za(e)?e:[e]},Dr.chain=la,Dr.chunk=function(e,t,r){t=(r?bo(e,t,r):t===i)?1:yr(hs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=n(dt(o/t));a<o;)u[s++]=ei(e,a,a+=t);return u},Dr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i},Dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return xt(za(r)?Mi(r):[r],yn(t,1))},Dr.cond=function(e){var t=null==e?0:e.length,r=oo();return e=t?Lt(e,(function(e){if("function"!=typeof e[1])throw new Te(o);return[r(e[0]),e[1]]})):[],Gn((function(r){for(var n=-1;++n<t;){var i=e[n];if(Et(i[0],this,r))return Et(i[1],this,r)}}))},Dr.conforms=function(e){return function(e){var t=Cs(e);return function(r){return sn(r,e,t)}}(an(e,1))},Dr.constant=Qs,Dr.countBy=pa,Dr.create=function(e,t){var r=jr(e);return null==t?r:tn(r,t)},Dr.curry=function e(t,r,n){var o=Xi(t,8,i,i,i,i,i,r=n?i:r);return o.placeholder=e.placeholder,o},Dr.curryRight=function e(t,r,n){var o=Xi(t,16,i,i,i,i,i,r=n?i:r);return o.placeholder=e.placeholder,o},Dr.debounce=Ca,Dr.defaults=Es,Dr.defaultsDeep=As,Dr.defer=La,Dr.delay=xa,Dr.difference=Fo,Dr.differenceBy=Uo,Dr.differenceWith=Ho,Dr.drop=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,(t=r||t===i?1:hs(t))<0?0:t,n):[]},Dr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,0,(t=n-(t=r||t===i?1:hs(t)))<0?0:t):[]},Dr.dropRightWhile=function(e,t){return e&&e.length?fi(e,oo(t,3),!0,!0):[]},Dr.dropWhile=function(e,t){return e&&e.length?fi(e,oo(t,3),!0):[]},Dr.fill=function(e,t,r,n){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&bo(e,t,r)&&(r=0,n=o),function(e,t,r,n){var o=e.length;for((r=hs(r))<0&&(r=-r>o?0:o+r),(n=n===i||n>o?o:hs(n))<0&&(n+=o),n=r>n?0:ps(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Dr.filter=function(e,t){return(za(e)?It:pn)(e,oo(t,3))},Dr.flatMap=function(e,t){return yn(Sa(e,t),1)},Dr.flatMapDeep=function(e,t){return yn(Sa(e,t),f)},Dr.flatMapDepth=function(e,t,r){return r=r===i?1:hs(r),yn(Sa(e,t),r)},Dr.flatten=qo,Dr.flattenDeep=function(e){return null!=e&&e.length?yn(e,f):[]},Dr.flattenDepth=function(e,t){return null!=e&&e.length?yn(e,t=t===i?1:hs(t)):[]},Dr.flip=function(e){return Xi(e,512)},Dr.flow=eu,Dr.flowRight=tu,Dr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},Dr.functions=function(e){return null==e?[]:wn(e,Cs(e))},Dr.functionsIn=function(e){return null==e?[]:wn(e,Ls(e))},Dr.groupBy=va,Dr.initial=function(e){return null!=e&&e.length?ei(e,0,-1):[]},Dr.intersection=Wo,Dr.intersectionBy=Go,Dr.intersectionWith=Xo,Dr.invert=Ts,Dr.invertBy=Is,Dr.invokeMap=wa,Dr.iteratee=nu,Dr.keyBy=_a,Dr.keys=Cs,Dr.keysIn=Ls,Dr.map=Sa,Dr.mapKeys=function(e,t){var r={};return t=oo(t,3),mn(e,(function(e,n,i){rn(r,t(e,n,i),e)})),r},Dr.mapValues=function(e,t){var r={};return t=oo(t,3),mn(e,(function(e,n,i){rn(r,n,t(e,n,i))})),r},Dr.matches=function(e){return Dn(an(e,1))},Dr.matchesProperty=function(e,t){return jn(e,an(t,1))},Dr.memoize=Ra,Dr.merge=xs,Dr.mergeWith=Rs,Dr.method=iu,Dr.methodOf=ou,Dr.mixin=au,Dr.negate=ka,Dr.nthArg=function(e){return e=hs(e),Gn((function(t){return Un(t,e)}))},Dr.omit=ks,Dr.omitBy=function(e,t){return Ps(e,ka(oo(t)))},Dr.once=function(e){return Ta(2,e)},Dr.orderBy=function(e,t,r,n){return null==e?[]:(za(t)||(t=null==t?[]:[t]),za(r=n?i:r)||(r=null==r?[]:[r]),Hn(e,t,r))},Dr.over=uu,Dr.overArgs=Ba,Dr.overEvery=cu,Dr.overSome=fu,Dr.partial=Pa,Dr.partialRight=Da,Dr.partition=Ea,Dr.pick=Bs,Dr.pickBy=Ps,Dr.property=lu,Dr.propertyOf=function(e){return function(t){return null==e?i:_n(e,t)}},Dr.pull=$o,Dr.pullAll=Jo,Dr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?zn(e,t,oo(r,2)):e},Dr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?zn(e,t,i,r):e},Dr.pullAt=Zo,Dr.range=du,Dr.rangeRight=hu,Dr.rearg=ja,Dr.reject=function(e,t){return(za(e)?It:pn)(e,ka(oo(t,3)))},Dr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],o=e.length;for(t=oo(t,3);++n<o;){var a=e[n];t(a,n,e)&&(r.push(a),i.push(n))}return qn(e,i),r},Dr.rest=function(e,t){if("function"!=typeof e)throw new Te(o);return Gn(e,t=t===i?t:hs(t))},Dr.reverse=Qo,Dr.sampleSize=function(e,t,r){return t=(r?bo(e,t,r):t===i)?1:hs(t),(za(e)?Yr:Yn)(e,t)},Dr.set=function(e,t,r){return null==e?e:$n(e,t,r)},Dr.setWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:$n(e,t,r,n)},Dr.shuffle=function(e){return(za(e)?$r:Qn)(e)},Dr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&bo(e,t,r)?(t=0,r=n):(t=null==t?0:hs(t),r=r===i?n:hs(r)),ei(e,t,r)):[]},Dr.sortBy=Aa,Dr.sortedUniq=function(e){return e&&e.length?ii(e):[]},Dr.sortedUniqBy=function(e,t){return e&&e.length?ii(e,oo(t,2)):[]},Dr.split=function(e,t,r){return r&&"number"!=typeof r&&bo(e,t,r)&&(t=r=i),(r=r===i?h:r>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ai(t))&&nr(e)?mi(fr(e),0,r):e.split(t,r):[]},Dr.spread=function(e,t){if("function"!=typeof e)throw new Te(o);return t=null==t?0:yr(hs(t),0),Gn((function(r){var n=r[t],i=mi(r,0,t);return n&&xt(i,n),Et(e,this,i)}))},Dr.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Dr.take=function(e,t,r){return e&&e.length?ei(e,0,(t=r||t===i?1:hs(t))<0?0:t):[]},Dr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?ei(e,(t=n-(t=r||t===i?1:hs(t)))<0?0:t,n):[]},Dr.takeRightWhile=function(e,t){return e&&e.length?fi(e,oo(t,3),!1,!0):[]},Dr.takeWhile=function(e,t){return e&&e.length?fi(e,oo(t,3)):[]},Dr.tap=function(e,t){return t(e),e},Dr.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Te(o);return Qa(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Ca(e,t,{leading:n,maxWait:t,trailing:i})},Dr.thru=da,Dr.toArray=ls,Dr.toPairs=Ds,Dr.toPairsIn=js,Dr.toPath=function(e){return za(e)?Lt(e,Po):ss(e)?[e]:Mi(Bo(bs(e)))},Dr.toPlainObject=gs,Dr.transform=function(e,t,r){var n=za(e),i=n||Ga(e)||us(e);if(t=oo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Qa(e)&&$a(o)?jr(qe(e)):{}}return(i?Ot:mn)(e,(function(e,n,i){return t(r,e,n,i)})),r},Dr.unary=function(e){return Ma(e,1)},Dr.union=ea,Dr.unionBy=ta,Dr.unionWith=ra,Dr.uniq=function(e){return e&&e.length?si(e):[]},Dr.uniqBy=function(e,t){return e&&e.length?si(e,oo(t,2)):[]},Dr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},Dr.unset=function(e,t){return null==e||ui(e,t)},Dr.unzip=na,Dr.unzipWith=ia,Dr.update=function(e,t,r){return null==e?e:ci(e,t,yi(r))},Dr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:ci(e,t,yi(r),n)},Dr.values=Fs,Dr.valuesIn=function(e){return null==e?[]:$t(e,Ls(e))},Dr.without=oa,Dr.words=$s,Dr.wrap=function(e,t){return Pa(yi(t),e)},Dr.xor=aa,Dr.xorBy=sa,Dr.xorWith=ua,Dr.zip=ca,Dr.zipObject=function(e,t){return hi(e||[],t||[],Zr)},Dr.zipObjectDeep=function(e,t){return hi(e||[],t||[],$n)},Dr.zipWith=fa,Dr.entries=Ds,Dr.entriesIn=js,Dr.extend=vs,Dr.extendWith=ws,au(Dr,Dr),Dr.add=bu,Dr.attempt=Js,Dr.camelCase=Us,Dr.capitalize=Hs,Dr.ceil=mu,Dr.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=ys(r))==r?r:0),t!==i&&(t=(t=ys(t))==t?t:0),on(ys(e),t,r)},Dr.clone=function(e){return an(e,4)},Dr.cloneDeep=function(e){return an(e,5)},Dr.cloneDeepWith=function(e,t){return an(e,5,t="function"==typeof t?t:i)},Dr.cloneWith=function(e,t){return an(e,4,t="function"==typeof t?t:i)},Dr.conformsTo=function(e,t){return null==t||sn(e,t,Cs(t))},Dr.deburr=Vs,Dr.defaultTo=function(e,t){return null==e||e!=e?t:e},Dr.divide=vu,Dr.endsWith=function(e,t,r){e=bs(e),t=ai(t);var n=e.length,o=r=r===i?n:on(hs(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},Dr.eq=Fa,Dr.escape=function(e){return(e=bs(e))&&X.test(e)?e.replace(W,tr):e},Dr.escapeRegExp=function(e){return(e=bs(e))&&re.test(e)?e.replace(te,"\\$&"):e},Dr.every=function(e,t,r){var n=za(e)?Tt:dn;return r&&bo(e,t,r)&&(t=i),n(e,oo(t,3))},Dr.find=ya,Dr.findIndex=Vo,Dr.findKey=function(e,t){return Dt(e,oo(t,3),mn)},Dr.findLast=ga,Dr.findLastIndex=zo,Dr.findLastKey=function(e,t){return Dt(e,oo(t,3),vn)},Dr.floor=wu,Dr.forEach=ba,Dr.forEachRight=ma,Dr.forIn=function(e,t){return null==e?e:gn(e,oo(t,3),Ls)},Dr.forInRight=function(e,t){return null==e?e:bn(e,oo(t,3),Ls)},Dr.forOwn=function(e,t){return e&&mn(e,oo(t,3))},Dr.forOwnRight=function(e,t){return e&&vn(e,oo(t,3))},Dr.get=Os,Dr.gt=Ua,Dr.gte=Ha,Dr.has=function(e,t){return null!=e&&ho(e,t,On)},Dr.hasIn=Ms,Dr.head=Ko,Dr.identity=ru,Dr.includes=function(e,t,r,n){e=Ka(e)?e:Fs(e),r=r&&!n?hs(r):0;var i=e.length;return r<0&&(r=yr(i+r,0)),as(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Ft(e,t,r)>-1},Dr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:hs(r);return i<0&&(i=yr(n+i,0)),Ft(e,t,i)},Dr.inRange=function(e,t,r){return t=ds(t),r===i?(r=t,t=0):r=ds(r),function(e,t,r){return e>=gr(t,r)&&e<yr(t,r)}(e=ys(e),t,r)},Dr.invoke=Ns,Dr.isArguments=Va,Dr.isArray=za,Dr.isArrayBuffer=qa,Dr.isArrayLike=Ka,Dr.isArrayLikeObject=Wa,Dr.isBoolean=function(e){return!0===e||!1===e||es(e)&&En(e)==b},Dr.isBuffer=Ga,Dr.isDate=Xa,Dr.isElement=function(e){return es(e)&&1===e.nodeType&&!ns(e)},Dr.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&(za(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||us(e)||Va(e)))return!e.length;var t=lo(e);if(t==S||t==T)return!e.size;if(_o(e))return!kn(e).length;for(var r in e)if(Re.call(e,r))return!1;return!0},Dr.isEqual=function(e,t){return Cn(e,t)},Dr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return n===i?Cn(e,t,i,r):!!n},Dr.isError=Ya,Dr.isFinite=function(e){return"number"==typeof e&&Pt(e)},Dr.isFunction=$a,Dr.isInteger=Ja,Dr.isLength=Za,Dr.isMap=ts,Dr.isMatch=function(e,t){return e===t||Ln(e,t,so(t))},Dr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:i,Ln(e,t,so(t),r)},Dr.isNaN=function(e){return rs(e)&&e!=+e},Dr.isNative=function(e){if(wo(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xn(e)},Dr.isNil=function(e){return null==e},Dr.isNull=function(e){return null===e},Dr.isNumber=rs,Dr.isObject=Qa,Dr.isObjectLike=es,Dr.isPlainObject=ns,Dr.isRegExp=is,Dr.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=l},Dr.isSet=os,Dr.isString=as,Dr.isSymbol=ss,Dr.isTypedArray=us,Dr.isUndefined=function(e){return e===i},Dr.isWeakMap=function(e){return es(e)&&lo(e)==C},Dr.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==En(e)},Dr.join=function(e,t){return null==e?"":qt.call(e,t)},Dr.kebabCase=zs,Dr.last=Yo,Dr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=hs(r))<0?yr(n+o,0):gr(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):jt(e,Ht,o,!0)},Dr.lowerCase=qs,Dr.lowerFirst=Ks,Dr.lt=cs,Dr.lte=fs,Dr.max=function(e){return e&&e.length?hn(e,ru,An):i},Dr.maxBy=function(e,t){return e&&e.length?hn(e,oo(t,2),An):i},Dr.mean=function(e){return Vt(e,ru)},Dr.meanBy=function(e,t){return Vt(e,oo(t,2))},Dr.min=function(e){return e&&e.length?hn(e,ru,Bn):i},Dr.minBy=function(e,t){return e&&e.length?hn(e,oo(t,2),Bn):i},Dr.stubArray=pu,Dr.stubFalse=yu,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=_u,Dr.nth=function(e,t){return e&&e.length?Un(e,hs(t)):i},Dr.noConflict=function(){return lt._===this&&(lt._=je),this},Dr.noop=su,Dr.now=Oa,Dr.pad=function(e,t,r){e=bs(e);var n=(t=hs(t))?cr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return Hi(ht(i),r)+e+Hi(dt(i),r)},Dr.padEnd=function(e,t,r){e=bs(e);var n=(t=hs(t))?cr(e):0;return t&&n<t?e+Hi(t-n,r):e},Dr.padStart=function(e,t,r){e=bs(e);var n=(t=hs(t))?cr(e):0;return t&&n<t?Hi(t-n,r)+e:e},Dr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),mr(bs(e).replace(ne,""),t||0)},Dr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&bo(e,t,r)&&(t=r=i),r===i&&("boolean"==typeof t?(r=t,t=i):"boolean"==typeof e&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ds(e),t===i?(t=e,e=0):t=ds(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var o=vr();return gr(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return Kn(e,t)},Dr.reduce=function(e,t,r){var n=za(e)?Rt:Kt,i=arguments.length<3;return n(e,oo(t,4),r,i,fn)},Dr.reduceRight=function(e,t,r){var n=za(e)?kt:Kt,i=arguments.length<3;return n(e,oo(t,4),r,i,ln)},Dr.repeat=function(e,t,r){return t=(r?bo(e,t,r):t===i)?1:hs(t),Wn(bs(e),t)},Dr.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dr.result=function(e,t,r){var n=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++n<o;){var a=null==e?i:e[Po(t[n])];a===i&&(n=o,a=r),e=$a(a)?a.call(e):a}return e},Dr.round=Su,Dr.runInContext=e,Dr.sample=function(e){return(za(e)?Xr:Xn)(e)},Dr.size=function(e){if(null==e)return 0;if(Ka(e))return as(e)?cr(e):e.length;var t=lo(e);return t==S||t==T?e.size:kn(e).length},Dr.snakeCase=Ws,Dr.some=function(e,t,r){var n=za(e)?Bt:ti;return r&&bo(e,t,r)&&(t=i),n(e,oo(t,3))},Dr.sortedIndex=function(e,t){return ri(e,t)},Dr.sortedIndexBy=function(e,t,r){return ni(e,t,oo(r,2))},Dr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ri(e,t);if(n<r&&Fa(e[n],t))return n}return-1},Dr.sortedLastIndex=function(e,t){return ri(e,t,!0)},Dr.sortedLastIndexBy=function(e,t,r){return ni(e,t,oo(r,2),!0)},Dr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ri(e,t,!0)-1;if(Fa(e[r],t))return r}return-1},Dr.startCase=Gs,Dr.startsWith=function(e,t,r){return e=bs(e),r=null==r?0:on(hs(r),0,e.length),t=ai(t),e.slice(r,r+t.length)==t},Dr.subtract=Eu,Dr.sum=function(e){return e&&e.length?Wt(e,ru):0},Dr.sumBy=function(e,t){return e&&e.length?Wt(e,oo(t,2)):0},Dr.template=function(e,t,r){var n=Dr.templateSettings;r&&bo(e,t,r)&&(t=i),e=bs(e),t=ws({},t,n,Yi);var o,a,s=ws({},t.imports,n.imports,Yi),u=Cs(s),c=$t(s,u),f=0,l=t.interpolate||ve,d="__p += '",h=Oe((t.escape||ve).source+"|"+l.source+"|"+(l===J?le:ve).source+"|"+(t.evaluate||ve).source+"|$","g"),p="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";e.replace(h,(function(t,r,n,i,s,u){return n||(n=i),d+=e.slice(f,u).replace(we,rr),r&&(o=!0,d+="' +\n__e("+r+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),f=u+t.length,t})),d+="';\n";var y=Re.call(t,"variable")&&t.variable;if(y){if(ce.test(y))throw new _e("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(V,""):d).replace(z,"$1").replace(q,"$1;"),d="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Js((function(){return Se(u,p+"return "+d).apply(i,c)}));if(g.source=d,Ya(g))throw g;return g},Dr.times=function(e,t){if((e=hs(e))<1||e>l)return[];var r=h,n=gr(e,h);t=oo(t),e-=h;for(var i=Gt(n,t);++r<e;)t(r);return i},Dr.toFinite=ds,Dr.toInteger=hs,Dr.toLength=ps,Dr.toLower=function(e){return bs(e).toLowerCase()},Dr.toNumber=ys,Dr.toSafeInteger=function(e){return e?on(hs(e),-9007199254740991,l):0===e?e:0},Dr.toString=bs,Dr.toUpper=function(e){return bs(e).toUpperCase()},Dr.trim=function(e,t,r){if((e=bs(e))&&(r||t===i))return Xt(e);if(!e||!(t=ai(t)))return e;var n=fr(e),o=fr(t);return mi(n,Zt(n,o),Qt(n,o)+1).join("")},Dr.trimEnd=function(e,t,r){if((e=bs(e))&&(r||t===i))return e.slice(0,lr(e)+1);if(!e||!(t=ai(t)))return e;var n=fr(e);return mi(n,0,Qt(n,fr(t))+1).join("")},Dr.trimStart=function(e,t,r){if((e=bs(e))&&(r||t===i))return e.replace(ne,"");if(!e||!(t=ai(t)))return e;var n=fr(e);return mi(n,Zt(n,fr(t))).join("")},Dr.truncate=function(e,t){var r=30,n="...";if(Qa(t)){var o="separator"in t?t.separator:o;r="length"in t?hs(t.length):r,n="omission"in t?ai(t.omission):n}var a=(e=bs(e)).length;if(nr(e)){var s=fr(e);a=s.length}if(r>=a)return e;var u=r-cr(n);if(u<1)return n;var c=s?mi(s,0,u).join(""):e.slice(0,u);if(o===i)return c+n;if(s&&(u+=c.length-u),is(o)){if(e.slice(u).search(o)){var f,l=c;for(o.global||(o=Oe(o.source,bs(de.exec(o))+"g")),o.lastIndex=0;f=o.exec(l);)var d=f.index;c=c.slice(0,d===i?u:d)}}else if(e.indexOf(ai(o),u)!=u){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+n},Dr.unescape=function(e){return(e=bs(e))&&G.test(e)?e.replace(K,dr):e},Dr.uniqueId=function(e){var t=++ke;return bs(e)+t},Dr.upperCase=Xs,Dr.upperFirst=Ys,Dr.each=ba,Dr.eachRight=ma,Dr.first=Ko,au(Dr,(gu={},mn(Dr,(function(e,t){Re.call(Dr.prototype,t)||(gu[t]=e)})),gu),{chain:!1}),Dr.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dr[e].placeholder=Dr})),Ot(["drop","take"],(function(e,t){Hr.prototype[e]=function(r){r=r===i?1:yr(hs(r),0);var n=this.__filtered__&&!t?new Hr(this):this.clone();return n.__filtered__?n.__takeCount__=gr(r,n.__takeCount__):n.__views__.push({size:gr(r,h),type:e+(n.__dir__<0?"Right":"")}),n},Hr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Hr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Ot(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Hr.prototype[e]=function(){return this[r](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Hr.prototype[e]=function(){return this.__filtered__?new Hr(this):this[r](1)}})),Hr.prototype.compact=function(){return this.filter(ru)},Hr.prototype.find=function(e){return this.filter(e).head()},Hr.prototype.findLast=function(e){return this.reverse().find(e)},Hr.prototype.invokeMap=Gn((function(e,t){return"function"==typeof e?new Hr(this):this.map((function(r){return In(r,e,t)}))})),Hr.prototype.reject=function(e){return this.filter(ka(oo(e)))},Hr.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Hr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Hr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hr.prototype.toArray=function(){return this.take(h)},mn(Hr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=Dr[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);o&&(Dr.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof Hr,c=s[0],f=u||za(t),l=function(e){var t=o.apply(Dr,xt([e],s));return n&&d?t[0]:t};f&&r&&"function"==typeof c&&1!=c.length&&(u=f=!1);var d=this.__chain__,h=!!this.__actions__.length,p=a&&!d,y=u&&!h;if(!a&&f){t=y?t:new Hr(this);var g=e.apply(t,s);return g.__actions__.push({func:da,args:[l],thisArg:i}),new Ur(g,d)}return p&&y?e.apply(this,s):(g=this.thru(l),p?n?g.value()[0]:g.value():g)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Dr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(za(i)?i:[],e)}return this[r]((function(r){return t.apply(za(r)?r:[],e)}))}})),mn(Hr.prototype,(function(e,t){var r=Dr[t];if(r){var n=r.name+"";Re.call(Ir,n)||(Ir[n]=[]),Ir[n].push({name:t,func:r})}})),Ir[Di(i,2).name]=[{name:"wrapper",func:i}],Hr.prototype.clone=function(){var e=new Hr(this.__wrapped__);return e.__actions__=Mi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Mi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Mi(this.__views__),e},Hr.prototype.reverse=function(){if(this.__filtered__){var e=new Hr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=za(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=gr(t,e+a);break;case"takeRight":e=yr(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=n?s:a-1,f=this.__iteratees__,l=f.length,d=0,h=gr(u,this.__takeCount__);if(!r||!n&&i==u&&h==u)return li(e,this.__actions__);var p=[];e:for(;u--&&d<h;){for(var y=-1,g=e[c+=t];++y<l;){var b=f[y],m=b.iteratee,v=b.type,w=m(g);if(2==v)g=w;else if(!w){if(1==v)continue e;break e}}p[d++]=g}return p},Dr.prototype.at=ha,Dr.prototype.chain=function(){return la(this)},Dr.prototype.commit=function(){return new Ur(this.value(),this.__chain__)},Dr.prototype.next=function(){this.__values__===i&&(this.__values__=ls(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Dr.prototype.plant=function(e){for(var t,r=this;r instanceof Fr;){var n=jo(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},Dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hr){var t=e;return this.__actions__.length&&(t=new Hr(this)),(t=t.reverse()).__actions__.push({func:da,args:[Qo],thisArg:i}),new Ur(t,this.__chain__)}return this.thru(Qo)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return li(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Ye&&(Dr.prototype[Ye]=function(){return this}),Dr}();lt._=hr,(n=function(){return hr}.call(t,r,t,e))===i||(e.exports=n)}.call(this)},82856:(e,t,r)=>{var n=r(81078),i=r(55615),o=r(91996),a=r(69546);e.exports=function(e,t){return(a(e)?n:o)(e,i(t,3))}},2520:(e,t,r)=>{var n=r(52290);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},88034:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},27629:(e,t,r)=>{var n=r(55615),i=r(88034),o=r(36432);e.exports=function(e,t){return o(e,i(n(t)))}},36432:(e,t,r)=>{var n=r(81078),i=r(55615),o=r(33092),a=r(10478);e.exports=function(e,t){if(null==e)return{};var r=n(a(e),(function(e){return[e]}));return t=i(t),o(e,r,(function(e,r){return t(e,r[0])}))}},96730:(e,t,r)=>{var n=r(74430),i=r(12257),o=r(65677),a=r(49558);e.exports=function(e){return o(e)?n(a(e)):i(e)}},41258:e=>{e.exports=function(){return[]}},68854:e=>{e.exports=function(){return!1}},39244:(e,t,r)=>{var n=r(7874);e.exports=function(e){return null==e?"":n(e)}},54659:(e,t,r)=>{"use strict";var n=r(19105),i=r(35921),o=r(59105).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,e[0],3614090360,7),o=c(o,r,n,i,e[1],3905402710,12),i=c(i,o,r,n,e[2],606105819,17),n=c(n,i,o,r,e[3],3250441966,22),r=c(r,n,i,o,e[4],4118548399,7),o=c(o,r,n,i,e[5],1200080426,12),i=c(i,o,r,n,e[6],2821735955,17),n=c(n,i,o,r,e[7],4249261313,22),r=c(r,n,i,o,e[8],1770035416,7),o=c(o,r,n,i,e[9],2336552879,12),i=c(i,o,r,n,e[10],4294925233,17),n=c(n,i,o,r,e[11],2304563134,22),r=c(r,n,i,o,e[12],1804603682,7),o=c(o,r,n,i,e[13],4254626195,12),i=c(i,o,r,n,e[14],2792965006,17),r=f(r,n=c(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=f(o,r,n,i,e[6],3225465664,9),i=f(i,o,r,n,e[11],643717713,14),n=f(n,i,o,r,e[0],3921069994,20),r=f(r,n,i,o,e[5],3593408605,5),o=f(o,r,n,i,e[10],38016083,9),i=f(i,o,r,n,e[15],3634488961,14),n=f(n,i,o,r,e[4],3889429448,20),r=f(r,n,i,o,e[9],568446438,5),o=f(o,r,n,i,e[14],3275163606,9),i=f(i,o,r,n,e[3],4107603335,14),n=f(n,i,o,r,e[8],1163531501,20),r=f(r,n,i,o,e[13],2850285829,5),o=f(o,r,n,i,e[2],4243563512,9),i=f(i,o,r,n,e[7],1735328473,14),r=l(r,n=f(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=l(o,r,n,i,e[8],2272392833,11),i=l(i,o,r,n,e[11],1839030562,16),n=l(n,i,o,r,e[14],4259657740,23),r=l(r,n,i,o,e[1],2763975236,4),o=l(o,r,n,i,e[4],1272893353,11),i=l(i,o,r,n,e[7],4139469664,16),n=l(n,i,o,r,e[10],3200236656,23),r=l(r,n,i,o,e[13],681279174,4),o=l(o,r,n,i,e[0],3936430074,11),i=l(i,o,r,n,e[3],3572445317,16),n=l(n,i,o,r,e[6],76029189,23),r=l(r,n,i,o,e[9],3654602809,4),o=l(o,r,n,i,e[12],3873151461,11),i=l(i,o,r,n,e[15],530742520,16),r=d(r,n=l(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},85501:(e,t,r)=>{var n=r(10660),i=r(72486);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var c=e.shrn(u),f=s.toRed(o);t>0;t--){var l=this._randrange(new n(2),s);r&&r(l);var d=l.toRed(o).redPow(c);if(0!==d.cmp(a)&&0!==d.cmp(f)){for(var h=1;h<u;h++){if(0===(d=d.redSqr()).cmp(a))return!1;if(0===d.cmp(f))break}if(h===u)return!1}}return!0},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var u=e.shrn(s),c=a.toRed(i);t>0;t--){var f=this._randrange(new n(2),a),l=e.gcd(f);if(0!==l.cmpn(1))return l;var d=f.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var h=1;h<s;h++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(c))break}if(h===s)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},44647:e=>{function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},91349:(e,t)=>{"use strict";var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}},64651:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,f=s&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,y=Object.prototype.toString,g=Function.prototype.toString,b=String.prototype.match,m=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,_=String.prototype.toLowerCase,S=RegExp.prototype.test,E=Array.prototype.concat,A=Array.prototype.join,O=Array.prototype.slice,M=Math.floor,T="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"==typeof Symbol.iterator,L="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,x=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function k(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-M(-e):M(e);if(n!==e){var i=String(n),o=m.call(t,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var B=r(53260),P=B.custom,D=V(P)?P:null;function j(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function F(e){return v.call(String(e),/"/g,"&quot;")}function U(e){return!("[object Array]"!==K(e)||L&&"object"==typeof e&&L in e)}function H(e){return!("[object RegExp]"!==K(e)||L&&"object"==typeof e&&L in e)}function V(e){if(C)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!N)return!1;try{return N.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,s){var u=n||{};if(q(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!q(u,"customInspect")||u.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return w?k(t,S):S}if("bigint"==typeof t){var M=String(t)+"n";return w?k(t,M):M}var I=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=I&&I>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var P,z=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=A.call(Array(e.indent+1)," ")}return{base:r,prev:A.call(Array(t+1),r)}}(u,i);if(void 0===s)s=[];else if(W(s,t)>=0)return"[Circular]";function X(t,r,n){if(r&&(s=O.call(s)).push(r),n){var o={depth:u.depth};return q(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,i+1,s)}return e(t,u,i+1,s)}if("function"==typeof t&&!H(t)){var ee=function(e){if(e.name)return e.name;var t=b.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=Q(t,X);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+A.call(te,", ")+" }":"")}if(V(t)){var re=C?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(t);return"object"!=typeof t||C?re:Y(re)}if((P=t)&&"object"==typeof P&&("undefined"!=typeof HTMLElement&&P instanceof HTMLElement||"string"==typeof P.nodeName&&"function"==typeof P.getAttribute)){for(var ne="<"+_.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe<ie.length;oe++)ne+=" "+ie[oe].name+"="+j(F(ie[oe].value),"double",u);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+_.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var ae=Q(t,X);return z&&!function(e){for(var t=0;t<e.length;t++)if(W(e[t],"\n")>=0)return!1;return!0}(ae)?"["+Z(ae,z)+"]":"[ "+A.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==K(e)||L&&"object"==typeof e&&L in e)}(t)){var se=Q(t,X);return"cause"in Error.prototype||!("cause"in t)||x.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(se,", ")+" }":"{ ["+String(t)+"] "+A.call(E.call("[cause]: "+X(t.cause),se),", ")+" }"}if("object"==typeof t&&y){if(D&&"function"==typeof t[D]&&B)return B(t,{depth:I-i});if("symbol"!==y&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,(function(e,r){ue.push(X(r,t,!0)+" => "+X(e,t))})),J("Map",o.call(t),ue,z)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return f&&f.call(t,(function(e){ce.push(X(e,t))})),J("Set",c.call(t),ce,z)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return $("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{l.call(e,l)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return $("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return $("WeakRef");if(function(e){return!("[object Number]"!==K(e)||L&&"object"==typeof e&&L in e)}(t))return Y(X(Number(t)));if(function(e){if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}(t))return Y(X(T.call(t)));if(function(e){return!("[object Boolean]"!==K(e)||L&&"object"==typeof e&&L in e)}(t))return Y(p.call(t));if(function(e){return!("[object String]"!==K(e)||L&&"object"==typeof e&&L in e)}(t))return Y(X(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==K(e)||L&&"object"==typeof e&&L in e)}(t)&&!H(t)){var fe=Q(t,X),le=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",he=!le&&L&&Object(t)===t&&L in t?m.call(K(t),8,-1):de?"Object":"",pe=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||de?"["+A.call(E.call([],he||[],de||[]),": ")+"] ":"");return 0===fe.length?pe+"{}":z?pe+"{"+Z(fe,z)+"}":pe+"{ "+A.call(fe,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return z.call(e,t)}function K(e){return y.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function G(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(m.call(e,0,t.maxStringLength),t)+n}return j(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Y(e){return"Object("+e+")"}function $(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?Z(r,n):A.call(r,", "))+"}"}function Z(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+A.call(e,","+r)+"\n"+t.prev}function Q(e,t){var r=U(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=q(e,i)?t(e[i],e):""}var o,a="function"==typeof I?I(e):[];if(C){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in e)q(e,u)&&(r&&String(Number(u))===u&&u<e.length||C&&o["$"+u]instanceof Symbol||(S.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if("function"==typeof I)for(var c=0;c<a.length;c++)x.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}},56179:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},81044:(e,t,r)=>{"use strict";var n=r(31907),i=r(47208),o=r(56179),a=r(97179),s=r(76901),u=i(a(),Object);n(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},97179:(e,t,r)=>{"use strict";var n=r(56179);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},76901:(e,t,r)=>{"use strict";var n=r(97179),i=r(31907);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},78504:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(60310),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{l(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var p=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var y=0;y<e.length;++y)d.push(String(y));if(n&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var b in e)p&&"prototype"===b||!i.call(e,b)||d.push(String(b));if(u)for(var m=function(e){if("undefined"==typeof window||!h)return l(e);try{return l(e)}catch(e){return!1}}(e),v=0;v<f.length;++v)m&&"constructor"===f[v]||!i.call(e,f[v])||d.push(f[v]);return d}}e.exports=n},33025:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(60310),o=Object.keys,a=o?function(e){return o(e)}:r(78504),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},60310:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},9194:(e,t,r)=>{"use strict";var n=r(33025),i=r(62267)(),o=r(34537),a=Object,s=o("Array.prototype.push"),u=o("Object.prototype.propertyIsEnumerable"),c=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var r=a(e);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var f=a(arguments[o]),l=n(f),d=i&&(Object.getOwnPropertySymbols||c);if(d)for(var h=d(f),p=0;p<h.length;++p){var y=h[p];u(f,y)&&s(l,y)}for(var g=0;g<l.length;++g){var b=l[g];if(u(f,b)){var m=f[b];r[b]=m}}}return r}},90540:(e,t,r)=>{"use strict";var n=r(9194);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),o="";for(var a in i)o+=a;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?n:Object.assign:n}},62465:(e,t,r)=>{"use strict";var n=r(65975);t.certificate=r(55259);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=a;var s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=u;var c=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=c;var f=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=f,t.DSAparam=n.define("DSAparam",(function(){this.int()}));var l=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=l;var d=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},55259:(e,t,r)=>{"use strict";var n=r(65975),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),c=n.define("RDNSequence",(function(){this.seqof(u)})),f=n.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),l=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(f),this.key("validity").use(l),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));e.exports=p},61493:(e,t,r)=>{var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r(94428),s=r(43773),u=r(59105).Buffer;e.exports=function(e,t){var r,c=e.toString(),f=c.match(n);if(f){var l="aes"+f[1],d=u.from(f[2],"hex"),h=u.from(f[3].replace(/[\r\n]/g,""),"base64"),p=a(t,d.slice(0,8),parseInt(f[1],10)).key,y=[],g=s.createDecipheriv(l,p,d);y.push(g.update(h)),y.push(g.final()),r=u.concat(y)}else{var b=c.match(o);r=u.from(b[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:r}}},58155:(e,t,r)=>{var n=r(62465),i=r(68675),o=r(61493),a=r(43773),s=r(14321),u=r(59105).Buffer;function c(e){var t;"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var r,c,f=o(e,t),l=f.tag,d=f.data;switch(l){case"CERTIFICATE":c=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=n.PublicKey.decode(d,"der")),r=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=n.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,f=e.subjectPrivateKey,l=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,l,"sha1"),h=a.createDecipheriv(o,d,c),p=[];return p.push(h.update(f)),p.push(h.final()),u.concat(p)}(d=n.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(c=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:n.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=n.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+l)}}e.exports=c,c.signature=n.signature},14321:(e,t,r)=>{t.pbkdf2=r(73723),t.pbkdf2Sync=r(16518)},73723:(e,t,r)=>{var n,i,o=r(59105).Buffer,a=r(32505),s=r(90204),u=r(16518),c=r(38006),f=r.g.crypto&&r.g.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(){return i||(i=r.g.process&&r.g.process.nextTick?r.g.process.nextTick:r.g.queueMicrotask?r.g.queueMicrotask:r.g.setImmediate?r.g.setImmediate:r.g.setTimeout)}function p(e,t,r,n,i){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return o.from(e)}))}e.exports=function(e,t,i,y,g,b){"function"==typeof g&&(b=g,g=void 0);var m=l[(g=g||"sha1").toLowerCase()];if(m&&"function"==typeof r.g.Promise){if(a(i,y),e=c(e,s,"Password"),t=c(t,s,"Salt"),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){h()((function(){t(null,e)}))}),(function(e){h()((function(){t(e)}))}))}(function(e){if(r.g.process&&!r.g.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var t=p(n=n||o.alloc(8),n,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=t,t}(m).then((function(r){return r?p(e,t,i,y,m):u(e,t,i,y,g)})),b)}else h()((function(){var r;try{r=u(e,t,i,y,g)}catch(e){return b(e)}b(null,r)}))}},90204:(e,t,r)=>{var n,i=r(48494);n=r.g.process&&r.g.process.browser?"utf-8":r.g.process&&r.g.process.version?parseInt(i.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",e.exports=n},32505:e=>{var t=Math.pow(2,30)-1;e.exports=function(e,r){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof r)throw new TypeError("Key length not a number");if(r<0||r>t||r!=r)throw new TypeError("Bad key length")}},16518:(e,t,r)=>{var n=r(22944),i=r(92027),o=r(55695),a=r(59105).Buffer,s=r(32505),u=r(90204),c=r(38006),f=a.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,r){var s=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),u="sha512"===e||"sha384"===e?128:64;t.length>u?t=s(t):t.length<u&&(t=a.concat([t,f],u));for(var c=a.allocUnsafe(u+l[e]),d=a.allocUnsafe(u+l[e]),h=0;h<u;h++)c[h]=54^t[h],d[h]=92^t[h];var p=a.allocUnsafe(u+r+4);c.copy(p,0,0,u),this.ipad1=p,this.ipad2=c,this.opad=d,this.alg=e,this.blocksize=u,this.hash=s,this.size=l[e]}d.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,r,n,i){s(r,n);var o=new d(i=i||"sha1",e=c(e,u,"Password"),(t=c(t,u,"Salt")).length),f=a.allocUnsafe(n),h=a.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var p=0,y=l[i],g=Math.ceil(n/y),b=1;b<=g;b++){h.writeUInt32BE(b,t.length);for(var m=o.run(h,o.ipad1),v=m,w=1;w<r;w++){v=o.run(v,o.ipad2);for(var _=0;_<y;_++)m[_]^=v[_]}m.copy(f,p),p+=y}return f}},38006:(e,t,r)=>{var n=r(59105).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},48494:e=>{var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,u=[],c=!1,f=-1;function l(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&d())}function d(){if(!c){var e=a(l);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},92518:(e,t,r)=>{t.publicEncrypt=r(33532),t.privateDecrypt=r(20326),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},83559:(e,t,r)=>{var n=r(50637),i=r(59105).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,a=i.alloc(0),s=0;a.length<t;)r=o(s++),a=i.concat([a,n("sha1").update(e).update(r).digest()]);return a.slice(0,t)}},20326:(e,t,r)=>{var n=r(58155),i=r(83559),o=r(76016),a=r(10660),s=r(4621),u=r(50637),c=r(24941),f=r(59105).Buffer;e.exports=function(e,t,r){var l;l=e.padding?e.padding:r?1:4;var d,h=n(e),p=h.modulus.byteLength();if(t.length>p||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");d=r?c(new a(t),h):s(t,h);var y=f.alloc(p-d.length);if(d=f.concat([y,d],p),4===l)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(f.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),l=o(s,i(c,a)),d=o(c,i(l,r-a-1));if(function(e,t){e=f.from(e),t=f.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++i<n;)r+=e[i]^t[i];return r}(n,d.slice(0,a)))throw new Error("decryption error");for(var h=a;0===d[h];)h++;if(1!==d[h++])throw new Error("decryption error");return d.slice(h)}(h,d);if(1===l)return function(e,t,r){for(var n=t.slice(0,2),i=2,o=0;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return t.slice(i)}(0,d,r);if(3===l)return d;throw new Error("unknown padding")}},33532:(e,t,r)=>{var n=r(58155),i=r(83638),o=r(50637),a=r(83559),s=r(76016),u=r(10660),c=r(24941),f=r(4621),l=r(59105).Buffer;e.exports=function(e,t,r){var d;d=e.padding?e.padding:r?1:4;var h,p=n(e);if(4===d)h=function(e,t){var r=e.modulus.byteLength(),n=t.length,c=o("sha1").update(l.alloc(0)).digest(),f=c.length,d=2*f;if(n>r-d-2)throw new Error("message too long");var h=l.alloc(r-n-d-2),p=r-f-1,y=i(f),g=s(l.concat([c,h,l.alloc(1,1),t],p),a(y,p)),b=s(y,a(g,f));return new u(l.concat([l.alloc(1),b,g],r))}(p,t);else if(1===d)h=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");return n=r?l.alloc(a-o-3,255):function(e){for(var t,r=l.allocUnsafe(e),n=0,o=i(2*e),a=0;n<e;)a===o.length&&(o=i(2*e),a=0),(t=o[a++])&&(r[n++]=t);return r}(a-o-3),new u(l.concat([l.from([0,r?1:2]),n,l.alloc(1),t],a))}(p,t,r);else{if(3!==d)throw new Error("unknown padding");if((h=new u(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?f(h,p):c(h,p)}},24941:(e,t,r)=>{var n=r(10660),i=r(59105).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},76016:e=>{e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},83638:(e,t,r)=>{"use strict";var n=r(48494),i=65536,o=r(59105).Buffer,a=r.g.crypto||r.g.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(e);if(e>0)if(e>i)for(var s=0;s<e;s+=i)a.getRandomValues(r.slice(s,s+i));else a.getRandomValues(r);return"function"==typeof t?n.nextTick((function(){t(null,r)})):r}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},91538:(e,t,r)=>{"use strict";var n=r(48494);function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(59105),a=r(83638),s=o.Buffer,u=o.kMaxLength,c=r.g.crypto||r.g.msCrypto,f=Math.pow(2,32)-1;function l(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>f||e<0)throw new TypeError("offset must be a uint32");if(e>u||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>f||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>u)throw new RangeError("buffer too small")}function h(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return c.getRandomValues(s),i?void n.nextTick((function(){i(null,e)})):e}if(!i)return a(r).copy(e,t),e;a(r,(function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)}))}c&&c.getRandomValues||!n.browser?(t.randomFill=function(e,t,n,i){if(!(s.isBuffer(e)||e instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-t;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return l(t,e.length),d(n,t,e.length),h(e,t,n,i)},t.randomFillSync=function(e,t,n){if(void 0===t&&(t=0),!(s.isBuffer(e)||e instanceof r.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return l(t,e.length),void 0===n&&(n=e.length-t),d(n,t,e.length),h(e,t,n)}):(t.randomFill=i,t.randomFillSync=i)},23388:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,a,s,u;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=("number"!=typeof u&&(u=0),u+1>(s=e).length||-1===s.indexOf(".",u)?"argument":"property");a='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},55101:(e,t,r)=>{"use strict";var n=r(48494),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var o=r(6246),a=r(90609);r(19105)(f,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var c=s[u];f.prototype[c]||(f.prototype[c]=a.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||n.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},17153:(e,t,r)=>{"use strict";e.exports=i;var n=r(16889);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(19105)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},6246:(e,t,r)=>{"use strict";var n,i=r(48494);e.exports=O,O.ReadableState=A,r(67725).EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=r(38774),u=r(18390).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=r(66602);o=f&&f.debuglog?f.debuglog("stream"):function(){};var l,d,h,p=r(90033),y=r(16946),g=r(50824).getHighWaterMark,b=r(23388).q,m=b.ERR_INVALID_ARG_TYPE,v=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,_=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(19105)(O,s);var S=y.errorOrDestroy,E=["error","close","destroy","pause","resume"];function A(e,t,i){n=n||r(55101),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(18842).s),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function O(e){if(n=n||r(55101),!(this instanceof O))return new O(e);var t=this instanceof n;this._readableState=new A(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function M(e,t,r,n,i){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,L(e)))}}(e,s);else if(i||(a=function(e,t){var r,n;return n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)S(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?S(e,new _):T(e,s,t,!0);else if(s.ended)S(e,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?T(e,s,t,!1):x(e,s)):T(e,s,t,!1)}else n||(s.reading=!1,x(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function T(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&C(e)),x(e,t)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),M(this,e,t,!1,r)},O.prototype.unshift=function(e){return M(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){l||(l=r(18842).s);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var I=1073741824;function N(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=I?e=I:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(L,e))}function L(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function x(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function k(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function B(e){o("readable nexttick read 0"),e.read(0)}function P(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function F(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(U,t,e))}function U(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}O.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):C(this),null;if(0===(e=N(e,t))&&t.ended)return 0===t.length&&F(this),null;var n,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=N(r,t))),null===(n=e>0?j(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&F(this)),null!==n&&this.emit("data",n),n},O.prototype._read=function(e){S(this,new w("_read()"))},O.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,t);var s=t&&!1===t.end||e===i.stdout||e===i.stderr?y:u;function u(){o("onend"),e.end()}n.endEmitted?i.nextTick(s):r.once("end",s),e.on("unpipe",(function t(i,a){o("onunpipe"),i===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",d),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",y),r.removeListener("data",l),f=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,D(e))}}(r);e.on("drain",c);var f=!1;function l(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==H(n.pipes,e))&&!f&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(t){o("onerror",t),y(),e.removeListener("error",d),0===a(e,"error")&&S(e,t)}function h(){e.removeListener("finish",p),y()}function p(){o("onfinish"),e.removeListener("close",h),y()}function y(){o("unpipe"),r.unpipe(e)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",h),e.once("finish",p),e.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=H(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},O.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?C(this):n.reading||i.nextTick(B,this))),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(k,this),r},O.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(k,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(P,e,t))}(this,e)),e.paused=!1,this},O.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<E.length;a++)e.on(E[a],this.emit.bind(this,E[a]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(52326)),d(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=j,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===h&&(h=r(19990)),h(O,e,t)})},16889:(e,t,r)=>{"use strict";e.exports=f;var n=r(23388).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(55101);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(19105)(f,u),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,(function(e){t(e)}))}},90609:(e,t,r)=>{"use strict";var n,i=r(48494);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=O,O.WritableState=A;var a,s={deprecate:r(11741)},u=r(38774),c=r(18390).Buffer,f=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=r(16946),d=r(50824).getHighWaterMark,h=r(23388).q,p=h.ERR_INVALID_ARG_TYPE,y=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,b=h.ERR_STREAM_CANNOT_PIPE,m=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,S=l.errorOrDestroy;function E(){}function A(e,t,a){n=n||r(55101),e=e||{},"boolean"!=typeof a&&(a=t instanceof n),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(L,e,t),e._writableState.errorEmitted=!0,S(e,n)):(o(n),e._writableState.errorEmitted=!0,S(e,n),L(e,t))}(e,r,n,t,o);else{var a=N(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||I(e,r),n?i.nextTick(T,e,r,a,o):T(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function O(e){var t=this instanceof(n=n||r(55101));if(!t&&!a.call(O,this))return new O(e);this._writableState=new A(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function M(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),L(e,t)}function I(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,M(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(M(e,t,!1,t.objectMode?1:c.length,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function N(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(r){t.pendingcb--,r&&S(e,r),t.prefinished=!0,e.emit("prefinish"),L(e,t)}))}function L(e,t){var r=N(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(C,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(19105)(O,u),A.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===O&&e&&e._writableState instanceof A}})):a=function(e){return e instanceof this},O.prototype.pipe=function(){S(this,new b)},O.prototype.write=function(e,t,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=e,c.isBuffer(n)||n instanceof f);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=E),o.ending?function(e,t){var r=new w;S(e,r),i.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var o;return null===r?o=new v:"string"==typeof r||t.objectMode||(o=new p("chunk",["string","Buffer"],r)),!o||(S(e,o),i.nextTick(n,o),!1)}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else M(e,t,!1,s,n,i,o);return u}(this,o,s,e,t,r)),a},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||I(this,e))},O.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,r){r(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,L(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=l.destroy,O.prototype._undestroy=l.undestroy,O.prototype._destroy=function(e,t){t(e)}},52326:(e,t,r)=>{"use strict";var n,i=r(48494);function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(84781),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function y(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[l]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function g(e){i.nextTick(y,e)}var b=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[f])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[c]?r(e[c]):t(p(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[f]?r(p(void 0,!0)):t[d](r,n)}),n)}}(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[d])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),b);e.exports=function(e){var t,r=Object.create(m,(o(t={},h,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,f,{value:e._readableState.endEmitted,writable:!0}),o(t,d,{value:function(e,t){var n=r[h].read();n?(r[l]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[l]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];return null!==t&&(r[l]=null,r[s]=null,r[u]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[f]=!0})),e.on("readable",g.bind(null,r)),r}},90033:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var u=r(18390).Buffer,c=r(74854).inspect,f=c&&c.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var t,r,n,i=u.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,u.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},16946:(e,t,r)=>{"use strict";var n=r(48494);function i(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,e)):n.nextTick(a,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(o,r),t(e)):n.nextTick(o,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},84781:(e,t,r)=>{"use strict";var n=r(23388).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,u=function(){t.writable||f()},c=t._writableState&&t._writableState.finished,f=function(){s=!1,c=!0,a||o.call(t)},l=t._readableState&&t._readableState.endEmitted,d=function(){a=!1,l=!0,s||o.call(t)},h=function(e){o.call(t,e)},p=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},y=function(){t.req.on("finish",f)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",f),t.on("abort",p),t.req?y():t.on("request",y)):s&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",d),t.on("finish",f),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",f),t.removeListener("abort",p),t.removeListener("request",y),t.req&&t.req.removeListener("finish",f),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",f),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}},19990:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},69635:(e,t,r)=>{"use strict";var n,i=r(23388).q,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function u(e){e()}function c(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var f,l=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var d=t.map((function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(84781)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var u=!1;return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}(e,o,i>0,(function(e){f||(f=e),e&&d.forEach(u),o||(d.forEach(u),l(f))}))}));return t.reduce(c)}},50824:(e,t,r)=>{"use strict";var n=r(23388).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},38774:(e,t,r)=>{e.exports=r(67725).EventEmitter},8542:(e,t,r)=>{(t=e.exports=r(6246)).Stream=t,t.Readable=t,t.Writable=r(90609),t.Duplex=r(55101),t.Transform=r(16889),t.PassThrough=r(17153),t.finished=r(84781),t.pipeline=r(69635)},92027:(e,t,r)=>{"use strict";var n=r(18390).Buffer,i=r(19105),o=r(35921),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function y(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,E=0|this._d,A=0|this._e,O=0;O<80;O+=1){var M,T;O<16?(M=y(r,n,i,o,h,e[s[O]],l[0],c[O]),T=v(w,_,S,E,A,e[u[O]],d[0],f[O])):O<32?(M=g(r,n,i,o,h,e[s[O]],l[1],c[O]),T=m(w,_,S,E,A,e[u[O]],d[1],f[O])):O<48?(M=b(r,n,i,o,h,e[s[O]],l[2],c[O]),T=b(w,_,S,E,A,e[u[O]],d[2],f[O])):O<64?(M=m(r,n,i,o,h,e[s[O]],l[3],c[O]),T=g(w,_,S,E,A,e[u[O]],d[3],f[O])):(M=v(r,n,i,o,h,e[s[O]],l[4],c[O]),T=y(w,_,S,E,A,e[u[O]],d[4],f[O])),r=h,h=o,o=p(i,10),i=n,n=M,w=A,A=E,E=p(S,10),S=_,_=T}var I=this._b+i+E|0;this._b=this._c+o+A|0,this._c=this._d+h+w|0,this._d=this._e+r+_|0,this._e=this._a+n+S|0,this._a=I},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},79798:function(e,t,r){"use strict";var n=r(18390).Buffer,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isValidXAddress=t.decodeXAddress=t.xAddressToClassicAddress=t.encodeXAddress=t.classicAddressToXAddress=t.isValidClassicAddress=t.decodeAccountPublic=t.encodeAccountPublic=t.decodeNodePublic=t.encodeNodePublic=t.decodeAccountID=t.encodeAccountID=t.decodeSeed=t.encodeSeed=t.codec=void 0;const s=a(r(32037)),u=r(89526);Object.defineProperty(t,"codec",{enumerable:!0,get:function(){return u.codec}}),Object.defineProperty(t,"encodeSeed",{enumerable:!0,get:function(){return u.encodeSeed}}),Object.defineProperty(t,"decodeSeed",{enumerable:!0,get:function(){return u.decodeSeed}}),Object.defineProperty(t,"encodeAccountID",{enumerable:!0,get:function(){return u.encodeAccountID}}),Object.defineProperty(t,"decodeAccountID",{enumerable:!0,get:function(){return u.decodeAccountID}}),Object.defineProperty(t,"encodeNodePublic",{enumerable:!0,get:function(){return u.encodeNodePublic}}),Object.defineProperty(t,"decodeNodePublic",{enumerable:!0,get:function(){return u.decodeNodePublic}}),Object.defineProperty(t,"encodeAccountPublic",{enumerable:!0,get:function(){return u.encodeAccountPublic}}),Object.defineProperty(t,"decodeAccountPublic",{enumerable:!0,get:function(){return u.decodeAccountPublic}}),Object.defineProperty(t,"isValidClassicAddress",{enumerable:!0,get:function(){return u.isValidClassicAddress}});const c={main:n.from([5,68]),test:n.from([4,147])};function f(e,t,r){if(20!==e.length)throw new Error("Account ID must be 20 bytes");if(t>4294967295)throw new Error("Invalid tag");const i=t||0,o=!1===t||null==t?0:1,a=n.concat([r?c.test:c.main,e,n.from([o,255&i,i>>8&255,i>>16&255,i>>24&255,0,0,0,0])]);return u.codec.encodeChecked(a)}function l(e){const t=u.codec.decodeChecked(e),r=function(e){const t=e.slice(0,2);if(c.main.equals(t))return!1;if(c.test.equals(t))return!0;throw new Error("Invalid X-address: bad prefix")}(t);return{accountId:t.slice(2,22),tag:function(e){const t=e[22];if(t>=2)throw new Error("Unsupported X-address");return 1===t?e[23]+256*e[24]+65536*e[25]+16777216*e[26]:(s.strictEqual(t,0,"flag must be zero to indicate no tag"),s.ok(n.from("0000000000000000","hex").equals(e.slice(23,31)),"remaining bytes must be zero"),!1)}(t),test:r}}t.classicAddressToXAddress=function(e,t,r){return f((0,u.decodeAccountID)(e),t,r)},t.encodeXAddress=f,t.xAddressToClassicAddress=function(e){const{accountId:t,tag:r,test:n}=l(e);return{classicAddress:(0,u.encodeAccountID)(t),tag:r,test:n}},t.decodeXAddress=l,t.isValidXAddress=function(e){try{l(e)}catch(e){return!1}return!0}},93259:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatArgs=t.seqEqual=void 0,t.seqEqual=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},t.concatArgs=function(...e){const t=[];return e.forEach((e=>{if("number"!=typeof e)for(const r of e)t.push(r);else t.push(e)})),t}},89526:(e,t,r)=>{"use strict";var n=r(18390).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.isValidClassicAddress=t.decodeAccountPublic=t.encodeAccountPublic=t.encodeNodePublic=t.decodeNodePublic=t.decodeAddress=t.decodeAccountID=t.encodeAddress=t.encodeAccountID=t.decodeSeed=t.encodeSeed=t.codec=void 0;const i=r(90638),o=r(50637),a=r(93259),s=[1,225,75],u={sha256:e=>o("sha256").update(n.from(e)).digest(),alphabet:"rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"},c=new class{constructor(e){this._sha256=e.sha256,this._alphabet=e.alphabet,this._codec=i(this._alphabet)}encode(e,t){const r=t.versions;return this._encodeVersioned(e,r,t.expectedLength)}decode(e,t){var r;const n=t.versions,i=t.versionTypes,o=this.decodeChecked(e);if(n.length>1&&!t.expectedLength)throw new Error("expectedLength is required because there are >= 2 possible versions");const s="number"==typeof n[0]?1:n[0].length,u=null!==(r=t.expectedLength)&&void 0!==r?r:o.length-s,c=o.slice(0,-u),f=o.slice(-u);for(let e=0;e<n.length;e++){const t=Array.isArray(n[e])?n[e]:[n[e]];if((0,a.seqEqual)(c,t))return{version:t,bytes:f,type:i?i[e]:null}}throw new Error("version_invalid: version bytes do not match any of the provided version(s)")}encodeChecked(e){const t=this._sha256(this._sha256(e)).slice(0,4);return this._encodeRaw(n.from((0,a.concatArgs)(e,t)))}decodeChecked(e){const t=this._decodeRaw(e);if(t.length<5)throw new Error("invalid_input_size: decoded data must have length >= 5");if(!this._verifyCheckSum(t))throw new Error("checksum_invalid");return t.slice(0,-4)}_encodeVersioned(e,t,r){if(r&&e.length!==r)throw new Error("unexpected_payload_length: bytes.length does not match expectedLength. Ensure that the bytes are a Buffer.");return this.encodeChecked(n.from((0,a.concatArgs)(t,e)))}_encodeRaw(e){return this._codec.encode(e)}_decodeRaw(e){return this._codec.decode(e)}_verifyCheckSum(e){const t=this._sha256(this._sha256(e.slice(0,-4))).slice(0,4),r=e.slice(-4);return(0,a.seqEqual)(t,r)}}(u);function f(e){const t={versions:[0],expectedLength:20};return c.encode(e,t)}function l(e){const t={versions:[0],expectedLength:20};return c.decode(e,t).bytes}t.codec=c,t.encodeSeed=function(e,t){if(16!==e.length)throw new Error("entropy must have length 16");const r={expectedLength:16,versions:"ed25519"===t?s:[33]};return c.encode(e,r)},t.decodeSeed=function(e,t={versionTypes:["ed25519","secp256k1"],versions:[s,33],expectedLength:16}){return c.decode(e,t)},t.encodeAccountID=f,t.encodeAddress=f,t.decodeAccountID=l,t.decodeAddress=l,t.decodeNodePublic=function(e){return c.decode(e,{versions:[28],expectedLength:33}).bytes},t.encodeNodePublic=function(e){return c.encode(e,{versions:[28],expectedLength:33})},t.encodeAccountPublic=function(e){return c.encode(e,{versions:[35],expectedLength:33})},t.decodeAccountPublic=function(e){return c.decode(e,{versions:[35],expectedLength:33}).bytes},t.isValidClassicAddress=function(e){try{l(e)}catch(e){return!1}return!0}},85388:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transactionID=t.sha512Half=t.binaryToJSON=t.signingClaimData=t.signingData=t.multiSigningData=t.readJSON=t.serializeObject=t.makeParser=t.BytesList=t.BinarySerializer=t.BinaryParser=void 0;const n=r(27601),i=r(60844);Object.defineProperty(t,"BinaryParser",{enumerable:!0,get:function(){return i.BinaryParser}});const o=r(46091),a=r(42510);Object.defineProperty(t,"BinarySerializer",{enumerable:!0,get:function(){return a.BinarySerializer}}),Object.defineProperty(t,"BytesList",{enumerable:!0,get:function(){return a.BytesList}});const s=r(72747);Object.defineProperty(t,"sha512Half",{enumerable:!0,get:function(){return s.sha512Half}}),Object.defineProperty(t,"transactionID",{enumerable:!0,get:function(){return s.transactionID}});const u=r(12933),c=r(32548),f=(e,t)=>new i.BinaryParser(e,t);t.makeParser=f;const l=(e,t=u.DEFAULT_DEFINITIONS)=>e.readType(n.coreTypes.STObject).toJSON(t);function d(e,t={}){const{prefix:r,suffix:i,signingFieldsOnly:o=!1,definitions:s}=t,u=new a.BytesList;r&&u.put(r);const c=o?e=>e.isSigningField:void 0;return n.coreTypes.STObject.from(e,c,s).toBytesSink(u),i&&u.put(i),u.toBytes()}t.readJSON=l,t.binaryToJSON=(e,t)=>l(f(e,t),t),t.serializeObject=d,t.signingData=function(e,t=o.HashPrefix.transactionSig,r={}){return d(e,{prefix:t,signingFieldsOnly:!0,definitions:r.definitions})},t.signingClaimData=function(e){const t=c(String(e.amount)),r=o.HashPrefix.paymentChannelClaim,i=n.coreTypes.Hash256.from(e.channel).toBytes(),s=n.coreTypes.UInt64.from(t).toBytes(),u=new a.BytesList;return u.put(r),u.put(i),u.put(s),u.toBytes()},t.multiSigningData=function(e,t,r={definitions:u.DEFAULT_DEFINITIONS}){return d(e,{prefix:o.HashPrefix.transactionMultiSig,suffix:n.coreTypes.AccountID.from(t).toBytes(),signingFieldsOnly:!0,definitions:r.definitions})}},50591:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.types=t.ShaMap=t.HashPrefix=t.quality=t.TransactionResult=t.Type=t.LedgerEntryType=t.TransactionType=t.Field=t.DEFAULT_DEFINITIONS=t.ledgerHashes=t.binary=t.hashes=void 0;const a=r(12933);Object.defineProperty(t,"DEFAULT_DEFINITIONS",{enumerable:!0,get:function(){return a.DEFAULT_DEFINITIONS}}),Object.defineProperty(t,"Field",{enumerable:!0,get:function(){return a.Field}}),Object.defineProperty(t,"TransactionType",{enumerable:!0,get:function(){return a.TransactionType}}),Object.defineProperty(t,"LedgerEntryType",{enumerable:!0,get:function(){return a.LedgerEntryType}}),Object.defineProperty(t,"Type",{enumerable:!0,get:function(){return a.Type}}),Object.defineProperty(t,"TransactionResult",{enumerable:!0,get:function(){return a.TransactionResult}});const s=o(r(27601));t.types=s;const u=o(r(85388));t.binary=u;const c=r(11957);Object.defineProperty(t,"ShaMap",{enumerable:!0,get:function(){return c.ShaMap}});const f=o(r(62939));t.ledgerHashes=f;const l=o(r(72747));t.hashes=l;const d=r(83350);Object.defineProperty(t,"quality",{enumerable:!0,get:function(){return d.quality}});const h=r(46091);Object.defineProperty(t,"HashPrefix",{enumerable:!0,get:function(){return h.HashPrefix}})},71027:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytesLookup=t.Bytes=void 0;const n=r(18390);class i{constructor(e,t,r){this.name=e,this.ordinal=t,this.ordinalWidth=r,this.bytes=n.Buffer.alloc(r);for(let e=0;e<r;e++)this.bytes[r-e-1]=t>>>8*e&255}toJSON(){return this.name}toBytesSink(e){e.put(this.bytes)}toBytes(){return this.bytes}}t.Bytes=i,t.BytesLookup=class{constructor(e,t){this.ordinalWidth=t,Object.entries(e).forEach((([e,t])=>{this.add(e,t)}))}add(e,t){if(this[e])throw new SyntaxError(`Attempted to add a value with a duplicate name "${e}". This is not allowed because it is unclear how to decode.`);if(this[t.toString()])throw new SyntaxError(`Attempted to add a duplicate value under a different name (Given name: "${e}" and previous name: "${this[t.toString()]}. This is not allowed because it is unclear how to decode.\nGiven value: ${t.toString()}`);this[e]=new i(e,t,this.ordinalWidth),this[t.toString()]=this[e]}from(e){return e instanceof i?e:this[e]}fromParser(e){return this.from(e.readUIntN(this.ordinalWidth).toString())}}},53938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TRANSACTION_RESULT_WIDTH=t.TRANSACTION_TYPE_WIDTH=t.LEDGER_ENTRY_WIDTH=t.TYPE_WIDTH=void 0,t.TYPE_WIDTH=2,t.LEDGER_ENTRY_WIDTH=2,t.TRANSACTION_TYPE_WIDTH=2,t.TRANSACTION_RESULT_WIDTH=1},52836:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldLookup=void 0;const n=r(71027),i=r(43859),o=r(53938),a=r(18390);t.FieldLookup=class{constructor(e,t){e.forEach((([e,r])=>{const s=t[r.type];this[e]=function([e,t],r){const s=function(e,t){const r=[];return e<16?t<16?r.push(e<<4|t):r.push(e<<4,t):t<16?r.push(t,e):r.push(0,e,t),a.Buffer.from(r)}(r,t.nth);return{name:e,nth:t.nth,isVariableLengthEncoded:t.isVLEncoded,isSerialized:t.isSerialized,isSigningField:t.isSigningField,ordinal:r<<16|t.nth,type:new n.Bytes(t.type,r,o.TYPE_WIDTH),header:s,associatedType:i.SerializedType}}([e,r],s),this[this[e].ordinal.toString()]=this[e]}))}fromString(e){return this[e]}}},12933:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TRANSACTION_TYPES=t.TransactionType=t.TransactionResult=t.LedgerEntryType=t.Type=t.Field=t.DEFAULT_DEFINITIONS=t.XrplDefinitionsBase=t.Bytes=void 0;const a=o(r(49792)),s=r(11670);Object.defineProperty(t,"XrplDefinitionsBase",{enumerable:!0,get:function(){return s.XrplDefinitionsBase}}),Object.defineProperty(t,"Bytes",{enumerable:!0,get:function(){return s.Bytes}});const u=new s.XrplDefinitionsBase(a,{});t.DEFAULT_DEFINITIONS=u;const c=u.type;t.Type=c;const f=u.ledgerEntryType;t.LedgerEntryType=f;const l=u.transactionType;t.TransactionType=l;const d=u.transactionResult;t.TransactionResult=d;const h=u.field;t.Field=h;const p=u.transactionNames;t.TRANSACTION_TYPES=p},11670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytesLookup=t.Bytes=t.FieldLookup=t.XrplDefinitionsBase=void 0;const n=r(71027);Object.defineProperty(t,"Bytes",{enumerable:!0,get:function(){return n.Bytes}}),Object.defineProperty(t,"BytesLookup",{enumerable:!0,get:function(){return n.BytesLookup}});const i=r(52836);Object.defineProperty(t,"FieldLookup",{enumerable:!0,get:function(){return i.FieldLookup}});const o=r(53938);t.XrplDefinitionsBase=class{constructor(e,t){this.type=new n.BytesLookup(e.TYPES,o.TYPE_WIDTH),this.ledgerEntryType=new n.BytesLookup(e.LEDGER_ENTRY_TYPES,o.LEDGER_ENTRY_WIDTH),this.transactionType=new n.BytesLookup(e.TRANSACTION_TYPES,o.TRANSACTION_TYPE_WIDTH),this.transactionResult=new n.BytesLookup(e.TRANSACTION_RESULTS,o.TRANSACTION_RESULT_WIDTH),this.field=new i.FieldLookup(e.FIELDS,e.TYPES),this.transactionNames=Object.entries(e.TRANSACTION_TYPES).filter((([e,t])=>t>=0)).map((([e,t])=>e)),this.dataTypes={},this.associateTypes(t)}associateTypes(e){this.dataTypes=Object.assign({},this.dataTypes,e),Object.values(this.field).forEach((e=>{e.associatedType=this.dataTypes[e.type.name]})),this.field.TransactionType.associatedType=this.transactionType,this.field.TransactionResult.associatedType=this.transactionResult,this.field.LedgerEntryType.associatedType=this.ledgerEntryType}getAssociatedTypes(){return this.dataTypes}}},72620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XrplDefinitions=void 0;const n=r(11670),i=r(27601);class o extends n.XrplDefinitionsBase{constructor(e,t){super(e,Object.assign({},i.coreTypes,t))}}t.XrplDefinitions=o},46091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashPrefix=void 0;const n=r(18390);function i(e){const t=n.Buffer.alloc(4);return t.writeUInt32BE(e,0),t}const o={transactionID:i(1415073280),transaction:i(1397638144),accountStateEntry:i(1296846336),innerNode:i(1296649728),ledgerHeader:i(1280791040),transactionSig:i(1398036480),transactionMultiSig:i(1397576704),validation:i(1447119872),proposal:i(1347571712),paymentChannelClaim:i(1129073920)};t.HashPrefix=o},72747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transactionID=t.sha512Half=t.Sha512Half=void 0;const n=r(46091),i=r(50637),o=r(28467),a=r(42510),s=r(18390);class u extends a.BytesList{constructor(){super(...arguments),this.hash=i("sha512")}static put(e){return(new u).put(e)}put(e){return this.hash.update(e),this}finish256(){return s.Buffer.from(this.hash.digest().slice(0,32))}finish(){return new o.Hash256(this.finish256())}}function c(...e){const t=new u;return e.forEach((e=>t.put(e))),t.finish256()}t.Sha512Half=u,t.sha512Half=c,t.transactionID=function(e){return new o.Hash256(c(n.HashPrefix.transactionID,e))}},79056:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.coreTypes=t.DEFAULT_DEFINITIONS=t.XrplDefinitionsBase=t.XrplDefinitions=t.TRANSACTION_TYPES=t.decodeLedgerData=t.decodeQuality=t.encodeQuality=t.encodeForMultisigning=t.encodeForSigningClaim=t.encodeForSigning=t.encode=t.decode=void 0;const a=o(r(32037)),s=r(50591),u=r(62939);Object.defineProperty(t,"decodeLedgerData",{enumerable:!0,get:function(){return u.decodeLedgerData}});const c=r(12933);Object.defineProperty(t,"XrplDefinitionsBase",{enumerable:!0,get:function(){return c.XrplDefinitionsBase}}),Object.defineProperty(t,"TRANSACTION_TYPES",{enumerable:!0,get:function(){return c.TRANSACTION_TYPES}}),Object.defineProperty(t,"DEFAULT_DEFINITIONS",{enumerable:!0,get:function(){return c.DEFAULT_DEFINITIONS}});const f=r(72620);Object.defineProperty(t,"XrplDefinitions",{enumerable:!0,get:function(){return f.XrplDefinitions}});const l=r(27601);Object.defineProperty(t,"coreTypes",{enumerable:!0,get:function(){return l.coreTypes}});const{signingData:d,signingClaimData:h,multiSigningData:p,binaryToJSON:y,serializeObject:g}=s.binary;t.decode=function(e,t){return a.ok("string"==typeof e,"binary must be a hex string"),y(e,t)},t.encode=function(e,t){return a.ok("object"==typeof e),g(e,{definitions:t}).toString("hex").toUpperCase()},t.encodeForSigning=function(e,t){return a.ok("object"==typeof e),d(e,s.HashPrefix.transactionSig,{definitions:t}).toString("hex").toUpperCase()},t.encodeForSigningClaim=function(e){return a.ok("object"==typeof e),h(e).toString("hex").toUpperCase()},t.encodeForMultisigning=function(e,t,r){return a.ok("object"==typeof e),a.equal(e.SigningPubKey,""),p(e,t,r?{definitions:r}:void 0).toString("hex").toUpperCase()},t.encodeQuality=function(e){return a.ok("string"==typeof e),s.quality.encode(e).toString("hex").toUpperCase()},t.decodeQuality=function(e){return a.ok("string"==typeof e),s.quality.decode(e).toString()}},62939:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeLedgerData=t.ledgerHash=t.transactionTreeHash=t.accountStateHash=void 0;const a=o(r(32037)),s=r(11957),u=r(46091),c=r(72747),f=r(85388),l=r(28467),d=r(4477),h=r(80897),p=r(64775),y=r(87246),g=r(60844),b=r(32548);function m(e,t){const r=new s.ShaMap;return t.forEach((t=>r.addItem(...e(t)))),r.hash()}function v(e){return a.ok(e.hash),[l.Hash256.from(e.hash),{hashPrefix:()=>u.HashPrefix.transaction,toBytesSink(t){const r=new f.BinarySerializer(t);r.writeLengthEncoded(d.STObject.from(e)),r.writeLengthEncoded(d.STObject.from(e.metaData))}},void 0]}function w(e){const t=l.Hash256.from(e.index),r=(0,f.serializeObject)(e);return[t,{hashPrefix:()=>u.HashPrefix.accountStateEntry,toBytesSink(e){e.put(r)}},void 0]}t.transactionTreeHash=function(e){return m(v,e)},t.accountStateHash=function(e){return m(w,e)},t.ledgerHash=function(e){const t=new c.Sha512Half;return t.put(u.HashPrefix.ledgerHeader),a.ok(void 0!==e.parent_close_time),a.ok(void 0!==e.close_flags),p.UInt32.from(e.ledger_index).toBytesSink(t),h.UInt64.from(b(String(e.total_coins))).toBytesSink(t),l.Hash256.from(e.parent_hash).toBytesSink(t),l.Hash256.from(e.transaction_hash).toBytesSink(t),l.Hash256.from(e.account_hash).toBytesSink(t),p.UInt32.from(e.parent_close_time).toBytesSink(t),p.UInt32.from(e.close_time).toBytesSink(t),y.UInt8.from(e.close_time_resolution).toBytesSink(t),y.UInt8.from(e.close_flags).toBytesSink(t),t.finish()},t.decodeLedgerData=function(e,t){a.ok("string"==typeof e,"binary must be a hex string");const r=new g.BinaryParser(e,t);return{ledger_index:r.readUInt32(),total_coins:r.readType(h.UInt64).valueOf().toString(),parent_hash:r.readType(l.Hash256).toHex(),transaction_hash:r.readType(l.Hash256).toHex(),account_hash:r.readType(l.Hash256).toHex(),parent_close_time:r.readUInt32(),close_time:r.readUInt32(),close_time_resolution:r.readUInt8(),close_flags:r.readUInt8()}}},83350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.quality=void 0;const n=r(27601),i=r(16856),o=r(32548),a=r(18390);t.quality=class{static encode(e){const t=new i.Decimal(e),r=t.e-15,a=t.times("1e"+-r).abs().toString(),s=n.coreTypes.UInt64.from(o(a)).toBytes();return s[0]=r+100,s}static decode(e){const t=a.Buffer.from(e,"hex").slice(-8),r=t[0]-100;return new i.Decimal(`0x${t.slice(1).toString("hex")}`).times(`1e${r}`)}}},60844:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryParser=void 0;const a=o(r(32037)),s=r(12933),u=r(18390);t.BinaryParser=class{constructor(e,t=s.DEFAULT_DEFINITIONS){this.bytes=u.Buffer.from(e,"hex"),this.definitions=t}peek(){return a.ok(0!==this.bytes.byteLength),this.bytes[0]}skip(e){a.ok(e<=this.bytes.byteLength),this.bytes=this.bytes.slice(e)}read(e){a.ok(e<=this.bytes.byteLength);const t=this.bytes.slice(0,e);return this.skip(e),t}readUIntN(e){return a.ok(0<e&&e<=4,"invalid n"),this.read(e).reduce(((e,t)=>e<<8|t))>>>0}readUInt8(){return this.readUIntN(1)}readUInt16(){return this.readUIntN(2)}readUInt32(){return this.readUIntN(4)}size(){return this.bytes.byteLength}end(e){const t=this.bytes.byteLength;return 0===t||void 0!==e&&t<=e}readVariableLength(){return this.read(this.readVariableLengthLength())}readVariableLengthLength(){const e=this.readUInt8();if(e<=192)return e;if(e<=240)return 193+256*(e-193)+this.readUInt8();if(e<=254)return 12481+65536*(e-241)+256*this.readUInt8()+this.readUInt8();throw new Error("Invalid variable length indicator")}readFieldOrdinal(){let e=this.readUInt8(),t=15&e;if(e>>=4,0===e&&(e=this.readUInt8(),0===e||e<16))throw new Error("Cannot read FieldOrdinal, type_code out of range");if(0===t&&(t=this.readUInt8(),0===t||t<16))throw new Error("Cannot read FieldOrdinal, field_code out of range");return e<<16|t}readField(){return this.definitions.field.fromString(this.readFieldOrdinal().toString())}readType(e){return e.fromParser(this)}typeForField(e){return e.associatedType}readFieldValue(e){const t=this.typeForField(e);if(!t)throw new Error(`unsupported: (${e.name}, ${e.type.name})`);const r=e.isVariableLengthEncoded?this.readVariableLengthLength():void 0,n=t.fromParser(this,r);if(void 0===n)throw new Error(`fromParser for (${e.name}, ${e.type.name}) -> undefined `);return n}readFieldAndValue(){const e=this.readField();return[e,this.readFieldValue(e)]}}},42510:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.BinarySerializer=t.BytesList=void 0;const a=o(r(32037)),s=r(18390);class u{constructor(){this.bytesArray=[]}getLength(){return s.Buffer.concat(this.bytesArray).byteLength}put(e){const t=s.Buffer.from(e);return this.bytesArray.push(t),this}toBytesSink(e){e.put(this.toBytes())}toBytes(){return s.Buffer.concat(this.bytesArray)}toHex(){return this.toBytes().toString("hex").toUpperCase()}}t.BytesList=u,t.BinarySerializer=class{constructor(e){this.sink=new u,this.sink=e}write(e){e.toBytesSink(this.sink)}put(e){this.sink.put(e)}writeType(e,t){this.write(e.from(t))}writeBytesList(e){e.toBytesSink(this.sink)}encodeVariableLength(e){const t=s.Buffer.alloc(3);if(e<=192)return t[0]=e,t.slice(0,1);if(e<=12480)return e-=193,t[0]=193+(e>>>8),t[1]=255&e,t.slice(0,2);if(e<=918744)return e-=12481,t[0]=241+(e>>>16),t[1]=e>>8&255,t[2]=255&e,t.slice(0,3);throw new Error("Overflow error")}writeFieldAndValue(e,t,r=!1){const n=e.associatedType.from(t);a.ok(void 0!==n.toBytesSink),a.ok(void 0!==e.name),this.sink.put(e.header),e.isVariableLengthEncoded?this.writeLengthEncoded(n,r):n.toBytesSink(this.sink)}writeLengthEncoded(e,t=!1){const r=new u;t||e.toBytesSink(r),this.put(this.encodeVariableLength(r.getLength())),this.writeBytesList(r)}}},11957:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShaMapLeaf=t.ShaMapNode=t.ShaMap=void 0;const n=r(32037),i=r(27601),o=r(46091),a=r(72747),s=r(18390);class u{}t.ShaMapNode=u;class c extends u{constructor(e,t){super(),this.index=e,this.item=t}isLeaf(){return!0}isInner(){return!1}hashPrefix(){return void 0===this.item?s.Buffer.alloc(0):this.item.hashPrefix()}hash(){const e=a.Sha512Half.put(this.hashPrefix());return this.toBytesSink(e),e.finish()}toBytesSink(e){void 0!==this.item&&this.item.toBytesSink(e),this.index.toBytesSink(e)}}t.ShaMapLeaf=c;class f extends u{constructor(e=0){super(),this.depth=e,this.slotBits=0,this.branches=Array(16)}isInner(){return!0}isLeaf(){return!1}hashPrefix(){return o.HashPrefix.innerNode}setBranch(e,t){this.slotBits=this.slotBits|1<<e,this.branches[e]=t}empty(){return 0===this.slotBits}hash(){if(this.empty())return i.coreTypes.Hash256.ZERO_256;const e=a.Sha512Half.put(this.hashPrefix());return this.toBytesSink(e),e.finish()}toBytesSink(e){for(let t=0;t<this.branches.length;t++){const r=this.branches[t];(r?r.hash():i.coreTypes.Hash256.ZERO_256).toBytesSink(e)}}addItem(e,t,r){if(n.strict.ok(void 0!==e),void 0!==e){const n=e.nibblet(this.depth),i=this.branches[n];if(void 0===i)this.setBranch(n,r||new c(e,t));else if(i instanceof c){const o=new f(this.depth+1);o.addItem(i.index,void 0,i),o.addItem(e,t,r),this.setBranch(n,o)}else{if(!(i instanceof f))throw new Error("invalid ShaMap.addItem call");i.addItem(e,t,r)}}}}t.ShaMap=class extends f{}},34897:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccountID=void 0;const n=r(79798),i=r(28357),o=r(18390),a=/^[A-F0-9]{40}$/;class s extends i.Hash160{constructor(e){super(null!=e?e:s.defaultAccountID.bytes)}static from(e){if(e instanceof s)return e;if("string"==typeof e)return""===e?new s:a.test(e)?new s(o.Buffer.from(e,"hex")):this.fromBase58(e);throw new Error("Cannot construct AccountID from value given")}static fromBase58(e){if((0,n.isValidXAddress)(e)){const t=(0,n.xAddressToClassicAddress)(e);if(!1!==t.tag)throw new Error("Only allowed to have tag on Account or Destination");e=t.classicAddress}return new s(o.Buffer.from((0,n.decodeAccountID)(e)))}toJSON(){return this.toBase58()}toBase58(){return(0,n.encodeAccountID)(this.bytes)}}t.AccountID=s,s.defaultAccountID=new s(o.Buffer.alloc(20))},78631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Amount=void 0;const n=r(16856),i=r(60844),o=r(34897),a=r(11861),s=r(43859),u=r(32548),c=r(18390),f=new n.Decimal("1e17"),l=new n.Decimal("1e-6"),d=u(4294967295);n.Decimal.config({toExpPos:96,toExpNeg:-112});class h extends s.SerializedType{constructor(e){super(null!=e?e:h.defaultAmount.bytes)}static from(e){if(e instanceof h)return e;let t=c.Buffer.alloc(8);if("string"==typeof e){h.assertXrpIsValid(e);const r=u(e),n=[c.Buffer.alloc(4),c.Buffer.alloc(4)];return n[0].writeUInt32BE(Number(r.shiftRight(32)),0),n[1].writeUInt32BE(Number(r.and(d)),0),t=c.Buffer.concat(n),t[0]|=64,new h(t)}if(function(e){const t=Object.keys(e).sort();return 3===t.length&&"currency"===t[0]&&"issuer"===t[1]&&"value"===t[2]}(e)){const r=new n.Decimal(e.value);if(h.assertIouIsValid(r),r.isZero())t[0]|=128;else{const e=r.times("1e"+-(r.e-15)).abs().toString(),i=u(e),o=[c.Buffer.alloc(4),c.Buffer.alloc(4)];o[0].writeUInt32BE(Number(i.shiftRight(32)),0),o[1].writeUInt32BE(Number(i.and(d)),0),t=c.Buffer.concat(o),t[0]|=128,r.gt(new n.Decimal(0))&&(t[0]|=64);const a=r.e-15+97;t[0]|=a>>>2,t[1]|=(3&a)<<6}const i=a.Currency.from(e.currency).toBytes(),s=o.AccountID.from(e.issuer).toBytes();return new h(c.Buffer.concat([t,i,s]))}throw new Error("Invalid type to construct an Amount")}static fromParser(e){const t=128&e.peek()?48:8;return new h(e.read(t))}toJSON(){if(this.isNative()){const e=this.bytes,t=64&e[0]?"":"-";e[0]&=63;const r=u(e.slice(0,4).readUInt32BE(0)),n=u(e.slice(4).readUInt32BE(0));return`${t}${r.shiftLeft(32).or(n).toString()}`}{const e=new i.BinaryParser(this.toString()),t=e.read(8),r=a.Currency.fromParser(e),s=o.AccountID.fromParser(e),u=t[0],c=64&u?"":"-",f=((63&u)<<2)+((255&t[1])>>6)-97;t[0]=0,t[1]&=63;const l=new n.Decimal(`${c}0x${t.toString("hex")}`).times(`1e${f}`);return h.assertIouIsValid(l),{value:l.toString(),currency:r.toJSON(),issuer:s.toJSON()}}}static assertXrpIsValid(e){if(-1!==e.indexOf("."))throw new Error(`${e.toString()} is an illegal amount`);const t=new n.Decimal(e);if(!t.isZero()&&(t.lt(l)||t.gt(f)))throw new Error(`${e.toString()} is an illegal amount`)}static assertIouIsValid(e){if(!e.isZero()){const t=e.precision(),r=e.e-15;if(t>16||r>80||r<-96)throw new Error("Decimal precision out of range");this.verifyNoDecimal(e)}}static verifyNoDecimal(e){if(-1!==e.times("1e"+-(e.e-15)).abs().toString().indexOf("."))throw new Error("Decimal place found in integerNumberString")}isNative(){return 0==(128&this.bytes[0])}}t.Amount=h,h.defaultAmount=new h(c.Buffer.from("4000000000000000","hex"))},72374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Blob=void 0;const n=r(43859),i=r(18390);class o extends n.SerializedType{constructor(e){super(e)}static fromParser(e,t){return new o(e.read(t))}static from(e){if(e instanceof o)return e;if("string"==typeof e)return new o(i.Buffer.from(e,"hex"));throw new Error("Cannot construct Blob from value given")}}t.Blob=o},11861:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Currency=void 0;const n=r(28357),i=r(18390),o=/^0{40}$/,a=/^[A-Z0-9a-z?!@#$%^&*(){}[\]|]{3}$/,s=/^[A-F0-9]{40}$/,u=/^0{24}[\x00-\x7F]{6}0{10}$/;function c(e){if(!function(e){return e instanceof i.Buffer?20===e.byteLength:function(e){return 3===e.length||(t=e,s.test(t));var t}(e)}(e))throw new Error(`Unsupported Currency representation: ${e}`);return 3===e.length?function(e){const t=i.Buffer.alloc(20);if("XRP"!==e){const r=e.split("").map((e=>e.charCodeAt(0)));t.set(r,12)}return t}(e):i.Buffer.from(e,"hex")}class f extends n.Hash160{constructor(e){super(null!=e?e:f.XRP.bytes);const t=this.bytes.toString("hex");o.test(t)?this._iso="XRP":u.test(t)?this._iso=function(e){const t=e.toString();return"XRP"===t?null:function(e){return a.test(e)}(t)?t:null}(this.bytes.slice(12,15)):this._iso=null}iso(){return this._iso}static from(e){if(e instanceof f)return e;if("string"==typeof e)return new f(c(e));throw new Error("Cannot construct Currency from value given")}toJSON(){const e=this.iso();return null!==e?e:this.bytes.toString("hex").toUpperCase()}}t.Currency=f,f.XRP=new f(i.Buffer.alloc(20))},74084:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash128=void 0;const n=r(48118),i=r(18390);class o extends n.Hash{constructor(e){e&&0===e.byteLength&&(e=o.ZERO_128.bytes),super(null!=e?e:o.ZERO_128.bytes)}toHex(){const e=this.toBytes().toString("hex").toUpperCase();return/^0+$/.exec(e)?"":e}}t.Hash128=o,o.width=16,o.ZERO_128=new o(i.Buffer.alloc(o.width))},28357:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash160=void 0;const n=r(48118),i=r(18390);class o extends n.Hash{constructor(e){e&&0===e.byteLength&&(e=o.ZERO_160.bytes),super(null!=e?e:o.ZERO_160.bytes)}}t.Hash160=o,o.width=20,o.ZERO_160=new o(i.Buffer.alloc(o.width))},28467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash256=void 0;const n=r(48118),i=r(18390);class o extends n.Hash{constructor(e){super(null!=e?e:o.ZERO_256.bytes)}}t.Hash256=o,o.width=32,o.ZERO_256=new o(i.Buffer.alloc(o.width))},48118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=void 0;const n=r(43859),i=r(18390);class o extends n.Comparable{constructor(e){if(super(e),this.bytes.byteLength!==this.constructor.width)throw new Error(`Invalid Hash length ${this.bytes.byteLength}`)}static from(e){if(e instanceof this)return e;if("string"==typeof e)return new this(i.Buffer.from(e,"hex"));throw new Error("Cannot construct Hash from given value")}static fromParser(e,t){return new this(e.read(null!=t?t:this.width))}compareTo(e){return this.bytes.compare(this.constructor.from(e).bytes)}toString(){return this.toHex()}nibblet(e){const t=e>0?e/2|0:0;let r=this.bytes[t];return e%2==0?r=(240&r)>>>4:r&=15,r}}t.Hash=o},27601:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Vector256=t.UInt64=t.UInt32=t.UInt16=t.UInt8=t.STObject=t.STArray=t.PathSet=t.Hash256=t.Hash160=t.Hash128=t.Currency=t.Blob=t.Amount=t.AccountID=t.coreTypes=void 0;const n=r(34897);Object.defineProperty(t,"AccountID",{enumerable:!0,get:function(){return n.AccountID}});const i=r(78631);Object.defineProperty(t,"Amount",{enumerable:!0,get:function(){return i.Amount}});const o=r(72374);Object.defineProperty(t,"Blob",{enumerable:!0,get:function(){return o.Blob}});const a=r(11861);Object.defineProperty(t,"Currency",{enumerable:!0,get:function(){return a.Currency}});const s=r(74084);Object.defineProperty(t,"Hash128",{enumerable:!0,get:function(){return s.Hash128}});const u=r(28357);Object.defineProperty(t,"Hash160",{enumerable:!0,get:function(){return u.Hash160}});const c=r(28467);Object.defineProperty(t,"Hash256",{enumerable:!0,get:function(){return c.Hash256}});const f=r(81910),l=r(71380);Object.defineProperty(t,"PathSet",{enumerable:!0,get:function(){return l.PathSet}});const d=r(93094);Object.defineProperty(t,"STArray",{enumerable:!0,get:function(){return d.STArray}});const h=r(4477);Object.defineProperty(t,"STObject",{enumerable:!0,get:function(){return h.STObject}});const p=r(26651);Object.defineProperty(t,"UInt16",{enumerable:!0,get:function(){return p.UInt16}});const y=r(64775);Object.defineProperty(t,"UInt32",{enumerable:!0,get:function(){return y.UInt32}});const g=r(80897);Object.defineProperty(t,"UInt64",{enumerable:!0,get:function(){return g.UInt64}});const b=r(87246);Object.defineProperty(t,"UInt8",{enumerable:!0,get:function(){return b.UInt8}});const m=r(38552);Object.defineProperty(t,"Vector256",{enumerable:!0,get:function(){return m.Vector256}});const v=r(61790),w=r(12933),_={AccountID:n.AccountID,Amount:i.Amount,Blob:o.Blob,Currency:a.Currency,Hash128:s.Hash128,Hash160:u.Hash160,Hash256:c.Hash256,Issue:f.Issue,PathSet:l.PathSet,STArray:d.STArray,STObject:h.STObject,UInt8:b.UInt8,UInt16:p.UInt16,UInt32:y.UInt32,UInt64:g.UInt64,Vector256:m.Vector256,XChainBridge:v.XChainBridge};t.coreTypes=_,w.DEFAULT_DEFINITIONS.associateTypes(_)},81910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Issue=void 0;const n=r(60844),i=r(34897),o=r(11861),a=r(43859),s=r(18390);class u extends a.SerializedType{constructor(e){super(null!=e?e:u.ZERO_ISSUED_CURRENCY.bytes)}static from(e){if(e instanceof u)return e;if(function(e){const t=Object.keys(e).sort();return 1===t.length?"currency"===t[0]:2===t.length&&"currency"===t[0]&&"issuer"===t[1]}(e)){const t=o.Currency.from(e.currency).toBytes();if(null==e.issuer)return new u(t);const r=i.AccountID.from(e.issuer).toBytes();return new u(s.Buffer.concat([t,r]))}throw new Error("Invalid type to construct an Amount")}static fromParser(e){const t=e.read(20);if("XRP"===new o.Currency(t).toJSON())return new u(t);const r=[t,e.read(20)];return new u(s.Buffer.concat(r))}toJSON(){const e=new n.BinaryParser(this.toString()),t=o.Currency.fromParser(e);if("XRP"===t.toJSON())return{currency:t.toJSON()};const r=i.AccountID.fromParser(e);return{currency:t.toJSON(),issuer:r.toJSON()}}}t.Issue=u,u.ZERO_ISSUED_CURRENCY=new u(s.Buffer.alloc(20))},71380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathSet=void 0;const n=r(34897),i=r(11861),o=r(60844),a=r(43859),s=r(18390);class u extends a.SerializedType{static from(e){if(e instanceof u)return e;const t=[s.Buffer.from([0])];return e.account&&(t.push(n.AccountID.from(e.account).toBytes()),t[0][0]|=1),e.currency&&(t.push(i.Currency.from(e.currency).toBytes()),t[0][0]|=16),e.issuer&&(t.push(n.AccountID.from(e.issuer).toBytes()),t[0][0]|=32),new u(s.Buffer.concat(t))}static fromParser(e){const t=e.readUInt8(),r=[s.Buffer.from([t])];return 1&t&&r.push(e.read(n.AccountID.width)),16&t&&r.push(e.read(i.Currency.width)),32&t&&r.push(e.read(n.AccountID.width)),new u(s.Buffer.concat(r))}toJSON(){const e=new o.BinaryParser(this.bytes.toString("hex")),t=e.readUInt8();let r,a,s;1&t&&(r=n.AccountID.fromParser(e).toJSON()),16&t&&(a=i.Currency.fromParser(e).toJSON()),32&t&&(s=n.AccountID.fromParser(e).toJSON());const u={};return r&&(u.account=r),s&&(u.issuer=s),a&&(u.currency=a),u}type(){return this.bytes[0]}}class c extends a.SerializedType{static from(e){if(e instanceof c)return e;const t=[];return e.forEach((e=>{t.push(u.from(e).toBytes())})),new c(s.Buffer.concat(t))}static fromParser(e){const t=[];for(;!e.end()&&(t.push(u.fromParser(e).toBytes()),0!==e.peek()&&255!==e.peek()););return new c(s.Buffer.concat(t))}toJSON(){const e=[],t=new o.BinaryParser(this.toString());for(;!t.end();)e.push(u.fromParser(t).toJSON());return e}}class f extends a.SerializedType{static from(e){if(e instanceof f)return e;if(t=e,Array.isArray(t)&&0===t.length||Array.isArray(t)&&Array.isArray(t[0])&&0===t[0].length||Array.isArray(t)&&Array.isArray(t[0])&&function(e){return void 0!==e.issuer||void 0!==e.account||void 0!==e.currency}(t[0][0])){const t=[];return e.forEach((e=>{t.push(c.from(e).toBytes()),t.push(s.Buffer.from([255]))})),t[t.length-1]=s.Buffer.from([0]),new f(s.Buffer.concat(t))}var t;throw new Error("Cannot construct PathSet from given value")}static fromParser(e){const t=[];for(;!e.end()&&(t.push(c.fromParser(e).toBytes()),t.push(e.read(1)),0!=t[t.length-1][0]););return new f(s.Buffer.concat(t))}toJSON(){const e=[],t=new o.BinaryParser(this.toString());for(;!t.end();)e.push(c.fromParser(t).toJSON()),t.skip(1);return e}}t.PathSet=f},43859:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Comparable=t.SerializedType=void 0;const n=r(42510),i=r(18390);class o{constructor(e){this.bytes=i.Buffer.alloc(0),this.bytes=null!=e?e:i.Buffer.alloc(0)}static fromParser(e,t){throw new Error("fromParser not implemented")}static from(e){throw new Error("from not implemented")}toBytesSink(e){e.put(this.bytes)}toHex(){return this.toBytes().toString("hex").toUpperCase()}toBytes(){if(this.bytes)return this.bytes;const e=new n.BytesList;return this.toBytesSink(e),e.toBytes()}toJSON(e){return this.toHex()}toString(){return this.toHex()}}t.SerializedType=o,t.Comparable=class extends o{lt(e){return this.compareTo(e)<0}eq(e){return 0===this.compareTo(e)}gt(e){return this.compareTo(e)>0}gte(e){return this.compareTo(e)>-1}lte(e){return this.compareTo(e)<1}compareTo(e){throw new Error(`cannot compare ${this.toString()} and ${e.toString()}`)}}},93094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STArray=void 0;const n=r(12933),i=r(43859),o=r(4477),a=r(60844),s=r(18390),u=s.Buffer.from([241]),c="ArrayEndMarker",f=s.Buffer.from([225]);class l extends i.SerializedType{static fromParser(e){const t=[];for(;!e.end();){const r=e.readField();if(r.name===c)break;t.push(r.header,e.readFieldValue(r).toBytes(),f)}return t.push(u),new l(s.Buffer.concat(t))}static from(e,t=n.DEFAULT_DEFINITIONS){if(e instanceof l)return e;if(r=e,Array.isArray(r)&&(0===r.length||"object"==typeof r[0])){const r=[];return e.forEach((e=>{r.push(o.STObject.from(e,void 0,t).toBytes())})),r.push(u),new l(s.Buffer.concat(r))}var r;throw new Error("Cannot construct STArray from value given")}toJSON(e=n.DEFAULT_DEFINITIONS){const t=[],r=new a.BinaryParser(this.toString(),e);for(;!r.end();){const n=r.readField();if(n.name===c)break;const i={};i[n.name]=o.STObject.fromParser(r).toJSON(e),t.push(i)}return t}}t.STArray=l},4477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STObject=void 0;const n=r(12933),i=r(43859),o=r(79798),a=r(60844),s=r(42510),u=r(18390),c=r(93094),f=u.Buffer.from([225]),l="ObjectEndMarker",d="STObject",h="SourceTag",p="DestinationTag";class y extends i.SerializedType{static fromParser(e){const t=new s.BytesList,r=new s.BinarySerializer(t);for(;!e.end();){const t=e.readField();if(t.name===l)break;const n=e.readFieldValue(t);r.writeFieldAndValue(t,n),t.type.name===d&&r.put(f)}return new y(t.toBytes())}static from(e,t,r=n.DEFAULT_DEFINITIONS){if(e instanceof y)return e;const i=new s.BytesList,a=new s.BinarySerializer(i);let u=!1;const l=Object.entries(e).reduce(((t,[r,n])=>{let i;return n&&(0,o.isValidXAddress)(n.toString())&&(i=function(e,t){const r=(0,o.xAddressToClassicAddress)(t);let n;if("Destination"===e)n=p;else if("Account"===e)n=h;else if(!1!==r.tag)throw new Error(`${e} cannot have an associated tag`);return!1!==r.tag?{[e]:r.classicAddress,[n]:r.tag}:{[e]:r.classicAddress}}(r,n.toString()),function(e,t){if(void 0!==e[h]&&void 0!==t[h])throw new Error("Cannot have Account X-Address and SourceTag");if(void 0!==e[p]&&void 0!==t[p])throw new Error("Cannot have Destination X-Address and DestinationTag")}(i,e)),Object.assign(t,null!=i?i:{[r]:n})}),{});let g=Object.keys(l).map((e=>r.field[e])).filter((e=>void 0!==e&&void 0!==l[e.name]&&e.isSerialized)).sort(((e,t)=>e.ordinal-t.ordinal));return void 0!==t&&(g=g.filter(t)),g.forEach((e=>{const t=e.type.name===d?this.from(l[e.name],void 0,r):"STArray"===e.type.name?c.STArray.from(l[e.name],r):e.associatedType.from(l[e.name]);if(null==t)throw new TypeError(`Unable to interpret "${e.name}: ${l[e.name]}".`);"UNLModify"===t.name&&(u=!0);const n="Account"==e.name&&u;a.writeFieldAndValue(e,t,n),e.type.name===d&&a.put(f)})),new y(i.toBytes())}toJSON(e){const t=new a.BinaryParser(this.toString(),e),r={};for(;!t.end();){const n=t.readField();if(n.name===l)break;r[n.name]=t.readFieldValue(n).toJSON(e)}return r}}t.STObject=y},26651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UInt16=void 0;const n=r(18014),i=r(18390);class o extends n.UInt{constructor(e){super(null!=e?e:o.defaultUInt16.bytes)}static fromParser(e){return new o(e.read(o.width))}static from(e){if(e instanceof o)return e;if("number"==typeof e){const t=i.Buffer.alloc(o.width);return t.writeUInt16BE(e,0),new o(t)}throw new Error("Can not construct UInt16 with given value")}valueOf(){return this.bytes.readUInt16BE(0)}}t.UInt16=o,o.width=2,o.defaultUInt16=new o(i.Buffer.alloc(o.width))},64775:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UInt32=void 0;const n=r(18014),i=r(18390);class o extends n.UInt{constructor(e){super(null!=e?e:o.defaultUInt32.bytes)}static fromParser(e){return new o(e.read(o.width))}static from(e){if(e instanceof o)return e;const t=i.Buffer.alloc(o.width);if("string"==typeof e){const r=Number.parseInt(e);return t.writeUInt32BE(r,0),new o(t)}if("number"==typeof e)return t.writeUInt32BE(e,0),new o(t);throw new Error("Cannot construct UInt32 from given value")}valueOf(){return this.bytes.readUInt32BE(0)}}t.UInt32=o,o.width=4,o.defaultUInt32=new o(i.Buffer.alloc(o.width))},80897:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UInt64=void 0;const n=r(18014),i=r(32548),o=r(32548),a=r(18390),s=/^[a-fA-F0-9]{1,16}$/,u=i(4294967295);class c extends n.UInt{constructor(e){super(null!=e?e:c.defaultUInt64.bytes)}static fromParser(e){return new c(e.read(c.width))}static from(e){if(e instanceof c)return e;let t=a.Buffer.alloc(c.width);if("number"==typeof e){if(e<0)throw new Error("value must be an unsigned integer");const t=i(e),r=[a.Buffer.alloc(4),a.Buffer.alloc(4)];return r[0].writeUInt32BE(Number(t.shiftRight(32)),0),r[1].writeUInt32BE(Number(t.and(u)),0),new c(a.Buffer.concat(r))}if("string"==typeof e){if(!s.test(e))throw new Error(`${e} is not a valid hex-string`);const r=e.padStart(16,"0");return t=a.Buffer.from(r,"hex"),new c(t)}if((0,o.isInstance)(e)){const t=[a.Buffer.alloc(4),a.Buffer.alloc(4)];return t[0].writeUInt32BE(Number(e.shiftRight(i(32))),0),t[1].writeUInt32BE(Number(e.and(u)),0),new c(a.Buffer.concat(t))}throw new Error("Cannot construct UInt64 from given value")}toJSON(){return this.bytes.toString("hex").toUpperCase()}valueOf(){const e=i(this.bytes.slice(0,4).readUInt32BE(0)),t=i(this.bytes.slice(4).readUInt32BE(0));return e.shiftLeft(i(32)).or(t)}toBytes(){return this.bytes}}t.UInt64=c,c.width=8,c.defaultUInt64=new c(a.Buffer.alloc(c.width))},87246:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UInt8=void 0;const n=r(18014),i=r(18390);class o extends n.UInt{constructor(e){super(null!=e?e:o.defaultUInt8.bytes)}static fromParser(e){return new o(e.read(o.width))}static from(e){if(e instanceof o)return e;if("number"==typeof e){const t=i.Buffer.alloc(o.width);return t.writeUInt8(e,0),new o(t)}throw new Error("Cannot construct UInt8 from given value")}valueOf(){return this.bytes.readUInt8(0)}}t.UInt8=o,o.width=1,o.defaultUInt8=new o(i.Buffer.alloc(o.width))},18014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UInt=void 0;const n=r(43859);class i extends n.Comparable{constructor(e){super(e)}compareTo(e){return(t=this.valueOf())<(r=e.valueOf())?-1:t==r?0:1;var t,r}toJSON(){const e=this.valueOf();return"number"==typeof e?e:e.toString()}}t.UInt=i},38552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Vector256=void 0;const n=r(43859),i=r(28467),o=r(42510);class a extends n.SerializedType{constructor(e){super(e)}static fromParser(e,t){const r=new o.BytesList,n=(null!=t?t:e.size())/32;for(let t=0;t<n;t++)i.Hash256.fromParser(e).toBytesSink(r);return new a(r.toBytes())}static from(e){if(e instanceof a)return e;if(t=e,Array.isArray(t)&&(0===t.length||"string"==typeof t[0])){const t=new o.BytesList;return e.forEach((e=>{i.Hash256.from(e).toBytesSink(t)})),new a(t.toBytes())}var t;throw new Error("Cannot construct Vector256 from given value")}toJSON(){if(this.bytes.byteLength%32!=0)throw new Error("Invalid bytes for Vector256");const e=[];for(let t=0;t<this.bytes.byteLength;t+=32)e.push(this.bytes.slice(t,t+32).toString("hex").toUpperCase());return e}}t.Vector256=a},61790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XChainBridge=void 0;const n=r(60844),i=r(34897),o=r(43859),a=r(18390),s=r(81910);class u extends o.SerializedType{constructor(e){super(null!=e?e:u.ZERO_XCHAIN_BRIDGE.bytes)}static from(e){if(e instanceof u)return e;if(!function(e){const t=Object.keys(e).sort();return 4===t.length&&"IssuingChainDoor"===t[0]&&"IssuingChainIssue"===t[1]&&"LockingChainDoor"===t[2]&&"LockingChainIssue"===t[3]}(e))throw new Error("Invalid type to construct an XChainBridge");const t=[];return this.TYPE_ORDER.forEach((r=>{const{name:n,type:o}=r;o===i.AccountID&&t.push(a.Buffer.from([20]));const s=o.from(e[n]);t.push(s.toBytes())})),new u(a.Buffer.concat(t))}static fromParser(e){const t=[];return this.TYPE_ORDER.forEach((r=>{const{type:n}=r;n===i.AccountID&&(e.skip(1),t.push(a.Buffer.from([20])));const o=n.fromParser(e);t.push(o.toBytes())})),new u(a.Buffer.concat(t))}toJSON(){const e=new n.BinaryParser(this.toString()),t={};return u.TYPE_ORDER.forEach((r=>{const{name:n,type:o}=r;o===i.AccountID&&e.skip(1);const a=o.fromParser(e).toJSON();t[n]=a})),t}}t.XChainBridge=u,u.ZERO_XCHAIN_BRIDGE=new u(a.Buffer.concat([a.Buffer.from([20]),a.Buffer.alloc(40),a.Buffer.from([20]),a.Buffer.alloc(40)])),u.TYPE_ORDER=[{name:"LockingChainDoor",type:i.AccountID},{name:"LockingChainIssue",type:s.Issue},{name:"IssuingChainDoor",type:i.AccountID},{name:"IssuingChainIssue",type:s.Issue}]},85830:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const a=o(r(58925)),s=r(69999);t.default=class{constructor(){this.hash=a.sha512()}add(e){return this.hash.update(e),this}addU32(e){return this.add([e>>>24&255,e>>>16&255,e>>>8&255,255&e])}finish(){return this.hash.digest()}first256(){return this.finish().slice(0,32)}first256BN(){return new s(this.first256())}}},43004:function(e,t,r){"use strict";var n=r(18390).Buffer,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSeed=t.deriveNodeAddress=t.deriveAddress=t.verify=t.sign=t.deriveKeypair=t.generateSeed=void 0;const s=a(r(32037)),u=r(72486),c=a(r(58925)),f=a(r(42870)),l=a(r(79798)),d=r(80184),h=a(r(31434)),p=f.eddsa("ed25519"),y=f.ec("secp256k1"),{hexToBytes:g}=h,{bytesToHex:b}=h;function m(e){return c.sha512().update(e).digest().slice(0,32)}t.generateSeed=function(e={}){s.ok(!e.entropy||e.entropy.length>=16,"entropy too short");const t=e.entropy?e.entropy.slice(0,16):u(16),r="ed25519"===e.algorithm?"ed25519":"secp256k1";return l.encodeSeed(n.from(t),r)};const v={deriveKeypair(e,t){const r="00"+(0,d.derivePrivateKey)(e,t).toString(16,64).toUpperCase(),n=b(y.keyFromPrivate(r.slice(2)).getPublic().encodeCompressed());return{privateKey:r,publicKey:n}},sign:(e,t)=>b(y.sign(m(e),g(t),{canonical:!0}).toDER()),verify:(e,t,r)=>y.verify(m(e),t,g(r))},w={deriveKeypair(e){const t=m(e);return{privateKey:"ED"+b(t),publicKey:"ED"+b(p.keyFromSecret(t).pubBytes())}},sign:(e,t)=>(s.ok(Array.isArray(e),"message must be array of octets"),b(p.sign(e,g(t).slice(1)).toBytes())),verify:(e,t,r)=>p.verify(e,g(t),g(r).slice(1))};function _(e){return{"ecdsa-secp256k1":v,ed25519:w}[e]}function S(e){const t=g(e);return 33===t.length&&237===t[0]?"ed25519":"ecdsa-secp256k1"}function E(e){return l.encodeAccountID(h.computePublicKeyHash(e))}t.deriveKeypair=function(e,t){const r=l.decodeSeed(e),n=_("ed25519"===r.type?"ed25519":"ecdsa-secp256k1"),i=n.deriveKeypair(r.bytes,t),o=m("This test message should verify."),a=n.sign(o,i.privateKey);if(!0!==n.verify(o,a,i.publicKey))throw new Error("derived keypair did not generate verifiable signature");return i},t.sign=function(e,t){return _(S(t)).sign(g(e),t)},t.verify=function(e,t,r){return _(S(r)).verify(g(e),t,r)},t.deriveAddress=function(e){return E(n.from(g(e)))},t.deriveNodeAddress=function(e){const t=l.decodeNodePublic(e);return E((0,d.accountPublicFromPublicGenerator)(t))};const{decodeSeed:A}=l;t.decodeSeed=A},80184:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.accountPublicFromPublicGenerator=t.derivePrivateKey=void 0;const s=o(r(42870)),u=a(r(85830)),c=s.ec("secp256k1");function f(e,t){const r=c.curve.n;for(let n=0;n<=4294967295;n++){const i=(new u.default).add(e);void 0!==t&&i.addU32(t),i.addU32(n);const o=i.first256BN();if(o.cmpn(0)>0&&o.cmp(r)<0)return o}throw new Error("impossible unicorn ;)")}t.derivePrivateKey=function(e,t={}){const r=t.validator,n=c.curve.n,i=f(e);if(r)return i;const o=c.g.mul(i),a=t.accountIndex||0;return f(o.encodeCompressed(),a).add(i).mod(n)},t.accountPublicFromPublicGenerator=function(e){const t=c.curve.decodePoint(e),r=f(e,0),n=c.g.mul(r);return t.add(n).encodeCompressed()}},31434:function(e,t,r){"use strict";var n=r(18390).Buffer,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.computePublicKeyHash=t.hexToBytes=t.bytesToHex=void 0;const s=a(r(32037)),u=a(r(58925)),c=r(69999);t.bytesToHex=function(e){return Array.from(e,(e=>{const t=e.toString(16).toUpperCase();return t.length>1?t:`0${t}`})).join("")},t.hexToBytes=function(e){return s.ok(e.length%2==0),0===e.length?[]:new c(e,16).toArray(null,e.length/2)},t.computePublicKeyHash=function(e){const t=u.sha256().update(e).digest(),r=u.ripemd160().update(t).digest();return n.from(r)}},59105:(e,t,r)=>{var n=r(18390),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},95848:(e,t,r)=>{"use strict";var n,i=r(48494),o=r(18390),a=o.Buffer,s={};for(n in o)o.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(s[n]=o[n]);var u=s.Buffer={};for(n in a)a.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(u[n]=a[n]);if(s.Buffer.prototype=a.prototype,u.from&&u.from!==Uint8Array.from||(u.from=function(e,t,r){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return a(e,t,r)}),u.alloc||(u.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=a(e);return t&&0!==t.length?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!s.kStringMaxLength)try{s.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(e){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),e.exports=s},40985:(e,t,r)=>{"use strict";var n=r(65205),i=r(40823),o=r(23280)(),a=r(558),s=n("%TypeError%"),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var f=a(e,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},63221:(e,t,r)=>{var n=r(59105).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var u=a%i,c=Math.min(o-s,i-u),f=0;f<c;f++)r[u+f]=e[s+f];s+=c,(a+=c)%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},55695:(e,t,r)=>{var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(53875),n.sha1=r(5090),n.sha224=r(21698),n.sha256=r(58710),n.sha384=r(36333),n.sha512=r(91720)},53875:(e,t,r)=>{var n=r(19105),i=r(63221),o=r(59105).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,l=0;l<16;++l)r[l]=e.readInt32BE(4*l);for(;l<80;++l)r[l]=r[l-3]^r[l-8]^r[l-14]^r[l-16];for(var d=0;d<80;++d){var h=~~(d/20),p=0|((t=n)<<5|t>>>27)+f(h,i,o,s)+u+r[d]+a[h];u=s,s=o,o=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},5090:(e,t,r)=>{var n=r(19105),i=r(63221),o=r(59105).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),y=c(n)+l(p,i,o,s)+u+r[h]+a[p]|0;u=s,s=o,o=f(i),i=n,n=y}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},21698:(e,t,r)=>{var n=r(19105),i=r(58710),o=r(63221),a=r(59105).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},58710:(e,t,r)=>{var n=r(19105),i=r(63221),o=r(59105).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,y=0|this._g,g=0|this._h,b=0;b<16;++b)r[b]=e.readInt32BE(4*b);for(;b<64;++b)r[b]=0|(((t=r[b-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[b-7]+h(r[b-15])+r[b-16];for(var m=0;m<64;++m){var v=g+d(u)+c(u,p,y)+a[m]+r[m]|0,w=l(n)+f(n,i,o)|0;g=y,y=p,p=u,u=s+v|0,s=o,o=i,i=n,n=v+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=y+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},36333:(e,t,r)=>{var n=r(19105),i=r(91720),o=r(63221),a=r(59105).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},91720:(e,t,r)=>{var n=r(19105),i=r(63221),o=r(59105).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return e>>>0<t>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,m=0|this._gh,v=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,E=0|this._dl,A=0|this._el,O=0|this._fl,M=0|this._gl,T=0|this._hl,I=0;I<32;I+=2)t[I]=e.readInt32BE(4*I),t[I+1]=e.readInt32BE(4*I+4);for(;I<160;I+=2){var N=t[I-30],C=t[I-30+1],L=h(N,C),x=p(C,N),R=y(N=t[I-4],C=t[I-4+1]),k=g(C,N),B=t[I-14],P=t[I-14+1],D=t[I-32],j=t[I-32+1],F=x+P|0,U=L+B+b(F,x)|0;U=(U=U+R+b(F=F+k|0,k)|0)+D+b(F=F+j|0,j)|0,t[I]=U,t[I+1]=F}for(var H=0;H<160;H+=2){U=t[H],F=t[H+1];var V=f(r,n,i),z=f(w,_,S),q=l(r,w),K=l(w,r),W=d(s,A),G=d(A,s),X=a[H],Y=a[H+1],$=c(s,u,m),J=c(A,O,M),Z=T+G|0,Q=v+W+b(Z,T)|0;Q=(Q=(Q=Q+$+b(Z=Z+J|0,J)|0)+X+b(Z=Z+Y|0,Y)|0)+U+b(Z=Z+F|0,F)|0;var ee=K+z|0,te=q+V+b(ee,K)|0;v=m,T=M,m=u,M=O,u=s,O=A,s=o+Q+b(A=E+Z|0,E)|0,o=i,E=S,i=n,S=_,n=r,_=w,r=Q+te+b(w=Z+ee|0,Z)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+E|0,this._el=this._el+A|0,this._fl=this._fl+O|0,this._gl=this._gl+M|0,this._hl=this._hl+T|0,this._ah=this._ah+r+b(this._al,w)|0,this._bh=this._bh+n+b(this._bl,_)|0,this._ch=this._ch+i+b(this._cl,S)|0,this._dh=this._dh+o+b(this._dl,E)|0,this._eh=this._eh+s+b(this._el,A)|0,this._fh=this._fh+u+b(this._fl,O)|0,this._gh=this._gh+m+b(this._gl,M)|0,this._hh=this._hh+v+b(this._hl,T)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},64301:(e,t,r)=>{"use strict";var n=r(65205),i=r(34537),o=r(64651),a=n("%TypeError%"),s=n("%WeakMap%",!0),u=n("%Map%",!0),c=i("WeakMap.prototype.get",!0),f=i("WeakMap.prototype.set",!0),l=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),h=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),y=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+o(e))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(u){if(t)return d(t,n)}else if(r)return function(e,t){var r=y(e,t);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(u){if(t)return p(t,n)}else if(r)return function(e,t){return!!y(e,t)}(r,n);return!1},set:function(n,i){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),f(e,n,i)):u?(t||(t=new u),h(t,n,i)):(r||(r={key:{},next:null}),function(e,t,r){var n=y(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,i))}};return n}},98672:(e,t,r)=>{e.exports=i;var n=r(67725).EventEmitter;function i(){n.call(this)}r(19105)(i,n),i.Readable=r(6246),i.Writable=r(90609),i.Duplex=r(55101),i.Transform=r(16889),i.PassThrough=r(17153),i.finished=r(84781),i.pipeline=r(69635),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",c),e.on("error",c),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},4254:(e,t,r)=>{var n=r(33818),i=r(69684),o=r(90139),a=r(77124),s=r(85192),u=t;u.request=function(e,t){e="string"==typeof e?s.parse(e):o(e);var i=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||i,u=e.hostname||e.host,c=e.port,f=e.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),e.url=(u?a+"//"+u:"")+(c?":"+c:"")+f,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var l=new n(e);return t&&l.on("response",t),l},u.get=function(e,t){var r=u.request(e,t);return r.end(),r},u.ClientRequest=n,u.IncomingMessage=i.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=a,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},3650:(e,t,r)=>{var n;function i(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function a(e){return"function"==typeof e}t.fetch=a(r.g.fetch)&&a(r.g.ReadableStream),t.writableStream=a(r.g.WritableStream),t.abortController=a(r.g.AbortController),t.arraybuffer=t.fetch||o("arraybuffer"),t.msstream=!t.fetch&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&a(i().overrideMimeType),n=null},33818:(e,t,r)=>{var n=r(18390).Buffer,i=r(48494),o=r(3650),a=r(19105),s=r(69684),u=r(8542),c=s.IncomingMessage,f=s.readyStates,l=e.exports=function(e){var t,r=this;u.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+n.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)i=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":"text"}(t,i),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",(function(){r._onFinish()}))};a(l,u.Writable),l.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===d.indexOf(r)&&(this._headers[r]={name:e,value:t})},l.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},l.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},l.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var n=e._headers,a=null;"GET"!==t.method&&"HEAD"!==t.method&&(a=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var s=[];if(Object.keys(n).forEach((function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===e._mode){var u=null;if(o.abortController){var c=new AbortController;u=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:u}).then((function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()}),(function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)}))}else{var l=e._xhr=new r.g.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){l.setRequestHeader(e[0],e[1])})),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{l.send(a)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}}}},l.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},l.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},l.prototype._write=function(e,t,r){this._body.push(e),r()},l.prototype._resetTimers=function(e){var t=this;r.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(r.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=r.g.setTimeout((function(){t.emit("timeout")}),t._socketTimeout))},l.prototype.abort=l.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},l.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),u.Writable.prototype.end.call(this,e,t,r)},l.prototype.setTimeout=function(e,t){var r=this;t&&r.once("timeout",t),r._socketTimeout=e,r._resetTimers(!1)},l.prototype.flushHeaders=function(){},l.prototype.setNoDelay=function(){},l.prototype.setSocketKeepAlive=function(){};var d=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},69684:(e,t,r)=>{var n=r(48494),i=r(18390).Buffer,o=r(3650),a=r(19105),s=r(8542),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(e,t,r,a){var u=this;if(s.Readable.call(u),u._mode=r,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",(function(){n.nextTick((function(){u.emit("close")}))})),"fetch"===r){if(u._fetchResponse=t,u.url=t.url,u.statusCode=t.status,u.statusMessage=t.statusText,t.headers.forEach((function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)})),o.writableStream){var c=new WritableStream({write:function(e){return a(!1),new Promise((function(t,r){u._destroyed?r():u.push(i.from(e))?t():u._resumeFetch=t}))},close:function(){a(!0),u._destroyed||u.push(null)},abort:function(e){a(!0),u._destroyed||u.emit("error",e)}});try{return void t.body.pipeTo(c).catch((function(e){a(!0),u._destroyed||u.emit("error",e)}))}catch(e){}}var f=t.body.getReader();!function e(){f.read().then((function(t){u._destroyed||(a(t.done),t.done?u.push(null):(u.push(i.from(t.value)),e()))})).catch((function(e){a(!0),u._destroyed||u.emit("error",e)}))}()}else if(u._xhr=e,u._pos=0,u.url=e.responseURL,u.statusCode=e.status,u.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===u.headers[r]&&(u.headers[r]=[]),u.headers[r].push(t[2])):void 0!==u.headers[r]?u.headers[r]+=", "+t[2]:u.headers[r]=t[2],u.rawHeaders.push(t[1],t[2])}})),u._charset="x-user-defined",!o.overrideMimeType){var l=u.rawHeaders["mime-type"];if(l){var d=l.match(/;\s*charset=([^;])(;|$)/);d&&(u._charset=d[1].toLowerCase())}u._charset||(u._charset="utf-8")}};a(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,o=null;switch(t._mode){case"text":if((o=n.responseText).length>t._pos){var a=o.substr(t._pos);if("x-user-defined"===t._charset){for(var s=i.alloc(a.length),c=0;c<a.length;c++)s[c]=255&a.charCodeAt(c);t.push(s)}else t.push(a,t._charset);t._pos=o.length}break;case"arraybuffer":if(n.readyState!==u.DONE||!n.response)break;o=n.response,t.push(i.from(new Uint8Array(o)));break;case"moz-chunked-arraybuffer":if(o=n.response,n.readyState!==u.LOADING||!o)break;t.push(i.from(new Uint8Array(o)));break;case"ms-stream":if(o=n.response,n.readyState!==u.LOADING)break;var f=new r.g.MSStreamReader;f.onprogress=function(){f.result.byteLength>t._pos&&(t.push(i.from(new Uint8Array(f.result.slice(t._pos)))),t._pos=f.result.byteLength)},f.onload=function(){e(!0),t.push(null)},f.readAsArrayBuffer(o)}t._xhr.readyState===u.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},18842:(e,t,r)=>{"use strict";var n=r(59105).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},41058:(e,t,r)=>{var n=r(18390).Buffer;const i=r(10660),o=new(0,r(42870).ec)("secp256k1"),a=r(40382),s=n.alloc(32,0),u=n.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),c=n.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex"),f=o.curve.n,l=f.shrn(1),d=o.curve.g,h="Expected Private",p="Expected Point",y="Expected Tweak",g="Expected Hash";function b(e){return n.isBuffer(e)&&32===e.length}function m(e){return!!b(e)&&e.compare(u)<0}function v(e){if(!n.isBuffer(e))return!1;if(e.length<33)return!1;const t=e[0],r=e.slice(1,33);if(0===r.compare(s))return!1;if(r.compare(c)>=0)return!1;if((2===t||3===t)&&33===e.length){try{O(e)}catch(e){return!1}return!0}const i=e.slice(33);return 0!==i.compare(s)&&!(i.compare(c)>=0)&&4===t&&65===e.length}function w(e){return 4!==e[0]}function _(e){return!!b(e)&&e.compare(s)>0&&e.compare(u)<0}function S(e,t){return void 0===e&&void 0!==t?w(t):void 0===e||e}function E(e){return new i(e)}function A(e){return e.toArrayLike(n,"be",32)}function O(e){return o.curve.decodePoint(e)}function M(e,t){return n.from(e._encode(t))}function T(e,t,r){if(!b(e))throw new TypeError(g);if(!_(t))throw new TypeError(h);if(void 0!==r&&!b(r))throw new TypeError("Expected Extra Data (32 bytes)");const i=E(t),o=E(e);let s,u;a(e,t,(function(e){const t=E(e),r=d.mul(t);return!r.isInfinity()&&(s=r.x.umod(f),0!==s.isZero()&&(u=t.invm(f).mul(o.add(i.mul(s))).umod(f),0!==u.isZero()))}),_,r),u.cmp(l)>0&&(u=f.sub(u));const c=n.allocUnsafe(64);return A(s).copy(c,0),A(u).copy(c,32),c}e.exports={isPoint:v,isPointCompressed:function(e){return!!v(e)&&w(e)},isPrivate:_,pointAdd:function(e,t,r){if(!v(e))throw new TypeError(p);if(!v(t))throw new TypeError(p);const n=O(e),i=O(t),o=n.add(i);return o.isInfinity()?null:M(o,S(r,e))},pointAddScalar:function(e,t,r){if(!v(e))throw new TypeError(p);if(!m(t))throw new TypeError(y);const n=S(r,e),i=O(e);if(0===t.compare(s))return M(i,n);const o=E(t),a=d.mul(o),u=i.add(a);return u.isInfinity()?null:M(u,n)},pointCompress:function(e,t){if(!v(e))throw new TypeError(p);const r=O(e);if(r.isInfinity())throw new TypeError(p);return M(r,S(t,e))},pointFromScalar:function(e,t){if(!_(e))throw new TypeError(h);const r=E(e),n=d.mul(r);return n.isInfinity()?null:M(n,S(t))},pointMultiply:function(e,t,r){if(!v(e))throw new TypeError(p);if(!m(t))throw new TypeError(y);const n=S(r,e),i=O(e),o=E(t),a=i.mul(o);return a.isInfinity()?null:M(a,n)},privateAdd:function(e,t){if(!_(e))throw new TypeError(h);if(!m(t))throw new TypeError(y);const r=E(e),n=E(t),i=A(r.add(n).umod(f));return _(i)?i:null},privateSub:function(e,t){if(!_(e))throw new TypeError(h);if(!m(t))throw new TypeError(y);const r=E(e),n=E(t),i=A(r.sub(n).umod(f));return _(i)?i:null},sign:function(e,t){return T(e,t)},signWithEntropy:function(e,t,r){return T(e,t,r)},verify:function(e,t,r,i){if(!b(e))throw new TypeError(g);if(!v(t))throw new TypeError(p);if(!function(e){const t=e.slice(0,32),r=e.slice(32,64);return n.isBuffer(e)&&64===e.length&&t.compare(u)<0&&r.compare(u)<0}(r))throw new TypeError("Expected Signature");const o=O(t),a=E(r.slice(0,32)),s=E(r.slice(32,64));if(i&&s.cmp(l)>0)return!1;if(a.gtn(0)<=0)return!1;if(s.gtn(0)<=0)return!1;const c=E(e),h=s.invm(f),y=c.mul(h).umod(f),m=a.mul(h).umod(f),w=d.mulAdd(y,o,m);return!w.isInfinity()&&w.x.umod(f).eq(a)}}},40382:(e,t,r)=>{var n=r(18390).Buffer;const i=r(18451),o=n.alloc(1,1),a=n.alloc(1,0);e.exports=function(e,t,r,s,u){let c=n.alloc(32,0),f=n.alloc(32,1);c=i("sha256",c).update(f).update(a).update(t).update(e).update(u||"").digest(),f=i("sha256",c).update(f).digest(),c=i("sha256",c).update(f).update(o).update(t).update(e).update(u||"").digest(),f=i("sha256",c).update(f).digest(),f=i("sha256",c).update(f).digest();let l=f;for(;!s(l)||!r(l);)c=i("sha256",c).update(f).update(a).digest(),f=i("sha256",c).update(f).digest(),f=i("sha256",c).update(f).digest(),l=f;return l}},4367:(e,t,r)=>{var n=r(27400);function i(e){return e.name||e.toString().match(/function (.*?)\s*\(/)[1]}function o(e){return n.Nil(e)?"":i(e.constructor)}function a(e,t){Error.captureStackTrace&&Error.captureStackTrace(e,t)}function s(e){return n.Function(e)?e.toJSON?e.toJSON():i(e):n.Array(e)?"Array":e&&n.Object(e)?"Object":void 0!==e?e:""}function u(e,t,r){var i=function(e){return n.Function(e)?"":n.String(e)?JSON.stringify(e):e&&n.Object(e)?"":e}(t);return"Expected "+s(e)+", got"+(""!==r?" "+r:"")+(""!==i?" "+i:"")}function c(e,t,r){r=r||o(t),this.message=u(e,t,r),a(this,c),this.__type=e,this.__value=t,this.__valueTypeName=r}function f(e,t,r,n,i){e?(i=i||o(n),this.message=function(e,t,r,n,i){var o='" of type ';return"key"===t&&(o='" with key type '),u('property "'+s(r)+o+s(e),n,i)}(e,r,t,n,i)):this.message='Unexpected property "'+t+'"',a(this,c),this.__label=r,this.__property=t,this.__type=e,this.__value=n,this.__valueTypeName=i}c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,f.prototype=Object.create(Error.prototype),f.prototype.constructor=c,e.exports={TfTypeError:c,TfPropertyTypeError:f,tfCustomError:function(e,t){return new c(e,{},t)},tfSubError:function(e,t,r){return e instanceof f?(t=t+"."+e.__property,e=new f(e.__type,t,e.__label,e.__value,e.__valueTypeName)):e instanceof c&&(e=new f(e.__type,t,r,e.__value,e.__valueTypeName)),a(e),e},tfJSON:s,getValueTypeName:o}},51566:(e,t,r)=>{var n=r(18390).Buffer,i=r(27400),o=r(4367);function a(e){return n.isBuffer(e)}function s(e){return"string"==typeof e&&/^([0-9a-f]{2})+$/i.test(e)}function u(e,t){var r=e.toJSON();function n(n){if(!e(n))return!1;if(n.length===t)return!0;throw o.tfCustomError(r+"(Length: "+t+")",r+"(Length: "+n.length+")")}return n.toJSON=function(){return r},n}var c=u.bind(null,i.Array),f=u.bind(null,a),l=u.bind(null,s),d=u.bind(null,i.String),h=Math.pow(2,53)-1,p={ArrayN:c,Buffer:a,BufferN:f,Finite:function(e){return"number"==typeof e&&isFinite(e)},Hex:s,HexN:l,Int8:function(e){return e<<24>>24===e},Int16:function(e){return e<<16>>16===e},Int32:function(e){return(0|e)===e},Int53:function(e){return"number"==typeof e&&e>=-h&&e<=h&&Math.floor(e)===e},Range:function(e,t,r){function n(n,i){return r(n,i)&&n>e&&n<t}return r=r||i.Number,n.toJSON=function(){return`${r.toJSON()} between [${e}, ${t}]`},n},StringN:d,UInt8:function(e){return(255&e)===e},UInt16:function(e){return(65535&e)===e},UInt32:function(e){return e>>>0===e},UInt53:function(e){return"number"==typeof e&&e>=0&&e<=h&&Math.floor(e)===e}};for(var y in p)p[y].toJSON=function(e){return e}.bind(null,y);e.exports=p},22420:(e,t,r)=>{var n=r(4367),i=r(27400),o=n.tfJSON,a=n.TfTypeError,s=n.TfPropertyTypeError,u=n.tfSubError,c=n.getValueTypeName,f={arrayOf:function(e,t){function r(r,n){return!!i.Array(r)&&!i.Nil(r)&&!(void 0!==t.minLength&&r.length<t.minLength)&&!(void 0!==t.maxLength&&r.length>t.maxLength)&&(void 0===t.length||r.length===t.length)&&r.every((function(t,r){try{return d(e,t,n)}catch(e){throw u(e,r)}}))}return e=l(e),t=t||{},r.toJSON=function(){var r="["+o(e)+"]";return void 0!==t.length?r+="{"+t.length+"}":void 0===t.minLength&&void 0===t.maxLength||(r+="{"+(void 0===t.minLength?0:t.minLength)+","+(void 0===t.maxLength?1/0:t.maxLength)+"}"),r},r},maybe:function e(t){function r(r,n){return i.Nil(r)||t(r,n,e)}return t=l(t),r.toJSON=function(){return"?"+o(t)},r},map:function(e,t){function r(r,n){if(!i.Object(r))return!1;if(i.Nil(r))return!1;for(var o in r){try{t&&d(t,o,n)}catch(e){throw u(e,o,"key")}try{var a=r[o];d(e,a,n)}catch(e){throw u(e,o)}}return!0}return e=l(e),t&&(t=l(t)),r.toJSON=t?function(){return"{"+o(t)+": "+o(e)+"}"}:function(){return"{"+o(e)+"}"},r},object:function(e){var t={};for(var r in e)t[r]=l(e[r]);function n(e,r){if(!i.Object(e))return!1;if(i.Nil(e))return!1;var n;try{for(n in t)d(t[n],e[n],r)}catch(e){throw u(e,n)}if(r)for(n in e)if(!t[n])throw new s(void 0,n);return!0}return n.toJSON=function(){return o(t)},n},anyOf:function(){var e=[].slice.call(arguments).map(l);function t(t,r){return e.some((function(e){try{return d(e,t,r)}catch(e){return!1}}))}return t.toJSON=function(){return e.map(o).join("|")},t},allOf:function(){var e=[].slice.call(arguments).map(l);function t(t,r){return e.every((function(e){try{return d(e,t,r)}catch(e){return!1}}))}return t.toJSON=function(){return e.map(o).join(" & ")},t},quacksLike:function(e){function t(t){return e===c(t)}return t.toJSON=function(){return e},t},tuple:function(){var e=[].slice.call(arguments).map(l);function t(t,r){return!i.Nil(t)&&!i.Nil(t.length)&&(!r||t.length===e.length)&&e.every((function(e,n){try{return d(e,t[n],r)}catch(e){throw u(e,n)}}))}return t.toJSON=function(){return"("+e.map(o).join(", ")+")"},t},value:function(e){function t(t){return t===e}return t.toJSON=function(){return e},t}};function l(e){if(i.String(e))return"?"===e[0]?f.maybe(e.slice(1)):i[e]||f.quacksLike(e);if(e&&i.Object(e)){if(i.Array(e)){if(1!==e.length)throw new TypeError("Expected compile() parameter of type Array of length 1");return f.arrayOf(e[0])}return f.object(e)}return i.Function(e)?e:f.value(e)}function d(e,t,r,n){if(i.Function(e)){if(e(t,r))return!0;throw new a(n||e,t)}return d(l(e),t,r)}for(var h in f.oneOf=f.anyOf,i)d[h]=i[h];for(h in f)d[h]=f[h];var p=r(51566);for(h in p)d[h]=p[h];d.compile=l,d.TfTypeError=a,d.TfPropertyTypeError=s,e.exports=d},27400:e=>{var t={Array:function(e){return null!=e&&e.constructor===Array},Boolean:function(e){return"boolean"==typeof e},Function:function(e){return"function"==typeof e},Nil:function(e){return null==e},Number:function(e){return"number"==typeof e},Object:function(e){return"object"==typeof e},String:function(e){return"string"==typeof e},"":function(){return!0}};for(var r in t.Null=t.Nil,t)t[r].toJSON=function(e){return e}.bind(null,r);e.exports=t},92761:function(e,t,r){var n;e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,u=36,c=26,f=38,l=700,d=/^xn--/,h=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=u-1,b=Math.floor,m=String.fromCharCode;function v(e){throw new RangeError(y[e])}function w(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function _(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+w((e=e.replace(p,".")).split("."),t).join(".")}function S(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function E(e){return w(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+m(e)})).join("")}function A(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,r){var n=0;for(e=r?b(e/l):e>>1,e+=b(e/t);e>g*c>>1;n+=u)e=b(e/g);return b(n+(g+1)*e/(e+f))}function M(e){var t,r,n,i,o,a,f,l,d,h,p,y=[],g=e.length,m=0,w=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&v("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<g;){for(o=m,a=1,f=u;i>=g&&v("invalid-input"),((l=(p=e.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:u)>=u||l>b((s-m)/a))&&v("overflow"),m+=l*a,!(l<(d=f<=_?1:f>=_+c?c:f-_));f+=u)a>b(s/(h=u-d))&&v("overflow"),a*=h;_=O(m-o,t=y.length+1,0==o),b(m/t)>s-w&&v("overflow"),w+=b(m/t),m%=t,y.splice(m++,0,w)}return E(y)}function T(e){var t,r,n,i,o,a,f,l,d,h,p,y,g,w,_,E=[];for(y=(e=S(e)).length,t=128,r=0,o=72,a=0;a<y;++a)(p=e[a])<128&&E.push(m(p));for(n=i=E.length,i&&E.push("-");n<y;){for(f=s,a=0;a<y;++a)(p=e[a])>=t&&p<f&&(f=p);for(f-t>b((s-r)/(g=n+1))&&v("overflow"),r+=(f-t)*g,t=f,a=0;a<y;++a)if((p=e[a])<t&&++r>s&&v("overflow"),p==t){for(l=r,d=u;!(l<(h=d<=o?1:d>=o+c?c:d-o));d+=u)_=l-h,w=u-h,E.push(m(A(h+_%w,0))),l=b(_/w);E.push(m(A(l,0))),o=O(r,g,n==i),r=0,++n}++r,++t}return E.join("")}a={version:"1.4.1",ucs2:{decode:S,encode:E},decode:M,encode:T,toASCII:function(e){return _(e,(function(e){return h.test(e)?"xn--"+T(e):e}))},toUnicode:function(e){return _(e,(function(e){return d.test(e)?M(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},21070:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},49260:(e,t,r)=>{"use strict";var n=r(11211),i=r(63736),o=r(21070);e.exports={formats:o,parse:i,stringify:n}},63736:(e,t,r)=>{"use strict";var n=r(63780),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,f=[];if(c){if(!r.plainObjects&&i.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}for(var l=0;r.depth>0&&null!==(s=a.exec(o))&&l<r.depth;){if(l+=1,!r.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(s[1])}return s&&f.push("["+o.slice(s.index)+"]"),function(e,t,r,n){for(var i=n?t:u(t,r),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,f=parseInt(c,10);r.parseArrays||""!==c?!isNaN(f)&&s!==c&&String(f)===c&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(f,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var f="string"==typeof e?function(e,t){var r,c={__proto__:null},f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,d=f.split(t.delimiter,l),h=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[r]?p="utf-8":"utf8=%26%2310003%3B"===d[r]&&(p="iso-8859-1"),h=r,r=d.length);for(r=0;r<d.length;++r)if(r!==h){var y,g,b=d[r],m=b.indexOf("]="),v=-1===m?b.indexOf("="):m+1;-1===v?(y=t.decoder(b,a.decoder,p,"key"),g=t.strictNullHandling?null:""):(y=t.decoder(b.slice(0,v),a.decoder,p,"key"),g=n.maybeMap(u(b.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===p&&(g=s(g)),b.indexOf("[]=")>-1&&(g=o(g)?[g]:g),i.call(c,y)?c[y]=n.combine(c[y],g):c[y]=g}return c}(e,r):e,l=r.plainObjects?Object.create(null):{},d=Object.keys(f),h=0;h<d.length;++h){var p=d[h],y=c(p,f[p],r,"string"==typeof e);l=n.merge(l,y,r)}return!0===r.allowSparse?l:n.compact(l)}},11211:(e,t,r)=>{"use strict";var n=r(64301),i=r(63780),o=r(21070),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,f=function(e,t){c.apply(e,u(t)?t:[t])},l=Date.prototype.toISOString,d=o.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},p={},y=function e(t,r,o,a,s,c,l,d,y,g,b,m,v,w,_,S){for(var E,A=t,O=S,M=0,T=!1;void 0!==(O=O.get(p))&&!T;){var I=O.get(t);if(M+=1,void 0!==I){if(I===M)throw new RangeError("Cyclic object value");T=!0}void 0===O.get(p)&&(M=0)}if("function"==typeof d?A=d(r,A):A instanceof Date?A=b(A):"comma"===o&&u(A)&&(A=i.maybeMap(A,(function(e){return e instanceof Date?b(e):e}))),null===A){if(s)return l&&!w?l(r,h.encoder,_,"key",m):r;A=""}if("string"==typeof(E=A)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||i.isBuffer(A))return l?[v(w?r:l(r,h.encoder,_,"key",m))+"="+v(l(A,h.encoder,_,"value",m))]:[v(r)+"="+v(String(A))];var N,C=[];if(void 0===A)return C;if("comma"===o&&u(A))w&&l&&(A=i.maybeMap(A,l)),N=[{value:A.length>0?A.join(",")||null:void 0}];else if(u(d))N=d;else{var L=Object.keys(A);N=y?L.sort(y):L}for(var x=a&&u(A)&&1===A.length?r+"[]":r,R=0;R<N.length;++R){var k=N[R],B="object"==typeof k&&void 0!==k.value?k.value:A[k];if(!c||null!==B){var P=u(A)?"function"==typeof o?o(x,k):x:x+(g?"."+k:"["+k+"]");S.set(t,M);var D=n();D.set(p,S),f(C,e(B,P,o,a,s,c,"comma"===o&&w&&u(A)?null:l,d,y,g,b,m,v,w,_,D))}}return C};e.exports=function(e,t){var r,i=e,c=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],i=h.filter;return("function"==typeof e.filter||u(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):u(c.filter)&&(r=c.filter);var l,d=[];if("object"!=typeof i||null===i)return"";l=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=s[l];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var g="comma"===p&&t&&t.commaRoundTrip;r||(r=Object.keys(i)),c.sort&&r.sort(c.sort);for(var b=n(),m=0;m<r.length;++m){var v=r[m];c.skipNulls&&null===i[v]||f(d,y(i[v],v,p,g,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,b))}var w=d.join(c.delimiter),_=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),w.length>0?_+w:""}},63780:(e,t,r)=>{"use strict";var n=r(21070),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],f=a[c];"object"==typeof f&&null!==f&&-1===r.indexOf(f)&&(t.push({obj:a,prop:c}),r.push(f))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var f=s.charCodeAt(c);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===n.RFC1738&&(40===f||41===f)?u+=s.charAt(c):f<128?u+=a[f]:f<2048?u+=a[192|f>>6]+a[128|63&f]:f<55296||f>=57344?u+=a[224|f>>12]+a[128|f>>6&63]+a[128|63&f]:(c+=1,f=65536+((1023&f)<<10|1023&s.charCodeAt(c)),u+=a[240|f>>18]+a[128|f>>12&63]+a[128|f>>6&63]+a[128|63&f])}return u},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=s(t,n)),o(t)&&o(r)?(r.forEach((function(r,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,n):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var a=r[o];return i.call(t,o)?t[o]=e(t[o],a,n):t[o]=a,t}),a)}}},85192:(e,t,r)=>{"use strict";var n=r(92761);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),f=["%","/","?",";","#"].concat(c),l=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(49260);function m(e,t,r){if(e&&"object"==typeof e&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",u=e.split(a);u[0]=u[0].replace(/\\/g,"/");var m=e=u.join(a);if(m=m.trim(),!r&&1===e.split("#").length){var v=s.exec(m);if(v)return this.path=m,this.href=m,this.pathname=v[1],v[2]?(this.search=v[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(m);if(w){var _=(w=w[0]).toLowerCase();this.protocol=_,m=m.substr(w.length)}if(r||w||m.match(/^\/\/[^@/]+@[^@/]+/)){var S="//"===m.substr(0,2);!S||w&&y[w]||(m=m.substr(2),this.slashes=!0)}if(!y[w]&&(S||w&&!g[w])){for(var E,A,O=-1,M=0;M<l.length;M++)-1!==(T=m.indexOf(l[M]))&&(-1===O||T<O)&&(O=T);for(-1!==(A=-1===O?m.lastIndexOf("@"):m.lastIndexOf("@",O))&&(E=m.slice(0,A),m=m.slice(A+1),this.auth=decodeURIComponent(E)),O=-1,M=0;M<f.length;M++){var T;-1!==(T=m.indexOf(f[M]))&&(-1===O||T<O)&&(O=T)}-1===O&&(O=m.length),this.host=m.slice(0,O),m=m.slice(O),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var N=this.hostname.split(/\./),C=(M=0,N.length);M<C;M++){var L=N[M];if(L&&!L.match(d)){for(var x="",R=0,k=L.length;R<k;R++)L.charCodeAt(R)>127?x+="x":x+=L[R];if(!x.match(d)){var B=N.slice(0,M),P=N.slice(M+1),D=L.match(h);D&&(B.push(D[1]),P.unshift(D[2])),P.length&&(m="/"+P.join(".")+m),this.hostname=B.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=n.toASCII(this.hostname));var j=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+j,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!p[_])for(M=0,C=c.length;M<C;M++){var U=c[M];if(-1!==m.indexOf(U)){var H=encodeURIComponent(U);H===U&&(H=escape(U)),m=m.split(U).join(H)}}var V=m.indexOf("#");-1!==V&&(this.hash=m.substr(V),m=m.slice(0,V));var z=m.indexOf("?");if(-1!==z?(this.search=m.substr(z),this.query=m.substr(z+1),t&&(this.query=b.parse(this.query)),m=m.slice(0,z)):t&&(this.search="",this.query={}),m&&(this.pathname=m),g[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){j=this.pathname||"";var q=this.search||"";this.path=j+q}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=b.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(m(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),u=0;u<s.length;u++){var c=s[u];"protocol"!==c&&(r[c]=e[c])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!g[e.protocol]){for(var f=Object.keys(e),l=0;l<f.length;l++){var d=f[l];r[d]=e[d]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||y[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var p=r.pathname||"",b=r.search||"";r.path=p+b}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=v||m||r.host&&e.pathname,_=w,S=r.pathname&&r.pathname.split("/")||[],E=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(E&&(r.hostname="",r.port=null,r.host&&(""===S[0]?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),w=w&&(""===h[0]||""===S[0])),v)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=h;else if(h.length)S||(S=[]),S.pop(),S=S.concat(h),r.search=e.search,r.query=e.query;else if(null!=e.search)return E&&(r.host=S.shift(),r.hostname=r.host,(I=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=I.shift(),r.hostname=I.shift(),r.host=r.hostname)),r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=S.slice(-1)[0],O=(r.host||e.host||S.length>1)&&("."===A||".."===A)||""===A,M=0,T=S.length;T>=0;T--)"."===(A=S[T])?S.splice(T,1):".."===A?(S.splice(T,1),M++):M&&(S.splice(T,1),M--);if(!w&&!_)for(;M--;M)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),O&&"/"!==S.join("/").substr(-1)&&S.push("");var I,N=""===S[0]||S[0]&&"/"===S[0].charAt(0);return E&&(r.hostname=N?"":S.length?S.shift():"",r.host=r.hostname,(I=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=I.shift(),r.hostname=I.shift(),r.host=r.hostname)),(w=w||r.host&&S.length)&&!N&&S.unshift(""),S.length>0?r.pathname=S.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=m,t.resolve=function(e,t){return m(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?m(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=m(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i},11741:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},31303:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},92273:(e,t,r)=>{"use strict";var n=r(1025),i=r(99958),o=r(90194),a=r(44406);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,f=s(Object.prototype.toString),l=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(c)var y=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===f(e)}function m(e){return"[object Set]"===f(e)}function v(e){return"[object WeakMap]"===f(e)}function w(e){return"[object WeakSet]"===f(e)}function _(e){return"[object ArrayBuffer]"===f(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===f(e)}function A(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||A(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},b.working="undefined"!=typeof Map&&b(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(b.working?b(e):e instanceof Map)},m.working="undefined"!=typeof Set&&m(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(m.working?m(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=S,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=A;var O="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function M(e){return"[object SharedArrayBuffer]"===f(e)}function T(e){return void 0!==O&&(void 0===M.working&&(M.working=M(new O)),M.working?M(e):e instanceof O)}function I(e){return g(e,l)}function N(e){return g(e,d)}function C(e){return g(e,h)}function L(e){return u&&g(e,p)}function x(e){return c&&g(e,y)}t.isSharedArrayBuffer=T,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===f(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===f(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===f(e)},t.isGeneratorObject=function(e){return"[object Generator]"===f(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===f(e)},t.isNumberObject=I,t.isStringObject=N,t.isBooleanObject=C,t.isBigIntObject=L,t.isSymbolObject=x,t.isBoxedPrimitive=function(e){return I(e)||N(e)||C(e)||L(e)||x(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||T(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},75786:(e,t,r)=>{var n=r(48494),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,i=n.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<i;s=n[++r])b(s)||!S(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(n.env.NODE_DEBUG){var u=n.env.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+u+"$","i")}function c(e,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),d(n,e,n.depth)}function f(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function l(e,t){return e}function d(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return v(i)||(i=d(e,i,n)),i}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),A(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(O(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(A(r))return h(r)}var c,f="",l=!1,S=["{","}"];return y(r)&&(l=!0,S=["[","]"]),O(r)&&(f=" [Function"+(r.name?": "+r.name:"")+"]"),_(r)&&(f=" "+RegExp.prototype.toString.call(r)),E(r)&&(f=" "+Date.prototype.toUTCString.call(r)),A(r)&&(f=" "+h(r)),0!==a.length||l&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=l?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)N(t,String(a))?o.push(p(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return p(e,r,n,s,t,l)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,f,S)):S[0]+f+S[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),N(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=b(r)?d(e,u.value,null):d(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function y(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function b(e){return null===e}function m(e){return"number"==typeof e}function v(e){return"string"==typeof e}function w(e){return void 0===e}function _(e){return S(e)&&"[object RegExp]"===M(e)}function S(e){return"object"==typeof e&&null!==e}function E(e){return S(e)&&"[object Date]"===M(e)}function A(e){return S(e)&&("[object Error]"===M(e)||e instanceof Error)}function O(e){return"function"==typeof e}function M(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(92273),t.isArray=y,t.isBoolean=g,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=_,t.types.isRegExp=_,t.isObject=S,t.isDate=E,t.types.isDate=E,t.isError=A,t.types.isNativeError=A,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(31303);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[T((e=new Date).getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":"),[e.getDate(),I[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(19105),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var C="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function L(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(C&&e[C]){var t;if("function"!=typeof(t=e[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),C&&Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=C,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){n.nextTick(a.bind(null,null,e))}),(function(e){n.nextTick(L.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},90194:(e,t,r)=>{"use strict";var n=r(15583),i=r(74546),o=r(47208),a=r(34537),s=r(558),u=a("Object.prototype.toString"),c=r(16697)(),f="undefined"==typeof globalThis?r.g:globalThis,l=i(),d=a("String.prototype.slice"),h=Object.getPrototypeOf,p=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},y={__proto__:null};n(l,c&&s&&h?function(e){var t=new f[e];if(Symbol.toStringTag in t){var r=h(t),n=s(r,Symbol.toStringTag);if(!n){var i=h(r);n=s(i,Symbol.toStringTag)}y["$"+e]=o(n.get)}}:function(e){var t=new f[e],r=t.slice||t.set;r&&(y["$"+e]=o(r))}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=d(u(e),8,-1);return p(l,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(y,(function(r,n){if(!t)try{r(e),t=d(n,1)}catch(e){}})),t}(e)}return s?function(e){var t=!1;return n(y,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=d(n,1))}catch(e){}})),t}(e):null}},71150:(e,t,r)=>{var n=r(18390).Buffer,i=r(84948);function o(e,t){if(void 0!==t&&e[0]!==t)throw new Error("Invalid network version");if(33===e.length)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(34!==e.length)throw new Error("Invalid WIF length");if(1!==e[33])throw new Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function a(e,t,r){var i=new n(r?34:33);return i.writeUInt8(e,0),t.copy(i,1),r&&(i[33]=1),i}e.exports={decode:function(e,t){return o(i.decode(e),t)},decodeRaw:o,encode:function(e,t,r){return"number"==typeof e?i.encode(a(e,t,r)):i.encode(a(e.version,e.privateKey,e.compressed))},encodeRaw:a}},48056:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=t.Account=void 0;var s=o(r(80046));t.Utils=s;var u=a(r(29129));t.Account=u.default},29129:function(e,t,r){"use strict";var n=r(18390).Buffer,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=s(r(32037)),c=a(r(43004)),f=a(r(80046)),l=function(){function e(e){var t=this;this.account={familySeed:"",address:"",keypair:{publicKey:"",privateKey:""}},"string"==typeof e?this.secret=f.parseSecretString(e):Array.isArray(e)?this.secret=e:n.isBuffer(e)?this.secret=f.entropyToSecret(e):this.secret=f.randomSecret(),u.default.strictEqual(t.secret.length,8),t.secret.forEach((function(e,t){u.default.strictEqual(e.length,6)})),function(){try{var e=f.secretToEntropy(t.secret);t.account.familySeed=c.generateSeed({entropy:e}),t.account.keypair=c.deriveKeypair(t.account.familySeed),t.account.address=c.deriveAddress(t.account.keypair.publicKey)}catch(e){throw e.message}}()}return e.prototype.getSecret=function(){return this.secret},e.prototype.getSecretString=function(){return this.secret.join(" ")},e.prototype.getAddress=function(){return this.account.address},e.prototype.getFamilySeed=function(){return this.account.familySeed},e.prototype.getKeypair=function(){return this.account.keypair},e.prototype.toString=function(){return this.getSecretString()},e}();t.default=l},80046:function(e,t,r){"use strict";var n=r(18390).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseSecretString=t.checkChecksum=t.calculateChecksum=t.secretToEntropy=t.entropyToSecret=t.randomSecret=t.randomEntropy=void 0;var o=i(r(32037)),a=i(r(72486));function s(){return n.from(a.default(16))}function u(e,t){return t*(2*e+1)%9}function c(e,t,r){return"string"==typeof t&&(o.default.strictEqual(t.length,6),r=parseInt(t.slice(5),10),t=parseInt(t.slice(0,5),10)),t*(2*e+1)%9===r}function f(e){var t=Array(Math.ceil(e.length/2)),r=Array.apply(null,t).map((function(t,r){return e.slice(2*r,2*++r)})).map((function(e,t){var r=parseInt(e.toString("hex"),16);return"0".repeat(5-String(r).length)+String(r)+String(u(t,r))}));return o.default.equal(r.length,8),r}t.randomEntropy=s,t.calculateChecksum=u,t.checkChecksum=c,t.entropyToSecret=f,t.randomSecret=function(){return f(s())},t.secretToEntropy=function(e){return n.concat(e.map((function(e,t){var r=Number(e.slice(0,5)),i=Number(e.slice(5));try{o.default.strictEqual(e.length,6)}catch(e){throw new Error("Invalid secret: number invalid")}try{o.default.strictEqual(c(t,r,i),!0)}catch(e){throw new Error("Invalid secret part: checksum invalid")}var a=("0000"+r.toString(16)).slice(-4);return n.from(a,"hex")})))},t.parseSecretString=function(e){if(48!==(e=e.replace(/[^0-9]/g,"")).length)throw new Error("Invalid secret string (should contain 8 blocks of 6 digits");return Array.apply(null,Array(8)).map((function(t,r){return e.slice(6*r,6*(r+1))}))}},90139:e=>{e.exports=function(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)t.call(n,i)&&(e[i]=n[i])}return e};var t=Object.prototype.hasOwnProperty},8831:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ed25519="ed25519",e.secp256k1="ecdsa-secp256k1"}(r||(r={})),t.default=r},14343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultFaucetPath=t.getFaucetHost=t.FaucetNetworkPaths=t.FaucetNetwork=void 0;const n=r(74337);var i;!function(e){e.Testnet="faucet.altnet.rippletest.net",e.Devnet="faucet.devnet.rippletest.net",e.AMMDevnet="ammfaucet.devnet.rippletest.net",e.HooksV3Testnet="hooks-testnet-v3.xrpl-labs.com"}(i=t.FaucetNetwork||(t.FaucetNetwork={})),t.FaucetNetworkPaths={[i.Testnet]:"/accounts",[i.Devnet]:"/accounts",[i.AMMDevnet]:"/accounts",[i.HooksV3Testnet]:"/accounts"},t.getFaucetHost=function(e){const t=e.url;if(t.includes("hooks-testnet-v3"))return i.HooksV3Testnet;if(t.includes("altnet")||t.includes("testnet"))return i.Testnet;if(t.includes("amm"))return i.AMMDevnet;if(t.includes("sidechain-net2"))throw new n.XRPLFaucetError("Cannot fund an account on an issuing chain. Accounts must be created via the bridge.");if(t.includes("devnet"))return i.Devnet;throw new n.XRPLFaucetError("Faucet URL is not defined or inferrable.")},t.getDefaultFaucetPath=function(e){return void 0===e?"/accounts":t.FaucetNetworkPaths[e]||"/accounts"}},1222:function(e,t,r){"use strict";var n=r(18390).Buffer,i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=r(41178),a=r(79798),s=r(74337),u=r(14343),c=r(52211);function f(e,t,r){return i(this,void 0,void 0,(function*(){return new Promise(((n,o)=>{let a=20;const u=setInterval((()=>i(this,void 0,void 0,(function*(){a<0?(clearInterval(u),n(r)):a-=1;try{let i;try{i=Number(yield e.getXrpBalance(t))}catch(e){}i>r&&(clearInterval(u),n(i))}catch(e){clearInterval(u),e instanceof Error&&o(new s.XRPLFaucetError(`Unable to check if the address ${t} balance has increased. Error: ${e.message}`)),o(e)}}))),1e3)}))}))}t.default=function(e,t){return i(this,void 0,void 0,(function*(){if(!this.isConnected())throw new s.RippledError("Client not connected, cannot call faucet");const r=e&&(0,a.isValidClassicAddress)(e.classicAddress)?e:c.Wallet.generate(),l=n.from((new TextEncoder).encode(JSON.stringify({destination:r.classicAddress,xrpAmount:null==t?void 0:t.amount,userAgent:"xrpl.js",usageContext:null==t?void 0:t.usageContext})));let d=0;try{d=Number(yield this.getXrpBalance(r.classicAddress))}catch(e){}const h=function(e,t,r){var n,i;const o=null!==(n=null==r?void 0:r.hostname)&&void 0!==n?n:(0,u.getFaucetHost)(e);return{hostname:o,port:443,path:null!==(i=null==r?void 0:r.pathname)&&void 0!==i?i:(0,u.getDefaultFaucetPath)(o),method:"POST",headers:{"Content-Type":"application/json","Content-Length":t.length}}}(this,l,{hostname:null==t?void 0:t.faucetHost,pathname:null==t?void 0:t.faucetPath});return function(e,t,r,a,u){return i(this,void 0,void 0,(function*(){return new Promise(((c,l)=>{const d=(0,o.request)(e,(e=>{const o=[];e.on("data",(e=>o.push(e))),e.on("end",(()=>i(this,void 0,void 0,(function*(){return function(e,t,r,o,a,u,c){var l;return i(this,void 0,void 0,(function*(){const d=n.concat(t).toString();if(null===(l=e.headers["content-type"])||void 0===l?void 0:l.startsWith("application/json")){const e=JSON.parse(d).account.classicAddress;yield function(e,t,r,n,o,a){return i(this,void 0,void 0,(function*(){if(t)try{(yield f(e,t,n))>n?o({wallet:r,balance:yield f(e,r.classicAddress,n)}):a(new s.XRPLFaucetError("Unable to fund address with faucet after waiting 20 seconds"))}catch(e){e instanceof Error&&a(new s.XRPLFaucetError(e.message)),a(e)}else a(new s.XRPLFaucetError("The faucet account is undefined"))}))}(r,e,a,o,u,c)}else c(new s.XRPLFaucetError(`Content type is not \`application/json\`: ${JSON.stringify({statusCode:e.statusCode,contentType:e.headers["content-type"],body:d})}`))}))}(e,o,t,r,a,c,l)}))))}));d.write(u),d.on("error",(e=>{l(e)})),d.end()}))}))}(h,this,d,r,l)}))}},52211:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;const i=n(r(83753)),o=r(84973),a=r(63399),s=n(r(27629)),u=r(79798),c=r(79056),f=r(43004),l=n(r(8831)),d=r(74337),h=r(9879),p=r(21796),y=r(62061),g=r(15567),b=l.default.ed25519;function m(e){return e.toString("hex").toUpperCase()}class v{constructor(e,t,r={}){this.publicKey=e,this.privateKey=t,this.classicAddress=r.masterAddress?(0,p.ensureClassicAddress)(r.masterAddress):(0,f.deriveAddress)(e),this.seed=r.seed}get address(){return this.classicAddress}static generate(e=b){if(!Object.values(l.default).includes(e))throw new d.ValidationError("Invalid cryptographic signing algorithm");const t=(0,f.generateSeed)({algorithm:e});return v.fromSeed(t)}static fromSeed(e,t={}){return v.deriveWallet(e,{algorithm:t.algorithm,masterAddress:t.masterAddress})}static fromEntropy(e,t={}){var r;const n=null!==(r=t.algorithm)&&void 0!==r?r:b,i={entropy:Uint8Array.from(e),algorithm:n},o=(0,f.generateSeed)(i);return v.deriveWallet(o,{algorithm:n,masterAddress:t.masterAddress})}static fromMnemonic(e,t={}){var r;if("rfc1751"===t.mnemonicEncoding)return v.fromRFC1751Mnemonic(e,{masterAddress:t.masterAddress,algorithm:t.algorithm});if(!(0,a.validateMnemonic)(e))throw new d.ValidationError("Unable to parse the given mnemonic using bip39 encoding");const n=(0,a.mnemonicToSeedSync)(e),i=(0,o.fromSeed)(n).derivePath(null!==(r=t.derivationPath)&&void 0!==r?r:"m/44'/144'/0'/0/0");if(void 0===i.privateKey)throw new d.ValidationError("Unable to derive privateKey from mnemonic input");const s=m(i.publicKey),u=m(i.privateKey);return new v(s,`00${u}`,{masterAddress:t.masterAddress})}static fromRFC1751Mnemonic(e,t){const r=(0,g.rfc1751MnemonicToKey)(e);let n;n=t.algorithm===l.default.ed25519?"ed25519":"secp256k1";const i=(0,u.encodeSeed)(r,n);return v.fromSeed(i,{masterAddress:t.masterAddress,algorithm:t.algorithm})}static deriveWallet(e,t={}){var r;const{publicKey:n,privateKey:i}=(0,f.deriveKeypair)(e,{algorithm:null!==(r=t.algorithm)&&void 0!==r?r:b});return new v(n,i,{seed:e,masterAddress:t.masterAddress})}sign(e,t){let r=!1;"string"==typeof t&&t.startsWith("X")?r=t:t&&(r=this.classicAddress);const n=(0,s.default)(Object.assign({},e),(e=>null==e));if(n.TxnSignature||n.Signers)throw new d.ValidationError('txJSON must not contain "TxnSignature" or "Signers" properties');!function(e){"Payment"===e.TransactionType&&"string"!=typeof e.Amount&&e.Amount.value.includes(".")&&e.Amount.value.endsWith("0")&&(e.Amount=Object.assign({},e.Amount),e.Amount.value=new i.default(e.Amount.value).toString())}(n),(0,h.validate)(n);const o=Object.assign({},n);if(o.SigningPubKey=r?"":this.publicKey,r){const e={Account:r,SigningPubKey:this.publicKey,TxnSignature:w(o,this.privateKey,r)};o.Signers=[{Signer:e}]}else o.TxnSignature=w(o,this.privateKey);const a=(0,c.encode)(o);return{tx_blob:a,hash:(0,y.hashSignedTx)(a)}}verifyTransaction(e){const t="string"==typeof e?(0,c.decode)(e):e,r=(0,c.encodeForSigning)(t),n=t.TxnSignature;return(0,f.verify)(r,n,this.publicKey)}getXAddress(e=!1,t=!1){return(0,u.classicAddressToXAddress)(this.classicAddress,e,t)}}function w(e,t,r){if(r){const n=(0,u.isValidXAddress)(r)?(0,u.xAddressToClassicAddress)(r).classicAddress:r;return(0,f.sign)((0,c.encodeForMultisigning)(e,n),t)}return(0,f.sign)((0,c.encodeForSigning)(e),t)}t.Wallet=v,v.fromSecret=v.fromSeed},15567:function(e,t,r){"use strict";var n=r(18390).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.keyToRFC1751Mnemonic=t.rfc1751MnemonicToKey=void 0;const o=i(r(51944)).default,a=["0000","0001","0010","0011","0100","0101","0110","0111","1000","1001","1010","1011","1100","1101","1110","1111"];function s(e){let t="";for(const r of e)t+=a[r>>4]+a[15&r];return t}function u(e,t,r){const n=e.substring(t,t+r);let i=0;for(let e=0;e<n.length;e++)i=2*i+n.charCodeAt(e)-48;return i}function c(e,t){const r=e.slice(t,t+6);let n=0;const i=[0,0,0,0,0,0,0,0,0];let a="";for(a of r){const e=o.indexOf(a.toUpperCase());if(-1===e)throw new TypeError(`Expected an RFC1751 word, but received '${a}'. For the full list of words in the RFC1751 encoding see https://datatracker.ietf.org/doc/html/rfc1751`);const t=(8-(n+11)%8)%8,r=e<<t,s=r>>16,u=r>>8&255,c=255&r,f=Math.floor(n/8);t>5?(i[f]|=s,i[f+1]|=u,i[f+2]|=c):t>-3?(i[f]|=u,i[f+1]|=c):i[f]|=c,n+=11}return{subKey:i.slice(),word:a}}function f(e){const t=e.swap64();return n.concat([t.slice(8,16),t.slice(0,8)],16)}t.keyToRFC1751Mnemonic=function(e){let t=(r=f(n.from(e.replace(/\s+/gu,""),"hex")),Array.prototype.slice.call(r));var r;const i=[];for(let e=0;e<(8-t.length%8)%8;e++)i.push(0);t=i.concat(t);const a=[];for(let e=0;e<t.length;e+=8){const r=t.slice(e,e+8);let n=s(r),i=0;for(let e=0;e<64;e+=2)i+=u(n,e,2);r.push(i<<6&255),n=s(r);for(let e=0;e<64;e+=11)a.push(o[u(n,e,11)])}return a.join(" ")},t.rfc1751MnemonicToKey=function(e){const t=e.split(" ");let r=[];for(let e=0;e<t.length;e+=6){const{subKey:n,word:i}=c(t,e),o=s(n);let a=0;for(let e=0;e<64;e+=2)a+=u(o,e,2);if(u(o,64,2)!==(3&a))throw new Error(`Parity error at ${i}`);r=r.concat(n.slice(0,8))}return f(n.from(r))}},29421:(e,t,r)=>{"use strict";var n=r(18390).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.multisign=t.verifySignature=t.authorizeChannel=void 0;const i=r(83753),o=r(40180),a=r(79798),s=r(79056),u=r(43004),c=r(74337),f=r(9879);function l(e,t){return h(e.Signer.Account).comparedTo(h(t.Signer.Account))}t.multisign=function(e){if(0===e.length)throw new c.ValidationError("There were 0 transactions to multisign");const t=e.map((e=>p(e)));return t.forEach((e=>{if((0,f.validate)(e),null==e.Signers||0===e.Signers.length)throw new c.ValidationError("For multisigning all transactions must include a Signers field containing an array of signatures. You may have forgotten to pass the 'forMultisign' parameter when signing.");if(""!==e.SigningPubKey)throw new c.ValidationError("SigningPubKey must be an empty string for all transactions when multisigning.")})),function(e){const t=JSON.stringify(Object.assign(Object.assign({},e[0]),{Signers:null}));if(e.slice(1).some((e=>JSON.stringify(Object.assign(Object.assign({},e),{Signers:null}))!==t)))throw new c.ValidationError("txJSON is not the same for all signedTransactions")}(t),(0,s.encode)(function(e){const t=(0,o.flatMap)(e,(e=>{var t;return null!==(t=e.Signers)&&void 0!==t?t:[]})).sort(l);return Object.assign(Object.assign({},e[0]),{Signers:t})}(t))},t.authorizeChannel=function(e,t,r){const n=(0,s.encodeForSigningClaim)({channel:t,amount:r});return(0,u.sign)(n,e.privateKey)},t.verifySignature=function(e){const t=p(e);return(0,u.verify)((0,s.encodeForSigning)(t),t.TxnSignature,t.SigningPubKey)};const d=16;function h(e){const t=n.from((0,a.decodeAccountID)(e)).toString("hex");return new i.BigNumber(t,d)}function p(e){return"object"==typeof e?(0,s.decode)((0,s.encode)(e)):(0,s.decode)(e)}},71402:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.walletFromSecretNumbers=void 0;const i=r(48056),o=n(r(8831)),a=r(52211);t.walletFromSecretNumbers=function(e,t){var r;const n=new i.Account(e).getFamilySeed(),s={masterAddress:void 0,algorithm:void 0};return void 0===t?s.algorithm=o.default.secp256k1:(s.masterAddress=t.masterAddress,s.algorithm=null!==(r=t.algorithm)&&void 0!==r?r:o.default.secp256k1),a.Wallet.fromSecret(n,s)}},89289:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastClient=void 0;const i=r(44278);class o extends i.Client{constructor(e,t={}){super(e[0],t);const r=e.map((e=>new i.Client(e,t)));this.clients=r,this.getMethodNames().forEach((e=>{this[e]=(...t)=>n(this,void 0,void 0,(function*(){return Promise.race(r.map((r=>n(this,void 0,void 0,(function*(){return r[e](...t)})))))}))})),this.connect=()=>n(this,void 0,void 0,(function*(){yield Promise.all(r.map((e=>n(this,void 0,void 0,(function*(){return e.connect()})))))})),this.disconnect=()=>n(this,void 0,void 0,(function*(){yield Promise.all(r.map((e=>n(this,void 0,void 0,(function*(){return e.disconnect()})))))})),this.isConnected=()=>r.map((e=>e.isConnected())).every(Boolean),r.forEach((e=>{e.on("error",((e,t,r)=>this.emit("error",e,t,r)))}))}getMethodNames(){const e=[],t=this.clients[0],r=Object.getOwnPropertyNames(t);r.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(t)));for(const n of r)"function"==typeof t[n]&&"constructor"!==n&&"on"!==n&&e.push(n);return e}}t.BroadcastClient=o},76808:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(){this.promisesAwaitingConnection=[]}resolveAllAwaiting(){this.promisesAwaitingConnection.map((({resolve:e})=>e())),this.promisesAwaitingConnection=[]}rejectAllAwaiting(e){this.promisesAwaitingConnection.map((({reject:t})=>t(e))),this.promisesAwaitingConnection=[]}awaitConnection(){return r(this,void 0,void 0,(function*(){return new Promise(((e,t)=>{this.promisesAwaitingConnection.push({resolve:e,reject:t})}))}))}}},16598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e={}){var t,r;this.factor=2,this.numAttempts=0,this.ms=null!==(t=e.min)&&void 0!==t?t:100,this.max=null!==(r=e.max)&&void 0!==r?r:1e3}get attempts(){return this.numAttempts}duration(){const e=this.ms*Math.pow(this.factor,this.numAttempts);return this.numAttempts+=1,Math.floor(Math.min(e,this.max))}reset(){this.numAttempts=0}}},23621:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(74337);t.default=class{constructor(){this.nextId=0,this.promisesAwaitingResponse=new Map}resolve(e,t){const r=this.promisesAwaitingResponse.get(e);if(null==r)throw new n.XrplError(`No existing promise with id ${e}`,{type:"resolve",response:t});clearTimeout(r.timer),r.resolve(t),this.deletePromise(e)}reject(e,t){const r=this.promisesAwaitingResponse.get(e);if(null==r)throw new n.XrplError(`No existing promise with id ${e}`,{type:"reject",error:t});clearTimeout(r.timer),r.reject(t),this.deletePromise(e)}rejectAll(e){this.promisesAwaitingResponse.forEach(((t,r,n)=>{this.reject(r,e),this.deletePromise(r)}))}createRequest(e,t){let r;null==e.id?(r=this.nextId,this.nextId+=1):r=e.id;const i=JSON.stringify(Object.assign(Object.assign({},e),{id:r})),o=setTimeout((()=>{this.reject(r,new n.TimeoutError(`Timeout for request: ${JSON.stringify(e)} with id ${r}`,e))}),t);if(o.unref&&o.unref(),this.promisesAwaitingResponse.has(r))throw clearTimeout(o),new n.XrplError(`Response with id '${r}' is already pending`,e);const a=new Promise(((e,t)=>{this.promisesAwaitingResponse.set(r,{resolve:e,reject:t,timer:o})}));return[r,i,a]}handleResponse(e){var t,r;if(null==e.id||"string"!=typeof e.id&&"number"!=typeof e.id)throw new n.ResponseFormatError("valid id not found in response",e);if(this.promisesAwaitingResponse.has(e.id)){if(null==e.status){const t=new n.ResponseFormatError("Response has no status");this.reject(e.id,t)}if("error"!==e.status)if("success"===e.status)delete e.status,this.resolve(e.id,e);else{const t=new n.ResponseFormatError(`unrecognized response.status: ${null!==(r=e.status)&&void 0!==r?r:""}`,e);this.reject(e.id,t)}else{const r=e,i=new n.RippledError(null!==(t=r.error_message)&&void 0!==t?t:r.error,r);this.reject(e.id,i)}}}deletePromise(e){this.promisesAwaitingResponse.delete(e)}}},65785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(67725);class i extends n.EventEmitter{constructor(e,t,r){super(),this.setMaxListeners(1/0),this.ws=new WebSocket(e),this.ws.onclose=e=>{let t;e.reason&&(t=(new TextEncoder).encode(e.reason)),this.emit("close",e.code,t)},this.ws.onopen=()=>{this.emit("open")},this.ws.onerror=e=>{this.emit("error",e)},this.ws.onmessage=e=>{this.emit("message",e.data)}}get readyState(){return this.ws.readyState}close(e,t){1===this.readyState&&this.ws.close(e,t)}send(e){this.ws.send(e)}}t.default=i,i.CONNECTING=0,i.OPEN=1,i.CLOSING=2,i.CLOSED=3},8564:function(e,t,r){"use strict";var n=r(18390).Buffer,i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Connection=t.INTENTIONAL_DISCONNECT_CODE=void 0;const a=r(67725),s=o(r(27629)),u=o(r(65785)),c=r(74337),f=o(r(76808)),l=o(r(16598)),d=o(r(23621));t.INTENTIONAL_DISCONNECT_CODE=4e3;class h extends a.EventEmitter{constructor(e,t={}){super(),this.ws=null,this.reconnectTimeoutID=null,this.heartbeatIntervalID=null,this.retryConnectionBackoff=new l.default({min:100,max:6e4}),this.requestManager=new d.default,this.connectionManager=new f.default,this.trace=()=>{},this.setMaxListeners(1/0),this.url=e,this.config=Object.assign({timeout:2e4,connectionTimeout:5e3},t),"function"==typeof t.trace?this.trace=t.trace:t.trace&&(this.trace=console.log)}get state(){return this.ws?this.ws.readyState:u.default.CLOSED}get shouldBeConnected(){return null!==this.ws}isConnected(){return this.state===u.default.OPEN}connect(){return i(this,void 0,void 0,(function*(){if(this.isConnected())return Promise.resolve();if(this.state===u.default.CONNECTING)return this.connectionManager.awaitConnection();if(!this.url)return Promise.reject(new c.ConnectionError("Cannot connect because no server was specified"));if(null!=this.ws)return Promise.reject(new c.XrplError("Websocket connection never cleaned up.",{state:this.state}));const e=setTimeout((()=>{this.onConnectionFailed(new c.ConnectionError(`Error: connect() timed out after ${this.config.connectionTimeout} ms. If your internet connection is working, the rippled server may be blocked or inaccessible. You can also try setting the 'connectionTimeout' option in the Client constructor.`))}),this.config.connectionTimeout);if(this.ws=function(e,t){const i={};if(i.agent=function(e,t){if(null==t.proxy)return;const n=new URL(e),i=new URL(t.proxy),o=(0,s.default)({secureEndpoint:"wss:"===n.protocol,secureProxy:"https:"===i.protocol,auth:t.proxyAuthorization,ca:t.trustedCertificates,key:t.key,passphrase:t.passphrase,cert:t.certificate,href:i.href,origin:i.origin,protocol:i.protocol,username:i.username,password:i.password,host:i.host,hostname:i.hostname,port:i.port,pathname:i.pathname,search:i.search,hash:i.hash},(e=>null==e));let a;try{a=r(30174)}catch(e){throw new Error('"proxy" option is not supported in the browser')}return new a(o)}(e,t),t.headers&&(i.headers=t.headers),null!=t.authorization){const e=n.from(t.authorization).toString("base64");i.headers=Object.assign(Object.assign({},i.headers),{Authorization:`Basic ${e}`})}const o=(0,s.default)({ca:t.trustedCertificates,key:t.key,passphrase:t.passphrase,cert:t.certificate},(e=>null==e)),a=Object.assign(Object.assign({},i),o),c=new u.default(e,a);return"function"==typeof c.setMaxListeners&&c.setMaxListeners(1/0),c}(this.url,this.config),null==this.ws)throw new c.XrplError("Connect: created null websocket");return this.ws.on("error",(e=>this.onConnectionFailed(e))),this.ws.on("error",(()=>clearTimeout(e))),this.ws.on("close",(e=>this.onConnectionFailed(e))),this.ws.on("close",(()=>clearTimeout(e))),this.ws.once("open",(()=>{this.onceOpen(e)})),this.connectionManager.awaitConnection()}))}disconnect(){return i(this,void 0,void 0,(function*(){return this.clearHeartbeatInterval(),null!==this.reconnectTimeoutID&&(clearTimeout(this.reconnectTimeoutID),this.reconnectTimeoutID=null),this.state===u.default.CLOSED||null==this.ws?Promise.resolve(void 0):new Promise((e=>{null==this.ws&&e(void 0),null!=this.ws&&this.ws.once("close",(t=>e(t))),null!=this.ws&&this.state!==u.default.CLOSING&&this.ws.close(t.INTENTIONAL_DISCONNECT_CODE)}))}))}reconnect(){return i(this,void 0,void 0,(function*(){this.emit("reconnect"),yield this.disconnect(),yield this.connect()}))}request(e,t){return i(this,void 0,void 0,(function*(){if(!this.shouldBeConnected||null==this.ws)throw new c.NotConnectedError(JSON.stringify(e),e);const[r,n,o]=this.requestManager.createRequest(e,null!=t?t:this.config.timeout);return this.trace("send",n),function(e,t){return i(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{e.send(t,(e=>{e?n(new c.DisconnectedError(e.message,e)):r()}))}))}))}(this.ws,n).catch((e=>{this.requestManager.reject(r,e)})),o}))}getUrl(){var e;return null!==(e=this.url)&&void 0!==e?e:""}onMessage(e){let t;this.trace("receive",e);try{t=JSON.parse(e)}catch(t){return void(t instanceof Error&&this.emit("error","badMessage",t.message,e))}if(null==t.type&&t.error)this.emit("error",t.error,t.error_message,t);else if(t.type&&this.emit(t.type,t),"response"===t.type)try{this.requestManager.handleResponse(t)}catch(t){t instanceof Error?this.emit("error","badMessage",t.message,e):this.emit("error","badMessage",t,t)}}onceOpen(e){return i(this,void 0,void 0,(function*(){if(null==this.ws)throw new c.XrplError("onceOpen: ws is null");this.ws.removeAllListeners(),clearTimeout(e),this.ws.on("message",(e=>this.onMessage(e))),this.ws.on("error",(e=>this.emit("error","websocket",e.message,e))),this.ws.once("close",((e,r)=>{if(null==this.ws)throw new c.XrplError("onceClose: ws is null");if(this.clearHeartbeatInterval(),this.requestManager.rejectAll(new c.DisconnectedError(`websocket was closed, ${new TextDecoder("utf-8").decode(r)}`)),this.ws.removeAllListeners(),this.ws=null,void 0===e){const e=1011;this.emit("disconnected",e)}else this.emit("disconnected",e);e!==t.INTENTIONAL_DISCONNECT_CODE&&void 0!==e&&this.intentionalDisconnect()}));try{this.retryConnectionBackoff.reset(),this.startHeartbeatInterval(),this.connectionManager.resolveAllAwaiting(),this.emit("connected")}catch(e){e instanceof Error&&(this.connectionManager.rejectAllAwaiting(e),yield this.disconnect().catch((()=>{})))}}))}intentionalDisconnect(){const e=this.retryConnectionBackoff.duration();this.trace("reconnect",`Retrying connection in ${e}ms.`),this.emit("reconnecting",this.retryConnectionBackoff.attempts),this.reconnectTimeoutID=setTimeout((()=>{this.reconnect().catch((e=>{this.emit("error","reconnect",e.message,e)}))}),e)}clearHeartbeatInterval(){this.heartbeatIntervalID&&clearInterval(this.heartbeatIntervalID)}startHeartbeatInterval(){this.clearHeartbeatInterval(),this.heartbeatIntervalID=setInterval((()=>{this.heartbeat()}),this.config.timeout)}heartbeat(){return i(this,void 0,void 0,(function*(){this.request({command:"ping"}).catch((()=>i(this,void 0,void 0,(function*(){return this.reconnect().catch((e=>{this.emit("error","reconnect",e.message,e)}))}))))}))}onConnectionFailed(e){this.ws&&(this.ws.removeAllListeners(),this.ws.on("error",(()=>{})),this.ws.close(),this.ws=null),"number"==typeof e?this.connectionManager.rejectAllAwaiting(new c.NotConnectedError(`Connection failed with code ${e}.`,{code:e})):(null==e?void 0:e.message)?this.connectionManager.rejectAllAwaiting(new c.NotConnectedError(e.message,e)):this.connectionManager.rejectAllAwaiting(new c.NotConnectedError("Connection failed."))}}t.Connection=h},44278:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const u=o(r(32037)),c=r(67725),f=r(74337),l=r(92475),d=s(r(1222)),h=r(8564),p=r(56742);class y extends c.EventEmitter{constructor(e,t={}){var r,n;if(super(),this.autofill=l.autofill,this.submit=l.submit,this.submitAndWait=l.submitAndWait,this.prepareTransaction=l.autofill,this.getXrpBalance=l.getXrpBalance,this.getBalances=l.getBalances,this.getOrderbook=l.getOrderbook,this.getLedgerIndex=l.getLedgerIndex,this.fundWallet=d.default,"string"!=typeof e||!/wss?(?:\+unix)?:\/\//u.exec(e))throw new f.ValidationError("server URI must start with `wss://`, `ws://`, `wss+unix://`, or `ws+unix://`.");this.feeCushion=null!==(r=t.feeCushion)&&void 0!==r?r:1.2,this.maxFeeXRP=null!==(n=t.maxFeeXRP)&&void 0!==n?n:"2",this.connection=new h.Connection(e,t),this.connection.on("error",((e,t,r)=>{this.emit("error",e,t,r)})),this.connection.on("reconnect",(()=>{this.connection.on("connected",(()=>this.emit("connected")))})),this.connection.on("disconnected",(e=>{let t=e;t===h.INTENTIONAL_DISCONNECT_CODE&&(t=1e3),this.emit("disconnected",t)})),this.connection.on("ledgerClosed",(e=>{this.emit("ledgerClosed",e)})),this.connection.on("transaction",(e=>{(0,p.handleStreamPartialPayment)(e,this.connection.trace),this.emit("transaction",e)})),this.connection.on("validationReceived",(e=>{this.emit("validationReceived",e)})),this.connection.on("manifestReceived",(e=>{this.emit("manifestReceived",e)})),this.connection.on("peerStatusChange",(e=>{this.emit("peerStatusChange",e)})),this.connection.on("consensusPhase",(e=>{this.emit("consensusPhase",e)})),this.connection.on("path_find",(e=>{this.emit("path_find",e)}))}get url(){return this.connection.getUrl()}request(e){return a(this,void 0,void 0,(function*(){const t=yield this.connection.request(Object.assign(Object.assign({},e),{account:e.account?(0,l.ensureClassicAddress)(e.account):void 0}));return(0,p.handlePartialPayment)(e.command,t),t}))}requestNextPage(e,t){return a(this,void 0,void 0,(function*(){if(!t.result.marker)return Promise.reject(new f.NotFoundError("response does not have a next page"));const r=Object.assign(Object.assign({},e),{marker:t.result.marker});return this.request(r)}))}on(e,t){return super.on(e,t)}requestAll(e,t){return a(this,void 0,void 0,(function*(){const r=null!=t?t:function(e){switch(e){case"account_channels":return"channels";case"account_lines":return"lines";case"account_objects":return"account_objects";case"account_tx":return"transactions";case"account_offers":case"book_offers":return"offers";case"ledger_data":return"state";default:return null}}(e.command);if(!r)throw new f.ValidationError(`no collect key for command ${e.command}`);const n=null==e.limit?1/0:e.limit;let i,o=0,a=e.marker;const s=[];do{const t=(c=n-o,10,400,u.ok(!0,"Illegal clamp bounds"),Math.min(Math.max(c,10),400)),l=Object.assign(Object.assign({},e),{limit:t,marker:a}),d=yield this.connection.request(l),h=d.result;if(!(r in h))throw new f.XrplError(`${r} not in result`);const p=h[r];a=h.marker,s.push(d),Array.isArray(p)?(o+=p.length,i=p.length):i=0}while(Boolean(a)&&o<n&&0!==i);var c;return s}))}getServerInfo(){var e;return a(this,void 0,void 0,(function*(){try{const t=yield this.request({command:"server_info"});this.networkID=null!==(e=t.result.info.network_id)&&void 0!==e?e:void 0,this.buildVersion=t.result.info.build_version}catch(e){console.error(e)}}))}connect(){return a(this,void 0,void 0,(function*(){return this.connection.connect().then((()=>a(this,void 0,void 0,(function*(){yield this.getServerInfo(),this.emit("connected")}))))}))}disconnect(){return a(this,void 0,void 0,(function*(){yield this.connection.disconnect()}))}isConnected(){return this.connection.isConnected()}}t.Client=y},56742:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.handleStreamPartialPayment=t.handlePartialPayment=void 0;const i=n(r(83753)),o=r(79056),a=r(9879),s=r(143);function u(e,t){var r;if(null==e||null==t||"Payment"!==e.TransactionType)return!1;let n=t;if("string"==typeof n){if("unavailable"===n)return!1;n=(0,o.decode)(n)}if(!("number"==typeof e.Flags?(0,s.isFlagEnabled)(e.Flags,a.PaymentFlags.tfPartialPayment):null===(r=e.Flags)||void 0===r?void 0:r.tfPartialPayment))return!1;const u=n.delivered_amount,c=e.Amount;return void 0!==u&&!function(e,t){if("string"==typeof e&&"string"==typeof t)return e===t;if("string"==typeof e||"string"==typeof t)return!1;const r=new i.default(e.value),n=new i.default(t.value);return e.currency===t.currency&&e.issuer===t.issuer&&r.isEqualTo(n)}(u,c)}t.handlePartialPayment=function(e,t){var r;if(function(e,t){switch(e){case"tx":return function(e){return u(e.result,e.result.meta)}(t);case"transaction_entry":return function(e){return u(e.result.tx_json,e.result.metadata)}(t);case"account_tx":return function(e){const{transactions:t}=e.result;return t.some((e=>u(e.tx,e.meta)))}(t);default:return!1}}(e,t)){const e=null!==(r=t.warnings)&&void 0!==r?r:[],n={id:2001,message:"This response contains a Partial Payment"};e.push(n),t.warnings=e}},t.handleStreamPartialPayment=function(e,t){var r;if(u(e.transaction,e.meta)){const n=null!==(r=e.warnings)&&void 0!==r?r:[],i={id:2001,message:"This response contains a Partial Payment"};n.push(i),e.warnings=n,t("Partial payment received",JSON.stringify(e))}}},74337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XRPLFaucetError=t.NotFoundError=t.ValidationError=t.ResponseFormatError=t.TimeoutError=t.RippledNotInitializedError=t.DisconnectedError=t.NotConnectedError=t.RippledError=t.ConnectionError=t.UnexpectedError=t.XrplError=void 0;const n=r(75786);class i extends Error{constructor(e="",t){super(e),this.name=this.constructor.name,this.message=e,this.data=t,null!=Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(){let e=`[${this.name}(${this.message}`;return this.data&&(e+=`, ${(0,n.inspect)(this.data)}`),e+=")]",e}inspect(){return this.toString()}}t.XrplError=i,t.RippledError=class extends i{},t.UnexpectedError=class extends i{};class o extends i{}t.ConnectionError=o,t.NotConnectedError=class extends o{},t.DisconnectedError=class extends o{},t.RippledNotInitializedError=class extends o{},t.TimeoutError=class extends o{},t.ResponseFormatError=class extends o{},t.ValidationError=class extends i{},t.XRPLFaucetError=class extends i{},t.NotFoundError=class extends i{constructor(e="Not found"){super(e)}}},20066:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rfc1751MnemonicToKey=t.keyToRFC1751Mnemonic=t.walletFromSecretNumbers=t.Wallet=t.ECDSA=t.Client=t.BroadcastClient=void 0;var a=r(89289);Object.defineProperty(t,"BroadcastClient",{enumerable:!0,get:function(){return a.BroadcastClient}});var s=r(44278);Object.defineProperty(t,"Client",{enumerable:!0,get:function(){return s.Client}}),i(r(84980),t),i(r(17455),t);var u=r(8831);Object.defineProperty(t,"ECDSA",{enumerable:!0,get:function(){return o(u).default}}),i(r(74337),t);var c=r(52211);Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return c.Wallet}});var f=r(71402);Object.defineProperty(t,"walletFromSecretNumbers",{enumerable:!0,get:function(){return f.walletFromSecretNumbers}});var l=r(15567);Object.defineProperty(t,"keyToRFC1751Mnemonic",{enumerable:!0,get:function(){return l.keyToRFC1751Mnemonic}}),Object.defineProperty(t,"rfc1751MnemonicToKey",{enumerable:!0,get:function(){return l.rfc1751MnemonicToKey}}),i(r(29421),t)},86437:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},84980:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseAccountRootFlags=t.setTransactionFlagsToNumber=t.LedgerEntry=void 0,t.LedgerEntry=o(r(10143));var s=r(27161);Object.defineProperty(t,"setTransactionFlagsToNumber",{enumerable:!0,get:function(){return s.setTransactionFlagsToNumber}}),Object.defineProperty(t,"parseAccountRootFlags",{enumerable:!0,get:function(){return s.parseAccountRootFlags}}),a(r(31892),t),a(r(9879),t),a(r(86437),t)},74347:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AccountRootFlags=void 0,(r=t.AccountRootFlags||(t.AccountRootFlags={}))[r.lsfPasswordSpent=65536]="lsfPasswordSpent",r[r.lsfRequireDestTag=131072]="lsfRequireDestTag",r[r.lsfRequireAuth=262144]="lsfRequireAuth",r[r.lsfDisallowXRP=524288]="lsfDisallowXRP",r[r.lsfDisableMaster=1048576]="lsfDisableMaster",r[r.lsfNoFreeze=2097152]="lsfNoFreeze",r[r.lsfGlobalFreeze=4194304]="lsfGlobalFreeze",r[r.lsfDefaultRipple=8388608]="lsfDefaultRipple",r[r.lsfDepositAuth=16777216]="lsfDepositAuth",r[r.lsfAMM=33554432]="lsfAMM",r[r.lsfDisallowIncomingNFTokenOffer=67108864]="lsfDisallowIncomingNFTokenOffer",r[r.lsfDisallowIncomingCheck=134217728]="lsfDisallowIncomingCheck",r[r.lsfDisallowIncomingPayChan=268435456]="lsfDisallowIncomingPayChan",r[r.lsfDisallowIncomingTrustline=536870912]="lsfDisallowIncomingTrustline",r[r.lsfAllowTrustLineClawback=2147483648]="lsfAllowTrustLineClawback"},30296:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AMENDMENTS_ID=void 0,t.AMENDMENTS_ID="7DB0788C020F02780A673DC74757F23823FA3014C1866E72CC4CD8B226CD6EF4"},67209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FEE_SETTINGS_ID=void 0,t.FEE_SETTINGS_ID="4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A651"},51184:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NEGATIVE_UNL_ID=void 0,t.NEGATIVE_UNL_ID="2E8A59AA9D3B5B186B0B9E0F62E6C02587CA74A4D778938E957B6357D364B244"},36867:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.OfferFlags=void 0,(r=t.OfferFlags||(t.OfferFlags={}))[r.lsfPassive=65536]="lsfPassive",r[r.lsfSell=131072]="lsfSell"},85226:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RippleStateFlags=void 0,(r=t.RippleStateFlags||(t.RippleStateFlags={}))[r.lsfLowReserve=65536]="lsfLowReserve",r[r.lsfHighReserve=131072]="lsfHighReserve",r[r.lsfLowAuth=262144]="lsfLowAuth",r[r.lsfHighAuth=524288]="lsfHighAuth",r[r.lsfLowNoRipple=1048576]="lsfLowNoRipple",r[r.lsfHighNoRipple=2097152]="lsfHighNoRipple",r[r.lsfLowFreeze=4194304]="lsfLowFreeze",r[r.lsfHighFreeze=8388608]="lsfHighFreeze"},57331:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SignerListFlags=void 0,(r=t.SignerListFlags||(t.SignerListFlags={}))[r.lsfOneOwnerCount=65536]="lsfOneOwnerCount"},10143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignerListFlags=t.RippleStateFlags=t.OfferFlags=t.NEGATIVE_UNL_ID=t.FEE_SETTINGS_ID=t.AMENDMENTS_ID=t.AccountRootFlags=void 0;const n=r(74347);Object.defineProperty(t,"AccountRootFlags",{enumerable:!0,get:function(){return n.AccountRootFlags}});const i=r(30296);Object.defineProperty(t,"AMENDMENTS_ID",{enumerable:!0,get:function(){return i.AMENDMENTS_ID}});const o=r(67209);Object.defineProperty(t,"FEE_SETTINGS_ID",{enumerable:!0,get:function(){return o.FEE_SETTINGS_ID}});const a=r(51184);Object.defineProperty(t,"NEGATIVE_UNL_ID",{enumerable:!0,get:function(){return a.NEGATIVE_UNL_ID}});const s=r(36867);Object.defineProperty(t,"OfferFlags",{enumerable:!0,get:function(){return s.OfferFlags}});const u=r(85226);Object.defineProperty(t,"RippleStateFlags",{enumerable:!0,get:function(){return u.RippleStateFlags}});const c=r(57331);Object.defineProperty(t,"SignerListFlags",{enumerable:!0,get:function(){return c.SignerListFlags}})},31892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},14139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMBid=void 0;const n=r(74337),i=r(19061);t.validateAMMBid=function(e){if((0,i.validateBaseTransaction)(e),null==e.Asset)throw new n.ValidationError("AMMBid: missing field Asset");if(!(0,i.isCurrency)(e.Asset))throw new n.ValidationError("AMMBid: Asset must be a Currency");if(null==e.Asset2)throw new n.ValidationError("AMMBid: missing field Asset2");if(!(0,i.isCurrency)(e.Asset2))throw new n.ValidationError("AMMBid: Asset2 must be a Currency");if(null!=e.BidMin&&!(0,i.isAmount)(e.BidMin))throw new n.ValidationError("AMMBid: BidMin must be an Amount");if(null!=e.BidMax&&!(0,i.isAmount)(e.BidMax))throw new n.ValidationError("AMMBid: BidMax must be an Amount");if(null!=e.AuthAccounts){if(!Array.isArray(e.AuthAccounts))throw new n.ValidationError("AMMBid: AuthAccounts must be an AuthAccount array");if(e.AuthAccounts.length>4)throw new n.ValidationError("AMMBid: AuthAccounts length must not be greater than 4");!function(e,t){for(const r of t){if(null==r.AuthAccount||"object"!=typeof r.AuthAccount)throw new n.ValidationError("AMMBid: invalid AuthAccounts");if(null==r.AuthAccount.Account)throw new n.ValidationError("AMMBid: invalid AuthAccounts");if("string"!=typeof r.AuthAccount.Account)throw new n.ValidationError("AMMBid: invalid AuthAccounts");if(r.AuthAccount.Account===e)throw new n.ValidationError("AMMBid: AuthAccounts must not include sender's address")}}(e.Account,e.AuthAccounts)}}},59906:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMCreate=t.AMM_MAX_TRADING_FEE=void 0;const n=r(74337),i=r(19061);t.AMM_MAX_TRADING_FEE=1e3,t.validateAMMCreate=function(e){if((0,i.validateBaseTransaction)(e),null==e.Amount)throw new n.ValidationError("AMMCreate: missing field Amount");if(!(0,i.isAmount)(e.Amount))throw new n.ValidationError("AMMCreate: Amount must be an Amount");if(null==e.Amount2)throw new n.ValidationError("AMMCreate: missing field Amount2");if(!(0,i.isAmount)(e.Amount2))throw new n.ValidationError("AMMCreate: Amount2 must be an Amount");if(null==e.TradingFee)throw new n.ValidationError("AMMCreate: missing field TradingFee");if("number"!=typeof e.TradingFee)throw new n.ValidationError("AMMCreate: TradingFee must be a number");if(e.TradingFee<0||e.TradingFee>t.AMM_MAX_TRADING_FEE)throw new n.ValidationError(`AMMCreate: TradingFee must be between 0 and ${t.AMM_MAX_TRADING_FEE}`)}},22781:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMDelete=void 0;const n=r(74337),i=r(19061);t.validateAMMDelete=function(e){if((0,i.validateBaseTransaction)(e),null==e.Asset)throw new n.ValidationError("AMMDelete: missing field Asset");if(!(0,i.isCurrency)(e.Asset))throw new n.ValidationError("AMMDelete: Asset must be a Currency");if(null==e.Asset2)throw new n.ValidationError("AMMDelete: missing field Asset2");if(!(0,i.isCurrency)(e.Asset2))throw new n.ValidationError("AMMDelete: Asset2 must be a Currency")}},74350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMDeposit=t.AMMDepositFlags=void 0;const n=r(74337),i=r(19061);var o;(o=t.AMMDepositFlags||(t.AMMDepositFlags={}))[o.tfLPToken=65536]="tfLPToken",o[o.tfSingleAsset=524288]="tfSingleAsset",o[o.tfTwoAsset=1048576]="tfTwoAsset",o[o.tfOneAssetLPToken=2097152]="tfOneAssetLPToken",o[o.tfLimitLPToken=4194304]="tfLimitLPToken",t.validateAMMDeposit=function(e){if((0,i.validateBaseTransaction)(e),null==e.Asset)throw new n.ValidationError("AMMDeposit: missing field Asset");if(!(0,i.isCurrency)(e.Asset))throw new n.ValidationError("AMMDeposit: Asset must be a Currency");if(null==e.Asset2)throw new n.ValidationError("AMMDeposit: missing field Asset2");if(!(0,i.isCurrency)(e.Asset2))throw new n.ValidationError("AMMDeposit: Asset2 must be a Currency");if(null!=e.Amount2&&null==e.Amount)throw new n.ValidationError("AMMDeposit: must set Amount with Amount2");if(null!=e.EPrice&&null==e.Amount)throw new n.ValidationError("AMMDeposit: must set Amount with EPrice");if(null==e.LPTokenOut&&null==e.Amount)throw new n.ValidationError("AMMDeposit: must set at least LPTokenOut or Amount");if(null!=e.LPTokenOut&&!(0,i.isIssuedCurrency)(e.LPTokenOut))throw new n.ValidationError("AMMDeposit: LPTokenOut must be an IssuedCurrencyAmount");if(null!=e.Amount&&!(0,i.isAmount)(e.Amount))throw new n.ValidationError("AMMDeposit: Amount must be an Amount");if(null!=e.Amount2&&!(0,i.isAmount)(e.Amount2))throw new n.ValidationError("AMMDeposit: Amount2 must be an Amount");if(null!=e.EPrice&&!(0,i.isAmount)(e.EPrice))throw new n.ValidationError("AMMDeposit: EPrice must be an Amount")}},2638:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMVote=void 0;const n=r(74337),i=r(59906),o=r(19061);t.validateAMMVote=function(e){if((0,o.validateBaseTransaction)(e),null==e.Asset)throw new n.ValidationError("AMMVote: missing field Asset");if(!(0,o.isCurrency)(e.Asset))throw new n.ValidationError("AMMVote: Asset must be a Currency");if(null==e.Asset2)throw new n.ValidationError("AMMVote: missing field Asset2");if(!(0,o.isCurrency)(e.Asset2))throw new n.ValidationError("AMMVote: Asset2 must be a Currency");if(null==e.TradingFee)throw new n.ValidationError("AMMVote: missing field TradingFee");if("number"!=typeof e.TradingFee)throw new n.ValidationError("AMMVote: TradingFee must be a number");if(e.TradingFee<0||e.TradingFee>i.AMM_MAX_TRADING_FEE)throw new n.ValidationError(`AMMVote: TradingFee must be between 0 and ${i.AMM_MAX_TRADING_FEE}`)}},71637:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMWithdraw=t.AMMWithdrawFlags=void 0;const n=r(74337),i=r(19061);var o;(o=t.AMMWithdrawFlags||(t.AMMWithdrawFlags={}))[o.tfLPToken=65536]="tfLPToken",o[o.tfWithdrawAll=131072]="tfWithdrawAll",o[o.tfOneAssetWithdrawAll=262144]="tfOneAssetWithdrawAll",o[o.tfSingleAsset=524288]="tfSingleAsset",o[o.tfTwoAsset=1048576]="tfTwoAsset",o[o.tfOneAssetLPToken=2097152]="tfOneAssetLPToken",o[o.tfLimitLPToken=4194304]="tfLimitLPToken",t.validateAMMWithdraw=function(e){if((0,i.validateBaseTransaction)(e),null==e.Asset)throw new n.ValidationError("AMMWithdraw: missing field Asset");if(!(0,i.isCurrency)(e.Asset))throw new n.ValidationError("AMMWithdraw: Asset must be a Currency");if(null==e.Asset2)throw new n.ValidationError("AMMWithdraw: missing field Asset2");if(!(0,i.isCurrency)(e.Asset2))throw new n.ValidationError("AMMWithdraw: Asset2 must be a Currency");if(null!=e.Amount2&&null==e.Amount)throw new n.ValidationError("AMMWithdraw: must set Amount with Amount2");if(null!=e.EPrice&&null==e.Amount)throw new n.ValidationError("AMMWithdraw: must set Amount with EPrice");if(null!=e.LPTokenIn&&!(0,i.isIssuedCurrency)(e.LPTokenIn))throw new n.ValidationError("AMMWithdraw: LPTokenIn must be an IssuedCurrencyAmount");if(null!=e.Amount&&!(0,i.isAmount)(e.Amount))throw new n.ValidationError("AMMWithdraw: Amount must be an Amount");if(null!=e.Amount2&&!(0,i.isAmount)(e.Amount2))throw new n.ValidationError("AMMWithdraw: Amount2 must be an Amount");if(null!=e.EPrice&&!(0,i.isAmount)(e.EPrice))throw new n.ValidationError("AMMWithdraw: EPrice must be an Amount")}},10329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNFTokenAcceptOffer=void 0;const n=r(74337),i=r(19061);t.validateNFTokenAcceptOffer=function(e){if((0,i.validateBaseTransaction)(e),null!=e.NFTokenBrokerFee&&function(e){const t=(0,i.parseAmountValue)(e.NFTokenBrokerFee);if(Number.isNaN(t))throw new n.ValidationError("NFTokenAcceptOffer: invalid NFTokenBrokerFee");if(t<=0)throw new n.ValidationError("NFTokenAcceptOffer: NFTokenBrokerFee must be greater than 0; omit if there is no fee");if(null==e.NFTokenSellOffer||null==e.NFTokenBuyOffer)throw new n.ValidationError("NFTokenAcceptOffer: both NFTokenSellOffer and NFTokenBuyOffer must be set if using brokered mode")}(e),null==e.NFTokenSellOffer&&null==e.NFTokenBuyOffer)throw new n.ValidationError("NFTokenAcceptOffer: must set either NFTokenSellOffer or NFTokenBuyOffer")}},16362:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNFTokenBurn=void 0;const n=r(19061);t.validateNFTokenBurn=function(e){(0,n.validateBaseTransaction)(e),(0,n.validateRequiredField)(e,"NFTokenID",n.isString),(0,n.validateOptionalField)(e,"Owner",n.isAccount)}},66357:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNFTokenCancelOffer=void 0;const n=r(74337),i=r(19061);t.validateNFTokenCancelOffer=function(e){if((0,i.validateBaseTransaction)(e),!Array.isArray(e.NFTokenOffers))throw new n.ValidationError("NFTokenCancelOffer: missing field NFTokenOffers");if(e.NFTokenOffers.length<1)throw new n.ValidationError("NFTokenCancelOffer: empty field NFTokenOffers")}},38256:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNFTokenCreateOffer=t.NFTokenCreateOfferFlags=void 0;const n=r(74337),i=r(143),o=r(19061);var a;!function(e){e[e.tfSellNFToken=1]="tfSellNFToken"}(a=t.NFTokenCreateOfferFlags||(t.NFTokenCreateOfferFlags={})),t.validateNFTokenCreateOffer=function(e){if((0,o.validateBaseTransaction)(e),e.Account===e.Owner)throw new n.ValidationError("NFTokenCreateOffer: Owner and Account must not be equal");if(e.Account===e.Destination)throw new n.ValidationError("NFTokenCreateOffer: Destination and Account must not be equal");if((0,o.validateOptionalField)(e,"Destination",o.isAccount),(0,o.validateOptionalField)(e,"Owner",o.isAccount),null==e.NFTokenID)throw new n.ValidationError("NFTokenCreateOffer: missing field NFTokenID");if(!(0,o.isAmount)(e.Amount))throw new n.ValidationError("NFTokenCreateOffer: invalid Amount");"number"==typeof e.Flags&&(0,i.isFlagEnabled)(e.Flags,a.tfSellNFToken)?function(e){if(null!=e.Owner)throw new n.ValidationError("NFTokenCreateOffer: Owner must not be present for sell offers")}(e):function(e){if(null==e.Owner)throw new n.ValidationError("NFTokenCreateOffer: Owner must be present for buy offers");if((0,o.parseAmountValue)(e.Amount)<=0)throw new n.ValidationError("NFTokenCreateOffer: Amount must be greater than 0 for buy offers")}(e)}},69404:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNFTokenMint=t.NFTokenMintFlags=void 0;const n=r(74337),i=r(143),o=r(19061);var a;(a=t.NFTokenMintFlags||(t.NFTokenMintFlags={}))[a.tfBurnable=1]="tfBurnable",a[a.tfOnlyXRP=2]="tfOnlyXRP",a[a.tfTrustLine=4]="tfTrustLine",a[a.tfTransferable=8]="tfTransferable",t.validateNFTokenMint=function(e){if((0,o.validateBaseTransaction)(e),e.Account===e.Issuer)throw new n.ValidationError("NFTokenMint: Issuer must not be equal to Account");if((0,o.validateOptionalField)(e,"Issuer",o.isAccount),"string"==typeof e.URI&&""===e.URI)throw new n.ValidationError("NFTokenMint: URI must not be empty string");if("string"==typeof e.URI&&!(0,i.isHex)(e.URI))throw new n.ValidationError("NFTokenMint: URI must be in hex format");if(null==e.NFTokenTaxon)throw new n.ValidationError("NFTokenMint: missing field NFTokenTaxon")}},82786:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainAccountCreateCommit=void 0;const n=r(19061);t.validateXChainAccountCreateCommit=function(e){(0,n.validateBaseTransaction)(e),(0,n.validateRequiredField)(e,"XChainBridge",n.isXChainBridge),(0,n.validateRequiredField)(e,"SignatureReward",n.isAmount),(0,n.validateRequiredField)(e,"Destination",n.isAccount),(0,n.validateRequiredField)(e,"Amount",n.isAmount)}},54732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainAddAccountCreateAttestation=void 0;const n=r(19061);t.validateXChainAddAccountCreateAttestation=function(e){(0,n.validateBaseTransaction)(e),(0,n.validateRequiredField)(e,"Amount",n.isAmount),(0,n.validateRequiredField)(e,"AttestationRewardAccount",n.isAccount),(0,n.validateRequiredField)(e,"AttestationSignerAccount",n.isAccount),(0,n.validateRequiredField)(e,"Destination",n.isAccount),(0,n.validateRequiredField)(e,"OtherChainSource",n.isAccount),(0,n.validateRequiredField)(e,"PublicKey",n.isString),(0,n.validateRequiredField)(e,"Signature",n.isString),(0,n.validateRequiredField)(e,"SignatureReward",n.isAmount),(0,n.validateRequiredField)(e,"WasLockingChainSend",(e=>0===e||1===e)),(0,n.validateRequiredField)(e,"XChainAccountCreateCount",(e=>(0,n.isNumber)(e)||(0,n.isString)(e))),(0,n.validateRequiredField)(e,"XChainBridge",n.isXChainBridge)}},99090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainAddClaimAttestation=void 0;const n=r(19061);t.validateXChainAddClaimAttestation=function(e){(0,n.validateBaseTransaction)(e),(0,n.validateRequiredField)(e,"Amount",n.isAmount),(0,n.validateRequiredField)(e,"AttestationRewardAccount",n.isAccount),(0,n.validateRequiredField)(e,"AttestationSignerAccount",n.isAccount),(0,n.validateOptionalField)(e,"Destination",n.isAccount),(0,n.validateRequiredField)(e,"OtherChainSource",n.isAccount),(0,n.validateRequiredField)(e,"PublicKey",n.isString),(0,n.validateRequiredField)(e,"Signature",n.isString),(0,n.validateRequiredField)(e,"WasLockingChainSend",(e=>0===e||1===e)),(0,n.validateRequiredField)(e,"XChainBridge",n.isXChainBridge),(0,n.validateRequiredField)(e,"XChainClaimID",(e=>(0,n.isNumber)(e)||(0,n.isString)(e)))}},29287:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainClaim=void 0;const n=r(19061);t.validateXChainClaim=function(e){(0,n.validateBaseTransaction)(e),(0,n.validateRequiredField)(e,"XChainBridge",n.isXChainBridge),(0,n.validateRequiredField)(e,"XChainClaimID",(e=>(0,n.isNumber)(e)||(0,n.isString)(e))),(0,n.validateRequiredField)(e,"Destination",n.isAccount),(0,n.validateOptionalField)(e,"DestinationTag",n.isNumber),(0,n.validateRequiredField)(e,"Amount",n.isAmount)}},14694:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainCommit=void 0;const n=r(19061);t.validateXChainCommit=function(e){(0,n.validateBaseTransaction)(e),(0,n.validateRequiredField)(e,"XChainBridge",n.isXChainBridge),(0,n.validateRequiredField)(e,"XChainClaimID",(e=>(0,n.isNumber)(e)||(0,n.isString)(e))),(0,n.validateOptionalField)(e,"OtherChainDestination",n.isAccount),(0,n.validateRequiredField)(e,"Amount",n.isAmount)}},72577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainCreateBridge=void 0;const n=r(19061);t.validateXChainCreateBridge=function(e){(0,n.validateBaseTransaction)(e),(0,n.validateRequiredField)(e,"XChainBridge",n.isXChainBridge),(0,n.validateRequiredField)(e,"SignatureReward",n.isAmount),(0,n.validateOptionalField)(e,"MinAccountCreateAmount",n.isAmount)}},31009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainCreateClaimID=void 0;const n=r(19061);t.validateXChainCreateClaimID=function(e){(0,n.validateBaseTransaction)(e),(0,n.validateRequiredField)(e,"XChainBridge",n.isXChainBridge),(0,n.validateRequiredField)(e,"SignatureReward",n.isAmount),(0,n.validateRequiredField)(e,"OtherChainSource",n.isAccount)}},63576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainModifyBridge=t.XChainModifyBridgeFlags=void 0;const n=r(19061);var i;(i=t.XChainModifyBridgeFlags||(t.XChainModifyBridgeFlags={}))[i.tfClearAccountCreateAmount=65536]="tfClearAccountCreateAmount",t.validateXChainModifyBridge=function(e){(0,n.validateBaseTransaction)(e),(0,n.validateRequiredField)(e,"XChainBridge",n.isXChainBridge),(0,n.validateOptionalField)(e,"SignatureReward",n.isAmount),(0,n.validateOptionalField)(e,"MinAccountCreateAmount",n.isAmount)}},79228:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAccountDelete=void 0;const n=r(19061);t.validateAccountDelete=function(e){(0,n.validateBaseTransaction)(e),(0,n.validateRequiredField)(e,"Destination",n.isAccount),(0,n.validateOptionalField)(e,"DestinationTag",n.isNumber)}},20489:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAccountSet=t.AccountSetTfFlags=t.AccountSetAsfFlags=void 0;const n=r(74337),i=r(19061);var o,a;!function(e){e[e.asfRequireDest=1]="asfRequireDest",e[e.asfRequireAuth=2]="asfRequireAuth",e[e.asfDisallowXRP=3]="asfDisallowXRP",e[e.asfDisableMaster=4]="asfDisableMaster",e[e.asfAccountTxnID=5]="asfAccountTxnID",e[e.asfNoFreeze=6]="asfNoFreeze",e[e.asfGlobalFreeze=7]="asfGlobalFreeze",e[e.asfDefaultRipple=8]="asfDefaultRipple",e[e.asfDepositAuth=9]="asfDepositAuth",e[e.asfAuthorizedNFTokenMinter=10]="asfAuthorizedNFTokenMinter",e[e.asfDisallowIncomingNFTokenOffer=12]="asfDisallowIncomingNFTokenOffer",e[e.asfDisallowIncomingCheck=13]="asfDisallowIncomingCheck",e[e.asfDisallowIncomingPayChan=14]="asfDisallowIncomingPayChan",e[e.asfDisallowIncomingTrustline=15]="asfDisallowIncomingTrustline",e[e.asfAllowTrustLineClawback=16]="asfAllowTrustLineClawback"}(o=t.AccountSetAsfFlags||(t.AccountSetAsfFlags={})),(a=t.AccountSetTfFlags||(t.AccountSetTfFlags={}))[a.tfRequireDestTag=65536]="tfRequireDestTag",a[a.tfOptionalDestTag=131072]="tfOptionalDestTag",a[a.tfRequireAuth=262144]="tfRequireAuth",a[a.tfOptionalAuth=524288]="tfOptionalAuth",a[a.tfDisallowXRP=1048576]="tfDisallowXRP",a[a.tfAllowXRP=2097152]="tfAllowXRP",t.validateAccountSet=function(e){if((0,i.validateBaseTransaction)(e),(0,i.validateOptionalField)(e,"NFTokenMinter",i.isAccount),void 0!==e.ClearFlag){if("number"!=typeof e.ClearFlag)throw new n.ValidationError("AccountSet: invalid ClearFlag");if(!Object.values(o).includes(e.ClearFlag))throw new n.ValidationError("AccountSet: invalid ClearFlag")}if(void 0!==e.Domain&&"string"!=typeof e.Domain)throw new n.ValidationError("AccountSet: invalid Domain");if(void 0!==e.EmailHash&&"string"!=typeof e.EmailHash)throw new n.ValidationError("AccountSet: invalid EmailHash");if(void 0!==e.MessageKey&&"string"!=typeof e.MessageKey)throw new n.ValidationError("AccountSet: invalid MessageKey");if(void 0!==e.SetFlag){if("number"!=typeof e.SetFlag)throw new n.ValidationError("AccountSet: invalid SetFlag");if(!Object.values(o).includes(e.SetFlag))throw new n.ValidationError("AccountSet: invalid SetFlag")}if(void 0!==e.TransferRate&&"number"!=typeof e.TransferRate)throw new n.ValidationError("AccountSet: invalid TransferRate");if(void 0!==e.TickSize){if("number"!=typeof e.TickSize)throw new n.ValidationError("AccountSet: invalid TickSize");if(0!==e.TickSize&&(e.TickSize<3||e.TickSize>15))throw new n.ValidationError("AccountSet: invalid TickSize")}}},99618:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateCheckCancel=void 0;const n=r(74337),i=r(19061);t.validateCheckCancel=function(e){if((0,i.validateBaseTransaction)(e),void 0!==e.CheckID&&"string"!=typeof e.CheckID)throw new n.ValidationError("CheckCancel: invalid CheckID")}},97931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateCheckCash=void 0;const n=r(74337),i=r(19061);t.validateCheckCash=function(e){if((0,i.validateBaseTransaction)(e),null==e.Amount&&null==e.DeliverMin)throw new n.ValidationError("CheckCash: must have either Amount or DeliverMin");if(null!=e.Amount&&null!=e.DeliverMin)throw new n.ValidationError("CheckCash: cannot have both Amount and DeliverMin");if(null!=e.Amount&&void 0!==e.Amount&&!(0,i.isAmount)(e.Amount))throw new n.ValidationError("CheckCash: invalid Amount");if(null!=e.DeliverMin&&void 0!==e.DeliverMin&&!(0,i.isAmount)(e.DeliverMin))throw new n.ValidationError("CheckCash: invalid DeliverMin");if(void 0!==e.CheckID&&"string"!=typeof e.CheckID)throw new n.ValidationError("CheckCash: invalid CheckID")}},56680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateCheckCreate=void 0;const n=r(74337),i=r(19061);t.validateCheckCreate=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.SendMax)throw new n.ValidationError("CheckCreate: missing field SendMax");if((0,i.validateRequiredField)(e,"Destination",i.isAccount),(0,i.validateOptionalField)(e,"DestinationTag",i.isNumber),"string"!=typeof e.SendMax&&!(0,i.isIssuedCurrency)(e.SendMax))throw new n.ValidationError("CheckCreate: invalid SendMax");if(void 0!==e.Expiration&&"number"!=typeof e.Expiration)throw new n.ValidationError("CheckCreate: invalid Expiration");if(void 0!==e.InvoiceID&&"string"!=typeof e.InvoiceID)throw new n.ValidationError("CheckCreate: invalid InvoiceID")}},61062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateClawback=void 0;const n=r(74337),i=r(19061);t.validateClawback=function(e){if((0,i.validateBaseTransaction)(e),null==e.Amount)throw new n.ValidationError("Clawback: missing field Amount");if(!(0,i.isIssuedCurrency)(e.Amount))throw new n.ValidationError("Clawback: invalid Amount");if((0,i.isIssuedCurrency)(e.Amount)&&e.Account===e.Amount.issuer)throw new n.ValidationError("Clawback: invalid holder Account")}},19061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAmountValue=t.validateBaseTransaction=t.validateOptionalField=t.validateRequiredField=t.isXChainBridge=t.isAmount=t.isAccount=t.isIssuedCurrency=t.isCurrency=t.isNumber=t.isString=void 0;const n=r(79798),i=r(79056),o=r(74337),a=r(143);function s(e){if(null==e.Memo)return!1;const t=e.Memo,r=Object.keys(t).length,n=null==t.MemoData||"string"==typeof t.MemoData,i=null==t.MemoFormat||"string"==typeof t.MemoFormat,o=null==t.MemoType||"string"==typeof t.MemoType;return r>=1&&r<=3&&n&&i&&o&&(0,a.onlyHasFields)(t,["MemoFormat","MemoData","MemoType"])}function u(e){const t=e;if(null==t.Signer)return!1;const r=t.Signer;return 3===Object.keys(r).length&&"string"==typeof r.Account&&"string"==typeof r.TxnSignature&&"string"==typeof r.SigningPubKey}const c=3;function f(e){return null!==e&&"object"==typeof e}function l(e){return"string"==typeof e}function d(e){return"number"==typeof e}function h(e){return f(e)&&(2===Object.keys(e).length&&"string"==typeof e.issuer&&"string"==typeof e.currency||1===Object.keys(e).length&&"XRP"===e.currency)}function p(e){return f(e)&&Object.keys(e).length===c&&"string"==typeof e.value&&"string"==typeof e.issuer&&"string"==typeof e.currency}function y(e){return"string"==typeof e||p(e)}function g(e,t,r){if(null==e[t])throw new o.ValidationError(`${e.TransactionType}: missing field ${t}`);if(!r(e[t]))throw new o.ValidationError(`${e.TransactionType}: invalid field ${t}`)}function b(e,t,r){if(void 0!==e[t]&&!r(e[t]))throw new o.ValidationError(`${e.TransactionType}: invalid field ${t}`)}t.isString=l,t.isNumber=d,t.isCurrency=h,t.isIssuedCurrency=p,t.isAccount=function(e){return"string"==typeof e&&((0,n.isValidClassicAddress)(e)||(0,n.isValidXAddress)(e))},t.isAmount=y,t.isXChainBridge=function(e){return f(e)&&4===Object.keys(e).length&&"string"==typeof e.LockingChainDoor&&h(e.LockingChainIssue)&&"string"==typeof e.IssuingChainDoor&&h(e.IssuingChainIssue)},t.validateRequiredField=g,t.validateOptionalField=b,t.validateBaseTransaction=function(e){if(void 0===e.TransactionType)throw new o.ValidationError("BaseTransaction: missing field TransactionType");if("string"!=typeof e.TransactionType)throw new o.ValidationError("BaseTransaction: TransactionType not string");if(!i.TRANSACTION_TYPES.includes(e.TransactionType))throw new o.ValidationError("BaseTransaction: Unknown TransactionType");g(e,"Account",l),b(e,"Fee",l),b(e,"Sequence",d),b(e,"AccountTxnID",l),b(e,"LastLedgerSequence",d);const t=e.Memos;if(void 0!==t&&!t.every(s))throw new o.ValidationError("BaseTransaction: invalid Memos");const r=e.Signers;if(void 0!==r&&(0===r.length||!r.every(u)))throw new o.ValidationError("BaseTransaction: invalid Signers");b(e,"SourceTag",d),b(e,"SigningPubKey",l),b(e,"TicketSequence",d),b(e,"TxnSignature",l),b(e,"NetworkID",d)},t.parseAmountValue=function(e){return y(e)?"string"==typeof e?parseFloat(e):parseFloat(e.value):NaN}},44992:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateDepositPreauth=void 0;const n=r(74337),i=r(19061);t.validateDepositPreauth=function(e){if((0,i.validateBaseTransaction)(e),void 0!==e.Authorize&&void 0!==e.Unauthorize)throw new n.ValidationError("DepositPreauth: can't provide both Authorize and Unauthorize fields");if(void 0===e.Authorize&&void 0===e.Unauthorize)throw new n.ValidationError("DepositPreauth: must provide either Authorize or Unauthorize field");if(void 0!==e.Authorize){if("string"!=typeof e.Authorize)throw new n.ValidationError("DepositPreauth: Authorize must be a string");if(e.Account===e.Authorize)throw new n.ValidationError("DepositPreauth: Account can't preauthorize its own address")}if(void 0!==e.Unauthorize){if("string"!=typeof e.Unauthorize)throw new n.ValidationError("DepositPreauth: Unauthorize must be a string");if(e.Account===e.Unauthorize)throw new n.ValidationError("DepositPreauth: Account can't unauthorize its own address")}}},70255:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.EnableAmendmentFlags=void 0,(r=t.EnableAmendmentFlags||(t.EnableAmendmentFlags={}))[r.tfGotMajority=65536]="tfGotMajority",r[r.tfLostMajority=131072]="tfLostMajority"},66350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateEscrowCancel=void 0;const n=r(74337),i=r(19061);t.validateEscrowCancel=function(e){if((0,i.validateBaseTransaction)(e),(0,i.validateRequiredField)(e,"Owner",i.isAccount),null==e.OfferSequence)throw new n.ValidationError("EscrowCancel: missing OfferSequence");if("number"!=typeof e.OfferSequence&&"string"!=typeof e.OfferSequence||Number.isNaN(Number(e.OfferSequence)))throw new n.ValidationError("EscrowCancel: OfferSequence must be a number")}},26145:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateEscrowCreate=void 0;const n=r(74337),i=r(19061);t.validateEscrowCreate=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.Amount)throw new n.ValidationError("EscrowCreate: missing field Amount");if("string"!=typeof e.Amount)throw new n.ValidationError("EscrowCreate: Amount must be a string");if((0,i.validateRequiredField)(e,"Destination",i.isAccount),(0,i.validateOptionalField)(e,"DestinationTag",i.isNumber),void 0===e.CancelAfter&&void 0===e.FinishAfter)throw new n.ValidationError("EscrowCreate: Either CancelAfter or FinishAfter must be specified");if(void 0===e.FinishAfter&&void 0===e.Condition)throw new n.ValidationError("EscrowCreate: Either Condition or FinishAfter must be specified");if(void 0!==e.CancelAfter&&"number"!=typeof e.CancelAfter)throw new n.ValidationError("EscrowCreate: CancelAfter must be a number");if(void 0!==e.FinishAfter&&"number"!=typeof e.FinishAfter)throw new n.ValidationError("EscrowCreate: FinishAfter must be a number");if(void 0!==e.Condition&&"string"!=typeof e.Condition)throw new n.ValidationError("EscrowCreate: Condition must be a string")}},64055:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateEscrowFinish=void 0;const n=r(74337),i=r(19061);t.validateEscrowFinish=function(e){if((0,i.validateBaseTransaction)(e),(0,i.validateRequiredField)(e,"Owner",i.isAccount),null==e.OfferSequence)throw new n.ValidationError("EscrowFinish: missing field OfferSequence");if("number"!=typeof e.OfferSequence&&"string"!=typeof e.OfferSequence||Number.isNaN(Number(e.OfferSequence)))throw new n.ValidationError("EscrowFinish: OfferSequence must be a number");if(void 0!==e.Condition&&"string"!=typeof e.Condition)throw new n.ValidationError("EscrowFinish: Condition must be a string");if(void 0!==e.Fulfillment&&"string"!=typeof e.Fulfillment)throw new n.ValidationError("EscrowFinish: Fulfillment must be a string")}},9879:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.XChainModifyBridgeFlags=t.TrustSetFlags=t.PaymentChannelClaimFlags=t.PaymentFlags=t.OfferCreateFlags=t.NFTokenMintFlags=t.NFTokenCreateOfferFlags=t.EnableAmendmentFlags=t.AMMWithdrawFlags=t.AMMDepositFlags=t.AccountSetTfFlags=t.AccountSetAsfFlags=t.validate=void 0;var o=r(40951);Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return o.validate}}),i(r(3378),t);var a=r(20489);Object.defineProperty(t,"AccountSetAsfFlags",{enumerable:!0,get:function(){return a.AccountSetAsfFlags}}),Object.defineProperty(t,"AccountSetTfFlags",{enumerable:!0,get:function(){return a.AccountSetTfFlags}});var s=r(74350);Object.defineProperty(t,"AMMDepositFlags",{enumerable:!0,get:function(){return s.AMMDepositFlags}});var u=r(71637);Object.defineProperty(t,"AMMWithdrawFlags",{enumerable:!0,get:function(){return u.AMMWithdrawFlags}});var c=r(70255);Object.defineProperty(t,"EnableAmendmentFlags",{enumerable:!0,get:function(){return c.EnableAmendmentFlags}});var f=r(38256);Object.defineProperty(t,"NFTokenCreateOfferFlags",{enumerable:!0,get:function(){return f.NFTokenCreateOfferFlags}});var l=r(69404);Object.defineProperty(t,"NFTokenMintFlags",{enumerable:!0,get:function(){return l.NFTokenMintFlags}});var d=r(82297);Object.defineProperty(t,"OfferCreateFlags",{enumerable:!0,get:function(){return d.OfferCreateFlags}});var h=r(4059);Object.defineProperty(t,"PaymentFlags",{enumerable:!0,get:function(){return h.PaymentFlags}});var p=r(24498);Object.defineProperty(t,"PaymentChannelClaimFlags",{enumerable:!0,get:function(){return p.PaymentChannelClaimFlags}});var y=r(18748);Object.defineProperty(t,"TrustSetFlags",{enumerable:!0,get:function(){return y.TrustSetFlags}});var g=r(63576);Object.defineProperty(t,"XChainModifyBridgeFlags",{enumerable:!0,get:function(){return g.XChainModifyBridgeFlags}})},3378:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDeletedNode=t.isModifiedNode=t.isCreatedNode=void 0,t.isCreatedNode=function(e){return Object.prototype.hasOwnProperty.call(e,"CreatedNode")},t.isModifiedNode=function(e){return Object.prototype.hasOwnProperty.call(e,"ModifiedNode")},t.isDeletedNode=function(e){return Object.prototype.hasOwnProperty.call(e,"DeletedNode")}},84255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateOfferCancel=void 0;const n=r(74337),i=r(19061);t.validateOfferCancel=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.OfferSequence)throw new n.ValidationError("OfferCancel: missing field OfferSequence");if("number"!=typeof e.OfferSequence)throw new n.ValidationError("OfferCancel: OfferSequence must be a number")}},82297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateOfferCreate=t.OfferCreateFlags=void 0;const n=r(74337),i=r(19061);var o;(o=t.OfferCreateFlags||(t.OfferCreateFlags={}))[o.tfPassive=65536]="tfPassive",o[o.tfImmediateOrCancel=131072]="tfImmediateOrCancel",o[o.tfFillOrKill=262144]="tfFillOrKill",o[o.tfSell=524288]="tfSell",t.validateOfferCreate=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.TakerGets)throw new n.ValidationError("OfferCreate: missing field TakerGets");if(void 0===e.TakerPays)throw new n.ValidationError("OfferCreate: missing field TakerPays");if("string"!=typeof e.TakerGets&&!(0,i.isAmount)(e.TakerGets))throw new n.ValidationError("OfferCreate: invalid TakerGets");if("string"!=typeof e.TakerPays&&!(0,i.isAmount)(e.TakerPays))throw new n.ValidationError("OfferCreate: invalid TakerPays");if(void 0!==e.Expiration&&"number"!=typeof e.Expiration)throw new n.ValidationError("OfferCreate: invalid Expiration");if(void 0!==e.OfferSequence&&"number"!=typeof e.OfferSequence)throw new n.ValidationError("OfferCreate: invalid OfferSequence")}},4059:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePayment=t.PaymentFlags=void 0;const n=r(74337),i=r(143),o=r(19061);var a;function s(e){return!(void 0!==e.account&&"string"!=typeof e.account||void 0!==e.currency&&"string"!=typeof e.currency||void 0!==e.issuer&&"string"!=typeof e.issuer||(void 0===e.account||void 0!==e.currency||void 0!==e.issuer)&&void 0===e.currency&&void 0===e.issuer)}function u(e){for(const t of e)if(!s(t))return!1;return!0}!function(e){e[e.tfNoDirectRipple=65536]="tfNoDirectRipple",e[e.tfPartialPayment=131072]="tfPartialPayment",e[e.tfLimitQuality=262144]="tfLimitQuality"}(a=t.PaymentFlags||(t.PaymentFlags={})),t.validatePayment=function(e){if((0,o.validateBaseTransaction)(e),void 0===e.Amount)throw new n.ValidationError("PaymentTransaction: missing field Amount");if(!(0,o.isAmount)(e.Amount))throw new n.ValidationError("PaymentTransaction: invalid Amount");if((0,o.validateRequiredField)(e,"Destination",o.isAccount),(0,o.validateOptionalField)(e,"DestinationTag",o.isNumber),void 0!==e.InvoiceID&&"string"!=typeof e.InvoiceID)throw new n.ValidationError("PaymentTransaction: InvoiceID must be a string");if(void 0!==e.Paths&&!function(e){if(!Array.isArray(e)||0===e.length)return!1;for(const t of e){if(!Array.isArray(t)||0===t.length)return!1;if(!u(t))return!1}return!0}(e.Paths))throw new n.ValidationError("PaymentTransaction: invalid Paths");if(void 0!==e.SendMax&&!(0,o.isAmount)(e.SendMax))throw new n.ValidationError("PaymentTransaction: invalid SendMax");!function(e){var t;if(null!=e.DeliverMin){if(null==e.Flags)throw new n.ValidationError("PaymentTransaction: tfPartialPayment flag required with DeliverMin");const r=e.Flags;if(!("number"==typeof r?(0,i.isFlagEnabled)(r,a.tfPartialPayment):null!==(t=r.tfPartialPayment)&&void 0!==t&&t))throw new n.ValidationError("PaymentTransaction: tfPartialPayment flag required with DeliverMin");if(!(0,o.isAmount)(e.DeliverMin))throw new n.ValidationError("PaymentTransaction: invalid DeliverMin")}}(e)}},24498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePaymentChannelClaim=t.PaymentChannelClaimFlags=void 0;const n=r(74337),i=r(19061);var o;(o=t.PaymentChannelClaimFlags||(t.PaymentChannelClaimFlags={}))[o.tfRenew=65536]="tfRenew",o[o.tfClose=131072]="tfClose",t.validatePaymentChannelClaim=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.Channel)throw new n.ValidationError("PaymentChannelClaim: missing Channel");if("string"!=typeof e.Channel)throw new n.ValidationError("PaymentChannelClaim: Channel must be a string");if(void 0!==e.Balance&&"string"!=typeof e.Balance)throw new n.ValidationError("PaymentChannelClaim: Balance must be a string");if(void 0!==e.Amount&&"string"!=typeof e.Amount)throw new n.ValidationError("PaymentChannelClaim: Amount must be a string");if(void 0!==e.Signature&&"string"!=typeof e.Signature)throw new n.ValidationError("PaymentChannelClaim: Signature must be a string");if(void 0!==e.PublicKey&&"string"!=typeof e.PublicKey)throw new n.ValidationError("PaymentChannelClaim: PublicKey must be a string")}},51434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePaymentChannelCreate=void 0;const n=r(74337),i=r(19061);t.validatePaymentChannelCreate=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.Amount)throw new n.ValidationError("PaymentChannelCreate: missing Amount");if("string"!=typeof e.Amount)throw new n.ValidationError("PaymentChannelCreate: Amount must be a string");if((0,i.validateRequiredField)(e,"Destination",i.isAccount),(0,i.validateOptionalField)(e,"DestinationTag",i.isNumber),void 0===e.SettleDelay)throw new n.ValidationError("PaymentChannelCreate: missing SettleDelay");if("number"!=typeof e.SettleDelay)throw new n.ValidationError("PaymentChannelCreate: SettleDelay must be a number");if(void 0===e.PublicKey)throw new n.ValidationError("PaymentChannelCreate: missing PublicKey");if("string"!=typeof e.PublicKey)throw new n.ValidationError("PaymentChannelCreate: PublicKey must be a string");if(void 0!==e.CancelAfter&&"number"!=typeof e.CancelAfter)throw new n.ValidationError("PaymentChannelCreate: CancelAfter must be a number")}},1734:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePaymentChannelFund=void 0;const n=r(74337),i=r(19061);t.validatePaymentChannelFund=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.Channel)throw new n.ValidationError("PaymentChannelFund: missing Channel");if("string"!=typeof e.Channel)throw new n.ValidationError("PaymentChannelFund: Channel must be a string");if(void 0===e.Amount)throw new n.ValidationError("PaymentChannelFund: missing Amount");if("string"!=typeof e.Amount)throw new n.ValidationError("PaymentChannelFund: Amount must be a string");if(void 0!==e.Expiration&&"number"!=typeof e.Expiration)throw new n.ValidationError("PaymentChannelFund: Expiration must be a number")}},5586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSetRegularKey=void 0;const n=r(74337),i=r(19061);t.validateSetRegularKey=function(e){if((0,i.validateBaseTransaction)(e),void 0!==e.RegularKey&&"string"!=typeof e.RegularKey)throw new n.ValidationError("SetRegularKey: RegularKey must be a string")}},51756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSignerListSet=void 0;const n=r(74337),i=r(19061),o=/^[0-9A-Fa-f]{64}$/u;t.validateSignerListSet=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.SignerQuorum)throw new n.ValidationError("SignerListSet: missing field SignerQuorum");if("number"!=typeof e.SignerQuorum)throw new n.ValidationError("SignerListSet: invalid SignerQuorum");if(0!==e.SignerQuorum){if(void 0===e.SignerEntries)throw new n.ValidationError("SignerListSet: missing field SignerEntries");if(!Array.isArray(e.SignerEntries))throw new n.ValidationError("SignerListSet: invalid SignerEntries");if(0===e.SignerEntries.length)throw new n.ValidationError("SignerListSet: need at least 1 member in SignerEntries");if(e.SignerEntries.length>32)throw new n.ValidationError("SignerListSet: maximum of 32 members allowed in SignerEntries");for(const t of e.SignerEntries){const e=t,{WalletLocator:r}=e.SignerEntry;if(void 0!==r&&!o.test(r))throw new n.ValidationError("SignerListSet: WalletLocator in SignerEntry must be a 256-bit (32-byte) hexadecimal value")}}}},58920:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTicketCreate=void 0;const n=r(74337),i=r(19061);t.validateTicketCreate=function(e){(0,i.validateBaseTransaction)(e);const{TicketCount:t}=e;if(void 0===t)throw new n.ValidationError("TicketCreate: missing field TicketCount");if("number"!=typeof t)throw new n.ValidationError("TicketCreate: TicketCount must be a number");if(!Number.isInteger(t)||t<1||t>250)throw new n.ValidationError("TicketCreate: TicketCount must be an integer from 1 to 250")}},40951:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validate=void 0;const n=r(74337),i=r(143),o=r(27161),a=r(79228),s=r(20489),u=r(14139),c=r(59906),f=r(22781),l=r(74350),d=r(2638),h=r(71637),p=r(99618),y=r(97931),g=r(56680),b=r(61062),m=r(19061),v=r(44992),w=r(66350),_=r(26145),S=r(64055),E=r(10329),A=r(16362),O=r(66357),M=r(38256),T=r(69404),I=r(84255),N=r(82297),C=r(4059),L=r(24498),x=r(51434),R=r(1734),k=r(5586),B=r(51756),P=r(58920),D=r(18748),j=r(82786),F=r(54732),U=r(99090),H=r(29287),V=r(14694),z=r(72577),q=r(31009),K=r(63576);t.validate=function(e){const t=Object.assign({},e);if(null==t.TransactionType)throw new n.ValidationError("Object does not have a `TransactionType`");if("string"!=typeof t.TransactionType)throw new n.ValidationError("Object's `TransactionType` is not a string");if(null!=t.Memos&&"object"!=typeof t.Memos)throw new n.ValidationError("Memo must be array");switch(null!=t.Memos&&t.Memos.forEach((e=>{if(null==(null==e?void 0:e.Memo))throw new n.ValidationError("Memo data must be in a `Memo` field");if(e.Memo.MemoData&&!(0,i.isHex)(e.Memo.MemoData))throw new n.ValidationError("MemoData field must be a hex value");if(e.Memo.MemoType&&!(0,i.isHex)(e.Memo.MemoType))throw new n.ValidationError("MemoType field must be a hex value");if(e.Memo.MemoFormat&&!(0,i.isHex)(e.Memo.MemoFormat))throw new n.ValidationError("MemoFormat field must be a hex value")})),Object.keys(t).forEach((e=>{if(t[e]&&(0,m.isIssuedCurrency)(t[e])){const r=t[e].currency;if(3===r.length&&"XRP"===r.toUpperCase())throw new n.ValidationError(`Cannot have an issued currency with a similar standard code to XRP (received '${r}'). XRP is not an issued currency.`)}})),(0,o.setTransactionFlagsToNumber)(t),t.TransactionType){case"AccountDelete":(0,a.validateAccountDelete)(t);break;case"AccountSet":(0,s.validateAccountSet)(t);break;case"AMMBid":(0,u.validateAMMBid)(t);break;case"AMMDelete":(0,f.validateAMMDelete)(t);break;case"AMMDeposit":(0,l.validateAMMDeposit)(t);break;case"AMMCreate":(0,c.validateAMMCreate)(t);break;case"AMMVote":(0,d.validateAMMVote)(t);break;case"AMMWithdraw":(0,h.validateAMMWithdraw)(t);break;case"CheckCancel":(0,p.validateCheckCancel)(t);break;case"CheckCash":(0,y.validateCheckCash)(t);break;case"CheckCreate":(0,g.validateCheckCreate)(t);break;case"Clawback":(0,b.validateClawback)(t);break;case"DepositPreauth":(0,v.validateDepositPreauth)(t);break;case"EscrowCancel":(0,w.validateEscrowCancel)(t);break;case"EscrowCreate":(0,_.validateEscrowCreate)(t);break;case"EscrowFinish":(0,S.validateEscrowFinish)(t);break;case"NFTokenAcceptOffer":(0,E.validateNFTokenAcceptOffer)(t);break;case"NFTokenBurn":(0,A.validateNFTokenBurn)(t);break;case"NFTokenCancelOffer":(0,O.validateNFTokenCancelOffer)(t);break;case"NFTokenCreateOffer":(0,M.validateNFTokenCreateOffer)(t);break;case"NFTokenMint":(0,T.validateNFTokenMint)(t);break;case"OfferCancel":(0,I.validateOfferCancel)(t);break;case"OfferCreate":(0,N.validateOfferCreate)(t);break;case"Payment":(0,C.validatePayment)(t);break;case"PaymentChannelClaim":(0,L.validatePaymentChannelClaim)(t);break;case"PaymentChannelCreate":(0,x.validatePaymentChannelCreate)(t);break;case"PaymentChannelFund":(0,R.validatePaymentChannelFund)(t);break;case"SetRegularKey":(0,k.validateSetRegularKey)(t);break;case"SignerListSet":(0,B.validateSignerListSet)(t);break;case"TicketCreate":(0,P.validateTicketCreate)(t);break;case"TrustSet":(0,D.validateTrustSet)(t);break;case"XChainAddAccountCreateAttestation":(0,F.validateXChainAddAccountCreateAttestation)(t);break;case"XChainAddClaimAttestation":(0,U.validateXChainAddClaimAttestation)(t);break;case"XChainClaim":(0,H.validateXChainClaim)(t);break;case"XChainCommit":(0,V.validateXChainCommit)(t);break;case"XChainCreateBridge":(0,z.validateXChainCreateBridge)(t);break;case"XChainCreateClaimID":(0,q.validateXChainCreateClaimID)(t);break;case"XChainAccountCreateCommit":(0,j.validateXChainAccountCreateCommit)(t);break;case"XChainModifyBridge":(0,K.validateXChainModifyBridge)(t);break;default:throw new n.ValidationError(`Invalid field TransactionType: ${t.TransactionType}`)}}},18748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTrustSet=t.TrustSetFlags=void 0;const n=r(74337),i=r(19061);var o;(o=t.TrustSetFlags||(t.TrustSetFlags={}))[o.tfSetfAuth=65536]="tfSetfAuth",o[o.tfSetNoRipple=131072]="tfSetNoRipple",o[o.tfClearNoRipple=262144]="tfClearNoRipple",o[o.tfSetFreeze=1048576]="tfSetFreeze",o[o.tfClearFreeze=2097152]="tfClearFreeze",t.validateTrustSet=function(e){(0,i.validateBaseTransaction)(e);const{LimitAmount:t,QualityIn:r,QualityOut:o}=e;if(void 0===t)throw new n.ValidationError("TrustSet: missing field LimitAmount");if(!(0,i.isAmount)(t))throw new n.ValidationError("TrustSet: invalid LimitAmount");if(void 0!==r&&"number"!=typeof r)throw new n.ValidationError("TrustSet: QualityIn must be a number");if(void 0!==o&&"number"!=typeof o)throw new n.ValidationError("TrustSet: QualityOut must be a number")}},27161:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setTransactionFlagsToNumber=t.parseAccountRootFlags=void 0;const n=r(74337),i=r(74347),o=r(20489),a=r(74350),s=r(71637),u=r(38256),c=r(69404),f=r(82297),l=r(4059),d=r(24498),h=r(18748),p=r(63576),y=r(143);t.parseAccountRootFlags=function(e){const t={};return Object.values(i.AccountRootFlags).forEach((r=>{"string"==typeof r&&(0,y.isFlagEnabled)(e,i.AccountRootFlags[r])&&(t[r]=!0)})),t};const g={AccountSet:o.AccountSetTfFlags,AMMDeposit:a.AMMDepositFlags,AMMWithdraw:s.AMMWithdrawFlags,NFTokenCreateOffer:u.NFTokenCreateOfferFlags,NFTokenMint:c.NFTokenMintFlags,OfferCreate:f.OfferCreateFlags,PaymentChannelClaim:d.PaymentChannelClaimFlags,Payment:l.PaymentFlags,TrustSet:h.TrustSetFlags,XChainModifyBridge:p.XChainModifyBridgeFlags};t.setTransactionFlagsToNumber=function(e){var t,r;null!=e.Flags?"number"!=typeof e.Flags&&(e.Flags=g[e.TransactionType]?(t=e.Flags,r=g[e.TransactionType],Object.keys(t).reduce(((e,i)=>{if(null==r[i])throw new n.ValidationError(`flag ${i} doesn't exist in flagEnum: ${JSON.stringify(r)}`);return t[i]?e|r[i]:e}),0)):0):e.Flags=0}},143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=t.isFlagEnabled=t.onlyHasFields=void 0;const r=/^[0-9A-Fa-f]+$/u;t.onlyHasFields=function(e,t){return Object.keys(e).every((e=>t.includes(e)))},t.isFlagEnabled=function(e,t){return(BigInt(t)&BigInt(e))===BigInt(t)},t.isHex=function(e){return r.test(e)}},71083:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(r(83753)),a=r(79798),s=r(74337),u=r(27161),c=r(17455),f=i(r(11437));function l(e,t,r){const{classicAccount:n,tag:i}=d(e[t]);if(e[t]=n,null!=i&&!1!==i){if(e[r]&&e[r]!==i)throw new s.ValidationError(`The ${r}, if present, must match the tag of the ${t} X-address`);e[r]=i}}function d(e,t){if((0,a.isValidXAddress)(e)){const r=(0,a.xAddressToClassicAddress)(e);if(null!=t&&r.tag!==t)throw new s.ValidationError("address includes a tag that does not match the tag specified in the transaction");return{classicAccount:r.classicAddress,tag:r.tag}}return{classicAccount:e,tag:t}}function h(e,t){const r=e[t];if("string"==typeof r){const{classicAccount:n}=d(r);e[t]=n}}function p(e,t){return new o.default(e).times(t).toString()}t.default=function(e,t){return n(this,void 0,void 0,(function*(){const r=Object.assign({},e);!function(e){l(e,"Account","SourceTag"),null!=e.Destination&&l(e,"Destination","DestinationTag"),h(e,"Authorize"),h(e,"Unauthorize"),h(e,"Owner"),h(e,"RegularKey")}(r),(0,u.setTransactionFlagsToNumber)(r);const i=[];return null==r.NetworkID&&(r.NetworkID=void 0!==(a=this).networkID&&a.networkID>1024&&(a.buildVersion&&function(e,t){if(e===t)return!0;const r=e.split("."),n=t.split("."),i=parseInt(r[0],10),o=parseInt(r[1],10),a=parseInt(n[0],10),s=parseInt(n[1],10);if(i!==a)return i<a;if(o!==s)return o<s;const u=r[2].split("-"),c=n[2].split("-"),f=parseInt(u[0],10),l=parseInt(c[0],10);return f!==l?f<l:u.length!==c.length?u.length>c.length:2===u.length&&(u[1][0].startsWith(c[1][0])?u[1].startsWith("b")?parseInt(u[1].slice(1),10)<parseInt(c[1].slice(1),10):parseInt(u[1].slice(2),10)<parseInt(c[1].slice(2),10):u[1]<c[1])}("1.11.0",a.buildVersion)||21338===a.networkID)?this.networkID:void 0),null==r.Sequence&&i.push(function(e,t){return n(this,void 0,void 0,(function*(){const r={command:"account_info",account:t.Account,ledger_index:"current"},n=yield e.request(r);t.Sequence=n.result.account_data.Sequence}))}(this,r)),null==r.Fee&&i.push(function(e,t,r=0){return n(this,void 0,void 0,(function*(){const i=yield(0,f.default)(e),a=(0,c.xrpToDrops)(i);let s=new o.default(a);if("EscrowFinish"===t.TransactionType&&null!=t.Fulfillment){const e=Math.ceil(t.Fulfillment.length/2);s=new o.default(p(a,33+e/16)).dp(0,o.default.ROUND_CEIL)}"AccountDelete"!==t.TransactionType&&"AMMCreate"!==t.TransactionType||(s=yield function(e){var t;return n(this,void 0,void 0,(function*(){const r=yield e.request({command:"server_state"}),n=null===(t=r.result.state.validated_ledger)||void 0===t?void 0:t.reserve_inc;return null==n?Promise.reject(new Error("Could not fetch Owner Reserve.")):new o.default(n)}))}(e)),r>0&&(s=o.default.sum(s,p(a,1+r)));const u=(0,c.xrpToDrops)(e.maxFeeXRP),l="AccountDelete"===t.TransactionType?s:o.default.min(s,u);t.Fee=l.dp(0,o.default.ROUND_CEIL).toString(10)}))}(this,r,t)),null==r.LastLedgerSequence&&i.push(function(e,t){return n(this,void 0,void 0,(function*(){const r=yield e.getLedgerIndex();t.LastLedgerSequence=r+20}))}(this,r)),"AccountDelete"===r.TransactionType&&i.push(function(e,t){return n(this,void 0,void 0,(function*(){const r={command:"account_objects",account:t.Account,ledger_index:"validated",deletion_blockers_only:!0},n=yield e.request(r);return new Promise(((e,r)=>{n.result.account_objects.length>0&&r(new s.XrplError(`Account ${t.Account} cannot be deleted; there are Escrows, PayChannels, RippleStates, or Checks associated with the account.`,n.result.account_objects)),e()}))}))}(this,r)),Promise.all(i).then((()=>r));var a}))}},21701:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getBalances=t.getXrpBalance=void 0;const o=i(r(96372)),a=r(17455);t.getXrpBalance=function(e,t={}){var r;return n(this,void 0,void 0,(function*(){const n={command:"account_info",account:e,ledger_index:null!==(r=t.ledger_index)&&void 0!==r?r:"validated",ledger_hash:t.ledger_hash},i=yield this.request(n);return(0,a.dropsToXrp)(i.result.account_data.Balance)}))},t.getBalances=function(e,t={}){var r;return n(this,void 0,void 0,(function*(){const n=[];let i=Promise.resolve("");t.peer||(i=this.getXrpBalance(e,{ledger_hash:t.ledger_hash,ledger_index:t.ledger_index}));const a={command:"account_lines",account:e,ledger_index:null!==(r=t.ledger_index)&&void 0!==r?r:"validated",ledger_hash:t.ledger_hash,peer:t.peer,limit:t.limit},s=this.requestAll(a);return yield Promise.all([i,s]).then((([e,t])=>{const r=(0,o.default)(t,(e=>e.result.lines.map((e=>({value:e.balance,currency:e.currency,issuer:e.account})))));""!==e&&n.push({currency:"XRP",value:e}),n.push(...r)})),n.slice(0,t.limit)}))}},11437:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(r(83753)),a=r(74337);t.default=function(e,t){var r;return n(this,void 0,void 0,(function*(){const n=null!=t?t:e.feeCushion,i=(yield e.request({command:"server_info"})).result.info,s=null===(r=i.validated_ledger)||void 0===r?void 0:r.base_fee_xrp;if(null==s)throw new a.XrplError("getFeeXrp: Could not get base_fee_xrp from server_info");const u=new o.default(s);null==i.load_factor&&(i.load_factor=1);let c=u.times(i.load_factor).times(n);return c=o.default.min(c,e.maxFeeXRP),new o.default(c.toFixed(6)).toString(10)}))}},4871:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return r(this,void 0,void 0,(function*(){return(yield this.request({command:"ledger",ledger_index:"validated"})).result.ledger_index}))}},64374:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(r(83753)),a=i(r(96372)),s=r(74337),u=r(36867);function c(e){return e.sort(((e,t)=>{var r,n;const i=null!==(r=e.quality)&&void 0!==r?r:0,a=null!==(n=t.quality)&&void 0!==n?n:0;return new o.default(i).comparedTo(a)}))}const f=new Set(["limit","ledger_index","ledger_hash","taker"]);t.default=function(e,t,r={}){var i,o;return n(this,void 0,void 0,(function*(){if(Object.keys(r).forEach((e=>{if(!f.has(e))throw new s.ValidationError(`Unexpected option: ${e}`,r)})),r.limit&&"number"!=typeof r.limit)throw new s.ValidationError("limit must be a number",r.limit);if(r.ledger_index&&!("number"==typeof r.ledger_index||"string"==typeof r.ledger_index&&["validated","closed","current"].includes(r.ledger_index)))throw new s.ValidationError('ledger_index must be a number or a string of "validated", "closed", or "current"',r.ledger_index);if(void 0!==r.ledger_hash&&null!==r.ledger_hash&&"string"!=typeof r.ledger_hash)throw new s.ValidationError("ledger_hash must be a string",r.ledger_hash);if(void 0!==r.taker&&"string"!=typeof r.taker)throw new s.ValidationError("taker must be a string",r.taker);const n={command:"book_offers",taker_pays:e,taker_gets:t,ledger_index:null!==(i=r.ledger_index)&&void 0!==i?i:"validated",ledger_hash:null===r.ledger_hash?void 0:r.ledger_hash,limit:null!==(o=r.limit)&&void 0!==o?o:20,taker:r.taker?r.taker:void 0},l=yield this.requestAll(n);n.taker_gets=e,n.taker_pays=t;const d=yield this.requestAll(n),h=[...(0,a.default)(l,(e=>e.result.offers)),...(0,a.default)(d,(e=>e.result.offers))],p=[],y=[];return h.forEach((e=>{0==(e.Flags&u.OfferFlags.lsfSell)?p.push(e):y.push(e)})),{buy:c(p).slice(0,r.limit),sell:c(y).slice(0,r.limit)}}))}},92475:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getOrderbook=t.getLedgerIndex=t.getXrpBalance=t.getBalances=t.autofill=void 0;var a=r(71083);Object.defineProperty(t,"autofill",{enumerable:!0,get:function(){return o(a).default}});var s=r(21701);Object.defineProperty(t,"getBalances",{enumerable:!0,get:function(){return s.getBalances}}),Object.defineProperty(t,"getXrpBalance",{enumerable:!0,get:function(){return s.getXrpBalance}});var u=r(4871);Object.defineProperty(t,"getLedgerIndex",{enumerable:!0,get:function(){return o(u).default}});var c=r(64374);Object.defineProperty(t,"getOrderbook",{enumerable:!0,get:function(){return o(c).default}}),i(r(69134),t),i(r(21796),t)},69134:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.submitAndWait=t.submit=void 0;const i=r(79056),o=r(74337),a=r(17455);function s(e,t,r=!1){return n(this,void 0,void 0,(function*(){if(!c(t))throw new o.ValidationError("Transaction must be signed");const n={command:"submit",tx_blob:"string"==typeof t?t:(0,i.encode)(t),fail_hard:(a=t,"AccountDelete"===("string"==typeof a?(0,i.decode)(a):a).TransactionType||r)};var a;return e.request(n)}))}function u(e,t,r,i){return n(this,void 0,void 0,(function*(){yield function(e){return n(this,void 0,void 0,(function*(){return new Promise((e=>{setTimeout(e,1e3)}))}))}();const a=yield e.getLedgerIndex();if(r<a)throw new o.XrplError(`The latest ledger sequence ${a} is greater than the transaction's LastLedgerSequence (${r}).\nPreliminary result: ${i}`);const s=yield e.request({command:"tx",transaction:t}).catch((o=>n(this,void 0,void 0,(function*(){var n;const a=null===(n=null==o?void 0:o.data)||void 0===n?void 0:n.error;if("txnNotFound"===a)return u(e,t,r,i);throw new Error(`${a} \n Preliminary result: ${i}.\nFull error details: ${String(o)}`)}))));return s.result.validated?s:u(e,t,r,i)}))}function c(e){const t="string"==typeof e?(0,i.decode)(e):e;if("string"==typeof t)return!1;if(null!=t.Signers){const e=t.Signers;for(const t of e)if(null==t.Signer.SigningPubKey||null==t.Signer.TxnSignature)return!1;return!0}return null!=t.SigningPubKey&&null!=t.TxnSignature}function f(e,t,{autofill:r=!0,wallet:a}={}){return n(this,void 0,void 0,(function*(){if(c(t))return t;if(!a)throw new o.ValidationError("Wallet must be provided when submitting an unsigned transaction");let n="string"==typeof t?(0,i.decode)(t):t;return r&&(n=yield e.autofill(n)),a.sign(n).tx_blob}))}t.submit=function(e,t){return n(this,void 0,void 0,(function*(){return s(this,yield f(this,e,t),null==t?void 0:t.failHard)}))},t.submitAndWait=function(e,t){return n(this,void 0,void 0,(function*(){const r=yield f(this,e,t),n=function(e){return("string"==typeof e?(0,i.decode)(e):e).LastLedgerSequence}(r);if(null==n)throw new o.ValidationError("Transaction must contain a LastLedgerSequence value for reliable submission.");const c=yield s(this,r,null==t?void 0:t.failHard);return u(this,a.hashes.hashSignedTx(r),n,c.result.engine_result)}))}},21796:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ensureClassicAddress=void 0;const n=r(79798);t.ensureClassicAddress=function(e){if((0,n.isValidXAddress)(e)){const{classicAddress:t,tag:r}=(0,n.xAddressToClassicAddress)(e);if(!1!==r)throw new Error("This command does not support the use of a tag. Use an address without a tag.");return t}return e}},37620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deriveXAddress=t.deriveAddress=t.deriveKeypair=void 0;const n=r(79798),i=r(43004);Object.defineProperty(t,"deriveKeypair",{enumerable:!0,get:function(){return i.deriveKeypair}}),Object.defineProperty(t,"deriveAddress",{enumerable:!0,get:function(){return i.deriveAddress}}),t.deriveXAddress=function(e){const t=(0,i.deriveAddress)(e.publicKey);return(0,n.classicAddressToXAddress)(t,e.tag,e.test)}},91905:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(83753)),o=n(r(60567)),a=n(r(24865)),s=r(95488);function u(e){const t=Object.keys(e)[0],r=e[t];return Object.assign(Object.assign({},r),{NodeType:t,LedgerEntryType:r.LedgerEntryType,LedgerIndex:r.LedgerIndex,NewFields:r.NewFields,FinalFields:r.FinalFields,PreviousFields:r.PreviousFields})}function c(e){return"string"==typeof e?new i.default(e):new i.default(e.value)}function f(e){var t,r,n;let i=null;return(null===(t=e.NewFields)||void 0===t?void 0:t.Balance)?i=c(e.NewFields.Balance):(null===(r=e.PreviousFields)||void 0===r?void 0:r.Balance)&&(null===(n=e.FinalFields)||void 0===n?void 0:n.Balance)&&(i=c(e.FinalFields.Balance).minus(c(e.PreviousFields.Balance))),null===i||i.isZero()?null:i}function l(e){const t=new i.default(e.balance.value).negated();return{account:e.balance.issuer,balance:{issuer:e.account,currency:e.balance.currency,value:t.toString()}}}t.default=function(e){const t=function(e){return 0===e.AffectedNodes.length?[]:e.AffectedNodes.map(u)}(e).map((e=>{if("AccountRoot"===e.LedgerEntryType){const t=function(e){var t,r,n;const i=f(e);return null===i?null:{account:null!==(r=null===(t=e.FinalFields)||void 0===t?void 0:t.Account)&&void 0!==r?r:null===(n=e.NewFields)||void 0===n?void 0:n.Account,balance:{currency:"XRP",value:(0,s.dropsToXrp)(i).toString()}}}(e);return null==t?[]:[t]}if("RippleState"===e.LedgerEntryType){const t=function(e){var t,r;const n=f(e);if(null===n)return null;const i=null==e.NewFields?e.FinalFields:e.NewFields,o={account:null===(t=null==i?void 0:i.LowLimit)||void 0===t?void 0:t.issuer,balance:{issuer:null===(r=null==i?void 0:i.HighLimit)||void 0===r?void 0:r.issuer,currency:(null==i?void 0:i.Balance).currency,value:n.toString()}};return[o,l(o)]}(e);return null==t?[]:t}return[]}));return function(e){const t=(0,a.default)(e,(e=>e.account));return Object.entries(t).map((([e,t])=>({account:e,balances:t.map((e=>e.balance))})))}((0,o.default)(t))}},64212:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(96372)),o=r(79056),a=r(3378);t.default=function(e){if("string"!=typeof e&&void 0===(null==e?void 0:e.AffectedNodes))throw new TypeError(`Unable to parse the parameter given to getNFTokenID.\n 'meta' must be the metadata from an NFTokenMint transaction. Received ${JSON.stringify(e)} instead.`);const t=function(e){return"string"==typeof e?(0,o.decode)(e):e}(e).AffectedNodes.filter((e=>{var t;return(0,a.isCreatedNode)(e)?"NFTokenPage"===e.CreatedNode.LedgerEntryType:!!(0,a.isModifiedNode)(e)&&"NFTokenPage"===e.ModifiedNode.LedgerEntryType&&Boolean(null===(t=e.ModifiedNode.PreviousFields)||void 0===t?void 0:t.NFTokens)})),r=new Set((0,i.default)(t,(e=>{var t;return((0,a.isModifiedNode)(e)?null===(t=e.ModifiedNode.PreviousFields)||void 0===t?void 0:t.NFTokens:[]).map((e=>e.NFToken.NFTokenID))})).filter((e=>Boolean(e))));return(0,i.default)(t,(e=>{var t,r,n,i,o,a;return(null!==(a=null!==(n=null===(r=null===(t=e.ModifiedNode)||void 0===t?void 0:t.FinalFields)||void 0===r?void 0:r.NFTokens)&&void 0!==n?n:null===(o=null===(i=e.CreatedNode)||void 0===i?void 0:i.NewFields)||void 0===o?void 0:o.NFTokens)&&void 0!==a?a:[]).map((e=>e.NFToken.NFTokenID))})).filter((e=>Boolean(e))).find((e=>!r.has(e)))}},49170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(79056),i=r(3378);t.default=function(e){if("string"!=typeof e&&void 0===(null==e?void 0:e.AffectedNodes))throw new TypeError(`Unable to parse the parameter given to getXChainClaimID.\n 'meta' must be the metadata from an XChainCreateClaimID transaction. Received ${JSON.stringify(e)} instead.`);const t=function(e){return"string"==typeof e?(0,n.decode)(e):e}(e);if(!t.TransactionResult)throw new TypeError("Cannot get XChainClaimID from un-validated transaction");if("tesSUCCESS"===t.TransactionResult)return t.AffectedNodes.find((e=>(0,i.isCreatedNode)(e)&&"XChainOwnedClaimID"===e.CreatedNode.LedgerEntryType)).CreatedNode.NewFields.XChainClaimID}},95963:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.TRANSACTION_ID=1415073280]="TRANSACTION_ID",e[e.TRANSACTION_NODE=1397638144]="TRANSACTION_NODE",e[e.INNER_NODE=1296649728]="INNER_NODE",e[e.LEAF_NODE=1296846336]="LEAF_NODE",e[e.TRANSACTION_SIGN=1398036480]="TRANSACTION_SIGN",e[e.TRANSACTION_SIGN_TESTNET=1937012736]="TRANSACTION_SIGN_TESTNET",e[e.TRANSACTION_MULTISIGN=1397576704]="TRANSACTION_MULTISIGN",e[e.LEDGER=1280791040]="LEDGER"}(r||(r={})),t.default=r},46728:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(74337),o=n(r(95963)),a=n(r(1582)),s=n(r(57663)),u=r(30134),c="0000000000000000000000000000000000000000000000000000000000000000";class f extends u.Node{constructor(e=0){super(),this.leaves={},this.type=u.NodeType.INNER,this.depth=e,this.empty=!0}get hash(){if(this.empty)return c;let e="";for(let t=0;t<=15;t++){const r=this.leaves[t];e+=null==r?c:r.hash}const t=o.default.INNER_NODE.toString(16);return(0,a.default)(t+e)}addItem(e,t){const r=this.getNode(parseInt(e[this.depth],16));if(void 0!==r){if(r instanceof f)r.addItem(e,t);else if(r instanceof s.default){if(r.tag===e)throw new i.XrplError("Tried to add a node to a SHAMap that was already in there.");{const n=new f(this.depth+1);n.addItem(r.tag,r),n.addItem(e,t),this.setNode(parseInt(e[this.depth],16),n)}}}else this.setNode(parseInt(e[this.depth],16),t)}setNode(e,t){if(e<0||e>15)throw new i.XrplError("Invalid slot: slot must be between 0-15.");this.leaves[e]=t,this.empty=!1}getNode(e){if(e<0||e>15)throw new i.XrplError("Invalid slot: slot must be between 0-15.");return this.leaves[e]}}t.default=f},57663:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(74337),o=n(r(95963)),a=n(r(1582)),s=r(30134);class u extends s.Node{constructor(e,t,r){super(),this.tag=e,this.type=r,this.data=t}get hash(){switch(this.type){case s.NodeType.ACCOUNT_STATE:{const e=o.default.LEAF_NODE.toString(16);return(0,a.default)(e+this.data+this.tag)}case s.NodeType.TRANSACTION_NO_METADATA:{const e=o.default.TRANSACTION_ID.toString(16);return(0,a.default)(e+this.data)}case s.NodeType.TRANSACTION_METADATA:{const e=o.default.TRANSACTION_NODE.toString(16);return(0,a.default)(e+this.data+this.tag)}default:throw new i.XrplError("Tried to hash a SHAMap node of unknown type.")}}addItem(e,t){throw new i.XrplError("Cannot call addItem on a LeafNode")}}t.default=u},17418:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=o(r(46728)),s=o(r(57663));i(r(30134),t),t.default=class{constructor(){this.root=new a.default(0)}get hash(){return this.root.hash}addItem(e,t,r){this.root.addItem(e,new s.default(e,t,r))}}},30134:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Node=t.NodeType=void 0,(r=t.NodeType||(t.NodeType={}))[r.INNER=1]="INNER",r[r.TRANSACTION_NO_METADATA=2]="TRANSACTION_NO_METADATA",r[r.TRANSACTION_METADATA=3]="TRANSACTION_METADATA",r[r.ACCOUNT_STATE=4]="ACCOUNT_STATE",t.Node=class{}},62061:function(e,t,r){"use strict";var n=r(18390).Buffer,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hashStateTree=t.hashTxTree=t.hashLedgerHeader=t.hashSignedTx=void 0;const u=s(r(83753)),c=r(79056),f=r(74337),l=s(r(95963)),d=s(r(1582)),h=a(r(17418)),p=16;function y(e,t){return Number(e).toString(p).padStart(2*t,"0")}function g(e){return n.from(e).toString("hex")}function b(e){const t=e.length/2;if(t<=192)return g([t])+e;if(t<=12480){const r=t-193;return g([193+(r>>>8),255&r])+e}if(t<=918744){const r=t-12481;return g([241+(r>>>16),r>>>8&255,255&r])+e}throw new f.XrplError("Variable integer overflow.")}function m(e){let t,r;if("string"==typeof e?(t=e,r=(0,c.decode)(e)):(t=(0,c.encode)(e),r=e),void 0===r.TxnSignature&&void 0===r.Signers)throw new f.ValidationError("The transaction must be signed to hash it.");const n=l.default.TRANSACTION_ID.toString(16).toUpperCase();return(0,d.default)(n.concat(t))}function v(e){const t=l.default.LEDGER.toString(p).toUpperCase()+y(Number(e.ledger_index),4)+(r=e.total_coins,8,new u.default(r).toString(p).padStart(16,"0"))+e.parent_hash+e.transaction_hash+e.account_hash+y(e.parent_close_time,4)+y(e.close_time,4)+y(e.close_time_resolution,1)+y(e.close_flags,1);var r;return(0,d.default)(t)}function w(e){var t;const r=new h.default;for(const n of e){const e=(0,c.encode)(n),i=(0,c.encode)(null!==(t=n.metaData)&&void 0!==t?t:{}),o=m(e),a=b(e)+b(i);r.addItem(o,a,h.NodeType.TRANSACTION_METADATA)}return r.hash}function _(e){const t=new h.default;return e.forEach((e=>{const r=(0,c.encode)(e);t.addItem(e.index,r,h.NodeType.ACCOUNT_STATE)})),t.hash}function S(e,t){const{transaction_hash:r}=e;if(!t.computeTreeHashes)return r;if(null==e.transactions)throw new f.ValidationError("transactions is missing from the ledger");const n=w(e.transactions);if(r!==n)throw new f.ValidationError("transactionHash in header does not match computed hash of transactions",{transactionHashInHeader:r,computedHashOfTransactions:n});return n}function E(e,t){const{account_hash:r}=e;if(!t.computeTreeHashes)return r;if(null==e.accountState)throw new f.ValidationError("accountState is missing from the ledger");const n=_(e.accountState);if(r!==n)throw new f.ValidationError("stateHash in header does not match computed hash of state");return n}t.hashSignedTx=m,t.hashLedgerHeader=v,t.hashTxTree=w,t.hashStateTree=_,t.default=function(e,t={}){const r={transaction_hash:S(e,t),account_hash:E(e,t)};return v(Object.assign(Object.assign({},e),r))}},65570:function(e,t,r){"use strict";var n=r(18390).Buffer,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hashTxTree=t.hashStateTree=t.hashLedger=t.hashSignedTx=t.hashLedgerHeader=t.hashPaymentChannel=t.hashEscrow=t.hashTrustline=t.hashOfferId=t.hashSignerListId=t.hashAccountRoot=t.hashTx=void 0;const u=s(r(83753)),c=r(79798),f=a(r(62061));t.hashLedger=f.default,Object.defineProperty(t,"hashLedgerHeader",{enumerable:!0,get:function(){return f.hashLedgerHeader}}),Object.defineProperty(t,"hashSignedTx",{enumerable:!0,get:function(){return f.hashSignedTx}}),Object.defineProperty(t,"hashTxTree",{enumerable:!0,get:function(){return f.hashTxTree}}),Object.defineProperty(t,"hashStateTree",{enumerable:!0,get:function(){return f.hashStateTree}});const l=s(r(95963)),d=s(r(75265)),h=s(r(1582)),p=16;function y(e){return n.from((0,c.decodeAccountID)(e)).toString("hex")}function g(e){return d.default[e].charCodeAt(0).toString(p).padStart(4,"0")}t.hashTx=function(e){const t=l.default.TRANSACTION_SIGN.toString(p).toUpperCase();return(0,h.default)(t+e)},t.hashAccountRoot=function(e){return(0,h.default)(g("account")+y(e))},t.hashSignerListId=function(e){return(0,h.default)(`${g("signerList")+y(e)}00000000`)},t.hashOfferId=function(e,t){const r=d.default.offer.charCodeAt(0).toString(p).padStart(2,"0"),n=t.toString(p).padStart(8,"0"),i=`00${r}`;return(0,h.default)(i+y(e)+n)},t.hashTrustline=function(e,t,r){const i=y(e),o=y(t),a=new u.default(i,16).isGreaterThan(new u.default(o,16)),s=a?o:i,c=a?i:o,f=g("rippleState");return(0,h.default)(f+s+c+function(e){if(3!==e.length)return e;const t=Array(20).fill(0);return t[12]=255&e.charCodeAt(0),t[13]=255&e.charCodeAt(1),t[14]=255&e.charCodeAt(2),n.from(t).toString("hex")}(r))},t.hashEscrow=function(e,t){return(0,h.default)(g("escrow")+y(e)+t.toString(p).padStart(8,"0"))},t.hashPaymentChannel=function(e,t,r){return(0,h.default)(g("paychan")+y(e)+y(t)+r.toString(p).padStart(8,"0"))}},75265:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={account:"a",dirNode:"d",generatorMap:"g",rippleState:"r",offer:"o",ownerDir:"O",bookDir:"B",contract:"c",skipList:"s",escrow:"u",amendment:"f",feeSettings:"e",ticket:"T",signerList:"S",paychan:"x",check:"C",depositPreauth:"p"}},1582:(e,t,r)=>{"use strict";var n=r(18390).Buffer;Object.defineProperty(t,"__esModule",{value:!0});const i=r(54795);t.default=function(e){return(0,i.createHash)("sha512").update(n.from(e,"hex")).digest("hex").toUpperCase().slice(0,64)}},17455:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getXChainClaimID=t.parseNFTokenID=t.getNFTokenID=t.encodeForSigningClaim=t.encodeForSigning=t.encodeForMultiSigning=t.decode=t.encode=t.decodeXAddress=t.encodeXAddress=t.decodeAccountPublic=t.encodeAccountPublic=t.decodeNodePublic=t.encodeNodePublic=t.decodeAccountID=t.encodeAccountID=t.decodeSeed=t.encodeSeed=t.isValidClassicAddress=t.isValidXAddress=t.xAddressToClassicAddress=t.classicAddressToXAddress=t.convertHexToString=t.convertStringToHex=t.verifyPaymentChannelClaim=t.verifyKeypairSignature=t.signPaymentChannelClaim=t.deriveXAddress=t.deriveAddress=t.deriveKeypair=t.hashes=t.isValidAddress=t.isValidSecret=t.qualityToDecimal=t.transferRateToDecimal=t.decimalToTransferRate=t.percentToTransferRate=t.decimalToQuality=t.percentToQuality=t.unixTimeToRippleTime=t.rippleTimeToUnixTime=t.isoTimeToRippleTime=t.rippleTimeToISOTime=t.hasNextPage=t.xrpToDrops=t.dropsToXrp=t.getBalanceChanges=void 0;const s=r(79798);Object.defineProperty(t,"classicAddressToXAddress",{enumerable:!0,get:function(){return s.classicAddressToXAddress}}),Object.defineProperty(t,"decodeAccountID",{enumerable:!0,get:function(){return s.decodeAccountID}}),Object.defineProperty(t,"decodeAccountPublic",{enumerable:!0,get:function(){return s.decodeAccountPublic}}),Object.defineProperty(t,"decodeNodePublic",{enumerable:!0,get:function(){return s.decodeNodePublic}}),Object.defineProperty(t,"decodeSeed",{enumerable:!0,get:function(){return s.decodeSeed}}),Object.defineProperty(t,"decodeXAddress",{enumerable:!0,get:function(){return s.decodeXAddress}}),Object.defineProperty(t,"encodeAccountID",{enumerable:!0,get:function(){return s.encodeAccountID}}),Object.defineProperty(t,"encodeAccountPublic",{enumerable:!0,get:function(){return s.encodeAccountPublic}}),Object.defineProperty(t,"encodeNodePublic",{enumerable:!0,get:function(){return s.encodeNodePublic}}),Object.defineProperty(t,"encodeSeed",{enumerable:!0,get:function(){return s.encodeSeed}}),Object.defineProperty(t,"encodeXAddress",{enumerable:!0,get:function(){return s.encodeXAddress}}),Object.defineProperty(t,"isValidClassicAddress",{enumerable:!0,get:function(){return s.isValidClassicAddress}}),Object.defineProperty(t,"isValidXAddress",{enumerable:!0,get:function(){return s.isValidXAddress}}),Object.defineProperty(t,"xAddressToClassicAddress",{enumerable:!0,get:function(){return s.xAddressToClassicAddress}});const u=o(r(79056)),c=r(43004);Object.defineProperty(t,"verifyKeypairSignature",{enumerable:!0,get:function(){return c.verify}});const f=r(37620);Object.defineProperty(t,"deriveKeypair",{enumerable:!0,get:function(){return f.deriveKeypair}}),Object.defineProperty(t,"deriveAddress",{enumerable:!0,get:function(){return f.deriveAddress}}),Object.defineProperty(t,"deriveXAddress",{enumerable:!0,get:function(){return f.deriveXAddress}});const l=a(r(91905));t.getBalanceChanges=l.default;const d=a(r(64212));t.getNFTokenID=d.default;const h=a(r(49170));t.getXChainClaimID=h.default;const p=r(65570),y=a(r(39826));t.parseNFTokenID=y.default;const g=r(12234);Object.defineProperty(t,"percentToTransferRate",{enumerable:!0,get:function(){return g.percentToTransferRate}}),Object.defineProperty(t,"decimalToTransferRate",{enumerable:!0,get:function(){return g.decimalToTransferRate}}),Object.defineProperty(t,"transferRateToDecimal",{enumerable:!0,get:function(){return g.transferRateToDecimal}}),Object.defineProperty(t,"percentToQuality",{enumerable:!0,get:function(){return g.percentToQuality}}),Object.defineProperty(t,"decimalToQuality",{enumerable:!0,get:function(){return g.decimalToQuality}}),Object.defineProperty(t,"qualityToDecimal",{enumerable:!0,get:function(){return g.qualityToDecimal}});const b=a(r(48673));t.signPaymentChannelClaim=b.default;const m=r(62850);Object.defineProperty(t,"convertHexToString",{enumerable:!0,get:function(){return m.convertHexToString}}),Object.defineProperty(t,"convertStringToHex",{enumerable:!0,get:function(){return m.convertStringToHex}});const v=r(21063);Object.defineProperty(t,"rippleTimeToISOTime",{enumerable:!0,get:function(){return v.rippleTimeToISOTime}}),Object.defineProperty(t,"isoTimeToRippleTime",{enumerable:!0,get:function(){return v.isoTimeToRippleTime}}),Object.defineProperty(t,"rippleTimeToUnixTime",{enumerable:!0,get:function(){return v.rippleTimeToUnixTime}}),Object.defineProperty(t,"unixTimeToRippleTime",{enumerable:!0,get:function(){return v.unixTimeToRippleTime}});const w=a(r(80563));t.verifyPaymentChannelClaim=w.default;const _=r(95488);Object.defineProperty(t,"xrpToDrops",{enumerable:!0,get:function(){return _.xrpToDrops}}),Object.defineProperty(t,"dropsToXrp",{enumerable:!0,get:function(){return _.dropsToXrp}}),t.isValidSecret=function(e){try{return(0,f.deriveKeypair)(e),!0}catch(e){return!1}},t.encode=function(e){return u.encode(e)},t.encodeForSigning=function(e){return u.encodeForSigning(e)},t.encodeForSigningClaim=function(e){return u.encodeForSigningClaim(e)},t.encodeForMultiSigning=function(e,t){return u.encodeForMultisigning(e,t)},t.decode=function(e){return u.decode(e)},t.isValidAddress=function(e){return(0,s.isValidXAddress)(e)||(0,s.isValidClassicAddress)(e)},t.hasNextPage=function(e){return Boolean(e.result.marker)};const S={hashSignedTx:p.hashSignedTx,hashTx:p.hashTx,hashAccountRoot:p.hashAccountRoot,hashSignerListId:p.hashSignerListId,hashOfferId:p.hashOfferId,hashTrustline:p.hashTrustline,hashTxTree:p.hashTxTree,hashStateTree:p.hashStateTree,hashLedger:p.hashLedger,hashLedgerHeader:p.hashLedgerHeader,hashEscrow:p.hashEscrow,hashPaymentChannel:p.hashPaymentChannel};t.hashes=S},39826:function(e,t,r){"use strict";var n=r(18390).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(r(83753)),a=r(79798),s=r(74337);t.default=function(e){if(64!==e.length)throw new s.XrplError(`Attempting to parse a nftokenID with length ${e.length}\n , but expected a token with length 64`);const t=new o.default(e.substring(48,56),16).toNumber(),r=new o.default(e.substring(56,64),16).toNumber();var i,u;return{NFTokenID:e,Flags:new o.default(e.substring(0,4),16).toNumber(),TransferFee:new o.default(e.substring(4,8),16).toNumber(),Issuer:(0,a.encodeAccountID)(n.from(e.substring(8,48),"hex")),Taxon:(i=t,u=r,(i^384160001*u+2459)%4294967296),Sequence:r}}},12234:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.percentToQuality=t.transferRateToDecimal=t.qualityToDecimal=t.decimalToQuality=t.percentToTransferRate=t.decimalToTransferRate=void 0;const i=n(r(83753)),o=r(74337),a="1000000000";function s(e){if(!e.endsWith("%"))throw new o.ValidationError(`Value ${e} must end with %`);const t=e.split("%").filter((e=>""!==e));if(1!==t.length)throw new o.ValidationError(`Value ${e} contains too many % signs`);return new i.default(t[0]).dividedBy("100").toString(10)}function u(e){const t=new i.default(e).times(a).plus(a);if(t.isLessThan(a)||t.isGreaterThan("2000000000"))throw new o.ValidationError("Decimal value must be between 0 and 1.00.");const r=t.toString(10);if(r===a)return 0;if("NaN"===r)throw new o.ValidationError("Value is not a number");if(r.includes("."))throw new o.ValidationError("Decimal exceeds maximum precision.");return Number(r)}function c(e){const t=new i.default(e).times(a).toString(10);if("NaN"===t)throw new o.ValidationError("Value is not a number");if(t.includes("-"))throw new o.ValidationError("Cannot have negative Quality");if(t===a)return 0;if(t.includes("."))throw new o.ValidationError("Decimal exceeds maximum precision.");return Number(t)}t.decimalToTransferRate=u,t.percentToTransferRate=function(e){return u(s(e))},t.decimalToQuality=c,t.qualityToDecimal=function(e){if(!Number.isInteger(e))throw new o.ValidationError("Quality must be an integer");if(e<0)throw new o.ValidationError("Negative quality not allowed");return 0===e?"1":new i.default(e).dividedBy(a).toString(10)},t.transferRateToDecimal=function(e){if(!Number.isInteger(e))throw new o.ValidationError("Error decoding, transfer Rate must be an integer");if(0===e)return"0";const t=new i.default(e).minus(a).dividedBy(a);if(t.isLessThan(0))throw new o.ValidationError("Error decoding, negative transfer rate");return t.toString(10)},t.percentToQuality=function(e){return c(s(e))}},48673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(79056),i=r(43004),o=r(95488);t.default=function(e,t,r){const a=(0,n.encodeForSigningClaim)({channel:e,amount:(0,o.xrpToDrops)(t)});return(0,i.sign)(a,r)}},62850:(e,t,r)=>{"use strict";var n=r(18390).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.convertStringToHex=t.convertHexToString=void 0,t.convertStringToHex=function(e){return n.from(e,"utf8").toString("hex").toUpperCase()},t.convertHexToString=function(e,t="utf8"){return n.from(e,"hex").toString(t)}},21063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isoTimeToRippleTime=t.rippleTimeToISOTime=t.unixTimeToRippleTime=t.rippleTimeToUnixTime=void 0;const r=946684800;function n(e){return 1e3*(e+r)}function i(e){return Math.round(e/1e3)-r}t.rippleTimeToUnixTime=n,t.unixTimeToRippleTime=i,t.rippleTimeToISOTime=function(e){return new Date(n(e)).toISOString()},t.isoTimeToRippleTime=function(e){return i(("string"==typeof e?new Date(e):e).getTime())}},80563:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(79056),i=r(43004),o=r(95488);t.default=function(e,t,r,a){const s=(0,n.encodeForSigningClaim)({channel:e,amount:(0,o.xrpToDrops)(t)});return(0,i.verify)(s,r,a)}},95488:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.xrpToDrops=t.dropsToXrp=void 0;const i=n(r(83753)),o=r(74337),a=1e6,s=/^-?[0-9.]+$/u;t.dropsToXrp=function(e){const t=new i.default(e).toString(10);if("string"==typeof e&&"NaN"===t)throw new o.ValidationError(`dropsToXrp: invalid value '${e}', should be a BigNumber or string-encoded number.`);if(t.includes("."))throw new o.ValidationError(`dropsToXrp: value '${t}' has too many decimal places.`);if(!s.exec(t))throw new o.ValidationError(`dropsToXrp: failed sanity check - value '${t}', does not match (^-?[0-9]+$).`);return new i.default(t).dividedBy(a).toString(10)},t.xrpToDrops=function(e){const t=new i.default(e).toString(10);if("string"==typeof e&&"NaN"===t)throw new o.ValidationError(`xrpToDrops: invalid value '${e}', should be a BigNumber or string-encoded number.`);if(!s.exec(t))throw new o.ValidationError(`xrpToDrops: failed sanity check - value '${t}', does not match (^-?[0-9.]+$).`);const r=t.split(".");if(r.length>2)throw new o.ValidationError(`xrpToDrops: failed sanity check - value '${t}' has too many decimal points.`);if((r[1]||"0").length>6)throw new o.ValidationError(`xrpToDrops: value '${t}' has too many decimal places.`);return new i.default(t).times(a).integerValue(i.default.ROUND_FLOOR).toString(10)}},33196:()=>{},38087:()=>{},20395:()=>{},53260:()=>{},74854:()=>{},66602:()=>{},30174:()=>{},74546:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},32308:e=>{"use strict";e.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')},49234:e=>{"use strict";e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},40026:e=>{"use strict";e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},39167:e=>{"use strict";e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},23418:e=>{"use strict";e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},40763:e=>{"use strict";e.exports={i8:"6.5.4"}},68675:e=>{"use strict";e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},49792:e=>{"use strict";e.exports=JSON.parse('{"TYPES":{"Done":-1,"Unknown":-2,"NotPresent":0,"UInt16":1,"UInt32":2,"UInt64":3,"Hash128":4,"Hash256":5,"Amount":6,"Blob":7,"AccountID":8,"STObject":14,"STArray":15,"UInt8":16,"Hash160":17,"PathSet":18,"Vector256":19,"UInt96":20,"UInt192":21,"UInt384":22,"UInt512":23,"Issue":24,"XChainBridge":25,"Transaction":10001,"LedgerEntry":10002,"Validation":10003,"Metadata":10004},"LEDGER_ENTRY_TYPES":{"Invalid":-1,"AccountRoot":97,"DirectoryNode":100,"RippleState":114,"Ticket":84,"SignerList":83,"Offer":111,"Bridge":105,"LedgerHashes":104,"Amendments":102,"XChainOwnedClaimID":113,"XChainOwnedCreateAccountClaimID":116,"FeeSettings":115,"Escrow":117,"PayChannel":120,"Check":67,"DepositPreauth":112,"NegativeUNL":78,"NFTokenPage":80,"NFTokenOffer":55,"AMM":121,"Any":-3,"Child":-2,"Nickname":110,"Contract":99,"GeneratorMap":103},"FIELDS":[["Generic",{"nth":0,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["Invalid",{"nth":-1,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["ObjectEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ArrayEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["hash",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["index",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["taker_gets_funded",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["taker_pays_funded",{"nth":259,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["LedgerEntry",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"LedgerEntry"}],["Transaction",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Transaction"}],["Validation",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Validation"}],["Metadata",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Metadata"}],["CloseResolution",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["Method",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TransactionResult",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TickSize",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["UNLModifyDisabling",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["HookResult",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["WasLockingChainSend",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["LedgerEntryType",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransactionType",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["SignerWeight",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransferFee",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TradingFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["DiscountedFee",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["Version",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookStateChangeCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookEmitCount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookExecutionIndex",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookApiVersion",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["NetworkID",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Flags",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SourceTag",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Sequence",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["PreviousTxnLgrSeq",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LedgerSequence",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CloseTime",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ParentCloseTime",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SigningTime",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Expiration",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransferRate",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["WalletSize",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OwnerCount",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["DestinationTag",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityIn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityOut",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityIn",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityOut",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityIn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityOut",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["StampEscrow",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BondAmount",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LoadFee",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OfferSequence",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FirstLedgerSequence",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LastLedgerSequence",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransactionIndex",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OperationLimit",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReferenceFeeUnits",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveBase",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveIncrement",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SetFlag",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ClearFlag",{"nth":34,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerQuorum",{"nth":35,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CancelAfter",{"nth":36,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FinishAfter",{"nth":37,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerListID",{"nth":38,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SettleDelay",{"nth":39,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketCount",{"nth":40,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketSequence",{"nth":41,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["NFTokenTaxon",{"nth":42,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["MintedNFTokens",{"nth":43,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BurnedNFTokens",{"nth":44,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HookStateCount",{"nth":45,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["EmitGeneration",{"nth":46,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["VoteWeight",{"nth":48,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FirstNFTokenSequence",{"nth":50,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["IndexNext",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["IndexPrevious",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BookNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["OwnerNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BaseFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ExchangeRate",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["LowNode",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HighNode",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["DestinationNode",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["Cookie",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ServerVersion",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["NFTokenOfferNode",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmitBurden",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookOn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookInstructionCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookReturnCode",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ReferenceCount",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainClaimID",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainAccountCreateCount",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainAccountClaimCount",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmailHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash128"}],["TakerPaysCurrency",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerPaysIssuer",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsCurrency",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsIssuer",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["LedgerHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ParentHash",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["TransactionHash",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountHash",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousTxnID",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["LedgerIndex",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["WalletLocator",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["RootIndex",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountTxnID",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenID",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitParentTxnID",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitNonce",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitHookHash",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AMMID",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["BookDirectory",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["InvoiceID",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Nickname",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amendment",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Digest",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Channel",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ConsensusHash",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["CheckID",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ValidatedHash",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousPageMin",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NextPageMin",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenBuyOffer",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenSellOffer",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookStateKey",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookHash",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookNamespace",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookSetTxnID",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amount",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Balance",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LimitAmount",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerPays",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerGets",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LowLimit",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["HighLimit",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Fee",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["SendMax",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliverMin",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Amount2",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BidMin",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BidMax",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["MinimumOffer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["RippleEscrow",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliveredAmount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["NFTokenBrokerFee",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BaseFeeDrops",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["ReserveBaseDrops",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["ReserveIncrementDrops",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenOut",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenIn",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["EPrice",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Price",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["SignatureReward",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["MinAccountCreateAmount",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenBalance",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["PublicKey",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MessageKey",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["SigningPubKey",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["TxnSignature",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["URI",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Signature",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["Domain",{"nth":7,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["FundCode",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["RemoveCode",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ExpireCode",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["CreateCode",{"nth":11,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoType",{"nth":12,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoData",{"nth":13,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoFormat",{"nth":14,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Fulfillment",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Condition",{"nth":17,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MasterSignature",{"nth":18,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["UNLModifyValidator",{"nth":19,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToDisable",{"nth":20,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToReEnable",{"nth":21,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookStateData",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookReturnString",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterName",{"nth":24,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterValue",{"nth":25,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Account",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Owner",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Destination",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Issuer",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Authorize",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Unauthorize",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["RegularKey",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["NFTokenMinter",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["EmitCallback",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["HookAccount",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["OtherChainSource",{"nth":18,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["OtherChainDestination",{"nth":19,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["AttestationSignerAccount",{"nth":20,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["AttestationRewardAccount",{"nth":21,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["LockingChainDoor",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["IssuingChainDoor",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Indexes",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Hashes",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Amendments",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["NFTokenOffers",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Paths",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"PathSet"}],["LockingChainIssue",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["IssuingChainIssue",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["Asset",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["Asset2",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["XChainBridge",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"XChainBridge"}],["TransactionMetaData",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["CreatedNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DeletedNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ModifiedNode",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["PreviousFields",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["FinalFields",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NewFields",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["TemplateEntry",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Memo",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["SignerEntry",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NFToken",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmitDetails",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Hook",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Majority",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DisabledValidator",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmittedTxn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookExecution",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookDefinition",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookParameter",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookGrant",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["VoteEntry",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["AuctionSlot",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["AuthAccount",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainClaimProofSig",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainCreateAccountProofSig",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainClaimAttestationCollectionElement",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainCreateAccountAttestationCollectionElement",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signers",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":false,"type":"STArray"}],["SignerEntries",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Template",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Necessary",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Sufficient",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AffectedNodes",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Memos",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["NFTokens",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Hooks",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["VoteSlots",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Majorities",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["DisabledValidators",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookExecutions",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookParameters",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookGrants",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainClaimAttestations",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainCreateAccountAttestations",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AuthAccounts",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}]],"TRANSACTION_RESULTS":{"telLOCAL_ERROR":-399,"telBAD_DOMAIN":-398,"telBAD_PATH_COUNT":-397,"telBAD_PUBLIC_KEY":-396,"telFAILED_PROCESSING":-395,"telINSUF_FEE_P":-394,"telNO_DST_PARTIAL":-393,"telCAN_NOT_QUEUE":-392,"telCAN_NOT_QUEUE_BALANCE":-391,"telCAN_NOT_QUEUE_BLOCKS":-390,"telCAN_NOT_QUEUE_BLOCKED":-389,"telCAN_NOT_QUEUE_FEE":-388,"telCAN_NOT_QUEUE_FULL":-387,"telWRONG_NETWORK":-386,"telREQUIRES_NETWORK_ID":-385,"telNETWORK_ID_MAKES_TX_NON_CANONICAL":-384,"temMALFORMED":-299,"temBAD_AMOUNT":-298,"temBAD_CURRENCY":-297,"temBAD_EXPIRATION":-296,"temBAD_FEE":-295,"temBAD_ISSUER":-294,"temBAD_LIMIT":-293,"temBAD_OFFER":-292,"temBAD_PATH":-291,"temBAD_PATH_LOOP":-290,"temBAD_REGKEY":-289,"temBAD_SEND_XRP_LIMIT":-288,"temBAD_SEND_XRP_MAX":-287,"temBAD_SEND_XRP_NO_DIRECT":-286,"temBAD_SEND_XRP_PARTIAL":-285,"temBAD_SEND_XRP_PATHS":-284,"temBAD_SEQUENCE":-283,"temBAD_SIGNATURE":-282,"temBAD_SRC_ACCOUNT":-281,"temBAD_TRANSFER_RATE":-280,"temDST_IS_SRC":-279,"temDST_NEEDED":-278,"temINVALID":-277,"temINVALID_FLAG":-276,"temREDUNDANT":-275,"temRIPPLE_EMPTY":-274,"temDISABLED":-273,"temBAD_SIGNER":-272,"temBAD_QUORUM":-271,"temBAD_WEIGHT":-270,"temBAD_TICK_SIZE":-269,"temINVALID_ACCOUNT_ID":-268,"temCANNOT_PREAUTH_SELF":-267,"temINVALID_COUNT":-266,"temUNCERTAIN":-265,"temUNKNOWN":-264,"temSEQ_AND_TICKET":-263,"temBAD_NFTOKEN_TRANSFER_FEE":-262,"temBAD_AMM_TOKENS":-261,"temXCHAIN_EQUAL_DOOR_ACCOUNTS":-260,"temXCHAIN_BAD_PROOF":-259,"temXCHAIN_BRIDGE_BAD_ISSUES":-258,"temXCHAIN_BRIDGE_NONDOOR_OWNER":-257,"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT":-256,"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT":-255,"tefFAILURE":-199,"tefALREADY":-198,"tefBAD_ADD_AUTH":-197,"tefBAD_AUTH":-196,"tefBAD_LEDGER":-195,"tefCREATED":-194,"tefEXCEPTION":-193,"tefINTERNAL":-192,"tefNO_AUTH_REQUIRED":-191,"tefPAST_SEQ":-190,"tefWRONG_PRIOR":-189,"tefMASTER_DISABLED":-188,"tefMAX_LEDGER":-187,"tefBAD_SIGNATURE":-186,"tefBAD_QUORUM":-185,"tefNOT_MULTI_SIGNING":-184,"tefBAD_AUTH_MASTER":-183,"tefINVARIANT_FAILED":-182,"tefTOO_BIG":-181,"tefNO_TICKET":-180,"tefNFTOKEN_IS_NOT_TRANSFERABLE":-179,"terRETRY":-99,"terFUNDS_SPENT":-98,"terINSUF_FEE_B":-97,"terNO_ACCOUNT":-96,"terNO_AUTH":-95,"terNO_LINE":-94,"terOWNERS":-93,"terPRE_SEQ":-92,"terLAST":-91,"terNO_RIPPLE":-90,"terQUEUED":-89,"terPRE_TICKET":-88,"terNO_AMM":-87,"terSUBMITTED":-86,"tesSUCCESS":0,"tecCLAIM":100,"tecPATH_PARTIAL":101,"tecUNFUNDED_ADD":102,"tecUNFUNDED_OFFER":103,"tecUNFUNDED_PAYMENT":104,"tecFAILED_PROCESSING":105,"tecDIR_FULL":121,"tecINSUF_RESERVE_LINE":122,"tecINSUF_RESERVE_OFFER":123,"tecNO_DST":124,"tecNO_DST_INSUF_XRP":125,"tecNO_LINE_INSUF_RESERVE":126,"tecNO_LINE_REDUNDANT":127,"tecPATH_DRY":128,"tecUNFUNDED":129,"tecNO_ALTERNATIVE_KEY":130,"tecNO_REGULAR_KEY":131,"tecOWNERS":132,"tecNO_ISSUER":133,"tecNO_AUTH":134,"tecNO_LINE":135,"tecINSUFF_FEE":136,"tecFROZEN":137,"tecNO_TARGET":138,"tecNO_PERMISSION":139,"tecNO_ENTRY":140,"tecINSUFFICIENT_RESERVE":141,"tecNEED_MASTER_KEY":142,"tecDST_TAG_NEEDED":143,"tecINTERNAL":144,"tecOVERSIZE":145,"tecCRYPTOCONDITION_ERROR":146,"tecINVARIANT_FAILED":147,"tecEXPIRED":148,"tecDUPLICATE":149,"tecKILLED":150,"tecHAS_OBLIGATIONS":151,"tecTOO_SOON":152,"tecHOOK_ERROR":153,"tecMAX_SEQUENCE_REACHED":154,"tecNO_SUITABLE_NFTOKEN_PAGE":155,"tecNFTOKEN_BUY_SELL_MISMATCH":156,"tecNFTOKEN_OFFER_TYPE_MISMATCH":157,"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER":158,"tecINSUFFICIENT_FUNDS":159,"tecOBJECT_NOT_FOUND":160,"tecINSUFFICIENT_PAYMENT":161,"tecUNFUNDED_AMM":162,"tecAMM_BALANCE":163,"tecAMM_FAILED":164,"tecAMM_INVALID_TOKENS":165,"tecAMM_EMPTY":166,"tecAMM_NOT_EMPTY":167,"tecAMM_ACCOUNT":168,"tecINCOMPLETE":169,"tecXCHAIN_BAD_TRANSFER_ISSUE":170,"tecXCHAIN_NO_CLAIM_ID":171,"tecXCHAIN_BAD_CLAIM_ID":172,"tecXCHAIN_CLAIM_NO_QUORUM":173,"tecXCHAIN_PROOF_UNKNOWN_KEY":174,"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE":175,"tecXCHAIN_WRONG_CHAIN":176,"tecXCHAIN_REWARD_MISMATCH":177,"tecXCHAIN_NO_SIGNERS_LIST":178,"tecXCHAIN_SENDING_ACCOUNT_MISMATCH":179,"tecXCHAIN_INSUFF_CREATE_AMOUNT":180,"tecXCHAIN_ACCOUNT_CREATE_PAST":181,"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY":182,"tecXCHAIN_PAYMENT_FAILED":183,"tecXCHAIN_SELF_COMMIT":184,"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR":185,"tecXCHAIN_CREATE_ACCOUNT_DISABLED":186},"TRANSACTION_TYPES":{"Invalid":-1,"Payment":0,"EscrowCreate":1,"EscrowFinish":2,"AccountSet":3,"EscrowCancel":4,"SetRegularKey":5,"NickNameSet":6,"OfferCreate":7,"OfferCancel":8,"Contract":9,"TicketCreate":10,"TicketCancel":11,"SignerListSet":12,"PaymentChannelCreate":13,"PaymentChannelFund":14,"PaymentChannelClaim":15,"CheckCreate":16,"CheckCash":17,"CheckCancel":18,"DepositPreauth":19,"TrustSet":20,"AccountDelete":21,"SetHook":22,"NFTokenMint":25,"NFTokenBurn":26,"NFTokenCreateOffer":27,"NFTokenCancelOffer":28,"NFTokenAcceptOffer":29,"Clawback":30,"AMMCreate":35,"AMMDeposit":36,"AMMWithdraw":37,"AMMVote":38,"AMMBid":39,"AMMDelete":40,"XChainCreateClaimID":41,"XChainCommit":42,"XChainClaim":43,"XChainAccountCreateCommit":44,"XChainAddClaimAttestation":45,"XChainAddAccountCreateAttestation":46,"XChainModifyBridge":47,"XChainCreateBridge":48,"EnableAmendment":100,"SetFee":101,"UNLModify":102}}')},51944:e=>{"use strict";e.exports=JSON.parse('["A","ABE","ACE","ACT","AD","ADA","ADD","AGO","AID","AIM","AIR","ALL","ALP","AM","AMY","AN","ANA","AND","ANN","ANT","ANY","APE","APS","APT","ARC","ARE","ARK","ARM","ART","AS","ASH","ASK","AT","ATE","AUG","AUK","AVE","AWE","AWK","AWL","AWN","AX","AYE","BAD","BAG","BAH","BAM","BAN","BAR","BAT","BAY","BE","BED","BEE","BEG","BEN","BET","BEY","BIB","BID","BIG","BIN","BIT","BOB","BOG","BON","BOO","BOP","BOW","BOY","BUB","BUD","BUG","BUM","BUN","BUS","BUT","BUY","BY","BYE","CAB","CAL","CAM","CAN","CAP","CAR","CAT","CAW","COD","COG","COL","CON","COO","COP","COT","COW","COY","CRY","CUB","CUE","CUP","CUR","CUT","DAB","DAD","DAM","DAN","DAR","DAY","DEE","DEL","DEN","DES","DEW","DID","DIE","DIG","DIN","DIP","DO","DOE","DOG","DON","DOT","DOW","DRY","DUB","DUD","DUE","DUG","DUN","EAR","EAT","ED","EEL","EGG","EGO","ELI","ELK","ELM","ELY","EM","END","EST","ETC","EVA","EVE","EWE","EYE","FAD","FAN","FAR","FAT","FAY","FED","FEE","FEW","FIB","FIG","FIN","FIR","FIT","FLO","FLY","FOE","FOG","FOR","FRY","FUM","FUN","FUR","GAB","GAD","GAG","GAL","GAM","GAP","GAS","GAY","GEE","GEL","GEM","GET","GIG","GIL","GIN","GO","GOT","GUM","GUN","GUS","GUT","GUY","GYM","GYP","HA","HAD","HAL","HAM","HAN","HAP","HAS","HAT","HAW","HAY","HE","HEM","HEN","HER","HEW","HEY","HI","HID","HIM","HIP","HIS","HIT","HO","HOB","HOC","HOE","HOG","HOP","HOT","HOW","HUB","HUE","HUG","HUH","HUM","HUT","I","ICY","IDA","IF","IKE","ILL","INK","INN","IO","ION","IQ","IRA","IRE","IRK","IS","IT","ITS","IVY","JAB","JAG","JAM","JAN","JAR","JAW","JAY","JET","JIG","JIM","JO","JOB","JOE","JOG","JOT","JOY","JUG","JUT","KAY","KEG","KEN","KEY","KID","KIM","KIN","KIT","LA","LAB","LAC","LAD","LAG","LAM","LAP","LAW","LAY","LEA","LED","LEE","LEG","LEN","LEO","LET","LEW","LID","LIE","LIN","LIP","LIT","LO","LOB","LOG","LOP","LOS","LOT","LOU","LOW","LOY","LUG","LYE","MA","MAC","MAD","MAE","MAN","MAO","MAP","MAT","MAW","MAY","ME","MEG","MEL","MEN","MET","MEW","MID","MIN","MIT","MOB","MOD","MOE","MOO","MOP","MOS","MOT","MOW","MUD","MUG","MUM","MY","NAB","NAG","NAN","NAP","NAT","NAY","NE","NED","NEE","NET","NEW","NIB","NIL","NIP","NIT","NO","NOB","NOD","NON","NOR","NOT","NOV","NOW","NU","NUN","NUT","O","OAF","OAK","OAR","OAT","ODD","ODE","OF","OFF","OFT","OH","OIL","OK","OLD","ON","ONE","OR","ORB","ORE","ORR","OS","OTT","OUR","OUT","OVA","OW","OWE","OWL","OWN","OX","PA","PAD","PAL","PAM","PAN","PAP","PAR","PAT","PAW","PAY","PEA","PEG","PEN","PEP","PER","PET","PEW","PHI","PI","PIE","PIN","PIT","PLY","PO","POD","POE","POP","POT","POW","PRO","PRY","PUB","PUG","PUN","PUP","PUT","QUO","RAG","RAM","RAN","RAP","RAT","RAW","RAY","REB","RED","REP","RET","RIB","RID","RIG","RIM","RIO","RIP","ROB","ROD","ROE","RON","ROT","ROW","ROY","RUB","RUE","RUG","RUM","RUN","RYE","SAC","SAD","SAG","SAL","SAM","SAN","SAP","SAT","SAW","SAY","SEA","SEC","SEE","SEN","SET","SEW","SHE","SHY","SIN","SIP","SIR","SIS","SIT","SKI","SKY","SLY","SO","SOB","SOD","SON","SOP","SOW","SOY","SPA","SPY","SUB","SUD","SUE","SUM","SUN","SUP","TAB","TAD","TAG","TAN","TAP","TAR","TEA","TED","TEE","TEN","THE","THY","TIC","TIE","TIM","TIN","TIP","TO","TOE","TOG","TOM","TON","TOO","TOP","TOW","TOY","TRY","TUB","TUG","TUM","TUN","TWO","UN","UP","US","USE","VAN","VAT","VET","VIE","WAD","WAG","WAR","WAS","WAY","WE","WEB","WED","WEE","WET","WHO","WHY","WIN","WIT","WOK","WON","WOO","WOW","WRY","WU","YAM","YAP","YAW","YE","YEA","YES","YET","YOU","ABED","ABEL","ABET","ABLE","ABUT","ACHE","ACID","ACME","ACRE","ACTA","ACTS","ADAM","ADDS","ADEN","AFAR","AFRO","AGEE","AHEM","AHOY","AIDA","AIDE","AIDS","AIRY","AJAR","AKIN","ALAN","ALEC","ALGA","ALIA","ALLY","ALMA","ALOE","ALSO","ALTO","ALUM","ALVA","AMEN","AMES","AMID","AMMO","AMOK","AMOS","AMRA","ANDY","ANEW","ANNA","ANNE","ANTE","ANTI","AQUA","ARAB","ARCH","AREA","ARGO","ARID","ARMY","ARTS","ARTY","ASIA","ASKS","ATOM","AUNT","AURA","AUTO","AVER","AVID","AVIS","AVON","AVOW","AWAY","AWRY","BABE","BABY","BACH","BACK","BADE","BAIL","BAIT","BAKE","BALD","BALE","BALI","BALK","BALL","BALM","BAND","BANE","BANG","BANK","BARB","BARD","BARE","BARK","BARN","BARR","BASE","BASH","BASK","BASS","BATE","BATH","BAWD","BAWL","BEAD","BEAK","BEAM","BEAN","BEAR","BEAT","BEAU","BECK","BEEF","BEEN","BEER","BEET","BELA","BELL","BELT","BEND","BENT","BERG","BERN","BERT","BESS","BEST","BETA","BETH","BHOY","BIAS","BIDE","BIEN","BILE","BILK","BILL","BIND","BING","BIRD","BITE","BITS","BLAB","BLAT","BLED","BLEW","BLOB","BLOC","BLOT","BLOW","BLUE","BLUM","BLUR","BOAR","BOAT","BOCA","BOCK","BODE","BODY","BOGY","BOHR","BOIL","BOLD","BOLO","BOLT","BOMB","BONA","BOND","BONE","BONG","BONN","BONY","BOOK","BOOM","BOON","BOOT","BORE","BORG","BORN","BOSE","BOSS","BOTH","BOUT","BOWL","BOYD","BRAD","BRAE","BRAG","BRAN","BRAY","BRED","BREW","BRIG","BRIM","BROW","BUCK","BUDD","BUFF","BULB","BULK","BULL","BUNK","BUNT","BUOY","BURG","BURL","BURN","BURR","BURT","BURY","BUSH","BUSS","BUST","BUSY","BYTE","CADY","CAFE","CAGE","CAIN","CAKE","CALF","CALL","CALM","CAME","CANE","CANT","CARD","CARE","CARL","CARR","CART","CASE","CASH","CASK","CAST","CAVE","CEIL","CELL","CENT","CERN","CHAD","CHAR","CHAT","CHAW","CHEF","CHEN","CHEW","CHIC","CHIN","CHOU","CHOW","CHUB","CHUG","CHUM","CITE","CITY","CLAD","CLAM","CLAN","CLAW","CLAY","CLOD","CLOG","CLOT","CLUB","CLUE","COAL","COAT","COCA","COCK","COCO","CODA","CODE","CODY","COED","COIL","COIN","COKE","COLA","COLD","COLT","COMA","COMB","COME","COOK","COOL","COON","COOT","CORD","CORE","CORK","CORN","COST","COVE","COWL","CRAB","CRAG","CRAM","CRAY","CREW","CRIB","CROW","CRUD","CUBA","CUBE","CUFF","CULL","CULT","CUNY","CURB","CURD","CURE","CURL","CURT","CUTS","DADE","DALE","DAME","DANA","DANE","DANG","DANK","DARE","DARK","DARN","DART","DASH","DATA","DATE","DAVE","DAVY","DAWN","DAYS","DEAD","DEAF","DEAL","DEAN","DEAR","DEBT","DECK","DEED","DEEM","DEER","DEFT","DEFY","DELL","DENT","DENY","DESK","DIAL","DICE","DIED","DIET","DIME","DINE","DING","DINT","DIRE","DIRT","DISC","DISH","DISK","DIVE","DOCK","DOES","DOLE","DOLL","DOLT","DOME","DONE","DOOM","DOOR","DORA","DOSE","DOTE","DOUG","DOUR","DOVE","DOWN","DRAB","DRAG","DRAM","DRAW","DREW","DRUB","DRUG","DRUM","DUAL","DUCK","DUCT","DUEL","DUET","DUKE","DULL","DUMB","DUNE","DUNK","DUSK","DUST","DUTY","EACH","EARL","EARN","EASE","EAST","EASY","EBEN","ECHO","EDDY","EDEN","EDGE","EDGY","EDIT","EDNA","EGAN","ELAN","ELBA","ELLA","ELSE","EMIL","EMIT","EMMA","ENDS","ERIC","EROS","EVEN","EVER","EVIL","EYED","FACE","FACT","FADE","FAIL","FAIN","FAIR","FAKE","FALL","FAME","FANG","FARM","FAST","FATE","FAWN","FEAR","FEAT","FEED","FEEL","FEET","FELL","FELT","FEND","FERN","FEST","FEUD","FIEF","FIGS","FILE","FILL","FILM","FIND","FINE","FINK","FIRE","FIRM","FISH","FISK","FIST","FITS","FIVE","FLAG","FLAK","FLAM","FLAT","FLAW","FLEA","FLED","FLEW","FLIT","FLOC","FLOG","FLOW","FLUB","FLUE","FOAL","FOAM","FOGY","FOIL","FOLD","FOLK","FOND","FONT","FOOD","FOOL","FOOT","FORD","FORE","FORK","FORM","FORT","FOSS","FOUL","FOUR","FOWL","FRAU","FRAY","FRED","FREE","FRET","FREY","FROG","FROM","FUEL","FULL","FUME","FUND","FUNK","FURY","FUSE","FUSS","GAFF","GAGE","GAIL","GAIN","GAIT","GALA","GALE","GALL","GALT","GAME","GANG","GARB","GARY","GASH","GATE","GAUL","GAUR","GAVE","GAWK","GEAR","GELD","GENE","GENT","GERM","GETS","GIBE","GIFT","GILD","GILL","GILT","GINA","GIRD","GIRL","GIST","GIVE","GLAD","GLEE","GLEN","GLIB","GLOB","GLOM","GLOW","GLUE","GLUM","GLUT","GOAD","GOAL","GOAT","GOER","GOES","GOLD","GOLF","GONE","GONG","GOOD","GOOF","GORE","GORY","GOSH","GOUT","GOWN","GRAB","GRAD","GRAY","GREG","GREW","GREY","GRID","GRIM","GRIN","GRIT","GROW","GRUB","GULF","GULL","GUNK","GURU","GUSH","GUST","GWEN","GWYN","HAAG","HAAS","HACK","HAIL","HAIR","HALE","HALF","HALL","HALO","HALT","HAND","HANG","HANK","HANS","HARD","HARK","HARM","HART","HASH","HAST","HATE","HATH","HAUL","HAVE","HAWK","HAYS","HEAD","HEAL","HEAR","HEAT","HEBE","HECK","HEED","HEEL","HEFT","HELD","HELL","HELM","HERB","HERD","HERE","HERO","HERS","HESS","HEWN","HICK","HIDE","HIGH","HIKE","HILL","HILT","HIND","HINT","HIRE","HISS","HIVE","HOBO","HOCK","HOFF","HOLD","HOLE","HOLM","HOLT","HOME","HONE","HONK","HOOD","HOOF","HOOK","HOOT","HORN","HOSE","HOST","HOUR","HOVE","HOWE","HOWL","HOYT","HUCK","HUED","HUFF","HUGE","HUGH","HUGO","HULK","HULL","HUNK","HUNT","HURD","HURL","HURT","HUSH","HYDE","HYMN","IBIS","ICON","IDEA","IDLE","IFFY","INCA","INCH","INTO","IONS","IOTA","IOWA","IRIS","IRMA","IRON","ISLE","ITCH","ITEM","IVAN","JACK","JADE","JAIL","JAKE","JANE","JAVA","JEAN","JEFF","JERK","JESS","JEST","JIBE","JILL","JILT","JIVE","JOAN","JOBS","JOCK","JOEL","JOEY","JOHN","JOIN","JOKE","JOLT","JOVE","JUDD","JUDE","JUDO","JUDY","JUJU","JUKE","JULY","JUNE","JUNK","JUNO","JURY","JUST","JUTE","KAHN","KALE","KANE","KANT","KARL","KATE","KEEL","KEEN","KENO","KENT","KERN","KERR","KEYS","KICK","KILL","KIND","KING","KIRK","KISS","KITE","KLAN","KNEE","KNEW","KNIT","KNOB","KNOT","KNOW","KOCH","KONG","KUDO","KURD","KURT","KYLE","LACE","LACK","LACY","LADY","LAID","LAIN","LAIR","LAKE","LAMB","LAME","LAND","LANE","LANG","LARD","LARK","LASS","LAST","LATE","LAUD","LAVA","LAWN","LAWS","LAYS","LEAD","LEAF","LEAK","LEAN","LEAR","LEEK","LEER","LEFT","LEND","LENS","LENT","LEON","LESK","LESS","LEST","LETS","LIAR","LICE","LICK","LIED","LIEN","LIES","LIEU","LIFE","LIFT","LIKE","LILA","LILT","LILY","LIMA","LIMB","LIME","LIND","LINE","LINK","LINT","LION","LISA","LIST","LIVE","LOAD","LOAF","LOAM","LOAN","LOCK","LOFT","LOGE","LOIS","LOLA","LONE","LONG","LOOK","LOON","LOOT","LORD","LORE","LOSE","LOSS","LOST","LOUD","LOVE","LOWE","LUCK","LUCY","LUGE","LUKE","LULU","LUND","LUNG","LURA","LURE","LURK","LUSH","LUST","LYLE","LYNN","LYON","LYRA","MACE","MADE","MAGI","MAID","MAIL","MAIN","MAKE","MALE","MALI","MALL","MALT","MANA","MANN","MANY","MARC","MARE","MARK","MARS","MART","MARY","MASH","MASK","MASS","MAST","MATE","MATH","MAUL","MAYO","MEAD","MEAL","MEAN","MEAT","MEEK","MEET","MELD","MELT","MEMO","MEND","MENU","MERT","MESH","MESS","MICE","MIKE","MILD","MILE","MILK","MILL","MILT","MIMI","MIND","MINE","MINI","MINK","MINT","MIRE","MISS","MIST","MITE","MITT","MOAN","MOAT","MOCK","MODE","MOLD","MOLE","MOLL","MOLT","MONA","MONK","MONT","MOOD","MOON","MOOR","MOOT","MORE","MORN","MORT","MOSS","MOST","MOTH","MOVE","MUCH","MUCK","MUDD","MUFF","MULE","MULL","MURK","MUSH","MUST","MUTE","MUTT","MYRA","MYTH","NAGY","NAIL","NAIR","NAME","NARY","NASH","NAVE","NAVY","NEAL","NEAR","NEAT","NECK","NEED","NEIL","NELL","NEON","NERO","NESS","NEST","NEWS","NEWT","NIBS","NICE","NICK","NILE","NINA","NINE","NOAH","NODE","NOEL","NOLL","NONE","NOOK","NOON","NORM","NOSE","NOTE","NOUN","NOVA","NUDE","NULL","NUMB","OATH","OBEY","OBOE","ODIN","OHIO","OILY","OINT","OKAY","OLAF","OLDY","OLGA","OLIN","OMAN","OMEN","OMIT","ONCE","ONES","ONLY","ONTO","ONUS","ORAL","ORGY","OSLO","OTIS","OTTO","OUCH","OUST","OUTS","OVAL","OVEN","OVER","OWLY","OWNS","QUAD","QUIT","QUOD","RACE","RACK","RACY","RAFT","RAGE","RAID","RAIL","RAIN","RAKE","RANK","RANT","RARE","RASH","RATE","RAVE","RAYS","READ","REAL","REAM","REAR","RECK","REED","REEF","REEK","REEL","REID","REIN","RENA","REND","RENT","REST","RICE","RICH","RICK","RIDE","RIFT","RILL","RIME","RING","RINK","RISE","RISK","RITE","ROAD","ROAM","ROAR","ROBE","ROCK","RODE","ROIL","ROLL","ROME","ROOD","ROOF","ROOK","ROOM","ROOT","ROSA","ROSE","ROSS","ROSY","ROTH","ROUT","ROVE","ROWE","ROWS","RUBE","RUBY","RUDE","RUDY","RUIN","RULE","RUNG","RUNS","RUNT","RUSE","RUSH","RUSK","RUSS","RUST","RUTH","SACK","SAFE","SAGE","SAID","SAIL","SALE","SALK","SALT","SAME","SAND","SANE","SANG","SANK","SARA","SAUL","SAVE","SAYS","SCAN","SCAR","SCAT","SCOT","SEAL","SEAM","SEAR","SEAT","SEED","SEEK","SEEM","SEEN","SEES","SELF","SELL","SEND","SENT","SETS","SEWN","SHAG","SHAM","SHAW","SHAY","SHED","SHIM","SHIN","SHOD","SHOE","SHOT","SHOW","SHUN","SHUT","SICK","SIDE","SIFT","SIGH","SIGN","SILK","SILL","SILO","SILT","SINE","SING","SINK","SIRE","SITE","SITS","SITU","SKAT","SKEW","SKID","SKIM","SKIN","SKIT","SLAB","SLAM","SLAT","SLAY","SLED","SLEW","SLID","SLIM","SLIT","SLOB","SLOG","SLOT","SLOW","SLUG","SLUM","SLUR","SMOG","SMUG","SNAG","SNOB","SNOW","SNUB","SNUG","SOAK","SOAR","SOCK","SODA","SOFA","SOFT","SOIL","SOLD","SOME","SONG","SOON","SOOT","SORE","SORT","SOUL","SOUR","SOWN","STAB","STAG","STAN","STAR","STAY","STEM","STEW","STIR","STOW","STUB","STUN","SUCH","SUDS","SUIT","SULK","SUMS","SUNG","SUNK","SURE","SURF","SWAB","SWAG","SWAM","SWAN","SWAT","SWAY","SWIM","SWUM","TACK","TACT","TAIL","TAKE","TALE","TALK","TALL","TANK","TASK","TATE","TAUT","TEAL","TEAM","TEAR","TECH","TEEM","TEEN","TEET","TELL","TEND","TENT","TERM","TERN","TESS","TEST","THAN","THAT","THEE","THEM","THEN","THEY","THIN","THIS","THUD","THUG","TICK","TIDE","TIDY","TIED","TIER","TILE","TILL","TILT","TIME","TINA","TINE","TINT","TINY","TIRE","TOAD","TOGO","TOIL","TOLD","TOLL","TONE","TONG","TONY","TOOK","TOOL","TOOT","TORE","TORN","TOTE","TOUR","TOUT","TOWN","TRAG","TRAM","TRAY","TREE","TREK","TRIG","TRIM","TRIO","TROD","TROT","TROY","TRUE","TUBA","TUBE","TUCK","TUFT","TUNA","TUNE","TUNG","TURF","TURN","TUSK","TWIG","TWIN","TWIT","ULAN","UNIT","URGE","USED","USER","USES","UTAH","VAIL","VAIN","VALE","VARY","VASE","VAST","VEAL","VEDA","VEIL","VEIN","VEND","VENT","VERB","VERY","VETO","VICE","VIEW","VINE","VISE","VOID","VOLT","VOTE","WACK","WADE","WAGE","WAIL","WAIT","WAKE","WALE","WALK","WALL","WALT","WAND","WANE","WANG","WANT","WARD","WARM","WARN","WART","WASH","WAST","WATS","WATT","WAVE","WAVY","WAYS","WEAK","WEAL","WEAN","WEAR","WEED","WEEK","WEIR","WELD","WELL","WELT","WENT","WERE","WERT","WEST","WHAM","WHAT","WHEE","WHEN","WHET","WHOA","WHOM","WICK","WIFE","WILD","WILL","WIND","WINE","WING","WINK","WINO","WIRE","WISE","WISH","WITH","WOLF","WONT","WOOD","WOOL","WORD","WORE","WORK","WORM","WORN","WOVE","WRIT","WYNN","YALE","YANG","YANK","YARD","YARN","YAWL","YAWN","YEAH","YEAR","YELL","YOGA","YOKE"]')}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n=r(20066);xrpl=n})();
2
+ var xrpl;(()=>{var e={5:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePaymentChannelFund=void 0;const r=n(255),i=n(2794);t.validatePaymentChannelFund=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.Channel)throw new r.ValidationError("PaymentChannelFund: missing Channel");if("string"!=typeof e.Channel)throw new r.ValidationError("PaymentChannelFund: Channel must be a string");if(void 0===e.Amount)throw new r.ValidationError("PaymentChannelFund: missing Amount");if("string"!=typeof e.Amount)throw new r.ValidationError("PaymentChannelFund: Amount must be a string");if(void 0!==e.Expiration&&"number"!=typeof e.Expiration)throw new r.ValidationError("PaymentChannelFund: Expiration must be a number")}},24:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash128=void 0;const r=n(3776),i=n(619);class o extends r.Hash{constructor(e){e&&0===e.byteLength&&(e=o.ZERO_128.bytes),super(null!=e?e:o.ZERO_128.bytes)}toHex(){const e=(0,i.bytesToHex)(this.toBytes());return/^0+$/.exec(e)?"":e}}t.Hash128=o,o.width=16,o.ZERO_128=new o(new Uint8Array(o.width))},99:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHex=t.hasFlag=t.isFlagEnabled=t.onlyHasFields=t.INTEGER_SANITY_CHECK=void 0;const n=/^[0-9A-Fa-f]+$/u;function r(e,t){return(BigInt(t)&BigInt(e))===BigInt(t)}t.INTEGER_SANITY_CHECK=/^[0-9]+$/u,t.onlyHasFields=function(e,t){return Object.keys(e).every((e=>t.includes(e)))},t.isFlagEnabled=r,t.hasFlag=function(e,t,n){return null!=e.Flags&&("number"==typeof e.Flags?r(e.Flags,t):!0===e.Flags[n])},t.isHex=function(e){return n.test(e)}},168:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Node=t.NodeType=void 0,function(e){e[e.INNER=1]="INNER",e[e.TRANSACTION_NO_METADATA=2]="TRANSACTION_NO_METADATA",e[e.TRANSACTION_METADATA=3]="TRANSACTION_METADATA",e[e.ACCOUNT_STATE=4]="ACCOUNT_STATE"}(n||(t.NodeType=n={})),t.Node=class{}},248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateCheckCash=void 0;const r=n(255),i=n(2794);t.validateCheckCash=function(e){if((0,i.validateBaseTransaction)(e),null==e.Amount&&null==e.DeliverMin)throw new r.ValidationError("CheckCash: must have either Amount or DeliverMin");if(null!=e.Amount&&null!=e.DeliverMin)throw new r.ValidationError("CheckCash: cannot have both Amount and DeliverMin");if(null!=e.Amount&&void 0!==e.Amount&&!(0,i.isAmount)(e.Amount))throw new r.ValidationError("CheckCash: invalid Amount");if(null!=e.DeliverMin&&void 0!==e.DeliverMin&&!(0,i.isAmount)(e.DeliverMin))throw new r.ValidationError("CheckCash: invalid DeliverMin");if(void 0!==e.CheckID&&"string"!=typeof e.CheckID)throw new r.ValidationError("CheckCash: invalid CheckID")}},255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XRPLFaucetError=t.NotFoundError=t.ValidationError=t.ResponseFormatError=t.TimeoutError=t.RippledNotInitializedError=t.DisconnectedError=t.NotConnectedError=t.RippledError=t.ConnectionError=t.UnexpectedError=t.XrplError=void 0;class n extends Error{constructor(e="",t){super(e),this.name=this.constructor.name,this.message=e,this.data=t,null!=Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(){let e=`[${this.name}(${this.message}`;return this.data&&(e+=`, ${JSON.stringify(this.data)}`),e+=")]",e}inspect(){return this.toString()}}t.XrplError=n,t.RippledError=class extends n{},t.UnexpectedError=class extends n{};class r extends n{}t.ConnectionError=r,t.NotConnectedError=class extends r{},t.DisconnectedError=class extends r{},t.RippledNotInitializedError=class extends r{},t.TimeoutError=class extends r{},t.ResponseFormatError=class extends r{},t.ValidationError=class extends n{},t.XRPLFaucetError=class extends n{},t.NotFoundError=class extends n{constructor(e="Not found"){super(e)}}},376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5620),i=n(5442),o=n(2722);t.default=function(e,t,n){const s=(0,r.encodeForSigningClaim)({channel:e,amount:(0,o.xrpToDrops)(t)});return(0,i.sign)(s,n)}},390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateCredentialAccept=void 0;const r=n(2794);t.validateCredentialAccept=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"Account",r.isString),(0,r.validateRequiredField)(e,"Issuer",r.isString),(0,r.validateCredentialType)(e)}},392:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5620),i=n(5442),o=n(2722);t.default=function(e,t,n,s){const a=(0,r.encodeForSigningClaim)({channel:e,amount:(0,o.xrpToDrops)(t)});return(0,i.verify)(a,n,s)}},401:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UInt8=void 0;const r=n(3328),i=n(619),o=n(5517);class s extends r.UInt{constructor(e){super(null!=e?e:s.defaultUInt8.bytes)}static fromParser(e){return new s(e.read(s.width))}static from(e){if(e instanceof s)return e;if("number"==typeof e){s.checkUintRange(e,0,255);const t=new Uint8Array(s.width);return(0,o.writeUInt8)(t,e,0),new s(t)}throw new Error("Cannot construct UInt8 from given value")}valueOf(){return parseInt((0,i.bytesToHex)(this.bytes),16)}}t.UInt8=s,s.width=1,s.defaultUInt8=new s(new Uint8Array(s.width))},425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainCreateClaimID=void 0;const r=n(2794);t.validateXChainCreateClaimID=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"XChainBridge",r.isXChainBridge),(0,r.validateRequiredField)(e,"SignatureReward",r.isAmount),(0,r.validateRequiredField)(e,"OtherChainSource",r.isAccount)}},534:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(255),o=r(n(9373)),s=r(n(2530)),a=r(n(5644)),c=n(168),l="0000000000000000000000000000000000000000000000000000000000000000";class u extends c.Node{constructor(e=0){super(),this.leaves={},this.type=c.NodeType.INNER,this.depth=e,this.empty=!0}get hash(){if(this.empty)return l;let e="";for(let t=0;t<=15;t++){const n=this.leaves[t];e+=null==n?l:n.hash}const t=o.default.INNER_NODE.toString(16);return(0,s.default)(t+e)}addItem(e,t){const n=this.getNode(parseInt(e[this.depth],16));if(void 0!==n){if(n instanceof u)n.addItem(e,t);else if(n instanceof a.default){if(n.tag===e)throw new i.XrplError("Tried to add a node to a SHAMap that was already in there.");{const r=new u(this.depth+1);r.addItem(n.tag,n),r.addItem(e,t),this.setNode(parseInt(e[this.depth],16),r)}}}else this.setNode(parseInt(e[this.depth],16),t)}setNode(e,t){if(e<0||e>15)throw new i.XrplError("Invalid slot: slot must be between 0-15.");this.leaves[e]=t,this.empty=!1}getNode(e){if(e<0||e>15)throw new i.XrplError("Invalid slot: slot must be between 0-15.");return this.leaves[e]}}t.default=u},548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateMPTokenIssuanceSet=t.MPTokenIssuanceSetFlags=void 0;const r=n(255),i=n(99),o=n(2794);var s;!function(e){e[e.tfMPTLock=1]="tfMPTLock",e[e.tfMPTUnlock=2]="tfMPTUnlock"}(s||(t.MPTokenIssuanceSetFlags=s={})),t.validateMPTokenIssuanceSet=function(e){var t,n,a;(0,o.validateBaseTransaction)(e),(0,o.validateRequiredField)(e,"MPTokenIssuanceID",o.isString),(0,o.validateOptionalField)(e,"Holder",o.isAccount);const c=null!==(t=e.Flags)&&void 0!==t?t:0,l="number"==typeof c?(0,i.isFlagEnabled)(c,s.tfMPTLock):null!==(n=c.tfMPTLock)&&void 0!==n&&n,u="number"==typeof c?(0,i.isFlagEnabled)(c,s.tfMPTUnlock):null!==(a=c.tfMPTUnlock)&&void 0!==a&&a;if(l&&u)throw new r.ValidationError("MPTokenIssuanceSet: flag conflict")}},602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateDepositPreauth=void 0;const r=n(255),i=n(2794);t.validateDepositPreauth=function(e){if((0,i.validateBaseTransaction)(e),function(e){if(1!==["Authorize","Unauthorize","AuthorizeCredentials","UnauthorizeCredentials"].filter((t=>void 0!==e[t])).length)throw new r.ValidationError("DepositPreauth: Requires exactly one field of the following: Authorize, Unauthorize, AuthorizeCredentials, UnauthorizeCredentials.")}(e),void 0!==e.Authorize){if("string"!=typeof e.Authorize)throw new r.ValidationError("DepositPreauth: Authorize must be a string");if(e.Account===e.Authorize)throw new r.ValidationError("DepositPreauth: Account can't preauthorize its own address")}else if(void 0!==e.Unauthorize){if("string"!=typeof e.Unauthorize)throw new r.ValidationError("DepositPreauth: Unauthorize must be a string");if(e.Account===e.Unauthorize)throw new r.ValidationError("DepositPreauth: Account can't unauthorize its own address")}else void 0!==e.AuthorizeCredentials?(0,i.validateCredentialsList)(e.AuthorizeCredentials,e.TransactionType,!1,i.MAX_AUTHORIZED_CREDENTIALS):void 0!==e.UnauthorizeCredentials&&(0,i.validateCredentialsList)(e.UnauthorizeCredentials,e.TransactionType,!1,i.MAX_AUTHORIZED_CREDENTIALS)}},619:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.stringToHex=t.hexToString=t.hexToBytes=t.bytesToHex=void 0;const o=n(5492),s=n(1602);t.bytesToHex=e=>(0,o.bytesToHex)(e instanceof Uint8Array?e:Uint8Array.from(e)).toUpperCase(),t.hexToBytes=e=>{const t=e.length,n=new Uint8Array(t/2);if(!s.HEX_REGEX.test(e))throw new Error("Invalid hex string");for(let t=0;t<n.length;t++){const r=2*t,i=e.slice(r,r+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw new Error("Invalid byte sequence");n[t]=o}return n},t.hexToString=(e,n="utf8")=>new TextDecoder(n).decode((0,t.hexToBytes)(e)),t.stringToHex=e=>(0,t.bytesToHex)((new TextEncoder).encode(e)),t.randomBytes=o.randomBytes,i(n(1602),t)},667:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDecodedTransaction=t.addressToBigNumber=t.NUM_BITS_IN_HEX=t.compareSigners=void 0;const i=n(619),o=r(n(735)),s=n(6333),a=n(5620);function c(e){const n=(0,i.bytesToHex)((0,s.decodeAccountID)(e));return new o.default(n,t.NUM_BITS_IN_HEX)}t.compareSigners=function(e,t){return c(e.Account).comparedTo(c(t.Account))},t.NUM_BITS_IN_HEX=16,t.addressToBigNumber=c,t.getDecodedTransaction=function(e){return"object"==typeof e?(0,a.decode)((0,a.encode)(e)):(0,a.decode)(e)}},707:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainCreateBridge=void 0;const r=n(2794);t.validateXChainCreateBridge=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"XChainBridge",r.isXChainBridge),(0,r.validateRequiredField)(e,"SignatureReward",r.isAmount),(0,r.validateOptionalField)(e,"MinAccountCreateAmount",r.isAmount)}},714:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA384=t.SHA512_256=t.SHA512_224=t.SHA512=void 0;const r=n(1998),i=n(1533),o=n(9987),[s,a]=(()=>i.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))))(),c=new Uint32Array(80),l=new Uint32Array(80);class u extends r.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:o,Dh:s,Dl:a,Eh:c,El:l,Fh:u,Fl:d,Gh:f,Gl:h,Hh:g,Hl:p}=this;return[e,t,n,r,i,o,s,a,c,l,u,d,f,h,g,p]}set(e,t,n,r,i,o,s,a,c,l,u,d,f,h,g,p){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|f,this.Gl=0|h,this.Hh=0|g,this.Hl=0|p}process(e,t){for(let n=0;n<16;n++,t+=4)c[n]=e.getUint32(t),l[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|c[e-15],n=0|l[e-15],r=i.default.rotrSH(t,n,1)^i.default.rotrSH(t,n,8)^i.default.shrSH(t,n,7),o=i.default.rotrSL(t,n,1)^i.default.rotrSL(t,n,8)^i.default.shrSL(t,n,7),s=0|c[e-2],a=0|l[e-2],u=i.default.rotrSH(s,a,19)^i.default.rotrBH(s,a,61)^i.default.shrSH(s,a,6),d=i.default.rotrSL(s,a,19)^i.default.rotrBL(s,a,61)^i.default.shrSL(s,a,6),f=i.default.add4L(o,d,l[e-7],l[e-16]),h=i.default.add4H(f,r,u,c[e-7],c[e-16]);c[e]=0|h,l[e]=0|f}let{Ah:n,Al:r,Bh:o,Bl:u,Ch:d,Cl:f,Dh:h,Dl:g,Eh:p,El:y,Fh:m,Fl:A,Gh:E,Gl:b,Hh:w,Hl:S}=this;for(let e=0;e<80;e++){const t=i.default.rotrSH(p,y,14)^i.default.rotrSH(p,y,18)^i.default.rotrBH(p,y,41),v=i.default.rotrSL(p,y,14)^i.default.rotrSL(p,y,18)^i.default.rotrBL(p,y,41),T=p&m^~p&E,O=y&A^~y&b,I=i.default.add5L(S,v,O,a[e],l[e]),_=i.default.add5H(I,w,t,T,s[e],c[e]),L=0|I,C=i.default.rotrSH(n,r,28)^i.default.rotrBH(n,r,34)^i.default.rotrBH(n,r,39),N=i.default.rotrSL(n,r,28)^i.default.rotrBL(n,r,34)^i.default.rotrBL(n,r,39),B=n&o^n&d^o&d,F=r&u^r&f^u&f;w=0|E,S=0|b,E=0|m,b=0|A,m=0|p,A=0|y,({h:p,l:y}=i.default.add(0|h,0|g,0|_,0|L)),h=0|d,g=0|f,d=0|o,f=0|u,o=0|n,u=0|r;const D=i.default.add3L(L,N,F);n=i.default.add3H(D,_,C,B),r=0|D}({h:n,l:r}=i.default.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:o,l:u}=i.default.add(0|this.Bh,0|this.Bl,0|o,0|u)),({h:d,l:f}=i.default.add(0|this.Ch,0|this.Cl,0|d,0|f)),({h,l:g}=i.default.add(0|this.Dh,0|this.Dl,0|h,0|g)),({h:p,l:y}=i.default.add(0|this.Eh,0|this.El,0|p,0|y)),({h:m,l:A}=i.default.add(0|this.Fh,0|this.Fl,0|m,0|A)),({h:E,l:b}=i.default.add(0|this.Gh,0|this.Gl,0|E,0|b)),({h:w,l:S}=i.default.add(0|this.Hh,0|this.Hl,0|w,0|S)),this.set(n,r,o,u,d,f,h,g,p,y,m,A,E,b,w,S)}roundClean(){c.fill(0),l.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=u;class d extends u{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}t.SHA512_224=d;class f extends u{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}t.SHA512_256=f;class h extends u{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.SHA384=h,t.sha512=(0,o.wrapConstructor)((()=>new u)),t.sha512_224=(0,o.wrapConstructor)((()=>new d)),t.sha512_256=(0,o.wrapConstructor)((()=>new f)),t.sha384=(0,o.wrapConstructor)((()=>new h))},735:function(e,t,n){var r;!function(){"use strict";var i,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,a=Math.floor,c="[BigNumber Error] ",l=c+"Number primitive has more than 15 significant digits: ",u=1e14,d=14,f=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,p=1e9;function y(e){var t=0|e;return e>0||e===t?t:t-1}function m(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(t=e[r++]+"",n=d-t.length;n--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function A(e,t){var n,r,i=e.c,o=t.c,s=e.s,a=t.s,c=e.e,l=t.e;if(!s||!a)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-a:s;if(s!=a)return s;if(n=s<0,r=c==l,!i||!o)return r?0:!i^n?1:-1;if(!r)return c>l^n?1:-1;for(a=(c=i.length)<(l=o.length)?c:l,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return c==l?0:c>l^n?1:-1}function E(e,t,n,r){if(e<t||e>n||e!==a(e))throw Error(c+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function b(e){var t=e.c.length-1;return y(e.e/d)==t&&e.c[t]%2!=0}function w(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function S(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}i=function e(t){var n,r,i,v,T,O,I,_,L,C,N=K.prototype={constructor:K,toString:null,valueOf:null},B=new K(1),F=20,D=4,M=-7,P=21,x=-1e7,R=1e7,H=!1,U=1,V=0,k={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},j="0123456789abcdefghijklmnopqrstuvwxyz",z=!0;function K(e,t){var n,s,c,u,h,g,p,y,m=this;if(!(m instanceof K))return new K(e,t);if(null==t){if(e&&!0===e._isBigNumber)return m.s=e.s,void(!e.c||e.e>R?m.c=m.e=null:e.e<x?m.c=[m.e=0]:(m.e=e.e,m.c=e.c.slice()));if((g="number"==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,h=e;h>=10;h/=10,u++);return void(u>R?m.c=m.e=null:(m.e=u,m.c=[e]))}y=String(e)}else{if(!o.test(y=String(e)))return i(m,y,g);m.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(u=y.indexOf("."))>-1&&(y=y.replace(".","")),(h=y.search(/e/i))>0?(u<0&&(u=h),u+=+y.slice(h+1),y=y.substring(0,h)):u<0&&(u=y.length)}else{if(E(t,2,j.length,"Base"),10==t&&z)return X(m=new K(e),F+m.e+1,D);if(y=String(e),g="number"==typeof e){if(0*e!=0)return i(m,y,g,t);if(m.s=1/e<0?(y=y.slice(1),-1):1,K.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(l+e)}else m.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(n=j.slice(0,t),u=h=0,p=y.length;h<p;h++)if(n.indexOf(s=y.charAt(h))<0){if("."==s){if(h>u){u=p;continue}}else if(!c&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){c=!0,h=-1,u=0;continue}return i(m,String(e),g,t)}g=!1,(u=(y=r(y,t,10,m.s)).indexOf("."))>-1?y=y.replace(".",""):u=y.length}for(h=0;48===y.charCodeAt(h);h++);for(p=y.length;48===y.charCodeAt(--p););if(y=y.slice(h,++p)){if(p-=h,g&&K.DEBUG&&p>15&&(e>f||e!==a(e)))throw Error(l+m.s*e);if((u=u-h-1)>R)m.c=m.e=null;else if(u<x)m.c=[m.e=0];else{if(m.e=u,m.c=[],h=(u+1)%d,u<0&&(h+=d),h<p){for(h&&m.c.push(+y.slice(0,h)),p-=d;h<p;)m.c.push(+y.slice(h,h+=d));h=d-(y=y.slice(h)).length}else h-=p;for(;h--;y+="0");m.c.push(+y)}}else m.c=[m.e=0]}function G(e,t,n,r){var i,o,s,a,c;if(null==n?n=D:E(n,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)c=m(e.c),c=1==r||2==r&&(s<=M||s>=P)?w(c,s):S(c,s,"0");else if(o=(e=X(new K(e),t,n)).e,a=(c=m(e.c)).length,1==r||2==r&&(t<=o||o<=M)){for(;a<t;c+="0",a++);c=w(c,o)}else if(t-=s,c=S(c,o,"0"),o+1>a){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-a)>0)for(o+1==a&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function q(e,t){for(var n,r,i=1,o=new K(e[0]);i<e.length;i++)(!(r=new K(e[i])).s||(n=A(o,r))===t||0===n&&o.s===t)&&(o=r);return o}function W(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*d-1)>R?e.c=e.e=null:n<x?e.c=[e.e=0]:(e.e=n,e.c=t),e}function X(e,t,n,r){var i,o,c,l,f,g,p,y=e.c,m=h;if(y){e:{for(i=1,l=y[0];l>=10;l/=10,i++);if((o=t-i)<0)o+=d,c=t,f=y[g=0],p=a(f/m[i-c-1]%10);else if((g=s((o+1)/d))>=y.length){if(!r)break e;for(;y.length<=g;y.push(0));f=p=0,i=1,c=(o%=d)-d+1}else{for(f=l=y[g],i=1;l>=10;l/=10,i++);p=(c=(o%=d)-d+i)<0?0:a(f/m[i-c-1]%10)}if(r=r||t<0||null!=y[g+1]||(c<0?f:f%m[i-c-1]),r=n<4?(p||r)&&(0==n||n==(e.s<0?3:2)):p>5||5==p&&(4==n||r||6==n&&(o>0?c>0?f/m[i-c]:0:y[g-1])%10&1||n==(e.s<0?8:7)),t<1||!y[0])return y.length=0,r?(t-=e.e+1,y[0]=m[(d-t%d)%d],e.e=-t||0):y[0]=e.e=0,e;if(0==o?(y.length=g,l=1,g--):(y.length=g+1,l=m[d-o],y[g]=c>0?a(f/m[i-c]%m[c])*l:0),r)for(;;){if(0==g){for(o=1,c=y[0];c>=10;c/=10,o++);for(c=y[0]+=l,l=1;c>=10;c/=10,l++);o!=l&&(e.e++,y[0]==u&&(y[0]=1));break}if(y[g]+=l,y[g]!=u)break;y[g--]=0,l=1}for(o=y.length;0===y[--o];y.pop());}e.e>R?e.c=e.e=null:e.e<x&&(e.c=[e.e=0])}return e}function Y(e){var t,n=e.e;return null===n?e.toString():(t=m(e.c),t=n<=M||n>=P?w(t,n):S(t,n,"0"),e.s<0?"-"+t:t)}return K.clone=e,K.ROUND_UP=0,K.ROUND_DOWN=1,K.ROUND_CEIL=2,K.ROUND_FLOOR=3,K.ROUND_HALF_UP=4,K.ROUND_HALF_DOWN=5,K.ROUND_HALF_EVEN=6,K.ROUND_HALF_CEIL=7,K.ROUND_HALF_FLOOR=8,K.EUCLID=9,K.config=K.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(c+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(E(n=e[t],0,p,t),F=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(E(n=e[t],0,8,t),D=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(E(n[0],-p,0,t),E(n[1],0,p,t),M=n[0],P=n[1]):(E(n,-p,p,t),M=-(P=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)E(n[0],-p,-1,t),E(n[1],1,p,t),x=n[0],R=n[1];else{if(E(n,-p,p,t),!n)throw Error(c+t+" cannot be zero: "+n);x=-(R=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(c+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw H=!n,Error(c+"crypto unavailable");H=n}else H=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(E(n=e[t],0,9,t),U=n),e.hasOwnProperty(t="POW_PRECISION")&&(E(n=e[t],0,p,t),V=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(c+t+" not an object: "+n);k=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(c+t+" invalid: "+n);z="0123456789"==n.slice(0,10),j=n}}return{DECIMAL_PLACES:F,ROUNDING_MODE:D,EXPONENTIAL_AT:[M,P],RANGE:[x,R],CRYPTO:H,MODULO_MODE:U,POW_PRECISION:V,FORMAT:k,ALPHABET:j}},K.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!K.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-p&&i<=p&&i===a(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%d)<1&&(t+=d),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=u||n!==a(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(c+"Invalid BigNumber: "+e)},K.maximum=K.max=function(){return q(arguments,-1)},K.minimum=K.min=function(){return q(arguments,1)},K.random=(v=9007199254740992,T=Math.random()*v&2097151?function(){return a(Math.random()*v)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,i,o,l=0,u=[],f=new K(B);if(null==e?e=F:E(e,0,p),i=s(e/d),H)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));l<i;)(o=131072*t[l]+(t[l+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[l]=n[0],t[l+1]=n[1]):(u.push(o%1e14),l+=2);l=i/2}else{if(!crypto.randomBytes)throw H=!1,Error(c+"crypto unavailable");for(t=crypto.randomBytes(i*=7);l<i;)(o=281474976710656*(31&t[l])+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6])>=9e15?crypto.randomBytes(7).copy(t,l):(u.push(o%1e14),l+=7);l=i/7}if(!H)for(;l<i;)(o=T())<9e15&&(u[l++]=o%1e14);for(i=u[--l],e%=d,i&&e&&(o=h[d-e],u[l]=a(i/o)*o);0===u[l];u.pop(),l--);if(l<0)u=[r=0];else{for(r=-1;0===u[0];u.splice(0,1),r-=d);for(l=1,o=u[0];o>=10;o/=10,l++);l<d&&(r-=d-l)}return f.e=r,f.c=u,f}),K.sum=function(){for(var e=1,t=arguments,n=new K(t[0]);e<t.length;)n=n.plus(t[e++]);return n},r=function(){var e="0123456789";function t(e,t,n,r){for(var i,o,s=[0],a=0,c=e.length;a<c;){for(o=s.length;o--;s[o]*=t);for(s[0]+=r.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,i,o,s,a){var c,l,u,d,f,h,g,p,y=r.indexOf("."),A=F,E=D;for(y>=0&&(d=V,V=0,r=r.replace(".",""),h=(p=new K(i)).pow(r.length-y),V=d,p.c=t(S(m(h.c),h.e,"0"),10,o,e),p.e=p.c.length),u=d=(g=t(r,i,o,a?(c=j,e):(c=e,j))).length;0==g[--d];g.pop());if(!g[0])return c.charAt(0);if(y<0?--u:(h.c=g,h.e=u,h.s=s,g=(h=n(h,p,A,E,o)).c,f=h.r,u=h.e),y=g[l=u+A+1],d=o/2,f=f||l<0||null!=g[l+1],f=E<4?(null!=y||f)&&(0==E||E==(h.s<0?3:2)):y>d||y==d&&(4==E||f||6==E&&1&g[l-1]||E==(h.s<0?8:7)),l<1||!g[0])r=f?S(c.charAt(1),-A,c.charAt(0)):c.charAt(0);else{if(g.length=l,f)for(--o;++g[--l]>o;)g[l]=0,l||(++u,g=[1].concat(g));for(d=g.length;!g[--d];);for(y=0,r="";y<=d;r+=c.charAt(g[y++]));r=S(r,u,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,i,o,s,a=0,c=e.length,l=t%g,u=t/g|0;for(e=e.slice();c--;)a=((i=l*(o=e[c]%g)+(r=u*o+(s=e[c]/g|0)*l)%g*g+a)/n|0)+(r/g|0)+u*s,e[c]=i%n;return a&&(e=[a].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,o,s,c){var l,f,h,g,p,m,A,E,b,w,S,v,T,O,I,_,L,C=r.s==i.s?1:-1,N=r.c,B=i.c;if(!(N&&N[0]&&B&&B[0]))return new K(r.s&&i.s&&(N?!B||N[0]!=B[0]:B)?N&&0==N[0]||!B?0*C:C/0:NaN);for(b=(E=new K(C)).c=[],C=o+(f=r.e-i.e)+1,c||(c=u,f=y(r.e/d)-y(i.e/d),C=C/d|0),h=0;B[h]==(N[h]||0);h++);if(B[h]>(N[h]||0)&&f--,C<0)b.push(1),g=!0;else{for(O=N.length,_=B.length,h=0,C+=2,(p=a(c/(B[0]+1)))>1&&(B=e(B,p,c),N=e(N,p,c),_=B.length,O=N.length),T=_,S=(w=N.slice(0,_)).length;S<_;w[S++]=0);L=B.slice(),L=[0].concat(L),I=B[0],B[1]>=c/2&&I++;do{if(p=0,(l=t(B,w,_,S))<0){if(v=w[0],_!=S&&(v=v*c+(w[1]||0)),(p=a(v/I))>1)for(p>=c&&(p=c-1),A=(m=e(B,p,c)).length,S=w.length;1==t(m,w,A,S);)p--,n(m,_<A?L:B,A,c),A=m.length,l=1;else 0==p&&(l=p=1),A=(m=B.slice()).length;if(A<S&&(m=[0].concat(m)),n(w,m,S,c),S=w.length,-1==l)for(;t(B,w,_,S)<1;)p++,n(w,_<S?L:B,S,c),S=w.length}else 0===l&&(p++,w=[0]);b[h++]=p,w[0]?w[S++]=N[T]||0:(w=[N[T]],S=1)}while((T++<O||null!=w[0])&&C--);g=null!=w[0],b[0]||b.splice(0,1)}if(c==u){for(h=1,C=b[0];C>=10;C/=10,h++);X(E,o+(E.e=h+f*d-1)+1,s,g)}else E.e=f,E.r=+g;return E}}(),O=/^(-?)0([xbo])(?=\w[\w.]*$)/i,I=/^([^.]+)\.$/,_=/^\.([^.]+)$/,L=/^-?(Infinity|NaN)$/,C=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(e,t,n,r){var i,o=n?t:t.replace(C,"");if(L.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(O,(function(e,t,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?e:t})),r&&(i=r,o=o.replace(I,"$1").replace(_,"0.$1")),t!=o))return new K(o,i);if(K.DEBUG)throw Error(c+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},N.absoluteValue=N.abs=function(){var e=new K(this);return e.s<0&&(e.s=1),e},N.comparedTo=function(e,t){return A(this,new K(e,t))},N.decimalPlaces=N.dp=function(e,t){var n,r,i,o=this;if(null!=e)return E(e,0,p),null==t?t=D:E(t,0,8),X(new K(o),e+o.e+1,t);if(!(n=o.c))return null;if(r=((i=n.length-1)-y(this.e/d))*d,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},N.dividedBy=N.div=function(e,t){return n(this,new K(e,t),F,D)},N.dividedToIntegerBy=N.idiv=function(e,t){return n(this,new K(e,t),0,1)},N.exponentiatedBy=N.pow=function(e,t){var n,r,i,o,l,u,f,h,g=this;if((e=new K(e)).c&&!e.isInteger())throw Error(c+"Exponent not an integer: "+Y(e));if(null!=t&&(t=new K(t)),l=e.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!e.c||!e.c[0])return h=new K(Math.pow(+Y(g),l?e.s*(2-b(e)):+Y(e))),t?h.mod(t):h;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new K(NaN);(r=!u&&g.isInteger()&&t.isInteger())&&(g=g.mod(t))}else{if(e.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||l&&g.c[1]>=24e7:g.c[0]<8e13||l&&g.c[0]<=9999975e7)))return o=g.s<0&&b(e)?-0:0,g.e>-1&&(o=1/o),new K(u?1/o:o);V&&(o=s(V/d+2))}for(l?(n=new K(.5),u&&(e.s=1),f=b(e)):f=(i=Math.abs(+Y(e)))%2,h=new K(B);;){if(f){if(!(h=h.times(g)).c)break;o?h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}if(i){if(0===(i=a(i/2)))break;f=i%2}else if(X(e=e.times(n),e.e+1,1),e.e>14)f=b(e);else{if(0==(i=+Y(e)))break;f=i%2}g=g.times(g),o?g.c&&g.c.length>o&&(g.c.length=o):r&&(g=g.mod(t))}return r?h:(u&&(h=B.div(h)),t?h.mod(t):o?X(h,V,D,void 0):h)},N.integerValue=function(e){var t=new K(this);return null==e?e=D:E(e,0,8),X(t,t.e+1,e)},N.isEqualTo=N.eq=function(e,t){return 0===A(this,new K(e,t))},N.isFinite=function(){return!!this.c},N.isGreaterThan=N.gt=function(e,t){return A(this,new K(e,t))>0},N.isGreaterThanOrEqualTo=N.gte=function(e,t){return 1===(t=A(this,new K(e,t)))||0===t},N.isInteger=function(){return!!this.c&&y(this.e/d)>this.c.length-2},N.isLessThan=N.lt=function(e,t){return A(this,new K(e,t))<0},N.isLessThanOrEqualTo=N.lte=function(e,t){return-1===(t=A(this,new K(e,t)))||0===t},N.isNaN=function(){return!this.s},N.isNegative=function(){return this.s<0},N.isPositive=function(){return this.s>0},N.isZero=function(){return!!this.c&&0==this.c[0]},N.minus=function(e,t){var n,r,i,o,s=this,a=s.s;if(t=(e=new K(e,t)).s,!a||!t)return new K(NaN);if(a!=t)return e.s=-t,s.plus(e);var c=s.e/d,l=e.e/d,f=s.c,h=e.c;if(!c||!l){if(!f||!h)return f?(e.s=-t,e):new K(h?s:NaN);if(!f[0]||!h[0])return h[0]?(e.s=-t,e):new K(f[0]?s:3==D?-0:0)}if(c=y(c),l=y(l),f=f.slice(),a=c-l){for((o=a<0)?(a=-a,i=f):(l=c,i=h),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=f.length)<(t=h.length))?a:t,a=t=0;t<r;t++)if(f[t]!=h[t]){o=f[t]<h[t];break}if(o&&(i=f,f=h,h=i,e.s=-e.s),(t=(r=h.length)-(n=f.length))>0)for(;t--;f[n++]=0);for(t=u-1;r>a;){if(f[--r]<h[r]){for(n=r;n&&!f[--n];f[n]=t);--f[n],f[r]+=u}f[r]-=h[r]}for(;0==f[0];f.splice(0,1),--l);return f[0]?W(e,f,l):(e.s=3==D?-1:1,e.c=[e.e=0],e)},N.modulo=N.mod=function(e,t){var r,i,o=this;return e=new K(e,t),!o.c||!e.s||e.c&&!e.c[0]?new K(NaN):!e.c||o.c&&!o.c[0]?new K(o):(9==U?(i=e.s,e.s=1,r=n(o,e,0,3),e.s=i,r.s*=i):r=n(o,e,0,U),(e=o.minus(r.times(e))).c[0]||1!=U||(e.s=o.s),e)},N.multipliedBy=N.times=function(e,t){var n,r,i,o,s,a,c,l,f,h,p,m,A,E,b,w=this,S=w.c,v=(e=new K(e,t)).c;if(!(S&&v&&S[0]&&v[0]))return!w.s||!e.s||S&&!S[0]&&!v||v&&!v[0]&&!S?e.c=e.e=e.s=null:(e.s*=w.s,S&&v?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=y(w.e/d)+y(e.e/d),e.s*=w.s,(c=S.length)<(h=v.length)&&(A=S,S=v,v=A,i=c,c=h,h=i),i=c+h,A=[];i--;A.push(0));for(E=u,b=g,i=h;--i>=0;){for(n=0,p=v[i]%b,m=v[i]/b|0,o=i+(s=c);o>i;)n=((l=p*(l=S[--s]%b)+(a=m*l+(f=S[s]/b|0)*p)%b*b+A[o]+n)/E|0)+(a/b|0)+m*f,A[o--]=l%E;A[o]=n}return n?++r:A.splice(0,1),W(e,A,r)},N.negated=function(){var e=new K(this);return e.s=-e.s||null,e},N.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new K(e,t)).s,!i||!t)return new K(NaN);if(i!=t)return e.s=-t,r.minus(e);var o=r.e/d,s=e.e/d,a=r.c,c=e.c;if(!o||!s){if(!a||!c)return new K(i/0);if(!a[0]||!c[0])return c[0]?e:new K(a[0]?r:0*i)}if(o=y(o),s=y(s),a=a.slice(),i=o-s){for(i>0?(s=o,n=c):(i=-i,n=a),n.reverse();i--;n.push(0));n.reverse()}for((i=a.length)-(t=c.length)<0&&(n=c,c=a,a=n,t=i),i=0;t;)i=(a[--t]=a[t]+c[t]+i)/u|0,a[t]=u===a[t]?0:a[t]%u;return i&&(a=[i].concat(a),++s),W(e,a,s)},N.precision=N.sd=function(e,t){var n,r,i,o=this;if(null!=e&&e!==!!e)return E(e,1,p),null==t?t=D:E(t,0,8),X(new K(o),e,t);if(!(n=o.c))return null;if(r=(i=n.length-1)*d+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&o.e+1>r&&(r=o.e+1),r},N.shiftedBy=function(e){return E(e,-9007199254740991,f),this.times("1e"+e)},N.squareRoot=N.sqrt=function(){var e,t,r,i,o,s=this,a=s.c,c=s.s,l=s.e,u=F+4,d=new K("0.5");if(1!==c||!a||!a[0])return new K(!c||c<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(c=Math.sqrt(+Y(s)))||c==1/0?(((t=m(a)).length+l)%2==0&&(t+="0"),c=Math.sqrt(+t),l=y((l+1)/2)-(l<0||l%2),r=new K(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):r=new K(c+""),r.c[0])for((c=(l=r.e)+u)<3&&(c=0);;)if(o=r,r=d.times(o.plus(n(s,o,u,1))),m(o.c).slice(0,c)===(t=m(r.c)).slice(0,c)){if(r.e<l&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(X(r,r.e+F+2,1),e=!r.times(r).eq(s));break}if(!i&&(X(o,o.e+F+2,0),o.times(o).eq(s))){r=o;break}u+=4,c+=4,i=1}return X(r,r.e+F+1,D,e)},N.toExponential=function(e,t){return null!=e&&(E(e,0,p),e++),G(this,e,t,1)},N.toFixed=function(e,t){return null!=e&&(E(e,0,p),e=e+this.e+1),G(this,e,t)},N.toFormat=function(e,t,n){var r,i=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=k;else if("object"!=typeof n)throw Error(c+"Argument not an object: "+n);if(r=i.toFixed(e,t),i.c){var o,s=r.split("."),a=+n.groupSize,l=+n.secondaryGroupSize,u=n.groupSeparator||"",d=s[0],f=s[1],h=i.s<0,g=h?d.slice(1):d,p=g.length;if(l&&(o=a,a=l,l=o,p-=o),a>0&&p>0){for(o=p%a||a,d=g.substr(0,o);o<p;o+=a)d+=u+g.substr(o,a);l>0&&(d+=u+g.slice(o)),h&&(d="-"+d)}r=f?d+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):d}return(n.prefix||"")+r+(n.suffix||"")},N.toFraction=function(e){var t,r,i,o,s,a,l,u,f,g,p,y,A=this,E=A.c;if(null!=e&&(!(l=new K(e)).isInteger()&&(l.c||1!==l.s)||l.lt(B)))throw Error(c+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+Y(l));if(!E)return new K(A);for(t=new K(B),f=r=new K(B),i=u=new K(B),y=m(E),s=t.e=y.length-A.e-1,t.c[0]=h[(a=s%d)<0?d+a:a],e=!e||l.comparedTo(t)>0?s>0?t:f:l,a=R,R=1/0,l=new K(y),u.c[0]=0;g=n(l,t,0,1),1!=(o=r.plus(g.times(i))).comparedTo(e);)r=i,i=o,f=u.plus(g.times(o=f)),u=o,t=l.minus(g.times(o=t)),l=o;return o=n(e.minus(r),i,0,1),u=u.plus(o.times(f)),r=r.plus(o.times(i)),u.s=f.s=A.s,p=n(f,i,s*=2,D).minus(A).abs().comparedTo(n(u,r,s,D).minus(A).abs())<1?[f,i]:[u,r],R=a,p},N.toNumber=function(){return+Y(this)},N.toPrecision=function(e,t){return null!=e&&E(e,1,p),G(this,e,t,2)},N.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=M||o>=P?w(m(n.c),o):S(m(n.c),o,"0"):10===e&&z?t=S(m((n=X(new K(n),F+o+1,D)).c),n.e,"0"):(E(e,2,j.length,"Base"),t=r(S(m(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},N.valueOf=N.toJSON=function(){return Y(this)},N._isBigNumber=!0,null!=t&&K.set(t),K}(),i.default=i.BigNumber=i,void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=d,t.pow=f,t.pow2=function(e,t,n){let r=e;for(;t-- >i;)r*=r,r%=n;return r},t.invert=h,t.tonelliShanks=g,t.FpSqrt=p,t.validateField=function(e){const t=y.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,r.validateObject)(e,t)},t.FpPow=m,t.FpInvertBatch=A,t.FpDiv=function(e,t,n){return e.mul(t,"bigint"==typeof n?h(n,e.ORDER):e.inv(n))},t.FpLegendre=E,t.FpIsSquare=function(e){const t=E(e.ORDER);return n=>{const r=t(e,n);return e.eql(r,e.ZERO)||e.eql(r,e.ONE)}},t.nLength=b,t.Field=function(e,t,n=!1,s={}){if(e<=i)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:a,nByteLength:c}=b(e,t);if(c>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let l;const u=Object.freeze({ORDER:e,isLE:n,BITS:a,BYTES:c,MASK:(0,r.bitMask)(a),ZERO:i,ONE:o,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return i<=t&&t<e},is0:e=>e===i,isOdd:e=>(e&o)===o,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,n)=>d(t+n,e),sub:(t,n)=>d(t-n,e),mul:(t,n)=>d(t*n,e),pow:(e,t)=>m(u,e,t),div:(t,n)=>d(t*h(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:s.sqrt||(t=>(l||(l=p(e)),l(u,t))),invertBatch:e=>A(u,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?(0,r.numberToBytesLE)(e,c):(0,r.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error("Field.fromBytes: expected "+c+" bytes, got "+e.length);return n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e)}});return Object.freeze(u)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?n:e.neg(n)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n},t.hashToPrivateScalar=function(e,t,n=!1){const i=(e=(0,r.ensureBytes)("privateHash",e)).length,s=b(t).nByteLength+8;if(s<24||i<s||i>1024)throw new Error("hashToPrivateScalar: expected "+s+"-1024 bytes of input, got "+i);return d(n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e),t-o)+o},t.getFieldBytesLength=w,t.getMinHashLength=S,t.mapHashToField=function(e,t,n=!1){const i=e.length,s=w(t),a=S(t);if(i<16||i<a||i>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+i);const c=d(n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e),t-o)+o;return n?(0,r.numberToBytesLE)(c,s):(0,r.numberToBytesBE)(c,s)};const r=n(3449),i=BigInt(0),o=BigInt(1),s=BigInt(2),a=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);function d(e,t){const n=e%t;return n>=i?n:t+n}function f(e,t,n){if(t<i)throw new Error("invalid exponent, negatives unsupported");if(n<=i)throw new Error("invalid modulus");if(n===o)return i;let r=o;for(;t>i;)t&o&&(r=r*e%n),e=e*e%n,t>>=o;return r}function h(e,t){if(e===i)throw new Error("invert: expected non-zero number");if(t<=i)throw new Error("invert: expected positive modulus, got "+t);let n=d(e,t),r=t,s=i,a=o,c=o,l=i;for(;n!==i;){const e=r/n,t=r%n,i=s-c*e,o=a-l*e;r=n,n=t,s=c,a=l,c=i,l=o}if(r!==o)throw new Error("invert: does not exist");return d(s,t)}function g(e){const t=(e-o)/s;let n,r,a;for(n=e-o,r=0;n%s===i;n/=s,r++);for(a=s;a<e&&f(a,t,e)!==e-o;a++)if(a>1e3)throw new Error("Cannot find square root: likely non-prime P");if(1===r){const t=(e+o)/c;return function(e,n){const r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}const l=(n+o)/s;return function(e,i){if(e.pow(i,t)===e.neg(e.ONE))throw new Error("Cannot find square root");let s=r,c=e.pow(e.mul(e.ONE,a),n),u=e.pow(i,l),d=e.pow(i,n);for(;!e.eql(d,e.ONE);){if(e.eql(d,e.ZERO))return e.ZERO;let t=1;for(let n=e.sqr(d);t<s&&!e.eql(n,e.ONE);t++)n=e.sqr(n);const n=e.pow(c,o<<BigInt(s-t-1));c=e.sqr(n),u=e.mul(u,n),d=e.mul(d,c),s=t}return u}}function p(e){if(e%c===a){const t=(e+o)/c;return function(e,n){const r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}if(e%u===l){const t=(e-l)/u;return function(e,n){const r=e.mul(n,s),i=e.pow(r,t),o=e.mul(n,i),a=e.mul(e.mul(o,s),i),c=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(c),n))throw new Error("Cannot find square root");return c}}return g(e)}t.isNegativeLE=(e,t)=>(d(e,t)&o)===o;const y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function m(e,t,n){if(n<i)throw new Error("invalid exponent, negatives unsupported");if(n===i)return e.ONE;if(n===o)return t;let r=e.ONE,s=t;for(;n>i;)n&o&&(r=e.mul(r,s)),s=e.sqr(s),n>>=o;return r}function A(e,t){const n=new Array(t.length),r=t.reduce(((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r))),e.ONE),i=e.inv(r);return t.reduceRight(((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r))),i),n}function E(e){const t=(e-o)/s;return(e,n)=>e.pow(n,t)}function b(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function w(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function S(e){const t=w(e);return t+Math.ceil(t/2)}},811:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.handleStreamPartialPayment=t.handlePartialPayment=void 0;const i=r(n(735)),o=n(5620),s=n(9843),a=n(99);function c(e,t){var n,r;if(null==e||null==t||"Payment"!==e.TransactionType)return!1;let c=t;if("string"==typeof c){if("unavailable"===c)return!1;c=(0,o.decode)(c)}if(!("number"==typeof e.Flags?(0,a.isFlagEnabled)(e.Flags,s.PaymentFlags.tfPartialPayment):null===(n=e.Flags)||void 0===n?void 0:n.tfPartialPayment))return!1;const l=c.delivered_amount,u=null!==(r=e.DeliverMax)&&void 0!==r?r:e.Amount;return void 0!==l&&!function(e,t){if("string"==typeof e&&"string"==typeof t)return e===t;if("string"==typeof e||"string"==typeof t)return!1;if((0,s.isMPTAmount)(e)&&(0,s.isMPTAmount)(t)){const n=new i.default(e.value),r=new i.default(t.value);return e.mpt_issuance_id===t.mpt_issuance_id&&n.isEqualTo(r)}if((0,s.isMPTAmount)(e)||(0,s.isMPTAmount)(t))return!1;const n=new i.default(e.value),r=new i.default(t.value);return e.currency===t.currency&&e.issuer===t.issuer&&n.isEqualTo(r)}(l,u)}t.handlePartialPayment=function(e,t){var n;if(function(e,t){switch(e){case"tx":return function(e){return c(e.result.tx_json,e.result.meta)}(t);case"transaction_entry":return function(e){return c(e.result.tx_json,e.result.metadata)}(t);case"account_tx":return function(e){const{transactions:t}=e.result;return t.some((e=>{if(null!=e.tx_json){const t=e;return c(t.tx_json,t.meta)}const t=e;return c(t.tx,t.meta)}))}(t);default:return!1}}(e,t)){const e=null!==(n=t.warnings)&&void 0!==n?n:[],r={id:2001,message:"This response contains a Partial Payment"};e.push(r),t.warnings=e}},t.handleStreamPartialPayment=function(e,t){var n,r;if(c(null!==(n=e.tx_json)&&void 0!==n?n:e.transaction,e.meta)){const n=null!==(r=e.warnings)&&void 0!==r?r:[],i={id:2001,message:"This response contains a Partial Payment"};n.push(i),e.warnings=n,t("Partial payment received",JSON.stringify(e))}}},821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePermissionedDomainSet=void 0;const r=n(2794);t.validatePermissionedDomainSet=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateOptionalField)(e,"DomainID",r.isString),(0,r.validateRequiredField)(e,"AcceptedCredentials",r.isArray),(0,r.validateCredentialsList)(e.AcceptedCredentials,e.TransactionType,!1,10)}},857:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HDKey=t.HARDENED_OFFSET=void 0;const r=n(7203),i=n(8538),o=n(2283),s=n(6522),a=n(5697),c=n(4211),l=n(9005),u=n(802),d=n(1616),f=l.secp256k1.ProjectivePoint,h=(0,d.createBase58check)(o.sha256);function g(e){(0,a.abytes)(e);const t=0===e.length?"0":(0,c.bytesToHex)(e);return BigInt("0x"+t)}const p=(0,c.utf8ToBytes)("Bitcoin seed"),y={private:76066276,public:76067358};t.HARDENED_OFFSET=2147483648;const m=e=>{if(!Number.isSafeInteger(e)||e<0||e>2**32-1)throw new Error("invalid number, should be from 0 to 2**32-1, got "+e);const t=new Uint8Array(4);return(0,c.createView)(t).setUint32(0,e,!1),t};class A{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return e=this.pubHash,(0,c.createView)(e).getUint32(0,!1);var e}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const e=this.privateKey;if(!e)throw new Error("No private key");return h.encode(this.serialize(this.versions.private,(0,c.concatBytes)(new Uint8Array([0]),e)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return h.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(e,t=y){if((0,a.abytes)(e),8*e.length<128||8*e.length>512)throw new Error("HDKey: seed length must be between 128 and 512 bits; 256 bits is advised, got "+e.length);const n=(0,r.hmac)(s.sha512,p,e);return new A({versions:t,chainCode:n.slice(32),privateKey:n.slice(0,32)})}static fromExtendedKey(e,t=y){const n=h.decode(e),r=(0,c.createView)(n),i=r.getUint32(0,!1),o={versions:t,depth:n[4],parentFingerprint:r.getUint32(5,!1),index:r.getUint32(9,!1),chainCode:n.slice(13,45)},s=n.slice(45),a=0===s[0];if(i!==t[a?"private":"public"])throw new Error("Version mismatch");return new A(a?{...o,privateKey:s.slice(1)}:{...o,publicKey:s})}static fromJSON(e){return A.fromExtendedKey(e.xpriv)}constructor(e){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!e||"object"!=typeof e)throw new Error("HDKey.constructor must not be called directly");if(this.versions=e.versions||y,this.depth=e.depth||0,this.chainCode=e.chainCode||null,this.index=e.index||0,this.parentFingerprint=e.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(e.publicKey&&e.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(e.privateKey){if(!l.secp256k1.utils.isValidPrivateKey(e.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof e.privateKey?e.privateKey:g(e.privateKey),this.privKeyBytes=function(e){if("bigint"!=typeof e)throw new Error("bigint expected");return(0,c.hexToBytes)(e.toString(16).padStart(64,"0"))}(this.privKey),this.pubKey=l.secp256k1.getPublicKey(e.privateKey,!0)}else{if(!e.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=f.fromHex(e.publicKey).toRawBytes(!0)}var t;this.pubHash=(t=this.pubKey,(0,i.ripemd160)((0,o.sha256)(t)))}derive(e){if(!/^[mM]'?/.test(e))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(e))return this;const n=e.replace(/^[mM]'?\//,"").split("/");let r=this;for(const e of n){const n=/^(\d+)('?)$/.exec(e),i=n&&n[1];if(!n||3!==n.length||"string"!=typeof i)throw new Error("invalid child index: "+e);let o=+i;if(!Number.isSafeInteger(o)||o>=t.HARDENED_OFFSET)throw new Error("Invalid index");"'"===n[2]&&(o+=t.HARDENED_OFFSET),r=r.deriveChild(o)}return r}deriveChild(e){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let n=m(e);if(e>=t.HARDENED_OFFSET){const e=this.privateKey;if(!e)throw new Error("Could not derive hardened child key");n=(0,c.concatBytes)(new Uint8Array([0]),e,n)}else n=(0,c.concatBytes)(this.pubKey,n);const i=(0,r.hmac)(s.sha512,this.chainCode,n),o=g(i.slice(0,32)),a=i.slice(32);if(!l.secp256k1.utils.isValidPrivateKey(o))throw new Error("Tweak bigger than curve order");const d={versions:this.versions,chainCode:a,depth:this.depth+1,parentFingerprint:this.fingerprint,index:e};try{if(this.privateKey){const e=(0,u.mod)(this.privKey+o,l.secp256k1.CURVE.n);if(!l.secp256k1.utils.isValidPrivateKey(e))throw new Error("The tweak was out of range or the resulted private key is invalid");d.privateKey=e}else{const e=f.fromHex(this.pubKey).add(f.fromPrivateKey(o));if(e.equals(f.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");d.publicKey=e.toRawBytes(!0)}return new A(d)}catch(t){return this.deriveChild(e+1)}}sign(e){if(!this.privateKey)throw new Error("No privateKey set!");return(0,a.abytes)(e,32),l.secp256k1.sign(e,this.privKey).toCompactRawBytes()}verify(e,t){if((0,a.abytes)(e,32),(0,a.abytes)(t,64),!this.publicKey)throw new Error("No publicKey set!");let n;try{n=l.secp256k1.Signature.fromCompact(t)}catch(e){return!1}return l.secp256k1.verify(n,e,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(e,t){if(!this.chainCode)throw new Error("No chainCode set");return(0,a.abytes)(t,33),(0,c.concatBytes)(m(e),new Uint8Array([this.depth]),m(this.parentFingerprint),m(this.index),this.chainCode,t)}}t.HDKey=A},892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryParser=void 0;const r=n(1141),i=n(619);t.BinaryParser=class{constructor(e,t=r.DEFAULT_DEFINITIONS){this.bytes=(0,i.hexToBytes)(e),this.definitions=t}peek(){if(0===this.bytes.byteLength)throw new Error;return this.bytes[0]}skip(e){if(e>this.bytes.byteLength)throw new Error;this.bytes=this.bytes.slice(e)}read(e){if(e>this.bytes.byteLength)throw new Error;const t=this.bytes.slice(0,e);return this.skip(e),t}readUIntN(e){if(0>=e||e>4)throw new Error("invalid n");return this.read(e).reduce(((e,t)=>e<<8|t))>>>0}readUInt8(){return this.readUIntN(1)}readUInt16(){return this.readUIntN(2)}readUInt32(){return this.readUIntN(4)}size(){return this.bytes.byteLength}end(e){const t=this.bytes.byteLength;return 0===t||void 0!==e&&t<=e}readVariableLength(){return this.read(this.readVariableLengthLength())}readVariableLengthLength(){const e=this.readUInt8();if(e<=192)return e;if(e<=240)return 193+256*(e-193)+this.readUInt8();if(e<=254)return 12481+65536*(e-241)+256*this.readUInt8()+this.readUInt8();throw new Error("Invalid variable length indicator")}readFieldOrdinal(){let e=this.readUInt8(),t=15&e;if(e>>=4,0===e&&(e=this.readUInt8(),0===e||e<16))throw new Error(`Cannot read FieldOrdinal, type_code ${e} out of range`);if(0===t&&(t=this.readUInt8(),0===t||t<16))throw new Error(`Cannot read FieldOrdinal, field_code ${t} out of range`);return e<<16|t}readField(){return this.definitions.field.fromString(this.readFieldOrdinal().toString())}readType(e){return e.fromParser(this)}typeForField(e){return e.associatedType}readFieldValue(e){const t=this.typeForField(e);if(!t)throw new Error(`unsupported: (${e.name}, ${e.type.name})`);const n=e.isVariableLengthEncoded?this.readVariableLengthLength():void 0,r=t.fromParser(this,n);if(void 0===r)throw new Error(`fromParser for (${e.name}, ${e.type.name}) -> undefined `);return r}readFieldAndValue(){const e=this.readField();return[e,this.readFieldValue(e)]}}},964:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9819);class i extends r.EventEmitter{constructor(e,t,n){super(),this.ws=new WebSocket(e),this.ws.onclose=e=>{let t;e.reason&&(t=(new TextEncoder).encode(e.reason)),this.emit("close",e.code,t)},this.ws.onopen=()=>{this.emit("open")},this.ws.onerror=e=>{this.emit("error",e)},this.ws.onmessage=e=>{this.emit("message",e.data)}}get readyState(){return this.ws.readyState}close(e,t){1===this.readyState&&this.ws.close(e,t)}send(e){this.ws.send(e)}}i.CONNECTING=0,i.OPEN=1,i.CLOSING=2,i.CLOSED=3,t.default=i},988:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMWithdraw=t.AMMWithdrawFlags=void 0;const r=n(255),i=n(2794);var o;!function(e){e[e.tfLPToken=65536]="tfLPToken",e[e.tfWithdrawAll=131072]="tfWithdrawAll",e[e.tfOneAssetWithdrawAll=262144]="tfOneAssetWithdrawAll",e[e.tfSingleAsset=524288]="tfSingleAsset",e[e.tfTwoAsset=1048576]="tfTwoAsset",e[e.tfOneAssetLPToken=2097152]="tfOneAssetLPToken",e[e.tfLimitLPToken=4194304]="tfLimitLPToken"}(o||(t.AMMWithdrawFlags=o={})),t.validateAMMWithdraw=function(e){if((0,i.validateBaseTransaction)(e),null==e.Asset)throw new r.ValidationError("AMMWithdraw: missing field Asset");if(!(0,i.isIssuedCurrency)(e.Asset))throw new r.ValidationError("AMMWithdraw: Asset must be a Currency");if(null==e.Asset2)throw new r.ValidationError("AMMWithdraw: missing field Asset2");if(!(0,i.isIssuedCurrency)(e.Asset2))throw new r.ValidationError("AMMWithdraw: Asset2 must be a Currency");if(null!=e.Amount2&&null==e.Amount)throw new r.ValidationError("AMMWithdraw: must set Amount with Amount2");if(null!=e.EPrice&&null==e.Amount)throw new r.ValidationError("AMMWithdraw: must set Amount with EPrice");if(null!=e.LPTokenIn&&!(0,i.isIssuedCurrencyAmount)(e.LPTokenIn))throw new r.ValidationError("AMMWithdraw: LPTokenIn must be an IssuedCurrencyAmount");if(null!=e.Amount&&!(0,i.isAmount)(e.Amount))throw new r.ValidationError("AMMWithdraw: Amount must be an Amount");if(null!=e.Amount2&&!(0,i.isAmount)(e.Amount2))throw new r.ValidationError("AMMWithdraw: Amount2 must be an Amount");if(null!=e.EPrice&&!(0,i.isAmount)(e.EPrice))throw new r.ValidationError("AMMWithdraw: EPrice must be an Amount")}},1026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=t.md5=t.MD5=t.sha1=t.SHA1=void 0;const r=n(6897),i=n(5492),o=Uint32Array.from([1732584193,4023233417,2562383102,271733878,3285377520]),s=new Uint32Array(80);class a extends r.HashMD{constructor(){super(64,20,8,!1),this.A=0|o[0],this.B=0|o[1],this.C=0|o[2],this.D=0|o[3],this.E=0|o[4]}get(){const{A:e,B:t,C:n,D:r,E:i}=this;return[e,t,n,r,i]}set(e,t,n,r,i){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i}process(e,t){for(let n=0;n<16;n++,t+=4)s[n]=e.getUint32(t,!1);for(let e=16;e<80;e++)s[e]=(0,i.rotl)(s[e-3]^s[e-8]^s[e-14]^s[e-16],1);let{A:n,B:o,C:a,D:c,E:l}=this;for(let e=0;e<80;e++){let t,u;e<20?(t=(0,r.Chi)(o,a,c),u=1518500249):e<40?(t=o^a^c,u=1859775393):e<60?(t=(0,r.Maj)(o,a,c),u=2400959708):(t=o^a^c,u=3395469782);const d=(0,i.rotl)(n,5)+t+l+u+s[e]|0;l=c,c=a,a=(0,i.rotl)(o,30),o=n,n=d}n=n+this.A|0,o=o+this.B|0,a=a+this.C|0,c=c+this.D|0,l=l+this.E|0,this.set(n,o,a,c,l)}roundClean(){(0,i.clean)(s)}destroy(){this.set(0,0,0,0,0),(0,i.clean)(this.buffer)}}t.SHA1=a,t.sha1=(0,i.createHasher)((()=>new a));const c=Math.pow(2,32),l=Array.from({length:64},((e,t)=>Math.floor(c*Math.abs(Math.sin(t+1))))),u=o.slice(0,4),d=new Uint32Array(16);class f extends r.HashMD{constructor(){super(64,16,8,!0),this.A=0|u[0],this.B=0|u[1],this.C=0|u[2],this.D=0|u[3]}get(){const{A:e,B:t,C:n,D:r}=this;return[e,t,n,r]}set(e,t,n,r){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r}process(e,t){for(let n=0;n<16;n++,t+=4)d[n]=e.getUint32(t,!0);let{A:n,B:o,C:s,D:a}=this;for(let e=0;e<64;e++){let t,c,u;e<16?(t=(0,r.Chi)(o,s,a),c=e,u=[7,12,17,22]):e<32?(t=(0,r.Chi)(a,o,s),c=(5*e+1)%16,u=[5,9,14,20]):e<48?(t=o^s^a,c=(3*e+5)%16,u=[4,11,16,23]):(t=s^(o|~a),c=7*e%16,u=[6,10,15,21]),t=t+n+l[e]+d[c],n=a,a=s,s=o,o+=(0,i.rotl)(t,u[e%4])}n=n+this.A|0,o=o+this.B|0,s=s+this.C|0,a=a+this.D|0,this.set(n,o,s,a)}roundClean(){(0,i.clean)(d)}destroy(){this.set(0,0,0,0),(0,i.clean)(this.buffer)}}t.MD5=f,t.md5=(0,i.createHasher)((()=>new f));const h=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),g=(()=>Uint8Array.from(new Array(16).fill(0).map(((e,t)=>t))))(),p=(()=>g.map((e=>(9*e+5)%16)))(),y=(()=>{const e=[[g],[p]];for(let t=0;t<4;t++)for(let n of e)n.push(n[t].map((e=>h[e])));return e})(),m=(()=>y[0])(),A=(()=>y[1])(),E=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>Uint8Array.from(e))),b=m.map(((e,t)=>e.map((e=>E[t][e])))),w=A.map(((e,t)=>e.map((e=>E[t][e])))),S=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),v=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function T(e,t,n,r){return 0===e?t^n^r:1===e?t&n|~t&r:2===e?(t|~n)^r:3===e?t&r|n&~r:t^(n|~r)}const O=new Uint32Array(16);class I extends r.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:n,h3:r,h4:i}=this;return[e,t,n,r,i]}set(e,t,n,r,i){this.h0=0|e,this.h1=0|t,this.h2=0|n,this.h3=0|r,this.h4=0|i}process(e,t){for(let n=0;n<16;n++,t+=4)O[n]=e.getUint32(t,!0);let n=0|this.h0,r=n,o=0|this.h1,s=o,a=0|this.h2,c=a,l=0|this.h3,u=l,d=0|this.h4,f=d;for(let e=0;e<5;e++){const t=4-e,h=S[e],g=v[e],p=m[e],y=A[e],E=b[e],I=w[e];for(let t=0;t<16;t++){const r=(0,i.rotl)(n+T(e,o,a,l)+O[p[t]]+h,E[t])+d|0;n=d,d=l,l=0|(0,i.rotl)(a,10),a=o,o=r}for(let e=0;e<16;e++){const n=(0,i.rotl)(r+T(t,s,c,u)+O[y[e]]+g,I[e])+f|0;r=f,f=u,u=0|(0,i.rotl)(c,10),c=s,s=n}}this.set(this.h1+a+u|0,this.h2+l+f|0,this.h3+d+r|0,this.h4+n+s|0,this.h0+o+c|0)}roundClean(){(0,i.clean)(O)}destroy(){this.destroyed=!0,(0,i.clean)(this.buffer),this.set(0,0,0,0,0)}}t.RIPEMD160=I,t.ripemd160=(0,i.createHasher)((()=>new I))},1056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand_message_xmd=l,t.expand_message_xof=u,t.hash_to_field=d,t.isogenyMap=function(e,t){const n=t.map((e=>Array.from(e).reverse()));return(t,r)=>{const[i,o,s,a]=n.map((n=>n.reduce(((n,r)=>e.add(e.mul(n,t),r)))));return t=e.div(i,o),r=e.mul(r,e.div(s,a)),{x:t,y:r}}},t.createHasher=function(e,t,n){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(r,i){const o=d(r,2,{...n,DST:n.DST,...i}),s=e.fromAffine(t(o[0])),a=e.fromAffine(t(o[1])),c=s.add(a).clearCofactor();return c.assertValidity(),c},encodeToCurve(r,i){const o=d(r,1,{...n,DST:n.encodeDST,...i}),s=e.fromAffine(t(o[0])).clearCofactor();return s.assertValidity(),s},mapToCurve(n){if(!Array.isArray(n))throw new Error("mapToCurve: expected array of bigints");for(const e of n)if("bigint"!=typeof e)throw new Error("mapToCurve: expected array of bigints");const r=e.fromAffine(t(n)).clearCofactor();return r.assertValidity(),r}}};const r=n(802),i=n(3449),o=i.bytesToNumberBE;function s(e,t){if(c(e),c(t),e<0||e>=1<<8*t)throw new Error("invalid I2OSP input: "+e);const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=255&e,e>>>=8;return new Uint8Array(n)}function a(e,t){const n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function c(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function l(e,t,n,r){(0,i.abytes)(e),(0,i.abytes)(t),c(n),t.length>255&&(t=r((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:o,blockLen:l}=r,u=Math.ceil(n/o);if(n>65535||u>255)throw new Error("expand_message_xmd: invalid lenInBytes");const d=(0,i.concatBytes)(t,s(t.length,1)),f=s(0,l),h=s(n,2),g=new Array(u),p=r((0,i.concatBytes)(f,e,h,s(0,1),d));g[0]=r((0,i.concatBytes)(p,s(1,1),d));for(let e=1;e<=u;e++){const t=[a(p,g[e-1]),s(e+1,1),d];g[e]=r((0,i.concatBytes)(...t))}return(0,i.concatBytes)(...g).slice(0,n)}function u(e,t,n,r,o){if((0,i.abytes)(e),(0,i.abytes)(t),c(n),t.length>255){const e=Math.ceil(2*r/8);t=o.create({dkLen:e}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:n}).update(e).update(s(n,2)).update(t).update(s(t.length,1)).digest()}function d(e,t,n){(0,i.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:s,k:a,m:d,hash:f,expand:h,DST:g}=n;(0,i.abytes)(e),c(t);const p="string"==typeof g?(0,i.utf8ToBytes)(g):g,y=s.toString(2).length,m=Math.ceil((y+a)/8),A=t*d*m;let E;if("xmd"===h)E=l(e,p,A,f);else if("xof"===h)E=u(e,p,A,a,f);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');E=e}const b=new Array(t);for(let e=0;e<t;e++){const t=new Array(d);for(let n=0;n<d;n++){const i=m*(n+e*d),a=E.subarray(i,i+m);t[n]=(0,r.mod)(o(a),s)}b[e]=t}return b}},1141:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TRANSACTION_TYPES=t.TransactionType=t.TransactionResult=t.LedgerEntryType=t.Type=t.Field=t.DEFAULT_DEFINITIONS=t.XrplDefinitionsBase=t.Bytes=void 0;const i=r(n(8102)),o=n(8816);Object.defineProperty(t,"XrplDefinitionsBase",{enumerable:!0,get:function(){return o.XrplDefinitionsBase}}),Object.defineProperty(t,"Bytes",{enumerable:!0,get:function(){return o.Bytes}});const s=new o.XrplDefinitionsBase(i.default,{});t.DEFAULT_DEFINITIONS=s;const a=s.type;t.Type=a;const c=s.ledgerEntryType;t.LedgerEntryType=c;const l=s.transactionType;t.TransactionType=l;const u=s.transactionResult;t.TransactionResult=u;const d=s.field;t.Field=d;const f=s.transactionNames;t.TRANSACTION_TYPES=f},1218:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wordlist=void 0,t.wordlist="abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n")},1275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Comparable=t.SerializedType=void 0;const r=n(7995),i=n(619);class o{constructor(e){this.bytes=new Uint8Array(0),this.bytes=null!=e?e:new Uint8Array(0)}static fromParser(e,t){throw new Error("fromParser not implemented")}static from(e){throw new Error("from not implemented")}toBytesSink(e){e.put(this.bytes)}toHex(){return(0,i.bytesToHex)(this.toBytes())}toBytes(){if(this.bytes)return this.bytes;const e=new r.BytesList;return this.toBytesSink(e),e.toBytes()}toJSON(e,t){return this.toHex()}toString(){return this.toHex()}}t.SerializedType=o,t.Comparable=class extends o{lt(e){return this.compareTo(e)<0}eq(e){return 0===this.compareTo(e)}gt(e){return this.compareTo(e)>0}gte(e){return this.compareTo(e)>-1}lte(e){return this.compareTo(e)<1}compareTo(e){throw new Error(`cannot compare ${this.toString()} and ${e.toString()}`)}}},1279:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_API_VERSION=t.RIPPLED_API_V2=t.RIPPLED_API_V1=void 0,t.RIPPLED_API_V1=1,t.RIPPLED_API_V2=2,t.DEFAULT_API_VERSION=t.RIPPLED_API_V2},1300:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},1362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateMPTokenIssuanceDestroy=void 0;const r=n(2794);t.validateMPTokenIssuanceDestroy=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"MPTokenIssuanceID",r.isString)}},1366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UInt16=void 0;const r=n(3328),i=n(5517);class o extends r.UInt{constructor(e){super(null!=e?e:o.defaultUInt16.bytes)}static fromParser(e){return new o(e.read(o.width))}static from(e){if(e instanceof o)return e;if("number"==typeof e){o.checkUintRange(e,0,65535);const t=new Uint8Array(o.width);return(0,i.writeUInt16BE)(t,e,0),new o(t)}throw new Error("Can not construct UInt16 with given value")}valueOf(){return parseInt((0,i.readUInt16BE)(this.bytes,0))}}t.UInt16=o,o.width=2,o.defaultUInt16=new o(new Uint8Array(o.width))},1377:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hashTxTree=t.hashStateTree=t.hashLedger=t.hashSignedTx=t.hashLedgerHeader=t.hashPaymentChannel=t.hashEscrow=t.hashTrustline=t.hashOfferId=t.hashSignerListId=t.hashAccountRoot=t.hashTx=void 0;const a=n(619),c=s(n(735)),l=n(6333),u=o(n(6228));t.hashLedger=u.default,Object.defineProperty(t,"hashLedgerHeader",{enumerable:!0,get:function(){return u.hashLedgerHeader}}),Object.defineProperty(t,"hashSignedTx",{enumerable:!0,get:function(){return u.hashSignedTx}}),Object.defineProperty(t,"hashTxTree",{enumerable:!0,get:function(){return u.hashTxTree}}),Object.defineProperty(t,"hashStateTree",{enumerable:!0,get:function(){return u.hashStateTree}});const d=s(n(9373)),f=s(n(3627)),h=s(n(2530)),g=16;function p(e){return(0,a.bytesToHex)((0,l.decodeAccountID)(e))}function y(e){return f.default[e].charCodeAt(0).toString(g).padStart(4,"0")}t.hashTx=function(e){const t=d.default.TRANSACTION_SIGN.toString(g).toUpperCase();return(0,h.default)(t+e)},t.hashAccountRoot=function(e){return(0,h.default)(y("account")+p(e))},t.hashSignerListId=function(e){return(0,h.default)(`${y("signerList")+p(e)}00000000`)},t.hashOfferId=function(e,t){const n=f.default.offer.charCodeAt(0).toString(g).padStart(2,"0"),r=t.toString(g).padStart(8,"0"),i=`00${n}`;return(0,h.default)(i+p(e)+r)},t.hashTrustline=function(e,t,n){const r=p(e),i=p(t),o=new c.default(r,16).isGreaterThan(new c.default(i,16)),s=o?i:r,l=o?r:i,u=y("rippleState");return(0,h.default)(u+s+l+function(e){if(3!==e.length)return e;const t=Array(20).fill(0);return t[12]=255&e.charCodeAt(0),t[13]=255&e.charCodeAt(1),t[14]=255&e.charCodeAt(2),(0,a.bytesToHex)(Uint8Array.from(t))}(n))},t.hashEscrow=function(e,t){return(0,h.default)(y("escrow")+p(e)+t.toString(g).padStart(8,"0"))},t.hashPaymentChannel=function(e,t,n){return(0,h.default)(y("paychan")+p(e)+p(t)+n.toString(g).padStart(8,"0"))}},1386:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateOracleSet=void 0;const r=n(255),i=n(99),o=n(2794);t.validateOracleSet=function(e){(0,o.validateBaseTransaction)(e),(0,o.validateRequiredField)(e,"OracleDocumentID",o.isNumber),(0,o.validateRequiredField)(e,"LastUpdateTime",o.isNumber),(0,o.validateOptionalField)(e,"Provider",o.isString),(0,o.validateOptionalField)(e,"URI",o.isString),(0,o.validateOptionalField)(e,"AssetClass",o.isString),(0,o.validateRequiredField)(e,"PriceDataSeries",(e=>{if(!(0,o.isArray)(e))throw new r.ValidationError("OracleSet: PriceDataSeries must be an array");if(e.length>10)throw new r.ValidationError("OracleSet: PriceDataSeries must have at most 10 PriceData objects");for(const t of e){if(!(0,o.isRecord)(t))throw new r.ValidationError("OracleSet: PriceDataSeries must be an array of objects");const e=t.PriceData;if(!(0,o.isRecord)(e))throw new r.ValidationError("OracleSet: PriceDataSeries must have a `PriceData` object");if(1!==Object.keys(t).length)throw new r.ValidationError("OracleSet: PriceDataSeries must only have a single PriceData object");if(null==e.BaseAsset||"string"!=typeof e.BaseAsset)throw new r.ValidationError("OracleSet: PriceDataSeries must have a `BaseAsset` string");if("string"!=typeof e.QuoteAsset)throw new r.ValidationError("OracleSet: PriceDataSeries must have a `QuoteAsset` string");if(null==e.AssetPrice!=(null==e.Scale))throw new r.ValidationError("OracleSet: PriceDataSeries must have both `AssetPrice` and `Scale` if any are present");if("AssetPrice"in e&&!(0,o.isNumber)(e.AssetPrice)){if("string"!=typeof e.AssetPrice)throw new r.ValidationError("OracleSet: Field AssetPrice must be a string or a number");if(!(0,i.isHex)(e.AssetPrice))throw new r.ValidationError("OracleSet: Field AssetPrice must be a valid hex string");if(e.AssetPrice.length<1||e.AssetPrice.length>16)throw new r.ValidationError("OracleSet: Length of AssetPrice field must be between 1 and 16 characters long")}if("Scale"in e){if(!(0,o.isNumber)(e.Scale))throw new r.ValidationError("OracleSet: invalid field Scale");if(e.Scale<0||e.Scale>10)throw new r.ValidationError("OracleSet: Scale must be in range 0-10")}}return!0}))}},1441:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePayment=t.PaymentFlags=void 0;const r=n(255),i=n(99),o=n(2794);var s;function a(e){return!(void 0!==e.account&&"string"!=typeof e.account||void 0!==e.currency&&"string"!=typeof e.currency||void 0!==e.issuer&&"string"!=typeof e.issuer||(void 0===e.account||void 0!==e.currency||void 0!==e.issuer)&&void 0===e.currency&&void 0===e.issuer)}function c(e){if(!Array.isArray(e)||0===e.length)return!1;for(const t of e)if(!a(t))return!1;return!0}!function(e){e[e.tfNoRippleDirect=65536]="tfNoRippleDirect",e[e.tfPartialPayment=131072]="tfPartialPayment",e[e.tfLimitQuality=262144]="tfLimitQuality"}(s||(t.PaymentFlags=s={})),t.validatePayment=function(e){if((0,o.validateBaseTransaction)(e),void 0===e.Amount)throw new r.ValidationError("PaymentTransaction: missing field Amount");if(!(0,o.isAmount)(e.Amount))throw new r.ValidationError("PaymentTransaction: invalid Amount");if((0,o.validateRequiredField)(e,"Destination",o.isAccount),(0,o.validateOptionalField)(e,"DestinationTag",o.isNumber),(0,o.validateCredentialsList)(e.CredentialIDs,e.TransactionType,!0,o.MAX_AUTHORIZED_CREDENTIALS),void 0!==e.InvoiceID&&"string"!=typeof e.InvoiceID)throw new r.ValidationError("PaymentTransaction: InvoiceID must be a string");if(void 0!==e.Paths&&!function(e){if(!(0,o.isArray)(e)||0===e.length)return!1;for(const t of e){if(!(0,o.isArray)(t)||0===t.length)return!1;if(!c(t))return!1}return!0}(e.Paths))throw new r.ValidationError("PaymentTransaction: invalid Paths");if(void 0!==e.SendMax&&!(0,o.isAmount)(e.SendMax))throw new r.ValidationError("PaymentTransaction: invalid SendMax");if(function(e){var t;if(null!=e.DeliverMin){if(null==e.Flags)throw new r.ValidationError("PaymentTransaction: tfPartialPayment flag required with DeliverMin");const n=e.Flags;if(!("number"==typeof n?(0,i.isFlagEnabled)(n,s.tfPartialPayment):null!==(t=n.tfPartialPayment)&&void 0!==t&&t))throw new r.ValidationError("PaymentTransaction: tfPartialPayment flag required with DeliverMin");if(!(0,o.isAmount)(e.DeliverMin))throw new r.ValidationError("PaymentTransaction: invalid DeliverMin")}}(e),null!=e.DeliverMax)throw new r.ValidationError("PaymentTransaction: Cannot have DeliverMax in a submitted transaction")}},1533:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=void 0,t.fromBig=i,t.split=o,t.add=E;const n=BigInt(2**32-1),r=BigInt(32);function i(e,t=!1){return t?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function o(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;o<e.length;o++){const{h:s,l:a}=i(e[o],t);[n[o],r[o]]=[s,a]}return[n,r]}const s=(e,t)=>BigInt(e>>>0)<<r|BigInt(t>>>0);t.toBig=s;const a=(e,t,n)=>e>>>n;t.shrSH=a;const c=(e,t,n)=>e<<32-n|t>>>n;t.shrSL=c;const l=(e,t,n)=>e>>>n|t<<32-n;t.rotrSH=l;const u=(e,t,n)=>e<<32-n|t>>>n;t.rotrSL=u;const d=(e,t,n)=>e<<64-n|t>>>n-32;t.rotrBH=d;const f=(e,t,n)=>e>>>n-32|t<<64-n;t.rotrBL=f;const h=(e,t)=>t;t.rotr32H=h;const g=(e,t)=>e;t.rotr32L=g;const p=(e,t,n)=>e<<n|t>>>32-n;t.rotlSH=p;const y=(e,t,n)=>t<<n|e>>>32-n;t.rotlSL=y;const m=(e,t,n)=>t<<n-32|e>>>64-n;t.rotlBH=m;const A=(e,t,n)=>e<<n-32|t>>>64-n;function E(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}t.rotlBL=A;const b=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);t.add3L=b;const w=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;t.add3H=w;const S=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);t.add4L=S;const v=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;t.add4H=v;const T=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);t.add5L=T;const O=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0;t.add5H=O;const I={fromBig:i,split:o,toBig:s,shrSH:a,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:d,rotrBL:f,rotr32H:h,rotr32L:g,rotlSH:p,rotlSL:y,rotlBH:m,rotlBL:A,add:E,add3L:b,add3H:w,add4L:S,add4H:v,add5H:O,add5L:T};t.default=I},1565:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.autofillBatchTxn=t.handleDeliverMax=t.checkAccountDeleteBlockers=t.setLatestValidatedLedgerSequence=t.getTransactionFee=t.setNextValidSequenceNumber=t.setValidAddresses=t.txNeedsNetworkID=void 0;const s=o(n(735)),a=n(6333),c=n(255),l=n(5684),u=o(n(6509));function d(e){return!!(void 0!==e.networkID&&e.networkID>1024&&e.buildVersion&&function(e,t){if(e===t)return!0;const n=e.split("."),r=t.split("."),i=parseInt(n[0],10),o=parseInt(n[1],10),s=parseInt(r[0],10),a=parseInt(r[1],10);if(i!==s)return i<s;if(o!==a)return o<a;const c=n[2].split("-"),l=r[2].split("-"),u=parseInt(c[0],10),d=parseInt(l[0],10);return u!==d?u<d:c.length!==l.length?c.length>l.length:2===c.length&&(c[1][0].startsWith(l[1][0])?c[1].startsWith("b")?parseInt(c[1].slice(1),10)<parseInt(l[1].slice(1),10):parseInt(c[1].slice(2),10)<parseInt(l[1].slice(2),10):c[1]<l[1])}("1.11.0",e.buildVersion))}function f(e,t,n){const{classicAccount:r,tag:i}=h(e[t]);if(e[t]=r,null!=i&&!1!==i){if(e[n]&&e[n]!==i)throw new c.ValidationError(`The ${n}, if present, must match the tag of the ${t} X-address`);e[n]=i}}function h(e,t){if((0,a.isValidXAddress)(e)){const n=(0,a.xAddressToClassicAddress)(e);if(null!=t&&n.tag!==t)throw new c.ValidationError("address includes a tag that does not match the tag specified in the transaction");return{classicAccount:n.classicAddress,tag:n.tag}}return{classicAccount:e,tag:t}}function g(e,t){const n=e[t];if("string"==typeof n){const{classicAccount:r}=h(n);e[t]=r}}function p(e,t){return r(this,void 0,void 0,(function*(){const n={command:"account_info",account:t,ledger_index:"current"};return(yield e.request(n)).result.account_data.Sequence}))}function y(e,t,n=0){return r(this,void 0,void 0,(function*(){const i=yield(0,u.default)(e),o=new s.default((0,l.xrpToDrops)(i));let a=o;const c=["AccountDelete","AMMCreate"].includes(t.TransactionType);if("EscrowCreate"===t.TransactionType&&null!=t.FinishFunction)a=a.plus(1e3);else if("EscrowFinish"===t.TransactionType){if(null!=t.Fulfillment){const e=Math.ceil(t.Fulfillment.length/2);a=o.multipliedBy(33+e/16)}if(null!=t.ComputationAllowance){const n=yield function(e){var t;return r(this,void 0,void 0,(function*(){const n=yield e.request({command:"server_state"}),r=null===(t=n.result.state.validated_ledger)||void 0===t?void 0:t.gas_price;return null==r?Promise.reject(new Error("Could not fetch Owner Reserve.")):new s.default(r)}))}(e),i=n.multipliedBy(t.ComputationAllowance).dividedBy(1e6);a=a.plus(i)}}else if("Batch"===t.TransactionType){const n=yield t.RawTransactions.reduce(((t,n)=>r(this,void 0,void 0,(function*(){const r=yield t,i=yield y(e,n.RawTransaction);return s.default.sum(r,i)}))),Promise.resolve(new s.default(0)));a=s.default.sum(a.times(2),n)}else c&&(a=yield function(e){var t;return r(this,void 0,void 0,(function*(){const n=yield e.request({command:"server_state"}),r=null===(t=n.result.state.validated_ledger)||void 0===t?void 0:t.reserve_inc;return null==r?Promise.reject(new Error("Could not fetch Owner Reserve.")):new s.default(r)}))}(e));n>0&&(a=s.default.sum(a,o.multipliedBy(n)));const d=(0,l.xrpToDrops)(e.maxFeeXRP);return(c?a:s.default.min(a,d)).dp(0,s.default.ROUND_CEIL)}))}t.txNeedsNetworkID=d,t.setValidAddresses=function(e){f(e,"Account","SourceTag"),null!=e.Destination&&f(e,"Destination","DestinationTag"),g(e,"Authorize"),g(e,"Unauthorize"),g(e,"Owner"),g(e,"RegularKey")},t.setNextValidSequenceNumber=function(e,t){return r(this,void 0,void 0,(function*(){t.Sequence=yield p(e,t.Account)}))},t.getTransactionFee=function(e,t,n=0){return r(this,void 0,void 0,(function*(){const r=yield y(e,t,n);t.Fee=r.toString(10)}))},t.setLatestValidatedLedgerSequence=function(e,t){return r(this,void 0,void 0,(function*(){const n=yield e.getLedgerIndex();t.LastLedgerSequence=n+20}))},t.checkAccountDeleteBlockers=function(e,t){return r(this,void 0,void 0,(function*(){const n={command:"account_objects",account:t.Account,ledger_index:"validated",deletion_blockers_only:!0},r=yield e.request(n);return new Promise(((e,n)=>{r.result.account_objects.length>0&&n(new c.XrplError(`Account ${t.Account} cannot be deleted; there are Escrows, PayChannels, RippleStates, or Checks associated with the account.`,r.result.account_objects)),e()}))}))},t.handleDeliverMax=function(e){if(null!=e.DeliverMax){if(null==e.Amount&&(e.Amount=e.DeliverMax),null!=e.Amount&&e.Amount!==e.DeliverMax)throw new c.ValidationError("PaymentTransaction: Amount and DeliverMax fields must be identical when both are provided");delete e.DeliverMax}},t.autofillBatchTxn=function(e,t){var n,o,s,a;return r(this,void 0,void 0,(function*(){const r={};try{for(var l,u=!0,f=i(t.RawTransactions);l=yield f.next(),!(n=l.done);u=!0){a=l.value,u=!1;const n=a.RawTransaction;if(null==n.Sequence&&null==n.TicketSequence)if(n.Account in r)n.Sequence=r[n.Account],r[n.Account]+=1;else{const i=yield p(e,n.Account),o=n.Account===t.Account?i+1:i;r[n.Account]=o+1,n.Sequence=o}if(null==n.Fee)n.Fee="0";else if("0"!==n.Fee)throw new c.XrplError('Must have `Fee of "0" in inner Batch transaction.');if(null==n.SigningPubKey)n.SigningPubKey="";else if(""!==n.SigningPubKey)throw new c.XrplError('Must have `SigningPubKey` of "" in inner Batch transaction.');if(null!=n.TxnSignature)throw new c.XrplError("Must not have `TxnSignature` in inner Batch transaction.");if(null!=n.Signers)throw new c.XrplError("Must not have `Signers` in inner Batch transaction.");null==n.NetworkID&&d(e)&&(n.NetworkID=e.networkID)}}catch(e){o={error:e}}finally{try{u||n||!(s=f.return)||(yield s.call(f))}finally{if(o)throw o.error}}}))}},1602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.equal=t.concat=t.HEX_REGEX=void 0;const r=n(5492);t.HEX_REGEX=/^[A-F0-9]*$/iu,t.concat=function(e){return(0,r.concatBytes)(...e)},t.equal=function(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new Int8Array(e),r=new Int8Array(t);for(let t=0;t!==e.byteLength;t++)if(n[t]!==r[t])return!1;return!0}},1616:(e,t)=>{"use strict";function n(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function r(e,...t){if(!n(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function i(e,t){return!!Array.isArray(t)&&(0===t.length||(e?t.every((e=>"string"==typeof e)):t.every((e=>Number.isSafeInteger(e)))))}function o(e){if("function"!=typeof e)throw new Error("function expected");return!0}function s(e,t){if("string"!=typeof t)throw new Error(`${e}: string expected`);return!0}function a(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function c(e){if(!Array.isArray(e))throw new Error("array expected")}function l(e,t){if(!i(!0,t))throw new Error(`${e}: array of strings expected`)}function u(e,t){if(!i(!1,t))throw new Error(`${e}: array of numbers expected`)}function d(...e){const t=e=>e,n=(e,t)=>n=>e(t(n));return{encode:e.map((e=>e.encode)).reduceRight(n,t),decode:e.map((e=>e.decode)).reduce(n,t)}}function f(e){const t="string"==typeof e?e.split(""):e,n=t.length;l("alphabet",t);const r=new Map(t.map(((e,t)=>[e,t])));return{encode:r=>(c(r),r.map((r=>{if(!Number.isSafeInteger(r)||r<0||r>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${r}". Allowed: ${e}`);return t[r]}))),decode:t=>(c(t),t.map((t=>{s("alphabet.decode",t);const n=r.get(t);if(void 0===n)throw new Error(`Unknown letter: "${t}". Allowed: ${e}`);return n})))}}function h(e=""){return s("join",e),{encode:t=>(l("join.decode",t),t.join(e)),decode:t=>(s("join.decode",t),t.split(e))}}function g(e,t="="){return a(e),s("padding",t),{encode(n){for(l("padding.encode",n);n.length*e%8;)n.push(t);return n},decode(n){l("padding.decode",n);let r=n.length;if(r*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if((r-1)*e%8==0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,r)}}}function p(e){return o(e),{encode:e=>e,decode:t=>e(t)}}function y(e,t,n){if(t<2)throw new Error(`convertRadix: invalid from=${t}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(c(e),!e.length)return[];let r=0;const i=[],o=Array.from(e,(e=>{if(a(e),e<0||e>=t)throw new Error(`invalid integer: ${e}`);return e})),s=o.length;for(;;){let e=0,a=!0;for(let i=r;i<s;i++){const s=o[i],c=t*e,l=c+s;if(!Number.isSafeInteger(l)||c/t!==e||l-s!==c)throw new Error("convertRadix: carry overflow");const u=l/n;e=l%n;const d=Math.floor(u);if(o[i]=d,!Number.isSafeInteger(d)||d*n+e!==l)throw new Error("convertRadix: carry overflow");a&&(d?a=!1:r=i)}if(i.push(e),a)break}for(let t=0;t<e.length-1&&0===e[t];t++)i.push(0);return i.reverse()}Object.defineProperty(t,"__esModule",{value:!0}),t.bytes=t.stringToBytes=t.str=t.bytesToString=t.hex=t.utf8=t.bech32m=t.bech32=t.base58check=t.createBase58check=t.base58xmr=t.base58xrp=t.base58flickr=t.base58=t.base64urlnopad=t.base64url=t.base64nopad=t.base64=t.base32crockford=t.base32hexnopad=t.base32hex=t.base32nopad=t.base32=t.base16=t.utils=void 0;const m=(e,t)=>0===t?e:m(t,e%t),A=(e,t)=>e+(t-m(e,t)),E=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function b(e,t,n,r){if(c(e),t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(A(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${A(t,n)}`);let i=0,o=0;const s=E[t],l=E[n]-1,u=[];for(const r of e){if(a(r),r>=s)throw new Error(`convertRadix2: invalid data word=${r} from=${t}`);if(i=i<<t|r,o+t>32)throw new Error(`convertRadix2: carry overflow pos=${o} from=${t}`);for(o+=t;o>=n;o-=n)u.push((i>>o-n&l)>>>0);const e=E[o];if(void 0===e)throw new Error("invalid carry");i&=e-1}if(i=i<<n-o&l,!r&&o>=t)throw new Error("Excess padding");if(!r&&i>0)throw new Error(`Non-zero padding: ${i}`);return r&&o>0&&u.push(i>>>0),u}function w(e){return a(e),{encode:t=>{if(!n(t))throw new Error("radix.encode input should be Uint8Array");return y(Array.from(t),256,e)},decode:t=>(u("radix.decode",t),Uint8Array.from(y(t,e,256)))}}function S(e,t=!1){if(a(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(A(8,e)>32||A(e,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!n(r))throw new Error("radix2.encode input should be Uint8Array");return b(Array.from(r),8,e,!t)},decode:n=>(u("radix2.decode",n),Uint8Array.from(b(n,e,8,t)))}}function v(e){return o(e),function(...t){try{return e.apply(null,t)}catch(e){}}}function T(e,t){return a(e),o(t),{encode(r){if(!n(r))throw new Error("checksum.encode: input should be Uint8Array");const i=t(r).slice(0,e),o=new Uint8Array(r.length+e);return o.set(r),o.set(i,r.length),o},decode(r){if(!n(r))throw new Error("checksum.decode: input should be Uint8Array");const i=r.slice(0,-e),o=r.slice(-e),s=t(i).slice(0,e);for(let t=0;t<e;t++)if(s[t]!==o[t])throw new Error("Invalid checksum");return i}}}t.utils={alphabet:f,chain:d,checksum:T,convertRadix:y,convertRadix2:b,radix:w,radix2:S,join:h,padding:g},t.base16=d(S(4),f("0123456789ABCDEF"),h("")),t.base32=d(S(5),f("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),g(5),h("")),t.base32nopad=d(S(5),f("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),h("")),t.base32hex=d(S(5),f("0123456789ABCDEFGHIJKLMNOPQRSTUV"),g(5),h("")),t.base32hexnopad=d(S(5),f("0123456789ABCDEFGHIJKLMNOPQRSTUV"),h("")),t.base32crockford=d(S(5),f("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),h(""),p((e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))));const O=(()=>"function"==typeof Uint8Array.from([]).toBase64&&"function"==typeof Uint8Array.fromBase64)(),I=(e,t)=>{s("base64",e);const n=t?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/,r=t?"base64url":"base64";if(e.length>0&&!n.test(e))throw new Error("invalid base64");return Uint8Array.fromBase64(e,{alphabet:r,lastChunkHandling:"strict"})};t.base64=O?{encode:e=>(r(e),e.toBase64()),decode:e=>I(e,!1)}:d(S(6),f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),g(6),h("")),t.base64nopad=d(S(6),f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),h("")),t.base64url=O?{encode:e=>(r(e),e.toBase64({alphabet:"base64url"})),decode:e=>I(e,!0)}:d(S(6),f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),g(6),h("")),t.base64urlnopad=d(S(6),f("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),h(""));const _=e=>d(w(58),f(e),h(""));t.base58=_("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),t.base58flickr=_("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),t.base58xrp=_("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const L=[0,2,3,5,6,7,9,10,11];t.base58xmr={encode(e){let n="";for(let r=0;r<e.length;r+=8){const i=e.subarray(r,r+8);n+=t.base58.encode(i).padStart(L[i.length],"1")}return n},decode(e){let n=[];for(let r=0;r<e.length;r+=11){const i=e.slice(r,r+11),o=L.indexOf(i.length),s=t.base58.decode(i);for(let e=0;e<s.length-o;e++)if(0!==s[e])throw new Error("base58xmr: wrong padding");n=n.concat(Array.from(s.slice(s.length-o)))}return Uint8Array.from(n)}},t.createBase58check=e=>d(T(4,(t=>e(e(t)))),t.base58),t.base58check=t.createBase58check;const C=d(f("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),h("")),N=[996825010,642813549,513874426,1027748829,705979059];function B(e){const t=e>>25;let n=(33554431&e)<<5;for(let e=0;e<N.length;e++)1==(t>>e&1)&&(n^=N[e]);return n}function F(e,t,n=1){const r=e.length;let i=1;for(let t=0;t<r;t++){const n=e.charCodeAt(t);if(n<33||n>126)throw new Error(`Invalid prefix (${e})`);i=B(i)^n>>5}i=B(i);for(let t=0;t<r;t++)i=B(i)^31&e.charCodeAt(t);for(let e of t)i=B(i)^e;for(let e=0;e<6;e++)i=B(i);return i^=n,C.encode(b([i%E[30]],30,5,!1))}function D(e){const t="bech32"===e?1:734539939,r=S(5),i=r.decode,o=r.encode,a=v(i);function c(e,r,i=90){s("bech32.encode prefix",e),n(r)&&(r=Array.from(r)),u("bech32.encode",r);const o=e.length;if(0===o)throw new TypeError(`Invalid prefix length ${o}`);const a=o+7+r.length;if(!1!==i&&a>i)throw new TypeError(`Length ${a} exceeds limit ${i}`);const c=e.toLowerCase(),l=F(c,r,t);return`${c}1${C.encode(r)}${l}`}function l(e,n=90){s("bech32.decode input",e);const r=e.length;if(r<8||!1!==n&&r>n)throw new TypeError(`invalid string length: ${r} (${e}). Expected (8..${n})`);const i=e.toLowerCase();if(e!==i&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");const o=i.lastIndexOf("1");if(0===o||-1===o)throw new Error('Letter "1" must be present between prefix and data only');const a=i.slice(0,o),c=i.slice(o+1);if(c.length<6)throw new Error("Data must be at least 6 characters long");const l=C.decode(c).slice(0,-6),u=F(a,l,t);if(!c.endsWith(u))throw new Error(`Invalid checksum in ${e}: expected "${u}"`);return{prefix:a,words:l}}return{encode:c,decode:l,encodeFromBytes:function(e,t){return c(e,o(t))},decodeToBytes:function(e){const{prefix:t,words:n}=l(e,!1);return{prefix:t,words:n,bytes:i(n)}},decodeUnsafe:v(l),fromWords:i,fromWordsUnsafe:a,toWords:o}}t.bech32=D("bech32"),t.bech32m=D("bech32m"),t.utf8={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)};const M=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),P={encode:e=>(r(e),e.toHex()),decode:e=>(s("hex",e),Uint8Array.fromHex(e))};t.hex=M?P:d(S(4),f("0123456789abcdef"),h(""),p((e=>{if("string"!=typeof e||e.length%2!=0)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})));const x={utf8:t.utf8,hex:t.hex,base16:t.base16,base32:t.base32,base64:t.base64,base64url:t.base64url,base58:t.base58,base58xmr:t.base58xmr},R="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr";t.bytesToString=(e,t)=>{if("string"!=typeof e||!x.hasOwnProperty(e))throw new TypeError(R);if(!n(t))throw new TypeError("bytesToString() expects Uint8Array");return x[e].encode(t)},t.str=t.bytesToString,t.stringToBytes=(e,t)=>{if(!x.hasOwnProperty(e))throw new TypeError(R);if("string"!=typeof t)throw new TypeError("stringToBytes() expects string");return x[e].decode(t)},t.bytes=t.stringToBytes},1658:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;const i=n(6557),o=r(n(2635));t.ripemd160=(0,o.default)(i.ripemd160)},1664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSetRegularKey=void 0;const r=n(255),i=n(2794);t.validateSetRegularKey=function(e){if((0,i.validateBaseTransaction)(e),void 0!==e.RegularKey&&"string"!=typeof e.RegularKey)throw new r.ValidationError("SetRegularKey: RegularKey must be a string")}},1722:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePaymentChannelCreate=void 0;const r=n(255),i=n(2794);t.validatePaymentChannelCreate=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.Amount)throw new r.ValidationError("PaymentChannelCreate: missing Amount");if("string"!=typeof e.Amount)throw new r.ValidationError("PaymentChannelCreate: Amount must be a string");if((0,i.validateRequiredField)(e,"Destination",i.isAccount),(0,i.validateOptionalField)(e,"DestinationTag",i.isNumber),void 0===e.SettleDelay)throw new r.ValidationError("PaymentChannelCreate: missing SettleDelay");if("number"!=typeof e.SettleDelay)throw new r.ValidationError("PaymentChannelCreate: SettleDelay must be a number");if(void 0===e.PublicKey)throw new r.ValidationError("PaymentChannelCreate: missing PublicKey");if("string"!=typeof e.PublicKey)throw new r.ValidationError("PaymentChannelCreate: PublicKey must be a string");if(void 0!==e.CancelAfter&&"number"!=typeof e.CancelAfter)throw new r.ValidationError("PaymentChannelCreate: CancelAfter must be a number")}},1726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashMD=void 0,t.setBigUint64=o,t.Chi=function(e,t,n){return e&t^~e&n},t.Maj=function(e,t,n){return e&t^e&n^t&n};const r=n(5697),i=n(4211);function o(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,l=r?0:4;e.setUint32(t+c,s,r),e.setUint32(t+l,a,r)}class s extends i.Hash{constructor(e,t,n,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){(0,r.aexists)(this);const{view:t,buffer:n,blockLen:o}=this,s=(e=(0,i.toBytes)(e)).length;for(let r=0;r<s;){const a=Math.min(o-this.pos,s-r);if(a!==o)n.set(e.subarray(r,r+a),this.pos),this.pos+=a,r+=a,this.pos===o&&(this.process(t,0),this.pos=0);else{const t=(0,i.createView)(e);for(;o<=s-r;r+=o)this.process(t,r)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.aexists)(this),(0,r.aoutput)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:s,isLE:a}=this;let{pos:c}=this;t[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>s-c&&(this.process(n,0),c=0);for(let e=c;e<s;e++)t[e]=0;o(n,s-8,BigInt(8*this.length),a),this.process(n,0);const l=(0,i.createView)(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=u/4,f=this.get();if(d>f.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<d;e++)l.setUint32(4*e,f[e],a)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return e.length=r,e.pos=s,e.finished=i,e.destroyed=o,r%t&&e.buffer.set(n),e}}t.HashMD=s},1781:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SignerListFlags=void 0,function(e){e[e.lsfOneOwnerCount=65536]="lsfOneOwnerCount"}(n||(t.SignerListFlags=n={}))},1788:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.getAlgorithmFromPrivateKey=t.getAlgorithmFromPublicKey=t.getAlgorithmFromKey=void 0,function(e){e[e.NONE=-1]="NONE",e[e.ED25519=237]="ED25519",e[e.SECP256K1_PUB_X=2]="SECP256K1_PUB_X",e[e.SECP256K1_PUB_X_ODD_Y=3]="SECP256K1_PUB_X_ODD_Y",e[e.SECP256K1_PUB_XY=4]="SECP256K1_PUB_XY",e[e.SECP256K1_PRIVATE=0]="SECP256K1_PRIVATE"}(n||(n={}));const r={[`private_${n.NONE}_32`]:"ecdsa-secp256k1",[`private_${n.SECP256K1_PRIVATE}_33`]:"ecdsa-secp256k1",[`private_${n.ED25519}_33`]:"ed25519",[`public_${n.ED25519}_33`]:"ed25519",[`public_${n.SECP256K1_PUB_X}_33`]:"ecdsa-secp256k1",[`public_${n.SECP256K1_PUB_X_ODD_Y}_33`]:"ecdsa-secp256k1",[`public_${n.SECP256K1_PUB_XY}_65`]:"ecdsa-secp256k1"};function i(e){return e===n.NONE?"None":`0x${e.toString(16).padStart(2,"0")}`}function o(e,t){const{prefix:o,len:s}=function(e){return{prefix:e.length<2?n.NONE:parseInt(e.slice(0,2),16),len:e.length/2}}(e),a="private"===t&&32===s?n.NONE:o,c=r[`${t}_${a}_${s}`];if(!c)throw new Error(function({key:e,type:t,prefix:n,len:o}){const s=function(e){const t=17,n=6;return Object.entries(r).filter((([t])=>t.startsWith(e))).map((([e,r])=>{const[,o,s]=e.split("_");return`${r.padEnd(t)} - Prefix: ${i(Number(o)).padEnd(n)} Length: ${s} bytes`})).join("\n")}(t);return`invalid_key:\n\nType: ${t}\nKey: ${e}\nPrefix: ${i(n)} \nLength: ${o} bytes\n\nAcceptable ${t} formats are:\n${s}\n`}({key:e,type:t,len:s,prefix:a}));return c}t.getAlgorithmFromKey=o,t.getAlgorithmFromPublicKey=function(e){return o(e,"public")},t.getAlgorithmFromPrivateKey=function(e){return o(e,"private")}},1811:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateVaultSet=void 0;const r=n(255),i=n(99),o=n(2794);t.validateVaultSet=function(e){if((0,o.validateBaseTransaction)(e),(0,o.validateRequiredField)(e,"VaultID",o.isString),(0,o.validateOptionalField)(e,"Data",o.isString),(0,o.validateOptionalField)(e,"AssetsMaximum",o.isXRPLNumber),(0,o.validateOptionalField)(e,"DomainID",o.isString),void 0!==e.Data){const t=e.Data;if(!(0,i.isHex)(t))throw new r.ValidationError("VaultSet: Data must be a valid hex string");const n=t.length/2;if(n>o.VAULT_DATA_MAX_BYTE_LENGTH)throw new r.ValidationError(`VaultSet: Data exceeds ${o.VAULT_DATA_MAX_BYTE_LENGTH} bytes (actual: ${n})`)}}},1837:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Issue=void 0;const r=n(619),i=n(892),o=n(5763),s=n(5967),a=n(1275),c=n(6905);class l extends a.SerializedType{constructor(e){super(null!=e?e:l.ZERO_ISSUED_CURRENCY.bytes)}static from(e){if(e instanceof l)return e;if(function(e){const t=Object.keys(e).sort(),n=1===t.length&&"currency"===t[0],r=2===t.length&&"currency"===t[0]&&"issuer"===t[1],i=1===t.length&&"mpt_issuance_id"===t[0];return n||r||i}(e)){if(e.currency){const t=s.Currency.from(e.currency.toString()).toBytes();if(e.issuer){const n=o.AccountID.from(e.issuer.toString()).toBytes();return new l((0,r.concat)([t,n]))}return new l(t)}if(e.mpt_issuance_id){const t=c.Hash192.from(e.mpt_issuance_id.toString()).toBytes();return new l(t)}}throw new Error("Invalid type to construct an Amount")}static fromParser(e,t){if(t===c.Hash192.width){const t=e.read(c.Hash192.width);return new l(t)}const n=e.read(20);if("XRP"===new s.Currency(n).toJSON())return new l(n);const i=[n,e.read(20)];return new l((0,r.concat)(i))}toJSON(){if(this.toBytes().length===c.Hash192.width)return{mpt_issuance_id:this.toHex().toUpperCase()};const e=new i.BinaryParser(this.toString()),t=s.Currency.fromParser(e);if("XRP"===t.toJSON())return{currency:t.toJSON()};const n=o.AccountID.fromParser(e);return{currency:t.toJSON(),issuer:n.toJSON()}}}t.Issue=l,l.ZERO_ISSUED_CURRENCY=new l(new Uint8Array(20))},1845:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},1862:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Array.isArray(e)?new Uint8Array(e):e}},1933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainAddClaimAttestation=void 0;const r=n(2794);t.validateXChainAddClaimAttestation=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"Amount",r.isAmount),(0,r.validateRequiredField)(e,"AttestationRewardAccount",r.isAccount),(0,r.validateRequiredField)(e,"AttestationSignerAccount",r.isAccount),(0,r.validateOptionalField)(e,"Destination",r.isAccount),(0,r.validateRequiredField)(e,"OtherChainSource",r.isAccount),(0,r.validateRequiredField)(e,"PublicKey",r.isString),(0,r.validateRequiredField)(e,"Signature",r.isString),(0,r.validateRequiredField)(e,"WasLockingChainSend",(e=>0===e||1===e)),(0,r.validateRequiredField)(e,"XChainBridge",r.isXChainBridge),(0,r.validateRequiredField)(e,"XChainClaimID",(e=>(0,r.isNumber)(e)||(0,r.isString)(e)))}},1998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashMD=void 0,t.setBigUint64=o,t.Chi=function(e,t,n){return e&t^~e&n},t.Maj=function(e,t,n){return e&t^e&n^t&n};const r=n(5489),i=n(9987);function o(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,l=r?0:4;e.setUint32(t+c,s,r),e.setUint32(t+l,a,r)}class s extends i.Hash{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.createView)(this.buffer)}update(e){(0,r.aexists)(this);const{view:t,buffer:n,blockLen:o}=this,s=(e=(0,i.toBytes)(e)).length;for(let r=0;r<s;){const a=Math.min(o-this.pos,s-r);if(a!==o)n.set(e.subarray(r,r+a),this.pos),this.pos+=a,r+=a,this.pos===o&&(this.process(t,0),this.pos=0);else{const t=(0,i.createView)(e);for(;o<=s-r;r+=o)this.process(t,r)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.aexists)(this),(0,r.aoutput)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:s,isLE:a}=this;let{pos:c}=this;t[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>s-c&&(this.process(n,0),c=0);for(let e=c;e<s;e++)t[e]=0;o(n,s-8,BigInt(8*this.length),a),this.process(n,0);const l=(0,i.createView)(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=u/4,f=this.get();if(d>f.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<d;e++)l.setUint32(4*e,f[e],a)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return e.length=r,e.pos=s,e.finished=i,e.destroyed=o,r%t&&e.buffer.set(n),e}}t.HashMD=s},2152:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePaymentChannelClaim=t.PaymentChannelClaimFlags=void 0;const r=n(255),i=n(2794);var o;!function(e){e[e.tfRenew=65536]="tfRenew",e[e.tfClose=131072]="tfClose"}(o||(t.PaymentChannelClaimFlags=o={})),t.validatePaymentChannelClaim=function(e){if((0,i.validateBaseTransaction)(e),(0,i.validateCredentialsList)(e.CredentialIDs,e.TransactionType,!0,i.MAX_AUTHORIZED_CREDENTIALS),void 0===e.Channel)throw new r.ValidationError("PaymentChannelClaim: missing Channel");if("string"!=typeof e.Channel)throw new r.ValidationError("PaymentChannelClaim: Channel must be a string");if(void 0!==e.Balance&&"string"!=typeof e.Balance)throw new r.ValidationError("PaymentChannelClaim: Balance must be a string");if(void 0!==e.Amount&&"string"!=typeof e.Amount)throw new r.ValidationError("PaymentChannelClaim: Amount must be a string");if(void 0!==e.Signature&&"string"!=typeof e.Signature)throw new r.ValidationError("PaymentChannelClaim: Signature must be a string");if(void 0!==e.PublicKey&&"string"!=typeof e.PublicKey)throw new r.ValidationError("PaymentChannelClaim: PublicKey must be a string")}},2190:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMVote=void 0;const r=n(255),i=n(9966),o=n(2794);t.validateAMMVote=function(e){if((0,o.validateBaseTransaction)(e),null==e.Asset)throw new r.ValidationError("AMMVote: missing field Asset");if(!(0,o.isIssuedCurrency)(e.Asset))throw new r.ValidationError("AMMVote: Asset must be a Currency");if(null==e.Asset2)throw new r.ValidationError("AMMVote: missing field Asset2");if(!(0,o.isIssuedCurrency)(e.Asset2))throw new r.ValidationError("AMMVote: Asset2 must be a Currency");if(null==e.TradingFee)throw new r.ValidationError("AMMVote: missing field TradingFee");if("number"!=typeof e.TradingFee)throw new r.ValidationError("AMMVote: TradingFee must be a number");if(e.TradingFee<0||e.TradingFee>i.AMM_MAX_TRADING_FEE)throw new r.ValidationError(`AMMVote: TradingFee must be between 0 and ${i.AMM_MAX_TRADING_FEE}`)}},2283:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=t.SHA256=void 0;const r=n(1726),i=n(4211),o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),a=new Uint32Array(64);class c extends r.HashMD{constructor(e=32){super(64,e,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:o,G:s,H:a}=this;return[e,t,n,r,i,o,s,a]}set(e,t,n,r,i,o,s,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let n=0;n<16;n++,t+=4)a[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=a[e-15],n=a[e-2],r=(0,i.rotr)(t,7)^(0,i.rotr)(t,18)^t>>>3,o=(0,i.rotr)(n,17)^(0,i.rotr)(n,19)^n>>>10;a[e]=o+a[e-7]+r+a[e-16]|0}let{A:n,B:s,C:c,D:l,E:u,F:d,G:f,H:h}=this;for(let e=0;e<64;e++){const t=h+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+(0,r.Chi)(u,d,f)+o[e]+a[e]|0,g=((0,i.rotr)(n,2)^(0,i.rotr)(n,13)^(0,i.rotr)(n,22))+(0,r.Maj)(n,s,c)|0;h=f,f=d,d=u,u=l+t|0,l=c,c=s,s=n,n=t+g|0}n=n+this.A|0,s=s+this.B|0,c=c+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,f=f+this.G|0,h=h+this.H|0,this.set(n,s,c,l,u,d,f,h)}roundClean(){a.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}t.SHA256=c;class l extends c{constructor(){super(28),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868}}t.sha256=(0,i.wrapConstructor)((()=>new c)),t.sha224=(0,i.wrapConstructor)((()=>new l))},2295:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isoTimeToRippleTime=t.rippleTimeToISOTime=t.unixTimeToRippleTime=t.rippleTimeToUnixTime=void 0;const n=946684800;function r(e){return 1e3*(e+n)}function i(e){return Math.round(e/1e3)-n}t.rippleTimeToUnixTime=r,t.unixTimeToRippleTime=i,t.rippleTimeToISOTime=function(e){return new Date(r(e)).toISOString()},t.isoTimeToRippleTime=function(e){return i(("string"==typeof e?new Date(e):e).getTime())}},2404:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateVaultDelete=void 0;const r=n(2794);t.validateVaultDelete=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"VaultID",r.isString)}},2476:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeLedgerData=t.ledgerHash=t.transactionTreeHash=t.accountStateHash=void 0;const r=n(8390),i=n(7375),o=n(7410),s=n(9543),a=n(8264),c=n(8847),l=n(5463),u=n(4200),d=n(401),f=n(892);function h(e,t){const n=new r.ShaMap;return t.forEach((t=>n.addItem(...e(t)))),n.hash()}function g(e){if(!e.hash)throw new Error;return[a.Hash256.from(e.hash),{hashPrefix:()=>i.HashPrefix.transaction,toBytesSink(t){const n=new s.BinarySerializer(t);n.writeLengthEncoded(c.STObject.from(e)),n.writeLengthEncoded(c.STObject.from(e.metaData))}},void 0]}function p(e){const t=a.Hash256.from(e.index),n=(0,s.serializeObject)(e);return[t,{hashPrefix:()=>i.HashPrefix.accountStateEntry,toBytesSink(e){e.put(n)}},void 0]}t.transactionTreeHash=function(e){return h(g,e)},t.accountStateHash=function(e){return h(p,e)},t.ledgerHash=function(e){const t=new o.Sha512Half;if(t.put(i.HashPrefix.ledgerHeader),void 0===e.parent_close_time||void 0===e.close_flags)throw new Error;return u.UInt32.from(e.ledger_index).toBytesSink(t),l.UInt64.from(BigInt(String(e.total_coins))).toBytesSink(t),a.Hash256.from(e.parent_hash).toBytesSink(t),a.Hash256.from(e.transaction_hash).toBytesSink(t),a.Hash256.from(e.account_hash).toBytesSink(t),u.UInt32.from(e.parent_close_time).toBytesSink(t),u.UInt32.from(e.close_time).toBytesSink(t),d.UInt8.from(e.close_time_resolution).toBytesSink(t),d.UInt8.from(e.close_flags).toBytesSink(t),t.finish()},t.decodeLedgerData=function(e,t){if("string"!=typeof e)throw new Error("binary must be a hex string");const n=new f.BinaryParser(e,t);return{ledger_index:n.readUInt32(),total_coins:n.readType(l.UInt64).valueOf().toString(),parent_hash:n.readType(a.Hash256).toHex(),transaction_hash:n.readType(a.Hash256).toHex(),account_hash:n.readType(a.Hash256).toHex(),parent_close_time:n.readUInt32(),close_time:n.readUInt32(),close_time_resolution:n.readUInt8(),close_flags:n.readUInt8()}}},2484:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(3449),o=n(9005),s=n(619),a=n(8957),c=r(n(3212)),l=r(n(4876)),u={deriveKeypair(e,t){const n=(0,a.derivePrivateKey)(e,t);return{privateKey:"00"+(0,s.bytesToHex)((0,i.numberToBytesBE)(n,32)),publicKey:(0,s.bytesToHex)(o.secp256k1.getPublicKey(n,!0))}},sign(e,t){c.default.ok(66===t.length&&t.startsWith("00")||64===t.length);const n=66===t.length?t.slice(2):t;return o.secp256k1.sign(l.default.half(e),n,{lowS:!0,extraEntropy:void 0}).toDERHex(!0).toUpperCase()},verify(e,t,n){const r=o.secp256k1.Signature.fromDER(t);return o.secp256k1.verify(r,l.default.half(e),n)}};t.default=u},2530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2896),i=n(619);t.default=function(e){return(0,i.bytesToHex)((0,r.sha512)((0,i.hexToBytes)(e)).slice(0,32))}},2588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Account=void 0;const r=n(5442),i=n(8161);t.Account=class{constructor(e){this._account={familySeed:"",address:"",keypair:{publicKey:"",privateKey:""}},"string"==typeof e?this._secret=(0,i.parseSecretString)(e):Array.isArray(e)?this._secret=e:e instanceof Uint8Array?this._secret=(0,i.entropyToSecret)(e):this._secret=(0,i.randomSecret)(),function(e){if(8!==e.length)throw new Error("Secret must have 8 numbers");e.forEach((e=>{if(6!==e.length)throw new Error("Each secret number must be 6 digits")}))}(this._secret),this.derive()}getSecret(){return this._secret}getSecretString(){return this._secret.join(" ")}getAddress(){return this._account.address}getFamilySeed(){return this._account.familySeed}getKeypair(){return this._account.keypair}toString(){return this.getSecretString()}derive(){try{const e=(0,i.secretToEntropy)(this._secret);this._account.familySeed=(0,r.generateSeed)({entropy:e}),this._account.keypair=(0,r.deriveKeypair)(this._account.familySeed),this._account.address=(0,r.deriveAddress)(this._account.keypair.publicKey)}catch(e){let t="Unknown Error";throw e instanceof Error&&(t=e.message),new Error(t)}}}},2635:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(1862));t.default=function(e){function t(t){return e((0,i.default)(t))}return t.create=()=>{const t=e.create();return{update(e){return t.update((0,i.default)(e)),this},digest:()=>t.digest()}},t}},2722:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.xrpToDrops=t.dropsToXrp=void 0;const i=r(n(735)),o=n(255),s=1e6,a=/^-?[0-9.]+$/u;t.dropsToXrp=function(e){const t=new i.default(e).toString(10);if("string"==typeof e&&"NaN"===t)throw new o.ValidationError(`dropsToXrp: invalid value '${e}', should be a BigNumber or string-encoded number.`);if(t.includes("."))throw new o.ValidationError(`dropsToXrp: value '${t}' has too many decimal places.`);if(!a.exec(t))throw new o.ValidationError(`dropsToXrp: failed sanity check - value '${t}', does not match (^-?[0-9]+$).`);return new i.default(t).dividedBy(s).toNumber()},t.xrpToDrops=function(e){const t=new i.default(e).toString(10);if("string"==typeof e&&"NaN"===t)throw new o.ValidationError(`xrpToDrops: invalid value '${e}', should be a BigNumber or string-encoded number.`);if(!a.exec(t))throw new o.ValidationError(`xrpToDrops: failed sanity check - value '${t}', does not match (^-?[0-9.]+$).`);const n=t.split(".");if(n.length>2)throw new o.ValidationError(`xrpToDrops: failed sanity check - value '${t}' has too many decimal points.`);if((n[1]||"0").length>6)throw new o.ValidationError(`xrpToDrops: value '${t}' has too many decimal places.`);return new i.default(t).times(s).integerValue(i.default.ROUND_FLOOR).toString(10)}},2794:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.containsDuplicates=t.validateCredentialsList=t.validateCredentialType=t.parseAmountValue=t.validateBaseTransaction=t.GlobalFlags=t.validateOptionalField=t.validateRequiredField=t.isArray=t.isXChainBridge=t.isAmount=t.isAccount=t.isClawbackAmount=t.isMPTAmount=t.isAuthorizeCredential=t.isIssuedCurrencyAmount=t.isIssuedCurrency=t.isCurrency=t.isXRPLNumber=t.isNumber=t.isString=t.isRecord=t.VAULT_DATA_MAX_BYTE_LENGTH=t.MAX_AUTHORIZED_CREDENTIALS=void 0;const r=n(619),i=n(6333),o=n(5620),s=n(255),a=n(99);function c(e){if(!u(e))return!1;const t=e.Memo;if(!u(t))return!1;const n=Object.keys(t).length,r=null==t.MemoData||d(t.MemoData)&&(0,a.isHex)(t.MemoData),i=null==t.MemoFormat||d(t.MemoFormat)&&(0,a.isHex)(t.MemoFormat),o=null==t.MemoType||d(t.MemoType)&&(0,a.isHex)(t.MemoType);return n>=1&&n<=3&&r&&i&&o&&(0,a.onlyHasFields)(t,["MemoFormat","MemoData","MemoType"])}function l(e){if(!u(e))return!1;const t=e.Signer;return!!u(t)&&3===Object.keys(t).length&&d(t.Account)&&d(t.TxnSignature)&&d(t.SigningPubKey)}function u(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function d(e){return"string"==typeof e}function f(e){return"number"==typeof e}function h(e){return u(e)&&(2===Object.keys(e).length&&d(e.issuer)&&d(e.currency)||1===Object.keys(e).length&&"XRP"===e.currency)}function g(e){return u(e)&&3===Object.keys(e).length&&d(e.value)&&d(e.issuer)&&d(e.currency)}function p(e){return u(e)&&u(e.Credential)&&1===Object.keys(e).length&&"string"==typeof e.Credential.CredentialType&&"string"==typeof e.Credential.Issuer}function y(e){return u(e)&&2===Object.keys(e).length&&"string"==typeof e.value&&"string"==typeof e.mpt_issuance_id}function m(e){return"string"==typeof e&&((0,i.isValidClassicAddress)(e)||(0,i.isValidXAddress)(e))}function A(e){return"string"==typeof e||g(e)||y(e)}function E(e){return null!=e&&Array.isArray(e)}function b(e,t,n,r={}){var i,o;const a=null!==(i=r.paramName)&&void 0!==i?i:t,c=null!==(o=r.txType)&&void 0!==o?o:e.TransactionType;if(null==e[t])throw new s.ValidationError(`${c}: missing field ${String(a)}`);if(!n(e[t]))throw new s.ValidationError(`${c}: invalid field ${String(a)}`)}function w(e,t,n,r={}){var i,o;const a=null!==(i=r.paramName)&&void 0!==i?i:t,c=null!==(o=r.txType)&&void 0!==o?o:e.TransactionType;if(void 0!==e[t]&&!n(e[t]))throw new s.ValidationError(`${c}: invalid field ${String(a)}`)}var S;function v(e){if("string"==typeof e[0])return new Set(e.map((e=>JSON.stringify(e)))).size!==e.length;const t=new Set;if("string"!=typeof e[0])for(const n of e){const e=`${n.Credential.Issuer}-${n.Credential.CredentialType}`;if(t.has(e))return!0;t.add(e)}return!1}t.MAX_AUTHORIZED_CREDENTIALS=8,t.VAULT_DATA_MAX_BYTE_LENGTH=256,t.isRecord=u,t.isString=d,t.isNumber=f,t.isXRPLNumber=function(e){return"string"==typeof e&&/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][-+]?\d+)?$/u.test(e.trim())},t.isCurrency=function(e){return d(e)||h(e)},t.isIssuedCurrency=h,t.isIssuedCurrencyAmount=g,t.isAuthorizeCredential=p,t.isMPTAmount=y,t.isClawbackAmount=function(e){return g(e)||y(e)},t.isAccount=m,t.isAmount=A,t.isXChainBridge=function(e){return u(e)&&4===Object.keys(e).length&&"string"==typeof e.LockingChainDoor&&h(e.LockingChainIssue)&&"string"==typeof e.IssuingChainDoor&&h(e.IssuingChainIssue)},t.isArray=E,t.validateRequiredField=b,t.validateOptionalField=w,function(e){e[e.tfInnerBatchTxn=1073741824]="tfInnerBatchTxn"}(S||(t.GlobalFlags=S={})),t.validateBaseTransaction=function(e){if(!u(e))throw new s.ValidationError("BaseTransaction: invalid, expected a valid object");if(void 0===e.TransactionType)throw new s.ValidationError("BaseTransaction: missing field TransactionType");if("string"!=typeof e.TransactionType)throw new s.ValidationError("BaseTransaction: TransactionType not string");if(!o.TRANSACTION_TYPES.includes(e.TransactionType))throw new s.ValidationError(`BaseTransaction: Unknown TransactionType ${e.TransactionType}`);b(e,"Account",d),w(e,"Fee",d),w(e,"Sequence",f),w(e,"AccountTxnID",d),w(e,"LastLedgerSequence",f);const t=e.Memos;if(!(null==t||E(t)&&t.every(c)))throw new s.ValidationError("BaseTransaction: invalid Memos");const n=e.Signers;if(!(null==n||E(n)&&0!==n.length&&n.every(l)))throw new s.ValidationError("BaseTransaction: invalid Signers");w(e,"SourceTag",f),w(e,"SigningPubKey",d),w(e,"TicketSequence",f),w(e,"TxnSignature",d),w(e,"NetworkID",f),w(e,"Delegate",m);const r=e.Delegate;if(null!=r&&r===e.Account)throw new s.ValidationError("BaseTransaction: Account and Delegate addresses cannot be the same")},t.parseAmountValue=function(e){return A(e)?"string"==typeof e?parseFloat(e):parseFloat(e.value):NaN},t.validateCredentialType=function(e){if("string"!=typeof e.TransactionType)throw new s.ValidationError("Invalid TransactionType");if(void 0===e.CredentialType)throw new s.ValidationError(`${e.TransactionType}: missing field CredentialType`);if(!d(e.CredentialType))throw new s.ValidationError(`${e.TransactionType}: CredentialType must be a string`);if(0===e.CredentialType.length)throw new s.ValidationError(`${e.TransactionType}: CredentialType cannot be an empty string`);if(e.CredentialType.length>128)throw new s.ValidationError(`${e.TransactionType}: CredentialType length cannot be > 128`);if(!r.HEX_REGEX.test(e.CredentialType))throw new s.ValidationError(`${e.TransactionType}: CredentialType must be encoded in hex`)},t.validateCredentialsList=function(e,t,n,r){if(null!=e){if(!E(e))throw new s.ValidationError(`${t}: Credentials must be an array`);if(e.length>r)throw new s.ValidationError(`${t}: Credentials length cannot exceed ${r} elements`);if(0===e.length)throw new s.ValidationError(`${t}: Credentials cannot be an empty array`);if(e.forEach((e=>{if(n){if(!d(e))throw new s.ValidationError(`${t}: Invalid Credentials ID list format`)}else if(!p(e))throw new s.ValidationError(`${t}: Invalid Credentials format`)})),v(e))throw new s.ValidationError(`${t}: Credentials cannot contain duplicate elements`)}},t.containsDuplicates=v},2824:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatArgs=t.arrayEqual=void 0,t.arrayEqual=function(e,t){return e.length===t.length&&e.every(((e,n)=>e===t[n]))},t.concatArgs=function(...e){return e.flatMap((e=>"number"==typeof e?[e]:Array.from(e)))}},2859:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateCheckCreate=void 0;const r=n(255),i=n(2794);t.validateCheckCreate=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.SendMax)throw new r.ValidationError("CheckCreate: missing field SendMax");if((0,i.validateRequiredField)(e,"Destination",i.isAccount),(0,i.validateOptionalField)(e,"DestinationTag",i.isNumber),"string"!=typeof e.SendMax&&!(0,i.isIssuedCurrencyAmount)(e.SendMax))throw new r.ValidationError("CheckCreate: invalid SendMax");if(void 0!==e.Expiration&&"number"!=typeof e.Expiration)throw new r.ValidationError("CheckCreate: invalid Expiration");if(void 0!==e.InvoiceID&&"string"!=typeof e.InvoiceID)throw new r.ValidationError("CheckCreate: invalid InvoiceID")}},2896:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=void 0;const i=n(5943),o=r(n(2635));t.sha512=(0,o.default)(i.sha512)},2905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSignerListSet=void 0;const r=n(255),i=n(2794),o=/^[0-9A-Fa-f]{64}$/u;t.validateSignerListSet=function(e){if((0,i.validateBaseTransaction)(e),(0,i.validateRequiredField)(e,"SignerQuorum",i.isNumber),0!==e.SignerQuorum){if((0,i.validateRequiredField)(e,"SignerEntries",i.isArray),0===e.SignerEntries.length)throw new r.ValidationError("SignerListSet: need at least 1 member in SignerEntries");if(e.SignerEntries.length>32)throw new r.ValidationError("SignerListSet: maximum of 32 members allowed in SignerEntries");for(const t of e.SignerEntries){if(!(0,i.isRecord)(t)||!(0,i.isRecord)(t.SignerEntry))throw new r.ValidationError("SignerListSet: SignerEntries must be an array of SignerEntry objects");const e=t.SignerEntry,{WalletLocator:n}=e;if(!(null==n||(0,i.isString)(n)&&o.test(n)))throw new r.ValidationError("SignerListSet: WalletLocator in SignerEntry must be a 256-bit (32-byte) hexadecimal value")}}}},2911:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XChainBridge=void 0;const r=n(892),i=n(5763),o=n(1275),s=n(1837),a=n(619);class c extends o.SerializedType{constructor(e){super(null!=e?e:c.ZERO_XCHAIN_BRIDGE.bytes)}static from(e){if(e instanceof c)return e;if(!function(e){const t=Object.keys(e).sort();return 4===t.length&&"IssuingChainDoor"===t[0]&&"IssuingChainIssue"===t[1]&&"LockingChainDoor"===t[2]&&"LockingChainIssue"===t[3]}(e))throw new Error("Invalid type to construct an XChainBridge");const t=[];return this.TYPE_ORDER.forEach((n=>{const{name:r,type:o}=n;o===i.AccountID&&t.push(Uint8Array.from([20]));const s=o.from(e[r]);t.push(s.toBytes())})),new c((0,a.concat)(t))}static fromParser(e){const t=[];return this.TYPE_ORDER.forEach((n=>{const{type:r}=n;r===i.AccountID&&(e.skip(1),t.push(Uint8Array.from([20])));const o=r.fromParser(e);t.push(o.toBytes())})),new c((0,a.concat)(t))}toJSON(){const e=new r.BinaryParser(this.toString()),t={};return c.TYPE_ORDER.forEach((n=>{const{name:r,type:o}=n;o===i.AccountID&&e.skip(1);const s=o.fromParser(e).toJSON();t[r]=s})),t}}t.XChainBridge=c,c.ZERO_XCHAIN_BRIDGE=new c((0,a.concat)([Uint8Array.from([20]),new Uint8Array(40),Uint8Array.from([20]),new Uint8Array(40)])),c.TYPE_ORDER=[{name:"LockingChainDoor",type:i.AccountID},{name:"LockingChainIssue",type:s.Issue},{name:"IssuingChainDoor",type:i.AccountID},{name:"IssuingChainIssue",type:s.Issue}]},2942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytesLookup=t.Bytes=void 0;class n{constructor(e,t,n){this.name=e,this.ordinal=t,this.ordinalWidth=n,this.bytes=new Uint8Array(n);for(let e=0;e<n;e++)this.bytes[n-e-1]=t>>>8*e&255}toJSON(){return this.name}toBytesSink(e){e.put(this.bytes)}toBytes(){return this.bytes}}t.Bytes=n,t.BytesLookup=class{constructor(e,t){this.ordinalWidth=t,Object.entries(e).forEach((([e,t])=>{this.add(e,t)}))}add(e,t){if(this[e])throw new SyntaxError(`Attempted to add a value with a duplicate name "${e}". This is not allowed because it is unclear how to decode.`);if(this[t.toString()])throw new SyntaxError(`Attempted to add a duplicate value under a different name (Given name: "${e}" and previous name: "${this[t.toString()]}. This is not allowed because it is unclear how to decode.\nGiven value: ${t.toString()}`);this[e]=new n(e,t,this.ordinalWidth),this[t.toString()]=this[e]}from(e){return e instanceof n?e:this[e]}fromParser(e){return this.from(e.readUIntN(this.ordinalWidth).toString())}}},2945:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(735)),o=n(9333),s=n(2722);function a(e){const t=Object.keys(e)[0],n=e[t];return Object.assign(Object.assign({},n),{NodeType:t,LedgerEntryType:n.LedgerEntryType,LedgerIndex:n.LedgerIndex,NewFields:n.NewFields,FinalFields:n.FinalFields,PreviousFields:n.PreviousFields})}function c(e){return"string"==typeof e?new i.default(e):new i.default(e.value)}function l(e){var t,n,r;let i=null;return(null===(t=e.NewFields)||void 0===t?void 0:t.Balance)?i=c(e.NewFields.Balance):(null===(n=e.PreviousFields)||void 0===n?void 0:n.Balance)&&(null===(r=e.FinalFields)||void 0===r?void 0:r.Balance)&&(i=c(e.FinalFields.Balance).minus(c(e.PreviousFields.Balance))),null===i||i.isZero()?null:i}function u(e){const t=new i.default(e.balance.value).negated();return{account:e.balance.issuer,balance:{issuer:e.account,currency:e.balance.currency,value:t.toString()}}}t.default=function(e){return function(e){const t=(0,o.groupBy)(e,(e=>e.account));return Object.entries(t).map((([e,t])=>({account:e,balances:t.map((e=>e.balance))})))}(function(e){return 0===e.AffectedNodes.length?[]:e.AffectedNodes.map(a)}(e).map((e=>{if("AccountRoot"===e.LedgerEntryType){const t=function(e){var t,n,r;const i=l(e);return null===i?null:{account:null!==(n=null===(t=e.FinalFields)||void 0===t?void 0:t.Account)&&void 0!==n?n:null===(r=e.NewFields)||void 0===r?void 0:r.Account,balance:{currency:"XRP",value:(0,s.dropsToXrp)(i).toString()}}}(e);return null==t?[]:[t]}if("RippleState"===e.LedgerEntryType){const t=function(e){var t,n;const r=l(e);if(null===r)return null;const i=null==e.NewFields?e.FinalFields:e.NewFields,o={account:null===(t=null==i?void 0:i.LowLimit)||void 0===t?void 0:t.issuer,balance:{issuer:null===(n=null==i?void 0:i.HighLimit)||void 0===n?void 0:n.issuer,currency:(null==i?void 0:i.Balance).currency,value:r.toString()}};return[o,u(o)]}(e);return null==t?[]:t}return[]})).flat())}},3007:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTicketCreate=void 0;const r=n(255),i=n(2794);t.validateTicketCreate=function(e){(0,i.validateBaseTransaction)(e);const{TicketCount:t}=e;if(void 0===t)throw new r.ValidationError("TicketCreate: missing field TicketCount");if("number"!=typeof t)throw new r.ValidationError("TicketCreate: TicketCount must be a number");if(!Number.isInteger(t)||t<1||t>250)throw new r.ValidationError("TicketCreate: TicketCount must be an integer from 1 to 250")}},3094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateMPTokenAuthorize=t.MPTokenAuthorizeFlags=void 0;const r=n(2794);var i;!function(e){e[e.tfMPTUnauthorize=1]="tfMPTUnauthorize"}(i||(t.MPTokenAuthorizeFlags=i={})),t.validateMPTokenAuthorize=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"MPTokenIssuanceID",r.isString),(0,r.validateOptionalField)(e,"Holder",r.isAccount)}},3122:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(n(534)),a=o(n(5644));i(n(168),t),t.default=class{constructor(){this.root=new s.default(0)}get hash(){return this.root.hash}addItem(e,t,n){this.root.addItem(e,new a.default(e,t,n))}}},3212:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={ok(e,t){if(!e)throw new Error(t)}};t.default=n},3222:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sortAndLimitOffers=t.separateBuySellOrders=t.combineOrders=t.extractOffers=t.reverseRequest=t.requestAllOffers=t.createBookOffersRequest=t.validateOrderbookOptions=void 0;const o=i(n(735)),s=n(255),a=n(5237),c=new Set(["limit","ledger_index","ledger_hash","taker"]);t.validateOrderbookOptions=function(e){for(const t of Object.keys(e))if(!c.has(t))throw new s.ValidationError(`Unexpected option: ${t}`,e);if(e.limit&&"number"!=typeof e.limit)throw new s.ValidationError("limit must be a number",e.limit);if(e.ledger_index&&!("number"==typeof e.ledger_index||"string"==typeof e.ledger_index&&["validated","closed","current"].includes(e.ledger_index)))throw new s.ValidationError('ledger_index must be a number or a string of "validated", "closed", or "current"',e.ledger_index);if(void 0!==e.ledger_hash&&null!==e.ledger_hash&&"string"!=typeof e.ledger_hash)throw new s.ValidationError("ledger_hash must be a string",e.ledger_hash);if(void 0!==e.taker&&"string"!=typeof e.taker)throw new s.ValidationError("taker must be a string",e.taker)},t.createBookOffersRequest=function(e,t,n){var r,i;return{command:"book_offers",taker_pays:e,taker_gets:t,ledger_index:null!==(r=n.ledger_index)&&void 0!==r?r:"validated",ledger_hash:null===n.ledger_hash?void 0:n.ledger_hash,limit:null!==(i=n.limit)&&void 0!==i?i:20,taker:n.taker?n.taker:void 0}},t.requestAllOffers=function(e,t){return r(this,void 0,void 0,(function*(){return(yield e.requestAll(t)).map((e=>e.result.offers))}))},t.reverseRequest=function(e){return Object.assign(Object.assign({},e),{taker_pays:e.taker_gets,taker_gets:e.taker_pays})},t.extractOffers=function(e){return e.flatMap((e=>e))},t.combineOrders=function(e,t){return[...e,...t]},t.separateBuySellOrders=function(e){const t=[],n=[];return e.forEach((e=>{e.Flags&a.OfferFlags.lsfSell?n.push(e):t.push(e)})),{buy:t,sell:n}},t.sortAndLimitOffers=function(e,t){return function(e){return e.sort(((e,t)=>{var n,r;const i=null!==(n=e.quality)&&void 0!==n?n:0,s=null!==(r=t.quality)&&void 0!==r?r:0;return new o.default(i).comparedTo(s)}))}(e).slice(0,t)}},3296:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateEscrowCreate=void 0;const r=n(255),i=n(2794);t.validateEscrowCreate=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.Amount)throw new r.ValidationError("EscrowCreate: missing field Amount");if("string"!=typeof e.Amount)throw new r.ValidationError("EscrowCreate: Amount must be a string");if((0,i.validateRequiredField)(e,"Destination",i.isAccount),(0,i.validateOptionalField)(e,"DestinationTag",i.isNumber),void 0===e.CancelAfter&&void 0===e.FinishAfter)throw new r.ValidationError("EscrowCreate: Either CancelAfter or FinishAfter must be specified");if(void 0===e.FinishAfter&&void 0===e.Condition&&void 0===e.FinishFunction)throw new r.ValidationError("EscrowCreate: Either FinishAfter, Condition, or FinishFunction must be specified");if(void 0!==e.CancelAfter&&"number"!=typeof e.CancelAfter)throw new r.ValidationError("EscrowCreate: CancelAfter must be a number");if(void 0!==e.FinishAfter&&"number"!=typeof e.FinishAfter)throw new r.ValidationError("EscrowCreate: FinishAfter must be a number");if(void 0!==e.Condition&&"string"!=typeof e.Condition)throw new r.ValidationError("EscrowCreate: Condition must be a string")}},3328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UInt=void 0;const r=n(1275);class i extends r.Comparable{constructor(e){super(e)}compareTo(e){return(t=this.valueOf())<(n=e.valueOf())?-1:t==n?0:1;var t,n}toJSON(){const e=this.valueOf();return"number"==typeof e?e:e.toString()}static checkUintRange(e,t,n){if(e<t||e>n)throw new Error(`Invalid ${this.constructor.name}: ${e} must be >= ${t} and <= ${n}`)}}t.UInt=i},3342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDeletedNode=t.isModifiedNode=t.isCreatedNode=void 0,t.isCreatedNode=function(e){return Object.prototype.hasOwnProperty.call(e,"CreatedNode")},t.isModifiedNode=function(e){return Object.prototype.hasOwnProperty.call(e,"ModifiedNode")},t.isDeletedNode=function(e){return Object.prototype.hasOwnProperty.call(e,"DeletedNode")}},3365:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.percentToQuality=t.transferRateToDecimal=t.qualityToDecimal=t.decimalToQuality=t.percentToTransferRate=t.decimalToTransferRate=void 0;const i=r(n(735)),o=n(255),s="1000000000";function a(e){if(!e.endsWith("%"))throw new o.ValidationError(`Value ${e} must end with %`);const t=e.split("%").filter((e=>""!==e));if(1!==t.length)throw new o.ValidationError(`Value ${e} contains too many % signs`);return new i.default(t[0]).dividedBy("100").toString(10)}function c(e){const t=new i.default(e).times(s).plus(s);if(t.isLessThan(s)||t.isGreaterThan("2000000000"))throw new o.ValidationError("Decimal value must be between 0 and 1.00.");const n=t.toString(10);if(n===s)return 0;if("NaN"===n)throw new o.ValidationError("Value is not a number");if(n.includes("."))throw new o.ValidationError("Decimal exceeds maximum precision.");return Number(n)}function l(e){const t=new i.default(e).times(s).toString(10);if("NaN"===t)throw new o.ValidationError("Value is not a number");if(t.includes("-"))throw new o.ValidationError("Cannot have negative Quality");if(t===s)return 0;if(t.includes("."))throw new o.ValidationError("Decimal exceeds maximum precision.");return Number(t)}t.decimalToTransferRate=c,t.percentToTransferRate=function(e){return c(a(e))},t.decimalToQuality=l,t.qualityToDecimal=function(e){if(!Number.isInteger(e))throw new o.ValidationError("Quality must be an integer");if(e<0)throw new o.ValidationError("Negative quality not allowed");return 0===e?"1":new i.default(e).dividedBy(s).toString(10)},t.transferRateToDecimal=function(e){if(!Number.isInteger(e))throw new o.ValidationError("Error decoding, transfer Rate must be an integer");if(0===e)return"0";const t=new i.default(e).minus(s).dividedBy(s);if(t.isLessThan(0))throw new o.ValidationError("Error decoding, negative transfer rate");return t.toString(10)},t.percentToQuality=function(e){return l(a(e))}},3449:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=void 0,t.isBytes=o,t.abytes=s,t.abool=function(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)},t.bytesToHex=c,t.numberToHexUnpadded=l,t.hexToNumber=u,t.hexToBytes=h,t.bytesToNumberBE=function(e){return u(c(e))},t.bytesToNumberLE=function(e){return s(e),u(c(Uint8Array.from(e).reverse()))},t.numberToBytesBE=g,t.numberToBytesLE=function(e,t){return g(e,t).reverse()},t.numberToVarBytesBE=function(e){return h(l(e))},t.ensureBytes=function(e,t,n){let r;if("string"==typeof t)try{r=h(t)}catch(t){throw new Error(e+" must be hex string or Uint8Array, cause: "+t)}else{if(!o(t))throw new Error(e+" must be hex string or Uint8Array");r=Uint8Array.from(t)}const i=r.length;if("number"==typeof n&&i!==n)throw new Error(e+" of length "+n+" expected, got "+i);return r},t.concatBytes=p,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n},t.utf8ToBytes=function(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))},t.inRange=m,t.aInRange=function(e,t,n,r){if(!m(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)},t.bitLen=function(e){let t;for(t=0;e>n;e>>=r,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&r},t.bitSet=function(e,t,i){return e|(i?r:n)<<BigInt(t)},t.createHmacDrbg=function(e,t,n){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let r=A(e),i=A(e),o=0;const s=()=>{r.fill(1),i.fill(0),o=0},a=(...e)=>n(i,r,...e),c=(e=A())=>{i=a(E([0]),e),r=a(),0!==e.length&&(i=a(E([1]),e),r=a())},l=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){r=a();const t=r.slice();n.push(t),e+=r.length}return p(...n)};return(e,t)=>{let n;for(s(),c(e);!(n=t(l()));)c();return s(),n}},t.validateObject=function(e,t,n={}){const r=(t,n,r)=>{const i=b[n];if("function"!=typeof i)throw new Error("invalid validator function");const o=e[t];if(!(r&&void 0===o||i(o,e)))throw new Error("param "+String(t)+" is invalid. Expected "+n+", got "+o)};for(const[e,n]of Object.entries(t))r(e,n,!1);for(const[e,t]of Object.entries(n))r(e,t,!0);return e},t.memoized=function(e){const t=new WeakMap;return(n,...r)=>{const i=t.get(n);if(void 0!==i)return i;const o=e(n,...r);return t.set(n,o),o}};const n=BigInt(0),r=BigInt(1),i=BigInt(2);function o(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function s(e){if(!o(e))throw new Error("Uint8Array expected")}const a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function c(e){s(e);let t="";for(let n=0;n<e.length;n++)t+=a[e[n]];return t}function l(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function u(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?n:BigInt("0x"+e)}const d={_0:48,_9:57,A:65,F:70,a:97,f:102};function f(e){return e>=d._0&&e<=d._9?e-d._0:e>=d.A&&e<=d.F?e-(d.A-10):e>=d.a&&e<=d.f?e-(d.a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){const n=f(e.charCodeAt(i)),o=f(e.charCodeAt(i+1));if(void 0===n||void 0===o){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}r[t]=16*n+o}return r}function g(e,t){return h(e.toString(16).padStart(2*t,"0"))}function p(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];s(r),t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const i=e[t];n.set(i,r),r+=i.length}return n}const y=e=>"bigint"==typeof e&&n<=e;function m(e,t,n){return y(e)&&y(t)&&y(n)&&t<=e&&e<n}t.bitMask=e=>(i<<BigInt(e-1))-r;const A=e=>new Uint8Array(e),E=e=>Uint8Array.from(e),b={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||o(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.notImplemented=()=>{throw new Error("not implemented")}},3461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateVaultDeposit=void 0;const r=n(2794);t.validateVaultDeposit=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"VaultID",r.isString),(0,r.validateRequiredField)(e,"Amount",r.isAmount)}},3471:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainCommit=void 0;const r=n(2794);t.validateXChainCommit=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"XChainBridge",r.isXChainBridge),(0,r.validateRequiredField)(e,"XChainClaimID",(e=>(0,r.isNumber)(e)||(0,r.isString)(e))),(0,r.validateOptionalField)(e,"OtherChainDestination",r.isAccount),(0,r.validateRequiredField)(e,"Amount",r.isAmount)}},3539:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateOfferCancel=void 0;const r=n(255),i=n(2794);t.validateOfferCancel=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.OfferSequence)throw new r.ValidationError("OfferCancel: missing field OfferSequence");if("number"!=typeof e.OfferSequence)throw new r.ValidationError("OfferCancel: OfferSequence must be a number")}},3627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={account:"a",dirNode:"d",generatorMap:"g",rippleState:"r",offer:"o",ownerDir:"O",bookDir:"B",contract:"c",skipList:"s",escrow:"u",amendment:"f",feeSettings:"e",ticket:"T",signerList:"S",paychan:"x",check:"C",depositPreauth:"p"}},3719:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Vector256=void 0;const r=n(1275),i=n(8264),o=n(7995),s=n(619);class a extends r.SerializedType{constructor(e){super(e)}static fromParser(e,t){const n=new o.BytesList,r=(null!=t?t:e.size())/32;for(let t=0;t<r;t++)i.Hash256.fromParser(e).toBytesSink(n);return new a(n.toBytes())}static from(e){if(e instanceof a)return e;if(t=e,Array.isArray(t)&&(0===t.length||"string"==typeof t[0])){const t=new o.BytesList;return e.forEach((e=>{i.Hash256.from(e).toBytesSink(t)})),new a(t.toBytes())}var t;throw new Error("Cannot construct Vector256 from given value")}toJSON(){if(this.bytes.byteLength%32!=0)throw new Error("Invalid bytes for Vector256");const e=[];for(let t=0;t<this.bytes.byteLength;t+=32)e.push((0,s.bytesToHex)(this.bytes.slice(t,t+32)));return e}}t.Vector256=a},3733:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldLookup=void 0;const r=n(2942),i=n(1275),o=n(8188);t.FieldLookup=class{constructor(e,t){e.forEach((([e,n])=>{const s=t[n.type];this[e]=function([e,t],n){const s=function(e,t){const n=[];return e<16?t<16?n.push(e<<4|t):n.push(e<<4,t):t<16?n.push(t,e):n.push(0,e,t),Uint8Array.from(n)}(n,t.nth);return{name:e,nth:t.nth,isVariableLengthEncoded:t.isVLEncoded,isSerialized:t.isSerialized,isSigningField:t.isSigningField,ordinal:n<<16|t.nth,type:new r.Bytes(t.type,n,o.TYPE_WIDTH),header:s,associatedType:i.SerializedType}}([e,n],s),this[this[e].ordinal.toString()]=this[e]}))}fromString(e){return this[e]}}},3746:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMClawback=t.AMMClawbackFlags=void 0;const r=n(255),i=n(2794);var o;!function(e){e[e.tfClawTwoAssets=1]="tfClawTwoAssets"}(o||(t.AMMClawbackFlags=o={})),t.validateAMMClawback=function(e){(0,i.validateBaseTransaction)(e),(0,i.validateRequiredField)(e,"Holder",i.isAccount),(0,i.validateRequiredField)(e,"Asset",i.isIssuedCurrency);const t=e.Asset;if(e.Holder===t.issuer)throw new r.ValidationError("AMMClawback: Holder and Asset.issuer must be distinct");if(e.Account!==t.issuer)throw new r.ValidationError("AMMClawback: Account must be the same as Asset.issuer");if((0,i.validateRequiredField)(e,"Asset2",i.isIssuedCurrency),(0,i.validateOptionalField)(e,"Amount",i.isIssuedCurrencyAmount),null!=e.Amount){if(e.Amount.currency!==t.currency)throw new r.ValidationError("AMMClawback: Amount.currency must match Asset.currency");if(e.Amount.issuer!==t.issuer)throw new r.ValidationError("AMMClawback: Amount.issuer must match Amount.issuer")}}},3750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAccountSet=t.AccountSetTfFlags=t.AccountSetAsfFlags=void 0;const r=n(255),i=n(2794);var o,s;!function(e){e[e.asfRequireDest=1]="asfRequireDest",e[e.asfRequireAuth=2]="asfRequireAuth",e[e.asfDisallowXRP=3]="asfDisallowXRP",e[e.asfDisableMaster=4]="asfDisableMaster",e[e.asfAccountTxnID=5]="asfAccountTxnID",e[e.asfNoFreeze=6]="asfNoFreeze",e[e.asfGlobalFreeze=7]="asfGlobalFreeze",e[e.asfDefaultRipple=8]="asfDefaultRipple",e[e.asfDepositAuth=9]="asfDepositAuth",e[e.asfAuthorizedNFTokenMinter=10]="asfAuthorizedNFTokenMinter",e[e.asfDisallowIncomingNFTokenOffer=12]="asfDisallowIncomingNFTokenOffer",e[e.asfDisallowIncomingCheck=13]="asfDisallowIncomingCheck",e[e.asfDisallowIncomingPayChan=14]="asfDisallowIncomingPayChan",e[e.asfDisallowIncomingTrustline=15]="asfDisallowIncomingTrustline",e[e.asfAllowTrustLineClawback=16]="asfAllowTrustLineClawback"}(o||(t.AccountSetAsfFlags=o={})),function(e){e[e.tfRequireDestTag=65536]="tfRequireDestTag",e[e.tfOptionalDestTag=131072]="tfOptionalDestTag",e[e.tfRequireAuth=262144]="tfRequireAuth",e[e.tfOptionalAuth=524288]="tfOptionalAuth",e[e.tfDisallowXRP=1048576]="tfDisallowXRP",e[e.tfAllowXRP=2097152]="tfAllowXRP"}(s||(t.AccountSetTfFlags=s={})),t.validateAccountSet=function(e){if((0,i.validateBaseTransaction)(e),(0,i.validateOptionalField)(e,"NFTokenMinter",i.isAccount),void 0!==e.ClearFlag){if("number"!=typeof e.ClearFlag)throw new r.ValidationError("AccountSet: invalid ClearFlag");if(!Object.values(o).includes(e.ClearFlag))throw new r.ValidationError("AccountSet: invalid ClearFlag")}if(void 0!==e.Domain&&"string"!=typeof e.Domain)throw new r.ValidationError("AccountSet: invalid Domain");if(void 0!==e.EmailHash&&"string"!=typeof e.EmailHash)throw new r.ValidationError("AccountSet: invalid EmailHash");if(void 0!==e.MessageKey&&"string"!=typeof e.MessageKey)throw new r.ValidationError("AccountSet: invalid MessageKey");if(void 0!==e.SetFlag){if("number"!=typeof e.SetFlag)throw new r.ValidationError("AccountSet: invalid SetFlag");if(!Object.values(o).includes(e.SetFlag))throw new r.ValidationError("AccountSet: invalid SetFlag")}if(void 0!==e.TransferRate&&"number"!=typeof e.TransferRate)throw new r.ValidationError("AccountSet: invalid TransferRate");if(void 0!==e.TickSize){if("number"!=typeof e.TickSize)throw new r.ValidationError("AccountSet: invalid TickSize");if(0!==e.TickSize&&(e.TickSize<3||e.TickSize>15))throw new r.ValidationError("AccountSet: invalid TickSize")}}},3767:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(2588),t),i(n(8161),t)},3776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=void 0;const r=n(1275),i=n(619),o=n(5517);class s extends r.Comparable{constructor(e){if(super(e),this.bytes.length!==this.constructor.width)throw new Error(`Invalid Hash length ${this.bytes.byteLength}`)}static from(e){if(e instanceof this)return e;if("string"==typeof e){if(!i.HEX_REGEX.test(e))throw new Error(`Invalid hash string ${e}`);return new this((0,i.hexToBytes)(e))}throw new Error("Cannot construct Hash from given value")}static fromParser(e,t){return new this(e.read(null!=t?t:this.width))}compareTo(e){return(0,o.compare)(this.bytes,this.constructor.from(e).bytes)}toString(){return this.toHex()}nibblet(e){const t=e>0?e/2|0:0;let n=this.bytes[t];return e%2==0?n=(240&n)>>>4:n&=15,n}}t.Hash=s},3795:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const r=n(5489),i=n(9987);class o extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.ahash)(e);const n=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(n.length>o?e.create().update(n).digest():n);for(let e=0;e<s.length;e++)s[e]^=54;this.iHash.update(s),this.oHash=e.create();for(let e=0;e<s.length;e++)s[e]^=106;this.oHash.update(s),s.fill(0)}update(e){return(0,r.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,r.aexists)(this),(0,r.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:s}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=o,t.hmac=(e,t,n)=>new o(e,t).update(n).digest(),t.hmac.create=(e,t)=>new o(e,t)},3842:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multisign=t.verifySignature=void 0;const r=n(5620),i=n(5442),o=n(255),s=n(9843),a=n(667);t.multisign=function(e){if(0===e.length)throw new o.ValidationError("There were 0 transactions to multisign");const t=e.map((e=>(0,a.getDecodedTransaction)(e)));return t.forEach((e=>{if((0,s.validate)(e),null==e.Signers||0===e.Signers.length)throw new o.ValidationError("For multisigning all transactions must include a Signers field containing an array of signatures. You may have forgotten to pass the 'forMultisign' parameter when signing.");if(""!==e.SigningPubKey)throw new o.ValidationError("SigningPubKey must be an empty string for all transactions when multisigning.")})),function(e){const t=JSON.stringify(Object.assign(Object.assign({},e[0]),{Signers:null}));if(e.slice(1).some((e=>JSON.stringify(Object.assign(Object.assign({},e),{Signers:null}))!==t)))throw new o.ValidationError("txJSON is not the same for all signedTransactions")}(t),(0,r.encode)(function(e){const t=e.flatMap((e=>{var t;return null!==(t=e.Signers)&&void 0!==t?t:[]})).sort(((e,t)=>(0,a.compareSigners)(e.Signer,t.Signer)));return Object.assign(Object.assign({},e[0]),{Signers:t})}(t))},t.verifySignature=function(e,t){const n=(0,a.getDecodedTransaction)(e);let o=t;if("string"!=typeof n.TxnSignature||!n.TxnSignature)throw new Error("Transaction is missing a signature, TxnSignature");if(!o){if("string"!=typeof n.SigningPubKey||!n.SigningPubKey)throw new Error("Transaction is missing a public key, SigningPubKey");o=n.SigningPubKey}return(0,i.verify)((0,r.encodeForSigning)(n),n.TxnSignature,o)}},3914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathSet=void 0;const r=n(5763),i=n(5967),o=n(892),s=n(1275),a=n(619);class c extends s.SerializedType{static from(e){if(e instanceof c)return e;const t=[Uint8Array.from([0])];return e.account&&(t.push(r.AccountID.from(e.account).toBytes()),t[0][0]|=1),e.currency&&(t.push(i.Currency.from(e.currency).toBytes()),t[0][0]|=16),e.issuer&&(t.push(r.AccountID.from(e.issuer).toBytes()),t[0][0]|=32),new c((0,a.concat)(t))}static fromParser(e){const t=e.readUInt8(),n=[Uint8Array.from([t])];return 1&t&&n.push(e.read(r.AccountID.width)),16&t&&n.push(e.read(i.Currency.width)),32&t&&n.push(e.read(r.AccountID.width)),new c((0,a.concat)(n))}toJSON(){const e=new o.BinaryParser((0,a.bytesToHex)(this.bytes)),t=e.readUInt8();let n,s,c;1&t&&(n=r.AccountID.fromParser(e).toJSON()),16&t&&(s=i.Currency.fromParser(e).toJSON()),32&t&&(c=r.AccountID.fromParser(e).toJSON());const l={};return n&&(l.account=n),c&&(l.issuer=c),s&&(l.currency=s),l}type(){return this.bytes[0]}}class l extends s.SerializedType{static from(e){if(e instanceof l)return e;const t=[];return e.forEach((e=>{t.push(c.from(e).toBytes())})),new l((0,a.concat)(t))}static fromParser(e){const t=[];for(;!e.end()&&(t.push(c.fromParser(e).toBytes()),0!==e.peek()&&255!==e.peek()););return new l((0,a.concat)(t))}toJSON(){const e=[],t=new o.BinaryParser(this.toString());for(;!t.end();)e.push(c.fromParser(t).toJSON());return e}}class u extends s.SerializedType{static from(e){if(e instanceof u)return e;if(t=e,Array.isArray(t)&&0===t.length||Array.isArray(t)&&Array.isArray(t[0])&&0===t[0].length||Array.isArray(t)&&Array.isArray(t[0])&&function(e){return void 0!==e.issuer||void 0!==e.account||void 0!==e.currency}(t[0][0])){const t=[];return e.forEach((e=>{t.push(l.from(e).toBytes()),t.push(Uint8Array.from([255]))})),t[t.length-1]=Uint8Array.from([0]),new u((0,a.concat)(t))}var t;throw new Error("Cannot construct PathSet from given value")}static fromParser(e){const t=[];for(;!e.end()&&(t.push(l.fromParser(e).toBytes()),t.push(e.read(1)),0!=t[t.length-1][0]););return new u((0,a.concat)(t))}toJSON(){const e=[],t=new o.BinaryParser(this.toString());for(;!t.end();)e.push(l.fromParser(t).toJSON()),t.skip(1);return e}}t.PathSet=u},3947:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=t.SHA256=void 0;const r=n(1998),i=n(9987),o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),a=new Uint32Array(64);class c extends r.HashMD{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:o,G:s,H:a}=this;return[e,t,n,r,i,o,s,a]}set(e,t,n,r,i,o,s,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let n=0;n<16;n++,t+=4)a[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=a[e-15],n=a[e-2],r=(0,i.rotr)(t,7)^(0,i.rotr)(t,18)^t>>>3,o=(0,i.rotr)(n,17)^(0,i.rotr)(n,19)^n>>>10;a[e]=o+a[e-7]+r+a[e-16]|0}let{A:n,B:s,C:c,D:l,E:u,F:d,G:f,H:h}=this;for(let e=0;e<64;e++){const t=h+((0,i.rotr)(u,6)^(0,i.rotr)(u,11)^(0,i.rotr)(u,25))+(0,r.Chi)(u,d,f)+o[e]+a[e]|0,g=((0,i.rotr)(n,2)^(0,i.rotr)(n,13)^(0,i.rotr)(n,22))+(0,r.Maj)(n,s,c)|0;h=f,f=d,d=u,u=l+t|0,l=c,c=s,s=n,n=t+g|0}n=n+this.A|0,s=s+this.B|0,c=c+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,f=f+this.G|0,h=h+this.H|0,this.set(n,s,c,l,u,d,f,h)}roundClean(){a.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}t.SHA256=c;class l extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,i.wrapConstructor)((()=>new c)),t.sha224=(0,i.wrapConstructor)((()=>new l))},4107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wNAF=function(e,t){return{constTimeNegate:a,hasPrecomputes:e=>1!==g(e),unsafeLadder(t,n,r=e.ZERO){let i=t;for(;n>o;)n&s&&(r=r.add(i)),i=i.double(),n>>=s;return r},precomputeWindow(e,n){const{windows:r,windowSize:i}=l(n,t),o=[];let s=e,a=s;for(let e=0;e<r;e++){a=s,o.push(a);for(let e=1;e<i;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(n,r,i){const{windows:o,windowSize:c}=l(n,t);let u=e.ZERO,d=e.BASE;const f=BigInt(2**n-1),h=2**n,g=BigInt(n);for(let e=0;e<o;e++){const t=e*c;let n=Number(i&f);i>>=g,n>c&&(n-=h,i+=s);const o=t,l=t+Math.abs(n)-1,p=e%2!=0,y=n<0;0===n?d=d.add(a(p,r[o])):u=u.add(a(y,r[l]))}return{p:u,f:d}},wNAFUnsafe(n,r,i,a=e.ZERO){const{windows:c,windowSize:u}=l(n,t),d=BigInt(2**n-1),f=2**n,h=BigInt(n);for(let e=0;e<c;e++){const t=e*u;if(i===o)break;let n=Number(i&d);if(i>>=h,n>u&&(n-=f,i+=s),0===n)continue;let c=r[t+Math.abs(n)-1];n<0&&(c=c.negate()),a=a.add(c)}return a},getPrecomputes(e,t,n){let r=f.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&f.set(t,n(r))),r},wNAFCached(e,t,n){const r=g(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)},wNAFCachedUnsafe(e,t,n,r){const i=g(e);return 1===i?this.unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)},setWindowSize(e,n){c(n,t),h.set(e,n),f.delete(e)}}},t.pippenger=function(e,t,n,r){if(u(n,e),d(r,t),n.length!==r.length)throw new Error("arrays of points and scalars must have equal length");const o=e.ZERO,s=(0,i.bitLen)(BigInt(n.length)),a=s>12?s-3:s>4?s-2:s?2:1,c=(1<<a)-1,l=new Array(c+1).fill(o);let f=o;for(let e=Math.floor((t.BITS-1)/a)*a;e>=0;e-=a){l.fill(o);for(let t=0;t<r.length;t++){const i=r[t],o=Number(i>>BigInt(e)&BigInt(c));l[o]=l[o].add(n[t])}let t=o;for(let e=l.length-1,n=o;e>0;e--)n=n.add(l[e]),t=t.add(n);if(f=f.add(t),0!==e)for(let e=0;e<a;e++)f=f.double()}return f},t.precomputeMSMUnsafe=function(e,t,n,r){c(r,t.BITS),u(n,e);const i=e.ZERO,o=2**r-1,s=Math.ceil(t.BITS/r),a=BigInt((1<<r)-1),l=n.map((e=>{const t=[];for(let n=0,r=e;n<o;n++)t.push(r),r=r.add(e);return t}));return e=>{if(d(e,t),e.length>n.length)throw new Error("array of scalars must be smaller than array of points");let o=i;for(let t=0;t<s;t++){if(o!==i)for(let e=0;e<r;e++)o=o.double();const n=BigInt(s*r-(t+1)*r);for(let t=0;t<e.length;t++){const r=e[t],i=Number(r>>n&a);i&&(o=o.add(l[t][i-1]))}}return o}},t.validateBasic=function(e){return(0,r.validateField)(e.Fp),(0,i.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,r.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};const r=n(802),i=n(3449),o=BigInt(0),s=BigInt(1);function a(e,t){const n=t.negate();return e?n:t}function c(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function l(e,t){return c(e,t),{windows:Math.ceil(t/e)+1,windowSize:2**(e-1)}}function u(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach(((e,n)=>{if(!(e instanceof t))throw new Error("invalid point at index "+n)}))}function d(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach(((e,n)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+n)}))}const f=new WeakMap,h=new WeakMap;function g(e){return h.get(e)||1}},4110:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Connection=t.INTENTIONAL_DISCONNECT_CODE=void 0;const o=n(619),s=i(n(964)),a=n(9819),c=n(255),l=i(n(9859)),u=i(n(5435)),d=i(n(9566));t.INTENTIONAL_DISCONNECT_CODE=4e3;class f extends a.EventEmitter{constructor(e,t={}){super(),this.ws=null,this.reconnectTimeoutID=null,this.heartbeatIntervalID=null,this.retryConnectionBackoff=new u.default({min:100,max:6e4}),this.requestManager=new d.default,this.connectionManager=new l.default,this.trace=()=>{},this.url=e,this.config=Object.assign({timeout:2e4,connectionTimeout:5e3},t),"function"==typeof t.trace?this.trace=t.trace:t.trace&&(this.trace=console.log)}get state(){return this.ws?this.ws.readyState:s.default.CLOSED}get shouldBeConnected(){return null!==this.ws}isConnected(){return this.state===s.default.OPEN}connect(){return r(this,void 0,void 0,(function*(){if(this.isConnected())return Promise.resolve();if(this.state===s.default.CONNECTING)return this.connectionManager.awaitConnection();if(!this.url)return Promise.reject(new c.ConnectionError("Cannot connect because no server was specified"));if(null!=this.ws)return Promise.reject(new c.XrplError("Websocket connection never cleaned up.",{state:this.state}));const e=setTimeout((()=>{this.onConnectionFailed(new c.ConnectionError(`Error: connect() timed out after ${this.config.connectionTimeout} ms. If your internet connection is working, the rippled server may be blocked or inaccessible. You can also try setting the 'connectionTimeout' option in the Client constructor.`))}),this.config.connectionTimeout);if(this.ws=function(e,t){const n={agent:t.agent};t.headers&&(n.headers=t.headers),null!=t.authorization&&(n.headers=Object.assign(Object.assign({},n.headers),{Authorization:`Basic ${btoa(t.authorization)}`}));const r=Object.assign({},n);return new s.default(e,r)}(this.url,this.config),null==this.ws)throw new c.XrplError("Connect: created null websocket");return this.ws.on("error",(e=>this.onConnectionFailed(e))),this.ws.on("error",(()=>clearTimeout(e))),this.ws.on("close",(e=>this.onConnectionFailed(e))),this.ws.on("close",(()=>clearTimeout(e))),this.ws.once("open",(()=>{this.onceOpen(e)})),this.connectionManager.awaitConnection()}))}disconnect(){return r(this,void 0,void 0,(function*(){return this.clearHeartbeatInterval(),null!==this.reconnectTimeoutID&&(clearTimeout(this.reconnectTimeoutID),this.reconnectTimeoutID=null),this.state===s.default.CLOSED||null==this.ws?Promise.resolve(void 0):new Promise((e=>{null==this.ws&&e(void 0),null!=this.ws&&this.ws.once("close",(t=>e(t))),null!=this.ws&&this.state!==s.default.CLOSING&&this.ws.close(t.INTENTIONAL_DISCONNECT_CODE)}))}))}reconnect(){return r(this,void 0,void 0,(function*(){this.emit("reconnect"),yield this.disconnect(),yield this.connect()}))}request(e,t){return r(this,void 0,void 0,(function*(){if(!this.shouldBeConnected||null==this.ws)throw new c.NotConnectedError(JSON.stringify(e),e);const[n,i,o]=this.requestManager.createRequest(e,null!=t?t:this.config.timeout);return this.trace("send",i),function(e,t){return r(this,void 0,void 0,(function*(){return new Promise(((n,r)=>{e.send(t,(e=>{e?r(new c.DisconnectedError(e.message,e)):n()}))}))}))}(this.ws,i).catch((e=>{this.requestManager.reject(n,e)})),o}))}getUrl(){var e;return null!==(e=this.url)&&void 0!==e?e:""}onMessage(e){let t;this.trace("receive",e);try{t=JSON.parse(e)}catch(t){return void(t instanceof Error&&this.emit("error","badMessage",t.message,e))}if(null==t.type&&t.error)this.emit("error",t.error,t.error_message,t);else if(t.type&&this.emit(t.type,t),"response"===t.type)try{this.requestManager.handleResponse(t)}catch(t){t instanceof Error?this.emit("error","badMessage",t.message,e):this.emit("error","badMessage",t,t)}}onceOpen(e){return r(this,void 0,void 0,(function*(){if(null==this.ws)throw new c.XrplError("onceOpen: ws is null");this.ws.removeAllListeners(),clearTimeout(e),this.ws.on("message",(e=>this.onMessage(e))),this.ws.on("error",(e=>this.emit("error","websocket",e.message,e))),this.ws.once("close",((e,n)=>{if(null==this.ws)throw new c.XrplError("onceClose: ws is null");if(this.clearHeartbeatInterval(),this.requestManager.rejectAll(new c.DisconnectedError(`websocket was closed, ${n?(0,o.hexToString)((0,o.bytesToHex)(n)):""}`)),this.ws.removeAllListeners(),this.ws=null,void 0===e){const e=1011;this.emit("disconnected",e)}else this.emit("disconnected",e);e!==t.INTENTIONAL_DISCONNECT_CODE&&void 0!==e&&this.intentionalDisconnect()}));try{this.retryConnectionBackoff.reset(),this.startHeartbeatInterval(),this.connectionManager.resolveAllAwaiting(),this.emit("connected")}catch(e){e instanceof Error&&(this.connectionManager.rejectAllAwaiting(e),yield this.disconnect().catch((()=>{})))}}))}intentionalDisconnect(){const e=this.retryConnectionBackoff.duration();this.trace("reconnect",`Retrying connection in ${e}ms.`),this.emit("reconnecting",this.retryConnectionBackoff.attempts),this.reconnectTimeoutID=setTimeout((()=>{this.reconnect().catch((e=>{this.emit("error","reconnect",e.message,e)}))}),e)}clearHeartbeatInterval(){this.heartbeatIntervalID&&clearInterval(this.heartbeatIntervalID)}startHeartbeatInterval(){this.clearHeartbeatInterval(),this.heartbeatIntervalID=setInterval((()=>{this.heartbeat()}),this.config.timeout)}heartbeat(){return r(this,void 0,void 0,(function*(){this.request({command:"ping"}).catch((()=>r(this,void 0,void 0,(function*(){return this.reconnect().catch((e=>{this.emit("error","reconnect",e.message,e)}))}))))}))}onConnectionFailed(e){this.ws&&(this.ws.removeAllListeners(),this.ws.on("error",(()=>{})),this.ws.close(),this.ws=null),"number"==typeof e?this.connectionManager.rejectAllAwaiting(new c.NotConnectedError(`Connection failed with code ${e}.`,{code:e})):(null==e?void 0:e.message)?this.connectionManager.rejectAllAwaiting(new c.NotConnectedError(e.message,e)):this.connectionManager.rejectAllAwaiting(new c.NotConnectedError("Connection failed."))}}t.Connection=f},4184:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.types=t.ShaMap=t.HashPrefix=t.quality=t.TransactionResult=t.Type=t.LedgerEntryType=t.TransactionType=t.Field=t.DEFAULT_DEFINITIONS=t.ledgerHashes=t.binary=t.hashes=void 0;const s=n(1141);Object.defineProperty(t,"DEFAULT_DEFINITIONS",{enumerable:!0,get:function(){return s.DEFAULT_DEFINITIONS}}),Object.defineProperty(t,"Field",{enumerable:!0,get:function(){return s.Field}}),Object.defineProperty(t,"TransactionType",{enumerable:!0,get:function(){return s.TransactionType}}),Object.defineProperty(t,"LedgerEntryType",{enumerable:!0,get:function(){return s.LedgerEntryType}}),Object.defineProperty(t,"Type",{enumerable:!0,get:function(){return s.Type}}),Object.defineProperty(t,"TransactionResult",{enumerable:!0,get:function(){return s.TransactionResult}});const a=o(n(6986));t.types=a;const c=o(n(9543));t.binary=c;const l=n(8390);Object.defineProperty(t,"ShaMap",{enumerable:!0,get:function(){return l.ShaMap}});const u=o(n(2476));t.ledgerHashes=u;const d=o(n(7410));t.hashes=d;const f=n(8213);Object.defineProperty(t,"quality",{enumerable:!0,get:function(){return f.quality}});const h=n(7375);Object.defineProperty(t,"HashPrefix",{enumerable:!0,get:function(){return h.HashPrefix}})},4192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5620),i=n(3342);t.default=function(e){if("string"!=typeof e&&void 0===(null==e?void 0:e.AffectedNodes))throw new TypeError(`Unable to parse the parameter given to getXChainClaimID.\n 'meta' must be the metadata from an XChainCreateClaimID transaction. Received ${JSON.stringify(e)} instead.`);const t=function(e){return"string"==typeof e?(0,r.decode)(e):e}(e);if(!t.TransactionResult)throw new TypeError("Cannot get XChainClaimID from un-validated transaction");if("tesSUCCESS"===t.TransactionResult)return t.AffectedNodes.find((e=>(0,i.isCreatedNode)(e)&&"XChainOwnedClaimID"===e.CreatedNode.LedgerEntryType)).CreatedNode.NewFields.XChainClaimID}},4200:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UInt32=void 0;const r=n(3328),i=n(5517);class o extends r.UInt{constructor(e){super(null!=e?e:o.defaultUInt32.bytes)}static fromParser(e){return new o(e.read(o.width))}static from(e){if(e instanceof o)return e;const t=new Uint8Array(o.width);if("string"==typeof e){const n=Number.parseInt(e);return(0,i.writeUInt32BE)(t,n,0),new o(t)}if("number"==typeof e)return o.checkUintRange(e,0,4294967295),(0,i.writeUInt32BE)(t,e,0),new o(t);throw new Error("Cannot construct UInt32 from given value")}valueOf(){return parseInt((0,i.readUInt32BE)(this.bytes,0),10)}}t.UInt32=o,o.width=4,o.defaultUInt32=new o(new Uint8Array(o.width))},4202:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFaucetPath=t.getFaucetHost=t.faucetNetworkIDs=t.faucetNetworkPaths=t.FaucetNetwork=void 0;const r=n(255);var i;!function(e){e.Testnet="faucet.altnet.rippletest.net",e.Devnet="faucet.devnet.rippletest.net",e.WasmDevnet="wasmfaucet.devnet.rippletest.net"}(i||(t.FaucetNetwork=i={})),t.faucetNetworkPaths={[i.Testnet]:"/accounts",[i.Devnet]:"/accounts",[i.WasmDevnet]:"/accounts"},t.faucetNetworkIDs=new Map([[1,i.Testnet],[2,i.Devnet],[2002,i.WasmDevnet]]),t.getFaucetHost=function(e){if(null==e.networkID)throw new r.XRPLFaucetError("Cannot create faucet URL without networkID or the faucetHost information");if(t.faucetNetworkIDs.has(e.networkID))return t.faucetNetworkIDs.get(e.networkID);if(0===e.networkID)throw new r.XRPLFaucetError("Faucet is not available for mainnet.");throw new r.XRPLFaucetError("Faucet URL is not defined or inferrable.")},t.getFaucetPath=function(e){return void 0===e?"/accounts":t.faucetNetworkPaths[e]||"/accounts"}},4204:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=function(e,t,n,r){const{c:a,dkLen:c,DK:l,PRF:u,PRFSalt:d}=o(e,t,n,r);let f;const h=new Uint8Array(4),g=(0,i.createView)(h),p=new Uint8Array(u.outputLen);for(let e=1,t=0;t<c;e++,t+=u.outputLen){const n=l.subarray(t,t+u.outputLen);g.setInt32(0,e,!1),(f=d._cloneInto(f)).update(h).digestInto(p),n.set(p.subarray(0,n.length));for(let e=1;e<a;e++){u._cloneInto(f).update(p).digestInto(p);for(let e=0;e<n.length;e++)n[e]^=p[e]}}return s(u,d,l,f,p)},t.pbkdf2Async=async function(e,t,n,r){const{c:a,dkLen:c,asyncTick:l,DK:u,PRF:d,PRFSalt:f}=o(e,t,n,r);let h;const g=new Uint8Array(4),p=(0,i.createView)(g),y=new Uint8Array(d.outputLen);for(let e=1,t=0;t<c;e++,t+=d.outputLen){const n=u.subarray(t,t+d.outputLen);p.setInt32(0,e,!1),(h=f._cloneInto(h)).update(g).digestInto(y),n.set(y.subarray(0,n.length)),await(0,i.asyncLoop)(a-1,l,(()=>{d._cloneInto(h).update(y).digestInto(y);for(let e=0;e<n.length;e++)n[e]^=y[e]}))}return s(d,f,u,h,y)};const r=n(6202),i=n(5492);function o(e,t,n,o){(0,i.ahash)(e);const s=(0,i.checkOpts)({dkLen:32,asyncTick:10},o),{c:a,dkLen:c,asyncTick:l}=s;if((0,i.anumber)(a),(0,i.anumber)(c),(0,i.anumber)(l),a<1)throw new Error("iterations (c) should be >= 1");const u=(0,i.kdfInputToBytes)(t),d=(0,i.kdfInputToBytes)(n),f=new Uint8Array(c),h=r.hmac.create(e,u),g=h._cloneInto().update(d);return{c:a,dkLen:c,asyncTick:l,DK:f,PRF:h,PRFSalt:g}}function s(e,t,n,r,o){return e.destroy(),t.destroy(),r&&r.destroy(),(0,i.clean)(o),n}},4211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=t.nextTick=t.byteSwapIfBE=t.isLE=void 0,t.isBytes=function(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=o,t.byteSwap32=function(e){for(let t=0;t<e.length;t++)e[t]=o(e[t])},t.bytesToHex=function(e){if((0,i.abytes)(e),s)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=a[e[n]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(s)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){const n=l(e.charCodeAt(i)),o=l(e.charCodeAt(i+1));if(void 0===n||void 0===o){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}r[t]=16*n+o}return r},t.asyncLoop=async function(e,n,r){let i=Date.now();for(let o=0;o<e;o++){r(o);const e=Date.now()-i;e>=0&&e<n||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=u,t.toBytes=d,t.concatBytes=function(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];(0,i.abytes)(r),t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const i=e[t];n.set(i,r),r+=i.length}return n},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!=={}.toString.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(d(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(d(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(d(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return Uint8Array.from(r.crypto.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")};const r=n(4789),i=n(5697);function o(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.byteSwapIfBE=t.isLE?e=>e:e=>o(e);const s="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,a=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0"))),c={_0:48,_9:57,A:65,F:70,a:97,f:102};function l(e){return e>=c._0&&e<=c._9?e-c._0:e>=c.A&&e<=c.F?e-(c.A-10):e>=c.a&&e<=c.f?e-(c.a-10):void 0}function u(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function d(e){return"string"==typeof e&&(e=u(e)),(0,i.abytes)(e),e}t.nextTick=async()=>{},t.Hash=class{clone(){return this._cloneInto()}}},4218:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.keyToRFC1751Mnemonic=t.rfc1751MnemonicToKey=void 0;const i=n(619),o=r(n(8413)).default,s=["0000","0001","0010","0011","0100","0101","0110","0111","1000","1001","1010","1011","1100","1101","1110","1111"];function a(e){let t="";for(const n of e)t+=s[n>>4]+s[15&n];return t}function c(e,t,n){const r=e.substring(t,t+n);let i=0;for(let e=0;e<r.length;e++)i=2*i+r.charCodeAt(e)-48;return i}function l(e,t){const n=e.slice(t,t+6);let r=0;const i=[0,0,0,0,0,0,0,0,0];let s="";for(s of n){const e=o.indexOf(s.toUpperCase());if(-1===e)throw new TypeError(`Expected an RFC1751 word, but received '${s}'. For the full list of words in the RFC1751 encoding see https://datatracker.ietf.org/doc/html/rfc1751`);const t=(8-(r+11)%8)%8,n=e<<t,a=n>>16,c=n>>8&255,l=255&n,u=Math.floor(r/8);t>5?(i[u]|=a,i[u+1]|=c,i[u+2]|=l):t>-3?(i[u]|=c,i[u+1]|=l):i[u]|=l,r+=11}return{subKey:i.slice(),word:s}}function u(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function d(e){const t=function(e){const t=e.length;for(let n=0;n<t;n+=8)u(e,n,n+7),u(e,n+1,n+6),u(e,n+2,n+5),u(e,n+3,n+4);return e}(e);return(0,i.concat)([t.slice(8,16),t.slice(0,8)])}t.keyToRFC1751Mnemonic=function(e){let t=(n=d((0,i.hexToBytes)(e.replace(/\s+/gu,""))),Array.prototype.slice.call(n));var n;const r=[];for(let e=0;e<(8-t.length%8)%8;e++)r.push(0);t=r.concat(t);const s=[];for(let e=0;e<t.length;e+=8){const n=t.slice(e,e+8);let r=a(n),i=0;for(let e=0;e<64;e+=2)i+=c(r,e,2);n.push(i<<6&255),r=a(n);for(let e=0;e<64;e+=11)s.push(o[c(r,e,11)])}return s.join(" ")},t.rfc1751MnemonicToKey=function(e){const t=e.split(" ");let n=[];for(let e=0;e<t.length;e+=6){const{subKey:r,word:i}=l(t,e),o=a(r);let s=0;for(let e=0;e<64;e+=2)s+=c(o,e,2);if(c(o,64,2)!==(3&s))throw new Error(`Parity error at ${i}`);n=n.concat(r.slice(0,8))}return d(Uint8Array.from(n))}},4233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_224=t.sha512_256=t.sha384=t.sha512=t.sha224=t.sha256=t.SHA512_256=t.SHA512_224=t.SHA384=t.SHA512=t.SHA224=t.SHA256=void 0;const r=n(6897),i=n(6667),o=n(5492),s=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array(64);class c extends r.HashMD{constructor(e=32){super(64,e,8,!1),this.A=0|r.SHA256_IV[0],this.B=0|r.SHA256_IV[1],this.C=0|r.SHA256_IV[2],this.D=0|r.SHA256_IV[3],this.E=0|r.SHA256_IV[4],this.F=0|r.SHA256_IV[5],this.G=0|r.SHA256_IV[6],this.H=0|r.SHA256_IV[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:o,G:s,H:a}=this;return[e,t,n,r,i,o,s,a]}set(e,t,n,r,i,o,s,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let n=0;n<16;n++,t+=4)a[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=a[e-15],n=a[e-2],r=(0,o.rotr)(t,7)^(0,o.rotr)(t,18)^t>>>3,i=(0,o.rotr)(n,17)^(0,o.rotr)(n,19)^n>>>10;a[e]=i+a[e-7]+r+a[e-16]|0}let{A:n,B:i,C:c,D:l,E:u,F:d,G:f,H:h}=this;for(let e=0;e<64;e++){const t=h+((0,o.rotr)(u,6)^(0,o.rotr)(u,11)^(0,o.rotr)(u,25))+(0,r.Chi)(u,d,f)+s[e]+a[e]|0,g=((0,o.rotr)(n,2)^(0,o.rotr)(n,13)^(0,o.rotr)(n,22))+(0,r.Maj)(n,i,c)|0;h=f,f=d,d=u,u=l+t|0,l=c,c=i,i=n,n=t+g|0}n=n+this.A|0,i=i+this.B|0,c=c+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,f=f+this.G|0,h=h+this.H|0,this.set(n,i,c,l,u,d,f,h)}roundClean(){(0,o.clean)(a)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,o.clean)(this.buffer)}}t.SHA256=c;class l extends c{constructor(){super(28),this.A=0|r.SHA224_IV[0],this.B=0|r.SHA224_IV[1],this.C=0|r.SHA224_IV[2],this.D=0|r.SHA224_IV[3],this.E=0|r.SHA224_IV[4],this.F=0|r.SHA224_IV[5],this.G=0|r.SHA224_IV[6],this.H=0|r.SHA224_IV[7]}}t.SHA224=l;const u=(()=>i.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))))(),d=(()=>u[0])(),f=(()=>u[1])(),h=new Uint32Array(80),g=new Uint32Array(80);class p extends r.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=0|r.SHA512_IV[0],this.Al=0|r.SHA512_IV[1],this.Bh=0|r.SHA512_IV[2],this.Bl=0|r.SHA512_IV[3],this.Ch=0|r.SHA512_IV[4],this.Cl=0|r.SHA512_IV[5],this.Dh=0|r.SHA512_IV[6],this.Dl=0|r.SHA512_IV[7],this.Eh=0|r.SHA512_IV[8],this.El=0|r.SHA512_IV[9],this.Fh=0|r.SHA512_IV[10],this.Fl=0|r.SHA512_IV[11],this.Gh=0|r.SHA512_IV[12],this.Gl=0|r.SHA512_IV[13],this.Hh=0|r.SHA512_IV[14],this.Hl=0|r.SHA512_IV[15]}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:o,Dh:s,Dl:a,Eh:c,El:l,Fh:u,Fl:d,Gh:f,Gl:h,Hh:g,Hl:p}=this;return[e,t,n,r,i,o,s,a,c,l,u,d,f,h,g,p]}set(e,t,n,r,i,o,s,a,c,l,u,d,f,h,g,p){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|f,this.Gl=0|h,this.Hh=0|g,this.Hl=0|p}process(e,t){for(let n=0;n<16;n++,t+=4)h[n]=e.getUint32(t),g[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|h[e-15],n=0|g[e-15],r=i.rotrSH(t,n,1)^i.rotrSH(t,n,8)^i.shrSH(t,n,7),o=i.rotrSL(t,n,1)^i.rotrSL(t,n,8)^i.shrSL(t,n,7),s=0|h[e-2],a=0|g[e-2],c=i.rotrSH(s,a,19)^i.rotrBH(s,a,61)^i.shrSH(s,a,6),l=i.rotrSL(s,a,19)^i.rotrBL(s,a,61)^i.shrSL(s,a,6),u=i.add4L(o,l,g[e-7],g[e-16]),d=i.add4H(u,r,c,h[e-7],h[e-16]);h[e]=0|d,g[e]=0|u}let{Ah:n,Al:r,Bh:o,Bl:s,Ch:a,Cl:c,Dh:l,Dl:u,Eh:p,El:y,Fh:m,Fl:A,Gh:E,Gl:b,Hh:w,Hl:S}=this;for(let e=0;e<80;e++){const t=i.rotrSH(p,y,14)^i.rotrSH(p,y,18)^i.rotrBH(p,y,41),v=i.rotrSL(p,y,14)^i.rotrSL(p,y,18)^i.rotrBL(p,y,41),T=p&m^~p&E,O=y&A^~y&b,I=i.add5L(S,v,O,f[e],g[e]),_=i.add5H(I,w,t,T,d[e],h[e]),L=0|I,C=i.rotrSH(n,r,28)^i.rotrBH(n,r,34)^i.rotrBH(n,r,39),N=i.rotrSL(n,r,28)^i.rotrBL(n,r,34)^i.rotrBL(n,r,39),B=n&o^n&a^o&a,F=r&s^r&c^s&c;w=0|E,S=0|b,E=0|m,b=0|A,m=0|p,A=0|y,({h:p,l:y}=i.add(0|l,0|u,0|_,0|L)),l=0|a,u=0|c,a=0|o,c=0|s,o=0|n,s=0|r;const D=i.add3L(L,N,F);n=i.add3H(D,_,C,B),r=0|D}({h:n,l:r}=i.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:o,l:s}=i.add(0|this.Bh,0|this.Bl,0|o,0|s)),({h:a,l:c}=i.add(0|this.Ch,0|this.Cl,0|a,0|c)),({h:l,l:u}=i.add(0|this.Dh,0|this.Dl,0|l,0|u)),({h:p,l:y}=i.add(0|this.Eh,0|this.El,0|p,0|y)),({h:m,l:A}=i.add(0|this.Fh,0|this.Fl,0|m,0|A)),({h:E,l:b}=i.add(0|this.Gh,0|this.Gl,0|E,0|b)),({h:w,l:S}=i.add(0|this.Hh,0|this.Hl,0|w,0|S)),this.set(n,r,o,s,a,c,l,u,p,y,m,A,E,b,w,S)}roundClean(){(0,o.clean)(h,g)}destroy(){(0,o.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=p;class y extends p{constructor(){super(48),this.Ah=0|r.SHA384_IV[0],this.Al=0|r.SHA384_IV[1],this.Bh=0|r.SHA384_IV[2],this.Bl=0|r.SHA384_IV[3],this.Ch=0|r.SHA384_IV[4],this.Cl=0|r.SHA384_IV[5],this.Dh=0|r.SHA384_IV[6],this.Dl=0|r.SHA384_IV[7],this.Eh=0|r.SHA384_IV[8],this.El=0|r.SHA384_IV[9],this.Fh=0|r.SHA384_IV[10],this.Fl=0|r.SHA384_IV[11],this.Gh=0|r.SHA384_IV[12],this.Gl=0|r.SHA384_IV[13],this.Hh=0|r.SHA384_IV[14],this.Hl=0|r.SHA384_IV[15]}}t.SHA384=y;const m=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),A=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class E extends p{constructor(){super(28),this.Ah=0|m[0],this.Al=0|m[1],this.Bh=0|m[2],this.Bl=0|m[3],this.Ch=0|m[4],this.Cl=0|m[5],this.Dh=0|m[6],this.Dl=0|m[7],this.Eh=0|m[8],this.El=0|m[9],this.Fh=0|m[10],this.Fl=0|m[11],this.Gh=0|m[12],this.Gl=0|m[13],this.Hh=0|m[14],this.Hl=0|m[15]}}t.SHA512_224=E;class b extends p{constructor(){super(32),this.Ah=0|A[0],this.Al=0|A[1],this.Bh=0|A[2],this.Bl=0|A[3],this.Ch=0|A[4],this.Cl=0|A[5],this.Dh=0|A[6],this.Dl=0|A[7],this.Eh=0|A[8],this.El=0|A[9],this.Fh=0|A[10],this.Fl=0|A[11],this.Gh=0|A[12],this.Gl=0|A[13],this.Hh=0|A[14],this.Hl=0|A[15]}}t.SHA512_256=b,t.sha256=(0,o.createHasher)((()=>new c)),t.sha224=(0,o.createHasher)((()=>new l)),t.sha512=(0,o.createHasher)((()=>new p)),t.sha384=(0,o.createHasher)((()=>new y)),t.sha512_256=(0,o.createHasher)((()=>new b)),t.sha512_224=(0,o.createHasher)((()=>new E))},4263:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMBid=void 0;const r=n(255),i=n(2794);t.validateAMMBid=function(e){if((0,i.validateBaseTransaction)(e),null==e.Asset)throw new r.ValidationError("AMMBid: missing field Asset");if(!(0,i.isIssuedCurrency)(e.Asset))throw new r.ValidationError("AMMBid: Asset must be a Currency");if(null==e.Asset2)throw new r.ValidationError("AMMBid: missing field Asset2");if(!(0,i.isIssuedCurrency)(e.Asset2))throw new r.ValidationError("AMMBid: Asset2 must be a Currency");if(null!=e.BidMin&&!(0,i.isAmount)(e.BidMin))throw new r.ValidationError("AMMBid: BidMin must be an Amount");if(null!=e.BidMax&&!(0,i.isAmount)(e.BidMax))throw new r.ValidationError("AMMBid: BidMax must be an Amount");if(null!=e.AuthAccounts){if(!(0,i.isArray)(e.AuthAccounts))throw new r.ValidationError("AMMBid: AuthAccounts must be an AuthAccount array");if(e.AuthAccounts.length>4)throw new r.ValidationError("AMMBid: AuthAccounts length must not be greater than 4");!function(e,t){for(const n of t){if(!(0,i.isRecord)(n))throw new r.ValidationError("AMMBid: invalid AuthAccounts");if(!(0,i.isRecord)(n.AuthAccount))throw new r.ValidationError("AMMBid: invalid AuthAccounts");if(null==n.AuthAccount.Account)throw new r.ValidationError("AMMBid: invalid AuthAccounts");if("string"!=typeof n.AuthAccount.Account)throw new r.ValidationError("AMMBid: invalid AuthAccounts");if(n.AuthAccount.Account===e)throw new r.ValidationError("AMMBid: AuthAccounts must not include sender's address")}}(e.Account,e.AuthAccounts)}}},4296:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DER=t.DERErr=void 0,t.weierstrassPoints=y,t.weierstrass=function(e){const n=function(e){const t=(0,r.validateBasic)(e);return o.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:c,n:l}=n,u=c.BYTES+1,h=2*c.BYTES+1;function g(e){return(0,i.mod)(e,l)}function p(e){return(0,i.invert)(e,l)}const{ProjectivePoint:m,normPrivateKeyToScalar:A,weierstrassEquation:E,isWithinCurveOrder:b}=y({...n,toBytes(e,t,n){const r=t.toAffine(),i=c.toBytes(r.x),a=o.concatBytes;return(0,s.abool)("isCompressed",n),n?a(Uint8Array.from([t.hasEvenY()?2:3]),i):a(Uint8Array.from([4]),i,c.toBytes(r.y))},fromBytes(e){const t=e.length,n=e[0],r=e.subarray(1);if(t!==u||2!==n&&3!==n){if(t===h&&4===n)return{x:c.fromBytes(r.subarray(0,c.BYTES)),y:c.fromBytes(r.subarray(c.BYTES,2*c.BYTES))};throw new Error("invalid Point, expected length of "+u+", or uncompressed "+h+", got "+t)}{const e=o.bytesToNumberBE(r);if(!o.inRange(e,f,c.ORDER))throw new Error("Point is not on curve");const t=E(e);let i;try{i=c.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("Point is not on curve"+t)}return!(1&~n)!=((i&f)===f)&&(i=c.neg(i)),{x:e,y:i}}}}),w=e=>o.bytesToHex(o.numberToBytesBE(e,n.nByteLength));function S(e){return e>l>>f}const v=(e,t,n)=>o.bytesToNumberBE(e.slice(t,n));class T{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){const t=n.nByteLength;return e=(0,s.ensureBytes)("compactSignature",e,2*t),new T(v(e,0,t),v(e,t,2*t))}static fromDER(e){const{r:n,s:r}=t.DER.toSig((0,s.ensureBytes)("DER",e));return new T(n,r)}assertValidity(){o.aInRange("r",this.r,f,l),o.aInRange("s",this.s,f,l)}addRecoveryBit(e){return new T(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:r,recovery:i}=this,o=L((0,s.ensureBytes)("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const a=2===i||3===i?t+n.n:t;if(a>=c.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=1&i?"03":"02",u=m.fromHex(l+w(a)),d=p(a),f=g(-o*d),h=g(r*d),y=m.BASE.multiplyAndAddUnsafe(u,f,h);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return S(this.s)}normalizeS(){return this.hasHighS()?new T(this.r,g(-this.s),this.recovery):this}toDERRawBytes(){return o.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return o.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}const O={isValidPrivateKey(e){try{return A(e),!0}catch(e){return!1}},normPrivateKeyToScalar:A,randomPrivateKey:()=>{const e=(0,i.getMinHashLength)(n.n);return(0,i.mapHashToField)(n.randomBytes(e),n.n)},precompute:(e=8,t=m.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function I(e){const t=o.isBytes(e),n="string"==typeof e,r=(t||n)&&e.length;return t?r===u||r===h:n?r===2*u||r===2*h:e instanceof m}const _=n.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=o.bytesToNumberBE(e),r=8*e.length-n.nBitLength;return r>0?t>>BigInt(r):t},L=n.bits2int_modN||function(e){return g(_(e))},C=o.bitMask(n.nBitLength);function N(e){return o.aInRange("num < 2^"+n.nBitLength,e,d,C),o.numberToBytesBE(e,n.nByteLength)}const B={lowS:n.lowS,prehash:!1},F={lowS:n.lowS,prehash:!1};return m.BASE._setWindowSize(8),{CURVE:n,getPublicKey:function(e,t=!0){return m.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,n=!0){if(I(e))throw new Error("first arg must be private key");if(!I(t))throw new Error("second arg must be public key");return m.fromHex(t).multiply(A(e)).toRawBytes(n)},sign:function(e,t,r=B){const{seed:i,k2sig:l}=function(e,t,r=B){if(["recovered","canonical"].some((e=>e in r)))throw new Error("sign() legacy options not supported");const{hash:i,randomBytes:l}=n;let{lowS:u,prehash:h,extraEntropy:y}=r;null==u&&(u=!0),e=(0,s.ensureBytes)("msgHash",e),a(r),h&&(e=(0,s.ensureBytes)("prehashed msgHash",i(e)));const E=L(e),w=A(t),v=[N(w),N(E)];if(null!=y&&!1!==y){const e=!0===y?l(c.BYTES):y;v.push((0,s.ensureBytes)("extraEntropy",e))}const O=o.concatBytes(...v),I=E;return{seed:O,k2sig:function(e){const t=_(e);if(!b(t))return;const n=p(t),r=m.BASE.multiply(t).toAffine(),i=g(r.x);if(i===d)return;const o=g(n*g(I+i*w));if(o===d)return;let s=(r.x===i?0:2)|Number(r.y&f),a=o;return u&&S(o)&&(a=function(e){return S(e)?g(-e):e}(o),s^=1),new T(i,a,s)}}}(e,t,r),u=n;return o.createHmacDrbg(u.hash.outputLen,u.nByteLength,u.hmac)(i,l)},verify:function(e,r,i,c=F){const l=e;r=(0,s.ensureBytes)("msgHash",r),i=(0,s.ensureBytes)("publicKey",i);const{lowS:u,prehash:d,format:f}=c;if(a(c),"strict"in c)throw new Error("options.strict was renamed to lowS");if(void 0!==f&&"compact"!==f&&"der"!==f)throw new Error("format must be compact or der");const h="string"==typeof l||o.isBytes(l),y=!h&&!f&&"object"==typeof l&&null!==l&&"bigint"==typeof l.r&&"bigint"==typeof l.s;if(!h&&!y)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let A,E;try{if(y&&(A=new T(l.r,l.s)),h){try{"compact"!==f&&(A=T.fromDER(l))}catch(e){if(!(e instanceof t.DER.Err))throw e}A||"der"===f||(A=T.fromCompact(l))}E=m.fromHex(i)}catch(e){return!1}if(!A)return!1;if(u&&A.hasHighS())return!1;d&&(r=n.hash(r));const{r:b,s:w}=A,S=L(r),v=p(w),O=g(S*v),I=g(b*v),_=m.BASE.multiplyAndAddUnsafe(E,O,I)?.toAffine();return!!_&&g(_.x)===b},ProjectivePoint:m,Signature:T,utils:O}},t.SWUFpSqrtRatio=m,t.mapToCurveSimpleSWU=function(e,t){if((0,i.validateField)(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=m(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let i,o,s,a,c,l,u,d;i=e.sqr(r),i=e.mul(i,t.Z),o=e.sqr(i),o=e.add(o,i),s=e.add(o,e.ONE),s=e.mul(s,t.B),a=e.cmov(t.Z,e.neg(o),!e.eql(o,e.ZERO)),a=e.mul(a,t.A),o=e.sqr(s),l=e.sqr(a),c=e.mul(l,t.A),o=e.add(o,c),o=e.mul(o,s),l=e.mul(l,a),c=e.mul(l,t.B),o=e.add(o,c),u=e.mul(i,s);const{isValid:f,value:h}=n(o,l);d=e.mul(i,r),d=e.mul(d,h),u=e.cmov(u,s,f),d=e.cmov(d,h,f);const g=e.isOdd(r)===e.isOdd(d);return d=e.cmov(e.neg(d),d,g),u=e.div(u,a),{x:u,y:d}}};const r=n(4107),i=n(802),o=n(3449),s=n(3449);function a(e){void 0!==e.lowS&&(0,s.abool)("lowS",e.lowS),void 0!==e.prehash&&(0,s.abool)("prehash",e.prehash)}const{bytesToNumberBE:c,hexToBytes:l}=o;class u extends Error{constructor(e=""){super(e)}}t.DERErr=u,t.DER={Err:u,_tlv:{encode:(e,n)=>{const{Err:r}=t.DER;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(1&n.length)throw new r("tlv.encode: unpadded data");const i=n.length/2,s=o.numberToHexUnpadded(i);if(s.length/2&128)throw new r("tlv.encode: long form length too big");const a=i>127?o.numberToHexUnpadded(s.length/2|128):"";return o.numberToHexUnpadded(e)+a+s+n},decode(e,n){const{Err:r}=t.DER;let i=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(n.length<2||n[i++]!==e)throw new r("tlv.decode: wrong tlv");const o=n[i++];let s=0;if(128&o){const e=127&o;if(!e)throw new r("tlv.decode(long): indefinite length not supported");if(e>4)throw new r("tlv.decode(long): byte length is too big");const t=n.subarray(i,i+e);if(t.length!==e)throw new r("tlv.decode: length bytes not complete");if(0===t[0])throw new r("tlv.decode(long): zero leftmost byte");for(const e of t)s=s<<8|e;if(i+=e,s<128)throw new r("tlv.decode(long): not minimal encoding")}else s=o;const a=n.subarray(i,i+s);if(a.length!==s)throw new r("tlv.decode: wrong value length");return{v:a,l:n.subarray(i+s)}}},_int:{encode(e){const{Err:n}=t.DER;if(e<d)throw new n("integer: negative integers are not allowed");let r=o.numberToHexUnpadded(e);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new n("unexpected DER parsing assertion: unpadded hex");return r},decode(e){const{Err:n}=t.DER;if(128&e[0])throw new n("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new n("invalid signature integer: unnecessary leading zero");return c(e)}},toSig(e){const{Err:n,_int:r,_tlv:i}=t.DER,s="string"==typeof e?l(e):e;o.abytes(s);const{v:a,l:c}=i.decode(48,s);if(c.length)throw new n("invalid signature: left bytes after parsing");const{v:u,l:d}=i.decode(2,a),{v:f,l:h}=i.decode(2,d);if(h.length)throw new n("invalid signature: left bytes after parsing");return{r:r.decode(u),s:r.decode(f)}},hexFromSig(e){const{_tlv:n,_int:r}=t.DER,i=n.encode(2,r.encode(e.r))+n.encode(2,r.encode(e.s));return n.encode(48,i)}};const d=BigInt(0),f=BigInt(1),h=BigInt(2),g=BigInt(3),p=BigInt(4);function y(e){const t=function(e){const t=(0,r.validateBasic)(e);o.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:i,a:s}=t;if(n){if(!i.eql(s,i.ZERO))throw new Error("invalid endomorphism, can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,a=(0,i.Field)(t.n,t.nBitLength),c=t.toBytes||((e,t,r)=>{const i=t.toAffine();return o.concatBytes(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),l=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function u(e){const{a:r,b:i}=t,o=n.sqr(e),s=n.mul(o,e);return n.add(n.add(s,n.mul(e,r)),i)}if(!n.eql(n.sqr(t.Gy),u(t.Gx)))throw new Error("bad generator point: equation left != right");function h(e){const{allowedPrivateKeyLengths:n,nByteLength:r,wrapPrivateKey:a,n:c}=t;if(n&&"bigint"!=typeof e){if(o.isBytes(e)&&(e=o.bytesToHex(e)),"string"!=typeof e||!n.includes(e.length))throw new Error("invalid private key");e=e.padStart(2*r,"0")}let l;try{l="bigint"==typeof e?e:o.bytesToNumberBE((0,s.ensureBytes)("private key",e,r))}catch(t){throw new Error("invalid private key, expected hex or "+r+" bytes, got "+typeof e)}return a&&(l=(0,i.mod)(l,c)),o.aInRange("private key",l,f,c),l}function p(e){if(!(e instanceof A))throw new Error("ProjectivePoint expected")}const y=(0,s.memoized)(((e,t)=>{const{px:r,py:i,pz:o}=e;if(n.eql(o,n.ONE))return{x:r,y:i};const s=e.is0();null==t&&(t=s?n.ONE:n.inv(o));const a=n.mul(r,t),c=n.mul(i,t),l=n.mul(o,t);if(s)return{x:n.ZERO,y:n.ZERO};if(!n.eql(l,n.ONE))throw new Error("invZ was invalid");return{x:a,y:c}})),m=(0,s.memoized)((e=>{if(e.is0()){if(t.allowInfinityPoint&&!n.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:r,y:i}=e.toAffine();if(!n.isValid(r)||!n.isValid(i))throw new Error("bad point: x or y not FE");const o=n.sqr(i),s=u(r);if(!n.eql(o,s))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0}));class A{constructor(e,t,r){if(this.px=e,this.py=t,this.pz=r,null==e||!n.isValid(e))throw new Error("x required");if(null==t||!n.isValid(t))throw new Error("y required");if(null==r||!n.isValid(r))throw new Error("z required");Object.freeze(this)}static fromAffine(e){const{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw new Error("invalid affine point");if(e instanceof A)throw new Error("projective point not allowed");const i=e=>n.eql(e,n.ZERO);return i(t)&&i(r)?A.ZERO:new A(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(A.fromAffine)}static fromHex(e){const t=A.fromAffine(l((0,s.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return A.BASE.multiply(h(e))}static msm(e,t){return(0,r.pippenger)(A,a,e,t)}_setWindowSize(e){b.setWindowSize(this,e)}assertValidity(){m(this)}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){p(e);const{px:t,py:r,pz:i}=this,{px:o,py:s,pz:a}=e,c=n.eql(n.mul(t,a),n.mul(o,i)),l=n.eql(n.mul(r,a),n.mul(s,i));return c&&l}negate(){return new A(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:r}=t,i=n.mul(r,g),{px:o,py:s,pz:a}=this;let c=n.ZERO,l=n.ZERO,u=n.ZERO,d=n.mul(o,o),f=n.mul(s,s),h=n.mul(a,a),p=n.mul(o,s);return p=n.add(p,p),u=n.mul(o,a),u=n.add(u,u),c=n.mul(e,u),l=n.mul(i,h),l=n.add(c,l),c=n.sub(f,l),l=n.add(f,l),l=n.mul(c,l),c=n.mul(p,c),u=n.mul(i,u),h=n.mul(e,h),p=n.sub(d,h),p=n.mul(e,p),p=n.add(p,u),u=n.add(d,d),d=n.add(u,d),d=n.add(d,h),d=n.mul(d,p),l=n.add(l,d),h=n.mul(s,a),h=n.add(h,h),d=n.mul(h,p),c=n.sub(c,d),u=n.mul(h,f),u=n.add(u,u),u=n.add(u,u),new A(c,l,u)}add(e){p(e);const{px:r,py:i,pz:o}=this,{px:s,py:a,pz:c}=e;let l=n.ZERO,u=n.ZERO,d=n.ZERO;const f=t.a,h=n.mul(t.b,g);let y=n.mul(r,s),m=n.mul(i,a),E=n.mul(o,c),b=n.add(r,i),w=n.add(s,a);b=n.mul(b,w),w=n.add(y,m),b=n.sub(b,w),w=n.add(r,o);let S=n.add(s,c);return w=n.mul(w,S),S=n.add(y,E),w=n.sub(w,S),S=n.add(i,o),l=n.add(a,c),S=n.mul(S,l),l=n.add(m,E),S=n.sub(S,l),d=n.mul(f,w),l=n.mul(h,E),d=n.add(l,d),l=n.sub(m,d),d=n.add(m,d),u=n.mul(l,d),m=n.add(y,y),m=n.add(m,y),E=n.mul(f,E),w=n.mul(h,w),m=n.add(m,E),E=n.sub(y,E),E=n.mul(f,E),w=n.add(w,E),y=n.mul(m,w),u=n.add(u,y),y=n.mul(S,w),l=n.mul(b,l),l=n.sub(l,y),y=n.mul(b,m),d=n.mul(S,d),d=n.add(d,y),new A(l,u,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(A.ZERO)}wNAF(e){return b.wNAFCached(this,e,A.normalizeZ)}multiplyUnsafe(e){const{endo:r,n:i}=t;o.aInRange("scalar",e,d,i);const s=A.ZERO;if(e===d)return s;if(this.is0()||e===f)return this;if(!r||b.hasPrecomputes(this))return b.wNAFCachedUnsafe(this,e,A.normalizeZ);let{k1neg:a,k1:c,k2neg:l,k2:u}=r.splitScalar(e),h=s,g=s,p=this;for(;c>d||u>d;)c&f&&(h=h.add(p)),u&f&&(g=g.add(p)),p=p.double(),c>>=f,u>>=f;return a&&(h=h.negate()),l&&(g=g.negate()),g=new A(n.mul(g.px,r.beta),g.py,g.pz),h.add(g)}multiply(e){const{endo:r,n:i}=t;let s,a;if(o.aInRange("scalar",e,f,i),r){const{k1neg:t,k1:i,k2neg:o,k2:c}=r.splitScalar(e);let{p:l,f:u}=this.wNAF(i),{p:d,f}=this.wNAF(c);l=b.constTimeNegate(t,l),d=b.constTimeNegate(o,d),d=new A(n.mul(d.px,r.beta),d.py,d.pz),s=l.add(d),a=u.add(f)}else{const{p:t,f:n}=this.wNAF(e);s=t,a=n}return A.normalizeZ([s,a])[0]}multiplyAndAddUnsafe(e,t,n){const r=A.BASE,i=(e,t)=>t!==d&&t!==f&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,n));return o.is0()?void 0:o}toAffine(e){return y(this,e)}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===f)return!0;if(n)return n(A,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===f?this:n?n(A,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return(0,s.abool)("isCompressed",e),this.assertValidity(),c(A,this,e)}toHex(e=!0){return(0,s.abool)("isCompressed",e),o.bytesToHex(this.toRawBytes(e))}}A.BASE=new A(t.Gx,t.Gy,n.ONE),A.ZERO=new A(n.ZERO,n.ONE,n.ZERO);const E=t.nBitLength,b=(0,r.wNAF)(A,t.endo?Math.ceil(E/2):E);return{CURVE:t,ProjectivePoint:A,normPrivateKeyToScalar:h,weierstrassEquation:u,isWithinCurveOrder:function(e){return o.inRange(e,f,t.n)}}}function m(e,t){const n=e.ORDER;let r=d;for(let e=n-f;e%h===d;e/=h)r+=f;const i=r,o=h<<i-f-f,s=o*h,a=(n-f)/s,c=(a-f)/h,l=s-f,u=o,y=e.pow(t,a),m=e.pow(t,(a+f)/h);let A=(t,n)=>{let r=y,o=e.pow(n,l),s=e.sqr(o);s=e.mul(s,n);let a=e.mul(t,s);a=e.pow(a,c),a=e.mul(a,o),o=e.mul(a,n),s=e.mul(a,t);let d=e.mul(s,o);a=e.pow(d,u);let g=e.eql(a,e.ONE);o=e.mul(s,m),a=e.mul(d,r),s=e.cmov(o,s,g),d=e.cmov(a,d,g);for(let t=i;t>f;t--){let n=t-h;n=h<<n-f;let i=e.pow(d,n);const a=e.eql(i,e.ONE);o=e.mul(s,r),r=e.mul(r,r),i=e.mul(d,r),s=e.cmov(o,s,a),d=e.cmov(i,d,a)}return{isValid:g,value:s}};if(e.ORDER%p===g){const n=(e.ORDER-g)/p,r=e.sqrt(e.neg(t));A=(t,i)=>{let o=e.sqr(i);const s=e.mul(t,i);o=e.mul(o,s);let a=e.pow(o,n);a=e.mul(a,s);const c=e.mul(a,r),l=e.mul(e.sqr(a),i),u=e.eql(l,t);return{isValid:u,value:e.cmov(c,a,u)}}}return A}},4315:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getLastLedgerSequence=t.getSignedTx=t.waitForFinalTransactionOutcome=t.submitRequest=void 0;const i=n(255),o=n(5684);function s(e){const t="string"==typeof e?(0,o.decode)(e):e;if("string"==typeof t)return!1;if(null!=t.Signers){const e=t.Signers;for(const t of e)if(null==t.Signer.SigningPubKey||null==t.Signer.TxnSignature)return!1;return!0}return null!=t.SigningPubKey&&null!=t.TxnSignature}t.submitRequest=function(e,t,n=!1){return r(this,void 0,void 0,(function*(){if(!s(t))throw new i.ValidationError("Transaction must be signed.");const r={command:"submit",tx_blob:"string"==typeof t?t:(0,o.encode)(t),fail_hard:(a=t,"AccountDelete"===("string"==typeof a?(0,o.decode)(a):a).TransactionType||n)};var a;return e.request(r)}))},t.waitForFinalTransactionOutcome=function e(t,n,o,s){return r(this,void 0,void 0,(function*(){yield function(){return r(this,void 0,void 0,(function*(){return new Promise((e=>{setTimeout(e,1e3)}))}))}();const a=yield t.getLedgerIndex();if(o<a)throw new i.XrplError(`The latest ledger sequence ${a} is greater than the transaction's LastLedgerSequence (${o}).\nPreliminary result: ${s}`);const c=yield t.request({command:"tx",transaction:n}).catch((i=>r(this,void 0,void 0,(function*(){var r;const a=null===(r=null==i?void 0:i.data)||void 0===r?void 0:r.error;if("txnNotFound"===a)return e(t,n,o,s);throw new Error(`${a} \n Preliminary result: ${s}.\nFull error details: ${String(i)}`)}))));return c.result.validated?c:e(t,n,o,s)}))},t.getSignedTx=function(e,t,{autofill:n=!0,wallet:a}={}){return r(this,void 0,void 0,(function*(){if(s(t))return t;if(!a)throw new i.ValidationError("Wallet must be provided when submitting an unsigned transaction");let r="string"==typeof t?(0,o.decode)(t):t;return n&&(r=yield e.autofill(r)),a.sign(r).tx_blob}))},t.getLastLedgerSequence=function(e){return("string"==typeof e?(0,o.decode)(e):e).LastLedgerSequence}},4329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainModifyBridge=t.XChainModifyBridgeFlags=void 0;const r=n(2794);var i;!function(e){e[e.tfClearAccountCreateAmount=65536]="tfClearAccountCreateAmount"}(i||(t.XChainModifyBridgeFlags=i={})),t.validateXChainModifyBridge=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"XChainBridge",r.isXChainBridge),(0,r.validateOptionalField)(e,"SignatureReward",r.isAmount),(0,r.validateOptionalField)(e,"MinAccountCreateAmount",r.isAmount)}},4526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateDelegateSet=void 0;const r=n(255),i=n(2794),o=new Set(["AccountSet","SetRegularKey","SignerListSet","DelegateSet","AccountDelete","Batch","EnableAmendment","SetFee","UNLModify"]);t.validateDelegateSet=function(e){if((0,i.validateBaseTransaction)(e),(0,i.validateRequiredField)(e,"Authorize",i.isAccount),e.Authorize===e.Account)throw new r.ValidationError("DelegateSet: Authorize and Account must be different.");(0,i.validateRequiredField)(e,"Permissions",Array.isArray);const t=e.Permissions;if(t.length>10)throw new r.ValidationError("DelegateSet: Permissions array length cannot be greater than 10.");const n=new Set;if(t.forEach((e=>{if(null==e||1!==Object.keys(e).length||null==e.Permission||1!==Object.keys(e.Permission).length)throw new r.ValidationError("DelegateSet: Permissions array element is malformed");const t=e.Permission.PermissionValue;if(null==t)throw new r.ValidationError("DelegateSet: PermissionValue must be defined");if("string"!=typeof t)throw new r.ValidationError("DelegateSet: PermissionValue must be a string");if(o.has(t))throw new r.ValidationError(`DelegateSet: PermissionValue contains a non-delegatable transaction ${t}`);n.add(t)})),t.length!==n.size)throw new r.ValidationError("DelegateSet: Permissions array cannot contain duplicate values")}},4660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XrplDefinitions=void 0;const r=n(8816),i=n(6986);class o extends r.XrplDefinitionsBase{constructor(e,t){super(e,Object.assign({},i.coreTypes,t))}}t.XrplDefinitions=o},4758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePermissionedDomainDelete=void 0;const r=n(2794);t.validatePermissionedDomainDelete=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"DomainID",r.isString)}},4789:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},4876:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2896),i=n(3449);class o{constructor(){this.hash=r.sha512.create()}static half(e){return(new o).add(e).first256()}add(e){return this.hash.update(e),this}addU32(e){const t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e),this.add(t)}finish(){return this.hash.digest()}first256(){return this.finish().slice(0,32)}first256BigInt(){return(0,i.bytesToNumberBE)(this.first256())}}t.default=o},4965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMDelete=void 0;const r=n(255),i=n(2794);t.validateAMMDelete=function(e){if((0,i.validateBaseTransaction)(e),null==e.Asset)throw new r.ValidationError("AMMDelete: missing field Asset");if(!(0,i.isIssuedCurrency)(e.Asset))throw new r.ValidationError("AMMDelete: Asset must be a Currency");if(null==e.Asset2)throw new r.ValidationError("AMMDelete: missing field Asset2");if(!(0,i.isIssuedCurrency)(e.Asset2))throw new r.ValidationError("AMMDelete: Asset2 must be a Currency")}},5029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainAccountCreateCommit=void 0;const r=n(2794);t.validateXChainAccountCreateCommit=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"XChainBridge",r.isXChainBridge),(0,r.validateRequiredField)(e,"SignatureReward",r.isAmount),(0,r.validateRequiredField)(e,"Destination",r.isAccount),(0,r.validateRequiredField)(e,"Amount",r.isAmount)}},5036:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const i=n(9819),o=n(255),s=n(1279),a=n(9672),c=n(7831),l=n(1565),u=n(6362),d=n(3222),f=n(5684),h=n(5274),g=n(7234),p=n(4110),y=n(811);function m(e,t,n){if(t>n)throw new Error("Illegal clamp bounds");return Math.min(Math.max(e,t),n)}class A extends i.EventEmitter{constructor(e,t={}){var n,r;if(super(),this.apiVersion=s.DEFAULT_API_VERSION,"string"!=typeof e||!/wss?(?:\+unix)?:\/\//u.exec(e))throw new o.ValidationError("server URI must start with `wss://`, `ws://`, `wss+unix://`, or `ws+unix://`.");this.feeCushion=null!==(n=t.feeCushion)&&void 0!==n?n:1.2,this.maxFeeXRP=null!==(r=t.maxFeeXRP)&&void 0!==r?r:"2",this.connection=new p.Connection(e,t),this.connection.on("error",((e,t,n)=>{this.emit("error",e,t,n)})),this.connection.on("reconnect",(()=>{this.connection.on("connected",(()=>this.emit("connected")))})),this.connection.on("disconnected",(e=>{let t=e;t===p.INTENTIONAL_DISCONNECT_CODE&&(t=1e3),this.emit("disconnected",t)})),this.connection.on("ledgerClosed",(e=>{this.emit("ledgerClosed",e)})),this.connection.on("transaction",(e=>{(0,y.handleStreamPartialPayment)(e,this.connection.trace),this.emit("transaction",e)})),this.connection.on("validationReceived",(e=>{this.emit("validationReceived",e)})),this.connection.on("manifestReceived",(e=>{this.emit("manifestReceived",e)})),this.connection.on("peerStatusChange",(e=>{this.emit("peerStatusChange",e)})),this.connection.on("consensusPhase",(e=>{this.emit("consensusPhase",e)})),this.connection.on("path_find",(e=>{this.emit("path_find",e)}))}get url(){return this.connection.getUrl()}request(e){var t;return r(this,void 0,void 0,(function*(){const n=Object.assign(Object.assign({},e),{account:"string"==typeof e.account?(0,c.ensureClassicAddress)(e.account):void 0,api_version:null!==(t=e.api_version)&&void 0!==t?t:this.apiVersion}),r=yield this.connection.request(n);return(0,y.handlePartialPayment)(e.command,r),r}))}requestNextPage(e,t){return r(this,void 0,void 0,(function*(){if(!t.result.marker)return Promise.reject(new o.NotFoundError("response does not have a next page"));const n=Object.assign(Object.assign({},e),{marker:t.result.marker});return this.request(n)}))}on(e,t){return super.on(e,t)}requestAll(e,t){return r(this,void 0,void 0,(function*(){const n=null!=t?t:function(e){switch(e){case"account_channels":return"channels";case"account_lines":return"lines";case"account_objects":return"account_objects";case"account_tx":return"transactions";case"account_offers":case"book_offers":return"offers";case"ledger_data":return"state";default:return null}}(e.command);if(!n)throw new o.ValidationError(`no collect key for command ${e.command}`);const r=null==e.limit?1/0:e.limit;let i=0,s=e.marker;const a=[];do{const t=m(r-i,10,400),c=Object.assign(Object.assign({},e),{limit:t,marker:s}),l=yield this.connection.request(c),u=l.result;if(!(n in u))throw new o.XrplError(`${n} not in result`);const d=u[n];s=u.marker,a.push(l),Array.isArray(d)&&(i+=d.length)}while(Boolean(s)&&i<r);return a}))}getServerInfo(){var e;return r(this,void 0,void 0,(function*(){try{const t=yield this.request({command:"server_info"});this.networkID=null!==(e=t.result.info.network_id)&&void 0!==e?e:void 0,this.buildVersion=t.result.info.build_version}catch(e){console.error(e)}}))}connect(){return r(this,void 0,void 0,(function*(){return this.connection.connect().then((()=>r(this,void 0,void 0,(function*(){yield this.getServerInfo(),this.emit("connected")}))))}))}disconnect(){return r(this,void 0,void 0,(function*(){yield this.connection.disconnect()}))}isConnected(){return this.connection.isConnected()}autofill(e,t){return r(this,void 0,void 0,(function*(){const n=Object.assign({},e);(0,l.setValidAddresses)(n),n.Flags=(0,a.convertTxFlagsToNumber)(n);const r=[];return null==n.NetworkID&&(n.NetworkID=(0,l.txNeedsNetworkID)(this)?this.networkID:void 0),null==n.Sequence&&r.push((0,l.setNextValidSequenceNumber)(this,n)),null==n.Fee&&r.push((0,l.getTransactionFee)(this,n,t)),null==n.LastLedgerSequence&&r.push((0,l.setLatestValidatedLedgerSequence)(this,n)),"AccountDelete"===n.TransactionType&&r.push((0,l.checkAccountDeleteBlockers)(this,n)),"Batch"===n.TransactionType&&r.push((0,l.autofillBatchTxn)(this,n)),"Payment"===n.TransactionType&&null!=n.DeliverMax&&(0,l.handleDeliverMax)(n),Promise.all(r).then((()=>n))}))}simulate(e,t){var n;return r(this,void 0,void 0,(function*(){const r=null!==(n=null==t?void 0:t.binary)&&void 0!==n&&n,i="string"==typeof e?{command:"simulate",tx_blob:e,binary:r}:{command:"simulate",tx_json:e,binary:r};return this.request(i)}))}submit(e,t){return r(this,void 0,void 0,(function*(){const n=yield(0,c.getSignedTx)(this,e,t);return(0,c.submitRequest)(this,n,null==t?void 0:t.failHard)}))}submitAndWait(e,t){return r(this,void 0,void 0,(function*(){const n=yield(0,c.getSignedTx)(this,e,t),r=(0,c.getLastLedgerSequence)(n);if(null==r)throw new o.ValidationError("Transaction must contain a LastLedgerSequence value for reliable submission.");const i=yield(0,c.submitRequest)(this,n,null==t?void 0:t.failHard);if(i.result.engine_result.startsWith("tem"))throw new o.XrplError(`Transaction failed, ${i.result.engine_result}: ${i.result.engine_result_message}`);const s=f.hashes.hashSignedTx(n);return(0,c.waitForFinalTransactionOutcome)(this,s,r,i.result.engine_result)}))}prepareTransaction(e,t){return r(this,void 0,void 0,(function*(){return this.autofill(e,t)}))}getXrpBalance(e,t={}){var n;return r(this,void 0,void 0,(function*(){const r={command:"account_info",account:e,ledger_index:null!==(n=t.ledger_index)&&void 0!==n?n:"validated",ledger_hash:t.ledger_hash},i=yield this.request(r);return(0,f.dropsToXrp)(i.result.account_data.Balance)}))}getBalances(e,t={}){var n;return r(this,void 0,void 0,(function*(){const r=[];let i=Promise.resolve(0);t.peer||(i=this.getXrpBalance(e,{ledger_hash:t.ledger_hash,ledger_index:t.ledger_index}));const o={command:"account_lines",account:e,ledger_index:null!==(n=t.ledger_index)&&void 0!==n?n:"validated",ledger_hash:t.ledger_hash,peer:t.peer,limit:t.limit},s=this.requestAll(o);return yield Promise.all([i,s]).then((([e,t])=>{const n=t.flatMap((e=>(0,u.formatBalances)(e.result.lines)));0!==e&&r.push({currency:"XRP",value:e.toString()}),r.push(...n)})),r.slice(0,t.limit)}))}getOrderbook(e,t,n={}){return r(this,void 0,void 0,(function*(){(0,d.validateOrderbookOptions)(n);const r=(0,d.createBookOffersRequest)(e,t,n),i=yield(0,d.requestAllOffers)(this,r),o=yield(0,d.requestAllOffers)(this,(0,d.reverseRequest)(r)),s=(0,d.extractOffers)(i),a=(0,d.extractOffers)(o),c=(0,d.combineOrders)(s,a),{buy:l,sell:u}=(0,d.separateBuySellOrders)(c);return{buy:(0,d.sortAndLimitOffers)(l,n.limit),sell:(0,d.sortAndLimitOffers)(u,n.limit)}}))}getLedgerIndex(){return r(this,void 0,void 0,(function*(){return(yield this.request({command:"ledger",ledger_index:"validated"})).result.ledger_index}))}fundWallet(e,t={}){return r(this,void 0,void 0,(function*(){if(!this.isConnected())throw new o.RippledError("Client not connected, cannot call faucet");const n=Boolean(e),r=e&&(0,f.isValidClassicAddress)(e.classicAddress)?e:h.Wallet.generate(),i={destination:r.classicAddress,xrpAmount:t.amount,usageContext:t.usageContext,userAgent:"xrpl.js"};let s=0;if(n)try{s=Number(yield this.getXrpBalance(r.classicAddress))}catch(e){}return(0,g.requestFunding)(t,this,s,r,i)}))}}t.Client=A},5123:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNFTokenBurn=void 0;const r=n(2794);t.validateNFTokenBurn=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"NFTokenID",r.isString),(0,r.validateOptionalField)(e,"Owner",r.isAccount)}},5237:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OfferFlags=void 0,function(e){e[e.lsfPassive=65536]="lsfPassive",e[e.lsfSell=131072]="lsfSell"}(n||(t.OfferFlags=n={}))},5274:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;const i=n(857),o=n(9760),s=n(1218),a=n(619),c=r(n(735)),l=n(6333),u=n(5620),d=n(5442),f=r(n(5970)),h=n(255),g=n(9843),p=n(2794),y=n(99),m=n(7954),A=n(9333),E=n(6228),b=n(4218),w=n(3842),S=f.default.ed25519;class v{constructor(e,t,n={}){this.publicKey=e,this.privateKey=t,this.classicAddress=n.masterAddress?(0,m.ensureClassicAddress)(n.masterAddress):(0,d.deriveAddress)(e),this.seed=n.seed}get address(){return this.classicAddress}static generate(e=S){if(!Object.values(f.default).includes(e))throw new h.ValidationError("Invalid cryptographic signing algorithm");const t=(0,d.generateSeed)({algorithm:e});return v.fromSeed(t,{algorithm:e})}static fromSeed(e,t={}){return v.deriveWallet(e,{algorithm:t.algorithm,masterAddress:t.masterAddress})}static fromEntropy(e,t={}){var n;const r=null!==(n=t.algorithm)&&void 0!==n?n:S,i={entropy:Uint8Array.from(e),algorithm:r},o=(0,d.generateSeed)(i);return v.deriveWallet(o,{algorithm:r,masterAddress:t.masterAddress})}static fromMnemonic(e,t={}){var n;if("rfc1751"===t.mnemonicEncoding)return v.fromRFC1751Mnemonic(e,{masterAddress:t.masterAddress,algorithm:t.algorithm});if(!(0,o.validateMnemonic)(e,s.wordlist))throw new h.ValidationError("Unable to parse the given mnemonic using bip39 encoding");const r=(0,o.mnemonicToSeedSync)(e),c=i.HDKey.fromMasterSeed(r).derive(null!==(n=t.derivationPath)&&void 0!==n?n:"m/44'/144'/0'/0/0");!function(e){if(!(e.privateKey instanceof Uint8Array))throw new h.ValidationError("Unable to derive privateKey from mnemonic input");if(!(e.publicKey instanceof Uint8Array))throw new h.ValidationError("Unable to derive publicKey from mnemonic input")}(c);const l=(0,a.bytesToHex)(c.publicKey),u=(0,a.bytesToHex)(c.privateKey);return new v(l,`00${u}`,{masterAddress:t.masterAddress})}static fromRFC1751Mnemonic(e,t){const n=(0,b.rfc1751MnemonicToKey)(e);let r;r=t.algorithm===f.default.ed25519?"ed25519":"secp256k1";const i=(0,l.encodeSeed)(n,r);return v.fromSeed(i,{masterAddress:t.masterAddress,algorithm:t.algorithm})}static deriveWallet(e,t={}){var n;const{publicKey:r,privateKey:i}=(0,d.deriveKeypair)(e,{algorithm:null!==(n=t.algorithm)&&void 0!==n?n:S});return new v(r,i,{seed:e,masterAddress:t.masterAddress})}sign(e,t){let n=!1;"string"==typeof t?n=t:t&&(n=this.classicAddress);const r=(0,A.omitBy)(Object.assign({},e),(e=>null==e));if(r.TxnSignature||r.Signers)throw new h.ValidationError('txJSON must not contain "TxnSignature" or "Signers" properties');if(function(e){"Payment"===e.TransactionType&&"string"!=typeof e.Amount&&e.Amount.value.includes(".")&&e.Amount.value.endsWith("0")&&(e.Amount=Object.assign({},e.Amount),e.Amount.value=new c.default(e.Amount.value).toString())}(r),(0,g.validate)(r),(0,y.hasFlag)(r,p.GlobalFlags.tfInnerBatchTxn,"tfInnerBatchTxn"))throw new h.ValidationError("Cannot sign a Batch inner transaction.");const i=Object.assign({},r);if(n){i.SigningPubKey="";const e={Account:n,SigningPubKey:this.publicKey,TxnSignature:T(i,this.privateKey,n)};i.Signers=[{Signer:e}]}else i.SigningPubKey=this.publicKey,i.TxnSignature=T(i,this.privateKey);const o=(0,u.encode)(i);return{tx_blob:o,hash:(0,E.hashSignedTx)(o)}}verifyTransaction(e){return(0,w.verifySignature)(e,this.publicKey)}getXAddress(e=!1,t=!1){return(0,l.classicAddressToXAddress)(this.classicAddress,e,t)}}function T(e,t,n){if(n){const r=(0,l.isValidXAddress)(n)?(0,l.xAddressToClassicAddress)(n).classicAddress:n;return(0,d.sign)((0,u.encodeForMultisigning)(e,r),t)}return(0,d.sign)((0,u.encodeForSigning)(e),t)}t.Wallet=v,v.fromSecret=v.fromSeed},5315:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(619),o=r(n(735)),s=n(6333),a=n(255);function c(e,t){const n=4294967296;return(e^new o.default(384160001).multipliedBy(t).modulo(n).plus(2459).modulo(n).toNumber())>>>0}t.default=function(e){if(64!==e.length)throw new a.XrplError(`Attempting to parse a nftokenID with length ${e.length}\n , but expected a token with length 64`);const t=new o.default(e.substring(48,56),16).toNumber(),n=new o.default(e.substring(56,64),16).toNumber();return{NFTokenID:e,Flags:new o.default(e.substring(0,4),16).toNumber(),TransferFee:new o.default(e.substring(4,8),16).toNumber(),Issuer:(0,s.encodeAccountID)((0,i.hexToBytes)(e.substring(8,48))),Taxon:c(t,n),Sequence:n}}},5407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NEGATIVE_UNL_ID=void 0,t.NEGATIVE_UNL_ID="2E8A59AA9D3B5B186B0B9E0F62E6C02587CA74A4D778938E957B6357D364B244"},5435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e={}){var t,n;this.factor=2,this.numAttempts=0,this.ms=null!==(t=e.min)&&void 0!==t?t:100,this.max=null!==(n=e.max)&&void 0!==n?n:1e3}get attempts(){return this.numAttempts}duration(){const e=this.ms*Math.pow(this.factor,this.numAttempts);return this.numAttempts+=1,Math.floor(Math.min(e,this.max))}reset(){this.numAttempts=0}}},5442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSeed=t.deriveNodeAddress=t.deriveAddress=t.verify=t.sign=t.deriveKeypair=t.generateSeed=void 0;const i=n(6333);Object.defineProperty(t,"decodeSeed",{enumerable:!0,get:function(){return i.decodeSeed}});const o=n(1658),s=n(7377),a=n(619),c=n(8957),l=r(n(4876)),u=r(n(3212)),d=n(1788),f=r(n(2484)),h=r(n(9577));function g(e){return{"ecdsa-secp256k1":f.default,ed25519:h.default}[e]}function p(e){return(0,i.encodeAccountID)(function(e){return(0,o.ripemd160)((0,s.sha256)(e))}(e))}t.generateSeed=function(e={}){u.default.ok(!e.entropy||e.entropy.length>=16,"entropy too short");const t=e.entropy?e.entropy.slice(0,16):(0,a.randomBytes)(16),n="ed25519"===e.algorithm?"ed25519":"secp256k1";return(0,i.encodeSeed)(t,n)},t.deriveKeypair=function(e,t){var n;const r=(0,i.decodeSeed)(e),o=g("ed25519"===(null!==(n=null==t?void 0:t.algorithm)&&void 0!==n?n:r.type)?"ed25519":"ecdsa-secp256k1"),s=o.deriveKeypair(r.bytes,t),a=l.default.half("This test message should verify."),c=o.sign(a,s.privateKey);if(!o.verify(a,c,s.publicKey))throw new Error("derived keypair did not generate verifiable signature");return s},t.sign=function(e,t){return g((0,d.getAlgorithmFromPrivateKey)(t)).sign((0,a.hexToBytes)(e),t)},t.verify=function(e,t,n){return g((0,d.getAlgorithmFromPublicKey)(n)).verify((0,a.hexToBytes)(e),t,n)},t.deriveAddress=function(e){return p((0,a.hexToBytes)(e))},t.deriveNodeAddress=function(e){const t=(0,i.decodeNodePublic)(e);return p((0,c.accountPublicFromPublicGenerator)(t))}},5463:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UInt64=void 0;const r=n(3328),i=n(619),o=n(5517),s=n(1141),a=/^[a-fA-F0-9]{1,16}$/,c=/^[0-9]{1,20}$/,l=BigInt(4294967295);function u(e){return"MaximumAmount"===e||"OutstandingAmount"===e||"MPTAmount"===e}class d extends r.UInt{constructor(e){super(null!=e?e:d.defaultUInt64.bytes)}static fromParser(e){return new d(e.read(d.width))}static from(e,t=""){if(e instanceof d)return e;let n=new Uint8Array(d.width);if("number"==typeof e){if(e<0)throw new Error("value must be an unsigned integer");const t=BigInt(e),n=[new Uint8Array(4),new Uint8Array(4)];return(0,o.writeUInt32BE)(n[0],Number(t>>BigInt(32)),0),(0,o.writeUInt32BE)(n[1],Number(t&BigInt(l)),0),new d((0,i.concat)(n))}if("string"==typeof e){if(u(t)){if(!c.test(e))throw new Error(`${t} ${e} is not a valid base 10 string`);e=BigInt(e).toString(16)}if("string"==typeof e&&!a.test(e))throw new Error(`${e} is not a valid hex-string`);const r=e.padStart(16,"0");return n=(0,i.hexToBytes)(r),new d(n)}if("bigint"==typeof e){const t=[new Uint8Array(4),new Uint8Array(4)];return(0,o.writeUInt32BE)(t[0],Number(Number(e>>BigInt(32))),0),(0,o.writeUInt32BE)(t[1],Number(e&BigInt(l)),0),new d((0,i.concat)(t))}throw new Error("Cannot construct UInt64 from given value")}toJSON(e=s.DEFAULT_DEFINITIONS,t=""){const n=(0,i.bytesToHex)(this.bytes);return u(t)?BigInt("0x"+n).toString(10):n}valueOf(){const e=BigInt((0,o.readUInt32BE)(this.bytes.slice(0,4),0)),t=BigInt((0,o.readUInt32BE)(this.bytes.slice(4),0));return e<<BigInt(32)|t}toBytes(){return this.bytes}}t.UInt64=d,d.width=8,d.defaultUInt64=new d(new Uint8Array(d.width))},5489:(e,t)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function r(e,...t){if(!((n=e)instanceof Uint8Array||ArrayBuffer.isView(n)&&"Uint8Array"===n.constructor.name))throw new Error("Uint8Array expected");var n;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}Object.defineProperty(t,"__esModule",{value:!0}),t.anumber=n,t.abytes=r,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},t.aoutput=function(e,t){r(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}},5492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=i,t.anumber=o,t.abytes=s,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");o(e.outputLen),o(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},t.aoutput=function(e,t){s(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=a,t.byteSwap32=c,t.bytesToHex=function(e){if(s(e),l)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=u[e[n]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(l)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){const n=f(e.charCodeAt(i)),o=f(e.charCodeAt(i+1));if(void 0===n||void 0===o){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}r[t]=16*n+o}return r},t.asyncLoop=async function(e,n,r){let i=Date.now();for(let o=0;o<e;o++){r(o);const e=Date.now()-i;e>=0&&e<n||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=h,t.bytesToUtf8=function(e){return(new TextDecoder).decode(e)},t.toBytes=g,t.kdfInputToBytes=function(e){return"string"==typeof e&&(e=h(e)),s(e),e},t.concatBytes=function(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];s(r),t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const i=e[t];n.set(i,r),r+=i.length}return n},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!=={}.toString.call(t))throw new Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=p,t.createOptHasher=y,t.createXOFer=m,t.randomBytes=function(e=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return Uint8Array.from(r.crypto.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")};const r=n(1300);function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function s(e,...t){if(!i(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function a(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function c(e){for(let t=0;t<e.length;t++)e[t]=a(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>a(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:c;const l=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),u=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0"))),d={_0:48,_9:57,A:65,F:70,a:97,f:102};function f(e){return e>=d._0&&e<=d._9?e-d._0:e>=d.A&&e<=d.F?e-(d.A-10):e>=d.a&&e<=d.f?e-(d.a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function g(e){return"string"==typeof e&&(e=h(e)),s(e),e}function p(e){const t=t=>e().update(g(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function y(e){const t=(t,n)=>e(n).update(g(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}function m(e){const t=(t,n)=>e(n).update(g(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}t.nextTick=async()=>{},t.Hash=class{},t.wrapConstructor=p,t.wrapConstructorWithOpts=y,t.wrapXOFConstructorWithOpts=m},5516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidClassicAddress=t.decodeAccountPublic=t.encodeAccountPublic=t.encodeNodePublic=t.decodeNodePublic=t.decodeAddress=t.decodeAccountID=t.encodeAddress=t.encodeAccountID=t.decodeSeed=t.encodeSeed=t.codec=void 0;const r=n(1616),i=n(7377),o=n(2824),s=[1,225,75],a={sha256:i.sha256},c=new class{constructor(e){this._sha256=e.sha256,this._codec=r.base58xrp}encode(e,t){const n=t.versions;return this._encodeVersioned(e,n,t.expectedLength)}decode(e,t){var n;const r=t.versions,i=t.versionTypes,s=this.decodeChecked(e);if(r.length>1&&!t.expectedLength)throw new Error("expectedLength is required because there are >= 2 possible versions");const a="number"==typeof r[0]?1:r[0].length,c=null!==(n=t.expectedLength)&&void 0!==n?n:s.length-a,l=s.slice(0,-c),u=s.slice(-c);for(let e=0;e<r.length;e++){const t=Array.isArray(r[e])?r[e]:[r[e]];if((0,o.arrayEqual)(l,t))return{version:t,bytes:u,type:i?i[e]:null}}throw new Error("version_invalid: version bytes do not match any of the provided version(s)")}encodeChecked(e){const t=this._sha256(this._sha256(e)).slice(0,4);return this._encodeRaw(Uint8Array.from((0,o.concatArgs)(e,t)))}decodeChecked(e){const t=this._decodeRaw(e);if(t.byteLength<5)throw new Error("invalid_input_size: decoded data must have length >= 5");if(!this._verifyCheckSum(t))throw new Error("checksum_invalid");return t.slice(0,-4)}_encodeVersioned(e,t,n){if(!d(e,n))throw new Error("unexpected_payload_length: bytes.length does not match expectedLength. Ensure that the bytes are a Uint8Array.");return this.encodeChecked((0,o.concatArgs)(t,e))}_encodeRaw(e){return this._codec.encode(Uint8Array.from(e))}_decodeRaw(e){return this._codec.decode(e)}_verifyCheckSum(e){const t=this._sha256(this._sha256(e.slice(0,-4))).slice(0,4),n=e.slice(-4);return(0,o.arrayEqual)(t,n)}}(a);function l(e){return c.encode(e,{versions:[0],expectedLength:20})}function u(e){return c.decode(e,{versions:[0],expectedLength:20}).bytes}function d(e,t){return"byteLength"in e?e.byteLength===t:e.length===t}t.codec=c,t.encodeSeed=function(e,t){if(!d(e,16))throw new Error("entropy must have length 16");const n={expectedLength:16,versions:"ed25519"===t?s:[33]};return c.encode(e,n)},t.decodeSeed=function(e,t={versionTypes:["ed25519","secp256k1"],versions:[s,33],expectedLength:16}){return c.decode(e,t)},t.encodeAccountID=l,t.encodeAddress=l,t.decodeAccountID=u,t.decodeAddress=u,t.decodeNodePublic=function(e){return c.decode(e,{versions:[28],expectedLength:33}).bytes},t.encodeNodePublic=function(e){return c.encode(e,{versions:[28],expectedLength:33})},t.encodeAccountPublic=function(e){return c.encode(e,{versions:[35],expectedLength:33})},t.decodeAccountPublic=function(e){return c.decode(e,{versions:[35],expectedLength:33}).bytes},t.isValidClassicAddress=function(e){try{u(e)}catch(e){return!1}return!0}},5517:(e,t)=>{"use strict";function n(e,t){if(e.byteLength!==t.byteLength)throw new Error("Cannot compare arrays of different length");for(let n=0;n<e.length-1;n+=1){if(e[n]>t[n])return 1;if(e[n]<t[n])return-1}return 0}function r(e){return e.byteOffset%2==0&&e.byteLength%2==0}function i(e){return e.byteOffset%4==0&&e.byteLength%4==0}Object.defineProperty(t,"__esModule",{value:!0}),t.compare=t.equal=t.readInt64BE=t.readInt32BE=t.readUInt32BE=t.readUInt16BE=t.writeInt64BE=t.writeInt32BE=t.writeUInt32BE=t.writeUInt16BE=t.writeUInt8=void 0,t.writeUInt8=function(e,t,n){t=Number(t),e[n]=t},t.writeUInt16BE=function(e,t,n){t=Number(t),e[n]=t>>>8,e[n+1]=t},t.writeUInt32BE=function(e,t,n){e[n]=t>>>24&255,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t},t.writeInt32BE=function(e,t,n){new DataView(e.buffer,e.byteOffset,e.byteLength).setInt32(n,t,!1)},t.writeInt64BE=function(e,t,n){new DataView(e.buffer,e.byteOffset,e.byteLength).setBigInt64(n,t,!1)},t.readUInt16BE=function(e,t){return new DataView(e.buffer).getUint16(t,!1).toString(10)},t.readUInt32BE=function(e,t){return new DataView(e.buffer).getUint32(t,!1).toString(10)},t.readInt32BE=function(e,t){return new DataView(e.buffer,e.byteOffset,e.byteLength).getInt32(t,!1)},t.readInt64BE=function(e,t){return new DataView(e.buffer,e.byteOffset,e.byteLength).getBigInt64(t,!1)},t.equal=function(e,t){const o=e instanceof ArrayBuffer?new Uint8Array(e,0):e,s=t instanceof ArrayBuffer?new Uint8Array(t,0):t;return o.byteLength==s.byteLength&&(i(o)&&i(s)?0===function(e,t){return n(new Uint32Array(e.buffer,e.byteOffset,e.byteLength/4),new Uint32Array(t.buffer,t.byteOffset,t.byteLength/4))}(o,s):r(o)&&r(s)?0===function(e,t){return n(new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2))}(o,s):0===function(e,t){return n(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(o,s))},t.compare=n},5615:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateVaultCreate=t.VaultCreateFlags=t.VaultWithdrawalPolicy=void 0;const r=n(255),i=n(99),o=n(2794);var s,a;!function(e){e[e.vaultStrategyFirstComeFirstServe=1]="vaultStrategyFirstComeFirstServe"}(s||(t.VaultWithdrawalPolicy=s={})),function(e){e[e.tfVaultPrivate=65536]="tfVaultPrivate",e[e.tfVaultShareNonTransferable=131072]="tfVaultShareNonTransferable"}(a||(t.VaultCreateFlags=a={})),t.validateVaultCreate=function(e){if((0,o.validateBaseTransaction)(e),(0,o.validateRequiredField)(e,"Asset",o.isCurrency),(0,o.validateOptionalField)(e,"Data",o.isString),(0,o.validateOptionalField)(e,"AssetsMaximum",o.isXRPLNumber),(0,o.validateOptionalField)(e,"MPTokenMetadata",o.isString),(0,o.validateOptionalField)(e,"WithdrawalPolicy",o.isNumber),(0,o.validateOptionalField)(e,"DomainID",o.isString),void 0!==e.Data){const t=e.Data;if(!(0,i.isHex)(t))throw new r.ValidationError("VaultCreate: Data must be a valid hex string");const n=t.length/2;if(n>o.VAULT_DATA_MAX_BYTE_LENGTH)throw new r.ValidationError(`VaultCreate: Data exceeds ${o.VAULT_DATA_MAX_BYTE_LENGTH} bytes (actual: ${n})`)}if(void 0!==e.MPTokenMetadata){const t=e.MPTokenMetadata;if(!(0,i.isHex)(t))throw new r.ValidationError("VaultCreate: MPTokenMetadata must be a valid hex string");const n=t.length/2;if(n>1024)throw new r.ValidationError(`VaultCreate: MPTokenMetadata exceeds 1024 bytes (actual: ${n})`)}if(void 0!==e.DomainID&&!(0,i.hasFlag)(e,a.tfVaultPrivate,"tfVaultPrivate"))throw new r.ValidationError("VaultCreate: Cannot set DomainID unless tfVaultPrivate flag is set.")}},5620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.coreTypes=t.DEFAULT_DEFINITIONS=t.XrplDefinitionsBase=t.XrplDefinitions=t.TRANSACTION_TYPES=t.decodeLedgerData=t.decodeQuality=t.encodeQuality=t.encodeForSigningBatch=t.encodeForMultisigning=t.encodeForSigningClaim=t.encodeForSigning=t.encode=t.decode=void 0;const r=n(4184),i=n(2476);Object.defineProperty(t,"decodeLedgerData",{enumerable:!0,get:function(){return i.decodeLedgerData}});const o=n(1141);Object.defineProperty(t,"XrplDefinitionsBase",{enumerable:!0,get:function(){return o.XrplDefinitionsBase}}),Object.defineProperty(t,"TRANSACTION_TYPES",{enumerable:!0,get:function(){return o.TRANSACTION_TYPES}}),Object.defineProperty(t,"DEFAULT_DEFINITIONS",{enumerable:!0,get:function(){return o.DEFAULT_DEFINITIONS}});const s=n(4660);Object.defineProperty(t,"XrplDefinitions",{enumerable:!0,get:function(){return s.XrplDefinitions}});const a=n(6986);Object.defineProperty(t,"coreTypes",{enumerable:!0,get:function(){return a.coreTypes}});const c=n(619),{signingData:l,signingClaimData:u,multiSigningData:d,signingBatchData:f,binaryToJSON:h,serializeObject:g}=r.binary;t.decode=function(e,t){if("string"!=typeof e)throw new Error("binary must be a hex string");return h(e,t)},t.encode=function(e,t){if("object"!=typeof e)throw new Error;return(0,c.bytesToHex)(g(e,{definitions:t}))},t.encodeForSigning=function(e,t){if("object"!=typeof e)throw new Error;return(0,c.bytesToHex)(l(e,r.HashPrefix.transactionSig,{definitions:t}))},t.encodeForSigningClaim=function(e){if("object"!=typeof e)throw new Error;return(0,c.bytesToHex)(u(e))},t.encodeForMultisigning=function(e,t,n){if("object"!=typeof e)throw new Error;if(""!==e.SigningPubKey)throw new Error;const r=n?{definitions:n}:void 0;return(0,c.bytesToHex)(d(e,t,r))},t.encodeForSigningBatch=function(e){if("object"!=typeof e)throw new Error("Need an object to encode a Batch transaction");return(0,c.bytesToHex)(f(e))},t.encodeQuality=function(e){if("string"!=typeof e)throw new Error;return(0,c.bytesToHex)(r.quality.encode(e))},t.decodeQuality=function(e){if("string"!=typeof e)throw new Error;return r.quality.decode(e).toString()}},5642:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rfc1751MnemonicToKey=t.keyToRFC1751Mnemonic=t.walletFromSecretNumbers=t.Wallet=t.ECDSA=t.Client=void 0;var s=n(5036);Object.defineProperty(t,"Client",{enumerable:!0,get:function(){return s.Client}}),i(n(9729),t),i(n(5684),t);var a=n(5970);Object.defineProperty(t,"ECDSA",{enumerable:!0,get:function(){return o(a).default}}),i(n(255),t);var c=n(5274);Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return c.Wallet}});var l=n(5907);Object.defineProperty(t,"walletFromSecretNumbers",{enumerable:!0,get:function(){return l.walletFromSecretNumbers}});var u=n(4218);Object.defineProperty(t,"keyToRFC1751Mnemonic",{enumerable:!0,get:function(){return u.keyToRFC1751Mnemonic}}),Object.defineProperty(t,"rfc1751MnemonicToKey",{enumerable:!0,get:function(){return u.rfc1751MnemonicToKey}}),i(n(3842),t)},5644:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(255),o=r(n(9373)),s=r(n(2530)),a=n(168);class c extends a.Node{constructor(e,t,n){super(),this.tag=e,this.type=n,this.data=t}get hash(){switch(this.type){case a.NodeType.ACCOUNT_STATE:{const e=o.default.LEAF_NODE.toString(16);return(0,s.default)(e+this.data+this.tag)}case a.NodeType.TRANSACTION_NO_METADATA:{const e=o.default.TRANSACTION_ID.toString(16);return(0,s.default)(e+this.data)}case a.NodeType.TRANSACTION_METADATA:{const e=o.default.TRANSACTION_NODE.toString(16);return(0,s.default)(e+this.data+this.tag)}default:throw new i.XrplError("Tried to hash a SHAMap node of unknown type.")}}addItem(e,t){throw new i.XrplError("Cannot call addItem on a LeafNode")}}t.default=c},5684:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getXChainClaimID=t.parseNFTokenID=t.getNFTokenID=t.encodeForSigningClaim=t.encodeForSigning=t.encodeForMultiSigning=t.decode=t.encode=t.decodeXAddress=t.encodeXAddress=t.decodeAccountPublic=t.encodeAccountPublic=t.decodeNodePublic=t.encodeNodePublic=t.decodeAccountID=t.encodeAccountID=t.decodeSeed=t.encodeSeed=t.isValidClassicAddress=t.isValidXAddress=t.xAddressToClassicAddress=t.classicAddressToXAddress=t.convertHexToString=t.convertStringToHex=t.verifyPaymentChannelClaim=t.verifyKeypairSignature=t.signPaymentChannelClaim=t.deriveXAddress=t.deriveAddress=t.deriveKeypair=t.hashes=t.isValidAddress=t.isValidSecret=t.qualityToDecimal=t.transferRateToDecimal=t.decimalToTransferRate=t.percentToTransferRate=t.decimalToQuality=t.percentToQuality=t.unixTimeToRippleTime=t.rippleTimeToUnixTime=t.isoTimeToRippleTime=t.rippleTimeToISOTime=t.hasNextPage=t.xrpToDrops=t.dropsToXrp=t.getBalanceChanges=void 0;const i=n(6333);Object.defineProperty(t,"classicAddressToXAddress",{enumerable:!0,get:function(){return i.classicAddressToXAddress}}),Object.defineProperty(t,"decodeAccountID",{enumerable:!0,get:function(){return i.decodeAccountID}}),Object.defineProperty(t,"decodeAccountPublic",{enumerable:!0,get:function(){return i.decodeAccountPublic}}),Object.defineProperty(t,"decodeNodePublic",{enumerable:!0,get:function(){return i.decodeNodePublic}}),Object.defineProperty(t,"decodeSeed",{enumerable:!0,get:function(){return i.decodeSeed}}),Object.defineProperty(t,"decodeXAddress",{enumerable:!0,get:function(){return i.decodeXAddress}}),Object.defineProperty(t,"encodeAccountID",{enumerable:!0,get:function(){return i.encodeAccountID}}),Object.defineProperty(t,"encodeAccountPublic",{enumerable:!0,get:function(){return i.encodeAccountPublic}}),Object.defineProperty(t,"encodeNodePublic",{enumerable:!0,get:function(){return i.encodeNodePublic}}),Object.defineProperty(t,"encodeSeed",{enumerable:!0,get:function(){return i.encodeSeed}}),Object.defineProperty(t,"encodeXAddress",{enumerable:!0,get:function(){return i.encodeXAddress}}),Object.defineProperty(t,"isValidClassicAddress",{enumerable:!0,get:function(){return i.isValidClassicAddress}}),Object.defineProperty(t,"isValidXAddress",{enumerable:!0,get:function(){return i.isValidXAddress}}),Object.defineProperty(t,"xAddressToClassicAddress",{enumerable:!0,get:function(){return i.xAddressToClassicAddress}});const o=n(5620),s=n(5442);Object.defineProperty(t,"verifyKeypairSignature",{enumerable:!0,get:function(){return s.verify}});const a=n(8437);Object.defineProperty(t,"deriveKeypair",{enumerable:!0,get:function(){return a.deriveKeypair}}),Object.defineProperty(t,"deriveAddress",{enumerable:!0,get:function(){return a.deriveAddress}}),Object.defineProperty(t,"deriveXAddress",{enumerable:!0,get:function(){return a.deriveXAddress}});const c=r(n(2945));t.getBalanceChanges=c.default;const l=r(n(6670));t.getNFTokenID=l.default;const u=r(n(4192));t.getXChainClaimID=u.default;const d=n(1377),f=r(n(5315));t.parseNFTokenID=f.default;const h=n(3365);Object.defineProperty(t,"percentToTransferRate",{enumerable:!0,get:function(){return h.percentToTransferRate}}),Object.defineProperty(t,"decimalToTransferRate",{enumerable:!0,get:function(){return h.decimalToTransferRate}}),Object.defineProperty(t,"transferRateToDecimal",{enumerable:!0,get:function(){return h.transferRateToDecimal}}),Object.defineProperty(t,"percentToQuality",{enumerable:!0,get:function(){return h.percentToQuality}}),Object.defineProperty(t,"decimalToQuality",{enumerable:!0,get:function(){return h.decimalToQuality}}),Object.defineProperty(t,"qualityToDecimal",{enumerable:!0,get:function(){return h.qualityToDecimal}});const g=r(n(376));t.signPaymentChannelClaim=g.default;const p=n(6339);Object.defineProperty(t,"convertHexToString",{enumerable:!0,get:function(){return p.convertHexToString}}),Object.defineProperty(t,"convertStringToHex",{enumerable:!0,get:function(){return p.convertStringToHex}});const y=n(2295);Object.defineProperty(t,"rippleTimeToISOTime",{enumerable:!0,get:function(){return y.rippleTimeToISOTime}}),Object.defineProperty(t,"isoTimeToRippleTime",{enumerable:!0,get:function(){return y.isoTimeToRippleTime}}),Object.defineProperty(t,"rippleTimeToUnixTime",{enumerable:!0,get:function(){return y.rippleTimeToUnixTime}}),Object.defineProperty(t,"unixTimeToRippleTime",{enumerable:!0,get:function(){return y.unixTimeToRippleTime}});const m=r(n(392));t.verifyPaymentChannelClaim=m.default;const A=n(2722);Object.defineProperty(t,"xrpToDrops",{enumerable:!0,get:function(){return A.xrpToDrops}}),Object.defineProperty(t,"dropsToXrp",{enumerable:!0,get:function(){return A.dropsToXrp}}),t.isValidSecret=function(e){try{return(0,a.deriveKeypair)(e),!0}catch(e){return!1}},t.encode=function(e){return(0,o.encode)(e)},t.encodeForSigning=function(e){return(0,o.encodeForSigning)(e)},t.encodeForSigningClaim=function(e){return(0,o.encodeForSigningClaim)(e)},t.encodeForMultiSigning=function(e,t){return(0,o.encodeForMultisigning)(e,t)},t.decode=function(e){return(0,o.decode)(e)},t.isValidAddress=function(e){return(0,i.isValidXAddress)(e)||(0,i.isValidClassicAddress)(e)},t.hasNextPage=function(e){return Boolean(e.result.marker)};const E={hashSignedTx:d.hashSignedTx,hashTx:d.hashTx,hashAccountRoot:d.hashAccountRoot,hashSignerListId:d.hashSignerListId,hashOfferId:d.hashOfferId,hashTrustline:d.hashTrustline,hashTxTree:d.hashTxTree,hashStateTree:d.hashStateTree,hashLedger:d.hashLedger,hashLedgerHeader:d.hashLedgerHeader,hashEscrow:d.hashEscrow,hashPaymentChannel:d.hashPaymentChannel};t.hashes=E},5697:(e,t)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function r(e,...t){if(!((n=e)instanceof Uint8Array||ArrayBuffer.isView(n)&&"Uint8Array"===n.constructor.name))throw new Error("Uint8Array expected");var n;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}Object.defineProperty(t,"__esModule",{value:!0}),t.anumber=n,t.abytes=r,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},t.aoutput=function(e,t){r(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}},5713:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateVaultWithdraw=void 0;const r=n(2794);t.validateVaultWithdraw=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"VaultID",r.isString),(0,r.validateRequiredField)(e,"Amount",r.isAmount),(0,r.validateOptionalField)(e,"Destination",r.isAccount)}},5755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Blob=void 0;const r=n(1275),i=n(619);class o extends r.SerializedType{constructor(e){super(e)}static fromParser(e,t){return new o(e.read(t))}static from(e){if(e instanceof o)return e;if("string"==typeof e){if(!/^[A-F0-9]*$/iu.test(e))throw new Error("Cannot construct Blob from a non-hex string");return new o((0,i.hexToBytes)(e))}throw new Error("Cannot construct Blob from value given")}}t.Blob=o},5763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccountID=void 0;const r=n(6333),i=n(7284),o=n(619),s=/^[A-F0-9]{40}$/;class a extends i.Hash160{constructor(e){super(null!=e?e:a.defaultAccountID.bytes)}static from(e){if(e instanceof a)return e;if("string"==typeof e)return""===e?new a:s.test(e)?new a((0,o.hexToBytes)(e)):this.fromBase58(e);throw new Error("Cannot construct AccountID from value given")}static fromBase58(e){if((0,r.isValidXAddress)(e)){const t=(0,r.xAddressToClassicAddress)(e);if(!1!==t.tag)throw new Error("Only allowed to have tag on Account or Destination");e=t.classicAddress}return new a(Uint8Array.from((0,r.decodeAccountID)(e)))}toJSON(){return this.toBase58()}toBase58(){return(0,r.encodeAccountID)(this.bytes)}}t.AccountID=a,a.defaultAccountID=new a(new Uint8Array(20))},5812:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.twistedEdwards=function(e){const t=function(e){const t=(0,r.validateBasic)(e);return o.validateObject(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}(e),{Fp:n,n:f,prehash:h,hash:g,randomBytes:p,nByteLength:y,h:m}=t,A=l<<BigInt(8*y)-c,E=n.create,b=(0,i.Field)(t.n,t.nBitLength),w=t.uvRatio||((e,t)=>{try{return{isValid:!0,value:n.sqrt(e*n.inv(t))}}catch(e){return{isValid:!1,value:a}}}),S=t.adjustScalarBytes||(e=>e),v=t.domain||((e,t,n)=>{if((0,s.abool)("phflag",n),t.length||n)throw new Error("Contexts/pre-hash are not supported");return e});function T(e,t){o.aInRange("coordinate "+e,t,a,A)}function O(e){if(!(e instanceof L))throw new Error("ExtendedPoint expected")}const I=(0,s.memoized)(((e,t)=>{const{ex:r,ey:i,ez:o}=e,s=e.is0();null==t&&(t=s?u:n.inv(o));const l=E(r*t),d=E(i*t),f=E(o*t);if(s)return{x:a,y:c};if(f!==c)throw new Error("invZ was invalid");return{x:l,y:d}})),_=(0,s.memoized)((e=>{const{a:n,d:r}=t;if(e.is0())throw new Error("bad point: ZERO");const{ex:i,ey:o,ez:s,et:a}=e,c=E(i*i),l=E(o*o),u=E(s*s),d=E(u*u),f=E(c*n);if(E(u*E(f+l))!==E(d+E(r*E(c*l))))throw new Error("bad point: equation left != right (1)");if(E(i*o)!==E(s*a))throw new Error("bad point: equation left != right (2)");return!0}));class L{constructor(e,t,n,r){this.ex=e,this.ey=t,this.ez=n,this.et=r,T("x",e),T("y",t),T("z",n),T("t",r),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(e){if(e instanceof L)throw new Error("extended point not allowed");const{x:t,y:n}=e||{};return T("x",t),T("y",n),new L(t,n,c,E(t*n))}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.ez)));return e.map(((e,n)=>e.toAffine(t[n]))).map(L.fromAffine)}static msm(e,t){return(0,r.pippenger)(L,b,e,t)}_setWindowSize(e){B.setWindowSize(this,e)}assertValidity(){_(this)}equals(e){O(e);const{ex:t,ey:n,ez:r}=this,{ex:i,ey:o,ez:s}=e,a=E(t*s),c=E(i*r),l=E(n*s),u=E(o*r);return a===c&&l===u}is0(){return this.equals(L.ZERO)}negate(){return new L(E(-this.ex),this.ey,this.ez,E(-this.et))}double(){const{a:e}=t,{ex:n,ey:r,ez:i}=this,o=E(n*n),s=E(r*r),a=E(l*E(i*i)),c=E(e*o),u=n+r,d=E(E(u*u)-o-s),f=c+s,h=f-a,g=c-s,p=E(d*h),y=E(f*g),m=E(d*g),A=E(h*f);return new L(p,y,A,m)}add(e){O(e);const{a:n,d:r}=t,{ex:i,ey:o,ez:s,et:c}=this,{ex:u,ey:d,ez:f,et:h}=e;if(n===BigInt(-1)){const e=E((o-i)*(d+u)),t=E((o+i)*(d-u)),n=E(t-e);if(n===a)return this.double();const r=E(s*l*h),g=E(c*l*f),p=g+r,y=t+e,m=g-r,A=E(p*n),b=E(y*m),w=E(p*m),S=E(n*y);return new L(A,b,S,w)}const g=E(i*u),p=E(o*d),y=E(c*r*h),m=E(s*f),A=E((i+o)*(u+d)-g-p),b=m-y,w=m+y,S=E(p-n*g),v=E(A*b),T=E(w*S),I=E(A*S),_=E(b*w);return new L(v,T,_,I)}subtract(e){return this.add(e.negate())}wNAF(e){return B.wNAFCached(this,e,L.normalizeZ)}multiply(e){const t=e;o.aInRange("scalar",t,c,f);const{p:n,f:r}=this.wNAF(t);return L.normalizeZ([n,r])[0]}multiplyUnsafe(e,t=L.ZERO){const n=e;return o.aInRange("scalar",n,a,f),n===a?N:this.is0()||n===c?this:B.wNAFCachedUnsafe(this,n,L.normalizeZ,t)}isSmallOrder(){return this.multiplyUnsafe(m).is0()}isTorsionFree(){return B.unsafeLadder(this,f).is0()}toAffine(e){return I(this,e)}clearCofactor(){const{h:e}=t;return e===c?this:this.multiplyUnsafe(e)}static fromHex(e,r=!1){const{d:i,a:l}=t,u=n.BYTES;e=(0,s.ensureBytes)("pointHex",e,u),(0,s.abool)("zip215",r);const d=e.slice(),f=e[u-1];d[u-1]=-129&f;const h=o.bytesToNumberLE(d),g=r?A:n.ORDER;o.aInRange("pointHex.y",h,a,g);const p=E(h*h),y=E(p-c),m=E(i*p-l);let{isValid:b,value:S}=w(y,m);if(!b)throw new Error("Point.fromHex: invalid y coordinate");const v=(S&c)===c,T=!!(128&f);if(!r&&S===a&&T)throw new Error("Point.fromHex: x=0 and x_0=1");return T!==v&&(S=E(-S)),L.fromAffine({x:S,y:h})}static fromPrivateKey(e){return M(e).point}toRawBytes(){const{x:e,y:t}=this.toAffine(),r=o.numberToBytesLE(t,n.BYTES);return r[r.length-1]|=e&c?128:0,r}toHex(){return o.bytesToHex(this.toRawBytes())}}L.BASE=new L(t.Gx,t.Gy,c,E(t.Gx*t.Gy)),L.ZERO=new L(a,c,c,a);const{BASE:C,ZERO:N}=L,B=(0,r.wNAF)(L,8*y);function F(e){return(0,i.mod)(e,f)}function D(e){return F(o.bytesToNumberLE(e))}function M(e){const t=n.BYTES;e=(0,s.ensureBytes)("private key",e,t);const r=(0,s.ensureBytes)("hashed private key",g(e),2*t),i=S(r.slice(0,t)),o=r.slice(t,2*t),a=D(i),c=C.multiply(a),l=c.toRawBytes();return{head:i,prefix:o,scalar:a,point:c,pointBytes:l}}function P(e=new Uint8Array,...t){const n=o.concatBytes(...t);return D(g(v(n,(0,s.ensureBytes)("context",e),!!h)))}const x=d;return C._setWindowSize(8),{CURVE:t,getPublicKey:function(e){return M(e).pointBytes},sign:function(e,t,r={}){e=(0,s.ensureBytes)("message",e),h&&(e=h(e));const{prefix:i,scalar:c,pointBytes:l}=M(t),u=P(r.context,i,e),d=C.multiply(u).toRawBytes(),g=F(u+P(r.context,d,l,e)*c);o.aInRange("signature.s",g,a,f);const p=o.concatBytes(d,o.numberToBytesLE(g,n.BYTES));return(0,s.ensureBytes)("result",p,2*n.BYTES)},verify:function(e,t,r,i=x){const{context:a,zip215:c}=i,l=n.BYTES;e=(0,s.ensureBytes)("signature",e,2*l),t=(0,s.ensureBytes)("message",t),r=(0,s.ensureBytes)("publicKey",r,l),void 0!==c&&(0,s.abool)("zip215",c),h&&(t=h(t));const u=o.bytesToNumberLE(e.slice(l,2*l));let d,f,g;try{d=L.fromHex(r,c),f=L.fromHex(e.slice(0,l),c),g=C.multiplyUnsafe(u)}catch(e){return!1}if(!c&&d.isSmallOrder())return!1;const p=P(a,f.toRawBytes(),d.toRawBytes(),t);return f.add(d.multiplyUnsafe(p)).subtract(g).clearCofactor().equals(L.ZERO)},ExtendedPoint:L,utils:{getExtendedPublicKey:M,randomPrivateKey:()=>p(n.BYTES),precompute:(e=8,t=L.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}};const r=n(4107),i=n(802),o=n(3449),s=n(3449),a=BigInt(0),c=BigInt(1),l=BigInt(2),u=BigInt(8),d={zip215:!0}},5842:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNFTokenCreateOffer=t.NFTokenCreateOfferFlags=void 0;const r=n(255),i=n(99),o=n(2794);var s;!function(e){e[e.tfSellNFToken=1]="tfSellNFToken"}(s||(t.NFTokenCreateOfferFlags=s={})),t.validateNFTokenCreateOffer=function(e){var t,n;if((0,o.validateBaseTransaction)(e),e.Account===e.Owner)throw new r.ValidationError("NFTokenCreateOffer: Owner and Account must not be equal");if(e.Account===e.Destination)throw new r.ValidationError("NFTokenCreateOffer: Destination and Account must not be equal");if((0,o.validateOptionalField)(e,"Destination",o.isAccount),(0,o.validateOptionalField)(e,"Owner",o.isAccount),null==e.NFTokenID)throw new r.ValidationError("NFTokenCreateOffer: missing field NFTokenID");if(!(0,o.isAmount)(e.Amount))throw new r.ValidationError("NFTokenCreateOffer: invalid Amount");const a=null!==(t=e.Flags)&&void 0!==t?t:0;("number"==typeof a?(0,i.isFlagEnabled)(a,s.tfSellNFToken):null!==(n=a.tfSellNFToken)&&void 0!==n&&n)?function(e){if(null!=e.Owner)throw new r.ValidationError("NFTokenCreateOffer: Owner must not be present for sell offers")}(e):function(e){if(null==e.Owner)throw new r.ValidationError("NFTokenCreateOffer: Owner must be present for buy offers");if((0,o.parseAmountValue)(e.Amount)<=0)throw new r.ValidationError("NFTokenCreateOffer: Amount must be greater than 0 for buy offers")}(e)}},5863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validate=void 0;const r=n(255),i=n(9672),o=n(8571),s=n(3750),a=n(4263),c=n(3746),l=n(9966),u=n(4965),d=n(6214),f=n(2190),h=n(988),g=n(6695),p=n(6237),y=n(248),m=n(2859),A=n(5903),E=n(2794),b=n(390),w=n(7698),S=n(6769),v=n(4526),T=n(602),O=n(8377),I=n(8292),_=n(7118),L=n(3296),C=n(7315),N=n(3094),B=n(9962),F=n(1362),D=n(548),M=n(5998),P=n(5123),x=n(7688),R=n(5842),H=n(8718),U=n(7636),V=n(3539),k=n(9349),j=n(9726),z=n(1386),K=n(1441),G=n(2152),q=n(1722),W=n(5),X=n(4758),Y=n(821),$=n(1664),J=n(2905),Z=n(3007),Q=n(6181),ee=n(9043),te=n(5615),ne=n(2404),re=n(3461),ie=n(1811),oe=n(5713),se=n(5029),ae=n(7872),ce=n(1933),le=n(8312),ue=n(3471),de=n(707),fe=n(425),he=n(4329);t.validate=function e(t){const n=Object.assign({},t);switch((0,E.validateBaseTransaction)(n),Object.keys(n).forEach((e=>{const t=n[e];if(t&&(0,E.isIssuedCurrencyAmount)(t)){const e=t.currency;if(3===e.length&&"XRP"===e.toUpperCase())throw new r.ValidationError(`Cannot have an issued currency with a similar standard code to XRP (received '${e}'). XRP is not an issued currency.`)}})),n.Flags=(0,i.convertTxFlagsToNumber)(n),n.TransactionType){case"AMMBid":(0,a.validateAMMBid)(n);break;case"AMMClawback":(0,c.validateAMMClawback)(n);break;case"AMMCreate":(0,l.validateAMMCreate)(n);break;case"AMMDelete":(0,u.validateAMMDelete)(n);break;case"AMMDeposit":(0,d.validateAMMDeposit)(n);break;case"AMMVote":(0,f.validateAMMVote)(n);break;case"AMMWithdraw":(0,h.validateAMMWithdraw)(n);break;case"AccountDelete":(0,o.validateAccountDelete)(n);break;case"AccountSet":(0,s.validateAccountSet)(n);break;case"Batch":(0,g.validateBatch)(n),n.RawTransactions.forEach((t=>{e(t.RawTransaction)}));break;case"CheckCancel":(0,p.validateCheckCancel)(n);break;case"CheckCash":(0,y.validateCheckCash)(n);break;case"CheckCreate":(0,m.validateCheckCreate)(n);break;case"Clawback":(0,A.validateClawback)(n);break;case"CredentialAccept":(0,b.validateCredentialAccept)(n);break;case"CredentialCreate":(0,w.validateCredentialCreate)(n);break;case"CredentialDelete":(0,S.validateCredentialDelete)(n);break;case"DIDDelete":(0,O.validateDIDDelete)(n);break;case"DIDSet":(0,I.validateDIDSet)(n);break;case"DelegateSet":(0,v.validateDelegateSet)(n);break;case"DepositPreauth":(0,T.validateDepositPreauth)(n);break;case"EscrowCancel":(0,_.validateEscrowCancel)(n);break;case"EscrowCreate":(0,L.validateEscrowCreate)(n);break;case"EscrowFinish":(0,C.validateEscrowFinish)(n);break;case"MPTokenAuthorize":(0,N.validateMPTokenAuthorize)(n);break;case"MPTokenIssuanceCreate":(0,B.validateMPTokenIssuanceCreate)(n);break;case"MPTokenIssuanceDestroy":(0,F.validateMPTokenIssuanceDestroy)(n);break;case"MPTokenIssuanceSet":(0,D.validateMPTokenIssuanceSet)(n);break;case"NFTokenAcceptOffer":(0,M.validateNFTokenAcceptOffer)(n);break;case"NFTokenBurn":(0,P.validateNFTokenBurn)(n);break;case"NFTokenCancelOffer":(0,x.validateNFTokenCancelOffer)(n);break;case"NFTokenCreateOffer":(0,R.validateNFTokenCreateOffer)(n);break;case"NFTokenMint":(0,H.validateNFTokenMint)(n);break;case"NFTokenModify":(0,U.validateNFTokenModify)(n);break;case"OfferCancel":(0,V.validateOfferCancel)(n);break;case"OfferCreate":(0,k.validateOfferCreate)(n);break;case"OracleDelete":(0,j.validateOracleDelete)(n);break;case"OracleSet":(0,z.validateOracleSet)(n);break;case"Payment":(0,K.validatePayment)(n);break;case"PaymentChannelClaim":(0,G.validatePaymentChannelClaim)(n);break;case"PaymentChannelCreate":(0,q.validatePaymentChannelCreate)(n);break;case"PaymentChannelFund":(0,W.validatePaymentChannelFund)(n);break;case"PermissionedDomainSet":(0,Y.validatePermissionedDomainSet)(n);break;case"PermissionedDomainDelete":(0,X.validatePermissionedDomainDelete)(n);break;case"SetRegularKey":(0,$.validateSetRegularKey)(n);break;case"SignerListSet":(0,J.validateSignerListSet)(n);break;case"TicketCreate":(0,Z.validateTicketCreate)(n);break;case"TrustSet":(0,Q.validateTrustSet)(n);break;case"VaultClawback":(0,ee.validateVaultClawback)(n);break;case"VaultCreate":(0,te.validateVaultCreate)(n);break;case"VaultDelete":(0,ne.validateVaultDelete)(n);break;case"VaultDeposit":(0,re.validateVaultDeposit)(n);break;case"VaultSet":(0,ie.validateVaultSet)(n);break;case"VaultWithdraw":(0,oe.validateVaultWithdraw)(n);break;case"XChainAccountCreateCommit":(0,se.validateXChainAccountCreateCommit)(n);break;case"XChainAddAccountCreateAttestation":(0,ae.validateXChainAddAccountCreateAttestation)(n);break;case"XChainAddClaimAttestation":(0,ce.validateXChainAddClaimAttestation)(n);break;case"XChainClaim":(0,le.validateXChainClaim)(n);break;case"XChainCommit":(0,ue.validateXChainCommit)(n);break;case"XChainCreateBridge":(0,de.validateXChainCreateBridge)(n);break;case"XChainCreateClaimID":(0,fe.validateXChainCreateClaimID)(n);break;case"XChainModifyBridge":(0,he.validateXChainModifyBridge)(n);break;default:throw new r.ValidationError(`Invalid field TransactionType: ${n.TransactionType}`)}}},5903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateClawback=void 0;const r=n(255),i=n(2794);t.validateClawback=function(e){if((0,i.validateBaseTransaction)(e),(0,i.validateRequiredField)(e,"Amount",i.isClawbackAmount),(0,i.validateOptionalField)(e,"Holder",i.isAccount),!(0,i.isIssuedCurrencyAmount)(e.Amount)&&!(0,i.isMPTAmount)(e.Amount))throw new r.ValidationError("Clawback: invalid Amount");if((0,i.isIssuedCurrencyAmount)(e.Amount)&&e.Account===e.Amount.issuer)throw new r.ValidationError("Clawback: invalid holder Account");if((0,i.isMPTAmount)(e.Amount)&&e.Account===e.Holder)throw new r.ValidationError("Clawback: invalid holder Account");if((0,i.isIssuedCurrencyAmount)(e.Amount)&&e.Holder)throw new r.ValidationError("Clawback: cannot have Holder for currency");if((0,i.isMPTAmount)(e.Amount)&&!e.Holder)throw new r.ValidationError("Clawback: missing Holder")}},5907:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.walletFromSecretNumbers=void 0;const i=n(3767),o=r(n(5970)),s=n(5274);t.walletFromSecretNumbers=function(e,t){var n;const r=new i.Account(e).getFamilySeed(),a={masterAddress:void 0,algorithm:void 0};return void 0===t?a.algorithm=o.default.secp256k1:(a.masterAddress=t.masterAddress,a.algorithm=null!==(n=t.algorithm)&&void 0!==n?n:o.default.secp256k1),s.Wallet.fromSecret(r,a)}},5943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_256=t.SHA512_256=t.sha512_224=t.SHA512_224=t.sha384=t.SHA384=t.sha512=t.SHA512=void 0;const r=n(4233);t.SHA512=r.SHA512,t.sha512=r.sha512,t.SHA384=r.SHA384,t.sha384=r.sha384,t.SHA512_224=r.SHA512_224,t.sha512_224=r.sha512_224,t.SHA512_256=r.SHA512_256,t.sha512_256=r.sha512_256},5967:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Currency=void 0;const r=n(7284),i=n(619),o=/^0{40}$/,s=/^[A-Z0-9a-z?!@#$%^&*(){}[\]|]{3}$/,a=/^[A-F0-9]{40}$/,c=/^0{24}[\x00-\x7F]{6}0{10}$/;function l(e){if(!function(e){return e instanceof Uint8Array?20===e.byteLength:function(e){return 3===e.length||(t=e,a.test(t));var t}(e)}(e))throw new Error(`Unsupported Currency representation: ${e}`);return 3===e.length?function(e){const t=new Uint8Array(20);if("XRP"!==e){const n=e.split("").map((e=>e.charCodeAt(0)));t.set(n,12)}return t}(e):(0,i.hexToBytes)(e)}class u extends r.Hash160{constructor(e){super(null!=e?e:u.XRP.bytes);const t=(0,i.bytesToHex)(this.bytes);o.test(t)?this._iso="XRP":c.test(t)?this._iso=function(e){const t=(0,i.hexToString)((0,i.bytesToHex)(e));return"XRP"===t?null:function(e){return s.test(e)}(t)?t:null}(this.bytes.slice(12,15)):this._iso=null}iso(){return this._iso}static from(e){if(e instanceof u)return e;if("string"==typeof e)return new u(l(e));throw new Error("Cannot construct Currency from value given")}toJSON(){const e=this.iso();return null!==e?e:(0,i.bytesToHex)(this.bytes)}}t.Currency=u,u.XRP=new u(new Uint8Array(20))},5970:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ed25519="ed25519",e.secp256k1="ecdsa-secp256k1"}(n||(n={})),t.default=n},5998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNFTokenAcceptOffer=void 0;const r=n(255),i=n(2794);t.validateNFTokenAcceptOffer=function(e){if((0,i.validateBaseTransaction)(e),null!=e.NFTokenBrokerFee&&function(e){const t=(0,i.parseAmountValue)(e.NFTokenBrokerFee);if(Number.isNaN(t))throw new r.ValidationError("NFTokenAcceptOffer: invalid NFTokenBrokerFee");if(t<=0)throw new r.ValidationError("NFTokenAcceptOffer: NFTokenBrokerFee must be greater than 0; omit if there is no fee");if(null==e.NFTokenSellOffer||null==e.NFTokenBuyOffer)throw new r.ValidationError("NFTokenAcceptOffer: both NFTokenSellOffer and NFTokenBuyOffer must be set if using brokered mode")}(e),null==e.NFTokenSellOffer&&null==e.NFTokenBuyOffer)throw new r.ValidationError("NFTokenAcceptOffer: must set either NFTokenSellOffer or NFTokenBuyOffer")}},6181:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTrustSet=t.TrustSetFlags=void 0;const r=n(255),i=n(2794);var o;!function(e){e[e.tfSetfAuth=65536]="tfSetfAuth",e[e.tfSetNoRipple=131072]="tfSetNoRipple",e[e.tfClearNoRipple=262144]="tfClearNoRipple",e[e.tfSetFreeze=1048576]="tfSetFreeze",e[e.tfClearFreeze=2097152]="tfClearFreeze",e[e.tfSetDeepFreeze=4194304]="tfSetDeepFreeze",e[e.tfClearDeepFreeze=8388608]="tfClearDeepFreeze"}(o||(t.TrustSetFlags=o={})),t.validateTrustSet=function(e){(0,i.validateBaseTransaction)(e);const{LimitAmount:t,QualityIn:n,QualityOut:o}=e;if(void 0===t)throw new r.ValidationError("TrustSet: missing field LimitAmount");if(!(0,i.isAmount)(t))throw new r.ValidationError("TrustSet: invalid LimitAmount");if(void 0!==n&&"number"!=typeof n)throw new r.ValidationError("TrustSet: QualityIn must be a number");if(void 0!==o&&"number"!=typeof o)throw new r.ValidationError("TrustSet: QualityOut must be a number")}},6202:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const r=n(5492);class i extends r.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.ahash)(e);const n=(0,r.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(n.length>i?e.create().update(n).digest():n);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),(0,r.clean)(o)}update(e){return(0,r.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,r.aexists)(this),(0,r.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:s}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=i,t.hmac=(e,t,n)=>new i(e,t).update(n).digest(),t.hmac.create=(e,t)=>new i(e,t)},6214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMDeposit=t.AMMDepositFlags=void 0;const r=n(255),i=n(2794);var o;!function(e){e[e.tfLPToken=65536]="tfLPToken",e[e.tfSingleAsset=524288]="tfSingleAsset",e[e.tfTwoAsset=1048576]="tfTwoAsset",e[e.tfOneAssetLPToken=2097152]="tfOneAssetLPToken",e[e.tfLimitLPToken=4194304]="tfLimitLPToken",e[e.tfTwoAssetIfEmpty=8388608]="tfTwoAssetIfEmpty"}(o||(t.AMMDepositFlags=o={})),t.validateAMMDeposit=function(e){if((0,i.validateBaseTransaction)(e),null==e.Asset)throw new r.ValidationError("AMMDeposit: missing field Asset");if(!(0,i.isIssuedCurrency)(e.Asset))throw new r.ValidationError("AMMDeposit: Asset must be a Currency");if(null==e.Asset2)throw new r.ValidationError("AMMDeposit: missing field Asset2");if(!(0,i.isIssuedCurrency)(e.Asset2))throw new r.ValidationError("AMMDeposit: Asset2 must be a Currency");if(null!=e.Amount2&&null==e.Amount)throw new r.ValidationError("AMMDeposit: must set Amount with Amount2");if(null!=e.EPrice&&null==e.Amount)throw new r.ValidationError("AMMDeposit: must set Amount with EPrice");if(null==e.LPTokenOut&&null==e.Amount)throw new r.ValidationError("AMMDeposit: must set at least LPTokenOut or Amount");if(null!=e.LPTokenOut&&!(0,i.isIssuedCurrencyAmount)(e.LPTokenOut))throw new r.ValidationError("AMMDeposit: LPTokenOut must be an IssuedCurrencyAmount");if(null!=e.Amount&&!(0,i.isAmount)(e.Amount))throw new r.ValidationError("AMMDeposit: Amount must be an Amount");if(null!=e.Amount2&&!(0,i.isAmount)(e.Amount2))throw new r.ValidationError("AMMDeposit: Amount2 must be an Amount");if(null!=e.EPrice&&!(0,i.isAmount)(e.EPrice))throw new r.ValidationError("AMMDeposit: EPrice must be an Amount")}},6228:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hashStateTree=t.hashTxTree=t.hashLedgerHeader=t.hashSignedTx=void 0;const a=n(619),c=s(n(735)),l=n(5620),u=n(255),d=n(2794),f=n(99),h=s(n(9373)),g=s(n(2530)),p=o(n(3122));function y(e,t){return Number(e).toString(16).padStart(2*t,"0")}function m(e){const t=e.length/2;if(t<=192)return(0,a.bytesToHex)([t])+e;if(t<=12480){const n=t-193;return(0,a.bytesToHex)([193+(n>>>8),255&n])+e}if(t<=918744){const n=t-12481;return(0,a.bytesToHex)([241+(n>>>16),n>>>8&255,255&n])+e}throw new u.XrplError("Variable integer overflow.")}function A(e){let t,n;if("string"==typeof e?(t=e,n=(0,l.decode)(e)):(t=(0,l.encode)(e),n=e),void 0===n.TxnSignature&&void 0===n.Signers&&void 0===n.SigningPubKey&&!(0,f.hasFlag)(n,d.GlobalFlags.tfInnerBatchTxn,"tfInnerBatchTxn"))throw new u.ValidationError("The transaction must be signed to hash it.");const r=h.default.TRANSACTION_ID.toString(16).toUpperCase();return(0,g.default)(r.concat(t))}function E(e){const t=h.default.LEDGER.toString(16).toUpperCase()+y(Number(e.ledger_index),4)+(n=e.total_coins,new c.default(n).toString(16).padStart(16,"0"))+e.parent_hash+e.transaction_hash+e.account_hash+y(e.parent_close_time,4)+y(e.close_time,4)+y(e.close_time_resolution,1)+y(e.close_flags,1);var n;return(0,g.default)(t)}function b(e){var t;const n=new p.default;for(const r of e){const e=(0,l.encode)(r),i=(0,l.encode)(null!==(t=r.metaData)&&void 0!==t?t:{}),o=A(e),s=m(e)+m(i);n.addItem(o,s,p.NodeType.TRANSACTION_METADATA)}return n.hash}function w(e){const t=new p.default;return e.forEach((e=>{const n=(0,l.encode)(e);t.addItem(e.index,n,p.NodeType.ACCOUNT_STATE)})),t.hash}function S(e,t){const{transaction_hash:n}=e;if(!t.computeTreeHashes)return n;if(null==e.transactions)throw new u.ValidationError("transactions is missing from the ledger");const r=b(e.transactions);if(n!==r)throw new u.ValidationError("transactionHash in header does not match computed hash of transactions",{transactionHashInHeader:n,computedHashOfTransactions:r});return r}function v(e,t){const{account_hash:n}=e;if(!t.computeTreeHashes)return n;if(null==e.accountState)throw new u.ValidationError("accountState is missing from the ledger");const r=w(e.accountState);if(n!==r)throw new u.ValidationError("stateHash in header does not match computed hash of state");return r}t.hashSignedTx=A,t.hashLedgerHeader=E,t.hashTxTree=b,t.hashStateTree=w,t.default=function(e,t={}){const n={transaction_hash:S(e,t),account_hash:v(e,t)};return E(Object.assign(Object.assign({},e),n))}},6237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateCheckCancel=void 0;const r=n(255),i=n(2794);t.validateCheckCancel=function(e){if((0,i.validateBaseTransaction)(e),void 0!==e.CheckID&&"string"!=typeof e.CheckID)throw new r.ValidationError("CheckCancel: invalid CheckID")}},6333:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidXAddress=t.decodeXAddress=t.xAddressToClassicAddress=t.encodeXAddress=t.classicAddressToXAddress=t.isValidClassicAddress=t.decodeAccountPublic=t.encodeAccountPublic=t.decodeNodePublic=t.encodeNodePublic=t.decodeAccountID=t.encodeAccountID=t.decodeSeed=t.encodeSeed=t.codec=void 0;const r=n(619),i=n(5516);Object.defineProperty(t,"codec",{enumerable:!0,get:function(){return i.codec}}),Object.defineProperty(t,"encodeSeed",{enumerable:!0,get:function(){return i.encodeSeed}}),Object.defineProperty(t,"decodeSeed",{enumerable:!0,get:function(){return i.decodeSeed}}),Object.defineProperty(t,"encodeAccountID",{enumerable:!0,get:function(){return i.encodeAccountID}}),Object.defineProperty(t,"decodeAccountID",{enumerable:!0,get:function(){return i.decodeAccountID}}),Object.defineProperty(t,"encodeNodePublic",{enumerable:!0,get:function(){return i.encodeNodePublic}}),Object.defineProperty(t,"decodeNodePublic",{enumerable:!0,get:function(){return i.decodeNodePublic}}),Object.defineProperty(t,"encodeAccountPublic",{enumerable:!0,get:function(){return i.encodeAccountPublic}}),Object.defineProperty(t,"decodeAccountPublic",{enumerable:!0,get:function(){return i.decodeAccountPublic}}),Object.defineProperty(t,"isValidClassicAddress",{enumerable:!0,get:function(){return i.isValidClassicAddress}});const o={main:Uint8Array.from([5,68]),test:Uint8Array.from([4,147])};function s(e,t,n){if(20!==e.length)throw new Error("Account ID must be 20 bytes");if(!1!==t&&t>4294967295)throw new Error("Invalid tag");const s=t||0,a=!1===t||null==t?0:1,c=(0,r.concat)([n?o.test:o.main,e,Uint8Array.from([a,255&s,s>>8&255,s>>16&255,s>>24&255,0,0,0,0])]);return i.codec.encodeChecked(c)}function a(e){const t=i.codec.decodeChecked(e),n=function(e){const t=e.slice(0,2);if((0,r.equal)(o.main,t))return!1;if((0,r.equal)(o.test,t))return!0;throw new Error("Invalid X-address: bad prefix")}(t);return{accountId:t.slice(2,22),tag:function(e){const t=e[22];if(t>=2)throw new Error("Unsupported X-address");if(1===t)return e[23]+256*e[24]+65536*e[25]+16777216*e[26];if(0!==t)throw new Error("flag must be zero to indicate no tag");if(!(0,r.equal)((0,r.hexToBytes)("0000000000000000"),e.slice(23,31)))throw new Error("remaining bytes must be zero");return!1}(t),test:n}}t.classicAddressToXAddress=function(e,t,n){return s((0,i.decodeAccountID)(e),t,n)},t.encodeXAddress=s,t.xAddressToClassicAddress=function(e){const{accountId:t,tag:n,test:r}=a(e);return{classicAddress:(0,i.encodeAccountID)(t),tag:n,test:r}},t.decodeXAddress=a,t.isValidXAddress=function(e){try{a(e)}catch(e){return!1}return!0}},6339:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertStringToHex=t.convertHexToString=void 0;const r=n(619);t.convertStringToHex=function(e){return(0,r.stringToHex)(e)},t.convertHexToString=function(e,t="utf8"){return(0,r.hexToString)(e,t)}},6362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBalances=void 0,t.formatBalances=function(e){return e.map((e=>({value:e.balance,currency:e.currency,issuer:e.account})))}},6509:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=i(n(735)),s=n(255);t.default=function(e,t){var n;return r(this,void 0,void 0,(function*(){const r=null!=t?t:e.feeCushion,i=(yield e.request({command:"server_info"})).result.info,a=null===(n=i.validated_ledger)||void 0===n?void 0:n.base_fee_xrp;if(null==a)throw new s.XrplError("getFeeXrp: Could not get base_fee_xrp from server_info");const c=new o.default(a);null==i.load_factor&&(i.load_factor=1);let l=c.times(i.load_factor).times(r);return l=o.default.min(l,e.maxFeeXRP),new o.default(l.toFixed(6)).toString(10)}))}},6522:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA384=t.SHA512_256=t.SHA512_224=t.SHA512=void 0;const r=n(1726),i=n(9850),o=n(4211),[s,a]=(()=>i.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))))(),c=new Uint32Array(80),l=new Uint32Array(80);class u extends r.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:o,Dh:s,Dl:a,Eh:c,El:l,Fh:u,Fl:d,Gh:f,Gl:h,Hh:g,Hl:p}=this;return[e,t,n,r,i,o,s,a,c,l,u,d,f,h,g,p]}set(e,t,n,r,i,o,s,a,c,l,u,d,f,h,g,p){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|f,this.Gl=0|h,this.Hh=0|g,this.Hl=0|p}process(e,t){for(let n=0;n<16;n++,t+=4)c[n]=e.getUint32(t),l[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|c[e-15],n=0|l[e-15],r=i.default.rotrSH(t,n,1)^i.default.rotrSH(t,n,8)^i.default.shrSH(t,n,7),o=i.default.rotrSL(t,n,1)^i.default.rotrSL(t,n,8)^i.default.shrSL(t,n,7),s=0|c[e-2],a=0|l[e-2],u=i.default.rotrSH(s,a,19)^i.default.rotrBH(s,a,61)^i.default.shrSH(s,a,6),d=i.default.rotrSL(s,a,19)^i.default.rotrBL(s,a,61)^i.default.shrSL(s,a,6),f=i.default.add4L(o,d,l[e-7],l[e-16]),h=i.default.add4H(f,r,u,c[e-7],c[e-16]);c[e]=0|h,l[e]=0|f}let{Ah:n,Al:r,Bh:o,Bl:u,Ch:d,Cl:f,Dh:h,Dl:g,Eh:p,El:y,Fh:m,Fl:A,Gh:E,Gl:b,Hh:w,Hl:S}=this;for(let e=0;e<80;e++){const t=i.default.rotrSH(p,y,14)^i.default.rotrSH(p,y,18)^i.default.rotrBH(p,y,41),v=i.default.rotrSL(p,y,14)^i.default.rotrSL(p,y,18)^i.default.rotrBL(p,y,41),T=p&m^~p&E,O=y&A^~y&b,I=i.default.add5L(S,v,O,a[e],l[e]),_=i.default.add5H(I,w,t,T,s[e],c[e]),L=0|I,C=i.default.rotrSH(n,r,28)^i.default.rotrBH(n,r,34)^i.default.rotrBH(n,r,39),N=i.default.rotrSL(n,r,28)^i.default.rotrBL(n,r,34)^i.default.rotrBL(n,r,39),B=n&o^n&d^o&d,F=r&u^r&f^u&f;w=0|E,S=0|b,E=0|m,b=0|A,m=0|p,A=0|y,({h:p,l:y}=i.default.add(0|h,0|g,0|_,0|L)),h=0|d,g=0|f,d=0|o,f=0|u,o=0|n,u=0|r;const D=i.default.add3L(L,N,F);n=i.default.add3H(D,_,C,B),r=0|D}({h:n,l:r}=i.default.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:o,l:u}=i.default.add(0|this.Bh,0|this.Bl,0|o,0|u)),({h:d,l:f}=i.default.add(0|this.Ch,0|this.Cl,0|d,0|f)),({h,l:g}=i.default.add(0|this.Dh,0|this.Dl,0|h,0|g)),({h:p,l:y}=i.default.add(0|this.Eh,0|this.El,0|p,0|y)),({h:m,l:A}=i.default.add(0|this.Fh,0|this.Fl,0|m,0|A)),({h:E,l:b}=i.default.add(0|this.Gh,0|this.Gl,0|E,0|b)),({h:w,l:S}=i.default.add(0|this.Hh,0|this.Hl,0|w,0|S)),this.set(n,r,o,u,d,f,h,g,p,y,m,A,E,b,w,S)}roundClean(){c.fill(0),l.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=u;class d extends u{constructor(){super(28),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735}}t.SHA512_224=d;class f extends u{constructor(){super(32),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414}}t.SHA512_256=f;class h extends u{constructor(){super(48),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868}}t.SHA384=h,t.sha512=(0,o.wrapConstructor)((()=>new u)),t.sha512_224=(0,o.wrapConstructor)((()=>new d)),t.sha512_256=(0,o.wrapConstructor)((()=>new f)),t.sha384=(0,o.wrapConstructor)((()=>new h))},6557:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const r=n(1026);t.RIPEMD160=r.RIPEMD160,t.ripemd160=r.ripemd160},6657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=s,t.createCurve=function(e,t){const n=t=>(0,o.weierstrass)({...e,...s(t)});return{...n(t),create:n}};const r=n(3795),i=n(9987),o=n(4296);function s(e){return{hash:e,hmac:(t,...n)=>(0,r.hmac)(e,t,(0,i.concatBytes)(...n)),randomBytes:i.randomBytes}}},6667:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=E,t.fromBig=i,t.split=o;const n=BigInt(2**32-1),r=BigInt(32);function i(e,t=!1){return t?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function o(e,t=!1){const n=e.length;let r=new Uint32Array(n),o=new Uint32Array(n);for(let s=0;s<n;s++){const{h:n,l:a}=i(e[s],t);[r[s],o[s]]=[n,a]}return[r,o]}const s=(e,t)=>BigInt(e>>>0)<<r|BigInt(t>>>0);t.toBig=s;const a=(e,t,n)=>e>>>n;t.shrSH=a;const c=(e,t,n)=>e<<32-n|t>>>n;t.shrSL=c;const l=(e,t,n)=>e>>>n|t<<32-n;t.rotrSH=l;const u=(e,t,n)=>e<<32-n|t>>>n;t.rotrSL=u;const d=(e,t,n)=>e<<64-n|t>>>n-32;t.rotrBH=d;const f=(e,t,n)=>e>>>n-32|t<<64-n;t.rotrBL=f;const h=(e,t)=>t;t.rotr32H=h;const g=(e,t)=>e;t.rotr32L=g;const p=(e,t,n)=>e<<n|t>>>32-n;t.rotlSH=p;const y=(e,t,n)=>t<<n|e>>>32-n;t.rotlSL=y;const m=(e,t,n)=>t<<n-32|e>>>64-n;t.rotlBH=m;const A=(e,t,n)=>e<<n-32|t>>>64-n;function E(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}t.rotlBL=A;const b=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);t.add3L=b;const w=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;t.add3H=w;const S=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);t.add4L=S;const v=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;t.add4H=v;const T=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);t.add5L=T;const O=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0;t.add5H=O;const I={fromBig:i,split:o,toBig:s,shrSH:a,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:d,rotrBL:f,rotr32H:h,rotr32L:g,rotlSH:p,rotlSL:y,rotlBH:m,rotlBL:A,add:E,add3L:b,add3H:w,add4L:S,add4H:v,add5H:O,add5L:T};t.default=I},6670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5620),i=n(3342);t.default=function(e){if("string"!=typeof e&&void 0===(null==e?void 0:e.AffectedNodes))throw new TypeError(`Unable to parse the parameter given to getNFTokenID.\n 'meta' must be the metadata from an NFTokenMint transaction. Received ${JSON.stringify(e)} instead.`);const t=function(e){return"string"==typeof e?(0,r.decode)(e):e}(e).AffectedNodes.filter((e=>{var t;return(0,i.isCreatedNode)(e)?"NFTokenPage"===e.CreatedNode.LedgerEntryType:!!(0,i.isModifiedNode)(e)&&"NFTokenPage"===e.ModifiedNode.LedgerEntryType&&Boolean(null===(t=e.ModifiedNode.PreviousFields)||void 0===t?void 0:t.NFTokens)})),n=new Set(t.flatMap((e=>{var t;return((0,i.isModifiedNode)(e)?null===(t=e.ModifiedNode.PreviousFields)||void 0===t?void 0:t.NFTokens:[]).map((e=>e.NFToken.NFTokenID))})).filter((e=>Boolean(e))));return t.flatMap((e=>{var t,n,r,i,o,s;return(null!==(s=null!==(r=null===(n=null===(t=e.ModifiedNode)||void 0===t?void 0:t.FinalFields)||void 0===n?void 0:n.NFTokens)&&void 0!==r?r:null===(o=null===(i=e.CreatedNode)||void 0===i?void 0:i.NewFields)||void 0===o?void 0:o.NFTokens)&&void 0!==s?s:[]).map((e=>e.NFToken.NFTokenID))})).filter((e=>Boolean(e))).find((e=>!n.has(e)))}},6695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBatch=t.BatchFlags=void 0;const r=n(255),i=n(99),o=n(2794);var s;!function(e){e[e.tfAllOrNothing=65536]="tfAllOrNothing",e[e.tfOnlyOne=131072]="tfOnlyOne",e[e.tfUntilFailure=262144]="tfUntilFailure",e[e.tfIndependent=524288]="tfIndependent"}(s||(t.BatchFlags=s={})),t.validateBatch=function(e){var t;(0,o.validateBaseTransaction)(e),(0,o.validateRequiredField)(e,"RawTransactions",o.isArray),e.RawTransactions.forEach(((e,t)=>{if(!(0,o.isRecord)(e))throw new r.ValidationError(`Batch: RawTransactions[${t}] is not object.`);(0,o.validateRequiredField)(e,"RawTransaction",o.isRecord,{paramName:`RawTransactions[${t}].RawTransaction`,txType:"Batch"});const n=e.RawTransaction;if("Batch"===n.TransactionType)throw new r.ValidationError(`Batch: RawTransactions[${t}] is a Batch transaction. Cannot nest Batch transactions.`);if(!(0,i.hasFlag)(n,o.GlobalFlags.tfInnerBatchTxn,"tfInnerBatchTxn"))throw new r.ValidationError(`Batch: RawTransactions[${t}] must contain the \`tfInnerBatchTxn\` flag.`)})),(0,o.validateOptionalField)(e,"BatchSigners",o.isArray),null===(t=e.BatchSigners)||void 0===t||t.forEach(((e,t)=>{if(!(0,o.isRecord)(e))throw new r.ValidationError(`Batch: BatchSigners[${t}] is not object.`);const n=e;(0,o.validateRequiredField)(n,"BatchSigner",o.isRecord,{paramName:`BatchSigners[${t}].BatchSigner`,txType:"Batch"});const i=n.BatchSigner;(0,o.validateRequiredField)(i,"Account",o.isString,{paramName:`BatchSigners[${t}].Account`,txType:"Batch"}),(0,o.validateOptionalField)(i,"SigningPubKey",o.isString,{paramName:`BatchSigners[${t}].SigningPubKey`,txType:"Batch"}),(0,o.validateOptionalField)(i,"TxnSignature",o.isString,{paramName:`BatchSigners[${t}].TxnSignature`,txType:"Batch"}),(0,o.validateOptionalField)(i,"Signers",o.isArray,{paramName:`BatchSigners[${t}].Signers`,txType:"Batch"})}))}},6769:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateCredentialDelete=void 0;const r=n(255),i=n(2794);t.validateCredentialDelete=function(e){if((0,i.validateBaseTransaction)(e),!e.Subject&&!e.Issuer)throw new r.ValidationError("CredentialDelete: either `Issuer` or `Subject` must be provided");(0,i.validateRequiredField)(e,"Account",i.isString),(0,i.validateCredentialType)(e),(0,i.validateOptionalField)(e,"Subject",i.isString),(0,i.validateOptionalField)(e,"Issuer",i.isString)}},6897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA512_IV=t.SHA384_IV=t.SHA224_IV=t.SHA256_IV=t.HashMD=void 0,t.setBigUint64=i,t.Chi=function(e,t,n){return e&t^~e&n},t.Maj=function(e,t,n){return e&t^e&n^t&n};const r=n(5492);function i(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,l=r?0:4;e.setUint32(t+c,s,r),e.setUint32(t+l,a,r)}class o extends r.Hash{constructor(e,t,n,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,r.createView)(this.buffer)}update(e){(0,r.aexists)(this),e=(0,r.toBytes)(e),(0,r.abytes)(e);const{view:t,buffer:n,blockLen:i}=this,o=e.length;for(let s=0;s<o;){const a=Math.min(i-this.pos,o-s);if(a!==i)n.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(t,0),this.pos=0);else{const t=(0,r.createView)(e);for(;i<=o-s;s+=i)this.process(t,s)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.aexists)(this),(0,r.aoutput)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:o,isLE:s}=this;let{pos:a}=this;t[a++]=128,(0,r.clean)(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let e=a;e<o;e++)t[e]=0;i(n,o-8,BigInt(8*this.length),s),this.process(n,0);const c=(0,r.createView)(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)c.setUint32(4*e,d[e],s)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return e.destroyed=o,e.finished=i,e.length=r,e.pos=s,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}t.HashMD=o,t.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),t.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),t.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),t.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},6905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash192=void 0;const r=n(3776);class i extends r.Hash{constructor(e){e&&0===e.byteLength&&(e=i.ZERO_192.bytes),super(null!=e?e:i.ZERO_192.bytes)}}t.Hash192=i,i.width=24,i.ZERO_192=new i(new Uint8Array(i.width))},6986:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Vector256=t.UInt64=t.UInt32=t.UInt16=t.UInt8=t.STObject=t.STArray=t.PathSet=t.Hash256=t.Hash192=t.Hash160=t.Hash128=t.Currency=t.Blob=t.Amount=t.AccountID=t.coreTypes=void 0;const r=n(5763);Object.defineProperty(t,"AccountID",{enumerable:!0,get:function(){return r.AccountID}});const i=n(9492);Object.defineProperty(t,"Amount",{enumerable:!0,get:function(){return i.Amount}});const o=n(5755);Object.defineProperty(t,"Blob",{enumerable:!0,get:function(){return o.Blob}});const s=n(5967);Object.defineProperty(t,"Currency",{enumerable:!0,get:function(){return s.Currency}});const a=n(24);Object.defineProperty(t,"Hash128",{enumerable:!0,get:function(){return a.Hash128}});const c=n(7284);Object.defineProperty(t,"Hash160",{enumerable:!0,get:function(){return c.Hash160}});const l=n(6905);Object.defineProperty(t,"Hash192",{enumerable:!0,get:function(){return l.Hash192}});const u=n(8264);Object.defineProperty(t,"Hash256",{enumerable:!0,get:function(){return u.Hash256}});const d=n(1837),f=n(8741),h=n(3914);Object.defineProperty(t,"PathSet",{enumerable:!0,get:function(){return h.PathSet}});const g=n(8239);Object.defineProperty(t,"STArray",{enumerable:!0,get:function(){return g.STArray}});const p=n(8847);Object.defineProperty(t,"STObject",{enumerable:!0,get:function(){return p.STObject}});const y=n(1366);Object.defineProperty(t,"UInt16",{enumerable:!0,get:function(){return y.UInt16}});const m=n(4200);Object.defineProperty(t,"UInt32",{enumerable:!0,get:function(){return m.UInt32}});const A=n(5463);Object.defineProperty(t,"UInt64",{enumerable:!0,get:function(){return A.UInt64}});const E=n(401);Object.defineProperty(t,"UInt8",{enumerable:!0,get:function(){return E.UInt8}});const b=n(3719);Object.defineProperty(t,"Vector256",{enumerable:!0,get:function(){return b.Vector256}});const w=n(2911),S=n(1141),v={AccountID:r.AccountID,Amount:i.Amount,Blob:o.Blob,Currency:s.Currency,Hash128:a.Hash128,Hash160:c.Hash160,Hash192:l.Hash192,Hash256:u.Hash256,Issue:d.Issue,Number:f.STNumber,PathSet:h.PathSet,STArray:g.STArray,STObject:p.STObject,UInt8:E.UInt8,UInt16:y.UInt16,UInt32:m.UInt32,UInt64:A.UInt64,Vector256:b.Vector256,XChainBridge:w.XChainBridge};t.coreTypes=v,S.DEFAULT_DEFINITIONS.associateTypes(v)},6998:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.SHA224=t.sha256=t.SHA256=void 0;const r=n(4233);t.SHA256=r.SHA256,t.sha256=r.sha256,t.SHA224=r.SHA224,t.sha224=r.sha224},7074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FEE_SETTINGS_ID=void 0,t.FEE_SETTINGS_ID="4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A651"},7118:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateEscrowCancel=void 0;const r=n(255),i=n(2794);t.validateEscrowCancel=function(e){if((0,i.validateBaseTransaction)(e),(0,i.validateRequiredField)(e,"Owner",i.isAccount),null==e.OfferSequence)throw new r.ValidationError("EscrowCancel: missing OfferSequence");if("number"!=typeof e.OfferSequence&&"string"!=typeof e.OfferSequence||Number.isNaN(Number(e.OfferSequence)))throw new r.ValidationError("EscrowCancel: OfferSequence must be a number")}},7203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const r=n(5697),i=n(4211);class o extends i.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.ahash)(e);const n=(0,i.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,s=new Uint8Array(o);s.set(n.length>o?e.create().update(n).digest():n);for(let e=0;e<s.length;e++)s[e]^=54;this.iHash.update(s),this.oHash=e.create();for(let e=0;e<s.length;e++)s[e]^=106;this.oHash.update(s),s.fill(0)}update(e){return(0,r.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,r.aexists)(this),(0,r.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:s}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=o,t.hmac=(e,t,n)=>new o(e,t).update(n).digest(),t.hmac.create=(e,t)=>new o(e,t)},7234:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.requestFunding=t.getStartingBalance=t.generateWalletToFund=void 0;const i=n(6333),o=n(255),s=n(4202),a=n(5274);t.generateWalletToFund=function(e){return e&&(0,i.isValidClassicAddress)(e.classicAddress)?e:a.Wallet.generate()},t.getStartingBalance=function(e,t){return r(this,void 0,void 0,(function*(){let n=0;try{n=Number(yield e.getXrpBalance(t))}catch(e){}return n}))},t.requestFunding=function(e,t,n,i,a){var c,l,u;return r(this,void 0,void 0,(function*(){const d=null!==(c=e.faucetHost)&&void 0!==c?c:(0,s.getFaucetHost)(t);if(!d)throw new o.XRPLFaucetError("No faucet hostname could be derived");const f=null!==(l=e.faucetPath)&&void 0!==l?l:(0,s.getFaucetPath)(d),h=yield fetch(`https://${d}${f}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),g=yield h.json();if(h.ok&&(null===(u=h.headers.get("Content-Type"))||void 0===u?void 0:u.startsWith("application/json"))){const e=g.account.classicAddress;return function(e,t,n,i){return r(this,void 0,void 0,(function*(){if(!t)return Promise.reject(new o.XRPLFaucetError("The faucet account is undefined"));const s=yield function(e,t,n){return r(this,void 0,void 0,(function*(){return new Promise(((i,s)=>{let a=20;const c=setInterval((()=>r(this,void 0,void 0,(function*(){a<0?(clearInterval(c),i(n)):a-=1;try{let r;try{r=Number(yield e.getXrpBalance(t))}catch(e){}r>n&&(clearInterval(c),i(r))}catch(e){clearInterval(c),e instanceof Error&&s(new o.XRPLFaucetError(`Unable to check if the address ${t} balance has increased. Error: ${e.message}`)),s(e)}}))),1e3)}))}))}(e,t,i);if(s>i)return{wallet:n,balance:s};throw new o.XRPLFaucetError("Unable to fund address with faucet after waiting 20 seconds")}))}(t,e,i,n)}return function(e,t){return r(this,void 0,void 0,(function*(){return Promise.reject(new o.XRPLFaucetError(`Request failed: ${JSON.stringify({body:t||{},contentType:e.headers.get("Content-Type"),statusCode:e.status})}`))}))}(h,g)}))}},7284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash160=void 0;const r=n(3776);class i extends r.Hash{constructor(e){e&&0===e.byteLength&&(e=i.ZERO_160.bytes),super(null!=e?e:i.ZERO_160.bytes)}}t.Hash160=i,i.width=20,i.ZERO_160=new i(new Uint8Array(i.width))},7315:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateEscrowFinish=void 0;const r=n(255),i=n(2794);t.validateEscrowFinish=function(e){if((0,i.validateBaseTransaction)(e),(0,i.validateRequiredField)(e,"Owner",i.isAccount),(0,i.validateCredentialsList)(e.CredentialIDs,e.TransactionType,!0,i.MAX_AUTHORIZED_CREDENTIALS),null==e.OfferSequence)throw new r.ValidationError("EscrowFinish: missing field OfferSequence");if("number"!=typeof e.OfferSequence&&"string"!=typeof e.OfferSequence||Number.isNaN(Number(e.OfferSequence)))throw new r.ValidationError("EscrowFinish: OfferSequence must be a number");if(void 0!==e.Condition&&"string"!=typeof e.Condition)throw new r.ValidationError("EscrowFinish: Condition must be a string");if(void 0!==e.Fulfillment&&"string"!=typeof e.Fulfillment)throw new r.ValidationError("EscrowFinish: Fulfillment must be a string")}},7375:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HashPrefix=void 0;const r=n(5517);function i(e){const t=new Uint8Array(4);return(0,r.writeUInt32BE)(t,e,0),t}const o={transactionID:i(1415073280),transaction:i(1397638144),accountStateEntry:i(1296846336),innerNode:i(1296649728),ledgerHeader:i(1280791040),transactionSig:i(1398036480),transactionMultiSig:i(1397576704),validation:i(1447119872),proposal:i(1347571712),paymentChannelClaim:i(1129073920),batch:i(1111705600)};t.HashPrefix=o},7377:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=void 0;const i=n(6998),o=r(n(2635));t.sha256=(0,o.default)(i.sha256)},7410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transactionID=t.sha512Half=t.Sha512Half=void 0;const r=n(7375),i=n(6986),o=n(7995),s=n(2896);class a extends o.BytesList{constructor(){super(...arguments),this.hash=s.sha512.create()}static put(e){return(new a).put(e)}put(e){return this.hash.update(e),this}finish256(){return Uint8Array.from(this.hash.digest().slice(0,32))}finish(){return new i.Hash256(this.finish256())}}function c(...e){const t=new a;return e.forEach((e=>t.put(e))),t.finish256()}t.Sha512Half=a,t.sha512Half=c,t.transactionID=function(e){return new i.Hash256(c(r.HashPrefix.transactionID,e))}},7493:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EnableAmendmentFlags=void 0,function(e){e[e.tfGotMajority=65536]="tfGotMajority",e[e.tfLostMajority=131072]="tfLostMajority"}(n||(t.EnableAmendmentFlags=n={}))},7636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNFTokenModify=void 0;const r=n(255),i=n(99),o=n(2794);t.validateNFTokenModify=function(e){if((0,o.validateBaseTransaction)(e),(0,o.validateRequiredField)(e,"NFTokenID",o.isString),(0,o.validateOptionalField)(e,"Owner",o.isAccount),(0,o.validateOptionalField)(e,"URI",o.isString),void 0!==e.URI&&"string"==typeof e.URI){if(""===e.URI)throw new r.ValidationError("NFTokenModify: URI must not be empty string");if(!(0,i.isHex)(e.URI))throw new r.ValidationError("NFTokenModify: URI must be in hex format")}}},7688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNFTokenCancelOffer=void 0;const r=n(255),i=n(2794);t.validateNFTokenCancelOffer=function(e){if((0,i.validateBaseTransaction)(e),!(0,i.isArray)(e.NFTokenOffers))throw new r.ValidationError("NFTokenCancelOffer: missing field NFTokenOffers");if(e.NFTokenOffers.length<1)throw new r.ValidationError("NFTokenCancelOffer: empty field NFTokenOffers")}},7698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateCredentialCreate=void 0;const r=n(619),i=n(255),o=n(2794);t.validateCredentialCreate=function(e){(0,o.validateBaseTransaction)(e),(0,o.validateRequiredField)(e,"Account",o.isString),(0,o.validateRequiredField)(e,"Subject",o.isString),(0,o.validateCredentialType)(e),(0,o.validateOptionalField)(e,"Expiration",o.isNumber),function(e){if(void 0!==e){if("string"!=typeof e)throw new i.ValidationError("CredentialCreate: invalid field URI");if(0===e.length)throw new i.ValidationError("CredentialCreate: URI cannot be an empty string");if(e.length>256)throw new i.ValidationError("CredentialCreate: URI length must be <= 256");if(!r.HEX_REGEX.test(e))throw new i.ValidationError("CredentialCreate: URI must be encoded in hex")}}(e.URI)}},7765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.montgomery=function(e){const t=(h=e,(0,i.validateObject)(h,{a:"bigint"},{montgomeryBits:"isSafeInteger",nByteLength:"isSafeInteger",adjustScalarBytes:"function",domain:"function",powPminus2:"function",Gu:"bigint"}),Object.freeze({...h})),{P:n}=t,a=e=>(0,r.mod)(e,n),c=t.montgomeryBits,l=Math.ceil(c/8),u=t.nByteLength,d=t.adjustScalarBytes||(e=>e),f=t.powPminus2||(e=>(0,r.pow)(e,n-BigInt(2),n));var h;function g(e,t,n){const r=a(e*(t-n));return[t=a(t-r),n=a(n+r)]}const p=(t.a-BigInt(2))/BigInt(4);function y(e){return(0,i.numberToBytesLE)(a(e),l)}function m(e,t){const r=function(e){const t=(0,i.ensureBytes)("u coordinate",e,l);return 32===u&&(t[31]&=127),(0,i.bytesToNumberLE)(t)}(t),h=function(e,t){(0,i.aInRange)("u",e,o,n),(0,i.aInRange)("scalar",t,o,n);const r=t,l=e;let u,d=s,h=o,y=e,m=s,A=o;for(let e=BigInt(c-1);e>=o;e--){const t=r>>e&s;A^=t,u=g(A,d,y),d=u[0],y=u[1],u=g(A,h,m),h=u[0],m=u[1],A=t;const n=d+h,i=a(n*n),o=d-h,c=a(o*o),f=i-c,E=y+m,b=a((y-m)*n),w=a(E*o),S=b+w,v=b-w;y=a(S*S),m=a(l*a(v*v)),d=a(i*c),h=a(f*(i+a(p*f)))}u=g(A,d,y),d=u[0],y=u[1],u=g(A,h,m),h=u[0],m=u[1];const E=f(h);return a(d*E)}(r,function(e){const t=(0,i.ensureBytes)("scalar",e),n=t.length;if(n!==l&&n!==u)throw new Error("invalid scalar, expected "+l+" or "+u+" bytes, got "+n);return(0,i.bytesToNumberLE)(d(t))}(e));if(h===o)throw new Error("invalid private or public key received");return y(h)}const A=y(t.Gu);function E(e){return m(e,A)}return{scalarMult:m,scalarMultBase:E,getSharedSecret:(e,t)=>m(e,t),getPublicKey:e=>E(e),utils:{randomPrivateKey:()=>t.randomBytes(t.nByteLength)},GuBytes:A}};const r=n(802),i=n(3449),o=BigInt(0),s=BigInt(1)},7831:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(4315),t),i(n(7954),t)},7872:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainAddAccountCreateAttestation=void 0;const r=n(2794);t.validateXChainAddAccountCreateAttestation=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"Amount",r.isAmount),(0,r.validateRequiredField)(e,"AttestationRewardAccount",r.isAccount),(0,r.validateRequiredField)(e,"AttestationSignerAccount",r.isAccount),(0,r.validateRequiredField)(e,"Destination",r.isAccount),(0,r.validateRequiredField)(e,"OtherChainSource",r.isAccount),(0,r.validateRequiredField)(e,"PublicKey",r.isString),(0,r.validateRequiredField)(e,"Signature",r.isString),(0,r.validateRequiredField)(e,"SignatureReward",r.isAmount),(0,r.validateRequiredField)(e,"WasLockingChainSend",(e=>0===e||1===e)),(0,r.validateRequiredField)(e,"XChainAccountCreateCount",(e=>(0,r.isNumber)(e)||(0,r.isString)(e))),(0,r.validateRequiredField)(e,"XChainBridge",r.isXChainBridge)}},7899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AMENDMENTS_ID=void 0,t.AMENDMENTS_ID="7DB0788C020F02780A673DC74757F23823FA3014C1866E72CC4CD8B226CD6EF4"},7954:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ensureClassicAddress=void 0;const r=n(6333);t.ensureClassicAddress=function(e){if((0,r.isValidXAddress)(e)){const{classicAddress:t,tag:n}=(0,r.xAddressToClassicAddress)(e);if(!1!==n)throw new Error("This command does not support the use of a tag. Use an address without a tag.");return t}return e}},7995:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BinarySerializer=t.BytesList=void 0;const r=n(619);class i{constructor(){this.bytesArray=[]}getLength(){return(0,r.concat)(this.bytesArray).byteLength}put(e){const t=Uint8Array.from(e);return this.bytesArray.push(t),this}toBytesSink(e){e.put(this.toBytes())}toBytes(){return(0,r.concat)(this.bytesArray)}toHex(){return(0,r.bytesToHex)(this.toBytes())}}t.BytesList=i,t.BinarySerializer=class{constructor(e){this.sink=new i,this.sink=e}write(e){e.toBytesSink(this.sink)}put(e){this.sink.put(e)}writeType(e,t){this.write(e.from(t))}writeBytesList(e){e.toBytesSink(this.sink)}encodeVariableLength(e){const t=new Uint8Array(3);if(e<=192)return t[0]=e,t.slice(0,1);if(e<=12480)return e-=193,t[0]=193+(e>>>8),t[1]=255&e,t.slice(0,2);if(e<=918744)return e-=12481,t[0]=241+(e>>>16),t[1]=e>>8&255,t[2]=255&e,t.slice(0,3);throw new Error("Overflow error")}writeFieldAndValue(e,t,n=!1){const r=e.associatedType.from(t);if(void 0===r.toBytesSink||void 0===e.name)throw new Error;this.sink.put(e.header),e.isVariableLengthEncoded?this.writeLengthEncoded(r,n):r.toBytesSink(this.sink)}writeLengthEncoded(e,t=!1){const n=new i;t||e.toBytesSink(n),this.put(this.encodeVariableLength(n.getLength())),this.writeBytesList(n)}}},8102:e=>{"use strict";e.exports=JSON.parse('{"FIELDS":[["Generic",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":0,"type":"Unknown"}],["Invalid",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":-1,"type":"Unknown"}],["ObjectEndMarker",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"STObject"}],["ArrayEndMarker",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"STArray"}],["taker_gets_funded",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":258,"type":"Amount"}],["taker_pays_funded",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":259,"type":"Amount"}],["LedgerEntryType",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"UInt16"}],["TransactionType",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"UInt16"}],["SignerWeight",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"UInt16"}],["TransferFee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"UInt16"}],["TradingFee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"UInt16"}],["DiscountedFee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"UInt16"}],["Version",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"UInt16"}],["HookStateChangeCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"UInt16"}],["HookEmitCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"UInt16"}],["HookExecutionIndex",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"UInt16"}],["HookApiVersion",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":20,"type":"UInt16"}],["LedgerFixType",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":21,"type":"UInt16"}],["NetworkID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"UInt32"}],["Flags",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"UInt32"}],["SourceTag",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"UInt32"}],["Sequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"UInt32"}],["PreviousTxnLgrSeq",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"UInt32"}],["LedgerSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"UInt32"}],["CloseTime",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":7,"type":"UInt32"}],["ParentCloseTime",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":8,"type":"UInt32"}],["SigningTime",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":9,"type":"UInt32"}],["Expiration",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":10,"type":"UInt32"}],["TransferRate",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":11,"type":"UInt32"}],["WalletSize",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":12,"type":"UInt32"}],["OwnerCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":13,"type":"UInt32"}],["DestinationTag",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":14,"type":"UInt32"}],["LastUpdateTime",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":15,"type":"UInt32"}],["HighQualityIn",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"UInt32"}],["HighQualityOut",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"UInt32"}],["LowQualityIn",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"UInt32"}],["LowQualityOut",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"UInt32"}],["QualityIn",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":20,"type":"UInt32"}],["QualityOut",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":21,"type":"UInt32"}],["StampEscrow",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":22,"type":"UInt32"}],["BondAmount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":23,"type":"UInt32"}],["LoadFee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":24,"type":"UInt32"}],["OfferSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":25,"type":"UInt32"}],["FirstLedgerSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":26,"type":"UInt32"}],["LastLedgerSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":27,"type":"UInt32"}],["TransactionIndex",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":28,"type":"UInt32"}],["OperationLimit",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":29,"type":"UInt32"}],["ReferenceFeeUnits",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":30,"type":"UInt32"}],["ReserveBase",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":31,"type":"UInt32"}],["ReserveIncrement",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":32,"type":"UInt32"}],["SetFlag",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":33,"type":"UInt32"}],["ClearFlag",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":34,"type":"UInt32"}],["SignerQuorum",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":35,"type":"UInt32"}],["CancelAfter",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":36,"type":"UInt32"}],["FinishAfter",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":37,"type":"UInt32"}],["SignerListID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":38,"type":"UInt32"}],["SettleDelay",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":39,"type":"UInt32"}],["TicketCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":40,"type":"UInt32"}],["TicketSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":41,"type":"UInt32"}],["NFTokenTaxon",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":42,"type":"UInt32"}],["MintedNFTokens",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":43,"type":"UInt32"}],["BurnedNFTokens",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":44,"type":"UInt32"}],["HookStateCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":45,"type":"UInt32"}],["EmitGeneration",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":46,"type":"UInt32"}],["VoteWeight",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":48,"type":"UInt32"}],["FirstNFTokenSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":50,"type":"UInt32"}],["OracleDocumentID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":51,"type":"UInt32"}],["PermissionValue",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":52,"type":"UInt32"}],["ExtensionComputeLimit",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":53,"type":"UInt32"}],["ExtensionSizeLimit",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":54,"type":"UInt32"}],["GasPrice",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":55,"type":"UInt32"}],["ComputationAllowance",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":56,"type":"UInt32"}],["GasUsed",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":57,"type":"UInt32"}],["IndexNext",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"UInt64"}],["IndexPrevious",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"UInt64"}],["BookNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"UInt64"}],["OwnerNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"UInt64"}],["BaseFee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"UInt64"}],["ExchangeRate",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"UInt64"}],["LowNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":7,"type":"UInt64"}],["HighNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":8,"type":"UInt64"}],["DestinationNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":9,"type":"UInt64"}],["Cookie",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":10,"type":"UInt64"}],["ServerVersion",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":11,"type":"UInt64"}],["NFTokenOfferNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":12,"type":"UInt64"}],["EmitBurden",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":13,"type":"UInt64"}],["HookOn",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"UInt64"}],["HookInstructionCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"UInt64"}],["HookReturnCode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"UInt64"}],["ReferenceCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"UInt64"}],["XChainClaimID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":20,"type":"UInt64"}],["XChainAccountCreateCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":21,"type":"UInt64"}],["XChainAccountClaimCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":22,"type":"UInt64"}],["AssetPrice",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":23,"type":"UInt64"}],["MaximumAmount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":24,"type":"UInt64"}],["OutstandingAmount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":25,"type":"UInt64"}],["MPTAmount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":26,"type":"UInt64"}],["IssuerNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":27,"type":"UInt64"}],["SubjectNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":28,"type":"UInt64"}],["EmailHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"Hash128"}],["LedgerHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"Hash256"}],["ParentHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"Hash256"}],["TransactionHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"Hash256"}],["AccountHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"Hash256"}],["PreviousTxnID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"Hash256"}],["LedgerIndex",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"Hash256"}],["WalletLocator",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":7,"type":"Hash256"}],["RootIndex",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":8,"type":"Hash256"}],["AccountTxnID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":9,"type":"Hash256"}],["NFTokenID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":10,"type":"Hash256"}],["EmitParentTxnID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":11,"type":"Hash256"}],["EmitNonce",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":12,"type":"Hash256"}],["EmitHookHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":13,"type":"Hash256"}],["AMMID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":14,"type":"Hash256"}],["BookDirectory",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"Hash256"}],["InvoiceID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"Hash256"}],["Nickname",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"Hash256"}],["Amendment",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"Hash256"}],["Digest",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":21,"type":"Hash256"}],["Channel",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":22,"type":"Hash256"}],["ConsensusHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":23,"type":"Hash256"}],["CheckID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":24,"type":"Hash256"}],["ValidatedHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":25,"type":"Hash256"}],["PreviousPageMin",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":26,"type":"Hash256"}],["NextPageMin",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":27,"type":"Hash256"}],["NFTokenBuyOffer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":28,"type":"Hash256"}],["NFTokenSellOffer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":29,"type":"Hash256"}],["HookStateKey",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":30,"type":"Hash256"}],["HookHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":31,"type":"Hash256"}],["HookNamespace",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":32,"type":"Hash256"}],["HookSetTxnID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":33,"type":"Hash256"}],["DomainID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":34,"type":"Hash256"}],["VaultID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":35,"type":"Hash256"}],["ParentBatchID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":36,"type":"Hash256"}],["hash",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":257,"type":"Hash256"}],["index",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":258,"type":"Hash256"}],["Amount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"Amount"}],["Balance",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"Amount"}],["LimitAmount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"Amount"}],["TakerPays",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"Amount"}],["TakerGets",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"Amount"}],["LowLimit",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"Amount"}],["HighLimit",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":7,"type":"Amount"}],["Fee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":8,"type":"Amount"}],["SendMax",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":9,"type":"Amount"}],["DeliverMin",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":10,"type":"Amount"}],["Amount2",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":11,"type":"Amount"}],["BidMin",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":12,"type":"Amount"}],["BidMax",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":13,"type":"Amount"}],["MinimumOffer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"Amount"}],["RippleEscrow",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"Amount"}],["DeliveredAmount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"Amount"}],["NFTokenBrokerFee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"Amount"}],["BaseFeeDrops",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":22,"type":"Amount"}],["ReserveBaseDrops",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":23,"type":"Amount"}],["ReserveIncrementDrops",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":24,"type":"Amount"}],["LPTokenOut",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":25,"type":"Amount"}],["LPTokenIn",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":26,"type":"Amount"}],["EPrice",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":27,"type":"Amount"}],["Price",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":28,"type":"Amount"}],["SignatureReward",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":29,"type":"Amount"}],["MinAccountCreateAmount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":30,"type":"Amount"}],["LPTokenBalance",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":31,"type":"Amount"}],["PublicKey",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":1,"type":"Blob"}],["MessageKey",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":2,"type":"Blob"}],["SigningPubKey",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":3,"type":"Blob"}],["TxnSignature",{"isSerialized":true,"isSigningField":false,"isVLEncoded":true,"nth":4,"type":"Blob"}],["URI",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":5,"type":"Blob"}],["Signature",{"isSerialized":true,"isSigningField":false,"isVLEncoded":true,"nth":6,"type":"Blob"}],["Domain",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":7,"type":"Blob"}],["FundCode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":8,"type":"Blob"}],["RemoveCode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":9,"type":"Blob"}],["ExpireCode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":10,"type":"Blob"}],["CreateCode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":11,"type":"Blob"}],["MemoType",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":12,"type":"Blob"}],["MemoData",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":13,"type":"Blob"}],["MemoFormat",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":14,"type":"Blob"}],["Fulfillment",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":16,"type":"Blob"}],["Condition",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":17,"type":"Blob"}],["MasterSignature",{"isSerialized":true,"isSigningField":false,"isVLEncoded":true,"nth":18,"type":"Blob"}],["UNLModifyValidator",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":19,"type":"Blob"}],["ValidatorToDisable",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":20,"type":"Blob"}],["ValidatorToReEnable",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":21,"type":"Blob"}],["HookStateData",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":22,"type":"Blob"}],["HookReturnString",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":23,"type":"Blob"}],["HookParameterName",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":24,"type":"Blob"}],["HookParameterValue",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":25,"type":"Blob"}],["DIDDocument",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":26,"type":"Blob"}],["Data",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":27,"type":"Blob"}],["AssetClass",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":28,"type":"Blob"}],["Provider",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":29,"type":"Blob"}],["MPTokenMetadata",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":30,"type":"Blob"}],["CredentialType",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":31,"type":"Blob"}],["FinishFunction",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":32,"type":"Blob"}],["Account",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":1,"type":"AccountID"}],["Owner",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":2,"type":"AccountID"}],["Destination",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":3,"type":"AccountID"}],["Issuer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":4,"type":"AccountID"}],["Authorize",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":5,"type":"AccountID"}],["Unauthorize",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":6,"type":"AccountID"}],["RegularKey",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":8,"type":"AccountID"}],["NFTokenMinter",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":9,"type":"AccountID"}],["EmitCallback",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":10,"type":"AccountID"}],["Holder",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":11,"type":"AccountID"}],["Delegate",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":12,"type":"AccountID"}],["HookAccount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":16,"type":"AccountID"}],["OtherChainSource",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":18,"type":"AccountID"}],["OtherChainDestination",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":19,"type":"AccountID"}],["AttestationSignerAccount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":20,"type":"AccountID"}],["AttestationRewardAccount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":21,"type":"AccountID"}],["LockingChainDoor",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":22,"type":"AccountID"}],["IssuingChainDoor",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":23,"type":"AccountID"}],["Subject",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":24,"type":"AccountID"}],["Number",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"Number"}],["AssetsAvailable",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"Number"}],["AssetsMaximum",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"Number"}],["AssetsTotal",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"Number"}],["LossUnrealized",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"Number"}],["TransactionMetaData",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"STObject"}],["CreatedNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"STObject"}],["DeletedNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"STObject"}],["ModifiedNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"STObject"}],["PreviousFields",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"STObject"}],["FinalFields",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":7,"type":"STObject"}],["NewFields",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":8,"type":"STObject"}],["TemplateEntry",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":9,"type":"STObject"}],["Memo",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":10,"type":"STObject"}],["SignerEntry",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":11,"type":"STObject"}],["NFToken",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":12,"type":"STObject"}],["EmitDetails",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":13,"type":"STObject"}],["Hook",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":14,"type":"STObject"}],["Permission",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":15,"type":"STObject"}],["Signer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"STObject"}],["Majority",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"STObject"}],["DisabledValidator",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"STObject"}],["EmittedTxn",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":20,"type":"STObject"}],["HookExecution",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":21,"type":"STObject"}],["HookDefinition",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":22,"type":"STObject"}],["HookParameter",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":23,"type":"STObject"}],["HookGrant",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":24,"type":"STObject"}],["VoteEntry",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":25,"type":"STObject"}],["AuctionSlot",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":26,"type":"STObject"}],["AuthAccount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":27,"type":"STObject"}],["XChainClaimProofSig",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":28,"type":"STObject"}],["XChainCreateAccountProofSig",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":29,"type":"STObject"}],["XChainClaimAttestationCollectionElement",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":30,"type":"STObject"}],["XChainCreateAccountAttestationCollectionElement",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":31,"type":"STObject"}],["PriceData",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":32,"type":"STObject"}],["Credential",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":33,"type":"STObject"}],["RawTransaction",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":34,"type":"STObject"}],["BatchSigner",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":35,"type":"STObject"}],["Signers",{"isSerialized":true,"isSigningField":false,"isVLEncoded":false,"nth":3,"type":"STArray"}],["SignerEntries",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"STArray"}],["Template",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"STArray"}],["Necessary",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"STArray"}],["Sufficient",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":7,"type":"STArray"}],["AffectedNodes",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":8,"type":"STArray"}],["Memos",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":9,"type":"STArray"}],["NFTokens",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":10,"type":"STArray"}],["Hooks",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":11,"type":"STArray"}],["VoteSlots",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":12,"type":"STArray"}],["Majorities",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"STArray"}],["DisabledValidators",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"STArray"}],["HookExecutions",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"STArray"}],["HookParameters",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"STArray"}],["HookGrants",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":20,"type":"STArray"}],["XChainClaimAttestations",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":21,"type":"STArray"}],["XChainCreateAccountAttestations",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":22,"type":"STArray"}],["PriceDataSeries",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":24,"type":"STArray"}],["AuthAccounts",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":25,"type":"STArray"}],["AuthorizeCredentials",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":26,"type":"STArray"}],["UnauthorizeCredentials",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":27,"type":"STArray"}],["AcceptedCredentials",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":28,"type":"STArray"}],["Permissions",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":29,"type":"STArray"}],["RawTransactions",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":30,"type":"STArray"}],["BatchSigners",{"isSerialized":true,"isSigningField":false,"isVLEncoded":false,"nth":31,"type":"STArray"}],["CloseResolution",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"UInt8"}],["Method",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"UInt8"}],["TransactionResult",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"UInt8"}],["Scale",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"UInt8"}],["AssetScale",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"UInt8"}],["TickSize",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"UInt8"}],["UNLModifyDisabling",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"UInt8"}],["HookResult",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"UInt8"}],["WasLockingChainSend",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"UInt8"}],["WithdrawalPolicy",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":20,"type":"UInt8"}],["TakerPaysCurrency",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"Hash160"}],["TakerPaysIssuer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"Hash160"}],["TakerGetsCurrency",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"Hash160"}],["TakerGetsIssuer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"Hash160"}],["Paths",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"PathSet"}],["Indexes",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":1,"type":"Vector256"}],["Hashes",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":2,"type":"Vector256"}],["Amendments",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":3,"type":"Vector256"}],["NFTokenOffers",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":4,"type":"Vector256"}],["CredentialIDs",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":5,"type":"Vector256"}],["MPTokenIssuanceID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"Hash192"}],["ShareMPTID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"Hash192"}],["LockingChainIssue",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"Issue"}],["IssuingChainIssue",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"Issue"}],["Asset",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"Issue"}],["Asset2",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"Issue"}],["XChainBridge",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"XChainBridge"}],["BaseAsset",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"Currency"}],["QuoteAsset",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"Currency"}],["Transaction",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":257,"type":"Transaction"}],["LedgerEntry",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":257,"type":"LedgerEntry"}],["Validation",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":257,"type":"Validation"}],["Metadata",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":257,"type":"Metadata"}]],"LEDGER_ENTRY_TYPES":{"AMM":121,"AccountRoot":97,"Amendments":102,"Bridge":105,"Check":67,"Credential":129,"DID":73,"Delegate":131,"DepositPreauth":112,"DirectoryNode":100,"Escrow":117,"FeeSettings":115,"Invalid":-1,"LedgerHashes":104,"MPToken":127,"MPTokenIssuance":126,"NFTokenOffer":55,"NFTokenPage":80,"NegativeUNL":78,"Offer":111,"Oracle":128,"PayChannel":120,"PermissionedDomain":130,"RippleState":114,"SignerList":83,"Ticket":84,"Vault":132,"XChainOwnedClaimID":113,"XChainOwnedCreateAccountClaimID":116},"TRANSACTION_RESULTS":{"tecAMM_ACCOUNT":168,"tecAMM_BALANCE":163,"tecAMM_EMPTY":166,"tecAMM_FAILED":164,"tecAMM_INVALID_TOKENS":165,"tecAMM_NOT_EMPTY":167,"tecARRAY_EMPTY":190,"tecARRAY_TOO_LARGE":191,"tecBAD_CREDENTIALS":193,"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER":158,"tecCLAIM":100,"tecCRYPTOCONDITION_ERROR":146,"tecDIR_FULL":121,"tecDST_TAG_NEEDED":143,"tecDUPLICATE":149,"tecEMPTY_DID":187,"tecEXPIRED":148,"tecFAILED_PROCESSING":105,"tecFROZEN":137,"tecHAS_OBLIGATIONS":151,"tecHOOK_REJECTED":153,"tecINCOMPLETE":169,"tecINSUFFICIENT_FUNDS":159,"tecINSUFFICIENT_PAYMENT":161,"tecINSUFFICIENT_RESERVE":141,"tecINSUFF_FEE":136,"tecINSUF_RESERVE_LINE":122,"tecINSUF_RESERVE_OFFER":123,"tecINTERNAL":144,"tecINVALID_UPDATE_TIME":188,"tecINVARIANT_FAILED":147,"tecKILLED":150,"tecLIMIT_EXCEEDED":195,"tecLOCKED":192,"tecMAX_SEQUENCE_REACHED":154,"tecNEED_MASTER_KEY":142,"tecNFTOKEN_BUY_SELL_MISMATCH":156,"tecNFTOKEN_OFFER_TYPE_MISMATCH":157,"tecNO_ALTERNATIVE_KEY":130,"tecNO_AUTH":134,"tecNO_DST":124,"tecNO_DST_INSUF_XRP":125,"tecNO_ENTRY":140,"tecNO_ISSUER":133,"tecNO_LINE":135,"tecNO_LINE_INSUF_RESERVE":126,"tecNO_LINE_REDUNDANT":127,"tecNO_PERMISSION":139,"tecNO_REGULAR_KEY":131,"tecNO_SUITABLE_NFTOKEN_PAGE":155,"tecNO_TARGET":138,"tecOBJECT_NOT_FOUND":160,"tecOVERSIZE":145,"tecOWNERS":132,"tecPATH_DRY":128,"tecPATH_PARTIAL":101,"tecPSEUDO_ACCOUNT":196,"tecTOKEN_PAIR_NOT_FOUND":189,"tecTOO_SOON":152,"tecUNFUNDED":129,"tecUNFUNDED_ADD":102,"tecUNFUNDED_AMM":162,"tecUNFUNDED_OFFER":103,"tecUNFUNDED_PAYMENT":104,"tecWASM_REJECTED":197,"tecWRONG_ASSET":194,"tecXCHAIN_ACCOUNT_CREATE_PAST":181,"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY":182,"tecXCHAIN_BAD_CLAIM_ID":172,"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR":185,"tecXCHAIN_BAD_TRANSFER_ISSUE":170,"tecXCHAIN_CLAIM_NO_QUORUM":173,"tecXCHAIN_CREATE_ACCOUNT_DISABLED":186,"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE":175,"tecXCHAIN_INSUFF_CREATE_AMOUNT":180,"tecXCHAIN_NO_CLAIM_ID":171,"tecXCHAIN_NO_SIGNERS_LIST":178,"tecXCHAIN_PAYMENT_FAILED":183,"tecXCHAIN_PROOF_UNKNOWN_KEY":174,"tecXCHAIN_REWARD_MISMATCH":177,"tecXCHAIN_SELF_COMMIT":184,"tecXCHAIN_SENDING_ACCOUNT_MISMATCH":179,"tecXCHAIN_WRONG_CHAIN":176,"tefALREADY":-198,"tefBAD_ADD_AUTH":-197,"tefBAD_AUTH":-196,"tefBAD_AUTH_MASTER":-183,"tefBAD_LEDGER":-195,"tefBAD_QUORUM":-185,"tefBAD_SIGNATURE":-186,"tefCREATED":-194,"tefEXCEPTION":-193,"tefFAILURE":-199,"tefINTERNAL":-192,"tefINVALID_LEDGER_FIX_TYPE":-178,"tefINVARIANT_FAILED":-182,"tefMASTER_DISABLED":-188,"tefMAX_LEDGER":-187,"tefNFTOKEN_IS_NOT_TRANSFERABLE":-179,"tefNOT_MULTI_SIGNING":-184,"tefNO_AUTH_REQUIRED":-191,"tefNO_TICKET":-180,"tefNO_WASM":-177,"tefPAST_SEQ":-190,"tefTOO_BIG":-181,"tefWASM_FIELD_NOT_INCLUDED":-176,"tefWRONG_PRIOR":-189,"telBAD_DOMAIN":-398,"telBAD_PATH_COUNT":-397,"telBAD_PUBLIC_KEY":-396,"telCAN_NOT_QUEUE":-392,"telCAN_NOT_QUEUE_BALANCE":-391,"telCAN_NOT_QUEUE_BLOCKED":-389,"telCAN_NOT_QUEUE_BLOCKS":-390,"telCAN_NOT_QUEUE_FEE":-388,"telCAN_NOT_QUEUE_FULL":-387,"telENV_RPC_FAILED":-383,"telFAILED_PROCESSING":-395,"telINSUF_FEE_P":-394,"telLOCAL_ERROR":-399,"telNETWORK_ID_MAKES_TX_NON_CANONICAL":-384,"telNO_DST_PARTIAL":-393,"telREQUIRES_NETWORK_ID":-385,"telWRONG_NETWORK":-386,"temARRAY_EMPTY":-253,"temARRAY_TOO_LARGE":-252,"temBAD_AMM_TOKENS":-261,"temBAD_AMOUNT":-298,"temBAD_CURRENCY":-297,"temBAD_EXPIRATION":-296,"temBAD_FEE":-295,"temBAD_ISSUER":-294,"temBAD_LIMIT":-293,"temBAD_NFTOKEN_TRANSFER_FEE":-262,"temBAD_OFFER":-292,"temBAD_PATH":-291,"temBAD_PATH_LOOP":-290,"temBAD_QUORUM":-271,"temBAD_REGKEY":-289,"temBAD_SEND_XRP_LIMIT":-288,"temBAD_SEND_XRP_MAX":-287,"temBAD_SEND_XRP_NO_DIRECT":-286,"temBAD_SEND_XRP_PARTIAL":-285,"temBAD_SEND_XRP_PATHS":-284,"temBAD_SEQUENCE":-283,"temBAD_SIGNATURE":-282,"temBAD_SIGNER":-272,"temBAD_SRC_ACCOUNT":-281,"temBAD_TICK_SIZE":-269,"temBAD_TRANSFER_FEE":-251,"temBAD_TRANSFER_RATE":-280,"temBAD_WASM":-249,"temBAD_WEIGHT":-270,"temCANNOT_PREAUTH_SELF":-267,"temDISABLED":-273,"temDST_IS_SRC":-279,"temDST_NEEDED":-278,"temEMPTY_DID":-254,"temINVALID":-277,"temINVALID_ACCOUNT_ID":-268,"temINVALID_COUNT":-266,"temINVALID_FLAG":-276,"temINVALID_INNER_BATCH":-250,"temMALFORMED":-299,"temREDUNDANT":-275,"temRIPPLE_EMPTY":-274,"temSEQ_AND_TICKET":-263,"temUNCERTAIN":-265,"temUNKNOWN":-264,"temXCHAIN_BAD_PROOF":-259,"temXCHAIN_BRIDGE_BAD_ISSUES":-258,"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT":-256,"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT":-255,"temXCHAIN_BRIDGE_NONDOOR_OWNER":-257,"temXCHAIN_EQUAL_DOOR_ACCOUNTS":-260,"terADDRESS_COLLISION":-86,"terFUNDS_SPENT":-98,"terINSUF_FEE_B":-97,"terLAST":-91,"terNO_ACCOUNT":-96,"terNO_AMM":-87,"terNO_AUTH":-95,"terNO_LINE":-94,"terNO_RIPPLE":-90,"terOWNERS":-93,"terPRE_SEQ":-92,"terPRE_TICKET":-88,"terQUEUED":-89,"terRETRY":-99,"tesSUCCESS":0},"TRANSACTION_TYPES":{"AMMBid":39,"AMMClawback":31,"AMMCreate":35,"AMMDelete":40,"AMMDeposit":36,"AMMVote":38,"AMMWithdraw":37,"AccountDelete":21,"AccountSet":3,"Batch":71,"CheckCancel":18,"CheckCash":17,"CheckCreate":16,"Clawback":30,"CredentialAccept":59,"CredentialCreate":58,"CredentialDelete":60,"DIDDelete":50,"DIDSet":49,"DelegateSet":64,"DepositPreauth":19,"EnableAmendment":100,"EscrowCancel":4,"EscrowCreate":1,"EscrowFinish":2,"Invalid":-1,"LedgerStateFix":53,"MPTokenAuthorize":57,"MPTokenIssuanceCreate":54,"MPTokenIssuanceDestroy":55,"MPTokenIssuanceSet":56,"NFTokenAcceptOffer":29,"NFTokenBurn":26,"NFTokenCancelOffer":28,"NFTokenCreateOffer":27,"NFTokenMint":25,"NFTokenModify":61,"OfferCancel":8,"OfferCreate":7,"OracleDelete":52,"OracleSet":51,"Payment":0,"PaymentChannelClaim":15,"PaymentChannelCreate":13,"PaymentChannelFund":14,"PermissionedDomainDelete":63,"PermissionedDomainSet":62,"SetFee":101,"SetRegularKey":5,"SignerListSet":12,"TicketCreate":10,"TrustSet":20,"UNLModify":102,"VaultClawback":70,"VaultCreate":65,"VaultDelete":67,"VaultDeposit":68,"VaultSet":66,"VaultWithdraw":69,"XChainAccountCreateCommit":44,"XChainAddAccountCreateAttestation":46,"XChainAddClaimAttestation":45,"XChainClaim":43,"XChainCommit":42,"XChainCreateBridge":48,"XChainCreateClaimID":41,"XChainModifyBridge":47},"TYPES":{"AccountID":8,"Amount":6,"Blob":7,"Currency":26,"Done":-1,"Hash128":4,"Hash160":17,"Hash192":21,"Hash256":5,"Issue":24,"LedgerEntry":10002,"Metadata":10004,"NotPresent":0,"Number":9,"PathSet":18,"STArray":15,"STObject":14,"Transaction":10001,"UInt16":1,"UInt32":2,"UInt384":22,"UInt512":23,"UInt64":3,"UInt8":16,"UInt96":20,"Unknown":-2,"Validation":10003,"Vector256":19,"XChainBridge":25}}')},8161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSecretString=t.checkChecksum=t.calculateChecksum=t.secretToEntropy=t.entropyToSecret=t.randomSecret=t.randomEntropy=void 0;const r=n(619);function i(){return(0,r.randomBytes)(16)}function o(e,t){return t*(2*e+1)%9}function s(e,t,n){let r,i;if("string"==typeof t){if(6!==t.length)throw new Error("value must have a length of 6");r=parseInt(t.slice(5),10),i=parseInt(t.slice(0,5),10)}else{if("number"!=typeof n)throw new Error("checksum must be a number when value is a number");r=n,i=t}return i*(2*e+1)%9===r}function a(e){const t=new Array(Math.ceil(e.length/2)),n=Array.from(t,((t,n)=>{const i=e.slice(2*n,2*(n+1)),s=parseInt((0,r.bytesToHex)(i),16);return"0".repeat(5-String(s).length)+String(s)+String(o(n,s))}));if(8!==n.length)throw new Error("Chucks must have 8 digits");return n}t.randomEntropy=i,t.calculateChecksum=o,t.checkChecksum=s,t.entropyToSecret=a,t.randomSecret=function(){return a(i())},t.secretToEntropy=function(e){return(0,r.concat)(e.map(((e,t)=>{const n=Number(e.slice(0,5)),i=Number(e.slice(5));if(6!==e.length)throw new Error("Invalid secret: number invalid");if(!s(t,n,i))throw new Error("Invalid secret part: checksum invalid");const o=`0000${n.toString(16)}`.slice(-4);return(0,r.hexToBytes)(o)})))},t.parseSecretString=function(e){const t=e.replace(/[^0-9]/gu,"");if(48!==t.length)throw new Error("Invalid secret string (should contain 8 blocks of 6 digits");return Array.from(new Array(8),((e,n)=>t.slice(6*n,6*(n+1))))}},8188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DELEGATABLE_PERMISSIONS_WIDTH=t.TRANSACTION_RESULT_WIDTH=t.TRANSACTION_TYPE_WIDTH=t.LEDGER_ENTRY_WIDTH=t.TYPE_WIDTH=void 0,t.TYPE_WIDTH=2,t.LEDGER_ENTRY_WIDTH=2,t.TRANSACTION_TYPE_WIDTH=2,t.TRANSACTION_RESULT_WIDTH=1,t.DELEGATABLE_PERMISSIONS_WIDTH=4},8213:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.quality=void 0;const i=n(6986),o=r(n(735)),s=n(619);t.quality=class{static encode(e){const t=(0,o.default)(e),n=((null==t?void 0:t.e)||0)-15,r=t.times("1e"+-n).abs().toString(),s=i.coreTypes.UInt64.from(BigInt(r)).toBytes();return s[0]=n+100,s}static decode(e){const t=(0,s.hexToBytes)(e).slice(-8),n=t[0]-100;return new o.default(`0x${(0,s.bytesToHex)(t.slice(1))}`).times(`1e${n}`)}}},8239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STArray=void 0;const r=n(1141),i=n(1275),o=n(8847),s=n(892),a=n(619),c=Uint8Array.from([241]),l="ArrayEndMarker",u=Uint8Array.from([225]);class d extends i.SerializedType{static fromParser(e){const t=[];for(;!e.end();){const n=e.readField();if(n.name===l)break;t.push(n.header,e.readFieldValue(n).toBytes(),u)}return t.push(c),new d((0,a.concat)(t))}static from(e,t=r.DEFAULT_DEFINITIONS){if(e instanceof d)return e;if(n=e,Array.isArray(n)&&n.every((e=>"object"==typeof e&&1===Object.keys(e).length&&"object"==typeof Object.values(e)[0]))){const n=[];return e.forEach((e=>{n.push(o.STObject.from(e,void 0,t).toBytes())})),n.push(c),new d((0,a.concat)(n))}var n;throw new Error("Cannot construct STArray from value given")}toJSON(e=r.DEFAULT_DEFINITIONS){const t=[],n=new s.BinaryParser(this.toString(),e);for(;!n.end();){const r=n.readField();if(r.name===l)break;const i={};i[r.name]=o.STObject.fromParser(n).toJSON(e),t.push(i)}return t}}t.STArray=d},8264:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash256=void 0;const r=n(3776);class i extends r.Hash{constructor(e){super(null!=e?e:i.ZERO_256.bytes)}}t.Hash256=i,i.width=32,i.ZERO_256=new i(new Uint8Array(i.width))},8292:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateDIDSet=void 0;const r=n(255),i=n(2794);t.validateDIDSet=function(e){if((0,i.validateBaseTransaction)(e),(0,i.validateOptionalField)(e,"Data",i.isString),(0,i.validateOptionalField)(e,"DIDDocument",i.isString),(0,i.validateOptionalField)(e,"URI",i.isString),void 0===e.Data&&void 0===e.DIDDocument&&void 0===e.URI)throw new r.ValidationError("DIDSet: Must have at least one of `Data`, `DIDDocument`, and `URI`")}},8312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateXChainClaim=void 0;const r=n(2794);t.validateXChainClaim=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"XChainBridge",r.isXChainBridge),(0,r.validateRequiredField)(e,"XChainClaimID",(e=>(0,r.isNumber)(e)||(0,r.isString)(e))),(0,r.validateRequiredField)(e,"Destination",r.isAccount),(0,r.validateOptionalField)(e,"DestinationTag",r.isNumber),(0,r.validateRequiredField)(e,"Amount",r.isAmount)}},8377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateDIDDelete=void 0;const r=n(2794);t.validateDIDDelete=function(e){(0,r.validateBaseTransaction)(e)}},8390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShaMapLeaf=t.ShaMapNode=t.ShaMap=void 0;const r=n(6986),i=n(7375),o=n(7410);class s{}t.ShaMapNode=s;class a extends s{constructor(e,t){super(),this.index=e,this.item=t}isLeaf(){return!0}isInner(){return!1}hashPrefix(){return void 0===this.item?new Uint8Array(0):this.item.hashPrefix()}hash(){const e=o.Sha512Half.put(this.hashPrefix());return this.toBytesSink(e),e.finish()}toBytesSink(e){void 0!==this.item&&this.item.toBytesSink(e),this.index.toBytesSink(e)}}t.ShaMapLeaf=a;class c extends s{constructor(e=0){super(),this.depth=e,this.slotBits=0,this.branches=Array(16)}isInner(){return!0}isLeaf(){return!1}hashPrefix(){return i.HashPrefix.innerNode}setBranch(e,t){this.slotBits=this.slotBits|1<<e,this.branches[e]=t}empty(){return 0===this.slotBits}hash(){if(this.empty())return r.coreTypes.Hash256.ZERO_256;const e=o.Sha512Half.put(this.hashPrefix());return this.toBytesSink(e),e.finish()}toBytesSink(e){for(let t=0;t<this.branches.length;t++){const n=this.branches[t];(n?n.hash():r.coreTypes.Hash256.ZERO_256).toBytesSink(e)}}addItem(e,t,n){if(void 0===e)throw new Error;if(void 0!==e){const r=e.nibblet(this.depth),i=this.branches[r];if(void 0===i)this.setBranch(r,n||new a(e,t));else if(i instanceof a){const o=new c(this.depth+1);o.addItem(i.index,void 0,i),o.addItem(e,t,n),this.setBranch(r,o)}else{if(!(i instanceof c))throw new Error("invalid ShaMap.addItem call");i.addItem(e,t,n)}}}}t.ShaMap=class extends c{}},8413:e=>{"use strict";e.exports=JSON.parse('["A","ABE","ACE","ACT","AD","ADA","ADD","AGO","AID","AIM","AIR","ALL","ALP","AM","AMY","AN","ANA","AND","ANN","ANT","ANY","APE","APS","APT","ARC","ARE","ARK","ARM","ART","AS","ASH","ASK","AT","ATE","AUG","AUK","AVE","AWE","AWK","AWL","AWN","AX","AYE","BAD","BAG","BAH","BAM","BAN","BAR","BAT","BAY","BE","BED","BEE","BEG","BEN","BET","BEY","BIB","BID","BIG","BIN","BIT","BOB","BOG","BON","BOO","BOP","BOW","BOY","BUB","BUD","BUG","BUM","BUN","BUS","BUT","BUY","BY","BYE","CAB","CAL","CAM","CAN","CAP","CAR","CAT","CAW","COD","COG","COL","CON","COO","COP","COT","COW","COY","CRY","CUB","CUE","CUP","CUR","CUT","DAB","DAD","DAM","DAN","DAR","DAY","DEE","DEL","DEN","DES","DEW","DID","DIE","DIG","DIN","DIP","DO","DOE","DOG","DON","DOT","DOW","DRY","DUB","DUD","DUE","DUG","DUN","EAR","EAT","ED","EEL","EGG","EGO","ELI","ELK","ELM","ELY","EM","END","EST","ETC","EVA","EVE","EWE","EYE","FAD","FAN","FAR","FAT","FAY","FED","FEE","FEW","FIB","FIG","FIN","FIR","FIT","FLO","FLY","FOE","FOG","FOR","FRY","FUM","FUN","FUR","GAB","GAD","GAG","GAL","GAM","GAP","GAS","GAY","GEE","GEL","GEM","GET","GIG","GIL","GIN","GO","GOT","GUM","GUN","GUS","GUT","GUY","GYM","GYP","HA","HAD","HAL","HAM","HAN","HAP","HAS","HAT","HAW","HAY","HE","HEM","HEN","HER","HEW","HEY","HI","HID","HIM","HIP","HIS","HIT","HO","HOB","HOC","HOE","HOG","HOP","HOT","HOW","HUB","HUE","HUG","HUH","HUM","HUT","I","ICY","IDA","IF","IKE","ILL","INK","INN","IO","ION","IQ","IRA","IRE","IRK","IS","IT","ITS","IVY","JAB","JAG","JAM","JAN","JAR","JAW","JAY","JET","JIG","JIM","JO","JOB","JOE","JOG","JOT","JOY","JUG","JUT","KAY","KEG","KEN","KEY","KID","KIM","KIN","KIT","LA","LAB","LAC","LAD","LAG","LAM","LAP","LAW","LAY","LEA","LED","LEE","LEG","LEN","LEO","LET","LEW","LID","LIE","LIN","LIP","LIT","LO","LOB","LOG","LOP","LOS","LOT","LOU","LOW","LOY","LUG","LYE","MA","MAC","MAD","MAE","MAN","MAO","MAP","MAT","MAW","MAY","ME","MEG","MEL","MEN","MET","MEW","MID","MIN","MIT","MOB","MOD","MOE","MOO","MOP","MOS","MOT","MOW","MUD","MUG","MUM","MY","NAB","NAG","NAN","NAP","NAT","NAY","NE","NED","NEE","NET","NEW","NIB","NIL","NIP","NIT","NO","NOB","NOD","NON","NOR","NOT","NOV","NOW","NU","NUN","NUT","O","OAF","OAK","OAR","OAT","ODD","ODE","OF","OFF","OFT","OH","OIL","OK","OLD","ON","ONE","OR","ORB","ORE","ORR","OS","OTT","OUR","OUT","OVA","OW","OWE","OWL","OWN","OX","PA","PAD","PAL","PAM","PAN","PAP","PAR","PAT","PAW","PAY","PEA","PEG","PEN","PEP","PER","PET","PEW","PHI","PI","PIE","PIN","PIT","PLY","PO","POD","POE","POP","POT","POW","PRO","PRY","PUB","PUG","PUN","PUP","PUT","QUO","RAG","RAM","RAN","RAP","RAT","RAW","RAY","REB","RED","REP","RET","RIB","RID","RIG","RIM","RIO","RIP","ROB","ROD","ROE","RON","ROT","ROW","ROY","RUB","RUE","RUG","RUM","RUN","RYE","SAC","SAD","SAG","SAL","SAM","SAN","SAP","SAT","SAW","SAY","SEA","SEC","SEE","SEN","SET","SEW","SHE","SHY","SIN","SIP","SIR","SIS","SIT","SKI","SKY","SLY","SO","SOB","SOD","SON","SOP","SOW","SOY","SPA","SPY","SUB","SUD","SUE","SUM","SUN","SUP","TAB","TAD","TAG","TAN","TAP","TAR","TEA","TED","TEE","TEN","THE","THY","TIC","TIE","TIM","TIN","TIP","TO","TOE","TOG","TOM","TON","TOO","TOP","TOW","TOY","TRY","TUB","TUG","TUM","TUN","TWO","UN","UP","US","USE","VAN","VAT","VET","VIE","WAD","WAG","WAR","WAS","WAY","WE","WEB","WED","WEE","WET","WHO","WHY","WIN","WIT","WOK","WON","WOO","WOW","WRY","WU","YAM","YAP","YAW","YE","YEA","YES","YET","YOU","ABED","ABEL","ABET","ABLE","ABUT","ACHE","ACID","ACME","ACRE","ACTA","ACTS","ADAM","ADDS","ADEN","AFAR","AFRO","AGEE","AHEM","AHOY","AIDA","AIDE","AIDS","AIRY","AJAR","AKIN","ALAN","ALEC","ALGA","ALIA","ALLY","ALMA","ALOE","ALSO","ALTO","ALUM","ALVA","AMEN","AMES","AMID","AMMO","AMOK","AMOS","AMRA","ANDY","ANEW","ANNA","ANNE","ANTE","ANTI","AQUA","ARAB","ARCH","AREA","ARGO","ARID","ARMY","ARTS","ARTY","ASIA","ASKS","ATOM","AUNT","AURA","AUTO","AVER","AVID","AVIS","AVON","AVOW","AWAY","AWRY","BABE","BABY","BACH","BACK","BADE","BAIL","BAIT","BAKE","BALD","BALE","BALI","BALK","BALL","BALM","BAND","BANE","BANG","BANK","BARB","BARD","BARE","BARK","BARN","BARR","BASE","BASH","BASK","BASS","BATE","BATH","BAWD","BAWL","BEAD","BEAK","BEAM","BEAN","BEAR","BEAT","BEAU","BECK","BEEF","BEEN","BEER","BEET","BELA","BELL","BELT","BEND","BENT","BERG","BERN","BERT","BESS","BEST","BETA","BETH","BHOY","BIAS","BIDE","BIEN","BILE","BILK","BILL","BIND","BING","BIRD","BITE","BITS","BLAB","BLAT","BLED","BLEW","BLOB","BLOC","BLOT","BLOW","BLUE","BLUM","BLUR","BOAR","BOAT","BOCA","BOCK","BODE","BODY","BOGY","BOHR","BOIL","BOLD","BOLO","BOLT","BOMB","BONA","BOND","BONE","BONG","BONN","BONY","BOOK","BOOM","BOON","BOOT","BORE","BORG","BORN","BOSE","BOSS","BOTH","BOUT","BOWL","BOYD","BRAD","BRAE","BRAG","BRAN","BRAY","BRED","BREW","BRIG","BRIM","BROW","BUCK","BUDD","BUFF","BULB","BULK","BULL","BUNK","BUNT","BUOY","BURG","BURL","BURN","BURR","BURT","BURY","BUSH","BUSS","BUST","BUSY","BYTE","CADY","CAFE","CAGE","CAIN","CAKE","CALF","CALL","CALM","CAME","CANE","CANT","CARD","CARE","CARL","CARR","CART","CASE","CASH","CASK","CAST","CAVE","CEIL","CELL","CENT","CERN","CHAD","CHAR","CHAT","CHAW","CHEF","CHEN","CHEW","CHIC","CHIN","CHOU","CHOW","CHUB","CHUG","CHUM","CITE","CITY","CLAD","CLAM","CLAN","CLAW","CLAY","CLOD","CLOG","CLOT","CLUB","CLUE","COAL","COAT","COCA","COCK","COCO","CODA","CODE","CODY","COED","COIL","COIN","COKE","COLA","COLD","COLT","COMA","COMB","COME","COOK","COOL","COON","COOT","CORD","CORE","CORK","CORN","COST","COVE","COWL","CRAB","CRAG","CRAM","CRAY","CREW","CRIB","CROW","CRUD","CUBA","CUBE","CUFF","CULL","CULT","CUNY","CURB","CURD","CURE","CURL","CURT","CUTS","DADE","DALE","DAME","DANA","DANE","DANG","DANK","DARE","DARK","DARN","DART","DASH","DATA","DATE","DAVE","DAVY","DAWN","DAYS","DEAD","DEAF","DEAL","DEAN","DEAR","DEBT","DECK","DEED","DEEM","DEER","DEFT","DEFY","DELL","DENT","DENY","DESK","DIAL","DICE","DIED","DIET","DIME","DINE","DING","DINT","DIRE","DIRT","DISC","DISH","DISK","DIVE","DOCK","DOES","DOLE","DOLL","DOLT","DOME","DONE","DOOM","DOOR","DORA","DOSE","DOTE","DOUG","DOUR","DOVE","DOWN","DRAB","DRAG","DRAM","DRAW","DREW","DRUB","DRUG","DRUM","DUAL","DUCK","DUCT","DUEL","DUET","DUKE","DULL","DUMB","DUNE","DUNK","DUSK","DUST","DUTY","EACH","EARL","EARN","EASE","EAST","EASY","EBEN","ECHO","EDDY","EDEN","EDGE","EDGY","EDIT","EDNA","EGAN","ELAN","ELBA","ELLA","ELSE","EMIL","EMIT","EMMA","ENDS","ERIC","EROS","EVEN","EVER","EVIL","EYED","FACE","FACT","FADE","FAIL","FAIN","FAIR","FAKE","FALL","FAME","FANG","FARM","FAST","FATE","FAWN","FEAR","FEAT","FEED","FEEL","FEET","FELL","FELT","FEND","FERN","FEST","FEUD","FIEF","FIGS","FILE","FILL","FILM","FIND","FINE","FINK","FIRE","FIRM","FISH","FISK","FIST","FITS","FIVE","FLAG","FLAK","FLAM","FLAT","FLAW","FLEA","FLED","FLEW","FLIT","FLOC","FLOG","FLOW","FLUB","FLUE","FOAL","FOAM","FOGY","FOIL","FOLD","FOLK","FOND","FONT","FOOD","FOOL","FOOT","FORD","FORE","FORK","FORM","FORT","FOSS","FOUL","FOUR","FOWL","FRAU","FRAY","FRED","FREE","FRET","FREY","FROG","FROM","FUEL","FULL","FUME","FUND","FUNK","FURY","FUSE","FUSS","GAFF","GAGE","GAIL","GAIN","GAIT","GALA","GALE","GALL","GALT","GAME","GANG","GARB","GARY","GASH","GATE","GAUL","GAUR","GAVE","GAWK","GEAR","GELD","GENE","GENT","GERM","GETS","GIBE","GIFT","GILD","GILL","GILT","GINA","GIRD","GIRL","GIST","GIVE","GLAD","GLEE","GLEN","GLIB","GLOB","GLOM","GLOW","GLUE","GLUM","GLUT","GOAD","GOAL","GOAT","GOER","GOES","GOLD","GOLF","GONE","GONG","GOOD","GOOF","GORE","GORY","GOSH","GOUT","GOWN","GRAB","GRAD","GRAY","GREG","GREW","GREY","GRID","GRIM","GRIN","GRIT","GROW","GRUB","GULF","GULL","GUNK","GURU","GUSH","GUST","GWEN","GWYN","HAAG","HAAS","HACK","HAIL","HAIR","HALE","HALF","HALL","HALO","HALT","HAND","HANG","HANK","HANS","HARD","HARK","HARM","HART","HASH","HAST","HATE","HATH","HAUL","HAVE","HAWK","HAYS","HEAD","HEAL","HEAR","HEAT","HEBE","HECK","HEED","HEEL","HEFT","HELD","HELL","HELM","HERB","HERD","HERE","HERO","HERS","HESS","HEWN","HICK","HIDE","HIGH","HIKE","HILL","HILT","HIND","HINT","HIRE","HISS","HIVE","HOBO","HOCK","HOFF","HOLD","HOLE","HOLM","HOLT","HOME","HONE","HONK","HOOD","HOOF","HOOK","HOOT","HORN","HOSE","HOST","HOUR","HOVE","HOWE","HOWL","HOYT","HUCK","HUED","HUFF","HUGE","HUGH","HUGO","HULK","HULL","HUNK","HUNT","HURD","HURL","HURT","HUSH","HYDE","HYMN","IBIS","ICON","IDEA","IDLE","IFFY","INCA","INCH","INTO","IONS","IOTA","IOWA","IRIS","IRMA","IRON","ISLE","ITCH","ITEM","IVAN","JACK","JADE","JAIL","JAKE","JANE","JAVA","JEAN","JEFF","JERK","JESS","JEST","JIBE","JILL","JILT","JIVE","JOAN","JOBS","JOCK","JOEL","JOEY","JOHN","JOIN","JOKE","JOLT","JOVE","JUDD","JUDE","JUDO","JUDY","JUJU","JUKE","JULY","JUNE","JUNK","JUNO","JURY","JUST","JUTE","KAHN","KALE","KANE","KANT","KARL","KATE","KEEL","KEEN","KENO","KENT","KERN","KERR","KEYS","KICK","KILL","KIND","KING","KIRK","KISS","KITE","KLAN","KNEE","KNEW","KNIT","KNOB","KNOT","KNOW","KOCH","KONG","KUDO","KURD","KURT","KYLE","LACE","LACK","LACY","LADY","LAID","LAIN","LAIR","LAKE","LAMB","LAME","LAND","LANE","LANG","LARD","LARK","LASS","LAST","LATE","LAUD","LAVA","LAWN","LAWS","LAYS","LEAD","LEAF","LEAK","LEAN","LEAR","LEEK","LEER","LEFT","LEND","LENS","LENT","LEON","LESK","LESS","LEST","LETS","LIAR","LICE","LICK","LIED","LIEN","LIES","LIEU","LIFE","LIFT","LIKE","LILA","LILT","LILY","LIMA","LIMB","LIME","LIND","LINE","LINK","LINT","LION","LISA","LIST","LIVE","LOAD","LOAF","LOAM","LOAN","LOCK","LOFT","LOGE","LOIS","LOLA","LONE","LONG","LOOK","LOON","LOOT","LORD","LORE","LOSE","LOSS","LOST","LOUD","LOVE","LOWE","LUCK","LUCY","LUGE","LUKE","LULU","LUND","LUNG","LURA","LURE","LURK","LUSH","LUST","LYLE","LYNN","LYON","LYRA","MACE","MADE","MAGI","MAID","MAIL","MAIN","MAKE","MALE","MALI","MALL","MALT","MANA","MANN","MANY","MARC","MARE","MARK","MARS","MART","MARY","MASH","MASK","MASS","MAST","MATE","MATH","MAUL","MAYO","MEAD","MEAL","MEAN","MEAT","MEEK","MEET","MELD","MELT","MEMO","MEND","MENU","MERT","MESH","MESS","MICE","MIKE","MILD","MILE","MILK","MILL","MILT","MIMI","MIND","MINE","MINI","MINK","MINT","MIRE","MISS","MIST","MITE","MITT","MOAN","MOAT","MOCK","MODE","MOLD","MOLE","MOLL","MOLT","MONA","MONK","MONT","MOOD","MOON","MOOR","MOOT","MORE","MORN","MORT","MOSS","MOST","MOTH","MOVE","MUCH","MUCK","MUDD","MUFF","MULE","MULL","MURK","MUSH","MUST","MUTE","MUTT","MYRA","MYTH","NAGY","NAIL","NAIR","NAME","NARY","NASH","NAVE","NAVY","NEAL","NEAR","NEAT","NECK","NEED","NEIL","NELL","NEON","NERO","NESS","NEST","NEWS","NEWT","NIBS","NICE","NICK","NILE","NINA","NINE","NOAH","NODE","NOEL","NOLL","NONE","NOOK","NOON","NORM","NOSE","NOTE","NOUN","NOVA","NUDE","NULL","NUMB","OATH","OBEY","OBOE","ODIN","OHIO","OILY","OINT","OKAY","OLAF","OLDY","OLGA","OLIN","OMAN","OMEN","OMIT","ONCE","ONES","ONLY","ONTO","ONUS","ORAL","ORGY","OSLO","OTIS","OTTO","OUCH","OUST","OUTS","OVAL","OVEN","OVER","OWLY","OWNS","QUAD","QUIT","QUOD","RACE","RACK","RACY","RAFT","RAGE","RAID","RAIL","RAIN","RAKE","RANK","RANT","RARE","RASH","RATE","RAVE","RAYS","READ","REAL","REAM","REAR","RECK","REED","REEF","REEK","REEL","REID","REIN","RENA","REND","RENT","REST","RICE","RICH","RICK","RIDE","RIFT","RILL","RIME","RING","RINK","RISE","RISK","RITE","ROAD","ROAM","ROAR","ROBE","ROCK","RODE","ROIL","ROLL","ROME","ROOD","ROOF","ROOK","ROOM","ROOT","ROSA","ROSE","ROSS","ROSY","ROTH","ROUT","ROVE","ROWE","ROWS","RUBE","RUBY","RUDE","RUDY","RUIN","RULE","RUNG","RUNS","RUNT","RUSE","RUSH","RUSK","RUSS","RUST","RUTH","SACK","SAFE","SAGE","SAID","SAIL","SALE","SALK","SALT","SAME","SAND","SANE","SANG","SANK","SARA","SAUL","SAVE","SAYS","SCAN","SCAR","SCAT","SCOT","SEAL","SEAM","SEAR","SEAT","SEED","SEEK","SEEM","SEEN","SEES","SELF","SELL","SEND","SENT","SETS","SEWN","SHAG","SHAM","SHAW","SHAY","SHED","SHIM","SHIN","SHOD","SHOE","SHOT","SHOW","SHUN","SHUT","SICK","SIDE","SIFT","SIGH","SIGN","SILK","SILL","SILO","SILT","SINE","SING","SINK","SIRE","SITE","SITS","SITU","SKAT","SKEW","SKID","SKIM","SKIN","SKIT","SLAB","SLAM","SLAT","SLAY","SLED","SLEW","SLID","SLIM","SLIT","SLOB","SLOG","SLOT","SLOW","SLUG","SLUM","SLUR","SMOG","SMUG","SNAG","SNOB","SNOW","SNUB","SNUG","SOAK","SOAR","SOCK","SODA","SOFA","SOFT","SOIL","SOLD","SOME","SONG","SOON","SOOT","SORE","SORT","SOUL","SOUR","SOWN","STAB","STAG","STAN","STAR","STAY","STEM","STEW","STIR","STOW","STUB","STUN","SUCH","SUDS","SUIT","SULK","SUMS","SUNG","SUNK","SURE","SURF","SWAB","SWAG","SWAM","SWAN","SWAT","SWAY","SWIM","SWUM","TACK","TACT","TAIL","TAKE","TALE","TALK","TALL","TANK","TASK","TATE","TAUT","TEAL","TEAM","TEAR","TECH","TEEM","TEEN","TEET","TELL","TEND","TENT","TERM","TERN","TESS","TEST","THAN","THAT","THEE","THEM","THEN","THEY","THIN","THIS","THUD","THUG","TICK","TIDE","TIDY","TIED","TIER","TILE","TILL","TILT","TIME","TINA","TINE","TINT","TINY","TIRE","TOAD","TOGO","TOIL","TOLD","TOLL","TONE","TONG","TONY","TOOK","TOOL","TOOT","TORE","TORN","TOTE","TOUR","TOUT","TOWN","TRAG","TRAM","TRAY","TREE","TREK","TRIG","TRIM","TRIO","TROD","TROT","TROY","TRUE","TUBA","TUBE","TUCK","TUFT","TUNA","TUNE","TUNG","TURF","TURN","TUSK","TWIG","TWIN","TWIT","ULAN","UNIT","URGE","USED","USER","USES","UTAH","VAIL","VAIN","VALE","VARY","VASE","VAST","VEAL","VEDA","VEIL","VEIN","VEND","VENT","VERB","VERY","VETO","VICE","VIEW","VINE","VISE","VOID","VOLT","VOTE","WACK","WADE","WAGE","WAIL","WAIT","WAKE","WALE","WALK","WALL","WALT","WAND","WANE","WANG","WANT","WARD","WARM","WARN","WART","WASH","WAST","WATS","WATT","WAVE","WAVY","WAYS","WEAK","WEAL","WEAN","WEAR","WEED","WEEK","WEIR","WELD","WELL","WELT","WENT","WERE","WERT","WEST","WHAM","WHAT","WHEE","WHEN","WHET","WHOA","WHOM","WICK","WIFE","WILD","WILL","WIND","WINE","WING","WINK","WINO","WIRE","WISE","WISH","WITH","WOLF","WONT","WOOD","WOOL","WORD","WORE","WORK","WORM","WORN","WOVE","WRIT","WYNN","YALE","YANG","YANK","YARD","YARN","YAWL","YAWN","YEAH","YEAR","YELL","YOGA","YOKE"]')},8437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deriveXAddress=t.deriveAddress=t.deriveKeypair=void 0;const r=n(6333),i=n(5442);Object.defineProperty(t,"deriveKeypair",{enumerable:!0,get:function(){return i.deriveKeypair}}),Object.defineProperty(t,"deriveAddress",{enumerable:!0,get:function(){return i.deriveAddress}}),t.deriveXAddress=function(e){const t=(0,i.deriveAddress)(e.publicKey);return(0,r.classicAddressToXAddress)(t,e.tag,e.test)}},8444:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AccountRootFlags=void 0,function(e){e[e.lsfPasswordSpent=65536]="lsfPasswordSpent",e[e.lsfRequireDestTag=131072]="lsfRequireDestTag",e[e.lsfRequireAuth=262144]="lsfRequireAuth",e[e.lsfDisallowXRP=524288]="lsfDisallowXRP",e[e.lsfDisableMaster=1048576]="lsfDisableMaster",e[e.lsfNoFreeze=2097152]="lsfNoFreeze",e[e.lsfGlobalFreeze=4194304]="lsfGlobalFreeze",e[e.lsfDefaultRipple=8388608]="lsfDefaultRipple",e[e.lsfDepositAuth=16777216]="lsfDepositAuth",e[e.lsfAMM=33554432]="lsfAMM",e[e.lsfDisallowIncomingNFTokenOffer=67108864]="lsfDisallowIncomingNFTokenOffer",e[e.lsfDisallowIncomingCheck=134217728]="lsfDisallowIncomingCheck",e[e.lsfDisallowIncomingPayChan=268435456]="lsfDisallowIncomingPayChan",e[e.lsfDisallowIncomingTrustline=536870912]="lsfDisallowIncomingTrustline",e[e.lsfAllowTrustLineClawback=2147483648]="lsfAllowTrustLineClawback"}(n||(t.AccountRootFlags=n={}))},8516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hash_to_ristretto255=t.hashToRistretto255=t.RistrettoPoint=t.encodeToCurve=t.hashToCurve=t.edwardsToMontgomery=t.x25519=t.ed25519ph=t.ed25519ctx=t.ed25519=t.ED25519_TORSION_SUBGROUP=void 0,t.edwardsToMontgomeryPub=O,t.edwardsToMontgomeryPriv=function(e){const t=v.hash(e.subarray(0,32));return v.adjustScalarBytes(t).subarray(0,32)};const r=n(714),i=n(9987),o=n(4107),s=n(5812),a=n(1056),c=n(802),l=n(7765),u=n(3449),d=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),f=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),h=BigInt(0),g=BigInt(1),p=BigInt(2),y=BigInt(3),m=BigInt(5),A=BigInt(8);function E(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),i=BigInt(80),o=d,s=e*e%o*e%o,a=(0,c.pow2)(s,p,o)*s%o,l=(0,c.pow2)(a,g,o)*e%o,u=(0,c.pow2)(l,m,o)*l%o,f=(0,c.pow2)(u,t,o)*u%o,h=(0,c.pow2)(f,n,o)*f%o,y=(0,c.pow2)(h,r,o)*h%o,A=(0,c.pow2)(y,i,o)*y%o,E=(0,c.pow2)(A,i,o)*y%o,b=(0,c.pow2)(E,t,o)*u%o;return{pow_p_5_8:(0,c.pow2)(b,p,o)*e%o,b2:s}}function b(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function w(e,t){const n=d,r=(0,c.mod)(t*t*t,n),i=E(e*(0,c.mod)(r*r*t,n)).pow_p_5_8;let o=(0,c.mod)(e*r*i,n);const s=(0,c.mod)(t*o*o,n),a=o,l=(0,c.mod)(o*f,n),u=s===e,h=s===(0,c.mod)(-e,n),g=s===(0,c.mod)(-e*f,n);return u&&(o=a),(h||g)&&(o=l),(0,c.isNegativeLE)(o,n)&&(o=(0,c.mod)(-o,n)),{isValid:u||h,value:o}}t.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];const S=(()=>(0,c.Field)(d,void 0,!0))(),v=(()=>({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:S,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:A,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:r.sha512,randomBytes:i.randomBytes,adjustScalarBytes:b,uvRatio:w}))();function T(e,t,n){if(t.length>255)throw new Error("Context is too big");return(0,i.concatBytes)((0,i.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([n?1:0,t.length]),t,e)}function O(e){const{y:n}=t.ed25519.ExtendedPoint.fromHex(e),r=BigInt(1);return S.toBytes(S.create((r+n)*S.inv(r-n)))}t.ed25519=(0,s.twistedEdwards)(v),t.ed25519ctx=(0,s.twistedEdwards)({...v,domain:T}),t.ed25519ph=(0,s.twistedEdwards)(Object.assign({},v,{domain:T,prehash:r.sha512})),t.x25519=(0,l.montgomery)({P:d,a:BigInt(486662),montgomeryBits:255,nByteLength:32,Gu:BigInt(9),powPminus2:e=>{const t=d,{pow_p_5_8:n,b2:r}=E(e);return(0,c.mod)((0,c.pow2)(n,y,t)*r,t)},adjustScalarBytes:b,randomBytes:i.randomBytes}),t.edwardsToMontgomery=O;const I=(()=>(S.ORDER+y)/A)(),_=(()=>S.pow(p,I))(),L=(()=>S.sqrt(S.neg(S.ONE)))(),C=(()=>(0,c.FpSqrtEven)(S,S.neg(BigInt(486664))))();const N=(()=>(0,a.createHasher)(t.ed25519.ExtendedPoint,(e=>function(e){const{xMn:t,xMd:n,yMn:r,yMd:i}=function(e){const t=(S.ORDER-m)/A,n=BigInt(486662);let r=S.sqr(e);r=S.mul(r,p);let i=S.add(r,S.ONE),o=S.neg(n),s=S.sqr(i),a=S.mul(s,i),c=S.mul(r,n);c=S.mul(c,o),c=S.add(c,s),c=S.mul(c,o);let l=S.sqr(a);s=S.sqr(l),l=S.mul(l,a),l=S.mul(l,c),s=S.mul(s,l);let u=S.pow(s,t);u=S.mul(u,l);let d=S.mul(u,L);s=S.sqr(u),s=S.mul(s,a);let f=S.eql(s,c),h=S.cmov(d,u,f),y=S.mul(o,r),E=S.mul(u,e);E=S.mul(E,_);let b=S.mul(E,L),w=S.mul(c,r);s=S.sqr(E),s=S.mul(s,a);let v=S.eql(s,w),T=S.cmov(b,E,v);s=S.sqr(h),s=S.mul(s,a);let O=S.eql(s,c),I=S.cmov(y,o,O),C=S.cmov(T,h,O),N=S.isOdd(C);return C=S.cmov(C,S.neg(C),O!==N),{xMn:I,xMd:i,yMn:C,yMd:g}}(e);let o=S.mul(t,i);o=S.mul(o,C);let s=S.mul(n,r),a=S.sub(t,n),c=S.add(t,n),l=S.mul(s,c),u=S.eql(l,S.ZERO);o=S.cmov(o,S.ZERO,u),s=S.cmov(s,S.ONE,u),a=S.cmov(a,S.ONE,u),c=S.cmov(c,S.ONE,u);const d=S.invertBatch([s,c]);return{x:S.mul(o,d[0]),y:S.mul(a,d[1])}}(e[0])),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:S.ORDER,m:1,k:128,expand:"xmd",hash:r.sha512}))();function B(e){if(!(e instanceof k))throw new Error("RistrettoPoint expected")}t.hashToCurve=N.hashToCurve,t.encodeToCurve=N.encodeToCurve;const F=f,D=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),M=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),P=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),x=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),R=e=>w(g,e),H=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),U=e=>t.ed25519.CURVE.Fp.create((0,u.bytesToNumberLE)(e)&H);function V(e){const{d:n}=t.ed25519.CURVE,r=t.ed25519.CURVE.Fp.ORDER,i=t.ed25519.CURVE.Fp.create,o=i(F*e*e),s=i((o+g)*P);let a=BigInt(-1);const l=i((a-n*o)*i(o+n));let{isValid:u,value:d}=w(s,l),f=i(d*e);(0,c.isNegativeLE)(f,r)||(f=i(-f)),u||(d=f),u||(a=o);const h=i(a*(o-g)*x-l),p=d*d,y=i((d+d)*l),m=i(h*D),A=i(g-p),E=i(g+p);return new t.ed25519.ExtendedPoint(i(y*E),i(A*m),i(m*E),i(y*A))}class k{constructor(e){this.ep=e}static fromAffine(e){return new k(t.ed25519.ExtendedPoint.fromAffine(e))}static hashToCurve(e){e=(0,u.ensureBytes)("ristrettoHash",e,64);const t=V(U(e.slice(0,32))),n=V(U(e.slice(32,64)));return new k(t.add(n))}static fromHex(e){e=(0,u.ensureBytes)("ristrettoHex",e,32);const{a:n,d:r}=t.ed25519.CURVE,i=t.ed25519.CURVE.Fp.ORDER,o=t.ed25519.CURVE.Fp.create,s="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",a=U(e);if(!(0,u.equalBytes)((0,u.numberToBytesLE)(a,32),e)||(0,c.isNegativeLE)(a,i))throw new Error(s);const l=o(a*a),d=o(g+n*l),f=o(g-n*l),p=o(d*d),y=o(f*f),m=o(n*r*p-y),{isValid:A,value:E}=R(o(m*y)),b=o(E*f),w=o(E*b*m);let S=o((a+a)*b);(0,c.isNegativeLE)(S,i)&&(S=o(-S));const v=o(d*w),T=o(S*v);if(!A||(0,c.isNegativeLE)(T,i)||v===h)throw new Error(s);return new k(new t.ed25519.ExtendedPoint(S,v,g,T))}static msm(e,n){const r=(0,c.Field)(t.ed25519.CURVE.n,t.ed25519.CURVE.nBitLength);return(0,o.pippenger)(k,r,e,n)}toRawBytes(){let{ex:e,ey:n,ez:r,et:i}=this.ep;const o=t.ed25519.CURVE.Fp.ORDER,s=t.ed25519.CURVE.Fp.create,a=s(s(r+n)*s(r-n)),l=s(e*n),d=s(l*l),{value:f}=R(s(a*d)),h=s(f*a),g=s(f*l),p=s(h*g*i);let y;if((0,c.isNegativeLE)(i*p,o)){let t=s(n*F),r=s(e*F);e=t,n=r,y=s(h*M)}else y=g;(0,c.isNegativeLE)(e*p,o)&&(n=s(-n));let m=s((r-n)*y);return(0,c.isNegativeLE)(m,o)&&(m=s(-m)),(0,u.numberToBytesLE)(m,32)}toHex(){return(0,u.bytesToHex)(this.toRawBytes())}toString(){return this.toHex()}equals(e){B(e);const{ex:n,ey:r}=this.ep,{ex:i,ey:o}=e.ep,s=t.ed25519.CURVE.Fp.create,a=s(n*o)===s(r*i),c=s(r*o)===s(n*i);return a||c}add(e){return B(e),new k(this.ep.add(e.ep))}subtract(e){return B(e),new k(this.ep.subtract(e.ep))}multiply(e){return new k(this.ep.multiply(e))}multiplyUnsafe(e){return new k(this.ep.multiplyUnsafe(e))}double(){return new k(this.ep.double())}negate(){return new k(this.ep.negate())}}t.RistrettoPoint=(k.BASE||(k.BASE=new k(t.ed25519.ExtendedPoint.BASE)),k.ZERO||(k.ZERO=new k(t.ed25519.ExtendedPoint.ZERO)),k),t.hashToRistretto255=(e,t)=>{const n=t.DST,o="string"==typeof n?(0,i.utf8ToBytes)(n):n,s=(0,a.expand_message_xmd)(e,o,64,r.sha512);return k.hashToCurve(s)},t.hash_to_ristretto255=t.hashToRistretto255},8538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const r=n(1726),i=n(4211),o=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),s=new Uint8Array(new Array(16).fill(0).map(((e,t)=>t)));let a=[s],c=[s.map((e=>(9*e+5)%16))];for(let e=0;e<4;e++)for(let t of[a,c])t.push(t[e].map((e=>o[e])));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>new Uint8Array(e))),u=a.map(((e,t)=>e.map((e=>l[t][e])))),d=c.map(((e,t)=>e.map((e=>l[t][e])))),f=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),h=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]);function g(e,t,n,r){return 0===e?t^n^r:1===e?t&n|~t&r:2===e?(t|~n)^r:3===e?t&r|n&~r:t^(n|~r)}const p=new Uint32Array(16);class y extends r.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:n,h3:r,h4:i}=this;return[e,t,n,r,i]}set(e,t,n,r,i){this.h0=0|e,this.h1=0|t,this.h2=0|n,this.h3=0|r,this.h4=0|i}process(e,t){for(let n=0;n<16;n++,t+=4)p[n]=e.getUint32(t,!0);let n=0|this.h0,r=n,o=0|this.h1,s=o,l=0|this.h2,y=l,m=0|this.h3,A=m,E=0|this.h4,b=E;for(let e=0;e<5;e++){const t=4-e,w=f[e],S=h[e],v=a[e],T=c[e],O=u[e],I=d[e];for(let t=0;t<16;t++){const r=(0,i.rotl)(n+g(e,o,l,m)+p[v[t]]+w,O[t])+E|0;n=E,E=m,m=0|(0,i.rotl)(l,10),l=o,o=r}for(let e=0;e<16;e++){const n=(0,i.rotl)(r+g(t,s,y,A)+p[T[e]]+S,I[e])+b|0;r=b,b=A,A=0|(0,i.rotl)(y,10),y=s,s=n}}this.set(this.h1+l+A|0,this.h2+m+b|0,this.h3+E+r|0,this.h4+n+s|0,this.h0+o+y|0)}roundClean(){p.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=y,t.ripemd160=(0,i.wrapConstructor)((()=>new y))},8571:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAccountDelete=void 0;const r=n(2794);t.validateAccountDelete=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"Destination",r.isAccount),(0,r.validateOptionalField)(e,"DestinationTag",r.isNumber),(0,r.validateCredentialsList)(e.CredentialIDs,e.TransactionType,!0,r.MAX_AUTHORIZED_CREDENTIALS)}},8718:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateNFTokenMint=t.NFTokenMintFlags=void 0;const r=n(255),i=n(99),o=n(2794);var s;!function(e){e[e.tfBurnable=1]="tfBurnable",e[e.tfOnlyXRP=2]="tfOnlyXRP",e[e.tfTrustLine=4]="tfTrustLine",e[e.tfTransferable=8]="tfTransferable",e[e.tfMutable=16]="tfMutable"}(s||(t.NFTokenMintFlags=s={})),t.validateNFTokenMint=function(e){if((0,o.validateBaseTransaction)(e),e.Account===e.Issuer)throw new r.ValidationError("NFTokenMint: Issuer must not be equal to Account");if((0,o.validateOptionalField)(e,"Issuer",o.isAccount),"string"==typeof e.URI&&""===e.URI)throw new r.ValidationError("NFTokenMint: URI must not be empty string");if("string"==typeof e.URI&&!(0,i.isHex)(e.URI))throw new r.ValidationError("NFTokenMint: URI must be in hex format");if(null==e.NFTokenTaxon)throw new r.ValidationError("NFTokenMint: missing field NFTokenTaxon");if(null==e.Amount&&(null!=e.Expiration||null!=e.Destination))throw new r.ValidationError("NFTokenMint: Amount is required when Expiration or Destination is present");(0,o.validateOptionalField)(e,"Amount",o.isAmount),(0,o.validateOptionalField)(e,"Expiration",o.isNumber),(0,o.validateOptionalField)(e,"Destination",o.isAccount)}},8741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STNumber=void 0;const r=n(1275),i=n(5517),o=BigInt("1000000000000000"),s=BigInt("9999999999999999"),a=-2147483648;class c extends r.SerializedType{constructor(e){const t=null!=e?e:c.defaultBytes;if(!(t instanceof Uint8Array)||12!==t.length)throw new Error(`STNumber must be constructed from a 12-byte Uint8Array, got ${null==t?void 0:t.length}`);super(t)}static from(e){if(e instanceof c)return e;if("string"==typeof e)return c.fromValue(e);throw new Error("STNumber.from: Only string or STNumber instance is supported")}static fromValue(e){const{mantissa:t,exponent:n,isNegative:r}=function(e){const t=/^([-+]?)([0-9]+)(?:\.([0-9]+))?(?:[eE]([+-]?[0-9]+))?$/.exec(e);if(!t)throw new Error(`Unable to parse number from string: ${e}`);const[,n,r,i,o]=t;let s=r.replace(/^0+(?=\d)/,"")||"0",a=0;i&&(s+=i,a-=i.length),o&&(a+=parseInt(o,10));let c=BigInt(s);return"-"===n&&(c=-c),{mantissa:c,exponent:a,isNegative:c<BigInt(0)}}(e);let l,u;t!==BigInt(0)||0!==n||r?({mantissa:l,exponent:u}=function(e,t){let n=e<BigInt(0)?-e:e;const r=e<BigInt(0);for(;n!==BigInt(0)&&n<o&&t>-32768;)t-=1,n*=BigInt(10);for(;n>s;){if(t>=32768)throw new Error("Mantissa and exponent are too large");t+=1,n/=BigInt(10)}return r&&(n=-n),{mantissa:n,exponent:t}}(t,n)):(l=BigInt(0),u=a);const d=new Uint8Array(12);return(0,i.writeInt64BE)(d,l,0),(0,i.writeInt32BE)(d,u,8),new c(d)}static fromParser(e){return new c(e.read(12))}toJSON(){const e=this.bytes;if(!e||12!==e.length)throw new Error("STNumber internal bytes not set or wrong length");const t=(0,i.readInt64BE)(e,0),n=(0,i.readInt32BE)(e,8);if(t===BigInt(0)&&n===a)return"0";if(0===n)return t.toString();if(n<-25||n>-5)return`${t}e${n}`;const r=t<BigInt(0),o=(t<BigInt(0)?-t:t).toString(),s="0".repeat(27)+o+"0".repeat(23),c=n+43,l=s.slice(0,c).replace(/^0+/,"")||"0",u=s.slice(c).replace(/0+$/,"");return`${r?"-":""}${l}${u?"."+u:""}`}}t.STNumber=c,c.defaultBytes=new Uint8Array(12)},8816:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytesLookup=t.Bytes=t.FieldLookup=t.XrplDefinitionsBase=void 0;const r=n(2942);Object.defineProperty(t,"Bytes",{enumerable:!0,get:function(){return r.Bytes}}),Object.defineProperty(t,"BytesLookup",{enumerable:!0,get:function(){return r.BytesLookup}});const i=n(3733);Object.defineProperty(t,"FieldLookup",{enumerable:!0,get:function(){return i.FieldLookup}});const o=n(8188);t.XrplDefinitionsBase=class{constructor(e,t){this.type=new r.BytesLookup(e.TYPES,o.TYPE_WIDTH),this.ledgerEntryType=new r.BytesLookup(e.LEDGER_ENTRY_TYPES,o.LEDGER_ENTRY_WIDTH),this.transactionType=new r.BytesLookup(e.TRANSACTION_TYPES,o.TRANSACTION_TYPE_WIDTH),this.transactionResult=new r.BytesLookup(e.TRANSACTION_RESULTS,o.TRANSACTION_RESULT_WIDTH),this.field=new i.FieldLookup(e.FIELDS,e.TYPES),this.transactionNames=Object.entries(e.TRANSACTION_TYPES).filter((([e,t])=>t>=0)).map((([e,t])=>e)),this.dataTypes={},this.associateTypes(t),this.granularPermissions={TrustlineAuthorize:65537,TrustlineFreeze:65538,TrustlineUnfreeze:65539,AccountDomainSet:65540,AccountEmailHashSet:65541,AccountMessageKeySet:65542,AccountTransferRateSet:65543,AccountTickSizeSet:65544,PaymentMint:65545,PaymentBurn:65546,MPTokenIssuanceLock:65547,MPTokenIssuanceUnlock:65548};const n=Object.fromEntries(Object.entries(e.TRANSACTION_TYPES).map((([e,t])=>[e,t+1]))),s=Object.assign(Object.assign({},this.granularPermissions),n);this.delegatablePermissions=new r.BytesLookup(s,o.DELEGATABLE_PERMISSIONS_WIDTH)}associateTypes(e){this.dataTypes=Object.assign({},this.dataTypes,e),Object.values(this.field).forEach((e=>{e.associatedType=this.dataTypes[e.type.name]})),this.field.TransactionType.associatedType=this.transactionType,this.field.TransactionResult.associatedType=this.transactionResult,this.field.LedgerEntryType.associatedType=this.ledgerEntryType,this.field.PermissionValue&&(this.field.PermissionValue.associatedType=this.delegatablePermissions)}getAssociatedTypes(){return this.dataTypes}}},8823:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignerListFlags=t.RippleStateFlags=t.OfferFlags=t.NEGATIVE_UNL_ID=t.FEE_SETTINGS_ID=t.AMENDMENTS_ID=t.AccountRootFlags=void 0;const r=n(8444);Object.defineProperty(t,"AccountRootFlags",{enumerable:!0,get:function(){return r.AccountRootFlags}});const i=n(7899);Object.defineProperty(t,"AMENDMENTS_ID",{enumerable:!0,get:function(){return i.AMENDMENTS_ID}});const o=n(7074);Object.defineProperty(t,"FEE_SETTINGS_ID",{enumerable:!0,get:function(){return o.FEE_SETTINGS_ID}});const s=n(5407);Object.defineProperty(t,"NEGATIVE_UNL_ID",{enumerable:!0,get:function(){return s.NEGATIVE_UNL_ID}});const a=n(5237);Object.defineProperty(t,"OfferFlags",{enumerable:!0,get:function(){return a.OfferFlags}});const c=n(8864);Object.defineProperty(t,"RippleStateFlags",{enumerable:!0,get:function(){return c.RippleStateFlags}});const l=n(1781);Object.defineProperty(t,"SignerListFlags",{enumerable:!0,get:function(){return l.SignerListFlags}})},8847:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STObject=void 0;const r=n(1141),i=n(1275),o=n(6333),s=n(892),a=n(7995),c=n(8239),l=n(5463),u=Uint8Array.from([225]),d="ObjectEndMarker",f="STObject",h="SourceTag",g="DestinationTag";class p extends i.SerializedType{static fromParser(e){const t=new a.BytesList,n=new a.BinarySerializer(t);for(;!e.end();){const t=e.readField();if(t.name===d)break;const r=e.readFieldValue(t);n.writeFieldAndValue(t,r),t.type.name===f&&n.put(u)}return new p(t.toBytes())}static from(e,t,n=r.DEFAULT_DEFINITIONS){if(e instanceof p)return e;const i=new a.BytesList,s=new a.BinarySerializer(i);let d=!1;const y=Object.entries(e).reduce(((t,[n,r])=>{let i;return r&&(0,o.isValidXAddress)(r.toString())&&(i=function(e,t){const n=(0,o.xAddressToClassicAddress)(t);let r;if("Destination"===e)r=g;else if("Account"===e)r=h;else if(!1!==n.tag)throw new Error(`${e} cannot have an associated tag`);return!1!==n.tag?{[e]:n.classicAddress,[r]:n.tag}:{[e]:n.classicAddress}}(n,r.toString()),function(e,t){if(void 0!==e[h]&&void 0!==t[h])throw new Error("Cannot have Account X-Address and SourceTag");if(void 0!==e[g]&&void 0!==t[g])throw new Error("Cannot have Destination X-Address and DestinationTag")}(i,e)),Object.assign(t,null!=i?i:{[n]:r})}),{});let m=Object.keys(y).map((e=>{if(!(e in n.field)){if(e[0]===e[0].toLowerCase())return;throw new Error(`Field ${e} is not defined in the definitions`)}return n.field[e]})).filter((function(e){return void 0!==e&&void 0!==y[e.name]&&e.isSerialized})).sort(((e,t)=>e.ordinal-t.ordinal));return void 0!==t&&(m=m.filter(t)),m.forEach((e=>{var t;const r=e.type.name===f?this.from(y[e.name],void 0,n):"STArray"===e.type.name?c.STArray.from(y[e.name],n):"UInt64"===e.type.name?l.UInt64.from(y[e.name],e.name):(null===(t=e.associatedType)||void 0===t?void 0:t.from)?e.associatedType.from(y[e.name]):(()=>{throw new Error(`Type ${e.type.name} for field ${e.name} is missing associatedType.from`)})();if(null==r)throw new TypeError(`Unable to interpret "${e.name}: ${y[e.name]}".`);"UNLModify"===r.name&&(d=!0);const i="Account"==e.name&&d;s.writeFieldAndValue(e,r,i),e.type.name===f&&s.put(u)})),new p(i.toBytes())}toJSON(e){const t=new s.BinaryParser(this.toString(),e),n={};for(;!t.end();){const r=t.readField();if(r.name===d)break;n[r.name]=t.readFieldValue(r).toJSON(e,r.name)}return n}}t.STObject=p},8864:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RippleStateFlags=void 0,function(e){e[e.lsfLowReserve=65536]="lsfLowReserve",e[e.lsfHighReserve=131072]="lsfHighReserve",e[e.lsfLowAuth=262144]="lsfLowAuth",e[e.lsfHighAuth=524288]="lsfHighAuth",e[e.lsfLowNoRipple=1048576]="lsfLowNoRipple",e[e.lsfHighNoRipple=2097152]="lsfHighNoRipple",e[e.lsfLowFreeze=4194304]="lsfLowFreeze",e[e.lsfHighFreeze=8388608]="lsfHighFreeze",e[e.lsfAMMNode=16777216]="lsfAMMNode",e[e.lsfLowDeepFreeze=33554432]="lsfLowDeepFreeze",e[e.lsfHighDeepFreeze=67108864]="lsfHighDeepFreeze"}(n||(t.RippleStateFlags=n={}))},8932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8957:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.accountPublicFromPublicGenerator=t.derivePrivateKey=void 0;const i=n(9005),o=r(n(4876)),s=BigInt(0);function a(e,t){const n=i.secp256k1.CURVE.n;for(let r=0;r<=4294967295;r++){const i=(new o.default).add(e);void 0!==t&&i.addU32(t),i.addU32(r);const a=i.first256BigInt();if(a>s&&a<n)return a}throw new Error("impossible unicorn ;)")}t.derivePrivateKey=function(e,t={}){const n=t.validator,r=i.secp256k1.CURVE.n,o=a(e);return n?o:(a(i.secp256k1.ProjectivePoint.BASE.multiply(o).toRawBytes(!0),t.accountIndex||0)+o)%r},t.accountPublicFromPublicGenerator=function(e){const t=i.secp256k1.ProjectivePoint.fromHex(e),n=a(e,0),r=i.secp256k1.ProjectivePoint.BASE.multiply(n);return t.add(r).toRawBytes(!0)}},9005:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const r=n(3947),i=n(9987),o=n(6657),s=n(1056),a=n(802),c=n(3449),l=n(4296),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),f=BigInt(1),h=BigInt(2),g=(e,t)=>(e+t/h)/t;function p(e){const t=u,n=BigInt(3),r=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),c=BigInt(44),l=BigInt(88),d=e*e*e%t,f=d*d*e%t,g=(0,a.pow2)(f,n,t)*f%t,p=(0,a.pow2)(g,n,t)*f%t,m=(0,a.pow2)(p,h,t)*d%t,A=(0,a.pow2)(m,i,t)*m%t,E=(0,a.pow2)(A,o,t)*A%t,b=(0,a.pow2)(E,c,t)*E%t,w=(0,a.pow2)(b,l,t)*b%t,S=(0,a.pow2)(w,c,t)*E%t,v=(0,a.pow2)(S,n,t)*f%t,T=(0,a.pow2)(v,s,t)*A%t,O=(0,a.pow2)(T,r,t)*d%t,I=(0,a.pow2)(O,h,t);if(!y.eql(y.sqr(I),e))throw new Error("Cannot find square root");return I}const y=(0,a.Field)(u,void 0,void 0,{sqrt:p});t.secp256k1=(0,o.createCurve)({a:BigInt(0),b:BigInt(7),Fp:y,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=d,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-f*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=n,s=BigInt("0x100000000000000000000000000000000"),c=g(o*e,t),l=g(-r*e,t);let u=(0,a.mod)(e-c*n-l*i,t),h=(0,a.mod)(-c*r-l*o,t);const p=u>s,y=h>s;if(p&&(u=t-u),y&&(h=t-h),u>s||h>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:p,k1:u,k2neg:y,k2:h}}}},r.sha256);const m=BigInt(0),A={};function E(e,...t){let n=A[e];if(void 0===n){const t=(0,r.sha256)(Uint8Array.from(e,(e=>e.charCodeAt(0))));n=(0,c.concatBytes)(t,t),A[e]=n}return(0,r.sha256)((0,c.concatBytes)(n,...t))}const b=e=>e.toRawBytes(!0).slice(1),w=e=>(0,c.numberToBytesBE)(e,32),S=e=>(0,a.mod)(e,u),v=e=>(0,a.mod)(e,d),T=t.secp256k1.ProjectivePoint;function O(e){let n=t.secp256k1.utils.normPrivateKeyToScalar(e),r=T.fromPrivateKey(n);return{scalar:r.hasEvenY()?n:v(-n),bytes:b(r)}}function I(e){(0,c.aInRange)("x",e,f,u);const t=S(e*e);let n=p(S(t*e+BigInt(7)));n%h!==m&&(n=S(-n));const r=new T(e,n,f);return r.assertValidity(),r}const _=c.bytesToNumberBE;function L(...e){return v(_(E("BIP0340/challenge",...e)))}function C(e,t,n){const r=(0,c.ensureBytes)("signature",e,64),i=(0,c.ensureBytes)("message",t),o=(0,c.ensureBytes)("publicKey",n,32);try{const e=I(_(o)),t=_(r.subarray(0,32));if(!(0,c.inRange)(t,f,u))return!1;const n=_(r.subarray(32,64));if(!(0,c.inRange)(n,f,d))return!1;const h=L(w(t),b(e),i),g=(s=e,a=n,l=v(-h),T.BASE.multiplyAndAddUnsafe(s,a,l));return!(!g||!g.hasEvenY()||g.toAffine().x!==t)}catch(e){return!1}var s,a,l}t.schnorr={getPublicKey:function(e){return O(e).bytes},sign:function(e,t,n=(0,i.randomBytes)(32)){const r=(0,c.ensureBytes)("message",e),{bytes:o,scalar:s}=O(t),a=(0,c.ensureBytes)("auxRand",n,32),l=w(s^_(E("BIP0340/aux",a))),u=E("BIP0340/nonce",l,o,r),d=v(_(u));if(d===m)throw new Error("sign failed: k is zero");const{bytes:f,scalar:h}=O(d),g=L(f,o,r),p=new Uint8Array(64);if(p.set(f,0),p.set(w(v(h+g*s)),32),!C(p,r,o))throw new Error("sign: Invalid signature produced");return p},verify:C,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:I,pointToBytes:b,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:E,mod:a.mod}};const N=(()=>(0,s.isogenyMap)(y,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),B=(()=>(0,l.mapToCurveSimpleSWU)(y,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:y.create(BigInt("-11"))}))(),F=(()=>(0,s.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:n}=B(y.create(e[0]));return N(t,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:y.ORDER,m:1,k:128,expand:"xmd",hash:r.sha256}))();t.hashToCurve=F.hashToCurve,t.encodeToCurve=F.encodeToCurve},9043:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateVaultClawback=void 0;const r=n(2794);t.validateVaultClawback=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"VaultID",r.isString),(0,r.validateRequiredField)(e,"Holder",r.isAccount),(0,r.validateOptionalField)(e,"Amount",r.isClawbackAmount)}},9333:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.omitBy=t.groupBy=void 0,t.groupBy=function(e,t){return e.reduce((function(e,n,r,i){const o=t(n,r,i)||0,s=e[o]||[];return s.push(n),e[o]=s,e}),{})},t.omitBy=function(e,t){return Object.keys(e).filter((n=>!t(e[n],n))).reduce(((t,n)=>(t[n]=e[n],t)),{})}},9349:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateOfferCreate=t.OfferCreateFlags=void 0;const r=n(255),i=n(2794);var o;!function(e){e[e.tfPassive=65536]="tfPassive",e[e.tfImmediateOrCancel=131072]="tfImmediateOrCancel",e[e.tfFillOrKill=262144]="tfFillOrKill",e[e.tfSell=524288]="tfSell"}(o||(t.OfferCreateFlags=o={})),t.validateOfferCreate=function(e){if((0,i.validateBaseTransaction)(e),void 0===e.TakerGets)throw new r.ValidationError("OfferCreate: missing field TakerGets");if(void 0===e.TakerPays)throw new r.ValidationError("OfferCreate: missing field TakerPays");if("string"!=typeof e.TakerGets&&!(0,i.isAmount)(e.TakerGets))throw new r.ValidationError("OfferCreate: invalid TakerGets");if("string"!=typeof e.TakerPays&&!(0,i.isAmount)(e.TakerPays))throw new r.ValidationError("OfferCreate: invalid TakerPays");if(void 0!==e.Expiration&&"number"!=typeof e.Expiration)throw new r.ValidationError("OfferCreate: invalid Expiration");if(void 0!==e.OfferSequence&&"number"!=typeof e.OfferSequence)throw new r.ValidationError("OfferCreate: invalid OfferSequence")}},9373:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.TRANSACTION_ID=1415073280]="TRANSACTION_ID",e[e.TRANSACTION_NODE=1397638144]="TRANSACTION_NODE",e[e.INNER_NODE=1296649728]="INNER_NODE",e[e.LEAF_NODE=1296846336]="LEAF_NODE",e[e.TRANSACTION_SIGN=1398036480]="TRANSACTION_SIGN",e[e.TRANSACTION_SIGN_TESTNET=1937012736]="TRANSACTION_SIGN_TESTNET",e[e.TRANSACTION_MULTISIGN=1397576704]="TRANSACTION_MULTISIGN",e[e.LEDGER=1280791040]="LEDGER"}(n||(n={})),t.default=n},9492:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Amount=void 0;const i=n(892),o=n(5763),s=n(5967),a=n(1275),c=r(n(735)),l=n(619),u=n(5517),d=n(6905),f=new c.default("1e17"),h=new c.default("1e-6"),g=BigInt(4294967295),p=BigInt(0x8000000000000000);c.default.config({EXPONENTIAL_AT:[-112,96]});class y extends a.SerializedType{constructor(e){super(null!=e?e:y.defaultAmount.bytes)}static from(e){if(e instanceof y)return e;let t=new Uint8Array(8);if("string"==typeof e){y.assertXrpIsValid(e);const n=BigInt(e),r=[new Uint8Array(4),new Uint8Array(4)];return(0,u.writeUInt32BE)(r[0],Number(n>>BigInt(32)),0),(0,u.writeUInt32BE)(r[1],Number(n&BigInt(g)),0),t=(0,l.concat)(r),t[0]|=64,new y(t)}if(function(e){const t=Object.keys(e).sort();return 3===t.length&&"currency"===t[0]&&"issuer"===t[1]&&"value"===t[2]}(e)){const n=new c.default(e.value);if(y.assertIouIsValid(n),n.isZero())t[0]|=128;else{const e=n.times("1e"+-((n.e||0)-15)).abs().toString(),r=BigInt(e),i=[new Uint8Array(4),new Uint8Array(4)];(0,u.writeUInt32BE)(i[0],Number(r>>BigInt(32)),0),(0,u.writeUInt32BE)(i[1],Number(r&BigInt(g)),0),t=(0,l.concat)(i),t[0]|=128,n.gt(new c.default(0))&&(t[0]|=64);const o=(n.e||0)-15+97;t[0]|=o>>>2,t[1]|=(3&o)<<6}const r=s.Currency.from(e.currency).toBytes(),i=o.AccountID.from(e.issuer).toBytes();return new y((0,l.concat)([t,r,i]))}if(function(e){const t=Object.keys(e).sort();return 2===t.length&&"mpt_issuance_id"===t[0]&&"value"===t[1]}(e)){y.assertMptIsValid(e.value);let n=new Uint8Array(1);n[0]|=96;const r=BigInt(e.value),i=[new Uint8Array(4),new Uint8Array(4)];(0,u.writeUInt32BE)(i[0],Number(r>>BigInt(32)),0),(0,u.writeUInt32BE)(i[1],Number(r&BigInt(g)),0),t=(0,l.concat)(i);const o=d.Hash192.from(e.mpt_issuance_id).toBytes();return new y((0,l.concat)([n,t,o]))}throw new Error("Invalid type to construct an Amount")}static fromParser(e){if(128&e.peek())return new y(e.read(48));const t=32&e.peek()?33:8;return new y(e.read(t))}toJSON(){if(this.isNative()){const e=this.bytes,t=64&e[0]?"":"-";e[0]&=63;const n=BigInt((0,u.readUInt32BE)(e.slice(0,4),0)),r=BigInt((0,u.readUInt32BE)(e.slice(4),0));return`${t}${(n<<BigInt(32)|r).toString()}`}if(this.isIOU()){const e=new i.BinaryParser(this.toString()),t=e.read(8),n=s.Currency.fromParser(e),r=o.AccountID.fromParser(e),a=t[0],u=64&a?"":"-",d=((63&a)<<2)+((255&t[1])>>6)-97;t[0]=0,t[1]&=63;const f=new c.default(`${u}0x${(0,l.bytesToHex)(t)}`).times(`1e${d}`);return y.assertIouIsValid(f),{value:f.toString(),currency:n.toJSON(),issuer:r.toJSON()}}if(this.isMPT()){const e=new i.BinaryParser(this.toString()),t=e.read(1),n=e.read(8),r=d.Hash192.fromParser(e),o=64&t[0]?"":"-",s=BigInt((0,u.readUInt32BE)(n.slice(0,4),0)),a=BigInt((0,u.readUInt32BE)(n.slice(4),0));return{value:`${o}${(s<<BigInt(32)|a).toString()}`,mpt_issuance_id:r.toString()}}throw new Error("Invalid amount to construct JSON")}static assertXrpIsValid(e){if(-1!==e.indexOf("."))throw new Error(`${e.toString()} is an illegal amount`);const t=new c.default(e);if(!t.isZero()&&(t.lt(h)||t.gt(f)))throw new Error(`${e.toString()} is an illegal amount`)}static assertIouIsValid(e){if(!e.isZero()){const t=e.precision(),n=(e.e||0)-15;if(t>16||n>80||n<-96)throw new Error("Decimal precision out of range");this.verifyNoDecimal(e)}}static assertMptIsValid(e){if(-1!==e.indexOf("."))throw new Error(`${e.toString()} is an illegal amount`);const t=new c.default(e);if(!t.isZero()){if(t<(0,c.default)(0))throw new Error(`${e.toString()} is an illegal amount`);if(0!=Number(BigInt(e)&BigInt(p)))throw new Error(`${e.toString()} is an illegal amount`)}}static verifyNoDecimal(e){if(-1!==e.times("1e"+-((e.e||0)-15)).abs().toString().indexOf("."))throw new Error("Decimal place found in integerNumberString")}isNative(){return!(128&this.bytes[0]||32&this.bytes[0])}isMPT(){return!(128&this.bytes[0]||!(32&this.bytes[0]))}isIOU(){return!!(128&this.bytes[0])}}t.Amount=y,y.defaultAmount=new y((0,l.hexToBytes)("4000000000000000"))},9543:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.signingBatchData=t.transactionID=t.sha512Half=t.binaryToJSON=t.signingClaimData=t.signingData=t.multiSigningData=t.readJSON=t.serializeObject=t.makeParser=t.BytesList=t.BinarySerializer=t.BinaryParser=void 0;const r=n(619),i=n(6986),o=n(892);Object.defineProperty(t,"BinaryParser",{enumerable:!0,get:function(){return o.BinaryParser}});const s=n(7375),a=n(7995);Object.defineProperty(t,"BinarySerializer",{enumerable:!0,get:function(){return a.BinarySerializer}}),Object.defineProperty(t,"BytesList",{enumerable:!0,get:function(){return a.BytesList}});const c=n(7410);Object.defineProperty(t,"sha512Half",{enumerable:!0,get:function(){return c.sha512Half}}),Object.defineProperty(t,"transactionID",{enumerable:!0,get:function(){return c.transactionID}});const l=n(1141),u=(e,t)=>new o.BinaryParser(e instanceof Uint8Array?(0,r.bytesToHex)(e):e,t);t.makeParser=u;const d=(e,t=l.DEFAULT_DEFINITIONS)=>e.readType(i.coreTypes.STObject).toJSON(t);function f(e,t={}){const{prefix:n,suffix:r,signingFieldsOnly:o=!1,definitions:s}=t,c=new a.BytesList;n&&c.put(n);const l=o?e=>e.isSigningField:void 0;return i.coreTypes.STObject.from(e,l,s).toBytesSink(c),r&&c.put(r),c.toBytes()}t.readJSON=d,t.binaryToJSON=(e,t)=>d(u(e,t),t),t.serializeObject=f,t.signingData=function(e,t=s.HashPrefix.transactionSig,n={}){return f(e,{prefix:t,signingFieldsOnly:!0,definitions:n.definitions})},t.signingClaimData=function(e){const t=BigInt(String(e.amount)),n=s.HashPrefix.paymentChannelClaim,r=i.coreTypes.Hash256.from(e.channel).toBytes(),o=i.coreTypes.UInt64.from(t).toBytes(),c=new a.BytesList;return c.put(n),c.put(r),c.put(o),c.toBytes()},t.multiSigningData=function(e,t,n={definitions:l.DEFAULT_DEFINITIONS}){return f(e,{prefix:s.HashPrefix.transactionMultiSig,suffix:i.coreTypes.AccountID.from(t).toBytes(),signingFieldsOnly:!0,definitions:n.definitions})},t.signingBatchData=function(e){if(null==e.flags)throw Error("No field `flags'");if(null==e.txIDs)throw Error("No field `txIDs`");const t=s.HashPrefix.batch,n=i.coreTypes.UInt32.from(e.flags).toBytes(),r=i.coreTypes.UInt32.from(e.txIDs.length).toBytes(),o=new a.BytesList;return o.put(t),o.put(n),o.put(r),e.txIDs.forEach((e=>{o.put(i.coreTypes.Hash256.from(e).toBytes())})),o.toBytes()}},9566:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(255);t.default=class{constructor(){this.nextId=0,this.promisesAwaitingResponse=new Map}addPromise(e,t){return r(this,void 0,void 0,(function*(){return new Promise(((n,r)=>{this.promisesAwaitingResponse.set(e,{resolve:n,reject:r,timer:t})}))}))}resolve(e,t){const n=this.promisesAwaitingResponse.get(e);if(null==n)throw new i.XrplError(`No existing promise with id ${e}`,{type:"resolve",response:t});clearTimeout(n.timer),n.resolve(t),this.deletePromise(e)}reject(e,t){const n=this.promisesAwaitingResponse.get(e);if(null==n)throw new i.XrplError(`No existing promise with id ${e}`,{type:"reject",error:t});clearTimeout(n.timer),n.reject(t),this.deletePromise(e)}rejectAll(e){this.promisesAwaitingResponse.forEach(((t,n,r)=>{this.reject(n,e),this.deletePromise(n)}))}createRequest(e,t){let n;null==e.id?(n=this.nextId,this.nextId+=1):n=e.id;const r=JSON.stringify(Object.assign(Object.assign({},e),{id:n})),o=setTimeout((()=>{this.reject(n,new i.TimeoutError(`Timeout for request: ${JSON.stringify(e)} with id ${n}`,e))}),t);if(o.unref&&o.unref(),this.promisesAwaitingResponse.has(n))throw clearTimeout(o),new i.XrplError(`Response with id '${n}' is already pending`,e);const s=new Promise(((e,t)=>{this.promisesAwaitingResponse.set(n,{resolve:e,reject:t,timer:o})}));return[n,r,s]}handleResponse(e){var t,n,r;if(null==e.id||"string"!=typeof e.id&&"number"!=typeof e.id)throw new i.ResponseFormatError("valid id not found in response",e);if(this.promisesAwaitingResponse.has(e.id)){if(null==e.status){const t=new i.ResponseFormatError("Response has no status");this.reject(e.id,t)}if("error"!==e.status)if("success"===e.status)delete e.status,this.resolve(e.id,e);else{const t=new i.ResponseFormatError(`unrecognized response.status: ${null!==(r=e.status)&&void 0!==r?r:""}`,e);this.reject(e.id,t)}else{const r=e,o=new i.RippledError(null!==(n=null!==(t=r.error_message)&&void 0!==t?t:r.error_exception)&&void 0!==n?n:r.error,r);this.reject(e.id,o)}}}deletePromise(e){this.promisesAwaitingResponse.delete(e)}}},9577:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(8516),o=n(619),s=r(n(3212)),a=r(n(4876)),c={deriveKeypair(e){const t=a.default.half(e);return{privateKey:"ED"+(0,o.bytesToHex)(t),publicKey:"ED"+(0,o.bytesToHex)(i.ed25519.getPublicKey(t))}},sign:(e,t)=>(s.default.ok(e instanceof Uint8Array,"message must be array of octets"),s.default.ok(66===t.length,"private key must be 33 bytes including prefix"),(0,o.bytesToHex)(i.ed25519.sign(e,t.slice(2)))),verify:(e,t,n)=>(s.default.ok(66===n.length,"public key must be 33 bytes including prefix"),i.ed25519.verify(t,e,n.slice(2),{zip215:!1}))};t.default=c},9672:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseTransactionFlags=t.convertTxFlagsToNumber=t.setTransactionFlagsToNumber=t.parseAccountRootFlags=void 0;const r=n(255),i=n(8444),o=n(3750),s=n(3746),a=n(6214),c=n(988),l=n(6695),u=n(2794),d=n(3094),f=n(9962),h=n(548),g=n(5842),p=n(8718),y=n(9349),m=n(1441),A=n(2152),E=n(6181),b=n(5615),w=n(4329),S=n(99);t.parseAccountRootFlags=function(e){const t={};return Object.values(i.AccountRootFlags).forEach((n=>{"string"==typeof n&&(0,S.isFlagEnabled)(e,i.AccountRootFlags[n])&&(t[n]=!0)})),t};const v={AccountSet:o.AccountSetTfFlags,AMMClawback:s.AMMClawbackFlags,AMMDeposit:a.AMMDepositFlags,AMMWithdraw:c.AMMWithdrawFlags,Batch:l.BatchFlags,MPTokenAuthorize:d.MPTokenAuthorizeFlags,MPTokenIssuanceCreate:f.MPTokenIssuanceCreateFlags,MPTokenIssuanceSet:h.MPTokenIssuanceSetFlags,NFTokenCreateOffer:g.NFTokenCreateOfferFlags,NFTokenMint:p.NFTokenMintFlags,OfferCreate:y.OfferCreateFlags,PaymentChannelClaim:A.PaymentChannelClaimFlags,Payment:m.PaymentFlags,TrustSet:E.TrustSetFlags,VaultCreate:b.VaultCreateFlags,XChainModifyBridge:w.XChainModifyBridgeFlags};function T(e){return e in v}function O(e){const t=e.Flags;if(null==t)return 0;if("number"==typeof t)return t;if(T(e.TransactionType)){const n=v[e.TransactionType];return Object.keys(t).reduce(((e,i)=>{if(null==n[i]&&null==u.GlobalFlags[i])throw new r.ValidationError(`Invalid flag ${i}.`);return t[i]?e|(n[i]||u.GlobalFlags[i]):e}),0)}return Object.keys(t).reduce(((e,n)=>{if(null==u.GlobalFlags[n])throw new r.ValidationError(`Invalid flag ${n}. Valid flags are ${JSON.stringify(u.GlobalFlags)}`);return t[n]?e|u.GlobalFlags[n]:e}),0)}t.setTransactionFlagsToNumber=function(e){console.warn("This function is deprecated. Use convertTxFlagsToNumber() instead and use the returned value to modify the Transaction.Flags from the caller."),e.Flags&&(e.Flags=O(e))},t.convertTxFlagsToNumber=O,t.parseTransactionFlags=function(e){const t=O(e);if(0===t)return{};const n={};if(T(e.TransactionType)){const r=v[e.TransactionType];Object.values(r).forEach((e=>{"string"==typeof e&&(0,S.isFlagEnabled)(t,r[e])&&(n[e]=!0)}))}return Object.values(u.GlobalFlags).forEach((e=>{"string"==typeof e&&(0,S.isFlagEnabled)(t,u.GlobalFlags[e])&&(n[e]=!0)})),n}},9726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateOracleDelete=void 0;const r=n(2794);t.validateOracleDelete=function(e){(0,r.validateBaseTransaction)(e),(0,r.validateRequiredField)(e,"OracleDocumentID",r.isNumber)}},9729:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseTransactionFlags=t.convertTxFlagsToNumber=t.setTransactionFlagsToNumber=t.parseAccountRootFlags=t.LedgerEntry=void 0,t.LedgerEntry=o(n(8823));var a=n(9672);Object.defineProperty(t,"parseAccountRootFlags",{enumerable:!0,get:function(){return a.parseAccountRootFlags}}),Object.defineProperty(t,"setTransactionFlagsToNumber",{enumerable:!0,get:function(){return a.setTransactionFlagsToNumber}}),Object.defineProperty(t,"convertTxFlagsToNumber",{enumerable:!0,get:function(){return a.convertTxFlagsToNumber}}),Object.defineProperty(t,"parseTransactionFlags",{enumerable:!0,get:function(){return a.parseTransactionFlags}}),s(n(8932),t),s(n(9843),t),s(n(1279),t)},9760:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateMnemonic=function(e,t=128){if((0,o.anumber)(t),t%32!=0||t>256)throw new TypeError("Invalid entropy");return g((0,o.randomBytes)(t/8),e)},t.mnemonicToEntropy=h,t.entropyToMnemonic=g,t.validateMnemonic=function(e,t){try{h(e,t)}catch(e){return!1}return!0},t.mnemonicToSeed=function(e,t=""){return(0,r.pbkdf2Async)(i.sha512,l(e).nfkd,p(t),{c:2048,dkLen:64})},t.mnemonicToSeedSync=function(e,t=""){return(0,r.pbkdf2)(i.sha512,l(e).nfkd,p(t),{c:2048,dkLen:64})};const r=n(4204),i=n(4233),o=n(5492),s=n(1616),a=e=>"あいこくしん"===e[0];function c(e){if("string"!=typeof e)throw new TypeError("invalid mnemonic type: "+typeof e);return e.normalize("NFKD")}function l(e){const t=c(e),n=t.split(" ");if(![12,15,18,21,24].includes(n.length))throw new Error("Invalid mnemonic");return{nfkd:t,words:n}}function u(e){(0,o.abytes)(e,16,20,24,28,32)}const d=e=>{const t=8-e.length/4;return new Uint8Array([(0,i.sha256)(e)[0]>>t<<t])};function f(e){if(!Array.isArray(e)||2048!==e.length||"string"!=typeof e[0])throw new Error("Wordlist: expected array of 2048 strings");return e.forEach((e=>{if("string"!=typeof e)throw new Error("wordlist: non-string element: "+e)})),s.utils.chain(s.utils.checksum(1,d),s.utils.radix2(11,!0),s.utils.alphabet(e))}function h(e,t){const{words:n}=l(e),r=f(t).decode(n);return u(r),r}function g(e,t){return u(e),f(t).encode(e).join(a(t)?" ":" ")}const p=e=>c("mnemonic"+e)},9819:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new i(r,o||e,s),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i<o;i++)s[i]=r[i].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,i,o,s){var a=n?n+e:e;if(!this._events[a])return!1;var c,l,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,s),!0}for(l=1,c=new Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var f,h=u.length;for(l=0;l<h;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,i);break;default:if(!c)for(f=1,c=new Array(d-1);f<d;f++)c[f-1]=arguments[f];u[l].fn.apply(u[l].context,c)}}return!0},a.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||i&&!a.once||r&&a.context!==r||s(this,o);else{for(var c=0,l=[],u=a.length;c<u;c++)(a[c].fn!==t||i&&!a[c].once||r&&a[c].context!==r)&&l.push(a[c]);l.length?this._events[o]=1===l.length?l[0]:l:s(this,o)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a},9843:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.XChainModifyBridgeFlags=t.VaultWithdrawalPolicy=t.VaultCreateFlags=t.TrustSetFlags=t.PaymentChannelClaimFlags=t.PaymentFlags=t.OfferCreateFlags=t.validateNFTokenModify=t.NFTokenMintFlags=t.NFTokenCreateOfferFlags=t.MPTokenIssuanceSetFlags=t.MPTokenIssuanceCreateFlags=t.MPTokenAuthorizeFlags=t.EnableAmendmentFlags=t.AMMWithdrawFlags=t.AMMDepositFlags=t.AMMClawbackFlags=t.AccountSetTfFlags=t.AccountSetAsfFlags=t.validate=t.isMPTAmount=void 0;var o=n(2794);Object.defineProperty(t,"isMPTAmount",{enumerable:!0,get:function(){return o.isMPTAmount}});var s=n(5863);Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return s.validate}}),i(n(3342),t);var a=n(3750);Object.defineProperty(t,"AccountSetAsfFlags",{enumerable:!0,get:function(){return a.AccountSetAsfFlags}}),Object.defineProperty(t,"AccountSetTfFlags",{enumerable:!0,get:function(){return a.AccountSetTfFlags}});var c=n(3746);Object.defineProperty(t,"AMMClawbackFlags",{enumerable:!0,get:function(){return c.AMMClawbackFlags}});var l=n(6214);Object.defineProperty(t,"AMMDepositFlags",{enumerable:!0,get:function(){return l.AMMDepositFlags}});var u=n(988);Object.defineProperty(t,"AMMWithdrawFlags",{enumerable:!0,get:function(){return u.AMMWithdrawFlags}});var d=n(7493);Object.defineProperty(t,"EnableAmendmentFlags",{enumerable:!0,get:function(){return d.EnableAmendmentFlags}});var f=n(3094);Object.defineProperty(t,"MPTokenAuthorizeFlags",{enumerable:!0,get:function(){return f.MPTokenAuthorizeFlags}});var h=n(9962);Object.defineProperty(t,"MPTokenIssuanceCreateFlags",{enumerable:!0,get:function(){return h.MPTokenIssuanceCreateFlags}});var g=n(548);Object.defineProperty(t,"MPTokenIssuanceSetFlags",{enumerable:!0,get:function(){return g.MPTokenIssuanceSetFlags}});var p=n(5842);Object.defineProperty(t,"NFTokenCreateOfferFlags",{enumerable:!0,get:function(){return p.NFTokenCreateOfferFlags}});var y=n(8718);Object.defineProperty(t,"NFTokenMintFlags",{enumerable:!0,get:function(){return y.NFTokenMintFlags}});var m=n(7636);Object.defineProperty(t,"validateNFTokenModify",{enumerable:!0,get:function(){return m.validateNFTokenModify}});var A=n(9349);Object.defineProperty(t,"OfferCreateFlags",{enumerable:!0,get:function(){return A.OfferCreateFlags}});var E=n(1441);Object.defineProperty(t,"PaymentFlags",{enumerable:!0,get:function(){return E.PaymentFlags}});var b=n(2152);Object.defineProperty(t,"PaymentChannelClaimFlags",{enumerable:!0,get:function(){return b.PaymentChannelClaimFlags}});var w=n(6181);Object.defineProperty(t,"TrustSetFlags",{enumerable:!0,get:function(){return w.TrustSetFlags}});var S=n(5615);Object.defineProperty(t,"VaultCreateFlags",{enumerable:!0,get:function(){return S.VaultCreateFlags}}),Object.defineProperty(t,"VaultWithdrawalPolicy",{enumerable:!0,get:function(){return S.VaultWithdrawalPolicy}});var v=n(4329);Object.defineProperty(t,"XChainModifyBridgeFlags",{enumerable:!0,get:function(){return v.XChainModifyBridgeFlags}})},9850:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=void 0,t.fromBig=i,t.split=o,t.add=E;const n=BigInt(2**32-1),r=BigInt(32);function i(e,t=!1){return t?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function o(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;o<e.length;o++){const{h:s,l:a}=i(e[o],t);[n[o],r[o]]=[s,a]}return[n,r]}const s=(e,t)=>BigInt(e>>>0)<<r|BigInt(t>>>0);t.toBig=s;const a=(e,t,n)=>e>>>n;t.shrSH=a;const c=(e,t,n)=>e<<32-n|t>>>n;t.shrSL=c;const l=(e,t,n)=>e>>>n|t<<32-n;t.rotrSH=l;const u=(e,t,n)=>e<<32-n|t>>>n;t.rotrSL=u;const d=(e,t,n)=>e<<64-n|t>>>n-32;t.rotrBH=d;const f=(e,t,n)=>e>>>n-32|t<<64-n;t.rotrBL=f;const h=(e,t)=>t;t.rotr32H=h;const g=(e,t)=>e;t.rotr32L=g;const p=(e,t,n)=>e<<n|t>>>32-n;t.rotlSH=p;const y=(e,t,n)=>t<<n|e>>>32-n;t.rotlSL=y;const m=(e,t,n)=>t<<n-32|e>>>64-n;t.rotlBH=m;const A=(e,t,n)=>e<<n-32|t>>>64-n;function E(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}t.rotlBL=A;const b=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);t.add3L=b;const w=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;t.add3H=w;const S=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);t.add4L=S;const v=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;t.add4H=v;const T=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);t.add5L=T;const O=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0;t.add5H=O;const I={fromBig:i,split:o,toBig:s,shrSH:a,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:d,rotrBL:f,rotr32H:h,rotr32L:g,rotlSH:p,rotlSL:y,rotlBH:m,rotlBL:A,add:E,add3L:b,add3H:w,add4L:S,add4H:v,add5H:O,add5L:T};t.default=I},9859:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(){this.promisesAwaitingConnection=[]}resolveAllAwaiting(){this.promisesAwaitingConnection.map((({resolve:e})=>e())),this.promisesAwaitingConnection=[]}rejectAllAwaiting(e){this.promisesAwaitingConnection.map((({reject:t})=>t(e))),this.promisesAwaitingConnection=[]}awaitConnection(){return n(this,void 0,void 0,(function*(){return new Promise(((e,t)=>{this.promisesAwaitingConnection.push({resolve:e,reject:t})}))}))}}},9962:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateMPTokenIssuanceCreate=t.MPTokenIssuanceCreateFlags=void 0;const r=n(255),i=n(99),o=n(2794);var s;!function(e){e[e.tfMPTCanLock=2]="tfMPTCanLock",e[e.tfMPTRequireAuth=4]="tfMPTRequireAuth",e[e.tfMPTCanEscrow=8]="tfMPTCanEscrow",e[e.tfMPTCanTrade=16]="tfMPTCanTrade",e[e.tfMPTCanTransfer=32]="tfMPTCanTransfer",e[e.tfMPTCanClawback=64]="tfMPTCanClawback"}(s||(t.MPTokenIssuanceCreateFlags=s={})),t.validateMPTokenIssuanceCreate=function(e){var t,n;if((0,o.validateBaseTransaction)(e),(0,o.validateOptionalField)(e,"MaximumAmount",o.isString),(0,o.validateOptionalField)(e,"MPTokenMetadata",o.isString),(0,o.validateOptionalField)(e,"TransferFee",o.isNumber),(0,o.validateOptionalField)(e,"AssetScale",o.isNumber),"string"==typeof e.MPTokenMetadata&&""===e.MPTokenMetadata)throw new r.ValidationError("MPTokenIssuanceCreate: MPTokenMetadata must not be empty string");if("string"==typeof e.MPTokenMetadata&&!(0,i.isHex)(e.MPTokenMetadata))throw new r.ValidationError("MPTokenIssuanceCreate: MPTokenMetadata must be in hex format");if("string"==typeof e.MaximumAmount){if(!i.INTEGER_SANITY_CHECK.exec(e.MaximumAmount))throw new r.ValidationError("MPTokenIssuanceCreate: Invalid MaximumAmount");if(BigInt(e.MaximumAmount)>BigInt("9223372036854775807")||BigInt(e.MaximumAmount)<BigInt("0"))throw new r.ValidationError("MPTokenIssuanceCreate: MaximumAmount out of range")}if("number"==typeof e.TransferFee){const o=null!==(t=e.Flags)&&void 0!==t?t:0,a="number"==typeof o?(0,i.isFlagEnabled)(o,s.tfMPTCanTransfer):null!==(n=o.tfMPTCanTransfer)&&void 0!==n&&n;if(e.TransferFee<0||e.TransferFee>5e4)throw new r.ValidationError("MPTokenIssuanceCreate: TransferFee must be between 0 and 50000");if(e.TransferFee&&!a)throw new r.ValidationError("MPTokenIssuanceCreate: TransferFee cannot be provided without enabling tfMPTCanTransfer flag")}}},9966:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAMMCreate=t.AMM_MAX_TRADING_FEE=void 0;const r=n(255),i=n(2794);t.AMM_MAX_TRADING_FEE=1e3,t.validateAMMCreate=function(e){if((0,i.validateBaseTransaction)(e),null==e.Amount)throw new r.ValidationError("AMMCreate: missing field Amount");if(!(0,i.isAmount)(e.Amount))throw new r.ValidationError("AMMCreate: Amount must be an Amount");if(null==e.Amount2)throw new r.ValidationError("AMMCreate: missing field Amount2");if(!(0,i.isAmount)(e.Amount2))throw new r.ValidationError("AMMCreate: Amount2 must be an Amount");if(null==e.TradingFee)throw new r.ValidationError("AMMCreate: missing field TradingFee");if("number"!=typeof e.TradingFee)throw new r.ValidationError("AMMCreate: TradingFee must be a number");if(e.TradingFee<0||e.TradingFee>t.AMM_MAX_TRADING_FEE)throw new r.ValidationError(`AMMCreate: TradingFee must be between 0 and ${t.AMM_MAX_TRADING_FEE}`)}},9987:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=t.nextTick=t.byteSwapIfBE=t.isLE=void 0,t.isBytes=function(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=o,t.byteSwap32=function(e){for(let t=0;t<e.length;t++)e[t]=o(e[t])},t.bytesToHex=function(e){(0,i.abytes)(e);let t="";for(let n=0;n<e.length;n++)t+=s[e[n]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){const n=c(e.charCodeAt(i)),o=c(e.charCodeAt(i+1));if(void 0===n||void 0===o){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}r[t]=16*n+o}return r},t.asyncLoop=async function(e,n,r){let i=Date.now();for(let o=0;o<e;o++){r(o);const e=Date.now()-i;e>=0&&e<n||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=l,t.toBytes=u,t.concatBytes=function(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];(0,i.abytes)(r),t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const i=e[t];n.set(i,r),r+=i.length}return n},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!=={}.toString.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(u(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(u(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(u(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.randomBytes=function(e=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return r.crypto.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")};const r=n(1845),i=n(5489);function o(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.byteSwapIfBE=t.isLE?e=>e:e=>o(e);const s=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0"))),a={_0:48,_9:57,A:65,F:70,a:97,f:102};function c(e){return e>=a._0&&e<=a._9?e-a._0:e>=a.A&&e<=a.F?e-(a.A-10):e>=a.a&&e<=a.f?e-(a.a-10):void 0}function l(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function u(e){return"string"==typeof e&&(e=l(e)),(0,i.abytes)(e),e}t.nextTick=async()=>{},t.Hash=class{clone(){return this._cloneInto()}}}},t={},n=function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(5642);xrpl=n})();
3
3
  //# sourceMappingURL=xrpl-latest-min.js.map